@scalar/api-reference 1.22.29 → 1.22.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,238 +1 @@
1
- require('./index.css');"use strict";var v$=Object.defineProperty;var w$=(r,e,t)=>e in r?v$(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var tu=(r,e,t)=>(w$(r,typeof e!="symbol"?e+"":e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),ye=require("@headlessui/vue"),De=require("@vueuse/core"),Zy=require("axios"),pa=require("prismjs"),k$=require("@vcarl/remark-headings"),ki=require("github-slugger"),Iy=require("remark-parse"),S$=require("remark-stringify"),jy=require("unified"),Dy=require("httpsnippet-lite"),cg=require("unhead"),$$=require("rehype-external-links"),P$=require("rehype-format"),x$=require("rehype-prism"),_$=require("rehype-raw"),ru=require("rehype-sanitize"),C$=require("rehype-stringify"),T$=require("remark-gfm"),Q$=require("remark-rehype"),E$=require("fuse.js"),N$=":root{--scalar-text-decoration: underline;--scalar-text-decoration-hover: underline}.light-mode,.light-mode .dark-mode{--scalar-background-1: #f9f9f9;--scalar-background-2: #f1f1f1;--scalar-background-3: #e7e7e7;--scalar-background-card: #fff;--scalar-color-1: #2a2f45;--scalar-color-2: #757575;--scalar-color-3: #8e8e8e;--scalar-color-accent: var(--scalar-color-1);--scalar-background-accent: var(--scalar-background-3);--scalar-border-color: rgba(0, 0, 0, .1);--scalar-code-languages-background-supersede: var(--scalar-background-1);--scalar-code-language-color-supersede: var(--scalar-color-1)}.dark-mode{--scalar-background-1: #131313;--scalar-background-2: #1d1d1d;--scalar-background-3: #272727;--scalar-background-card: #1d1d1d;--scalar-color-1: rgba(255, 255, 255, .9);--scalar-color-2: rgba(255, 255, 255, .62);--scalar-color-3: rgba(255, 255, 255, .44);--scalar-color-accent: var(--scalar-color-1);--scalar-background-accent: var(--scalar-background-3);--scalar-border-color: rgba(255, 255, 255, .1);--scalar-code-languages-background-supersede: var(--scalar-background-3);--scalar-code-language-color-supersede: var(--scalar-color-3)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: transparent;--scalar-sidebar-search-color: var(--scalar-color-3);--scalar-sidebar-search-border-color: var(--scalar-border-color);--scalar-sidebar-indent-border: var(--scalar-sidebar-border-color);--scalar-sidebar-indent-border-hover: var(--scalar-sidebar-border-color);--scalar-sidebar-indent-border-active: var(--scalar-sidebar-border-color)}.light-mode .dark-mode,.light-mode{--scalar-color-green: #069061;--scalar-color-red: #ef0006;--scalar-color-yellow: #edbe20;--scalar-color-blue: #0082d0;--scalar-color-orange: #fb892c;--scalar-color-purple: #5203d1;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: #00b648;--scalar-color-red: #dd2f2c;--scalar-color-yellow: #ffc90d;--scalar-color-blue: #4eb3ec;--scalar-color-orange: #ff8d4d;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}.code-languages-background:before{box-shadow:inset 0 0 0 1px var(--scalar-border-color)!important}.scalar-api-client__item,.scalar-card,.dark-mode .dark-mode.scalar-card{--scalar-background-1: var(--scalar-background-card);--scalar-background-2: var(--scalar-background-1);--scalar-background-3: var(--scalar-background-1)}.dark-mode .dark-mode.scalar-card{--scalar-background-3: var(--scalar-background-3)}.t-doc__sidebar{--scalar-color-green: var(--scalar-color-1);--scalar-color-red: var(--scalar-color-1);--scalar-color-yellow: var(--scalar-color-1);--scalar-color-blue: var(--scalar-color-1);--scalar-color-orange: var(--scalar-color-1);--scalar-color-purple: var(--scalar-color-1)}",A$=":root{--scalar-text-decoration: underline;--scalar-text-decoration-hover: underline}.light-mode{--scalar-background-1: #f0f2f5;--scalar-background-2: #eaecf0;--scalar-background-3: #e0e2e6;--scalar-border-color: rgb(228, 228, 231);--scalar-color-1: rgb(9, 9, 11);--scalar-color-2: rgb(113, 113, 122);--scalar-color-3: rgba(25, 25, 28, .5);--scalar-color-accent: var(--scalar-color-1);--scalar-background-accent: #8ab4f81f;--scalar-code-language-color-supersede: var(--scalar-color-1)}.light-mode .scalar-card.dark-mode,.dark-mode{--scalar-background-1: #000e23;--scalar-background-2: #01132e;--scalar-background-3: #03193b;--scalar-border-color: rgba(255, 255, 255, .12);--scalar-color-1: #fafafa;--scalar-color-2: rgb(161, 161, 170);--scalar-color-3: rgba(255, 255, 255, .533);--scalar-color-accent: var(--scalar-color-1);--scalar-background-accent: #8ab4f81f;--scalar-code-language-color-supersede: var(--scalar-color-1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-active-background: var(--scalar-background-3);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: rgba(255, 255, 255, .1);--scalar-sidebar-search-border-color: var(--scalar-border-color);--scalar-sidebar-search-color: var(--scalar-color-3);z-index:1}.light-mode .t-doc__sidebar{--scalar-sidebar-search-background: white}.light-mode{--scalar-color-green: #069061;--scalar-color-red: #ef0006;--scalar-color-yellow: #edbe20;--scalar-color-blue: #0082d0;--scalar-color-orange: #fb892c;--scalar-color-purple: #5203d1;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: rgba(69, 255, 165, .823);--scalar-color-red: #ff8589;--scalar-color-yellow: #ffcc4d;--scalar-color-blue: #6bc1fe;--scalar-color-orange: #f98943;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}@keyframes headerbackground{0%{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}to{background:var(--header-background-1);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}.code-languages-background{background:var(--scalar-background-1)!important}.code-languages-background:before{box-shadow:inset 0 0 0 2px var(--scalar-border-color);background:linear-gradient(to right top,#d3e1f91f,#d1dff71c,#dfe9fb4a)!important}.light-mode .code-languages-background:before{background:linear-gradient(to right top,#00000014,#00000012,#00000030)!important}.code-languages__active .code-languages-background:before{background:var(--scalar-background-1)!important}.code-languages span{margin-top:5px!important}.section-flare-item:nth-of-type(1){--c1: #ffffff;--c2: #babfd8;--c3: #2e8bb2;--c4: #1a8593;--c5: #0a143e;--c6: #0a0f52;--c7: #2341b8;--solid: var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6), var(--c7);--solid-wrap: var(--solid), var(--c1);--trans: var(--c1), transparent, var(--c2), transparent, var(--c3), transparent, var(--c4), transparent, var(--c5), transparent, var(--c6), transparent, var(--c7);--trans-wrap: var(--trans), transparent, var(--c1);background:radial-gradient(circle,var(--trans)),conic-gradient(from 180deg,var(--trans-wrap)),radial-gradient(circle,var(--trans)),conic-gradient(var(--solid-wrap));width:70vw;height:700px;border-radius:50%;filter:blur(100px);z-index:0;right:0;position:absolute;transform:rotate(-45deg);top:-300px;opacity:.3}.section-flare-item:nth-of-type(3){--star-color: #6b9acc;--star-color2: #446b8d;--star-color3: #3e5879;background-image:radial-gradient(2px 2px at 20px 30px,var(--star-color2),rgba(0,0,0,0)),radial-gradient(2px 2px at 40px 70px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 50px 160px,var(--star-color3),rgba(0,0,0,0)),radial-gradient(2px 2px at 90px 40px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 130px 80px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 160px 120px,var(--star-color3),rgba(0,0,0,0));background-repeat:repeat;background-size:200px 200px;width:100%;height:100%;-webkit-mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%)}.section-flare{top:-150px!important;height:100vh;background:linear-gradient(#000,var(--scalar-background-1));width:100vw}.light-mode .section-flare{display:none}.light-mode .scalar-card{--scalar-background-1: #fff;--scalar-background-2: #fff;--scalar-background-3: #fff}",R$=':root{--scalar-text-decoration: underline;--scalar-text-decoration-hover: underline}.light-mode{--scalar-color-1: rgb(9, 9, 11);--scalar-color-2: rgb(113, 113, 122);--scalar-color-3: rgba(25, 25, 28, .5);--scalar-color-accent: var(--scalar-color-1);--scalar-background-1: #fff;--scalar-background-2: #f4f4f5;--scalar-background-3: #e3e3e6;--scalar-background-accent: #8ab4f81f;--scalar-border-color: rgb(228, 228, 231);--scalar-code-language-color-supersede: var(--scalar-color-1)}.dark-mode{--scalar-color-1: #fafafa;--scalar-color-2: rgb(161, 161, 170);--scalar-color-3: rgba(255, 255, 255, .533);--scalar-color-accent: var(--scalar-color-1);--scalar-background-1: #09090b;--scalar-background-2: #18181b;--scalar-background-3: #2c2c30;--scalar-background-accent: #8ab4f81f;--scalar-border-color: rgba(255, 255, 255, .12);--scalar-code-language-color-supersede: var(--scalar-color-1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-3);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: transparent;--scalar-sidebar-search-border-color: var(--scalar-border-color);--scalar-sidebar-search-color: var(--scalar-color-3)}.light-mode .t-doc__sidebar{--scalar-sidebar-item-active-background: #09090b;--scalar-sidebar-color-active: var(--scalar-sidebar-background-1)}.light-mode{--scalar-color-green: #069061;--scalar-color-red: #ef0006;--scalar-color-yellow: #edbe20;--scalar-color-blue: #0082d0;--scalar-color-orange: #fb892c;--scalar-color-purple: #5203d1;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: rgba(69, 255, 165, .823);--scalar-color-red: #ff8589;--scalar-color-yellow: #ffcc4d;--scalar-color-blue: #6bc1fe;--scalar-color-orange: #f98943;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}.examples .scalar-card-footer{--scalar-background-3: transparent;padding-top:0}.code-languages-background{background:var(--scalar-background-1)!important}.code-languages-background:before{box-shadow:inset 0 0 0 2px var(--scalar-border-color);background:linear-gradient(to right top,#d3e1f91f,#d1dff71c,#dfe9fb4a)!important}.light-mode .code-languages-background:before{background:linear-gradient(to right top,#00000014,#00000012,#00000030)!important}.code-languages__active .code-languages-background:before{background:var(--scalar-background-1)!important}.code-languages span{margin-top:5px!important}.section-flare{width:100vw;height:550px;position:relative}.section-flare-item:nth-of-type(1){position:absolute;width:100vw;height:550px;--stripesDark: repeating-linear-gradient( 100deg, #000 0%, #000 7%, transparent 10%, transparent 12%, #000 16% );--rainbow: repeating-linear-gradient( 100deg, #fff 10%, #fff 16%, #fff 22%, #fff 30% );background-image:var(--stripesDark),var(--rainbow);background-size:300%,200%;background-position:50% 50%,50% 50%;filter:invert(100%);-webkit-mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);pointer-events:none;opacity:.07}.dark-mode .section-flare-item:nth-of-type(1){background-image:var(--stripesDark),var(--rainbow);filter:opacity(50%) saturate(200%);opacity:.25;height:350px}.section-flare-item:nth-of-type(1):after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-image:var(--stripesDark),var(--rainbow);background-size:200%,100%;background-attachment:fixed;mix-blend-mode:difference}.dark-mode .section-flare:after{background-image:var(--stripesDark),var(--rainbow)}.section-flare-item:nth-of-type(2){--star-color: #fff;--star-color2: #fff;--star-color3: #fff;width:100%;height:100%;position:absolute;background-image:radial-gradient(2px 2px at 20px 30px,var(--star-color2),rgba(0,0,0,0)),radial-gradient(2px 2px at 40px 70px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 50px 160px,var(--star-color3),rgba(0,0,0,0)),radial-gradient(2px 2px at 90px 40px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 130px 80px,var(--star-color),rgba(0,0,0,0)),radial-gradient(2px 2px at 160px 120px,var(--star-color3),rgba(0,0,0,0));background-repeat:repeat;background-size:200px 200px;-webkit-mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);mask-image:radial-gradient(ellipse at 100% 0%,black 40%,transparent 70%);opacity:.2}',My=".light-mode{--scalar-background-1: #fff;--scalar-background-2: #f6f6f6;--scalar-background-3: #e7e7e7;--scalar-background-accent: #8ab4f81f;--scalar-color-1: #2a2f45;--scalar-color-2: #757575;--scalar-color-3: #8e8e8e;--scalar-color-accent: #0099ff;--scalar-border-color: rgba(0, 0, 0, .1)}.dark-mode{--scalar-background-1: #0f0f0f;--scalar-background-2: #1a1a1a;--scalar-background-3: #272727;--scalar-color-1: rgba(255, 255, 255, .9);--scalar-color-2: rgba(255, 255, 255, .62);--scalar-color-3: rgba(255, 255, 255, .44);--scalar-color-accent: #3ea6ff;--scalar-background-accent: #3ea6ff1f;--scalar-border-color: rgba(255, 255, 255, .1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-active-background: var(--scalar-background-2);--scalar-sidebar-color-active: var(--scalar-color-1);--scalar-sidebar-search-background: transparent;--scalar-sidebar-search-color: var(--scalar-color-3);--scalar-sidebar-search-border-color: var(--scalar-border-color)}.light-mode{--scalar-color-green: #069061;--scalar-color-red: #ef0006;--scalar-color-yellow: #edbe20;--scalar-color-blue: #0082d0;--scalar-color-orange: #fb892c;--scalar-color-purple: #5203d1;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: #00b648;--scalar-color-red: #dc1b19;--scalar-color-yellow: #ffc90d;--scalar-color-blue: #4eb3ec;--scalar-color-orange: #ff8d4d;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}",V$=".light-mode{--scalar-color-1: #2a2f45;--scalar-color-2: #757575;--scalar-color-3: #8e8e8e;--scalar-color-accent: #7070ff;--scalar-background-1: #fff;--scalar-background-2: #f6f6f6;--scalar-background-3: #e7e7e7;--scalar-background-accent: #7070ff1f;--scalar-border-color: rgba(0, 0, 0, .1);--scalar-code-language-color-supersede: var(--scalar-color-3)}.dark-mode{--scalar-color-1: #f7f8f8;--scalar-color-2: rgb(180, 188, 208);--scalar-color-3: #b4bcd099;--scalar-color-accent: #828fff;--scalar-background-1: #000212;--scalar-background-2: rgba(255, 255, 255, .05);--scalar-background-3: rgba(255, 255, 255, .09);--scalar-background-accent: #8ab4f81f;--scalar-border-color: #242537;--scalar-code-language-color-supersede: var(--scalar-color-3)}.light-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: rgba(0, 0, 0, .05);--scalar-sidebar-search-border-color: 1px solid rgba(0, 0, 0, .05);--scalar-sidebar-search-color: var(--scalar-color-3);--scalar-background-2: rgba(0, 0, 0, .03)}.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: rgba(255, 255, 255, .1);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: rgba(255, 255, 255, .1);--scalar-sidebar-search-border-color: 1px solid rgba(255, 255, 255, .05);--scalar-sidebar-search-color: var(--scalar-color-3)}.light-mode{--scalar-color-green: #069061;--scalar-color-red: #ef0006;--scalar-color-yellow: #edbe20;--scalar-color-blue: #0082d0;--scalar-color-orange: #fb892c;--scalar-color-purple: #5203d1;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: #00b648;--scalar-color-red: #dc1b19;--scalar-color-yellow: #ffc90d;--scalar-color-blue: #4eb3ec;--scalar-color-orange: #ff8d4d;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}.sidebar-search{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}@keyframes headerbackground{0%{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}to{background:var(--header-background-1);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}}.dark-mode .scalar-card{background:#ffffff0d!important}.dark-mode .scalar-card *{--scalar-background-2: transparent !important;--scalar-background-1: transparent !important}.light-mode .dark-mode.scalar-card *,.light-mode .dark-mode.scalar-card{--scalar-background-1: #0d0f1e !important;--scalar-background-2: #0d0f1e !important;--scalar-background-3: #191b29 !important}.light-mode .dark-mode.scalar-card{background:#191b29!important}.badge{box-shadow:0 0 0 1px var(--scalar-border-color);margin-right:6px}.table-row.required-parameter .table-row-item:nth-of-type(2):after{background:transparent;box-shadow:none}.code-languages__active{--scalar-code-language-color-supersede: var(--scalar-color-1)}.code-languages-background{background:linear-gradient(#fff0,#ffffff0d)!important;box-shadow:inset 0 0 0 1px var(--scalar-border-color)!important}.section-flare{width:100vw;background:radial-gradient(ellipse 80% 50% at 50% -20%,rgba(120,119,198,.3),transparent);height:100vh}",B$=":root{--scalar-text-decoration: underline;--scalar-text-decoration-hover: underline}.light-mode{--scalar-background-1: #f9f6f0;--scalar-background-2: #f2efe8;--scalar-background-3: #e9e7e2;--scalar-border-color: rgba(203, 165, 156, .6);--scalar-color-1: #c75549;--scalar-color-2: #c75549;--scalar-color-3: #c75549;--scalar-color-accent: #c75549;--scalar-background-accent: #dcbfa81f;--scalar-code-language-color-supersede: var(--scalar-color-1)}.dark-mode{--scalar-background-1: #140507;--scalar-background-2: #20090c;--scalar-background-3: #321116;--scalar-border-color: rgba(255, 255, 255, .1);--scalar-color-1: rgba(255, 255, 255, .9);--scalar-color-2: rgba(255, 255, 255, .62);--scalar-color-3: rgba(255, 255, 255, .44);--scalar-color-accent: rgba(255, 255, 255, .9);--scalar-background-accent: #441313;--scalar-code-language-color-supersede: var(--scalar-color-1)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-3);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: rgba(255, 255, 255, .1);--scalar-sidebar-search-color: var(--scalar-color-3);--scalar-sidebar-search-border-color: var(--scalar-border-color);z-index:1}.light-mode{--scalar-color-green: #09533a;--scalar-color-red: #aa181d;--scalar-color-yellow: #ab8d2b;--scalar-color-blue: #19689a;--scalar-color-orange: #b26c34;--scalar-color-purple: #4c2191;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: rgba(69, 255, 165, .823);--scalar-color-red: #ff8589;--scalar-color-yellow: #ffcc4d;--scalar-color-blue: #6bc1fe;--scalar-color-orange: #f98943;--scalar-color-purple: #b191f9;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}.light-mode .t-doc__sidebar{--scalar-sidebar-search-background: white}.examples .scalar-card-footer{--scalar-background-3: transparent;padding-top:0}.code-languages-background{background:var(--scalar-background-1)!important}.code-languages-background:before{box-shadow:inset 0 0 0 2px var(--scalar-border-color);background:linear-gradient(to right top,#d3e1f91f,#d1dff71c,#dfe9fb4a)!important}.light-mode .code-languages-background:before{background:linear-gradient(to right top,#00000014,#00000012,#00000030)!important}.code-languages__active .code-languages-background:before{background:var(--scalar-background-1)!important}.code-languages span{margin-top:5px!important}.section-flare-item:nth-of-type(1){background:#d25019;width:80vw;height:500px;margin-top:-150px;border-radius:50%;filter:blur(100px);z-index:0}.light-mode .section-flare{display:none}.section-flare{top:-150px!important;height:100vh;right:-400px!important;left:initial}",Z$=".light-mode{color-scheme:light;--scalar-color-1: #000000;--scalar-color-2: #000000;--scalar-color-3: #000000;--scalar-color-accent: #645b0f;--scalar-background-1: #ccc9b3;--scalar-background-2: #c2bfaa;--scalar-background-3: #b8b5a1;--scalar-background-accent: #000000;--scalar-border-color: rgba(0, 0, 0, .2);--scalar-scrollbar-color: rgba(0, 0, 0, .18);--scalar-scrollbar-color-active: rgba(0, 0, 0, .36);--scalar-lifted-brightness: 1;--scalar-backdrop-brightness: 1;--scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, .11);--scalar-shadow-2: rgba(0, 0, 0, .08) 0px 13px 20px 0px, rgba(0, 0, 0, .08) 0px 3px 8px 0px, var(--scalar-border-color) 0px 0 0 1px;--scalar-button-1: rgb(49 53 56);--scalar-button-1-color: #fff;--scalar-button-1-hover: rgb(28 31 33);--scalar-color-red: #b91c1c;--scalar-color-orange: #a16207;--scalar-color-green: #047857;--scalar-color-blue: #1d4ed8;--scalar-color-orange: #c2410c;--scalar-color-purple: #6d28d9;--scalar-code-languages-background-supersede: var(--scalar-background-3);--scalar-code-language-color-supersede: var(--scalar-color-1)}.dark-mode{color-scheme:dark;--scalar-color-1: #fffef3;--scalar-color-2: #fffef3;--scalar-color-3: #fffef3;--scalar-color-accent: #c3b531;--scalar-background-1: #313332;--scalar-background-2: #393b3a;--scalar-background-3: #414342;--scalar-background-accent: #fffef3;--scalar-border-color: rgba(255, 255, 255, .1);--scalar-scrollbar-color: rgba(255, 255, 255, .24);--scalar-scrollbar-color-active: rgba(255, 255, 255, .48);--scalar-lifted-brightness: 1.45;--scalar-backdrop-brightness: .5;--scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, .11);--scalar-shadow-2: rgba(15, 15, 15, .2) 0px 3px 6px, rgba(15, 15, 15, .4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, .1);--scalar-button-1: #f6f6f6;--scalar-button-1-color: #000;--scalar-button-1-hover: #e7e7e7;--scalar-color-green: #00b648;--scalar-color-red: #dc1b19;--scalar-color-yellow: #ffc90d;--scalar-color-blue: #4eb3ec;--scalar-color-orange: #ff8d4d;--scalar-color-purple: #b191f9;--scalar-code-languages-background-supersede: var(--scalar-background-3);--scalar-code-language-color-supersede: var(--scalar-color-1)}.light-mode .t-doc__sidebar,.dark-mode .sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-color-active: var(--scalar-sidebar-background-1);--scalar-sidebar-search-background: var(--scalar-background-3);--scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);--scalar-sidebar-search--color: var(--scalar-color-3)}",I$=".light-mode{--scalar-background-1: #fff;--scalar-background-2: #f5f6f8;--scalar-background-3: #eceef1;--scalar-color-1: #2a2f45;--scalar-color-2: #757575;--scalar-color-3: #8e8e8e;--scalar-color-accent: #5469d4;--scalar-background-accent: #5469d41f;--scalar-border-color: rgba(215, 215, 206, .5)}.dark-mode{--scalar-background-1: #15171c;--scalar-background-2: #1c1e24;--scalar-background-3: #22252b;--scalar-color-1: #fafafa;--scalar-color-2: #c9ced8;--scalar-color-3: #8c99ad;--scalar-color-accent: #5469d4;--scalar-background-accent: #5469d41f;--scalar-border-color: rgba(255, 255, 255, .12)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-3);--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: var(--scalar-background-1);--scalar-sidebar-search-color: var(--scalar-color-3);--scalar-sidebar-search-border-color: var(--scalar-border-color)}.light-mode{--scalar-color-green: #17803d;--scalar-color-red: #e10909;--scalar-color-yellow: #edbe20;--scalar-color-blue: #1763a6;--scalar-color-orange: #e25b09;--scalar-color-purple: #5c3993;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: #30a159;--scalar-color-red: #dc1b19;--scalar-color-yellow: #eec644;--scalar-color-blue: #2b7abf;--scalar-color-orange: #f07528;--scalar-color-purple: #7a59b1;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}",j$=".light-mode{--scalar-background-1: #f3f3ee;--scalar-background-2: #e8e8e3;--scalar-background-3: #e4e4df;--scalar-border-color: rgba(215, 215, 206, .5);--scalar-color-1: #2a2f45;--scalar-color-2: #757575;--scalar-color-3: #8e8e8e;--scalar-color-accent: #1763a6;--scalar-background-accent: #1f648e1f;--scalar-code-language-color-supersede: var(--scalar-color-1);--scalar-code-languages-background-supersede: var(--scalar-background-2)}.dark-mode{--scalar-background-1: #09090b;--scalar-background-2: #18181b;--scalar-background-3: #2c2c30;--scalar-border-color: rgba(255, 255, 255, .12);--scalar-color-1: #fafafa;--scalar-color-2: rgb(161, 161, 170);--scalar-color-3: rgba(255, 255, 255, .533);--scalar-color-accent: #4eb3ec;--scalar-background-accent: #8ab4f81f;--scalar-code-language-color-supersede: var(--scalar-color-1);--scalar-code-languages-background-supersede: var(--scalar-background-2)}.light-mode .t-doc__sidebar,.dark-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-active-background: var(--scalar-background-3);--scalar-sidebar-color-active: var(--scalar-color-1);--scalar-sidebar-search-background: var(--scalar-background-1);--scalar-sidebar-search-border-color: var(--scalar-border-color);--scalar-sidebar-search-color: var(--scalar-color-3)}.light-mode{--scalar-color-green: #17803d;--scalar-color-red: #e10909;--scalar-color-yellow: #edbe20;--scalar-color-blue: #1763a6;--scalar-color-orange: #e25b09;--scalar-color-purple: #5c3993;--scalar-button-1: rgba(0, 0, 0, 1);--scalar-button-1-hover: rgba(0, 0, 0, .8);--scalar-button-1-color: rgba(255, 255, 255, .9)}.dark-mode{--scalar-color-green: #30a159;--scalar-color-red: #dc1b19;--scalar-color-yellow: #eec644;--scalar-color-blue: #2b7abf;--scalar-color-orange: #f07528;--scalar-color-purple: #7a59b1;--scalar-button-1: rgba(255, 255, 255, 1);--scalar-button-1-hover: rgba(255, 255, 255, .9);--scalar-button-1-color: black}.dark-mode h2.t-editor__heading,.dark-mode .t-editor__page-title h1,.dark-mode h1.section-header,.dark-mode .markdown h1,.dark-mode .markdown h2,.dark-mode .markdown h3,.dark-mode .markdown h4,.dark-mode .markdown h5,.dark-mode .markdown h6{-webkit-text-fill-color:transparent;background-image:linear-gradient(to right bottom,#fff 30%,#ffffff61);-webkit-background-clip:text;background-clip:text}",D$=".light-mode{color-scheme:light;--scalar-color-1: #584c27;--scalar-color-2: #616161;--scalar-color-3: #a89f84;--scalar-color-accent: #b58900;--scalar-background-1: #fdf6e3;--scalar-background-2: #eee8d5;--scalar-background-3: #ddd6c1;--scalar-background-accent: #b589001f;--scalar-border-color: #ded8c8;--scalar-scrollbar-color: rgba(0, 0, 0, .18);--scalar-scrollbar-color-active: rgba(0, 0, 0, .36);--scalar-lifted-brightness: 1;--scalar-backdrop-brightness: 1;--scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, .11);--scalar-shadow-2: rgba(0, 0, 0, .08) 0px 13px 20px 0px, rgba(0, 0, 0, .08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;--scalar-button-1: rgb(49 53 56);--scalar-button-1-color: #fff;--scalar-button-1-hover: rgb(28 31 33);--scalar-color-red: #b91c1c;--scalar-color-orange: #a16207;--scalar-color-green: #047857;--scalar-color-blue: #1d4ed8;--scalar-color-orange: #c2410c;--scalar-color-purple: #6d28d9}.dark-mode{color-scheme:dark;--scalar-color-1: #fff;--scalar-color-2: #cccccc;--scalar-color-3: #6d8890;--scalar-color-accent: #007acc;--scalar-background-1: #00212b;--scalar-background-2: #012b36;--scalar-background-3: #004052;--scalar-background-accent: #015a6f;--scalar-border-color: rgba(255, 255, 255, .1);--scalar-scrollbar-color: rgba(255, 255, 255, .24);--scalar-scrollbar-color-active: rgba(255, 255, 255, .48);--scalar-lifted-brightness: 1.45;--scalar-backdrop-brightness: .5;--scalar-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, .1);--scalar-shadow-2: rgba(15, 15, 15, .2) 0px 3px 6px, rgba(15, 15, 15, .4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, .1);--scalar-button-1: #f6f6f6;--scalar-button-1-color: #000;--scalar-button-1-hover: #e7e7e7;--scalar-color-green: #00b648;--scalar-color-red: #dc1b19;--scalar-color-yellow: #ffc90d;--scalar-color-blue: #4eb3ec;--scalar-color-orange: #ff8d4d;--scalar-color-purple: #b191f9}.light-mode .t-doc__sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-color-active: var(--scalar-color-accent);--scalar-sidebar-search-background: var(--scalar-background-2);--scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);--scalar-sidebar-search--color: var(--scalar-color-3)}.dark-mode .sidebar{--scalar-sidebar-background-1: var(--scalar-background-1);--scalar-sidebar-item-hover-color: currentColor;--scalar-sidebar-item-hover-background: var(--scalar-background-2);--scalar-sidebar-item-active-background: var(--scalar-background-accent);--scalar-sidebar-border-color: var(--scalar-border-color);--scalar-sidebar-color-1: var(--scalar-color-1);--scalar-sidebar-color-2: var(--scalar-color-2);--scalar-sidebar-color-active: var(--scalar-sidebar-color-1);--scalar-sidebar-search-background: var(--scalar-background-2);--scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);--scalar-sidebar-search--color: var(--scalar-color-3)}",M$='@import"https://fonts.googleapis.com/css2?family=Inter:wght@100..900";@import"https://fonts.googleapis.com/css?family=JetBrains%20Mono";',q$=a.defineComponent({__name:"DefaultFonts",setup(r){return(e,t)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent("style"),{innerHTML:a.unref(M$)},null,8,["innerHTML"]))}}),qy=a.defineComponent({__name:"ThemeStyles",props:{id:{},withDefaultFonts:{type:Boolean,default:!0}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[e.withDefaultFonts?(a.openBlock(),a.createBlock(q$,{key:0})):a.createCommentVNode("",!0),e.id!=="none"?(a.openBlock(),a.createBlock(a.resolveDynamicComponent("style"),{key:1},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(tP)(e.id,{layer:"scalar-theme"})),1)]),_:1})):a.createCommentVNode("",!0)],64))}});function Xy(r,e){a.onMounted(()=>{if(!document.body)return;const t=document.querySelector(r);t==null||t.classList.add(e)})}const X$=a.defineComponent({__name:"ResetStyles",setup(r){const{reset:e}=a.useCssModule();return Xy("#headlessui-portal-root",e),(t,n)=>a.renderSlot(t.$slots,"default",{styles:a.unref(e)})}}),W$="_reset_12vhc_3",z$={reset:W$},W=(r,e)=>{const t=r.__vccOpts||r;for(const[n,o]of e)t[n]=o;return t},U$={$style:z$},Wy=W(X$,[["__cssModules",U$]]),Y$=a.defineComponent({__name:"ScrollbarStyles",setup(r){const{scrollbars:e}=a.useCssModule();return Xy("#headlessui-portal-root",e),(t,n)=>a.renderSlot(t.$slots,"default",{styles:a.unref(e)})}}),L$="_scrollbars_1mr8w_3",H$={scrollbars:L$},G$={$style:H$},F$=W(Y$,[["__cssModules",G$]]),zy=[["--theme-","--scalar-"],["--sidebar-","--scalar-sidebar-"]],K$=zy.map(([r])=>r);function J$(r){return K$.some(t=>r.includes(t))?(console.warn("DEPRECATION WARNING: It looks like you're using legacy CSS variables in your custom CSS string. Please migrate them to use the updated prefixes. See https://github.com/scalar/scalar#theme-prefix-changes"),zy.reduce((t,[n,o])=>t.replaceAll(n,o),r)):r}const dg={default:"Default",alternate:"Alternate",moon:"Moon",purple:"Purple",solarized:"Solarized",bluePlanet:"Blue Planet",saturn:"Saturn",kepler:"Kepler-11e",mars:"Mars",deepSpace:"Deep Space",none:""},eP={alternate:N$,default:My,moon:Z$,purple:I$,solarized:D$,bluePlanet:A$,deepSpace:R$,saturn:j$,kepler:V$,mars:B$},tP=(r,e)=>{if(r==="none")return"";const t=eP[r||"default"]??My;return e!=null&&e.layer?`@layer ${e.layer} {
2
- ${t}}`:t};function rP(){return{showApiClient:!1,activeApiClientEndpointId:"",activeItem:{},snippetType:"javascript"}}const Pn=a.reactive(rP());function nP(r,e=!1){e?Pn.showApiClient=!0:Pn.showApiClient=!Pn.showApiClient,r&&(Pn.activeItem=r)}function oP(){Pn.showApiClient=!1}function sP(r){Pn.activeApiClientEndpointId=r}function aP(r){Pn.snippetType=r}const Fc=()=>({state:a.readonly(Pn),toggleApiClient:nP,setActiveApiClientEndpointId:sP,setSnippetType:aP,hideApiClient:oP}),Zf=r=>{let e=0,t=0,n=0;if(!(r!=null&&r.length))return t;for(n=0;n<r.length;n++)e=r.charCodeAt(n),t=(t<<5)-t+e,t|=0;return t},If=Symbol.for("yaml.alias"),iP=Symbol.for("yaml.document"),bo=Symbol.for("yaml.map"),Uy=Symbol.for("yaml.pair"),jf=Symbol.for("yaml.scalar"),Si=Symbol.for("yaml.seq"),qr=Symbol.for("yaml.node.type"),Vs=r=>!!r&&typeof r=="object"&&r[qr]===If,Kc=r=>!!r&&typeof r=="object"&&r[qr]===iP,Yy=r=>!!r&&typeof r=="object"&&r[qr]===bo,it=r=>!!r&&typeof r=="object"&&r[qr]===Uy,Ke=r=>!!r&&typeof r=="object"&&r[qr]===jf,Df=r=>!!r&&typeof r=="object"&&r[qr]===Si;function Vt(r){if(r&&typeof r=="object")switch(r[qr]){case bo:case Si:return!0}return!1}function Ct(r){if(r&&typeof r=="object")switch(r[qr]){case If:case bo:case jf:case Si:return!0}return!1}const lP=r=>(Ke(r)||Vt(r))&&!!r.anchor,eo=Symbol("break visit"),cP=Symbol("skip children"),Za=Symbol("remove node");function Ga(r,e){const t=dP(e);Kc(r)?Ko(null,r.contents,t,Object.freeze([r]))===Za&&(r.contents=null):Ko(null,r,t,Object.freeze([]))}Ga.BREAK=eo;Ga.SKIP=cP;Ga.REMOVE=Za;function Ko(r,e,t,n){const o=uP(r,e,t,n);if(Ct(o)||it(o))return hP(r,n,o),Ko(r,o,t,n);if(typeof o!="symbol"){if(Vt(e)){n=Object.freeze(n.concat(e));for(let s=0;s<e.items.length;++s){const i=Ko(s,e.items[s],t,n);if(typeof i=="number")s=i-1;else{if(i===eo)return eo;i===Za&&(e.items.splice(s,1),s-=1)}}}else if(it(e)){n=Object.freeze(n.concat(e));const s=Ko("key",e.key,t,n);if(s===eo)return eo;s===Za&&(e.key=null);const i=Ko("value",e.value,t,n);if(i===eo)return eo;i===Za&&(e.value=null)}}return o}function dP(r){return typeof r=="object"&&(r.Collection||r.Node||r.Value)?Object.assign({Alias:r.Node,Map:r.Node,Scalar:r.Node,Seq:r.Node},r.Value&&{Map:r.Value,Scalar:r.Value,Seq:r.Value},r.Collection&&{Map:r.Collection,Seq:r.Collection},r):r}function uP(r,e,t,n){var o,s,i,l,c;if(typeof t=="function")return t(r,e,n);if(Yy(e))return(o=t.Map)==null?void 0:o.call(t,r,e,n);if(Df(e))return(s=t.Seq)==null?void 0:s.call(t,r,e,n);if(it(e))return(i=t.Pair)==null?void 0:i.call(t,r,e,n);if(Ke(e))return(l=t.Scalar)==null?void 0:l.call(t,r,e,n);if(Vs(e))return(c=t.Alias)==null?void 0:c.call(t,r,e,n)}function hP(r,e,t){const n=e[e.length-1];if(Vt(n))n.items[r]=t;else if(it(n))r==="key"?n.key=t:n.value=t;else if(Kc(n))n.contents=t;else{const o=Vs(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}function Ly(r){if(/[\x00-\x19\s,[\]{}]/.test(r)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(r)}`;throw new Error(t)}return!0}function _a(r,e,t,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let o=0,s=n.length;o<s;++o){const i=n[o],l=_a(r,n,String(o),i);l===void 0?delete n[o]:l!==i&&(n[o]=l)}else if(n instanceof Map)for(const o of Array.from(n.keys())){const s=n.get(o),i=_a(r,n,o,s);i===void 0?n.delete(o):i!==s&&n.set(o,i)}else if(n instanceof Set)for(const o of Array.from(n)){const s=_a(r,n,o,o);s===void 0?n.delete(o):s!==o&&(n.delete(o),n.add(s))}else for(const[o,s]of Object.entries(n)){const i=_a(r,n,o,s);i===void 0?delete n[o]:i!==s&&(n[o]=i)}return r.call(e,t,n)}function hr(r,e,t){if(Array.isArray(r))return r.map((n,o)=>hr(n,String(o),t));if(r&&typeof r.toJSON=="function"){if(!t||!lP(r))return r.toJSON(e,t);const n={aliasCount:0,count:1,res:void 0};t.anchors.set(r,n),t.onCreate=s=>{n.res=s,delete t.onCreate};const o=r.toJSON(e,t);return t.onCreate&&t.onCreate(o),o}return typeof r=="bigint"&&!(t!=null&&t.keep)?Number(r):r}class Mf{constructor(e){Object.defineProperty(this,qr,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:o,reviver:s}={}){if(!Kc(e))throw new TypeError("A document argument is required");const i={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},l=hr(this,"",i);if(typeof o=="function")for(const{count:c,res:d}of i.anchors.values())o(d,c);return typeof s=="function"?_a(s,{"":l},"",l):l}}let fP=class extends Mf{constructor(e){super(If),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return Ga(e,{Node:(n,o)=>{if(o===this)return Ga.BREAK;o.anchor===this.source&&(t=o)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:o,maxAliasCount:s}=t,i=this.resolve(o);if(!i){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let l=n.get(i);if(l||(hr(i,null,t),l=n.get(i)),!l||l.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(s>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=Bl(o,i,n)),l.count*l.aliasCount>s)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return l.res}toString(e,t,n){const o=`*${this.source}`;if(e){if(Ly(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${o} `}return o}};function Bl(r,e,t){if(Vs(e)){const n=e.resolve(r),o=t&&n&&t.get(n);return o?o.count*o.aliasCount:0}else if(Vt(e)){let n=0;for(const o of e.items){const s=Bl(r,o,t);s>n&&(n=s)}return n}else if(it(e)){const n=Bl(r,e.key,t),o=Bl(r,e.value,t);return Math.max(n,o)}return 1}const Hy=r=>!r||typeof r!="function"&&typeof r!="object";class Le extends Mf{constructor(e){super(jf),this.value=e}toJSON(e,t){return t!=null&&t.keep?this.value:hr(this.value,e,t)}toString(){return String(this.value)}}Le.BLOCK_FOLDED="BLOCK_FOLDED";Le.BLOCK_LITERAL="BLOCK_LITERAL";Le.PLAIN="PLAIN";Le.QUOTE_DOUBLE="QUOTE_DOUBLE";Le.QUOTE_SINGLE="QUOTE_SINGLE";const pP="tag:yaml.org,2002:";function mP(r,e,t){if(e){const n=t.filter(s=>s.tag===e),o=n.find(s=>!s.format)??n[0];if(!o)throw new Error(`Tag ${e} not found`);return o}return t.find(n=>{var o;return((o=n.identify)==null?void 0:o.call(n,r))&&!n.format})}function ac(r,e,t){var h,f,p;if(Kc(r)&&(r=r.contents),Ct(r))return r;if(it(r)){const m=(f=(h=t.schema[bo]).createNode)==null?void 0:f.call(h,t.schema,null,t);return m.items.push(r),m}(r instanceof String||r instanceof Number||r instanceof Boolean||typeof BigInt<"u"&&r instanceof BigInt)&&(r=r.valueOf());const{aliasDuplicateObjects:n,onAnchor:o,onTagObj:s,schema:i,sourceObjects:l}=t;let c;if(n&&r&&typeof r=="object"){if(c=l.get(r),c)return c.anchor||(c.anchor=o(r)),new fP(c.anchor);c={anchor:null,node:null},l.set(r,c)}e!=null&&e.startsWith("!!")&&(e=pP+e.slice(2));let d=mP(r,e,i.tags);if(!d){if(r&&typeof r.toJSON=="function"&&(r=r.toJSON()),!r||typeof r!="object"){const m=new Le(r);return c&&(c.node=m),m}d=r instanceof Map?i[bo]:Symbol.iterator in Object(r)?i[Si]:i[bo]}s&&(s(d),delete t.onTagObj);const u=d!=null&&d.createNode?d.createNode(t.schema,r,t):typeof((p=d==null?void 0:d.nodeClass)==null?void 0:p.from)=="function"?d.nodeClass.from(t.schema,r,t):new Le(r);return e?u.tag=e:d.default||(u.tag=d.tag),c&&(c.node=u),u}function ug(r,e,t){let n=t;for(let o=e.length-1;o>=0;--o){const s=e[o];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const i=[];i[s]=n,n=i}else n=new Map([[s,n]])}return ac(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:r,sourceObjects:new Map})}const gP=r=>r==null||typeof r=="object"&&!!r[Symbol.iterator]().next().done;class qf extends Mf{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(n=>Ct(n)||it(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(gP(e))this.add(t);else{const[n,...o]=e,s=this.get(n,!0);if(Vt(s))s.addIn(o,t);else if(s===void 0&&this.schema)this.set(n,ug(this.schema,o,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}deleteIn(e){const[t,...n]=e;if(n.length===0)return this.delete(t);const o=this.get(t,!0);if(Vt(o))return o.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...o]=e,s=this.get(n,!0);return o.length===0?!t&&Ke(s)?s.value:s:Vt(s)?s.getIn(o,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!it(t))return!1;const n=t.value;return n==null||e&&Ke(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[t,...n]=e;if(n.length===0)return this.has(t);const o=this.get(t,!0);return Vt(o)?o.hasIn(n):!1}setIn(e,t){const[n,...o]=e;if(o.length===0)this.set(n,t);else{const s=this.get(n,!0);if(Vt(s))s.setIn(o,t);else if(s===void 0&&this.schema)this.set(n,ug(this.schema,o,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}}qf.maxFlowStringSingleLineLength=60;const OP=r=>r.replace(/^(?!$)(?: $)?/gm,"#");function Fa(r,e){return/^\n+$/.test(r)?r.substring(1):e?r.replace(/^(?! *$)/gm,e):r}const Jo=(r,e,t)=>r.endsWith(`
3
- `)?Fa(t,e):t.includes(`
4
- `)?`
5
- `+Fa(t,e):(r.endsWith(" ")?"":" ")+t,Gy="flow",rh="block",Zl="quoted";function Jc(r,e,t="flow",{indentAtStart:n,lineWidth:o=80,minContentWidth:s=20,onFold:i,onOverflow:l}={}){if(!o||o<0)return r;const c=Math.max(1+s,1+o-e.length);if(r.length<=c)return r;const d=[],u={};let h=o-e.length;typeof n=="number"&&(n>o-Math.max(2,s)?d.push(0):h=o-n);let f,p,m=!1,g=-1,O=-1,y=-1;t===rh&&(g=hg(r,g,e.length),g!==-1&&(h=g+c));for(let v;v=r[g+=1];){if(t===Zl&&v==="\\"){switch(O=g,r[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}y=g}if(v===`
6
- `)t===rh&&(g=hg(r,g,e.length)),h=g+e.length+c,f=void 0;else{if(v===" "&&p&&p!==" "&&p!==`
7
- `&&p!==" "){const k=r[g+1];k&&k!==" "&&k!==`
8
- `&&k!==" "&&(f=g)}if(g>=h)if(f)d.push(f),h=f+c,f=void 0;else if(t===Zl){for(;p===" "||p===" ";)p=v,v=r[g+=1],m=!0;const k=g>y+1?g-2:O-1;if(u[k])return r;d.push(k),u[k]=!0,h=k+c,f=void 0}else m=!0}p=v}if(m&&l&&l(),d.length===0)return r;i&&i();let b=r.slice(0,d[0]);for(let v=0;v<d.length;++v){const k=d[v],S=d[v+1]||r.length;k===0?b=`
9
- ${e}${r.slice(0,S)}`:(t===Zl&&u[k]&&(b+=`${r[k]}\\`),b+=`
10
- ${e}${r.slice(k+1,S)}`)}return b}function hg(r,e,t){let n=e,o=e+1,s=r[o];for(;s===" "||s===" ";)if(e<o+t)s=r[++e];else{do s=r[++e];while(s&&s!==`
11
- `);n=e,o=e+1,s=r[o]}return n}const ed=(r,e)=>({indentAtStart:e?r.indent.length:r.indentAtStart,lineWidth:r.options.lineWidth,minContentWidth:r.options.minContentWidth}),td=r=>/^(%|---|\.\.\.)/m.test(r);function yP(r,e,t){if(!e||e<0)return!1;const n=e-t,o=r.length;if(o<=n)return!1;for(let s=0,i=0;s<o;++s)if(r[s]===`
12
- `){if(s-i>n)return!0;if(i=s+1,o-i<=n)return!1}return!0}function Ia(r,e){const t=JSON.stringify(r);if(e.options.doubleQuotedAsJSON)return t;const{implicitKey:n}=e,o=e.options.doubleQuotedMinMultiLineLength,s=e.indent||(td(r)?" ":"");let i="",l=0;for(let c=0,d=t[c];d;d=t[++c])if(d===" "&&t[c+1]==="\\"&&t[c+2]==="n"&&(i+=t.slice(l,c)+"\\ ",c+=1,l=c,d="\\"),d==="\\")switch(t[c+1]){case"u":{i+=t.slice(l,c);const u=t.substr(c+2,4);switch(u){case"0000":i+="\\0";break;case"0007":i+="\\a";break;case"000b":i+="\\v";break;case"001b":i+="\\e";break;case"0085":i+="\\N";break;case"00a0":i+="\\_";break;case"2028":i+="\\L";break;case"2029":i+="\\P";break;default:u.substr(0,2)==="00"?i+="\\x"+u.substr(2):i+=t.substr(c,6)}c+=5,l=c+1}break;case"n":if(n||t[c+2]==='"'||t.length<o)c+=1;else{for(i+=t.slice(l,c)+`
13
-
14
- `;t[c+2]==="\\"&&t[c+3]==="n"&&t[c+4]!=='"';)i+=`
15
- `,c+=2;i+=s,t[c+2]===" "&&(i+="\\"),c+=1,l=c+1}break;default:c+=1}return i=l?i+t.slice(l):t,n?i:Jc(i,s,Zl,ed(e,!1))}function nh(r,e){if(e.options.singleQuote===!1||e.implicitKey&&r.includes(`
16
- `)||/[ \t]\n|\n[ \t]/.test(r))return Ia(r,e);const t=e.indent||(td(r)?" ":""),n="'"+r.replace(/'/g,"''").replace(/\n+/g,`$&
17
- ${t}`)+"'";return e.implicitKey?n:Jc(n,t,Gy,ed(e,!1))}function es(r,e){const{singleQuote:t}=e.options;let n;if(t===!1)n=Ia;else{const o=r.includes('"'),s=r.includes("'");o&&!s?n=nh:s&&!o?n=Ia:n=t?nh:Ia}return n(r,e)}let oh;try{oh=new RegExp(`(^|(?<!
18
- ))
19
- +(?!
20
- |$)`,"g")}catch{oh=/\n+(?!\n|$)/g}function Il({comment:r,type:e,value:t},n,o,s){const{blockQuote:i,commentString:l,lineWidth:c}=n.options;if(!i||/\n[\t ]+$/.test(t)||/^\s*$/.test(t))return es(t,n);const d=n.indent||(n.forceBlockIndent||td(t)?" ":""),u=i==="literal"?!0:i==="folded"||e===Le.BLOCK_FOLDED?!1:e===Le.BLOCK_LITERAL?!0:!yP(t,c,d.length);if(!t)return u?`|
21
- `:`>
22
- `;let h,f;for(f=t.length;f>0;--f){const w=t[f-1];if(w!==`
23
- `&&w!==" "&&w!==" ")break}let p=t.substring(f);const m=p.indexOf(`
24
- `);m===-1?h="-":t===p||m!==p.length-1?(h="+",s&&s()):h="",p&&(t=t.slice(0,-p.length),p[p.length-1]===`
25
- `&&(p=p.slice(0,-1)),p=p.replace(oh,`$&${d}`));let g=!1,O,y=-1;for(O=0;O<t.length;++O){const w=t[O];if(w===" ")g=!0;else if(w===`
26
- `)y=O;else break}let b=t.substring(0,y<O?y+1:O);b&&(t=t.substring(b.length),b=b.replace(/\n+/g,`$&${d}`));let k=(u?"|":">")+(g?d?"2":"1":"")+h;if(r&&(k+=" "+l(r.replace(/ ?[\r\n]+/g," ")),o&&o()),u)return t=t.replace(/\n+/g,`$&${d}`),`${k}
27
- ${d}${b}${t}${p}`;t=t.replace(/\n+/g,`
28
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const S=Jc(`${b}${t}${p}`,d,rh,ed(n,!0));return`${k}
29
- ${d}${S}`}function bP(r,e,t,n){const{type:o,value:s}=r,{actualString:i,implicitKey:l,indent:c,indentStep:d,inFlow:u}=e;if(l&&s.includes(`
30
- `)||u&&/[[\]{},]/.test(s))return es(s,e);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||u||!s.includes(`
31
- `)?es(s,e):Il(r,e,t,n);if(!l&&!u&&o!==Le.PLAIN&&s.includes(`
32
- `))return Il(r,e,t,n);if(td(s)){if(c==="")return e.forceBlockIndent=!0,Il(r,e,t,n);if(l&&c===d)return es(s,e)}const h=s.replace(/\n+/g,`$&
33
- ${c}`);if(i){const f=g=>{var O;return g.default&&g.tag!=="tag:yaml.org,2002:str"&&((O=g.test)==null?void 0:O.test(h))},{compat:p,tags:m}=e.doc.schema;if(m.some(f)||p!=null&&p.some(f))return es(s,e)}return l?h:Jc(h,c,Gy,ed(e,!1))}function vP(r,e,t,n){const{implicitKey:o,inFlow:s}=e,i=typeof r.value=="string"?r:Object.assign({},r,{value:String(r.value)});let{type:l}=r;l!==Le.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(i.value)&&(l=Le.QUOTE_DOUBLE);const c=u=>{switch(u){case Le.BLOCK_FOLDED:case Le.BLOCK_LITERAL:return o||s?es(i.value,e):Il(i,e,t,n);case Le.QUOTE_DOUBLE:return Ia(i.value,e);case Le.QUOTE_SINGLE:return nh(i.value,e);case Le.PLAIN:return bP(i,e,t,n);default:return null}};let d=c(l);if(d===null){const{defaultKeyType:u,defaultStringType:h}=e.options,f=o&&u||h;if(d=c(f),d===null)throw new Error(`Unsupported default string type ${f}`)}return d}function wP(r,e){const t=Object.assign({blockQuote:!0,commentString:OP,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},r.schema.toStringOptions,e);let n;switch(t.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:r,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:n,options:t}}function kP(r,e){var o;if(e.tag){const s=r.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)??s[0]}let t,n;if(Ke(e)){n=e.value;const s=r.filter(i=>{var l;return(l=i.identify)==null?void 0:l.call(i,n)});t=s.find(i=>i.format===e.format)??s.find(i=>!i.format)}else n=e,t=r.find(s=>s.nodeClass&&n instanceof s.nodeClass);if(!t){const s=((o=n==null?void 0:n.constructor)==null?void 0:o.name)??typeof n;throw new Error(`Tag not resolved for ${s} value`)}return t}function SP(r,e,{anchors:t,doc:n}){if(!n.directives)return"";const o=[],s=(Ke(r)||Vt(r))&&r.anchor;s&&Ly(s)&&(t.add(s),o.push(`&${s}`));const i=r.tag?r.tag:e.default?null:e.tag;return i&&o.push(n.directives.tagString(i)),o.join(" ")}function ic(r,e,t,n){var c;if(it(r))return r.toString(e,t,n);if(Vs(r)){if(e.doc.directives)return r.toString(e);if((c=e.resolvedAliases)!=null&&c.has(r))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(r):e.resolvedAliases=new Set([r]),r=r.resolve(e.doc)}let o;const s=Ct(r)?r:e.doc.createNode(r,{onTagObj:d=>o=d});o||(o=kP(e.doc.schema.tags,s));const i=SP(s,o,e);i.length>0&&(e.indentAtStart=(e.indentAtStart??0)+i.length+1);const l=typeof o.stringify=="function"?o.stringify(s,e,t,n):Ke(s)?vP(s,e,t,n):s.toString(e,t,n);return i?Ke(s)||l[0]==="{"||l[0]==="["?`${i} ${l}`:`${i}
34
- ${e.indent}${l}`:l}function $P({key:r,value:e},t,n,o){const{allNullValues:s,doc:i,indent:l,indentStep:c,options:{commentString:d,indentSeq:u,simpleKeys:h}}=t;let f=Ct(r)&&r.comment||null;if(h){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(Vt(r)){const $="With simple keys, collection cannot be used as a key value";throw new Error($)}}let p=!h&&(!r||f&&e==null&&!t.inFlow||Vt(r)||(Ke(r)?r.type===Le.BLOCK_FOLDED||r.type===Le.BLOCK_LITERAL:typeof r=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!p&&(h||!s),indent:l+c});let m=!1,g=!1,O=ic(r,t,()=>m=!0,()=>g=!0);if(!p&&!t.inFlow&&O.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(t.inFlow){if(s||e==null)return m&&n&&n(),O===""?"?":p?`? ${O}`:O}else if(s&&!h||e==null&&p)return O=`? ${O}`,f&&!m?O+=Jo(O,t.indent,d(f)):g&&o&&o(),O;m&&(f=null),p?(f&&(O+=Jo(O,t.indent,d(f))),O=`? ${O}
35
- ${l}:`):(O=`${O}:`,f&&(O+=Jo(O,t.indent,d(f))));let y,b,v;Ct(e)?(y=!!e.spaceBefore,b=e.commentBefore,v=e.comment):(y=!1,b=null,v=null,e&&typeof e=="object"&&(e=i.createNode(e))),t.implicitKey=!1,!p&&!f&&Ke(e)&&(t.indentAtStart=O.length+1),g=!1,!u&&c.length>=2&&!t.inFlow&&!p&&Df(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let k=!1;const S=ic(e,t,()=>k=!0,()=>g=!0);let w=" ";if(f||y||b){if(w=y?`
36
- `:"",b){const $=d(b);w+=`
37
- ${Fa($,t.indent)}`}S===""&&!t.inFlow?w===`
38
- `&&(w=`
39
-
40
- `):w+=`
41
- ${t.indent}`}else if(!p&&Vt(e)){const $=S[0],T=S.indexOf(`
42
- `),R=T!==-1,B=t.inFlow??e.flow??e.items.length===0;if(R||!B){let M=!1;if(R&&($==="&"||$==="!")){let V=S.indexOf(" ");$==="&"&&V!==-1&&V<T&&S[V+1]==="!"&&(V=S.indexOf(" ",V+1)),(V===-1||T<V)&&(M=!0)}M||(w=`
43
- ${t.indent}`)}}else(S===""||S[0]===`
44
- `)&&(w="");return O+=w+S,t.inFlow?k&&n&&n():v&&!k?O+=Jo(O,t.indent,d(v)):g&&o&&o(),O}function PP(r,e){(r==="debug"||r==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(e):console.warn(e))}const fg="<<";function Fy(r,e,{key:t,value:n}){if(r!=null&&r.doc.schema.merge&&xP(t))if(n=Vs(n)?n.resolve(r.doc):n,Df(n))for(const o of n.items)nu(r,e,o);else if(Array.isArray(n))for(const o of n)nu(r,e,o);else nu(r,e,n);else{const o=hr(t,"",r);if(e instanceof Map)e.set(o,hr(n,o,r));else if(e instanceof Set)e.add(o);else{const s=_P(t,o,r),i=hr(n,s,r);s in e?Object.defineProperty(e,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):e[s]=i}}return e}const xP=r=>r===fg||Ke(r)&&r.value===fg&&(!r.type||r.type===Le.PLAIN);function nu(r,e,t){const n=r&&Vs(t)?t.resolve(r.doc):t;if(!Yy(n))throw new Error("Merge sources must be maps or map aliases");const o=n.toJSON(null,r,Map);for(const[s,i]of o)e instanceof Map?e.has(s)||e.set(s,i):e instanceof Set?e.add(s):Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{value:i,writable:!0,enumerable:!0,configurable:!0});return e}function _P(r,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(Ct(r)&&(t!=null&&t.doc)){const n=wP(t.doc,{});n.anchors=new Set;for(const s of t.anchors.keys())n.anchors.add(s.anchor);n.inFlow=!0,n.inStringifyKey=!0;const o=r.toString(n);if(!t.mapKeyWarned){let s=JSON.stringify(o);s.length>40&&(s=s.substring(0,36)+'..."'),PP(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return o}return JSON.stringify(e)}function Xf(r,e,t){const n=ac(r,void 0,t),o=ac(e,void 0,t);return new Gr(n,o)}class Gr{constructor(e,t=null){Object.defineProperty(this,qr,{value:Uy}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return Ct(t)&&(t=t.clone(e)),Ct(n)&&(n=n.clone(e)),new Gr(t,n)}toJSON(e,t){const n=t!=null&&t.mapAsMap?new Map:{};return Fy(t,n,this)}toString(e,t,n){return e!=null&&e.doc?$P(this,e,t,n):JSON.stringify(this)}}function Ky(r,e,t){return(e.inFlow??r.flow?TP:CP)(r,e,t)}function CP({comment:r,items:e},t,{blockItemPrefix:n,flowChars:o,itemIndent:s,onChompKeep:i,onComment:l}){const{indent:c,options:{commentString:d}}=t,u=Object.assign({},t,{indent:s,type:null});let h=!1;const f=[];for(let m=0;m<e.length;++m){const g=e[m];let O=null;if(Ct(g))!h&&g.spaceBefore&&f.push(""),lc(t,f,g.commentBefore,h),g.comment&&(O=g.comment);else if(it(g)){const b=Ct(g.key)?g.key:null;b&&(!h&&b.spaceBefore&&f.push(""),lc(t,f,b.commentBefore,h))}h=!1;let y=ic(g,u,()=>O=null,()=>h=!0);O&&(y+=Jo(y,s,d(O))),h&&O&&(h=!1),f.push(n+y)}let p;if(f.length===0)p=o.start+o.end;else{p=f[0];for(let m=1;m<f.length;++m){const g=f[m];p+=g?`
45
- ${c}${g}`:`
46
- `}}return r?(p+=`
47
- `+Fa(d(r),c),l&&l()):h&&i&&i(),p}function TP({items:r},e,{flowChars:t,itemIndent:n}){const{indent:o,indentStep:s,flowCollectionPadding:i,options:{commentString:l}}=e;n+=s;const c=Object.assign({},e,{indent:n,inFlow:!0,type:null});let d=!1,u=0;const h=[];for(let m=0;m<r.length;++m){const g=r[m];let O=null;if(Ct(g))g.spaceBefore&&h.push(""),lc(e,h,g.commentBefore,!1),g.comment&&(O=g.comment);else if(it(g)){const b=Ct(g.key)?g.key:null;b&&(b.spaceBefore&&h.push(""),lc(e,h,b.commentBefore,!1),b.comment&&(d=!0));const v=Ct(g.value)?g.value:null;v?(v.comment&&(O=v.comment),v.commentBefore&&(d=!0)):g.value==null&&(b!=null&&b.comment)&&(O=b.comment)}O&&(d=!0);let y=ic(g,c,()=>O=null);m<r.length-1&&(y+=","),O&&(y+=Jo(y,n,l(O))),!d&&(h.length>u||y.includes(`
48
- `))&&(d=!0),h.push(y),u=h.length}const{start:f,end:p}=t;if(h.length===0)return f+p;if(!d){const m=h.reduce((g,O)=>g+O.length+2,2);d=e.options.lineWidth>0&&m>e.options.lineWidth}if(d){let m=f;for(const g of h)m+=g?`
49
- ${s}${o}${g}`:`
50
- `;return`${m}
51
- ${o}${p}`}else return`${f}${i}${h.join(" ")}${i}${p}`}function lc({indent:r,options:{commentString:e}},t,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){const s=Fa(e(n),r);t.push(s.trimStart())}}function io(r,e){const t=Ke(e)?e.value:e;for(const n of r)if(it(n)&&(n.key===e||n.key===t||Ke(n.key)&&n.key.value===t))return n}class Ho extends qf{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(bo,e),this.items=[]}static from(e,t,n){const{keepUndefined:o,replacer:s}=n,i=new this(e),l=(c,d)=>{if(typeof s=="function")d=s.call(t,c,d);else if(Array.isArray(s)&&!s.includes(c))return;(d!==void 0||o)&&i.items.push(Xf(c,d,n))};if(t instanceof Map)for(const[c,d]of t)l(c,d);else if(t&&typeof t=="object")for(const c of Object.keys(t))l(c,t[c]);return typeof e.sortMapEntries=="function"&&i.items.sort(e.sortMapEntries),i}add(e,t){var i;let n;it(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new Gr(e,e==null?void 0:e.value):n=new Gr(e.key,e.value);const o=io(this.items,n.key),s=(i=this.schema)==null?void 0:i.sortMapEntries;if(o){if(!t)throw new Error(`Key ${n.key} already set`);Ke(o.value)&&Hy(n.value)?o.value.value=n.value:o.value=n.value}else if(s){const l=this.items.findIndex(c=>s(n,c)<0);l===-1?this.items.push(n):this.items.splice(l,0,n)}else this.items.push(n)}delete(e){const t=io(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){const n=io(this.items,e),o=n==null?void 0:n.value;return(!t&&Ke(o)?o.value:o)??void 0}has(e){return!!io(this.items,e)}set(e,t){this.add(new Gr(e,t),!0)}toJSON(e,t,n){const o=n?new n:t!=null&&t.mapAsMap?new Map:{};t!=null&&t.onCreate&&t.onCreate(o);for(const s of this.items)Fy(t,o,s);return o}toString(e,t,n){if(!e)return JSON.stringify(this);for(const o of this.items)if(!it(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Ky(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}class Jy extends qf{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Si,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=rl(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const n=rl(e);if(typeof n!="number")return;const o=this.items[n];return!t&&Ke(o)?o.value:o}has(e){const t=rl(e);return typeof t=="number"&&t<this.items.length}set(e,t){const n=rl(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);const o=this.items[n];Ke(o)&&Hy(t)?o.value=t:this.items[n]=t}toJSON(e,t){const n=[];t!=null&&t.onCreate&&t.onCreate(n);let o=0;for(const s of this.items)n.push(hr(s,String(o++),t));return n}toString(e,t,n){return e?Ky(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){const{replacer:o}=n,s=new this(e);if(t&&Symbol.iterator in Object(t)){let i=0;for(let l of t){if(typeof o=="function"){const c=t instanceof Set?l:String(i++);l=o.call(t,c,l)}s.items.push(ac(l,void 0,n))}}return s}}function rl(r){let e=Ke(r)?r.value:r;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}function QP(r,e,t){const{replacer:n}=t,o=new Jy(r);o.tag="tag:yaml.org,2002:pairs";let s=0;if(e&&Symbol.iterator in Object(e))for(let i of e){typeof n=="function"&&(i=n.call(e,String(s++),i));let l,c;if(Array.isArray(i))if(i.length===2)l=i[0],c=i[1];else throw new TypeError(`Expected [key, value] tuple: ${i}`);else if(i&&i instanceof Object){const d=Object.keys(i);if(d.length===1)l=d[0],c=i[l];else throw new TypeError(`Expected tuple with one key, not ${d.length} keys`)}else l=i;o.items.push(Xf(l,c,t))}return o}class Wf extends Jy{constructor(){super(),this.add=Ho.prototype.add.bind(this),this.delete=Ho.prototype.delete.bind(this),this.get=Ho.prototype.get.bind(this),this.has=Ho.prototype.has.bind(this),this.set=Ho.prototype.set.bind(this),this.tag=Wf.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t!=null&&t.onCreate&&t.onCreate(n);for(const o of this.items){let s,i;if(it(o)?(s=hr(o.key,"",t),i=hr(o.value,s,t)):s=hr(o,"",t),n.has(s))throw new Error("Ordered maps must not include duplicate keys");n.set(s,i)}return n}static from(e,t,n){const o=QP(e,t,n),s=new this;return s.items=o.items,s}}Wf.tag="tag:yaml.org,2002:omap";class zf extends Ho{constructor(e){super(e),this.tag=zf.tag}add(e){let t;it(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new Gr(e.key,null):t=new Gr(e,null),io(this.items,t.key)||this.items.push(t)}get(e,t){const n=io(this.items,e);return!t&&it(n)?Ke(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const n=io(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Gr(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){const{replacer:o}=n,s=new this(e);if(t&&Symbol.iterator in Object(t))for(let i of t)typeof o=="function"&&(i=o.call(t,i,i)),s.items.push(Xf(i,null,n));return s}}zf.tag="tag:yaml.org,2002:set";const eb={parse:r=>{const e=JSON.parse(r);if(typeof e!="object")throw Error("Invalid JSON object");return e},parseSafe(r,e){try{return eb.parse(r)}catch(t){return typeof e=="function"?e(t):e}},stringify:r=>JSON.stringify(r)},cc=r=>typeof r!="string"?!1:!!eb.parseSafe(r,!1);function EP(r){if(r.trim()[0]!=="{")return r;try{return JSON.stringify(JSON.parse(r),null,2)}catch{return r}}async function pg(r,e){const t=e?await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({method:"GET",url:r})}):await fetch(r);t.status!==200&&console.error(`[fetchSpecFromUrl] Failed to fetch the spec at ${r}. ${e?"":"Trying to fetch the spec file without a proxy. The CORS headers must be set properly or the request will fail."}`);const n=e?String((await t.json()).data):await t.text();return EP(n)}const Ge=(r,e,t=0)=>{var o,s,i,l;if(t>5)return null;if((e==null?void 0:e.mode)==="write"&&r.readOnly||(e==null?void 0:e.mode)==="read"&&r.writeOnly)return;if(Array.isArray(r.examples)&&r.examples.length>0)return r.examples[0];if(r.example!==void 0)return r.example;if(r.default!==void 0)return r.default;if(r.enum!==void 0)return r.enum[0];if(r.type==="object"||r.properties!==void 0){const c={};if(r.properties!==void 0&&Object.keys(r.properties).forEach(d=>{var f;const u=r.properties[d],h=e!=null&&e.xml?(f=u.xml)==null?void 0:f.name:void 0;c[h??d]=Ge(u,e,t+1)}),r.anyOf!==void 0?Object.assign(c,Ge(r.anyOf[0]),e,t+1):r.oneOf!==void 0?Object.assign(c,Ge(r.oneOf[0]),e,t+1):r.allOf!==void 0&&Object.assign(c,...r.allOf.map(d=>Ge(d,e,t+1))),r.additionalProperties!==void 0&&r.additionalProperties!==!1){const d=Ge(r.additionalProperties,e,t+1);return d&&typeof d=="object"&&!Array.isArray(d)?{...c,...Ge(r.additionalProperties,e,t+1)}:d===null?null:{...c,someKey:Ge(r.additionalProperties,e,t+1)}}return c}if(r.type==="array"||r.items!==void 0){const c=(s=(o=r==null?void 0:r.items)==null?void 0:o.xml)==null?void 0:s.name,d=!!(e!=null&&e.xml&&((i=r.xml)!=null&&i.wrapped)&&c);if(r.example!==void 0)return d?{[c]:r.example}:r.example;if(r.items){const u=["anyOf","oneOf","allOf"];for(const h of u){if(!r.items[h])continue;const p=(["anyOf","oneOf"].includes(h)?r.items[h].slice(0,1):r.items[h]).map(m=>Ge(m,e,t+1));return d?[{[c]:p}]:p}}if((l=r.items)!=null&&l.type){const u=Ge(r.items,e,t+1);return d?[{[c]:u}]:[u]}return[]}const n={string:(e==null?void 0:e.emptyString)??"",boolean:!0,integer:r.min??1,number:r.min??1,array:[]};if(r.type!==void 0&&n[r.type]!==void 0)return n[r.type];if(Array.isArray(r.oneOf)&&r.oneOf.length>0){const c=r.oneOf[0];return Ge(c,e,t+1)}if(Array.isArray(r.allOf)){let c=null;return r.allOf.forEach(d=>{const u=Ge(d,e,t+1);c=typeof u=="object"&&typeof c=="object"?{...c??{},...u}:Array.isArray(u)&&Array.isArray(c)?[...c??{},...u]:u}),c}return console.warn(`[getExampleFromSchema] Unknown property type "${r.type}".`),null},tb=(...r)=>{let e={httpVersion:"1.1",method:"GET",url:"",path:"",headers:[],headersSize:-1,queryString:[],cookies:[],bodySize:-1};r.forEach(i=>{e={...e,...i,headers:[...e.headers,...i.headers??[]],queryString:[...e.queryString,...i.queryString??[]],cookies:[...e.cookies,...i.cookies??[]]}});const t=e.headers.reduce((i,{name:l,value:c})=>(i[l]=c,i),{}),n=Zy.AxiosHeaders.from(t).normalize(!0);e.headers=Object.entries(n).map(([i,l])=>({name:i,value:l}));const{path:o,...s}=e;return o?{...s,url:`${e.url}${o}`}:s};function ls(r,e,t=!0){var s;return[...r.pathParameters||[],...((s=r.information)==null?void 0:s.parameters)||[]].filter(i=>i.in===e).filter(i=>t&&i.required||!t).map(i=>({name:i.name,description:i.description??null,value:i.example?i.example:i.schema?Ge(i.schema,{mode:"write"}):"",required:i.required??!1,enabled:i.required??!1})).sort((i,l)=>i.required&&!l.required?-1:!i.required&&l.required?1:0)}function NP(r,e){const t=function(o,s,i){let l="";if(o instanceof Array)for(let c=0,d=o.length;c<d;c++)l+=i+t(o[c],s,i+" ")+`
52
- `;else if(typeof o=="object"){let c=!1;l+=i+"<"+s;for(const d in o)d.charAt(0)=="@"?l+=" "+d.substr(1)+'="'+o[d].toString()+'"':c=!0;if(l+=c?">":"/>",c){for(const d in o)d=="#text"?l+=o[d]:d=="#cdata"?l+="<![CDATA["+o[d]+"]]>":d.charAt(0)!="@"&&(l+=t(o[d],d,i+" "));l+=(l.charAt(l.length-1)==`
53
- `?i:"")+"</"+s+">"}}else l+=i+"<"+s+">"+o.toString()+"</"+s+">";return l};let n="";for(const o in r)n+=t(r[o],o,"");return e?n.replace(/\t/g,e):n.replace(/\t|\n/g,"")}function rb(r){if(!r)return r;const e={...r};return Object.keys(e).forEach(t=>{const n=t.replace(/;.*$/,"").replace(/\/.+\+/,"/").trim();e[n]=e[t],t!==n&&delete e[t]}),e}const dc=r=>{try{return JSON.stringify(typeof r=="string"?JSON.parse(r):r,null,2)}catch{return console.log("[prettyPrintJson] Error parsing JSON",r),r}};function AP(r,e){var p,m,g,O;const t=["application/json","application/octet-stream","application/x-www-form-urlencoded","application/xml","multipart/form-data","text/plain"],n=(m=(p=r.information)==null?void 0:p.requestBody)==null?void 0:m.content,o=rb(n),s=t.find(y=>!!(o!=null&&o[y])),i=(g=o==null?void 0:o["application/json"])==null?void 0:g.examples,l=(O=i??{})==null?void 0:O[e??Object.keys(i??{})[0]];if(l)return{postData:{mimeType:"application/json",text:dc(l==null?void 0:l.value)}};const c=ls(r,"body",!1);if(c.length>0)return{postData:{mimeType:"application/json",text:dc(c[0].value)}};const d=ls(r,"formData",!1);if(d.length>0)return{postData:{mimeType:"application/x-www-form-urlencoded",params:d.map(y=>({name:y.name,value:y.value}))}};if(!s)return{postData:void 0};const u=o==null?void 0:o[s],h=[{name:"Content-Type",value:s}],f=u!=null&&u.example?u==null?void 0:u.example:void 0;if(s==="application/json"){const y=u!=null&&u.schema?Ge(u==null?void 0:u.schema,{mode:"write"}):null,b=f??y;return{headers:h,postData:{mimeType:s,text:typeof b=="string"?b:JSON.stringify(b,null,2)}}}if(s==="application/xml"){const y=u!=null&&u.schema?Ge(u==null?void 0:u.schema,{xml:!0,mode:"write"}):null;return{headers:h,postData:{mimeType:s,text:f??NP(y," ")}}}if(s==="application/octet-stream")return{headers:h,postData:{mimeType:s,text:"BINARY"}};if(s==="text/plain"){const y=u!=null&&u.schema?Ge(u==null?void 0:u.schema,{xml:!0,mode:"write"}):null;return{headers:h,postData:{mimeType:s,text:f??y??""}}}if(s==="application/x-www-form-urlencoded")return{headers:h,postData:{mimeType:s}};if(s==="multipart/form-data")return{headers:h,postData:{mimeType:s}}}const sh=(r,e,t)=>{let n=r.path;if((e==null?void 0:e.replaceVariables)===!0){const s=n.match(/{(.*?)}/g);s&&s.forEach(i=>{const l=i.replace(/{|}/g,"");n=n.replace(i,`__${l.toUpperCase()}__`)})}const o=AP(r,t);return{method:r.httpVerb.toUpperCase(),path:n,headers:[...ls(r,"header",e==null?void 0:e.requiredOnly),...(o==null?void 0:o.headers)??[]],postData:o==null?void 0:o.postData,queryString:ls(r,"query",e==null?void 0:e.requiredOnly),cookies:ls(r,"cookie",e==null?void 0:e.requiredOnly)}},ah=()=>({}),Bs=typeof window<"u"?window.__SCALAR__??ah():ah(),RP=()=>({preferredSecurityScheme:null,customSecurity:!1,http:{basic:{username:"",password:""},bearer:{token:""}},apiKey:{token:""},oAuth2:{clientId:"",scopes:[],accessToken:"",state:""}}),nb=a.reactive(Bs["useGlobalStore-authentication"]??RP()),VP=r=>Object.assign(nb,r),qn=()=>({authentication:nb,setAuthentication:VP}),BP=()=>({operation:{},globalSecurity:[]}),Ka=a.reactive(BP()),ZP=r=>{Object.assign(Ka,{...Ka,operation:r})},IP=r=>{Object.assign(Ka,{...Ka,globalSecurity:r})},rd=()=>({openApi:Ka,setOperation:ZP,setGlobalSecurity:IP}),jP=()=>({name:"",url:"",type:"GET",path:"",variables:[],headers:[],query:[],body:"",formData:[]}),nd=a.reactive({}),ob=a.ref([]),vs=a.ref(""),Uf=a.reactive(jP()),DP=r=>{nd[r.responseId]=r,vs.value=r.responseId,ob.value.unshift(r.responseId)},MP=r=>{vs.value=r;const{request:e}=nd[r],t=JSON.parse(JSON.stringify(e));t.body=JSON.stringify(e.body,null,2),Object.assign(Uf,t)},qP=a.computed(()=>vs.value?nd[vs.value].response:null),XP=r=>{Object.assign(Uf,r)},WP=()=>{vs.value=""},zP=a.ref(!0),er=()=>({readOnly:zP,activeRequest:Uf,activeResponse:qP,requestHistory:nd,requestHistoryOrder:ob,activeRequestId:vs,setActiveResponse:MP,resetActiveResponse:WP,addRequestToHistory:DP,setActiveRequest:XP}),UP=[{name:"Accept",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept"},{name:"Accept-CH",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-CH"},{name:"Accept-CH-Lifetime",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-CH-Lifetime"},{name:"Accept-Charset",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Charset"},{name:"Accept-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding"},{name:"Accept-Language",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language"},{name:"Accept-Patch",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Patch"},{name:"Accept-Post",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Post"},{name:"Accept-Ranges",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Ranges"},{name:"Access-Control-Allow-Credentials",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials"},{name:"Access-Control-Allow-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers"},{name:"Access-Control-Allow-Methods",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods"},{name:"Access-Control-Allow-Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin"},{name:"Access-Control-Expose-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers"},{name:"Access-Control-Max-Age",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age"},{name:"Access-Control-Request-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Headers"},{name:"Access-Control-Request-Method",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Method"},{name:"Age",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Age"},{name:"Allow",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Allow"},{name:"Alt-Svc",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Alt-Svc"},{name:"Alt-Used",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Alt-Used"},{name:"Authorization",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization"},{name:"Cache-Control",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control"},{name:"Clear-Site-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data"},{name:"Connection",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Connection"},{name:"Content-Disposition",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition"},{name:"Content-DPR",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-DPR"},{name:"Content-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding"},{name:"Content-Language",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Language"},{name:"Content-Length",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length"},{name:"Content-Location",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Location"},{name:"Content-Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range"},{name:"Content-Security-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy"},{name:"Content-Security-Policy-Report-Only",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only"},{name:"Content-Type",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type"},{name:"Cookie",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cookie"},{name:"Critical-CH",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Critical-CH"},{name:"Cross-Origin-Embedder-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy"},{name:"Cross-Origin-Opener-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Opener-Policy"},{name:"Cross-Origin-Resource-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Resource-Policy"},{name:"Date",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date"},{name:"Device-Memory",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Device-Memory"},{name:"Digest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Digest"},{name:"DNT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DNT"},{name:"Downlink",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Downlink"},{name:"DPR",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DPR"},{name:"Early-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Early-Data"},{name:"ECT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ECT"},{name:"ETag",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag"},{name:"Expect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect"},{name:"Expect-CT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT"},{name:"Expires",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires"},{name:"Forwarded",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded"},{name:"From",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/From"},{name:"Host",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host"},{name:"If-Match",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match"},{name:"If-Modified-Since",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since"},{name:"If-None-Match",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match"},{name:"If-Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Range"},{name:"If-Unmodified-Since",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since"},{name:"Keep-Alive",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive"},{name:"Large-Allocation",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Large-Allocation"},{name:"Last-Modified",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified"},{name:"Link",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Link"},{name:"Location",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location"},{name:"Max-Forwards",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Max-Forwards"},{name:"NEL",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/NEL"},{name:"Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin"},{name:"Permissions-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy"},{name:"Pragma",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Pragma"},{name:"Proxy-Authenticate",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authenticate"},{name:"Proxy-Authorization",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authorization"},{name:"Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range"},{name:"Referer",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer"},{name:"Referrer-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy"},{name:"Retry-After",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After"},{name:"RTT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/RTT"},{name:"Save-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Save-Data"},{name:"Sec-CH-Prefers-Reduced-Motion",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Motion"},{name:"Sec-CH-Prefers-Reduced-Transparency",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Transparency"},{name:"Sec-CH-UA",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA"},{name:"Sec-CH-UA-Arch",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Arch"},{name:"Sec-CH-UA-Bitness",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Bitness"},{name:"Sec-CH-UA-Full-Version",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Full-Version"},{name:"Sec-CH-UA-Full-Version-List",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Full-Version-List"},{name:"Sec-CH-UA-Mobile",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Mobile"},{name:"Sec-CH-UA-Model",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Model"},{name:"Sec-CH-UA-Platform",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Platform"},{name:"Sec-CH-UA-Platform-Version",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Platform-Version"},{name:"Sec-Fetch-Dest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Dest"},{name:"Sec-Fetch-Mode",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Mode"},{name:"Sec-Fetch-Site",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Site"},{name:"Sec-Fetch-User",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-User"},{name:"Sec-GPC",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-GPC"},{name:"Sec-Purpose",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Purpose"},{name:"Sec-WebSocket-Accept",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-WebSocket-Accept"},{name:"Server",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server"},{name:"Server-Timing",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing"},{name:"Service-Worker-Navigation-Preload",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Service-Worker-Navigation-Preload"},{name:"Set-Cookie",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie"},{name:"SourceMap",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/SourceMap"},{name:"Strict-Transport-Security",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security"},{name:"TE",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/TE"},{name:"Timing-Allow-Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Timing-Allow-Origin"},{name:"Tk",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Tk"},{name:"Trailer",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Trailer"},{name:"Transfer-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding"},{name:"Upgrade",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade"},{name:"Upgrade-Insecure-Requests",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade-Insecure-Requests"},{name:"User-Agent",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent"},{name:"Vary",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Vary"},{name:"Via",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Via"},{name:"Viewport-Width",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Viewport-Width"},{name:"Want-Digest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Want-Digest"},{name:"Warning",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Warning"},{name:"Width",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Width"},{name:"WWW-Authenticate",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate"},{name:"X-Content-Type-Options",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options"},{name:"X-DNS-Prefetch-Control",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-DNS-Prefetch-Control"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Forwarded-For",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Forwarded-Host",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Forwarded-Proto",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Frame-Options",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options"},{name:"X-XSS-Protection",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection"},{name:"Cf-Cache-Status",url:"https://developers.cloudflare.com/cache/concepts/default-cache-behavior/#cloudflare-cache-responses"},{name:"Cf-Ray",url:"https://developers.cloudflare.com/fundamentals/get-started/reference/http-request-headers/#cf-ray"},{name:"Report-To",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-to"}],sb=["GET","POST","PUT","HEAD","DELETE","PATCH","OPTIONS","CONNECT","TRACE"];function ih(r){return sb.includes(r)}const YP={POST:"var(--scalar-color-green)",DELETE:"var(--scalar-color-red)",PATCH:"var(--scalar-color-yellow)",GET:"var(--scalar-color-blue)",PUT:"var(--scalar-color-orange)",OPTIONS:"var(--scalar-color-purple)",HEAD:"var(--scalar-color-2)",CONNECT:"var(--scalar-color-2)",TRACE:"var(--scalar-color-2)"},LP={POST:"POST",DELETE:"DEL",PATCH:"PATCH",GET:"GET",PUT:"PUT",OPTIONS:"OPTS",HEAD:"HEAD",CONNECT:"CONN",TRACE:"TRACE"},HP={100:{name:"Continue",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100"},101:{name:"Switching Protocols",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/101"},102:{name:"Processing",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/102"},103:{name:"Early Hints",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103"},200:{name:"OK",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200"},201:{name:"Created",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201"},202:{name:"Accepted",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/202"},203:{name:"Non-Authoritative Information",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/203"},204:{name:"No Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204"},205:{name:"Reset Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/205"},206:{name:"Partial Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206"},207:{name:"Multi-Status",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/207"},208:{name:"Already Reported",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/208"},226:{name:"IM Used",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/226"},300:{name:"Multiple Choices",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/300"},301:{name:"Moved Permanently",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301"},302:{name:"Found",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302"},303:{name:"See Other",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/303"},304:{name:"Not Modified",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/304"},305:{name:"Use Proxy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/305"},306:{name:"(Unused)",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/306"},307:{name:"Temporary Redirect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307"},308:{name:"Permanent Redirect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308"},400:{name:"Bad Request",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400"},401:{name:"Unauthorized",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401"},402:{name:"Payment Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/402"},403:{name:"Forbidden",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403"},404:{name:"Not Found",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404"},405:{name:"Method Not Allowed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405"},406:{name:"Not Acceptable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406"},407:{name:"Proxy Authentication Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/407"},408:{name:"Request Timeout",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408"},409:{name:"Conflict",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409"},410:{name:"Gone",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/410"},411:{name:"Length Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/411"},412:{name:"Precondition Failed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/412"},413:{name:"Content Too Large",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413"},414:{name:"URI Too Long",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414"},415:{name:"Unsupported Media Type",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415"},416:{name:"Range Not Satisfiable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/416"},417:{name:"Expectation Failed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/417"},421:{name:"Misdirected Request",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/421"},422:{name:"Unprocessable Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422"},423:{name:"Locked",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/423"},424:{name:"Failed Dependency",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/424"},425:{name:"Too Early",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/425"},426:{name:"Upgrade Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426"},428:{name:"Precondition Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/428"},429:{name:"Too Many Requests",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429"},431:{name:"Request Header Fields Too Large",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431"},451:{name:"Unavailable For Legal Reasons",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/451"},500:{name:"Internal Server Error",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500"},501:{name:"Not Implemented",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/501"},502:{name:"Bad Gateway",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502"},503:{name:"Service Unavailable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503"},504:{name:"Gateway Timeout",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504"},505:{name:"HTTP Version Not Supported",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/505"},506:{name:"Variant Also Negotiates",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/506"},507:{name:"Insufficient Storage",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/507"},508:{name:"Loop Detected",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/508"},510:{name:"Not Extended",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/510"},511:{name:"Network Authentication Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/511"}},Eo=a.defineComponent({__name:"HttpMethod",props:{as:{},property:{},short:{type:Boolean},method:{}},setup(r){const e=r,t=a.computed(()=>e.method.trim().toUpperCase()),n=a.computed(()=>ih(t.value)?LP[t.value]:t.value.slice(0,4)),o=a.computed(()=>ih(t.value)?YP[t.value]:"var(--scalar-color-ghost)");return(s,i)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(s.as??"span"),{style:a.normalizeStyle({[s.property||"color"]:o.value})},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"default",a.normalizeProps(a.guardReactiveProps({normalized:t.value,abbreviated:n.value,color:o.value})),()=>[a.createTextVNode(a.toDisplayString(s.short?n.value:t.value),1)])]),_:3},8,["style"]))}});class ke{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=ws(this,e,t);let o=[];return this.decompose(0,e,o,2),n.length&&n.decompose(0,n.length,o,3),this.decompose(t,this.length,o,1),Qr.from(o,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=ws(this,e,t);let n=[];return this.decompose(e,t,n,0),Qr.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),o=new ja(this),s=new ja(e);for(let i=t,l=t;;){if(o.next(i),s.next(i),i=0,o.lineBreak!=s.lineBreak||o.done!=s.done||o.value!=s.value)return!1;if(l+=o.value.length,o.done||l>=n)return!0}}iter(e=1){return new ja(this,e)}iterRange(e,t=this.length){return new ab(this,e,t)}iterLines(e,t){let n;if(e==null)n=this.iter();else{t==null&&(t=this.lines+1);let o=this.line(e).from;n=this.iterRange(o,Math.max(o,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new ib(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?ke.empty:e.length<=32?new We(e):Qr.from(We.split(e,[]))}}class We extends ke{constructor(e,t=GP(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,o){for(let s=0;;s++){let i=this.text[s],l=o+i.length;if((t?n:l)>=e)return new FP(o,l,n,i);o=l+1,n++}}decompose(e,t,n,o){let s=e<=0&&t>=this.length?this:new We(mg(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(o&1){let i=n.pop(),l=jl(s.text,i.text.slice(),0,s.length);if(l.length<=32)n.push(new We(l,i.length+s.length));else{let c=l.length>>1;n.push(new We(l.slice(0,c)),new We(l.slice(c)))}}else n.push(s)}replace(e,t,n){if(!(n instanceof We))return super.replace(e,t,n);[e,t]=ws(this,e,t);let o=jl(this.text,jl(n.text,mg(this.text,0,e)),t),s=this.length+n.length-(t-e);return o.length<=32?new We(o,s):Qr.from(We.split(o,[]),s)}sliceString(e,t=this.length,n=`
54
- `){[e,t]=ws(this,e,t);let o="";for(let s=0,i=0;s<=t&&i<this.text.length;i++){let l=this.text[i],c=s+l.length;s>e&&i&&(o+=n),e<c&&t>s&&(o+=l.slice(Math.max(0,e-s),t-s)),s=c+1}return o}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],o=-1;for(let s of e)n.push(s),o+=s.length+1,n.length==32&&(t.push(new We(n,o)),n=[],o=-1);return o>-1&&t.push(new We(n,o)),t}}class Qr extends ke{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,o){for(let s=0;;s++){let i=this.children[s],l=o+i.length,c=n+i.lines-1;if((t?c:l)>=e)return i.lineInner(e,t,n,o);o=l+1,n=c+1}}decompose(e,t,n,o){for(let s=0,i=0;i<=t&&s<this.children.length;s++){let l=this.children[s],c=i+l.length;if(e<=c&&t>=i){let d=o&((i<=e?1:0)|(c>=t?2:0));i>=e&&c<=t&&!d?n.push(l):l.decompose(e-i,t-i,n,d)}i=c+1}}replace(e,t,n){if([e,t]=ws(this,e,t),n.lines<this.lines)for(let o=0,s=0;o<this.children.length;o++){let i=this.children[o],l=s+i.length;if(e>=s&&t<=l){let c=i.replace(e-s,t-s,n),d=this.lines-i.lines+c.lines;if(c.lines<d>>4&&c.lines>d>>6){let u=this.children.slice();return u[o]=c,new Qr(u,this.length-(t-e)+n.length)}return super.replace(s,l,c)}s=l+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n=`
55
- `){[e,t]=ws(this,e,t);let o="";for(let s=0,i=0;s<this.children.length&&i<=t;s++){let l=this.children[s],c=i+l.length;i>e&&s&&(o+=n),e<c&&t>i&&(o+=l.sliceString(e-i,t-i,n)),i=c+1}return o}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Qr))return 0;let n=0,[o,s,i,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;o+=t,s+=t){if(o==i||s==l)return n;let c=this.children[o],d=e.children[s];if(c!=d)return n+c.scanIdentical(d,t);n+=c.length+1}}static from(e,t=e.reduce((n,o)=>n+o.length+1,-1)){let n=0;for(let p of e)n+=p.lines;if(n<32){let p=[];for(let m of e)m.flatten(p);return new We(p,t)}let o=Math.max(32,n>>5),s=o<<1,i=o>>1,l=[],c=0,d=-1,u=[];function h(p){let m;if(p.lines>s&&p instanceof Qr)for(let g of p.children)h(g);else p.lines>i&&(c>i||!c)?(f(),l.push(p)):p instanceof We&&c&&(m=u[u.length-1])instanceof We&&p.lines+m.lines<=32?(c+=p.lines,d+=p.length+1,u[u.length-1]=new We(m.text.concat(p.text),m.length+1+p.length)):(c+p.lines>o&&f(),c+=p.lines,d+=p.length+1,u.push(p))}function f(){c!=0&&(l.push(u.length==1?u[0]:Qr.from(u,d)),d=-1,c=u.length=0)}for(let p of e)h(p);return f(),l.length==1?l[0]:new Qr(l,t)}}ke.empty=new We([""],0);function GP(r){let e=-1;for(let t of r)e+=t.length+1;return e}function jl(r,e,t=0,n=1e9){for(let o=0,s=0,i=!0;s<r.length&&o<=n;s++){let l=r[s],c=o+l.length;c>=t&&(c>n&&(l=l.slice(0,n-o)),o<t&&(l=l.slice(t-o)),i?(e[e.length-1]+=l,i=!1):e.push(l)),o=c+1}return e}function mg(r,e,t){return jl(r,[""],e,t)}class ja{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof We?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,o=this.nodes[n],s=this.offsets[n],i=s>>1,l=o instanceof We?o.text.length:o.children.length;if(i==(t>0?l:0)){if(n==0)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(t>0?0:1)){if(this.offsets[n]+=t,e==0)return this.lineBreak=!0,this.value=`
56
- `,this;e--}else if(o instanceof We){let c=o.text[i+(t<0?-1:0)];if(this.offsets[n]+=t,c.length>Math.max(0,e))return this.value=e==0?c:t>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=o.children[i+(t<0?-1:0)];e>c.length?(e-=c.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(c),this.offsets.push(t>0?1:(c instanceof We?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class ab{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new ja(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:o}=this.cursor.next(e);return this.pos+=(o.length+e)*t,this.value=o.length<=n?o:t<0?o.slice(o.length-n):o.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class ib{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:o}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=o,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(ke.prototype[Symbol.iterator]=function(){return this.iter()},ja.prototype[Symbol.iterator]=ab.prototype[Symbol.iterator]=ib.prototype[Symbol.iterator]=function(){return this});class FP{constructor(e,t,n,o){this.from=e,this.to=t,this.number=n,this.text=o}get length(){return this.to-this.from}}function ws(r,e,t){return e=Math.max(0,Math.min(r.length,e)),[e,Math.max(e,Math.min(r.length,t))]}let cs="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(r=>r?parseInt(r,36):1);for(let r=1;r<cs.length;r++)cs[r]+=cs[r-1];function KP(r){for(let e=1;e<cs.length;e+=2)if(cs[e]>r)return cs[e-1]<=r;return!1}function gg(r){return r>=127462&&r<=127487}const Og=8205;function Ar(r,e,t=!0,n=!0){return(t?lb:JP)(r,e,n)}function lb(r,e,t){if(e==r.length)return e;e&&cb(r.charCodeAt(e))&&db(r.charCodeAt(e-1))&&e--;let n=dt(r,e);for(e+=lr(n);e<r.length;){let o=dt(r,e);if(n==Og||o==Og||t&&KP(o))e+=lr(o),n=o;else if(gg(o)){let s=0,i=e-2;for(;i>=0&&gg(dt(r,i));)s++,i-=2;if(s%2==0)break;e+=2}else break}return e}function JP(r,e,t){for(;e>0;){let n=lb(r,e-2,t);if(n<e)return n;e--}return 0}function cb(r){return r>=56320&&r<57344}function db(r){return r>=55296&&r<56320}function dt(r,e){let t=r.charCodeAt(e);if(!db(t)||e+1==r.length)return t;let n=r.charCodeAt(e+1);return cb(n)?(t-55296<<10)+(n-56320)+65536:t}function ub(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}function lr(r){return r<65536?1:2}const lh=/\r\n?|\n/;var ut=function(r){return r[r.Simple=0]="Simple",r[r.TrackDel=1]="TrackDel",r[r.TrackBefore=2]="TrackBefore",r[r.TrackAfter=3]="TrackAfter",r}(ut||(ut={}));class Fr{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,o=0;t<this.sections.length;){let s=this.sections[t++],i=this.sections[t++];i<0?(e(n,o,s),o+=s):o+=i,n+=s}}iterChangedRanges(e,t=!1){ch(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],o=this.sections[t++];o<0?e.push(n,o):e.push(o,n)}return new Fr(e)}composeDesc(e){return this.empty?e:e.empty?this:hb(this,e)}mapDesc(e,t=!1){return e.empty?this:dh(this,e,t)}mapPos(e,t=-1,n=ut.Simple){let o=0,s=0;for(let i=0;i<this.sections.length;){let l=this.sections[i++],c=this.sections[i++],d=o+l;if(c<0){if(d>e)return s+(e-o);s+=l}else{if(n!=ut.Simple&&d>=e&&(n==ut.TrackDel&&o<e&&d>e||n==ut.TrackBefore&&o<e||n==ut.TrackAfter&&d>e))return null;if(d>e||d==e&&t<0&&!l)return e==o||t<0?s:s+c;s+=c}o=d}if(e>o)throw new RangeError(`Position ${e} is out of range for changeset of length ${o}`);return s}touchesRange(e,t=e){for(let n=0,o=0;n<this.sections.length&&o<=t;){let s=this.sections[n++],i=this.sections[n++],l=o+s;if(i>=0&&o<=t&&l>=e)return o<e&&l>t?"cover":!0;o=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],o=this.sections[t++];e+=(e?" ":"")+n+(o>=0?":"+o:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Fr(e)}static create(e){return new Fr(e)}}class et extends Fr{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return ch(this,(t,n,o,s,i)=>e=e.replace(o,o+(n-t),i),!1),e}mapDesc(e,t=!1){return dh(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let o=0,s=0;o<t.length;o+=2){let i=t[o],l=t[o+1];if(l>=0){t[o]=l,t[o+1]=i;let c=o>>1;for(;n.length<c;)n.push(ke.empty);n.push(i?e.slice(s,s+i):ke.empty)}s+=i}return new et(t,n)}compose(e){return this.empty?e:e.empty?this:hb(this,e,!0)}map(e,t=!1){return e.empty?this:dh(this,e,t,!0)}iterChanges(e,t=!1){ch(this,e,t)}get desc(){return Fr.create(this.sections)}filter(e){let t=[],n=[],o=[],s=new Ja(this);e:for(let i=0,l=0;;){let c=i==e.length?1e9:e[i++];for(;l<c||l==c&&s.len==0;){if(s.done)break e;let u=Math.min(s.len,c-l);ct(o,u,-1);let h=s.ins==-1?-1:s.off==0?s.ins:0;ct(t,u,h),h>0&&xn(n,t,s.text),s.forward(u),l+=u}let d=e[i++];for(;l<d;){if(s.done)break e;let u=Math.min(s.len,d-l);ct(t,u,-1),ct(o,u,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(u),l+=u}}return{changes:new et(t,n),filtered:Fr.create(o)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],o=this.sections[t+1];o<0?e.push(n):o==0?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let o=[],s=[],i=0,l=null;function c(u=!1){if(!u&&!o.length)return;i<t&&ct(o,t-i,-1);let h=new et(o,s);l=l?l.compose(h.map(l)):h,o=[],s=[],i=0}function d(u){if(Array.isArray(u))for(let h of u)d(h);else if(u instanceof et){if(u.length!=t)throw new RangeError(`Mismatched change set length (got ${u.length}, expected ${t})`);c(),l=l?l.compose(u.map(l)):u}else{let{from:h,to:f=h,insert:p}=u;if(h>f||h<0||f>t)throw new RangeError(`Invalid change range ${h} to ${f} (in doc of length ${t})`);let m=p?typeof p=="string"?ke.of(p.split(n||lh)):p:ke.empty,g=m.length;if(h==f&&g==0)return;h<i&&c(),h>i&&ct(o,h-i,-1),ct(o,f-h,g),xn(s,o,m),i=f}}return d(e),c(!l),l}static empty(e){return new et(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let o=0;o<e.length;o++){let s=e[o];if(typeof s=="number")t.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((i,l)=>l&&typeof i!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)t.push(s[0],0);else{for(;n.length<o;)n.push(ke.empty);n[o]=ke.of(s.slice(1)),t.push(s[0],n[o].length)}}}return new et(t,n)}static createSet(e,t){return new et(e,t)}}function ct(r,e,t,n=!1){if(e==0&&t<=0)return;let o=r.length-2;o>=0&&t<=0&&t==r[o+1]?r[o]+=e:e==0&&r[o]==0?r[o+1]+=t:n?(r[o]+=e,r[o+1]+=t):r.push(e,t)}function xn(r,e,t){if(t.length==0)return;let n=e.length-2>>1;if(n<r.length)r[r.length-1]=r[r.length-1].append(t);else{for(;r.length<n;)r.push(ke.empty);r.push(t)}}function ch(r,e,t){let n=r.inserted;for(let o=0,s=0,i=0;i<r.sections.length;){let l=r.sections[i++],c=r.sections[i++];if(c<0)o+=l,s+=l;else{let d=o,u=s,h=ke.empty;for(;d+=l,u+=c,c&&n&&(h=h.append(n[i-2>>1])),!(t||i==r.sections.length||r.sections[i+1]<0);)l=r.sections[i++],c=r.sections[i++];e(o,d,s,u,h),o=d,s=u}}}function dh(r,e,t,n=!1){let o=[],s=n?[]:null,i=new Ja(r),l=new Ja(e);for(let c=-1;;)if(i.ins==-1&&l.ins==-1){let d=Math.min(i.len,l.len);ct(o,d,-1),i.forward(d),l.forward(d)}else if(l.ins>=0&&(i.ins<0||c==i.i||i.off==0&&(l.len<i.len||l.len==i.len&&!t))){let d=l.len;for(ct(o,l.ins,-1);d;){let u=Math.min(i.len,d);i.ins>=0&&c<i.i&&i.len<=u&&(ct(o,0,i.ins),s&&xn(s,o,i.text),c=i.i),i.forward(u),d-=u}l.next()}else if(i.ins>=0){let d=0,u=i.len;for(;u;)if(l.ins==-1){let h=Math.min(u,l.len);d+=h,u-=h,l.forward(h)}else if(l.ins==0&&l.len<u)u-=l.len,l.next();else break;ct(o,d,c<i.i?i.ins:0),s&&c<i.i&&xn(s,o,i.text),c=i.i,i.forward(i.len-u)}else{if(i.done&&l.done)return s?et.createSet(o,s):Fr.create(o);throw new Error("Mismatched change set lengths")}}function hb(r,e,t=!1){let n=[],o=t?[]:null,s=new Ja(r),i=new Ja(e);for(let l=!1;;){if(s.done&&i.done)return o?et.createSet(n,o):Fr.create(n);if(s.ins==0)ct(n,s.len,0,l),s.next();else if(i.len==0&&!i.done)ct(n,0,i.ins,l),o&&xn(o,n,i.text),i.next();else{if(s.done||i.done)throw new Error("Mismatched change set lengths");{let c=Math.min(s.len2,i.len),d=n.length;if(s.ins==-1){let u=i.ins==-1?-1:i.off?0:i.ins;ct(n,c,u,l),o&&u&&xn(o,n,i.text)}else i.ins==-1?(ct(n,s.off?0:s.len,c,l),o&&xn(o,n,s.textBit(c))):(ct(n,s.off?0:s.len,i.off?0:i.ins,l),o&&!i.off&&xn(o,n,i.text));l=(s.ins>c||i.ins>=0&&i.len>c)&&(l||n.length>d),s.forward2(c),i.forward(c)}}}}class Ja{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?ke.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?ke.empty:t[n].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class lo{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let n,o;return this.empty?n=o=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),o=e.mapPos(this.to,-1)),n==this.from&&o==this.to?this:new lo(n,o,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return Y.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return Y.range(this.anchor,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Y.range(e.anchor,e.head)}static create(e,t,n){return new lo(e,t,n)}}class Y{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:Y.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new Y([this.main],0)}addRange(e,t=!0){return Y.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,Y.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Y(e.ranges.map(t=>lo.fromJSON(t)),e.main)}static single(e,t=e){return new Y([Y.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,o=0;o<e.length;o++){let s=e[o];if(s.empty?s.from<=n:s.from<n)return Y.normalized(e.slice(),t);n=s.to}return new Y(e,t)}static cursor(e,t=0,n,o){return lo.create(e,e,(t==0?0:t<0?8:16)|(n==null?7:Math.min(6,n))|(o??16777215)<<6)}static range(e,t,n,o){let s=(n??16777215)<<6|(o==null?7:Math.min(6,o));return t<e?lo.create(t,e,48|s):lo.create(e,t,(t>e?8:0)|s)}static normalized(e,t=0){let n=e[t];e.sort((o,s)=>o.from-s.from),t=e.indexOf(n);for(let o=1;o<e.length;o++){let s=e[o],i=e[o-1];if(s.empty?s.from<=i.to:s.from<i.to){let l=i.from,c=Math.max(s.to,i.to);o<=t&&t--,e.splice(--o,2,s.anchor>s.head?Y.range(c,l):Y.range(l,c))}}return new Y(e,t)}}function fb(r,e){for(let t of r.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let Yf=0;class ee{constructor(e,t,n,o,s){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=o,this.id=Yf++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new ee(e.combine||(t=>t),e.compareInput||((t,n)=>t===n),e.compare||(e.combine?(t,n)=>t===n:Lf),!!e.static,e.enables)}of(e){return new Dl([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Dl(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Dl(e,this,2,t)}from(e,t){return t||(t=n=>n),this.compute([e],n=>t(n.field(e)))}}function Lf(r,e){return r==e||r.length==e.length&&r.every((t,n)=>t===e[n])}class Dl{constructor(e,t,n,o){this.dependencies=e,this.facet=t,this.type=n,this.value=o,this.id=Yf++}dynamicSlot(e){var t;let n=this.value,o=this.facet.compareInput,s=this.id,i=e[s]>>1,l=this.type==2,c=!1,d=!1,u=[];for(let h of this.dependencies)h=="doc"?c=!0:h=="selection"?d=!0:((t=e[h.id])!==null&&t!==void 0?t:1)&1||u.push(e[h.id]);return{create(h){return h.values[i]=n(h),1},update(h,f){if(c&&f.docChanged||d&&(f.docChanged||f.selection)||uh(h,u)){let p=n(h);if(l?!yg(p,h.values[i],o):!o(p,h.values[i]))return h.values[i]=p,1}return 0},reconfigure:(h,f)=>{let p,m=f.config.address[s];if(m!=null){let g=hc(f,m);if(this.dependencies.every(O=>O instanceof ee?f.facet(O)===h.facet(O):O instanceof yr?f.field(O,!1)==h.field(O,!1):!0)||(l?yg(p=n(h),g,o):o(p=n(h),g)))return h.values[i]=g,0}else p=n(h);return h.values[i]=p,1}}}}function yg(r,e,t){if(r.length!=e.length)return!1;for(let n=0;n<r.length;n++)if(!t(r[n],e[n]))return!1;return!0}function uh(r,e){let t=!1;for(let n of e)Da(r,n)&1&&(t=!0);return t}function ex(r,e,t){let n=t.map(c=>r[c.id]),o=t.map(c=>c.type),s=n.filter(c=>!(c&1)),i=r[e.id]>>1;function l(c){let d=[];for(let u=0;u<n.length;u++){let h=hc(c,n[u]);if(o[u]==2)for(let f of h)d.push(f);else d.push(h)}return e.combine(d)}return{create(c){for(let d of n)Da(c,d);return c.values[i]=l(c),1},update(c,d){if(!uh(c,s))return 0;let u=l(c);return e.compare(u,c.values[i])?0:(c.values[i]=u,1)},reconfigure(c,d){let u=uh(c,n),h=d.config.facets[e.id],f=d.facet(e);if(h&&!u&&Lf(t,h))return c.values[i]=f,0;let p=l(c);return e.compare(p,f)?(c.values[i]=f,0):(c.values[i]=p,1)}}}const bg=ee.define({static:!0});class yr{constructor(e,t,n,o,s){this.id=e,this.createF=t,this.updateF=n,this.compareF=o,this.spec=s,this.provides=void 0}static define(e){let t=new yr(Yf++,e.create,e.update,e.compare||((n,o)=>n===o),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(bg).find(n=>n.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:n=>(n.values[t]=this.create(n),1),update:(n,o)=>{let s=n.values[t],i=this.updateF(s,o);return this.compareF(s,i)?0:(n.values[t]=i,1)},reconfigure:(n,o)=>o.config.address[this.id]!=null?(n.values[t]=o.field(this),0):(n.values[t]=this.create(n),1)}}init(e){return[this,bg.of({field:this,create:e})]}get extension(){return this}}const to={lowest:4,low:3,default:2,high:1,highest:0};function ma(r){return e=>new pb(e,r)}const $i={highest:ma(to.highest),high:ma(to.high),default:ma(to.default),low:ma(to.low),lowest:ma(to.lowest)};class pb{constructor(e,t){this.inner=e,this.prec=t}}class od{of(e){return new hh(this,e)}reconfigure(e){return od.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class hh{constructor(e,t){this.compartment=e,this.inner=t}}class uc{constructor(e,t,n,o,s,i){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=o,this.staticValues=s,this.facets=i,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let o=[],s=Object.create(null),i=new Map;for(let f of tx(e,t,i))f instanceof yr?o.push(f):(s[f.facet.id]||(s[f.facet.id]=[])).push(f);let l=Object.create(null),c=[],d=[];for(let f of o)l[f.id]=d.length<<1,d.push(p=>f.slot(p));let u=n==null?void 0:n.config.facets;for(let f in s){let p=s[f],m=p[0].facet,g=u&&u[f]||[];if(p.every(O=>O.type==0))if(l[m.id]=c.length<<1|1,Lf(g,p))c.push(n.facet(m));else{let O=m.combine(p.map(y=>y.value));c.push(n&&m.compare(O,n.facet(m))?n.facet(m):O)}else{for(let O of p)O.type==0?(l[O.id]=c.length<<1|1,c.push(O.value)):(l[O.id]=d.length<<1,d.push(y=>O.dynamicSlot(y)));l[m.id]=d.length<<1,d.push(O=>ex(O,m,p))}}let h=d.map(f=>f(l));return new uc(e,i,h,l,c,s)}}function tx(r,e,t){let n=[[],[],[],[],[]],o=new Map;function s(i,l){let c=o.get(i);if(c!=null){if(c<=l)return;let d=n[c].indexOf(i);d>-1&&n[c].splice(d,1),i instanceof hh&&t.delete(i.compartment)}if(o.set(i,l),Array.isArray(i))for(let d of i)s(d,l);else if(i instanceof hh){if(t.has(i.compartment))throw new RangeError("Duplicate use of compartment in extensions");let d=e.get(i.compartment)||i.inner;t.set(i.compartment,d),s(d,l)}else if(i instanceof pb)s(i.inner,i.prec);else if(i instanceof yr)n[l].push(i),i.provides&&s(i.provides,l);else if(i instanceof Dl)n[l].push(i),i.facet.extensions&&s(i.facet.extensions,to.default);else{let d=i.extension;if(!d)throw new Error(`Unrecognized extension value in extension set (${i}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(d,l)}}return s(r,to.default),n.reduce((i,l)=>i.concat(l))}function Da(r,e){if(e&1)return 2;let t=e>>1,n=r.status[t];if(n==4)throw new Error("Cyclic dependency between fields and/or facets");if(n&2)return n;r.status[t]=4;let o=r.computeSlot(r,r.config.dynamicSlots[t]);return r.status[t]=2|o}function hc(r,e){return e&1?r.config.staticValues[e>>1]:r.values[e>>1]}const mb=ee.define(),fh=ee.define({combine:r=>r.some(e=>e),static:!0}),gb=ee.define({combine:r=>r.length?r[0]:void 0,static:!0}),Ob=ee.define(),yb=ee.define(),bb=ee.define(),vb=ee.define({combine:r=>r.length?r[0]:!1});class No{constructor(e,t){this.type=e,this.value=t}static define(){return new rx}}class rx{of(e){return new No(this,e)}}class nx{constructor(e){this.map=e}of(e){return new _e(this,e)}}class _e{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new _e(this.type,t)}is(e){return this.type==e}static define(e={}){return new nx(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let o of e){let s=o.map(t);s&&n.push(s)}return n}}_e.reconfigure=_e.define();_e.appendConfig=_e.define();class at{constructor(e,t,n,o,s,i){this.startState=e,this.changes=t,this.selection=n,this.effects=o,this.annotations=s,this.scrollIntoView=i,this._doc=null,this._state=null,n&&fb(n,t.newLength),s.some(l=>l.type==at.time)||(this.annotations=s.concat(at.time.of(Date.now())))}static create(e,t,n,o,s,i){return new at(e,t,n,o,s,i)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(at.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}at.time=No.define();at.userEvent=No.define();at.addToHistory=No.define();at.remote=No.define();function ox(r,e){let t=[];for(let n=0,o=0;;){let s,i;if(n<r.length&&(o==e.length||e[o]>=r[n]))s=r[n++],i=r[n++];else if(o<e.length)s=e[o++],i=e[o++];else return t;!t.length||t[t.length-1]<s?t.push(s,i):t[t.length-1]<i&&(t[t.length-1]=i)}}function wb(r,e,t){var n;let o,s,i;return t?(o=e.changes,s=et.empty(e.changes.length),i=r.changes.compose(e.changes)):(o=e.changes.map(r.changes),s=r.changes.mapDesc(e.changes,!0),i=r.changes.compose(o)),{changes:i,selection:e.selection?e.selection.map(s):(n=r.selection)===null||n===void 0?void 0:n.map(o),effects:_e.mapEffects(r.effects,o).concat(_e.mapEffects(e.effects,s)),annotations:r.annotations.length?r.annotations.concat(e.annotations):e.annotations,scrollIntoView:r.scrollIntoView||e.scrollIntoView}}function ph(r,e,t){let n=e.selection,o=ds(e.annotations);return e.userEvent&&(o=o.concat(at.userEvent.of(e.userEvent))),{changes:e.changes instanceof et?e.changes:et.of(e.changes||[],t,r.facet(gb)),selection:n&&(n instanceof Y?n:Y.single(n.anchor,n.head)),effects:ds(e.effects),annotations:o,scrollIntoView:!!e.scrollIntoView}}function kb(r,e,t){let n=ph(r,e.length?e[0]:{},r.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let s=1;s<e.length;s++){e[s].filter===!1&&(t=!1);let i=!!e[s].sequential;n=wb(n,ph(r,e[s],i?n.changes.newLength:r.doc.length),i)}let o=at.create(r,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return ax(t?sx(o):o)}function sx(r){let e=r.startState,t=!0;for(let o of e.facet(Ob)){let s=o(r);if(s===!1){t=!1;break}Array.isArray(s)&&(t=t===!0?s:ox(t,s))}if(t!==!0){let o,s;if(t===!1)s=r.changes.invertedDesc,o=et.empty(e.doc.length);else{let i=r.changes.filter(t);o=i.changes,s=i.filtered.mapDesc(i.changes).invertedDesc}r=at.create(e,o,r.selection&&r.selection.map(s),_e.mapEffects(r.effects,s),r.annotations,r.scrollIntoView)}let n=e.facet(yb);for(let o=n.length-1;o>=0;o--){let s=n[o](r);s instanceof at?r=s:Array.isArray(s)&&s.length==1&&s[0]instanceof at?r=s[0]:r=kb(e,ds(s),!1)}return r}function ax(r){let e=r.startState,t=e.facet(bb),n=r;for(let o=t.length-1;o>=0;o--){let s=t[o](r);s&&Object.keys(s).length&&(n=wb(n,ph(e,s,r.changes.newLength),!0))}return n==r?r:at.create(e,r.changes,r.selection,n.effects,n.annotations,n.scrollIntoView)}const ix=[];function ds(r){return r==null?ix:Array.isArray(r)?r:[r]}var Ut=function(r){return r[r.Word=0]="Word",r[r.Space=1]="Space",r[r.Other=2]="Other",r}(Ut||(Ut={}));const lx=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let mh;try{mh=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function cx(r){if(mh)return mh.test(r);for(let e=0;e<r.length;e++){let t=r[e];if(/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||lx.test(t)))return!0}return!1}function dx(r){return e=>{if(!/\S/.test(e))return Ut.Space;if(cx(e))return Ut.Word;for(let t=0;t<r.length;t++)if(e.indexOf(r[t])>-1)return Ut.Word;return Ut.Other}}class ve{constructor(e,t,n,o,s,i){this.config=e,this.doc=t,this.selection=n,this.values=o,this.status=e.statusTemplate.slice(),this.computeSlot=s,i&&(i._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)Da(this,l<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(n==null){if(t)throw new RangeError("Field is not present in this state");return}return Da(this,n),hc(this,n)}update(...e){return kb(this,e,!0)}applyTransaction(e){let t=this.config,{base:n,compartments:o}=t;for(let l of e.effects)l.is(od.reconfigure)?(t&&(o=new Map,t.compartments.forEach((c,d)=>o.set(d,c)),t=null),o.set(l.value.compartment,l.value.extension)):l.is(_e.reconfigure)?(t=null,n=l.value):l.is(_e.appendConfig)&&(t=null,n=ds(n).concat(l.value));let s;t?s=e.startState.values.slice():(t=uc.resolve(n,o,this),s=new ve(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(c,d)=>d.reconfigure(c,this),null).values);let i=e.startState.facet(fh)?e.newSelection:e.newSelection.asSingle();new ve(t,e.newDoc,i,s,(l,c)=>c.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:Y.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),o=this.changes(n.changes),s=[n.range],i=ds(n.effects);for(let l=1;l<t.ranges.length;l++){let c=e(t.ranges[l]),d=this.changes(c.changes),u=d.map(o);for(let f=0;f<l;f++)s[f]=s[f].map(u);let h=o.mapDesc(d,!0);s.push(c.range.map(h)),o=o.compose(u),i=_e.mapEffects(i,u).concat(_e.mapEffects(ds(c.effects),h))}return{changes:o,selection:Y.create(s,t.mainIndex),effects:i}}changes(e=[]){return e instanceof et?e:et.of(e,this.doc.length,this.facet(ve.lineSeparator))}toText(e){return ke.of(e.split(this.facet(ve.lineSeparator)||lh))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(Da(this,t),hc(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let o=e[n];o instanceof yr&&this.config.address[o.id]!=null&&(t[n]=o.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let o=[];if(n){for(let s in n)if(Object.prototype.hasOwnProperty.call(e,s)){let i=n[s],l=e[s];o.push(i.init(c=>i.spec.fromJSON(l,c)))}}return ve.create({doc:e.doc,selection:Y.fromJSON(e.selection),extensions:t.extensions?o.concat([t.extensions]):o})}static create(e={}){let t=uc.resolve(e.extensions||[],new Map),n=e.doc instanceof ke?e.doc:ke.of((e.doc||"").split(t.staticFacet(ve.lineSeparator)||lh)),o=e.selection?e.selection instanceof Y?e.selection:Y.single(e.selection.anchor,e.selection.head):Y.single(0);return fb(o,n.length),t.staticFacet(fh)||(o=o.asSingle()),new ve(t,n,o,t.dynamicSlots.map(()=>null),(s,i)=>i.create(s),null)}get tabSize(){return this.facet(ve.tabSize)}get lineBreak(){return this.facet(ve.lineSeparator)||`
57
- `}get readOnly(){return this.facet(vb)}phrase(e,...t){for(let n of this.facet(ve.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(n,o)=>{if(o=="$")return"$";let s=+(o||1);return!s||s>t.length?n:t[s-1]})),e}languageDataAt(e,t,n=-1){let o=[];for(let s of this.facet(mb))for(let i of s(this,t,n))Object.prototype.hasOwnProperty.call(i,e)&&o.push(i[e]);return o}charCategorizer(e){return dx(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:o}=this.doc.lineAt(e),s=this.charCategorizer(e),i=e-n,l=e-n;for(;i>0;){let c=Ar(t,i,!1);if(s(t.slice(c,i))!=Ut.Word)break;i=c}for(;l<o;){let c=Ar(t,l);if(s(t.slice(l,c))!=Ut.Word)break;l=c}return i==l?null:Y.range(i+n,l+n)}}ve.allowMultipleSelections=fh;ve.tabSize=ee.define({combine:r=>r.length?r[0]:4});ve.lineSeparator=gb;ve.readOnly=vb;ve.phrases=ee.define({compare(r,e){let t=Object.keys(r),n=Object.keys(e);return t.length==n.length&&t.every(o=>r[o]==e[o])}});ve.languageData=mb;ve.changeFilter=Ob;ve.transactionFilter=yb;ve.transactionExtender=bb;od.reconfigure=_e.define();function sd(r,e,t={}){let n={};for(let o of r)for(let s of Object.keys(o)){let i=o[s],l=n[s];if(l===void 0)n[s]=i;else if(!(l===i||i===void 0))if(Object.hasOwnProperty.call(t,s))n[s]=t[s](l,i);else throw new Error("Config merge conflict for field "+s)}for(let o in e)n[o]===void 0&&(n[o]=e[o]);return n}class ko{eq(e){return this==e}range(e,t=e){return gh.create(e,t,this)}}ko.prototype.startSide=ko.prototype.endSide=0;ko.prototype.point=!1;ko.prototype.mapMode=ut.TrackDel;let gh=class Sb{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new Sb(e,t,n)}};function Oh(r,e){return r.from-e.from||r.value.startSide-e.value.startSide}class Hf{constructor(e,t,n,o){this.from=e,this.to=t,this.value=n,this.maxPoint=o}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,o=0){let s=n?this.to:this.from;for(let i=o,l=s.length;;){if(i==l)return i;let c=i+l>>1,d=s[c]-e||(n?this.value[c].endSide:this.value[c].startSide)-t;if(c==i)return d>=0?i:l;d>=0?l=c:i=c+1}}between(e,t,n,o){for(let s=this.findIndex(t,-1e9,!0),i=this.findIndex(n,1e9,!1,s);s<i;s++)if(o(this.from[s]+e,this.to[s]+e,this.value[s])===!1)return!1}map(e,t){let n=[],o=[],s=[],i=-1,l=-1;for(let c=0;c<this.value.length;c++){let d=this.value[c],u=this.from[c]+e,h=this.to[c]+e,f,p;if(u==h){let m=t.mapPos(u,d.startSide,d.mapMode);if(m==null||(f=p=m,d.startSide!=d.endSide&&(p=t.mapPos(u,d.endSide),p<f)))continue}else if(f=t.mapPos(u,d.startSide),p=t.mapPos(h,d.endSide),f>p||f==p&&d.startSide>0&&d.endSide<=0)continue;(p-f||d.endSide-d.startSide)<0||(i<0&&(i=f),d.point&&(l=Math.max(l,p-f)),n.push(d),o.push(f-i),s.push(p-i))}return{mapped:n.length?new Hf(o,s,n,l):null,pos:i}}}class we{constructor(e,t,n,o){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=o}static create(e,t,n,o){return new we(e,t,n,o)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:o=0,filterTo:s=this.length}=e,i=e.filter;if(t.length==0&&!i)return this;if(n&&(t=t.slice().sort(Oh)),this.isEmpty)return t.length?we.of(t):this;let l=new $b(this,null,-1).goto(0),c=0,d=[],u=new ks;for(;l.value||c<t.length;)if(c<t.length&&(l.from-t[c].from||l.startSide-t[c].value.startSide)>=0){let h=t[c++];u.addInner(h.from,h.to,h.value)||d.push(h)}else l.rangeIndex==1&&l.chunkIndex<this.chunk.length&&(c==t.length||this.chunkEnd(l.chunkIndex)<t[c].from)&&(!i||o>this.chunkEnd(l.chunkIndex)||s<this.chunkPos[l.chunkIndex])&&u.addChunk(this.chunkPos[l.chunkIndex],this.chunk[l.chunkIndex])?l.nextChunk():((!i||o>l.to||s<l.from||i(l.from,l.to,l.value))&&(u.addInner(l.from,l.to,l.value)||d.push(gh.create(l.from,l.to,l.value))),l.next());return u.finishInner(this.nextLayer.isEmpty&&!d.length?we.empty:this.nextLayer.update({add:d,filter:i,filterFrom:o,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],o=-1;for(let i=0;i<this.chunk.length;i++){let l=this.chunkPos[i],c=this.chunk[i],d=e.touchesRange(l,l+c.length);if(d===!1)o=Math.max(o,c.maxPoint),t.push(c),n.push(e.mapPos(l));else if(d===!0){let{mapped:u,pos:h}=c.map(l,e);u&&(o=Math.max(o,u.maxPoint),t.push(u),n.push(h))}}let s=this.nextLayer.map(e);return t.length==0?s:new we(n,t,s||we.empty,o)}between(e,t,n){if(!this.isEmpty){for(let o=0;o<this.chunk.length;o++){let s=this.chunkPos[o],i=this.chunk[o];if(t>=s&&e<=s+i.length&&i.between(s,e-s,t-s,n)===!1)return}this.nextLayer.between(e,t,n)}}iter(e=0){return ei.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return ei.from(e).goto(t)}static compare(e,t,n,o,s=-1){let i=e.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),l=t.filter(h=>h.maxPoint>0||!h.isEmpty&&h.maxPoint>=s),c=vg(i,l,n),d=new ga(i,c,s),u=new ga(l,c,s);n.iterGaps((h,f,p)=>wg(d,h,u,f,p,o)),n.empty&&n.length==0&&wg(d,0,u,0,0,o)}static eq(e,t,n=0,o){o==null&&(o=999999999);let s=e.filter(u=>!u.isEmpty&&t.indexOf(u)<0),i=t.filter(u=>!u.isEmpty&&e.indexOf(u)<0);if(s.length!=i.length)return!1;if(!s.length)return!0;let l=vg(s,i),c=new ga(s,l,0).goto(n),d=new ga(i,l,0).goto(n);for(;;){if(c.to!=d.to||!yh(c.active,d.active)||c.point&&(!d.point||!c.point.eq(d.point)))return!1;if(c.to>o)return!0;c.next(),d.next()}}static spans(e,t,n,o,s=-1){let i=new ga(e,null,s).goto(t),l=t,c=i.openStart;for(;;){let d=Math.min(i.to,n);if(i.point){let u=i.activeForPoint(i.to),h=i.pointFrom<t?u.length+1:i.point.startSide<0?u.length:Math.min(u.length,c);o.point(l,d,i.point,u,h,i.pointRank),c=Math.min(i.openEnd(d),u.length)}else d>l&&(o.span(l,d,i.active,c),c=i.openEnd(d));if(i.to>n)return c+(i.point&&i.to>n?1:0);l=i.to,i.next()}}static of(e,t=!1){let n=new ks;for(let o of e instanceof gh?[e]:t?ux(e):e)n.add(o.from,o.to,o.value);return n.finish()}static join(e){if(!e.length)return we.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let o=e[n];o!=we.empty;o=o.nextLayer)t=new we(o.chunkPos,o.chunk,t,Math.max(o.maxPoint,t.maxPoint));return t}}we.empty=new we([],[],null,-1);function ux(r){if(r.length>1)for(let e=r[0],t=1;t<r.length;t++){let n=r[t];if(Oh(e,n)>0)return r.slice().sort(Oh);e=n}return r}we.empty.nextLayer=we.empty;class ks{finishChunk(e){this.chunks.push(new Hf(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new ks)).add(e,t,n)}addInner(e,t,n){let o=e-this.lastTo||n.startSide-this.last.endSide;if(o<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return o<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(we.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=we.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function vg(r,e,t){let n=new Map;for(let s of r)for(let i=0;i<s.chunk.length;i++)s.chunk[i].maxPoint<=0&&n.set(s.chunk[i],s.chunkPos[i]);let o=new Set;for(let s of e)for(let i=0;i<s.chunk.length;i++){let l=n.get(s.chunk[i]);l!=null&&(t?t.mapPos(l):l)==s.chunkPos[i]&&!(t!=null&&t.touchesRange(l,l+s.chunk[i].length))&&o.add(s.chunk[i])}return o}class $b{constructor(e,t,n,o=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=o}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let o=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(o)||this.layer.chunkEnd(this.chunkIndex)<e||o.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let o=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<o)&&this.setRangeIndex(o)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class ei{constructor(e){this.heap=e}static from(e,t=null,n=-1){let o=[];for(let s=0;s<e.length;s++)for(let i=e[s];!i.isEmpty;i=i.nextLayer)i.maxPoint>=n&&o.push(new $b(i,t,n,s));return o.length==1?o[0]:new ei(o)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)ou(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)ou(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),ou(this.heap,0)}}}function ou(r,e){for(let t=r[e];;){let n=(e<<1)+1;if(n>=r.length)break;let o=r[n];if(n+1<r.length&&o.compare(r[n+1])>=0&&(o=r[n+1],n++),t.compare(o)<0)break;r[n]=t,r[e]=o,e=n}}class ga{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=ei.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){nl(this.active,e),nl(this.activeTo,e),nl(this.activeRank,e),this.minActive=kg(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:o,rank:s}=this.cursor;for(;t<this.activeRank.length&&(s-this.activeRank[t]||o-this.activeTo[t])>0;)t++;ol(this.active,t,n),ol(this.activeTo,t,o),ol(this.activeRank,t,s),e&&ol(e,t,this.cursor.from),this.minActive=kg(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let o=this.minActive;if(o>-1&&(this.activeTo[o]-this.cursor.from||this.active[o].endSide-this.cursor.startSide)<0){if(this.activeTo[o]>e){this.to=this.activeTo[o],this.endSide=this.active[o].endSide;break}this.removeActive(o),n&&nl(n,o)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let s=this.cursor.value;if(!s.point)this.addActive(n),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=s,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=s.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let o=n.length-1;o>=0&&n[o]<e;o--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function wg(r,e,t,n,o,s){r.goto(e),t.goto(n);let i=n+o,l=n,c=n-e;for(;;){let d=r.to+c-t.to||r.endSide-t.endSide,u=d<0?r.to+c:t.to,h=Math.min(u,i);if(r.point||t.point?r.point&&t.point&&(r.point==t.point||r.point.eq(t.point))&&yh(r.activeForPoint(r.to),t.activeForPoint(t.to))||s.comparePoint(l,h,r.point,t.point):h>l&&!yh(r.active,t.active)&&s.compareRange(l,h,r.active,t.active),u>i)break;l=u,d<=0&&r.next(),d>=0&&t.next()}}function yh(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!=e[t]&&!r[t].eq(e[t]))return!1;return!0}function nl(r,e){for(let t=e,n=r.length-1;t<n;t++)r[t]=r[t+1];r.pop()}function ol(r,e,t){for(let n=r.length-1;n>=e;n--)r[n+1]=r[n];r[e]=t}function kg(r,e){let t=-1,n=1e9;for(let o=0;o<e.length;o++)(e[o]-n||r[o].endSide-r[t].endSide)<0&&(t=o,n=e[o]);return t}function Gf(r,e,t=r.length){let n=0;for(let o=0;o<t;)r.charCodeAt(o)==9?(n+=e-n%e,o++):(n++,o=Ar(r,o));return n}function hx(r,e,t,n){for(let o=0,s=0;;){if(s>=e)return o;if(o==r.length)break;s+=r.charCodeAt(o)==9?t-s%t:1,o=Ar(r,o)}return n===!0?-1:r.length}const bh="ͼ",Sg=typeof Symbol>"u"?"__"+bh:Symbol.for(bh),vh=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),$g=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class An{constructor(e,t){this.rules=[];let{finish:n}=t||{};function o(i){return/^@/.test(i)?[i]:i.split(/,\s*/)}function s(i,l,c,d){let u=[],h=/^@(\w+)\b/.exec(i[0]),f=h&&h[1]=="keyframes";if(h&&l==null)return c.push(i[0]+";");for(let p in l){let m=l[p];if(/&/.test(p))s(p.split(/,\s*/).map(g=>i.map(O=>g.replace(/&/,O))).reduce((g,O)=>g.concat(O)),m,c);else if(m&&typeof m=="object"){if(!h)throw new RangeError("The value of a property ("+p+") should be a primitive value.");s(o(p),m,u,f)}else m!=null&&u.push(p.replace(/_.*/,"").replace(/[A-Z]/g,g=>"-"+g.toLowerCase())+": "+m+";")}(u.length||f)&&c.push((n&&!h&&!d?i.map(n):i).join(", ")+" {"+u.join(" ")+"}")}for(let i in e)s(o(i),e[i],this.rules)}getRules(){return this.rules.join(`
58
- `)}static newName(){let e=$g[Sg]||1;return $g[Sg]=e+1,bh+e.toString(36)}static mount(e,t,n){let o=e[vh],s=n&&n.nonce;o?s&&o.setNonce(s):o=new fx(e,s),o.mount(Array.isArray(t)?t:[t])}}let Pg=new Map;class fx{constructor(e,t){this.root=e;let n=e.ownerDocument||e,o=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&o.CSSStyleSheet){let s=Pg.get(n);if(s)return e[vh]=s;this.sheet=new o.CSSStyleSheet,Pg.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[vh]=this}mount(e){let t=this.sheet,n=0,o=0;for(let s=0;s<e.length;s++){let i=e[s],l=this.modules.indexOf(i);if(l<o&&l>-1&&(this.modules.splice(l,1),o--,l=-1),l==-1){if(this.modules.splice(o++,0,i),t)for(let c=0;c<i.rules.length;c++)t.insertRule(i.rules[c],n++)}else{for(;o<l;)n+=this.modules[o++].rules.length;n+=i.rules.length,o++}}if(t)this.root.adoptedStyleSheets.indexOf(this.sheet)<0&&(this.root.adoptedStyleSheets=[this.sheet,...this.root.adoptedStyleSheets]);else{let s="";for(let l=0;l<this.modules.length;l++)s+=this.modules[l].getRules()+`
59
- `;this.styleTag.textContent=s;let i=this.root.head||this.root;this.styleTag.parentNode!=i&&i.insertBefore(this.styleTag,i.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var Rn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ti={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},px=typeof navigator<"u"&&/Mac/.test(navigator.platform),mx=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var nt=0;nt<10;nt++)Rn[48+nt]=Rn[96+nt]=String(nt);for(var nt=1;nt<=24;nt++)Rn[nt+111]="F"+nt;for(var nt=65;nt<=90;nt++)Rn[nt]=String.fromCharCode(nt+32),ti[nt]=String.fromCharCode(nt);for(var su in Rn)ti.hasOwnProperty(su)||(ti[su]=Rn[su]);function gx(r){var e=px&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||mx&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?ti:Rn)[r.keyCode]||r.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}function fc(r){let e;return r.nodeType==11?e=r.getSelection?r:r.ownerDocument:e=r,e.getSelection()}function wh(r,e){return e?r==e||r.contains(e.nodeType!=1?e.parentNode:e):!1}function Ox(r){let e=r.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Ml(r,e){if(!e.anchorNode)return!1;try{return wh(r,e.anchorNode)}catch{return!1}}function ri(r){return r.nodeType==3?So(r,0,r.nodeValue.length).getClientRects():r.nodeType==1?r.getClientRects():[]}function Ma(r,e,t,n){return t?xg(r,e,t,n,-1)||xg(r,e,t,n,1):!1}function ni(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e}function xg(r,e,t,n,o){for(;;){if(r==t&&e==n)return!0;if(e==(o<0?0:tn(r))){if(r.nodeName=="DIV")return!1;let s=r.parentNode;if(!s||s.nodeType!=1)return!1;e=ni(r)+(o<0?0:1),r=s}else if(r.nodeType==1){if(r=r.childNodes[e+(o<0?-1:0)],r.nodeType==1&&r.contentEditable=="false")return!1;e=o<0?tn(r):0}else return!1}}function tn(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function Ff(r,e){let t=e?r.left:r.right;return{left:t,right:t,top:r.top,bottom:r.bottom}}function yx(r){return{left:0,right:r.innerWidth,top:0,bottom:r.innerHeight}}function Pb(r,e){let t=e.width/r.offsetWidth,n=e.height/r.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-r.offsetWidth)<1)&&(t=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.height-r.offsetHeight)<1)&&(n=1),{scaleX:t,scaleY:n}}function bx(r,e,t,n,o,s,i,l){let c=r.ownerDocument,d=c.defaultView||window;for(let u=r,h=!1;u&&!h;)if(u.nodeType==1){let f,p=u==c.body,m=1,g=1;if(p)f=yx(d);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(h=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let b=u.getBoundingClientRect();({scaleX:m,scaleY:g}=Pb(u,b)),f={left:b.left,right:b.left+u.clientWidth*m,top:b.top,bottom:b.top+u.clientHeight*g}}let O=0,y=0;if(o=="nearest")e.top<f.top?(y=-(f.top-e.top+i),t>0&&e.bottom>f.bottom+y&&(y=e.bottom-f.bottom+y+i)):e.bottom>f.bottom&&(y=e.bottom-f.bottom+i,t<0&&e.top-y<f.top&&(y=-(f.top+y-e.top+i)));else{let b=e.bottom-e.top,v=f.bottom-f.top;y=(o=="center"&&b<=v?e.top+b/2-v/2:o=="start"||o=="center"&&t<0?e.top-i:e.bottom-v+i)-f.top}if(n=="nearest"?e.left<f.left?(O=-(f.left-e.left+s),t>0&&e.right>f.right+O&&(O=e.right-f.right+O+s)):e.right>f.right&&(O=e.right-f.right+s,t<0&&e.left<f.left+O&&(O=-(f.left+O-e.left+s))):O=(n=="center"?e.left+(e.right-e.left)/2-(f.right-f.left)/2:n=="start"==l?e.left-s:e.right-(f.right-f.left)+s)-f.left,O||y)if(p)d.scrollBy(O,y);else{let b=0,v=0;if(y){let k=u.scrollTop;u.scrollTop+=y/g,v=(u.scrollTop-k)*g}if(O){let k=u.scrollLeft;u.scrollLeft+=O/m,b=(u.scrollLeft-k)*m}e={left:e.left-b,top:e.top-v,right:e.right-b,bottom:e.bottom-v},b&&Math.abs(b-O)<1&&(n="nearest"),v&&Math.abs(v-y)<1&&(o="nearest")}if(p)break;u=u.assignedSlot||u.parentNode}else if(u.nodeType==11)u=u.host;else break}function vx(r){let e=r.ownerDocument;for(let t=r.parentNode;t&&t!=e.body;)if(t.nodeType==1){if(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)return t;t=t.assignedSlot||t.parentNode}else if(t.nodeType==11)t=t.host;else break;return null}class wx{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?tn(t):0),n,Math.min(e.focusOffset,n?tn(n):0))}set(e,t,n,o){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=o}}let qo=null;function xb(r){if(r.setActive)return r.setActive();if(qo)return r.focus(qo);let e=[];for(let t=r;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(r.focus(qo==null?{get preventScroll(){return qo={preventScroll:!0},!0}}:void 0),!qo){qo=!1;for(let t=0;t<e.length;){let n=e[t++],o=e[t++],s=e[t++];n.scrollTop!=o&&(n.scrollTop=o),n.scrollLeft!=s&&(n.scrollLeft=s)}}}let _g;function So(r,e,t=e){let n=_g||(_g=document.createRange());return n.setEnd(r,t),n.setStart(r,e),n}function us(r,e,t){let n={key:e,code:e,keyCode:t,which:t,cancelable:!0},o=new KeyboardEvent("keydown",n);o.synthetic=!0,r.dispatchEvent(o);let s=new KeyboardEvent("keyup",n);return s.synthetic=!0,r.dispatchEvent(s),o.defaultPrevented||s.defaultPrevented}function kx(r){for(;r;){if(r&&(r.nodeType==9||r.nodeType==11&&r.host))return r;r=r.assignedSlot||r.parentNode}return null}function _b(r){for(;r.attributes.length;)r.removeAttributeNode(r.attributes[0])}function Sx(r,e){let t=e.focusNode,n=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=n)return!1;for(n=Math.min(n,tn(t));;)if(n){if(t.nodeType!=1)return!1;let o=t.childNodes[n-1];o.contentEditable=="false"?n--:(t=o,n=tn(t))}else{if(t==r)return!0;n=ni(t),t=t.parentNode}}function Cb(r){return r.scrollTop>Math.max(1,r.scrollHeight-r.clientHeight-4)}class ht{constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}static before(e,t){return new ht(e.parentNode,ni(e),t)}static after(e,t){return new ht(e.parentNode,ni(e)+1,t)}}const Kf=[];class Be{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(this.flags&2){let n=this.dom,o=null,s;for(let i of this.children){if(i.flags&7){if(!i.dom&&(s=o?o.nextSibling:n.firstChild)){let l=Be.get(s);(!l||!l.parent&&l.canReuseDOM(i))&&i.reuseDOM(s)}i.sync(e,t),i.flags&=-8}if(s=o?o.nextSibling:n.firstChild,t&&!t.written&&t.node==n&&s!=i.dom&&(t.written=!0),i.dom.parentNode==n)for(;s&&s!=i.dom;)s=Cg(s);else n.insertBefore(i.dom,s);o=i.dom}for(s=o?o.nextSibling:n.firstChild,s&&t&&t.node==n&&(t.written=!0);s;)s=Cg(s)}else if(this.flags&1)for(let n of this.children)n.flags&7&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let o=tn(e)==0?0:t==0?-1:1;for(;;){let s=e.parentNode;if(s==this.dom)break;o==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?o=-1:o=1),e=s}o<0?n=e:n=e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!Be.get(n);)n=n.nextSibling;if(!n)return this.length;for(let o=0,s=0;;o++){let i=this.children[o];if(i.dom==n)return s;s+=i.length+i.breakAfter}}domBoundsAround(e,t,n=0){let o=-1,s=-1,i=-1,l=-1;for(let c=0,d=n,u=n;c<this.children.length;c++){let h=this.children[c],f=d+h.length;if(d<e&&f>t)return h.domBoundsAround(e,t,d);if(f>=e&&o==-1&&(o=c,s=d),d>t&&h.dom.parentNode==this.dom){i=c,l=u;break}u=f,d=f+h.breakAfter}return{from:s,to:l<0?n+this.length:l,startDOM:(o?this.children[o-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:i<this.children.length&&i>=0?this.children[i].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),t.flags&1)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,n=Kf){this.markDirty();for(let o=e;o<t;o++){let s=this.children[o];s.parent==this&&n.indexOf(s)<0&&s.destroy()}this.children.splice(e,t-e,...n);for(let o=0;o<n.length;o++)n[o].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new Tb(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,n,o,s,i){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}Be.prototype.breakAfter=0;function Cg(r){let e=r.nextSibling;return r.parentNode.removeChild(r),e}class Tb{constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function Qb(r,e,t,n,o,s,i,l,c){let{children:d}=r,u=d.length?d[e]:null,h=s.length?s[s.length-1]:null,f=h?h.breakAfter:i;if(!(e==n&&u&&!i&&!f&&s.length<2&&u.merge(t,o,s.length?h:null,t==0,l,c))){if(n<d.length){let p=d[n];p&&(o<p.length||p.breakAfter&&(h!=null&&h.breakAfter))?(e==n&&(p=p.split(o),o=0),!f&&h&&p.merge(0,o,h,!0,0,c)?s[s.length-1]=p:((o||p.children.length&&!p.children[0].length)&&p.merge(0,o,null,!1,0,c),s.push(p))):p!=null&&p.breakAfter&&(h?h.breakAfter=1:i=1),n++}for(u&&(u.breakAfter=i,t>0&&(!i&&s.length&&u.merge(t,u.length,s[0],!1,l,0)?u.breakAfter=s.shift().breakAfter:(t<u.length||u.children.length&&u.children[u.children.length-1].length==0)&&u.merge(t,u.length,null,!1,l,0),e++));e<n&&s.length;)if(d[n-1].become(s[s.length-1]))n--,s.pop(),c=s.length?0:l;else if(d[e].become(s[0]))e++,s.shift(),l=s.length?0:c;else break;!s.length&&e&&n<d.length&&!d[e-1].breakAfter&&d[n].merge(0,0,d[e-1],!1,l,c)&&e--,(e<n||s.length)&&r.replaceChildren(e,n,s)}}function Eb(r,e,t,n,o,s){let i=r.childCursor(),{i:l,off:c}=i.findPos(t,1),{i:d,off:u}=i.findPos(e,-1),h=e-t;for(let f of n)h+=f.length;r.length+=h,Qb(r,d,u,l,c,n,0,o,s)}let Bt=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},kh=typeof document<"u"?document:{documentElement:{style:{}}};const Sh=/Edge\/(\d+)/.exec(Bt.userAgent),Nb=/MSIE \d/.test(Bt.userAgent),$h=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Bt.userAgent),ad=!!(Nb||$h||Sh),Tg=!ad&&/gecko\/(\d+)/i.test(Bt.userAgent),au=!ad&&/Chrome\/(\d+)/.exec(Bt.userAgent),Qg="webkitFontSmoothing"in kh.documentElement.style,Ab=!ad&&/Apple Computer/.test(Bt.vendor),Eg=Ab&&(/Mobile\/\w+/.test(Bt.userAgent)||Bt.maxTouchPoints>2);var H={mac:Eg||/Mac/.test(Bt.platform),windows:/Win/.test(Bt.platform),linux:/Linux|X11/.test(Bt.platform),ie:ad,ie_version:Nb?kh.documentMode||6:$h?+$h[1]:Sh?+Sh[1]:0,gecko:Tg,gecko_version:Tg?+(/Firefox\/(\d+)/.exec(Bt.userAgent)||[0,0])[1]:0,chrome:!!au,chrome_version:au?+au[1]:0,ios:Eg,android:/Android\b/.test(Bt.userAgent),webkit:Qg,safari:Ab,webkit_version:Qg?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:kh.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const $x=256;class rn extends Be{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,t,n){return this.flags&8||n&&(!(n instanceof rn)||this.length-(t-e)+n.length>$x||n.flags&8)?!1:(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new rn(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=this.flags&8,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new ht(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return Px(this.dom,e,t)}}class nn extends Be{constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n;for(let o of t)o.setParent(this)}setAttrs(e){if(_b(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,o,s,i){return n&&(!(n instanceof nn&&n.mark.eq(this.mark))||e&&s<=0||t<this.length&&i<=0)?!1:(Eb(this,e,t,n?n.children.slice():[],s-1,i-1),this.markDirty(),!0)}split(e){let t=[],n=0,o=-1,s=0;for(let l of this.children){let c=n+l.length;c>e&&t.push(n<e?l.split(e-n):l),o<0&&n>=e&&(o=s),n=c,s++}let i=this.length-e;return this.length=e,o>-1&&(this.children.length=o,this.markDirty()),new nn(this.mark,t,i)}domAtPos(e){return Rb(this,e)}coordsAt(e,t){return Bb(this,e,t)}}function Px(r,e,t){let n=r.nodeValue.length;e>n&&(e=n);let o=e,s=e,i=0;e==0&&t<0||e==n&&t>=0?H.chrome||H.gecko||(e?(o--,i=1):s<n&&(s++,i=-1)):t<0?o--:s<n&&s++;let l=So(r,o,s).getClientRects();if(!l.length)return null;let c=l[(i?i<0:t>=0)?0:l.length-1];return H.safari&&!i&&c.width==0&&(c=Array.prototype.find.call(l,d=>d.width)||c),i?Ff(c,i<0):c||null}class co extends Be{static create(e,t,n){return new co(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=co.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,n,o,s,i){return n&&(!(n instanceof co)||!this.widget.compare(n.widget)||e>0&&s<=0||t<this.length&&i<=0)?!1:(this.length=e+(n?n.length:0)+(this.length-t),!0)}become(e){return e instanceof co&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return ke.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,n=t&&t.state.doc,o=this.posAtStart;return n?n.slice(o,o+this.length):ke.empty}domAtPos(e){return(this.length?e==0:this.side>0)?ht.before(this.dom):ht.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let o=this.dom.getClientRects(),s=null;if(!o.length)return null;let i=this.side?this.side<0:e>0;for(let l=i?o.length-1:0;s=o[l],!(e>0?l==0:l==o.length-1||s.top<s.bottom);l+=i?-1:1);return Ff(s,!i)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Ss extends Be{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof Ss&&e.side==this.side}split(){return new Ss(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?ht.before(this.dom):ht.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return ke.empty}get isHidden(){return!0}}rn.prototype.children=co.prototype.children=Ss.prototype.children=Kf;function Rb(r,e){let t=r.dom,{children:n}=r,o=0;for(let s=0;o<n.length;o++){let i=n[o],l=s+i.length;if(!(l==s&&i.getSide()<=0)){if(e>s&&e<l&&i.dom.parentNode==t)return i.domAtPos(e-s);if(e<=s)break;s=l}}for(let s=o;s>0;s--){let i=n[s-1];if(i.dom.parentNode==t)return i.domAtPos(i.length)}for(let s=o;s<n.length;s++){let i=n[s];if(i.dom.parentNode==t)return i.domAtPos(0)}return new ht(t,0)}function Vb(r,e,t){let n,{children:o}=r;t>0&&e instanceof nn&&o.length&&(n=o[o.length-1])instanceof nn&&n.mark.eq(e.mark)?Vb(n,e.children[0],t-1):(o.push(e),e.setParent(r)),r.length+=e.length}function Bb(r,e,t){let n=null,o=-1,s=null,i=-1;function l(d,u){for(let h=0,f=0;h<d.children.length&&f<=u;h++){let p=d.children[h],m=f+p.length;m>=u&&(p.children.length?l(p,u-f):(!s||s.isHidden&&t>0)&&(m>u||f==m&&p.getSide()>0)?(s=p,i=u-f):(f<u||f==m&&p.getSide()<0&&!p.isHidden)&&(n=p,o=u-f)),f=m}}l(r,e);let c=(t<0?n:s)||n||s;return c?c.coordsAt(Math.max(0,c==n?o:i),t):xx(r)}function xx(r){let e=r.dom.lastChild;if(!e)return r.dom.getBoundingClientRect();let t=ri(e);return t[t.length-1]||null}function Ph(r,e){for(let t in r)t=="class"&&e.class?e.class+=" "+r.class:t=="style"&&e.style?e.style+=";"+r.style:e[t]=r[t];return e}const Ng=Object.create(null);function Jf(r,e,t){if(r==e)return!0;r||(r=Ng),e||(e=Ng);let n=Object.keys(r),o=Object.keys(e);if(n.length-(t&&n.indexOf(t)>-1?1:0)!=o.length-(t&&o.indexOf(t)>-1?1:0))return!1;for(let s of n)if(s!=t&&(o.indexOf(s)==-1||r[s]!==e[s]))return!1;return!0}function xh(r,e,t){let n=!1;if(e)for(let o in e)t&&o in t||(n=!0,o=="style"?r.style.cssText="":r.removeAttribute(o));if(t)for(let o in t)e&&e[o]==t[o]||(n=!0,o=="style"?r.style.cssText=t[o]:r.setAttribute(o,t[o]));return n}function _x(r){let e=Object.create(null);for(let t=0;t<r.attributes.length;t++){let n=r.attributes[t];e[n.name]=n.value}return e}class Fe extends Be{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,n,o,s,i){if(n){if(!(n instanceof Fe))return!1;this.dom||n.transferDOM(this)}return o&&this.setDeco(n?n.attrs:null),Eb(this,e,t,n?n.children.slice():[],s,i),!0}split(e){let t=new Fe;if(t.breakAfter=this.breakAfter,this.length==0)return t;let{i:n,off:o}=this.childPos(e);o&&(t.append(this.children[n].split(o),0),this.children[n].merge(o,this.children[n].length,null,!1,0,0),n++);for(let s=n;s<this.children.length;s++)t.append(this.children[s],0);for(;n>0&&this.children[n-1].length==0;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Jf(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){Vb(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=Ph(t,this.attrs||{})),n&&(this.attrs=Ph({class:n},this.attrs||{}))}domAtPos(e){return Rb(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?this.flags&4&&(_b(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(xh(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let o=this.dom.lastChild;for(;o&&Be.get(o)instanceof nn;)o=o.lastChild;if(!o||!this.length||o.nodeName!="BR"&&((n=Be.get(o))===null||n===void 0?void 0:n.isEditable)==!1&&(!H.ios||!this.children.some(s=>s instanceof rn))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,t;for(let n of this.children){if(!(n instanceof rn)||/[^ -~]/.test(n.text))return null;let o=ri(n.dom);if(o.length!=1)return null;e+=o[0].width,t=o[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:t}:null}coordsAt(e,t){let n=Bb(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:o}=this.parent.view.viewState,s=n.bottom-n.top;if(Math.abs(s-o.lineHeight)<2&&o.textHeight<s){let i=(s-o.textHeight)/2;return{top:n.top+i,bottom:n.bottom-i,left:n.left,right:n.left}}}return n}become(e){return!1}covers(){return!0}static find(e,t){for(let n=0,o=0;n<e.children.length;n++){let s=e.children[n],i=o+s.length;if(i>=t){if(s instanceof Fe)return s;if(i>t)break}o=i+s.breakAfter}return null}}class Tn extends Be{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,o,s,i){return n&&(!(n instanceof Tn)||!this.widget.compare(n.widget)||e>0&&s<=0||t<this.length&&i<=0)?!1:(this.length=e+(n?n.length:0)+(this.length-t),!0)}domAtPos(e){return e==0?ht.before(this.dom):ht.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let n=new Tn(this.widget,t,this.deco);return n.breakAfter=this.breakAfter,n}get children(){return Kf}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):ke.empty}domBoundsAround(){return null}become(e){return e instanceof Tn&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){return this.widget.coordsAt(this.dom,e,t)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:n}=this.deco;return t==n?!1:e<0?t<0:n>0}}class Zs{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var fr=function(r){return r[r.Text=0]="Text",r[r.WidgetBefore=1]="WidgetBefore",r[r.WidgetAfter=2]="WidgetAfter",r[r.WidgetRange=3]="WidgetRange",r}(fr||(fr={}));class $e extends ko{constructor(e,t,n,o){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=o}get heightRelevant(){return!1}static mark(e){return new Pi(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new Vn(e,t,t,n,e.widget||null,!1)}static replace(e){let t=!!e.block,n,o;if(e.isBlockGap)n=-5e8,o=4e8;else{let{start:s,end:i}=Zb(e,t);n=(s?t?-3e8:-1:5e8)-1,o=(i?t?2e8:1:-6e8)+1}return new Vn(e,n,o,t,e.widget||null,!0)}static line(e){return new xi(e)}static set(e,t=!1){return we.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}$e.none=we.empty;class Pi extends $e{constructor(e){let{start:t,end:n}=Zb(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof Pi&&this.tagName==e.tagName&&(this.class||((t=this.attrs)===null||t===void 0?void 0:t.class))==(e.class||((n=e.attrs)===null||n===void 0?void 0:n.class))&&Jf(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Pi.prototype.point=!1;class xi extends $e{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof xi&&this.spec.class==e.spec.class&&Jf(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}xi.prototype.mapMode=ut.TrackBefore;xi.prototype.point=!0;class Vn extends $e{constructor(e,t,n,o,s,i){super(t,n,s,e),this.block=o,this.isReplace=i,this.mapMode=o?t<=0?ut.TrackBefore:ut.TrackAfter:ut.TrackDel}get type(){return this.startSide!=this.endSide?fr.WidgetRange:this.startSide<=0?fr.WidgetBefore:fr.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Vn&&Cx(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}Vn.prototype.point=!0;function Zb(r,e=!1){let{inclusiveStart:t,inclusiveEnd:n}=r;return t==null&&(t=r.inclusive),n==null&&(n=r.inclusive),{start:t??e,end:n??e}}function Cx(r,e){return r==e||!!(r&&e&&r.compare(e))}function _h(r,e,t,n=0){let o=t.length-1;o>=0&&t[o]+n>=r?t[o]=Math.max(t[o],e):t.push(r,e)}class qa{constructor(e,t,n,o){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=o,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Tn&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Fe),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(sl(new Ss(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Tn)&&this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:s,lineBreak:i,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(i){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=s,this.textOff=0}let o=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(sl(new rn(this.text.slice(this.textOff,this.textOff+o)),t),n),this.atCursorPos=!0,this.textOff+=o,e-=o,n=0}}span(e,t,n,o){this.buildText(t-e,n,o),this.pos=t,this.openStart<0&&(this.openStart=o)}point(e,t,n,o,s,i){if(this.disallowBlockEffectsFor[i]&&n instanceof Vn){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=t-e;if(n instanceof Vn)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Tn(n.widget||new Ag("div"),l,n));else{let c=co.create(n.widget||new Ag("span"),l,l?0:n.startSide),d=this.atCursorPos&&!c.isEditable&&s<=o.length&&(e<t||n.startSide>0),u=!c.isEditable&&(e<t||s>o.length||n.startSide<=0),h=this.getLine();this.pendingBuffer==2&&!d&&!c.isEditable&&(this.pendingBuffer=0),this.flushBuffer(o),d&&(h.append(sl(new Ss(1),o),s),s=o.length+Math.max(0,s-o.length)),h.append(sl(c,o),s),this.atCursorPos=u,this.pendingBuffer=u?e<t||s>o.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=o.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=s)}static build(e,t,n,o,s){let i=new qa(e,t,n,s);return i.openEnd=we.spans(o,t,n,i),i.openStart<0&&(i.openStart=i.openEnd),i.finish(i.openEnd),i}}function sl(r,e){for(let t of e)r=new nn(t,[r],r.length);return r}class Ag extends Zs{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}var He=function(r){return r[r.LTR=0]="LTR",r[r.RTL=1]="RTL",r}(He||(He={}));const $o=He.LTR,ep=He.RTL;function Ib(r){let e=[];for(let t=0;t<r.length;t++)e.push(1<<+r[t]);return e}const Tx=Ib("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Qx=Ib("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Ch=Object.create(null),Pr=[];for(let r of["()","[]","{}"]){let e=r.charCodeAt(0),t=r.charCodeAt(1);Ch[e]=t,Ch[t]=-e}function jb(r){return r<=247?Tx[r]:1424<=r&&r<=1524?2:1536<=r&&r<=1785?Qx[r-1536]:1774<=r&&r<=2220?4:8192<=r&&r<=8204?256:64336<=r&&r<=65023?4:1}const Ex=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class _n{get dir(){return this.level%2?ep:$o}constructor(e,t,n){this.from=e,this.to=t,this.level=n}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,n,o){let s=-1;for(let i=0;i<e.length;i++){let l=e[i];if(l.from<=t&&l.to>=t){if(l.level==n)return i;(s<0||(o!=0?o<0?l.from<t:l.to>t:e[s].level>l.level))&&(s=i)}}if(s<0)throw new RangeError("Index out of range");return s}}function Db(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++){let n=r[t],o=e[t];if(n.from!=o.from||n.to!=o.to||n.direction!=o.direction||!Db(n.inner,o.inner))return!1}return!0}const xe=[];function Nx(r,e,t,n,o){for(let s=0;s<=n.length;s++){let i=s?n[s-1].to:e,l=s<n.length?n[s].from:t,c=s?256:o;for(let d=i,u=c,h=c;d<l;d++){let f=jb(r.charCodeAt(d));f==512?f=u:f==8&&h==4&&(f=16),xe[d]=f==4?2:f,f&7&&(h=f),u=f}for(let d=i,u=c,h=c;d<l;d++){let f=xe[d];if(f==128)d<l-1&&u==xe[d+1]&&u&24?f=xe[d]=u:xe[d]=256;else if(f==64){let p=d+1;for(;p<l&&xe[p]==64;)p++;let m=d&&u==8||p<t&&xe[p]==8?h==1?1:8:256;for(let g=d;g<p;g++)xe[g]=m;d=p-1}else f==8&&h==1&&(xe[d]=1);u=f,f&7&&(h=f)}}}function Ax(r,e,t,n,o){let s=o==1?2:1;for(let i=0,l=0,c=0;i<=n.length;i++){let d=i?n[i-1].to:e,u=i<n.length?n[i].from:t;for(let h=d,f,p,m;h<u;h++)if(p=Ch[f=r.charCodeAt(h)])if(p<0){for(let g=l-3;g>=0;g-=3)if(Pr[g+1]==-p){let O=Pr[g+2],y=O&2?o:O&4?O&1?s:o:0;y&&(xe[h]=xe[Pr[g]]=y),l=g;break}}else{if(Pr.length==189)break;Pr[l++]=h,Pr[l++]=f,Pr[l++]=c}else if((m=xe[h])==2||m==1){let g=m==o;c=g?0:1;for(let O=l-3;O>=0;O-=3){let y=Pr[O+2];if(y&2)break;if(g)Pr[O+2]|=2;else{if(y&4)break;Pr[O+2]|=4}}}}}function Rx(r,e,t,n){for(let o=0,s=n;o<=t.length;o++){let i=o?t[o-1].to:r,l=o<t.length?t[o].from:e;for(let c=i;c<l;){let d=xe[c];if(d==256){let u=c+1;for(;;)if(u==l){if(o==t.length)break;u=t[o++].to,l=o<t.length?t[o].from:e}else if(xe[u]==256)u++;else break;let h=s==1,f=(u<e?xe[u]:n)==1,p=h==f?h?1:2:n;for(let m=u,g=o,O=g?t[g-1].to:r;m>c;)m==O&&(m=t[--g].from,O=g?t[g-1].to:r),xe[--m]=p;c=u}else s=d,c++}}}function Th(r,e,t,n,o,s,i){let l=n%2?2:1;if(n%2==o%2)for(let c=e,d=0;c<t;){let u=!0,h=!1;if(d==s.length||c<s[d].from){let g=xe[c];g!=l&&(u=!1,h=g==16)}let f=!u&&l==1?[]:null,p=u?n:n+1,m=c;e:for(;;)if(d<s.length&&m==s[d].from){if(h)break e;let g=s[d];if(!u)for(let O=g.to,y=d+1;;){if(O==t)break e;if(y<s.length&&s[y].from==O)O=s[y++].to;else{if(xe[O]==l)break e;break}}if(d++,f)f.push(g);else{g.from>c&&i.push(new _n(c,g.from,p));let O=g.direction==$o!=!(p%2);Qh(r,O?n+1:n,o,g.inner,g.from,g.to,i),c=g.to}m=g.to}else{if(m==t||(u?xe[m]!=l:xe[m]==l))break;m++}f?Th(r,c,m,n+1,o,f,i):c<m&&i.push(new _n(c,m,p)),c=m}else for(let c=t,d=s.length;c>e;){let u=!0,h=!1;if(!d||c>s[d-1].to){let g=xe[c-1];g!=l&&(u=!1,h=g==16)}let f=!u&&l==1?[]:null,p=u?n:n+1,m=c;e:for(;;)if(d&&m==s[d-1].to){if(h)break e;let g=s[--d];if(!u)for(let O=g.from,y=d;;){if(O==e)break e;if(y&&s[y-1].to==O)O=s[--y].from;else{if(xe[O-1]==l)break e;break}}if(f)f.push(g);else{g.to<c&&i.push(new _n(g.to,c,p));let O=g.direction==$o!=!(p%2);Qh(r,O?n+1:n,o,g.inner,g.from,g.to,i),c=g.from}m=g.from}else{if(m==e||(u?xe[m-1]!=l:xe[m-1]==l))break;m--}f?Th(r,m,c,n+1,o,f,i):m<c&&i.push(new _n(m,c,p)),c=m}}function Qh(r,e,t,n,o,s,i){let l=e%2?2:1;Nx(r,o,s,n,l),Ax(r,o,s,n,l),Rx(o,s,n,l),Th(r,o,s,e,t,n,i)}function Vx(r,e,t){if(!r)return[new _n(0,0,e==ep?1:0)];if(e==$o&&!t.length&&!Ex.test(r))return Mb(r.length);if(t.length)for(;r.length>xe.length;)xe[xe.length]=256;let n=[],o=e==$o?0:1;return Qh(r,o,o,t,0,r.length,n),n}function Mb(r){return[new _n(0,r,0)]}let qb="";function Bx(r,e,t,n,o){var s;let i=n.head-r.from,l=_n.find(e,i,(s=n.bidiLevel)!==null&&s!==void 0?s:-1,n.assoc),c=e[l],d=c.side(o,t);if(i==d){let f=l+=o?1:-1;if(f<0||f>=e.length)return null;c=e[l=f],i=c.side(!o,t),d=c.side(o,t)}let u=Ar(r.text,i,c.forward(o,t));(u<c.from||u>c.to)&&(u=d),qb=r.text.slice(Math.min(i,u),Math.max(i,u));let h=l==(o?e.length-1:0)?null:e[l+(o?1:-1)];return h&&u==d&&h.level+(o?0:1)<c.level?Y.cursor(h.side(!o,t)+r.from,h.forward(o,t)?1:-1,h.level):Y.cursor(u+r.from,c.forward(o,t)?-1:1,c.level)}function Zx(r,e,t){for(let n=e;n<t;n++){let o=jb(r.charCodeAt(n));if(o==1)return $o;if(o==2||o==4)return ep}return $o}const Xb=ee.define(),Wb=ee.define(),zb=ee.define(),Ub=ee.define(),Eh=ee.define(),Yb=ee.define(),Lb=ee.define(),Hb=ee.define({combine:r=>r.some(e=>e)}),Ix=ee.define({combine:r=>r.some(e=>e)});class hs{constructor(e,t="nearest",n="nearest",o=5,s=5,i=!1){this.range=e,this.y=t,this.x=n,this.yMargin=o,this.xMargin=s,this.isSnapshot=i}map(e){return e.empty?this:new hs(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new hs(Y.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const al=_e.define({map:(r,e)=>r.map(e)});function pr(r,e,t){let n=r.facet(Ub);n.length?n[0](e):window.onerror?window.onerror(String(e),t,void 0,void 0,e):t?console.error(t+":",e):console.error(e)}const id=ee.define({combine:r=>r.length?r[0]:!0});let jx=0;const Ca=ee.define();class Ft{constructor(e,t,n,o,s){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=o,this.extension=s(this)}static define(e,t){const{eventHandlers:n,eventObservers:o,provide:s,decorations:i}=t||{};return new Ft(jx++,e,n,o,l=>{let c=[Ca.of(l)];return i&&c.push(oi.of(d=>{let u=d.plugin(l);return u?i(u):$e.none})),s&&c.push(s(l)),c})}static fromClass(e,t){return Ft.define(n=>new e(n),t)}}class iu{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(n){if(pr(t.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){pr(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(n){pr(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Gb=ee.define(),tp=ee.define(),oi=ee.define(),Fb=ee.define(),rp=ee.define(),Kb=ee.define();function Rg(r,e){let t=r.state.facet(Kb);if(!t.length)return t;let n=t.map(s=>s instanceof Function?s(r):s),o=[];return we.spans(n,e.from,e.to,{point(){},span(s,i,l,c){let d=s-e.from,u=i-e.from,h=o;for(let f=l.length-1;f>=0;f--,c--){let p=l[f].spec.bidiIsolate,m;if(p==null&&(p=Zx(e.text,d,u)),c>0&&h.length&&(m=h[h.length-1]).to==d&&m.direction==p)m.to=u,h=m.inner;else{let g={from:d,to:u,direction:p,inner:[]};h.push(g),h=g.inner}}}}),o}const Jb=ee.define();function ev(r){let e=0,t=0,n=0,o=0;for(let s of r.state.facet(Jb)){let i=s(r);i&&(i.left!=null&&(e=Math.max(e,i.left)),i.right!=null&&(t=Math.max(t,i.right)),i.top!=null&&(n=Math.max(n,i.top)),i.bottom!=null&&(o=Math.max(o,i.bottom)))}return{left:e,right:t,top:n,bottom:o}}const Ta=ee.define();class Lt{constructor(e,t,n,o){this.fromA=e,this.toA=t,this.fromB=n,this.toB=o}join(e){return new Lt(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let o=e[t-1];if(!(o.fromA>n.toA)){if(o.toA<n.fromA)break;n=n.join(o),e.splice(t-1,1)}}return e.splice(t,0,n),e}static extendWithRanges(e,t){if(t.length==0)return e;let n=[];for(let o=0,s=0,i=0,l=0;;o++){let c=o==e.length?null:e[o],d=i-l,u=c?c.fromB:1e9;for(;s<t.length&&t[s]<u;){let h=t[s],f=t[s+1],p=Math.max(l,h),m=Math.min(u,f);if(p<=m&&new Lt(p+d,m+d,p,m).addToSet(n),f>u)break;s+=2}if(!c)return n;new Lt(c.fromA,c.toA,c.fromB,c.toB).addToSet(n),i=c.toA,l=c.toB}}}class pc{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=et.empty(this.startState.doc.length);for(let s of n)this.changes=this.changes.compose(s.changes);let o=[];this.changes.iterChangedRanges((s,i,l,c)=>o.push(new Lt(s,i,l,c))),this.changedRanges=o}static create(e,t,n){return new pc(e,t,n)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class Vg extends Be{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Fe],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Lt(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let n=e.changedRanges;this.minWidth>0&&n.length&&(n.every(({fromA:d,toA:u})=>u<this.minWidthFrom||d>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let o=-1;this.view.inputState.composing>=0&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?o=this.domChanged.newSel.head:!Ux(e.changes,this.hasComposition)&&!e.selectionSet&&(o=e.state.selection.main.head));let s=o>-1?Mx(this.view,e.changes,o):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:d,to:u}=this.hasComposition;n=new Lt(d,u,e.changes.mapPos(d,-1),e.changes.mapPos(u,1)).addToSet(n.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(H.ie||H.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let i=this.decorations,l=this.updateDeco(),c=Wx(i,l,e.changes);return n=Lt.extendWithRanges(n,c),!(this.flags&7)&&n.length==0?!1:(this.updateInner(n,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:o}=this.view;o.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let i=H.chrome||H.ios?{node:o.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,i),this.flags&=-8,i&&(i.written||o.selectionRange.focusNode!=i.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(i=>i.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let i of this.children)i instanceof Tn&&i.widget instanceof Bg&&s.push(i.dom);o.updateGaps(s)}updateChildren(e,t,n){let o=n?n.range.addToSet(e.slice()):e,s=this.childCursor(t);for(let i=o.length-1;;i--){let l=i>=0?o[i]:null;if(!l)break;let{fromA:c,toA:d,fromB:u,toB:h}=l,f,p,m,g;if(n&&n.range.fromB<h&&n.range.toB>u){let k=qa.build(this.view.state.doc,u,n.range.fromB,this.decorations,this.dynamicDecorationMap),S=qa.build(this.view.state.doc,n.range.toB,h,this.decorations,this.dynamicDecorationMap);p=k.breakAtStart,m=k.openStart,g=S.openEnd;let w=this.compositionView(n);S.breakAtStart?w.breakAfter=1:S.content.length&&w.merge(w.length,w.length,S.content[0],!1,S.openStart,0)&&(w.breakAfter=S.content[0].breakAfter,S.content.shift()),k.content.length&&w.merge(0,0,k.content[k.content.length-1],!0,0,k.openEnd)&&k.content.pop(),f=k.content.concat(w).concat(S.content)}else({content:f,breakAtStart:p,openStart:m,openEnd:g}=qa.build(this.view.state.doc,u,h,this.decorations,this.dynamicDecorationMap));let{i:O,off:y}=s.findPos(d,1),{i:b,off:v}=s.findPos(c,-1);Qb(this,b,v,O,y,f,p,m,g)}n&&this.fixCompositionDOM(n)}compositionView(e){let t=new rn(e.text.nodeValue);t.flags|=8;for(let{deco:o}of e.marks)t=new nn(o,[t],t.length);let n=new Fe;return n.append(t,0),n}fixCompositionDOM(e){let t=(s,i)=>{i.flags|=8|(i.children.some(c=>c.flags&7)?1:0),this.markedForComposition.add(i);let l=Be.get(s);l&&l!=i&&(l.dom=null),i.setDOM(s)},n=this.childPos(e.range.fromB,1),o=this.children[n.i];t(e.line,o);for(let s=e.marks.length-1;s>=-1;s--)n=o.childPos(n.off,1),o=o.children[n.i],t(s>=0?e.marks[s].node:e.text,o)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let n=this.view.root.activeElement,o=n==this.dom,s=!o&&Ml(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n));if(!(o||t||s))return;let i=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,c=this.moveToLine(this.domAtPos(l.anchor)),d=l.empty?c:this.moveToLine(this.domAtPos(l.head));if(H.gecko&&l.empty&&!this.hasComposition&&Dx(c)){let h=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(h,c.node.childNodes[c.offset]||null)),c=d=new ht(h,0),i=!0}let u=this.view.observer.selectionRange;(i||!u.focusNode||(!Ma(c.node,c.offset,u.anchorNode,u.anchorOffset)||!Ma(d.node,d.offset,u.focusNode,u.focusOffset))&&!this.suppressWidgetCursorChange(u,l))&&(this.view.observer.ignore(()=>{H.android&&H.chrome&&this.dom.contains(u.focusNode)&&zx(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let h=fc(this.view.root);if(h)if(l.empty){if(H.gecko){let f=qx(c.node,c.offset);if(f&&f!=3){let p=rv(c.node,c.offset,f==1?1:-1);p&&(c=new ht(p.node,p.offset))}}h.collapse(c.node,c.offset),l.bidiLevel!=null&&h.caretBidiLevel!==void 0&&(h.caretBidiLevel=l.bidiLevel)}else if(h.extend){h.collapse(c.node,c.offset);try{h.extend(d.node,d.offset)}catch{}}else{let f=document.createRange();l.anchor>l.head&&([c,d]=[d,c]),f.setEnd(d.node,d.offset),f.setStart(c.node,c.offset),h.removeAllRanges(),h.addRange(f)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(c,d)),this.impreciseAnchor=c.precise?null:new ht(u.anchorNode,u.anchorOffset),this.impreciseHead=d.precise?null:new ht(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&Ma(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=fc(e.root),{anchorNode:o,anchorOffset:s}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let i=Fe.find(this,t.head);if(!i)return;let l=i.posAtStart;if(t.head==l||t.head==l+i.length)return;let c=this.coordsAt(t.head,-1),d=this.coordsAt(t.head,1);if(!c||!d||c.bottom>d.top)return;let u=this.domAtPos(t.head+t.assoc);n.collapse(u.node,u.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let h=e.observer.selectionRange;e.docView.posFromDOM(h.anchorNode,h.anchorOffset)!=t.from&&n.collapse(o,s)}moveToLine(e){let t=this.dom,n;if(e.node!=t)return e;for(let o=e.offset;!n&&o<t.childNodes.length;o++){let s=Be.get(t.childNodes[o]);s instanceof Fe&&(n=s.domAtPos(0))}for(let o=e.offset-1;!n&&o>=0;o--){let s=Be.get(t.childNodes[o]);s instanceof Fe&&(n=s.domAtPos(s.length))}return n?new ht(n.node,n.offset,!0):e}nearest(e){for(let t=e;t;){let n=Be.get(t);if(n&&n.rootView==this)return n;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let o=this.children[t];if(n<o.length||o instanceof Fe)break;t++,n=0}return this.children[t].domAtPos(n)}coordsAt(e,t){let n=null,o=0;for(let s=this.length,i=this.children.length-1;i>=0;i--){let l=this.children[i],c=s-l.breakAfter,d=c-l.length;if(c<e)break;d<=e&&(d<e||l.covers(-1))&&(c>e||l.covers(1))&&(!n||l instanceof Fe&&!(n instanceof Fe&&t>=0))&&(n=l,o=d),s=d}return n?n.coordsAt(e-o,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),o=this.children[t];if(!(o instanceof Fe))return null;for(;o.children.length;){let{i:l,off:c}=o.childPos(n,1);for(;;l++){if(l==o.children.length)return null;if((o=o.children[l]).length)break}n=c}if(!(o instanceof rn))return null;let s=Ar(o.text,n);if(s==n)return null;let i=So(o.dom,n,s).getClientRects();for(let l=0;l<i.length;l++){let c=i[l];if(l==i.length-1||c.top<c.bottom&&c.left<c.right)return c}return null}measureVisibleLineHeights(e){let t=[],{from:n,to:o}=e,s=this.view.contentDOM.clientWidth,i=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,c=this.view.textDirection==He.LTR;for(let d=0,u=0;u<this.children.length;u++){let h=this.children[u],f=d+h.length;if(f>o)break;if(d>=n){let p=h.dom.getBoundingClientRect();if(t.push(p.height),i){let m=h.dom.lastChild,g=m?ri(m):[];if(g.length){let O=g[g.length-1],y=c?O.right-p.left:p.right-O.left;y>l&&(l=y,this.minWidth=s,this.minWidthFrom=d,this.minWidthTo=f)}}}d=f+h.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return getComputedStyle(this.children[t].dom).direction=="rtl"?He.RTL:He.LTR}measureTextSize(){for(let s of this.children)if(s instanceof Fe){let i=s.measureTextSize();if(i)return i}let e=document.createElement("div"),t,n,o;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let s=ri(e.firstChild)[0];t=e.getBoundingClientRect().height,n=s?s.width/27:7,o=s?s.height:t,e.remove()}),{lineHeight:t,charWidth:n,textHeight:o}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new Tb(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,o=0;;o++){let s=o==t.viewports.length?null:t.viewports[o],i=s?s.from-1:this.length;if(i>n){let l=(t.lineBlockAt(i).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push($e.replace({widget:new Bg(l),block:!0,inclusive:!0,isBlockGap:!0}).range(n,i))}if(!s)break;n=s.to+1}return $e.set(e)}updateDeco(){let e=this.view.state.facet(oi).map((o,s)=>(this.dynamicDecorationMap[s]=typeof o=="function")?o(this.view):o),t=!1,n=this.view.state.facet(Fb).map((o,s)=>{let i=typeof o=="function";return i&&(t=!0),i?o(this.view):o});n.length&&(this.dynamicDecorationMap[e.length]=t,e.push(we.join(n)));for(let o=e.length;o<e.length+3;o++)this.dynamicDecorationMap[o]=!1;return this.decorations=[...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){if(e.isSnapshot){let d=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=d.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}let{range:t}=e,n=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),o;if(!n)return;!t.empty&&(o=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(n={left:Math.min(n.left,o.left),top:Math.min(n.top,o.top),right:Math.max(n.right,o.right),bottom:Math.max(n.bottom,o.bottom)});let s=ev(this.view),i={left:n.left-s.left,top:n.top-s.top,right:n.right+s.right,bottom:n.bottom+s.bottom},{offsetWidth:l,offsetHeight:c}=this.view.scrollDOM;bx(this.view.scrollDOM,i,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,l),-l),Math.max(Math.min(e.yMargin,c),-c),this.view.textDirection==He.LTR)}}function Dx(r){return r.node.nodeType==1&&r.node.firstChild&&(r.offset==0||r.node.childNodes[r.offset-1].contentEditable=="false")&&(r.offset==r.node.childNodes.length||r.node.childNodes[r.offset].contentEditable=="false")}class Bg extends Zs{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function tv(r,e){let t=r.observer.selectionRange,n=t.focusNode&&rv(t.focusNode,t.focusOffset,0);if(!n)return null;let o=e-n.offset;return{from:o,to:o+n.node.nodeValue.length,node:n.node}}function Mx(r,e,t){let n=tv(r,t);if(!n)return null;let{node:o,from:s,to:i}=n,l=o.nodeValue;if(/[\n\r]/.test(l)||r.state.doc.sliceString(n.from,n.to)!=l)return null;let c=e.invertedDesc,d=new Lt(c.mapPos(s),c.mapPos(i),s,i),u=[];for(let h=o.parentNode;;h=h.parentNode){let f=Be.get(h);if(f instanceof nn)u.push({node:h,deco:f.mark});else{if(f instanceof Fe||h.nodeName=="DIV"&&h.parentNode==r.contentDOM)return{range:d,text:o,marks:u,line:h};if(h!=r.contentDOM)u.push({node:h,deco:new Pi({inclusive:!0,attributes:_x(h),tagName:h.tagName.toLowerCase()})});else return null}}}function rv(r,e,t){if(t<=0)for(let n=r,o=e;;){if(n.nodeType==3)return{node:n,offset:o};if(n.nodeType==1&&o>0)n=n.childNodes[o-1],o=tn(n);else break}if(t>=0)for(let n=r,o=e;;){if(n.nodeType==3)return{node:n,offset:o};if(n.nodeType==1&&o<n.childNodes.length&&t>=0)n=n.childNodes[o],o=0;else break}return null}function qx(r,e){return r.nodeType!=1?0:(e&&r.childNodes[e-1].contentEditable=="false"?1:0)|(e<r.childNodes.length&&r.childNodes[e].contentEditable=="false"?2:0)}let Xx=class{constructor(){this.changes=[]}compareRange(e,t){_h(e,t,this.changes)}comparePoint(e,t){_h(e,t,this.changes)}};function Wx(r,e,t){let n=new Xx;return we.compare(r,e,t,n),n.changes}function zx(r,e){for(let t=r;t&&t!=e;t=t.assignedSlot||t.parentNode)if(t.nodeType==1&&t.contentEditable=="false")return!0;return!1}function Ux(r,e){let t=!1;return e&&r.iterChangedRanges((n,o)=>{n<e.to&&o>e.from&&(t=!0)}),t}function Yx(r,e,t=1){let n=r.charCategorizer(e),o=r.doc.lineAt(e),s=e-o.from;if(o.length==0)return Y.cursor(e);s==0?t=1:s==o.length&&(t=-1);let i=s,l=s;t<0?i=Ar(o.text,s,!1):l=Ar(o.text,s);let c=n(o.text.slice(i,l));for(;i>0;){let d=Ar(o.text,i,!1);if(n(o.text.slice(d,i))!=c)break;i=d}for(;l<o.length;){let d=Ar(o.text,l);if(n(o.text.slice(l,d))!=c)break;l=d}return Y.range(i+o.from,l+o.from)}function Lx(r,e){return e.left>r?e.left-r:Math.max(0,r-e.right)}function Hx(r,e){return e.top>r?e.top-r:Math.max(0,r-e.bottom)}function lu(r,e){return r.top<e.bottom-1&&r.bottom>e.top+1}function Zg(r,e){return e<r.top?{top:e,left:r.left,right:r.right,bottom:r.bottom}:r}function Ig(r,e){return e>r.bottom?{top:r.top,left:r.left,right:r.right,bottom:e}:r}function Nh(r,e,t){let n,o,s,i,l=!1,c,d,u,h;for(let m=r.firstChild;m;m=m.nextSibling){let g=ri(m);for(let O=0;O<g.length;O++){let y=g[O];o&&lu(o,y)&&(y=Zg(Ig(y,o.bottom),o.top));let b=Lx(e,y),v=Hx(t,y);if(b==0&&v==0)return m.nodeType==3?jg(m,e,t):Nh(m,e,t);if(!n||i>v||i==v&&s>b){n=m,o=y,s=b,i=v;let k=v?t<y.top?-1:1:b?e<y.left?-1:1:0;l=!k||(k>0?O<g.length-1:O>0)}b==0?t>y.bottom&&(!u||u.bottom<y.bottom)?(c=m,u=y):t<y.top&&(!h||h.top>y.top)&&(d=m,h=y):u&&lu(u,y)?u=Ig(u,y.bottom):h&&lu(h,y)&&(h=Zg(h,y.top))}}if(u&&u.bottom>=t?(n=c,o=u):h&&h.top<=t&&(n=d,o=h),!n)return{node:r,offset:0};let f=Math.max(o.left,Math.min(o.right,e));if(n.nodeType==3)return jg(n,f,t);if(l&&n.contentEditable!="false")return Nh(n,f,t);let p=Array.prototype.indexOf.call(r.childNodes,n)+(e>=(o.left+o.right)/2?1:0);return{node:r,offset:p}}function jg(r,e,t){let n=r.nodeValue.length,o=-1,s=1e9,i=0;for(let l=0;l<n;l++){let c=So(r,l,l+1).getClientRects();for(let d=0;d<c.length;d++){let u=c[d];if(u.top==u.bottom)continue;i||(i=e-u.left);let h=(u.top>t?u.top-t:t-u.bottom)-1;if(u.left-1<=e&&u.right+1>=e&&h<s){let f=e>=(u.left+u.right)/2,p=f;if((H.chrome||H.gecko)&&So(r,l).getBoundingClientRect().left==u.right&&(p=!f),h<=0)return{node:r,offset:l+(p?1:0)};o=l+(p?1:0),s=h}}}return{node:r,offset:o>-1?o:i>0?r.nodeValue.length:0}}function nv(r,e,t,n=-1){var o,s;let i=r.contentDOM.getBoundingClientRect(),l=i.top+r.viewState.paddingTop,c,{docHeight:d}=r.viewState,{x:u,y:h}=e,f=h-l;if(f<0)return 0;if(f>d)return r.state.doc.length;for(let k=r.viewState.heightOracle.textHeight/2,S=!1;c=r.elementAtHeight(f),c.type!=fr.Text;)for(;f=n>0?c.bottom+k:c.top-k,!(f>=0&&f<=d);){if(S)return t?null:0;S=!0,n=-n}h=l+f;let p=c.from;if(p<r.viewport.from)return r.viewport.from==0?0:t?null:Dg(r,i,c,u,h);if(p>r.viewport.to)return r.viewport.to==r.state.doc.length?r.state.doc.length:t?null:Dg(r,i,c,u,h);let m=r.dom.ownerDocument,g=r.root.elementFromPoint?r.root:m,O=g.elementFromPoint(u,h);O&&!r.contentDOM.contains(O)&&(O=null),O||(u=Math.max(i.left+1,Math.min(i.right-1,u)),O=g.elementFromPoint(u,h),O&&!r.contentDOM.contains(O)&&(O=null));let y,b=-1;if(O&&((o=r.docView.nearest(O))===null||o===void 0?void 0:o.isEditable)!=!1){if(m.caretPositionFromPoint){let k=m.caretPositionFromPoint(u,h);k&&({offsetNode:y,offset:b}=k)}else if(m.caretRangeFromPoint){let k=m.caretRangeFromPoint(u,h);k&&({startContainer:y,startOffset:b}=k,(!r.contentDOM.contains(y)||H.safari&&Gx(y,b,u)||H.chrome&&Fx(y,b,u))&&(y=void 0))}}if(!y||!r.docView.dom.contains(y)){let k=Fe.find(r.docView,p);if(!k)return f>c.top+c.height/2?c.to:c.from;({node:y,offset:b}=Nh(k.dom,u,h))}let v=r.docView.nearest(y);if(!v)return null;if(v.isWidget&&((s=v.dom)===null||s===void 0?void 0:s.nodeType)==1){let k=v.dom.getBoundingClientRect();return e.y<k.top||e.y<=k.bottom&&e.x<=(k.left+k.right)/2?v.posAtStart:v.posAtEnd}else return v.localPosFromDOM(y,b)+v.posAtStart}function Dg(r,e,t,n,o){let s=Math.round((n-e.left)*r.defaultCharacterWidth);if(r.lineWrapping&&t.height>r.defaultLineHeight*1.5){let l=r.viewState.heightOracle.textHeight,c=Math.floor((o-t.top-(r.defaultLineHeight-l)*.5)/l);s+=c*r.viewState.heightOracle.lineLength}let i=r.state.sliceDoc(t.from,t.to);return t.from+hx(i,s,r.state.tabSize)}function Gx(r,e,t){let n;if(r.nodeType!=3||e!=(n=r.nodeValue.length))return!1;for(let o=r.nextSibling;o;o=o.nextSibling)if(o.nodeType!=1||o.nodeName!="BR")return!1;return So(r,n-1,n).getBoundingClientRect().left>t}function Fx(r,e,t){if(e!=0)return!1;for(let o=r;;){let s=o.parentNode;if(!s||s.nodeType!=1||s.firstChild!=o)return!1;if(s.classList.contains("cm-line"))break;o=s}let n=r.nodeType==1?r.getBoundingClientRect():So(r,0,Math.max(r.nodeValue.length,1)).getBoundingClientRect();return t-n.left>5}function Kx(r,e){let t=r.lineBlockAt(e);if(Array.isArray(t.type)){for(let n of t.type)if(n.to>e||n.to==e&&(n.to==t.to||n.type==fr.Text))return n}return t}function Jx(r,e,t,n){let o=Kx(r,e.head),s=!n||o.type!=fr.Text||!(r.lineWrapping||o.widgetLineBreaks)?null:r.coordsAtPos(e.assoc<0&&e.head>o.from?e.head-1:e.head);if(s){let i=r.dom.getBoundingClientRect(),l=r.textDirectionAt(o.from),c=r.posAtCoords({x:t==(l==He.LTR)?i.right-1:i.left+1,y:(s.top+s.bottom)/2});if(c!=null)return Y.cursor(c,t?-1:1)}return Y.cursor(t?o.to:o.from,t?-1:1)}function Mg(r,e,t,n){let o=r.state.doc.lineAt(e.head),s=r.bidiSpans(o),i=r.textDirectionAt(o.from);for(let l=e,c=null;;){let d=Bx(o,s,i,l,t),u=qb;if(!d){if(o.number==(t?r.state.doc.lines:1))return l;u=`
60
- `,o=r.state.doc.line(o.number+(t?1:-1)),s=r.bidiSpans(o),d=r.visualLineSide(o,!t)}if(c){if(!c(u))return l}else{if(!n)return d;c=n(u)}l=d}}function e_(r,e,t){let n=r.state.charCategorizer(e),o=n(t);return s=>{let i=n(s);return o==Ut.Space&&(o=i),o==i}}function t_(r,e,t,n){let o=e.head,s=t?1:-1;if(o==(t?r.state.doc.length:0))return Y.cursor(o,e.assoc);let i=e.goalColumn,l,c=r.contentDOM.getBoundingClientRect(),d=r.coordsAtPos(o,e.assoc||-1),u=r.documentTop;if(d)i==null&&(i=d.left-c.left),l=s<0?d.top:d.bottom;else{let p=r.viewState.lineBlockAt(o);i==null&&(i=Math.min(c.right-c.left,r.defaultCharacterWidth*(o-p.from))),l=(s<0?p.top:p.bottom)+u}let h=c.left+i,f=n??r.viewState.heightOracle.textHeight>>1;for(let p=0;;p+=10){let m=l+(f+p)*s,g=nv(r,{x:h,y:m},!1,s);if(m<c.top||m>c.bottom||(s<0?g<o:g>o)){let O=r.docView.coordsForChar(g),y=!O||m<O.top?-1:1;return Y.cursor(g,y,void 0,i)}}}function ql(r,e,t){for(;;){let n=0;for(let o of r)o.between(e-1,e+1,(s,i,l)=>{if(e>s&&e<i){let c=n||t||(e-s<i-e?-1:1);e=c<0?s:i,n=c}});if(!n)return e}}function cu(r,e,t){let n=ql(r.state.facet(rp).map(o=>o(r)),t.from,e.head>t.from?-1:1);return n==t.from?t:Y.cursor(n,n<t.from?1:-1)}class r_{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,H.safari&&e.contentDOM.addEventListener("input",()=>null),H.gecko&&y_(e.contentDOM.ownerDocument)}handleEvent(e){!d_(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,t){let n=this.handlers[e];if(n){for(let o of n.observers)o(this.view,t);for(let o of n.handlers){if(t.defaultPrevented)break;if(o(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=n_(e),n=this.handlers,o=this.view.contentDOM;for(let s in t)if(s!="scroll"){let i=!t[s].handlers.length,l=n[s];l&&i!=!l.handlers.length&&(o.removeEventListener(s,this.handleEvent),l=null),l||o.addEventListener(s,this.handleEvent,{passive:i})}for(let s in n)s!="scroll"&&!t[s]&&o.removeEventListener(s,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(e.keyCode!=27&&sv.indexOf(e.keyCode)<0&&(this.view.inputState.lastEscPress=0),H.android&&H.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return H.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=ov.find(n=>n.keyCode==e.keyCode))&&!e.ctrlKey||o_.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,us(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:H.safari&&!H.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function qg(r,e){return(t,n)=>{try{return e.call(r,n,t)}catch(o){pr(t.state,o)}}}function n_(r){let e=Object.create(null);function t(n){return e[n]||(e[n]={observers:[],handlers:[]})}for(let n of r){let o=n.spec;if(o&&o.domEventHandlers)for(let s in o.domEventHandlers){let i=o.domEventHandlers[s];i&&t(s).handlers.push(qg(n.value,i))}if(o&&o.domEventObservers)for(let s in o.domEventObservers){let i=o.domEventObservers[s];i&&t(s).observers.push(qg(n.value,i))}}for(let n in mr)t(n).handlers.push(mr[n]);for(let n in gr)t(n).observers.push(gr[n]);return e}const ov=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],o_="dthko",sv=[16,17,18,20,91,92,224,225],il=6;function ll(r){return Math.max(0,r)*.7+8}function s_(r,e){return Math.max(Math.abs(r.clientX-e.clientX),Math.abs(r.clientY-e.clientY))}class a_{constructor(e,t,n,o){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=o,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=vx(e.contentDOM),this.atoms=e.state.facet(rp).map(i=>i(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(ve.allowMultipleSelections)&&i_(e,t),this.dragging=c_(e,t)&&cv(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var t;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&s_(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let n=0,o=0,s=((t=this.scrollParent)===null||t===void 0?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},i=ev(this.view);e.clientX-i.left<=s.left+il?n=-ll(s.left-e.clientX):e.clientX+i.right>=s.right-il&&(n=ll(e.clientX-s.right)),e.clientY-i.top<=s.top+il?o=-ll(s.top-e.clientY):e.clientY+i.bottom>=s.bottom-il&&(o=ll(e.clientY-s.bottom)),this.setScrollSpeed(n,o)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;n<e.ranges.length;n++){let o=e.ranges[n],s=null;if(o.empty){let i=ql(this.atoms,o.from,0);i!=o.from&&(s=Y.cursor(i,-1))}else{let i=ql(this.atoms,o.from,-1),l=ql(this.atoms,o.to,1);(i!=o.from||l!=o.to)&&(s=Y.range(o.from==o.anchor?i:l,o.from==o.head?i:l))}s&&(t||(t=e.ranges.slice()),t[n]=s)}return t?Y.create(t,e.mainIndex):e}select(e){let{view:t}=this,n=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!n.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function i_(r,e){let t=r.state.facet(Xb);return t.length?t[0](e):H.mac?e.metaKey:e.ctrlKey}function l_(r,e){let t=r.state.facet(Wb);return t.length?t[0](e):H.mac?!e.altKey:!e.ctrlKey}function c_(r,e){let{main:t}=r.state.selection;if(t.empty)return!1;let n=fc(r.root);if(!n||n.rangeCount==0)return!0;let o=n.getRangeAt(0).getClientRects();for(let s=0;s<o.length;s++){let i=o[s];if(i.left<=e.clientX&&i.right>=e.clientX&&i.top<=e.clientY&&i.bottom>=e.clientY)return!0}return!1}function d_(r,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,n;t!=r.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(n=Be.get(t))&&n.ignoreEvent(e))return!1;return!0}const mr=Object.create(null),gr=Object.create(null),av=H.ie&&H.ie_version<15||H.ios&&H.webkit_version<604;function u_(r){let e=r.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{r.focus(),t.remove(),iv(r,t.value)},50)}function iv(r,e){let{state:t}=r,n,o=1,s=t.toText(e),i=s.lines==t.selection.ranges.length;if(Ah!=null&&t.selection.ranges.every(c=>c.empty)&&Ah==s.toString()){let c=-1;n=t.changeByRange(d=>{let u=t.doc.lineAt(d.from);if(u.from==c)return{range:d};c=u.from;let h=t.toText((i?s.line(o++).text:e)+t.lineBreak);return{changes:{from:u.from,insert:h},range:Y.cursor(d.from+h.length)}})}else i?n=t.changeByRange(c=>{let d=s.line(o++);return{changes:{from:c.from,to:c.to,insert:d.text},range:Y.cursor(c.from+d.length)}}):n=t.replaceSelection(s);r.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}gr.scroll=r=>{r.inputState.lastScrollTop=r.scrollDOM.scrollTop,r.inputState.lastScrollLeft=r.scrollDOM.scrollLeft};mr.keydown=(r,e)=>(r.inputState.setSelectionOrigin("select"),e.keyCode==27&&(r.inputState.lastEscPress=Date.now()),!1);gr.touchstart=(r,e)=>{r.inputState.lastTouchTime=Date.now(),r.inputState.setSelectionOrigin("select.pointer")};gr.touchmove=r=>{r.inputState.setSelectionOrigin("select.pointer")};mr.mousedown=(r,e)=>{if(r.observer.flush(),r.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let n of r.state.facet(zb))if(t=n(r,e),t)break;if(!t&&e.button==0&&(t=p_(r,e)),t){let n=!r.hasFocus;r.inputState.startMouseSelection(new a_(r,e,t,n)),n&&r.observer.ignore(()=>xb(r.contentDOM));let o=r.inputState.mouseSelection;if(o)return o.start(e),o.dragging===!1}return!1};function Xg(r,e,t,n){if(n==1)return Y.cursor(e,t);if(n==2)return Yx(r.state,e,t);{let o=Fe.find(r.docView,e),s=r.state.doc.lineAt(o?o.posAtEnd:e),i=o?o.posAtStart:s.from,l=o?o.posAtEnd:s.to;return l<r.state.doc.length&&l==s.to&&l++,Y.range(i,l)}}let lv=(r,e)=>r>=e.top&&r<=e.bottom,Wg=(r,e,t)=>lv(e,t)&&r>=t.left&&r<=t.right;function h_(r,e,t,n){let o=Fe.find(r.docView,e);if(!o)return 1;let s=e-o.posAtStart;if(s==0)return 1;if(s==o.length)return-1;let i=o.coordsAt(s,-1);if(i&&Wg(t,n,i))return-1;let l=o.coordsAt(s,1);return l&&Wg(t,n,l)?1:i&&lv(n,i)?-1:1}function zg(r,e){let t=r.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:t,bias:h_(r,t,e.clientX,e.clientY)}}const f_=H.ie&&H.ie_version<=11;let Ug=null,Yg=0,Lg=0;function cv(r){if(!f_)return r.detail;let e=Ug,t=Lg;return Ug=r,Lg=Date.now(),Yg=!e||t>Date.now()-400&&Math.abs(e.clientX-r.clientX)<2&&Math.abs(e.clientY-r.clientY)<2?(Yg+1)%3:1}function p_(r,e){let t=zg(r,e),n=cv(e),o=r.state.selection;return{update(s){s.docChanged&&(t.pos=s.changes.mapPos(t.pos),o=o.map(s.changes))},get(s,i,l){let c=zg(r,s),d,u=Xg(r,c.pos,c.bias,n);if(t.pos!=c.pos&&!i){let h=Xg(r,t.pos,t.bias,n),f=Math.min(h.from,u.from),p=Math.max(h.to,u.to);u=f<u.from?Y.range(f,p):Y.range(p,f)}return i?o.replaceRange(o.main.extend(u.from,u.to)):l&&n==1&&o.ranges.length>1&&(d=m_(o,c.pos))?d:l?o.addRange(u):Y.create([u])}}}function m_(r,e){for(let t=0;t<r.ranges.length;t++){let{from:n,to:o}=r.ranges[t];if(n<=e&&o>=e)return Y.create(r.ranges.slice(0,t).concat(r.ranges.slice(t+1)),r.mainIndex==t?0:r.mainIndex-(r.mainIndex>t?1:0))}return null}mr.dragstart=(r,e)=>{let{selection:{main:t}}=r.state;if(e.target.draggable){let o=r.docView.nearest(e.target);if(o&&o.isWidget){let s=o.posAtStart,i=s+o.length;(s>=t.to||i<=t.from)&&(t=Y.range(s,i))}}let{inputState:n}=r;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",r.state.sliceDoc(t.from,t.to)),e.dataTransfer.effectAllowed="copyMove"),!1};mr.dragend=r=>(r.inputState.draggedContent=null,!1);function Hg(r,e,t,n){if(!t)return;let o=r.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=r.inputState,i=n&&s&&l_(r,e)?{from:s.from,to:s.to}:null,l={from:o,insert:t},c=r.state.changes(i?[i,l]:l);r.focus(),r.dispatch({changes:c,selection:{anchor:c.mapPos(o,-1),head:c.mapPos(o,1)},userEvent:i?"move.drop":"input.drop"}),r.inputState.draggedContent=null}mr.drop=(r,e)=>{if(!e.dataTransfer)return!1;if(r.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let n=Array(t.length),o=0,s=()=>{++o==t.length&&Hg(r,e,n.filter(i=>i!=null).join(r.state.lineBreak),!1)};for(let i=0;i<t.length;i++){let l=new FileReader;l.onerror=s,l.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(n[i]=l.result),s()},l.readAsText(t[i])}return!0}else{let n=e.dataTransfer.getData("Text");if(n)return Hg(r,e,n,!0),!0}return!1};mr.paste=(r,e)=>{if(r.state.readOnly)return!0;r.observer.flush();let t=av?null:e.clipboardData;return t?(iv(r,t.getData("text/plain")||t.getData("text/uri-text")),!0):(u_(r),!1)};function g_(r,e){let t=r.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=e,n.focus(),n.selectionEnd=e.length,n.selectionStart=0,setTimeout(()=>{n.remove(),r.focus()},50)}function O_(r){let e=[],t=[],n=!1;for(let o of r.selection.ranges)o.empty||(e.push(r.sliceDoc(o.from,o.to)),t.push(o));if(!e.length){let o=-1;for(let{from:s}of r.selection.ranges){let i=r.doc.lineAt(s);i.number>o&&(e.push(i.text),t.push({from:i.from,to:Math.min(r.doc.length,i.to+1)})),o=i.number}n=!0}return{text:e.join(r.lineBreak),ranges:t,linewise:n}}let Ah=null;mr.copy=mr.cut=(r,e)=>{let{text:t,ranges:n,linewise:o}=O_(r.state);if(!t&&!o)return!1;Ah=o?t:null,e.type=="cut"&&!r.state.readOnly&&r.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let s=av?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",t),!0):(g_(r,t),!1)};const dv=No.define();function uv(r,e){let t=[];for(let n of r.facet(Lb)){let o=n(r,e);o&&t.push(o)}return t?r.update({effects:t,annotations:dv.of(!0)}):null}function hv(r){setTimeout(()=>{let e=r.hasFocus;if(e!=r.inputState.notifiedFocused){let t=uv(r.state,e);t?r.dispatch(t):r.update([])}},10)}gr.focus=r=>{r.inputState.lastFocusTime=Date.now(),!r.scrollDOM.scrollTop&&(r.inputState.lastScrollTop||r.inputState.lastScrollLeft)&&(r.scrollDOM.scrollTop=r.inputState.lastScrollTop,r.scrollDOM.scrollLeft=r.inputState.lastScrollLeft),hv(r)};gr.blur=r=>{r.observer.clearSelectionRange(),hv(r)};gr.compositionstart=gr.compositionupdate=r=>{r.inputState.compositionFirstChange==null&&(r.inputState.compositionFirstChange=!0),r.inputState.composing<0&&(r.inputState.composing=0)};gr.compositionend=r=>{r.inputState.composing=-1,r.inputState.compositionEndedAt=Date.now(),r.inputState.compositionPendingKey=!0,r.inputState.compositionPendingChange=r.observer.pendingRecords().length>0,r.inputState.compositionFirstChange=null,H.chrome&&H.android?r.observer.flushSoon():r.inputState.compositionPendingChange?Promise.resolve().then(()=>r.observer.flush()):setTimeout(()=>{r.inputState.composing<0&&r.docView.hasComposition&&r.update([])},50)};gr.contextmenu=r=>{r.inputState.lastContextMenu=Date.now()};mr.beforeinput=(r,e)=>{var t;let n;if(H.chrome&&H.android&&(n=ov.find(o=>o.inputType==e.inputType))&&(r.observer.delayAndroidKey(n.key,n.keyCode),n.key=="Backspace"||n.key=="Delete")){let o=((t=window.visualViewport)===null||t===void 0?void 0:t.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>o+10&&r.hasFocus&&(r.contentDOM.blur(),r.focus())},100)}return!1};const Gg=new Set;function y_(r){Gg.has(r)||(Gg.add(r),r.addEventListener("copy",()=>{}),r.addEventListener("cut",()=>{}))}const Fg=["pre-wrap","normal","pre-line","break-spaces"];class b_{constructor(e){this.lineWrapping=e,this.doc=ke.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Fg.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n<e.length;n++){let o=e[n];o<0?n++:this.heightSamples[Math.floor(o*10)]||(t=!0,this.heightSamples[Math.floor(o*10)]=!0)}return t}refresh(e,t,n,o,s,i){let l=Fg.indexOf(e)>-1,c=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=t,this.charWidth=n,this.textHeight=o,this.lineLength=s,c){this.heightSamples={};for(let d=0;d<i.length;d++){let u=i[d];u<0?d++:this.heightSamples[Math.floor(u*10)]=!0}}return c}}class v_{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class Er{constructor(e,t,n,o,s){this.from=e,this.length=t,this.top=n,this.height=o,this._content=s}get type(){return typeof this._content=="number"?fr.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Vn?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new Er(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var Re=function(r){return r[r.ByPos=0]="ByPos",r[r.ByHeight=1]="ByHeight",r[r.ByPosNoHeight=2]="ByPosNoHeight",r}(Re||(Re={}));const Xl=.001;class vt{constructor(e,t,n=2){this.length=e,this.height=t,this.flags=n}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>Xl&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return vt.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,o){let s=this,i=n.doc;for(let l=o.length-1;l>=0;l--){let{fromA:c,toA:d,fromB:u,toB:h}=o[l],f=s.lineAt(c,Re.ByPosNoHeight,n.setDoc(t),0,0),p=f.to>=d?f:s.lineAt(d,Re.ByPosNoHeight,n,0,0);for(h+=p.to-d,d=p.to;l>0&&f.from<=o[l-1].toA;)c=o[l-1].fromA,u=o[l-1].fromB,l--,c<f.from&&(f=s.lineAt(c,Re.ByPosNoHeight,n,0,0));u+=f.from-c,c=f.from;let m=np.build(n.setDoc(i),e,u,h);s=s.replace(c,d,m)}return s.updateHeight(n,0)}static empty(){return new At(0,0)}static of(e){if(e.length==1)return e[0];let t=0,n=e.length,o=0,s=0;for(;;)if(t==n)if(o>s*2){let l=e[t-1];l.break?e.splice(--t,1,l.left,null,l.right):e.splice(--t,1,l.left,l.right),n+=1+l.break,o-=l.size}else if(s>o*2){let l=e[n];l.break?e.splice(n,1,l.left,null,l.right):e.splice(n,1,l.left,l.right),n+=2+l.break,s-=l.size}else break;else if(o<s){let l=e[t++];l&&(o+=l.size)}else{let l=e[--n];l&&(s+=l.size)}let i=0;return e[t-1]==null?(i=1,t--):e[t]==null&&(i=1,n++),new w_(vt.of(e.slice(0,t)),i,vt.of(e.slice(n)))}}vt.prototype.size=1;class fv extends vt{constructor(e,t,n){super(e,t),this.deco=n}blockAt(e,t,n,o){return new Er(o,this.length,n,this.height,this.deco||0)}lineAt(e,t,n,o,s){return this.blockAt(0,n,o,s)}forEachLine(e,t,n,o,s,i){e<=s+this.length&&t>=s&&i(this.blockAt(0,n,o,s))}updateHeight(e,t=0,n=!1,o){return o&&o.from<=t&&o.more&&this.setHeight(e,o.heights[o.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class At extends fv{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,o){return new Er(o,this.length,n,this.height,this.breaks)}replace(e,t,n){let o=n[0];return n.length==1&&(o instanceof At||o instanceof rt&&o.flags&4)&&Math.abs(this.length-o.length)<10?(o instanceof rt?o=new At(o.length,this.height):o.height=this.height,this.outdated||(o.outdated=!1),o):vt.of(n)}updateHeight(e,t=0,n=!1,o){return o&&o.from<=t&&o.more?this.setHeight(e,o.heights[o.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class rt extends vt{constructor(e){super(e,0)}heightMetrics(e,t){let n=e.doc.lineAt(t).number,o=e.doc.lineAt(t+this.length).number,s=o-n+1,i,l=0;if(e.lineWrapping){let c=Math.min(this.height,e.lineHeight*s);i=c/s,this.length>s+1&&(l=(this.height-c)/(this.length-s-1))}else i=this.height/s;return{firstLine:n,lastLine:o,perLine:i,perChar:l}}blockAt(e,t,n,o){let{firstLine:s,lastLine:i,perLine:l,perChar:c}=this.heightMetrics(t,o);if(t.lineWrapping){let d=o+Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length),u=t.doc.lineAt(d),h=l+u.length*c,f=Math.max(n,e-h/2);return new Er(u.from,u.length,f,h,0)}else{let d=Math.max(0,Math.min(i-s,Math.floor((e-n)/l))),{from:u,length:h}=t.doc.line(s+d);return new Er(u,h,n+l*d,l,0)}}lineAt(e,t,n,o,s){if(t==Re.ByHeight)return this.blockAt(e,n,o,s);if(t==Re.ByPosNoHeight){let{from:p,to:m}=n.doc.lineAt(e);return new Er(p,m-p,0,0,0)}let{firstLine:i,perLine:l,perChar:c}=this.heightMetrics(n,s),d=n.doc.lineAt(e),u=l+d.length*c,h=d.number-i,f=o+l*h+c*(d.from-s-h);return new Er(d.from,d.length,Math.max(o,Math.min(f,o+this.height-u)),u,0)}forEachLine(e,t,n,o,s,i){e=Math.max(e,s),t=Math.min(t,s+this.length);let{firstLine:l,perLine:c,perChar:d}=this.heightMetrics(n,s);for(let u=e,h=o;u<=t;){let f=n.doc.lineAt(u);if(u==e){let m=f.number-l;h+=c*m+d*(e-s-m)}let p=c+d*f.length;i(new Er(f.from,f.length,h,p,0)),h+=p,u=f.to+1}}replace(e,t,n){let o=this.length-t;if(o>0){let s=n[n.length-1];s instanceof rt?n[n.length-1]=new rt(s.length+o):n.push(null,new rt(o-1))}if(e>0){let s=n[0];s instanceof rt?n[0]=new rt(e+s.length):n.unshift(new rt(e-1),null)}return vt.of(n)}decomposeLeft(e,t){t.push(new rt(e-1),null)}decomposeRight(e,t){t.push(null,new rt(this.length-e-1))}updateHeight(e,t=0,n=!1,o){let s=t+this.length;if(o&&o.from<=t+this.length&&o.more){let i=[],l=Math.max(t,o.from),c=-1;for(o.from>t&&i.push(new rt(o.from-t-1).updateHeight(e,t));l<=s&&o.more;){let u=e.doc.lineAt(l).length;i.length&&i.push(null);let h=o.heights[o.index++];c==-1?c=h:Math.abs(h-c)>=Xl&&(c=-2);let f=new At(u,h);f.outdated=!1,i.push(f),l+=u+1}l<=s&&i.push(null,new rt(s-l).updateHeight(e,l));let d=vt.of(i);return(c<0||Math.abs(d.height-this.height)>=Xl||Math.abs(c-this.heightMetrics(e,t).perLine)>=Xl)&&(e.heightChanged=!0),d}else(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class w_ extends vt{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return this.flags&1}blockAt(e,t,n,o){let s=n+this.left.height;return e<s?this.left.blockAt(e,t,n,o):this.right.blockAt(e,t,s,o+this.left.length+this.break)}lineAt(e,t,n,o,s){let i=o+this.left.height,l=s+this.left.length+this.break,c=t==Re.ByHeight?e<i:e<l,d=c?this.left.lineAt(e,t,n,o,s):this.right.lineAt(e,t,n,i,l);if(this.break||(c?d.to<l:d.from>l))return d;let u=t==Re.ByPosNoHeight?Re.ByPosNoHeight:Re.ByPos;return c?d.join(this.right.lineAt(l,u,n,i,l)):this.left.lineAt(l,u,n,o,s).join(d)}forEachLine(e,t,n,o,s,i){let l=o+this.left.height,c=s+this.left.length+this.break;if(this.break)e<c&&this.left.forEachLine(e,t,n,o,s,i),t>=c&&this.right.forEachLine(e,t,n,l,c,i);else{let d=this.lineAt(c,Re.ByPos,n,o,s);e<d.from&&this.left.forEachLine(e,d.from-1,n,o,s,i),d.to>=e&&d.from<=t&&i(d),t>d.to&&this.right.forEachLine(d.to+1,t,n,l,c,i)}}replace(e,t,n){let o=this.left.length+this.break;if(t<o)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-o,t-o,n));let s=[];e>0&&this.decomposeLeft(e,s);let i=s.length;for(let l of n)s.push(l);if(e>0&&Kg(s,i-1),t<this.length){let l=s.length;this.decomposeRight(t,s),Kg(s,l)}return vt.of(s)}decomposeLeft(e,t){let n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(n++,e>=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,o=n+this.break;if(e>=o)return this.right.decomposeRight(e-o,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<o&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?vt.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,n=!1,o){let{left:s,right:i}=this,l=t+s.length+this.break,c=null;return o&&o.from<=t+s.length&&o.more?c=s=s.updateHeight(e,t,n,o):s.updateHeight(e,t,n),o&&o.from<=l+i.length&&o.more?c=i=i.updateHeight(e,l,n,o):i.updateHeight(e,l,n),c?this.balanced(s,i):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Kg(r,e){let t,n;r[e]==null&&(t=r[e-1])instanceof rt&&(n=r[e+1])instanceof rt&&r.splice(e-1,3,new rt(t.length+1+n.length))}const k_=5;class np{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let n=Math.min(t,this.lineEnd),o=this.nodes[this.nodes.length-1];o instanceof At?o.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new At(n-this.pos,-1)),this.writtenTo=n,t>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){let o=n.widget?n.widget.estimatedHeight:0,s=n.widget?n.widget.lineBreaks:0;o<0&&(o=this.oracle.lineHeight);let i=t-e;n.block?this.addBlock(new fv(i,o,n)):(i||s||o>=k_)&&this.addLineDeco(o,s,i)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new At(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new rt(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof At)return e;let t=new At(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let o=this.ensureLine();o.length+=n,o.collapsed+=n,o.widgetHeight=Math.max(o.widgetHeight,e),o.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof At)&&!this.isCovered?this.nodes.push(new At(0,-1)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let n=e;for(let o of this.nodes)o instanceof At&&o.updateHeight(this.oracle,n),n+=o?o.length:1;return this.nodes}static build(e,t,n,o){let s=new np(n,e);return we.spans(t,n,o,s,0),s.finish(n)}}function S_(r,e,t){let n=new $_;return we.compare(r,e,t,n,0),n.changes}class $_{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,n,o){(e<t||n&&n.heightRelevant||o&&o.heightRelevant)&&_h(e,t,this.changes,5)}}function P_(r,e){let t=r.getBoundingClientRect(),n=r.ownerDocument,o=n.defaultView||window,s=Math.max(0,t.left),i=Math.min(o.innerWidth,t.right),l=Math.max(0,t.top),c=Math.min(o.innerHeight,t.bottom);for(let d=r.parentNode;d&&d!=n.body;)if(d.nodeType==1){let u=d,h=window.getComputedStyle(u);if((u.scrollHeight>u.clientHeight||u.scrollWidth>u.clientWidth)&&h.overflow!="visible"){let f=u.getBoundingClientRect();s=Math.max(s,f.left),i=Math.min(i,f.right),l=Math.max(l,f.top),c=d==r.parentNode?f.bottom:Math.min(c,f.bottom)}d=h.position=="absolute"||h.position=="fixed"?u.offsetParent:u.parentNode}else if(d.nodeType==11)d=d.host;else break;return{left:s-t.left,right:Math.max(s,i)-t.left,top:l-(t.top+e),bottom:Math.max(l,c)-(t.top+e)}}function x_(r,e){let t=r.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}class du{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let o=e[n],s=t[n];if(o.from!=s.from||o.to!=s.to||o.size!=s.size)return!1}return!0}draw(e,t){return $e.replace({widget:new __(this.size*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class __ extends Zs{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class Jg{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=eO,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=He.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(tp).some(n=>typeof n!="function"&&n.class=="cm-lineWrapping");this.heightOracle=new b_(t),this.stateDeco=e.facet(oi).filter(n=>typeof n!="function"),this.heightMap=vt.empty().applyChanges(this.stateDeco,ke.empty,this.heightOracle.setDoc(e.doc),[new Lt(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=$e.set(this.lineGaps.map(n=>n.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let o=n?t.head:t.anchor;if(!e.some(({from:s,to:i})=>o>=s&&o<=i)){let{from:s,to:i}=this.lineBlockAt(o);e.push(new cl(s,i))}}this.viewports=e.sort((n,o)=>n.from-o.from),this.scaler=this.heightMap.height<=7e6?eO:new Q_(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:Qa(e,this.scaler))})}update(e,t=null){this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(oi).filter(u=>typeof u!="function");let o=e.changedRanges,s=Lt.extendWithRanges(o,S_(n,this.stateDeco,e?e.changes:et.empty(this.state.doc.length))),i=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),this.heightMap.height!=i&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let c=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<c.from||t.range.head>c.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,t));let d=!e.changes.empty||e.flags&2||c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,this.updateForViewport(),d&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Ix)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),o=this.heightOracle,s=n.whiteSpace;this.defaultTextDirection=n.direction=="rtl"?He.RTL:He.LTR;let i=this.heightOracle.mustRefreshForWrapping(s),l=t.getBoundingClientRect(),c=i||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let d=0,u=0;if(l.width&&l.height){let{scaleX:k,scaleY:S}=Pb(t,l);(this.scaleX!=k||this.scaleY!=S)&&(this.scaleX=k,this.scaleY=S,d|=8,i=c=!0)}let h=(parseInt(n.paddingTop)||0)*this.scaleY,f=(parseInt(n.paddingBottom)||0)*this.scaleY;(this.paddingTop!=h||this.paddingBottom!=f)&&(this.paddingTop=h,this.paddingBottom=f,d|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(o.lineWrapping&&(c=!0),this.editorWidth=e.scrollDOM.clientWidth,d|=8);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=Cb(e.scrollDOM);let m=(this.printing?x_:P_)(t,this.paddingTop),g=m.top-this.pixelViewport.top,O=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(c=!0)),!this.inView&&!this.scrollTarget)return 0;let b=l.width;if((this.contentDOMWidth!=b||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,d|=8),c){let k=e.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(k)&&(i=!0),i||o.lineWrapping&&Math.abs(b-this.contentDOMWidth)>o.charWidth){let{lineHeight:S,charWidth:w,textHeight:$}=e.docView.measureTextSize();i=S>0&&o.refresh(s,S,w,$,b/w,k),i&&(e.docView.minWidth=0,d|=8)}g>0&&O>0?u=Math.max(g,O):g<0&&O<0&&(u=Math.min(g,O)),o.heightChanged=!1;for(let S of this.viewports){let w=S.from==this.viewport.from?k:e.docView.measureVisibleLineHeights(S);this.heightMap=(i?vt.empty().applyChanges(this.stateDeco,ke.empty,this.heightOracle,[new Lt(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(o,0,i,new v_(S.from,w))}o.heightChanged&&(d|=2)}let v=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return v&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(d&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(i?[]:this.lineGaps,e)),d|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),d}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),o=this.heightMap,s=this.heightOracle,{visibleTop:i,visibleBottom:l}=this,c=new cl(o.lineAt(i-n*1e3,Re.ByHeight,s,0,0).from,o.lineAt(l+(1-n)*1e3,Re.ByHeight,s,0,0).to);if(t){let{head:d}=t.range;if(d<c.from||d>c.to){let u=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),h=o.lineAt(d,Re.ByPos,s,0,0),f;t.y=="center"?f=(h.top+h.bottom)/2-u/2:t.y=="start"||t.y=="nearest"&&d<c.from?f=h.top:f=h.bottom-u,c=new cl(o.lineAt(f-1e3/2,Re.ByHeight,s,0,0).from,o.lineAt(f+u+1e3/2,Re.ByHeight,s,0,0).to)}}return c}mapViewport(e,t){let n=t.mapPos(e.from,-1),o=t.mapPos(e.to,1);return new cl(this.heightMap.lineAt(n,Re.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(o,Re.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0;let{top:o}=this.heightMap.lineAt(e,Re.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(t,Re.ByPos,this.heightOracle,0,0),{visibleTop:i,visibleBottom:l}=this;return(e==0||o<=i-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||s>=l+Math.max(10,Math.min(n,250)))&&o>i-2*1e3&&s<l+2*1e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[];for(let o of e)t.touchesRange(o.from,o.to)||n.push(new du(t.mapPos(o.from),t.mapPos(o.to),o.size));return n}ensureLineGaps(e,t){let n=this.heightOracle.lineWrapping,o=n?1e4:2e3,s=o>>1,i=o<<1;if(this.defaultTextDirection!=He.LTR&&!n)return[];let l=[],c=(d,u,h,f)=>{if(u-d<s)return;let p=this.state.selection.main,m=[p.from];p.empty||m.push(p.to);for(let O of m)if(O>d&&O<u){c(d,O-10,h,f),c(O+10,u,h,f);return}let g=T_(e,O=>O.from>=h.from&&O.to<=h.to&&Math.abs(O.from-d)<s&&Math.abs(O.to-u)<s&&!m.some(y=>O.from<y&&O.to>y));if(!g){if(u<h.to&&t&&n&&t.visibleRanges.some(O=>O.from<=u&&O.to>=u)){let O=t.moveToLineBoundary(Y.cursor(u),!1,!0).head;O>d&&(u=O)}g=new du(d,u,this.gapSize(h,d,u,f))}l.push(g)};for(let d of this.viewportLines){if(d.length<i)continue;let u=C_(d.from,d.to,this.stateDeco);if(u.total<i)continue;let h=this.scrollTarget?this.scrollTarget.range.head:null,f,p;if(n){let m=o/this.heightOracle.lineLength*this.heightOracle.lineHeight,g,O;if(h!=null){let y=ul(u,h),b=((this.visibleBottom-this.visibleTop)/2+m)/d.height;g=y-b,O=y+b}else g=(this.visibleTop-d.top-m)/d.height,O=(this.visibleBottom-d.top+m)/d.height;f=dl(u,g),p=dl(u,O)}else{let m=u.total*this.heightOracle.charWidth,g=o*this.heightOracle.charWidth,O,y;if(h!=null){let b=ul(u,h),v=((this.pixelViewport.right-this.pixelViewport.left)/2+g)/m;O=b-v,y=b+v}else O=(this.pixelViewport.left-g)/m,y=(this.pixelViewport.right+g)/m;f=dl(u,O),p=dl(u,y)}f>d.from&&c(d.from,f,d,u),p<d.to&&c(p,d.to,d,u)}return l}gapSize(e,t,n,o){let s=ul(o,n)-ul(o,t);return this.heightOracle.lineWrapping?e.height*s:o.total*this.heightOracle.charWidth*s}updateLineGaps(e){du.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=$e.set(e.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];we.spans(e,this.viewport.from,this.viewport.to,{span(o,s){t.push({from:o,to:s})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some((o,s)=>o.from!=t[s].from||o.to!=t[s].to);return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||Qa(this.heightMap.lineAt(e,Re.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return Qa(this.heightMap.lineAt(this.scaler.fromDOM(e),Re.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Qa(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class cl{constructor(e,t){this.from=e,this.to=t}}function C_(r,e,t){let n=[],o=r,s=0;return we.spans(t,r,e,{span(){},point(i,l){i>o&&(n.push({from:o,to:i}),s+=i-o),o=l}},20),o<e&&(n.push({from:o,to:e}),s+=e-o),{total:s,ranges:n}}function dl({total:r,ranges:e},t){if(t<=0)return e[0].from;if(t>=1)return e[e.length-1].to;let n=Math.floor(r*t);for(let o=0;;o++){let{from:s,to:i}=e[o],l=i-s;if(n<=l)return s+n;n-=l}}function ul(r,e){let t=0;for(let{from:n,to:o}of r.ranges){if(e<=o){t+=e-n;break}t+=o-n}return t/r.total}function T_(r,e){for(let t of r)if(e(t))return t}const eO={toDOM(r){return r},fromDOM(r){return r},scale:1};class Q_{constructor(e,t,n){let o=0,s=0,i=0;this.viewports=n.map(({from:l,to:c})=>{let d=t.lineAt(l,Re.ByPos,e,0,0).top,u=t.lineAt(c,Re.ByPos,e,0,0).bottom;return o+=u-d,{from:l,to:c,top:d,bottom:u,domTop:0,domBottom:0}}),this.scale=(7e6-o)/(t.height-o);for(let l of this.viewports)l.domTop=i+(l.top-s)*this.scale,i=l.domBottom=l.domTop+(l.bottom-l.top),s=l.bottom}toDOM(e){for(let t=0,n=0,o=0;;t++){let s=t<this.viewports.length?this.viewports[t]:null;if(!s||e<s.top)return o+(e-n)*this.scale;if(e<=s.bottom)return s.domTop+(e-s.top);n=s.bottom,o=s.domBottom}}fromDOM(e){for(let t=0,n=0,o=0;;t++){let s=t<this.viewports.length?this.viewports[t]:null;if(!s||e<s.domTop)return n+(e-o)/this.scale;if(e<=s.domBottom)return s.top+(e-s.domTop);n=s.bottom,o=s.domBottom}}}function Qa(r,e){if(e.scale==1)return r;let t=e.toDOM(r.top),n=e.toDOM(r.bottom);return new Er(r.from,r.length,t,n-t,Array.isArray(r._content)?r._content.map(o=>Qa(o,e)):r._content)}const hl=ee.define({combine:r=>r.join(" ")}),Rh=ee.define({combine:r=>r.indexOf(!0)>-1}),Vh=An.newName(),pv=An.newName(),mv=An.newName(),gv={"&light":"."+pv,"&dark":"."+mv};function Bh(r,e,t){return new An(e,{finish(n){return/&/.test(n)?n.replace(/&\w*/,o=>{if(o=="&")return r;if(!t||!t[o])throw new RangeError(`Unsupported selector: ${o}`);return t[o]}):r+" "+n}})}const E_=Bh("."+Vh,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},gv),Ea="￿";class N_{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(ve.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Ea}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let o=e;;){this.findPointBefore(n,o);let s=this.text.length;this.readNode(o);let i=o.nextSibling;if(i==t)break;let l=Be.get(o),c=Be.get(i);(l&&c?l.breakAfter:(l?l.breakAfter:tO(o))||tO(i)&&(o.nodeName!="BR"||o.cmIgnore)&&this.text.length>s)&&this.lineBreak(),o=i}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,o=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,i=1,l;if(this.lineSeparator?(s=t.indexOf(this.lineSeparator,n),i=this.lineSeparator.length):(l=o.exec(t))&&(s=l.index,i=l[0].length),this.append(t.slice(n,s<0?t.length:s)),s<0)break;if(this.lineBreak(),i>1)for(let c of this.points)c.node==e&&c.pos>this.text.length&&(c.pos-=i-1);n=s+i}}readNode(e){if(e.cmIgnore)return;let t=Be.get(e),n=t&&t.overrideDOMText;if(n!=null){this.findPointInside(e,n.length);for(let o=n.iter();!o.next().done;)o.lineBreak?this.lineBreak():this.append(o.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(e.nodeType==3?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(A_(e,n.node,n.offset)?t:0))}}function A_(r,e,t){for(;;){if(!e||t<tn(e))return!1;if(e==r)return!0;t=ni(e)+1,e=e.parentNode}}function tO(r){return r.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(r.nodeName)}class rO{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class R_{constructor(e,t,n,o){this.typeOver=o,this.bounds=null,this.text="";let{impreciseHead:s,impreciseAnchor:i}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let l=s||i?[]:Z_(e),c=new N_(l,e.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=I_(l,this.bounds.from)}else{let l=e.observer.selectionRange,c=s&&s.node==l.focusNode&&s.offset==l.focusOffset||!wh(e.contentDOM,l.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),d=i&&i.node==l.anchorNode&&i.offset==l.anchorOffset||!wh(e.contentDOM,l.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),u=e.viewport;if((H.ios||H.chrome)&&e.state.selection.main.empty&&c!=d&&(u.from>0||u.to<e.state.doc.length)){let h=Math.min(c,d),f=Math.max(c,d),p=u.from-h,m=u.to-f;(p==0||p==1||h==0)&&(m==0||m==-1||f==e.state.doc.length)&&(c=0,d=e.state.doc.length)}this.newSel=Y.single(d,c)}}}function Ov(r,e){let t,{newSel:n}=e,o=r.state.selection.main,s=r.inputState.lastKeyTime>Date.now()-100?r.inputState.lastKeyCode:-1;if(e.bounds){let{from:i,to:l}=e.bounds,c=o.from,d=null;(s===8||H.android&&e.text.length<l-i)&&(c=o.to,d="end");let u=B_(r.state.doc.sliceString(i,l,Ea),e.text,c-i,d);u&&(H.chrome&&s==13&&u.toB==u.from+2&&e.text.slice(u.from,u.toB)==Ea+Ea&&u.toB--,t={from:i+u.from,to:i+u.toA,insert:ke.of(e.text.slice(u.from,u.toB).split(Ea))})}else n&&(!r.hasFocus&&r.state.facet(id)||n.main.eq(o))&&(n=null);if(!t&&!n)return!1;if(!t&&e.typeOver&&!o.empty&&n&&n.main.empty?t={from:o.from,to:o.to,insert:r.state.doc.slice(o.from,o.to)}:t&&t.from>=o.from&&t.to<=o.to&&(t.from!=o.from||t.to!=o.to)&&o.to-o.from-(t.to-t.from)<=4?t={from:o.from,to:o.to,insert:r.state.doc.slice(o.from,t.from).append(t.insert).append(r.state.doc.slice(t.to,o.to))}:(H.mac||H.android)&&t&&t.from==t.to&&t.from==o.head-1&&/^\. ?$/.test(t.insert.toString())&&r.contentDOM.getAttribute("autocorrect")=="off"?(n&&t.insert.length==2&&(n=Y.single(n.main.anchor-1,n.main.head-1)),t={from:o.from,to:o.to,insert:ke.of([" "])}):H.chrome&&t&&t.from==t.to&&t.from==o.head&&t.insert.toString()==`
61
- `&&r.lineWrapping&&(n&&(n=Y.single(n.main.anchor-1,n.main.head-1)),t={from:o.from,to:o.to,insert:ke.of([" "])}),t){if(H.ios&&r.inputState.flushIOSKey()||H.android&&(t.from==o.from&&t.to==o.to&&t.insert.length==1&&t.insert.lines==2&&us(r.contentDOM,"Enter",13)||(t.from==o.from-1&&t.to==o.to&&t.insert.length==0||s==8&&t.insert.length<t.to-t.from&&t.to>o.head)&&us(r.contentDOM,"Backspace",8)||t.from==o.from&&t.to==o.to+1&&t.insert.length==0&&us(r.contentDOM,"Delete",46)))return!0;let i=t.insert.toString();r.inputState.composing>=0&&r.inputState.composing++;let l,c=()=>l||(l=V_(r,t,n));return r.state.facet(Yb).some(d=>d(r,t.from,t.to,i,c))||r.dispatch(c()),!0}else if(n&&!n.main.eq(o)){let i=!1,l="select";return r.inputState.lastSelectionTime>Date.now()-50&&(r.inputState.lastSelectionOrigin=="select"&&(i=!0),l=r.inputState.lastSelectionOrigin),r.dispatch({selection:n,scrollIntoView:i,userEvent:l}),!0}else return!1}function V_(r,e,t){let n,o=r.state,s=o.selection.main;if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&r.inputState.composing<0){let l=s.from<e.from?o.sliceDoc(s.from,e.from):"",c=s.to>e.to?o.sliceDoc(e.to,s.to):"";n=o.replaceSelection(r.state.toText(l+e.insert.sliceString(0,void 0,r.state.lineBreak)+c))}else{let l=o.changes(e),c=t&&t.main.to<=l.newLength?t.main:void 0;if(o.selection.ranges.length>1&&r.inputState.composing>=0&&e.to<=s.to&&e.to>=s.to-10){let d=r.state.sliceDoc(e.from,e.to),u,h=t&&tv(r,t.main.head);if(h){let m=e.insert.length-(e.to-e.from);u={from:h.from,to:h.to-m}}else u=r.state.doc.lineAt(s.head);let f=s.to-e.to,p=s.to-s.from;n=o.changeByRange(m=>{if(m.from==s.from&&m.to==s.to)return{changes:l,range:c||m.map(l)};let g=m.to-f,O=g-d.length;if(m.to-m.from!=p||r.state.sliceDoc(O,g)!=d||m.to>=u.from&&m.from<=u.to)return{range:m};let y=o.changes({from:O,to:g,insert:e.insert}),b=m.to-s.to;return{changes:y,range:c?Y.range(Math.max(0,c.anchor+b),Math.max(0,c.head+b)):m.map(y)}})}else n={changes:l,selection:c&&o.selection.replaceRange(c)}}let i="input.type";return(r.composing||r.inputState.compositionPendingChange&&r.inputState.compositionEndedAt>Date.now()-50)&&(r.inputState.compositionPendingChange=!1,i+=".compose",r.inputState.compositionFirstChange&&(i+=".start",r.inputState.compositionFirstChange=!1)),o.update(n,{userEvent:i,scrollIntoView:!0})}function B_(r,e,t,n){let o=Math.min(r.length,e.length),s=0;for(;s<o&&r.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==o&&r.length==e.length)return null;let i=r.length,l=e.length;for(;i>0&&l>0&&r.charCodeAt(i-1)==e.charCodeAt(l-1);)i--,l--;if(n=="end"){let c=Math.max(0,s-Math.min(i,l));t-=i+c-s}if(i<s&&r.length<e.length){let c=t<=s&&t>=i?s-t:0;s-=c,l=s+(l-i),i=s}else if(l<s){let c=t<=s&&t>=l?s-t:0;s-=c,i=s+(i-l),l=s}return{from:s,toA:i,toB:l}}function Z_(r){let e=[];if(r.root.activeElement!=r.contentDOM)return e;let{anchorNode:t,anchorOffset:n,focusNode:o,focusOffset:s}=r.observer.selectionRange;return t&&(e.push(new rO(t,n)),(o!=t||s!=n)&&e.push(new rO(o,s))),e}function I_(r,e){if(r.length==0)return null;let t=r[0].pos,n=r.length==2?r[1].pos:t;return t>-1&&n>-1?Y.single(t+e,n+e):null}const j_={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},uu=H.ie&&H.ie_version<=11;class D_{constructor(e){this.view=e,this.active=!1,this.selectionRange=new wx,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let n of t)this.queue.push(n);(H.ie&&H.ie_version<=11||H.ios&&e.composing)&&t.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),uu&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,n)=>t!=e[n]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,o=this.selectionRange;if(n.state.facet(id)?n.root.activeElement!=this.dom:!Ml(n.dom,o))return;let s=o.anchorNode&&n.docView.nearest(o.anchorNode);if(s&&s.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(H.ie&&H.ie_version<=11||H.android&&H.chrome)&&!n.state.selection.main.empty&&o.focusNode&&Ma(o.focusNode,o.focusOffset,o.anchorNode,o.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=H.safari&&e.root.nodeType==11&&Ox(this.dom.ownerDocument)==this.dom&&M_(this.view)||fc(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=Ml(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&Sx(this.dom,t)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(t),n&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let n=this.dom;n;)if(n.nodeType==1)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);for(let n of this.scrollTargets=t)n.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,j_),uu&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),uu&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var n;if(!this.delayedAndroidKey){let o=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&us(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(o)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(!((n=this.delayedAndroidKey)===null||n===void 0)&&n.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,o=!1;for(let s of e){let i=this.readMutation(s);i&&(i.typeOver&&(o=!0),t==-1?{from:t,to:n}=i:(t=Math.min(i.from,t),n=Math.max(i.to,n)))}return{from:t,to:n,typeOver:o}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),o=this.selectionChanged&&Ml(this.dom,this.selectionRange);if(e<0&&!o)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new R_(this.view,e,t,n);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,o=Ov(this.view,t);return this.view.state==n&&this.view.update([]),o}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(e.type=="attributes"),e.type=="attributes"&&(t.flags|=4),e.type=="childList"){let n=nO(t,e.previousSibling||e.target.previousSibling,-1),o=nO(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:o?t.posBefore(o):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(n=this.resizeScroll)===null||n===void 0||n.disconnect();for(let o of this.scrollTargets)o.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function nO(r,e,t){for(;e;){let n=Be.get(e);if(n&&n.parent==r)return n;let o=e.parentNode;e=o!=r.dom?o:t>0?e.nextSibling:e.previousSibling}return null}function M_(r){let e=null;function t(c){c.preventDefault(),c.stopImmediatePropagation(),e=c.getTargetRanges()[0]}if(r.contentDOM.addEventListener("beforeinput",t,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",t,!0),!e)return null;let n=e.startContainer,o=e.startOffset,s=e.endContainer,i=e.endOffset,l=r.docView.domAtPos(r.state.selection.main.anchor);return Ma(l.node,l.offset,s,i)&&([n,o,s,i]=[s,i,n,o]),{anchorNode:n,anchorOffset:o,focusNode:s,focusOffset:i}}class re{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(n=>n.forEach(o=>t(o,this)))||(n=>this.update(n)),this.dispatch=this.dispatch.bind(this),this._root=e.root||kx(e.parent)||document,this.viewState=new Jg(e.state||ve.create(e)),e.scrollTo&&e.scrollTo.is(al)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Ca).map(n=>new iu(n));for(let n of this.plugins)n.update(this);this.observer=new D_(this),this.inputState=new r_(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Vg(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let t=e.length==1&&e[0]instanceof at?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,n=!1,o,s=this.state;for(let f of e){if(f.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=f.state}if(this.destroyed){this.viewState.state=s;return}let i=this.hasFocus,l=0,c=null;e.some(f=>f.annotation(dv))?(this.inputState.notifiedFocused=i,l=1):i!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=i,c=uv(s,i),c||(l=1));let d=this.observer.delayedAndroidKey,u=null;if(d?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(u=null)):this.observer.clear(),s.facet(ve.phrases)!=this.state.facet(ve.phrases))return this.setState(s);o=pc.create(this,s,e),o.flags|=l;let h=this.viewState.scrollTarget;try{this.updateState=2;for(let f of e){if(h&&(h=h.map(f.changes)),f.scrollIntoView){let{main:p}=f.state.selection;h=new hs(p.empty?p:Y.cursor(p.head,p.head>p.anchor?-1:1))}for(let p of f.effects)p.is(al)&&(h=p.value.clip(this.state))}this.viewState.update(o,h),this.bidiCache=mc.update(this.bidiCache,o.changes),o.empty||(this.updatePlugins(o),this.inputState.update(o)),t=this.docView.update(o),this.state.facet(Ta)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(f=>f.isUserEvent("select.pointer")))}finally{this.updateState=0}if(o.startState.facet(hl)!=o.state.facet(hl)&&(this.viewState.mustMeasureContent=!0),(t||n||h||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!o.empty)for(let f of this.state.facet(Eh))try{f(o)}catch(p){pr(this.state,p,"update listener")}(c||u)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),u&&!Ov(this,u)&&d.force&&us(this.contentDOM,d.key,d.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let n of this.plugins)n.destroy(this);this.viewState=new Jg(e),this.plugins=e.facet(Ca).map(n=>new iu(n)),this.pluginMap.clear();for(let n of this.plugins)n.update(this);this.docView.destroy(),this.docView=new Vg(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Ca),n=e.state.facet(Ca);if(t!=n){let o=[];for(let s of n){let i=t.indexOf(s);if(i<0)o.push(new iu(s));else{let l=this.plugins[i];l.mustUpdate=e,o.push(l)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=o,this.pluginMap.clear()}else for(let o of this.plugins)o.mustUpdate=e;for(let o=0;o<this.plugins.length;o++)this.plugins[o].update(this);t!=n&&this.inputState.ensureHandlers(this.plugins)}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,o=n.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:i}=this.viewState;Math.abs(o-this.viewState.scrollTop)>1&&(i=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(i<0)if(Cb(n))s=-1,i=this.viewState.heightMap.height;else{let p=this.viewState.scrollAnchorAt(o);s=p.from,i=p.top}this.updateState=1;let c=this.viewState.measure(this);if(!c&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let d=[];c&4||([this.measureRequests,d]=[d,this.measureRequests]);let u=d.map(p=>{try{return p.read(this)}catch(m){return pr(this.state,m),oO}}),h=pc.create(this,this.state,[]),f=!1;h.flags|=c,t?t.flags|=c:t=h,this.updateState=2,h.empty||(this.updatePlugins(h),this.inputState.update(h),this.updateAttrs(),f=this.docView.update(h));for(let p=0;p<d.length;p++)if(u[p]!=oO)try{let m=d[p];m.write&&m.write(u[p],this)}catch(m){pr(this.state,m)}if(f&&this.docView.updateSelection(!0),!h.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,i=-1;continue}else{let m=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-i;if(m>1||m<-1){o=o+m,n.scrollTop=o/this.scaleY,i=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let l of this.state.facet(Eh))l(t)}get themeClasses(){return Vh+" "+(this.state.facet(Rh)?mv:pv)+" "+this.state.facet(hl)}updateAttrs(){let e=sO(this,Gb,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(id)?"true":"false",class:"cm-content",style:`${H.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),sO(this,tp,t);let n=this.observer.ignore(()=>{let o=xh(this.contentDOM,this.contentAttrs,t),s=xh(this.dom,this.editorAttrs,e);return o||s});return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let o of n.effects)if(o.is(re.announce)){t&&(this.announceDOM.textContent=""),t=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=o.value}}mountStyles(){this.styleModules=this.state.facet(Ta);let e=this.state.facet(re.cspNonce);An.mount(this.root,this.styleModules.concat(E_).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find(n=>n.spec==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return cu(this,e,Mg(this,e,t,n))}moveByGroup(e,t){return cu(this,e,Mg(this,e,t,n=>e_(this,e.head,n)))}visualLineSide(e,t){let n=this.bidiSpans(e),o=this.textDirectionAt(e.from),s=n[t?n.length-1:0];return Y.cursor(s.side(t,o)+e.from,s.forward(!t,o)?1:-1)}moveToLineBoundary(e,t,n=!0){return Jx(this,e,t,n)}moveVertically(e,t,n){return cu(this,e,t_(this,e,t,n))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),nv(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let o=this.state.doc.lineAt(e),s=this.bidiSpans(o),i=s[_n.find(s,e-o.from,-1,t)];return Ff(n,i.dir==He.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Hb)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>q_)return Mb(e.length);let t=this.textDirectionAt(e.from),n;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==t&&(s.fresh||Db(s.isolates,n=Rg(this,e))))return s.order;n||(n=Rg(this,e));let o=Vx(e.text,t,n);return this.bidiCache.push(new mc(e.from,e.to,t,n,!0,o)),o}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||H.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{xb(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return al.of(new hs(typeof e=="number"?Y.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return al.of(new hs(Y.cursor(n.from),"start","start",n.top-e,t,!0))}static domEventHandlers(e){return Ft.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Ft.define(()=>({}),{eventObservers:e})}static theme(e,t){let n=An.newName(),o=[hl.of(n),Ta.of(Bh(`.${n}`,e))];return t&&t.dark&&o.push(Rh.of(!0)),o}static baseTheme(e){return $i.lowest(Ta.of(Bh("."+Vh,e,gv)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),o=n&&Be.get(n)||Be.get(e);return((t=o==null?void 0:o.rootView)===null||t===void 0?void 0:t.view)||null}}re.styleModule=Ta;re.inputHandler=Yb;re.focusChangeEffect=Lb;re.perLineTextDirection=Hb;re.exceptionSink=Ub;re.updateListener=Eh;re.editable=id;re.mouseSelectionStyle=zb;re.dragMovesSelection=Wb;re.clickAddsSelectionRange=Xb;re.decorations=oi;re.outerDecorations=Fb;re.atomicRanges=rp;re.bidiIsolatedRanges=Kb;re.scrollMargins=Jb;re.darkTheme=Rh;re.cspNonce=ee.define({combine:r=>r.length?r[0]:""});re.contentAttributes=tp;re.editorAttributes=Gb;re.lineWrapping=re.contentAttributes.of({class:"cm-lineWrapping"});re.announce=_e.define();const q_=4096,oO={};class mc{constructor(e,t,n,o,s,i){this.from=e,this.to=t,this.dir=n,this.isolates=o,this.fresh=s,this.order=i}static update(e,t){if(t.empty&&!e.some(s=>s.fresh))return e;let n=[],o=e.length?e[e.length-1].dir:He.LTR;for(let s=Math.max(0,e.length-10);s<e.length;s++){let i=e[s];i.dir==o&&!t.touchesRange(i.from,i.to)&&n.push(new mc(t.mapPos(i.from,1),t.mapPos(i.to,-1),i.dir,i.isolates,!1,i.order))}return n}}function sO(r,e,t){for(let n=r.state.facet(e),o=n.length-1;o>=0;o--){let s=n[o],i=typeof s=="function"?s(r):s;i&&Ph(i,t)}return t}const X_=H.mac?"mac":H.windows?"win":H.linux?"linux":"key";function W_(r,e){const t=r.split(/-(?!$)/);let n=t[t.length-1];n=="Space"&&(n=" ");let o,s,i,l;for(let c=0;c<t.length-1;++c){const d=t[c];if(/^(cmd|meta|m)$/i.test(d))l=!0;else if(/^a(lt)?$/i.test(d))o=!0;else if(/^(c|ctrl|control)$/i.test(d))s=!0;else if(/^s(hift)?$/i.test(d))i=!0;else if(/^mod$/i.test(d))e=="mac"?l=!0:s=!0;else throw new Error("Unrecognized modifier name: "+d)}return o&&(n="Alt-"+n),s&&(n="Ctrl-"+n),l&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function fl(r,e,t){return e.altKey&&(r="Alt-"+r),e.ctrlKey&&(r="Ctrl-"+r),e.metaKey&&(r="Meta-"+r),t!==!1&&e.shiftKey&&(r="Shift-"+r),r}const z_=$i.default(re.domEventHandlers({keydown(r,e){return H_(U_(e.state),r,e,"editor")}})),si=ee.define({enables:z_}),aO=new WeakMap;function U_(r){let e=r.facet(si),t=aO.get(e);return t||aO.set(e,t=L_(e.reduce((n,o)=>n.concat(o),[]))),t}let $n=null;const Y_=4e3;function L_(r,e=X_){let t=Object.create(null),n=Object.create(null),o=(i,l)=>{let c=n[i];if(c==null)n[i]=l;else if(c!=l)throw new Error("Key binding "+i+" is used both as a regular binding and as a multi-stroke prefix")},s=(i,l,c,d,u)=>{var h,f;let p=t[i]||(t[i]=Object.create(null)),m=l.split(/ (?!$)/).map(y=>W_(y,e));for(let y=1;y<m.length;y++){let b=m.slice(0,y).join(" ");o(b,!0),p[b]||(p[b]={preventDefault:!0,stopPropagation:!1,run:[v=>{let k=$n={view:v,prefix:b,scope:i};return setTimeout(()=>{$n==k&&($n=null)},Y_),!0}]})}let g=m.join(" ");o(g,!1);let O=p[g]||(p[g]={preventDefault:!1,stopPropagation:!1,run:((f=(h=p._any)===null||h===void 0?void 0:h.run)===null||f===void 0?void 0:f.slice())||[]});c&&O.run.push(c),d&&(O.preventDefault=!0),u&&(O.stopPropagation=!0)};for(let i of r){let l=i.scope?i.scope.split(" "):["editor"];if(i.any)for(let d of l){let u=t[d]||(t[d]=Object.create(null));u._any||(u._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let h in u)u[h].run.push(i.any)}let c=i[e]||i.key;if(c)for(let d of l)s(d,c,i.run,i.preventDefault,i.stopPropagation),i.shift&&s(d,"Shift-"+c,i.shift,i.preventDefault,i.stopPropagation)}return t}function H_(r,e,t,n){let o=gx(e),s=dt(o,0),i=lr(s)==o.length&&o!=" ",l="",c=!1,d=!1,u=!1;$n&&$n.view==t&&$n.scope==n&&(l=$n.prefix+" ",sv.indexOf(e.keyCode)<0&&(d=!0,$n=null));let h=new Set,f=O=>{if(O){for(let y of O.run)if(!h.has(y)&&(h.add(y),y(t,e)))return O.stopPropagation&&(u=!0),!0;O.preventDefault&&(O.stopPropagation&&(u=!0),d=!0)}return!1},p=r[n],m,g;return p&&(f(p[l+fl(o,e,!i)])?c=!0:i&&(e.altKey||e.metaKey||e.ctrlKey)&&!(H.windows&&e.ctrlKey&&e.altKey)&&(m=Rn[e.keyCode])&&m!=o?(f(p[l+fl(m,e,!0)])||e.shiftKey&&(g=ti[e.keyCode])!=o&&g!=m&&f(p[l+fl(g,e,!1)]))&&(c=!0):i&&e.shiftKey&&f(p[l+fl(o,e,!0)])&&(c=!0),!c&&f(p._any)&&(c=!0)),d&&(c=!0),c&&u&&e.stopPropagation(),c}const G_=!H.ios,iO={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};G_&&(iO[".cm-line"].caretColor="transparent !important",iO[".cm-content"]={caretColor:"transparent !important"});function lO(r,e,t,n,o){e.lastIndex=0;for(let s=r.iterRange(t,n),i=t,l;!s.next().done;i+=s.value.length)if(!s.lineBreak)for(;l=e.exec(s.value);)o(i+l.index,l)}function F_(r,e){let t=r.visibleRanges;if(t.length==1&&t[0].from==r.viewport.from&&t[0].to==r.viewport.to)return t;let n=[];for(let{from:o,to:s}of t)o=Math.max(r.state.doc.lineAt(o).from,o-e),s=Math.min(r.state.doc.lineAt(s).to,s+e),n.length&&n[n.length-1].to>=o?n[n.length-1].to=s:n.push({from:o,to:s});return n}class yv{constructor(e){const{regexp:t,decoration:n,decorate:o,boundary:s,maxLength:i=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,o)this.addMatch=(l,c,d,u)=>o(u,d,d+l[0].length,l,c);else if(typeof n=="function")this.addMatch=(l,c,d,u)=>{let h=n(l,c,d);h&&u(d,d+l[0].length,h)};else if(n)this.addMatch=(l,c,d,u)=>u(d,d+l[0].length,n);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=i}createDeco(e){let t=new ks,n=t.add.bind(t);for(let{from:o,to:s}of F_(e,this.maxLength))lO(e.state.doc,this.regexp,o,s,(i,l)=>this.addMatch(l,e,i,n));return t.finish()}updateDeco(e,t){let n=1e9,o=-1;return e.docChanged&&e.changes.iterChanges((s,i,l,c)=>{c>e.view.viewport.from&&l<e.view.viewport.to&&(n=Math.min(l,n),o=Math.max(c,o))}),e.viewportChanged||o-n>1e3?this.createDeco(e.view):o>-1?this.updateRange(e.view,t.map(e.changes),n,o):t}updateRange(e,t,n,o){for(let s of e.visibleRanges){let i=Math.max(s.from,n),l=Math.min(s.to,o);if(l>i){let c=e.state.doc.lineAt(i),d=c.to<l?e.state.doc.lineAt(l):c,u=Math.max(s.from,c.from),h=Math.min(s.to,d.to);if(this.boundary){for(;i>c.from;i--)if(this.boundary.test(c.text[i-1-c.from])){u=i;break}for(;l<d.to;l++)if(this.boundary.test(d.text[l-d.from])){h=l;break}}let f=[],p,m=(g,O,y)=>f.push(y.range(g,O));if(c==d)for(this.regexp.lastIndex=u-c.from;(p=this.regexp.exec(c.text))&&p.index<h-c.from;)this.addMatch(p,e,p.index+c.from,m);else lO(e.state.doc,this.regexp,u,h,(g,O)=>this.addMatch(O,e,g,m));t=t.update({filterFrom:u,filterTo:h,filter:(g,O)=>g<u||O>h,add:f})}}return t}}const Zh=/x/.unicode!=null?"gu":"g",K_=new RegExp(`[\0-\b
62
- --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,Zh),J_={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let hu=null;function eC(){var r;if(hu==null&&typeof document<"u"&&document.body){let e=document.body.style;hu=((r=e.tabSize)!==null&&r!==void 0?r:e.MozTabSize)!=null}return hu||!1}const Wl=ee.define({combine(r){let e=sd(r,{render:null,specialChars:K_,addSpecialChars:null});return(e.replaceTabs=!eC())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Zh)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Zh)),e}});function tC(r={}){return[Wl.of(r),rC()]}let cO=null;function rC(){return cO||(cO=Ft.fromClass(class{constructor(r){this.view=r,this.decorations=$e.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(r.state.facet(Wl)),this.decorations=this.decorator.createDeco(r)}makeDecorator(r){return new yv({regexp:r.specialChars,decoration:(e,t,n)=>{let{doc:o}=t.state,s=dt(e[0],0);if(s==9){let i=o.lineAt(n),l=t.state.tabSize,c=Gf(i.text,l,n-i.from);return $e.replace({widget:new aC((l-c%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=$e.replace({widget:new sC(r,s)}))},boundary:r.replaceTabs?void 0:/[^]/})}update(r){let e=r.state.facet(Wl);r.startState.facet(Wl)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(r.view)):this.decorations=this.decorator.updateDeco(r,this.decorations)}},{decorations:r=>r.decorations}))}const nC="•";function oC(r){return r>=32?nC:r==10?"␤":String.fromCharCode(9216+r)}class sC extends Zs{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=oC(this.code),n=e.state.phrase("Control character")+" "+(J_[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,n,t);if(o)return o;let s=document.createElement("span");return s.textContent=t,s.title=n,s.setAttribute("aria-label",n),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class aC extends Zs{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const Oa="-10000px";class iC{constructor(e,t,n,o){this.facet=t,this.createTooltipView=n,this.removeTooltipView=o,this.input=e.state.facet(t),this.tooltips=this.input.filter(i=>i);let s=null;this.tooltipViews=this.tooltips.map(i=>s=n(i,s))}update(e,t){var n;let o=e.state.facet(this.facet),s=o.filter(c=>c);if(o===this.input){for(let c of this.tooltipViews)c.update&&c.update(e);return!1}let i=[],l=t?[]:null;for(let c=0;c<s.length;c++){let d=s[c],u=-1;if(d){for(let h=0;h<this.tooltips.length;h++){let f=this.tooltips[h];f&&f.create==d.create&&(u=h)}if(u<0)i[c]=this.createTooltipView(d,c?i[c-1]:null),l&&(l[c]=!!d.above);else{let h=i[c]=this.tooltipViews[u];l&&(l[c]=t[u]),h.update&&h.update(e)}}}for(let c of this.tooltipViews)i.indexOf(c)<0&&(this.removeTooltipView(c),(n=c.destroy)===null||n===void 0||n.call(c));return t&&(l.forEach((c,d)=>t[d]=c),t.length=l.length),this.input=o,this.tooltips=s,this.tooltipViews=i,!0}}function lC(r){let{win:e}=r;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const fu=ee.define({combine:r=>{var e,t,n;return{position:H.ios?"absolute":((e=r.find(o=>o.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=r.find(o=>o.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((n=r.find(o=>o.tooltipSpace))===null||n===void 0?void 0:n.tooltipSpace)||lC}}}),dO=new WeakMap,bv=Ft.fromClass(class{constructor(r){this.view=r,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=r.state.facet(fu);this.position=e.position,this.parent=e.parent,this.classes=r.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new iC(r,vv,(t,n)=>this.createTooltip(t,n),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),r.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let r of this.manager.tooltipViews)this.intersectionObserver.observe(r.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(r){r.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(r,this.above);e&&this.observeIntersection();let t=e||r.geometryChanged,n=r.state.facet(fu);if(n.position!=this.position&&!this.madeAbsolute){this.position=n.position;for(let o of this.manager.tooltipViews)o.dom.style.position=this.position;t=!0}if(n.parent!=this.parent){this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer();for(let o of this.manager.tooltipViews)this.container.appendChild(o.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(r,e){let t=r.create(this.view),n=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),r.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let o=document.createElement("div");o.className="cm-tooltip-arrow",t.dom.insertBefore(o,n)}return t.dom.style.position=this.position,t.dom.style.top=Oa,t.dom.style.left="0px",this.container.insertBefore(t.dom,n),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var r,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),(r=n.destroy)===null||r===void 0||r.call(n);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let r=this.view.dom.getBoundingClientRect(),e=1,t=1,n=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:o}=this.manager.tooltipViews[0];if(H.gecko)n=o.offsetParent!=this.container.ownerDocument.body;else if(o.style.top==Oa&&o.style.left=="0px"){let s=o.getBoundingClientRect();n=Math.abs(s.top+1e4)>1||Math.abs(s.left)>1}}if(n||this.position=="absolute")if(this.parent){let o=this.parent.getBoundingClientRect();o.width&&o.height&&(e=o.width/this.parent.offsetWidth,t=o.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);return{editor:r,parent:this.parent?this.container.getBoundingClientRect():r,pos:this.manager.tooltips.map((o,s)=>{let i=this.manager.tooltipViews[s];return i.getCoords?i.getCoords(o.pos):this.view.coordsAtPos(o.pos)}),size:this.manager.tooltipViews.map(({dom:o})=>o.getBoundingClientRect()),space:this.view.state.facet(fu).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:n}}writeMeasure(r){var e;if(r.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{editor:t,space:n,scaleX:o,scaleY:s}=r,i=[];for(let l=0;l<this.manager.tooltips.length;l++){let c=this.manager.tooltips[l],d=this.manager.tooltipViews[l],{dom:u}=d,h=r.pos[l],f=r.size[l];if(!h||h.bottom<=Math.max(t.top,n.top)||h.top>=Math.min(t.bottom,n.bottom)||h.right<Math.max(t.left,n.left)-.1||h.left>Math.min(t.right,n.right)+.1){u.style.top=Oa;continue}let p=c.arrow?d.dom.querySelector(".cm-tooltip-arrow"):null,m=p?7:0,g=f.right-f.left,O=(e=dO.get(d))!==null&&e!==void 0?e:f.bottom-f.top,y=d.offset||dC,b=this.view.textDirection==He.LTR,v=f.width>n.right-n.left?b?n.left:n.right-f.width:b?Math.min(h.left-(p?14:0)+y.x,n.right-g):Math.max(n.left,h.left-g+(p?14:0)-y.x),k=this.above[l];!c.strictSide&&(k?h.top-(f.bottom-f.top)-y.y<n.top:h.bottom+(f.bottom-f.top)+y.y>n.bottom)&&k==n.bottom-h.bottom>h.top-n.top&&(k=this.above[l]=!k);let S=(k?h.top-n.top:n.bottom-h.bottom)-m;if(S<O&&d.resize!==!1){if(S<this.view.defaultLineHeight){u.style.top=Oa;continue}dO.set(d,O),u.style.height=(O=S)/s+"px"}else u.style.height&&(u.style.height="");let w=k?h.top-O-m-y.y:h.bottom+m+y.y,$=v+g;if(d.overlap!==!0)for(let T of i)T.left<$&&T.right>v&&T.top<w+O&&T.bottom>w&&(w=k?T.top-O-2-m:T.bottom+m+2);if(this.position=="absolute"?(u.style.top=(w-r.parent.top)/s+"px",u.style.left=(v-r.parent.left)/o+"px"):(u.style.top=w/s+"px",u.style.left=v/o+"px"),p){let T=h.left+(b?y.x:-y.x)-(v+14-7);p.style.left=T/o+"px"}d.overlap!==!0&&i.push({left:v,top:w,right:$,bottom:w+O}),u.classList.toggle("cm-tooltip-above",k),u.classList.toggle("cm-tooltip-below",!k),d.positioned&&d.positioned(r.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let r of this.manager.tooltipViews)r.dom.style.top=Oa}},{eventObservers:{scroll(){this.maybeMeasure()}}}),cC=re.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),dC={x:0,y:0},vv=ee.define({enables:[bv,cC]});function wv(r,e){let t=r.plugin(bv);if(!t)return null;let n=t.manager.tooltips.indexOf(e);return n<0?null:t.manager.tooltipViews[n]}class Po extends ko{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Po.prototype.elementClass="";Po.prototype.toDOM=void 0;Po.prototype.mapMode=ut.TrackBefore;Po.prototype.startSide=Po.prototype.endSide=-1;Po.prototype.point=!0;const pu=ee.define(),zl=ee.define(),Ih=ee.define({combine:r=>r.some(e=>e)});function uC(r){let e=[hC];return r&&r.fixed===!1&&e.push(Ih.of(!0)),e}const hC=Ft.fromClass(class{constructor(r){this.view=r,this.prevViewport=r.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=r.state.facet(zl).map(e=>new hO(r,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!r.state.facet(Ih),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),r.scrollDOM.insertBefore(this.dom,r.contentDOM)}update(r){if(this.updateGutters(r)){let e=this.prevViewport,t=r.view.viewport,n=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(n<(t.to-t.from)*.8)}r.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Ih)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=r.view.viewport}syncGutters(r){let e=this.dom.nextSibling;r&&this.dom.remove();let t=we.iter(this.view.state.facet(pu),this.view.viewport.from),n=[],o=this.gutters.map(s=>new fC(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(s.type)){let i=!0;for(let l of s.type)if(l.type==fr.Text&&i){jh(t,n,l.from);for(let c of o)c.line(this.view,l,n);i=!1}else if(l.widget)for(let c of o)c.widget(this.view,l)}else if(s.type==fr.Text){jh(t,n,s.from);for(let i of o)i.line(this.view,s,n)}else if(s.widget)for(let i of o)i.widget(this.view,s);for(let s of o)s.finish();r&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(r){let e=r.startState.facet(zl),t=r.state.facet(zl),n=r.docChanged||r.heightChanged||r.viewportChanged||!we.eq(r.startState.facet(pu),r.state.facet(pu),r.view.viewport.from,r.view.viewport.to);if(e==t)for(let o of this.gutters)o.update(r)&&(n=!0);else{n=!0;let o=[];for(let s of t){let i=e.indexOf(s);i<0?o.push(new hO(this.view,s)):(this.gutters[i].update(r),o.push(this.gutters[i]))}for(let s of this.gutters)s.dom.remove(),o.indexOf(s)<0&&s.destroy();for(let s of o)this.dom.appendChild(s.dom);this.gutters=o}return n}destroy(){for(let r of this.gutters)r.destroy();this.dom.remove()}},{provide:r=>re.scrollMargins.of(e=>{let t=e.plugin(r);return!t||t.gutters.length==0||!t.fixed?null:e.textDirection==He.LTR?{left:t.dom.offsetWidth*e.scaleX}:{right:t.dom.offsetWidth*e.scaleX}})});function uO(r){return Array.isArray(r)?r:[r]}function jh(r,e,t){for(;r.value&&r.from<=t;)r.from==t&&e.push(r.value),r.next()}class fC{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=we.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:o}=this,s=(t.top-this.height)/e.scaleY,i=t.height/e.scaleY;if(this.i==o.elements.length){let l=new kv(e,i,s,n);o.elements.push(l),o.dom.appendChild(l.dom)}else o.elements[this.i].update(e,i,s,n);this.height=t.bottom,this.i++}line(e,t,n){let o=[];jh(this.cursor,o,t.from),n.length&&(o=o.concat(n));let s=this.gutter.config.lineMarker(e,t,o);s&&o.unshift(s);let i=this.gutter;o.length==0&&!i.config.renderEmptyElements||this.addElement(e,t,o)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class hO{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,o=>{let s=o.target,i;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let c=s.getBoundingClientRect();i=(c.top+c.bottom)/2}else i=o.clientY;let l=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[n](e,l,o)&&o.preventDefault()});this.markers=uO(t.markers(e)),t.initialSpacer&&(this.spacer=new kv(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=uO(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let o=this.config.updateSpacer(this.spacer.markers[0],e);o!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[o])}let n=e.view.viewport;return!we.eq(this.markers,t,n.from,n.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class kv{constructor(e,t,n,o){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,o)}update(e,t,n,o){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),pC(this.markers,o)||this.setMarkers(e,o)}setMarkers(e,t){let n="cm-gutterElement",o=this.dom.firstChild;for(let s=0,i=0;;){let l=i,c=s<t.length?t[s++]:null,d=!1;if(c){let u=c.elementClass;u&&(n+=" "+u);for(let h=i;h<this.markers.length;h++)if(this.markers[h].compare(c)){l=h,d=!0;break}}else l=this.markers.length;for(;i<l;){let u=this.markers[i++];if(u.toDOM){u.destroy(o);let h=o.nextSibling;o.remove(),o=h}}if(!c)break;c.toDOM&&(d?o=o.nextSibling:this.dom.insertBefore(c.toDOM(e),o)),d&&i++}this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}function pC(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(!r[t].compare(e[t]))return!1;return!0}const mC=ee.define(),ts=ee.define({combine(r){return sd(r,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let o in t){let s=n[o],i=t[o];n[o]=s?(l,c,d)=>s(l,c,d)||i(l,c,d):i}return n}})}});class mu extends Po{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function gu(r,e){return r.state.facet(ts).formatNumber(e,r.state)}const gC=zl.compute([ts],r=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(mC)},lineMarker(e,t,n){return n.some(o=>o.toDOM)?null:new mu(gu(e,e.state.doc.lineAt(t.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(ts)!=e.state.facet(ts),initialSpacer(e){return new mu(gu(e,fO(e.state.doc.lines)))},updateSpacer(e,t){let n=gu(t.view,fO(t.view.state.doc.lines));return n==e.number?e:new mu(n)},domEventHandlers:r.facet(ts).domEventHandlers}));function OC(r={}){return[ts.of(r),uC(),gC]}function fO(r){let e=9;for(;e<r;)e=e*10+9;return e}const Sv=1024;let yC=0;class Yt{constructor(e,t){this.from=e,this.to=t}}class fe{constructor(e={}){this.id=yC++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=wt.match(e)),t=>{let n=e(t);return n===void 0?null:[this,n]}}}fe.closedBy=new fe({deserialize:r=>r.split(" ")});fe.openedBy=new fe({deserialize:r=>r.split(" ")});fe.group=new fe({deserialize:r=>r.split(" ")});fe.isolate=new fe({deserialize:r=>{if(r&&r!="rtl"&&r!="ltr"&&r!="auto")throw new RangeError("Invalid value for isolate: "+r);return r||"auto"}});fe.contextHash=new fe({perNode:!0});fe.lookAhead=new fe({perNode:!0});fe.mounted=new fe({perNode:!0});class ai{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}static get(e){return e&&e.props&&e.props[fe.mounted.id]}}const bC=Object.create(null);class wt{constructor(e,t,n,o=0){this.name=e,this.props=t,this.id=n,this.flags=o}static define(e){let t=e.props&&e.props.length?Object.create(null):bC,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),o=new wt(e.name||"",t,e.id,n);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(o)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[s[0].id]=s[1]}}return o}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(fe.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let o of n.split(" "))t[o]=e[n];return n=>{for(let o=n.prop(fe.group),s=-1;s<(o?o.length:0);s++){let i=t[s<0?n.name:o[s]];if(i)return i}}}}wt.none=new wt("",Object.create(null),0,8);class op{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let o=null;for(let s of e){let i=s(n);i&&(o||(o=Object.assign({},n.props)),o[i[0].id]=i[1])}t.push(o?new wt(n.name,o,n.id,n.flags):n)}return new op(t)}}const pl=new WeakMap,pO=new WeakMap;var Qe;(function(r){r[r.ExcludeBuffers=1]="ExcludeBuffers",r[r.IncludeAnonymous=2]="IncludeAnonymous",r[r.IgnoreMounts=4]="IgnoreMounts",r[r.IgnoreOverlays=8]="IgnoreOverlays"})(Qe||(Qe={}));class Me{constructor(e,t,n,o,s){if(this.type=e,this.children=t,this.positions=n,this.length=o,this.props=null,s&&s.length){this.props=Object.create(null);for(let[i,l]of s)this.props[typeof i=="number"?i:i.id]=l}}toString(){let e=ai.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let n of this.children){let o=n.toString();o&&(t&&(t+=","),t+=o)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new gc(this.topNode,e)}cursorAt(e,t=0,n=0){let o=pl.get(this)||this.topNode,s=new gc(o);return s.moveTo(e,t),pl.set(this,s._tree),s}get topNode(){return new ft(this,0,0,null)}resolve(e,t=0){let n=ii(pl.get(this)||this.topNode,e,t,!1);return pl.set(this,n),n}resolveInner(e,t=0){let n=ii(pO.get(this)||this.topNode,e,t,!0);return pO.set(this,n),n}resolveStack(e,t=0){return kC(this,e,t)}iterate(e){let{enter:t,leave:n,from:o=0,to:s=this.length}=e,i=e.mode||0,l=(i&Qe.IncludeAnonymous)>0;for(let c=this.cursor(i|Qe.IncludeAnonymous);;){let d=!1;if(c.from<=s&&c.to>=o&&(!l&&c.type.isAnonymous||t(c)!==!1)){if(c.firstChild())continue;d=!0}for(;d&&n&&(l||!c.type.isAnonymous)&&n(c),!c.nextSibling();){if(!c.parent())return;d=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:ip(wt.none,this.children,this.positions,0,this.children.length,0,this.length,(t,n,o)=>new Me(this.type,t,n,o,this.propValues),e.makeTree||((t,n,o)=>new Me(wt.none,t,n,o)))}static build(e){return SC(e)}}Me.empty=new Me(wt.none,[],[],0);class sp{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new sp(this.buffer,this.index)}}class Bn{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return wt.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],o=this.set.types[t],s=o.name;if(/\W/.test(s)&&!o.isError&&(s=JSON.stringify(s)),e+=4,n==e)return s;let i=[];for(;e<n;)i.push(this.childString(e)),e=this.buffer[e+3];return s+"("+i.join(",")+")"}findChild(e,t,n,o,s){let{buffer:i}=this,l=-1;for(let c=e;c!=t&&!($v(s,o,i[c+1],i[c+2])&&(l=c,n>0));c=i[c+3]);return l}slice(e,t,n){let o=this.buffer,s=new Uint16Array(t-e),i=0;for(let l=e,c=0;l<t;){s[c++]=o[l++],s[c++]=o[l++]-n;let d=s[c++]=o[l++]-n;s[c++]=o[l++]-e,i=Math.max(i,d)}return new Bn(s,i,this.set)}}function $v(r,e,t,n){switch(r){case-2:return t<e;case-1:return n>=e&&t<e;case 0:return t<e&&n>e;case 1:return t<=e&&n>e;case 2:return n>e;case 4:return!0}}function ii(r,e,t,n){for(var o;r.from==r.to||(t<1?r.from>=e:r.from>e)||(t>-1?r.to<=e:r.to<e);){let i=!n&&r instanceof ft&&r.index<0?null:r.parent;if(!i)return r;r=i}let s=n?0:Qe.IgnoreOverlays;if(n)for(let i=r,l=i.parent;l;i=l,l=i.parent)i instanceof ft&&i.index<0&&((o=l.enter(e,t,s))===null||o===void 0?void 0:o.from)!=i.from&&(r=l);for(;;){let i=r.enter(e,t,s);if(!i)return r;r=i}}class Pv{cursor(e=0){return new gc(this,e)}getChild(e,t=null,n=null){let o=mO(this,e,t,n);return o.length?o[0]:null}getChildren(e,t=null,n=null){return mO(this,e,t,n)}resolve(e,t=0){return ii(this,e,t,!1)}resolveInner(e,t=0){return ii(this,e,t,!0)}matchContext(e){return Dh(this,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let o=t.lastChild;if(!o||o.to!=t.to)break;o.type.isError&&o.from==o.to?(n=t,t=o.prevSibling):t=o}return n}get node(){return this}get next(){return this.parent}}class ft extends Pv{constructor(e,t,n,o){super(),this._tree=e,this.from=t,this.index=n,this._parent=o}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,o,s=0){for(let i=this;;){for(let{children:l,positions:c}=i._tree,d=t>0?l.length:-1;e!=d;e+=t){let u=l[e],h=c[e]+i.from;if($v(o,n,h,h+u.length)){if(u instanceof Bn){if(s&Qe.ExcludeBuffers)continue;let f=u.findChild(0,u.buffer.length,t,n-h,o);if(f>-1)return new Rr(new vC(i,u,e,h),null,f)}else if(s&Qe.IncludeAnonymous||!u.type.isAnonymous||ap(u)){let f;if(!(s&Qe.IgnoreMounts)&&(f=ai.get(u))&&!f.overlay)return new ft(f.tree,h,e,i);let p=new ft(u,h,e,i);return s&Qe.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(t<0?u.children.length-1:0,t,n,o)}}}if(s&Qe.IncludeAnonymous||!i.type.isAnonymous||(i.index>=0?e=i.index+t:e=t<0?-1:i._parent._tree.children.length,i=i._parent,!i))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let o;if(!(n&Qe.IgnoreOverlays)&&(o=ai.get(this._tree))&&o.overlay){let s=e-this.from;for(let{from:i,to:l}of o.overlay)if((t>0?i<=s:i<s)&&(t<0?l>=s:l>s))return new ft(o.tree,o.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function mO(r,e,t,n){let o=r.cursor(),s=[];if(!o.firstChild())return s;if(t!=null){for(let i=!1;!i;)if(i=o.type.is(t),!o.nextSibling())return s}for(;;){if(n!=null&&o.type.is(n))return s;if(o.type.is(e)&&s.push(o.node),!o.nextSibling())return n==null?s:[]}}function Dh(r,e,t=e.length-1){for(let n=r.parent;t>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(e[t]&&e[t]!=n.name)return!1;t--}}return!0}class vC{constructor(e,t,n,o){this.parent=e,this.buffer=t,this.index=n,this.start=o}}class Rr extends Pv{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:o}=this.context,s=o.findChild(this.index+4,o.buffer[this.index+3],e,t-this.context.start,n);return s<0?null:new Rr(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&Qe.ExcludeBuffers)return null;let{buffer:o}=this.context,s=o.findChild(this.index+4,o.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return s<0?null:new Rr(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Rr(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new Rr(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,o=this.index+4,s=n.buffer[this.index+3];if(s>o){let i=n.buffer[this.index+1];e.push(n.slice(o,s,i)),t.push(0)}return new Me(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function xv(r){if(!r.length)return null;let e=0,t=r[0];for(let s=1;s<r.length;s++){let i=r[s];(i.from>t.from||i.to<t.to)&&(t=i,e=s)}let n=t instanceof ft&&t.index<0?null:t.parent,o=r.slice();return n?o[e]=n:o.splice(e,1),new wC(o,t)}class wC{constructor(e,t){this.heads=e,this.node=t}get next(){return xv(this.heads)}}function kC(r,e,t){let n=r.resolveInner(e,t),o=null;for(let s=n instanceof ft?n:n.context.parent;s;s=s.parent)if(s.index<0){let i=s.parent;(o||(o=[n])).push(i.resolve(e,t)),s=i}else{let i=ai.get(s.tree);if(i&&i.overlay&&i.overlay[0].from<=e&&i.overlay[i.overlay.length-1].to>=e){let l=new ft(i.tree,i.overlay[0].from+s.from,-1,s);(o||(o=[n])).push(ii(l,e,t,!1))}}return o?xv(o):n}class gc{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof ft)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let n=e._parent;n;n=n._parent)this.stack.unshift(n.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:n,buffer:o}=this.buffer;return this.type=t||o.set.types[o.buffer[e]],this.from=n+o.buffer[e+1],this.to=n+o.buffer[e+2],!0}yield(e){return e?e instanceof ft?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:o}=this.buffer,s=o.findChild(this.index+4,o.buffer[this.index+3],e,t-this.buffer.start,n);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?n&Qe.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Qe.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Qe.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let o=n<0?0:this.stack[n]+4;if(this.index!=o)return this.yieldBuf(t.findChild(o,this.index,-1,0,4))}else{let o=t.buffer[this.index+3];if(o<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(o)}return n<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:o}=this;if(o){if(e>0){if(this.index<o.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(o.buffer.buffer[s+3]<this.index)return!1;({index:t,parent:n}=o)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let s=t+e,i=e<0?-1:n._tree.children.length;s!=i;s+=e){let l=n._tree.children[s];if(this.mode&Qe.IncludeAnonymous||l instanceof Bn||!l.type.isAnonymous||ap(l))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let o=this.index,s=this.stack.length;s>=0;){for(let i=e;i;i=i._parent)if(i.index==o){if(o==this.index)return i;t=i,n=s+1;break e}o=this.stack[--s]}for(let o=n;o<this.stack.length;o++)t=new Rr(this.buffer,t,this.stack[o]);return this.bufferNode=new Rr(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let o=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){n++;continue}this.type.isAnonymous||(o=!0)}for(;o&&t&&t(this),o=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,o=!0}}}matchContext(e){if(!this.buffer)return Dh(this.node,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let o=e.length-1,s=this.stack.length-1;o>=0;s--){if(s<0)return Dh(this.node,e,o);let i=n[t.buffer[this.stack[s]]];if(!i.isAnonymous){if(e[o]&&e[o]!=i.name)return!1;o--}}return!0}}function ap(r){return r.children.some(e=>e instanceof Bn||!e.type.isAnonymous||ap(e))}function SC(r){var e;let{buffer:t,nodeSet:n,maxBufferLength:o=Sv,reused:s=[],minRepeatType:i=n.types.length}=r,l=Array.isArray(t)?new sp(t,t.length):t,c=n.types,d=0,u=0;function h(S,w,$,T,R,B){let{id:M,start:V,end:K,size:L}=l,ne=u;for(;L<0;)if(l.next(),L==-1){let q=s[M];$.push(q),T.push(V-S);return}else if(L==-3){d=M;return}else if(L==-4){u=M;return}else throw new RangeError(`Unrecognized record size: ${L}`);let ge=c[M],Se,Pe,ie=V-S;if(K-V<=o&&(Pe=O(l.pos-w,R))){let q=new Uint16Array(Pe.size-Pe.skip),N=l.pos-Pe.size,I=q.length;for(;l.pos>N;)I=y(Pe.start,q,I);Se=new Bn(q,K-Pe.start,n),ie=Pe.start-S}else{let q=l.pos-L;l.next();let N=[],I=[],Z=M>=i?M:-1,P=0,Q=K;for(;l.pos>q;)Z>=0&&l.id==Z&&l.size>=0?(l.end<=Q-o&&(m(N,I,V,P,l.end,Q,Z,ne),P=N.length,Q=l.end),l.next()):B>2500?f(V,q,N,I):h(V,q,N,I,Z,B+1);if(Z>=0&&P>0&&P<N.length&&m(N,I,V,P,V,Q,Z,ne),N.reverse(),I.reverse(),Z>-1&&P>0){let A=p(ge);Se=ip(ge,N,I,0,N.length,0,K-V,A,A)}else Se=g(ge,N,I,K-V,ne-K)}$.push(Se),T.push(ie)}function f(S,w,$,T){let R=[],B=0,M=-1;for(;l.pos>w;){let{id:V,start:K,end:L,size:ne}=l;if(ne>4)l.next();else{if(M>-1&&K<M)break;M<0&&(M=L-o),R.push(V,K,L),B++,l.next()}}if(B){let V=new Uint16Array(B*4),K=R[R.length-2];for(let L=R.length-3,ne=0;L>=0;L-=3)V[ne++]=R[L],V[ne++]=R[L+1]-K,V[ne++]=R[L+2]-K,V[ne++]=ne;$.push(new Bn(V,R[2]-K,n)),T.push(K-S)}}function p(S){return(w,$,T)=>{let R=0,B=w.length-1,M,V;if(B>=0&&(M=w[B])instanceof Me){if(!B&&M.type==S&&M.length==T)return M;(V=M.prop(fe.lookAhead))&&(R=$[B]+M.length+V)}return g(S,w,$,T,R)}}function m(S,w,$,T,R,B,M,V){let K=[],L=[];for(;S.length>T;)K.push(S.pop()),L.push(w.pop()+$-R);S.push(g(n.types[M],K,L,B-R,V-B)),w.push(R-$)}function g(S,w,$,T,R=0,B){if(d){let M=[fe.contextHash,d];B=B?[M].concat(B):[M]}if(R>25){let M=[fe.lookAhead,R];B=B?[M].concat(B):[M]}return new Me(S,w,$,T,B)}function O(S,w){let $=l.fork(),T=0,R=0,B=0,M=$.end-o,V={size:0,start:0,skip:0};e:for(let K=$.pos-S;$.pos>K;){let L=$.size;if($.id==w&&L>=0){V.size=T,V.start=R,V.skip=B,B+=4,T+=4,$.next();continue}let ne=$.pos-L;if(L<0||ne<K||$.start<M)break;let ge=$.id>=i?4:0,Se=$.start;for($.next();$.pos>ne;){if($.size<0)if($.size==-3)ge+=4;else break e;else $.id>=i&&(ge+=4);$.next()}R=Se,T+=L,B+=ge}return(w<0||T==S)&&(V.size=T,V.start=R,V.skip=B),V.size>4?V:void 0}function y(S,w,$){let{id:T,start:R,end:B,size:M}=l;if(l.next(),M>=0&&T<i){let V=$;if(M>4){let K=l.pos-(M-4);for(;l.pos>K;)$=y(S,w,$)}w[--$]=V,w[--$]=B-S,w[--$]=R-S,w[--$]=T}else M==-3?d=T:M==-4&&(u=T);return $}let b=[],v=[];for(;l.pos>0;)h(r.start||0,r.bufferStart||0,b,v,-1,0);let k=(e=r.length)!==null&&e!==void 0?e:b.length?v[0]+b[0].length:0;return new Me(c[r.topID],b.reverse(),v.reverse(),k)}const gO=new WeakMap;function Ul(r,e){if(!r.isAnonymous||e instanceof Bn||e.type!=r)return 1;let t=gO.get(e);if(t==null){t=1;for(let n of e.children){if(n.type!=r||!(n instanceof Me)){t=1;break}t+=Ul(r,n)}gO.set(e,t)}return t}function ip(r,e,t,n,o,s,i,l,c){let d=0;for(let m=n;m<o;m++)d+=Ul(r,e[m]);let u=Math.ceil(d*1.5/8),h=[],f=[];function p(m,g,O,y,b){for(let v=O;v<y;){let k=v,S=g[v],w=Ul(r,m[v]);for(v++;v<y;v++){let $=Ul(r,m[v]);if(w+$>=u)break;w+=$}if(v==k+1){if(w>u){let $=m[k];p($.children,$.positions,0,$.children.length,g[k]+b);continue}h.push(m[k])}else{let $=g[v-1]+m[v-1].length-S;h.push(ip(r,m,g,k,v,S,$,null,c))}f.push(S+b-s)}}return p(e,t,n,o,0),(l||c)(h,f,i)}class _v{constructor(){this.map=new WeakMap}setBuffer(e,t,n){let o=this.map.get(e);o||this.map.set(e,o=new Map),o.set(t,n)}getBuffer(e,t){let n=this.map.get(e);return n&&n.get(t)}set(e,t){e instanceof Rr?this.setBuffer(e.context.buffer,e.index,t):e instanceof ft&&this.map.set(e.tree,t)}get(e){return e instanceof Rr?this.getBuffer(e.context.buffer,e.index):e instanceof ft?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Kr{constructor(e,t,n,o,s=!1,i=!1){this.from=e,this.to=t,this.tree=n,this.offset=o,this.open=(s?1:0)|(i?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],n=!1){let o=[new Kr(0,e.length,e,0,!1,n)];for(let s of t)s.to>e.length&&o.push(s);return o}static applyChanges(e,t,n=128){if(!t.length)return e;let o=[],s=1,i=e.length?e[0]:null;for(let l=0,c=0,d=0;;l++){let u=l<t.length?t[l]:null,h=u?u.fromA:1e9;if(h-c>=n)for(;i&&i.from<h;){let f=i;if(c>=f.from||h<=f.to||d){let p=Math.max(f.from,c)-d,m=Math.min(f.to,h)-d;f=p>=m?null:new Kr(p,m,f.tree,f.offset+d,l>0,!!u)}if(f&&o.push(f),i.to>h)break;i=s<e.length?e[s++]:null}if(!u)break;c=u.toA,d=u.toA-u.toB}return o}}class Cv{startParse(e,t,n){return typeof e=="string"&&(e=new $C(e)),n=n?n.length?n.map(o=>new Yt(o.from,o.to)):[new Yt(0,0)]:[new Yt(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let o=this.startParse(e,t,n);for(;;){let s=o.advance();if(s)return s}}}class $C{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}function PC(r){return(e,t,n,o)=>new _C(e,r,t,n,o)}class OO{constructor(e,t,n,o,s){this.parser=e,this.parse=t,this.overlay=n,this.target=o,this.from=s}}function yO(r){if(!r.length||r.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(r))}class xC{constructor(e,t,n,o,s,i,l){this.parser=e,this.predicate=t,this.mounts=n,this.index=o,this.start=s,this.target=i,this.prev=l,this.depth=0,this.ranges=[]}}const Mh=new fe({perNode:!0});class _C{constructor(e,t,n,o,s){this.nest=t,this.input=n,this.fragments=o,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let n=this.baseParse.advance();if(!n)return null;if(this.baseParse=null,this.baseTree=n,this.startInner(),this.stoppedAt!=null)for(let o of this.inner)o.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let n=this.baseTree;return this.stoppedAt!=null&&(n=new Me(n.type,n.children,n.positions,n.length,n.propValues.concat([[Mh,this.stoppedAt]]))),n}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let n=Object.assign(Object.create(null),e.target.props);n[fe.mounted.id]=new ai(t,e.overlay,e.parser),e.target.props=n}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new QC(this.fragments),t=null,n=null,o=new gc(new ft(this.baseTree,this.ranges[0].from,0,null),Qe.IncludeAnonymous|Qe.IgnoreMounts);e:for(let s,i;;){let l=!0,c;if(this.stoppedAt!=null&&o.from>=this.stoppedAt)l=!1;else if(e.hasNode(o)){if(t){let d=t.mounts.find(u=>u.frag.from<=o.from&&u.frag.to>=o.to&&u.mount.overlay);if(d)for(let u of d.mount.overlay){let h=u.from+d.pos,f=u.to+d.pos;h>=o.from&&f<=o.to&&!t.ranges.some(p=>p.from<f&&p.to>h)&&t.ranges.push({from:h,to:f})}}l=!1}else if(n&&(i=CC(n.ranges,o.from,o.to)))l=i!=2;else if(!o.type.isAnonymous&&(s=this.nest(o,this.input))&&(o.from<o.to||!s.overlay)){o.tree||TC(o);let d=e.findMounts(o.from,s.parser);if(typeof s.overlay=="function")t=new xC(s.parser,s.overlay,d,this.inner.length,o.from,o.tree,t);else{let u=wO(this.ranges,s.overlay||(o.from<o.to?[new Yt(o.from,o.to)]:[]));u.length&&yO(u),(u.length||!s.overlay)&&this.inner.push(new OO(s.parser,u.length?s.parser.startParse(this.input,kO(d,u),u):s.parser.startParse(""),s.overlay?s.overlay.map(h=>new Yt(h.from-o.from,h.to-o.from)):null,o.tree,u.length?u[0].from:o.from)),s.overlay?u.length&&(n={ranges:u,depth:0,prev:n}):l=!1}}else t&&(c=t.predicate(o))&&(c===!0&&(c=new Yt(o.from,o.to)),c.from<c.to&&t.ranges.push(c));if(l&&o.firstChild())t&&t.depth++,n&&n.depth++;else for(;!o.nextSibling();){if(!o.parent())break e;if(t&&!--t.depth){let d=wO(this.ranges,t.ranges);d.length&&(yO(d),this.inner.splice(t.index,0,new OO(t.parser,t.parser.startParse(this.input,kO(t.mounts,d),d),t.ranges.map(u=>new Yt(u.from-t.start,u.to-t.start)),t.target,d[0].from))),t=t.prev}n&&!--n.depth&&(n=n.prev)}}}}function CC(r,e,t){for(let n of r){if(n.from>=t)break;if(n.to>e)return n.from<=e&&n.to>=t?2:1}return 0}function bO(r,e,t,n,o,s){if(e<t){let i=r.buffer[e+1];n.push(r.slice(e,t,i)),o.push(i-s)}}function TC(r){let{node:e}=r,t=[],n=e.context.buffer;do t.push(r.index),r.parent();while(!r.tree);let o=r.tree,s=o.children.indexOf(n),i=o.children[s],l=i.buffer,c=[s];function d(u,h,f,p,m,g){let O=t[g],y=[],b=[];bO(i,u,O,y,b,p);let v=l[O+1],k=l[O+2];c.push(y.length);let S=g?d(O+4,l[O+3],i.set.types[l[O]],v,k-v,g-1):e.toTree();return y.push(S),b.push(v-p),bO(i,l[O+3],h,y,b,p),new Me(f,y,b,m)}o.children[s]=d(0,l.length,wt.none,0,i.length,t.length-1);for(let u of c){let h=r.tree.children[u],f=r.tree.positions[u];r.yield(new ft(h,f+r.from,u,r._tree))}}class vO{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(Qe.IncludeAnonymous|Qe.IgnoreMounts)}moveTo(e){let{cursor:t}=this,n=e-this.offset;for(;!this.done&&t.from<n;)t.to>=e&&t.enter(n,1,Qe.IgnoreOverlays|Qe.ExcludeBuffers)||t.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof Me)t=t.children[0];else break}return!1}}let QC=class{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let n=this.curFrag=e[0];this.curTo=(t=n.tree.prop(Mh))!==null&&t!==void 0?t:n.to,this.inner=new vO(n.tree,-n.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=(e=t.tree.prop(Mh))!==null&&e!==void 0?e:t.to,this.inner=new vO(t.tree,-t.offset)}}findMounts(e,t){var n;let o=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let s=this.inner.cursor.node;s;s=s.parent){let i=(n=s.tree)===null||n===void 0?void 0:n.prop(fe.mounted);if(i&&i.parser==t)for(let l=this.fragI;l<this.fragments.length;l++){let c=this.fragments[l];if(c.from>=s.to)break;c.tree==this.curFrag.tree&&o.push({frag:c,pos:s.from-c.offset,mount:i})}}}return o}};function wO(r,e){let t=null,n=e;for(let o=1,s=0;o<r.length;o++){let i=r[o-1].to,l=r[o].from;for(;s<n.length;s++){let c=n[s];if(c.from>=l)break;c.to<=i||(t||(n=t=e.slice()),c.from<i?(t[s]=new Yt(c.from,i),c.to>l&&t.splice(s+1,0,new Yt(l,c.to))):c.to>l?t[s--]=new Yt(l,c.to):t.splice(s--,1))}}return n}function EC(r,e,t,n){let o=0,s=0,i=!1,l=!1,c=-1e9,d=[];for(;;){let u=o==r.length?1e9:i?r[o].to:r[o].from,h=s==e.length?1e9:l?e[s].to:e[s].from;if(i!=l){let f=Math.max(c,t),p=Math.min(u,h,n);f<p&&d.push(new Yt(f,p))}if(c=Math.min(u,h),c==1e9)break;u==c&&(i?(i=!1,o++):i=!0),h==c&&(l?(l=!1,s++):l=!0)}return d}function kO(r,e){let t=[];for(let{pos:n,mount:o,frag:s}of r){let i=n+(o.overlay?o.overlay[0].from:0),l=i+o.tree.length,c=Math.max(s.from,i),d=Math.min(s.to,l);if(o.overlay){let u=o.overlay.map(f=>new Yt(f.from+n,f.to+n)),h=EC(e,u,c,d);for(let f=0,p=c;;f++){let m=f==h.length,g=m?d:h[f].from;if(g>p&&t.push(new Kr(p,g,o.tree,-i,s.from>=p||s.openStart,s.to<=g||s.openEnd)),m)break;p=h[f].to}}else t.push(new Kr(c,d,o.tree,-i,s.from>=i||s.openStart,s.to<=l||s.openEnd))}return t}let NC=0,vn=class Tv{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=NC++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let t=new Tv([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new Oc;return t=>t.modified.indexOf(e)>-1?t:Oc.get(t.base||t,t.modified.concat(e).sort((n,o)=>n.id-o.id))}},AC=0;class Oc{constructor(){this.instances=[],this.id=AC++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(l=>l.base==e&&RC(t,l.modified));if(n)return n;let o=[],s=new vn(o,e,t);for(let l of t)l.instances.push(s);let i=VC(t);for(let l of e.set)if(!l.modified.length)for(let c of i)o.push(Oc.get(l,c));return s}}function RC(r,e){return r.length==e.length&&r.every((t,n)=>t==e[n])}function VC(r){let e=[[]];for(let t=0;t<r.length;t++)for(let n=0,o=e.length;n<o;n++)e.push(e[n].concat(r[t]));return e.sort((t,n)=>n.length-t.length)}function Is(r){let e=Object.create(null);for(let t in r){let n=r[t];Array.isArray(n)||(n=[n]);for(let o of t.split(" "))if(o){let s=[],i=2,l=o;for(let h=0;;){if(l=="..."&&h>0&&h+3==o.length){i=1;break}let f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!f)throw new RangeError("Invalid path: "+o);if(s.push(f[0]=="*"?"":f[0][0]=='"'?JSON.parse(f[0]):f[0]),h+=f[0].length,h==o.length)break;let p=o[h++];if(h==o.length&&p=="!"){i=0;break}if(p!="/")throw new RangeError("Invalid path: "+o);l=o.slice(h)}let c=s.length-1,d=s[c];if(!d)throw new RangeError("Invalid path: "+o);let u=new yc(n,i,c>0?s.slice(0,c):null);e[d]=u.sort(e[d])}}return Qv.add(e)}const Qv=new fe;class yc{constructor(e,t,n,o){this.tags=e,this.mode=t,this.context=n,this.next=o}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}yc.empty=new yc([],2,null);function Ev(r,e){let t=Object.create(null);for(let s of r)if(!Array.isArray(s.tag))t[s.tag.id]=s.class;else for(let i of s.tag)t[i.id]=s.class;let{scope:n,all:o=null}=e||{};return{style:s=>{let i=o;for(let l of s)for(let c of l.set){let d=t[c.id];if(d){i=i?i+" "+d:d;break}}return i},scope:n}}function BC(r,e){let t=null;for(let n of r){let o=n.style(e);o&&(t=t?t+" "+o:o)}return t}function ZC(r,e,t,n=0,o=r.length){let s=new IC(n,Array.isArray(e)?e:[e],t);s.highlightRange(r.cursor(),n,o,"",s.highlighters),s.flush(o)}class IC{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,o,s){let{type:i,from:l,to:c}=e;if(l>=n||c<=t)return;i.isTop&&(s=this.highlighters.filter(p=>!p.scope||p.scope(i)));let d=o,u=jC(e)||yc.empty,h=BC(s,u.tags);if(h&&(d&&(d+=" "),d+=h,u.mode==1&&(o+=(o?" ":"")+h)),this.startSpan(Math.max(t,l),d),u.opaque)return;let f=e.tree&&e.tree.prop(fe.mounted);if(f&&f.overlay){let p=e.node.enter(f.overlay[0].from+l,1),m=this.highlighters.filter(O=>!O.scope||O.scope(f.tree.type)),g=e.firstChild();for(let O=0,y=l;;O++){let b=O<f.overlay.length?f.overlay[O]:null,v=b?b.from+l:c,k=Math.max(t,y),S=Math.min(n,v);if(k<S&&g)for(;e.from<S&&(this.highlightRange(e,k,S,o,s),this.startSpan(Math.min(S,e.to),d),!(e.to>=v||!e.nextSibling())););if(!b||v>n)break;y=b.to+l,y>t&&(this.highlightRange(p.cursor(),Math.max(t,b.from+l),Math.min(n,y),"",m),this.startSpan(Math.min(n,y),d))}g&&e.parent()}else if(e.firstChild()){f&&(o="");do if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,o,s),this.startSpan(Math.min(n,e.to),d)}while(e.nextSibling());e.parent()}}}function jC(r){let e=r.type.prop(Qv);for(;e&&e.context&&!r.matchContext(e.context);)e=e.next;return e||null}const U=vn.define,ml=U(),wn=U(),SO=U(wn),$O=U(wn),kn=U(),gl=U(kn),Ou=U(kn),Cr=U(),Kn=U(Cr),xr=U(),_r=U(),qh=U(),ya=U(qh),Ol=U(),_={comment:ml,lineComment:U(ml),blockComment:U(ml),docComment:U(ml),name:wn,variableName:U(wn),typeName:SO,tagName:U(SO),propertyName:$O,attributeName:U($O),className:U(wn),labelName:U(wn),namespace:U(wn),macroName:U(wn),literal:kn,string:gl,docString:U(gl),character:U(gl),attributeValue:U(gl),number:Ou,integer:U(Ou),float:U(Ou),bool:U(kn),regexp:U(kn),escape:U(kn),color:U(kn),url:U(kn),keyword:xr,self:U(xr),null:U(xr),atom:U(xr),unit:U(xr),modifier:U(xr),operatorKeyword:U(xr),controlKeyword:U(xr),definitionKeyword:U(xr),moduleKeyword:U(xr),operator:_r,derefOperator:U(_r),arithmeticOperator:U(_r),logicOperator:U(_r),bitwiseOperator:U(_r),compareOperator:U(_r),updateOperator:U(_r),definitionOperator:U(_r),typeOperator:U(_r),controlOperator:U(_r),punctuation:qh,separator:U(qh),bracket:ya,angleBracket:U(ya),squareBracket:U(ya),paren:U(ya),brace:U(ya),content:Cr,heading:Kn,heading1:U(Kn),heading2:U(Kn),heading3:U(Kn),heading4:U(Kn),heading5:U(Kn),heading6:U(Kn),contentSeparator:U(Cr),list:U(Cr),quote:U(Cr),emphasis:U(Cr),strong:U(Cr),link:U(Cr),monospace:U(Cr),strikethrough:U(Cr),inserted:U(),deleted:U(),changed:U(),invalid:U(),meta:Ol,documentMeta:U(Ol),annotation:U(Ol),processingInstruction:U(Ol),definition:vn.defineModifier(),constant:vn.defineModifier(),function:vn.defineModifier(),standard:vn.defineModifier(),local:vn.defineModifier(),special:vn.defineModifier()};Ev([{tag:_.link,class:"tok-link"},{tag:_.heading,class:"tok-heading"},{tag:_.emphasis,class:"tok-emphasis"},{tag:_.strong,class:"tok-strong"},{tag:_.keyword,class:"tok-keyword"},{tag:_.atom,class:"tok-atom"},{tag:_.bool,class:"tok-bool"},{tag:_.url,class:"tok-url"},{tag:_.labelName,class:"tok-labelName"},{tag:_.inserted,class:"tok-inserted"},{tag:_.deleted,class:"tok-deleted"},{tag:_.literal,class:"tok-literal"},{tag:_.string,class:"tok-string"},{tag:_.number,class:"tok-number"},{tag:[_.regexp,_.escape,_.special(_.string)],class:"tok-string2"},{tag:_.variableName,class:"tok-variableName"},{tag:_.local(_.variableName),class:"tok-variableName tok-local"},{tag:_.definition(_.variableName),class:"tok-variableName tok-definition"},{tag:_.special(_.variableName),class:"tok-variableName2"},{tag:_.definition(_.propertyName),class:"tok-propertyName tok-definition"},{tag:_.typeName,class:"tok-typeName"},{tag:_.namespace,class:"tok-namespace"},{tag:_.className,class:"tok-className"},{tag:_.macroName,class:"tok-macroName"},{tag:_.propertyName,class:"tok-propertyName"},{tag:_.operator,class:"tok-operator"},{tag:_.comment,class:"tok-comment"},{tag:_.meta,class:"tok-meta"},{tag:_.invalid,class:"tok-invalid"},{tag:_.punctuation,class:"tok-punctuation"}]);var yu;const rs=new fe;function Nv(r){return ee.define({combine:r?e=>e.concat(r):void 0})}const lp=new fe;class dr{constructor(e,t,n=[],o=""){this.data=e,this.name=o,ve.prototype.hasOwnProperty("tree")||Object.defineProperty(ve.prototype,"tree",{get(){return pt(this)}}),this.parser=t,this.extension=[Ps.of(this),ve.languageData.of((s,i,l)=>{let c=PO(s,i,l),d=c.type.prop(rs);if(!d)return[];let u=s.facet(d),h=c.type.prop(lp);if(h){let f=c.resolve(i-c.from,l);for(let p of h)if(p.test(f,s)){let m=s.facet(p.facet);return p.type=="replace"?m:m.concat(u)}}return u})].concat(n)}isActiveAt(e,t,n=-1){return PO(e,t,n).type.prop(rs)==this.data}findRegions(e){let t=e.facet(Ps);if((t==null?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],o=(s,i)=>{if(s.prop(rs)==this.data){n.push({from:i,to:i+s.length});return}let l=s.prop(fe.mounted);if(l){if(l.tree.prop(rs)==this.data){if(l.overlay)for(let c of l.overlay)n.push({from:c.from+i,to:c.to+i});else n.push({from:i,to:i+s.length});return}else if(l.overlay){let c=n.length;if(o(l.tree,l.overlay[0].from+i),n.length>c)return}}for(let c=0;c<s.children.length;c++){let d=s.children[c];d instanceof Me&&o(d,s.positions[c]+i)}};return o(pt(e),0),n}get allowsNesting(){return!0}}dr.setState=_e.define();function PO(r,e,t){let n=r.facet(Ps),o=pt(r).topNode;if(!n||n.allowsNesting)for(let s=o;s;s=s.enter(e,t,Qe.ExcludeBuffers))s.type.isTop&&(o=s);return o}class Zn extends dr{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=Nv(e.languageData);return new Zn(t,e.parser.configure({props:[rs.add(n=>n.isTop?t:void 0)]}),e.name)}configure(e,t){return new Zn(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function pt(r){let e=r.field(dr.state,!1);return e?e.tree:Me.empty}class DC{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let ba=null;class bc{constructor(e,t,n=[],o,s,i,l,c){this.parser=e,this.state=t,this.fragments=n,this.tree=o,this.treeLen=s,this.viewport=i,this.skipped=l,this.scheduleOn=c,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new bc(e,t,[],Me.empty,0,n,[],null)}startParse(){return this.parser.startParse(new DC(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=Me.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var n;if(typeof e=="number"){let o=Date.now()+e;e=()=>Date.now()>o}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let o=this.parse.advance();if(o)if(this.fragments=this.withoutTempSkipped(Kr.addTree(o,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(n=this.parse.stoppedAt)!==null&&n!==void 0?n:this.state.doc.length,this.tree=o,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Kr.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=ba;ba=this;try{return e()}finally{ba=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=xO(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:o,treeLen:s,viewport:i,skipped:l}=this;if(this.takeTree(),!e.empty){let c=[];if(e.iterChangedRanges((d,u,h,f)=>c.push({fromA:d,toA:u,fromB:h,toB:f})),n=Kr.applyChanges(n,c),o=Me.empty,s=0,i={from:e.mapPos(i.from,-1),to:e.mapPos(i.to,1)},this.skipped.length){l=[];for(let d of this.skipped){let u=e.mapPos(d.from,1),h=e.mapPos(d.to,-1);u<h&&l.push({from:u,to:h})}}}return new bc(this.parser,t,n,o,s,i,l,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:o,to:s}=this.skipped[n];o<e.to&&s>e.from&&(this.fragments=xO(this.fragments,o,s),this.skipped.splice(n--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Cv{createParse(t,n,o){let s=o[0].from,i=o[o.length-1].to;return{parsedPos:s,advance(){let c=ba;if(c){for(let d of o)c.tempSkipped.push(d);e&&(c.scheduleOn=c.scheduleOn?Promise.all([c.scheduleOn,e]):e)}return this.parsedPos=i,new Me(wt.none,[],[],i-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return ba}}function xO(r,e,t){return Kr.applyChanges(r,[{fromA:e,toA:t,fromB:e,toB:t}])}class $s{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new $s(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=bc.create(e.facet(Ps).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new $s(n)}}dr.state=yr.define({create:$s.init,update(r,e){for(let t of e.effects)if(t.is(dr.setState))return t.value;return e.startState.facet(Ps)!=e.state.facet(Ps)?$s.init(e.state):r.apply(e)}});let Av=r=>{let e=setTimeout(()=>r(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Av=r=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(r,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});const bu=typeof navigator<"u"&&(!((yu=navigator.scheduling)===null||yu===void 0)&&yu.isInputPending)?()=>navigator.scheduling.isInputPending():null,MC=Ft.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(dr.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(dr.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=Av(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:o}}=this.view,s=n.field(dr.state);if(s.tree==s.context.tree&&s.context.isDone(o+1e5))return;let i=Date.now()+Math.min(this.chunkBudget,100,e&&!bu?Math.max(25,e.timeRemaining()-5):1e9),l=s.context.treeLen<o&&n.doc.length>o+1e3,c=s.context.work(()=>bu&&bu()||Date.now()>i,o+(l?0:1e5));this.chunkBudget-=Date.now()-t,(c||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:dr.setState.of(new $s(s.context))})),this.chunkBudget>0&&!(c&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>pr(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Ps=ee.define({combine(r){return r.length?r[0]:null},enables:r=>[dr.state,MC,re.contentAttributes.compute([r],e=>{let t=e.facet(r);return t&&t.name?{"data-language":t.name}:{}})]});class _i{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const qC=ee.define(),ld=ee.define({combine:r=>{if(!r.length)return" ";let e=r[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(r[0]));return e}});function Rv(r){let e=r.facet(ld);return e.charCodeAt(0)==9?r.tabSize*e.length:e.length}function Vv(r,e){let t="",n=r.tabSize,o=r.facet(ld)[0];if(o==" "){for(;e>=n;)t+=" ",e-=n;o=" "}for(let s=0;s<e;s++)t+=o;return t}function XC(r,e){r instanceof ve&&(r=new Bv(r));for(let n of r.state.facet(qC)){let o=n(r,e);if(o!==void 0)return o}let t=pt(r.state);return t.length>=e?WC(r,t,e):null}class Bv{constructor(e,t={}){this.state=e,this.options=t,this.unit=Rv(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:o,simulateDoubleBreak:s}=this.options;return o!=null&&o>=n.from&&o<=n.to?s&&o==e?{text:"",from:e}:(t<0?o<e:o<=e)?{text:n.text.slice(o-n.from),from:o}:{text:n.text.slice(0,o-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:o}=this.lineAt(e,t);return n.slice(e-o,Math.min(n.length,e+100-o))}column(e,t=1){let{text:n,from:o}=this.lineAt(e,t),s=this.countColumn(n,e-o),i=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return i>-1&&(s+=i-this.countColumn(n,n.search(/\S|$/))),s}countColumn(e,t=e.length){return Gf(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:o}=this.lineAt(e,t),s=this.options.overrideIndentation;if(s){let i=s(o);if(i>-1)return i}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const js=new fe;function WC(r,e,t){let n=e.resolveStack(t),o=n.node.enterUnfinishedNodesBefore(t);if(o!=n.node){let s=[];for(let i=o;i!=n.node;i=i.parent)s.push(i);for(let i=s.length-1;i>=0;i--)n={node:s[i],next:n}}return Zv(n,r,t)}function Zv(r,e,t){for(let n=r;n;n=n.next){let o=UC(n.node);if(o)return o(cp.create(e,t,n))}return 0}function zC(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function UC(r){let e=r.type.prop(js);if(e)return e;let t=r.firstChild,n;if(t&&(n=t.type.prop(fe.closedBy))){let o=r.lastChild,s=o&&n.indexOf(o.name)>-1;return i=>Iv(i,!0,1,void 0,s&&!zC(i)?o.from:void 0)}return r.parent==null?YC:null}function YC(){return 0}class cp extends Bv{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new cp(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(LC(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return Zv(this.context.next,this.base,this.pos)}}function LC(r,e){for(let t=e;t;t=t.parent)if(r==t)return!0;return!1}function HC(r){let e=r.node,t=e.childAfter(e.from),n=e.lastChild;if(!t)return null;let o=r.options.simulateBreak,s=r.state.doc.lineAt(t.from),i=o==null||o<=s.from?s.to:Math.min(s.to,o);for(let l=t.to;;){let c=e.childAfter(l);if(!c||c==n)return null;if(!c.type.isSkipped)return c.from<i?t:null;l=c.to}}function Xh({closing:r,align:e=!0,units:t=1}){return n=>Iv(n,e,t,r)}function Iv(r,e,t,n,o){let s=r.textAfter,i=s.match(/^\s*/)[0].length,l=n&&s.slice(i,i+n.length)==n||o==r.pos+i,c=e?HC(r):null;return c?l?r.column(c.from):r.column(c.to):r.baseIndent+(l?0:r.unit*t)}const GC=r=>r.baseIndent;function fs({except:r,units:e=1}={}){return t=>{let n=r&&r.test(t.textAfter);return t.baseIndent+(n?0:e*t.unit)}}const FC=200;function KC(){return ve.transactionFilter.of(r=>{if(!r.docChanged||!r.isUserEvent("input.type")&&!r.isUserEvent("input.complete"))return r;let e=r.startState.languageDataAt("indentOnInput",r.startState.selection.main.head);if(!e.length)return r;let t=r.newDoc,{head:n}=r.newSelection.main,o=t.lineAt(n);if(n>o.from+FC)return r;let s=t.sliceString(o.from,n);if(!e.some(d=>d.test(s)))return r;let{state:i}=r,l=-1,c=[];for(let{head:d}of i.selection.ranges){let u=i.doc.lineAt(d);if(u.from==l)continue;l=u.from;let h=XC(i,u.from);if(h==null)continue;let f=/^\s*/.exec(u.text)[0],p=Vv(i,h);f!=p&&c.push({from:u.from,to:u.from+f.length,insert:p})}return c.length?[r,{changes:c,sequential:!0}]:r})}const Ci=new fe;function cd(r){let e=r.firstChild,t=r.lastChild;return e&&e.to<t.from?{from:e.to,to:t.type.isError?r.to:t.from}:null}class Ti{constructor(e,t){this.specs=e;let n;function o(l){let c=An.newName();return(n||(n=Object.create(null)))["."+c]=l,c}const s=typeof t.all=="string"?t.all:t.all?o(t.all):void 0,i=t.scope;this.scope=i instanceof dr?l=>l.prop(rs)==i.data:i?l=>l==i:void 0,this.style=Ev(e.map(l=>({tag:l.tag,class:l.class||o(Object.assign({},l,{tag:null}))})),{all:s}).style,this.module=n?new An(n):null,this.themeType=t.themeType}static define(e,t){return new Ti(e,t||{})}}const Wh=ee.define(),jv=ee.define({combine(r){return r.length?[r[0]]:null}});function vu(r){let e=r.facet(Wh);return e.length?e:r.facet(jv)}function Dv(r,e){let t=[e2],n;return r instanceof Ti&&(r.module&&t.push(re.styleModule.of(r.module)),n=r.themeType),e!=null&&e.fallback?t.push(jv.of(r)):n?t.push(Wh.computeN([re.darkTheme],o=>o.facet(re.darkTheme)==(n=="dark")?[r]:[])):t.push(Wh.of(r)),t}class JC{constructor(e){this.markCache=Object.create(null),this.tree=pt(e.state),this.decorations=this.buildDeco(e,vu(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=pt(e.state),n=vu(e.state),o=n!=vu(e.startState),{viewport:s}=e.view,i=e.changes.mapPos(this.decoratedTo,1);t.length<s.to&&!o&&t.type==this.tree.type&&i>=s.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=i):(t!=this.tree||e.viewportChanged||o)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=s.to)}buildDeco(e,t){if(!t||!this.tree.length)return $e.none;let n=new ks;for(let{from:o,to:s}of e.visibleRanges)ZC(this.tree,t,(i,l,c)=>{n.add(i,l,this.markCache[c]||(this.markCache[c]=$e.mark({class:c})))},o,s);return n.finish()}}const e2=$i.high(Ft.fromClass(JC,{decorations:r=>r.decorations})),t2=Ti.define([{tag:_.meta,color:"#404740"},{tag:_.link,textDecoration:"underline"},{tag:_.heading,textDecoration:"underline",fontWeight:"bold"},{tag:_.emphasis,fontStyle:"italic"},{tag:_.strong,fontWeight:"bold"},{tag:_.strikethrough,textDecoration:"line-through"},{tag:_.keyword,color:"#708"},{tag:[_.atom,_.bool,_.url,_.contentSeparator,_.labelName],color:"#219"},{tag:[_.literal,_.inserted],color:"#164"},{tag:[_.string,_.deleted],color:"#a11"},{tag:[_.regexp,_.escape,_.special(_.string)],color:"#e40"},{tag:_.definition(_.variableName),color:"#00f"},{tag:_.local(_.variableName),color:"#30a"},{tag:[_.typeName,_.namespace],color:"#085"},{tag:_.className,color:"#167"},{tag:[_.special(_.variableName),_.macroName],color:"#256"},{tag:_.definition(_.propertyName),color:"#00c"},{tag:_.comment,color:"#940"},{tag:_.invalid,color:"#f00"}]),r2=re.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Mv=1e4,qv="()[]{}",Xv=ee.define({combine(r){return sd(r,{afterCursor:!0,brackets:qv,maxScanDistance:Mv,renderMatch:s2})}}),n2=$e.mark({class:"cm-matchingBracket"}),o2=$e.mark({class:"cm-nonmatchingBracket"});function s2(r){let e=[],t=r.matched?n2:o2;return e.push(t.range(r.start.from,r.start.to)),r.end&&e.push(t.range(r.end.from,r.end.to)),e}const a2=yr.define({create(){return $e.none},update(r,e){if(!e.docChanged&&!e.selection)return r;let t=[],n=e.state.facet(Xv);for(let o of e.state.selection.ranges){if(!o.empty)continue;let s=yl(e.state,o.head,-1,n)||o.head>0&&yl(e.state,o.head-1,1,n)||n.afterCursor&&(yl(e.state,o.head,1,n)||o.head<e.state.doc.length&&yl(e.state,o.head+1,-1,n));s&&(t=t.concat(n.renderMatch(s,e.state)))}return $e.set(t,!0)},provide:r=>re.decorations.from(r)}),i2=[a2,r2];function l2(r={}){return[Xv.of(r),i2]}const Wv=new fe;function zh(r,e,t){let n=r.prop(e<0?fe.openedBy:fe.closedBy);if(n)return n;if(r.name.length==1){let o=t.indexOf(r.name);if(o>-1&&o%2==(e<0?1:0))return[t[o+e]]}return null}function Uh(r){let e=r.type.prop(Wv);return e?e(r.node):r}function yl(r,e,t,n={}){let o=n.maxScanDistance||Mv,s=n.brackets||qv,i=pt(r),l=i.resolveInner(e,t);for(let c=l;c;c=c.parent){let d=zh(c.type,t,s);if(d&&c.from<c.to){let u=Uh(c);if(u&&(t>0?e>=u.from&&e<u.to:e>u.from&&e<=u.to))return c2(r,e,t,c,u,d,s)}}return d2(r,e,t,i,l.type,o,s)}function c2(r,e,t,n,o,s,i){let l=n.parent,c={from:o.from,to:o.to},d=0,u=l==null?void 0:l.cursor();if(u&&(t<0?u.childBefore(n.from):u.childAfter(n.to)))do if(t<0?u.to<=n.from:u.from>=n.to){if(d==0&&s.indexOf(u.type.name)>-1&&u.from<u.to){let h=Uh(u);return{start:c,end:h?{from:h.from,to:h.to}:void 0,matched:!0}}else if(zh(u.type,t,i))d++;else if(zh(u.type,-t,i)){if(d==0){let h=Uh(u);return{start:c,end:h&&h.from<h.to?{from:h.from,to:h.to}:void 0,matched:!1}}d--}}while(t<0?u.prevSibling():u.nextSibling());return{start:c,matched:!1}}function d2(r,e,t,n,o,s,i){let l=t<0?r.sliceDoc(e-1,e):r.sliceDoc(e,e+1),c=i.indexOf(l);if(c<0||c%2==0!=t>0)return null;let d={from:t<0?e-1:e,to:t>0?e+1:e},u=r.doc.iterRange(e,t>0?r.doc.length:0),h=0;for(let f=0;!u.next().done&&f<=s;){let p=u.value;t<0&&(f+=p.length);let m=e+f*t;for(let g=t>0?0:p.length-1,O=t>0?p.length:-1;g!=O;g+=t){let y=i.indexOf(p[g]);if(!(y<0||n.resolveInner(m+g,1).type!=o))if(y%2==0==t>0)h++;else{if(h==1)return{start:d,end:{from:m+g,to:m+g+1},matched:y>>1==c>>1};h--}}t>0&&(f+=p.length)}return u.done?{start:d,matched:!1}:null}const u2=Object.create(null),_O=[wt.none],CO=[],TO=Object.create(null),h2=Object.create(null);for(let[r,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])h2[r]=f2(u2,e);function wu(r,e){CO.indexOf(r)>-1||(CO.push(r),console.warn(e))}function f2(r,e){let t=[];for(let l of e.split(" ")){let c=[];for(let d of l.split(".")){let u=r[d]||_[d];u?typeof u=="function"?c.length?c=c.map(u):wu(d,`Modifier ${d} used at start of tag`):c.length?wu(d,`Tag ${d} used as modifier`):c=Array.isArray(u)?u:[u]:wu(d,`Unknown highlighting tag ${d}`)}for(let d of c)t.push(d)}if(!t.length)return 0;let n=e.replace(/ /g,"_"),o=n+" "+t.map(l=>l.id),s=TO[o];if(s)return s.id;let i=TO[o]=wt.define({id:_O.length,name:n,props:[Is({[n]:t})]});return _O.push(i),i.id}He.RTL,He.LTR;class zv{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=pt(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),o=t.text.slice(n-t.from,this.pos-t.from),s=o.search(Yv(e,!1));return s<0?null:{from:n+s,to:this.pos,text:o.slice(s)}}get aborted(){return this.abortListeners==null}addEventListener(e,t){e=="abort"&&this.abortListeners&&this.abortListeners.push(t)}}function QO(r){let e=Object.keys(r).join(""),t=/\w/.test(e);return t&&(e=e.replace(/\w/g,"")),`[${t?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function p2(r){let e=Object.create(null),t=Object.create(null);for(let{label:o}of r){e[o[0]]=!0;for(let s=1;s<o.length;s++)t[o[s]]=!0}let n=QO(e)+QO(t)+"*$";return[new RegExp("^"+n),new RegExp(n)]}function Uv(r){let e=r.map(o=>typeof o=="string"?{label:o}:o),[t,n]=e.every(o=>/^\w+$/.test(o.label))?[/\w*$/,/\w+$/]:p2(e);return o=>{let s=o.matchBefore(n);return s||o.explicit?{from:s?s.from:o.pos,options:e,validFor:t}:null}}function m2(r,e){return t=>{for(let n=pt(t.state).resolveInner(t.pos,-1);n;n=n.parent){if(r.indexOf(n.name)>-1)return null;if(n.type.isTop)break}return e(t)}}class EO{constructor(e,t,n,o){this.completion=e,this.source=t,this.match=n,this.score=o}}function Qn(r){return r.selection.main.from}function Yv(r,e){var t;let{source:n}=r,o=e&&n[0]!="^",s=n[n.length-1]!="$";return!o&&!s?r:new RegExp(`${o?"^":""}(?:${n})${s?"$":""}`,(t=r.flags)!==null&&t!==void 0?t:r.ignoreCase?"i":"")}const Lv=No.define();function g2(r,e,t,n){let{main:o}=r.selection,s=t-o.from,i=n-o.from;return Object.assign(Object.assign({},r.changeByRange(l=>l!=o&&t!=n&&r.sliceDoc(l.from+s,l.from+i)!=r.sliceDoc(t,n)?{range:l}:{changes:{from:l.from+s,to:n==o.from?l.to:l.from+i,insert:e},range:Y.cursor(l.from+s+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const NO=new WeakMap;function O2(r){if(!Array.isArray(r))return r;let e=NO.get(r);return e||NO.set(r,e=Uv(r)),e}const vc=_e.define(),li=_e.define();class y2{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=dt(e,t),o=lr(n);this.chars.push(n);let s=e.slice(t,t+o),i=s.toUpperCase();this.folded.push(dt(i==s?s.toLowerCase():i,0)),t+=o}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,!0}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return!1;let{chars:t,folded:n,any:o,precise:s,byWord:i}=this;if(t.length==1){let b=dt(e,0),v=lr(b),k=v==e.length?0:-100;if(b!=t[0])if(b==n[0])k+=-200;else return!1;return this.ret(k,[0,v])}let l=e.indexOf(this.pattern);if(l==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let c=t.length,d=0;if(l<0){for(let b=0,v=Math.min(e.length,200);b<v&&d<c;){let k=dt(e,b);(k==t[d]||k==n[d])&&(o[d++]=b),b+=lr(k)}if(d<c)return!1}let u=0,h=0,f=!1,p=0,m=-1,g=-1,O=/[a-z]/.test(e),y=!0;for(let b=0,v=Math.min(e.length,200),k=0;b<v&&h<c;){let S=dt(e,b);l<0&&(u<c&&S==t[u]&&(s[u++]=b),p<c&&(S==t[p]||S==n[p]?(p==0&&(m=b),g=b+1,p++):p=0));let w,$=S<255?S>=48&&S<=57||S>=97&&S<=122?2:S>=65&&S<=90?1:0:(w=ub(S))!=w.toLowerCase()?1:w!=w.toUpperCase()?2:0;(!b||$==1&&O||k==0&&$!=0)&&(t[h]==S||n[h]==S&&(f=!0)?i[h++]=b:i.length&&(y=!1)),k=$,b+=lr(S)}return h==c&&i[0]==0&&y?this.result(-100+(f?-200:0),i,e):p==c&&m==0?this.ret(-200-e.length+(g==e.length?0:-100),[0,g]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):p==c?this.ret(-900-e.length,[m,g]):h==c?this.result(-100+(f?-200:0)+-700+(y?0:-1100),i,e):t.length==2?!1:this.result((o[0]?-700:0)+-200+-1100,o,e)}result(e,t,n){let o=[],s=0;for(let i of t){let l=i+(this.astral?lr(dt(n,i)):1);s&&o[s-1]==i?o[s-1]=l:(o[s++]=i,o[s++]=l)}return this.ret(e-n.length,o)}}const st=ee.define({combine(r){return sd(r,{activateOnTyping:!0,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:b2,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>AO(e(n),t(n)),optionClass:(e,t)=>n=>AO(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})}});function AO(r,e){return r?e?r+" "+e:r:e}function b2(r,e,t,n,o,s){let i=r.textDirection==He.RTL,l=i,c=!1,d="top",u,h,f=e.left-o.left,p=o.right-e.right,m=n.right-n.left,g=n.bottom-n.top;if(l&&f<Math.min(m,p)?l=!1:!l&&p<Math.min(m,f)&&(l=!0),m<=(l?f:p))u=Math.max(o.top,Math.min(t.top,o.bottom-g))-e.top,h=Math.min(400,l?f:p);else{c=!0,h=Math.min(400,(i?e.right:o.right-e.left)-30);let b=o.bottom-e.bottom;b>=g||b>e.top?u=t.bottom-e.top:(d="bottom",u=e.bottom-t.top)}let O=(e.bottom-e.top)/s.offsetHeight,y=(e.right-e.left)/s.offsetWidth;return{style:`${d}: ${u/O}px; max-width: ${h/y}px`,class:"cm-completionInfo-"+(c?i?"left-narrow":"right-narrow":l?"left":"right")}}function v2(r){let e=r.addToOptions.slice();return r.icons&&e.push({render(t){let n=document.createElement("div");return n.classList.add("cm-completionIcon"),t.type&&n.classList.add(...t.type.split(/\s+/g).map(o=>"cm-completionIcon-"+o)),n.setAttribute("aria-hidden","true"),n},position:20}),e.push({render(t,n,o,s){let i=document.createElement("span");i.className="cm-completionLabel";let l=t.displayLabel||t.label,c=0;for(let d=0;d<s.length;){let u=s[d++],h=s[d++];u>c&&i.appendChild(document.createTextNode(l.slice(c,u)));let f=i.appendChild(document.createElement("span"));f.appendChild(document.createTextNode(l.slice(u,h))),f.className="cm-completionMatchedText",c=h}return c<l.length&&i.appendChild(document.createTextNode(l.slice(c))),i},position:50},{render(t){if(!t.detail)return null;let n=document.createElement("span");return n.className="cm-completionDetail",n.textContent=t.detail,n},position:80}),e.sort((t,n)=>t.position-n.position).map(t=>t.render)}function ku(r,e,t){if(r<=t)return{from:0,to:r};if(e<0&&(e=0),e<=r>>1){let o=Math.floor(e/t);return{from:o*t,to:(o+1)*t}}let n=Math.floor((r-e)/t);return{from:r-(n+1)*t,to:r-n*t}}class w2{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:c=>this.placeInfo(c),key:this},this.space=null,this.currentClass="";let o=e.state.field(t),{options:s,selected:i}=o.open,l=e.state.facet(st);this.optionContent=v2(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=ku(s.length,i,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",c=>{let{options:d}=e.state.field(t).open;for(let u=c.target,h;u&&u!=this.dom;u=u.parentNode)if(u.nodeName=="LI"&&(h=/-(\d+)$/.exec(u.id))&&+h[1]<d.length){this.applyCompletion(e,d[+h[1]]),c.preventDefault();return}}),this.dom.addEventListener("focusout",c=>{let d=e.state.field(this.stateField,!1);d&&d.tooltip&&e.state.facet(st).closeOnBlur&&c.relatedTarget!=e.contentDOM&&e.dispatch({effects:li.of(null)})}),this.showOptions(s,o.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let n=e.state.field(this.stateField),o=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=o){let{options:s,selected:i,disabled:l}=n.open;(!o.open||o.open.options!=s)&&(this.range=ku(s.length,i,e.state.facet(st).maxRenderedOptions),this.showOptions(s,n.id)),this.updateSel(),l!=((t=o.open)===null||t===void 0?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let n of this.currentClass.split(" "))n&&this.dom.classList.remove(n);for(let n of t.split(" "))n&&this.dom.classList.add(n);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=ku(t.options.length,t.selected,this.view.state.facet(st).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:o}=n;if(!o)return;let s=typeof o=="string"?document.createTextNode(o):o(n);if(!s)return;"then"in s?s.then(i=>{i&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(i,n)}).catch(i=>pr(this.view.state,i,"completion info")):this.addInfoPane(s,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",e.nodeType!=null)n.appendChild(e),this.infoDestroy=null;else{let{dom:o,destroy:s}=e;n.appendChild(o),this.infoDestroy=s||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,o=this.range.from;n;n=n.nextSibling,o++)n.nodeName!="LI"||!n.id?o--:o==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected");return t&&S2(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),o=e.getBoundingClientRect(),s=this.space;if(!s){let i=this.dom.ownerDocument.defaultView||window;s={left:0,top:0,right:i.innerWidth,bottom:i.innerHeight}}return o.top>Math.min(s.bottom,t.bottom)-10||o.bottom<Math.max(s.top,t.top)+10?null:this.view.state.facet(st).positionInfo(this.view,t,o,n,s,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,n){const o=document.createElement("ul");o.id=t,o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.setAttribute("aria-label",this.view.state.phrase("Completions"));let s=null;for(let i=n.from;i<n.to;i++){let{completion:l,match:c}=e[i],{section:d}=l;if(d){let f=typeof d=="string"?d:d.name;if(f!=s&&(i>n.from||n.from==0))if(s=f,typeof d!="string"&&d.header)o.appendChild(d.header(d));else{let p=o.appendChild(document.createElement("completion-section"));p.textContent=f}}const u=o.appendChild(document.createElement("li"));u.id=t+"-"+i,u.setAttribute("role","option");let h=this.optionClass(l);h&&(u.className=h);for(let f of this.optionContent){let p=f(l,this.view.state,this.view,c);p&&u.appendChild(p)}}return n.from&&o.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&o.classList.add("cm-completionListIncompleteBottom"),o}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function k2(r,e){return t=>new w2(t,r,e)}function S2(r,e){let t=r.getBoundingClientRect(),n=e.getBoundingClientRect(),o=t.height/r.offsetHeight;n.top<t.top?r.scrollTop-=(t.top-n.top)/o:n.bottom>t.bottom&&(r.scrollTop+=(n.bottom-t.bottom)/o)}function RO(r){return(r.boost||0)*100+(r.apply?10:0)+(r.info?5:0)+(r.type?1:0)}function $2(r,e){let t=[],n=null,o=c=>{t.push(c);let{section:d}=c.completion;if(d){n||(n=[]);let u=typeof d=="string"?d:d.name;n.some(h=>h.name==u)||n.push(typeof d=="string"?{name:u}:d)}};for(let c of r)if(c.hasResult()){let d=c.result.getMatch;if(c.result.filter===!1)for(let u of c.result.options)o(new EO(u,c.source,d?d(u):[],1e9-t.length));else{let u=new y2(e.sliceDoc(c.from,c.to));for(let h of c.result.options)if(u.match(h.label)){let f=h.displayLabel?d?d(h,u.matched):[]:u.matched;o(new EO(h,c.source,f,u.score+(h.boost||0)))}}}if(n){let c=Object.create(null),d=0,u=(h,f)=>{var p,m;return((p=h.rank)!==null&&p!==void 0?p:1e9)-((m=f.rank)!==null&&m!==void 0?m:1e9)||(h.name<f.name?-1:1)};for(let h of n.sort(u))d-=1e5,c[h.name]=d;for(let h of t){let{section:f}=h.completion;f&&(h.score+=c[typeof f=="string"?f:f.name])}}let s=[],i=null,l=e.facet(st).compareCompletions;for(let c of t.sort((d,u)=>u.score-d.score||l(d.completion,u.completion))){let d=c.completion;!i||i.label!=d.label||i.detail!=d.detail||i.type!=null&&d.type!=null&&i.type!=d.type||i.apply!=d.apply||i.boost!=d.boost?s.push(c):RO(c.completion)>RO(i)&&(s[s.length-1]=c),i=c.completion}return s}class ns{constructor(e,t,n,o,s,i){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=o,this.selected=s,this.disabled=i}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new ns(this.options,VO(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,o,s){let i=$2(e,t);if(!i.length)return o&&e.some(c=>c.state==1)?new ns(o.options,o.attrs,o.tooltip,o.timestamp,o.selected,!0):null;let l=t.facet(st).selectOnOpen?0:-1;if(o&&o.selected!=l&&o.selected!=-1){let c=o.options[o.selected].completion;for(let d=0;d<i.length;d++)if(i[d].completion==c){l=d;break}}return new ns(i,VO(n,l),{pos:e.reduce((c,d)=>d.hasResult()?Math.min(c,d.from):c,1e8),create:T2,above:s.aboveCursor},o?o.timestamp:Date.now(),l,!1)}map(e){return new ns(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class wc{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new wc(_2,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:t}=e,n=t.facet(st),s=(n.override||t.languageDataAt("autocomplete",Qn(t)).map(O2)).map(l=>(this.active.find(d=>d.source==l)||new xt(l,this.active.some(d=>d.state!=0)?1:0)).update(e,n));s.length==this.active.length&&s.every((l,c)=>l==this.active[c])&&(s=this.active);let i=this.open;i&&e.docChanged&&(i=i.map(e.changes)),e.selection||s.some(l=>l.hasResult()&&e.changes.touchesRange(l.from,l.to))||!P2(s,this.active)?i=ns.build(s,t,this.id,i,n):i&&i.disabled&&!s.some(l=>l.state==1)&&(i=null),!i&&s.every(l=>l.state!=1)&&s.some(l=>l.hasResult())&&(s=s.map(l=>l.hasResult()?new xt(l.source,0):l));for(let l of e.effects)l.is(Gv)&&(i=i&&i.setSelected(l.value,this.id));return s==this.active&&i==this.open?this:new wc(s,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:x2}}function P2(r,e){if(r==e)return!0;for(let t=0,n=0;;){for(;t<r.length&&!r[t].hasResult;)t++;for(;n<e.length&&!e[n].hasResult;)n++;let o=t==r.length,s=n==e.length;if(o||s)return o==s;if(r[t++].result!=e[n++].result)return!1}}const x2={"aria-autocomplete":"list"};function VO(r,e){let t={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":r};return e>-1&&(t["aria-activedescendant"]=r+"-"+e),t}const _2=[];function Yh(r){return r.isUserEvent("input.type")?"input":r.isUserEvent("delete.backward")?"delete":null}class xt{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=Yh(e),o=this;n?o=o.handleUserEvent(e,n,t):e.docChanged?o=o.handleChange(e):e.selection&&o.state!=0&&(o=new xt(o.source,0));for(let s of e.effects)if(s.is(vc))o=new xt(o.source,1,s.value?Qn(e.state):-1);else if(s.is(li))o=new xt(o.source,0);else if(s.is(Hv))for(let i of s.value)i.source==o.source&&(o=i);return o}handleUserEvent(e,t,n){return t=="delete"||!n.activateOnTyping?this.map(e.changes):new xt(this.source,1)}handleChange(e){return e.changes.touchesRange(Qn(e.startState))?new xt(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new xt(this.source,this.state,e.mapPos(this.explicitPos))}}class ps extends xt{constructor(e,t,n,o,s){super(e,2,t),this.result=n,this.from=o,this.to=s}hasResult(){return!0}handleUserEvent(e,t,n){var o;let s=e.changes.mapPos(this.from),i=e.changes.mapPos(this.to,1),l=Qn(e.state);if((this.explicitPos<0?l<=s:l<this.from)||l>i||t=="delete"&&Qn(e.startState)==this.from)return new xt(this.source,t=="input"&&n.activateOnTyping?1:0);let c=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),d;return C2(this.result.validFor,e.state,s,i)?new ps(this.source,c,this.result,s,i):this.result.update&&(d=this.result.update(this.result,s,i,new zv(e.state,l,c>=0)))?new ps(this.source,c,d,d.from,(o=d.to)!==null&&o!==void 0?o:Qn(e.state)):new xt(this.source,1,c)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new xt(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new ps(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function C2(r,e,t,n){if(!r)return!1;let o=e.sliceDoc(t,n);return typeof r=="function"?r(o,t,n,e):Yv(r,!0).test(o)}const Hv=_e.define({map(r,e){return r.map(t=>t.map(e))}}),Gv=_e.define(),Rt=yr.define({create(){return wc.start()},update(r,e){return r.update(e)},provide:r=>[vv.from(r,e=>e.tooltip),re.contentAttributes.from(r,e=>e.attrs)]});function Fv(r,e){const t=e.completion.apply||e.completion.label;let n=r.state.field(Rt).active.find(o=>o.source==e.source);return n instanceof ps?(typeof t=="string"?r.dispatch(Object.assign(Object.assign({},g2(r.state,t,n.from,n.to)),{annotations:Lv.of(e.completion)})):t(r,e.completion,n.from,n.to),!0):!1}const T2=k2(Rt,Fv);function bl(r,e="option"){return t=>{let n=t.state.field(Rt,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp<t.state.facet(st).interactionDelay)return!1;let o=1,s;e=="page"&&(s=wv(t,n.open.tooltip))&&(o=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:i}=n.open.options,l=n.open.selected>-1?n.open.selected+o*(r?1:-1):r?0:i-1;return l<0?l=e=="page"?0:i-1:l>=i&&(l=e=="page"?i-1:0),t.dispatch({effects:Gv.of(l)}),!0}}const Q2=r=>{let e=r.state.field(Rt,!1);return r.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<r.state.facet(st).interactionDelay?!1:Fv(r,e.open.options[e.open.selected])},E2=r=>r.state.field(Rt,!1)?(r.dispatch({effects:vc.of(!0)}),!0):!1,N2=r=>{let e=r.state.field(Rt,!1);return!e||!e.active.some(t=>t.state!=0)?!1:(r.dispatch({effects:li.of(null)}),!0)};class A2{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const R2=50,V2=1e3,B2=Ft.fromClass(class{constructor(r){this.view=r,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of r.state.field(Rt).active)e.state==1&&this.startQuery(e)}update(r){let e=r.state.field(Rt);if(!r.selectionSet&&!r.docChanged&&r.startState.field(Rt)==e)return;let t=r.transactions.some(o=>(o.selection||o.docChanged)&&!Yh(o));for(let o=0;o<this.running.length;o++){let s=this.running[o];if(t||s.updates.length+r.transactions.length>R2&&Date.now()-s.time>V2){for(let i of s.context.abortListeners)try{i()}catch(l){pr(this.view.state,l)}s.context.abortListeners=null,this.running.splice(o--,1)}else s.updates.push(...r.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),r.transactions.some(o=>o.effects.some(s=>s.is(vc)))&&(this.pendingStart=!0);let n=this.pendingStart?50:r.state.facet(st).activateOnTypingDelay;if(this.debounceUpdate=e.active.some(o=>o.state==1&&!this.running.some(s=>s.active.source==o.source))?setTimeout(()=>this.startUpdate(),n):-1,this.composing!=0)for(let o of r.transactions)Yh(o)=="input"?this.composing=2:this.composing==2&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:r}=this.view,e=r.field(Rt);for(let t of e.active)t.state==1&&!this.running.some(n=>n.active.source==t.source)&&this.startQuery(t)}startQuery(r){let{state:e}=this.view,t=Qn(e),n=new zv(e,t,r.explicitPos==t),o=new A2(r,n);this.running.push(o),Promise.resolve(r.source(n)).then(s=>{o.context.aborted||(o.done=s||null,this.scheduleAccept())},s=>{this.view.dispatch({effects:li.of(null)}),pr(this.view.state,s)})}scheduleAccept(){this.running.every(r=>r.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(st).updateSyncTime))}accept(){var r;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],t=this.view.state.facet(st);for(let n=0;n<this.running.length;n++){let o=this.running[n];if(o.done===void 0)continue;if(this.running.splice(n--,1),o.done){let i=new ps(o.active.source,o.active.explicitPos,o.done,o.done.from,(r=o.done.to)!==null&&r!==void 0?r:Qn(o.updates.length?o.updates[0].startState:this.view.state));for(let l of o.updates)i=i.update(l,t);if(i.hasResult()){e.push(i);continue}}let s=this.view.state.field(Rt).active.find(i=>i.source==o.active.source);if(s&&s.state==1)if(o.done==null){let i=new xt(o.active.source,0);for(let l of o.updates)i=i.update(l,t);i.state!=1&&e.push(i)}else this.startQuery(s)}e.length&&this.view.dispatch({effects:Hv.of(e)})}},{eventHandlers:{blur(r){let e=this.view.state.field(Rt,!1);if(e&&e.tooltip&&this.view.state.facet(st).closeOnBlur){let t=e.open&&wv(this.view,e.open.tooltip);(!t||!t.dom.contains(r.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:li.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:vc.of(!1)}),20),this.composing=0}}}),Kv=re.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Z2{constructor(e,t,n,o){this.field=e,this.line=t,this.from=n,this.to=o}}class dp{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,ut.TrackDel),n=e.mapPos(this.to,1,ut.TrackDel);return t==null||n==null?null:new dp(this.field,t,n)}}class up{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],o=[t],s=e.doc.lineAt(t),i=/^\s*/.exec(s.text)[0];for(let c of this.lines){if(n.length){let d=i,u=/^\t*/.exec(c)[0].length;for(let h=0;h<u;h++)d+=e.facet(ld);o.push(t+d.length-u),c=d+c.slice(u)}n.push(c),t+=c.length+1}let l=this.fieldPositions.map(c=>new dp(c.field,o[c.line]+c.from,o[c.line]+c.to));return{text:n,ranges:l}}static parse(e){let t=[],n=[],o=[],s;for(let i of e.split(/\r\n?|\n/)){for(;s=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(i);){let l=s[1]?+s[1]:null,c=s[2]||s[3]||"",d=-1;for(let u=0;u<t.length;u++)(l!=null?t[u].seq==l:c&&t[u].name==c)&&(d=u);if(d<0){let u=0;for(;u<t.length&&(l==null||t[u].seq!=null&&t[u].seq<l);)u++;t.splice(u,0,{seq:l,name:c}),d=u;for(let h of o)h.field>=d&&h.field++}o.push(new Z2(d,n.length,s.index,s.index+c.length)),i=i.slice(0,s.index)+c+i.slice(s.index+s[0].length)}for(let l;l=/\\([{}])/.exec(i);){i=i.slice(0,l.index)+l[1]+i.slice(l.index+l[0].length);for(let c of o)c.line==n.length&&c.from>l.index&&(c.from--,c.to--)}n.push(i)}return new up(n,o)}}let I2=$e.widget({widget:new class extends Zs{toDOM(){let r=document.createElement("span");return r.className="cm-snippetFieldPosition",r}ignoreEvent(){return!1}}}),j2=$e.mark({class:"cm-snippetField"});class Ds{constructor(e,t){this.ranges=e,this.active=t,this.deco=$e.set(e.map(n=>(n.from==n.to?I2:j2).range(n.from,n.to)))}map(e){let t=[];for(let n of this.ranges){let o=n.map(e);if(!o)return null;t.push(o)}return new Ds(t,this.active)}selectionInsideField(e){return e.ranges.every(t=>this.ranges.some(n=>n.field==this.active&&n.from<=t.from&&n.to>=t.to))}}const Qi=_e.define({map(r,e){return r&&r.map(e)}}),D2=_e.define(),ci=yr.define({create(){return null},update(r,e){for(let t of e.effects){if(t.is(Qi))return t.value;if(t.is(D2)&&r)return new Ds(r.ranges,t.value)}return r&&e.docChanged&&(r=r.map(e.changes)),r&&e.selection&&!r.selectionInsideField(e.selection)&&(r=null),r},provide:r=>re.decorations.from(r,e=>e?e.deco:$e.none)});function hp(r,e){return Y.create(r.filter(t=>t.field==e).map(t=>Y.range(t.from,t.to)))}function M2(r){let e=up.parse(r);return(t,n,o,s)=>{let{text:i,ranges:l}=e.instantiate(t.state,o),c={changes:{from:o,to:s,insert:ke.of(i)},scrollIntoView:!0,annotations:n?[Lv.of(n),at.userEvent.of("input.complete")]:void 0};if(l.length&&(c.selection=hp(l,0)),l.some(d=>d.field>0)){let d=new Ds(l,0),u=c.effects=[Qi.of(d)];t.state.field(ci,!1)===void 0&&u.push(_e.appendConfig.of([ci,U2,Y2,Kv]))}t.dispatch(t.state.update(c))}}function Jv(r){return({state:e,dispatch:t})=>{let n=e.field(ci,!1);if(!n||r<0&&n.active==0)return!1;let o=n.active+r,s=r>0&&!n.ranges.some(i=>i.field==o+r);return t(e.update({selection:hp(n.ranges,o),effects:Qi.of(s?null:new Ds(n.ranges,o)),scrollIntoView:!0})),!0}}const q2=({state:r,dispatch:e})=>r.field(ci,!1)?(e(r.update({effects:Qi.of(null)})),!0):!1,X2=Jv(1),W2=Jv(-1),z2=[{key:"Tab",run:X2,shift:W2},{key:"Escape",run:q2}],BO=ee.define({combine(r){return r.length?r[0]:z2}}),U2=$i.highest(si.compute([BO],r=>r.facet(BO)));function $t(r,e){return Object.assign(Object.assign({},e),{apply:M2(r)})}const Y2=re.domEventHandlers({mousedown(r,e){let t=e.state.field(ci,!1),n;if(!t||(n=e.posAtCoords({x:r.clientX,y:r.clientY}))==null)return!1;let o=t.ranges.find(s=>s.from<=n&&s.to>=n);return!o||o.field==t.active?!1:(e.dispatch({selection:hp(t.ranges,o.field),effects:Qi.of(t.ranges.some(s=>s.field>o.field)?new Ds(t.ranges,o.field):null),scrollIntoView:!0}),!0)}}),di={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},uo=_e.define({map(r,e){let t=e.mapPos(r,-1,ut.TrackAfter);return t??void 0}}),fp=new class extends ko{};fp.startSide=1;fp.endSide=-1;const e1=yr.define({create(){return we.empty},update(r,e){if(r=r.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);r=r.update({filter:n=>n>=t.from&&n<=t.to})}for(let t of e.effects)t.is(uo)&&(r=r.update({add:[fp.range(t.value,t.value+1)]}));return r}});function L2(){return[G2,e1]}const Su="()[]{}<>";function t1(r){for(let e=0;e<Su.length;e+=2)if(Su.charCodeAt(e)==r)return Su.charAt(e+1);return ub(r<128?r:r+1)}function r1(r,e){return r.languageDataAt("closeBrackets",e)[0]||di}const H2=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),G2=re.inputHandler.of((r,e,t,n)=>{if((H2?r.composing:r.compositionStarted)||r.state.readOnly)return!1;let o=r.state.selection.main;if(n.length>2||n.length==2&&lr(dt(n,0))==1||e!=o.from||t!=o.to)return!1;let s=J2(r.state,n);return s?(r.dispatch(s),!0):!1}),F2=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let n=r1(r,r.selection.main.head).brackets||di.brackets,o=null,s=r.changeByRange(i=>{if(i.empty){let l=eT(r.doc,i.head);for(let c of n)if(c==l&&dd(r.doc,i.head)==t1(dt(c,0)))return{changes:{from:i.head-c.length,to:i.head+c.length},range:Y.cursor(i.head-c.length)}}return{range:o=i}});return o||e(r.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!o},K2=[{key:"Backspace",run:F2}];function J2(r,e){let t=r1(r,r.selection.main.head),n=t.brackets||di.brackets;for(let o of n){let s=t1(dt(o,0));if(e==o)return s==o?nT(r,o,n.indexOf(o+o+o)>-1,t):tT(r,o,s,t.before||di.before);if(e==s&&n1(r,r.selection.main.from))return rT(r,o,s)}return null}function n1(r,e){let t=!1;return r.field(e1).between(0,r.doc.length,n=>{n==e&&(t=!0)}),t}function dd(r,e){let t=r.sliceString(e,e+2);return t.slice(0,lr(dt(t,0)))}function eT(r,e){let t=r.sliceString(e-2,e);return lr(dt(t,0))==t.length?t:t.slice(1)}function tT(r,e,t,n){let o=null,s=r.changeByRange(i=>{if(!i.empty)return{changes:[{insert:e,from:i.from},{insert:t,from:i.to}],effects:uo.of(i.to+e.length),range:Y.range(i.anchor+e.length,i.head+e.length)};let l=dd(r.doc,i.head);return!l||/\s/.test(l)||n.indexOf(l)>-1?{changes:{insert:e+t,from:i.head},effects:uo.of(i.head+e.length),range:Y.cursor(i.head+e.length)}:{range:o=i}});return o?null:r.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function rT(r,e,t){let n=null,o=r.changeByRange(s=>s.empty&&dd(r.doc,s.head)==t?{changes:{from:s.head,to:s.head+t.length,insert:t},range:Y.cursor(s.head+t.length)}:n={range:s});return n?null:r.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function nT(r,e,t,n){let o=n.stringPrefixes||di.stringPrefixes,s=null,i=r.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:uo.of(l.to+e.length),range:Y.range(l.anchor+e.length,l.head+e.length)};let c=l.head,d=dd(r.doc,c),u;if(d==e){if(ZO(r,c))return{changes:{insert:e+e,from:c},effects:uo.of(c+e.length),range:Y.cursor(c+e.length)};if(n1(r,c)){let f=t&&r.sliceDoc(c,c+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:c,to:c+f.length,insert:f},range:Y.cursor(c+f.length)}}}else{if(t&&r.sliceDoc(c-2*e.length,c)==e+e&&(u=IO(r,c-2*e.length,o))>-1&&ZO(r,u))return{changes:{insert:e+e+e+e,from:c},effects:uo.of(c+e.length),range:Y.cursor(c+e.length)};if(r.charCategorizer(c)(d)!=Ut.Word&&IO(r,c,o)>-1&&!oT(r,c,e,o))return{changes:{insert:e+e,from:c},effects:uo.of(c+e.length),range:Y.cursor(c+e.length)}}return{range:s=l}});return s?null:r.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function ZO(r,e){let t=pt(r).resolveInner(e+1);return t.parent&&t.from==e}function oT(r,e,t,n){let o=pt(r).resolveInner(e,-1),s=n.reduce((i,l)=>Math.max(i,l.length),0);for(let i=0;i<5;i++){let l=r.sliceDoc(o.from,Math.min(o.to,o.from+t.length+s)),c=l.indexOf(t);if(!c||c>-1&&n.indexOf(l.slice(0,c))>-1){let u=o.firstChild;for(;u&&u.from==o.from&&u.to-u.from>t.length+c;){if(r.sliceDoc(u.to-t.length,u.to)==t)return!1;u=u.firstChild}return!0}let d=o.to==e&&o.parent;if(!d)break;o=d}return!1}function IO(r,e,t){let n=r.charCategorizer(e);if(n(r.sliceDoc(e-1,e))!=Ut.Word)return e;for(let o of t){let s=e-o.length;if(r.sliceDoc(s,e)==o&&n(r.sliceDoc(s-1,s))!=Ut.Word)return s}return-1}function sT(r={}){return[Rt,st.of(r),B2,aT,Kv]}const o1=[{key:"Ctrl-Space",run:E2},{key:"Escape",run:N2},{key:"ArrowDown",run:bl(!0)},{key:"ArrowUp",run:bl(!1)},{key:"PageDown",run:bl(!0,"page")},{key:"PageUp",run:bl(!1,"page")},{key:"Enter",run:Q2}],aT=$i.highest(si.computeN([st],r=>r.facet(st).defaultKeymap?[o1]:[]));function s1(r,e){let t=-1;return r.changeByRange(n=>{let o=[];for(let i=n.from;i<=n.to;){let l=r.doc.lineAt(i);l.number>t&&(n.empty||n.to>l.from)&&(e(l,o,n),t=l.number),i=l.to+1}let s=r.changes(o);return{changes:o,range:Y.range(s.mapPos(n.anchor,1),s.mapPos(n.head,1))}})}const iT=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(s1(r,(t,n)=>{n.push({from:t.from,insert:r.facet(ld)})}),{userEvent:"input.indent"})),!0),lT=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(s1(r,(t,n)=>{let o=/^\s*/.exec(t.text)[0];if(!o)return;let s=Gf(o,r.tabSize),i=0,l=Vv(r,Math.max(0,s-Rv(r)));for(;i<o.length&&i<l.length&&o.charCodeAt(i)==l.charCodeAt(i);)i++;n.push({from:t.from+i,to:t.from+o.length,insert:l.slice(i)})}),{userEvent:"delete.dedent"})),!0),cT={key:"Tab",run:iT,shift:lT};class kc{constructor(e,t,n,o,s,i,l,c,d,u=0,h){this.p=e,this.stack=t,this.state=n,this.reducePos=o,this.pos=s,this.score=i,this.buffer=l,this.bufferBase=c,this.curContext=d,this.lookAhead=u,this.parent=h}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let o=e.parser.context;return new kc(e,[],t,n,n,0,[],0,o?new jO(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,o=e&65535,{parser:s}=this.p,i=s.dynamicPrecedence(o);if(i&&(this.score+=i),n==0){this.pushState(s.getGoto(this.state,o,!0),this.reducePos),o<s.minRepeatTerm&&this.storeNode(o,this.reducePos,this.reducePos,4,!0),this.reduceContext(o,this.reducePos);return}let l=this.stack.length-(n-1)*3-(e&262144?6:0),c=l?this.stack[l-2]:this.p.ranges[0].from,d=this.reducePos-c;d>=2e3&&!(!((t=this.p.parser.nodeSet.types[o])===null||t===void 0)&&t.isAnonymous)&&(c==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=d):this.p.lastBigReductionSize<d&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=c,this.p.lastBigReductionSize=d));let u=l?this.stack[l-1]:0,h=this.bufferBase+this.buffer.length-u;if(o<s.minRepeatTerm||e&131072){let f=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(o,c,f,h+4,!0)}if(e&262144)this.state=this.stack[l];else{let f=this.stack[l-3];this.state=s.getGoto(f,o,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(o,c)}storeNode(e,t,n,o=4,s=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let i=this,l=this.buffer.length;if(l==0&&i.parent&&(l=i.bufferBase-i.parent.bufferBase,i=i.parent),l>0&&i.buffer[l-4]==0&&i.buffer[l-1]>-1){if(t==n)return;if(i.buffer[l-2]>=t){i.buffer[l-2]=n;return}}}if(!s||this.pos==n)this.buffer.push(e,t,n,o);else{let i=this.buffer.length;if(i>0&&this.buffer[i-4]!=0)for(;i>0&&this.buffer[i-2]>n;)this.buffer[i]=this.buffer[i-4],this.buffer[i+1]=this.buffer[i-3],this.buffer[i+2]=this.buffer[i-2],this.buffer[i+3]=this.buffer[i-1],i-=4,o>4&&(o-=4);this.buffer[i]=e,this.buffer[i+1]=t,this.buffer[i+2]=n,this.buffer[i+3]=o}}shift(e,t,n,o){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=o,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,o,4);else{let s=e,{parser:i}=this.p;(o>this.pos||t<=i.maxNode)&&(this.pos=o,i.stateFlag(s,1)||(this.reducePos=o)),this.pushState(s,n),this.shiftContext(t,n),t<=i.maxNode&&this.buffer.push(t,n,o,4)}}apply(e,t,n,o){e&65536?this.reduce(e):this.shift(e,t,n,o)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let o=this.pos;this.reducePos=this.pos=o+e.length,this.pushState(t,o),this.buffer.push(n,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),o=e.bufferBase+t;for(;e&&o==e.bufferBase;)e=e.parent;return new kc(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,o,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new dT(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(n==0)return!1;if(!(n&65536))return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let o=[];for(let s=0,i;s<t.length;s+=2)(i=t[s+1])!=this.state&&this.p.parser.hasAction(i,e)&&o.push(t[s],i);if(this.stack.length<120)for(let s=0;o.length<8&&s<t.length;s+=2){let i=t[s+1];o.some((l,c)=>c&1&&l==i)||o.push(t[s],i)}t=o}let n=[];for(let o=0;o<t.length&&n.length<4;o+=2){let s=t[o+1];if(s==this.state)continue;let i=this.split();i.pushState(s,this.pos),i.storeNode(0,i.pos,i.pos,4,!0),i.shiftContext(t[o],this.pos),i.reducePos=this.pos,i.score-=200,n.push(i)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(t&65536))return!1;if(!e.validAction(this.state,t)){let n=t>>19,o=t&65535,s=this.stack.length-n*3;if(s<0||e.getGoto(this.stack[s],o,!1)<0){let i=this.findForcedReduction();if(i==null)return!1;t=i}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(o,s)=>{if(!t.includes(o))return t.push(o),e.allActions(o,i=>{if(!(i&393216))if(i&65536){let l=(i>>19)-s;if(l>1){let c=i&65535,d=this.stack.length-l*3;if(d>=0&&e.getGoto(this.stack[d],c,!1)>=0)return l<<19|65536|c}}else{let l=n(i,s+1);if(l!=null)return l}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new jO(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class jO{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class dT{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e&65535,n=e>>19;n==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(n-1)*3;let o=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=o}}class Sc{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new Sc(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new Sc(this.stack,this.pos,this.index)}}function Na(r,e=Uint16Array){if(typeof r!="string")return r;let t=null;for(let n=0,o=0;n<r.length;){let s=0;for(;;){let i=r.charCodeAt(n++),l=!1;if(i==126){s=65535;break}i>=92&&i--,i>=34&&i--;let c=i-32;if(c>=46&&(c-=46,l=!0),s+=c,l)break;s*=46}t?t[o++]=s:t=new e(s)}return t}class Yl{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const DO=new Yl;class uT{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=DO,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,o=this.rangeIndex,s=this.pos+e;for(;s<n.from;){if(!o)return null;let i=this.ranges[--o];s-=n.from-i.to,n=i}for(;t<0?s>n.to:s>=n.to;){if(o==this.ranges.length-1)return null;let i=this.ranges[++o];s+=i.from-n.to,n=i}return s}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,o;if(t>=0&&t<this.chunk.length)n=this.pos+e,o=this.chunk.charCodeAt(t);else{let s=this.resolveOffset(e,1);if(s==null)return-1;if(n=s,n>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)o=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let i=this.rangeIndex,l=this.range;for(;l.to<=n;)l=this.ranges[++i];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>l.to&&(this.chunk2=this.chunk2.slice(0,l.to-n)),o=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),o}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(n==null||n<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=DO,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let o of this.ranges){if(o.from>=t)break;o.to>e&&(n+=this.input.read(Math.max(o.from,e),Math.min(o.to,t)))}return n}}class ms{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;a1(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}ms.prototype.contextual=ms.prototype.fallback=ms.prototype.extend=!1;class $c{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data=typeof e=="string"?Na(e):e}token(e,t){let n=e.pos,o=0;for(;;){let s=e.next<0,i=e.resolveOffset(1,1);if(a1(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(s||o++,i==null)break;e.reset(i,e.token)}o&&(e.reset(n,e.token),e.acceptToken(this.elseToken,o))}}$c.prototype.contextual=ms.prototype.fallback=ms.prototype.extend=!1;class kt{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function a1(r,e,t,n,o,s){let i=0,l=1<<n,{dialect:c}=t.p.parser;e:for(;l&r[i];){let d=r[i+1];for(let p=i+3;p<d;p+=2)if((r[p+1]&l)>0){let m=r[p];if(c.allows(m)&&(e.token.value==-1||e.token.value==m||hT(m,e.token.value,o,s))){e.acceptToken(m);break}}let u=e.next,h=0,f=r[i+2];if(e.next<0&&f>h&&r[d+f*3-3]==65535){i=r[d+f*3-1];continue e}for(;h<f;){let p=h+f>>1,m=d+p+(p<<1),g=r[m],O=r[m+1]||65536;if(u<g)f=p;else if(u>=O)h=p+1;else{i=r[m+2],e.advance();continue e}}break}}function MO(r,e,t){for(let n=e,o;(o=r[n])!=65535;n++)if(o==t)return n-e;return-1}function hT(r,e,t,n){let o=MO(t,n,e);return o<0||MO(t,n,r)<o}const Et=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let $u=null;function qO(r,e,t){let n=r.cursor(Qe.IncludeAnonymous);for(n.moveTo(e);;)if(!(t<0?n.childBefore(e):n.childAfter(e)))for(;;){if((t<0?n.to<e:n.from>e)&&!n.type.isError)return t<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(r.length,Math.max(n.from+1,e+25));if(t<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return t<0?0:r.length}}class fT{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?qO(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?qO(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],o=this.index[t];if(o==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=n.children[o],i=this.start[t]+n.positions[o];if(i>e)return this.nextStart=i,null;if(s instanceof Me){if(i==e){if(i<this.safeFrom)return null;let l=i+s.length;if(l<=this.safeTo){let c=s.prop(fe.lookAhead);if(!c||l+c<this.fragment.to)return s}}this.index[t]++,i+s.length>=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(i),this.index.push(0))}else this.index[t]++,this.nextStart=i+s.length}}}class pT{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(n=>new Yl)}getActions(e){let t=0,n=null,{parser:o}=e.p,{tokenizers:s}=o,i=o.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,c=0;for(let d=0;d<s.length;d++){if(!(1<<d&i))continue;let u=s[d],h=this.tokens[d];if(!(n&&!u.fallback)&&((u.contextual||h.start!=e.pos||h.mask!=i||h.context!=l)&&(this.updateCachedToken(h,u,e),h.mask=i,h.context=l),h.lookAhead>h.end+25&&(c=Math.max(h.lookAhead,c)),h.value!=0)){let f=t;if(h.extended>-1&&(t=this.addActions(e,h.extended,h.end,t)),t=this.addActions(e,h.value,h.end,t),!u.extend&&(n=h,t>f))break}}for(;this.actions.length>t;)this.actions.pop();return c&&e.setLookAhead(c),!n&&e.pos==this.stream.end&&(n=new Yl,n.value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Yl,{pos:n,p:o}=e;return t.start=n,t.end=Math.min(n+1,o.stream.end),t.value=n==o.stream.end?o.parser.eofTerm:0,t}updateCachedToken(e,t,n){let o=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(o,e),n),e.value>-1){let{parser:s}=n.p;for(let i=0;i<s.specialized.length;i++)if(s.specialized[i]==e.value){let l=s.specializers[i](this.stream.read(e.start,e.end),n);if(l>=0&&n.p.parser.dialect.allows(l>>1)){l&1?e.extended=l>>1:e.value=l>>1;break}}}else e.value=0,e.end=this.stream.clipPos(o+1)}putAction(e,t,n,o){for(let s=0;s<o;s+=3)if(this.actions[s]==e)return o;return this.actions[o++]=e,this.actions[o++]=t,this.actions[o++]=n,o}addActions(e,t,n,o){let{state:s}=e,{parser:i}=e.p,{data:l}=i;for(let c=0;c<2;c++)for(let d=i.stateSlot(s,c?2:1);;d+=3){if(l[d]==65535)if(l[d+1]==1)d=Yr(l,d+2);else{o==0&&l[d+1]==2&&(o=this.putAction(Yr(l,d+2),t,n,o));break}l[d]==t&&(o=this.putAction(Yr(l,d+1),t,n,o))}return o}}class mT{constructor(e,t,n,o){this.parser=e,this.input=t,this.ranges=o,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new uT(t,o),this.tokens=new pT(e,this.stream),this.topTerm=e.top[1];let{from:s}=o[0];this.stacks=[kc.start(this,e.top[0],s)],this.fragments=n.length&&this.stream.end-s>e.bufferLength*4?new fT(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,t=this.minStackPos,n=this.stacks=[],o,s;if(this.bigReductionCount>300&&e.length==1){let[i]=e;for(;i.forceReduce()&&i.stack.length&&i.stack[i.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let i=0;i<e.length;i++){let l=e[i];for(;;){if(this.tokens.mainToken=null,l.pos>t)n.push(l);else{if(this.advanceStack(l,n,e))continue;{o||(o=[],s=[]),o.push(l);let c=this.tokens.getMainToken(l);s.push(c.value,c.end)}}break}}if(!n.length){let i=o&&OT(o);if(i)return Et&&console.log("Finish with "+this.stackID(i)),this.stackToTree(i);if(this.parser.strict)throw Et&&o&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&o){let i=this.stoppedAt!=null&&o[0].pos>this.stoppedAt?o[0]:this.runRecovery(o,s,n);if(i)return Et&&console.log("Force-finish "+this.stackID(i)),this.stackToTree(i.forceAll())}if(this.recovering){let i=this.recovering==1?1:this.recovering*3;if(n.length>i)for(n.sort((l,c)=>c.score-l.score);n.length>i;)n.pop();n.some(l=>l.reducePos>t)&&this.recovering--}else if(n.length>1){e:for(let i=0;i<n.length-1;i++){let l=n[i];for(let c=i+1;c<n.length;c++){let d=n[c];if(l.sameState(d)||l.buffer.length>500&&d.buffer.length>500)if((l.score-d.score||l.buffer.length-d.buffer.length)>0)n.splice(c--,1);else{n.splice(i--,1);continue e}}}n.length>12&&n.splice(12,n.length-12)}this.minStackPos=n[0].pos;for(let i=1;i<n.length;i++)n[i].pos<this.minStackPos&&(this.minStackPos=n[i].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let o=e.pos,{parser:s}=this,i=Et?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&o>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let d=e.curContext&&e.curContext.tracker.strict,u=d?e.curContext.hash:0;for(let h=this.fragments.nodeAt(o);h;){let f=this.parser.nodeSet.types[h.type.id]==h.type?s.getGoto(e.state,h.type.id):-1;if(f>-1&&h.length&&(!d||(h.prop(fe.contextHash)||0)==u))return e.useNode(h,f),Et&&console.log(i+this.stackID(e)+` (via reuse of ${s.getName(h.type.id)})`),!0;if(!(h instanceof Me)||h.children.length==0||h.positions[0]>0)break;let p=h.children[0];if(p instanceof Me&&h.positions[0]==0)h=p;else break}}let l=s.stateSlot(e.state,4);if(l>0)return e.reduce(l),Et&&console.log(i+this.stackID(e)+` (via always-reduce ${s.getName(l&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let c=this.tokens.getActions(e);for(let d=0;d<c.length;){let u=c[d++],h=c[d++],f=c[d++],p=d==c.length||!n,m=p?e:e.split(),g=this.tokens.mainToken;if(m.apply(u,h,g?g.start:m.pos,f),Et&&console.log(i+this.stackID(m)+` (via ${u&65536?`reduce of ${s.getName(u&65535)}`:"shift"} for ${s.getName(h)} @ ${o}${m==e?"":", split"})`),p)return!0;m.pos>o?t.push(m):n.push(m)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return XO(e,t),!0}}runRecovery(e,t,n){let o=null,s=!1;for(let i=0;i<e.length;i++){let l=e[i],c=t[i<<1],d=t[(i<<1)+1],u=Et?this.stackID(l)+" -> ":"";if(l.deadEnd&&(s||(s=!0,l.restart(),Et&&console.log(u+this.stackID(l)+" (restarted)"),this.advanceFully(l,n))))continue;let h=l.split(),f=u;for(let p=0;h.forceReduce()&&p<10&&(Et&&console.log(f+this.stackID(h)+" (via force-reduce)"),!this.advanceFully(h,n));p++)Et&&(f=this.stackID(h)+" -> ");for(let p of l.recoverByInsert(c))Et&&console.log(u+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,n);this.stream.end>l.pos?(d==l.pos&&(d++,c=0),l.recoverByDelete(c,d),Et&&console.log(u+this.stackID(l)+` (via recover-delete ${this.parser.getName(c)})`),XO(l,n)):(!o||o.score<l.score)&&(o=l)}return o}stackToTree(e){return e.close(),Me.build({buffer:Sc.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=($u||($u=new WeakMap)).get(e);return t||$u.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function XO(r,e){for(let t=0;t<e.length;t++){let n=e[t];if(n.pos==r.pos&&n.sameState(r)){e[t].score<r.score&&(e[t]=r);return}}e.push(r)}class gT{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||this.disabled[e]==0}}const Pu=r=>r;class pp{constructor(e){this.start=e.start,this.shift=e.shift||Pu,this.reduce=e.reduce||Pu,this.reuse=e.reuse||Pu,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class In extends Cv{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let l=0;l<e.repeatNodeCount;l++)t.push("");let n=Object.keys(e.topRules).map(l=>e.topRules[l][1]),o=[];for(let l=0;l<t.length;l++)o.push([]);function s(l,c,d){o[l].push([c,c.deserialize(String(d))])}if(e.nodeProps)for(let l of e.nodeProps){let c=l[0];typeof c=="string"&&(c=fe[c]);for(let d=1;d<l.length;){let u=l[d++];if(u>=0)s(u,c,l[d++]);else{let h=l[d+-u];for(let f=-u;f>0;f--)s(l[d++],c,h);d++}}}this.nodeSet=new op(t.map((l,c)=>wt.define({name:c>=this.minRepeatTerm?void 0:l,id:c,props:o[c],top:n.indexOf(c)>-1,error:c==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(c)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Sv;let i=Na(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;l<this.specializerSpecs.length;l++)this.specialized[l]=this.specializerSpecs[l].term;this.specializers=this.specializerSpecs.map(WO),this.states=Na(e.states,Uint32Array),this.data=Na(e.stateData),this.goto=Na(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(l=>typeof l=="number"?new ms(i,l):l),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let o=new mT(this,e,t,n);for(let s of this.wrappers)o=s(o,e,t,n);return o}getGoto(e,t,n=!1){let o=this.goto;if(t>=o[0])return-1;for(let s=o[t+1];;){let i=o[s++],l=i&1,c=o[s++];if(l&&n)return c;for(let d=s+(i>>1);s<d;s++)if(o[s]==e)return c;if(l)return-1}}hasAction(e,t){let n=this.data;for(let o=0;o<2;o++)for(let s=this.stateSlot(e,o?2:1),i;;s+=3){if((i=n[s])==65535)if(n[s+1]==1)i=n[s=Yr(n,s+2)];else{if(n[s+1]==2)return Yr(n,s+2);break}if(i==t||i==0)return Yr(n,s+1)}return 0}stateSlot(e,t){return this.states[e*6+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,n=>n==t?!0:null)}allActions(e,t){let n=this.stateSlot(e,4),o=n?t(n):void 0;for(let s=this.stateSlot(e,1);o==null;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=Yr(this.data,s+2);else break;o=t(Yr(this.data,s+1))}return o}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(this.data[n]==65535)if(this.data[n+1]==1)n=Yr(this.data,n+2);else break;if(!(this.data[n+2]&1)){let o=this.data[n+1];t.some((s,i)=>i&1&&s==o)||t.push(this.data[n],o)}}return t}configure(e){let t=Object.assign(Object.create(In.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(n=>{let o=e.tokenizers.find(s=>s.from==n);return o?o.to:n})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,o)=>{let s=e.specializers.find(l=>l.from==n.external);if(!s)return n;let i=Object.assign(Object.assign({},n),{external:s.to});return t.specializers[o]=WO(i),i})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),e.bufferLength!=null&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return t==null?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let s of e.split(" ")){let i=t.indexOf(s);i>=0&&(n[i]=!0)}let o=null;for(let s=0;s<t.length;s++)if(!n[s])for(let i=this.dialects[t[s]],l;(l=this.data[i++])!=65535;)(o||(o=new Uint8Array(this.maxTerm+1)))[l]=1;return new gT(e,n,o)}static deserialize(e){return new In(e)}}function Yr(r,e){return r[e]|r[e+1]<<16}function OT(r){let e=null;for(let t of r){let n=t.p.stoppedAt;(t.pos==t.p.stream.end||n!=null&&t.pos>n)&&t.p.parser.stateFlag(t.state,2)&&(!e||e.score<t.score)&&(e=t)}return e}function WO(r){if(r.external){let e=r.extend?1:0;return(t,n)=>r.external(t,n)<<1|e}return r.get}const yT=99,zO=1,bT=100,vT=101,UO=2,i1=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],wT=58,kT=40,l1=95,ST=91,Ll=45,$T=46,PT=35,xT=37,_T=38,CT=92,TT=10;function ui(r){return r>=65&&r<=90||r>=97&&r<=122||r>=161}function c1(r){return r>=48&&r<=57}const QT=new kt((r,e)=>{for(let t=!1,n=0,o=0;;o++){let{next:s}=r;if(ui(s)||s==Ll||s==l1||t&&c1(s))!t&&(s!=Ll||o>0)&&(t=!0),n===o&&s==Ll&&n++,r.advance();else if(s==CT&&r.peek(1)!=TT)r.advance(),r.next>-1&&r.advance(),t=!0;else{t&&r.acceptToken(s==kT?bT:n==2&&e.canShift(UO)?UO:vT);break}}}),ET=new kt(r=>{if(i1.includes(r.peek(-1))){let{next:e}=r;(ui(e)||e==l1||e==PT||e==$T||e==ST||e==wT&&ui(r.peek(1))||e==Ll||e==_T)&&r.acceptToken(yT)}}),NT=new kt(r=>{if(!i1.includes(r.peek(-1))){let{next:e}=r;if(e==xT&&(r.advance(),r.acceptToken(zO)),ui(e)){do r.advance();while(ui(r.next)||c1(r.next));r.acceptToken(zO)}}}),AT=Is({"AtKeyword import charset namespace keyframes media supports":_.definitionKeyword,"from to selector":_.keyword,NamespaceName:_.namespace,KeyframeName:_.labelName,KeyframeRangeName:_.operatorKeyword,TagName:_.tagName,ClassName:_.className,PseudoClassName:_.constant(_.className),IdName:_.labelName,"FeatureName PropertyName":_.propertyName,AttributeName:_.attributeName,NumberLiteral:_.number,KeywordQuery:_.keyword,UnaryQueryOp:_.operatorKeyword,"CallTag ValueName":_.atom,VariableName:_.variableName,Callee:_.operatorKeyword,Unit:_.unit,"UniversalSelector NestingSelector":_.definitionOperator,MatchOp:_.compareOperator,"ChildOp SiblingOp, LogicOp":_.logicOperator,BinOp:_.arithmeticOperator,Important:_.modifier,Comment:_.blockComment,ColorLiteral:_.color,"ParenthesizedContent StringLiteral":_.string,":":_.punctuation,"PseudoOp #":_.derefOperator,"; ,":_.separator,"( )":_.paren,"[ ]":_.squareBracket,"{ }":_.brace}),RT={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},VT={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},BT={__proto__:null,not:132,only:132},ZT=In.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#DoO,jQWO'#DrOOQO'#Eu'#EuO)OQWO,5:`O,oQpO,5:bOOQS'#Dz'#DzO,wQWO,5:dO,|Q[O,5:dOOQ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oClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName , PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",maxTerm:117,nodeProps:[["isolate",-2,3,24,""],["openedBy",17,"(",32,"[",50,"{"],["closedBy",18,")",33,"]",51,"}"]],propSources:[AT],skippedNodes:[0,3,87],repeatNodeCount:11,tokenData:"J^~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Ab![!]B]!]!^CX!^!_$}!_!`Cj!`!aC{!a!b$}!b!cDw!c!}$}!}#OFa#O#P$}#P#QFr#Q#R6d#R#T$}#T#UGT#U#c$}#c#dHf#d#o$}#o#pH{#p#q6d#q#rI^#r#sIo#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}$JT$JU%u$JU$KV$}$KV$KW%u$KW&FU$}&FU&FV%u&FV;'S$};'S;=`JW<%lO$}`%QSOy%^z;'S%^;'S;=`%o<%lO%^`%cSo`Oy%^z;'S%^;'S;=`%o<%lO%^`%rP;=`<%l%^~%zh#Z~OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%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O%^`JZP;=`<%l$}",tokenizers:[ET,NT,QT,1,2,3,4,new $c("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:r=>RT[r]||-1},{term:58,get:r=>VT[r]||-1},{term:101,get:r=>BT[r]||-1}],tokenPrec:1200});let xu=null;function _u(){if(!xu&&typeof document=="object"&&document.body){let{style:r}=document.body,e=[],t=new Set;for(let n in r)n!="cssText"&&n!="cssFloat"&&typeof r[n]=="string"&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,o=>"-"+o.toLowerCase())),t.has(n)||(e.push(n),t.add(n)));xu=e.sort().map(n=>({type:"property",label:n}))}return xu||[]}const YO=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(r=>({type:"class",label:r})),LO=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(r=>({type:"keyword",label:r})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","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","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(r=>({type:"constant",label:r}))),IT=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(r=>({type:"type",label:r})),un=/^(\w[\w-]*|-\w[\w-]*|)$/,jT=/^-(-[\w-]*)?$/;function DT(r,e){var t;if((r.name=="("||r.type.isError)&&(r=r.parent||r),r.name!="ArgList")return!1;let n=(t=r.parent)===null||t===void 0?void 0:t.firstChild;return(n==null?void 0:n.name)!="Callee"?!1:e.sliceString(n.from,n.to)=="var"}const HO=new _v,MT=["Declaration"];function qT(r){for(let e=r;;){if(e.type.isTop)return e;if(!(e=e.parent))return r}}function d1(r,e,t){if(e.to-e.from>4096){let n=HO.get(e);if(n)return n;let o=[],s=new Set,i=e.cursor(Qe.IncludeAnonymous);if(i.firstChild())do for(let l of d1(r,i.node,t))s.has(l.label)||(s.add(l.label),o.push(l));while(i.nextSibling());return HO.set(e,o),o}else{let n=[],o=new Set;return e.cursor().iterate(s=>{var i;if(t(s)&&s.matchContext(MT)&&((i=s.node.nextSibling)===null||i===void 0?void 0:i.name)==":"){let l=r.sliceString(s.from,s.to);o.has(l)||(o.add(l),n.push({label:l,type:"variable"}))}}),n}}const XT=r=>e=>{let{state:t,pos:n}=e,o=pt(t).resolveInner(n,-1),s=o.type.isError&&o.from==o.to-1&&t.doc.sliceString(o.from,o.to)=="-";if(o.name=="PropertyName"||(s||o.name=="TagName")&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{from:o.from,options:_u(),validFor:un};if(o.name=="ValueName")return{from:o.from,options:LO,validFor:un};if(o.name=="PseudoClassName")return{from:o.from,options:YO,validFor:un};if(r(o)||(e.explicit||s)&&DT(o,t.doc))return{from:r(o)||s?o.from:n,options:d1(t.doc,qT(o),r),validFor:jT};if(o.name=="TagName"){for(let{parent:c}=o;c;c=c.parent)if(c.name=="Block")return{from:o.from,options:_u(),validFor:un};return{from:o.from,options:IT,validFor:un}}if(!e.explicit)return null;let i=o.resolve(n),l=i.childBefore(n);return l&&l.name==":"&&i.name=="PseudoClassSelector"?{from:n,options:YO,validFor:un}:l&&l.name==":"&&i.name=="Declaration"||i.name=="ArgList"?{from:n,options:LO,validFor:un}:i.name=="Block"||i.name=="Styles"?{from:n,options:_u(),validFor:un}:null},WT=XT(r=>r.name=="VariableName"),Pc=Zn.define({name:"css",parser:ZT.configure({props:[js.add({Declaration:fs()}),Ci.add({"Block KeyframeList":cd})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function u1(){return new _i(Pc,Pc.data.of({autocomplete:WT}))}const zT=54,UT=1,YT=55,LT=2,HT=56,GT=3,GO=4,FT=5,xc=6,h1=7,f1=8,p1=9,m1=10,KT=11,JT=12,eQ=13,Cu=57,tQ=14,FO=58,g1=20,rQ=22,O1=23,nQ=24,Lh=26,y1=27,oQ=28,sQ=31,aQ=34,iQ=36,lQ=37,cQ=0,dQ=1,uQ={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},hQ={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},KO={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function fQ(r){return r==45||r==46||r==58||r>=65&&r<=90||r==95||r>=97&&r<=122||r>=161}function b1(r){return r==9||r==10||r==13||r==32}let JO=null,e0=null,t0=0;function Hh(r,e){let t=r.pos+e;if(t0==t&&e0==r)return JO;let n=r.peek(e);for(;b1(n);)n=r.peek(++e);let o="";for(;fQ(n);)o+=String.fromCharCode(n),n=r.peek(++e);return e0=r,t0=t,JO=o?o.toLowerCase():n==pQ||n==mQ?void 0:null}const v1=60,_c=62,mp=47,pQ=63,mQ=33,gQ=45;function r0(r,e){this.name=r,this.parent=e,this.hash=e?e.hash:0;for(let t=0;t<r.length;t++)this.hash+=(this.hash<<4)+r.charCodeAt(t)+(r.charCodeAt(t)<<8)}const OQ=[xc,m1,h1,f1,p1],yQ=new pp({start:null,shift(r,e,t,n){return OQ.indexOf(e)>-1?new r0(Hh(n,1)||"",r):r},reduce(r,e){return e==g1&&r?r.parent:r},reuse(r,e,t,n){let o=e.type.id;return o==xc||o==iQ?new r0(Hh(n,1)||"",r):r},hash(r){return r?r.hash:0},strict:!1}),bQ=new kt((r,e)=>{if(r.next!=v1){r.next<0&&e.context&&r.acceptToken(Cu);return}r.advance();let t=r.next==mp;t&&r.advance();let n=Hh(r,0);if(n===void 0)return;if(!n)return r.acceptToken(t?tQ:xc);let o=e.context?e.context.name:null;if(t){if(n==o)return r.acceptToken(KT);if(o&&hQ[o])return r.acceptToken(Cu,-2);if(e.dialectEnabled(cQ))return r.acceptToken(JT);for(let s=e.context;s;s=s.parent)if(s.name==n)return;r.acceptToken(eQ)}else{if(n=="script")return r.acceptToken(h1);if(n=="style")return r.acceptToken(f1);if(n=="textarea")return r.acceptToken(p1);if(uQ.hasOwnProperty(n))return r.acceptToken(m1);o&&KO[o]&&KO[o][n]?r.acceptToken(Cu,-1):r.acceptToken(xc)}},{contextual:!0}),vQ=new kt(r=>{for(let e=0,t=0;;t++){if(r.next<0){t&&r.acceptToken(FO);break}if(r.next==gQ)e++;else if(r.next==_c&&e>=2){t>=3&&r.acceptToken(FO,-2);break}else e=0;r.advance()}});function wQ(r){for(;r;r=r.parent)if(r.name=="svg"||r.name=="math")return!0;return!1}const kQ=new kt((r,e)=>{if(r.next==mp&&r.peek(1)==_c){let t=e.dialectEnabled(dQ)||wQ(e.context);r.acceptToken(t?FT:GO,2)}else r.next==_c&&r.acceptToken(GO,1)});function gp(r,e,t){let n=2+r.length;return new kt(o=>{for(let s=0,i=0,l=0;;l++){if(o.next<0){l&&o.acceptToken(e);break}if(s==0&&o.next==v1||s==1&&o.next==mp||s>=2&&s<n&&o.next==r.charCodeAt(s-2))s++,i++;else if((s==2||s==n)&&b1(o.next))i++;else if(s==n&&o.next==_c){l>i?o.acceptToken(e,-i):o.acceptToken(t,-(i-2));break}else if((o.next==10||o.next==13)&&l){o.acceptToken(e,1);break}else s=i=0;o.advance()}})}const SQ=gp("script",zT,UT),$Q=gp("style",YT,LT),PQ=gp("textarea",HT,GT),xQ=Is({"Text RawText":_.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":_.angleBracket,TagName:_.tagName,"MismatchedCloseTag/TagName":[_.tagName,_.invalid],AttributeName:_.attributeName,"AttributeValue UnquotedAttributeValue":_.attributeValue,Is:_.definitionOperator,"EntityReference CharacterReference":_.character,Comment:_.blockComment,ProcessingInst:_.processingInstruction,DoctypeDecl:_.documentMeta}),_Q=In.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|O,59hO*fQ#|O,59kOOO`1G/X1G/XO*kO7[O'#CvO*|OMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/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R!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:yQ,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[xQ],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R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Q),s=n.getChild(Lh)||n.getChild(y1);o&&(t[e.read(o.from,o.to)]=s?s.type.id==Lh?e.read(s.from+1,s.to-1):e.read(s.from,s.to):"")}return t}function n0(r,e){let t=r.getChild(rQ);return t?e.read(t.from,t.to):" "}function Tu(r,e,t){let n;for(let o of t)if(!o.attrs||o.attrs(n||(n=w1(r.node.parent.firstChild,e))))return{parser:o.parser};return null}function k1(r=[],e=[]){let t=[],n=[],o=[],s=[];for(let l of r)(l.tag=="script"?t:l.tag=="style"?n:l.tag=="textarea"?o:s).push(l);let i=e.length?Object.create(null):null;for(let l of e)(i[l.name]||(i[l.name]=[])).push(l);return PC((l,c)=>{let d=l.type.id;if(d==oQ)return Tu(l,c,t);if(d==sQ)return Tu(l,c,n);if(d==aQ)return Tu(l,c,o);if(d==g1&&s.length){let u=l.node,h=u.firstChild,f=h&&n0(h,c),p;if(f){for(let m of s)if(m.tag==f&&(!m.attrs||m.attrs(p||(p=w1(u,c))))){let g=u.lastChild,O=g.type.id==lQ?g.from:u.to;if(O>h.to)return{parser:m.parser,overlay:[{from:h.to,to:O}]}}}}if(i&&d==O1){let u=l.node,h;if(h=u.firstChild){let f=i[c.read(h.from,h.to)];if(f)for(let p of f){if(p.tagName&&p.tagName!=n0(u.parent,c))continue;let m=u.lastChild;if(m.type.id==Lh){let g=m.from+1,O=m.lastChild,y=m.to-(O&&O.isError?0:1);if(y>g)return{parser:p.parser,overlay:[{from:g,to:y}]}}else if(m.type.id==y1)return{parser:p.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const CQ=309,o0=1,TQ=2,QQ=3,EQ=310,NQ=312,AQ=313,RQ=4,VQ=5,BQ=0,Gh=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],S1=125,ZQ=59,Fh=47,IQ=42,jQ=43,DQ=45,MQ=60,qQ=44,XQ=new pp({start:!1,shift(r,e){return e==RQ||e==VQ||e==NQ?r:e==AQ},strict:!1}),WQ=new kt((r,e)=>{let{next:t}=r;(t==S1||t==-1||e.context)&&r.acceptToken(EQ)},{contextual:!0,fallback:!0}),zQ=new kt((r,e)=>{let{next:t}=r,n;Gh.indexOf(t)>-1||t==Fh&&((n=r.peek(1))==Fh||n==IQ)||t!=S1&&t!=ZQ&&t!=-1&&!e.context&&r.acceptToken(CQ)},{contextual:!0}),UQ=new kt((r,e)=>{let{next:t}=r;if((t==jQ||t==DQ)&&(r.advance(),t==r.next)){r.advance();let n=!e.context&&e.canShift(o0);r.acceptToken(n?o0:TQ)}},{contextual:!0});function Qu(r,e){return r>=65&&r<=90||r>=97&&r<=122||r==95||r>=192||!e&&r>=48&&r<=57}const YQ=new kt((r,e)=>{if(r.next!=MQ||!e.dialectEnabled(BQ)||(r.advance(),r.next==Fh))return;let t=0;for(;Gh.indexOf(r.next)>-1;)r.advance(),t++;if(Qu(r.next,!0)){for(r.advance(),t++;Qu(r.next,!1);)r.advance(),t++;for(;Gh.indexOf(r.next)>-1;)r.advance(),t++;if(r.next==qQ)return;for(let n=0;;n++){if(n==7){if(!Qu(r.next,!0))return;break}if(r.next!="extends".charCodeAt(n))break;r.advance(),t++}}r.acceptToken(QQ,-t)}),LQ=Is({"get set async static":_.modifier,"for while do if else switch try catch finally return throw break continue default case":_.controlKeyword,"in of await yield void typeof delete instanceof":_.operatorKeyword,"let var const using function class extends":_.definitionKeyword,"import export from":_.moduleKeyword,"with debugger as new":_.keyword,TemplateString:_.special(_.string),super:_.atom,BooleanLiteral:_.bool,this:_.self,null:_.null,Star:_.modifier,VariableName:_.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":_.function(_.variableName),VariableDefinition:_.definition(_.variableName),Label:_.labelName,PropertyName:_.propertyName,PrivatePropertyName:_.special(_.propertyName),"CallExpression/MemberExpression/PropertyName":_.function(_.propertyName),"FunctionDeclaration/VariableDefinition":_.function(_.definition(_.variableName)),"ClassDeclaration/VariableDefinition":_.definition(_.className),PropertyDefinition:_.definition(_.propertyName),PrivatePropertyDefinition:_.definition(_.special(_.propertyName)),UpdateOp:_.updateOperator,"LineComment Hashbang":_.lineComment,BlockComment:_.blockComment,Number:_.number,String:_.string,Escape:_.escape,ArithOp:_.arithmeticOperator,LogicOp:_.logicOperator,BitOp:_.bitwiseOperator,CompareOp:_.compareOperator,RegExp:_.regexp,Equals:_.definitionOperator,Arrow:_.function(_.punctuation),": Spread":_.punctuation,"( )":_.paren,"[ ]":_.squareBracket,"{ }":_.brace,"InterpolationStart InterpolationEnd":_.special(_.brace),".":_.derefOperator,", ;":_.separator,"@":_.meta,TypeName:_.typeName,TypeDefinition:_.definition(_.typeName),"type enum interface implements namespace module declare":_.definitionKeyword,"abstract global Privacy readonly override":_.modifier,"is keyof unique infer":_.operatorKeyword,JSXAttributeValue:_.attributeValue,JSXText:_.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":_.angleBracket,"JSXIdentifier JSXNameSpacedName":_.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":_.attributeName,"JSXBuiltin/JSXIdentifier":_.standard(_.tagName)}),HQ={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},GQ={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},FQ={__proto__:null,"<":143},KQ=In.deserialize({version:14,states:"$<UO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ08SO'#ChO+RO!bO'#CiO+aO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#h#k%b(b(c(d+T.O.P.Q.S2w2x6dQ1q,dQ2X,zQ6Q2PQ8`6RT;w'S+RT#`W%eS#_W%eS(O#V(WS(T#Y+QS-P'S+RT-s'}-xT'X!e%fQ$kfR)s$pT)h$k)iR3r.zT*X$x*ZR*a${Q0g+]Q2z.ZQ5`1^Q6h3OQ7z5cQ8k6gQ9Y7yQ9l8jQ9}9[Q:V9nQ:[:OR:_:WnqOXst!Z#c%j&m&o&p&r,h,m1w1zQ&g!VR,]&dtmOXst!U!V!Z#c%j&d&m&o&p&r,h,m1w1zR,d&jT%im,dR1W+|R,[&bQ&Q|R+t&RR+j%{T&k!W&nT&l!W&nT1y,m1z",nodeNames:"⚠ ArithOp ArithOp JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:XQ,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[LQ],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ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Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(CS$Duk$f&j(Op(R!b'u(;d$Y#t'{&;d([!LYOY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[zQ,UQ,YQ,2,3,4,5,6,7,8,9,10,11,12,13,WQ,new $c("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOt~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(Z~~",141,332),new $c("j~RQYZXz{^~^O'x~~aP!P!Qd~iO'y~~",25,315)],topRules:{Script:[0,6],SingleExpression:[1,269],SingleClassItem:[2,270]},dialects:{jsx:0,ts:14614},dynamicPrecedences:{69:1,79:1,81:1,165:1,193:1},specialized:[{term:319,get:r=>HQ[r]||-1},{term:334,get:r=>GQ[r]||-1},{term:70,get:r=>FQ[r]||-1}],tokenPrec:14638}),$1=[$t("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),$t("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),$t("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),$t("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),$t("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),$t(`try {
63
- \${}
64
- } catch (\${error}) {
65
- \${}
66
- }`,{label:"try",detail:"/ catch block",type:"keyword"}),$t("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),$t(`if (\${}) {
67
- \${}
68
- } else {
69
- \${}
70
- }`,{label:"if",detail:"/ else block",type:"keyword"}),$t(`class \${name} {
71
- constructor(\${params}) {
72
- \${}
73
- }
74
- }`,{label:"class",detail:"definition",type:"keyword"}),$t('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),$t('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],JQ=$1.concat([$t("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),$t("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),$t("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),s0=new _v,P1=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function va(r){return(e,t)=>{let n=e.node.getChild("VariableDefinition");return n&&t(n,r),!0}}const eE=["FunctionDeclaration"],tE={FunctionDeclaration:va("function"),ClassDeclaration:va("class"),ClassExpression:()=>!0,EnumDeclaration:va("constant"),TypeAliasDeclaration:va("type"),NamespaceDeclaration:va("namespace"),VariableDefinition(r,e){r.matchContext(eE)||e(r,"variable")},TypeDefinition(r,e){e(r,"type")},__proto__:null};function x1(r,e){let t=s0.get(e);if(t)return t;let n=[],o=!0;function s(i,l){let c=r.sliceString(i.from,i.to);n.push({label:c,type:l})}return e.cursor(Qe.IncludeAnonymous).iterate(i=>{if(o)o=!1;else if(i.name){let l=tE[i.name];if(l&&l(i,s)||P1.has(i.name))return!1}else if(i.to-i.from>8192){for(let l of x1(r,i.node))n.push(l);return!1}}),s0.set(e,n),n}const a0=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,_1=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function rE(r){let e=pt(r.state).resolveInner(r.pos,-1);if(_1.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&a0.test(r.state.sliceDoc(e.from,e.to));if(!t&&!r.explicit)return null;let n=[];for(let o=e;o;o=o.parent)P1.has(o.name)&&(n=n.concat(x1(r.state.doc,o)));return{options:n,from:t?e.from:r.pos,validFor:a0}}const Br=Zn.define({name:"javascript",parser:KQ.configure({props:[js.add({IfStatement:fs({except:/^\s*({|else\b)/}),TryStatement:fs({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:GC,SwitchBody:r=>{let e=r.textAfter,t=/^\s*\}/.test(e),n=/^\s*(case|default)\b/.test(e);return r.baseIndent+(t?0:n?1:2)*r.unit},Block:Xh({closing:"}"}),ArrowFunction:r=>r.baseIndent+r.unit,"TemplateString BlockComment":()=>null,"Statement Property":fs({except:/^{/}),JSXElement(r){let e=/^\s*<\//.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},JSXEscape(r){let e=/\s*\}/.test(r.textAfter);return r.lineIndent(r.node.from)+(e?0:r.unit)},"JSXOpenTag JSXSelfClosingTag"(r){return r.column(r.node.from)+r.unit}}),Ci.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":cd,BlockComment(r){return{from:r.from+2,to:r.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),C1={test:r=>/^JSX/.test(r.name),facet:Nv({commentTokens:{block:{open:"{/*",close:"*/}"}}})},T1=Br.configure({dialect:"ts"},"typescript"),Q1=Br.configure({dialect:"jsx",props:[lp.add(r=>r.isTop?[C1]:void 0)]}),E1=Br.configure({dialect:"jsx ts",props:[lp.add(r=>r.isTop?[C1]:void 0)]},"typescript");let N1=r=>({label:r,type:"keyword"});const A1="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(N1),nE=A1.concat(["declare","implements","private","protected","public"].map(N1));function oE(r={}){let e=r.jsx?r.typescript?E1:Q1:r.typescript?T1:Br,t=r.typescript?JQ.concat(nE):$1.concat(A1);return new _i(e,[Br.data.of({autocomplete:m2(_1,Uv(t))}),Br.data.of({autocomplete:rE}),r.jsx?iE:[]])}function sE(r){for(;;){if(r.name=="JSXOpenTag"||r.name=="JSXSelfClosingTag"||r.name=="JSXFragmentTag")return r;if(r.name=="JSXEscape"||!r.parent)return null;r=r.parent}}function i0(r,e,t=r.length){for(let n=e==null?void 0:e.firstChild;n;n=n.nextSibling)if(n.name=="JSXIdentifier"||n.name=="JSXBuiltin"||n.name=="JSXNamespacedName"||n.name=="JSXMemberExpression")return r.sliceString(n.from,Math.min(n.to,t));return""}const aE=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),iE=re.inputHandler.of((r,e,t,n,o)=>{if((aE?r.composing:r.compositionStarted)||r.state.readOnly||e!=t||n!=">"&&n!="/"||!Br.isActiveAt(r.state,e,-1))return!1;let s=o(),{state:i}=s,l=i.changeByRange(c=>{var d;let{head:u}=c,h=pt(i).resolveInner(u-1,-1),f;if(h.name=="JSXStartTag"&&(h=h.parent),!(i.doc.sliceString(u-1,u)!=n||h.name=="JSXAttributeValue"&&h.to>u)){if(n==">"&&h.name=="JSXFragmentTag")return{range:c,changes:{from:u,insert:"</>"}};if(n=="/"&&h.name=="JSXStartCloseTag"){let p=h.parent,m=p.parent;if(m&&p.from==u-2&&((f=i0(i.doc,m.firstChild,u))||((d=m.firstChild)===null||d===void 0?void 0:d.name)=="JSXFragmentTag")){let g=`${f}>`;return{range:Y.cursor(u+g.length,-1),changes:{from:u,insert:g}}}}else if(n==">"){let p=sE(h);if(p&&p.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(i.doc.sliceString(u,u+2))&&(f=i0(i.doc,p,u)))return{range:c,changes:{from:u,insert:`</${f}>`}}}}return{range:c}});return l.changes.empty?!1:(r.dispatch([s,i.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),wa=["_blank","_self","_top","_parent"],Eu=["ascii","utf-8","utf-16","latin1","latin1"],Nu=["get","post","put","delete"],Au=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Nt=["true","false"],G={},lE={a:{attrs:{href:null,ping:null,type:null,media:null,target:wa,hreflang:null}},abbr:G,address:G,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:G,aside:G,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:G,base:{attrs:{href:null,target:wa}},bdi:G,bdo:G,blockquote:{attrs:{cite:null}},body:G,br:G,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Au,formmethod:Nu,formnovalidate:["novalidate"],formtarget:wa,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:G,center:G,cite:G,code:G,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:G,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:G,div:G,dl:G,dt:G,em:G,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:G,figure:G,footer:G,form:{attrs:{action:null,name:null,"accept-charset":Eu,autocomplete:["on","off"],enctype:Au,method:Nu,novalidate:["novalidate"],target:wa}},h1:G,h2:G,h3:G,h4:G,h5:G,h6:G,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:G,hgroup:G,hr:G,html:{attrs:{manifest:null}},i:G,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Au,formmethod:Nu,formnovalidate:["novalidate"],formtarget:wa,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:G,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:G,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:G,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Eu,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:G,noscript:G,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:G,param:{attrs:{name:null,value:null}},pre:G,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:G,rt:G,ruby:G,samp:G,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Eu}},section:G,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:G,source:{attrs:{src:null,type:null,media:null}},span:G,strong:G,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:G,summary:G,sup:G,table:G,tbody:G,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:G,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:G,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:G,time:{attrs:{datetime:null}},title:G,tr:G,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:G,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:G},R1={accesskey:null,class:null,contenteditable:Nt,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Nt,autocorrect:Nt,autocapitalize:Nt,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Nt,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Nt,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Nt,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Nt,"aria-hidden":Nt,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Nt,"aria-multiselectable":Nt,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Nt,"aria-relevant":null,"aria-required":Nt,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},V1="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(r=>"on"+r);for(let r of V1)R1[r]=null;let Cc=class{constructor(e,t){this.tags=Object.assign(Object.assign({},lE),e),this.globalAttrs=Object.assign(Object.assign({},R1),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};Cc.default=new Cc;function xs(r,e,t=r.length){if(!e)return"";let n=e.firstChild,o=n&&n.getChild("TagName");return o?r.sliceString(o.from,Math.min(o.to,t)):""}function _s(r,e=!1){for(;r;r=r.parent)if(r.name=="Element")if(e)e=!1;else return r;return null}function B1(r,e,t){let n=t.tags[xs(r,_s(e))];return(n==null?void 0:n.children)||t.allTags}function Op(r,e){let t=[];for(let n=_s(e);n&&!n.type.isTop;n=_s(n.parent)){let o=xs(r,n);if(o&&n.lastChild.name=="CloseTag")break;o&&t.indexOf(o)<0&&(e.name=="EndTag"||e.from>=n.firstChild.to)&&t.push(o)}return t}const Z1=/^[:\-\.\w\u00b7-\uffff]*$/;function l0(r,e,t,n,o){let s=/\s*>/.test(r.sliceDoc(o,o+5))?"":">",i=_s(t,!0);return{from:n,to:o,options:B1(r.doc,i,e).map(l=>({label:l,type:"type"})).concat(Op(r.doc,t).map((l,c)=>({label:"/"+l,apply:"/"+l+s,type:"type",boost:99-c}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function c0(r,e,t,n){let o=/\s*>/.test(r.sliceDoc(n,n+5))?"":">";return{from:t,to:n,options:Op(r.doc,e).map((s,i)=>({label:s,apply:s+o,type:"type",boost:99-i})),validFor:Z1}}function cE(r,e,t,n){let o=[],s=0;for(let i of B1(r.doc,t,e))o.push({label:"<"+i,type:"type"});for(let i of Op(r.doc,t))o.push({label:"</"+i+">",type:"type",boost:99-s++});return{from:n,to:n,options:o,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function dE(r,e,t,n,o){let s=_s(t),i=s?e.tags[xs(r.doc,s)]:null,l=i&&i.attrs?Object.keys(i.attrs):[],c=i&&i.globalAttrs===!1?l:l.length?l.concat(e.globalAttrNames):e.globalAttrNames;return{from:n,to:o,options:c.map(d=>({label:d,type:"property"})),validFor:Z1}}function uE(r,e,t,n,o){var s;let i=(s=t.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),l=[],c;if(i){let d=r.sliceDoc(i.from,i.to),u=e.globalAttrs[d];if(!u){let h=_s(t),f=h?e.tags[xs(r.doc,h)]:null;u=(f==null?void 0:f.attrs)&&f.attrs[d]}if(u){let h=r.sliceDoc(n,o).toLowerCase(),f='"',p='"';/^['"]/.test(h)?(c=h[0]=='"'?/^[^"]*$/:/^[^']*$/,f="",p=r.sliceDoc(o,o+1)==h[0]?"":h[0],h=h.slice(1),n++):c=/^[^\s<>='"]*$/;for(let m of u)l.push({label:m,apply:f+m+p,type:"constant"})}}return{from:n,to:o,options:l,validFor:c}}function hE(r,e){let{state:t,pos:n}=e,o=pt(t).resolveInner(n,-1),s=o.resolve(n);for(let i=n,l;s==o&&(l=o.childBefore(i));){let c=l.lastChild;if(!c||!c.type.isError||c.from<c.to)break;s=o=l,i=c.from}return o.name=="TagName"?o.parent&&/CloseTag$/.test(o.parent.name)?c0(t,o,o.from,n):l0(t,r,o,o.from,n):o.name=="StartTag"?l0(t,r,o,n,n):o.name=="StartCloseTag"||o.name=="IncompleteCloseTag"?c0(t,o,n,n):o.name=="OpenTag"||o.name=="SelfClosingTag"||o.name=="AttributeName"?dE(t,r,o,o.name=="AttributeName"?o.from:n,n):o.name=="Is"||o.name=="AttributeValue"||o.name=="UnquotedAttributeValue"?uE(t,r,o,o.name=="Is"?n:o.from,n):e.explicit&&(s.name=="Element"||s.name=="Text"||s.name=="Document")?cE(t,r,o,n):null}function fE(r){let{extraTags:e,extraGlobalAttributes:t}=r,n=t||e?new Cc(e,t):Cc.default;return o=>hE(n,o)}const pE=Br.parser.configure({top:"SingleExpression"}),I1=[{tag:"script",attrs:r=>r.type=="text/typescript"||r.lang=="ts",parser:T1.parser},{tag:"script",attrs:r=>r.type=="text/babel"||r.type=="text/jsx",parser:Q1.parser},{tag:"script",attrs:r=>r.type=="text/typescript-jsx",parser:E1.parser},{tag:"script",attrs(r){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(r.type)},parser:pE},{tag:"script",attrs(r){return!r.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(r.type)},parser:Br.parser},{tag:"style",attrs(r){return(!r.lang||r.lang=="css")&&(!r.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(r.type))},parser:Pc.parser}],j1=[{name:"style",parser:Pc.parser.configure({top:"Styles"})}].concat(V1.map(r=>({name:r,parser:Br.parser}))),D1=Zn.define({name:"html",parser:_Q.configure({props:[js.add({Element(r){let e=/^(\s*)(<\/)?/.exec(r.textAfter);return r.node.to<=r.pos+e[0].length?r.continue():r.lineIndent(r.node.from)+(e[2]?0:r.unit)},"OpenTag CloseTag SelfClosingTag"(r){return r.column(r.node.from)+r.unit},Document(r){if(r.pos+/\s*/.exec(r.textAfter)[0].length<r.node.to)return r.continue();let e=null,t;for(let n=r.node;;){let o=n.lastChild;if(!o||o.name!="Element"||o.to!=n.to)break;e=n=o}return e&&!((t=e.lastChild)&&(t.name=="CloseTag"||t.name=="SelfClosingTag"))?r.lineIndent(e.from)+r.unit:null}}),Ci.add({Element(r){let e=r.firstChild,t=r.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:t.name=="CloseTag"?t.from:r.to}}}),Wv.add({"OpenTag CloseTag":r=>r.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),Hl=D1.configure({wrap:k1(I1,j1)});function mE(r={}){let e="",t;r.matchClosingTags===!1&&(e="noMatch"),r.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(r.nestedLanguages&&r.nestedLanguages.length||r.nestedAttributes&&r.nestedAttributes.length)&&(t=k1((r.nestedLanguages||[]).concat(I1),(r.nestedAttributes||[]).concat(j1)));let n=t?D1.configure({wrap:t,dialect:e}):e?Hl.configure({dialect:e}):Hl;return new _i(n,[Hl.data.of({autocomplete:fE(r)}),r.autoCloseTags!==!1?gE:[],oE().support,u1().support])}const d0=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),gE=re.inputHandler.of((r,e,t,n,o)=>{if(r.composing||r.state.readOnly||e!=t||n!=">"&&n!="/"||!Hl.isActiveAt(r.state,e,-1))return!1;let s=o(),{state:i}=s,l=i.changeByRange(c=>{var d,u,h;let f=i.doc.sliceString(c.from-1,c.to)==n,{head:p}=c,m=pt(i).resolveInner(p-1,-1),g;if((m.name=="TagName"||m.name=="StartTag")&&(m=m.parent),f&&n==">"&&m.name=="OpenTag"){if(((u=(d=m.parent)===null||d===void 0?void 0:d.lastChild)===null||u===void 0?void 0:u.name)!="CloseTag"&&(g=xs(i.doc,m.parent,p))&&!d0.has(g)){let O=p+(i.doc.sliceString(p,p+1)===">"?1:0),y=`</${g}>`;return{range:c,changes:{from:p,to:O,insert:y}}}}else if(f&&n=="/"&&m.name=="IncompleteCloseTag"){let O=m.parent;if(m.from==p-2&&((h=O.lastChild)===null||h===void 0?void 0:h.name)!="CloseTag"&&(g=xs(i.doc,O,p))&&!d0.has(g)){let y=p+(i.doc.sliceString(p,p+1)===">"?1:0),b=`${g}>`;return{range:Y.cursor(p+b.length,-1),changes:{from:p,to:y,insert:b}}}}return{range:c}});return l.changes.empty?!1:(r.dispatch([s,i.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),OE=Is({String:_.string,Number:_.number,"True False":_.bool,PropertyName:_.propertyName,Null:_.null,",":_.separator,"[ ]":_.squareBracket,"{ }":_.brace}),yE=In.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[OE],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),bE=Zn.define({name:"json",parser:yE.configure({props:[js.add({Object:fs({except:/^\s*\}/}),Array:fs({except:/^\s*\]/})}),Ci.add({"Object Array":cd})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function vE(){return new _i(bE)}const Go=63,u0=64,wE=1,kE=2,M1=3,SE=4,q1=5,$E=6,PE=7,X1=65,xE=66,_E=8,CE=9,TE=10,QE=11,EE=12,W1=13,NE=19,AE=20,RE=29,VE=33,BE=34,ZE=47,IE=0,yp=1,Kh=2,hi=3,Jh=4,Gc=class Gc{constructor(e,t,n){this.parent=e,this.depth=t,this.type=n,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+n}};tu(Gc,"top",new Gc(null,-1,IE));let ro=Gc;function Xa(r,e){for(let t=0,n=e-r.pos-1;;n--,t++){let o=r.peek(n);if(on(o)||o==-1)return t}}function ef(r){return r==32||r==9}function on(r){return r==10||r==13}function z1(r){return ef(r)||on(r)}function ho(r){return r<0||z1(r)}const jE=new pp({start:ro.top,reduce(r,e){return r.type==hi&&(e==AE||e==BE)?r.parent:r},shift(r,e,t,n){if(e==M1)return new ro(r,Xa(n,n.pos),yp);if(e==X1||e==q1)return new ro(r,Xa(n,n.pos),Kh);if(e==Go)return r.parent;if(e==NE||e==VE)return new ro(r,0,hi);if(e==W1&&r.type==Jh)return r.parent;if(e==ZE){let o=/[1-9]/.exec(n.read(n.pos,t.pos));if(o)return new ro(r,r.depth+ +o[0],Jh)}return r},hash(r){return r.hash}});function Cs(r,e,t=0){return r.peek(t)==e&&r.peek(t+1)==e&&r.peek(t+2)==e&&ho(r.peek(t+3))}const DE=new kt((r,e)=>{if(r.next==-1&&e.canShift(u0))return r.acceptToken(u0);let t=r.peek(-1);if((on(t)||t<0)&&e.context.type!=hi){if(Cs(r,45))if(e.canShift(Go))r.acceptToken(Go);else return r.acceptToken(wE,3);if(Cs(r,46))if(e.canShift(Go))r.acceptToken(Go);else return r.acceptToken(kE,3);let n=0;for(;r.next==32;)n++,r.advance();(n<e.context.depth||n==e.context.depth&&e.context.type==yp&&(r.next!=45||!ho(r.peek(1))))&&r.next!=-1&&!on(r.next)&&r.next!=35&&r.acceptToken(Go,-n)}},{contextual:!0}),ME=new kt((r,e)=>{if(e.context.type==hi){r.next==63&&(r.advance(),ho(r.next)&&r.acceptToken(PE));return}if(r.next==45)r.advance(),ho(r.next)&&r.acceptToken(e.context.type==yp&&e.context.depth==Xa(r,r.pos-1)?SE:M1);else if(r.next==63)r.advance(),ho(r.next)&&r.acceptToken(e.context.type==Kh&&e.context.depth==Xa(r,r.pos-1)?$E:q1);else{let t=r.pos;for(;;)if(ef(r.next)){if(r.pos==t)return;r.advance()}else if(r.next==33)U1(r);else if(r.next==38)tf(r);else if(r.next==42){tf(r);break}else if(r.next==39||r.next==34){if(bp(r,!0))break;return}else if(r.next==91||r.next==123){if(!XE(r))return;break}else{Y1(r,!0,!1,0);break}for(;ef(r.next);)r.advance();if(r.next==58){if(r.pos==t&&e.canShift(RE))return;let n=r.peek(1);ho(n)&&r.acceptTokenTo(e.context.type==Kh&&e.context.depth==Xa(r,t)?xE:X1,t)}}},{contextual:!0});function qE(r){return r>32&&r<127&&r!=34&&r!=37&&r!=44&&r!=60&&r!=62&&r!=92&&r!=94&&r!=96&&r!=123&&r!=124&&r!=125}function h0(r){return r>=48&&r<=57||r>=97&&r<=102||r>=65&&r<=70}function f0(r,e){return r.next==37?(r.advance(),h0(r.next)&&r.advance(),h0(r.next)&&r.advance(),!0):qE(r.next)||e&&r.next==44?(r.advance(),!0):!1}function U1(r){if(r.advance(),r.next==60){for(r.advance();;)if(!f0(r,!0)){r.next==62&&r.advance();break}}else for(;f0(r,!1););}function tf(r){for(r.advance();!ho(r.next)&&Tc(r.tag)!="f";)r.advance()}function bp(r,e){let t=r.next,n=!1,o=r.pos;for(r.advance();;){let s=r.next;if(s<0)break;if(r.advance(),s==t)if(s==39)if(r.next==39)r.advance();else break;else break;else if(s==92&&t==34)r.next>=0&&r.advance();else if(on(s)){if(e)return!1;n=!0}else if(e&&r.pos>=o+1024)return!1}return!n}function XE(r){for(let e=[],t=r.pos+1024;;)if(r.next==91||r.next==123)e.push(r.next),r.advance();else if(r.next==39||r.next==34){if(!bp(r,!0))return!1}else if(r.next==93||r.next==125){if(e[e.length-1]!=r.next-2)return!1;if(e.pop(),r.advance(),!e.length)return!0}else{if(r.next<0||r.pos>t||on(r.next))return!1;r.advance()}}const WE="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";function Tc(r){return r<33?"u":r>125?"s":WE[r-33]}function Ru(r,e){let t=Tc(r);return t!="u"&&!(e&&t=="f")}function Y1(r,e,t,n){if(Tc(r.next)=="s"||(r.next==63||r.next==58||r.next==45)&&Ru(r.peek(1),t))r.advance();else return!1;let o=r.pos;for(;;){let s=r.next,i=0,l=n+1;for(;z1(s);){if(on(s)){if(e)return!1;l=0}else l++;s=r.peek(++i)}if(!(s>=0&&(s==58?Ru(r.peek(i+1),t):s==35?r.peek(i-1)!=32:Ru(s,t)))||!t&&l<=n||l==0&&!t&&(Cs(r,45,i)||Cs(r,46,i)))break;if(e&&Tc(s)=="f")return!1;for(let d=i;d>=0;d--)r.advance();if(e&&r.pos>o+1024)return!1}return!0}const zE=new kt((r,e)=>{if(r.next==33)U1(r),r.acceptToken(EE);else if(r.next==38||r.next==42){let t=r.next==38?TE:QE;tf(r),r.acceptToken(t)}else r.next==39||r.next==34?(bp(r,!1),r.acceptToken(CE)):Y1(r,!1,e.context.type==hi,e.context.depth)&&r.acceptToken(_E)}),UE=new kt((r,e)=>{let t=e.context.type==Jh?e.context.depth:-1,n=r.pos;e:for(;;){let o=0,s=r.next;for(;s==32;)s=r.peek(++o);if(!o&&(Cs(r,45,o)||Cs(r,46,o))||!on(s)&&(t<0&&(t=Math.max(e.context.depth+1,o)),o<t))break;for(;;){if(r.next<0)break e;let i=on(r.next);if(r.advance(),i)continue e;n=r.pos}}r.acceptTokenTo(W1,n)}),YE=Is({DirectiveName:_.keyword,DirectiveContent:_.attributeValue,"DirectiveEnd DocEnd":_.meta,QuotedLiteral:_.string,BlockLiteralHeader:_.special(_.string),BlockLiteralContent:_.content,Literal:_.content,"Key/Literal Key/QuotedLiteral":_.definition(_.propertyName),"Anchor Alias":_.labelName,Tag:_.typeName,Comment:_.lineComment,": , -":_.separator,"?":_.punctuation,"[ ]":_.squareBracket,"{ }":_.brace}),LE=In.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO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^$`O!b$_O!g$_O~OU|a!a|a!b|a!d|a~P#|O!b$cO!g$cO~O",goto:",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged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UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[DE,ME,zE,UE,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),HE=Zn.define({name:"yaml",parser:LE.configure({props:[js.add({Stream:r=>{for(let e=r.node.resolve(r.pos,-1);e&&e.to>=r.pos;e=e.parent){if(e.name=="BlockLiteralContent"&&e.from<e.to)return r.baseIndentFor(e);if(e.name=="BlockLiteral")return r.baseIndentFor(e)+r.unit;if(e.name=="BlockSequence"||e.name=="BlockMapping")return r.column(e.from,1);if(e.name=="QuotedLiteral")return null;if(e.name=="Literal"){let t=r.column(e.from,1);if(t==r.lineIndent(e.from,1))return t;if(e.to>r.pos)return null}}return null},FlowMapping:Xh({closing:"}"}),FlowSequence:Xh({closing:"]"})}),Ci.add({"FlowMapping FlowSequence":cd,"BlockSequence BlockMapping BlockLiteral":(r,e)=>({from:e.doc.lineAt(r.from).to,to:r.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function GE(){return new _i(HE)}var FE=r=>{var{theme:e,settings:t={},styles:n=[]}=r,o={".cm-gutters":{}},s={};t.background&&(s.backgroundColor=t.background),t.backgroundImage&&(s.backgroundImage=t.backgroundImage),t.foreground&&(s.color=t.foreground),(t.background||t.foreground)&&(o["&"]=s),t.fontFamily&&(o["&.cm-editor .cm-scroller"]={fontFamily:t.fontFamily}),t.gutterBackground&&(o[".cm-gutters"].backgroundColor=t.gutterBackground),t.gutterForeground&&(o[".cm-gutters"].color=t.gutterForeground),t.gutterBorder&&(o[".cm-gutters"].borderRightColor=t.gutterBorder),t.caret&&(o[".cm-content"]={caretColor:t.caret},o[".cm-cursor, .cm-dropCursor"]={borderLeftColor:t.caret});var i={};t.gutterActiveForeground&&(i.color=t.gutterActiveForeground),t.lineHighlight&&(o[".cm-activeLine"]={backgroundColor:t.lineHighlight},i.backgroundColor=t.lineHighlight),o[".cm-activeLineGutter"]=i,t.selection&&(o["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:t.selection+" !important"}),t.selectionMatch&&(o["& .cm-selectionMatch"]={backgroundColor:t.selectionMatch});var l=re.theme(o,{dark:e==="dark"}),c=Ti.define(n),d=[l,Dv(c)];return d};const KE=FE({theme:"light",settings:{background:"var(--scalar-background-2)",foreground:"var(--scalar-color-1)",caret:"var(--scalar-color-1)",selection:"rgba(151, 183, 205, 0.2)",selectionMatch:"#e3dcce",gutterBackground:"var(--scalar-background-2)",gutterForeground:"var(--scalar-color-3)",gutterBorder:"transparent",lineHighlight:"var(--scalar-background-3)",fontFamily:"var(--scalar-font-code)"},styles:[{tag:[_.standard(_.tagName),_.tagName],color:"var(--scalar-color-purple)"},{tag:[_.comment],color:"var(--scalar-color-3)"},{tag:[_.className],color:"var(--scalar-color-orange)"},{tag:[_.variableName,_.propertyName,_.attributeName],color:"var(--scalar-color-1)"},{tag:[_.operator],color:"var(--scalar-color-2)"},{tag:[_.keyword,_.typeName,_.typeOperator],color:"var(--scalar-color-green)"},{tag:[_.string],color:"var(--scalar-color-blue)"},{tag:[_.bracket,_.regexp,_.meta],color:"var(--scalar-color-3)"},{tag:[_.number],color:"var(--scalar-color-blue)"},{tag:[_.name,_.quote],color:"var(--scalar-color-3)"},{tag:[_.heading],color:"var(--scalar-color-3)",fontWeight:"bold"},{tag:[_.emphasis],color:"var(--scalar-color-3)",fontStyle:"italic"},{tag:[_.deleted],color:"var(--scalar-color-3)",backgroundColor:"transparent"},{tag:[_.atom,_.bool,_.special(_.variableName)],color:"var(--scalar-color-3)"},{tag:[_.url,_.escape,_.regexp,_.link],color:"var(--scalar-color-1)"},{tag:_.link,textDecoration:"underline"},{tag:_.strikethrough,textDecoration:"line-through"},{tag:_.invalid,color:"var(--scalar-color-3)"}]}),p0=new yv({regexp:/(\{[^}]+\})/g,decoration:()=>$e.mark({attributes:{class:"api-client-url-variable"}})}),JE=()=>Ft.fromClass(class{constructor(r){tu(this,"variables");this.variables=p0.createDeco(r)}update(r){this.variables=p0.updateDeco(r,this.variables)}},{decorations:r=>r.variables,provide:r=>re.atomicRanges.of(e=>{var t;return((t=e.plugin(r))==null?void 0:t.variables)||$e.none})}),Xo=r=>"provider"in r&&!!a.toValue(r.provider),e5={key:"Mod-a",run:r=>(r.dispatch({selection:{anchor:0,head:r.state.doc.length},scrollIntoView:!1}),!0)},t5=r=>{const e=a.ref(null);a.watch(r.codeMirrorRef,()=>{var s;(s=e.value)==null||s.destroy(),t()},{immediate:!0}),a.onBeforeUnmount(()=>{var s;return(s=e.value)==null?void 0:s.destroy()});function t(){if(r.codeMirrorRef.value){const s=Xo(r)?a.toValue(r.provider):null,i=g0({...n.value,provider:s});e.value=new re({parent:r.codeMirrorRef.value,extensions:i}),Xo(r)||o(a.toValue(r.content))}}const n=a.computed(()=>({onChange:r.onChange,onBlur:r.onBlur,onFocus:r.onFocus,language:a.toValue(r.language),classes:a.toValue(r.classes),readOnly:a.toValue(r.readOnly),lineNumbers:a.toValue(r.lineNumbers),withVariables:a.toValue(r.withVariables),disableEnter:a.toValue(r.withVariables),withoutTheme:a.toValue(r.withoutTheme),additionalExtensions:a.toValue(r.extensions)}));a.watch(()=>Xo(r)?a.toValue(r.provider):null,()=>{var s;Xo(r)&&((s=e.value)==null||s.destroy(),t())}),a.watch(n,()=>{if(e.value){const s=Xo(r)?a.toValue(r.provider):null,i=g0({...n.value,provider:s});e.value.dispatch({effects:_e.reconfigure.of(i)})}else return},{immediate:!0});const o=(s="")=>{e.value&&e.value.state.doc.toString()!==s&&e.value.dispatch({changes:{from:0,to:e.value.state.doc.length,insert:s},selection:{anchor:Math.min(e.value.state.selection.main.anchor,s.length)}})};return a.watch(()=>a.toValue(r.content),()=>{Xo(r)||o(a.toValue(r.content))},{immediate:!0}),{setCodeMirrorContent:o,codeMirror:e}},m0={html:mE,json:vE,yaml:GE,css:u1};function g0({onChange:r,onBlur:e,onFocus:t,provider:n,language:o,classes:s=[],readOnly:i=!1,lineNumbers:l=!1,withVariables:c=!1,disableEnter:d=!1,withoutTheme:u=!1,additionalExtensions:h=[]}){const f=[tC(),Dv(t2,{fallback:!0}),re.theme({".cm-line":{lineHeight:"20px"},".cm-gutterElement":{lineHeight:"20px"}}),re.updateListener.of(p=>{p.docChanged&&(r==null||r(p.state.doc.toString()))}),re.domEventHandlers({blur:(p,m)=>{e==null||e(m.state.doc.toString())},focus:(p,m)=>{t==null||t(m.state.doc.toString())}}),re.editorAttributes.of({class:s.join(" ")}),...h];return n&&f.push(n),u||f.push(KE),i?f.push(re.editable.of(!1)):f.push(KC(),l2(),sT(),L2(),si.of([...o1,...K2,cT,e5])),o&&m0[o]&&f.push(m0[o]()),l&&f.push(OC()),c&&f.push(JE()),d&&f.push(si.of([{key:"Enter",run:()=>!0},{key:"Ctrl-Enter",mac:"Cmd-Enter",run:()=>!0},{key:"Shift-Enter",run:()=>!0}])),f}const r5=a.defineComponent({__name:"CodeMirror",props:{content:{},readOnly:{type:Boolean},language:{},withVariables:{type:Boolean},lineNumbers:{type:Boolean},withoutTheme:{type:Boolean},disableEnter:{type:Boolean,default:!1}},emits:["change"],setup(r,{emit:e}){const t=r,n=e,o=a.ref(null);return t5({content:a.toRef(()=>t.content),readOnly:a.toRef(()=>t.readOnly),language:a.toRef(()=>t.language),withVariables:a.toRef(()=>t.withVariables),lineNumbers:a.toRef(()=>t.lineNumbers),withoutTheme:a.toRef(()=>t.withoutTheme),disableEnter:a.toRef(()=>t.disableEnter),onChange:s=>n("change",s||""),codeMirrorRef:o,classes:["codemirror"]}),(s,i)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"codeMirrorRef",ref:o,class:"codemirror-container"},null,512))}}),L1=W(r5,[["__scopeId","data-v-c045d592"]]),n5={class:"scalar-modal-layout modal-layout"},o5=a.defineComponent({__name:"FlowModal",props:{state:{},title:{},bodyClass:{},maxWidth:{},variant:{default:"normal"}},setup(r){return(e,t)=>(a.openBlock(),a.createBlock(a.unref(ye.Dialog),{open:e.state.open,onClose:t[0]||(t[0]=n=>e.state.hide())},{default:a.withCtx(()=>[a.createElementVNode("div",n5,[a.createVNode(a.unref(ye.DialogPanel),{class:a.normalizeClass(["modal",{"modal-content-large":e.variant==="large","modal-content-normal":e.variant==="normal","modal-content-small":e.variant==="small","modal-content-search":e.variant==="search","modal-content-history":e.variant==="history"}]),style:a.normalizeStyle({maxWidth:e.maxWidth})},{default:a.withCtx(()=>[e.title?(a.openBlock(),a.createBlock(a.unref(ye.DialogTitle),{key:0,class:"modal-header"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.title),1)]),_:1})):a.createCommentVNode("",!0),a.createVNode(a.unref(ye.DialogDescription),{class:a.normalizeClass(["modal-body custom-scroll",[e.bodyClass]])},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["class"])]),_:3},8,["class","style"])])]),_:3},8,["open"]))}}),H1=W(o5,[["__scopeId","data-v-4aafbf68"]]),G1=()=>a.reactive({open:!1,show(){this.open=!0},hide(){this.open=!1}});function Gl(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}const s5=(r,e)=>{if(typeof e!="string"||!e.length)return r;const t=r.endsWith("/")?r:`${r}/`,n=e.startsWith("/")?e.slice(1):e;return[t,n].join("")};function a5(r){return typeof window>"u"?Buffer.from(r).toString("base64"):btoa(r)}const i5=r=>{const e=/(?:\{+)\s*(\w+)\s*(?:\}+)/g;return[...r.matchAll(e)].map(t=>t[1].trim())||[]};function l5(r){return!(!r||Array.isArray(r)&&!r.length||(r??[]).some(e=>!Object.keys(e).length))}function ud(r,e){var c,d;const t=[],n=[],o=[];if(!r.customSecurity&&(!r.preferredSecurityScheme||!l5(e)))return{headers:t,queryString:n,cookies:o};const i=(e==null?void 0:e.some(u=>r.preferredSecurityScheme&&Object.keys(u).includes(r.preferredSecurityScheme)))||r.customSecurity?r.preferredSecurityScheme:Object.keys((e==null?void 0:e[0])??{}).pop(),l=(c=r.securitySchemes)==null?void 0:c[i??""];if(l){if("type"in l&&l.type==="apiKey"){if("in"in l&&l.in==="header"){const u=(d=r.apiKey.token)!=null&&d.length?r.apiKey.token:"YOUR_TOKEN";t.push({name:"name"in l?l.name:"",value:u})}else if("in"in l&&l.in==="cookie"){const u=r.apiKey.token.length?r.apiKey.token:"YOUR_TOKEN";o.push({name:l.name,value:u})}else if("in"in l&&l.in==="query"){const u=r.apiKey.token.length?r.apiKey.token:"YOUR_TOKEN";n.push({name:l.name,value:u})}}else if("type"in l&&(l.type==="http"||l.type==="basic")){if("type"in l&&(l.type==="basic"||l.type==="http"&&l.scheme==="basic")){const{username:u,password:h}=r.http.basic,f=F1(u,h);t.push({name:"Authorization",value:`Basic ${f}`.trim()})}else if("type"in l&&l.type==="http"&&l.scheme==="bearer"){const u=r.http.bearer.token.length?r.http.bearer.token:"YOUR_SECRET_TOKEN";t.push({name:"Authorization",value:`Bearer ${u}`})}}else if("type"in l&&l.type.toLowerCase()==="oauth2"){const u=r.oAuth2.accessToken||"YOUR_SECRET_TOKEN";t.push({name:"Authorization",value:`Bearer ${u}`})}}return{headers:t,queryString:n,cookies:o}}function F1(r,e){return r!=null&&r.length||e!=null&&e.length?a5(`${r}:${e}`):""}function c5(r){return[r.apiKey.token,r.http.bearer.token,r.oAuth2.accessToken,F1(r.http.basic.username,r.http.basic.password),r.http.basic.password].filter(Boolean)}function K1(r){const e=Math.floor((new Date().getTime()-r)/1e3);if(e<45)return"just now";if(e<60)return`${e} seconds ago`;const t=Math.floor(e/60);if(t<60)return`${t} minute${t===1?"":"s"} ago`;const n=Math.floor(t/60);if(n<24)return`${n} hour${n===1?"":"s"} ago`;const o=Math.floor(n/24);if(o<30)return`${o} day${o===1?"":"s"} ago`;const s=Math.floor(o/30);return s<12?`${s} month${s===1?"":"s"} ago`:"more than a year ago"}function vl(r,e,t){const n={};return r.forEach(o=>{n[o[e]]=o[t]}),n}const d5=r=>{if(typeof r!="string")return"";let e=r.trim();return e.length>1&&e.startsWith("/")&&(e=e.slice(1)),e},wl="GET",u5=r=>{if(typeof r!="string")return console.warn(`[sendRequest] Request method is not a string. Using ${wl} as the default.`),wl;const e=r.trim().toUpperCase();return ih(e)?e:(console.warn(`[sendRequest] ${r} is not a valid request method. Using ${wl} as the default.`),wl)},h5=r=>{if(typeof r!="string")return console.warn("[sendRequest] URL is not a string. Using an empty string as the default."),"";let e=r;e.startsWith("http")||(console.warn("[sendRequest] URL does not start with http. Adding http:// as the default prefix."),e=`http://${e}`);const t=new URL(e);return t.hostname=t.hostname.trim().toLowerCase(),t.toString()};function kl(r){return(r??[]).map(e=>({...e,enabled:!0}))}const f5=r=>{var i,l;const{request:e}=r,{authentication:t}=qn(),{openApi:{operation:n,globalSecurity:o}}=rd(),s=ud(t,((i=n==null?void 0:n.information)==null?void 0:i.security)??o);return e.headers=[...e.headers??[],...kl(s.headers)],e.cookies=[...e.cookies??[],...kl(s.cookies)],e.query=[...e.query??[],...kl(s.queryString)],e.body&&cc(e.body)&&((l=e.headers)!=null&&l.some(d=>d.name.toLowerCase()==="content-type")||(e.headers=[...e.headers??[],...kl([{name:"Content-Type",value:"application/json; charset=utf-8"}])]),e.body=JSON.parse(e.body)),{...e}},p5=(r,e)=>Object.entries(e).reduce((t,[n,o])=>t.replace(`{${n}}`,o.toString()),r),m5="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let g5=(r=21)=>{let e="",t=crypto.getRandomValues(new Uint8Array(r));for(;r--;)e+=m5[t[r]&63];return e};async function O5(r,e){var y;const t=u5(r.type),n=vl((r.headers??[]).filter(b=>b.enabled),"name","value"),o=h5(r.url),s=d5(r.path),[i,...l]=s5(o,s).split("?"),c=p5(i,vl((r.variables??[]).filter(b=>b.enabled),"name","value")),d=[];l.forEach(b=>{new URLSearchParams(b??"").forEach((v,k)=>{d.push({name:k,value:v,enabled:!0})})});const u=new URLSearchParams(vl([...(r.query??[]).filter(b=>b.enabled),...d],"name","value")).toString(),h=`${c}${u?"?"+u:""}`,f={type:"none"},p=Date.now();if(r.cookies&&((y=r.cookies)==null?void 0:y.length)>0){const b=vl((r.cookies??[]).filter(v=>v.enabled),"name","value");n.Cookie=Object.keys(b).map(v=>`${v}=${b[v]}`).join("; ")}const m={method:t,url:h,auth:f,headers:n,data:r.body},g=e?{method:"POST",url:e,data:m}:{method:m.method,url:m.url,headers:m.headers,data:m.data};n.cookies&&(g.withCredentials=!0),console.info(e?`${m.method} ${e} → ${m.url}`:`${m.method} ${m.url}`);const O=await Zy(g).then(b=>e?{...b.data,error:!1}:{...b,statusCode:b.status,data:JSON.stringify(b.data),error:!1}).catch(b=>{const{response:v}=b;return{headers:{"content-type":"application/json; charset=utf-8"},...v,statusCode:(v==null?void 0:v.status)??0,data:JSON.stringify((v==null?void 0:v.data)??{error:b.code})}});return{sentTime:Date.now(),request:{...r,type:t,url:o,path:s},response:{...O,duration:Date.now()-p},responseId:g5()}}const y5=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],b5=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],v5=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],w5=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],O0=(r,e,t)=>{let n=r;return typeof e=="string"||Array.isArray(e)?n=r.toLocaleString(e,t):(e===!0||t!==void 0)&&(n=r.toLocaleString(void 0,t)),n};function Qc(r,e){if(!Number.isFinite(r))throw new TypeError(`Expected a finite number, got ${typeof r}: ${r}`);e={bits:!1,binary:!1,space:!0,...e};const t=e.bits?e.binary?w5:v5:e.binary?b5:y5,n=e.space?" ":"";if(e.signed&&r===0)return` 0${n}${t[0]}`;const o=r<0,s=o?"-":e.signed?"+":"";o&&(r=-r);let i;if(e.minimumFractionDigits!==void 0&&(i={minimumFractionDigits:e.minimumFractionDigits}),e.maximumFractionDigits!==void 0&&(i={maximumFractionDigits:e.maximumFractionDigits,...i}),r<1){const u=O0(r,e.locale,i);return s+u+n+t[0]}const l=Math.min(Math.floor(e.binary?Math.log(r)/Math.log(1024):Math.log10(r)/3),t.length-1);r/=(e.binary?1024:1e3)**l,i||(r=r.toPrecision(3));const c=O0(Number(r),e.locale,i),d=t[l];return s+c+n+d}function k5(r){if(typeof r!="number")throw new TypeError("Expected a number");const e=r>0?Math.floor:Math.ceil;return{days:e(r/864e5),hours:e(r/36e5)%24,minutes:e(r/6e4)%60,seconds:e(r/1e3)%60,milliseconds:e(r)%1e3,microseconds:e(r*1e3)%1e3,nanoseconds:e(r*1e6)%1e3}}const S5=(r,e)=>e===1?r:`${r}s`,$5=1e-7;function J1(r,e={}){if(!Number.isFinite(r))throw new TypeError("Expected a finite number");e.colonNotation&&(e.compact=!1,e.formatSubMilliseconds=!1,e.separateMilliseconds=!1,e.verbose=!1),e.compact&&(e.secondsDecimalDigits=0,e.millisecondsDecimalDigits=0);const t=[],n=(i,l)=>{const c=Math.floor(i*10**l+$5);return(Math.round(c)/10**l).toFixed(l)},o=(i,l,c,d)=>{if((t.length===0||!e.colonNotation)&&i===0&&!(e.colonNotation&&c==="m"))return;d=(d||i||"0").toString();let u,h;if(e.colonNotation){u=t.length>0?":":"",h="";const f=d.includes(".")?d.split(".")[0].length:d.length,p=t.length>0?2:1;d="0".repeat(Math.max(0,p-f))+d}else u="",h=e.verbose?" "+S5(l,i):c;t.push(u+d+h)},s=k5(r);if(o(Math.trunc(s.days/365),"year","y"),o(s.days%365,"day","d"),o(s.hours,"hour","h"),o(s.minutes,"minute","m"),e.separateMilliseconds||e.formatSubMilliseconds||!e.colonNotation&&r<1e3)if(o(s.seconds,"second","s"),e.formatSubMilliseconds)o(s.milliseconds,"millisecond","ms"),o(s.microseconds,"microsecond","µs"),o(s.nanoseconds,"nanosecond","ns");else{const i=s.milliseconds+s.microseconds/1e3+s.nanoseconds/1e6,l=typeof e.millisecondsDecimalDigits=="number"?e.millisecondsDecimalDigits:0,c=i>=1?Math.round(i):Math.ceil(i),d=l?i.toFixed(l):c;o(Number.parseFloat(d),"millisecond","ms",d)}else{const i=r/1e3%60,l=typeof e.secondsDecimalDigits=="number"?e.secondsDecimalDigits:1,c=n(i,l),d=e.keepDecimalsOnWholeSeconds?c:c.replace(/\.0+$/,"");o(Number.parseFloat(d),"second","s",d)}if(t.length===0)return"0"+(e.verbose?" milliseconds":"ms");if(e.compact)return t[0];if(typeof e.unitCount=="number"){const i=e.colonNotation?"":" ";return t.slice(0,Math.max(e.unitCount,1)).join(i)}return e.colonNotation?t.join(""):t.join(" ")}const P5={class:"navtable-item-40 navtable-item-request"},x5={class:"navtable-item-40 navtable-item-response"},_5={class:"navtable-item-20 navtable-item-time"},C5=a.defineComponent({__name:"RequestHistoryItem",props:{history:{}},setup(r){const{requestHistory:e,activeRequestId:t,setActiveResponse:n}=er(),o=s=>{var i;return(i=s==null?void 0:s.headers)!=null&&i["X-API-Client-Content-Length"]?Qc(parseFloat(s.headers["X-API-Client-Content-Length"])):Qc(0)};return(s,i)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["navtable-item",{"navtable-item__active":a.unref(t)===s.history}]),onClick:i[0]||(i[0]=l=>a.unref(n)(s.history))},[a.createElementVNode("div",P5,[a.createElementVNode("button",{class:a.normalizeClass(["radio",a.unref(e)[s.history].request.type.toLowerCase()]),type:"button"},null,2),a.createElementVNode("span",null,[a.createElementVNode("em",null,a.toDisplayString(a.unref(e)[s.history].request.type),1),a.createTextVNode(" "+a.toDisplayString(a.unref(e)[s.history].request.url),1)])]),a.createElementVNode("div",x5,[a.createElementVNode("span",null,a.toDisplayString(a.unref(J1)(a.unref(e)[s.history].response.duration)),1),a.createElementVNode("span",{class:a.normalizeClass(`scalar-api-client__status--${String(a.unref(e)[s.history].response.statusCode).charAt(0)}xx`)},a.toDisplayString(a.unref(e)[s.history].response.statusCode),3),a.createElementVNode("span",null,a.toDisplayString(o(a.unref(e)[s.history].response)),1)]),a.createElementVNode("div",_5,[a.createElementVNode("span",null,a.toDisplayString(a.unref(K1)(a.unref(e)[s.history].sentTime)),1)])],2))}}),T5=W(C5,[["__scopeId","data-v-f35a2f95"]]),Q5={class:"navigation-content-item"},E5={class:"navtable"},N5={class:"navtable-table"},A5=a.createStaticVNode('<div class="navtable-item navtable-item__top"><div class="navtable-item-40"><label for="">Request</label></div><div class="navtable-item-40"><label for="">Response</label></div><div class="navtable-item-20"><label for="">TIME</label></div></div>',1),R5={class:"navtable-radios"},V5=a.createStaticVNode('<div class="navtable-mock"><div class="navtable-item"><div class="navtable-item-40"></div><div class="navtable-item-40"></div><div class="navtable-item-20"></div></div></div>',1),B5=a.defineComponent({__name:"RequestHistory",emits:["toggle"],setup(r){const{requestHistoryOrder:e}=er();return(t,n)=>(a.openBlock(),a.createElementBlock("div",Q5,[a.createElementVNode("div",E5,[a.createElementVNode("div",N5,[A5,a.createElementVNode("div",R5,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(e),o=>(a.openBlock(),a.createBlock(T5,{key:o,history:o},null,8,["history"]))),128))]),V5])])]))}}),Z5={class:"request-method-select"},I5=["disabled","value"],j5=["value"],D5=a.defineComponent({__name:"RequestMethodSelect",props:{requestMethod:{},readOnly:{type:Boolean,default:!0}},emits:["change"],setup(r){const e=["GET","POST","PUT","DELETE","PATCH"];return(t,n)=>(a.openBlock(),a.createElementBlock("div",Z5,[a.createElementVNode("span",{class:a.normalizeClass(["request-method",{"request-method--disabled":t.readOnly}])},[a.createElementVNode("i",{class:a.normalizeClass(t.requestMethod.toLowerCase())},null,2),a.createElementVNode("span",null,a.toDisplayString(t.requestMethod),1)],2),a.createElementVNode("select",{disabled:t.readOnly,value:t.requestMethod.toLowerCase(),onInput:n[0]||(n[0]=o=>t.$emit("change",o.target.value))},[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(e,o=>a.createElementVNode("option",{key:o,value:o.toLocaleLowerCase()},a.toDisplayString(o),9,j5)),64))],40,I5)]))}}),M5=W(D5,[["__scopeId","data-v-6ed314b1"]]),vp=r=>(a.pushScopeId("data-v-4e4bbb9c"),r=r(),a.popScopeId(),r),q5={key:0,class:"loader"},X5={class:"url-form"},W5={class:"url-form-field"},z5={key:0,class:"history"},U5=vp(()=>a.createElementVNode("svg",{fill:"none",height:"48",viewBox:"0 0 14 14",width:"48",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("g",{id:"rewind-clock--back-return-clock-timer-countdown"},[a.createElementVNode("path",{id:"Vector 1561 (Stroke)","clip-rule":"evenodd",d:"M6.99999 2.75C7.4142 2.75 7.74999 3.08579 7.74999 3.5V7.5C7.74999 7.76345 7.61177 8.00758 7.38586 8.14312L4.88586 9.64312C4.53068 9.85623 4.06998 9.74106 3.85687 9.38587C3.64376 9.03069 3.75893 8.56999 4.11412 8.35688L6.24999 7.07536V3.5C6.24999 3.08579 6.58578 2.75 6.99999 2.75Z",fill:"currentColor","fill-rule":"evenodd"}),a.createElementVNode("path",{id:"Union","clip-rule":"evenodd",d:"M12.5 7C12.5 3.96243 10.0376 1.5 7 1.5C5.24916 1.5 3.68853 2.31796 2.68066 3.59456L3.64645 4.56034C3.96143 4.87533 3.73835 5.4139 3.29289 5.4139H0.5C0.223857 5.4139 0 5.19004 0 4.9139V2.121C0 1.67555 0.53857 1.45247 0.853553 1.76745L1.61439 2.52829C2.89781 0.984301 4.83356 0 7 0C10.866 0 14 3.13401 14 7C14 10.866 10.866 14 7 14C3.68902 14 0.916591 11.702 0.187329 8.61473C0.0921059 8.21161 0.341704 7.80762 0.744824 7.7124C1.14794 7.61717 1.55193 7.86677 1.64715 8.26989C2.22013 10.6955 4.40025 12.5 7 12.5C10.0376 12.5 12.5 10.0376 12.5 7Z",fill:"currentColor","fill-rule":"evenodd"})])],-1)),Y5=[U5],L5=["disabled"],H5=vp(()=>a.createElementVNode("svg",{fill:"none",height:"48",viewBox:"0 0 14 14",width:"48",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("g",{id:"send-email--mail-send-email-paper-airplane"},[a.createElementVNode("path",{id:"Subtract","clip-rule":"evenodd",d:"M11.8215 0.0977331C12.1097 -0.0075178 12.422 -0.0287134 12.7219 0.0367172C13.0248 0.102803 13.3024 0.254481 13.5216 0.473719C13.7409 0.692957 13.8926 0.970537 13.9586 1.27346C14.0241 1.57338 14.0029 1.88566 13.8976 2.17389L10.3236 12.8859L10.3234 12.8866C10.2363 13.15 10.083 13.3867 9.87813 13.5739C9.67383 13.7606 9.42512 13.8917 9.15575 13.9549C8.88633 14.0206 8.60444 14.015 8.33777 13.9388C8.07134 13.8627 7.82929 13.7187 7.63532 13.5209L5.71798 11.6123L3.70392 12.6538C3.54687 12.735 3.3586 12.7272 3.20877 12.6333C3.05895 12.5395 2.96984 12.3734 2.97443 12.1967L3.057 9.01294L10.102 3.89553C10.3812 3.69267 10.4432 3.30182 10.2403 3.02255C10.0375 2.74327 9.64662 2.68133 9.36734 2.88419L2.20286 8.0884L0.473156 6.35869L0.473098 6.35864L0.472971 6.35851C0.285648 6.17132 0.147746 5.94054 0.0716498 5.68688C-0.00390565 5.43503 -0.016181 5.16847 0.0358684 4.91079C0.087985 4.62928 0.213827 4.36658 0.400607 4.14951C0.588668 3.93095 0.831681 3.76658 1.10453 3.67339L1.1079 3.67224L1.1079 3.67225L11.8215 0.0977331Z",fill:"currentColor","fill-rule":"evenodd"})])],-1)),G5=vp(()=>a.createElementVNode("span",null,"Send",-1)),F5=[H5,G5],K5={class:"address-bar-content"},J5=a.defineComponent({__name:"AddressBar",props:{proxyUrl:{}},emits:["onSend"],setup(r,{emit:e}){const t=r,n=e,o=De.useMagicKeys();De.whenever(Gl()?o.meta_enter:o.ctrl_enter,b);const s=a.ref(!1),i=a.ref(!1),{activeRequest:l,addRequestToHistory:c,requestHistory:d,requestHistoryOrder:u,readOnly:h,setActiveRequest:f}=er(),p=G1(),m=a.computed(()=>l.url),g=a.computed(()=>l.type),O=a.computed(()=>l.path),y=a.computed(()=>`${m.value}${O.value}`);async function b(){const S=f5({request:{...l}});i.value=!0,n("onSend");const w=await O5(S,t.proxyUrl);w&&c(w),i.value=!1}a.computed(()=>{const S=u.value[0];return d[S]?K1(d[S].sentTime):"History"});const v=S=>{h.value||l.url+l.path!==S&&f({...l,url:S,path:""})},k=S=>{S&&f({...l,type:S.toLocaleLowerCase()})};return(S,w)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[i.value?(a.openBlock(),a.createElementBlock("div",q5)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["address-bar",{"address-bar--with-history":s.value}])},[a.createElementVNode("div",X5,[a.createElementVNode("div",W5,[a.createVNode(M5,{readOnly:a.unref(h),requestMethod:g.value,onChange:k},null,8,["readOnly","requestMethod"]),a.createVNode(a.unref(L1),{class:"url-form-input",content:y.value,disableEnter:"",readOnly:a.unref(h),withoutTheme:"",withVariables:"",onChange:v},null,8,["content","readOnly"])]),a.unref(u).length?(a.openBlock(),a.createElementBlock("div",z5,[a.createElementVNode("div",{class:"history-toggle",onClick:w[0]||(w[0]=$=>a.unref(p).show())},Y5)])):a.createCommentVNode("",!0),a.createElementVNode("button",{class:"send-button",disabled:!y.value.trim().length,type:"submit",onClick:b},F5,8,L5)]),a.createElementVNode("div",{class:"address-bar-close",onClick:w[1]||(w[1]=$=>s.value=!1)}),a.createElementVNode("div",K5,[a.createVNode(a.unref(H1),{state:a.unref(p),title:"Request History",variant:"history"},{default:a.withCtx(()=>[a.createVNode(B5,{showHistory:s.value,onToggle:w[2]||(w[2]=$=>s.value=!s.value)},null,8,["showHistory"])]),_:1},8,["state"])])],2)],64))}}),eN=W(J5,[["__scopeId","data-v-4e4bbb9c"]]),ew=De.useEventBus(Symbol()),tN=a.createElementVNode("svg",{class:"scalar-api-client__toggle__icon",height:"10",viewBox:"0 0 5 10",width:"5",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"M0 10l5-5-5-5z",fill:"currentColor","fill-rule":"nonzero"})],-1),rN={class:"scalar-api-client__item__title"},nN={key:0,class:"scalar-api-client__item__options"},oN={class:"scalar-api-client__item__content"},cn=a.defineComponent({__name:"CollapsibleSection",props:{title:{},defaultOpen:{type:Boolean,default:!0}},setup(r){const e=r,t=a.ref(null),n=a.ref(null),o=a.ref(e.defaultOpen);return a.watch(()=>e.defaultOpen,(s,i)=>{var l;s!==i&&s!==o.value&&((l=t.value)==null||l.el.click())}),(s,i)=>(a.openBlock(),a.createBlock(a.unref(ye.Disclosure),{ref_key:"disclosureButton",ref:n,defaultOpen:s.defaultOpen},{default:a.withCtx(({open:l})=>[a.createElementVNode("div",{class:a.normalizeClass(["scalar-api-client__item",{"scalar-api-client__item--open":l}])},[a.createVNode(a.unref(ye.DisclosureButton),{ref_key:"collapseButton",ref:t,class:"scalar-api-client__toggle",onClick:i[0]||(i[0]=c=>o.value=!o.value)},{default:a.withCtx(()=>[tN,a.createElementVNode("span",rN,a.toDisplayString(s.title),1),s.$slots.options&&l?(a.openBlock(),a.createElementBlock("div",nN,[a.renderSlot(s.$slots,"options")])):a.createCommentVNode("",!0)]),_:2},1536),a.createVNode(a.unref(ye.DisclosurePanel),null,{default:a.withCtx(()=>[a.createElementVNode("div",oN,[a.renderSlot(s.$slots,"default")])]),_:3})],2)]),_:3},8,["defaultOpen"]))}}),sN={},aN={class:"card-form"};function iN(r,e){return a.openBlock(),a.createElementBlock("form",aN,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const lN=W(sN,[["render",iN],["__scopeId","data-v-5d5c1a71"]]),cN=a.defineComponent({__name:"CardFormButton",setup(r,{expose:e}){const t=a.ref();return e({el:t}),(n,o)=>(a.openBlock(),a.createElementBlock("button",{ref_key:"el",ref:t,class:"card-form-button",type:"button"},[a.renderSlot(n.$slots,"default",{},void 0,!0)],512))}}),rf=W(cN,[["__scopeId","data-v-460f1dc0"]]),dN={},uN={class:"card-form-group"};function hN(r,e){return a.openBlock(),a.createElementBlock("div",uN,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const y0=W(dN,[["render",hN],["__scopeId","data-v-a0658e7e"]]);function tw(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r))for(e=0;e<r.length;e++)r[e]&&(t=tw(r[e]))&&(n&&(n+=" "),n+=t);else for(e in r)r[e]&&(n&&(n+=" "),n+=e);return n}function Vu(){for(var r,e,t=0,n="";t<arguments.length;)(r=arguments[t++])&&(e=tw(r))&&(n&&(n+=" "),n+=e);return n}const b0=r=>typeof r=="boolean"?"".concat(r):r===0?"0":r,fN=r=>{const e=function(){for(var o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];var l,c;return typeof(r==null||(l=r.hooks)===null||l===void 0?void 0:l["cx:done"])<"u"?r==null?void 0:r.hooks["cx:done"](Vu(s)):typeof(r==null||(c=r.hooks)===null||c===void 0?void 0:c.onComplete)<"u"?r==null?void 0:r.hooks.onComplete(Vu(s)):Vu(s)};return{compose:function(){for(var o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return l=>{const c=Object.fromEntries(Object.entries(l||{}).filter(d=>{let[u]=d;return!["class","className"].includes(u)}));return e(s.map(d=>d(c)),l==null?void 0:l.class,l==null?void 0:l.className)}},cva:o=>s=>{var i;if((o==null?void 0:o.variants)==null)return e(o==null?void 0:o.base,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:l,defaultVariants:c}=o,d=Object.keys(l).map(f=>{const p=s==null?void 0:s[f],m=c==null?void 0:c[f],g=b0(p)||b0(m);return l[f][g]}),u={...c,...s&&Object.entries(s).reduce((f,p)=>{let[m,g]=p;return typeof g>"u"?f:{...f,[m]:g}},{})},h=o==null||(i=o.compoundVariants)===null||i===void 0?void 0:i.reduce((f,p)=>{let{class:m,className:g,...O}=p;return Object.entries(O).every(y=>{let[b,v]=y;const k=u[b];return Array.isArray(v)?v.includes(k):k===v})?[...f,m,g]:f},[]);return e(o==null?void 0:o.base,d,h,s==null?void 0:s.class,s==null?void 0:s.className)},cx:e}},wp="-";function pN(r){const e=gN(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=r;function o(i){const l=i.split(wp);return l[0]===""&&l.length!==1&&l.shift(),rw(l,e)||mN(i)}function s(i,l){const c=t[i]||[];return l&&n[i]?[...c,...n[i]]:c}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function rw(r,e){var i;if(r.length===0)return e.classGroupId;const t=r[0],n=e.nextPart.get(t),o=n?rw(r.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const s=r.join(wp);return(i=e.validators.find(({validator:l})=>l(s)))==null?void 0:i.classGroupId}const v0=/^\[(.+)\]$/;function mN(r){if(v0.test(r)){const e=v0.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}}function gN(r){const{theme:e,prefix:t}=r,n={nextPart:new Map,validators:[]};return yN(Object.entries(r.classGroups),t).forEach(([s,i])=>{nf(i,n,s,e)}),n}function nf(r,e,t,n){r.forEach(o=>{if(typeof o=="string"){const s=o===""?e:w0(e,o);s.classGroupId=t;return}if(typeof o=="function"){if(ON(o)){nf(o(n),e,t,n);return}e.validators.push({validator:o,classGroupId:t});return}Object.entries(o).forEach(([s,i])=>{nf(i,w0(e,s),t,n)})})}function w0(r,e){let t=r;return e.split(wp).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t}function ON(r){return r.isThemeGetter}function yN(r,e){return e?r.map(([t,n])=>{const o=n.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,l])=>[e+i,l])):s);return[t,o]}):r}function bN(r){if(r<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,n=new Map;function o(s,i){t.set(s,i),e++,e>r&&(e=0,n=t,t=new Map)}return{get(s){let i=t.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set(s,i){t.has(s)?t.set(s,i):o(s,i)}}}const nw="!";function vN(r){const e=r.separator,t=e.length===1,n=e[0],o=e.length;return function(i){const l=[];let c=0,d=0,u;for(let g=0;g<i.length;g++){let O=i[g];if(c===0){if(O===n&&(t||i.slice(g,g+o)===e)){l.push(i.slice(d,g)),d=g+o;continue}if(O==="/"){u=g;continue}}O==="["?c++:O==="]"&&c--}const h=l.length===0?i:i.substring(d),f=h.startsWith(nw),p=f?h.substring(1):h,m=u&&u>d?u-d:void 0;return{modifiers:l,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}}}function wN(r){if(r.length<=1)return r;const e=[];let t=[];return r.forEach(n=>{n[0]==="["?(e.push(...t.sort(),n),t=[]):t.push(n)}),e.push(...t.sort()),e}function kN(r){return{cache:bN(r.cacheSize),splitModifiers:vN(r),...pN(r)}}const SN=/\s+/;function $N(r,e){const{splitModifiers:t,getClassGroupId:n,getConflictingClassGroupIds:o}=e,s=new Set;return r.trim().split(SN).map(i=>{const{modifiers:l,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:u}=t(i);let h=n(u?d.substring(0,u):d),f=!!u;if(!h){if(!u)return{isTailwindClass:!1,originalClassName:i};if(h=n(d),!h)return{isTailwindClass:!1,originalClassName:i};f=!1}const p=wN(l).join(":");return{isTailwindClass:!0,modifierId:c?p+nw:p,classGroupId:h,originalClassName:i,hasPostfixModifier:f}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:l,classGroupId:c,hasPostfixModifier:d}=i,u=l+c;return s.has(u)?!1:(s.add(u),o(c,d).forEach(h=>s.add(l+h)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function PN(){let r=0,e,t,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=ow(e))&&(n&&(n+=" "),n+=t);return n}function ow(r){if(typeof r=="string")return r;let e,t="";for(let n=0;n<r.length;n++)r[n]&&(e=ow(r[n]))&&(t&&(t+=" "),t+=e);return t}function k0(r,...e){let t,n,o,s=i;function i(c){const d=e.reduce((u,h)=>h(u),r());return t=kN(d),n=t.cache.get,o=t.cache.set,s=l,l(c)}function l(c){const d=n(c);if(d)return d;const u=$N(c,t);return o(c,u),u}return function(){return s(PN.apply(null,arguments))}}function Ae(r){const e=t=>t[r]||[];return e.isThemeGetter=!0,e}const sw=/^\[(?:([a-z-]+):)?(.+)\]$/i,xN=/^\d+\/\d+$/,_N=new Set(["px","full","screen"]),CN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,TN=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,QN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,EN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,NN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function zr(r){return fo(r)||_N.has(r)||xN.test(r)}function hn(r){return Ms(r,"length",DN)}function fo(r){return!!r&&!Number.isNaN(Number(r))}function Sl(r){return Ms(r,"number",fo)}function ka(r){return!!r&&Number.isInteger(Number(r))}function AN(r){return r.endsWith("%")&&fo(r.slice(0,-1))}function ue(r){return sw.test(r)}function fn(r){return CN.test(r)}const RN=new Set(["length","size","percentage"]);function VN(r){return Ms(r,RN,aw)}function BN(r){return Ms(r,"position",aw)}const ZN=new Set(["image","url"]);function IN(r){return Ms(r,ZN,qN)}function jN(r){return Ms(r,"",MN)}function Sa(){return!0}function Ms(r,e,t){const n=sw.exec(r);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):t(n[2]):!1}function DN(r){return TN.test(r)&&!QN.test(r)}function aw(){return!1}function MN(r){return EN.test(r)}function qN(r){return NN.test(r)}function S0(){const r=Ae("colors"),e=Ae("spacing"),t=Ae("blur"),n=Ae("brightness"),o=Ae("borderColor"),s=Ae("borderRadius"),i=Ae("borderSpacing"),l=Ae("borderWidth"),c=Ae("contrast"),d=Ae("grayscale"),u=Ae("hueRotate"),h=Ae("invert"),f=Ae("gap"),p=Ae("gradientColorStops"),m=Ae("gradientColorStopPositions"),g=Ae("inset"),O=Ae("margin"),y=Ae("opacity"),b=Ae("padding"),v=Ae("saturate"),k=Ae("scale"),S=Ae("sepia"),w=Ae("skew"),$=Ae("space"),T=Ae("translate"),R=()=>["auto","contain","none"],B=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",ue,e],V=()=>[ue,e],K=()=>["",zr,hn],L=()=>["auto",fo,ue],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ge=()=>["solid","dashed","dotted","double","none"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Pe=()=>["start","end","center","between","around","evenly","stretch"],ie=()=>["","0",ue],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>[fo,Sl],I=()=>[fo,ue];return{cacheSize:500,separator:":",theme:{colors:[Sa],spacing:[zr,hn],blur:["none","",fn,ue],brightness:N(),borderColor:[r],borderRadius:["none","","full",fn,ue],borderSpacing:V(),borderWidth:K(),contrast:N(),grayscale:ie(),hueRotate:I(),invert:ie(),gap:V(),gradientColorStops:[r],gradientColorStopPositions:[AN,hn],inset:M(),margin:M(),opacity:N(),padding:V(),saturate:N(),scale:N(),sepia:ie(),skew:I(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",ue]}],container:["container"],columns:[{columns:[fn]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ne(),ue]}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ka,ue]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ue]}],grow:[{grow:ie()}],shrink:[{shrink:ie()}],order:[{order:["first","last","none",ka,ue]}],"grid-cols":[{"grid-cols":[Sa]}],"col-start-end":[{col:["auto",{span:["full",ka,ue]},ue]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[Sa]}],"row-start-end":[{row:["auto",{span:[ka,ue]},ue]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ue]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Pe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Pe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Pe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[O]}],mx:[{mx:[O]}],my:[{my:[O]}],ms:[{ms:[O]}],me:[{me:[O]}],mt:[{mt:[O]}],mr:[{mr:[O]}],mb:[{mb:[O]}],ml:[{ml:[O]}],"space-x":[{"space-x":[$]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[$]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ue,e]}],"min-w":[{"min-w":[ue,e,"min","max","fit"]}],"max-w":[{"max-w":[ue,e,"none","full","min","max","fit","prose",{screen:[fn]},fn]}],h:[{h:[ue,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ue,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ue,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ue,e,"auto","min","max","fit"]}],"font-size":[{text:["base",fn,hn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Sl]}],"font-family":[{font:[Sa]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ue]}],"line-clamp":[{"line-clamp":["none",fo,Sl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",zr,ue]}],"list-image":[{"list-image":["none",ue]}],"list-style-type":[{list:["none","disc","decimal",ue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",zr,hn]}],"underline-offset":[{"underline-offset":["auto",zr,ue]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),BN]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",VN]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},IN]}],"bg-color":[{bg:[r]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...ge(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:ge()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...ge()]}],"outline-offset":[{"outline-offset":[zr,ue]}],"outline-w":[{outline:[zr,hn]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[zr,hn]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",fn,jN]}],"shadow-color":[{shadow:[Sa]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...Se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Se()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[n]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",fn,ue]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[v]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ue]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",ue]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",ue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[ka,ue]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ue]}],accent:[{accent:["auto",r]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ue]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[zr,hn,Sl]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function XN(r,{cacheSize:e,prefix:t,separator:n,extend:o={},override:s={}}){Fl(r,"cacheSize",e),Fl(r,"prefix",t),Fl(r,"separator",n);for(const i in s)WN(r[i],s[i]);for(const i in o)zN(r[i],o[i]);return r}function Fl(r,e,t){t!==void 0&&(r[e]=t)}function WN(r,e){if(e)for(const t in e)Fl(r,t,e[t])}function zN(r,e){if(e)for(const t in e){const n=e[t];n!==void 0&&(r[t]=(r[t]||[]).concat(n))}}function UN(r,...e){return typeof r=="function"?k0(S0,r,...e):k0(()=>XN(S0(),r),...e)}const Ec=Math.min,vo=Math.max,Nc=Math.round,$l=Math.floor,jn=r=>({x:r,y:r}),YN={left:"right",right:"left",bottom:"top",top:"bottom"},LN={start:"end",end:"start"};function $0(r,e,t){return vo(r,Ec(e,t))}function hd(r,e){return typeof r=="function"?r(e):r}function xo(r){return r.split("-")[0]}function fd(r){return r.split("-")[1]}function iw(r){return r==="x"?"y":"x"}function lw(r){return r==="y"?"height":"width"}function pd(r){return["top","bottom"].includes(xo(r))?"y":"x"}function cw(r){return iw(pd(r))}function HN(r,e,t){t===void 0&&(t=!1);const n=fd(r),o=cw(r),s=lw(o);let i=o==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=Ac(i)),[i,Ac(i)]}function GN(r){const e=Ac(r);return[of(r),e,of(e)]}function of(r){return r.replace(/start|end/g,e=>LN[e])}function FN(r,e,t){const n=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(r){case"top":case"bottom":return t?e?o:n:e?n:o;case"left":case"right":return e?s:i;default:return[]}}function KN(r,e,t,n){const o=fd(r);let s=FN(xo(r),t==="start",n);return o&&(s=s.map(i=>i+"-"+o),e&&(s=s.concat(s.map(of)))),s}function Ac(r){return r.replace(/left|right|bottom|top/g,e=>YN[e])}function JN(r){return{top:0,right:0,bottom:0,left:0,...r}}function eA(r){return typeof r!="number"?JN(r):{top:r,right:r,bottom:r,left:r}}function Rc(r){const{x:e,y:t,width:n,height:o}=r;return{width:n,height:o,top:t,left:e,right:e+n,bottom:t+o,x:e,y:t}}function P0(r,e,t){let{reference:n,floating:o}=r;const s=pd(e),i=cw(e),l=lw(i),c=xo(e),d=s==="y",u=n.x+n.width/2-o.width/2,h=n.y+n.height/2-o.height/2,f=n[l]/2-o[l]/2;let p;switch(c){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:h};break;case"left":p={x:n.x-o.width,y:h};break;default:p={x:n.x,y:n.y}}switch(fd(e)){case"start":p[i]-=f*(t&&d?-1:1);break;case"end":p[i]+=f*(t&&d?-1:1);break}return p}const tA=async(r,e,t)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:i}=t,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(e));let d=await i.getElementRects({reference:r,floating:e,strategy:o}),{x:u,y:h}=P0(d,n,c),f=n,p={},m=0;for(let g=0;g<l.length;g++){const{name:O,fn:y}=l[g],{x:b,y:v,data:k,reset:S}=await y({x:u,y:h,initialPlacement:n,placement:f,strategy:o,middlewareData:p,rects:d,platform:i,elements:{reference:r,floating:e}});u=b??u,h=v??h,p={...p,[O]:{...p[O],...k}},S&&m<=50&&(m++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(d=S.rects===!0?await i.getElementRects({reference:r,floating:e,strategy:o}):S.rects),{x:u,y:h}=P0(d,f,c)),g=-1)}return{x:u,y:h,placement:f,strategy:o,middlewareData:p}};async function dw(r,e){var t;e===void 0&&(e={});const{x:n,y:o,platform:s,rects:i,elements:l,strategy:c}=r,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=hd(e,r),m=eA(p),O=l[f?h==="floating"?"reference":"floating":h],y=Rc(await s.getClippingRect({element:(t=await(s.isElement==null?void 0:s.isElement(O)))==null||t?O:O.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),b=h==="floating"?{...i.floating,x:n,y:o}:i.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),k=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},S=Rc(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:b,offsetParent:v,strategy:c}):b);return{top:(y.top-S.top+m.top)/k.y,bottom:(S.bottom-y.bottom+m.bottom)/k.y,left:(y.left-S.left+m.left)/k.x,right:(S.right-y.right+m.right)/k.x}}const rA=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(e){var t,n;const{placement:o,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:d}=e,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...O}=hd(r,e);if((t=s.arrow)!=null&&t.alignmentOffset)return{};const y=xo(o),b=xo(l)===l,v=await(c.isRTL==null?void 0:c.isRTL(d.floating)),k=f||(b||!g?[Ac(l)]:GN(l));!f&&m!=="none"&&k.push(...KN(l,g,m,v));const S=[l,...k],w=await dw(e,O),$=[];let T=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&$.push(w[y]),h){const V=HN(o,i,v);$.push(w[V[0]],w[V[1]])}if(T=[...T,{placement:o,overflows:$}],!$.every(V=>V<=0)){var R,B;const V=(((R=s.flip)==null?void 0:R.index)||0)+1,K=S[V];if(K)return{data:{index:V,overflows:T},reset:{placement:K}};let L=(B=T.filter(ne=>ne.overflows[0]<=0).sort((ne,ge)=>ne.overflows[1]-ge.overflows[1])[0])==null?void 0:B.placement;if(!L)switch(p){case"bestFit":{var M;const ne=(M=T.map(ge=>[ge.placement,ge.overflows.filter(Se=>Se>0).reduce((Se,Pe)=>Se+Pe,0)]).sort((ge,Se)=>ge[1]-Se[1])[0])==null?void 0:M[0];ne&&(L=ne);break}case"initialPlacement":L=l;break}if(o!==L)return{reset:{placement:L}}}return{}}}};async function nA(r,e){const{placement:t,platform:n,elements:o}=r,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=xo(t),l=fd(t),c=pd(t)==="y",d=["left","top"].includes(i)?-1:1,u=s&&c?-1:1,h=hd(e,r);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return l&&typeof m=="number"&&(p=l==="end"?m*-1:m),c?{x:p*u,y:f*d}:{x:f*d,y:p*u}}const oA=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,n;const{x:o,y:s,placement:i,middlewareData:l}=e,c=await nA(e,r);return i===((t=l.offset)==null?void 0:t.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},sA=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){const{x:t,y:n,placement:o}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:O=>{let{x:y,y:b}=O;return{x:y,y:b}}},...c}=hd(r,e),d={x:t,y:n},u=await dw(e,c),h=pd(xo(o)),f=iw(h);let p=d[f],m=d[h];if(s){const O=f==="y"?"top":"left",y=f==="y"?"bottom":"right",b=p+u[O],v=p-u[y];p=$0(b,p,v)}if(i){const O=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=m+u[O],v=m-u[y];m=$0(b,m,v)}const g=l.fn({...e,[f]:p,[h]:m});return{...g,data:{x:g.x-t,y:g.y-n}}}}};function sn(r){return kp(r)?(r.nodeName||"").toLowerCase():"#document"}function It(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function dn(r){var e;return(e=(kp(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function kp(r){return r instanceof Node||r instanceof It(r).Node}function an(r){return r instanceof Element||r instanceof It(r).Element}function Ir(r){return r instanceof HTMLElement||r instanceof It(r).HTMLElement}function x0(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof It(r).ShadowRoot}function Ei(r){const{overflow:e,overflowX:t,overflowY:n,display:o}=Kt(r);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(o)}function aA(r){return["table","td","th"].includes(sn(r))}function Sp(r){const e=$p(),t=Kt(r);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function iA(r){let e=Ts(r);for(;Ir(e)&&!md(e);){if(Sp(e))return e;e=Ts(e)}return null}function $p(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function md(r){return["html","body","#document"].includes(sn(r))}function Kt(r){return It(r).getComputedStyle(r)}function gd(r){return an(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function Ts(r){if(sn(r)==="html")return r;const e=r.assignedSlot||r.parentNode||x0(r)&&r.host||dn(r);return x0(e)?e.host:e}function uw(r){const e=Ts(r);return md(e)?r.ownerDocument?r.ownerDocument.body:r.body:Ir(e)&&Ei(e)?e:uw(e)}function fi(r,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);const o=uw(r),s=o===((n=r.ownerDocument)==null?void 0:n.body),i=It(o);return s?e.concat(i,i.visualViewport||[],Ei(o)?o:[],i.frameElement&&t?fi(i.frameElement):[]):e.concat(o,fi(o,[],t))}function hw(r){const e=Kt(r);let t=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=Ir(r),s=o?r.offsetWidth:t,i=o?r.offsetHeight:n,l=Nc(t)!==s||Nc(n)!==i;return l&&(t=s,n=i),{width:t,height:n,$:l}}function Pp(r){return an(r)?r:r.contextElement}function gs(r){const e=Pp(r);if(!Ir(e))return jn(1);const t=e.getBoundingClientRect(),{width:n,height:o,$:s}=hw(e);let i=(s?Nc(t.width):t.width)/n,l=(s?Nc(t.height):t.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const lA=jn(0);function fw(r){const e=It(r);return!$p()||!e.visualViewport?lA:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function cA(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==It(r)?!1:e}function _o(r,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);const o=r.getBoundingClientRect(),s=Pp(r);let i=jn(1);e&&(n?an(n)&&(i=gs(n)):i=gs(r));const l=cA(s,t,n)?fw(s):jn(0);let c=(o.left+l.x)/i.x,d=(o.top+l.y)/i.y,u=o.width/i.x,h=o.height/i.y;if(s){const f=It(s),p=n&&an(n)?It(n):n;let m=f,g=m.frameElement;for(;g&&n&&p!==m;){const O=gs(g),y=g.getBoundingClientRect(),b=Kt(g),v=y.left+(g.clientLeft+parseFloat(b.paddingLeft))*O.x,k=y.top+(g.clientTop+parseFloat(b.paddingTop))*O.y;c*=O.x,d*=O.y,u*=O.x,h*=O.y,c+=v,d+=k,m=It(g),g=m.frameElement}}return Rc({width:u,height:h,x:c,y:d})}const dA=[":popover-open",":modal"];function pw(r){return dA.some(e=>{try{return r.matches(e)}catch{return!1}})}function uA(r){let{elements:e,rect:t,offsetParent:n,strategy:o}=r;const s=o==="fixed",i=dn(n),l=e?pw(e.floating):!1;if(n===i||l&&s)return t;let c={scrollLeft:0,scrollTop:0},d=jn(1);const u=jn(0),h=Ir(n);if((h||!h&&!s)&&((sn(n)!=="body"||Ei(i))&&(c=gd(n)),Ir(n))){const f=_o(n);d=gs(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-c.scrollLeft*d.x+u.x,y:t.y*d.y-c.scrollTop*d.y+u.y}}function hA(r){return Array.from(r.getClientRects())}function mw(r){return _o(dn(r)).left+gd(r).scrollLeft}function fA(r){const e=dn(r),t=gd(r),n=r.ownerDocument.body,o=vo(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=vo(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+mw(r);const l=-t.scrollTop;return Kt(n).direction==="rtl"&&(i+=vo(e.clientWidth,n.clientWidth)-o),{width:o,height:s,x:i,y:l}}function pA(r,e){const t=It(r),n=dn(r),o=t.visualViewport;let s=n.clientWidth,i=n.clientHeight,l=0,c=0;if(o){s=o.width,i=o.height;const d=$p();(!d||d&&e==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:i,x:l,y:c}}function mA(r,e){const t=_o(r,!0,e==="fixed"),n=t.top+r.clientTop,o=t.left+r.clientLeft,s=Ir(r)?gs(r):jn(1),i=r.clientWidth*s.x,l=r.clientHeight*s.y,c=o*s.x,d=n*s.y;return{width:i,height:l,x:c,y:d}}function _0(r,e,t){let n;if(e==="viewport")n=pA(r,t);else if(e==="document")n=fA(dn(r));else if(an(e))n=mA(e,t);else{const o=fw(r);n={...e,x:e.x-o.x,y:e.y-o.y}}return Rc(n)}function gw(r,e){const t=Ts(r);return t===e||!an(t)||md(t)?!1:Kt(t).position==="fixed"||gw(t,e)}function gA(r,e){const t=e.get(r);if(t)return t;let n=fi(r,[],!1).filter(l=>an(l)&&sn(l)!=="body"),o=null;const s=Kt(r).position==="fixed";let i=s?Ts(r):r;for(;an(i)&&!md(i);){const l=Kt(i),c=Sp(i);!c&&l.position==="fixed"&&(o=null),(s?!c&&!o:!c&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ei(i)&&!c&&gw(r,i))?n=n.filter(u=>u!==i):o=l,i=Ts(i)}return e.set(r,n),n}function OA(r){let{element:e,boundary:t,rootBoundary:n,strategy:o}=r;const i=[...t==="clippingAncestors"?gA(e,this._c):[].concat(t),n],l=i[0],c=i.reduce((d,u)=>{const h=_0(e,u,o);return d.top=vo(h.top,d.top),d.right=Ec(h.right,d.right),d.bottom=Ec(h.bottom,d.bottom),d.left=vo(h.left,d.left),d},_0(e,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function yA(r){const{width:e,height:t}=hw(r);return{width:e,height:t}}function bA(r,e,t){const n=Ir(e),o=dn(e),s=t==="fixed",i=_o(r,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=jn(0);if(n||!n&&!s)if((sn(e)!=="body"||Ei(o))&&(l=gd(e)),n){const h=_o(e,!0,s,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else o&&(c.x=mw(o));const d=i.left+l.scrollLeft-c.x,u=i.top+l.scrollTop-c.y;return{x:d,y:u,width:i.width,height:i.height}}function C0(r,e){return!Ir(r)||Kt(r).position==="fixed"?null:e?e(r):r.offsetParent}function Ow(r,e){const t=It(r);if(!Ir(r)||pw(r))return t;let n=C0(r,e);for(;n&&aA(n)&&Kt(n).position==="static";)n=C0(n,e);return n&&(sn(n)==="html"||sn(n)==="body"&&Kt(n).position==="static"&&!Sp(n))?t:n||iA(r)||t}const vA=async function(r){const e=this.getOffsetParent||Ow,t=this.getDimensions;return{reference:bA(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,...await t(r.floating)}}};function wA(r){return Kt(r).direction==="rtl"}const kA={convertOffsetParentRelativeRectToViewportRelativeRect:uA,getDocumentElement:dn,getClippingRect:OA,getOffsetParent:Ow,getElementRects:vA,getClientRects:hA,getDimensions:yA,getScale:gs,isElement:an,isRTL:wA};function SA(r,e){let t=null,n;const o=dn(r);function s(){var l;clearTimeout(n),(l=t)==null||l.disconnect(),t=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:d,top:u,width:h,height:f}=r.getBoundingClientRect();if(l||e(),!h||!f)return;const p=$l(u),m=$l(o.clientWidth-(d+h)),g=$l(o.clientHeight-(u+f)),O=$l(d),b={rootMargin:-p+"px "+-m+"px "+-g+"px "+-O+"px",threshold:vo(0,Ec(1,c))||1};let v=!0;function k(S){const w=S[0].intersectionRatio;if(w!==c){if(!v)return i();w?i(!1,w):n=setTimeout(()=>{i(!1,1e-7)},100)}v=!1}try{t=new IntersectionObserver(k,{...b,root:o.ownerDocument})}catch{t=new IntersectionObserver(k,b)}t.observe(r)}return i(!0),s}function $A(r,e,t,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=Pp(r),u=o||s?[...d?fi(d):[],...fi(e)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",t,{passive:!0}),s&&y.addEventListener("resize",t)});const h=d&&l?SA(d,t):null;let f=-1,p=null;i&&(p=new ResizeObserver(y=>{let[b]=y;b&&b.target===d&&p&&(p.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(e)})),t()}),d&&!c&&p.observe(d),p.observe(e));let m,g=c?_o(r):null;c&&O();function O(){const y=_o(r);g&&(y.x!==g.x||y.y!==g.y||y.width!==g.width||y.height!==g.height)&&t(),g=y,m=requestAnimationFrame(O)}return t(),()=>{var y;u.forEach(b=>{o&&b.removeEventListener("scroll",t),s&&b.removeEventListener("resize",t)}),h==null||h(),(y=p)==null||y.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const PA=sA,xA=rA,_A=(r,e,t)=>{const n=new Map,o={platform:kA,...t},s={...o.platform,_c:n};return tA(r,e,{...o,platform:s})};function CA(r){return r!=null&&typeof r=="object"&&"$el"in r}function T0(r){if(CA(r)){const e=r.$el;return kp(e)&&sn(e)==="#comment"?null:e}return r}function yw(r){return typeof window>"u"?1:(r.ownerDocument.defaultView||window).devicePixelRatio||1}function Q0(r,e){const t=yw(r);return Math.round(e*t)/t}function TA(r,e,t){t===void 0&&(t={});const n=t.whileElementsMounted,o=a.computed(()=>{var $;return($=a.unref(t.open))!=null?$:!0}),s=a.computed(()=>a.unref(t.middleware)),i=a.computed(()=>{var $;return($=a.unref(t.placement))!=null?$:"bottom"}),l=a.computed(()=>{var $;return($=a.unref(t.strategy))!=null?$:"absolute"}),c=a.computed(()=>{var $;return($=a.unref(t.transform))!=null?$:!0}),d=a.computed(()=>T0(r.value)),u=a.computed(()=>T0(e.value)),h=a.ref(0),f=a.ref(0),p=a.ref(l.value),m=a.ref(i.value),g=a.shallowRef({}),O=a.ref(!1),y=a.computed(()=>{const $={position:p.value,left:"0",top:"0"};if(!u.value)return $;const T=Q0(u.value,h.value),R=Q0(u.value,f.value);return c.value?{...$,transform:"translate("+T+"px, "+R+"px)",...yw(u.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:T+"px",top:R+"px"}});let b;function v(){d.value==null||u.value==null||_A(d.value,u.value,{middleware:s.value,placement:i.value,strategy:l.value}).then($=>{h.value=$.x,f.value=$.y,p.value=$.strategy,m.value=$.placement,g.value=$.middlewareData,O.value=!0})}function k(){typeof b=="function"&&(b(),b=void 0)}function S(){if(k(),n===void 0){v();return}if(d.value!=null&&u.value!=null){b=n(d.value,u.value,v);return}}function w(){o.value||(O.value=!1)}return a.watch([s,i,l],v,{flush:"sync"}),a.watch([d,u],S,{flush:"sync"}),a.watch(o,w,{flush:"sync"}),a.getCurrentScope()&&a.onScopeDispose(k),{x:a.shallowReadonly(h),y:a.shallowReadonly(f),strategy:a.shallowReadonly(p),placement:a.shallowReadonly(m),middlewareData:a.shallowReadonly(g),isPositioned:a.shallowReadonly(O),floatingStyles:y,update:v}}const sf="scalar-component",QA=UN({extend:{classGroups:{"font-size":["text-xxs"],[sf]:[sf]}}}),{cva:xp,cx:Ao,compose:DY}=fN({hooks:{onComplete:r=>`${QA(r,sf)}`}}),EA=a.createStaticVNode('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-47faceda></path>',5),NA={key:0,class:"circular-loader"},AA=a.defineComponent({__name:"ScalarLoading",props:{loadingState:{},size:{default:"24px"}},setup(r){return a.useCssVars(e=>({d6cae758:e.size})),(e,t)=>e.loadingState?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(a.unref(Ao)("loader-wrapper"))},[(a.openBlock(),a.createElementBlock("svg",{class:a.normalizeClass(["svg-loader",{"icon-is-valid":e.loadingState.isValid,"icon-is-invalid":e.loadingState.isInvalid}]),viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[EA,e.loadingState.isLoading?(a.openBlock(),a.createElementBlock("g",NA,[a.createElementVNode("circle",{class:a.normalizeClass(["loader-path",{"loader-path-off":e.loadingState.isValid||e.loadingState.isInvalid}]),cx:"50",cy:"50",fill:"none",r:"20","stroke-width":"2"},null,2)])):a.createCommentVNode("",!0)],2))],2)):a.createCommentVNode("",!0)}}),RA=(r,e)=>{const t=r.__vccOpts||r;for(const[n,o]of e)t[n]=o;return t},bw=RA(AA,[["__scopeId","data-v-47faceda"]]),vw={solid:["scalar-button-solid","bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"],outlined:["scalar-button-outlined","active:bg-btn-1 border border-solid border-border bg-transparent text-fore-1 hocus:bg-border"],ghost:["scalar-button-ghost","bg-transparent text-fore-3 active:text-fore-2 hocus:text-fore-2"],danger:["scalar-button-danger","bg-error text-white active:brightness-90 hocus:brightness-90"]},VA=xp({base:"scalar-button row cursor-pointer items-center justify-center rounded font-medium",variants:{disabled:{true:"bg-background-2 text-color-3 cursor-not-allowed shadow-none"},fullWidth:{true:"w-full"},size:{md:"h-10 px-6 text-sm"},variant:vw},compoundVariants:[{disabled:!0,variant:"ghost",class:"bg-transparent text-ghost"}]}),BA=["ariaDisabled"],ZA={key:0,class:"mr-2 h-4 w-4"},IA={key:1,class:"ml-2"},af=a.defineComponent({inheritAttrs:!1,__name:"ScalarButton",props:{disabled:{type:Boolean},fullWidth:{type:Boolean,default:!1},loading:{},size:{default:"md"},variant:{default:"solid"}},setup(r){const e=a.computed(()=>{const{class:t,...n}=a.useAttrs();return{className:t||"",rest:n}});return(t,n)=>(a.openBlock(),a.createElementBlock("button",a.mergeProps(e.value.rest,{ariaDisabled:t.disabled||void 0,class:a.unref(Ao)(a.unref(VA)({fullWidth:t.fullWidth,disabled:t.disabled,size:t.size,variant:t.variant}),{"pl-9 pr-3":t.loading},`${e.value.className}`),type:"button"}),[t.$slots.icon?(a.openBlock(),a.createElementBlock("div",ZA,[a.renderSlot(t.$slots,"icon")])):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"default"),t.loading?(a.openBlock(),a.createElementBlock("div",IA,[a.createVNode(a.unref(bw),{loadingState:t.loading,size:"20px"},null,8,["loadingState"])])):a.createCommentVNode("",!0)],16,BA))}});(function(r){var e="\\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",t={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:t,environment:{pattern:RegExp("\\$"+e),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("(\\{)"+e),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})/};r.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;|&]|[<>]\\()"+e),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:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:t}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:n.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}},t.inside=r.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=n.variable[1].inside,i=0;i<o.length;i++)s[o[i]]=r.languages.bash[o[i]];r.languages.sh=r.languages.bash,r.languages.shell=r.languages.bash})(Prism);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;(function(){if(typeof Prism>"u"||typeof document>"u")return;var r="line-numbers",e=/\n(?!$)/g,t=Prism.plugins.lineNumbers={getLine:function(i,l){if(!(i.tagName!=="PRE"||!i.classList.contains(r))){var c=i.querySelector(".line-numbers-rows");if(c){var d=parseInt(i.getAttribute("data-start"),10)||1,u=d+(c.children.length-1);l<d&&(l=d),l>u&&(l=u);var h=l-d;return c.children[h]}}},resize:function(i){n([i])},assumeViewportIndependence:!0};function n(i){if(i=i.filter(function(c){var d=o(c),u=d["white-space"];return u==="pre-wrap"||u==="pre-line"}),i.length!=0){var l=i.map(function(c){var d=c.querySelector("code"),u=c.querySelector(".line-numbers-rows");if(!(!d||!u)){var h=c.querySelector(".line-numbers-sizer"),f=d.textContent.split(e);h||(h=document.createElement("span"),h.className="line-numbers-sizer",d.appendChild(h)),h.innerHTML="0",h.style.display="block";var p=h.getBoundingClientRect().height;return h.innerHTML="",{element:c,lines:f,lineHeights:[],oneLinerHeight:p,sizer:h}}}).filter(Boolean);l.forEach(function(c){var d=c.sizer,u=c.lines,h=c.lineHeights,f=c.oneLinerHeight;h[u.length-1]=void 0,u.forEach(function(p,m){if(p&&p.length>1){var g=d.appendChild(document.createElement("span"));g.style.display="block",g.textContent=p}else h[m]=f})}),l.forEach(function(c){for(var d=c.sizer,u=c.lineHeights,h=0,f=0;f<u.length;f++)u[f]===void 0&&(u[f]=d.children[h++].getBoundingClientRect().height)}),l.forEach(function(c){var d=c.sizer,u=c.element.querySelector(".line-numbers-rows");d.style.display="none",d.innerHTML="",c.lineHeights.forEach(function(h,f){u.children[f].style.height=h+"px"})})}}function o(i){return i?window.getComputedStyle?getComputedStyle(i):i.currentStyle||null:null}var s=void 0;window.addEventListener("resize",function(){t.assumeViewportIndependence&&s===window.innerWidth||(s=window.innerWidth,n(Array.prototype.slice.call(document.querySelectorAll("pre."+r))))}),Prism.hooks.add("complete",function(i){if(i.code){var l=i.element,c=l.parentNode;if(!(!c||!/pre/i.test(c.nodeName))&&!l.querySelector(".line-numbers-rows")&&Prism.util.isActive(l,r)){l.classList.remove(r),c.classList.add(r);var d=i.code.match(e),u=d?d.length+1:1,h,f=new Array(u+1).join("<span></span>");h=document.createElement("span"),h.setAttribute("aria-hidden","true"),h.className="line-numbers-rows",h.innerHTML=f,c.hasAttribute("data-start")&&(c.style.counterReset="linenumber "+(parseInt(c.getAttribute("data-start"),10)-1)),i.element.appendChild(h),n([c]),Prism.hooks.run("line-numbers",i)}}}),Prism.hooks.add("line-numbers",function(i){i.plugins=i.plugins||{},i.plugins.lineNumbers=!0})})();function jA(r){const e=new Set;return JSON.stringify(r,(t,n)=>{if(typeof n=="object"&&n!==null){if(e.has(n))return"[Circular]";e.add(n)}return n},2)}function Pl(r){if(typeof r=="string")return r;if(typeof r=="object")try{return JSON.stringify(r,null,2)}catch{return jA(r)}return r}const DA=["innerHTML"],Lr=a.defineComponent({__name:"ScalarCodeBlock",props:{content:{},lang:{default:"js"},lineNumbers:{type:Boolean,default:!1},hideCredentials:{}},setup(r){const e=r,t=Zf(Pl(e.content)),n=`components-scalar-code-block${t}`,{plugins:o,highlightElement:s}=pa;e.hideCredentials&&pa.hooks.add("wrap",function(h){if(!e.hideCredentials)return;let f=!1;typeof e.hideCredentials=="string"?h.content.includes(e.hideCredentials)&&(f=!0):Array.isArray(e.hideCredentials)&&(f=e.hideCredentials.some(p=>h.content.includes(p))),f&&(h.content=h.content.replace(/<span class="credentials">.*?<\/span>/g,p=>p.replace(/<span class="credentials">|<\/span>/g,"")),h.content=h.content.replace(new RegExp(typeof e.hideCredentials=="string"?e.hideCredentials:e.hideCredentials.join("|"),"g"),p=>`<span class="credentials">${p}</span>`))});const i=a.ref(null),l=a.ref(Bs[n]??""),c=a.computed(()=>e.lang==="node"?"js":e.lang),d=e.lang;a.watch([()=>e.lang,()=>e.content,i],()=>{i.value&&e.content&&(!l.value||e.lang!==d)&&(l.value="",a.nextTick(()=>s(i.value)))},{immediate:!0});const u=/\n(?!$)/g;return a.onServerPrefetch(async()=>{let h="";e.lineNumbers&&pa.hooks.add("after-tokenize",p=>{const m=p.code.match(u),g=m?m.length+1:1;h=`<span aria-hidden="true" class="line-numbers-rows">${new Array(g+1).join("<span></span>")}</span>`});const f=pa.highlight(Pl(e.content),pa.languages[c.value],c.value);if(l.value=f+h,t!==0){const p=a.useSSRContext();p.payload.data[n]=f+h}}),a.onMounted(async()=>{await Promise.resolve().then(()=>require("./prism-autoloader-Dlh8Vzlw--ejn04HW.cjs")),o.autoloader.languages_path="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/"}),(h,f)=>(a.openBlock(),a.createElementBlock("pre",{class:a.normalizeClass([`scalar-component scalar-codeblock-pre language-${c.value}`,{"line-numbers":h.lineNumbers}])},[l.value?(a.openBlock(),a.createElementBlock("code",{key:0,class:a.normalizeClass(`scalar-codeblock-code language-${c.value}`),innerHTML:a.unref(Pl)(l.value)},null,10,DA)):(a.openBlock(),a.createElementBlock("code",{key:1,ref_key:"el",ref:i,class:a.normalizeClass(`scalar-codeblock-code language-${c.value}`)},a.toDisplayString(a.unref(Pl)(h.content)),3))],2))}}),E0=Object.assign({"./Add.svg":()=>Promise.resolve().then(()=>require("./Add-ngyZgYXx-CWPoroGU.cjs")),"./Background.svg":()=>Promise.resolve().then(()=>require("./Background-DcRhSHgf-7l5O3oYH.cjs")),"./Brackets.svg":()=>Promise.resolve().then(()=>require("./Brackets-4I8OKomf-C2VxZ6iW.cjs")),"./Branch.svg":()=>Promise.resolve().then(()=>require("./Branch-CXwj8YuG-xolS1YAY.cjs")),"./CallToAction.svg":()=>Promise.resolve().then(()=>require("./CallToAction-EyQKkvbg-Eo_9FsiI.cjs")),"./Checkmark.svg":()=>Promise.resolve().then(()=>require("./Checkmark-De7nq6cG-tp1nTP9w.cjs")),"./ChevronDown.svg":()=>Promise.resolve().then(()=>require("./ChevronDown-Co7EAKAv-BMVIms1W.cjs")),"./ChevronLeft.svg":()=>Promise.resolve().then(()=>require("./ChevronLeft-DYt0idAu-DgJ680do.cjs")),"./ChevronRight.svg":()=>Promise.resolve().then(()=>require("./ChevronRight-ylxToVWl-BVcmudpo.cjs")),"./ChevronUp.svg":()=>Promise.resolve().then(()=>require("./ChevronUp-xAnukIfj-BRXM2fAN.cjs")),"./Clipboard.svg":()=>Promise.resolve().then(()=>require("./Clipboard-CU_KxGEv-jXeM-Shn.cjs")),"./Close.svg":()=>Promise.resolve().then(()=>require("./Close-CW3z42qZ-CAmO5dZ5.cjs")),"./CodeFolder.svg":()=>Promise.resolve().then(()=>require("./CodeFolder-Cv_igzJE-Dl4HVTRL.cjs")),"./Cookie.svg":()=>Promise.resolve().then(()=>require("./Cookie-CEHvXpqB-BCUOR3DZ.cjs")),"./DarkMode.svg":()=>Promise.resolve().then(()=>require("./DarkMode-CBsV8Q_I-KODSbuOz.cjs")),"./Delete.svg":()=>Promise.resolve().then(()=>require("./Delete-BCZmxrDD-C-UeHTm2.cjs")),"./Discord.svg":()=>Promise.resolve().then(()=>require("./Discord-BHYOFBB2-BzF4Z2zQ.cjs")),"./DocsPage.svg":()=>Promise.resolve().then(()=>require("./DocsPage-rh2xwxKN-EMPYZ-u6.cjs")),"./Duplicate.svg":()=>Promise.resolve().then(()=>require("./Duplicate-BPlzNpcf-Uk5uZ5gd.cjs")),"./Edit.svg":()=>Promise.resolve().then(()=>require("./Edit-Br04RNYb-bn7B8ziL.cjs")),"./Ellipses.svg":()=>Promise.resolve().then(()=>require("./Ellipses-Bo_X36Hx-1Rf8jX_Q.cjs")),"./Error.svg":()=>Promise.resolve().then(()=>require("./Error-B_RGtWJI-kZYauS2f.cjs")),"./ExternalLink.svg":()=>Promise.resolve().then(()=>require("./ExternalLink-DK8L-EH7-BZtIWcdg.cjs")),"./Folder.svg":()=>Promise.resolve().then(()=>require("./Folder-Cdcj4evh-JrdpqKfO.cjs")),"./GitHub.svg":()=>Promise.resolve().then(()=>require("./GitHub-NdE6Zs9k-CDcqenD_.cjs")),"./Hide.svg":()=>Promise.resolve().then(()=>require("./Hide-Q3GPkIKH-Ba4DV2wS.cjs")),"./JsonObject.svg":()=>Promise.resolve().then(()=>require("./JsonObject-hGdHUQ4M-DEiEsxEM.cjs")),"./Key.svg":()=>Promise.resolve().then(()=>require("./Key-CWXJqX28-D85Imfdm.cjs")),"./Leave.svg":()=>Promise.resolve().then(()=>require("./Leave-K1J3uwoG-COzffJei.cjs")),"./LightDarkModeToggle.svg":()=>Promise.resolve().then(()=>require("./LightDarkModeToggle-BkvMimDa-D2TvUWMc.cjs")),"./LightMode.svg":()=>Promise.resolve().then(()=>require("./LightMode-Btz6vyT_-BTswDMO7.cjs")),"./Link.svg":()=>Promise.resolve().then(()=>require("./Link-Bzuc__Nc-C0VSCFw-.cjs")),"./Lock.svg":()=>Promise.resolve().then(()=>require("./Lock-xhiH1mKz-sEHw9FoO.cjs")),"./Logo.svg":()=>Promise.resolve().then(()=>require("./Logo-mtzeKD8M-BPvZdgPX.cjs")),"./LogoAPI.svg":()=>Promise.resolve().then(()=>require("./LogoAPI-CaU5E6FK-H9aWX-Pj.cjs")),"./LogoClient.svg":()=>Promise.resolve().then(()=>require("./LogoClient-DdC-t_7P-CN0J-Vs6.cjs")),"./LogoMarket.svg":()=>Promise.resolve().then(()=>require("./LogoMarket-DwlApcab-C3B4miZm.cjs")),"./LogoSwagger.svg":()=>Promise.resolve().then(()=>require("./LogoSwagger-CH60H5qW-56_9U30I.cjs")),"./Magic.svg":()=>Promise.resolve().then(()=>require("./Magic-Dsi9_bEc-Bz81CcSu.cjs")),"./Menu.svg":()=>Promise.resolve().then(()=>require("./Menu-CFK5cOsm-B_mqCQj6.cjs")),"./Page.svg":()=>Promise.resolve().then(()=>require("./Page-B7rVuhpl-DfOGMkFM.cjs")),"./PaperAirplane.svg":()=>Promise.resolve().then(()=>require("./PaperAirplane-BC-4mGEB-CUmTyNIM.cjs")),"./Payment.svg":()=>Promise.resolve().then(()=>require("./Payment-hzcXP1Xb-DA7pQdWt.cjs")),"./Refresh.svg":()=>Promise.resolve().then(()=>require("./Refresh-Be6vHEEi-CbpDdpiC.cjs")),"./Search.svg":()=>Promise.resolve().then(()=>require("./Search-DqtlswRG-Cn8bmF-2.cjs")),"./Show.svg":()=>Promise.resolve().then(()=>require("./Show-D86hKz5y-DCaWj13Q.cjs")),"./SideBarClosed.svg":()=>Promise.resolve().then(()=>require("./SideBarClosed-CYUNS2XM-BrkKCJbJ.cjs")),"./SideBarOpen.svg":()=>Promise.resolve().then(()=>require("./SideBarOpen-BOxW49_U-1NTFL81x.cjs")),"./Terminal.svg":()=>Promise.resolve().then(()=>require("./Terminal-CKp--su5-B0pjt_Yz.cjs")),"./ThumbsDown.svg":()=>Promise.resolve().then(()=>require("./ThumbsDown-BMgnsASL-C-sKah3X.cjs")),"./ThumbsUp.svg":()=>Promise.resolve().then(()=>require("./ThumbsUp-C1j6zY2j-CBEvfE8L.cjs")),"./Trash.svg":()=>Promise.resolve().then(()=>require("./Trash-BpA3zWPD-C-UeHTm2.cjs")),"./Unlock.svg":()=>Promise.resolve().then(()=>require("./Unlock-CY8UqJoE-C46tGVrb.cjs")),"./Upload.svg":()=>Promise.resolve().then(()=>require("./Upload-REIdL7RI-C6EgO_Ra.cjs")),"./User.svg":()=>Promise.resolve().then(()=>require("./User-Df5svMQ3-BzQcMZ_8.cjs")),"./programming-framework-angular.svg":()=>Promise.resolve().then(()=>require("./programming-framework-angular-DD4Vjgbk-BVT4AoJo.cjs")),"./programming-framework-astro.svg":()=>Promise.resolve().then(()=>require("./programming-framework-astro-CLfrRt19-CWwhfV7_.cjs")),"./programming-framework-laravel.svg":()=>Promise.resolve().then(()=>require("./programming-framework-laravel-kAy2wVLy-C3EZCsGC.cjs")),"./programming-framework-nextdotjs.svg":()=>Promise.resolve().then(()=>require("./programming-framework-nextdotjs-BKdd_DY_-DdOe6YSk.cjs")),"./programming-framework-react.svg":()=>Promise.resolve().then(()=>require("./programming-framework-react-PDgmtZuN-4I-M6WEO.cjs")),"./programming-framework-vuedotjs.svg":()=>Promise.resolve().then(()=>require("./programming-framework-vuedotjs-Cv46W2aB-CSjgwP_a.cjs")),"./programming-language-c.svg":()=>Promise.resolve().then(()=>require("./programming-language-c-hPGu2Zvg-DS__u0q2.cjs")),"./programming-language-clojure.svg":()=>Promise.resolve().then(()=>require("./programming-language-clojure-Cvmzky8x-DNGq1StI.cjs")),"./programming-language-csharp.svg":()=>Promise.resolve().then(()=>require("./programming-language-csharp-lqX1oWgb-CxB0WO6j.cjs")),"./programming-language-css3.svg":()=>Promise.resolve().then(()=>require("./programming-language-css3-Dpp4Cr6b-BpPnE1ET.cjs")),"./programming-language-go.svg":()=>Promise.resolve().then(()=>require("./programming-language-go-DoJxWwT6-Cglob461.cjs")),"./programming-language-html5.svg":()=>Promise.resolve().then(()=>require("./programming-language-html5-DlqJK4EL-DFJ6lim3.cjs")),"./programming-language-http.svg":()=>Promise.resolve().then(()=>require("./programming-language-http-wMYwFS1I-CibNNxob.cjs")),"./programming-language-java.svg":()=>Promise.resolve().then(()=>require("./programming-language-java-BCxG2T_w-CK_n5AN7.cjs")),"./programming-language-javascript.svg":()=>Promise.resolve().then(()=>require("./programming-language-javascript-VxLvi1QG-CaGGjM9H.cjs")),"./programming-language-json.svg":()=>Promise.resolve().then(()=>require("./programming-language-json-vEX_g7Zi-DzQJGa14.cjs")),"./programming-language-kotlin.svg":()=>Promise.resolve().then(()=>require("./programming-language-kotlin-DKV8vP9h-DlGiFCvD.cjs")),"./programming-language-node.svg":()=>Promise.resolve().then(()=>require("./programming-language-node-Xsgx38lm-4rntKdSG.cjs")),"./programming-language-objc.svg":()=>Promise.resolve().then(()=>require("./programming-language-objc-BQXSOBsX-ChHn3rog.cjs")),"./programming-language-ocaml.svg":()=>Promise.resolve().then(()=>require("./programming-language-ocaml-BEz7gGv7-pjGiVCW2.cjs")),"./programming-language-php.svg":()=>Promise.resolve().then(()=>require("./programming-language-php-GY38f8r4-ahFMWcim.cjs")),"./programming-language-powershell.svg":()=>Promise.resolve().then(()=>require("./programming-language-powershell-C9DkSp36-RwdG5MCL.cjs")),"./programming-language-python.svg":()=>Promise.resolve().then(()=>require("./programming-language-python-Ct-_kNjo-ujN06OXX.cjs")),"./programming-language-r.svg":()=>Promise.resolve().then(()=>require("./programming-language-r-BGoKwua9-DynRqt7q.cjs")),"./programming-language-ruby.svg":()=>Promise.resolve().then(()=>require("./programming-language-ruby-DhdM4d7g-DFwAUdk6.cjs")),"./programming-language-scala.svg":()=>Promise.resolve().then(()=>require("./programming-language-scala-BVg0dToJ-Dhg_XTFe.cjs")),"./programming-language-shell.svg":()=>Promise.resolve().then(()=>require("./programming-language-shell-BsTa1xI7-CEpfIQQF.cjs")),"./programming-language-swift.svg":()=>Promise.resolve().then(()=>require("./programming-language-swift-Dn72xPjg-DtICVxss.cjs")),"./programming-language-typescript.svg":()=>Promise.resolve().then(()=>require("./programming-language-typescript-CdF-HuRi-jq2P_J1a.cjs")),"./programming-script-code.svg":()=>Promise.resolve().then(()=>require("./programming-script-code-DQN1veb2-DWnN18iL.cjs")),"./programming-tool-git.svg":()=>Promise.resolve().then(()=>require("./programming-tool-git-DDnQ1zGD-Bi0r1H3m.cjs")),"./programming-tool-tailwindcss.svg":()=>Promise.resolve().then(()=>require("./programming-tool-tailwindcss-xjXi0E6g-CpFF5bAj.cjs"))}),N0=r=>{const e=`./${r}.svg`;return E0[e]?a.defineAsyncComponent(E0[e]):(console.warn(`Could not find icon: ${r}`),null)},MA=["src"],Ze=a.defineComponent({__name:"ScalarIcon",props:{icon:{},size:{}},setup(r){const e=r,t=xp({variants:{size:{xs:"h-3 w-3 stroke-[1.4]",sm:"h-3.5 w-3.5 stroke-[1.2]",md:"h-4 w-4 stroke-[1.1]",lg:"h-5 w-5",xl:"h-6 w-6 stroke-[0.96]","2xl":"h-8 w-8 stroke-[0.92]","3xl":"h-10 w-10 stroke-[0.9]",full:"h-full w-full"}},defaultVariants:{size:"full"}}),n=N0(e.icon);return(o,s)=>a.unref(n)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(N0)(o.icon)),{key:0,class:a.normalizeClass(a.unref(Ao)("scalar-icon",a.unref(t)({size:o.size})))},null,8,["class"])):(a.openBlock(),a.createElementBlock("img",{key:1,src:o.icon},null,8,MA))}}),qA=["ariaDisabled"],XA={class:"sr-only"},Ni=a.defineComponent({__name:"ScalarIconButton",props:{label:{},icon:{},disabled:{type:Boolean},variant:{default:"ghost"},size:{default:"md"}},setup(r){const e=xp({base:"scalar-icon-button grid aspect-square cursor-pointer rounded",variants:{size:{xs:"h-3.5 w-3.5 p-0.5",sm:"h-5 w-5 p-1",md:"h-10 w-10 p-3",full:"h-full w-full"},disabled:{true:"cursor-not-allowed shadow-none"},variant:vw}});return(t,n)=>(a.openBlock(),a.createElementBlock("button",{ariaDisabled:t.disabled||void 0,class:a.normalizeClass(a.unref(Ao)(a.unref(e)({size:t.size,variant:t.variant,disabled:t.disabled}))),type:"button"},[a.createVNode(a.unref(Ze),{icon:t.icon},null,8,["icon"]),a.createElementVNode("span",XA,a.toDisplayString(t.label),1)],10,qA))}}),WA={class:"sr-only"},zA=["value"],UA=a.defineComponent({inheritAttrs:!1,__name:"ScalarSearchInput",props:{loading:{},modelValue:{}},emits:["update:modelValue"],setup(r,{emit:e}){const t=e;function n(s){t("update:modelValue",s.target.value)}const o=a.computed(()=>{const{class:s,...i}=a.useAttrs();return{className:s||"",rest:i}});return(s,i)=>(a.openBlock(),a.createElementBlock("label",a.mergeProps(o.value.rest,{class:a.unref(Ao)("flex rounded border bg-back-1 text-sm font-medium focus-within:border-fore-1",o.value.className)}),[a.createElementVNode("span",WA,[a.renderSlot(s.$slots,"label",{},()=>[a.createTextVNode("Enter search")])]),a.createElementVNode("input",{autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"flex-1 rounded bg-transparent p-3 outline-none",placeholder:"Search...",spellcheck:"false",type:"text",value:s.modelValue,onInput:n},null,40,zA),s.loading&&s.loading.isLoading?(a.openBlock(),a.createBlock(a.unref(bw),{key:0,class:"mr-3 self-center",loadingState:s.loading,size:"20px"},null,8,["loadingState"])):s.modelValue?(a.openBlock(),a.createBlock(a.unref(Ni),{key:1,class:"self-center",icon:"Close",label:"Clear Search",size:"md",onClick:i[0]||(i[0]=l=>t("update:modelValue",""))})):a.createCommentVNode("",!0)],16))}}),YA={class:"flex flex-col items-center gap-2 px-3 py-4"},LA=a.createElementVNode("div",{class:"rotate-90 text-lg font-bold"},":(",-1),HA={class:"text-sm font-medium text-fore-2"},GA=a.defineComponent({inheritAttrs:!1,__name:"ScalarSearchResultList",props:{noResults:{type:Boolean}},setup(r){const e=a.computed(()=>{const{class:t,...n}=a.useAttrs();return{className:t||"",rest:n}});return(t,n)=>(a.openBlock(),a.createElementBlock("ul",a.mergeProps(e.value.rest,{class:a.unref(Ao)("flex flex-col",e.value.className)}),[t.noResults?a.renderSlot(t.$slots,"noResults",{key:0},()=>[a.createElementVNode("div",YA,[LA,a.createElementVNode("div",HA,[a.createTextVNode(" No results found "),t.$slots.query?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode('for "'),a.renderSlot(t.$slots,"query"),a.createTextVNode('"')],64)):a.createCommentVNode("",!0)])])]):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"default")],16))}}),FA={class:"contents"},KA={class:"text-fore-3 group-hover:text-fore-1"},JA={class:"flex min-w-0 flex-1 flex-col gap-0.75"},eR={class:"flex items-center gap-1"},tR={class:"flex-1 truncate text-sm font-medium"},rR={key:0,class:"text-xs text-fore-2"},nR={class:"truncate text-xs text-fore-2"},oR=a.defineComponent({inheritAttrs:!1,__name:"ScalarSearchResultItem",props:{icon:{},active:{type:Boolean}},setup(r){const e=a.computed(()=>{const{class:t,...n}=a.useAttrs();return{className:t||"",rest:n}});return(t,n)=>(a.openBlock(),a.createElementBlock("li",FA,[a.createElementVNode("a",a.mergeProps(e.value.rest,{class:a.unref(Ao)("group flex cursor-pointer gap-3 rounded px-3 py-1.5 no-underline hover:bg-back-2",{"bg-back-2":t.active},e.value.className)}),[a.createElementVNode("div",KA,[a.renderSlot(t.$slots,"icon",{},()=>[t.icon?(a.openBlock(),a.createBlock(a.unref(Ze),{key:0,icon:t.icon,size:"sm"},null,8,["icon"])):a.createCommentVNode("",!0)])]),a.createElementVNode("div",JA,[a.createElementVNode("div",eR,[a.createElementVNode("div",tR,[a.renderSlot(t.$slots,"default")]),t.$slots.addon?(a.openBlock(),a.createElementBlock("div",rR,[a.renderSlot(t.$slots,"addon")])):a.createCommentVNode("",!0)]),a.createElementVNode("div",nR,[a.renderSlot(t.$slots,"description")])])],16)]))}}),sR={class:"card-form-input"},aR=["for"],iR=["id","type"],lR=a.defineComponent({inheritAttrs:!1,__name:"CardFormTextInput",props:{id:{},type:{}},setup(r){const e=r,t=a.ref(!0),n=a.computed(()=>e.type==="password"?t.value?"password":"text":e.type??"text");return(o,s)=>(a.openBlock(),a.createElementBlock("div",sR,[a.createElementVNode("label",{for:o.id},[a.renderSlot(o.$slots,"default",{},void 0,!0)],8,aR),a.createElementVNode("input",a.mergeProps(o.$attrs,{id:o.id,autocomplete:"off","data-1p-ignore":"",spellcheck:"false",type:n.value}),null,16,iR),o.type==="password"?(a.openBlock(),a.createBlock(a.unref(Ni),{key:0,class:"password-mask",icon:t.value?"Show":"Hide",label:t.value?"Show Password":"Hide Password",onClick:s[0]||(s[0]=i=>t.value=!t.value)},null,8,["icon","label"])):a.createCommentVNode("",!0)]))}}),Wo=W(lR,[["__scopeId","data-v-f52cad5d"]]),cR={},dR={class:"badge"};function uR(r,e){return a.openBlock(),a.createElementBlock("div",dR,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const hR=W(cR,[["render",uR],["__scopeId","data-v-b99d69c6"]]),fR=r=>(a.pushScopeId("data-v-8ab1bd35"),r=r(),a.popScopeId(),r),pR={class:"scopes-label"},mR=fR(()=>a.createElementVNode("em",null,"|",-1)),gR=["checked"],OR={class:"dropdown-item-title"},yR={class:"dropdown-item-description"},bR=a.defineComponent({__name:"SecuritySchemeScopes",props:{scopes:{},selected:{}},emits:["update:selected"],setup(r,{emit:e}){const t=r,n=e,o=a.ref(),s=a.ref(),{floatingStyles:i}=TA(o,s,{placement:"bottom-end",whileElementsMounted:$A,middleware:[oA(5),xA(),PA()]}),l=a.computed({get:()=>t.selected,set:c=>n("update:selected",c)});return(c,d)=>(a.openBlock(),a.createBlock(a.unref(ye.Listbox),{modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=u=>l.value=u),multiple:""},{default:a.withCtx(({open:u})=>[a.createElementVNode("div",{ref_key:"trigger",ref:o,class:a.normalizeClass(["wrapper",{"wrapper-open":u}])},[a.createVNode(a.unref(ye.ListboxButton),{as:rf},{default:a.withCtx(()=>[a.createElementVNode("div",pR,[a.createVNode(a.unref(Ze),{icon:u?"ChevronUp":"ChevronDown",size:"sm"},null,8,["icon"]),a.createTextVNode(" Scopes "),a.createVNode(a.unref(hR),{class:"scopes-label-badge"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l.value.length),1),mR,a.createTextVNode(a.toDisplayString(Object.entries(c.scopes).length),1)]),_:1})])]),_:2},1024)],2),(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[a.createVNode(a.unref(Wy),null,{default:a.withCtx(({styles:h})=>[a.createElementVNode("div",{ref_key:"dropdown",ref:s,class:a.normalizeClass(["floating",h]),style:a.normalizeStyle(a.unref(i))},[a.createVNode(a.unref(ye.ListboxOptions),{as:"dl",class:"dropdown"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Object.entries(c.scopes),([f,p])=>(a.openBlock(),a.createBlock(a.unref(ye.ListboxOption),{key:f,as:"div",class:"dropdown-item",value:f},{default:a.withCtx(({selected:m})=>[a.createElementVNode("input",{checked:m,class:"dropdown-item-check",tabindex:"-1",type:"checkbox"},null,8,gR),a.createElementVNode("dt",OR,a.toDisplayString(f),1),a.createElementVNode("dd",yR,a.toDisplayString(p),1)]),_:2},1032,["value"]))),128))]),_:1})],6)]),_:1})]))]),_:1},8,["modelValue"]))}}),vR=W(bR,[["__scopeId","data-v-8ab1bd35"]]),wR=a.defineComponent({__name:"SecurityScheme",props:{value:{}},setup(r){const{authentication:e,setAuthentication:t}=qn(),n=h=>{t({apiKey:{...e.apiKey,token:h.target.value}})},o=h=>{t({http:{...e.http,basic:{...e.http.basic,username:h.target.value}}})},s=h=>{t({http:{...e.http,basic:{...e.http.basic,password:h.target.value}}})},i=h=>{t({http:{...e.http,bearer:{...e.http.bearer,token:h.target.value}}})},l=h=>{t({oAuth2:{...e.oAuth2,clientId:h.target.value}})},c=h=>{const f=e.oAuth2.scopes.join(" "),p=(Math.random()+1).toString(36).substring(7),m=new URL(h.authorizationUrl);return t({oAuth2:{...e.oAuth2,state:p}}),m.searchParams.set("response_type","token"),m.searchParams.set("client_id",e.oAuth2.clientId),m.searchParams.set("redirect_uri",window.location.href),m.searchParams.set("scope",f),m.searchParams.set("state",p),m.toString()},d=a.computed({get:()=>e.oAuth2.scopes,set:h=>t({oAuth2:{...e.oAuth2,scopes:h}})}),u=h=>{const p=window.open(h,"openAuth2Window","left=100,top=100,width=800,height=600");if(p){const m=setInterval(function(){var g;try{const y=new URLSearchParams(p.location.href).get("access_token");if(p.closed||y){clearInterval(m);const b=(g=p.location.href.match(/state=([^&]*)/))==null?void 0:g[1];y&&e.oAuth2.state===b&&t({oAuth2:{...e.oAuth2,accessToken:y}}),p.close()}}catch{}},200)}};return(h,f)=>{var p;return h.value&&((p=h.value)!=null&&p.type)?(a.openBlock(),a.createBlock(lN,{key:0},{default:a.withCtx(()=>[h.value.type==="apiKey"?(a.openBlock(),a.createBlock(Wo,{key:0,id:`security-scheme-${h.value.name}`,placeholder:"Token",type:"password",value:a.unref(e).apiKey.token,onInput:n},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.value.in.charAt(0).toUpperCase()+h.value.in.slice(1))+" API ",1)]),_:1},8,["id","value"])):h.value.type==="http"||h.value.type==="basic"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[h.value.type==="basic"||h.value.scheme==="basic"?(a.openBlock(),a.createBlock(y0,{key:0},{default:a.withCtx(()=>[a.createVNode(Wo,{id:"http.basic.username",placeholder:"Username",value:a.unref(e).http.basic.username,onInput:o},{default:a.withCtx(()=>[a.createTextVNode(" Username ")]),_:1},8,["value"]),a.createVNode(Wo,{id:"http.basic.password",placeholder:"Password",type:"password",value:a.unref(e).http.basic.password,onInput:s},{default:a.withCtx(()=>[a.createTextVNode(" Password ")]),_:1},8,["value"])]),_:1})):h.value.type==="http"&&h.value.scheme==="bearer"?(a.openBlock(),a.createBlock(Wo,{key:1,id:"http.bearer.token",placeholder:"Token",type:"password",value:a.unref(e).http.bearer.token,onInput:i},{default:a.withCtx(()=>[a.createTextVNode(" Bearer Token ")]),_:1},8,["value"])):a.createCommentVNode("",!0)],64)):h.value.type.toLowerCase()==="oauth2"&&h.value.flows&&h.value.flows.implicit?(a.openBlock(),a.createBlock(y0,{key:2},{default:a.withCtx(()=>[a.unref(e).oAuth2.accessToken?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(Wo,{id:"oAuth2.accessToken",placeholder:"xxxxx",type:"password",value:a.unref(e).oAuth2.accessToken},{default:a.withCtx(()=>[a.createTextVNode(" Access Token ")]),_:1},8,["value"]),a.createVNode(rf,{onClick:f[0]||(f[0]=()=>a.unref(t)({oAuth2:{...a.unref(e).oAuth2,accessToken:"",state:""}}))},{default:a.withCtx(()=>[a.createTextVNode(" Reset ")]),_:1})],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(Wo,{id:"oAuth2.clientId",placeholder:"12345",type:"text",value:a.unref(e).oAuth2.clientId,onInput:l},{default:a.withCtx(()=>[a.createTextVNode(" Client ID ")]),_:1},8,["value"]),h.value!==void 0?(a.openBlock(),a.createBlock(vR,{key:0,selected:d.value,"onUpdate:selected":f[1]||(f[1]=m=>d.value=m),scopes:h.value.flows.implicit.scopes},null,8,["selected","scopes"])):a.createCommentVNode("",!0),a.createVNode(rf,{onClick:f[2]||(f[2]=()=>{var m;return u(c((m=h.value)==null?void 0:m.flows.implicit))})},{default:a.withCtx(()=>[a.createTextVNode(" Authorize ")]),_:1})],64))]),_:1})):a.createCommentVNode("",!0)]),_:1})):a.createCommentVNode("",!0)}}}),ww=W(wR,[["__scopeId","data-v-e1533daa"]]),kR=r=>(a.pushScopeId("data-v-4a4d4695"),r=r(),a.popScopeId(),r),SR={key:1,class:"security-scheme-selector"},$R=["value"],PR=kR(()=>a.createElementVNode("option",{value:""},"None",-1)),xR=["value"],_R=a.defineComponent({__name:"SecuritySchemeSelector",props:{value:{}},emits:["input"],setup(r,{emit:e}){const t=r,n=e,{authentication:o,setAuthentication:s}=qn(),i=O=>{l(O.target.value)};a.onMounted(()=>{o.preferredSecurityScheme||l(Object.keys(t.value??{})[0]??null)});const l=O=>{s({preferredSecurityScheme:O}),n("input",O)};a.onServerPrefetch(()=>l(Object.keys(t.value??{})[0]??null));const c=O=>!(O!=null&&O.type),d=O=>O.type.toLowerCase()==="apikey",u=O=>O.type==="http"&&O.scheme.toLowerCase()==="basic"||O.type.toLowerCase()==="basic",h=O=>O.type==="http"&&O.scheme.toLowerCase()==="bearer",f=O=>O.type.toLowerCase()==="oauth2",p=(O,y)=>`${m(O)} (${y})`,m=O=>c(O)?"No Authentication":d(O)?"API Key":u(O)?"Basic Authentication":h(O)?"Bearer Authentication":f(O)?"OAuth 2.0":`${O.type} (not yet supported)`,g=a.computed(()=>Object.keys(t.value??{}));return(O,y)=>{var b,v;return g.value.length===1?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(p((b=O.value)==null?void 0:b[g.value[0]],g.value[0])),1)],64)):g.value.length>1?(a.openBlock(),a.createElementBlock("div",SR,[a.createElementVNode("span",null,a.toDisplayString(a.unref(o).preferredSecurityScheme?p((v=O.value)==null?void 0:v[a.unref(o).preferredSecurityScheme],a.unref(o).preferredSecurityScheme):"None"),1),a.createVNode(a.unref(Ze),{icon:"ChevronDown"}),a.createElementVNode("select",{value:a.unref(o).preferredSecurityScheme,onClick:y[0]||(y[0]=a.withModifiers(()=>{},["prevent"])),onInput:i},[PR,(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(g.value,k=>{var S;return a.openBlock(),a.createElementBlock("option",{key:k,value:k??null},a.toDisplayString(p((S=O.value)==null?void 0:S[k],k)),9,xR)}),128))],40,$R)])):a.createCommentVNode("",!0)}}}),kw=W(_R,[["__scopeId","data-v-4a4d4695"]]),CR={key:0,class:"preferred-security-scheme"},TR={key:1,class:"security-scheme-empty-state"},QR=a.defineComponent({__name:"RequestAuthentication",setup(r){const e=a.ref(null);ew.on(()=>{if(!e.value)return;e.value.scrollIntoView({behavior:"smooth",block:"center"})});const{authentication:t,setAuthentication:n}=qn(),o=s=>{n({customSecurity:!0,preferredSecurityScheme:s,securitySchemes:{apiKey:{type:"apiKey",name:"apiKey",in:"header"},httpBasic:{type:"http",scheme:"basic"},httpBearer:{type:"http",scheme:"bearer"}}})};return(s,i)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"requestAuthenticationRef",ref:e},[a.createVNode(a.unref(cn),{title:"Authentication"},{options:a.withCtx(()=>[a.createVNode(kw,{value:a.unref(t).securitySchemes},null,8,["value"])]),default:a.withCtx(()=>{var l;return[a.unref(t).preferredSecurityScheme?(a.openBlock(),a.createElementBlock("div",CR,[a.createVNode(ww,{value:(l=a.unref(t).securitySchemes)==null?void 0:l[a.unref(t).preferredSecurityScheme]},null,8,["value"])])):a.createCommentVNode("",!0),a.unref(t).securitySchemes?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",TR,[a.createElementVNode("div",{class:"scalar-api-client-add",variant:"outlined",onClick:i[0]||(i[0]=c=>o("apiKey"))}," ApiKey "),a.createElementVNode("div",{class:"scalar-api-client-add",variant:"outlined",onClick:i[1]||(i[1]=c=>o("httpBasic"))}," Basic "),a.createElementVNode("div",{class:"scalar-api-client-add",variant:"outlined",onClick:i[2]||(i[2]=c=>o("httpBearer"))}," Bearer ")]))]}),_:1})],512))}}),ER=W(QR,[["__scopeId","data-v-b8475d60"]]),NR={class:"table-row"},AR={class:"table-row-item"},RR={class:"table-row-item"},VR={key:0,class:"table-row-item"},BR={class:"table-row-meta"},ZR=a.defineComponent({__name:"GridRow",props:{showDescription:{type:Boolean}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("div",NR,[a.createElementVNode("div",AR,[a.renderSlot(e.$slots,"key",{},void 0,!0)]),a.createElementVNode("div",RR,[a.renderSlot(e.$slots,"value",{},void 0,!0)]),e.showDescription?(a.openBlock(),a.createElementBlock("div",VR,[a.renderSlot(e.$slots,"description",{},void 0,!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",BR,[a.renderSlot(e.$slots,"meta",{},void 0,!0)])]))}}),_p=W(ZR,[["__scopeId","data-v-65b233b7"]]),Od=r=>(a.pushScopeId("data-v-1678900e"),r=r(),a.popScopeId(),r),IR=Od(()=>a.createElementVNode("label",{class:"table-column-header"},"Key",-1)),jR=Od(()=>a.createElementVNode("label",{class:"table-column-header"},"Value",-1)),DR=Od(()=>a.createElementVNode("label",{class:"table-column-header"},"Description",-1)),MR=Od(()=>a.createElementVNode("svg",{fill:"currentColor",height:"12",viewBox:"0 0 18 12",width:"18",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"M0 12h12v-2H0v2zM0 0v2h18V0H0zm0 7h18V5H0v2z","fill-rule":"nonzero"})],-1)),qR=a.defineComponent({__name:"GridHeader",props:{showDescription:{type:Boolean}},emits:["update:showDescription"],setup(r){return(e,t)=>(a.openBlock(),a.createBlock(_p,{showDescription:e.showDescription},{key:a.withCtx(()=>[IR]),value:a.withCtx(()=>[jR]),description:a.withCtx(()=>[DR]),meta:a.withCtx(()=>[a.createVNode(a.unref(af),{class:"table-description-toggle",variant:"text",onClick:t[0]||(t[0]=n=>e.$emit("update:showDescription",!e.showDescription))},{default:a.withCtx(()=>[MR]),_:1})]),_:1},8,["showDescription"]))}}),XR=W(qR,[["__scopeId","data-v-1678900e"]]),Sw=r=>(a.pushScopeId("data-v-017a5949"),r=r(),a.popScopeId(),r),WR={class:"meta-check"},zR=Sw(()=>a.createElementVNode("span",{class:"meta-checkmark"},null,-1)),UR=Sw(()=>a.createElementVNode("svg",{fill:"none",height:"10",viewBox:"-0.5 -0.5 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"m8.55 0.45 -8.1 8.1",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"}),a.createElementVNode("path",{d:"m0.45 0.45 8.1 8.1",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"})],-1)),YR=[UR],LR=a.defineComponent({__name:"GridRowEditable",props:{name:{},description:{},value:{},required:{type:Boolean},enabled:{type:Boolean}},emits:["update:name","update:value","update:description","update:enabled","delete"],setup(r,{emit:e}){const t=r,n=e,o=a.computed({get:()=>t.name,set:c=>{n("update:enabled",!0),n("update:name",c)}}),s=a.computed({get:()=>`${t.value}`,set:c=>{n("update:enabled",!0),n("update:value",c)}}),i=a.computed({get:()=>t.description??"",set:c=>n("update:description",c)}),l=a.computed({get:()=>t.enabled,set:c=>n("update:enabled",c)});return(c,d)=>(a.openBlock(),a.createBlock(_p,{class:a.normalizeClass(["table-row-editable",{"required-parameter":c.required}])},{key:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=u=>o.value=u),placeholder:"Key"},null,512),[[a.vModelText,o.value]])]),value:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":d[1]||(d[1]=u=>s.value=u),placeholder:"Value"},null,512),[[a.vModelText,s.value]])]),description:a.withCtx(()=>[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":d[2]||(d[2]=u=>i.value=u),placeholder:"Description"},null,512),[[a.vModelText,i.value]])]),meta:a.withCtx(()=>[a.createElementVNode("label",WR,[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":d[3]||(d[3]=u=>l.value=u),type:"checkbox"},null,512),[[a.vModelCheckbox,l.value]]),zR]),c.required?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:0,class:"meta-delete",type:"button",onClick:d[4]||(d[4]=u=>c.$emit("delete"))},YR))]),_:1},8,["class"]))}}),HR=W(LR,[["__scopeId","data-v-017a5949"]]),GR=r=>(a.pushScopeId("data-v-aba8c9d5"),r=r(),a.popScopeId(),r),FR=["value"],KR=["value"],JR=GR(()=>a.createElementVNode("input",{disabled:"",value:"Read-only"},null,-1)),eV=a.defineComponent({__name:"GridRowGenerated",props:{item:{}},setup(r){return(e,t)=>(a.openBlock(),a.createBlock(_p,{class:"table-row-generated"},{key:a.withCtx(()=>[a.createElementVNode("input",{disabled:"",placeholder:"key",value:e.item.name},null,8,FR)]),value:a.withCtx(()=>[a.createElementVNode("input",{disabled:"",placeholder:"value",type:"password",value:e.item.value},null,8,KR)]),description:a.withCtx(()=>[JR]),_:1}))}}),tV=W(eV,[["__scopeId","data-v-aba8c9d5"]]),rV={class:"table"},nV={class:"meta-actions"},oV={class:"meta-actions-item-icon"},sV={class:"meta-actions-item-icon"},aV=a.defineComponent({__name:"Grid",props:{items:{},generatedItems:{},addLabel:{},showMoreFilter:{type:Boolean}},emits:["deleteIndex","addAnother"],setup(r,{emit:e}){const t=e,n=a.ref(!1),o=a.ref(!1);function s(){t("addAnother"),o.value=!0}return(i,l)=>(a.openBlock(),a.createElementBlock("div",rV,[a.createVNode(XR,{showDescription:n.value,"onUpdate:showDescription":l[0]||(l[0]=c=>n.value=c)},null,8,["showDescription"]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.generatedItems,c=>(a.openBlock(),a.createBlock(tV,{key:c.name,item:c,showDescription:n.value,onClick:l[1]||(l[1]=d=>a.unref(ew).emit())},null,8,["item","showDescription"]))),128)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.items,(c,d)=>a.withDirectives((a.openBlock(),a.createBlock(HR,{key:d,description:c.description,"onUpdate:description":u=>c.description=u,enabled:c.enabled,"onUpdate:enabled":u=>c.enabled=u,name:c.name,"onUpdate:name":u=>c.name=u,value:c.value,"onUpdate:value":u=>c.value=u,required:c.required,showDescription:n.value,onDelete:u=>i.$emit("deleteIndex",d)},null,8,["description","onUpdate:description","enabled","onUpdate:enabled","name","onUpdate:name","value","onUpdate:value","required","showDescription","onDelete"])),[[a.vShow,!i.showMoreFilter||i.showMoreFilter&&d<5||o.value]])),128)),a.createElementVNode("div",nV,[i.addLabel?(a.openBlock(),a.createElementBlock("button",{key:0,class:"meta-actions-item",type:"button",onClick:s},[a.createElementVNode("i",oV,[a.createVNode(a.unref(Ze),{icon:"Add"})]),a.createTextVNode(" "+a.toDisplayString(i.addLabel),1)])):a.createCommentVNode("",!0),i.showMoreFilter&&i.items&&i.items.length>5&&!o.value?(a.openBlock(),a.createElementBlock("button",{key:1,class:"meta-actions-item",type:"button",onClick:l[2]||(l[2]=c=>o.value=!0)},[a.createTextVNode(" Show More "),a.createElementVNode("i",sV,[a.createVNode(a.unref(Ze),{icon:"ChevronDown"})])])):a.createCommentVNode("",!0)])]))}}),Ai=W(aV,[["__scopeId","data-v-7b4a39aa"]]),iV={class:"navtable simpletable"},lV={class:"navtable-table"},cV=a.createStaticVNode('<div class="navtable-item navtable-item__top" data-v-af627a74><div class="navtable-item-33" data-v-af627a74><label for="" data-v-af627a74>Name</label></div><div class="navtable-item-66" data-v-af627a74><label for="" data-v-af627a74>Value</label></div></div>',1),dV={class:"navtable-item-33"},uV={class:"navtable-item-66"},hV=a.defineComponent({__name:"SimpleGrid",props:{items:{}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("div",iV,[a.createElementVNode("div",lV,[cV,(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.items,n=>(a.openBlock(),a.createElementBlock("div",{key:n.id,class:"navtable-item"},[a.createElementVNode("div",dV,[a.createElementVNode("p",null,a.toDisplayString(n.name),1)]),a.createElementVNode("div",uV,[a.createElementVNode("p",null,a.toDisplayString(n.value),1)])]))),128))])]))}}),fV=W(hV,[["__scopeId","data-v-af627a74"]]),pV={key:0},mV=a.defineComponent({__name:"RequestBody",props:{body:{},formData:{}},setup(r){const{activeRequest:e,setActiveRequest:t}=er(),n=o=>{e.body!==o&&t({...e,body:o})};return(o,s)=>(a.openBlock(),a.createBlock(a.unref(cn),{title:"Body"},{default:a.withCtx(()=>[o.body&&o.body.length===0&&o.formData&&o.formData.length===0?(a.openBlock(),a.createElementBlock("span",pV,"No Body")):o.formData&&o.formData.length>0?(a.openBlock(),a.createBlock(a.unref(Ai),{key:1,items:o.formData},null,8,["items"])):(a.openBlock(),a.createBlock(a.unref(L1),{key:2,content:a.unref(e).body,language:"json",lineNumbers:"",onChange:n},null,8,["content"]))]),_:1}))}}),gV={key:0,class:"scalar-api-client__empty-state"},OV=a.createElementVNode("svg",{class:"flow-icon","data-v-aa4fbd2d":"",height:"100%",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"M24 1.714v44.572M1.714 24h44.572",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3.429",xmlns:"http://www.w3.org/2000/svg"})],-1),yV=a.defineComponent({__name:"RequestCookies",props:{cookies:{},generatedCookies:{}},setup(r){const e=r,{activeRequest:t}=er();function n(i){var l;(l=t.cookies)==null||l.splice(i,1)}function o(){var i;t.cookies===void 0&&(t.cookies=[]),(i=t.cookies)==null||i.push({name:"",value:"",enabled:!0})}const s=a.computed(()=>{var i,l;return!!((i=e.cookies)!=null&&i.length||(l=e.generatedCookies)!=null&&l.length)});return(i,l)=>(a.openBlock(),a.createBlock(a.unref(cn),{defaultOpen:s.value,title:"Cookies"},{default:a.withCtx(()=>[s.value?(a.openBlock(),a.createBlock(a.unref(Ai),{key:1,addLabel:"Cookie",generatedItems:i.generatedCookies,items:i.cookies,onAddAnother:o,onDeleteIndex:n},null,8,["generatedItems","items"])):(a.openBlock(),a.createElementBlock("div",gV,[a.createElementVNode("button",{class:"scalar-api-client-add",type:"button",onClick:o},[OV,a.createTextVNode(" Cookies ")])]))]),_:1},8,["defaultOpen"]))}}),bV={key:0,class:"scalar-api-client__empty-state"},vV=a.createElementVNode("svg",{class:"flow-icon","data-v-aa4fbd2d":"",height:"100%",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"M24 1.714v44.572M1.714 24h44.572",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3.429",xmlns:"http://www.w3.org/2000/svg"})],-1),wV=a.defineComponent({__name:"RequestHeaders",props:{headers:{},generatedHeaders:{}},setup(r){const e=r,{activeRequest:t}=er();function n(i){var l;(l=t.headers)==null||l.splice(i,1)}function o(){var i;t.headers===void 0&&(t.headers=[]),(i=t.headers)==null||i.push({name:"",value:"",enabled:!0})}const s=a.computed(()=>{var i,l;return!!((i=e.headers)!=null&&i.length||(l=e.generatedHeaders)!=null&&l.length)});return(i,l)=>(a.openBlock(),a.createBlock(a.unref(cn),{defaultOpen:s.value,title:"Headers"},{default:a.withCtx(()=>[s.value?(a.openBlock(),a.createBlock(a.unref(Ai),{key:1,addLabel:"Header",generatedItems:i.generatedHeaders,items:i.headers,onAddAnother:o,onDeleteIndex:n},null,8,["generatedItems","items"])):(a.openBlock(),a.createElementBlock("div",bV,[a.createElementVNode("button",{class:"scalar-api-client-add",type:"button",onClick:o},[vV,a.createTextVNode(" Headers ")])]))]),_:1},8,["defaultOpen"]))}}),kV={key:0,class:"scalar-api-client__empty-state"},SV=a.createElementVNode("svg",{class:"flow-icon","data-v-aa4fbd2d":"",height:"100%",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"M24 1.714v44.572M1.714 24h44.572",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3.429",xmlns:"http://www.w3.org/2000/svg"})],-1),$V=a.defineComponent({__name:"RequestQuery",props:{queries:{},generatedQueries:{}},setup(r){const e=r,{activeRequest:t}=er();function n(i){var l;(l=t.query)==null||l.splice(i,1)}function o(){var i;t.query===void 0&&(t.query=[]),(i=t.query)==null||i.push({name:"",value:"",enabled:!0})}const s=a.computed(()=>{var i,l;return!!((i=e.queries)!=null&&i.length||(l=e.generatedQueries)!=null&&l.length)});return(i,l)=>(a.openBlock(),a.createBlock(a.unref(cn),{defaultOpen:s.value,title:"Query Parameters"},{default:a.withCtx(()=>[s.value?(a.openBlock(),a.createBlock(a.unref(Ai),{key:1,addLabel:"Query Parameter",generatedItems:i.generatedQueries,items:i.queries,showMoreFilter:!0,onAddAnother:o,onDeleteIndex:n},null,8,["generatedItems","items"])):(a.openBlock(),a.createElementBlock("div",kV,[a.createElementVNode("button",{class:"scalar-api-client-add",type:"button",onClick:o},[SV,a.createTextVNode(" Query Parameter ")])]))]),_:1},8,["defaultOpen"]))}}),PV={key:0,class:"scalar-api-client__empty-state"},xV=a.createElementVNode("svg",{class:"flow-icon","data-v-aa4fbd2d":"",height:"100%",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"M24 1.714v44.572M1.714 24h44.572",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"3.429",xmlns:"http://www.w3.org/2000/svg"})],-1),_V=a.defineComponent({__name:"RequestVariables",props:{variables:{}},setup(r){const{activeRequest:e}=er();function t(o){var s;(s=e.variables)==null||s.splice(o,1)}function n(){var o;e.variables===void 0&&(e.variables=[]),(o=e.variables)==null||o.push({name:"",value:"",enabled:!0})}return(o,s)=>(a.openBlock(),a.createBlock(a.unref(cn),{defaultOpen:a.unref(e).variables&&a.unref(e).variables.length>0,title:"Variables"},{default:a.withCtx(()=>[!o.variables||o.variables.length===0?(a.openBlock(),a.createElementBlock("div",PV,[a.createElementVNode("button",{class:"scalar-api-client-add",type:"button",onClick:n},[xV,a.createTextVNode(" Variable ")])])):(a.openBlock(),a.createBlock(a.unref(Ai),{key:1,addLabel:"Variable",items:o.variables,showMoreFilter:!0,onAddAnother:n,onDeleteIndex:t},null,8,["items"]))]),_:1},8,["defaultOpen"]))}}),CV={class:"scalar-api-client__main__left custom-scroll"},TV={class:"scalar-api-client__main__content"},QV=a.createElementVNode("label",null,"Request",-1),EV={class:"meta"},NV={class:"meta-item meta-item__input"},AV=a.createElementVNode("div",{class:"scalar-api-client__main__scroll-container"},null,-1),RV=!0,A0=a.defineComponent({__name:"Request",setup(r){const{activeRequest:e}=er(),{authentication:t}=qn(),{openApi:{operation:n,globalSecurity:o}}=rd(),s=a.computed(()=>{var l;return ud(t,((l=n==null?void 0:n.information)==null?void 0:l.security)??o)}),i=a.computed(()=>{const l=e.type.toLowerCase();return l==="put"||l==="post"||l==="patch"});return(l,c)=>(a.openBlock(),a.createElementBlock("div",CV,[a.createElementVNode("div",TV,[QV,a.createElementVNode("div",EV,[a.createElementVNode("div",NV,[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=d=>a.unref(e).name=d),class:"scalar-api-client__request-name",disabled:RV,placeholder:"Request Name",type:"text"},null,512),[[a.vModelText,a.unref(e).name]])])])]),a.createElementVNode("div",null,[a.createVNode(_V,{variables:a.unref(e).variables},null,8,["variables"]),a.createVNode(a.unref(ER)),a.createVNode(yV,{cookies:a.unref(e).cookies,generatedCookies:s.value.cookies},null,8,["cookies","generatedCookies"]),a.createVNode(wV,{generatedHeaders:s.value.headers,headers:a.unref(e).headers},null,8,["generatedHeaders","headers"]),a.createVNode($V,{generatedQueries:s.value.queryString,queries:a.unref(e).query},null,8,["generatedQueries","queries"]),i.value?(a.openBlock(),a.createBlock(mV,{key:0,body:a.unref(e).body,formData:a.unref(e).formData,requestBody:a.unref(e).body},null,8,["body","formData","requestBody"])):a.createCommentVNode("",!0),AV])]))}});var Cp={};/*!
75
- * content-type
76
- * Copyright(c) 2015 Douglas Christopher Wilson
77
- * MIT Licensed
78
- */var R0=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,VV=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,$w=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,BV=/\\([\u000b\u0020-\u00ff])/g,ZV=/([\\"])/g,Pw=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;Cp.format=IV;Cp.parse=jV;function IV(r){if(!r||typeof r!="object")throw new TypeError("argument obj is required");var e=r.parameters,t=r.type;if(!t||!Pw.test(t))throw new TypeError("invalid type");var n=t;if(e&&typeof e=="object")for(var o,s=Object.keys(e).sort(),i=0;i<s.length;i++){if(o=s[i],!$w.test(o))throw new TypeError("invalid parameter name");n+="; "+o+"="+MV(e[o])}return n}function jV(r){if(!r)throw new TypeError("argument string is required");var e=typeof r=="object"?DV(r):r;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var t=e.indexOf(";"),n=t!==-1?e.slice(0,t).trim():e.trim();if(!Pw.test(n))throw new TypeError("invalid media type");var o=new qV(n.toLowerCase());if(t!==-1){var s,i,l;for(R0.lastIndex=t;i=R0.exec(e);){if(i.index!==t)throw new TypeError("invalid parameter format");t+=i[0].length,s=i[1].toLowerCase(),l=i[2],l.charCodeAt(0)===34&&(l=l.slice(1,-1),l.indexOf("\\")!==-1&&(l=l.replace(BV,"$1"))),o.parameters[s]=l}if(t!==e.length)throw new TypeError("invalid parameter format")}return o}function DV(r){var e;if(typeof r.getHeader=="function"?e=r.getHeader("content-type"):typeof r.headers=="object"&&(e=r.headers&&r.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}function MV(r){var e=String(r);if($w.test(e))return e;if(e.length>0&&!VV.test(e))throw new TypeError("invalid parameter value");return'"'+e.replace(ZV,"\\$1")+'"'}function qV(r){this.parameters=Object.create(null),this.type=r}const XV={key:1,class:"scalar-api-client__empty-state"},WV={key:1,class:"scalar-api-client__empty-state"},zV=a.defineComponent({__name:"ResponseBody",props:{active:{type:Boolean,default:!1},data:{default:null},headers:{}},setup(r){const e=r,t=a.computed(()=>{const o=e.headers.find(s=>s.name.toLowerCase()==="content-type");if(!o)return null;try{return Cp.parse(o.value).type}catch{return null}}),n=a.computed(()=>t.value==="application/json"||t.value==="application/problem+json"||t.value==="application/vnd.api+json"?"json":t.value==="text/html"||t.value==="text/plain"?"html":null);return(o,s)=>(a.openBlock(),a.createBlock(a.unref(cn),{title:"Body"},{default:a.withCtx(()=>[o.active?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[n.value?(a.openBlock(),a.createBlock(a.unref(Lr),{key:0,class:"custom-scroll",content:o.data,lang:n.value},null,8,["content","lang"])):(a.openBlock(),a.createElementBlock("div",XV,[t.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(" No Preview Available ("+a.toDisplayString(t.value)+") ",1)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(" Can’t render a preview. The Content-Type header is missing or unknown. ")],64))]))],64)):(a.openBlock(),a.createElementBlock("div",WV," No Response "))]),_:1}))}}),UV=["href"],YV=a.defineComponent({__name:"HelpfulLink",props:{href:{}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("a",{href:e.href,rel:"noopener noreferrer",target:"_blank"},[a.renderSlot(e.$slots,"default",{},void 0,!0)],8,UV))}}),xw=W(YV,[["__scopeId","data-v-faae4ad2"]]),LV=a.defineComponent({__name:"SimpleCell",props:{wrap:{type:Boolean,default:!0},strong:{type:Boolean,default:!1},href:{default:null}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("td",{class:a.normalizeClass(["simple-cell",{wrap:e.wrap,strong:e.strong}])},[e.href?(a.openBlock(),a.createBlock(xw,{key:0,href:e.href},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["href"])):a.renderSlot(e.$slots,"default",{key:1},void 0,!0)],2))}}),lf=W(LV,[["__scopeId","data-v-fdd1d4be"]]),HV=a.defineComponent({__name:"SimpleHeader",setup(r){return(e,t)=>(a.openBlock(),a.createBlock(lf,{as:"th",class:"simple-header"},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3}))}}),V0=W(HV,[["__scopeId","data-v-f5dc899e"]]),GV={},FV={class:"simple-row"};function KV(r,e){return a.openBlock(),a.createElementBlock("tr",FV,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const B0=W(GV,[["render",KV],["__scopeId","data-v-cf784a82"]]),JV={},eB={class:"simple-table"};function tB(r,e){return a.openBlock(),a.createElementBlock("table",eB,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const rB=W(JV,[["render",tB],["__scopeId","data-v-e4383840"]]),nB={key:1,class:"scalar-api-client__empty-state"},oB=a.defineComponent({__name:"ResponseHeaders",props:{headers:{}},setup(r){const e=n=>{var o;return(o=UP.find(s=>s.name.toLowerCase()===n.toLowerCase()))==null?void 0:o.url},t=n=>n.split("-").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join("-");return(n,o)=>(a.openBlock(),a.createBlock(a.unref(cn),{title:"Headers"},{default:a.withCtx(()=>[n.headers.length>0?(a.openBlock(),a.createBlock(a.unref(rB),{key:0},{default:a.withCtx(()=>[a.createVNode(a.unref(B0),null,{default:a.withCtx(()=>[a.createVNode(a.unref(V0),null,{default:a.withCtx(()=>[a.createTextVNode("Key")]),_:1}),a.createVNode(a.unref(V0),null,{default:a.withCtx(()=>[a.createTextVNode("Value")]),_:1})]),_:1}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.headers,s=>(a.openBlock(),a.createBlock(a.unref(B0),{key:s.name},{default:a.withCtx(()=>[a.createVNode(a.unref(lf),{href:e(s.name),strong:!0,wrap:!1},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t(s.name)),1)]),_:2},1032,["href"]),a.createVNode(a.unref(lf),null,{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(s.value),1)]),_:2},1024)]),_:2},1024))),128))]),_:1})):(a.openBlock(),a.createElementBlock("div",nB,"No Headers"))]),_:1}))}}),sB={class:"meta-item"},aB={class:"meta-item"},iB={class:"meta-item"},lB=a.defineComponent({__name:"ResponseMetaInformation",props:{response:{}},setup(r){const e=r,t=o=>{var s;return(s=o==null?void 0:o.headers)!=null&&s["X-API-Client-Content-Length"]?Qc(parseFloat(o.headers["X-API-Client-Content-Length"])):Qc(0)},n=a.computed(()=>{const o=e.response.statusCode;if(o)return HP[o]??void 0});return(o,s)=>{var i,l;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",sB,[a.createElementVNode("span",null,a.toDisplayString(a.unref(J1)(o.response.duration)),1)]),a.createElementVNode("div",aB,[a.createElementVNode("span",null,a.toDisplayString(t(o.response)),1)]),a.createElementVNode("div",iB,[a.createElementVNode("span",{class:a.normalizeClass(`scalar-api-client__status scalar-api-client__status--${String(o.response.statusCode).charAt(0)}xx`)},[(i=n.value)!=null&&i.url?(a.openBlock(),a.createBlock(xw,{key:0,href:n.value.url},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.response.statusCode)+" "+a.toDisplayString(n.value.name),1)]),_:1},8,["href"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(o.response.statusCode)+" "+a.toDisplayString((l=n.value)==null?void 0:l.name),1)],64))],2)])],64)}}}),cB={class:"scalar-api-client__main__right custom-scroll"},dB={class:"scalar-api-client__main__content"},uB=a.createElementVNode("label",null,"Response",-1),hB={class:"meta"},fB={key:1,class:"meta-item"},pB=a.createElementVNode("span",null,"Send your first request to start",-1),mB=[pB],gB={key:0,class:"scalar-api-client__empty-state"},OB=a.createElementVNode("div",{class:"scalar-api-client__main__scroll-container"},null,-1),Z0=a.defineComponent({__name:"Response",setup(r){const{activeResponse:e,activeRequestId:t}=er(),n=a.computed(()=>{var l;const i=(l=e.value)==null?void 0:l.headers;return i?Object.keys(i).map(c=>({name:c,value:i[c]})).filter(c=>!["rest-api-client-content-length","X-API-Client-Content-Length"].includes(c.name)):[]}),o=a.computed(()=>{var l;const i=(l=e.value)==null?void 0:l.cookies;return i?Object.keys(i).map(c=>({name:c,value:i[c]})):[]}),s=a.computed(()=>{var l;const i=(l=e.value)==null?void 0:l.data;return i&&cc(i)?JSON.stringify(JSON.parse(i),null,2):i&&typeof a.toRaw(i)=="object"||i&&!cc(i)?JSON.stringify(i,null,2):i});return(i,l)=>(a.openBlock(),a.createElementBlock("div",cB,[a.createElementVNode("div",dB,[uB,a.createElementVNode("div",hB,[a.unref(t)&&a.unref(e)?(a.openBlock(),a.createBlock(lB,{key:0,response:a.unref(e)},null,8,["response"])):(a.openBlock(),a.createElementBlock("div",fB,mB))])]),a.createElementVNode("div",null,[a.createVNode(zV,{active:!!a.unref(e),data:s.value,headers:n.value},null,8,["active","data","headers"]),a.createVNode(oB,{headers:n.value},null,8,["headers"]),a.createVNode(a.unref(cn),{title:"Cookies"},{default:a.withCtx(()=>[a.withDirectives(a.createVNode(a.unref(fV),{items:o.value},null,8,["items"]),[[a.vShow,o.value.length>0]]),o.value.length===0?(a.openBlock(),a.createElementBlock("div",gB,"No Cookies")):a.createCommentVNode("",!0)]),_:1}),OB])]))}}),yB={class:"scalar-api-client__main"},bB=a.defineComponent({__name:"ApiClient",props:{proxyUrl:{},readOnly:{type:Boolean,default:!1},theme:{},withDefaultFonts:{type:Boolean,default:!0},showSideBar:{type:Boolean,default:!1}},emits:["escapeKeyPress"],setup(r,{emit:e}){const t=r,n=e,o=De.useMagicKeys();De.whenever(o.escape,()=>n("escapeKeyPress"));const{activeRequest:s,readOnly:i}=er(),l=De.useMediaQuery("(max-width: 820px)"),c=a.ref(0),d={Request:0,Response:1};function u(h){c.value=h}return a.watch(()=>t.readOnly,()=>{i.value=t.readOnly},{immediate:!0}),(h,f)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(qy),{id:h.theme,withDefaultFonts:h.withDefaultFonts},null,8,["id","withDefaultFonts"]),a.createVNode(Eo,{class:"scalar-api-client",method:a.unref(s).type??"get",property:"--scalar-api-client-color",onKeydown:f[1]||(f[1]=a.withKeys(p=>n("escapeKeyPress"),["esc"]))},{default:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(h.$slots,"address-bar-controls"),a.createVNode(eN,{proxyUrl:h.proxyUrl,onOnSend:f[0]||(f[0]=p=>u(d.Response))},null,8,["proxyUrl"])]),a.createElementVNode("div",yB,[h.showSideBar?a.renderSlot(h.$slots,"sidebar",{key:0}):a.createCommentVNode("",!0),a.unref(l)?(a.openBlock(),a.createBlock(a.unref(ye.TabGroup),{key:2,selectedIndex:c.value,onChange:u},{default:a.withCtx(()=>[a.createVNode(a.unref(ye.TabList),{class:"scalar-api-client__mobile-navigation"},{default:a.withCtx(()=>[a.createVNode(a.unref(ye.Tab),{class:"scalar-api-client__mobile-navigation__toggle"},{default:a.withCtx(({selected:p})=>[a.createElementVNode("span",{class:a.normalizeClass({"scalar-api-client__mobile-navigation--active":p})}," Request ",2)]),_:1}),a.createVNode(a.unref(ye.Tab),{class:"scalar-api-client__mobile-navigation__toggle"},{default:a.withCtx(({selected:p})=>[a.createElementVNode("span",{class:a.normalizeClass({"scalar-api-client__mobile-navigation--active":p})}," Response ",2)]),_:1})]),_:1}),a.createVNode(a.unref(ye.TabPanels),{as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(ye.TabPanel),{as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(A0))]),_:1}),a.createVNode(a.unref(ye.TabPanel),{as:"template"},{default:a.withCtx(()=>[a.createVNode(a.unref(Z0))]),_:1})]),_:1})]),_:1},8,["selectedIndex"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(a.unref(A0)),a.createVNode(a.unref(Z0))],64))])]),_:3},8,["method"])],64))}});function _w(r,e){for(const[t,n]of Object.entries(r))n!==null&&typeof n=="object"?(e[t]??(e[t]=new n.__proto__.constructor),_w(n,e[t])):typeof n<"u"&&(e[t]=n);return e}function Tp({serverState:r,authenticationState:e,operation:t,globalSecurity:n}){var l,c;const o=tb({url:Vc(r)},sh(t,{requiredOnly:!1}),e?ud(e,((l=t.information)==null?void 0:l.security)??n??[]):{}),s=sh(t,{requiredOnly:!1}),i=ls(t,"path",!1);return{id:t.operationId,name:t.name,type:o.method,path:s.path??"",variables:i,cookies:I0(o.cookies),query:o.queryString.map(d=>({...d,enabled:d.required??!0})),headers:I0(o.headers),url:Vc(r)??"",body:(c=o.postData)==null?void 0:c.text}}function I0(r){return(r??[]).map(e=>({...e,enabled:!0}))}const vB=jy.unified().use(Iy).use(S$).use(k$),pi=async r=>{const e=new ki,{headings:t}=(await vB.process(r)).data;return wB(t,e)},wB=(r,e)=>r.map(t=>({...t,slug:e.slug(t.value)})),yd=r=>{const e=Math.min(...r.map(t=>t.depth));return e>=1&&e<=6?e:1};function ur(r){var e,t;return r?Object.keys(((e=r==null?void 0:r.components)==null?void 0:e.schemas)??{}).length?(t=r==null?void 0:r.components)==null?void 0:t.schemas:Object.keys((r==null?void 0:r.definitions)??{}).length?r==null?void 0:r.definitions:{}:{}}function Qp(r,e){const t=/{{\s*([\w.-]+)\s*}}/g,n=/{\s*([\w.-]+)\s*}/g,o=(s,i)=>{if(typeof e=="function")return e(i);{const l=e==null?void 0:e.find(c=>c.name===i);return((l==null?void 0:l.value)??"").toString()}};return r.replace(t,o).replace(n,o)}function Vc(r){var n;const e=(n=r==null?void 0:r.servers)==null?void 0:n[r.selectedServer??0];return typeof(e==null?void 0:e.url)=="string"?Qp(e==null?void 0:e.url,r.variables):e==null?void 0:e.url}function kB(r){const e=/{{?\s*([\w.-]+)\s*}}?/g,t=r==null?void 0:r.matchAll(e);return Array.from(t??[],n=>n[1])}const Ep=r=>r?!!Object.keys(ur(r)??{}).length:!1,Cw=r=>{var e;return!!Object.keys(((e=r==null?void 0:r.components)==null?void 0:e.securitySchemes)??{}).length},Tw=r=>r?!!Object.keys((r==null?void 0:r.webhooks)??{}).length:!1;function Qw(r){try{return!!new URL(r)}catch{return!1}}const SB=(r,e)=>Object.keys(r).map(t=>({[e??t]:t,value:r[t]})),$B=r=>r.reduce((e,t)=>({...e,...t}),{});function Ew(r,e){return Object.keys(r).forEach(t=>{Object.hasOwn(e,t)||delete r[t]}),Object.assign(r,e),r}const Nw=()=>({selectedServer:null,servers:[],variables:[]}),cf=a.reactive(Nw()),PB=r=>{Object.assign(cf,{...cf,...r})},qs=()=>({server:cf,setServer:PB}),{server:xB}=qs(),{setOperation:_B,setGlobalSecurity:CB}=rd(),{toggleApiClient:TB}=Fc(),{setActiveRequest:QB,resetActiveResponse:EB}=er();function Bc(r,e){const t=Tp({serverState:xB,operation:r,authenticationState:null,globalSecurity:null});EB(),QB(t),_B(r),CB(e),TB(t,!0)}var NB=Object.defineProperty,AB=(r,e,t)=>e in r?NB(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,yn=(r,e,t)=>(AB(r,typeof e!="symbol"?e+"":e,t),t);const RB=(r,e)=>{const t=r[e];return t?typeof t=="function"?t():Promise.resolve(t):new Promise((n,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+e)))})};var VB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Np(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var df={exports:{}},Aw={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatNames=r.fastFormats=r.fullFormats=void 0;function e(R,B){return{validate:R,compare:B}}r.fullFormats={date:e(s,i),time:e(c,d),"date-time":e(h,f),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)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!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:T,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:y,int32:{type:"number",validate:k},int64:{type:"number",validate:S},float:{type:"number",validate:w},double:{type:"number",validate:w},password:!0,binary:!0},r.fastFormats={...r.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},r.formatNames=Object.keys(r.fullFormats);function t(R){return R%4===0&&(R%100!==0||R%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(R){const B=n.exec(R);if(!B)return!1;const M=+B[1],V=+B[2],K=+B[3];return V>=1&&V<=12&&K>=1&&K<=(V===2&&t(M)?29:o[V])}function i(R,B){if(R&&B)return R>B?1:R<B?-1:0}const l=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function c(R,B){const M=l.exec(R);if(!M)return!1;const V=+M[1],K=+M[2],L=+M[3],ne=M[5];return(V<=23&&K<=59&&L<=59||V===23&&K===59&&L===60)&&(!B||ne!=="")}function d(R,B){if(!(R&&B))return;const M=l.exec(R),V=l.exec(B);if(M&&V)return R=M[1]+M[2]+M[3]+(M[4]||""),B=V[1]+V[2]+V[3]+(V[4]||""),R>B?1:R<B?-1:0}const u=/t|\s/i;function h(R){const B=R.split(u);return B.length===2&&s(B[0])&&c(B[1],!0)}function f(R,B){if(!(R&&B))return;const[M,V]=R.split(u),[K,L]=B.split(u),ne=i(M,K);if(ne!==void 0)return ne||d(V,L)}const p=/\/|:/,m=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function g(R){return p.test(R)&&m.test(R)}const O=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function y(R){return O.lastIndex=0,O.test(R)}const b=-(2**31),v=2**31-1;function k(R){return Number.isInteger(R)&&R<=v&&R>=b}function S(R){return Number.isInteger(R)}function w(){return!0}const $=/[^\\]\\Z/;function T(R){if($.test(R))return!1;try{return new RegExp(R),!0}catch{return!1}}})(Aw);var Rw={},uf={exports:{}},wo={},Ht={},Qs={},Ri={},se={},mi={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.regexpCode=r.getEsmExportName=r.getProperty=r.safeStringify=r.stringify=r.strConcat=r.addCodeArg=r.str=r._=r.nil=r._Code=r.Name=r.IDENTIFIER=r._CodeOrName=void 0;class e{}r._CodeOrName=e,r.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class t extends e{constructor(b){if(super(),!r.IDENTIFIER.test(b))throw new Error("CodeGen: name must be a valid identifier");this.str=b}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}r.Name=t;class n extends e{constructor(b){super(),this._items=typeof b=="string"?[b]:b}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const b=this._items[0];return b===""||b==='""'}get str(){var b;return(b=this._str)!==null&&b!==void 0?b:this._str=this._items.reduce((v,k)=>`${v}${k}`,"")}get names(){var b;return(b=this._names)!==null&&b!==void 0?b:this._names=this._items.reduce((v,k)=>(k instanceof t&&(v[k.str]=(v[k.str]||0)+1),v),{})}}r._Code=n,r.nil=new n("");function o(y,...b){const v=[y[0]];let k=0;for(;k<b.length;)l(v,b[k]),v.push(y[++k]);return new n(v)}r._=o;const s=new n("+");function i(y,...b){const v=[p(y[0])];let k=0;for(;k<b.length;)v.push(s),l(v,b[k]),v.push(s,p(y[++k]));return c(v),new n(v)}r.str=i;function l(y,b){b instanceof n?y.push(...b._items):b instanceof t?y.push(b):y.push(h(b))}r.addCodeArg=l;function c(y){let b=1;for(;b<y.length-1;){if(y[b]===s){const v=d(y[b-1],y[b+1]);if(v!==void 0){y.splice(b-1,3,v);continue}y[b++]="+"}b++}}function d(y,b){if(b==='""')return y;if(y==='""')return b;if(typeof y=="string")return b instanceof t||y[y.length-1]!=='"'?void 0:typeof b!="string"?`${y.slice(0,-1)}${b}"`:b[0]==='"'?y.slice(0,-1)+b.slice(1):void 0;if(typeof b=="string"&&b[0]==='"'&&!(y instanceof t))return`"${y}${b.slice(1)}`}function u(y,b){return b.emptyStr()?y:y.emptyStr()?b:i`${y}${b}`}r.strConcat=u;function h(y){return typeof y=="number"||typeof y=="boolean"||y===null?y:p(Array.isArray(y)?y.join(","):y)}function f(y){return new n(p(y))}r.stringify=f;function p(y){return JSON.stringify(y).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}r.safeStringify=p;function m(y){return typeof y=="string"&&r.IDENTIFIER.test(y)?new n(`.${y}`):o`[${y}]`}r.getProperty=m;function g(y){if(typeof y=="string"&&r.IDENTIFIER.test(y))return new n(`${y}`);throw new Error(`CodeGen: invalid export name: ${y}, use explicit $id name mapping`)}r.getEsmExportName=g;function O(y){return new n(y.toString())}r.regexpCode=O})(mi);var hf={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.ValueScope=r.ValueScopeName=r.Scope=r.varKinds=r.UsedValueState=void 0;const e=mi;class t extends Error{constructor(d){super(`CodeGen: "code" for ${d} not defined`),this.value=d.value}}var n;(function(c){c[c.Started=0]="Started",c[c.Completed=1]="Completed"})(n=r.UsedValueState||(r.UsedValueState={})),r.varKinds={const:new e.Name("const"),let:new e.Name("let"),var:new e.Name("var")};class o{constructor({prefixes:d,parent:u}={}){this._names={},this._prefixes=d,this._parent=u}toName(d){return d instanceof e.Name?d:this.name(d)}name(d){return new e.Name(this._newName(d))}_newName(d){const u=this._names[d]||this._nameGroup(d);return`${d}${u.index++}`}_nameGroup(d){var u,h;if(!((h=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||h===void 0)&&h.has(d)||this._prefixes&&!this._prefixes.has(d))throw new Error(`CodeGen: prefix "${d}" is not allowed in this scope`);return this._names[d]={prefix:d,index:0}}}r.Scope=o;class s extends e.Name{constructor(d,u){super(u),this.prefix=d}setValue(d,{property:u,itemIndex:h}){this.value=d,this.scopePath=(0,e._)`.${new e.Name(u)}[${h}]`}}r.ValueScopeName=s;const i=(0,e._)`\n`;class l extends o{constructor(d){super(d),this._values={},this._scope=d.scope,this.opts={...d,_n:d.lines?i:e.nil}}get(){return this._scope}name(d){return new s(d,this._newName(d))}value(d,u){var h;if(u.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const f=this.toName(d),{prefix:p}=f,m=(h=u.key)!==null&&h!==void 0?h:u.ref;let g=this._values[p];if(g){const b=g.get(m);if(b)return b}else g=this._values[p]=new Map;g.set(m,f);const O=this._scope[p]||(this._scope[p]=[]),y=O.length;return O[y]=u.ref,f.setValue(u,{property:p,itemIndex:y}),f}getValue(d,u){const h=this._values[d];if(h)return h.get(u)}scopeRefs(d,u=this._values){return this._reduceValues(u,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,e._)`${d}${h.scopePath}`})}scopeCode(d=this._values,u,h){return this._reduceValues(d,f=>{if(f.value===void 0)throw new Error(`CodeGen: name "${f}" has no value`);return f.value.code},u,h)}_reduceValues(d,u,h={},f){let p=e.nil;for(const m in d){const g=d[m];if(!g)continue;const O=h[m]=h[m]||new Map;g.forEach(y=>{if(O.has(y))return;O.set(y,n.Started);let b=u(y);if(b){const v=this.opts.es5?r.varKinds.var:r.varKinds.const;p=(0,e._)`${p}${v} ${y} = ${b};${this.opts._n}`}else if(b=f==null?void 0:f(y))p=(0,e._)`${p}${b}${this.opts._n}`;else throw new t(y);O.set(y,n.Completed)})}return p}}r.ValueScope=l})(hf);(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.or=r.and=r.not=r.CodeGen=r.operators=r.varKinds=r.ValueScopeName=r.ValueScope=r.Scope=r.Name=r.regexpCode=r.stringify=r.getProperty=r.nil=r.strConcat=r.str=r._=void 0;const e=mi,t=hf;var n=mi;Object.defineProperty(r,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(r,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(r,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(r,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return n.Name}});var o=hf;Object.defineProperty(r,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(r,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(r,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(r,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),r.operators={GT:new e._Code(">"),GTE:new e._Code(">="),LT:new e._Code("<"),LTE:new e._Code("<="),EQ:new e._Code("==="),NEQ:new e._Code("!=="),NOT:new e._Code("!"),OR:new e._Code("||"),AND:new e._Code("&&"),ADD:new e._Code("+")};class s{optimizeNodes(){return this}optimizeNames(P,Q){return this}}class i extends s{constructor(P,Q,A){super(),this.varKind=P,this.name=Q,this.rhs=A}render({es5:P,_n:Q}){const A=P?t.varKinds.var:this.varKind,X=this.rhs===void 0?"":` = ${this.rhs}`;return`${A} ${this.name}${X};`+Q}optimizeNames(P,Q){if(P[this.name.str])return this.rhs&&(this.rhs=L(this.rhs,P,Q)),this}get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}}}class l extends s{constructor(P,Q,A){super(),this.lhs=P,this.rhs=Q,this.sideEffects=A}render({_n:P}){return`${this.lhs} = ${this.rhs};`+P}optimizeNames(P,Q){if(!(this.lhs instanceof e.Name&&!P[this.lhs.str]&&!this.sideEffects))return this.rhs=L(this.rhs,P,Q),this}get names(){const P=this.lhs instanceof e.Name?{}:{...this.lhs.names};return K(P,this.rhs)}}class c extends l{constructor(P,Q,A,X){super(P,A,X),this.op=Q}render({_n:P}){return`${this.lhs} ${this.op}= ${this.rhs};`+P}}class d extends s{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`${this.label}:`+P}}class u extends s{constructor(P){super(),this.label=P,this.names={}}render({_n:P}){return`break${this.label?` ${this.label}`:""};`+P}}class h extends s{constructor(P){super(),this.error=P}render({_n:P}){return`throw ${this.error};`+P}get names(){return this.error.names}}class f extends s{constructor(P){super(),this.code=P}render({_n:P}){return`${this.code};`+P}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(P,Q){return this.code=L(this.code,P,Q),this}get names(){return this.code instanceof e._CodeOrName?this.code.names:{}}}class p extends s{constructor(P=[]){super(),this.nodes=P}render(P){return this.nodes.reduce((Q,A)=>Q+A.render(P),"")}optimizeNodes(){const{nodes:P}=this;let Q=P.length;for(;Q--;){const A=P[Q].optimizeNodes();Array.isArray(A)?P.splice(Q,1,...A):A?P[Q]=A:P.splice(Q,1)}return P.length>0?this:void 0}optimizeNames(P,Q){const{nodes:A}=this;let X=A.length;for(;X--;){const z=A[X];z.optimizeNames(P,Q)||(ne(P,z.names),A.splice(X,1))}return A.length>0?this:void 0}get names(){return this.nodes.reduce((P,Q)=>V(P,Q.names),{})}}class m extends p{render(P){return"{"+P._n+super.render(P)+"}"+P._n}}class g extends p{}class O extends m{}O.kind="else";class y extends m{constructor(P,Q){super(Q),this.condition=P}render(P){let Q=`if(${this.condition})`+super.render(P);return this.else&&(Q+="else "+this.else.render(P)),Q}optimizeNodes(){super.optimizeNodes();const P=this.condition;if(P===!0)return this.nodes;let Q=this.else;if(Q){const A=Q.optimizeNodes();Q=this.else=Array.isArray(A)?new O(A):A}if(Q)return P===!1?Q instanceof y?Q:Q.nodes:this.nodes.length?this:new y(ge(P),Q instanceof y?[Q]:Q.nodes);if(!(P===!1||!this.nodes.length))return this}optimizeNames(P,Q){var A;if(this.else=(A=this.else)===null||A===void 0?void 0:A.optimizeNames(P,Q),!!(super.optimizeNames(P,Q)||this.else))return this.condition=L(this.condition,P,Q),this}get names(){const P=super.names;return K(P,this.condition),this.else&&V(P,this.else.names),P}}y.kind="if";class b extends m{}b.kind="for";class v extends b{constructor(P){super(),this.iteration=P}render(P){return`for(${this.iteration})`+super.render(P)}optimizeNames(P,Q){if(super.optimizeNames(P,Q))return this.iteration=L(this.iteration,P,Q),this}get names(){return V(super.names,this.iteration.names)}}class k extends b{constructor(P,Q,A,X){super(),this.varKind=P,this.name=Q,this.from=A,this.to=X}render(P){const Q=P.es5?t.varKinds.var:this.varKind,{name:A,from:X,to:z}=this;return`for(${Q} ${A}=${X}; ${A}<${z}; ${A}++)`+super.render(P)}get names(){const P=K(super.names,this.from);return K(P,this.to)}}class S extends b{constructor(P,Q,A,X){super(),this.loop=P,this.varKind=Q,this.name=A,this.iterable=X}render(P){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(P)}optimizeNames(P,Q){if(super.optimizeNames(P,Q))return this.iterable=L(this.iterable,P,Q),this}get names(){return V(super.names,this.iterable.names)}}class w extends m{constructor(P,Q,A){super(),this.name=P,this.args=Q,this.async=A}render(P){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(P)}}w.kind="func";class $ extends p{render(P){return"return "+super.render(P)}}$.kind="return";class T extends m{render(P){let Q="try"+super.render(P);return this.catch&&(Q+=this.catch.render(P)),this.finally&&(Q+=this.finally.render(P)),Q}optimizeNodes(){var P,Q;return super.optimizeNodes(),(P=this.catch)===null||P===void 0||P.optimizeNodes(),(Q=this.finally)===null||Q===void 0||Q.optimizeNodes(),this}optimizeNames(P,Q){var A,X;return super.optimizeNames(P,Q),(A=this.catch)===null||A===void 0||A.optimizeNames(P,Q),(X=this.finally)===null||X===void 0||X.optimizeNames(P,Q),this}get names(){const P=super.names;return this.catch&&V(P,this.catch.names),this.finally&&V(P,this.finally.names),P}}class R extends m{constructor(P){super(),this.error=P}render(P){return`catch(${this.error})`+super.render(P)}}R.kind="catch";class B extends m{render(P){return"finally"+super.render(P)}}B.kind="finally";class M{constructor(P,Q={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...Q,_n:Q.lines?`
79
- `:""},this._extScope=P,this._scope=new t.Scope({parent:P}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(P){return this._scope.name(P)}scopeName(P){return this._extScope.name(P)}scopeValue(P,Q){const A=this._extScope.value(P,Q);return(this._values[A.prefix]||(this._values[A.prefix]=new Set)).add(A),A}getScopeValue(P,Q){return this._extScope.getValue(P,Q)}scopeRefs(P){return this._extScope.scopeRefs(P,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(P,Q,A,X){const z=this._scope.toName(Q);return A!==void 0&&X&&(this._constants[z.str]=A),this._leafNode(new i(P,z,A)),z}const(P,Q,A){return this._def(t.varKinds.const,P,Q,A)}let(P,Q,A){return this._def(t.varKinds.let,P,Q,A)}var(P,Q,A){return this._def(t.varKinds.var,P,Q,A)}assign(P,Q,A){return this._leafNode(new l(P,Q,A))}add(P,Q){return this._leafNode(new c(P,r.operators.ADD,Q))}code(P){return typeof P=="function"?P():P!==e.nil&&this._leafNode(new f(P)),this}object(...P){const Q=["{"];for(const[A,X]of P)Q.length>1&&Q.push(","),Q.push(A),(A!==X||this.opts.es5)&&(Q.push(":"),(0,e.addCodeArg)(Q,X));return Q.push("}"),new e._Code(Q)}if(P,Q,A){if(this._blockNode(new y(P)),Q&&A)this.code(Q).else().code(A).endIf();else if(Q)this.code(Q).endIf();else if(A)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(P){return this._elseNode(new y(P))}else(){return this._elseNode(new O)}endIf(){return this._endBlockNode(y,O)}_for(P,Q){return this._blockNode(P),Q&&this.code(Q).endFor(),this}for(P,Q){return this._for(new v(P),Q)}forRange(P,Q,A,X,z=this.opts.es5?t.varKinds.var:t.varKinds.let){const le=this._scope.toName(P);return this._for(new k(z,le,Q,A),()=>X(le))}forOf(P,Q,A,X=t.varKinds.const){const z=this._scope.toName(P);if(this.opts.es5){const le=Q instanceof e.Name?Q:this.var("_arr",Q);return this.forRange("_i",0,(0,e._)`${le}.length`,ae=>{this.var(z,(0,e._)`${le}[${ae}]`),A(z)})}return this._for(new S("of",X,z,Q),()=>A(z))}forIn(P,Q,A,X=this.opts.es5?t.varKinds.var:t.varKinds.const){if(this.opts.ownProperties)return this.forOf(P,(0,e._)`Object.keys(${Q})`,A);const z=this._scope.toName(P);return this._for(new S("in",X,z,Q),()=>A(z))}endFor(){return this._endBlockNode(b)}label(P){return this._leafNode(new d(P))}break(P){return this._leafNode(new u(P))}return(P){const Q=new $;if(this._blockNode(Q),this.code(P),Q.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode($)}try(P,Q,A){if(!Q&&!A)throw new Error('CodeGen: "try" without "catch" and "finally"');const X=new T;if(this._blockNode(X),this.code(P),Q){const z=this.name("e");this._currNode=X.catch=new R(z),Q(z)}return A&&(this._currNode=X.finally=new B,this.code(A)),this._endBlockNode(R,B)}throw(P){return this._leafNode(new h(P))}block(P,Q){return this._blockStarts.push(this._nodes.length),P&&this.code(P).endBlock(Q),this}endBlock(P){const Q=this._blockStarts.pop();if(Q===void 0)throw new Error("CodeGen: not in self-balancing block");const A=this._nodes.length-Q;if(A<0||P!==void 0&&A!==P)throw new Error(`CodeGen: wrong number of nodes: ${A} vs ${P} expected`);return this._nodes.length=Q,this}func(P,Q=e.nil,A,X){return this._blockNode(new w(P,Q,A)),X&&this.code(X).endFunc(),this}endFunc(){return this._endBlockNode(w)}optimize(P=1){for(;P-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(P){return this._currNode.nodes.push(P),this}_blockNode(P){this._currNode.nodes.push(P),this._nodes.push(P)}_endBlockNode(P,Q){const A=this._currNode;if(A instanceof P||Q&&A instanceof Q)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${Q?`${P.kind}/${Q.kind}`:P.kind}"`)}_elseNode(P){const Q=this._currNode;if(!(Q instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=Q.else=P,this}get _root(){return this._nodes[0]}get _currNode(){const P=this._nodes;return P[P.length-1]}set _currNode(P){const Q=this._nodes;Q[Q.length-1]=P}}r.CodeGen=M;function V(Z,P){for(const Q in P)Z[Q]=(Z[Q]||0)+(P[Q]||0);return Z}function K(Z,P){return P instanceof e._CodeOrName?V(Z,P.names):Z}function L(Z,P,Q){if(Z instanceof e.Name)return A(Z);if(!X(Z))return Z;return new e._Code(Z._items.reduce((z,le)=>(le instanceof e.Name&&(le=A(le)),le instanceof e._Code?z.push(...le._items):z.push(le),z),[]));function A(z){const le=Q[z.str];return le===void 0||P[z.str]!==1?z:(delete P[z.str],le)}function X(z){return z instanceof e._Code&&z._items.some(le=>le instanceof e.Name&&P[le.str]===1&&Q[le.str]!==void 0)}}function ne(Z,P){for(const Q in P)Z[Q]=(Z[Q]||0)-(P[Q]||0)}function ge(Z){return typeof Z=="boolean"||typeof Z=="number"||Z===null?!Z:(0,e._)`!${I(Z)}`}r.not=ge;const Se=N(r.operators.AND);function Pe(...Z){return Z.reduce(Se)}r.and=Pe;const ie=N(r.operators.OR);function q(...Z){return Z.reduce(ie)}r.or=q;function N(Z){return(P,Q)=>P===e.nil?Q:Q===e.nil?P:(0,e._)`${I(P)} ${Z} ${I(Q)}`}function I(Z){return Z instanceof e.Name?Z:(0,e._)`(${Z})`}})(se);var pe={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.checkStrictMode=r.getErrorPath=r.Type=r.useFunc=r.setEvaluated=r.evaluatedPropsToName=r.mergeEvaluated=r.eachItem=r.unescapeJsonPointer=r.escapeJsonPointer=r.escapeFragment=r.unescapeFragment=r.schemaRefOrVal=r.schemaHasRulesButRef=r.schemaHasRules=r.checkUnknownRules=r.alwaysValidSchema=r.toHash=void 0;const e=se,t=mi;function n(w){const $={};for(const T of w)$[T]=!0;return $}r.toHash=n;function o(w,$){return typeof $=="boolean"?$:Object.keys($).length===0?!0:(s(w,$),!i($,w.self.RULES.all))}r.alwaysValidSchema=o;function s(w,$=w.schema){const{opts:T,self:R}=w;if(!T.strictSchema||typeof $=="boolean")return;const B=R.RULES.keywords;for(const M in $)B[M]||S(w,`unknown keyword: "${M}"`)}r.checkUnknownRules=s;function i(w,$){if(typeof w=="boolean")return!w;for(const T in w)if($[T])return!0;return!1}r.schemaHasRules=i;function l(w,$){if(typeof w=="boolean")return!w;for(const T in w)if(T!=="$ref"&&$.all[T])return!0;return!1}r.schemaHasRulesButRef=l;function c({topSchemaRef:w,schemaPath:$},T,R,B){if(!B){if(typeof T=="number"||typeof T=="boolean")return T;if(typeof T=="string")return(0,e._)`${T}`}return(0,e._)`${w}${$}${(0,e.getProperty)(R)}`}r.schemaRefOrVal=c;function d(w){return f(decodeURIComponent(w))}r.unescapeFragment=d;function u(w){return encodeURIComponent(h(w))}r.escapeFragment=u;function h(w){return typeof w=="number"?`${w}`:w.replace(/~/g,"~0").replace(/\//g,"~1")}r.escapeJsonPointer=h;function f(w){return w.replace(/~1/g,"/").replace(/~0/g,"~")}r.unescapeJsonPointer=f;function p(w,$){if(Array.isArray(w))for(const T of w)$(T);else $(w)}r.eachItem=p;function m({mergeNames:w,mergeToName:$,mergeValues:T,resultToName:R}){return(B,M,V,K)=>{const L=V===void 0?M:V instanceof e.Name?(M instanceof e.Name?w(B,M,V):$(B,M,V),V):M instanceof e.Name?($(B,V,M),M):T(M,V);return K===e.Name&&!(L instanceof e.Name)?R(B,L):L}}r.mergeEvaluated={props:m({mergeNames:(w,$,T)=>w.if((0,e._)`${T} !== true && ${$} !== undefined`,()=>{w.if((0,e._)`${$} === true`,()=>w.assign(T,!0),()=>w.assign(T,(0,e._)`${T} || {}`).code((0,e._)`Object.assign(${T}, ${$})`))}),mergeToName:(w,$,T)=>w.if((0,e._)`${T} !== true`,()=>{$===!0?w.assign(T,!0):(w.assign(T,(0,e._)`${T} || {}`),O(w,T,$))}),mergeValues:(w,$)=>w===!0?!0:{...w,...$},resultToName:g}),items:m({mergeNames:(w,$,T)=>w.if((0,e._)`${T} !== true && ${$} !== undefined`,()=>w.assign(T,(0,e._)`${$} === true ? true : ${T} > ${$} ? ${T} : ${$}`)),mergeToName:(w,$,T)=>w.if((0,e._)`${T} !== true`,()=>w.assign(T,$===!0?!0:(0,e._)`${T} > ${$} ? ${T} : ${$}`)),mergeValues:(w,$)=>w===!0?!0:Math.max(w,$),resultToName:(w,$)=>w.var("items",$)})};function g(w,$){if($===!0)return w.var("props",!0);const T=w.var("props",(0,e._)`{}`);return $!==void 0&&O(w,T,$),T}r.evaluatedPropsToName=g;function O(w,$,T){Object.keys(T).forEach(R=>w.assign((0,e._)`${$}${(0,e.getProperty)(R)}`,!0))}r.setEvaluated=O;const y={};function b(w,$){return w.scopeValue("func",{ref:$,code:y[$.code]||(y[$.code]=new t._Code($.code))})}r.useFunc=b;var v;(function(w){w[w.Num=0]="Num",w[w.Str=1]="Str"})(v=r.Type||(r.Type={}));function k(w,$,T){if(w instanceof e.Name){const R=$===v.Num;return T?R?(0,e._)`"[" + ${w} + "]"`:(0,e._)`"['" + ${w} + "']"`:R?(0,e._)`"/" + ${w}`:(0,e._)`"/" + ${w}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return T?(0,e.getProperty)(w).toString():"/"+h(w)}r.getErrorPath=k;function S(w,$,T=w.opts.strictSchema){if(T){if($=`strict mode: ${$}`,T===!0)throw new Error($);w.self.logger.warn($)}}r.checkStrictMode=S})(pe);var Dt={};Object.defineProperty(Dt,"__esModule",{value:!0});const lt=se,BB={data:new lt.Name("data"),valCxt:new lt.Name("valCxt"),instancePath:new lt.Name("instancePath"),parentData:new lt.Name("parentData"),parentDataProperty:new lt.Name("parentDataProperty"),rootData:new lt.Name("rootData"),dynamicAnchors:new lt.Name("dynamicAnchors"),vErrors:new lt.Name("vErrors"),errors:new lt.Name("errors"),this:new lt.Name("this"),self:new lt.Name("self"),scope:new lt.Name("scope"),json:new lt.Name("json"),jsonPos:new lt.Name("jsonPos"),jsonLen:new lt.Name("jsonLen"),jsonPart:new lt.Name("jsonPart")};Dt.default=BB;(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.extendErrors=r.resetErrorsCount=r.reportExtraError=r.reportError=r.keyword$DataError=r.keywordError=void 0;const e=se,t=pe,n=Dt;r.keywordError={message:({keyword:O})=>(0,e.str)`must pass "${O}" keyword validation`},r.keyword$DataError={message:({keyword:O,schemaType:y})=>y?(0,e.str)`"${O}" keyword must be ${y} ($data)`:(0,e.str)`"${O}" keyword is invalid ($data)`};function o(O,y=r.keywordError,b,v){const{it:k}=O,{gen:S,compositeRule:w,allErrors:$}=k,T=h(O,y,b);v??(w||$)?c(S,T):d(k,(0,e._)`[${T}]`)}r.reportError=o;function s(O,y=r.keywordError,b){const{it:v}=O,{gen:k,compositeRule:S,allErrors:w}=v,$=h(O,y,b);c(k,$),S||w||d(v,n.default.vErrors)}r.reportExtraError=s;function i(O,y){O.assign(n.default.errors,y),O.if((0,e._)`${n.default.vErrors} !== null`,()=>O.if(y,()=>O.assign((0,e._)`${n.default.vErrors}.length`,y),()=>O.assign(n.default.vErrors,null)))}r.resetErrorsCount=i;function l({gen:O,keyword:y,schemaValue:b,data:v,errsCount:k,it:S}){if(k===void 0)throw new Error("ajv implementation error");const w=O.name("err");O.forRange("i",k,n.default.errors,$=>{O.const(w,(0,e._)`${n.default.vErrors}[${$}]`),O.if((0,e._)`${w}.instancePath === undefined`,()=>O.assign((0,e._)`${w}.instancePath`,(0,e.strConcat)(n.default.instancePath,S.errorPath))),O.assign((0,e._)`${w}.schemaPath`,(0,e.str)`${S.errSchemaPath}/${y}`),S.opts.verbose&&(O.assign((0,e._)`${w}.schema`,b),O.assign((0,e._)`${w}.data`,v))})}r.extendErrors=l;function c(O,y){const b=O.const("err",y);O.if((0,e._)`${n.default.vErrors} === null`,()=>O.assign(n.default.vErrors,(0,e._)`[${b}]`),(0,e._)`${n.default.vErrors}.push(${b})`),O.code((0,e._)`${n.default.errors}++`)}function d(O,y){const{gen:b,validateName:v,schemaEnv:k}=O;k.$async?b.throw((0,e._)`new ${O.ValidationError}(${y})`):(b.assign((0,e._)`${v}.errors`,y),b.return(!1))}const u={keyword:new e.Name("keyword"),schemaPath:new e.Name("schemaPath"),params:new e.Name("params"),propertyName:new e.Name("propertyName"),message:new e.Name("message"),schema:new e.Name("schema"),parentSchema:new e.Name("parentSchema")};function h(O,y,b){const{createErrors:v}=O.it;return v===!1?(0,e._)`{}`:f(O,y,b)}function f(O,y,b={}){const{gen:v,it:k}=O,S=[p(k,b),m(O,b)];return g(O,y,S),v.object(...S)}function p({errorPath:O},{instancePath:y}){const b=y?(0,e.str)`${O}${(0,t.getErrorPath)(y,t.Type.Str)}`:O;return[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,b)]}function m({keyword:O,it:{errSchemaPath:y}},{schemaPath:b,parentSchema:v}){let k=v?y:(0,e.str)`${y}/${O}`;return b&&(k=(0,e.str)`${k}${(0,t.getErrorPath)(b,t.Type.Str)}`),[u.schemaPath,k]}function g(O,{params:y,message:b},v){const{keyword:k,data:S,schemaValue:w,it:$}=O,{opts:T,propertyName:R,topSchemaRef:B,schemaPath:M}=$;v.push([u.keyword,k],[u.params,typeof y=="function"?y(O):y||(0,e._)`{}`]),T.messages&&v.push([u.message,typeof b=="function"?b(O):b]),T.verbose&&v.push([u.schema,w],[u.parentSchema,(0,e._)`${B}${M}`],[n.default.data,S]),R&&v.push([u.propertyName,R])}})(Ri);Object.defineProperty(Qs,"__esModule",{value:!0});Qs.boolOrEmptySchema=Qs.topBoolOrEmptySchema=void 0;const ZB=Ri,IB=se,jB=Dt,DB={message:"boolean schema is false"};function MB(r){const{gen:e,schema:t,validateName:n}=r;t===!1?Vw(r,!1):typeof t=="object"&&t.$async===!0?e.return(jB.default.data):(e.assign((0,IB._)`${n}.errors`,null),e.return(!0))}Qs.topBoolOrEmptySchema=MB;function qB(r,e){const{gen:t,schema:n}=r;n===!1?(t.var(e,!1),Vw(r)):t.var(e,!0)}Qs.boolOrEmptySchema=qB;function Vw(r,e){const{gen:t,data:n}=r,o={gen:t,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:r};(0,ZB.reportError)(o,DB,void 0,e)}var Vi={},Co={};Object.defineProperty(Co,"__esModule",{value:!0});Co.getRules=Co.isJSONType=void 0;const XB=["string","number","integer","boolean","null","object","array"],WB=new Set(XB);function zB(r){return typeof r=="string"&&WB.has(r)}Co.isJSONType=zB;function UB(){const r={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...r,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},r.number,r.string,r.array,r.object],post:{rules:[]},all:{},keywords:{}}}Co.getRules=UB;var Jr={};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.shouldUseRule=Jr.shouldUseGroup=Jr.schemaHasRulesForType=void 0;function YB({schema:r,self:e},t){const n=e.RULES.types[t];return n&&n!==!0&&Bw(r,n)}Jr.schemaHasRulesForType=YB;function Bw(r,e){return e.rules.some(t=>Zw(r,t))}Jr.shouldUseGroup=Bw;function Zw(r,e){var t;return r[e.keyword]!==void 0||((t=e.definition.implements)===null||t===void 0?void 0:t.some(n=>r[n]!==void 0))}Jr.shouldUseRule=Zw;(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.reportTypeError=r.checkDataTypes=r.checkDataType=r.coerceAndCheckDataType=r.getJSONTypes=r.getSchemaTypes=r.DataType=void 0;const e=Co,t=Jr,n=Ri,o=se,s=pe;var i;(function(v){v[v.Correct=0]="Correct",v[v.Wrong=1]="Wrong"})(i=r.DataType||(r.DataType={}));function l(v){const k=c(v.type);if(k.includes("null")){if(v.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!k.length&&v.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');v.nullable===!0&&k.push("null")}return k}r.getSchemaTypes=l;function c(v){const k=Array.isArray(v)?v:v?[v]:[];if(k.every(e.isJSONType))return k;throw new Error("type must be JSONType or JSONType[]: "+k.join(","))}r.getJSONTypes=c;function d(v,k){const{gen:S,data:w,opts:$}=v,T=h(k,$.coerceTypes),R=k.length>0&&!(T.length===0&&k.length===1&&(0,t.schemaHasRulesForType)(v,k[0]));if(R){const B=g(k,w,$.strictNumbers,i.Wrong);S.if(B,()=>{T.length?f(v,k,T):y(v)})}return R}r.coerceAndCheckDataType=d;const u=new Set(["string","number","integer","boolean","null"]);function h(v,k){return k?v.filter(S=>u.has(S)||k==="array"&&S==="array"):[]}function f(v,k,S){const{gen:w,data:$,opts:T}=v,R=w.let("dataType",(0,o._)`typeof ${$}`),B=w.let("coerced",(0,o._)`undefined`);T.coerceTypes==="array"&&w.if((0,o._)`${R} == 'object' && Array.isArray(${$}) && ${$}.length == 1`,()=>w.assign($,(0,o._)`${$}[0]`).assign(R,(0,o._)`typeof ${$}`).if(g(k,$,T.strictNumbers),()=>w.assign(B,$))),w.if((0,o._)`${B} !== undefined`);for(const V of S)(u.has(V)||V==="array"&&T.coerceTypes==="array")&&M(V);w.else(),y(v),w.endIf(),w.if((0,o._)`${B} !== undefined`,()=>{w.assign($,B),p(v,B)});function M(V){switch(V){case"string":w.elseIf((0,o._)`${R} == "number" || ${R} == "boolean"`).assign(B,(0,o._)`"" + ${$}`).elseIf((0,o._)`${$} === null`).assign(B,(0,o._)`""`);return;case"number":w.elseIf((0,o._)`${R} == "boolean" || ${$} === null
80
- || (${R} == "string" && ${$} && ${$} == +${$})`).assign(B,(0,o._)`+${$}`);return;case"integer":w.elseIf((0,o._)`${R} === "boolean" || ${$} === null
81
- || (${R} === "string" && ${$} && ${$} == +${$} && !(${$} % 1))`).assign(B,(0,o._)`+${$}`);return;case"boolean":w.elseIf((0,o._)`${$} === "false" || ${$} === 0 || ${$} === null`).assign(B,!1).elseIf((0,o._)`${$} === "true" || ${$} === 1`).assign(B,!0);return;case"null":w.elseIf((0,o._)`${$} === "" || ${$} === 0 || ${$} === false`),w.assign(B,null);return;case"array":w.elseIf((0,o._)`${R} === "string" || ${R} === "number"
82
- || ${R} === "boolean" || ${$} === null`).assign(B,(0,o._)`[${$}]`)}}}function p({gen:v,parentData:k,parentDataProperty:S},w){v.if((0,o._)`${k} !== undefined`,()=>v.assign((0,o._)`${k}[${S}]`,w))}function m(v,k,S,w=i.Correct){const $=w===i.Correct?o.operators.EQ:o.operators.NEQ;let T;switch(v){case"null":return(0,o._)`${k} ${$} null`;case"array":T=(0,o._)`Array.isArray(${k})`;break;case"object":T=(0,o._)`${k} && typeof ${k} == "object" && !Array.isArray(${k})`;break;case"integer":T=R((0,o._)`!(${k} % 1) && !isNaN(${k})`);break;case"number":T=R();break;default:return(0,o._)`typeof ${k} ${$} ${v}`}return w===i.Correct?T:(0,o.not)(T);function R(B=o.nil){return(0,o.and)((0,o._)`typeof ${k} == "number"`,B,S?(0,o._)`isFinite(${k})`:o.nil)}}r.checkDataType=m;function g(v,k,S,w){if(v.length===1)return m(v[0],k,S,w);let $;const T=(0,s.toHash)(v);if(T.array&&T.object){const R=(0,o._)`typeof ${k} != "object"`;$=T.null?R:(0,o._)`!${k} || ${R}`,delete T.null,delete T.array,delete T.object}else $=o.nil;T.number&&delete T.integer;for(const R in T)$=(0,o.and)($,m(R,k,S,w));return $}r.checkDataTypes=g;const O={message:({schema:v})=>`must be ${v}`,params:({schema:v,schemaValue:k})=>typeof v=="string"?(0,o._)`{type: ${v}}`:(0,o._)`{type: ${k}}`};function y(v){const k=b(v);(0,n.reportError)(k,O)}r.reportTypeError=y;function b(v){const{gen:k,data:S,schema:w}=v,$=(0,s.schemaRefOrVal)(v,w,"type");return{gen:k,keyword:"type",data:S,schema:w.type,schemaCode:$,schemaValue:$,parentSchema:w,params:{},it:v}}})(Vi);var bd={};Object.defineProperty(bd,"__esModule",{value:!0});bd.assignDefaults=void 0;const zo=se,LB=pe;function HB(r,e){const{properties:t,items:n}=r.schema;if(e==="object"&&t)for(const o in t)j0(r,o,t[o].default);else e==="array"&&Array.isArray(n)&&n.forEach((o,s)=>j0(r,s,o.default))}bd.assignDefaults=HB;function j0(r,e,t){const{gen:n,compositeRule:o,data:s,opts:i}=r;if(t===void 0)return;const l=(0,zo._)`${s}${(0,zo.getProperty)(e)}`;if(o){(0,LB.checkStrictMode)(r,`default is ignored for: ${l}`);return}let c=(0,zo._)`${l} === undefined`;i.useDefaults==="empty"&&(c=(0,zo._)`${c} || ${l} === null || ${l} === ""`),n.if(c,(0,zo._)`${l} = ${(0,zo.stringify)(t)}`)}var Vr={},he={};Object.defineProperty(he,"__esModule",{value:!0});he.validateUnion=he.validateArray=he.usePattern=he.callValidateCode=he.schemaProperties=he.allSchemaProperties=he.noPropertyInData=he.propertyInData=he.isOwnProperty=he.hasPropFunc=he.reportMissingProp=he.checkMissingProp=he.checkReportMissingProp=void 0;const Ve=se,Ap=pe,pn=Dt,GB=pe;function FB(r,e){const{gen:t,data:n,it:o}=r;t.if(Vp(t,n,e,o.opts.ownProperties),()=>{r.setParams({missingProperty:(0,Ve._)`${e}`},!0),r.error()})}he.checkReportMissingProp=FB;function KB({gen:r,data:e,it:{opts:t}},n,o){return(0,Ve.or)(...n.map(s=>(0,Ve.and)(Vp(r,e,s,t.ownProperties),(0,Ve._)`${o} = ${s}`)))}he.checkMissingProp=KB;function JB(r,e){r.setParams({missingProperty:e},!0),r.error()}he.reportMissingProp=JB;function Iw(r){return r.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ve._)`Object.prototype.hasOwnProperty`})}he.hasPropFunc=Iw;function Rp(r,e,t){return(0,Ve._)`${Iw(r)}.call(${e}, ${t})`}he.isOwnProperty=Rp;function e3(r,e,t,n){const o=(0,Ve._)`${e}${(0,Ve.getProperty)(t)} !== undefined`;return n?(0,Ve._)`${o} && ${Rp(r,e,t)}`:o}he.propertyInData=e3;function Vp(r,e,t,n){const o=(0,Ve._)`${e}${(0,Ve.getProperty)(t)} === undefined`;return n?(0,Ve.or)(o,(0,Ve.not)(Rp(r,e,t))):o}he.noPropertyInData=Vp;function jw(r){return r?Object.keys(r).filter(e=>e!=="__proto__"):[]}he.allSchemaProperties=jw;function t3(r,e){return jw(e).filter(t=>!(0,Ap.alwaysValidSchema)(r,e[t]))}he.schemaProperties=t3;function r3({schemaCode:r,data:e,it:{gen:t,topSchemaRef:n,schemaPath:o,errorPath:s},it:i},l,c,d){const u=d?(0,Ve._)`${r}, ${e}, ${n}${o}`:e,h=[[pn.default.instancePath,(0,Ve.strConcat)(pn.default.instancePath,s)],[pn.default.parentData,i.parentData],[pn.default.parentDataProperty,i.parentDataProperty],[pn.default.rootData,pn.default.rootData]];i.opts.dynamicRef&&h.push([pn.default.dynamicAnchors,pn.default.dynamicAnchors]);const f=(0,Ve._)`${u}, ${t.object(...h)}`;return c!==Ve.nil?(0,Ve._)`${l}.call(${c}, ${f})`:(0,Ve._)`${l}(${f})`}he.callValidateCode=r3;const n3=(0,Ve._)`new RegExp`;function o3({gen:r,it:{opts:e}},t){const n=e.unicodeRegExp?"u":"",{regExp:o}=e.code,s=o(t,n);return r.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,Ve._)`${o.code==="new RegExp"?n3:(0,GB.useFunc)(r,o)}(${t}, ${n})`})}he.usePattern=o3;function s3(r){const{gen:e,data:t,keyword:n,it:o}=r,s=e.name("valid");if(o.allErrors){const l=e.let("valid",!0);return i(()=>e.assign(l,!1)),l}return e.var(s,!0),i(()=>e.break()),s;function i(l){const c=e.const("len",(0,Ve._)`${t}.length`);e.forRange("i",0,c,d=>{r.subschema({keyword:n,dataProp:d,dataPropType:Ap.Type.Num},s),e.if((0,Ve.not)(s),l)})}}he.validateArray=s3;function a3(r){const{gen:e,schema:t,keyword:n,it:o}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(t.some(l=>(0,Ap.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const s=e.let("valid",!1),i=e.name("_valid");e.block(()=>t.forEach((l,c)=>{const d=r.subschema({keyword:n,schemaProp:c,compositeRule:!0},i);e.assign(s,(0,Ve._)`${s} || ${i}`),r.mergeValidEvaluated(d,i)||e.if((0,Ve.not)(s))})),r.result(s,()=>r.reset(),()=>r.error(!0))}he.validateUnion=a3;Object.defineProperty(Vr,"__esModule",{value:!0});Vr.validateKeywordUsage=Vr.validSchemaType=Vr.funcKeywordCode=Vr.macroKeywordCode=void 0;const Ot=se,no=Dt,i3=he,l3=Ri;function c3(r,e){const{gen:t,keyword:n,schema:o,parentSchema:s,it:i}=r,l=e.macro.call(i.self,o,s,i),c=Dw(t,n,l);i.opts.validateSchema!==!1&&i.self.validateSchema(l,!0);const d=t.name("valid");r.subschema({schema:l,schemaPath:Ot.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},d),r.pass(d,()=>r.error(!0))}Vr.macroKeywordCode=c3;function d3(r,e){var t;const{gen:n,keyword:o,schema:s,parentSchema:i,$data:l,it:c}=r;h3(c,e);const d=!l&&e.compile?e.compile.call(c.self,s,i,c):e.validate,u=Dw(n,o,d),h=n.let("valid");r.block$data(h,f),r.ok((t=e.valid)!==null&&t!==void 0?t:h);function f(){if(e.errors===!1)g(),e.modifying&&D0(r),O(()=>r.error());else{const y=e.async?p():m();e.modifying&&D0(r),O(()=>u3(r,y))}}function p(){const y=n.let("ruleErrs",null);return n.try(()=>g((0,Ot._)`await `),b=>n.assign(h,!1).if((0,Ot._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(y,(0,Ot._)`${b}.errors`),()=>n.throw(b))),y}function m(){const y=(0,Ot._)`${u}.errors`;return n.assign(y,null),g(Ot.nil),y}function g(y=e.async?(0,Ot._)`await `:Ot.nil){const b=c.opts.passContext?no.default.this:no.default.self,v=!("compile"in e&&!l||e.schema===!1);n.assign(h,(0,Ot._)`${y}${(0,i3.callValidateCode)(r,u,b,v)}`,e.modifying)}function O(y){var b;n.if((0,Ot.not)((b=e.valid)!==null&&b!==void 0?b:h),y)}}Vr.funcKeywordCode=d3;function D0(r){const{gen:e,data:t,it:n}=r;e.if(n.parentData,()=>e.assign(t,(0,Ot._)`${n.parentData}[${n.parentDataProperty}]`))}function u3(r,e){const{gen:t}=r;t.if((0,Ot._)`Array.isArray(${e})`,()=>{t.assign(no.default.vErrors,(0,Ot._)`${no.default.vErrors} === null ? ${e} : ${no.default.vErrors}.concat(${e})`).assign(no.default.errors,(0,Ot._)`${no.default.vErrors}.length`),(0,l3.extendErrors)(r)},()=>r.error())}function h3({schemaEnv:r},e){if(e.async&&!r.$async)throw new Error("async keyword in sync schema")}function Dw(r,e,t){if(t===void 0)throw new Error(`keyword "${e}" failed to compile`);return r.scopeValue("keyword",typeof t=="function"?{ref:t}:{ref:t,code:(0,Ot.stringify)(t)})}function f3(r,e,t=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(r):n==="object"?r&&typeof r=="object"&&!Array.isArray(r):typeof r==n||t&&typeof r>"u")}Vr.validSchemaType=f3;function p3({schema:r,opts:e,self:t,errSchemaPath:n},o,s){if(Array.isArray(o.keyword)?!o.keyword.includes(s):o.keyword!==s)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(l=>!Object.prototype.hasOwnProperty.call(r,l)))throw new Error(`parent schema must have dependencies of ${s}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(r[s])){const l=`keyword "${s}" value is invalid at path "${n}": `+t.errorsText(o.validateSchema.errors);if(e.validateSchema==="log")t.logger.error(l);else throw new Error(l)}}Vr.validateKeywordUsage=p3;var En={};Object.defineProperty(En,"__esModule",{value:!0});En.extendSubschemaMode=En.extendSubschemaData=En.getSubschema=void 0;const Nr=se,Mw=pe;function m3(r,{keyword:e,schemaProp:t,schema:n,schemaPath:o,errSchemaPath:s,topSchemaRef:i}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){const l=r.schema[e];return t===void 0?{schema:l,schemaPath:(0,Nr._)`${r.schemaPath}${(0,Nr.getProperty)(e)}`,errSchemaPath:`${r.errSchemaPath}/${e}`}:{schema:l[t],schemaPath:(0,Nr._)`${r.schemaPath}${(0,Nr.getProperty)(e)}${(0,Nr.getProperty)(t)}`,errSchemaPath:`${r.errSchemaPath}/${e}/${(0,Mw.escapeFragment)(t)}`}}if(n!==void 0){if(o===void 0||s===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:i,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}En.getSubschema=m3;function g3(r,e,{dataProp:t,dataPropType:n,data:o,dataTypes:s,propertyName:i}){if(o!==void 0&&t!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=e;if(t!==void 0){const{errorPath:d,dataPathArr:u,opts:h}=e,f=l.let("data",(0,Nr._)`${e.data}${(0,Nr.getProperty)(t)}`,!0);c(f),r.errorPath=(0,Nr.str)`${d}${(0,Mw.getErrorPath)(t,n,h.jsPropertySyntax)}`,r.parentDataProperty=(0,Nr._)`${t}`,r.dataPathArr=[...u,r.parentDataProperty]}if(o!==void 0){const d=o instanceof Nr.Name?o:l.let("data",o,!0);c(d),i!==void 0&&(r.propertyName=i)}s&&(r.dataTypes=s);function c(d){r.data=d,r.dataLevel=e.dataLevel+1,r.dataTypes=[],e.definedProperties=new Set,r.parentData=e.data,r.dataNames=[...e.dataNames,d]}}En.extendSubschemaData=g3;function O3(r,{jtdDiscriminator:e,jtdMetadata:t,compositeRule:n,createErrors:o,allErrors:s}){n!==void 0&&(r.compositeRule=n),o!==void 0&&(r.createErrors=o),s!==void 0&&(r.allErrors=s),r.jtdDiscriminator=e,r.jtdMetadata=t}En.extendSubschemaMode=O3;var ot={},qw=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,o,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!r(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=n;o--!==0;){var i=s[o];if(!r(e[i],t[i]))return!1}return!0}return e!==e&&t!==t},Xw={exports:{}},Cn=Xw.exports=function(r,e,t){typeof e=="function"&&(t=e,e={}),t=e.cb||t;var n=typeof t=="function"?t:t.pre||function(){},o=t.post||function(){};Kl(e,n,o,r,"",r)};Cn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Cn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Cn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Cn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Kl(r,e,t,n,o,s,i,l,c,d){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,o,s,i,l,c,d);for(var u in n){var h=n[u];if(Array.isArray(h)){if(u in Cn.arrayKeywords)for(var f=0;f<h.length;f++)Kl(r,e,t,h[f],o+"/"+u+"/"+f,s,o,u,n,f)}else if(u in Cn.propsKeywords){if(h&&typeof h=="object")for(var p in h)Kl(r,e,t,h[p],o+"/"+u+"/"+y3(p),s,o,u,n,p)}else(u in Cn.keywords||r.allKeys&&!(u in Cn.skipKeywords))&&Kl(r,e,t,h,o+"/"+u,s,o,u,n)}t(n,o,s,i,l,c,d)}}function y3(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}var b3=Xw.exports;Object.defineProperty(ot,"__esModule",{value:!0});ot.getSchemaRefs=ot.resolveUrl=ot.normalizeId=ot._getFullPath=ot.getFullPath=ot.inlineRef=void 0;const v3=pe,w3=qw,k3=b3,S3=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function $3(r,e=!0){return typeof r=="boolean"?!0:e===!0?!ff(r):e?Ww(r)<=e:!1}ot.inlineRef=$3;const P3=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ff(r){for(const e in r){if(P3.has(e))return!0;const t=r[e];if(Array.isArray(t)&&t.some(ff)||typeof t=="object"&&ff(t))return!0}return!1}function Ww(r){let e=0;for(const t in r)if(t==="$ref"||(e++,!S3.has(t)&&(typeof r[t]=="object"&&(0,v3.eachItem)(r[t],n=>e+=Ww(n)),e===1/0)))return 1/0;return e}function zw(r,e="",t){t!==!1&&(e=Os(e));const n=r.parse(e);return Uw(r,n)}ot.getFullPath=zw;function Uw(r,e){return r.serialize(e).split("#")[0]+"#"}ot._getFullPath=Uw;const x3=/#\/?$/;function Os(r){return r?r.replace(x3,""):""}ot.normalizeId=Os;function _3(r,e,t){return t=Os(t),r.resolve(e,t)}ot.resolveUrl=_3;const C3=/^[a-z_][-a-z0-9._]*$/i;function T3(r,e){if(typeof r=="boolean")return{};const{schemaId:t,uriResolver:n}=this.opts,o=Os(r[t]||e),s={"":o},i=zw(n,o,!1),l={},c=new Set;return k3(r,{allKeys:!0},(h,f,p,m)=>{if(m===void 0)return;const g=i+f;let O=s[m];typeof h[t]=="string"&&(O=y.call(this,h[t])),b.call(this,h.$anchor),b.call(this,h.$dynamicAnchor),s[f]=O;function y(v){const k=this.opts.uriResolver.resolve;if(v=Os(O?k(O,v):v),c.has(v))throw u(v);c.add(v);let S=this.refs[v];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?d(h,S.schema,v):v!==Os(g)&&(v[0]==="#"?(d(h,l[v],v),l[v]=h):this.refs[v]=g),v}function b(v){if(typeof v=="string"){if(!C3.test(v))throw new Error(`invalid anchor "${v}"`);y.call(this,`#${v}`)}}}),l;function d(h,f,p){if(f!==void 0&&!w3(h,f))throw u(p)}function u(h){return new Error(`reference "${h}" resolves to more than one schema`)}}ot.getSchemaRefs=T3;Object.defineProperty(Ht,"__esModule",{value:!0});Ht.getData=Ht.KeywordCxt=Ht.validateFunctionCode=void 0;const Yw=Qs,M0=Vi,Bp=Jr,Zc=Vi,Q3=bd,Wa=Vr,Bu=En,F=se,oe=Dt,E3=ot,en=pe,$a=Ri;function N3(r){if(Gw(r)&&(Fw(r),Hw(r))){V3(r);return}Lw(r,()=>(0,Yw.topBoolOrEmptySchema)(r))}Ht.validateFunctionCode=N3;function Lw({gen:r,validateName:e,schema:t,schemaEnv:n,opts:o},s){o.code.es5?r.func(e,(0,F._)`${oe.default.data}, ${oe.default.valCxt}`,n.$async,()=>{r.code((0,F._)`"use strict"; ${q0(t,o)}`),R3(r,o),r.code(s)}):r.func(e,(0,F._)`${oe.default.data}, ${A3(o)}`,n.$async,()=>r.code(q0(t,o)).code(s))}function A3(r){return(0,F._)`{${oe.default.instancePath}="", ${oe.default.parentData}, ${oe.default.parentDataProperty}, ${oe.default.rootData}=${oe.default.data}${r.dynamicRef?(0,F._)`, ${oe.default.dynamicAnchors}={}`:F.nil}}={}`}function R3(r,e){r.if(oe.default.valCxt,()=>{r.var(oe.default.instancePath,(0,F._)`${oe.default.valCxt}.${oe.default.instancePath}`),r.var(oe.default.parentData,(0,F._)`${oe.default.valCxt}.${oe.default.parentData}`),r.var(oe.default.parentDataProperty,(0,F._)`${oe.default.valCxt}.${oe.default.parentDataProperty}`),r.var(oe.default.rootData,(0,F._)`${oe.default.valCxt}.${oe.default.rootData}`),e.dynamicRef&&r.var(oe.default.dynamicAnchors,(0,F._)`${oe.default.valCxt}.${oe.default.dynamicAnchors}`)},()=>{r.var(oe.default.instancePath,(0,F._)`""`),r.var(oe.default.parentData,(0,F._)`undefined`),r.var(oe.default.parentDataProperty,(0,F._)`undefined`),r.var(oe.default.rootData,oe.default.data),e.dynamicRef&&r.var(oe.default.dynamicAnchors,(0,F._)`{}`)})}function V3(r){const{schema:e,opts:t,gen:n}=r;Lw(r,()=>{t.$comment&&e.$comment&&Jw(r),D3(r),n.let(oe.default.vErrors,null),n.let(oe.default.errors,0),t.unevaluated&&B3(r),Kw(r),X3(r)})}function B3(r){const{gen:e,validateName:t}=r;r.evaluated=e.const("evaluated",(0,F._)`${t}.evaluated`),e.if((0,F._)`${r.evaluated}.dynamicProps`,()=>e.assign((0,F._)`${r.evaluated}.props`,(0,F._)`undefined`)),e.if((0,F._)`${r.evaluated}.dynamicItems`,()=>e.assign((0,F._)`${r.evaluated}.items`,(0,F._)`undefined`))}function q0(r,e){const t=typeof r=="object"&&r[e.schemaId];return t&&(e.code.source||e.code.process)?(0,F._)`/*# sourceURL=${t} */`:F.nil}function Z3(r,e){if(Gw(r)&&(Fw(r),Hw(r))){I3(r,e);return}(0,Yw.boolOrEmptySchema)(r,e)}function Hw({schema:r,self:e}){if(typeof r=="boolean")return!r;for(const t in r)if(e.RULES.all[t])return!0;return!1}function Gw(r){return typeof r.schema!="boolean"}function I3(r,e){const{schema:t,gen:n,opts:o}=r;o.$comment&&t.$comment&&Jw(r),M3(r),q3(r);const s=n.const("_errs",oe.default.errors);Kw(r,s),n.var(e,(0,F._)`${s} === ${oe.default.errors}`)}function Fw(r){(0,en.checkUnknownRules)(r),j3(r)}function Kw(r,e){if(r.opts.jtd)return X0(r,[],!1,e);const t=(0,M0.getSchemaTypes)(r.schema),n=(0,M0.coerceAndCheckDataType)(r,t);X0(r,t,!n,e)}function j3(r){const{schema:e,errSchemaPath:t,opts:n,self:o}=r;e.$ref&&n.ignoreKeywordsWithRef&&(0,en.schemaHasRulesButRef)(e,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${t}"`)}function D3(r){const{schema:e,opts:t}=r;e.default!==void 0&&t.useDefaults&&t.strictSchema&&(0,en.checkStrictMode)(r,"default is ignored in the schema root")}function M3(r){const e=r.schema[r.opts.schemaId];e&&(r.baseId=(0,E3.resolveUrl)(r.opts.uriResolver,r.baseId,e))}function q3(r){if(r.schema.$async&&!r.schemaEnv.$async)throw new Error("async schema in sync schema")}function Jw({gen:r,schemaEnv:e,schema:t,errSchemaPath:n,opts:o}){const s=t.$comment;if(o.$comment===!0)r.code((0,F._)`${oe.default.self}.logger.log(${s})`);else if(typeof o.$comment=="function"){const i=(0,F.str)`${n}/$comment`,l=r.scopeValue("root",{ref:e.root});r.code((0,F._)`${oe.default.self}.opts.$comment(${s}, ${i}, ${l}.schema)`)}}function X3(r){const{gen:e,schemaEnv:t,validateName:n,ValidationError:o,opts:s}=r;t.$async?e.if((0,F._)`${oe.default.errors} === 0`,()=>e.return(oe.default.data),()=>e.throw((0,F._)`new ${o}(${oe.default.vErrors})`)):(e.assign((0,F._)`${n}.errors`,oe.default.vErrors),s.unevaluated&&W3(r),e.return((0,F._)`${oe.default.errors} === 0`))}function W3({gen:r,evaluated:e,props:t,items:n}){t instanceof F.Name&&r.assign((0,F._)`${e}.props`,t),n instanceof F.Name&&r.assign((0,F._)`${e}.items`,n)}function X0(r,e,t,n){const{gen:o,schema:s,data:i,allErrors:l,opts:c,self:d}=r,{RULES:u}=d;if(s.$ref&&(c.ignoreKeywordsWithRef||!(0,en.schemaHasRulesButRef)(s,u))){o.block(()=>rk(r,"$ref",u.all.$ref.definition));return}c.jtd||z3(r,e),o.block(()=>{for(const f of u.rules)h(f);h(u.post)});function h(f){(0,Bp.shouldUseGroup)(s,f)&&(f.type?(o.if((0,Zc.checkDataType)(f.type,i,c.strictNumbers)),W0(r,f),e.length===1&&e[0]===f.type&&t&&(o.else(),(0,Zc.reportTypeError)(r)),o.endIf()):W0(r,f),l||o.if((0,F._)`${oe.default.errors} === ${n||0}`))}}function W0(r,e){const{gen:t,schema:n,opts:{useDefaults:o}}=r;o&&(0,Q3.assignDefaults)(r,e.type),t.block(()=>{for(const s of e.rules)(0,Bp.shouldUseRule)(n,s)&&rk(r,s.keyword,s.definition,e.type)})}function z3(r,e){r.schemaEnv.meta||!r.opts.strictTypes||(U3(r,e),r.opts.allowUnionTypes||Y3(r,e),L3(r,r.dataTypes))}function U3(r,e){if(e.length){if(!r.dataTypes.length){r.dataTypes=e;return}e.forEach(t=>{ek(r.dataTypes,t)||Zp(r,`type "${t}" not allowed by context "${r.dataTypes.join(",")}"`)}),G3(r,e)}}function Y3(r,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Zp(r,"use allowUnionTypes to allow union type keyword")}function L3(r,e){const t=r.self.RULES.all;for(const n in t){const o=t[n];if(typeof o=="object"&&(0,Bp.shouldUseRule)(r.schema,o)){const{type:s}=o.definition;s.length&&!s.some(i=>H3(e,i))&&Zp(r,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function H3(r,e){return r.includes(e)||e==="number"&&r.includes("integer")}function ek(r,e){return r.includes(e)||e==="integer"&&r.includes("number")}function G3(r,e){const t=[];for(const n of r.dataTypes)ek(e,n)?t.push(n):e.includes("integer")&&n==="number"&&t.push("integer");r.dataTypes=t}function Zp(r,e){const t=r.schemaEnv.baseId+r.errSchemaPath;e+=` at "${t}" (strictTypes)`,(0,en.checkStrictMode)(r,e,r.opts.strictTypes)}class tk{constructor(e,t,n){if((0,Wa.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,en.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",nk(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Wa.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=e.gen.const("_errs",oe.default.errors))}result(e,t,n){this.failResult((0,F.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,F.not)(e),void 0,t)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail((0,F._)`${t} !== undefined && (${(0,F.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t){this.setParams(t),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,t){(e?$a.reportExtraError:$a.reportError)(this,this.def.error,t)}$dataError(){(0,$a.reportError)(this,this.def.$dataError||$a.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,$a.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=F.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=F.nil,t=F.nil){if(!this.$data)return;const{gen:n,schemaCode:o,schemaType:s,def:i}=this;n.if((0,F.or)((0,F._)`${o} === undefined`,t)),e!==F.nil&&n.assign(e,!0),(s.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==F.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:o,it:s}=this;return(0,F.or)(i(),l());function i(){if(n.length){if(!(t instanceof F.Name))throw new Error("ajv implementation error");const c=Array.isArray(n)?n:[n];return(0,F._)`${(0,Zc.checkDataTypes)(c,t,s.opts.strictNumbers,Zc.DataType.Wrong)}`}return F.nil}function l(){if(o.validateSchema){const c=e.scopeValue("validate$data",{ref:o.validateSchema});return(0,F._)`!${c}(${t})`}return F.nil}}subschema(e,t){const n=(0,Bu.getSubschema)(this.it,e);(0,Bu.extendSubschemaData)(n,this.it,e),(0,Bu.extendSubschemaMode)(n,e);const o={...this.it,...n,items:void 0,props:void 0};return Z3(o,t),o}mergeEvaluated(e,t){const{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=en.mergeEvaluated.props(o,e.props,n.props,t)),n.items!==!0&&e.items!==void 0&&(n.items=en.mergeEvaluated.items(o,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(t,()=>this.mergeEvaluated(e,F.Name)),!0}}Ht.KeywordCxt=tk;function rk(r,e,t,n){const o=new tk(r,t,e);"code"in t?t.code(o,n):o.$data&&t.validate?(0,Wa.funcKeywordCode)(o,t):"macro"in t?(0,Wa.macroKeywordCode)(o,t):(t.compile||t.validate)&&(0,Wa.funcKeywordCode)(o,t)}const F3=/^\/(?:[^~]|~0|~1)*$/,K3=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function nk(r,{dataLevel:e,dataNames:t,dataPathArr:n}){let o,s;if(r==="")return oe.default.rootData;if(r[0]==="/"){if(!F3.test(r))throw new Error(`Invalid JSON-pointer: ${r}`);o=r,s=oe.default.rootData}else{const d=K3.exec(r);if(!d)throw new Error(`Invalid JSON-pointer: ${r}`);const u=+d[1];if(o=d[2],o==="#"){if(u>=e)throw new Error(c("property/index",u));return n[e-u]}if(u>e)throw new Error(c("data",u));if(s=t[e-u],!o)return s}let i=s;const l=o.split("/");for(const d of l)d&&(s=(0,F._)`${s}${(0,F.getProperty)((0,en.unescapeJsonPointer)(d))}`,i=(0,F._)`${i} && ${s}`);return i;function c(d,u){return`Cannot access ${d} ${u} levels up, current level is ${e}`}}Ht.getData=nk;var Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});class J3 extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}Xs.default=J3;var Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});const Zu=ot;class eZ extends Error{constructor(e,t,n,o){super(o||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,Zu.resolveUrl)(e,t,n),this.missingSchema=(0,Zu.normalizeId)((0,Zu.getFullPath)(e,this.missingRef))}}Ws.default=eZ;var bt={};Object.defineProperty(bt,"__esModule",{value:!0});bt.resolveSchema=bt.getCompilingSchema=bt.resolveRef=bt.compileSchema=bt.SchemaEnv=void 0;const rr=se,tZ=Xs,Jn=Dt,cr=ot,z0=pe,rZ=Ht;class vd{constructor(e){var t;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,cr.normalizeId)(n==null?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}bt.SchemaEnv=vd;function Ip(r){const e=ok.call(this,r);if(e)return e;const t=(0,cr.getFullPath)(this.opts.uriResolver,r.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:s}=this.opts,i=new rr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:s});let l;r.$async&&(l=i.scopeValue("Error",{ref:tZ.default,code:(0,rr._)`require("ajv/dist/runtime/validation_error").default`}));const c=i.scopeName("validate");r.validateName=c;const d={gen:i,allErrors:this.opts.allErrors,data:Jn.default.data,parentData:Jn.default.parentData,parentDataProperty:Jn.default.parentDataProperty,dataNames:[Jn.default.data],dataPathArr:[rr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:r.schema,code:(0,rr.stringify)(r.schema)}:{ref:r.schema}),validateName:c,ValidationError:l,schema:r.schema,schemaEnv:r,rootId:t,baseId:r.baseId||t,schemaPath:rr.nil,errSchemaPath:r.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,rr._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(r),(0,rZ.validateFunctionCode)(d),i.optimize(this.opts.code.optimize);const h=i.toString();u=`${i.scopeRefs(Jn.default.scope)}return ${h}`,this.opts.code.process&&(u=this.opts.code.process(u,r));const f=new Function(`${Jn.default.self}`,`${Jn.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=r.schema,f.schemaEnv=r,r.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:c,validateCode:h,scopeValues:i._values}),this.opts.unevaluated){const{props:p,items:m}=d;f.evaluated={props:p instanceof rr.Name?void 0:p,items:m instanceof rr.Name?void 0:m,dynamicProps:p instanceof rr.Name,dynamicItems:m instanceof rr.Name},f.source&&(f.source.evaluated=(0,rr.stringify)(f.evaluated))}return r.validate=f,r}catch(h){throw delete r.validate,delete r.validateName,u&&this.logger.error("Error compiling schema, function code:",u),h}finally{this._compilations.delete(r)}}bt.compileSchema=Ip;function nZ(r,e,t){var n;t=(0,cr.resolveUrl)(this.opts.uriResolver,e,t);const o=r.refs[t];if(o)return o;let s=aZ.call(this,r,t);if(s===void 0){const i=(n=r.localRefs)===null||n===void 0?void 0:n[t],{schemaId:l}=this.opts;i&&(s=new vd({schema:i,schemaId:l,root:r,baseId:e}))}if(s!==void 0)return r.refs[t]=oZ.call(this,s)}bt.resolveRef=nZ;function oZ(r){return(0,cr.inlineRef)(r.schema,this.opts.inlineRefs)?r.schema:r.validate?r:Ip.call(this,r)}function ok(r){for(const e of this._compilations)if(sZ(e,r))return e}bt.getCompilingSchema=ok;function sZ(r,e){return r.schema===e.schema&&r.root===e.root&&r.baseId===e.baseId}function aZ(r,e){let t;for(;typeof(t=this.refs[e])=="string";)e=t;return t||this.schemas[e]||wd.call(this,r,e)}function wd(r,e){const t=this.opts.uriResolver.parse(e),n=(0,cr._getFullPath)(this.opts.uriResolver,t);let o=(0,cr.getFullPath)(this.opts.uriResolver,r.baseId,void 0);if(Object.keys(r.schema).length>0&&n===o)return Iu.call(this,t,r);const s=(0,cr.normalizeId)(n),i=this.refs[s]||this.schemas[s];if(typeof i=="string"){const l=wd.call(this,r,i);return typeof(l==null?void 0:l.schema)!="object"?void 0:Iu.call(this,t,l)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||Ip.call(this,i),s===(0,cr.normalizeId)(e)){const{schema:l}=i,{schemaId:c}=this.opts,d=l[c];return d&&(o=(0,cr.resolveUrl)(this.opts.uriResolver,o,d)),new vd({schema:l,schemaId:c,root:r,baseId:o})}return Iu.call(this,t,i)}}bt.resolveSchema=wd;const iZ=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Iu(r,{baseId:e,schema:t,root:n}){var o;if(((o=r.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const l of r.fragment.slice(1).split("/")){if(typeof t=="boolean")return;const c=t[(0,z0.unescapeFragment)(l)];if(c===void 0)return;t=c;const d=typeof t=="object"&&t[this.opts.schemaId];!iZ.has(l)&&d&&(e=(0,cr.resolveUrl)(this.opts.uriResolver,e,d))}let s;if(typeof t!="boolean"&&t.$ref&&!(0,z0.schemaHasRulesButRef)(t,this.RULES)){const l=(0,cr.resolveUrl)(this.opts.uriResolver,e,t.$ref);s=wd.call(this,n,l)}const{schemaId:i}=this.opts;if(s=s||new vd({schema:t,schemaId:i,root:n,baseId:e}),s.schema!==s.root.schema)return s}const lZ="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",cZ="Meta-schema for $data reference (JSON AnySchema extension proposal)",dZ="object",uZ=["$data"],hZ={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},fZ=!1,pZ={$id:lZ,description:cZ,type:dZ,required:uZ,properties:hZ,additionalProperties:fZ};var jp={},pf={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(r,e){(function(t,n){n(e)})(VB,function(t){function n(){for(var x=arguments.length,C=Array(x),E=0;E<x;E++)C[E]=arguments[E];if(C.length>1){C[0]=C[0].slice(0,-1);for(var j=C.length-1,D=1;D<j;++D)C[D]=C[D].slice(1,-1);return C[j]=C[j].slice(1),C.join("")}else return C[0]}function o(x){return"(?:"+x+")"}function s(x){return x===void 0?"undefined":x===null?"null":Object.prototype.toString.call(x).split(" ").pop().split("]").shift().toLowerCase()}function i(x){return x.toUpperCase()}function l(x){return x!=null?x instanceof Array?x:typeof x.length!="number"||x.split||x.setInterval||x.call?[x]:Array.prototype.slice.call(x):[]}function c(x,C){var E=x;if(C)for(var j in C)E[j]=C[j];return E}function d(x){var C="[A-Za-z]",E="[0-9]",j=n(E,"[A-Fa-f]"),D=o(o("%[EFef]"+j+"%"+j+j+"%"+j+j)+"|"+o("%[89A-Fa-f]"+j+"%"+j+j)+"|"+o("%"+j+j)),te="[\\:\\/\\?\\#\\[\\]\\@]",J="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Oe=n(te,J),Ue=x?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ce=x?"[\\uE000-\\uF8FF]":"[]",me=n(C,E,"[\\-\\.\\_\\~]",Ue);o(C+n(C,E,"[\\+\\-\\.]")+"*"),o(o(D+"|"+n(me,J,"[\\:]"))+"*");var Ne=o(o("25[0-5]")+"|"+o("2[0-4]"+E)+"|"+o("1"+E+E)+"|"+o("0?[1-9]"+E)+"|0?0?"+E),qe=o(Ne+"\\."+Ne+"\\."+Ne+"\\."+Ne),ce=o(j+"{1,4}"),Ye=o(o(ce+"\\:"+ce)+"|"+qe),Te=o(o(ce+"\\:")+"{6}"+Ye),qt=o("\\:\\:"+o(ce+"\\:")+"{5}"+Ye),Mo=o(o(ce)+"?\\:\\:"+o(ce+"\\:")+"{4}"+Ye),tr=o(o(o(ce+"\\:")+"{0,1}"+ce)+"?\\:\\:"+o(ce+"\\:")+"{3}"+Ye),Xr=o(o(o(ce+"\\:")+"{0,2}"+ce)+"?\\:\\:"+o(ce+"\\:")+"{2}"+Ye),Hn=o(o(o(ce+"\\:")+"{0,3}"+ce)+"?\\:\\:"+ce+"\\:"+Ye),Gn=o(o(o(ce+"\\:")+"{0,4}"+ce)+"?\\:\\:"+Ye),Xt=o(o(o(ce+"\\:")+"{0,5}"+ce)+"?\\:\\:"+ce),Wr=o(o(o(ce+"\\:")+"{0,6}"+ce)+"?\\:\\:"),Fn=o([Te,qt,Mo,tr,Xr,Hn,Gn,Xt,Wr].join("|")),$r=o(o(me+"|"+D)+"+");o("[vV]"+j+"+\\."+n(me,J,"[\\:]")+"+"),o(o(D+"|"+n(me,J))+"*");var Ki=o(D+"|"+n(me,J,"[\\:\\@]"));return o(o(D+"|"+n(me,J,"[\\@]"))+"+"),o(o(Ki+"|"+n("[\\/\\?]",Ce))+"*"),{NOT_SCHEME:new RegExp(n("[^]",C,E,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",me,J),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",me,J),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",me,J),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",me,J),"g"),NOT_QUERY:new RegExp(n("[^\\%]",me,J,"[\\:\\@\\/\\?]",Ce),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",me,J,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",me,J),"g"),UNRESERVED:new RegExp(me,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",me,Oe),"g"),PCT_ENCODED:new RegExp(D,"g"),IPV4ADDRESS:new RegExp("^("+qe+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Fn+")"+o(o("\\%25|\\%(?!"+j+"{2})")+"("+$r+")")+"?\\]?$")}}var u=d(!1),h=d(!0),f=function(){function x(C,E){var j=[],D=!0,te=!1,J=void 0;try{for(var Oe=C[Symbol.iterator](),Ue;!(D=(Ue=Oe.next()).done)&&(j.push(Ue.value),!(E&&j.length===E));D=!0);}catch(Ce){te=!0,J=Ce}finally{try{!D&&Oe.return&&Oe.return()}finally{if(te)throw J}}return j}return function(C,E){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return x(C,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(x){if(Array.isArray(x)){for(var C=0,E=Array(x.length);C<x.length;C++)E[C]=x[C];return E}else return Array.from(x)},m=2147483647,g=36,O=1,y=26,b=38,v=700,k=72,S=128,w="-",$=/^xn--/,T=/[^\0-\x7E]/,R=/[\x2E\u3002\uFF0E\uFF61]/g,B={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=g-O,V=Math.floor,K=String.fromCharCode;function L(x){throw new RangeError(B[x])}function ne(x,C){for(var E=[],j=x.length;j--;)E[j]=C(x[j]);return E}function ge(x,C){var E=x.split("@"),j="";E.length>1&&(j=E[0]+"@",x=E[1]),x=x.replace(R,".");var D=x.split("."),te=ne(D,C).join(".");return j+te}function Se(x){for(var C=[],E=0,j=x.length;E<j;){var D=x.charCodeAt(E++);if(D>=55296&&D<=56319&&E<j){var te=x.charCodeAt(E++);(te&64512)==56320?C.push(((D&1023)<<10)+(te&1023)+65536):(C.push(D),E--)}else C.push(D)}return C}var Pe=function(x){return String.fromCodePoint.apply(String,p(x))},ie=function(x){return x-48<10?x-22:x-65<26?x-65:x-97<26?x-97:g},q=function(x,C){return x+22+75*(x<26)-((C!=0)<<5)},N=function(x,C,E){var j=0;for(x=E?V(x/v):x>>1,x+=V(x/C);x>M*y>>1;j+=g)x=V(x/M);return V(j+(M+1)*x/(x+b))},I=function(x){var C=[],E=x.length,j=0,D=S,te=k,J=x.lastIndexOf(w);J<0&&(J=0);for(var Oe=0;Oe<J;++Oe)x.charCodeAt(Oe)>=128&&L("not-basic"),C.push(x.charCodeAt(Oe));for(var Ue=J>0?J+1:0;Ue<E;){for(var Ce=j,me=1,Ne=g;;Ne+=g){Ue>=E&&L("invalid-input");var qe=ie(x.charCodeAt(Ue++));(qe>=g||qe>V((m-j)/me))&&L("overflow"),j+=qe*me;var ce=Ne<=te?O:Ne>=te+y?y:Ne-te;if(qe<ce)break;var Ye=g-ce;me>V(m/Ye)&&L("overflow"),me*=Ye}var Te=C.length+1;te=N(j-Ce,Te,Ce==0),V(j/Te)>m-D&&L("overflow"),D+=V(j/Te),j%=Te,C.splice(j++,0,D)}return String.fromCodePoint.apply(String,C)},Z=function(x){var C=[];x=Se(x);var E=x.length,j=S,D=0,te=k,J=!0,Oe=!1,Ue=void 0;try{for(var Ce=x[Symbol.iterator](),me;!(J=(me=Ce.next()).done);J=!0){var Ne=me.value;Ne<128&&C.push(K(Ne))}}catch(fa){Oe=!0,Ue=fa}finally{try{!J&&Ce.return&&Ce.return()}finally{if(Oe)throw Ue}}var qe=C.length,ce=qe;for(qe&&C.push(w);ce<E;){var Ye=m,Te=!0,qt=!1,Mo=void 0;try{for(var tr=x[Symbol.iterator](),Xr;!(Te=(Xr=tr.next()).done);Te=!0){var Hn=Xr.value;Hn>=j&&Hn<Ye&&(Ye=Hn)}}catch(fa){qt=!0,Mo=fa}finally{try{!Te&&tr.return&&tr.return()}finally{if(qt)throw Mo}}var Gn=ce+1;Ye-j>V((m-D)/Gn)&&L("overflow"),D+=(Ye-j)*Gn,j=Ye;var Xt=!0,Wr=!1,Fn=void 0;try{for(var $r=x[Symbol.iterator](),Ki;!(Xt=(Ki=$r.next()).done);Xt=!0){var ag=Ki.value;if(ag<j&&++D>m&&L("overflow"),ag==j){for(var Ji=D,el=g;;el+=g){var tl=el<=te?O:el>=te+y?y:el-te;if(Ji<tl)break;var ig=Ji-tl,lg=g-tl;C.push(K(q(tl+ig%lg,0))),Ji=V(ig/lg)}C.push(K(q(Ji,0))),te=N(D,Gn,ce==qe),D=0,++ce}}}catch(fa){Wr=!0,Fn=fa}finally{try{!Xt&&$r.return&&$r.return()}finally{if(Wr)throw Fn}}++D,++j}return C.join("")},P=function(x){return ge(x,function(C){return $.test(C)?I(C.slice(4).toLowerCase()):C})},Q=function(x){return ge(x,function(C){return T.test(C)?"xn--"+Z(C):C})},A={version:"2.1.0",ucs2:{decode:Se,encode:Pe},decode:I,encode:Z,toASCII:Q,toUnicode:P},X={};function z(x){var C=x.charCodeAt(0),E=void 0;return C<16?E="%0"+C.toString(16).toUpperCase():C<128?E="%"+C.toString(16).toUpperCase():C<2048?E="%"+(C>>6|192).toString(16).toUpperCase()+"%"+(C&63|128).toString(16).toUpperCase():E="%"+(C>>12|224).toString(16).toUpperCase()+"%"+(C>>6&63|128).toString(16).toUpperCase()+"%"+(C&63|128).toString(16).toUpperCase(),E}function le(x){for(var C="",E=0,j=x.length;E<j;){var D=parseInt(x.substr(E+1,2),16);if(D<128)C+=String.fromCharCode(D),E+=3;else if(D>=194&&D<224){if(j-E>=6){var te=parseInt(x.substr(E+4,2),16);C+=String.fromCharCode((D&31)<<6|te&63)}else C+=x.substr(E,6);E+=6}else if(D>=224){if(j-E>=9){var J=parseInt(x.substr(E+4,2),16),Oe=parseInt(x.substr(E+7,2),16);C+=String.fromCharCode((D&15)<<12|(J&63)<<6|Oe&63)}else C+=x.substr(E,9);E+=9}else C+=x.substr(E,3),E+=3}return C}function ae(x,C){function E(j){var D=le(j);return D.match(C.UNRESERVED)?D:j}return x.scheme&&(x.scheme=String(x.scheme).replace(C.PCT_ENCODED,E).toLowerCase().replace(C.NOT_SCHEME,"")),x.userinfo!==void 0&&(x.userinfo=String(x.userinfo).replace(C.PCT_ENCODED,E).replace(C.NOT_USERINFO,z).replace(C.PCT_ENCODED,i)),x.host!==void 0&&(x.host=String(x.host).replace(C.PCT_ENCODED,E).toLowerCase().replace(C.NOT_HOST,z).replace(C.PCT_ENCODED,i)),x.path!==void 0&&(x.path=String(x.path).replace(C.PCT_ENCODED,E).replace(x.scheme?C.NOT_PATH:C.NOT_PATH_NOSCHEME,z).replace(C.PCT_ENCODED,i)),x.query!==void 0&&(x.query=String(x.query).replace(C.PCT_ENCODED,E).replace(C.NOT_QUERY,z).replace(C.PCT_ENCODED,i)),x.fragment!==void 0&&(x.fragment=String(x.fragment).replace(C.PCT_ENCODED,E).replace(C.NOT_FRAGMENT,z).replace(C.PCT_ENCODED,i)),x}function be(x){return x.replace(/^0*(.*)/,"$1")||"0"}function wr(x,C){var E=x.match(C.IPV4ADDRESS)||[],j=f(E,2),D=j[1];return D?D.split(".").map(be).join("."):x}function Vo(x,C){var E=x.match(C.IPV6ADDRESS)||[],j=f(E,3),D=j[1],te=j[2];if(D){for(var J=D.toLowerCase().split("::").reverse(),Oe=f(J,2),Ue=Oe[0],Ce=Oe[1],me=Ce?Ce.split(":").map(be):[],Ne=Ue.split(":").map(be),qe=C.IPV4ADDRESS.test(Ne[Ne.length-1]),ce=qe?7:8,Ye=Ne.length-ce,Te=Array(ce),qt=0;qt<ce;++qt)Te[qt]=me[qt]||Ne[Ye+qt]||"";qe&&(Te[ce-1]=wr(Te[ce-1],C));var Mo=Te.reduce(function(Xt,Wr,Fn){if(!Wr||Wr==="0"){var $r=Xt[Xt.length-1];$r&&$r.index+$r.length===Fn?$r.length++:Xt.push({index:Fn,length:1})}return Xt},[]),tr=Mo.sort(function(Xt,Wr){return Wr.length-Xt.length})[0],Xr=void 0;if(tr&&tr.length>1){var Hn=Te.slice(0,tr.index),Gn=Te.slice(tr.index+tr.length);Xr=Hn.join(":")+"::"+Gn.join(":")}else Xr=Te.join(":");return te&&(Xr+="%"+te),Xr}else return x}var aa=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ia="".match(/(){0}/)[1]===void 0;function Qt(x){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E={},j=C.iri!==!1?h:u;C.reference==="suffix"&&(x=(C.scheme?C.scheme+":":"")+"//"+x);var D=x.match(aa);if(D){ia?(E.scheme=D[1],E.userinfo=D[3],E.host=D[4],E.port=parseInt(D[5],10),E.path=D[6]||"",E.query=D[7],E.fragment=D[8],isNaN(E.port)&&(E.port=D[5])):(E.scheme=D[1]||void 0,E.userinfo=x.indexOf("@")!==-1?D[3]:void 0,E.host=x.indexOf("//")!==-1?D[4]:void 0,E.port=parseInt(D[5],10),E.path=D[6]||"",E.query=x.indexOf("?")!==-1?D[7]:void 0,E.fragment=x.indexOf("#")!==-1?D[8]:void 0,isNaN(E.port)&&(E.port=x.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?D[4]:void 0)),E.host&&(E.host=Vo(wr(E.host,j),j)),E.scheme===void 0&&E.userinfo===void 0&&E.host===void 0&&E.port===void 0&&!E.path&&E.query===void 0?E.reference="same-document":E.scheme===void 0?E.reference="relative":E.fragment===void 0?E.reference="absolute":E.reference="uri",C.reference&&C.reference!=="suffix"&&C.reference!==E.reference&&(E.error=E.error||"URI is not a "+C.reference+" reference.");var te=X[(C.scheme||E.scheme||"").toLowerCase()];if(!C.unicodeSupport&&(!te||!te.unicodeSupport)){if(E.host&&(C.domainHost||te&&te.domainHost))try{E.host=A.toASCII(E.host.replace(j.PCT_ENCODED,le).toLowerCase())}catch(J){E.error=E.error||"Host's domain name can not be converted to ASCII via punycode: "+J}ae(E,u)}else ae(E,j);te&&te.parse&&te.parse(E,C)}else E.error=E.error||"URI can not be parsed.";return E}function la(x,C){var E=C.iri!==!1?h:u,j=[];return x.userinfo!==void 0&&(j.push(x.userinfo),j.push("@")),x.host!==void 0&&j.push(Vo(wr(String(x.host),E),E).replace(E.IPV6ADDRESS,function(D,te,J){return"["+te+(J?"%25"+J:"")+"]"})),(typeof x.port=="number"||typeof x.port=="string")&&(j.push(":"),j.push(String(x.port))),j.length?j.join(""):void 0}var Bo=/^\.\.?\//,Zo=/^\/\.(\/|$)/,Io=/^\/\.\.(\/|$)/,ca=/^\/?(?:.|\n)*?(?=\/|$)/;function kr(x){for(var C=[];x.length;)if(x.match(Bo))x=x.replace(Bo,"");else if(x.match(Zo))x=x.replace(Zo,"/");else if(x.match(Io))x=x.replace(Io,"/"),C.pop();else if(x==="."||x==="..")x="";else{var E=x.match(ca);if(E){var j=E[0];x=x.slice(j.length),C.push(j)}else throw new Error("Unexpected dot segment condition")}return C.join("")}function St(x){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=C.iri?h:u,j=[],D=X[(C.scheme||x.scheme||"").toLowerCase()];if(D&&D.serialize&&D.serialize(x,C),x.host&&!E.IPV6ADDRESS.test(x.host)&&(C.domainHost||D&&D.domainHost))try{x.host=C.iri?A.toUnicode(x.host):A.toASCII(x.host.replace(E.PCT_ENCODED,le).toLowerCase())}catch(Oe){x.error=x.error||"Host's domain name can not be converted to "+(C.iri?"Unicode":"ASCII")+" via punycode: "+Oe}ae(x,E),C.reference!=="suffix"&&x.scheme&&(j.push(x.scheme),j.push(":"));var te=la(x,C);if(te!==void 0&&(C.reference!=="suffix"&&j.push("//"),j.push(te),x.path&&x.path.charAt(0)!=="/"&&j.push("/")),x.path!==void 0){var J=x.path;!C.absolutePath&&(!D||!D.absolutePath)&&(J=kr(J)),te===void 0&&(J=J.replace(/^\/\//,"/%2F")),j.push(J)}return x.query!==void 0&&(j.push("?"),j.push(x.query)),x.fragment!==void 0&&(j.push("#"),j.push(x.fragment)),j.join("")}function jo(x,C){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},j=arguments[3],D={};return j||(x=Qt(St(x,E),E),C=Qt(St(C,E),E)),E=E||{},!E.tolerant&&C.scheme?(D.scheme=C.scheme,D.userinfo=C.userinfo,D.host=C.host,D.port=C.port,D.path=kr(C.path||""),D.query=C.query):(C.userinfo!==void 0||C.host!==void 0||C.port!==void 0?(D.userinfo=C.userinfo,D.host=C.host,D.port=C.port,D.path=kr(C.path||""),D.query=C.query):(C.path?(C.path.charAt(0)==="/"?D.path=kr(C.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?D.path="/"+C.path:x.path?D.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+C.path:D.path=C.path,D.path=kr(D.path)),D.query=C.query):(D.path=x.path,C.query!==void 0?D.query=C.query:D.query=x.query),D.userinfo=x.userinfo,D.host=x.host,D.port=x.port),D.scheme=x.scheme),D.fragment=C.fragment,D}function da(x,C,E){var j=c({scheme:"null"},E);return St(jo(Qt(x,j),Qt(C,j),j,!0),j)}function Yn(x,C){return typeof x=="string"?x=St(Qt(x,C),C):s(x)==="object"&&(x=Qt(St(x,C),C)),x}function ua(x,C,E){return typeof x=="string"?x=St(Qt(x,E),E):s(x)==="object"&&(x=St(x,E)),typeof C=="string"?C=St(Qt(C,E),E):s(C)==="object"&&(C=St(C,E)),x===C}function Fi(x,C){return x&&x.toString().replace(!C||!C.iri?u.ESCAPE:h.ESCAPE,z)}function Mt(x,C){return x&&x.toString().replace(!C||!C.iri?u.PCT_ENCODED:h.PCT_ENCODED,le)}var Ln={scheme:"http",domainHost:!0,parse:function(x,C){return x.host||(x.error=x.error||"HTTP URIs must have a host."),x},serialize:function(x,C){var E=String(x.scheme).toLowerCase()==="https";return(x.port===(E?443:80)||x.port==="")&&(x.port=void 0),x.path||(x.path="/"),x}},Km={scheme:"https",domainHost:Ln.domainHost,parse:Ln.parse,serialize:Ln.serialize};function Jm(x){return typeof x.secure=="boolean"?x.secure:String(x.scheme).toLowerCase()==="wss"}var ha={scheme:"ws",domainHost:!0,parse:function(x,C){var E=x;return E.secure=Jm(E),E.resourceName=(E.path||"/")+(E.query?"?"+E.query:""),E.path=void 0,E.query=void 0,E},serialize:function(x,C){if((x.port===(Jm(x)?443:80)||x.port==="")&&(x.port=void 0),typeof x.secure=="boolean"&&(x.scheme=x.secure?"wss":"ws",x.secure=void 0),x.resourceName){var E=x.resourceName.split("?"),j=f(E,2),D=j[0],te=j[1];x.path=D&&D!=="/"?D:void 0,x.query=te,x.resourceName=void 0}return x.fragment=void 0,x}},eg={scheme:"wss",domainHost:ha.domainHost,parse:ha.parse,serialize:ha.serialize},c$={},tg="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Sr="[0-9A-Fa-f]",d$=o(o("%[EFef]"+Sr+"%"+Sr+Sr+"%"+Sr+Sr)+"|"+o("%[89A-Fa-f]"+Sr+"%"+Sr+Sr)+"|"+o("%"+Sr+Sr)),u$="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",h$="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",f$=n(h$,'[\\"\\\\]'),p$="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",m$=new RegExp(tg,"g"),Do=new RegExp(d$,"g"),g$=new RegExp(n("[^]",u$,"[\\.]",'[\\"]',f$),"g"),rg=new RegExp(n("[^]",tg,p$),"g"),O$=rg;function eu(x){var C=le(x);return C.match(m$)?C:x}var ng={scheme:"mailto",parse:function(x,C){var E=x,j=E.to=E.path?E.path.split(","):[];if(E.path=void 0,E.query){for(var D=!1,te={},J=E.query.split("&"),Oe=0,Ue=J.length;Oe<Ue;++Oe){var Ce=J[Oe].split("=");switch(Ce[0]){case"to":for(var me=Ce[1].split(","),Ne=0,qe=me.length;Ne<qe;++Ne)j.push(me[Ne]);break;case"subject":E.subject=Mt(Ce[1],C);break;case"body":E.body=Mt(Ce[1],C);break;default:D=!0,te[Mt(Ce[0],C)]=Mt(Ce[1],C);break}}D&&(E.headers=te)}E.query=void 0;for(var ce=0,Ye=j.length;ce<Ye;++ce){var Te=j[ce].split("@");if(Te[0]=Mt(Te[0]),C.unicodeSupport)Te[1]=Mt(Te[1],C).toLowerCase();else try{Te[1]=A.toASCII(Mt(Te[1],C).toLowerCase())}catch(qt){E.error=E.error||"Email address's domain name can not be converted to ASCII via punycode: "+qt}j[ce]=Te.join("@")}return E},serialize:function(x,C){var E=x,j=l(x.to);if(j){for(var D=0,te=j.length;D<te;++D){var J=String(j[D]),Oe=J.lastIndexOf("@"),Ue=J.slice(0,Oe).replace(Do,eu).replace(Do,i).replace(g$,z),Ce=J.slice(Oe+1);try{Ce=C.iri?A.toUnicode(Ce):A.toASCII(Mt(Ce,C).toLowerCase())}catch(ce){E.error=E.error||"Email address's domain name can not be converted to "+(C.iri?"Unicode":"ASCII")+" via punycode: "+ce}j[D]=Ue+"@"+Ce}E.path=j.join(",")}var me=x.headers=x.headers||{};x.subject&&(me.subject=x.subject),x.body&&(me.body=x.body);var Ne=[];for(var qe in me)me[qe]!==c$[qe]&&Ne.push(qe.replace(Do,eu).replace(Do,i).replace(rg,z)+"="+me[qe].replace(Do,eu).replace(Do,i).replace(O$,z));return Ne.length&&(E.query=Ne.join("&")),E}},y$=/^([^\:]+)\:(.*)/,og={scheme:"urn",parse:function(x,C){var E=x.path&&x.path.match(y$),j=x;if(E){var D=C.scheme||j.scheme||"urn",te=E[1].toLowerCase(),J=E[2],Oe=D+":"+(C.nid||te),Ue=X[Oe];j.nid=te,j.nss=J,j.path=void 0,Ue&&(j=Ue.parse(j,C))}else j.error=j.error||"URN can not be parsed.";return j},serialize:function(x,C){var E=C.scheme||x.scheme||"urn",j=x.nid,D=E+":"+(C.nid||j),te=X[D];te&&(x=te.serialize(x,C));var J=x,Oe=x.nss;return J.path=(j||C.nid)+":"+Oe,J}},b$=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,sg={scheme:"urn:uuid",parse:function(x,C){var E=x;return E.uuid=E.nss,E.nss=void 0,!C.tolerant&&(!E.uuid||!E.uuid.match(b$))&&(E.error=E.error||"UUID is not valid."),E},serialize:function(x,C){var E=x;return E.nss=(x.uuid||"").toLowerCase(),E}};X[Ln.scheme]=Ln,X[Km.scheme]=Km,X[ha.scheme]=ha,X[eg.scheme]=eg,X[ng.scheme]=ng,X[og.scheme]=og,X[sg.scheme]=sg,t.SCHEMES=X,t.pctEncChar=z,t.pctDecChars=le,t.parse=Qt,t.removeDotSegments=kr,t.serialize=St,t.resolveComponents=jo,t.resolve=da,t.normalize=Yn,t.equal=ua,t.escapeComponent=Fi,t.unescapeComponent=Mt,Object.defineProperty(t,"__esModule",{value:!0})})})(pf,pf.exports);var mZ=pf.exports;Object.defineProperty(jp,"__esModule",{value:!0});const sk=mZ;sk.code='require("ajv/dist/runtime/uri").default';jp.default=sk;(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=void 0;var e=Ht;Object.defineProperty(r,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var t=se;Object.defineProperty(r,"_",{enumerable:!0,get:function(){return t._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return t.str}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return t.stringify}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return t.nil}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return t.Name}}),Object.defineProperty(r,"CodeGen",{enumerable:!0,get:function(){return t.CodeGen}});const n=Xs,o=Ws,s=Co,i=bt,l=se,c=ot,d=Vi,u=pe,h=pZ,f=jp,p=(q,N)=>new RegExp(q,N);p.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),O={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=200;function v(q){var N,I,Z,P,Q,A,X,z,le,ae,be,wr,Vo,aa,ia,Qt,la,Bo,Zo,Io,ca,kr,St,jo,da;const Yn=q.strict,ua=(N=q.code)===null||N===void 0?void 0:N.optimize,Fi=ua===!0||ua===void 0?1:ua||0,Mt=(Z=(I=q.code)===null||I===void 0?void 0:I.regExp)!==null&&Z!==void 0?Z:p,Ln=(P=q.uriResolver)!==null&&P!==void 0?P:f.default;return{strictSchema:(A=(Q=q.strictSchema)!==null&&Q!==void 0?Q:Yn)!==null&&A!==void 0?A:!0,strictNumbers:(z=(X=q.strictNumbers)!==null&&X!==void 0?X:Yn)!==null&&z!==void 0?z:!0,strictTypes:(ae=(le=q.strictTypes)!==null&&le!==void 0?le:Yn)!==null&&ae!==void 0?ae:"log",strictTuples:(wr=(be=q.strictTuples)!==null&&be!==void 0?be:Yn)!==null&&wr!==void 0?wr:"log",strictRequired:(aa=(Vo=q.strictRequired)!==null&&Vo!==void 0?Vo:Yn)!==null&&aa!==void 0?aa:!1,code:q.code?{...q.code,optimize:Fi,regExp:Mt}:{optimize:Fi,regExp:Mt},loopRequired:(ia=q.loopRequired)!==null&&ia!==void 0?ia:b,loopEnum:(Qt=q.loopEnum)!==null&&Qt!==void 0?Qt:b,meta:(la=q.meta)!==null&&la!==void 0?la:!0,messages:(Bo=q.messages)!==null&&Bo!==void 0?Bo:!0,inlineRefs:(Zo=q.inlineRefs)!==null&&Zo!==void 0?Zo:!0,schemaId:(Io=q.schemaId)!==null&&Io!==void 0?Io:"$id",addUsedSchema:(ca=q.addUsedSchema)!==null&&ca!==void 0?ca:!0,validateSchema:(kr=q.validateSchema)!==null&&kr!==void 0?kr:!0,validateFormats:(St=q.validateFormats)!==null&&St!==void 0?St:!0,unicodeRegExp:(jo=q.unicodeRegExp)!==null&&jo!==void 0?jo:!0,int32range:(da=q.int32range)!==null&&da!==void 0?da:!0,uriResolver:Ln}}class k{constructor(N={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,N=this.opts={...N,...v(N)};const{es5:I,lines:Z}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:g,es5:I,lines:Z}),this.logger=V(N.logger);const P=N.validateFormats;N.validateFormats=!1,this.RULES=(0,s.getRules)(),S.call(this,O,N,"NOT SUPPORTED"),S.call(this,y,N,"DEPRECATED","warn"),this._metaOpts=B.call(this),N.formats&&T.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),N.keywords&&R.call(this,N.keywords),typeof N.meta=="object"&&this.addMetaSchema(N.meta),$.call(this),N.validateFormats=P}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:N,meta:I,schemaId:Z}=this.opts;let P=h;Z==="id"&&(P={...h},P.id=P.$id,delete P.$id),I&&N&&this.addMetaSchema(P,P[Z],!1)}defaultMeta(){const{meta:N,schemaId:I}=this.opts;return this.opts.defaultMeta=typeof N=="object"?N[I]||N:void 0}validate(N,I){let Z;if(typeof N=="string"){if(Z=this.getSchema(N),!Z)throw new Error(`no schema with key or ref "${N}"`)}else Z=this.compile(N);const P=Z(I);return"$async"in Z||(this.errors=Z.errors),P}compile(N,I){const Z=this._addSchema(N,I);return Z.validate||this._compileSchemaEnv(Z)}compileAsync(N,I){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:Z}=this.opts;return P.call(this,N,I);async function P(ae,be){await Q.call(this,ae.$schema);const wr=this._addSchema(ae,be);return wr.validate||A.call(this,wr)}async function Q(ae){ae&&!this.getSchema(ae)&&await P.call(this,{$ref:ae},!0)}async function A(ae){try{return this._compileSchemaEnv(ae)}catch(be){if(!(be instanceof o.default))throw be;return X.call(this,be),await z.call(this,be.missingSchema),A.call(this,ae)}}function X({missingSchema:ae,missingRef:be}){if(this.refs[ae])throw new Error(`AnySchema ${ae} is loaded but ${be} cannot be resolved`)}async function z(ae){const be=await le.call(this,ae);this.refs[ae]||await Q.call(this,be.$schema),this.refs[ae]||this.addSchema(be,ae,I)}async function le(ae){const be=this._loading[ae];if(be)return be;try{return await(this._loading[ae]=Z(ae))}finally{delete this._loading[ae]}}}addSchema(N,I,Z,P=this.opts.validateSchema){if(Array.isArray(N)){for(const A of N)this.addSchema(A,void 0,Z,P);return this}let Q;if(typeof N=="object"){const{schemaId:A}=this.opts;if(Q=N[A],Q!==void 0&&typeof Q!="string")throw new Error(`schema ${A} must be string`)}return I=(0,c.normalizeId)(I||Q),this._checkUnique(I),this.schemas[I]=this._addSchema(N,Z,I,P,!0),this}addMetaSchema(N,I,Z=this.opts.validateSchema){return this.addSchema(N,I,!0,Z),this}validateSchema(N,I){if(typeof N=="boolean")return!0;let Z;if(Z=N.$schema,Z!==void 0&&typeof Z!="string")throw new Error("$schema must be a string");if(Z=Z||this.opts.defaultMeta||this.defaultMeta(),!Z)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const P=this.validate(Z,N);if(!P&&I){const Q="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(Q);else throw new Error(Q)}return P}getSchema(N){let I;for(;typeof(I=w.call(this,N))=="string";)N=I;if(I===void 0){const{schemaId:Z}=this.opts,P=new i.SchemaEnv({schema:{},schemaId:Z});if(I=i.resolveSchema.call(this,P,N),!I)return;this.refs[N]=I}return I.validate||this._compileSchemaEnv(I)}removeSchema(N){if(N instanceof RegExp)return this._removeAllSchemas(this.schemas,N),this._removeAllSchemas(this.refs,N),this;switch(typeof N){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const I=w.call(this,N);return typeof I=="object"&&this._cache.delete(I.schema),delete this.schemas[N],delete this.refs[N],this}case"object":{const I=N;this._cache.delete(I);let Z=N[this.opts.schemaId];return Z&&(Z=(0,c.normalizeId)(Z),delete this.schemas[Z],delete this.refs[Z]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(N){for(const I of N)this.addKeyword(I);return this}addKeyword(N,I){let Z;if(typeof N=="string")Z=N,typeof I=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),I.keyword=Z);else if(typeof N=="object"&&I===void 0){if(I=N,Z=I.keyword,Array.isArray(Z)&&!Z.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(L.call(this,Z,I),!I)return(0,u.eachItem)(Z,Q=>ne.call(this,Q)),this;Se.call(this,I);const P={...I,type:(0,d.getJSONTypes)(I.type),schemaType:(0,d.getJSONTypes)(I.schemaType)};return(0,u.eachItem)(Z,P.type.length===0?Q=>ne.call(this,Q,P):Q=>P.type.forEach(A=>ne.call(this,Q,P,A))),this}getKeyword(N){const I=this.RULES.all[N];return typeof I=="object"?I.definition:!!I}removeKeyword(N){const{RULES:I}=this;delete I.keywords[N],delete I.all[N];for(const Z of I.rules){const P=Z.rules.findIndex(Q=>Q.keyword===N);P>=0&&Z.rules.splice(P,1)}return this}addFormat(N,I){return typeof I=="string"&&(I=new RegExp(I)),this.formats[N]=I,this}errorsText(N=this.errors,{separator:I=", ",dataVar:Z="data"}={}){return!N||N.length===0?"No errors":N.map(P=>`${Z}${P.instancePath} ${P.message}`).reduce((P,Q)=>P+I+Q)}$dataMetaSchema(N,I){const Z=this.RULES.all;N=JSON.parse(JSON.stringify(N));for(const P of I){const Q=P.split("/").slice(1);let A=N;for(const X of Q)A=A[X];for(const X in Z){const z=Z[X];if(typeof z!="object")continue;const{$data:le}=z.definition,ae=A[X];le&&ae&&(A[X]=ie(ae))}}return N}_removeAllSchemas(N,I){for(const Z in N){const P=N[Z];(!I||I.test(Z))&&(typeof P=="string"?delete N[Z]:P&&!P.meta&&(this._cache.delete(P.schema),delete N[Z]))}}_addSchema(N,I,Z,P=this.opts.validateSchema,Q=this.opts.addUsedSchema){let A;const{schemaId:X}=this.opts;if(typeof N=="object")A=N[X];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof N!="boolean")throw new Error("schema must be object or boolean")}let z=this._cache.get(N);if(z!==void 0)return z;Z=(0,c.normalizeId)(A||Z);const le=c.getSchemaRefs.call(this,N,Z);return z=new i.SchemaEnv({schema:N,schemaId:X,meta:I,baseId:Z,localRefs:le}),this._cache.set(z.schema,z),Q&&!Z.startsWith("#")&&(Z&&this._checkUnique(Z),this.refs[Z]=z),P&&this.validateSchema(N,!0),z}_checkUnique(N){if(this.schemas[N]||this.refs[N])throw new Error(`schema with key or id "${N}" already exists`)}_compileSchemaEnv(N){if(N.meta?this._compileMetaSchema(N):i.compileSchema.call(this,N),!N.validate)throw new Error("ajv implementation error");return N.validate}_compileMetaSchema(N){const I=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,N)}finally{this.opts=I}}}r.default=k,k.ValidationError=n.default,k.MissingRefError=o.default;function S(q,N,I,Z="error"){for(const P in q){const Q=P;Q in N&&this.logger[Z](`${I}: option ${P}. ${q[Q]}`)}}function w(q){return q=(0,c.normalizeId)(q),this.schemas[q]||this.refs[q]}function $(){const q=this.opts.schemas;if(q)if(Array.isArray(q))this.addSchema(q);else for(const N in q)this.addSchema(q[N],N)}function T(){for(const q in this.opts.formats){const N=this.opts.formats[q];N&&this.addFormat(q,N)}}function R(q){if(Array.isArray(q)){this.addVocabulary(q);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const N in q){const I=q[N];I.keyword||(I.keyword=N),this.addKeyword(I)}}function B(){const q={...this.opts};for(const N of m)delete q[N];return q}const M={log(){},warn(){},error(){}};function V(q){if(q===!1)return M;if(q===void 0)return console;if(q.log&&q.warn&&q.error)return q;throw new Error("logger must implement log, warn and error methods")}const K=/^[a-z_$][a-z0-9_$:-]*$/i;function L(q,N){const{RULES:I}=this;if((0,u.eachItem)(q,Z=>{if(I.keywords[Z])throw new Error(`Keyword ${Z} is already defined`);if(!K.test(Z))throw new Error(`Keyword ${Z} has invalid name`)}),!!N&&N.$data&&!("code"in N||"validate"in N))throw new Error('$data keyword must have "code" or "validate" function')}function ne(q,N,I){var Z;const P=N==null?void 0:N.post;if(I&&P)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:Q}=this;let A=P?Q.post:Q.rules.find(({type:z})=>z===I);if(A||(A={type:I,rules:[]},Q.rules.push(A)),Q.keywords[q]=!0,!N)return;const X={keyword:q,definition:{...N,type:(0,d.getJSONTypes)(N.type),schemaType:(0,d.getJSONTypes)(N.schemaType)}};N.before?ge.call(this,A,X,N.before):A.rules.push(X),Q.all[q]=X,(Z=N.implements)===null||Z===void 0||Z.forEach(z=>this.addKeyword(z))}function ge(q,N,I){const Z=q.rules.findIndex(P=>P.keyword===I);Z>=0?q.rules.splice(Z,0,N):(q.rules.push(N),this.logger.warn(`rule ${I} is not defined`))}function Se(q){let{metaSchema:N}=q;N!==void 0&&(q.$data&&this.opts.$data&&(N=ie(N)),q.validateSchema=this.compile(N,!0))}const Pe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ie(q){return{anyOf:[q,Pe]}}})(wo);var Dp={},kd={},Mp={};Object.defineProperty(Mp,"__esModule",{value:!0});const gZ={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Mp.default=gZ;var jr={};Object.defineProperty(jr,"__esModule",{value:!0});jr.callRef=jr.getValidate=void 0;const OZ=Ws,U0=he,Pt=se,Uo=Dt,Y0=bt,xl=pe,yZ={keyword:"$ref",schemaType:"string",code(r){const{gen:e,schema:t,it:n}=r,{baseId:o,schemaEnv:s,validateName:i,opts:l,self:c}=n,{root:d}=s;if((t==="#"||t==="#/")&&o===d.baseId)return h();const u=Y0.resolveRef.call(c,d,o,t);if(u===void 0)throw new OZ.default(n.opts.uriResolver,o,t);if(u instanceof Y0.SchemaEnv)return f(u);return p(u);function h(){if(s===d)return Jl(r,i,s,s.$async);const m=e.scopeValue("root",{ref:d});return Jl(r,(0,Pt._)`${m}.validate`,d,d.$async)}function f(m){const g=ak(r,m);Jl(r,g,m,m.$async)}function p(m){const g=e.scopeValue("schema",l.code.source===!0?{ref:m,code:(0,Pt.stringify)(m)}:{ref:m}),O=e.name("valid"),y=r.subschema({schema:m,dataTypes:[],schemaPath:Pt.nil,topSchemaRef:g,errSchemaPath:t},O);r.mergeEvaluated(y),r.ok(O)}}};function ak(r,e){const{gen:t}=r;return e.validate?t.scopeValue("validate",{ref:e.validate}):(0,Pt._)`${t.scopeValue("wrapper",{ref:e})}.validate`}jr.getValidate=ak;function Jl(r,e,t,n){const{gen:o,it:s}=r,{allErrors:i,schemaEnv:l,opts:c}=s,d=c.passContext?Uo.default.this:Pt.nil;n?u():h();function u(){if(!l.$async)throw new Error("async schema referenced by sync schema");const m=o.let("valid");o.try(()=>{o.code((0,Pt._)`await ${(0,U0.callValidateCode)(r,e,d)}`),p(e),i||o.assign(m,!0)},g=>{o.if((0,Pt._)`!(${g} instanceof ${s.ValidationError})`,()=>o.throw(g)),f(g),i||o.assign(m,!1)}),r.ok(m)}function h(){r.result((0,U0.callValidateCode)(r,e,d),()=>p(e),()=>f(e))}function f(m){const g=(0,Pt._)`${m}.errors`;o.assign(Uo.default.vErrors,(0,Pt._)`${Uo.default.vErrors} === null ? ${g} : ${Uo.default.vErrors}.concat(${g})`),o.assign(Uo.default.errors,(0,Pt._)`${Uo.default.vErrors}.length`)}function p(m){var g;if(!s.opts.unevaluated)return;const O=(g=t==null?void 0:t.validate)===null||g===void 0?void 0:g.evaluated;if(s.props!==!0)if(O&&!O.dynamicProps)O.props!==void 0&&(s.props=xl.mergeEvaluated.props(o,O.props,s.props));else{const y=o.var("props",(0,Pt._)`${m}.evaluated.props`);s.props=xl.mergeEvaluated.props(o,y,s.props,Pt.Name)}if(s.items!==!0)if(O&&!O.dynamicItems)O.items!==void 0&&(s.items=xl.mergeEvaluated.items(o,O.items,s.items));else{const y=o.var("items",(0,Pt._)`${m}.evaluated.items`);s.items=xl.mergeEvaluated.items(o,y,s.items,Pt.Name)}}}jr.callRef=Jl;jr.default=yZ;Object.defineProperty(kd,"__esModule",{value:!0});const bZ=Mp,vZ=jr,wZ=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",bZ.default,vZ.default];kd.default=wZ;var Sd={},qp={};Object.defineProperty(qp,"__esModule",{value:!0});const Ic=se,mn=Ic.operators,jc={maximum:{okStr:"<=",ok:mn.LTE,fail:mn.GT},minimum:{okStr:">=",ok:mn.GTE,fail:mn.LT},exclusiveMaximum:{okStr:"<",ok:mn.LT,fail:mn.GTE},exclusiveMinimum:{okStr:">",ok:mn.GT,fail:mn.LTE}},kZ={message:({keyword:r,schemaCode:e})=>(0,Ic.str)`must be ${jc[r].okStr} ${e}`,params:({keyword:r,schemaCode:e})=>(0,Ic._)`{comparison: ${jc[r].okStr}, limit: ${e}}`},SZ={keyword:Object.keys(jc),type:"number",schemaType:"number",$data:!0,error:kZ,code(r){const{keyword:e,data:t,schemaCode:n}=r;r.fail$data((0,Ic._)`${t} ${jc[e].fail} ${n} || isNaN(${t})`)}};qp.default=SZ;var $d={};Object.defineProperty($d,"__esModule",{value:!0});const za=se,$Z={message:({schemaCode:r})=>(0,za.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,za._)`{multipleOf: ${r}}`},PZ={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:$Z,code(r){const{gen:e,data:t,schemaCode:n,it:o}=r,s=o.opts.multipleOfPrecision,i=e.let("res"),l=s?(0,za._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${s}`:(0,za._)`${i} !== parseInt(${i})`;r.fail$data((0,za._)`(${n} === 0 || (${i} = ${t}/${n}, ${l}))`)}};$d.default=PZ;var Pd={},Xp={};Object.defineProperty(Xp,"__esModule",{value:!0});function ik(r){const e=r.length;let t=0,n=0,o;for(;n<e;)t++,o=r.charCodeAt(n++),o>=55296&&o<=56319&&n<e&&(o=r.charCodeAt(n),(o&64512)===56320&&n++);return t}Xp.default=ik;ik.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(Pd,"__esModule",{value:!0});const oo=se,xZ=pe,_Z=Xp,CZ={message({keyword:r,schemaCode:e}){const t=r==="maxLength"?"more":"fewer";return(0,oo.str)`must NOT have ${t} than ${e} characters`},params:({schemaCode:r})=>(0,oo._)`{limit: ${r}}`},TZ={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:CZ,code(r){const{keyword:e,data:t,schemaCode:n,it:o}=r,s=e==="maxLength"?oo.operators.GT:oo.operators.LT,i=o.opts.unicode===!1?(0,oo._)`${t}.length`:(0,oo._)`${(0,xZ.useFunc)(r.gen,_Z.default)}(${t})`;r.fail$data((0,oo._)`${i} ${s} ${n}`)}};Pd.default=TZ;var xd={};Object.defineProperty(xd,"__esModule",{value:!0});const QZ=he,Dc=se,EZ={message:({schemaCode:r})=>(0,Dc.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,Dc._)`{pattern: ${r}}`},NZ={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:EZ,code(r){const{data:e,$data:t,schema:n,schemaCode:o,it:s}=r,i=s.opts.unicodeRegExp?"u":"",l=t?(0,Dc._)`(new RegExp(${o}, ${i}))`:(0,QZ.usePattern)(r,n);r.fail$data((0,Dc._)`!${l}.test(${e})`)}};xd.default=NZ;var _d={};Object.defineProperty(_d,"__esModule",{value:!0});const Ua=se,AZ={message({keyword:r,schemaCode:e}){const t=r==="maxProperties"?"more":"fewer";return(0,Ua.str)`must NOT have ${t} than ${e} properties`},params:({schemaCode:r})=>(0,Ua._)`{limit: ${r}}`},RZ={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:AZ,code(r){const{keyword:e,data:t,schemaCode:n}=r,o=e==="maxProperties"?Ua.operators.GT:Ua.operators.LT;r.fail$data((0,Ua._)`Object.keys(${t}).length ${o} ${n}`)}};_d.default=RZ;var Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});const Pa=he,Ya=se,VZ=pe,BZ={message:({params:{missingProperty:r}})=>(0,Ya.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,Ya._)`{missingProperty: ${r}}`},ZZ={keyword:"required",type:"object",schemaType:"array",$data:!0,error:BZ,code(r){const{gen:e,schema:t,schemaCode:n,data:o,$data:s,it:i}=r,{opts:l}=i;if(!s&&t.length===0)return;const c=t.length>=l.loopRequired;if(i.allErrors?d():u(),l.strictRequired){const p=r.parentSchema.properties,{definedProperties:m}=r.it;for(const g of t)if((p==null?void 0:p[g])===void 0&&!m.has(g)){const O=i.schemaEnv.baseId+i.errSchemaPath,y=`required property "${g}" is not defined at "${O}" (strictRequired)`;(0,VZ.checkStrictMode)(i,y,i.opts.strictRequired)}}function d(){if(c||s)r.block$data(Ya.nil,h);else for(const p of t)(0,Pa.checkReportMissingProp)(r,p)}function u(){const p=e.let("missing");if(c||s){const m=e.let("valid",!0);r.block$data(m,()=>f(p,m)),r.ok(m)}else e.if((0,Pa.checkMissingProp)(r,t,p)),(0,Pa.reportMissingProp)(r,p),e.else()}function h(){e.forOf("prop",n,p=>{r.setParams({missingProperty:p}),e.if((0,Pa.noPropertyInData)(e,o,p,l.ownProperties),()=>r.error())})}function f(p,m){r.setParams({missingProperty:p}),e.forOf(p,n,()=>{e.assign(m,(0,Pa.propertyInData)(e,o,p,l.ownProperties)),e.if((0,Ya.not)(m),()=>{r.error(),e.break()})},Ya.nil)}}};Cd.default=ZZ;var Td={};Object.defineProperty(Td,"__esModule",{value:!0});const La=se,IZ={message({keyword:r,schemaCode:e}){const t=r==="maxItems"?"more":"fewer";return(0,La.str)`must NOT have ${t} than ${e} items`},params:({schemaCode:r})=>(0,La._)`{limit: ${r}}`},jZ={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:IZ,code(r){const{keyword:e,data:t,schemaCode:n}=r,o=e==="maxItems"?La.operators.GT:La.operators.LT;r.fail$data((0,La._)`${t}.length ${o} ${n}`)}};Td.default=jZ;var Qd={},Bi={};Object.defineProperty(Bi,"__esModule",{value:!0});const lk=qw;lk.code='require("ajv/dist/runtime/equal").default';Bi.default=lk;Object.defineProperty(Qd,"__esModule",{value:!0});const ju=Vi,tt=se,DZ=pe,MZ=Bi,qZ={message:({params:{i:r,j:e}})=>(0,tt.str)`must NOT have duplicate items (items ## ${e} and ${r} are identical)`,params:({params:{i:r,j:e}})=>(0,tt._)`{i: ${r}, j: ${e}}`},XZ={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:qZ,code(r){const{gen:e,data:t,$data:n,schema:o,parentSchema:s,schemaCode:i,it:l}=r;if(!n&&!o)return;const c=e.let("valid"),d=s.items?(0,ju.getSchemaTypes)(s.items):[];r.block$data(c,u,(0,tt._)`${i} === false`),r.ok(c);function u(){const m=e.let("i",(0,tt._)`${t}.length`),g=e.let("j");r.setParams({i:m,j:g}),e.assign(c,!0),e.if((0,tt._)`${m} > 1`,()=>(h()?f:p)(m,g))}function h(){return d.length>0&&!d.some(m=>m==="object"||m==="array")}function f(m,g){const O=e.name("item"),y=(0,ju.checkDataTypes)(d,O,l.opts.strictNumbers,ju.DataType.Wrong),b=e.const("indices",(0,tt._)`{}`);e.for((0,tt._)`;${m}--;`,()=>{e.let(O,(0,tt._)`${t}[${m}]`),e.if(y,(0,tt._)`continue`),d.length>1&&e.if((0,tt._)`typeof ${O} == "string"`,(0,tt._)`${O} += "_"`),e.if((0,tt._)`typeof ${b}[${O}] == "number"`,()=>{e.assign(g,(0,tt._)`${b}[${O}]`),r.error(),e.assign(c,!1).break()}).code((0,tt._)`${b}[${O}] = ${m}`)})}function p(m,g){const O=(0,DZ.useFunc)(e,MZ.default),y=e.name("outer");e.label(y).for((0,tt._)`;${m}--;`,()=>e.for((0,tt._)`${g} = ${m}; ${g}--;`,()=>e.if((0,tt._)`${O}(${t}[${m}], ${t}[${g}])`,()=>{r.error(),e.assign(c,!1).break(y)})))}}};Qd.default=XZ;var Ed={};Object.defineProperty(Ed,"__esModule",{value:!0});const mf=se,WZ=pe,zZ=Bi,UZ={message:"must be equal to constant",params:({schemaCode:r})=>(0,mf._)`{allowedValue: ${r}}`},YZ={keyword:"const",$data:!0,error:UZ,code(r){const{gen:e,data:t,$data:n,schemaCode:o,schema:s}=r;n||s&&typeof s=="object"?r.fail$data((0,mf._)`!${(0,WZ.useFunc)(e,zZ.default)}(${t}, ${o})`):r.fail((0,mf._)`${s} !== ${t}`)}};Ed.default=YZ;var Nd={};Object.defineProperty(Nd,"__esModule",{value:!0});const Aa=se,LZ=pe,HZ=Bi,GZ={message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,Aa._)`{allowedValues: ${r}}`},FZ={keyword:"enum",schemaType:"array",$data:!0,error:GZ,code(r){const{gen:e,data:t,$data:n,schema:o,schemaCode:s,it:i}=r;if(!n&&o.length===0)throw new Error("enum must have non-empty array");const l=o.length>=i.opts.loopEnum;let c;const d=()=>c??(c=(0,LZ.useFunc)(e,HZ.default));let u;if(l||n)u=e.let("valid"),r.block$data(u,h);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const p=e.const("vSchema",s);u=(0,Aa.or)(...o.map((m,g)=>f(p,g)))}r.pass(u);function h(){e.assign(u,!1),e.forOf("v",s,p=>e.if((0,Aa._)`${d()}(${t}, ${p})`,()=>e.assign(u,!0).break()))}function f(p,m){const g=o[m];return typeof g=="object"&&g!==null?(0,Aa._)`${d()}(${t}, ${p}[${m}])`:(0,Aa._)`${t} === ${g}`}}};Nd.default=FZ;Object.defineProperty(Sd,"__esModule",{value:!0});const KZ=qp,JZ=$d,eI=Pd,tI=xd,rI=_d,nI=Cd,oI=Td,sI=Qd,aI=Ed,iI=Nd,lI=[KZ.default,JZ.default,eI.default,tI.default,rI.default,nI.default,oI.default,sI.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},aI.default,iI.default];Sd.default=lI;var Zi={},zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.validateAdditionalItems=void 0;const so=se,gf=pe,cI={message:({params:{len:r}})=>(0,so.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,so._)`{limit: ${r}}`},dI={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:cI,code(r){const{parentSchema:e,it:t}=r,{items:n}=e;if(!Array.isArray(n)){(0,gf.checkStrictMode)(t,'"additionalItems" is ignored when "items" is not an array of schemas');return}ck(r,n)}};function ck(r,e){const{gen:t,schema:n,data:o,keyword:s,it:i}=r;i.items=!0;const l=t.const("len",(0,so._)`${o}.length`);if(n===!1)r.setParams({len:e.length}),r.pass((0,so._)`${l} <= ${e.length}`);else if(typeof n=="object"&&!(0,gf.alwaysValidSchema)(i,n)){const d=t.var("valid",(0,so._)`${l} <= ${e.length}`);t.if((0,so.not)(d),()=>c(d)),r.ok(d)}function c(d){t.forRange("i",e.length,l,u=>{r.subschema({keyword:s,dataProp:u,dataPropType:gf.Type.Num},d),i.allErrors||t.if((0,so.not)(d),()=>t.break())})}}zs.validateAdditionalItems=ck;zs.default=dI;var Wp={},Us={};Object.defineProperty(Us,"__esModule",{value:!0});Us.validateTuple=void 0;const L0=se,ec=pe,uI=he,hI={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){const{schema:e,it:t}=r;if(Array.isArray(e))return dk(r,"additionalItems",e);t.items=!0,!(0,ec.alwaysValidSchema)(t,e)&&r.ok((0,uI.validateArray)(r))}};function dk(r,e,t=r.schema){const{gen:n,parentSchema:o,data:s,keyword:i,it:l}=r;u(o),l.opts.unevaluated&&t.length&&l.items!==!0&&(l.items=ec.mergeEvaluated.items(n,t.length,l.items));const c=n.name("valid"),d=n.const("len",(0,L0._)`${s}.length`);t.forEach((h,f)=>{(0,ec.alwaysValidSchema)(l,h)||(n.if((0,L0._)`${d} > ${f}`,()=>r.subschema({keyword:i,schemaProp:f,dataProp:f},c)),r.ok(c))});function u(h){const{opts:f,errSchemaPath:p}=l,m=t.length,g=m===h.minItems&&(m===h.maxItems||h[e]===!1);if(f.strictTuples&&!g){const O=`"${i}" is ${m}-tuple, but minItems or maxItems/${e} are not specified or different at path "${p}"`;(0,ec.checkStrictMode)(l,O,f.strictTuples)}}}Us.validateTuple=dk;Us.default=hI;Object.defineProperty(Wp,"__esModule",{value:!0});const fI=Us,pI={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,fI.validateTuple)(r,"items")};Wp.default=pI;var zp={};Object.defineProperty(zp,"__esModule",{value:!0});const H0=se,mI=pe,gI=he,OI=zs,yI={message:({params:{len:r}})=>(0,H0.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,H0._)`{limit: ${r}}`},bI={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:yI,code(r){const{schema:e,parentSchema:t,it:n}=r,{prefixItems:o}=t;n.items=!0,!(0,mI.alwaysValidSchema)(n,e)&&(o?(0,OI.validateAdditionalItems)(r,o):r.ok((0,gI.validateArray)(r)))}};zp.default=bI;var Up={};Object.defineProperty(Up,"__esModule",{value:!0});const zt=se,_l=pe,vI={message:({params:{min:r,max:e}})=>e===void 0?(0,zt.str)`must contain at least ${r} valid item(s)`:(0,zt.str)`must contain at least ${r} and no more than ${e} valid item(s)`,params:({params:{min:r,max:e}})=>e===void 0?(0,zt._)`{minContains: ${r}}`:(0,zt._)`{minContains: ${r}, maxContains: ${e}}`},wI={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:vI,code(r){const{gen:e,schema:t,parentSchema:n,data:o,it:s}=r;let i,l;const{minContains:c,maxContains:d}=n;s.opts.next?(i=c===void 0?1:c,l=d):i=1;const u=e.const("len",(0,zt._)`${o}.length`);if(r.setParams({min:i,max:l}),l===void 0&&i===0){(0,_l.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(l!==void 0&&i>l){(0,_l.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),r.fail();return}if((0,_l.alwaysValidSchema)(s,t)){let g=(0,zt._)`${u} >= ${i}`;l!==void 0&&(g=(0,zt._)`${g} && ${u} <= ${l}`),r.pass(g);return}s.items=!0;const h=e.name("valid");l===void 0&&i===1?p(h,()=>e.if(h,()=>e.break())):i===0?(e.let(h,!0),l!==void 0&&e.if((0,zt._)`${o}.length > 0`,f)):(e.let(h,!1),f()),r.result(h,()=>r.reset());function f(){const g=e.name("_valid"),O=e.let("count",0);p(g,()=>e.if(g,()=>m(O)))}function p(g,O){e.forRange("i",0,u,y=>{r.subschema({keyword:"contains",dataProp:y,dataPropType:_l.Type.Num,compositeRule:!0},g),O()})}function m(g){e.code((0,zt._)`${g}++`),l===void 0?e.if((0,zt._)`${g} >= ${i}`,()=>e.assign(h,!0).break()):(e.if((0,zt._)`${g} > ${l}`,()=>e.assign(h,!1).break()),i===1?e.assign(h,!0):e.if((0,zt._)`${g} >= ${i}`,()=>e.assign(h,!0)))}}};Up.default=wI;var Ad={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.validateSchemaDeps=r.validatePropertyDeps=r.error=void 0;const e=se,t=pe,n=he;r.error={message:({params:{property:c,depsCount:d,deps:u}})=>{const h=d===1?"property":"properties";return(0,e.str)`must have ${h} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:d,deps:u,missingProperty:h}})=>(0,e._)`{property: ${c},
83
- missingProperty: ${h},
84
- depsCount: ${d},
85
- deps: ${u}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:r.error,code(c){const[d,u]=s(c);i(c,d),l(c,u)}};function s({schema:c}){const d={},u={};for(const h in c){if(h==="__proto__")continue;const f=Array.isArray(c[h])?d:u;f[h]=c[h]}return[d,u]}function i(c,d=c.schema){const{gen:u,data:h,it:f}=c;if(Object.keys(d).length===0)return;const p=u.let("missing");for(const m in d){const g=d[m];if(g.length===0)continue;const O=(0,n.propertyInData)(u,h,m,f.opts.ownProperties);c.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),f.allErrors?u.if(O,()=>{for(const y of g)(0,n.checkReportMissingProp)(c,y)}):(u.if((0,e._)`${O} && (${(0,n.checkMissingProp)(c,g,p)})`),(0,n.reportMissingProp)(c,p),u.else())}}r.validatePropertyDeps=i;function l(c,d=c.schema){const{gen:u,data:h,keyword:f,it:p}=c,m=u.name("valid");for(const g in d)(0,t.alwaysValidSchema)(p,d[g])||(u.if((0,n.propertyInData)(u,h,g,p.opts.ownProperties),()=>{const O=c.subschema({keyword:f,schemaProp:g},m);c.mergeValidEvaluated(O,m)},()=>u.var(m,!0)),c.ok(m))}r.validateSchemaDeps=l,r.default=o})(Ad);var Yp={};Object.defineProperty(Yp,"__esModule",{value:!0});const uk=se,kI=pe,SI={message:"property name must be valid",params:({params:r})=>(0,uk._)`{propertyName: ${r.propertyName}}`},$I={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:SI,code(r){const{gen:e,schema:t,data:n,it:o}=r;if((0,kI.alwaysValidSchema)(o,t))return;const s=e.name("valid");e.forIn("key",n,i=>{r.setParams({propertyName:i}),r.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},s),e.if((0,uk.not)(s),()=>{r.error(!0),o.allErrors||e.break()})}),r.ok(s)}};Yp.default=$I;var Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});const Cl=he,or=se,PI=Dt,Tl=pe,xI={message:"must NOT have additional properties",params:({params:r})=>(0,or._)`{additionalProperty: ${r.additionalProperty}}`},_I={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:xI,code(r){const{gen:e,schema:t,parentSchema:n,data:o,errsCount:s,it:i}=r;if(!s)throw new Error("ajv implementation error");const{allErrors:l,opts:c}=i;if(i.props=!0,c.removeAdditional!=="all"&&(0,Tl.alwaysValidSchema)(i,t))return;const d=(0,Cl.allSchemaProperties)(n.properties),u=(0,Cl.allSchemaProperties)(n.patternProperties);h(),r.ok((0,or._)`${s} === ${PI.default.errors}`);function h(){e.forIn("key",o,O=>{!d.length&&!u.length?m(O):e.if(f(O),()=>m(O))})}function f(O){let y;if(d.length>8){const b=(0,Tl.schemaRefOrVal)(i,n.properties,"properties");y=(0,Cl.isOwnProperty)(e,b,O)}else d.length?y=(0,or.or)(...d.map(b=>(0,or._)`${O} === ${b}`)):y=or.nil;return u.length&&(y=(0,or.or)(y,...u.map(b=>(0,or._)`${(0,Cl.usePattern)(r,b)}.test(${O})`))),(0,or.not)(y)}function p(O){e.code((0,or._)`delete ${o}[${O}]`)}function m(O){if(c.removeAdditional==="all"||c.removeAdditional&&t===!1){p(O);return}if(t===!1){r.setParams({additionalProperty:O}),r.error(),l||e.break();return}if(typeof t=="object"&&!(0,Tl.alwaysValidSchema)(i,t)){const y=e.name("valid");c.removeAdditional==="failing"?(g(O,y,!1),e.if((0,or.not)(y),()=>{r.reset(),p(O)})):(g(O,y),l||e.if((0,or.not)(y),()=>e.break()))}}function g(O,y,b){const v={keyword:"additionalProperties",dataProp:O,dataPropType:Tl.Type.Str};b===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),r.subschema(v,y)}}};Rd.default=_I;var Lp={};Object.defineProperty(Lp,"__esModule",{value:!0});const CI=Ht,G0=he,Du=pe,F0=Rd,TI={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,parentSchema:n,data:o,it:s}=r;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&F0.default.code(new CI.KeywordCxt(s,F0.default,"additionalProperties"));const i=(0,G0.allSchemaProperties)(t);for(const h of i)s.definedProperties.add(h);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=Du.mergeEvaluated.props(e,(0,Du.toHash)(i),s.props));const l=i.filter(h=>!(0,Du.alwaysValidSchema)(s,t[h]));if(l.length===0)return;const c=e.name("valid");for(const h of l)d(h)?u(h):(e.if((0,G0.propertyInData)(e,o,h,s.opts.ownProperties)),u(h),s.allErrors||e.else().var(c,!0),e.endIf()),r.it.definedProperties.add(h),r.ok(c);function d(h){return s.opts.useDefaults&&!s.compositeRule&&t[h].default!==void 0}function u(h){r.subschema({keyword:"properties",schemaProp:h,dataProp:h},c)}}};Lp.default=TI;var Hp={};Object.defineProperty(Hp,"__esModule",{value:!0});const K0=he,Ql=se,J0=pe,ey=pe,QI={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,data:n,parentSchema:o,it:s}=r,{opts:i}=s,l=(0,K0.allSchemaProperties)(t),c=l.filter(g=>(0,J0.alwaysValidSchema)(s,t[g]));if(l.length===0||c.length===l.length&&(!s.opts.unevaluated||s.props===!0))return;const d=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=e.name("valid");s.props!==!0&&!(s.props instanceof Ql.Name)&&(s.props=(0,ey.evaluatedPropsToName)(e,s.props));const{props:h}=s;f();function f(){for(const g of l)d&&p(g),s.allErrors?m(g):(e.var(u,!0),m(g),e.if(u))}function p(g){for(const O in d)new RegExp(g).test(O)&&(0,J0.checkStrictMode)(s,`property ${O} matches pattern ${g} (use allowMatchingProperties)`)}function m(g){e.forIn("key",n,O=>{e.if((0,Ql._)`${(0,K0.usePattern)(r,g)}.test(${O})`,()=>{const y=c.includes(g);y||r.subschema({keyword:"patternProperties",schemaProp:g,dataProp:O,dataPropType:ey.Type.Str},u),s.opts.unevaluated&&h!==!0?e.assign((0,Ql._)`${h}[${O}]`,!0):!y&&!s.allErrors&&e.if((0,Ql.not)(u),()=>e.break())})})}}};Hp.default=QI;var Gp={};Object.defineProperty(Gp,"__esModule",{value:!0});const EI=pe,NI={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:e,schema:t,it:n}=r;if((0,EI.alwaysValidSchema)(n,t)){r.fail();return}const o=e.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),r.failResult(o,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};Gp.default=NI;var Fp={};Object.defineProperty(Fp,"__esModule",{value:!0});const AI=he,RI={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:AI.validateUnion,error:{message:"must match a schema in anyOf"}};Fp.default=RI;var Kp={};Object.defineProperty(Kp,"__esModule",{value:!0});const tc=se,VI=pe,BI={message:"must match exactly one schema in oneOf",params:({params:r})=>(0,tc._)`{passingSchemas: ${r.passing}}`},ZI={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:BI,code(r){const{gen:e,schema:t,parentSchema:n,it:o}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const s=t,i=e.let("valid",!1),l=e.let("passing",null),c=e.name("_valid");r.setParams({passing:l}),e.block(d),r.result(i,()=>r.reset(),()=>r.error(!0));function d(){s.forEach((u,h)=>{let f;(0,VI.alwaysValidSchema)(o,u)?e.var(c,!0):f=r.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},c),h>0&&e.if((0,tc._)`${c} && ${i}`).assign(i,!1).assign(l,(0,tc._)`[${l}, ${h}]`).else(),e.if(c,()=>{e.assign(i,!0),e.assign(l,h),f&&r.mergeEvaluated(f,tc.Name)})})}}};Kp.default=ZI;var Jp={};Object.defineProperty(Jp,"__esModule",{value:!0});const II=pe,jI={keyword:"allOf",schemaType:"array",code(r){const{gen:e,schema:t,it:n}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");const o=e.name("valid");t.forEach((s,i)=>{if((0,II.alwaysValidSchema)(n,s))return;const l=r.subschema({keyword:"allOf",schemaProp:i},o);r.ok(o),r.mergeEvaluated(l)})}};Jp.default=jI;var em={};Object.defineProperty(em,"__esModule",{value:!0});const Mc=se,hk=pe,DI={message:({params:r})=>(0,Mc.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,Mc._)`{failingKeyword: ${r.ifClause}}`},MI={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:DI,code(r){const{gen:e,parentSchema:t,it:n}=r;t.then===void 0&&t.else===void 0&&(0,hk.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=ty(n,"then"),s=ty(n,"else");if(!o&&!s)return;const i=e.let("valid",!0),l=e.name("_valid");if(c(),r.reset(),o&&s){const u=e.let("ifClause");r.setParams({ifClause:u}),e.if(l,d("then",u),d("else",u))}else o?e.if(l,d("then")):e.if((0,Mc.not)(l),d("else"));r.pass(i,()=>r.error(!0));function c(){const u=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);r.mergeEvaluated(u)}function d(u,h){return()=>{const f=r.subschema({keyword:u},l);e.assign(i,l),r.mergeValidEvaluated(f,i),h?e.assign(h,(0,Mc._)`${u}`):r.setParams({ifClause:u})}}}};function ty(r,e){const t=r.schema[e];return t!==void 0&&!(0,hk.alwaysValidSchema)(r,t)}em.default=MI;var tm={};Object.defineProperty(tm,"__esModule",{value:!0});const qI=pe,XI={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:e,it:t}){e.if===void 0&&(0,qI.checkStrictMode)(t,`"${r}" without "if" is ignored`)}};tm.default=XI;Object.defineProperty(Zi,"__esModule",{value:!0});const WI=zs,zI=Wp,UI=Us,YI=zp,LI=Up,HI=Ad,GI=Yp,FI=Rd,KI=Lp,JI=Hp,ej=Gp,tj=Fp,rj=Kp,nj=Jp,oj=em,sj=tm;function aj(r=!1){const e=[ej.default,tj.default,rj.default,nj.default,oj.default,sj.default,GI.default,FI.default,HI.default,KI.default,JI.default];return r?e.push(zI.default,YI.default):e.push(WI.default,UI.default),e.push(LI.default),e}Zi.default=aj;var Ii={},rm={};Object.defineProperty(rm,"__esModule",{value:!0});const Xe=se,ij={message:({schemaCode:r})=>(0,Xe.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,Xe._)`{format: ${r}}`},lj={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:ij,code(r,e){const{gen:t,data:n,$data:o,schema:s,schemaCode:i,it:l}=r,{opts:c,errSchemaPath:d,schemaEnv:u,self:h}=l;if(!c.validateFormats)return;o?f():p();function f(){const m=t.scopeValue("formats",{ref:h.formats,code:c.code.formats}),g=t.const("fDef",(0,Xe._)`${m}[${i}]`),O=t.let("fType"),y=t.let("format");t.if((0,Xe._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>t.assign(O,(0,Xe._)`${g}.type || "string"`).assign(y,(0,Xe._)`${g}.validate`),()=>t.assign(O,(0,Xe._)`"string"`).assign(y,g)),r.fail$data((0,Xe.or)(b(),v()));function b(){return c.strictSchema===!1?Xe.nil:(0,Xe._)`${i} && !${y}`}function v(){const k=u.$async?(0,Xe._)`(${g}.async ? await ${y}(${n}) : ${y}(${n}))`:(0,Xe._)`${y}(${n})`,S=(0,Xe._)`(typeof ${y} == "function" ? ${k} : ${y}.test(${n}))`;return(0,Xe._)`${y} && ${y} !== true && ${O} === ${e} && !${S}`}}function p(){const m=h.formats[s];if(!m){b();return}if(m===!0)return;const[g,O,y]=v(m);g===e&&r.pass(k());function b(){if(c.strictSchema===!1){h.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${s}" ignored in schema at path "${d}"`}}function v(S){const w=S instanceof RegExp?(0,Xe.regexpCode)(S):c.code.formats?(0,Xe._)`${c.code.formats}${(0,Xe.getProperty)(s)}`:void 0,$=t.scopeValue("formats",{key:s,ref:S,code:w});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Xe._)`${$}.validate`]:["string",S,$]}function k(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Xe._)`await ${y}(${n})`}return typeof O=="function"?(0,Xe._)`${y}(${n})`:(0,Xe._)`${y}.test(${n})`}}}};rm.default=lj;Object.defineProperty(Ii,"__esModule",{value:!0});const cj=rm,dj=[cj.default];Ii.default=dj;var To={};Object.defineProperty(To,"__esModule",{value:!0});To.contentVocabulary=To.metadataVocabulary=void 0;To.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];To.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(Dp,"__esModule",{value:!0});const uj=kd,hj=Sd,fj=Zi,pj=Ii,ry=To,mj=[uj.default,hj.default,(0,fj.default)(),pj.default,ry.metadataVocabulary,ry.contentVocabulary];Dp.default=mj;var ji={},fk={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(r.DiscrError||(r.DiscrError={}))})(fk);Object.defineProperty(ji,"__esModule",{value:!0});const Fo=se,Of=fk,ny=bt,gj=pe,Oj={message:({params:{discrError:r,tagName:e}})=>r===Of.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:r,tag:e,tagName:t}})=>(0,Fo._)`{error: ${r}, tag: ${t}, tagValue: ${e}}`},yj={keyword:"discriminator",type:"object",schemaType:"object",error:Oj,code(r){const{gen:e,data:t,schema:n,parentSchema:o,it:s}=r,{oneOf:i}=o;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const l=n.propertyName;if(typeof l!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const c=e.let("valid",!1),d=e.const("tag",(0,Fo._)`${t}${(0,Fo.getProperty)(l)}`);e.if((0,Fo._)`typeof ${d} == "string"`,()=>u(),()=>r.error(!1,{discrError:Of.DiscrError.Tag,tag:d,tagName:l})),r.ok(c);function u(){const p=f();e.if(!1);for(const m in p)e.elseIf((0,Fo._)`${d} === ${m}`),e.assign(c,h(p[m]));e.else(),r.error(!1,{discrError:Of.DiscrError.Mapping,tag:d,tagName:l}),e.endIf()}function h(p){const m=e.name("valid"),g=r.subschema({keyword:"oneOf",schemaProp:p},m);return r.mergeEvaluated(g,Fo.Name),m}function f(){var p;const m={},g=y(o);let O=!0;for(let k=0;k<i.length;k++){let S=i[k];S!=null&&S.$ref&&!(0,gj.schemaHasRulesButRef)(S,s.self.RULES)&&(S=ny.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,S==null?void 0:S.$ref),S instanceof ny.SchemaEnv&&(S=S.schema));const w=(p=S==null?void 0:S.properties)===null||p===void 0?void 0:p[l];if(typeof w!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${l}"`);O=O&&(g||y(S)),b(w,k)}if(!O)throw new Error(`discriminator: "${l}" must be required`);return m;function y({required:k}){return Array.isArray(k)&&k.includes(l)}function b(k,S){if(k.const)v(k.const,S);else if(k.enum)for(const w of k.enum)v(w,S);else throw new Error(`discriminator: "properties/${l}" must have "const" or "enum"`)}function v(k,S){if(typeof k!="string"||k in m)throw new Error(`discriminator: "${l}" values must be unique strings`);m[k]=S}}}};ji.default=yj;const bj="http://json-schema.org/draft-07/schema#",vj="http://json-schema.org/draft-07/schema#",wj="Core schema meta-schema",kj={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Sj=["object","boolean"],$j={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},Pj={$schema:bj,$id:vj,title:wj,definitions:kj,type:Sj,properties:$j,default:!0};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const t=wo,n=Dp,o=ji,s=Pj,i=["/properties"],l="http://json-schema.org/draft-07/schema";class c extends t.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(m=>this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema(m,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}r.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var d=Ht;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var u=se;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var h=Xs;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=Ws;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(uf,uf.exports);var xj=uf.exports;(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatLimitDefinition=void 0;const e=xj,t=se,n=t.operators,o={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},s={message:({keyword:l,schemaCode:c})=>t.str`should be ${o[l].okStr} ${c}`,params:({keyword:l,schemaCode:c})=>t._`{comparison: ${o[l].okStr}, limit: ${c}}`};r.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:s,code(l){const{gen:c,data:d,schemaCode:u,keyword:h,it:f}=l,{opts:p,self:m}=f;if(!p.validateFormats)return;const g=new e.KeywordCxt(f,m.RULES.all.format.definition,"format");g.$data?O():y();function O(){const v=c.scopeValue("formats",{ref:m.formats,code:p.code.formats}),k=c.const("fmt",t._`${v}[${g.schemaCode}]`);l.fail$data(t.or(t._`typeof ${k} != "object"`,t._`${k} instanceof RegExp`,t._`typeof ${k}.compare != "function"`,b(k)))}function y(){const v=g.schema,k=m.formats[v];if(!k||k===!0)return;if(typeof k!="object"||k instanceof RegExp||typeof k.compare!="function")throw new Error(`"${h}": format "${v}" does not define "compare" function`);const S=c.scopeValue("formats",{key:v,ref:k,code:p.code.formats?t._`${p.code.formats}${t.getProperty(v)}`:void 0});l.fail$data(b(S))}function b(v){return t._`${v}.compare(${d}, ${u}) ${o[h].fail} 0`}},dependencies:["format"]};const i=l=>(l.addKeyword(r.formatLimitDefinition),l);r.default=i})(Rw);(function(r,e){Object.defineProperty(e,"__esModule",{value:!0});const t=Aw,n=Rw,o=se,s=new o.Name("fullFormats"),i=new o.Name("fastFormats"),l=(d,u={keywords:!0})=>{if(Array.isArray(u))return c(d,u,t.fullFormats,s),d;const[h,f]=u.mode==="fast"?[t.fastFormats,i]:[t.fullFormats,s],p=u.formats||t.formatNames;return c(d,p,h,f),u.keywords&&n.default(d),d};l.get=(d,u="full")=>{const h=(u==="fast"?t.fastFormats:t.fullFormats)[d];if(!h)throw new Error(`Unknown format "${d}"`);return h};function c(d,u,h,f){var p,m;(p=(m=d.opts.code).formats)!==null&&p!==void 0||(m.formats=o._`require("ajv-formats/dist/formats").${f}`);for(const g of u)d.addFormat(g,h[g])}r.exports=e=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l})(df,df.exports);var _j=df.exports;const Cj=Np(_j);var yf={exports:{}},nm={},om={};Object.defineProperty(om,"__esModule",{value:!0});const Tj=jr,Qj=["$schema","id","$defs",{keyword:"$comment"},"definitions",Tj.default];om.default=Qj;var sm={},am={};Object.defineProperty(am,"__esModule",{value:!0});const bf=wo,Ej=se,gn=Ej.operators,vf={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:gn.LTE,fail:gn.GT},{okStr:"<",ok:gn.LT,fail:gn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:gn.GTE,fail:gn.LT},{okStr:">",ok:gn.GT,fail:gn.LTE}]}},Nj={message:r=>bf.str`must be ${wf(r).okStr} ${r.schemaCode}`,params:r=>bf._`{comparison: ${wf(r).okStr}, limit: ${r.schemaCode}}`},Aj={keyword:Object.keys(vf),type:"number",schemaType:"number",$data:!0,error:Nj,code(r){const{data:e,schemaCode:t}=r;r.fail$data(bf._`${e} ${wf(r).fail} ${t} || isNaN(${e})`)}};function wf(r){var e;const t=r.keyword,n=!((e=r.parentSchema)===null||e===void 0)&&e[vf[t].exclusive]?1:0;return vf[t].ops[n]}am.default=Aj;var im={};Object.defineProperty(im,"__esModule",{value:!0});const oy={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},Rj={keyword:Object.keys(oy),type:"number",schemaType:"boolean",code({keyword:r,parentSchema:e}){const t=oy[r];if(e[t]===void 0)throw new Error(`${r} can only be used with ${t}`)}};im.default=Rj;Object.defineProperty(sm,"__esModule",{value:!0});const Vj=am,Bj=im,Zj=$d,Ij=Pd,jj=xd,Dj=_d,Mj=Cd,qj=Td,Xj=Qd,Wj=Ed,zj=Nd,Uj=[Vj.default,Bj.default,Zj.default,Ij.default,jj.default,Dj.default,Mj.default,qj.default,Xj.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Wj.default,zj.default];sm.default=Uj;Object.defineProperty(nm,"__esModule",{value:!0});const Yj=om,Lj=sm,Hj=Zi,Gj=Ii,Fj=["title","description","default"],Kj=[Yj.default,Lj.default,Hj.default(),Gj.default,Fj];nm.default=Kj;const Jj="http://json-schema.org/draft-04/schema#",eD="http://json-schema.org/draft-04/schema#",tD="Core schema meta-schema",rD={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},nD="object",oD={id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},sD={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},aD={id:Jj,$schema:eD,description:tD,definitions:rD,type:nD,properties:oD,dependencies:sD,default:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const t=wo,n=nm,o=ji,s=aD,i=["/properties"],l="http://json-schema.org/draft-04/schema";class c extends t.default{constructor(f={}){super({...f,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.addVocabulary(f)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const f=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema(f,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}r.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var d=wo;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var u=wo;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}})})(yf,yf.exports);var iD=yf.exports;const lD=Np(iD);var kf={exports:{}},lm={},cm={},Ys={};Object.defineProperty(Ys,"__esModule",{value:!0});Ys.dynamicAnchor=void 0;const Mu=se,cD=Dt,sy=bt,dD=jr,uD={keyword:"$dynamicAnchor",schemaType:"string",code:r=>pk(r,r.schema)};function pk(r,e){const{gen:t,it:n}=r;n.schemaEnv.root.dynamicAnchors[e]=!0;const o=(0,Mu._)`${cD.default.dynamicAnchors}${(0,Mu.getProperty)(e)}`,s=n.errSchemaPath==="#"?n.validateName:hD(r);t.if((0,Mu._)`!${o}`,()=>t.assign(o,s))}Ys.dynamicAnchor=pk;function hD(r){const{schemaEnv:e,schema:t,self:n}=r.it,{root:o,baseId:s,localRefs:i,meta:l}=e.root,{schemaId:c}=n.opts,d=new sy.SchemaEnv({schema:t,schemaId:c,root:o,baseId:s,localRefs:i,meta:l});return sy.compileSchema.call(n,d),(0,dD.getValidate)(r,d)}Ys.default=uD;var Ls={};Object.defineProperty(Ls,"__esModule",{value:!0});Ls.dynamicRef=void 0;const ay=se,fD=Dt,iy=jr,pD={keyword:"$dynamicRef",schemaType:"string",code:r=>mk(r,r.schema)};function mk(r,e){const{gen:t,keyword:n,it:o}=r;if(e[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);const s=e.slice(1);if(o.allErrors)i();else{const c=t.let("valid",!1);i(c),r.ok(c)}function i(c){if(o.schemaEnv.root.dynamicAnchors[s]){const d=t.let("_v",(0,ay._)`${fD.default.dynamicAnchors}${(0,ay.getProperty)(s)}`);t.if(d,l(d,c),l(o.validateName,c))}else l(o.validateName,c)()}function l(c,d){return d?()=>t.block(()=>{(0,iy.callRef)(r,c),t.let(d,!0)}):()=>(0,iy.callRef)(r,c)}}Ls.dynamicRef=mk;Ls.default=pD;var dm={};Object.defineProperty(dm,"__esModule",{value:!0});const mD=Ys,gD=pe,OD={keyword:"$recursiveAnchor",schemaType:"boolean",code(r){r.schema?(0,mD.dynamicAnchor)(r,""):(0,gD.checkStrictMode)(r.it,"$recursiveAnchor: false is ignored")}};dm.default=OD;var um={};Object.defineProperty(um,"__esModule",{value:!0});const yD=Ls,bD={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,yD.dynamicRef)(r,r.schema)};um.default=bD;Object.defineProperty(cm,"__esModule",{value:!0});const vD=Ys,wD=Ls,kD=dm,SD=um,$D=[vD.default,wD.default,kD.default,SD.default];cm.default=$D;var hm={},fm={};Object.defineProperty(fm,"__esModule",{value:!0});const ly=Ad,PD={keyword:"dependentRequired",type:"object",schemaType:"object",error:ly.error,code:r=>(0,ly.validatePropertyDeps)(r)};fm.default=PD;var pm={};Object.defineProperty(pm,"__esModule",{value:!0});const xD=Ad,_D={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,xD.validateSchemaDeps)(r)};pm.default=_D;var mm={};Object.defineProperty(mm,"__esModule",{value:!0});const CD=pe,TD={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:r,parentSchema:e,it:t}){e.contains===void 0&&(0,CD.checkStrictMode)(t,`"${r}" without "contains" is ignored`)}};mm.default=TD;Object.defineProperty(hm,"__esModule",{value:!0});const QD=fm,ED=pm,ND=mm,AD=[QD.default,ED.default,ND.default];hm.default=AD;var gm={},Om={};Object.defineProperty(Om,"__esModule",{value:!0});const bn=se,cy=pe,RD=Dt,VD={message:"must NOT have unevaluated properties",params:({params:r})=>(0,bn._)`{unevaluatedProperty: ${r.unevaluatedProperty}}`},BD={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:VD,code(r){const{gen:e,schema:t,data:n,errsCount:o,it:s}=r;if(!o)throw new Error("ajv implementation error");const{allErrors:i,props:l}=s;l instanceof bn.Name?e.if((0,bn._)`${l} !== true`,()=>e.forIn("key",n,h=>e.if(d(l,h),()=>c(h)))):l!==!0&&e.forIn("key",n,h=>l===void 0?c(h):e.if(u(l,h),()=>c(h))),s.props=!0,r.ok((0,bn._)`${o} === ${RD.default.errors}`);function c(h){if(t===!1){r.setParams({unevaluatedProperty:h}),r.error(),i||e.break();return}if(!(0,cy.alwaysValidSchema)(s,t)){const f=e.name("valid");r.subschema({keyword:"unevaluatedProperties",dataProp:h,dataPropType:cy.Type.Str},f),i||e.if((0,bn.not)(f),()=>e.break())}}function d(h,f){return(0,bn._)`!${h} || !${h}[${f}]`}function u(h,f){const p=[];for(const m in h)h[m]===!0&&p.push((0,bn._)`${f} !== ${m}`);return(0,bn.and)(...p)}}};Om.default=BD;var ym={};Object.defineProperty(ym,"__esModule",{value:!0});const ao=se,dy=pe,ZD={message:({params:{len:r}})=>(0,ao.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,ao._)`{limit: ${r}}`},ID={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:ZD,code(r){const{gen:e,schema:t,data:n,it:o}=r,s=o.items||0;if(s===!0)return;const i=e.const("len",(0,ao._)`${n}.length`);if(t===!1)r.setParams({len:s}),r.fail((0,ao._)`${i} > ${s}`);else if(typeof t=="object"&&!(0,dy.alwaysValidSchema)(o,t)){const c=e.var("valid",(0,ao._)`${i} <= ${s}`);e.if((0,ao.not)(c),()=>l(c,s)),r.ok(c)}o.items=!0;function l(c,d){e.forRange("i",d,i,u=>{r.subschema({keyword:"unevaluatedItems",dataProp:u,dataPropType:dy.Type.Num},c),o.allErrors||e.if((0,ao.not)(c),()=>e.break())})}}};ym.default=ID;Object.defineProperty(gm,"__esModule",{value:!0});const jD=Om,DD=ym,MD=[jD.default,DD.default];gm.default=MD;Object.defineProperty(lm,"__esModule",{value:!0});const qD=kd,XD=Sd,WD=Zi,zD=cm,UD=hm,YD=gm,LD=Ii,uy=To,HD=[zD.default,qD.default,XD.default,(0,WD.default)(!0),LD.default,uy.metadataVocabulary,uy.contentVocabulary,UD.default,YD.default];lm.default=HD;var bm={};const GD="https://json-schema.org/draft/2020-12/schema",FD="https://json-schema.org/draft/2020-12/schema",KD={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},JD="meta",e4="Core and Validation specifications meta-schema",t4=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],r4=["object","boolean"],n4="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",o4={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},s4={$schema:GD,$id:FD,$vocabulary:KD,$dynamicAnchor:JD,title:e4,allOf:t4,type:r4,$comment:n4,properties:o4},a4="https://json-schema.org/draft/2020-12/schema",i4="https://json-schema.org/draft/2020-12/meta/applicator",l4={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},c4="meta",d4="Applicator vocabulary meta-schema",u4=["object","boolean"],h4={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},f4={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},p4={$schema:a4,$id:i4,$vocabulary:l4,$dynamicAnchor:c4,title:d4,type:u4,properties:h4,$defs:f4},m4="https://json-schema.org/draft/2020-12/schema",g4="https://json-schema.org/draft/2020-12/meta/unevaluated",O4={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},y4="meta",b4="Unevaluated applicator vocabulary meta-schema",v4=["object","boolean"],w4={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},k4={$schema:m4,$id:g4,$vocabulary:O4,$dynamicAnchor:y4,title:b4,type:v4,properties:w4},S4="https://json-schema.org/draft/2020-12/schema",$4="https://json-schema.org/draft/2020-12/meta/content",P4={"https://json-schema.org/draft/2020-12/vocab/content":!0},x4="meta",_4="Content vocabulary meta-schema",C4=["object","boolean"],T4={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},Q4={$schema:S4,$id:$4,$vocabulary:P4,$dynamicAnchor:x4,title:_4,type:C4,properties:T4},E4="https://json-schema.org/draft/2020-12/schema",N4="https://json-schema.org/draft/2020-12/meta/core",A4={"https://json-schema.org/draft/2020-12/vocab/core":!0},R4="meta",V4="Core vocabulary meta-schema",B4=["object","boolean"],Z4={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},I4={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},j4={$schema:E4,$id:N4,$vocabulary:A4,$dynamicAnchor:R4,title:V4,type:B4,properties:Z4,$defs:I4},D4="https://json-schema.org/draft/2020-12/schema",M4="https://json-schema.org/draft/2020-12/meta/format-annotation",q4={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},X4="meta",W4="Format vocabulary meta-schema for annotation results",z4=["object","boolean"],U4={format:{type:"string"}},Y4={$schema:D4,$id:M4,$vocabulary:q4,$dynamicAnchor:X4,title:W4,type:z4,properties:U4},L4="https://json-schema.org/draft/2020-12/schema",H4="https://json-schema.org/draft/2020-12/meta/meta-data",G4={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},F4="meta",K4="Meta-data vocabulary meta-schema",J4=["object","boolean"],eM={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},tM={$schema:L4,$id:H4,$vocabulary:G4,$dynamicAnchor:F4,title:K4,type:J4,properties:eM},rM="https://json-schema.org/draft/2020-12/schema",nM="https://json-schema.org/draft/2020-12/meta/validation",oM={"https://json-schema.org/draft/2020-12/vocab/validation":!0},sM="meta",aM="Validation vocabulary meta-schema",iM=["object","boolean"],lM={type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},cM={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},dM={$schema:rM,$id:nM,$vocabulary:oM,$dynamicAnchor:sM,title:aM,type:iM,properties:lM,$defs:cM};Object.defineProperty(bm,"__esModule",{value:!0});const uM=s4,hM=p4,fM=k4,pM=Q4,mM=j4,gM=Y4,OM=tM,yM=dM,bM=["/properties"];function vM(r){return[uM,hM,fM,pM,mM,e(this,gM),OM,e(this,yM)].forEach(t=>this.addMetaSchema(t,void 0,!1)),this;function e(t,n){return r?t.$dataMetaSchema(n,bM):n}}bm.default=vM;(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const t=wo,n=lm,o=ji,s=bm,i="https://json-schema.org/draft/2020-12/schema";class l extends t.default{constructor(p={}){super({...p,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:p,meta:m}=this.opts;m&&(s.default.call(this,p),this.refs["http://json-schema.org/schema"]=i)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(i)?i:void 0)}}r.exports=e=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var c=Ht;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var d=se;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var u=Xs;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return u.default}});var h=Ws;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(kf,kf.exports);var wM=kf.exports;const kM=Np(wM),gk=["2.0","3.0","3.1"],SM={"http://json-schema.org/draft-04/schema#":lD,"https://json-schema.org/draft/2020-12/schema":kM},Sf={EMPTY_OR_INVALID:"Cannot find JSON, YAML or filename in data",OPENAPI_VERSION_NOT_SUPPORTED:"Cannot find supported Swagger/OpenAPI version in specification, version must be a string.",INVALID_REFERENCE:"Can’t resolve URI: %s",EXTERNAL_REFERENCE_NOT_SUPPORTED:"External references are not supported yet: %s"},$M="x-inlined-refs";function Tr(r,e){const t={};for(const[n,o]of Object.entries(r))Array.isArray(o)?t[n]=o.map(s=>typeof s=="object"&&s!==null?Tr(s,e):s):typeof o=="object"&&o!==null?t[n]=Tr(o,e):t[n]=o;return e(t)}function PM(r,e){return Tr(r,t=>e(t)?t:void 0)}function Ok(r){return typeof r!==void 0&&Array.isArray(r)&&r.length>0&&r.some(e=>e.isEntrypoint===!0)}function xM(r){const e=[];return!r||typeof r!="object"||Tr(r,t=>(t.$ref&&typeof t.$ref=="string"&&!t.$ref.startsWith("#")&&e.push(t.$ref.split("#")[0]),t)),e}const vm=Symbol.for("yaml.alias"),$f=Symbol.for("yaml.document"),Nn=Symbol.for("yaml.map"),yk=Symbol.for("yaml.pair"),ln=Symbol.for("yaml.scalar"),Hs=Symbol.for("yaml.seq"),Jt=Symbol.for("yaml.node.type"),Ro=r=>!!r&&typeof r=="object"&&r[Jt]===vm,Gs=r=>!!r&&typeof r=="object"&&r[Jt]===$f,Fs=r=>!!r&&typeof r=="object"&&r[Jt]===Nn,Ie=r=>!!r&&typeof r=="object"&&r[Jt]===yk,Ee=r=>!!r&&typeof r=="object"&&r[Jt]===ln,Ks=r=>!!r&&typeof r=="object"&&r[Jt]===Hs;function je(r){if(r&&typeof r=="object")switch(r[Jt]){case Nn:case Hs:return!0}return!1}function ze(r){if(r&&typeof r=="object")switch(r[Jt]){case vm:case Nn:case ln:case Hs:return!0}return!1}const _M=r=>(Ee(r)||je(r))&&!!r.anchor,_t=Symbol("break visit"),bk=Symbol("skip children"),Zr=Symbol("remove node");function Dn(r,e){const t=vk(e);Gs(r)?os(null,r.contents,t,Object.freeze([r]))===Zr&&(r.contents=null):os(null,r,t,Object.freeze([]))}Dn.BREAK=_t;Dn.SKIP=bk;Dn.REMOVE=Zr;function os(r,e,t,n){const o=wk(r,e,t,n);if(ze(o)||Ie(o))return kk(r,n,o),os(r,o,t,n);if(typeof o!="symbol"){if(je(e)){n=Object.freeze(n.concat(e));for(let s=0;s<e.items.length;++s){const i=os(s,e.items[s],t,n);if(typeof i=="number")s=i-1;else{if(i===_t)return _t;i===Zr&&(e.items.splice(s,1),s-=1)}}}else if(Ie(e)){n=Object.freeze(n.concat(e));const s=os("key",e.key,t,n);if(s===_t)return _t;s===Zr&&(e.key=null);const i=os("value",e.value,t,n);if(i===_t)return _t;i===Zr&&(e.value=null)}}return o}async function Vd(r,e){const t=vk(e);Gs(r)?await ss(null,r.contents,t,Object.freeze([r]))===Zr&&(r.contents=null):await ss(null,r,t,Object.freeze([]))}Vd.BREAK=_t;Vd.SKIP=bk;Vd.REMOVE=Zr;async function ss(r,e,t,n){const o=await wk(r,e,t,n);if(ze(o)||Ie(o))return kk(r,n,o),ss(r,o,t,n);if(typeof o!="symbol"){if(je(e)){n=Object.freeze(n.concat(e));for(let s=0;s<e.items.length;++s){const i=await ss(s,e.items[s],t,n);if(typeof i=="number")s=i-1;else{if(i===_t)return _t;i===Zr&&(e.items.splice(s,1),s-=1)}}}else if(Ie(e)){n=Object.freeze(n.concat(e));const s=await ss("key",e.key,t,n);if(s===_t)return _t;s===Zr&&(e.key=null);const i=await ss("value",e.value,t,n);if(i===_t)return _t;i===Zr&&(e.value=null)}}return o}function vk(r){return typeof r=="object"&&(r.Collection||r.Node||r.Value)?Object.assign({Alias:r.Node,Map:r.Node,Scalar:r.Node,Seq:r.Node},r.Value&&{Map:r.Value,Scalar:r.Value,Seq:r.Value},r.Collection&&{Map:r.Collection,Seq:r.Collection},r):r}function wk(r,e,t,n){var o,s,i,l,c;if(typeof t=="function")return t(r,e,n);if(Fs(e))return(o=t.Map)==null?void 0:o.call(t,r,e,n);if(Ks(e))return(s=t.Seq)==null?void 0:s.call(t,r,e,n);if(Ie(e))return(i=t.Pair)==null?void 0:i.call(t,r,e,n);if(Ee(e))return(l=t.Scalar)==null?void 0:l.call(t,r,e,n);if(Ro(e))return(c=t.Alias)==null?void 0:c.call(t,r,e,n)}function kk(r,e,t){const n=e[e.length-1];if(je(n))n.items[r]=t;else if(Ie(n))r==="key"?n.key=t:n.value=t;else if(Gs(n))n.contents=t;else{const o=Ro(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const CM={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},TM=r=>r.replace(/[!,[\]{}]/g,e=>CM[e]);class yt{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},yt.defaultYaml,e),this.tags=Object.assign({},yt.defaultTags,t)}clone(){const e=new yt(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new yt(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:yt.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},yt.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:yt.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},yt.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),o=n.shift();switch(o){case"%TAG":{if(n.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[s,i]=n;return this.tags[s]=i,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;const[s]=n;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const i=/^\d+\.\d+$/.test(s);return t(6,`Unsupported YAML version ${s}`,i),!1}}default:return t(0,`Unknown directive ${o}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const i=e.slice(2,-1);return i==="!"||i==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),i)}const[,n,o]=e.match(/^(.*!)([^!]*)$/s);o||t(`The ${e} tag has no suffix`);const s=this.tags[n];if(s)try{return s+decodeURIComponent(o)}catch(i){return t(String(i)),null}return n==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+TM(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let o;if(e&&n.length>0&&ze(e.contents)){const s={};Dn(e.contents,(i,l)=>{ze(l)&&l.tag&&(s[l.tag]=!0)}),o=Object.keys(s)}else o=[];for(const[s,i]of n)s==="!!"&&i==="tag:yaml.org,2002:"||(!e||o.some(l=>l.startsWith(i)))&&t.push(`%TAG ${s} ${i}`);return t.join(`
86
- `)}}yt.defaultYaml={explicit:!1,version:"1.2"};yt.defaultTags={"!!":"tag:yaml.org,2002:"};function Sk(r){if(/[\x00-\x19\s,[\]{}]/.test(r)){const e=`Anchor must not contain whitespace or control characters: ${JSON.stringify(r)}`;throw new Error(e)}return!0}function $k(r){const e=new Set;return Dn(r,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function Pk(r,e){for(let t=1;;++t){const n=`${r}${t}`;if(!e.has(n))return n}}function QM(r,e){const t=[],n=new Map;let o=null;return{onAnchor:s=>{t.push(s),o||(o=$k(r));const i=Pk(e,o);return o.add(i),i},setAnchors:()=>{for(const s of t){const i=n.get(s);if(typeof i=="object"&&i.anchor&&(Ee(i.node)||je(i.node)))i.node.anchor=i.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=s,l}}},sourceObjects:n}}function as(r,e,t,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let o=0,s=n.length;o<s;++o){const i=n[o],l=as(r,n,String(o),i);l===void 0?delete n[o]:l!==i&&(n[o]=l)}else if(n instanceof Map)for(const o of Array.from(n.keys())){const s=n.get(o),i=as(r,n,o,s);i===void 0?n.delete(o):i!==s&&n.set(o,i)}else if(n instanceof Set)for(const o of Array.from(n)){const s=as(r,n,o,o);s===void 0?n.delete(o):s!==o&&(n.delete(o),n.add(s))}else for(const[o,s]of Object.entries(n)){const i=as(r,n,o,s);i===void 0?delete n[o]:i!==s&&(n[o]=i)}return r.call(e,t,n)}function Gt(r,e,t){if(Array.isArray(r))return r.map((n,o)=>Gt(n,String(o),t));if(r&&typeof r.toJSON=="function"){if(!t||!_M(r))return r.toJSON(e,t);const n={aliasCount:0,count:1,res:void 0};t.anchors.set(r,n),t.onCreate=s=>{n.res=s,delete t.onCreate};const o=r.toJSON(e,t);return t.onCreate&&t.onCreate(o),o}return typeof r=="bigint"&&!(t!=null&&t.keep)?Number(r):r}class wm{constructor(e){Object.defineProperty(this,Jt,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:o,reviver:s}={}){if(!Gs(e))throw new TypeError("A document argument is required");const i={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},l=Gt(this,"",i);if(typeof o=="function")for(const{count:c,res:d}of i.anchors.values())o(d,c);return typeof s=="function"?as(s,{"":l},"",l):l}}class Bd extends wm{constructor(e){super(vm),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return Dn(e,{Node:(n,o)=>{if(o===this)return Dn.BREAK;o.anchor===this.source&&(t=o)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:o,maxAliasCount:s}=t,i=this.resolve(o);if(!i){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let l=n.get(i);if(l||(Gt(i,null,t),l=n.get(i)),!l||l.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(s>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=rc(o,i,n)),l.count*l.aliasCount>s)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return l.res}toString(e,t,n){const o=`*${this.source}`;if(e){if(Sk(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${o} `}return o}}function rc(r,e,t){if(Ro(e)){const n=e.resolve(r),o=t&&n&&t.get(n);return o?o.count*o.aliasCount:0}else if(je(e)){let n=0;for(const o of e.items){const s=rc(r,o,t);s>n&&(n=s)}return n}else if(Ie(e)){const n=rc(r,e.key,t),o=rc(r,e.value,t);return Math.max(n,o)}return 1}const xk=r=>!r||typeof r!="function"&&typeof r!="object";class de extends wm{constructor(e){super(ln),this.value=e}toJSON(e,t){return t!=null&&t.keep?this.value:Gt(this.value,e,t)}toString(){return String(this.value)}}de.BLOCK_FOLDED="BLOCK_FOLDED";de.BLOCK_LITERAL="BLOCK_LITERAL";de.PLAIN="PLAIN";de.QUOTE_DOUBLE="QUOTE_DOUBLE";de.QUOTE_SINGLE="QUOTE_SINGLE";const EM="tag:yaml.org,2002:";function NM(r,e,t){if(e){const n=t.filter(s=>s.tag===e),o=n.find(s=>!s.format)??n[0];if(!o)throw new Error(`Tag ${e} not found`);return o}return t.find(n=>{var o;return((o=n.identify)==null?void 0:o.call(n,r))&&!n.format})}function gi(r,e,t){var n,o,s;if(Gs(r)&&(r=r.contents),ze(r))return r;if(Ie(r)){const m=(o=(n=t.schema[Nn]).createNode)==null?void 0:o.call(n,t.schema,null,t);return m.items.push(r),m}(r instanceof String||r instanceof Number||r instanceof Boolean||typeof BigInt<"u"&&r instanceof BigInt)&&(r=r.valueOf());const{aliasDuplicateObjects:i,onAnchor:l,onTagObj:c,schema:d,sourceObjects:u}=t;let h;if(i&&r&&typeof r=="object"){if(h=u.get(r),h)return h.anchor||(h.anchor=l(r)),new Bd(h.anchor);h={anchor:null,node:null},u.set(r,h)}e!=null&&e.startsWith("!!")&&(e=EM+e.slice(2));let f=NM(r,e,d.tags);if(!f){if(r&&typeof r.toJSON=="function"&&(r=r.toJSON()),!r||typeof r!="object"){const m=new de(r);return h&&(h.node=m),m}f=r instanceof Map?d[Nn]:Symbol.iterator in Object(r)?d[Hs]:d[Nn]}c&&(c(f),delete t.onTagObj);const p=f!=null&&f.createNode?f.createNode(t.schema,r,t):typeof((s=f==null?void 0:f.nodeClass)==null?void 0:s.from)=="function"?f.nodeClass.from(t.schema,r,t):new de(r);return e?p.tag=e:f.default||(p.tag=f.tag),h&&(h.node=p),p}function qc(r,e,t){let n=t;for(let o=e.length-1;o>=0;--o){const s=e[o];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const i=[];i[s]=n,n=i}else n=new Map([[s,n]])}return gi(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:r,sourceObjects:new Map})}const Ra=r=>r==null||typeof r=="object"&&!!r[Symbol.iterator]().next().done;class km extends wm{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(n=>ze(n)||Ie(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Ra(e))this.add(t);else{const[n,...o]=e,s=this.get(n,!0);if(je(s))s.addIn(o,t);else if(s===void 0&&this.schema)this.set(n,qc(this.schema,o,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}deleteIn(e){const[t,...n]=e;if(n.length===0)return this.delete(t);const o=this.get(t,!0);if(je(o))return o.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...o]=e,s=this.get(n,!0);return o.length===0?!t&&Ee(s)?s.value:s:je(s)?s.getIn(o,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!Ie(t))return!1;const n=t.value;return n==null||e&&Ee(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[t,...n]=e;if(n.length===0)return this.has(t);const o=this.get(t,!0);return je(o)?o.hasIn(n):!1}setIn(e,t){const[n,...o]=e;if(o.length===0)this.set(n,t);else{const s=this.get(n,!0);if(je(s))s.setIn(o,t);else if(s===void 0&&this.schema)this.set(n,qc(this.schema,o,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}}km.maxFlowStringSingleLineLength=60;const AM=r=>r.replace(/^(?!$)(?: $)?/gm,"#");function Hr(r,e){return/^\n+$/.test(r)?r.substring(1):e?r.replace(/^(?! *$)/gm,e):r}const po=(r,e,t)=>r.endsWith(`
87
- `)?Hr(t,e):t.includes(`
88
- `)?`
89
- `+Hr(t,e):(r.endsWith(" ")?"":" ")+t,_k="flow",Pf="block",nc="quoted";function Zd(r,e,t="flow",{indentAtStart:n,lineWidth:o=80,minContentWidth:s=20,onFold:i,onOverflow:l}={}){if(!o||o<0)return r;const c=Math.max(1+s,1+o-e.length);if(r.length<=c)return r;const d=[],u={};let h=o-e.length;typeof n=="number"&&(n>o-Math.max(2,s)?d.push(0):h=o-n);let f,p,m=!1,g=-1,O=-1,y=-1;t===Pf&&(g=hy(r,g,e.length),g!==-1&&(h=g+c));for(let v;v=r[g+=1];){if(t===nc&&v==="\\"){switch(O=g,r[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}y=g}if(v===`
90
- `)t===Pf&&(g=hy(r,g,e.length)),h=g+e.length+c,f=void 0;else{if(v===" "&&p&&p!==" "&&p!==`
91
- `&&p!==" "){const k=r[g+1];k&&k!==" "&&k!==`
92
- `&&k!==" "&&(f=g)}if(g>=h)if(f)d.push(f),h=f+c,f=void 0;else if(t===nc){for(;p===" "||p===" ";)p=v,v=r[g+=1],m=!0;const k=g>y+1?g-2:O-1;if(u[k])return r;d.push(k),u[k]=!0,h=k+c,f=void 0}else m=!0}p=v}if(m&&l&&l(),d.length===0)return r;i&&i();let b=r.slice(0,d[0]);for(let v=0;v<d.length;++v){const k=d[v],S=d[v+1]||r.length;k===0?b=`
93
- ${e}${r.slice(0,S)}`:(t===nc&&u[k]&&(b+=`${r[k]}\\`),b+=`
94
- ${e}${r.slice(k+1,S)}`)}return b}function hy(r,e,t){let n=e,o=e+1,s=r[o];for(;s===" "||s===" ";)if(e<o+t)s=r[++e];else{do s=r[++e];while(s&&s!==`
95
- `);n=e,o=e+1,s=r[o]}return n}const Id=(r,e)=>({indentAtStart:e?r.indent.length:r.indentAtStart,lineWidth:r.options.lineWidth,minContentWidth:r.options.minContentWidth}),jd=r=>/^(%|---|\.\.\.)/m.test(r);function RM(r,e,t){if(!e||e<0)return!1;const n=e-t,o=r.length;if(o<=n)return!1;for(let s=0,i=0;s<o;++s)if(r[s]===`
96
- `){if(s-i>n)return!0;if(i=s+1,o-i<=n)return!1}return!0}function Ha(r,e){const t=JSON.stringify(r);if(e.options.doubleQuotedAsJSON)return t;const{implicitKey:n}=e,o=e.options.doubleQuotedMinMultiLineLength,s=e.indent||(jd(r)?" ":"");let i="",l=0;for(let c=0,d=t[c];d;d=t[++c])if(d===" "&&t[c+1]==="\\"&&t[c+2]==="n"&&(i+=t.slice(l,c)+"\\ ",c+=1,l=c,d="\\"),d==="\\")switch(t[c+1]){case"u":{i+=t.slice(l,c);const u=t.substr(c+2,4);switch(u){case"0000":i+="\\0";break;case"0007":i+="\\a";break;case"000b":i+="\\v";break;case"001b":i+="\\e";break;case"0085":i+="\\N";break;case"00a0":i+="\\_";break;case"2028":i+="\\L";break;case"2029":i+="\\P";break;default:u.substr(0,2)==="00"?i+="\\x"+u.substr(2):i+=t.substr(c,6)}c+=5,l=c+1}break;case"n":if(n||t[c+2]==='"'||t.length<o)c+=1;else{for(i+=t.slice(l,c)+`
97
-
98
- `;t[c+2]==="\\"&&t[c+3]==="n"&&t[c+4]!=='"';)i+=`
99
- `,c+=2;i+=s,t[c+2]===" "&&(i+="\\"),c+=1,l=c+1}break;default:c+=1}return i=l?i+t.slice(l):t,n?i:Zd(i,s,nc,Id(e,!1))}function xf(r,e){if(e.options.singleQuote===!1||e.implicitKey&&r.includes(`
100
- `)||/[ \t]\n|\n[ \t]/.test(r))return Ha(r,e);const t=e.indent||(jd(r)?" ":""),n="'"+r.replace(/'/g,"''").replace(/\n+/g,`$&
101
- ${t}`)+"'";return e.implicitKey?n:Zd(n,t,_k,Id(e,!1))}function is(r,e){const{singleQuote:t}=e.options;let n;if(t===!1)n=Ha;else{const o=r.includes('"'),s=r.includes("'");o&&!s?n=xf:s&&!o?n=Ha:n=t?xf:Ha}return n(r,e)}let _f;try{_f=new RegExp(`(^|(?<!
102
- ))
103
- +(?!
104
- |$)`,"g")}catch{_f=/\n+(?!\n|$)/g}function oc({comment:r,type:e,value:t},n,o,s){const{blockQuote:i,commentString:l,lineWidth:c}=n.options;if(!i||/\n[\t ]+$/.test(t)||/^\s*$/.test(t))return is(t,n);const d=n.indent||(n.forceBlockIndent||jd(t)?" ":""),u=i==="literal"?!0:i==="folded"||e===de.BLOCK_FOLDED?!1:e===de.BLOCK_LITERAL?!0:!RM(t,c,d.length);if(!t)return u?`|
105
- `:`>
106
- `;let h,f;for(f=t.length;f>0;--f){const S=t[f-1];if(S!==`
107
- `&&S!==" "&&S!==" ")break}let p=t.substring(f);const m=p.indexOf(`
108
- `);m===-1?h="-":t===p||m!==p.length-1?(h="+",s&&s()):h="",p&&(t=t.slice(0,-p.length),p[p.length-1]===`
109
- `&&(p=p.slice(0,-1)),p=p.replace(_f,`$&${d}`));let g=!1,O,y=-1;for(O=0;O<t.length;++O){const S=t[O];if(S===" ")g=!0;else if(S===`
110
- `)y=O;else break}let b=t.substring(0,y<O?y+1:O);b&&(t=t.substring(b.length),b=b.replace(/\n+/g,`$&${d}`));let v=(u?"|":">")+(g?d?"2":"1":"")+h;if(r&&(v+=" "+l(r.replace(/ ?[\r\n]+/g," ")),o&&o()),u)return t=t.replace(/\n+/g,`$&${d}`),`${v}
111
- ${d}${b}${t}${p}`;t=t.replace(/\n+/g,`
112
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const k=Zd(`${b}${t}${p}`,d,Pf,Id(n,!0));return`${v}
113
- ${d}${k}`}function VM(r,e,t,n){const{type:o,value:s}=r,{actualString:i,implicitKey:l,indent:c,indentStep:d,inFlow:u}=e;if(l&&s.includes(`
114
- `)||u&&/[[\]{},]/.test(s))return is(s,e);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||u||!s.includes(`
115
- `)?is(s,e):oc(r,e,t,n);if(!l&&!u&&o!==de.PLAIN&&s.includes(`
116
- `))return oc(r,e,t,n);if(jd(s)){if(c==="")return e.forceBlockIndent=!0,oc(r,e,t,n);if(l&&c===d)return is(s,e)}const h=s.replace(/\n+/g,`$&
117
- ${c}`);if(i){const f=g=>{var O;return g.default&&g.tag!=="tag:yaml.org,2002:str"&&((O=g.test)==null?void 0:O.test(h))},{compat:p,tags:m}=e.doc.schema;if(m.some(f)||p!=null&&p.some(f))return is(s,e)}return l?h:Zd(h,c,_k,Id(e,!1))}function Di(r,e,t,n){const{implicitKey:o,inFlow:s}=e,i=typeof r.value=="string"?r:Object.assign({},r,{value:String(r.value)});let{type:l}=r;l!==de.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(i.value)&&(l=de.QUOTE_DOUBLE);const c=u=>{switch(u){case de.BLOCK_FOLDED:case de.BLOCK_LITERAL:return o||s?is(i.value,e):oc(i,e,t,n);case de.QUOTE_DOUBLE:return Ha(i.value,e);case de.QUOTE_SINGLE:return xf(i.value,e);case de.PLAIN:return VM(i,e,t,n);default:return null}};let d=c(l);if(d===null){const{defaultKeyType:u,defaultStringType:h}=e.options,f=o&&u||h;if(d=c(f),d===null)throw new Error(`Unsupported default string type ${f}`)}return d}function Ck(r,e){const t=Object.assign({blockQuote:!0,commentString:AM,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},r.schema.toStringOptions,e);let n;switch(t.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:r,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:n,options:t}}function BM(r,e){var t;if(e.tag){const s=r.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)??s[0]}let n,o;if(Ee(e)){o=e.value;const s=r.filter(i=>{var l;return(l=i.identify)==null?void 0:l.call(i,o)});n=s.find(i=>i.format===e.format)??s.find(i=>!i.format)}else o=e,n=r.find(s=>s.nodeClass&&o instanceof s.nodeClass);if(!n){const s=((t=o==null?void 0:o.constructor)==null?void 0:t.name)??typeof o;throw new Error(`Tag not resolved for ${s} value`)}return n}function ZM(r,e,{anchors:t,doc:n}){if(!n.directives)return"";const o=[],s=(Ee(r)||je(r))&&r.anchor;s&&Sk(s)&&(t.add(s),o.push(`&${s}`));const i=r.tag?r.tag:e.default?null:e.tag;return i&&o.push(n.directives.tagString(i)),o.join(" ")}function Es(r,e,t,n){var o;if(Ie(r))return r.toString(e,t,n);if(Ro(r)){if(e.doc.directives)return r.toString(e);if((o=e.resolvedAliases)!=null&&o.has(r))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(r):e.resolvedAliases=new Set([r]),r=r.resolve(e.doc)}let s;const i=ze(r)?r:e.doc.createNode(r,{onTagObj:d=>s=d});s||(s=BM(e.doc.schema.tags,i));const l=ZM(i,s,e);l.length>0&&(e.indentAtStart=(e.indentAtStart??0)+l.length+1);const c=typeof s.stringify=="function"?s.stringify(i,e,t,n):Ee(i)?Di(i,e,t,n):i.toString(e,t,n);return l?Ee(i)||c[0]==="{"||c[0]==="["?`${l} ${c}`:`${l}
118
- ${e.indent}${c}`:c}function IM({key:r,value:e},t,n,o){const{allNullValues:s,doc:i,indent:l,indentStep:c,options:{commentString:d,indentSeq:u,simpleKeys:h}}=t;let f=ze(r)&&r.comment||null;if(h){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(je(r)){const $="With simple keys, collection cannot be used as a key value";throw new Error($)}}let p=!h&&(!r||f&&e==null&&!t.inFlow||je(r)||(Ee(r)?r.type===de.BLOCK_FOLDED||r.type===de.BLOCK_LITERAL:typeof r=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!p&&(h||!s),indent:l+c});let m=!1,g=!1,O=Es(r,t,()=>m=!0,()=>g=!0);if(!p&&!t.inFlow&&O.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(t.inFlow){if(s||e==null)return m&&n&&n(),O===""?"?":p?`? ${O}`:O}else if(s&&!h||e==null&&p)return O=`? ${O}`,f&&!m?O+=po(O,t.indent,d(f)):g&&o&&o(),O;m&&(f=null),p?(f&&(O+=po(O,t.indent,d(f))),O=`? ${O}
119
- ${l}:`):(O=`${O}:`,f&&(O+=po(O,t.indent,d(f))));let y,b,v;ze(e)?(y=!!e.spaceBefore,b=e.commentBefore,v=e.comment):(y=!1,b=null,v=null,e&&typeof e=="object"&&(e=i.createNode(e))),t.implicitKey=!1,!p&&!f&&Ee(e)&&(t.indentAtStart=O.length+1),g=!1,!u&&c.length>=2&&!t.inFlow&&!p&&Ks(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let k=!1;const S=Es(e,t,()=>k=!0,()=>g=!0);let w=" ";if(f||y||b){if(w=y?`
120
- `:"",b){const $=d(b);w+=`
121
- ${Hr($,t.indent)}`}S===""&&!t.inFlow?w===`
122
- `&&(w=`
123
-
124
- `):w+=`
125
- ${t.indent}`}else if(!p&&je(e)){const $=S[0],T=S.indexOf(`
126
- `),R=T!==-1,B=t.inFlow??e.flow??e.items.length===0;if(R||!B){let M=!1;if(R&&($==="&"||$==="!")){let V=S.indexOf(" ");$==="&"&&V!==-1&&V<T&&S[V+1]==="!"&&(V=S.indexOf(" ",V+1)),(V===-1||T<V)&&(M=!0)}M||(w=`
127
- ${t.indent}`)}}else(S===""||S[0]===`
128
- `)&&(w="");return O+=w+S,t.inFlow?k&&n&&n():v&&!k?O+=po(O,t.indent,d(v)):g&&o&&o(),O}function Tk(r,e){(r==="debug"||r==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(e):console.warn(e))}const fy="<<";function Qk(r,e,{key:t,value:n}){if(r!=null&&r.doc.schema.merge&&jM(t))if(n=Ro(n)?n.resolve(r.doc):n,Ks(n))for(const o of n.items)qu(r,e,o);else if(Array.isArray(n))for(const o of n)qu(r,e,o);else qu(r,e,n);else{const o=Gt(t,"",r);if(e instanceof Map)e.set(o,Gt(n,o,r));else if(e instanceof Set)e.add(o);else{const s=DM(t,o,r),i=Gt(n,s,r);s in e?Object.defineProperty(e,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):e[s]=i}}return e}const jM=r=>r===fy||Ee(r)&&r.value===fy&&(!r.type||r.type===de.PLAIN);function qu(r,e,t){const n=r&&Ro(t)?t.resolve(r.doc):t;if(!Fs(n))throw new Error("Merge sources must be maps or map aliases");const o=n.toJSON(null,r,Map);for(const[s,i]of o)e instanceof Map?e.has(s)||e.set(s,i):e instanceof Set?e.add(s):Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{value:i,writable:!0,enumerable:!0,configurable:!0});return e}function DM(r,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(ze(r)&&t!=null&&t.doc){const n=Ck(t.doc,{});n.anchors=new Set;for(const s of t.anchors.keys())n.anchors.add(s.anchor);n.inFlow=!0,n.inStringifyKey=!0;const o=r.toString(n);if(!t.mapKeyWarned){let s=JSON.stringify(o);s.length>40&&(s=s.substring(0,36)+'..."'),Tk(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return o}return JSON.stringify(e)}function Sm(r,e,t){const n=gi(r,void 0,t),o=gi(e,void 0,t);return new Tt(n,o)}let Tt=class Ek{constructor(e,t=null){Object.defineProperty(this,Jt,{value:yk}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return ze(t)&&(t=t.clone(e)),ze(n)&&(n=n.clone(e)),new Ek(t,n)}toJSON(e,t){const n=t!=null&&t.mapAsMap?new Map:{};return Qk(t,n,this)}toString(e,t,n){return e!=null&&e.doc?IM(this,e,t,n):JSON.stringify(this)}};function Nk(r,e,t){return(e.inFlow??r.flow?qM:MM)(r,e,t)}function MM({comment:r,items:e},t,{blockItemPrefix:n,flowChars:o,itemIndent:s,onChompKeep:i,onComment:l}){const{indent:c,options:{commentString:d}}=t,u=Object.assign({},t,{indent:s,type:null});let h=!1;const f=[];for(let m=0;m<e.length;++m){const g=e[m];let O=null;if(ze(g))!h&&g.spaceBefore&&f.push(""),Xc(t,f,g.commentBefore,h),g.comment&&(O=g.comment);else if(Ie(g)){const b=ze(g.key)?g.key:null;b&&(!h&&b.spaceBefore&&f.push(""),Xc(t,f,b.commentBefore,h))}h=!1;let y=Es(g,u,()=>O=null,()=>h=!0);O&&(y+=po(y,s,d(O))),h&&O&&(h=!1),f.push(n+y)}let p;if(f.length===0)p=o.start+o.end;else{p=f[0];for(let m=1;m<f.length;++m){const g=f[m];p+=g?`
129
- ${c}${g}`:`
130
- `}}return r?(p+=`
131
- `+Hr(d(r),c),l&&l()):h&&i&&i(),p}function qM({items:r},e,{flowChars:t,itemIndent:n}){const{indent:o,indentStep:s,flowCollectionPadding:i,options:{commentString:l}}=e;n+=s;const c=Object.assign({},e,{indent:n,inFlow:!0,type:null});let d=!1,u=0;const h=[];for(let m=0;m<r.length;++m){const g=r[m];let O=null;if(ze(g))g.spaceBefore&&h.push(""),Xc(e,h,g.commentBefore,!1),g.comment&&(O=g.comment);else if(Ie(g)){const b=ze(g.key)?g.key:null;b&&(b.spaceBefore&&h.push(""),Xc(e,h,b.commentBefore,!1),b.comment&&(d=!0));const v=ze(g.value)?g.value:null;v?(v.comment&&(O=v.comment),v.commentBefore&&(d=!0)):g.value==null&&b!=null&&b.comment&&(O=b.comment)}O&&(d=!0);let y=Es(g,c,()=>O=null);m<r.length-1&&(y+=","),O&&(y+=po(y,n,l(O))),!d&&(h.length>u||y.includes(`
132
- `))&&(d=!0),h.push(y),u=h.length}const{start:f,end:p}=t;if(h.length===0)return f+p;if(!d){const m=h.reduce((g,O)=>g+O.length+2,2);d=e.options.lineWidth>0&&m>e.options.lineWidth}if(d){let m=f;for(const g of h)m+=g?`
133
- ${s}${o}${g}`:`
134
- `;return`${m}
135
- ${o}${p}`}else return`${f}${i}${h.join(" ")}${i}${p}`}function Xc({indent:r,options:{commentString:e}},t,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){const s=Hr(e(n),r);t.push(s.trimStart())}}function mo(r,e){const t=Ee(e)?e.value:e;for(const n of r)if(Ie(n)&&(n.key===e||n.key===t||Ee(n.key)&&n.key.value===t))return n}class Zt extends km{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Nn,e),this.items=[]}static from(e,t,n){const{keepUndefined:o,replacer:s}=n,i=new this(e),l=(c,d)=>{if(typeof s=="function")d=s.call(t,c,d);else if(Array.isArray(s)&&!s.includes(c))return;(d!==void 0||o)&&i.items.push(Sm(c,d,n))};if(t instanceof Map)for(const[c,d]of t)l(c,d);else if(t&&typeof t=="object")for(const c of Object.keys(t))l(c,t[c]);return typeof e.sortMapEntries=="function"&&i.items.sort(e.sortMapEntries),i}add(e,t){var n;let o;Ie(e)?o=e:!e||typeof e!="object"||!("key"in e)?o=new Tt(e,e==null?void 0:e.value):o=new Tt(e.key,e.value);const s=mo(this.items,o.key),i=(n=this.schema)==null?void 0:n.sortMapEntries;if(s){if(!t)throw new Error(`Key ${o.key} already set`);Ee(s.value)&&xk(o.value)?s.value.value=o.value:s.value=o.value}else if(i){const l=this.items.findIndex(c=>i(o,c)<0);l===-1?this.items.push(o):this.items.splice(l,0,o)}else this.items.push(o)}delete(e){const t=mo(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){const n=mo(this.items,e),o=n==null?void 0:n.value;return(!t&&Ee(o)?o.value:o)??void 0}has(e){return!!mo(this.items,e)}set(e,t){this.add(new Tt(e,t),!0)}toJSON(e,t,n){const o=n?new n:t!=null&&t.mapAsMap?new Map:{};t!=null&&t.onCreate&&t.onCreate(o);for(const s of this.items)Qk(t,o,s);return o}toString(e,t,n){if(!e)return JSON.stringify(this);for(const o of this.items)if(!Ie(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Nk(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const Js={collection:"map",default:!0,nodeClass:Zt,tag:"tag:yaml.org,2002:map",resolve(r,e){return Fs(r)||e("Expected a mapping for this tag"),r},createNode:(r,e,t)=>Zt.from(r,e,t)};class Mn extends km{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Hs,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=El(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const n=El(e);if(typeof n!="number")return;const o=this.items[n];return!t&&Ee(o)?o.value:o}has(e){const t=El(e);return typeof t=="number"&&t<this.items.length}set(e,t){const n=El(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);const o=this.items[n];Ee(o)&&xk(t)?o.value=t:this.items[n]=t}toJSON(e,t){const n=[];t!=null&&t.onCreate&&t.onCreate(n);let o=0;for(const s of this.items)n.push(Gt(s,String(o++),t));return n}toString(e,t,n){return e?Nk(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){const{replacer:o}=n,s=new this(e);if(t&&Symbol.iterator in Object(t)){let i=0;for(let l of t){if(typeof o=="function"){const c=t instanceof Set?l:String(i++);l=o.call(t,c,l)}s.items.push(gi(l,void 0,n))}}return s}}function El(r){let e=Ee(r)?r.value:r;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}const ea={collection:"seq",default:!0,nodeClass:Mn,tag:"tag:yaml.org,2002:seq",resolve(r,e){return Ks(r)||e("Expected a sequence for this tag"),r},createNode:(r,e,t)=>Mn.from(r,e,t)},Dd={identify:r=>typeof r=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:r=>r,stringify(r,e,t,n){return e=Object.assign({actualString:!0},e),Di(r,e,t,n)}},Md={identify:r=>r==null,createNode:()=>new de(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new de(null),stringify:({source:r},e)=>typeof r=="string"&&Md.test.test(r)?r:e.options.nullStr},$m={identify:r=>typeof r=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:r=>new de(r[0]==="t"||r[0]==="T"),stringify({source:r,value:e},t){if(r&&$m.test.test(r)){const n=r[0]==="t"||r[0]==="T";if(e===n)return r}return e?t.options.trueStr:t.options.falseStr}};function br({format:r,minFractionDigits:e,tag:t,value:n}){if(typeof n=="bigint")return String(n);const o=typeof n=="number"?n:Number(n);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let s=JSON.stringify(n);if(!r&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let l=e-(s.length-i-1);for(;l-- >0;)s+="0"}return s}const Ak={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:r=>r.slice(-3).toLowerCase()==="nan"?NaN:r[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:br},Rk={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:r=>parseFloat(r),stringify(r){const e=Number(r.value);return isFinite(e)?e.toExponential():br(r)}},Vk={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(r){const e=new de(parseFloat(r)),t=r.indexOf(".");return t!==-1&&r[r.length-1]==="0"&&(e.minFractionDigits=r.length-t-1),e},stringify:br},qd=r=>typeof r=="bigint"||Number.isInteger(r),Pm=(r,e,t,{intAsBigInt:n})=>n?BigInt(r):parseInt(r.substring(e),t);function Bk(r,e,t){const{value:n}=r;return qd(n)&&n>=0?t+n.toString(e):br(r)}const Zk={identify:r=>qd(r)&&r>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(r,e,t)=>Pm(r,2,8,t),stringify:r=>Bk(r,8,"0o")},Ik={identify:qd,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(r,e,t)=>Pm(r,0,10,t),stringify:br},jk={identify:r=>qd(r)&&r>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(r,e,t)=>Pm(r,2,16,t),stringify:r=>Bk(r,16,"0x")},XM=[Js,ea,Dd,Md,$m,Zk,Ik,jk,Ak,Rk,Vk];function py(r){return typeof r=="bigint"||Number.isInteger(r)}const Nl=({value:r})=>JSON.stringify(r),WM=[{identify:r=>typeof r=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:r=>r,stringify:Nl},{identify:r=>r==null,createNode:()=>new de(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Nl},{identify:r=>typeof r=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:r=>r==="true",stringify:Nl},{identify:py,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(r,e,{intAsBigInt:t})=>t?BigInt(r):parseInt(r,10),stringify:({value:r})=>py(r)?r.toString():JSON.stringify(r)},{identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:r=>parseFloat(r),stringify:Nl}],zM={default:!0,tag:"",test:/^/,resolve(r,e){return e(`Unresolved plain scalar ${JSON.stringify(r)}`),r}},UM=[Js,ea].concat(WM,zM),xm={identify:r=>r instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(r,e){if(typeof Buffer=="function")return Buffer.from(r,"base64");if(typeof atob=="function"){const t=atob(r.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let o=0;o<t.length;++o)n[o]=t.charCodeAt(o);return n}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),r},stringify({comment:r,type:e,value:t},n,o,s){const i=t;let l;if(typeof Buffer=="function")l=i instanceof Buffer?i.toString("base64"):Buffer.from(i.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let d=0;d<i.length;++d)c+=String.fromCharCode(i[d]);l=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=de.BLOCK_LITERAL),e!==de.QUOTE_DOUBLE){const c=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),d=Math.ceil(l.length/c),u=new Array(d);for(let h=0,f=0;h<d;++h,f+=c)u[h]=l.substr(f,c);l=u.join(e===de.BLOCK_LITERAL?`
136
- `:" ")}return Di({comment:r,type:e,value:l},n,o,s)}};function Dk(r,e){if(Ks(r))for(let t=0;t<r.items.length;++t){let n=r.items[t];if(!Ie(n)){if(Fs(n)){n.items.length>1&&e("Each pair must have its own sequence indicator");const o=n.items[0]||new Tt(new de(null));if(n.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${n.commentBefore}
137
- ${o.key.commentBefore}`:n.commentBefore),n.comment){const s=o.value??o.key;s.comment=s.comment?`${n.comment}
138
- ${s.comment}`:n.comment}n=o}r.items[t]=Ie(n)?n:new Tt(n)}}else e("Expected a sequence for this tag");return r}function Mk(r,e,t){const{replacer:n}=t,o=new Mn(r);o.tag="tag:yaml.org,2002:pairs";let s=0;if(e&&Symbol.iterator in Object(e))for(let i of e){typeof n=="function"&&(i=n.call(e,String(s++),i));let l,c;if(Array.isArray(i))if(i.length===2)l=i[0],c=i[1];else throw new TypeError(`Expected [key, value] tuple: ${i}`);else if(i&&i instanceof Object){const d=Object.keys(i);if(d.length===1)l=d[0],c=i[l];else throw new TypeError(`Expected tuple with one key, not ${d.length} keys`)}else l=i;o.items.push(Sm(l,c,t))}return o}const _m={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Dk,createNode:Mk};class ys extends Mn{constructor(){super(),this.add=Zt.prototype.add.bind(this),this.delete=Zt.prototype.delete.bind(this),this.get=Zt.prototype.get.bind(this),this.has=Zt.prototype.has.bind(this),this.set=Zt.prototype.set.bind(this),this.tag=ys.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t!=null&&t.onCreate&&t.onCreate(n);for(const o of this.items){let s,i;if(Ie(o)?(s=Gt(o.key,"",t),i=Gt(o.value,s,t)):s=Gt(o,"",t),n.has(s))throw new Error("Ordered maps must not include duplicate keys");n.set(s,i)}return n}static from(e,t,n){const o=Mk(e,t,n),s=new this;return s.items=o.items,s}}ys.tag="tag:yaml.org,2002:omap";const Cm={collection:"seq",identify:r=>r instanceof Map,nodeClass:ys,default:!1,tag:"tag:yaml.org,2002:omap",resolve(r,e){const t=Dk(r,e),n=[];for(const{key:o}of t.items)Ee(o)&&(n.includes(o.value)?e(`Ordered maps must not include duplicate keys: ${o.value}`):n.push(o.value));return Object.assign(new ys,t)},createNode:(r,e,t)=>ys.from(r,e,t)};function qk({value:r,source:e},t){return e&&(r?Xk:Wk).test.test(e)?e:r?t.options.trueStr:t.options.falseStr}const Xk={identify:r=>r===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new de(!0),stringify:qk},Wk={identify:r=>r===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new de(!1),stringify:qk},YM={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:r=>r.slice(-3).toLowerCase()==="nan"?NaN:r[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:br},LM={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:r=>parseFloat(r.replace(/_/g,"")),stringify(r){const e=Number(r.value);return isFinite(e)?e.toExponential():br(r)}},HM={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(r){const e=new de(parseFloat(r.replace(/_/g,""))),t=r.indexOf(".");if(t!==-1){const n=r.substring(t+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:br},Mi=r=>typeof r=="bigint"||Number.isInteger(r);function Xd(r,e,t,{intAsBigInt:n}){const o=r[0];if((o==="-"||o==="+")&&(e+=1),r=r.substring(e).replace(/_/g,""),n){switch(t){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}const i=BigInt(r);return o==="-"?BigInt(-1)*i:i}const s=parseInt(r,t);return o==="-"?-1*s:s}function Tm(r,e,t){const{value:n}=r;if(Mi(n)){const o=n.toString(e);return n<0?"-"+t+o.substr(1):t+o}return br(r)}const GM={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(r,e,t)=>Xd(r,2,2,t),stringify:r=>Tm(r,2,"0b")},FM={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(r,e,t)=>Xd(r,1,8,t),stringify:r=>Tm(r,8,"0")},KM={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(r,e,t)=>Xd(r,0,10,t),stringify:br},JM={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(r,e,t)=>Xd(r,2,16,t),stringify:r=>Tm(r,16,"0x")};class bs extends Zt{constructor(e){super(e),this.tag=bs.tag}add(e){let t;Ie(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new Tt(e.key,null):t=new Tt(e,null),mo(this.items,t.key)||this.items.push(t)}get(e,t){const n=mo(this.items,e);return!t&&Ie(n)?Ee(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const n=mo(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Tt(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){const{replacer:o}=n,s=new this(e);if(t&&Symbol.iterator in Object(t))for(let i of t)typeof o=="function"&&(i=o.call(t,i,i)),s.items.push(Sm(i,null,n));return s}}bs.tag="tag:yaml.org,2002:set";const Qm={collection:"map",identify:r=>r instanceof Set,nodeClass:bs,default:!1,tag:"tag:yaml.org,2002:set",createNode:(r,e,t)=>bs.from(r,e,t),resolve(r,e){if(Fs(r)){if(r.hasAllNullValues(!0))return Object.assign(new bs,r);e("Set items must all have null values")}else e("Expected a mapping for this tag");return r}};function Em(r,e){const t=r[0],n=t==="-"||t==="+"?r.substring(1):r,o=i=>e?BigInt(i):Number(i),s=n.replace(/_/g,"").split(":").reduce((i,l)=>i*o(60)+o(l),o(0));return t==="-"?o(-1)*s:s}function zk(r){let{value:e}=r,t=i=>i;if(typeof e=="bigint")t=i=>BigInt(i);else if(isNaN(e)||!isFinite(e))return br(r);let n="";e<0&&(n="-",e*=t(-1));const o=t(60),s=[e%o];return e<60?s.unshift(0):(e=(e-s[0])/o,s.unshift(e%o),e>=60&&(e=(e-s[0])/o,s.unshift(e))),n+s.map(i=>String(i).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Uk={identify:r=>typeof r=="bigint"||Number.isInteger(r),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(r,e,{intAsBigInt:t})=>Em(r,t),stringify:zk},Yk={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:r=>Em(r,!1),stringify:zk},Wd={identify:r=>r instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(r){const e=r.match(Wd.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,t,n,o,s,i,l]=e.map(Number),c=e[7]?Number((e[7]+"00").substr(1,3)):0;let d=Date.UTC(t,n-1,o,s||0,i||0,l||0,c);const u=e[8];if(u&&u!=="Z"){let h=Em(u,!1);Math.abs(h)<30&&(h*=60),d-=6e4*h}return new Date(d)},stringify:({value:r})=>r.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},my=[Js,ea,Dd,Md,Xk,Wk,GM,FM,KM,JM,YM,LM,HM,xm,Cm,_m,Qm,Uk,Yk,Wd],gy=new Map([["core",XM],["failsafe",[Js,ea,Dd]],["json",UM],["yaml11",my],["yaml-1.1",my]]),Oy={binary:xm,bool:$m,float:Vk,floatExp:Rk,floatNaN:Ak,floatTime:Yk,int:Ik,intHex:jk,intOct:Zk,intTime:Uk,map:Js,null:Md,omap:Cm,pairs:_m,seq:ea,set:Qm,timestamp:Wd},e7={"tag:yaml.org,2002:binary":xm,"tag:yaml.org,2002:omap":Cm,"tag:yaml.org,2002:pairs":_m,"tag:yaml.org,2002:set":Qm,"tag:yaml.org,2002:timestamp":Wd};function Xu(r,e){let t=gy.get(e);if(!t)if(Array.isArray(r))t=[];else{const n=Array.from(gy.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${n} or define customTags array`)}if(Array.isArray(r))for(const n of r)t=t.concat(n);else typeof r=="function"&&(t=r(t.slice()));return t.map(n=>{if(typeof n!="string")return n;const o=Oy[n];if(o)return o;const s=Object.keys(Oy).map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${s}`)})}const t7=(r,e)=>r.key<e.key?-1:r.key>e.key?1:0;class zd{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:o,schema:s,sortMapEntries:i,toStringDefaults:l}){this.compat=Array.isArray(e)?Xu(e,"compat"):e?Xu(null,e):null,this.merge=!!n,this.name=typeof s=="string"&&s||"core",this.knownTags=o?e7:{},this.tags=Xu(t,this.name),this.toStringOptions=l??null,Object.defineProperty(this,Nn,{value:Js}),Object.defineProperty(this,ln,{value:Dd}),Object.defineProperty(this,Hs,{value:ea}),this.sortMapEntries=typeof i=="function"?i:i===!0?t7:null}clone(){const e=Object.create(zd.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function r7(r,e){var t;const n=[];let o=e.directives===!0;if(e.directives!==!1&&r.directives){const d=r.directives.toString(r);d?(n.push(d),o=!0):r.directives.docStart&&(o=!0)}o&&n.push("---");const s=Ck(r,e),{commentString:i}=s.options;if(r.commentBefore){n.length!==1&&n.unshift("");const d=i(r.commentBefore);n.unshift(Hr(d,""))}let l=!1,c=null;if(r.contents){if(ze(r.contents)){if(r.contents.spaceBefore&&o&&n.push(""),r.contents.commentBefore){const h=i(r.contents.commentBefore);n.push(Hr(h,""))}s.forceBlockIndent=!!r.comment,c=r.contents.comment}const d=c?void 0:()=>l=!0;let u=Es(r.contents,s,()=>c=null,d);c&&(u+=po(u,"",i(c))),(u[0]==="|"||u[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${u}`:n.push(u)}else n.push(Es(r.contents,s));if((t=r.directives)!=null&&t.docEnd)if(r.comment){const d=i(r.comment);d.includes(`
139
- `)?(n.push("..."),n.push(Hr(d,""))):n.push(`... ${d}`)}else n.push("...");else{let d=r.comment;d&&l&&(d=d.replace(/^\n+/,"")),d&&((!l||c)&&n[n.length-1]!==""&&n.push(""),n.push(Hr(i(d),"")))}return n.join(`
140
- `)+`
141
- `}class ta{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Jt,{value:$f});let o=null;typeof t=="function"||Array.isArray(t)?o=t:n===void 0&&t&&(n=t,t=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=s;let{version:i}=s;n!=null&&n._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new yt({version:i}),this.setSchema(i,n),this.contents=e===void 0?null:this.createNode(e,o,n)}clone(){const e=Object.create(ta.prototype,{[Jt]:{value:$f}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=ze(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Yo(this.contents)&&this.contents.add(e)}addIn(e,t){Yo(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=$k(this);e.anchor=!t||n.has(t)?Pk(t||"a",n):t}return new Bd(e.anchor)}createNode(e,t,n){let o;if(typeof t=="function")e=t.call({"":e},"",e),o=t;else if(Array.isArray(t)){const O=b=>typeof b=="number"||b instanceof String||b instanceof Number,y=t.filter(O).map(String);y.length>0&&(t=t.concat(y)),o=t}else n===void 0&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:s,anchorPrefix:i,flow:l,keepUndefined:c,onTagObj:d,tag:u}=n??{},{onAnchor:h,setAnchors:f,sourceObjects:p}=QM(this,i||"a"),m={aliasDuplicateObjects:s??!0,keepUndefined:c??!1,onAnchor:h,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:p},g=gi(e,u,m);return l&&je(g)&&(g.flow=!0),f(),g}createPair(e,t,n={}){const o=this.createNode(e,null,n),s=this.createNode(t,null,n);return new Tt(o,s)}delete(e){return Yo(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Ra(e)?this.contents==null?!1:(this.contents=null,!0):Yo(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return je(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Ra(e)?!t&&Ee(this.contents)?this.contents.value:this.contents:je(this.contents)?this.contents.getIn(e,t):void 0}has(e){return je(this.contents)?this.contents.has(e):!1}hasIn(e){return Ra(e)?this.contents!==void 0:je(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=qc(this.schema,[e],t):Yo(this.contents)&&this.contents.set(e,t)}setIn(e,t){Ra(e)?this.contents=t:this.contents==null?this.contents=qc(this.schema,Array.from(e),t):Yo(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new yt({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new yt({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const o=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new zd(Object.assign(n,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:o,onAnchor:s,reviver:i}={}){const l={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},c=Gt(this.contents,t??"",l);if(typeof s=="function")for(const{count:d,res:u}of l.anchors.values())s(u,d);return typeof i=="function"?as(i,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return r7(this,e)}}function Yo(r){if(je(r))return!0;throw new Error("Expected a YAML collection as document contents")}class Nm extends Error{constructor(e,t,n,o){super(),this.name=e,this.code=n,this.message=o,this.pos=t}}let go=class extends Nm{constructor(e,t,n){super("YAMLParseError",e,t,n)}};class Lk extends Nm{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const Wc=(r,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(l=>e.linePos(l));const{line:n,col:o}=t.linePos[0];t.message+=` at line ${n}, column ${o}`;let s=o-1,i=r.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(s>=60&&i.length>80){const l=Math.min(s-39,i.length-79);i="…"+i.substring(l),s-=l-1}if(i.length>80&&(i=i.substring(0,79)+"…"),n>1&&/^ *$/.test(i.substring(0,s))){let l=r.substring(e.lineStarts[n-2],e.lineStarts[n-1]);l.length>80&&(l=l.substring(0,79)+`…
142
- `),i=l+i}if(/[^ ]/.test(i)){let l=1;const c=t.linePos[1];c&&c.line===n&&c.col>o&&(l=Math.max(1,Math.min(c.col-o,80-s)));const d=" ".repeat(s)+"^".repeat(l);t.message+=`:
143
-
144
- ${i}
145
- ${d}
146
- `}};function Ns(r,{flow:e,indicator:t,next:n,offset:o,onError:s,startOnNewline:i}){let l=!1,c=i,d=i,u="",h="",f=!1,p=!1,m=!1,g=null,O=null,y=null,b=null,v=null;for(const w of r)switch(m&&(w.type!=="space"&&w.type!=="newline"&&w.type!=="comma"&&s(w.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m=!1),w.type){case"space":!e&&c&&t!=="doc-start"&&w.source[0]===" "&&s(w,"TAB_AS_INDENT","Tabs are not allowed as indentation"),d=!0;break;case"comment":{d||s(w,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const $=w.source.substring(1)||" ";u?u+=h+$:u=$,h="",c=!1;break}case"newline":c?u?u+=w.source:l=!0:h+=w.source,c=!0,f=!0,(g||O)&&(p=!0),d=!0;break;case"anchor":g&&s(w,"MULTIPLE_ANCHORS","A node can have at most one anchor"),w.source.endsWith(":")&&s(w.offset+w.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=w,v===null&&(v=w.offset),c=!1,d=!1,m=!0;break;case"tag":{O&&s(w,"MULTIPLE_TAGS","A node can have at most one tag"),O=w,v===null&&(v=w.offset),c=!1,d=!1,m=!0;break}case t:(g||O)&&s(w,"BAD_PROP_ORDER",`Anchors and tags must be after the ${w.source} indicator`),b&&s(w,"UNEXPECTED_TOKEN",`Unexpected ${w.source} in ${e??"collection"}`),b=w,c=!1,d=!1;break;case"comma":if(e){y&&s(w,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),y=w,c=!1,d=!1;break}default:s(w,"UNEXPECTED_TOKEN",`Unexpected ${w.type} token`),c=!1,d=!1}const k=r[r.length-1],S=k?k.offset+k.source.length:o;return m&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&s(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:y,found:b,spaceBefore:l,comment:u,hasNewline:f,hasNewlineAfterProp:p,anchor:g,tag:O,end:S,start:v??S}}function Oi(r){if(!r)return null;switch(r.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(r.source.includes(`
147
- `))return!0;if(r.end){for(const e of r.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of r.items){for(const t of e.start)if(t.type==="newline")return!0;if(e.sep){for(const t of e.sep)if(t.type==="newline")return!0}if(Oi(e.key)||Oi(e.value))return!0}return!1;default:return!0}}function Cf(r,e,t){if((e==null?void 0:e.type)==="flow-collection"){const n=e.end[0];n.indent===r&&(n.source==="]"||n.source==="}")&&Oi(e)&&t(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Hk(r,e,t){const{uniqueKeys:n}=r.options;if(n===!1)return!1;const o=typeof n=="function"?n:(s,i)=>s===i||Ee(s)&&Ee(i)&&s.value===i.value&&!(s.value==="<<"&&r.schema.merge);return e.some(s=>o(s.key,t))}const yy="All mapping items must start at the same column";function n7({composeNode:r,composeEmptyNode:e},t,n,o,s){var i;const l=(s==null?void 0:s.nodeClass)??Zt,c=new l(t.schema);t.atRoot&&(t.atRoot=!1);let d=n.offset,u=null;for(const h of n.items){const{start:f,key:p,sep:m,value:g}=h,O=Ns(f,{indicator:"explicit-key-ind",next:p??(m==null?void 0:m[0]),offset:d,onError:o,startOnNewline:!0}),y=!O.found;if(y){if(p&&(p.type==="block-seq"?o(d,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==n.indent&&o(d,"BAD_INDENT",yy)),!O.anchor&&!O.tag&&!m){u=O.end,O.comment&&(c.comment?c.comment+=`
148
- `+O.comment:c.comment=O.comment);continue}(O.hasNewlineAfterProp||Oi(p))&&o(p??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((i=O.found)==null?void 0:i.indent)!==n.indent&&o(d,"BAD_INDENT",yy);const b=O.end,v=p?r(t,p,O,o):e(t,b,f,null,O,o);t.schema.compat&&Cf(n.indent,p,o),Hk(t,c.items,v)&&o(b,"DUPLICATE_KEY","Map keys must be unique");const k=Ns(m??[],{indicator:"map-value-ind",next:g,offset:v.range[2],onError:o,startOnNewline:!p||p.type==="block-scalar"});if(d=k.end,k.found){y&&((g==null?void 0:g.type)==="block-map"&&!k.hasNewline&&o(d,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&O.start<k.found.offset-1024&&o(v.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const S=g?r(t,g,k,o):e(t,d,m,null,k,o);t.schema.compat&&Cf(n.indent,g,o),d=S.range[2];const w=new Tt(v,S);t.options.keepSourceTokens&&(w.srcToken=h),c.items.push(w)}else{y&&o(v.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),k.comment&&(v.comment?v.comment+=`
149
- `+k.comment:v.comment=k.comment);const S=new Tt(v);t.options.keepSourceTokens&&(S.srcToken=h),c.items.push(S)}}return u&&u<d&&o(u,"IMPOSSIBLE","Map comment with trailing content"),c.range=[n.offset,d,u??d],c}function o7({composeNode:r,composeEmptyNode:e},t,n,o,s){const i=(s==null?void 0:s.nodeClass)??Mn,l=new i(t.schema);t.atRoot&&(t.atRoot=!1);let c=n.offset,d=null;for(const{start:u,value:h}of n.items){const f=Ns(u,{indicator:"seq-item-ind",next:h,offset:c,onError:o,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||h)h&&h.type==="block-seq"?o(f.end,"BAD_INDENT","All sequence items must start at the same column"):o(c,"MISSING_CHAR","Sequence item without - indicator");else{d=f.end,f.comment&&(l.comment=f.comment);continue}const p=h?r(t,h,f,o):e(t,f.end,u,null,f,o);t.schema.compat&&Cf(n.indent,h,o),c=p.range[2],l.items.push(p)}return l.range=[n.offset,c,d??c],l}function qi(r,e,t,n){let o="";if(r){let s=!1,i="";for(const l of r){const{source:c,type:d}=l;switch(d){case"space":s=!0;break;case"comment":{t&&!s&&n(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const u=c.substring(1)||" ";o?o+=i+u:o=u,i="";break}case"newline":o&&(i+=c),s=!0;break;default:n(l,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}e+=c.length}}return{comment:o,offset:e}}const Wu="Block collections are not allowed within flow collections",zu=r=>r&&(r.type==="block-map"||r.type==="block-seq");function s7({composeNode:r,composeEmptyNode:e},t,n,o,s){const i=n.start.source==="{",l=i?"flow map":"flow sequence",c=(s==null?void 0:s.nodeClass)??(i?Zt:Mn),d=new c(t.schema);d.flow=!0;const u=t.atRoot;u&&(t.atRoot=!1);let h=n.offset+n.start.source.length;for(let O=0;O<n.items.length;++O){const y=n.items[O],{start:b,key:v,sep:k,value:S}=y,w=Ns(b,{flow:l,indicator:"explicit-key-ind",next:v??(k==null?void 0:k[0]),offset:h,onError:o,startOnNewline:!1});if(!w.found){if(!w.anchor&&!w.tag&&!k&&!S){O===0&&w.comma?o(w.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):O<n.items.length-1&&o(w.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),w.comment&&(d.comment?d.comment+=`
150
- `+w.comment:d.comment=w.comment),h=w.end;continue}!i&&t.options.strict&&Oi(v)&&o(v,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(O===0)w.comma&&o(w.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(w.comma||o(w.start,"MISSING_CHAR",`Missing , between ${l} items`),w.comment){let $="";e:for(const T of b)switch(T.type){case"comma":case"space":break;case"comment":$=T.source.substring(1);break e;default:break e}if($){let T=d.items[d.items.length-1];Ie(T)&&(T=T.value??T.key),T.comment?T.comment+=`
151
- `+$:T.comment=$,w.comment=w.comment.substring($.length+1)}}if(!i&&!k&&!w.found){const $=S?r(t,S,w,o):e(t,w.end,k,null,w,o);d.items.push($),h=$.range[2],zu(S)&&o($.range,"BLOCK_IN_FLOW",Wu)}else{const $=w.end,T=v?r(t,v,w,o):e(t,$,b,null,w,o);zu(v)&&o(T.range,"BLOCK_IN_FLOW",Wu);const R=Ns(k??[],{flow:l,indicator:"map-value-ind",next:S,offset:T.range[2],onError:o,startOnNewline:!1});if(R.found){if(!i&&!w.found&&t.options.strict){if(k)for(const V of k){if(V===R.found)break;if(V.type==="newline"){o(V,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}w.start<R.found.offset-1024&&o(R.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else S&&("source"in S&&S.source&&S.source[0]===":"?o(S,"MISSING_CHAR",`Missing space after : in ${l}`):o(R.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const B=S?r(t,S,R,o):R.found?e(t,R.end,k,null,R,o):null;B?zu(S)&&o(B.range,"BLOCK_IN_FLOW",Wu):R.comment&&(T.comment?T.comment+=`
152
- `+R.comment:T.comment=R.comment);const M=new Tt(T,B);if(t.options.keepSourceTokens&&(M.srcToken=y),i){const V=d;Hk(t,V.items,T)&&o($,"DUPLICATE_KEY","Map keys must be unique"),V.items.push(M)}else{const V=new Zt(t.schema);V.flow=!0,V.items.push(M),d.items.push(V)}h=B?B.range[2]:R.end}}const f=i?"}":"]",[p,...m]=n.end;let g=h;if(p&&p.source===f)g=p.offset+p.source.length;else{const O=l[0].toUpperCase()+l.substring(1),y=u?`${O} must end with a ${f}`:`${O} in block collection must be sufficiently indented and end with a ${f}`;o(h,u?"MISSING_CHAR":"BAD_INDENT",y),p&&p.source.length!==1&&m.unshift(p)}if(m.length>0){const O=qi(m,g,t.options.strict,o);O.comment&&(d.comment?d.comment+=`
153
- `+O.comment:d.comment=O.comment),d.range=[n.offset,g,O.offset]}else d.range=[n.offset,g,g];return d}function Uu(r,e,t,n,o,s){const i=t.type==="block-map"?n7(r,e,t,n,s):t.type==="block-seq"?o7(r,e,t,n,s):s7(r,e,t,n,s),l=i.constructor;return o==="!"||o===l.tagName?(i.tag=l.tagName,i):(o&&(i.tag=o),i)}function a7(r,e,t,n,o){var s;const i=n?e.directives.tagName(n.source,f=>o(n,"TAG_RESOLVE_FAILED",f)):null,l=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!n||!i||i==="!"||i===Zt.tagName&&l==="map"||i===Mn.tagName&&l==="seq"||!l)return Uu(r,e,t,o,i);let c=e.schema.tags.find(f=>f.tag===i&&f.collection===l);if(!c){const f=e.schema.knownTags[i];if(f&&f.collection===l)e.schema.tags.push(Object.assign({},f,{default:!1})),c=f;else return f!=null&&f.collection?o(n,"BAD_COLLECTION_TYPE",`${f.tag} used for ${l} collection, but expects ${f.collection}`,!0):o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),Uu(r,e,t,o,i)}const d=Uu(r,e,t,o,i,c),u=((s=c.resolve)==null?void 0:s.call(c,d,f=>o(n,"TAG_RESOLVE_FAILED",f),e.options))??d,h=ze(u)?u:new de(u);return h.range=d.range,h.tag=i,c!=null&&c.format&&(h.format=c.format),h}function Gk(r,e,t){const n=r.offset,o=i7(r,e,t);if(!o)return{value:"",type:null,comment:"",range:[n,n,n]};const s=o.mode===">"?de.BLOCK_FOLDED:de.BLOCK_LITERAL,i=r.source?l7(r.source):[];let l=i.length;for(let g=i.length-1;g>=0;--g){const O=i[g][1];if(O===""||O==="\r")l=g;else break}if(l===0){const g=o.chomp==="+"&&i.length>0?`
154
- `.repeat(Math.max(1,i.length-1)):"";let O=n+o.length;return r.source&&(O+=r.source.length),{value:g,type:s,comment:o.comment,range:[n,O,O]}}let c=r.indent+o.indent,d=r.offset+o.length,u=0;for(let g=0;g<l;++g){const[O,y]=i[g];if(y===""||y==="\r")o.indent===0&&O.length>c&&(c=O.length);else{O.length<c&&t(d+O.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(c=O.length),u=g;break}d+=O.length+y.length+1}for(let g=i.length-1;g>=l;--g)i[g][0].length>c&&(l=g+1);let h="",f="",p=!1;for(let g=0;g<u;++g)h+=i[g][0].slice(c)+`
155
- `;for(let g=u;g<l;++g){let[O,y]=i[g];d+=O.length+y.length+1;const b=y[y.length-1]==="\r";if(b&&(y=y.slice(0,-1)),y&&O.length<c){const v=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;t(d-y.length-(b?2:1),"BAD_INDENT",v),O=""}s===de.BLOCK_LITERAL?(h+=f+O.slice(c)+y,f=`
156
- `):O.length>c||y[0]===" "?(f===" "?f=`
157
- `:!p&&f===`
158
- `&&(f=`
159
-
160
- `),h+=f+O.slice(c)+y,f=`
161
- `,p=!0):y===""?f===`
162
- `?h+=`
163
- `:f=`
164
- `:(h+=f+y,f=" ",p=!1)}switch(o.chomp){case"-":break;case"+":for(let g=l;g<i.length;++g)h+=`
165
- `+i[g][0].slice(c);h[h.length-1]!==`
166
- `&&(h+=`
167
- `);break;default:h+=`
168
- `}const m=n+o.length+r.source.length;return{value:h,type:s,comment:o.comment,range:[n,m,m]}}function i7({offset:r,props:e},t,n){if(e[0].type!=="block-scalar-header")return n(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=e[0],s=o[0];let i=0,l="",c=-1;for(let f=1;f<o.length;++f){const p=o[f];if(!l&&(p==="-"||p==="+"))l=p;else{const m=Number(p);!i&&m?i=m:c===-1&&(c=r+f)}}c!==-1&&n(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let d=!1,u="",h=o.length;for(let f=1;f<e.length;++f){const p=e[f];switch(p.type){case"space":d=!0;case"newline":h+=p.source.length;break;case"comment":t&&!d&&n(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=p.source.length,u=p.source.substring(1);break;case"error":n(p,"UNEXPECTED_TOKEN",p.message),h+=p.source.length;break;default:{const m=`Unexpected token in block scalar header: ${p.type}`;n(p,"UNEXPECTED_TOKEN",m);const g=p.source;g&&typeof g=="string"&&(h+=g.length)}}}return{mode:s,indent:i,chomp:l,comment:u,length:h}}function l7(r){const e=r.split(/\n( *)/),t=e[0],n=t.match(/^( *)/),o=[n!=null&&n[1]?[n[1],t.slice(n[1].length)]:["",t]];for(let s=1;s<e.length;s+=2)o.push([e[s],e[s+1]]);return o}function Fk(r,e,t){const{offset:n,type:o,source:s,end:i}=r;let l,c;const d=(f,p,m)=>t(n+f,p,m);switch(o){case"scalar":l=de.PLAIN,c=c7(s,d);break;case"single-quoted-scalar":l=de.QUOTE_SINGLE,c=d7(s,d);break;case"double-quoted-scalar":l=de.QUOTE_DOUBLE,c=u7(s,d);break;default:return t(r,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[n,n+s.length,n+s.length]}}const u=n+s.length,h=qi(i,u,e,t);return{value:c,type:l,comment:h.comment,range:[n,u,h.offset]}}function c7(r,e){let t="";switch(r[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${r[0]}`;break}case"@":case"`":{t=`reserved character ${r[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),Kk(r)}function d7(r,e){return(r[r.length-1]!=="'"||r.length===1)&&e(r.length,"MISSING_CHAR","Missing closing 'quote"),Kk(r.slice(1,-1)).replace(/''/g,"'")}function Kk(r){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
169
- `,"sy"),t=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
170
- `,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,t=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=e.exec(r);if(!n)return r;let o=n[1],s=" ",i=e.lastIndex;for(t.lastIndex=i;n=t.exec(r);)n[1]===""?s===`
171
- `?o+=s:s=`
172
- `:(o+=s+n[1],s=" "),i=t.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=i,n=l.exec(r),o+s+((n==null?void 0:n[1])??"")}function u7(r,e){let t="";for(let n=1;n<r.length-1;++n){const o=r[n];if(!(o==="\r"&&r[n+1]===`
173
- `))if(o===`
174
- `){const{fold:s,offset:i}=h7(r,n);t+=s,n=i}else if(o==="\\"){let s=r[++n];const i=f7[s];if(i)t+=i;else if(s===`
175
- `)for(s=r[n+1];s===" "||s===" ";)s=r[++n+1];else if(s==="\r"&&r[n+1]===`
176
- `)for(s=r[++n+1];s===" "||s===" ";)s=r[++n+1];else if(s==="x"||s==="u"||s==="U"){const l={x:2,u:4,U:8}[s];t+=p7(r,n+1,l,e),n+=l}else{const l=r.substr(n-1,2);e(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),t+=l}}else if(o===" "||o===" "){const s=n;let i=r[n+1];for(;i===" "||i===" ";)i=r[++n+1];i!==`
177
- `&&!(i==="\r"&&r[n+2]===`
178
- `)&&(t+=n>s?r.slice(s,n+1):o)}else t+=o}return(r[r.length-1]!=='"'||r.length===1)&&e(r.length,"MISSING_CHAR",'Missing closing "quote'),t}function h7(r,e){let t="",n=r[e+1];for(;(n===" "||n===" "||n===`
179
- `||n==="\r")&&!(n==="\r"&&r[e+2]!==`
180
- `);)n===`
181
- `&&(t+=`
182
- `),e+=1,n=r[e+1];return t||(t=" "),{fold:t,offset:e}}const f7={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
183
- `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function p7(r,e,t,n){const o=r.substr(e,t),s=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(s)){const i=r.substr(e-2,t+2);return n(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),i}return String.fromCodePoint(s)}function Jk(r,e,t,n){const{value:o,type:s,comment:i,range:l}=e.type==="block-scalar"?Gk(e,r.options.strict,n):Fk(e,r.options.strict,n),c=t?r.directives.tagName(t.source,h=>n(t,"TAG_RESOLVE_FAILED",h)):null,d=t&&c?m7(r.schema,o,c,t,n):e.type==="scalar"?g7(r,o,e,n):r.schema[ln];let u;try{const h=d.resolve(o,f=>n(t??e,"TAG_RESOLVE_FAILED",f),r.options);u=Ee(h)?h:new de(h)}catch(h){const f=h instanceof Error?h.message:String(h);n(t??e,"TAG_RESOLVE_FAILED",f),u=new de(o)}return u.range=l,u.source=o,s&&(u.type=s),c&&(u.tag=c),d.format&&(u.format=d.format),i&&(u.comment=i),u}function m7(r,e,t,n,o){var s;if(t==="!")return r[ln];const i=[];for(const c of r.tags)if(!c.collection&&c.tag===t)if(c.default&&c.test)i.push(c);else return c;for(const c of i)if((s=c.test)!=null&&s.test(e))return c;const l=r.knownTags[t];return l&&!l.collection?(r.tags.push(Object.assign({},l,{default:!1,test:void 0})),l):(o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),r[ln])}function g7({directives:r,schema:e},t,n,o){const s=e.tags.find(i=>{var l;return i.default&&((l=i.test)==null?void 0:l.test(t))})||e[ln];if(e.compat){const i=e.compat.find(l=>{var c;return l.default&&((c=l.test)==null?void 0:c.test(t))})??e[ln];if(s.tag!==i.tag){const l=r.tagString(s.tag),c=r.tagString(i.tag),d=`Value may be parsed as either ${l} or ${c}`;o(n,"TAG_RESOLVE_FAILED",d,!0)}}return s}function O7(r,e,t){if(e){t===null&&(t=e.length);for(let n=t-1;n>=0;--n){let o=e[n];switch(o.type){case"space":case"comment":case"newline":r-=o.source.length;continue}for(o=e[++n];(o==null?void 0:o.type)==="space";)r+=o.source.length,o=e[++n];break}}return r}const y7={composeNode:eS,composeEmptyNode:Am};function eS(r,e,t,n){const{spaceBefore:o,comment:s,anchor:i,tag:l}=t;let c,d=!0;switch(e.type){case"alias":c=b7(r,e,n),(i||l)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=Jk(r,e,l,n),i&&(c.anchor=i.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=a7(y7,r,e,l,n),i&&(c.anchor=i.source.substring(1));break;default:{const u=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",u),c=Am(r,e.offset,void 0,null,t,n),d=!1}}return i&&c.anchor===""&&n(i,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(c.spaceBefore=!0),s&&(e.type==="scalar"&&e.source===""?c.comment=s:c.commentBefore=s),r.options.keepSourceTokens&&d&&(c.srcToken=e),c}function Am(r,e,t,n,{spaceBefore:o,comment:s,anchor:i,tag:l,end:c},d){const u={type:"scalar",offset:O7(e,t,n),indent:-1,source:""},h=Jk(r,u,l,d);return i&&(h.anchor=i.source.substring(1),h.anchor===""&&d(i,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(h.spaceBefore=!0),s&&(h.comment=s,h.range[2]=c),h}function b7({options:r},{offset:e,source:t,end:n},o){const s=new Bd(t.substring(1));s.source===""&&o(e,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&o(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const i=e+t.length,l=qi(n,i,r.strict,o);return s.range=[e,i,l.offset],l.comment&&(s.comment=l.comment),s}function v7(r,e,{offset:t,start:n,value:o,end:s},i){const l=Object.assign({_directives:e},r),c=new ta(void 0,l),d={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},u=Ns(n,{indicator:"doc-start",next:o??(s==null?void 0:s[0]),offset:t,onError:i,startOnNewline:!0});u.found&&(c.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!u.hasNewline&&i(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=o?eS(d,o,u,i):Am(d,u.end,n,null,u,i);const h=c.contents.range[2],f=qi(s,h,!1,i);return f.comment&&(c.comment=f.comment),c.range=[t,h,f.offset],c}function xa(r){if(typeof r=="number")return[r,r+1];if(Array.isArray(r))return r.length===2?r:[r[0],r[1]];const{offset:e,source:t}=r;return[e,e+(typeof t=="string"?t.length:1)]}function by(r){var e;let t="",n=!1,o=!1;for(let s=0;s<r.length;++s){const i=r[s];switch(i[0]){case"#":t+=(t===""?"":o?`
184
-
185
- `:`
186
- `)+(i.substring(1)||" "),n=!0,o=!1;break;case"%":((e=r[s+1])==null?void 0:e[0])!=="#"&&(s+=1),n=!1;break;default:n||(o=!0),n=!1}}return{comment:t,afterEmptyLine:o}}class Rm{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,n,o,s)=>{const i=xa(t);s?this.warnings.push(new Lk(i,n,o)):this.errors.push(new go(i,n,o))},this.directives=new yt({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:o}=by(this.prelude);if(n){const s=e.contents;if(t)e.comment=e.comment?`${e.comment}
187
- ${n}`:n;else if(o||e.directives.docStart||!s)e.commentBefore=n;else if(je(s)&&!s.flow&&s.items.length>0){let i=s.items[0];Ie(i)&&(i=i.key);const l=i.commentBefore;i.commentBefore=l?`${n}
188
- ${l}`:n}else{const i=s.commentBefore;s.commentBefore=i?`${n}
189
- ${i}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:by(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const o of e)yield*this.next(o);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,n,o)=>{const s=xa(e);s[0]+=t,this.onError(s,"BAD_DIRECTIVE",n,o)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=v7(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new go(xa(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const n="Unexpected doc-end without preceding document";this.errors.push(new go(xa(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;const t=qi(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const n=this.doc.comment;this.doc.comment=n?`${n}
190
- ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new go(xa(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const n=Object.assign({_directives:this.directives},this.options),o=new ta(void 0,n);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,t,t],this.decorate(o,!1),yield o}}}function w7(r,e=!0,t){if(r){const n=(o,s,i)=>{const l=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(t)t(l,s,i);else throw new go([l,l+1],s,i)};switch(r.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Fk(r,e,n);case"block-scalar":return Gk(r,e,n)}}return null}function k7(r,e){const{implicitKey:t=!1,indent:n,inFlow:o=!1,offset:s=-1,type:i="PLAIN"}=e,l=Di({type:i,value:r},{implicitKey:t,indent:n>0?" ".repeat(n):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=e.end??[{type:"newline",offset:-1,indent:n,source:`
191
- `}];switch(l[0]){case"|":case">":{const d=l.indexOf(`
192
- `),u=l.substring(0,d),h=l.substring(d+1)+`
193
- `,f=[{type:"block-scalar-header",offset:s,indent:n,source:u}];return tS(f,c)||f.push({type:"newline",offset:-1,indent:n,source:`
194
- `}),{type:"block-scalar",offset:s,indent:n,props:f,source:h}}case'"':return{type:"double-quoted-scalar",offset:s,indent:n,source:l,end:c};case"'":return{type:"single-quoted-scalar",offset:s,indent:n,source:l,end:c};default:return{type:"scalar",offset:s,indent:n,source:l,end:c}}}function S7(r,e,t={}){let{afterKey:n=!1,implicitKey:o=!1,inFlow:s=!1,type:i}=t,l="indent"in r?r.indent:null;if(n&&typeof l=="number"&&(l+=2),!i)switch(r.type){case"single-quoted-scalar":i="QUOTE_SINGLE";break;case"double-quoted-scalar":i="QUOTE_DOUBLE";break;case"block-scalar":{const d=r.props[0];if(d.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i=d.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:i="PLAIN"}const c=Di({type:i,value:e},{implicitKey:o||l===null,indent:l!==null&&l>0?" ".repeat(l):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":$7(r,c);break;case'"':Yu(r,c,"double-quoted-scalar");break;case"'":Yu(r,c,"single-quoted-scalar");break;default:Yu(r,c,"scalar")}}function $7(r,e){const t=e.indexOf(`
195
- `),n=e.substring(0,t),o=e.substring(t+1)+`
196
- `;if(r.type==="block-scalar"){const s=r.props[0];if(s.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s.source=n,r.source=o}else{const{offset:s}=r,i="indent"in r?r.indent:-1,l=[{type:"block-scalar-header",offset:s,indent:i,source:n}];tS(l,"end"in r?r.end:void 0)||l.push({type:"newline",offset:-1,indent:i,source:`
197
- `});for(const c of Object.keys(r))c!=="type"&&c!=="offset"&&delete r[c];Object.assign(r,{type:"block-scalar",indent:i,props:l,source:o})}}function tS(r,e){if(e)for(const t of e)switch(t.type){case"space":case"comment":r.push(t);break;case"newline":return r.push(t),!0}return!1}function Yu(r,e,t){switch(r.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":r.type=t,r.source=e;break;case"block-scalar":{const n=r.props.slice(1);let o=e.length;r.props[0].type==="block-scalar-header"&&(o-=r.props[0].source.length);for(const s of n)s.offset+=o;delete r.props,Object.assign(r,{type:t,source:e,end:n});break}case"block-map":case"block-seq":{const n={type:"newline",offset:r.offset+e.length,indent:r.indent,source:`
198
- `};delete r.items,Object.assign(r,{type:t,source:e,end:[n]});break}default:{const n="indent"in r?r.indent:-1,o="end"in r&&Array.isArray(r.end)?r.end.filter(s=>s.type==="space"||s.type==="comment"||s.type==="newline"):[];for(const s of Object.keys(r))s!=="type"&&s!=="offset"&&delete r[s];Object.assign(r,{type:t,indent:n,source:e,end:o})}}}const P7=r=>"type"in r?zc(r):sc(r);function zc(r){switch(r.type){case"block-scalar":{let e="";for(const t of r.props)e+=zc(t);return e+r.source}case"block-map":case"block-seq":{let e="";for(const t of r.items)e+=sc(t);return e}case"flow-collection":{let e=r.start.source;for(const t of r.items)e+=sc(t);for(const t of r.end)e+=t.source;return e}case"document":{let e=sc(r);if(r.end)for(const t of r.end)e+=t.source;return e}default:{let e=r.source;if("end"in r&&r.end)for(const t of r.end)e+=t.source;return e}}}function sc({start:r,key:e,sep:t,value:n}){let o="";for(const s of r)o+=s.source;if(e&&(o+=zc(e)),t)for(const s of t)o+=s.source;return n&&(o+=zc(n)),o}const Tf=Symbol("break visit"),x7=Symbol("skip children"),rS=Symbol("remove item");function Qo(r,e){"type"in r&&r.type==="document"&&(r={start:r.start,value:r.value}),nS(Object.freeze([]),r,e)}Qo.BREAK=Tf;Qo.SKIP=x7;Qo.REMOVE=rS;Qo.itemAtPath=(r,e)=>{let t=r;for(const[n,o]of e){const s=t==null?void 0:t[n];if(s&&"items"in s)t=s.items[o];else return}return t};Qo.parentCollection=(r,e)=>{const t=Qo.itemAtPath(r,e.slice(0,-1)),n=e[e.length-1][0],o=t==null?void 0:t[n];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function nS(r,e,t){let n=t(e,r);if(typeof n=="symbol")return n;for(const o of["key","value"]){const s=e[o];if(s&&"items"in s){for(let i=0;i<s.items.length;++i){const l=nS(Object.freeze(r.concat([[o,i]])),s.items[i],t);if(typeof l=="number")i=l-1;else{if(l===Tf)return Tf;l===rS&&(s.items.splice(i,1),i-=1)}}typeof n=="function"&&o==="key"&&(n=n(e,r))}}return typeof n=="function"?n(e,r):n}const Ud="\uFEFF",Yd="",Ld="",yi="",_7=r=>!!r&&"items"in r,C7=r=>!!r&&(r.type==="scalar"||r.type==="single-quoted-scalar"||r.type==="double-quoted-scalar"||r.type==="block-scalar");function T7(r){switch(r){case Ud:return"<BOM>";case Yd:return"<DOC>";case Ld:return"<FLOW_END>";case yi:return"<SCALAR>";default:return JSON.stringify(r)}}function oS(r){switch(r){case Ud:return"byte-order-mark";case Yd:return"doc-mode";case Ld:return"flow-error-end";case yi:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
199
- `:case`\r
200
- `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(r[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const Q7=Object.freeze(Object.defineProperty({__proto__:null,BOM:Ud,DOCUMENT:Yd,FLOW_END:Ld,SCALAR:yi,createScalarToken:k7,isCollection:_7,isScalar:C7,prettyToken:T7,resolveAsScalar:w7,setScalarValue:S7,stringify:P7,tokenType:oS,visit:Qo},Symbol.toStringTag,{value:"Module"}));function Wt(r){switch(r){case void 0:case" ":case`
201
- `:case"\r":case" ":return!0;default:return!1}}const vy="0123456789ABCDEFabcdef".split(""),E7="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Lu=",[]{}".split(""),N7=` ,[]{}
202
- \r `.split(""),Hu=r=>!r||N7.includes(r);class sS{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return!t||t==="#"||t===`
203
- `?!0:t==="\r"?this.buffer[e+1]===`
204
- `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===" ";)t=this.buffer[++n+e];if(t==="\r"){const o=this.buffer[n+e+1];if(o===`
205
- `||!o&&!this.atEnd)return e+n+1}return t===`
206
- `||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t==="-"||t==="."){const n=this.buffer.substr(e,3);if((n==="---"||n==="...")&&Wt(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
207
- `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===Ud&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let t=e.length;const n=e.indexOf("#");if(n!==-1){const s=e[n-1];(s===" "||s===" ")&&(t=n-1)}for(;;){const s=e[t-1];if(s===" "||s===" ")t-=1;else break}const o=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield Yd,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const t=this.peek(3);if(t==="---"&&Wt(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(t==="..."&&Wt(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Wt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&Wt(t)){const n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Hu),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((n!==-1&&n<this.indentNext&&o[0]!=="#"||n===0&&(o.startsWith("---")||o.startsWith("..."))&&Wt(o[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield Ld,yield*this.parseLineStart();let s=0;for(;o[s]===",";)s+=yield*this.pushCount(1),s+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s+=yield*this.pushIndicators(),o[s]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-s),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Hu),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const i=this.charAt(1);if(this.flowKey||Wt(i)||i===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;t!==-1&&this.buffer[t+1]==="'";)t=this.buffer.indexOf("'",t+2);else for(;t!==-1;){let s=0;for(;this.buffer[t-1-s]==="\\";)s+=1;if(s%2===0)break;t=this.buffer.indexOf('"',t+1)}const n=this.buffer.substring(0,t);let o=n.indexOf(`
208
- `,this.pos);if(o!==-1){for(;o!==-1;){const s=this.continueScalar(o+1);if(s===-1)break;o=n.indexOf(`
209
- `,s)}o!==-1&&(t=o-(n[o-1]==="\r"?2:1))}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if(t==="+")this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil(t=>Wt(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,n;e:for(let o=this.pos;n=this.buffer[o];++o)switch(n){case" ":t+=1;break;case`
210
- `:e=o,t=0;break;case"\r":{const s=this.buffer[o+1];if(!s&&!this.atEnd)return this.setNext("block-scalar");if(s===`
211
- `)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext+=this.blockScalarIndent;do{const o=this.continueScalar(e+1);if(o===-1)break;e=this.buffer.indexOf(`
212
- `,o)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}if(!this.blockScalarKeep)do{let o=e-1,s=this.buffer[o];s==="\r"&&(s=this.buffer[--o]);const i=o;for(;s===" "||s===" ";)s=this.buffer[--o];if(s===`
213
- `&&o>=this.pos&&o+1+t>i)e=o;else break}while(!0);return yield yi,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1,n=this.pos-1,o;for(;o=this.buffer[++n];)if(o===":"){const s=this.buffer[n+1];if(Wt(s)||e&&s===",")break;t=n}else if(Wt(o)){let s=this.buffer[n+1];if(o==="\r"&&(s===`
214
- `?(n+=1,o=`
215
- `,s=this.buffer[n+1]):t=n),s==="#"||e&&Lu.includes(s))break;if(o===`
216
- `){const i=this.continueScalar(n+1);if(i===-1)break;n=Math.max(n,i-2)}}else{if(e&&Lu.includes(o))break;t=n}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield yi,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Hu))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(Wt(t)||e&&Lu.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!Wt(t)&&t!==">";)t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(E7.includes(t))t=this.buffer[++e];else if(t==="%"&&vy.includes(this.buffer[e+1])&&vy.includes(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
217
- `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
218
- `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===" "||e&&n===" ");const o=t-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=t),o}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class aS{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){const s=t+n>>1;this.lineStarts[s]<e?t=s+1:n=s}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};const o=this.lineStarts[t-1];return{line:t,col:e-o+1}}}}function sr(r,e){for(let t=0;t<r.length;++t)if(r[t].type===e)return!0;return!1}function wy(r){for(let e=0;e<r.length;++e)switch(r[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function iS(r){switch(r==null?void 0:r.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Al(r){switch(r.type){case"document":return r.start;case"block-map":{const e=r.items[r.items.length-1];return e.sep??e.start}case"block-seq":return r.items[r.items.length-1].start;default:return[]}}function Lo(r){var e;if(r.length===0)return[];let t=r.length;e:for(;--t>=0;)switch(r[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((e=r[++t])==null?void 0:e.type)==="space";);return r.splice(t,r.length)}function ky(r){if(r.start.type==="flow-seq-start")for(const e of r.items)e.sep&&!e.value&&!sr(e.start,"explicit-key-ind")&&!sr(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,iS(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}class Vm{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new sS,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const t=oS(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const n=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else{const n=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in n?n.indent:0:t.type==="flow-collection"&&n.type==="document"&&(t.indent=0),t.type==="flow-collection"&&ky(t),n.type){case"document":n.value=t;break;case"block-scalar":n.props.push(t);break;case"block-map":{const o=n.items[n.items.length-1];if(o.value){n.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=t;else{Object.assign(o,{key:t,sep:[]}),this.onKeyLine=!sr(o.start,"explicit-key-ind");return}break}case"block-seq":{const o=n.items[n.items.length-1];o.value?n.items.push({start:[],value:t}):o.value=t;break}case"flow-collection":{const o=n.items[n.items.length-1];!o||o.value?n.items.push({start:[],key:t,sep:[]}):o.sep?o.value=t:Object.assign(o,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const o=t.items[t.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&wy(o.start)===-1&&(t.indent===0||o.start.every(s=>s.type!=="comment"||s.indent<t.indent))&&(n.type==="document"?n.end=o.start:n.items.push({start:o.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{wy(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const t=Al(this.peek(2)),n=Lo(t);let o;e.end?(o=e.end,o.push(this.sourceToken),delete e.end):o=[this.sourceToken];const s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf(`
219
- `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
220
- `,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var t;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const o="end"in n.value?n.value.end:void 0,s=Array.isArray(o)?o[o.length-1]:void 0;(s==null?void 0:s.type)==="comment"?o==null||o.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){const o=e.items[e.items.length-2],s=(t=o==null?void 0:o.value)==null?void 0:t.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const o=!this.onKeyLine&&this.indent===e.indent&&n.sep&&this.type!=="seq-item-ind";let s=[];if(o&&n.sep&&!n.value){const i=[];for(let l=0;l<n.sep.length;++l){const c=n.sep[l];switch(c.type){case"newline":i.push(l);break;case"space":break;case"comment":c.indent>e.indent&&(i.length=0);break;default:i.length=0}}i.length>=2&&(s=n.sep.splice(i[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(s.push(this.sourceToken),e.items.push({start:s}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!sr(n.start,"explicit-key-ind")?n.start.push(this.sourceToken):o||n.value?(s.push(this.sourceToken),e.items.push({start:s})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(sr(n.start,"explicit-key-ind"))if(n.sep)if(n.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(sr(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(iS(n.key)&&!sr(n.sep,"newline")){const i=Lo(n.start),l=n.key,c=n.sep;c.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:l,sep:c}]})}else s.length>0?n.sep=n.sep.concat(s,this.sourceToken):n.sep.push(this.sourceToken);else if(sr(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const i=Lo(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?e.items.push({start:s,key:null,sep:[this.sourceToken]}):sr(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);o||n.value?(e.items.push({start:s,key:i,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(i):(Object.assign(n,{key:i,sep:[]}),this.onKeyLine=!0);return}default:{const i=this.startBlockValue(e);if(i){o&&i.type!=="block-seq"&&sr(n.start,"explicit-key-ind")&&e.items.push({start:s}),this.stack.push(i);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var t;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){const o="end"in n.value?n.value.end:void 0,s=Array.isArray(o)?o[o.length-1]:void 0;(s==null?void 0:s.type)==="comment"?o==null||o.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){const o=e.items[e.items.length-2],s=(t=o==null?void 0:o.value)==null?void 0:t.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;n.value||sr(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>e.indent){const o=this.startBlockValue(e);if(o){this.stack.push(o);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n&&n.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:o,sep:[]}):t.sep?this.stack.push(o):Object.assign(t,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===e.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){const o=Al(n),s=Lo(o);ky(e);const i=e.end.splice(1,e.end.length);i.push(this.sourceToken);const l={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
221
- `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
222
- `,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=Al(e),n=Lo(t);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n}]}}case"map-value-ind":{this.onKeyLine=!0;const t=Al(e),n=Lo(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function lS(r){const e=r.prettyErrors!==!1;return{lineCounter:r.lineCounter||e&&new aS||null,prettyErrors:e}}function A7(r,e={}){const{lineCounter:t,prettyErrors:n}=lS(e),o=new Vm(t==null?void 0:t.addNewLine),s=new Rm(e),i=Array.from(s.compose(o.parse(r)));if(n&&t)for(const l of i)l.errors.forEach(Wc(r,t)),l.warnings.forEach(Wc(r,t));return i.length>0?i:Object.assign([],{empty:!0},s.streamInfo())}function cS(r,e={}){const{lineCounter:t,prettyErrors:n}=lS(e),o=new Vm(t==null?void 0:t.addNewLine),s=new Rm(e);let i=null;for(const l of s.compose(o.parse(r),!0,r.length))if(!i)i=l;else if(i.options.logLevel!=="silent"){i.errors.push(new go(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&t&&(i.errors.forEach(Wc(r,t)),i.warnings.forEach(Wc(r,t))),i}function R7(r,e,t){let n;typeof e=="function"?n=e:t===void 0&&e&&typeof e=="object"&&(t=e);const o=cS(r,t);if(!o)return null;if(o.warnings.forEach(s=>Tk(o.options.logLevel,s)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:n},t))}function V7(r,e,t){let n=null;if(typeof e=="function"||Array.isArray(e)?n=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){const o=Math.round(t);t=o<1?void 0:o>8?{indent:8}:{indent:o}}if(r===void 0){const{keepUndefined:o}=t??e??{};if(!o)return}return new ta(r,n,t).toString(t)}const dS=Object.freeze(Object.defineProperty({__proto__:null,Alias:Bd,CST:Q7,Composer:Rm,Document:ta,Lexer:sS,LineCounter:aS,Pair:Tt,Parser:Vm,Scalar:de,Schema:zd,YAMLError:Nm,YAMLMap:Zt,YAMLParseError:go,YAMLSeq:Mn,YAMLWarning:Lk,isAlias:Ro,isCollection:je,isDocument:Gs,isMap:Fs,isNode:ze,isPair:Ie,isScalar:Ee,isSeq:Ks,parse:R7,parseAllDocuments:A7,parseDocument:cS,stringify:V7,visit:Dn,visitAsync:Vd},Symbol.toStringTag,{value:"Module"}));function uS(r){if(Ok(r))return r;if(typeof r=="string")try{return JSON.parse(r)}catch{return dS.parse(r)}return r}function hS(r){if(Ok(r))return r;const e=uS(r);return[{isEntrypoint:!0,specification:e,filename:"openapi.json",dir:"./",references:xM(e)}]}async function B7(r){const e=new Im,t=hS(r),n=await e.validate(t),o=structuredClone(e.specification),s=e.resolveReferences(t);return{valid:n.valid,version:e.version,errors:n.errors,specification:o,schema:s}}const Z7=r=>JSON.stringify(r,null,2),I7=r=>dS.stringify(r);function j7(r){var e;if((e=r.openapi)!=null&&e.startsWith("3.0"))r.openapi="3.1.0";else return r;return r=Tr(r,t=>(t.type!=="undefined"&&t.nullable===!0&&(t.type=["null",t.type],delete t.nullable),t)),r=Tr(r,t=>(t.exclusiveMinimum===!0?(t.exclusiveMinimum=t.minimum,delete t.minimum):t.exclusiveMinimum===!1&&delete t.exclusiveMinimum,t.exclusiveMaximum===!0?(t.exclusiveMaximum=t.maximum,delete t.maximum):t.exclusiveMaximum===!1&&delete t.exclusiveMaximum,t)),r=Tr(r,t=>(t.example!==void 0&&(t.examples={default:t.example},delete t.example),t)),r=Tr(r,t=>{if(t.type==="object"&&t.properties!==void 0)for(const[n,o]of Object.entries(t.properties))o!==void 0&&o.type==="string"&&o.format==="binary"&&(o.contentEncoding="application/octet-stream",delete o.format);return t}),r=Tr(r,t=>{if(!(t.type==="string"&&t.format==="binary"))return t}),r=Tr(r,t=>t.type==="string"&&t.format==="base64"?{type:"string",contentEncoding:"base64"}:t),r}function D7(r){return r}function M7(r){return[D7,j7].reduce((e,t)=>t(e),r)}async function q7(r){const e=new Im,t=hS(r);return{...await e.validate(t),specification:e.specification,version:e.version}}function fS(r){for(const e of new Set(gk)){const t=e==="2.0"?"swagger":"openapi",n=r[t];if(typeof n=="string"&&n.startsWith(e))return{version:e,specificationType:t,specificationVersion:n}}return{version:void 0,specificationType:void 0,specificationVersion:void 0}}function X7(r){return decodeURI(r.replace(/~1/g,"/").replace(/~0/g,"~"))}function pS(r){const e=structuredClone(r);return t(e),t(e),e;function t(n){Object.entries(n??{}).forEach(([o,s])=>{if(n.$ref!==void 0){const i=z7(e,n.$ref);delete n.$ref,typeof i=="object"&&Object.keys(i).forEach(l=>{n[l]===void 0&&(n[l]=i[l])})}typeof s=="object"&&!W7(s)&&t(s)})}}function W7(r){try{return JSON.stringify(r),!1}catch{return!0}}function z7(r,e){if(typeof e!="string")return;const[t,n]=e.split("#",2);if(t)throw new Error(Sf.EXTERNAL_REFERENCE_NOT_SUPPORTED.replace("%s",e));return X7(n).split("/").slice(1).reduce((o,s)=>o[s],r)}const U7="[",Y7="]",L7="{",H7="}",G7=":",F7=",",mS="true",gS="false",OS="null",Sy='"',K7=new Map([["t",mS],["f",gS],["n",OS]]),Qf=new Map([[Sy,Sy],["\\","\\"],["/","/"],["b","\b"],["n",`
223
- `],["f","\f"],["r","\r"],["t"," "]]),Gu=new Map([[U7,"LBracket"],[Y7,"RBracket"],[L7,"LBrace"],[H7,"RBrace"],[G7,"Colon"],[F7,"Comma"],[mS,"Boolean"],[gS,"Boolean"],[OS,"Null"]]);class bi extends Error{constructor(e,{line:t,column:n,offset:o}){super(`${e} (${t}:${n})`),this.line=t,this.column=n,this.offset=o}}class J7 extends bi{constructor(e,t){super(`Unexpected character '${e}' found.`,t)}}class Fu extends bi{constructor(e){super(`Unexpected token ${e.type} found.`,e.loc.start)}}class eq extends bi{constructor(e){super("Unexpected end of input found.",e)}}const $y='"',Py="/",xy="*",tq={mode:"json",ranges:!1};function rq(r){return/[\s\n]/.test(r)}function Sn(r){return r>="0"&&r<="9"}function nq(r){return Sn(r)||/[a-f]/i.test(r)}function oq(r){return r>="1"&&r<="9"}function sq(r){return/[tfn]/.test(r)}function aq(r){return Sn(r)||r==="."||r==="-"}function iq(r,e){e=Object.freeze({...tq,...e});let t=-1,n=1,o=0,s=!1;const i=[];function l(y,b,v,k){const S=v.offset+b.length;let w=e.ranges?{range:[v.offset,S]}:void 0;return{type:y,loc:{start:v,end:k||{line:v.line,column:v.column+b.length,offset:S}},...w}}function c(){let y=r.charAt(++t);return s?(n++,o=1,s=!1):o++,y==="\r"?(s=!0,r.charAt(t+1)===`
224
- `&&t++):y===`
225
- `&&(s=!0),y}function d(){return{line:n,column:o,offset:t}}function u(y){let b=K7.get(y);if(r.slice(t,t+b.length)===b)return t+=b.length-1,o+=b.length-1,{value:b,c:c()};for(let v=1;v<b.length;v++)b[v]!==r.charAt(t+v)&&m(c())}function h(y){let b=y;for(y=c();y&&y!==$y;){if(y==="\\")if(b+=y,y=c(),Qf.has(y))b+=y;else if(y==="u"){b+=y;for(let v=0;v<4;v++)y=c(),nq(y)?b+=y:m(y)}else m(y);else b+=y;y=c()}return y||g(),b+=y,{value:b,c:c()}}function f(y){let b="";if(y==="-"&&(b+=y,y=c(),Sn(y)||m(y)),y==="0")b+=y,y=c(),Sn(y)&&m(y);else{oq(y)||m(y);do b+=y,y=c();while(Sn(y))}if(y===".")do b+=y,y=c();while(Sn(y));if(y==="e"||y==="E")for(b+=y,y=c(),(y==="+"||y==="-")&&(b+=y,y=c()),y||g(),Sn(y)||m(y);Sn(y);)b+=y,y=c();return{value:b,c:y}}function p(y){let b=y;if(y=c(),y==="/"){do b+=y,y=c();while(y&&y!=="\r"&&y!==`
226
- `);return{value:b,c:y}}if(y===xy){for(;y;)if(b+=y,y=c(),y===xy&&(b+=y,y=c(),y===Py))return b+=y,y=c(),{value:b,c:y};g()}m(y)}function m(y){throw new J7(y,d())}function g(){throw new eq(d())}let O=c();for(;t<r.length;){for(;rq(O);)O=c();if(!O)break;const y=d();if(Gu.has(O))i.push(l(Gu.get(O),O,y)),O=c();else if(sq(O)){const b=u(O);let v=b.value;O=b.c,i.push(l(Gu.get(v),v,y))}else if(aq(O)){const b=f(O);let v=b.value;O=b.c,i.push(l("Number",v,y))}else if(O===$y){const b=h(O);let v=b.value;O=b.c,i.push(l("String",v,y))}else if(O===Py&&e.mode==="jsonc"){const b=p(O);let v=b.value;O=b.c,i.push(l(v.startsWith("//")?"LineComment":"BlockComment",v,y,d()))}else m(O)}return i}const Ur={document(r,e={}){return{type:"Document",body:r,...e}},string(r,e={}){return{type:"String",value:r,...e}},number(r,e={}){return{type:"Number",value:r,...e}},boolean(r,e={}){return{type:"Boolean",value:r,...e}},null(r={}){return{type:"Null",...r}},array(r,e={}){return{type:"Array",elements:r,...e}},element(r,e={}){return{type:"Element",value:r,...e}},object(r,e={}){return{type:"Object",members:r,...e}},member(r,e,t={}){return{type:"Member",name:r,value:e,...t}}},lq={mode:"json",ranges:!1,tokens:!1};function cq(r,e){let t="",n=r.indexOf("\\"),o=0;for(;n>=0;){t+=r.slice(o,n);const s=r.charAt(n+1);if(Qf.has(s))t+=Qf.get(s),o=n+2;else if(s==="u"){const i=r.slice(n+2,n+6);if(i.length<4||/[^0-9a-f]/i.test(i))throw new bi(`Invalid unicode escape \\u${i}.`,{line:e.loc.start.line,column:e.loc.start.column+n,offset:e.loc.start.offset+n});t+=String.fromCharCode(parseInt(i,16)),o=n+6}else throw new bi(`Invalid escape \\${s}.`,{line:e.loc.start.line,column:e.loc.start.column+n,offset:e.loc.start.offset+n});n=r.indexOf("\\",o)}return t+=r.slice(o),t}function dq(r,e){switch(e.type){case"Boolean":return r==="true";case"Number":return Number(r);case"String":return cq(r.slice(1,-1),e);default:throw new TypeError(`Unknown token type "${e.type}.`)}}function uq(r,e){e=Object.freeze({...lq,...e});const t=iq(r,{mode:e.mode,ranges:e.ranges});let n=0;function o(){return t[n++]}function s(){const b=t[n++];return b&&b.type.endsWith("Comment")?s():b}const i=e.mode==="jsonc"?s:o;function l(b,v){if(!b||b.type!==v)throw new Fu(b)}function c(b,v){return e.ranges?{range:[b.offset,v.offset]}:void 0}function d(b){const v=c(b.loc.start,b.loc.end),k=dq(r.slice(b.loc.start.offset,b.loc.end.offset),b),S={loc:{start:{...b.loc.start},end:{...b.loc.end}},...v};switch(b.type){case"String":return Ur.string(k,S);case"Number":return Ur.number(k,S);case"Boolean":return Ur.boolean(k,S);default:throw new TypeError(`Unknown token type ${b.type}.`)}}function u(b){const v=c(b.loc.start,b.loc.end);return Ur.null({loc:{start:{...b.loc.start},end:{...b.loc.end}},...v})}function h(b){l(b,"String");const v=d(b);b=i(),l(b,"Colon");const k=m(),S=c(v.loc.start,k.loc.end);return Ur.member(v,k,{loc:{start:{...v.loc.start},end:{...k.loc.end}},...S})}function f(b){l(b,"LBrace");const v=[];let k=i();if(k&&k.type!=="RBrace")do if(v.push(h(k)),k=i(),k.type==="Comma")k=i();else break;while(k);l(k,"RBrace");const S=c(b.loc.start,k.loc.end);return Ur.object(v,{loc:{start:{...b.loc.start},end:{...k.loc.end}},...S})}function p(b){l(b,"LBracket");const v=[];let k=i();if(k&&k.type!=="RBracket")do{const w=m(k);if(v.push(Ur.element(w,{loc:w.loc})),k=i(),k.type==="Comma")k=i();else break}while(k);l(k,"RBracket");const S=c(b.loc.start,k.loc.end);return Ur.array(v,{loc:{start:{...b.loc.start},end:{...k.loc.end}},...S})}function m(b){switch(b=b||i(),b.type){case"String":case"Boolean":case"Number":return d(b);case"Null":return u(b);case"LBrace":return f(b);case"LBracket":return p(b);default:throw new Fu(b)}}const g=m(),O=i();if(O)throw new Fu(O);const y={loc:{start:{line:1,column:1,offset:0},end:{...g.loc.end}}};return e.tokens&&(y.tokens=t),e.ranges&&(y.range=[y.loc.start.offset,y.loc.end.offset]),Ur.document(g,y)}const hq=r=>e=>r===e,fq=r=>e=>!r(e),pq=r=>Object.values(r),mq=r=>r!==void 0,Bm=r=>e=>e.keyword===r,gq=Bm("required"),Oq=Bm("anyOf"),yS=Bm("enum"),Va=r=>r&&r.errors||[],bS=r=>r&&pq(r.children)||[],yq=r=>e=>bS(r).filter(fq(hq(e))),_y=r=>e=>e.reduce((t,n)=>t.concat(n),r),vS=r=>{const e=r.split("/").slice(1);for(const t in e)e[t]=e[t].split("~1").join("/").split("~0").join("~");return e};function bq(r,e,t){const n=vS(e),o=n.length-1;return n.reduce((s,i,l)=>{switch(s==null?void 0:s.type){case"Object":{const c=s.members.filter(h=>h.name.value===i);if(c.length!==1)throw new Error(`Couldn't find property ${i} of ${e}`);const{name:d,value:u}=c[0];return t&&l===o?d:u}case"Array":return s.elements[i];default:if(s.loc)return s}},r.body)}function vq(r){if(!r||!r.elements)return"";const e=r.elements.filter(t=>t&&t.name&&t.name.value==="type");return e.length&&e[0].value&&`:${e[0].value.value}`||""}function wq(r,e){let t="";return vS(e).reduce((n,o)=>{switch(n==null?void 0:n.type){case"Object":{t+=`/${o}`;const s=n.members.filter(i=>i.name.value===o);if(s.length!==1)throw new Error(`Couldn't find property ${o} of ${e}`);return s[0].value}case"Array":return t+=`/${o}${vq(n.elements[o])}`,n.elements[o]}},r.body),t}class ra{constructor(e={isIdentifierLocation:!1},{colorize:t,data:n,schema:o,jsonAst:s,jsonRaw:i}){this.options=e,this.colorize=!!(t||t===void 0),this.data=n,this.schema=o,this.jsonAst=s,this.jsonRaw=i}getChalk(){return this.colorize?chalk:new chalk.Instance({level:0})}getLocation(e=this.instancePath){const{isIdentifierLocation:t,isSkipEndLocation:n}=this.options,{loc:o}=bq(this.jsonAst,e,t);return{start:o.start,end:n?void 0:o.end}}getDecoratedPath(e=this.instancePath){return wq(this.jsonAst,e)}getCodeFrame(e,t=this.instancePath){return codeFrameColumns(this.jsonRaw,this.getLocation(t),{highlightCode:!1,message:e})}get instancePath(){return typeof this.options.instancePath<"u"?this.options.instancePath:this.options.dataPath}print(){throw new Error(`Implement the 'print' method inside ${this.constructor.name}!`)}getError(){throw new Error(`Implement the 'getError' method inside ${this.constructor.name}!`)}}class kq extends ra{constructor(...e){super(...e),this.name="AdditionalPropValidationError",this.options.isIdentifierLocation=!0}print(){const{message:e,params:t}=this.options,n=this.getChalk();return[n`{red {bold ADDITIONAL PROPERTY} ${e}}\n`].concat(this.getCodeFrame(n`😲 {magentaBright ${t.additionalProperty}} is not expected to be here!`,`${this.instancePath}/${t.additionalProperty}`))}getError(){const{params:e}=this.options;return{...this.getLocation(`${this.instancePath}/${e.additionalProperty}`),error:`${this.getDecoratedPath()} Property ${e.additionalProperty} is not expected to be here`,path:this.instancePath}}}class Sq extends ra{constructor(...e){super(...e),this.name="DefaultValidationError",this.options.isSkipEndLocation=!0}print(){const{keyword:e,message:t}=this.options,n=this.getChalk();return[n`{red {bold ${e.toUpperCase()}} ${t}}\n`].concat(this.getCodeFrame(n`👈🏽 {magentaBright ${e}} ${t}`))}getError(){const{keyword:e,message:t}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()}: ${e} ${t}`,path:this.instancePath}}}var Hd={},$q=/~/,Pq=/~[01]/g;function xq(r){switch(r){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+r)}function wS(r){return $q.test(r)?r.replace(Pq,xq):r}function _q(r,e,t){for(var n,o,s=1,i=e.length;s<i;){if(e[s]==="constructor"||e[s]==="prototype"||e[s]==="__proto__")return r;if(n=wS(e[s++]),o=i>s,typeof r[n]>"u"&&(Array.isArray(r)&&n==="-"&&(n=r.length),o&&(e[s]!==""&&e[s]<1/0||e[s]==="-"?r[n]=[]:r[n]={})),!o)break;r=r[n]}var l=r[n];return t===void 0?delete r[n]:r[n]=t,l}function Zm(r){if(typeof r=="string"){if(r=r.split("/"),r[0]==="")return r;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(r)){for(const e of r)if(typeof e!="string"&&typeof e!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return r}throw new Error("Invalid JSON pointer.")}function kS(r,e){if(typeof r!="object")throw new Error("Invalid input object.");e=Zm(e);var t=e.length;if(t===1)return r;for(var n=1;n<t;){if(r=r[wS(e[n++])],t===n)return r;if(typeof r!="object"||r===null)return}}function SS(r,e,t){if(typeof r!="object")throw new Error("Invalid input object.");if(e=Zm(e),e.length===0)throw new Error("Invalid JSON pointer for set.");return _q(r,e,t)}function Cq(r){var e=Zm(r);return{get:function(t){return kS(t,e)},set:function(t,n){return SS(t,e,n)}}}Hd.get=kS;Hd.set=SS;Hd.compile=Cq;const Ku=[],Cy=[];function Tq(r,e){if(r===e)return 0;const t=r;r.length>e.length&&(r=e,e=t);let n=r.length,o=e.length;for(;n>0&&r.charCodeAt(~-n)===e.charCodeAt(~-o);)n--,o--;let s=0;for(;s<n&&r.charCodeAt(s)===e.charCodeAt(s);)s++;if(n-=s,o-=s,n===0)return o;let i,l,c,d,u=0,h=0;for(;u<n;)Cy[u]=r.charCodeAt(s+u),Ku[u]=++u;for(;h<o;)for(i=e.charCodeAt(s+h),c=h++,l=h,u=0;u<n;u++)d=i===Cy[u]?c:c+1,c=Ku[u],l=Ku[u]=c>l?d>l?l+1:d:d>c?c+1:d;return l}class Qq extends ra{constructor(...e){super(...e),this.name="EnumValidationError"}print(){const{message:e,params:{allowedValues:t}}=this.options,n=this.getChalk(),o=this.findBestMatch();return[n`{red {bold ENUM} ${e}}`,n`{red (${t.join(", ")})}\n`].concat(this.getCodeFrame(o!==null?n`👈🏽 Did you mean {magentaBright ${o}} here?`:n`👈🏽 Unexpected value, should be equal to one of the allowed values`))}getError(){const{message:e,params:t}=this.options,n=this.findBestMatch(),o=t.allowedValues.join(", "),s={...this.getLocation(),error:`${this.getDecoratedPath()} ${e}: ${o}`,path:this.instancePath};return n!==null&&(s.suggestion=`Did you mean ${n}?`),s}findBestMatch(){const{params:{allowedValues:e}}=this.options,t=this.instancePath===""?this.data:Hd.get(this.data,this.instancePath);if(!t)return null;const n=e.map(o=>({value:o,weight:Tq(o,t.toString())})).sort((o,s)=>o.weight>s.weight?1:o.weight<s.weight?-1:0)[0];return e.length===1||n.weight<n.value.length?n.value:null}}class Eq extends ra{constructor(...e){super(...e),this.name="PatternValidationError",this.options.isIdentifierLocation=!0}print(){const{message:e,params:t,propertyName:n}=this.options,o=this.getChalk();return[o`{red {bold PROPERTY} ${e}}\n`].concat(this.getCodeFrame(o`😲 must match pattern {magentaBright ${t.pattern}}`,`${this.instancePath}/${n}`))}getError(){const{params:e,propertyName:t}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()} Property "${t}" must match pattern ${e.pattern}`,path:this.instancePath}}}class Nq extends ra{constructor(...e){super(...e),this.name="RequiredValidationError"}getLocation(e=this.instancePath){const{start:t}=super.getLocation(e);return{start:t}}print(){const{message:e,params:t}=this.options,n=this.getChalk();return[n`{red {bold REQUIRED} ${e}}\n`].concat(this.getCodeFrame(n`☹️ {magentaBright ${t.missingProperty}} is missing here!`))}getError(){const{message:e}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()} ${e}`,path:this.instancePath}}}class Aq extends ra{constructor(...e){super(...e),this.name="UnevaluatedPropValidationError",this.options.isIdentifierLocation=!0}print(){const{message:e,params:t}=this.options,n=this.getChalk();return[n`{red {bold UNEVALUATED PROPERTY} ${e}}\n`].concat(this.getCodeFrame(n`😲 {magentaBright ${t.unevaluatedProperty}} is not expected to be here!`,`${this.instancePath}/${t.unevaluatedProperty}`))}getError(){const{params:e}=this.options;return{...this.getLocation(`${this.instancePath}/${e.unevaluatedProperty}`),error:`${this.getDecoratedPath()} Property ${e.unevaluatedProperty} is not expected to be here`,path:this.instancePath}}}const Rq=/\/[\w_-]+(\/\d+)?/g;function Vq(r=[]){const e={children:{}};return r.forEach(t=>{const n=typeof t.instancePath<"u"?t.instancePath:t.dataPath,o=n===""?[""]:n.match(Rq);o&&o.reduce((s,i,l)=>(s.children[i]=s.children[i]||{children:{},errors:[]},l===o.length-1&&s.children[i].errors.push(t),s.children[i]),e)}),e}function $S(r,e,t){Va(r).forEach(n=>{gq(n)&&(r.errors=[n],r.children={})}),Va(r).some(Oq)&&Object.keys(r.children).length>0&&delete r.errors,r.errors&&r.errors.length&&Va(r).every(yS)&&yq(e)(r).filter(mq).some(Va)&&delete e.children[t],Object.entries(r.children).forEach(([n,o])=>$S(o,r,n))}function PS(r,e){const t=Va(r);if(t.length&&t.every(yS)){const n=[...new Set(_y([])(t.map(s=>s.params.allowedValues)))],o=t[0];return[new Qq({...o,params:{allowedValues:n}},e)]}return _y(t.reduce((n,o)=>{switch(o.keyword){case"additionalProperties":return n.concat(new kq(o,e));case"pattern":return n.concat(new Eq(o,e));case"required":return n.concat(new Nq(o,e));case"unevaluatedProperties":return n.concat(new Aq(o,e));default:return n.concat(new Sq(o,e))}},[]))(bS(r).map(n=>PS(n,e)))}function Bq(r,e){const t=Vq(r||[]);return $S(t),PS(t,e)}function Zq(r,e,t,n={}){const{colorize:o=!0,format:s="cli",indent:i=null,json:l=null}=n,c=l||JSON.stringify(e,null,i),d=uq(c),u=p=>p.print().join(`
227
- `),h=p=>p.getError(),f=Bq(t,{colorize:o,data:e,schema:r,jsonAst:d,jsonRaw:c});return s==="cli"?f.map(u).join(`
228
-
229
- `):f.map(h)}function Ba(r,e){return typeof e=="string"?[{start:{line:1,column:1,offset:0},error:e,path:""}]:Zq(r,null,e,{format:"js",indent:2,colorize:!1}).map(t=>(t.error=t.error.trim(),t))}function Iq(r){try{return pS(r),{valid:!0}}catch(e){return{valid:!1,errors:Ba(r,e.message)}}}class Im{constructor(){yn(this,"version"),yn(this,"ajvValidators",{}),yn(this,"externalRefs",{}),yn(this,"errors"),yn(this,"specificationVersion"),yn(this,"specificationType"),yn(this,"specification")}resolveReferences(e){return pS(e.find(t=>t.isEntrypoint===!0).specification)}async validate(e){var t;const n=e.find(s=>s.isEntrypoint),o=n==null?void 0:n.specification;this.specification=o,(t=this.specification)!=null&&t.info&&!this.specification.info.version&&(this.specification.info.version="0.0.1");try{if(o==null)return{valid:!1,errors:Ba(n,Sf.EMPTY_OR_INVALID)};Object.keys(this.externalRefs).length>0&&(o[$M]=this.externalRefs);const{version:s,specificationType:i,specificationVersion:l}=fS(o);if(this.version=s,this.specificationVersion=l,this.specificationType=i,!s)return{valid:!1,errors:Ba(n,Sf.OPENAPI_VERSION_NOT_SUPPORTED)};const c=await this.getAjvValidator(s);return c(o)?Iq(n.specification):c.errors&&c.errors.length>0?{valid:!1,errors:Ba(n,c.errors)}:{valid:!1}}catch(s){return{valid:!1,errors:Ba(n,s.message??s)}}}async getAjvValidator(e){if(this.ajvValidators[e])return this.ajvValidators[e];const t=await RB(Object.assign({"../../../schemas/v2.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BQQoKgNw-CyFt8nZw.cjs")),"../../../schemas/v3.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BjykgtPd-C_N_PTsi.cjs")),"../../../schemas/v3.1/schema.json":()=>Promise.resolve().then(()=>require("./schema-ZROhtp0X-DL6m5HXA.cjs"))}),`../../../schemas/v${e}/schema.json`),n=SM[t.$schema],o=new n({strict:!1});return Cj(o),e==="3.1"&&o.addFormat("media-range",!0),this.ajvValidators[e]=o.compile(t)}}yn(Im,"supportedVersions",gk);function jq(){return{load:Dq}}function Dq(r){const e=uS(r);return{get:()=>e,details:()=>Fd(e),filter:t=>Xi(e,t),upgrade:()=>xS(e),validate:()=>jm(e),resolve:()=>Gd(e),toJson:()=>Wi(e),toYaml:()=>zi(e)}}function xS(r){const e=M7(r);return{get:()=>e,details:()=>Fd(e),filter:t=>Xi(e,t),validate:()=>jm(e),resolve:()=>Gd(e),toJson:()=>Wi(e),toYaml:()=>zi(e)}}async function jm(r){return{...await q7(r),filter:e=>Xi(r,e),get:()=>r,details:()=>Fd(r),resolve:()=>Gd(r),toJson:()=>Wi(r),toYaml:()=>zi(r)}}async function Gd(r){return{...await B7(r),filter:e=>Xi(r,e),toJson:()=>Wi(r),toYaml:()=>zi(r)}}function Xi(r,e){const t=PM(r,e);return{get:()=>t,details:()=>Fd(t),filter:()=>Xi(t,e),upgrade:()=>xS(t),validate:()=>jm(t),resolve:()=>Gd(t),toJson:()=>Wi(t),toYaml:()=>zi(t)}}function Fd(r){return fS(r)}function Wi(r){return Z7(r)}function zi(r){return I7(r)}const _S=r=>new Promise(async(e,t)=>{var n;try{const{schema:o,errors:s}=await jq().load(r).resolve();if(s!=null&&s.length&&console.warn(`Please open an issue on https://github.com/scalar/scalar
230
- `,`Scalar OpenAPI Parser Warning:
231
- `,s),o===void 0){t(((n=s==null?void 0:s[0])==null?void 0:n.error)??"Failed to parse the OpenAPI file.");return}e(Mq(structuredClone(o)))}catch(o){t(o)}}),Mq=r=>{r.tags||(r.tags=[]),r.paths||(r.paths={});const e={};return Object.keys(r.webhooks??{}).forEach(n=>{var o;Object.keys(((o=r.webhooks)==null?void 0:o[n])??{}).forEach(s=>{var l,c,d;const i=((l=r.webhooks)==null?void 0:l[n])[s];e[n]===void 0&&(e[n]={}),e[n][s]={httpVerb:s,path:n,operationId:(i==null?void 0:i.operationId)||n,name:(i==null?void 0:i.summary)||n||"",description:(i==null?void 0:i.description)||"",pathParameters:(d=(c=r.paths)==null?void 0:c[n])==null?void 0:d.parameters,information:{...i}}})}),Object.keys(r.paths).forEach(n=>{Object.keys(r.paths[n]).filter(s=>sb.includes(s.toUpperCase())).forEach(s=>{var c,d,u,h,f,p;const i=r.paths[n][s],l={httpVerb:s,path:n,operationId:i.operationId||n,name:i.summary||n||"",description:i.description||"",information:{...i},pathParameters:(d=(c=r.paths)==null?void 0:c[n])==null?void 0:d.parameters};if(!i.tags||i.tags.length===0){(u=r.tags)!=null&&u.find(g=>g.name==="default")||(h=r.tags)==null||h.push({name:"default",description:"",operations:[]});const m=(f=r.tags)==null?void 0:f.findIndex(g=>g.name==="default");m>=0&&((p=r.tags[m])==null||p.operations.push(l))}else i.tags.forEach(m=>{var y,b,v;const g=(y=r.tags)==null?void 0:y.findIndex(k=>k.name===m);g===-1&&((b=r.tags)==null||b.push({name:m,description:""}));const O=g!==-1?g:r.tags.length-1;typeof((v=r.tags[O])==null?void 0:v.operations)>"u"&&(r.tags[O].operations=[]),r.tags[O].operations.push(l)})})}),r.tags.forEach((n,o)=>{var i;const s=n["x-displayName"];s&&((i=r.tags)!=null&&i[o])&&(r.tags[o].name=s)}),{...r,webhooks:e}},Kd=Symbol(),Dm=Symbol(),vi=async r=>{var e;(e=document.getElementById(r))==null||e.scrollIntoView()},Dr=r=>new Promise(e=>setTimeout(e,r)),qq=Symbol("downloadSpec"),Mm=De.useEventBus(qq);function CS(r,e){const t=cc(r),n=t?new Blob([r],{type:"application/json"}):new Blob([r],{type:"application/x-yaml"}),o=URL.createObjectURL(n),s=t?".json":".yaml",i="spec"+s,l=e?e+s:i,c=document.createElement("a");c.href=o,c.download=l,c.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(o),c.remove()},100)}function TS(r,e=1){const t=new RegExp(`^(?=#{${e}} )`,"m");return r.split(t).map(n=>n.trim()).filter(Boolean)}var Xq=Object.defineProperty,Wq=(r,e,t)=>e in r?Xq(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,gt=(r,e,t)=>(Wq(r,typeof e!="symbol"?e+"":e,t),t);function zq(r){if(!r||typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css",e.appendChild(t),t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}zq("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;will-change:transform,opacity,height;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:20px;width:20px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;transition:opacity .4s,box-shadow .2s;z-index:100}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;opacity:0;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]{opacity:1}[data-sonner-toast]:focus [data-close-button]{opacity:1}[data-sonner-toast]:focus-within [data-close-button]{opacity:1}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:'';position:absolute;left:0;right:0;height:100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{display:none;transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}");let Ef=1;class Uq{constructor(){gt(this,"subscribers"),gt(this,"toasts"),gt(this,"subscribe",e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)})),gt(this,"publish",e=>{this.subscribers.forEach(t=>t(e))}),gt(this,"addToast",e=>{this.publish(e),this.toasts=[...this.toasts,e]}),gt(this,"create",e=>{var t;const{message:n,...o}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Ef++,i=this.toasts.findIndex(c=>c.id===s),l=e.dismissible===void 0?!0:e.dismissible;return i!==-1?this.toasts=this.toasts.map(c=>c.id===s?(this.publish({...c,...e,id:s,title:n}),{...c,...e,id:s,dismissible:l,title:n}):c):this.addToast({title:n,...o,dismissible:l,id:s}),s}),gt(this,"dismiss",e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e)),gt(this,"message",(e,t)=>this.create({...t,message:e})),gt(this,"error",(e,t)=>this.create({...t,type:"error",message:e})),gt(this,"success",(e,t)=>this.create({...t,type:"success",message:e})),gt(this,"info",(e,t)=>this.create({...t,type:"info",message:e})),gt(this,"warning",(e,t)=>this.create({...t,type:"warning",message:e})),gt(this,"loading",(e,t)=>this.create({...t,type:"loading",message:e})),gt(this,"promise",(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading}));const o=e instanceof Promise?e:e();let s=n!==void 0;return o.then(i=>{if(t.success!==void 0){s=!1;const l=typeof t.success=="function"?t.success(i):t.success;this.create({id:n,type:"success",message:l})}}).catch(i=>{if(t.error!==void 0){s=!1;const l=typeof t.error=="function"?t.error(i):t.error;this.create({id:n,type:"error",message:l})}}).finally(()=>{var i;s&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n}),gt(this,"custom",(e,t)=>{const n=(t==null?void 0:t.id)||Ef++;return this.publish({...t,id:n,title:e}),n}),this.subscribers=[],this.toasts=[]}}const ar=new Uq,Yq=(r,e)=>{const t=(e==null?void 0:e.id)||Ef++;return ar.publish({title:r,...e,id:t}),t},Lq=Yq,Rl=Object.assign(Lq,{success:ar.success,info:ar.info,warning:ar.warning,error:ar.error,custom:ar.custom,message:ar.message,promise:ar.promise,dismiss:ar.dismiss,loading:ar.loading}),Hq=["data-visible"],Gq={className:"sonner-spinner"},Fq=a.defineComponent({__name:"Loader",props:{visible:Boolean},setup(r){const e=Array(12).fill(0);return(t,n)=>(a.openBlock(),a.createElementBlock("div",{className:"sonner-loading-wrapper","data-visible":r.visible},[a.createElementVNode("div",Gq,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(e),o=>(a.openBlock(),a.createElementBlock("div",{key:`spinner-bar-${o}`,className:"sonner-loading-bar"}))),128))])],8,Hq))}}),Ui=(r,e)=>{const t=r.__vccOpts||r;for(const[n,o]of e)t[n]=o;return t},Kq={},Jq={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e8=a.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1),t8=[e8];function r8(r,e){return a.openBlock(),a.createElementBlock("svg",Jq,t8)}const n8=Ui(Kq,[["render",r8]]),o8={},s8={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},a8=a.createElementVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"},null,-1),i8=[a8];function l8(r,e){return a.openBlock(),a.createElementBlock("svg",s8,i8)}const c8=Ui(o8,[["render",l8]]),d8={},u8={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},h8=a.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"},null,-1),f8=[h8];function p8(r,e){return a.openBlock(),a.createElementBlock("svg",u8,f8)}const m8=Ui(d8,[["render",p8]]),g8={},O8={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},y8=a.createElementVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1),b8=[y8];function v8(r,e){return a.openBlock(),a.createElementBlock("svg",O8,b8)}const w8=Ui(g8,[["render",v8]]),k8={},S8={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},$8=a.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),P8=a.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1),x8=[$8,P8];function _8(r,e){return a.openBlock(),a.createElementBlock("svg",S8,x8)}const C8=Ui(k8,[["render",_8]]),T8=["aria-live","data-styled","data-mounted","data-promise","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-type","data-invert","data-swipe-out","data-expanded"],Q8=["data-disabled"],E8={key:1,"data-icon":""},N8={"data-content":""},A8={"data-title":""},R8=4e3,V8=14,B8=20,Z8=200,I8=a.defineComponent({__name:"Toast",props:{toast:{},toasts:{},index:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},duration:{},descriptionClass:{}},emits:["update:heights","removeToast"],setup(r,{emit:e}){const t=A=>!!A.promise,n=e,o=r,s=a.ref(!1),i=a.ref(!1),l=a.ref(!1),c=a.ref(!1),d=a.ref(null),u=a.ref(0),h=a.ref(0),f=a.ref(null),p=a.ref(null),m=a.computed(()=>o.index===0),g=a.computed(()=>o.index+1<=o.visibleToasts),O=a.computed(()=>o.toast.type),y=a.computed(()=>o.toast.dismissible),b=o.toast.className||"",v=o.toast.descriptionClassName||"",k=o.toast.style||{},S=a.computed(()=>o.heights.findIndex(A=>A.toastId===o.toast.id)||0),w=a.computed(()=>o.toast.duration||o.duration||R8),$=a.ref(0),T=a.ref(0),R=a.ref(w.value),B=a.ref(0),M=a.ref(null),V=a.computed(()=>o.position.split("-")),K=a.computed(()=>V.value[0]),L=a.computed(()=>V.value[1]),ne=a.computed(()=>o.heights.reduce((A,X,z)=>z>=S.value?A:A+X.height,0)),ge=a.computed(()=>o.toast.invert||o.invert),Se=a.computed(()=>d.value==="loading"),Pe=a.computed(()=>d.value??(o.toast.type||null)),ie=a.computed(()=>!t(o.toast)&&typeof o.toast.title=="object"),q=a.computed(()=>{if(!t(o.toast))return null;switch(d.value){case"loading":return o.toast.loading;case"success":return typeof o.toast.success=="function"?f.value:o.toast.success;case"error":return typeof o.toast.error=="function"?f.value:o.toast.error;default:return null}});a.onMounted(()=>s.value=!0),a.watchEffect(()=>{T.value=S.value*V8+ne.value});function N(){var A,X;(!Se.value||y.value)&&(I(),(X=(A=o.toast).onDismiss)==null||X.call(A,o.toast))}function I(){i.value=!0,u.value=T.value;const A=o.heights.filter(X=>X.toastId!==o.toast.id);n("update:heights",A),setTimeout(()=>{n("removeToast",o.toast)},Z8)}const Z=A=>{Se||(u.value=T.value,A.target.setPointerCapture(A.pointerId),A.target.tagName!=="BUTTON"&&(l.value=!0,M.value={x:A.clientX,y:A.clientY}))},P=A=>{var X,z,le,ae;if(c.value)return;M.value=null;const be=Number(((X=p.value)==null?void 0:X.style.getPropertyValue("--swipe-amount").replace("px",""))||0);if(Math.abs(be)>=B8){u.value=T.value,(le=(z=o.toast).onDismiss)==null||le.call(z,o.toast),I(),c.value=!0;return}(ae=p.value)==null||ae.style.setProperty("--swipe-amount","0px"),l.value=!0},Q=A=>{var X;if(!M.value)return;const z=A.clientY-M.value.y,le=A.clientX-M.value.x,ae=(V.value[0]==="top"?Math.min:Math.max)(0,z),be=A.pointerType==="touch"?10:2;Math.abs(ae)>be?(X=p.value)==null||X.style.setProperty("--swipe-amount",`${z}px`):Math.abs(le)>be&&(M.value=null)};return a.watchEffect(A=>{if(o.toast.promise&&d.value==="loading"||o.toast.duration===1/0)return;let X;const z=()=>{if(B.value<$.value){const ae=new Date().getTime()-$.value;R.value=R.value-ae}B.value=new Date().getTime()},le=()=>{$.value=new Date().getTime(),X=setTimeout(()=>{var ae,be;(be=(ae=o.toast).onAutoClose)==null||be.call(ae,o.toast),I()},R.value)};o.expanded||o.interacting?z():le(),A(()=>{clearTimeout(X)})}),a.onMounted(()=>{if(p.value){const A=p.value.getBoundingClientRect().height;h.value=A;const X=[{toastId:o.toast.id,height:A},...o.heights];n("update:heights",X)}}),a.onUnmounted(()=>{if(p.value){const A=o.heights.filter(X=>X.toastId!==o.toast.id);n("update:heights",A)}}),a.watchEffect(()=>{o.toast.delete&&I()}),(A,X)=>(a.openBlock(),a.createElementBlock("li",{"aria-live":A.toast.important?"assertive":"polite","aria-atomic":"",role:"status",tabindex:"0",ref_key:"toastRef",ref:p,"data-sonner-toast":"",class:a.normalizeClass(a.unref(b)),"data-styled":!ie.value,"data-mounted":s.value,"data-promise":!!A.toast.promise,"data-removed":i.value,"data-visible":g.value,"data-y-position":K.value,"data-x-position":L.value,"data-index":o.index,"data-front":m.value,"data-swiping":l.value,"data-type":d.value!=="loading"&&d.value?d.value:O.value,"data-invert":ge.value,"data-swipe-out":c.value,"data-expanded":!!(o.expanded||o.expandByDefault&&s.value),style:a.normalizeStyle({"--index":o.index,"--toasts-before":o.index,"--z-index":A.toasts.length-o.index,"--offset":`${i.value?u.value:T.value}px`,"--initial-height":o.expandByDefault?"auto":`${h.value}px`,...a.unref(k)}),onPointerdown:Z,onPointerup:P,onPointermove:Q},[o.closeButton&&!ie.value?(a.openBlock(),a.createElementBlock("button",{key:0,"aria-label":"Close toast","data-close-button":"","data-disabled":Se.value,onClick:N},[a.createVNode(C8)],8,Q8)):a.createCommentVNode("",!0),O.value||A.toast.icon||A.toast.promise?(a.openBlock(),a.createElementBlock("div",E8,[typeof A.toast.promise=="function"||O.value==="loading"?(a.openBlock(),a.createBlock(Fq,{key:0,visible:d.value==="loading"||O.value==="loading"},null,8,["visible"])):a.createCommentVNode("",!0),Pe.value==="success"?(a.openBlock(),a.createBlock(n8,{key:1})):Pe.value==="info"?(a.openBlock(),a.createBlock(c8,{key:2})):Pe.value==="warning"?(a.openBlock(),a.createBlock(m8,{key:3})):Pe.value==="error"?(a.openBlock(),a.createBlock(w8,{key:4})):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",N8,[a.createElementVNode("div",A8,[typeof A.toast.title=="string"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(A.toast.title),1)],64)):A.toast.title===void 0||A.toast.title===null?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(q.value),1)],64)):ie.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(A.toast.title),{key:2,onCloseToast:X[0]||(X[0]=()=>{var z;I(),(z=A.toast.cancel)!=null&&z.onClick&&A.toast.cancel.onClick()})},null,32)):a.createCommentVNode("",!0)]),A.toast.description?(a.openBlock(),a.createElementBlock("div",{key:0,"data-description":"",class:a.normalizeClass(A.descriptionClass+a.unref(v))},a.toDisplayString(A.toast.description),3)):a.createCommentVNode("",!0)]),A.toast.cancel?(a.openBlock(),a.createElementBlock("button",{key:2,"data-button":"","data-cancel":"",onClick:X[1]||(X[1]=()=>{var z;I(),(z=A.toast.cancel)!=null&&z.onClick&&A.toast.cancel.onClick()})},a.toDisplayString(A.toast.cancel.label),1)):a.createCommentVNode("",!0),A.toast.action?(a.openBlock(),a.createElementBlock("button",{key:3,"data-button":"",onClick:X[2]||(X[2]=()=>{var z;I(),(z=A.toast.action)==null||z.onClick()})},a.toDisplayString(A.toast.action.label),1)):a.createCommentVNode("",!0)],46,T8))}}),j8=["aria-label"],D8=["dir","data-theme","data-rich-colors","data-y-position","data-x-position"],M8=3,Ty="32px",q8=4e3,X8=356,Qy=14,W8=typeof window<"u"&&typeof document<"u",z8=a.defineComponent({name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{invert:{type:Boolean,default:!1},theme:{default:"light"},position:{default:"bottom-right"},hotkey:{default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{default:q8},gap:{default:Qy},visibleToasts:{default:M8},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},className:{default:""},style:{default:()=>({})},offset:{default:Ty},dir:{default:"auto"}},setup(r){const e=r,t=a.useAttrs(),n=a.ref([]),o=a.ref([]),s=a.ref(!1),i=a.ref(!1),l=a.ref(e.theme!=="system"?e.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),c=a.computed(()=>e.position.split("-")),d=a.ref(null),u=e.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"");function h(p){n.value=n.value.filter(({id:m})=>m!==p.id)}function f(){if(typeof window>"u")return"ltr";const p=document.documentElement.getAttribute("dir");return p==="auto"||!p?window.getComputedStyle(document.documentElement).direction:p}return a.onMounted(()=>{const p=ar.subscribe(m=>{if(m.dismiss){n.value=n.value.map(g=>g.id===m.id?{...g,delete:!0}:g);return}a.nextTick(()=>{const g=n.value.findIndex(O=>O.id===m.id);g!==-1?n.value.splice(g,1,m):n.value=[m,...n.value]})});a.onUnmounted(()=>{p()})}),a.watch(()=>e.theme,p=>{if(p!=="system"){l.value=p;return}p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?l.value="dark":l.value="light"),!(typeof window>"u")&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:m})=>{m?l.value="dark":l.value="light"})}),a.watchEffect(()=>{n.value.length<=1&&(s.value=!1)}),a.watchEffect(p=>{function m(g){var O,y;e.hotkey.every(b=>g[b]||g.code===b)&&(s.value=!0,(O=d.value)==null||O.focus()),g.code==="Escape"&&(document.activeElement===d.value||(y=d.value)!=null&&y.contains(document.activeElement))&&(s.value=!1)}W8&&(document.addEventListener("keydown",m),p(()=>{document.removeEventListener("keydown",m)}))}),(p,m)=>{var g;return a.openBlock(),a.createElementBlock("section",{"aria-label":`Notifications ${a.unref(u)}`,tabIndex:-1},[a.createElementVNode("ol",{ref_key:"listRef",ref:d,"data-sonner-toaster":"",dir:p.dir==="auto"?f():p.dir,tabIndex:-1,"data-theme":p.theme,"data-rich-colors":p.richColors,"data-y-position":c.value[0],"data-x-position":c.value[1],style:a.normalizeStyle({"--front-toast-height":`${(g=o.value[0])==null?void 0:g.height}px`,"--offset":typeof p.offset=="number"?`${p.offset}px`:p.offset||Ty,"--width":`${X8}px`,"--gap":`${Qy}px`,...a.unref(t).style}),onMouseenter:m[1]||(m[1]=O=>s.value=!0),onMousemove:m[2]||(m[2]=O=>s.value=!0),onMouseleave:m[3]||(m[3]=()=>{i.value||(s.value=!1)}),onPointerdown:m[4]||(m[4]=O=>i.value=!1),onPointerup:m[5]||(m[5]=O=>i.value=!1)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(O,y)=>{var b,v,k,S;return a.openBlock(),a.createBlock(I8,{key:O.id,index:y,toast:O,duration:((b=p.toastOptions)==null?void 0:b.duration)??p.duration,className:(v=p.toastOptions)==null?void 0:v.className,descriptionClassName:(k=p.toastOptions)==null?void 0:k.descriptionClassName,invert:p.invert,visibleToasts:p.visibleToasts,closeButton:p.closeButton,interacting:i.value,position:p.position,style:a.normalizeStyle((S=p.toastOptions)==null?void 0:S.style),toasts:n.value,expandByDefault:p.expand,gap:p.gap,expanded:s.value,heights:o.value,"onUpdate:heights":m[0]||(m[0]=w=>o.value=w),onRemoveToast:h},null,8,["index","toast","duration","className","descriptionClassName","invert","visibleToasts","closeButton","interacting","position","style","toasts","expandByDefault","gap","expanded","heights"])}),128))],44,D8)],8,j8)}}}),QS={toast:()=>null};function U8(r){QS.toast=r}function ES(){return{initializeToasts:U8,toast:(r,e="info",t={timeout:3e3})=>{QS.toast(r,e,t)}}}const Y8=a.defineComponent({__name:"ScalarToasts",setup(r){const e=a.ref(!1);a.onMounted(()=>e.value=!0);const t={success:Rl.success,error:Rl.error,warn:Rl.warning,info:Rl},{initializeToasts:n}=ES();return n((o,s="info",i={})=>{(t[s]||t.info)(o,{duration:i.timeout||3e3})}),(o,s)=>e.value?(a.openBlock(),a.createBlock(a.unref(z8),{key:0,toastOptions:{className:"toaster"}})):a.createCommentVNode("",!0)}}),na=()=>{const{toast:r}=ES();return{copyToClipboard:t=>{navigator.clipboard.writeText(t).then(()=>{r("Copied to the clipboard","info")})}}},On=a.ref(!1);function L8(r){var o;const e=()=>{var i,l;const s=typeof window<"u"?(i=window.localStorage)==null?void 0:i.getItem("isDark"):null;return typeof s=="string"?!!JSON.parse(s):!!(typeof window<"u"&&((l=window==null?void 0:window.matchMedia("(prefers-color-scheme: dark)"))!=null&&l.matches))},t=()=>{var s;On.value=!On.value,typeof window<"u"&&((s=window==null?void 0:window.localStorage)==null||s.setItem("isDark",JSON.stringify(On.value)))};function n(s){var i;On.value=s,typeof window<"u"&&((i=window==null?void 0:window.localStorage)==null||i.setItem("isDark",JSON.stringify(On.value)))}return On.value=(typeof window>"u"?null:JSON.parse(((o=window.localStorage)==null?void 0:o.getItem("isDark"))||"null"))??r??e(),a.watch(On,s=>{typeof document>"u"||(document.body.classList.toggle("dark-mode",s),document.body.classList.toggle("light-mode",!s))},{immediate:!0}),{isDark:On,toggleDarkMode:t,setDarkMode:n}}const H8=["unirest"],Nf=a.ref([...H8]),G8=Dy.availableTargets().map(r=>(r.key==="node"&&(r.default="undici",r.clients.unshift({description:"An HTTP/1.1 client, written from scratch for Node.js.",key:"undici",link:"https://github.com/nodejs/undici",title:"undici"})),r.clients=r.clients.filter(e=>!Nf.value.includes(e.key)),r)).filter(r=>r.clients.length);function Yi(){return{availableTargets:a.computed(()=>G8),excludedClients:a.readonly(Nf),setExcludedClients:e=>Nf.value=e}}const qm=a.ref(Bs.hash??""),Uc=a.ref(),F8=a.ref(!1),K8=r=>r.slug?`description/${r.slug}`:"",NS=r=>{var t;if(!Uc.value)return"";const e=new RegExp("^"+((t=Uc.value)==null?void 0:t.basePath)+"/?");return decodeURIComponent(r.replace(e,""))},J8=(r,e)=>{if(!r)return"webhooks";const t=ki.slug(r),n=encodeURIComponent(t);return`webhook/${e}/${n}`},eX=r=>{if(!r)return"models";const e=ki.slug(r);return`model/${encodeURIComponent(e)}`},tX=(r,e)=>`${AS(e)}/${r.httpVerb}${r.path}`,AS=({name:r})=>{const e=ki.slug(r);return`tag/${encodeURIComponent(e)}`},rX=(r=qm.value)=>{var n;const e=(n=r.match(/(tag\/[^/]+)/))==null?void 0:n[0],t=r.startsWith("model")?"models":"";return e??t},nX=()=>{qm.value=Uc.value?NS(window.location.pathname):decodeURIComponent(window.location.hash.replace(/^#/,""))},mt=()=>({hash:qm,getWebhookId:J8,getModelId:eX,getHeadingId:K8,getOperationId:tX,getPathRoutingId:NS,getSectionId:rX,getTagId:AS,isIntersectionEnabled:F8,pathRouting:Uc,updateHash:nX});function Xm(r){return{parameterMap:a.computed(()=>{var o;const t=((o=r.operation.information)==null?void 0:o.parameters)??[],n={path:[],query:[],header:[],body:[],formData:[]};return r.operation.pathParameters&&r.operation.pathParameters.forEach(s=>{s.in==="path"?n.path.push(s):s.in==="query"?n.query.push(s):s.in==="header"?n.header.push(s):s.in==="body"?n.body.push(s):s.in==="formData"&&n.formData.push(s)}),t&&t.forEach(s=>{s.in==="path"?n.path.push(s):s.in==="query"?n.query.push(s):s.in==="header"?n.header.push(s):s.in==="body"?n.body.push(s):s.in==="formData"&&n.formData.push(s)}),n})}}const Ey=()=>({info:{title:"",description:"",termsOfService:"",version:"",license:{name:"",url:""},contact:{email:""}},externalDocs:{description:"",url:""},components:{schemas:{},securitySchemes:{}},servers:[],tags:[]}),oX=async({url:r,content:e},t)=>{if(r)return Qw(r)?await pg(r,t):await pg(r);const n=typeof e=="function"?e():e;if(typeof n=="string")return n;if(typeof n=="object")return JSON.stringify(n)};function RS({specConfig:r,proxy:e}){const t=a.ref(""),n=a.reactive(Ey()),o=a.ref(null);function s(i){return i?_S(i).then(l=>{o.value=null,Object.assign(n,{servers:[],...l})}).catch(l=>{o.value=l.toString()}):Object.assign(n,Ey())}return a.watch(()=>a.toValue(r),async i=>{var l;if(i){const c=(l=await oX(i,a.toValue(e)))==null?void 0:l.trim();typeof c=="string"&&(t.value=c)}},{immediate:!0,deep:!0}),a.watch(t,()=>{s(t.value)}),{rawSpec:t,parsedSpec:n,specErrors:o}}function Wm(r){return{responses:a.computed(()=>{if(!r.information)return[];const{responses:t}=r.information,n=[];return t&&Object.keys(t).forEach(o=>{n.push({name:o,description:t[o].description})}),n})}}const{getHeadingId:Ny,getModelId:Ay,getOperationId:Ry,getSectionId:sX,getTagId:VS,getWebhookId:Ju,hash:Af}=mt(),Je=a.ref(void 0);function aX(r){return Je.value=r}const BS=a.ref(!1),Yc=a.reactive(Bs["useSidebarContent-collapsedSidebarItems"]??{});function iX(r){Yc[r]=!Yc[r]}function eh(r,e){Yc[r]=e}const Lc=a.ref([]),lX=async r=>{const e=await pi(r),t=yd(e);return e.filter(n=>n.depth===t||n.depth===t+1)},ZS=a.computed(()=>{var h,f,p,m,g,O,y,b,v,k;const{state:r}=Fc(),e={},{openApi:{globalSecurity:t}}=rd(),n=[];let o=null;Lc.value.forEach(S=>{var w;S.depth===yd(Lc.value)?(o={id:Ny(S),title:S.value.toUpperCase(),show:!r.showApiClient,children:[]},n.push(o)):o&&((w=o.children)==null||w.push({id:Ny(S),title:S.value,show:!r.showApiClient}))});const s=(f=(h=Je.value)==null?void 0:h.tags)==null?void 0:f[0],l=s&&(S=>(S==null?void 0:S.length)!==1||S[0].name!=="default"||S[0].description!=="")((p=Je.value)==null?void 0:p.tags)?(g=(m=Je.value)==null?void 0:m.tags)==null?void 0:g.filter(S=>{var w;return((w=S.operations)==null?void 0:w.length)>0}).map(S=>{var w;return{id:VS(S),title:S.name.toUpperCase(),show:!0,children:(w=S.operations)==null?void 0:w.map($=>{var B;const T=Ry($,S),R=$.name??$.path;return e[T]=R,{id:T,title:R,httpVerb:$.httpVerb,deprecated:((B=$.information)==null?void 0:B.deprecated)??!1,show:!0,select:()=>{r.showApiClient&&Bc($,t)}}})}}):(O=s==null?void 0:s.operations)==null?void 0:O.map(S=>{var T;const w=Ry(S,s),$=S.name??S.path;return e[w]=$,{id:w,title:$,httpVerb:S.httpVerb,deprecated:((T=S.information)==null?void 0:T.deprecated)??!1,show:!0,select:()=>{r.showApiClient&&Bc(S,t)}}}),c=Ep(Je.value)&&!BS.value?[{id:Ay(),title:"MODELS",show:!r.showApiClient,children:Object.keys(ur(Je.value)??{}).map(S=>{var $;const w=Ay(S);return e[w]=S,{id:w,title:(($=ur(Je.value))==null?void 0:$[S]).title??S,show:!r.showApiClient}})}]:[],d=(y=Je.value)!=null&&y["x-tagGroups"]?(v=(b=Je.value)==null?void 0:b["x-tagGroups"])==null?void 0:v.map(S=>{const w=[];return S.tags.map(T=>{if(T.toUpperCase()==="MODELS"&&c.length>0)w.push(c[0]);else{const R=l==null?void 0:l.find(B=>B.title===T.toUpperCase());R&&w.push(R)}}),{id:S.name,title:S.name.toUpperCase(),children:w,show:!0,isGroup:!0}}):void 0,u=Tw(Je.value)?[{id:Ju(),title:"WEBHOOKS",show:!r.showApiClient,children:Object.keys(((k=Je.value)==null?void 0:k.webhooks)??{}).map(S=>{var $,T;const w=Ju(S);return e[w]=S,Object.keys(((T=($=Je.value)==null?void 0:$.webhooks)==null?void 0:T[S])??{}).map(R=>{var B,M,V;return{id:Ju(S,R),title:(V=(M=(B=Je.value)==null?void 0:B.webhooks)==null?void 0:M[S][R])==null?void 0:V.name,httpVerb:R,show:!r.showApiClient}})}).flat()}]:[];return{entries:[...n,...d??l??[],...d?[]:u,...d?[]:c],titles:e}}),cX=a.ref(!1),dX=a.computed(()=>{var r,e;return((e=(r=ZS.value)==null?void 0:r.titles)==null?void 0:e[Af.value])??""});function vr(r){return r!=null&&r.parsedSpec&&(Je.value=r.parsedSpec,a.watch(()=>{var e,t;return(t=(e=Je.value)==null?void 0:e.tags)==null?void 0:t.length},()=>{var e,t;if(Af.value){const n=sX(Af.value);n&&eh(n,!0)}else{const n=(t=(e=Je.value)==null?void 0:e.tags)==null?void 0:t[0];n&&eh(VS(n),!0)}}),a.watch(()=>{var e,t;return(t=(e=Je.value)==null?void 0:e.info)==null?void 0:t.description},async()=>{var t,n;const e=(n=(t=Je.value)==null?void 0:t.info)==null?void 0:n.description;return e?Lc.value=await lX(e):Lc.value=[]})),{breadcrumb:dX,items:ZS,isSidebarOpen:cX,collapsedSidebarItems:Yc,toggleCollapsedSidebarItem:iX,setCollapsedSidebarItem:eh,hideModels:BS,setParsedSpec:aX}}const uX=a.defineComponent({__name:"SidebarHttpBadge",props:{active:{type:Boolean},method:{}},setup(r){return(e,t)=>(a.openBlock(),a.createBlock(a.unref(Eo),{class:a.normalizeClass(["sidebar-heading-type",{"sidebar-heading-type-active":e.active}]),method:e.method,property:"--method-color",short:""},null,8,["class","method"]))}}),IS=W(uX,[["__scopeId","data-v-6563458b"]]),hX=["id"],fX={key:0,class:"sidebar-heading-chevron"},pX=["href"],mX={class:"sidebar-heading-link-title"},gX={key:1,class:"sidebar-heading-link-method"},OX={key:1,class:"action-menu"},yX=a.defineComponent({__name:"SidebarElement",props:{id:{},item:{},isActive:{type:Boolean},hasChildren:{type:Boolean},open:{type:Boolean}},emits:["toggleOpen"],setup(r,{emit:e}){const t=r,n=e,{hash:o,isIntersectionEnabled:s,pathRouting:i}=mt(),l=async()=>{var u,h;t.hasChildren&&n("toggleOpen"),(h=(u=t.item)==null?void 0:u.select)==null||h.call(u),t.open&&(s.value=!1,await Dr(100),s.value=!0)},c=()=>{if(i.value)return i.value.basePath+"/"+t.item.id;{const u=new URL(window.location.href);return u.hash=t.item.id,`${u.pathname}${u.search}${u.hash}`}},d=async u=>{var h,f;if(i.value){u.preventDefault(),t.hasChildren&&n("toggleOpen"),(f=(h=t.item)==null?void 0:h.select)==null||f.call(h),n("toggleOpen"),s.value=!1,o.value=t.item.id;const p=new URL(window.location.href);p.pathname=i.value.basePath+"/"+t.item.id,window.history.pushState({},"",p),vi(t.item.id),await Dr(100),s.value=!0}};return(u,h)=>{var f,p;return a.openBlock(),a.createElementBlock("li",{id:u.id,class:"sidebar-group-item"},[a.createElementVNode("div",{class:a.normalizeClass(["sidebar-heading",{"sidebar-group-item__folder":u.hasChildren,active_page:u.isActive,deprecated:u.item.deprecated??!1}]),onClick:l},[u.hasChildren?(a.openBlock(),a.createElementBlock("p",fX,[a.createVNode(a.unref(Ni),{class:"toggle-nested-icon",icon:u.open?"ChevronDown":"ChevronRight",label:"Toggle group",size:"sm",onClick:a.withModifiers(l,["stop"])},null,8,["icon"]),a.createTextVNode("   ")])):a.createCommentVNode("",!0),a.createElementVNode("a",{class:"sidebar-heading-link",href:c(),onClick:d},[(p=(f=u.item)==null?void 0:f.icon)!=null&&p.src?(a.openBlock(),a.createBlock(a.unref(Ze),{key:0,class:"sidebar-icon",icon:u.item.icon.src},null,8,["icon"])):a.createCommentVNode("",!0),a.createElementVNode("p",mX,a.toDisplayString(u.item.title),1),u.item.httpVerb&&!u.hasChildren?(a.openBlock(),a.createElementBlock("p",gX,[a.createTextVNode("   "),a.createVNode(IS,{active:u.isActive,method:u.item.httpVerb},null,8,["active","method"])])):a.createCommentVNode("",!0)],8,pX)],2),u.open?a.renderSlot(u.$slots,"default",{key:0},void 0,!0):a.createCommentVNode("",!0),u.$slots["action-menu"]?(a.openBlock(),a.createElementBlock("div",OX,[a.renderSlot(u.$slots,"action-menu",{},void 0,!0)])):a.createCommentVNode("",!0)],8,hX)}}}),Vl=W(yX,[["__scopeId","data-v-17b23ea1"]]),bX=a.defineComponent({__name:"SidebarGroup",props:{level:{}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("ul",{class:"sidebar-group sidebar-indent-nested",style:a.normalizeStyle({"--scalar-sidebar-level":e.level})},[a.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),th=W(bX,[["__scopeId","data-v-39c84840"]]),vX={class:"sidebar"},wX={class:"sidebar-group-title"},kX=-160,SX=a.defineComponent({__name:"Sidebar",props:{parsedSpec:{}},setup(r){const e=r,{hash:t,isIntersectionEnabled:n}=mt(),{items:o,toggleCollapsedSidebarItem:s,collapsedSidebarItems:i}=vr({parsedSpec:e.parsedSpec}),l=a.ref(null),c=a.ref(!0);a.watch(t,u=>{!n.value||c.value||typeof window>"u"||d(u)});const d=u=>{var p,m,g,O;const h=document.getElementById(`sidebar-${u}`);if(!h||!l.value)return;let f=kX;h.getAttribute("data-sidebar-type")==="heading"?f+=h.offsetTop+((p=h.getElementsByClassName("sidebar-heading"))==null?void 0:p[0]).offsetHeight:f+=h.offsetTop+(((m=h.parentElement)==null?void 0:m.offsetTop)??0)+(((O=(g=h.parentElement)==null?void 0:g.parentElement)==null?void 0:O.offsetTop)??0),l.value.scrollTo({top:f,behavior:"smooth"})};return a.onMounted(()=>{setTimeout(()=>d(t.value),500),c.value=!1}),(u,h)=>(a.openBlock(),a.createElementBlock("div",vX,[a.renderSlot(u.$slots,"sidebar-start",{},void 0,!0),a.createElementVNode("div",{ref_key:"scrollerEl",ref:l,class:"sidebar-pages custom-scroll custom-scroll-self-contain-overflow"},[a.createVNode(th,{level:0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o).entries,f=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:f.id},[f.isGroup?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("li",wX,a.toDisplayString(f.title),1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.children,p=>(a.openBlock(),a.createBlock(Vl,{key:p.id,id:`sidebar-${p.id}`,"data-sidebar-type":"heading",hasChildren:p.children&&p.children.length>0,isActive:a.unref(t)===p.id,item:{id:p.id,title:p.title,select:p.select,httpVerb:p.httpVerb,deprecated:p.deprecated??!1},open:a.unref(i)[p.id]??!1,onToggleOpen:async()=>{c.value=!0,a.unref(s)(p.id),await a.unref(Dr)(100),c.value=!1}},{default:a.withCtx(()=>{var m;return[p.children&&((m=p.children)==null?void 0:m.length)>0?(a.openBlock(),a.createBlock(th,{key:0,level:2},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.children,g=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:g.id},[f.show?(a.openBlock(),a.createBlock(Vl,{key:0,id:`sidebar-${g.id}`,isActive:a.unref(t)===g.id,item:{id:g.id,title:g.title,select:g.select,httpVerb:g.httpVerb,deprecated:g.deprecated??!1}},null,8,["id","isActive","item"])):a.createCommentVNode("",!0)],64))),128))]),_:2},1024)):a.createCommentVNode("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"]))),128))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[f.show?(a.openBlock(),a.createBlock(Vl,{key:0,id:`sidebar-${f.id}`,"data-sidebar-type":"heading",hasChildren:f.children&&f.children.length>0,isActive:a.unref(t)===f.id,item:{id:f.id,title:f.title,select:f.select,httpVerb:f.httpVerb,deprecated:f.deprecated??!1},open:a.unref(i)[f.id]??!1,onToggleOpen:async()=>{c.value=!0,a.unref(s)(f.id),await a.unref(Dr)(100),c.value=!1}},{default:a.withCtx(()=>{var p;return[f.children&&((p=f.children)==null?void 0:p.length)>0?(a.openBlock(),a.createBlock(th,{key:0,level:1},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.children,m=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:m.id},[f.show?(a.openBlock(),a.createBlock(Vl,{key:0,id:`sidebar-${m.id}`,isActive:a.unref(t)===m.id,item:{id:m.id,title:m.title,select:m.select,httpVerb:m.httpVerb,deprecated:m.deprecated??!1}},null,8,["id","isActive","item"])):a.createCommentVNode("",!0)],64))),128))]),_:2},1024)):a.createCommentVNode("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"])):a.createCommentVNode("",!0)],64))],64))),128))]),_:1})],512),a.renderSlot(u.$slots,"sidebar-end",{},void 0,!0)]))}}),zm=W(SX,[["__scopeId","data-v-404804be"]]),$X={key:0,class:"api-client-drawer"},PX={class:"api-client-container"},xX={class:"scalar-api-client-height"},_X={class:"scalar-api-client-states"},CX={class:"t-doc__sidebar"},TX=a.defineComponent({__name:"ApiClientModal",props:{parsedSpec:{},overloadShow:{type:Boolean},proxyUrl:{},theme:{}},emits:["toggleDarkMode"],setup(r){const{hideApiClient:e,state:t}=Fc(),n=De.useMediaQuery("(max-width: 1000px)"),o=a.ref(!1);return(s,i)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.unref(t).showApiClient||s.overloadShow?(a.openBlock(),a.createElementBlock("div",$X,[a.createElementVNode("div",PX,[a.renderSlot(s.$slots,"header",{},void 0,!0),a.createElementVNode("div",xX,[a.createVNode(a.unref(bB),{proxyUrl:s.proxyUrl,showSideBar:o.value,theme:s.theme??"none",withDefaultFonts:!1,onEscapeKeyPress:a.unref(e)},{"address-bar-controls":a.withCtx(()=>[a.createElementVNode("div",_X,[a.createElementVNode("button",{class:"scalar-api-client-states-button scalar-api-client-states-button__endpoints",type:"button",onClick:i[0]||(i[0]=l=>o.value=!o.value)},[a.createVNode(a.unref(Ze),{icon:o.value?"SideBarClosed":"SideBarOpen",size:"sm"},null,8,["icon"])]),a.createElementVNode("button",{class:"scalar-api-client-states-button",type:"button",onClick:i[1]||(i[1]=(...l)=>a.unref(e)&&a.unref(e)(...l))},[a.createVNode(a.unref(Ze),{icon:"Close",size:"sm"})])])]),sidebar:a.withCtx(()=>[a.createElementVNode("div",CX,[a.withDirectives(a.createVNode(a.unref(zm),{parsedSpec:s.parsedSpec},{"sidebar-start":a.withCtx(()=>[a.renderSlot(s.$slots,"sidebar-start",{},void 0,!0)]),_:3},8,["parsedSpec"]),[[a.vShow,!a.unref(n)]])])]),_:3},8,["proxyUrl","showSideBar","theme","onEscapeKeyPress"])])])])):a.createCommentVNode("",!0),a.unref(t).showApiClient?(a.openBlock(),a.createElementBlock("div",{key:1,class:"api-client-drawer-exit",onClick:i[2]||(i[2]=(...l)=>a.unref(e)&&a.unref(e)(...l))})):a.createCommentVNode("",!0)],64))}}),jS=W(TX,[["__scopeId","data-v-462c6fe1"]]),DS=()=>({targetKey:"shell",clientKey:"curl"}),As=a.reactive(DS());function QX(){Ew(As,DS())}function MS(r){var t;const{availableTargets:e}=Yi();return((t=e.value.find(n=>n.key===r.targetKey))==null?void 0:t.title)??r.targetKey}function qS(r){var t,n;const{availableTargets:e}=Yi();return((n=(t=e.value.find(o=>o.key===r.targetKey))==null?void 0:t.clients.find(o=>o.key===r.clientKey))==null?void 0:n.title)??r.clientKey}const EX=r=>{Object.assign(As,{...As,...r})},NX=a.computed(()=>MS(As)),AX=a.computed(()=>qS(As)),Jd=()=>({httpClient:a.readonly(As),resetState:QX,setHttpClient:EX,httpTargetTitle:NX,httpClientTitle:AX,getClientTitle:qS,getTargetTitle:MS}),RX={},VX={class:"scalar-card"};function BX(r,e){return a.openBlock(),a.createElementBlock("div",VX,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const Xn=W(RX,[["render",BX],["__scopeId","data-v-dcabb131"]]),ZX=a.defineComponent({__name:"CardContent",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["scalar-card-content",{"scalar-card--muted":e.muted,"scalar-card--contrast":e.contrast,"scalar-card--frameless":e.frameless,"scalar-card--transparent":e.transparent,"scalar-card--borderless":e.borderless}])},[a.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),Or=W(ZX,[["__scopeId","data-v-5312c2e0"]]),IX={class:"scalar-card-header-slots"},jX={class:"scalar-card-header-slot scalar-card-header-title"},DX={class:"scalar-card-header-slot scalar-card-header-actions"},MX=a.defineComponent({__name:"CardHeader",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){const e=r;return(t,n)=>(a.openBlock(),a.createBlock(Or,a.mergeProps(e,{class:"scalar-card-header"}),{default:a.withCtx(()=>[a.createElementVNode("div",IX,[a.createElementVNode("div",jX,[a.renderSlot(t.$slots,"default",{},void 0,!0)]),a.createElementVNode("div",DX,[a.renderSlot(t.$slots,"actions",{},void 0,!0)])])]),_:3},16))}}),Wn=W(MX,[["__scopeId","data-v-bbd0c20a"]]),qX=a.defineComponent({__name:"CardFooter",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){const e=r;return(t,n)=>(a.openBlock(),a.createBlock(Or,a.normalizeProps(a.guardReactiveProps(e)),{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16))}}),Li=W(qX,[["__scopeId","data-v-918ab8d6"]]),XX=a.defineComponent({__name:"CardTabHeader",emits:["change"],setup(r,{emit:e}){const t=e,n=o=>{t("change",o)};return(o,s)=>(a.openBlock(),a.createBlock(Wn,{class:"scalar-card-header-tabs"},{actions:a.withCtx(()=>[a.renderSlot(o.$slots,"actions",{},void 0,!0)]),default:a.withCtx(()=>[a.createVNode(a.unref(ye.TabGroup),{onChange:n},{default:a.withCtx(()=>[a.createVNode(a.unref(ye.TabList),{class:"tab-list custom-scroll"},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3}))}}),XS=W(XX,[["__scopeId","data-v-6a91b57c"]]),WX=a.defineComponent({__name:"CardTab",setup(r){return(e,t)=>(a.openBlock(),a.createBlock(a.unref(ye.Tab),{as:"template"},{default:a.withCtx(({selected:n})=>[a.createElementVNode("button",{class:a.normalizeClass({tab:!0,"tab-selected":n}),type:"button"},[a.createElementVNode("span",null,[a.renderSlot(e.$slots,"default",{},void 0,!0)])],2)]),_:3}))}}),WS=W(WX,[["__scopeId","data-v-f373ecc2"]]),zX={class:"selector"},UX=a.defineComponent({__name:"Authentication",props:{parsedSpec:{}},setup(r){const e=r,{authentication:t,setAuthentication:n}=qn(),o=a.computed(()=>{var i,l,c;if(!t.preferredSecurityScheme)return!1;const s=(c=(l=(i=e.parsedSpec)==null?void 0:i.components)==null?void 0:l.securitySchemes)==null?void 0:c[t.preferredSecurityScheme];return!!s&&"type"in s&&!!s.type});return a.watch(()=>{var s,i;return(i=(s=e.parsedSpec)==null?void 0:s.components)==null?void 0:i.securitySchemes},()=>{var s,i;n({securitySchemes:(i=(s=e.parsedSpec)==null?void 0:s.components)==null?void 0:i.securitySchemes})},{deep:!0,immediate:!0}),a.onServerPrefetch(async()=>{const s=a.useSSRContext();await Dr(1),s.payload.data["useGlobalStore-authentication"]=t}),(s,i)=>a.unref(Cw)(s.parsedSpec)?(a.openBlock(),a.createBlock(a.unref(Xn),{key:0},{default:a.withCtx(()=>[a.createVNode(a.unref(Wn),{borderless:"",class:"authentication-header",transparent:""},{actions:a.withCtx(()=>{var l,c;return[a.createElementVNode("div",zX,[a.createVNode(a.unref(kw),{value:(c=(l=s.parsedSpec)==null?void 0:l.components)==null?void 0:c.securitySchemes},null,8,["value"])])]}),default:a.withCtx(()=>[a.createTextVNode(" Authentication ")]),_:1}),o.value?(a.openBlock(),a.createBlock(a.unref(Or),{key:0,class:"authentication-content",transparent:""},{default:a.withCtx(()=>{var l,c,d;return[a.unref(t).preferredSecurityScheme?(a.openBlock(),a.createBlock(a.unref(ww),{key:0,value:(d=(c=(l=s.parsedSpec)==null?void 0:l.components)==null?void 0:c.securitySchemes)==null?void 0:d[a.unref(t).preferredSecurityScheme]},null,8,["value"])):a.createCommentVNode("",!0)]}),_:1})):a.createCommentVNode("",!0)]),_:1})):a.createCommentVNode("",!0)}}),YX=W(UX,[["__scopeId","data-v-3e7b39cf"]]),LX=["innerHTML"],HX=a.defineComponent({__name:"MarkdownRenderer",props:{value:{},withImages:{type:Boolean,default:!1}},setup(r){const e=r,t=a.ref(""),n=e.withImages?[]:["img","picture"];return a.watch(()=>e.value,async()=>{var s;const o=await jy.unified().use(Iy).use(T$).use(Q$,{allowDangerousHtml:!0}).use(_$).use(ru,{...ru.defaultSchema,tagNames:(s=ru.defaultSchema.tagNames)==null?void 0:s.filter(i=>!n.includes(i))}).use(x$).use($$,{target:"_blank"}).use(P$).use(C$).process(e.value);t.value=String(o.value)},{immediate:!0}),a.onServerPrefetch(async()=>await Dr(1)),(o,s)=>(a.openBlock(),a.createElementBlock("div",{class:"markdown",innerHTML:t.value},null,8,LX))}}),jt=W(HX,[["__scopeId","data-v-e301bbc8"]]),GX=["title","innerHTML"],FX=a.defineComponent({__name:"ServerItem",props:{value:{},variables:{}},setup(r){const e=r,{copyToClipboard:t}=na(),n=a.computed(()=>{var i;const s=(((i=e.value)==null?void 0:i.url)??"").replace(/(<([^>]+)>)/gi,"");return Qp(s,l=>{var d;const c=(d=e.variables)==null?void 0:d.find(u=>u.name===l);return`<span class="base-url-variable">${((c==null?void 0:c.value)??"")!==""?c==null?void 0:c.value:`{${l}}`}</span>`})});return(o,s)=>o.value?(a.openBlock(),a.createElementBlock("a",{key:0,class:"base-url",title:o.value.description,onClick:s[0]||(s[0]=i=>a.unref(t)(o.value.url)),innerHTML:n.value},null,8,GX)):a.createCommentVNode("",!0)}}),KX=W(FX,[["__scopeId","data-v-8df90bd1"]]),JX={key:0},e9=["for"],t9=["id","value","onInput"],r9=["value"],n9={class:"input-value"},o9=["id","value","onInput"],s9=a.defineComponent({__name:"ServerVariables",props:{value:{}},setup(r){const{server:e,setServer:t}=qs(),n=(s,i)=>{const l=i.target.value,c=[...e.variables],d=c.findIndex(u=>u.name===s);c[d].value=l,t({variables:c})},o=s=>{const i=e.variables.findIndex(l=>l.name===s);return e.variables[i].value??""};return(s,i)=>s.value?(a.openBlock(),a.createElementBlock("div",JX,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,l=>(a.openBlock(),a.createElementBlock("div",{key:l.name,class:"input"},[a.createElementVNode("label",{for:`variable-${l.name}`},[a.createElementVNode("code",null,a.toDisplayString(l.name),1)],8,e9),l.enum?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("select",{id:`variable-${l.name}`,value:o(l.name),onInput:c=>n(l.name,c)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.enum,c=>(a.openBlock(),a.createElementBlock("option",{key:c,value:c},a.toDisplayString(c),9,r9))),128))],40,t9),a.createElementVNode("div",n9,a.toDisplayString(l.default),1)],64)):(a.openBlock(),a.createElementBlock("input",{key:1,id:`variable-${l.name}`,autocomplete:"off",placeholder:"value",spellcheck:"false",type:"text",value:o(l.name),onInput:c=>n(l.name,c)},null,40,o9))]))),128))])):a.createCommentVNode("",!0)}}),a9=W(s9,[["__scopeId","data-v-a812e319"]]),i9={class:"scalar-card-serverlist-container"},l9={class:"server-item"},c9={class:"server-selector"},d9=["value"],u9=["value"],h9={class:"description"},f9=a.defineComponent({__name:"BaseUrl",setup(r){const{server:e,setServer:t}=qs(),n=a.ref(0);return a.watch([n,()=>e.servers],()=>{var l,c,d;if(!e.servers.length)return;const o=((l=e.servers[n.value])==null?void 0:l.variables)??{},s=o?Object.keys(o).map(u=>{var h;return{name:u,value:((h=o[u].default)==null?void 0:h.toString())??""}}):[];i5((c=e.servers[n.value])==null?void 0:c.url).filter(u=>!o[u]).forEach(u=>{s.push({name:u,value:""})}),t({selectedServer:n.value,description:(d=e.servers[n.value])==null?void 0:d.description,variables:s})},{deep:!0}),(o,s)=>a.unref(e).servers.length>0?(a.openBlock(),a.createBlock(a.unref(Xn),{key:0},{default:a.withCtx(()=>[a.createVNode(a.unref(Wn),{borderless:"",muted:""},{default:a.withCtx(()=>[a.createTextVNode(" Base URL ")]),_:1}),a.createVNode(a.unref(Or),{class:"scalar-card-serverlist"},{default:a.withCtx(()=>[a.createElementVNode("div",i9,[a.createElementVNode("div",l9,[a.createElementVNode("div",c9,[a.unref(e).servers.length>1?(a.openBlock(),a.createElementBlock("select",{key:0,value:n.value,onInput:s[0]||(s[0]=i=>n.value=parseInt(i.target.value,10))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(e).servers,(i,l)=>(a.openBlock(),a.createElementBlock("option",{key:l,value:l},a.toDisplayString(i.url),9,u9))),128))],40,d9)):a.createCommentVNode("",!0),a.createVNode(KX,{value:a.unref(e).servers[n.value],variables:a.unref(e).variables},null,8,["value","variables"]),a.unref(e).servers.length>1?(a.openBlock(),a.createBlock(a.unref(Ze),{key:1,icon:"ChevronDown"})):a.createCommentVNode("",!0)])]),a.createVNode(a9,{value:a.unref(e).variables},null,8,["value"])])]),_:1}),a.unref(e).description?(a.openBlock(),a.createBlock(a.unref(Or),{key:0,muted:""},{default:a.withCtx(()=>[a.createElementVNode("div",h9,[a.createVNode(a.unref(jt),{value:a.unref(e).description},null,8,["value"])])]),_:1})):a.createCommentVNode("",!0)]),_:1})):a.createCommentVNode("",!0)}}),p9=W(f9,[["__scopeId","data-v-db459e3b"]]),zS=r=>(a.pushScopeId("data-v-cae9ee2d"),r=r(),a.popScopeId(),r),m9=["onClick"],g9=["value"],O9=["label"],y9=["value"],b9={class:"code-languages-background code-languages-icon__more"},v9={key:1,class:"code-languages-icon",height:"50",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg"},w9=zS(()=>a.createElementVNode("g",{fill:"currentColor","fill-rule":"nonzero"},[a.createElementVNode("path",{d:"M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0"})],-1)),k9=[w9],S9=zS(()=>a.createElementVNode("span",null,"More",-1)),$9=a.defineComponent({__name:"ClientSelector",setup(r){const{httpClient:e,setHttpClient:t,getClientTitle:n,getTargetTitle:o}=Jd(),{availableTargets:s}=Yi(),i=a.ref(),l=[{targetKey:"shell",clientKey:"curl"},{targetKey:"ruby",clientKey:"native"},{targetKey:"node",clientKey:"undici"},{targetKey:"php",clientKey:"guzzle"},{targetKey:"python",clientKey:"python3"},{targetKey:"c",clientKey:"libcurl"}],c=h=>`programming-language-${h}`,d=h=>h.targetKey===e.targetKey&&h.clientKey===e.clientKey,u=h=>l.some(f=>f.targetKey===h.targetKey&&f.clientKey===h.clientKey);return(h,f)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"containerRef",ref:i,class:"client-libraries-content"},[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(l,p=>a.createElementVNode("div",{key:p.clientKey,class:a.normalizeClass(["code-languages rendered-code-sdks",{"code-languages__active":d(p)}]),onClick:()=>a.unref(t)(p)},[a.createElementVNode("div",{class:a.normalizeClass(["code-languages-background",`code-languages-icon__${p.targetKey}`])},[a.createVNode(a.unref(Ze),{class:"code-languages-icon",icon:c(p.targetKey)},null,8,["icon"])],2),a.createElementVNode("span",null,a.toDisplayString(a.unref(o)(p)),1)],10,m9)),64)),a.createElementVNode("div",{class:a.normalizeClass(["code-languages code-languages__select",{"code-languages__active":a.unref(e)&&!u(a.unref(e))}])},[a.createElementVNode("select",{class:"language-select",value:JSON.stringify(a.unref(e)),onInput:f[0]||(f[0]=p=>a.unref(t)(JSON.parse(p.target.value)))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),p=>(a.openBlock(),a.createElementBlock("optgroup",{key:p.key,label:p.title},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.clients,m=>(a.openBlock(),a.createElementBlock("option",{key:m.key,value:JSON.stringify({targetKey:p.key,clientKey:m.key})},a.toDisplayString(a.unref(n)({targetKey:p.key,clientKey:m.key})),9,y9))),128))],8,O9))),128))],40,g9),a.createElementVNode("div",b9,[a.unref(e)&&!u(a.unref(e))?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`code-languages-icon__${a.unref(e).targetKey}`)},[a.createVNode(a.unref(Ze),{class:"code-languages-icon",icon:c(a.unref(e).targetKey)},null,8,["icon"])],2)):(a.openBlock(),a.createElementBlock("svg",v9,k9))]),S9],2)],512))}}),P9=W($9,[["__scopeId","data-v-cae9ee2d"]]),x9=a.defineComponent({__name:"ClientLibraries",setup(r){const{httpTargetTitle:e,httpClientTitle:t}=Jd();return(n,o)=>(a.openBlock(),a.createBlock(a.unref(Xn),null,{default:a.withCtx(()=>[a.createVNode(a.unref(Wn),{borderless:"",transparent:""},{default:a.withCtx(()=>[a.createTextVNode(" Client Libraries ")]),_:1}),a.createVNode(a.unref(Or),{frameless:"",transparent:""},{default:a.withCtx(()=>[a.createVNode(P9)]),_:1}),a.createVNode(a.unref(Li),{class:"selected-client card-footer",muted:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(t))+" "+a.toDisplayString(a.unref(e)),1)]),_:1})]),_:1}))}}),_9=W(x9,[["__scopeId","data-v-2a099868"]]),C9={},T9={class:"badge"};function Q9(r,e){return a.openBlock(),a.createElementBlock("div",T9,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const wi=W(C9,[["render",Q9],["__scopeId","data-v-190574ac"]]),Um=a.defineComponent({__name:"IntersectionObserver",props:{id:{},is:{}},emits:["intersecting"],setup(r,{emit:e}){const t=r,n=e,o=a.ref(),s=l=>{const c=l.offsetHeight;return`${c/2}px 0px ${c/2}px 0px`},i=l=>l.offsetHeight<window.innerHeight?.8:.5;return a.onMounted(()=>{if(o.value){const l={rootMargin:s(o.value),threshold:i(o.value)};De.useIntersectionObserver(o,([{isIntersecting:c}])=>{c&&t.id&&n("intersecting")},l)}}),(l,c)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(l.is??"div"),{id:l.id,ref_key:"intersectionObserverRef",ref:o},{default:a.withCtx(()=>[a.renderSlot(l.$slots,"default")]),_:3},8,["id"]))}}),E9=a.defineComponent({__name:"Section",props:{id:{},label:{}},setup(r){const e=r,{getSectionId:t,hash:n,isIntersectionEnabled:o,pathRouting:s}=mt(),{setCollapsedSidebarItem:i}=vr();function l(){var u;if(!e.label||!o.value)return;const c=new URL(window.location.href),d=e.id??"";s.value?c.pathname=s.value.basePath+"/"+d:c.hash=d,n.value=d,window.history.replaceState({},"",c),(u=e.id)!=null&&u.startsWith("model")&&i(t(e.id),!0)}return(c,d)=>(a.openBlock(),a.createBlock(Um,{is:"section",id:c.id,class:"section",onIntersecting:l},{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3},8,["id"]))}}),oa=W(E9,[["__scopeId","data-v-0494f9f3"]]),N9={class:"section-accordion-button-content"},A9={key:0,class:"section-accordion-button-actions"},R9={key:0,class:"section-accordion-description"},V9={class:"section-accordion-content-card"},B9=a.defineComponent({__name:"SectionAccordion",props:{id:{},transparent:{type:Boolean}},setup(r){const e=a.ref(),t=De.useElementHover(e);return(n,o)=>(a.openBlock(),a.createBlock(Um,{id:n.id,class:"section-wrapper"},{default:a.withCtx(()=>[a.createVNode(a.unref(ye.Disclosure),{as:"section",class:a.normalizeClass(["section-accordion",{"section-accordion-transparent":n.transparent}])},{default:a.withCtx(({open:s})=>[a.createVNode(a.unref(ye.DisclosureButton),{ref_key:"button",ref:e,class:"section-accordion-button"},{default:a.withCtx(()=>[a.createElementVNode("div",N9,[a.renderSlot(n.$slots,"title",{},void 0,!0)]),n.$slots.actions?(a.openBlock(),a.createElementBlock("div",A9,[a.renderSlot(n.$slots,"actions",{active:a.unref(t)||s},void 0,!0)])):a.createCommentVNode("",!0),a.createVNode(a.unref(Ze),{class:"section-accordion-chevron",icon:s?"ChevronDown":"ChevronRight"},null,8,["icon"])]),_:2},1536),a.createVNode(a.unref(ye.DisclosurePanel),{class:"section-accordion-content"},{default:a.withCtx(()=>[n.$slots.description?(a.openBlock(),a.createElementBlock("div",R9,[a.renderSlot(n.$slots,"description",{},void 0,!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",V9,[a.renderSlot(n.$slots,"default",{},void 0,!0)])]),_:3})]),_:3},8,["class"])]),_:3},8,["id"]))}}),US=W(B9,[["__scopeId","data-v-07cabcb0"]]),Z9={},I9={class:"section-column"};function j9(r,e){return a.openBlock(),a.createElementBlock("div",I9,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const Rs=W(Z9,[["render",j9],["__scopeId","data-v-d64e7382"]]),D9={},M9={class:"section-columns"};function q9(r,e){return a.openBlock(),a.createElementBlock("div",M9,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const Ym=W(D9,[["render",q9],["__scopeId","data-v-8b9602bf"]]),X9={},W9={class:"section-container"};function z9(r,e){return a.openBlock(),a.createElementBlock("div",W9,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const Hi=W(X9,[["render",z9],["__scopeId","data-v-34b26958"]]),U9={class:"section-accordion-wrapper"},Y9={class:"section-accordion-title"},L9=a.defineComponent({__name:"SectionContainerAccordion",setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("div",U9,[a.createVNode(a.unref(ye.Disclosure),{as:"div",class:"section-accordion",defaultOpen:""},{default:a.withCtx(({open:n})=>[a.createVNode(a.unref(ye.DisclosureButton),{class:"section-accordion-button"},{default:a.withCtx(()=>[a.createVNode(a.unref(Ze),{class:"section-accordion-chevron",icon:n?"ChevronDown":"ChevronRight"},null,8,["icon"]),a.createElementVNode("div",Y9,[a.renderSlot(e.$slots,"title",{},void 0,!0)])]),_:2},1024),a.createVNode(a.unref(ye.DisclosurePanel),{class:"section-accordion-content"},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]))}}),YS=W(L9,[["__scopeId","data-v-2049975e"]]),H9=a.defineComponent({__name:"LoadingSkeleton",props:{lines:{default:1}},setup(r){return(e,t)=>(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList([...Array(e.lines).keys()],n=>(a.openBlock(),a.createElementBlock("div",{key:n,class:a.normalizeClass(["loading",{"single-line":e.lines===1}])},null,2))),128))}}),LS=W(H9,[["__scopeId","data-v-c90b2c46"]]),G9={class:"section-content"},F9=a.defineComponent({__name:"SectionContent",props:{loading:{type:Boolean,default:!1}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("div",G9,[e.loading?(a.openBlock(),a.createBlock(LS,{key:1,lines:8})):a.renderSlot(e.$slots,"default",{key:0},void 0,!0)]))}}),sa=W(F9,[["__scopeId","data-v-9735459e"]]),K9=a.defineComponent({__name:"SectionHeader",props:{loading:{type:Boolean,default:!1},tight:{type:Boolean,default:!1},level:{default:1}},setup(r){return(e,t)=>e.loading?(a.openBlock(),a.createBlock(LS,{key:0})):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(`h${e.level}`),{key:1,class:a.normalizeClass(["section-header",{tight:e.tight}])},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),zn=W(K9,[["__scopeId","data-v-3bd1b9f0"]]),J9={key:0,class:"introduction-description"},eW=a.defineComponent({__name:"Description",props:{value:{}},setup(r){const e=r,n=`components-Content-Introduction-Description-sections${Zf(e.value)}`,o=De.computedAsync(async()=>{if(!e.value)return[];const u=await pi(e.value),h=yd(u);return await Promise.all(TS(e.value,h).map(async f=>({heading:(await pi(f))[0],content:f})))},Bs[n]??[]),{getHeadingId:s,hash:i,isIntersectionEnabled:l,pathRouting:c}=mt();function d(u=""){if(!l.value)return;const h=new URL(window.location.href);c.value?h.pathname=c.value.basePath+"/"+u:h.hash=u,i.value=u,window.history.replaceState({},"",h)}return a.onServerPrefetch(async()=>{const u=a.useSSRContext();await Dr(1),u.payload.data[n]=o.value}),(u,h)=>u.value?(a.openBlock(),a.createElementBlock("div",J9,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o),(f,p)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:p},[f.heading?(a.openBlock(),a.createBlock(Um,{key:0,id:a.unref(s)(f.heading),class:"introduction-description-heading",onIntersecting:()=>d(a.unref(s)(f.heading))},{default:a.withCtx(()=>[a.createVNode(a.unref(jt),{value:f.content,withImages:""},null,8,["value"])]),_:2},1032,["id","onIntersecting"])):(a.openBlock(),a.createBlock(a.unref(jt),{key:1,value:f.content,withImages:""},null,8,["value"]))],64))),128))])):a.createCommentVNode("",!0)}}),tW=W(eW,[["__scopeId","data-v-5e475391"]]),rW={class:"download"},nW={class:"download-cta"},oW=a.defineComponent({__name:"DownloadSpec",props:{specTitle:{}},setup(r){const e=r,t=a.inject(Dm),n=()=>{Mm.emit({id:"",specTitle:e.specTitle})};return(o,s)=>{var i;return a.openBlock(),a.createElementBlock("div",rW,[a.createElementVNode("div",nW,[(i=a.unref(t))!=null&&i()?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:0,class:"download-button",type:"button",onClick:n}," Download OpenAPI Spec "))])])}}}),sW=W(oW,[["__scopeId","data-v-810904a4"]]),aW={class:"badges"},iW={class:"sticky-cards"},lW=a.defineComponent({__name:"Introduction",props:{info:{},parsedSpec:{}},setup(r){const e=r,t=new ki,n=a.computed(()=>e.parsedSpec.openapi??e.parsedSpec.swagger??""),o=a.computed(()=>t.slug(e.info.title??""));return(s,i)=>(a.openBlock(),a.createBlock(a.unref(Hi),null,{default:a.withCtx(()=>[a.createVNode(a.unref(oa),{class:"introduction-section"},{default:a.withCtx(()=>[a.createVNode(a.unref(sa),{loading:!s.info.description&&!s.info.title},{default:a.withCtx(()=>[a.createVNode(a.unref(Ym),null,{default:a.withCtx(()=>[a.createVNode(a.unref(Rs),null,{default:a.withCtx(()=>[a.createElementVNode("div",aW,[s.info.version?(a.openBlock(),a.createBlock(a.unref(wi),{key:0},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(s.info.version),1)]),_:1})):a.createCommentVNode("",!0),n.value?(a.openBlock(),a.createBlock(a.unref(wi),{key:1},{default:a.withCtx(()=>[a.createTextVNode(" OAS "+a.toDisplayString(n.value),1)]),_:1})):a.createCommentVNode("",!0)]),a.createVNode(a.unref(zn),{level:1,loading:!s.info.title,tight:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(s.info.title),1)]),_:1},8,["loading"]),a.createVNode(sW,{specTitle:o.value},null,8,["specTitle"]),a.createVNode(tW,{value:s.info.description},null,8,["value"])]),_:1}),s.$slots.aside?(a.openBlock(),a.createBlock(a.unref(Rs),{key:0},{default:a.withCtx(()=>[a.createElementVNode("div",iW,[a.renderSlot(s.$slots,"aside",{},void 0,!0)])]),_:3})):a.createCommentVNode("",!0)]),_:3})]),_:3},8,["loading"]),a.renderSlot(s.$slots,"after",{},void 0,!0)]),_:3})]),_:3}))}}),cW=W(lW,[["__scopeId","data-v-30c2e131"]]),dW=Symbol(),Rf=De.useEventBus(dW),Hc=a.defineComponent({__name:"Lazy",props:{id:{},isLazy:{type:Boolean,default:!0},lazyTimeout:{default:0}},setup(r){const e=r,t=(o=()=>{})=>{typeof window>"u"||("requestIdleCallback"in window?setTimeout(()=>window.requestIdleCallback(o),e.lazyTimeout):setTimeout(()=>a.nextTick(o),e.lazyTimeout??300))},n=a.ref(!e.isLazy);return e.isLazy?t(()=>{n.value=!0,e.id&&a.nextTick(()=>Rf.emit({id:e.id}))}):e.id&&a.nextTick(()=>Rf.emit({id:e.id})),(o,s)=>n.value?a.renderSlot(o.$slots,"default",{key:0}):a.createCommentVNode("",!0)}}),uW={key:0,class:"screenreader-only"},hW=a.defineComponent({__name:"ScreenReader",props:{if:{type:Boolean,default:!0}},setup(r){return(e,t)=>e.$props.if?(a.openBlock(),a.createElementBlock("span",uW,[a.renderSlot(e.$slots,"default",{},void 0,!0)])):a.renderSlot(e.$slots,"default",{key:1},void 0,!0)}}),HS=W(hW,[["__scopeId","data-v-681ebf2c"]]),fW=r=>(a.pushScopeId("data-v-d9801d4e"),r=r(),a.popScopeId(),r),pW={class:"label"},mW={class:"anchor"},gW=fW(()=>a.createElementVNode("span",null,"​",-1)),OW=a.defineComponent({__name:"Anchor",props:{id:{}},setup(r){const{copyToClipboard:e}=na(),t=n=>{const o=new URL(window.location.href);return o.hash=n,o.toString()};return(n,o)=>(a.openBlock(),a.createElementBlock("span",pW,[a.renderSlot(n.$slots,"default",{},void 0,!0),a.createElementVNode("span",mW,[gW,a.createElementVNode("button",{class:"anchor-copy",type:"button",onClick:o[0]||(o[0]=a.withModifiers(s=>a.unref(e)(t(n.id)),["stop"]))},[a.createTextVNode(" # "),a.createVNode(HS,null,{default:a.withCtx(()=>[a.createTextVNode('Copy link to "'),a.renderSlot(n.$slots,"default",{},void 0,!0),a.createTextVNode('"')]),_:3})])])]))}}),Un=W(OW,[["__scopeId","data-v-d9801d4e"]]),yW=["value"],bW=["label"],vW=["value"],wW=["value"],Lm=a.defineComponent({__name:"TextSelect",props:{modelValue:{},options:{}},emits:["update:modelValue"],setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["text-select",e.options.length===1?"text-select--single-option":""])},[a.createElementVNode("span",null,[a.renderSlot(e.$slots,"default")]),a.createElementVNode("select",{value:e.modelValue,onInput:t[0]||(t[0]=n=>e.$emit("update:modelValue",n.target.value))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.options,n=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:n.value},[n.options?(a.openBlock(),a.createElementBlock("optgroup",{key:0,label:n.label},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.options,o=>(a.openBlock(),a.createElementBlock("option",{key:o.value,value:o.value},a.toDisplayString(o.label),9,vW))),128))],8,bW)):(a.openBlock(),a.createElementBlock("option",{key:n.value,value:n.value},a.toDisplayString(n.label),9,wW))],64))),128))],40,yW)],2))}}),kW={class:"request-header"},SW=a.defineComponent({__name:"CustomRequestExamples",props:{operation:{},examples:{}},setup(r){const e=r,t=a.ref(0),n=a.computed(()=>({C:"c","C#":"csharp",Go:"go",HTML:"html",Java:"java",JavaScript:"javascript",Kotlin:"kotlin","Objective-C":"objc",PowerShell:"powershell",Python:"python",Ruby:"ruby",Shell:"shell",Swift:"swift",TypeScript:"javascript",cURL:"shell"})[e.examples[t.value].lang]??e.examples[t.value].lang),o=a.computed(()=>e.examples[t.value]);a.watch(e.examples,()=>{e.examples[t.value]==="undefined"&&(t.value=0)});const{copyToClipboard:s}=na();return(i,l)=>(a.openBlock(),a.createBlock(a.unref(Xn),{class:"dark-mode"},{default:a.withCtx(()=>[a.createVNode(a.unref(Wn),{muted:""},{actions:a.withCtx(()=>[a.createVNode(Lm,{class:"request-client-picker",modelValue:t.value,options:i.examples.map((c,d)=>({value:d.toString(),label:c.label})),"onUpdate:modelValue":l[0]||(l[0]=c=>(t.value=parseInt(c),10))},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.value.label),1)]),_:1},8,["modelValue","options"]),a.createElementVNode("button",{class:"copy-button",type:"button",onClick:l[1]||(l[1]=c=>a.unref(s)(o.value.source.trim()))},[a.createVNode(a.unref(Ze),{icon:"Clipboard",width:"10px"})])]),default:a.withCtx(()=>[a.createElementVNode("div",kW,[a.createVNode(a.unref(Eo),{class:"request-method",method:i.operation.httpVerb},null,8,["method"]),a.renderSlot(i.$slots,"header",{},void 0,!0)])]),_:3}),a.createVNode(a.unref(Or),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:a.withCtx(()=>[a.createVNode(a.unref(Lr),{content:o.value.source.trim(),lang:n.value,lineNumbers:""},null,8,["content","lang"])]),_:1}),i.$slots.footer?(a.openBlock(),a.createBlock(a.unref(Li),{key:0,class:"scalar-card-footer",contrast:""},{default:a.withCtx(()=>[a.renderSlot(i.$slots,"footer",{},void 0,!0)]),_:3})):a.createCommentVNode("",!0)]),_:3}))}}),$W=W(SW,[["__scopeId","data-v-18ba624d"]]),PW={class:"schema-type"},xW=["title"],_W=a.defineComponent({__name:"SchemaHeading",props:{value:{},name:{}},setup(r){return(e,t)=>{var n,o,s,i,l,c;return a.openBlock(),a.createElementBlock("span",PW,[a.createElementVNode("span",{class:"schema-type-icon",title:typeof e.value.type=="string"?e.value.type:Array.isArray(e.value.type)?e.value.type.join(" | "):"unkown type"},[e.value.type==="object"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(" {} ")],64)):a.createCommentVNode("",!0),e.value.type==="array"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(" [] ")],64)):a.createCommentVNode("",!0),e.value.enum?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(" enum ")],64)):a.createCommentVNode("",!0)],8,xW),(o=(n=e.value)==null?void 0:n.xml)!=null&&o.name&&((i=(s=e.value)==null?void 0:s.xml)==null?void 0:i.name)!=="##default"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(" <"+a.toDisplayString((c=(l=e.value)==null?void 0:l.xml)==null?void 0:c.name)+" /> ",1)],64)):e.name?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(e.name),1)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(a.toDisplayString(e.value.type),1)],64))])}}}),GS=W(_W,[["__scopeId","data-v-6c5c3c96"]]),CW={key:0,class:"property-detail-prefix"},TW={key:1,class:"property-detail-value"},QW={key:2,class:"property-detail-value"},EW=a.defineComponent({__name:"SchemaPropertyDetail",props:{truncate:{type:Boolean},code:{type:Boolean}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass(["property-detail",{"property-detail-truncate":e.truncate}])},[e.$slots.prefix?(a.openBlock(),a.createElementBlock("div",CW,[a.renderSlot(e.$slots,"prefix",{},void 0,!0),a.createTextVNode("  ")])):a.createCommentVNode("",!0),e.code?(a.openBlock(),a.createElementBlock("code",TW,[a.renderSlot(e.$slots,"default",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("span",QW,[a.renderSlot(e.$slots,"default",{},void 0,!0)]))],2))}}),nr=W(EW,[["__scopeId","data-v-16d94ef5"]]),NW={class:"property-heading"},AW={key:0,class:"property-name"},RW={key:1,class:"property-additional"},VW={key:2,class:"property-deprecated"},BW={key:3,class:"property-required"},ZW={key:4,class:"property-details"},IW={key:5,class:"property-write-only"},jW={key:6,class:"property-read-only"},DW=a.defineComponent({__name:"SchemaPropertyHeading",props:{value:{},enum:{type:Boolean},required:{type:Boolean,default:!1},additional:{type:Boolean}},setup(r){const e=["oneOf","anyOf","allOf","not"];return(t,n)=>{var o,s,i,l;return a.openBlock(),a.createElementBlock("div",NW,[t.$slots.name?(a.openBlock(),a.createElementBlock("div",AW,[a.renderSlot(t.$slots,"name",{},void 0,!0)])):a.createCommentVNode("",!0),t.additional?(a.openBlock(),a.createElementBlock("div",RW," additional properties ")):a.createCommentVNode("",!0),(o=t.value)!=null&&o.deprecated?(a.openBlock(),a.createElementBlock("div",VW,[a.createVNode(a.unref(wi),null,{default:a.withCtx(()=>[a.createTextVNode("deprecated")]),_:1})])):a.createCommentVNode("",!0),t.required?(a.openBlock(),a.createElementBlock("div",BW," required ")):a.createCommentVNode("",!0),(s=t.value)!=null&&s.type?(a.openBlock(),a.createElementBlock("div",ZW,[t.additional?(a.openBlock(),a.createBlock(nr,{key:0},{prefix:a.withCtx(()=>[a.createTextVNode("key:")]),default:a.withCtx(()=>[a.createTextVNode(" string ")]),_:1})):a.createCommentVNode("",!0),a.createVNode(nr,null,a.createSlots({default:a.withCtx(()=>{var c,d,u;return[(d=(c=t.value)==null?void 0:c.items)!=null&&d.type?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(t.value.type)+" "+a.toDisplayString(t.value.items.type)+"[] ",1)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(Array.isArray(t.value.type)?t.value.type.join(" | "):t.value.type)+" "+a.toDisplayString((u=t.value)!=null&&u.nullable?" | nullable":""),1)],64)),t.value.minItems||t.value.maxItems?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(a.toDisplayString(t.value.minItems)+"…"+a.toDisplayString(t.value.maxItems),1)],64)):a.createCommentVNode("",!0)]}),_:2},[t.additional?{name:"prefix",fn:a.withCtx(()=>[a.createTextVNode("value:")]),key:"0"}:void 0]),1024),t.value.minLength?(a.openBlock(),a.createBlock(nr,{key:1},{prefix:a.withCtx(()=>[a.createTextVNode("min:")]),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(t.value.minLength),1)]),_:1})):a.createCommentVNode("",!0),t.value.maxLength?(a.openBlock(),a.createBlock(nr,{key:2},{prefix:a.withCtx(()=>[a.createTextVNode("max:")]),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(t.value.maxLength),1)]),_:1})):a.createCommentVNode("",!0),t.value.uniqueItems?(a.openBlock(),a.createBlock(nr,{key:3},{default:a.withCtx(()=>[a.createTextVNode(" unique! ")]),_:1})):a.createCommentVNode("",!0),t.value.format?(a.openBlock(),a.createBlock(nr,{key:4},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.value.format),1)]),_:1})):a.createCommentVNode("",!0),t.value.minimum?(a.openBlock(),a.createBlock(nr,{key:5},{prefix:a.withCtx(()=>[a.createTextVNode("min:")]),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(t.value.minimum),1)]),_:1})):a.createCommentVNode("",!0),t.value.maximum?(a.openBlock(),a.createBlock(nr,{key:6},{prefix:a.withCtx(()=>[a.createTextVNode("max:")]),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(t.value.maximum),1)]),_:1})):a.createCommentVNode("",!0),t.value.pattern?(a.openBlock(),a.createBlock(nr,{key:7,code:"",truncate:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.value.pattern),1)]),_:1})):a.createCommentVNode("",!0),t.$props.enum?(a.openBlock(),a.createBlock(nr,{key:8},{default:a.withCtx(()=>[a.createTextVNode("enum")]),_:1})):a.createCommentVNode("",!0),t.value.default?(a.openBlock(),a.createBlock(nr,{key:9,truncate:""},{prefix:a.withCtx(()=>[a.createTextVNode("default:")]),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(t.value.default),1)]),_:1})):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),(i=t.value)!=null&&i.writeOnly?(a.openBlock(),a.createElementBlock("div",IW," write-only ")):(l=t.value)!=null&&l.readOnly?(a.openBlock(),a.createElementBlock("div",jW," read-only ")):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.filter(c=>{var d,u,h;return((d=t.value)==null?void 0:d[c])||((h=(u=t.value)==null?void 0:u.items)==null?void 0:h[c])}),c=>(a.openBlock(),a.createBlock(a.unref(wi),{key:c},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c),1)]),_:2},1024))),128))])}}}),MW=W(DW,[["__scopeId","data-v-0b4351f0"]]),qW=r=>(a.pushScopeId("data-v-ca3c524d"),r=r(),a.popScopeId(),r),XW={key:0,class:"property-description"},WW={key:1,class:"property-description"},zW={key:2,class:"property-example custom-scroll"},UW=qW(()=>a.createElementVNode("span",{class:"property-example-label"},"Example",-1)),YW={class:"property-example-value"},LW={key:3,class:"property-enum"},HW={class:"property-enum-values"},GW={key:4,class:"children"},FW={key:0,class:"children"},KW={key:0,class:"property-rule"},JW={key:1,class:"property-rule"},ez=a.defineComponent({__name:"SchemaProperty",props:{value:{},level:{default:0},name:{},required:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},description:{},additional:{type:Boolean}},setup(r){const e={integer:{_default:"Integer numbers.",int32:"Signed 32-bit integers (commonly used integer type).",int64:"Signed 64-bit integers (long type)."},string:{date:"full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21","date-time":"the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z",password:"a hint to UIs to mask the input",byte:"base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",binary:"binary data, used to describe files"}},t=function(i,l){return l!=null&&l.properties||l!=null&&l.additionalProperties?null:i||(l==null?void 0:l.description)||null},n=function(i){return!i||!e[i.type]?null:e[i.type][i.format||"_default"]},o=function(i){var l;return(i==null?void 0:i.enum)||((l=i==null?void 0:i.items)==null?void 0:l.enum)||null},s=["oneOf","anyOf","allOf","not"];return(i,l)=>{var c,d,u,h,f,p,m,g,O;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["property",[`property--level-${i.level}`,{"property--compact":i.compact,"property--deprecated":(c=i.value)==null?void 0:c.deprecated}]])},[a.createVNode(MW,{additional:i.additional,enum:!!o(i.value),required:i.required,value:i.value},a.createSlots({_:2},[i.name?{name:"name",fn:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.name),1)]),key:"0"}:void 0]),1032,["additional","enum","required","value"]),t(i.description,i.value)?(a.openBlock(),a.createElementBlock("div",XW,[a.createVNode(a.unref(jt),{value:t(i.description,i.value)},null,8,["value"])])):n(i.value)?(a.openBlock(),a.createElementBlock("div",WW,[a.createVNode(a.unref(jt),{value:n(i.value)||""},null,8,["value"])])):a.createCommentVNode("",!0),(d=i.value)!=null&&d.example||(h=(u=i.value)==null?void 0:u.items)!=null&&h.example?(a.openBlock(),a.createElementBlock("div",zW,[UW,a.createElementVNode("code",YW,a.toDisplayString(i.value.example||((f=i.value)==null?void 0:f.items.example)),1)])):a.createCommentVNode("",!0),o(i.value)?(a.openBlock(),a.createElementBlock("div",LW,[a.createElementVNode("ul",HW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o(i.value),y=>(a.openBlock(),a.createElementBlock("li",{key:y,class:"property-enum-value"},a.toDisplayString(y),1))),128))])])):a.createCommentVNode("",!0),((p=i.value)==null?void 0:p.type)==="object"&&((m=i.value)!=null&&m.properties||(g=i.value)!=null&&g.additionalProperties)?(a.openBlock(),a.createElementBlock("div",GW,[a.createVNode(yo,{compact:i.compact,level:i.level+1,value:i.value},null,8,["compact","level","value"])])):a.createCommentVNode("",!0),(O=i.value)!=null&&O.items?(a.openBlock(),a.createElementBlock(a.Fragment,{key:5},[["object"].includes(i.value.items.type)?(a.openBlock(),a.createElementBlock("div",FW,[a.createVNode(yo,{compact:i.compact,level:i.level+1,value:i.value.items},null,8,["compact","level","value"])])):a.createCommentVNode("",!0)],64)):a.createCommentVNode("",!0),(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(s,y=>{var b,v,k;return a.openBlock(),a.createElementBlock(a.Fragment,{key:y},[(b=i.value)!=null&&b[y]?(a.openBlock(),a.createElementBlock("div",KW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value[y],(S,w)=>(a.openBlock(),a.createBlock(yo,{key:w,compact:i.compact,level:i.level+1,value:S},null,8,["compact","level","value"]))),128))])):a.createCommentVNode("",!0),(k=(v=i.value)==null?void 0:v.items)!=null&&k[y]&&i.level<3?(a.openBlock(),a.createElementBlock("div",JW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value.items[y],(S,w)=>(a.openBlock(),a.createBlock(yo,{key:w,compact:i.compact,level:i.level+1,value:S},null,8,["compact","level","value"]))),128))])):a.createCommentVNode("",!0)],64)}),64))],2)}}}),Oo=W(ez,[["__scopeId","data-v-ca3c524d"]]),tz=r=>(a.pushScopeId("data-v-7f5d0941"),r=r(),a.popScopeId(),r),rz={key:0,class:"schema-card-description"},nz=tz(()=>a.createElementVNode("polygon",{"fill-rule":"nonzero",points:"14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6"},null,-1)),oz=[nz],sz=a.defineComponent({__name:"Schema",props:{value:{},level:{default:0},name:{},compact:{type:Boolean},noncollapsible:{type:Boolean}},setup(r){const e=r,t=a.computed(()=>!(e.noncollapsible||e.level===0)),n=o=>e.noncollapsible&&o.stopPropagation();return(o,s)=>typeof o.value=="object"&&Object.keys(o.value).length?(a.openBlock(),a.createBlock(a.unref(ye.Disclosure),{key:0,defaultOpen:o.noncollapsible},{default:a.withCtx(({open:i})=>{var l;return[a.createElementVNode("div",{class:a.normalizeClass(["schema-card",[`schema-card--level-${o.level}`,{"schema-card--compact":o.compact,"schema-card--open":i}]])},[(l=o.value)!=null&&l.description?(a.openBlock(),a.createElementBlock("div",rz,[a.createVNode(a.unref(jt),{value:o.value.description},null,8,["value"])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["schema-properties",{"schema-properties-open":i}])},[a.withDirectives(a.createVNode(a.unref(ye.DisclosureButton),{as:o.noncollapsible?"div":"button",class:a.normalizeClass(["schema-card-title",{"schema-card-title--compact":o.compact}]),style:a.normalizeStyle({top:`calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${o.level}))`}),onClickCapture:n},{default:a.withCtx(()=>{var c,d,u;return[o.compact?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[t.value?(a.openBlock(),a.createElementBlock("svg",{key:0,class:a.normalizeClass(["schema-card-title-icon",{"schema-card-title-icon--open":i}]),fill:"currentColor",height:"14",viewBox:"0 0 14 14",width:"14",xmlns:"http://www.w3.org/2000/svg"},oz,2)):a.createCommentVNode("",!0),i?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(" Hide "+a.toDisplayString(((c=o.value)==null?void 0:c.title)??"Child Attributes"),1)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(" Show "+a.toDisplayString(((d=o.value)==null?void 0:d.title)??"Child Attributes"),1)],64))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[t.value?(a.openBlock(),a.createBlock(a.unref(Ze),{key:0,class:a.normalizeClass(["schema-card-title-icon",{"schema-card-title-icon--open":i}]),icon:"ChevronRight",size:"md"},null,8,["class"])):a.createCommentVNode("",!0),a.createVNode(GS,{name:((u=o.value)==null?void 0:u.title)??o.name,value:o.value},null,8,["name","value"])],64))]}),_:2},1032,["as","class","style"]),[[a.vShow,!(o.noncollapsible&&o.compact)]]),a.createVNode(a.unref(ye.DisclosurePanel),{static:o.noncollapsible},{default:a.withCtx(()=>{var c;return[o.value.properties||o.value.additionalProperties?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[o.value.properties?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(Object.keys((c=o.value)==null?void 0:c.properties),d=>{var u;return a.openBlock(),a.createBlock(Oo,{key:d,compact:o.compact,level:o.level,name:d,required:o.value.required&&o.value.required.length&&o.value.required.includes(d),value:(u=o.value.properties)==null?void 0:u[d]},null,8,["compact","level","name","required","value"])}),128)):a.createCommentVNode("",!0),o.value.additionalProperties?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[o.value.additionalProperties===!0||Object.keys(o.value.additionalProperties).length===0||!o.value.additionalProperties.type?(a.openBlock(),a.createBlock(Oo,{key:0,additional:"",compact:o.compact,level:o.level,noncollapsible:"",value:{type:"any",...o.value.additionalProperties}},null,8,["compact","level","value"])):(a.openBlock(),a.createBlock(Oo,{key:1,additional:"",compact:o.compact,level:o.level,noncollapsible:"",value:o.value.additionalProperties},null,8,["compact","level","value"]))],64)):a.createCommentVNode("",!0)],64)):(a.openBlock(),a.createBlock(Oo,{key:1,compact:o.compact,level:o.level,name:o.value.name,value:o.value},null,8,["compact","level","name","value"]))]}),_:1},8,["static"])],2)],2)]}),_:1},8,["defaultOpen"])):a.createCommentVNode("",!0)}}),yo=W(sz,[["__scopeId","data-v-7f5d0941"]]),az={class:"parameter-item"},iz={class:"parameter-item-container"},lz=a.defineComponent({__name:"ParameterItem",props:{parameter:{},showChildren:{type:Boolean,default:!1}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("li",az,[a.createElementVNode("div",iz,[a.createVNode(a.unref(Oo),{compact:"",description:e.parameter.description,level:0,name:e.parameter.name,noncollapsible:e.showChildren,required:e.parameter.required,value:e.parameter.schema},null,8,["description","name","noncollapsible","required","value"])])]))}}),cz=W(lz,[["__scopeId","data-v-f70ee55c"]]),dz={key:0,class:"parameters"},uz={class:"parameters-title"},hz={class:"parameter-list"},fz=a.defineComponent({__name:"Parameters",props:{parameters:{},showChildren:{type:Boolean,default:!1}},setup(r){return(e,t)=>{var n;return(n=e.parameters)!=null&&n.length?(a.openBlock(),a.createElementBlock("div",dz,[a.createElementVNode("div",uz,[a.renderSlot(e.$slots,"title",{},void 0,!0)]),a.createElementVNode("ul",hz,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.parameters,o=>(a.openBlock(),a.createBlock(cz,{key:o.name,parameter:o,showChildren:e.showChildren},null,8,["parameter","showChildren"]))),128))])])):a.createCommentVNode("",!0)}}}),ir=W(fz,[["__scopeId","data-v-45fca787"]]),pz={key:0},mz={class:"request-body-title"},gz=["value"],Oz={key:0,class:"request-body-description"},yz={key:0,class:"request-body-schema"},bz=a.defineComponent({__name:"RequestBody",props:{requestBody:{}},setup(r){var o;const e=r,t=a.computed(()=>{var s;return(s=e.requestBody)!=null&&s.content?Object.keys(e.requestBody.content):[]}),n=a.ref("application/json");return(o=e.requestBody)!=null&&o.content&&t.value.length>0&&(n.value=t.value[0]),(s,i)=>{var l,c,d,u;return e!=null&&e.requestBody?(a.openBlock(),a.createElementBlock("div",pz,[a.createElementVNode("div",mz,[a.renderSlot(s.$slots,"title",{},void 0,!0),a.createElementVNode("div",{class:a.normalizeClass(["request-body-title-select",{"request-body-title-no-select":t.value.length<=1}])},[a.createElementVNode("span",null,a.toDisplayString(n.value),1),e!=null&&e.requestBody&&t.value.length>1?a.withDirectives((a.openBlock(),a.createElementBlock("select",{key:0,"onUpdate:modelValue":i[0]||(i[0]=h=>n.value=h)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((l=e.requestBody)==null?void 0:l.content,(h,f)=>(a.openBlock(),a.createElementBlock("option",{key:f,value:f},a.toDisplayString(f),9,gz))),128))],512)),[[a.vModelSelect,n.value]]):a.createCommentVNode("",!0)],2),e!=null&&e.requestBody.description?(a.openBlock(),a.createElementBlock("div",Oz,[a.createVNode(a.unref(jt),{value:e.requestBody.description},null,8,["value"])])):a.createCommentVNode("",!0)]),(c=e==null?void 0:e.requestBody.content)!=null&&c[n.value]?(a.openBlock(),a.createElementBlock("div",yz,[a.createVNode(a.unref(yo),{compact:"",noncollapsible:"",value:(u=(d=e==null?void 0:e.requestBody.content)==null?void 0:d[n.value])==null?void 0:u.schema},null,8,["value"])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}}),Hm=W(bz,[["__scopeId","data-v-e095eb63"]]),vz={class:"endpoint-details"},wz={class:"endpoint-description"},kz=a.defineComponent({__name:"EndpointDetails",props:{operation:{}},setup(r){const e=r,{parameterMap:t}=Xm(e),{responses:n}=Wm(e.operation);return(o,s)=>{var i,l;return a.openBlock(),a.createElementBlock("div",vz,[a.createElementVNode("div",wz,[a.createVNode(a.unref(jt),{value:o.operation.description,withImages:""},null,8,["value"])]),a.createVNode(ir,{parameters:a.unref(t).path},{title:a.withCtx(()=>[a.createTextVNode("Path Parameters")]),_:1},8,["parameters"]),a.createVNode(ir,{parameters:a.unref(t).query},{title:a.withCtx(()=>[a.createTextVNode("Query Parameters")]),_:1},8,["parameters"]),a.createVNode(ir,{parameters:a.unref(t).header},{title:a.withCtx(()=>[a.createTextVNode("Headers")]),_:1},8,["parameters"]),a.createVNode(ir,{parameters:a.unref(t).body,showChildren:""},{title:a.withCtx(()=>[a.createTextVNode("Body Parameters")]),_:1},8,["parameters"]),a.createVNode(ir,{parameters:a.unref(t).formData},{title:a.withCtx(()=>[a.createTextVNode("Form Data")]),_:1},8,["parameters"]),(i=o.operation.information)!=null&&i.requestBody?(a.openBlock(),a.createBlock(Hm,{key:0,requestBody:(l=o.operation.information)==null?void 0:l.requestBody},{title:a.withCtx(()=>[a.createTextVNode("Body")]),_:1},8,["requestBody"])):a.createCommentVNode("",!0),a.createVNode(ir,{parameters:a.unref(n)},{title:a.withCtx(()=>[a.createTextVNode("Responses")]),_:1},8,["parameters"])])}}}),Sz={key:0},$z=a.defineComponent({__name:"EndpointPath",props:{path:{},deprecated:{type:Boolean}},setup(r){const e=r,t=o=>o.startsWith("{")&&o.endsWith("}"),n=a.computed(()=>e.path.split(/({[^}]+})/));return(o,s)=>(a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass(["endpoint-path",{deprecated:o.deprecated}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(i,l)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:l},[t(i)?(a.openBlock(),a.createElementBlock("em",Sz,a.toDisplayString(i),1)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(i),1)],64))],64))),128))],2))}}),Vf=W($z,[["__scopeId","data-v-a4eadd9b"]]);function Gi(r){return r.reduce((e,t)=>(e[t.name]=t.value,e),{})}function Pz(r){return/\s|-/.test(r)}function Mr(r,e=0){let t=[],n=" ".repeat(e),o=" ".repeat(e+2);for(const[s,i]of Object.entries(r)){let l=Pz(s)?`'${s}'`:s;if(Array.isArray(i)){const c=i.map(d=>typeof d=="string"?`'${d}'`:d&&typeof d=="object"?Mr(d,e+2):d).join(`, ${o}`);t.push(`${o}${l}: [${c}]`)}else if(i&&typeof i=="object")t.push(`${o}${l}: ${Mr(i,e+2)}`);else if(typeof i=="string"){let c=`${i}`;if(i.startsWith("JSON.stringify")){const d=i.split(`
232
- `);d.length>1&&(c=d.map((u,h)=>h===0?u:`${o}${u}`).join(`
233
- `))}else c=`'${i}'`;t.push(`${o}${l}: ${c}`)}else t.push(`${o}${l}: ${i}`)}return`{
234
- ${t.join(`,
235
- `)}
236
- ${n}}`}function xz(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?Gi(n.queryString):void 0),i=s.size?`?${s.toString()}`:"";(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(c=>{o.headers[c.name]=c.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(c=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${c.name}=${c.value}`:`${c.name}=${c.value}`})),Object.keys(o).forEach(c=>{o[c]===void 0&&delete o[c]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=`JSON.stringify(${Mr(JSON.parse(o.body))})`));const l=Object.keys(o).length?`, ${Mr(o)}`:"";return{target:"node",client:"undici",code:`import { request } from 'undici'
237
-
238
- const { statusCode, body } = await request('${n.url}${i}'${l})`}}function _z(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?Gi(n.queryString):void 0),i=s.size?`?${s.toString()}`:"";(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(c=>{o.headers[c.name]=c.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(c=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${c.name}=${c.value}`:`${c.name}=${c.value}`})),Object.keys(o).forEach(c=>{o[c]===void 0&&delete o[c]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=`JSON.stringify(${Mr(JSON.parse(o.body))})`));const l=Object.keys(o).length?`, ${Mr(o)}`:"";return{target:"node",client:"fetch",code:`fetch('${n.url}${i}'${l})`}}function Cz(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?Gi(n.queryString):void 0),i=s.size?`?${s.toString()}`:"";(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(c=>{o.headers[c.name]=c.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(c=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${c.name}=${c.value}`:`${c.name}=${c.value}`})),Object.keys(o).forEach(c=>{o[c]===void 0&&delete o[c]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=`JSON.stringify(${Mr(JSON.parse(o.body))})`));const l=Object.keys(o).length?`, ${Mr(o)}`:"";return{target:"js",client:"fetch",code:`fetch('${n.url}${i}'${l})`}}function Tz(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?Gi(n.queryString):void 0);s.size&&(o.query={},s.forEach((l,c)=>{o.query[c]=l})),(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(l=>{o.headers[l.name]=l.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(l=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(o).forEach(l=>{o[l]===void 0&&delete o[l]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=JSON.parse(o.body)));const i=Object.keys(o).length?`, ${Mr(o)}`:"";return{target:"js",client:"ofetch",code:`ofetch('${n.url}'${i})`}}function Qz(r){var e,t;const n={method:"GET",...r};n.method=n.method.toUpperCase();const o={method:n.method==="GET"?void 0:n.method},s=new URLSearchParams(n.queryString?Gi(n.queryString):void 0);s.size&&(o.query={},s.forEach((l,c)=>{o.query[c]=l})),(e=n.headers)!=null&&e.length&&(o.headers={},n.headers.forEach(l=>{o.headers[l.name]=l.value})),(t=n.cookies)!=null&&t.length&&(o.headers=o.headers||{},n.cookies.forEach(l=>{o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${l.name}=${l.value}`:`${l.name}=${l.value}`})),Object.keys(o).forEach(l=>{o[l]===void 0&&delete o[l]}),n.postData&&(o.body=n.postData.text,n.postData.mimeType==="application/json"&&(o.body=JSON.parse(o.body)));const i=Object.keys(o).length?`, ${Mr(o)}`:"";return{target:"node",client:"ofetch",code:`ofetch('${n.url}'${i})`}}function Vy(){const r=[xz,_z,Cz,Tz,Qz];return{get(e,t,n){const o=this.findPlugin(e,t);if(o)return o(n)},print(e,t,n){var o;return(o=this.get(e,t,n))==null?void 0:o.code},targets(){return r.map(e=>e().target).filter((e,t,n)=>n.indexOf(e)===t)},clients(){return r.map(e=>e().client)},plugins(){return r.map(e=>{const t=e();return{target:t.target,client:t.client}})},findPlugin(e,t){return r.find(n=>{const o=n();return o.target===e&&o.client===t})},hasPlugin(e,t){return!!this.findPlugin(e,t)}}}const Ez=a.defineComponent({__name:"ExamplePicker",props:{examples:{}},emits:["update:modelValue"],setup(r,{emit:e}){const t=r,n=e,o=a.ref(Object.keys(t.examples)[0]);function s(l){l&&(o.value=l)}a.watch(()=>t.examples,()=>{s(Object.keys(t.examples)[0])},{immediate:!0}),a.watch(o,()=>{o.value&&n("update:modelValue",o.value)},{immediate:!0});function i(l){if(!l)return"Select an example";const c=t.examples[l];return(c==null?void 0:c.summary)??l}return(l,c)=>(a.openBlock(),a.createBlock(Lm,{modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=d=>o.value=d),class:"example-selector",options:Object.keys(l.examples).map(d=>({label:i(d),value:d}))},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i(o.value)),1)]),_:1},8,["modelValue","options"]))}}),FS=W(Ez,[["__scopeId","data-v-652a7e14"]]),Nz={class:"request-header"},Az={class:"code-snippet"},Rz={key:0,class:"request-card-footer-addon"},Vz=a.defineComponent({__name:"ExampleRequest",props:{operation:{}},setup(r){const e=r,n=`components-Content-Operation-Example-Request${Zf(e.operation.path+e.operation.httpVerb+e.operation.operationId)}`,o=a.ref(Bs[n]??""),s=a.ref(),{copyToClipboard:i}=na(),{httpClient:l,setHttpClient:c,httpTargetTitle:d,httpClientTitle:u}=Jd(),{availableTargets:h}=Yi(),{server:f}=qs(),{authentication:p}=qn(),m=a.computed(()=>{var y,b,v,k,S,w,$;return((k=(v=(b=(y=e.operation.information)==null?void 0:y.requestBody)==null?void 0:b.content)==null?void 0:v["application/json"])==null?void 0:k.examples)&&Object.keys(($=(w=(S=e.operation.information)==null?void 0:S.requestBody)==null?void 0:w.content)==null?void 0:$["application/json"].examples).length>1}),g=a.inject(Kd),O=async()=>{var b;const y=tb({url:Vc(f)},sh(e.operation,{replaceVariables:!0},s.value),ud(p,((b=e.operation.information)==null?void 0:b.security)??(g==null?void 0:g())));try{return Vy().hasPlugin(l.targetKey.replace("javascript","js"),l.clientKey)?Vy().print(l.targetKey.replace("javascript","js"),l.clientKey,y)??"":await new Dy.HTTPSnippet(y).convert(l.targetKey,l.clientKey)}catch(v){return console.error("[ExampleRequest]",v),""}};return a.watch([()=>l,()=>f,()=>p,()=>s],async()=>{o.value=await O()},{deep:!0,immediate:!0}),a.onServerPrefetch(async()=>{const y=a.useSSRContext();await Dr(1),y.payload.data[n]=o.value}),a.computed(()=>Tp({serverState:f,authenticationState:p,operation:e.operation,globalSecurity:g==null?void 0:g()})),(y,b)=>(a.openBlock(),a.createBlock(a.unref(Xn),{class:"dark-mode"},{default:a.withCtx(()=>[a.createVNode(a.unref(Wn),{muted:""},{actions:a.withCtx(()=>[a.createVNode(Lm,{class:"request-client-picker",modelValue:JSON.stringify(a.unref(l)),options:a.unref(h).map(v=>({value:v.key,label:v.title,options:v.clients.map(k=>({value:JSON.stringify({targetKey:v.key,clientKey:k.key}),label:k.title}))})),"onUpdate:modelValue":b[0]||(b[0]=v=>a.unref(c)(JSON.parse(v)))},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(d))+" "+a.toDisplayString(a.unref(u)),1)]),_:1},8,["modelValue","options"]),a.createElementVNode("button",{class:"copy-button",type:"button",onClick:b[1]||(b[1]=v=>a.unref(i)(o.value))},[a.createVNode(a.unref(Ze),{icon:"Clipboard",width:"10px"})])]),default:a.withCtx(()=>[a.createElementVNode("div",Nz,[a.createVNode(a.unref(Eo),{as:"span",class:"request-method",method:y.operation.httpVerb},null,8,["method"]),a.renderSlot(y.$slots,"header",{},void 0,!0)])]),_:3}),a.createVNode(a.unref(Or),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:a.withCtx(()=>[a.createElementVNode("div",Az,[a.createVNode(a.unref(Lr),{content:o.value,hideCredentials:a.unref(c5)(a.unref(p)),lang:a.unref(l).targetKey,lineNumbers:""},null,8,["content","hideCredentials","lang"])])]),_:1}),m.value||y.$slots.footer?(a.openBlock(),a.createBlock(a.unref(Li),{key:0,class:"request-card-footer",contrast:""},{default:a.withCtx(()=>{var v,k,S,w;return[m.value?(a.openBlock(),a.createElementBlock("div",Rz,[a.createVNode(FS,{class:"request-example-selector",examples:((w=(S=(k=(v=y.operation.information)==null?void 0:v.requestBody)==null?void 0:k.content)==null?void 0:S["application/json"])==null?void 0:w.examples)??[],"onUpdate:modelValue":b[2]||(b[2]=$=>s.value=$)},null,8,["examples"])])):a.createCommentVNode("",!0),a.renderSlot(y.$slots,"footer",{},void 0,!0)]}),_:3})):a.createCommentVNode("",!0)]),_:3}))}}),KS=W(Vz,[["__scopeId","data-v-317d5c87"]]),Bz={key:0},Zz={key:1},Iz={key:0,class:"rule"},jz={class:"rule-title"},Dz={class:"rule-items"},Mz={key:2,class:"empty-state"},qz=a.defineComponent({__name:"ExampleResponse",props:{response:{}},setup(r){const e=["oneOf","anyOf","not"],t=n=>n.reduce((o,s)=>({...o,...s}),{});return(n,o)=>{var s,i,l,c,d,u,h;return(s=n.response)!=null&&s.example?(a.openBlock(),a.createElementBlock("div",Bz,[a.createVNode(a.unref(Lr),{content:a.unref(dc)((i=n.response)==null?void 0:i.example),lang:"json"},null,8,["content"])])):(l=n.response)!=null&&l.schema?(a.openBlock(),a.createElementBlock("div",Zz,[(c=n.response)!=null&&c.schema.type?(a.openBlock(),a.createBlock(a.unref(Lr),{key:0,content:a.unref(dc)(a.unref(Ge)((d=n.response)==null?void 0:d.schema,{emptyString:"…",mode:"read"})),lang:"json"},null,8,["content"])):a.createCommentVNode("",!0),(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(e,f=>{var p,m,g,O,y,b;return a.openBlock(),a.createElementBlock(a.Fragment,{key:f},[(p=n.response)!=null&&p.schema[f]&&(((m=n.response)==null?void 0:m.schema[f].length)>1||f==="not")?(a.openBlock(),a.createElementBlock("div",Iz,[a.createElementVNode("div",jz,a.toDisplayString(f),1),a.createElementVNode("ol",Dz,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((g=n.response)==null?void 0:g.schema[f],(v,k)=>(a.openBlock(),a.createElementBlock("li",{key:k,class:"rule-item"},[a.createVNode(a.unref(Lr),{content:a.unref(Ge)(v,{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])]))),128))])])):(O=n.response)!=null&&O.schema[f]&&((y=n.response)==null?void 0:y.schema[f].length)===1?(a.openBlock(),a.createBlock(a.unref(Lr),{key:1,content:a.unref(Ge)((b=n.response)==null?void 0:b.schema[f][0],{emptyString:"…",mode:"read"}),lang:"json"},null,8,["content"])):a.createCommentVNode("",!0)],64)}),64)),(u=n.response)!=null&&u.schema.allOf?(a.openBlock(),a.createBlock(a.unref(Lr),{key:1,content:t((h=n.response)==null?void 0:h.schema.allOf.map(f=>a.unref(Ge)(f,{emptyString:"…",mode:"read"}))),lang:"json"},null,8,["content"])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",Mz," No Body "))}}}),By=W(qz,[["__scopeId","data-v-800e8c7d"]]),Xz=r=>(a.pushScopeId("data-v-469e6333"),r=r(),a.popScopeId(),r),Wz={key:1,class:"scalar-card-checkbox"},zz=Xz(()=>a.createElementVNode("span",{class:"scalar-card-checkbox-checkmark"},null,-1)),Uz={class:"scalar-card-container custom-scroll"},Yz={key:1,class:"response-description"},Lz=a.defineComponent({__name:"PathResponses",props:{operation:{}},setup(r){const e=r,{copyToClipboard:t}=na(),n=a.ref(),o=a.computed(()=>{var f,p;return Object.keys(((p=(f=e==null?void 0:e.operation)==null?void 0:f.information)==null?void 0:p.responses)??{}).sort(m=>m==="default"?-1:0)}),s=a.computed(()=>!!c.value.examples),i=a.ref(0),l=a.computed(()=>{var p,m;const f=o.value[i.value];return(m=(p=e.operation.information)==null?void 0:p.responses)==null?void 0:m[f]}),c=a.computed(()=>{var p;const f=rb((p=l.value)==null?void 0:p.content);return(f==null?void 0:f["application/json"])??l.value}),d=a.computed(()=>({...c.value,example:s.value&&n.value?c.value.examples[n.value].value??c.value.examples[n.value]:c.value.example})),u=f=>{i.value=f},h=a.ref(!1);return(f,p)=>o.value.length?(a.openBlock(),a.createBlock(a.unref(Xn),{key:0},{default:a.withCtx(()=>{var m;return[a.createVNode(a.unref(XS),{muted:"",x:"as",onChange:u},{actions:a.withCtx(()=>{var g,O;return[(g=c.value)!=null&&g.example?(a.openBlock(),a.createElementBlock("button",{key:0,class:"code-copy",type:"button",onClick:p[0]||(p[0]=()=>{var y;return a.unref(t)((y=c.value)==null?void 0:y.example)})},[a.createVNode(a.unref(Ze),{icon:"Clipboard",width:"10px",x:"asd"})])):a.createCommentVNode("",!0),(O=c.value)!=null&&O.schema?(a.openBlock(),a.createElementBlock("label",Wz,[a.createTextVNode(" Show Schema "),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":p[1]||(p[1]=y=>h.value=y),class:"scalar-card-checkbox-input",type:"checkbox"},null,512),[[a.vModelCheckbox,h.value]]),zz])):a.createCommentVNode("",!0)]}),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,g=>(a.openBlock(),a.createBlock(a.unref(WS),{key:g},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(g),1)]),_:2},1024))),128))]),_:1}),a.createElementVNode("div",Uz,[a.createVNode(a.unref(Or),{muted:""},{default:a.withCtx(()=>{var g;return[(g=c.value)!=null&&g.schema?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[h.value&&d.value?(a.openBlock(),a.createBlock(a.unref(Lr),{key:0,content:d.value,lang:"json"},null,8,["content"])):(a.openBlock(),a.createBlock(By,{key:1,response:d.value},null,8,["response"]))],64)):(a.openBlock(),a.createBlock(By,{key:1,response:d.value},null,8,["response"]))]}),_:1})]),(m=l.value)!=null&&m.description||s.value?(a.openBlock(),a.createBlock(a.unref(Li),{key:0,class:"response-card-footer",muted:""},{default:a.withCtx(()=>{var g,O;return[s.value?(a.openBlock(),a.createBlock(FS,{key:0,class:"response-example-selector",examples:(g=c.value)==null?void 0:g.examples,"onUpdate:modelValue":p[2]||(p[2]=y=>n.value=y)},null,8,["examples"])):(O=l.value)!=null&&O.description?(a.openBlock(),a.createElementBlock("div",Yz,[a.createVNode(a.unref(jt),{class:"markdown",value:l.value.description},null,8,["value"])])):a.createCommentVNode("",!0)]}),_:1})):a.createCommentVNode("",!0)]}),_:1})):a.createCommentVNode("",!0)}}),JS=W(Lz,[["__scopeId","data-v-469e6333"]]),Hz=r=>(a.pushScopeId("data-v-f44e2b65"),r=r(),a.popScopeId(),r),Gz=Hz(()=>a.createElementVNode("span",null,"Test Request",-1)),Fz=a.defineComponent({__name:"TryRequestButton",props:{operation:{}},setup(r){const e=a.inject(Kd);return(t,n)=>(a.openBlock(),a.createBlock(a.unref(Eo),{as:"button",class:"show-api-client-button",method:t.operation.httpVerb,type:"button",onClick:n[0]||(n[0]=a.withModifiers(o=>{var s;return a.unref(Bc)(t.operation,(s=a.unref(e))==null?void 0:s())},["stop"]))},{default:a.withCtx(()=>[a.createVNode(a.unref(Ze),{icon:"PaperAirplane"}),Gz]),_:1},8,["method"]))}}),Bf=W(Fz,[["__scopeId","data-v-f44e2b65"]]),Kz={class:"examples"},Jz=a.defineComponent({__name:"Operation",props:{id:{},operation:{}},setup(r){const e=r,t=a.computed(()=>{var o;const n=["x-custom-examples","x-codeSamples","x-code-samples"];for(const s of n)if((o=e.operation.information)!=null&&o[s])return e.operation.information[s];return null});return(n,o)=>(a.openBlock(),a.createBlock(a.unref(oa),{id:n.id,label:n.operation.name},{default:a.withCtx(()=>[a.createVNode(a.unref(sa),null,{default:a.withCtx(()=>[a.createVNode(a.unref(Ym),null,{default:a.withCtx(()=>[a.createVNode(a.unref(Rs),null,{default:a.withCtx(()=>{var s,i;return[(s=n.operation.information)!=null&&s.deprecated?(a.openBlock(),a.createBlock(a.unref(wi),{key:0},{default:a.withCtx(()=>[a.createTextVNode(" Deprecated ")]),_:1})):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass((i=n.operation.information)!=null&&i.deprecated?"deprecated":"")},[a.createVNode(a.unref(zn),{level:3},{default:a.withCtx(()=>[a.createVNode(a.unref(Un),{id:n.id??""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(n.operation.name),1)]),_:1},8,["id"])]),_:1})],2),a.createVNode(kz,{operation:n.operation},null,8,["operation"])]}),_:1}),a.createVNode(a.unref(Rs),null,{default:a.withCtx(()=>[a.createElementVNode("div",Kz,[t.value?(a.openBlock(),a.createBlock($W,{key:0,examples:t.value,operation:n.operation},{header:a.withCtx(()=>{var s;return[a.createVNode(Vf,{class:"example-path",deprecated:(s=n.operation.information)==null?void 0:s.deprecated,path:n.operation.path},null,8,["deprecated","path"])]}),footer:a.withCtx(()=>[a.createVNode(Bf,{operation:n.operation},null,8,["operation"])]),_:1},8,["examples","operation"])):(a.openBlock(),a.createBlock(KS,{key:1,operation:n.operation},{header:a.withCtx(()=>{var s;return[a.createVNode(Vf,{class:"example-path",deprecated:(s=n.operation.information)==null?void 0:s.deprecated,path:n.operation.path},null,8,["deprecated","path"])]}),footer:a.withCtx(()=>[a.createVNode(Bf,{operation:n.operation},null,8,["operation"])]),_:1},8,["operation"])),a.createVNode(a.unref(JS),{operation:n.operation,style:{"margin-top":"12px"}},null,8,["operation"])])]),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),e$=W(Jz,[["__scopeId","data-v-9cd31f5d"]]),eU={class:"endpoint-details-card"},tU=a.defineComponent({__name:"EndpointDetailsCard",props:{operation:{}},setup(r){const e=r,{parameterMap:t}=Xm(e),{responses:n}=Wm(e.operation);return(o,s)=>{var i;return a.openBlock(),a.createElementBlock("div",eU,[a.createVNode(ir,{class:"endpoint-details-card-item",parameters:a.unref(t).path},{title:a.withCtx(()=>[a.createTextVNode("Path Parameters")]),_:1},8,["parameters"]),a.createVNode(ir,{class:"endpoint-details-card-item",parameters:a.unref(t).query},{title:a.withCtx(()=>[a.createTextVNode("Query Parameters")]),_:1},8,["parameters"]),a.createVNode(ir,{class:"endpoint-details-card-item",parameters:a.unref(t).header},{title:a.withCtx(()=>[a.createTextVNode("Headers")]),_:1},8,["parameters"]),a.createVNode(Hm,{class:"endpoint-details-card-item",requestBody:(i=o.operation.information)==null?void 0:i.requestBody},{title:a.withCtx(()=>[a.createTextVNode("Body")]),_:1},8,["requestBody"]),a.createVNode(ir,{class:"endpoint-details-card-item",parameters:a.unref(n)},{title:a.withCtx(()=>[a.createTextVNode("Responses")]),_:1},8,["parameters"])])}}}),rU=W(tU,[["__scopeId","data-v-f94bee14"]]),nU={class:"endpoint-header"},oU={class:"endpoint-details"},sU={class:"endpoint-label"},aU={class:"endpoint-label-path"},iU={class:"endpoint-label-name"},lU={class:"endpoint-content"},cU=a.defineComponent({__name:"OperationAccordion",props:{id:{},operation:{}},setup(r){const{copyToClipboard:e}=na();return(t,n)=>(a.openBlock(),a.createBlock(a.unref(US),{id:t.id,class:"reference-endpoint",transparent:""},a.createSlots({title:a.withCtx(()=>[a.createElementVNode("h3",nU,[a.createElementVNode("div",oU,[a.createVNode(a.unref(Eo),{class:"endpoint-type",method:t.operation.httpVerb,short:""},null,8,["method"]),a.createVNode(a.unref(Un),{id:t.id??"",class:"endpoint-anchor"},{default:a.withCtx(()=>{var o;return[a.createElementVNode("div",sU,[a.createElementVNode("div",aU,[a.createVNode(Vf,{deprecated:(o=t.operation.information)==null?void 0:o.deprecated,path:t.operation.path},null,8,["deprecated","path"])]),a.createElementVNode("div",iU,a.toDisplayString(t.operation.name),1)])]}),_:1},8,["id"])])])]),actions:a.withCtx(({active:o})=>[o?(a.openBlock(),a.createBlock(Bf,{key:0,operation:t.operation},null,8,["operation"])):(a.openBlock(),a.createBlock(a.unref(Ze),{key:1,class:"endpoint-try-hint",icon:"PaperAirplane"})),a.createVNode(a.unref(Ni),{class:"endpoint-copy",icon:"Clipboard",label:"Copy endpoint URL",size:"sm",variant:"ghost",onClick:n[0]||(n[0]=a.withModifiers(s=>a.unref(e)(t.operation.path),["stop"]))})]),default:a.withCtx(()=>[a.createElementVNode("div",lU,[a.createVNode(rU,{operation:t.operation},null,8,["operation"]),a.createVNode(a.unref(JS),{operation:t.operation},null,8,["operation"]),a.createVNode(KS,{operation:t.operation},null,8,["operation"])])]),_:2},[t.operation.description?{name:"description",fn:a.withCtx(()=>[a.createVNode(a.unref(jt),{value:t.operation.description,withImages:""},null,8,["value"])]),key:"0"}:void 0]),1032,["id"]))}}),dU=W(cU,[["__scopeId","data-v-3ee61fb6"]]),uU=a.defineComponent({__name:"ShowMoreButton",props:{id:{}},setup(r){const{setCollapsedSidebarItem:e}=vr();return(t,n)=>(a.openBlock(),a.createElementBlock("button",{class:"show-more",type:"button",onClick:n[0]||(n[0]=o=>a.unref(e)(t.id,!0))},[a.createTextVNode(" Show More "),a.createVNode(a.unref(Ze),{class:"show-more-icon",icon:"ChevronDown"})]))}}),t$=W(uU,[["__scopeId","data-v-60a9fbab"]]),hU={class:"endpoints"},fU=["onClick"],pU=a.defineComponent({__name:"Endpoints",props:{id:{},tag:{}},emits:["observeAndNavigate"],setup(r,{emit:e}){const t=r,n=e,{getOperationId:o,getTagId:s}=mt(),{setCollapsedSidebarItem:i}=vr(),l=d=>{n("observeAndNavigate",d)};async function c(d){l(o(d,t.tag)),i(s(t.tag),!0)}return(d,u)=>(a.openBlock(),a.createBlock(a.unref(oa),{id:d.id,label:d.tag.name.toUpperCase()},{default:a.withCtx(()=>[a.createVNode(a.unref(sa),null,{default:a.withCtx(()=>[a.createVNode(a.unref(Ym),null,{default:a.withCtx(()=>[a.createVNode(a.unref(Rs),null,{default:a.withCtx(()=>[a.createVNode(a.unref(zn),{level:2},{default:a.withCtx(()=>[a.createVNode(a.unref(Un),{id:a.unref(s)(d.tag)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(d.tag.name),1)]),_:1},8,["id"])]),_:1}),a.createVNode(a.unref(jt),{value:d.tag.description,withImages:""},null,8,["value"])]),_:1}),a.createVNode(a.unref(Rs),null,{default:a.withCtx(()=>{var h;return[((h=d.tag.operations)==null?void 0:h.length)>0?(a.openBlock(),a.createBlock(a.unref(Xn),{key:0,class:"scalar-card-sticky"},{default:a.withCtx(()=>[a.createVNode(a.unref(Wn),{muted:""},{default:a.withCtx(()=>[a.createTextVNode("Endpoints")]),_:1}),a.createVNode(a.unref(Or),{class:"custom-scroll",muted:""},{default:a.withCtx(()=>[a.createElementVNode("div",hU,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.tag.operations,f=>(a.openBlock(),a.createElementBlock("a",{key:a.unref(o)(f,d.tag),class:"endpoint",onClick:p=>c(f)},[a.createVNode(a.unref(Eo),{method:f.httpVerb},null,8,["method"]),a.createElementVNode("span",null,a.toDisplayString(f.path),1)],8,fU))),128))])]),_:1})]),_:1})):a.createCommentVNode("",!0)]}),_:1})]),_:1})]),_:1})]),_:1},8,["id","label"]))}}),mU=W(pU,[["__scopeId","data-v-82b13b6d"]]),gU=(r,e)=>{De.useMutationObserver(r,e,{childList:!0,subtree:!0})},OU=a.defineComponent({__name:"Tag",props:{id:{},tag:{},spec:{}},setup(r){const e=r,t=a.ref(null),{collapsedSidebarItems:n}=vr(),{getTagId:o}=mt(),s=d=>{var u;return((u=e.spec.tags)==null?void 0:u.length)!==1||(d==null?void 0:d.name)!=="default"||(d==null?void 0:d.description)!==""},i=d=>{window.location.href=`#${d}`},l=d=>{gU(t,(u,h)=>{u.forEach(f=>{Array.from(f.addedNodes).some(m=>m instanceof HTMLElement&&m.id===d)&&(i(d),h.disconnect())})})},c=d=>{document.getElementById(d)?i(d):l(d)};return(d,u)=>(a.openBlock(),a.createBlock(a.unref(Hi),{ref_key:"sectionContainerRef",ref:t,class:"tag-section-container"},{default:a.withCtx(()=>{var h;return[s(d.tag)?(a.openBlock(),a.createBlock(mU,{key:0,id:d.id,tag:d.tag,onObserveAndNavigate:c},null,8,["id","tag"])):a.createCommentVNode("",!0),!a.unref(n)[a.unref(o)(d.tag)]&&((h=d.tag.operations)==null?void 0:h.length)>1?(a.openBlock(),a.createBlock(t$,{key:1,id:d.id??""},null,8,["id"])):a.renderSlot(d.$slots,"default",{key:2},void 0,!0)]}),_:3},512))}}),r$=W(OU,[["__scopeId","data-v-7fef7ce7"]]),yU=a.defineComponent({__name:"TagAccordion",props:{tag:{},spec:{}},setup(r){const{getTagId:e}=mt();return(t,n)=>(a.openBlock(),a.createBlock(a.unref(YS),{class:"tag-section"},{title:a.withCtx(()=>[a.createVNode(a.unref(zn),{class:"tag-name",level:2},{default:a.withCtx(()=>[a.createVNode(a.unref(Un),{id:a.unref(e)(t.tag)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.tag.name),1)]),_:1},8,["id"])]),_:1}),a.createVNode(a.unref(jt),{class:"tag-description",value:t.tag.description,withImages:""},null,8,["value"])]),default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3}))}}),bU=W(yU,[["__scopeId","data-v-f11e3b56"]]),vU=a.defineComponent({__name:"Loading",props:{layout:{default:"default"},parsedSpec:{}},setup(r){const e=r,t=a.ref(!1),n=a.ref([]),o=a.ref([]),{getModelId:s,getSectionId:i,getTagId:l,hash:c,isIntersectionEnabled:d}=mt(),u=a.ref(e.layout!=="accordion"&&c.value);a.watch(()=>{var f;return(f=e.parsedSpec.tags)==null?void 0:f.length},f=>{var m,g;if(!c.value||typeof f!="number"||!e.parsedSpec.tags)return;const p=i();if(p.startsWith("tag")){let O=0;const y=((m=e.parsedSpec.tags)==null?void 0:m.findIndex(k=>l(k)===p))??0,b=c.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);if((b==null?void 0:b.length)===4){const k=b[2],S="/"+b[3];O=(g=e.parsedSpec.tags[y])==null?void 0:g.operations.findIndex(({httpVerb:w,path:$})=>k===w&&S===$)}const v=e.parsedSpec.tags[y];if(!v)return;v.name!=="default"&&(t.value=p!==c.value&&p.startsWith("tag")),n.value.push({...v,lazyOperations:v.operations.slice(O,O+2)})}else if(c.value.startsWith("model")){const O=Object.keys(ur(e.parsedSpec)??{}),[,y]=c.value.toLowerCase().split("/"),b=c.value==="models"?0:O.findIndex(v=>v.toLowerCase()===y);if(b===-1)return;o.value=O.slice(b,b+3)}else vi(c.value),setTimeout(()=>d.value=!0,1e3)},{immediate:!0});const h=Rf.on(({id:f})=>{const p=c.value;!p||f!==p||(h(),setTimeout(()=>{typeof window<"u"&&vi(p),u.value=!1,setTimeout(()=>d.value=!0,1e3)},300))});return a.onMounted(()=>{c.value||setTimeout(()=>d.value=!0,1e3)}),(f,p)=>a.withDirectives((a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["references-loading",{"references-loading-hidden-tag":t.value,"references-loading-top-spacer":n.value.length}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,m=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:m.id},[m.operations&&m.operations.length>0?(a.openBlock(),a.createBlock(a.unref(r$),{key:0,spec:f.parsedSpec,tag:m},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m.lazyOperations,g=>(a.openBlock(),a.createBlock(a.unref(e$),{key:`${g.httpVerb}-${g.operationId}`,operation:g,tag:m},null,8,["operation","tag"]))),128))]),_:2},1032,["spec","tag"])):a.createCommentVNode("",!0)],64))),128)),o.value.length?(a.openBlock(),a.createBlock(a.unref(Hi),{key:0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,m=>(a.openBlock(),a.createBlock(a.unref(oa),{key:m,label:m},{default:a.withCtx(()=>{var g;return[(g=a.unref(ur)(f.parsedSpec))!=null&&g[m]?(a.openBlock(),a.createBlock(a.unref(sa),{key:0},{default:a.withCtx(()=>{var O;return[a.createVNode(a.unref(zn),{level:2},{default:a.withCtx(()=>[a.createVNode(a.unref(Un),{id:a.unref(s)(m)},{default:a.withCtx(()=>{var y;return[a.createTextVNode(a.toDisplayString(((y=a.unref(ur)(f.parsedSpec))==null?void 0:y[m]).title??m),1)]}),_:2},1032,["id"])]),_:2},1024),a.createVNode(a.unref(yo),{name:m,noncollapsible:"",value:(O=a.unref(ur)(f.parsedSpec))==null?void 0:O[m]},null,8,["name","value"])]}),_:2},1024)):a.createCommentVNode("",!0)]}),_:2},1032,["label"]))),128))]),_:1})):a.createCommentVNode("",!0)],2)),[[a.vShow,u.value]])}}),wU=r=>(a.pushScopeId("data-v-f19478dd"),r=r(),a.popScopeId(),r),kU=wU(()=>a.createElementVNode("div",{id:"models"},null,-1)),SU=a.defineComponent({__name:"Models",props:{schemas:{}},setup(r){const e=r,{collapsedSidebarItems:t}=vr(),{getModelId:n}=mt(),o=a.computed(()=>Object.keys(e.schemas??{}).length<=3||t[n()]),s=a.computed(()=>{const i=Object.keys(e.schemas??{});return o.value?i:i.slice(0,3)});return(i,l)=>i.schemas?(a.openBlock(),a.createBlock(a.unref(Hi),{key:0},{default:a.withCtx(()=>[a.createVNode(a.unref(Hc),{id:"models",isLazy:!1},{default:a.withCtx(()=>[kU]),_:1}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(c,d)=>(a.openBlock(),a.createBlock(a.unref(Hc),{id:a.unref(n)(c),key:c,isLazy:""},{default:a.withCtx(()=>[a.createVNode(a.unref(oa),{id:a.unref(n)(c),label:c},{default:a.withCtx(()=>[i.schemas[c]?(a.openBlock(),a.createBlock(a.unref(sa),{key:0},{default:a.withCtx(()=>[a.createVNode(a.unref(zn),{level:2},{default:a.withCtx(()=>[a.createVNode(a.unref(Un),{id:a.unref(n)(c)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.schemas[c].title??c),1)]),_:2},1032,["id"])]),_:2},1024),a.createVNode(a.unref(yo),{name:c,noncollapsible:"",value:i.schemas[c]},null,8,["name","value"]),!o.value&&d===s.value.length-1?(a.openBlock(),a.createBlock(t$,{key:0,id:a.unref(n)(),class:"something-special"},null,8,["id"])):a.createCommentVNode("",!0)]),_:2},1024)):a.createCommentVNode("",!0)]),_:2},1032,["id","label"])]),_:2},1032,["id"]))),128))]),_:1})):a.createCommentVNode("",!0)}}),$U=W(SU,[["__scopeId","data-v-f19478dd"]]),PU={key:0,class:"properties"},xU={key:1},_U=a.defineComponent({__name:"ModelsAccordion",props:{schemas:{}},setup(r){const e=r,t=a.computed(()=>e.schemas?Object.entries(e.schemas).map(([o,s])=>({name:o,schema:s})):[]),{getModelId:n}=mt();return(o,s)=>e.schemas?(a.openBlock(),a.createBlock(a.unref(YS),{key:0,class:"reference-models"},{title:a.withCtx(()=>[a.createVNode(a.unref(zn),{level:2},{default:a.withCtx(()=>[a.createTextVNode("Models")]),_:1})]),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value,({name:i,schema:l})=>(a.openBlock(),a.createBlock(a.unref(US),{id:a.unref(n)(i),key:i,label:i},{title:a.withCtx(()=>[a.createVNode(a.unref(Un),{id:a.unref(n)(i),class:"reference-models-anchor"},{default:a.withCtx(()=>[a.createVNode(a.unref(GS),{class:"reference-models-label",name:i,value:l},null,8,["name","value"])]),_:2},1032,["id"])]),default:a.withCtx(()=>[l!=null&&l.properties?(a.openBlock(),a.createElementBlock("div",PU,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Object.entries(l.properties),([c,d])=>(a.openBlock(),a.createBlock(a.unref(Oo),{key:c,name:c,required:l.required&&!!l.required.length&&l.required.includes(c),value:d},null,8,["name","required","value"]))),128))])):(a.openBlock(),a.createElementBlock("div",xU,[a.createVNode(a.unref(Oo),{value:l},null,8,["value"])]))]),_:2},1032,["id","label"]))),128))]),_:1})):a.createCommentVNode("",!0)}}),CU=W(_U,[["__scopeId","data-v-2399f144"]]),TU=a.defineComponent({__name:"Webhook",props:{webhook:{}},setup(r){const e=r,{responses:t}=Wm(e.webhook);return(n,o)=>{var s;return n.webhook?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(Hm,{requestBody:(s=n.webhook.information)==null?void 0:s.requestBody},{title:a.withCtx(()=>[a.createTextVNode("Payload")]),_:1},8,["requestBody"]),a.createVNode(ir,{parameters:a.unref(t)},{title:a.withCtx(()=>[a.createTextVNode("Responses")]),_:1},8,["parameters"])],64)):a.createCommentVNode("",!0)}}}),QU=a.defineComponent({__name:"Webhooks",props:{webhooks:{}},setup(r){const e=r,t=a.computed(()=>Object.keys(e.webhooks??{})),{getWebhookId:n}=mt();return(o,s)=>t.value.length?(a.openBlock(),a.createBlock(a.unref(Hi),{key:0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value,i=>{var l;return a.openBlock(),a.createElementBlock(a.Fragment,{key:i},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(Object.keys((l=o.webhooks)==null?void 0:l[i]),c=>(a.openBlock(),a.createBlock(a.unref(oa),{id:a.unref(n)(i,c),key:c,label:i},{default:a.withCtx(()=>{var d;return[(d=o.webhooks)!=null&&d[i]?(a.openBlock(),a.createBlock(a.unref(sa),{key:0},{default:a.withCtx(()=>{var u,h;return[a.createVNode(a.unref(zn),{level:2},{default:a.withCtx(()=>[a.createVNode(a.unref(Un),{id:a.unref(n)(i,c)},{default:a.withCtx(()=>{var f;return[a.createTextVNode(a.toDisplayString((f=o.webhooks[i][c])==null?void 0:f.name),1)]}),_:2},1032,["id"])]),_:2},1024),(u=o.webhooks[i][c])!=null&&u.description?(a.openBlock(),a.createBlock(a.unref(jt),{key:0,value:(h=o.webhooks[i][c])==null?void 0:h.description,withImages:""},null,8,["value"])):a.createCommentVNode("",!0),a.createVNode(TU,{webhook:o.webhooks[i][c]},null,8,["webhook"])]}),_:2},1024)):a.createCommentVNode("",!0)]}),_:2},1032,["id","label"]))),128))],64)}),128))]),_:1})):a.createCommentVNode("",!0)}}),EU=a.createStaticVNode('<div class="section-flare" data-v-6c44c4e3><div class="section-flare-item" data-v-6c44c4e3></div><div class="section-flare-item" data-v-6c44c4e3></div><div class="section-flare-item" data-v-6c44c4e3></div><div class="section-flare-item" data-v-6c44c4e3></div><div class="section-flare-item" data-v-6c44c4e3></div><div class="section-flare-item" data-v-6c44c4e3></div><div class="section-flare-item" data-v-6c44c4e3></div><div class="section-flare-item" data-v-6c44c4e3></div></div>',1),NU={class:"narrow-references-container"},AU=a.defineComponent({__name:"Content",props:{parsedSpec:{},layout:{},baseServerURL:{}},setup(r){const e=r,{getOperationId:t,getTagId:n,hash:o}=mt(),{setServer:s}=qs(),{hideModels:i,collapsedSidebarItems:l}=vr(),c=p=>{if(p.url.match(/^(?!(https?|file):\/\/).+/)){let m=e.baseServerURL??window.location.origin;m=m.replace(/\/$/,"");const g=p.url.startsWith("/")?p.url:`/${p.url}`;p.url=`${m}${g}`.replace(/\/$/,"")}return p};a.watch(()=>e.parsedSpec,p=>{var g,O;let m=[{url:typeof window<"u"?window.location.origin:"/"}];p.servers&&p.servers.length>0?m=p.servers:e.parsedSpec.host&&(m=[{url:`${((g=e.parsedSpec.schemes)==null?void 0:g[0])??"http"}://${e.parsedSpec.host}${((O=e.parsedSpec)==null?void 0:O.basePath)??""}`}]),(e.baseServerURL||typeof window<"u")&&(m=m.map(c)),s({servers:m})},{deep:!0,immediate:!0});const d=a.computed(()=>e.layout==="accordion"?bU:r$),u=a.computed(()=>e.layout==="accordion"?dU:e$),h=a.computed(()=>e.layout==="accordion"?"after":"aside"),f=e.layout!=="accordion"&&!o.value.startsWith("model");return(p,m)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[EU,a.createElementVNode("div",NU,[a.renderSlot(p.$slots,"start",{},void 0,!0),a.createVNode(a.unref(vU),{layout:p.layout,parsedSpec:p.parsedSpec},null,8,["layout","parsedSpec"]),p.parsedSpec.info.title||p.parsedSpec.info.description?(a.openBlock(),a.createBlock(a.unref(cW),{key:0,info:p.parsedSpec.info,parsedSpec:p.parsedSpec},{[h.value]:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass(["introduction-cards",{"introduction-cards-row":p.layout==="accordion"}])},[a.createVNode(a.unref(p9)),a.createVNode(a.unref(_9)),a.createVNode(a.unref(YX),{parsedSpec:p.parsedSpec},null,8,["parsedSpec"])],2)]),_:2},1032,["info","parsedSpec"])):a.renderSlot(p.$slots,"empty-state",{key:1},void 0,!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.parsedSpec.tags,g=>(a.openBlock(),a.createBlock(a.unref(Hc),{id:a.unref(n)(g),key:a.unref(n)(g),isLazy:a.unref(f)&&!a.unref(l)[a.unref(n)(g)]},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(d.value),{id:a.unref(n)(g),spec:p.parsedSpec,tag:g},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(g.operations,(O,y)=>(a.openBlock(),a.createBlock(a.unref(Hc),{id:a.unref(t)(O,g),key:`${O.httpVerb}-${O.operationId}`,isLazy:y>0},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u.value),{id:a.unref(t)(O,g),operation:O,tag:g},null,8,["id","operation","tag"]))]),_:2},1032,["id","isLazy"]))),128))]),_:2},1032,["id","spec","tag"]))]),_:2},1032,["id","isLazy"]))),128)),p.parsedSpec.webhooks?(a.openBlock(),a.createBlock(a.unref(QU),{key:2,webhooks:p.parsedSpec.webhooks},null,8,["webhooks"])):a.createCommentVNode("",!0),a.unref(Ep)(p.parsedSpec)&&!a.unref(i)?(a.openBlock(),a.createElementBlock(a.Fragment,{key:3},[p.layout==="accordion"?(a.openBlock(),a.createBlock(a.unref(CU),{key:0,schemas:a.unref(ur)(p.parsedSpec)},null,8,["schemas"])):(a.openBlock(),a.createBlock(a.unref($U),{key:1,schemas:a.unref(ur)(p.parsedSpec)},null,8,["schemas"]))],64)):a.createCommentVNode("",!0),a.renderSlot(p.$slots,"end",{},void 0,!0)])],64))}}),n$=W(AU,[["__scopeId","data-v-6c44c4e3"]]),RU=r=>(a.pushScopeId("data-v-391b4e37"),r=r(),a.popScopeId(),r),VU={class:"start custom-scroll"},BU={class:"start-copy"},ZU=a.createStaticVNode('<div class="start-logo" data-v-391b4e37><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-391b4e37></path></svg></div><h1 class="start-h1" data-v-391b4e37>Swagger Editor</h1><p class="start-p" data-v-391b4e37> Welcome to the Scalar API References + Swagger Editor, a Free &amp; Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>',3),IU={class:"start-cta"},jU={class:"start-row"},DU=a.createStaticVNode('<div class="start-section start-section-integrations" data-v-391b4e37><div class="start-h2" data-v-391b4e37>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/packages/fastify-api-reference#readme" target="_blank" data-v-391b4e37><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-391b4e37></path></svg><span data-v-391b4e37>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#from-a-cdn" target="_blank" data-v-391b4e37><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g data-v-391b4e37><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-391b4e37></path></g></svg><span data-v-391b4e37>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-vuejs" target="_blank" data-v-391b4e37><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="currentColor" fill-rule="nonzero" data-v-391b4e37><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-391b4e37></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-391b4e37></polygon></g></svg><span data-v-391b4e37>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-react" target="_blank" data-v-391b4e37><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-391b4e37><g fill="none" fill-rule="evenodd" data-v-391b4e37><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-391b4e37></circle><g stroke="currentColor" data-v-391b4e37><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-391b4e37></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-391b4e37></ellipse></g></g></svg><span data-v-391b4e37>React</span></a></div>',1),MU={class:"start-section start-section-colors"},qU=RU(()=>a.createElementVNode("p",{class:"start-h2"},"THEMING",-1)),XU=["onClick"],WU=a.createStaticVNode('<p class="start-h1" data-v-391b4e37>Features</p><ul class="start-ul" data-v-391b4e37><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-391b4e37><p class="start-h3" data-v-391b4e37>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>',2),zU=a.defineComponent({__name:"GettingStarted",props:{theme:{}},emits:["changeTheme","loadSwaggerFile","linkSwaggerFile","updateContent"],setup(r,{emit:e}){const t=e,n=["default","alternate","moon","purple","solarized","bluePlanet","saturn","kepler","mars","deepSpace"];async function o(){const s=await fetch("https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml");t("updateContent",await s.text())}return(s,i)=>(a.openBlock(),a.createElementBlock("div",VU,[a.createElementVNode("div",BU,[ZU,a.createElementVNode("div",IU,[a.createVNode(a.unref(af),{fullWidth:"",onClick:o},{default:a.withCtx(()=>[a.createTextVNode(" Show Example ")]),_:1}),a.createVNode(a.unref(af),{fullWidth:"",variant:"outlined",onClick:i[0]||(i[0]=l=>s.$emit("loadSwaggerFile"))},{default:a.withCtx(()=>[a.createTextVNode(" Upload File ")]),_:1})])]),a.createElementVNode("div",jU,[DU,a.createElementVNode("div",MU,[qU,(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(n,l=>a.createElementVNode("div",{key:l,class:a.normalizeClass(["start-item",{"start-item-active":l===s.theme}]),onClick:c=>s.$emit("changeTheme",{id:l,label:a.unref(dg)[l]})},a.toDisplayString(a.unref(dg)[l]),11,XU)),64))])]),WU]))}}),o$=W(zU,[["__scopeId","data-v-391b4e37"]]),UU={class:"references-header"},YU={key:0,class:"references-navigation t-doc__sidebar"},LU={class:"references-navigation-list"},HU={class:"references-editor"},GU={class:"references-editor-textarea"},FU={class:"references-rendered"},KU={key:0,class:"references-footer"},JU=a.defineComponent({inheritAttrs:!1,__name:"ApiReferenceLayout",props:{configuration:{},parsedSpec:{},rawSpec:{}},emits:["changeTheme","updateContent","loadSwaggerFile","linkSwaggerFile","toggleDarkMode"],setup(r){const e=r,t=De.useMediaQuery("(min-width: 1150px)"),n=a.ref("100dvh"),o=a.ref(null);De.useResizeObserver(o,w=>{n.value=w[0].contentRect.height+"px"});const{breadcrumb:s,collapsedSidebarItems:i,isSidebarOpen:l,setCollapsedSidebarItem:c,hideModels:d,setParsedSpec:u}=vr(),{getPathRoutingId:h,getSectionId:f,getTagId:p,hash:m,isIntersectionEnabled:g,pathRouting:O,updateHash:y}=mt();O.value=e.configuration.pathRouting,a.onBeforeMount(()=>y());const b=async w=>{var $;g.value=!1,y(),w?vi(w):($=o.value)==null||$.scrollTo(0,0),await Dr(100),g.value=!0};a.onMounted(()=>{Mm.on(({specTitle:w})=>{CS(e.rawSpec,w)}),window.onhashchange=()=>b(decodeURIComponent(window.location.hash.replace(/^#/,""))),window.onpopstate=()=>O.value&&b(h(window.location.pathname))});const v=a.computed(()=>t.value||!e.configuration.isEditable),k=De.useDebounceFn(w=>{if((w.target.scrollTop??0)<50){const T=e.configuration.pathRouting?e.configuration.pathRouting.basePath:window.location.pathname;window.history.replaceState({},"",T+window.location.search),m.value=""}}),S=a.computed(()=>({breadcrumb:s.value,spec:e.parsedSpec}));return a.watch(()=>e.parsedSpec,u,{deep:!0}),a.onServerPrefetch(()=>{var $,T;const w=a.useSSRContext();if(w&&(($=w.payload).data||($.data=ah()),e.configuration.pathRouting)){const R=h(w.url);m.value=R,w.payload.data.hash=R;for(const B in i)Object.hasOwn(i,B)&&delete i[B];if(R)c(f(R),!0);else{const B=(T=e.parsedSpec.tags)==null?void 0:T[0];B&&c(p(B),!0)}w.payload.data["useSidebarContent-collapsedSidebarItems"]=i}}),ye.provideUseId(()=>{var R;const w=a.getCurrentInstance(),$="scalar-instance-id";if(!w)return $;let T=w.uid;return typeof window>"u"?(w.attrs||(w.attrs={}),w.attrs[$]=T):(R=w.vnode.el)!=null&&R.getAttribute&&(T=w.vnode.el.getAttribute($)),`${$}-${T}`}),a.provide(Kd,()=>e.parsedSpec.security),a.provide(Dm,()=>e.configuration.hideDownloadButton),d.value=e.configuration.hideModels??!1,(w,$)=>{var T,R;return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(a.unref(qy),{id:(T=w.configuration)==null?void 0:T.theme,withDefaultFonts:(R=w.configuration)==null?void 0:R.withDefaultFonts},null,8,["id","withDefaultFonts"]),a.createVNode(a.unref(Wy),null,{default:a.withCtx(({styles:B})=>[a.createVNode(a.unref(F$),null,{default:a.withCtx(({styles:M})=>{var V,K;return[a.createElementVNode("div",{ref_key:"documentEl",ref:o,class:a.normalizeClass(["scalar-api-reference references-layout",[{"references-editable":w.configuration.isEditable,"references-sidebar":w.configuration.showSidebar,"references-sidebar-mobile-open":a.unref(l),"references-classic":w.configuration.layout==="classic"},B,M,w.$attrs.class]]),style:a.normalizeStyle({"--full-height":n.value}),onScrollPassive:$[4]||($[4]=(...L)=>a.unref(k)&&a.unref(k)(...L))},[a.createElementVNode("div",UU,[a.renderSlot(w.$slots,"header",a.normalizeProps(a.guardReactiveProps(S.value)),void 0,!0)]),w.configuration.showSidebar?(a.openBlock(),a.createElementBlock("aside",YU,[a.createElementVNode("div",LU,[a.createVNode(a.unref(zm),{parsedSpec:w.parsedSpec},{"sidebar-start":a.withCtx(()=>[a.renderSlot(w.$slots,"sidebar-start",a.normalizeProps(a.guardReactiveProps(S.value)),void 0,!0)]),"sidebar-end":a.withCtx(()=>[a.renderSlot(w.$slots,"sidebar-end",a.normalizeProps(a.guardReactiveProps(S.value)),void 0,!0)]),_:3},8,["parsedSpec"])])])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",HU,[a.createElementVNode("div",GU,[a.renderSlot(w.$slots,"editor",a.normalizeProps(a.guardReactiveProps(S.value)),void 0,!0)])],512),[[a.vShow,w.configuration.isEditable]]),v.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",FU,[a.createVNode(a.unref(n$),{baseServerURL:w.configuration.baseServerURL,layout:w.configuration.layout==="classic"?"accordion":"default",parsedSpec:w.parsedSpec},a.createSlots({start:a.withCtx(()=>[a.renderSlot(w.$slots,"content-start",a.normalizeProps(a.guardReactiveProps(S.value)),void 0,!0)]),end:a.withCtx(()=>[a.renderSlot(w.$slots,"content-end",a.normalizeProps(a.guardReactiveProps(S.value)),void 0,!0)]),_:2},[(V=w.configuration)!=null&&V.isEditable?{name:"empty-state",fn:a.withCtx(()=>{var L;return[a.createVNode(o$,{theme:((L=w.configuration)==null?void 0:L.theme)||"default",onChangeTheme:$[0]||($[0]=ne=>w.$emit("changeTheme",ne)),onLinkSwaggerFile:$[1]||($[1]=ne=>w.$emit("linkSwaggerFile")),onLoadSwaggerFile:$[2]||($[2]=ne=>w.$emit("loadSwaggerFile")),onUpdateContent:$[3]||($[3]=ne=>w.$emit("updateContent",ne))},null,8,["theme"])]}),key:"0"}:void 0]),1032,["baseServerURL","layout","parsedSpec"])]),w.$slots.footer?(a.openBlock(),a.createElementBlock("div",KU,[a.renderSlot(w.$slots,"footer",a.normalizeProps(a.guardReactiveProps(S.value)),void 0,!0)])):a.createCommentVNode("",!0)],64)):a.createCommentVNode("",!0),a.createVNode(jS,{parsedSpec:w.parsedSpec,proxyUrl:(K=w.configuration)==null?void 0:K.proxy},{"sidebar-start":a.withCtx(()=>[a.renderSlot(w.$slots,"sidebar-start",a.normalizeProps(a.guardReactiveProps(S.value)),void 0,!0)]),"sidebar-end":a.withCtx(()=>[a.renderSlot(w.$slots,"sidebar-end",a.normalizeProps(a.guardReactiveProps(S.value)),void 0,!0)]),_:3},8,["parsedSpec","proxyUrl"])],38)]}),_:2},1024)]),_:3}),a.createVNode(a.unref(Y8))],64)}}}),Gm=W(JU,[["__scopeId","data-v-7307c95d"]]),eY={},tY={class:"references-classic-header-container"},rY={class:"references-classic-header"};function nY(r,e){return a.openBlock(),a.createElementBlock("div",tY,[a.createElementVNode("div",rY,[a.renderSlot(r.$slots,"default",{},void 0,!0),a.renderSlot(r.$slots,"dark-mode-toggle",{},void 0,!0)])])}const oY=W(eY,[["render",nY],["__scopeId","data-v-a860f78f"]]),sY=r=>(a.pushScopeId("data-v-559a0a79"),r=r(),a.popScopeId(),r),aY={class:"darklight-reference"},iY={key:0},lY={key:1},cY=sY(()=>a.createElementVNode("a",{class:"darklight-reference-promo",href:"https://www.scalar.com",target:"_blank"}," Powered by scalar.com ",-1)),dY=a.defineComponent({__name:"DarkModeToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("div",aY,[a.createElementVNode("button",{class:"darklight",type:"button",onClick:t[0]||(t[0]=n=>e.$emit("toggleDarkMode"))},[a.createVNode(a.unref(Ze),{icon:"LightDarkModeToggle"}),e.isDarkMode?(a.openBlock(),a.createElementBlock("span",iY,"Light Mode")):(a.openBlock(),a.createElementBlock("span",lY,"Dark Mode"))]),cY]))}}),s$=W(dY,[["__scopeId","data-v-559a0a79"]]),uY=a.defineComponent({__name:"DarkModeIconToggle",props:{isDarkMode:{type:Boolean}},emits:["toggleDarkMode"],setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("button",{class:"darklight",type:"button",onClick:t[0]||(t[0]=n=>e.$emit("toggleDarkMode"))},[a.createVNode(a.unref(Ze),{icon:e.isDarkMode?"DarkMode":"LightMode"},null,8,["icon"]),a.createVNode(HS,null,{default:a.withCtx(()=>[a.createTextVNode(" Switch to "+a.toDisplayString(e.isDarkMode?"Light":"Dark")+" Mode ",1)]),_:1})]))}}),a$=W(uY,[["__scopeId","data-v-8f61ca56"]]);function hY(r,e){let t=r;const n=e.required&&e.required.includes(r);return t+=n?" REQUIRED ":" optional ",e.properties[r]&&(t+=e.properties[r].type,e.properties[r].description&&(t+=" "+e.properties[r].description)),t}function fY(r){var n;const e=["Body"],t=(n=r==null?void 0:r.schema)==null?void 0:n.properties;return t&&Object.keys(t).forEach(o=>{if(!r.schema)return;e.push(hY(o,r.schema));const s=t[o];s.type==="object"&&!!s.properties&&s.properties&&Object.keys(s.properties).forEach(l=>{var c,d;e.push(`${l} ${(d=(c=s.properties)==null?void 0:c[l])==null?void 0:d.type}`)})}),e}function pY(r){var e,t,n;try{const o=(n=(t=(e=r==null?void 0:r.information)==null?void 0:e.requestBody)==null?void 0:t.content)==null?void 0:n["application/json"];if(!o)throw new Error("Body not found");return fY(o)}catch{return!1}}const mY=r=>(a.pushScopeId("data-v-8395f85c"),r=r(),a.popScopeId(),r),gY=mY(()=>a.createElementVNode("div",{class:"ref-search-meta"},[a.createElementVNode("span",null,"↑↓ Navigate"),a.createElementVNode("span",null,"⏎ Select")],-1)),OY=a.defineComponent({__name:"SearchModal",props:{parsedSpec:{},modalState:{}},setup(r){const e=r,t=a.toRef(e,"parsedSpec"),n={heading:"DocsPage",model:"JsonObject",req:"Terminal",tag:"CodeFolder",webhook:"Terminal"},o=De.useMagicKeys(),s=a.ref([]),i=a.ref([]),l=a.ref(0),c=a.ref(""),d=a.ref(null),u=new E$(s.value,{keys:["title","description","body"]}),h=()=>{l.value=0,i.value=u.search(c.value)},f=a.computed(()=>k.value[l.value]),{getHeadingId:p,getWebhookId:m,getModelId:g,getOperationId:O,getTagId:y}=mt();a.watch(()=>e.modalState.open,T=>{T&&(c.value="",l.value=0,i.value=[])});const{setCollapsedSidebarItem:b,hideModels:v}=vr();a.watch(t.value,async()=>{var L,ne,ge,Se,Pe;if(s.value=[],!((ne=(L=e.parsedSpec)==null?void 0:L.tags)!=null&&ne.length)&&!((ge=e.parsedSpec)!=null&&ge.webhooks)){u.setCollection([]);return}const T=[],R=await pi(((Se=e.parsedSpec.info)==null?void 0:Se.description)??"");R.length&&(R.forEach(ie=>{T.push({type:"heading",title:`Info > ${ie.value}`,description:"",href:`#${p(ie)}`,tag:ie.slug,body:""})}),s.value=s.value.concat(T)),(Pe=e.parsedSpec.tags)==null||Pe.forEach(ie=>{const q={title:ie.name,href:`#${y(ie)}`,description:ie.description,type:"tag",tag:ie.name,body:""};s.value.push(q),ie.operations&&ie.operations.forEach(N=>{const{parameterMap:I}=Xm({operation:N}),Z=pY(N)||I.value;let P=null;typeof Z!="boolean"&&(P=Z);const Q={type:"req",title:N.name??N.path,href:`#${O(N,ie)}`,operationId:N.operationId,description:N.description??"",httpVerb:N.httpVerb,path:N.path,tag:ie.name,operation:N};P&&(Q.body=P),s.value.push(Q)})});const B=e.parsedSpec.webhooks,M=[];B&&Object.keys(B).forEach(ie=>{Object.keys(B[ie]).forEach(N=>{var I;M.push({type:"webhook",title:`Webhook: ${(I=B[ie][N])==null?void 0:I.name}`,href:`#${m(ie,N)}`,description:ie,httpVerb:N,tag:ie,body:""})}),s.value=s.value.concat(M)});const V=v.value?{}:ur(e.parsedSpec),K=[];V&&(Object.keys(V).forEach(ie=>{K.push({type:"model",title:"Model",href:`#${g(ie)}`,description:V[ie].title??ie,tag:ie,body:""})}),s.value=s.value.concat(K)),u.setCollection(s.value)},{immediate:!0}),De.whenever(o.enter,()=>{e.modalState.open&&window&&(w(f.value),window.location.hash=f.value.item.href,e.modalState.hide())}),De.whenever(o.ArrowDown,()=>{var T;e.modalState.open&&window&&(l.value<k.value.length-1?l.value++:l.value=0,(T=document.getElementById(f.value.item.href))==null||T.scrollIntoView({behavior:"smooth",block:"center"}))}),De.whenever(o.ArrowUp,()=>{var T;e.modalState.open&&window&&(l.value>0?l.value--:l.value=k.value.length-1,(T=document.getElementById(f.value.item.href))==null||T.scrollIntoView({behavior:"smooth",block:"center"}))});const k=a.computed(()=>c.value.length===0?s.value.map(T=>({item:T})):i.value),S=/#(tag\/[^/]*)/,w=T=>{let R="models";const B=T.item.href.match(S);B!=null&&B.length&&B.length>1&&(R=B[1]),b(R,!0),e.modalState.hide()};function $(T){const R=new URL(window.location.href);return R.hash=T,R.toString()}return(T,R)=>(a.openBlock(),a.createBlock(a.unref(H1),{state:T.modalState,variant:"search"},{default:a.withCtx(()=>[a.createElementVNode("div",{ref_key:"searchModalRef",ref:d,class:"ref-search-container"},[a.createVNode(a.unref(UA),{modelValue:c.value,"onUpdate:modelValue":R[0]||(R[0]=B=>c.value=B),onInput:h},null,8,["modelValue"])],512),a.createVNode(a.unref(GA),{class:"ref-search-results custom-scroll",noResults:!k.value.length},{query:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c.value),1)]),default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k.value,(B,M)=>(a.openBlock(),a.createBlock(a.unref(oR),{id:B.item.href,key:B.refIndex,active:l.value===M,href:$(B.item.href),icon:n[B.item.type],onClick:V=>w(B),onFocus:V=>l.value=M},a.createSlots({default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(B.item.title)+" ",1)]),_:2},[(B.item.httpVerb||B.item.path)&&B.item.path!==B.item.title?{name:"description",fn:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(B.item.path),1)]),key:"0"}:B.item.description?{name:"description",fn:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(B.item.description),1)]),key:"1"}:void 0,B.item.type==="req"?{name:"addon",fn:a.withCtx(()=>[a.createVNode(IS,{method:B.item.httpVerb??"get"},null,8,["method"])]),key:"2"}:void 0]),1032,["id","active","href","icon","onClick","onFocus"]))),128))]),_:1},8,["noResults"]),gY]),_:1},8,["state"]))}}),i$=W(OY,[["__scopeId","data-v-8395f85c"]]),yY=r=>(a.pushScopeId("data-v-edb0a931"),r=r(),a.popScopeId(),r),bY={class:"sidebar-search-input"},vY=yY(()=>a.createElementVNode("span",{class:"sidebar-search-placeholder"},"Search",-1)),wY={class:"sidebar-search-shortcut"},kY={class:"sidebar-search-key"},SY=a.defineComponent({__name:"SearchButton",props:{spec:{},searchHotKey:{default:"k"}},setup(r){const e=r,t=G1(),n=De.useMagicKeys({passive:!1,onEventFired(o){!Gl()&&o.ctrlKey&&o.key===e.searchHotKey&&(o.preventDefault(),o.stopPropagation())}});return De.whenever(n[`${Gl()?"meta":"control"}_${e.searchHotKey}`],()=>t.open?t.hide():t.show()),(o,s)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("button",{class:a.normalizeClass(["sidebar-search",o.$attrs.class]),type:"button",onClick:s[0]||(s[0]=(...i)=>a.unref(t).show&&a.unref(t).show(...i))},[a.createVNode(a.unref(Ze),{class:"search-icon",icon:"Search",size:"sm"}),a.createElementVNode("div",bY,[vY,a.createElementVNode("span",wY,[a.createElementVNode("span",kY,a.toDisplayString(a.unref(Gl)()?"⌘":"⌃")+a.toDisplayString(o.searchHotKey),1)])])],2),a.createVNode(i$,{modalState:a.unref(t),parsedSpec:o.spec},null,8,["modalState","parsedSpec"])],64))}}),Fm=W(SY,[["__scopeId","data-v-edb0a931"]]),$Y=a.defineComponent({__name:"ClassicLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(r){const e=r,t=a.computed(()=>({...e.configuration,showSidebar:!1}));return(n,o)=>(a.openBlock(),a.createBlock(Gm,{configuration:t.value,parsedSpec:n.parsedSpec,rawSpec:n.rawSpec},{"content-start":a.withCtx(({spec:s})=>[a.createVNode(oY,null,{"dark-mode-toggle":a.withCtx(()=>[a.createVNode(a.unref(a$),{isDarkMode:n.isDark,onToggleDarkMode:o[0]||(o[0]=i=>n.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),default:a.withCtx(()=>[a.createVNode(Fm,{class:"t-doc__sidebar",searchHotKey:t.value.searchHotKey,spec:s},null,8,["searchHotKey","spec"])]),_:2},1024)]),"content-end":a.withCtx(()=>[a.renderSlot(n.$slots,"footer")]),_:3},8,["configuration","parsedSpec","rawSpec"]))}}),PY={class:"references-mobile-header t-doc__header"},xY={class:"references-mobile-breadcrumbs"},_Y={class:"references-mobile-header-actions"},CY=a.defineComponent({__name:"MobileHeader",props:{open:{type:Boolean}},emits:["update:open"],setup(r){const{breadcrumb:e}=vr();return(t,n)=>(a.openBlock(),a.createElementBlock("div",PY,[a.createVNode(a.unref(Ni),{icon:t.open?"Close":"Menu",label:t.open?"Close Menu":"Open Menu",size:"md",onClick:n[0]||(n[0]=o=>t.$emit("update:open",!t.open))},null,8,["icon","label"]),a.createElementVNode("span",xY,a.toDisplayString(a.unref(e)),1),a.createElementVNode("div",_Y,[a.renderSlot(t.$slots,"actions",{},void 0,!0)])]))}}),TY=W(CY,[["__scopeId","data-v-0242e3de"]]),QY={class:"scalar-api-references-standalone-search"},EY=a.defineComponent({__name:"ModernLayout",props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},emits:["toggleDarkMode"],setup(r){const e=r,t=De.useMediaQuery("(max-width: 1000px)"),{isSidebarOpen:n}=vr();a.watch(t,(s,i)=>{s&&!i&&(n.value=!1)});const{hash:o}=mt();return a.watch(o,(s,i)=>{s&&s!==i&&(n.value=!1)}),(s,i)=>(a.openBlock(),a.createBlock(Gm,{class:a.normalizeClass({"scalar-api-references-standalone-mobile":s.configuration.showSidebar}),configuration:s.configuration,parsedSpec:s.parsedSpec,rawSpec:s.rawSpec},{header:a.withCtx(()=>[e.configuration.showSidebar?(a.openBlock(),a.createBlock(TY,{key:0,open:a.unref(n),"onUpdate:open":i[0]||(i[0]=l=>a.isRef(n)?n.value=l:null)},null,8,["open"])):a.createCommentVNode("",!0)]),"sidebar-start":a.withCtx(({spec:l})=>{var c;return[a.createElementVNode("div",QY,[a.createVNode(Fm,{searchHotKey:(c=e.configuration)==null?void 0:c.searchHotKey,spec:l},null,8,["searchHotKey","spec"])])]}),"sidebar-end":a.withCtx(()=>[a.createVNode(a.unref(s$),{isDarkMode:s.isDark,onToggleDarkMode:i[1]||(i[1]=l=>s.$emit("toggleDarkMode"))},null,8,["isDarkMode"])]),"content-end":a.withCtx(()=>[a.renderSlot(s.$slots,"footer",{},void 0,!0)]),_:3},8,["class","configuration","parsedSpec","rawSpec"]))}}),l$=W(EY,[["__scopeId","data-v-333fecad"]]),NY={modern:l$,classic:$Y},AY=a.defineComponent({__name:"ApiReference",props:{configuration:{}},emits:["updateContent"],setup(r){var h,f;const e=r,{toggleDarkMode:t,isDark:n}=L8((h=e.configuration)==null?void 0:h.darkMode),o=a.computed(()=>{var p,m;if((p=e.configuration)!=null&&p.customCss)return J$((m=e.configuration)==null?void 0:m.customCss)});a.watch(o,()=>console.log(o.value));const s=a.computed(()=>{var p;return{spec:{content:void 0,url:void 0,...(p=e.configuration)==null?void 0:p.spec},proxy:void 0,theme:"default",showSidebar:!0,isEditable:!1,...e.configuration,customCss:o.value}});(f=s.value)!=null&&f.metaData&&(cg.createHead(),cg.useSeoMeta(s.value.metaData));function i(p,m){a.watch(()=>{var g;return(g=s.value)==null?void 0:g[p]},g=>{typeof g<"u"&&m(g)},{immediate:!0})}const{setAuthentication:l}=qn();i("authentication",l);const{setExcludedClients:c}=Yi();i("hiddenClients",c);const{parsedSpec:d,rawSpec:u}=RS({proxy:a.toRef(()=>{var p;return((p=e.configuration)==null?void 0:p.proxy)||""}),specConfig:a.toRef(()=>{var p;return((p=e.configuration)==null?void 0:p.spec)||{}})});return(p,m)=>{var g,O;return a.openBlock(),a.createElementBlock(a.Fragment,null,[(g=s.value)!=null&&g.customCss?(a.openBlock(),a.createBlock(a.resolveDynamicComponent("style"),{key:0},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(s.value.customCss),1)]),_:1})):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(NY)[((O=s.value)==null?void 0:O.layout)||"modern"]),{configuration:s.value,isDark:a.unref(n),parsedSpec:a.unref(d),rawSpec:a.unref(u),onToggleDarkMode:m[0]||(m[0]=()=>a.unref(t)()),onUpdateContent:m[1]||(m[1]=y=>p.$emit("updateContent",y))},{footer:a.withCtx(()=>[a.renderSlot(p.$slots,"footer")]),_:3},40,["configuration","isDark","parsedSpec","rawSpec"]))],64)}}});exports.ApiClientModal=jS;exports.ApiReference=AY;exports.ApiReferenceLayout=Gm;exports.Card=Xn;exports.CardContent=Or;exports.CardFooter=Li;exports.CardHeader=Wn;exports.CardTab=WS;exports.CardTabHeader=XS;exports.DarkModeIconToggle=a$;exports.DarkModeToggle=s$;exports.GLOBAL_SECURITY_SYMBOL=Kd;exports.GettingStarted=o$;exports.HIDE_DOWNLOAD_BUTTON_SYMBOL=Dm;exports.ModernLayout=l$;exports.RenderedReference=n$;exports.SearchButton=Fm;exports.SearchModal=i$;exports.Sidebar=zm;exports.createEmptyServerState=Nw;exports.deepMerge=_w;exports.downloadSpecBus=Mm;exports.downloadSpecFile=CS;exports.getApiClientRequest=Tp;exports.getHeadingsFromMarkdown=pi;exports.getLowestHeadingLevel=yd;exports.getModels=ur;exports.getUrlFromServerState=Vc;exports.getVariableNames=kB;exports.hasModels=Ep;exports.hasSecuritySchemes=Cw;exports.hasWebhooks=Tw;exports.isValidUrl=Qw;exports.mapFromObject=SB;exports.mergeAllObjects=$B;exports.objectMerge=Ew;exports.openClientFor=Bc;exports.parse=_S;exports.replaceVariables=Qp;exports.scrollToId=vi;exports.sleep=Dr;exports.splitMarkdownInSections=TS;exports.useApiClientStore=Fc;exports.useHttpClientStore=Jd;exports.useReactiveSpec=RS;exports.useServerStore=qs;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BAwoyEYl.cjs");require("vue");require("@headlessui/vue");require("@vueuse/core");require("axios");exports.ApiClientModal=e.ApiClientModal;exports.ApiReference=e._sfc_main$2;exports.ApiReferenceLayout=e.ApiReferenceLayout;exports.Card=e.Card;exports.CardContent=e.CardContent;exports.CardFooter=e.CardFooter;exports.CardHeader=e.CardHeader;exports.CardTab=e.CardTab;exports.CardTabHeader=e.CardTabHeader;exports.DarkModeIconToggle=e.DarkModeIconToggle;exports.DarkModeToggle=e.DarkModeToggle;exports.GLOBAL_SECURITY_SYMBOL=e.GLOBAL_SECURITY_SYMBOL;exports.GettingStarted=e.GettingStarted;exports.HIDE_DOWNLOAD_BUTTON_SYMBOL=e.HIDE_DOWNLOAD_BUTTON_SYMBOL;exports.ModernLayout=e.ModernLayout;exports.RenderedReference=e.Content;exports.SearchButton=e.SearchButton;exports.SearchModal=e.SearchModal;exports.Sidebar=e.Sidebar;exports.createEmptyServerState=e.createEmptyServerState;exports.deepMerge=e.deepMerge;exports.downloadSpecBus=e.downloadSpecBus;exports.downloadSpecFile=e.downloadSpecFile;exports.getApiClientRequest=e.getApiClientRequest;exports.getHeadingsFromMarkdown=e.getHeadingsFromMarkdown;exports.getLowestHeadingLevel=e.getLowestHeadingLevel;exports.getModels=e.getModels;exports.getUrlFromServerState=e.getUrlFromServerState;exports.getVariableNames=e.getVariableNames;exports.hasModels=e.hasModels;exports.hasSecuritySchemes=e.hasSecuritySchemes;exports.hasWebhooks=e.hasWebhooks;exports.isValidUrl=e.isValidUrl;exports.mapFromObject=e.mapFromObject;exports.mergeAllObjects=e.mergeAllObjects;exports.objectMerge=e.objectMerge;exports.openClientFor=e.openClientFor;exports.parse=e.parse;exports.replaceVariables=e.replaceVariables;exports.scrollToId=e.scrollToId;exports.sleep=e.sleep;exports.splitMarkdownInSections=e.splitMarkdownInSections;exports.useApiClientStore=e.useApiClientStore;exports.useHttpClientStore=e.useHttpClientStore;exports.useReactiveSpec=e.useReactiveSpec;exports.useServerStore=e.useServerStore;