/**
 *    _____ _________    __    ___    ____
 *   / ___// ____/   |  / /   /   |  / __ \
 *   \__ \/ /   / /| | / /   / /| | / /_/ /
 *  ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
 * /____/\____/_/  |_/_____/_/  |_/_/ |_|
 *
 * @scalar/api-reference 1.25.17-pmc
 * license: https://github.com/scalar/scalar/blob/main/LICENSE
**/

!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){
"use strict";var e,t,n=Object.defineProperty,r=(e,t,r)=>((e,t,r)=>t in e?n(e,t,{
enumerable:!0,configurable:!0,writable:!0,value:r
}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r);function o(e,t={},n){
for(const r in e){const i=e[r],a=n?`${n}:${r}`:r
;"object"==typeof i&&null!==i?o(i,t,a):"function"==typeof i&&(t[a]=i)}return t}
const i={run:e=>e()},a=void 0!==console.createTask?console.createTask:()=>i
;function s(e,t){const n=t.shift(),r=a(n)
;return e.reduce(((e,n)=>e.then((()=>r.run((()=>n(...t)))))),Promise.resolve())}
function l(e,t){const n=t.shift(),r=a(n)
;return Promise.all(e.map((e=>r.run((()=>e(...t))))))}function c(e,t){
for(const n of[...e])n(t)}class u{constructor(){
this._hooks={},this._before=void 0,
this._after=void 0,this._deprecatedMessages=void 0,
this._deprecatedHooks={},this.hook=this.hook.bind(this),
this.callHook=this.callHook.bind(this),
this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){
if(!e||"function"!=typeof t)return()=>{};const r=e;let o
;for(;this._deprecatedHooks[e];)o=this._deprecatedHooks[e],e=o.to
;if(o&&!n.allowDeprecated){let e=o.message
;e||(e=`${r} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),
this._deprecatedMessages||(this._deprecatedMessages=new Set),
this._deprecatedMessages.has(e)||(console.warn(e),
this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{
get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}
return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{
t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){
let n,r=(...e)=>("function"==typeof n&&n(),n=void 0,r=void 0,t(...e))
;return n=this.hook(e,r),n}removeHook(e,t){if(this._hooks[e]){
const n=this._hooks[e].indexOf(t)
;-1!==n&&this._hooks[e].splice(n,1),0===this._hooks[e].length&&delete this._hooks[e]
}}deprecateHook(e,t){this._deprecatedHooks[e]="string"==typeof t?{to:t}:t
;const n=this._hooks[e]||[];delete this._hooks[e]
;for(const r of n)this.hook(e,r)}deprecateHooks(e){
Object.assign(this._deprecatedHooks,e)
;for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){
const t=o(e),n=Object.keys(t).map((e=>this.hook(e,t[e])));return()=>{
for(const e of n.splice(0,n.length))e()}}removeHooks(e){const t=o(e)
;for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){
for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){
return t.unshift(e),this.callHookWith(s,e,...t)}callHookParallel(e,...t){
return t.unshift(e),this.callHookWith(l,e,...t)}callHookWith(e,t,...n){
const r=this._before||this._after?{name:t,args:n,context:{}}:void 0
;this._before&&c(this._before,r)
;const o=e(t in this._hooks?[...this._hooks[t]]:[],n)
;return o instanceof Promise?o.finally((()=>{this._after&&r&&c(this._after,r)
})):(this._after&&r&&c(this._after,r),o)}beforeEach(e){
return this._before=this._before||[],this._before.push(e),()=>{
if(void 0!==this._before){const t=this._before.indexOf(e)
;-1!==t&&this._before.splice(t,1)}}}afterEach(e){
return this._after=this._after||[],this._after.push(e),()=>{
if(void 0!==this._after){const t=this._after.indexOf(e)
;-1!==t&&this._after.splice(t,1)}}}}
const d=["title","titleTemplate","script","style","noscript"],p=["base","meta","link","style","script","noscript"],h=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],f=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],m=["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"],g="undefined"!=typeof window
;function v(e){let t=9
;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),9**9)
;return(65536+(t^t>>>9)).toString(16).substring(1,8).toLowerCase()}
function b(e){
return e._h||v(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map((([e,t])=>`${e}:${String(t)}`)).join(",")}`)
}function O(e,t){const{props:n,tag:r}=e;if(f.includes(r))return r
;if("link"===r&&"canonical"===n.rel)return"canonical"
;if(n.charset)return"charset";const o=["id"]
;"meta"===r&&o.push("name","property","http-equiv")
;for(const i of o)if(void 0!==n[i]){return`${r}:${i}:${String(n[i])}`}return!1}
function y(e,t){return null==e?t||null:"function"==typeof e?e(t):e}
function w(e,t){
const n=[],r=t.resolveKeyData||(e=>e.key),o=t.resolveValueData||(e=>e.value)
;for(const[i,a]of Object.entries(e))n.push(...(Array.isArray(a)?a:[a]).map((e=>{
const n={key:i,value:e},a=o(n)
;return"object"==typeof a?w(a,t):Array.isArray(a)?a:{
["function"==typeof t.key?t.key(n):t.key]:r(n),
["function"==typeof t.value?t.value(n):t.value]:a}})).flat());return n}
function x(e,t){return Object.entries(e).map((([e,n])=>{
if("object"==typeof n&&(n=x(n,t)),t.resolve){const r=t.resolve({key:e,value:n})
;if(void 0!==r)return r}
return"number"==typeof n&&(n=n.toString()),"string"==typeof n&&t.wrapValue&&(n=n.replace(new RegExp(t.wrapValue,"g"),`\\${t.wrapValue}`),
n=`${t.wrapValue}${n}${t.wrapValue}`),`${e}${t.keyValueSeparator||""}${n}`
})).join(t.entrySeparator||"")}const k=e=>({keyValue:e,metaKey:"property"
}),S=e=>({keyValue:e}),_={appleItunesApp:{unpack:{entrySeparator:", ",
resolve:({key:e,value:t})=>`${C(e)}=${t}`}},
articleExpirationTime:k("article:expiration_time"),
articleModifiedTime:k("article:modified_time"),
articlePublishedTime:k("article:published_time"),
bookReleaseDate:k("book:release_date"),charset:{metaKey:"charset"},
contentSecurityPolicy:{unpack:{entrySeparator:"; ",
resolve:({key:e,value:t})=>`${C(e)} ${t}`},metaKey:"http-equiv"},contentType:{
metaKey:"http-equiv"},defaultStyle:{metaKey:"http-equiv"},
fbAppId:k("fb:app_id"),msapplicationConfig:S("msapplication-Config"),
msapplicationTileColor:S("msapplication-TileColor"),
msapplicationTileImage:S("msapplication-TileImage"),
ogAudioSecureUrl:k("og:audio:secure_url"),ogAudioUrl:k("og:audio"),
ogImageSecureUrl:k("og:image:secure_url"),ogImageUrl:k("og:image"),
ogSiteName:k("og:site_name"),ogVideoSecureUrl:k("og:video:secure_url"),
ogVideoUrl:k("og:video"),profileFirstName:k("profile:first_name"),
profileLastName:k("profile:last_name"),profileUsername:k("profile:username"),
refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",
resolve({key:e,value:t}){if("seconds"===e)return`${t}`}}},robots:{unpack:{
entrySeparator:", ",
resolve:({key:e,value:t})=>"boolean"==typeof t?`${C(e)}`:`${C(e)}:${t}`}},
xUaCompatible:{metaKey:"http-equiv"}},E=["og","book","article","profile"]
;function T(e){var t;const n=C(e).split(":")[0]
;return E.includes(n)?"property":(null==(t=_[e])?void 0:t.metaKey)||"name"}
function C(e){
const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.split("-")[0]
;return E.includes(n)||"twitter"===n?e.replace(/([A-Z])/g,":$1").toLowerCase():t
}function A(e){if(Array.isArray(e))return e.map((e=>A(e)))
;if("object"!=typeof e||Array.isArray(e))return e;const t={}
;for(const[n,r]of Object.entries(e))t[C(n)]=A(r);return t}function P(e,t){
const n=_[t];return"refresh"===t?`${e.seconds};url=${e.url}`:x(A(e),{
keyValueSeparator:"=",entrySeparator:", ",
resolve:({value:e,key:t})=>null===e?"":"boolean"==typeof e?`${t}`:void 0,
...null==n?void 0:n.unpack})}
const D=["og:image","og:video","og:audio","twitter:image"];function $(e){
const t={};return Object.entries(e).forEach((([e,n])=>{
"false"!==String(n)&&e&&(t[e]=n)})),t}function R(e,t){const n=$(t),r=C(e),o=T(r)
;if(D.includes(r)){const t={};return Object.entries(n).forEach((([n,r])=>{
t[`${e}${"url"===n?"":`${n.charAt(0).toUpperCase()}${n.slice(1)}`}`]=r
})),N(t).sort(((e,t)=>{var n,r
;return((null==(n=e[o])?void 0:n.length)||0)-((null==(r=t[o])?void 0:r.length)||0)
}))}return[{[o]:r,...n}]}function N(e){const t=[],n={}
;Object.entries(e).forEach((([e,r])=>{if(Array.isArray(r))r.forEach((n=>{
t.push(..."string"==typeof n?N({[e]:n}):R(e,n))
}));else if("object"==typeof r&&r){
if(D.includes(C(e)))return void t.push(...R(e,r));n[e]=$(r)}else n[e]=r}))
;const r=w(n,{key:({key:e})=>T(e),
value:({key:e})=>"charset"===e?"charset":"content",
resolveKeyData:({key:e})=>function(e){var t
;return(null==(t=_[e])?void 0:t.keyValue)||C(e)}(e),
resolveValueData:({value:e,key:t})=>null===e?"_null":"object"==typeof e?P(e,t):"number"==typeof e?e.toString():e
});return[...t,...r].map((e=>("_null"===e.content&&(e.content=null),e)))}
function I(e,t){var n;const r="class"===e?" ":";"
;return"object"!=typeof t||Array.isArray(t)||(t=Object.entries(t).filter((([,e])=>e)).map((([t,n])=>"style"===e?`${t}:${n}`:t))),
null==(n=String(Array.isArray(t)?t.join(r):t))?void 0:n.split(r).filter((e=>e.trim())).filter(Boolean).join(r)
}async function M(e,t){
for(const n of Object.keys(e))if(["class","style"].includes(n))e[n]=I(n,e[n]);else if(e[n]instanceof Promise&&(e[n]=await e[n]),
!t&&!m.includes(n)){const t=String(e[n]),r=n.startsWith("data-")
;"true"===t||""===t?e[n]=!r||"true":e[n]||(r&&"false"===t?e[n]="false":delete e[n])
}return e}const L=10;async function B(e){const t=[]
;return Object.entries(e.resolvedInput).filter((([e,t])=>void 0!==t&&h.includes(e))).forEach((([n,r])=>{
const o=function(e){return Array.isArray(e)?e:[e]}(r)
;t.push(...o.map((t=>async function(e,t,n){const r={tag:e,
props:await M("object"!=typeof t||"function"==typeof t||t instanceof Promise?{
[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t}:{...t
},["templateParams","titleTemplate"].includes(e))};return m.forEach((e=>{
const t=void 0!==r.props[e]?r.props[e]:n[e]
;void 0!==t&&(["innerHTML","textContent","children"].includes(e)&&!d.includes(r.tag)||(r["children"===e?"innerHTML":e]=t),
delete r.props[e])
})),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),
"script"===r.tag&&"object"==typeof r.innerHTML&&(r.innerHTML=JSON.stringify(r.innerHTML),
r.props.type=r.props.type||"application/json"),
Array.isArray(r.props.content)?r.props.content.map((e=>({...r,props:{...r.props,
content:e}}))):r}(n,t,e))).flat())
})),(await Promise.all(t)).flat().filter(Boolean).map(((t,n)=>(t._e=e._i,
e.mode&&(t._m=e.mode),t._p=(e._i<<L)+n,t)))}const Q={base:-10,title:10},j={
critical:-80,high:-10,low:20};function U(e){let t=100;const n=e.tagPriority
;return"number"==typeof n?n:("meta"===e.tag?("content-security-policy"===e.props["http-equiv"]&&(t=-30),
e.props.charset&&(t=-20),
"viewport"===e.props.name&&(t=-15)):"link"===e.tag&&"preconnect"===e.props.rel?t=20:e.tag in Q&&(t=Q[e.tag]),
"string"==typeof n&&n in j?t+j[n]:t)}const F=[{prefix:"before:",offset:-1},{
prefix:"after:",offset:1
}],q=["onload","onerror","onabort","onprogress","onloadstart"],z="%separator"
;function H(e,t,n){if("string"!=typeof e||!e.includes("%"))return e;let r=e;try{
r=decodeURI(e)}catch{}
return(r.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach((n=>{
const r=function(e){let n
;return n=["s","pageTitle"].includes(e)?t.pageTitle:e.includes(".")?e.split(".").reduce(((e,t)=>e&&e[t]||void 0),t):t[e],
void 0!==n&&(n||"").replace(/"/g,'\\"')}(n.slice(1))
;"string"==typeof r&&(e=e.replace(new RegExp(`\\${n}(\\W|$)`,"g"),((e,t)=>`${r}${t}`)).trim())
})),
e.includes(z)&&(e.endsWith(z)&&(e=e.slice(0,-10).trim()),e.startsWith(z)&&(e=e.slice(10).trim()),
e=H(e=e.replace(new RegExp(`\\${z}\\s*\\${z}`,"g"),z),{separator:n},n)),e}
async function Z(e,t={}){const n=t.delayFn||(e=>setTimeout(e,10))
;return e._domUpdatePromise=e._domUpdatePromise||new Promise((r=>n((async()=>{
await async function(e,t={}){var n
;const r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;const o={
shouldRender:!0,tags:[]}
;if(await e.hooks.callHook("dom:beforeRender",o),!o.shouldRender)return
;const i=(await e.resolveTags()).map((e=>({tag:e,
id:p.includes(e.tag)?b(e):e.tag,shouldRender:!0})));let a=e._dom;if(!a){a={
elMap:{htmlAttrs:r.documentElement,bodyAttrs:r.body}}
;for(const e of["body","head"]){const t=null==(n=r[e])?void 0:n.children,o=[]
;for(const e of[...t].filter((e=>p.includes(e.tagName.toLowerCase())))){
const t={tag:e.tagName.toLowerCase(),
props:await M(e.getAttributeNames().reduce(((t,n)=>({...t,[n]:e.getAttribute(n)
})),{})),innerHTML:e.innerHTML};let n=1,r=O(t)
;for(;r&&o.find((e=>e._d===r));)r=`${r}:${n++}`
;t._d=r||void 0,o.push(t),a.elMap[e.getAttribute("data-hid")||b(t)]=e}}}
function s(e,t,n){const r=`${e}:${t}`
;a.sideEffects[r]=n,delete a.pendingSideEffects[r]}
function l({id:e,$el:t,tag:n}){const o=n.tag.endsWith("Attrs")
;a.elMap[e]=t,o||(["textContent","innerHTML"].forEach((e=>{
n[e]&&n[e]!==t[e]&&(t[e]=n[e])})),s(e,"el",(()=>{var t
;null==(t=a.elMap[e])||t.remove(),delete a.elMap[e]})))
;for(const[i,a]of Object.entries(n._eventHandlers||{}))""!==t.getAttribute(`data-${i}`)&&(("bodyAttrs"===n.tag?r.defaultView:t).addEventListener(i.replace("on",""),a.bind(t)),
t.setAttribute(`data-${i}`,""));Object.entries(n.props).forEach((([n,r])=>{
const i=`attr:${n}`
;if("class"===n)for(const a of(r||"").split(" ").filter(Boolean))o&&s(e,`${i}:${a}`,(()=>t.classList.remove(a))),
!t.classList.contains(a)&&t.classList.add(a);else if("style"===n)for(const o of(r||"").split(";").filter(Boolean)){
const[n,...r]=o.split(":").map((e=>e.trim()));s(e,`${i}:${o}:${n}`,(()=>{
t.style.removeProperty(n)})),t.style.setProperty(n,r.join(":"))
}else t.getAttribute(n)!==r&&t.setAttribute(n,!0===r?"":String(r)),
o&&s(e,i,(()=>t.removeAttribute(n)))}))}a.pendingSideEffects={
...a.sideEffects||{}},a.sideEffects={};const c=[],u={bodyClose:void 0,
bodyOpen:void 0,head:void 0};for(const d of i){
const{tag:e,shouldRender:t,id:n}=d;t&&("title"!==e.tag?(d.$el=d.$el||a.elMap[n],
d.$el?l(d):p.includes(e.tag)&&c.push(d)):r.title=e.textContent)}
for(const d of c){const e=d.tag.tagPosition||"head"
;d.$el=r.createElement(d.tag.tag),
l(d),u[e]=u[e]||r.createDocumentFragment(),u[e].appendChild(d.$el)}
for(const d of i)await e.hooks.callHook("dom:renderTag",d,r,s)
;u.head&&r.head.appendChild(u.head),
u.bodyOpen&&r.body.insertBefore(u.bodyOpen,r.body.firstChild),
u.bodyClose&&r.body.appendChild(u.bodyClose),
Object.values(a.pendingSideEffects).forEach((e=>e())),
e._dom=a,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:i})
}(e,t),delete e._domUpdatePromise,r()}))))}function V(e){return t=>{var n,r
;const o=(null==(r=null==(n=t.resolvedOptions.document)?void 0:n.head.querySelector('script[id="unhead:payload"]'))?void 0:r.innerHTML)||!1
;return o&&t.push(JSON.parse(o)),{mode:"client",hooks:{
"entries:updated":function(t){Z(t,e)}}}}}
const W=["templateParams","htmlAttrs","bodyAttrs"],X={hooks:{
"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach((t=>{
e.props[t]&&(e.key=e.props[t],delete e.props[t])}))
;const t=O(e)||!!e.key&&`${e.tag}:${e.key}`;t&&(e._d=t)},
"tags:resolve":function(e){const t={};e.tags.forEach((e=>{
const n=(e.key?`${e.tag}:${e.key}`:e._d)||e._p,r=t[n];if(r){
let o=null==e?void 0:e.tagDuplicateStrategy
;if(!o&&W.includes(e.tag)&&(o="merge"),"merge"===o){const o=r.props
;return["class","style"].forEach((t=>{
o[t]&&(e.props[t]?("style"!==t||o[t].endsWith(";")||(o[t]+=";"),
e.props[t]=`${o[t]} ${e.props[t]}`):e.props[t]=o[t])})),void(t[n].props={...o,
...e.props})}
if(e._e===r._e)return r._duped=r._duped||[],e._d=`${r._d}:${r._duped.length+1}`,
void r._duped.push(e);if(U(e)>U(r))return}
const o=Object.keys(e.props).length+(e.innerHTML?1:0)+(e.textContent?1:0)
;p.includes(e.tag)&&0===o?delete t[n]:t[n]=e}));const n=[]
;Object.values(t).forEach((e=>{const t=e._duped
;delete e._duped,n.push(e),t&&n.push(...t)
})),e.tags=n,e.tags=e.tags.filter((e=>!("meta"===e.tag&&(e.props.name||e.props.property)&&!e.props.content)))
}}},Y={mode:"server",hooks:{"tags:resolve":function(e){const t={}
;e.tags.filter((e=>["titleTemplate","templateParams","title"].includes(e.tag)&&"server"===e._m)).forEach((e=>{
t[e.tag]=e.tag.startsWith("title")?e.textContent:e.props
})),Object.keys(t).length&&e.tags.push({tag:"script",
innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}
})}}},G=["script","link","bodyAttrs"],K=e=>({hooks:{"tags:resolve":function(t){
for(const n of t.tags.filter((e=>G.includes(e.tag))))Object.entries(n.props).forEach((([t,r])=>{
t.startsWith("on")&&"function"==typeof r&&(e.ssr&&q.includes(t)?n.props[t]=`this.dataset.${t}fired = true`:delete n.props[t],
n._eventHandlers=n._eventHandlers||{},n._eventHandlers[t]=r)
})),e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||v(n.props.src||n.props.href))
},"dom:renderTag":function({$el:e,tag:t}){var n,r
;for(const o of Object.keys((null==e?void 0:e.dataset)||{}).filter((e=>q.some((t=>`${t}fired`===e))))){
const i=o.replace("fired","")
;null==(r=null==(n=t._eventHandlers)?void 0:n[i])||r.call(e,new Event(i.replace("on","")))
}}}}),J=["link","style","script","noscript"],ee={hooks:{
"tag:normalise":({tag:e})=>{
e.key&&J.includes(e.tag)&&(e.props["data-hid"]=e._h=v(e.key))}}},te={hooks:{
"tags:resolve":e=>{const t=t=>{var n
;return null==(n=e.tags.find((e=>e._d===t)))?void 0:n._p}
;for(const{prefix:n,offset:r}of F)for(const o of e.tags.filter((e=>"string"==typeof e.tagPriority&&e.tagPriority.startsWith(n)))){
const e=t(o.tagPriority.replace(n,""));void 0!==e&&(o._p=e+r)}
e.tags.sort(((e,t)=>e._p-t._p)).sort(((e,t)=>U(e)-U(t)))}}},ne={meta:"content",
link:"href",htmlAttrs:"lang"},re=e=>({hooks:{"tags:resolve":t=>{var n
;const{tags:r}=t,o=null==(n=r.find((e=>"title"===e.tag)))?void 0:n.textContent,i=r.findIndex((e=>"templateParams"===e.tag)),a=-1!==i?r[i].props:{},s=a.separator||"|"
;delete a.separator,a.pageTitle=H(a.pageTitle||o||"",a,s)
;for(const e of r.filter((e=>!1!==e.processTemplateParams))){const t=ne[e.tag]
;t&&"string"==typeof e.props[t]?e.props[t]=H(e.props[t],a,s):(!0===e.processTemplateParams||["titleTemplate","title"].includes(e.tag))&&["innerHTML","textContent"].forEach((t=>{
"string"==typeof e[t]&&(e[t]=H(e[t],a,s))}))}e._templateParams=a,e._separator=s,
t.tags=r.filter((e=>"templateParams"!==e.tag))}}}),oe={hooks:{
"tags:resolve":e=>{const{tags:t}=e
;let n=t.findIndex((e=>"titleTemplate"===e.tag))
;const r=t.findIndex((e=>"title"===e.tag));if(-1!==r&&-1!==n){
const e=y(t[n].textContent,t[r].textContent)
;null!==e?t[r].textContent=e||t[r].textContent:delete t[r]}else if(-1!==n){
const e=y(t[n].textContent);null!==e&&(t[n].textContent=e,t[n].tag="title",n=-1)
}-1!==n&&delete t[n],e.tags=t.filter(Boolean)}}},ie={hooks:{
"tags:afterResolve":function(e){
for(const t of e.tags)"string"==typeof t.innerHTML&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/</g,"\\u003C"):t.innerHTML=t.innerHTML.replace(new RegExp(`</${t.tag}`,"g"),`<\\/${t.tag}`))
}}};let ae;function se(e={}){const t=function(e={}){const t=new u
;t.addHooks(e.hooks||{}),e.document=e.document||(g?document:void 0)
;const n=!e.document,r=()=>{s.dirty=!0,t.callHook("entries:updated",s)}
;let o=0,i=[];const a=[],s={plugins:a,dirty:!1,resolvedOptions:e,hooks:t,
headEntries:()=>i,use(e){const r="function"==typeof e?e(s):e
;r.key&&a.some((e=>e.key===r.key))||(a.push(r),
le(r.mode,n)&&t.addHooks(r.hooks||{}))},push(e,a){null==a||delete a.head
;const l={_i:o++,input:e,...a};return le(l.mode,n)&&(i.push(l),r()),{dispose(){
i=i.filter((e=>e._i!==l._i)),t.callHook("entries:updated",s),r()},patch(e){
i=i.map((t=>(t._i===l._i&&(t.input=l.input=e),t))),r()}}},async resolveTags(){
const e={tags:[],entries:[...i]};await t.callHook("entries:resolve",e)
;for(const n of e.entries){const r=n.resolvedInput||n.input
;if(n.resolvedInput=await(n.transform?n.transform(r):r),
n.resolvedInput)for(const o of await B(n)){const r={tag:o,entry:n,
resolvedOptions:s.resolvedOptions}
;await t.callHook("tag:normalise",r),e.tags.push(r.tag)}}
return await t.callHook("tags:beforeResolve",e),
await t.callHook("tags:resolve",e),
await t.callHook("tags:afterResolve",e),e.tags},ssr:n}
;return[X,Y,K,ee,te,re,oe,ie,...(null==e?void 0:e.plugins)||[]].forEach((e=>s.use(e))),
s.hooks.callHook("init",s),s}(e);return t.use(V()),ae=t}function le(e,t){
return!e||"server"===e&&t||"client"===e&&!t}
/**
  * @vue/shared v3.4.31
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/
/*! #__NO_SIDE_EFFECTS__ */
function ce(e,t){const n=new Set(e.split(","));return e=>n.has(e)}
const ue={},de=[],pe=()=>{},he=()=>!1,fe=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),me=e=>e.startsWith("onUpdate:"),ge=Object.assign,ve=(e,t)=>{
const n=e.indexOf(t);n>-1&&e.splice(n,1)
},be=Object.prototype.hasOwnProperty,Oe=(e,t)=>be.call(e,t),ye=Array.isArray,we=e=>"[object Map]"===Pe(e),xe=e=>"[object Set]"===Pe(e),ke=e=>"[object Date]"===Pe(e),Se=e=>"function"==typeof e,_e=e=>"string"==typeof e,Ee=e=>"symbol"==typeof e,Te=e=>null!==e&&"object"==typeof e,Ce=e=>(Te(e)||Se(e))&&Se(e.then)&&Se(e.catch),Ae=Object.prototype.toString,Pe=e=>Ae.call(e),De=e=>Pe(e).slice(8,-1),$e=e=>"[object Object]"===Pe(e),Re=e=>_e(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,Ne=ce(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ie=e=>{
const t=Object.create(null);return n=>t[n]||(t[n]=e(n))
},Me=/-(\w)/g,Le=Ie((e=>e.replace(Me,((e,t)=>t?t.toUpperCase():"")))),Be=/\B([A-Z])/g,Qe=Ie((e=>e.replace(Be,"-$1").toLowerCase())),je=Ie((e=>e.charAt(0).toUpperCase()+e.slice(1))),Ue=Ie((e=>e?`on${je(e)}`:"")),Fe=(e,t)=>!Object.is(e,t),qe=(e,...t)=>{
for(let n=0;n<e.length;n++)e[n](...t)},ze=(e,t,n,r=!1)=>{
Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})
},He=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ze=e=>{
const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let Ve
;const We=()=>Ve||(Ve="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})
;function Xe(e){if(ye(e)){const t={};for(let n=0;n<e.length;n++){
const r=e[n],o=_e(r)?Je(r):Xe(r);if(o)for(const e in o)t[e]=o[e]}return t}
if(_e(e)||Te(e))return e}
const Ye=/;(?![^(]*\))/g,Ge=/:([^]+)/,Ke=/\/\*[^]*?\*\//g;function Je(e){
const t={};return e.replace(Ke,"").split(Ye).forEach((e=>{if(e){
const n=e.split(Ge);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}
function et(e){let t="";if(_e(e))t=e;else if(ye(e))for(let n=0;n<e.length;n++){
const r=et(e[n]);r&&(t+=r+" ")}else if(Te(e))for(const n in e)e[n]&&(t+=n+" ")
;return t.trim()}function tt(e){if(!e)return null;let{class:t,style:n}=e
;return t&&!_e(t)&&(e.class=et(t)),n&&(e.style=Xe(n)),e}
const nt=ce("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly")
;function rt(e){return!!e||""===e}function ot(e,t){if(e===t)return!0
;let n=ke(e),r=ke(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime()
;if(n=Ee(e),r=Ee(t),n||r)return e===t
;if(n=ye(e),r=ye(t),n||r)return!(!n||!r)&&function(e,t){
if(e.length!==t.length)return!1;let n=!0
;for(let r=0;n&&r<e.length;r++)n=ot(e[r],t[r]);return n}(e,t)
;if(n=Te(e),r=Te(t),n||r){if(!n||!r)return!1
;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){
const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n)
;if(r&&!o||!r&&o||!ot(e[n],t[n]))return!1}}return String(e)===String(t)}
function it(e,t){return e.findIndex((e=>ot(e,t)))}
const at=e=>!(!e||!0!==e.__v_isRef),st=e=>_e(e)?e:null==e?"":ye(e)||Te(e)&&(e.toString===Ae||!Se(e.toString))?at(e)?st(e.value):JSON.stringify(e,lt,2):String(e),lt=(e,t)=>at(t)?lt(e,t.value):we(t)?{
[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],r)=>(e[ct(t,r)+" =>"]=n,
e)),{})}:xe(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ct(e)))
}:Ee(t)?ct(t):!Te(t)||ye(t)||$e(t)?t:String(t),ct=(e,t="")=>{var n
;return Ee(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};
/**
  * @vue/reactivity v3.4.31
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/
let ut,dt;class pt{constructor(e=!1){
this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ut,
!e&&ut&&(this.index=(ut.scopes||(ut.scopes=[])).push(this)-1)}get active(){
return this._active}run(e){if(this._active){const t=ut;try{return ut=this,e()
}finally{ut=t}}}on(){ut=this}off(){ut=this.parent}stop(e){if(this._active){
let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop()
;for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]()
;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0)
;if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop()
;e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}
this.parent=void 0,this._active=!1}}}function ht(e){return new pt(e)}
function ft(){return ut}function mt(e){ut&&ut.cleanups.push(e)}class gt{
constructor(e,t,n,r){
this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],
this._dirtyLevel=4,
this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,
function(e,t=ut){t&&t.active&&t.effects.push(e)}(this,r)}get dirty(){
if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,kt()
;for(let e=0;e<this._depsLength;e++){const t=this.deps[e]
;if(t.computed&&(t.computed.value,this._dirtyLevel>=4))break}
1===this._dirtyLevel&&(this._dirtyLevel=0),St()}return this._dirtyLevel>=4}
set dirty(e){this._dirtyLevel=e?4:0}run(){
if(this._dirtyLevel=0,!this.active)return this.fn();let e=yt,t=dt;try{
return yt=!0,dt=this,this._runnings++,vt(this),this.fn()}finally{
bt(this),this._runnings--,dt=t,yt=e}}stop(){
this.active&&(vt(this),bt(this),this.onStop&&this.onStop(),this.active=!1)}}
function vt(e){e._trackId++,e._depsLength=0}function bt(e){
if(e.deps.length>e._depsLength){
for(let t=e._depsLength;t<e.deps.length;t++)Ot(e.deps[t],e)
;e.deps.length=e._depsLength}}function Ot(e,t){const n=e.get(t)
;void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}
let yt=!0,wt=0;const xt=[];function kt(){xt.push(yt),yt=!1}function St(){
const e=xt.pop();yt=void 0===e||e}function _t(){wt++}function Et(){
for(wt--;!wt&&Ct.length;)Ct.shift()()}function Tt(e,t,n){
if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength]
;n!==t?(n&&Ot(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ct=[]
;function At(e,t,n){_t();for(const r of e.keys()){let n
;r._dirtyLevel<t&&(null!=n?n:n=e.get(r)===r._trackId)&&(r._shouldSchedule||(r._shouldSchedule=0===r._dirtyLevel),
r._dirtyLevel=t),
r._shouldSchedule&&(null!=n?n:n=e.get(r)===r._trackId)&&(r.trigger(),
r._runnings&&!r.allowRecurse||2===r._dirtyLevel||(r._shouldSchedule=!1,
r.scheduler&&Ct.push(r.scheduler)))}Et()}const Pt=(e,t)=>{const n=new Map
;return n.cleanup=e,n.computed=t,n},Dt=new WeakMap,$t=Symbol(""),Rt=Symbol("")
;function Nt(e,t,n){if(yt&&dt){let t=Dt.get(e);t||Dt.set(e,t=new Map)
;let r=t.get(n);r||t.set(n,r=Pt((()=>t.delete(n)))),Tt(dt,r)}}
function It(e,t,n,r,o,i){const a=Dt.get(e);if(!a)return;let s=[]
;if("clear"===t)s=[...a.values()];else if("length"===n&&ye(e)){const e=Number(r)
;a.forEach(((t,n)=>{("length"===n||!Ee(n)&&n>=e)&&s.push(t)}))
}else switch(void 0!==n&&s.push(a.get(n)),t){case"add":
ye(e)?Re(n)&&s.push(a.get("length")):(s.push(a.get($t)),
we(e)&&s.push(a.get(Rt)));break;case"delete":
ye(e)||(s.push(a.get($t)),we(e)&&s.push(a.get(Rt)));break;case"set":
we(e)&&s.push(a.get($t))}_t();for(const l of s)l&&At(l,4);Et()}
const Mt=ce("__proto__,__v_isRef,__isVue"),Lt=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(Ee)),Bt=Qt()
;function Qt(){const e={}
;return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){
const n=Pn(this);for(let t=0,o=this.length;t<o;t++)Nt(n,0,t+"")
;const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Pn)):r}
})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){
kt(),_t();const n=Pn(this)[t].apply(this,e);return Et(),St(),n}})),e}
function jt(e){Ee(e)||(e=String(e));const t=Pn(this)
;return Nt(t,0,e),t.hasOwnProperty(e)}class Ut{constructor(e=!1,t=!1){
this._isReadonly=e,this._isShallow=t}get(e,t,n){
const r=this._isReadonly,o=this._isShallow;if("__v_isReactive"===t)return!r
;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return o
;if("__v_raw"===t)return n===(r?o?yn:On:o?bn:vn).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0
;const i=ye(e);if(!r){if(i&&Oe(Bt,t))return Reflect.get(Bt,t,n)
;if("hasOwnProperty"===t)return jt}const a=Reflect.get(e,t,n)
;return(Ee(t)?Lt.has(t):Mt(t))?a:(r||Nt(e,0,t),
o?a:Ln(a)?i&&Re(t)?a:a.value:Te(a)?r?kn(a):wn(a):a)}}class Ft extends Ut{
constructor(e=!1){super(!1,e)}set(e,t,n,r){let o=e[t];if(!this._isShallow){
const t=Tn(o)
;if(Cn(n)||Tn(n)||(o=Pn(o),n=Pn(n)),!ye(e)&&Ln(o)&&!Ln(n))return!t&&(o.value=n,
!0)}const i=ye(e)&&Re(t)?Number(t)<e.length:Oe(e,t),a=Reflect.set(e,t,n,r)
;return e===Pn(r)&&(i?Fe(n,o)&&It(e,"set",t,n):It(e,"add",t,n)),a}
deleteProperty(e,t){const n=Oe(e,t);e[t];const r=Reflect.deleteProperty(e,t)
;return r&&n&&It(e,"delete",t,void 0),r}has(e,t){const n=Reflect.has(e,t)
;return Ee(t)&&Lt.has(t)||Nt(e,0,t),n}ownKeys(e){
return Nt(e,0,ye(e)?"length":$t),Reflect.ownKeys(e)}}class qt extends Ut{
constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}
const zt=new Ft,Ht=new qt,Zt=new Ft(!0),Vt=new qt(!0),Wt=e=>e,Xt=e=>Reflect.getPrototypeOf(e)
;function Yt(e,t,n=!1,r=!1){const o=Pn(e=e.__v_raw),i=Pn(t)
;n||(Fe(t,i)&&Nt(o,0,t),Nt(o,0,i));const{has:a}=Xt(o),s=r?Wt:n?Rn:$n
;return a.call(o,t)?s(e.get(t)):a.call(o,i)?s(e.get(i)):void(e!==o&&e.get(t))}
function Gt(e,t=!1){const n=this.__v_raw,r=Pn(n),o=Pn(e)
;return t||(Fe(e,o)&&Nt(r,0,e),Nt(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}
function Kt(e,t=!1){
return e=e.__v_raw,!t&&Nt(Pn(e),0,$t),Reflect.get(e,"size",e)}function Jt(e){
e=Pn(e);const t=Pn(this);return Xt(t).has.call(t,e)||(t.add(e),It(t,"add",e,e)),
this}function en(e,t){t=Pn(t);const n=Pn(this),{has:r,get:o}=Xt(n)
;let i=r.call(n,e);i||(e=Pn(e),i=r.call(n,e));const a=o.call(n,e)
;return n.set(e,t),i?Fe(t,a)&&It(n,"set",e,t):It(n,"add",e,t),this}
function tn(e){const t=Pn(this),{has:n,get:r}=Xt(t);let o=n.call(t,e)
;o||(e=Pn(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e)
;return o&&It(t,"delete",e,void 0),i}function nn(){
const e=Pn(this),t=0!==e.size,n=e.clear();return t&&It(e,"clear",void 0,void 0),
n}function rn(e,t){return function(n,r){
const o=this,i=o.__v_raw,a=Pn(i),s=t?Wt:e?Rn:$n
;return!e&&Nt(a,0,$t),i.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}}
function on(e,t,n){return function(...r){
const o=this.__v_raw,i=Pn(o),a=we(i),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=o[e](...r),u=n?Wt:t?Rn:$n
;return!t&&Nt(i,0,l?Rt:$t),{next(){const{value:e,done:t}=c.next();return t?{
value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){
return this}}}}function an(e){return function(...t){
return"delete"!==e&&("clear"===e?void 0:this)}}function sn(){const e={get(e){
return Yt(this,e)},get size(){return Kt(this)},has:Gt,add:Jt,set:en,delete:tn,
clear:nn,forEach:rn(!1,!1)},t={get(e){return Yt(this,e,!1,!0)},get size(){
return Kt(this)},has:Gt,add:Jt,set:en,delete:tn,clear:nn,forEach:rn(!1,!0)},n={
get(e){return Yt(this,e,!0)},get size(){return Kt(this,!0)},has(e){
return Gt.call(this,e,!0)},add:an("add"),set:an("set"),delete:an("delete"),
clear:an("clear"),forEach:rn(!0,!1)},r={get(e){return Yt(this,e,!0,!0)},
get size(){return Kt(this,!0)},has(e){return Gt.call(this,e,!0)},add:an("add"),
set:an("set"),delete:an("delete"),clear:an("clear"),forEach:rn(!0,!0)}
;return["keys","values","entries",Symbol.iterator].forEach((o=>{
e[o]=on(o,!1,!1),n[o]=on(o,!0,!1),t[o]=on(o,!1,!0),r[o]=on(o,!0,!0)})),[e,n,t,r]
}const[ln,cn,un,dn]=sn();function pn(e,t){const n=t?e?dn:un:e?cn:ln
;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(Oe(n,r)&&r in t?n:t,r,o)
}const hn={get:pn(!1,!1)},fn={get:pn(!1,!0)},mn={get:pn(!0,!1)},gn={
get:pn(!0,!0)},vn=new WeakMap,bn=new WeakMap,On=new WeakMap,yn=new WeakMap
;function wn(e){return Tn(e)?e:_n(e,!1,zt,hn,vn)}function xn(e){
return _n(e,!1,Zt,fn,bn)}function kn(e){return _n(e,!0,Ht,mn,On)}function Sn(e){
return _n(e,!0,Vt,gn,yn)}function _n(e,t,n,r,o){if(!Te(e))return e
;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=o.get(e);if(i)return i
;const a=(s=e).__v_skip||!Object.isExtensible(s)?0:function(e){switch(e){
case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":
case"WeakSet":return 2;default:return 0}}(De(s));var s;if(0===a)return e
;const l=new Proxy(e,2===a?r:n);return o.set(e,l),l}function En(e){
return Tn(e)?En(e.__v_raw):!(!e||!e.__v_isReactive)}function Tn(e){
return!(!e||!e.__v_isReadonly)}function Cn(e){return!(!e||!e.__v_isShallow)}
function An(e){return!!e&&!!e.__v_raw}function Pn(e){const t=e&&e.__v_raw
;return t?Pn(t):e}function Dn(e){
return Object.isExtensible(e)&&ze(e,"__v_skip",!0),e}
const $n=e=>Te(e)?wn(e):e,Rn=e=>Te(e)?kn(e):e;class Nn{constructor(e,t,n,r){
this.getter=e,
this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,
this.effect=new gt((()=>e(this._value)),(()=>Mn(this,2===this.effect._dirtyLevel?2:3))),
this.effect.computed=this,
this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){
const e=Pn(this)
;return e._cacheable&&!e.effect.dirty||!Fe(e._value,e._value=e.effect.run())||Mn(e,4),
In(e),e.effect._dirtyLevel>=2&&Mn(e,2),e._value}set value(e){this._setter(e)}
get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}
function In(e){var t
;yt&&dt&&(e=Pn(e),Tt(dt,null!=(t=e.dep)?t:e.dep=Pt((()=>e.dep=void 0),e instanceof Nn?e:void 0)))
}function Mn(e,t=4,n,r){const o=(e=Pn(e)).dep;o&&At(o,t)}function Ln(e){
return!(!e||!0!==e.__v_isRef)}function Bn(e){return jn(e,!1)}function Qn(e){
return jn(e,!0)}function jn(e,t){return Ln(e)?e:new Un(e,t)}class Un{
constructor(e,t){
this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Pn(e),
this._value=t?e:$n(e)}get value(){return In(this),this._value}set value(e){
const t=this.__v_isShallow||Cn(e)||Tn(e)
;e=t?e:Pn(e),Fe(e,this._rawValue)&&(this._rawValue,
this._rawValue=e,this._value=t?e:$n(e),Mn(this,4))}}function Fn(e){
return Ln(e)?e.value:e}function qn(e){return Se(e)?e():Fn(e)}const zn={
get:(e,t,n)=>Fn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t]
;return Ln(o)&&!Ln(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Hn(e){
return En(e)?e:new Proxy(e,zn)}class Zn{constructor(e){
this.dep=void 0,this.__v_isRef=!0
;const{get:t,set:n}=e((()=>In(this)),(()=>Mn(this)));this._get=t,this._set=n}
get value(){return this._get()}set value(e){this._set(e)}}function Vn(e){
return new Zn(e)}function Wn(e){const t=ye(e)?new Array(e.length):{}
;for(const n in e)t[n]=Kn(e,n);return t}class Xn{constructor(e,t,n){
this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){
const e=this._object[this._key];return void 0===e?this._defaultValue:e}
set value(e){this._object[this._key]=e}get dep(){return function(e,t){
const n=Dt.get(e);return n&&n.get(t)}(Pn(this._object),this._key)}}class Yn{
constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}
get value(){return this._getter()}}function Gn(e,t,n){
return Ln(e)?e:Se(e)?new Yn(e):Te(e)&&arguments.length>1?Kn(e,t,n):Bn(e)}
function Kn(e,t,n){const r=e[t];return Ln(r)?r:new Xn(e,t,n)}
/**
  * @vue/runtime-core v3.4.31
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/function Jn(e,t,n,r){try{return r?e(...r):e()}catch(o){tr(o,t,n)}}
function er(e,t,n,r){if(Se(e)){const o=Jn(e,t,n,r)
;return o&&Ce(o)&&o.catch((e=>{tr(e,t,n)})),o}if(ye(e)){const o=[]
;for(let i=0;i<e.length;i++)o.push(er(e[i],t,n,r));return o}}
function tr(e,t,n,r=!0){t&&t.vnode;if(t){let r=t.parent
;const o=t.proxy,i=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){
const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,i))return
;r=r.parent}const a=t.appContext.config.errorHandler
;if(a)return kt(),Jn(a,null,10,[e,o,i]),void St()}!function(e,t,n,r=!0){
console.error(e)}(e,0,0,r)}let nr=!1,rr=!1;const or=[];let ir=0;const ar=[]
;let sr=null,lr=0;const cr=Promise.resolve();let ur=null;function dr(e){
const t=ur||cr;return e?t.then(this?e.bind(this):e):t}function pr(e){
or.length&&or.includes(e,nr&&e.allowRecurse?ir+1:ir)||(null==e.id?or.push(e):or.splice(function(e){
let t=ir+1,n=or.length;for(;t<n;){const r=t+n>>>1,o=or[r],i=gr(o)
;i<e||i===e&&o.pre?t=r+1:n=r}return t}(e.id),0,e),hr())}function hr(){
nr||rr||(rr=!0,ur=cr.then(br))}function fr(e,t,n=(nr?ir+1:0)){
for(;n<or.length;n++){const t=or[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue
;or.splice(n,1),n--,t()}}}function mr(e){if(ar.length){
const e=[...new Set(ar)].sort(((e,t)=>gr(e)-gr(t)))
;if(ar.length=0,sr)return void sr.push(...e);for(sr=e,lr=0;lr<sr.length;lr++){
const e=sr[lr];!1!==e.active&&e()}sr=null,lr=0}}
const gr=e=>null==e.id?1/0:e.id,vr=(e,t)=>{const n=gr(e)-gr(t);if(0===n){
if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function br(e){
rr=!1,nr=!0,or.sort(vr);try{for(ir=0;ir<or.length;ir++){const e=or[ir]
;e&&!1!==e.active&&Jn(e,null,14)}}finally{
ir=0,or.length=0,mr(),nr=!1,ur=null,(or.length||ar.length)&&br()}}
function Or(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ue;let o=n
;const i=t.startsWith("update:"),a=i&&t.slice(7);if(a&&a in r){
const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:i}=r[e]||ue
;i&&(o=n.map((e=>_e(e)?e.trim():e))),t&&(o=n.map(He))}
let s,l=r[s=Ue(t)]||r[s=Ue(Le(t))];!l&&i&&(l=r[s=Ue(Qe(t))]),l&&er(l,e,6,o)
;const c=r[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return
}else e.emitted={};e.emitted[s]=!0,er(c,e,6,o)}}function yr(e,t,n=!1){
const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const i=e.emits
;let a={},s=!1;if(!Se(e)){const r=e=>{const n=yr(e,t,!0);n&&(s=!0,ge(a,n))}
;!n&&t.mixins.length&&t.mixins.forEach(r),
e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}
return i||s?(ye(i)?i.forEach((e=>a[e]=null)):ge(a,i),
Te(e)&&r.set(e,a),a):(Te(e)&&r.set(e,null),null)}function wr(e,t){
return!(!e||!fe(t))&&(t=t.slice(2).replace(/Once$/,""),
Oe(e,t[0].toLowerCase()+t.slice(1))||Oe(e,Qe(t))||Oe(e,t))}let xr=null,kr=null
;function Sr(e){const t=xr;return xr=e,kr=e&&e.type.__scopeId||null,t}
function _r(e){kr=e}function Er(){kr=null}function Tr(e,t=xr,n){if(!t)return e
;if(e._n)return e;const r=(...n)=>{r._d&&Zi(-1);const o=Sr(t);let i;try{
i=e(...n)}finally{Sr(o),r._d&&Zi(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}
function Cr(e){
const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[i],slots:a,attrs:s,emit:l,render:c,renderCache:u,props:d,data:p,setupState:h,ctx:f,inheritAttrs:m}=e,g=Sr(e)
;let v,b;try{if(4&n.shapeFlag){const e=o||r,t=e;v=sa(c.call(t,e,u,d,h,p,f)),b=s
}else{const e=t;0,v=sa(e.length>1?e(d,{attrs:s,slots:a,emit:l
}):e(d,null)),b=t.props?s:Ar(s)}}catch(y){Fi.length=0,tr(y,e,1),v=ta(ji)}let O=v
;if(b&&!1!==m){const e=Object.keys(b),{shapeFlag:t}=O
;e.length&&7&t&&(i&&e.some(me)&&(b=Pr(b,i)),O=ra(O,b,!1,!0))}
return n.dirs&&(O=ra(O,null,!1,!0),
O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition),
v=O,Sr(g),v}const Ar=e=>{let t
;for(const n in e)("class"===n||"style"===n||fe(n))&&((t||(t={}))[n]=e[n])
;return t},Pr=(e,t)=>{const n={}
;for(const r in e)me(r)&&r.slice(9)in t||(n[r]=e[r]);return n}
;function Dr(e,t,n){const r=Object.keys(t)
;if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){
const i=r[o];if(t[i]!==e[i]&&!wr(n,i))return!0}return!1}const $r="components"
;function Rr(e,t){return Mr($r,e,!0,t)||e}const Nr=Symbol.for("v-ndc")
;function Ir(e){return _e(e)?Mr($r,e,!1)||e:e||Nr}function Mr(e,t,n=!0,r=!1){
const o=xr||fa;if(o){const n=o.type;{const e=Ca(n,!1)
;if(e&&(e===t||e===Le(t)||e===je(Le(t))))return n}
const i=Lr(o[e]||n[e],t)||Lr(o.appContext[e],t);return!i&&r?n:i}}
function Lr(e,t){return e&&(e[t]||e[Le(t)]||e[je(Le(t))])}
function Br(e,t,n=fa,r=!1){if(n){
const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{kt()
;const o=ba(n),i=er(t,n,e,r);return o(),St(),i})
;return r?o.unshift(i):o.push(i),i}}const Qr=e=>(t,n=fa)=>{
xa&&"sp"!==e||Br(e,((...e)=>t(...e)),n)
},jr=Qr("bm"),Ur=Qr("m"),Fr=Qr("bu"),qr=Qr("u"),zr=Qr("bum"),Hr=Qr("um"),Zr=Qr("sp"),Vr=Qr("rtg"),Wr=Qr("rtc")
;function Xr(e,t=fa){Br("ec",e,t)}function Yr(e,t){if(null===xr)return e
;const n=Ta(xr),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){
let[e,i,a,s=ue]=t[o];e&&(Se(e)&&(e={mounted:e,updated:e}),e.deep&&pi(i),r.push({
dir:e,instance:n,value:i,oldValue:void 0,arg:a,modifiers:s}))}return e}
function Gr(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let a=0;a<o.length;a++){
const s=o[a];i&&(s.oldValue=i[a].value);let l=s.dir[r]
;l&&(kt(),er(l,n,8,[e.el,s,e,t]),St())}}function Kr(e,t,n,r){let o;const i=n
;if(ye(e)||_e(e)){o=new Array(e.length)
;for(let n=0,r=e.length;n<r;n++)o[n]=t(e[n],n,void 0,i)
}else if("number"==typeof e){o=new Array(e)
;for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,i)
}else if(Te(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,i)));else{
const n=Object.keys(e);o=new Array(n.length);for(let r=0,a=n.length;r<a;r++){
const a=n[r];o[r]=t(e[a],a,r,i)}}else o=[];return o}function Jr(e,t){
for(let n=0;n<t.length;n++){const r=t[n]
;if(ye(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{
const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}
/*! #__NO_SIDE_EFFECTS__ */function eo(e,t){return Se(e)?(()=>ge({name:e.name
},t,{setup:e}))():e}const to=e=>!!e.type.__asyncLoader
;function no(e,t,n={},r,o){
if(xr.isCE||xr.parent&&to(xr.parent)&&xr.parent.isCE)return"default"!==t&&(n.name=t),
ta("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),zi()
;const a=i&&ro(i(n)),s=Xi(Bi,{key:n.key||a&&a.key||`_${t}`
},a||(r?r():[]),a&&1===e._?64:-2)
;return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}
function ro(e){
return e.some((e=>!Yi(e)||e.type!==ji&&!(e.type===Bi&&!ro(e.children))))?e:null}
function oo(e,t){const n={};for(const r in e)n[Ue(r)]=e[r];return n}
const io=e=>e?ya(e)?Ta(e):io(e.parent):null,ao=ge(Object.create(null),{$:e=>e,
$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,
$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>io(e.parent),$root:e=>io(e.root),
$emit:e=>e.emit,$options:e=>Oo(e),$forceUpdate:e=>e.f||(e.f=()=>{
e.effect.dirty=!0,pr(e.update)}),$nextTick:e=>e.n||(e.n=dr.bind(e.proxy)),
$watch:e=>ui.bind(e)}),so=(e,t)=>e!==ue&&!e.__isScriptSetup&&Oe(e,t),lo={
get({_:e},t){if("__v_skip"===t)return!0
;const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:s,appContext:l}=e
;let c;if("$"!==t[0]){const s=a[t];if(void 0!==s)switch(s){case 1:return r[t]
;case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{
if(so(r,t))return a[t]=1,r[t];if(o!==ue&&Oe(o,t))return a[t]=2,o[t]
;if((c=e.propsOptions[0])&&Oe(c,t))return a[t]=3,i[t]
;if(n!==ue&&Oe(n,t))return a[t]=4,n[t];mo&&(a[t]=0)}}const u=ao[t];let d,p
;return u?("$attrs"===t&&Nt(e.attrs,0,""),
u(e)):(d=s.__cssModules)&&(d=d[t])?d:n!==ue&&Oe(n,t)?(a[t]=4,
n[t]):(p=l.config.globalProperties,Oe(p,t)?p[t]:void 0)},set({_:e},t,n){
const{data:r,setupState:o,ctx:i}=e
;return so(o,t)?(o[t]=n,!0):r!==ue&&Oe(r,t)?(r[t]=n,
!0):!Oe(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},
has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){
let s
;return!!n[a]||e!==ue&&Oe(e,a)||so(t,a)||(s=i[0])&&Oe(s,a)||Oe(r,a)||Oe(ao,a)||Oe(o.config.globalProperties,a)
},defineProperty(e,t,n){
return null!=n.get?e._.accessCache[t]=0:Oe(n,"value")&&this.set(e,t,n.value,null),
Reflect.defineProperty(e,t,n)}};function co(){return po().slots}function uo(){
return po().attrs}function po(){const e=ma()
;return e.setupContext||(e.setupContext=Ea(e))}function ho(e){
return ye(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function fo(e,t){
const n=ho(e);for(const r in t){if(r.startsWith("__skip"))continue;let e=n[r]
;e?ye(e)||Se(e)?e=n[r]={type:e,default:t[r]}:e.default=t[r]:null===e&&(e=n[r]={
default:t[r]}),e&&t[`__skip_${r}`]&&(e.skipFactory=!0)}return n}let mo=!0
;function go(e){const t=Oo(e),n=e.proxy,r=e.ctx
;mo=!1,t.beforeCreate&&vo(t.beforeCreate,e,"bc")
;const{data:o,computed:i,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:h,updated:f,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:b,destroyed:O,unmounted:y,render:w,renderTracked:x,renderTriggered:k,errorCaptured:S,serverPrefetch:_,expose:E,inheritAttrs:T,components:C,directives:A,filters:P}=t
;if(c&&function(e,t,n=pe){ye(e)&&(e=ko(e));for(const r in e){const n=e[r];let o
;o=Te(n)?"default"in n?$o(n.from||r,n.default,!0):$o(n.from||r):$o(n),
Ln(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,
set:e=>o.value=e}):t[r]=o}}(c,r,null),a)for(const $ in a){const e=a[$]
;Se(e)&&(r[$]=e.bind(n))}if(o){const t=o.call(n,n);Te(t)&&(e.data=wn(t))}
if(mo=!0,i)for(const $ in i){
const e=i[$],t=Se(e)?e.bind(n,n):Se(e.get)?e.get.bind(n,n):pe,o=!Se(e)&&Se(e.set)?e.set.bind(n):pe,a=Aa({
get:t,set:o});Object.defineProperty(r,$,{enumerable:!0,configurable:!0,
get:()=>a.value,set:e=>a.value=e})}if(s)for(const $ in s)bo(s[$],r,n,$);if(l){
const e=Se(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{Do(t,e[t])}))}
function D(e,t){ye(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}
if(u&&vo(u,e,"c"),
D(jr,d),D(Ur,p),D(Fr,h),D(qr,f),D(fi,m),D(mi,g),D(Xr,S),D(Wr,x),D(Vr,k),D(zr,b),
D(Hr,y),D(Zr,_),ye(E))if(E.length){const t=e.exposed||(e.exposed={})
;E.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))
}else e.exposed||(e.exposed={})
;w&&e.render===pe&&(e.render=w),null!=T&&(e.inheritAttrs=T),C&&(e.components=C),
A&&(e.directives=A)}function vo(e,t,n){
er(ye(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function bo(e,t,n,r){
const o=r.includes(".")?di(n,r):()=>n[r];if(_e(e)){const n=t[e];Se(n)&&li(o,n)
}else if(Se(e))li(o,e.bind(n));else if(Te(e))if(ye(e))e.forEach((e=>bo(e,t,n,r)));else{
const r=Se(e.handler)?e.handler.bind(n):t[e.handler];Se(r)&&li(o,r,e)}}
function Oo(e){
const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t)
;let l;return s?l=s:o.length||n||r?(l={},o.length&&o.forEach((e=>yo(l,e,a,!0))),
yo(l,t,a)):l=t,Te(t)&&i.set(t,l),l}function yo(e,t,n,r=!1){
const{mixins:o,extends:i}=t;i&&yo(e,i,n,!0),o&&o.forEach((t=>yo(e,t,n,!0)))
;for(const a in t)if(r&&"expose"===a);else{const r=wo[a]||n&&n[a]
;e[a]=r?r(e[a],t[a]):t[a]}return e}const wo={data:xo,props:Eo,emits:Eo,
methods:_o,computed:_o,beforeCreate:So,created:So,beforeMount:So,mounted:So,
beforeUpdate:So,updated:So,beforeDestroy:So,beforeUnmount:So,destroyed:So,
unmounted:So,activated:So,deactivated:So,errorCaptured:So,serverPrefetch:So,
components:_o,directives:_o,watch:function(e,t){if(!e)return t;if(!t)return e
;const n=ge(Object.create(null),e);for(const r in t)n[r]=So(e[r],t[r]);return n
},provide:xo,inject:function(e,t){return _o(ko(e),ko(t))}};function xo(e,t){
return t?e?function(){
return ge(Se(e)?e.call(this,this):e,Se(t)?t.call(this,this):t)}:t:e}
function ko(e){if(ye(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n]
;return t}return e}function So(e,t){return e?[...new Set([].concat(e,t))]:t}
function _o(e,t){return e?ge(Object.create(null),e,t):t}function Eo(e,t){
return e?ye(e)&&ye(t)?[...new Set([...e,...t])]:ge(Object.create(null),ho(e),ho(null!=t?t:{})):t
}function To(){return{app:null,config:{isNativeTag:he,performance:!1,
globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,
warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},
provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,
emitsCache:new WeakMap}}let Co=0;function Ao(e,t){return function(n,r=null){
Se(n)||(n=ge({},n)),null==r||Te(r)||(r=null);const o=To(),i=new WeakSet;let a=!1
;const s=o.app={_uid:Co++,_component:n,_props:r,_container:null,_context:o,
_instance:null,version:Da,get config(){return o.config},set config(e){},
use:(e,...t)=>(i.has(e)||(e&&Se(e.install)?(i.add(e),
e.install(s,...t)):Se(e)&&(i.add(e),e(s,...t))),s),
mixin:e=>(o.mixins.includes(e)||o.mixins.push(e),s),
component:(e,t)=>t?(o.components[e]=t,s):o.components[e],
directive:(e,t)=>t?(o.directives[e]=t,s):o.directives[e],mount(i,l,c){if(!a){
const u=ta(n,r)
;return u.appContext=o,!0===c?c="svg":!1===c&&(c=void 0),l&&t?t(u,i):e(u,i,c),
a=!0,s._container=i,i.__vue_app__=s,Ta(u.component)}},unmount(){
a&&(e(null,s._container),delete s._container.__vue_app__)},
provide:(e,t)=>(o.provides[e]=t,s),runWithContext(e){const t=Po;Po=s;try{
return e()}finally{Po=t}}};return s}}let Po=null;function Do(e,t){if(fa){
let n=fa.provides;const r=fa.parent&&fa.parent.provides
;r===n&&(n=fa.provides=Object.create(r)),n[e]=t}else;}function $o(e,t,n=!1){
const r=fa||xr;if(r||Po){
const o=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Po._context.provides
;if(o&&e in o)return o[e]
;if(arguments.length>1)return n&&Se(t)?t.call(r&&r.proxy):t}}
const Ro={},No=()=>Object.create(Ro),Io=e=>Object.getPrototypeOf(e)===Ro
;function Mo(e,t,n,r){const[o,i]=e.propsOptions;let a,s=!1;if(t)for(let l in t){
if(Ne(l))continue;const c=t[l];let u
;o&&Oe(o,u=Le(l))?i&&i.includes(u)?(a||(a={}))[u]=c:n[u]=c:wr(e.emitsOptions,l)||l in r&&c===r[l]||(r[l]=c,
s=!0)}if(i){const t=Pn(n),r=a||ue;for(let a=0;a<i.length;a++){const s=i[a]
;n[s]=Lo(o,t,s,r[s],e,!Oe(r,s))}}return s}function Lo(e,t,n,r,o,i){const a=e[n]
;if(null!=a){const e=Oe(a,"default");if(e&&void 0===r){const e=a.default
;if(a.type!==Function&&!a.skipFactory&&Se(e)){const{propsDefaults:i}=o
;if(n in i)r=i[n];else{const a=ba(o);r=i[n]=e.call(null,t),a()}}else r=e}
a[0]&&(i&&!e?r=!1:!a[1]||""!==r&&r!==Qe(n)||(r=!0))}return r}
function Bo(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o
;const i=e.props,a={},s=[];let l=!1;if(!Se(e)){const r=e=>{l=!0
;const[n,r]=Bo(e,t,!0);ge(a,n),r&&s.push(...r)}
;!n&&t.mixins.length&&t.mixins.forEach(r),
e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}
if(!i&&!l)return Te(e)&&r.set(e,de),de;if(ye(i))for(let u=0;u<i.length;u++){
const e=Le(i[u]);Qo(e)&&(a[e]=ue)}else if(i)for(const u in i){const e=Le(u)
;if(Qo(e)){const t=i[u],n=a[e]=ye(t)||Se(t)?{type:t}:ge({},t);if(n){
const t=Fo(Boolean,n.type),r=Fo(String,n.type)
;n[0]=t>-1,n[1]=r<0||t<r,(t>-1||Oe(n,"default"))&&s.push(e)}}}const c=[a,s]
;return Te(e)&&r.set(e,c),c}function Qo(e){return"$"!==e[0]&&!Ne(e)}
function jo(e){if(null===e)return"null"
;if("function"==typeof e)return e.name||"";if("object"==typeof e){
return e.constructor&&e.constructor.name||""}return""}function Uo(e,t){
return jo(e)===jo(t)}function Fo(e,t){
return ye(t)?t.findIndex((t=>Uo(t,e))):Se(t)&&Uo(t,e)?0:-1}
const qo=e=>"_"===e[0]||"$stable"===e,zo=e=>ye(e)?e.map(sa):[sa(e)],Ho=(e,t,n)=>{
if(t._n)return t;const r=Tr(((...e)=>zo(t(...e))),n);return r._c=!1,r
},Zo=(e,t,n)=>{const r=e._ctx;for(const o in e){if(qo(o))continue;const n=e[o]
;if(Se(n))t[o]=Ho(0,n,r);else if(null!=n){const e=zo(n);t[o]=()=>e}}
},Vo=(e,t)=>{const n=zo(t);e.slots.default=()=>n},Wo=(e,t)=>{
const n=e.slots=No();if(32&e.vnode.shapeFlag){const e=t._
;e?(ge(n,t),ze(n,"_",e,!0)):Zo(t,n)}else t&&Vo(e,t)},Xo=(e,t,n)=>{
const{vnode:r,slots:o}=e;let i=!0,a=ue;if(32&r.shapeFlag){const e=t._
;e?n&&1===e?i=!1:(ge(o,t),n||1!==e||delete o._):(i=!t.$stable,Zo(t,o)),a=t
}else t&&(Vo(e,t),a={default:1})
;if(i)for(const s in o)qo(s)||null!=a[s]||delete o[s]}
;function Yo(e,t,n,r,o=!1){
if(ye(e))return void e.forEach(((e,i)=>Yo(e,t&&(ye(t)?t[i]:t),n,r,o)))
;if(to(r)&&!o)return
;const i=4&r.shapeFlag?Ta(r.component):r.el,a=o?null:i,{i:s,r:l}=e,c=t&&t.r,u=s.refs===ue?s.refs={}:s.refs,d=s.setupState
;if(null!=c&&c!==l&&(_e(c)?(u[c]=null,
Oe(d,c)&&(d[c]=null)):Ln(c)&&(c.value=null)),Se(l))Jn(l,s,12,[a,u]);else{
const t=_e(l),r=Ln(l);if(t||r){const s=()=>{if(e.f){
const n=t?Oe(d,l)?d[l]:u[l]:l.value
;o?ye(n)&&ve(n,i):ye(n)?n.includes(i)||n.push(i):t?(u[l]=[i],
Oe(d,l)&&(d[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))
}else t?(u[l]=a,Oe(d,l)&&(d[l]=a)):r&&(l.value=a,e.k&&(u[e.k]=a))}
;a?(s.id=-1,Go(s,n)):s()}}}const Go=function(e,t){var n
;t&&t.pendingBranch?ye(e)?t.effects.push(...e):t.effects.push(e):(ye(n=e)?ar.push(...n):sr&&sr.includes(n,n.allowRecurse?lr+1:lr)||ar.push(n),
hr())};function Ko(e){return function(e,t){We().__VUE__=!0
;const{insert:n,remove:r,patchProp:o,createElement:i,createText:a,createComment:s,setText:l,setElementText:c,parentNode:u,nextSibling:d,setScopeId:p=pe,insertStaticContent:h}=e,f=(e,t,n,r=null,o=null,i=null,a=void 0,s=null,l=!!t.dynamicChildren)=>{
if(e===t)return
;e&&!Gi(e,t)&&(r=F(e),L(e,o,i,!0),e=null),-2===t.patchFlag&&(l=!1,
t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Qi:
m(e,t,n,r);break;case ji:g(e,t,n,r);break;case Ui:null==e&&v(t,n,r,a);break
;case Bi:T(e,t,n,r,o,i,a,s,l);break;default:
1&d?y(e,t,n,r,o,i,a,s,l):6&d?C(e,t,n,r,o,i,a,s,l):(64&d||128&d)&&c.process(e,t,n,r,o,i,a,s,l,H)
}null!=u&&o&&Yo(u,e&&e.ref,i,t||e,!t)},m=(e,t,r,o)=>{
if(null==e)n(t.el=a(t.children),r,o);else{const n=t.el=e.el
;t.children!==e.children&&l(n,t.children)}},g=(e,t,r,o)=>{
null==e?n(t.el=s(t.children||""),r,o):t.el=e.el},v=(e,t,n,r)=>{
[e.el,e.anchor]=h(e.children,t,n,r,e.el,e.anchor)},b=({el:e,anchor:t},r,o)=>{
let i;for(;e&&e!==t;)i=d(e),n(e,r,o),e=i;n(t,r,o)},O=({el:e,anchor:t})=>{let n
;for(;e&&e!==t;)n=d(e),r(e),e=n;r(t)},y=(e,t,n,r,o,i,a,s,l)=>{
"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),
null==e?w(t,n,r,o,i,a,s,l):S(e,t,o,i,a,s,l)},w=(e,t,r,a,s,l,u,d)=>{let p,h
;const{props:f,shapeFlag:m,transition:g,dirs:v}=e
;if(p=e.el=i(e.type,l,f&&f.is,f),
8&m?c(p,e.children):16&m&&k(e.children,p,null,a,s,Jo(e,l),u,d),
v&&Gr(e,null,a,"created"),x(p,e,e.scopeId,u,a),f){
for(const t in f)"value"===t||Ne(t)||o(p,t,null,f[t],l,e.children,a,s,U)
;"value"in f&&o(p,"value",null,f.value,l),(h=f.onVnodeBeforeMount)&&da(h,a,e)}
v&&Gr(e,null,a,"beforeMount");const b=function(e,t){
return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(s,g)
;b&&g.beforeEnter(p),n(p,t,r),((h=f&&f.onVnodeMounted)||b||v)&&Go((()=>{
h&&da(h,a,e),b&&g.enter(p),v&&Gr(e,null,a,"mounted")}),s)},x=(e,t,n,r,o)=>{
if(n&&p(e,n),r)for(let i=0;i<r.length;i++)p(e,r[i]);if(o){if(t===o.subTree){
const t=o.vnode;x(e,t,t.scopeId,t.slotScopeIds,o.parent)}}
},k=(e,t,n,r,o,i,a,s,l=0)=>{for(let c=l;c<e.length;c++){
const l=e[c]=s?la(e[c]):sa(e[c]);f(null,l,t,n,r,o,i,a,s)}},S=(e,t,n,r,i,a,s)=>{
const l=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag
;const h=e.props||ue,f=t.props||ue;let m
;if(n&&ei(n,!1),(m=f.onVnodeBeforeUpdate)&&da(m,n,t,e),
p&&Gr(t,e,n,"beforeUpdate"),
n&&ei(n,!0),d?_(e.dynamicChildren,d,l,n,r,Jo(t,i),a):s||R(e,t,l,null,n,r,Jo(t,i),a,!1),
u>0){
if(16&u)E(l,t,h,f,n,r,i);else if(2&u&&h.class!==f.class&&o(l,"class",null,f.class,i),
4&u&&o(l,"style",h.style,f.style,i),8&u){const a=t.dynamicProps
;for(let t=0;t<a.length;t++){const s=a[t],c=h[s],u=f[s]
;u===c&&"value"!==s||o(l,s,c,u,i,e.children,n,r,U)}}
1&u&&e.children!==t.children&&c(l,t.children)}else s||null!=d||E(l,t,h,f,n,r,i)
;((m=f.onVnodeUpdated)||p)&&Go((()=>{m&&da(m,n,t,e),p&&Gr(t,e,n,"updated")}),r)
},_=(e,t,n,r,o,i,a)=>{for(let s=0;s<t.length;s++){
const l=e[s],c=t[s],d=l.el&&(l.type===Bi||!Gi(l,c)||70&l.shapeFlag)?u(l.el):n
;f(l,c,d,null,r,o,i,a,!0)}},E=(e,t,n,r,i,a,s)=>{if(n!==r){
if(n!==ue)for(const l in n)Ne(l)||l in r||o(e,l,n[l],null,s,t.children,i,a,U)
;for(const l in r){if(Ne(l))continue;const c=r[l],u=n[l]
;c!==u&&"value"!==l&&o(e,l,u,c,s,t.children,i,a,U)}
"value"in r&&o(e,"value",n.value,r.value,s)}},T=(e,t,r,o,i,s,l,c,u)=>{
const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("")
;let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t
;m&&(c=c?c.concat(m):m),null==e?(n(d,r,o),
n(p,r,o),k(t.children||[],r,p,i,s,l,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(_(e.dynamicChildren,f,r,i,s,l,c),
(null!=t.key||i&&t===i.subTree)&&ti(e,t,!0)):R(e,t,r,p,i,s,l,c,u)
},C=(e,t,n,r,o,i,a,s,l)=>{
t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,a,l):A(t,n,r,o,i,a,l):P(e,t,l)
},A=(e,t,n,r,o,i,a)=>{const s=e.component=function(e,t,n){
const r=e.type,o=(t?t.appContext:e.appContext)||pa,i={uid:ha++,vnode:e,type:r,
parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,
scope:new pt(!0),render:null,proxy:null,exposed:null,exposeProxy:null,
withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,
renderCache:[],components:null,directives:null,propsOptions:Bo(r,o),
emitsOptions:yr(r,o),emit:null,emitted:null,propsDefaults:ue,
inheritAttrs:r.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,
setupState:ue,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,
suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,
isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,
um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};i.ctx={_:i
},i.root=t?t.root:i,i.emit=Or.bind(null,i),e.ce&&e.ce(i);return i}(e,r,o)
;if(hi(e)&&(s.ctx.renderer=H),function(e,t=!1){t&&va(t)
;const{props:n,children:r}=e.vnode,o=ya(e);(function(e,t,n,r=!1){
const o={},i=No();e.propsDefaults=Object.create(null),Mo(e,t,o,i)
;for(const a in e.propsOptions[0])a in o||(o[a]=void 0)
;n?e.props=r?o:xn(o):e.type.props?e.props=o:e.props=i,e.attrs=i
})(e,n,o,t),Wo(e,r);const i=o?function(e,t){const n=e.type
;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,lo);const{setup:r}=n
;if(r){const n=e.setupContext=r.length>1?Ea(e):null,o=ba(e);kt()
;const i=Jn(r,e,0,[e.props,n]);if(St(),o(),Ce(i)){
if(i.then(Oa,Oa),t)return i.then((n=>{ka(e,n,t)})).catch((t=>{tr(t,e,0)}))
;e.asyncDep=i}else ka(e,i,t)}else Sa(e,t)}(e,t):void 0;t&&va(!1)
}(s),s.asyncDep){if(o&&o.registerDep(s,D,a),!e.el){const e=s.subTree=ta(ji)
;g(null,e,t,n)}}else D(s,e,t,n,o,i,a)},P=(e,t,n)=>{
const r=t.component=e.component;if(function(e,t,n){
const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:l}=t,c=i.emitsOptions
;if(t.dirs||t.transition)return!0
;if(!(n&&l>=0))return!(!o&&!s||s&&s.$stable)||r!==a&&(r?!a||Dr(r,a,c):!!a)
;if(1024&l)return!0;if(16&l)return r?Dr(r,a,c):!!a;if(8&l){
const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t]
;if(a[n]!==r[n]&&!wr(c,n))return!0}}return!1}(e,t,n)){
if(r.asyncDep&&!r.asyncResolved)return void $(r,t,n);r.next=t,function(e){
const t=or.indexOf(e);t>ir&&or.splice(t,1)
}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t
},D=(e,t,n,r,o,i,a)=>{const s=()=>{if(e.isMounted){
let{next:t,bu:n,u:r,parent:l,vnode:c}=e;{const n=ni(e)
;if(n)return t&&(t.el=c.el,$(e,t,a)),void n.asyncDep.then((()=>{
e.isUnmounted||s()}))}let d,p=t
;ei(e,!1),t?(t.el=c.el,$(e,t,a)):t=c,n&&qe(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&da(d,l,t,c),
ei(e,!0);const h=Cr(e),m=e.subTree
;e.subTree=h,f(m,h,u(m.el),F(m),e,o,i),t.el=h.el,
null===p&&function({vnode:e,parent:t},n){for(;t;){const r=t.subTree
;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r!==e)break
;(e=t.vnode).el=n,t=t.parent}
}(e,h.el),r&&Go(r,o),(d=t.props&&t.props.onVnodeUpdated)&&Go((()=>da(d,l,t,c)),o)
}else{let a;const{el:s,props:l}=t,{bm:c,m:u,parent:d}=e,p=to(t)
;if(ei(e,!1),c&&qe(c),!p&&(a=l&&l.onVnodeBeforeMount)&&da(a,d,t),ei(e,!0),s&&V){
const n=()=>{e.subTree=Cr(e),V(s,e.subTree,e,o,null)}
;p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{
const a=e.subTree=Cr(e);f(null,a,n,r,e,o,i),t.el=a.el}
if(u&&Go(u,o),!p&&(a=l&&l.onVnodeMounted)){const e=t;Go((()=>da(a,d,e)),o)}
(256&t.shapeFlag||d&&to(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&Go(e.a,o),
e.isMounted=!0,t=n=r=null}
},l=e.effect=new gt(s,pe,(()=>pr(c)),e.scope),c=e.update=()=>{l.dirty&&l.run()}
;c.id=e.uid,ei(e,!0),c()},$=(e,t,n)=>{t.component=e;const r=e.vnode.props
;e.vnode=t,e.next=null,function(e,t,n,r){
const{props:o,attrs:i,vnode:{patchFlag:a}}=e,s=Pn(o),[l]=e.propsOptions;let c=!1
;if(!(r||a>0)||16&a){let r;Mo(e,t,o,i)&&(c=!0)
;for(const i in s)t&&(Oe(t,i)||(r=Qe(i))!==i&&Oe(t,r))||(l?!n||void 0===n[i]&&void 0===n[r]||(o[i]=Lo(l,s,i,void 0,e,!0)):delete o[i])
;if(i!==s)for(const e in i)t&&Oe(t,e)||(delete i[e],c=!0)}else if(8&a){
const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let a=n[r]
;if(wr(e.emitsOptions,a))continue;const u=t[a]
;if(l)if(Oe(i,a))u!==i[a]&&(i[a]=u,c=!0);else{const t=Le(a)
;o[t]=Lo(l,s,t,u,e,!1)}else u!==i[a]&&(i[a]=u,c=!0)}}c&&It(e.attrs,"set","")
}(e,t.props,r,n),Xo(e,t.children,n),kt(),fr(e),St()},R=(e,t,n,r,o,i,a,s,l=!1)=>{
const u=e&&e.children,d=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t
;if(h>0){if(128&h)return void I(u,p,n,r,o,i,a,s,l)
;if(256&h)return void N(u,p,n,r,o,i,a,s,l)}
8&f?(16&d&&U(u,o,i),p!==u&&c(n,p)):16&d?16&f?I(u,p,n,r,o,i,a,s,l):U(u,o,i,!0):(8&d&&c(n,""),
16&f&&k(p,n,r,o,i,a,s,l))},N=(e,t,n,r,o,i,a,s,l)=>{t=t||de
;const c=(e=e||de).length,u=t.length,d=Math.min(c,u);let p;for(p=0;p<d;p++){
const r=t[p]=l?la(t[p]):sa(t[p]);f(e[p],r,n,null,o,i,a,s,l)}
c>u?U(e,o,i,!0,!1,d):k(t,n,r,o,i,a,s,l,d)},I=(e,t,n,r,o,i,a,s,l)=>{let c=0
;const u=t.length;let d=e.length-1,p=u-1;for(;c<=d&&c<=p;){
const r=e[c],u=t[c]=l?la(t[c]):sa(t[c]);if(!Gi(r,u))break
;f(r,u,n,null,o,i,a,s,l),c++}for(;c<=d&&c<=p;){
const r=e[d],c=t[p]=l?la(t[p]):sa(t[p]);if(!Gi(r,c))break
;f(r,c,n,null,o,i,a,s,l),d--,p--}if(c>d){if(c<=p){const e=p+1,d=e<u?t[e].el:r
;for(;c<=p;)f(null,t[c]=l?la(t[c]):sa(t[c]),n,d,o,i,a,s,l),c++}
}else if(c>p)for(;c<=d;)L(e[c],o,i,!0),c++;else{const h=c,m=c,g=new Map
;for(c=m;c<=p;c++){const e=t[c]=l?la(t[c]):sa(t[c]);null!=e.key&&g.set(e.key,c)}
let v,b=0;const O=p-m+1;let y=!1,w=0;const x=new Array(O);for(c=0;c<O;c++)x[c]=0
;for(c=h;c<=d;c++){const r=e[c];if(b>=O){L(r,o,i,!0);continue}let u
;if(null!=r.key)u=g.get(r.key);else for(v=m;v<=p;v++)if(0===x[v-m]&&Gi(r,t[v])){
u=v;break}
void 0===u?L(r,o,i,!0):(x[u-m]=c+1,u>=w?w=u:y=!0,f(r,t[u],n,null,o,i,a,s,l),b++)
}const k=y?function(e){const t=e.slice(),n=[0];let r,o,i,a,s;const l=e.length
;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(o=n[n.length-1],e[o]<l){
t[r]=o,n.push(r);continue}for(i=0,a=n.length-1;i<a;)s=i+a>>1,e[n[s]]<l?i=s+1:a=s
;l<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,a=n[i-1]
;for(;i-- >0;)n[i]=a,a=t[a];return n}(x):de;for(v=k.length-1,c=O-1;c>=0;c--){
const e=m+c,d=t[e],p=e+1<u?t[e+1].el:r
;0===x[c]?f(null,d,n,p,o,i,a,s,l):y&&(v<0||c!==k[v]?M(d,n,p,2):v--)}}
},M=(e,t,r,o,i=null)=>{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=e
;if(6&u)return void M(e.component.subTree,t,r,o)
;if(128&u)return void e.suspense.move(t,r,o);if(64&u)return void s.move(e,t,r,H)
;if(s===Bi){n(a,t,r);for(let e=0;e<c.length;e++)M(c[e],t,r,o)
;return void n(e.anchor,t,r)}if(s===Ui)return void b(e,t,r)
;if(2!==o&&1&u&&l)if(0===o)l.beforeEnter(a),
n(a,t,r),Go((()=>l.enter(a)),i);else{
const{leave:e,delayLeave:o,afterLeave:i}=l,s=()=>n(a,t,r),c=()=>{e(a,(()=>{
s(),i&&i()}))};o?o(a,s,c):c()}else n(a,t,r)},L=(e,t,n,r=!1,o=!1)=>{
const{type:i,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p,memoIndex:h}=e
;if(-2===d&&(o=!1),
null!=s&&Yo(s,null,n,e,!0),null!=h&&(t.renderCache[h]=void 0),
256&u)return void t.ctx.deactivate(e);const f=1&u&&p,m=!to(e);let g
;if(m&&(g=a&&a.onVnodeBeforeUnmount)&&da(g,t,e),6&u)j(e.component,n,r);else{
if(128&u)return void e.suspense.unmount(n,r)
;f&&Gr(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,H,r):c&&(i!==Bi||d>0&&64&d)?U(c,t,n,!1,!0):(i===Bi&&384&d||!o&&16&u)&&U(l,t,n),
r&&B(e)}(m&&(g=a&&a.onVnodeUnmounted)||f)&&Go((()=>{
g&&da(g,t,e),f&&Gr(e,null,t,"unmounted")}),n)},B=e=>{
const{type:t,el:n,anchor:o,transition:i}=e;if(t===Bi)return void Q(n,o)
;if(t===Ui)return void O(e);const a=()=>{
r(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()}
;if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,o=()=>t(n,a)
;r?r(e.el,a,o):o()}else a()},Q=(e,t)=>{let n;for(;e!==t;)n=d(e),r(e),e=n;r(t)
},j=(e,t,n)=>{const{bum:r,scope:o,update:i,subTree:a,um:s,m:l,a:c}=e
;ri(l),ri(c),r&&qe(r),o.stop(),i&&(i.active=!1,L(a,e,t,n)),s&&Go(s,t),Go((()=>{
e.isUnmounted=!0
}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,
0===t.deps&&t.resolve())},U=(e,t,n,r=!1,o=!1,i=0)=>{
for(let a=i;a<e.length;a++)L(e[a],t,n,r,o)
},F=e=>6&e.shapeFlag?F(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el)
;let q=!1;const z=(e,t,n)=>{
null==e?t._vnode&&L(t._vnode,null,null,!0):f(t._vnode||null,e,t,null,null,null,n),
q||(q=!0,fr(),mr(),q=!1),t._vnode=e},H={p:f,um:L,m:M,r:B,mt:A,mc:k,pc:R,pbc:_,
n:F,o:e};let Z,V;return{render:z,hydrate:Z,createApp:Ao(z,Z)}}(e)}
function Jo({type:e,props:t},n){
return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n
}function ei({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}
function ti(e,t,n=!1){const r=e.children,o=t.children
;if(ye(r)&&ye(o))for(let i=0;i<r.length;i++){const e=r[i];let t=o[i]
;1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=o[i]=la(o[i]),
t.el=e.el),n||-2===t.patchFlag||ti(e,t)),t.type===Qi&&(t.el=e.el)}}
function ni(e){const t=e.subTree.component
;if(t)return t.asyncDep&&!t.asyncResolved?t:ni(t)}function ri(e){
if(e)for(let t=0;t<e.length;t++)e[t].active=!1}
const oi=Symbol.for("v-scx"),ii=()=>$o(oi);function ai(e,t){return ci(e,null,t)}
const si={};function li(e,t,n){return ci(e,t,n)}
function ci(e,t,{immediate:n,deep:r,flush:o,once:i,onTrack:a,onTrigger:s}=ue){
if(t&&i){const e=t;t=(...t)=>{e(...t),w()}}
const l=fa,c=e=>!0===r?e:pi(e,!1===r?1:void 0);let u,d,p=!1,h=!1
;if(Ln(e)?(u=()=>e.value,
p=Cn(e)):En(e)?(u=()=>c(e),p=!0):ye(e)?(h=!0,p=e.some((e=>En(e)||Cn(e))),
u=()=>e.map((e=>Ln(e)?e.value:En(e)?c(e):Se(e)?Jn(e,l,2):void 0))):u=Se(e)?t?()=>Jn(e,l,2):()=>(d&&d(),
er(e,l,3,[m])):pe,t&&r){const e=u;u=()=>pi(e())}let f,m=e=>{d=O.onStop=()=>{
Jn(e,l,4),d=O.onStop=void 0}};if(xa){
if(m=pe,t?n&&er(t,l,3,[u(),h?[]:void 0,m]):u(),"sync"!==o)return pe;{
const e=ii();f=e.__watcherHandles||(e.__watcherHandles=[])}}
let g=h?new Array(e.length).fill(si):si;const v=()=>{if(O.active&&O.dirty)if(t){
const e=O.run()
;(r||p||(h?e.some(((e,t)=>Fe(e,g[t]))):Fe(e,g)))&&(d&&d(),er(t,l,3,[e,g===si?void 0:h&&g[0]===si?[]:g,m]),
g=e)}else O.run()};let b
;v.allowRecurse=!!t,"sync"===o?b=v:"post"===o?b=()=>Go(v,l&&l.suspense):(v.pre=!0,
l&&(v.id=l.uid),b=()=>pr(v));const O=new gt(u,pe,b),y=ft(),w=()=>{
O.stop(),y&&ve(y.effects,O)}
;return t?n?v():g=O.run():"post"===o?Go(O.run.bind(O),l&&l.suspense):O.run(),
f&&f.push(w),w}function ui(e,t,n){
const r=this.proxy,o=_e(e)?e.includes(".")?di(r,e):()=>r[e]:e.bind(r,r);let i
;Se(t)?i=t:(i=t.handler,n=t);const a=ba(this),s=ci(o,i.bind(r),n);return a(),s}
function di(e,t){const n=t.split(".");return()=>{let t=e
;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function pi(e,t=1/0,n){
if(t<=0||!Te(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e
;if(n.add(e),
t--,Ln(e))pi(e.value,t,n);else if(ye(e))for(let r=0;r<e.length;r++)pi(e[r],t,n);else if(xe(e)||we(e))e.forEach((e=>{
pi(e,t,n)}));else if($e(e)){for(const r in e)pi(e[r],t,n)
;for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&pi(e[r],t,n)
}return e}const hi=e=>e.type.__isKeepAlive;function fi(e,t){gi(e,"a",t)}
function mi(e,t){gi(e,"da",t)}function gi(e,t,n=fa){
const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return
;t=t.parent}return e()});if(Br(t,r,n),n){let e=n.parent
;for(;e&&e.parent;)hi(e.parent.vnode)&&vi(r,t,n,e),e=e.parent}}
function vi(e,t,n,r){const o=Br(t,e,r,!0);Hr((()=>{ve(r[t],o)}),n)}
const bi=Symbol("_leaveCb"),Oi=Symbol("_enterCb");const yi=[Function,Array],wi={
mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:yi,onEnter:yi,
onAfterEnter:yi,onEnterCancelled:yi,onBeforeLeave:yi,onLeave:yi,onAfterLeave:yi,
onLeaveCancelled:yi,onBeforeAppear:yi,onAppear:yi,onAfterAppear:yi,
onAppearCancelled:yi},xi=e=>{const t=e.subTree
;return t.component?xi(t.component):t},ki={name:"BaseTransition",props:wi,
setup(e,{slots:t}){const n=ma(),r=function(){const e={isMounted:!1,isLeaving:!1,
isUnmounting:!1,leavingVNodes:new Map};return Ur((()=>{e.isMounted=!0
})),zr((()=>{e.isUnmounting=!0})),e}();return()=>{
const o=t.default&&Ai(t.default(),!0);if(!o||!o.length)return;let i=o[0]
;if(o.length>1)for(const e of o)if(e.type!==ji){i=e;break}
const a=Pn(e),{mode:s}=a;if(r.isLeaving)return Ei(i);const l=Ti(i)
;if(!l)return Ei(i);let c=_i(l,a,r,n,(e=>c=e));Ci(l,c)
;const u=n.subTree,d=u&&Ti(u);if(d&&d.type!==ji&&!Gi(l,d)&&xi(n).type!==ji){
const e=_i(d,a,r,n)
;if(Ci(d,e),"out-in"===s&&l.type!==ji)return r.isLeaving=!0,e.afterLeave=()=>{
r.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Ei(i)
;"in-out"===s&&l.type!==ji&&(e.delayLeave=(e,t,n)=>{
Si(r,d)[String(d.key)]=d,e[bi]=()=>{t(),e[bi]=void 0,delete c.delayedLeave
},c.delayedLeave=n})}return i}}};function Si(e,t){const{leavingVNodes:n}=e
;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}
function _i(e,t,n,r,o){
const{appear:i,mode:a,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:g,onAppear:v,onAfterAppear:b,onAppearCancelled:O}=t,y=String(e.key),w=Si(n,e),x=(e,t)=>{
e&&er(e,r,9,t)},k=(e,t)=>{const n=t[1]
;x(e,t),ye(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},S={mode:a,
persisted:s,beforeEnter(t){let r=l;if(!n.isMounted){if(!i)return;r=g||l}
t[bi]&&t[bi](!0);const o=w[y];o&&Gi(e,o)&&o.el[bi]&&o.el[bi](),x(r,[t])},
enter(e){let t=c,r=u,o=d;if(!n.isMounted){if(!i)return;t=v||c,r=b||u,o=O||d}
let a=!1;const s=e[Oi]=t=>{
a||(a=!0,x(t?o:r,[e]),S.delayedLeave&&S.delayedLeave(),e[Oi]=void 0)}
;t?k(t,[e,s]):s()},leave(t,r){const o=String(e.key)
;if(t[Oi]&&t[Oi](!0),n.isUnmounting)return r();x(p,[t]);let i=!1
;const a=t[bi]=n=>{i||(i=!0,r(),x(n?m:f,[t]),t[bi]=void 0,w[o]===e&&delete w[o])
};w[o]=e,h?k(h,[t,a]):a()},clone(e){const i=_i(e,t,n,r,o);return o&&o(i),i}}
;return S}function Ei(e){if(hi(e))return(e=ra(e)).children=null,e}
function Ti(e){if(!hi(e))return e;const{shapeFlag:t,children:n}=e;if(n){
if(16&t)return n[0];if(32&t&&Se(n.default))return n.default()}}function Ci(e,t){
6&e.shapeFlag&&e.component?Ci(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),
e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}
function Ai(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let a=e[i]
;const s=null==n?a.key:String(n)+String(null!=a.key?a.key:i)
;a.type===Bi?(128&a.patchFlag&&o++,
r=r.concat(Ai(a.children,t,s))):(t||a.type!==ji)&&r.push(null!=s?ra(a,{key:s
}):a)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}
const Pi=e=>e&&(e.disabled||""===e.disabled),Di=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,$i=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Ri=(e,t)=>{
const n=e&&e.to;if(_e(n)){if(t){return t(n)}return null}return n},Ni={
name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,i,a,s,l,c){
const{mc:u,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:m,createComment:g}}=c,v=Pi(t.props)
;let{shapeFlag:b,children:O,dynamicChildren:y}=t;if(null==e){
const e=t.el=m(""),c=t.anchor=m("");h(e,n,r),h(c,n,r)
;const d=t.target=Ri(t.props,f),p=t.targetAnchor=m("")
;d&&(h(p,d),"svg"===a||Di(d)?a="svg":("mathml"===a||$i(d))&&(a="mathml"))
;const g=(e,t)=>{16&b&&u(O,e,t,o,i,a,s,l)};v?g(n,c):d&&g(d,p)}else{t.el=e.el
;const r=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=Pi(e.props),g=m?n:u,b=m?r:h
;if("svg"===a||Di(u)?a="svg":("mathml"===a||$i(u))&&(a="mathml"),
y?(p(e.dynamicChildren,y,g,o,i,a,s),
ti(e,t,!0)):l||d(e,t,g,b,o,i,a,s,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ii(t,n,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){
const e=t.target=Ri(t.props,f);e&&Ii(t,e,null,c,0)}else m&&Ii(t,u,h,c,1)}Li(t)},
remove(e,t,n,{um:r,o:{remove:o}},i){
const{shapeFlag:a,children:s,anchor:l,targetAnchor:c,target:u,props:d}=e
;if(u&&o(c),i&&o(l),16&a){const e=i||!Pi(d);for(let o=0;o<s.length;o++){
const i=s[o];r(i,t,n,e,!!i.dynamicChildren)}}},move:Ii,
hydrate:function(e,t,n,r,o,i,{o:{nextSibling:a,parentNode:s,querySelector:l}},c){
const u=t.target=Ri(t.props,l);if(u){const l=u._lpa||u.firstChild
;if(16&t.shapeFlag)if(Pi(t.props))t.anchor=c(a(e),t,s(e),n,r,o,i),
t.targetAnchor=l;else{t.anchor=a(e);let s=l
;for(;s;)if(s=a(s),s&&8===s.nodeType&&"teleport anchor"===s.data){
t.targetAnchor=s,u._lpa=t.targetAnchor&&a(t.targetAnchor);break}c(l,t,u,n,r,o,i)
}Li(t)}return t.anchor&&a(t.anchor)}};function Ii(e,t,n,{o:{insert:r},m:o},i=2){
0===i&&r(e.targetAnchor,t,n)
;const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,d=2===i
;if(d&&r(a,t,n),(!d||Pi(u))&&16&l)for(let p=0;p<c.length;p++)o(c[p],t,n,2)
;d&&r(s,t,n)}const Mi=Ni;function Li(e){const t=e.ctx;if(t&&t.ut){
let n=e.children[0].el
;for(;n&&n!==e.targetAnchor;)1===n.nodeType&&n.setAttribute("data-v-owner",t.uid),
n=n.nextSibling;t.ut()}}
const Bi=Symbol.for("v-fgt"),Qi=Symbol.for("v-txt"),ji=Symbol.for("v-cmt"),Ui=Symbol.for("v-stc"),Fi=[]
;let qi=null;function zi(e=!1){Fi.push(qi=e?null:[])}let Hi=1;function Zi(e){
Hi+=e}function Vi(e){
return e.dynamicChildren=Hi>0?qi||de:null,Fi.pop(),qi=Fi[Fi.length-1]||null,
Hi>0&&qi&&qi.push(e),e}function Wi(e,t,n,r,o,i){return Vi(ea(e,t,n,r,o,i,!0))}
function Xi(e,t,n,r,o){return Vi(ta(e,t,n,r,o,!0))}function Yi(e){
return!!e&&!0===e.__v_isVNode}function Gi(e,t){
return e.type===t.type&&e.key===t.key}
const Ki=({key:e})=>null!=e?e:null,Ji=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),
null!=e?_e(e)||Ln(e)||Se(e)?{i:xr,r:e,k:t,f:!!n}:e:null)
;function ea(e,t=null,n=null,r=0,o=null,i=(e===Bi?0:1),a=!1,s=!1){const l={
__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ki(t),ref:t&&Ji(t),scopeId:kr,
slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,
ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,
targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,
dynamicChildren:null,appContext:null,ctx:xr}
;return s?(ca(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=_e(n)?8:16),
Hi>0&&!a&&qi&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&qi.push(l),l}
const ta=function(e,t=null,n=null,r=0,o=null,i=!1){e&&e!==Nr||(e=ji);if(Yi(e)){
const r=ra(e,t,!0)
;return n&&ca(r,n),Hi>0&&!i&&qi&&(6&r.shapeFlag?qi[qi.indexOf(e)]=r:qi.push(r)),
r.patchFlag=-2,r}a=e,Se(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=na(t)
;let{class:e,style:n}=t
;e&&!_e(e)&&(t.class=et(e)),Te(n)&&(An(n)&&!ye(n)&&(n=ge({},n)),t.style=Xe(n))}
const s=_e(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:Te(e)?4:Se(e)?2:0
;return ea(e,t,n,r,o,s,i,!0)};function na(e){
return e?An(e)||Io(e)?ge({},e):e:null}function ra(e,t,n=!1,r=!1){
const{props:o,ref:i,patchFlag:a,children:s,transition:l}=e,c=t?ua(o||{},t):o,u={
__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ki(c),
ref:t&&t.ref?n&&i?ye(i)?i.concat(Ji(t)):[i,Ji(t)]:Ji(t):i,scopeId:e.scopeId,
slotScopeIds:e.slotScopeIds,children:s,target:e.target,
targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,
patchFlag:t&&e.type!==Bi?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,
dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,
transition:l,component:e.component,suspense:e.suspense,
ssContent:e.ssContent&&ra(e.ssContent),
ssFallback:e.ssFallback&&ra(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,
ce:e.ce};return l&&r&&Ci(u,l.clone(u)),u}function oa(e=" ",t=0){
return ta(Qi,null,e,t)}function ia(e,t){const n=ta(Ui,null,e)
;return n.staticCount=t,n}function aa(e="",t=!1){
return t?(zi(),Xi(ji,null,e)):ta(ji,null,e)}function sa(e){
return null==e||"boolean"==typeof e?ta(ji):ye(e)?ta(Bi,null,e.slice()):"object"==typeof e?la(e):ta(Qi,null,String(e))
}function la(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ra(e)}
function ca(e,t){let n=0;const{shapeFlag:r}=e
;if(null==t)t=null;else if(ye(t))n=16;else if("object"==typeof t){if(65&r){
const n=t.default;return void(n&&(n._c&&(n._d=!1),ca(e,n()),n._c&&(n._d=!0)))}{
n=32;const r=t._
;r||Io(t)?3===r&&xr&&(1===xr.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=xr}
}else Se(t)?(t={default:t,_ctx:xr},n=32):(t=String(t),64&r?(n=16,t=[oa(t)]):n=8)
;e.children=t,e.shapeFlag|=n}function ua(...e){const t={}
;for(let n=0;n<e.length;n++){const r=e[n]
;for(const e in r)if("class"===e)t.class!==r.class&&(t.class=et([t.class,r.class]));else if("style"===e)t.style=Xe([t.style,r.style]);else if(fe(e)){
const n=t[e],o=r[e];!o||n===o||ye(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)
}else""!==e&&(t[e]=r[e])}return t}function da(e,t,n,r=null){er(e,t,7,[n,r])}
const pa=To();let ha=0;let fa=null;const ma=()=>fa||xr;let ga,va;{
const e=We(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{
r.length>1?r.forEach((t=>t(e))):r[0](e)}}
;ga=t("__VUE_INSTANCE_SETTERS__",(e=>fa=e)),
va=t("__VUE_SSR_SETTERS__",(e=>xa=e))}const ba=e=>{const t=fa
;return ga(e),e.scope.on(),()=>{e.scope.off(),ga(t)}},Oa=()=>{
fa&&fa.scope.off(),ga(null)};function ya(e){return 4&e.vnode.shapeFlag}
let wa,xa=!1;function ka(e,t,n){
Se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=Hn(t)),
Sa(e,n)}function Sa(e,t,n){const r=e.type;if(!e.render){if(!t&&wa&&!r.render){
const t=r.template||Oo(e).template;if(t){
const{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:i,compilerOptions:a}=r,s=ge(ge({
isCustomElement:n,delimiters:i},o),a);r.render=wa(t,s)}}e.render=r.render||pe}{
const t=ba(e);kt();try{go(e)}finally{St(),t()}}}const _a={
get:(e,t)=>(Nt(e,0,""),e[t])};function Ea(e){const t=t=>{e.exposed=t||{}}
;return{attrs:new Proxy(e.attrs,_a),slots:e.slots,emit:e.emit,expose:t}}
function Ta(e){
return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Hn(Dn(e.exposed)),{
get:(t,n)=>n in t?t[n]:n in ao?ao[n](e):void 0,has:(e,t)=>t in e||t in ao
})):e.proxy}function Ca(e,t=!0){
return Se(e)?e.displayName||e.name:e.name||t&&e.__name}const Aa=(e,t)=>{
const n=function(e,t,n=!1){let r,o;const i=Se(e)
;return i?(r=e,o=pe):(r=e.get,o=e.set),new Nn(r,o,i||!o,n)}(e,0,xa);return n}
;function Pa(e,t,n){const r=arguments.length
;return 2===r?Te(t)&&!ye(t)?Yi(t)?ta(e,null,[t]):ta(e,t):ta(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Yi(n)&&(n=[n]),
ta(e,t,n))}
const Da="3.4.31",$a="undefined"!=typeof document?document:null,Ra=$a&&$a.createElement("template"),Na={
insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode
;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{
const o="svg"===t?$a.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?$a.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?$a.createElement(e,{
is:n}):$a.createElement(e)
;return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),
o},createText:e=>$a.createTextNode(e),createComment:e=>$a.createComment(e),
setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},
parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,
querySelector:e=>$a.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},
insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild
;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),
o!==i&&(o=o.nextSibling););else{
Ra.innerHTML="svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e
;const o=Ra.content;if("svg"===r||"mathml"===r){const e=o.firstChild
;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}
t.insertBefore(o,n)}
return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}
},Ia="transition",Ma="animation",La=Symbol("_vtc"),Ba=(e,{slots:t})=>Pa(ki,function(e){
const t={};for(const C in e)C in Qa||(t[C]=e[C]);if(!1===e.css)return t
;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=function(e){
if(null==e)return null;if(Te(e))return[Fa(e.enter),Fa(e.leave)];{const t=Fa(e)
;return[t,t]}
}(o),m=f&&f[0],g=f&&f[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:O,onLeave:y,onLeaveCancelled:w,onBeforeAppear:x=v,onAppear:k=b,onAppearCancelled:S=O}=t,_=(e,t,n)=>{
za(e,t?u:s),za(e,t?c:a),n&&n()},E=(e,t)=>{
e._isLeaving=!1,za(e,d),za(e,h),za(e,p),t&&t()},T=e=>(t,n)=>{
const o=e?k:b,a=()=>_(t,e,n);ja(o,[t,a]),Ha((()=>{
za(t,e?l:i),qa(t,e?u:s),Ua(o)||Va(t,r,m,a)}))};return ge(t,{onBeforeEnter(e){
ja(v,[e]),qa(e,i),qa(e,a)},onBeforeAppear(e){ja(x,[e]),qa(e,l),qa(e,c)},
onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>E(e,t)
;qa(e,d),qa(e,p),document.body.offsetHeight,Ha((()=>{
e._isLeaving&&(za(e,d),qa(e,h),Ua(y)||Va(e,r,g,n))})),ja(y,[e,n])},
onEnterCancelled(e){_(e,!1),ja(O,[e])},onAppearCancelled(e){_(e,!0),ja(S,[e])},
onLeaveCancelled(e){E(e),ja(w,[e])}})}(e),t);
/**
  * @vue/runtime-dom v3.4.31
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **/Ba.displayName="Transition";const Qa={name:String,type:String,css:{
type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,
enterActiveClass:String,enterToClass:String,appearFromClass:String,
appearActiveClass:String,appearToClass:String,leaveFromClass:String,
leaveActiveClass:String,leaveToClass:String};Ba.props=ge({},wi,Qa)
;const ja=(e,t=[])=>{ye(e)?e.forEach((e=>e(...t))):e&&e(...t)
},Ua=e=>!!e&&(ye(e)?e.some((e=>e.length>1)):e.length>1);function Fa(e){
return Ze(e)}function qa(e,t){
t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),
(e[La]||(e[La]=new Set)).add(t)}function za(e,t){
t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[La]
;n&&(n.delete(t),n.size||(e[La]=void 0))}function Ha(e){
requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Za=0
;function Va(e,t,n,r){const o=e._endId=++Za,i=()=>{o===e._endId&&r()}
;if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=function(e,t){
const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r(`${Ia}Delay`),i=r(`${Ia}Duration`),a=Wa(o,i),s=r(`${Ma}Delay`),l=r(`${Ma}Duration`),c=Wa(s,l)
;let u=null,d=0,p=0
;t===Ia?a>0&&(u=Ia,d=a,p=i.length):t===Ma?c>0&&(u=Ma,d=c,p=l.length):(d=Math.max(a,c),
u=d>0?a>c?Ia:Ma:null,p=u?u===Ia?i.length:l.length:0)
;const h=u===Ia&&/\b(transform|all)(,|$)/.test(r(`${Ia}Property`).toString())
;return{type:u,timeout:d,propCount:p,hasTransform:h}}(e,t);if(!a)return r()
;const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,p),i()},p=t=>{
t.target===e&&++u>=l&&d()};setTimeout((()=>{u<l&&d()
}),s+1),e.addEventListener(c,p)}function Wa(e,t){
for(;e.length<t.length;)e=e.concat(e)
;return Math.max(...t.map(((t,n)=>Xa(t)+Xa(e[n]))))}function Xa(e){
return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}
const Ya=Symbol("_vod"),Ga=Symbol("_vsh"),Ka={
beforeMount(e,{value:t},{transition:n}){
e[Ya]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Ja(e,t)
},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},
updated(e,{value:t,oldValue:n},{transition:r}){
!t!=!n&&(r?t?(r.beforeEnter(e),Ja(e,!0),r.enter(e)):r.leave(e,(()=>{Ja(e,!1)
})):Ja(e,t))},beforeUnmount(e,{value:t}){Ja(e,t)}};function Ja(e,t){
e.style.display=t?e[Ya]:"none",e[Ga]=!t}const es=Symbol("");function ts(e){
const t=ma();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{
Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>rs(e,n)))
},r=()=>{const r=e(t.proxy);ns(t.subTree,r),n(r)};Ur((()=>{ci(r,null,{
flush:"post"});const e=new MutationObserver(r)
;e.observe(t.subTree.el.parentNode,{childList:!0}),Hr((()=>e.disconnect()))}))}
function ns(e,t){if(128&e.shapeFlag){const n=e.suspense
;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{
ns(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree
;if(1&e.shapeFlag&&e.el)rs(e.el,t);else if(e.type===Bi)e.children.forEach((e=>ns(e,t)));else if(e.type===Ui){
let{el:n,anchor:r}=e;for(;n&&(rs(n,t),n!==r);)n=n.nextSibling}}function rs(e,t){
if(1===e.nodeType){const n=e.style;let r=""
;for(const e in t)n.setProperty(`--${e}`,t[e]),r+=`--${e}: ${t[e]};`;n[es]=r}}
const os=/(^|;)\s*display\s*:/;const is=/\s*!important$/;function as(e,t,n){
if(ye(n))n.forEach((n=>as(e,t,n)));else if(null==n&&(n=""),
t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=ls[t]
;if(n)return n;let r=Le(t);if("filter"!==r&&r in e)return ls[t]=r;r=je(r)
;for(let o=0;o<ss.length;o++){const n=ss[o]+r;if(n in e)return ls[t]=n}return t
}(e,t);is.test(n)?e.setProperty(Qe(r),n.replace(is,""),"important"):e[r]=n}}
const ss=["Webkit","Moz","ms"],ls={};const cs="http://www.w3.org/1999/xlink"
;function us(e,t,n,r,o,i=nt(t)){
r&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(cs,t.slice(6,t.length)):e.setAttributeNS(cs,t,n):null==n||i&&!rt(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Ee(n)?String(n):n)
}function ds(e,t,n,r){e.addEventListener(t,n,r)}const ps=Symbol("_vei")
;function hs(e,t,n,r,o=null){const i=e[ps]||(e[ps]={}),a=i[t]
;if(r&&a)a.value=r;else{const[n,s]=function(e){let t;if(fs.test(e)){let n
;for(t={};n=e.match(fs);)e=e.slice(0,e.length-n[0].length),
t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):Qe(e.slice(2))
;return[n,t]}(t);if(r){const a=i[t]=function(e,t){const n=e=>{if(e._vts){
if(e._vts<=n.attached)return}else e._vts=Date.now();er(function(e,t){if(ye(t)){
const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{
n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t
}(e,n.value),t,5,[e])};return n.value=e,n.attached=vs(),n}(r,o);ds(e,n,a,s)
}else a&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,a,s),i[t]=void 0)
}}const fs=/(?:Once|Passive|Capture)$/;let ms=0
;const gs=Promise.resolve(),vs=()=>ms||(gs.then((()=>ms=0)),ms=Date.now())
;const bs=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123
;const Os=e=>{const t=e.props["onUpdate:modelValue"]||!1
;return ye(t)?e=>qe(t,e):t};function ys(e){e.target.composing=!0}function ws(e){
const t=e.target
;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}
const xs=Symbol("_assign"),ks={
created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[xs]=Os(o)
;const i=r||o.props&&"number"===o.props.type;ds(e,t?"change":"input",(t=>{
if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),i&&(r=He(r)),e[xs](r)
})),n&&ds(e,"change",(()=>{e.value=e.value.trim()
})),t||(ds(e,"compositionstart",ys),ds(e,"compositionend",ws),ds(e,"change",ws))
},mounted(e,{value:t}){e.value=null==t?"":t},
beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:i}},a){
if(e[xs]=Os(a),e.composing)return;const s=null==t?"":t
;if((!i&&"number"!==e.type||/^0\d/.test(e.value)?e.value:He(e.value))!==s){
if(document.activeElement===e&&"range"!==e.type){if(r&&t===n)return
;if(o&&e.value.trim()===s)return}e.value=s}}},Ss={deep:!0,created(e,t,n){
e[xs]=Os(n),ds(e,"change",(()=>{
const t=e._modelValue,n=Cs(e),r=e.checked,o=e[xs];if(ye(t)){
const e=it(t,n),i=-1!==e;if(r&&!i)o(t.concat(n));else if(!r&&i){const n=[...t]
;n.splice(e,1),o(n)}}else if(xe(t)){const e=new Set(t)
;r?e.add(n):e.delete(n),o(e)}else o(As(e,r))}))},mounted:_s,beforeUpdate(e,t,n){
e[xs]=Os(n),_s(e,t,n)}};function _s(e,{value:t,oldValue:n},r){
e._modelValue=t,ye(t)?e.checked=it(t,r.props.value)>-1:xe(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=ot(t,As(e,!0)))
}const Es={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=xe(t)
;ds(e,"change",(()=>{
const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?He(Cs(e)):Cs(e)))
;e[xs](e.multiple?o?new Set(t):t:t[0]),e._assigning=!0,dr((()=>{e._assigning=!1
}))})),e[xs]=Os(r)},mounted(e,{value:t,modifiers:{number:n}}){Ts(e,t)},
beforeUpdate(e,t,n){e[xs]=Os(n)},updated(e,{value:t,modifiers:{number:n}}){
e._assigning||Ts(e,t)}};function Ts(e,t,n){const r=e.multiple,o=ye(t)
;if(!r||o||xe(t)){for(let n=0,i=e.options.length;n<i;n++){
const i=e.options[n],a=Cs(i);if(r)if(o){const e=typeof a
;i.selected="string"===e||"number"===e?t.some((e=>String(e)===String(a))):it(t,a)>-1
}else i.selected=t.has(a);else if(ot(Cs(i),t))return void(e.selectedIndex!==n&&(e.selectedIndex=n))
}r||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Cs(e){
return"_value"in e?e._value:e.value}function As(e,t){
const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}
const Ps=["ctrl","shift","alt","meta"],Ds={stop:e=>e.stopPropagation(),
prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,
ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,
left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,
right:e=>"button"in e&&2!==e.button,
exact:(e,t)=>Ps.some((n=>e[`${n}Key`]&&!t.includes(n)))},$s=(e,t)=>{
const n=e._withMods||(e._withMods={}),r=t.join(".")
;return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=Ds[t[e]]
;if(r&&r(n,t))return}return e(n,...r)})},Rs={esc:"escape",space:" ",
up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",
delete:"backspace"},Ns=(e,t)=>{
const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{
if(!("key"in n))return;const r=Qe(n.key)
;return t.some((e=>e===r||Rs[e]===r))?e(n):void 0})},Is=ge({
patchProp:(e,t,n,r,o,i,a,s,l)=>{const c="svg"===o;"class"===t?function(e,t,n){
const r=e[La]
;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t
}(e,r,c):"style"===t?function(e,t,n){const r=e.style,o=_e(n);let i=!1;if(n&&!o){
if(t)if(_e(t))for(const e of t.split(";")){
const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&as(r,t,"")
}else for(const e in t)null==n[e]&&as(r,e,"")
;for(const e in n)"display"===e&&(i=!0),as(r,e,n[e])}else if(o){if(t!==n){
const e=r[es];e&&(n+=";"+e),r.cssText=n,i=os.test(n)}
}else t&&e.removeAttribute("style")
;Ya in e&&(e[Ya]=i?r.display:"",e[Ga]&&(r.display="none"))
}(e,n,r):fe(t)?me(t)||hs(e,t,0,r,a):("."===t[0]?(t=t.slice(1),
1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){
if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&bs(t)&&Se(n))
;if("spellcheck"===t||"draggable"===t||"translate"===t)return!1
;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1
;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){
const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1
}if(bs(t)&&_e(n))return!1;return t in e}(e,t,r,c))?(!function(e,t,n,r,o,i,a){
if("innerHTML"===t||"textContent"===t)return r&&a(r,o,i),void(e[t]=null==n?"":n)
;const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){
const r="OPTION"===s?e.getAttribute("value")||"":e.value,o=null==n?"":String(n)
;return r===o&&"_value"in e||(e.value=o),
null==n&&e.removeAttribute(t),void(e._value=n)}let l=!1;if(""===n||null==n){
const r=typeof e[t]
;"boolean"===r?n=rt(n):null==n&&"string"===r?(n="",l=!0):"number"===r&&(n=0,
l=!0)}try{e[t]=n}catch(P$){}l&&e.removeAttribute(t)
}(e,t,r,i,a,s,l),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||us(e,t,r,c,0,"value"!==t)):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),
us(e,t,r,c))}},Na);let Ms;function Ls(){return Ms||(Ms=Ko(Is))}
const Bs=(...e)=>{const t=Ls().createApp(...e),{mount:n}=t;return t.mount=e=>{
const r=function(e){if(_e(e)){return document.querySelector(e)}return e}(e)
;if(!r)return;const o=t._component
;Se(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML=""
;const i=n(r,!1,function(e){if(e instanceof SVGElement)return"svg"
;if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"
}(r))
;return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),
i},t};const Qs=Da.startsWith("3");function js(e,t=""){
if(e instanceof Promise)return e;const n="function"==typeof(r=e)?r():Fn(r);var r
;return e&&n?Array.isArray(n)?n.map((e=>js(e,t))):"object"==typeof n?Object.fromEntries(Object.entries(n).map((([e,t])=>"titleTemplate"===e||e.startsWith("on")?[e,Fn(t)]:[e,js(t,e)]))):n:n
}const Us={hooks:{"entries:resolve":function(e){
for(const t of e.entries)t.resolvedInput=js(t.input)}}},Fs="usehead"
;function qs(e={}){
e.domDelayFn=e.domDelayFn||(e=>dr((()=>setTimeout((()=>e()),0))));const t=se(e)
;return t.use(Us),t.install=function(e){return{install(t){
Qs&&(t.config.globalProperties.$unhead=e,
t.config.globalProperties.$head=e,t.provide(Fs,e))}}.install}(t),t}
const zs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Hs="__unhead_injection_handler__"
;function Zs(){if(Hs in zs)return zs[Hs]();const e=$o(Fs);return e||ae}
function Vs(e,t={}){const n=t.head||Zs()
;if(n)return n.ssr?n.push(e,t):function(e,t,n={}){const r=Bn(!1),o=Bn({})
;ai((()=>{o.value=r.value?{}:js(t)}));const i=e.push(o.value,n);li(o,(e=>{
i.patch(e)}));ma()&&(zr((()=>{i.dispose()})),mi((()=>{r.value=!0})),fi((()=>{
r.value=!1})));return i}(n,e,t)}
const Ws=["GET","POST","PUT","HEAD","DELETE","PATCH","OPTIONS","CONNECT","TRACE"]
;function Xs(e,t){var n,r;const o=[],i=[],a=[]
;if(!e.customSecurity&&(!e.preferredSecurityScheme||(!(s=t)||Array.isArray(s)&&!s.length||(s??[]).some((e=>!Object.keys(e).length)))))return{
headers:o,queryString:i,cookies:a};var s
;const l=(null==t?void 0:t.some((t=>e.preferredSecurityScheme&&Object.keys(t).includes(e.preferredSecurityScheme))))||e.customSecurity?e.preferredSecurityScheme:Object.keys((null==t?void 0:t[0])??{}).pop(),c=null==(n=e.securitySchemes)?void 0:n[l??""]
;if(c)if("type"in c&&"apiKey"===c.type){if("in"in c&&"header"===c.in){
const t=(null==(r=e.apiKey.token)?void 0:r.length)?e.apiKey.token:"YOUR_TOKEN"
;o.push({name:"name"in c?c.name:"",value:t})}else if("in"in c&&"cookie"===c.in){
const t=e.apiKey.token.length?e.apiKey.token:"YOUR_TOKEN";a.push({name:c.name,
value:t})}else if("in"in c&&"query"===c.in){
const t=e.apiKey.token.length?e.apiKey.token:"YOUR_TOKEN";i.push({name:c.name,
value:t})}}else if(!("type"in c)||"http"!==c.type&&"basic"!==c.type){
if("type"in c&&"oauth2"===c.type.toLowerCase()){
const t=e.oAuth2.accessToken||"YOUR_SECRET_TOKEN";o.push({name:"Authorization",
value:`Bearer ${t}`})}
}else if("type"in c&&("basic"===c.type||"http"===c.type&&"basic"===c.scheme)){
const{username:t,password:n}=e.http.basic,r=Ys(t,n);o.push({
name:"Authorization",value:`Basic ${r}`.trim()})
}else if("type"in c&&"http"===c.type&&"bearer"===c.scheme){
const t=e.http.bearer.token.length?e.http.bearer.token:"YOUR_SECRET_TOKEN"
;o.push({name:"Authorization",value:`Bearer ${t}`})}return{headers:o,
queryString:i,cookies:a}}function Ys(e,t){
return(null==e?void 0:e.length)||(null==t?void 0:t.length)?(n=`${e}:${t}`,
"undefined"==typeof window?Buffer.from(n).toString("base64"):btoa(n)):"";var n}
function Gs(e){
return[e.apiKey.token,e.http.bearer.token,e.oAuth2.accessToken,Ys(e.http.basic.username,e.http.basic.password),e.http.basic.password].filter(Boolean)
}const Ks=(e,t)=>{if("string"!=typeof t||!t.length)return e
;const n=e.trim(),r=t.trim()
;return[n.endsWith("/")?n:`${n}/`,r.startsWith("/")?r.slice(1):r].join("")}
;function Js(e,t){if(!tl(e,t))return t??"";const n=new URL(t)
;return n.href=e,n.searchParams.append("scalar_url",t),n.toString()}
const el=e=>!/^https?:\/\//.test(e);function tl(e,t){
return!(!e||!t)&&(!el(t)&&!function(e){const{hostname:t}=new URL(e)
;return["localhost","127.0.0.1","[::1]"].includes(t)}(t))}
const nl=Symbol.for("yaml.alias"),rl=Symbol.for("yaml.document"),ol=Symbol.for("yaml.map"),il=Symbol.for("yaml.pair"),al=Symbol.for("yaml.scalar"),sl=Symbol.for("yaml.seq"),ll=Symbol.for("yaml.node.type"),cl=e=>!!e&&"object"==typeof e&&e[ll]===nl,ul=e=>!!e&&"object"==typeof e&&e[ll]===rl,dl=e=>!!e&&"object"==typeof e&&e[ll]===ol,pl=e=>!!e&&"object"==typeof e&&e[ll]===il,hl=e=>!!e&&"object"==typeof e&&e[ll]===al,fl=e=>!!e&&"object"==typeof e&&e[ll]===sl
;function ml(e){if(e&&"object"==typeof e)switch(e[ll]){case ol:case sl:return!0}
return!1}function gl(e){if(e&&"object"==typeof e)switch(e[ll]){case nl:case ol:
case al:case sl:return!0}return!1}
const vl=e=>(hl(e)||ml(e))&&!!e.anchor,bl=Symbol("break visit"),Ol=Symbol("skip children"),yl=Symbol("remove node")
;function wl(e,t){const n=function(e){
if("object"==typeof e&&(e.Collection||e.Node||e.Value))return Object.assign({
Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,
Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e)
;return e}(t);if(ul(e)){
xl(null,e.contents,n,Object.freeze([e]))===yl&&(e.contents=null)
}else xl(null,e,n,Object.freeze([]))}function xl(e,t,n,r){
const o=function(e,t,n,r){var o,i,a,s,l
;return"function"==typeof n?n(e,t,r):dl(t)?null==(o=n.Map)?void 0:o.call(n,e,t,r):fl(t)?null==(i=n.Seq)?void 0:i.call(n,e,t,r):pl(t)?null==(a=n.Pair)?void 0:a.call(n,e,t,r):hl(t)?null==(s=n.Scalar)?void 0:s.call(n,e,t,r):cl(t)?null==(l=n.Alias)?void 0:l.call(n,e,t,r):void 0
}(e,t,n,r);if(gl(o)||pl(o))return function(e,t,n){const r=t[t.length-1]
;if(ml(r))r.items[e]=n;else if(pl(r))"key"===e?r.key=n:r.value=n;else{
if(!ul(r)){const e=cl(r)?"alias":"scalar"
;throw new Error(`Cannot replace node with ${e} parent`)}r.contents=n}
}(e,r,o),xl(e,o,n,r);if("symbol"!=typeof o)if(ml(t)){
r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){
const o=xl(e,t.items[e],n,r);if("number"==typeof o)e=o-1;else{
if(o===bl)return bl;o===yl&&(t.items.splice(e,1),e-=1)}}}else if(pl(t)){
r=Object.freeze(r.concat(t));const e=xl("key",t.key,n,r);if(e===bl)return bl
;e===yl&&(t.key=null);const o=xl("value",t.value,n,r);if(o===bl)return bl
;o===yl&&(t.value=null)}return o}wl.BREAK=bl,wl.SKIP=Ol,wl.REMOVE=yl;const kl={
"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"};class Sl{
constructor(e,t){
this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Sl.defaultYaml,e),
this.tags=Object.assign({},Sl.defaultTags,t)}clone(){
const e=new Sl(this.yaml,this.tags);return e.docStart=this.docStart,e}
atDocument(){const e=new Sl(this.yaml,this.tags);switch(this.yaml.version){
case"1.1":this.atNextDocument=!0;break;case"1.2":
this.atNextDocument=!1,this.yaml={explicit:Sl.defaultYaml.explicit,version:"1.2"
},this.tags=Object.assign({},Sl.defaultTags)}return e}add(e,t){
this.atNextDocument&&(this.yaml={explicit:Sl.defaultYaml.explicit,version:"1.1"
},this.tags=Object.assign({},Sl.defaultTags),this.atNextDocument=!1)
;const n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{
if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),
n.length<2))return!1;const[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{
if(this.yaml.explicit=!0,
1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1
;const[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0
;return t(6,`Unsupported YAML version ${e}`,/^\d+\.\d+$/.test(e)),!1}default:
return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!"
;if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){
const n=e.slice(2,-1)
;return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),
null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}
const[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`)
;const o=this.tags[n];if(o)try{return o+decodeURIComponent(r)}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+e.substring(n.length).replace(/[!,[\]{}]/g,(e=>kl[e]))
;return"!"===e[0]?e:`!<${e}>`}toString(e){
const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags)
;let r;if(e&&n.length>0&&gl(e.contents)){const t={};wl(e.contents,((e,n)=>{
gl(n)&&n.tag&&(t[n.tag]=!0)})),r=Object.keys(t)}else r=[]
;for(const[o,i]of n)"!!"===o&&"tag:yaml.org,2002:"===i||e&&!r.some((e=>e.startsWith(i)))||t.push(`%TAG ${o} ${i}`)
;return t.join("\n")}}function _l(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){
const t=JSON.stringify(e)
;throw new Error(`Anchor must not contain whitespace or control characters: ${t}`)
}return!0}function El(e){const t=new Set;return wl(e,{Value(e,n){
n.anchor&&t.add(n.anchor)}}),t}function Tl(e,t){for(let n=1;;++n){
const r=`${e}${n}`;if(!t.has(r))return r}}function Cl(e,t,n,r){
if(r&&"object"==typeof r)if(Array.isArray(r))for(let o=0,i=r.length;o<i;++o){
const t=r[o],n=Cl(e,r,String(o),t);void 0===n?delete r[o]:n!==t&&(r[o]=n)
}else if(r instanceof Map)for(const o of Array.from(r.keys())){
const t=r.get(o),n=Cl(e,r,o,t);void 0===n?r.delete(o):n!==t&&r.set(o,n)
}else if(r instanceof Set)for(const o of Array.from(r)){const t=Cl(e,r,o,o)
;void 0===t?r.delete(o):t!==o&&(r.delete(o),r.add(t))
}else for(const[o,i]of Object.entries(r)){const t=Cl(e,r,o,i)
;void 0===t?delete r[o]:t!==i&&(r[o]=t)}return e.call(t,n,r)}function Al(e,t,n){
if(Array.isArray(e))return e.map(((e,t)=>Al(e,String(t),n)))
;if(e&&"function"==typeof e.toJSON){if(!n||!vl(e))return e.toJSON(t,n);const r={
aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{
r.res=e,delete n.onCreate};const o=e.toJSON(t,n)
;return n.onCreate&&n.onCreate(o),o}
return"bigint"!=typeof e||(null==n?void 0:n.keep)?e:Number(e)}Sl.defaultYaml={
explicit:!1,version:"1.2"},Sl.defaultTags={"!!":"tag:yaml.org,2002:"};class Pl{
constructor(e){Object.defineProperty(this,ll,{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:r,reviver:o}={}){
if(!ul(e))throw new TypeError("A document argument is required");const i={
anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,
maxAliasCount:"number"==typeof n?n:100},a=Al(this,"",i)
;if("function"==typeof r)for(const{count:s,res:l}of i.anchors.values())r(l,s)
;return"function"==typeof o?Cl(o,{"":a},"",a):a}}let Dl=class extends Pl{
constructor(e){super(nl),this.source=e,Object.defineProperty(this,"tag",{set(){
throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t
;return wl(e,{Node:(e,n)=>{if(n===this)return wl.BREAK
;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source}
;const{anchors:n,doc:r,maxAliasCount:o}=t,i=this.resolve(r);if(!i){
const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`
;throw new ReferenceError(e)}let a=n.get(i)
;if(a||(Al(i,null,t),a=n.get(i)),!a||void 0===a.res){
throw new ReferenceError("This should not happen: Alias anchor was not resolved?")
}
if(o>=0&&(a.count+=1,0===a.aliasCount&&(a.aliasCount=$l(r,i,n)),a.count*a.aliasCount>o)){
throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack")
}return a.res}toString(e,t,n){const r=`*${this.source}`;if(e){
if(_l(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){
const e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`
;throw new Error(e)}if(e.implicitKey)return`${r} `}return r}}
;function $l(e,t,n){if(cl(t)){const r=t.resolve(e),o=n&&r&&n.get(r)
;return o?o.count*o.aliasCount:0}if(ml(t)){let r=0;for(const o of t.items){
const t=$l(e,o,n);t>r&&(r=t)}return r}if(pl(t)){
const r=$l(e,t.key,n),o=$l(e,t.value,n);return Math.max(r,o)}return 1}
const Rl=e=>!e||"function"!=typeof e&&"object"!=typeof e;class Nl extends Pl{
constructor(e){super(al),this.value=e}toJSON(e,t){
return(null==t?void 0:t.keep)?this.value:Al(this.value,e,t)}toString(){
return String(this.value)}}
Nl.BLOCK_FOLDED="BLOCK_FOLDED",Nl.BLOCK_LITERAL="BLOCK_LITERAL",
Nl.PLAIN="PLAIN",Nl.QUOTE_DOUBLE="QUOTE_DOUBLE",Nl.QUOTE_SINGLE="QUOTE_SINGLE"
;const Il="tag:yaml.org,2002:";function Ml(e,t,n){var r,o,i
;if(ul(e)&&(e=e.contents),gl(e))return e;if(pl(e)){
const t=null==(o=(r=n.schema[ol]).createNode)?void 0:o.call(r,n.schema,null,n)
;return t.items.push(e),t}
(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf())
;const{aliasDuplicateObjects:a,onAnchor:s,onTagObj:l,schema:c,sourceObjects:u}=n
;let d;if(a&&e&&"object"==typeof e){
if(d=u.get(e),d)return d.anchor||(d.anchor=s(e)),new Dl(d.anchor);d={
anchor:null,node:null},u.set(e,d)}
(null==t?void 0:t.startsWith("!!"))&&(t=Il+t.slice(2));let p=function(e,t,n){
if(t){const e=n.filter((e=>e.tag===t)),r=e.find((e=>!e.format))??e[0]
;if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find((t=>{var n
;return(null==(n=t.identify)?void 0:n.call(t,e))&&!t.format}))}(e,t,c.tags)
;if(!p){
if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){
const t=new Nl(e);return d&&(d.node=t),t}
p=e instanceof Map?c[ol]:Symbol.iterator in Object(e)?c[sl]:c[ol]}
l&&(l(p),delete n.onTagObj)
;const h=(null==p?void 0:p.createNode)?p.createNode(n.schema,e,n):"function"==typeof(null==(i=null==p?void 0:p.nodeClass)?void 0:i.from)?p.nodeClass.from(n.schema,e,n):new Nl(e)
;return t?h.tag=t:p.default||(h.tag=p.tag),d&&(d.node=h),h}function Ll(e,t,n){
let r=n;for(let o=t.length-1;o>=0;--o){const e=t[o]
;if("number"==typeof e&&Number.isInteger(e)&&e>=0){const t=[];t[e]=r,r=t
}else r=new Map([[e,r]])}return Ml(r,void 0,{aliasDuplicateObjects:!1,
keepUndefined:!1,onAnchor:()=>{
throw new Error("This should not happen, please report a bug.")},schema:e,
sourceObjects:new Map})}
const Bl=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done
;class Ql extends Pl{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((t=>gl(t)||pl(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()),
t}addIn(e,t){if(Bl(e))this.add(t);else{const[n,...r]=e,o=this.get(n,!0)
;if(ml(o))o.addIn(r,t);else{
if(void 0!==o||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)
;this.set(n,Ll(this.schema,r,t))}}}deleteIn(e){const[t,...n]=e
;if(0===n.length)return this.delete(t);const r=this.get(t,!0)
;if(ml(r))return r.deleteIn(n)
;throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}
getIn(e,t){const[n,...r]=e,o=this.get(n,!0)
;return 0===r.length?!t&&hl(o)?o.value:o:ml(o)?o.getIn(r,t):void 0}
hasAllNullValues(e){return this.items.every((t=>{if(!pl(t))return!1
;const n=t.value
;return null==n||e&&hl(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag
}))}hasIn(e){const[t,...n]=e;if(0===n.length)return this.has(t)
;const r=this.get(t,!0);return!!ml(r)&&r.hasIn(n)}setIn(e,t){const[n,...r]=e
;if(0===r.length)this.set(n,t);else{const e=this.get(n,!0)
;if(ml(e))e.setIn(r,t);else{
if(void 0!==e||!this.schema)throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)
;this.set(n,Ll(this.schema,r,t))}}}}Ql.maxFlowStringSingleLineLength=60
;const jl=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Ul(e,t){
return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}
const Fl=(e,t,n)=>e.endsWith("\n")?Ul(n,t):n.includes("\n")?"\n"+Ul(n,t):(e.endsWith(" ")?"":" ")+n,ql="flow",zl="block",Hl="quoted"
;function Zl(e,t,n="flow",{indentAtStart:r,lineWidth:o=80,minContentWidth:i=20,onFold:a,onOverflow:s}={}){
if(!o||o<0)return e;const l=Math.max(1+i,1+o-t.length);if(e.length<=l)return e
;const c=[],u={};let d,p,h=o-t.length
;"number"==typeof r&&(r>o-Math.max(2,i)?c.push(0):h=o-r);let f=!1,m=-1,g=-1,v=-1
;n===zl&&(m=Vl(e,m,t.length),-1!==m&&(h=m+l));for(let O;O=e[m+=1];){
if(n===Hl&&"\\"===O){switch(g=m,e[m+1]){case"x":m+=3;break;case"u":m+=5;break
;case"U":m+=9;break;default:m+=1}v=m}
if("\n"===O)n===zl&&(m=Vl(e,m,t.length)),h=m+t.length+l,d=void 0;else{
if(" "===O&&p&&" "!==p&&"\n"!==p&&"\t"!==p){const t=e[m+1]
;t&&" "!==t&&"\n"!==t&&"\t"!==t&&(d=m)}
if(m>=h)if(d)c.push(d),h=d+l,d=void 0;else if(n===Hl){
for(;" "===p||"\t"===p;)p=O,O=e[m+=1],f=!0;const t=m>v+1?m-2:g-1
;if(u[t])return e;c.push(t),u[t]=!0,h=t+l,d=void 0}else f=!0}p=O}
if(f&&s&&s(),0===c.length)return e;a&&a();let b=e.slice(0,c[0])
;for(let O=0;O<c.length;++O){const r=c[O],o=c[O+1]||e.length
;0===r?b=`\n${t}${e.slice(0,o)}`:(n===Hl&&u[r]&&(b+=`${e[r]}\\`),
b+=`\n${t}${e.slice(r+1,o)}`)}return b}function Vl(e,t,n){let r=t,o=t+1,i=e[o]
;for(;" "===i||"\t"===i;)if(t<o+n)i=e[++t];else{do{i=e[++t]}while(i&&"\n"!==i)
;r=t,o=t+1,i=e[o]}return r}const Wl=(e,t)=>({
indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,
minContentWidth:e.options.minContentWidth}),Xl=e=>/^(%|---|\.\.\.)/m.test(e)
;function Yl(e,t){const n=JSON.stringify(e)
;if(t.options.doubleQuotedAsJSON)return n
;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(Xl(e)?"  ":"")
;let a="",s=0
;for(let l=0,c=n[l];c;c=n[++l])if(" "===c&&"\\"===n[l+1]&&"n"===n[l+2]&&(a+=n.slice(s,l)+"\\ ",
l+=1,s=l,c="\\"),"\\"===c)switch(n[l+1]){case"u":{a+=n.slice(s,l)
;const e=n.substr(l+2,4);switch(e){case"0000":a+="\\0";break;case"0007":a+="\\a"
;break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N"
;break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P"
;break;default:"00"===e.substr(0,2)?a+="\\x"+e.substr(2):a+=n.substr(l,6)}
l+=5,s=l+1}break;case"n":if(r||'"'===n[l+2]||n.length<o)l+=1;else{
for(a+=n.slice(s,l)+"\n\n";"\\"===n[l+2]&&"n"===n[l+3]&&'"'!==n[l+4];)a+="\n",
l+=2;a+=i," "===n[l+2]&&(a+="\\"),l+=1,s=l+1}break;default:l+=1}
return a=s?a+n.slice(s):n,r?a:Zl(a,i,Hl,Wl(t,!1))}function Gl(e,t){
if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return Yl(e,t)
;const n=t.indent||(Xl(e)?"  ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&\n${n}`)+"'"
;return t.implicitKey?r:Zl(r,n,ql,Wl(t,!1))}function Kl(e,t){
const{singleQuote:n}=t.options;let r;if(!1===n)r=Yl;else{
const t=e.includes('"'),o=e.includes("'");r=t&&!o?Gl:o&&!t?Yl:n?Gl:Yl}
return r(e,t)}let Jl;try{Jl=new RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{
Jl=/\n+(?!\n|$)/g}function ec({comment:e,type:t,value:n},r,o,i){
const{blockQuote:a,commentString:s,lineWidth:l}=r.options
;if(!a||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Kl(n,r)
;const c=r.indent||(r.forceBlockIndent||Xl(n)?"  ":""),u="literal"===a||"folded"!==a&&t!==Nl.BLOCK_FOLDED&&(t===Nl.BLOCK_LITERAL||!function(e,t,n){
if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!1
;for(let i=0,a=0;i<o;++i)if("\n"===e[i]){if(i-a>r)return!0
;if(a=i+1,o-a<=r)return!1}return!0}(n,l,c.length));if(!n)return u?"|\n":">\n"
;let d,p;for(p=n.length;p>0;--p){const e=n[p-1]
;if("\n"!==e&&"\t"!==e&&" "!==e)break}let h=n.substring(p)
;const f=h.indexOf("\n");-1===f?d="-":n===h||f!==h.length-1?(d="+",i&&i()):d="",
h&&(n=n.slice(0,-h.length),
"\n"===h[h.length-1]&&(h=h.slice(0,-1)),h=h.replace(Jl,`$&${c}`))
;let m,g=!1,v=-1;for(m=0;m<n.length;++m){const e=n[m];if(" "===e)g=!0;else{
if("\n"!==e)break;v=m}}let b=n.substring(0,v<m?v+1:m)
;b&&(n=n.substring(b.length),b=b.replace(/\n+/g,`$&${c}`))
;let O=(u?"|":">")+(g?c?"2":"1":"")+d
;if(e&&(O+=" "+s(e.replace(/ ?[\r\n]+/g," ")),
o&&o()),u)return`${O}\n${c}${b}${n=n.replace(/\n+/g,`$&${c}`)}${h}`
;return`${O}\n${c}${Zl(`${b}${n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`)}${h}`,c,zl,Wl(r,!0))}`
}function tc(e,t,n,r){
const{implicitKey:o,inFlow:i}=t,a="string"==typeof e.value?e:Object.assign({},e,{
value:String(e.value)});let{type:s}=e
;s!==Nl.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(s=Nl.QUOTE_DOUBLE)
;const l=e=>{switch(e){case Nl.BLOCK_FOLDED:case Nl.BLOCK_LITERAL:
return o||i?Kl(a.value,t):ec(a,t,n,r);case Nl.QUOTE_DOUBLE:return Yl(a.value,t)
;case Nl.QUOTE_SINGLE:return Gl(a.value,t);case Nl.PLAIN:
return function(e,t,n,r){
const{type:o,value:i}=e,{actualString:a,implicitKey:s,indent:l,indentStep:c,inFlow:u}=t
;if(s&&i.includes("\n")||u&&/[[\]{},]/.test(i))return Kl(i,t)
;if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return s||u||!i.includes("\n")?Kl(i,t):ec(e,t,n,r)
;if(!s&&!u&&o!==Nl.PLAIN&&i.includes("\n"))return ec(e,t,n,r);if(Xl(i)){
if(""===l)return t.forceBlockIndent=!0,ec(e,t,n,r);if(s&&l===c)return Kl(i,t)}
const d=i.replace(/\n+/g,`$&\n${l}`);if(a){const e=e=>{var t
;return e.default&&"tag:yaml.org,2002:str"!==e.tag&&(null==(t=e.test)?void 0:t.test(d))
},{compat:n,tags:r}=t.doc.schema
;if(r.some(e)||(null==n?void 0:n.some(e)))return Kl(i,t)}
return s?d:Zl(d,l,ql,Wl(t,!1))}(a,t,n,r);default:return null}};let c=l(s)
;if(null===c){const{defaultKeyType:e,defaultStringType:n}=t.options,r=o&&e||n
;if(c=l(r),null===c)throw new Error(`Unsupported default string type ${r}`)}
return c}function nc(e,t){const n=Object.assign({blockQuote:!0,commentString:jl,
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
},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1
;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,
flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",
indentStep:"number"==typeof n.indent?" ".repeat(n.indent):"  ",inFlow:r,
options:n}}function rc(e,t,n,r){var o;if(pl(e))return e.toString(t,n,r)
;if(cl(e)){if(t.doc.directives)return e.toString(t)
;if(null==(o=t.resolvedAliases)?void 0:o.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes")
;t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),
e=e.resolve(t.doc)}let i;const a=gl(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e})
;i||(i=function(e,t){var n;if(t.tag){const n=e.filter((e=>e.tag===t.tag))
;if(n.length>0)return n.find((e=>e.format===t.format))??n[0]}let r,o;if(hl(t)){
o=t.value;const n=e.filter((e=>{var t
;return null==(t=e.identify)?void 0:t.call(e,o)}))
;r=n.find((e=>e.format===t.format))??n.find((e=>!e.format))
}else o=t,r=e.find((e=>e.nodeClass&&o instanceof e.nodeClass));if(!r){
const e=(null==(n=null==o?void 0:o.constructor)?void 0:n.name)??typeof o
;throw new Error(`Tag not resolved for ${e} value`)}return r
}(t.doc.schema.tags,a));const s=function(e,t,{anchors:n,doc:r}){
if(!r.directives)return"";const o=[],i=(hl(e)||ml(e))&&e.anchor
;i&&_l(i)&&(n.add(i),o.push(`&${i}`));const a=e.tag?e.tag:t.default?null:t.tag
;return a&&o.push(r.directives.tagString(a)),o.join(" ")}(a,i,t)
;s.length>0&&(t.indentAtStart=(t.indentAtStart??0)+s.length+1)
;const l="function"==typeof i.stringify?i.stringify(a,t,n,r):hl(a)?tc(a,t,n,r):a.toString(t,n,r)
;return s?hl(a)||"{"===l[0]||"["===l[0]?`${s} ${l}`:`${s}\n${t.indent}${l}`:l}
function oc(e,t){
"debug"!==e&&"warn"!==e||("undefined"!=typeof process&&process.emitWarning?process.emitWarning(t):console.warn(t))
}function ic(e,t,{key:n,value:r}){
if((null==e?void 0:e.doc.schema.merge)&&ac(n))if(r=cl(r)?r.resolve(e.doc):r,
fl(r))for(const o of r.items)sc(e,t,o);else if(Array.isArray(r))for(const o of r)sc(e,t,o);else sc(e,t,r);else{
const o=Al(n,"",e)
;if(t instanceof Map)t.set(o,Al(r,o,e));else if(t instanceof Set)t.add(o);else{
const i=function(e,t,n){if(null===t)return""
;if("object"!=typeof t)return String(t);if(gl(e)&&(null==n?void 0:n.doc)){
const t=nc(n.doc,{});t.anchors=new Set
;for(const e of n.anchors.keys())t.anchors.add(e.anchor)
;t.inFlow=!0,t.inStringifyKey=!0;const r=e.toString(t);if(!n.mapKeyWarned){
let e=JSON.stringify(r)
;e.length>40&&(e=e.substring(0,36)+'..."'),oc(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),
n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(n,o,e),a=Al(r,i,e)
;i in t?Object.defineProperty(t,i,{value:a,writable:!0,enumerable:!0,
configurable:!0}):t[i]=a}}return t}
const ac=e=>"<<"===e||hl(e)&&"<<"===e.value&&(!e.type||e.type===Nl.PLAIN)
;function sc(e,t,n){const r=e&&cl(n)?n.resolve(e.doc):n
;if(!dl(r))throw new Error("Merge sources must be maps or map aliases")
;const o=r.toJSON(null,e,Map)
;for(const[i,a]of o)t instanceof Map?t.has(i)||t.set(i,a):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{
value:a,writable:!0,enumerable:!0,configurable:!0});return t}function lc(e,t,n){
const r=Ml(e,void 0,n),o=Ml(t,void 0,n);return new cc(r,o)}class cc{
constructor(e,t=null){Object.defineProperty(this,ll,{value:il
}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this
;return gl(t)&&(t=t.clone(e)),gl(n)&&(n=n.clone(e)),new cc(t,n)}toJSON(e,t){
return ic(t,(null==t?void 0:t.mapAsMap)?new Map:{},this)}toString(e,t,n){
return(null==e?void 0:e.doc)?function({key:e,value:t},n,r,o){
const{allNullValues:i,doc:a,indent:s,indentStep:l,options:{commentString:c,indentSeq:u,simpleKeys:d}}=n
;let p=gl(e)&&e.comment||null;if(d){
if(p)throw new Error("With simple keys, key nodes cannot have comments")
;if(ml(e)||!gl(e)&&"object"==typeof e)throw new Error("With simple keys, collection cannot be used as a key value")
}
let h=!d&&(!e||p&&null==t&&!n.inFlow||ml(e)||(hl(e)?e.type===Nl.BLOCK_FOLDED||e.type===Nl.BLOCK_LITERAL:"object"==typeof e))
;n=Object.assign({},n,{allNullValues:!1,implicitKey:!h&&(d||!i),indent:s+l})
;let f,m,g,v=!1,b=!1,O=rc(e,n,(()=>v=!0),(()=>b=!0))
;if(!h&&!n.inFlow&&O.length>1024){
if(d)throw new Error("With simple keys, single line scalar must not span more than 1024 characters")
;h=!0}if(n.inFlow){if(i||null==t)return v&&r&&r(),""===O?"?":h?`? ${O}`:O
}else if(i&&!d||null==t&&h)return O=`? ${O}`,
p&&!v?O+=Fl(O,n.indent,c(p)):b&&o&&o(),O
;v&&(p=null),h?(p&&(O+=Fl(O,n.indent,c(p))),
O=`? ${O}\n${s}:`):(O=`${O}:`,p&&(O+=Fl(O,n.indent,c(p)))),
gl(t)?(f=!!t.spaceBefore,
m=t.commentBefore,g=t.comment):(f=!1,m=null,g=null,t&&"object"==typeof t&&(t=a.createNode(t))),
n.implicitKey=!1,
h||p||!hl(t)||(n.indentAtStart=O.length+1),b=!1,u||!(l.length>=2)||n.inFlow||h||!fl(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2))
;let y=!1;const w=rc(t,n,(()=>y=!0),(()=>b=!0));let x=" "
;if(p||f||m)x=f?"\n":"",
m&&(x+=`\n${Ul(c(m),n.indent)}`),""!==w||n.inFlow?x+=`\n${n.indent}`:"\n"===x&&(x="\n\n");else if(!h&&ml(t)){
const e=w[0],r=w.indexOf("\n"),o=-1!==r,i=n.inFlow??t.flow??0===t.items.length
;if(o||!i){let t=!1;if(o&&("&"===e||"!"===e)){let n=w.indexOf(" ")
;"&"===e&&-1!==n&&n<r&&"!"===w[n+1]&&(n=w.indexOf(" ",n+1)),
(-1===n||r<n)&&(t=!0)}t||(x=`\n${n.indent}`)}}else""!==w&&"\n"!==w[0]||(x="")
;return O+=x+w,n.inFlow?y&&r&&r():g&&!y?O+=Fl(O,n.indent,c(g)):b&&o&&o(),O
}(this,e,t,n):JSON.stringify(this)}}function uc(e,t,n){
return(t.inFlow??e.flow?pc:dc)(e,t,n)}
function dc({comment:e,items:t},n,{blockItemPrefix:r,flowChars:o,itemIndent:i,onChompKeep:a,onComment:s}){
const{indent:l,options:{commentString:c}}=n,u=Object.assign({},n,{indent:i,
type:null});let d=!1;const p=[];for(let f=0;f<t.length;++f){const e=t[f]
;let o=null
;if(gl(e))!d&&e.spaceBefore&&p.push(""),hc(n,p,e.commentBefore,d),e.comment&&(o=e.comment);else if(pl(e)){
const t=gl(e.key)?e.key:null
;t&&(!d&&t.spaceBefore&&p.push(""),hc(n,p,t.commentBefore,d))}d=!1
;let a=rc(e,u,(()=>o=null),(()=>d=!0))
;o&&(a+=Fl(a,i,c(o))),d&&o&&(d=!1),p.push(r+a)}let h
;if(0===p.length)h=o.start+o.end;else{h=p[0];for(let e=1;e<p.length;++e){
const t=p[e];h+=t?`\n${l}${t}`:"\n"}}
return e?(h+="\n"+Ul(c(e),l),s&&s()):d&&a&&a(),h}
function pc({items:e},t,{flowChars:n,itemIndent:r}){
const{indent:o,indentStep:i,flowCollectionPadding:a,options:{commentString:s}}=t
;r+=i;const l=Object.assign({},t,{indent:r,inFlow:!0,type:null});let c=!1,u=0
;const d=[];for(let f=0;f<e.length;++f){const n=e[f];let o=null
;if(gl(n))n.spaceBefore&&d.push(""),
hc(t,d,n.commentBefore,!1),n.comment&&(o=n.comment);else if(pl(n)){
const e=gl(n.key)?n.key:null
;e&&(e.spaceBefore&&d.push(""),hc(t,d,e.commentBefore,!1),e.comment&&(c=!0))
;const r=gl(n.value)?n.value:null
;r?(r.comment&&(o=r.comment),r.commentBefore&&(c=!0)):null==n.value&&(null==e?void 0:e.comment)&&(o=e.comment)
}o&&(c=!0);let i=rc(n,l,(()=>o=null))
;f<e.length-1&&(i+=","),o&&(i+=Fl(i,r,s(o))),
!c&&(d.length>u||i.includes("\n"))&&(c=!0),d.push(i),u=d.length}
const{start:p,end:h}=n;if(0===d.length)return p+h;if(!c){
const e=d.reduce(((e,t)=>e+t.length+2),2)
;c=t.options.lineWidth>0&&e>t.options.lineWidth}if(c){let e=p
;for(const t of d)e+=t?`\n${i}${o}${t}`:"\n";return`${e}\n${o}${h}`}
return`${p}${a}${d.join(" ")}${a}${h}`}
function hc({indent:e,options:{commentString:t}},n,r,o){
if(r&&o&&(r=r.replace(/^\n+/,"")),r){const o=Ul(t(r),e);n.push(o.trimStart())}}
function fc(e,t){const n=hl(t)?t.value:t;for(const r of e)if(pl(r)){
if(r.key===t||r.key===n)return r;if(hl(r.key)&&r.key.value===n)return r}}
class mc extends Ql{static get tagName(){return"tag:yaml.org,2002:map"}
constructor(e){super(ol,e),this.items=[]}static from(e,t,n){
const{keepUndefined:r,replacer:o}=n,i=new this(e),a=(e,a)=>{
if("function"==typeof o)a=o.call(t,e,a);else if(Array.isArray(o)&&!o.includes(e))return
;(void 0!==a||r)&&i.items.push(lc(e,a,n))}
;if(t instanceof Map)for(const[s,l]of t)a(s,l);else if(t&&"object"==typeof t)for(const s of Object.keys(t))a(s,t[s])
;return"function"==typeof e.sortMapEntries&&i.items.sort(e.sortMapEntries),i}
add(e,t){var n;let r
;r=pl(e)?e:e&&"object"==typeof e&&"key"in e?new cc(e.key,e.value):new cc(e,null==e?void 0:e.value)
;const o=fc(this.items,r.key),i=null==(n=this.schema)?void 0:n.sortMapEntries
;if(o){if(!t)throw new Error(`Key ${r.key} already set`)
;hl(o.value)&&Rl(r.value)?o.value.value=r.value:o.value=r.value}else if(i){
const e=this.items.findIndex((e=>i(r,e)<0))
;-1===e?this.items.push(r):this.items.splice(e,0,r)}else this.items.push(r)}
delete(e){const t=fc(this.items,e);if(!t)return!1
;return this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){
const n=fc(this.items,e),r=null==n?void 0:n.value
;return(!t&&hl(r)?r.value:r)??void 0}has(e){return!!fc(this.items,e)}set(e,t){
this.add(new cc(e,t),!0)}toJSON(e,t,n){
const r=n?new n:(null==t?void 0:t.mapAsMap)?new Map:{}
;(null==t?void 0:t.onCreate)&&t.onCreate(r);for(const o of this.items)ic(t,r,o)
;return r}toString(e,t,n){if(!e)return JSON.stringify(this)
;for(const r of this.items)if(!pl(r))throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`)
;return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{
allNullValues:!0})),uc(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},
itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const gc={collection:"map",
default:!0,nodeClass:mc,tag:"tag:yaml.org,2002:map",
resolve:(e,t)=>(dl(e)||t("Expected a mapping for this tag"),e),
createNode:(e,t,n)=>mc.from(e,t,n)};class vc extends Ql{static get tagName(){
return"tag:yaml.org,2002:seq"}constructor(e){super(sl,e),this.items=[]}add(e){
this.items.push(e)}delete(e){const t=bc(e);if("number"!=typeof t)return!1
;return this.items.splice(t,1).length>0}get(e,t){const n=bc(e)
;if("number"!=typeof n)return;const r=this.items[n];return!t&&hl(r)?r.value:r}
has(e){const t=bc(e);return"number"==typeof t&&t<this.items.length}set(e,t){
const n=bc(e)
;if("number"!=typeof n)throw new Error(`Expected a valid index, not ${e}.`)
;const r=this.items[n];hl(r)&&Rl(t)?r.value=t:this.items[n]=t}toJSON(e,t){
const n=[];(null==t?void 0:t.onCreate)&&t.onCreate(n);let r=0
;for(const o of this.items)n.push(Al(o,String(r++),t));return n}toString(e,t,n){
return e?uc(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},
itemIndent:(e.indent||"")+"  ",onChompKeep:n,onComment:t}):JSON.stringify(this)}
static from(e,t,n){const{replacer:r}=n,o=new this(e)
;if(t&&Symbol.iterator in Object(t)){let e=0;for(let i of t){
if("function"==typeof r){const n=t instanceof Set?i:String(e++);i=r.call(t,n,i)}
o.items.push(Ml(i,void 0,n))}}return o}}function bc(e){let t=hl(e)?e.value:e
;return t&&"string"==typeof t&&(t=Number(t)),
"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}const Oc={collection:"seq",
default:!0,nodeClass:vc,tag:"tag:yaml.org,2002:seq",
resolve:(e,t)=>(fl(e)||t("Expected a sequence for this tag"),e),
createNode:(e,t,n)=>vc.from(e,t,n)},yc={identify:e=>"string"==typeof e,
default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,
stringify:(e,t,n,r)=>tc(e,t=Object.assign({actualString:!0},t),n,r)},wc={
identify:e=>null==e,createNode:()=>new Nl(null),default:!0,
tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,
resolve:()=>new Nl(null),
stringify:({source:e},t)=>"string"==typeof e&&wc.test.test(e)?e:t.options.nullStr
},xc={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",
test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
resolve:e=>new Nl("t"===e[0]||"T"===e[0]),stringify({source:e,value:t},n){
if(e&&xc.test.test(e)){if(t===("t"===e[0]||"T"===e[0]))return e}
return t?n.options.trueStr:n.options.falseStr}}
;function kc({format:e,minFractionDigits:t,tag:n,value:r}){
if("bigint"==typeof r)return String(r);const o="number"==typeof r?r:Number(r)
;if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf"
;let i=JSON.stringify(r)
;if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(i)){
let e=i.indexOf(".");e<0&&(e=i.length,i+=".");let n=t-(i.length-e-1)
;for(;n-- >0;)i+="0"}return i}const Sc={identify:e=>"number"==typeof e,
default:!0,tag:"tag:yaml.org,2002:float",
test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,
stringify:kc},_c={identify:e=>"number"==typeof e,default:!0,
tag:"tag:yaml.org,2002:float",format:"EXP",
test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,
resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value)
;return isFinite(t)?t.toExponential():kc(e)}},Ec={
identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",
test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){
const t=new Nl(parseFloat(e)),n=e.indexOf(".")
;return-1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},
stringify:kc
},Tc=e=>"bigint"==typeof e||Number.isInteger(e),Cc=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n)
;function Ac(e,t,n){const{value:r}=e;return Tc(r)&&r>=0?n+r.toString(t):kc(e)}
const Pc={identify:e=>Tc(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",
format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Cc(e,2,8,n),
stringify:e=>Ac(e,8,"0o")},Dc={identify:Tc,default:!0,
tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Cc(e,0,10,n),
stringify:kc},$c={identify:e=>Tc(e)&&e>=0,default:!0,
tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,
resolve:(e,t,n)=>Cc(e,2,16,n),stringify:e=>Ac(e,16,"0x")
},Rc=[gc,Oc,yc,wc,xc,Pc,Dc,$c,Sc,_c,Ec];function Nc(e){
return"bigint"==typeof e||Number.isInteger(e)}
const Ic=({value:e})=>JSON.stringify(e),Mc=[gc,Oc].concat([{
identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",
resolve:e=>e,stringify:Ic},{identify:e=>null==e,createNode:()=>new Nl(null),
default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,
stringify:Ic},{identify:e=>"boolean"==typeof e,default:!0,
tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,
stringify:Ic},{identify:Nc,default:!0,tag:"tag:yaml.org,2002:int",
test:/^-?(?:0|[1-9][0-9]*)$/,
resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),
stringify:({value:e})=>Nc(e)?e.toString():JSON.stringify(e)},{
identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",
test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
resolve:e=>parseFloat(e),stringify:Ic}],{default:!0,tag:"",test:/^/,
resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),Lc={
identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",
resolve(e,t){if("function"==typeof Buffer)return Buffer.from(e,"base64")
;if("function"==typeof atob){
const t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length)
;for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}
return t("This environment does not support reading binary tags; either Buffer or atob is required"),
e},stringify({comment:e,type:t,value:n},r,o,i){const a=n;let s
;if("function"==typeof Buffer)s=a instanceof Buffer?a.toString("base64"):Buffer.from(a.buffer).toString("base64");else{
if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required")
;{let e="";for(let t=0;t<a.length;++t)e+=String.fromCharCode(a[t]);s=btoa(e)}}
if(t||(t=Nl.BLOCK_LITERAL),t!==Nl.QUOTE_DOUBLE){
const e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(s.length/e),o=new Array(n)
;for(let t=0,r=0;t<n;++t,r+=e)o[t]=s.substr(r,e)
;s=o.join(t===Nl.BLOCK_LITERAL?"\n":" ")}return tc({comment:e,type:t,value:s
},r,o,i)}};function Bc(e,t){if(fl(e))for(let n=0;n<e.items.length;++n){
let r=e.items[n];if(!pl(r)){if(dl(r)){
r.items.length>1&&t("Each pair must have its own sequence indicator")
;const e=r.items[0]||new cc(new Nl(null))
;if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),
r.comment){const t=e.value??e.key
;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}
e.items[n]=pl(r)?r:new cc(r)}}else t("Expected a sequence for this tag")
;return e}function Qc(e,t,n){const{replacer:r}=n,o=new vc(e)
;o.tag="tag:yaml.org,2002:pairs";let i=0
;if(t&&Symbol.iterator in Object(t))for(let a of t){let e,s
;if("function"==typeof r&&(a=r.call(t,String(i++),a)),Array.isArray(a)){
if(2!==a.length)throw new TypeError(`Expected [key, value] tuple: ${a}`);e=a[0],
s=a[1]}else if(a&&a instanceof Object){const t=Object.keys(a)
;if(1!==t.length)throw new TypeError(`Expected tuple with one key, not ${t.length} keys`)
;e=t[0],s=a[e]}else e=a;o.items.push(lc(e,s,n))}return o}const jc={
collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Bc,
createNode:Qc};class Uc extends vc{constructor(){
super(),this.add=mc.prototype.add.bind(this),
this.delete=mc.prototype.delete.bind(this),this.get=mc.prototype.get.bind(this),
this.has=mc.prototype.has.bind(this),
this.set=mc.prototype.set.bind(this),this.tag=Uc.tag}toJSON(e,t){
if(!t)return super.toJSON(e);const n=new Map
;(null==t?void 0:t.onCreate)&&t.onCreate(n);for(const r of this.items){let e,o
;if(pl(r)?(e=Al(r.key,"",t),
o=Al(r.value,e,t)):e=Al(r,"",t),n.has(e))throw new Error("Ordered maps must not include duplicate keys")
;n.set(e,o)}return n}static from(e,t,n){const r=Qc(e,t,n),o=new this
;return o.items=r.items,o}}Uc.tag="tag:yaml.org,2002:omap";const Fc={
collection:"seq",identify:e=>e instanceof Map,nodeClass:Uc,default:!1,
tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Bc(e,t),r=[]
;for(const{key:o}of n.items)hl(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value))
;return Object.assign(new Uc,n)},createNode:(e,t,n)=>Uc.from(e,t,n)}
;function qc({value:e,source:t},n){
return t&&(e?zc:Hc).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}
const zc={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",
test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Nl(!0),
stringify:qc},Hc={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",
test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Nl(!1),
stringify:qc},Zc={identify:e=>"number"==typeof e,default:!0,
tag:"tag:yaml.org,2002:float",
test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,
stringify:kc},Vc={identify:e=>"number"==typeof e,default:!0,
tag:"tag:yaml.org,2002:float",format:"EXP",
test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,
resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value)
;return isFinite(t)?t.toExponential():kc(e)}},Wc={
identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",
test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){
const t=new Nl(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){
const r=e.substring(n+1).replace(/_/g,"")
;"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:kc
},Xc=e=>"bigint"==typeof e||Number.isInteger(e)
;function Yc(e,t,n,{intAsBigInt:r}){const o=e[0]
;if("-"!==o&&"+"!==o||(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){
case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}
const t=BigInt(e);return"-"===o?BigInt(-1)*t:t}const i=parseInt(e,n)
;return"-"===o?-1*i:i}function Gc(e,t,n){const{value:r}=e;if(Xc(r)){
const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return kc(e)}const Kc={
identify:Xc,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",
test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>Yc(e,2,2,n),stringify:e=>Gc(e,2,"0b")
},Jc={identify:Xc,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",
test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>Yc(e,1,8,n),stringify:e=>Gc(e,8,"0")
},eu={identify:Xc,default:!0,tag:"tag:yaml.org,2002:int",
test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>Yc(e,0,10,n),stringify:kc},tu={
identify:Xc,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",
test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>Yc(e,2,16,n),
stringify:e=>Gc(e,16,"0x")};class nu extends mc{constructor(e){
super(e),this.tag=nu.tag}add(e){let t
;t=pl(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new cc(e.key,null):new cc(e,null)
;fc(this.items,t.key)||this.items.push(t)}get(e,t){const n=fc(this.items,e)
;return!t&&pl(n)?hl(n.key)?n.key.value:n.key:n}set(e,t){
if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t)
;const n=fc(this.items,e)
;n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new cc(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:r}=n,o=new this(e)
;if(t&&Symbol.iterator in Object(t))for(let i of t)"function"==typeof r&&(i=r.call(t,i,i)),
o.items.push(lc(i,null,n));return o}}nu.tag="tag:yaml.org,2002:set";const ru={
collection:"map",identify:e=>e instanceof Set,nodeClass:nu,default:!1,
tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>nu.from(e,t,n),resolve(e,t){
if(dl(e)){if(e.hasAllNullValues(!0))return Object.assign(new nu,e)
;t("Set items must all have null values")
}else t("Expected a mapping for this tag");return e}};function ou(e,t){
const n=e[0],r="-"===n||"+"===n?e.substring(1):e,o=e=>t?BigInt(e):Number(e),i=r.replace(/_/g,"").split(":").reduce(((e,t)=>e*o(60)+o(t)),o(0))
;return"-"===n?o(-1)*i:i}function iu(e){let{value:t}=e,n=e=>e
;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return kc(e)
;let r="";t<0&&(r="-",t*=n(-1));const o=n(60),i=[t%o]
;return t<60?i.unshift(0):(t=(t-i[0])/o,
i.unshift(t%o),t>=60&&(t=(t-i[0])/o,i.unshift(t))),
r+i.map((e=>String(e).padStart(2,"0"))).join(":").replace(/000000\d*$/,"")}
const au={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,
tag:"tag:yaml.org,2002:int",format:"TIME",
test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,
resolve:(e,t,{intAsBigInt:n})=>ou(e,n),stringify:iu},su={
identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",
format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,
resolve:e=>ou(e,!1),stringify:iu},lu={identify:e=>e 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(e){const t=e.match(lu.test)
;if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd")
;const[,n,r,o,i,a,s]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0
;let c=Date.UTC(n,r-1,o,i||0,a||0,s||0,l);const u=t[8];if(u&&"Z"!==u){
let e=ou(u,!1);Math.abs(e)<30&&(e*=60),c-=6e4*e}return new Date(c)},
stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")
},cu=[gc,Oc,yc,wc,zc,Hc,Kc,Jc,eu,tu,Zc,Vc,Wc,Lc,Fc,jc,ru,au,su,lu],uu=new Map([["core",Rc],["failsafe",[gc,Oc,yc]],["json",Mc],["yaml11",cu],["yaml-1.1",cu]]),du={
binary:Lc,bool:xc,float:Ec,floatExp:_c,floatNaN:Sc,floatTime:su,int:Dc,
intHex:$c,intOct:Pc,intTime:au,map:gc,null:wc,omap:Fc,pairs:jc,seq:Oc,set:ru,
timestamp:lu},pu={"tag:yaml.org,2002:binary":Lc,"tag:yaml.org,2002:omap":Fc,
"tag:yaml.org,2002:pairs":jc,"tag:yaml.org,2002:set":ru,
"tag:yaml.org,2002:timestamp":lu};function hu(e,t){let n=uu.get(t);if(!n){
if(!Array.isArray(e)){
const e=Array.from(uu.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ")
;throw new Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)
}n=[]}
if(Array.isArray(e))for(const r of e)n=n.concat(r);else"function"==typeof e&&(n=e(n.slice()))
;return n.map((e=>{if("string"!=typeof e)return e;const t=du[e];if(t)return t
;const n=Object.keys(du).map((e=>JSON.stringify(e))).join(", ")
;throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))}
const fu=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;let mu=class e{
constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:o,sortMapEntries:i,toStringDefaults:a}){
this.compat=Array.isArray(e)?hu(e,"compat"):e?hu(null,e):null,
this.merge=!!n,this.name="string"==typeof o&&o||"core",
this.knownTags=r?pu:{},this.tags=hu(t,this.name),
this.toStringOptions=a??null,Object.defineProperty(this,ol,{value:gc
}),Object.defineProperty(this,al,{value:yc}),Object.defineProperty(this,sl,{
value:Oc}),this.sortMapEntries="function"==typeof i?i:!0===i?fu:null}clone(){
const t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this))
;return t.tags=this.tags.slice(),t}};class gu{constructor(e,t,n){
this.commentBefore=null,
this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,ll,{
value:rl});let r=null
;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0)
;const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",
prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=o
;let{version:i}=o
;(null==n?void 0:n._directives)?(this.directives=n._directives.atDocument(),
this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new Sl({
version:i
}),this.setSchema(i,n),this.contents=void 0===e?null:this.createNode(e,r,n)}
clone(){const e=Object.create(gu.prototype,{[ll]:{value:rl}})
;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=gl(this.contents)?this.contents.clone(e.schema):this.contents,
this.range&&(e.range=this.range.slice()),e}add(e){
vu(this.contents)&&this.contents.add(e)}addIn(e,t){
vu(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){
const n=El(this);e.anchor=!t||n.has(t)?Tl(t||"a",n):t}return new Dl(e.anchor)}
createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e
},"",e),r=t;else if(Array.isArray(t)){
const e=e=>"number"==typeof e||e instanceof String||e instanceof Number,n=t.filter(e).map(String)
;n.length>0&&(t=t.concat(n)),r=t}else void 0===n&&t&&(n=t,t=void 0)
;const{aliasDuplicateObjects:o,anchorPrefix:i,flow:a,keepUndefined:s,onTagObj:l,tag:c}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:p}=function(e,t){
const n=[],r=new Map;let o=null;return{onAnchor:r=>{n.push(r),o||(o=El(e))
;const i=Tl(t,o);return o.add(i),i},setAnchors:()=>{for(const e of n){
const t=r.get(e);if("object"!=typeof t||!t.anchor||!hl(t.node)&&!ml(t.node)){
const t=new Error("Failed to resolve repeated object (this should not happen)")
;throw t.source=e,t}t.node.anchor=t.anchor}},sourceObjects:r}
}(this,i||"a"),h=Ml(e,c,{aliasDuplicateObjects:o??!0,keepUndefined:s??!1,
onAnchor:u,onTagObj:l,replacer:r,schema:this.schema,sourceObjects:p})
;return a&&ml(h)&&(h.flow=!0),d(),h}createPair(e,t,n={}){
const r=this.createNode(e,null,n),o=this.createNode(t,null,n);return new cc(r,o)
}delete(e){return!!vu(this.contents)&&this.contents.delete(e)}deleteIn(e){
return Bl(e)?null!=this.contents&&(this.contents=null,
!0):!!vu(this.contents)&&this.contents.deleteIn(e)}get(e,t){
return ml(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){
return Bl(e)?!t&&hl(this.contents)?this.contents.value:this.contents:ml(this.contents)?this.contents.getIn(e,t):void 0
}has(e){return!!ml(this.contents)&&this.contents.has(e)}hasIn(e){
return Bl(e)?void 0!==this.contents:!!ml(this.contents)&&this.contents.hasIn(e)}
set(e,t){
null==this.contents?this.contents=Ll(this.schema,[e],t):vu(this.contents)&&this.contents.set(e,t)
}setIn(e,t){
Bl(e)?this.contents=t:null==this.contents?this.contents=Ll(this.schema,Array.from(e),t):vu(this.contents)&&this.contents.setIn(e,t)
}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":
this.directives?this.directives.yaml.version="1.1":this.directives=new Sl({
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 Sl({version:e
}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:
this.directives&&delete this.directives,n=null;break;default:{
const t=JSON.stringify(e)
;throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)
}}if(t.schema instanceof Object)this.schema=t.schema;else{
if(!n)throw new Error("With a null YAML version, the { schema: Schema } option is required")
;this.schema=new mu(Object.assign(n,t))}}
toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:o,reviver:i}={}){
const a={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,
maxAliasCount:"number"==typeof r?r:100},s=Al(this.contents,t??"",a)
;if("function"==typeof o)for(const{count:l,res:c}of a.anchors.values())o(c,l)
;return"function"==typeof i?Cl(i,{"":s},"",s):s}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 function(e,t){var n;const r=[];let o=!0===t.directives
;if(!1!==t.directives&&e.directives){const t=e.directives.toString(e)
;t?(r.push(t),o=!0):e.directives.docStart&&(o=!0)}o&&r.push("---")
;const i=nc(e,t),{commentString:a}=i.options;if(e.commentBefore){
1!==r.length&&r.unshift("");const t=a(e.commentBefore);r.unshift(Ul(t,""))}
let s=!1,l=null;if(e.contents){if(gl(e.contents)){
if(e.contents.spaceBefore&&o&&r.push(""),e.contents.commentBefore){
const t=a(e.contents.commentBefore);r.push(Ul(t,""))}
i.forceBlockIndent=!!e.comment,l=e.contents.comment}const t=l?void 0:()=>s=!0
;let n=rc(e.contents,i,(()=>l=null),t)
;l&&(n+=Fl(n,"",a(l))),"|"!==n[0]&&">"!==n[0]||"---"!==r[r.length-1]?r.push(n):r[r.length-1]=`--- ${n}`
}else r.push(rc(e.contents,i))
;if(null==(n=e.directives)?void 0:n.docEnd)if(e.comment){const t=a(e.comment)
;t.includes("\n")?(r.push("..."),r.push(Ul(t,""))):r.push(`... ${t}`)
}else r.push("...");else{let t=e.comment
;t&&s&&(t=t.replace(/^\n+/,"")),t&&(s&&!l||""===r[r.length-1]||r.push(""),
r.push(Ul(a(t),"")))}return r.join("\n")+"\n"}(this,e)}}function vu(e){
if(ml(e))return!0
;throw new Error("Expected a YAML collection as document contents")}
class bu extends Error{constructor(e,t,n,r){
super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class Ou extends bu{
constructor(e,t,n){super("YAMLParseError",e,t,n)}}class yu extends bu{
constructor(e,t,n){super("YAMLWarning",e,t,n)}}const wu=(e,t)=>n=>{
if(-1===n.pos[0])return;n.linePos=n.pos.map((e=>t.linePos(e)))
;const{line:r,col:o}=n.linePos[0];n.message+=` at line ${r}, column ${o}`
;let i=o-1,a=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"")
;if(i>=60&&a.length>80){const e=Math.min(i-39,a.length-79);a="…"+a.substring(e),
i-=e-1}
if(a.length>80&&(a=a.substring(0,79)+"…"),r>1&&/^ *$/.test(a.substring(0,i))){
let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1])
;n.length>80&&(n=n.substring(0,79)+"…\n"),a=n+a}if(/[^ ]/.test(a)){let e=1
;const t=n.linePos[1]
;t&&t.line===r&&t.col>o&&(e=Math.max(1,Math.min(t.col-o,80-i)))
;const s=" ".repeat(i)+"^".repeat(e);n.message+=`:\n\n${a}\n${s}\n`}}
;function xu(e,{flow:t,indicator:n,next:r,offset:o,onError:i,parentIndent:a,startOnNewline:s}){
let l=!1,c=s,u=s,d="",p="",h=!1,f=!1,m=!1,g=null,v=null,b=null,O=null,y=null,w=null
;for(const S of e)switch(m&&("space"!==S.type&&"newline"!==S.type&&"comma"!==S.type&&i(S.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),
m=!1),
g&&(c&&"comment"!==S.type&&"newline"!==S.type&&i(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),
g=null),S.type){case"space":
t||"doc-start"===n&&"flow-collection"===(null==r?void 0:r.type)||!S.source.includes("\t")||(g=S),
u=!0;break;case"comment":{
u||i(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters")
;const e=S.source.substring(1)||" ";d?d+=p+e:d=e,p="",c=!1;break}case"newline":
c?d?d+=S.source:l=!0:p+=S.source,c=!0,h=!0,(v||b)&&(f=!0),u=!0;break
;case"anchor":
v&&i(S,"MULTIPLE_ANCHORS","A node can have at most one anchor"),S.source.endsWith(":")&&i(S.offset+S.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),
v=S,null===w&&(w=S.offset),c=!1,u=!1,m=!0;break;case"tag":
b&&i(S,"MULTIPLE_TAGS","A node can have at most one tag"),
b=S,null===w&&(w=S.offset),c=!1,u=!1,m=!0;break;case n:
(v||b)&&i(S,"BAD_PROP_ORDER",`Anchors and tags must be after the ${S.source} indicator`),
y&&i(S,"UNEXPECTED_TOKEN",`Unexpected ${S.source} in ${t??"collection"}`),
y=S,c="seq-item-ind"===n||"explicit-key-ind"===n,u=!1;break;case"comma":if(t){
O&&i(S,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),O=S,c=!1,u=!1;break}default:
i(S,"UNEXPECTED_TOKEN",`Unexpected ${S.type} token`),c=!1,u=!1}
const x=e[e.length-1],k=x?x.offset+x.source.length:o
;return m&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),
g&&(c&&g.indent<=a||"block-map"===(null==r?void 0:r.type)||"block-seq"===(null==r?void 0:r.type))&&i(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),
{comma:O,found:y,spaceBefore:l,comment:d,hasNewline:h,hasNewlineAfterProp:f,
anchor:v,tag:b,end:k,start:w??k}}function ku(e){if(!e)return null
;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":
case"single-quoted-scalar":if(e.source.includes("\n"))return!0
;if(e.end)for(const t of e.end)if("newline"===t.type)return!0;return!1
;case"flow-collection":for(const t of e.items){
for(const e of t.start)if("newline"===e.type)return!0
;if(t.sep)for(const e of t.sep)if("newline"===e.type)return!0
;if(ku(t.key)||ku(t.value))return!0}return!1;default:return!0}}
function Su(e,t,n){if("flow-collection"===(null==t?void 0:t.type)){
const r=t.end[0];if(r.indent===e&&("]"===r.source||"}"===r.source)&&ku(t)){
n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}}
function _u(e,t,n){const{uniqueKeys:r}=e.options;if(!1===r)return!1
;const o="function"==typeof r?r:(t,n)=>t===n||hl(t)&&hl(n)&&t.value===n.value&&!("<<"===t.value&&e.schema.merge)
;return t.some((e=>o(e.key,n)))}
const Eu="All mapping items must start at the same column";function Tu(e,t,n,r){
let o="";if(e){let i=!1,a="";for(const s of e){const{source:e,type:l}=s
;switch(l){case"space":i=!0;break;case"comment":{
n&&!i&&r(s,"MISSING_CHAR","Comments must be separated from other tokens by white space characters")
;const t=e.substring(1)||" ";o?o+=a+t:o=t,a="";break}case"newline":
o&&(a+=e),i=!0;break;default:
r(s,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=e.length}}return{
comment:o,offset:t}}
const Cu="Block collections are not allowed within flow collections",Au=e=>e&&("block-map"===e.type||"block-seq"===e.type)
;function Pu(e,t,n,r,o,i){
const a="block-map"===n.type?function({composeNode:e,composeEmptyNode:t},n,r,o,i){
var a;const s=new((null==i?void 0:i.nodeClass)??mc)(n.schema)
;n.atRoot&&(n.atRoot=!1);let l=r.offset,c=null;for(const u of r.items){
const{start:i,key:d,sep:p,value:h}=u,f=xu(i,{indicator:"explicit-key-ind",
next:d??(null==p?void 0:p[0]),offset:l,onError:o,parentIndent:r.indent,
startOnNewline:!0}),m=!f.found;if(m){
if(d&&("block-seq"===d.type?o(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in d&&d.indent!==r.indent&&o(l,"BAD_INDENT",Eu)),
!f.anchor&&!f.tag&&!p){
c=f.end,f.comment&&(s.comment?s.comment+="\n"+f.comment:s.comment=f.comment)
;continue}
(f.hasNewlineAfterProp||ku(d))&&o(d??i[i.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")
}else(null==(a=f.found)?void 0:a.indent)!==r.indent&&o(l,"BAD_INDENT",Eu)
;const g=f.end,v=d?e(n,d,f,o):t(n,g,i,null,f,o)
;n.schema.compat&&Su(r.indent,d,o),
_u(n,s.items,v)&&o(g,"DUPLICATE_KEY","Map keys must be unique")
;const b=xu(p??[],{indicator:"map-value-ind",next:h,offset:v.range[2],onError:o,
parentIndent:r.indent,startOnNewline:!d||"block-scalar"===d.type})
;if(l=b.end,b.found){
m&&("block-map"!==(null==h?void 0:h.type)||b.hasNewline||o(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),
n.options.strict&&f.start<b.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 i=h?e(n,h,b,o):t(n,l,p,null,b,o)
;n.schema.compat&&Su(r.indent,h,o),l=i.range[2];const a=new cc(v,i)
;n.options.keepSourceTokens&&(a.srcToken=u),s.items.push(a)}else{
m&&o(v.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),
b.comment&&(v.comment?v.comment+="\n"+b.comment:v.comment=b.comment)
;const e=new cc(v);n.options.keepSourceTokens&&(e.srcToken=u),s.items.push(e)}}
return c&&c<l&&o(c,"IMPOSSIBLE","Map comment with trailing content"),
s.range=[r.offset,l,c??l],s
}(e,t,n,r,i):"block-seq"===n.type?function({composeNode:e,composeEmptyNode:t},n,r,o,i){
const a=new((null==i?void 0:i.nodeClass)??vc)(n.schema);n.atRoot&&(n.atRoot=!1)
;let s=r.offset,l=null;for(const{start:c,value:u}of r.items){const i=xu(c,{
indicator:"seq-item-ind",next:u,offset:s,onError:o,parentIndent:r.indent,
startOnNewline:!0});if(!i.found){if(!(i.anchor||i.tag||u)){
l=i.end,i.comment&&(a.comment=i.comment);continue}
u&&"block-seq"===u.type?o(i.end,"BAD_INDENT","All sequence items must start at the same column"):o(s,"MISSING_CHAR","Sequence item without - indicator")
}const d=u?e(n,u,i,o):t(n,i.end,c,null,i,o)
;n.schema.compat&&Su(r.indent,u,o),s=d.range[2],a.items.push(d)}
return a.range=[r.offset,s,l??s],a
}(e,t,n,r,i):function({composeNode:e,composeEmptyNode:t},n,r,o,i){
const a="{"===r.start.source,s=a?"flow map":"flow sequence",l=new((null==i?void 0:i.nodeClass)??(a?mc:vc))(n.schema)
;l.flow=!0;const c=n.atRoot;c&&(n.atRoot=!1)
;let u=r.offset+r.start.source.length;for(let m=0;m<r.items.length;++m){
const i=r.items[m],{start:c,key:d,sep:p,value:h}=i,f=xu(c,{flow:s,
indicator:"explicit-key-ind",next:d??(null==p?void 0:p[0]),offset:u,onError:o,
parentIndent:r.indent,startOnNewline:!1});if(!f.found){
if(!(f.anchor||f.tag||p||h)){
0===m&&f.comma?o(f.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`):m<r.items.length-1&&o(f.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${s}`),
f.comment&&(l.comment?l.comment+="\n"+f.comment:l.comment=f.comment),u=f.end
;continue}
!a&&n.options.strict&&ku(d)&&o(d,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")
}
if(0===m)f.comma&&o(f.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${s}`);else if(f.comma||o(f.start,"MISSING_CHAR",`Missing , between ${s} items`),
f.comment){let e="";e:for(const t of c)switch(t.type){case"comma":case"space":
break;case"comment":e=t.source.substring(1);break e;default:break e}if(e){
let t=l.items[l.items.length-1]
;pl(t)&&(t=t.value??t.key),t.comment?t.comment+="\n"+e:t.comment=e,
f.comment=f.comment.substring(e.length+1)}}if(a||p||f.found){
const m=f.end,g=d?e(n,d,f,o):t(n,m,c,null,f,o)
;Au(d)&&o(g.range,"BLOCK_IN_FLOW",Cu);const v=xu(p??[],{flow:s,
indicator:"map-value-ind",next:h,offset:g.range[2],onError:o,
parentIndent:r.indent,startOnNewline:!1});if(v.found){
if(!a&&!f.found&&n.options.strict){if(p)for(const e of p){if(e===v.found)break
;if("newline"===e.type){
o(e,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")
;break}}
f.start<v.found.offset-1024&&o(v.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")
}
}else h&&("source"in h&&h.source&&":"===h.source[0]?o(h,"MISSING_CHAR",`Missing space after : in ${s}`):o(v.start,"MISSING_CHAR",`Missing , or : between ${s} items`))
;const b=h?e(n,h,v,o):v.found?t(n,v.end,p,null,v,o):null
;b?Au(h)&&o(b.range,"BLOCK_IN_FLOW",Cu):v.comment&&(g.comment?g.comment+="\n"+v.comment:g.comment=v.comment)
;const O=new cc(g,b);if(n.options.keepSourceTokens&&(O.srcToken=i),a){const e=l
;_u(n,e.items,g)&&o(m,"DUPLICATE_KEY","Map keys must be unique"),e.items.push(O)
}else{const e=new mc(n.schema);e.flow=!0,e.items.push(O),l.items.push(e)}
u=b?b.range[2]:v.end}else{const r=h?e(n,h,f,o):t(n,f.end,p,null,f,o)
;l.items.push(r),u=r.range[2],Au(h)&&o(r.range,"BLOCK_IN_FLOW",Cu)}}
const d=a?"}":"]",[p,...h]=r.end;let f=u
;if(p&&p.source===d)f=p.offset+p.source.length;else{
const e=s[0].toUpperCase()+s.substring(1)
;o(u,c?"MISSING_CHAR":"BAD_INDENT",c?`${e} must end with a ${d}`:`${e} in block collection must be sufficiently indented and end with a ${d}`),
p&&1!==p.source.length&&h.unshift(p)}if(h.length>0){
const e=Tu(h,f,n.options.strict,o)
;e.comment&&(l.comment?l.comment+="\n"+e.comment:l.comment=e.comment),
l.range=[r.offset,f,e.offset]}else l.range=[r.offset,f,f];return l
}(e,t,n,r,i),s=a.constructor
;return"!"===o||o===s.tagName?(a.tag=s.tagName,a):(o&&(a.tag=o),a)}
function Du(e,t,n){const r=t.offset,o=function({offset:e,props:t},n,r){
if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),
null;const{source:o}=t[0],i=o[0];let a=0,s="",l=-1;for(let p=1;p<o.length;++p){
const t=o[p];if(s||"-"!==t&&"+"!==t){const n=Number(t);!a&&n?a=n:-1===l&&(l=e+p)
}else s=t}
-1!==l&&r(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`)
;let c=!1,u="",d=o.length;for(let p=1;p<t.length;++p){const e=t[p]
;switch(e.type){case"space":c=!0;case"newline":d+=e.source.length;break
;case"comment":if(n&&!c){
r(e,"MISSING_CHAR","Comments must be separated from other tokens by white space characters")
}d+=e.source.length,u=e.source.substring(1);break;case"error":
r(e,"UNEXPECTED_TOKEN",e.message),d+=e.source.length;break;default:{
r(e,"UNEXPECTED_TOKEN",`Unexpected token in block scalar header: ${e.type}`)
;const t=e.source;t&&"string"==typeof t&&(d+=t.length)}}}return{mode:i,indent:a,
chomp:s,comment:u,length:d}}(t,e.options.strict,n);if(!o)return{value:"",
type:null,comment:"",range:[r,r,r]}
;const i=">"===o.mode?Nl.BLOCK_FOLDED:Nl.BLOCK_LITERAL,a=t.source?function(e){
const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),o=[(null==r?void 0:r[1])?[r[1],n.slice(r[1].length)]:["",n]]
;for(let i=1;i<t.length;i+=2)o.push([t[i],t[i+1]]);return o}(t.source):[]
;let s=a.length;for(let m=a.length-1;m>=0;--m){const e=a[m][1]
;if(""!==e&&"\r"!==e)break;s=m}if(0===s){
const e="+"===o.chomp&&a.length>0?"\n".repeat(Math.max(1,a.length-1)):""
;let n=r+o.length;return t.source&&(n+=t.source.length),{value:e,type:i,
comment:o.comment,range:[r,n,n]}}let l=t.indent+o.indent,c=t.offset+o.length,u=0
;for(let m=0;m<s;++m){const[t,r]=a[m];if(""!==r&&"\r"!==r){if(t.length<l){
const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator"
;n(c+t.length,"MISSING_CHAR",e)}
if(0===o.indent&&(l=t.length),u=m,0===l&&!e.atRoot){
n(c,"BAD_INDENT","Block scalar values in collections must be indented")}break}
0===o.indent&&t.length>l&&(l=t.length),c+=t.length+r.length+1}
for(let m=a.length-1;m>=s;--m)a[m][0].length>l&&(s=m+1);let d="",p="",h=!1
;for(let m=0;m<u;++m)d+=a[m][0].slice(l)+"\n";for(let m=u;m<s;++m){let[e,t]=a[m]
;c+=e.length+t.length+1;const r="\r"===t[t.length-1]
;if(r&&(t=t.slice(0,-1)),t&&e.length<l){
const i=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`
;n(c-t.length-(r?2:1),"BAD_INDENT",i),e=""}
i===Nl.BLOCK_LITERAL?(d+=p+e.slice(l)+t,
p="\n"):e.length>l||"\t"===t[0]?(" "===p?p="\n":h||"\n"!==p||(p="\n\n"),
d+=p+e.slice(l)+t,
p="\n",h=!0):""===t?"\n"===p?d+="\n":p="\n":(d+=p+t,p=" ",h=!1)}switch(o.chomp){
case"-":break;case"+":for(let e=s;e<a.length;++e)d+="\n"+a[e][0].slice(l)
;"\n"!==d[d.length-1]&&(d+="\n");break;default:d+="\n"}
const f=r+o.length+t.source.length;return{value:d,type:i,comment:o.comment,
range:[r,f,f]}}function $u(e,t,n){const{offset:r,type:o,source:i,end:a}=e
;let s,l;const c=(e,t,o)=>n(r+e,t,o);switch(o){case"scalar":
s=Nl.PLAIN,l=function(e,t){let n="";switch(e[0]){case"\t":n="a tab character"
;break;case",":n="flow indicator character ,";break;case"%":
n="directive indicator character %";break;case"|":case">":
n=`block scalar indicator ${e[0]}`;break;case"@":case"`":
n=`reserved character ${e[0]}`}
n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`);return Ru(e)
}(i,c);break;case"single-quoted-scalar":s=Nl.QUOTE_SINGLE,l=function(e,t){
"'"===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR","Missing closing 'quote")
;return Ru(e.slice(1,-1)).replace(/''/g,"'")}(i,c);break
;case"double-quoted-scalar":s=Nl.QUOTE_DOUBLE,l=function(e,t){let n=""
;for(let r=1;r<e.length-1;++r){const o=e[r]
;if("\r"!==o||"\n"!==e[r+1])if("\n"===o){const{fold:t,offset:o}=Nu(e,r);n+=t,r=o
}else if("\\"===o){let o=e[++r];const i=Iu[o]
;if(i)n+=i;else if("\n"===o)for(o=e[r+1];" "===o||"\t"===o;)o=e[1+ ++r];else if("\r"===o&&"\n"===e[r+1])for(o=e[1+ ++r];" "===o||"\t"===o;)o=e[1+ ++r];else if("x"===o||"u"===o||"U"===o){
const i={x:2,u:4,U:8}[o];n+=Mu(e,r+1,i,t),r+=i}else{const o=e.substr(r-1,2)
;t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),n+=o}
}else if(" "===o||"\t"===o){const t=r;let i=e[r+1]
;for(;" "===i||"\t"===i;)i=e[1+ ++r]
;"\n"===i||"\r"===i&&"\n"===e[r+2]||(n+=r>t?e.slice(t,r+1):o)}else n+=o}
'"'===e[e.length-1]&&1!==e.length||t(e.length,"MISSING_CHAR",'Missing closing "quote')
;return n}(i,c);break;default:
return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{
value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}}
const u=r+i.length,d=Tu(a,u,t,n);return{value:l,type:s,comment:d.comment,
range:[r,u,d.offset]}}function Ru(e){let t,n;try{
t=new RegExp("(.*?)(?<![ \t])[ \t]*\r?\n","sy"),
n=new RegExp("[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n","sy")}catch(l){
t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e)
;if(!r)return e;let o=r[1],i=" ",a=t.lastIndex
;for(n.lastIndex=a;r=n.exec(e);)""===r[1]?"\n"===i?o+=i:i="\n":(o+=i+r[1],
i=" "),a=n.lastIndex;const s=/[ \t]*(.*)/sy
;return s.lastIndex=a,r=s.exec(e),o+i+((null==r?void 0:r[1])??"")}
function Nu(e,t){let n="",r=e[t+1]
;for(;!(" "!==r&&"\t"!==r&&"\n"!==r&&"\r"!==r||"\r"===r&&"\n"!==e[t+2]);)"\n"===r&&(n+="\n"),
r=e[(t+=1)+1];return n||(n=" "),{fold:n,offset:t}}const Iu={0:"\0",a:"",b:"\b",
e:"",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v",N:"",_:" ",L:"\u2028",P:"\u2029",
" ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function Mu(e,t,n,r){
const o=e.substr(t,n),i=o.length===n&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN
;if(isNaN(i)){const o=e.substr(t-2,n+2)
;return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}
return String.fromCodePoint(i)}function Lu(e,t,n,r){
const{value:o,type:i,comment:a,range:s}="block-scalar"===t.type?Du(e,t,r):$u(t,e.options.strict,r),l=n?e.directives.tagName(n.source,(e=>r(n,"TAG_RESOLVE_FAILED",e))):null,c=n&&l?function(e,t,n,r,o){
var i;if("!"===n)return e[al];const a=[]
;for(const l of e.tags)if(!l.collection&&l.tag===n){
if(!l.default||!l.test)return l;a.push(l)}
for(const l of a)if(null==(i=l.test)?void 0:i.test(t))return l
;const s=e.knownTags[n]
;if(s&&!s.collection)return e.tags.push(Object.assign({},s,{default:!1,
test:void 0})),s
;return o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),
e[al]
}(e.schema,o,l,n,r):"scalar"===t.type?function({directives:e,schema:t},n,r,o){
const i=t.tags.find((e=>{var t
;return e.default&&(null==(t=e.test)?void 0:t.test(n))}))||t[al];if(t.compat){
const a=t.compat.find((e=>{var t
;return e.default&&(null==(t=e.test)?void 0:t.test(n))}))??t[al]
;if(i.tag!==a.tag){
o(r,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${e.tagString(i.tag)} or ${e.tagString(a.tag)}`,!0)
}}return i}(e,o,t,r):e.schema[al];let u;try{
const i=c.resolve(o,(e=>r(n??t,"TAG_RESOLVE_FAILED",e)),e.options)
;u=hl(i)?i:new Nl(i)}catch(d){const e=d instanceof Error?d.message:String(d)
;r(n??t,"TAG_RESOLVE_FAILED",e),u=new Nl(o)}
return u.range=s,u.source=o,i&&(u.type=i),
l&&(u.tag=l),c.format&&(u.format=c.format),a&&(u.comment=a),u}
function Bu(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){
let n=t[r];switch(n.type){case"space":case"comment":case"newline":
e-=n.source.length;continue}
for(n=t[++r];"space"===(null==n?void 0:n.type);)e+=n.source.length,n=t[++r]
;break}}return e}const Qu={composeNode:ju,composeEmptyNode:Uu}
;function ju(e,t,n,r){const{spaceBefore:o,comment:i,anchor:a,tag:s}=n;let l,c=!0
;switch(t.type){case"alias":l=function({options:e},{offset:t,source:n,end:r},o){
const i=new Dl(n.substring(1))
;""===i.source&&o(t,"BAD_ALIAS","Alias cannot be an empty string")
;i.source.endsWith(":")&&o(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0)
;const a=t+n.length,s=Tu(r,a,e.strict,o)
;i.range=[t,a,s.offset],s.comment&&(i.comment=s.comment);return i
}(e,t,r),(a||s)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties")
;break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":
case"block-scalar":l=Lu(e,t,s,r),a&&(l.anchor=a.source.substring(1));break
;case"block-map":case"block-seq":case"flow-collection":l=function(e,t,n,r,o){
var i
;const a=r?t.directives.tagName(r.source,(e=>o(r,"TAG_RESOLVE_FAILED",e))):null,s="block-map"===n.type?"map":"block-seq"===n.type?"seq":"{"===n.start.source?"map":"seq"
;if(!r||!a||"!"===a||a===mc.tagName&&"map"===s||a===vc.tagName&&"seq"===s||!s)return Pu(e,t,n,o,a)
;let l=t.schema.tags.find((e=>e.tag===a&&e.collection===s));if(!l){
const i=t.schema.knownTags[a]
;if(!i||i.collection!==s)return(null==i?void 0:i.collection)?o(r,"BAD_COLLECTION_TYPE",`${i.tag} used for ${s} collection, but expects ${i.collection}`,!0):o(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),
Pu(e,t,n,o,a);t.schema.tags.push(Object.assign({},i,{default:!1})),l=i}
const c=Pu(e,t,n,o,a,l),u=(null==(i=l.resolve)?void 0:i.call(l,c,(e=>o(r,"TAG_RESOLVE_FAILED",e)),t.options))??c,d=gl(u)?u:new Nl(u)
;return d.range=c.range,d.tag=a,(null==l?void 0:l.format)&&(d.format=l.format),d
}(Qu,e,t,s,r),a&&(l.anchor=a.source.substring(1));break;default:
r(t,"UNEXPECTED_TOKEN","error"===t.type?t.message:`Unsupported token (type: ${t.type})`),
l=Uu(e,t.offset,void 0,null,n,r),c=!1}
return a&&""===l.anchor&&r(a,"BAD_ALIAS","Anchor cannot be an empty string"),
o&&(l.spaceBefore=!0),
i&&("scalar"===t.type&&""===t.source?l.comment=i:l.commentBefore=i),
e.options.keepSourceTokens&&c&&(l.srcToken=t),l}
function Uu(e,t,n,r,{spaceBefore:o,comment:i,anchor:a,tag:s,end:l},c){
const u=Lu(e,{type:"scalar",offset:Bu(t,n,r),indent:-1,source:""},s,c)
;return a&&(u.anchor=a.source.substring(1),
""===u.anchor&&c(a,"BAD_ALIAS","Anchor cannot be an empty string")),
o&&(u.spaceBefore=!0),i&&(u.comment=i,u.range[2]=l),u}function Fu(e){
if("number"==typeof e)return[e,e+1]
;if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]]
;const{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}
function qu(e){var t;let n="",r=!1,o=!1;for(let i=0;i<e.length;++i){const a=e[i]
;switch(a[0]){case"#":
n+=(""===n?"":o?"\n\n":"\n")+(a.substring(1)||" "),r=!0,o=!1;break;case"%":
"#"!==(null==(t=e[i+1])?void 0:t[0])&&(i+=1),r=!1;break;default:r||(o=!0),r=!1}}
return{comment:n,afterEmptyLine:o}}class zu{constructor(e={}){
this.doc=null,this.atDirectives=!1,
this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{
const o=Fu(e)
;r?this.warnings.push(new yu(o,t,n)):this.errors.push(new Ou(o,t,n))
},this.directives=new Sl({version:e.version||"1.2"}),this.options=e}
decorate(e,t){const{comment:n,afterEmptyLine:r}=qu(this.prelude);if(n){
const o=e.contents
;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!o)e.commentBefore=n;else if(ml(o)&&!o.flow&&o.items.length>0){
let e=o.items[0];pl(e)&&(e=e.key);const t=e.commentBefore
;e.commentBefore=t?`${n}\n${t}`:n}else{const e=o.commentBefore
;o.commentBefore=e?`${n}\n${e}`: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:qu(this.prelude).comment,directives:this.directives,
errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){
for(const r of e)yield*this.next(r);yield*this.end(t,n)}*next(e){switch(e.type){
case"directive":this.directives.add(e.source,((t,n,r)=>{const o=Fu(e)
;o[0]+=t,this.onError(o,"BAD_DIRECTIVE",n,r)
})),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{
const t=function(e,t,{offset:n,start:r,value:o,end:i},a){const s=Object.assign({
_directives:t},e),l=new gu(void 0,s),c={atRoot:!0,directives:l.directives,
options:l.options,schema:l.schema},u=xu(r,{indicator:"doc-start",
next:o??(null==i?void 0:i[0]),offset:n,onError:a,parentIndent:0,
startOnNewline:!0})
;u.found&&(l.directives.docStart=!0,!o||"block-map"!==o.type&&"block-seq"!==o.type||u.hasNewline||a(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),
l.contents=o?ju(c,o,u,a):Uu(c,u.end,r,null,u,a)
;const d=l.contents.range[2],p=Tu(i,d,!1,a)
;return p.comment&&(l.comment=p.comment),l.range=[n,d,p.offset],l
}(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 Ou(Fu(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 t="Unexpected doc-end without preceding document"
;this.errors.push(new Ou(Fu(e),"UNEXPECTED_TOKEN",t));break}
this.doc.directives.docEnd=!0
;const t=Tu(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError)
;if(this.decorate(this.doc,!0),t.comment){const e=this.doc.comment
;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset
;break}default:
this.errors.push(new Ou(Fu(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 e=Object.assign({_directives:this.directives
},this.options),n=new gu(void 0,e)
;this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),
n.range=[0,t,t],this.decorate(n,!1),yield n}}}function Hu(e){switch(e){
case void 0:case" ":case"\n":case"\r":case"\t":return!0;default:return!1}}
const Zu=new Set("0123456789ABCDEFabcdef"),Vu=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Wu=new Set(",[]{}"),Xu=new Set(" ,[]{}\n\r\t"),Yu=e=>!e||Xu.has(e)
;class Gu{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){if(e){
if("string"!=typeof e)throw TypeError("source is not a string")
;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;)t=this.buffer[++e]
;return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+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("\r"===t){
const t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}
return"\n"===t||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if("-"===t||"."===t){
const t=this.buffer.substr(e,3)
;if(("---"===t||"..."===t)&&Hu(this.buffer[e+3]))return-1}return e}getLine(){
let e=this.lineEndPos
;return("number"!=typeof e||-1!==e&&e<this.pos)&&(e=this.buffer.indexOf("\n",this.pos),
this.lineEndPos=e),
-1===e?this.atEnd?this.buffer.substring(this.pos):null:("\r"===this.buffer[e-1]&&(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(null===e)return this.setNext("stream")
;if("\ufeff"===e[0]&&(yield*this.pushCount(1),e=e.substring(1)),"%"===e[0]){
let t=e.length,n=e.indexOf("#");for(;-1!==n;){const r=e[n-1]
;if(" "===r||"\t"===r){t=n-1;break}n=e.indexOf("#",n+1)}for(;;){const n=e[t-1]
;if(" "!==n&&"\t"!==n)break;t-=1}
const r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0))
;return yield*this.pushCount(e.length-r),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"",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 e=this.peek(3)
;if("---"===e&&Hu(this.charAt(3)))return yield*this.pushCount(3),
this.indentValue=0,this.indentNext=0,"doc"
;if("..."===e&&Hu(this.charAt(3)))return yield*this.pushCount(3),"stream"}
return this.indentValue=yield*this.pushSpaces(!1),
this.indentNext>this.indentValue&&!Hu(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)&&Hu(t)){
const e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))
;return this.indentNext=this.indentValue+1,
this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){
yield*this.pushSpaces(!0);const e=this.getLine()
;if(null===e)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(Yu),"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 r=this.getLine()
;if(null===r)return this.setNext("flow")
;if(-1!==n&&n<this.indentNext&&"#"!==r[0]||0===n&&(r.startsWith("---")||r.startsWith("..."))&&Hu(r[3])){
if(!(n===this.indentNext-1&&1===this.flowLevel&&("]"===r[0]||"}"===r[0])))return this.flowLevel=0,
yield"",yield*this.parseLineStart()}let o=0
;for(;","===r[o];)o+=(yield*this.pushCount(1)),
o+=(yield*this.pushSpaces(!0)),this.flowKey=!1
;switch(o+=(yield*this.pushIndicators()),r[o]){case void 0:return"flow";case"#":
return yield*this.pushCount(r.length-o),"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(Yu),"flow";case'"':case"'":
return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{
const e=this.charAt(1)
;if(this.flowKey||Hu(e)||","===e)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(;-1!==t&&"'"===this.buffer[t+1];)t=this.buffer.indexOf("'",t+2);else for(;-1!==t;){
let e=0;for(;"\\"===this.buffer[t-1-e];)e+=1;if(e%2==0)break
;t=this.buffer.indexOf('"',t+1)}const n=this.buffer.substring(0,t)
;let r=n.indexOf("\n",this.pos);if(-1!==r){for(;-1!==r;){
const e=this.continueScalar(r+1);if(-1===e)break;r=n.indexOf("\n",e)}
-1!==r&&(t=r-("\r"===n[r-1]?2:1))}if(-1===t){
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((e=>Hu(e)||"#"===e))}*parseBlockScalar(){
let e,t=this.pos-1,n=0;e:for(let o=this.pos;e=this.buffer[o];++o)switch(e){
case" ":n+=1;break;case"\n":t=o,n=0;break;case"\r":{const e=this.buffer[o+1]
;if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}
default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar")
;if(n>=this.indentNext){
-1===this.blockScalarIndent?this.indentNext=n:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext)
;do{const e=this.continueScalar(t+1);if(-1===e)break
;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){
if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}
let r=t+1;for(e=this.buffer[r];" "===e;)e=this.buffer[++r];if("\t"===e){
for(;"\t"===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++r];t=r-1
}else if(!this.blockScalarKeep)for(;;){let e=t-1,r=this.buffer[e]
;"\r"===r&&(r=this.buffer[--e]);const o=e;for(;" "===r;)r=this.buffer[--e]
;if(!("\n"===r&&e>=this.pos&&e+1+n>o))break;t=e}
return yield"",yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}
*parsePlainScalar(){const e=this.flowLevel>0;let t,n=this.pos-1,r=this.pos-1
;for(;t=this.buffer[++r];)if(":"===t){const t=this.buffer[r+1]
;if(Hu(t)||e&&Wu.has(t))break;n=r}else if(Hu(t)){let o=this.buffer[r+1]
;if("\r"===t&&("\n"===o?(r+=1,
t="\n",o=this.buffer[r+1]):n=r),"#"===o||e&&Wu.has(o))break;if("\n"===t){
const e=this.continueScalar(r+1);if(-1===e)break;r=Math.max(r,e-2)}}else{
if(e&&Wu.has(t))break;n=r}
return t||this.atEnd?(yield"",yield*this.pushToIndex(n+1,!0),
e?"flow":"doc"):this.setNext("plain-scalar")}*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(Yu))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())
;case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1)
;if(Hu(t)||e&&Wu.has(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(;!Hu(t)&&">"!==t;)t=this.buffer[++e]
;return yield*this.pushToIndex(">"===t?e+1:e,!1)}{
let e=this.pos+1,t=this.buffer[e];for(;t;)if(Vu.has(t))t=this.buffer[++e];else{
if("%"!==t||!Zu.has(this.buffer[e+1])||!Zu.has(this.buffer[e+2]))break
;t=this.buffer[e+=3]}return yield*this.pushToIndex(e,!1)}}*pushNewline(){
const e=this.buffer[this.pos]
;return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0
}*pushSpaces(e){let t,n=this.pos-1;do{t=this.buffer[++n]
}while(" "===t||e&&"\t"===t);const r=n-this.pos
;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){
let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t]
;return yield*this.pushToIndex(t,!1)}}class Ku{constructor(){this.lineStarts=[],
this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{
let t=0,n=this.lineStarts.length;for(;t<n;){const r=t+n>>1
;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1}
;if(0===t)return{line:0,col:e};return{line:t,col:e-this.lineStarts[t-1]+1}}}}
function Ju(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}
function ed(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":
case"comment":case"newline":break;default:return t}return-1}function td(e){
switch(null==e?void 0:e.type){case"alias":case"scalar":
case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":
return!0;default:return!1}}function nd(e){switch(e.type){case"document":
return e.start;case"block-map":{const t=e.items[e.items.length-1]
;return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start
;default:return[]}}function rd(e){var t;if(0===e.length)return[];let n=e.length
;e:for(;--n>=0;)switch(e[n].type){case"doc-start":case"explicit-key-ind":
case"map-value-ind":case"seq-item-ind":case"newline":break e}
for(;"space"===(null==(t=e[++n])?void 0:t.type););return e.splice(n,e.length)}
function od(e){
if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||Ju(t.start,"explicit-key-ind")||Ju(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),
delete t.key,
td(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),
delete t.sep)}let id=class{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 Gu,this.onNewLine=e}
*parse(e,t=!1){this.onNewLine&&0===this.offset&&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)return this.atScalar=!1,yield*this.step(),
void(this.offset+=e.length);const t=function(e){switch(e){case"\ufeff":
return"byte-order-mark";case"":return"doc-mode";case"":return"flow-error-end"
;case"":return"scalar";case"---":return"doc-start";case"...":return"doc-end"
;case"":case"\n":case"\r\n":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(e[0]){case" ":case"\t":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}(e)
;if(t)if("scalar"===t)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 t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",
offset:this.offset,message:t,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("doc-end"!==this.type||e&&"doc-end"===e.type){
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()}else{
for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",
offset:this.offset,source:this.source})}}peek(e){
return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop()
;if(t)if(0===this.stack.length)yield t;else{const e=this.peek(1)
;switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),
"flow-collection"===t.type&&od(t),e.type){case"document":e.value=t;break
;case"block-scalar":e.props.push(t);break;case"block-map":{
const n=e.items[e.items.length-1];if(n.value)return e.items.push({start:[],
key:t,sep:[]}),void(this.onKeyLine=!0);if(!n.sep)return Object.assign(n,{key:t,
sep:[]}),void(this.onKeyLine=!n.explicitKey);n.value=t;break}case"block-seq":{
const n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t
}):n.value=t;break}case"flow-collection":{const n=e.items[e.items.length-1]
;return void(!n||n.value?e.items.push({start:[],key:t,sep:[]
}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]}))}default:
yield*this.pop(),yield*this.pop(t)}
if(!("document"!==e.type&&"block-map"!==e.type&&"block-seq"!==e.type||"block-map"!==t.type&&"block-seq"!==t.type)){
const n=t.items[t.items.length-1]
;n&&!n.sep&&!n.value&&n.start.length>0&&-1===ed(n.start)&&(0===t.indent||n.start.every((e=>"comment"!==e.type||e.indent<t.indent)))&&("document"===e.type?e.end=n.start:e.items.push({
start:n.start}),t.items.splice(-1,1))}}else{
const e="Tried to pop an empty stack";yield{type:"error",offset:this.offset,
source:"",message:e}}}*stream(){switch(this.type){case"directive-line":
return void(yield{type:"directive",offset:this.offset,source:this.source})
;case"byte-order-mark":case"space":case"comment":case"newline":
return void(yield this.sourceToken);case"doc-mode":case"doc-start":{const e={
type:"document",offset:this.offset,start:[]}
;return"doc-start"===this.type&&e.start.push(this.sourceToken),
void this.stack.push(e)}}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":
return void(-1!==ed(e.start)?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken))
;case"anchor":case"tag":case"space":case"comment":case"newline":
return void e.start.push(this.sourceToken)}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("map-value-ind"===this.type){const t=rd(nd(this.peek(2)));let n
;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken]
;const r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:t,
key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r
}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":
case"comment":case"newline":return void e.props.push(this.sourceToken)
;case"scalar":
if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){
let e=this.source.indexOf("\n")+1
;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+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 t="end"in n.value?n.value.end:void 0,r=Array.isArray(t)?t[t.length-1]:void 0
;"comment"===(null==r?void 0:r.type)?null==t||t.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 r=e.items[e.items.length-2],o=null==(t=null==r?void 0:r.value)?void 0:t.end
;if(Array.isArray(o))return Array.prototype.push.apply(o,n.start),
o.push(this.sourceToken),void e.items.pop()}n.start.push(this.sourceToken)}
return}if(this.indent>=e.indent){
const t=!this.onKeyLine&&this.indent===e.indent,r=t&&(n.sep||n.explicitKey)&&"seq-item-ind"!==this.type
;let o=[];if(r&&n.sep&&!n.value){const t=[];for(let r=0;r<n.sep.length;++r){
const o=n.sep[r];switch(o.type){case"newline":t.push(r);break;case"space":break
;case"comment":o.indent>e.indent&&(t.length=0);break;default:t.length=0}}
t.length>=2&&(o=n.sep.splice(t[1]))}switch(this.type){case"anchor":case"tag":
return void(r||n.value?(o.push(this.sourceToken),e.items.push({start:o
}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken))
;case"explicit-key-ind":
return n.sep||n.explicitKey?r||n.value?(o.push(this.sourceToken),e.items.push({
start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,
indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]
}):(n.start.push(this.sourceToken),n.explicitKey=!0),void(this.onKeyLine=!0)
;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)e.items.push({
start:[],key:null,sep:[this.sourceToken]
});else if(Ju(n.sep,"map-value-ind"))this.stack.push({type:"block-map",
offset:this.offset,indent:this.indent,items:[{start:o,key:null,
sep:[this.sourceToken]}]});else if(td(n.key)&&!Ju(n.sep,"newline")){
const e=rd(n.start),t=n.key,r=n.sep
;r.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({
type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:t,
sep:r}]})
}else o.length>0?n.sep=n.sep.concat(o,this.sourceToken):n.sep.push(this.sourceToken);else if(Ju(n.start,"newline"))Object.assign(n,{
key:null,sep:[this.sourceToken]});else{const e=rd(n.start);this.stack.push({
type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,
sep:[this.sourceToken]}]})}else n.sep?n.value||r?e.items.push({start:o,key:null,
sep:[this.sourceToken]}):Ju(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]
});return void(this.onKeyLine=!0);case"alias":case"scalar":
case"single-quoted-scalar":case"double-quoted-scalar":{
const t=this.flowScalar(this.type);return void(r||n.value?(e.items.push({
start:o,key:t,sep:[]
}),this.onKeyLine=!0):n.sep?this.stack.push(t):(Object.assign(n,{key:t,sep:[]}),
this.onKeyLine=!0))}default:{const n=this.startBlockValue(e)
;if(n)return t&&"block-seq"!==n.type&&e.items.push({start:o
}),void this.stack.push(n)}}}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 t="end"in n.value?n.value.end:void 0,r=Array.isArray(t)?t[t.length-1]:void 0
;"comment"===(null==r?void 0:r.type)?null==t||t.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 r=e.items[e.items.length-2],o=null==(t=null==r?void 0:r.value)?void 0:t.end
;if(Array.isArray(o))return Array.prototype.push.apply(o,n.start),
o.push(this.sourceToken),void e.items.pop()}n.start.push(this.sourceToken)}
return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break
;return void n.start.push(this.sourceToken);case"seq-item-ind":
if(this.indent!==e.indent)break
;return void(n.value||Ju(n.start,"seq-item-ind")?e.items.push({
start:[this.sourceToken]}):n.start.push(this.sourceToken))}
if(this.indent>e.indent){const t=this.startBlockValue(e)
;if(t)return void this.stack.push(t)}yield*this.pop(),yield*this.step()}
*flowCollection(e){const t=e.items[e.items.length-1]
;if("flow-error-end"===this.type){let e;do{yield*this.pop(),e=this.peek(1)
}while(e&&"flow-collection"===e.type)}else if(0===e.end.length){
switch(this.type){case"comma":case"explicit-key-ind":
return void(!t||t.sep?e.items.push({start:[this.sourceToken]
}):t.start.push(this.sourceToken));case"map-value-ind":
return void(!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]}));case"space":case"comment":case"newline":case"anchor":
case"tag":return void(!t||t.value?e.items.push({start:[this.sourceToken]
}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken))
;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":
{const n=this.flowScalar(this.type);return void(!t||t.value?e.items.push({
start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]
}))}case"flow-map-end":case"flow-seq-end":
return void e.end.push(this.sourceToken)}const n=this.startBlockValue(e)
;n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{
const t=this.peek(2)
;if("block-map"===t.type&&("map-value-ind"===this.type&&t.indent===e.indent||"newline"===this.type&&!t.items[t.items.length-1].sep))yield*this.pop(),
yield*this.step();else if("map-value-ind"===this.type&&"flow-collection"!==t.type){
const n=rd(nd(t));od(e);const r=e.end.splice(1,e.end.length)
;r.push(this.sourceToken);const o={type:"block-map",offset:e.offset,
indent:e.indent,items:[{start:n,key:e,sep:r}]}
;this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(e)}
}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1
;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+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=rd(nd(e));return t.push(this.sourceToken),{type:"block-map",
offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}
case"map-value-ind":{this.onKeyLine=!0;const t=rd(nd(e));return{
type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,
sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){
return"comment"===this.type&&(!(this.indent<=t)&&e.every((e=>"newline"===e.type||"space"===e.type)))
}*documentEnd(e){
"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],
"newline"===this.type&&(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;default:
e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],
"newline"===this.type&&(yield*this.pop())}}};function ad(e,t={}){
const{lineCounter:n,prettyErrors:r}=function(e){const t=!1!==e.prettyErrors
;return{lineCounter:e.lineCounter||t&&new Ku||null,prettyErrors:t}
}(t),o=new id(null==n?void 0:n.addNewLine),i=new zu(t);let a=null
;for(const s of i.compose(o.parse(e),!0,e.length))if(a){
if("silent"!==a.options.logLevel){
a.errors.push(new Ou(s.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"))
;break}}else a=s
;return r&&n&&(a.errors.forEach(wu(e,n)),a.warnings.forEach(wu(e,n))),a}
const sd={parse:e=>{const t=JSON.parse(e)
;if("object"!=typeof t)throw Error("Invalid JSON object");return t},
parseSafe(e,t){try{return sd.parse(e)}catch(n){return"function"==typeof t?t(n):t
}},stringify:e=>JSON.stringify(e)
},ld=e=>"string"==typeof e&&!!sd.parseSafe(e,!1)
;const cd="https://api.scalar.com/request-proxy",ud="https://proxy.scalar.com"
;async function dd(e,t){t===cd&&(t=ud);const n=await fetch(t?Js(t,e):e)
;return 200!==n.status&&(console.error(`[fetchSpecFromUrl] Failed to fetch the specification at ${e} (Status: ${n.status})`),
t||console.warn(`[fetchSpecFromUrl] Tried to fetch the specification (url: ${e}) without a proxy. Are the CORS headers configured to allow cross-domain requests? https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS`)),
function(e){if("{"!==e.trim()[0])return e;try{
return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}(await n.text())}
const pd={get:{short:"GET",color:"text-blue",backgroundColor:"bg-blue"},post:{
short:"POST",color:"text-green",backgroundColor:"bg-green"},put:{short:"PUT",
color:"text-orange",backgroundColor:"bg-orange"},patch:{short:"PATCH",
color:"text-yellow",backgroundColor:"bg-yellow"},delete:{short:"DEL",
color:"text-red",backgroundColor:"bg-red"},options:{short:"OPTS",
color:"text-purple",backgroundColor:"bg-purple"},head:{short:"HEAD",
color:"text-scalar-c-2",backgroundColor:"bg-c-2"},connect:{short:"CONN",
color:"text-c-2",backgroundColor:"bg-c-2"},trace:{short:"TRACE",
color:"text-c-2",backgroundColor:"bg-c-2"}
},hd=["post","put","patch","delete"],fd=e=>hd.includes(e),md=e=>{
const t=e.trim().toLowerCase();return pd[t]??{short:t,color:"text-c-2",
backgroundColor:"bg-c-2"}},gd={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"},418:{
name:"I'm a teapot",
url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418"},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"}
},vd=(e,t,n=" #")=>{if(!t(e))return e
;const r=e.split(n),o=r.length>1?`${r.slice(0,-1).join()}${n}${Number(r.at(-1))+1}`:`${r.join()}${n}2`
;return vd(o,t,n)
},bd="collection",Od="cookie",yd="environment",wd="request",xd="requestExample",kd="securityScheme",Sd="server",_d="tag",Ed="workspace"
;function Td(e){if(!e)return e;const t={...e}
;return Object.keys(t).forEach((e=>{const n=function(e){
if("string"==typeof e)return e.replace(/;.*$/,"").replace(/\/.+\+/,"/").trim()
}(e);void 0!==n&&(t[n]=t[e],e!==n&&delete t[e])})),t}function Cd(e,t){
return Object.keys(e).forEach((n=>{Object.hasOwn(t,n)||delete e[n]
})),Object.assign(e,t),e}const Ad=e=>{
if("string"==typeof e)return ld(e)?JSON.stringify(JSON.parse(e),null,2):e
;if("object"==typeof e)try{return JSON.stringify(e,null,2)}catch{
return function(e){const t=new Set;return JSON.stringify(e,((e,n)=>{
if("object"==typeof n&&null!==n){if(t.has(n))return"[Circular]";t.add(n)}
return n}),2)}(e)}return(null==e?void 0:e.toString())??""};function Pd(e,t){
const n=(e,n)=>{var r
;return"function"==typeof t?t(n):(null==(r=t[n])?void 0:r.toString())||`{${n}}`}
;return e.replace(/{{\s*([\w.-]+)\s*}}/g,n).replace(/{\s*([\w.-]+)\s*}/g,n)}
function Dd(e,t,n=!0,r){const o=t.safeParse(e)
;if(o.success||(console.group("Schema Error"),
console.warn(JSON.stringify(o.error.format(),null,2)),
console.log("Recieved: ",e),
console.groupEnd()),n&&!o.success)throw new Error("Zod validation failure")
;return o.data}
const $d="undefined"!=typeof window?window.__SCALAR__??{}:{},Rd=e=>e[0].toUpperCase()+e.slice(1)
;const Nd=/{{((?:[^{}]|{[^{}]*})*)}}/g,Id=new RegExp("(?<!{){([^{}]+)}(?!})","g")
;function Md(e){var t,n
;const r=null==(t=null==e?void 0:e.servers)?void 0:t[e.selectedServer??0]
;(null==(n=null==r?void 0:r.url)?void 0:n.endsWith("/"))&&(r.url=r.url.slice(0,-1))
;return"string"==typeof(null==r?void 0:r.url)?Pd(null==r?void 0:r.url,e.variables):null==r?void 0:r.url
}function Ld(e){
return e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).join("-")
}const Bd="get",Qd=e=>{
if("string"!=typeof e)return console.warn(`Request method is not a string. Using ${Bd} as the default.`),
Bd;const t=e.trim().toUpperCase()
;return n=t,Ws.includes(n)?t:(console.warn(`${e} is not a valid request method. Using ${Bd} as the default.`),
Bd);var n};const jd=wn({showApiClient:!1,activeApiClientEndpointId:"",
activeItem:{},snippetType:"javascript"});function Ud(e,t=!1){
jd.showApiClient=!!t||!jd.showApiClient,e&&(jd.activeItem=e)}function Fd(){
jd.showApiClient=!1}function qd(e){jd.activeApiClientEndpointId=e}
function zd(e){jd.snippetType=e}const Hd=()=>({state:kn(jd),toggleApiClient:Ud,
setActiveApiClientEndpointId:qd,setSnippetType:zd,hideApiClient:Fd
}),Zd=wn($d["useGlobalStore-authentication"]??{preferredSecurityScheme:null,
customSecurity:!1,http:{basic:{username:"",password:""},bearer:{token:""}},
apiKey:{token:""},oAuth2:{username:"",password:"",clientId:"",scopes:[],
accessToken:"",state:""}}),Vd=e=>Object.assign(Zd,e),Wd=()=>({authentication:Zd,
setAuthentication:Vd}),Xd=wn({operation:{},globalSecurity:[]}),Yd=e=>{
Object.assign(Xd,{...Xd,operation:e})},Gd=e=>{Object.assign(Xd,{...Xd,
globalSecurity:e})},Kd=()=>({openApi:Xd,setOperation:Yd,setGlobalSecurity:Gd
}),Jd=wn({}),ep=Bn([]),tp=Bn(""),np=wn({name:"",url:"",type:"GET",path:"",
variables:[],headers:[],query:[],body:"",formData:[]}),rp=e=>{
Jd[e.responseId]=e,tp.value=e.responseId,ep.value.unshift(e.responseId)},op=e=>{
var t;tp.value=e
;const n=null==(t=Jd[e])?void 0:t.request,r=JSON.parse(JSON.stringify(n))
;r.body=JSON.stringify((null==n?void 0:n.body)??"",null,2),Object.assign(np,r)
},ip=Aa((()=>{var e
;return tp.value?null==(e=Jd[tp.value??""])?void 0:e.response:null})),ap=e=>{
Object.assign(np,e)},sp=()=>{tp.value=""},lp=Bn(!0);function cp(e,t){var n
;let r=[]
;if((null==e?void 0:e.servers)&&(null==e?void 0:e.servers.length)>0)r=e.servers;else if(null==e?void 0:e.host){
r=[{
url:`${(null==(n=e.schemes)?void 0:n[0])??"http"}://${e.host}${(null==e?void 0:e.basePath)??""}`
}]}else r=[{
url:(null==t?void 0:t.defaultServerUrl)?null==t?void 0:t.defaultServerUrl:"undefined"!=typeof window?window.location.origin:"/"
}]
;return((null==t?void 0:t.defaultServerUrl)||"undefined"!=typeof window)&&(r=r.map((e=>function(e,t){
var n
;if(!(null==(n=e.url)?void 0:n.match(/^(?!(https?|file):\/\/|{).+/)))return e
;return e.url=Ks((null==t?void 0:t.defaultServerUrl)?null==t?void 0:t.defaultServerUrl:"undefined"!=typeof window?window.location.origin:"",e.url),
e}(e,t)))),r.map((e=>{const t=e.variables??{}
;return([...(e.url??"").matchAll(/(?:\{+)\s*(\w+)\s*(?:\}+)/g)].map((e=>e[1].trim()))||[]).filter((e=>!t[e])).forEach((t=>{
void 0===e.variables&&(e.variables={}),e.variables[t]={default:""}})),e}))}
function up(e,t){
for(const[n,r]of Object.entries(e))null!==r&&"object"==typeof r?(t[n]??(t[n]=new r.__proto__.constructor),
up(r,t[n])):void 0!==r&&(t[n]=r);return t}function dp(e){return up(e??{},{info:{
title:"",description:"",termsOfService:"",version:"",license:{name:"",url:""},
contact:{email:""}},externalDocs:{description:"",url:""},servers:[],tags:[]})}
const pp=wn({selectedServer:null,servers:[],variables:{}}),hp=e=>{
Object.assign(pp,{...pp,...e})};function fp(e,t){
return Object.fromEntries(Object.entries(e).filter((([e])=>e in(t.variables??{}))))
}
const mp=({specification:e,defaultServerUrl:t,servers:n}={})=>(void 0!==(null==e?void 0:e.value)&&li((()=>[null==e?void 0:e.value,null==n?void 0:n.value,null==t?void 0:t.value]),(()=>{
const r=cp(void 0===(null==n?void 0:n.value)?(null==e?void 0:e.value)??dp():dp({
servers:n.value}),{defaultServerUrl:null==t?void 0:t.value
}),o=null==r?void 0:r[pp.selectedServer??0];var i;hp({servers:r,variables:{
...(i=(null==o?void 0:o.variables)??{},
Object.fromEntries(Object.entries(i??{}).map((([e,t])=>{var n,r,o
;return[e,(null==(n=t.default)?void 0:n.toString())??(null==(o=null==(r=t.enum)?void 0:r[0])?void 0:o.toString())??""]
})))),...fp(pp.variables,(null==r?void 0:r[pp.selectedServer??0])??{})}})}),{
deep:!0,immediate:!0}),{server:pp,setServer:hp
}),gp="/* basic theme */\n.light-mode {\n  --scalar-background-1: #fff;\n  --scalar-background-2: #f6f6f6;\n  --scalar-background-3: #e7e7e7;\n  --scalar-background-accent: #8ab4f81f;\n\n  --scalar-color-1: #2a2f45;\n  --scalar-color-2: #757575;\n  --scalar-color-3: #8e8e8e;\n\n  --scalar-color-accent: #0099ff;\n  --scalar-border-color: #dfdfdf;\n}\n.dark-mode {\n  --scalar-background-1: rgb(9 9 11);\n  --scalar-background-2: #0f0f0f;\n  --scalar-background-3: #1a1a1a;\n\n  --scalar-color-1: #e7e7e7;\n  --scalar-color-2: #a4a4a4;\n  --scalar-color-3: #797979;\n\n  --scalar-color-accent: #3ea6ff;\n  --scalar-background-accent: #3ea6ff1f;\n\n  --scalar-border-color: #2d2d2d;\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n  --scalar-sidebar-background-1: var(--scalar-background-1);\n  --scalar-sidebar-color-1: var(--scalar-color-1);\n  --scalar-sidebar-color-2: var(--scalar-color-2);\n  --scalar-sidebar-border-color: var(--scalar-border-color);\n\n  --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n  --scalar-sidebar-item-hover-color: currentColor;\n\n  --scalar-sidebar-item-active-background: var(--scalar-background-2);\n  --scalar-sidebar-color-active: var(--scalar-color-1);\n\n  --scalar-sidebar-search-background: transparent;\n  --scalar-sidebar-search-color: var(--scalar-color-3);\n  --scalar-sidebar-search-border-color: var(--scalar-border-color);\n}\n\n/* advanced */\n.light-mode {\n  --scalar-color-green: #069061;\n  --scalar-color-red: #ef0006;\n  --scalar-color-yellow: #edbe20;\n  --scalar-color-blue: #0082d0;\n  --scalar-color-orange: #fb892c;\n  --scalar-color-purple: #5203d1;\n\n  --scalar-button-1: rgba(0, 0, 0, 1);\n  --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n  --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n  --scalar-color-green: #00b648;\n  --scalar-color-red: #dc1b19;\n  --scalar-color-yellow: #ffc90d;\n  --scalar-color-blue: #4eb3ec;\n  --scalar-color-orange: #ff8d4d;\n  --scalar-color-purple: #b191f9;\n\n  --scalar-button-1: rgba(255, 255, 255, 1);\n  --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n  --scalar-button-1-color: black;\n}\n",vp=[["--theme-","--scalar-"],["--sidebar-","--scalar-sidebar-"]],bp=vp.map((([e])=>e))
;function Op(){if(typeof window>"u")return!1
;const e=document.createElement("div")
;e.setAttribute("style","width:30px;height:30px;overflow-y:scroll;"),
e.classList.add("scrollbar-test");const t=document.createElement("div")
;t.setAttribute("style","width:100%;height:40px"),
e.appendChild(t),document.body.appendChild(e)
;const n=30-e.firstChild.clientWidth;return document.body.removeChild(e),!!n}
const yp={default:"Default",alternate:"Alternate",moon:"Moon",purple:"Purple",
solarized:"Solarized",bluePlanet:"Blue Planet",saturn:"Saturn",
kepler:"Kepler-11e",mars:"Mars",deepSpace:"Deep Space",none:""},wp={
alternate:"/* basic theme */\n:root {\n  --scalar-text-decoration: underline;\n  --scalar-text-decoration-hover: underline;\n}\n.light-mode,\n.light-mode .dark-mode {\n  --scalar-background-1: #f9f9f9;\n  --scalar-background-2: #f1f1f1;\n  --scalar-background-3: #e7e7e7;\n  --scalar-background-card: #fff;\n\n  --scalar-color-1: #2a2f45;\n  --scalar-color-2: #757575;\n  --scalar-color-3: #8e8e8e;\n\n  --scalar-color-accent: var(--scalar-color-1);\n  --scalar-background-accent: var(--scalar-background-3);\n\n  --scalar-border-color: rgba(0, 0, 0, 0.1);\n}\n.dark-mode {\n  --scalar-background-1: #131313;\n  --scalar-background-2: #1d1d1d;\n  --scalar-background-3: #272727;\n  --scalar-background-card: #1d1d1d;\n\n  --scalar-color-1: rgba(255, 255, 255, 0.9);\n  --scalar-color-2: rgba(255, 255, 255, 0.62);\n  --scalar-color-3: rgba(255, 255, 255, 0.44);\n\n  --scalar-color-accent: var(--scalar-color-1);\n  --scalar-background-accent: var(--scalar-background-3);\n\n  --scalar-border-color: rgba(255, 255, 255, 0.1);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n  --scalar-sidebar-background-1: var(--scalar-background-1);\n  --scalar-sidebar-color-1: var(--scalar-color-1);\n  --scalar-sidebar-color-2: var(--scalar-color-2);\n  --scalar-sidebar-border-color: var(--scalar-border-color);\n\n  --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n  --scalar-sidebar-item-hover-color: currentColor;\n\n  --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n  --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n  --scalar-sidebar-search-background: transparent;\n  --scalar-sidebar-search-color: var(--scalar-color-3);\n  --scalar-sidebar-search-border-color: var(--scalar-border-color);\n\n  --scalar-sidebar-indent-border: var(--scalar-sidebar-border-color);\n  --scalar-sidebar-indent-border-hover: var(--scalar-sidebar-border-color);\n  --scalar-sidebar-indent-border-active: var(--scalar-sidebar-border-color);\n}\n/* advanced */\n.light-mode .dark-mode,\n.light-mode {\n  --scalar-color-green: #069061;\n  --scalar-color-red: #ef0006;\n  --scalar-color-yellow: #edbe20;\n  --scalar-color-blue: #0082d0;\n  --scalar-color-orange: #fb892c;\n  --scalar-color-purple: #5203d1;\n\n  --scalar-button-1: rgba(0, 0, 0, 1);\n  --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n  --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n  --scalar-color-green: #00b648;\n  --scalar-color-red: #dd2f2c;\n  --scalar-color-yellow: #ffc90d;\n  --scalar-color-blue: #4eb3ec;\n  --scalar-color-orange: #ff8d4d;\n  --scalar-color-purple: #b191f9;\n\n  --scalar-button-1: rgba(255, 255, 255, 1);\n  --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n  --scalar-button-1-color: black;\n}\n\n.scalar-api-client__item,\n.scalar-card,\n.dark-mode .dark-mode.scalar-card {\n  --scalar-background-1: var(--scalar-background-card);\n  --scalar-background-2: var(--scalar-background-1);\n  --scalar-background-3: var(--scalar-background-1);\n}\n.dark-mode .dark-mode.scalar-card {\n  --scalar-background-3: var(--scalar-background-3);\n}\n.t-doc__sidebar {\n  --scalar-color-green: var(--scalar-color-1);\n  --scalar-color-red: var(--scalar-color-1);\n  --scalar-color-yellow: var(--scalar-color-1);\n  --scalar-color-blue: var(--scalar-color-1);\n  --scalar-color-orange: var(--scalar-color-1);\n  --scalar-color-purple: var(--scalar-color-1);\n}\n",
default:gp,
moon:".light-mode {\n  color-scheme: light;\n  --scalar-color-1: #000000;\n  --scalar-color-2: #000000;\n  --scalar-color-3: #000000;\n  --scalar-color-accent: #645b0f;\n  --scalar-background-1: #ccc9b3;\n  --scalar-background-2: #c2bfaa;\n  --scalar-background-3: #b8b5a1;\n  --scalar-background-accent: #000000;\n\n  --scalar-border-color: rgba(0, 0, 0, 0.2);\n  --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);\n  --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n  --scalar-lifted-brightness: 1;\n  --scalar-backdrop-brightness: 1;\n\n  --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n  --scalar-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px,\n    rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, var(--scalar-border-color) 0px 0 0 1px;\n\n  --scalar-button-1: rgb(49 53 56);\n  --scalar-button-1-color: #fff;\n  --scalar-button-1-hover: rgb(28 31 33);\n\n  --scalar-color-red: #b91c1c;\n  --scalar-color-orange: #a16207;\n  --scalar-color-green: #047857;\n  --scalar-color-blue: #1d4ed8;\n  --scalar-color-orange: #c2410c;\n  --scalar-color-purple: #6d28d9;\n}\n\n.dark-mode {\n  color-scheme: dark;\n  --scalar-color-1: #fffef3;\n  --scalar-color-2: #fffef3;\n  --scalar-color-3: #fffef3;\n  --scalar-color-accent: #c3b531;\n  --scalar-background-1: #313332;\n  --scalar-background-2: #393b3a;\n  --scalar-background-3: #414342;\n  --scalar-background-accent: #fffef3;\n\n  --scalar-border-color: rgba(255, 255, 255, 0.16);\n  --scalar-scrollbar-color: rgba(255, 255, 255, 0.24);\n  --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.48);\n  --scalar-lifted-brightness: 1.45;\n  --scalar-backdrop-brightness: 0.5;\n\n  --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n  --scalar-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px,\n    rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, 0.1);\n\n  --scalar-button-1: #f6f6f6;\n  --scalar-button-1-color: #000;\n  --scalar-button-1-hover: #e7e7e7;\n\n  --scalar-color-green: #00b648;\n  --scalar-color-red: #dc1b19;\n  --scalar-color-yellow: #ffc90d;\n  --scalar-color-blue: #4eb3ec;\n  --scalar-color-orange: #ff8d4d;\n  --scalar-color-purple: #b191f9;\n}\n\n/* Sidebar */\n.light-mode .t-doc__sidebar {\n  --scalar-sidebar-background-1: var(--scalar-background-1);\n  --scalar-sidebar-item-hover-color: currentColor;\n  --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n  --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n  --scalar-sidebar-border-color: var(--scalar-border-color);\n  --scalar-sidebar-color-1: var(--scalar-color-1);\n  --scalar-sidebar-color-2: var(--scalar-color-2);\n  --scalar-sidebar-color-active: var(--scalar-sidebar-background-1);\n  --scalar-sidebar-search-background: var(--scalar-background-3);\n  --scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);\n  --scalar-sidebar-search--color: var(--scalar-color-3);\n}\n\n.dark-mode .sidebar {\n  --scalar-sidebar-background-1: var(--scalar-background-1);\n  --scalar-sidebar-item-hover-color: currentColor;\n  --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n  --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n  --scalar-sidebar-border-color: var(--scalar-border-color);\n  --scalar-sidebar-color-1: var(--scalar-color-1);\n  --scalar-sidebar-color-2: var(--scalar-color-2);\n  --scalar-sidebar-color-active: var(--scalar-sidebar-background-1);\n  --scalar-sidebar-search-background: var(--scalar-background-3);\n  --scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);\n  --scalar-sidebar-search--color: var(--scalar-color-3);\n}\n",
purple:"/* basic theme */\n.light-mode {\n  --scalar-background-1: #fff;\n  --scalar-background-2: #f5f6f8;\n  --scalar-background-3: #eceef1;\n\n  --scalar-color-1: #2a2f45;\n  --scalar-color-2: #757575;\n  --scalar-color-3: #8e8e8e;\n\n  --scalar-color-accent: #5469d4;\n  --scalar-background-accent: #5469d41f;\n\n  --scalar-border-color: rgba(215, 215, 206, 0.68);\n}\n.dark-mode {\n  --scalar-background-1: #15171c;\n  --scalar-background-2: #1c1e24;\n  --scalar-background-3: #22252b;\n\n  --scalar-color-1: #fafafa;\n  --scalar-color-2: #c9ced8;\n  --scalar-color-3: #8c99ad;\n\n  --scalar-color-accent: #5469d4;\n  --scalar-background-accent: #5469d41f;\n\n  --scalar-border-color: rgba(255, 255, 255, 0.18);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n  --scalar-sidebar-background-1: var(--scalar-background-1);\n  --scalar-sidebar-color-1: var(--scalar-color-1);\n  --scalar-sidebar-color-2: var(--scalar-color-2);\n  --scalar-sidebar-border-color: var(--scalar-border-color);\n\n  --scalar-sidebar-item-hover-color: currentColor;\n  --scalar-sidebar-item-hover-background: var(--scalar-background-3);\n\n  --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n  --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n  --scalar-sidebar-search-background: var(--scalar-background-1);\n  --scalar-sidebar-search-color: var(--scalar-color-3);\n  --scalar-sidebar-search-border-color: var(--scalar-border-color);\n}\n\n/* advanced */\n.light-mode {\n  --scalar-color-green: #17803d;\n  --scalar-color-red: #e10909;\n  --scalar-color-yellow: #edbe20;\n  --scalar-color-blue: #1763a6;\n  --scalar-color-orange: #e25b09;\n  --scalar-color-purple: #5c3993;\n\n  --scalar-button-1: rgba(0, 0, 0, 1);\n  --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n  --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n  --scalar-color-green: #30a159;\n  --scalar-color-red: #dc1b19;\n  --scalar-color-yellow: #eec644;\n  --scalar-color-blue: #2b7abf;\n  --scalar-color-orange: #f07528;\n  --scalar-color-purple: #7a59b1;\n\n  --scalar-button-1: rgba(255, 255, 255, 1);\n  --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n  --scalar-button-1-color: black;\n}\n",
solarized:".light-mode {\n  color-scheme: light;\n  --scalar-color-1: #584c27;\n  --scalar-color-2: #616161;\n  --scalar-color-3: #a89f84;\n  --scalar-color-accent: #b58900;\n  --scalar-background-1: #fdf6e3;\n  --scalar-background-2: #eee8d5;\n  --scalar-background-3: #ddd6c1;\n  --scalar-background-accent: #b589001f;\n\n  --scalar-border-color: #ded8c8;\n  --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);\n  --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n  --scalar-lifted-brightness: 1;\n  --scalar-backdrop-brightness: 1;\n\n  --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n  --scalar-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px,\n    rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;\n\n  --scalar-button-1: rgb(49 53 56);\n  --scalar-button-1-color: #fff;\n  --scalar-button-1-hover: rgb(28 31 33);\n\n  --scalar-color-red: #b91c1c;\n  --scalar-color-orange: #a16207;\n  --scalar-color-green: #047857;\n  --scalar-color-blue: #1d4ed8;\n  --scalar-color-orange: #c2410c;\n  --scalar-color-purple: #6d28d9;\n}\n\n.dark-mode {\n  color-scheme: dark;\n  --scalar-color-1: #fff;\n  --scalar-color-2: #cccccc;\n  --scalar-color-3: #6d8890;\n  --scalar-color-accent: #007acc;\n  --scalar-background-1: #00212b;\n  --scalar-background-2: #012b36;\n  --scalar-background-3: #004052;\n  --scalar-background-accent: #015a6f;\n\n  --scalar-border-color: rgba(255, 255, 255, 0.175);\n  --scalar-scrollbar-color: rgba(255, 255, 255, 0.24);\n  --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.48);\n  --scalar-lifted-brightness: 1.45;\n  --scalar-backdrop-brightness: 0.5;\n\n  --scalar-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1);\n  --scalar-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px,\n    rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, 0.1);\n\n  --scalar-button-1: #f6f6f6;\n  --scalar-button-1-color: #000;\n  --scalar-button-1-hover: #e7e7e7;\n\n  --scalar-color-green: #00b648;\n  --scalar-color-red: #dc1b19;\n  --scalar-color-yellow: #ffc90d;\n  --scalar-color-blue: #4eb3ec;\n  --scalar-color-orange: #ff8d4d;\n  --scalar-color-purple: #b191f9;\n}\n\n/* Sidebar */\n.light-mode .t-doc__sidebar {\n  --scalar-sidebar-background-1: var(--scalar-background-1);\n  --scalar-sidebar-item-hover-color: currentColor;\n  --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n  --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n  --scalar-sidebar-border-color: var(--scalar-border-color);\n  --scalar-sidebar-color-1: var(--scalar-color-1);\n  --scalar-sidebar-color-2: var(--scalar-color-2);\n  --scalar-sidebar-color-active: var(--scalar-color-accent);\n  --scalar-sidebar-search-background: var(--scalar-background-2);\n  --scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);\n  --scalar-sidebar-search--color: var(--scalar-color-3);\n}\n\n.dark-mode .sidebar {\n  --scalar-sidebar-background-1: var(--scalar-background-1);\n  --scalar-sidebar-item-hover-color: currentColor;\n  --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n  --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n  --scalar-sidebar-border-color: var(--scalar-border-color);\n  --scalar-sidebar-color-1: var(--scalar-color-1);\n  --scalar-sidebar-color-2: var(--scalar-color-2);\n  --scalar-sidebar-color-active: var(--scalar-sidebar-color-1);\n  --scalar-sidebar-search-background: var(--scalar-background-2);\n  --scalar-sidebar-search-border-color: var(--scalar-sidebar-search-background);\n  --scalar-sidebar-search--color: var(--scalar-color-3);\n}\n",
bluePlanet:"/* basic theme */\n:root {\n  --scalar-text-decoration: underline;\n  --scalar-text-decoration-hover: underline;\n}\n.light-mode {\n  --scalar-background-1: #f0f2f5;\n  --scalar-background-2: #eaecf0;\n  --scalar-background-3: #e0e2e6;\n  --scalar-border-color: rgb(213 213 213);\n\n  --scalar-color-1: rgb(9, 9, 11);\n  --scalar-color-2: rgb(113, 113, 122);\n  --scalar-color-3: rgba(25, 25, 28, 0.5);\n\n  --scalar-color-accent: var(--scalar-color-1);\n  --scalar-background-accent: #8ab4f81f;\n}\n.light-mode .scalar-card.dark-mode,\n.dark-mode {\n  --scalar-background-1: #000e23;\n  --scalar-background-2: #01132e;\n  --scalar-background-3: #03193b;\n  --scalar-border-color: rgba(255, 255, 255, 0.18);\n\n  --scalar-color-1: #fafafa;\n  --scalar-color-2: rgb(161, 161, 170);\n  --scalar-color-3: rgba(255, 255, 255, 0.533);\n\n  --scalar-color-accent: var(--scalar-color-1);\n  --scalar-background-accent: #8ab4f81f;\n\n  --scalar-code-language-color-supersede: var(--scalar-color-1);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n  --scalar-sidebar-background-1: var(--scalar-background-1);\n  --scalar-sidebar-color-1: var(--scalar-color-1);\n  --scalar-sidebar-color-2: var(--scalar-color-2);\n  --scalar-sidebar-border-color: var(--scalar-border-color);\n\n  --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n  --scalar-sidebar-item-hover-color: currentColor;\n\n  --scalar-sidebar-item-active-background: var(--scalar-background-3);\n  --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n  --scalar-sidebar-search-background: rgba(255, 255, 255, 0.1);\n  --scalar-sidebar-search-border-color: var(--scalar-border-color);\n  --scalar-sidebar-search-color: var(--scalar-color-3);\n  z-index: 1;\n}\n.light-mode .t-doc__sidebar {\n  --scalar-sidebar-search-background: white;\n}\n/* advanced */\n.light-mode {\n  --scalar-color-green: #069061;\n  --scalar-color-red: #ef0006;\n  --scalar-color-yellow: #edbe20;\n  --scalar-color-blue: #0082d0;\n  --scalar-color-orange: #fb892c;\n  --scalar-color-purple: #5203d1;\n\n  --scalar-button-1: rgba(0, 0, 0, 1);\n  --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n  --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n  --scalar-color-green: rgba(69, 255, 165, 0.823);\n  --scalar-color-red: #ff8589;\n  --scalar-color-yellow: #ffcc4d;\n  --scalar-color-blue: #6bc1fe;\n  --scalar-color-orange: #f98943;\n  --scalar-color-purple: #b191f9;\n\n  --scalar-button-1: rgba(255, 255, 255, 1);\n  --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n  --scalar-button-1-color: black;\n}\n/* Custom theme */\n/* Document header */\n@keyframes headerbackground {\n  from {\n    background: transparent;\n    backdrop-filter: none;\n  }\n  to {\n    background: var(--header-background-1);\n    backdrop-filter: blur(12px);\n  }\n}\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n  -webkit-text-fill-color: transparent;\n  background-image: linear-gradient(\n    to right bottom,\n    rgb(255, 255, 255) 30%,\n    rgba(255, 255, 255, 0.38)\n  );\n  -webkit-background-clip: text;\n  background-clip: text;\n}\n/* Hero Section Flare */\n.section-flare-item:nth-of-type(1) {\n  --c1: #ffffff;\n  --c2: #babfd8;\n  --c3: #2e8bb2;\n  --c4: #1a8593;\n  --c5: #0a143e;\n  --c6: #0a0f52;\n  --c7: #2341b8;\n\n  --solid: var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6),\n    var(--c7);\n  --solid-wrap: var(--solid), var(--c1);\n  --trans: var(--c1), transparent, var(--c2), transparent, var(--c3),\n    transparent, var(--c4), transparent, var(--c5), transparent, var(--c6),\n    transparent, var(--c7);\n  --trans-wrap: var(--trans), transparent, var(--c1);\n\n  background: radial-gradient(circle, var(--trans)),\n    conic-gradient(from 180deg, var(--trans-wrap)),\n    radial-gradient(circle, var(--trans)), conic-gradient(var(--solid-wrap));\n  width: 70vw;\n  height: 700px;\n  border-radius: 50%;\n  filter: blur(100px);\n  z-index: 0;\n  right: 0;\n  position: absolute;\n  transform: rotate(-45deg);\n  top: -300px;\n  opacity: 0.3;\n}\n.section-flare-item:nth-of-type(3) {\n  --star-color: #6b9acc;\n  --star-color2: #446b8d;\n  --star-color3: #3e5879;\n  background-image: radial-gradient(\n      2px 2px at 20px 30px,\n      var(--star-color2),\n      rgba(0, 0, 0, 0)\n    ),\n    radial-gradient(2px 2px at 40px 70px, var(--star-color), rgba(0, 0, 0, 0)),\n    radial-gradient(2px 2px at 50px 160px, var(--star-color3), rgba(0, 0, 0, 0)),\n    radial-gradient(2px 2px at 90px 40px, var(--star-color), rgba(0, 0, 0, 0)),\n    radial-gradient(2px 2px at 130px 80px, var(--star-color), rgba(0, 0, 0, 0)),\n    radial-gradient(\n      2px 2px at 160px 120px,\n      var(--star-color3),\n      rgba(0, 0, 0, 0)\n    );\n  background-repeat: repeat;\n  background-size: 200px 200px;\n  width: 100%;\n  height: 100%;\n  mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n}\n.section-flare {\n  top: -150px !important;\n  height: 100vh;\n  background: linear-gradient(#000, var(--scalar-background-1));\n  width: 100vw;\n  overflow-x: hidden;\n}\n.light-mode .section-flare {\n  display: none;\n}\n.light-mode .scalar-card {\n  --scalar-background-1: #fff;\n  --scalar-background-2: #fff;\n  --scalar-background-3: #fff;\n}\n",
deepSpace:"/* basic theme */\n:root {\n  --scalar-text-decoration: underline;\n  --scalar-text-decoration-hover: underline;\n}\n.light-mode {\n  --scalar-color-1: rgb(9, 9, 11);\n  --scalar-color-2: rgb(113, 113, 122);\n  --scalar-color-3: rgba(25, 25, 28, 0.5);\n  --scalar-color-accent: var(--scalar-color-1);\n\n  --scalar-background-1: #fff;\n  --scalar-background-2: #f4f4f5;\n  --scalar-background-3: #e3e3e6;\n  --scalar-background-accent: #8ab4f81f;\n\n  --scalar-border-color: rgb(228, 228, 231);\n  --scalar-code-language-color-supersede: var(--scalar-color-1);\n}\n.dark-mode {\n  --scalar-color-1: #fafafa;\n  --scalar-color-2: rgb(161, 161, 170);\n  --scalar-color-3: rgba(255, 255, 255, 0.533);\n  --scalar-color-accent: var(--scalar-color-1);\n\n  --scalar-background-1: #09090b;\n  --scalar-background-2: #18181b;\n  --scalar-background-3: #2c2c30;\n  --scalar-background-accent: #8ab4f81f;\n\n  --scalar-border-color: rgba(255, 255, 255, 0.16);\n  --scalar-code-language-color-supersede: var(--scalar-color-1);\n}\n\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n  --scalar-sidebar-background-1: var(--scalar-background-1);\n  --scalar-sidebar-color-1: var(--scalar-color-1);\n  --scalar-sidebar-color-2: var(--scalar-color-2);\n  --scalar-sidebar-border-color: var(--scalar-border-color);\n\n  --scalar-sidebar-item-hover-color: currentColor;\n  --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n\n  --scalar-sidebar-item-active-background: var(--scalar-background-3);\n  --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n  --scalar-sidebar-search-background: transparent;\n  --scalar-sidebar-search-border-color: var(--scalar-border-color);\n  --scalar-sidebar-search-color: var(--scalar-color-3);\n}\n.light-mode .t-doc__sidebar {\n  --scalar-sidebar-item-active-background: var(--scalar-background-2);\n}\n/* advanced */\n.light-mode {\n  --scalar-color-green: #069061;\n  --scalar-color-red: #ef0006;\n  --scalar-color-yellow: #edbe20;\n  --scalar-color-blue: #0082d0;\n  --scalar-color-orange: #fb892c;\n  --scalar-color-purple: #5203d1;\n\n  --scalar-button-1: rgba(0, 0, 0, 1);\n  --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n  --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n  --scalar-color-green: rgba(69, 255, 165, 0.823);\n  --scalar-color-red: #ff8589;\n  --scalar-color-yellow: #ffcc4d;\n  --scalar-color-blue: #6bc1fe;\n  --scalar-color-orange: #f98943;\n  --scalar-color-purple: #b191f9;\n\n  --scalar-button-1: rgba(255, 255, 255, 1);\n  --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n  --scalar-button-1-color: black;\n}\n/* Custom theme */\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n  -webkit-text-fill-color: transparent;\n  background-image: linear-gradient(\n    to right bottom,\n    rgb(255, 255, 255) 30%,\n    rgba(255, 255, 255, 0.38)\n  );\n  -webkit-background-clip: text;\n  background-clip: text;\n}\n.examples .scalar-card-footer {\n  --scalar-background-3: transparent;\n  padding-top: 0;\n}\n/* Hero section flare */\n.section-flare {\n  width: 100vw;\n  height: 550px;\n  position: relative;\n}\n.section-flare-item:nth-of-type(1) {\n  position: absolute;\n  width: 100vw;\n  height: 550px;\n  --stripesDark: repeating-linear-gradient(\n    100deg,\n    #000 0%,\n    #000 7%,\n    transparent 10%,\n    transparent 12%,\n    #000 16%\n  );\n  --rainbow: repeating-linear-gradient(\n    100deg,\n    #fff 10%,\n    #fff 16%,\n    #fff 22%,\n    #fff 30%\n  );\n  background-image: var(--stripesDark), var(--rainbow);\n  background-size: 300%, 200%;\n  background-position:\n    50% 50%,\n    50% 50%;\n  filter: invert(100%);\n  -webkit-mask-image: radial-gradient(\n    ellipse at 100% 0%,\n    black 40%,\n    transparent 70%\n  );\n  mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n  pointer-events: none;\n  opacity: 0.07;\n}\n.dark-mode .section-flare-item:nth-of-type(1) {\n  background-image: var(--stripesDark), var(--rainbow);\n  filter: opacity(50%) saturate(200%);\n  opacity: 0.25;\n  height: 350px;\n}\n.section-flare-item:nth-of-type(1):after {\n  content: '';\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  background-image: var(--stripesDark), var(--rainbow);\n  background-size: 200%, 100%;\n  background-attachment: fixed;\n  mix-blend-mode: difference;\n}\n.dark-mode .section-flare:after {\n  background-image: var(--stripesDark), var(--rainbow);\n}\n.section-flare-item:nth-of-type(2) {\n  --star-color: #fff;\n  --star-color2: #fff;\n  --star-color3: #fff;\n  width: 100%;\n  height: 100%;\n  position: absolute;\n  background-image: radial-gradient(\n      2px 2px at 20px 30px,\n      var(--star-color2),\n      rgba(0, 0, 0, 0)\n    ),\n    radial-gradient(2px 2px at 40px 70px, var(--star-color), rgba(0, 0, 0, 0)),\n    radial-gradient(2px 2px at 50px 160px, var(--star-color3), rgba(0, 0, 0, 0)),\n    radial-gradient(2px 2px at 90px 40px, var(--star-color), rgba(0, 0, 0, 0)),\n    radial-gradient(2px 2px at 130px 80px, var(--star-color), rgba(0, 0, 0, 0)),\n    radial-gradient(\n      2px 2px at 160px 120px,\n      var(--star-color3),\n      rgba(0, 0, 0, 0)\n    );\n  background-repeat: repeat;\n  background-size: 200px 200px;\n  mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n  opacity: 0.2;\n}\n",
saturn:"/* basic theme */\n.light-mode {\n  --scalar-background-1: #f3f3ee;\n  --scalar-background-2: #e8e8e3;\n  --scalar-background-3: #e4e4df;\n  --scalar-border-color: rgba(215, 215, 206, 0.85);\n\n  --scalar-color-1: #2a2f45;\n  --scalar-color-2: #757575;\n  --scalar-color-3: #8e8e8e;\n\n  --scalar-color-accent: #1763a6;\n  --scalar-background-accent: #1f648e1f;\n}\n.dark-mode {\n  --scalar-background-1: #09090b;\n  --scalar-background-2: #18181b;\n  --scalar-background-3: #2c2c30;\n  --scalar-border-color: rgba(255, 255, 255, 0.17);\n\n  --scalar-color-1: #fafafa;\n  --scalar-color-2: rgb(161, 161, 170);\n  --scalar-color-3: rgba(255, 255, 255, 0.533);\n\n  --scalar-color-accent: #4eb3ec;\n  --scalar-background-accent: #8ab4f81f;\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n  --scalar-sidebar-background-1: var(--scalar-background-1);\n  --scalar-sidebar-color-1: var(--scalar-color-1);\n  --scalar-sidebar-color-2: var(--scalar-color-2);\n  --scalar-sidebar-border-color: var(--scalar-border-color);\n\n  --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n  --scalar-sidebar-item-hover-color: currentColor;\n\n  --scalar-sidebar-item-active-background: var(--scalar-background-3);\n  --scalar-sidebar-color-active: var(--scalar-color-1);\n\n  --scalar-sidebar-search-background: var(--scalar-background-1);\n  --scalar-sidebar-search-border-color: var(--scalar-border-color);\n  --scalar-sidebar-search-color: var(--scalar-color-3);\n}\n\n/* advanced */\n.light-mode {\n  --scalar-color-green: #17803d;\n  --scalar-color-red: #e10909;\n  --scalar-color-yellow: #edbe20;\n  --scalar-color-blue: #1763a6;\n  --scalar-color-orange: #e25b09;\n  --scalar-color-purple: #5c3993;\n\n  --scalar-button-1: rgba(0, 0, 0, 1);\n  --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n  --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n  --scalar-color-green: #30a159;\n  --scalar-color-red: #dc1b19;\n  --scalar-color-yellow: #eec644;\n  --scalar-color-blue: #2b7abf;\n  --scalar-color-orange: #f07528;\n  --scalar-color-purple: #7a59b1;\n\n  --scalar-button-1: rgba(255, 255, 255, 1);\n  --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n  --scalar-button-1-color: black;\n}\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n  -webkit-text-fill-color: transparent;\n  background-image: linear-gradient(\n    to right bottom,\n    rgb(255, 255, 255) 30%,\n    rgba(255, 255, 255, 0.38)\n  );\n  -webkit-background-clip: text;\n  background-clip: text;\n}\n",
kepler:"/* basic theme */\n.light-mode {\n  --scalar-color-1: #2a2f45;\n  --scalar-color-2: #757575;\n  --scalar-color-3: #8e8e8e;\n  --scalar-color-accent: #7070ff;\n\n  --scalar-background-1: #fff;\n  --scalar-background-2: #f6f6f6;\n  --scalar-background-3: #e7e7e7;\n  --scalar-background-accent: #7070ff1f;\n\n  --scalar-border-color: rgba(0, 0, 0, 0.1);\n\n  --scalar-code-language-color-supersede: var(--scalar-color-3);\n}\n.dark-mode {\n  --scalar-color-1: #f7f8f8;\n  --scalar-color-2: rgb(180, 188, 208);\n  --scalar-color-3: #b4bcd099;\n  --scalar-color-accent: #828fff;\n\n  --scalar-background-1: #000212;\n  --scalar-background-2: #0d0f1e;\n  --scalar-background-3: #232533;\n  --scalar-background-accent: #8ab4f81f;\n\n  --scalar-border-color: #313245;\n  --scalar-code-language-color-supersede: var(--scalar-color-3);\n}\n/* Document Sidebar */\n.light-mode .t-doc__sidebar {\n  --scalar-sidebar-background-1: var(--scalar-background-1);\n  --scalar-sidebar-item-hover-color: currentColor;\n  --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n  --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n  --scalar-sidebar-border-color: var(--scalar-border-color);\n  --scalar-sidebar-color-1: var(--scalar-color-1);\n  --scalar-sidebar-color-2: var(--scalar-color-2);\n  --scalar-sidebar-color-active: var(--scalar-color-accent);\n  --scalar-sidebar-search-background: rgba(0, 0, 0, 0.05);\n  --scalar-sidebar-search-border-color: 1px solid rgba(0, 0, 0, 0.05);\n  --scalar-sidebar-search-color: var(--scalar-color-3);\n  --scalar-background-2: rgba(0, 0, 0, 0.03);\n}\n.dark-mode .t-doc__sidebar {\n  --scalar-sidebar-background-1: var(--scalar-background-1);\n  --scalar-sidebar-item-hover-color: currentColor;\n  --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n  --scalar-sidebar-item-active-background: rgba(255, 255, 255, 0.1);\n  --scalar-sidebar-border-color: var(--scalar-border-color);\n  --scalar-sidebar-color-1: var(--scalar-color-1);\n  --scalar-sidebar-color-2: var(--scalar-color-2);\n  --scalar-sidebar-color-active: var(--scalar-color-accent);\n  --scalar-sidebar-search-background: rgba(255, 255, 255, 0.1);\n  --scalar-sidebar-search-border-color: 1px solid rgba(255, 255, 255, 0.05);\n  --scalar-sidebar-search-color: var(--scalar-color-3);\n}\n/* advanced */\n.light-mode {\n  --scalar-color-green: #069061;\n  --scalar-color-red: #ef0006;\n  --scalar-color-yellow: #edbe20;\n  --scalar-color-blue: #0082d0;\n  --scalar-color-orange: #fb892c;\n  --scalar-color-purple: #5203d1;\n\n  --scalar-button-1: rgba(0, 0, 0, 1);\n  --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n  --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n  --scalar-color-green: #00b648;\n  --scalar-color-red: #dc1b19;\n  --scalar-color-yellow: #ffc90d;\n  --scalar-color-blue: #4eb3ec;\n  --scalar-color-orange: #ff8d4d;\n  --scalar-color-purple: #b191f9;\n\n  --scalar-button-1: rgba(255, 255, 255, 1);\n  --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n  --scalar-button-1-color: black;\n}\n/* Custom Theme */\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n  -webkit-text-fill-color: transparent;\n  background-image: linear-gradient(\n    to right bottom,\n    rgb(255, 255, 255) 30%,\n    rgba(255, 255, 255, 0.38)\n  );\n  -webkit-background-clip: text;\n  background-clip: text;\n}\n.sidebar-search {\n  backdrop-filter: blur(12px);\n}\n@keyframes headerbackground {\n  from {\n    background: transparent;\n    backdrop-filter: none;\n  }\n  to {\n    background: var(--header-background-1);\n    backdrop-filter: blur(12px);\n  }\n}\n.dark-mode .scalar-card {\n  background: rgba(255, 255, 255, 0.05) !important;\n}\n.dark-mode .scalar-card * {\n  --scalar-background-2: transparent !important;\n  --scalar-background-1: transparent !important;\n}\n.light-mode .dark-mode.scalar-card *,\n.light-mode .dark-mode.scalar-card {\n  --scalar-background-1: #0d0f1e !important;\n  --scalar-background-2: #0d0f1e !important;\n  --scalar-background-3: #191b29 !important;\n}\n.light-mode .dark-mode.scalar-card {\n  background: #191b29 !important;\n}\n.badge {\n  box-shadow: 0 0 0 1px var(--scalar-border-color);\n  margin-right: 6px;\n}\n\n.table-row.required-parameter .table-row-item:nth-of-type(2):after {\n  background: transparent;\n  box-shadow: none;\n}\n/* Hero Section Flare */\n.section-flare {\n  width: 100vw;\n  background: radial-gradient(\n    ellipse 80% 50% at 50% -20%,\n    rgba(120, 119, 198, 0.3),\n    transparent\n  );\n  height: 100vh;\n}\n",
mars:"/* basic theme */\n:root {\n  --scalar-text-decoration: underline;\n  --scalar-text-decoration-hover: underline;\n}\n.light-mode {\n  --scalar-background-1: #f9f6f0;\n  --scalar-background-2: #f2efe8;\n  --scalar-background-3: #e9e7e2;\n  --scalar-border-color: rgba(203, 165, 156, 0.6);\n\n  --scalar-color-1: #c75549;\n  --scalar-color-2: #c75549;\n  --scalar-color-3: #c75549;\n\n  --scalar-color-accent: #c75549;\n  --scalar-background-accent: #dcbfa81f;\n\n  --scalar-code-language-color-supersede: var(--scalar-color-1);\n}\n.dark-mode {\n  --scalar-background-1: #140507;\n  --scalar-background-2: #20090c;\n  --scalar-background-3: #321116;\n  --scalar-border-color: rgba(255, 255, 255, 0.17);\n\n  --scalar-color-1: rgba(255, 255, 255, 0.9);\n  --scalar-color-2: rgba(255, 255, 255, 0.62);\n  --scalar-color-3: rgba(255, 255, 255, 0.44);\n\n  --scalar-color-accent: rgba(255, 255, 255, 0.9);\n  --scalar-background-accent: #441313;\n\n  --scalar-code-language-color-supersede: var(--scalar-color-1);\n}\n\n/* Document Sidebar */\n.light-mode .t-doc__sidebar,\n.dark-mode .t-doc__sidebar {\n  --scalar-sidebar-background-1: var(--scalar-background-1);\n  --scalar-sidebar-color-1: var(--scalar-color-1);\n  --scalar-sidebar-color-2: var(--scalar-color-2);\n  --scalar-sidebar-border-color: var(--scalar-border-color);\n\n  --scalar-sidebar-item-hover-color: currentColor;\n  --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n\n  --scalar-sidebar-item-active-background: var(--scalar-background-3);\n  --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n  --scalar-sidebar-search-background: rgba(255, 255, 255, 0.1);\n  --scalar-sidebar-search-color: var(--scalar-color-3);\n  --scalar-sidebar-search-border-color: var(--scalar-border-color);\n  z-index: 1;\n}\n/* advanced */\n.light-mode {\n  --scalar-color-green: #09533a;\n  --scalar-color-red: #aa181d;\n  --scalar-color-yellow: #ab8d2b;\n  --scalar-color-blue: #19689a;\n  --scalar-color-orange: #b26c34;\n  --scalar-color-purple: #4c2191;\n\n  --scalar-button-1: rgba(0, 0, 0, 1);\n  --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n  --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n}\n.dark-mode {\n  --scalar-color-green: rgba(69, 255, 165, 0.823);\n  --scalar-color-red: #ff8589;\n  --scalar-color-yellow: #ffcc4d;\n  --scalar-color-blue: #6bc1fe;\n  --scalar-color-orange: #f98943;\n  --scalar-color-purple: #b191f9;\n\n  --scalar-button-1: rgba(255, 255, 255, 1);\n  --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n  --scalar-button-1-color: black;\n}\n/* Custom Theme */\n.dark-mode h2.t-editor__heading,\n.dark-mode .t-editor__page-title h1,\n.dark-mode h1.section-header,\n.dark-mode .markdown h1,\n.dark-mode .markdown h2,\n.dark-mode .markdown h3,\n.dark-mode .markdown h4,\n.dark-mode .markdown h5,\n.dark-mode .markdown h6 {\n  -webkit-text-fill-color: transparent;\n  background-image: linear-gradient(\n    to right bottom,\n    rgb(255, 255, 255) 30%,\n    rgba(255, 255, 255, 0.38)\n  );\n  -webkit-background-clip: text;\n  background-clip: text;\n}\n.light-mode .t-doc__sidebar {\n  --scalar-sidebar-search-background: white;\n}\n.examples .scalar-card-footer {\n  --scalar-background-3: transparent;\n  padding-top: 0;\n}\n/* Hero section flare */\n.section-flare {\n  overflow-x: hidden;\n  height: 100vh;\n  left: initial;\n}\n.section-flare-item:nth-of-type(1) {\n  background: #d25019;\n  position: relative;\n  top: -150px;\n  right: -400px;\n  width: 80vw;\n  height: 500px;\n  margin-top: -150px;\n  border-radius: 50%;\n  filter: blur(100px);\n  z-index: 0;\n}\n.light-mode .section-flare {\n  display: none;\n}\n"
},xp=e=>"none"===e?"":wp[e||"default"]??gp;function kp(e){
return!!ft()&&(mt(e),!0)}function Sp(e){return"function"==typeof e?e():Fn(e)}
const _p="undefined"!=typeof window&&"undefined"!=typeof document
;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope)
;const Ep=e=>null!=e,Tp=Object.prototype.toString,Cp=e=>"[object Object]"===Tp.call(e),Ap=()=>{}
;function Pp(e,t=200,n={}){return function(e,t){return function(...n){
return new Promise(((r,o)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,
thisArg:this,args:n})).then(r).catch(o)}))}}(function(e,t={}){let n,r,o=Ap
;const i=e=>{clearTimeout(e),o(),o=Ap};return a=>{const s=Sp(e),l=Sp(t.maxWait)
;return n&&i(n),
s<=0||void 0!==l&&l<=0?(r&&(i(r),r=null),Promise.resolve(a())):new Promise(((e,c)=>{
o=t.rejectOnCancel?c:e,l&&!r&&(r=setTimeout((()=>{n&&i(n),r=null,e(a())
}),l)),n=setTimeout((()=>{r&&i(r),r=null,e(a())}),s)}))}}(t,n),e)}
function Dp(e,t,n){return li(e,((e,n,r)=>{e&&t(e,n,r)}),{...n,once:!1})}
function $p(e){var t;const n=Sp(e);return null!=(t=null==n?void 0:n.$el)?t:n}
const Rp=_p?window:void 0,Np=_p?window.document:void 0;function Ip(...e){
let t,n,r,o
;if("string"==typeof e[0]||Array.isArray(e[0])?([n,r,o]=e,t=Rp):[t,n,r,o]=e,
!t)return Ap;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r])
;const i=[],a=()=>{i.forEach((e=>e())),i.length=0
},s=li((()=>[$p(t),Sp(o)]),(([e,t])=>{if(a(),!e)return;const o=Cp(t)?{...t}:t
;i.push(...n.flatMap((t=>r.map((n=>((e,t,n,r)=>(e.addEventListener(t,n,r),
()=>e.removeEventListener(t,n,r)))(e,t,n,o))))))}),{immediate:!0,flush:"post"
}),l=()=>{s(),a()};return kp(l),l}function Mp(e){const t=function(){
const e=Bn(!1),t=ma();return t&&Ur((()=>{e.value=!0}),t),e}()
;return Aa((()=>(t.value,Boolean(e()))))}function Lp(e,t={}){
const{window:n=Rp}=t,r=Mp((()=>n&&"matchMedia"in n&&"function"==typeof n.matchMedia))
;let o;const i=Bn(!1),a=e=>{i.value=e.matches},s=()=>{
o&&("removeEventListener"in o?o.removeEventListener("change",a):o.removeListener(a))
},l=ai((()=>{
r.value&&(s(),o=n.matchMedia(Sp(e)),"addEventListener"in o?o.addEventListener("change",a):o.addListener(a),
i.value=o.matches)}));return kp((()=>{l(),s(),o=void 0})),i}const Bp=new Map
;function Qp(e){const t=ft();function n(n){var o;const i=Bp.get(e)||new Set
;i.add(n),Bp.set(e,i);const a=()=>r(n)
;return null==(o=null==t?void 0:t.cleanups)||o.push(a),a}function r(t){
const n=Bp.get(e);n&&(n.delete(t),n.size||o())}function o(){Bp.delete(e)}return{
on:n,once:function(e){return n((function t(...n){r(t),e(...n)}))},off:r,
emit:function(t,n){var r;null==(r=Bp.get(e))||r.forEach((e=>e(t,n)))},reset:o}}
function jp(e=null,t={}){
const{baseUrl:n="",rel:r="icon",document:o=Np}=t,i=function(...e){
if(1!==e.length)return Gn(...e);const t=e[0]
;return"function"==typeof t?kn(Vn((()=>({get:t,set:Ap})))):Bn(t)}(e)
;return li(i,((e,t)=>{"string"==typeof e&&e!==t&&(e=>{
const t=null==o?void 0:o.head.querySelectorAll(`link[rel*="${r}"]`)
;if(t&&0!==t.length)null==t||t.forEach((t=>t.href=`${n}${e}`));else{
const t=null==o?void 0:o.createElement("link")
;t&&(t.rel=r,t.href=`${n}${e}`,t.type=`image/${e.split(".").pop()}`,
null==o||o.head.append(t))}})(e)}),{immediate:!0}),i}const Up={ctrl:"control",
command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",
left:"arrowleft",right:"arrowright"};function Fp(e={}){
const{reactive:t=!1,target:n=Rp,aliasMap:r=Up,passive:o=!0,onEventFired:i=Ap}=e,a=wn(new Set),s={
toJSON:()=>({}),current:a},l=t?wn(s):s,c=new Set,u=new Set;function d(e,n){
e in l&&(t?l[e]=n:l[e].value=n)}function p(){a.clear();for(const e of u)d(e,!1)}
function h(e,t){var n,r
;const o=null==(n=e.key)?void 0:n.toLowerCase(),i=[null==(r=e.code)?void 0:r.toLowerCase(),o].filter(Boolean)
;o&&(t?a.add(o):a.delete(o));for(const a of i)u.add(a),d(a,t)
;"meta"!==o||t?"function"==typeof e.getModifierState&&e.getModifierState("Meta")&&t&&[...a,...i].forEach((e=>c.add(e))):(c.forEach((e=>{
a.delete(e),d(e,!1)})),c.clear())}Ip(n,"keydown",(e=>(h(e,!0),i(e))),{passive:o
}),Ip(n,"keyup",(e=>(h(e,!1),i(e))),{passive:o}),Ip("blur",p,{passive:!0
}),Ip("focus",p,{passive:!0});const f=new Proxy(l,{get(e,n,o){
if("string"!=typeof n)return Reflect.get(e,n,o)
;if((n=n.toLowerCase())in r&&(n=r[n]),!(n in l))if(/[+_-]/.test(n)){
const e=n.split(/[+_-]/g).map((e=>e.trim()))
;l[n]=Aa((()=>e.every((e=>Sp(f[e])))))}else l[n]=Bn(!1)
;const i=Reflect.get(e,n,o);return t?Sp(i):i}});return f}
var qp=Object.defineProperty,zp=(e,t,n)=>(((e,t,n)=>{t in e?qp(e,t,{
enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n
})(e,"symbol"!=typeof t?t+"":t,n),n);!function(e){if(typeof document>"u")return
;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style")
;n.type="text/css",
t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))
}("[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:16px;width:16px;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;transform:translateZ(0)}[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;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[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%;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]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:'';position:absolute;left:0;right:0;height:100%;z-index:-1}[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);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{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}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}")
;let Hp=0;const Zp=new class{constructor(){
zp(this,"subscribers"),zp(this,"toasts"),
zp(this,"subscribe",(e=>(this.subscribers.push(e),()=>{
const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)
}))),zp(this,"publish",(e=>{this.subscribers.forEach((t=>t(e)))
})),zp(this,"addToast",(e=>{this.publish(e),this.toasts=[...this.toasts,e]
})),zp(this,"create",(e=>{var t
;const{message:n,...r}=e,o="number"==typeof e.id||e.id&&(null==(t=e.id)?void 0:t.length)>0?e.id:Hp++,i=this.toasts.find((e=>e.id===o)),a=void 0===e.dismissible||e.dismissible
;return i?this.toasts=this.toasts.map((t=>t.id===o?(this.publish({...t,...e,
id:o,title:n}),{...t,...e,id:o,dismissible:a,title:n}):t)):this.addToast({
title:n,...r,dismissible:a,id:o}),o
})),zp(this,"dismiss",(e=>(e||this.toasts.forEach((e=>{
this.subscribers.forEach((t=>t({id:e.id,dismiss:!0})))
})),this.subscribers.forEach((t=>t({id:e,dismiss:!0
}))),e))),zp(this,"message",((e,t)=>this.create({...t,message:e,type:"default"
}))),zp(this,"error",((e,t)=>this.create({...t,type:"error",message:e
}))),zp(this,"success",((e,t)=>this.create({...t,type:"success",message:e
}))),zp(this,"info",((e,t)=>this.create({...t,type:"info",message:e
}))),zp(this,"warning",((e,t)=>this.create({...t,type:"warning",message:e
}))),zp(this,"loading",((e,t)=>this.create({...t,type:"loading",message:e
}))),zp(this,"promise",((e,t)=>{if(!t)return;let n
;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",
message:t.loading,
description:"function"!=typeof t.description?t.description:void 0}))
;const r=e instanceof Promise?e:e();let o=void 0!==n;return r.then((e=>{
if(e&&"boolean"==typeof e.ok&&!e.ok){o=!1
;const e="function"==typeof t.error?t.error(`HTTP error! status: ${response.status}`):t.error,r="function"==typeof t.description?t.description(`HTTP error! status: ${response.status}`):t.description
;this.create({id:n,type:"error",message:e,description:r})
}else if(void 0!==t.success){o=!1
;const r="function"==typeof t.success?t.success(e):t.success,i="function"==typeof t.description?t.description(e):t.description
;this.create({id:n,type:"success",message:r,description:i})}})).catch((e=>{
if(void 0!==t.error){o=!1
;const r="function"==typeof t.error?t.error(e):t.error,i="function"==typeof t.description?t.description(e):t.description
;this.create({id:n,type:"error",message:r,description:i})}})).finally((()=>{
var e;o&&(this.dismiss(n),n=void 0),null==(e=t.finally)||e.call(t)})),n
})),zp(this,"custom",((e,t)=>{const n=(null==t?void 0:t.id)||Hp++
;return this.publish({component:e,id:n,...t}),n
})),this.subscribers=[],this.toasts=[]}},Vp=(e,t)=>{
const n=(null==t?void 0:t.id)||Hp++;return Zp.create({message:e,id:n,
type:"default",...t}),n},Wp=Object.assign(Vp,{success:Zp.success,info:Zp.info,
warning:Zp.warning,error:Zp.error,custom:Zp.custom,message:Zp.message,
promise:Zp.promise,dismiss:Zp.dismiss,loading:Zp.loading}),Xp=(e,t)=>{
const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Yp={},Gp={
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"},Kp=[ea("line",{x1:"18",y1:"6",x2:"6",y2:"18"
},null,-1),ea("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)]
;const Jp=Xp(Yp,[["render",function(e,t){return zi(),Wi("svg",Gp,Kp)
}]]),eh=["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-dismissible","data-type","data-invert","data-swipe-out","data-expanded"],th=["aria-label","data-disabled"],nh={
key:0,"data-icon":""},rh={"data-content":""},oh=eo({__name:"Toast",props:{
toast:{},toasts:{},index:{},expanded:{type:Boolean},invert:{type:Boolean},
heights:{},gap:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},
closeButton:{type:Boolean},interacting:{type:Boolean},duration:{},
descriptionClass:{},style:{},cancelButtonStyle:{},actionButtonStyle:{},
unstyled:{type:Boolean},loadingIcon:{},class:{},classes:{},icons:{},
closeButtonAriaLabel:{},pauseWhenPageIsHidden:{type:Boolean},cn:{type:Function}
},emits:["update:heights","removeToast"],setup(e,{emit:t}){
const n=t,r=e,o=Bn(!1),i=Bn(!1),a=Bn(!1),s=Bn(!1),l=Bn(0),c=Bn(0),u=Bn(null),d=Bn(null),p=Aa((()=>0===r.index)),h=Aa((()=>r.index+1<=r.visibleToasts)),f=Aa((()=>r.toast.type)),m=Aa((()=>!1!==r.toast.dismissible)),g=Aa((()=>{
var e,t,n,o,i,a,s
;return r.cn(null==(e=r.classes)?void 0:e.toast,null==(n=null==(t=r.toast)?void 0:t.classes)?void 0:n.toast,null==(o=r.classes)?void 0:o.default,null==(i=r.classes)?void 0:i[r.toast.type||"default"],null==(s=null==(a=r.toast)?void 0:a.classes)?void 0:s[r.toast.type||"default"])
})),v=r.toast.style||{},b=Aa((()=>r.heights.findIndex((e=>e.toastId===r.toast.id))||0)),O=Aa((()=>r.toast.closeButton??r.closeButton)),y=Aa((()=>r.toast.duration||r.duration||4e3)),w=Bn(0),x=Bn(0),k=Bn(y.value),S=Bn(0),_=Bn(null),E=Aa((()=>r.position.split("-"))),T=Aa((()=>E.value[0])),C=Aa((()=>E.value[1])),A="string"!=typeof r.toast.title,P="string"!=typeof r.toast.description,D=Aa((()=>r.heights.reduce(((e,t,n)=>n>=b.value?e:e+t.height),0))),$=(()=>{
const e=Bn(!1);return ai((()=>{const t=()=>{e.value=document.hidden}
;return document.addEventListener("visibilitychange",t),
()=>window.removeEventListener("visibilitychange",t)})),{isDocumentHidden:e}
})(),R=Aa((()=>r.toast.invert||r.invert)),N=Aa((()=>"loading"===f.value))
;Ur((()=>{if(!o.value)return;const e=d.value,t=null==e?void 0:e.style.height
;e.style.height="auto";const i=e.getBoundingClientRect().height;let a
;e.style.height=t,
c.value=i,a=r.heights.find((e=>e.toastId===r.toast.id))?r.heights.map((e=>e.toastId===r.toast.id?{
...e,height:i}:e)):[{toastId:r.toast.id,height:i,position:r.toast.position
},...r.heights],n("update:heights",a)}));const I=()=>{i.value=!0,l.value=x.value
;const e=r.heights.filter((e=>e.toastId!==r.toast.id))
;n("update:heights",e),setTimeout((()=>{n("removeToast",r.toast)}),200)},M=()=>{
var e,t
;N.value||!m.value||(I(),null==(t=(e=r.toast).onDismiss)||t.call(e,r.toast))
},L=e=>{
N.value||!m.value||(u.value=new Date,l.value=x.value,e.target.setPointerCapture(e.pointerId),
"BUTTON"!==e.target.tagName&&(a.value=!0,_.value={x:e.clientX,y:e.clientY}))
},B=e=>{var t,n,o,i;if(s.value)return;_.value=null
;const c=Number((null==(t=d.value)?void 0:t.style.getPropertyValue("--swipe-amount").replace("px",""))||0),p=(new Date).getTime()-u.value.getTime(),h=Math.abs(c)/p
;if(Math.abs(c)>=20||h>.11)return l.value=x.value,
null==(o=(n=r.toast).onDismiss)||o.call(n,r.toast),I(),void(s.value=!0)
;null==(i=d.value)||i.style.setProperty("--swipe-amount","0px"),a.value=!1
},Q=e=>{var t;if(!_.value)return
;const n=e.clientY-_.value.y,r=e.clientX-_.value.x,o=("top"===E.value[0]?Math.min:Math.max)(0,n),i="touch"===e.pointerType?10:2
;Math.abs(o)>i?null==(t=d.value)||t.style.setProperty("--swipe-amount",`${n}px`):Math.abs(r)>i&&(_.value=null)
};return ai((()=>{x.value=14*b.value+D.value})),ai((e=>{
if(r.toast.promise&&"loading"===f.value||r.toast.duration===1/0||"loading"===r.toast.type)return
;let t;r.expanded||r.interacting||r.pauseWhenPageIsHidden&&$?(()=>{
if(S.value<w.value){const e=(new Date).getTime()-w.value;k.value=k.value-e}
S.value=(new Date).getTime()
})():(w.value=(new Date).getTime(),t=setTimeout((()=>{var e,t
;null==(t=(e=r.toast).onAutoClose)||t.call(e,r.toast),I()}),k.value)),e((()=>{
clearTimeout(t)}))})),ai((()=>{r.toast.delete&&I()})),Ur((()=>{if(d.value){
const e=d.value.getBoundingClientRect().height;c.value=e;const t=[{
toastId:r.toast.id,height:e,position:r.toast.position},...r.heights]
;n("update:heights",t)}o.value=!0})),Hr((()=>{if(d.value){
const e=r.heights.filter((e=>e.toastId!==r.toast.id));n("update:heights",e)}})),
(e,t)=>{var n,r,u,b,y,w,k,S,_,E,D,$;return zi(),Wi("li",{
"aria-live":e.toast.important?"assertive":"polite","aria-atomic":"true",
role:"status",tabindex:"0",ref_key:"toastRef",ref:d,"data-sonner-toast":"",
class:et(g.value),
"data-styled":!(e.toast.component||null!=(n=e.toast)&&n.unstyled||e.unstyled),
"data-mounted":o.value,"data-promise":!!e.toast.promise,"data-removed":i.value,
"data-visible":h.value,"data-y-position":T.value,"data-x-position":C.value,
"data-index":e.index,"data-front":p.value,"data-swiping":a.value,
"data-dismissible":m.value,"data-type":f.value,"data-invert":R.value,
"data-swipe-out":s.value,
"data-expanded":!!(e.expanded||e.expandByDefault&&o.value),style:Xe({
"--index":e.index,"--toasts-before":e.index,"--z-index":e.toasts.length-e.index,
"--offset":`${i.value?l.value:x.value}px`,
"--initial-height":e.expandByDefault?"auto":`${c.value}px`,...e.style,...Fn(v)
}),onPointerdown:L,onPointerup:B,onPointermove:Q
},[O.value&&!e.toast.component?(zi(),Wi("button",{key:0,
"aria-label":e.closeButtonAriaLabel||"Close toast","data-disabled":N.value,
"data-close-button":"",
class:et(e.cn(null==(r=e.classes)?void 0:r.closeButton,null==(b=null==(u=e.toast)?void 0:u.classes)?void 0:b.closeButton)),
onClick:M
},[ta(Jp)],10,th)):aa("",!0),e.toast.component?(zi(),Xi(Ir(e.toast.component),ua({
key:1},e.toast.componentProps,{onCloseToast:I}),null,16)):(zi(),Wi(Bi,{key:2
},["default"!==f.value||e.toast.icon||e.toast.promise?(zi(),
Wi("div",nh,[!e.toast.promise&&"loading"!==f.value||e.toast.icon?aa("",!0):no(e.$slots,"loading-icon",{
key:0}),e.toast.icon?(zi(),Xi(Ir(e.toast.icon),{key:1})):(zi(),Wi(Bi,{key:2
},["success"===f.value?no(e.$slots,"success-icon",{key:0
}):"error"===f.value?no(e.$slots,"error-icon",{key:1
}):"warning"===f.value?no(e.$slots,"warning-icon",{key:2
}):"info"===f.value?no(e.$slots,"info-icon",{key:3
}):aa("",!0)],64))])):aa("",!0),ea("div",rh,[ea("div",{"data-title":"",
class:et(e.cn(null==(y=e.classes)?void 0:y.title,null==(w=e.toast.classes)?void 0:w.title))
},[A?(zi(),Xi(Ir(e.toast.title),tt(ua({key:0
},e.toast.componentProps)),null,16)):(zi(),Wi(Bi,{key:1
},[oa(st(e.toast.title),1)],64))],2),e.toast.description?(zi(),Wi("div",{key:0,
"data-description":"",
class:et(e.cn(e.descriptionClass,e.toast.descriptionClass,null==(k=e.classes)?void 0:k.description,null==(S=e.toast.classes)?void 0:S.description))
},[P?(zi(),Xi(Ir(e.toast.description),tt(ua({key:0
},e.toast.componentProps)),null,16)):(zi(),Wi(Bi,{key:1
},[oa(st(e.toast.description),1)],64))],2)):aa("",!0)]),e.toast.cancel?(zi(),
Wi("button",{key:1,
class:et(e.cn(null==(_=e.classes)?void 0:_.cancelButton,null==(E=e.toast.classes)?void 0:E.cancelButton)),
"data-button":"","data-cancel":"",onClick:t[0]||(t[0]=()=>{var t
;I(),null!=(t=e.toast.cancel)&&t.onClick&&e.toast.cancel.onClick()})
},st(e.toast.cancel.label),3)):aa("",!0),e.toast.action?(zi(),Wi("button",{
key:2,
class:et(e.cn(null==(D=e.classes)?void 0:D.actionButton,null==($=e.toast.classes)?void 0:$.actionButton)),
"data-button":"",onClick:t[1]||(t[1]=t=>{var n
;null==(n=e.toast.action)||n.onClick(t),!t.defaultPrevented&&I()})
},st(e.toast.action.label),3)):aa("",!0)],64))],46,eh)}}
}),ih=["data-visible"],ah={class:"sonner-spinner"},sh=eo({__name:"Loader",
props:{visible:{type:Boolean}},setup(e){const t=Array(12).fill(0)
;return(e,n)=>(zi(),Wi("div",{class:"sonner-loading-wrapper",
"data-visible":e.visible
},[ea("div",ah,[(zi(!0),Wi(Bi,null,Kr(Fn(t),(e=>(zi(),Wi("div",{
key:`spinner-bar-${e}`,class:"sonner-loading-bar"})))),128))])],8,ih))}
}),lh={},ch={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",
fill:"currentColor",height:"20",width:"20"},uh=[ea("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)];const dh=Xp(lh,[["render",function(e,t){
return zi(),Wi("svg",ch,uh)}]]),ph={},hh={xmlns:"http://www.w3.org/2000/svg",
viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},fh=[ea("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)];const mh=Xp(ph,[["render",function(e,t){
return zi(),Wi("svg",hh,fh)}]]),gh={},vh={xmlns:"http://www.w3.org/2000/svg",
viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},bh=[ea("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)];const Oh=Xp(gh,[["render",function(e,t){
return zi(),Wi("svg",vh,bh)}]]),yh={},wh={xmlns:"http://www.w3.org/2000/svg",
viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},xh=[ea("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)];const kh=Xp(yh,[["render",function(e,t){
return zi(),Wi("svg",wh,xh)
}]]),Sh=["aria-label"],_h=["dir","data-theme","data-rich-colors","data-y-position","data-x-position"],Eh="32px",Th=typeof window<"u"&&typeof document<"u",Ch=eo({
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:4e3},gap:{default:14},visibleToasts:{
default:3},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})
},class:{default:""},style:{default:()=>({})},offset:{default:Eh},dir:{
default:"auto"},icons:{},containerAriaLabel:{default:"Notifications"},
pauseWhenPageIsHidden:{type:Boolean,default:!1},cn:{}},setup(e){
function t(...e){return e.filter(Boolean).join(" ")}function n(){
if(typeof window>"u"||typeof document>"u")return"ltr"
;const e=document.documentElement.getAttribute("dir")
;return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction
}const r=e,o=uo(),i=Bn([]),a=Aa((()=>{
const e=i.value.filter((e=>e.position)).map((e=>e.position))
;return e.length>0?Array.from(new Set([r.position].concat(e))):[r.position]
})),s=Bn([]),l=Bn(!1),c=Bn(!1),u=Bn("system"!==r.theme?r.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),d=Aa((()=>r.cn||t)),p=Bn(null),h=Bn(null),f=Bn(!1),m=r.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"")
;function g(e){i.value=i.value.filter((({id:t})=>t!==e.id))}const v=e=>{var t,n
;f.value&&(null==(n=null==(t=e.currentTarget)?void 0:t.contains)||!n.call(t,e.relatedTarget))&&(f.value=!1,
h.value&&(h.value.focus({preventScroll:!0}),h.value=null))},b=e=>{
e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||f.value||(f.value=!0,
h.value=e.relatedTarget)},O=e=>{
e.target&&e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||(c.value=!1)
};return ai((e=>{const t=Zp.subscribe((e=>{
e.dismiss?i.value=i.value.map((t=>t.id===e.id?{...t,delete:!0}:t)):dr((()=>{
const t=i.value.findIndex((t=>t.id===e.id))
;-1!==t?i.value.splice(t,1,e):i.value=[e,...i.value]}))}));e((()=>{t()}))
})),li((()=>r.theme),(e=>{
"system"===e?("system"===e&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?u.value="dark":u.value="light"),
!(typeof window>"u")&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(({matches:e})=>{
u.value=e?"dark":"light"}))):u.value=e})),li((()=>p.value),(()=>{
if(p.value)return()=>{h.value&&(h.value.focus({preventScroll:!0
}),h.value=null,f.value=!1)}})),ai((()=>{i.value.length<=1&&(l.value=!1)
})),ai((e=>{function t(e){
const t=r.hotkey.every((t=>e[t]||e.code===t)),n=Array.isArray(p.value)?p.value[0]:p.value
;t&&(l.value=!0,null==n||n.focus())
;const o=document.activeElement===p.value||(null==n?void 0:n.contains(document.activeElement))
;"Escape"===e.code&&o&&(l.value=!1)}Th&&(document.addEventListener("keydown",t),
e((()=>{document.removeEventListener("keydown",t)})))
})),(e,t)=>(zi(),Wi("section",{"aria-label":`${e.containerAriaLabel} ${Fn(m)}`,
tabIndex:-1},[(zi(!0),Wi(Bi,null,Kr(a.value,((r,a)=>{var u
;return zi(),Wi("ol",ua({key:r,ref_for:!0,ref_key:"listRef",ref:p,
"data-sonner-toaster":"",class:e.class,dir:"auto"===e.dir?n():e.dir,tabIndex:-1,
"data-theme":e.theme,"data-rich-colors":e.richColors,
"data-y-position":r.split("-")[0],"data-x-position":r.split("-")[1],style:{
"--front-toast-height":`${null==(u=s.value[0])?void 0:u.height}px`,
"--offset":"number"==typeof e.offset?`${e.offset}px`:e.offset||Eh,
"--width":"356px","--gap":"14px",...e.style,...Fn(o).style},onBlur:v,onFocus:b,
onMouseenter:t[1]||(t[1]=e=>l.value=!0),onMousemove:t[2]||(t[2]=e=>l.value=!0),
onMouseleave:t[3]||(t[3]=()=>{c.value||(l.value=!1)}),onPointerdown:O,
onPointerup:t[4]||(t[4]=e=>c.value=!1)
},e.$attrs),[(zi(!0),Wi(Bi,null,Kr(i.value.filter((t=>!t.position&&0===a||t.position===e.position)),((n,r)=>{
var o,a,u,p,h,f,m,v,b;return zi(),Xi(oh,{key:n.id,index:r,toast:n,
duration:(null==(o=e.toastOptions)?void 0:o.duration)??e.duration,
class:et(null==(a=e.toastOptions)?void 0:a.class),
descriptionClass:null==(u=e.toastOptions)?void 0:u.descriptionClass,
invert:e.invert,visibleToasts:e.visibleToasts,
closeButton:(null==(p=e.toastOptions)?void 0:p.closeButton)??e.closeButton,
interacting:c.value,position:e.position,
style:Xe(null==(h=e.toastOptions)?void 0:h.style),
unstyled:null==(f=e.toastOptions)?void 0:f.unstyled,
classes:null==(m=e.toastOptions)?void 0:m.classes,
cancelButtonStyle:null==(v=e.toastOptions)?void 0:v.cancelButtonStyle,
actionButtonStyle:null==(b=e.toastOptions)?void 0:b.actionButtonStyle,
toasts:i.value,expandByDefault:e.expand,gap:e.gap,expanded:l.value,
pauseWhenPageIsHidden:e.pauseWhenPageIsHidden,cn:d.value,heights:s.value,
"onUpdate:heights":t[0]||(t[0]=e=>s.value=e),onRemoveToast:g},{
"loading-icon":Tr((()=>[no(e.$slots,"loading-icon",{},(()=>[ta(sh,{
visible:"loading"===n.type},null,8,["visible"])]))])),
"success-icon":Tr((()=>[no(e.$slots,"success-icon",{},(()=>[ta(dh)]))])),
"error-icon":Tr((()=>[no(e.$slots,"error-icon",{},(()=>[ta(kh)]))])),
"warning-icon":Tr((()=>[no(e.$slots,"warning-icon",{},(()=>[ta(Oh)]))])),
"info-icon":Tr((()=>[no(e.$slots,"info-icon",{},(()=>[ta(mh)]))])),_:2
},1032,["index","toast","duration","class","descriptionClass","invert","visibleToasts","closeButton","interacting","position","style","unstyled","classes","cancelButtonStyle","actionButtonStyle","toasts","expandByDefault","gap","expanded","pauseWhenPageIsHidden","cn","heights"])
})),128))],16,_h)})),128))],8,Sh))}}),Ah={toast:()=>null};function Ph(e){
Ah.toast=e}function Dh(){return{initializeToasts:Ph,toast:(e,t="info",n={
timeout:3e3})=>{Ah.toast(e,t,n)}}}const $h=eo({__name:"ScalarToasts",setup(e){
const t=Bn(!1);Ur((()=>t.value=!0));const n={success:Wp.success,error:Wp.error,
warn:Wp.warning,info:Wp},{initializeToasts:r}=Dh()
;return r(((e,t="info",r={})=>{(n[t]||n.info)(e,{duration:r.timeout||3e3,
description:r.description})})),(e,n)=>t.value?(zi(),Xi(Fn(Ch),{key:0,
class:"scalar-toaster"})):aa("",!0)}});!function(){try{if(typeof document<"u"){
var e=document.createElement("style")
;e.appendChild(document.createTextNode(".scalar-toaster [data-sonner-toast][data-styled=true]{background:var(--scalar-background-1);color:var(--scalar-color-1);padding:18px;border:none;border-radius:var(--scalar-radius-lg);font-size:var(--scalar-font-size-3);font-weight:var(--scalar-font-medium);box-shadow:var(--scalar-shadow-2)}.scalar-toaster [data-sonner-toast] [data-icon]{align-self:flex-start;position:relative;top:2px}.scalar-toaster [data-sonner-toast][data-styled=true][data-expanded=true]{height:auto}.scalar-toaster [data-sonner-toast][data-type=error]{background:var(--scalar-background-1)}.scalar-toaster [data-sonner-toast][data-type=error] [data-icon]{color:color-mix(in srgb,var(--scalar-color-red) 75%,var(--scalar-color-1))}.scalar-toaster [data-sonner-toast][data-type=warning]{background:var(--scalar-background-1)}.scalar-toaster [data-sonner-toast][data-type=warning] [data-icon]{color:color-mix(in srgb,var(--scalar-color-orange) 90%,var(--scalar-color-1))}")),
document.head.appendChild(e)}}catch(z$){
console.error("vite-plugin-css-injected-by-js",z$)}}();const Rh=()=>{
const{toast:e}=Dh();return{copyToClipboard:t=>{
navigator.clipboard.writeText(t).then((()=>{e("Copied to the clipboard","info")
}))}}},Nh=Bn(!1);function Ih(e,t){var n
;return Nh.value=t?"dark"===t:("undefined"==typeof window?null:JSON.parse((null==(n=window.localStorage)?void 0:n.getItem("isDark"))||"null"))??e??(()=>{
var e,t
;const n="undefined"!=typeof window?null==(e=window.localStorage)?void 0:e.getItem("isDark"):null
;return"string"==typeof n?!!JSON.parse(n):!("undefined"==typeof window||"function"!=typeof(null==window?void 0:window.matchMedia)||!(null==(t=null==window?void 0:window.matchMedia("(prefers-color-scheme: dark)"))?void 0:t.matches))
})(),li(Nh,(e=>{
"undefined"!=typeof document&&(document.body.classList.toggle("dark-mode",e),
document.body.classList.toggle("light-mode",!e))}),{immediate:!0}),{isDark:Nh,
toggleDarkMode:()=>{var e
;Nh.value=!Nh.value,"undefined"!=typeof window&&(null==(e=null==window?void 0:window.localStorage)||e.setItem("isDark",JSON.stringify(Nh.value)))
},setDarkMode:function(e){var t
;Nh.value=e,"undefined"!=typeof window&&(null==(t=null==window?void 0:window.localStorage)||t.setItem("isDark",JSON.stringify(Nh.value)))
}}}const Mh="https://api.scalar.com/request-proxy",Lh="https://proxy.scalar.com"
;const Bh=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,Qh=Object.hasOwnProperty
;class jh{constructor(){this.occurrences,this.reset()}slug(e,t){const n=this
;let r=Uh(e,!0===t);const o=r;for(;Qh.call(n.occurrences,r);)n.occurrences[o]++,
r=o+"-"+n.occurrences[o];return n.occurrences[r]=0,r}reset(){
this.occurrences=Object.create(null)}}function Uh(e,t){
return"string"!=typeof e?"":(t||(e=e.toLowerCase()),
e.replace(Bh,"").replace(/ /g,"-"))}
const Fh=Bn($d.hash??""),qh=Bn(),zh=Bn(!1),Hh=e=>e.slug?`description/${e.slug}`:"",Zh=e=>{
var t;if(!qh.value)return""
;const n=new RegExp("^"+(null==(t=qh.value)?void 0:t.basePath)+"/?")
;return decodeURIComponent(e.replace(n,""))},Vh=(e,t)=>{if(!e)return"webhooks"
;const n=Uh(e);return`webhook/${t}/${encodeURIComponent(n)}`},Wh=e=>{
if(!e)return"models";const t=Uh(e);return`model/${encodeURIComponent(t)}`
},Xh=(e,t)=>`${Yh(t)}/${e.httpVerb}${e.path}`,Yh=({name:e})=>{const t=Uh(e)
;return`tag/${encodeURIComponent(t)}`},Gh=(e=Fh.value)=>{var t
;const n=null==(t=e.match(/(tag\/[^/]+)/))?void 0:t[0],r=e.startsWith("model")?"models":"",o=e.startsWith("webhook")?"webhooks":""
;return n||r||o},Kh=()=>{
Fh.value=qh.value?Zh(window.location.pathname):decodeURIComponent(window.location.hash.replace(/^#/,""))
},Jh=()=>({hash:Fh,getWebhookId:Vh,getModelId:Wh,getHeadingId:Hh,
getOperationId:Xh,getPathRoutingId:Zh,getSectionId:Gh,getTagId:Yh,
isIntersectionEnabled:zh,pathRouting:qh,updateHash:Kh});function ef(e){return{
parameterMap:Aa((()=>{var t
;const n=(null==(t=e.operation.information)?void 0:t.parameters)??[],r={path:[],
query:[],header:[],body:[],formData:[]}
;return e.operation.pathParameters&&e.operation.pathParameters.forEach((e=>{
"path"===e.in?r.path.push(e):"query"===e.in?r.query.push(e):"header"===e.in?r.header.push(e):"body"===e.in?r.body.push(e):"formData"===e.in&&r.formData.push(e)
})),n&&n.forEach((e=>{
"path"===e.in?r.path.push(e):"query"===e.in?r.query.push(e):"header"===e.in?r.header.push(e):"body"===e.in?r.body.push(e):"formData"===e.in&&r.formData.push(e)
})),r}))}}function tf(e,t=""){return{"date-time":(new Date).toISOString(),
date:(new Date).toISOString().split("T")[0],email:"hello@example.com",
hostname:"example.com","idn-email":"jane.doe@example.com",
"idn-hostname":"example.com",ipv4:"127.0.0.1",
ipv6:"51d4:7fab:bfbf:b7d7:b2cb:d4b4:3dad:d998","iri-reference":"/entitiy/1",
iri:"https://example.com/entity/123","json-pointer":"/nested/objects",
password:"super-secret",regex:"/[a-z]/",
"relative-json-pointer":"1/nested/objects",
time:(new Date).toISOString().split("T")[1].split(".")[0],
"uri-reference":"../folder","uri-template":"https://example.com/{id}",
uri:"https://example.com",uuid:"123e4567-e89b-12d3-a456-426614174000"
}[e.format]??t}const nf=(e,t,n=0,r,o)=>{var i,a,s,l,c,u,d,p,h,f,m,g
;if(6===n)try{JSON.stringify(e)}catch{return"[Circular Reference]"}
const v=!!(null==t?void 0:t.emptyString)
;if("write"===(null==t?void 0:t.mode)&&e.readOnly)return
;if("read"===(null==t?void 0:t.mode)&&e.writeOnly)return;if(e["x-variable"]){
const n=null==(i=null==t?void 0:t.variables)?void 0:i[e["x-variable"]]
;if(void 0!==n)return"number"===e.type||"integer"===e.type?parseInt(n,10):n}
if(Array.isArray(e.examples)&&e.examples.length>0)return e.examples[0]
;if(void 0!==e.example)return e.example;if(void 0!==e.default)return e.default
;if(void 0!==e.enum)return e.enum[0]
;if(!("object"===e.type||"array"===e.type||!!(null==(s=null==(a=e.allOf)?void 0:a.at)?void 0:s.call(a,0))||!!(null==(c=null==(l=e.anyOf)?void 0:l.at)?void 0:c.call(l,0))||!!(null==(d=null==(u=e.oneOf)?void 0:u.at)?void 0:d.call(u,0)))&&!0===(null==t?void 0:t.omitEmptyAndOptionalProperties)){
if(!(!0===e.required||!0===(null==r?void 0:r.required)||(null==(p=null==r?void 0:r.required)?void 0:p.includes(o??e.name))))return
}if("object"===e.type||void 0!==e.properties){const r={}
;if(void 0!==e.properties&&Object.keys(e.properties).forEach((o=>{var i
;const a=e.properties[o],s=(null==t?void 0:t.xml)?null==(i=a.xml)?void 0:i.name:void 0
;r[s??o]=nf(a,t,n+1,e,o),void 0===r[s??o]&&delete r[s??o]
})),void 0!==e.additionalProperties){
!0===e.additionalProperties||"object"==typeof e.additionalProperties&&!Object.keys(e.additionalProperties).length?r.ANY_ADDITIONAL_PROPERTY="anything":!1!==e.additionalProperties&&(r.ANY_ADDITIONAL_PROPERTY=nf(e.additionalProperties,t,n+1))
}
return void 0!==e.anyOf?Object.assign(r,nf(e.anyOf[0],t,n+1)):void 0!==e.oneOf?Object.assign(r,nf(e.oneOf[0],t,n+1)):void 0!==e.allOf&&Object.assign(r,...e.allOf.map((r=>nf(r,t,n+1,e))).filter((e=>void 0!==e))),
r}if("array"===e.type||void 0!==e.items){
const r=null==(f=null==(h=null==e?void 0:e.items)?void 0:h.xml)?void 0:f.name,o=!!((null==t?void 0:t.xml)&&(null==(m=e.xml)?void 0:m.wrapped)&&r)
;if(void 0!==e.example)return o?{[r]:e.example}:e.example;if(e.items){
const i=["anyOf","oneOf","allOf"];for(const a of i){if(!e.items[a])continue
;const i=(["anyOf","oneOf"].includes(a)?e.items[a].slice(0,1):e.items[a]).map((r=>nf(r,t,n+1,e))).filter((e=>void 0!==e))
;return o?[{[r]:i}]:i}}if(null==(g=e.items)?void 0:g.type){
const i=nf(e.items,t,n+1);return o?[{[r]:i}]:[i]}return[]}const b={
string:v?tf(e,null==t?void 0:t.emptyString):"",boolean:!0,integer:e.min??1,
number:e.min??1,array:[]}
;if(void 0!==e.type&&void 0!==b[e.type])return b[e.type]
;const O=e.oneOf||e.anyOf;if(Array.isArray(O)&&O.length>0){const e=O[0]
;return nf(e,t,n+1)}if(Array.isArray(e.allOf)){let r=null
;return e.allOf.forEach((e=>{const o=nf(e,t,n+1)
;r="object"==typeof o&&"object"==typeof r?{...r??{},...o
}:Array.isArray(o)&&Array.isArray(r)?[...r??{},...o]:o})),r}
if(Array.isArray(e.type)){if(e.type.includes("null"))return null
;const t=b[e.type[0]];if(void 0!==t)return t}
return console.warn(`[getExampleFromSchema] Unknown property type "${e.type}".`),
null};function rf(e,t,n=!0){var r
;return[...e.pathParameters||[],...(null==(r=e.information)?void 0:r.parameters)||[]].filter((e=>e.in===t)).filter((e=>n&&e.required||!n)).map((e=>({
name:e.name,description:e.description??null,
value:e.example?e.example:e.schema?nf(e.schema,{mode:"write"}):"",
required:e.required??!1,enabled:e.required??!1
}))).sort(((e,t)=>e.required&&!t.required?-1:!e.required&&t.required?1:0))}
function of(e,t){const n=function(e,t,r){let o=""
;if(e instanceof Array)for(let i=0,a=e.length;i<a;i++)o+=r+n(e[i],t,r+"\t")+"\n";else if("object"==typeof e){
let i=!1;o+=r+"<"+t
;for(const t in e)"@"==t.charAt(0)?o+=" "+t.substr(1)+'="'+e[t].toString()+'"':i=!0
;if(o+=i?">":"/>",i){
for(const t in e)"#text"==t?o+=e[t]:"#cdata"==t?o+="<![CDATA["+e[t]+"]]>":"@"!=t.charAt(0)&&(o+=n(e[t],t,r+"\t"))
;o+=("\n"==o.charAt(o.length-1)?r:"")+"</"+t+">"}
}else o+=r+"<"+t+">"+e.toString()+"</"+t+">";return o};let r=""
;for(const o in e)r+=n(e[o],o,"")
;return t?r.replace(/\t/g,t):r.replace(/\t|\n/g,"")}function af(e,t=""){
return Object.entries(e).flatMap((([e,n])=>{const r=t?`${t}[${e}]`:e
;return"object"==typeof n&&null!==n?af(n,r):[{name:r,value:n}]}))}
const sf=["application/json","application/octet-stream","application/x-www-form-urlencoded","application/xml","multipart/form-data","text/plain"]
;function lf(e,t){var n,r,o,i
;const a=Td(null==(r=null==(n=e.information)?void 0:n.requestBody)?void 0:r.content),s=sf.find((e=>!!(null==a?void 0:a[e]))),l=null==(o=null==a?void 0:a["application/json"])?void 0:o.examples,c=null==(i=l??{})?void 0:i[t??Object.keys(l??{})[0]]
;if(c)return{body:{mimeType:"application/json",text:Ad(null==c?void 0:c.value)}}
;const u=rf(e,"body",!1);if(u.length>0)return{body:{mimeType:"application/json",
text:Ad(u[0].value)}};const d=rf(e,"formData",!1);if(d.length>0)return{body:{
mimeType:"application/x-www-form-urlencoded",params:d.map((e=>({name:e.name,
value:"string"==typeof e.value?e.value:JSON.stringify(e.value)})))}}
;if(!s)return null;const p=null==a?void 0:a[s],h=[{name:"Content-Type",value:s
}],f=(null==p?void 0:p.example)?null==p?void 0:p.example:void 0
;if("application/json"===s){
const e=(null==p?void 0:p.schema)?nf(null==p?void 0:p.schema,{mode:"write",
omitEmptyAndOptionalProperties:!0}):null,t=f??e;return{headers:h,body:{
mimeType:s,text:"string"==typeof t?t:JSON.stringify(t,null,2)}}}
if("application/xml"===s){
const e=(null==p?void 0:p.schema)?nf(null==p?void 0:p.schema,{xml:!0,
mode:"write",omitEmptyAndOptionalProperties:!0}):null;return{headers:h,body:{
mimeType:s,text:f??of(e,"  ")}}}if("application/octet-stream"===s)return{
headers:h,body:{mimeType:s,text:"BINARY"}};if("text/plain"===s){
const e=(null==p?void 0:p.schema)?nf(null==p?void 0:p.schema,{xml:!0,
mode:"write",omitEmptyAndOptionalProperties:!0}):null;return{headers:h,body:{
mimeType:s,text:f??e??""}}}
if("multipart/form-data"===s||"application/x-www-form-urlencoded"===s){
const e=(null==p?void 0:p.schema)?nf(null==p?void 0:p.schema,{xml:!0,
mode:"write",omitEmptyAndOptionalProperties:!0}):null;return{headers:h,body:{
mimeType:s,params:af(f??e??{})}}}return null}const cf=(e,t,n)=>{let r=e.path
;const o=rf(e,"path",!1);if(o.length){const e=r.match(/{(.*?)}/g)
;e&&e.forEach((e=>{const t=e.replace(/{|}/g,"");if(o){
const n=o.find((e=>e.name===t))
;(null==n?void 0:n.value)&&(r=r.replace(e,n.value.toString()))}}))}
if(!0===(null==t?void 0:t.replaceVariables)){const e=r.match(/{(.*?)}/g)
;e&&e.forEach((e=>{const t=e.replace(/{|}/g,"")
;r=r.replace(e,`__${t.toUpperCase()}__`)}))}const i=lf(e,n);return{
method:e.httpVerb.toUpperCase(),path:r,postData:null==i?void 0:i.body,
headers:[...rf(e,"header",null==t?void 0:t.requiredOnly),...(null==i?void 0:i.headers)??[]],
queryString:rf(e,"query",null==t?void 0:t.requiredOnly),
cookies:rf(e,"cookie",null==t?void 0:t.requiredOnly)}};function uf(e){
return(e??[]).map((e=>({...e,enabled:!0})))}function df(e){
return e.reduce(((e,t)=>(e[t.name]=t.value,e)),{})}function pf(e){
return/\s|-/.test(e)}function hf(e,t=0){
const n=[],r=" ".repeat(t),o=" ".repeat(t+2)
;for(const[i,a]of Object.entries(e)){const e=pf(i)?`'${i}'`:i
;if(Array.isArray(a)){
const r=a.map((e=>"string"==typeof e?`'${e}'`:e&&"object"==typeof e?hf(e,t+2):e)).join(`, ${o}`)
;n.push(`${o}${e}: [${r}]`)
}else if(a&&"object"==typeof a)n.push(`${o}${e}: ${hf(a,t+2)}`);else if("string"==typeof a){
let t=`${a}`;if(a.startsWith("JSON.stringify")){const e=a.split("\n")
;e.length>1&&(t=e.map(((e,t)=>0===t?e:`${o}${e}`)).join("\n"))}else t=`'${a}'`
;n.push(`${o}${e}: ${t}`)}else n.push(`${o}${e}: ${a}`)}
return`{\n${n.join(",\n")}\n${r}}`}function ff(e){var t,n;const r={method:"GET",
...e};r.method=r.method.toUpperCase();const o={
method:"GET"===r.method?void 0:r.method
},i=new URLSearchParams(r.queryString?df(r.queryString):void 0),a=i.size?`?${i.toString()}`:""
;(null==(t=r.headers)?void 0:t.length)&&(o.headers={},r.headers.forEach((e=>{
o.headers[e.name]=e.value
}))),(null==(n=r.cookies)?void 0:n.length)&&(o.headers=o.headers||{},
r.cookies.forEach((e=>{
o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}`
}))),Object.keys(o).forEach((e=>{void 0===o[e]&&delete o[e]
})),r.postData&&(o.body=r.postData.text,
"application/json"===r.postData.mimeType&&(o.body=`JSON.stringify(${hf(JSON.parse(o.body))})`))
;const s=Object.keys(o).length?`, ${hf(o)}`:"";return{target:"node",
client:"undici",
code:`import { request } from 'undici'\n\nconst { statusCode, body } = await request('${r.url}${a}'${s})`
}}function mf(e){var t,n;const r={method:"GET",...e}
;r.method=r.method.toUpperCase();const o={
method:"GET"===r.method?void 0:r.method
},i=new URLSearchParams(r.queryString?df(r.queryString):void 0),a=i.size?`?${i.toString()}`:""
;(null==(t=r.headers)?void 0:t.length)&&(o.headers={},r.headers.forEach((e=>{
o.headers[e.name]=e.value
}))),(null==(n=r.cookies)?void 0:n.length)&&(o.headers=o.headers||{},
r.cookies.forEach((e=>{
o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}`
}))),Object.keys(o).forEach((e=>{void 0===o[e]&&delete o[e]
})),r.postData&&(o.body=r.postData.text,
"application/json"===r.postData.mimeType&&(o.body=`JSON.stringify(${hf(JSON.parse(o.body))})`))
;const s=Object.keys(o).length?`, ${hf(o)}`:"";return{target:"node",
client:"fetch",code:`fetch('${r.url}${a}'${s})`}}function gf(e){var t,n
;const r={method:"GET",...e};r.method=r.method.toUpperCase();const o={
method:"GET"===r.method?void 0:r.method
},i=new URLSearchParams(r.queryString?df(r.queryString):void 0),a=i.size?`?${i.toString()}`:""
;(null==(t=r.headers)?void 0:t.length)&&(o.headers={},r.headers.forEach((e=>{
o.headers[e.name]=e.value
}))),(null==(n=r.cookies)?void 0:n.length)&&(o.headers=o.headers||{},
r.cookies.forEach((e=>{
o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}`
}))),Object.keys(o).forEach((e=>{void 0===o[e]&&delete o[e]
})),r.postData&&(o.body=r.postData.text,
"application/json"===r.postData.mimeType&&(o.body=`JSON.stringify(${hf(JSON.parse(o.body))})`))
;const s=Object.keys(o).length?`, ${hf(o)}`:"";return{target:"js",
client:"fetch",code:`fetch('${r.url}${a}'${s})`}}function vf(e){var t,n
;const r={method:"GET",...e};r.method=r.method.toUpperCase();const o={
method:"GET"===r.method?void 0:r.method
},i=new URLSearchParams(r.queryString?df(r.queryString):void 0)
;i.size&&(o.query={},i.forEach(((e,t)=>{o.query[t]=e
}))),(null==(t=r.headers)?void 0:t.length)&&(o.headers={},
r.headers.forEach((e=>{o.headers[e.name]=e.value
}))),(null==(n=r.cookies)?void 0:n.length)&&(o.headers=o.headers||{},
r.cookies.forEach((e=>{
o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}`
}))),Object.keys(o).forEach((e=>{void 0===o[e]&&delete o[e]
})),r.postData&&(o.body=r.postData.text,
"application/json"===r.postData.mimeType&&(o.body=JSON.parse(o.body)))
;const a=Object.keys(o).length?`, ${hf(o)}`:"";return{target:"js",
client:"ofetch",code:`ofetch('${r.url}'${a})`}}function bf(e){var t,n;const r={
method:"GET",...e};r.method=r.method.toUpperCase();const o={
method:"GET"===r.method?void 0:r.method
},i=new URLSearchParams(r.queryString?df(r.queryString):void 0)
;i.size&&(o.query={},i.forEach(((e,t)=>{o.query[t]=e
}))),(null==(t=r.headers)?void 0:t.length)&&(o.headers={},
r.headers.forEach((e=>{o.headers[e.name]=e.value
}))),(null==(n=r.cookies)?void 0:n.length)&&(o.headers=o.headers||{},
r.cookies.forEach((e=>{
o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}`
}))),Object.keys(o).forEach((e=>{void 0===o[e]&&delete o[e]
})),r.postData&&(o.body=r.postData.text,
"application/json"===r.postData.mimeType&&(o.body=JSON.parse(o.body)))
;const a=Object.keys(o).length?`, ${hf(o)}`:"";return{target:"node",
client:"ofetch",code:`ofetch('${r.url}'${a})`}}function Of(){
const e=[ff,mf,gf,vf,bf];return{get(e,t,n){const r=this.findPlugin(e,t)
;return r?r(n):{code:""}},print(e,t,n){var r
;return null==(r=this.get(e,t,n))?void 0:r.code},
targets:()=>e.map((e=>e().target)).filter(((e,t,n)=>n.indexOf(e)===t)),
clients:()=>e.map((e=>e().client)),plugins:()=>e.map((e=>{const t=e();return{
target:t.target,client:t.client}})),findPlugin:(t,n)=>e.find((e=>{const r=e()
;return r.target===t&&r.client===n})),hasPlugin(e,t){
return Boolean(this.findPlugin(e,t))}}}
const yf="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{FormData:wf,Blob:xf,File:kf}=yf,Sf="\r\n",_f="-".repeat(2),Ef=Symbol.toStringTag,Tf=(e,t,n)=>{
let r=""
;return r+=`${_f}${e}${Sf}`,r+=`Content-Disposition: form-data; name="${t}"`,
"string"!=typeof n&&"blob"!==n.name&&(r+=`; filename="${n.name}"${Sf}`,
r+=`Content-Type: ${n.type||"application/octet-stream"}`),`${r}${Sf.repeat(2)}`
},Cf=async function*(e,t){
for(const[n,r]of e)yield Tf(t,n,r),"string"==typeof r?yield r:yield await r.text(),
yield Sf;yield(e=>`${_f}${e}${_f}${Sf.repeat(1)}`)(t)
},Af=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase())),Pf=(e,t)=>{
const n=Af(e,t);if(n)return e[n]
},Df=(e,t)=>Boolean(Af(e,t)),$f=["application/json","application/x-json","text/json","text/x-json","+json"],Rf=(e,t)=>{
if(void 0===t.value)return e;const n=e[t.name]
;return void 0===n?(e[t.name]=t.value,
e):Array.isArray(n)?(n.push(t.value),e):(e[t.name]=[n,t.value],e)}
;function Nf(e){
return new URLSearchParams(Object.entries(e).map((([e,t])=>Array.isArray(t)?t.map((t=>[e,t])):[[e,t]])).flat(1))
}class If extends URL{get path(){return this.pathname+this.search}}class Mf{
constructor({indent:e,join:t}={}){
this.postProcessors=[],this.code=[],this.indentationCharacter="",
this.lineJoin="\n",
this.indentLine=(e,t=0)=>`${this.indentationCharacter.repeat(t)}${e}`,
this.unshift=(e,t)=>{const n=this.indentLine(e,t);this.code.unshift(n)
},this.push=(e,t)=>{const n=this.indentLine(e,t);this.code.push(n)
},this.blank=()=>{this.code.push("")},this.join=()=>{
const e=this.code.join(this.lineJoin)
;return this.postProcessors.reduce(((e,t)=>t(e)),e)},this.addPostProcessor=e=>{
this.postProcessors=[...this.postProcessors,e]},this.indentationCharacter=e||"",
this.lineJoin=null!=t?t:"\n"}}function Lf(e,t={}){
const{delimiter:n='"',escapeChar:r="\\",escapeNewlines:o=!0}=t
;return[...e.toString()].map((e=>"\b"===e?`${r}b`:"\t"===e?`${r}t`:"\n"===e?o?`${r}n`:e:"\f"===e?`${r}f`:"\r"===e?o?`${r}r`:e:e===r?r+r:e===n?r+n:e<" "||e>"~"?JSON.stringify(e).slice(1,-1):e)).join("")
}const Bf=e=>Lf(e,{delimiter:"'"}),Qf=e=>Lf(e,{delimiter:'"'}),jf={info:{
key:"c",title:"C",extname:".c",default:"libcurl"},clientsById:{libcurl:{info:{
key:"libcurl",title:"Libcurl",link:"http://curl.haxx.se/libcurl",
description:"Simple REST and HTTP API Client for C"},
convert:({method:e,fullUrl:t,headersObj:n,allHeaders:r,postData:o})=>{
const{push:i,blank:a,join:s}=new Mf
;i("CURL *hnd = curl_easy_init();"),a(),i(`curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "${e.toUpperCase()}");`),
i(`curl_easy_setopt(hnd, CURLOPT_URL, "${t}");`);const l=Object.keys(n)
;return l.length&&(a(),i("struct curl_slist *headers = NULL;"),l.forEach((e=>{
i(`headers = curl_slist_append(headers, "${e}: ${Qf(n[e])}");`)
})),i("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")),
r.cookie&&(a(),i(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${r.cookie}");`)),
(null==o?void 0:o.text)&&(a(),
i(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(o.text)});`)),a(),
i("CURLcode ret = curl_easy_perform(hnd);"),s()}}}};class Uf{constructor(e){
this.name="",this.toString=()=>`:${this.name}`,this.name=e}}class Ff{
constructor(e){
this.path="",this.toString=()=>`(clojure.java.io/file "${this.path}")`,
this.path=e}}
const qf=e=>void 0===e?null:null===e?"null":e.constructor.name.toLowerCase(),zf=e=>"object"===qf(e)&&0===Object.keys(e).length,Hf=e=>(Object.keys(e).filter((t=>zf(e[t]))).forEach((t=>{
delete e[t]})),e),Zf=(e,t)=>{const n=" ".repeat(e)
;return t.replace(/\n/g,`\n${n}`)},Vf=e=>{switch(qf(e)){case"string":
return`"${e.replace(/"/g,'\\"')}"`;case"file":case"keyword":default:
return e.toString();case"null":return"nil";case"regexp":return`#"${e.source}"`
;case"object":{
const t=Object.keys(e).reduce(((t,n)=>`${t}:${n} ${Zf(n.length+2,Vf(e[n]))}\n `),"").trim()
;return`{${Zf(1,t)}}`}case"array":{
const t=e.reduce(((e,t)=>`${e} ${Vf(t)}`),"").trim();return`[${Zf(1,t)}]`}}
},Wf={info:{key:"clojure",title:"Clojure",extname:".clj",default:"clj_http"},
clientsById:{clj_http:{info:{key:"clj_http",title:"clj-http",
link:"https://github.com/dakrone/clj-http",
description:"An idiomatic clojure http client wrapping the apache client."},
convert:({queryObj:e,method:t,postData:n,url:r,allHeaders:o},i)=>{
const{push:a,join:s}=new Mf({indent:null==i?void 0:i.indent})
;if(t=t.toLowerCase(),
!["get","post","put","delete","patch","head","options"].includes(t))return a("Method not supported"),
s();const l={headers:o,"query-params":e};switch(null==n?void 0:n.mimeType){
case"application/json":{
l["content-type"]=new Uf("json"),l["form-params"]=n.jsonObj
;const e=Af(l.headers,"content-type");e&&delete l.headers[e]}break
;case"application/x-www-form-urlencoded":{l["form-params"]=n.paramsObj
;const e=Af(l.headers,"content-type");e&&delete l.headers[e]}break
;case"text/plain":{l.body=n.text;const e=Af(l.headers,"content-type")
;e&&delete l.headers[e]}break;case"multipart/form-data":if(n.params){
l.multipart=n.params.map((e=>e.fileName&&!e.value?{name:e.name,
content:new Ff(e.fileName)}:{name:e.name,content:e.value}))
;const e=Af(l.headers,"content-type");e&&delete l.headers[e]}}
if("application/json"===Pf(l.headers,"accept")){l.accept=new Uf("json")
;const e=Af(l.headers,"accept");e&&delete l.headers[e]}
if(a("(require '[clj-http.client :as client])\n"),
zf(Hf(l)))a(`(client/${t} "${r}")`);else{const e=11+t.length+r.length
;a(`(client/${t} "${r}" ${Zf(e,Vf(Hf(l)))})`)}return s()}}}},Xf={info:{
key:"csharp",title:"C#",extname:".cs",default:"restsharp"},clientsById:{
httpclient:{info:{key:"httpclient",title:"HttpClient",
link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",
description:".NET Standard HTTP Client"},
convert:({allHeaders:e,postData:t,method:n,fullUrl:r},o)=>{var i,a;const s={
indent:"    ",...o},{push:l,join:c}=new Mf({indent:s.indent})
;l("using System.Net.Http.Headers;");let u="";const d=Boolean(e.cookie),p=(e=>{
let t=Pf(e,"accept-encoding");if(!t)return[];const n={
gzip:"DecompressionMethods.GZip",deflate:"DecompressionMethods.Deflate"},r=[]
;return"string"==typeof t&&(t=[t]),t.forEach((e=>{e.split(",").forEach((e=>{
const t=/\s*([^;\s]+)/.exec(e);if(t){const e=n[t[1]];e&&r.push(e)}}))})),r})(e)
;(d||p.length)&&(u="clientHandler",
l("var clientHandler = new HttpClientHandler"),
l("{"),d&&l("UseCookies = false,",1),
p.length&&l(`AutomaticDecompression = ${p.join(" | ")},`,1),
l("};")),l(`var client = new HttpClient(${u});`),
l("var request = new HttpRequestMessage"),l("{")
;n=(n=n.toUpperCase())&&["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","TRACE"].includes(n)?`HttpMethod.${n[0]}${n.substring(1).toLowerCase()}`:`new HttpMethod("${n}")`,
l(`Method = ${n},`,1),l(`RequestUri = new Uri("${r}"),`,1)
;const h=Object.keys(e).filter((e=>{switch(e.toLowerCase()){case"content-type":
case"content-length":case"accept-encoding":return!1;default:return!0}}))
;if(h.length&&(l("Headers =",1),l("{",1),h.forEach((t=>{
l(`{ "${t}", "${Qf(e[t])}" },`,2)})),l("},",1)),null==t?void 0:t.text){
const e=t.mimeType;switch(e){case"application/x-www-form-urlencoded":
l("Content = new FormUrlEncodedContent(new Dictionary<string, string>",1),
l("{",1),null===(i=t.params)||void 0===i||i.forEach((e=>{
l(`{ "${e.name}", "${e.value}" },`,2)})),l("}),",1);break
;case"multipart/form-data":
l("Content = new MultipartFormDataContent",1),l("{",1),
null===(a=t.params)||void 0===a||a.forEach((e=>{
l(`new StringContent(${JSON.stringify(e.value||"")})`,2),
l("{",2),l("Headers =",3),
l("{",3),e.contentType&&l(`ContentType = new MediaTypeHeaderValue("${e.contentType}"),`,4),
l('ContentDisposition = new ContentDispositionHeaderValue("form-data")',4),
l("{",4),
l(`Name = "${e.name}",`,5),e.fileName&&l(`FileName = "${e.fileName}",`,5),
l("}",4),l("}",3),l("},",2)})),l("},",1);break;default:
l(`Content = new StringContent(${JSON.stringify((null==t?void 0:t.text)||"")})`,1),
l("{",1),
l("Headers =",2),l("{",2),l(`ContentType = new MediaTypeHeaderValue("${e}")`,3),
l("}",2),l("}",1)}}
return l("};"),l("using (var response = await client.SendAsync(request))"),
l("{"),
l("response.EnsureSuccessStatusCode();",1),l("var body = await response.Content.ReadAsStringAsync();",1),
l("Console.WriteLine(body);",1),l("}"),c()}},restsharp:{info:{key:"restsharp",
title:"RestSharp",link:"http://restsharp.org/",
description:"Simple REST and HTTP API Client for .NET"},
convert:({allHeaders:e,method:t,fullUrl:n,headersObj:r,cookies:o,postData:i})=>{
const{push:a,join:s}=new Mf
;if(!["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(t.toUpperCase()))return"Method not supported"
;if(a(`var client = new RestClient("${n}");`),
a(`var request = new RestRequest(Method.${t.toUpperCase()});`),
Object.keys(r).forEach((e=>{a(`request.AddHeader("${e}", "${Qf(r[e])}");`)
})),null==o||o.forEach((({name:e,value:t})=>{
a(`request.AddCookie("${e}", "${t}");`)})),null==i?void 0:i.text){
const t=Pf(e,"content-type"),n=JSON.stringify(i.text)
;a(`request.AddParameter("${t}", ${n}, ParameterType.RequestBody);`)}
return a("IRestResponse response = client.Execute(request);"),s()}}}},Yf={info:{
key:"go",title:"Go",extname:".go",default:"native"},clientsById:{native:{info:{
key:"native",title:"NewRequest",
link:"http://golang.org/pkg/net/http/#NewRequest",
description:"Golang HTTP client request"},
convert:({postData:e,method:t,allHeaders:n,fullUrl:r},o={})=>{
const{blank:i,push:a,join:s}=new Mf({indent:"\t"
}),{showBoilerplate:l=!0,checkErrors:c=!1,printBody:u=!0,timeout:d=-1,insecureSkipVerify:p=!1}=o,h=c?"err":"_",f=l?1:0,m=()=>{
c&&(a("if err != nil {",f),a("panic(err)",f+1),a("}",f))};l&&(a("package main"),
i(),
a("import ("),a('"fmt"',f),d>0&&a('"time"',f),p&&a('"crypto/tls"',f),(null==e?void 0:e.text)&&a('"strings"',f),
a('"net/http"',f),
u&&a('"io"',f),a(")"),i(),a("func main() {"),i()),p&&(a("insecureTransport := http.DefaultTransport.(*http.Transport).Clone()",f),
a("insecureTransport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}",f))
;const g=d>0,v=g||p,b=v?"client":"http.DefaultClient"
;return v&&(a("client := http.Client{",f),
g&&a(`Timeout: time.Duration(${d} * time.Second),`,f+1),
p&&a("Transport: insecureTransport,",f+1),
a("}",f),i()),a(`url := "${r}"`,f),i(),
(null==e?void 0:e.text)?(a(`payload := strings.NewReader(${JSON.stringify(e.text)})`,f),
i(),
a(`req, ${h} := http.NewRequest("${t}", url, payload)`,f),i()):(a(`req, ${h} := http.NewRequest("${t}", url, nil)`,f),
i()),m(),Object.keys(n).length&&(Object.keys(n).forEach((e=>{
a(`req.Header.Add("${e}", "${Qf(n[e])}")`,f)
})),i()),a(`res, ${h} := ${b}.Do(req)`,f),
m(),u&&(i(),a("defer res.Body.Close()",f),
a(`body, ${h} := io.ReadAll(res.Body)`,f),
m()),i(),a("fmt.Println(res)",f),u&&a("fmt.Println(string(body))",f),
l&&(i(),a("}")),s()}}}},Gf={info:{key:"http",title:"HTTP",extname:null,
default:"1.1"},clientsById:{"http1.1":{info:{key:"http1.1",title:"HTTP/1.1",
link:"https://tools.ietf.org/html/rfc7230",
description:"HTTP/1.1 request string in accordance with RFC 7230"},
convert:({method:e,fullUrl:t,uriObj:n,httpVersion:r,allHeaders:o,postData:i},a)=>{
const s={absoluteURI:!1,autoContentLength:!0,autoHost:!0,...a
},{blank:l,push:c,join:u}=new Mf({indent:"",join:"\r\n"
}),d=s.absoluteURI?t:n.path;c(`${e} ${d} ${r}`);const p=Object.keys(o)
;p.forEach((e=>{
const t=e.toLowerCase().replace(/(^|-)(\w)/g,(e=>e.toUpperCase()))
;c(`${t}: ${o[e]}`)
})),s.autoHost&&!p.includes("host")&&c(`Host: ${n.host}`),s.autoContentLength&&(null==i?void 0:i.text)&&!p.includes("content-length")&&c(`Content-Length: ${i.text.length}`),
l();return`${u()}\r\n${(null==i?void 0:i.text)||""}`}}}},Kf={info:{key:"java",
title:"Java",extname:".java",default:"unirest"},clientsById:{asynchttp:{info:{
key:"asynchttp",title:"AsyncHttp",
link:"https://github.com/AsyncHttpClient/async-http-client",
description:"Asynchronous Http and WebSocket Client library for Java"},
convert:({method:e,allHeaders:t,postData:n,fullUrl:r},o)=>{const i={indent:"  ",
...o},{blank:a,push:s,join:l}=new Mf({indent:i.indent})
;return s("AsyncHttpClient client = new DefaultAsyncHttpClient();"),
s(`client.prepare("${e.toUpperCase()}", "${r}")`),Object.keys(t).forEach((e=>{
s(`.setHeader("${e}", "${Qf(t[e])}")`,1)
})),(null==n?void 0:n.text)&&s(`.setBody(${JSON.stringify(n.text)})`,1),
s(".execute()",1),
s(".toCompletableFuture()",1),s(".thenAccept(System.out::println)",1),
s(".join();",1),a(),s("client.close();"),l()}},nethttp:{info:{key:"nethttp",
title:"java.net.http",
link:"https://openjdk.java.net/groups/net/httpclient/intro.html",
description:"Java Standardized HTTP Client API"},
convert:({allHeaders:e,fullUrl:t,method:n,postData:r},o)=>{const i={indent:"  ",
...o},{push:a,join:s}=new Mf({indent:i.indent})
;return a("HttpRequest request = HttpRequest.newBuilder()"),
a(`.uri(URI.create("${t}"))`,2),Object.keys(e).forEach((t=>{
a(`.header("${t}", "${Qf(e[t])}")`,2)
})),(null==r?void 0:r.text)?a(`.method("${n.toUpperCase()}", HttpRequest.BodyPublishers.ofString(${JSON.stringify(r.text)}))`,2):a(`.method("${n.toUpperCase()}", HttpRequest.BodyPublishers.noBody())`,2),
a(".build();",2),
a("HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"),
a("System.out.println(response.body());"),s()}},okhttp:{info:{key:"okhttp",
title:"OkHttp",link:"http://square.github.io/okhttp/",
description:"An HTTP Request Client Library"},
convert:({postData:e,method:t,fullUrl:n,allHeaders:r},o)=>{const i={indent:"  ",
...o},{push:a,blank:s,join:l}=new Mf({indent:i.indent})
;return a("OkHttpClient client = new OkHttpClient();"),
s(),(null==e?void 0:e.text)&&(e.boundary?a(`MediaType mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}");`):a(`MediaType mediaType = MediaType.parse("${e.mimeType}");`),
a(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`)),
a("Request request = new Request.Builder()"),
a(`.url("${n}")`,1),["GET","POST","PUT","DELETE","PATCH","HEAD"].includes(t.toUpperCase())?["POST","PUT","DELETE","PATCH"].includes(t.toUpperCase())?(null==e?void 0:e.text)?a(`.${t.toLowerCase()}(body)`,1):a(`.${t.toLowerCase()}(null)`,1):a(`.${t.toLowerCase()}()`,1):(null==e?void 0:e.text)?a(`.method("${t.toUpperCase()}", body)`,1):a(`.method("${t.toUpperCase()}", null)`,1),
Object.keys(r).forEach((e=>{a(`.addHeader("${e}", "${Qf(r[e])}")`,1)
})),a(".build();",1),
s(),a("Response response = client.newCall(request).execute();"),l()}},unirest:{
info:{key:"unirest",title:"Unirest",link:"http://unirest.io/java.html",
description:"Lightweight HTTP Request Client Library"},
convert:({method:e,allHeaders:t,postData:n,fullUrl:r},o)=>{const i={indent:"  ",
...o},{join:a,push:s}=new Mf({indent:i.indent})
;return["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(e.toUpperCase())?s(`HttpResponse<String> response = Unirest.${e.toLowerCase()}("${r}")`):s(`HttpResponse<String> response = Unirest.customMethod("${e.toUpperCase()}","${r}")`),
Object.keys(t).forEach((e=>{s(`.header("${e}", "${Qf(t[e])}")`,1)
})),(null==n?void 0:n.text)&&s(`.body(${JSON.stringify(n.text)})`,1),
s(".asString();",1),a()}}}};function Jf(e){
return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e
}var em={};Object.defineProperty(em,"__esModule",{value:!0
}),em.default=e=>Object.getOwnPropertySymbols(e).filter((t=>Object.prototype.propertyIsEnumerable.call(e,t)))
;const tm=function(e){
return"[object RegExp]"===Object.prototype.toString.call(e)},nm=function(e){
var t=typeof e;return null!==e&&("object"===t||"function"===t)},rm=em.default
;var om=(e,t,n)=>{const r=[];return function e(t,n,o){let i
;(n=n||{}).indent=n.indent||"\t",o=o||"",i=void 0===n.inlineCharacterLimit?{
newLine:"\n",newLineOrSpace:"\n",pad:o,indent:o+n.indent}:{
newLine:"@@__STRINGIFY_OBJECT_NEW_LINE__@@",
newLineOrSpace:"@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@",
pad:"@@__STRINGIFY_OBJECT_PAD__@@",indent:"@@__STRINGIFY_OBJECT_INDENT__@@"}
;const a=e=>{if(void 0===n.inlineCharacterLimit)return e
;const t=e.replace(new RegExp(i.newLine,"g"),"").replace(new RegExp(i.newLineOrSpace,"g")," ").replace(new RegExp(i.pad+"|"+i.indent,"g"),"")
;return t.length<=n.inlineCharacterLimit?t:e.replace(new RegExp(i.newLine+"|"+i.newLineOrSpace,"g"),"\n").replace(new RegExp(i.pad,"g"),o).replace(new RegExp(i.indent,"g"),o+n.indent)
};if(-1!==r.indexOf(t))return'"[Circular]"'
;if(null==t||"number"==typeof t||"boolean"==typeof t||"function"==typeof t||"symbol"==typeof t||tm(t))return String(t)
;if(t instanceof Date)return`new Date('${t.toISOString()}')`
;if(Array.isArray(t)){if(0===t.length)return"[]";r.push(t)
;const s="["+i.newLine+t.map(((r,a)=>{
const s=t.length-1===a?i.newLine:","+i.newLineOrSpace;let l=e(r,n,o+n.indent)
;return n.transform&&(l=n.transform(t,a,l)),i.indent+l+s})).join("")+i.pad+"]"
;return r.pop(),a(s)}if(nm(t)){let s=Object.keys(t).concat(rm(t))
;if(n.filter&&(s=s.filter((e=>n.filter(t,e)))),0===s.length)return"{}";r.push(t)
;const l="{"+i.newLine+s.map(((r,a)=>{
const l=s.length-1===a?i.newLine:","+i.newLineOrSpace,c="symbol"==typeof r,u=!c&&/^[a-z$_][a-z$_0-9]*$/i.test(r),d=c||u?r:e(r,n)
;let p=e(t[r],n,o+n.indent)
;return n.transform&&(p=n.transform(t,r,p)),i.indent+String(d)+": "+p+l
})).join("")+i.pad+"}";return r.pop(),a(l)}
return t=String(t).replace(/[\r\n]/g,(e=>"\n"===e?"\\n":"\\r")),
!1===n.singleQuotes?`"${t=t.replace(/"/g,'\\"')}"`:`'${t=t.replace(/\\?'/g,"\\'")}'`
}(e,t,n)};const im=Jf(om),am={info:{key:"javascript",title:"JavaScript",
extname:".js",default:"xhr"},clientsById:{xhr:{info:{key:"xhr",
title:"XMLHttpRequest",
link:"https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest",
description:"W3C Standard API that provides scripted client functionality"},
convert:({postData:e,allHeaders:t,method:n,fullUrl:r},o)=>{var i;const a={
indent:"  ",cors:!0,...o},{blank:s,push:l,join:c}=new Mf({indent:a.indent})
;switch(null==e?void 0:e.mimeType){case"application/json":
l(`const data = JSON.stringify(${im(e.jsonObj,{indent:a.indent})});`),s();break
;case"multipart/form-data":if(!e.params)break
;if(l("const data = new FormData();"),e.params.forEach((e=>{
l(`data.append('${e.name}', '${e.value||e.fileName||""}');`)
})),Df(t,"content-type")&&(null===(i=Pf(t,"content-type"))||void 0===i?void 0:i.includes("boundary"))){
const e=Af(t,"content-type");e&&delete t[e]}s();break;default:
l(`const data = ${(null==e?void 0:e.text)?`'${e.text}'`:"null"};`),s()}
return l("const xhr = new XMLHttpRequest();"),
a.cors&&l("xhr.withCredentials = true;"),
s(),l("xhr.addEventListener('readystatechange', function () {"),
l("if (this.readyState === this.DONE) {",1),
l("console.log(this.responseText);",2),
l("}",1),l("});"),s(),l(`xhr.open('${n}', '${r}');`),
Object.keys(t).forEach((e=>{l(`xhr.setRequestHeader('${e}', '${Bf(t[e])}');`)
})),s(),l("xhr.send(data);"),c()}},axios:{info:{key:"axios",title:"Axios",
link:"https://github.com/axios/axios",
description:"Promise based HTTP client for the browser and node.js"},
convert:({allHeaders:e,method:t,url:n,queryObj:r,postData:o},i)=>{const a={
indent:"  ",...i},{blank:s,push:l,join:c,addPostProcessor:u}=new Mf({
indent:a.indent});l("import axios from 'axios';"),s();const d={method:t,url:n}
;switch(Object.keys(r).length&&(d.params=r),
Object.keys(e).length&&(d.headers=e),null==o?void 0:o.mimeType){
case"application/x-www-form-urlencoded":
o.params&&(l("const encodedParams = new URLSearchParams();"),
o.params.forEach((e=>{l(`encodedParams.set('${e.name}', '${e.value}');`)})),s(),
d.data="encodedParams,",u((e=>e.replace(/'encodedParams,'/,"encodedParams,"))))
;break;case"application/json":o.jsonObj&&(d.data=o.jsonObj);break
;case"multipart/form-data":if(!o.params)break;l("const form = new FormData();"),
o.params.forEach((e=>{
l(`form.append('${e.name}', '${e.value||e.fileName||""}');`)
})),s(),d.data="[form]";break;default:(null==o?void 0:o.text)&&(d.data=o.text)}
const p=im(d,{indent:"  ",inlineCharacterLimit:80}).replace('"[form]"',"form")
;return l(`const options = ${p};`),
s(),l("try {"),l("const { data } = await axios.request(options);",1),
l("console.log(data);",1),
l("} catch (error) {"),l("console.error(error);",1),l("}"),c()}},fetch:{info:{
key:"fetch",title:"fetch",
link:"https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch",
description:"Perform asynchronous HTTP requests with the Fetch API"},
convert:({method:e,allHeaders:t,postData:n,fullUrl:r},o)=>{const i={indent:"  ",
credentials:null,...o},{blank:a,join:s,push:l}=new Mf({indent:i.indent}),c={
method:e}
;switch(Object.keys(t).length&&(c.headers=t),null!==i.credentials&&(c.credentials=i.credentials),
l(`const url = '${r}';`),null==n?void 0:n.mimeType){
case"application/x-www-form-urlencoded":c.body=n.paramsObj?n.paramsObj:n.text
;break;case"application/json":c.body=JSON.stringify(n.jsonObj);break
;case"multipart/form-data":if(!n.params)break;const e=Af(t,"content-type")
;e&&delete t[e],l("const form = new FormData();"),n.params.forEach((e=>{
l(`form.append('${e.name}', '${e.value||e.fileName||""}');`)})),a();break
;default:(null==n?void 0:n.text)&&(c.body=n.text)}
return c.headers&&!Object.keys(c.headers).length&&delete c.headers,
l(`const options = ${im(c,{indent:i.indent,inlineCharacterLimit:80,
transform:(e,t,r)=>"body"===t&&n&&"application/x-www-form-urlencoded"===n.mimeType?`new URLSearchParams(${r})`:r
})};`),
a(),(null==n?void 0:n.params)&&"multipart/form-data"===n.mimeType&&(l("options.body = form;"),
a()),
l("try {"),l("const response = await fetch(url, options);",1),l("const data = await response.json();",1),
l("console.log(data);",1),
l("} catch (error) {"),l("console.error(error);",1),l("}"),s()}},jquery:{info:{
key:"jquery",title:"jQuery",link:"http://api.jquery.com/jquery.ajax/",
description:"Perform an asynchronous HTTP (Ajax) requests with jQuery"},
convert:({fullUrl:e,method:t,allHeaders:n,postData:r},o)=>{var i;const a={
indent:"  ",...o},{blank:s,push:l,join:c}=new Mf({indent:a.indent}),u={async:!0,
crossDomain:!0,url:e,method:t,headers:n};switch(null==r?void 0:r.mimeType){
case"application/x-www-form-urlencoded":u.data=r.paramsObj?r.paramsObj:r.text
;break;case"application/json":u.processData=!1,u.data=r.text;break
;case"multipart/form-data":if(!r.params)break
;if(l("const form = new FormData();"),r.params.forEach((e=>{
l(`form.append('${e.name}', '${e.value||e.fileName||""}');`)
})),u.processData=!1,
u.contentType=!1,u.mimeType="multipart/form-data",u.data="[form]",
Df(n,"content-type")&&(null===(i=Pf(n,"content-type"))||void 0===i?void 0:i.includes("boundary"))){
const e=Af(n,"content-type");e&&delete u.headers[e]}s();break;default:
(null==r?void 0:r.text)&&(u.data=r.text)}const d=im(u,{indent:a.indent
}).replace("'[form]'","form")
;return l(`const settings = ${d};`),s(),l("$.ajax(settings).done(function (response) {"),
l("console.log(response);",1),l("});"),c()}}}},sm={info:{key:"kotlin",
title:"Kotlin",extname:".kt",default:"okhttp"},clientsById:{okhttp:{info:{
key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",
description:"An HTTP Request Client Library"},
convert:({postData:e,fullUrl:t,method:n,allHeaders:r},o)=>{const i={indent:"  ",
...o},{blank:a,join:s,push:l}=new Mf({indent:i.indent})
;return l("val client = OkHttpClient()"),
a(),(null==e?void 0:e.text)&&(e.boundary?l(`val mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}")`):l(`val mediaType = MediaType.parse("${e.mimeType}")`),
l(`val body = RequestBody.create(mediaType, ${JSON.stringify(e.text)})`)),
l("val request = Request.Builder()"),
l(`.url("${t}")`,1),["GET","POST","PUT","DELETE","PATCH","HEAD"].includes(n.toUpperCase())?["POST","PUT","DELETE","PATCH"].includes(n.toUpperCase())?(null==e?void 0:e.text)?l(`.${n.toLowerCase()}(body)`,1):l(`.${n.toLowerCase()}(null)`,1):l(`.${n.toLowerCase()}()`,1):(null==e?void 0:e.text)?l(`.method("${n.toUpperCase()}", body)`,1):l(`.method("${n.toUpperCase()}", null)`,1),
Object.keys(r).forEach((e=>{l(`.addHeader("${e}", "${Qf(r[e])}")`,1)
})),l(".build()",1),
a(),l("val response = client.newCall(request).execute()"),s()}}}},lm={info:{
key:"node",title:"Node.js",extname:".js",default:"native"},clientsById:{native:{
info:{key:"native",title:"HTTP",
link:"http://nodejs.org/api/http.html#http_http_request_options_callback",
description:"Node.js native HTTP interface"},
convert:({uriObj:e,method:t,allHeaders:n,postData:r},o={})=>{
const{indent:i="  ",insecureSkipVerify:a=!1}=o,{blank:s,join:l,push:c,unshift:u}=new Mf({
indent:i}),d={method:t,hostname:e.hostname,port:""===e.port?null:e.port,
path:e.path,headers:n,...a?{rejectUnauthorized:!1}:{}}
;switch(c(`const http = require('${e.protocol.replace(":","")}');`),
s(),c(`const options = ${im(d,{indent:i
})};`),s(),c("const req = http.request(options, function (res) {"),
c("const chunks = [];",1),
s(),c("res.on('data', function (chunk) {",1),c("chunks.push(chunk);",2),
c("});",1),
s(),c("res.on('end', function () {",1),c("const body = Buffer.concat(chunks);",2),
c("console.log(body.toString());",2),
c("});",1),c("});"),s(),null==r?void 0:r.mimeType){
case"application/x-www-form-urlencoded":
r.paramsObj&&(u("const qs = require('querystring');"),
c(`req.write(qs.stringify(${im(r.paramsObj,{indent:"  ",inlineCharacterLimit:80
})}));`));break;case"application/json":
r.jsonObj&&c(`req.write(JSON.stringify(${im(r.jsonObj,{indent:"  ",
inlineCharacterLimit:80})}));`);break;default:
(null==r?void 0:r.text)&&c(`req.write(${im(r.text,{indent:i})});`)}
return c("req.end();"),l()}},request:{info:{key:"request",title:"Request",
link:"https://github.com/request/request",
description:"Simplified HTTP request client"},
convert:({method:e,url:t,queryObj:n,postData:r,headersObj:o,cookies:i},a)=>{
const s={indent:"  ",...a};let l=!1
;const{push:c,blank:u,join:d,unshift:p}=new Mf({indent:s.indent})
;c("const request = require('request');"),u();const h={method:e,url:t}
;switch(Object.keys(n).length&&(h.qs=n),
Object.keys(o).length&&(h.headers=o),null==r?void 0:r.mimeType){
case"application/x-www-form-urlencoded":h.form=r.paramsObj;break
;case"application/json":r.jsonObj&&(h.body=r.jsonObj,h.json=!0);break
;case"multipart/form-data":if(!r.params)break
;h.formData={},r.params.forEach((e=>{
if(!e.fileName&&!e.fileName&&!e.contentType)return void(h.formData[e.name]=e.value)
;let t={};e.fileName?(l=!0,t={value:`fs.createReadStream(${e.fileName})`,
options:{filename:e.fileName,contentType:e.contentType?e.contentType:null}
}):e.value&&(t.value=e.value),h.formData[e.name]=t}));break;default:
(null==r?void 0:r.text)&&(h.body=r.text)}
return i.length&&(h.jar="JAR",c("const jar = request.jar();"),i.forEach((e=>{
c(`jar.setCookie(request.cookie('${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}'), '${t}');`)
})),u()),l&&p("const fs = require('fs');"),c(`const options = ${im(h,{
indent:"  ",inlineCharacterLimit:80
})};`),u(),c("request(options, function (error, response, body) {"),
c("if (error) throw new Error(error);",1),
u(),c("console.log(body);",1),c("});"),
d().replace("'JAR'","jar").replace(/'fs\.createReadStream\((.*)\)'/,"fs.createReadStream('$1')")
}},unirest:{info:{key:"unirest",title:"Unirest",
link:"http://unirest.io/nodejs.html",
description:"Lightweight HTTP Request Client Library"},
convert:({method:e,url:t,cookies:n,queryObj:r,postData:o,headersObj:i},a)=>{
const s={indent:"  ",...a};let l=!1
;const{addPostProcessor:c,blank:u,join:d,push:p,unshift:h}=new Mf({
indent:s.indent})
;switch(p("const unirest = require('unirest');"),u(),p(`const req = unirest('${e}', '${t}');`),
u(),n.length&&(p("const CookieJar = unirest.jar();"),n.forEach((e=>{
p(`CookieJar.add('${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}', '${t}');`)
})),p("req.jar(CookieJar);"),u()),Object.keys(r).length&&(p(`req.query(${im(r,{
indent:s.indent})});`),u()),Object.keys(i).length&&(p(`req.headers(${im(i,{
indent:s.indent})});`),u()),null==o?void 0:o.mimeType){
case"application/x-www-form-urlencoded":
o.paramsObj&&(p(`req.form(${im(o.paramsObj,{indent:s.indent})});`),u());break
;case"application/json":
o.jsonObj&&(p("req.type('json');"),p(`req.send(${im(o.jsonObj,{indent:s.indent
})});`),u());break;case"multipart/form-data":{if(!o.params)break;const e=[]
;o.params.forEach((t=>{const n={}
;t.fileName&&!t.value?(l=!0,n.body=`fs.createReadStream('${t.fileName}')`,
c((e=>e.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/,"fs.createReadStream('$1')")))):t.value&&(n.body=t.value),
n.body&&(t.contentType&&(n["content-type"]=t.contentType),e.push(n))
})),p(`req.multipart(${im(e,{indent:s.indent})});`),u();break}default:
(null==o?void 0:o.text)&&(p(`req.send(${im(o.text,{indent:s.indent})});`),u())}
return l&&h("const fs = require('fs');"),
p("req.end(function (res) {"),p("if (res.error) throw new Error(res.error);",1),
u(),p("console.log(res.body);",1),p("});"),d()}},axios:{info:{key:"axios",
title:"Axios",link:"https://github.com/axios/axios",
description:"Promise based HTTP client for the browser and node.js"},
convert:({method:e,url:t,queryObj:n,allHeaders:r,postData:o},i)=>{const a={
indent:"  ",...i},{blank:s,join:l,push:c,addPostProcessor:u}=new Mf({
indent:a.indent});c("const axios = require('axios').default;");const d={
method:e,url:t}
;switch(Object.keys(n).length&&(d.params=n),Object.keys(r).length&&(d.headers=r),
null==o?void 0:o.mimeType){case"application/x-www-form-urlencoded":
o.params&&(c("const { URLSearchParams } = require('url');"),
s(),c("const encodedParams = new URLSearchParams();"),o.params.forEach((e=>{
c(`encodedParams.set('${e.name}', '${e.value}');`)
})),s(),d.data="encodedParams,",
u((e=>e.replace(/'encodedParams,'/,"encodedParams,"))));break
;case"application/json":s(),o.jsonObj&&(d.data=o.jsonObj);break;default:
s(),(null==o?void 0:o.text)&&(d.data=o.text)}const p=im(d,{indent:"  ",
inlineCharacterLimit:80})
;return c(`const options = ${p};`),s(),c("try {"),c("const { data } = await axios.request(options);",1),
c("console.log(data);",1),
c("} catch (error) {"),c("console.error(error);",1),c("}"),l()}},fetch:{info:{
key:"fetch",title:"Fetch",link:"https://github.com/bitinn/node-fetch",
description:"Simplified HTTP node-fetch client"},
convert:({method:e,fullUrl:t,postData:n,headersObj:r,cookies:o},i)=>{var a
;const s={indent:"  ",...i};let l=!1
;const{blank:c,push:u,join:d,unshift:p}=new Mf({indent:s.indent})
;u("const fetch = require('node-fetch');"),c();const h={method:e}
;switch(Object.keys(r).length&&(h.headers=r),null==n?void 0:n.mimeType){
case"application/x-www-form-urlencoded":
p("const { URLSearchParams } = require('url');"),
u("const encodedParams = new URLSearchParams();"),
null===(a=n.params)||void 0===a||a.forEach((e=>{
u(`encodedParams.set('${e.name}', '${e.value}');`)})),c(),h.body="encodedParams"
;break;case"application/json":n.jsonObj&&(h.body=JSON.stringify(n.jsonObj))
;break;case"multipart/form-data":if(!n.params)break;const e=Af(r,"content-type")
;e&&delete r[e],
p("const FormData = require('form-data');"),u("const formData = new FormData();"),
n.params.forEach((e=>{
e.fileName||e.fileName||e.contentType?e.fileName&&(l=!0,u(`formData.append('${e.name}', fs.createReadStream('${e.fileName}'));`)):u(`formData.append('${e.name}', '${e.value}');`)
})),c();break;default:(null==n?void 0:n.text)&&(h.body=n.text)}if(o.length){
const e=o.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`)).join("; ")
;h.headers||(h.headers={}),h.headers.cookie=e}
u(`const url = '${t}';`),h.headers&&!Object.keys(h.headers).length&&delete h.headers
;const f=im(h,{indent:"  ",inlineCharacterLimit:80})
;return u(`const options = ${f};`),
l&&p("const fs = require('fs');"),(null==n?void 0:n.params)&&"multipart/form-data"===n.mimeType&&u("options.body = formData;"),
c(),
u("try {"),u("const response = await fetch(url, options);",1),u("const data = await response.json();",1),
u("console.log(data);",1),
u("} catch (error) {"),u("console.error(error);",1),u("}"),
d().replace(/'encodedParams'/,"encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/,'fs.createReadStream("$1")')
}}}},cm=(e,t,n,r)=>{const o=`${e} *${t} = `
;return`${o}${um(n,r?o.length:void 0)};`},um=(e,t)=>{
const n=void 0===t?", ":`,\n   ${" ".repeat(t)}`
;switch(Object.prototype.toString.call(e)){case"[object Number]":return`@${e}`
;case"[object Array]":return`@[ ${e.map((e=>um(e))).join(n)} ]`
;case"[object Object]":{const t=[]
;for(const n in e)t.push(`@"${n}": ${um(e[n])}`);return`@{ ${t.join(n)} }`}
case"[object Boolean]":return e?"@YES":"@NO";default:
return null==e?"":`@"${e.toString().replace(/"/g,'\\"')}"`}},dm={info:{
key:"objc",title:"Objective-C",extname:".m",default:"nsurlsession"},
clientsById:{nsurlsession:{info:{key:"nsurlsession",title:"NSURLSession",
link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",
description:"Foundation's NSURLSession request"},
convert:({allHeaders:e,postData:t,method:n,fullUrl:r},o)=>{var i;const a={
indent:"    ",pretty:!0,timeout:10,...o},{push:s,join:l,blank:c}=new Mf({
indent:a.indent}),u={hasHeaders:!1,hasBody:!1}
;if(s("#import <Foundation/Foundation.h>"),
Object.keys(e).length&&(u.hasHeaders=!0,
c(),s(cm("NSDictionary","headers",e,a.pretty))),
t&&(t.text||t.jsonObj||t.params))switch(u.hasBody=!0,t.mimeType){
case"application/x-www-form-urlencoded":
if(null===(i=t.params)||void 0===i?void 0:i.length){c();const[e,...n]=t.params
;s(`NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"${e.name}=${e.value}" dataUsingEncoding:NSUTF8StringEncoding]];`),
n.forEach((({name:e,value:t})=>{
s(`[postData appendData:[@"&${e}=${t}" dataUsingEncoding:NSUTF8StringEncoding]];`)
}))}else u.hasBody=!1;break;case"application/json":
t.jsonObj&&(s(cm("NSDictionary","parameters",t.jsonObj,a.pretty)),
c(),s("NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];"))
;break;case"multipart/form-data":
s(cm("NSArray","parameters",t.params||[],a.pretty)),
s(`NSString *boundary = @"${t.boundary}";`),
c(),s("NSError *error;"),s("NSMutableString *body = [NSMutableString string];"),
s("for (NSDictionary *param in parameters) {"),
s('[body appendFormat:@"--%@\\r\\n", boundary];',1),
s('if (param[@"fileName"]) {',1),
s('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"; filename=\\"%@\\"\\r\\n", param[@"name"], param[@"fileName"]];',2),
s('[body appendFormat:@"Content-Type: %@\\r\\n\\r\\n", param[@"contentType"]];',2),
s('[body appendFormat:@"%@", [NSString stringWithContentsOfFile:param[@"fileName"] encoding:NSUTF8StringEncoding error:&error]];',2),
s("if (error) {",2),
s('NSLog(@"%@", error);',3),s("}",2),s("} else {",1),s('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"\\r\\n\\r\\n", param[@"name"]];',2),
s('[body appendFormat:@"%@", param[@"value"]];',2),
s("}",1),s("}"),s('[body appendFormat:@"\\r\\n--%@--\\r\\n", boundary];'),
s("NSData *postData = [body dataUsingEncoding:NSUTF8StringEncoding];");break
;default:
c(),s(`NSData *postData = [[NSData alloc] initWithData:[@"${t.text}" dataUsingEncoding:NSUTF8StringEncoding]];`)
}
return c(),s(`NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"${r}"]`),
s("                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy"),
s(`                                                   timeoutInterval:${a.timeout.toFixed(1)}];`),
s(`[request setHTTPMethod:@"${n}"];`),
u.hasHeaders&&s("[request setAllHTTPHeaderFields:headers];"),
u.hasBody&&s("[request setHTTPBody:postData];"),
c(),s("NSURLSession *session = [NSURLSession sharedSession];"),
s("NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request"),
s("                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {"),
s("                                            if (error) {",1),
s('                                            NSLog(@"%@", error);',2),
s("                                            } else {",1),
s("                                            NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;",2),
s('                                            NSLog(@"%@", httpResponse);',2),
s("                                            }",1),
s("                                            }];"),s("[dataTask resume];"),l()
}}}},pm={info:{key:"ocaml",title:"OCaml",extname:".ml",default:"cohttp"},
clientsById:{cohttp:{info:{key:"cohttp",title:"CoHTTP",
link:"https://github.com/mirage/ocaml-cohttp",
description:"Cohttp is a very lightweight HTTP server using Lwt or Async for OCaml"
},convert:({fullUrl:e,allHeaders:t,postData:n,method:r},o)=>{const i={
indent:"  ",...o},{push:a,blank:s,join:l}=new Mf({indent:i.indent})
;a("open Cohttp_lwt_unix"),
a("open Cohttp"),a("open Lwt"),s(),a(`let uri = Uri.of_string "${e}" in`)
;const c=Object.keys(t)
;1===c.length?a(`let headers = Header.add (Header.init ()) "${c[0]}" "${Qf(t[c[0]])}" in`):c.length>1&&(a("let headers = Header.add_list (Header.init ()) ["),
c.forEach((e=>{a(`("${e}", "${Qf(t[e])}");`,1)
})),a("] in")),(null==n?void 0:n.text)&&a(`let body = Cohttp_lwt_body.of_string ${JSON.stringify(n.text)} in`),
s()
;const u=c.length?"~headers ":"",d=(null==n?void 0:n.text)?"~body ":"",p=["get","post","head","delete","patch","put","options"].includes(r.toLowerCase())?`\`${r.toUpperCase()}`:`(Code.method_of_string "${r}")`
;return a(`Client.call ${u}${d}${p} uri`),
a(">>= fun (res, body_stream) ->"),a("(* Do stuff with the result *)",1),l()}}}
},hm=(e,t,n)=>{switch(n=n||"",t=t||"",Object.prototype.toString.call(e)){
case"[object Null]":case"[object Undefined]":default:return"null"
;case"[object String]":return`'${Lf(e,{delimiter:"'",escapeNewlines:!1})}'`
;case"[object Number]":return e.toString();case"[object Array]":{
const r=e.map((e=>hm(e,`${t}${t}`,t))).join(`,\n${t}`)
;return`[\n${t}${r}\n${n}]`}case"[object Object]":{const r=[]
;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.push(`${hm(n,t)} => ${hm(e[n],`${t}${t}`,t)}`)
;return`[\n${t}${r.join(`,\n${t}`)}\n${n}]`}}
},fm=["ACL","BASELINE_CONTROL","CHECKIN","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LABEL","LOCK","MERGE","MKACTIVITY","MKCOL","MKWORKSPACE","MOVE","OPTIONS","POST","PROPFIND","PROPPATCH","PUT","REPORT","TRACE","UNCHECKOUT","UNLOCK","UPDATE","VERSION_CONTROL"],mm={
info:{key:"php",title:"PHP",extname:".php",default:"curl"},clientsById:{curl:{
info:{key:"curl",title:"cURL",link:"http://php.net/manual/en/book.curl.php",
description:"PHP with ext-curl"},
convert:({uriObj:e,postData:t,fullUrl:n,method:r,httpVersion:o,cookies:i,headersObj:a},s={})=>{
const{closingTag:l=!1,indent:c="  ",maxRedirects:u=10,namedErrors:d=!1,noTags:p=!1,shortTags:h=!1,timeout:f=30}=s,{push:m,blank:g,join:v}=new Mf({
indent:c});p||(m(h?"<?":"<?php"),g()),m("$curl = curl_init();"),g();const b=[{
escape:!0,name:"CURLOPT_PORT",value:""===e.port?null:e.port},{escape:!0,
name:"CURLOPT_URL",value:n},{escape:!1,name:"CURLOPT_RETURNTRANSFER",
value:"true"},{escape:!0,name:"CURLOPT_ENCODING",value:""},{escape:!1,
name:"CURLOPT_MAXREDIRS",value:u},{escape:!1,name:"CURLOPT_TIMEOUT",value:f},{
escape:!1,name:"CURLOPT_HTTP_VERSION",
value:"HTTP/1.0"===o?"CURL_HTTP_VERSION_1_0":"CURL_HTTP_VERSION_1_1"},{
escape:!0,name:"CURLOPT_CUSTOMREQUEST",value:r},{
escape:!(null==t?void 0:t.jsonObj),name:"CURLOPT_POSTFIELDS",
value:t?t.jsonObj?`json_encode(${hm(t.jsonObj,c.repeat(2),c)})`:t.text:void 0}]
;m("curl_setopt_array($curl, [");const O=new Mf({indent:c,join:`\n${c}`})
;b.forEach((({value:e,name:t,escape:n})=>{
null!=e&&O.push(`${t} => ${n?JSON.stringify(e):e},`)}))
;const y=i.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`))
;y.length&&O.push(`CURLOPT_COOKIE => "${y.join("; ")}",`)
;const w=Object.keys(a).sort().map((e=>`"${e}: ${Qf(a[e])}"`))
;return w.length&&(O.push("CURLOPT_HTTPHEADER => ["),
O.push(w.join(`,\n${c}${c}`),1),
O.push("],")),m(O.join(),1),m("]);"),g(),m("$response = curl_exec($curl);"),
m("$err = curl_error($curl);"),g(),m("curl_close($curl);"),g(),m("if ($err) {"),
m(d?'echo array_flip(get_defined_constants(true)["curl"])[$err];':'echo "cURL Error #:" . $err;',1),
m("} else {"),m("echo $response;",1),m("}"),!p&&l&&(g(),m("?>")),v()}},guzzle:{
info:{key:"guzzle",title:"Guzzle",link:"http://docs.guzzlephp.org/en/stable/",
description:"PHP with Guzzle"},
convert:({postData:e,fullUrl:t,method:n,cookies:r,headersObj:o},i)=>{var a
;const s={closingTag:!1,indent:"  ",noTags:!1,shortTags:!1,...i
},{push:l,blank:c,join:u}=new Mf({indent:s.indent
}),{code:d,push:p,join:h}=new Mf({indent:s.indent})
;switch(s.noTags||(l(s.shortTags?"<?":"<?php"),c()),null==e?void 0:e.mimeType){
case"application/x-www-form-urlencoded":
p(`'form_params' => ${hm(e.paramsObj,s.indent+s.indent,s.indent)},`,1);break
;case"multipart/form-data":{const t=[]
;if(e.params&&e.params.forEach((function(e){if(e.fileName){const n={name:e.name,
filename:e.fileName,contents:e.value};e.contentType&&(n.headers={
"Content-Type":e.contentType}),t.push(n)}else e.value&&t.push({name:e.name,
contents:e.value})
})),t.length&&(p(`'multipart' => ${hm(t,s.indent+s.indent,s.indent)}`,1),
Df(o,"content-type")&&(null===(a=Pf(o,"content-type"))||void 0===a?void 0:a.indexOf("boundary")))){
const e=Af(o,"content-type");e&&delete o[e]}break}default:
(null==e?void 0:e.text)&&p(`'body' => ${hm(e.text)},`,1)}
const f=Object.keys(o).sort().map((function(e){
return`${s.indent}${s.indent}'${e}' => '${Bf(o[e])}',`
})),m=r.map((e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`)).join("; ")
;return m.length&&f.push(`${s.indent}${s.indent}'cookie' => '${Bf(m)}',`),
f.length&&(p("'headers' => [",1),
p(f.join("\n")),p("],",1)),l("$client = new \\GuzzleHttp\\Client();"),
c(),d.length?(l(`$response = $client->request('${n}', '${t}', [`),
l(h()),l("]);")):l(`$response = $client->request('${n}', '${t}');`),
c(),l("echo $response->getBody();"),!s.noTags&&s.closingTag&&(c(),l("?>")),u()}
},http1:{info:{key:"http1",title:"HTTP v1",
link:"http://php.net/manual/en/book.http.php",
description:"PHP with pecl/http v1"},
convert:({method:e,url:t,postData:n,queryObj:r,headersObj:o,cookiesObj:i},a={})=>{
const{closingTag:s=!1,indent:l="  ",noTags:c=!1,shortTags:u=!1}=a,{push:d,blank:p,join:h}=new Mf({
indent:l})
;switch(c||(d(u?"<?":"<?php"),p()),fm.includes(e.toUpperCase())||d(`HttpRequest::methodRegister('${e}');`),
d("$request = new HttpRequest();"),
d(`$request->setUrl(${hm(t)});`),fm.includes(e.toUpperCase())?d(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`):d(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`),
p(),
Object.keys(r).length&&(d(`$request->setQueryData(${hm(r,l)});`),p()),Object.keys(o).length&&(d(`$request->setHeaders(${hm(o,l)});`),
p()),
Object.keys(i).length&&(d(`$request->setCookies(${hm(i,l)});`),p()),null==n?void 0:n.mimeType){
case"application/x-www-form-urlencoded":
d(`$request->setContentType(${hm(n.mimeType)});`),
d(`$request->setPostFields(${hm(n.paramsObj,l)});`),p();break
;case"application/json":
d(`$request->setContentType(${hm(n.mimeType)});`),d(`$request->setBody(json_encode(${hm(n.jsonObj,l)}));`),
p();break;default:
(null==n?void 0:n.text)&&(d(`$request->setBody(${hm(n.text)});`),p())}
return d("try {"),
d("$response = $request->send();",1),p(),d("echo $response->getBody();",1),
d("} catch (HttpException $ex) {"),d("echo $ex;",1),d("}"),!c&&s&&(p(),d("?>")),
h()}},http2:{info:{key:"http2",title:"HTTP v2",
link:"http://devel-m6w6.rhcloud.com/mdref/http",
description:"PHP with pecl/http v2"},
convert:({postData:e,headersObj:t,method:n,queryObj:r,cookiesObj:o,url:i},a={})=>{
var s
;const{closingTag:l=!1,indent:c="  ",noTags:u=!1,shortTags:d=!1}=a,{push:p,blank:h,join:f}=new Mf({
indent:c});let m=!1
;switch(u||(p(d?"<?":"<?php"),h()),p("$client = new http\\Client;"),
p("$request = new http\\Client\\Request;"),h(),null==e?void 0:e.mimeType){
case"application/x-www-form-urlencoded":
p("$body = new http\\Message\\Body;"),p(`$body->append(new http\\QueryString(${hm(e.paramsObj,c)}));`),
h(),m=!0;break;case"multipart/form-data":{if(!e.params)break;const n=[],r={}
;e.params.forEach((({name:e,fileName:t,value:o,contentType:i})=>{t?n.push({
name:e,type:i,file:t,data:o}):o&&(r[e]=o)}))
;const o=Object.keys(r).length?hm(r,c):"null",i=n.length?hm(n,c):"null"
;if(p("$body = new http\\Message\\Body;"),
p(`$body->addForm(${o}, ${i});`),Df(t,"content-type")&&(null===(s=Pf(t,"content-type"))||void 0===s?void 0:s.indexOf("boundary"))){
const e=Af(t,"content-type");e&&delete t[e]}h(),m=!0;break}
case"application/json":
p("$body = new http\\Message\\Body;"),p(`$body->append(json_encode(${hm(e.jsonObj,c)}));`),
m=!0;break;default:
(null==e?void 0:e.text)&&(p("$body = new http\\Message\\Body;"),
p(`$body->append(${hm(e.text)});`),h(),m=!0)}
return p(`$request->setRequestUrl(${hm(i)});`),
p(`$request->setRequestMethod(${hm(n)});`),
m&&(p("$request->setBody($body);"),h()),
Object.keys(r).length&&(p(`$request->setQuery(new http\\QueryString(${hm(r,c)}));`),
h()),
Object.keys(t).length&&(p(`$request->setHeaders(${hm(t,c)});`),h()),Object.keys(o).length&&(h(),
p(`$client->setCookies(${hm(o,c)});`),
h()),p("$client->enqueue($request)->send();"),
p("$response = $client->getResponse();"),
h(),p("echo $response->getBody();"),!u&&l&&(h(),p("?>")),f()}}}
},gm=e=>({method:t,headersObj:n,cookies:r,uriObj:o,fullUrl:i,postData:a,allHeaders:s})=>{
const{push:l,join:c}=new Mf
;if(!["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(t.toUpperCase()))return"Method not supported"
;const u=[],d=Object.keys(n);return d.length&&(l("$headers=@{}"),d.forEach((e=>{
"connection"!==e&&l(`$headers.Add("${e}", "${Lf(n[e],{escapeChar:"`"})}")`)
})),u.push("-Headers $headers")),
r.length&&(l("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"),
r.forEach((e=>{
l("$cookie = New-Object System.Net.Cookie"),l(`$cookie.Name = '${e.name}'`),
l(`$cookie.Value = '${e.value}'`),
l(`$cookie.Domain = '${o.host}'`),l("$session.Cookies.Add($cookie)")
})),u.push("-WebSession $session")),
(null==a?void 0:a.text)&&(u.push(`-ContentType '${Lf(Pf(s,"content-type"),{
delimiter:"'",escapeChar:"`"
})}'`),u.push(`-Body '${a.text}'`)),l(`$response = ${e} -Uri '${i}' -Method ${t} ${u.join(" ")}`),
c()},vm={info:{key:"restmethod",title:"Invoke-RestMethod",
link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-RestMethod",
description:"Powershell Invoke-RestMethod client"},
convert:gm("Invoke-RestMethod")},bm={info:{key:"webrequest",
title:"Invoke-WebRequest",
link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-WebRequest",
description:"Powershell Invoke-WebRequest client"},
convert:gm("Invoke-WebRequest")};function Om(e,t,n,r,o){
const i=r.repeat(o),a=r.repeat(o-1),s=n?`,\n${i}`:", ",l="object"===e?"{":"[",c="object"===e?"}":"]"
;return n?`${l}\n${i}${t.join(s)}\n${a}${c}`:"object"===e&&t.length>0?`${l} ${t.join(s)} ${c}`:`${l}${t.join(s)}${c}`
}const ym=(e,t,n)=>{
switch(n=void 0===n?1:n+1,Object.prototype.toString.call(e)){
case"[object Number]":return e;case"[object Array]":{let r=!1
;return Om("array",e.map((e=>("[object Object]"===Object.prototype.toString.call(e)&&(r=Object.keys(e).length>1),
ym(e,t,n)))),r,t.indent,n)}case"[object Object]":{const r=[]
;for(const o in e)r.push(`"${o}": ${ym(e[o],t,n)}`)
;return Om("object",r,t.pretty&&r.length>1,t.indent,n)}case"[object Null]":
return"None";case"[object Boolean]":return e?"True":"False";default:
return null==e?"":`"${e.toString().replace(/"/g,'\\"')}"`}
},wm=["HEAD","GET","POST","PUT","PATCH","DELETE","OPTIONS"],xm={info:{
key:"httr",title:"httr",
link:"https://cran.r-project.org/web/packages/httr/vignettes/quickstart.html",
description:"httr: Tools for Working with URLs and HTTP"},
convert:({url:e,queryObj:t,queryString:n,postData:r,allHeaders:o,method:i},a={})=>{
var s,l;const{push:c,blank:u,join:d}=new Mf({
indent:null!==(s=a.indent)&&void 0!==s?s:"  "})
;c("library(httr)"),u(),c(`url <- "${e}"`),u();const p=t;delete t.key
;const h=Object.entries(p),f=h.length;if(1===f){const e=h[0]
;c(`queryString <- list(${e[0]} = "${e[1]}")`),u()
}else f>1&&(c("queryString <- list("),h.forEach((([e,t],n)=>{
c(`${e} = "${t}"${n!==f-1?",":""}`,1)})),c(")"),u())
;const m=JSON.stringify(null==r?void 0:r.text);if(m&&(c(`payload <- ${m}`),u()),
r&&(r.text||r.jsonObj||r.params))switch(r.mimeType){
case"application/x-www-form-urlencoded":c('encode <- "form"'),u();break
;case"application/json":c('encode <- "json"'),u();break
;case"multipart/form-data":c('encode <- "multipart"'),u();break;default:
c('encode <- "raw"'),u()}
const g=Pf(o,"cookie"),v=Pf(o,"accept"),b=g?`set_cookies(\`${String(g).replace(/;/g,'", `').replace(/` /g,"`").replace(/[=]/g,'` = "')}")`:void 0,O=v?`accept("${Qf(v)}")`:void 0,y=`content_type("${Qf(null!==(l=null==r?void 0:r.mimeType)&&void 0!==l?l:"application/octet-stream")}")`,w=Object.entries(o).filter((([e])=>!["cookie","accept","content-type"].includes(e.toLowerCase()))).map((([e,t])=>`'${e}' = '${Bf(t)}'`)).join(", "),x=w?`add_headers(${w})`:void 0
;let k=`response <- VERB("${i}", url`
;m&&(k+=", body = payload"),n.length&&(k+=", query = queryString")
;const S=[x,y,O,b].filter((e=>!!e)).join(", ")
;return S&&(k+=`, ${S}`),r&&(r.text||r.jsonObj||r.params)&&(k+=", encode = encode"),
k+=")",c(k),u(),c('content(response, "text")'),d()}
},km=(e="")=>/^[a-z0-9-_/.@%^=:]+$/i.test(e)?e:`'${e.replace(/'/g,"'\\''")}'`,Sm={
"http1.0":"0","url ":"",cookie:"b",data:"d",form:"F",globoff:"g",header:"H",
insecure:"k",request:"X"},_m=(e,t)=>t.repeat(e),Em=(e,t,n,r)=>{
const o=_m(r,n),i=_m(r-1,n),a=t?`,\n${o}`:", "
;return t?`[\n${o}${e.join(a)}\n${i}]`:`[${e.join(a)}]`
},Tm=(e,t,n)=>`let ${e} = ${Cm(t,n)}`,Cm=(e,t,n)=>{
switch(n=void 0===n?1:n+1,Object.prototype.toString.call(e)){
case"[object Number]":return e;case"[object Array]":{let r=!1
;const o=e.map((e=>("[object Object]"===Object.prototype.toString.call(e)&&(r=Object.keys(e).length>1),
Cm(e,t,n))));return Em(o,r,t.indent,n)}case"[object Object]":{const r=[]
;for(const o in e)r.push(`"${o}": ${Cm(e[o],t,n)}`)
;return Em(r,t.pretty&&r.length>1,t.indent,n)}case"[object Boolean]":
return e.toString();default:
return null==e?"":`"${e.toString().replace(/"/g,'\\"')}"`}},Am={c:jf,clojure:Wf,
csharp:Xf,go:Yf,http:Gf,java:Kf,javascript:am,kotlin:sm,node:lm,objc:dm,
ocaml:pm,php:mm,powershell:{info:{key:"powershell",title:"Powershell",
extname:".ps1",default:"webrequest"},clientsById:{webrequest:bm,restmethod:vm}},
python:{info:{key:"python",title:"Python",extname:".py",default:"python3"},
clientsById:{python3:{info:{key:"python3",title:"http.client",
link:"https://docs.python.org/3/library/http.client.html",
description:"Python3 HTTP Client"},
convert:({uriObj:{path:e,protocol:t,host:n},postData:r,allHeaders:o,method:i},a={})=>{
const{insecureSkipVerify:s=!1}=a,{push:l,blank:c,join:u}=new Mf
;if(l("import http.client"),s&&l("import ssl"),c(),"https:"===t){
l(`conn = http.client.HTTPSConnection("${n}"${s?", context = ssl._create_unverified_context()":""})`),
c()}else l(`conn = http.client.HTTPConnection("${n}")`),c()
;const d=JSON.stringify(null==r?void 0:r.text);d&&(l(`payload = ${d}`),c())
;const p=o,h=Object.keys(p).length
;if(1===h)for(const f in p)l(`headers = { '${f}': "${Qf(p[f])}" }`),
c();else if(h>1){let e=1;l("headers = {")
;for(const t in p)e++!==h?l(`    '${t}': "${Qf(p[t])}",`):l(`    '${t}': "${Qf(p[t])}"`)
;l("}"),c()}
return l(d&&h?`conn.request("${i}", "${e}", payload, headers)`:d&&!h?`conn.request("${i}", "${e}", payload)`:!d&&h?`conn.request("${i}", "${e}", headers=headers)`:`conn.request("${i}", "${e}")`),
c(),
l("res = conn.getresponse()"),l("data = res.read()"),c(),l('print(data.decode("utf-8"))'),
u()}},requests:{info:{key:"requests",title:"Requests",
link:"http://docs.python-requests.org/en/latest/api/#requests.request",
description:"Requests HTTP library"},
convert:({queryObj:e,url:t,postData:n,allHeaders:r,method:o},i)=>{const a={
indent:"    ",pretty:!0,...i},{push:s,blank:l,join:c}=new Mf({indent:a.indent})
;let u
;s("import requests"),l(),s(`url = "${t}"`),l(),Object.keys(e).length&&(u=`querystring = ${JSON.stringify(e)}`,
s(u),l());const d=r;let p={};const h={};let f=!1,m=!1,g=!1
;switch(null==n?void 0:n.mimeType){case"application/json":
n.jsonObj&&(s(`payload = ${ym(n.jsonObj,a)}`),g=!0,m=!0);break
;case"multipart/form-data":if(!n.params)break;if(p={},n.params.forEach((e=>{
e.fileName?(h[e.name]=`open('${e.fileName}', 'rb')`,
f=!0):(p[e.name]=e.value,m=!0)})),f){
s(`files = ${ym(h,a)}`),m&&s(`payload = ${ym(p,a)}`)
;const e=Af(d,"content-type");e&&delete d[e]}else{const e=JSON.stringify(n.text)
;e&&(s(`payload = ${e}`),m=!0)}break;default:{if(!n)break
;if("application/x-www-form-urlencoded"===n.mimeType&&n.paramsObj){
s(`payload = ${ym(n.paramsObj,a)}`),m=!0;break}const e=JSON.stringify(n.text)
;e&&(s(`payload = ${e}`),m=!0)}}const v=Object.keys(d).length
;if(0===v&&(m||f))l();else if(1===v)for(const O in d)s(`headers = {"${O}": "${Qf(d[O])}"}`),
l();else if(v>1){let e=1;s("headers = {")
;for(const t in d)s(e!==v?`"${t}": "${Qf(d[t])}",`:`"${t}": "${Qf(d[t])}"`,1),
e+=1;s("}"),l()}
let b=wm.includes(o)?`response = requests.${o.toLowerCase()}(url`:`response = requests.request("${o}", url`
;return m&&(b+=g?", json=payload":", data=payload"),
f&&(b+=", files=files"),v>0&&(b+=", headers=headers"),
u&&(b+=", params=querystring"),b+=")",s(b),l(),s("print(response.json())"),c()}}
}},r:{info:{key:"r",title:"R",extname:".r",default:"httr"},clientsById:{httr:xm}
},ruby:{info:{key:"ruby",title:"Ruby",extname:".rb",default:"native"},
clientsById:{native:{info:{key:"native",title:"net::http",
link:"http://ruby-doc.org/stdlib-2.2.1/libdoc/net/http/rdoc/Net/HTTP.html",
description:"Ruby HTTP client"},
convert:({uriObj:e,method:t,fullUrl:n,postData:r,allHeaders:o},i={})=>{
const{insecureSkipVerify:a=!1}=i,{push:s,blank:l,join:c}=new Mf
;s("require 'uri'"),s("require 'net/http'"),l()
;const u=t.toUpperCase(),d=u.charAt(0)+u.substring(1).toLowerCase()
;["GET","POST","HEAD","DELETE","PATCH","PUT","OPTIONS","COPY","LOCK","UNLOCK","MOVE","TRACE"].includes(u)||(s(`class Net::HTTP::${d} < Net::HTTPRequest`),
s(`  METHOD = '${u.toUpperCase()}'`),
s(`  REQUEST_HAS_BODY = '${(null==r?void 0:r.text)?"true":"false"}'`),
s("  RESPONSE_HAS_BODY = true"),
s("end"),l()),s(`url = URI("${n}")`),l(),s("http = Net::HTTP.new(url.host, url.port)"),
"https:"===e.protocol&&(s("http.use_ssl = true"),
a&&s("http.verify_mode = OpenSSL::SSL::VERIFY_NONE")),
l(),s(`request = Net::HTTP::${d}.new(url)`);const p=Object.keys(o)
;return p.length&&p.forEach((e=>{s(`request["${e}"] = '${Bf(o[e])}'`)
})),(null==r?void 0:r.text)&&s(`request.body = ${JSON.stringify(r.text)}`),
l(),s("response = http.request(request)"),s("puts response.read_body"),c()}}}},
shell:{info:{key:"shell",title:"Shell",extname:".sh",default:"curl"},
clientsById:{curl:{info:{key:"curl",title:"cURL",link:"http://curl.haxx.se/",
description:"cURL is a command line tool and library for transferring data with URL syntax"
},
convert:({fullUrl:e,method:t,httpVersion:n,headersObj:r,allHeaders:o,postData:i},a={})=>{
var s
;const{binary:l=!1,globOff:c=!1,indent:u="  ",insecureSkipVerify:d=!1,prettifyJson:p=!1,short:h=!1}=a,{push:f,join:m}=new Mf({
..."string"==typeof u?{indent:u}:{},join:!1!==u?` \\\n${u}`:" "}),g=(e=>t=>{
if(e){const e=Sm[t];return e?`-${e}`:""}return`--${t}`})(h);let v=km(e)
;if(f(`curl ${g("request")} ${t}`),
c&&(v=unescape(v),f(g("globoff"))),f(`${g("url ")}${v}`),
d&&f(g("insecure")),"HTTP/1.0"===n&&f(g("http1.0")),
Pf(o,"accept-encoding")&&f("--compressed"),
"multipart/form-data"===(null==i?void 0:i.mimeType)){
const e=Af(r,"content-type");if(e){const t=r[e];if(e&&t){
const n=t.replace(/; boundary.+?(?=(;|$))/,"");r[e]=n,o[e]=n}}}
switch(Object.keys(r).sort().forEach((e=>{const t=`${e}: ${r[e]}`
;f(`${g("header")} ${km(t)}`)
})),o.cookie&&f(`${g("cookie")} ${km(o.cookie)}`),null==i?void 0:i.mimeType){
case"multipart/form-data":null===(s=i.params)||void 0===s||s.forEach((e=>{
let t=""
;t=e.fileName?`${e.name}=@${e.fileName}`:`${e.name}=${e.value}`,f(`${g("form")} ${km(t)}`)
}));break;case"application/x-www-form-urlencoded":
i.params?i.params.forEach((e=>{
const t=e.name,n=encodeURIComponent(e.name),r=n!==t
;f(`${l?"--data-binary":"--data"+(r?"-urlencode":"")} ${km(`${r?n:t}=${e.value}`)}`)
})):f(`${l?"--data-binary":g("data")} ${km(i.text)}`);break;default:{if(!i)break
;if(!i.text)break;const e=l?"--data-binary":g("data");let t=!1
;if(b=i.mimeType,$f.some((e=>b.includes(e)))){if(i.text.length>2&&p)try{
const n=JSON.parse(i.text);t=!0;const r=JSON.stringify(n,void 0,u)
;i.text.indexOf("'")>0?f(`${e} @- <<EOF\n${r}\nEOF`):f(`${e} '\n${r}\n'`)
}catch(O){}}t||f(`${e} ${km(i.text)}`)}}var b;return m()}},httpie:{info:{
key:"httpie",title:"HTTPie",link:"http://httpie.org/",
description:"a CLI, cURL-like tool for humans"},
convert:({allHeaders:e,postData:t,queryObj:n,fullUrl:r,method:o,url:i},a)=>{
const s={body:!1,cert:!1,headers:!1,indent:"  ",pretty:!1,print:!1,
queryParams:!1,short:!1,style:!1,timeout:!1,verbose:!1,verify:!1,...a
},{push:l,join:c,unshift:u}=new Mf({indent:s.indent,
join:!1!==s.indent?` \\\n${s.indent}`:" "});let d=!1;const p=[]
;s.headers&&p.push(s.short?"-h":"--headers"),
s.body&&p.push(s.short?"-b":"--body"),
s.verbose&&p.push(s.short?"-v":"--verbose"),
s.print&&p.push(`${s.short?"-p":"--print"}=${s.print}`),
s.verify&&p.push(`--verify=${s.verify}`),
s.cert&&p.push(`--cert=${s.cert}`),s.pretty&&p.push(`--pretty=${s.pretty}`),
s.style&&p.push(`--style=${s.style}`),
s.timeout&&p.push(`--timeout=${s.timeout}`),
s.queryParams&&Object.keys(n).forEach((e=>{const t=n[e]
;Array.isArray(t)?t.forEach((t=>{l(`${e}==${km(t)}`)})):l(`${e}==${km(t)}`)
})),Object.keys(e).sort().forEach((t=>{l(`${t}:${km(e[t])}`)
})),"application/x-www-form-urlencoded"===(null==t?void 0:t.mimeType)?t.params&&t.params.length&&(p.push(s.short?"-f":"--form"),
t.params.forEach((e=>{l(`${e.name}=${km(e.value)}`)}))):d=!0
;if(u(`http ${p.length?`${p.join(" ")} `:""}${o} ${i=km(s.queryParams?i:r)}`),
d&&(null==t?void 0:t.text)){u(`echo ${km(t.text)} | `)}return c()}},wget:{info:{
key:"wget",title:"Wget",link:"https://www.gnu.org/software/wget/",
description:"a free software package for retrieving files using HTTP, HTTPS"},
convert:({method:e,postData:t,allHeaders:n,fullUrl:r},o)=>{const i={indent:"  ",
short:!1,verbose:!1,...o},{push:a,join:s}=new Mf({indent:i.indent,
join:!1!==i.indent?` \\\n${i.indent}`:" "});var l
;return i.verbose?a("wget "+(i.short?"-v":"--verbose")):a("wget "+(i.short?"-q":"--quiet")),
a(`--method ${km(e)}`),Object.keys(n).forEach((e=>{const t=`${e}: ${n[e]}`
;a(`--header ${km(t)}`)
})),(null==t?void 0:t.text)&&a(`--body-data ${l=km(t.text),
l.replace(/\r/g,"\\r").replace(/\n/g,"\\n")}`),
a(i.short?"-O":"--output-document"),a(`- ${km(r)}`),s()}}}},swift:{info:{
key:"swift",title:"Swift",extname:".swift",default:"nsurlsession"},clientsById:{
nsurlsession:{info:{key:"nsurlsession",title:"NSURLSession",
link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",
description:"Foundation's NSURLSession request"},
convert:({allHeaders:e,postData:t,fullUrl:n,method:r},o)=>{var i;const a={
indent:"  ",pretty:!0,timeout:"10",...o},{push:s,blank:l,join:c}=new Mf({
indent:a.indent}),u={hasHeaders:!1,hasBody:!1}
;if(s("import Foundation"),Object.keys(e).length&&(u.hasHeaders=!0,
l(),s(Tm("headers",e,a))),
t&&(t.text||t.jsonObj||t.params))switch(u.hasBody=!0,t.mimeType){
case"application/x-www-form-urlencoded":
if(l(),null===(i=t.params)||void 0===i?void 0:i.length){const[e,...n]=t.params
;s(`let postData = NSMutableData(data: "${e.name}=${e.value}".data(using: String.Encoding.utf8)!)`),
n.forEach((({name:e,value:t})=>{
s(`postData.append("&${e}=${t}".data(using: String.Encoding.utf8)!)`)}))
}else u.hasBody=!1;break;case"application/json":
t.jsonObj&&(s(`${Tm("parameters",t.jsonObj,a)} as [String : Any]`),
l(),s("let postData = JSONSerialization.data(withJSONObject: parameters, options: [])"))
;break;case"multipart/form-data":
s(Tm("parameters",t.params,a)),l(),s(`let boundary = "${t.boundary}"`),
l(),s('var body = ""'),
s("var error: NSError? = nil"),s("for param in parameters {"),
s('let paramName = param["name"]!',1),
s('body += "--\\(boundary)\\r\\n"',1),s('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""',1),
s('if let filename = param["fileName"] {',1),
s('let contentType = param["content-type"]!',2),
s("let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)",2),
s("if (error != nil) {",2),
s("print(error as Any)",3),s("}",2),s('body += "; filename=\\"\\(filename)\\"\\r\\n"',2),
s('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"',2),
s("body += fileContent",2),
s('} else if let paramValue = param["value"] {',1),s('body += "\\r\\n\\r\\n\\(paramValue)"',2),
s("}",1),s("}");break;default:
l(),s(`let postData = NSData(data: "${t.text}".data(using: String.Encoding.utf8)!)`)
}
return l(),s(`let request = NSMutableURLRequest(url: NSURL(string: "${n}")! as URL,`),
s("                                        cachePolicy: .useProtocolCachePolicy,"),
s(`                                    timeoutInterval: ${parseInt(a.timeout,10).toFixed(1)})`),
s(`request.httpMethod = "${r}"`),
u.hasHeaders&&s("request.allHTTPHeaderFields = headers"),
u.hasBody&&s("request.httpBody = postData as Data"),
l(),s("let session = URLSession.shared"),
s("let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in"),
s("if (error != nil) {",1),
s("print(error as Any)",2),s("} else {",1),s("let httpResponse = response as? HTTPURLResponse",2),
s("print(httpResponse)",2),s("}",1),s("})"),l(),s("dataTask.resume()"),c()}}}}}
;class Pm{constructor(e){let t=[];var n
;t="object"==typeof(n=e)&&"log"in n&&"object"==typeof n.log&&"entries"in n.log&&Array.isArray(n.log.entries)?e.log.entries:[{
request:e}],this.requests=Promise.all(t.map((({request:e})=>{var t;const n={
bodySize:0,headersSize:0,headers:[],cookies:[],httpVersion:"HTTP/1.1",
queryString:[],postData:{
mimeType:(null===(t=e.postData)||void 0===t?void 0:t.mimeType)||"application/octet-stream"
},...e};return this.prepare(n)})))}async prepare(e){var t,n,r,o;const i={...e,
fullUrl:"",queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{}}
;if(i.queryString&&i.queryString.length&&(i.queryObj=i.queryString.reduce(Rf,{})),
i.headers&&i.headers.length){const e=/^HTTP\/2/
;i.headersObj=i.headers.reduce(((t,{name:n,value:r})=>{
const o=e.exec(i.httpVersion)?n.toLocaleLowerCase():n;return{...t,[o]:r}}),{})}
i.cookies&&i.cookies.length&&(i.cookiesObj=i.cookies.reduceRight(((e,{name:t,value:n})=>({
...e,[t]:n})),{}))
;const a=null===(t=i.cookies)||void 0===t?void 0:t.map((({name:e,value:t})=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`))
;switch((null==a?void 0:a.length)&&(i.allHeaders.cookie=a.join("; ")),
null===(n=i.postData)||void 0===n?void 0:n.mimeType){case"multipart/mixed":
case"multipart/related":case"multipart/form-data":case"multipart/alternative":
if(i.postData.text="",
i.postData.mimeType="multipart/form-data",null===(r=i.postData)||void 0===r?void 0:r.params){
const e=new wf,t="---011000010111000001101001"
;null===(o=i.postData)||void 0===o||o.params.forEach((t=>{
const n=t.name,r=t.value||"",o=t.fileName;var i
;"object"==typeof(i=r)&&"function"==typeof i.arrayBuffer&&"string"==typeof i.type&&"function"==typeof i.stream&&"function"==typeof i.constructor&&/^(Blob|File)$/.test(i[Ef])?e.append(n,r,o):e.append(n,new xf([r],{
type:t.contentType}),o?function(e){const t=e.split("/");return t[t.length-1]
}(o):o)}));const{postData:n}=i;for await(const o of Cf(e,t))n.text+=o
;i.postData.boundary=t;const r=Af(i.headersObj,"content-type")||"content-type"
;i.headersObj[r]=`multipart/form-data; boundary=${t}`}break
;case"application/x-www-form-urlencoded":
i.postData.params?(i.postData.paramsObj=i.postData.params.reduce(Rf,{}),
i.postData.text=Nf(i.postData.paramsObj).toString()):i.postData.text="";break
;case"text/json":case"text/x-json":case"application/json":
case"application/x-json":
if(i.postData.mimeType="application/json",i.postData.text)try{
i.postData.jsonObj=JSON.parse(i.postData.text)}catch(P$){
i.postData.mimeType="text/plain"}}const s={...i.allHeaders,...i.headersObj
},l=new URL(i.url),c=Object.fromEntries(l.searchParams);i.queryObj={
...i.queryObj,...c};const u=Nf(i.queryObj),d=new URL(i.url)
;return d.search=u.toString(),l.search="",{...i,allHeaders:s,
fullUrl:d.toString(),url:l.toString(),uriObj:new If(d.toString())}}
async convert(e,t,n){!n&&t&&(n=t);const r=Am[e];if(!r)return null
;const{convert:o}=r.clientsById[t||r.info.default],i=(await this.requests).map((e=>o(e,n)))
;return 1===i.length?i[0]:i}}const Dm=(...e)=>{let t={httpVersion:"1.1",
method:"GET",url:"",path:"",headers:[],headersSize:-1,queryString:[],cookies:[],
bodySize:-1};e.forEach((e=>{t={...t,...e,
headers:[...t.headers,...e.headers??[]],
queryString:[...t.queryString,...e.queryString??[]],
cookies:[...t.cookies,...e.cookies??[]]}})),t.headers=(e=>{if(Array.isArray(e)){
const t=new Map;return e.forEach((e=>{t.set(Ld(e.name),e)
})),Array.from(t.values()).map((e=>({...e,name:Ld(e.name)})))}
return Object.fromEntries(Object.entries(e??{}).reverse().filter((([e],t,n)=>n.findIndex((([t])=>Ld(t)===Ld(e)))===t)).reverse().map((([e,t])=>[Ld(e),t])))
})(t.headers);const{path:n,...r}=t;return n?{...r,url:`${t.url}${n}`}:r
},$m="object"==typeof self?self:globalThis,Rm=e=>((e,t)=>{
const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o]
;switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o)
;for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o)
;for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:
{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{
const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{
const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{
const{name:e,message:t}=a;return n(new $m[e](t),o)}case 8:return n(BigInt(a),o)
;case"BigInt":return n(Object(BigInt(a)),o)}return n(new $m[i](a),o)};return r
})(new Map,e)(0),Nm="",{toString:Im}={},{keys:Mm}=Object,Lm=e=>{const t=typeof e
;if("object"!==t||!e)return[0,t];const n=Im.call(e).slice(8,-1);switch(n){
case"Array":return[1,Nm];case"Object":return[2,Nm];case"Date":return[3,Nm]
;case"RegExp":return[4,Nm];case"Map":return[5,Nm];case"Set":return[6,Nm]}
return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]
},Bm=([e,t])=>0===e&&("function"===t||"symbol"===t),Qm=(e,{json:t,lossy:n}={})=>{
const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1
;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,s]=Lm(r)
;switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break
;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s)
;t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{
if(s)return o([s,[...r]],r);const e=[],t=o([a,e],r)
;for(const n of r)e.push(i(n));return t}case 2:{if(s)switch(s){case"BigInt":
return o([s,r.toString()],r);case"Boolean":case"Number":case"String":
return o([s,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON())
;const n=[],l=o([a,n],r)
;for(const t of Mm(r))!e&&Bm(Lm(r[t]))||n.push([i(t),i(r[t])]);return l}case 3:
return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{
source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r)
;for(const[o,a]of r)(e||!Bm(Lm(o))&&!Bm(Lm(a)))&&t.push([i(o),i(a)]);return n}
case 6:{const t=[],n=o([a,t],r);for(const o of r)!e&&Bm(Lm(o))||t.push(i(o))
;return n}}const{message:l}=r;return o([a,{name:s,message:l}],r)};return i
})(!(t||n),!!t,new Map,r)(e),r
},jm="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Rm(Qm(e,t)):structuredClone(e):(e,t)=>Rm(Qm(e,t)),Um=function(e,t,n,r,o){
const i=Fm(t);return!!Hm(e)&&i.call(o,e,n,r)},Fm=function(e){
if(null==e)return zm;if("string"==typeof e)return function(e){return qm(t)
;function t(t){return t.tagName===e}}(e)
;if("object"==typeof e)return function(e){const t=[];let n=-1
;for(;++n<e.length;)t[n]=Fm(e[n]);return qm(r);function r(...e){let n=-1
;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e)
;if("function"==typeof e)return qm(e)
;throw new Error("Expected function, string, or array as `test`")}
;function qm(e){return function(t,n,r){
return Boolean(Hm(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}
function zm(e){
return Boolean(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)
}function Hm(e){return null!==e&&"object"==typeof e&&"type"in e&&"tagName"in e}
const Zm=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,Vm=/^[a-zA-Z]:\\/;function Wm(e){
const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}
function Xm(e){return e.join(" ").trim()}const Ym=function(e){
if(null==e)return Km;if("function"==typeof e)return Gm(e)
;if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1
;for(;++n<e.length;)t[n]=Ym(e[n]);return Gm(r);function r(...e){let n=-1
;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){
const t=e;return Gm(n);function n(n){const r=n;let o
;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e)
;if("string"==typeof e)return function(e){return Gm(t);function t(t){
return t&&t.type===e}}(e)
;throw new Error("Expected function, string, or object as test")}
;function Gm(e){return function(t,n,r){return Boolean(function(e){
return null!==e&&"object"==typeof e&&"type"in e
}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Km(){
return!0}const Jm=[],eg=!0,tg=!1,ng="skip";function rg(e,t,n,r){let o
;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=Ym(o),a=r?-1:1
;!function e(o,s,l){const c=o&&"object"==typeof o?o:{}
;if("string"==typeof c.type){
const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0
;Object.defineProperty(u,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}
return u;function u(){let c,u,d,p=Jm
;if((!t||i(o,s,l[l.length-1]||void 0))&&(p=function(e){
if(Array.isArray(e))return e;if("number"==typeof e)return[eg,e]
;return null==e?Jm:[e]}(n(o,l)),p[0]===tg))return p
;if("children"in o&&o.children){const t=o
;if(t.children&&p[0]!==ng)for(u=(r?t.children.length:-1)+a,
d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),
c[0]===tg)return c;u="number"==typeof c[1]?c[1]:u+a}}return p}}(e,void 0,[])()}
function og(e,t,n,r){let o,i,a
;"function"==typeof t&&"function"!=typeof n?(i=void 0,
a=t,o=n):(i=t,a=n,o=r),rg(e,i,(function(e,t){
const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)}),o)}
const ig=["http","https"],ag=["nofollow"],sg={};function lg(e){
const t=e||sg,n=t.protocols||ig,r=Fm(t.test);return function(e){
og(e,"element",(function(e,o,i){
if("a"===e.tagName&&"string"==typeof e.properties.href&&r(e,o,i)){
const r=e.properties.href;if(function(e){
if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``)
;return!Vm.test(e)&&Zm.test(e)
}(r)?n.includes(r.slice(0,r.indexOf(":"))):r.startsWith("//")){
const n=cg(t.content,e),r=n&&!Array.isArray(n)?[n]:n,o=cg(t.rel,e)||ag,i="string"==typeof o?Wm(o):o,a=cg(t.target,e),s=cg(t.properties,e)
;if(s&&Object.assign(e.properties,jm(s)),
i.length>0&&(e.properties.rel=[...i]),a&&(e.properties.target=a),r){
const n=cg(t.contentProperties,e)||{};e.children.push({type:"element",
tagName:"span",properties:jm(n),children:jm(r)})}}}}))}}function cg(e,t){
return"function"==typeof e?e(t):e}const ug=Fm((function(e){
return"audio"===e.tagName||"canvas"===e.tagName||"embed"===e.tagName||"iframe"===e.tagName||"img"===e.tagName||"math"===e.tagName||"object"===e.tagName||"picture"===e.tagName||"svg"===e.tagName||"video"===e.tagName
})),dg={}.hasOwnProperty;const pg=new Set(["pingback","prefetch","stylesheet"])
;const hg=Fm(["a","abbr","area","b","bdi","bdo","br","button","cite","code","data","datalist","del","dfn","em","i","input","ins","kbd","keygen","label","map","mark","meter","noscript","output","progress","q","ruby","s","samp","script","select","small","span","strong","sub","sup","template","textarea","time","u","var","wbr"]),fg=Fm("meta")
;function mg(e){return Boolean("text"===e.type||hg(e)||ug(e)||function(e){
if("element"!==e.type||"link"!==e.tagName)return!1
;if(e.properties.itemProp)return!0;const t=e.properties.rel;let n=-1
;if(!Array.isArray(t)||0===t.length)return!1
;for(;++n<t.length;)if(!pg.has(String(t[n])))return!1;return!0
}(e)||fg(e)&&function(e,t){
const n="element"===e.type&&dg.call(e.properties,t)&&e.properties[t]
;return null!=n&&!1!==n}(e,"itemProp"))}const gg=/[ \t\n\f\r]/g;function vg(e){
return"object"==typeof e?"text"===e.type&&bg(e.value):bg(e)}function bg(e){
return""===e.replace(gg,"")}
const Og=["pre","script","style","textarea"],yg=["address","article","aside","blockquote","body","br","caption","center","col","colgroup","dd","dialog","dir","div","dl","dt","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","legend","li","li","listing","main","menu","nav","ol","optgroup","option","p","plaintext","pre","section","summary","table","tbody","td","td","tfoot","th","th","thead","tr","ul","wbr","xmp"],wg=["button","input","select","textarea"],xg=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"],kg={},Sg=Ym(["doctype","comment"])
;function _g(e,t){if("children"in e){const n={...t}
;return("root"===e.type||Ag(e))&&(n.before=!0,
n.after=!0),n.whitespace=function(e,t){
if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":
case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap"
;case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":
return e.properties.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"
}return t.whitespace}(e,t),function(e,t){let n=t.before
;const r=t.after,o=e.children;let i=o.length,a=-1;for(;++a<i;){const e=_g(o[a],{
...t,after:Eg(o,a,r),before:n})
;e.remove?(o.splice(a,1),a--,i--):e.ignore||(n=e.stripAtStart),Cg(o[a])&&(n=!1)}
return{ignore:!1,stripAtStart:Boolean(n||r),remove:!1}}(e,n)}
if("text"===e.type){if("normal"===t.whitespace)return function(e,t){
const n=t.collapse(e.value),r={ignore:!1,stripAtStart:!1,remove:!1}
;let o=0,i=n.length;t.before&&Dg(n.charAt(0))&&o++
;o!==i&&Dg(n.charAt(i-1))&&(t.after?i--:r.stripAtStart=!0)
;o===i?r.remove=!0:e.value=n.slice(o,i);return r}(e,t)
;"nowrap"===t.whitespace&&(e.value=t.collapse(e.value))}return{ignore:Sg(e),
stripAtStart:!1,remove:!1}}function Eg(e,t,n){for(;++t<e.length;){const n=e[t]
;let r=Tg(n)
;if(void 0===r&&"children"in n&&!Pg(n)&&(r=Eg(n.children,-1)),"boolean"==typeof r)return r
}return n}function Tg(e){if("element"===e.type){if(Cg(e))return!1
;if(Ag(e))return!0}else if("text"===e.type){if(!vg(e))return!1
}else if(!Sg(e))return!1}function Cg(e){return ug(e)||Um(e,wg)}function Ag(e){
return Um(e,yg)}function Pg(e){
return Boolean("element"===e.type&&e.properties.hidden)||Sg(e)||Um(e,xg)}
function Dg(e){return" "===e||"\n"===e}function $g(e){const t=/\r?\n|\r/.exec(e)
;return t?t[0]:" "}function Rg(){return" "}const Ng={},Ig=function(e){
const t=function(e){return t;function t(t){
return String(t).replace(/[\t\n\v\f\r ]+/g,e)}}((e||kg).newlines?$g:Rg)
;return function(e){_g(e,{collapse:t,whitespace:"normal"})}}({newlines:!0})
;function Mg(e){const t=e||Ng;let n=t.indent||2,r=t.indentInitial
;return"number"==typeof n&&(n=" ".repeat(n)),null==r&&(r=!0),function(e){let t
;Ig(e),rg(e,(function(e,i){let a=-1;if(!("children"in e))return
;if(Um(e,"head")&&(t=!0),t&&Um(e,"body")&&(t=void 0),Um(e,Og))return ng
;const s=e.children;let l,c=i.length;if(0===s.length||!Lg(e,t))return
;for(r||c--;++a<s.length;){const e=s[a]
;"text"!==e.type&&"comment"!==e.type||(e.value.includes("\n")&&(l=!0),
e.value=e.value.replace(/ *\n/g,"$&"+String(n).repeat(c)))}const u=[];let d
;for(a=-1;++a<s.length;){const e=s[a]
;(Lg(e,t)||l&&!a)&&(o(u,c,e),l=!0),d=e,u.push(e)}
d&&(l||Lg(d,t))&&(vg(d)&&(u.pop(),d=u[u.length-1]),o(u,c-1)),e.children=u}))}
;function o(e,t,r){
const o=e[e.length-1],a=(i(o&&vg(o)?e[e.length-2]:o)&&i(r)?"\n\n":"\n")+String(n).repeat(Math.max(t,0))
;o&&"text"===o.type?o.value=vg(o)?a:o.value+a:e.push({type:"text",value:a})}
function i(e){
return Boolean(e&&"element"===e.type&&t.blanks&&t.blanks.length>0&&t.blanks.includes(e.tagName))
}}function Lg(e,t){
return"root"===e.type||"element"===e.type&&(t||Um(e,"script")||ug(e)||!mg(e))}
let Bg=class{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}
};function Qg(e,t){const n={},r={};let o=-1
;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal)
;return new Bg(n,r,t)}function jg(e){return e.toLowerCase()}
Bg.prototype.property={},Bg.prototype.normal={},Bg.prototype.space=null
;class Ug{constructor(e,t){this.property=e,this.attribute=t}}
Ug.prototype.space=null,
Ug.prototype.boolean=!1,Ug.prototype.booleanish=!1,Ug.prototype.overloadedBoolean=!1,
Ug.prototype.number=!1,
Ug.prototype.commaSeparated=!1,Ug.prototype.spaceSeparated=!1,
Ug.prototype.commaOrSpaceSeparated=!1,
Ug.prototype.mustUseProperty=!1,Ug.prototype.defined=!1;let Fg=0
;const qg=Yg(),zg=Yg(),Hg=Yg(),Zg=Yg(),Vg=Yg(),Wg=Yg(),Xg=Yg();function Yg(){
return 2**++Fg}const Gg=Object.freeze(Object.defineProperty({__proto__:null,
boolean:qg,booleanish:zg,commaOrSpaceSeparated:Xg,commaSeparated:Wg,number:Zg,
overloadedBoolean:Hg,spaceSeparated:Vg},Symbol.toStringTag,{value:"Module"
})),Kg=Object.keys(Gg);class Jg extends Ug{constructor(e,t,n,r){let o=-1
;if(super(e,t),ev(this,"space",r),"number"==typeof n)for(;++o<Kg.length;){
const e=Kg[o];ev(this,Kg[o],(n&Gg[e])===Gg[e])}}}function ev(e,t,n){n&&(e[t]=n)}
Jg.prototype.defined=!0;const tv={}.hasOwnProperty;function nv(e){
const t={},n={};let r;for(r in e.properties)if(tv.call(e.properties,r)){
const o=e.properties[r],i=new Jg(r,e.transform(e.attributes||{},r),o,e.space)
;e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),
t[r]=i,n[jg(r)]=r,n[jg(i.attribute)]=r}return new Bg(t,n,e.space)}const rv=nv({
space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{
xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,
xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ov=nv({space:"xml",
transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,
xmlBase:null,xmlSpace:null}});function iv(e,t){return t in e?e[t]:t}
function av(e,t){return iv(e,t.toLowerCase())}const sv=nv({space:"xmlns",
attributes:{xmlnsxlink:"xmlns:xlink"},transform:av,properties:{xmlns:null,
xmlnsXLink:null}}),lv=nv({
transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{
ariaActiveDescendant:null,ariaAtomic:zg,ariaAutoComplete:null,ariaBusy:zg,
ariaChecked:zg,ariaColCount:Zg,ariaColIndex:Zg,ariaColSpan:Zg,ariaControls:Vg,
ariaCurrent:null,ariaDescribedBy:Vg,ariaDetails:null,ariaDisabled:zg,
ariaDropEffect:Vg,ariaErrorMessage:null,ariaExpanded:zg,ariaFlowTo:Vg,
ariaGrabbed:zg,ariaHasPopup:null,ariaHidden:zg,ariaInvalid:null,
ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Vg,ariaLevel:Zg,
ariaLive:null,ariaModal:zg,ariaMultiLine:zg,ariaMultiSelectable:zg,
ariaOrientation:null,ariaOwns:Vg,ariaPlaceholder:null,ariaPosInSet:Zg,
ariaPressed:zg,ariaReadOnly:zg,ariaRelevant:null,ariaRequired:zg,
ariaRoleDescription:Vg,ariaRowCount:Zg,ariaRowIndex:Zg,ariaRowSpan:Zg,
ariaSelected:zg,ariaSetSize:Zg,ariaSort:null,ariaValueMax:Zg,ariaValueMin:Zg,
ariaValueNow:Zg,ariaValueText:null,role:null}}),cv=nv({space:"html",attributes:{
acceptcharset:"accept-charset",classname:"class",htmlfor:"for",
httpequiv:"http-equiv"},transform:av,
mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,
accept:Wg,acceptCharset:Vg,accessKey:Vg,action:null,allow:null,
allowFullScreen:qg,allowPaymentRequest:qg,allowUserMedia:qg,alt:null,as:null,
async:qg,autoCapitalize:null,autoComplete:Vg,autoFocus:qg,autoPlay:qg,
blocking:Vg,capture:null,charSet:null,checked:qg,cite:null,className:Vg,cols:Zg,
colSpan:null,content:null,contentEditable:zg,controls:qg,controlsList:Vg,
coords:Zg|Wg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:qg,
defer:qg,dir:null,dirName:null,disabled:qg,download:Hg,draggable:zg,
encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,
formEncType:null,formMethod:null,formNoValidate:qg,formTarget:null,headers:Vg,
height:Zg,hidden:qg,high:Zg,href:null,hrefLang:null,htmlFor:Vg,httpEquiv:Vg,
id:null,imageSizes:null,imageSrcSet:null,inert:qg,inputMode:null,integrity:null,
is:null,isMap:qg,itemId:null,itemProp:Vg,itemRef:Vg,itemScope:qg,itemType:Vg,
kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:qg,
low:Zg,manifest:null,max:null,maxLength:Zg,media:null,method:null,min:null,
minLength:Zg,multiple:qg,muted:qg,name:null,nonce:null,noModule:qg,
noValidate:qg,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,
onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,
onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,
onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,
onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,
onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,
onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,
onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,
onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,
onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,
onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,
onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,
onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,
onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,
onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,
onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,
onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,
onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,
onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,
onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:qg,
optimum:Zg,pattern:null,ping:Vg,placeholder:null,playsInline:qg,popover:null,
popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,
readOnly:qg,referrerPolicy:null,rel:Vg,required:qg,reversed:qg,rows:Zg,
rowSpan:Zg,sandbox:Vg,scope:null,scoped:qg,seamless:qg,selected:qg,
shadowRootClonable:qg,shadowRootDelegatesFocus:qg,shadowRootMode:null,
shape:null,size:Zg,sizes:null,slot:null,span:Zg,spellCheck:zg,src:null,
srcDoc:null,srcLang:null,srcSet:null,start:Zg,step:null,style:null,tabIndex:Zg,
target:null,title:null,translate:null,type:null,typeMustMatch:qg,useMap:null,
value:zg,width:Zg,wrap:null,writingSuggestions:null,align:null,aLink:null,
archive:Vg,axis:null,background:null,bgColor:null,border:Zg,borderColor:null,
bottomMargin:Zg,cellPadding:null,cellSpacing:null,char:null,charOff:null,
classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,
compact:qg,declare:qg,event:null,face:null,frame:null,frameBorder:null,
hSpace:Zg,leftMargin:Zg,link:null,longDesc:null,lowSrc:null,marginHeight:Zg,
marginWidth:Zg,noResize:qg,noHref:qg,noShade:qg,noWrap:qg,object:null,
profile:null,prompt:null,rev:null,rightMargin:Zg,rules:null,scheme:null,
scrolling:zg,standby:null,summary:null,text:null,topMargin:Zg,valueType:null,
version:null,vAlign:null,vLink:null,vSpace:Zg,allowTransparency:null,
autoCorrect:null,autoSave:null,disablePictureInPicture:qg,
disableRemotePlayback:qg,prefix:null,property:null,results:Zg,security:null,
unselectable:null}}),uv=nv({space:"svg",attributes:{
accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",
arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",
className:"class",clipPath:"clip-path",clipRule:"clip-rule",
colorInterpolation:"color-interpolation",
colorInterpolationFilters:"color-interpolation-filters",
colorProfile:"color-profile",colorRendering:"color-rendering",
crossOrigin:"crossorigin",dataType:"datatype",
dominantBaseline:"dominant-baseline",enableBackground:"enable-background",
fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",
floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",
fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",
fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",
glyphName:"glyph-name",
glyphOrientationHorizontal:"glyph-orientation-horizontal",
glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",
horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",
horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",
letterSpacing:"letter-spacing",lightingColor:"lighting-color",
markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",
navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",
navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",
navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",
onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",
onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",
onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",
onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",
onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",
onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",
onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",
onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",
onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",
onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",
onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",
onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",
onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",
onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",
onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",
onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",
onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",
onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",
onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",
onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",
onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",
onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",
onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",
onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",
onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",
overlinePosition:"overline-position",overlineThickness:"overline-thickness",
paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",
referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",
shapeRendering:"shape-rendering",stopColor:"stop-color",
stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",
strikethroughThickness:"strikethrough-thickness",
strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",
strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",
strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",
strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",
textDecoration:"text-decoration",textRendering:"text-rendering",
transformOrigin:"transform-origin",typeOf:"typeof",
underlinePosition:"underline-position",underlineThickness:"underline-thickness",
unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",
unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",
vIdeographic:"v-ideographic",vMathematical:"v-mathematical",
vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",
vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",
writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",
timelineBegin:"timelinebegin"},transform:iv,properties:{about:Xg,
accentHeight:Zg,accumulate:null,additive:null,alignmentBaseline:null,
alphabetic:Zg,amplitude:Zg,arabicForm:null,ascent:Zg,attributeName:null,
attributeType:null,azimuth:Zg,bandwidth:null,baselineShift:null,
baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Zg,by:null,
calcMode:null,capHeight:Zg,className:Vg,clip:null,clipPath:null,
clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,
colorInterpolationFilters:null,colorProfile:null,colorRendering:null,
content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,
cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Zg,
diffuseConstant:Zg,direction:null,display:null,dur:null,divisor:Zg,
dominantBaseline:null,download:qg,dx:null,dy:null,edgeMode:null,editable:null,
elevation:Zg,enableBackground:null,end:null,event:null,exponent:Zg,
externalResourcesRequired:null,fill:null,fillOpacity:Zg,fillRule:null,
filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,
focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,
fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,
fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Wg,g2:Wg,
glyphName:Wg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,
glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Zg,
hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,
horizAdvX:Zg,horizOriginX:Zg,horizOriginY:Zg,id:null,ideographic:Zg,
imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Zg,k:Zg,
k1:Zg,k2:Zg,k3:Zg,k4:Zg,kernelMatrix:Xg,kernelUnitLength:null,keyPoints:null,
keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,
letterSpacing:null,lightingColor:null,limitingConeAngle:Zg,local:null,
markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,
markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,
maskUnits:null,mathematical:null,max:null,media:null,
mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Zg,
mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,
navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,
navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,
observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,
onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,
onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,
onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,
onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,
onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,
onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,
onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,
onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,
onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,
onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,
onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,
onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,
onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,
onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,
onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,
onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,
onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,
orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Zg,
overlineThickness:Zg,paintOrder:null,panose1:null,path:null,pathLength:Zg,
patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,
ping:Vg,pitch:null,playbackOrder:null,pointerEvents:null,points:null,
pointsAtX:Zg,pointsAtY:Zg,pointsAtZ:Zg,preserveAlpha:null,
preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xg,r:null,
radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xg,rev:Xg,
renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xg,
requiredFeatures:Xg,requiredFonts:Xg,requiredFormats:Xg,resource:null,
restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,
shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Zg,
specularExponent:Zg,spreadMethod:null,spacing:null,startOffset:null,
stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,
stopOpacity:null,strikethroughPosition:Zg,strikethroughThickness:Zg,string:null,
stroke:null,strokeDashArray:Xg,strokeDashOffset:null,strokeLineCap:null,
strokeLineJoin:null,strokeMiterLimit:Zg,strokeOpacity:Zg,strokeWidth:null,
style:null,surfaceScale:Zg,syncBehavior:null,syncBehaviorDefault:null,
syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xg,
tabIndex:Zg,tableValues:null,target:null,targetX:Zg,targetY:Zg,textAnchor:null,
textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,
title:null,transformBehavior:null,type:null,typeOf:Xg,to:null,transform:null,
transformOrigin:null,u1:null,u2:null,underlinePosition:Zg,underlineThickness:Zg,
unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Zg,values:null,
vAlphabetic:Zg,vMathematical:Zg,vectorEffect:null,vHanging:Zg,vIdeographic:Zg,
version:null,vertAdvY:Zg,vertOriginX:Zg,vertOriginY:Zg,viewBox:null,
viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,
writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Zg,y:null,
y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}
}),dv=/^data[-\w.:]+$/i,pv=/-[a-z]/g,hv=/[A-Z]/g;function fv(e,t){const n=jg(t)
;let r=t,o=Ug;if(n in e.normal)return e.property[e.normal[n]]
;if(n.length>4&&"data"===n.slice(0,4)&&dv.test(t)){if("-"===t.charAt(4)){
const e=t.slice(5).replace(pv,gv);r="data"+e.charAt(0).toUpperCase()+e.slice(1)
}else{const e=t.slice(4);if(!pv.test(e)){let n=e.replace(hv,mv)
;"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Jg}return new o(r,t)}function mv(e){
return"-"+e.toLowerCase()}function gv(e){return e.charAt(1).toUpperCase()}
const vv=Qg([ov,rv,sv,lv,cv],"html"),bv=Qg([ov,rv,sv,lv,uv],"svg")
;function Ov(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,i=!1
;for(;!i;){-1===r&&(r=n.length,i=!0);const e=n.slice(o,r).trim()
;!e&&i||t.push(e),o=r+1,r=n.indexOf(",",o)}return t}function yv(e,t){
const n=t||{}
;return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()
}const wv=/[#.]/g
;const xv=new Set(["button","menu","reset","submit"]),kv={}.hasOwnProperty
;function Sv(e,t,n){const r=n&&function(e){const t={};let n=-1
;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}(n)
;return function(n,o,...i){let a,s=-1;if(null==n){a={type:"root",children:[]}
;const e=o;i.unshift(e)}else if(a=function(e,t){const n=e||"",r={};let o,i,a=0
;for(;a<n.length;){wv.lastIndex=a
;const e=wv.exec(n),t=n.slice(a,e?e.index:n.length)
;t&&(o?"#"===o?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:i=t,
a+=t.length),e&&(o=e[0],a++)}return{type:"element",tagName:i||t||"div",
properties:r,children:[]}
}(n,t),a.tagName=a.tagName.toLowerCase(),r&&kv.call(r,a.tagName)&&(a.tagName=r[a.tagName]),
function(e,t){if(null==e||"object"!=typeof e||Array.isArray(e))return!1
;if("input"===t||!e.type||"string"!=typeof e.type)return!0
;if("children"in e&&Array.isArray(e.children))return!1
;if("button"===t)return xv.has(e.type.toLowerCase());return!("value"in e)
}(o,a.tagName)){let t;for(t in o)kv.call(o,t)&&_v(e,a.properties,t,o[t])
}else i.unshift(o);for(;++s<i.length;)Ev(a.children,i[s])
;return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",
children:a.children},a.children=[]),a}}function _v(e,t,n,r){const o=fv(e,n)
;let i,a=-1;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;i=r
}else i="boolean"==typeof r?r:"string"==typeof r?o.spaceSeparated?Wm(r):o.commaSeparated?Ov(r):o.commaOrSpaceSeparated?Wm(Ov(r).join(" ")):Tv(o,o.property,r):Array.isArray(r)?r.concat():"style"===o.property?function(e){
const t=[];let n;for(n in e)kv.call(e,n)&&t.push([n,e[n]].join(": "))
;return t.join("; ")}(r):String(r);if(Array.isArray(i)){const e=[]
;for(;++a<i.length;){const t=Tv(o,o.property,i[a]);e[a]=t}i=e}
if("className"===o.property&&Array.isArray(t.className)){const e=i
;i=t.className.concat(e)}t[o.property]=i}}function Ev(e,t){let n=-1
;if(null==t);else if("string"==typeof t||"number"==typeof t)e.push({type:"text",
value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)Ev(e,t[n]);else{
if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`")
;"root"===t.type?Ev(e,t.children):e.push(t)}}function Tv(e,t,n){
if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n)
;if((e.boolean||e.overloadedBoolean)&&(""===n||jg(n)===jg(t)))return!0}return n}
const Cv=Sv(vv,"div"),Av=Sv(bv,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),Pv=/\r?\n|\r/g
;const Dv={html:"http://www.w3.org/1999/xhtml",
mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",
xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",
xmlns:"http://www.w3.org/2000/xmlns/"},$v={}.hasOwnProperty,Rv=Object.prototype
;function Nv(e,t){const n=t||{};return Iv({file:n.file||void 0,location:!1,
schema:"svg"===n.space?bv:vv,verbose:n.verbose||!1},e)}function Iv(e,t){let n
;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",
value:r.data},Lv(e,r,n),n}case"#document":case"#document-fragment":{
const r=t,o="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={
type:"root",children:Mv(e,t.childNodes),data:{quirksMode:o}
},e.file&&e.location){const t=String(e.file),r=function(e){
const t=String(e),n=[];for(Pv.lastIndex=0;Pv.test(t);)n.push(Pv.lastIndex)
;return n.push(t.length+1),{toPoint:function(e){let t=-1
;if("number"==typeof e&&e>-1&&e<n[n.length-1])for(;++t<n.length;)if(n[t]>e)return{
line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e}},toOffset:function(e){
const t=e&&e.line,r=e&&e.column
;if("number"==typeof t&&"number"==typeof r&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){
const e=(n[t-2]||0)+r-1||0;if(e>-1&&e<n[n.length-1])return e}}}
}(t),o=r.toPoint(0),i=r.toPoint(t.length);n.position={start:o,end:i}}return n}
case"#documentType":return n={type:"doctype"},Lv(e,t,n),n;case"#text":{const r=t
;return n={type:"text",value:r.value},Lv(e,r,n),n}default:
return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===Dv.svg?bv:vv
;let r=-1;const o={};for(;++r<t.attrs.length;){
const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name
;$v.call(Rv,n)||(o[n]=e.value)}
const i="svg"===e.schema.space?Av:Cv,a=i(t.tagName,o,Mv(e,t.childNodes))
;if(Lv(e,t,a),"template"===a.tagName){
const n=t,r=n.sourceCodeLocation,o=r&&r.startTag&&Bv(r.startTag),i=r&&r.endTag&&Bv(r.endTag),s=Iv(e,n.content)
;o&&i&&e.file&&(s.position={start:o.end,end:i.start}),a.content=s}
return e.schema=n,a}(e,t),n}}function Mv(e,t){let n=-1;const r=[]
;for(;++n<t.length;){const o=Iv(e,t[n]);r.push(o)}return r}function Lv(e,t,n){
if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){
const r=function(e,t,n){const r=Bv(n);if("element"===t.type){
const o=t.children[t.children.length-1]
;if(r&&!n.endTag&&o&&o.position&&o.position.end&&(r.end=Object.assign({},o.position.end)),
e.verbose){const r={};let o
;if(n.attrs)for(o in n.attrs)$v.call(n.attrs,o)&&(r[fv(e.schema,o).property]=Bv(n.attrs[o]))
;n.startTag;const i=Bv(n.startTag),a=n.endTag?Bv(n.endTag):void 0,s={opening:i}
;a&&(s.closing=a),s.properties=r,t.data={position:s}}}return r
}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Bv(e){
const t=Qv({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Qv({
line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n
}:void 0}function Qv(e){return e.line&&e.column?e:void 0}
const jv={}.hasOwnProperty;function Uv(e,t){const n=t||{};function r(t,...n){
let o=r.invalid;const i=r.handlers;if(t&&jv.call(t,e)){const n=String(t[e])
;o=jv.call(i,n)?i[n]:r.unknown}if(o)return o.call(this,t,...n)}
return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}
const Fv={},qv={}.hasOwnProperty,zv=Uv("type",{handlers:{root:function(e,t){
const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",
childNodes:[]};return n.childNodes=Zv(e.children,n,t),Vv(e,n),n},
element:function(e,t){const n=t;let r=n
;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=bv)
;const o=[];let i
;if(e.properties)for(i in e.properties)if("children"!==i&&qv.call(e.properties,i)){
const t=Hv(r,i,e.properties[i]);t&&o.push(t)}const a=r.space,s={
nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:Dv[a],childNodes:[],
parentNode:null}
;s.childNodes=Zv(e.children,s,r),Vv(e,s),"template"===e.tagName&&e.content&&(s.content=function(e,t){
const n={nodeName:"#document-fragment",childNodes:[]}
;return n.childNodes=Zv(e.children,n,t),Vv(e,n),n}(e.content,r));return s},
text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null}
;return Vv(e,t),t},comment:function(e){const t={nodeName:"#comment",
data:e.value,parentNode:null};return Vv(e,t),t},doctype:function(e){const t={
nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null}
;return Vv(e,t),t}}});function Hv(e,t,n){const r=fv(e,t)
;if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return
;Array.isArray(n)&&(n=r.commaSeparated?yv(n):Xm(n));const o={name:r.attribute,
value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){
const e=o.name.indexOf(":")
;e<0?o.prefix="":(o.name=o.name.slice(e+1),o.prefix=r.attribute.slice(0,e)),
o.namespace=Dv[r.space]}return o}function Zv(e,t,n){let r=-1;const o=[]
;if(e)for(;++r<e.length;){const i=zv(e[r],n);i.parentNode=t,o.push(i)}return o}
function Vv(e,t){const n=e.position
;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={
startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,
endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}
const Wv=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Xv=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Yv="�"
;var Gv,Kv
;(Kv=Gv=Gv||(Gv={}))[Kv.EOF=-1]="EOF",Kv[Kv.NULL=0]="NULL",Kv[Kv.TABULATION=9]="TABULATION",
Kv[Kv.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",
Kv[Kv.LINE_FEED=10]="LINE_FEED",Kv[Kv.FORM_FEED=12]="FORM_FEED",
Kv[Kv.SPACE=32]="SPACE",
Kv[Kv.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",Kv[Kv.QUOTATION_MARK=34]="QUOTATION_MARK",
Kv[Kv.NUMBER_SIGN=35]="NUMBER_SIGN",
Kv[Kv.AMPERSAND=38]="AMPERSAND",Kv[Kv.APOSTROPHE=39]="APOSTROPHE",
Kv[Kv.HYPHEN_MINUS=45]="HYPHEN_MINUS",
Kv[Kv.SOLIDUS=47]="SOLIDUS",Kv[Kv.DIGIT_0=48]="DIGIT_0",
Kv[Kv.DIGIT_9=57]="DIGIT_9",
Kv[Kv.SEMICOLON=59]="SEMICOLON",Kv[Kv.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",
Kv[Kv.EQUALS_SIGN=61]="EQUALS_SIGN",
Kv[Kv.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",
Kv[Kv.QUESTION_MARK=63]="QUESTION_MARK",
Kv[Kv.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",
Kv[Kv.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",
Kv[Kv.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",
Kv[Kv.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",
Kv[Kv.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",
Kv[Kv.GRAVE_ACCENT=96]="GRAVE_ACCENT",
Kv[Kv.LATIN_SMALL_A=97]="LATIN_SMALL_A",Kv[Kv.LATIN_SMALL_F=102]="LATIN_SMALL_F",
Kv[Kv.LATIN_SMALL_X=120]="LATIN_SMALL_X",
Kv[Kv.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",
Kv[Kv.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"
;const Jv="--",eb="[CDATA[",tb="doctype",nb="script",rb="public",ob="system"
;function ib(e){return e>=55296&&e<=57343}function ab(e){
return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}
function sb(e){return e>=64976&&e<=65007||Xv.has(e)}var lb,cb
;(cb=lb=lb||(lb={})).controlCharacterInInputStream="control-character-in-input-stream",
cb.noncharacterInInputStream="noncharacter-in-input-stream",
cb.surrogateInInputStream="surrogate-in-input-stream",
cb.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",
cb.endTagWithAttributes="end-tag-with-attributes",
cb.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",
cb.unexpectedSolidusInTag="unexpected-solidus-in-tag",
cb.unexpectedNullCharacter="unexpected-null-character",
cb.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",
cb.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",
cb.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",
cb.missingEndTagName="missing-end-tag-name",
cb.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",
cb.unknownNamedCharacterReference="unknown-named-character-reference",
cb.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",
cb.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",
cb.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",
cb.eofBeforeTagName="eof-before-tag-name",
cb.eofInTag="eof-in-tag",cb.missingAttributeValue="missing-attribute-value",
cb.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",
cb.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",
cb.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",
cb.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",
cb.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",
cb.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",
cb.missingDoctypePublicIdentifier="missing-doctype-public-identifier",
cb.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",
cb.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",
cb.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",
cb.cdataInHtmlContent="cdata-in-html-content",
cb.incorrectlyOpenedComment="incorrectly-opened-comment",
cb.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",
cb.eofInDoctype="eof-in-doctype",
cb.nestedComment="nested-comment",cb.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",
cb.eofInComment="eof-in-comment",
cb.incorrectlyClosedComment="incorrectly-closed-comment",
cb.eofInCdata="eof-in-cdata",
cb.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",
cb.nullCharacterReference="null-character-reference",
cb.surrogateCharacterReference="surrogate-character-reference",
cb.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",
cb.controlCharacterReference="control-character-reference",
cb.noncharacterCharacterReference="noncharacter-character-reference",
cb.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",
cb.missingDoctypeName="missing-doctype-name",
cb.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",
cb.duplicateAttribute="duplicate-attribute",
cb.nonConformingDoctype="non-conforming-doctype",
cb.missingDoctype="missing-doctype",
cb.misplacedDoctype="misplaced-doctype",cb.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",
cb.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",
cb.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",
cb.openElementsLeftAfterEof="open-elements-left-after-eof",
cb.abandonedHeadElementChild="abandoned-head-element-child",
cb.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",
cb.nestedNoscriptInHead="nested-noscript-in-head",
cb.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"
;class ub{constructor(e){
this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,
this.gapStack=[],this.skipNextNewLine=!1,
this.lastChunkWritten=!1,this.endOfChunkHit=!1,
this.bufferWaterline=65536,this.isEol=!1,
this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}
get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}
get offset(){return this.droppedBufferSize+this.pos}getError(e){
const{line:t,col:n,offset:r}=this;return{code:e,startLine:t,endLine:t,
startCol:n,endCol:n,startOffset:r,endOffset:r}}_err(e){
this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,
this.handler.onParseError(this.getError(e)))}_addGap(){
this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}
_processSurrogate(e){if(this.pos!==this.html.length-1){
const t=this.html.charCodeAt(this.pos+1);if(function(e){
return e>=56320&&e<=57343
}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t
}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Gv.EOF
;return this._err(lb.surrogateInInputStream),e}willDropParsedChunk(){
return this.pos>this.bufferWaterline}dropParsedChunk(){
this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),
this.lineStartPos-=this.pos,
this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,
this.gapStack.length=0)}write(e,t){
this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,
this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){
this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),
this.endOfChunkHit=!1}startsWith(e,t){
if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,
!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++){
if((32|this.html.charCodeAt(this.pos+n))!==e.charCodeAt(n))return!1}return!0}
peek(e){const t=this.pos+e
;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Gv.EOF
;const n=this.html.charCodeAt(t);return n===Gv.CARRIAGE_RETURN?Gv.LINE_FEED:n}
advance(){
if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),
this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,
Gv.EOF;let e=this.html.charCodeAt(this.pos)
;if(e===Gv.CARRIAGE_RETURN)return this.isEol=!0,
this.skipNextNewLine=!0,Gv.LINE_FEED
;if(e===Gv.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,
this.skipNextNewLine=!1,this._addGap(),this.advance()
;this.skipNextNewLine=!1,ib(e)&&(e=this._processSurrogate(e))
;return null===this.handler.onParseError||e>31&&e<127||e===Gv.LINE_FEED||e===Gv.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),
e}_checkForProblematicCharacters(e){
ab(e)?this._err(lb.controlCharacterInInputStream):sb(e)&&this._err(lb.noncharacterInInputStream)
}retreat(e){
for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),
this.pos--;this.isEol=!1}}var db,pb;function hb(e,t){
for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value
;return null}
(pb=db=db||(db={}))[pb.CHARACTER=0]="CHARACTER",pb[pb.NULL_CHARACTER=1]="NULL_CHARACTER",
pb[pb.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",
pb[pb.START_TAG=3]="START_TAG",
pb[pb.END_TAG=4]="END_TAG",pb[pb.COMMENT=5]="COMMENT",
pb[pb.DOCTYPE=6]="DOCTYPE",pb[pb.EOF=7]="EOF",pb[pb.HIBERNATION=8]="HIBERNATION"
;const fb=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0)))),mb=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))))
;var gb
;const vb=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),bb=null!==(gb=String.fromCodePoint)&&void 0!==gb?gb:function(e){
let t=""
;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),
t+=String.fromCharCode(e),t};var Ob,yb
;(yb=Ob||(Ob={}))[yb.NUM=35]="NUM",yb[yb.SEMI=59]="SEMI",
yb[yb.EQUALS=61]="EQUALS",
yb[yb.ZERO=48]="ZERO",yb[yb.NINE=57]="NINE",yb[yb.LOWER_A=97]="LOWER_A",
yb[yb.LOWER_F=102]="LOWER_F",
yb[yb.LOWER_X=120]="LOWER_X",yb[yb.LOWER_Z=122]="LOWER_Z",
yb[yb.UPPER_A=65]="UPPER_A",
yb[yb.UPPER_F=70]="UPPER_F",yb[yb.UPPER_Z=90]="UPPER_Z"
;var wb,xb,kb,Sb,_b,Eb,Tb,Cb,Ab,Pb,Db,$b,Rb,Nb,Ib,Mb;function Lb(e){
return e>=Ob.ZERO&&e<=Ob.NINE}function Bb(e){return e===Ob.EQUALS||function(e){
return e>=Ob.UPPER_A&&e<=Ob.UPPER_Z||e>=Ob.LOWER_A&&e<=Ob.LOWER_Z||Lb(e)}(e)}
(xb=wb||(wb={}))[xb.VALUE_LENGTH=49152]="VALUE_LENGTH",
xb[xb.BRANCH_LENGTH=16256]="BRANCH_LENGTH",
xb[xb.JUMP_TABLE=127]="JUMP_TABLE",(Sb=kb||(kb={}))[Sb.EntityStart=0]="EntityStart",
Sb[Sb.NumericStart=1]="NumericStart",
Sb[Sb.NumericDecimal=2]="NumericDecimal",Sb[Sb.NumericHex=3]="NumericHex",
Sb[Sb.NamedEntity=4]="NamedEntity",
(Eb=_b||(_b={}))[Eb.Legacy=0]="Legacy",Eb[Eb.Strict=1]="Strict",
Eb[Eb.Attribute=2]="Attribute";class Qb{constructor(e,t,n){
this.decodeTree=e,this.emitCodePoint=t,
this.errors=n,this.state=kb.EntityStart,this.consumed=1,
this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=_b.Strict}
startEntity(e){
this.decodeMode=e,this.state=kb.EntityStart,this.result=0,this.treeIndex=0,
this.excess=1,this.consumed=1}write(e,t){switch(this.state){case kb.EntityStart:
return e.charCodeAt(t)===Ob.NUM?(this.state=kb.NumericStart,
this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=kb.NamedEntity,
this.stateNamedEntity(e,t));case kb.NumericStart:
return this.stateNumericStart(e,t);case kb.NumericDecimal:
return this.stateNumericDecimal(e,t);case kb.NumericHex:
return this.stateNumericHex(e,t);case kb.NamedEntity:
return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){
return t>=e.length?-1:(32|e.charCodeAt(t))===Ob.LOWER_X?(this.state=kb.NumericHex,
this.consumed+=1,
this.stateNumericHex(e,t+1)):(this.state=kb.NumericDecimal,this.stateNumericDecimal(e,t))
}addToNumericResult(e,t,n,r){if(t!==n){const o=n-t
;this.result=this.result*Math.pow(r,o)+parseInt(e.substr(t,o),r),
this.consumed+=o}}stateNumericHex(e,t){const n=t;for(;t<e.length;){
const o=e.charCodeAt(t)
;if(!(Lb(o)||(r=o,r>=Ob.UPPER_A&&r<=Ob.UPPER_F||r>=Ob.LOWER_A&&r<=Ob.LOWER_F)))return this.addToNumericResult(e,n,t,16),
this.emitNumericEntity(o,3);t+=1}var r;return this.addToNumericResult(e,n,t,16),
-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t)
;if(!Lb(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2)
;t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n
;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),
0;if(e===Ob.SEMI)this.consumed+=1;else if(this.decodeMode===_b.Strict)return 0
;return this.emitCodePoint(function(e){var t
;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=vb.get(e))&&void 0!==t?t:e
}(this.result),this.consumed),
this.errors&&(e!==Ob.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),
this.errors.validateNumericCharacterReference(this.result)),this.consumed}
stateNamedEntity(e,t){const{decodeTree:n}=this
;let r=n[this.treeIndex],o=(r&wb.VALUE_LENGTH)>>14
;for(;t<e.length;t++,this.excess++){const i=e.charCodeAt(t)
;if(this.treeIndex=Ub(n,r,this.treeIndex+Math.max(1,o),i),
this.treeIndex<0)return 0===this.result||this.decodeMode===_b.Attribute&&(0===o||Bb(i))?0:this.emitNotTerminatedNamedEntity()
;if(r=n[this.treeIndex],o=(r&wb.VALUE_LENGTH)>>14,0!==o){
if(i===Ob.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess)
;this.decodeMode!==_b.Strict&&(this.result=this.treeIndex,
this.consumed+=this.excess,this.excess=0)}}return-1}
emitNotTerminatedNamedEntity(){var e
;const{result:t,decodeTree:n}=this,r=(n[t]&wb.VALUE_LENGTH)>>14
;return this.emitNamedEntityData(t,r,this.consumed),
null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),
this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this
;return this.emitCodePoint(1===t?r[e]&~wb.VALUE_LENGTH:r[e+1],n),
3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){
case kb.NamedEntity:
return 0===this.result||this.decodeMode===_b.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity()
;case kb.NumericDecimal:return this.emitNumericEntity(0,2);case kb.NumericHex:
return this.emitNumericEntity(0,3);case kb.NumericStart:
return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),
0;case kb.EntityStart:return 0}}}function jb(e){let t=""
;const n=new Qb(e,(e=>t+=bb(e)));return function(e,r){let o=0,i=0
;for(;(i=e.indexOf("&",i))>=0;){t+=e.slice(o,i),n.startEntity(r)
;const a=n.write(e,i+1);if(a<0){o=i+n.end();break}o=i+a,i=0===a?o+1:o}
const a=t+e.slice(o);return t="",a}}function Ub(e,t,n,r){
const o=(t&wb.BRANCH_LENGTH)>>7,i=t&wb.JUMP_TABLE
;if(0===o)return 0!==i&&r===i?n:-1;if(i){const t=r-i
;return t<0||t>=o?-1:e[n+t]-1}let a=n,s=a+o-1;for(;a<=s;){const t=a+s>>>1,n=e[t]
;if(n<r)a=t+1;else{if(!(n>r))return e[t+o];s=t-1}}return-1}
jb(fb),jb(mb),(Cb=Tb=Tb||(Tb={})).HTML="http://www.w3.org/1999/xhtml",
Cb.MATHML="http://www.w3.org/1998/Math/MathML",
Cb.SVG="http://www.w3.org/2000/svg",
Cb.XLINK="http://www.w3.org/1999/xlink",Cb.XML="http://www.w3.org/XML/1998/namespace",
Cb.XMLNS="http://www.w3.org/2000/xmlns/",
(Pb=Ab=Ab||(Ab={})).TYPE="type",Pb.ACTION="action",
Pb.ENCODING="encoding",Pb.PROMPT="prompt",
Pb.NAME="name",Pb.COLOR="color",Pb.FACE="face",
Pb.SIZE="size",($b=Db=Db||(Db={})).NO_QUIRKS="no-quirks",
$b.QUIRKS="quirks",$b.LIMITED_QUIRKS="limited-quirks",(Nb=Rb=Rb||(Rb={})).A="a",
Nb.ADDRESS="address",
Nb.ANNOTATION_XML="annotation-xml",Nb.APPLET="applet",Nb.AREA="area",
Nb.ARTICLE="article",
Nb.ASIDE="aside",Nb.B="b",Nb.BASE="base",Nb.BASEFONT="basefont",
Nb.BGSOUND="bgsound",
Nb.BIG="big",Nb.BLOCKQUOTE="blockquote",Nb.BODY="body",Nb.BR="br",
Nb.BUTTON="button",
Nb.CAPTION="caption",Nb.CENTER="center",Nb.CODE="code",Nb.COL="col",
Nb.COLGROUP="colgroup",
Nb.DD="dd",Nb.DESC="desc",Nb.DETAILS="details",Nb.DIALOG="dialog",
Nb.DIR="dir",Nb.DIV="div",
Nb.DL="dl",Nb.DT="dt",Nb.EM="em",Nb.EMBED="embed",Nb.FIELDSET="fieldset",
Nb.FIGCAPTION="figcaption",Nb.FIGURE="figure",Nb.FONT="font",Nb.FOOTER="footer",
Nb.FOREIGN_OBJECT="foreignObject",
Nb.FORM="form",Nb.FRAME="frame",Nb.FRAMESET="frameset",
Nb.H1="h1",Nb.H2="h2",Nb.H3="h3",
Nb.H4="h4",Nb.H5="h5",Nb.H6="h6",Nb.HEAD="head",
Nb.HEADER="header",Nb.HGROUP="hgroup",
Nb.HR="hr",Nb.HTML="html",Nb.I="i",Nb.IMG="img",
Nb.IMAGE="image",Nb.INPUT="input",
Nb.IFRAME="iframe",Nb.KEYGEN="keygen",Nb.LABEL="label",
Nb.LI="li",Nb.LINK="link",
Nb.LISTING="listing",Nb.MAIN="main",Nb.MALIGNMARK="malignmark",
Nb.MARQUEE="marquee",
Nb.MATH="math",Nb.MENU="menu",Nb.META="meta",Nb.MGLYPH="mglyph",
Nb.MI="mi",Nb.MO="mo",
Nb.MN="mn",Nb.MS="ms",Nb.MTEXT="mtext",Nb.NAV="nav",Nb.NOBR="nobr",
Nb.NOFRAMES="noframes",
Nb.NOEMBED="noembed",Nb.NOSCRIPT="noscript",Nb.OBJECT="object",
Nb.OL="ol",Nb.OPTGROUP="optgroup",
Nb.OPTION="option",Nb.P="p",Nb.PARAM="param",Nb.PLAINTEXT="plaintext",
Nb.PRE="pre",
Nb.RB="rb",Nb.RP="rp",Nb.RT="rt",Nb.RTC="rtc",Nb.RUBY="ruby",Nb.S="s",
Nb.SCRIPT="script",
Nb.SECTION="section",Nb.SELECT="select",Nb.SOURCE="source",Nb.SMALL="small",
Nb.SPAN="span",
Nb.STRIKE="strike",Nb.STRONG="strong",Nb.STYLE="style",Nb.SUB="sub",
Nb.SUMMARY="summary",
Nb.SUP="sup",Nb.TABLE="table",Nb.TBODY="tbody",Nb.TEMPLATE="template",
Nb.TEXTAREA="textarea",
Nb.TFOOT="tfoot",Nb.TD="td",Nb.TH="th",Nb.THEAD="thead",Nb.TITLE="title",
Nb.TR="tr",
Nb.TRACK="track",Nb.TT="tt",Nb.U="u",Nb.UL="ul",Nb.SVG="svg",Nb.VAR="var",
Nb.WBR="wbr",
Nb.XMP="xmp",(Mb=Ib=Ib||(Ib={}))[Mb.UNKNOWN=0]="UNKNOWN",Mb[Mb.A=1]="A",
Mb[Mb.ADDRESS=2]="ADDRESS",
Mb[Mb.ANNOTATION_XML=3]="ANNOTATION_XML",Mb[Mb.APPLET=4]="APPLET",
Mb[Mb.AREA=5]="AREA",
Mb[Mb.ARTICLE=6]="ARTICLE",Mb[Mb.ASIDE=7]="ASIDE",Mb[Mb.B=8]="B",
Mb[Mb.BASE=9]="BASE",
Mb[Mb.BASEFONT=10]="BASEFONT",Mb[Mb.BGSOUND=11]="BGSOUND",Mb[Mb.BIG=12]="BIG",
Mb[Mb.BLOCKQUOTE=13]="BLOCKQUOTE",
Mb[Mb.BODY=14]="BODY",Mb[Mb.BR=15]="BR",Mb[Mb.BUTTON=16]="BUTTON",
Mb[Mb.CAPTION=17]="CAPTION",
Mb[Mb.CENTER=18]="CENTER",Mb[Mb.CODE=19]="CODE",Mb[Mb.COL=20]="COL",
Mb[Mb.COLGROUP=21]="COLGROUP",
Mb[Mb.DD=22]="DD",Mb[Mb.DESC=23]="DESC",Mb[Mb.DETAILS=24]="DETAILS",
Mb[Mb.DIALOG=25]="DIALOG",
Mb[Mb.DIR=26]="DIR",Mb[Mb.DIV=27]="DIV",Mb[Mb.DL=28]="DL",
Mb[Mb.DT=29]="DT",Mb[Mb.EM=30]="EM",
Mb[Mb.EMBED=31]="EMBED",Mb[Mb.FIELDSET=32]="FIELDSET",
Mb[Mb.FIGCAPTION=33]="FIGCAPTION",
Mb[Mb.FIGURE=34]="FIGURE",Mb[Mb.FONT=35]="FONT",
Mb[Mb.FOOTER=36]="FOOTER",Mb[Mb.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",
Mb[Mb.FORM=38]="FORM",
Mb[Mb.FRAME=39]="FRAME",Mb[Mb.FRAMESET=40]="FRAMESET",Mb[Mb.H1=41]="H1",
Mb[Mb.H2=42]="H2",
Mb[Mb.H3=43]="H3",Mb[Mb.H4=44]="H4",Mb[Mb.H5=45]="H5",Mb[Mb.H6=46]="H6",
Mb[Mb.HEAD=47]="HEAD",
Mb[Mb.HEADER=48]="HEADER",Mb[Mb.HGROUP=49]="HGROUP",Mb[Mb.HR=50]="HR",
Mb[Mb.HTML=51]="HTML",
Mb[Mb.I=52]="I",Mb[Mb.IMG=53]="IMG",Mb[Mb.IMAGE=54]="IMAGE",
Mb[Mb.INPUT=55]="INPUT",
Mb[Mb.IFRAME=56]="IFRAME",Mb[Mb.KEYGEN=57]="KEYGEN",Mb[Mb.LABEL=58]="LABEL",
Mb[Mb.LI=59]="LI",
Mb[Mb.LINK=60]="LINK",Mb[Mb.LISTING=61]="LISTING",Mb[Mb.MAIN=62]="MAIN",
Mb[Mb.MALIGNMARK=63]="MALIGNMARK",
Mb[Mb.MARQUEE=64]="MARQUEE",Mb[Mb.MATH=65]="MATH",
Mb[Mb.MENU=66]="MENU",Mb[Mb.META=67]="META",
Mb[Mb.MGLYPH=68]="MGLYPH",Mb[Mb.MI=69]="MI",Mb[Mb.MO=70]="MO",Mb[Mb.MN=71]="MN",
Mb[Mb.MS=72]="MS",
Mb[Mb.MTEXT=73]="MTEXT",Mb[Mb.NAV=74]="NAV",Mb[Mb.NOBR=75]="NOBR",
Mb[Mb.NOFRAMES=76]="NOFRAMES",
Mb[Mb.NOEMBED=77]="NOEMBED",Mb[Mb.NOSCRIPT=78]="NOSCRIPT",
Mb[Mb.OBJECT=79]="OBJECT",
Mb[Mb.OL=80]="OL",Mb[Mb.OPTGROUP=81]="OPTGROUP",Mb[Mb.OPTION=82]="OPTION",
Mb[Mb.P=83]="P",
Mb[Mb.PARAM=84]="PARAM",Mb[Mb.PLAINTEXT=85]="PLAINTEXT",Mb[Mb.PRE=86]="PRE",
Mb[Mb.RB=87]="RB",
Mb[Mb.RP=88]="RP",Mb[Mb.RT=89]="RT",Mb[Mb.RTC=90]="RTC",Mb[Mb.RUBY=91]="RUBY",
Mb[Mb.S=92]="S",
Mb[Mb.SCRIPT=93]="SCRIPT",Mb[Mb.SECTION=94]="SECTION",Mb[Mb.SELECT=95]="SELECT",
Mb[Mb.SOURCE=96]="SOURCE",
Mb[Mb.SMALL=97]="SMALL",Mb[Mb.SPAN=98]="SPAN",Mb[Mb.STRIKE=99]="STRIKE",
Mb[Mb.STRONG=100]="STRONG",
Mb[Mb.STYLE=101]="STYLE",Mb[Mb.SUB=102]="SUB",Mb[Mb.SUMMARY=103]="SUMMARY",
Mb[Mb.SUP=104]="SUP",
Mb[Mb.TABLE=105]="TABLE",Mb[Mb.TBODY=106]="TBODY",Mb[Mb.TEMPLATE=107]="TEMPLATE",
Mb[Mb.TEXTAREA=108]="TEXTAREA",
Mb[Mb.TFOOT=109]="TFOOT",Mb[Mb.TD=110]="TD",Mb[Mb.TH=111]="TH",
Mb[Mb.THEAD=112]="THEAD",
Mb[Mb.TITLE=113]="TITLE",Mb[Mb.TR=114]="TR",Mb[Mb.TRACK=115]="TRACK",
Mb[Mb.TT=116]="TT",
Mb[Mb.U=117]="U",Mb[Mb.UL=118]="UL",Mb[Mb.SVG=119]="SVG",Mb[Mb.VAR=120]="VAR",
Mb[Mb.WBR=121]="WBR",Mb[Mb.XMP=122]="XMP"
;const Fb=new Map([[Rb.A,Ib.A],[Rb.ADDRESS,Ib.ADDRESS],[Rb.ANNOTATION_XML,Ib.ANNOTATION_XML],[Rb.APPLET,Ib.APPLET],[Rb.AREA,Ib.AREA],[Rb.ARTICLE,Ib.ARTICLE],[Rb.ASIDE,Ib.ASIDE],[Rb.B,Ib.B],[Rb.BASE,Ib.BASE],[Rb.BASEFONT,Ib.BASEFONT],[Rb.BGSOUND,Ib.BGSOUND],[Rb.BIG,Ib.BIG],[Rb.BLOCKQUOTE,Ib.BLOCKQUOTE],[Rb.BODY,Ib.BODY],[Rb.BR,Ib.BR],[Rb.BUTTON,Ib.BUTTON],[Rb.CAPTION,Ib.CAPTION],[Rb.CENTER,Ib.CENTER],[Rb.CODE,Ib.CODE],[Rb.COL,Ib.COL],[Rb.COLGROUP,Ib.COLGROUP],[Rb.DD,Ib.DD],[Rb.DESC,Ib.DESC],[Rb.DETAILS,Ib.DETAILS],[Rb.DIALOG,Ib.DIALOG],[Rb.DIR,Ib.DIR],[Rb.DIV,Ib.DIV],[Rb.DL,Ib.DL],[Rb.DT,Ib.DT],[Rb.EM,Ib.EM],[Rb.EMBED,Ib.EMBED],[Rb.FIELDSET,Ib.FIELDSET],[Rb.FIGCAPTION,Ib.FIGCAPTION],[Rb.FIGURE,Ib.FIGURE],[Rb.FONT,Ib.FONT],[Rb.FOOTER,Ib.FOOTER],[Rb.FOREIGN_OBJECT,Ib.FOREIGN_OBJECT],[Rb.FORM,Ib.FORM],[Rb.FRAME,Ib.FRAME],[Rb.FRAMESET,Ib.FRAMESET],[Rb.H1,Ib.H1],[Rb.H2,Ib.H2],[Rb.H3,Ib.H3],[Rb.H4,Ib.H4],[Rb.H5,Ib.H5],[Rb.H6,Ib.H6],[Rb.HEAD,Ib.HEAD],[Rb.HEADER,Ib.HEADER],[Rb.HGROUP,Ib.HGROUP],[Rb.HR,Ib.HR],[Rb.HTML,Ib.HTML],[Rb.I,Ib.I],[Rb.IMG,Ib.IMG],[Rb.IMAGE,Ib.IMAGE],[Rb.INPUT,Ib.INPUT],[Rb.IFRAME,Ib.IFRAME],[Rb.KEYGEN,Ib.KEYGEN],[Rb.LABEL,Ib.LABEL],[Rb.LI,Ib.LI],[Rb.LINK,Ib.LINK],[Rb.LISTING,Ib.LISTING],[Rb.MAIN,Ib.MAIN],[Rb.MALIGNMARK,Ib.MALIGNMARK],[Rb.MARQUEE,Ib.MARQUEE],[Rb.MATH,Ib.MATH],[Rb.MENU,Ib.MENU],[Rb.META,Ib.META],[Rb.MGLYPH,Ib.MGLYPH],[Rb.MI,Ib.MI],[Rb.MO,Ib.MO],[Rb.MN,Ib.MN],[Rb.MS,Ib.MS],[Rb.MTEXT,Ib.MTEXT],[Rb.NAV,Ib.NAV],[Rb.NOBR,Ib.NOBR],[Rb.NOFRAMES,Ib.NOFRAMES],[Rb.NOEMBED,Ib.NOEMBED],[Rb.NOSCRIPT,Ib.NOSCRIPT],[Rb.OBJECT,Ib.OBJECT],[Rb.OL,Ib.OL],[Rb.OPTGROUP,Ib.OPTGROUP],[Rb.OPTION,Ib.OPTION],[Rb.P,Ib.P],[Rb.PARAM,Ib.PARAM],[Rb.PLAINTEXT,Ib.PLAINTEXT],[Rb.PRE,Ib.PRE],[Rb.RB,Ib.RB],[Rb.RP,Ib.RP],[Rb.RT,Ib.RT],[Rb.RTC,Ib.RTC],[Rb.RUBY,Ib.RUBY],[Rb.S,Ib.S],[Rb.SCRIPT,Ib.SCRIPT],[Rb.SECTION,Ib.SECTION],[Rb.SELECT,Ib.SELECT],[Rb.SOURCE,Ib.SOURCE],[Rb.SMALL,Ib.SMALL],[Rb.SPAN,Ib.SPAN],[Rb.STRIKE,Ib.STRIKE],[Rb.STRONG,Ib.STRONG],[Rb.STYLE,Ib.STYLE],[Rb.SUB,Ib.SUB],[Rb.SUMMARY,Ib.SUMMARY],[Rb.SUP,Ib.SUP],[Rb.TABLE,Ib.TABLE],[Rb.TBODY,Ib.TBODY],[Rb.TEMPLATE,Ib.TEMPLATE],[Rb.TEXTAREA,Ib.TEXTAREA],[Rb.TFOOT,Ib.TFOOT],[Rb.TD,Ib.TD],[Rb.TH,Ib.TH],[Rb.THEAD,Ib.THEAD],[Rb.TITLE,Ib.TITLE],[Rb.TR,Ib.TR],[Rb.TRACK,Ib.TRACK],[Rb.TT,Ib.TT],[Rb.U,Ib.U],[Rb.UL,Ib.UL],[Rb.SVG,Ib.SVG],[Rb.VAR,Ib.VAR],[Rb.WBR,Ib.WBR],[Rb.XMP,Ib.XMP]])
;function qb(e){var t;return null!==(t=Fb.get(e))&&void 0!==t?t:Ib.UNKNOWN}
const zb=Ib,Hb={
[Tb.HTML]:new Set([zb.ADDRESS,zb.APPLET,zb.AREA,zb.ARTICLE,zb.ASIDE,zb.BASE,zb.BASEFONT,zb.BGSOUND,zb.BLOCKQUOTE,zb.BODY,zb.BR,zb.BUTTON,zb.CAPTION,zb.CENTER,zb.COL,zb.COLGROUP,zb.DD,zb.DETAILS,zb.DIR,zb.DIV,zb.DL,zb.DT,zb.EMBED,zb.FIELDSET,zb.FIGCAPTION,zb.FIGURE,zb.FOOTER,zb.FORM,zb.FRAME,zb.FRAMESET,zb.H1,zb.H2,zb.H3,zb.H4,zb.H5,zb.H6,zb.HEAD,zb.HEADER,zb.HGROUP,zb.HR,zb.HTML,zb.IFRAME,zb.IMG,zb.INPUT,zb.LI,zb.LINK,zb.LISTING,zb.MAIN,zb.MARQUEE,zb.MENU,zb.META,zb.NAV,zb.NOEMBED,zb.NOFRAMES,zb.NOSCRIPT,zb.OBJECT,zb.OL,zb.P,zb.PARAM,zb.PLAINTEXT,zb.PRE,zb.SCRIPT,zb.SECTION,zb.SELECT,zb.SOURCE,zb.STYLE,zb.SUMMARY,zb.TABLE,zb.TBODY,zb.TD,zb.TEMPLATE,zb.TEXTAREA,zb.TFOOT,zb.TH,zb.THEAD,zb.TITLE,zb.TR,zb.TRACK,zb.UL,zb.WBR,zb.XMP]),
[Tb.MATHML]:new Set([zb.MI,zb.MO,zb.MN,zb.MS,zb.MTEXT,zb.ANNOTATION_XML]),
[Tb.SVG]:new Set([zb.TITLE,zb.FOREIGN_OBJECT,zb.DESC]),[Tb.XLINK]:new Set,
[Tb.XML]:new Set,[Tb.XMLNS]:new Set};function Zb(e){
return e===zb.H1||e===zb.H2||e===zb.H3||e===zb.H4||e===zb.H5||e===zb.H6}
Rb.STYLE,Rb.SCRIPT,Rb.XMP,Rb.IFRAME,Rb.NOEMBED,Rb.NOFRAMES,Rb.PLAINTEXT
;const Vb=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]])
;var Wb,Xb
;(Xb=Wb||(Wb={}))[Xb.DATA=0]="DATA",Xb[Xb.RCDATA=1]="RCDATA",Xb[Xb.RAWTEXT=2]="RAWTEXT",
Xb[Xb.SCRIPT_DATA=3]="SCRIPT_DATA",
Xb[Xb.PLAINTEXT=4]="PLAINTEXT",Xb[Xb.TAG_OPEN=5]="TAG_OPEN",
Xb[Xb.END_TAG_OPEN=6]="END_TAG_OPEN",
Xb[Xb.TAG_NAME=7]="TAG_NAME",Xb[Xb.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",
Xb[Xb.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",
Xb[Xb.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",
Xb[Xb.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",
Xb[Xb.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",
Xb[Xb.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",
Xb[Xb.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",
Xb[Xb.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",
Xb[Xb.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",
Xb[Xb.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",
Xb[Xb.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",
Xb[Xb.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",
Xb[Xb.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",
Xb[Xb.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",
Xb[Xb.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",
Xb[Xb.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",
Xb[Xb.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",
Xb[Xb.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",
Xb[Xb.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",
Xb[Xb.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",
Xb[Xb.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",
Xb[Xb.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",
Xb[Xb.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",
Xb[Xb.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",
Xb[Xb.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",
Xb[Xb.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",
Xb[Xb.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",
Xb[Xb.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",
Xb[Xb.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",
Xb[Xb.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",
Xb[Xb.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",
Xb[Xb.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",
Xb[Xb.BOGUS_COMMENT=40]="BOGUS_COMMENT",
Xb[Xb.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",
Xb[Xb.COMMENT_START=42]="COMMENT_START",
Xb[Xb.COMMENT_START_DASH=43]="COMMENT_START_DASH",
Xb[Xb.COMMENT=44]="COMMENT",Xb[Xb.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",
Xb[Xb.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",
Xb[Xb.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",
Xb[Xb.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",
Xb[Xb.COMMENT_END_DASH=49]="COMMENT_END_DASH",
Xb[Xb.COMMENT_END=50]="COMMENT_END",
Xb[Xb.COMMENT_END_BANG=51]="COMMENT_END_BANG",
Xb[Xb.DOCTYPE=52]="DOCTYPE",Xb[Xb.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",
Xb[Xb.DOCTYPE_NAME=54]="DOCTYPE_NAME",
Xb[Xb.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",
Xb[Xb.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",
Xb[Xb.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",
Xb[Xb.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",
Xb[Xb.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",
Xb[Xb.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",
Xb[Xb.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",
Xb[Xb.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",
Xb[Xb.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",
Xb[Xb.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",
Xb[Xb.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",
Xb[Xb.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",
Xb[Xb.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",Xb[Xb.CDATA_SECTION=68]="CDATA_SECTION",
Xb[Xb.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",
Xb[Xb.CDATA_SECTION_END=70]="CDATA_SECTION_END",
Xb[Xb.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",
Xb[Xb.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",
Xb[Xb.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",
Xb[Xb.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",
Xb[Xb.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",
Xb[Xb.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",
Xb[Xb.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",
Xb[Xb.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"
;const Yb={DATA:Wb.DATA,RCDATA:Wb.RCDATA,RAWTEXT:Wb.RAWTEXT,
SCRIPT_DATA:Wb.SCRIPT_DATA,PLAINTEXT:Wb.PLAINTEXT,CDATA_SECTION:Wb.CDATA_SECTION
};function Gb(e){return e>=Gv.DIGIT_0&&e<=Gv.DIGIT_9}function Kb(e){
return e>=Gv.LATIN_CAPITAL_A&&e<=Gv.LATIN_CAPITAL_Z}function Jb(e){
return function(e){return e>=Gv.LATIN_SMALL_A&&e<=Gv.LATIN_SMALL_Z}(e)||Kb(e)}
function eO(e){return Jb(e)||Gb(e)}function tO(e){
return e>=Gv.LATIN_CAPITAL_A&&e<=Gv.LATIN_CAPITAL_F}function nO(e){
return e>=Gv.LATIN_SMALL_A&&e<=Gv.LATIN_SMALL_F}function rO(e){return e+32}
function oO(e){
return e===Gv.SPACE||e===Gv.LINE_FEED||e===Gv.TABULATION||e===Gv.FORM_FEED}
function iO(e){return oO(e)||e===Gv.SOLIDUS||e===Gv.GREATER_THAN_SIGN}class aO{
constructor(e,t){
this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,
this.lastStartTagName="",
this.active=!1,this.state=Wb.DATA,this.returnState=Wb.DATA,
this.charRefCode=-1,this.consumedAfterSnapshot=-1,
this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={
name:"",value:""
},this.preprocessor=new ub(t),this.currentLocation=this.getCurrentLocation(-1)}
_err(e){var t,n
;null===(n=(t=this.handler).onParseError)||void 0===n||n.call(t,this.preprocessor.getError(e))
}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{
startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,
startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}
_runParsingLoop(){if(!this.inLoop){
for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0
;const e=this._consume();this._ensureHibernation()||this._callState(e)}
this.inLoop=!1}}pause(){this.paused=!0}resume(e){
if(!this.paused)throw new Error("Parser was already resumed")
;this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}
write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),
this.paused||null==n||n()}insertHtmlAtCurrentPos(e){
this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),
this._runParsingLoop()}_ensureHibernation(){
return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),
this.active=!1,!0)}_consume(){
return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){
this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}
_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){
this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}
_consumeSequenceIfMatch(e,t){
return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}
_createStartTagToken(){this.currentToken={type:db.START_TAG,tagName:"",
tagID:Ib.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],
location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={
type:db.END_TAG,tagName:"",tagID:Ib.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,
attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){
this.currentToken={type:db.COMMENT,data:"",location:this.getCurrentLocation(e)}}
_createDoctypeToken(e){this.currentToken={type:db.DOCTYPE,name:e,forceQuirks:!1,
publicId:null,systemId:null,location:this.currentLocation}}
_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,
location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""
},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t
;const n=this.currentToken;if(null===hb(n,this.currentAttr.name)){
if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){
(null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,
this._leaveAttrValue()}}else this._err(lb.duplicateAttribute)}_leaveAttrValue(){
this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,
this.currentLocation.endCol=this.preprocessor.col,
this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){
this._emitCurrentCharacterToken(e.location),
this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,
e.location.endCol=this.preprocessor.col+1,
e.location.endOffset=this.preprocessor.offset+1),
this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){
const e=this.currentToken
;this.prepareToken(e),e.tagID=qb(e.tagName),e.type===db.START_TAG?(this.lastStartTagName=e.tagName,
this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(lb.endTagWithAttributes),
e.selfClosing&&this._err(lb.endTagWithTrailingSolidus),
this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}
emitCurrentComment(e){
this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()
}emitCurrentDoctype(e){
this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()
}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){
switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,
this.currentCharacterToken.location.endCol=e.startCol,
this.currentCharacterToken.location.endOffset=e.startOffset),
this.currentCharacterToken.type){case db.CHARACTER:
this.handler.onCharacter(this.currentCharacterToken);break
;case db.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken)
;break;case db.WHITESPACE_CHARACTER:
this.handler.onWhitespaceCharacter(this.currentCharacterToken)}
this.currentCharacterToken=null}}_emitEOFToken(){
const e=this.getCurrentLocation(0)
;e&&(e.endLine=e.startLine,e.endCol=e.startCol,
e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),
this.handler.onEof({type:db.EOF,location:e}),this.active=!1}
_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){
if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t)
;this.currentLocation=this.getCurrentLocation(0),
this._emitCurrentCharacterToken(this.currentLocation),
this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}
_emitCodePoint(e){
const t=oO(e)?db.WHITESPACE_CHARACTER:e===Gv.NULL?db.NULL_CHARACTER:db.CHARACTER
;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}
_emitChars(e){this._appendCharToCurrentCharacterToken(db.CHARACTER,e)}
_matchNamedCharacterReference(e){let t=null,n=0,r=!1
;for(let i=0,a=fb[0];i>=0&&(i=Ub(fb,a,i+1,e),!(i<0));e=this._consume()){
n+=1,a=fb[i];const s=a&wb.VALUE_LENGTH;if(s){const a=(s>>14)-1
;if(e!==Gv.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((o=this.preprocessor.peek(1))===Gv.EQUALS_SIGN||eO(o))?(t=[Gv.AMPERSAND],
i+=a):(t=0===a?[fb[i]&~wb.VALUE_LENGTH]:1===a?[fb[++i]]:[fb[++i],fb[++i]],
n=0,r=e!==Gv.SEMICOLON),0===a){this._consume();break}}}var o
;return this._unconsume(n),
r&&!this.preprocessor.endOfChunkHit&&this._err(lb.missingSemicolonAfterCharacterReference),
this._unconsume(1),t}_isCharacterReferenceInAttribute(){
return this.returnState===Wb.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Wb.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Wb.ATTRIBUTE_VALUE_UNQUOTED
}_flushCodePointConsumedAsCharacterReference(e){
this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)
}_callState(e){switch(this.state){case Wb.DATA:this._stateData(e);break
;case Wb.RCDATA:this._stateRcdata(e);break;case Wb.RAWTEXT:this._stateRawtext(e)
;break;case Wb.SCRIPT_DATA:this._stateScriptData(e);break;case Wb.PLAINTEXT:
this._statePlaintext(e);break;case Wb.TAG_OPEN:this._stateTagOpen(e);break
;case Wb.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Wb.TAG_NAME:
this._stateTagName(e);break;case Wb.RCDATA_LESS_THAN_SIGN:
this._stateRcdataLessThanSign(e);break;case Wb.RCDATA_END_TAG_OPEN:
this._stateRcdataEndTagOpen(e);break;case Wb.RCDATA_END_TAG_NAME:
this._stateRcdataEndTagName(e);break;case Wb.RAWTEXT_LESS_THAN_SIGN:
this._stateRawtextLessThanSign(e);break;case Wb.RAWTEXT_END_TAG_OPEN:
this._stateRawtextEndTagOpen(e);break;case Wb.RAWTEXT_END_TAG_NAME:
this._stateRawtextEndTagName(e);break;case Wb.SCRIPT_DATA_LESS_THAN_SIGN:
this._stateScriptDataLessThanSign(e);break;case Wb.SCRIPT_DATA_END_TAG_OPEN:
this._stateScriptDataEndTagOpen(e);break;case Wb.SCRIPT_DATA_END_TAG_NAME:
this._stateScriptDataEndTagName(e);break;case Wb.SCRIPT_DATA_ESCAPE_START:
this._stateScriptDataEscapeStart(e);break;case Wb.SCRIPT_DATA_ESCAPE_START_DASH:
this._stateScriptDataEscapeStartDash(e);break;case Wb.SCRIPT_DATA_ESCAPED:
this._stateScriptDataEscaped(e);break;case Wb.SCRIPT_DATA_ESCAPED_DASH:
this._stateScriptDataEscapedDash(e);break;case Wb.SCRIPT_DATA_ESCAPED_DASH_DASH:
this._stateScriptDataEscapedDashDash(e);break
;case Wb.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:
this._stateScriptDataEscapedLessThanSign(e);break
;case Wb.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:
this._stateScriptDataEscapedEndTagOpen(e);break
;case Wb.SCRIPT_DATA_ESCAPED_END_TAG_NAME:
this._stateScriptDataEscapedEndTagName(e);break
;case Wb.SCRIPT_DATA_DOUBLE_ESCAPE_START:
this._stateScriptDataDoubleEscapeStart(e);break
;case Wb.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break
;case Wb.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:
this._stateScriptDataDoubleEscapedDash(e);break
;case Wb.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:
this._stateScriptDataDoubleEscapedDashDash(e);break
;case Wb.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:
this._stateScriptDataDoubleEscapedLessThanSign(e);break
;case Wb.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e)
;break;case Wb.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break
;case Wb.ATTRIBUTE_NAME:this._stateAttributeName(e);break
;case Wb.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break
;case Wb.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break
;case Wb.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e)
;break;case Wb.ATTRIBUTE_VALUE_SINGLE_QUOTED:
this._stateAttributeValueSingleQuoted(e);break;case Wb.ATTRIBUTE_VALUE_UNQUOTED:
this._stateAttributeValueUnquoted(e);break;case Wb.AFTER_ATTRIBUTE_VALUE_QUOTED:
this._stateAfterAttributeValueQuoted(e);break;case Wb.SELF_CLOSING_START_TAG:
this._stateSelfClosingStartTag(e);break;case Wb.BOGUS_COMMENT:
this._stateBogusComment(e);break;case Wb.MARKUP_DECLARATION_OPEN:
this._stateMarkupDeclarationOpen(e);break;case Wb.COMMENT_START:
this._stateCommentStart(e);break;case Wb.COMMENT_START_DASH:
this._stateCommentStartDash(e);break;case Wb.COMMENT:this._stateComment(e);break
;case Wb.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break
;case Wb.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break
;case Wb.COMMENT_LESS_THAN_SIGN_BANG_DASH:
this._stateCommentLessThanSignBangDash(e);break
;case Wb.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:
this._stateCommentLessThanSignBangDashDash(e);break;case Wb.COMMENT_END_DASH:
this._stateCommentEndDash(e);break;case Wb.COMMENT_END:this._stateCommentEnd(e)
;break;case Wb.COMMENT_END_BANG:this._stateCommentEndBang(e);break
;case Wb.DOCTYPE:this._stateDoctype(e);break;case Wb.BEFORE_DOCTYPE_NAME:
this._stateBeforeDoctypeName(e);break;case Wb.DOCTYPE_NAME:
this._stateDoctypeName(e);break;case Wb.AFTER_DOCTYPE_NAME:
this._stateAfterDoctypeName(e);break;case Wb.AFTER_DOCTYPE_PUBLIC_KEYWORD:
this._stateAfterDoctypePublicKeyword(e);break
;case Wb.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:
this._stateBeforeDoctypePublicIdentifier(e);break
;case Wb.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:
this._stateDoctypePublicIdentifierDoubleQuoted(e);break
;case Wb.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:
this._stateDoctypePublicIdentifierSingleQuoted(e);break
;case Wb.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:
this._stateAfterDoctypePublicIdentifier(e);break
;case Wb.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:
this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break
;case Wb.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e)
;break;case Wb.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:
this._stateBeforeDoctypeSystemIdentifier(e);break
;case Wb.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:
this._stateDoctypeSystemIdentifierDoubleQuoted(e);break
;case Wb.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:
this._stateDoctypeSystemIdentifierSingleQuoted(e);break
;case Wb.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:
this._stateAfterDoctypeSystemIdentifier(e);break;case Wb.BOGUS_DOCTYPE:
this._stateBogusDoctype(e);break;case Wb.CDATA_SECTION:
this._stateCdataSection(e);break;case Wb.CDATA_SECTION_BRACKET:
this._stateCdataSectionBracket(e);break;case Wb.CDATA_SECTION_END:
this._stateCdataSectionEnd(e);break;case Wb.CHARACTER_REFERENCE:
this._stateCharacterReference(e);break;case Wb.NAMED_CHARACTER_REFERENCE:
this._stateNamedCharacterReference(e);break;case Wb.AMBIGUOUS_AMPERSAND:
this._stateAmbiguousAmpersand(e);break;case Wb.NUMERIC_CHARACTER_REFERENCE:
this._stateNumericCharacterReference(e);break
;case Wb.HEXADEMICAL_CHARACTER_REFERENCE_START:
this._stateHexademicalCharacterReferenceStart(e);break
;case Wb.HEXADEMICAL_CHARACTER_REFERENCE:
this._stateHexademicalCharacterReference(e);break
;case Wb.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e)
;break;case Wb.NUMERIC_CHARACTER_REFERENCE_END:
this._stateNumericCharacterReferenceEnd(e);break;default:
throw new Error("Unknown state")}}_stateData(e){switch(e){
case Gv.LESS_THAN_SIGN:this.state=Wb.TAG_OPEN;break;case Gv.AMPERSAND:
this.returnState=Wb.DATA,this.state=Wb.CHARACTER_REFERENCE;break;case Gv.NULL:
this._err(lb.unexpectedNullCharacter),this._emitCodePoint(e);break;case Gv.EOF:
this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){
switch(e){case Gv.AMPERSAND:
this.returnState=Wb.RCDATA,this.state=Wb.CHARACTER_REFERENCE;break
;case Gv.LESS_THAN_SIGN:this.state=Wb.RCDATA_LESS_THAN_SIGN;break;case Gv.NULL:
this._err(lb.unexpectedNullCharacter),this._emitChars(Yv);break;case Gv.EOF:
this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){
switch(e){case Gv.LESS_THAN_SIGN:this.state=Wb.RAWTEXT_LESS_THAN_SIGN;break
;case Gv.NULL:this._err(lb.unexpectedNullCharacter),this._emitChars(Yv);break
;case Gv.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}
_stateScriptData(e){switch(e){case Gv.LESS_THAN_SIGN:
this.state=Wb.SCRIPT_DATA_LESS_THAN_SIGN;break;case Gv.NULL:
this._err(lb.unexpectedNullCharacter),this._emitChars(Yv);break;case Gv.EOF:
this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){
switch(e){case Gv.NULL:this._err(lb.unexpectedNullCharacter),this._emitChars(Yv)
;break;case Gv.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}
_stateTagOpen(e){
if(Jb(e))this._createStartTagToken(),this.state=Wb.TAG_NAME,this._stateTagName(e);else switch(e){
case Gv.EXCLAMATION_MARK:this.state=Wb.MARKUP_DECLARATION_OPEN;break
;case Gv.SOLIDUS:this.state=Wb.END_TAG_OPEN;break;case Gv.QUESTION_MARK:
this._err(lb.unexpectedQuestionMarkInsteadOfTagName),
this._createCommentToken(1),
this.state=Wb.BOGUS_COMMENT,this._stateBogusComment(e);break;case Gv.EOF:
this._err(lb.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break
;default:
this._err(lb.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Wb.DATA,
this._stateData(e)}}_stateEndTagOpen(e){
if(Jb(e))this._createEndTagToken(),this.state=Wb.TAG_NAME,
this._stateTagName(e);else switch(e){case Gv.GREATER_THAN_SIGN:
this._err(lb.missingEndTagName),this.state=Wb.DATA;break;case Gv.EOF:
this._err(lb.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break
;default:
this._err(lb.invalidFirstCharacterOfTagName),this._createCommentToken(2),
this.state=Wb.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){
const t=this.currentToken;switch(e){case Gv.SPACE:case Gv.LINE_FEED:
case Gv.TABULATION:case Gv.FORM_FEED:this.state=Wb.BEFORE_ATTRIBUTE_NAME;break
;case Gv.SOLIDUS:this.state=Wb.SELF_CLOSING_START_TAG;break
;case Gv.GREATER_THAN_SIGN:this.state=Wb.DATA,this.emitCurrentTagToken();break
;case Gv.NULL:this._err(lb.unexpectedNullCharacter),t.tagName+=Yv;break
;case Gv.EOF:this._err(lb.eofInTag),this._emitEOFToken();break;default:
t.tagName+=String.fromCodePoint(Kb(e)?rO(e):e)}}_stateRcdataLessThanSign(e){
e===Gv.SOLIDUS?this.state=Wb.RCDATA_END_TAG_OPEN:(this._emitChars("<"),
this.state=Wb.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){
Jb(e)?(this.state=Wb.RCDATA_END_TAG_NAME,
this._stateRcdataEndTagName(e)):(this._emitChars("</"),
this.state=Wb.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){
if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation()
;this._createEndTagToken();this.currentToken.tagName=this.lastStartTagName
;switch(this.preprocessor.peek(this.lastStartTagName.length)){case Gv.SPACE:
case Gv.LINE_FEED:case Gv.TABULATION:case Gv.FORM_FEED:
return this._advanceBy(this.lastStartTagName.length),
this.state=Wb.BEFORE_ATTRIBUTE_NAME,!1;case Gv.SOLIDUS:
return this._advanceBy(this.lastStartTagName.length),
this.state=Wb.SELF_CLOSING_START_TAG,!1;case Gv.GREATER_THAN_SIGN:
return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),
this.state=Wb.DATA,!1;default:return!this._ensureHibernation()}}
_stateRcdataEndTagName(e){
this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Wb.RCDATA,
this._stateRcdata(e))}_stateRawtextLessThanSign(e){
e===Gv.SOLIDUS?this.state=Wb.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),
this.state=Wb.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){
Jb(e)?(this.state=Wb.RAWTEXT_END_TAG_NAME,
this._stateRawtextEndTagName(e)):(this._emitChars("</"),
this.state=Wb.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){
this.handleSpecialEndTag(e)&&(this._emitChars("</"),
this.state=Wb.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){
switch(e){case Gv.SOLIDUS:this.state=Wb.SCRIPT_DATA_END_TAG_OPEN;break
;case Gv.EXCLAMATION_MARK:
this.state=Wb.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:
this._emitChars("<"),this.state=Wb.SCRIPT_DATA,this._stateScriptData(e)}}
_stateScriptDataEndTagOpen(e){
Jb(e)?(this.state=Wb.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),
this.state=Wb.SCRIPT_DATA,this._stateScriptData(e))}
_stateScriptDataEndTagName(e){
this.handleSpecialEndTag(e)&&(this._emitChars("</"),
this.state=Wb.SCRIPT_DATA,this._stateScriptData(e))}
_stateScriptDataEscapeStart(e){
e===Gv.HYPHEN_MINUS?(this.state=Wb.SCRIPT_DATA_ESCAPE_START_DASH,
this._emitChars("-")):(this.state=Wb.SCRIPT_DATA,this._stateScriptData(e))}
_stateScriptDataEscapeStartDash(e){
e===Gv.HYPHEN_MINUS?(this.state=Wb.SCRIPT_DATA_ESCAPED_DASH_DASH,
this._emitChars("-")):(this.state=Wb.SCRIPT_DATA,this._stateScriptData(e))}
_stateScriptDataEscaped(e){switch(e){case Gv.HYPHEN_MINUS:
this.state=Wb.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break
;case Gv.LESS_THAN_SIGN:this.state=Wb.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break
;case Gv.NULL:this._err(lb.unexpectedNullCharacter),this._emitChars(Yv);break
;case Gv.EOF:this._err(lb.eofInScriptHtmlCommentLikeText),this._emitEOFToken()
;break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){
case Gv.HYPHEN_MINUS:
this.state=Wb.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break
;case Gv.LESS_THAN_SIGN:this.state=Wb.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break
;case Gv.NULL:
this._err(lb.unexpectedNullCharacter),this.state=Wb.SCRIPT_DATA_ESCAPED,
this._emitChars(Yv);break;case Gv.EOF:
this._err(lb.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:
this.state=Wb.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}
_stateScriptDataEscapedDashDash(e){switch(e){case Gv.HYPHEN_MINUS:
this._emitChars("-");break;case Gv.LESS_THAN_SIGN:
this.state=Wb.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break
;case Gv.GREATER_THAN_SIGN:this.state=Wb.SCRIPT_DATA,this._emitChars(">");break
;case Gv.NULL:
this._err(lb.unexpectedNullCharacter),this.state=Wb.SCRIPT_DATA_ESCAPED,
this._emitChars(Yv);break;case Gv.EOF:
this._err(lb.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:
this.state=Wb.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}
_stateScriptDataEscapedLessThanSign(e){
e===Gv.SOLIDUS?this.state=Wb.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Jb(e)?(this._emitChars("<"),
this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPE_START,
this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),
this.state=Wb.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}
_stateScriptDataEscapedEndTagOpen(e){
Jb(e)?(this.state=Wb.SCRIPT_DATA_ESCAPED_END_TAG_NAME,
this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),
this.state=Wb.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}
_stateScriptDataEscapedEndTagName(e){
this.handleSpecialEndTag(e)&&(this._emitChars("</"),
this.state=Wb.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}
_stateScriptDataDoubleEscapeStart(e){
if(this.preprocessor.startsWith(nb,!1)&&iO(this.preprocessor.peek(nb.length))){
this._emitCodePoint(e)
;for(let e=0;e<nb.length;e++)this._emitCodePoint(this._consume())
;this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPED
}else this._ensureHibernation()||(this.state=Wb.SCRIPT_DATA_ESCAPED,
this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){
case Gv.HYPHEN_MINUS:
this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break
;case Gv.LESS_THAN_SIGN:this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,
this._emitChars("<");break;case Gv.NULL:
this._err(lb.unexpectedNullCharacter),this._emitChars(Yv);break;case Gv.EOF:
this._err(lb.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:
this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){
case Gv.HYPHEN_MINUS:
this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break
;case Gv.LESS_THAN_SIGN:this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,
this._emitChars("<");break;case Gv.NULL:
this._err(lb.unexpectedNullCharacter),this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPED,
this._emitChars(Yv);break;case Gv.EOF:
this._err(lb.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:
this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}
_stateScriptDataDoubleEscapedDashDash(e){switch(e){case Gv.HYPHEN_MINUS:
this._emitChars("-");break;case Gv.LESS_THAN_SIGN:
this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<")
;break;case Gv.GREATER_THAN_SIGN:this.state=Wb.SCRIPT_DATA,this._emitChars(">")
;break;case Gv.NULL:
this._err(lb.unexpectedNullCharacter),this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPED,
this._emitChars(Yv);break;case Gv.EOF:
this._err(lb.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:
this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}
_stateScriptDataDoubleEscapedLessThanSign(e){
e===Gv.SOLIDUS?(this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPE_END,
this._emitChars("/")):(this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPED,
this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){
if(this.preprocessor.startsWith(nb,!1)&&iO(this.preprocessor.peek(nb.length))){
this._emitCodePoint(e)
;for(let e=0;e<nb.length;e++)this._emitCodePoint(this._consume())
;this.state=Wb.SCRIPT_DATA_ESCAPED
}else this._ensureHibernation()||(this.state=Wb.SCRIPT_DATA_DOUBLE_ESCAPED,
this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){
case Gv.SPACE:case Gv.LINE_FEED:case Gv.TABULATION:case Gv.FORM_FEED:break
;case Gv.SOLIDUS:case Gv.GREATER_THAN_SIGN:case Gv.EOF:
this.state=Wb.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break
;case Gv.EQUALS_SIGN:
this._err(lb.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),
this.state=Wb.ATTRIBUTE_NAME;break;default:
this._createAttr(""),this.state=Wb.ATTRIBUTE_NAME,this._stateAttributeName(e)}}
_stateAttributeName(e){switch(e){case Gv.SPACE:case Gv.LINE_FEED:
case Gv.TABULATION:case Gv.FORM_FEED:case Gv.SOLIDUS:case Gv.GREATER_THAN_SIGN:
case Gv.EOF:
this._leaveAttrName(),this.state=Wb.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e)
;break;case Gv.EQUALS_SIGN:
this._leaveAttrName(),this.state=Wb.BEFORE_ATTRIBUTE_VALUE;break
;case Gv.QUOTATION_MARK:case Gv.APOSTROPHE:case Gv.LESS_THAN_SIGN:
this._err(lb.unexpectedCharacterInAttributeName),
this.currentAttr.name+=String.fromCodePoint(e);break;case Gv.NULL:
this._err(lb.unexpectedNullCharacter),this.currentAttr.name+=Yv;break;default:
this.currentAttr.name+=String.fromCodePoint(Kb(e)?rO(e):e)}}
_stateAfterAttributeName(e){switch(e){case Gv.SPACE:case Gv.LINE_FEED:
case Gv.TABULATION:case Gv.FORM_FEED:break;case Gv.SOLIDUS:
this.state=Wb.SELF_CLOSING_START_TAG;break;case Gv.EQUALS_SIGN:
this.state=Wb.BEFORE_ATTRIBUTE_VALUE;break;case Gv.GREATER_THAN_SIGN:
this.state=Wb.DATA,this.emitCurrentTagToken();break;case Gv.EOF:
this._err(lb.eofInTag),this._emitEOFToken();break;default:
this._createAttr(""),this.state=Wb.ATTRIBUTE_NAME,this._stateAttributeName(e)}}
_stateBeforeAttributeValue(e){switch(e){case Gv.SPACE:case Gv.LINE_FEED:
case Gv.TABULATION:case Gv.FORM_FEED:break;case Gv.QUOTATION_MARK:
this.state=Wb.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case Gv.APOSTROPHE:
this.state=Wb.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case Gv.GREATER_THAN_SIGN:
this._err(lb.missingAttributeValue),
this.state=Wb.DATA,this.emitCurrentTagToken();break;default:
this.state=Wb.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}
_stateAttributeValueDoubleQuoted(e){switch(e){case Gv.QUOTATION_MARK:
this.state=Wb.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Gv.AMPERSAND:
this.returnState=Wb.ATTRIBUTE_VALUE_DOUBLE_QUOTED,
this.state=Wb.CHARACTER_REFERENCE;break;case Gv.NULL:
this._err(lb.unexpectedNullCharacter),this.currentAttr.value+=Yv;break
;case Gv.EOF:this._err(lb.eofInTag),this._emitEOFToken();break;default:
this.currentAttr.value+=String.fromCodePoint(e)}}
_stateAttributeValueSingleQuoted(e){switch(e){case Gv.APOSTROPHE:
this.state=Wb.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Gv.AMPERSAND:
this.returnState=Wb.ATTRIBUTE_VALUE_SINGLE_QUOTED,
this.state=Wb.CHARACTER_REFERENCE;break;case Gv.NULL:
this._err(lb.unexpectedNullCharacter),this.currentAttr.value+=Yv;break
;case Gv.EOF:this._err(lb.eofInTag),this._emitEOFToken();break;default:
this.currentAttr.value+=String.fromCodePoint(e)}}
_stateAttributeValueUnquoted(e){switch(e){case Gv.SPACE:case Gv.LINE_FEED:
case Gv.TABULATION:case Gv.FORM_FEED:
this._leaveAttrValue(),this.state=Wb.BEFORE_ATTRIBUTE_NAME;break
;case Gv.AMPERSAND:
this.returnState=Wb.ATTRIBUTE_VALUE_UNQUOTED,this.state=Wb.CHARACTER_REFERENCE
;break;case Gv.GREATER_THAN_SIGN:
this._leaveAttrValue(),this.state=Wb.DATA,this.emitCurrentTagToken();break
;case Gv.NULL:this._err(lb.unexpectedNullCharacter),this.currentAttr.value+=Yv
;break;case Gv.QUOTATION_MARK:case Gv.APOSTROPHE:case Gv.LESS_THAN_SIGN:
case Gv.EQUALS_SIGN:case Gv.GRAVE_ACCENT:
this._err(lb.unexpectedCharacterInUnquotedAttributeValue),
this.currentAttr.value+=String.fromCodePoint(e);break;case Gv.EOF:
this._err(lb.eofInTag),this._emitEOFToken();break;default:
this.currentAttr.value+=String.fromCodePoint(e)}}
_stateAfterAttributeValueQuoted(e){switch(e){case Gv.SPACE:case Gv.LINE_FEED:
case Gv.TABULATION:case Gv.FORM_FEED:
this._leaveAttrValue(),this.state=Wb.BEFORE_ATTRIBUTE_NAME;break
;case Gv.SOLIDUS:this._leaveAttrValue(),this.state=Wb.SELF_CLOSING_START_TAG
;break;case Gv.GREATER_THAN_SIGN:
this._leaveAttrValue(),this.state=Wb.DATA,this.emitCurrentTagToken();break
;case Gv.EOF:this._err(lb.eofInTag),this._emitEOFToken();break;default:
this._err(lb.missingWhitespaceBetweenAttributes),
this.state=Wb.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}
_stateSelfClosingStartTag(e){switch(e){case Gv.GREATER_THAN_SIGN:
this.currentToken.selfClosing=!0,this.state=Wb.DATA,this.emitCurrentTagToken()
;break;case Gv.EOF:this._err(lb.eofInTag),this._emitEOFToken();break;default:
this._err(lb.unexpectedSolidusInTag),
this.state=Wb.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}
_stateBogusComment(e){const t=this.currentToken;switch(e){
case Gv.GREATER_THAN_SIGN:this.state=Wb.DATA,this.emitCurrentComment(t);break
;case Gv.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case Gv.NULL:
this._err(lb.unexpectedNullCharacter),t.data+=Yv;break;default:
t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){
this._consumeSequenceIfMatch(Jv,!0)?(this._createCommentToken(Jv.length+1),
this.state=Wb.COMMENT_START):this._consumeSequenceIfMatch(tb,!1)?(this.currentLocation=this.getCurrentLocation(tb.length+1),
this.state=Wb.DOCTYPE):this._consumeSequenceIfMatch(eb,!0)?this.inForeignNode?this.state=Wb.CDATA_SECTION:(this._err(lb.cdataInHtmlContent),
this._createCommentToken(eb.length+1),
this.currentToken.data="[CDATA[",this.state=Wb.BOGUS_COMMENT):this._ensureHibernation()||(this._err(lb.incorrectlyOpenedComment),
this._createCommentToken(2),
this.state=Wb.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){
switch(e){case Gv.HYPHEN_MINUS:this.state=Wb.COMMENT_START_DASH;break
;case Gv.GREATER_THAN_SIGN:{
this._err(lb.abruptClosingOfEmptyComment),this.state=Wb.DATA
;const e=this.currentToken;this.emitCurrentComment(e);break}default:
this.state=Wb.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){
const t=this.currentToken;switch(e){case Gv.HYPHEN_MINUS:
this.state=Wb.COMMENT_END;break;case Gv.GREATER_THAN_SIGN:
this._err(lb.abruptClosingOfEmptyComment),
this.state=Wb.DATA,this.emitCurrentComment(t);break;case Gv.EOF:
this._err(lb.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break
;default:t.data+="-",this.state=Wb.COMMENT,this._stateComment(e)}}
_stateComment(e){const t=this.currentToken;switch(e){case Gv.HYPHEN_MINUS:
this.state=Wb.COMMENT_END_DASH;break;case Gv.LESS_THAN_SIGN:
t.data+="<",this.state=Wb.COMMENT_LESS_THAN_SIGN;break;case Gv.NULL:
this._err(lb.unexpectedNullCharacter),t.data+=Yv;break;case Gv.EOF:
this._err(lb.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break
;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){
const t=this.currentToken;switch(e){case Gv.EXCLAMATION_MARK:
t.data+="!",this.state=Wb.COMMENT_LESS_THAN_SIGN_BANG;break
;case Gv.LESS_THAN_SIGN:t.data+="<";break;default:
this.state=Wb.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){
e===Gv.HYPHEN_MINUS?this.state=Wb.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Wb.COMMENT,
this._stateComment(e))}_stateCommentLessThanSignBangDash(e){
e===Gv.HYPHEN_MINUS?this.state=Wb.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Wb.COMMENT_END_DASH,
this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){
e!==Gv.GREATER_THAN_SIGN&&e!==Gv.EOF&&this._err(lb.nestedComment),
this.state=Wb.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){
const t=this.currentToken;switch(e){case Gv.HYPHEN_MINUS:
this.state=Wb.COMMENT_END;break;case Gv.EOF:
this._err(lb.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break
;default:t.data+="-",this.state=Wb.COMMENT,this._stateComment(e)}}
_stateCommentEnd(e){const t=this.currentToken;switch(e){
case Gv.GREATER_THAN_SIGN:this.state=Wb.DATA,this.emitCurrentComment(t);break
;case Gv.EXCLAMATION_MARK:this.state=Wb.COMMENT_END_BANG;break
;case Gv.HYPHEN_MINUS:t.data+="-";break;case Gv.EOF:
this._err(lb.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break
;default:t.data+="--",this.state=Wb.COMMENT,this._stateComment(e)}}
_stateCommentEndBang(e){const t=this.currentToken;switch(e){
case Gv.HYPHEN_MINUS:t.data+="--!",this.state=Wb.COMMENT_END_DASH;break
;case Gv.GREATER_THAN_SIGN:
this._err(lb.incorrectlyClosedComment),this.state=Wb.DATA,
this.emitCurrentComment(t);break;case Gv.EOF:
this._err(lb.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break
;default:t.data+="--!",this.state=Wb.COMMENT,this._stateComment(e)}}
_stateDoctype(e){switch(e){case Gv.SPACE:case Gv.LINE_FEED:case Gv.TABULATION:
case Gv.FORM_FEED:this.state=Wb.BEFORE_DOCTYPE_NAME;break
;case Gv.GREATER_THAN_SIGN:
this.state=Wb.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break
;case Gv.EOF:{this._err(lb.eofInDoctype),this._createDoctypeToken(null)
;const e=this.currentToken
;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:
this._err(lb.missingWhitespaceBeforeDoctypeName),
this.state=Wb.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}
_stateBeforeDoctypeName(e){
if(Kb(e))this._createDoctypeToken(String.fromCharCode(rO(e))),
this.state=Wb.DOCTYPE_NAME;else switch(e){case Gv.SPACE:case Gv.LINE_FEED:
case Gv.TABULATION:case Gv.FORM_FEED:break;case Gv.NULL:
this._err(lb.unexpectedNullCharacter),
this._createDoctypeToken(Yv),this.state=Wb.DOCTYPE_NAME;break
;case Gv.GREATER_THAN_SIGN:{
this._err(lb.missingDoctypeName),this._createDoctypeToken(null)
;const e=this.currentToken
;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Wb.DATA;break}
case Gv.EOF:{this._err(lb.eofInDoctype),this._createDoctypeToken(null)
;const e=this.currentToken
;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:
this._createDoctypeToken(String.fromCodePoint(e)),this.state=Wb.DOCTYPE_NAME}}
_stateDoctypeName(e){const t=this.currentToken;switch(e){case Gv.SPACE:
case Gv.LINE_FEED:case Gv.TABULATION:case Gv.FORM_FEED:
this.state=Wb.AFTER_DOCTYPE_NAME;break;case Gv.GREATER_THAN_SIGN:
this.state=Wb.DATA,this.emitCurrentDoctype(t);break;case Gv.NULL:
this._err(lb.unexpectedNullCharacter),t.name+=Yv;break;case Gv.EOF:
this._err(lb.eofInDoctype),
t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:
t.name+=String.fromCodePoint(Kb(e)?rO(e):e)}}_stateAfterDoctypeName(e){
const t=this.currentToken;switch(e){case Gv.SPACE:case Gv.LINE_FEED:
case Gv.TABULATION:case Gv.FORM_FEED:break;case Gv.GREATER_THAN_SIGN:
this.state=Wb.DATA,this.emitCurrentDoctype(t);break;case Gv.EOF:
this._err(lb.eofInDoctype),
t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:
this._consumeSequenceIfMatch(rb,!1)?this.state=Wb.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(ob,!1)?this.state=Wb.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(lb.invalidCharacterSequenceAfterDoctypeName),
t.forceQuirks=!0,this.state=Wb.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}
_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){
case Gv.SPACE:case Gv.LINE_FEED:case Gv.TABULATION:case Gv.FORM_FEED:
this.state=Wb.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case Gv.QUOTATION_MARK:
this._err(lb.missingWhitespaceAfterDoctypePublicKeyword),
t.publicId="",this.state=Wb.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break
;case Gv.APOSTROPHE:
this._err(lb.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",
this.state=Wb.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break
;case Gv.GREATER_THAN_SIGN:
this._err(lb.missingDoctypePublicIdentifier),t.forceQuirks=!0,
this.state=Wb.DATA,this.emitCurrentDoctype(t);break;case Gv.EOF:
this._err(lb.eofInDoctype),
t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:
this._err(lb.missingQuoteBeforeDoctypePublicIdentifier),
t.forceQuirks=!0,this.state=Wb.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}
_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){
case Gv.SPACE:case Gv.LINE_FEED:case Gv.TABULATION:case Gv.FORM_FEED:break
;case Gv.QUOTATION_MARK:
t.publicId="",this.state=Wb.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break
;case Gv.APOSTROPHE:
t.publicId="",this.state=Wb.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break
;case Gv.GREATER_THAN_SIGN:
this._err(lb.missingDoctypePublicIdentifier),t.forceQuirks=!0,
this.state=Wb.DATA,this.emitCurrentDoctype(t);break;case Gv.EOF:
this._err(lb.eofInDoctype),
t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:
this._err(lb.missingQuoteBeforeDoctypePublicIdentifier),
t.forceQuirks=!0,this.state=Wb.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}
_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken
;switch(e){case Gv.QUOTATION_MARK:this.state=Wb.AFTER_DOCTYPE_PUBLIC_IDENTIFIER
;break;case Gv.NULL:this._err(lb.unexpectedNullCharacter),t.publicId+=Yv;break
;case Gv.GREATER_THAN_SIGN:
this._err(lb.abruptDoctypePublicIdentifier),t.forceQuirks=!0,
this.emitCurrentDoctype(t),this.state=Wb.DATA;break;case Gv.EOF:
this._err(lb.eofInDoctype),
t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:
t.publicId+=String.fromCodePoint(e)}}
_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken
;switch(e){case Gv.APOSTROPHE:this.state=Wb.AFTER_DOCTYPE_PUBLIC_IDENTIFIER
;break;case Gv.NULL:this._err(lb.unexpectedNullCharacter),t.publicId+=Yv;break
;case Gv.GREATER_THAN_SIGN:
this._err(lb.abruptDoctypePublicIdentifier),t.forceQuirks=!0,
this.emitCurrentDoctype(t),this.state=Wb.DATA;break;case Gv.EOF:
this._err(lb.eofInDoctype),
t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:
t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){
const t=this.currentToken;switch(e){case Gv.SPACE:case Gv.LINE_FEED:
case Gv.TABULATION:case Gv.FORM_FEED:
this.state=Wb.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break
;case Gv.GREATER_THAN_SIGN:this.state=Wb.DATA,this.emitCurrentDoctype(t);break
;case Gv.QUOTATION_MARK:
this._err(lb.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),
t.systemId="",this.state=Wb.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break
;case Gv.APOSTROPHE:
this._err(lb.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),
t.systemId="",this.state=Wb.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break
;case Gv.EOF:
this._err(lb.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),
this._emitEOFToken();break;default:
this._err(lb.missingQuoteBeforeDoctypeSystemIdentifier),
t.forceQuirks=!0,this.state=Wb.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}
_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken
;switch(e){case Gv.SPACE:case Gv.LINE_FEED:case Gv.TABULATION:case Gv.FORM_FEED:
break;case Gv.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Wb.DATA
;break;case Gv.QUOTATION_MARK:
t.systemId="",this.state=Wb.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break
;case Gv.APOSTROPHE:
t.systemId="",this.state=Wb.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break
;case Gv.EOF:
this._err(lb.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),
this._emitEOFToken();break;default:
this._err(lb.missingQuoteBeforeDoctypeSystemIdentifier),
t.forceQuirks=!0,this.state=Wb.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}
_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){
case Gv.SPACE:case Gv.LINE_FEED:case Gv.TABULATION:case Gv.FORM_FEED:
this.state=Wb.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case Gv.QUOTATION_MARK:
this._err(lb.missingWhitespaceAfterDoctypeSystemKeyword),
t.systemId="",this.state=Wb.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break
;case Gv.APOSTROPHE:
this._err(lb.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",
this.state=Wb.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break
;case Gv.GREATER_THAN_SIGN:
this._err(lb.missingDoctypeSystemIdentifier),t.forceQuirks=!0,
this.state=Wb.DATA,this.emitCurrentDoctype(t);break;case Gv.EOF:
this._err(lb.eofInDoctype),
t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:
this._err(lb.missingQuoteBeforeDoctypeSystemIdentifier),
t.forceQuirks=!0,this.state=Wb.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}
_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){
case Gv.SPACE:case Gv.LINE_FEED:case Gv.TABULATION:case Gv.FORM_FEED:break
;case Gv.QUOTATION_MARK:
t.systemId="",this.state=Wb.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break
;case Gv.APOSTROPHE:
t.systemId="",this.state=Wb.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break
;case Gv.GREATER_THAN_SIGN:
this._err(lb.missingDoctypeSystemIdentifier),t.forceQuirks=!0,
this.state=Wb.DATA,this.emitCurrentDoctype(t);break;case Gv.EOF:
this._err(lb.eofInDoctype),
t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:
this._err(lb.missingQuoteBeforeDoctypeSystemIdentifier),
t.forceQuirks=!0,this.state=Wb.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}
_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken
;switch(e){case Gv.QUOTATION_MARK:this.state=Wb.AFTER_DOCTYPE_SYSTEM_IDENTIFIER
;break;case Gv.NULL:this._err(lb.unexpectedNullCharacter),t.systemId+=Yv;break
;case Gv.GREATER_THAN_SIGN:
this._err(lb.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,
this.emitCurrentDoctype(t),this.state=Wb.DATA;break;case Gv.EOF:
this._err(lb.eofInDoctype),
t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:
t.systemId+=String.fromCodePoint(e)}}
_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken
;switch(e){case Gv.APOSTROPHE:this.state=Wb.AFTER_DOCTYPE_SYSTEM_IDENTIFIER
;break;case Gv.NULL:this._err(lb.unexpectedNullCharacter),t.systemId+=Yv;break
;case Gv.GREATER_THAN_SIGN:
this._err(lb.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,
this.emitCurrentDoctype(t),this.state=Wb.DATA;break;case Gv.EOF:
this._err(lb.eofInDoctype),
t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:
t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){
const t=this.currentToken;switch(e){case Gv.SPACE:case Gv.LINE_FEED:
case Gv.TABULATION:case Gv.FORM_FEED:break;case Gv.GREATER_THAN_SIGN:
this.emitCurrentDoctype(t),this.state=Wb.DATA;break;case Gv.EOF:
this._err(lb.eofInDoctype),
t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:
this._err(lb.unexpectedCharacterAfterDoctypeSystemIdentifier),
this.state=Wb.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){
const t=this.currentToken;switch(e){case Gv.GREATER_THAN_SIGN:
this.emitCurrentDoctype(t),this.state=Wb.DATA;break;case Gv.NULL:
this._err(lb.unexpectedNullCharacter);break;case Gv.EOF:
this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){
switch(e){case Gv.RIGHT_SQUARE_BRACKET:this.state=Wb.CDATA_SECTION_BRACKET;break
;case Gv.EOF:this._err(lb.eofInCdata),this._emitEOFToken();break;default:
this._emitCodePoint(e)}}_stateCdataSectionBracket(e){
e===Gv.RIGHT_SQUARE_BRACKET?this.state=Wb.CDATA_SECTION_END:(this._emitChars("]"),
this.state=Wb.CDATA_SECTION,this._stateCdataSection(e))}
_stateCdataSectionEnd(e){switch(e){case Gv.GREATER_THAN_SIGN:this.state=Wb.DATA
;break;case Gv.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:
this._emitChars("]]"),this.state=Wb.CDATA_SECTION,this._stateCdataSection(e)}}
_stateCharacterReference(e){
e===Gv.NUMBER_SIGN?this.state=Wb.NUMERIC_CHARACTER_REFERENCE:eO(e)?(this.state=Wb.NAMED_CHARACTER_REFERENCE,
this._stateNamedCharacterReference(e)):(this._flushCodePointConsumedAsCharacterReference(Gv.AMPERSAND),
this._reconsumeInState(this.returnState,e))}_stateNamedCharacterReference(e){
const t=this._matchNamedCharacterReference(e)
;if(this._ensureHibernation());else if(t){
for(let e=0;e<t.length;e++)this._flushCodePointConsumedAsCharacterReference(t[e])
;this.state=this.returnState
}else this._flushCodePointConsumedAsCharacterReference(Gv.AMPERSAND),
this.state=Wb.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(e){
eO(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===Gv.SEMICOLON&&this._err(lb.unknownNamedCharacterReference),
this._reconsumeInState(this.returnState,e))}_stateNumericCharacterReference(e){
this.charRefCode=0,
e===Gv.LATIN_SMALL_X||e===Gv.LATIN_CAPITAL_X?this.state=Wb.HEXADEMICAL_CHARACTER_REFERENCE_START:Gb(e)?(this.state=Wb.DECIMAL_CHARACTER_REFERENCE,
this._stateDecimalCharacterReference(e)):(this._err(lb.absenceOfDigitsInNumericCharacterReference),
this._flushCodePointConsumedAsCharacterReference(Gv.AMPERSAND),
this._flushCodePointConsumedAsCharacterReference(Gv.NUMBER_SIGN),
this._reconsumeInState(this.returnState,e))}
_stateHexademicalCharacterReferenceStart(e){!function(e){
return Gb(e)||tO(e)||nO(e)
}(e)?(this._err(lb.absenceOfDigitsInNumericCharacterReference),
this._flushCodePointConsumedAsCharacterReference(Gv.AMPERSAND),
this._flushCodePointConsumedAsCharacterReference(Gv.NUMBER_SIGN),
this._unconsume(2),
this.state=this.returnState):(this.state=Wb.HEXADEMICAL_CHARACTER_REFERENCE,
this._stateHexademicalCharacterReference(e))}
_stateHexademicalCharacterReference(e){
tO(e)?this.charRefCode=16*this.charRefCode+e-55:nO(e)?this.charRefCode=16*this.charRefCode+e-87:Gb(e)?this.charRefCode=16*this.charRefCode+e-48:e===Gv.SEMICOLON?this.state=Wb.NUMERIC_CHARACTER_REFERENCE_END:(this._err(lb.missingSemicolonAfterCharacterReference),
this.state=Wb.NUMERIC_CHARACTER_REFERENCE_END,
this._stateNumericCharacterReferenceEnd(e))}_stateDecimalCharacterReference(e){
Gb(e)?this.charRefCode=10*this.charRefCode+e-48:e===Gv.SEMICOLON?this.state=Wb.NUMERIC_CHARACTER_REFERENCE_END:(this._err(lb.missingSemicolonAfterCharacterReference),
this.state=Wb.NUMERIC_CHARACTER_REFERENCE_END,
this._stateNumericCharacterReferenceEnd(e))}
_stateNumericCharacterReferenceEnd(e){
if(this.charRefCode===Gv.NULL)this._err(lb.nullCharacterReference),
this.charRefCode=Gv.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(lb.characterReferenceOutsideUnicodeRange),
this.charRefCode=Gv.REPLACEMENT_CHARACTER;else if(ib(this.charRefCode))this._err(lb.surrogateCharacterReference),
this.charRefCode=Gv.REPLACEMENT_CHARACTER;else if(sb(this.charRefCode))this._err(lb.noncharacterCharacterReference);else if(ab(this.charRefCode)||this.charRefCode===Gv.CARRIAGE_RETURN){
this._err(lb.controlCharacterReference);const e=Vb.get(this.charRefCode)
;void 0!==e&&(this.charRefCode=e)}
this._flushCodePointConsumedAsCharacterReference(this.charRefCode),
this._reconsumeInState(this.returnState,e)}}
const sO=new Set([Ib.DD,Ib.DT,Ib.LI,Ib.OPTGROUP,Ib.OPTION,Ib.P,Ib.RB,Ib.RP,Ib.RT,Ib.RTC]),lO=new Set([...sO,Ib.CAPTION,Ib.COLGROUP,Ib.TBODY,Ib.TD,Ib.TFOOT,Ib.TH,Ib.THEAD,Ib.TR]),cO=new Map([[Ib.APPLET,Tb.HTML],[Ib.CAPTION,Tb.HTML],[Ib.HTML,Tb.HTML],[Ib.MARQUEE,Tb.HTML],[Ib.OBJECT,Tb.HTML],[Ib.TABLE,Tb.HTML],[Ib.TD,Tb.HTML],[Ib.TEMPLATE,Tb.HTML],[Ib.TH,Tb.HTML],[Ib.ANNOTATION_XML,Tb.MATHML],[Ib.MI,Tb.MATHML],[Ib.MN,Tb.MATHML],[Ib.MO,Tb.MATHML],[Ib.MS,Tb.MATHML],[Ib.MTEXT,Tb.MATHML],[Ib.DESC,Tb.SVG],[Ib.FOREIGN_OBJECT,Tb.SVG],[Ib.TITLE,Tb.SVG]]),uO=[Ib.H1,Ib.H2,Ib.H3,Ib.H4,Ib.H5,Ib.H6],dO=[Ib.TR,Ib.TEMPLATE,Ib.HTML],pO=[Ib.TBODY,Ib.TFOOT,Ib.THEAD,Ib.TEMPLATE,Ib.HTML],hO=[Ib.TABLE,Ib.TEMPLATE,Ib.HTML],fO=[Ib.TD,Ib.TH]
;class mO{get currentTmplContentOrNode(){
return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current
}constructor(e,t,n){
this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,
this.tmplCount=0,this.currentTagId=Ib.UNKNOWN,this.current=e}_indexOf(e){
return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){
return this.currentTagId===Ib.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Tb.HTML
}_updateCurrentElement(){
this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]
}push(e,t){
this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,
this.currentTagId=t,
this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){
const e=this.current
;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,
this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){
const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}
insertAfter(e,t,n){const r=this._indexOf(e)+1
;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),
this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),
this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}
popUntilTagNamePopped(e){let t=this.stackTop+1;do{
t=this.tagIDs.lastIndexOf(e,t-1)
}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==Tb.HTML)
;this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){
const t=this.current
;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),
this.stackTop--,this._updateCurrentElement(),
this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){
const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){
const n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?0:n)}
popUntilNumberedHeaderPopped(){this.popUntilPopped(uO,Tb.HTML)}
popUntilTableCellPopped(){this.popUntilPopped(fO,Tb.HTML)}
popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}
_indexOfTagNames(e,t){
for(let n=this.stackTop;n>=0;n--)if(e.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n
;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t)
;this.shortenToLength(n+1)}clearBackToTableContext(){
this.clearBackTo(hO,Tb.HTML)}clearBackToTableBodyContext(){
this.clearBackTo(pO,Tb.HTML)}clearBackToTableRowContext(){
this.clearBackTo(dO,Tb.HTML)}remove(e){const t=this._indexOf(e)
;t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),
this.tagIDs.splice(t,1),
this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}
tryPeekProperlyNestedBodyElement(){
return this.stackTop>=1&&this.tagIDs[1]===Ib.BODY?this.items[1]:null}
contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){
const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}
isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===Ib.HTML}
hasInScope(e){for(let t=this.stackTop;t>=0;t--){
const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t])
;if(n===e&&r===Tb.HTML)return!0;if(cO.get(n)===r)return!1}return!0}
hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){
const t=this.tagIDs[e],n=this.treeAdapter.getNamespaceURI(this.items[e])
;if(Zb(t)&&n===Tb.HTML)return!0;if(cO.get(t)===n)return!1}return!0}
hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){
const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t])
;if(n===e&&r===Tb.HTML)return!0
;if((n===Ib.UL||n===Ib.OL)&&r===Tb.HTML||cO.get(n)===r)return!1}return!0}
hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){
const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t])
;if(n===e&&r===Tb.HTML)return!0
;if(n===Ib.BUTTON&&r===Tb.HTML||cO.get(n)===r)return!1}return!0}
hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t]
;if(this.treeAdapter.getNamespaceURI(this.items[t])===Tb.HTML){if(n===e)return!0
;if(n===Ib.TABLE||n===Ib.TEMPLATE||n===Ib.HTML)return!1}}return!0}
hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){
const t=this.tagIDs[e]
;if(this.treeAdapter.getNamespaceURI(this.items[e])===Tb.HTML){
if(t===Ib.TBODY||t===Ib.THEAD||t===Ib.TFOOT)return!0
;if(t===Ib.TABLE||t===Ib.HTML)return!1}}return!0}hasInSelectScope(e){
for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t]
;if(this.treeAdapter.getNamespaceURI(this.items[t])===Tb.HTML){if(n===e)return!0
;if(n!==Ib.OPTION&&n!==Ib.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){
for(;sO.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){
for(;lO.has(this.currentTagId);)this.pop()}
generateImpliedEndTagsWithExclusion(e){
for(;this.currentTagId!==e&&lO.has(this.currentTagId);)this.pop()}}var gO,vO
;(vO=gO=gO||(gO={}))[vO.Marker=0]="Marker",vO[vO.Element=1]="Element";const bO={
type:gO.Marker};class OO{constructor(e){
this.treeAdapter=e,this.entries=[],this.bookmark=null}
_getNoahArkConditionCandidates(e,t){
const n=[],r=t.length,o=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e)
;for(let a=0;a<this.entries.length;a++){const e=this.entries[a]
;if(e.type===gO.Marker)break;const{element:t}=e
;if(this.treeAdapter.getTagName(t)===o&&this.treeAdapter.getNamespaceURI(t)===i){
const e=this.treeAdapter.getAttrList(t);e.length===r&&n.push({idx:a,attrs:e})}}
return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return
;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t)
;if(n.length<3)return;const r=new Map(t.map((e=>[e.name,e.value])));let o=0
;for(let i=0;i<n.length;i++){const e=n[i]
;e.attrs.every((e=>r.get(e.name)===e.value))&&(o+=1,
o>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(bO)}
pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({
type:gO.Element,element:e,token:t})}insertElementAfterBookmark(e,t){
const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{
type:gO.Element,element:e,token:t})}removeEntry(e){
const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}
clearToLastMarker(){const e=this.entries.indexOf(bO)
;e>=0?this.entries.splice(0,e+1):this.entries.length=0}
getElementEntryInScopeWithTagName(e){
const t=this.entries.find((t=>t.type===gO.Marker||this.treeAdapter.getTagName(t.element)===e))
;return t&&t.type===gO.Element?t:null}getElementEntry(e){
return this.entries.find((t=>t.type===gO.Element&&t.element===e))}}
function yO(e){return{nodeName:"#text",value:e,parentNode:null}}const wO={
createDocument:()=>({nodeName:"#document",mode:Db.NO_QUIRKS,childNodes:[]}),
createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),
createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,
childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",
data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},
insertBefore(e,t,n){const r=e.childNodes.indexOf(n)
;e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t
},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){
const o=e.childNodes.find((e=>"#documentType"===e.nodeName))
;if(o)o.name=t,o.publicId=n,o.systemId=r;else{const o={nodeName:"#documentType",
name:t,publicId:n,systemId:r,parentNode:null};wO.appendChild(e,o)}},
setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){
if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e)
;e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){
if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1]
;if(wO.isTextNode(n))return void(n.value+=t)}wO.appendChild(e,yO(t))},
insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1]
;r&&wO.isTextNode(r)?r.value+=t:wO.insertBefore(e,yO(t),n)},
adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)))
;for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},
getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,
getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,
getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,
getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,
getDocumentTypeNodePublicId:e=>e.publicId,
getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,
isCommentNode:e=>"#comment"===e.nodeName,
isDocumentTypeNode:e=>"#documentType"===e.nodeName,
isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),
setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},
getNodeSourceCodeLocation:e=>e.sourceCodeLocation,
updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,
...t}}
},xO="html",kO="about:legacy-compat",SO="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",_O=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],EO=[..._O,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],TO=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),CO=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],AO=[...CO,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]
;function PO(e,t){return t.some((t=>e.startsWith(t)))}const DO={
TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"
},$O="definitionurl",RO="definitionURL",NO=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),IO=new Map([["xlink:actuate",{
prefix:"xlink",name:"actuate",namespace:Tb.XLINK}],["xlink:arcrole",{
prefix:"xlink",name:"arcrole",namespace:Tb.XLINK}],["xlink:href",{
prefix:"xlink",name:"href",namespace:Tb.XLINK}],["xlink:role",{prefix:"xlink",
name:"role",namespace:Tb.XLINK}],["xlink:show",{prefix:"xlink",name:"show",
namespace:Tb.XLINK}],["xlink:title",{prefix:"xlink",name:"title",
namespace:Tb.XLINK}],["xlink:type",{prefix:"xlink",name:"type",
namespace:Tb.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:Tb.XML
}],["xml:lang",{prefix:"xml",name:"lang",namespace:Tb.XML}],["xml:space",{
prefix:"xml",name:"space",namespace:Tb.XML}],["xmlns",{prefix:"",name:"xmlns",
namespace:Tb.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",
namespace:Tb.XMLNS
}]]),MO=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),LO=new Set([Ib.B,Ib.BIG,Ib.BLOCKQUOTE,Ib.BODY,Ib.BR,Ib.CENTER,Ib.CODE,Ib.DD,Ib.DIV,Ib.DL,Ib.DT,Ib.EM,Ib.EMBED,Ib.H1,Ib.H2,Ib.H3,Ib.H4,Ib.H5,Ib.H6,Ib.HEAD,Ib.HR,Ib.I,Ib.IMG,Ib.LI,Ib.LISTING,Ib.MENU,Ib.META,Ib.NOBR,Ib.OL,Ib.P,Ib.PRE,Ib.RUBY,Ib.S,Ib.SMALL,Ib.SPAN,Ib.STRONG,Ib.STRIKE,Ib.SUB,Ib.SUP,Ib.TABLE,Ib.TT,Ib.U,Ib.UL,Ib.VAR])
;function BO(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===$O){
e.attrs[t].name=RO;break}}function QO(e){for(let t=0;t<e.attrs.length;t++){
const n=NO.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function jO(e){
for(let t=0;t<e.attrs.length;t++){const n=IO.get(e.attrs[t].name)
;n&&(e.attrs[t].prefix=n.prefix,
e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function UO(e,t,n,r){
return(!r||r===Tb.HTML)&&function(e,t,n){
if(t===Tb.MATHML&&e===Ib.ANNOTATION_XML)for(let r=0;r<n.length;r++)if(n[r].name===Ab.ENCODING){
const e=n[r].value.toLowerCase();return e===DO.TEXT_HTML||e===DO.APPLICATION_XML
}return t===Tb.SVG&&(e===Ib.FOREIGN_OBJECT||e===Ib.DESC||e===Ib.TITLE)
}(e,t,n)||(!r||r===Tb.MATHML)&&function(e,t){
return t===Tb.MATHML&&(e===Ib.MI||e===Ib.MO||e===Ib.MN||e===Ib.MS||e===Ib.MTEXT)
}(e,t)}const FO="hidden",qO=8,zO=3;var HO,ZO
;(ZO=HO||(HO={}))[ZO.INITIAL=0]="INITIAL",
ZO[ZO.BEFORE_HTML=1]="BEFORE_HTML",ZO[ZO.BEFORE_HEAD=2]="BEFORE_HEAD",
ZO[ZO.IN_HEAD=3]="IN_HEAD",
ZO[ZO.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",ZO[ZO.AFTER_HEAD=5]="AFTER_HEAD",
ZO[ZO.IN_BODY=6]="IN_BODY",
ZO[ZO.TEXT=7]="TEXT",ZO[ZO.IN_TABLE=8]="IN_TABLE",ZO[ZO.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",
ZO[ZO.IN_CAPTION=10]="IN_CAPTION",
ZO[ZO.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",ZO[ZO.IN_TABLE_BODY=12]="IN_TABLE_BODY",
ZO[ZO.IN_ROW=13]="IN_ROW",
ZO[ZO.IN_CELL=14]="IN_CELL",ZO[ZO.IN_SELECT=15]="IN_SELECT",
ZO[ZO.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",
ZO[ZO.IN_TEMPLATE=17]="IN_TEMPLATE",
ZO[ZO.AFTER_BODY=18]="AFTER_BODY",ZO[ZO.IN_FRAMESET=19]="IN_FRAMESET",
ZO[ZO.AFTER_FRAMESET=20]="AFTER_FRAMESET",
ZO[ZO.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",
ZO[ZO.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";const VO={startLine:-1,
startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1
},WO=new Set([Ib.TABLE,Ib.TBODY,Ib.TFOOT,Ib.THEAD,Ib.TR]),XO={
scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:wO,onParseError:null}
;let YO=class{constructor(e,t,n=null,r=null){
this.fragmentContext=n,this.scriptHandler=r,
this.currentToken=null,this.stopped=!1,
this.insertionMode=HO.INITIAL,this.originalInsertionMode=HO.INITIAL,
this.headElement=null,
this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],
this.pendingCharacterTokens=[],
this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,
this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...XO,...e
},
this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,
this.onParseError&&(this.options.sourceCodeLocationInfo=!0),
this.document=null!=t?t:this.treeAdapter.createDocument(),
this.tokenizer=new aO(this.options,this),
this.activeFormattingElements=new OO(this.treeAdapter),
this.fragmentContextID=n?qb(this.treeAdapter.getTagName(n)):Ib.UNKNOWN,
this._setContextModes(null!=n?n:this.document,this.fragmentContextID),
this.openElements=new mO(this.document,this.treeAdapter,this)}static parse(e,t){
const n=new this(t);return n.tokenizer.write(e,!0),n.document}
static getFragmentParser(e,t){const n={...XO,...t}
;null!=e||(e=n.treeAdapter.createElement(Rb.TEMPLATE,Tb.HTML,[]))
;const r=n.treeAdapter.createElement("documentmock",Tb.HTML,[]),o=new this(n,r,e)
;return o.fragmentContextID===Ib.TEMPLATE&&o.tmplInsertionModeStack.unshift(HO.IN_TEMPLATE),
o._initTokenizerForFragmentParsing(),
o._insertFakeRootElement(),o._resetInsertionMode(),
o._findFormInFragmentContext(),o}getFragment(){
const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment()
;return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return
;const o=null!==(r=e.location)&&void 0!==r?r:VO,i={code:t,startLine:o.startLine,
startCol:o.startCol,startOffset:o.startOffset,endLine:n?o.startLine:o.endLine,
endCol:n?o.startCol:o.endCol,endOffset:n?o.startOffset:o.endOffset}
;this.onParseError(i)}onItemPush(e,t,n){var r,o
;null===(o=(r=this.treeAdapter).onItemPush)||void 0===o||o.call(r,e),
n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){
var n,r
;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),
null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),
t){let e,t
;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,
t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),
this._setContextModes(e,t)}}_setContextModes(e,t){
const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===Tb.HTML
;this.currentNotInHTML=!n,
this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}
_switchToTextParsing(e,t){this._insertElement(e,Tb.HTML),this.tokenizer.state=t,
this.originalInsertionMode=this.insertionMode,this.insertionMode=HO.TEXT}
switchToPlaintextParsing(){
this.insertionMode=HO.TEXT,this.originalInsertionMode=HO.IN_BODY,
this.tokenizer.state=Yb.PLAINTEXT}_getAdjustedCurrentElement(){
return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current
}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){
if(this.treeAdapter.getTagName(e)===Rb.FORM){this.formElement=e;break}
e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){
if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Tb.HTML)switch(this.fragmentContextID){
case Ib.TITLE:case Ib.TEXTAREA:this.tokenizer.state=Yb.RCDATA;break
;case Ib.STYLE:case Ib.XMP:case Ib.IFRAME:case Ib.NOEMBED:case Ib.NOFRAMES:
case Ib.NOSCRIPT:this.tokenizer.state=Yb.RAWTEXT;break;case Ib.SCRIPT:
this.tokenizer.state=Yb.SCRIPT_DATA;break;case Ib.PLAINTEXT:
this.tokenizer.state=Yb.PLAINTEXT}}_setDocumentType(e){
const t=e.name||"",n=e.publicId||"",r=e.systemId||""
;if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){
const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)))
;t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}
_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{
...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}
if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{
const t=this.openElements.currentTmplContentOrNode
;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){
const n=this.treeAdapter.createElement(e.tagName,t,e.attrs)
;this._attachElementToTree(n,e.location)}_insertElement(e,t){
const n=this.treeAdapter.createElement(e.tagName,t,e.attrs)
;this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}
_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,Tb.HTML,[])
;this._attachElementToTree(n,null),this.openElements.push(n,t)}
_insertTemplate(e){
const t=this.treeAdapter.createElement(e.tagName,Tb.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment()
;this.treeAdapter.setTemplateContent(t,n),
this._attachElementToTree(t,e.location),
this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)
}_insertFakeRootElement(){
const e=this.treeAdapter.createElement(Rb.HTML,Tb.HTML,[])
;this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),
this.treeAdapter.appendChild(this.openElements.current,e),
this.openElements.push(e,Ib.HTML)}_appendCommentNode(e,t){
const n=this.treeAdapter.createCommentNode(e.data)
;this.treeAdapter.appendChild(t,n),
this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)
}_insertCharacters(e){let t,n
;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),
n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,
this.treeAdapter.insertText(t,e.chars)),!e.location)return
;const r=this.treeAdapter.getChildNodes(t),o=n?r.lastIndexOf(n):r.length,i=r[o-1]
;if(this.treeAdapter.getNodeSourceCodeLocation(i)){
const{endLine:t,endCol:n,endOffset:r}=e.location
;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r
})
}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)
}_adoptNodes(e,t){
for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),
this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){
if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){
const n=t.location,r=this.treeAdapter.getTagName(e),o=t.type===db.END_TAG&&r===t.tagName?{
endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{
endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset}
;this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}
shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1
;let t,n
;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,
n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),
(e.tagID!==Ib.SVG||this.treeAdapter.getTagName(t)!==Rb.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Tb.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===Ib.MGLYPH||e.tagID===Ib.MALIGNMARK)&&!this._isIntegrationPoint(n,t,Tb.HTML))
}_processToken(e){switch(e.type){case db.CHARACTER:this.onCharacter(e);break
;case db.NULL_CHARACTER:this.onNullCharacter(e);break;case db.COMMENT:
this.onComment(e);break;case db.DOCTYPE:this.onDoctype(e);break
;case db.START_TAG:this._processStartTag(e);break;case db.END_TAG:
this.onEndTag(e);break;case db.EOF:this.onEof(e);break
;case db.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}
_isIntegrationPoint(e,t,n){
return UO(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)
}_reconstructActiveFormattingElements(){
const e=this.activeFormattingElements.entries.length;if(e){
const t=this.activeFormattingElements.entries.findIndex((e=>e.type===gO.Marker||this.openElements.contains(e.element)))
;for(let n=t<0?e-1:t-1;n>=0;n--){
const e=this.activeFormattingElements.entries[n]
;this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),
e.element=this.openElements.current}}}_closeTableCell(){
this.openElements.generateImpliedEndTags(),
this.openElements.popUntilTableCellPopped(),
this.activeFormattingElements.clearToLastMarker(),this.insertionMode=HO.IN_ROW}
_closePElement(){
this.openElements.generateImpliedEndTagsWithExclusion(Ib.P),this.openElements.popUntilTagNamePopped(Ib.P)
}_resetInsertionMode(){
for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){
case Ib.TR:return void(this.insertionMode=HO.IN_ROW);case Ib.TBODY:
case Ib.THEAD:case Ib.TFOOT:return void(this.insertionMode=HO.IN_TABLE_BODY)
;case Ib.CAPTION:return void(this.insertionMode=HO.IN_CAPTION);case Ib.COLGROUP:
return void(this.insertionMode=HO.IN_COLUMN_GROUP);case Ib.TABLE:
return void(this.insertionMode=HO.IN_TABLE);case Ib.BODY:
return void(this.insertionMode=HO.IN_BODY);case Ib.FRAMESET:
return void(this.insertionMode=HO.IN_FRAMESET);case Ib.SELECT:
return void this._resetInsertionModeForSelect(e);case Ib.TEMPLATE:
return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Ib.HTML:
return void(this.insertionMode=this.headElement?HO.AFTER_HEAD:HO.BEFORE_HEAD)
;case Ib.TD:case Ib.TH:if(e>0)return void(this.insertionMode=HO.IN_CELL);break
;case Ib.HEAD:if(e>0)return void(this.insertionMode=HO.IN_HEAD)}
this.insertionMode=HO.IN_BODY}_resetInsertionModeForSelect(e){
if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t]
;if(e===Ib.TEMPLATE)break
;if(e===Ib.TABLE)return void(this.insertionMode=HO.IN_SELECT_IN_TABLE)}
this.insertionMode=HO.IN_SELECT}_isElementCausesFosterParenting(e){
return WO.has(e)}_shouldFosterParentOnInsertion(){
return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)
}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){
const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){
case Ib.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Tb.HTML)return{
parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break
;case Ib.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,
beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}
return{parent:this.openElements.items[0],beforeElement:null}}
_fosterParentElement(e){const t=this._findFosterParentingLocation()
;t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)
}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e)
;return Hb[n].has(t)}onCharacter(e){
if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){
e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){
case HO.INITIAL:ay(this,e);break;case HO.BEFORE_HTML:sy(this,e);break
;case HO.BEFORE_HEAD:ly(this,e);break;case HO.IN_HEAD:dy(this,e);break
;case HO.IN_HEAD_NO_SCRIPT:py(this,e);break;case HO.AFTER_HEAD:hy(this,e);break
;case HO.IN_BODY:case HO.IN_CAPTION:case HO.IN_CELL:case HO.IN_TEMPLATE:
gy(this,e);break;case HO.TEXT:case HO.IN_SELECT:case HO.IN_SELECT_IN_TABLE:
this._insertCharacters(e);break;case HO.IN_TABLE:case HO.IN_TABLE_BODY:
case HO.IN_ROW:_y(this,e);break;case HO.IN_TABLE_TEXT:Py(this,e);break
;case HO.IN_COLUMN_GROUP:Ny(this,e);break;case HO.AFTER_BODY:qy(this,e);break
;case HO.AFTER_AFTER_BODY:zy(this,e)}}onNullCharacter(e){
if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){
t.chars=Yv,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){
case HO.INITIAL:ay(this,e);break;case HO.BEFORE_HTML:sy(this,e);break
;case HO.BEFORE_HEAD:ly(this,e);break;case HO.IN_HEAD:dy(this,e);break
;case HO.IN_HEAD_NO_SCRIPT:py(this,e);break;case HO.AFTER_HEAD:hy(this,e);break
;case HO.TEXT:this._insertCharacters(e);break;case HO.IN_TABLE:
case HO.IN_TABLE_BODY:case HO.IN_ROW:_y(this,e);break;case HO.IN_COLUMN_GROUP:
Ny(this,e);break;case HO.AFTER_BODY:qy(this,e);break;case HO.AFTER_AFTER_BODY:
zy(this,e)}}onComment(e){
if(this.skipNextNewLine=!1,this.currentNotInHTML)oy(this,e);else switch(this.insertionMode){
case HO.INITIAL:case HO.BEFORE_HTML:case HO.BEFORE_HEAD:case HO.IN_HEAD:
case HO.IN_HEAD_NO_SCRIPT:case HO.AFTER_HEAD:case HO.IN_BODY:case HO.IN_TABLE:
case HO.IN_CAPTION:case HO.IN_COLUMN_GROUP:case HO.IN_TABLE_BODY:case HO.IN_ROW:
case HO.IN_CELL:case HO.IN_SELECT:case HO.IN_SELECT_IN_TABLE:
case HO.IN_TEMPLATE:case HO.IN_FRAMESET:case HO.AFTER_FRAMESET:oy(this,e);break
;case HO.IN_TABLE_TEXT:Dy(this,e);break;case HO.AFTER_BODY:!function(e,t){
e._appendCommentNode(t,e.openElements.items[0])}(this,e);break
;case HO.AFTER_AFTER_BODY:case HO.AFTER_AFTER_FRAMESET:!function(e,t){
e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){
switch(this.skipNextNewLine=!1,this.insertionMode){case HO.INITIAL:
!function(e,t){e._setDocumentType(t)
;const n=t.forceQuirks?Db.QUIRKS:function(e){if(e.name!==xO)return Db.QUIRKS
;const{systemId:t}=e;if(t&&t.toLowerCase()===SO)return Db.QUIRKS
;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),TO.has(n))return Db.QUIRKS
;let e=null===t?EO:_O;if(PO(n,e))return Db.QUIRKS
;if(e=null===t?CO:AO,PO(n,e))return Db.LIMITED_QUIRKS}return Db.NO_QUIRKS}(t)
;(function(e){
return e.name===xO&&null===e.publicId&&(null===e.systemId||e.systemId===kO)
})(t)||e._err(t,lb.nonConformingDoctype)
;e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=HO.BEFORE_HTML
}(this,e);break;case HO.BEFORE_HEAD:case HO.IN_HEAD:case HO.IN_HEAD_NO_SCRIPT:
case HO.AFTER_HEAD:this._err(e,lb.misplacedDoctype);break;case HO.IN_TABLE_TEXT:
Dy(this,e)}}onStartTag(e){
this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),
e.selfClosing&&!e.ackSelfClosing&&this._err(e,lb.nonVoidHtmlElementStartTagWithTrailingSolidus)
}_processStartTag(e){
this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){
const t=e.tagID
;return t===Ib.FONT&&e.attrs.some((({name:e})=>e===Ab.COLOR||e===Ab.SIZE||e===Ab.FACE))||LO.has(t)
}(t))Hy(e),e._startTagOutsideForeignContent(t);else{
const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n)
;r===Tb.MATHML?BO(t):r===Tb.SVG&&(!function(e){const t=MO.get(e.tagName)
;null!=t&&(e.tagName=t,e.tagID=qb(e.tagName))
}(t),QO(t)),jO(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),
t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}
_startTagOutsideForeignContent(e){switch(this.insertionMode){case HO.INITIAL:
ay(this,e);break;case HO.BEFORE_HTML:!function(e,t){
t.tagID===Ib.HTML?(e._insertElement(t,Tb.HTML),
e.insertionMode=HO.BEFORE_HEAD):sy(e,t)}(this,e);break;case HO.BEFORE_HEAD:
!function(e,t){switch(t.tagID){case Ib.HTML:wy(e,t);break;case Ib.HEAD:
e._insertElement(t,Tb.HTML),
e.headElement=e.openElements.current,e.insertionMode=HO.IN_HEAD;break;default:
ly(e,t)}}(this,e);break;case HO.IN_HEAD:cy(this,e);break
;case HO.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Ib.HTML:wy(e,t)
;break;case Ib.BASEFONT:case Ib.BGSOUND:case Ib.HEAD:case Ib.LINK:case Ib.META:
case Ib.NOFRAMES:case Ib.STYLE:cy(e,t);break;case Ib.NOSCRIPT:
e._err(t,lb.nestedNoscriptInHead);break;default:py(e,t)}}(this,e);break
;case HO.AFTER_HEAD:!function(e,t){switch(t.tagID){case Ib.HTML:wy(e,t);break
;case Ib.BODY:
e._insertElement(t,Tb.HTML),e.framesetOk=!1,e.insertionMode=HO.IN_BODY;break
;case Ib.FRAMESET:e._insertElement(t,Tb.HTML),e.insertionMode=HO.IN_FRAMESET
;break;case Ib.BASE:case Ib.BASEFONT:case Ib.BGSOUND:case Ib.LINK:case Ib.META:
case Ib.NOFRAMES:case Ib.SCRIPT:case Ib.STYLE:case Ib.TEMPLATE:case Ib.TITLE:
e._err(t,lb.abandonedHeadElementChild),
e.openElements.push(e.headElement,Ib.HEAD),
cy(e,t),e.openElements.remove(e.headElement);break;case Ib.HEAD:
e._err(t,lb.misplacedStartTagForHeadElement);break;default:hy(e,t)}}(this,e)
;break;case HO.IN_BODY:wy(this,e);break;case HO.IN_TABLE:Ey(this,e);break
;case HO.IN_TABLE_TEXT:Dy(this,e);break;case HO.IN_CAPTION:!function(e,t){
const n=t.tagID
;$y.has(n)?e.openElements.hasInTableScope(Ib.CAPTION)&&(e.openElements.generateImpliedEndTags(),
e.openElements.popUntilTagNamePopped(Ib.CAPTION),
e.activeFormattingElements.clearToLastMarker(),
e.insertionMode=HO.IN_TABLE,Ey(e,t)):wy(e,t)}(this,e);break
;case HO.IN_COLUMN_GROUP:Ry(this,e);break;case HO.IN_TABLE_BODY:Iy(this,e);break
;case HO.IN_ROW:Ly(this,e);break;case HO.IN_CELL:!function(e,t){const n=t.tagID
;$y.has(n)?(e.openElements.hasInTableScope(Ib.TD)||e.openElements.hasInTableScope(Ib.TH))&&(e._closeTableCell(),
Ly(e,t)):wy(e,t)}(this,e);break;case HO.IN_SELECT:Qy(this,e);break
;case HO.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID
;n===Ib.CAPTION||n===Ib.TABLE||n===Ib.TBODY||n===Ib.TFOOT||n===Ib.THEAD||n===Ib.TR||n===Ib.TD||n===Ib.TH?(e.openElements.popUntilTagNamePopped(Ib.SELECT),
e._resetInsertionMode(),e._processStartTag(t)):Qy(e,t)}(this,e);break
;case HO.IN_TEMPLATE:!function(e,t){switch(t.tagID){case Ib.BASE:
case Ib.BASEFONT:case Ib.BGSOUND:case Ib.LINK:case Ib.META:case Ib.NOFRAMES:
case Ib.SCRIPT:case Ib.STYLE:case Ib.TEMPLATE:case Ib.TITLE:cy(e,t);break
;case Ib.CAPTION:case Ib.COLGROUP:case Ib.TBODY:case Ib.TFOOT:case Ib.THEAD:
e.tmplInsertionModeStack[0]=HO.IN_TABLE,e.insertionMode=HO.IN_TABLE,Ey(e,t)
;break;case Ib.COL:
e.tmplInsertionModeStack[0]=HO.IN_COLUMN_GROUP,e.insertionMode=HO.IN_COLUMN_GROUP,
Ry(e,t);break;case Ib.TR:
e.tmplInsertionModeStack[0]=HO.IN_TABLE_BODY,e.insertionMode=HO.IN_TABLE_BODY,
Iy(e,t);break;case Ib.TD:case Ib.TH:
e.tmplInsertionModeStack[0]=HO.IN_ROW,e.insertionMode=HO.IN_ROW,Ly(e,t);break
;default:
e.tmplInsertionModeStack[0]=HO.IN_BODY,e.insertionMode=HO.IN_BODY,wy(e,t)}
}(this,e);break;case HO.AFTER_BODY:!function(e,t){
t.tagID===Ib.HTML?wy(e,t):qy(e,t)}(this,e);break;case HO.IN_FRAMESET:
!function(e,t){switch(t.tagID){case Ib.HTML:wy(e,t);break;case Ib.FRAMESET:
e._insertElement(t,Tb.HTML);break;case Ib.FRAME:
e._appendElement(t,Tb.HTML),t.ackSelfClosing=!0;break;case Ib.NOFRAMES:cy(e,t)}
}(this,e);break;case HO.AFTER_FRAMESET:!function(e,t){switch(t.tagID){
case Ib.HTML:wy(e,t);break;case Ib.NOFRAMES:cy(e,t)}}(this,e);break
;case HO.AFTER_AFTER_BODY:!function(e,t){t.tagID===Ib.HTML?wy(e,t):zy(e,t)
}(this,e);break;case HO.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){
case Ib.HTML:wy(e,t);break;case Ib.NOFRAMES:cy(e,t)}}(this,e)}}onEndTag(e){
this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){
if(t.tagID===Ib.P||t.tagID===Ib.BR)return Hy(e),
void e._endTagOutsideForeignContent(t)
;for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n]
;if(e.treeAdapter.getNamespaceURI(r)===Tb.HTML){
e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(r)
;if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n)
;break}}}(this,e):this._endTagOutsideForeignContent(e)}
_endTagOutsideForeignContent(e){switch(this.insertionMode){case HO.INITIAL:
ay(this,e);break;case HO.BEFORE_HTML:!function(e,t){const n=t.tagID
;n!==Ib.HTML&&n!==Ib.HEAD&&n!==Ib.BODY&&n!==Ib.BR||sy(e,t)}(this,e);break
;case HO.BEFORE_HEAD:!function(e,t){const n=t.tagID
;n===Ib.HEAD||n===Ib.BODY||n===Ib.HTML||n===Ib.BR?ly(e,t):e._err(t,lb.endTagWithoutMatchingOpenElement)
}(this,e);break;case HO.IN_HEAD:!function(e,t){switch(t.tagID){case Ib.HEAD:
e.openElements.pop(),e.insertionMode=HO.AFTER_HEAD;break;case Ib.BODY:
case Ib.BR:case Ib.HTML:dy(e,t);break;case Ib.TEMPLATE:uy(e,t);break;default:
e._err(t,lb.endTagWithoutMatchingOpenElement)}}(this,e);break
;case HO.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Ib.NOSCRIPT:
e.openElements.pop(),e.insertionMode=HO.IN_HEAD;break;case Ib.BR:py(e,t);break
;default:e._err(t,lb.endTagWithoutMatchingOpenElement)}}(this,e);break
;case HO.AFTER_HEAD:!function(e,t){switch(t.tagID){case Ib.BODY:case Ib.HTML:
case Ib.BR:hy(e,t);break;case Ib.TEMPLATE:uy(e,t);break;default:
e._err(t,lb.endTagWithoutMatchingOpenElement)}}(this,e);break;case HO.IN_BODY:
ky(this,e);break;case HO.TEXT:!function(e,t){var n
;t.tagID===Ib.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current))
;e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break
;case HO.IN_TABLE:Ty(this,e);break;case HO.IN_TABLE_TEXT:Dy(this,e);break
;case HO.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case Ib.CAPTION:
case Ib.TABLE:
e.openElements.hasInTableScope(Ib.CAPTION)&&(e.openElements.generateImpliedEndTags(),
e.openElements.popUntilTagNamePopped(Ib.CAPTION),
e.activeFormattingElements.clearToLastMarker(),
e.insertionMode=HO.IN_TABLE,n===Ib.TABLE&&Ty(e,t));break;case Ib.BODY:
case Ib.COL:case Ib.COLGROUP:case Ib.HTML:case Ib.TBODY:case Ib.TD:
case Ib.TFOOT:case Ib.TH:case Ib.THEAD:case Ib.TR:break;default:ky(e,t)}
}(this,e);break;case HO.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){
case Ib.COLGROUP:
e.openElements.currentTagId===Ib.COLGROUP&&(e.openElements.pop(),
e.insertionMode=HO.IN_TABLE);break;case Ib.TEMPLATE:uy(e,t);break;case Ib.COL:
break;default:Ny(e,t)}}(this,e);break;case HO.IN_TABLE_BODY:My(this,e);break
;case HO.IN_ROW:By(this,e);break;case HO.IN_CELL:!function(e,t){const n=t.tagID
;switch(n){case Ib.TD:case Ib.TH:
e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),
e.openElements.popUntilTagNamePopped(n),
e.activeFormattingElements.clearToLastMarker(),e.insertionMode=HO.IN_ROW);break
;case Ib.TABLE:case Ib.TBODY:case Ib.TFOOT:case Ib.THEAD:case Ib.TR:
e.openElements.hasInTableScope(n)&&(e._closeTableCell(),By(e,t));break
;case Ib.BODY:case Ib.CAPTION:case Ib.COL:case Ib.COLGROUP:case Ib.HTML:break
;default:ky(e,t)}}(this,e);break;case HO.IN_SELECT:jy(this,e);break
;case HO.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID
;n===Ib.CAPTION||n===Ib.TABLE||n===Ib.TBODY||n===Ib.TFOOT||n===Ib.THEAD||n===Ib.TR||n===Ib.TD||n===Ib.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(Ib.SELECT),
e._resetInsertionMode(),e.onEndTag(t)):jy(e,t)}(this,e);break
;case HO.IN_TEMPLATE:!function(e,t){t.tagID===Ib.TEMPLATE&&uy(e,t)}(this,e)
;break;case HO.AFTER_BODY:Fy(this,e);break;case HO.IN_FRAMESET:!function(e,t){
t.tagID!==Ib.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),
e.fragmentContext||e.openElements.currentTagId===Ib.FRAMESET||(e.insertionMode=HO.AFTER_FRAMESET))
}(this,e);break;case HO.AFTER_FRAMESET:!function(e,t){
t.tagID===Ib.HTML&&(e.insertionMode=HO.AFTER_AFTER_FRAMESET)}(this,e);break
;case HO.AFTER_AFTER_BODY:zy(this,e)}}onEof(e){switch(this.insertionMode){
case HO.INITIAL:ay(this,e);break;case HO.BEFORE_HTML:sy(this,e);break
;case HO.BEFORE_HEAD:ly(this,e);break;case HO.IN_HEAD:dy(this,e);break
;case HO.IN_HEAD_NO_SCRIPT:py(this,e);break;case HO.AFTER_HEAD:hy(this,e);break
;case HO.IN_BODY:case HO.IN_TABLE:case HO.IN_CAPTION:case HO.IN_COLUMN_GROUP:
case HO.IN_TABLE_BODY:case HO.IN_ROW:case HO.IN_CELL:case HO.IN_SELECT:
case HO.IN_SELECT_IN_TABLE:Sy(this,e);break;case HO.TEXT:!function(e,t){
e._err(t,lb.eofInElementThatCanContainOnlyText),
e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e)
;break;case HO.IN_TABLE_TEXT:Dy(this,e);break;case HO.IN_TEMPLATE:Uy(this,e)
;break;case HO.AFTER_BODY:case HO.IN_FRAMESET:case HO.AFTER_FRAMESET:
case HO.AFTER_AFTER_BODY:case HO.AFTER_AFTER_FRAMESET:iy(this,e)}}
onWhitespaceCharacter(e){
if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===Gv.LINE_FEED)){
if(1===e.chars.length)return;e.chars=e.chars.substr(1)}
if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){
case HO.IN_HEAD:case HO.IN_HEAD_NO_SCRIPT:case HO.AFTER_HEAD:case HO.TEXT:
case HO.IN_COLUMN_GROUP:case HO.IN_SELECT:case HO.IN_SELECT_IN_TABLE:
case HO.IN_FRAMESET:case HO.AFTER_FRAMESET:this._insertCharacters(e);break
;case HO.IN_BODY:case HO.IN_CAPTION:case HO.IN_CELL:case HO.IN_TEMPLATE:
case HO.AFTER_BODY:case HO.AFTER_AFTER_BODY:case HO.AFTER_AFTER_FRAMESET:
my(this,e);break;case HO.IN_TABLE:case HO.IN_TABLE_BODY:case HO.IN_ROW:
_y(this,e);break;case HO.IN_TABLE_TEXT:Ay(this,e)}}};function GO(e,t){
let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName)
;return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),
n=null):xy(e,t),n}function KO(e,t){let n=null,r=e.openElements.stackTop
;for(;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break
;e._isSpecialElement(o,e.openElements.tagIDs[r])&&(n=o)}
return n||(e.openElements.shortenToLength(r<0?0:r),
e.activeFormattingElements.removeEntry(t)),n}function JO(e,t,n){
let r=t,o=e.openElements.getCommonAncestor(t);for(let i=0,a=o;a!==n;i++,a=o){
o=e.openElements.getCommonAncestor(a)
;const n=e.activeFormattingElements.getElementEntry(a),s=n&&i>=zO
;!n||s?(s&&e.activeFormattingElements.removeEntry(n),
e.openElements.remove(a)):(a=ey(e,n),
r===t&&(e.activeFormattingElements.bookmark=n),
e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}
function ey(e,t){
const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs)
;return e.openElements.replace(t.element,r),t.element=r,r}function ty(e,t,n){
const r=qb(e.treeAdapter.getTagName(t))
;if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{
const o=e.treeAdapter.getNamespaceURI(t)
;r===Ib.TEMPLATE&&o===Tb.HTML&&(t=e.treeAdapter.getTemplateContent(t)),
e.treeAdapter.appendChild(t,n)}}function ny(e,t,n){
const r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,i=e.treeAdapter.createElement(o.tagName,r,o.attrs)
;e._adoptNodes(t,i),
e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,o),
e.activeFormattingElements.removeEntry(n),
e.openElements.remove(n.element),e.openElements.insertAfter(t,i,o.tagID)}
function ry(e,t){for(let n=0;n<qO;n++){const n=GO(e,t);if(!n)break
;const r=KO(e,n);if(!r)break;e.activeFormattingElements.bookmark=n
;const o=JO(e,r,n.element),i=e.openElements.getCommonAncestor(n.element)
;e.treeAdapter.detachNode(o),i&&ty(e,i,o),ny(e,r,n)}}function oy(e,t){
e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}
function iy(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2
;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t)
;if(!e.fragmentContext&&e.openElements.stackTop>=0){
const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n)
;if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){
const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n)
;r&&!r.endTag&&e._setEndLocation(n,t)}}}}function ay(e,t){
e._err(t,lb.missingDoctype,!0),
e.treeAdapter.setDocumentMode(e.document,Db.QUIRKS),
e.insertionMode=HO.BEFORE_HTML,e._processToken(t)}function sy(e,t){
e._insertFakeRootElement(),e.insertionMode=HO.BEFORE_HEAD,e._processToken(t)}
function ly(e,t){
e._insertFakeElement(Rb.HEAD,Ib.HEAD),e.headElement=e.openElements.current,
e.insertionMode=HO.IN_HEAD,e._processToken(t)}function cy(e,t){switch(t.tagID){
case Ib.HTML:wy(e,t);break;case Ib.BASE:case Ib.BASEFONT:case Ib.BGSOUND:
case Ib.LINK:case Ib.META:e._appendElement(t,Tb.HTML),t.ackSelfClosing=!0;break
;case Ib.TITLE:e._switchToTextParsing(t,Yb.RCDATA);break;case Ib.NOSCRIPT:
e.options.scriptingEnabled?e._switchToTextParsing(t,Yb.RAWTEXT):(e._insertElement(t,Tb.HTML),
e.insertionMode=HO.IN_HEAD_NO_SCRIPT);break;case Ib.NOFRAMES:case Ib.STYLE:
e._switchToTextParsing(t,Yb.RAWTEXT);break;case Ib.SCRIPT:
e._switchToTextParsing(t,Yb.SCRIPT_DATA);break;case Ib.TEMPLATE:
e._insertTemplate(t),
e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=HO.IN_TEMPLATE,
e.tmplInsertionModeStack.unshift(HO.IN_TEMPLATE);break;case Ib.HEAD:
e._err(t,lb.misplacedStartTagForHeadElement);break;default:dy(e,t)}}
function uy(e,t){
e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),
e.openElements.currentTagId!==Ib.TEMPLATE&&e._err(t,lb.closingOfElementWithOpenChildElements),
e.openElements.popUntilTagNamePopped(Ib.TEMPLATE),
e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),
e._resetInsertionMode()):e._err(t,lb.endTagWithoutMatchingOpenElement)}
function dy(e,t){
e.openElements.pop(),e.insertionMode=HO.AFTER_HEAD,e._processToken(t)}
function py(e,t){
const n=t.type===db.EOF?lb.openElementsLeftAfterEof:lb.disallowedContentInNoscriptInHead
;e._err(t,n),e.openElements.pop(),e.insertionMode=HO.IN_HEAD,e._processToken(t)}
function hy(e,t){
e._insertFakeElement(Rb.BODY,Ib.BODY),e.insertionMode=HO.IN_BODY,fy(e,t)}
function fy(e,t){switch(t.type){case db.CHARACTER:gy(e,t);break
;case db.WHITESPACE_CHARACTER:my(e,t);break;case db.COMMENT:oy(e,t);break
;case db.START_TAG:wy(e,t);break;case db.END_TAG:ky(e,t);break;case db.EOF:
Sy(e,t)}}function my(e,t){
e._reconstructActiveFormattingElements(),e._insertCharacters(t)}
function gy(e,t){
e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}
function vy(e,t){
e._reconstructActiveFormattingElements(),e._appendElement(t,Tb.HTML),
e.framesetOk=!1,t.ackSelfClosing=!0}function by(e){const t=hb(e,Ab.TYPE)
;return null!=t&&t.toLowerCase()===FO}function Oy(e,t){
e._switchToTextParsing(t,Yb.RAWTEXT)}function yy(e,t){
e._reconstructActiveFormattingElements(),e._insertElement(t,Tb.HTML)}
function wy(e,t){switch(t.tagID){case Ib.I:case Ib.S:case Ib.B:case Ib.U:
case Ib.EM:case Ib.TT:case Ib.BIG:case Ib.CODE:case Ib.FONT:case Ib.SMALL:
case Ib.STRIKE:case Ib.STRONG:!function(e,t){
e._reconstructActiveFormattingElements(),
e._insertElement(t,Tb.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)
}(e,t);break;case Ib.A:!function(e,t){
const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Rb.A)
;n&&(ry(e,t),
e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),
e._reconstructActiveFormattingElements(),
e._insertElement(t,Tb.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)
}(e,t);break;case Ib.H1:case Ib.H2:case Ib.H3:case Ib.H4:case Ib.H5:case Ib.H6:
!function(e,t){
e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(),Zb(e.openElements.currentTagId)&&e.openElements.pop(),
e._insertElement(t,Tb.HTML)}(e,t);break;case Ib.P:case Ib.DL:case Ib.OL:
case Ib.UL:case Ib.DIV:case Ib.DIR:case Ib.NAV:case Ib.MAIN:case Ib.MENU:
case Ib.ASIDE:case Ib.CENTER:case Ib.FIGURE:case Ib.FOOTER:case Ib.HEADER:
case Ib.HGROUP:case Ib.DIALOG:case Ib.DETAILS:case Ib.ADDRESS:case Ib.ARTICLE:
case Ib.SECTION:case Ib.SUMMARY:case Ib.FIELDSET:case Ib.BLOCKQUOTE:
case Ib.FIGCAPTION:!function(e,t){
e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(),
e._insertElement(t,Tb.HTML)}(e,t);break;case Ib.LI:case Ib.DD:case Ib.DT:
!function(e,t){e.framesetOk=!1;const n=t.tagID
;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r]
;if(n===Ib.LI&&t===Ib.LI||(n===Ib.DD||n===Ib.DT)&&(t===Ib.DD||t===Ib.DT)){
e.openElements.generateImpliedEndTagsWithExclusion(t),
e.openElements.popUntilTagNamePopped(t);break}
if(t!==Ib.ADDRESS&&t!==Ib.DIV&&t!==Ib.P&&e._isSpecialElement(e.openElements.items[r],t))break
}
e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(),e._insertElement(t,Tb.HTML)
}(e,t);break;case Ib.BR:case Ib.IMG:case Ib.WBR:case Ib.AREA:case Ib.EMBED:
case Ib.KEYGEN:vy(e,t);break;case Ib.HR:!function(e,t){
e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(),
e._appendElement(t,Tb.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break
;case Ib.RB:case Ib.RTC:!function(e,t){
e.openElements.hasInScope(Ib.RUBY)&&e.openElements.generateImpliedEndTags(),
e._insertElement(t,Tb.HTML)}(e,t);break;case Ib.RT:case Ib.RP:!function(e,t){
e.openElements.hasInScope(Ib.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Ib.RTC),
e._insertElement(t,Tb.HTML)}(e,t);break;case Ib.PRE:case Ib.LISTING:
!function(e,t){
e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(),e._insertElement(t,Tb.HTML),
e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case Ib.XMP:!function(e,t){
e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(),
e._reconstructActiveFormattingElements(),
e.framesetOk=!1,e._switchToTextParsing(t,Yb.RAWTEXT)}(e,t);break;case Ib.SVG:
!function(e,t){
e._reconstructActiveFormattingElements(),QO(t),jO(t),t.selfClosing?e._appendElement(t,Tb.SVG):e._insertElement(t,Tb.SVG),
t.ackSelfClosing=!0}(e,t);break;case Ib.HTML:!function(e,t){
0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)
}(e,t);break;case Ib.BASE:case Ib.LINK:case Ib.META:case Ib.STYLE:case Ib.TITLE:
case Ib.SCRIPT:case Ib.BGSOUND:case Ib.BASEFONT:case Ib.TEMPLATE:cy(e,t);break
;case Ib.BODY:!function(e,t){
const n=e.openElements.tryPeekProperlyNestedBodyElement()
;n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,
e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case Ib.FORM:
!function(e,t){const n=e.openElements.tmplCount>0
;e.formElement&&!n||(e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(),
e._insertElement(t,Tb.HTML),n||(e.formElement=e.openElements.current))}(e,t)
;break;case Ib.NOBR:!function(e,t){
e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Ib.NOBR)&&(ry(e,t),
e._reconstructActiveFormattingElements()),
e._insertElement(t,Tb.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)
}(e,t);break;case Ib.MATH:!function(e,t){
e._reconstructActiveFormattingElements(),
BO(t),jO(t),t.selfClosing?e._appendElement(t,Tb.MATHML):e._insertElement(t,Tb.MATHML),
t.ackSelfClosing=!0}(e,t);break;case Ib.TABLE:!function(e,t){
e.treeAdapter.getDocumentMode(e.document)!==Db.QUIRKS&&e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(),
e._insertElement(t,Tb.HTML),e.framesetOk=!1,e.insertionMode=HO.IN_TABLE}(e,t)
;break;case Ib.INPUT:!function(e,t){
e._reconstructActiveFormattingElements(),e._appendElement(t,Tb.HTML),
by(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case Ib.PARAM:
case Ib.TRACK:case Ib.SOURCE:!function(e,t){
e._appendElement(t,Tb.HTML),t.ackSelfClosing=!0}(e,t);break;case Ib.IMAGE:
!function(e,t){t.tagName=Rb.IMG,t.tagID=Ib.IMG,vy(e,t)}(e,t);break
;case Ib.BUTTON:!function(e,t){
e.openElements.hasInScope(Ib.BUTTON)&&(e.openElements.generateImpliedEndTags(),
e.openElements.popUntilTagNamePopped(Ib.BUTTON)),
e._reconstructActiveFormattingElements(),
e._insertElement(t,Tb.HTML),e.framesetOk=!1}(e,t);break;case Ib.APPLET:
case Ib.OBJECT:case Ib.MARQUEE:!function(e,t){
e._reconstructActiveFormattingElements(),
e._insertElement(t,Tb.HTML),e.activeFormattingElements.insertMarker(),
e.framesetOk=!1}(e,t);break;case Ib.IFRAME:!function(e,t){
e.framesetOk=!1,e._switchToTextParsing(t,Yb.RAWTEXT)}(e,t);break;case Ib.SELECT:
!function(e,t){
e._reconstructActiveFormattingElements(),e._insertElement(t,Tb.HTML),
e.framesetOk=!1,
e.insertionMode=e.insertionMode===HO.IN_TABLE||e.insertionMode===HO.IN_CAPTION||e.insertionMode===HO.IN_TABLE_BODY||e.insertionMode===HO.IN_ROW||e.insertionMode===HO.IN_CELL?HO.IN_SELECT_IN_TABLE:HO.IN_SELECT
}(e,t);break;case Ib.OPTION:case Ib.OPTGROUP:!function(e,t){
e.openElements.currentTagId===Ib.OPTION&&e.openElements.pop(),
e._reconstructActiveFormattingElements(),e._insertElement(t,Tb.HTML)}(e,t);break
;case Ib.NOEMBED:Oy(e,t);break;case Ib.FRAMESET:!function(e,t){
const n=e.openElements.tryPeekProperlyNestedBodyElement()
;e.framesetOk&&n&&(e.treeAdapter.detachNode(n),
e.openElements.popAllUpToHtmlElement(),
e._insertElement(t,Tb.HTML),e.insertionMode=HO.IN_FRAMESET)}(e,t);break
;case Ib.TEXTAREA:!function(e,t){
e._insertElement(t,Tb.HTML),e.skipNextNewLine=!0,
e.tokenizer.state=Yb.RCDATA,e.originalInsertionMode=e.insertionMode,
e.framesetOk=!1,e.insertionMode=HO.TEXT}(e,t);break;case Ib.NOSCRIPT:
e.options.scriptingEnabled?Oy(e,t):yy(e,t);break;case Ib.PLAINTEXT:
!function(e,t){
e.openElements.hasInButtonScope(Ib.P)&&e._closePElement(),e._insertElement(t,Tb.HTML),
e.tokenizer.state=Yb.PLAINTEXT}(e,t);break;case Ib.COL:case Ib.TH:case Ib.TD:
case Ib.TR:case Ib.HEAD:case Ib.FRAME:case Ib.TBODY:case Ib.TFOOT:case Ib.THEAD:
case Ib.CAPTION:case Ib.COLGROUP:break;default:yy(e,t)}}function xy(e,t){
const n=t.tagName,r=t.tagID;for(let o=e.openElements.stackTop;o>0;o--){
const t=e.openElements.items[o],i=e.openElements.tagIDs[o]
;if(r===i&&(r!==Ib.UNKNOWN||e.treeAdapter.getTagName(t)===n)){
e.openElements.generateImpliedEndTagsWithExclusion(r),
e.openElements.stackTop>=o&&e.openElements.shortenToLength(o);break}
if(e._isSpecialElement(t,i))break}}function ky(e,t){switch(t.tagID){case Ib.A:
case Ib.B:case Ib.I:case Ib.S:case Ib.U:case Ib.EM:case Ib.TT:case Ib.BIG:
case Ib.CODE:case Ib.FONT:case Ib.NOBR:case Ib.SMALL:case Ib.STRIKE:
case Ib.STRONG:ry(e,t);break;case Ib.P:!function(e){
e.openElements.hasInButtonScope(Ib.P)||e._insertFakeElement(Rb.P,Ib.P),
e._closePElement()}(e);break;case Ib.DL:case Ib.UL:case Ib.OL:case Ib.DIR:
case Ib.DIV:case Ib.NAV:case Ib.PRE:case Ib.MAIN:case Ib.MENU:case Ib.ASIDE:
case Ib.BUTTON:case Ib.CENTER:case Ib.FIGURE:case Ib.FOOTER:case Ib.HEADER:
case Ib.HGROUP:case Ib.DIALOG:case Ib.ADDRESS:case Ib.ARTICLE:case Ib.DETAILS:
case Ib.SECTION:case Ib.SUMMARY:case Ib.LISTING:case Ib.FIELDSET:
case Ib.BLOCKQUOTE:case Ib.FIGCAPTION:!function(e,t){const n=t.tagID
;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),
e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Ib.LI:!function(e){
e.openElements.hasInListItemScope(Ib.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Ib.LI),
e.openElements.popUntilTagNamePopped(Ib.LI))}(e);break;case Ib.DD:case Ib.DT:
!function(e,t){const n=t.tagID
;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),
e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Ib.H1:case Ib.H2:
case Ib.H3:case Ib.H4:case Ib.H5:case Ib.H6:!function(e){
e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),
e.openElements.popUntilNumberedHeaderPopped())}(e);break;case Ib.BR:
!function(e){
e._reconstructActiveFormattingElements(),e._insertFakeElement(Rb.BR,Ib.BR),
e.openElements.pop(),e.framesetOk=!1}(e);break;case Ib.BODY:!function(e,t){
if(e.openElements.hasInScope(Ib.BODY)&&(e.insertionMode=HO.AFTER_BODY,
e.options.sourceCodeLocationInfo)){
const n=e.openElements.tryPeekProperlyNestedBodyElement()
;n&&e._setEndLocation(n,t)}}(e,t);break;case Ib.HTML:!function(e,t){
e.openElements.hasInScope(Ib.BODY)&&(e.insertionMode=HO.AFTER_BODY,Fy(e,t))
}(e,t);break;case Ib.FORM:!function(e){
const t=e.openElements.tmplCount>0,{formElement:n}=e
;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Ib.FORM)&&(e.openElements.generateImpliedEndTags(),
t?e.openElements.popUntilTagNamePopped(Ib.FORM):n&&e.openElements.remove(n))}(e)
;break;case Ib.APPLET:case Ib.OBJECT:case Ib.MARQUEE:!function(e,t){
const n=t.tagID
;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),
e.openElements.popUntilTagNamePopped(n),
e.activeFormattingElements.clearToLastMarker())}(e,t);break;case Ib.TEMPLATE:
uy(e,t);break;default:xy(e,t)}}function Sy(e,t){
e.tmplInsertionModeStack.length>0?Uy(e,t):iy(e,t)}function _y(e,t){
if(WO.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,
e.hasNonWhitespacePendingCharacterToken=!1,
e.originalInsertionMode=e.insertionMode,
e.insertionMode=HO.IN_TABLE_TEXT,t.type){case db.CHARACTER:Py(e,t);break
;case db.WHITESPACE_CHARACTER:Ay(e,t)}else Cy(e,t)}function Ey(e,t){
switch(t.tagID){case Ib.TD:case Ib.TH:case Ib.TR:!function(e,t){
e.openElements.clearBackToTableContext(),
e._insertFakeElement(Rb.TBODY,Ib.TBODY),e.insertionMode=HO.IN_TABLE_BODY,Iy(e,t)
}(e,t);break;case Ib.STYLE:case Ib.SCRIPT:case Ib.TEMPLATE:cy(e,t);break
;case Ib.COL:!function(e,t){
e.openElements.clearBackToTableContext(),e._insertFakeElement(Rb.COLGROUP,Ib.COLGROUP),
e.insertionMode=HO.IN_COLUMN_GROUP,Ry(e,t)}(e,t);break;case Ib.FORM:
!function(e,t){
e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Tb.HTML),
e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break
;case Ib.TABLE:!function(e,t){
e.openElements.hasInTableScope(Ib.TABLE)&&(e.openElements.popUntilTagNamePopped(Ib.TABLE),
e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case Ib.TBODY:
case Ib.TFOOT:case Ib.THEAD:!function(e,t){
e.openElements.clearBackToTableContext(),
e._insertElement(t,Tb.HTML),e.insertionMode=HO.IN_TABLE_BODY}(e,t);break
;case Ib.INPUT:!function(e,t){
by(t)?e._appendElement(t,Tb.HTML):Cy(e,t),t.ackSelfClosing=!0}(e,t);break
;case Ib.CAPTION:!function(e,t){
e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),
e._insertElement(t,Tb.HTML),e.insertionMode=HO.IN_CAPTION}(e,t);break
;case Ib.COLGROUP:!function(e,t){
e.openElements.clearBackToTableContext(),e._insertElement(t,Tb.HTML),
e.insertionMode=HO.IN_COLUMN_GROUP}(e,t);break;default:Cy(e,t)}}
function Ty(e,t){switch(t.tagID){case Ib.TABLE:
e.openElements.hasInTableScope(Ib.TABLE)&&(e.openElements.popUntilTagNamePopped(Ib.TABLE),
e._resetInsertionMode());break;case Ib.TEMPLATE:uy(e,t);break;case Ib.BODY:
case Ib.CAPTION:case Ib.COL:case Ib.COLGROUP:case Ib.HTML:case Ib.TBODY:
case Ib.TD:case Ib.TFOOT:case Ib.TH:case Ib.THEAD:case Ib.TR:break;default:
Cy(e,t)}}function Cy(e,t){const n=e.fosterParentingEnabled
;e.fosterParentingEnabled=!0,fy(e,t),e.fosterParentingEnabled=n}
function Ay(e,t){e.pendingCharacterTokens.push(t)}function Py(e,t){
e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}
function Dy(e,t){let n=0
;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Cy(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n])
;e.insertionMode=e.originalInsertionMode,e._processToken(t)}
const $y=new Set([Ib.CAPTION,Ib.COL,Ib.COLGROUP,Ib.TBODY,Ib.TD,Ib.TFOOT,Ib.TH,Ib.THEAD,Ib.TR])
;function Ry(e,t){switch(t.tagID){case Ib.HTML:wy(e,t);break;case Ib.COL:
e._appendElement(t,Tb.HTML),t.ackSelfClosing=!0;break;case Ib.TEMPLATE:cy(e,t)
;break;default:Ny(e,t)}}function Ny(e,t){
e.openElements.currentTagId===Ib.COLGROUP&&(e.openElements.pop(),
e.insertionMode=HO.IN_TABLE,e._processToken(t))}function Iy(e,t){
switch(t.tagID){case Ib.TR:
e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Tb.HTML),
e.insertionMode=HO.IN_ROW;break;case Ib.TH:case Ib.TD:
e.openElements.clearBackToTableBodyContext(),
e._insertFakeElement(Rb.TR,Ib.TR),e.insertionMode=HO.IN_ROW,Ly(e,t);break
;case Ib.CAPTION:case Ib.COL:case Ib.COLGROUP:case Ib.TBODY:case Ib.TFOOT:
case Ib.THEAD:
e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),
e.openElements.pop(),e.insertionMode=HO.IN_TABLE,Ey(e,t));break;default:Ey(e,t)}
}function My(e,t){const n=t.tagID;switch(t.tagID){case Ib.TBODY:case Ib.TFOOT:
case Ib.THEAD:
e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),
e.openElements.pop(),e.insertionMode=HO.IN_TABLE);break;case Ib.TABLE:
e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),
e.openElements.pop(),e.insertionMode=HO.IN_TABLE,Ty(e,t));break;case Ib.BODY:
case Ib.CAPTION:case Ib.COL:case Ib.COLGROUP:case Ib.HTML:case Ib.TD:case Ib.TH:
case Ib.TR:break;default:Ty(e,t)}}function Ly(e,t){switch(t.tagID){case Ib.TH:
case Ib.TD:
e.openElements.clearBackToTableRowContext(),e._insertElement(t,Tb.HTML),
e.insertionMode=HO.IN_CELL,e.activeFormattingElements.insertMarker();break
;case Ib.CAPTION:case Ib.COL:case Ib.COLGROUP:case Ib.TBODY:case Ib.TFOOT:
case Ib.THEAD:case Ib.TR:
e.openElements.hasInTableScope(Ib.TR)&&(e.openElements.clearBackToTableRowContext(),
e.openElements.pop(),e.insertionMode=HO.IN_TABLE_BODY,Iy(e,t));break;default:
Ey(e,t)}}function By(e,t){switch(t.tagID){case Ib.TR:
e.openElements.hasInTableScope(Ib.TR)&&(e.openElements.clearBackToTableRowContext(),
e.openElements.pop(),e.insertionMode=HO.IN_TABLE_BODY);break;case Ib.TABLE:
e.openElements.hasInTableScope(Ib.TR)&&(e.openElements.clearBackToTableRowContext(),
e.openElements.pop(),e.insertionMode=HO.IN_TABLE_BODY,My(e,t));break
;case Ib.TBODY:case Ib.TFOOT:case Ib.THEAD:
(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(Ib.TR))&&(e.openElements.clearBackToTableRowContext(),
e.openElements.pop(),e.insertionMode=HO.IN_TABLE_BODY,My(e,t));break
;case Ib.BODY:case Ib.CAPTION:case Ib.COL:case Ib.COLGROUP:case Ib.HTML:
case Ib.TD:case Ib.TH:break;default:Ty(e,t)}}function Qy(e,t){switch(t.tagID){
case Ib.HTML:wy(e,t);break;case Ib.OPTION:
e.openElements.currentTagId===Ib.OPTION&&e.openElements.pop(),
e._insertElement(t,Tb.HTML);break;case Ib.OPTGROUP:
e.openElements.currentTagId===Ib.OPTION&&e.openElements.pop(),
e.openElements.currentTagId===Ib.OPTGROUP&&e.openElements.pop(),
e._insertElement(t,Tb.HTML);break;case Ib.INPUT:case Ib.KEYGEN:case Ib.TEXTAREA:
case Ib.SELECT:
e.openElements.hasInSelectScope(Ib.SELECT)&&(e.openElements.popUntilTagNamePopped(Ib.SELECT),
e._resetInsertionMode(),t.tagID!==Ib.SELECT&&e._processStartTag(t));break
;case Ib.SCRIPT:case Ib.TEMPLATE:cy(e,t)}}function jy(e,t){switch(t.tagID){
case Ib.OPTGROUP:
e.openElements.stackTop>0&&e.openElements.currentTagId===Ib.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===Ib.OPTGROUP&&e.openElements.pop(),
e.openElements.currentTagId===Ib.OPTGROUP&&e.openElements.pop();break
;case Ib.OPTION:e.openElements.currentTagId===Ib.OPTION&&e.openElements.pop()
;break;case Ib.SELECT:
e.openElements.hasInSelectScope(Ib.SELECT)&&(e.openElements.popUntilTagNamePopped(Ib.SELECT),
e._resetInsertionMode());break;case Ib.TEMPLATE:uy(e,t)}}function Uy(e,t){
e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Ib.TEMPLATE),
e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),
e._resetInsertionMode(),e.onEof(t)):iy(e,t)}function Fy(e,t){var n
;if(t.tagID===Ib.HTML){
if(e.fragmentContext||(e.insertionMode=HO.AFTER_AFTER_BODY),
e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===Ib.HTML){
e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1]
;r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)
}}else qy(e,t)}function qy(e,t){e.insertionMode=HO.IN_BODY,fy(e,t)}
function zy(e,t){e.insertionMode=HO.IN_BODY,fy(e,t)}function Hy(e){
for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Tb.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()
}function Zy(e,t){return YO.parse(e,t)}function Vy(e,t,n){
"string"==typeof e&&(n=t,t=e,e=null);const r=YO.getFragmentParser(e,n)
;return r.tokenizer.write(t,!0),r.getFragment()}
Rb.AREA,Rb.BASE,Rb.BASEFONT,Rb.BGSOUND,
Rb.BR,Rb.COL,Rb.EMBED,Rb.FRAME,Rb.HR,Rb.IMG,
Rb.INPUT,Rb.KEYGEN,Rb.LINK,Rb.META,Rb.PARAM,Rb.SOURCE,Rb.TRACK,Rb.WBR
;const Wy=Yy("end"),Xy=Yy("start");function Yy(e){return function(t){
const n=t&&t.position&&t.position[e]||{}
;if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{
line:n.line,column:n.column,
offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Gy(e){
const t=Xy(e),n=Wy(e);if(t&&n)return{start:t,end:n}}
const Ky=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Jy={
sourceCodeLocationInfo:!0,scriptingEnabled:!1};function ew(e,t){
const n=function(e){const t="root"===e.type?e.children[0]:e
;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))
}(e),r=Uv("type",{handlers:{root:nw,element:rw,text:ow,comment:sw,doctype:iw,
raw:lw},unknown:cw}),o={parser:n?new YO(Jy):YO.getFragmentParser(void 0,Jy),
handle(e){r(e,o)},stitches:!1,options:t||{}};r(e,o),uw(o,Xy())
;const i=Nv(n?o.parser.document:o.parser.getFragment(),{file:o.options.file})
;return o.stitches&&og(i,"comment",(function(e,t,n){const r=e
;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}
})),"root"===i.type&&1===i.children.length&&i.children[0].type===e.type?i.children[0]:i
}function tw(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}
function nw(e,t){tw(e.children,t)}function rw(e,t){!function(e,t){
const n=e.tagName.toLowerCase()
;if(t.parser.tokenizer.state===Yb.PLAINTEXT)return;uw(t,Xy(e))
;const r=t.parser.openElements.current
;let o="namespaceURI"in r?r.namespaceURI:Dv.html
;o===Dv.html&&"svg"===n&&(o=Dv.svg);const i=function(e,t){const n=(t||Fv).space
;return zv(e,"svg"===n?bv:vv)}({...e,children:[]},{space:o===Dv.svg?"svg":"html"
}),a={type:db.START_TAG,tagName:n,tagID:qb(n),selfClosing:!1,ackSelfClosing:!1,
attrs:"attrs"in i?i.attrs:[],location:pw(e)}
;t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),
t.parser.tokenizer.lastStartTagName=n}(e,t),tw(e.children,t),function(e,t){
const n=e.tagName.toLowerCase()
;if(!t.parser.tokenizer.inForeignNode&&Wv.includes(n))return
;if(t.parser.tokenizer.state===Yb.PLAINTEXT)return;uw(t,Wy(e));const r={
type:db.END_TAG,tagName:n,tagID:qb(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],
location:pw(e)}
;t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),
n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==Yb.RCDATA&&t.parser.tokenizer.state!==Yb.RAWTEXT&&t.parser.tokenizer.state!==Yb.SCRIPT_DATA||(t.parser.tokenizer.state=Yb.DATA)
}(e,t)}function ow(e,t){const n={type:db.CHARACTER,chars:e.value,location:pw(e)}
;uw(t,Xy(e)),
t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}
function iw(e,t){const n={type:db.DOCTYPE,name:"html",forceQuirks:!1,
publicId:"",systemId:"",location:pw(e)}
;uw(t,Xy(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)
}function aw(e,t){t.stitches=!0;const n=function(e){return jm("children"in e?{
...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const r=ew({
type:"root",children:e.children},t.options);n.children=r.children}sw({
type:"comment",value:{stitch:n}},t)}function sw(e,t){const n=e.value,r={
type:db.COMMENT,data:n,location:pw(e)}
;uw(t,Xy(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)
}function lw(e,t){
if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,
t.parser.tokenizer.preprocessor.lastGapPos=-2,
t.parser.tokenizer.preprocessor.gapStack=[],
t.parser.tokenizer.preprocessor.skipNextNewLine=!1,
t.parser.tokenizer.preprocessor.lastChunkWritten=!1,
t.parser.tokenizer.preprocessor.endOfChunkHit=!1,
t.parser.tokenizer.preprocessor.isEol=!1,
dw(t,Xy(e)),t.parser.tokenizer.write(e.value,!1),
t.parser.tokenizer._runParsingLoop(),
72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){
t.parser.tokenizer.preprocessor.lastChunkWritten=!0
;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}
function cw(e,t){const n=e
;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e=""
;throw Ky.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),
new Error("Cannot compile `"+n.type+"` node"+e)}aw(n,t)}function uw(e,t){dw(e,t)
;const n=e.parser.tokenizer.currentCharacterToken
;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,
n.location.endCol=e.parser.tokenizer.preprocessor.col+1,
n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,
e.parser.currentToken=n,
e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,
e.parser.tokenizer.inLoop=!1,
e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Yb.DATA,
e.parser.tokenizer.charRefCode=-1,
e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,
e.parser.tokenizer.currentCharacterToken=null,
e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",
value:""}}function dw(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,
startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1}
;e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,
e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,
e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n
}}function pw(e){const t=Xy(e)||{line:void 0,column:void 0,offset:void 0
},n=Wy(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,
startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,
endOffset:n.offset}}function hw(e){return function(t,n){return ew(t,{...e,file:n
})}}const fw=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],mw={ancestors:{
tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],
tr:["table"]},attributes:{
a:[...fw,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],
blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],
div:["itemScope","itemType"],dl:[...fw],h2:[["className","sr-only"]],
img:[...fw,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],
ins:["cite"],li:[["className","task-list-item"]],
ol:[...fw,["className","contains-task-list"]],q:["cite"],
section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],
summary:[...fw],table:[...fw],ul:[...fw,["className","contains-task-list"]],
"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]
},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],
clobberPrefix:"user-content-",protocols:{cite:["http","https"],
href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],
src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},
strip:["script"],
tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]
},gw={}.hasOwnProperty;function vw(e,t){if(t&&"object"==typeof t){const n=t
;switch("string"==typeof n.type?n.type:""){case"comment":return function(e,t){
if(e.schema.allowComments){
const e="string"==typeof t.value?t.value:"",n=e.indexOf("--\x3e"),r={
type:"comment",value:n<0?e:e.slice(0,n)};return ww(r,t),r}}(e,n);case"doctype":
return function(e,t){if(e.schema.allowDoctypes){const e={type:"doctype"}
;return ww(e,t),e}}(e,n);case"element":return function(e,t){
const n="string"==typeof t.tagName?t.tagName:"";e.stack.push(n)
;const r=bw(e,t.children),o=function(e,t){
const n=e.stack[e.stack.length-1],r=e.schema.attributes,o=e.schema.required,i=r&&gw.call(r,n)?r[n]:void 0,a=r&&gw.call(r,"*")?r["*"]:void 0,s=t&&"object"==typeof t?t:{},l={}
;let c;for(c in s)if(gw.call(s,c)){const t=s[c];let n=Ow(e,xw(i,c),c,t)
;null==n&&(n=Ow(e,xw(a,c),c,t)),null!=n&&(l[c]=n)}if(o&&gw.call(o,n)){
const e=o[n];for(c in e)gw.call(e,c)&&!gw.call(l,c)&&(l[c]=e[c])}return l
}(e,t.properties);e.stack.pop();let i=!1
;if(n&&"*"!==n&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(i=!0,
e.schema.ancestors&&gw.call(e.schema.ancestors,n))){
const t=e.schema.ancestors[n];let r=-1
;for(i=!1;++r<t.length;)e.stack.includes(t[r])&&(i=!0)}
if(!i)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const a={
type:"element",tagName:n,properties:o,children:r};return ww(a,t),a}(e,n)
;case"root":return function(e,t){const n=bw(e,t.children),r={type:"root",
children:n};return ww(r,t),r}(e,n);case"text":return function(e,t){
const n="string"==typeof t.value?t.value:"",r={type:"text",value:n}
;return ww(r,t),r}(0,n)}}}function bw(e,t){const n=[];if(Array.isArray(t)){
const r=t;let o=-1;for(;++o<r.length;){const t=vw(e,r[o])
;t&&(Array.isArray(t)?n.push(...t):n.push(t))}}return n}function Ow(e,t,n,r){
return t?Array.isArray(r)?function(e,t,n,r){let o=-1;const i=[]
;for(;++o<r.length;){const a=yw(e,t,n,r[o])
;"number"!=typeof a&&"string"!=typeof a||i.push(a)}return i
}(e,t,n,r):yw(e,t,n,r):void 0}function yw(e,t,n,r){
if(("boolean"==typeof r||"number"==typeof r||"string"==typeof r)&&function(e,t,n){
const r=e.schema.protocols&&gw.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0
;if(!r||0===r.length)return!0
;const o=String(n),i=o.indexOf(":"),a=o.indexOf("?"),s=o.indexOf("#"),l=o.indexOf("/")
;if(i<0||l>-1&&i>l||a>-1&&i>a||s>-1&&i>s)return!0;let c=-1;for(;++c<r.length;){
const e=r[c];if(i===e.length&&o.slice(0,e.length)===e)return!0}return!1
}(e,n,r)){if("object"==typeof t&&t.length>1){let e=!1,n=0;for(;++n<t.length;){
const o=t[n];if(o&&"object"==typeof o&&"flags"in o){if(o.test(String(r))){e=!0
;break}}else if(o===r){e=!0;break}}if(!e)return}
return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r
}}function ww(e,t){const n=Gy(t);t.data&&(e.data=jm(t.data)),n&&(e.position=n)}
function xw(e,t){let n,r=-1;if(e)for(;++r<e.length;){
const o=e[r],i="string"==typeof o?o:o[0];if(i===t)return o;"data*"===i&&(n=o)}
if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return n}function kw(e){
return function(t){const n=function(e,t){let n={type:"root",children:[]}
;const r=vw({schema:t?{...mw,...t}:mw,stack:[]},e)
;return r&&(Array.isArray(r)?1===r.length?n=r[0]:n.children=r:n=r),n}(t,e)
;return n}}
const Sw=/["&'<>`]/g,_w=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ew=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Tw=/[|\\{}()[\]^$+*?.]/g,Cw=new WeakMap
;function Aw(e,t){return e=e.replace(t.subset?function(e){let t=Cw.get(e)
;t||(t=function(e){const t=[];let n=-1
;for(;++n<e.length;)t.push(e[n].replace(Tw,"\\$&"))
;return new RegExp("(?:"+t.join("|")+")","g")}(e),Cw.set(e,t));return t
}(t.subset):Sw,n),t.subset||t.escapeOnly?e:e.replace(_w,(function(e,n,r){
return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)
})).replace(Ew,n);function n(e,n,r){
return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}const Pw=/[\dA-Fa-f]/
;const Dw=/\d/
;const $w=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Rw={
nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",
uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",
plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",
sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",
Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",
Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",
Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",
Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",
Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",
atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",
ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",
ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",
ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",
Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",
Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",
Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",
beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",
kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",
sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",
upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",
weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",
darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",
forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",
prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",
and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",
ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",
oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",
rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",
quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",
Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",
lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",
rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",
euro:"€"
},Nw=["cent","copy","divide","gt","lt","not","para","times"],Iw={}.hasOwnProperty,Mw={}
;let Lw;for(Lw in Rw)Iw.call(Rw,Lw)&&(Mw[Rw[Lw]]=Lw);const Bw=/[^\dA-Za-z]/
;function Qw(e,t,n){let r,o=function(e,t,n){
const r="&#x"+e.toString(16).toUpperCase()
;return n&&t&&!Pw.test(String.fromCharCode(t))?r:r+";"
}(e,t,n.omitOptionalSemicolons)
;if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){
const o=String.fromCharCode(e);if(Iw.call(Mw,o)){const e=Mw[o],i="&"+e
;return n&&$w.includes(e)&&!Nw.includes(e)&&(!r||t&&61!==t&&Bw.test(String.fromCharCode(t)))?i:i+";"
}return""
}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){
const r=function(e,t,n){const r="&#"+String(e)
;return n&&t&&!Dw.test(String.fromCharCode(t))?r:r+";"
}(e,t,n.omitOptionalSemicolons);r.length<o.length&&(o=r)}
return r&&(!n.useShortestReferences||r.length<o.length)?r:o}function jw(e,t){
return Aw(e,Object.assign({format:Qw},t))}
const Uw=/^>|^->|<!--|-->|--!>|<!-$/g,Fw=[">"],qw=["<",">"];function zw(e,t){
const n=String(e)
;if("string"!=typeof t)throw new TypeError("Expected character")
;let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}
const Hw=Ww(1),Zw=Ww(-1),Vw=[];function Ww(e){return function(t,n,r){
const o=t?t.children:Vw;let i=(n||0)+e,a=o[i];if(!r)for(;a&&vg(a);)i+=e,a=o[i]
;return a}}const Xw={}.hasOwnProperty;function Yw(e){return function(t,n,r){
return Xw.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const Gw=Yw({
body:function(e,t,n){const r=Hw(n,t);return!r||"comment"!==r.type},caption:Kw,
colgroup:Kw,dd:function(e,t,n){const r=Hw(n,t)
;return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},
dt:function(e,t,n){const r=Hw(n,t)
;return Boolean(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},
head:Kw,html:function(e,t,n){const r=Hw(n,t);return!r||"comment"!==r.type},
li:function(e,t,n){const r=Hw(n,t)
;return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){
const r=Hw(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},
option:function(e,t,n){const r=Hw(n,t)
;return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},
p:function(e,t,n){const r=Hw(n,t)
;return r?"element"===r.type&&("address"===r.tagName||"article"===r.tagName||"aside"===r.tagName||"blockquote"===r.tagName||"details"===r.tagName||"div"===r.tagName||"dl"===r.tagName||"fieldset"===r.tagName||"figcaption"===r.tagName||"figure"===r.tagName||"footer"===r.tagName||"form"===r.tagName||"h1"===r.tagName||"h2"===r.tagName||"h3"===r.tagName||"h4"===r.tagName||"h5"===r.tagName||"h6"===r.tagName||"header"===r.tagName||"hgroup"===r.tagName||"hr"===r.tagName||"main"===r.tagName||"menu"===r.tagName||"nav"===r.tagName||"ol"===r.tagName||"p"===r.tagName||"pre"===r.tagName||"section"===r.tagName||"table"===r.tagName||"ul"===r.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))
},rp:Jw,rt:Jw,tbody:function(e,t,n){const r=Hw(n,t)
;return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},
td:ex,tfoot:function(e,t,n){return!Hw(n,t)},th:ex,thead:function(e,t,n){
const r=Hw(n,t)
;return Boolean(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))
},tr:function(e,t,n){const r=Hw(n,t)
;return!r||"element"===r.type&&"tr"===r.tagName}});function Kw(e,t,n){
const r=Hw(n,t,!0)
;return!r||"comment"!==r.type&&!("text"===r.type&&vg(r.value.charAt(0)))}
function Jw(e,t,n){const r=Hw(n,t)
;return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}
function ex(e,t,n){const r=Hw(n,t)
;return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}
const tx=Yw({body:function(e){const t=Hw(e,-1,!0)
;return!(t&&("comment"===t.type||"text"===t.type&&vg(t.value.charAt(0))||"element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName)))
},colgroup:function(e,t,n){const r=Zw(n,t),o=Hw(e,-1,!0)
;if(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&Gw(r,n.children.indexOf(r),n))return!1
;return Boolean(o&&"element"===o.type&&"col"===o.tagName)},head:function(e){
const t=e.children,n=[];let r=-1;for(;++r<t.length;){const e=t[r]
;if("element"===e.type&&("title"===e.tagName||"base"===e.tagName)){
if(n.includes(e.tagName))return!1;n.push(e.tagName)}}return t.length>0},
html:function(e){const t=Hw(e,-1);return!t||"comment"!==t.type},
tbody:function(e,t,n){const r=Zw(n,t),o=Hw(e,-1)
;if(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&Gw(r,n.children.indexOf(r),n))return!1
;return Boolean(o&&"element"===o.type&&"tr"===o.tagName)}});const nx={
name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],
unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],
single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],
double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]
};function rx(e,t,n){
const r=fv(e.schema,t),o=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,i=e.settings.allowDangerousCharacters?0:1
;let a,s=e.quote
;if(!r.overloadedBoolean||n!==r.attribute&&""!==n?(r.boolean||r.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,
null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return""
;const l=jw(r.attribute,Object.assign({},e.settings.characterReferences,{
subset:nx.name[o][i]}))
;return!0===n?l:(n=Array.isArray(n)?(r.commaSeparated?yv:Xm)(n,{
padLeft:!e.settings.tightCommaSeparatedLists
}):String(n),e.settings.collapseEmptyAttributes&&!n?l:(e.settings.preferUnquoted&&(a=jw(n,Object.assign({},e.settings.characterReferences,{
attribute:!0,subset:nx.unquoted[o][i]
}))),a!==n&&(e.settings.quoteSmart&&zw(n,s)>zw(n,e.alternative)&&(s=e.alternative),
a=s+jw(n,Object.assign({},e.settings.characterReferences,{
subset:("'"===s?nx.single:nx.double)[o][i],attribute:!0}))+s),l+(a?"="+a:a)))}
const ox=["<","&"];function ix(e,t,n,r){
return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?jw(e.value,Object.assign({},r.settings.characterReferences,{
subset:ox})):e.value}const ax=Uv("type",{invalid:function(e){
throw new Error("Expected node, not `"+e+"`")},unknown:function(e){
throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{
comment:function(e,t,n,r){
return r.settings.bogusComments?"<?"+jw(e.value,Object.assign({},r.settings.characterReferences,{
subset:Fw}))+">":"\x3c!--"+e.value.replace(Uw,(function(e){
return jw(e,Object.assign({},r.settings.characterReferences,{subset:qw}))
}))+"--\x3e"},doctype:function(e,t,n,r){
return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"
},element:function(e,t,n,r){
const o=r.schema,i="svg"!==o.space&&r.settings.omitOptionalTags
;let a="svg"===o.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase())
;const s=[];let l;"html"===o.space&&"svg"===e.tagName&&(r.schema=bv)
;const c=function(e,t){const n=[];let r,o=-1
;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){const o=rx(e,r,t[r])
;o&&n.push(o)}for(;++o<n.length;){
const t=e.settings.tightAttributes?n[o].charAt(n[o].length-1):void 0
;o!==n.length-1&&'"'!==t&&"'"!==t&&(n[o]+=" ")}return n.join("")
}(r,e.properties),u=r.all("html"===o.space&&"template"===e.tagName?e.content:e)
;return r.schema=o,
u&&(a=!1),!c&&i&&tx(e,t,n)||(s.push("<",e.tagName,c?" "+c:""),
a&&("svg"===o.space||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),
(!r.settings.tightSelfClosing||"/"===l||l&&'"'!==l&&"'"!==l)&&s.push(" "),
s.push("/")),s.push(">")),s.push(u),a||i&&Gw(e,t,n)||s.push("</"+e.tagName+">"),
s.join("")},raw:function(e,t,n,r){
return r.settings.allowDangerousHtml?e.value:ix(e,0,n,r)},
root:function(e,t,n,r){return r.all(e)},text:ix}});const sx={},lx={},cx=[]
;function ux(e,t,n){return ax(e,t,n,this)}function dx(e){
const t=[],n=e&&e.children||cx;let r=-1
;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function px(e){
const t={...this.data("settings"),...e};this.compiler=function(e){
return function(e,t){const n=t||sx,r=n.quote||'"',o='"'===r?"'":'"'
;if('"'!==r&&"'"!==r)throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`")
;return{one:ux,all:dx,settings:{omitOptionalTags:n.omitOptionalTags||!1,
allowParseErrors:n.allowParseErrors||!1,
allowDangerousCharacters:n.allowDangerousCharacters||!1,
quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,
tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,
tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,
tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,
tightSelfClosing:n.tightSelfClosing||!1,
collapseEmptyAttributes:n.collapseEmptyAttributes||!1,
allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Wv,
characterReferences:n.characterReferences||lx,
closeSelfClosing:n.closeSelfClosing||!1,
closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?bv:vv,
quote:r,alternative:o}.one(Array.isArray(e)?{type:"root",children:e
}:e,void 0,void 0)}(e,t)}}
const hx=_x(/[A-Za-z]/),fx=_x(/[\dA-Za-z]/),mx=_x(/[#-'*+\--9=?A-Z^-~]/)
;function gx(e){return null!==e&&(e<32||127===e)}
const vx=_x(/\d/),bx=_x(/[\dA-Fa-f]/),Ox=_x(/[!-/:-@[-`{-~]/);function yx(e){
return null!==e&&e<-2}function wx(e){return null!==e&&(e<0||32===e)}
function xx(e){return-2===e||-1===e||32===e}
const kx=_x(new RegExp("\\p{P}|\\p{S}","u")),Sx=_x(/\s/);function _x(e){
return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}
function Ex(e,t,n){const r=Ym((n||{}).ignore||[]),o=function(e){const t=[]
;if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples")
;const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){
const e=n[r];t.push([Tx(e[0]),Cx(e[1])])}return t}(t);let i=-1
;for(;++i<o.length;)rg(e,"text",a);function a(e,t){let n,a=-1
;for(;++a<t.length;){const e=t[a],o=n?n.children:void 0
;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){
const n=t[t.length-1],r=o[i][0],a=o[i][1];let s=0;const l=n.children.indexOf(e)
;let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,o={
index:d.index,input:d.input,stack:[...t,e]};let i=a(...d,o)
;if("string"==typeof i&&(i=i.length>0?{type:"text",value:i
}:void 0),!1===i?r.lastIndex=n+1:(s!==n&&u.push({type:"text",
value:e.value.slice(s,n)
}),Array.isArray(i)?u.push(...i):i&&u.push(i),s=n+d[0].length,
c=!0),!r.global)break;d=r.exec(e.value)}c?(s<e.value.length&&u.push({
type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e]
;return l+u.length}(e,t)}}function Tx(e){
return"string"==typeof e?new RegExp(function(e){
if("string"!=typeof e)throw new TypeError("Expected a string")
;return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e
}function Cx(e){return"function"==typeof e?e:function(){return e}}
const Ax="phrasing",Px=["autolink","link","image","label"];function Dx(e){
this.enter({type:"link",title:null,url:"",children:[]},e)}function $x(e){
this.config.enter.autolinkProtocol.call(this,e)}function Rx(e){
this.config.exit.autolinkProtocol.call(this,e)}function Nx(e){
this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1]
;t.type,t.url="http://"+this.sliceSerialize(e)}function Ix(e){
this.config.exit.autolinkEmail.call(this,e)}function Mx(e){this.exit(e)}
function Lx(e){
Ex(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Bx],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Qx]],{
ignore:["link","linkReference"]})}function Bx(e,t,n,r,o){let i=""
;if(!jx(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){
const t=e.split(".")
;if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1
;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e)
;if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")")
;const o=zw(e,"(");let i=zw(e,")")
;for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++
;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,
url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",
value:a[1]}]:s}function Qx(e,t,n,r){return!(!jx(r,!0)||/[-\d_]$/.test(n))&&{
type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",
value:t+"@"+n}]}}function jx(e,t){const n=e.input.charCodeAt(e.index-1)
;return(0===e.index||Sx(n)||kx(n))&&(!t||47!==n)}function Ux(e){
return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()
}function Fx(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",
children:[]},e)}function qx(){this.buffer()}function zx(e){
const t=this.resume(),n=this.stack[this.stack.length-1]
;n.type,n.label=t,n.identifier=Ux(this.sliceSerialize(e)).toLowerCase()}
function Hx(e){this.exit(e)}function Zx(e){this.enter({type:"footnoteReference",
identifier:"",label:""},e)}function Vx(){this.buffer()}function Wx(e){
const t=this.resume(),n=this.stack[this.stack.length-1]
;n.type,n.label=t,n.identifier=Ux(this.sliceSerialize(e)).toLowerCase()}
function Xx(e){this.exit(e)}function Yx(e,t,n,r){const o=n.createTracker(r)
;let i=o.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference")
;return i+=o.move(n.safe(n.associationId(e),{...o.current(),before:i,after:"]"
})),s(),a(),i+=o.move("]"),i}function Gx(e,t,n,r){const o=n.createTracker(r)
;let i=o.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label")
;return i+=o.move(n.safe(n.associationId(e),{...o.current(),before:i,after:"]"
})),
s(),i+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),i+=o.move(n.indentLines(n.containerFlow(e,o.current()),Kx)),
a(),i}function Kx(e,t,n){return 0===t?e:(n?"":"    ")+e}Yx.peek=function(){
return"["}
;const Jx=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]
;function ek(e){this.enter({type:"delete",children:[]},e)}function tk(e){
this.exit(e)}function nk(e,t,n,r){
const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~")
;return a+=n.containerPhrasing(e,{...o.current(),before:a,after:"~"
}),a+=o.move("~~"),i(),a}function rk(e){return e.length}function ok(e){
const t="string"==typeof e?e.codePointAt(0):0
;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}
nk.peek=function(){return"~"};const ik={}.hasOwnProperty;function ak(e,t){
let n,r=-1;if(t.extensions)for(;++r<t.extensions.length;)ak(e,t.extensions[r])
;for(n in t)if(ik.call(t,n))switch(n){case"extensions":break;case"unsafe":
case"join":sk(e[n],t[n]);break;case"handlers":lk(e[n],t[n]);break;default:
e.options[n]=t[n]}return e}function sk(e,t){t&&e.push(...t)}function lk(e,t){
t&&Object.assign(e,t)}function ck(e,t,n){return">"+(n?"":" ")+e}
function uk(e,t){return dk(e,t.inConstruct,!0)&&!dk(e,t.notInConstruct,!1)}
function dk(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n
;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}
function pk(e,t,n,r){let o=-1
;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&uk(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" "
;return"\\\n"}function hk(e,t){
return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))
}function fk(e,t,n){return(n?"":"    ")+e}function mk(e){
const t=e.options.quote||'"'
;if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`")
;return t}function gk(e,t,n,r){const o=function(e){
const t=e.options.emphasis||"*"
;if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`")
;return t}(n),i=n.enter("emphasis"),a=n.createTracker(r);let s=a.move(o)
;return s+=a.move(n.containerPhrasing(e,{before:s,after:o,...a.current()
})),s+=a.move(o),i(),s}gk.peek=function(e,t,n){return n.options.emphasis||"*"}
;const vk={};function bk(e,t){const n=vk
;return Ok(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)
}function Ok(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){
if("value"in e)return"html"!==e.type||n?e.value:""
;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return yk(e.children,t,n)
}return Array.isArray(e)?yk(e,t,n):""}function yk(e,t,n){const r=[];let o=-1
;for(;++o<e.length;)r[o]=Ok(e[o],t,n);return r.join("")}function wk(e,t){
let n=!1;return og(e,(function(e){
if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,tg
})),Boolean((!e.depth||e.depth<3)&&bk(e)&&(t.options.setext||n))}function xk(e){
return e.value||""}function kk(e,t,n,r){
const o=mk(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image")
;let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![")
;return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()
})),c+=l.move("]("),
s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),
c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()
})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{
before:c,after:e.title?" ":")",...l.current()
}))),s(),e.title&&(s=n.enter(`title${i}`),
c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()
})),c+=l.move(o),s()),c+=l.move(")"),a(),c}function Sk(e,t,n,r){
const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label")
;const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,
after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack
;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,
after:"]",...s.current()})
;return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),
l}function _k(e,t,n){let r=e.value||"",o="`",i=-1
;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`"
;for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){
const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){
let e=o.index
;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)
}}return o+r+o}function Ek(e,t){const n=bk(e)
;return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))
}function Tk(e,t,n,r){
const o=mk(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let s,l
;if(Ek(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<")
;return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()
})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label")
;let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",
...a.current()
})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),
c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()
})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{
before:c,after:e.title?" ":")",...a.current()
}))),l(),e.title&&(l=n.enter(`title${i}`),
c+=a.move(" "+o),c+=a.move(n.safe(e.title,{before:c,after:o,...a.current()
})),c+=a.move(o),l()),c+=a.move(")"),s(),c}function Ck(e,t,n,r){
const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label")
;const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{
before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack
;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,
after:"]",...s.current()})
;return a(),n.stack=u,i(),"full"!==o&&c&&c===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),
l}function Ak(e){const t=e.options.bullet||"*"
;if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`")
;return t}function Pk(e){const t=e.options.rule||"*"
;if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`")
;return t}xk.peek=function(){return"<"},kk.peek=function(){return"!"
},Sk.peek=function(){return"!"},_k.peek=function(){return"`"
},Tk.peek=function(e,t,n){return Ek(e,n)?"<":"["},Ck.peek=function(){return"["}
;const Dk=Ym(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"])
;function $k(e,t,n,r){const o=function(e){const t=e.options.strong||"*"
;if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`")
;return t}(n),i=n.enter("strong"),a=n.createTracker(r);let s=a.move(o+o)
;return s+=a.move(n.containerPhrasing(e,{before:s,after:o,...a.current()
})),s+=a.move(o+o),i(),s}$k.peek=function(e,t,n){return n.options.strong||"*"}
;const Rk={blockquote:function(e,t,n,r){
const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2)
;const a=n.indentLines(n.containerFlow(e,i.current()),ck);return o(),a},
break:pk,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`"
;if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`")
;return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(hk(e,n)){
const e=n.enter("codeIndented"),t=n.indentLines(i,fk);return e(),t}
const s=n.createTracker(r),l=o.repeat(Math.max(function(e,t){const n=String(e)
;let r=n.indexOf(t),o=r,i=0,a=0
;if("string"!=typeof t)throw new TypeError("Expected substring")
;for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a
}(i,o)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){
const t=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u,
after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){
const t=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{
before:u,after:"\n",encode:["`"],...s.current()})),t()}
return u+=s.move("\n"),i&&(u+=s.move(i+"\n")),u+=s.move(l),c(),u},
definition:function(e,t,n,r){
const o=mk(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition")
;let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[")
;return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()
})),
c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),
c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()
})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{
before:c,after:e.title?" ":"\n",...l.current()
}))),s(),e.title&&(s=n.enter(`title${i}`),
c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()
})),c+=l.move(o),s()),a(),c},emphasis:gk,hardBreak:pk,heading:function(e,t,n,r){
const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(wk(e,n)){
const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{
...i.current(),before:"\n",after:"\n"})
;return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))
}const a="#".repeat(o),s=n.enter("headingAtx"),l=n.enter("phrasing")
;i.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",
...i.current()})
;return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),
c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:xk,image:kk,
imageReference:Sk,inlineCode:_k,link:Tk,linkReference:Ck,list:function(e,t,n,r){
const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?function(e){
const t=e.options.bulletOrdered||"."
;if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`")
;return t}(n):Ak(n);const s=e.ordered?"."===a?")":".":function(e){
const t=Ak(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*"
;if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`")
;if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different")
;return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed
;if(!e.ordered){const t=e.children?e.children[0]:void 0
;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),
Pk(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t]
;if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){
l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const c=n.containerFlow(e,r)
;return n.bulletLastUsed=a,n.bulletCurrent=i,o(),c},listItem:function(e,t,n,r){
const o=function(e){const t=e.options.listItemIndent||"one"
;if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`")
;return t}(n);let i=n.bulletCurrent||Ak(n)
;t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i)
;let a=i.length+1
;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4))
;const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a)
;const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){
if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e}))
;return l(),c},paragraph:function(e,t,n,r){
const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r)
;return i(),o(),a},root:function(e,t,n,r){return(e.children.some((function(e){
return Dk(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:$k,
text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){
const r=(Pk(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){
const t=e.options.ruleRepetition||3
;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more")
;return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}
},Nk=[function(e,t,n,r){
if("code"===t.type&&hk(t,r)&&("list"===e.type||e.type===t.type&&hk(e,r)))return!1
;if("spread"in n&&"boolean"==typeof n.spread){
if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&wk(t,r)))return
;return n.spread?1:0}}]
;const Ik=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Mk=[{
character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",
before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t",
inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{
character:"\r",
inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]
},{character:"\n",
inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]
},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",
before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",
inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",
after:"\\[",inConstruct:"phrasing",notInConstruct:Ik},{character:'"',
inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",
inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",
inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{
character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",
inConstruct:"phrasing",notInConstruct:Ik},{atBreak:!0,before:"\\d+",
character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,
character:"*",after:"(?:[ \t\r\n*])"},{character:"*",inConstruct:"phrasing",
notInConstruct:Ik},{atBreak:!0,character:"+",after:"(?:[ \t\r\n])"},{atBreak:!0,
character:"-",after:"(?:[ \t\r\n-])"},{atBreak:!0,before:"\\d+",character:".",
after:"(?:[ \t\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{
character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Ik},{
character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{
atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{
atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",
notInConstruct:Ik},{character:"[",inConstruct:["label","reference"]},{
character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",
inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",
inConstruct:"phrasing",notInConstruct:Ik},{atBreak:!0,character:"`"},{
character:"`",
inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{
character:"`",inConstruct:"phrasing",notInConstruct:Ik},{atBreak:!0,
character:"~"}],Lk=document.createElement("i");function Bk(e){const t="&"+e+";"
;Lk.innerHTML=t;const n=Lk.textContent
;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function Qk(e,t){
const n=Number.parseInt(e,t)
;return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)
}const jk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi
;function Uk(e){return e.replace(jk,Fk)}function Fk(e,t,n){if(t)return t
;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e
;return Qk(n.slice(t?2:1),t?16:10)}return Bk(n)||e}function qk(e){
return e.label||!e.identifier?e.label||"":Uk(e.identifier)}function zk(e){
if(!e._compiled){
const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"")
;e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")
}return e._compiled}function Hk(e,t,n,r){let o=r.join.length;for(;o--;){
const i=r.join[o](e,t,n,r);if(!0===i||1===i)break
;if("number"==typeof i)return"\n".repeat(1+i)
;if(!1===i)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const Zk=/\r?\n|\r/g
;function Vk(e,t){const n=[];let r,o=0,i=0
;for(;r=Zk.exec(e);)a(e.slice(o,r.index)),n.push(r[0]),o=r.index+r[0].length,i++
;return a(e.slice(o)),n.join("");function a(e){n.push(t(e,i,!e))}}
function Wk(e,t){return e-t}function Xk(e,t){
const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],o=[],i=e+t;let a,s=-1,l=0
;for(;a=n.exec(i);)r.push(a.index)
;for(;++s<r.length;)l!==r[s]&&o.push(e.slice(l,r[s])),o.push("\\"),l=r[s]
;return o.push(e.slice(l)),o.join("")}function Yk(e){const t=e||{},n=t.now||{}
;let r=t.lineShift||0,o=n.line||1,i=n.column||1;return{move:function(e){
const t=e||"",n=t.split(/\r?\n|\r/g),a=n[n.length-1]
;return o+=n.length-1,i=1===n.length?i+a.length:1+a.length+r,t},
current:function(){return{now:{line:o,column:i},lineShift:r}},shift:function(e){
r+=e}}}function Gk(e,t={}){const n={enter:function(e){
return n.stack.push(e),function(){n.stack.pop()}},indentLines:Vk,
associationId:qk,containerPhrasing:tS,containerFlow:nS,createTracker:Yk,
compilePattern:zk,safe:rS,stack:[],unsafe:[...Mk],join:[...Nk],handlers:{...Rk},
options:{},indexStack:[],handle:void 0}
;ak(n,t),n.options.tightDefinitions&&n.join.push(eS),n.handle=Uv("type",{
invalid:Kk,unknown:Jk,handlers:n.handlers});let r=n.handle(e,void 0,n,{
before:"\n",after:"\n",now:{line:1,column:1},lineShift:0})
;return r&&10!==r.charCodeAt(r.length-1)&&13!==r.charCodeAt(r.length-1)&&(r+="\n"),
r}function Kk(e){throw new Error("Cannot handle value `"+e+"`, expected node")}
function Jk(e){throw new Error("Cannot handle unknown node `"+e.type+"`")}
function eS(e,t){if("definition"===e.type&&e.type===t.type)return 0}
function tS(e,t){return function(e,t,n){
const r=t.indexStack,o=e.children||[],i=[];let a=-1,s=n.before;r.push(-1)
;let l=t.createTracker(n);for(;++a<o.length;){const c=o[a];let u
;if(r[r.length-1]=a,a+1<o.length){let n=t.handle.handlers[o[a+1].type]
;n&&n.peek&&(n=n.peek),u=n?n(o[a+1],e,t,{before:"",after:"",...l.current()
}).charAt(0):""}else u=n.after
;i.length>0&&("\r"===s||"\n"===s)&&"html"===c.type&&(i[i.length-1]=i[i.length-1].replace(/(\r?\n|\r)$/," "),
s=" ",l=t.createTracker(n),l.move(i.join(""))),i.push(l.move(t.handle(c,e,t,{
...l.current(),before:s,after:u}))),s=i[i.length-1].slice(-1)}
return r.pop(),i.join("")}(e,this,t)}function nS(e,t){return function(e,t,n){
const r=t.indexStack,o=e.children||[],i=t.createTracker(n),a=[];let s=-1
;for(r.push(-1);++s<o.length;){const n=o[s]
;r[r.length-1]=s,a.push(i.move(t.handle(n,e,t,{before:"\n",after:"\n",
...i.current()
}))),"list"!==n.type&&(t.bulletLastUsed=void 0),s<o.length-1&&a.push(i.move(Hk(n,o[s+1],e,t)))
}return r.pop(),a.join("")}(e,this,t)}function rS(e,t){return function(e,t,n){
const r=(n.before||"")+(t||"")+(n.after||""),o=[],i=[],a={};let s=-1
;for(;++s<e.unsafe.length;){const t=e.unsafe[s];if(!uk(e.stack,t))continue
;const n=e.compilePattern(t);let i;for(;i=n.exec(r);){
const e="before"in t||Boolean(t.atBreak),n="after"in t,r=i.index+(e?i[1].length:0)
;o.includes(r)?(a[r].before&&!e&&(a[r].before=!1),
a[r].after&&!n&&(a[r].after=!1)):(o.push(r),a[r]={before:e,after:n})}}o.sort(Wk)
;let l=n.before?n.before.length:0;const c=r.length-(n.after?n.after.length:0)
;for(s=-1;++s<o.length;){const e=o[s]
;e<l||e>=c||e+1<c&&o[s+1]===e+1&&a[e].after&&!a[e+1].before&&!a[e+1].after||o[s-1]===e-1&&a[e].before&&!a[e-1].before&&!a[e-1].after||(l!==e&&i.push(Xk(r.slice(l,e),"\\")),
l=e,
!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(i.push("&#x"+r.charCodeAt(e).toString(16).toUpperCase()+";"),
l++):i.push("\\"))}return i.push(Xk(r.slice(l,c),n.after)),i.join("")}(this,e,t)
}function oS(e){const t=e._align;this.enter({type:"table",
align:t.map((function(e){return"none"===e?null:e})),children:[]
},e),this.data.inTable=!0}function iS(e){this.exit(e),this.data.inTable=void 0}
function aS(e){this.enter({type:"tableRow",children:[]},e)}function sS(e){
this.exit(e)}function lS(e){this.enter({type:"tableCell",children:[]},e)}
function cS(e){let t=this.resume()
;this.data.inTable&&(t=t.replace(/\\([\\|])/g,uS))
;const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}
function uS(e,t){return"|"===t?t:e}function dS(e){
const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|"
;return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",
inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{
character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{
atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){
let r=Rk.inlineCode(e,t,n)
;n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},
table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let o=-1
;const i=[],a=t.enter("table");for(;++o<r.length;)i[o]=l(r[o],t,n);return a(),i
}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const o=s([l(e,n,r)])
;return o.slice(0,o.indexOf("\n"))}}};function a(e,t,n,r){
const o=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(e,{
...r,before:i,after:i});return a(),o(),s}function s(e,t){
return function(e,t={}){
const n=(t.align||[]).concat(),r=t.stringLength||rk,o=[],i=[],a=[],s=[]
;let l=0,c=-1;for(;++c<e.length;){const n=[],o=[];let d=-1
;for(e[c].length>l&&(l=e[c].length);++d<e[c].length;){
const i=null==(u=e[c][d])?"":String(u);if(!1!==t.alignDelimiters){const e=r(i)
;o[d]=e,(void 0===s[d]||e>s[d])&&(s[d]=e)}n.push(i)}i[c]=n,a[c]=o}var u;let d=-1
;if("object"==typeof n&&"length"in n)for(;++d<l;)o[d]=ok(n[d]);else{
const e=ok(n);for(;++d<l;)o[d]=e}d=-1;const p=[],h=[];for(;++d<l;){const e=o[d]
;let n="",r="";99===e?(n=":",r=":"):108===e?n=":":114===e&&(r=":")
;let i=!1===t.alignDelimiters?1:Math.max(1,s[d]-n.length-r.length)
;const a=n+"-".repeat(i)+r
;!1!==t.alignDelimiters&&(i=n.length+i+r.length,i>s[d]&&(s[d]=i),h[d]=i),p[d]=a}
i.splice(1,0,p),a.splice(1,0,h),c=-1;const f=[];for(;++c<i.length;){
const e=i[c],n=a[c];d=-1;const r=[];for(;++d<l;){const i=e[d]||"";let a="",c=""
;if(!1!==t.alignDelimiters){const e=s[d]-(n[d]||0),t=o[d]
;114===t?a=" ".repeat(e):99===t?e%2?(a=" ".repeat(e/2+.5),
c=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),c=a):c=" ".repeat(e)}
!1===t.delimiterStart||d||r.push("|"),
!1===t.padding||!1===t.alignDelimiters&&""===i||!1===t.delimiterStart&&!d||r.push(" "),
!1!==t.alignDelimiters&&r.push(a),
r.push(i),!1!==t.alignDelimiters&&r.push(c),!1!==t.padding&&r.push(" "),
!1===t.delimiterEnd&&d===l-1||r.push("|")}
f.push(!1===t.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}
return f.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}
function l(e,t,n){const r=e.children;let o=-1;const i=[],s=t.enter("tableRow")
;for(;++o<r.length;)i[o]=a(r[o],0,t,n);return s(),i}}function pS(e){
const t=this.stack[this.stack.length-2]
;t.type,t.checked="taskListCheckValueChecked"===e.type}function hS(e){
const t=this.stack[this.stack.length-2]
;if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){
const e=this.stack[this.stack.length-1];e.type;const n=e.children[0]
;if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){
const e=r[i];if("paragraph"===e.type){o=e;break}}
o===e&&(n.value=n.value.slice(1),
0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,
n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}
}this.exit(e)}function fS(e,t,n,r){
const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r)
;i&&s.move(a);let l=Rk.listItem(e,t,n,{...r,...s.current()})
;return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){
return e+a}))),l}function mS(e,t,n,r){const o=e.length;let i,a=0
;if(t=t<0?-t>o?0:o+t:t>o?o:t,
n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),
e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),
i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function gS(e,t){
return e.length>0?(mS(e,e.length,0,t),e):t}const vS={}.hasOwnProperty
;function bS(e){const t={};let n=-1;for(;++n<e.length;)OS(t,e[n]);return t}
function OS(e,t){let n;for(n in t){
const r=(vS.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){
vS.call(r,i)||(r[i]=[]);const e=o[i];yS(r[i],Array.isArray(e)?e:e?[e]:[])}}}
function yS(e,t){let n=-1;const r=[]
;for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);mS(e,0,0,r)}const wS={
tokenize:function(e,t,n){let r=0;return function t(i){
if((87===i||119===i)&&r<3)return r++,e.consume(i),t
;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){
return null===e?n(e):t(e)}},partial:!0},xS={tokenize:function(e,t,n){let r,o,i
;return a;function a(t){
return 46===t||95===t?e.check(SS,l,s)(t):null===t||wx(t)||Sx(t)||45!==t&&kx(t)?l(t):(i=!0,
e.consume(t),a)}function s(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}
function l(e){return o||r||!i?n(e):t(e)}},partial:!0},kS={
tokenize:function(e,t){let n=0,r=0;return o;function o(a){
return 40===a?(n++,e.consume(a),
o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(SS,t,i)(a):null===a||wx(a)||Sx(a)?t(a):(e.consume(a),
o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},SS={
tokenize:function(e,t,n){return r;function r(a){
return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),
r):38===a?(e.consume(a),
i):93===a?(e.consume(a),o):60===a||null===a||wx(a)||Sx(a)?t(a):n(a)}
function o(e){return null===e||40===e||91===e||wx(e)||Sx(e)?t(e):r(e)}
function i(e){return hx(e)?a(e):n(e)}function a(t){
return 59===t?(e.consume(t),r):hx(t)?(e.consume(t),a):n(t)}},partial:!0},_S={
tokenize:function(e,t,n){return function(t){return e.consume(t),r}
;function r(e){return fx(e)?n(e):t(e)}},partial:!0},ES={
tokenize:function(e,t,n){const r=this;return function(t){
if(87!==t&&119!==t||!DS.call(r,r.previous)||IS(r.events))return n(t)
;return e.enter("literalAutolink"),
e.enter("literalAutolinkWww"),e.check(wS,e.attempt(xS,e.attempt(kS,o),n),n)(t)}
;function o(n){
return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:DS
},TS={tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){
if((72===t||104===t)&&$S.call(r,r.previous)&&!IS(r.events))return e.enter("literalAutolink"),
e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a
;return n(t)};function a(t){
if(hx(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a
;if(58===t){const n=o.toLowerCase()
;if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){
return 47===t?(e.consume(t),i?l:(i=!0,s)):n(t)}function l(t){
return null===t||gx(t)||wx(t)||Sx(t)||kx(t)?n(t):e.attempt(xS,e.attempt(kS,c),n)(t)
}function c(n){
return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},
previous:$S},CS={tokenize:function(e,t,n){const r=this;let o,i
;return function(t){if(!NS(t)||!RS.call(r,r.previous)||IS(r.events))return n(t)
;return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)}
;function a(t){return NS(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}
function s(t){
return 46===t?e.check(_S,c,l)(t):45===t||95===t||fx(t)?(i=!0,e.consume(t),
s):c(t)}function l(t){return e.consume(t),o=!0,s}function c(a){
return i&&o&&hx(r.previous)?(e.exit("literalAutolinkEmail"),
e.exit("literalAutolink"),t(a)):n(a)}},previous:RS},AS={};let PS=48
;for(;PS<123;)AS[PS]=CS,PS++,58===PS?PS=65:91===PS&&(PS=97);function DS(e){
return null===e||40===e||42===e||95===e||91===e||93===e||126===e||wx(e)}
function $S(e){return!hx(e)}function RS(e){return!(47===e||NS(e))}
function NS(e){return 43===e||45===e||46===e||95===e||fx(e)}function IS(e){
let t=e.length,n=!1;for(;t--;){const r=e[t][1]
;if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}
if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}
return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}
function MS(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){
const i=e.charCodeAt(n);let a=""
;if(37===i&&fx(e.charCodeAt(n+1))&&fx(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){
const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),
o=1):a="�"}else a=String.fromCharCode(i)
;a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}
return t.join("")+e.slice(r)}function LS(e){
return null===e||wx(e)||Sx(e)?1:kx(e)?2:void 0}function BS(e,t,n){const r=[]
;let o=-1;for(;++o<e.length;){const i=e[o].resolveAll
;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}AS[43]=CS,AS[45]=CS,AS[46]=CS,
AS[95]=CS,AS[72]=[CS,TS],AS[104]=[CS,TS],AS[87]=[CS,ES],AS[119]=[CS,ES]
;const QS={name:"attention",tokenize:function(e,t){
const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=LS(r)
;let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)}
;function a(s){if(s===i)return e.consume(s),a
;const l=e.exit("attentionSequence"),c=LS(s),u=!c||2===c&&o||n.includes(s),d=!o||2===o&&c||n.includes(r)
;return l._open=Boolean(42===i?u:u&&(o||!d)),
l._close=Boolean(42===i?d:d&&(c||!u)),t(s)}},resolveAll:function(e,t){
let n,r,o,i,a,s,l,c,u=-1
;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){
if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue
;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1
;const d=Object.assign({},e[n][1].end),p=Object.assign({},e[u][1].start)
;jS(d,-s),jS(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,
end:Object.assign({},e[n][1].end)},a={
type:s>1?"strongSequence":"emphasisSequence",
start:Object.assign({},e[u][1].start),end:p},o={
type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),
end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",
start:Object.assign({},i.start),end:Object.assign({},a.end)
},e[n][1].end=Object.assign({},i.start),
e[u][1].start=Object.assign({},a.end),l=[],
e[n][1].end.offset-e[n][1].start.offset&&(l=gS(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),
l=gS(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),
l=gS(l,BS(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),
l=gS(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),
e[u][1].end.offset-e[u][1].start.offset?(c=2,
l=gS(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,
mS(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1
;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data")
;return e}};function jS(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}
const US={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){
return e.enter("autolink"),
e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),
e.enter("autolinkProtocol"),o};function o(t){
return hx(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){
return 43===e||45===e||46===e||fx(e)?(r=1,a(e)):l(e)}function a(t){
return 58===t?(e.consume(t),
r=0,s):(43===t||45===t||46===t||fx(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}
function s(r){
return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),
e.consume(r),
e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||gx(r)?n(r):(e.consume(r),
s)}function l(t){return 64===t?(e.consume(t),c):mx(t)?(e.consume(t),l):n(t)}
function c(e){return fx(e)?u(e):n(e)}function u(n){
return 46===n?(e.consume(n),r=0,
c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",
e.enter("autolinkMarker"),
e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){
if((45===t||fx(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)
}}};function FS(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0
;return function(r){if(xx(r))return e.enter(n),a(r);return t(r)};function a(r){
return xx(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const qS={
tokenize:function(e,t,n){return function(t){
return xx(t)?FS(e,r,"linePrefix")(t):r(t)};function r(e){
return null===e||yx(e)?t(e):n(e)}},partial:!0};const zS={name:"blockQuote",
tokenize:function(e,t,n){const r=this;return function(t){if(62===t){
const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0
}),n.open=!0),
e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),
e.exit("blockQuoteMarker"),o}return n(t)};function o(n){
return xx(n)?(e.enter("blockQuotePrefixWhitespace"),
e.consume(n),e.exit("blockQuotePrefixWhitespace"),
e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{
tokenize:function(e,t,n){const r=this;return function(t){
if(xx(t))return FS(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t)
;return o(t)};function o(r){return e.attempt(zS,t,n)(r)}}},exit:function(e){
e.exit("blockQuote")}};const HS={name:"characterEscape",
tokenize:function(e,t,n){return function(t){
return e.enter("characterEscape"),e.enter("escapeMarker"),
e.consume(t),e.exit("escapeMarker"),r};function r(r){
return Ox(r)?(e.enter("characterEscapeValue"),
e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}}
;const ZS={name:"characterReference",tokenize:function(e,t,n){const r=this
;let o,i,a=0;return function(t){
return e.enter("characterReference"),e.enter("characterReferenceMarker"),
e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){
return 35===t?(e.enter("characterReferenceMarkerNumeric"),
e.consume(t),e.exit("characterReferenceMarkerNumeric"),
l):(e.enter("characterReferenceValue"),o=31,i=fx,c(t))}function l(t){
return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),
e.consume(t),
e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),
o=6,i=bx,c):(e.enter("characterReferenceValue"),o=7,i=vx,c(t))}function c(s){
if(59===s&&a){const o=e.exit("characterReferenceValue")
;return i!==fx||Bk(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),
e.consume(s),
e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}
return i(s)&&a++<o?(e.consume(s),c):n(s)}}};const VS={tokenize:function(e,t,n){
const r=this;return function(t){if(null===t)return n(t)
;return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o}
;function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},WS={
name:"codeFenced",tokenize:function(e,t,n){const r=this,o={
tokenize:function(e,t,n){let o=0;return a;function a(t){
return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){
return e.enter("codeFencedFence"),
xx(t)?FS(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)
}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}
function u(t){
return t===i?(o++,e.consume(t),u):o>=s?(e.exit("codeFencedFenceSequence"),
xx(t)?FS(e,d,"whitespace")(t):d(t)):n(t)}function d(r){
return null===r||yx(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0}
;let i,a=0,s=0;return function(t){return function(t){
const n=r.events[r.events.length-1]
;return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,
e.enter("codeFenced"),
e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)}
;function l(t){
return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),
xx(t)?FS(e,c,"whitespace")(t):c(t))}function c(n){
return null===n||yx(n)?(e.exit("codeFencedFence"),
r.interrupt?t(n):e.check(VS,h,b)(n)):(e.enter("codeFencedFenceInfo"),
e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){
return null===t||yx(t)?(e.exit("chunkString"),
e.exit("codeFencedFenceInfo"),c(t)):xx(t)?(e.exit("chunkString"),
e.exit("codeFencedFenceInfo"),
FS(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){
return null===t||yx(t)?c(t):(e.enter("codeFencedFenceMeta"),
e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){
return null===t||yx(t)?(e.exit("chunkString"),
e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)}
function h(t){return e.attempt(o,b,f)(t)}function f(t){
return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){
return a>0&&xx(t)?FS(e,g,"linePrefix",a+1)(t):g(t)}function g(t){
return null===t||yx(t)?e.check(VS,h,b)(t):(e.enter("codeFlowValue"),v(t))}
function v(t){
return null===t||yx(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}
function b(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const XS={
name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){
return e.enter("codeIndented"),FS(e,o,"linePrefix",5)(t)};function o(e){
const t=r.events[r.events.length-1]
;return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)
}function i(t){
return null===t?s(t):yx(t)?e.attempt(YS,i,s)(t):(e.enter("codeFlowValue"),a(t))}
function a(t){
return null===t||yx(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}
function s(n){return e.exit("codeIndented"),t(n)}}},YS={
tokenize:function(e,t,n){const r=this;return o;function o(t){
return r.parser.lazy[r.now().line]?n(t):yx(t)?(e.enter("lineEnding"),
e.consume(t),e.exit("lineEnding"),o):FS(e,i,"linePrefix",5)(t)}function i(e){
const i=r.events[r.events.length-1]
;return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):yx(e)?o(e):n(e)
}},partial:!0};const GS={name:"codeText",tokenize:function(e,t,n){let r,o,i=0
;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)}
;function a(t){
return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))}
function s(t){
return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),
s):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):yx(t)?(e.enter("lineEnding"),
e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}
function l(t){
return null===t||32===t||96===t||yx(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),
l)}function c(n){
return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),
e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}},resolve:function(e){
let t,n,r=e.length-4,o=3
;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){
e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}
t=o-1,r++
;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",
t!==n+2&&(e[n][1].end=e[t-1][1].end,
e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){
return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}
;class KS{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){
if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`")
;return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]
}get length(){return this.left.length+this.right.length}shift(){
return this.setCursor(0),this.right.pop()}slice(e,t){
const n=null==t?Number.POSITIVE_INFINITY:t
;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())
}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e))
;const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY)
;return n&&JS(this.left,n),o.reverse()}pop(){
return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){
this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){
this.setCursor(Number.POSITIVE_INFINITY),JS(this.left,e)}unshift(e){
this.setCursor(0),this.right.push(e)}unshiftMany(e){
this.setCursor(0),JS(this.right,e.reverse())}setCursor(e){
if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){
const t=this.left.splice(e,Number.POSITIVE_INFINITY);JS(this.right,t.reverse())
}else{
const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY)
;JS(this.left,t.reverse())}}}function JS(e,t){let n=0
;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),
n+=1e4}function e_(e){const t={};let n,r,o,i,a,s,l,c=-1;const u=new KS(e)
;for(;++c<u.length;){for(;c in t;)c=t[c]
;if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,
o=0,
o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,
o++)
;if("enter"===n[0])n[1].contentType&&(Object.assign(t,t_(u,c)),c=t[c],l=!0);else if(n[1]._container){
for(o=c,
r=void 0;o--&&(i=u.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type);)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),
i[1].type="lineEnding",r=o)
;r&&(n[1].end=Object.assign({},u.get(r)[1].start),a=u.slice(r,c),
a.unshift(n),u.splice(r,c-r+1,a))}}
return mS(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function t_(e,t){
const n=e.get(t)[1],r=e.get(t)[2];let o=t-1
;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={}
;let u,d,p=-1,h=n,f=0,m=0;const g=[m];for(;h;){for(;e.get(++o)[1]!==h;);
i.push(o),
h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&a.defineSkip(h.start),
h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),
a.write(u),
h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),
d=h,h=h.next}
for(h=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,
g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next)
;for(a.events=[],h?(h._tokenizer=void 0,
h.previous=void 0):g.pop(),p=g.length;p--;){
const t=s.slice(g[p],g[p+1]),n=i.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}
for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1
;return c}const n_={tokenize:function(e,t){let n;return function(t){
return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)
};function r(t){return null===t?o(t):yx(t)?e.check(r_,i,o)(t):(e.consume(t),r)}
function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}
function i(t){
return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{
contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){
return e_(e),e}},r_={tokenize:function(e,t,n){const r=this;return function(t){
return e.exit("chunkContent"),
e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),FS(e,o,"linePrefix")}
;function o(o){if(null===o||yx(o))return n(o)
;const i=r.events[r.events.length-1]
;return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)
}},partial:!0};function o_(e,t,n,r,o,i,a,s,l){
const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){
if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d
;if(null===t||32===t||41===t||gx(t))return n(t)
;return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{
contentType:"string"}),f(t)};function d(n){
return 62===n?(e.enter(i),e.consume(n),
e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{
contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),
e.exit(s),d(t)):null===t||60===t||yx(t)?n(t):(e.consume(t),92===t?h:p)}
function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(o){
return u||null!==o&&41!==o&&!wx(o)?u<c&&40===o?(e.consume(o),
u++,f):41===o?(e.consume(o),
u--,f):null===o||32===o||40===o||gx(o)?n(o):(e.consume(o),
92===o?m:f):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(o))}
function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}
function i_(e,t,n,r,o,i){const a=this;let s,l=0;return function(t){
return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){
return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),
e.enter(o),
e.consume(d),e.exit(o),e.exit(r),t):yx(d)?(e.enter("lineEnding"),e.consume(d),
e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}
function u(t){
return null===t||91===t||93===t||yx(t)||l++>999?(e.exit("chunkString"),
c(t)):(e.consume(t),s||(s=!xx(t)),92===t?d:u)}function d(t){
return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}
function a_(e,t,n,r,o,i){let a;return function(t){
if(34===t||39===t||40===t)return e.enter(r),
e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return n(t)};function s(n){
return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}
function l(t){
return t===a?(e.exit(i),s(a)):null===t?n(t):yx(t)?(e.enter("lineEnding"),
e.consume(t),e.exit("lineEnding"),FS(e,l,"linePrefix")):(e.enter("chunkString",{
contentType:"string"}),c(t))}function c(t){
return t===a||null===t||yx(t)?(e.exit("chunkString"),
l(t)):(e.consume(t),92===t?u:c)}function u(t){
return t===a||92===t?(e.consume(t),c):c(t)}}function s_(e,t){let n
;return function r(o){
if(yx(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r
;if(xx(o))return FS(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const l_={
name:"definition",tokenize:function(e,t,n){const r=this;let o
;return function(t){return e.enter("definition"),function(t){
return i_.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)
}(t)};function i(t){
return o=Ux(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),
58===t?(e.enter("definitionMarker"),
e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){
return wx(t)?s_(e,s)(t):s(t)}function s(t){
return o_(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)
}function l(t){return e.attempt(c_,c,c)(t)}function c(t){
return xx(t)?FS(e,u,"whitespace")(t):u(t)}function u(i){
return null===i||yx(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)
}}},c_={tokenize:function(e,t,n){return function(t){return wx(t)?s_(e,r)(t):n(t)
};function r(t){
return a_(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)
}function o(t){return xx(t)?FS(e,i,"whitespace")(t):i(t)}function i(e){
return null===e||yx(e)?t(e):n(e)}},partial:!0};const u_={name:"hardBreakEscape",
tokenize:function(e,t,n){return function(t){
return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){
return yx(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const d_={
name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){
return e.enter("atxHeading"),function(t){
return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){
return 35===t&&r++<6?(e.consume(t),
o):null===t||wx(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){
return 35===n?(e.enter("atxHeadingSequence"),
a(n)):null===n||yx(n)?(e.exit("atxHeading"),
t(n)):xx(n)?FS(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}
function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))
}function s(t){
return null===t||35===t||wx(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}
},resolve:function(e,t){let n,r,o=e.length-2,i=3
;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2)
;"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4)
;o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={
type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"
},mS(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]))
;return e}}
;const p_=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],h_=["pre","script","style","textarea"],f_={
name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,i,a,s,l
;return function(t){return function(t){
return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)}
;function c(s){
return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,h):63===s?(e.consume(s),
o=3,r.interrupt?t:N):hx(s)?(e.consume(s),a=String.fromCharCode(s),f):n(s)}
function u(i){
return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,p):hx(i)?(e.consume(i),
o=4,r.interrupt?t:N):n(i)}function d(o){
return 45===o?(e.consume(o),r.interrupt?t:N):n(o)}function p(o){const i="CDATA["
;return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:E:p):n(o)}
function h(t){return hx(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)}
function f(s){if(null===s||47===s||62===s||wx(s)){
const l=47===s,c=a.toLowerCase()
;return l||i||!h_.includes(c)?p_.includes(a.toLowerCase())?(o=6,l?(e.consume(s),
m):r.interrupt?t(s):E(s)):(o=7,
r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):v(s)):(o=1,
r.interrupt?t(s):E(s))}
return 45===s||fx(s)?(e.consume(s),a+=String.fromCharCode(s),f):n(s)}
function m(o){return 62===o?(e.consume(o),r.interrupt?t:E):n(o)}function g(t){
return xx(t)?(e.consume(t),g):S(t)}function v(t){
return 47===t?(e.consume(t),S):58===t||95===t||hx(t)?(e.consume(t),
b):xx(t)?(e.consume(t),v):S(t)}function b(t){
return 45===t||46===t||58===t||95===t||fx(t)?(e.consume(t),b):O(t)}
function O(t){return 61===t?(e.consume(t),y):xx(t)?(e.consume(t),O):v(t)}
function y(t){
return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),
l=t,w):xx(t)?(e.consume(t),y):x(t)}function w(t){
return t===l?(e.consume(t),l=null,k):null===t||yx(t)?n(t):(e.consume(t),w)}
function x(t){
return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||wx(t)?O(t):(e.consume(t),
x)}function k(e){return 47===e||62===e||xx(e)?v(e):n(e)}function S(t){
return 62===t?(e.consume(t),_):n(t)}function _(t){
return null===t||yx(t)?E(t):xx(t)?(e.consume(t),_):n(t)}function E(t){
return 45===t&&2===o?(e.consume(t),
P):60===t&&1===o?(e.consume(t),D):62===t&&4===o?(e.consume(t),
I):63===t&&3===o?(e.consume(t),
N):93===t&&5===o?(e.consume(t),R):!yx(t)||6!==o&&7!==o?null===t||yx(t)?(e.exit("htmlFlowData"),
T(t)):(e.consume(t),E):(e.exit("htmlFlowData"),e.check(m_,M,T)(t))}
function T(t){return e.check(g_,C,M)(t)}function C(t){
return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){
return null===t||yx(t)?T(t):(e.enter("htmlFlowData"),E(t))}function P(t){
return 45===t?(e.consume(t),N):E(t)}function D(t){
return 47===t?(e.consume(t),a="",$):E(t)}function $(t){if(62===t){
const n=a.toLowerCase();return h_.includes(n)?(e.consume(t),I):E(t)}
return hx(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),$):E(t)}
function R(t){return 93===t?(e.consume(t),N):E(t)}function N(t){
return 62===t?(e.consume(t),I):45===t&&2===o?(e.consume(t),N):E(t)}
function I(t){
return null===t||yx(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),I)}
function M(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){
let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););
t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,
e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},m_={
tokenize:function(e,t,n){return function(r){
return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(qS,t,n)
}},partial:!0},g_={tokenize:function(e,t,n){const r=this;return function(t){
if(yx(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o
;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},
partial:!0};const v_={name:"htmlText",tokenize:function(e,t,n){const r=this
;let o,i,a;return function(t){
return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s}
;function s(t){
return 33===t?(e.consume(t),l):47===t?(e.consume(t),y):63===t?(e.consume(t),
b):hx(t)?(e.consume(t),k):n(t)}function l(t){
return 45===t?(e.consume(t),c):91===t?(e.consume(t),
i=0,h):hx(t)?(e.consume(t),v):n(t)}function c(t){
return 45===t?(e.consume(t),p):n(t)}function u(t){
return null===t?n(t):45===t?(e.consume(t),d):yx(t)?(a=u,$(t)):(e.consume(t),u)}
function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){
return 62===e?D(e):45===e?d(e):u(e)}function h(t){const r="CDATA["
;return t===r.charCodeAt(i++)?(e.consume(t),6===i?f:h):n(t)}function f(t){
return null===t?n(t):93===t?(e.consume(t),m):yx(t)?(a=f,$(t)):(e.consume(t),f)}
function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){
return 62===t?D(t):93===t?(e.consume(t),g):f(t)}function v(t){
return null===t||62===t?D(t):yx(t)?(a=v,$(t)):(e.consume(t),v)}function b(t){
return null===t?n(t):63===t?(e.consume(t),O):yx(t)?(a=b,$(t)):(e.consume(t),b)}
function O(e){return 62===e?D(e):b(e)}function y(t){
return hx(t)?(e.consume(t),w):n(t)}function w(t){
return 45===t||fx(t)?(e.consume(t),w):x(t)}function x(t){
return yx(t)?(a=x,$(t)):xx(t)?(e.consume(t),x):D(t)}function k(t){
return 45===t||fx(t)?(e.consume(t),k):47===t||62===t||wx(t)?S(t):n(t)}
function S(t){
return 47===t?(e.consume(t),D):58===t||95===t||hx(t)?(e.consume(t),
_):yx(t)?(a=S,$(t)):xx(t)?(e.consume(t),S):D(t)}function _(t){
return 45===t||46===t||58===t||95===t||fx(t)?(e.consume(t),_):E(t)}
function E(t){
return 61===t?(e.consume(t),T):yx(t)?(a=E,$(t)):xx(t)?(e.consume(t),E):S(t)}
function T(t){
return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),
o=t,C):yx(t)?(a=T,$(t)):xx(t)?(e.consume(t),T):(e.consume(t),A)}function C(t){
return t===o?(e.consume(t),
o=void 0,P):null===t?n(t):yx(t)?(a=C,$(t)):(e.consume(t),C)}function A(t){
return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||wx(t)?S(t):(e.consume(t),
A)}function P(e){return 47===e||62===e||wx(e)?S(e):n(e)}function D(r){
return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}
function $(t){
return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),
R}function R(t){
return xx(t)?FS(e,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):N(t)
}function N(t){return e.enter("htmlTextData"),a(t)}}};const b_={name:"labelEnd",
tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length
;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){
o=r.events[a][1];break}return function(t){if(!o)return n(t)
;if(o._inactive)return u(t)
;return i=r.parser.defined.includes(Ux(r.sliceSerialize({start:o.end,end:r.now()
}))),
e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),
e.exit("labelEnd"),s};function s(t){
return 40===t?e.attempt(O_,c,i?c:u)(t):91===t?e.attempt(y_,c,i?l:u)(t):i?c(t):u(t)
}function l(t){return e.attempt(w_,c,u)(t)}function c(e){return t(e)}
function u(e){return o._balanced=!0,n(e)}},resolveTo:function(e,t){
let n,r,o,i,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){
if("link"===n.type||"labelLink"===n.type&&n._inactive)break
;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){
if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,
"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=a);const l={
type:"labelLink"===e[r][1].type?"link":"image",
start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)
},c={type:"label",start:Object.assign({},e[r][1].start),
end:Object.assign({},e[o][1].end)},u={type:"labelText",
start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[o-2][1].start)}
;return i=[["enter",l,t],["enter",c,t]],
i=gS(i,e.slice(r+1,r+s+3)),i=gS(i,[["enter",u,t]]),
i=gS(i,BS(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),
i=gS(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),
i=gS(i,e.slice(o+1)),i=gS(i,[["exit",l,t]]),mS(e,r,e.length,i),e},
resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1]
;"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),
n.type="data",t++)}return e}},O_={tokenize:function(e,t,n){return function(t){
return e.enter("resource"),
e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r}
;function r(t){return wx(t)?s_(e,o)(t):o(t)}function o(t){
return 41===t?c(t):o_(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)
}function i(t){return wx(t)?s_(e,s)(t):c(t)}function a(e){return n(e)}
function s(t){
return 34===t||39===t||40===t?a_(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)
}function l(t){return wx(t)?s_(e,c)(t):c(t)}function c(r){
return 41===r?(e.enter("resourceMarker"),
e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},y_={
tokenize:function(e,t,n){const r=this;return function(t){
return i_.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)}
;function o(e){
return r.parser.defined.includes(Ux(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)
}function i(e){return n(e)}}},w_={tokenize:function(e,t,n){return function(t){
return e.enter("reference"),
e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r}
;function r(r){
return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),
e.exit("reference"),t):n(r)}}};const x_={name:"labelStartImage",
tokenize:function(e,t,n){const r=this;return function(t){
return e.enter("labelImage"),
e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o}
;function o(t){
return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),
e.exit("labelImage"),i):n(t)}function i(e){
return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},
resolveAll:b_.resolveAll};const k_={name:"labelStartLink",
tokenize:function(e,t,n){const r=this;return function(t){
return e.enter("labelLink"),
e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o}
;function o(e){
return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},
resolveAll:b_.resolveAll};const S_={name:"lineEnding",tokenize:function(e,t){
return function(n){
return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),
FS(e,t,"linePrefix")}}};const __={name:"thematicBreak",tokenize:function(e,t,n){
let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){
return r=e,i(e)}(t)};function i(i){
return i===r?(e.enter("thematicBreakSequence"),
a(i)):o>=3&&(null===i||yx(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){
return t===r?(e.consume(t),
o++,a):(e.exit("thematicBreakSequence"),xx(t)?FS(e,i,"whitespace")(t):i(t))}}}
;const E_={name:"list",tokenize:function(e,t,n){
const r=this,o=r.events[r.events.length-1]
;let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0
;return function(t){
const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered")
;if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:vx(t)){
if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0
})),"listUnordered"===o)return e.enter("listItemPrefix"),
42===t||45===t?e.check(__,n,l)(t):l(t)
;if(!r.interrupt||49===t)return e.enter("listItemPrefix"),
e.enter("listItemValue"),s(t)}return n(t)};function s(t){
return vx(t)&&++a<10?(e.consume(t),
s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),
l(t)):n(t)}function l(t){
return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),
r.containerState.marker=r.containerState.marker||t,
e.check(qS,r.interrupt?n:c,e.attempt(T_,d,u))}function c(e){
return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){
return xx(t)?(e.enter("listItemPrefixWhitespace"),
e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){
return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,
t(n)}},continuation:{tokenize:function(e,t,n){const r=this
;return r.containerState._closeFlow=void 0,e.check(qS,(function(n){
return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,
FS(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){
if(r.containerState.furtherBlankLines||!xx(n))return r.containerState.furtherBlankLines=void 0,
r.containerState.initialBlankLine=void 0,o(n)
;return r.containerState.furtherBlankLines=void 0,
r.containerState.initialBlankLine=void 0,e.attempt(C_,t,o)(n)}));function o(o){
return r.containerState._closeFlow=!0,
r.interrupt=void 0,FS(e,e.attempt(E_,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)
}}},exit:function(e){e.exit(this.containerState.type)}},T_={
tokenize:function(e,t,n){const r=this;return FS(e,(function(e){
const o=r.events[r.events.length-1]
;return!xx(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)
}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)
},partial:!0},C_={tokenize:function(e,t,n){const r=this
;return FS(e,(function(e){const o=r.events[r.events.length-1]
;return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)
}),"listItemIndent",r.containerState.size+1)},partial:!0};const A_={
name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o
;return function(t){let a,s=r.events.length
;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){
a="paragraph"===r.events[s][1].type;break}
if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),
o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)
};function i(t){
return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),
xx(t)?FS(e,a,"lineSuffix")(t):a(t))}function a(r){
return null===r||yx(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},
resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){
if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)
}else"content"===e[i][1].type&&e.splice(i,1),
o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",
start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)
}
;e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),
e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=a
;return e.push(["exit",a,t]),e}};const P_={tokenize:function(e,t,n){const r=this
;return FS(e,(function(e){const o=r.events[r.events.length-1]
;return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)
}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function D_(e,t,n){const r=this
;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[])
;let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}
if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break
}return function(o){if(!a||!a._balanced)return n(o)
;const s=Ux(r.sliceSerialize({start:a.end,end:r.now()}))
;if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(o)
;return e.enter("gfmFootnoteCallLabelMarker"),
e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function $_(e,t){
let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){
e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker"
;const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),
end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",
start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)}
;o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={
type:"gfmFootnoteCallString",start:Object.assign({},o.end),
end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",
contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)
},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]]
;return e.splice(n,e.length-n+1,...s),e}function R_(e,t,n){
const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0
;return function(t){
return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),
e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){
return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),
e.consume(t),e.exit("gfmFootnoteCallMarker"),
e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}
function l(s){if(a>999||93===s&&!i||null===s||91===s||wx(s))return n(s)
;if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString")
;return o.includes(Ux(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),
e.consume(s),
e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}
return wx(s)||(i=!0),a++,e.consume(s),92===s?c:l}function c(t){
return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function N_(e,t,n){
const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,s=0
;return function(t){
return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),
e.enter("gfmFootnoteDefinitionLabelMarker"),
e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){
return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),
e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),
e.enter("gfmFootnoteDefinitionLabelString"),
e.enter("chunkString").contentType="string",c):n(t)}function c(t){
if(s>999||93===t&&!a||null===t||91===t||wx(t))return n(t);if(93===t){
e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString")
;return i=Ux(r.sliceSerialize(n)),
e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),
e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),
d}return wx(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){
return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){
return 58===t?(e.enter("definitionMarker"),
e.consume(t),e.exit("definitionMarker"),
o.includes(i)||o.push(i),FS(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}
function p(e){return t(e)}}function I_(e,t,n){
return e.check(qS,t,e.attempt(P_,t,n))}function M_(e){
e.exit("gfmFootnoteDefinition")}function L_(e){let t=(e||{}).singleTilde
;const n={tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0
;return function(t){
if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t)
;return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){
const l=LS(o);if(126===i)return a>1?r(i):(e.consume(i),a++,s)
;if(a<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=LS(i)
;return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(i)}},
resolveAll:function(e,t){let n=-1
;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){
let r=n
;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){
e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence"
;const o={type:"strikethrough",start:Object.assign({},e[r][1].start),
end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",
start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)
},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null
;s&&mS(a,a.length,0,BS(s,e.slice(r+1,n),t)),
mS(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),
mS(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1
;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data")
;return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},
attentionMarkers:{null:[126]}}}class B_{constructor(){this.map=[]}add(e,t,n){
!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){
if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}
e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){
return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[]
;for(;t>0;)t-=1,
n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0]
;n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop()
;this.map.length=0}}function Q_(e,t){let n=!1;const r=[];for(;t<e.length;){
const o=e[t];if(n){
if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){
if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1
;r[e]="left"===r[e]?"center":"right"}
}else if("tableDelimiterRow"===o[1].type)break
}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}
function j_(e,t,n){const r=this;let o,i=0,a=0;return function(e){
let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type
;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}
const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?y:s
;if(i===y&&r.parser.lazy[r.now().line])return n(e);return i(e)};function s(t){
return e.enter("tableHead"),e.enter("tableRow"),function(e){
if(124===e)return l(e);return o=!0,a+=1,l(e)}(t)}function l(t){
return null===t?n(t):yx(t)?a>1?(a=0,
r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),
e.consume(t),e.exit("lineEnding"),
d):n(t):xx(t)?FS(e,l,"whitespace")(t):(a+=1,o&&(o=!1,
i+=1),124===t?(e.enter("tableCellDivider"),
e.consume(t),e.exit("tableCellDivider"),o=!0,l):(e.enter("data"),c(t)))}
function c(t){
return null===t||124===t||wx(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}
function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){
return r.interrupt=!1,
r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),
o=!1,xx(t)?FS(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))
}function p(t){
return 45===t||58===t?f(t):124===t?(o=!0,e.enter("tableCellDivider"),
e.consume(t),e.exit("tableCellDivider"),h):O(t)}function h(t){
return xx(t)?FS(e,f,"whitespace")(t):f(t)}function f(t){
return 58===t?(a+=1,o=!0,
e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),
m):45===t?(a+=1,m(t)):null===t||yx(t)?b(t):O(t)}function m(t){
return 45===t?(e.enter("tableDelimiterFiller"),g(t)):O(t)}function g(t){
return 45===t?(e.consume(t),
g):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),
e.consume(t),
e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(t))}
function v(t){return xx(t)?FS(e,b,"whitespace")(t):b(t)}function b(n){
return 124===n?p(n):(null===n||yx(n))&&o&&i===a?(e.exit("tableDelimiterRow"),
e.exit("tableHead"),t(n)):O(n)}function O(e){return n(e)}function y(t){
return e.enter("tableRow"),w(t)}function w(n){
return 124===n?(e.enter("tableCellDivider"),
e.consume(n),e.exit("tableCellDivider"),
w):null===n||yx(n)?(e.exit("tableRow"),t(n)):xx(n)?FS(e,w,"whitespace")(n):(e.enter("data"),
x(n))}function x(t){
return null===t||124===t||wx(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?k:x)}
function k(t){return 92===t||124===t?(e.consume(t),x):x(t)}}function U_(e,t){
let n,r,o,i=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new B_
;for(;++i<e.length;){const h=e[i],f=h[1]
;"enter"===h[0]?"tableHead"===f.type?(u=!1,
0!==d&&(q_(p,t,d,n,r),r=void 0,d=0),n={type:"table",
start:Object.assign({},f.start),end:Object.assign({},f.end)
},p.add(i,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(a=!0,
o=void 0,l=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",
start:Object.assign({},f.start),end:Object.assign({},f.end)
},p.add(i,0,[["enter",r,t]])),
s="tableDelimiterRow"===f.type?2:r?3:1):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],
o=F_(p,t,l,s,void 0,o)),
l=c,c=[l[1],i,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],
o=F_(p,t,l,s,void 0,o),
l=[0,0,0,0]),c[2]=i)):"tableHead"===f.type?(u=!0,d=i):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=i,
0!==l[1]?(c[0]=c[1],
o=F_(p,t,l,s,i,o)):0!==c[1]&&(o=F_(p,t,c,s,i,o)),s=0):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=i)
}for(0!==d&&q_(p,t,d,n,r),p.consume(t.events),i=-1;++i<t.events.length;){
const e=t.events[i]
;"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Q_(t.events,i))}return e}
function F_(e,t,n,r,o,i){
const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData"
;0!==n[0]&&(i.end=Object.assign({},z_(t.events,n[0])),
e.add(n[0],0,[["exit",i,t]]));const s=z_(t.events,n[1]);if(i={type:a,
start:Object.assign({},s),end:Object.assign({},s)
},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){
const o=z_(t.events,n[2]),i=z_(t.events,n[3]),a={type:"tableContent",
start:Object.assign({},o),end:Object.assign({},i)}
;if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]]
;if(r[1].end=Object.assign({},o[1].end),
r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){
const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}
return void 0!==o&&(i.end=Object.assign({},z_(t.events,o)),
e.add(o,0,[["exit",i,t]]),i=void 0),i}function q_(e,t,n,r,o){
const i=[],a=z_(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),
r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function z_(e,t){
const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const H_={
tokenize:function(e,t,n){const r=this;return function(t){
if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t)
;return e.enter("taskListCheck"),
e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o}
;function o(t){
return wx(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),
e.exit("taskListCheckValueUnchecked"),
i):88===t||120===t?(e.enter("taskListCheckValueChecked"),
e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){
return 93===t?(e.enter("taskListCheckMarker"),
e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}
function a(r){return yx(r)?t(r):xx(r)?e.check({tokenize:Z_},t,n)(r):n(r)}}}
;function Z_(e,t,n){return FS(e,(function(e){return null===e?n(e):t(e)
}),"whitespace")}const V_={};function W_(e){
const t=e||V_,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[])
;r.push(function(e){return bS([{text:AS},{document:{91:{tokenize:N_,
continuation:{tokenize:I_},exit:M_}},text:{91:{tokenize:R_},93:{add:"after",
tokenize:D_,resolveTo:$_}}},L_(e),{flow:{null:{tokenize:j_,resolveAll:U_}}},{
text:{91:H_}}])}(t)),o.push([{transforms:[Lx],enter:{literalAutolink:Dx,
literalAutolinkEmail:$x,literalAutolinkHttp:$x,literalAutolinkWww:$x},exit:{
literalAutolink:Mx,literalAutolinkEmail:Ix,literalAutolinkHttp:Rx,
literalAutolinkWww:Nx}},{enter:{gfmFootnoteDefinition:Fx,
gfmFootnoteDefinitionLabelString:qx,gfmFootnoteCall:Zx,gfmFootnoteCallString:Vx
},exit:{gfmFootnoteDefinition:Hx,gfmFootnoteDefinitionLabelString:zx,
gfmFootnoteCall:Xx,gfmFootnoteCallString:Wx}},{canContainEols:["delete"],enter:{
strikethrough:ek},exit:{strikethrough:tk}},{enter:{table:oS,tableData:lS,
tableHeader:lS,tableRow:aS},exit:{codeText:cS,table:iS,tableData:sS,
tableHeader:sS,tableRow:sS}},{exit:{taskListCheckValueChecked:pS,
taskListCheckValueUnchecked:pS,paragraph:hS}}]),i.push(function(e){return{
extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",
inConstruct:Ax,notInConstruct:Px},{character:".",before:"[Ww]",
after:"[\\-.\\w]",inConstruct:Ax,notInConstruct:Px},{character:":",
before:"[ps]",after:"\\/",inConstruct:Ax,notInConstruct:Px}]},{unsafe:[{
character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{
footnoteDefinition:Gx,footnoteReference:Yx}},{unsafe:[{character:"~",
inConstruct:"phrasing",notInConstruct:Jx}],handlers:{delete:nk}},dS(e),{
unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:fS}}]}}(t))
}const X_={tokenize:function(e){
const t=e.attempt(this.parser.constructs.contentInitial,(function(n){
if(null===n)return void e.consume(n)
;return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),
FS(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n
;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",
previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){
return null===t?(e.exit("chunkText"),
e.exit("paragraph"),void e.consume(t)):yx(t)?(e.consume(t),
e.exit("chunkText"),r):(e.consume(t),o)}}};const Y_={tokenize:function(e){
const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(a<n.length){
const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,c)(r)}
return c(r)}function l(e){if(a++,t.containerState._closeFlow){
t.containerState._closeFlow=void 0,r&&b();const n=t.events.length;let o,i=n
;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){
o=t.events[i][1].end;break}v(a);let s=n
;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},o),s++
;return mS(t.events,i+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}
function c(o){if(a===n.length){if(!r)return p(o)
;if(r.currentConstruct&&r.currentConstruct.concrete)return f(o)
;t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}
return t.containerState={},e.check(G_,u,d)(o)}function u(e){
return r&&b(),v(a),p(e)}function d(e){
return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,f(e)}
function p(n){return t.containerState={},e.attempt(G_,h,f)(n)}function h(e){
return a++,n.push([t.currentConstruct,t.containerState]),p(e)}function f(n){
return null===n?(r&&b(),
v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{
contentType:"flow",previous:o,_tokenizer:r}),m(n))}function m(n){
return null===n?(g(e.exit("chunkFlow"),!0),
v(0),void e.consume(n)):yx(n)?(e.consume(n),
g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),m)}
function g(e,n){const s=t.sliceStream(e)
;if(n&&s.push(null),e.previous=o,o&&(o.next=e),
o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){
let e=r.events.length
;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return
;const n=t.events.length;let o,s,l=n
;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){
s=t.events[l][1].end;break}o=!0}
for(v(a),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++
;mS(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function v(r){
let o=n.length;for(;o-- >r;){const r=n[o]
;t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){
r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},G_={
tokenize:function(e,t,n){
return FS(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)
}};const K_={tokenize:function(e){const t=this,n=e.attempt(qS,(function(r){
if(null===r)return void e.consume(r)
;return e.enter("lineEndingBlank"),e.consume(r),
e.exit("lineEndingBlank"),t.currentConstruct=void 0,n
}),e.attempt(this.parser.constructs.flowInitial,r,FS(e,e.attempt(this.parser.constructs.flow,r,e.attempt(n_,r)),"linePrefix")))
;return n;function r(r){
if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),
t.currentConstruct=void 0,n;e.consume(r)}}};const J_={resolveAll:rE()
},eE=nE("string"),tE=nE("text");function nE(e){return{tokenize:function(t){
const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i
;function i(e){return l(e)?o(e):a(e)}function a(e){
if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){
return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){
if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o]
;if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},
resolveAll:rE("text"===e?oE:void 0)}}function rE(e){return function(t,n){
let r,o=-1
;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,
t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function oE(e,t){let n=0
;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){
const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,s=-1,l=0;for(;a--;){
const e=o[a];if("string"==typeof e){
for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1
}else if(-2===e)i=!0,l++;else if(-1!==e){a++;break}}if(l){const o={
type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{
line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,
_index:r.start._index+a,_bufferIndex:a?s:r.start._bufferIndex+s},
end:Object.assign({},r.end)}
;r.end=Object.assign({},o.start),r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),
n+=2)}n++}return e}function iE(e,t,n){
let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,
_bufferIndex:-1});const o={},i=[];let a=[],s=[];const l={consume:function(e){
yx(e)?(r.line++,
r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++)
;r._bufferIndex<0?r._index++:(r._bufferIndex++,
r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++))
;c.previous=e},enter:function(e,t){const n=t||{}
;return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},
exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t
},attempt:g((function(e,t){v(e,t.from)})),check:g(m),interrupt:g(m,{interrupt:!0
})},c={previous:null,code:null,containerState:{},events:[],parser:e,
sliceStream:d,sliceSerialize:function(e,t){return function(e,t){let n=-1
;const r=[];let o;for(;++n<e.length;){const i=e[n];let a
;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n"
;break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue
;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}
return r.join("")}(d(e),t)},now:p,defineSkip:function(e){o[e.line]=e.column,b()
},write:function(e){if(a=gS(a,e),h(),null!==a[a.length-1])return[]
;return v(t,0),c.events=BS(i,c.events,c),c.events}};let u=t.tokenize.call(c,l)
;return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){
const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex
;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0]
;"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}
return a}(a,e)}function p(){
const{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e,
column:t,offset:n,_index:o,_bufferIndex:i}}function h(){let e
;for(;r._index<a.length;){const t=a[r._index]
;if("string"==typeof t)for(e=r._index,
r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)f(t.charCodeAt(r._bufferIndex));else f(t)
}}function f(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){
return function(n,o,i){let a,u,d,h
;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){return t
;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null
;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}
}(n);function f(e){return a=e,u=0,0===e.length?i:m(e[u])}function m(e){
return function(n){h=function(){
const e=p(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(s)
;return{restore:a,from:o};function a(){
r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,s=i,b()}
}(),d=e,e.partial||(c.currentConstruct=e)
;if(e.name&&c.parser.constructs.disable.null.includes(e.name))return v()
;return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,v)(n)}}
function g(t){return e(d,h),o}function v(e){
return h.restore(),++u<a.length?m(a[u]):i}}}function v(e,t){
e.resolveAll&&!i.includes(e)&&i.push(e),
e.resolve&&mS(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),
e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function b(){
r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const aE={
42:E_,43:E_,45:E_,48:E_,49:E_,50:E_,51:E_,52:E_,53:E_,54:E_,55:E_,56:E_,57:E_,
62:zS},sE={91:l_},lE={[-2]:XS,[-1]:XS,32:XS},cE={35:d_,42:__,45:[A_,__],60:f_,
61:A_,95:__,96:WS,126:WS},uE={38:ZS,92:HS},dE={[-5]:S_,[-4]:S_,[-3]:S_,33:x_,
38:ZS,42:QS,60:[US,v_],91:k_,92:[u_,HS],93:b_,95:QS,96:GS},pE={null:[QS,J_]
},hE=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{
null:[42,95]},contentInitial:sE,disable:{null:[]},document:aE,flow:cE,
flowInitial:lE,insideSpan:pE,string:uE,text:dE},Symbol.toStringTag,{
value:"Module"}));const fE=/[\0\t\n\r]/g;function mE(e){
return e&&"object"==typeof e?"position"in e||"type"in e?vE(e.position):"start"in e||"end"in e?vE(e):"line"in e||"column"in e?gE(e):"":""
}function gE(e){return bE(e&&e.line)+":"+bE(e&&e.column)}function vE(e){
return gE(e&&e.start)+"-"+gE(e&&e.end)}function bE(e){
return e&&"number"==typeof e?e:1}const OE={}.hasOwnProperty;function yE(e,t,n){
return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],
canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{
autolink:i(te),autolinkProtocol:_,autolinkEmail:_,atxHeading:i(G),
blockQuote:i(Z),characterEscape:_,characterReference:_,codeFenced:i(V),
codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(V,a),codeText:i(W,a),
codeTextData:_,data:_,codeFlowValue:_,definition:i(X),
definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,
emphasis:i(Y),hardBreakEscape:i(K),hardBreakTrailing:i(K),htmlFlow:i(J,a),
htmlFlowData:_,htmlText:i(J,a),htmlTextData:_,image:i(ee),label:a,link:i(te),
listItem:i(re),listItemValue:p,listOrdered:i(ne,d),listUnordered:i(ne),
paragraph:i(oe),reference:Q,referenceString:a,resourceDestinationString:a,
resourceTitleString:a,setextHeading:i(G),strong:i(ie),thematicBreak:i(se)},
exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:H,
autolinkProtocol:z,blockQuote:l(),characterEscapeValue:E,
characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,
characterReferenceValue:F,characterReference:q,codeFenced:l(g),
codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:f,codeFlowValue:E,
codeIndented:l(v),codeText:l(D),codeTextData:E,data:E,definition:l(),
definitionDestinationString:y,definitionLabelString:b,definitionTitleString:O,
emphasis:l(),hardBreakEscape:l(C),hardBreakTrailing:l(C),htmlFlow:l(A),
htmlFlowData:E,htmlText:l(P),htmlTextData:E,image:l(R),label:I,labelText:N,
lineEnding:T,link:l($),listItem:l(),listOrdered:l(),listUnordered:l(),
paragraph:l(),referenceString:j,resourceDestinationString:M,
resourceTitleString:L,resource:B,setextHeading:l(S),setextHeadingLineSequence:k,
setextHeadingText:x,strong:l(),thematicBreak:l()}}
;xE(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={
type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:s,
exit:c,buffer:a,resume:u,data:n},l=[];let d=-1
;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{
d=o(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]]
;OE.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({
sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){
const e=i.tokenStack[i.tokenStack.length-1];(e[1]||SE).call(i,void 0,e[0])}
for(r.position={start:wE(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),
end:wE(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})
},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}
function o(e,t,n){let r,o,i,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s]
;switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":
"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":
"enter"===t[0]&&(!r||a||l||i||(i=s),a=void 0);break;case"linePrefix":
case"listItemValue":case"listItemMarker":case"listItemPrefix":
case"listItemPrefixWhitespace":break;default:a=void 0}
if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){
if(r){let a=s;for(o=void 0;a--;){const t=e[a]
;if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){
if("exit"===t[0])continue
;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a
}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break
}
i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",r,t[2]]),
s++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,
start:Object.assign({},t[1].start),end:void 0}
;r=o,e.splice(s,0,["enter",o,t[2]]),s++,n++,i=void 0,a=!0}}}
return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){
s.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({
type:"fragment",children:[]})}function s(e,t,n){
this.stack[this.stack.length-1].children.push(e),
this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:wE(t.start),
end:void 0}}function l(e){return t;function t(t){
e&&e.call(this,t),c.call(this,t)}}function c(e,t){
const n=this.stack.pop(),r=this.tokenStack.pop()
;if(!r)throw new Error("Cannot close `"+e.type+"` ("+mE({start:e.start,end:e.end
})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{
(r[1]||SE).call(this,e,r[0])}n.position.end=wE(e.end)}function u(){
return bk(this.stack.pop())}function d(){
this.data.expectingFirstListItemValue=!0}function p(e){
if(this.data.expectingFirstListItemValue){
this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),
this.data.expectingFirstListItemValue=void 0}}function h(){const e=this.resume()
;this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume()
;this.stack[this.stack.length-1].meta=e}function m(){
this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}
function g(){const e=this.resume()
;this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),
this.data.flowCodeInside=void 0}function v(){const e=this.resume()
;this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}
function b(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,
n.identifier=Ux(this.sliceSerialize(e)).toLowerCase()}function O(){
const e=this.resume();this.stack[this.stack.length-1].title=e}function y(){
const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){
const t=this.stack[this.stack.length-1];if(!t.depth){
const n=this.sliceSerialize(e).length;t.depth=n}}function x(){
this.data.setextHeadingSlurpLineEnding=!0}function k(e){
this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2
}function S(){this.data.setextHeadingSlurpLineEnding=void 0}function _(e){
const t=this.stack[this.stack.length-1].children;let n=t[t.length-1]
;n&&"text"===n.type||(n=ae(),n.position={start:wE(e.start),end:void 0
},t.push(n)),this.stack.push(n)}function E(e){const t=this.stack.pop()
;t.value+=this.sliceSerialize(e),t.position.end=wE(e.end)}function T(e){
const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){
return n.children[n.children.length-1].position.end=wE(e.end),
void(this.data.atHardBreak=void 0)}
!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(_.call(this,e),
E.call(this,e))}function C(){this.data.atHardBreak=!0}function A(){
const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){
const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){
const e=this.resume();this.stack[this.stack.length-1].value=e}function $(){
const e=this.stack[this.stack.length-1];if(this.data.inReference){
const t=this.data.referenceType||"shortcut"
;e.type+="Reference",e.referenceType=t,delete e.url,delete e.title
}else delete e.identifier,delete e.label;this.data.referenceType=void 0}
function R(){const e=this.stack[this.stack.length-1];if(this.data.inReference){
const t=this.data.referenceType||"shortcut"
;e.type+="Reference",e.referenceType=t,delete e.url,delete e.title
}else delete e.identifier,delete e.label;this.data.referenceType=void 0}
function N(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2]
;n.label=Uk(t),n.identifier=Ux(t).toLowerCase()}function I(){
const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1]
;if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t
}else n.alt=t}function M(){const e=this.resume()
;this.stack[this.stack.length-1].url=e}function L(){const e=this.resume()
;this.stack[this.stack.length-1].title=e}function B(){
this.data.inReference=void 0}function Q(){this.data.referenceType="collapsed"}
function j(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,
n.identifier=Ux(this.sliceSerialize(e)).toLowerCase(),
this.data.referenceType="full"}function U(e){
this.data.characterReferenceType=e.type}function F(e){
const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r
;if(n)r=Qk(t,"characterReferenceMarkerNumeric"===n?10:16),
this.data.characterReferenceType=void 0;else{r=Bk(t)}
this.stack[this.stack.length-1].value+=r}function q(e){
this.stack.pop().position.end=wE(e.end)}function z(e){E.call(this,e)
;this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function H(e){
E.call(this,e)
;this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}
function Z(){return{type:"blockquote",children:[]}}function V(){return{
type:"code",lang:null,meta:null,value:""}}function W(){return{type:"inlineCode",
value:""}}function X(){return{type:"definition",identifier:"",label:null,
title:null,url:""}}function Y(){return{type:"emphasis",children:[]}}
function G(){return{type:"heading",depth:0,children:[]}}function K(){return{
type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{
type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",
title:null,url:"",children:[]}}function ne(e){return{type:"list",
ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}
function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}
}function oe(){return{type:"paragraph",children:[]}}function ie(){return{
type:"strong",children:[]}}function ae(){return{type:"text",value:""}}
function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!e_(e););
return e}(function(e){const t={defined:[],lazy:{},
constructs:bS([hE,...(e||{}).extensions||[]]),content:n(X_),document:n(Y_),
flow:n(K_),string:n(eE),text:n(tE)};return t;function n(e){return function(n){
return iE(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0
;return function(o,i,a){const s=[];let l,c,u,d,p
;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),
u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){
if(fE.lastIndex=u,
l=fE.exec(o),d=l&&void 0!==l.index?l.index:o.length,p=o.charCodeAt(d),!l){
n=o.slice(u);break}
if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),
e=void 0),u<d&&(s.push(o.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break
;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:
s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}
return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}
function wE(e){return{line:e.line,column:e.column,offset:e.offset}}
function xE(e,t){let n=-1;for(;++n<t.length;){const r=t[n]
;Array.isArray(r)?xE(e,r):kE(e,r)}}function kE(e,t){let n
;for(n in t)if(OE.call(t,n))switch(n){case"canContainEols":{const r=t[n]
;r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r)
;break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}
function SE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+mE({
start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+mE({
start:t.start,end:t.end
})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+mE({
start:t.start,end:t.end})+") is still open")}function _E(e){const t=this
;t.parser=function(n){return yE(n,{...t.data("settings"),...e,
extensions:t.data("micromarkExtensions")||[],
mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function EE(e,t){
const n=t.referenceType;let r="]"
;if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),
"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}]
;const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({
type:"text",value:"["});const a=o[o.length-1]
;return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}
function TE(e){const t=e.spread;return null==t?e.children.length>1:t}
const CE=9,AE=32;function PE(e){const t=String(e),n=/\r?\n|\r/g
;let r=n.exec(t),o=0;const i=[]
;for(;r;)i.push(DE(t.slice(o,r.index),o>0,!0),r[0]),
o=r.index+r[0].length,r=n.exec(t)
;return i.push(DE(t.slice(o),o>0,!1)),i.join("")}function DE(e,t,n){
let r=0,o=e.length;if(t){let t=e.codePointAt(r)
;for(;t===CE||t===AE;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1)
;for(;t===CE||t===AE;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}
const $E={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",
properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)
},break:function(e,t){const n={type:"element",tagName:"br",properties:{},
children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},
code:function(e,t){const n=t.value?t.value+"\n":"",r={}
;t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",
tagName:"code",properties:r,children:[{type:"text",value:n}]}
;return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={
type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},
delete:function(e,t){const n={type:"element",tagName:"del",properties:{},
children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){
const n={type:"element",tagName:"em",properties:{},children:e.all(t)}
;return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){
const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=MS(r.toLowerCase()),i=e.footnoteOrder.indexOf(r)
;let a,s=e.footnoteCounts.get(r)
;void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,
s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{
href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,
ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]}
;e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]}
;return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={
type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)}
;return e.patch(t,n),e.applyData(t,n)},html:function(e,t){
if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value}
;return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){
const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n)
;if(!r)return EE(e,t);const o={src:MS(r.url||""),alt:t.alt}
;null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",
tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},
image:function(e,t){const n={src:MS(t.url)}
;null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),
null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",
tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},
inlineCode:function(e,t){const n={type:"text",
value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",
tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)
},linkReference:function(e,t){
const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n)
;if(!r)return EE(e,t);const o={href:MS(r.url||"")}
;null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",
tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)
},link:function(e,t){const n={href:MS(t.url)}
;null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",
tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)
},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1
;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1
;for(;!t&&++r<n.length;)t=TE(n[r])}return t}(n):TE(t),i={},a=[]
;if("boolean"==typeof t.checked){const e=r[0];let n
;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",
properties:{},children:[]
},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "
}),n.children.unshift({type:"element",tagName:"input",properties:{
type:"checkbox",checked:t.checked,disabled:!0},children:[]
}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s]
;(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"
}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}
const l=r[r.length-1];l&&(o||"element"!==l.type||"p"!==l.tagName)&&a.push({
type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,
children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){
const n={},r=e.all(t);let o=-1
;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){
const e=r[o]
;if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){
n.className=["contains-task-list"];break}}const i={type:"element",
tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)}
;return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={
type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),
e.applyData(t,n)},root:function(e,t){const n={type:"root",
children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},
strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},
children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){
const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",
properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}
if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},
children:e.wrap(n,!0)},i=Xy(t.children[1]),a=Wy(t.children[t.children.length-1])
;i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",
tagName:"table",properties:{},children:e.wrap(o,!0)}
;return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={
type:"element",tagName:"td",properties:{},children:e.all(t)}
;return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){
const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length
;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=i?i[s]:void 0
;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]}
;n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={
type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)}
;return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",
value:PE(String(t.value))};return e.patch(t,n),e.applyData(t,n)},
thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},
children:[]};return e.patch(t,n),e.applyData(t,n)},toml:RE,yaml:RE,
definition:RE,footnoteDefinition:RE};function RE(){}function NE(e,t){const n=[{
type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",
properties:{},children:[{type:"text",value:String(t)}]}),n}function IE(e,t){
return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const ME={}.hasOwnProperty,LE={}
;function BE(e,t){e.position&&(t.position=Gy(e))}function QE(e,t){let n=t
;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties
;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",
tagName:t,properties:{},children:"children"in n?n.children:[n]}}
"element"===n.type&&o&&Object.assign(n.properties,jm(o)),
"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function jE(e,t){
const n=t.data||{},r=!("value"in t)||ME.call(n,"hProperties")||ME.call(n,"hChildren")?{
type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",
value:t.value};return e.patch(t,r),e.applyData(t,r)}function UE(e,t){const n=[]
;let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({
type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",
value:"\n"}),n}function FE(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,
n=e.charCodeAt(t);return e.slice(t)}function qE(e,t){const n=function(e,t){
const n=t||LE,r=new Map,o=new Map,i=new Map,a={...$E,...n.handlers},s={
all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1
;for(;++r<n.length;){const o=s.one(n[r],e);if(o){
if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=FE(o.value)),
!Array.isArray(o)&&"element"===o.type)){const e=o.children[0]
;e&&"text"===e.type&&(e.value=FE(e.value))}
Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:QE,
definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,
one:function(e,t){const n=e.type,r=s.handlers[n]
;if(ME.call(s.handlers,n)&&r)return r(s,e,t)
;if(s.options.passThrough&&s.options.passThrough.includes(n)){
if("children"in e){const{children:t,...n}=e,r=jm(n);return r.children=s.all(e),r
}return jm(e)}return(s.options.unknownHandler||jE)(s,e,t)},options:n,patch:BE,
wrap:UE};return og(e,(function(e){
if("definition"===e.type||"footnoteDefinition"===e.type){
const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase()
;t.has(n)||t.set(n,e)}})),s}(e,t),r=n.one(e,void 0),o=function(e){
const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||NE,r=e.options.footnoteBackLabel||IE,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{
className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){
const o=e.footnoteById.get(e.footnoteOrder[l]);if(!o)continue
;const i=e.all(o),a=String(o.identifier).toUpperCase(),c=MS(a.toLowerCase())
;let u=0;const d=[],p=e.footnoteCounts.get(a);for(;void 0!==p&&++u<=p;){
d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u)
;"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",
tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),
dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),
className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}
const h=i[i.length-1];if(h&&"element"===h.type&&"p"===h.tagName){
const e=h.children[h.children.length-1]
;e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "
}),h.children.push(...d)}else i.push(...d);const f={type:"element",tagName:"li",
properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(o,f),s.push(f)}
if(0!==s.length)return{type:"element",tagName:"section",properties:{
dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,
properties:{...jm(a),id:"footnote-label"},children:[{type:"text",value:o}]},{
type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},
children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{
type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({
type:"text",value:"\n"},o),i}function zE(e,t){
return e&&"run"in e?async function(n,r){const o=qE(n,{file:r,...t})
;await e.run(o,r)}:function(n,r){return qE(n,{file:r,...t||e})}}function HE(e){
const t=this;t.compiler=function(n){return Gk(n,{...t.data("settings"),...e,
extensions:t.data("toMarkdownExtensions")||[]})}}function ZE(e){if(e)throw e}
var VE=Object.prototype.hasOwnProperty,WE=Object.prototype.toString,XE=Object.defineProperty,YE=Object.getOwnPropertyDescriptor,GE=function(e){
return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===WE.call(e)
},KE=function(e){if(!e||"[object Object]"!==WE.call(e))return!1
;var t,n=VE.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&VE.call(e.constructor.prototype,"isPrototypeOf")
;if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||VE.call(e,t)
},JE=function(e,t){XE&&"__proto__"===t.name?XE(e,t.name,{enumerable:!0,
configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue
},eT=function(e,t){if("__proto__"===t){if(!VE.call(e,t))return
;if(YE)return YE(e,t).value}return e[t]},tT=function e(){
var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1
;for("boolean"==typeof s&&(u=s,
s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=eT(s,n),
s!==(o=eT(t,n))&&(u&&o&&(KE(o)||(i=GE(o)))?(i?(i=!1,
a=r&&GE(r)?r:[]):a=r&&KE(r)?r:{},JE(s,{name:n,newValue:e(u,a,o)
})):void 0!==o&&JE(s,{name:n,newValue:o}));return s};const nT=Jf(tT)
;function rT(e){if("object"!=typeof e||null===e)return!1
;const t=Object.getPrototypeOf(e)
;return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)
}function oT(){const e=[],t={run:function(...t){let n=-1;const r=t.pop()
;if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r)
;!function o(i,...a){const s=e[++n];let l=-1;if(i)r(i);else{
for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,s?function(e,t){
let n;return r;function r(...t){const r=e.length>t.length;let s;r&&t.push(o)
;try{s=e.apply(this,t)}catch(i){if(r&&n)throw i;return o(i)}
r||(s&&s.then&&"function"==typeof s.then?s.then(a,o):s instanceof Error?o(s):a(s))
}function o(e,...r){n||(n=!0,t(e,...r))}function a(e){o(null,e)}
}(s,o)(...a):r(null,...a)}}(null,...t)},use:function(n){
if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n)
;return e.push(n),t}};return t}class iT extends Error{constructor(e,t,n){
super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1
;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t
}:"type"in t?{ancestors:[t],place:t.position}:{...t
}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,
r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){
const e=n.indexOf(":")
;-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}
if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1]
;e&&(o.place=e.position)}
const a=o.place&&"start"in o.place?o.place.start:o.place
;this.ancestors=o.ancestors||void 0,
this.cause=o.cause||void 0,this.column=a?a.column:void 0,
this.fatal=void 0,this.file,
this.message=r,this.line=a?a.line:void 0,this.name=mE(o.place)||"1:1",
this.place=o.place||void 0,
this.reason=this.message,this.ruleId=o.ruleId||void 0,
this.source=o.source||void 0,
this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",
this.actual,this.expected,this.note,this.url}}
iT.prototype.file="",iT.prototype.name="",
iT.prototype.reason="",iT.prototype.message="",
iT.prototype.stack="",iT.prototype.column=void 0,
iT.prototype.line=void 0,iT.prototype.ancestors=void 0,
iT.prototype.cause=void 0,
iT.prototype.fatal=void 0,iT.prototype.place=void 0,iT.prototype.ruleId=void 0,
iT.prototype.source=void 0;const aT={basename:function(e,t){
if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string')
;sT(e);let n,r=0,o=-1,i=e.length
;if(void 0===t||0===t.length||t.length>e.length){
for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1)
;return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1
;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}
}else a<0&&(n=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,
o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){
if(sT(e),0===e.length)return".";let t,n=-1,r=e.length
;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0)
;return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)
},extname:function(e){sT(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){
const s=e.codePointAt(n)
;if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){
o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return""
;return e.slice(i,r)},join:function(...e){let t,n=-1
;for(;++n<e.length;)sT(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n])
;return void 0===t?".":function(e){sT(e);const t=47===e.codePointAt(0)
;let n=function(e,t){let n,r,o="",i=0,a=-1,s=0,l=-1;for(;++l<=e.length;){
if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){
if(a===l-1||1===s);else if(a!==l-1&&2===s){
if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){
if(r=o.lastIndexOf("/"),r!==o.length-1){
r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue
}}else if(o.length>0){o="",i=0,a=l,s=0;continue}
t&&(o=o.length>0?o+"/..":"..",i=2)
}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0
}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".")
;n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},
sep:"/"};function sT(e){
if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))
}const lT={cwd:function(){return"/"}};function cT(e){
return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)
}function uT(e){if("string"==typeof e)e=new URL(e);else if(!cT(e)){
const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`")
;throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){
const e=new TypeError("The URL must be of scheme file")
;throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){
const e=new TypeError('File URL host must be "localhost" or empty on darwin')
;throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1
;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){
const e=t.codePointAt(n+2);if(70===e||102===e){
const e=new TypeError("File URL path must not include encoded / characters")
;throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}
const dT=["history","path","basename","stem","extname","dirname"];class pT{
constructor(e){let t;t=e?cT(e)?{path:e}:"string"==typeof e||function(e){
return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{
value:e
}:e:{},this.cwd=lT.cwd(),this.data={},this.history=[],this.messages=[],this.value,
this.map,this.result,this.stored;let n,r=-1;for(;++r<dT.length;){const e=dT[r]
;e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}
for(n in t)dT.includes(n)||(this[n]=t[n])}get basename(){
return"string"==typeof this.path?aT.basename(this.path):void 0}set basename(e){
fT(e,"basename"),hT(e,"basename"),this.path=aT.join(this.dirname||"",e)}
get dirname(){return"string"==typeof this.path?aT.dirname(this.path):void 0}
set dirname(e){
mT(this.basename,"dirname"),this.path=aT.join(e||"",this.basename)}
get extname(){return"string"==typeof this.path?aT.extname(this.path):void 0}
set extname(e){if(hT(e,"extname"),mT(this.dirname,"extname"),e){
if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`")
;if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}
this.path=aT.join(this.dirname,this.stem+(e||""))}get path(){
return this.history[this.history.length-1]}set path(e){
cT(e)&&(e=uT(e)),fT(e,"path"),this.path!==e&&this.history.push(e)}get stem(){
return"string"==typeof this.path?aT.basename(this.path,this.extname):void 0}
set stem(e){
fT(e,"stem"),hT(e,"stem"),this.path=aT.join(this.dirname||"",e+(this.extname||""))
}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){
const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){
const r=new iT(e,t,n)
;return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),
r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return""
;if("string"==typeof this.value)return this.value
;return new TextDecoder(e||void 0).decode(this.value)}}function hT(e,t){
if(e&&e.includes(aT.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+aT.sep+"`")
}function fT(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}
function mT(e,t){
if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}
const gT=function(e){const t=this.constructor.prototype,n=t[e],r=function(){
return n.apply(r,arguments)};Object.setPrototypeOf(r,t)
;const o=Object.getOwnPropertyNames(n);for(const i of o){
const e=Object.getOwnPropertyDescriptor(n,i);e&&Object.defineProperty(r,i,e)}
return r},vT={}.hasOwnProperty;class bT extends gT{constructor(){
super("copy"),this.Compiler=void 0,
this.Parser=void 0,this.attachers=[],this.compiler=void 0,
this.freezeIndex=-1,this.frozen=void 0,
this.namespace={},this.parser=void 0,this.transformers=oT()}copy(){
const e=new bT;let t=-1;for(;++t<this.attachers.length;){
const n=this.attachers[t];e.use(...n)}return e.data(nT(!0,{},this.namespace)),e}
data(e,t){return"string"==typeof e?2===arguments.length?(xT("data",this.frozen),
this.namespace[e]=t,
this):vT.call(this.namespace,e)&&this.namespace[e]||void 0:e?(xT("data",this.frozen),
this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this
;const e=this;for(;++this.freezeIndex<this.attachers.length;){
const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue
;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n)
;"function"==typeof r&&this.transformers.use(r)}
return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){
this.freeze();const t=_T(e),n=this.parser||this.Parser
;return yT("parse",n),n(String(t),t)}process(e,t){const n=this
;return this.freeze(),
yT("process",this.parser||this.Parser),wT("process",this.compiler||this.Compiler),
t?r(void 0,t):new Promise(r);function r(r,o){const i=_T(e),a=n.parse(i)
;function s(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,(function(e,t,r){
if(e||!t||!r)return s(e);const o=t,i=n.stringify(o,r);var a
;"string"==typeof(a=i)||function(e){
return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)
}(a)?r.value=i:r.result=i,s(e,r)}))}}processSync(e){let t,n=!1
;return this.freeze(),
yT("processSync",this.parser||this.Parser),wT("processSync",this.compiler||this.Compiler),
this.process(e,(function(e,r){n=!0,ZE(e),t=r})),ST("processSync","process",n),t}
run(e,t,n){kT(e),this.freeze();const r=this.transformers
;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o)
;function o(o,i){const a=_T(t);r.run(e,a,(function(t,r,a){const s=r||e
;t?i(t):o?o(s):n(void 0,s,a)}))}}runSync(e,t){let n,r=!1
;return this.run(e,t,(function(e,t){ZE(e),n=t,r=!0})),ST("runSync","run",r),n}
stringify(e,t){this.freeze();const n=_T(t),r=this.compiler||this.Compiler
;return wT("stringify",r),kT(e),r(e,n)}use(e,...t){
const n=this.attachers,r=this.namespace
;if(xT("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{
if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`")
;Array.isArray(e)?a(e):i(e)}return this;function o(e){
if("function"==typeof e)s(e,[]);else{
if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`")
;if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else i(e)}}function i(e){
if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither")
;a(e.plugins),e.settings&&(r.settings=nT(!0,r.settings,e.settings))}
function a(e){let t=-1;if(null==e);else{
if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`")
;for(;++t<e.length;){o(e[t])}}}function s(e,t){let r=-1,o=-1
;for(;++r<n.length;)if(n[r][0]===e){o=r;break}
if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const a=n[o][1]
;rT(a)&&rT(r)&&(r=nT(!0,a,r)),n[o]=[e,r,...i]}}}}const OT=(new bT).freeze()
;function yT(e,t){
if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}
function wT(e,t){
if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")
}function xT(e,t){
if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")
}function kT(e){
if(!rT(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")
}function ST(e,t,n){
if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}
function _T(e){return function(e){
return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)
}(e)?e:new pT(e)}const ET=function(e,t,n){const r=Ym(n)
;if(!e||!e.type||!e.children)throw new Error("Expected parent node")
;if("number"==typeof t){
if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")
}else if((t=e.children.indexOf(t))<0)throw new Error("Expected child node or index")
;for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]
},TT=/\n/g,CT=/[\t ]+/g,AT=Fm("br"),PT=Fm((function(e){
return"td"===e.tagName||"th"===e.tagName
})),DT=Fm("p"),$T=Fm("tr"),RT=Fm(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){
return Boolean((e.properties||{}).hidden)},function(e){
return"dialog"===e.tagName&&!(e.properties||{}).open
}]),NT=Fm(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"])
;function IT(e,t){const n="children"in e?e.children:[],r=NT(e),o=QT(e,{
whitespace:{}.whitespace||"normal",breakBefore:!1,breakAfter:!1}),i=[]
;"text"!==e.type&&"comment"!==e.type||i.push(...LT(e,{whitespace:o,
breakBefore:!0,breakAfter:!0}));let a=-1
;for(;++a<n.length;)i.push(...MT(n[a],e,{whitespace:o,breakBefore:a?void 0:r,
breakAfter:a<n.length-1?AT(n[a+1]):r}));const s=[];let l
;for(a=-1;++a<i.length;){const e=i[a]
;"number"==typeof e?void 0!==l&&e>l&&(l=e):e&&(void 0!==l&&l>-1&&s.push("\n".repeat(l)||" "),
l=-1,s.push(e))}return s.join("")}function MT(e,t,n){
return"element"===e.type?function(e,t,n){const r=QT(e,n),o=e.children||[]
;let i,a,s=-1,l=[];if(RT(e))return l;AT(e)||$T(e)&&ET(t,e,$T)?a="\n":DT(e)?(i=2,
a=2):NT(e)&&(i=1,a=1);for(;++s<o.length;)l=l.concat(MT(o[s],e,{whitespace:r,
breakBefore:s?void 0:i,breakAfter:s<o.length-1?AT(o[s+1]):a}))
;PT(e)&&ET(t,e,PT)&&l.push("\t");i&&l.unshift(i);a&&l.push(a);return l
}(e,t,n):"text"===e.type?"normal"===n.whitespace?LT(e,n):function(e){
return[String(e.value)]}(e):[]}function LT(e,t){
const n=String(e.value),r=[],o=[];let i=0;for(;i<=n.length;){TT.lastIndex=i
;const e=TT.exec(n),o=e&&"index"in e?e.index:n.length
;r.push(BT(n.slice(i,o).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==i||t.breakBefore,o!==n.length||t.breakAfter)),
i=o+1}let a,s=-1
;for(;++s<r.length;)8203===r[s].charCodeAt(r[s].length-1)||s<r.length-1&&8203===r[s+1].charCodeAt(0)?(o.push(r[s]),
a=void 0):r[s]?("number"==typeof a&&o.push(a),
o.push(r[s]),a=0):0!==s&&s!==r.length-1||o.push(0);return o}function BT(e,t,n){
const r=[];let o,i=0;for(;i<e.length;){CT.lastIndex=i;const n=CT.exec(e)
;o=n?n.index:e.length,
i||o||!n||t||r.push(""),i!==o&&r.push(e.slice(i,o)),i=n?o+n[0].length:o}
return i===o||n||r.push(""),r.join(" ")}function QT(e,t){if("element"===e.type){
const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":
case"xmp":return"pre";case"nobr":return"nowrap";case"pre":
return n.wrap?"pre-wrap":"pre";case"td":case"th":
return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}
return t.whitespace}
const jT=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],UT=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],FT=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],qT=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],zT=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse()
;var HT="[0-9](_*[0-9])*",ZT=`\\.(${HT})`,VT="[0-9a-fA-F](_*[0-9a-fA-F])*",WT={
className:"number",variants:[{
begin:`(\\b(${HT})((${ZT})|\\.)?|(${ZT}))[eE][+-]?(${HT})[fFdD]?\\b`},{
begin:`\\b(${HT})((${ZT})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{
begin:`(${ZT})[fFdD]?\\b`},{begin:`\\b(${HT})[fFdD]\\b`},{
begin:`\\b0[xX]((${VT})\\.?|(${VT})?\\.(${VT}))[pP][+-]?(${HT})[fFdD]?\\b`},{
begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${VT})[lL]?\\b`},{
begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],
relevance:0};function XT(e,t,n){return-1===n?"":e.replace(t,(r=>XT(e,t,n-1)))}
const YT="[A-Za-z$_][0-9A-Za-z$_]*",GT=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],KT=["true","false","null","undefined","NaN","Infinity"],JT=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],eC=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],tC=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],nC=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],rC=[].concat(tC,JT,eC)
;var oC="[0-9](_*[0-9])*",iC=`\\.(${oC})`,aC="[0-9a-fA-F](_*[0-9a-fA-F])*",sC={
className:"number",variants:[{
begin:`(\\b(${oC})((${iC})|\\.)?|(${iC}))[eE][+-]?(${oC})[fFdD]?\\b`},{
begin:`\\b(${oC})((${iC})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{
begin:`(${iC})[fFdD]?\\b`},{begin:`\\b(${oC})[fFdD]\\b`},{
begin:`\\b0[xX]((${aC})\\.?|(${aC})?\\.(${aC}))[pP][+-]?(${oC})[fFdD]?\\b`},{
begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${aC})[lL]?\\b`},{
begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],
relevance:0}
;const lC=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],cC=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],uC=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],dC=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],pC=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),hC=uC.concat(dC)
;const fC=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],mC=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],gC=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],vC=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],bC=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse()
;function OC(e){return e?"string"==typeof e?e:e.source:null}function yC(e){
return wC("(?=",e,")")}function wC(...e){return e.map((e=>OC(e))).join("")}
function xC(...e){const t=function(e){const t=e[e.length-1]
;return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}
}(e);return"("+(t.capture?"":"?:")+e.map((e=>OC(e))).join("|")+")"}
const kC=e=>wC(/\b/,e,/\w$/.test(e)?/\b/:/\B/),SC=["Protocol","Type"].map(kC),_C=["init","self"].map(kC),EC=["Any","Self"],TC=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],CC=["false","nil","true"],AC=["assignment","associativity","higherThan","left","lowerThan","none","right"],PC=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],DC=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],$C=xC(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),RC=xC($C,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),NC=wC($C,RC,"*"),IC=xC(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),MC=xC(IC,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),LC=wC(IC,MC,"*"),BC=wC(/[A-Z]/,MC,"*"),QC=["attached","autoclosure",wC(/convention\(/,xC("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",wC(/objc\(/,LC,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],jC=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"]
;const UC="[A-Za-z$_][0-9A-Za-z$_]*",FC=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],qC=["true","false","null","undefined","NaN","Infinity"],zC=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],HC=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ZC=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],VC=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],WC=[].concat(ZC,zC,HC)
;function XC(e){
const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r={
className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,
contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]
},i=e.inherit(o,{begin:/\(/,end:/\)/}),a=e.inherit(e.APOS_STRING_MODE,{
className:"string"}),s=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={
endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",
begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{
className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{
begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{
name:"HTML, XML",
aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],
case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,
end:/>/,relevance:10,contains:[o,s,a,i,{begin:/\[/,end:/\]/,contains:[{
className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,i,s,a]}]}]
},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,
relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,
relevance:10,contains:[s]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",
begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{
end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",
begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{
end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{
className:"tag",begin:/<>|<\/>/},{className:"tag",
begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),
end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{
className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{
className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}
function YC(e){return e instanceof Map?e.clear=e.delete=e.set=function(){
throw new Error("map is read-only")
}:e instanceof Set&&(e.add=e.clear=e.delete=function(){
throw new Error("set is read-only")
}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((t=>{
const n=e[t],r=typeof n;"object"!==r&&"function"!==r||Object.isFrozen(n)||YC(n)
})),e}class GC{constructor(e){
void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}
ignoreMatch(){this.isMatchIgnored=!0}}function KC(e){
return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")
}function JC(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r]
;return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}
const eA=e=>!!e.scope;class tA{constructor(e,t){
this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){
this.buffer+=KC(e)}openNode(e){if(!eA(e))return;const t=((e,{prefix:t})=>{
if(e.startsWith("language:"))return e.replace("language:","language-")
;if(e.includes(".")){const n=e.split(".")
;return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")
}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}
closeNode(e){eA(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){
this.buffer+=`<span class="${e}">`}}const nA=(e={})=>{const t={children:[]}
;return Object.assign(t,e),t};class rA{constructor(){
this.rootNode=nA(),this.stack=[this.rootNode]}get top(){
return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){
this.top.children.push(e)}openNode(e){const t=nA({scope:e})
;this.add(t),this.stack.push(t)}closeNode(){
if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){
for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}
walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){
return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),
t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){
"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{
rA._collapse(e)})))}}class oA extends rA{constructor(e){super(),this.options=e}
addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){
this.closeNode()}__addSublanguage(e,t){const n=e.root
;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){
return new tA(this,this.options).value()}finalize(){return this.closeAllNodes(),
!0}}function iA(e){return e?"string"==typeof e?e:e.source:null}function aA(e){
return cA("(?=",e,")")}function sA(e){return cA("(?:",e,")*")}function lA(e){
return cA("(?:",e,")?")}function cA(...e){return e.map((e=>iA(e))).join("")}
function uA(...e){const t=function(e){const t=e[e.length-1]
;return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}
}(e);return"("+(t.capture?"":"?:")+e.map((e=>iA(e))).join("|")+")"}
function dA(e){return new RegExp(e.toString()+"|").exec("").length-1}
const pA=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./
;function hA(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n
;let r=iA(e),o="";for(;r.length>0;){const e=pA.exec(r);if(!e){o+=r;break}
o+=r.substring(0,e.index),
r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?o+="\\"+String(Number(e[1])+t):(o+=e[0],
"("===e[0]&&n++)}return o})).map((e=>`(${e})`)).join(t)}
const fA="[a-zA-Z]\\w*",mA="[a-zA-Z_]\\w*",gA="\\b\\d+(\\.\\d+)?",vA="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",bA="\\b(0b[01]+)",OA={
begin:"\\\\[\\s\\S]",relevance:0},yA={scope:"string",begin:"'",end:"'",
illegal:"\\n",contains:[OA]},wA={scope:"string",begin:'"',end:'"',illegal:"\\n",
contains:[OA]},xA=function(e,t,n={}){const r=JC({scope:"comment",begin:e,end:t,
contains:[]},n);r.contains.push({scope:"doctag",
begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0})
;const o=uA("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/)
;return r.contains.push({begin:cA(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),
r},kA=xA("//","$"),SA=xA("/\\*","\\*/"),_A=xA("#","$"),EA={scope:"number",
begin:gA,relevance:0},TA={scope:"number",begin:vA,relevance:0},CA={
scope:"number",begin:bA,relevance:0},AA={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,
end:/\/[gimuy]*/,contains:[OA,{begin:/\[/,end:/\]/,relevance:0,contains:[OA]}]
},PA={scope:"title",begin:fA,relevance:0},DA={scope:"title",begin:mA,relevance:0
},$A={begin:"\\.\\s*"+mA,relevance:0};var RA=Object.freeze({__proto__:null,
APOS_STRING_MODE:yA,BACKSLASH_ESCAPE:OA,BINARY_NUMBER_MODE:CA,
BINARY_NUMBER_RE:bA,COMMENT:xA,C_BLOCK_COMMENT_MODE:SA,C_LINE_COMMENT_MODE:kA,
C_NUMBER_MODE:TA,C_NUMBER_RE:vA,END_SAME_AS_BEGIN:function(e){
return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},
"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},
HASH_COMMENT_MODE:_A,IDENT_RE:fA,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:$A,
NUMBER_MODE:EA,NUMBER_RE:gA,PHRASAL_WORDS_MODE:{
begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
},QUOTE_STRING_MODE:wA,REGEXP_MODE:AA,
RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",
SHEBANG:(e={})=>{const t=/^#![ ]*\//
;return e.binary&&(e.begin=cA(t,/.*\b/,e.binary,/\b.*/)),JC({scope:"meta",
begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)
},TITLE_MODE:PA,UNDERSCORE_IDENT_RE:mA,UNDERSCORE_TITLE_MODE:DA})
;function NA(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function IA(e,t){
void 0!==e.className&&(e.scope=e.className,delete e.className)}function MA(e,t){
t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",
e.__beforeBegin=NA,
e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,
void 0===e.relevance&&(e.relevance=0))}function LA(e,t){
Array.isArray(e.illegal)&&(e.illegal=uA(...e.illegal))}function BA(e,t){
if(e.match){
if(e.begin||e.end)throw new Error("begin & end are not supported with match")
;e.begin=e.match,delete e.match}}function QA(e,t){
void 0===e.relevance&&(e.relevance=1)}const jA=(e,t)=>{if(!e.beforeMatch)return
;if(e.starts)throw new Error("beforeMatch cannot be used with starts")
;const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]
})),e.keywords=n.keywords,e.begin=cA(n.beforeMatch,aA(n.begin)),e.starts={
relevance:0,contains:[Object.assign(n,{endsParent:!0})]
},e.relevance=0,delete n.beforeMatch
},UA=["of","and","for","in","not","or","if","then","parent","list","value"],FA="keyword"
;function qA(e,t,n=FA){const r=Object.create(null)
;return"string"==typeof e?o(n,e.split(" ")):Array.isArray(e)?o(n,e):Object.keys(e).forEach((function(n){
Object.assign(r,qA(e[n],t,n))})),r;function o(e,n){
t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((function(t){const n=t.split("|")
;r[n[0]]=[e,zA(n[0],n[1])]}))}}function zA(e,t){return t?Number(t):function(e){
return UA.includes(e.toLowerCase())}(e)?0:1}const HA={},ZA=e=>{console.error(e)
},VA=(e,...t)=>{console.log(`WARN: ${e}`,...t)},WA=(e,t)=>{
HA[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),HA[`${e}/${t}`]=!0)
},XA=new Error;function YA(e,t,{key:n}){let r=0;const o=e[n],i={},a={}
;for(let s=1;s<=t.length;s++)a[s+r]=o[s],i[s+r]=!0,r+=dA(t[s-1])
;e[n]=a,e[n]._emit=i,e[n]._multi=!0}function GA(e){!function(e){
e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,
delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={
_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope
}),function(e){if(Array.isArray(e.begin)){
if(e.skip||e.excludeBegin||e.returnBegin)throw ZA("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
XA
;if("object"!=typeof e.beginScope||null===e.beginScope)throw ZA("beginScope must be object"),
XA;YA(e,e.begin,{key:"beginScope"}),e.begin=hA(e.begin,{joinWith:""})}
}(e),function(e){if(Array.isArray(e.end)){
if(e.skip||e.excludeEnd||e.returnEnd)throw ZA("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
XA
;if("object"!=typeof e.endScope||null===e.endScope)throw ZA("endScope must be object"),
XA;YA(e,e.end,{key:"endScope"}),e.end=hA(e.end,{joinWith:""})}}(e)}
function KA(e){function t(t,n){
return new RegExp(iA(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))
}class n{constructor(){
this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}
addRule(e,t){
t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),
this.matchAt+=dA(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null)
;const e=this.regexes.map((e=>e[1]));this.matcherRe=t(hA(e,{joinWith:"|"
}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex
;const t=this.matcherRe.exec(e);if(!t)return null
;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),r=this.matchIndexes[n]
;return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){
this.rules=[],this.multiRegexes=[],
this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){
if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n
;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),
t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){
return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){
this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){
const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex
;let n=t.exec(e)
;if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{
const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}
return n&&(this.regexIndex+=n.position+1,
this.regexIndex===this.count&&this.considerAll()),n}}
if(e.compilerExtensions||(e.compilerExtensions=[]),
e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.")
;return e.classNameAliases=JC(e.classNameAliases||{}),function n(o,i){const a=o
;if(o.isCompiled)return a
;[IA,BA,GA,jA].forEach((e=>e(o,i))),e.compilerExtensions.forEach((e=>e(o,i))),
o.__beforeBegin=null,[MA,LA,QA].forEach((e=>e(o,i))),o.isCompiled=!0;let s=null
;return"object"==typeof o.keywords&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),
s=o.keywords.$pattern,
delete o.keywords.$pattern),s=s||/\w+/,o.keywords&&(o.keywords=qA(o.keywords,e.case_insensitive)),
a.keywordPatternRe=t(s,!0),
i&&(o.begin||(o.begin=/\B|\b/),a.beginRe=t(a.begin),o.end||o.endsWithParent||(o.end=/\B|\b/),
o.end&&(a.endRe=t(a.end)),
a.terminatorEnd=iA(a.end)||"",o.endsWithParent&&i.terminatorEnd&&(a.terminatorEnd+=(o.end?"|":"")+i.terminatorEnd)),
o.illegal&&(a.illegalRe=t(o.illegal)),
o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map((function(e){
return function(e){
e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){
return JC(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants
;if(JA(e))return JC(e,{starts:e.starts?JC(e.starts):null})
;if(Object.isFrozen(e))return JC(e);return e}("self"===e?o:e)
}))),o.contains.forEach((function(e){n(e,a)
})),o.starts&&n(o.starts,i),a.matcher=function(e){const t=new r
;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"
}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"
}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(a),a}(e)}function JA(e){
return!!e&&(e.endsWithParent||JA(e.starts))}class eP extends Error{
constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}
const tP=KC,nP=JC,rP=Symbol("nomatch"),oP=function(e){
const t=Object.create(null),n=Object.create(null),r=[];let o=!0
;const i="Could not find the language '{}', did you forget to load/include a language module?",a={
disableAutodetect:!0,name:"Plain text",contains:[]};let s={
ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,
languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",
cssSelector:"pre code",languages:null,__emitter:oA};function l(e){
return s.noHighlightRe.test(e)}function c(e,t,n){let r="",o=""
;"object"==typeof t?(r=e,
n=t.ignoreIllegals,o=t.language):(WA("10.7.0","highlight(lang, code, ...args) has been deprecated."),
WA("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),
o=e,r=t),void 0===n&&(n=!0);const i={code:r,language:o};b("before:highlight",i)
;const a=i.result?i.result:u(i.language,i.code,n)
;return a.code=i.code,b("after:highlight",a),a}function u(e,n,r,a){
const l=Object.create(null);function c(){if(!_.keywords)return void T.addText(C)
;let e=0;_.keywordPatternRe.lastIndex=0;let t=_.keywordPatternRe.exec(C),n=""
;for(;t;){n+=C.substring(e,t.index)
;const o=x.case_insensitive?t[0].toLowerCase():t[0],i=(r=o,_.keywords[r]);if(i){
const[e,r]=i
;if(T.addText(n),n="",l[o]=(l[o]||0)+1,l[o]<=7&&(A+=r),e.startsWith("_"))n+=t[0];else{
const n=x.classNameAliases[e]||e;h(t[0],n)}}else n+=t[0]
;e=_.keywordPatternRe.lastIndex,t=_.keywordPatternRe.exec(C)}var r
;n+=C.substring(e),T.addText(n)}function p(){null!=_.subLanguage?function(){
if(""===C)return;let e=null;if("string"==typeof _.subLanguage){
if(!t[_.subLanguage])return void T.addText(C)
;e=u(_.subLanguage,C,!0,E[_.subLanguage]),E[_.subLanguage]=e._top
}else e=d(C,_.subLanguage.length?_.subLanguage:null)
;_.relevance>0&&(A+=e.relevance),T.__addSublanguage(e._emitter,e.language)
}():c(),C=""}function h(e,t){""!==e&&(T.startScope(t),T.addText(e),T.endScope())
}function f(e,t){let n=1;const r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++
;continue}const r=x.classNameAliases[e[n]]||e[n],o=t[n];r?h(o,r):(C=o,c(),C=""),
n++}}function g(e,t){
return e.scope&&"string"==typeof e.scope&&T.openNode(x.classNameAliases[e.scope]||e.scope),
e.beginScope&&(e.beginScope._wrap?(h(C,x.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),
C=""):e.beginScope._multi&&(f(e.beginScope,t),C="")),_=Object.create(e,{parent:{
value:_}}),_}function v(e,t,n){let r=function(e,t){const n=e&&e.exec(t)
;return n&&0===n.index}(e.endRe,n);if(r){if(e["on:end"]){const n=new GC(e)
;e["on:end"](t,n),n.isMatchIgnored&&(r=!1)}if(r){
for(;e.endsParent&&e.parent;)e=e.parent;return e}}
if(e.endsWithParent)return v(e.parent,t,n)}function b(e){
return 0===_.matcher.regexIndex?(C+=e[0],1):($=!0,0)}function O(e){
const t=e[0],r=n.substring(e.index),o=v(_,e,r);if(!o)return rP;const i=_
;_.endScope&&_.endScope._wrap?(p(),
h(t,_.endScope._wrap)):_.endScope&&_.endScope._multi?(p(),
f(_.endScope,e)):i.skip?C+=t:(i.returnEnd||i.excludeEnd||(C+=t),
p(),i.excludeEnd&&(C=t));do{
_.scope&&T.closeNode(),_.skip||_.subLanguage||(A+=_.relevance),_=_.parent
}while(_!==o.parent);return o.starts&&g(o.starts,e),i.returnEnd?0:t.length}
let y={};function w(t,i){const a=i&&i[0];if(C+=t,null==a)return p(),0
;if("begin"===y.type&&"end"===i.type&&y.index===i.index&&""===a){
if(C+=n.slice(i.index,i.index+1),!o){
const t=new Error(`0 width match regex (${e})`)
;throw t.languageName=e,t.badRule=y.rule,t}return 1}
if(y=i,"begin"===i.type)return function(e){
const t=e[0],n=e.rule,r=new GC(n),o=[n.__beforeBegin,n["on:begin"]]
;for(const i of o)if(i&&(i(e,r),r.isMatchIgnored))return b(t)
;return n.skip?C+=t:(n.excludeBegin&&(C+=t),
p(),n.returnBegin||n.excludeBegin||(C=t)),g(n,e),n.returnBegin?0:t.length}(i)
;if("illegal"===i.type&&!r){
const e=new Error('Illegal lexeme "'+a+'" for mode "'+(_.scope||"<unnamed>")+'"')
;throw e.mode=_,e}if("end"===i.type){const e=O(i);if(e!==rP)return e}
if("illegal"===i.type&&""===a)return 1;if(D>1e5&&D>3*i.index){
throw new Error("potential infinite loop, way more iterations than matches")}
return C+=a,a.length}const x=m(e)
;if(!x)throw ZA(i.replace("{}",e)),new Error('Unknown language: "'+e+'"')
;const k=KA(x);let S="",_=a||k;const E={},T=new s.__emitter(s);!function(){
const e=[];for(let t=_;t!==x;t=t.parent)t.scope&&e.unshift(t.scope)
;e.forEach((e=>T.openNode(e)))}();let C="",A=0,P=0,D=0,$=!1;try{
if(x.__emitTokens)x.__emitTokens(n,T);else{for(_.matcher.considerAll();;){
D++,$?$=!1:_.matcher.considerAll(),_.matcher.lastIndex=P
;const e=_.matcher.exec(n);if(!e)break;const t=w(n.substring(P,e.index),e)
;P=e.index+t}w(n.substring(P))}return T.finalize(),S=T.toHTML(),{language:e,
value:S,relevance:A,illegal:!1,_emitter:T,_top:_}}catch(R){
if(R.message&&R.message.includes("Illegal"))return{language:e,value:tP(n),
illegal:!0,relevance:0,_illegalBy:{message:R.message,index:P,
context:n.slice(P-100,P+100),mode:R.mode,resultSoFar:S},_emitter:T};if(o)return{
language:e,value:tP(n),illegal:!1,relevance:0,errorRaised:R,_emitter:T,_top:_}
;throw R}}function d(e,n){n=n||s.languages||Object.keys(t);const r=function(e){
const t={value:tP(e),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)}
;return t._emitter.addText(e),t}(e),o=n.filter(m).filter(v).map((t=>u(t,e,!1)))
;o.unshift(r);const i=o.sort(((e,t)=>{
if(e.relevance!==t.relevance)return t.relevance-e.relevance
;if(e.language&&t.language){if(m(e.language).supersetOf===t.language)return 1
;if(m(t.language).supersetOf===e.language)return-1}return 0})),[l,c]=i,d=l
;return d.secondBest=c,d}function p(e){let t=null;const r=function(e){
let t=e.className+" ";t+=e.parentNode?e.parentNode.className:""
;const n=s.languageDetectRe.exec(t);if(n){const t=m(n[1])
;return t||(VA(i.replace("{}",n[1])),
VA("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"
}return t.split(/\s+/).find((e=>l(e)||m(e)))}(e);if(l(r))return
;if(b("before:highlightElement",{el:e,language:r
}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e)
;if(e.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),
console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),
console.warn("The element with unescaped HTML:"),
console.warn(e)),s.throwUnescapedHTML)){
throw new eP("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e
;const o=t.textContent,a=r?c(o,{language:r,ignoreIllegals:!0}):d(o)
;e.innerHTML=a.value,e.dataset.highlighted="yes",function(e,t,r){
const o=t&&n[t]||r;e.classList.add("hljs"),e.classList.add(`language-${o}`)
}(e,r,a.language),e.result={language:a.language,re:a.relevance,
relevance:a.relevance},a.secondBest&&(e.secondBest={
language:a.secondBest.language,relevance:a.secondBest.relevance
}),b("after:highlightElement",{el:e,result:a,text:o})}let h=!1;function f(){
if("loading"===document.readyState)return void(h=!0)
;document.querySelectorAll(s.cssSelector).forEach(p)}function m(e){
return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function g(e,{languageName:t}){
"string"==typeof e&&(e=[e]),e.forEach((e=>{n[e.toLowerCase()]=t}))}
function v(e){const t=m(e);return t&&!t.disableAutodetect}function b(e,t){
const n=e;r.forEach((function(e){e[n]&&e[n](t)}))}
"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){
h&&f()}),!1),Object.assign(e,{highlight:c,highlightAuto:d,highlightAll:f,
highlightElement:p,highlightBlock:function(e){
return WA("10.7.0","highlightBlock will be removed entirely in v12.0"),
WA("10.7.0","Please use highlightElement now."),p(e)},configure:function(e){
s=nP(s,e)},initHighlighting:()=>{
f(),WA("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")},
initHighlightingOnLoad:function(){
f(),WA("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")
},registerLanguage:function(n,r){let i=null;try{i=r(e)}catch(s){
if(ZA("Language definition for '{}' could not be registered.".replace("{}",n)),
!o)throw s;ZA(s),i=a}
i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&g(i.aliases,{
languageName:n})},unregisterLanguage:function(e){delete t[e]
;for(const t of Object.keys(n))n[t]===e&&delete n[t]},listLanguages:function(){
return Object.keys(t)},getLanguage:m,registerAliases:g,autoDetection:v,
inherit:nP,addPlugin:function(e){!function(e){
e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{
e["before:highlightBlock"](Object.assign({block:t.el},t))
}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{
e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),r.push(e)},
removePlugin:function(e){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}
}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0
},e.versionString="11.9.0",e.regex={concat:cA,lookahead:aA,either:uA,
optional:lA,anyNumberOfTimes:sA}
;for(const O in RA)"object"==typeof RA[O]&&YC(RA[O]);return Object.assign(e,RA),
e},iP=oP({});iP.newInstance=()=>oP({});var aP=iP;iP.HighlightJS=iP,iP.default=iP
;const sP=Jf(aP),lP={},cP="hljs-";class uP{constructor(e){
this.options=e,this.root={type:"root",children:[],data:{language:void 0,
relevance:0}},this.stack=[this.root]}addText(e){if(""===e)return
;const t=this.stack[this.stack.length-1],n=t.children[t.children.length-1]
;n&&"text"===n.type?n.value+=e:t.children.push({type:"text",value:e})}
startScope(e){this.openNode(String(e))}endScope(){this.closeNode()}
__addSublanguage(e,t){const n=this.stack[this.stack.length-1],r=e.root.children
;t?n.children.push({type:"element",tagName:"span",properties:{className:[t]},
children:r}):n.children.push(...r)}openNode(e){const t=this,n={type:"element",
tagName:"span",properties:{className:e.split(".").map((function(e,n){
return n?e+"_".repeat(n):t.options.classPrefix+e}))},children:[]}
;this.stack[this.stack.length-1].children.push(n),this.stack.push(n)}
closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const dP={
ts:"typescript",js:"javascript",py:"python",py3:"python","c#":"csharp",
"c++":"cpp",node:"javascript"},pP={};function hP(e){
const t=e||pP,n=t.aliases,r=(null==e?void 0:e.detect)??!1,o=t.languages,i=t.plainText,a=t.prefix,s=t.subset
;let l="hljs";const c=(null==e?void 0:e.lowlight)??function(e){
const t=sP.newInstance();return e&&o(e),{highlight:n,
highlightAuto:function(e,o){const i=(o||lP).subset||r();let a,s=-1,l=0
;for(;++s<i.length;){const r=i[s];if(!t.getLanguage(r))continue;const c=n(r,e,o)
;c.data&&void 0!==c.data.relevance&&c.data.relevance>l&&(l=c.data.relevance,a=c)
}return a||{type:"root",children:[],data:{language:void 0,relevance:l}}},
listLanguages:r,register:o,registerAlias:function(e,n){
if("string"==typeof e)t.registerAliases("string"==typeof n?n:[...n],{
languageName:e});else{let n;for(n in e)if(Object.hasOwn(e,n)){const r=e[n]
;t.registerAliases("string"==typeof r?r:[...r],{languageName:n})}}},
registered:function(e){return Boolean(t.getLanguage(e))}};function n(e,n,r){
const o=r||lP,i="string"==typeof o.prefix?o.prefix:cP
;if(!t.getLanguage(e))throw new Error("Unknown language: `"+e+"` is not registered")
;t.configure({__emitter:uP,classPrefix:i});const a=t.highlight(n,{
ignoreIllegals:!0,language:e})
;if(a.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{
cause:a.errorRaised});const s=a._emitter.root,l=s.data
;return l.language=a.language,l.relevance=a.relevance,s}function r(){
return t.listLanguages()}function o(e,n){
if("string"==typeof e)t.registerLanguage(e,n);else{let n
;for(n in e)Object.hasOwn(e,n)&&t.registerLanguage(n,e[n])}}}(o)
;if(n&&c.registerAlias(n),a){const e=a.indexOf("-");l=e>-1?a.slice(0,e):a}
return function(e,t){og(e,"element",(function(e,n,o){var u
;if("code"!==e.tagName||!o||"element"!==o.type||"pre"!==o.tagName)return
;const d=function(e){const t=e.properties.className
;if(!Array.isArray(t))return"";const n=t.reduce(((e,t)=>{if(e)return e
;const n=String(t)
;return"no-highlight"===n||"nohighlight"===n?"no-highlight":"lang-"===n.slice(0,5)?n.slice(5):"language-"===n.slice(0,9)?n.slice(9):e
}),"");return dP[n||""]||n}(e)
;if("no-highlight"===d||!d&&!r||d&&(null==i?void 0:i.includes(d)))return;let p
;Array.isArray(e.properties.className)||(e.properties.className=[]),
e.properties.className.includes(l)||e.properties.className.unshift(l);try{
p=d?c.highlight(d,IT(o),{prefix:a}):c.highlightAuto(IT(o),{prefix:a,subset:s})
}catch(h){const n=h
;if(d&&/Unknown language/.test(n.message))return void t.message("Cannot highlight as `"+d+"`, it’s not registered",{
ancestors:[o,e],cause:n,place:e.position,ruleId:"missing-language",
source:"rehype-highlight"});throw n}
!d&&(null==(u=p.data)?void 0:u.language)&&e.properties.className.push("language-"+p.data.language),
p.children.length>0&&(e.children=p.children)}))}}const fP={bash:function(e){
const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,
contains:[n]}]};Object.assign(n,{className:"variable",variants:[{
begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const o={
className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i={
begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,
end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,
contains:[e.BACKSLASH_ESCAPE,n,o]};o.contains.push(a);const s={begin:/\$?\(\(/,
end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]
},l=e.SHEBANG({
binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,
relevance:10}),c={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,
returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],
relevance:0};return{name:"Bash",aliases:["sh"],keywords:{
$pattern:/\b[a-z][a-z0-9._-]+\b/,
keyword:["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],
literal:["true","false"],
built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"]
},contains:[l,e.SHEBANG(),c,s,e.HASH_COMMENT_MODE,i,{match:/(\/[a-z._-]+)+/},a,{
match:/\\"/},{className:"string",begin:/'/,end:/'/},{match:/\\'/},n]}},
c:function(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]
}),r="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",i="("+r+"|"+t.optional(o)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",a={
className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{
match:/\batomic_[a-z]{3,6}\b/}]},s={className:"string",variants:[{
begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{
begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
end:"'",illegal:"."},e.END_SAME_AS_BEGIN({
begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={
className:"number",variants:[{begin:"\\b(0b[01']+)"},{
begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"
},{
begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"
}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"
},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:"string"}),{
className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={
className:"title",begin:t.optional(o)+e.IDENT_RE,relevance:0
},d=t.optional(o)+e.IDENT_RE+"\\s*\\(",p={
keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],
type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],
literal:"true false NULL",
built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"
},h=[c,a,n,e.C_BLOCK_COMMENT_MODE,l,s],f={variants:[{begin:/=/,end:/;/},{
begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],
keywords:p,contains:h.concat([{begin:/\(/,end:/\)/,keywords:p,
contains:h.concat(["self"]),relevance:0}]),relevance:0},m={
begin:"("+i+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,
keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:p,relevance:0},{
begin:d,returnBegin:!0,contains:[e.inherit(u,{className:"title.function"})],
relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,
keywords:p,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,s,l,a,{begin:/\(/,
end:/\)/,keywords:p,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,s,l,a]
}]},a,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C",aliases:["h"],keywords:p,
disableAutodetect:!0,illegal:"</",contains:[].concat(f,m,h,[c,{
begin:e.IDENT_RE+"::",keywords:p},{className:"class",
beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{
beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:c,
strings:s,keywords:p}}},clojure:function(e){
const t="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+t+"]["+t+"0-9/;:$#]*",r="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",o={
$pattern:n,
built_in:r+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"
},i={begin:n,relevance:0},a={scope:"number",relevance:0,variants:[{
match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{
match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{
match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{
match:/[-+]?([1-9][0-9]*|0)N?/}]},s={scope:"character",variants:[{
match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{
match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,
relevance:0}]},l={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]
},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),u={scope:"punctuation",
match:/,/,relevance:0},d=e.COMMENT(";","$",{relevance:0}),p={
className:"literal",begin:/\b(true|false|nil)\b/},h={
begin:"\\[|(#::?"+n+")?\\{",end:"[\\]\\}]",relevance:0},f={className:"symbol",
begin:"[:]{1,2}"+n},m={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0
},v={keywords:o,className:"name",begin:n,relevance:0,starts:g
},b=[u,m,s,l,c,d,f,h,a,p,i],O={beginKeywords:r,keywords:{$pattern:n,keyword:r},
end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n,
relevance:0,excludeEnd:!0,endsParent:!0}].concat(b)}
;return m.contains=[O,v,g],g.contains=b,h.contains=b,{name:"Clojure",
aliases:["clj","edn"],illegal:/\S/,contains:[u,m,s,l,c,d,f,h,a,p]}},
cpp:function(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]
}),r="decltype\\(auto\\)",o="[a-zA-Z_]\\w*::",i="(?!struct)("+r+"|"+t.optional(o)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",a={
className:"type",begin:"\\b[a-z\\d_]*_t\\b"},s={className:"string",variants:[{
begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{
begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
end:"'",illegal:"."},e.END_SAME_AS_BEGIN({
begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},l={
className:"number",variants:[{begin:"\\b(0b[01']+)"},{
begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"
},{
begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"
}],relevance:0},c={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"
},contains:[{begin:/\\\n/,relevance:0},e.inherit(s,{className:"string"}),{
className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},u={
className:"title",begin:t.optional(o)+e.IDENT_RE,relevance:0
},d=t.optional(o)+e.IDENT_RE+"\\s*\\(",p={
type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],
keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],
literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],
_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]
},h={className:"function.dispatch",relevance:0,keywords:{
_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]
},
begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))
},f=[h,c,a,n,e.C_BLOCK_COMMENT_MODE,l,s],m={variants:[{begin:/=/,end:/;/},{
begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],
keywords:p,contains:f.concat([{begin:/\(/,end:/\)/,keywords:p,
contains:f.concat(["self"]),relevance:0}]),relevance:0},g={className:"function",
begin:"("+i+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,
keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:p,relevance:0},{
begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{
begin:/:/,endsWithParent:!0,contains:[s,l]},{relevance:0,match:/,/},{
className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,
contains:[n,e.C_BLOCK_COMMENT_MODE,s,l,a,{begin:/\(/,end:/\)/,keywords:p,
relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,s,l,a]}]
},a,n,e.C_BLOCK_COMMENT_MODE,c]};return{name:"C++",
aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"</",
classNameAliases:{"function.dispatch":"built_in"},
contains:[].concat(m,g,h,f,[c,{
begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",
end:">",keywords:p,contains:["self",a]},{begin:e.IDENT_RE+"::",keywords:p},{
match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],
className:{1:"keyword",3:"title.class"}}])}},css:function(e){
const t=e.regex,n=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},
BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",
begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{
className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{
scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",
contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{
scope:"number",
begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",
relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}
}))(e),r=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",
case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},
classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,{
begin:/-(webkit|moz|ms|o)-(?=[a-z])/},n.CSS_NUMBER_MODE,{
className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{
className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0
},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{
begin:":("+FT.join("|")+")"},{begin:":(:)?("+qT.join("|")+")"}]
},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+zT.join("|")+")\\b"},{
begin:/:/,end:/[;}{]/,
contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...r,{
begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"
},contains:[...r,{className:"string",begin:/[^)]/,endsWithParent:!0,
excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",
relevance:0,illegal:/:/,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/
},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{
$pattern:/[a-z-]+/,keyword:"and or not only",attribute:UT.join(" ")},contains:[{
begin:/[a-z-]+(?=:)/,className:"attribute"},...r,n.CSS_NUMBER_MODE]}]},{
className:"selector-tag",begin:"\\b("+jT.join("|")+")\\b"}]}},
curl:Jf((function(e){const t={className:"string",begin:/"/,end:/"/,
contains:[e.BACKSLASH_ESCAPE,{className:"variable",begin:/\$\(/,end:/\)/,
contains:[e.BACKSLASH_ESCAPE]}],relevance:0},n={className:"number",variants:[{
begin:e.C_NUMBER_RE}],relevance:0};return{name:"curl",aliases:["curl"],
keywords:"curl",case_insensitive:!0,contains:[{className:"literal",
begin:/(--request|-X)\s/,contains:[{className:"symbol",
begin:/(get|post|delete|options|head|put|patch|trace|connect)/,end:/\s/,
returnEnd:!0}],returnEnd:!0,relevance:10},{className:"literal",begin:/--/,
end:/[\s"]/,returnEnd:!0,relevance:0},{className:"literal",begin:/-\w/,
end:/[\s"]/,returnEnd:!0,relevance:0},t,{className:"string",begin:/\\"/,
relevance:0},{className:"string",begin:/'/,end:/'/,relevance:0
},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,n,{match:/(\/[a-z._-]+)+/}]}})),
csharp:function(e){const t={
keyword:["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"]),
built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],
literal:["default","false","null","true"]},n=e.inherit(e.TITLE_MODE,{
begin:"[a-zA-Z](\\.?\\w)*"}),r={className:"number",variants:[{
begin:"\\b(0b[01']+)"},{
begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{
begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"
}],relevance:0},o={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]
},i=e.inherit(o,{illegal:/\n/}),a={className:"subst",begin:/\{/,end:/\}/,
keywords:t},s=e.inherit(a,{illegal:/\n/}),l={className:"string",begin:/\$"/,
end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/
},e.BACKSLASH_ESCAPE,s]},c={className:"string",begin:/\$@"/,end:'"',contains:[{
begin:/\{\{/},{begin:/\}\}/},{begin:'""'},a]},u=e.inherit(c,{illegal:/\n/,
contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},s]})
;a.contains=[c,l,o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,e.C_BLOCK_COMMENT_MODE],
s.contains=[u,l,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,r,e.inherit(e.C_BLOCK_COMMENT_MODE,{
illegal:/\n/})];const d={variants:[c,l,o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]
},p={begin:"<",end:">",contains:[{beginKeywords:"in out"},n]
},h=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",f={
begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],
keywords:t,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,
contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{
begin:"\x3c!--|--\x3e"},{begin:"</?",end:">"}]}]
}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",
end:"$",keywords:{
keyword:"if else elif endif define undef warning error line region endregion pragma checksum"
}},d,r,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,
illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"
},n,p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",
relevance:0,end:/[{;=]/,illegal:/[^\s:]/,
contains:[n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{
beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,
contains:[n,p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",
begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{
className:"string",begin:/"/,end:/"/}]},{
beginKeywords:"new return throw await else",relevance:0},{className:"function",
begin:"("+h+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,
end:/\s*[{;=]/,excludeEnd:!0,keywords:t,contains:[{
beginKeywords:["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"].join(" "),
relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,
contains:[e.TITLE_MODE,p],relevance:0},{match:/\(\)/},{className:"params",
begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,relevance:0,
contains:[d,r,e.C_BLOCK_COMMENT_MODE]
},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},f]}},elixir:function(e){
const t=e.regex,n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",r={$pattern:n,
keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],
literal:["false","nil","true"]},o={className:"subst",begin:/#\{/,end:/\}/,
keywords:r},i={match:/\\[\s\S]/,scope:"char.escape",relevance:0
},a="[/|([{<\"']",s=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,
end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{
begin:/\{/,end:/\}/},{begin:/</,end:/>/}],l=e=>({scope:"char.escape",
begin:t.concat(/\\/,e),relevance:0}),c={className:"string",
begin:"~[a-z](?="+a+")",contains:s.map((t=>e.inherit(t,{contains:[l(t.end),i,o]
})))},u={className:"string",begin:"~[A-Z](?="+a+")",
contains:s.map((t=>e.inherit(t,{contains:[l(t.end)]})))},d={className:"regex",
variants:[{begin:"~r(?="+a+")",contains:s.map((n=>e.inherit(n,{
end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[l(n.end),i,o]})))},{
begin:"~R(?="+a+")",contains:s.map((n=>e.inherit(n,{
end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[l(n.end)]})))}]},p={
className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/"""/,
end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{
begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{
begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},h={
className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,
contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},f=e.inherit(h,{
className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",
end:/\bdo\b|$|;/}),m=[p,d,u,c,e.HASH_COMMENT_MODE,f,h,{begin:"::"},{
className:"symbol",begin:":(?![\\s:])",contains:[p,{
begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"
}],relevance:0},{className:"symbol",begin:n+":(?!:)",relevance:0},{
className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},{
className:"number",
begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",
relevance:0},{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}]
;return o.contains=m,{name:"Elixir",aliases:["ex","exs"],keywords:r,contains:m}
},go:function(e){const t={
keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],
type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],
literal:["true","false","iota","nil"],
built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]
};return{name:"Go",aliases:["golang"],keywords:t,illegal:"</",
contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",
variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{
className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1
},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",
end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",
begin:/\(/,end:/\)/,endsParent:!0,keywords:t,illegal:/["']/}]}]}},
graphql:function(e){const t=e.regex;return{name:"GraphQL",aliases:["gql"],
case_insensitive:!0,disableAutodetect:!1,keywords:{
keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],
literal:["true","false","null"]},
contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{
scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",
begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,
end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{
scope:"symbol",begin:t.concat(/[_A-Za-z][_0-9A-Za-z]*/,t.lookahead(/\s*:/)),
relevance:0}],illegal:[/[;<']/,/BEGIN/]}},html:XC,java:function(e){
const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+XT("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),o={
keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],
literal:["false","true","null"],
type:["char","boolean","long","float","int","byte","short","double"],
built_in:["super","this"]},i={className:"meta",begin:"@"+n,contains:[{
begin:/\(/,end:/\)/,contains:["self"]}]},a={className:"params",begin:/\(/,
end:/\)/,keywords:o,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0}
;return{name:"Java",aliases:["jsp"],keywords:o,illegal:/<\/|#/,
contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,
relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{
begin:/import java\.[a-z]+\./,keywords:"import",relevance:2
},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,
className:"string",contains:[e.BACKSLASH_ESCAPE]
},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{
match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{
1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{
begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",
3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",
3:"title.class"},contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{
beginKeywords:"new throw return else",relevance:0},{
begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{
2:"title.function"},keywords:o,contains:[{className:"params",begin:/\(/,
end:/\)/,keywords:o,relevance:0,
contains:[i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,WT,e.C_BLOCK_COMMENT_MODE]
},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},WT,i]}},javascript:function(e){
const t=e.regex,n=YT,r="<>",o="</>",i={begin:/<[A-Za-z0-9\\._:-]+/,
end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{
const n=e[0].length+e.index,r=e.input[n]
;if("<"===r||","===r)return void t.ignoreMatch();let o
;">"===r&&(((e,{after:t})=>{const n="</"+e[0].slice(1)
;return-1!==e.input.indexOf(n,t)})(e,{after:n})||t.ignoreMatch())
;const i=e.input.substring(n)
;((o=i.match(/^\s*=/))||(o=i.match(/^\s+extends\s+/))&&0===o.index)&&t.ignoreMatch()
}},a={$pattern:YT,keyword:GT,literal:KT,built_in:rC,"variable.language":nC
},s="[0-9](_?[0-9])*",l=`\\.(${s})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={
className:"number",variants:[{
begin:`(\\b(${c})((${l})|\\.)?|(${l}))[eE][+-]?(${s})\\b`},{
begin:`\\b(${c})\\b((${l})\\b|\\.)?|(${l})\\b`},{
begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{
begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{
begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{
begin:"\\b0[0-7]+n?\\b"}],relevance:0},d={className:"subst",begin:"\\$\\{",
end:"\\}",keywords:a,contains:[]},p={begin:"html`",end:"",starts:{end:"`",
returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,d],subLanguage:"xml"}},h={
begin:"css`",end:"",starts:{end:"`",returnEnd:!1,
contains:[e.BACKSLASH_ESCAPE,d],subLanguage:"css"}},f={begin:"gql`",end:"",
starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,d],
subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",
contains:[e.BACKSLASH_ESCAPE,d]},g={className:"comment",
variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{
begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",
begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,
excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",
endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]
}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]
},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,f,m,{match:/\$\d+/},u]
;d.contains=v.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(v)
});const b=[].concat(g,d.contains),O=b.concat([{begin:/\(/,end:/\)/,keywords:a,
contains:["self"].concat(b)}]),y={className:"params",begin:/\(/,end:/\)/,
excludeBegin:!0,excludeEnd:!0,keywords:a,contains:O},w={variants:[{
match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],
scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{
match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},x={relevance:0,
match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
className:"title.class",keywords:{_:[...JT,...eC]}},k={variants:[{
match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],
className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],
illegal:/%/},S={
match:t.concat(/\b/,(_=[...tC,"super","import"],t.concat("(?!",_.join("|"),")")),n,t.lookahead(/\(/)),
className:"title.function",relevance:0};var _;const E={
begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,
excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},T={
match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},
contains:[{begin:/\(\)/},y]
},C="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",A={
match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(C)],
keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]}
;return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{
PARAMS_CONTAINS:O,CLASS_REFERENCE:x},illegal:/#(?![$_A-z])/,
contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{
label:"use_strict",className:"meta",relevance:10,
begin:/^\s*['"]use (strict|asm)['"]/
},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,f,m,g,{match:/\$\d+/},u,x,{
className:"attr",begin:n+t.lookahead(":"),relevance:0},A,{
begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",
keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{
className:"function",begin:C,returnBegin:!0,end:"\\s*=>",contains:[{
className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{
className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,
excludeEnd:!0,keywords:a,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,
relevance:0},{variants:[{begin:r,end:o},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{
begin:i.begin,"on:begin":i.isTrulyOpeningTag,end:i.end}],subLanguage:"xml",
contains:[{begin:i.begin,end:i.end,skip:!0,contains:["self"]}]}]},k,{
beginKeywords:"while if switch catch for"},{
begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
returnBegin:!0,label:"func.def",contains:[y,e.inherit(e.TITLE_MODE,{begin:n,
className:"title.function"})]},{match:/\.\.\./,relevance:0},E,{match:"\\$"+n,
relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},
contains:[y]},S,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,
className:"variable.constant"},w,T,{match:/\$[(.]/}]}},json:function(e){
const t=["true","false","null"],n={scope:"literal",beginKeywords:t.join(" ")}
;return{name:"JSON",keywords:{literal:t},contains:[{className:"attr",
begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,
className:"punctuation",relevance:0
},e.QUOTE_STRING_MODE,n,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],
illegal:"\\S"}},kotlin:function(e){const t={
keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",
built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",
literal:"true false null"},n={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"
},r={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={
className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},i={className:"string",
variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,r]},{begin:"'",end:"'",
illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,
contains:[e.BACKSLASH_ESCAPE,o,r]}]};r.contains.push(i);const a={
className:"meta",
begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"
},s={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,
end:/\)/,contains:[e.inherit(i,{className:"string"}),"self"]}]
},l=sC,c=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),u={
variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,
contains:[]}]},d=u;return d.variants[1].contains=[u],u.variants[1].contains=[d],
{name:"Kotlin",aliases:["kt","kts"],keywords:t,
contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",
begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,c,{className:"keyword",
begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",
begin:/@\w+/}]}},n,a,s,{className:"function",beginKeywords:"fun",end:"[(]|$",
returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{
begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,
contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,
keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,
endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,
endsWithParent:!0,contains:[u,e.C_LINE_COMMENT_MODE,c],relevance:0
},e.C_LINE_COMMENT_MODE,c,a,s,i,e.C_NUMBER_MODE]},c]},{
begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{
3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,
illegal:"extends implements",contains:[{
beginKeywords:"public protected internal private constructor"
},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,
excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,
excludeBegin:!0,returnEnd:!0},a,s]},i,{className:"meta",begin:"^#!/usr/bin/env",
end:"$",illegal:"\n"},l]}},less:function(e){const t=(e=>({IMPORTANT:{
scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{
scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},
FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},
ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",
contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{
scope:"number",
begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",
relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}
}))(e),n=hC,r="[\\w-]+",o="("+r+"|@\\{"+r+"\\})",i=[],a=[],s=function(e){return{
className:"string",begin:"~?"+e+".*?"+e}},l=function(e,t,n){return{className:e,
begin:t,relevance:n}},c={$pattern:/[a-z-]+/,keyword:"and or not only",
attribute:cC.join(" ")},u={begin:"\\(",end:"\\)",contains:a,keywords:c,
relevance:0}
;a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s("'"),s('"'),t.CSS_NUMBER_MODE,{
begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",
excludeEnd:!0}
},t.HEXCOLOR,u,l("variable","@@?"+r,10),l("variable","@\\{"+r+"\\}"),l("built_in","~?`[^`]*?`"),{
className:"attribute",begin:r+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0
},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const d=a.concat({
begin:/\{/,end:/\}/,contains:i}),p={beginKeywords:"when",endsWithParent:!0,
contains:[{beginKeywords:"and not"}].concat(a)},h={begin:o+"\\s*:",
returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/
},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+pC.join("|")+")\\b",
end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:a}}]
},f={className:"keyword",
begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",
starts:{end:"[;{}]",keywords:c,returnEnd:!0,contains:a,relevance:0}},m={
className:"variable",variants:[{begin:"@"+r+"\\s*:",relevance:15},{begin:"@"+r
}],starts:{end:"[;}]",returnEnd:!0,contains:d}},g={variants:[{
begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,
returnEnd:!0,illegal:"[<='$\"]",relevance:0,
contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,p,l("keyword","all\\b"),l("variable","@\\{"+r+"\\}"),{
begin:"\\b("+lC.join("|")+")\\b",className:"selector-tag"
},t.CSS_NUMBER_MODE,l("selector-tag",o,0),l("selector-id","#"+o),l("selector-class","\\."+o,0),l("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{
className:"selector-pseudo",begin:":("+uC.join("|")+")"},{
className:"selector-pseudo",begin:":(:)?("+dC.join("|")+")"},{begin:/\(/,
end:/\)/,relevance:0,contains:d},{begin:"!important"},t.FUNCTION_DISPATCH]},v={
begin:r+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[g]}
;return i.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,f,m,v,h,g,p,t.FUNCTION_DISPATCH),
{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:i}},
makefile:function(e){const t={className:"variable",variants:[{
begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{
begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,
contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,
end:/\)/,keywords:{
built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"
},contains:[t]},o={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},i={
className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{
name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,
keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"
},contains:[e.HASH_COMMENT_MODE,t,n,r,o,{className:"meta",begin:/^\.PHONY:/,
end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},i]}},
markdown:function(e){const t={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",
relevance:0},n={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{
begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,
relevance:2},{
begin:e.regex.concat(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),
relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{
begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/
},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,
returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",
excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",
end:"\\]",excludeBegin:!0,excludeEnd:!0}]},r={className:"strong",contains:[],
variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]
},o={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{
begin:/_(?![_\s])/,end:/_/,relevance:0}]},i=e.inherit(r,{contains:[]
}),a=e.inherit(o,{contains:[]});r.contains.push(a),o.contains.push(i)
;let s=[t,n];return[r,o,i,a].forEach((e=>{e.contains=e.contains.concat(s)
})),s=s.concat(r,o),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{
className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:s},{
begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",
contains:s}]}]},t,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",
end:"\\s+",excludeEnd:!0},r,o,{className:"quote",begin:"^>\\s+",contains:s,
end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{
begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{
begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",
contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{
begin:"^[-\\*]{3,}",end:"$"},n,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{
className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{
className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}},matlab:function(e){
const t="('|\\.')+",n={relevance:0,contains:[{begin:t}]};return{name:"Matlab",
keywords:{
keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",
built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "
},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",
beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{
className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]
},{className:"built_in",begin:/true|false/,relevance:0,starts:n},{
begin:"[a-zA-Z][a-zA-Z_0-9]*"+t,relevance:0},{className:"number",
begin:e.C_NUMBER_RE,relevance:0,starts:n},{className:"string",begin:"'",end:"'",
contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:n},{
className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:n
},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}},
nginx:function(e){const t=e.regex,n={className:"variable",variants:[{
begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)
}]},r={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,
literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]
},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",
contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/
}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]
},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",
end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{
begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",
begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{
className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},n]};return{
name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{
beginKeywords:"upstream location",end:/;|\{/,contains:r.contains,keywords:{
section:"upstream location"}},{className:"section",
begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{
begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{
className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:r}],relevance:0}],
illegal:"[^\\s\\}\\{]"}},objectivec:function(e){
const t=/[a-zA-Z@][a-zA-Z0-9_]*/,n={$pattern:t,
keyword:["@interface","@class","@protocol","@implementation"]};return{
name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],
keywords:{"variable.language":["this","super"],$pattern:t,
keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],
literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],
built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],
type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]
},illegal:"</",contains:[{className:"built_in",
begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"
},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{
className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",
contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,
keywords:{
keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"
},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{
className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"
},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",
begin:"("+n.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:n,
contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,
relevance:0}]}},ocaml:function(e){return{name:"OCaml",aliases:["ml"],keywords:{
$pattern:"[a-z_]\\w*!?",
keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",
built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",
literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",
begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{
contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{
className:"type",begin:"`[A-Z][\\w']*"},{className:"type",
begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0
},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0
}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",
begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",
relevance:0},{begin:/->/}]}},php:function(e){
const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),o=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),i={
scope:"variable",match:"\\$+"+r},a={scope:"subst",variants:[{begin:/\$\w+/},{
begin:/\{\$/,end:/\}/}]},s=e.inherit(e.APOS_STRING_MODE,{illegal:null
}),l="[ \t\n]",c={scope:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{
illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(a)}),s,{
begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,
contains:e.QUOTE_STRING_MODE.contains.concat(a),"on:begin":(e,t)=>{
t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{
t.data._beginMatch!==e[1]&&t.ignoreMatch()}},e.END_SAME_AS_BEGIN({
begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/})]},u={scope:"number",variants:[{
begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{
begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{
begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"
}],relevance:0
},d=["false","null","true"],p=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],h=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],f={
keyword:p,literal:(e=>{const t=[];return e.forEach((e=>{
t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())
})),t})(d),built_in:h},m=e=>e.map((e=>e.replace(/\|\d+$/,""))),g={variants:[{
match:[/new/,t.concat(l,"+"),t.concat("(?!",m(h).join("\\b|"),"\\b)"),o],scope:{
1:"keyword",4:"title.class"}}]},v=t.concat(r,"\\b(?!\\()"),b={variants:[{
match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),v],scope:{2:"variable.constant"
}},{match:[/::/,/class/],scope:{2:"variable.language"}},{
match:[o,t.concat(/::/,t.lookahead(/(?!class\b)/)),v],scope:{1:"title.class",
3:"variable.constant"}},{match:[o,t.concat("::",t.lookahead(/(?!class\b)/))],
scope:{1:"title.class"}},{match:[o,/::/,/class/],scope:{1:"title.class",
3:"variable.language"}}]},O={scope:"attr",
match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},y={relevance:0,
begin:/\(/,end:/\)/,keywords:f,contains:[O,i,b,e.C_BLOCK_COMMENT_MODE,c,u,g]
},w={relevance:0,
match:[/\b/,t.concat("(?!fn\\b|function\\b|",m(p).join("\\b|"),"|",m(h).join("\\b|"),"\\b)"),r,t.concat(l,"*"),t.lookahead(/(?=\()/)],
scope:{3:"title.function.invoke"},contains:[y]};y.contains.push(w)
;const x=[O,b,e.C_BLOCK_COMMENT_MODE,c,u,g];return{case_insensitive:!1,
keywords:f,contains:[{begin:t.concat(/#\[\s*/,o),beginScope:"meta",end:/]/,
endScope:"meta",keywords:{literal:d,keyword:["new","array"]},contains:[{
begin:/\[/,end:/]/,keywords:{literal:d,keyword:["new","array"]},
contains:["self",...x]},...x,{scope:"meta",match:o}]
},e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{
scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,
keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,
contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},{scope:"meta",variants:[{
begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{
begin:/\?>/}]},{scope:"variable.language",match:/\$this\b/},i,w,b,{
match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},g,{
scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,
excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"
},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",
begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:f,
contains:["self",i,b,e.C_BLOCK_COMMENT_MODE,c,u]}]},{scope:"class",variants:[{
beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",
illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{
beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{
beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,
contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{
beginKeywords:"use",relevance:0,end:";",contains:[{
match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},c,u]}
},plaintext:function(e){return{name:"Plain text",aliases:["text","txt"],
disableAutodetect:!0}},powershell:function(e){const t={
$pattern:/-?[A-z\.\-]+\b/,
keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",
built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"
},n={begin:"`[\\s\\S]",relevance:0},r={className:"variable",variants:[{
begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]
},o={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],
contains:[n,r,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},i={
className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]
},a=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,
end:/#>/}],contains:[{className:"doctag",variants:[{
begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/
},{
begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/
}]}]}),s={className:"built_in",variants:[{
begin:"(".concat("Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",")+(-)[\\w\\d]+")
}]},l={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,
relevance:0,contains:[e.TITLE_MODE]},c={className:"function",
begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,
contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",
begin:/\w[\w\d]*((-)[\w\d]+)*/,relevance:0},{begin:/\(/,end:/\)/,
className:"params",relevance:0,contains:[r]}]},u={begin:/using\s/,end:/$/,
returnBegin:!0,contains:[o,i,{className:"keyword",
begin:/(using|assembly|command|module|namespace|type)/}]},d={variants:[{
className:"operator",
begin:"(".concat("-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",")\\b")
},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},p={
className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,
relevance:0,contains:[{className:"keyword",
begin:"(".concat(t.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,
relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]
},h=[p,a,n,e.NUMBER_MODE,o,i,s,r,{className:"literal",
begin:/\$(null|true|false)\b/},{className:"selector-tag",begin:/@\B/,relevance:0
}],f={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,
contains:[].concat("self",h,{
begin:"("+["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"].join("|")+")",
className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,
relevance:0})};return p.contains.unshift(f),{name:"PowerShell",
aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:t,
contains:h.concat(l,c,u,d,f)}},python:function(e){
const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],o={
$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,
built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],
literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],
type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]
},i={className:"meta",begin:/^(>>>|\.\.\.) /},a={className:"subst",begin:/\{/,
end:/\}/,keywords:o,illegal:/#/},s={begin:/\{\{/,relevance:0},l={
className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{
begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,
contains:[e.BACKSLASH_ESCAPE,i],relevance:10},{
begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,
contains:[e.BACKSLASH_ESCAPE,i],relevance:10},{
begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,
contains:[e.BACKSLASH_ESCAPE,i,s,a]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,
end:/"""/,contains:[e.BACKSLASH_ESCAPE,i,s,a]},{begin:/([uU]|[rR])'/,end:/'/,
relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{
begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,
end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,
contains:[e.BACKSLASH_ESCAPE,s,a]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,
contains:[e.BACKSLASH_ESCAPE,s,a]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]
},c="[0-9](_?[0-9])*",u=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,d=`\\b|${r.join("|")}`,p={
className:"number",relevance:0,variants:[{
begin:`(\\b(${c})|(${u}))[eE][+-]?(${c})[jJ]?(?=${d})`},{begin:`(${u})[jJ]?`},{
begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${d})`},{
begin:`\\b0[bB](_?[01])+[lL]?(?=${d})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${d})`
},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${d})`},{begin:`\\b(${c})[jJ](?=${d})`
}]},h={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:o,
contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},f={
className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,
end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,
contains:["self",i,p,l,e.HASH_COMMENT_MODE]}]};return a.contains=[l,p,i],{
name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:o,
illegal:/(<\/|\?)|=>/,contains:[i,p,{begin:/\bself\b/},{beginKeywords:"if",
relevance:0},l,h,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{
1:"keyword",3:"title.function"},contains:[f]},{variants:[{
match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],
scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{
className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[p,f,l]}]}},
r:function(e){
const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),o=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,i=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/)
;return{name:"R",keywords:{$pattern:n,
keyword:"function if in break next repeat else for while",
literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",
built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"
},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,
starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),
endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{
scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0
}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]
}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],
variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/
}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/
}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/
}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/
}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/
}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',
relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{
1:"operator",2:"number"},match:[o,r]},{scope:{1:"operator",2:"number"},
match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[i,r]},{scope:{
2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},
match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:o},{
match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:i},{begin:"`",end:"`",
contains:[{begin:/\\./}]}]}},ruby:function(e){
const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),o=t.concat(r,/(::\w+)*/),i={
"variable.constant":["__FILE__","__LINE__","__ENCODING__"],
"variable.language":["self","super"],
keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield","include","extend","prepend","public","private","protected","raise","throw"],
built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],
literal:["true","false","nil"]},a={className:"doctag",begin:"@[A-Za-z]+"},s={
begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[a]
}),e.COMMENT("^=begin","^=end",{contains:[a],relevance:10
}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,
end:/\}/,keywords:i},u={className:"string",contains:[e.BACKSLASH_ESCAPE,c],
variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{
begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{
begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,
end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{
begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{
begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{
begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{
begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{
begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),
contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,
contains:[e.BACKSLASH_ESCAPE,c]})]}]},d="[0-9](_?[0-9])*",p={className:"number",
relevance:0,variants:[{
begin:`\\b([1-9](_?[0-9])*|0)(\\.(${d}))?([eE][+-]?(${d})|r)?i?\\b`},{
begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"
},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{
begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{
begin:"\\b0(_?[0-7])+r?i?\\b"}]},h={variants:[{match:/\(\)/},{
className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,
keywords:i}]},f=[u,{variants:[{match:[/class\s+/,o,/\s+<\s+/,o]},{
match:[/\b(class|module)\s+/,o]}],scope:{2:"title.class",
4:"title.class.inherited"},keywords:i},{match:[/(include|extend)\s+/,o],scope:{
2:"title.class"},keywords:i},{relevance:0,match:[o,/\.new[. (]/],scope:{
1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,
className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{
match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[h]},{
begin:e.IDENT_RE+"::"},{className:"symbol",
begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",
begin:":(?!\\s)",contains:[u,{begin:n}],relevance:0},p,{className:"variable",
begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{
className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,
relevance:0,keywords:i},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",
keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],
illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{
begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",
end:"\\][a-z]*"}]}].concat(s,l),relevance:0}].concat(s,l)
;c.contains=f,h.contains=f;const m=[{begin:/^\s*=>/,starts:{end:"$",contains:f}
},{className:"meta.prompt",
begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])",
starts:{end:"$",keywords:i,contains:f}}];return l.unshift(s),{name:"Ruby",
aliases:["rb","gemspec","podspec","thor","irb"],keywords:i,illegal:/\/\*/,
contains:[e.SHEBANG({binary:"ruby"})].concat(m).concat(l).concat(f)}},
rust:function(e){const t=e.regex,n={className:"title.function.invoke",
relevance:0,
begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))
},r="([ui](8|16|32|64|128|size)|f(32|64))?",o=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],i=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"]
;return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:i,
keyword:["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],
literal:["true","false","Some","None","Ok","Err"],built_in:o},illegal:"</",
contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]
}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{
className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{
begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",
begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{
begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{
begin:"\\b0x([A-Fa-f0-9_]+)"+r},{
begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+r}],relevance:0},{
begin:[/fn/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",
3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{
className:"string",begin:/"/,end:/"/}]},{
begin:[/let/,/\s+/,/(?:mut\s+)?/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",
3:"keyword",4:"variable"}},{
begin:[/for/,/\s+/,e.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",
3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,e.UNDERSCORE_IDENT_RE],
className:{1:"keyword",3:"title.class"}},{
begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,e.UNDERSCORE_IDENT_RE],
className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{
keyword:"Self",built_in:o,type:i}},{className:"punctuation",begin:"->"},n]}},
scss:function(e){const t=(e=>({IMPORTANT:{scope:"meta",begin:"!important"},
BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",
begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{
className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{
scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",
contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{
scope:"number",
begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",
relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}
}))(e),n=vC,r=gC,o="@[a-z-]+",i={className:"variable",
begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",relevance:0};return{name:"SCSS",
case_insensitive:!0,illegal:"[=/|']",
contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{
className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{
className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0
},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",
begin:"\\b("+fC.join("|")+")\\b",relevance:0},{className:"selector-pseudo",
begin:":("+r.join("|")+")"},{className:"selector-pseudo",
begin:":(:)?("+n.join("|")+")"},i,{begin:/\(/,end:/\)/,
contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",
begin:"\\b("+bC.join("|")+")\\b"},{
begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"
},{begin:/:/,end:/[;}{]/,relevance:0,
contains:[t.BLOCK_COMMENT,i,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]
},{begin:"@(page|font-face)",keywords:{$pattern:o,keyword:"@page @font-face"}},{
begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,
keyword:"and or not only",attribute:mC.join(" ")},contains:[{begin:o,
className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"
},i,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]
},t.FUNCTION_DISPATCH]}},shell:function(e){return{name:"Shell Session",
aliases:["console","shellsession"],contains:[{className:"meta.prompt",
begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,
subLanguage:"bash"}}]}},sql:function(e){
const t=e.regex,n=e.COMMENT("--","$"),r=["true","false","unknown"],o=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],i=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],a=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],s=i,l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter((e=>!i.includes(e))),c={
begin:t.concat(/\b/,t.either(...s),/\s*\(/),relevance:0,keywords:{built_in:s}}
;return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{
$pattern:/\b[\w\.]+/,keyword:function(e,{exceptions:t,when:n}={}){const r=n
;return t=t||[],e.map((e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?`${e}|0`:e))
}(l,{when:e=>e.length<3}),literal:r,type:o,
built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"]
},contains:[{begin:t.either(...a),relevance:0,keywords:{$pattern:/[\w\.]+/,
keyword:l.concat(a),literal:r,type:o}},{className:"type",
begin:t.either("double precision","large object","with timezone","without timezone")
},c,{className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},{className:"string",
variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},{begin:/"/,end:/"/,
contains:[{begin:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,{
className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,
relevance:0}]}},swift:function(e){const t={match:/\s+/,relevance:0
},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],o={
match:[/\./,xC(...SC,..._C)],className:{2:"keyword"}},i={
match:wC(/\./,xC(...TC)),relevance:0
},a=TC.filter((e=>"string"==typeof e)).concat(["_|0"]),s={variants:[{
className:"keyword",
match:xC(...TC.filter((e=>"string"!=typeof e)).concat(EC).map(kC),..._C)}]},l={
$pattern:xC(/\b\w+/,/#\w+/),keyword:a.concat(PC),literal:CC},c=[o,i,s],u=[{
match:wC(/\./,xC(...DC)),relevance:0},{className:"built_in",
match:wC(/\b/,xC(...DC),/(?=\()/)}],d={match:/->/,relevance:0},p=[d,{
className:"operator",relevance:0,variants:[{match:NC},{match:`\\.(\\.|${RC})+`}]
}],h="([0-9]_*)+",f="([0-9a-fA-F]_*)+",m={className:"number",relevance:0,
variants:[{match:`\\b(${h})(\\.(${h}))?([eE][+-]?(${h}))?\\b`},{
match:`\\b0x(${f})(\\.(${f}))?([pP][+-]?(${h}))?\\b`},{match:/\b0o([0-7]_*)+\b/
},{match:/\b0b([01]_*)+\b/}]},g=(e="")=>({className:"subst",variants:[{
match:wC(/\\/,e,/[0\\tnr"']/)},{match:wC(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]
}),v=(e="")=>({className:"subst",match:wC(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)
}),b=(e="")=>({className:"subst",label:"interpol",begin:wC(/\\/,e,/\(/),end:/\)/
}),O=(e="")=>({begin:wC(e,/"""/),end:wC(/"""/,e),contains:[g(e),v(e),b(e)]
}),y=(e="")=>({begin:wC(e,/"/),end:wC(/"/,e),contains:[g(e),b(e)]}),w={
className:"string",
variants:[O(),O("#"),O("##"),O("###"),y(),y("#"),y("##"),y("###")]
},x=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,
contains:[e.BACKSLASH_ESCAPE]}],k={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,
contains:x},S=e=>{const t=wC(e,/\//),n=wC(/\//,e);return{begin:t,end:n,
contains:[...x,{scope:"comment",begin:`#(?!.*${n})`,end:/$/}]}},_={
scope:"regexp",variants:[S("###"),S("##"),S("#"),k]},E={match:wC(/`/,LC,/`/)
},T=[E,{className:"variable",match:/\$\d+/},{className:"variable",
match:`\\$${MC}+`}],C=[{match:/(@|#(un)?)available/,scope:"keyword",starts:{
contains:[{begin:/\(/,end:/\)/,keywords:jC,contains:[...p,m,w]}]}},{
scope:"keyword",match:wC(/@/,xC(...QC))},{scope:"meta",match:wC(/@/,LC)}],A={
match:yC(/\b[A-Z]/),relevance:0,contains:[{className:"type",
match:wC(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,MC,"+")
},{className:"type",match:BC,relevance:0},{match:/[?!]+/,relevance:0},{
match:/\.\.\./,relevance:0},{match:wC(/\s+&\s+/,yC(BC)),relevance:0}]},P={
begin:/</,end:/>/,keywords:l,contains:[...r,...c,...C,d,A]};A.contains.push(P)
;const D={begin:/\(/,end:/\)/,relevance:0,keywords:l,contains:["self",{
match:wC(LC,/\s*:/),keywords:"_|0",relevance:0
},...r,_,...c,...u,...p,m,w,...T,...C,A]},$={begin:/</,end:/>/,
keywords:"repeat each",contains:[...r,A]},R={begin:/\(/,end:/\)/,keywords:l,
contains:[{begin:xC(yC(wC(LC,/\s*:/)),yC(wC(LC,/\s+/,LC,/\s*:/))),end:/:/,
relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",
match:LC}]},...r,...c,...p,m,w,...C,A,D],endsParent:!0,illegal:/["']/},N={
match:[/(func|macro)/,/\s+/,xC(E.match,LC,NC)],className:{1:"keyword",
3:"title.function"},contains:[$,R,t],illegal:[/\[/,/%/]},I={
match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},
contains:[$,R,t],illegal:/\[|%/},M={match:[/operator/,/\s+/,NC],className:{
1:"keyword",3:"title"}},L={begin:[/precedencegroup/,/\s+/,BC],className:{
1:"keyword",3:"title"},contains:[A],keywords:[...AC,...CC],end:/}/}
;for(const B of w.variants){const e=B.contains.find((e=>"interpol"===e.label))
;e.keywords=l;const t=[...c,...u,...p,m,w,...T];e.contains=[...t,{begin:/\(/,
end:/\)/,contains:["self",...t]}]}return{name:"Swift",keywords:l,
contains:[...r,N,I,{beginKeywords:"struct protocol class extension enum actor",
end:"\\{",excludeEnd:!0,keywords:l,contains:[e.inherit(e.TITLE_MODE,{
className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...c]
},M,L,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0
},_,...c,...u,...p,m,w,...T,...C,A,D]}},typescript:function(e){
const t=function(e){const t=e.regex,n=UC,r="<>",o="</>",i={
begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,
isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,r=e.input[n]
;if("<"===r||","===r)return void t.ignoreMatch();let o
;">"===r&&(((e,{after:t})=>{const n="</"+e[0].slice(1)
;return-1!==e.input.indexOf(n,t)})(e,{after:n})||t.ignoreMatch())
;const i=e.input.substring(n)
;((o=i.match(/^\s*=/))||(o=i.match(/^\s+extends\s+/))&&0===o.index)&&t.ignoreMatch()
}},a={$pattern:UC,keyword:FC,literal:qC,built_in:WC,"variable.language":VC
},s="[0-9](_?[0-9])*",l=`\\.(${s})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={
className:"number",variants:[{
begin:`(\\b(${c})((${l})|\\.)?|(${l}))[eE][+-]?(${s})\\b`},{
begin:`\\b(${c})\\b((${l})\\b|\\.)?|(${l})\\b`},{
begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{
begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{
begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{
begin:"\\b0[0-7]+n?\\b"}],relevance:0},d={className:"subst",begin:"\\$\\{",
end:"\\}",keywords:a,contains:[]},p={begin:"html`",end:"",starts:{end:"`",
returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,d],subLanguage:"xml"}},h={
begin:"css`",end:"",starts:{end:"`",returnEnd:!1,
contains:[e.BACKSLASH_ESCAPE,d],subLanguage:"css"}},f={begin:"gql`",end:"",
starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,d],
subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",
contains:[e.BACKSLASH_ESCAPE,d]},g={className:"comment",
variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{
begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",
begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,
excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",
endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]
}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]
},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,f,m,{match:/\$\d+/},u]
;d.contains=v.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(v)
});const b=[].concat(g,d.contains),O=b.concat([{begin:/\(/,end:/\)/,keywords:a,
contains:["self"].concat(b)}]),y={className:"params",begin:/\(/,end:/\)/,
excludeBegin:!0,excludeEnd:!0,keywords:a,contains:O},w={variants:[{
match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,t.concat(n,"(",t.concat(/\./,n),")*")],
scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{
match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},x={relevance:0,
match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
className:"title.class",keywords:{_:[...zC,...HC]}},k={variants:[{
match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],
className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],
illegal:/%/},S={
match:t.concat(/\b/,(_=[...ZC,"super","import"],t.concat("(?!",_.join("|"),")")),n,t.lookahead(/\(/)),
className:"title.function",relevance:0};var _;const E={
begin:t.concat(/\./,t.lookahead(t.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,
excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},T={
match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},
contains:[{begin:/\(\)/},y]
},C="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",A={
match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(C)],
keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]}
;return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{
PARAMS_CONTAINS:O,CLASS_REFERENCE:x},illegal:/#(?![$_A-z])/,
contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{
label:"use_strict",className:"meta",relevance:10,
begin:/^\s*['"]use (strict|asm)['"]/
},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,f,m,g,{match:/\$\d+/},u,x,{
className:"attr",begin:n+t.lookahead(":"),relevance:0},A,{
begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",
keywords:"return throw case",relevance:0,contains:[g,e.REGEXP_MODE,{
className:"function",begin:C,returnBegin:!0,end:"\\s*=>",contains:[{
className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{
className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,
excludeEnd:!0,keywords:a,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,
relevance:0},{variants:[{begin:r,end:o},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{
begin:i.begin,"on:begin":i.isTrulyOpeningTag,end:i.end}],subLanguage:"xml",
contains:[{begin:i.begin,end:i.end,skip:!0,contains:["self"]}]}]},k,{
beginKeywords:"while if switch catch for"},{
begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
returnBegin:!0,label:"func.def",contains:[y,e.inherit(e.TITLE_MODE,{begin:n,
className:"title.function"})]},{match:/\.\.\./,relevance:0},E,{match:"\\$"+n,
relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},
contains:[y]},S,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,
className:"variable.constant"},w,T,{match:/\$[(.]/}]}
}(e),n=UC,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={
beginKeywords:"namespace",end:/\{/,excludeEnd:!0,
contains:[t.exports.CLASS_REFERENCE]},i={beginKeywords:"interface",end:/\{/,
excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},
contains:[t.exports.CLASS_REFERENCE]},a={$pattern:UC,
keyword:FC.concat(["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"]),
literal:qC,built_in:WC.concat(r),"variable.language":VC},s={className:"meta",
begin:"@"+n},l=(e,t,n)=>{const r=e.contains.findIndex((e=>e.label===t))
;if(-1===r)throw new Error("can not find mode to replace")
;e.contains.splice(r,1,n)}
;return Object.assign(t.keywords,a),t.exports.PARAMS_CONTAINS.push(s),
t.contains=t.contains.concat([s,o,i]),
l(t,"shebang",e.SHEBANG()),l(t,"use_strict",{className:"meta",relevance:10,
begin:/^\s*['"]use strict['"]/
}),t.contains.find((e=>"func.def"===e.label)).relevance=0,Object.assign(t,{
name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),t},xml:XC,yaml:function(e){
const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={
className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/
},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",
variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},o=e.inherit(r,{
variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),i={
className:"number",
begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"
},a={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},s={
begin:/\{/,end:/\}/,contains:[a],illegal:"\\n",relevance:0},l={begin:"\\[",
end:"\\]",contains:[a],illegal:"\\n",relevance:0},c=[{className:"attr",
variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{
begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"
}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",
begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{
begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,
relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",
begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n
},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",
begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",
relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},i,{
className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},s,l,r],u=[...c]
;return u.pop(),u.push(o),a.contains=u,{name:"YAML",case_insensitive:!0,
aliases:["yml"],contains:c}}},mP=function(e,...t){return t=>{
(null==e?void 0:e.transform)&&(null==e?void 0:e.type)&&og(t,null==e?void 0:e.type,(t=>((null==e?void 0:e.transform)&&(null==e||e.transform(t)),
ng)))}};function gP(e){return OT().use(_E).use(W_).parse(e)}function vP(e,t=1){
const n=gP(e),r=[];return og(n,"heading",(e=>{const n=bP(e);n&&r.push({
depth:e.depth??t,value:n.value})})),r}function bP(e){if("text"===e.type)return e
;if("children"in e&&e.children)for(const t of e.children){const e=bP(t)
;if(e)return e}return null}function OP(e){var t;const n=gP(e),r=[];let o=[]
;return null==(t=n.children)||t.forEach((e=>{
"heading"===e.type?(o.length&&r.push(o),r.push([e]),o=[]):o.push(e)
})),o.length&&r.push(o),r.map((e=>function(e){
const t=OT().use(HE).use(W_).stringify({type:"root",children:e});return t.trim()
}(e)))}const yP=(e,t)=>e.map((e=>({...e,slug:t.slug(e.value)})));function wP(e){
const t=new jh,n=vP(e);return yP(n,t)}const xP=e=>{
const t=Math.min(...e.map((e=>e.depth)));return t>=1&&t<=6?t:1};function kP(e){
var t,n;if(!e)return{}
;const r=Object.keys((null==(t=null==e?void 0:e.components)?void 0:t.schemas)??{}).length?null==(n=null==e?void 0:e.components)?void 0:n.schemas:Object.keys((null==e?void 0:e.definitions)??{}).length?null==e?void 0:e.definitions:{}
;return Object.keys(r??{}).forEach((e=>{var t
;!0===(null==(t=r[e])?void 0:t["x-internal"])&&delete r[e]})),r}
const SP=e=>!!e&&!!Object.keys(kP(e)??{}).length,_P=e=>{var t
;return!!Object.keys((null==(t=null==e?void 0:e.components)?void 0:t.securitySchemes)??{}).length
},EP=(e,t)=>e.replace(/\/$/,"")+"/"+t.replace(/^\//,""),{server:TP}=mp(),{setOperation:CP,setGlobalSecurity:AP}=Kd(),{toggleApiClient:PP}=Hd(),{setActiveRequest:DP,resetActiveResponse:$P}={
readOnly:lp,activeRequest:np,activeResponse:ip,requestHistory:Jd,
requestHistoryOrder:ep,activeRequestId:tp,setActiveResponse:op,
resetActiveResponse:sp,addRequestToHistory:rp,setActiveRequest:ap}
;function RP(e,t){
const n=function({serverState:e,authenticationState:t,operation:n,globalSecurity:r}){
var o,i;const a=Dm({url:Md(e)},cf(n,{requiredOnly:!1
}),t?Xs(t,(null==(o=n.information)?void 0:o.security)??r??[]):{}),s=cf(n,{
requiredOnly:!1}),l=rf(n,"path",!1);return{id:n.operationId,name:n.name,
type:a.method,path:s.path??"",variables:l,cookies:uf(a.cookies),
query:a.queryString.map((e=>{const t=e;return{...e,enabled:t.required??!0}})),
headers:uf(a.headers),url:Md(e)??"",body:null==(i=a.postData)?void 0:i.text}}({
serverState:TP,operation:e,authenticationState:null,globalSecurity:null})
;$P(),DP(n),CP(e),AP(t),PP(n,!0)}const NP={"2.0":{
title:"A JSON Schema for Swagger 2.0 API.",
id:"http://swagger.io/v2/schema.json#",
$schema:"http://json-schema.org/draft-04/schema#",type:"object",
required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{
"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{
type:"string",enum:["2.0"],description:"The Swagger version of this document."},
info:{$ref:"#/definitions/info"},host:{type:"string",
pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",
description:"The host (name or ip) of the API. Example: 'swagger.io'"},
basePath:{type:"string",pattern:"^/",
description:"The base path to the API. Example: '/api'."},schemes:{
$ref:"#/definitions/schemesList"},consumes:{
description:"A list of MIME types accepted by the API.",allOf:[{
$ref:"#/definitions/mediaTypeList"}]},produces:{
description:"A list of MIME types the API can produce.",allOf:[{
$ref:"#/definitions/mediaTypeList"}]},paths:{$ref:"#/definitions/paths"},
definitions:{$ref:"#/definitions/definitions"},parameters:{
$ref:"#/definitions/parameterDefinitions"},responses:{
$ref:"#/definitions/responseDefinitions"},security:{
$ref:"#/definitions/security"},securityDefinitions:{
$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{
$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{
$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",
description:"General information about the API.",required:["version","title"],
additionalProperties:!1,patternProperties:{"^x-":{
$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",
description:"A unique and precise title of the API."},version:{type:"string",
description:"A semantic version number of the API."},description:{type:"string",
description:"A longer description of the API. Should be different from the title.  GitHub Flavored Markdown is allowed."
},termsOfService:{type:"string",description:"The terms of service for the API."
},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}
},contact:{type:"object",
description:"Contact information for the owners of the API.",
additionalProperties:!1,properties:{name:{type:"string",
description:"The identifying name of the contact person/organization."},url:{
type:"string",description:"The URL pointing to the contact information.",
format:"uri"},email:{type:"string",
description:"The email address of the contact person/organization.",
format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}
}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{
name:{type:"string",
description:"The name of the license type. It's encouraged to use an OSI compatible license."
},url:{type:"string",description:"The URL pointing to the license.",format:"uri"
}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{
type:"object",
description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",
patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{
$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{
type:"object",additionalProperties:{$ref:"#/definitions/schema"},
description:"One or more JSON objects describing the schemas being consumed and produced by the API."
},parameterDefinitions:{type:"object",additionalProperties:{
$ref:"#/definitions/parameter"},
description:"One or more JSON representations for parameters"},
responseDefinitions:{type:"object",additionalProperties:{
$ref:"#/definitions/response"},
description:"One or more JSON representations for responses"},externalDocs:{
type:"object",additionalProperties:!1,
description:"information about external documentation",required:["url"],
properties:{description:{type:"string"},url:{type:"string",format:"uri"}},
patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{
type:"object",additionalProperties:!0},mimeType:{type:"string",
description:"The MIME type of the HTTP message."},operation:{type:"object",
required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{
$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{
type:"string"},uniqueItems:!0},summary:{type:"string",
description:"A brief summary of the operation."},description:{type:"string",
description:"A longer description of the operation, GitHub Flavored Markdown is allowed."
},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",
description:"A unique identifier of the operation."},produces:{
description:"A list of MIME types the API can produce.",allOf:[{
$ref:"#/definitions/mediaTypeList"}]},consumes:{
description:"A list of MIME types the API can consume.",allOf:[{
$ref:"#/definitions/mediaTypeList"}]},parameters:{
$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},
schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1
},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",
additionalProperties:!1,patternProperties:{"^x-":{
$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{
$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{
$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},
options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},
patch:{$ref:"#/definitions/operation"},parameters:{
$ref:"#/definitions/parametersList"}}},responses:{type:"object",
description:"Response objects names can either be any valid HTTP status code or 'default'.",
minProperties:1,additionalProperties:!1,patternProperties:{
"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{
$ref:"#/definitions/vendorExtension"}},not:{type:"object",
additionalProperties:!1,patternProperties:{"^x-":{
$ref:"#/definitions/vendorExtension"}}}},responseValue:{oneOf:[{
$ref:"#/definitions/response"},{$ref:"#/definitions/jsonReference"}]},response:{
type:"object",required:["description"],properties:{description:{type:"string"},
schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]
},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"
}},additionalProperties:!1,patternProperties:{"^x-":{
$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",
additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",
additionalProperties:!1,required:["type"],properties:{type:{type:"string",
enum:["string","number","integer","boolean","array"]},format:{type:"string"},
items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{
$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},
maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{
$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},
exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{
$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},
pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},
minItems:{$ref:"#/definitions/minItems"},uniqueItems:{
$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{
$ref:"#/definitions/multipleOf"},description:{type:"string"}},
patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},
vendorExtension:{description:"Any property starting with x- is valid.",
additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",
required:["name","in","schema"],patternProperties:{"^x-":{
$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",
description:"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed."
},name:{type:"string",description:"The name of the parameter."},in:{
type:"string",description:"Determines the location of the parameter.",
enum:["body"]},required:{type:"boolean",
description:"Determines whether or not this parameter is required or optional.",
default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},
headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{
$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",
description:"Determines whether or not this parameter is required or optional.",
default:!1},in:{type:"string",
description:"Determines the location of the parameter.",enum:["header"]},
description:{type:"string",
description:"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed."
},name:{type:"string",description:"The name of the parameter."},type:{
type:"string",enum:["string","number","boolean","integer","array"]},format:{
type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{
$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},
maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{
$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},
exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{
$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},
pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},
minItems:{$ref:"#/definitions/minItems"},uniqueItems:{
$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{
$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{
additionalProperties:!1,patternProperties:{"^x-":{
$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",
description:"Determines whether or not this parameter is required or optional.",
default:!1},in:{type:"string",
description:"Determines the location of the parameter.",enum:["query"]},
description:{type:"string",
description:"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed."
},name:{type:"string",description:"The name of the parameter."},
allowEmptyValue:{type:"boolean",default:!1,
description:"allows sending a parameter by name only or with an empty value."},
type:{type:"string",enum:["string","number","boolean","integer","array"]},
format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},
collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{
$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},
exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{
$ref:"#/definitions/minimum"},exclusiveMinimum:{
$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"
},minLength:{$ref:"#/definitions/minLength"},pattern:{
$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},
minItems:{$ref:"#/definitions/minItems"},uniqueItems:{
$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{
$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{
additionalProperties:!1,patternProperties:{"^x-":{
$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",
description:"Determines whether or not this parameter is required or optional.",
default:!1},in:{type:"string",
description:"Determines the location of the parameter.",enum:["formData"]},
description:{type:"string",
description:"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed."
},name:{type:"string",description:"The name of the parameter."},
allowEmptyValue:{type:"boolean",default:!1,
description:"allows sending a parameter by name only or with an empty value."},
type:{type:"string",enum:["string","number","boolean","integer","array","file"]
},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},
collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{
$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},
exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{
$ref:"#/definitions/minimum"},exclusiveMinimum:{
$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"
},minLength:{$ref:"#/definitions/minLength"},pattern:{
$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},
minItems:{$ref:"#/definitions/minItems"},uniqueItems:{
$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{
$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{
additionalProperties:!1,patternProperties:{"^x-":{
$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{
required:{type:"boolean",enum:[!0],
description:"Determines whether or not this parameter is required or optional."
},in:{type:"string",description:"Determines the location of the parameter.",
enum:["path"]},description:{type:"string",
description:"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed."
},name:{type:"string",description:"The name of the parameter."},type:{
type:"string",enum:["string","number","boolean","integer","array"]},format:{
type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{
$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},
maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{
$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},
exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{
$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},
pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},
minItems:{$ref:"#/definitions/minItems"},uniqueItems:{
$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{
$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",
required:["name","in","type"],oneOf:[{
$ref:"#/definitions/headerParameterSubSchema"},{
$ref:"#/definitions/formDataParameterSubSchema"},{
$ref:"#/definitions/queryParameterSubSchema"},{
$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{
$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},
schema:{type:"object",
description:"A deterministic version of a JSON Schema object.",
patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{
$ref:{type:"string"},format:{type:"string"},title:{
$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{
$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{
$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{
$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{
$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},
exclusiveMaximum:{
$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},
minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},
exclusiveMinimum:{
$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},
maxLength:{
$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},
minLength:{
$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},
maxItems:{
$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},
minItems:{
$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
},uniqueItems:{
$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},
maxProperties:{
$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},
minProperties:{
$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
},required:{
$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{
$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},
additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],
default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"
},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{
$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,
items:{$ref:"#/definitions/schema"}},properties:{type:"object",
additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{
type:"string"},readOnly:{type:"boolean",default:!1},xml:{
$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},
example:{}},additionalProperties:!1},fileSchema:{type:"object",
description:"A deterministic version of a JSON Schema object.",
patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},
required:["type"],properties:{format:{type:"string"},title:{
$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{
$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{
$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{
$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{
type:"string",enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{
$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},
primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{
type:"string",enum:["string","number","integer","boolean","array"]},format:{
type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{
$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},
maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{
$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},
exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{
$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},
pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},
minItems:{$ref:"#/definitions/minItems"},uniqueItems:{
$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{
$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{
$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{
$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{
type:"object",additionalProperties:{type:"array",items:{type:"string"},
uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{
type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{
type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},
patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{
type:"object",additionalProperties:!1,required:["name"],properties:{name:{
type:"string"},description:{type:"string"},externalDocs:{
$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{
$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",
additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"
},{$ref:"#/definitions/apiKeySecurity"},{
$ref:"#/definitions/oauth2ImplicitSecurity"},{
$ref:"#/definitions/oauth2PasswordSecurity"},{
$ref:"#/definitions/oauth2ApplicationSecurity"},{
$ref:"#/definitions/oauth2AccessCodeSecurity"}]}},basicAuthenticationSecurity:{
type:"object",additionalProperties:!1,required:["type"],properties:{type:{
type:"string",enum:["basic"]},description:{type:"string"}},patternProperties:{
"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",
additionalProperties:!1,required:["type","name","in"],properties:{type:{
type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",
enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{
$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",
additionalProperties:!1,required:["type","flow","authorizationUrl"],properties:{
type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["implicit"]},
scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",
format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{
$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",
additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{
type:"string",enum:["oauth2"]},flow:{type:"string",enum:["password"]},scopes:{
$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},
description:{type:"string"}},patternProperties:{"^x-":{
$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{
type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],
properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",
enum:["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{
type:"string",format:"uri"},description:{type:"string"}},patternProperties:{
"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{
type:"object",additionalProperties:!1,
required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{
type:"string",enum:["oauth2"]},flow:{type:"string",enum:["accessCode"]},scopes:{
$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"
},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},
patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{
type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",
items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{
type:"array",description:"The parameters needed to send a valid API call.",
additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{
$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array",
description:"The transfer protocol of the API.",items:{type:"string",
enum:["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{
type:"string",enum:["csv","ssv","tsv","pipes"],default:"csv"},
collectionFormatWithMulti:{type:"string",
enum:["csv","ssv","tsv","pipes","multi"],default:"csv"},title:{
$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{
$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{
$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{
$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{
$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},
exclusiveMaximum:{
$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},
minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},
exclusiveMinimum:{
$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},
maxLength:{
$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},
minLength:{
$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},
maxItems:{
$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},
minItems:{
$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
},uniqueItems:{
$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{
$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{
type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{
type:"string"}}}}},"3.0":{
id:"https://spec.openapis.org/oas/3.0/schema/2021-09-28",
$schema:"http://json-schema.org/draft-04/schema#",
description:"The description of OpenAPI v3.0.x documents, as defined by https://spec.openapis.org/oas/v3.0.3",
type:"object",required:["openapi","info","paths"],properties:{openapi:{
type:"string",pattern:"^3\\.0\\.\\d(-.+)?$"},info:{$ref:"#/definitions/Info"},
externalDocs:{$ref:"#/definitions/ExternalDocumentation"},servers:{type:"array",
items:{$ref:"#/definitions/Server"}},security:{type:"array",items:{
$ref:"#/definitions/SecurityRequirement"}},tags:{type:"array",items:{
$ref:"#/definitions/Tag"},uniqueItems:!0},paths:{$ref:"#/definitions/Paths"},
components:{$ref:"#/definitions/Components"}},patternProperties:{"^x-":{}},
additionalProperties:!1,definitions:{Reference:{type:"object",required:["$ref"],
patternProperties:{"^\\$ref$":{type:"string",format:"uri-reference"}}},Info:{
type:"object",required:["title","version"],properties:{title:{type:"string"},
description:{type:"string"},termsOfService:{type:"string",format:"uri-reference"
},contact:{$ref:"#/definitions/Contact"},license:{$ref:"#/definitions/License"},
version:{type:"string"}},patternProperties:{"^x-":{}},additionalProperties:!1},
Contact:{type:"object",properties:{name:{type:"string"},url:{type:"string",
format:"uri-reference"},email:{type:"string",format:"email"}},
patternProperties:{"^x-":{}},additionalProperties:!1},License:{type:"object",
required:["name"],properties:{name:{type:"string"},url:{type:"string",
format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},
Server:{type:"object",required:["url"],properties:{url:{type:"string"},
description:{type:"string"},variables:{type:"object",additionalProperties:{
$ref:"#/definitions/ServerVariable"}}},patternProperties:{"^x-":{}},
additionalProperties:!1},ServerVariable:{type:"object",required:["default"],
properties:{enum:{type:"array",items:{type:"string"}},default:{type:"string"},
description:{type:"string"}},patternProperties:{"^x-":{}},
additionalProperties:!1},Components:{type:"object",properties:{schemas:{
type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{
$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}}},responses:{
type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{
$ref:"#/definitions/Reference"},{$ref:"#/definitions/Response"}]}}},parameters:{
type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{
$ref:"#/definitions/Reference"},{$ref:"#/definitions/Parameter"}]}}},examples:{
type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{
$ref:"#/definitions/Reference"},{$ref:"#/definitions/Example"}]}}},
requestBodies:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{
oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/RequestBody"}]}}},
headers:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{
$ref:"#/definitions/Reference"},{$ref:"#/definitions/Header"}]}}},
securitySchemes:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{
oneOf:[{$ref:"#/definitions/Reference"},{$ref:"#/definitions/SecurityScheme"}]}}
},links:{type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{
$ref:"#/definitions/Reference"},{$ref:"#/definitions/Link"}]}}},callbacks:{
type:"object",patternProperties:{"^[a-zA-Z0-9\\.\\-_]+$":{oneOf:[{
$ref:"#/definitions/Reference"},{$ref:"#/definitions/Callback"}]}}}},
patternProperties:{"^x-":{}},additionalProperties:!1},Schema:{type:"object",
properties:{title:{type:"string"},multipleOf:{type:"number",minimum:0,
exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",
default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1
},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0,
default:0},pattern:{type:"string",format:"regex"},maxItems:{type:"integer",
minimum:0},minItems:{type:"integer",minimum:0,default:0},uniqueItems:{
type:"boolean",default:!1},maxProperties:{type:"integer",minimum:0},
minProperties:{type:"integer",minimum:0,default:0},required:{type:"array",
items:{type:"string"},minItems:1,uniqueItems:!0},enum:{type:"array",items:{},
minItems:1,uniqueItems:!1},type:{type:"string",
enum:["array","boolean","integer","number","object","string"]},not:{oneOf:[{
$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},allOf:{
type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{
$ref:"#/definitions/Reference"}]}},oneOf:{type:"array",items:{oneOf:[{
$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]}},anyOf:{
type:"array",items:{oneOf:[{$ref:"#/definitions/Schema"},{
$ref:"#/definitions/Reference"}]}},items:{oneOf:[{$ref:"#/definitions/Schema"},{
$ref:"#/definitions/Reference"}]},properties:{type:"object",
additionalProperties:{oneOf:[{$ref:"#/definitions/Schema"},{
$ref:"#/definitions/Reference"}]}},additionalProperties:{oneOf:[{
$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"},{type:"boolean"}],
default:!0},description:{type:"string"},format:{type:"string"},default:{},
nullable:{type:"boolean",default:!1},discriminator:{
$ref:"#/definitions/Discriminator"},readOnly:{type:"boolean",default:!1},
writeOnly:{type:"boolean",default:!1},example:{},externalDocs:{
$ref:"#/definitions/ExternalDocumentation"},deprecated:{type:"boolean",
default:!1},xml:{$ref:"#/definitions/XML"}},patternProperties:{"^x-":{}},
additionalProperties:!1},Discriminator:{type:"object",required:["propertyName"],
properties:{propertyName:{type:"string"},mapping:{type:"object",
additionalProperties:{type:"string"}}}},XML:{type:"object",properties:{name:{
type:"string"},namespace:{type:"string",format:"uri"},prefix:{type:"string"},
attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},
patternProperties:{"^x-":{}},additionalProperties:!1},Response:{type:"object",
required:["description"],properties:{description:{type:"string"},headers:{
type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{
$ref:"#/definitions/Reference"}]}},content:{type:"object",additionalProperties:{
$ref:"#/definitions/MediaType"}},links:{type:"object",additionalProperties:{
oneOf:[{$ref:"#/definitions/Link"},{$ref:"#/definitions/Reference"}]}}},
patternProperties:{"^x-":{}},additionalProperties:!1},MediaType:{type:"object",
properties:{schema:{oneOf:[{$ref:"#/definitions/Schema"},{
$ref:"#/definitions/Reference"}]},example:{},examples:{type:"object",
additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{
$ref:"#/definitions/Reference"}]}},encoding:{type:"object",
additionalProperties:{$ref:"#/definitions/Encoding"}}},patternProperties:{
"^x-":{}},additionalProperties:!1,allOf:[{
$ref:"#/definitions/ExampleXORExamples"}]},Example:{type:"object",properties:{
summary:{type:"string"},description:{type:"string"},value:{},externalValue:{
type:"string",format:"uri-reference"}},patternProperties:{"^x-":{}},
additionalProperties:!1},Header:{type:"object",properties:{description:{
type:"string"},required:{type:"boolean",default:!1},deprecated:{type:"boolean",
default:!1},allowEmptyValue:{type:"boolean",default:!1},style:{type:"string",
enum:["simple"],default:"simple"},explode:{type:"boolean"},allowReserved:{
type:"boolean",default:!1},schema:{oneOf:[{$ref:"#/definitions/Schema"},{
$ref:"#/definitions/Reference"}]},content:{type:"object",additionalProperties:{
$ref:"#/definitions/MediaType"},minProperties:1,maxProperties:1},example:{},
examples:{type:"object",additionalProperties:{oneOf:[{
$ref:"#/definitions/Example"},{$ref:"#/definitions/Reference"}]}}},
patternProperties:{"^x-":{}},additionalProperties:!1,allOf:[{
$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"
}]},Paths:{type:"object",patternProperties:{"^\\/":{
$ref:"#/definitions/PathItem"},"^x-":{}},additionalProperties:!1},PathItem:{
type:"object",properties:{$ref:{type:"string"},summary:{type:"string"},
description:{type:"string"},servers:{type:"array",items:{
$ref:"#/definitions/Server"}},parameters:{type:"array",items:{oneOf:[{
$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},
uniqueItems:!0}},patternProperties:{
"^(get|put|post|delete|options|head|patch|trace)$":{
$ref:"#/definitions/Operation"},"^x-":{}},additionalProperties:!1},Operation:{
type:"object",required:["responses"],properties:{tags:{type:"array",items:{
type:"string"}},summary:{type:"string"},description:{type:"string"},
externalDocs:{$ref:"#/definitions/ExternalDocumentation"},operationId:{
type:"string"},parameters:{type:"array",items:{oneOf:[{
$ref:"#/definitions/Parameter"},{$ref:"#/definitions/Reference"}]},
uniqueItems:!0},requestBody:{oneOf:[{$ref:"#/definitions/RequestBody"},{
$ref:"#/definitions/Reference"}]},responses:{$ref:"#/definitions/Responses"},
callbacks:{type:"object",additionalProperties:{oneOf:[{
$ref:"#/definitions/Callback"},{$ref:"#/definitions/Reference"}]}},deprecated:{
type:"boolean",default:!1},security:{type:"array",items:{
$ref:"#/definitions/SecurityRequirement"}},servers:{type:"array",items:{
$ref:"#/definitions/Server"}}},patternProperties:{"^x-":{}},
additionalProperties:!1},Responses:{type:"object",properties:{default:{oneOf:[{
$ref:"#/definitions/Response"},{$ref:"#/definitions/Reference"}]}},
patternProperties:{"^[1-5](?:\\d{2}|XX)$":{oneOf:[{$ref:"#/definitions/Response"
},{$ref:"#/definitions/Reference"}]},"^x-":{}},minProperties:1,
additionalProperties:!1},SecurityRequirement:{type:"object",
additionalProperties:{type:"array",items:{type:"string"}}},Tag:{type:"object",
required:["name"],properties:{name:{type:"string"},description:{type:"string"},
externalDocs:{$ref:"#/definitions/ExternalDocumentation"}},patternProperties:{
"^x-":{}},additionalProperties:!1},ExternalDocumentation:{type:"object",
required:["url"],properties:{description:{type:"string"},url:{type:"string",
format:"uri-reference"}},patternProperties:{"^x-":{}},additionalProperties:!1},
ExampleXORExamples:{description:"Example and examples are mutually exclusive",
not:{required:["example","examples"]}},SchemaXORContent:{
description:"Schema and content are mutually exclusive, at least one is required",
not:{required:["schema","content"]},oneOf:[{required:["schema"]},{
required:["content"],
description:"Some properties are not allowed if content is present",allOf:[{
not:{required:["style"]}},{not:{required:["explode"]}},{not:{
required:["allowReserved"]}},{not:{required:["example"]}},{not:{
required:["examples"]}}]}]},Parameter:{type:"object",properties:{name:{
type:"string"},in:{type:"string"},description:{type:"string"},required:{
type:"boolean",default:!1},deprecated:{type:"boolean",default:!1},
allowEmptyValue:{type:"boolean",default:!1},style:{type:"string"},explode:{
type:"boolean"},allowReserved:{type:"boolean",default:!1},schema:{oneOf:[{
$ref:"#/definitions/Schema"},{$ref:"#/definitions/Reference"}]},content:{
type:"object",additionalProperties:{$ref:"#/definitions/MediaType"},
minProperties:1,maxProperties:1},example:{},examples:{type:"object",
additionalProperties:{oneOf:[{$ref:"#/definitions/Example"},{
$ref:"#/definitions/Reference"}]}}},patternProperties:{"^x-":{}},
additionalProperties:!1,required:["name","in"],allOf:[{
$ref:"#/definitions/ExampleXORExamples"},{$ref:"#/definitions/SchemaXORContent"
},{$ref:"#/definitions/ParameterLocation"}]},ParameterLocation:{
description:"Parameter location",oneOf:[{description:"Parameter in path",
required:["required"],properties:{in:{enum:["path"]},style:{
enum:["matrix","label","simple"],default:"simple"},required:{enum:[!0]}}},{
description:"Parameter in query",properties:{in:{enum:["query"]},style:{
enum:["form","spaceDelimited","pipeDelimited","deepObject"],default:"form"}}},{
description:"Parameter in header",properties:{in:{enum:["header"]},style:{
enum:["simple"],default:"simple"}}},{description:"Parameter in cookie",
properties:{in:{enum:["cookie"]},style:{enum:["form"],default:"form"}}}]},
RequestBody:{type:"object",required:["content"],properties:{description:{
type:"string"},content:{type:"object",additionalProperties:{
$ref:"#/definitions/MediaType"}},required:{type:"boolean",default:!1}},
patternProperties:{"^x-":{}},additionalProperties:!1},SecurityScheme:{oneOf:[{
$ref:"#/definitions/APIKeySecurityScheme"},{
$ref:"#/definitions/HTTPSecurityScheme"},{
$ref:"#/definitions/OAuth2SecurityScheme"},{
$ref:"#/definitions/OpenIdConnectSecurityScheme"}]},APIKeySecurityScheme:{
type:"object",required:["type","name","in"],properties:{type:{type:"string",
enum:["apiKey"]},name:{type:"string"},in:{type:"string",
enum:["header","query","cookie"]},description:{type:"string"}},
patternProperties:{"^x-":{}},additionalProperties:!1},HTTPSecurityScheme:{
type:"object",required:["scheme","type"],properties:{scheme:{type:"string"},
bearerFormat:{type:"string"},description:{type:"string"},type:{type:"string",
enum:["http"]}},patternProperties:{"^x-":{}},additionalProperties:!1,oneOf:[{
description:"Bearer",properties:{scheme:{type:"string",
pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}}},{description:"Non Bearer",not:{
required:["bearerFormat"]},properties:{scheme:{not:{type:"string",
pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}}}}]},OAuth2SecurityScheme:{type:"object",
required:["type","flows"],properties:{type:{type:"string",enum:["oauth2"]},
flows:{$ref:"#/definitions/OAuthFlows"},description:{type:"string"}},
patternProperties:{"^x-":{}},additionalProperties:!1},
OpenIdConnectSecurityScheme:{type:"object",required:["type","openIdConnectUrl"],
properties:{type:{type:"string",enum:["openIdConnect"]},openIdConnectUrl:{
type:"string",format:"uri-reference"},description:{type:"string"}},
patternProperties:{"^x-":{}},additionalProperties:!1},OAuthFlows:{type:"object",
properties:{implicit:{$ref:"#/definitions/ImplicitOAuthFlow"},password:{
$ref:"#/definitions/PasswordOAuthFlow"},clientCredentials:{
$ref:"#/definitions/ClientCredentialsFlow"},authorizationCode:{
$ref:"#/definitions/AuthorizationCodeOAuthFlow"}},patternProperties:{"^x-":{}},
additionalProperties:!1},ImplicitOAuthFlow:{type:"object",
required:["authorizationUrl","scopes"],properties:{authorizationUrl:{
type:"string",format:"uri-reference"},refreshUrl:{type:"string",
format:"uri-reference"},scopes:{type:"object",additionalProperties:{
type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},
PasswordOAuthFlow:{type:"object",required:["tokenUrl","scopes"],properties:{
tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",
format:"uri-reference"},scopes:{type:"object",additionalProperties:{
type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},
ClientCredentialsFlow:{type:"object",required:["tokenUrl","scopes"],properties:{
tokenUrl:{type:"string",format:"uri-reference"},refreshUrl:{type:"string",
format:"uri-reference"},scopes:{type:"object",additionalProperties:{
type:"string"}}},patternProperties:{"^x-":{}},additionalProperties:!1},
AuthorizationCodeOAuthFlow:{type:"object",
required:["authorizationUrl","tokenUrl","scopes"],properties:{authorizationUrl:{
type:"string",format:"uri-reference"},tokenUrl:{type:"string",
format:"uri-reference"},refreshUrl:{type:"string",format:"uri-reference"},
scopes:{type:"object",additionalProperties:{type:"string"}}},patternProperties:{
"^x-":{}},additionalProperties:!1},Link:{type:"object",properties:{operationId:{
type:"string"},operationRef:{type:"string",format:"uri-reference"},parameters:{
type:"object",additionalProperties:{}},requestBody:{},description:{type:"string"
},server:{$ref:"#/definitions/Server"}},patternProperties:{"^x-":{}},
additionalProperties:!1,not:{
description:"Operation Id and Operation Ref are mutually exclusive",
required:["operationId","operationRef"]}},Callback:{type:"object",
additionalProperties:{$ref:"#/definitions/PathItem"},patternProperties:{"^x-":{}
}},Encoding:{type:"object",properties:{contentType:{type:"string"},headers:{
type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/Header"},{
$ref:"#/definitions/Reference"}]}},style:{type:"string",
enum:["form","spaceDelimited","pipeDelimited","deepObject"]},explode:{
type:"boolean"},allowReserved:{type:"boolean",default:!1}},
additionalProperties:!1}}},3.1:{
$id:"https://spec.openapis.org/oas/3.1/schema/2022-10-07",
$schema:"https://json-schema.org/draft/2020-12/schema",
description:"The description of OpenAPI v3.1.x documents without schema validation, as defined by https://spec.openapis.org/oas/v3.1.0",
type:"object",properties:{openapi:{type:"string",pattern:"^3\\.1\\.\\d+(-.+)?$"
},info:{$ref:"#/$defs/info"},jsonSchemaDialect:{type:"string",format:"uri",
default:"https://spec.openapis.org/oas/3.1/dialect/base"},servers:{type:"array",
items:{$ref:"#/$defs/server"},default:[{url:"/"}]},paths:{$ref:"#/$defs/paths"},
webhooks:{type:"object",additionalProperties:{
$ref:"#/$defs/path-item-or-reference"}},components:{$ref:"#/$defs/components"},
security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},tags:{
type:"array",items:{$ref:"#/$defs/tag"}},externalDocs:{
$ref:"#/$defs/external-documentation"}},required:["openapi","info"],anyOf:[{
required:["paths"]},{required:["components"]},{required:["webhooks"]}],
$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{info:{
$comment:"https://spec.openapis.org/oas/v3.1.0#info-object",type:"object",
properties:{title:{type:"string"},summary:{type:"string"},description:{
type:"string"},termsOfService:{type:"string",format:"uri"},contact:{
$ref:"#/$defs/contact"},license:{$ref:"#/$defs/license"},version:{type:"string"}
},required:["title","version"],$ref:"#/$defs/specification-extensions",
unevaluatedProperties:!1},contact:{
$comment:"https://spec.openapis.org/oas/v3.1.0#contact-object",type:"object",
properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{
type:"string",format:"email"}},$ref:"#/$defs/specification-extensions",
unevaluatedProperties:!1},license:{
$comment:"https://spec.openapis.org/oas/v3.1.0#license-object",type:"object",
properties:{name:{type:"string"},identifier:{type:"string"},url:{type:"string",
format:"uri"}},required:["name"],dependentSchemas:{identifier:{not:{
required:["url"]}}},$ref:"#/$defs/specification-extensions",
unevaluatedProperties:!1},server:{
$comment:"https://spec.openapis.org/oas/v3.1.0#server-object",type:"object",
properties:{url:{type:"string",format:"uri-reference"},description:{
type:"string"},variables:{type:"object",additionalProperties:{
$ref:"#/$defs/server-variable"}}},required:["url"],
$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},
"server-variable":{
$comment:"https://spec.openapis.org/oas/v3.1.0#server-variable-object",
type:"object",properties:{enum:{type:"array",items:{type:"string"},minItems:1},
default:{type:"string"},description:{type:"string"}},required:["default"],
$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},components:{
$comment:"https://spec.openapis.org/oas/v3.1.0#components-object",type:"object",
properties:{schemas:{type:"object",additionalProperties:{$ref:"#/$defs/schema"}
},responses:{type:"object",additionalProperties:{
$ref:"#/$defs/response-or-reference"}},parameters:{type:"object",
additionalProperties:{$ref:"#/$defs/parameter-or-reference"}},examples:{
type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}},
requestBodies:{type:"object",additionalProperties:{
$ref:"#/$defs/request-body-or-reference"}},headers:{type:"object",
additionalProperties:{$ref:"#/$defs/header-or-reference"}},securitySchemes:{
type:"object",additionalProperties:{$ref:"#/$defs/security-scheme-or-reference"}
},links:{type:"object",additionalProperties:{$ref:"#/$defs/link-or-reference"}},
callbacks:{type:"object",additionalProperties:{
$ref:"#/$defs/callbacks-or-reference"}},pathItems:{type:"object",
additionalProperties:{$ref:"#/$defs/path-item-or-reference"}}},
patternProperties:{
"^(schemas|responses|parameters|examples|requestBodies|headers|securitySchemes|links|callbacks|pathItems)$":{
$comment:"Enumerating all of the property names in the regex above is necessary for unevaluatedProperties to work as expected",
propertyNames:{pattern:"^[a-zA-Z0-9._-]+$"}}},
$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},paths:{
$comment:"https://spec.openapis.org/oas/v3.1.0#paths-object",type:"object",
patternProperties:{"^/":{$ref:"#/$defs/path-item"}},
$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},"path-item":{
$comment:"https://spec.openapis.org/oas/v3.1.0#path-item-object",type:"object",
properties:{summary:{type:"string"},description:{type:"string"},servers:{
type:"array",items:{$ref:"#/$defs/server"}},parameters:{type:"array",items:{
$ref:"#/$defs/parameter-or-reference"}},get:{$ref:"#/$defs/operation"},put:{
$ref:"#/$defs/operation"},post:{$ref:"#/$defs/operation"},delete:{
$ref:"#/$defs/operation"},options:{$ref:"#/$defs/operation"},head:{
$ref:"#/$defs/operation"},patch:{$ref:"#/$defs/operation"},trace:{
$ref:"#/$defs/operation"}},$ref:"#/$defs/specification-extensions",
unevaluatedProperties:!1},"path-item-or-reference":{if:{type:"object",
required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{
$ref:"#/$defs/path-item"}},operation:{
$comment:"https://spec.openapis.org/oas/v3.1.0#operation-object",type:"object",
properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},
description:{type:"string"},externalDocs:{$ref:"#/$defs/external-documentation"
},operationId:{type:"string"},parameters:{type:"array",items:{
$ref:"#/$defs/parameter-or-reference"}},requestBody:{
$ref:"#/$defs/request-body-or-reference"},responses:{$ref:"#/$defs/responses"},
callbacks:{type:"object",additionalProperties:{
$ref:"#/$defs/callbacks-or-reference"}},deprecated:{default:!1,type:"boolean"},
security:{type:"array",items:{$ref:"#/$defs/security-requirement"}},servers:{
type:"array",items:{$ref:"#/$defs/server"}}},
$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},
"external-documentation":{
$comment:"https://spec.openapis.org/oas/v3.1.0#external-documentation-object",
type:"object",properties:{description:{type:"string"},url:{type:"string",
format:"uri"}},required:["url"],$ref:"#/$defs/specification-extensions",
unevaluatedProperties:!1},parameter:{
$comment:"https://spec.openapis.org/oas/v3.1.0#parameter-object",type:"object",
properties:{name:{type:"string"},in:{enum:["query","header","path","cookie"]},
description:{type:"string"},required:{default:!1,type:"boolean"},deprecated:{
default:!1,type:"boolean"},schema:{$ref:"#/$defs/schema"},content:{
$ref:"#/$defs/content",minProperties:1,maxProperties:1}},required:["name","in"],
oneOf:[{required:["schema"]},{required:["content"]}],if:{properties:{in:{
const:"query"}},required:["in"]},then:{properties:{allowEmptyValue:{default:!1,
type:"boolean"}}},dependentSchemas:{schema:{properties:{style:{type:"string"},
explode:{type:"boolean"}},allOf:[{$ref:"#/$defs/examples"},{
$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path"},{
$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header"},{
$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query"},{
$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-cookie"},{
$ref:"#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-form"}],$defs:{
"styles-for-path":{if:{properties:{in:{const:"path"}},required:["in"]},then:{
properties:{name:{pattern:"[^/#?]+$"},style:{default:"simple",
enum:["matrix","label","simple"]},required:{const:!0}},required:["required"]}},
"styles-for-header":{if:{properties:{in:{const:"header"}},required:["in"]},
then:{properties:{style:{default:"simple",const:"simple"}}}},
"styles-for-query":{if:{properties:{in:{const:"query"}},required:["in"]},then:{
properties:{style:{default:"form",
enum:["form","spaceDelimited","pipeDelimited","deepObject"]},allowReserved:{
default:!1,type:"boolean"}}}},"styles-for-cookie":{if:{properties:{in:{
const:"cookie"}},required:["in"]},then:{properties:{style:{default:"form",
const:"form"}}}},"styles-for-form":{if:{properties:{style:{const:"form"}},
required:["style"]},then:{properties:{explode:{default:!0}}},else:{properties:{
explode:{default:!1}}}}}}},$ref:"#/$defs/specification-extensions",
unevaluatedProperties:!1},"parameter-or-reference":{if:{type:"object",
required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{
$ref:"#/$defs/parameter"}},"request-body":{
$comment:"https://spec.openapis.org/oas/v3.1.0#request-body-object",
type:"object",properties:{description:{type:"string"},content:{
$ref:"#/$defs/content"},required:{default:!1,type:"boolean"}},
required:["content"],$ref:"#/$defs/specification-extensions",
unevaluatedProperties:!1},"request-body-or-reference":{if:{type:"object",
required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{
$ref:"#/$defs/request-body"}},content:{
$comment:"https://spec.openapis.org/oas/v3.1.0#fixed-fields-10",type:"object",
additionalProperties:{$ref:"#/$defs/media-type"},propertyNames:{
format:"media-range"}},"media-type":{
$comment:"https://spec.openapis.org/oas/v3.1.0#media-type-object",type:"object",
properties:{schema:{$ref:"#/$defs/schema"},encoding:{type:"object",
additionalProperties:{$ref:"#/$defs/encoding"}}},allOf:[{
$ref:"#/$defs/specification-extensions"},{$ref:"#/$defs/examples"}],
unevaluatedProperties:!1},encoding:{
$comment:"https://spec.openapis.org/oas/v3.1.0#encoding-object",type:"object",
properties:{contentType:{type:"string",format:"media-range"},headers:{
type:"object",additionalProperties:{$ref:"#/$defs/header-or-reference"}},style:{
default:"form",enum:["form","spaceDelimited","pipeDelimited","deepObject"]},
explode:{type:"boolean"},allowReserved:{default:!1,type:"boolean"}},allOf:[{
$ref:"#/$defs/specification-extensions"},{
$ref:"#/$defs/encoding/$defs/explode-default"}],unevaluatedProperties:!1,$defs:{
"explode-default":{if:{properties:{style:{const:"form"}},required:["style"]},
then:{properties:{explode:{default:!0}}},else:{properties:{explode:{default:!1}}
}}}},responses:{
$comment:"https://spec.openapis.org/oas/v3.1.0#responses-object",type:"object",
properties:{default:{$ref:"#/$defs/response-or-reference"}},patternProperties:{
"^[1-5](?:[0-9]{2}|XX)$":{$ref:"#/$defs/response-or-reference"}},
minProperties:1,$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1
},response:{$comment:"https://spec.openapis.org/oas/v3.1.0#response-object",
type:"object",properties:{description:{type:"string"},headers:{type:"object",
additionalProperties:{$ref:"#/$defs/header-or-reference"}},content:{
$ref:"#/$defs/content"},links:{type:"object",additionalProperties:{
$ref:"#/$defs/link-or-reference"}}},required:["description"],
$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},
"response-or-reference":{if:{type:"object",required:["$ref"]},then:{
$ref:"#/$defs/reference"},else:{$ref:"#/$defs/response"}},callbacks:{
$comment:"https://spec.openapis.org/oas/v3.1.0#callback-object",type:"object",
$ref:"#/$defs/specification-extensions",additionalProperties:{
$ref:"#/$defs/path-item-or-reference"}},"callbacks-or-reference":{if:{
type:"object",required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{
$ref:"#/$defs/callbacks"}},example:{
$comment:"https://spec.openapis.org/oas/v3.1.0#example-object",type:"object",
properties:{summary:{type:"string"},description:{type:"string"},value:!0,
externalValue:{type:"string",format:"uri"}},not:{
required:["value","externalValue"]},$ref:"#/$defs/specification-extensions",
unevaluatedProperties:!1},"example-or-reference":{if:{type:"object",
required:["$ref"]},then:{$ref:"#/$defs/reference"},else:{$ref:"#/$defs/example"}
},link:{$comment:"https://spec.openapis.org/oas/v3.1.0#link-object",
type:"object",properties:{operationRef:{type:"string",format:"uri-reference"},
operationId:{type:"string"},parameters:{$ref:"#/$defs/map-of-strings"},
requestBody:!0,description:{type:"string"},body:{$ref:"#/$defs/server"}},
oneOf:[{required:["operationRef"]},{required:["operationId"]}],
$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},
"link-or-reference":{if:{type:"object",required:["$ref"]},then:{
$ref:"#/$defs/reference"},else:{$ref:"#/$defs/link"}},header:{
$comment:"https://spec.openapis.org/oas/v3.1.0#header-object",type:"object",
properties:{description:{type:"string"},required:{default:!1,type:"boolean"},
deprecated:{default:!1,type:"boolean"},schema:{$ref:"#/$defs/schema"},content:{
$ref:"#/$defs/content",minProperties:1,maxProperties:1}},oneOf:[{
required:["schema"]},{required:["content"]}],dependentSchemas:{schema:{
properties:{style:{default:"simple",const:"simple"},explode:{default:!1,
type:"boolean"}},$ref:"#/$defs/examples"}},
$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},
"header-or-reference":{if:{type:"object",required:["$ref"]},then:{
$ref:"#/$defs/reference"},else:{$ref:"#/$defs/header"}},tag:{
$comment:"https://spec.openapis.org/oas/v3.1.0#tag-object",type:"object",
properties:{name:{type:"string"},description:{type:"string"},externalDocs:{
$ref:"#/$defs/external-documentation"}},required:["name"],
$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},reference:{
$comment:"https://spec.openapis.org/oas/v3.1.0#reference-object",type:"object",
properties:{$ref:{type:"string",format:"uri-reference"},summary:{type:"string"},
description:{type:"string"}},unevaluatedProperties:!1},schema:{
$comment:"https://spec.openapis.org/oas/v3.1.0#schema-object",
$dynamicAnchor:"meta",type:["object","boolean"]},"security-scheme":{
$comment:"https://spec.openapis.org/oas/v3.1.0#security-scheme-object",
type:"object",properties:{type:{
enum:["apiKey","http","mutualTLS","oauth2","openIdConnect"]},description:{
type:"string"}},required:["type"],allOf:[{
$ref:"#/$defs/specification-extensions"},{
$ref:"#/$defs/security-scheme/$defs/type-apikey"},{
$ref:"#/$defs/security-scheme/$defs/type-http"},{
$ref:"#/$defs/security-scheme/$defs/type-http-bearer"},{
$ref:"#/$defs/security-scheme/$defs/type-oauth2"},{
$ref:"#/$defs/security-scheme/$defs/type-oidc"}],unevaluatedProperties:!1,
$defs:{"type-apikey":{if:{properties:{type:{const:"apiKey"}},required:["type"]},
then:{properties:{name:{type:"string"},in:{enum:["query","header","cookie"]}},
required:["name","in"]}},"type-http":{if:{properties:{type:{const:"http"}},
required:["type"]},then:{properties:{scheme:{type:"string"}},required:["scheme"]
}},"type-http-bearer":{if:{properties:{type:{const:"http"},scheme:{
type:"string",pattern:"^[Bb][Ee][Aa][Rr][Ee][Rr]$"}},required:["type","scheme"]
},then:{properties:{bearerFormat:{type:"string"}}}},"type-oauth2":{if:{
properties:{type:{const:"oauth2"}},required:["type"]},then:{properties:{flows:{
$ref:"#/$defs/oauth-flows"}},required:["flows"]}},"type-oidc":{if:{properties:{
type:{const:"openIdConnect"}},required:["type"]},then:{properties:{
openIdConnectUrl:{type:"string",format:"uri"}},required:["openIdConnectUrl"]}}}
},"security-scheme-or-reference":{if:{type:"object",required:["$ref"]},then:{
$ref:"#/$defs/reference"},else:{$ref:"#/$defs/security-scheme"}},"oauth-flows":{
type:"object",properties:{implicit:{$ref:"#/$defs/oauth-flows/$defs/implicit"},
password:{$ref:"#/$defs/oauth-flows/$defs/password"},clientCredentials:{
$ref:"#/$defs/oauth-flows/$defs/client-credentials"},authorizationCode:{
$ref:"#/$defs/oauth-flows/$defs/authorization-code"}},
$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1,$defs:{
implicit:{type:"object",properties:{authorizationUrl:{type:"string",format:"uri"
},refreshUrl:{type:"string",format:"uri"},scopes:{$ref:"#/$defs/map-of-strings"}
},required:["authorizationUrl","scopes"],
$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},password:{
type:"object",properties:{tokenUrl:{type:"string",format:"uri"},refreshUrl:{
type:"string",format:"uri"},scopes:{$ref:"#/$defs/map-of-strings"}},
required:["tokenUrl","scopes"],$ref:"#/$defs/specification-extensions",
unevaluatedProperties:!1},"client-credentials":{type:"object",properties:{
tokenUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",format:"uri"},
scopes:{$ref:"#/$defs/map-of-strings"}},required:["tokenUrl","scopes"],
$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1},
"authorization-code":{type:"object",properties:{authorizationUrl:{type:"string",
format:"uri"},tokenUrl:{type:"string",format:"uri"},refreshUrl:{type:"string",
format:"uri"},scopes:{$ref:"#/$defs/map-of-strings"}},
required:["authorizationUrl","tokenUrl","scopes"],
$ref:"#/$defs/specification-extensions",unevaluatedProperties:!1}}},
"security-requirement":{
$comment:"https://spec.openapis.org/oas/v3.1.0#security-requirement-object",
type:"object",additionalProperties:{type:"array",items:{type:"string"}}},
"specification-extensions":{
$comment:"https://spec.openapis.org/oas/v3.1.0#specification-extensions",
patternProperties:{"^x-":!0}},examples:{properties:{example:!0,examples:{
type:"object",additionalProperties:{$ref:"#/$defs/example-or-reference"}}}},
"map-of-strings":{type:"object",additionalProperties:{type:"string"}}}}
},IP=Object.keys(NP),MP={
EMPTY_OR_INVALID:"Can’t find JSON, YAML or filename in data",
OPENAPI_VERSION_NOT_SUPPORTED:"Can’t find supported Swagger/OpenAPI version in specification, version must be a string.",
INVALID_REFERENCE:"Can’t resolve reference: %s",
EXTERNAL_REFERENCE_NOT_FOUND:"Can’t resolve external reference: %s",
FILE_DOES_NOT_EXIST:"File does not exist: %s",NO_CONTENT:"No content found"}
;function LP(e){for(const t of new Set(IP)){
const n="2.0"===t?"swagger":"openapi",r=e[n]
;if("string"==typeof r&&r.startsWith(t))return{version:t,specificationType:n,
specificationVersion:r}}return{version:void 0,specificationType:void 0,
specificationVersion:void 0}}function BP(e){
return null==e?void 0:e.find((e=>e.isEntrypoint))}function QP(e){
return decodeURI(e.replace(/~1/g,"/").replace(/~0/g,"~"))}function jP(e,t){
const n={}
;for(const[r,o]of Object.entries(e))Array.isArray(o)?n[r]=o.map((e=>"object"==typeof e&&null!==e?jP(e,t):e)):n[r]="object"==typeof o&&null!==o?jP(o,t):o
;return t(n)}function UP(e){const t=[]
;return e&&"object"==typeof e?(jP(e,(e=>(e.$ref&&"string"==typeof e.$ref&&!e.$ref.startsWith("#")&&t.push(e.$ref.split("#")[0]),
e))),[...new Set(t)]):t}function FP(e){
return void 0!==e&&Array.isArray(e)&&e.length>0&&e.some((e=>!0===e.isEntrypoint))
}function qP(e){if(FP(e))return e;if("string"==typeof e)try{return JSON.parse(e)
}catch(a$){return function(e,t,n){let r
;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t)
;const o=ad(e,n);if(!o)return null
;if(o.warnings.forEach((e=>oc(o.options.logLevel,e))),o.errors.length>0){
if("silent"!==o.options.logLevel)throw o.errors[0];o.errors=[]}
return o.toJS(Object.assign({reviver:r},n))}(e,{maxAliasCount:1e4})}return e}
function zP(e,t={}){if(FP(e))return e;const n=qP(e);return[{isEntrypoint:!0,
specification:n,filename:null,dir:"./",references:UP(n),...t}]}
function HP(e,t,n,r){void 0===r&&(r=[]);const o=zP(structuredClone(e)),i=BP(o)
;return a((null==n?void 0:n.specification)??i.specification,o,n??i),
a((null==n?void 0:n.specification)??i.specification,o,n??i),{
valid:0===(r=r.filter(((e,t,n)=>t===n.findIndex((t=>t.message===e.message&&t.code===e.code))))).length,
errors:r,schema:(n??BP(o)).specification};function a(e,n,o){let i
;return Object.entries(e??{}).forEach((([s,l])=>{if(void 0!==e.$ref){
const i=ZP(e.$ref,t,o,n,r);if(void 0===i)return
;delete e.$ref,"object"==typeof i&&Object.keys(i).forEach((t=>{
void 0===e[t]&&(e[t]=i[t])}))}"object"!=typeof l||function(e){try{
return JSON.stringify(e),!1}catch(t){return!0}}(l)||(i=a(l,n,o))})),{
errors:(null==i?void 0:i.errors)??[]}}}function ZP(e,t,n,r,o){
if("string"!=typeof e)return void o.push({code:"INVALID_REFERENCE",
message:MP.INVALID_REFERENCE.replace("%s",e)});const[i,a]=e.split("#",2);if(i){
const e=r.find((e=>e.filename===i));if(!e)return void o.push({
code:"EXTERNAL_REFERENCE_NOT_FOUND",
message:MP.EXTERNAL_REFERENCE_NOT_FOUND.replace("%s",i)});const n=HP(r,t,e,o)
;return void 0===a?n.schema:ZP(`#${a}`,t,e,r,o)}const s=function(e){
return e.split("/").slice(1).map(QP)}(a);try{
return s.reduce(((e,t)=>e[t]),n.specification)}catch(a$){o.push({
code:"INVALID_REFERENCE",message:MP.INVALID_REFERENCE.replace("%s",e)})}}
async function VP(e,t){const n=zP(e),r=BP(n),o=HP(n,t);return{
specification:r.specification,errors:o.errors,schema:o.schema,
...LP(r.specification)}}async function WP(e,t){var n,r,o,i,a,s;const l=[]
;if(null==(n=null==t?void 0:t.filesystem)?void 0:n.find((t=>t.filename===e)))return{
specification:null==(r=BP(t.filesystem))?void 0:r.specification,
filesystem:t.filesystem,errors:l}
;const c=null==(o=null==t?void 0:t.plugins)?void 0:o.find((t=>t.check(e)));let u
;if(c)try{u=qP(await c.get(e))}catch(V$){
if(null==t?void 0:t.throwOnError)throw new Error(MP.EXTERNAL_REFERENCE_NOT_FOUND.replace("%s",e))
;return l.push({code:"EXTERNAL_REFERENCE_NOT_FOUND",
message:MP.EXTERNAL_REFERENCE_NOT_FOUND.replace("%s",e)}),{specification:null,
filesystem:[],errors:l}}else u=qP(e);if(void 0===u){
if(null==t?void 0:t.throwOnError)throw new Error("No content to load")
;return l.push({code:"NO_CONTENT",message:MP.NO_CONTENT}),{specification:null,
filesystem:[],errors:l}}let d=zP(u,{filename:(null==t?void 0:t.filename)??null})
;const p=((null==t?void 0:t.filename)?d.find((e=>e.filename===(null==t?void 0:t.filename))):BP(d)).references??UP(u)
;if(0===p.length)return{specification:null==(i=BP(d))?void 0:i.specification,
filesystem:d,errors:l};for(const h of p){
const n=null==(a=null==t?void 0:t.plugins)?void 0:a.find((e=>e.check(h)))
;if(!n)continue;const r=n.check(h)&&n.resolvePath?n.resolvePath(e,h):h
;if(d.find((e=>e.filename===h)))continue
;const{filesystem:o,errors:i}=await WP(r,{...t,filename:h})
;l.push(...i),d=[...d,...o.map((e=>({...e,isEntrypoint:!1})))]}return{
specification:null==(s=BP(d))?void 0:s.specification,filesystem:d,errors:l}}
function XP(e){var t
;return(null==(t=e.openapi)?void 0:t.startsWith("3.0"))?(e.openapi="3.1.0",
e=jP(e,(e=>("undefined"!==e.type&&!0===e.nullable&&(e.type=["null",e.type],
delete e.nullable),
e))),e=jP(e,(e=>(!0===e.exclusiveMinimum?(e.exclusiveMinimum=e.minimum,
delete e.minimum):!1===e.exclusiveMinimum&&delete e.exclusiveMinimum,
!0===e.exclusiveMaximum?(e.exclusiveMaximum=e.maximum,
delete e.maximum):!1===e.exclusiveMaximum&&delete e.exclusiveMaximum,
e))),e=jP(e,(e=>(void 0!==e.example&&(e.examples={default:e.example
},delete e.example),e))),e=jP(e,(e=>{
if("object"===e.type&&void 0!==e.properties){
const t=Object.entries(e.properties)
;for(const[e,n]of t)"object"==typeof n&&"string"===n.type&&"binary"===n.format&&(n.contentEncoding="application/octet-stream",
delete n.format)}return e})),e=jP(e,(e=>{
if("string"!==e.type||"binary"!==e.format)return e
})),e=jP(e,(e=>"string"===e.type&&"base64"===e.format?{type:"string",
contentEncoding:"base64"}:e))):e}function YP(e){var t,n,r
;if(!(null==(t=e.swagger)?void 0:t.startsWith("2.0")))return e
;if(e.openapi="3.0.3",
delete e.swagger,console.warn("[upgradeFromTwoToThree] The upgrade from Swagger 2.0 to OpenAPI 3.0 documents is experimental and lacks features."),
e.host){const t=(null==(n=e.schemes)?void 0:n.length)?e.schemes:["http"]
;e.servers=t.map((t=>({url:`${t}://${e.host}${e.basePath??""}`
}))),delete e.basePath,delete e.schemes,delete e.host}
if(e.definitions&&("object"!=typeof e.components&&(e.components={}),
e.components.schemas=e.definitions,delete e.definitions,e=jP(e,(e=>{var t
;return(null==(t=e.$ref)?void 0:t.startsWith("#/definitions/"))&&(e.$ref=e.$ref.replace(/^#\/definitions\//,"#/components/schemas/")),
e}))),e.paths)for(const o in e.paths)if(Object.hasOwn(e.paths,o)){
const t=e.paths[o];for(const n in t)if(Object.hasOwn(t,n)){const o=t[n]
;if(o.parameters){
const t=structuredClone(o.parameters.find((e=>"body"===e.in))??{})
;if(t&&Object.keys(t).length){delete t.name,delete t.in
;const n=e.consumes??o.consumes??["application/json"]
;"object"!=typeof o.requestBody&&(o.requestBody={}),
"object"!=typeof o.requestBody.content&&(o.requestBody.content={})
;const{schema:r,...i}=t;o.requestBody={...o.requestBody,...i}
;for(const e of n)o.requestBody.content[e]={schema:r}}
o.parameters=o.parameters.filter((e=>"body"!==e.in)),delete o.consumes}
if(o.responses)for(const t in o.responses)if(Object.hasOwn(o.responses,t)){
const n=o.responses[t];if(n.schema){
const t=e.produces??o.produces??["application/json"]
;"object"!=typeof n.content&&(n.content={});for(const e of t)n.content[e]={
schema:n.schema};delete n.schema}}
delete o.produces,0===(null==(r=o.parameters)?void 0:r.length)&&delete o.parameters
}}return e}const GP={limit:20},KP=e=>{let t=0;const n={...GP,...e};return{
check:e=>"string"==typeof e&&!(!e.startsWith("http://")&&!e.startsWith("https://")),
async get(e){
if(!1!==(null==n?void 0:n.limit)&&t>=(null==n?void 0:n.limit))console.warn(`[fetchUrls] Maximum number of requests reeached (${null==n?void 0:n.limit}), skipping request`);else try{
t++;const r=await((null==n?void 0:n.fetch)?n.fetch(e):fetch(e))
;return await r.text()}catch(r){console.error("[fetchUrls]",r.message,`(${e})`)}
}}},JP=e=>{let t={}
;t=e&&"object"==typeof e?structuredClone(e):dp(),t.tags||(t.tags=[]),
t.paths||(t.paths={});const n={};Object.keys(t.webhooks??{}).forEach((e=>{var r
;Object.keys((null==(r=t.webhooks)?void 0:r[e])??{}).forEach((r=>{var o,i,a
;const s=null==(o=t.webhooks)?void 0:o[e][r]
;!0!==(null==s?void 0:s["x-internal"])&&(void 0===n[e]&&(n[e]={}),n[e][r]={
httpVerb:Qd(r),path:e,operationId:(null==s?void 0:s.operationId)||e,
name:(null==s?void 0:s.summary)||e||"",
description:(null==s?void 0:s.description)||"",
pathParameters:null==(a=null==(i=t.paths)?void 0:i[e])?void 0:a.parameters,
information:{...s}})}))})),Object.keys(t.paths).forEach((e=>{
Object.keys(t.paths[e]).filter((e=>Ws.includes(e.toUpperCase()))).forEach((n=>{
var r,o,i,a,s,l;const c=t.paths[e][n];if(void 0===c)return
;if(!0===c["x-internal"])return;const u={httpVerb:Qd(n),path:e,
operationId:c.operationId||e,name:c.summary||e||"",
description:c.description||"",information:{...c},
pathParameters:null==(o=null==(r=t.paths)?void 0:r[e])?void 0:o.parameters}
;if(c.tags&&0!==c.tags.length)c.tags.forEach((e=>{var n,r,o
;const i=null==(n=t.tags)?void 0:n.findIndex((t=>t.name===e))
;-1===i&&(null==(r=t.tags)||r.push({name:e,description:""}))
;const a=-1!==i?i:t.tags.length-1
;void 0===(null==(o=t.tags[a])?void 0:o.operations)&&(t.tags[a].operations=[]),
t.tags[a].operations.push(u)}));else{
(null==(i=t.tags)?void 0:i.find((e=>"default"===e.name)))||null==(a=t.tags)||a.push({
name:"default",description:"",operations:[]})
;const e=null==(s=t.tags)?void 0:s.findIndex((e=>"default"===e.name))
;e>=0&&(null==(l=t.tags[e])||l.operations.push(u))}}))}));return{...t,webhooks:n
}},eD=Symbol(),tD=Symbol(),nD=Symbol(),rD=Symbol(),oD=async e=>{var t
;null==(t=document.getElementById(e))||t.scrollIntoView()
},iD=e=>new Promise((t=>setTimeout(t,e))),aD=Qp(Symbol("downloadSpec"))
;const sD=async({url:e,content:t},n)=>{if(e){
const t=performance.now(),r=function(e){try{return Boolean(new URL(e))}catch{
return!1}}(e)?await dd(e,n):await dd(e),o=performance.now()
;return console.log(`fetch: ${Math.round(o-t)} ms (${e})`),
console.log("size:",Math.round(r.length/1024),"kB"),r}
const r="function"==typeof t?t():t
;return"string"==typeof r?r:"object"==typeof r?Ad(r):void 0}
;function lD({specConfig:e,proxy:t}){const n=Bn(""),r=wn(dp()),o=Bn(null)
;function i(e){return e?((e,{proxy:t}={})=>new Promise((async(n,r)=>{var o;try{
if(!e)return n(JP(dp()));const i=performance.now(),{filesystem:a}=await WP(e,{
plugins:[KP({fetch:e=>fetch(t?Js(t,e):e)})]
}),{schema:s,errors:l}=await VP(a),c=performance.now()
;return console.log(`dereference: ${Math.round(c-i)} ms`),
(null==l?void 0:l.length)&&console.warn("Please open an issue on https://github.com/scalar/scalar\n","Scalar OpenAPI Parser Warning:\n",l),
void 0===s?(r((null==(o=null==l?void 0:l[0])?void 0:o.message)??"Failed to parse the OpenAPI file."),
n(JP(dp()))):n(JP(s))}catch(i){r(i)}return n(JP(dp()))})))(e,{
proxy:t?qn(t):void 0}).then((e=>{o.value=null,Object.assign(r,{servers:[],...e})
})).catch((e=>{o.value=e.toString()})):Object.assign(r,dp())}
return li((()=>qn(e)),(async e=>{var r;if(e){
const o=null==(r=await sD(e,qn(t)))?void 0:r.trim()
;"string"==typeof o&&(n.value=o)}}),{immediate:!0,deep:!0}),li(n,(()=>{
i(n.value)})),{rawSpec:n,parsedSpec:r,specErrors:o}}function cD(e){return{
responses:Aa((()=>{if(!e.information)return[]
;const{responses:t}=e.information,n=[]
;return t?(Object.entries(t).forEach((([e,t])=>{n.push({name:e,
description:t.description,content:t.content,headers:t.headers})})),n):n}))}}
const uD=Qp(Symbol()),{getHeadingId:dD,getModelId:pD,getOperationId:hD,getSectionId:fD,getTagId:mD,getWebhookId:gD,hash:vD}=Jh(),bD=Bn(void 0),OD=wn({})
;function yD(e){var t,n
;return"alpha"===OD.tagsSorter?e.tags=null==(t=e.tags)?void 0:t.sort(((e,t)=>e.name.localeCompare(t.name))):"function"==typeof OD.tagsSorter&&(e.tags=null==(n=e.tags)?void 0:n.sort(OD.tagsSorter)),
bD.value=e}
const wD=Bn(!1),xD=Bn(!1),kD=wn($d["useSidebarContent-collapsedSidebarItems"]??{})
;function SD(e){kD[e]=!kD[e]}function _D(e,t){kD[e]=t}const ED=Bn([])
;const TD=Aa((()=>{var e,t,n,r,o,i,a,s,l,c
;const{state:u}=Hd(),d={},{openApi:{globalSecurity:p}}=Kd(),h=[];let f=null
;ED.value.forEach((e=>{var t;e.depth===xP(ED.value)?(f={id:dD(e),title:e.value,
show:!u.showApiClient,children:[]},h.push(f)):f&&(null==(t=f.children)||t.push({
id:dD(e),title:e.value,show:!u.showApiClient}))}))
;const m=null==(t=null==(e=bD.value)?void 0:e.tags)?void 0:t[0],g=m&&(1!==(null==(v=null==(n=bD.value)?void 0:n.tags)?void 0:v.length)||"default"!==v[0].name||""!==v[0].description)?null==(o=null==(r=bD.value)?void 0:r.tags)?void 0:o.filter((e=>{
var t;return(null==(t=e.operations)?void 0:t.length)>0})).map((e=>{var t;return{
id:mD(e),title:e.name,displayTitle:e["x-displayName"]??e.name,show:!0,
children:null==(t=e.operations)?void 0:t.map((t=>{var n
;const r=hD(t,e),o=t.name??t.path;return d[r]=o,{id:r,title:o,
httpVerb:t.httpVerb,
deprecated:(null==(n=t.information)?void 0:n.deprecated)??!1,show:!0,
select:()=>{u.showApiClient&&RP(t,p)}}}))}
})):null==(i=null==m?void 0:m.operations)?void 0:i.map((e=>{var t
;const n=hD(e,m),r=e.name??e.path;return d[n]=r,{id:n,title:r,
httpVerb:e.httpVerb,
deprecated:(null==(t=e.information)?void 0:t.deprecated)??!1,show:!0,
select:()=>{u.showApiClient&&RP(e,p)}}}));var v;let b=SP(bD.value)&&!wD.value?[{
id:pD(),title:"Models",show:!u.showApiClient,
children:Object.keys(kP(bD.value)??{}).map((e=>{var t;const n=pD(e)
;return d[n]=e,{id:n,title:(null==(t=kP(bD.value))?void 0:t[e]).title??e,
show:!u.showApiClient}}))
}]:[],O=(y=bD.value)&&Object.keys((null==y?void 0:y.webhooks)??{}).length?[{
id:gD(),title:"Webhooks",show:!u.showApiClient,
children:Object.keys((null==(a=bD.value)?void 0:a.webhooks)??{}).map((e=>{
var t,n;const r=gD(e)
;return d[r]=e,Object.keys((null==(n=null==(t=bD.value)?void 0:t.webhooks)?void 0:n[e])??{}).map((t=>{
var n,r,o;return{id:gD(e,t),
title:null==(o=null==(r=null==(n=bD.value)?void 0:n.webhooks)?void 0:r[e][t])?void 0:o.name,
httpVerb:t,show:!u.showApiClient}}))})).flat()}]:[];var y
;const w=(null==(s=bD.value)?void 0:s["x-tagGroups"])?null==(c=null==(l=bD.value)?void 0:l["x-tagGroups"])?void 0:c.map((e=>{
var t;const n=[];null==(t=e.tags)||t.map((e=>{
if("models"===e&&b.length>0)n.push(b[0]),
b=[];else if("webhooks"===e&&O.length>0)n.push(O[0]),O=[];else{
const t=null==g?void 0:g.find((t=>t.title===e));t&&n.push(t)}}));return{
id:e.name,title:e.name,children:n,show:!0,isGroup:!0}
})):void 0,x=[...h,...w??g??[],...O,...b];return xD.value&&x.forEach((e=>{
_D(e.id,!0),e.show=!0})),{entries:x,titles:d}})),CD=Bn(!1),AD=Aa((()=>{var e,t
;return(null==(t=null==(e=TD.value)?void 0:e.titles)?void 0:t[vD.value])??""
})),PD=e=>{const t=fD(e);if(t!==e)if(kD[t])oD(e);else{const n=uD.on((t=>{
t.id===e&&(oD(e),n())}));_D(t,!0)}};function DD(e){
return Object.assign(OD,e),(null==e?void 0:e.parsedSpec)&&(yD(e.parsedSpec),
li((()=>{var e,t
;return null==(t=null==(e=bD.value)?void 0:e.tags)?void 0:t.length}),(()=>{
var e,t;if(vD.value){const e=fD(vD.value);e&&_D(e,!0)}else{
const n=null==(t=null==(e=bD.value)?void 0:e.tags)?void 0:t[0];n&&_D(mD(n),!0)}
})),li((()=>{var e,t
;return null==(t=null==(e=bD.value)?void 0:e.info)?void 0:t.description}),(()=>{
var e,t;const n=null==(t=null==(e=bD.value)?void 0:e.info)?void 0:t.description
;return ED.value=n?function(e){const t=wP(e),n=xP(t)
;return t.filter((e=>e.depth===n||e.depth===n+1))}(n):[]}),{immediate:!0})),{
breadcrumb:AD,items:TD,isSidebarOpen:CD,collapsedSidebarItems:kD,
toggleCollapsedSidebarItem:SD,setCollapsedSidebarItem:_D,hideModels:wD,
setParsedSpec:yD,defaultOpenAllTags:xD,scrollToOperation:PD}}const $D={
targetKey:"shell",clientKey:"curl"};function RD(e){var t
;return(null==(t=LD.value.find((t=>t.key===e.targetKey)))?void 0:t.title)??e.targetKey
}function ND(e){var t,n
;return(null==(n=null==(t=LD.value.find((t=>t.key===e.targetKey)))?void 0:t.clients.find((t=>t.key===e.clientKey)))?void 0:n.title)??e.clientKey
}const ID=Aa((()=>RD(HD))),MD=Aa((()=>ND(HD)));const LD=Aa((()=>{var e
;const t=Object.keys(Am).map((e=>({...Am[e].info,
clients:Object.keys(Am[e].clientsById).map((t=>Am[e].clientsById[t].info))})))
;return null==(e=t.find((e=>"node"===e.key)))||e.clients.unshift({
description:"An HTTP/1.1 client, written from scratch for Node.js.",
key:"undici",link:"https://github.com/nodejs/undici",title:"undici"
}),function(e,t){return!0===t.value?[]:e.flatMap((e=>{var n
;return"object"!=typeof t.value?[]:Array.isArray(t.value)?(e.clients=e.clients.filter((e=>!t.value.includes(e.key))),
[e]):!0===t.value[e.key]?[]:(Array.isArray(t.value[e.key])&&(e.clients=e.clients.filter((n=>!t.value[e.key].includes(n.key)))),
(null==(n=null==e?void 0:e.clients)?void 0:n.length)?[e]:[])}))}(t,QD)})),BD={
node:["unirest"]},QD=Bn({...!0===BD?{}:BD}),jD=Bn();function UD(e){
void 0!==e&&(jD.value=e,ZD(FD()))}const FD=()=>{var e,t,n,r
;return qD(jD.value)?jD.value:qD($D)?$D:{
targetKey:null==(e=LD.value[0])?void 0:e.key,
clientKey:null==(r=null==(n=null==(t=LD.value[0])?void 0:t.clients)?void 0:n[0])?void 0:r.key
}};function qD(e){
return void 0!==e&&!!LD.value.find((t=>t.key===e.targetKey&&t.clients.find((t=>t.key===e.clientKey))))
}function zD(){Cd(HD,FD())}const HD=wn(FD()),ZD=e=>{Object.assign(HD,{...HD,...e
})},VD=()=>({httpClient:kn(HD),resetState:zD,setHttpClient:ZD,
setDefaultHttpClient:UD,excludedClients:kn(QD),setExcludedClients:e=>{
QD.value=e,Cd(HD,FD())},availableTargets:LD,getClientTitle:ND,getTargetTitle:RD,
httpTargetTitle:ID,httpClientTitle:MD});function WD(e){
"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{
throw e}))))}function XD(){let e=[],t={
addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),
t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){
let n=requestAnimationFrame(...e);t.add((()=>cancelAnimationFrame(n)))},
nextFrame(...e){t.requestAnimationFrame((()=>{t.requestAnimationFrame(...e)}))},
setTimeout(...e){let n=setTimeout(...e);t.add((()=>clearTimeout(n)))},
microTask(...e){let n={current:!0};return WD((()=>{n.current&&e[0]()
})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t)
;return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{
[t]:r})}))},group(e){let t=XD();return e(t),this.add((()=>t.dispose()))},
add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()
}),dispose(){for(let t of e.splice(0))t()}};return t}
let YD=Symbol("headlessui.useid"),GD=0;function KD(){
return $o(YD,(()=>""+ ++GD))()}function JD(e){var t
;if(null==e||null==e.value)return null;let n=null!=(t=e.value.$el)?t:e.value
;return n instanceof Node?n:null}function e$(e,t,...n){if(e in t){let r=t[e]
;return"function"==typeof r?r(...n):r}
let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`)
;throw Error.captureStackTrace&&Error.captureStackTrace(r,e$),r}
var t$=Object.defineProperty,n$=(e,t,n)=>(((e,t,n)=>{t in e?t$(e,t,{
enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n
})(e,"symbol"!=typeof t?t+"":t,n),n);let r$=new class{constructor(){
n$(this,"current",this.detect()),n$(this,"currentId",0)}set(e){
this.current!==e&&(this.currentId=0,this.current=e)}reset(){
this.set(this.detect())}nextId(){return++this.currentId}get isServer(){
return"server"===this.current}get isClient(){return"client"===this.current}
detect(){
return"undefined"==typeof window||"undefined"==typeof document?"server":"client"
}};function o$(e){if(r$.isServer)return null
;if(e instanceof Node)return e.ownerDocument
;if(null!=e&&e.hasOwnProperty("value")){let t=JD(e);if(t)return t.ownerDocument}
return document}
let i$=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",")
;var a$,s$,l$,c$=((l$=c$||{})[l$.First=1]="First",
l$[l$.Previous=2]="Previous",l$[l$.Next=4]="Next",
l$[l$.Last=8]="Last",l$[l$.WrapAround=16]="WrapAround",
l$[l$.NoScroll=32]="NoScroll",
l$),u$=((s$=u$||{})[s$.Error=0]="Error",s$[s$.Overflow=1]="Overflow",
s$[s$.Success=2]="Success",
s$[s$.Underflow=3]="Underflow",s$),d$=((a$=d$||{})[a$.Previous=-1]="Previous",
a$[a$.Next=1]="Next",a$);function p$(e=document.body){
return null==e?[]:Array.from(e.querySelectorAll(i$)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))
}var h$=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(h$||{})
;function f$(e,t=0){var n;return e!==(null==(n=o$(e))?void 0:n.body)&&e$(t,{
0:()=>e.matches(i$),1(){let t=e;for(;null!==t;){if(t.matches(i$))return!0
;t=t.parentElement}return!1}})}function m$(e){let t=o$(e);dr((()=>{
t&&!f$(t.activeElement,0)&&v$(e)}))}
var g$=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(g$||{})
;function v$(e){null==e||e.focus({preventScroll:!0})}
"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{
e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")
}),!0),document.addEventListener("click",(e=>{
1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")
}),!0));let b$=["textarea","input"].join(",");function O$(e,t=e=>e){
return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0
;let i=r.compareDocumentPosition(o)
;return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0
}))}function y$(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var i
;let a=null!=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:null==e?void 0:e.ownerDocument)?i:document,s=Array.isArray(e)?n?O$(e):e:p$(e)
;o.length>0&&s.length>1&&(s=s.filter((e=>!o.includes(e)))),
r=null!=r?r:a.activeElement;let l,c=(()=>{if(5&t)return 1;if(10&t)return-1
;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")
})(),u=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,s.indexOf(r))-1
;if(4&t)return Math.max(0,s.indexOf(r))+1;if(8&t)return s.length-1
;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")
})(),d=32&t?{preventScroll:!0}:{},p=0,h=s.length;do{if(p>=h||p+h<=0)return 0
;let e=u+p;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}
l=s[e],null==l||l.focus(d),p+=c}while(l!==a.activeElement)
;return 6&t&&function(e){var t,n
;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,b$))&&n
}(l)&&l.select(),2}function w$(){
return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0
}function x$(){return w$()||/Android/gi.test(window.navigator.userAgent)}
function k$(e,t,n){r$.isServer||ai((r=>{
document.addEventListener(e,t,n),r((()=>document.removeEventListener(e,t,n)))}))
}function S$(e,t,n){r$.isServer||ai((r=>{
window.addEventListener(e,t,n),r((()=>window.removeEventListener(e,t,n)))}))}
function _$(e,t,n=Aa((()=>!0))){function r(r,o){
if(!n.value||r.defaultPrevented)return;let i=o(r)
;if(null===i||!i.getRootNode().contains(i))return;let a=function e(t){
return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)
;for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:JD(e)
;if(null!=t&&t.contains(i)||r.composed&&r.composedPath().includes(t))return}
return!f$(i,h$.Loose)&&-1!==i.tabIndex&&r.preventDefault(),t(r,i)}let o=Bn(null)
;k$("pointerdown",(e=>{var t,r
;n.value&&(o.value=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)
}),!0),k$("mousedown",(e=>{var t,r
;n.value&&(o.value=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)
}),!0),k$("click",(e=>{x$()||o.value&&(r(e,(()=>o.value)),o.value=null)
}),!0),k$("touchend",(e=>r(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),
S$("blur",(e=>r(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)
}function E$(e,t){if(e)return e;let n=null!=t?t:"button"
;return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}
function T$(e,t){let n=Bn(E$(e.value.type,e.value.as));return Ur((()=>{
n.value=E$(e.value.type,e.value.as)})),ai((()=>{var e
;n.value||JD(t)&&JD(t)instanceof HTMLButtonElement&&(null==(e=JD(t))||!e.hasAttribute("type"))&&(n.value="button")
})),n}function C$(e){return[e.screenX,e.screenY]}function A$(){let e=Bn([-1,-1])
;return{wasMoved(t){let n=C$(t)
;return(e.value[0]!==n[0]||e.value[1]!==n[1])&&(e.value=n,!0)},update(t){
e.value=C$(t)}}}
var P$,D$=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",
e[e.Static=2]="Static",
e))(D$||{}),$$=((P$=$$||{})[P$.Unmount=0]="Unmount",P$[P$.Hidden=1]="Hidden",P$)
;function R$({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){var i
;let a=M$(r,n),s=Object.assign(o,{props:a});if(e||2&t&&a.static)return N$(s)
;if(1&t){return e$(null==(i=a.unmount)||i?0:1,{0:()=>null,1:()=>N$({...o,props:{
...a,hidden:!0,style:{display:"none"}}})})}return N$(s)}
function N$({props:e,attrs:t,slots:n,slot:r,name:o}){var i,a
;let{as:s,...l}=L$(e,["unmount","static"]),c=null==(i=n.default)?void 0:i.call(n,r),u={}
;if(r){let e=!1,t=[]
;for(let[n,o]of Object.entries(r))"boolean"==typeof o&&(e=!0),!0===o&&t.push(n)
;e&&(u["data-headlessui-state"]=t.join(" "))}if("template"===s){
if(c=I$(null!=c?c:[]),Object.keys(l).length>0||Object.keys(t).length>0){
let[e,...n]=null!=c?c:[];if(!function(e){
return null!=e&&("string"==typeof e.type||"object"==typeof e.type||"function"==typeof e.type)
}(e)||n.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(l).concat(Object.keys(t)).map((e=>e.trim())).filter(((e,t,n)=>n.indexOf(e)===t)).sort(((e,t)=>e.localeCompare(t))).map((e=>`  - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>`  - ${e}`)).join("\n")].join("\n"))
;let r=M$(null!=(a=e.props)?a:{},l,u),i=ra(e,r,!0)
;for(let t in r)t.startsWith("on")&&(i.props||(i.props={}),i.props[t]=r[t])
;return i}return Array.isArray(c)&&1===c.length?c[0]:c}
return Pa(s,Object.assign({},l,u),{default:()=>c})}function I$(e){
return e.flatMap((e=>e.type===Bi?I$(e.children):[e]))}function M$(...e){
if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={}
;for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),
n[e].push(r[e])):t[e]=r[e]
;if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))))
;for(let r in n)Object.assign(t,{[r](e,...t){let o=n[r];for(let n of o){
if(e instanceof Event&&e.defaultPrevented)return;n(e,...t)}}});return t}
function L$(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r]
;return n}
var B$=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",
e))(B$||{});let Q$=eo({name:"Hidden",props:{as:{type:[Object,String],
default:"div"},features:{type:Number,default:1}},
setup:(e,{slots:t,attrs:n})=>()=>{var r;let{features:o,...i}=e;return R$({
ourProps:{"aria-hidden":!(2&~o)||(null!=(r=i["aria-hidden"])?r:void 0),
hidden:!(4&~o)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,
padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",
whiteSpace:"nowrap",borderWidth:"0",...!(4&~o)&&!!(2&~o)&&{display:"none"}}},
theirProps:i,slot:{},attrs:n,slots:t,name:"Hidden"})}}),j$=Symbol("Context")
;var U$=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",
e[e.Opening=8]="Opening",e))(U$||{});function F$(){return $o(j$,null)}
function q$(e){Do(j$,e)}
var z$,H$=((z$=H$||{}).Space=" ",z$.Enter="Enter",z$.Escape="Escape",
z$.Backspace="Backspace",
z$.Delete="Delete",z$.ArrowLeft="ArrowLeft",z$.ArrowUp="ArrowUp",
z$.ArrowRight="ArrowRight",z$.ArrowDown="ArrowDown",z$.Home="Home",z$.End="End",
z$.PageUp="PageUp",z$.PageDown="PageDown",z$.Tab="Tab",z$);let Z$=[]
;!function(e){function t(){
"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))
}
"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),
t())}((()=>{function e(e){
e.target instanceof HTMLElement&&e.target!==document.body&&Z$[0]!==e.target&&(Z$.unshift(e.target),
Z$=Z$.filter((e=>null!=e&&e.isConnected)),Z$.splice(10))}
window.addEventListener("click",e,{capture:!0
}),window.addEventListener("mousedown",e,{capture:!0
}),window.addEventListener("focus",e,{capture:!0
}),document.body.addEventListener("click",e,{capture:!0
}),document.body.addEventListener("mousedown",e,{capture:!0
}),document.body.addEventListener("focus",e,{capture:!0})}))
;var V$,W$=((V$=W$||{})[V$.First=0]="First",
V$[V$.Previous=1]="Previous",V$[V$.Next=2]="Next",
V$[V$.Last=3]="Last",V$[V$.Specific=4]="Specific",V$[V$.Nothing=5]="Nothing",V$)
;function X$(e,t){let n=t.resolveItems();if(n.length<=0)return null
;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:
for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r
;case 1:-1===o&&(o=n.length)
;for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r
;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e
;return r;case 3:
for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r
;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r
;return r;case 5:return null;default:!function(e){
throw new Error("Unexpected object: "+e)}(e)}}function Y$(e={},t=null,n=[]){
for(let[r,o]of Object.entries(e))K$(n,G$(t,r),o);return n}function G$(e,t){
return e?e+"["+t+"]":t}function K$(e,t,n){
if(Array.isArray(n))for(let[r,o]of n.entries())K$(e,G$(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):Y$(n,t,e)
}function J$(e,t,n,r){r$.isServer||ai((o=>{
(e=null!=e?e:window).addEventListener(t,n,r),
o((()=>e.removeEventListener(t,n,r)))}))}var eR=(e=>(e[e.Forwards=0]="Forwards",
e[e.Backwards=1]="Backwards",e))(eR||{});function tR(){let e=Bn(0)
;return S$("keydown",(t=>{"Tab"===t.key&&(e.value=t.shiftKey?1:0)})),e}
function nR(e){if(!e)return new Set;if("function"==typeof e)return new Set(e())
;let t=new Set;for(let n of e.value){let e=JD(n)
;e instanceof HTMLElement&&t.add(e)}return t}
var rR=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",
e[e.TabLock=4]="TabLock",
e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",
e[e.All=30]="All",e))(rR||{});let oR=Object.assign(eo({name:"FocusTrap",props:{
as:{type:[Object,String],default:"div"},initialFocus:{type:Object,default:null},
features:{type:Number,default:30},containers:{type:[Object,Function],
default:Bn(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){
let o=Bn(null);r({el:o,$el:o});let i=Aa((()=>o$(o))),a=Bn(!1)
;Ur((()=>a.value=!0)),Hr((()=>a.value=!1)),function({ownerDocument:e},t){
let n=function(e){let t=Bn(Z$.slice());return li([e],(([e],[n])=>{
!0===n&&!1===e?WD((()=>{t.value.splice(0)
})):!1===n&&!0===e&&(t.value=Z$.slice())}),{flush:"post"}),()=>{var e
;return null!=(e=t.value.find((e=>null!=e&&e.isConnected)))?e:null}}(t)
;Ur((()=>{ai((()=>{var r,o
;t.value||(null==(r=e.value)?void 0:r.activeElement)===(null==(o=e.value)?void 0:o.body)&&v$(n())
}),{flush:"post"})})),Hr((()=>{t.value&&v$(n())}))}({ownerDocument:i
},Aa((()=>a.value&&Boolean(16&e.features))))
;let s=function({ownerDocument:e,container:t,initialFocus:n},r){
let o=Bn(null),i=Bn(!1)
;return Ur((()=>i.value=!0)),Hr((()=>i.value=!1)),Ur((()=>{li([t,n,r],((a,s)=>{
if(a.every(((e,t)=>(null==s?void 0:s[t])===e))||!r.value)return;let l=JD(t)
;l&&WD((()=>{var t,r;if(!i.value)return
;let a=JD(n),s=null==(t=e.value)?void 0:t.activeElement;if(a){
if(a===s)return void(o.value=s)}else if(l.contains(s))return void(o.value=s)
;a?v$(a):y$(l,c$.First|c$.NoScroll)===u$.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),
o.value=null==(r=e.value)?void 0:r.activeElement}))}),{immediate:!0,flush:"post"
})})),o}({ownerDocument:i,container:o,initialFocus:Aa((()=>e.initialFocus))
},Aa((()=>a.value&&Boolean(2&e.features))))
;!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){
var i;J$(null==(i=e.value)?void 0:i.defaultView,"focus",(e=>{if(!o.value)return
;let i=nR(n);JD(t)instanceof HTMLElement&&i.add(JD(t));let a=r.value
;if(!a)return;let s=e.target
;s&&s instanceof HTMLElement?iR(i,s)?(r.value=s,v$(s)):(e.preventDefault(),
e.stopPropagation(),v$(a)):v$(r.value)}),!0)}({ownerDocument:i,container:o,
containers:e.containers,previousActiveElement:s
},Aa((()=>a.value&&Boolean(8&e.features))));let l=tR();function c(e){let t=JD(o)
;t&&e$(l.value,{[eR.Forwards]:()=>{y$(t,c$.First,{skipElements:[e.relatedTarget]
})},[eR.Backwards]:()=>{y$(t,c$.Last,{skipElements:[e.relatedTarget]})}})}
let u=Bn(!1);function d(e){
"Tab"===e.key&&(u.value=!0,requestAnimationFrame((()=>{u.value=!1})))}
function p(t){if(!a.value)return;let n=nR(e.containers)
;JD(o)instanceof HTMLElement&&n.add(JD(o));let r=t.relatedTarget
;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(iR(n,r)||(u.value?y$(JD(o),e$(l.value,{
[eR.Forwards]:()=>c$.Next,[eR.Backwards]:()=>c$.Previous})|c$.WrapAround,{
relativeTo:t.target}):t.target instanceof HTMLElement&&v$(t.target)))}
return()=>{let r={ref:o,onKeydown:d,onFocusout:p
},{features:i,initialFocus:a,containers:s,...l}=e
;return Pa(Bi,[Boolean(4&i)&&Pa(Q$,{as:"button",type:"button",
"data-headlessui-focus-guard":!0,onFocus:c,features:B$.Focusable}),R$({
ourProps:r,theirProps:{...t,...l},slot:{},attrs:t,slots:n,name:"FocusTrap"
}),Boolean(4&i)&&Pa(Q$,{as:"button",type:"button",
"data-headlessui-focus-guard":!0,onFocus:c,features:B$.Focusable})])}}}),{
features:rR});function iR(e,t){for(let n of e)if(n.contains(t))return!0;return!1
}function aR(){let e;return{before({doc:t}){var n;let r=t.documentElement
;e=(null!=(n=t.defaultView)?n:window).innerWidth-r.clientWidth},
after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o
;n.style(r,"paddingRight",`${i}px`)}}}function sR(e){let t={}
;for(let n of e)Object.assign(t,n(t));return t}let lR=function(e,t){
let n=e(),r=new Set;return{getSnapshot:()=>n,
subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let i=t[e].call(n,...o)
;i&&(n=i,r.forEach((e=>e())))}}}((()=>new Map),{PUSH(e,t){var n
;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:XD(),meta:new Set}
;return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e)
;return n&&(n.count--,n.meta.delete(t)),this},
SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:sR(n)},o=[w$()?{
before({doc:e,d:t,meta:n}){function r(e){
return n.containers.flatMap((e=>e())).some((t=>t.contains(e)))}
t.microTask((()=>{var n
;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){
let n=XD()
;n.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>n.dispose()))))
}let o=null!=(n=window.scrollY)?n:window.pageYOffset,i=null
;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{
let n=t.target.closest("a");if(!n)return
;let{hash:o}=new URL(n.href),a=e.querySelector(o);a&&!r(a)&&(i=a)}catch{}}),!0),
t.addEventListener(e,"touchstart",(e=>{
if(e.target instanceof HTMLElement)if(r(e.target)){let n=e.target
;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement
;t.style(n,"overscrollBehavior","contain")
}else t.style(e.target,"touchAction","none")
})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement){
if("INPUT"===e.target.tagName)return;if(r(e.target)){let t=e.target
;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement
;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}
}),{passive:!1}),t.add((()=>{var e
;let t=null!=(e=window.scrollY)?e:window.pageYOffset
;o!==t&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({
block:"nearest"}),i=null)}))}))}}:{},aR(),{before({doc:e,d:t}){
t.style(e.documentElement,"overflow","hidden")}}]
;o.forEach((({before:e})=>null==e?void 0:e(r))),
o.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},
TEARDOWN({doc:e}){this.delete(e)}});function cR(e,t,n){let r=function(e){
let t=Qn(e.getSnapshot());return Hr(e.subscribe((()=>{t.value=e.getSnapshot()
}))),t}(lR),o=Aa((()=>{let t=e.value?r.value.get(e.value):void 0
;return!!t&&t.count>0}));return li([e,t],(([e,t],[r],o)=>{if(!e||!t)return
;lR.dispatch("PUSH",e,n);let i=!1;o((()=>{
i||(lR.dispatch("POP",null!=r?r:e,n),i=!0)}))}),{immediate:!0}),o}
lR.subscribe((()=>{let e=lR.getSnapshot(),t=new Map
;for(let[n]of e)t.set(n,n.documentElement.style.overflow)
;for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count
;(r&&!e||!r&&e)&&lR.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),
0===n.count&&lR.dispatch("TEARDOWN",n)}}));let uR=new Map,dR=new Map
;function pR(e,t=Bn(!0)){ai((n=>{var r;if(!t.value)return;let o=JD(e)
;if(!o)return;n((function(){var e;if(!o)return;let t=null!=(e=dR.get(o))?e:1
;if(1===t?dR.delete(o):dR.set(o,t-1),1!==t)return;let n=uR.get(o)
;n&&(null===n["aria-hidden"]?o.removeAttribute("aria-hidden"):o.setAttribute("aria-hidden",n["aria-hidden"]),
o.inert=n.inert,uR.delete(o))}));let i=null!=(r=dR.get(o))?r:0
;dR.set(o,i+1),0===i&&(uR.set(o,{"aria-hidden":o.getAttribute("aria-hidden"),
inert:o.inert}),o.setAttribute("aria-hidden","true"),o.inert=!0)}))}
function hR({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){
let r=Bn(null),o=o$(r);function i(){var n,i,a;let s=[]
;for(let t of e)null!==t&&(t instanceof HTMLElement?s.push(t):"value"in t&&t.value instanceof HTMLElement&&s.push(t.value))
;if(null!=t&&t.value)for(let e of t.value)s.push(e)
;for(let e of null!=(n=null==o?void 0:o.querySelectorAll("html > *, body > *"))?n:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(JD(r))||e.contains(null==(a=null==(i=JD(r))?void 0:i.getRootNode())?void 0:a.host)||s.some((t=>e.contains(t)))||s.push(e))
;return s}return{resolveContainers:i,contains:e=>i().some((t=>t.contains(e))),
mainTreeNodeRef:r,MainTreeNode:()=>null!=n?null:Pa(Q$,{features:B$.Hidden,ref:r
})}}let fR=Symbol("ForcePortalRootContext");let mR=eo({name:"ForcePortalRoot",
props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,
default:!1}},setup:(e,{slots:t,attrs:n})=>(Do(fR,e.force),()=>{
let{force:r,...o}=e;return R$({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n,
name:"ForcePortalRoot"})})}),gR=Symbol("StackContext")
;var vR=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(vR||{})
;function bR({type:e,enabled:t,element:n,onUpdate:r}){let o=$o(gR,(()=>{}))
;function i(...e){null==r||r(...e),o(...e)}Ur((()=>{li(t,((t,r)=>{
t?i(0,e,n):!0===r&&i(1,e,n)}),{immediate:!0,flush:"sync"})})),Hr((()=>{
t.value&&i(1,e,n)})),Do(gR,i)}let OR=Symbol("DescriptionContext");let yR=eo({
name:"Description",props:{as:{type:[Object,String],default:"p"},id:{type:String,
default:null}},setup(e,{attrs:t,slots:n}){var r
;let o=null!=(r=e.id)?r:`headlessui-description-${KD()}`,i=function(){
let e=$o(OR,null);if(null===e)throw new Error("Missing parent");return e}()
;return Ur((()=>Hr(i.register(o)))),()=>{
let{name:r="Description",slot:a=Bn({}),props:s={}}=i,{...l}=e;return R$({
ourProps:{...Object.entries(s).reduce(((e,[t,n])=>Object.assign(e,{[t]:Fn(n)
})),{}),id:o},theirProps:l,slot:a.value,attrs:t,slots:n,name:r})}}})
;const wR=new WeakMap;function xR(e,t){let n=t(function(e){var t
;return null!=(t=wR.get(e))?t:0}(e));return n<=0?wR.delete(e):wR.set(e,n),n}
let kR=eo({name:"Portal",props:{as:{type:[Object,String],default:"div"}},
setup(e,{slots:t,attrs:n}){
let r=Bn(null),o=Aa((()=>o$(r))),i=$o(fR,!1),a=$o(ER,null),s=Bn(!0===i||null==a?function(e){
let t=o$(e);if(!t){if(null===e)return null
;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)
}let n=t.getElementById("headlessui-portal-root");if(n)return n
;let r=t.createElement("div")
;return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)
}(r.value):a.resolveTarget());s.value&&xR(s.value,(e=>e+1));let l=Bn(!1)
;Ur((()=>{l.value=!0})),ai((()=>{i||null!=a&&(s.value=a.resolveTarget())}))
;let c=$o(SR,null),u=!1,d=ma();return li(r,(()=>{if(u||!c)return;let e=JD(r)
;e&&(Hr(c.register(e),d),u=!0)})),Hr((()=>{var e,t
;let n=null==(e=o.value)?void 0:e.getElementById("headlessui-portal-root")
;!n||s.value!==n||xR(s.value,(e=>e-1))||s.value.children.length>0||null==(t=s.value.parentElement)||t.removeChild(s.value)
})),()=>{if(!l.value||null===s.value)return null;let o={ref:r,
"data-headlessui-portal":""};return Pa(Mi,{to:s.value},R$({ourProps:o,
theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}}
}),SR=Symbol("PortalParentContext");function _R(){let e=$o(SR,null),t=Bn([])
;function n(n){let r=t.value.indexOf(n)
;-1!==r&&t.value.splice(r,1),e&&e.unregister(n)}let r={register:function(r){
return t.value.push(r),e&&e.register(r),()=>n(r)},unregister:n,portals:t}
;return[t,eo({name:"PortalWrapper",setup:(e,{slots:t})=>(Do(SR,r),()=>{var e
;return null==(e=t.default)?void 0:e.call(t)})})]}
let ER=Symbol("PortalGroupContext"),TR=eo({name:"PortalGroup",props:{as:{
type:[Object,String],default:"template"},target:{type:Object,default:null}},
setup(e,{attrs:t,slots:n}){let r=wn({resolveTarget:()=>e.target})
;return Do(ER,r),()=>{let{target:r,...o}=e;return R$({theirProps:o,ourProps:{},
slot:{},attrs:t,slots:n,name:"PortalGroup"})}}})
;var CR,AR=((CR=AR||{})[CR.Open=0]="Open",CR[CR.Closed=1]="Closed",CR)
;let PR=Symbol("DialogContext");function DR(e){let t=$o(PR,null);if(null===t){
let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`)
;throw Error.captureStackTrace&&Error.captureStackTrace(t,DR),t}return t}
let $R="DC8F892D-2EBD-447C-A4C8-A03058436FF4",RR=eo({name:"Dialog",
inheritAttrs:!1,props:{as:{type:[Object,String],default:"div"},static:{
type:Boolean,default:!1},unmount:{type:Boolean,default:!0},open:{
type:[Boolean,String],default:$R},initialFocus:{type:Object,default:null},id:{
type:String,default:null},role:{type:String,default:"dialog"}},emits:{
close:e=>!0},setup(e,{emit:t,attrs:n,slots:r,expose:o}){var i,a
;let s=null!=(i=e.id)?i:`headlessui-dialog-${KD()}`,l=Bn(!1);Ur((()=>{l.value=!0
}))
;let c=!1,u=Aa((()=>"dialog"===e.role||"alertdialog"===e.role?e.role:(c||(c=!0,
console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),
"dialog"))),d=Bn(0),p=F$(),h=Aa((()=>e.open===$R&&null!==p?(p.value&U$.Open)===U$.Open:e.open)),f=Bn(null),m=Aa((()=>o$(f)))
;if(o({el:f,$el:f
}),e.open===$R&&null===p)throw new Error("You forgot to provide an `open` prop to the `Dialog`.")
;if("boolean"!=typeof h.value)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${h.value===$R?void 0:e.open}`)
;let g=Aa((()=>l.value&&h.value?0:1)),v=Aa((()=>0===g.value)),b=Aa((()=>d.value>1)),O=null!==$o(PR,null),[y,w]=_R(),{resolveContainers:x,mainTreeNodeRef:k,MainTreeNode:S}=hR({
portals:y,defaultContainers:[Aa((()=>{var e
;return null!=(e=R.panelRef.value)?e:f.value}))]
}),_=Aa((()=>b.value?"parent":"leaf")),E=Aa((()=>null!==p&&(p.value&U$.Closing)===U$.Closing)),T=Aa((()=>!O&&!E.value&&v.value)),C=Aa((()=>{
var e,t,n
;return null!=(n=Array.from(null!=(t=null==(e=m.value)?void 0:e.querySelectorAll("body > *"))?t:[]).find((e=>"headlessui-portal-root"!==e.id&&(e.contains(JD(k))&&e instanceof HTMLElement))))?n:null
}));pR(C,T);let A=Aa((()=>!!b.value||v.value)),P=Aa((()=>{var e,t,n
;return null!=(n=Array.from(null!=(t=null==(e=m.value)?void 0:e.querySelectorAll("[data-headlessui-portal]"))?t:[]).find((e=>e.contains(JD(k))&&e instanceof HTMLElement)))?n:null
}));pR(P,A),bR({type:"Dialog",enabled:Aa((()=>0===g.value)),element:f,
onUpdate:(e,t)=>{if("Dialog"===t)return e$(e,{[vR.Add]:()=>d.value+=1,
[vR.Remove]:()=>d.value-=1})}})
;let D=function({slot:e=Bn({}),name:t="Description",props:n={}}={}){let r=Bn([])
;return Do(OR,{register:function(e){return r.value.push(e),()=>{
let t=r.value.indexOf(e);-1!==t&&r.value.splice(t,1)}},slot:e,name:t,props:n
}),Aa((()=>r.value.length>0?r.value.join(" "):void 0))}({
name:"DialogDescription",slot:Aa((()=>({open:h.value})))}),$=Bn(null),R={
titleId:$,panelRef:Bn(null),dialogState:g,setTitleId(e){$.value!==e&&($.value=e)
},close(){t("close",!1)}};Do(PR,R);let N=Aa((()=>!(!v.value||b.value)))
;_$(x,((e,t)=>{e.preventDefault(),R.close(),dr((()=>null==t?void 0:t.focus()))
}),N);let I=Aa((()=>!(b.value||0!==g.value)))
;J$(null==(a=m.value)?void 0:a.defaultView,"keydown",(e=>{
I.value&&(e.defaultPrevented||e.key===H$.Escape&&(e.preventDefault(),
e.stopPropagation(),R.close()))}));let M=Aa((()=>!(E.value||0!==g.value||O)))
;return cR(m,M,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],x]}
})),ai((e=>{if(0!==g.value)return;let t=JD(f);if(!t)return
;let n=new ResizeObserver((e=>{for(let t of e){
let e=t.target.getBoundingClientRect()
;0===e.x&&0===e.y&&0===e.width&&0===e.height&&R.close()}}))
;n.observe(t),e((()=>n.disconnect()))})),()=>{
let{open:t,initialFocus:o,...i}=e,a={...n,ref:f,id:s,role:u.value,
"aria-modal":0===g.value||void 0,"aria-labelledby":$.value,
"aria-describedby":D.value},l={open:0===g.value};return Pa(mR,{force:!0
},(()=>[Pa(kR,(()=>Pa(TR,{target:f.value},(()=>Pa(mR,{force:!1},(()=>Pa(oR,{
initialFocus:o,containers:x,features:v.value?e$(_.value,{
parent:oR.features.RestoreFocus,leaf:oR.features.All&~oR.features.FocusLock
}):oR.features.None},(()=>Pa(w,{},(()=>R$({ourProps:a,theirProps:{...i,...n},
slot:l,attrs:n,slots:r,visible:0===g.value,features:D$.RenderStrategy|D$.Static,
name:"Dialog"}))))))))))),Pa(S)]))}}}),NR=eo({name:"DialogPanel",props:{as:{
type:[Object,String],default:"div"},id:{type:String,default:null}},
setup(e,{attrs:t,slots:n,expose:r}){var o
;let i=null!=(o=e.id)?o:`headlessui-dialog-panel-${KD()}`,a=DR("DialogPanel")
;function s(e){e.stopPropagation()}return r({el:a.panelRef,$el:a.panelRef
}),()=>{let{...r}=e;return R$({ourProps:{id:i,ref:a.panelRef,onClick:s},
theirProps:r,slot:{open:0===a.dialogState.value},attrs:t,slots:n,
name:"DialogPanel"})}}}),IR=eo({name:"DialogTitle",props:{as:{
type:[Object,String],default:"h2"},id:{type:String,default:null}},
setup(e,{attrs:t,slots:n}){var r
;let o=null!=(r=e.id)?r:`headlessui-dialog-title-${KD()}`,i=DR("DialogTitle")
;return Ur((()=>{i.setTitleId(o),Hr((()=>i.setTitleId(null)))})),()=>{
let{...r}=e;return R$({ourProps:{id:o},theirProps:r,slot:{
open:0===i.dialogState.value},attrs:t,slots:n,name:"DialogTitle"})}}}),MR=yR
;var LR=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(LR||{})
;let BR=Symbol("DisclosureContext");function QR(e){let t=$o(BR,null)
;if(null===t){
let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`)
;throw Error.captureStackTrace&&Error.captureStackTrace(t,QR),t}return t}
let jR=Symbol("DisclosurePanelContext");let UR=eo({name:"Disclosure",props:{as:{
type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}
},setup(e,{slots:t,attrs:n}){
let r=Bn(e.defaultOpen?0:1),o=Bn(null),i=Bn(null),a={
buttonId:Bn(`headlessui-disclosure-button-${KD()}`),
panelId:Bn(`headlessui-disclosure-panel-${KD()}`),disclosureState:r,panel:o,
button:i,toggleDisclosure(){r.value=e$(r.value,{0:1,1:0})},closeDisclosure(){
1!==r.value&&(r.value=1)},close(e){a.closeDisclosure()
;let t=e?e instanceof HTMLElement?e:e.value instanceof HTMLElement?JD(e):JD(a.button):JD(a.button)
;null==t||t.focus()}};return Do(BR,a),q$(Aa((()=>e$(r.value,{0:U$.Open,
1:U$.Closed})))),()=>{let{defaultOpen:o,...i}=e;return R$({theirProps:i,
ourProps:{},slot:{open:0===r.value,close:a.close},slots:t,attrs:n,
name:"Disclosure"})}}}),FR=eo({name:"DisclosureButton",props:{as:{
type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{
type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){
let o=QR("DisclosureButton"),i=$o(jR,null),a=Aa((()=>null!==i&&i.value===o.panelId.value))
;Ur((()=>{a.value||null!==e.id&&(o.buttonId.value=e.id)})),Hr((()=>{
a.value||(o.buttonId.value=null)}));let s=Bn(null);r({el:s,$el:s
}),a.value||ai((()=>{o.button.value=s.value}));let l=T$(Aa((()=>({as:e.as,
type:t.type}))),s);function c(){var t
;e.disabled||(a.value?(o.toggleDisclosure(),
null==(t=JD(o.button))||t.focus()):o.toggleDisclosure())}function u(t){var n
;if(!e.disabled)if(a.value)switch(t.key){case H$.Space:case H$.Enter:
t.preventDefault(),
t.stopPropagation(),o.toggleDisclosure(),null==(n=JD(o.button))||n.focus()
}else switch(t.key){case H$.Space:case H$.Enter:
t.preventDefault(),t.stopPropagation(),o.toggleDisclosure()}}function d(e){
if(e.key===H$.Space)e.preventDefault()}return()=>{var r;let i={
open:0===o.disclosureState.value},{id:p,...h}=e;return R$({ourProps:a.value?{
ref:s,type:l.value,onClick:c,onKeydown:u}:{id:null!=(r=o.buttonId.value)?r:p,
ref:s,type:l.value,"aria-expanded":0===o.disclosureState.value,
"aria-controls":0===o.disclosureState.value||JD(o.panel)?o.panelId.value:void 0,
disabled:!!e.disabled||void 0,onClick:c,onKeydown:u,onKeyup:d},theirProps:h,
slot:i,attrs:t,slots:n,name:"DisclosureButton"})}}}),qR=eo({
name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{
type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,
default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=QR("DisclosurePanel")
;Ur((()=>{null!==e.id&&(o.panelId.value=e.id)})),Hr((()=>{o.panelId.value=null
})),r({el:o.panel,$el:o.panel}),Do(jR,o.panelId)
;let i=F$(),a=Aa((()=>null!==i?(i.value&U$.Open)===U$.Open:0===o.disclosureState.value))
;return()=>{var r;let i={open:0===o.disclosureState.value,close:o.close
},{id:s,...l}=e;return R$({ourProps:{id:null!=(r=o.panelId.value)?r:s,
ref:o.panel},theirProps:l,slot:i,attrs:t,slots:n,
features:D$.RenderStrategy|D$.Static,visible:a.value,name:"DisclosurePanel"})}}
}),zR=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g
;function HR(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0)
;if(!(o instanceof HTMLElement))return r;let i=!1
;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),
i=!0;let a=i?null!=(n=o.innerText)?n:"":r
;return zR.test(a)&&(a=a.replace(zR,"")),a}function ZR(e){let t=Bn(""),n=Bn("")
;return()=>{let r=JD(e);if(!r)return"";let o=r.innerText
;if(t.value===o)return n.value;let i=function(e){
let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim()
;let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{
let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label")
;return"string"==typeof e?e.trim():HR(t).trim()}return null})).filter(Boolean)
;if(e.length>0)return e.join(", ")}return HR(e).trim()}(r).trim().toLowerCase()
;return t.value=o,n.value=i,i}}function VR(e,t){return e===t}
var WR=(e=>(e[e.Open=0]="Open",
e[e.Closed=1]="Closed",e))(WR||{}),XR=(e=>(e[e.Single=0]="Single",
e[e.Multi=1]="Multi",
e))(XR||{}),YR=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(YR||{})
;let GR=Symbol("ListboxContext");function KR(e){let t=$o(GR,null);if(null===t){
let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`)
;throw Error.captureStackTrace&&Error.captureStackTrace(t,KR),t}return t}
let JR=eo({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{
type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},
by:{type:[String,Function],default:()=>VR},horizontal:{type:[Boolean],default:!1
},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{
type:[Object,String,Number,Boolean],default:void 0},form:{type:String,
optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}
},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){
let o=Bn(1),i=Bn(null),a=Bn(null),s=Bn(null),l=Bn([]),c=Bn(""),u=Bn(null),d=Bn(1)
;function p(e=e=>e){
let t=null!==u.value?l.value[u.value]:null,n=O$(e(l.value.slice()),(e=>JD(e.dataRef.domRef))),r=t?n.indexOf(t):null
;return-1===r&&(r=null),{options:n,activeOptionIndex:r}}
let h=Aa((()=>e.multiple?1:0)),[f,m]=function(e,t,n){
let r=Bn(null==n?void 0:n.value),o=Aa((()=>void 0!==e.value))
;return[Aa((()=>o.value?e.value:r.value)),function(e){
return o.value||(r.value=e),null==t?void 0:t(e)}]
}(Aa((()=>e.modelValue)),(e=>r("update:modelValue",e)),Aa((()=>e.defaultValue))),g=Aa((()=>void 0===f.value?e$(h.value,{
1:[],0:void 0}):f.value)),v={listboxState:o,value:g,mode:h,compare(t,n){
if("string"==typeof e.by){let r=e.by
;return(null==t?void 0:t[r])===(null==n?void 0:n[r])}return e.by(t,n)},
orientation:Aa((()=>e.horizontal?"horizontal":"vertical")),labelRef:i,
buttonRef:a,optionsRef:s,disabled:Aa((()=>e.disabled)),options:l,searchQuery:c,
activeOptionIndex:u,activationTrigger:d,closeListbox(){
e.disabled||1!==o.value&&(o.value=1,u.value=null)},openListbox(){
e.disabled||0!==o.value&&(o.value=0)},goToOption(t,n,r){
if(e.disabled||1===o.value)return;let i=p(),a=X$(t===W$.Specific?{
focus:W$.Specific,id:n}:{focus:t},{resolveItems:()=>i.options,
resolveActiveIndex:()=>i.activeOptionIndex,resolveId:e=>e.id,
resolveDisabled:e=>e.dataRef.disabled})
;c.value="",u.value=a,d.value=null!=r?r:1,l.value=i.options},search(t){
if(e.disabled||1===o.value)return;let n=""!==c.value?0:1
;c.value+=t.toLowerCase()
;let r=(null!==u.value?l.value.slice(u.value+n).concat(l.value.slice(0,u.value+n)):l.value).find((e=>e.dataRef.textValue.startsWith(c.value)&&!e.dataRef.disabled)),i=r?l.value.indexOf(r):-1
;-1===i||i===u.value||(u.value=i,d.value=1)},clearSearch(){
e.disabled||1!==o.value&&""!==c.value&&(c.value="")},registerOption(e,t){
let n=p((n=>[...n,{id:e,dataRef:t}]))
;l.value=n.options,u.value=n.activeOptionIndex},unregisterOption(e){
let t=p((t=>{let n=t.findIndex((t=>t.id===e));return-1!==n&&t.splice(n,1),t}))
;l.value=t.options,u.value=t.activeOptionIndex,d.value=1},theirOnChange(t){
e.disabled||m(t)},select(t){e.disabled||m(e$(h.value,{0:()=>t,1:()=>{
let e=Pn(v.value.value).slice(),n=Pn(t),r=e.findIndex((e=>v.compare(n,Pn(e))))
;return-1===r?e.push(n):e.splice(r,1),e}}))}};_$([a,s],((e,t)=>{var n
;v.closeListbox(),
f$(t,h$.Loose)||(e.preventDefault(),null==(n=JD(a))||n.focus())
}),Aa((()=>0===o.value))),Do(GR,v),q$(Aa((()=>e$(o.value,{0:U$.Open,1:U$.Closed
}))));let b=Aa((()=>{var e;return null==(e=JD(a))?void 0:e.closest("form")}))
;return Ur((()=>{li([b],(()=>{
if(b.value&&void 0!==e.defaultValue)return b.value.addEventListener("reset",t),
()=>{var e;null==(e=b.value)||e.removeEventListener("reset",t)};function t(){
v.theirOnChange(e.defaultValue)}}),{immediate:!0})})),()=>{
let{name:r,modelValue:i,disabled:a,form:s,...l}=e,c={open:0===o.value,
disabled:a,value:g.value};return Pa(Bi,[...null!=r&&null!=g.value?Y$({
[r]:g.value}).map((([e,t])=>Pa(Q$,function(e){let t=Object.assign({},e)
;for(let n in t)void 0===t[n]&&delete t[n];return t}({features:B$.Hidden,key:e,
as:"input",type:"hidden",hidden:!0,readOnly:!0,form:s,disabled:a,name:e,value:t
})))):[],R$({ourProps:{},theirProps:{...n,
...L$(l,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},
slot:c,slots:t,attrs:n,name:"Listbox"})])}}}),eN=eo({name:"ListboxButton",
props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}
},setup(e,{attrs:t,slots:n,expose:r}){var o
;let i=null!=(o=e.id)?o:`headlessui-listbox-button-${KD()}`,a=KR("ListboxButton")
;function s(e){switch(e.key){case H$.Space:case H$.Enter:case H$.ArrowDown:
e.preventDefault(),a.openListbox(),dr((()=>{var e
;null==(e=JD(a.optionsRef))||e.focus({preventScroll:!0
}),a.value.value||a.goToOption(W$.First)}));break;case H$.ArrowUp:
e.preventDefault(),a.openListbox(),dr((()=>{var e
;null==(e=JD(a.optionsRef))||e.focus({preventScroll:!0
}),a.value.value||a.goToOption(W$.Last)}))}}function l(e){
if(e.key===H$.Space)e.preventDefault()}function c(e){
a.disabled.value||(0===a.listboxState.value?(a.closeListbox(),dr((()=>{var e
;return null==(e=JD(a.buttonRef))?void 0:e.focus({preventScroll:!0})
}))):(e.preventDefault(),a.openListbox(),function(e){
requestAnimationFrame((()=>requestAnimationFrame(e)))}((()=>{var e
;return null==(e=JD(a.optionsRef))?void 0:e.focus({preventScroll:!0})}))))}r({
el:a.buttonRef,$el:a.buttonRef});let u=T$(Aa((()=>({as:e.as,type:t.type
}))),a.buttonRef);return()=>{var r,o;let d={open:0===a.listboxState.value,
disabled:a.disabled.value,value:a.value.value},{...p}=e;return R$({ourProps:{
ref:a.buttonRef,id:i,type:u.value,"aria-haspopup":"listbox",
"aria-controls":null==(r=JD(a.optionsRef))?void 0:r.id,
"aria-expanded":0===a.listboxState.value,
"aria-labelledby":a.labelRef.value?[null==(o=JD(a.labelRef))?void 0:o.id,i].join(" "):void 0,
disabled:!0===a.disabled.value||void 0,onKeydown:s,onKeyup:l,onClick:c},
theirProps:p,slot:d,attrs:t,slots:n,name:"ListboxButton"})}}}),tN=eo({
name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{
type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,
default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o
;let i=null!=(o=e.id)?o:`headlessui-listbox-options-${KD()}`,a=KR("ListboxOptions"),s=Bn(null)
;function l(e){switch(s.value&&clearTimeout(s.value),e.key){case H$.Space:
if(""!==a.searchQuery.value)return e.preventDefault(),
e.stopPropagation(),a.search(e.key);case H$.Enter:
if(e.preventDefault(),e.stopPropagation(),null!==a.activeOptionIndex.value){
let e=a.options.value[a.activeOptionIndex.value];a.select(e.dataRef.value)}
0===a.mode.value&&(a.closeListbox(),dr((()=>{var e
;return null==(e=JD(a.buttonRef))?void 0:e.focus({preventScroll:!0})})));break
;case e$(a.orientation.value,{vertical:H$.ArrowDown,horizontal:H$.ArrowRight}):
return e.preventDefault(),e.stopPropagation(),a.goToOption(W$.Next)
;case e$(a.orientation.value,{vertical:H$.ArrowUp,horizontal:H$.ArrowLeft}):
return e.preventDefault(),e.stopPropagation(),a.goToOption(W$.Previous)
;case H$.Home:case H$.PageUp:
return e.preventDefault(),e.stopPropagation(),a.goToOption(W$.First)
;case H$.End:case H$.PageDown:
return e.preventDefault(),e.stopPropagation(),a.goToOption(W$.Last)
;case H$.Escape:
e.preventDefault(),e.stopPropagation(),a.closeListbox(),dr((()=>{var e
;return null==(e=JD(a.buttonRef))?void 0:e.focus({preventScroll:!0})}));break
;case H$.Tab:e.preventDefault(),e.stopPropagation();break;default:
1===e.key.length&&(a.search(e.key),
s.value=setTimeout((()=>a.clearSearch()),350))}}r({el:a.optionsRef,
$el:a.optionsRef})
;let c=F$(),u=Aa((()=>null!==c?(c.value&U$.Open)===U$.Open:0===a.listboxState.value))
;return()=>{var r,o;let s={open:0===a.listboxState.value},{...c}=e;return R$({
ourProps:{
"aria-activedescendant":null===a.activeOptionIndex.value||null==(r=a.options.value[a.activeOptionIndex.value])?void 0:r.id,
"aria-multiselectable":1===a.mode.value||void 0,
"aria-labelledby":null==(o=JD(a.buttonRef))?void 0:o.id,
"aria-orientation":a.orientation.value,id:i,onKeydown:l,role:"listbox",
tabIndex:0,ref:a.optionsRef},theirProps:c,slot:s,attrs:t,slots:n,
features:D$.RenderStrategy|D$.Static,visible:u.value,name:"ListboxOptions"})}}
}),nN=eo({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},
value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},
id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:r}){var o
;let i=null!=(o=e.id)?o:`headlessui-listbox-option-${KD()}`,a=KR("ListboxOption"),s=Bn(null)
;r({el:s,$el:s})
;let l=Aa((()=>null!==a.activeOptionIndex.value&&a.options.value[a.activeOptionIndex.value].id===i)),c=Aa((()=>e$(a.mode.value,{
0:()=>a.compare(Pn(a.value.value),Pn(e.value)),
1:()=>Pn(a.value.value).some((t=>a.compare(Pn(t),Pn(e.value))))
}))),u=Aa((()=>e$(a.mode.value,{1:()=>{var e;let t=Pn(a.value.value)
;return(null==(e=a.options.value.find((e=>t.some((t=>a.compare(Pn(t),Pn(e.dataRef.value)))))))?void 0:e.id)===i
},0:()=>c.value}))),d=ZR(s),p=Aa((()=>({disabled:e.disabled,value:e.value,
get textValue(){return d()},domRef:s})));function h(t){
if(e.disabled)return t.preventDefault()
;a.select(e.value),0===a.mode.value&&(a.closeListbox(),dr((()=>{var e
;return null==(e=JD(a.buttonRef))?void 0:e.focus({preventScroll:!0})})))}
function f(){if(e.disabled)return a.goToOption(W$.Nothing)
;a.goToOption(W$.Specific,i)}
Ur((()=>a.registerOption(i,p))),Hr((()=>a.unregisterOption(i))),Ur((()=>{
li([a.listboxState,c],(()=>{0===a.listboxState.value&&c.value&&e$(a.mode.value,{
1:()=>{u.value&&a.goToOption(W$.Specific,i)},0:()=>{a.goToOption(W$.Specific,i)}
})}),{immediate:!0})})),ai((()=>{
0===a.listboxState.value&&l.value&&0!==a.activationTrigger.value&&dr((()=>{
var e,t
;return null==(t=null==(e=JD(s))?void 0:e.scrollIntoView)?void 0:t.call(e,{
block:"nearest"})}))}));let m=A$();function g(e){m.update(e)}function v(t){
m.wasMoved(t)&&(e.disabled||l.value||a.goToOption(W$.Specific,i,0))}
function b(t){m.wasMoved(t)&&(e.disabled||l.value&&a.goToOption(W$.Nothing))}
return()=>{let{disabled:r}=e,o={active:l.value,selected:c.value,disabled:r
},{value:a,disabled:u,...d}=e;return R$({ourProps:{id:i,ref:s,role:"option",
tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,
"aria-selected":c.value,disabled:void 0,onClick:h,onFocus:f,onPointerenter:g,
onMouseenter:g,onPointermove:v,onMousemove:v,onPointerleave:b,onMouseleave:b},
theirProps:d,slot:o,attrs:n,slots:t,name:"ListboxOption"})}}})
;var rN=(e=>(e[e.Open=0]="Open",
e[e.Closed=1]="Closed",e))(rN||{}),oN=(e=>(e[e.Pointer=0]="Pointer",
e[e.Other=1]="Other",e))(oN||{});let iN=Symbol("MenuContext");function aN(e){
let t=$o(iN,null);if(null===t){
let t=new Error(`<${e} /> is missing a parent <Menu /> component.`)
;throw Error.captureStackTrace&&Error.captureStackTrace(t,aN),t}return t}
let sN=eo({name:"Menu",props:{as:{type:[Object,String],default:"template"}},
setup(e,{slots:t,attrs:n}){
let r=Bn(1),o=Bn(null),i=Bn(null),a=Bn([]),s=Bn(""),l=Bn(null),c=Bn(1)
;function u(e=e=>e){
let t=null!==l.value?a.value[l.value]:null,n=O$(e(a.value.slice()),(e=>JD(e.dataRef.domRef))),r=t?n.indexOf(t):null
;return-1===r&&(r=null),{items:n,activeItemIndex:r}}let d={menuState:r,
buttonRef:o,itemsRef:i,items:a,searchQuery:s,activeItemIndex:l,
activationTrigger:c,closeMenu:()=>{r.value=1,l.value=null},
openMenu:()=>r.value=0,goToItem(e,t,n){let r=u(),o=X$(e===W$.Specific?{
focus:W$.Specific,id:t}:{focus:e},{resolveItems:()=>r.items,
resolveActiveIndex:()=>r.activeItemIndex,resolveId:e=>e.id,
resolveDisabled:e=>e.dataRef.disabled})
;s.value="",l.value=o,c.value=null!=n?n:1,a.value=r.items},search(e){
let t=""!==s.value?0:1;s.value+=e.toLowerCase()
;let n=(null!==l.value?a.value.slice(l.value+t).concat(a.value.slice(0,l.value+t)):a.value).find((e=>e.dataRef.textValue.startsWith(s.value)&&!e.dataRef.disabled)),r=n?a.value.indexOf(n):-1
;-1===r||r===l.value||(l.value=r,c.value=1)},clearSearch(){s.value=""},
registerItem(e,t){let n=u((n=>[...n,{id:e,dataRef:t}]))
;a.value=n.items,l.value=n.activeItemIndex,c.value=1},unregisterItem(e){
let t=u((t=>{let n=t.findIndex((t=>t.id===e));return-1!==n&&t.splice(n,1),t}))
;a.value=t.items,l.value=t.activeItemIndex,c.value=1}};return _$([o,i],((e,t)=>{
var n
;d.closeMenu(),f$(t,h$.Loose)||(e.preventDefault(),null==(n=JD(o))||n.focus())
}),Aa((()=>0===r.value))),Do(iN,d),q$(Aa((()=>e$(r.value,{0:U$.Open,1:U$.Closed
})))),()=>{let o={open:0===r.value,close:d.closeMenu};return R$({ourProps:{},
theirProps:e,slot:o,slots:t,attrs:n,name:"Menu"})}}}),lN=eo({name:"MenuButton",
props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],
default:"button"},id:{type:String,default:null}},
setup(e,{attrs:t,slots:n,expose:r}){var o
;let i=null!=(o=e.id)?o:`headlessui-menu-button-${KD()}`,a=aN("MenuButton")
;function s(e){switch(e.key){case H$.Space:case H$.Enter:case H$.ArrowDown:
e.preventDefault(),e.stopPropagation(),a.openMenu(),dr((()=>{var e
;null==(e=JD(a.itemsRef))||e.focus({preventScroll:!0}),a.goToItem(W$.First)}))
;break;case H$.ArrowUp:
e.preventDefault(),e.stopPropagation(),a.openMenu(),dr((()=>{var e
;null==(e=JD(a.itemsRef))||e.focus({preventScroll:!0}),a.goToItem(W$.Last)}))}}
function l(e){if(e.key===H$.Space)e.preventDefault()}function c(t){
e.disabled||(0===a.menuState.value?(a.closeMenu(),dr((()=>{var e
;return null==(e=JD(a.buttonRef))?void 0:e.focus({preventScroll:!0})
}))):(t.preventDefault(),a.openMenu(),function(e){
requestAnimationFrame((()=>requestAnimationFrame(e)))}((()=>{var e
;return null==(e=JD(a.itemsRef))?void 0:e.focus({preventScroll:!0})}))))}r({
el:a.buttonRef,$el:a.buttonRef});let u=T$(Aa((()=>({as:e.as,type:t.type
}))),a.buttonRef);return()=>{var r;let o={open:0===a.menuState.value},{...d}=e
;return R$({ourProps:{ref:a.buttonRef,id:i,type:u.value,"aria-haspopup":"menu",
"aria-controls":null==(r=JD(a.itemsRef))?void 0:r.id,
"aria-expanded":0===a.menuState.value,onKeydown:s,onKeyup:l,onClick:c},
theirProps:d,slot:o,attrs:t,slots:n,name:"MenuButton"})}}}),cN=eo({
name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{
type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,
default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o
;let i=null!=(o=e.id)?o:`headlessui-menu-items-${KD()}`,a=aN("MenuItems"),s=Bn(null)
;function l(e){var t;switch(s.value&&clearTimeout(s.value),e.key){case H$.Space:
if(""!==a.searchQuery.value)return e.preventDefault(),
e.stopPropagation(),a.search(e.key);case H$.Enter:
if(e.preventDefault(),e.stopPropagation(),null!==a.activeItemIndex.value){
null==(t=JD(a.items.value[a.activeItemIndex.value].dataRef.domRef))||t.click()}
a.closeMenu(),m$(JD(a.buttonRef));break;case H$.ArrowDown:
return e.preventDefault(),e.stopPropagation(),a.goToItem(W$.Next)
;case H$.ArrowUp:
return e.preventDefault(),e.stopPropagation(),a.goToItem(W$.Previous)
;case H$.Home:case H$.PageUp:
return e.preventDefault(),e.stopPropagation(),a.goToItem(W$.First);case H$.End:
case H$.PageDown:
return e.preventDefault(),e.stopPropagation(),a.goToItem(W$.Last)
;case H$.Escape:e.preventDefault(),e.stopPropagation(),a.closeMenu(),dr((()=>{
var e;return null==(e=JD(a.buttonRef))?void 0:e.focus({preventScroll:!0})}))
;break;case H$.Tab:
e.preventDefault(),e.stopPropagation(),a.closeMenu(),dr((()=>function(e,t){
return y$(p$(),t,{relativeTo:e})
}(JD(a.buttonRef),e.shiftKey?c$.Previous:c$.Next)));break;default:
1===e.key.length&&(a.search(e.key),
s.value=setTimeout((()=>a.clearSearch()),350))}}function c(e){
if(e.key===H$.Space)e.preventDefault()}r({el:a.itemsRef,$el:a.itemsRef
}),function({container:e,accept:t,walk:n,enabled:r}){ai((()=>{let o=e.value
;if(!o||void 0!==r&&!r.value)return;let i=o$(e);if(!i)return
;let a=Object.assign((e=>t(e)),{acceptNode:t
}),s=i.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,a,!1)
;for(;s.nextNode();)n(s.currentNode)}))}({container:Aa((()=>JD(a.itemsRef))),
enabled:Aa((()=>0===a.menuState.value)),
accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,
walk(e){e.setAttribute("role","none")}})
;let u=F$(),d=Aa((()=>null!==u?(u.value&U$.Open)===U$.Open:0===a.menuState.value))
;return()=>{var r,o;let s={open:0===a.menuState.value},{...u}=e;return R$({
ourProps:{
"aria-activedescendant":null===a.activeItemIndex.value||null==(r=a.items.value[a.activeItemIndex.value])?void 0:r.id,
"aria-labelledby":null==(o=JD(a.buttonRef))?void 0:o.id,id:i,onKeydown:l,
onKeyup:c,role:"menu",tabIndex:0,ref:a.itemsRef},theirProps:u,slot:s,attrs:t,
slots:n,features:D$.RenderStrategy|D$.Static,visible:d.value,name:"MenuItems"})}
}}),uN=eo({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],
default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,
default:null}},setup(e,{slots:t,attrs:n,expose:r}){var o
;let i=null!=(o=e.id)?o:`headlessui-menu-item-${KD()}`,a=aN("MenuItem"),s=Bn(null)
;r({el:s,$el:s})
;let l=Aa((()=>null!==a.activeItemIndex.value&&a.items.value[a.activeItemIndex.value].id===i)),c=ZR(s),u=Aa((()=>({
disabled:e.disabled,get textValue(){return c()},domRef:s})));function d(t){
if(e.disabled)return t.preventDefault();a.closeMenu(),m$(JD(a.buttonRef))}
function p(){if(e.disabled)return a.goToItem(W$.Nothing)
;a.goToItem(W$.Specific,i)}
Ur((()=>a.registerItem(i,u))),Hr((()=>a.unregisterItem(i))),ai((()=>{
0===a.menuState.value&&l.value&&0!==a.activationTrigger.value&&dr((()=>{var e,t
;return null==(t=null==(e=JD(s))?void 0:e.scrollIntoView)?void 0:t.call(e,{
block:"nearest"})}))}));let h=A$();function f(e){h.update(e)}function m(t){
h.wasMoved(t)&&(e.disabled||l.value||a.goToItem(W$.Specific,i,0))}function g(t){
h.wasMoved(t)&&(e.disabled||l.value&&a.goToItem(W$.Nothing))}return()=>{
let{disabled:r,...o}=e,c={active:l.value,disabled:r,close:a.closeMenu}
;return R$({ourProps:{id:i,ref:s,role:"menuitem",tabIndex:!0===r?void 0:-1,
"aria-disabled":!0===r||void 0,onClick:d,onFocus:p,onPointerenter:f,
onMouseenter:f,onPointermove:m,onMousemove:m,onPointerleave:g,onMouseleave:g},
theirProps:{...n,...o},slot:c,attrs:n,slots:t,name:"MenuItem"})}}})
;var dN,pN=((dN=pN||{})[dN.Open=0]="Open",dN[dN.Closed=1]="Closed",dN)
;let hN=Symbol("PopoverContext");function fN(e){let t=$o(hN,null);if(null===t){
let t=new Error(`<${e} /> is missing a parent <${bN.name} /> component.`)
;throw Error.captureStackTrace&&Error.captureStackTrace(t,fN),t}return t}
let mN=Symbol("PopoverGroupContext");function gN(){return $o(mN,null)}
let vN=Symbol("PopoverPanelContext");let bN=eo({name:"Popover",inheritAttrs:!1,
props:{as:{type:[Object,String],default:"div"}},
setup(e,{slots:t,attrs:n,expose:r}){var o;let i=Bn(null);r({el:i,$el:i})
;let a=Bn(1),s=Bn(null),l=Bn(null),c=Bn(null),u=Bn(null),d=Aa((()=>o$(i))),p=Aa((()=>{
var e,t;if(!JD(s)||!JD(u))return!1
;for(let c of document.querySelectorAll("body > *"))if(Number(null==c?void 0:c.contains(JD(s)))^Number(null==c?void 0:c.contains(JD(u))))return!0
;let n=p$(),r=n.indexOf(JD(s)),o=(r+n.length-1)%n.length,i=(r+1)%n.length,a=n[o],l=n[i]
;return!(null!=(e=JD(u))&&e.contains(a)||null!=(t=JD(u))&&t.contains(l))})),h={
popoverState:a,buttonId:Bn(null),panelId:Bn(null),panel:u,button:s,
isPortalled:p,beforePanelSentinel:l,afterPanelSentinel:c,togglePopover(){
a.value=e$(a.value,{0:1,1:0})},closePopover(){1!==a.value&&(a.value=1)},
close(e){h.closePopover()
;let t=e?e instanceof HTMLElement?e:e.value instanceof HTMLElement?JD(e):JD(h.button):JD(h.button)
;null==t||t.focus()}};Do(hN,h),q$(Aa((()=>e$(a.value,{0:U$.Open,1:U$.Closed}))))
;let f={buttonId:h.buttonId,panelId:h.panelId,close(){h.closePopover()}
},m=gN(),g=null==m?void 0:m.registerPopover,[v,b]=_R(),O=hR({
mainTreeNodeRef:null==m?void 0:m.mainTreeNodeRef,portals:v,
defaultContainers:[s,u]})
;return ai((()=>null==g?void 0:g(f))),J$(null==(o=d.value)?void 0:o.defaultView,"focus",(e=>{
var t,n
;e.target!==window&&e.target instanceof HTMLElement&&0===a.value&&(function(){
var e,t,n,r
;return null!=(r=null==m?void 0:m.isFocusWithinPopoverGroup())?r:(null==(e=d.value)?void 0:e.activeElement)&&((null==(t=JD(s))?void 0:t.contains(d.value.activeElement))||(null==(n=JD(u))?void 0:n.contains(d.value.activeElement)))
}()||s&&u&&(O.contains(e.target)||null!=(t=JD(h.beforePanelSentinel))&&t.contains(e.target)||null!=(n=JD(h.afterPanelSentinel))&&n.contains(e.target)||h.closePopover()))
}),!0),_$(O.resolveContainers,((e,t)=>{var n
;h.closePopover(),f$(t,h$.Loose)||(e.preventDefault(),
null==(n=JD(s))||n.focus())}),Aa((()=>0===a.value))),()=>{let r={
open:0===a.value,close:h.close};return Pa(Bi,[Pa(b,{},(()=>R$({theirProps:{...e,
...n},ourProps:{ref:i},slot:r,slots:t,attrs:n,name:"Popover"
}))),Pa(O.MainTreeNode)])}}}),ON=eo({name:"PopoverButton",props:{as:{
type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{
type:String,default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){
var o
;let i=null!=(o=e.id)?o:`headlessui-popover-button-${KD()}`,a=fN("PopoverButton"),s=Aa((()=>o$(a.button)))
;r({el:a.button,$el:a.button}),Ur((()=>{a.buttonId.value=i})),Hr((()=>{
a.buttonId.value=null}))
;let l=gN(),c=null==l?void 0:l.closeOthers,u=$o(vN,null),d=Aa((()=>null!==u&&u.value===a.panelId.value)),p=Bn(null),h=`headlessui-focus-sentinel-${KD()}`
;d.value||ai((()=>{a.button.value=JD(p)}));let f=T$(Aa((()=>({as:e.as,
type:t.type}))),p);function m(e){var t,n,r,o,i;if(d.value){
if(1===a.popoverState.value)return;switch(e.key){case H$.Space:case H$.Enter:
e.preventDefault(),
null==(n=(t=e.target).click)||n.call(t),a.closePopover(),null==(r=JD(a.button))||r.focus()
}}else switch(e.key){case H$.Space:case H$.Enter:
e.preventDefault(),e.stopPropagation(),
1===a.popoverState.value&&(null==c||c(a.buttonId.value)),a.togglePopover();break
;case H$.Escape:
if(0!==a.popoverState.value)return null==c?void 0:c(a.buttonId.value)
;if(!JD(a.button)||null!=(o=s.value)&&o.activeElement&&(null==(i=JD(a.button))||!i.contains(s.value.activeElement)))return
;e.preventDefault(),e.stopPropagation(),a.closePopover()}}function g(e){
d.value||e.key===H$.Space&&e.preventDefault()}function v(t){var n,r
;e.disabled||(d.value?(a.closePopover(),
null==(n=JD(a.button))||n.focus()):(t.preventDefault(),
t.stopPropagation(),1===a.popoverState.value&&(null==c||c(a.buttonId.value)),
a.togglePopover(),null==(r=JD(a.button))||r.focus()))}function b(e){
e.preventDefault(),e.stopPropagation()}let O=tR();function y(){let e=JD(a.panel)
;e&&e$(O.value,{[eR.Forwards]:()=>y$(e,c$.First),
[eR.Backwards]:()=>y$(e,c$.Last)
})===u$.Error&&y$(p$().filter((e=>"true"!==e.dataset.headlessuiFocusGuard)),e$(O.value,{
[eR.Forwards]:c$.Next,[eR.Backwards]:c$.Previous}),{relativeTo:JD(a.button)})}
return()=>{let r=0===a.popoverState.value,o={open:r},{...s}=e,l=d.value?{ref:p,
type:f.value,onKeydown:m,onClick:v}:{ref:p,id:i,type:f.value,
"aria-expanded":0===a.popoverState.value,
"aria-controls":JD(a.panel)?a.panelId.value:void 0,
disabled:!!e.disabled||void 0,onKeydown:m,onKeyup:g,onClick:v,onMousedown:b}
;return Pa(Bi,[R$({ourProps:l,theirProps:{...t,...s},slot:o,attrs:t,slots:n,
name:"PopoverButton"}),r&&!d.value&&a.isPortalled.value&&Pa(Q$,{id:h,
features:B$.Focusable,"data-headlessui-focus-guard":!0,as:"button",
type:"button",onFocus:y})])}}}),yN=eo({name:"PopoverPanel",props:{as:{
type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{
type:Boolean,default:!0},focus:{type:Boolean,default:!1},id:{type:String,
default:null}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){var o
;let i=null!=(o=e.id)?o:`headlessui-popover-panel-${KD()}`,{focus:a}=e,s=fN("PopoverPanel"),l=Aa((()=>o$(s.panel))),c=`headlessui-focus-sentinel-before-${KD()}`,u=`headlessui-focus-sentinel-after-${KD()}`
;r({el:s.panel,$el:s.panel}),Ur((()=>{s.panelId.value=i})),Hr((()=>{
s.panelId.value=null})),Do(vN,s.panelId),ai((()=>{var e,t
;if(!a||0!==s.popoverState.value||!s.panel)return
;let n=null==(e=l.value)?void 0:e.activeElement
;null!=(t=JD(s.panel))&&t.contains(n)||y$(JD(s.panel),c$.First)}))
;let d=F$(),p=Aa((()=>null!==d?(d.value&U$.Open)===U$.Open:0===s.popoverState.value))
;function h(e){var t,n;if(e.key===H$.Escape){
if(0!==s.popoverState.value||!JD(s.panel)||l.value&&(null==(t=JD(s.panel))||!t.contains(l.value.activeElement)))return
;e.preventDefault(),
e.stopPropagation(),s.closePopover(),null==(n=JD(s.button))||n.focus()}}
function f(e){var t,n,r,o,i;let a=e.relatedTarget
;a&&JD(s.panel)&&(null!=(t=JD(s.panel))&&t.contains(a)||(s.closePopover(),
(null!=(r=null==(n=JD(s.beforePanelSentinel))?void 0:n.contains)&&r.call(n,a)||null!=(i=null==(o=JD(s.afterPanelSentinel))?void 0:o.contains)&&i.call(o,a))&&a.focus({
preventScroll:!0})))}let m=tR();function g(){let e=JD(s.panel);e&&e$(m.value,{
[eR.Forwards]:()=>{var t
;y$(e,c$.First)===u$.Error&&(null==(t=JD(s.afterPanelSentinel))||t.focus())},
[eR.Backwards]:()=>{var e;null==(e=JD(s.button))||e.focus({preventScroll:!0})}})
}function v(){let e=JD(s.panel);e&&e$(m.value,{[eR.Forwards]:()=>{
let e=JD(s.button),t=JD(s.panel);if(!e)return
;let n=p$(),r=n.indexOf(e),o=n.slice(0,r+1),i=[...n.slice(r+1),...o]
;for(let a of i.slice())if("true"===a.dataset.headlessuiFocusGuard||null!=t&&t.contains(a)){
let e=i.indexOf(a);-1!==e&&i.splice(e,1)}y$(i,c$.First,{sorted:!1})},
[eR.Backwards]:()=>{var t
;y$(e,c$.Previous)===u$.Error&&(null==(t=JD(s.button))||t.focus())}})}
return()=>{let r={open:0===s.popoverState.value,close:s.close},{focus:o,...l}=e
;return R$({ourProps:{ref:s.panel,id:i,onKeydown:h,
onFocusout:a&&0===s.popoverState.value?f:void 0,tabIndex:-1},theirProps:{...t,
...l},attrs:t,slot:r,slots:{...n,default:(...e)=>{var t
;return[Pa(Bi,[p.value&&s.isPortalled.value&&Pa(Q$,{id:c,
ref:s.beforePanelSentinel,features:B$.Focusable,
"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:g
}),null==(t=n.default)?void 0:t.call(n,...e),p.value&&s.isPortalled.value&&Pa(Q$,{
id:u,ref:s.afterPanelSentinel,features:B$.Focusable,
"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:v})])]}},
features:D$.RenderStrategy|D$.Static,visible:p.value,name:"PopoverPanel"})}}})
;function wN(e){var t,n,r=""
;if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=wN(e[t]))&&(r&&(r+=" "),
r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function xN(){
for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=wN(e))&&(r&&(r+=" "),
r+=t);return r}const kN=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,SN=e=>{
const t=function(){
for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o,i
;return void 0!==(null==e||null===(o=e.hooks)||void 0===o?void 0:o["cx:done"])?null==e?void 0:e.hooks["cx:done"](xN(n)):void 0!==(null==e||null===(i=e.hooks)||void 0===i?void 0:i.onComplete)?null==e?void 0:e.hooks.onComplete(xN(n)):xN(n)
};return{compose:function(){
for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r]
;return e=>{const r=Object.fromEntries(Object.entries(e||{}).filter((e=>{
let[t]=e;return!["class","className"].includes(t)})))
;return t(n.map((e=>e(r))),null==e?void 0:e.class,null==e?void 0:e.className)}},
cva:e=>n=>{var r
;if(null==(null==e?void 0:e.variants))return t(null==e?void 0:e.base,null==n?void 0:n.class,null==n?void 0:n.className)
;const{variants:o,defaultVariants:i}=e,a=Object.keys(o).map((e=>{
const t=null==n?void 0:n[e],r=null==i?void 0:i[e],a=kN(t)||kN(r);return o[e][a]
})),s={...i,...n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t
;return void 0===r?e:{...e,[n]:r}}),{})
},l=null==e||null===(r=e.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{
let{class:n,className:r,...o}=t;return Object.entries(o).every((e=>{let[t,n]=e
;const r=s[t];return Array.isArray(n)?n.includes(r):r===n}))?[...e,n,r]:e}),[])
;return t(null==e?void 0:e.base,a,l,null==n?void 0:n.class,null==n?void 0:n.className)
},cx:t}},{compose:_N,cva:EN,cx:TN}=SN(),CN="-";function AN(e){
const t=function(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]
},o=function(e,t){if(!t)return e
;return e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))]))
}(Object.entries(e.classGroups),n);return o.forEach((([e,n])=>{$N(n,r,e,t)})),r
}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{
getClassGroupId:function(e){const n=e.split(CN)
;return""===n[0]&&1!==n.length&&n.shift(),PN(n,t)||function(e){if(DN.test(e)){
const t=DN.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"))
;if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){
const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}}function PN(e,t){var n
;if(0===e.length)return t.classGroupId
;const r=e[0],o=t.nextPart.get(r),i=o?PN(e.slice(1),o):void 0;if(i)return i
;if(0===t.validators.length)return;const a=e.join(CN)
;return null==(n=t.validators.find((({validator:e})=>e(a))))?void 0:n.classGroupId
}const DN=/^\[(.+)\]$/;function $N(e,t,n,r){e.forEach((e=>{
if("string"!=typeof e){
if("function"==typeof e)return e.isThemeGetter?void $N(e(r),t,n,r):void t.validators.push({
validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{
$N(o,RN(t,e),n,r)}))}else{(""===e?t:RN(t,e)).classGroupId=n}}))}
function RN(e,t){let n=e;return t.split(CN).forEach((e=>{
n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]
}),n=n.nextPart.get(e)})),n}function NN(e){if(e<1)return{get:()=>{},set:()=>{}}
;let t=0,n=new Map,r=new Map;function o(o,i){
n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e)
;return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){
n.has(e)?n.set(e,t):o(e,t)}}}const IN="!";function MN(e){
const t=e.separator,n=1===t.length,r=t[0],o=t.length;return function(e){
const i=[];let a,s=0,l=0;for(let d=0;d<e.length;d++){let c=e[d];if(0===s){
if(c===r&&(n||e.slice(d,d+o)===t)){i.push(e.slice(l,d)),l=d+o;continue}
if("/"===c){a=d;continue}}"["===c?s++:"]"===c&&s--}
const c=0===i.length?e:e.substring(l),u=c.startsWith(IN);return{modifiers:i,
hasImportantModifier:u,baseClassName:u?c.substring(1):c,
maybePostfixModifierPosition:a&&a>l?a-l:void 0}}}const LN=/\s+/;function BN(){
let e,t,n=0,r=""
;for(;n<arguments.length;)(e=arguments[n++])&&(t=QN(e))&&(r&&(r+=" "),r+=t)
;return r}function QN(e){if("string"==typeof e)return e;let t,n=""
;for(let r=0;r<e.length;r++)e[r]&&(t=QN(e[r]))&&(n&&(n+=" "),n+=t);return n}
function jN(e,...t){let n,r,o,i=function(s){const l=t.reduce(((e,t)=>t(e)),e())
;return n=function(e){return{cache:NN(e.cacheSize),splitModifiers:MN(e),...AN(e)
}}(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e)
;if(t)return t;const i=function(e,t){
const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set
;return e.trim().split(LN).map((e=>{
const{modifiers:t,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a}=n(e)
;let s=r(a?i.substring(0,a):i),l=Boolean(a);if(!s){if(!a)return{
isTailwindClass:!1,originalClassName:e};if(s=r(i),!s)return{isTailwindClass:!1,
originalClassName:e};l=!1}const c=function(e){if(e.length<=1)return e;const t=[]
;let n=[];return e.forEach((e=>{
"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t
}(t).join(":");return{isTailwindClass:!0,modifierId:o?c+IN:c,classGroupId:s,
originalClassName:e,hasPostfixModifier:l}})).reverse().filter((e=>{
if(!e.isTailwindClass)return!0
;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,a=t+n
;return!i.has(a)&&(i.add(a),o(n,r).forEach((e=>i.add(t+e))),!0)
})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return o(e,i),i}
return function(){return i(BN.apply(null,arguments))}}function UN(e){
const t=t=>t[e]||[];return t.isThemeGetter=!0,t}
const FN=/^\[(?:([a-z-]+):)?(.+)\]$/i,qN=/^\d+\/\d+$/,zN=new Set(["px","full","screen"]),HN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZN=/\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$/,VN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,WN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,XN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/
;function YN(e){return KN(e)||zN.has(e)||qN.test(e)}function GN(e){
return dI(e,"length",pI)}function KN(e){
return Boolean(e)&&!Number.isNaN(Number(e))}function JN(e){
return dI(e,"number",KN)}function eI(e){
return Boolean(e)&&Number.isInteger(Number(e))}function tI(e){
return e.endsWith("%")&&KN(e.slice(0,-1))}function nI(e){return FN.test(e)}
function rI(e){return HN.test(e)}
const oI=new Set(["length","size","percentage"]);function iI(e){
return dI(e,oI,hI)}function aI(e){return dI(e,"position",hI)}
const sI=new Set(["image","url"]);function lI(e){return dI(e,sI,mI)}
function cI(e){return dI(e,"",fI)}function uI(){return!0}function dI(e,t,n){
const r=FN.exec(e)
;return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}
function pI(e){return ZN.test(e)&&!VN.test(e)}function hI(){return!1}
function fI(e){return WN.test(e)}function mI(e){return XN.test(e)}function gI(){
const e=UN("colors"),t=UN("spacing"),n=UN("blur"),r=UN("brightness"),o=UN("borderColor"),i=UN("borderRadius"),a=UN("borderSpacing"),s=UN("borderWidth"),l=UN("contrast"),c=UN("grayscale"),u=UN("hueRotate"),d=UN("invert"),p=UN("gap"),h=UN("gradientColorStops"),f=UN("gradientColorStopPositions"),m=UN("inset"),g=UN("margin"),v=UN("opacity"),b=UN("padding"),O=UN("saturate"),y=UN("scale"),w=UN("sepia"),x=UN("skew"),k=UN("space"),S=UN("translate"),_=()=>["auto",nI,t],E=()=>[nI,t],T=()=>["",YN,GN],C=()=>["auto",KN,nI],A=()=>["","0",nI],P=()=>[KN,JN],D=()=>[KN,nI]
;return{cacheSize:500,separator:":",theme:{colors:[uI],spacing:[YN,GN],
blur:["none","",rI,nI],brightness:P(),borderColor:[e],
borderRadius:["none","","full",rI,nI],borderSpacing:E(),borderWidth:T(),
contrast:P(),grayscale:A(),hueRotate:D(),invert:A(),gap:E(),
gradientColorStops:[e],gradientColorStopPositions:[tI,GN],inset:_(),margin:_(),
opacity:P(),padding:E(),saturate:P(),scale:P(),sepia:A(),skew:D(),space:E(),
translate:E()},classGroups:{aspect:[{aspect:["auto","square","video",nI]}],
container:["container"],columns:[{columns:[rI]}],"break-after":[{
"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]
}],"break-before":[{
"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]
}],"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:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",nI]
}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],
"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],
"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],
overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{
"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{
"overscroll-y":["auto","contain","none"]}],
position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],
"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],
end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],
left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{
z:["auto",eI,nI]}],basis:[{basis:_()}],"flex-direction":[{
flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{
flex:["wrap","wrap-reverse","nowrap"]}],flex:[{
flex:["1","auto","initial","none",nI]}],grow:[{grow:A()}],shrink:[{shrink:A()}],
order:[{order:["first","last","none",eI,nI]}],"grid-cols":[{"grid-cols":[uI]}],
"col-start-end":[{col:["auto",{span:["full",eI,nI]},nI]}],"col-start":[{
"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":[uI]}],
"row-start-end":[{row:["auto",{span:[eI,nI]},nI]}],"row-start":[{"row-start":C()
}],"row-end":[{"row-end":C()}],"grid-flow":[{
"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{
"auto-cols":["auto","min","max","fr",nI]}],"auto-rows":[{
"auto-rows":["auto","min","max","fr",nI]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]
}],"gap-y":[{"gap-y":[p]}],"justify-content":[{
justify:["normal","start","end","center","between","around","evenly","stretch"]
}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],
"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],
"align-content":[{
content:["normal","start","end","center","between","around","evenly","stretch","baseline"]
}],"align-items":[{items:["start","end","center","baseline","stretch"]}],
"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],
"place-content":[{
"place-content":["start","end","center","between","around","evenly","stretch","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:[g]}],mx:[{mx:[g]}],my:[{my:[g]
}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{
ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],
"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{
w:["auto","min","max","fit","svw","lvw","dvw",nI,t]}],"min-w":[{
"min-w":[nI,t,"min","max","fit"]}],"max-w":[{
"max-w":[nI,t,"none","full","min","max","fit","prose",{screen:[rI]},rI]}],h:[{
h:[nI,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{
"min-h":[nI,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{
"max-h":[nI,t,"min","max","fit","svh","lvh","dvh"]}],size:[{
size:[nI,t,"auto","min","max","fit"]}],"font-size":[{text:["base",rI,GN]}],
"font-smoothing":["antialiased","subpixel-antialiased"],
"font-style":["italic","not-italic"],"font-weight":[{
font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",JN]
}],"font-family":[{font:[uI]}],"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",nI]}],
"line-clamp":[{"line-clamp":["none",KN,JN]}],leading:[{
leading:["none","tight","snug","normal","relaxed","loose",YN,nI]}],
"list-image":[{"list-image":["none",nI]}],"list-style-type":[{
list:["none","disc","decimal",nI]}],"list-style-position":[{
list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],
"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{
text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]
}],"text-opacity":[{"text-opacity":[v]}],
"text-decoration":["underline","overline","line-through","no-underline"],
"text-decoration-style":[{
decoration:["solid","dashed","dotted","double","none","wavy"]}],
"text-decoration-thickness":[{decoration:["auto","from-font",YN,GN]}],
"underline-offset":[{"underline-offset":["auto",YN,nI]}],
"text-decoration-color":[{decoration:[e]}],
"text-transform":["uppercase","lowercase","capitalize","normal-case"],
"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{
text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],
"vertical-align":[{
align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",nI]
}],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",nI]}],
"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{
"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{
"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],
"bg-position":[{
bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",aI]
}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],
"bg-size":[{bg:["auto","cover","contain",iI]}],"bg-image":[{bg:["none",{
"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lI]}],"bg-color":[{bg:[e]
}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],
"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[h]}],"gradient-via":[{
via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[i]}],"rounded-s":[{
"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]
}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],
"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],
"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],
"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],
"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],
"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{
"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]
}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],
"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{
"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{
border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{
"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{
"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{
"divide-opacity":[v]}],"divide-style":[{
divide:["solid","dashed","dotted","double","none"]}],"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:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{
"outline-offset":[YN,nI]}],"outline-w":[{outline:[YN,GN]}],"outline-color":[{
outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],
"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],
"ring-offset-w":[{"ring-offset":[YN,GN]}],"ring-offset-color":[{
"ring-offset":[e]}],shadow:[{shadow:["","inner","none",rI,cI]}],
"shadow-color":[{shadow:[uI]}],opacity:[{opacity:[v]}],"mix-blend":[{
"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]
}],"bg-blend":[{
"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]
}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]
}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",rI,nI]}],
grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{
invert:[d]}],saturate:[{saturate:[O]}],sepia:[{sepia:[w]}],"backdrop-filter":[{
"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],
"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{
"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],
"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{
"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],
"backdrop-saturate":[{"backdrop-saturate":[O]}],"backdrop-sepia":[{
"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],
"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{
"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],
"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],
transition:[{
transition:["none","all","","colors","opacity","shadow","transform",nI]}],
duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",nI]}],
delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",nI]
}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{
"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[eI,nI]}],
"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],
"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{
origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",nI]
}],accent:[{accent:["auto",e]}],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",nI]
}],"caret-color":[{caret:[e]}],"pointer-events":[{
"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],
"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],
"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{
"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()
}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],
"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{
"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()
}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],
"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{
"scroll-pl":E()}],"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",nI]}],fill:[{
fill:[e,"none"]}],"stroke-w":[{stroke:[YN,GN,JN]}],stroke:[{stroke:[e,"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 vI(e,t,n){void 0!==n&&(e[t]=n)}function bI(e,t){
if(t)for(const n in t)vI(e,n,t[n])}function OI(e,t){if(t)for(const n in t){
const r=t[n];void 0!==r&&(e[n]=(e[n]||[]).concat(r))}}const yI=function(e,...t){
return"function"==typeof e?jN(gI,e,...t):jN((()=>function(e,{cacheSize:t,prefix:n,separator:r,extend:o={},override:i={}}){
vI(e,"cacheSize",t),vI(e,"prefix",n),vI(e,"separator",r)
;for(const a in i)bI(e[a],i[a]);for(const a in o)OI(e[a],o[a]);return e
}(gI(),e)),...t)}({extend:{classGroups:{"font-size":["text-xxs"]}}
}),{cva:wI,cx:xI,compose:kI}=SN({hooks:{onComplete:e=>yI(e)}}),SI=()=>wn({
open:!1,show(){this.open=!0},hide(){this.open=!1}}),_I=eo({__name:"ScalarModal",
props:{state:{},title:{},bodyClass:{},maxWidth:{},size:{default:"md"},variant:{}
},setup(e){const t=wI({
base:["scalar-modal","col relative mx-auto mb-0 mt-20 w-[calc(100vw-16px)] rounded-lg bg-b-2 p-0 text-left leading-snug text-c-1 opacity-0 lg:w-[calc(100vw-32px)]"].join(" "),
variants:{size:{xxs:"mt-20 max-w-screen-xxs",xs:"mt-20 max-w-screen-xs",
sm:"mt-20 max-w-screen-sm",md:"mt-20 max-w-screen-md",
lg:"mt-10 max-w-screen-lg",xl:"mt-2 max-w-screen-xl",full:"mt-0 overflow-hidden"
},variant:{history:"scalar-modal-history bg-b-1",search:"scalar-modal-search"}}
}),n=wI({
base:["scalar-modal-body","relative m-1 max-h-[calc(100dvh-240px)] rounded-lg bg-b-1 p-3"].join(" "),
variants:{variant:{history:"pt-3",
search:"col !m-0 max-h-[440px] overflow-hidden p-0"},size:{
xxs:"max-h-[calc(100dvh-240px)]",xs:"max-h-[calc(100dvh-240px)]",
sm:"max-h-[calc(100dvh-240px)]",md:"max-h-[calc(100dvh-240px)]",
lg:"max-h-[calc(100dvh-180px)]",xl:"max-h-[calc(100dvh-120px)]",full:"max-h-dvh"
}}});return(e,r)=>(zi(),Xi(Fn(RR),{open:e.state.open,
onClose:r[0]||(r[0]=t=>e.state.hide())},{default:Tr((()=>[ea("div",{
class:et(Fn(xI)("scalar-modal-layout fixed left-0 top-0 flex items-start justify-center","z-[1001] h-[100dvh] w-[100dvw]","bg-backdrop opacity-0 dark:bg-backdropdark","full"===e.size&&"flex"))
},[ta(Fn(NR),{class:et(Fn(t)({size:e.size,variant:e.variant})),style:Xe({
maxWidth:e.maxWidth})},{default:Tr((()=>[e.title?(zi(),Xi(Fn(IR),{key:0,
class:et(["scalar-modal-header m-0 -mb-1 rounded-lg p-3 text-left text-sm font-medium text-c-1",{
"pb-0 pt-6":"history"===e.variant}])},{default:Tr((()=>[oa(st(e.title),1)])),_:1
},8,["class"])):aa("",!0),"full"===e.size?(zi(),Wi("div",{key:1,
class:et(e.bodyClass)
},[no(e.$slots,"default",{},void 0,!0)],2)):(zi(),Xi(Fn(MR),{key:2,
class:et(Fn(xI)(e.bodyClass,Fn(n)({size:e.size,variant:e.variant})))},{
default:Tr((()=>[no(e.$slots,"default",{},void 0,!0)])),_:3},8,["class"]))])),
_:3},8,["class","style"])],2)])),_:3},8,["open"]))}}),EI=(e,t)=>{
const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n
},TI=EI(_I,[["__scopeId","data-v-75d4f452"]]),CI={
solid:["scalar-button-solid","bg-b-btn text-c-btn shadow-sm active:bg-b-btn active:shadow-none hocus:bg-h-btn"],
outlined:["scalar-button-outlined","active:bg-btn-1 border border-solid border-border bg-transparent text-c-1 hover:bg-b-2 shadow"],
ghost:["scalar-button-ghost","bg-transparent text-c-3 active:text-c-1 hocus:text-c-1"],
danger:["scalar-button-danger","bg-red text-white active:brightness-90 hocus:brightness-90"]
},AI=wI({
base:"scalar-button scalar-row cursor-pointer items-center justify-center rounded font-medium",
variants:{disabled:{true:"bg-background-2 text-color-3 shadow-none"},fullWidth:{
true:"w-full"},size:{sm:"px-2 py-1 text-xs",md:"h-10 px-6 text-sm"},variant:CI},
compoundVariants:[{disabled:!0,variant:["solid","outlined","ghost","danger"],
class:"bg-b-2 text-c-3 shadow-none"}]
}),PI=ia('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-5a129980></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-5a129980></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-5a129980></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-5a129980></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-5a129980></path>',5),DI={
key:0,class:"circular-loader"};function $I(){return wn({isValid:!1,isInvalid:!1,
isLoading:!1,startLoading(){this.isLoading=!0},stopLoading(){this.isLoading=!1},
validate(e=800,t){this.isInvalid=!1,this.isValid=!0;const n=t?e-300:e
;return new Promise((e=>setTimeout(t?()=>this.clear().then((()=>e(!0))):()=>e(!0),n)))
},invalidate(e=1100,t){this.isValid=!1,this.isInvalid=!0;const n=t?e-300:e
;return new Promise((e=>setTimeout(t?()=>this.clear().then((()=>e(!0))):()=>e(!0),n)))
},clear(e=300){
return this.isValid=!1,this.isInvalid=!1,this.isLoading=!1,new Promise((t=>{
setTimeout((()=>{t(!0)}),e)}))}})}const RI=eo({__name:"ScalarLoading",props:{
loadingState:{},size:{}},setup(e){const t=wI({variants:{size:{xs:"size-3",
sm:"size-3.5",md:"size-4",lg:"size-5",xl:"size-6","2xl":"size-8",
"3xl":"size-10",full:"size-full"}},defaultVariants:{size:"full"}})
;return(e,n)=>e.loadingState?(zi(),Wi("div",{key:0,
class:et(Fn(xI)("loader-wrapper",Fn(t)({size:e.size})))},[(zi(),Wi("svg",{
class:et(["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"
},[PI,e.loadingState.isLoading?(zi(),Wi("g",DI,[ea("circle",{
class:et(["loader-path",{
"loader-path-off":e.loadingState.isValid||e.loadingState.isInvalid}]),cx:"50",
cy:"50",fill:"none",r:"20","stroke-width":"2"
},null,2)])):aa("",!0)],2))],2)):aa("",!0)}
}),NI=EI(RI,[["__scopeId","data-v-5a129980"]]),II=["ariaDisabled","type"],MI={
key:3,class:"centered-x absolute"},LI=eo({inheritAttrs:!1,__name:"ScalarButton",
props:{disabled:{type:Boolean},fullWidth:{type:Boolean,default:!1},loading:{},
size:{default:"md"},variant:{default:"solid"},type:{default:"button"}},setup(e){
const t=Aa((()=>{const{class:e,...t}=uo();return{class:e||"",rest:t}}))
;return(e,n)=>{var r,o,i,a;return zi(),Wi("button",ua(t.value.rest,{
ariaDisabled:e.disabled||void 0,class:Fn(xI)(Fn(AI)({fullWidth:e.fullWidth,
disabled:e.disabled,size:e.size,variant:e.variant}),{
relative:null==(r=e.loading)?void 0:r.isLoading},`${t.value.class}`),type:e.type
}),[e.$slots.icon?(zi(),Wi("div",{key:0,class:et(["mr-2 h-4 w-4",{
invisible:null==(o=e.loading)?void 0:o.isLoading}])
},[no(e.$slots,"icon")],2)):aa("",!0),e.loading?(zi(),Wi("span",{key:1,
class:et({invisible:null==(i=e.loading)?void 0:i.isLoading})
},[no(e.$slots,"default")],2)):no(e.$slots,"default",{key:2
}),null!=(a=e.loading)&&a.isLoading?(zi(),Wi("div",MI,[ta(Fn(NI),{
loadingState:e.loading,size:"xs"},null,8,["loadingState"])])):aa("",!0)],16,II)}
}}),BI={abandonedHeadElementChild:{
reason:"Unexpected metadata element after head",
description:"Unexpected element after head. Expected the element before `</head>`",
url:!1},abruptClosingOfEmptyComment:{
reason:"Unexpected abruptly closed empty comment",
description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},
abruptDoctypePublicIdentifier:{
reason:"Unexpected abruptly closed public identifier",
description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"
},abruptDoctypeSystemIdentifier:{
reason:"Unexpected abruptly closed system identifier",
description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"
},absenceOfDigitsInNumericCharacterReference:{
reason:"Unexpected non-digit at start of numeric character reference",
description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"
},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",
description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"
},characterReferenceOutsideUnicodeRange:{
reason:"Unexpected too big numeric character reference",
description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"
},closingOfElementWithOpenChildElements:{
reason:"Unexpected closing tag with open child elements",
description:"Unexpectedly closing tag. Expected other tags to be closed first",
url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",
description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"
},controlCharacterReference:{reason:"Unexpected control character reference",
description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"
},disallowedContentInNoscriptInHead:{
reason:"Disallowed content inside `<noscript>` in `<head>`",
description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",
url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",
description:"Unexpectedly double attribute. Expected attributes to occur only once"
},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",
description:"Unexpected attribute. Expected `>` instead"},
endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",
description:"Unexpected `%c-1`. Expected `>` instead"},
endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",
description:"Unexpected end tag. Expected no end tag or another end tag",url:!1
},eofBeforeTagName:{reason:"Unexpected end of file",
description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{
reason:"Unexpected end of file in CDATA",
description:"Unexpected end of file. Expected `]]>` to close the CDATA"},
eofInComment:{reason:"Unexpected end of file in comment",
description:"Unexpected end of file. Expected `--\x3e` to close the comment"},
eofInDoctype:{reason:"Unexpected end of file in doctype",
description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"
},eofInElementThatCanContainOnlyText:{
reason:"Unexpected end of file in element that can only contain text",
description:"Unexpected end of file. Expected text or a closing tag",url:!1},
eofInScriptHtmlCommentLikeText:{
reason:"Unexpected end of file in comment inside script",
description:"Unexpected end of file. Expected `--\x3e` to close the comment"},
eofInTag:{reason:"Unexpected end of file in tag",
description:"Unexpected end of file. Expected `>` to close the tag"},
incorrectlyClosedComment:{reason:"Incorrectly closed comment",
description:"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},
incorrectlyOpenedComment:{reason:"Incorrectly opened comment",
description:"Unexpected `%c`. Expected `\x3c!--` to open the comment"},
invalidCharacterSequenceAfterDoctypeName:{
reason:"Invalid sequence after doctype name",
description:"Unexpected sequence at `%c`. Expected `public` or `system`"},
invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",
description:"Unexpected `%c`. Expected an ASCII letter instead"},
misplacedDoctype:{reason:"Misplaced doctype",
description:"Unexpected doctype. Expected doctype before head",url:!1},
misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",
description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",
url:!1},missingAttributeValue:{reason:"Missing attribute value",
description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"
},missingDoctype:{reason:"Missing doctype before other content",
description:"Expected a `<!doctype html>` before anything else",url:!1},
missingDoctypeName:{reason:"Missing doctype name",
description:"Unexpected doctype end at `%c`. Expected `html` instead"},
missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",
description:"Unexpected `%c`. Expected identifier for `public` instead"},
missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",
description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'
},missingEndTagName:{reason:"Missing name in end tag",
description:"Unexpected `%c`. Expected an ASCII letter instead"},
missingQuoteBeforeDoctypePublicIdentifier:{
reason:"Missing quote before public identifier in doctype",
description:"Unexpected `%c`. Expected `\"` or `'` instead"},
missingQuoteBeforeDoctypeSystemIdentifier:{
reason:"Missing quote before system identifier in doctype",
description:"Unexpected `%c`. Expected `\"` or `'` instead"},
missingSemicolonAfterCharacterReference:{
reason:"Missing semicolon after character reference",
description:"Unexpected `%c`. Expected `;` instead"},
missingWhitespaceAfterDoctypePublicKeyword:{
reason:"Missing whitespace after public identifier in doctype",
description:"Unexpected `%c`. Expected ASCII whitespace instead"},
missingWhitespaceAfterDoctypeSystemKeyword:{
reason:"Missing whitespace after system identifier in doctype",
description:"Unexpected `%c`. Expected ASCII whitespace instead"},
missingWhitespaceBeforeDoctypeName:{
reason:"Missing whitespace before doctype name",
description:"Unexpected `%c`. Expected ASCII whitespace instead"},
missingWhitespaceBetweenAttributes:{
reason:"Missing whitespace between attributes",
description:"Unexpected `%c`. Expected ASCII whitespace instead"},
missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{
reason:"Missing whitespace between public and system identifiers in doctype",
description:"Unexpected `%c`. Expected ASCII whitespace instead"},
nestedComment:{reason:"Unexpected nested comment",
description:"Unexpected `\x3c!--`. Expected `--\x3e`"},nestedNoscriptInHead:{
reason:"Unexpected nested `<noscript>` in `<head>`",
description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",
url:!1},nonConformingDoctype:{
reason:"Unexpected non-conforming doctype declaration",
description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',
url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{
reason:"Unexpected trailing slash on start tag of non-void element",
description:"Unexpected `/`. Expected `>` instead"},
noncharacterCharacterReference:{
reason:"Unexpected noncharacter code point referenced by character reference",
description:"Unexpected code point. Do not use noncharacters in HTML"},
noncharacterInInputStream:{reason:"Unexpected noncharacter character",
description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},
nullCharacterReference:{
reason:"Unexpected NULL character referenced by character reference",
description:"Unexpected code point. Do not use NULL characters in HTML"},
openElementsLeftAfterEof:{reason:"Unexpected end of file",
description:"Unexpected end of file. Expected closing tag instead",url:!1},
surrogateCharacterReference:{
reason:"Unexpected surrogate character referenced by character reference",
description:"Unexpected code point. Do not use lone surrogate characters in HTML"
},surrogateInInputStream:{reason:"Unexpected surrogate character",
description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"
},unexpectedCharacterAfterDoctypeSystemIdentifier:{
reason:"Invalid character after system identifier in doctype",
description:"Unexpected character at `%c`. Expected `>`"},
unexpectedCharacterInAttributeName:{
reason:"Unexpected character in attribute name",
description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"
},unexpectedCharacterInUnquotedAttributeValue:{
reason:"Unexpected character in unquoted attribute value",
description:"Unexpected `%c`. Quote the attribute value to include it"},
unexpectedEqualsSignBeforeAttributeName:{
reason:"Unexpected equals sign before attribute name",
description:"Unexpected `%c`. Add an attribute name before it"},
unexpectedNullCharacter:{reason:"Unexpected NULL character",
description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},
unexpectedQuestionMarkInsteadOfTagName:{
reason:"Unexpected question mark instead of tag name",
description:"Unexpected `%c`. Expected an ASCII letter instead"},
unexpectedSolidusInTag:{reason:"Unexpected slash in tag",
description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"
},unknownNamedCharacterReference:{
reason:"Unexpected unknown named character reference",
description:"Unexpected character reference. Expected known named character references"
}
},QI="https://html.spec.whatwg.org/multipage/parsing.html#parse-error-",jI=/-[a-z]/g,UI=/%c(?:([-+])(\d+))?/g,FI=/%x/g,qI={
2:!0,1:!1,0:null},zI={};function HI(e,t){
const n=t||zI,r=n.onerror,o=e instanceof pT?e:new pT(e),i=n.fragment?Vy:Zy,a=String(o),s=i(a,{
sourceCodeLocationInfo:!0,onParseError:n.onerror?function(e){
const t=e.code,i=function(e){return e.replace(jI,ZI)
}(t),s=n[i],l=null==s||s,c="number"==typeof l?l:l?1:0;if(c){
const n=BI[i],a=new iT(u(n.reason),{place:{start:{line:e.startLine,
column:e.startCol,offset:e.startOffset},end:{line:e.endLine,column:e.endCol,
offset:e.endOffset}},ruleId:t,source:"hast-util-from-html"})
;o.path&&(a.file=o.path,
a.name=o.path+":"+a.name),a.fatal=qI[c],a.note=u(n.description),
a.url=!1===n.url?void 0:QI+t,r(a)}function u(t){
return t.replace(UI,(function(t,n,r){
const o=(r?Number.parseInt(r,10):0)*("-"===n?-1:1);return function(e){
return"`"===e?"` ` `":e}(a.charAt(e.startOffset+o))})).replace(FI,(function(){
return t=a.charCodeAt(e.startOffset),"0x"+t.toString(16).toUpperCase();var t}))}
}:null,scriptingEnabled:!1});return Nv(s,{file:o,space:n.space,verbose:n.verbose
})}function ZI(e){return e.charAt(1).toUpperCase()}function VI(e){
const{emitParseErrors:t,...n}={...this.data("settings"),...e}
;this.parser=function(e,r){return HI(e,{...n,onerror:t?function(e){
r.path&&(e.name=r.path+":"+e.name,e.file=r.path),r.messages.push(e)}:void 0})}}
function WI(e){return"text"===(null==e?void 0:e.type)}function XI(e){
return"element"===(null==e?void 0:e.type)}function YI(e){return{type:"text",
value:e}}function GI(){return e=>{og(e,"element",((e,t,n)=>{
if("element"===(null==n?void 0:n.type)&&"pre"===n.tagName&&"code"===e.tagName){
let t=0;e.children=KI(e),e.children.forEach((e=>{
if("element"===e.type&&"span"===e.tagName){
const n=e.children[e.children.length-1]
;(!WI(n)||WI(n)&&!eM(n))&&(e.children.push({type:"text",value:"\n"}),t++)}
})),e.properties.style=[`--line-count: ${t};`,`--line-digits: ${t.toString().length};`]
}}))}}function KI(e,t=[],n){
const r=()=>t[t.length-1]??(t.push(JI())&&t[t.length-1])
;return e.children.forEach((o=>{if(WI(o)&&eM(o)){const i=o.value.split(/\n/)
;i.forEach(((o,a)=>{n?r().children.push({...e,children:[YI(o)]
}):r().children.push(YI(o)),a!==i.length-1&&t.push(JI())}))
}else XI(o)&&o.children.some(eM)?KI(o,t,!0):r().children.push(o)})),t}
function JI(...e){return{type:"element",tagName:"span",properties:{
class:["line"]},children:e}}function eM(e){
return WI(e)&&/\r?\n/.test(e.value)||XI(e)&&e.children.some(eM)}
function tM(e,t){
const n=("string"==typeof(null==t?void 0:t.maskCredentials)?[t.maskCredentials]:(null==t?void 0:t.maskCredentials)??[]).filter((e=>!(e.length<3)||(console.error(`Codeblock credentials must be at least 3 characters to mask. Will not mask "${e}"`),
!1))),r=`language-${dP[t.lang]??t.lang}`;var o;const i=OT().use(VI,{fragment:!0
}).use((o=e,()=>e=>{og(e,"element",(e=>{"code"===e.tagName&&e.children.push({
type:"text",value:o})}))})).use(hP,{languages:t.languages
}).use((null==t?void 0:t.lineNumbers)?GI:()=>{}).use(px).processSync(`<pre><code class="${r}"></code></pre>`).toString()
;return n.length?i.replace(new RegExp(n.join("|"),"g"),(e=>`<span class="credentials">${e}</span>`)):i
}const nM={parse:e=>{const t=JSON.parse(e)
;if("object"!=typeof t)throw Error("Invalid JSON object");return t},
parseSafe(e,t){try{return nM.parse(e)}catch(P$){
return"function"==typeof t?t(P$):t}},stringify:e=>JSON.stringify(e)},rM=e=>{
if("string"==typeof e)return(e=>"string"==typeof e&&!!nM.parseSafe(e,!1))(e)?JSON.stringify(JSON.parse(e),null,2):e
;if("object"==typeof e)try{return JSON.stringify(e,null,2)}catch{
return function(e){const t=new Set;return JSON.stringify(e,((e,n)=>{
if("object"==typeof n&&null!==n){if(t.has(n))return"[Circular]";t.add(n)}
return n}),2)}(e)}return e.toString()};const oM={
xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},iM=[ea("path",{
fill:"none",stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",d:"M2 12h20M12 2v20"},null,-1)];function aM(e,t){
return zi(),Wi("svg",oM,[...iM])}const sM={render:aM
},lM=Object.freeze(Object.defineProperty({__proto__:null,default:sM,render:aM
},Symbol.toStringTag,{value:"Module"})),cM={xmlns:"http://www.w3.org/2000/svg",
fill:"none",viewBox:"0 0 24 24"},uM=[ea("path",{stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",
d:"M8.143 12h7.714M12 8.143v7.714M5.571 3H18.43A2.57 2.57 0 0 1 21 5.571V18.43A2.57 2.57 0 0 1 18.429 21H5.57A2.57 2.57 0 0 1 3 18.429V5.57A2.57 2.57 0 0 1 5.571 3"
},null,-1)];function dM(e,t){return zi(),Wi("svg",cM,[...uM])}const pM={
render:dM},hM=Object.freeze(Object.defineProperty({__proto__:null,default:pM,
render:dM},Symbol.toStringTag,{value:"Module"})),fM={
xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},mM=[ea("path",{
fill:"none",stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",d:"M22 12H2m9.3-9.3L2 12l9.3 9.3"},null,-1)]
;function gM(e,t){return zi(),Wi("svg",fM,[...mM])}const vM={render:gM
},bM=Object.freeze(Object.defineProperty({__proto__:null,default:vM,render:gM
},Symbol.toStringTag,{value:"Module"})),OM={xmlns:"http://www.w3.org/2000/svg",
viewBox:"0 0 24 24"},yM=[ea("path",{fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",
d:"M2 12h20m-9.3 9.3L22 12l-9.3-9.3"},null,-1)];function wM(e,t){
return zi(),Wi("svg",OM,[...yM])}const xM={render:wM
},kM=Object.freeze(Object.defineProperty({__proto__:null,default:xM,render:wM
},Symbol.toStringTag,{value:"Module"})),SM={xmlns:"http://www.w3.org/2000/svg",
fill:"none",viewBox:"0 0 24 24"},_M=[ea("path",{stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",
d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1m8 0h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1"
},null,-1)];function EM(e,t){return zi(),Wi("svg",SM,[..._M])}const TM={
render:EM},CM=Object.freeze(Object.defineProperty({__proto__:null,default:TM,
render:EM},Symbol.toStringTag,{value:"Module"})),AM={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},PM=[ea("path",{d:"M16.4 6.8v5.6H7.6m0-5.6v10.4"},null,-1),ea("circle",{
cx:"7.6",cy:"4.4",r:"2.4"},null,-1),ea("circle",{cx:"7.6",cy:"19.6",r:"2.4"
},null,-1),ea("circle",{cx:"16.4",cy:"4.4",r:"2.4"},null,-1)];function DM(e,t){
return zi(),Wi("svg",AM,[...PM])}const $M={render:DM
},RM=Object.freeze(Object.defineProperty({__proto__:null,default:$M,render:DM
},Symbol.toStringTag,{value:"Module"})),NM={xmlns:"http://www.w3.org/2000/svg",
fill:"none",stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",viewBox:"0 0 24 24"},IM=[ea("path",{
d:"M12 22.125V4.712S9.545 1.985 1.268 1.875a.5.5 0 0 0-.366.15.52.52 0 0 0-.152.369v16.375a.515.515 0 0 0 .5.519C9.543 19.4 12 22.125 12 22.125"
},null,-1),ea("path",{
d:"M9 11.18a21.3 21.3 0 0 0-5.26-1.055M9 15.375a21.3 21.3 0 0 0-5.26-1.055M15 11.18a21.3 21.3 0 0 1 5.26-1.055M15 15.375a21.3 21.3 0 0 1 5.26-1.055"
},null,-1),ea("path",{
d:"M12 22.125V4.712s2.455-2.727 10.732-2.837a.5.5 0 0 1 .366.15.52.52 0 0 1 .152.369v16.375a.515.515 0 0 1-.5.519C14.457 19.4 12 22.125 12 22.125"
},null,-1)];function MM(e,t){return zi(),Wi("svg",NM,[...IM])}const LM={
render:MM},BM=Object.freeze(Object.defineProperty({__proto__:null,default:LM,
render:MM},Symbol.toStringTag,{value:"Module"})),QM={
xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},jM=[ea("path",{
fill:"none",stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",d:"M21.4 4.6 10.6 19.4l-8-6.4"},null,-1)]
;function UM(e,t){return zi(),Wi("svg",QM,[...jM])}const FM={render:UM
},qM=Object.freeze(Object.defineProperty({__proto__:null,default:FM,render:UM
},Symbol.toStringTag,{value:"Module"})),zM={xmlns:"http://www.w3.org/2000/svg",
fill:"none",viewBox:"0 0 24 24"},HM=[ea("path",{stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 8.25 7.5 7.5 7.5-7.5"
},null,-1)];function ZM(e,t){return zi(),Wi("svg",zM,[...HM])}const VM={
render:ZM},WM=Object.freeze(Object.defineProperty({__proto__:null,default:VM,
render:ZM},Symbol.toStringTag,{value:"Module"})),XM={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},YM=[ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",d:"m14 18-6-6 6-6"},null,-1)];function GM(e,t){
return zi(),Wi("svg",XM,[...YM])}const KM={render:GM
},JM=Object.freeze(Object.defineProperty({__proto__:null,default:KM,render:GM
},Symbol.toStringTag,{value:"Module"})),eL={xmlns:"http://www.w3.org/2000/svg",
fill:"none",viewBox:"0 0 24 24"},tL=[ea("path",{stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",
d:"m8.25 19.5 7.5-7.5-7.5-7.5"},null,-1)];function nL(e,t){
return zi(),Wi("svg",eL,[...tL])}const rL={render:nL
},oL=Object.freeze(Object.defineProperty({__proto__:null,default:rL,render:nL
},Symbol.toStringTag,{value:"Module"})),iL={xmlns:"http://www.w3.org/2000/svg",
fill:"none",viewBox:"0 0 24 24"},aL=[ea("path",{stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",
d:"M19.5 15.75 12 8.25l-7.5 7.5"},null,-1)];function sL(e,t){
return zi(),Wi("svg",iL,[...aL])}const lL={render:sL
},cL=Object.freeze(Object.defineProperty({__proto__:null,default:lL,render:sL
},Symbol.toStringTag,{value:"Module"})),uL={xmlns:"http://www.w3.org/2000/svg",
fill:"none",viewBox:"0 0 24 24"},dL=[ea("path",{stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",
d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2m-6 4h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2"
},null,-1)];function pL(e,t){return zi(),Wi("svg",uL,[...dL])}const hL={
render:pL},fL=Object.freeze(Object.defineProperty({__proto__:null,default:hL,
render:pL},Symbol.toStringTag,{value:"Module"})),mL={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},gL=[ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",d:"M18 6 6 18M6 6l12 12"},null,-1)];function vL(e,t){
return zi(),Wi("svg",mL,[...gL])}const bL={render:vL
},OL=Object.freeze(Object.defineProperty({__proto__:null,default:bL,render:vL
},Symbol.toStringTag,{value:"Module"})),yL={xmlns:"http://www.w3.org/2000/svg",
fill:"none",viewBox:"0 0 24 24"},wL=[ea("path",{stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",
d:"m9.273 9.273 5.454 5.454m0-5.454-5.454 5.454M5.57 3h12.86A2.57 2.57 0 0 1 21 5.571V18.43A2.57 2.57 0 0 1 18.429 21H5.57A2.57 2.57 0 0 1 3 18.429V5.57A2.57 2.57 0 0 1 5.571 3Z"
},null,-1)];function xL(e,t){return zi(),Wi("svg",yL,[...wL])}const kL={
render:xL},SL=Object.freeze(Object.defineProperty({__proto__:null,default:kL,
render:xL},Symbol.toStringTag,{value:"Module"})),_L={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},EL=[ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2m-3.121 8.879 4.242 4.242m0-4.242L12.88 17.12M10 8h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2"
},null,-1)];function TL(e,t){return zi(),Wi("svg",_L,[...EL])}const CL={
render:TL},AL=Object.freeze(Object.defineProperty({__proto__:null,default:CL,
render:TL},Symbol.toStringTag,{value:"Module"})),PL={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},DL=[ea("path",{
d:"M18.375 19.5a4.875 4.875 0 1 0-2.764-8.885A7.5 7.5 0 1 0 8.25 19.5z"
},null,-1)];function $L(e,t){return zi(),Wi("svg",PL,[...DL])}const RL={
render:$L},NL=Object.freeze(Object.defineProperty({__proto__:null,default:RL,
render:$L},Symbol.toStringTag,{value:"Module"})),IL={
xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},ML=[ea("path",{
fill:"none",stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M21.75 9V6a1.5 1.5 0 0 0-1.5-1.5h-12V3a1.5 1.5 0 0 0-1.5-1.5h-4.5A1.5 1.5 0 0 0 .75 3v17.8a1.7 1.7 0 0 0 3.336.438l2.352-11.154A1.5 1.5 0 0 1 7.879 9za1.5 1.5 0 0 1 1.45 1.886l-2.2 10.5a1.5 1.5 0 0 1-1.45 1.114H2.447"
},null,-1),ea("path",{fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",
d:"m12 13.5-2.25 2.25L12 18m4.5-4.5 2.25 2.25L16.5 18"},null,-1)]
;function LL(e,t){return zi(),Wi("svg",IL,[...ML])}const BL={render:LL
},QL=Object.freeze(Object.defineProperty({__proto__:null,default:BL,render:LL
},Symbol.toStringTag,{value:"Module"})),jL={xmlns:"http://www.w3.org/2000/svg",
fill:"none",stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",viewBox:"0 0 24 24"},UL=[ea("path",{
d:"M10.546 2.438a1.957 1.957 0 0 0 2.908 0L14.4 1.4a1.959 1.959 0 0 1 3.41 1.413l-.071 1.4a1.96 1.96 0 0 0 2.051 2.054l1.4-.071a1.959 1.959 0 0 1 1.41 3.41l-1.042.94a1.96 1.96 0 0 0 0 2.909l1.042.94a1.959 1.959 0 0 1-1.413 3.41l-1.4-.071a1.96 1.96 0 0 0-2.056 2.056l.071 1.4A1.959 1.959 0 0 1 14.4 22.6l-.941-1.041a1.96 1.96 0 0 0-2.908 0L9.606 22.6A1.959 1.959 0 0 1 6.2 21.192l.072-1.4a1.96 1.96 0 0 0-2.056-2.056l-1.4.071A1.958 1.958 0 0 1 1.4 14.4l1.041-.94a1.96 1.96 0 0 0 0-2.909L1.4 9.606A1.958 1.958 0 0 1 2.809 6.2l1.4.071a1.96 1.96 0 0 0 2.058-2.06L6.2 2.81A1.959 1.959 0 0 1 9.606 1.4z"
},null,-1),ea("path",{d:"M7.5 12.001a4.5 4.5 0 1 0 9 0 4.5 4.5 0 1 0-9 0"
},null,-1)];function FL(e,t){return zi(),Wi("svg",jL,[...UL])}const qL={
render:FL},zL=Object.freeze(Object.defineProperty({__proto__:null,default:qL,
render:FL},Symbol.toStringTag,{value:"Module"})),HL={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},ZL=[ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M20.86 16.6c0 .32-.16.64-.47.72l-6.3 2.83a.93.93 0 0 1-.8-.08c-.23-.16-.38-.4-.38-.63V4.56c0-.24.15-.55.39-.63.24-.16.47-.16.79-.08l6.3 2.83c.31.16.47.4.47.71v9.22zM10.7 19.52a.77.77 0 0 1-.7-.08.72.72 0 0 1-.32-.63V5.35c0-.24.15-.56.4-.63.23-.16.46-.16.78-.08M7.43 18.73a.77.77 0 0 1-.7-.08.72.72 0 0 1-.32-.63V6.05c0-.23.16-.55.4-.63.23-.15.47-.15.78-.07m-3.43 12.6a.77.77 0 0 1-.7-.08.72.72 0 0 1-.32-.63V6.84c0-.23.16-.55.4-.63.23-.16.47-.16.78-.08"
},null,-1)];function VL(e,t){return zi(),Wi("svg",HL,[...ZL])}const WL={
render:VL},XL=Object.freeze(Object.defineProperty({__proto__:null,default:WL,
render:VL},Symbol.toStringTag,{value:"Module"})),YL={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},GL=[ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M15.739 8.061c-2.02.404-4.041-1.01-4.445-3.03-.202-1.01 0-2.223.606-3.031C6.445 2 2 6.445 2 11.9s4.445 9.9 9.9 9.9 9.9-4.445 9.9-9.9v-.808c-1.616 1.212-4.04.808-5.253-.808-.606-.606-.808-1.415-.808-2.223"
},null,-1),ea("path",{fill:"currentColor",
d:"M8.667 15.133a1.212 1.212 0 1 0 0-2.425 1.212 1.212 0 0 0 0 2.425m4.243 1.212a1.212 1.212 0 1 0 0-2.424 1.212 1.212 0 0 0 0 2.424M9.88 9.88a1.212 1.212 0 1 0 0-2.425 1.212 1.212 0 0 0 0 2.425"
},null,-1)];function KL(e,t){return zi(),Wi("svg",YL,[...GL])}const JL={
render:KL},eB=Object.freeze(Object.defineProperty({__proto__:null,default:JL,
render:KL},Symbol.toStringTag,{value:"Module"})),tB={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},nB=[ea("path",{
d:"M17.673 16.462C10.59 16.46 5.52 9.612 7.59 2.837.22 6.233-.71 16.333 5.917 21.016c5.864 4.144 14.064 1.34 16.163-5.526-1.38.64-2.884.972-4.407.972M11.996 3.484h4.866m-2.433-2.433v4.867m4.867 2.433h3.244m-1.622-1.622v3.244"
},null,-1)];function rB(e,t){return zi(),Wi("svg",tB,[...nB])}const oB={
render:rB},iB=Object.freeze(Object.defineProperty({__proto__:null,default:oB,
render:rB},Symbol.toStringTag,{value:"Module"})),aB={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},sB=[ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M3 6h18m-2 0v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6m3 0V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2m-6 5v6m4-6v6"
},null,-1)];function lB(e,t){return zi(),Wi("svg",aB,[...sB])}const cB={
render:lB},uB=Object.freeze(Object.defineProperty({__proto__:null,default:cB,
render:lB},Symbol.toStringTag,{value:"Module"})),dB={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},pB=[ea("path",{
d:"M20.317 4.37a19.8 19.8 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.3 18.3 0 0 0-5.487 0 13 13 0 0 0-.617-1.25.08.08 0 0 0-.079-.037A19.7 19.7 0 0 0 3.677 4.37a.1.1 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.08.08 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.08.08 0 0 0 .084-.028 14 14 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13 13 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10 10 0 0 0 .372-.292.07.07 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.07.07 0 0 1 .078.01q.181.149.373.292a.077.077 0 0 1-.006.127 12.3 12.3 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.08.08 0 0 0 .084.028 19.8 19.8 0 0 0 6.002-3.03.08.08 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.06.06 0 0 0-.031-.03M8.02 15.33c-1.182 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418m7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418"
},null,-1)];function hB(e,t){return zi(),Wi("svg",dB,[...pB])}const fB={
render:hB},mB=Object.freeze(Object.defineProperty({__proto__:null,default:fB,
render:hB},Symbol.toStringTag,{value:"Module"})),gB={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},vB=[ea("path",{
d:"M10.145 5.108a.584.584 0 0 1-.657-.37l-.24-.705a.51.51 0 0 0-.496-.35c-1.835.065-3.434.577-4.13.834a1.2 1.2 0 0 0-.6.474c-.75 1.142-3.085 5.242-3.02 11.944.003.4.169.78.485 1.025.716.556 2.259 1.576 4.702 2.314.358.108.75.004.962-.304.316-.462.597-1.04.796-1.494a.56.56 0 0 1 .669-.31c.87.248 1.993.439 3.39.439 1.393 0 2.512-.19 3.379-.437a.56.56 0 0 1 .669.31c.199.454.48 1.03.795 1.492.211.308.604.412.962.304 2.443-.738 3.986-1.758 4.703-2.314.315-.245.48-.626.485-1.025.063-6.652-2.236-10.74-3.003-11.917a1.25 1.25 0 0 0-.654-.5c-.75-.256-2.428-.763-4.094-.833a.505.505 0 0 0-.496.348l-.239.703a.586.586 0 0 1-.66.37 10.5 10.5 0 0 0-1.846-.15c-.827 0-1.461.08-1.862.152"
},null,-1),ea("path",{
d:"M10 12.553c0 1.38-1.008 2.5-2.25 2.5-1.243 0-2.25-1.12-2.25-2.5 0-1.381 1.007-2.5 2.25-2.5 1.242 0 2.25 1.119 2.25 2.5m4 0c0 1.38 1.007 2.5 2.25 2.5 1.242 0 2.25-1.12 2.25-2.5 0-1.381-1.008-2.5-2.25-2.5-1.243 0-2.25 1.119-2.25 2.5"
},null,-1)];function bB(e,t){return zi(),Wi("svg",gB,[...vB])}const OB={
render:bB},yB=Object.freeze(Object.defineProperty({__proto__:null,default:OB,
render:bB},Symbol.toStringTag,{value:"Module"})),wB={
xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},xB=[ea("path",{
fill:"none",stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M5.4 22.2h13c1.1 0 2-.9 2-2V3.6c0-1.1-.9-2-2-2h-9l-6 6v12.6c0 1.1.9 2 2 2"
},null,-1),ea("path",{fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",
d:"M3.6 7.6h4c1.1 0 2-.9 2-2v-4zm9.4 0h4m-10 5h10M7 17.4h10"},null,-1)]
;function kB(e,t){return zi(),Wi("svg",wB,[...xB])}const SB={render:kB
},_B=Object.freeze(Object.defineProperty({__proto__:null,default:SB,render:kB
},Symbol.toStringTag,{value:"Module"})),EB={xmlns:"http://www.w3.org/2000/svg",
fill:"none",stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",viewBox:"0 0 24 24"},TB=[ea("path",{
d:"M12.001 3.75v12m-4.5-4.5 4.5 4.5 4.5-4.5m6.75 4.5v1.5a3 3 0 0 1-3 3h-16.5a3 3 0 0 1-3-3v-1.5"
},null,-1)];function CB(e,t){return zi(),Wi("svg",EB,[...TB])}const AB={
render:CB},PB=Object.freeze(Object.defineProperty({__proto__:null,default:AB,
render:CB},Symbol.toStringTag,{value:"Module"})),DB={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},$B=[ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M7.42 16.58H3.25a.83.83 0 0 1-.83-.83V3.25a.83.83 0 0 1 .83-.83h12.5a.83.83 0 0 1 .83.83v4.17"
},null,-1),ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M8.25 7.42h12.5s.83 0 .83.83v12.5s0 .83-.83.83H8.25s-.83 0-.83-.83V8.25s0-.83.83-.83"
},null,-1)];function RB(e,t){return zi(),Wi("svg",DB,[...$B])}const NB={
render:RB},IB=Object.freeze(Object.defineProperty({__proto__:null,default:NB,
render:RB},Symbol.toStringTag,{value:"Module"})),MB={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},LB=[ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M14 3H5.571A2.57 2.57 0 0 0 3 5.571V18.43A2.57 2.57 0 0 0 5.571 21H18.43A2.57 2.57 0 0 0 21 18.429V10m.96-5.35a1.845 1.845 0 0 0-2.61-2.61l-6.644 6.647a1.3 1.3 0 0 0-.328.543l-.864 2.849a.327.327 0 0 0 .408.407l2.849-.864c.205-.062.391-.174.543-.325l6.645-6.647Z"
},null,-1)];function BB(e,t){return zi(),Wi("svg",MB,[...LB])}const QB={
render:BB},jB=Object.freeze(Object.defineProperty({__proto__:null,default:QB,
render:BB},Symbol.toStringTag,{value:"Module"})),UB={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},FB=[ea("path",{
d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"
},null,-1)];function qB(e,t){return zi(),Wi("svg",UB,[...FB])}const zB={
render:qB},HB=Object.freeze(Object.defineProperty({__proto__:null,default:zB,
render:qB},Symbol.toStringTag,{value:"Module"})),ZB={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},VB=[ea("path",{
d:"M2.25 4.5h19.5s1.5 0 1.5 1.5v12s0 1.5-1.5 1.5H2.25s-1.5 0-1.5-1.5V6s0-1.5 1.5-1.5m13.437 5.475L19.5 13.5M8.313 9.975 4.5 13.5"
},null,-1),ea("path",{
d:"m22.88 5.014-9.513 6.56a2.41 2.41 0 0 1-2.734 0L1.12 5.014"},null,-1)]
;function WB(e,t){return zi(),Wi("svg",ZB,[...VB])}const XB={render:WB
},YB=Object.freeze(Object.defineProperty({__proto__:null,default:XB,render:WB
},Symbol.toStringTag,{value:"Module"})),GB={xmlns:"http://www.w3.org/2000/svg",
fill:"currentColor",viewBox:"0 0 24 24"},KB=[ea("path",{
d:"M12 0a12.24 12.24 0 0 0-8.53 3.65A11.85 11.85 0 0 0 0 12.21 11.78 11.78 0 0 0 11.8 24h.2a12.11 12.11 0 0 0 12-12.21A11.77 11.77 0 0 0 12 0m-1.5 16.54A1.48 1.48 0 0 1 12 15a1.53 1.53 0 0 1 1.52 1.47A1.47 1.47 0 0 1 12.05 18a1.53 1.53 0 0 1-1.55-1.46m.5-4v-6a1 1 0 0 1 2 0v6a1 1 0 0 1-2 0"
},null,-1)];function JB(e,t){return zi(),Wi("svg",GB,[...KB])}const eQ={
render:JB},tQ=Object.freeze(Object.defineProperty({__proto__:null,default:eQ,
render:JB},Symbol.toStringTag,{value:"Module"})),nQ={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},rQ=[ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"m18.59 15.3 2.9-2.91a1.32 1.32 0 0 0 0-1.87l-1.85-1.85a3.3 3.3 0 1 1-4.31-4.31L13.48 2.5a1.32 1.32 0 0 0-1.87 0l-2.9 2.91a3.3 3.3 0 1 0-3.3 3.3l-2.9 2.9a1.32 1.32 0 0 0 0 1.87l1.85 1.85a3.3 3.3 0 1 1 4.31 4.31l1.85 1.85a1.32 1.32 0 0 0 1.87 0l2.9-2.9a3.3 3.3 0 1 0 3.3-3.3Z"
},null,-1)];function oQ(e,t){return zi(),Wi("svg",nQ,[...rQ])}const iQ={
render:oQ},aQ=Object.freeze(Object.defineProperty({__proto__:null,default:iQ,
render:oQ},Symbol.toStringTag,{value:"Module"})),sQ={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},lQ=[ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",d:"M6.4 4H20v13.59M4 20 20 4"},null,-1)]
;function cQ(e,t){return zi(),Wi("svg",sQ,[...lQ])}const uQ={render:cQ
},dQ=Object.freeze(Object.defineProperty({__proto__:null,default:uQ,render:cQ
},Symbol.toStringTag,{value:"Module"})),pQ={xmlns:"http://www.w3.org/2000/svg",
viewBox:"0 0 24 24"},hQ=[ea("path",{fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",
d:"M.75 4.293h22.5M3.146 9.431h17.708M8.72 19.707h6.56m-9.737-5.138h12.914"
},null,-1)];function fQ(e,t){return zi(),Wi("svg",pQ,[...hQ])}const mQ={
render:fQ},gQ=Object.freeze(Object.defineProperty({__proto__:null,default:mQ,
render:fQ},Symbol.toStringTag,{value:"Module"})),vQ={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},bQ=[ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z"
},null,-1)];function OQ(e,t){return zi(),Wi("svg",vQ,[...bQ])}const yQ={
render:OQ},wQ=Object.freeze(Object.defineProperty({__proto__:null,default:yQ,
render:OQ},Symbol.toStringTag,{value:"Module"})),xQ={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 1024 1024"
},kQ=[ea("path",{
d:"M512 0a512 512 0 0 0-162 998c26 4 35-11 35-25l-1-95c-128 23-161-32-172-60-6-15-31-61-52-73-18-10-44-33-1-33 40-1 69 37 78 52 46 78 120 56 149 43 5-33 18-56 33-69-114-13-234-56-234-253 0-56 20-101 53-137-5-13-23-65 5-136 0 0 43-13 141 53a487 487 0 0 1 256 0c98-66 141-53 141-53 28 71 10 123 5 136 33 36 53 81 53 137 0 197-120 240-234 253 18 16 35 47 35 95l-1 140c0 14 9 30 35 25A512 512 0 0 0 512 0"
},null,-1)];function SQ(e,t){return zi(),Wi("svg",xQ,[...kQ])}const _Q={
render:SQ},EQ=Object.freeze(Object.defineProperty({__proto__:null,default:_Q,
render:SQ},Symbol.toStringTag,{value:"Module"})),TQ={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},CQ=[ea("path",{
d:"M16.643 22.94v-3.135a3.68 3.68 0 0 0-1.026-2.852c3.43-.382 7.036-1.682 7.036-7.648a5.94 5.94 0 0 0-1.64-4.097 5.54 5.54 0 0 0-.097-4.12s-1.29-.382-4.272 1.618a14.6 14.6 0 0 0-7.649 0c-2.982-2-4.272-1.617-4.272-1.617a5.54 5.54 0 0 0-.098 4.119 5.94 5.94 0 0 0-1.639 4.13c0 5.922 3.606 7.222 7.036 7.648a3.68 3.68 0 0 0-1.027 2.819v3.136m0-2.186c-3.277 1.064-6.009 0-7.648-3.278"
},null,-1)];function AQ(e,t){return zi(),Wi("svg",TQ,[...CQ])}const PQ={
render:AQ},DQ=Object.freeze(Object.defineProperty({__proto__:null,default:PQ,
render:AQ},Symbol.toStringTag,{value:"Module"})),$Q={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},RQ=[ea("path",{
d:"M23.93 10.67a.76.76 0 0 0-.75-.67H12.75a.76.76 0 0 0-.75.75v3.5a.76.76 0 0 0 .75.75h5.58A7 7 0 1 1 12 5a7 7 0 0 1 4.23 1.42.74.74 0 0 0 1-.07l2.47-2.49a.75.75 0 0 0 .22-.57.77.77 0 0 0-.27-.54A12 12 0 1 0 24 12a12 12 0 0 0-.07-1.33"
},null,-1)];function NQ(e,t){return zi(),Wi("svg",$Q,[...RQ])}const IQ={
render:NQ},MQ=Object.freeze(Object.defineProperty({__proto__:null,default:IQ,
render:NQ},Symbol.toStringTag,{value:"Module"})),LQ={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},BQ=[ea("path",{
d:"M9.2 9.2c0-.5.1-1 .4-1.5s.6-.8 1.1-1q.75-.3 1.5-.3c.75 0 1 .2 1.4.5s.7.7 1 1.2c.2.5.3 1 .2 1.5s-.3 1-.6 1.4-.8.7-1.2.9c-.255.128-.5.3-.7.5s-.3.5-.3.8v.9m0 3.5c-.2 0-.4-.2-.4-.4s.2-.4.4-.4.4.2.4.4-.2.4-.4.4"
},null,-1),ea("path",{
d:"M12 22c5.524 0 10-4.476 10-10S17.524 2 12 2 2 6.476 2 12s4.476 10 10 10"
},null,-1)];function QQ(e,t){return zi(),Wi("svg",LQ,[...BQ])}const jQ={
render:QQ},UQ=Object.freeze(Object.defineProperty({__proto__:null,default:jQ,
render:QQ},Symbol.toStringTag,{value:"Module"})),FQ={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},qQ=[ea("path",{
d:"M2.78 21 21.53 3M9 19.05a9.9 9.9 0 0 0 3 .45c4.1.07 8.26-2.81 10.82-5.64a1.65 1.65 0 0 0 0-2.22 20 20 0 0 0-3.07-2.76m-2.66-1.61A11.3 11.3 0 0 0 12 6c-4-.07-8.2 2.75-10.82 5.64a1.65 1.65 0 0 0 0 2.22 20 20 0 0 0 4.93 4M9 15.07a3.85 3.85 0 0 1 5.5-5.28"
},null,-1),ea("path",{d:"M15.75 12.75A3.75 3.75 0 0 1 12 16.5"},null,-1)]
;function zQ(e,t){return zi(),Wi("svg",FQ,[...qQ])}const HQ={render:zQ
},ZQ=Object.freeze(Object.defineProperty({__proto__:null,default:HQ,render:zQ
},Symbol.toStringTag,{value:"Module"})),VQ={xmlns:"http://www.w3.org/2000/svg",
fill:"none",stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",viewBox:"0 0 24 24"},WQ=[ea("path",{
d:"M12.9 6.8v6.1h4.7"},null,-1),ea("path",{
d:"M6.1 17.2c1.6 2.2 4.2 3.6 7.1 3.6 4.8 0 8.8-3.9 8.8-8.8s-3.9-8.8-8.8-8.8-8.8 4-8.8 8.8v1.7M2 11.3l2.4 2.4 2.4-2.4"
},null,-1)];function XQ(e,t){return zi(),Wi("svg",VQ,[...WQ])}const YQ={
render:XQ},GQ=Object.freeze(Object.defineProperty({__proto__:null,default:YQ,
render:XQ},Symbol.toStringTag,{value:"Module"})),KQ={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},JQ=[ea("path",{
d:"M22.868 8.947 12 .747l-10.878 8.2a1.18 1.18 0 0 0-.377.8v12.522a.98.98 0 0 0 .978.978h6.522V18a3.75 3.75 0 0 1 7.5 0v5.25h6.521a.98.98 0 0 0 .979-.978V9.747a1.18 1.18 0 0 0-.377-.8"
},null,-1)];function ej(e,t){return zi(),Wi("svg",KQ,[...JQ])}const tj={
render:ej},nj=Object.freeze(Object.defineProperty({__proto__:null,default:tj,
render:ej},Symbol.toStringTag,{value:"Module"})),rj={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},oj=[ea("path",{d:"M12 10.67v7.98M14.66 16 12 18.64 9.34 16"
},null,-1),ea("path",{
d:"M3.35 7.34h17.3s1.33 0 1.33 1.33v11.98s0 1.33-1.33 1.33H3.35s-1.33 0-1.33-1.33V8.67s0-1.33 1.33-1.33"
},null,-1),ea("path",{
d:"m2.2 8 2.13-5.19a1.33 1.33 0 0 1 1.22-.79h12.9a1.33 1.33 0 0 1 1.22.8l2.08 5.1M12 7.34V2.02"
},null,-1)];function ij(e,t){return zi(),Wi("svg",rj,[...oj])}const aj={
render:ij},sj=Object.freeze(Object.defineProperty({__proto__:null,default:aj,
render:ij},Symbol.toStringTag,{value:"Module"})),lj={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},cj=[ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10"
},null,-1),ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M12 17v-6 0a.5.5 0 0 0-.5-.5l-.5.001h-1M12 17h-2m2 0h2"},null,-1),ea("path",{
fill:"currentColor","fill-rule":"evenodd",
d:"M10.75 7.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]
;function uj(e,t){return zi(),Wi("svg",lj,[...cj])}const dj={render:uj
},pj=Object.freeze(Object.defineProperty({__proto__:null,default:dj,render:uj
},Symbol.toStringTag,{value:"Module"})),hj={xmlns:"http://www.w3.org/2000/svg",
fill:"none",stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",viewBox:"0 0 24 24"},fj=[ea("path",{
d:"M12.82 14.51 15.36 12l1.76.47a1.56 1.56 0 0 0 1.51-.47 1.58 1.58 0 0 0 .37-1.49l-.47-1.75.82-.76 1.76.47A1.56 1.56 0 0 0 22.62 8 1.58 1.58 0 0 0 23 6.52l-.47-1.75a2.35 2.35 0 0 0-3.33-3.33l-9.71 9.74a6.29 6.29 0 1 0 3.33 3.33"
},null,-1),ea("path",{d:"M4.26 17.84a1.9 1.9 0 1 0 3.8 0 1.9 1.9 0 1 0-3.8 0"
},null,-1)];function mj(e,t){return zi(),Wi("svg",hj,[...fj])}const gj={
render:mj},vj=Object.freeze(Object.defineProperty({__proto__:null,default:gj,
render:mj},Symbol.toStringTag,{value:"Module"})),bj={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},Oj=[ea("path",{
d:"M16.35 16.5v1c0 1.1-.9 2-2 2H2.75c-1.1 0-2-.9-2-2v-11c0-1.1.9-2 2-2h11.6c1.1 0 2 .9 2 2v1M5.25 12h18m0 0-3 3.1m3-3.1-3-2.9"
},null,-1)];function yj(e,t){return zi(),Wi("svg",bj,[...Oj])}const wj={
render:yj},xj=Object.freeze(Object.defineProperty({__proto__:null,default:wj,
render:yj},Symbol.toStringTag,{value:"Module"})),kj={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},Sj=[ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M6.55 12a5.46 5.46 0 1 0 10.91.481A5.46 5.46 0 0 0 6.55 12m0 0H2m4.55 0H4.73m12.31 2.1a5.46 5.46 0 0 1-6.614-6.887M12 2v4.55m7.08-1.62-3.22 3.22M22 12h-4.54m1.62 7.08L16 16.01M12 22v-4m-7.07 1.08L8 16.01M4.93 4.93l3.22 3.22"
},null,-1)];function _j(e,t){return zi(),Wi("svg",kj,[...Sj])}const Ej={
render:_j},Tj=Object.freeze(Object.defineProperty({__proto__:null,default:Ej,
render:_j},Symbol.toStringTag,{value:"Module"})),Cj={
xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Aj=[ea("path",{
fill:"none",stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M7.501 12a4.5 4.5 0 1 0 9 0 4.5 4.5 0 1 0-9 0m4.5-10.5v3m0 15v3m10.5-10.5h-3m-15 0h-3m17.924-7.424-2.121 2.121M6.697 17.304l-2.121 2.121m14.849 0-2.121-2.121M6.697 6.697 4.576 4.576"
},null,-1)];function Pj(e,t){return zi(),Wi("svg",Cj,[...Aj])}const Dj={
render:Pj},$j=Object.freeze(Object.defineProperty({__proto__:null,default:Dj,
render:Pj},Symbol.toStringTag,{value:"Module"})),Rj={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},Nj=[ea("path",{
d:"M13.5 18 12 19.5c-1 1-2.3 1.5-3.7 1.5s-2.7-.6-3.7-1.5c-1-1-1.5-2.3-1.5-3.7s.6-2.7 1.5-3.7l1.5-1.5M10.5 6 12 4.5c1-1 2.3-1.5 3.7-1.5s2.7.6 3.7 1.5c1 1 1.5 2.3 1.5 3.7s-.6 2.7-1.5 3.7l-1.5 1.5M9 15l6-6"
},null,-1)];function Ij(e,t){return zi(),Wi("svg",Rj,[...Nj])}const Mj={
render:Ij},Lj=Object.freeze(Object.defineProperty({__proto__:null,default:Mj,
render:Ij},Symbol.toStringTag,{value:"Module"})),Bj={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"
},Qj=[ea("path",{fill:"currentColor","fill-rule":"evenodd",
d:"M7 2a2 2 0 0 0-2 2v1h4V4a2 2 0 0 0-2-2M3 4v1a1.5 1.5 0 0 0-1.5 1.5v6A1.5 1.5 0 0 0 3 14h8a1.5 1.5 0 0 0 1.5-1.5v-6A1.5 1.5 0 0 0 11 5V4a4 4 0 1 0-8 0m4 6.75a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5",
"clip-rule":"evenodd"},null,-1)];function jj(e,t){
return zi(),Wi("svg",Bj,[...Qj])}const Uj={render:jj
},Fj=Object.freeze(Object.defineProperty({__proto__:null,default:Uj,render:jj
},Symbol.toStringTag,{value:"Module"})),qj={xmlns:"http://www.w3.org/2000/svg",
fill:"currentColor",viewBox:"0 0 593 593"},zj=[ea("path",{"fill-rule":"evenodd",
d:"M347 0c6 0 12 5 12 12v134l94-95c5-5 13-5 17 0l72 72c4 4 5 12 0 16v1l-95 94h134c7 0 12 5 12 12v101c0 7-5 12-12 12H447l95 94c4 5 5 13 0 17l-72 72c-4 4-12 5-16 0h-1l-94-95v134c0 7-5 12-12 12H246c-7 0-12-5-12-12v-70c0-22 9-43 24-59l130-130c14-14 14-37 0-51L259 142a84 84 0 0 1-25-59V12c0-7 5-12 12-12zM138 52h1l219 219c14 14 14 37 0 51L139 542c-4 5-12 5-17 0l-71-70c-4-5-5-12 0-17l95-96H12c-7 0-12-5-12-12V246c0-7 5-12 12-12h134l-95-94c-4-5-4-12 0-17l71-71c4-5 12-5 16 0"
},null,-1)];function Hj(e,t){return zi(),Wi("svg",qj,[...zj])}const Zj={
render:Hj},Vj=Object.freeze(Object.defineProperty({__proto__:null,default:Zj,
render:Hj},Symbol.toStringTag,{value:"Module"})),Wj={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 662 662"
},Xj=[ea("path",{"fill-rule":"evenodd",
d:"M331 0a331 331 0 1 1 0 662 331 331 0 0 1 0-662m148.5 109 .6.9a187 187 0 1 1-297.6-.9 267 267 0 1 0 297 0"
},null,-1)];function Yj(e,t){return zi(),Wi("svg",Wj,[...Xj])}const Gj={
render:Yj},Kj=Object.freeze(Object.defineProperty({__proto__:null,default:Gj,
render:Yj},Symbol.toStringTag,{value:"Module"})),Jj={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 620 620"
},eU=[ea("path",{
d:"M-.653 309.29c-.078 82.272 31.848 159.735 89.739 218.178l.283.283c122.379 121.247 319.824 121.184 440.16-.283 119.967-121.1 119.409-316.933-.998-437.339l-.99-.99C468.681 30.845 390.716-1.017 307.893-.67c-82.83.354-160.443 32.994-218.814 91.79C31.209 149.555-.724 227.025-.653 309.29m469.271-160.789.778.778c87.9 87.9 88.325 231.005.707 319.33-77.753 78.46-199.786 87.412-288.959 26.862l198.513-198.513-.007 166.361 83.68-.07v-306.22H157.11l-.008 83.6h160.584L121.994 436.323c-59.347-87.689-50.536-208.59 26.51-286.343 87.836-88.686 231.436-89.31 320.106-1.486Z"
},null,-1)];function tU(e,t){return zi(),Wi("svg",Jj,[...eU])}const nU={
render:tU},rU=Object.freeze(Object.defineProperty({__proto__:null,default:nU,
render:tU},Symbol.toStringTag,{value:"Module"})),oU={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 642 642"
},iU=[ea("path",{
d:"M321 0a321 321 0 1 1 0 642 321 321 0 0 1 0-642m51.3 63L321 189.5 269.7 63l1 136.5-95.8-97.2L228 228l-125.7-53.1 97.2 95.8-136.5-1L189.5 321 63 372.3l136.5-1-97.2 95.8 125.7-53-53.1 125.6 95.8-97.2-1 136.5L321 452.5 372.3 579l-1-136.5 95.8 97.2-53-125.7 125.6 53.1-97.2-95.8 136.5 1L452.5 321 579 269.7l-136.5 1 97.2-95.8L414 228l53.1-125.7-95.8 97.2z"
},null,-1)];function aU(e,t){return zi(),Wi("svg",oU,[...iU])}const sU={
render:aU},lU=Object.freeze(Object.defineProperty({__proto__:null,default:sU,
render:aU},Symbol.toStringTag,{value:"Module"})),cU={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 620 620"
},uU=[ea("path",{
d:"M529.2 90.8A310 310 0 1 0 90.8 529.2 310 310 0 0 0 529.2 90.8M122.4 498.2c-54.9-55-15.4-183.5 88.2-287 103.6-103.7 232.1-143.2 287-88.3 54.9 54.8 15.4 183.4-88.3 287-103.5 103.6-232 143.1-286.9 88.3m261.8-262.7A104.7 104.7 0 1 1 236 383.7a104.7 104.7 0 0 1 148.2-148.2"
},null,-1)];function dU(e,t){return zi(),Wi("svg",cU,[...uU])}const pU={
render:dU},hU=Object.freeze(Object.defineProperty({__proto__:null,default:pU,
render:dU},Symbol.toStringTag,{value:"Module"})),fU={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"
},mU=[ea("path",{fill:"currentColor","fill-rule":"evenodd",
d:"M8.75 0a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0V.75A.75.75 0 0 1 8.75 0m4.03 2.28a.75.75 0 0 0-1.06-1.06l-1 1a.75.75 0 0 0 1.06 1.06zM9.707 5.707a1 1 0 0 0-1.414-1.414l-8 8a1 1 0 1 0 1.414 1.414zM11.75 4.5a.75.75 0 0 0 0 1.5h1.5a.75.75 0 0 0 0-1.5zm-1.53 2.22a.75.75 0 0 1 1.06 0l1 1a.75.75 0 0 1-1.06 1.06l-1-1a.75.75 0 0 1 0-1.06m-3.94-5a.75.75 0 0 0-1.06 1.06l1 1a.75.75 0 0 0 1.06-1.06z",
"clip-rule":"evenodd"},null,-1)];function gU(e,t){
return zi(),Wi("svg",fU,[...mU])}const vU={render:gU
},bU=Object.freeze(Object.defineProperty({__proto__:null,default:vU,render:gU
},Symbol.toStringTag,{value:"Module"})),OU={xmlns:"http://www.w3.org/2000/svg",
viewBox:"0 0 24 24"},yU=[ea("path",{fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",d:"M22 6.8H2m20 10.4H2"
},null,-1)];function wU(e,t){return zi(),Wi("svg",OU,[...yU])}const xU={
render:wU},kU=Object.freeze(Object.defineProperty({__proto__:null,default:xU,
render:wU},Symbol.toStringTag,{value:"Module"})),SU={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},_U=[ea("path",{
d:"M17.333 5.34c1.39-.22 2.796-.334 4.205-.34.121 0 .238.043.329.122a.44.44 0 0 1 .133.314v13.73a.44.44 0 0 1-.133.306.46.46 0 0 1-.311.13C14.186 19.708 12 22 12 22m0 0V7.38S9.822 5.096 2.462 5a.5.5 0 0 0-.329.122.44.44 0 0 0-.133.314v13.73a.44.44 0 0 0 .133.306.46.46 0 0 0 .311.13C9.814 19.708 12 22 12 22"
},null,-1),ea("path",{
d:"M12 22a5.67 5.67 0 0 1 1.367-3.135c.967-1.141 2.237-1.923 3.633-2.236V2.443a.45.45 0 0 0-.051-.21.4.4 0 0 0-.14-.154.47.47 0 0 0-.409-.054 6.44 6.44 0 0 0-3.033 2.063A5.86 5.86 0 0 0 12 7.205"
},null,-1)];function EU(e,t){return zi(),Wi("svg",SU,[..._U])}const TU={
render:EU},CU=Object.freeze(Object.defineProperty({__proto__:null,default:TU,
render:EU},Symbol.toStringTag,{value:"Module"})),AU={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"
},PU=[ea("path",{fill:"currentColor","fill-rule":"evenodd",
d:"M11.821.098a1.62 1.62 0 0 1 2.077 2.076l-3.574 10.712a1.62 1.62 0 0 1-1.168 1.069 1.6 1.6 0 0 1-1.52-.434l-1.918-1.909-2.014 1.042a.5.5 0 0 1-.73-.457l.083-3.184 7.045-5.117a.625.625 0 1 0-.735-1.012L2.203 8.088l-1.73-1.73a1.6 1.6 0 0 1-.437-1.447 1.62 1.62 0 0 1 1.069-1.238h.003z",
"clip-rule":"evenodd"},null,-1)];function DU(e,t){
return zi(),Wi("svg",AU,[...PU])}const $U={render:DU
},RU=Object.freeze(Object.defineProperty({__proto__:null,default:$U,render:DU
},Symbol.toStringTag,{value:"Module"})),NU={xmlns:"http://www.w3.org/2000/svg",
fill:"none",stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",viewBox:"0 0 24 24"},IU=[ea("path",{
d:"M17 3a2.85 2.85 0 0 1 2.064-1.007 2.87 2.87 0 0 1 2.14.834 2.83 2.83 0 0 1 .825 2.131A2.8 2.8 0 0 1 21 7L7.5 20.5 2 22l1.5-5.5z"
},null,-1)];function MU(e,t){return zi(),Wi("svg",NU,[...IU])}const LU={
render:MU},BU=Object.freeze(Object.defineProperty({__proto__:null,default:LU,
render:MU},Symbol.toStringTag,{value:"Module"})),QU={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},jU=[ea("path",{
d:"M6 6.663c0-1.582 1.75-2.538 3.082-1.682l8.301 5.337a2 2 0 0 1 0 3.364L9.082 19.02C7.75 19.875 6 18.919 6 17.337z"
},null,-1)];function UU(e,t){return zi(),Wi("svg",QU,[...jU])}const FU={
render:UU},qU=Object.freeze(Object.defineProperty({__proto__:null,default:FU,
render:UU},Symbol.toStringTag,{value:"Module"})),zU={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 12"
},HU=[ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M11 4.3c-.5-.7-1.7-2.2-2.4-2.6C7.9 1.2 7 1 5.9 1s-2.6.5-3.5 1.5C1.5 3.4.9 4.7.9 6s.5 2.6 1.5 3.5c.9.9 2.2 1.5 3.6 1.5s2.6-.6 3.6-1.5c.5-.5.8-.9 1-1.6"
},null,-1),ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",d:"M11 1v3.3H7.6"},null,-1)];function ZU(e,t){
return zi(),Wi("svg",zU,[...HU])}const VU={render:ZU
},WU=Object.freeze(Object.defineProperty({__proto__:null,default:VU,render:ZU
},Symbol.toStringTag,{value:"Module"})),XU={xmlns:"http://www.w3.org/2000/svg",
fill:"none",stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",viewBox:"0 0 24 24"},YU=[ea("path",{
d:"M16.22 2.663a1.47 1.47 0 0 0-1.09 0L8.87 5.167c-.35.14-.74.14-1.09 0L1.982 2.848a.735.735 0 0 0-1.008.686V17.62c0 .601.366 1.142.924 1.365l5.88 2.352c.35.14.742.14 1.092 0l6.258-2.504c.35-.14.741-.14 1.092 0l5.796 2.315a.735.735 0 0 0 1.008-.686V6.38a1.47 1.47 0 0 0-.924-1.365ZM8.325 5.272v16.17m7.35-18.884v16.17"
},null,-1)];function GU(e,t){return zi(),Wi("svg",XU,[...YU])}const KU={
render:GU},JU=Object.freeze(Object.defineProperty({__proto__:null,default:KU,
render:GU},Symbol.toStringTag,{value:"Module"})),eF={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},tF=[ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16m10 2-4.35-4.35"},null,-1)]
;function nF(e,t){return zi(),Wi("svg",eF,[...tF])}const rF={render:nF
},oF=Object.freeze(Object.defineProperty({__proto__:null,default:rF,render:nF
},Symbol.toStringTag,{value:"Module"})),iF={xmlns:"http://www.w3.org/2000/svg",
fill:"none",viewBox:"0 0 24 24"},aF=[ea("path",{stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",
d:"M20 12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2m16 0H4m16 0a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2"
},null,-1),ea("path",{fill:"currentColor",
d:"M18 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2"
},null,-1),ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",d:"M6 8h4m-4 8h4"},null,-1)];function sF(e,t){
return zi(),Wi("svg",iF,[...aF])}const lF={render:sF
},cF=Object.freeze(Object.defineProperty({__proto__:null,default:lF,render:sF
},Symbol.toStringTag,{value:"Module"})),uF={xmlns:"http://www.w3.org/2000/svg",
viewBox:"0 0 24 24"},dF=[ea("path",{fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",
d:"M12 5.251C7.969 5.183 3.8 8 1.179 10.885a1.663 1.663 0 0 0 0 2.226C3.743 15.935 7.9 18.817 12 18.748c4.1.069 8.258-2.813 10.824-5.637a1.663 1.663 0 0 0 0-2.226C20.2 8 16.031 5.183 12 5.251"
},null,-1),ea("path",{fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",
d:"M15.75 12A3.75 3.75 0 1 1 12 8.249 3.75 3.75 0 0 1 15.75 12"},null,-1)]
;function pF(e,t){return zi(),Wi("svg",uF,[...dF])}const hF={render:pF
},fF=Object.freeze(Object.defineProperty({__proto__:null,default:hF,render:pF
},Symbol.toStringTag,{value:"Module"})),mF={xmlns:"http://www.w3.org/2000/svg",
viewBox:"0 0 24 24"},gF=[ea("path",{fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",
d:"M2 5.4h20M2 12h20M2 18.6h13.3"},null,-1)];function vF(e,t){
return zi(),Wi("svg",mF,[...gF])}const bF={render:vF
},OF=Object.freeze(Object.defineProperty({__proto__:null,default:bF,render:vF
},Symbol.toStringTag,{value:"Module"})),yF={xmlns:"http://www.w3.org/2000/svg",
viewBox:"0 0 24 24"},wF=[ea("path",{fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",d:"M13 15h5M6 9l4 3-4 3"
},null,-1),ea("path",{fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",
d:"M21 2.8H3.1c-.7 0-1.4.6-1.4 1.4v15.6c0 .7.6 1.4 1.4 1.4H21c.7 0 1.4-.6 1.4-1.4V4.2c0-.8-.5-1.4-1.3-1.4z"
},null,-1)];function xF(e,t){return zi(),Wi("svg",yF,[...wF])}const kF={
render:xF},SF=Object.freeze(Object.defineProperty({__proto__:null,default:kF,
render:xF},Symbol.toStringTag,{value:"Module"})),_F={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},EF=[ea("path",{fill:"currentColor","fill-rule":"evenodd",
d:"M14.333 22.94c-.848 0-1.604-.5-1.96-1.251-1.783-3.772-3.568-6.116-6.2-7.75H5V2.69h1.779l6.5-1.5h7.82a1.375 1.375 0 0 1 0 2.75h-.5a.625.625 0 1 0 0 1.25h1.5a1.375 1.375 0 0 1 0 2.75h-.5a.625.625 0 1 0 0 1.25h1a1.375 1.375 0 0 1 0 2.75h-1a.625.625 0 0 0 0 1.25h1a1.375 1.375 0 0 1 0 2.75h-7.834c.618 1.618 1.2 3.36 1.497 4.743.276 1.28-.77 2.258-1.93 2.258ZM3.5 14.5a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h1.5a1 1 0 0 1 1 1z",
"clip-rule":"evenodd"},null,-1)];function TF(e,t){
return zi(),Wi("svg",_F,[...EF])}const CF={render:TF
},AF=Object.freeze(Object.defineProperty({__proto__:null,default:CF,render:TF
},Symbol.toStringTag,{value:"Module"})),PF={xmlns:"http://www.w3.org/2000/svg",
fill:"none",viewBox:"0 0 24 24"},DF=[ea("path",{fill:"currentColor",
"fill-rule":"evenodd",
d:"M14.333.375c-.848 0-1.604.5-1.96 1.251-1.783 3.772-3.568 6.116-6.2 7.749H5v11.25h1.779l6.5 1.5h7.82a1.375 1.375 0 0 0 0-2.75h-.5a.625.625 0 1 1 0-1.25h1.5a1.375 1.375 0 0 0 0-2.75h-.5a.625.625 0 1 1 0-1.25h1a1.375 1.375 0 0 0 0-2.75h-1a.625.625 0 1 1 0-1.25h1a1.375 1.375 0 0 0 0-2.75h-7.834c.618-1.617 1.2-3.359 1.497-4.742.276-1.28-.77-2.258-1.93-2.258ZM3.5 8.815a1 1 0 0 0-1-1H1a1 1 0 0 0-1 1v12.5a1 1 0 0 0 1 1h1.5a1 1 0 0 0 1-1z",
"clip-rule":"evenodd"},null,-1)];function $F(e,t){
return zi(),Wi("svg",PF,[...DF])}const RF={render:$F
},NF=Object.freeze(Object.defineProperty({__proto__:null,default:RF,render:$F
},Symbol.toStringTag,{value:"Module"})),IF={xmlns:"http://www.w3.org/2000/svg",
fill:"none",viewBox:"0 0 24 24"},MF=[ea("path",{stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",
d:"m19.5 5.75-1.51 14.34a1.67 1.67 0 0 1-1.66 1.5H7.67A1.67 1.67 0 0 1 6 20.08L4.5 5.75m-2.08 0h19.16m-13.33 0v-2.5a.83.83 0 0 1 .83-.83h5.84a.83.83 0 0 1 .83.83v2.5M12 9.5v8.75m3.75-8.75-.42 8.75M8.25 9.5l.42 8.75"
},null,-1)];function LF(e,t){return zi(),Wi("svg",IF,[...MF])}const BF={
render:LF},QF=Object.freeze(Object.defineProperty({__proto__:null,default:BF,
render:LF},Symbol.toStringTag,{value:"Module"})),jF={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},UF=[ea("path",{
d:"M19.5 9.5h-.75V6.75A6.75 6.75 0 0 0 5.53 4.81a1.25 1.25 0 0 0 2.4.72 4.25 4.25 0 0 1 8.32 1.22V9a.5.5 0 0 1-.5.5H4.5a2 2 0 0 0-2 2V22a2 2 0 0 0 2 2h15a2 2 0 0 0 2-2V11.5a2 2 0 0 0-2-2m-7.5 9a2 2 0 1 1 2-2 2 2 0 0 1-2 2"
},null,-1)];function FF(e,t){return zi(),Wi("svg",jF,[...UF])}const qF={
render:FF},zF=Object.freeze(Object.defineProperty({__proto__:null,default:qF,
render:FF},Symbol.toStringTag,{value:"Module"})),HF={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},ZF=[ea("path",{
d:"M12 0a12 12 0 1 0 12 12A12 12 0 0 0 12 0m4.91 10.41A1 1 0 0 1 16 11h-2.25a.25.25 0 0 0-.25.25v7.25a1.5 1.5 0 0 1-3 0v-7.25a.25.25 0 0 0-.25-.25H8a1 1 0 0 1-.75-1.66l4-4.5a1 1 0 0 1 1.5 0l4 4.5a1 1 0 0 1 .16 1.07"
},null,-1)];function VF(e,t){return zi(),Wi("svg",HF,[...ZF])}const WF={
render:VF},XF=Object.freeze(Object.defineProperty({__proto__:null,default:WF,
render:VF},Symbol.toStringTag,{value:"Module"})),YF={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},GF=[ea("path",{stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",d:"M12 4.33v15.32m5.37-9.95L12 4.33 6.63 9.7"
},null,-1)];function KF(e,t){return zi(),Wi("svg",YF,[...GF])}const JF={
render:KF},eq=Object.freeze(Object.defineProperty({__proto__:null,default:JF,
render:KF},Symbol.toStringTag,{value:"Module"})),tq={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},nq=[ea("path",{d:"M3.5 22.2c.3-4.5 4-8 8.5-8s8.2 3.5 8.5 8z"
},null,-1),ea("circle",{cx:"12",cy:"6.2",r:"4.5"},null,-1)];function rq(e,t){
return zi(),Wi("svg",tq,[...nq])}const oq={render:rq
},iq=Object.freeze(Object.defineProperty({__proto__:null,default:oq,render:rq
},Symbol.toStringTag,{value:"Module"})),aq={xmlns:"http://www.w3.org/2000/svg",
fill:"none",stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",viewBox:"0 0 24 24"},sq=[ea("path",{
d:"M3.375 7.875a4.125 4.125 0 1 0 8.25 0 4.125 4.125 0 1 0-8.25 0M.75 20.25a6.75 6.75 0 0 1 13.5 0m.001-15.834a4.125 4.125 0 1 1-.006 6.914M15 13.667a6.757 6.757 0 0 1 8.25 6.583"
},null,-1)];function lq(e,t){return zi(),Wi("svg",aq,[...sq])}const cq={
render:lq},uq=Object.freeze(Object.defineProperty({__proto__:null,default:cq,
render:lq},Symbol.toStringTag,{value:"Module"})),dq={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},pq=[ea("path",{
d:"M2.97 2.771 13.908 5.88a3.77 3.77 0 0 1 2.592 3.5v10.51a2.052 2.052 0 0 1-2.6 2.167l-9.048-2.46a3.7 3.7 0 0 1-2.6-3.457V4.688a2.75 2.75 0 0 1 2.67-2.813H18.75a3 3 0 0 1 3 3v8.953a3.073 3.073 0 0 1-3.11 3.047H16.5"
},null,-1),ea("path",{
d:"M12.375 13.875a.375.375 0 0 1 0-.75m0 .75a.375.375 0 0 0 0-.75m9.375-3.75H16.5"
},null,-1)];function hq(e,t){return zi(),Wi("svg",dq,[...pq])}const fq={
render:hq},mq=Object.freeze(Object.defineProperty({__proto__:null,default:fq,
render:hq},Symbol.toStringTag,{value:"Module"})),gq={
xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",
"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"
},vq=[ea("path",{
d:"M20.25 3.75v19.5M3.75 3.75h16.5m-16.5 19.5V3.75m16.5 19.5H3.75m16.5-19.5H3.75l1.5-3h13.5zM.75 23.25h22.5m-9-2.25a2.25 2.25 0 0 0-4.5 0v2.25h4.5zM7.5 7.13a.37.37 0 1 1 0-.75m0 .75a.37.37 0 1 0 0-.75m4.5.75a.38.38 0 0 1 0-.75m0 .75a.38.38 0 0 0 0-.75m4.5.75a.38.38 0 0 1 0-.75m0 .75a.38.38 0 0 0 0-.75m-9 5.25a.38.38 0 0 1 0-.76m0 .76a.38.38 0 0 0 0-.76m4.5.76a.38.38 0 0 1 0-.76m0 .76a.38.38 0 0 0 0-.76m4.5.76a.38.38 0 0 1 0-.76m0 .76a.38.38 0 0 0 0-.76m-9 5.26a.38.38 0 0 1 0-.75m0 .75a.38.38 0 0 0 0-.75m4.5.75a.38.38 0 0 1 0-.75m0 .75a.38.38 0 0 0 0-.75m4.5.75a.38.38 0 0 1 0-.75m0 .75a.38.38 0 0 0 0-.75"
},null,-1)];function bq(e,t){return zi(),Wi("svg",gq,[...vq])}const Oq={
render:bq},yq=Object.freeze(Object.defineProperty({__proto__:null,default:Oq,
render:bq},Symbol.toStringTag,{value:"Module"})),wq={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},xq=[ea("path",{
d:"M9.931 12.645h4.138l-2.07-4.908m0-7.737L.68 3.982l1.726 14.771L12 24l9.596-5.242L23.32 3.984zm7.064 18.31h-2.638l-1.422-3.503H8.996l-1.422 3.504h-2.64L12 2.65z"
},null,-1)];function kq(e,t){return zi(),Wi("svg",wq,[...xq])}const Sq={
render:kq},_q=Object.freeze(Object.defineProperty({__proto__:null,default:Sq,
render:kq},Symbol.toStringTag,{value:"Module"})),Eq={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},Tq=[ea("path",{
d:"M16.074 16.86c-.72.616-2.157 1.035-3.812 1.035-2.032 0-3.735-.632-4.187-1.483-.161.488-.198 1.046-.198 1.402 0 0-.106 1.75 1.111 2.968 0-.632.513-1.145 1.145-1.145 1.083 0 1.082.945 1.081 1.712v.069c0 1.164.711 2.161 1.723 2.582a2.35 2.35 0 0 1-.236-1.029c0-1.11.652-1.523 1.41-2.003.602-.383 1.272-.807 1.733-1.66a3.1 3.1 0 0 0 .378-1.494 3.1 3.1 0 0 0-.148-.954M15.551.6c.196.244.296.572.496 1.229l4.368 14.347a18.2 18.2 0 0 0-5.222-1.768L12.35 4.8a.37.37 0 0 0-.71.002l-2.81 9.603a18.2 18.2 0 0 0-5.245 1.771L7.974 1.827c.2-.656.3-.984.497-1.227a1.6 1.6 0 0 1 .654-.484C9.415 0 9.757 0 10.443 0h3.135c.686 0 1.03 0 1.32.117A1.6 1.6 0 0 1 15.55.6z"
},null,-1)];function Cq(e,t){return zi(),Wi("svg",Eq,[...Tq])}const Aq={
render:Cq},Pq=Object.freeze(Object.defineProperty({__proto__:null,default:Aq,
render:Cq},Symbol.toStringTag,{value:"Module"})),Dq={
xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"
},$q=[ea("path",{fill:"currentColor","fill-rule":"evenodd",
d:"M6.335.83a.75.75 0 0 0-.67 0L1.667 2.827a.75.75 0 0 0-.417.672V18c0 .271.146.52.382.654l7.989 4.493a.75.75 0 0 0 .747.007l8-4.5A.75.75 0 0 0 18.75 18v-4.537l3.585-1.792A.75.75 0 0 0 22.75 11V6a.75.75 0 0 0-.417-.672l-3.998-1.999a.75.75 0 0 0-.67 0l-3.997 1.999a.7.7 0 0 0-.246.194.75.75 0 0 0-.172.478v4.561l-2.5 1.407V3.5a.75.75 0 0 0-.43-.678L6.336.829Zm7.686 11.019 2.38 1.19-6.422 3.612-2.38-1.19zm3.229-.063-2.5-1.25V7.215l2.5 1.25zm1.5 0 2.5-1.25V7.215l-2.5 1.25zm-9.5 1.025V4.714l-2.5 1.25v8.254zm-1.005 4.65.743.372c.17.091.262.153.262.183v3.202l-6.5-3.657V4.714l2.5 1.25V15.5a.75.75 0 0 0 .415.67s1.122.591 2.108 1.064zm2.505.478 6.5-3.657v3.28l-6.5 3.656v-3.28ZM6 4.66 3.677 3.5 6 2.339 8.323 3.5zM20.323 6 18 4.839 15.677 6 18 7.161z",
"clip-rule":"evenodd"},null,-1)];function Rq(e,t){
return zi(),Wi("svg",Dq,[...$q])}const Nq={render:Rq
},Iq=Object.freeze(Object.defineProperty({__proto__:null,default:Nq,render:Rq
},Symbol.toStringTag,{value:"Module"})),Mq={xmlns:"http://www.w3.org/2000/svg",
fill:"currentColor",viewBox:"0 0 24 24"},Lq=[ea("path",{
d:"M11.573 0a5 5 0 0 0-.359.007L10.85.04c-3.407.307-6.6 2.146-8.622 4.972a11.9 11.9 0 0 0-2.119 5.243c-.096.659-.108.854-.108 1.747s.012 1.089.108 1.748c.652 4.506 3.86 8.292 8.209 9.695.779.25 1.6.422 2.534.525.363.04 1.935.04 2.299 0 1.611-.178 2.977-.577 4.323-1.264.207-.106.247-.134.219-.158-.02-.013-.9-1.193-1.955-2.62l-1.919-2.592-2.404-3.558a339 339 0 0 0-2.422-3.556c-.009-.002-.018 1.579-.023 3.51-.007 3.38-.01 3.515-.052 3.595a.43.43 0 0 1-.206.214c-.075.037-.14.044-.495.044H7.81l-.108-.068a.44.44 0 0 1-.157-.171l-.05-.106.006-4.703.007-4.705.072-.092a.7.7 0 0 1 .174-.143c.096-.047.134-.051.54-.051.478 0 .558.018.682.154a467 467 0 0 1 2.895 4.361l4.735 7.17 1.9 2.879.096-.063a12.3 12.3 0 0 0 2.466-2.163 11.94 11.94 0 0 0 2.824-6.134c.096-.66.108-.854.108-1.748 0-.893-.012-1.088-.108-1.747-.652-4.506-3.859-8.292-8.208-9.695a12.6 12.6 0 0 0-2.499-.523A33 33 0 0 0 11.573 0m4.068 7.217c.347 0 .408.005.486.047a.47.47 0 0 1 .237.277c.018.06.023 1.365.018 4.304l-.006 4.218-.744-1.14-.746-1.14v-3.066c0-1.982.01-3.097.023-3.15a.48.48 0 0 1 .233-.296c.096-.05.13-.054.5-.054z"
},null,-1)];function Bq(e,t){return zi(),Wi("svg",Mq,[...Lq])}const Qq={
render:Bq},jq=Object.freeze(Object.defineProperty({__proto__:null,default:Qq,
render:Bq},Symbol.toStringTag,{value:"Module"})),Uq={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},Fq=[ea("path",{
d:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236m2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38a2.17 2.17 0 0 0-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44a23.5 23.5 0 0 0-3.107-.534A24 24 0 0 0 12.769 4.7c1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442a23 23 0 0 0-3.113.538 15 15 0 0 1-.254-1.42c-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05q.684.704 1.36 1.564c-.44-.02-.89-.034-1.345-.034q-.691-.001-1.36.034c.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093q.61.874 1.183 1.86.557.961 1.018 1.946c-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87a25.6 25.6 0 0 1-4.412.005 27 27 0 0 1-1.183-1.86q-.557-.961-1.018-1.946a25 25 0 0 1 1.013-1.954c.38-.66.773-1.286 1.18-1.868A25 25 0 0 1 12 8.098zm-3.635.254c-.24.377-.48.763-.704 1.16q-.336.585-.635 1.174c-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0q1.044.153 2.006.387c-.18.632-.405 1.282-.66 1.933a26 26 0 0 0-1.345-2.32zm3.063.675q.727.226 1.375.498c1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493a24 24 0 0 0-1.1-2.98c.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98a23 23 0 0 0-1.086 2.964c-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474s1.12-1.742 2.852-2.476c.42-.18.88-.342 1.356-.494m11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39a26 26 0 0 0 1.341-2.338zm-9.945.02c.2.392.41.783.64 1.175q.345.586.705 1.143a22 22 0 0 1-2.006-.386c.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295a1.2 1.2 0 0 1-.553-.132c-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64q.661.032 1.345.034.691.001 1.36-.034c-.44.572-.895 1.095-1.345 1.565q-.684-.706-1.36-1.565"
},null,-1)];function qq(e,t){return zi(),Wi("svg",Uq,[...Fq])}const zq={
render:qq},Hq=Object.freeze(Object.defineProperty({__proto__:null,default:zq,
render:qq},Symbol.toStringTag,{value:"Module"})),Zq={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},Vq=[ea("path",{
d:"M23.94 3a.5.5 0 0 0-.44-.25h-2.31l-8.55 13.91a.75.75 0 0 1-1.28 0L2.81 2.77H.5A.5.5 0 0 0 .06 3a.54.54 0 0 0 0 .51l11.5 19a.51.51 0 0 0 .86 0l11.5-19a.54.54 0 0 0 .02-.51"
},null,-1),ea("path",{
d:"m12 14.84 7.43-12.07H16a.47.47 0 0 0-.43.25L12 9.26 8.43 3A.47.47 0 0 0 8 2.77H4.57Z"
},null,-1)];function Wq(e,t){return zi(),Wi("svg",Zq,[...Vq])}const Xq={
render:Wq},Yq=Object.freeze(Object.defineProperty({__proto__:null,default:Xq,
render:Wq},Symbol.toStringTag,{value:"Module"})),Gq={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"
},Kq=[ea("path",{
d:"m117.5 33.5.3-.2c-.6-1.1-1.5-2.1-2.4-2.6L67.1 2.9c-.8-.5-1.9-.7-3.1-.7s-2.3.3-3.1.7l-48 27.9c-1.7 1-2.9 3.5-2.9 5.4v55.7c0 1.1.2 2.3.9 3.4l-.2.1c.5.8 1.2 1.5 1.9 1.9l48.2 27.9c.8.5 1.9.7 3.1.7s2.3-.3 3.1-.7l48-27.9c1.7-1 2.9-3.5 2.9-5.4V36.1c.1-.8 0-1.7-.4-2.6M64 88.5c9.1 0 17.1-5 21.3-12.4l12.9 7.6c-6.8 11.8-19.6 19.8-34.2 19.8-21.8 0-39.5-17.7-39.5-39.5S42.2 24.5 64 24.5c14.7 0 27.5 8.1 34.3 20l-13 7.5C81.1 44.5 73.1 39.5 64 39.5c-13.5 0-24.5 11-24.5 24.5s11 24.5 24.5 24.5"
},null,-1)];function Jq(e,t){return zi(),Wi("svg",Gq,[...Kq])}const ez={
render:Jq},tz=Object.freeze(Object.defineProperty({__proto__:null,default:ez,
render:Jq},Symbol.toStringTag,{value:"Module"})),nz={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"
},rz=[ea("path",{
d:"M60.952.266C27.377.266.065 28.77.065 63.806s27.318 63.54 60.887 63.54c33.576 0 60.893-28.505 60.893-63.54S94.528.266 60.952.266m0 6.117c30.39 0 55.025 25.712 55.025 57.423 0 2.482-.167 4.924-.46 7.321-1.495 6.214-4.194 10.358-7.412 13.19-4.941 4.336-11.524 5.738-17.62 5.733a41 41 0 0 1-4.973-.289C97.506 77.4 99.336 57.866 89.864 43.315 80.39 28.763 62.315 23.338 46.882 30.416a24 24 0 0 0-1.68-1.114c-2.41-1.413-7.439-3.482-13.837-3.505-5.361-.022-10.615 1.568-15.133 4.58C26.554 15.317 43.21 6.386 60.952 6.394zM51.341 84.6c.894-4.07 3.343-10.431 5.548-15.655.623-1.481 1.23-2.872 1.777-4.104 3.451 12.822 5.635 20.449 9.546 25.65a18 18 0 0 0 1.913 2.114 28 28 0 0 1-9.173 1.56 28.2 28.2 0 0 1-10.023-1.86q-.098-1.227-.103-2.459a24.5 24.5 0 0 1 .515-5.24zm-7.444 3.77c-7.555-5.703-12.031-14.84-12.04-24.57.008-9.88 4.625-19.138 12.375-24.813 1.637.984 3.121 2.143 4.34 3.477 2.395 2.56 5.077 8.214 6.94 13.082.51 1.312.965 2.567 1.36 3.709C50.16 73.502 45.685 80.608 43.898 88.37zm21.802-18.226c-1.501-4.037-2.374-7.079-2.379-7.084l-.005-.012c-2.747-10.984-5.592-21.025-11.497-28.052a28 28 0 0 1 9.134-1.55c16.06.022 29.074 13.602 29.095 30.36-.007 9.673-4.432 18.764-11.914 24.474a15 15 0 0 1-2.184-.78c-1.137-.514-2.812-2.267-4.329-4.698-2.313-3.635-4.437-8.622-5.927-12.653zm-4.747 51.08c-30.39 0-55.025-25.707-55.025-57.424 0-2.086.114-4.144.32-6.173 4.508-16 15.338-21.92 25.595-22.02 2.08-.007 4.117.282 6.068.774-13.182 12.081-15.74 32.487-5.979 47.7 9.762 15.213 28.817 20.518 44.544 12.403 2.78 1.023 5.96 1.633 9.812 2.137 1.447.186 3.007.277 4.665.277a61.6 61.6 0 0 0 14.997-2.087c-10.29 15.308-27.088 24.417-45.007 24.407z"
},null,-1)];function oz(e,t){return zi(),Wi("svg",nz,[...rz])}const iz={
render:oz},az=Object.freeze(Object.defineProperty({__proto__:null,default:iz,
render:oz},Symbol.toStringTag,{value:"Module"})),sz={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"
},lz=[ea("path",{
d:"m117.5 33.5.3-.2c-.6-1.1-1.5-2.1-2.4-2.6L67.1 2.9c-.8-.5-1.9-.7-3.1-.7s-2.3.3-3.1.7l-48 27.9c-1.7 1-2.9 3.5-2.9 5.4v55.7c0 1.1.2 2.3.9 3.4l-.2.1c.5.8 1.2 1.5 1.9 1.9l48.2 27.9c.8.5 1.9.7 3.1.7s2.3-.3 3.1-.7l48-27.9c1.7-1 2.9-3.5 2.9-5.4V36.1c.1-.8 0-1.7-.4-2.6m-53.5 70c-21.8 0-39.5-17.7-39.5-39.5S42.2 24.5 64 24.5c14.7 0 27.5 8.1 34.3 20l-13 7.5C81.1 44.5 73.1 39.5 64 39.5c-13.5 0-24.5 11-24.5 24.5s11 24.5 24.5 24.5c9.1 0 17.1-5 21.3-12.4l12.9 7.6c-6.8 11.8-19.6 19.8-34.2 19.8M115 62h-3.2l-.9 4h4.1v5h-5l-1.2 6h-4.9l1.2-6h-3.8l-1.2 6h-4.8l1.2-6H94v-5h3.5l.9-4H94v-5h5.3l1.2-6h4.9l-1.2 6h3.8l1.2-6h4.8l-1.2 6h2.2zm-12.7 4h3.8l.9-4h-3.8z"
},null,-1)];function cz(e,t){return zi(),Wi("svg",sz,[...lz])}const uz={
render:cz},dz=Object.freeze(Object.defineProperty({__proto__:null,default:uz,
render:cz},Symbol.toStringTag,{value:"Module"})),pz={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},hz=[ea("path",{
d:"M1.5 0h21l-1.91 21.563L11.977 24l-8.565-2.438zm17.09 4.413L5.41 4.41l.213 2.622 10.125.002-.255 2.716h-6.64l.24 2.573h6.182l-.366 3.523-2.91.804-2.956-.81-.188-2.11h-2.61l.29 3.855L12 19.288l5.373-1.53z"
},null,-1)];function fz(e,t){return zi(),Wi("svg",pz,[...hz])}const mz={
render:fz},gz=Object.freeze(Object.defineProperty({__proto__:null,default:mz,
render:fz},Symbol.toStringTag,{value:"Module"})),vz={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"
},bz=[ea("path",{
d:"M108.2 64.8c-.1-.1-.2-.2-.4-.2l-.1-.1c-.1-.1-.2-.1-.2-.2l-.1-.1c-.1 0-.2-.1-.2-.1l-.2-.1c-.1 0-.2-.1-.2-.1l-.2-.1c-.1 0-.2-.1-.2-.1-.1 0-.1 0-.2-.1l-.3-.1c-.1 0-.1 0-.2-.1l-.3-.1h-.1l-.4-.1h-.2c-.1 0-.2 0-.3-.1h-2.3c-.6-13.3.6-26.8-2.8-39.6 12.9-4.6 2.8-22.3-8.4-14.4-7.4-6.4-17.6-7.8-28.3-7.8-10.5.7-20.4 2.9-27.4 8.4-2.8-1.4-5.5-1.8-7.9-1.1v.1c-.1 0-.3.1-.4.2-.1 0-.3.1-.4.2h-.1c-.1 0-.2.1-.4.2h-.1l-.3.2h-.1l-.3.2h-.1l-.3.2s-.1 0-.1.1l-.3.2s-.1 0-.1.1l-.3.2s-.1 0-.1.1l-.3.2-.1.1c-.1.1-.2.1-.2.2l-.1.1-.2.2-.1.1c-.1.1-.1.2-.2.2l-.1.1c-.1.1-.1.2-.2.2l-.1.1c-.1.1-.1.2-.2.2l-.1.1c-.1.1-.1.2-.2.2l-.1.1c-.1.1-.1.2-.2.2l-.1.1-.1.3s0 .1-.1.1l-.1.3s0 .1-.1.1l-.1.3s0 .1-.1.1l-.1.3s0 .1-.1.1c.4.3.4.4.4.4v.1l-.1.3v.1c0 .1 0 .2-.1.3v3.1c0 .1 0 .2.1.3v.1l.1.3v.1l.1.3s0 .1.1.1l.1.3s0 .1.1.1l.1.3s0 .1.1.1l.2.3s0 .1.1.1l.2.3s0 .1.1.1l.2.3.1.1.3.3.3.3h.1c1 .9 2 1.6 4 2.2v-.2C23 37.3 26.5 50 26.7 63c-.6 0-.7.4-1.7.5h-.5c-.1 0-.3 0-.5.1-.1 0-.3 0-.4.1l-.4.1h-.1l-.4.1h-.1l-.3.1h-.1l-.3.1s-.1 0-.1.1l-.3.1-.2.1c-.1 0-.2.1-.2.1l-.2.1-.2.1c-.1 0-.2.1-.2.1l-.2.1-.4.3c-.1.1-.2.2-.3.2l-.4.4-.1.1c-.1.2-.3.4-.4.5l-.2.3-.3.6-.1.3v.3c0 .5.2.9.9 1.2.2 3.7 3.9 2 5.6.8l.1-.1c.2-.2.5-.3.6-.3h.1l.2-.1c.1 0 .1 0 .2-.1.2-.1.4-.1.5-.2.1 0 .1-.1.1-.2l.1-.1c.1-.2.2-.6.2-1.2l.1-1.3v1.8c-.5 13.1-4 30.7 3.3 42.5 1.3 2.1 2.9 3.9 4.7 5.4h-.5c-.2.2-.5.4-.8.6l-.9.6-.3.2-.6.4-.9.7-1.1 1c-.2.2-.3.4-.4.5l-.4.6-.2.3c-.1.2-.2.4-.2.6l-.1.3q-.3 1.2.6 2.7l.4.4h.2c.1 0 .2 0 .4.1.2.4 1.2 2.5 3.9.9 2.8-1.5 4.7-4.6 8.1-5.1l-.5-.6c5.9 2.8 12.8 4 19 4.2 8.7.3 18.6-.9 26.5-5.2 2.2.7 3.9 3.9 5.8 5.4l.1.1.1.1.1.1.1.1s.1 0 .1.1c0 0 .1 0 .1.1 0 0 .1 0 .1.1h2.1s.1 0 .1-.1h.1s.1 0 .1-.1h.1s.1 0 .1-.1c0 0 .1 0 .1-.1l.1-.1s.1 0 .1-.1l.1-.1h.1l.2-.2.2-.1h.1l.1-.1h.1l.1-.1.1-.1.1-.1.1-.1.1-.1.1-.1.1-.1v-.1s0-.1.1-.1v-.1s0-.1.1-.1v-.1s0-.1.1-.1v-1.4s-.3 0-.3-.1l-.3-.1v-.1l.3-.1s.2 0 .2-.1l.1-.1v-2.1s0-.1-.1-.1v-.1s0-.1-.1-.1v-.1s0-.1-.1-.1c0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1 0 0 0-.1-.1-.1l-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1v-.1l-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1-.1c2-1.9 3.8-4.2 5.1-6.9 5.9-11.8 4.9-26.2 4.1-39.2h.1c.1 0 .2.1.2.1h.3s.1 0 .1.1h.1s.1 0 .1.1l.2.1c1.7 1.2 5.4 2.9 5.6-.8 1.6.6-.3-1.8-1.3-2.5M36 23C32.8 7 58.4 4 59.3 19.6c.8 13-20 16.3-23.3 3.4m36.1 15c-1.3 1.4-2.7 1.2-4.1.7 0 1.9.4 3.9.1 5.9-.5.9-1.5 1-2.3 1.4-1.2-.2-2.1-.9-2.6-2l-.2-.1c-3.9 5.2-6.3-1.1-5.2-5-1.2.1-2.2-.2-3-1.5-1.4-2.6.7-5.8 3.4-6.3.7 3 8.7 2.6 10.1-.2 3.1 1.5 6.5 4.3 3.8 7.1m-7-17.5c-.9-13.8 20.3-17.5 23.4-4 3.5 15-20.8 18.9-23.4 4M41.7 17c-1.9 0-3.5 1.7-3.5 3.8s1.6 3.8 3.5 3.8 3.5-1.7 3.5-3.8-1.5-3.8-3.5-3.8m1.6 5.7c-.5 0-.8-.4-.8-1 0-.5.4-1 .8-1 .5 0 .8.4.8 1 0 .5-.3 1-.8 1m27.8-6.6c-1.9 0-3.4 1.7-3.4 3.8s1.5 3.8 3.4 3.8 3.4-1.7 3.4-3.8-1.5-3.8-3.4-3.8m1.6 5.6c-.4 0-.8-.4-.8-1 0-.5.4-1 .8-1s.8.4.8 1-.4 1-.8 1"
},null,-1)];function Oz(e,t){return zi(),Wi("svg",vz,[...bz])}const yz={
render:Oz},wz=Object.freeze(Object.defineProperty({__proto__:null,default:yz,
render:Oz},Symbol.toStringTag,{value:"Module"})),xz={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},kz=[ea("path",{
d:"M1.5 0h21l-1.91 21.563L11.977 24l-8.564-2.438zm7.031 9.75-.232-2.718 10.059.003.23-2.622L5.412 4.41l.698 8.01h9.126l-.326 3.426-2.91.804-2.955-.81-.188-2.11H6.248l.33 4.171L12 19.351l5.379-1.443.744-8.157z"
},null,-1)];function Sz(e,t){return zi(),Wi("svg",xz,[...kz])}const _z={
render:Sz},Ez=Object.freeze(Object.defineProperty({__proto__:null,default:_z,
render:Sz},Symbol.toStringTag,{value:"Module"})),Tz={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"
},Cz=[ea("path",{
d:"M111.7 29.7 128 64l-16.3 34.3H16.3L0 64l16.3-34.3zm-5.5 5.7H20L6.3 64l13.6 28.6h86.3L119.8 64zm-76.3 19v8h9.2v-8.1h4.8v20.4h-4.7v-8.4H30v8.4h-4.8V54.4zm34.3 0v3.8h-6.5v16.5H53V58.2h-6.5v-3.8zm18.3 0v3.8H76v16.5h-4.7V58.2h-6.5v-3.8zm16.1.9c1.2.5 2.3 1.4 3.1 2.6.7 1.2 1.1 2.5 1 3.9.1 1.4-.3 2.7-1 3.9-.7 1.1-1.8 2-3.1 2.6-1.5.6-3.1.9-4.7.9h-4.1v5.6H85V54.4h8.9c1.6 0 3.2.3 4.7.9m-5.1 2.9h-3.8v7.1h3.8q2.1 0 3.3-.9c.8-.6 1.2-1.6 1.1-2.6 0-1.1-.3-2.1-1.1-2.6-.8-.7-1.9-1-3.3-1"
},null,-1)];function Az(e,t){return zi(),Wi("svg",Tz,[...Cz])}const Pz={
render:Az},Dz=Object.freeze(Object.defineProperty({__proto__:null,default:Pz,
render:Az},Symbol.toStringTag,{value:"Module"})),$z={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},Rz=[ea("path",{
d:"M11.26 15.27c3.37-.15 7.15-1.09 7-2.21a26 26 0 0 1-4.76.59c-3.62.16-6.58-.24-6.61-.9 0-.2.24-.4.69-.58-2.39-.64-3.67.53-3.69 1.22-.1 1.45 3.22 2.06 7.37 1.88m5.91 1.64a23 23 0 0 1-4.07.5c-3.09.14-5.61-.21-5.64-.77 0-.17.21-.34.59-.49-2-.55-3.13.45-3.15 1-.05 1.24 2.78 1.77 6.33 1.61 2.87-.1 6.25-1 5.94-1.85M3.61 20.8a.93.93 0 0 1 .29-.65c-2.09.1-2.54 1.13-2.51 1.76.07 1.39 4.67 2.31 10 2.05 4.44-.22 9.16-1 9.16-2.34a26.3 26.3 0 0 1-7.2 1.23c-5.35.26-9.67-.66-9.74-2.05"
},null,-1),ea("path",{
d:"M22.4 12.65c-.55-1.48-2.67-2.34-4.74-1.57a2.47 2.47 0 0 0-1 .81c1.94-.56 3.83 0 4.34 1.41.45 1.21-.3 2.64-1.72 3.54a1.37 1.37 0 0 0 .92-.13c2.25-1.05 2.8-2.58 2.2-4.06m-9.88-1.38s-3.1-2.19-1.92-4.35S14.37 2.43 13.38 0c0 0 .12 1-3.12 3.91s-2.14 6.33 2.26 7.36"
},null,-1),ea("path",{
d:"M15.17 4.83s-4.24 1.51-2.83 3.53c1 1.43 2.13 2 1.42 4 0 0 2.83-1.51.71-3.53s.7-4 .7-4M8.69 19.26c-1.6-.43-2.46.35-2.47.81 0 1 2.18 1.39 5 1.27 2.26-.11 4.73-.95 4.67-1.49a16.6 16.6 0 0 1-3.2.4c-2.43.11-4.41-.16-4.43-.61-.04-.13.13-.26.43-.38"
},null,-1)];function Nz(e,t){return zi(),Wi("svg",$z,[...Rz])}const Iz={
render:Nz},Mz=Object.freeze(Object.defineProperty({__proto__:null,default:Iz,
render:Nz},Symbol.toStringTag,{value:"Module"})),Lz={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},Bz=[ea("path",{
d:"M0 0h24v24H0zm22.034 18.276c-.175-1.095-.888-2.015-3.003-2.873-.736-.345-1.554-.585-1.797-1.14-.091-.33-.105-.51-.046-.705.15-.646.915-.84 1.515-.66.39.12.75.42.976.9 1.034-.676 1.034-.676 1.755-1.125-.27-.42-.404-.601-.586-.78-.63-.705-1.469-1.065-2.834-1.034l-.705.089c-.676.165-1.32.525-1.71 1.005-1.14 1.291-.811 3.541.569 4.471 1.365 1.02 3.361 1.244 3.616 2.205.24 1.17-.87 1.545-1.966 1.41-.811-.18-1.26-.586-1.755-1.336l-1.83 1.051c.21.48.45.689.81 1.109 1.74 1.756 6.09 1.666 6.871-1.004.029-.09.24-.705.074-1.65zm-8.983-7.245h-2.248c0 1.938-.009 3.864-.009 5.805 0 1.232.063 2.363-.138 2.711-.33.689-1.18.601-1.566.48-.396-.196-.597-.466-.83-.855-.063-.105-.11-.196-.127-.196l-1.825 1.125c.305.63.75 1.172 1.324 1.517.855.51 2.004.675 3.207.405.783-.226 1.458-.691 1.811-1.411.51-.93.402-2.07.397-3.346.012-2.054 0-4.109 0-6.179z"
},null,-1)];function Qz(e,t){return zi(),Wi("svg",Lz,[...Bz])}const jz={
render:Qz},Uz=Object.freeze(Object.defineProperty({__proto__:null,default:jz,
render:Qz},Symbol.toStringTag,{value:"Module"})),Fz={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},qz=[ea("path",{
d:"M4.56 18.71c-1.41-4-.65-8.94 1.77-11.48A5.47 5.47 0 0 1 12 5.71h.15a.8.8 0 0 1 .22.12c4 1.65 4.28 8.57 1.28 11.41a4.15 4.15 0 0 0 3.08-1.35c2.12-2.23 2.76-6.62 1.49-10.22A7.75 7.75 0 0 0 12.81.54H12a11.5 11.5 0 0 0-5.42 21.6 10 10 0 0 1-2.02-3.43"
},null,-1),ea("path",{
d:"M23.5 12a11.49 11.49 0 0 0-6.09-10.14 9.9 9.9 0 0 1 2 3.43c1.41 4 .65 9-1.77 11.5a5.42 5.42 0 0 1-4 1.75A6.5 6.5 0 0 1 12 18.3h-.15a.8.8 0 0 1-.22-.12c-4-1.65-4.29-8.57-1.29-11.41a4.14 4.14 0 0 0-3.11 1.32c-2.12 2.22-2.76 6.61-1.49 10.2a7.77 7.77 0 0 0 5.45 5.17H12A11.5 11.5 0 0 0 23.5 12"
},null,-1)];function zz(e,t){return zi(),Wi("svg",Fz,[...qz])}const Hz={
render:zz},Zz=Object.freeze(Object.defineProperty({__proto__:null,default:Hz,
render:zz},Symbol.toStringTag,{value:"Module"})),Vz={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"
},Wz=[ea("path",{
d:"M0 0h61.4L0 60.4zm0 128L128 0H64.6L0 63.7zm128 0L64.6 66.6 3.3 128z"
},null,-1)];function Xz(e,t){return zi(),Wi("svg",Vz,[...Wz])}const Yz={
render:Xz},Gz=Object.freeze(Object.defineProperty({__proto__:null,default:Yz,
render:Xz},Symbol.toStringTag,{value:"Module"})),Kz={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},Jz=[ea("path",{
d:"M21.75 5.52 13 .28a2 2 0 0 0-2 0L2.25 5.52a2 2 0 0 0-1 1.69v9.58a2 2 0 0 0 1 1.69l2.62 1.57a3.12 3.12 0 0 0 4.73-2.68V8.12a1 1 0 0 0-2 0v9.25a1.13 1.13 0 0 1-.57 1 1.14 1.14 0 0 1-1.13 0l-2.61-1.58V7.24L12 2l8.73 5.21v9.55L12 22l-1.7-1a1 1 0 1 0-1 1.71l1.72 1a2 2 0 0 0 2 0l8.74-5.24a2 2 0 0 0 1-1.69V7.21a2 2 0 0 0-1.01-1.69"
},null,-1),ea("path",{
d:"M15.51 14.76a9.3 9.3 0 0 1-2.24 0 .85.85 0 0 1-.75-.85 1 1 0 0 0-2 0A2.87 2.87 0 0 0 13 16.75a12 12 0 0 0 1.36.08 12 12 0 0 0 1.37-.08 2.87 2.87 0 0 0 2.5-2.84A2.68 2.68 0 0 0 16 11.26l-2.91-.49a.69.69 0 0 1-.58-.68.85.85 0 0 1 .75-.85 9.3 9.3 0 0 1 2.24 0 .85.85 0 0 1 .75.85 1 1 0 0 0 2 0 2.87 2.87 0 0 0-2.5-2.84 12.5 12.5 0 0 0-2.73 0 2.87 2.87 0 0 0-2.51 2.84 2.68 2.68 0 0 0 2.25 2.65l2.91.49a.68.68 0 0 1 .58.68.85.85 0 0 1-.74.85"
},null,-1)];function eH(e,t){return zi(),Wi("svg",Kz,[...Jz])}const tH={
render:eH},nH=Object.freeze(Object.defineProperty({__proto__:null,default:tH,
render:eH},Symbol.toStringTag,{value:"Module"})),rH={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"
},oH=[ea("path",{
d:"M63.877 125.392c-32.671 0-60.37-27.594-60.627-60.469a59.94 59.94 0 0 1 17.506-42.759 60.94 60.94 0 0 1 43.279-18.36 60.08 60.08 0 0 1 42.647 17.71 60.15 60.15 0 0 1 18.157 42.522c.151 33.604-26.864 61.021-60.469 61.363h-.493zm.19-118.406a57.77 57.77 0 0 0-41.01 17.427 56.78 56.78 0 0 0-16.63 40.484c.236 31.159 26.495 57.286 57.43 57.286h.414c31.863-.29 57.504-26.266 57.385-58.128a56.97 56.97 0 0 0-17.217-40.273A56.7 56.7 0 0 0 64.068 6.986z"
},null,-1),ea("path",{
d:"M16.89 82.383V46.865h8.64v3.183h-4.583v29.218h4.584v3.183zm29.323-18.111c0 6.478-3.933 10.167-9.26 10.167s-8.877-4.156-8.877-9.831c0-5.939 3.722-10.121 9.167-10.121s8.97 4.36 8.97 9.785m-14.415.29c0 3.932 1.973 7.05 5.36 7.05s5.333-3.183 5.333-7.195c0-3.643-1.796-7.083-5.334-7.083s-5.392 3.328-5.392 7.307zm17.407-9.404c1.69-.29 3.407-.434 5.123-.428a9.17 9.17 0 0 1 5.537 1.223 4.06 4.06 0 0 1 2.006 3.61 4.48 4.48 0 0 1-3.183 4.183c2.269.46 3.9 2.46 3.9 4.775a5.02 5.02 0 0 1-1.861 3.978c-1.368 1.21-3.643 1.796-7.162 1.796a34 34 0 0 1-4.327-.257zm3.499 7.622h1.795c2.433 0 3.801-1.145 3.801-2.782s-1.368-2.644-3.61-2.644a9.8 9.8 0 0 0-2.006.145zm0 8.878c.618.065 1.243.092 1.86.078 2.263 0 4.262-.861 4.262-3.182s-1.94-3.183-4.373-3.183h-1.75zM69.54 54.901h3.517v12.554c0 5.334-2.577 7.116-6.365 7.116a9.3 9.3 0 0 1-2.973-.507l.428-2.834c.703.224 1.44.335 2.183.349 2.006 0 3.183-.921 3.183-4.262l.026-12.416zm13.527 10.456v2.434h-7.32v-2.434zm17.091 8.273a12.3 12.3 0 0 1-4.978.862c-6.129 0-9.851-3.834-9.851-9.707-.283-5.353 3.827-9.923 9.18-10.206.375-.02.757-.02 1.131.006a11.1 11.1 0 0 1 4.775.862l-.783 2.801a9.5 9.5 0 0 0-3.788-.75c-3.932 0-6.76 2.467-6.76 7.116 0 4.235 2.499 6.971 6.734 6.971a9.8 9.8 0 0 0 3.834-.717zM111.2 46.766v35.61h-8.641v-3.182h4.583V49.949h-4.583v-3.183h8.64z"
},null,-1)];function iH(e,t){return zi(),Wi("svg",rH,[...oH])}const aH={
render:iH},sH=Object.freeze(Object.defineProperty({__proto__:null,default:aH,
render:iH},Symbol.toStringTag,{value:"Module"})),lH={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"
},cH=[ea("path",{
d:"M65.004 115.355c-.461-.894-1.004-2.796-1.356-3.601-.378-.711-1.46-2.692-1.984-3.332-1.164-1.332-1.437-1.438-1.809-3.23-.628-3.067-2.148-8.462-4.042-12.227-1.004-2-2.626-3.606-4.067-5.07-1.246-1.247-4.121-3.31-4.668-3.227-4.766.894-6.226 5.586-8.457 9.27-1.27 2.062-2.516 3.769-3.52 5.937-.898 1.98-.812 4.23-2.331 5.938a15.4 15.4 0 0 0-3.333 5.855c-.195.453-.546 4.957-1.003 6.016l7.02-.438c6.585.461 4.687 2.961 14.858 2.438l16.098-.54a25 25 0 0 0-1.433-3.792zM111.793 8.254H16.207C7.312 8.23.086 15.457.086 24.352v35.105c2.352-.812 5.578-5.75 6.668-6.934 1.789-2.062 2.16-4.77 3.059-6.378 2.062-3.793 2.433-6.477 7.101-6.477 2.164 0 3.063.516 4.5 2.516.996 1.332 2.79 3.957 3.602 5.668 1.004 1.98 2.523 4.582 3.254 5.125.515.351.972.722 1.433.894.707.27 1.356-.27 1.902-.629.622-.539.895-1.52 1.52-2.953.895-2.086 1.813-4.418 2.332-5.312.914-1.461 1.273-3.254 2.25-4.067 1.461-1.246 3.441-1.355 3.957-1.437 2.98-.625 4.336 1.437 5.777 2.707.973.894 2.243 2.605 3.246 4.851.708 1.793 1.606 3.52 2.067 4.5.351.98 1.266 2.606 1.789 4.582.543 1.711 1.809 3.067 2.352 3.961 0 0 .812 2.164 5.476 4.145a35 35 0 0 0 4.336 1.52c2.066.734 4.047.644 6.563.374 1.789 0 2.793-2.625 3.601-4.683.438-1.254.98-4.774 1.25-5.758.27-.996-.437-1.707.192-2.625.722-.977 1.164-1.082 1.519-2.332.914-2.793 5.957-2.875 8.832-2.875 2.414 0 2.063 2.332 6.125 1.52 2.336-.434 4.586.273 7.023.995 2.063.543 4.043 1.168 5.204 2.524.73.898 2.629 5.312.73 5.476.164.188.36.645.625.817-.46 1.707-2.25.46-3.332.27-1.355-.27-2.332 0-3.684.624-2.335.996-5.668.918-7.726 2.625-1.715 1.438-1.715 4.582-2.543 6.371 0 0-2.254 5.696-6.996 9.192-1.278.914-3.715 3.058-8.918 3.871-2.356.355-4.586.355-7.024.27-1.164-.079-2.332-.079-3.52-.079-.706 0-3.062-.109-2.96.164l-.27.645c.024.29.063.602.164.895.102.515.102.976.192 1.437 0 .98-.086 2.063 0 3.066.082 2.063.894 3.957 1.004 6.102.078 2.355 1.246 4.875 2.414 6.77.46.707 1.086.789 1.355 1.71.352.98 0 2.141.188 3.227.625 4.227 1.875 8.73 3.773 12.61v.078c2.332-.352 4.77-1.247 7.836-1.684 5.664-.832 13.5-.461 18.54-.914 12.796-1.168 19.706 5.226 31.148 2.601V24.336c-.063-8.895-7.293-16.102-16.207-16.102zM64.086 83.855q0-.28 0 0m-34.457 14.75c.894-1.98 1.433-4.125 2.144-6.101.73-1.899 1.813-4.61 3.684-5.582-.246-.274-3.957-.375-4.934-.461-1.082-.086-2.171-.273-3.25-.438a135 135 0 0 1-6.125-1.265c-1.168-.274-5.21-1.715-6.02-2.067-2.085-.894-3.421-3.52-4.96-3.246-.977.188-1.98.54-2.605 1.54-.543.812-.731 2.242-1.083 3.226-.437 1.086-1.168 2.164-1.707 3.25-1.277 1.875-3.332 3.582-4.23 5.484-.191.457-.27.895-.457 1.356v21.683c1.082.188 2.16.371 3.328.73 8.996 2.438 11.164 2.606 19.98 1.63l.813-.11c.625-1.437 1.188-6.207 1.629-7.644.352-1.164.812-2.063.996-3.14.164-1.09 0-2.173-.102-3.15-.171-2.628 1.895-3.519 2.899-5.69zm0 0"
},null,-1)];function uH(e,t){return zi(),Wi("svg",lH,[...cH])}const dH={
render:uH},pH=Object.freeze(Object.defineProperty({__proto__:null,default:dH,
render:uH},Symbol.toStringTag,{value:"Module"})),hH={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},fH=[ea("path",{
d:"M7.01 10.207h-.944l-.515 2.648h.838q.834 0 1.242-.314.408-.315.55-1.049.137-.705-.124-.995-.262-.29-1.047-.29M12 5.688C5.373 5.688 0 8.514 0 12s5.373 6.313 12 6.313S24 15.486 24 12s-5.373-6.312-12-6.312m-3.26 7.451c-.261.25-.575.438-.917.551q-.505.163-1.285.164H5.357l-.327 1.681H3.652l1.23-6.326h2.65q1.195 0 1.744.628.549.627.33 1.752a2.8 2.8 0 0 1-.305.847q-.215.383-.561.703m4.024.715.543-2.799q.094-.478-.068-.651-.16-.174-.687-.174H11.46l-.704 3.625H9.388l1.23-6.327h1.367l-.327 1.682h1.218q1.15 0 1.586.401c.436.401.378.7.263 1.299l-.572 2.944zm7.597-2.265a2.8 2.8 0 0 1-.305.847q-.214.383-.561.703a2.44 2.44 0 0 1-.917.551q-.504.163-1.286.164h-1.18l-.327 1.682h-1.378l1.23-6.326h2.649q1.195 0 1.744.628.55.626.331 1.751m-2.595-1.382h-.943l-.516 2.648h.838q.835 0 1.242-.314.407-.315.551-1.049.137-.705-.125-.995c-.262-.29-.524-.29-1.047-.29"
},null,-1)];function mH(e,t){return zi(),Wi("svg",hH,[...fH])}const gH={
render:mH},vH=Object.freeze(Object.defineProperty({__proto__:null,default:gH,
render:mH},Symbol.toStringTag,{value:"Module"})),bH={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 121 121"
},OH=[ea("path",{"fill-rule":"evenodd",
d:"M73.7 58.9c-1.5-1.8-3.2-3.9-5-5.9C58.5 41.7 48.4 30.3 38 19.2c-4.7-5.1-6.2-10-.6-15.1C43-.9 48.5-.4 53.7 5.3 68.1 21.2 82.4 37.2 97 52.9c5.5 5.9 4.2 9.9-1.8 14.2-23 16.7-46 33.5-68.9 50.4-5.1 3.8-10.1 4.8-14.2-.9-4.6-6.2-.3-9.9 4.4-13.3 17-12.4 34-24.8 50.9-37.4 2.5-1.7 5.9-2.8 6.3-7m7.3 59.8c-6.2 0-12.4.2-18.6-.1-4.9-.2-7.9-3-7.8-8.2.1-4.9 2.5-8.6 7.5-8.7 13.5-.4 27.1-.3 40.7 0 4.3.1 7.5 2.9 7.5 7.4 0 5.1-2.7 9.1-8.2 9.5-7.2.4-14.2.1-21.1.1",
"clip-rule":"evenodd"},null,-1)];function yH(e,t){
return zi(),Wi("svg",bH,[...OH])}const wH={render:yH
},xH=Object.freeze(Object.defineProperty({__proto__:null,default:wH,render:yH
},Symbol.toStringTag,{value:"Module"})),kH={xmlns:"http://www.w3.org/2000/svg",
fill:"currentColor",viewBox:"0 0 24 24"},SH=[ea("path",{
d:"m14.25.18.9.2.73.26.59.3.45.32.34.34.25.34.16.33.1.3.04.26.02.2-.01.13V8.5l-.05.63-.13.55-.21.46-.26.38-.3.31-.33.25-.35.19-.35.14-.33.1-.3.07-.26.04-.21.02H8.77l-.69.05-.59.14-.5.22-.41.27-.33.32-.27.35-.2.36-.15.37-.1.35-.07.32-.04.27-.02.21v3.06H3.17l-.21-.03-.28-.07-.32-.12-.35-.18-.36-.26-.36-.36-.35-.46-.32-.59-.28-.73-.21-.88-.14-1.05-.05-1.23.06-1.22.16-1.04.24-.87.32-.71.36-.57.4-.44.42-.33.42-.24.4-.16.36-.1.32-.05.24-.01h.16l.06.01h8.16v-.83H6.18l-.01-2.75-.02-.37.05-.34.11-.31.17-.28.25-.26.31-.23.38-.2.44-.18.51-.15.58-.12.64-.1.71-.06.77-.04.84-.02 1.27.05zm-6.3 1.98-.23.33-.08.41.08.41.23.34.33.22.41.09.41-.09.33-.22.23-.34.08-.41-.08-.41-.23-.33-.33-.22-.41-.09-.41.09zm13.09 3.95.28.06.32.12.35.18.36.27.36.35.35.47.32.59.28.73.21.88.14 1.04.05 1.23-.06 1.23-.16 1.04-.24.86-.32.71-.36.57-.4.45-.42.33-.42.24-.4.16-.36.09-.32.05-.24.02-.16-.01h-8.22v.82h5.84l.01 2.76.02.36-.05.34-.11.31-.17.29-.25.25-.31.24-.38.2-.44.17-.51.15-.58.13-.64.09-.71.07-.77.04-.84.01-1.27-.04-1.07-.14-.9-.2-.73-.25-.59-.3-.45-.33-.34-.34-.25-.34-.16-.33-.1-.3-.04-.25-.02-.2.01-.13v-5.34l.05-.64.13-.54.21-.46.26-.38.3-.32.33-.24.35-.2.35-.14.33-.1.3-.06.26-.04.21-.02.13-.01h5.84l.69-.05.59-.14.5-.21.41-.28.33-.32.27-.35.2-.36.15-.36.1-.35.07-.32.04-.28.02-.21V6.07h2.09l.14.01zm-6.47 14.25-.23.33-.08.41.08.41.23.33.33.23.41.08.41-.08.33-.23.23-.33.08-.41-.08-.41-.23-.33-.33-.23-.41-.08-.41.08z"
},null,-1)];function _H(e,t){return zi(),Wi("svg",kH,[...SH])}const EH={
render:_H},TH=Object.freeze(Object.defineProperty({__proto__:null,default:EH,
render:_H},Symbol.toStringTag,{value:"Module"})),CH={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"
},AH=[ea("path",{
d:"M64 14.648c-35.346 0-64 19.19-64 42.863C0 78.275 22.046 95.589 51.316 99.53V86.699c-15.55-4.89-26.166-14.693-26.166-25.991 0-16.183 21.779-29.303 48.646-29.303 26.866 0 46.693 8.975 46.693 29.303 0 10.486-5.273 17.95-14.066 22.72 1.204.908 2.22 2.072 2.904 3.419l.388.655C121.025 79.772 128 69.189 128 57.51c0-23.672-28.654-42.863-64-42.863zm20.1 74.88c-2.612.257-5.322.41-8.114.462l.002 9.63a88 88 0 0 0 12.474-2.492l-.501-.941c-.68-1.268-1.347-2.543-2.033-3.807a41 41 0 0 0-1.828-2.851z"
},null,-1),ea("path",{"fill-rule":"evenodd",
d:"M97.469 81.036s3.874 1.169 6.124 2.307c.78.396 2.132 1.184 3.106 2.22a8.4 8.4 0 0 1 1.42 2.04l15.266 25.74-24.674.01-11.537-21.666s-2.363-4.06-3.817-5.237c-1.213-.982-1.73-1.331-2.929-1.331h-5.862l.004 28.219-21.834.009V41.263h43.845s19.97.36 19.97 19.359S97.47 81.035 97.47 81.035zm-9.497-24.137-13.218-.009-.006 12.257 13.224-.004s6.124-.019 6.124-6.235c0-6.34-6.124-6.01-6.124-6.01z"
},null,-1)];function PH(e,t){return zi(),Wi("svg",CH,[...AH])}const DH={
render:PH},$H=Object.freeze(Object.defineProperty({__proto__:null,default:DH,
render:PH},Symbol.toStringTag,{value:"Module"})),RH={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},NH=[ea("path",{
d:"M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75z"
},null,-1)];function IH(e,t){return zi(),Wi("svg",RH,[...NH])}const MH={
render:IH},LH=Object.freeze(Object.defineProperty({__proto__:null,default:MH,
render:IH},Symbol.toStringTag,{value:"Module"})),BH={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},QH=[ea("path",{
d:"M4.589 24c4.537 0 13.81-1.516 14.821-3v-5.729c-.957 1.408-10.284 2.912-14.821 2.912zm0-7.635c4.537 0 13.81-1.516 14.821-3V7.636c-.957 1.408-10.284 2.912-14.821 2.912zm0-7.636c4.537 0 13.81-1.516 14.821-3V0C18.453 1.408 9.126 2.912 4.589 2.912z"
},null,-1)];function jH(e,t){return zi(),Wi("svg",BH,[...QH])}const UH={
render:jH},FH=Object.freeze(Object.defineProperty({__proto__:null,default:UH,
render:jH},Symbol.toStringTag,{value:"Module"})),qH={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 17 17"
},zH=[ea("path",{
d:"m2.4 11.4 5.1-4.6-5.1-4.7L.7 3.7l3.4 3v.1l-3.4 3zm14.2 3.3v-2.2h-8v2.2z"
},null,-1)];function HH(e,t){return zi(),Wi("svg",qH,[...zH])}const ZH={
render:HH},VH=Object.freeze(Object.defineProperty({__proto__:null,default:ZH,
render:HH},Symbol.toStringTag,{value:"Module"})),WH={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 128 128"
},XH=[ea("path",{
d:"M117.3 87.3c.2-.6.4-1.3.5-1.9 7-28-10.1-61.2-39.2-78.6C91.4 24 97 44.9 92 63.2c-.4 1.6-1 3.2-1.6 4.7-.6-.4-1.5-.9-2.5-1.5 0 0-28.9-17.9-60.2-49.4-.9-.8 16.7 25 36.6 46.1-9.4-5.3-35.5-24.3-52-39.4 2 3.4 4.4 6.7 7.1 9.8C33.1 51 51.2 72.6 72.7 89.2c-15.2 9.3-36.6 10-57.9 0C9.5 86.7 4.6 83.7 0 80.3c9 14.4 22.9 26.9 39.9 34.2 20.2 8.7 40.3 8.1 55.2.1.1 0 .1-.1.2-.1.7-.4 1.3-.7 2-1.1 7.2-3.7 21.3-7.4 28.9 7.4 1.7 3.6 5.7-15.6-8.9-33.5"
},null,-1)];function YH(e,t){return zi(),Wi("svg",WH,[...XH])}const GH={
render:YH},KH=Object.freeze(Object.defineProperty({__proto__:null,default:GH,
render:YH},Symbol.toStringTag,{value:"Module"})),JH={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},eZ=[ea("path",{
d:"M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75q.918 0 1.627.111a6.4 6.4 0 0 1 1.306.34v2.458a4 4 0 0 0-.643-.361 5 5 0 0 0-.717-.26 5.5 5.5 0 0 0-1.426-.2q-.45 0-.819.086a2.1 2.1 0 0 0-.623.242q-.254.156-.393.374a.9.9 0 0 0-.14.49q0 .294.156.529.156.234.443.444c.287.21.423.276.696.41q.41.203.926.416.705.296 1.266.628.561.333.963.753.402.418.614.957.213.538.214 1.253 0 .986-.373 1.656a3 3 0 0 1-1.012 1.085 4.4 4.4 0 0 1-1.487.596q-.85.18-1.79.18a10 10 0 0 1-1.84-.164 5.5 5.5 0 0 1-1.512-.493v-2.63a5.03 5.03 0 0 0 3.237 1.2q.5 0 .872-.09.373-.09.623-.25.249-.162.373-.38a1.02 1.02 0 0 0-.074-1.089 2.1 2.1 0 0 0-.537-.5 5.6 5.6 0 0 0-.807-.444 28 28 0 0 0-1.007-.436q-1.377-.575-2.053-1.405t-.676-2.005q0-.92.369-1.582.368-.662 1.004-1.089a4.5 4.5 0 0 1 1.47-.629 7.5 7.5 0 0 1 1.77-.201m-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z"
},null,-1)];function tZ(e,t){return zi(),Wi("svg",JH,[...eZ])}const nZ={
render:tZ},rZ=Object.freeze(Object.defineProperty({__proto__:null,default:nZ,
render:tZ},Symbol.toStringTag,{value:"Module"})),oZ={
xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},iZ=[ea("path",{
fill:"none",stroke:"currentColor","stroke-linecap":"round",
"stroke-linejoin":"round",
d:"M7.8 4.6 1.4 11c-.6.6-.6 1.6 0 2l6.2 6.2m8.6-14.6 6.2 6.2c.6.6.6 1.6 0 2l-6.2 6.6"
},null,-1)];function aZ(e,t){return zi(),Wi("svg",oZ,[...iZ])}const sZ={
render:aZ},lZ=Object.freeze(Object.defineProperty({__proto__:null,default:sZ,
render:aZ},Symbol.toStringTag,{value:"Module"})),cZ={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},uZ=[ea("path",{
d:"M23.55 10.91 13.09.45a1.55 1.55 0 0 0-2.18 0L8.46 2.9 11 5.48a2.06 2.06 0 0 1 1-.23 2.25 2.25 0 0 1 2.25 2.25 2.2 2.2 0 0 1-.22 1l2.19 2.2a2 2 0 1 1-1.06 1.06L13 9.52a1 1 0 0 1-.21.09v5.54a2 2 0 1 1-1.5 0V9.61A2.24 2.24 0 0 1 9.75 7.5a2.2 2.2 0 0 1 .22-1L7.4 4 .45 11a1.55 1.55 0 0 0 0 2.18l10.46 10.37a1.55 1.55 0 0 0 2.18 0l10.46-10.46a1.55 1.55 0 0 0 0-2.18"
},null,-1)];function dZ(e,t){return zi(),Wi("svg",cZ,[...uZ])}const pZ={
render:dZ},hZ=Object.freeze(Object.defineProperty({__proto__:null,default:pZ,
render:dZ},Symbol.toStringTag,{value:"Module"})),fZ={
xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"
},mZ=[ea("path",{
d:"M12.001 4.8q-4.8 0-6 4.8 1.8-2.4 4.2-1.8c.913.228 1.565.89 2.288 1.624C13.666 10.618 15.027 12 18.001 12q4.8 0 6-4.8-1.8 2.4-4.2 1.8c-.913-.228-1.565-.89-2.288-1.624C16.337 6.182 14.976 4.8 12.001 4.8m-6 7.2q-4.8 0-6 4.8 1.8-2.4 4.2-1.8c.913.228 1.565.89 2.288 1.624 1.177 1.194 2.538 2.576 5.512 2.576q4.8 0 6-4.8-1.8 2.4-4.2 1.8c-.913-.228-1.565-.89-2.288-1.624C10.337 13.382 8.976 12 6.001 12"
},null,-1)];function gZ(e,t){return zi(),Wi("svg",fZ,[...mZ])}const vZ={
render:gZ},bZ=Object.freeze(Object.defineProperty({__proto__:null,default:vZ,
render:gZ},Symbol.toStringTag,{value:"Module"})),OZ=Object.assign({
"./Add.svg":lM,"./AddTab.svg":hM,"./ArrowLeft.svg":bM,"./ArrowRight.svg":kM,
"./Brackets.svg":CM,"./Branch.svg":RM,"./Changelog.svg":BM,"./Checkmark.svg":qM,
"./ChevronDown.svg":WM,"./ChevronLeft.svg":JM,"./ChevronRight.svg":oL,
"./ChevronUp.svg":cL,"./Clipboard.svg":fL,"./Close.svg":OL,"./CloseTab.svg":SL,
"./CloseTabs.svg":AL,"./Cloud.svg":NL,"./CodeFolder.svg":QL,"./Cog.svg":zL,
"./Collection.svg":XL,"./Cookie.svg":eB,"./DarkMode.svg":iB,"./Delete.svg":uB,
"./Discord.svg":mB,"./DiscordLine.svg":yB,"./DocsPage.svg":_B,
"./Download.svg":PB,"./Duplicate.svg":IB,"./Edit.svg":jB,"./Ellipses.svg":HB,
"./Email.svg":YB,"./Error.svg":tQ,"./Example.svg":aQ,"./ExternalLink.svg":dQ,
"./FilterList.svg":gQ,"./Folder.svg":wQ,"./GitHub.svg":EQ,"./GitHubLine.svg":DQ,
"./Google.svg":MQ,"./Help.svg":UQ,"./Hide.svg":ZQ,"./History.svg":GQ,
"./House.svg":nj,"./Import.svg":sj,"./Info.svg":pj,"./Key.svg":vj,
"./Leave.svg":xj,"./LightDarkModeToggle.svg":Tj,"./LightMode.svg":$j,
"./Link.svg":Lj,"./Lock.svg":Fj,"./Logo.svg":Vj,"./LogoAPI.svg":Kj,
"./LogoClient.svg":rU,"./LogoMarket.svg":lU,"./LogoSwagger.svg":hU,
"./Magic.svg":bU,"./Menu.svg":kU,"./Page.svg":CU,"./PaperAirplane.svg":RU,
"./Pencil.svg":BU,"./Play.svg":qU,"./Refresh.svg":WU,"./Roadmap.svg":JU,
"./Search.svg":oF,"./Server.svg":cF,"./Show.svg":fF,"./Sort.svg":OF,
"./Terminal.svg":SF,"./ThumbsDown.svg":AF,"./ThumbsUp.svg":NF,"./Trash.svg":QF,
"./Unlock.svg":zF,"./Upload.svg":XF,"./UploadSimple.svg":eq,"./User.svg":iq,
"./Users.svg":uq,"./Wallet.svg":mq,"./Workspace.svg":yq,
"./programming-framework-angular.svg":_q,"./programming-framework-astro.svg":Pq,
"./programming-framework-laravel.svg":Iq,
"./programming-framework-nextdotjs.svg":jq,
"./programming-framework-react.svg":Hq,
"./programming-framework-vuedotjs.svg":Yq,"./programming-language-c.svg":tz,
"./programming-language-clojure.svg":az,"./programming-language-csharp.svg":dz,
"./programming-language-css3.svg":gz,"./programming-language-go.svg":wz,
"./programming-language-html5.svg":Ez,"./programming-language-http.svg":Dz,
"./programming-language-java.svg":Mz,"./programming-language-javascript.svg":Uz,
"./programming-language-json.svg":Zz,"./programming-language-kotlin.svg":Gz,
"./programming-language-node.svg":nH,"./programming-language-objc.svg":sH,
"./programming-language-ocaml.svg":pH,"./programming-language-php.svg":vH,
"./programming-language-powershell.svg":xH,
"./programming-language-python.svg":TH,"./programming-language-r.svg":$H,
"./programming-language-ruby.svg":LH,"./programming-language-scala.svg":FH,
"./programming-language-shell.svg":VH,"./programming-language-swift.svg":KH,
"./programming-language-typescript.svg":rZ,"./programming-script-code.svg":lZ,
"./programming-tool-git.svg":hZ,"./programming-tool-tailwindcss.svg":bZ
}),yZ=e=>{const t=`./${e}.svg`
;return OZ[t]?OZ[t]:(console.warn(`Could not find icon: ${e}`),null)},wZ=eo({
__name:"ScalarIcon",props:{icon:{},size:{},thickness:{}},setup(e){ts((e=>({
"5933775d":r.value})));const t=e,n=wI({variants:{size:{xs:"size-3",
sm:"size-3.5",md:"size-4",lg:"size-5",xl:"size-6","2xl":"size-8",
"3xl":"size-10",full:"size-full"}},defaultVariants:{size:"full"}
}),r=Aa((()=>t.thickness??"2"));return(e,t)=>(zi(),Xi(Ir(Fn(yZ)(e.icon)),{
class:et(Fn(xI)("scalar-icon",Fn(n)({size:e.size})))},null,8,["class"]))}
}),xZ=EI(wZ,[["__scopeId","data-v-43d05207"]]),kZ={
class:"scalar-code-block custom-scroll"},SZ={class:"scalar-code-copy"
},_Z=ea("span",{class:"sr-only"},"Copy content",-1),EZ=["innerHTML"],TZ=eo({
__name:"ScalarCodeBlock",props:{content:{},lang:{default:"plaintext"},
lineNumbers:{type:Boolean,default:!1},hideCredentials:{}},setup(e){
const t=e,n=Aa((()=>tM(rM(t.content),{lang:t.lang.trim(),languages:fP,
lineNumbers:t.lineNumbers,maskCredentials:t.hideCredentials
}).slice(5,-6))),{copyToClipboard:r}=(()=>{const{toast:e}=Dh();return{
copyToClipboard:t=>{navigator.clipboard.writeText(t).then((()=>{
e("Copied to the clipboard","info")}))}}
})(),o=Aa((()=>null!==t.content&&"null"!==t.content&&"404 Not Found"!==t.content))
;return(e,i)=>(zi(),Wi("div",kZ,[ea("div",SZ,[o.value?(zi(),Wi("button",{key:0,
class:"copy-button",type:"button",
onClick:i[0]||(i[0]=e=>Fn(r)(Fn(rM)(t.content)))},[_Z,ta(Fn(xZ),{
icon:"Clipboard",size:"md"})])):aa("",!0)]),ea("pre",{
class:"scalar-codeblock-pre",innerHTML:n.value},null,8,EZ)]))}})
;let CZ=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e))
;for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]]
;return t};const AZ={class:"inline-block min-w-0 flex-1 truncate text-c-1"
},PZ=eo({__name:"ScalarComboboxOption",props:{active:{type:Boolean},selected:{
type:Boolean},style:{},isDeletable:{type:Boolean}},setup(e){const t=wI({
base:["group","flex min-w-0 items-center gap-1.5 rounded px-2 py-1.5 text-left","truncate bg-transparent text-c-1","cursor-pointer hover:bg-b-2"],
variants:{selected:{true:"text-c-1"},active:{true:"bg-b-2"}}})
;return(e,n)=>(zi(),Wi("li",{class:et(Fn(xI)(Fn(t)({active:e.active,
selected:e.selected}),"group"))},[ea("div",{
class:et(["flex size-4 items-center justify-center p-0.75 group-hover:shadow-border",[e.selected?"bg-blue text-b-1":"text-transparent","checkbox"===e.style?"rounded":"rounded-full"]])
},[ta(Fn(xZ),{class:"relative top-[0.5px] size-2.5",icon:"Checkmark",
thickness:"2.5"
})],2),ea("span",AZ,[no(e.$slots,"default")]),e.isDeletable?(zi(),Xi(Fn(xZ),{
key:0,class:"text-c-2 opacity-0 group-hover:opacity-100",icon:"Delete",
size:"md",thickness:"1.5",
onClick:n[0]||(n[0]=$s((t=>e.$emit("delete")),["stop"]))})):aa("",!0)],2))}
}),DZ=e=>(e=>void 0!==e.options)(e[0]),$Z={class:"relative flex"
},RZ=["aria-controls","placeholder"],NZ=["id"],IZ={key:0,
class:"min-w-0 truncate px-2 py-1.5 text-left text-c-2"},MZ=eo({inheritAttrs:!1,
__name:"ScalarComboboxOptions",props:{options:{},modelValue:{},placeholder:{},
open:{type:Boolean},multiselect:{type:Boolean},isDeletable:{type:Boolean}},
emits:["update:modelValue","delete"],setup(e,{emit:t}){var n
;const r=e,o=t,i=CZ(),a=Aa((()=>DZ(r.options)?r.options.flatMap((e=>e.options)):r.options)),s=Aa((()=>DZ(r.options)?r.options:[{
label:"",options:r.options
}])),l=Bn(""),c=Bn((null==(n=r.modelValue)?void 0:n[0])??a.value[0])
;li((()=>r.open),(()=>l.value="")),li((()=>l.value),(()=>c.value=u.value[0]))
;const u=Aa((()=>""===l.value?a.value:a.value.filter((e=>e.label.toLowerCase().includes(l.value.toLowerCase()))))),d=Aa({
get:()=>r.modelValue??[],set:e=>e&&o("update:modelValue",e)});function p(e){
r.multiselect?d.value.some((t=>t.id===e.id))?d.value=d.value.filter((t=>t.id!==e.id)):d.value=[...d.value,e]:d.value=[e]
}function h(e){const t=u.value,n=t.findIndex((e=>e.id===c.value.id))+e
;n<0||n>t.length-1||(c.value=t[n])}
return(e,t)=>(zi(),Wi(Bi,null,[ea("div",$Z,[ta(Fn(xZ),{
class:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-c-3",
icon:"Search",size:"sm"}),Yr(ea("input",{
"onUpdate:modelValue":t[0]||(t[0]=e=>l.value=e),"aria-autocomplete":"list",
"aria-controls":Fn(i),
class:"min-w-0 flex-1 rounded-none border-0 py-2.5 pl-8 pr-3 leading-none text-c-1 outline-none",
"data-1p-ignore":"",placeholder:e.placeholder,role:"combobox",tabindex:"0",
type:"text",
onKeydown:[t[1]||(t[1]=Ns($s((e=>h(1)),["prevent"]),["down"])),t[2]||(t[2]=Ns($s((e=>p(c.value)),["prevent"]),["enter"])),t[3]||(t[3]=Ns($s((e=>h(-1)),["prevent"]),["up"]))]
},null,40,RZ),[[ks,l.value]])]),Yr(ea("ul",{id:Fn(i),class:"border-t p-0.75"
},[(zi(!0),Wi(Bi,null,Kr(s.value,((n,r)=>(zi(),Wi(Bi,{key:r
},[n.label&&n.options.some((e=>u.value.some((t=>t.id===e.id))))?(zi(),
Wi("div",IZ,st(n.label),1)):aa("",!0),(zi(!0),Wi(Bi,null,Kr(u.value,(r=>{var o
;return zi(),Wi(Bi,{key:r.id},[n.options.some((e=>e.id===r.id))?(zi(),Xi(PZ,{
key:0,active:(null==(o=c.value)?void 0:o.id)===r.id,
isDeletable:r.isDeletable??e.isDeletable,
selected:d.value.some((e=>e.id===r.id)),
style:Xe(e.multiselect?"checkbox":"radio"),onClick:e=>p(r),
onDelete:t=>e.$emit("delete",r),
onMousedown:t[4]||(t[4]=$s((()=>{}),["prevent"])),onMouseenter:e=>c.value=r},{
default:Tr((()=>[oa(st(r.label),1)])),_:2
},1032,["active","isDeletable","selected","style","onClick","onDelete","onMouseenter"])):aa("",!0)],64)
})),128))],64)))),128))],8,NZ),[[Ka,u.value.length]])],64))}
}),LZ=Math.min,BZ=Math.max,QZ=Math.round,jZ=Math.floor,UZ=e=>({x:e,y:e})
;function FZ(e){return["top","bottom"].includes(function(e){
return e.split("-")[0]}(e))?"y":"x"}
const qZ=["top","right","bottom","left"],zZ=Math.min,HZ=Math.max,ZZ=Math.round,VZ=Math.floor,WZ=e=>({
x:e,y:e}),XZ={left:"right",right:"left",bottom:"top",top:"bottom"},YZ={
start:"end",end:"start"};function GZ(e,t,n){return HZ(e,zZ(t,n))}
function KZ(e,t){return"function"==typeof e?e(t):e}function JZ(e){
return e.split("-")[0]}function eV(e){return e.split("-")[1]}function tV(e){
return"x"===e?"y":"x"}function nV(e){return"y"===e?"height":"width"}
function rV(e){return["top","bottom"].includes(JZ(e))?"y":"x"}function oV(e){
return tV(rV(e))}function iV(e,t,n){void 0===n&&(n=!1)
;const r=eV(e),o=oV(e),i=nV(o)
;let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top"
;return t.reference[i]>t.floating[i]&&(a=cV(a)),[a,cV(a)]}function aV(e){
const t=cV(e);return[sV(e),t,sV(t)]}function sV(e){
return e.replace(/start|end/g,(e=>YZ[e]))}function lV(e,t,n,r){const o=eV(e)
;let i=function(e,t,n){
const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"]
;switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":
return t?i:a;default:return[]}}(JZ(e),"start"===n,r)
;return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(sV)))),i}function cV(e){
return e.replace(/left|right|bottom|top/g,(e=>XZ[e]))}function uV(e){
return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}
}(e):{top:e,right:e,bottom:e,left:e}}function dV(e){
const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,
right:t+r,bottom:n+o,x:t,y:n}}function pV(e,t,n){let{reference:r,floating:o}=e
;const i=rV(t),a=oV(t),s=nV(a),l=JZ(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2
;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,
y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={
x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(eV(t)){case"start":
h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}
async function hV(e,t){var n;void 0===t&&(t={})
;const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=KZ(t,e),f=uV(h),m=s[p?"floating"===d?"reference":"floating":d],g=dV(await i.getClippingRect({
element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),
boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,
width:a.floating.width,height:a.floating.height
}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),O=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{
x:1,y:1
},y=dV(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({
elements:s,rect:v,offsetParent:b,strategy:l}):v);return{
top:(g.top-y.top+f.top)/O.y,bottom:(y.bottom-g.bottom+f.bottom)/O.y,
left:(g.left-y.left+f.left)/O.x,right:(y.right-g.right+f.right)/O.x}}
function fV(e){return vV(e)?(e.nodeName||"").toLowerCase():"#document"}
function mV(e){var t
;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}
function gV(e){var t
;return null==(t=(vV(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement
}function vV(e){return e instanceof Node||e instanceof mV(e).Node}
function bV(e){return e instanceof Element||e instanceof mV(e).Element}
function OV(e){return e instanceof HTMLElement||e instanceof mV(e).HTMLElement}
function yV(e){
return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof mV(e).ShadowRoot)
}function wV(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=EV(e)
;return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)
}function xV(e){return["table","td","th"].includes(fV(e))}function kV(e){
const t=SV(),n=EV(e)
;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))
}function SV(){
return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")
}function _V(e){return["html","body","#document"].includes(fV(e))}
function EV(e){return mV(e).getComputedStyle(e)}function TV(e){return bV(e)?{
scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,
scrollTop:e.pageYOffset}}function CV(e){if("html"===fV(e))return e
;const t=e.assignedSlot||e.parentNode||yV(e)&&e.host||gV(e)
;return yV(t)?t.host:t}function AV(e){const t=CV(e)
;return _V(t)?e.ownerDocument?e.ownerDocument.body:e.body:OV(t)&&wV(t)?t:AV(t)}
function PV(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0)
;const o=AV(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=mV(o)
;return i?t.concat(a,a.visualViewport||[],wV(o)?o:[],a.frameElement&&n?PV(a.frameElement):[]):t.concat(o,PV(o,[],n))
}function DV(e){const t=EV(e)
;let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0
;const o=OV(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=QZ(n)!==i||QZ(r)!==a
;return s&&(n=i,r=a),{width:n,height:r,$:s}}function $V(e){
return bV(e)?e:e.contextElement}function RV(e){const t=$V(e)
;if(!OV(t))return UZ(1)
;const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=DV(t)
;let a=(i?QZ(n.width):n.width)/r,s=(i?QZ(n.height):n.height)/o
;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}
const NV=UZ(0);function IV(e){const t=mV(e);return SV()&&t.visualViewport?{
x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:NV}
function MV(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1)
;const o=e.getBoundingClientRect(),i=$V(e);let a=UZ(1)
;t&&(r?bV(r)&&(a=RV(r)):a=RV(e));const s=function(e,t,n){
return void 0===t&&(t=!1),!(!n||t&&n!==mV(e))&&t}(i,n,r)?IV(i):UZ(0)
;let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){
const e=mV(i),t=r&&bV(r)?mV(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){
const e=RV(o),t=o.getBoundingClientRect(),r=EV(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y
;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=mV(o),o=n.frameElement}}return dV({
width:u,height:d,x:l,y:c})}const LV=[":popover-open",":modal"];function BV(e){
return LV.some((t=>{try{return e.matches(t)}catch(P$){return!1}}))}
function QV(e){return MV(gV(e)).left+TV(e).scrollLeft}function jV(e,t,n){let r
;if("viewport"===t)r=function(e,t){const n=mV(e),r=gV(e),o=n.visualViewport
;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height
;const e=SV();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{
width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){
const t=gV(e),n=TV(e),r=e.ownerDocument.body,o=BZ(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=BZ(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight)
;let a=-n.scrollLeft+QV(e);const s=-n.scrollTop
;return"rtl"===EV(r).direction&&(a+=BZ(t.clientWidth,r.clientWidth)-o),{width:o,
height:i,x:a,y:s}}(gV(e));else if(bV(t))r=function(e,t){
const n=MV(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=OV(e)?RV(e):UZ(1)
;return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}
}(t,n);else{const n=IV(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return dV(r)}
function UV(e,t){const n=CV(e)
;return!(n===t||!bV(n)||_V(n))&&("fixed"===EV(n).position||UV(n,t))}
function FV(e,t,n){const r=OV(t),o=gV(t),i="fixed"===n,a=MV(e,!0,i,t);let s={
scrollLeft:0,scrollTop:0};const l=UZ(0)
;if(r||!r&&!i)if(("body"!==fV(t)||wV(o))&&(s=TV(t)),r){const e=MV(t,!0,i,t)
;l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=QV(o));return{
x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}
}function qV(e){return"static"===EV(e).position}function zV(e,t){
return OV(e)&&"fixed"!==EV(e).position?t?t(e):e.offsetParent:null}
function HV(e,t){const n=mV(e);if(BV(e))return n;if(!OV(e)){let t=CV(e)
;for(;t&&!_V(t);){if(bV(t)&&!qV(t))return t;t=CV(t)}return n}let r=zV(e,t)
;for(;r&&xV(r)&&qV(r);)r=zV(r,t)
;return r&&_V(r)&&qV(r)&&!kV(r)?n:r||function(e){let t=CV(e)
;for(;OV(t)&&!_V(t);){if(kV(t))return t;t=CV(t)}return null}(e)||n}const ZV={
convertOffsetParentRelativeRectToViewportRelativeRect:function(e){
let{elements:t,rect:n,offsetParent:r,strategy:o}=e
;const i="fixed"===o,a=gV(r),s=!!t&&BV(t.floating);if(r===a||s&&i)return n
;let l={scrollLeft:0,scrollTop:0},c=UZ(1);const u=UZ(0),d=OV(r)
;if((d||!d&&!i)&&(("body"!==fV(r)||wV(a))&&(l=TV(r)),OV(r))){const e=MV(r)
;c=RV(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,
height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y
}},getDocumentElement:gV,getClippingRect:function(e){
let{element:t,boundary:n,rootBoundary:r,strategy:o}=e
;const i=[..."clippingAncestors"===n?BV(t)?[]:function(e,t){const n=t.get(e)
;if(n)return n;let r=PV(e,[],!1).filter((e=>bV(e)&&"body"!==fV(e))),o=null
;const i="fixed"===EV(e).position;let a=i?CV(e):e;for(;bV(a)&&!_V(a);){
const t=EV(a),n=kV(a)
;n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||wV(a)&&!n&&UV(e,a))?r=r.filter((e=>e!==a)):o=t,
a=CV(a)}return t.set(e,r),r
}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=jV(t,n,o)
;return e.top=BZ(r.top,e.top),
e.right=LZ(r.right,e.right),e.bottom=LZ(r.bottom,e.bottom),
e.left=BZ(r.left,e.left),e}),jV(t,a,o));return{width:s.right-s.left,
height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:HV,
getElementRects:async function(e){
const t=this.getOffsetParent||HV,n=this.getDimensions,r=await n(e.floating)
;return{reference:FV(e.reference,await t(e.floating),e.strategy),floating:{x:0,
y:0,width:r.width,height:r.height}}},getClientRects:function(e){
return Array.from(e.getClientRects())},getDimensions:function(e){
const{width:t,height:n}=DV(e);return{width:t,height:n}},getScale:RV,
isElement:bV,isRTL:function(e){return"rtl"===EV(e).direction}}
;function VV(e,t,n,r){void 0===r&&(r={})
;const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=$V(e),u=o||i?[...c?PV(c):[],...PV(t)]:[]
;u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0
}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null
;const o=gV(e);function i(){var e
;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){
void 0===s&&(s=!1),void 0===l&&(l=1),i()
;const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect()
;if(s||t(),!d||!p)return;const h={
rootMargin:-jZ(u)+"px "+-jZ(o.clientWidth-(c+d))+"px "+-jZ(o.clientHeight-(u+p))+"px "+-jZ(c)+"px",
threshold:BZ(0,LZ(1,l))||1};let f=!0;function m(e){
const t=e[0].intersectionRatio;if(t!==l){if(!f)return a()
;t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}f=!1}try{
r=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch(P$){
r=new IntersectionObserver(m,h)}r.observe(e)}(!0),i}(c,n):null;let p,h=-1,f=null
;a&&(f=new ResizeObserver((e=>{let[r]=e
;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),
h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()
})),c&&!l&&f.observe(c),f.observe(t));let m=l?MV(e):null;return l&&function t(){
const r=MV(e)
;!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n()
;m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{
o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)
})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}
const WV=function(e){return void 0===e&&(e=0),{name:"offset",options:e,
async fn(t){var n,r
;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){
const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=JZ(n),s=eV(n),l="y"===rV(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=KZ(t,e)
;let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,
crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d}
;return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u
}}(t,e)
;return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{
x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},XV=function(e){
return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){
const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{
let{x:t,y:n}=e;return{x:t,y:n}}},...l}=KZ(e,t),c={x:n,y:r
},u=await hV(t,l),d=rV(JZ(o)),p=tV(d);let h=c[p],f=c[d];if(i){
const e="y"===p?"bottom":"right";h=GZ(h+u["y"===p?"top":"left"],h,h-u[e])}if(a){
const e="y"===d?"bottom":"right";f=GZ(f+u["y"===d?"top":"left"],f,f-u[e])}
const m=s.fn({...t,[p]:h,[d]:f});return{...m,data:{x:m.x-n,y:m.y-r}}}}
},YV=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){
var n,r
;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=KZ(e,t)
;if(null!=(n=i.arrow)&&n.alignmentOffset)return{}
;const v=JZ(o),b=JZ(s)===s,O=await(null==l.isRTL?void 0:l.isRTL(c.floating)),y=p||(b||!m?[cV(s)]:aV(s))
;p||"none"===f||y.push(...lV(s,m,f,O));const w=[s,...y],x=await hV(t,g),k=[]
;let S=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(x[v]),d){
const e=iV(o,a,O);k.push(x[e[0]],x[e[1]])}if(S=[...S,{placement:o,overflows:k}],
!k.every((e=>e<=0))){var _,E
;const e=((null==(_=i.flip)?void 0:_.index)||0)+1,t=w[e];if(t)return{data:{
index:e,overflows:S},reset:{placement:t}}
;let n=null==(E=S.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:E.placement
;if(!n)switch(h){case"bestFit":{var T
;const e=null==(T=S.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0]
;e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}
return{}}}},GV=(e,t,n)=>{const r=new Map,o={platform:ZV,...n},i={...o.platform,
_c:r};return(async(e,t,n)=>{
const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t))
;let c=await a.getElementRects({reference:e,floating:t,strategy:o
}),{x:u,y:d}=pV(c,r,l),p=r,h={},f=0;for(let m=0;m<s.length;m++){
const{name:n,fn:i}=s[m],{x:g,y:v,data:b,reset:O}=await i({x:u,y:d,
initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:c,platform:a,
elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,h={...h,[n]:{
...h[n],...b}},O&&f<=50&&(f++,"object"==typeof O&&(O.placement&&(p=O.placement),
O.rects&&(c=!0===O.rects?await a.getElementRects({reference:e,floating:t,
strategy:o}):O.rects),({x:u,y:d}=pV(c,p,l))),m=-1)}return{x:u,y:d,placement:p,
strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};function KV(e){
if(function(e){return null!=e&&"object"==typeof e&&"$el"in e}(e)){const t=e.$el
;return vV(t)&&"#comment"===fV(t)?null:t}return e}function JV(e){
if("undefined"==typeof window)return 1
;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}
function eW(e,t){const n=JV(e);return Math.round(t*n)/n}const tW={
class:"scalar-app"},nW=eo({inheritAttrs:!1,__name:"ScalarFloating",props:{
placement:{},resize:{type:Boolean},targetRef:{},middleware:{},isOpen:{
type:Boolean},teleport:{type:[Boolean,String]}},setup(e){
const t=e,n=Bn(null),r=Bn(null),o=Aa((()=>{var e,n
;return(t.targetRef||(null==(n=null==(e=r.value)?void 0:e.children)?void 0:n[0])||r.value)??void 0
})),i=function(e,t={enabled:Bn(!0)}){const n=Bn(0),r=Bn(0),o=Bn()
;return typeof ResizeObserver<"u"&&(o.value=new ResizeObserver((([e])=>{var t,o
;e&&(n.value=(null==(t=e.borderBoxSize[0])?void 0:t.inlineSize)??0,
r.value=(null==(o=e.borderBoxSize[0])?void 0:o.blockSize)??0)
}))),li([()=>qn(t.enabled),()=>qn(e)],(([e,t])=>{
!t||!o.value||(e?o.value.observe(t):o.value.disconnect())}),{immediate:!0}),{
width:Aa((()=>qn(t.enabled)?`${n.value}px`:void 0)),
height:Aa((()=>qn(t.enabled)?`${r.value}px`:void 0))}}(o,{
enabled:Aa((()=>t.resize))
}),a=Aa((()=>"y"===FZ(t.placement||"bottom")?i.width.value:void 0)),s=Aa((()=>"x"===FZ(t.placement||"bottom")?i.height.value:void 0)),{floatingStyles:l,middlewareData:c}=function(e,t,n){
void 0===n&&(n={});const r=n.whileElementsMounted,o=Aa((()=>{var e
;return null==(e=Fn(n.open))||e})),i=Aa((()=>Fn(n.middleware))),a=Aa((()=>{var e
;return null!=(e=Fn(n.placement))?e:"bottom"})),s=Aa((()=>{var e
;return null!=(e=Fn(n.strategy))?e:"absolute"})),l=Aa((()=>{var e
;return null==(e=Fn(n.transform))||e
})),c=Aa((()=>KV(e.value))),u=Aa((()=>KV(t.value))),d=Bn(0),p=Bn(0),h=Bn(s.value),f=Bn(a.value),m=Qn({}),g=Bn(!1),v=Aa((()=>{
const e={position:h.value,left:"0",top:"0"};if(!u.value)return e
;const t=eW(u.value,d.value),n=eW(u.value,p.value);return l.value?{...e,
transform:"translate("+t+"px, "+n+"px)",...JV(u.value)>=1.5&&{
willChange:"transform"}}:{position:h.value,left:t+"px",top:n+"px"}}));let b
;function O(){null!=c.value&&null!=u.value&&GV(c.value,u.value,{
middleware:i.value,placement:a.value,strategy:s.value}).then((e=>{
d.value=e.x,p.value=e.y,
h.value=e.strategy,f.value=e.placement,m.value=e.middlewareData,g.value=!0}))}
function y(){"function"==typeof b&&(b(),b=void 0)}return li([i,a,s],O,{
flush:"sync"}),li([c,u],(function(){
y(),void 0!==r?null==c.value||null==u.value||(b=r(c.value,u.value,O)):O()}),{
flush:"sync"}),li(o,(function(){o.value||(g.value=!1)}),{flush:"sync"
}),ft()&&mt(y),{x:Sn(d),y:Sn(p),strategy:Sn(h),placement:Sn(f),
middlewareData:Sn(m),isPositioned:Sn(g),floatingStyles:v,update:O}}(o,n,{
placement:Aa((()=>t.placement)),whileElementsMounted:VV,
middleware:Aa((()=>[WV(5),YV(),XV(),...t.middleware??[]]))});return(e,t)=>(zi(),
Wi(Bi,null,[ea("div",{ref_key:"wrapperRef",ref:r,class:et({
contents:!!e.$slots.default})
},[no(e.$slots,"default")],2),e.isOpen?(zi(),Xi(Mi,{key:0,disabled:!e.teleport,
to:"string"==typeof e.teleport?e.teleport:"body"},[ea("div",tW,[ea("div",{
ref_key:"floatingRef",ref:n,class:"relative z-overlay",style:Xe(Fn(l))
},[no(e.$slots,"floating",{data:Fn(c),height:s.value,width:a.value
})],4)])],8,["disabled","to"])):aa("",!0)],64))}}),rW=ea("div",{
class:"absolute inset-0 -z-1 rounded bg-b-1 shadow-md brightness-lifted"
},null,-1),oW=eo({inheritAttrs:!1,__name:"ScalarComboboxPopover",props:{
placement:{},resize:{type:Boolean},targetRef:{},isOpen:{type:Boolean},teleport:{
type:[Boolean,String]}},setup(e,{expose:t}){const n=Bn(null),r=e=>{var t
;["ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),
null==(t=e.target)||t.dispatchEvent(new KeyboardEvent("keydown",{key:"Enter"})))
};return t({popoverButtonRef:n}),(e,t)=>(zi(),Xi(Fn(bN),{as:"template"},{
default:Tr((({open:t})=>[ta(Fn(nW),{isOpen:t??e.isOpen,
placement:e.placement??"bottom-start",resize:e.resize,teleport:e.teleport},{
floating:Tr((({width:n})=>[ta(Fn(yN),ua({
class:"relative flex w-40 flex-col rounded border text-sm",focus:"",style:{
width:n}},e.$attrs),{default:Tr((({close:n})=>[no(e.$slots,"popover",{close:n,
open:t}),rW])),_:2},1040,["style"])])),default:Tr((()=>[ta(Fn(ON),{
ref_key:"popoverButtonRef",ref:n,as:"template",onKeydown:r},{
default:Tr((()=>[no(e.$slots,"default")])),_:3},512)])),_:2
},1032,["isOpen","placement","resize","teleport"])])),_:3}))}}),iW={
class:"divide-1 divide-y"},aW={key:1,class:"p-0.75"},sW=eo({
__name:"ScalarComboboxMultiselect",props:{options:{},modelValue:{},
placeholder:{},isDeletable:{type:Boolean},placement:{},resize:{type:Boolean},
targetRef:{},isOpen:{type:Boolean},teleport:{type:[Boolean,String]}},
emits:["update:modelValue","delete"],setup(e,{expose:t}){const n=Bn(null)
;return t({comboboxPopoverRef:n}),(e,t)=>(zi(),Xi(oW,{
ref_key:"comboboxPopoverRef",ref:n,isOpen:e.isOpen,
placement:e.placement??"bottom-start",resize:e.resize,teleport:e.teleport},{
popover:Tr((({open:n})=>[ea("div",iW,[e.options&&e.options.length?(zi(),Xi(MZ,{
key:0,isDeletable:e.isDeletable,modelValue:e.modelValue,multiselect:"",open:n,
options:e.options,placeholder:e.placeholder,
onDelete:t[0]||(t[0]=t=>e.$emit("delete",t)),
"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("update:modelValue",t))
},null,8,["isDeletable","modelValue","open","options","placeholder"])):aa("",!0),e.$slots.actions?(zi(),
Wi("div",aW,[no(e.$slots,"actions")])):aa("",!0)])])),
default:Tr((()=>[no(e.$slots,"default")])),_:3
},8,["isOpen","placement","resize","teleport"]))}}),lW=["innerHTML"],cW=eo({
__name:"ScalarMarkdown",props:{value:{},withImages:{type:Boolean,default:!1},
transform:{},transformType:{},clamp:{type:[String,Boolean]}},setup(e){
const t=e,n=Aa((()=>function(e,t){
const n=(null==t?void 0:t.removeTags)??[],r=[...mw.tagNames??[],...(null==t?void 0:t.allowTags)??[]].filter((e=>!n.includes(e)))
;return OT().use(_E).use(W_).use(mP,{transform:null==t?void 0:t.transform,
type:null==t?void 0:t.transformType}).use(zE,{allowDangerousHtml:!0
}).use(hw).use(kw,{...mw,clobberPrefix:"",tagNames:r,attributes:{
...mw.attributes,abbr:["title"]}}).use(hP,{languages:fP,detect:!0}).use(lg,{
target:"_blank"}).use(Mg).use(px).processSync(e).toString()}(t.value??"",{
removeTags:t.withImages?[]:["img","picture"],transform:t.transform,
transformType:t.transformType})))
;return Zr((async()=>await(e=>new Promise((t=>setTimeout(t,e))))(1))),
(e,t)=>(zi(),Wi("div",{class:et(["markdown text-ellipsis",{
"line-clamp-4":e.clamp}]),style:Xe({
"-webkit-line-clamp":"string"==typeof e.clamp?e.clamp:void 0}),innerHTML:n.value
},null,14,lW))}}),uW=ea("div",{
class:"absolute inset-0 -z-1 rounded bg-b-1 shadow-lg brightness-lifted"
},null,-1),dW=eo({inheritAttrs:!1,__name:"ScalarDropdown",props:{placement:{},
resize:{type:Boolean},targetRef:{},isOpen:{type:Boolean},teleport:{
type:[Boolean,String]},static:{type:Boolean,default:!1},staticOpen:{
type:Boolean,default:!0}},setup:e=>(e,t)=>(zi(),Xi(Fn(sN),null,{
default:Tr((({open:t})=>[ta(Fn(nW),{isOpen:e.static?e.staticOpen:t??e.isOpen,
placement:e.placement??"bottom-start",resize:e.resize,targetRef:e.targetRef,
teleport:e.teleport},{floating:Tr((({width:t})=>[ta(Fn(cN),ua({
class:"relative flex w-56 flex-col p-0.75"},e.$attrs,{static:e.static,style:{
width:t}}),{default:Tr((()=>[no(e.$slots,"items"),uW])),_:2
},1040,["static","style"])])),
default:Tr((()=>[e.static?aa("",!0):(zi(),Xi(Fn(lN),{key:0,as:"template"},{
default:Tr((()=>[no(e.$slots,"default")])),_:3}))])),_:2
},1032,["isOpen","placement","resize","targetRef","teleport"])])),_:3}))}),pW={
class:"-mx-0.75 my-0.75 h-px bg-border"}
;const hW=EI({},[["render",function(e,t){return zi(),Wi("div",pW)}]]),fW=eo({
__name:"ScalarDropdownItem",props:{disabled:{type:Boolean}},emits:["click"],
setup(e){const t=wI({
base:["h-8 min-w-0 items-center gap-1.5 rounded px-2.5 py-1.5 text-left","truncate text-sm text-c-1","cursor-pointer hover:bg-b-2 hover:text-c-1"],
variants:{disabled:{true:"pointer-events-none text-c-3"},active:{
true:"bg-b-2 text-c-1"}}});return(e,n)=>(zi(),Xi(Fn(uN),{disabled:e.disabled},{
default:Tr((({active:r})=>[ea("button",{
class:et(["item",Fn(xI)("scalar-dropdown-item",Fn(t)({active:r,
disabled:e.disabled}))]),type:"button",
onClick:n[0]||(n[0]=t=>e.$emit("click",t))
},[no(e.$slots,"default",{},void 0,!0)],2)])),_:3},8,["disabled"]))}
}),mW=EI(fW,[["__scopeId","data-v-a4980d5e"]]),gW=["ariaDisabled"],vW={
class:"sr-only"},bW=eo({__name:"ScalarIconButton",props:{label:{},icon:{},
disabled:{type:Boolean},variant:{default:"ghost"},size:{default:"md"},
thickness:{}},setup(e){const t=wI({
base:"scalar-icon-button grid aspect-square cursor-pointer rounded",variants:{
size:{xxs:"size-3.5 p-0.5",xs:"size-5 p-1",sm:"size-6 p-1",md:"size-10 p-3",
full:"h-full w-full"},disabled:{true:"cursor-not-allowed shadow-none"},
variant:CI}}),n=Aa((()=>{const{class:e,...t}=uo();return{class:e||"",rest:t}}))
;return(e,r)=>(zi(),Wi("button",ua(n.value.rest,{
ariaDisabled:e.disabled||void 0,class:Fn(xI)(Fn(t)({size:e.size,
variant:e.variant,disabled:e.disabled}),n.value.class),type:"button"
}),[ta(Fn(xZ),{icon:e.icon,thickness:e.thickness
},null,8,["icon","thickness"]),ea("span",vW,st(e.label),1)],16,gW))}
}),OW=ea("div",{
class:"absolute inset-0 -z-1 rounded bg-b-1 shadow-md brightness-lifted"
},null,-1),yW=eo({inheritAttrs:!1,__name:"ScalarListbox",props:{multiple:{
type:Boolean,default:!1},options:{},modelValue:{},fullWidth:{type:Boolean},
id:{},placement:{},resize:{type:Boolean},targetRef:{},isOpen:{type:Boolean},
teleport:{type:[Boolean,String]}},emits:["update:modelValue"],setup(e){
const t=wI({
base:["group","flex min-w-0 items-center gap-1.5 rounded px-2 py-1.5 text-left","first-of-type:mt-0.75 last-of-type:mb-0.75","truncate bg-transparent text-c-1","cursor-pointer hover:bg-b-2"],
variants:{selected:{true:"text-c-1"},active:{true:"bg-b-2"},disabled:{
true:"pointer-events-none opacity-50"}}});return(e,n)=>(zi(),Xi(Fn(JR),{
as:"div",class:et([{"w-full":e.fullWidth},"text-sm"]),modelValue:e.modelValue,
multiple:e.multiple,
"onUpdate:modelValue":n[0]||(n[0]=t=>e.$emit("update:modelValue",t))},{
default:Tr((({open:n})=>[ta(Fn(nW),{isOpen:n??e.isOpen,
placement:e.placement??"bottom-start",resize:e.resize,teleport:e.teleport},{
floating:Tr((({width:n})=>[ta(Fn(tN),ua({
class:"relative flex w-40 flex-col rounded border p-0.75",style:{width:n}
},e.$attrs),{
default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(e.options,(e=>(zi(),Xi(Fn(nN),{key:e.id,
as:"template",disabled:e.disabled,value:e},{
default:Tr((({active:n,selected:r})=>[ea("li",{class:et(Fn(xI)(Fn(t)({active:n,
selected:r,disabled:e.disabled})))},[ea("div",{
class:et(["flex size-4 items-center justify-center rounded-full p-[3px] group-hover:shadow-border",r?"bg-blue text-b-1":"text-transparent"])
},[ta(Fn(xZ),{class:"relative top-[0.5px] size-2.5",icon:"Checkmark",
thickness:"2.5"})],2),ea("span",{
class:et(["inline-block min-w-0 flex-1 truncate",e.color?e.color:"text-c-1"])
},st(e.label),3)],2)])),_:2},1032,["disabled","value"])))),128)),OW])),_:2
},1040,["style"])])),default:Tr((()=>[ta(Fn(eN),{id:e.id,as:"template",
class:"justify-start"},{default:Tr((()=>[no(e.$slots,"default")])),_:3
},8,["id"])])),_:2},1032,["isOpen","placement","resize","teleport"])])),_:3
},8,["class","modelValue","multiple"]))}});function wW(e,t,n){
let{reference:r,floating:o}=e
;const i=rV(t),a=oV(t),s=nV(a),l=JZ(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2
;let h;switch(l){case"top":h={x:u,y:r.y-o.height};break;case"bottom":h={x:u,
y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={
x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(eV(t)){case"start":
h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}
async function xW(e,t){var n;void 0===t&&(t={})
;const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=KZ(t,e),f=uV(h),m=s[p?"floating"===d?"reference":"floating":d],g=dV(await i.getClippingRect({
element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),
boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,
width:a.floating.width,height:a.floating.height
}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),O=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{
x:1,y:1
},y=dV(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({
elements:s,rect:v,offsetParent:b,strategy:l}):v);return{
top:(g.top-y.top+f.top)/O.y,bottom:(y.bottom-g.bottom+f.bottom)/O.y,
left:(g.left-y.left+f.left)/O.x,right:(y.right-g.right+f.right)/O.x}}
function kW(e,t){return{top:e.top-t.height,right:e.right-t.width,
bottom:e.bottom-t.height,left:e.left-t.width}}function SW(e){
return qZ.some((t=>e[t]>=0))}function _W(e){
return CW(e)?(e.nodeName||"").toLowerCase():"#document"}function EW(e){var t
;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}
function TW(e){var t
;return null==(t=(CW(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement
}function CW(e){return e instanceof Node||e instanceof EW(e).Node}
function AW(e){return e instanceof Element||e instanceof EW(e).Element}
function PW(e){return e instanceof HTMLElement||e instanceof EW(e).HTMLElement}
function DW(e){
return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof EW(e).ShadowRoot)
}function $W(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=BW(e)
;return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)
}function RW(e){return["table","td","th"].includes(_W(e))}function NW(e){
return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(P$){
return!1}}))}function IW(e){const t=MW(),n=AW(e)?BW(e):e
;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))
}function MW(){
return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")
}function LW(e){return["html","body","#document"].includes(_W(e))}
function BW(e){return EW(e).getComputedStyle(e)}function QW(e){return AW(e)?{
scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,
scrollTop:e.scrollY}}function jW(e){if("html"===_W(e))return e
;const t=e.assignedSlot||e.parentNode||DW(e)&&e.host||TW(e)
;return DW(t)?t.host:t}function UW(e){const t=jW(e)
;return LW(t)?e.ownerDocument?e.ownerDocument.body:e.body:PW(t)&&$W(t)?t:UW(t)}
function FW(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0)
;const o=UW(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=EW(o);if(i){
const e=qW(a);return t.concat(a,a.visualViewport||[],$W(o)?o:[],e&&n?FW(e):[])}
return t.concat(o,FW(o,[],n))}function qW(e){
return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}
function zW(e){const t=BW(e)
;let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0
;const o=PW(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=ZZ(n)!==i||ZZ(r)!==a
;return s&&(n=i,r=a),{width:n,height:r,$:s}}function HW(e){
return AW(e)?e:e.contextElement}function ZW(e){const t=HW(e)
;if(!PW(t))return WZ(1)
;const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=zW(t)
;let a=(i?ZZ(n.width):n.width)/r,s=(i?ZZ(n.height):n.height)/o
;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}
const VW=WZ(0);function WW(e){const t=EW(e);return MW()&&t.visualViewport?{
x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:VW}
function XW(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1)
;const o=e.getBoundingClientRect(),i=HW(e);let a=WZ(1)
;t&&(r?AW(r)&&(a=ZW(r)):a=ZW(e));const s=function(e,t,n){
return void 0===t&&(t=!1),!(!n||t&&n!==EW(e))&&t}(i,n,r)?WW(i):WZ(0)
;let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){
const e=EW(i),t=r&&AW(r)?EW(r):r;let n=e,o=qW(n);for(;o&&r&&t!==n;){
const e=ZW(o),t=o.getBoundingClientRect(),r=BW(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y
;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=EW(o),o=qW(n)}}return dV({width:u,
height:d,x:l,y:c})}function YW(e){return XW(TW(e)).left+QW(e).scrollLeft}
function GW(e,t,n){let r;if("viewport"===t)r=function(e,t){
const n=EW(e),r=TW(e),o=n.visualViewport
;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height
;const e=MW();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{
width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){
const t=TW(e),n=QW(e),r=e.ownerDocument.body,o=HZ(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=HZ(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight)
;let a=-n.scrollLeft+YW(e);const s=-n.scrollTop
;return"rtl"===BW(r).direction&&(a+=HZ(t.clientWidth,r.clientWidth)-o),{width:o,
height:i,x:a,y:s}}(TW(e));else if(AW(t))r=function(e,t){
const n=XW(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=PW(e)?ZW(e):WZ(1)
;return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}
}(t,n);else{const n=WW(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return dV(r)}
function KW(e,t){const n=jW(e)
;return!(n===t||!AW(n)||LW(n))&&("fixed"===BW(n).position||KW(n,t))}
function JW(e,t,n){const r=PW(t),o=TW(t),i="fixed"===n,a=XW(e,!0,i,t);let s={
scrollLeft:0,scrollTop:0};const l=WZ(0)
;if(r||!r&&!i)if(("body"!==_W(t)||$W(o))&&(s=QW(t)),r){const e=XW(t,!0,i,t)
;l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=YW(o));return{
x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}
}function eX(e){return"static"===BW(e).position}function tX(e,t){
return PW(e)&&"fixed"!==BW(e).position?t?t(e):e.offsetParent:null}
function nX(e,t){const n=EW(e);if(NW(e))return n;if(!PW(e)){let t=jW(e)
;for(;t&&!LW(t);){if(AW(t)&&!eX(t))return t;t=jW(t)}return n}let r=tX(e,t)
;for(;r&&RW(r)&&eX(r);)r=tX(r,t)
;return r&&LW(r)&&eX(r)&&!IW(r)?n:r||function(e){let t=jW(e)
;for(;PW(t)&&!LW(t);){if(IW(t))return t;if(NW(t))return null;t=jW(t)}return null
}(e)||n}const rX={
convertOffsetParentRelativeRectToViewportRelativeRect:function(e){
let{elements:t,rect:n,offsetParent:r,strategy:o}=e
;const i="fixed"===o,a=TW(r),s=!!t&&NW(t.floating);if(r===a||s&&i)return n
;let l={scrollLeft:0,scrollTop:0},c=WZ(1);const u=WZ(0),d=PW(r)
;if((d||!d&&!i)&&(("body"!==_W(r)||$W(a))&&(l=QW(r)),PW(r))){const e=XW(r)
;c=ZW(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,
height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y
}},getDocumentElement:TW,getClippingRect:function(e){
let{element:t,boundary:n,rootBoundary:r,strategy:o}=e
;const i=[..."clippingAncestors"===n?NW(t)?[]:function(e,t){const n=t.get(e)
;if(n)return n;let r=FW(e,[],!1).filter((e=>AW(e)&&"body"!==_W(e))),o=null
;const i="fixed"===BW(e).position;let a=i?jW(e):e;for(;AW(a)&&!LW(a);){
const t=BW(a),n=IW(a)
;n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||$W(a)&&!n&&KW(e,a))?r=r.filter((e=>e!==a)):o=t,
a=jW(a)}return t.set(e,r),r
}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=GW(t,n,o)
;return e.top=HZ(r.top,e.top),
e.right=zZ(r.right,e.right),e.bottom=zZ(r.bottom,e.bottom),
e.left=HZ(r.left,e.left),e}),GW(t,a,o));return{width:s.right-s.left,
height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:nX,
getElementRects:async function(e){
const t=this.getOffsetParent||nX,n=this.getDimensions,r=await n(e.floating)
;return{reference:JW(e.reference,await t(e.floating),e.strategy),floating:{x:0,
y:0,width:r.width,height:r.height}}},getClientRects:function(e){
return Array.from(e.getClientRects())},getDimensions:function(e){
const{width:t,height:n}=zW(e);return{width:t,height:n}},getScale:ZW,
isElement:AW,isRTL:function(e){return"rtl"===BW(e).direction}}
;function oX(e,t,n,r){void 0===r&&(r={})
;const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=HW(e),u=o||i?[...c?FW(c):[],...FW(t)]:[]
;u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0
}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null
;const o=TW(e);function i(){var e
;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){
void 0===s&&(s=!1),void 0===l&&(l=1),i()
;const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect()
;if(s||t(),!d||!p)return;const h={
rootMargin:-VZ(u)+"px "+-VZ(o.clientWidth-(c+d))+"px "+-VZ(o.clientHeight-(u+p))+"px "+-VZ(c)+"px",
threshold:HZ(0,zZ(1,l))||1};let f=!0;function m(e){
const t=e[0].intersectionRatio;if(t!==l){if(!f)return a()
;t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}f=!1}try{
r=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch(P$){
r=new IntersectionObserver(m,h)}r.observe(e)}(!0),i}(c,n):null;let p,h=-1,f=null
;a&&(f=new ResizeObserver((e=>{let[r]=e
;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),
h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()
})),c&&!l&&f.observe(c),f.observe(t));let m=l?XW(e):null;return l&&function t(){
const r=XW(e)
;!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n()
;m=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{
o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)
})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}
const iX=function(e){return void 0===e&&(e=0),{name:"offset",options:e,
async fn(t){var n,r
;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){
const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=JZ(n),s=eV(n),l="y"===rV(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=KZ(t,e)
;let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,
crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d}
;return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*u
}}(t,e)
;return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{
x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},aX=function(e){
return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){
const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{
let{x:t,y:n}=e;return{x:t,y:n}}},...l}=KZ(e,t),c={x:n,y:r
},u=await xW(t,l),d=rV(JZ(o)),p=tV(d);let h=c[p],f=c[d];if(i){
const e="y"===p?"bottom":"right";h=GZ(h+u["y"===p?"top":"left"],h,h-u[e])}if(a){
const e="y"===d?"bottom":"right";f=GZ(f+u["y"===d?"top":"left"],f,f-u[e])}
const m=s.fn({...t,[p]:h,[d]:f});return{...m,data:{x:m.x-n,y:m.y-r}}}}
},sX=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){
var n,r
;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=KZ(e,t)
;if(null!=(n=i.arrow)&&n.alignmentOffset)return{}
;const v=JZ(o),b=rV(s),O=JZ(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(O||!m?[cV(s)]:aV(s)),x="none"!==f
;!p&&x&&w.push(...lV(s,m,f,y));const k=[s,...w],S=await xW(t,g),_=[]
;let E=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&_.push(S[v]),d){
const e=iV(o,a,y);_.push(S[e[0]],S[e[1]])}if(E=[...E,{placement:o,overflows:_}],
!_.every((e=>e<=0))){var T,C
;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=k[e];if(t)return{data:{
index:e,overflows:E},reset:{placement:t}}
;let n=null==(C=E.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement
;if(!n)switch(h){case"bestFit":{var A;const e=null==(A=E.filter((e=>{if(x){
const t=rV(e.placement);return t===b||"y"===t}return!0
})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:A[0]
;e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}
return{}}}},lX=function(e){return void 0===e&&(e={}),{name:"size",options:e,
async fn(t){
const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...s}=KZ(e,t),l=await xW(t,s),c=JZ(n),u=eV(n),d="y"===rV(n),{width:p,height:h}=r.floating
;let f,m
;"top"===c||"bottom"===c?(f=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,
f="end"===u?"top":"bottom")
;const g=h-l.top-l.bottom,v=p-l.left-l.right,b=zZ(h-l[f],g),O=zZ(p-l[m],v),y=!t.middlewareData.shift
;let w=b,x=O;if(d?x=u||y?zZ(O,v):v:w=u||y?zZ(b,g):g,y&&!u){
const e=HZ(l.left,0),t=HZ(l.right,0),n=HZ(l.top,0),r=HZ(l.bottom,0)
;d?x=p-2*(0!==e||0!==t?e+t:HZ(l.left,l.right)):w=h-2*(0!==n||0!==r?n+r:HZ(l.top,l.bottom))
}await a({...t,availableWidth:x,availableHeight:w})
;const k=await o.getDimensions(i.floating);return p!==k.width||h!==k.height?{
reset:{rects:!0}}:{}}}},cX=function(e){return void 0===e&&(e={}),{name:"hide",
options:e,async fn(t){
const{rects:n}=t,{strategy:r="referenceHidden",...o}=KZ(e,t);switch(r){
case"referenceHidden":{const e=kW(await xW(t,{...o,elementContext:"reference"
}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:SW(e)}}}
case"escaped":{const e=kW(await xW(t,{...o,altBoundary:!0}),n.floating);return{
data:{escapedOffsets:e,escaped:SW(e)}}}default:return{}}}}},uX=e=>({
name:"arrow",options:e,async fn(t){
const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=KZ(e,t)||{}
;if(null==c)return{};const d=uV(u),p={x:n,y:r
},h=oV(o),f=nV(h),m=await a.getDimensions(c),g="y"===h,v=g?"top":"left",b=g?"bottom":"right",O=g?"clientHeight":"clientWidth",y=i.reference[f]+i.reference[h]-p[h]-i.floating[f],w=p[h]-i.reference[h],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c))
;let k=x?x[O]:0
;k&&await(null==a.isElement?void 0:a.isElement(x))||(k=s.floating[O]||i.floating[f])
;const S=y/2-w/2,_=k/2-m[f]/2-1,E=zZ(d[v],_),T=zZ(d[b],_),C=E,A=k-m[f]-T,P=k/2-m[f]/2+S,D=GZ(C,P,A),$=!l.arrow&&null!=eV(o)&&P!==D&&i.reference[f]/2-(P<C?E:T)-m[f]/2<0,R=$?P<C?P-C:P-A:0
;return{[h]:p[h]+R,data:{[h]:D,centerOffset:P-D-R,...$&&{alignmentOffset:R}},
reset:$}}}),dX=function(e){return void 0===e&&(e={}),{options:e,fn(t){
const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=KZ(e,t),u={
x:n,y:r},d=rV(o),p=tV(d);let h=u[p],f=u[d]
;const m=KZ(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,
crossAxis:0,...m};if(l){
const e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+g.mainAxis,n=i.reference[p]+i.reference[e]-g.mainAxis
;h<t?h=t:h>n&&(h=n)}if(c){var v,b
;const e="y"===p?"width":"height",t=["top","left"].includes(JZ(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(b=a.offset)?void 0:b[d])||0)-(t?g.crossAxis:0)
;f<n?f=n:f>r&&(f=r)}return{[p]:h,[d]:f}}}},pX=(e,t,n)=>{const r=new Map,o={
platform:rX,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{
const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t))
;let c=await a.getElementRects({reference:e,floating:t,strategy:o
}),{x:u,y:d}=wW(c,r,l),p=r,h={},f=0;for(let m=0;m<s.length;m++){
const{name:n,fn:i}=s[m],{x:g,y:v,data:b,reset:O}=await i({x:u,y:d,
initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:c,platform:a,
elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,h={...h,[n]:{
...h[n],...b}},O&&f<=50&&(f++,"object"==typeof O&&(O.placement&&(p=O.placement),
O.rects&&(c=!0===O.rects?await a.getElementRects({reference:e,floating:t,
strategy:o}):O.rects),({x:u,y:d}=wW(c,p,l))),m=-1)}return{x:u,y:d,placement:p,
strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};function hX(e){
if(function(e){return null!=e&&"object"==typeof e&&"$el"in e}(e)){const t=e.$el
;return CW(t)&&"#comment"===_W(t)?null:t}return e}function fX(e){
return"function"==typeof e?e():Fn(e)}function mX(e){
if("undefined"==typeof window)return 1
;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}
function gX(e,t){const n=mX(e);return Math.round(t*n)/n}function vX(e,t){
const n=Symbol("string"!=typeof e||t?t:`${e}Context`);return[t=>{const r=$o(n,t)
;if(r||null===r)return r
;throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)
},e=>(Do(n,e),e)]}function bX(e,t,n){
const r=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,
detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(o)}
function OX(e){return!!ft()&&(mt(e),!0)}function yX(e){let t,n,r=0;const o=()=>{
r-=1,n&&r<=0&&(n.stop(),t=void 0,n=void 0)}
;return(...i)=>(r+=1,t||(n=ht(!0),t=n.run((()=>e(...i)))),OX(o),t)}
function wX(e){return"function"==typeof e?e():Fn(e)}
const xX=typeof window<"u"&&typeof document<"u"
;typeof WorkerGlobalScope<"u"&&(globalThis,WorkerGlobalScope)
;const kX=Object.prototype.toString,SX=e=>"[object Object]"===kX.call(e),_X=()=>{},EX=TX()
;function TX(){var e,t
;return xX&&(null==(e=null==window?void 0:window.navigator)?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||(null==(t=null==window?void 0:window.navigator)?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(null==window?void 0:window.navigator.userAgent))
}function CX(e,t=1e4){return Vn(((n,r)=>{let o,i=wX(e);return OX((()=>{
clearTimeout(o)})),{get:()=>(n(),i),set(n){
i=n,r(),clearTimeout(o),o=setTimeout((()=>{i=wX(e),r()}),wX(t))}}}))}
function AX(e,t){ma()&&zr(e,t)}function PX(e,t,n={}){
const{immediate:r=!0}=n,o=Bn(!1);let i=null;function a(){
i&&(clearTimeout(i),i=null)}function s(){o.value=!1,a()}function l(...n){
a(),o.value=!0,i=setTimeout((()=>{o.value=!1,i=null,e(...n)}),wX(t))}
return r&&(o.value=!0,xX&&l()),OX(s),{isPending:kn(o),start:l,stop:s}}
function DX(e){var t;const n=wX(e);return null!=(t=null==n?void 0:n.$el)?t:n}
const $X=xX?window:void 0;function RX(...e){let t,n,r,o
;if("string"==typeof e[0]||Array.isArray(e[0])?([n,r,o]=e,
t=$X):[t,n,r,o]=e,!t)return _X
;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],a=()=>{
i.forEach((e=>e())),i.length=0},s=li((()=>[DX(t),wX(o)]),(([e,t])=>{
if(a(),!e)return;const o=SX(t)?{...t}:t
;i.push(...n.flatMap((t=>r.map((n=>((e,t,n,r)=>(e.addEventListener(t,n,r),
()=>e.removeEventListener(t,n,r)))(e,t,n,o))))))}),{immediate:!0,flush:"post"
}),l=()=>{s(),a()};return OX(l),l}function NX(...e){let t,n,r={}
;3===e.length?(t=e[0],
n=e[1],r=e[2]):2===e.length?"object"==typeof e[1]?(t=!0,n=e[0],
r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0])
;const{target:o=$X,eventName:i="keydown",passive:a=!1,dedupe:s=!1}=r,l=function(e){
return"function"==typeof e?e:"string"==typeof e?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0
}(t);return RX(o,i,(e=>{e.repeat&&wX(s)||l(e)&&n(e)}),a)}
function IX(e,t,n,r={}){var o,i,a
;const{clone:s=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:d,shouldEmit:p}=r,h=ma(),f=n||(null==h?void 0:h.emit)||(null==(o=null==h?void 0:h.$emit)?void 0:o.bind(h))||(null==(a=null==(i=null==h?void 0:h.proxy)?void 0:i.$emit)?void 0:a.bind(null==h?void 0:h.proxy))
;let m=c;t||(t="modelValue"),m=m||`update:${t.toString()}`
;const g=e=>s?"function"==typeof s?s(e):function(e){
return JSON.parse(JSON.stringify(e))
}(e):e,v=()=>(e=>typeof e<"u")(e[t])?g(e[t]):d,b=e=>{p?p(e)&&f(m,e):f(m,e)}
;if(l){const n=Bn(v());let r=!1;return li((()=>e[t]),(e=>{r||(r=!0,n.value=g(e),
dr((()=>r=!1)))})),li(n,(n=>{!r&&(n!==e[t]||u)&&b(n)}),{deep:u}),n}return Aa({
get:()=>v(),set(e){b(e)}})}function MX(e){
return e?e.flatMap((e=>e.type===Bi?MX(e.children):[e])):[]}
const LX=["INPUT","TEXTAREA"];function BX(e,t,n,r={}){
if(!t||r.enableIgnoredElement&&LX.includes(t.nodeName))return null
;const{arrowKeyOptions:o="both",attributeName:i="[data-radix-vue-collection-item]",itemsArray:a=[],loop:s=!0,dir:l="ltr",preventScroll:c=!0,focus:u=!1}=r,[d,p,h,f,m,g]=["ArrowRight"===e.key,"ArrowLeft"===e.key,"ArrowUp"===e.key,"ArrowDown"===e.key,"Home"===e.key,"End"===e.key],v=h||f,b=d||p
;if(!m&&!g&&(!v&&!b||"vertical"===o&&b||"horizontal"===o&&v))return null
;const O=n?Array.from(n.querySelectorAll(i)):a;if(!O.length)return null
;c&&e.preventDefault();let y=null;return b||v?y=QX(O,t,{
goForward:v?f:"ltr"===l?d:p,loop:s
}):m?y=O.at(0)||null:g&&(y=O.at(-1)||null),u&&(null==y||y.focus()),y}
function QX(e,t,n,r=e.length){if(0==--r)return null
;const o=e.indexOf(t),i=n.goForward?o+1:o-1
;if(!n.loop&&(i<0||i>=e.length))return null;const a=e[(i+e.length)%e.length]
;return a?a.hasAttribute("disabled")&&"false"!==a.getAttribute("disabled")?QX(e,a,n,r):a:null
}function jX(e){if(null===e||"object"!=typeof e)return!1
;const t=Object.getPrototypeOf(e)
;return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.iterator in e)&&(!(Symbol.toStringTag in e)||"[object Module]"===Object.prototype.toString.call(e))
}function UX(e,t,n=".",r){if(!jX(t))return UX(e,{},n)
;const o=Object.assign({},t);for(const i in e){
if("__proto__"===i||"constructor"===i)continue;const t=e[i]
;null!=t&&(Array.isArray(t)&&Array.isArray(o[i])?o[i]=[...t,...o[i]]:jX(t)&&jX(o[i])?o[i]=UX(t,o[i],(n?`${n}.`:"")+i.toString()):o[i]=t)
}return o}
const FX=(...e)=>e.reduce(((e,t)=>UX(e,t,"")),{}),[qX,zX]=vX("ConfigProvider")
;const HX=yX((()=>{const e=Bn(new Map),t=Bn(),n=Aa((()=>{
for(const t of e.value.values())if(t)return!0;return!1})),r=qX({
scrollBody:Bn(!0)});let o=null;return li(n,((e,n)=>{var i;if(!xX)return
;if(!e)return void(n&&(document.body.style.paddingRight="",
document.body.style.marginRight="",
document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),
document.body.style.overflow=t.value??"",EX&&(null==o||o()),t.value=void 0))
;void 0===t.value&&(t.value=document.body.style.overflow)
;const a=window.innerWidth-document.documentElement.clientWidth,s={padding:a,
margin:0
},l=null!=(i=r.scrollBody)&&i.value?"object"==typeof r.scrollBody.value?FX({
padding:!0===r.scrollBody.value.padding?a:r.scrollBody.value.padding,
margin:!0===r.scrollBody.value.margin?a:r.scrollBody.value.margin},s):s:{
padding:0,margin:0}
;a>0&&(document.body.style.paddingRight=`${l.padding}px`,document.body.style.marginRight=`${l.margin}px`,
document.body.style.setProperty("--scrollbar-width",`${a}px`),
document.body.style.overflow="hidden"),EX&&(o=RX(document,"touchmove",(e=>{var t
;e.target===document.documentElement&&(e.touches.length>1||null==(t=e.preventDefault)||t.call(e))
}),{passive:!1})),dr((()=>{
document.body.style.pointerEvents="none",document.body.style.overflow="hidden"
}))}),{immediate:!0,flush:"sync"}),e}));function ZX(e){const t=((e=21)=>{
let t="",n=e
;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0]
;return t})(6),n=HX();n.value.set(t,e??!1);const r=Aa({
get:()=>n.value.get(t)??!1,set:e=>n.value.set(t,e)});return AX((()=>{
n.value.delete(t)})),r}function VX(e){const t=qX({dir:Bn("ltr")})
;return Aa((()=>{var n
;return(null==e?void 0:e.value)||(null==(n=t.dir)?void 0:n.value)||"ltr"}))}
function WX(e){const t=ma(),n=null==t?void 0:t.type.emits,r={}
;return null!=n&&n.length||console.warn(`No emitted event found. Please check component: ${null==t?void 0:t.type.__name}`),
null==n||n.forEach((t=>{r[Ue(Le(t))]=(...n)=>e(t,...n)})),r}let XX=0
;function YX(){const e=document.createElement("span")
;return e.setAttribute("data-radix-focus-guard",""),
e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",
e}function GX(e){
const t=ma(),n=Object.keys((null==t?void 0:t.type.props)??{}).reduce(((e,n)=>{
const r=(null==t?void 0:t.type.props[n]).default;return void 0!==r&&(e[n]=r),e
}),{}),r=Gn(e);return Aa((()=>{const e={},o=(null==t?void 0:t.vnode.props)??{}
;return Object.keys(o).forEach((t=>{e[Le(t)]=o[t]})),Object.keys({...n,...e
}).reduce(((e,t)=>(void 0!==r.value[t]&&(e[t]=r.value[t]),e)),{})}))}
function KX(e,t){const n=GX(e),r=t?WX(t):{};return Aa((()=>({...n.value,...r})))
}function JX(){const e=ma(),t=Bn(),n=Aa((()=>{var e,n
;return["#text","#comment"].includes(null==(e=t.value)?void 0:e.$el.nodeName)?null==(n=t.value)?void 0:n.$el.nextElementSibling:DX(t)
})),r=Object.assign({},e.exposed),o={}
;for(const i in e.props)Object.defineProperty(o,i,{enumerable:!0,
configurable:!0,get:()=>e.props[i]})
;if(Object.keys(r).length>0)for(const i in r)Object.defineProperty(o,i,{
enumerable:!0,configurable:!0,get:()=>r[i]})
;return Object.defineProperty(o,"$el",{enumerable:!0,configurable:!0,
get:()=>e.vnode.el}),e.exposed=o,{forwardRef:function(n){
t.value=n,!(n instanceof Element)&&n&&(Object.defineProperty(o,"$el",{
enumerable:!0,configurable:!0,get:()=>n.$el}),e.exposed=o)},currentRef:t,
currentElement:n}}function eY(e,t){const n=CX(!1,300),r=Bn(null),o=function(){
const e=new Set,t=t=>{e.delete(t)};return{on:n=>{e.add(n);const r=()=>t(n)
;return OX(r),{off:r}},off:t,
trigger:(...t)=>Promise.all(Array.from(e).map((e=>e(...t))))}}();function i(){
r.value=null,n.value=!1}function a(e,t){const o=e.currentTarget,i={x:e.clientX,
y:e.clientY},a=function(e,t){
const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x)
;switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:
return"top";case r:return"bottom";default:throw new Error("unreachable")}
}(i,o.getBoundingClientRect()),s=function(e,t,n=5){const r=[];switch(t){
case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":
r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,
y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,
y:e.y+n})}return r}(i,a),l=function(e){const{top:t,right:n,bottom:r,left:o}=e
;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]
}(t.getBoundingClientRect()),c=function(e){const t=e.slice()
;return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),
function(e){if(e.length<=1)return e.slice();const t=[]
;for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){
const e=t[t.length-1],r=t[t.length-2]
;if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop()
;const n=[];for(let r=e.length-1;r>=0;r--){const t=e[r];for(;n.length>=2;){
const e=n[n.length-1],r=n[n.length-2]
;if(!((e.x-r.x)*(t.y-r.y)>=(e.y-r.y)*(t.x-r.x)))break;n.pop()}n.push(t)}
return n.pop(),
1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)
}([...s,...l]);r.value=c,n.value=!0}return ai((n=>{if(e.value&&t.value){
const r=e=>a(e,t.value),o=t=>a(t,e.value)
;e.value.addEventListener("pointerleave",r),
t.value.addEventListener("pointerleave",o),n((()=>{var n,i
;null==(n=e.value)||n.removeEventListener("pointerleave",r),
null==(i=t.value)||i.removeEventListener("pointerleave",o)}))}})),ai((n=>{
if(r.value){const a=n=>{var a,s;if(!r.value)return;const l=n.target,c={
x:n.clientX,y:n.clientY
},u=(null==(a=e.value)?void 0:a.contains(l))||(null==(s=t.value)?void 0:s.contains(l)),d=!function(e,t){
const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){
const e=t[i].x,s=t[i].y,l=t[a].x,c=t[a].y
;s>r!=c>r&&n<(l-e)*(r-s)/(c-s)+e&&(o=!o)}return o
}(c,r.value),p=l.hasAttribute("data-grace-area-trigger")
;u?i():(d||p)&&(i(),o.trigger())}
;document.addEventListener("pointermove",a),n((()=>document.removeEventListener("pointermove",a)))
}})),{isPointerInTransit:n,onPointerExit:o.on}}
var tY=new WeakMap,nY=new WeakMap,rY={},oY=0,iY=function(e){
return e&&(e.host||iY(e.parentNode))},aY=function(e,t,n,r){var o=function(e,t){
return t.map((function(t){if(e.contains(t))return t;var n=iY(t)
;return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),
null)})).filter((function(e){return!!e}))}(t,Array.isArray(e)?e:[e])
;rY[n]||(rY[n]=new WeakMap)
;var i=rY[n],a=[],s=new Set,l=new Set(o),c=function(e){
!e||s.has(e)||(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){
!e||l.has(e)||Array.prototype.forEach.call(e.children,(function(e){
if(s.has(e))u(e);else try{
var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(tY.get(e)||0)+1,c=(i.get(e)||0)+1
;tY.set(e,l),
i.set(e,c),a.push(e),1===l&&o&&nY.set(e,!0),1===c&&e.setAttribute(n,"true"),
o||e.setAttribute(r,"true")}catch(d){
console.error("aria-hidden: cannot operate on ",e,d)}}))};return u(t),s.clear(),
oY++,function(){a.forEach((function(e){var t=tY.get(e)-1,o=i.get(e)-1
;tY.set(e,t),
i.set(e,o),t||(nY.has(e)||e.removeAttribute(r),nY.delete(e)),o||e.removeAttribute(n)
})),--oY||(tY=new WeakMap,tY=new WeakMap,nY=new WeakMap,rY={})}
},sY=function(e,t,n){void 0===n&&(n="data-aria-hidden")
;var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){
return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)
;return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),
aY(r,o,n,"aria-hidden")):function(){return null}};let lY=0;function cY(e,t){
const n=Bn(e);return{state:n,dispatch:e=>{n.value=function(e){
return t[n.value][e]??n.value}(e)}}}function uY(e){const t=CX("",1e3);return{
search:t,handleTypeaheadSearch:(n,r)=>{var o,i;if(!(null!=e&&e.value||r))return
;t.value=t.value+n
;const a=(null==e?void 0:e.value)??r,s=document.activeElement,l=(null==(i=null==(o=a.find((e=>e===s)))?void 0:o.textContent)?void 0:i.trim())??"",c=function(e,t,n){
const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1
;let i=function(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}(e,Math.max(o,0))
;1===r.length&&(i=i.filter((e=>e!==n)))
;const a=i.find((e=>e.toLowerCase().startsWith(r.toLowerCase())))
;return a!==n?a:void 0}(a.map((e=>{var t
;return(null==(t=e.textContent)?void 0:t.trim())??""
})),t.value,l),u=a.find((e=>{var t
;return(null==(t=e.textContent)?void 0:t.trim())===c}));return u&&u.focus(),u},
resetTypeahead:()=>{t.value=""}}}const dY=eo({name:"PrimitiveSlot",
inheritAttrs:!1,setup:(e,{attrs:t,slots:n})=>()=>{var e,r
;if(!n.default)return null
;const o=MX(n.default()),i=o.findIndex((e=>e.type!==ji));if(-1===i)return o
;const a=o[i];null==(e=a.props)||delete e.ref;const s=a.props?ua(t,a.props):t
;t.class&&null!=(r=a.props)&&r.class&&delete a.props.class;const l=ra(a,s)
;for(const t in s)t.startsWith("on")&&(l.props||(l.props={}),l.props[t]=s[t])
;return 1===o.length?l:(o[i]=l,o)}}),pY=eo({name:"Primitive",inheritAttrs:!1,
props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}
},setup(e,{attrs:t,slots:n}){const r=e.asChild?"template":e.as
;return"string"==typeof r&&["area","img","input"].includes(r)?()=>Pa(r,t):"template"!==r?()=>Pa(e.as,t,{
default:n.default}):()=>Pa(dY,t,{default:n.default})}});function hY(){
const e=Bn(),t=Aa((()=>{var t,n
;return["#text","#comment"].includes(null==(t=e.value)?void 0:t.$el.nodeName)?null==(n=e.value)?void 0:n.$el.nextElementSibling:DX(e)
}));return{primitiveElement:e,currentElement:t}}function fY(e){
return e&&getComputedStyle(e).animationName||"none"}const mY=eo({
name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{
type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var r
;const{present:o,forceMount:i}=Wn(e),a=Bn(),{isPresent:s}=function(e,t){
const n=Bn({}),r=Bn("none"),o=e.value?"mounted":"unmounted",{state:i,dispatch:a}=cY(o,{
mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},
unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{
MOUNT:"mounted"}}),s=e=>{var n;if(xX){const r=new CustomEvent(e,{bubbles:!1,
cancelable:!1});null==(n=t.value)||n.dispatchEvent(r)}};li(e,(async(e,o)=>{var i
;const l=o!==e;if(await dr(),l){const l=r.value,c=fY(t.value)
;e?(a("MOUNT"),s("enter"),
"none"===c&&s("after-enter")):"none"===c||"none"===(null==(i=n.value)?void 0:i.display)?(a("UNMOUNT"),
s("leave"),
s("after-leave")):o&&l!==c?(a("ANIMATION_OUT"),s("leave")):(a("UNMOUNT"),
s("after-leave"))}}),{immediate:!0});const l=e=>{
const n=fY(t.value),r=n.includes(e.animationName),o="mounted"===i.value?"enter":"leave"
;e.target===t.value&&r&&(s(`after-${o}`),
a("ANIMATION_END")),e.target===t.value&&"none"===n&&a("ANIMATION_END")},c=e=>{
e.target===t.value&&(r.value=fY(t.value))},u=li(t,((e,t)=>{
e?(n.value=getComputedStyle(e),
e.addEventListener("animationstart",c),e.addEventListener("animationcancel",l),
e.addEventListener("animationend",l)):(a("ANIMATION_END"),
null==t||t.removeEventListener("animationstart",c),
null==t||t.removeEventListener("animationcancel",l),
null==t||t.removeEventListener("animationend",l))}),{immediate:!0
}),d=li(i,(()=>{const e=fY(t.value);r.value="mounted"===i.value?e:"none"}))
;return Hr((()=>{u(),d()})),{
isPresent:Aa((()=>["mounted","unmountSuspended"].includes(i.value)))}}(o,a);n({
present:s});let l=t.default({present:s});l=MX(l||[]);const c=ma()
;if(l&&(null==l?void 0:l.length)>1){
const e=null!=(r=null==c?void 0:c.parent)&&r.type.name?`<${c.parent.type.name} />`:"component"
;throw new Error([`Detected an invalid children for \`${e}\` for  \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map((e=>`  - ${e}`)).join("\n")].join("\n"))
}return()=>i.value||o.value||s.value?Pa(t.default({present:s})[0],{ref:e=>{
const t=DX(e)
;return typeof(null==t?void 0:t.hasAttribute)>"u"||(null!=t&&t.hasAttribute("data-radix-popper-content-wrapper")?a.value=t.firstElementChild:a.value=t),
t}}):null}}),gY=eo({__name:"Teleport",props:{to:{default:"body"},disabled:{
type:Boolean},forceMount:{type:Boolean}},setup(e){const t=function(){
const e=Bn(!1),t=ma();return t&&Ur((()=>{e.value=!0}),t),e}()
;return(e,n)=>Fn(t)||e.forceMount?(zi(),Xi(Mi,{key:0,to:e.to,disabled:e.disabled
},[no(e.$slots,"default")],8,["to","disabled"])):aa("",!0)}});function vY(e,t){
const n=t.closest("[data-dismissable-layer]"),r=""===e.dataset.dismissableLayer?e:e.querySelector("[data-dismissable-layer]"),o=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"))
;return!!(n&&r===n||o.indexOf(r)<o.indexOf(n))}const bY=wn({layersRoot:new Set,
layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),OY=eo({
__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,
default:!1},asChild:{type:Boolean},as:{}},
emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],
setup(e,{emit:t}){const n=e,r=t,{forwardRef:o,currentElement:i}=JX(),a=Aa((()=>{
var e;return(null==(e=i.value)?void 0:e.ownerDocument)??globalThis.document
})),s=Aa((()=>bY.layersRoot)),l=Aa((()=>i.value?Array.from(s.value).indexOf(i.value):-1)),c=Aa((()=>bY.layersWithOutsidePointerEventsDisabled.size>0)),u=Aa((()=>{
const e=Array.from(s.value),[t]=[...bY.layersWithOutsidePointerEventsDisabled].slice(-1),n=e.indexOf(t)
;return l.value>=n})),d=function(e,t){var n
;const r=(null==(n=null==t?void 0:t.value)?void 0:n.ownerDocument)??(null==globalThis?void 0:globalThis.document),o=Bn(!1),i=Bn((()=>{}))
;return ai((n=>{if(!xX)return;const a=async n=>{const a=n.target
;if(null!=t&&t.value){if(vY(t.value,a))return void(o.value=!1)
;if(n.target&&!o.value){let t=function(){
bX("dismissableLayer.pointerDownOutside",e,o)};const o={originalEvent:n}
;"touch"===n.pointerType?(r.removeEventListener("click",i.value),
i.value=t,r.addEventListener("click",i.value,{once:!0})):t()
}else r.removeEventListener("click",i.value);o.value=!1}
},s=window.setTimeout((()=>{r.addEventListener("pointerdown",a)}),0);n((()=>{
window.clearTimeout(s),
r.removeEventListener("pointerdown",a),r.removeEventListener("click",i.value)}))
})),{onPointerDownCapture:()=>o.value=!0}}((async e=>{
const t=[...bY.branches].some((t=>t.contains(e.target)))
;!u.value||t||(r("pointerDownOutside",e),
r("interactOutside",e),await dr(),e.defaultPrevented||r("dismiss"))
}),i),p=function(e,t){var n
;const r=(null==(n=null==t?void 0:t.value)?void 0:n.ownerDocument)??(null==globalThis?void 0:globalThis.document),o=Bn(!1)
;return ai((n=>{if(!xX)return;const i=async n=>{
null!=t&&t.value&&(await dr(),t.value&&!vY(t.value,n.target)&&n.target&&!o.value&&bX("dismissableLayer.focusOutside",e,{
originalEvent:n}))}
;r.addEventListener("focusin",i),n((()=>r.removeEventListener("focusin",i)))})),
{onFocusCapture:()=>o.value=!0,onBlurCapture:()=>o.value=!1}}((e=>{
[...bY.branches].some((t=>t.contains(e.target)))||(r("focusOutside",e),
r("interactOutside",e),e.defaultPrevented||r("dismiss"))}),i);let h
;return NX("Escape",(e=>{
l.value===s.value.size-1&&(r("escapeKeyDown",e),e.defaultPrevented||r("dismiss"))
})),ai((e=>{
i.value&&(n.disableOutsidePointerEvents&&(0===bY.layersWithOutsidePointerEventsDisabled.size&&(h=a.value.body.style.pointerEvents,
a.value.body.style.pointerEvents="none"),
bY.layersWithOutsidePointerEventsDisabled.add(i.value)),
s.value.add(i.value),e((()=>{
n.disableOutsidePointerEvents&&1===bY.layersWithOutsidePointerEventsDisabled.size&&(a.value.body.style.pointerEvents=h)
})))})),ai((e=>{e((()=>{
i.value&&(s.value.delete(i.value),bY.layersWithOutsidePointerEventsDisabled.delete(i.value))
}))})),(e,t)=>(zi(),Xi(Fn(pY),{ref:Fn(o),"as-child":e.asChild,as:e.as,
"data-dismissable-layer":"",style:Xe({
pointerEvents:c.value?u.value?"auto":"none":void 0}),
onFocusCapture:Fn(p).onFocusCapture,onBlurCapture:Fn(p).onBlurCapture,
onPointerdownCapture:Fn(d).onPointerDownCapture},{
default:Tr((()=>[no(e.$slots,"default")])),_:3
},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))
}}),yY="focusScope.autoFocusOnMount",wY="focusScope.autoFocusOnUnmount",xY={
bubbles:!1,cancelable:!0};function kY(e){
const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{
acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type
;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP
}});for(;n.nextNode();)t.push(n.currentNode);return t}function SY(e,t){
for(const n of e)if(!_Y(n,{upTo:t}))return n}function _Y(e,{upTo:t}){
if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){
if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0
;e=e.parentElement}return!1}function EY(e,{select:t=!1}={}){if(e&&e.focus){
const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){
return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}
const TY=function(e){let t,n=!1;const r=ht(!0)
;return(...o)=>(n||(t=r.run((()=>e(...o))),n=!0),t)}((()=>Bn([])))
;function CY(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}
const AY=eo({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{
type:Boolean,default:!1},asChild:{type:Boolean},as:{}},
emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){
const n=e,r=t,{currentRef:o,currentElement:i}=JX(),a=Bn(null),s=function(){
const e=TY();return{add(t){const n=e.value[0]
;t!==n&&(null==n||n.pause()),e.value=CY(e.value,t),e.value.unshift(t)},
remove(t){var n;e.value=CY(e.value,t),null==(n=e.value[0])||n.resume()}}
}(),l=wn({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}})
;function c(e){if(!n.loop&&!n.trapped||l.paused)return
;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement
;if(t&&r){const t=e.currentTarget,[o,i]=function(e){const t=kY(e)
;return[SY(t,e),SY(t.reverse(),e)]}(t)
;o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n.loop&&EY(i,{
select:!0})):(e.preventDefault(),n.loop&&EY(o,{select:!0
})):r===t&&e.preventDefault()}}return ai((e=>{if(!xX)return;const t=i.value
;if(!n.trapped)return;function r(e){if(l.paused||!t)return;const n=e.target
;t.contains(n)?a.value=n:EY(a.value,{select:!0})}function o(e){
if(l.paused||!t)return;const n=e.relatedTarget
;null!==n&&(t.contains(n)||EY(a.value,{select:!0}))}
document.addEventListener("focusin",r),document.addEventListener("focusout",o)
;const s=new MutationObserver((function(e){t.contains(a.value)||EY(t)}))
;t&&s.observe(t,{childList:!0,subtree:!0}),e((()=>{
document.removeEventListener("focusin",r),
document.removeEventListener("focusout",o),s.disconnect()}))})),ai((async e=>{
const t=i.value;if(await dr(),!t)return;s.add(l);const n=document.activeElement
;if(!t.contains(n)){const e=new CustomEvent(yY,xY)
;t.addEventListener(yY,(e=>r("mountAutoFocus",e))),
t.dispatchEvent(e),e.defaultPrevented||(function(e,{select:t=!1}={}){
const n=document.activeElement;for(const r of e)if(EY(r,{select:t
}),document.activeElement!==n)return!0}(function(e){
return e.filter((e=>"A"!==e.tagName))}(kY(t)),{select:!0
}),document.activeElement===n&&EY(t))}e((()=>{
t.removeEventListener(yY,(e=>r("mountAutoFocus",e)))
;const e=new CustomEvent(wY,xY),o=e=>{r("unmountAutoFocus",e)}
;t.addEventListener(wY,o),t.dispatchEvent(e),setTimeout((()=>{
e.defaultPrevented||EY(n??document.body,{select:!0
}),t.removeEventListener(wY,o),s.remove(l)}),0)}))})),(e,t)=>(zi(),Xi(Fn(pY),{
ref_key:"currentRef",ref:o,tabindex:"-1","as-child":e.asChild,as:e.as,
onKeydown:c},{default:Tr((()=>[no(e.$slots,"default")])),_:3
},8,["as-child","as"]))}
}),PY=["Enter"," "],DY=["ArrowUp","PageDown","End"],$Y=["ArrowDown","PageUp","Home",...DY]
;function RY(e){return e?"open":"closed"}function NY(e){
return"mouse"===e.pointerType}const[IY,MY]=vX("PopperRoot"),LY=eo({
__name:"PopperRoot",setup(e){const t=Bn();return MY({anchor:t,
onAnchorChange:e=>t.value=e}),(e,t)=>no(e.$slots,"default")}}),BY=eo({
__name:"PopperAnchor",props:{element:{},asChild:{type:Boolean},as:{}},setup(e){
const t=e,{forwardRef:n,currentElement:r}=JX(),o=IY();return ai((()=>{
o.onAnchorChange(t.element??r.value)})),(e,t)=>(zi(),Xi(Fn(pY),{ref:Fn(n),
as:e.as,"as-child":e.asChild},{default:Tr((()=>[no(e.$slots,"default")])),_:3
},8,["as","as-child"]))}});function QY(e){return null!==e}function jY(e){return{
name:"transformOrigin",options:e,fn(t){var n,r,o
;const{placement:i,rects:a,middlewareData:s}=t,l=0!==(null==(n=s.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[d,p]=UY(i),h={
start:"0%",center:"50%",end:"100%"
}[p],f=((null==(r=s.arrow)?void 0:r.x)??0)+c/2,m=((null==(o=s.arrow)?void 0:o.y)??0)+u/2
;let g="",v=""
;return"bottom"===d?(g=l?h:`${f}px`,v=-u+"px"):"top"===d?(g=l?h:`${f}px`,
v=`${a.floating.height+u}px`):"right"===d?(g=-u+"px",
v=l?h:`${m}px`):"left"===d&&(g=`${a.floating.width+u}px`,v=l?h:`${m}px`),{data:{
x:g,y:v}}}}}function UY(e){const[t,n="center"]=e.split("-");return[t,n]}
const FY={side:"bottom",sideOffset:0,align:"center",alignOffset:0,
arrowPadding:0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,
sticky:"partial",hideWhenDetached:!1,updatePositionStrategy:"optimized",
prioritizePosition:!1},[qY,zY]=vX("PopperContent"),HY=eo({inheritAttrs:!1,
__name:"PopperContent",props:fo({side:{},sideOffset:{},align:{},alignOffset:{},
avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},
arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},
updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{
type:Boolean},as:{}},{...FY}),emits:["placed"],setup(e,{emit:t}){
const n=e,r=t,o=IY(),{forwardRef:i,currentElement:a}=JX(),s=Bn(),l=Bn(),{width:c,height:u}=function(e){
const t=Bn(),n=Aa((()=>{var e;return(null==(e=t.value)?void 0:e.width)??0
})),r=Aa((()=>{var e;return(null==(e=t.value)?void 0:e.height)??0}))
;return Ur((()=>{const n=DX(e);if(n){t.value={width:n.offsetWidth,
height:n.offsetHeight};const e=new ResizeObserver((e=>{
if(!Array.isArray(e)||!e.length)return;const r=e[0];let o,i
;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e
;o=t.inlineSize,i=t.blockSize}else o=n.offsetWidth,i=n.offsetHeight;t.value={
width:o,height:i}}));return e.observe(n,{box:"border-box"}),()=>e.unobserve(n)}
t.value=void 0})),{width:n,height:r}
}(l),d=Aa((()=>n.side+("center"!==n.align?`-${n.align}`:""))),p=Aa((()=>"number"==typeof n.collisionPadding?n.collisionPadding:{
top:0,right:0,bottom:0,left:0,...n.collisionPadding
})),h=Aa((()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary])),f=Aa((()=>({
padding:p.value,boundary:h.value.filter(QY),altBoundary:h.value.length>0
}))),m=function(e,t){const n=Qn();return ai((()=>{n.value=e()}),{...t,
flush:"sync"}),kn(n)}((()=>{return[iX({mainAxis:n.sideOffset+u.value,
alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&sX({
...f.value}),n.avoidCollisions&&aX({mainAxis:!0,
crossAxis:!!n.prioritizePosition,limiter:"partial"===n.sticky?dX():void 0,
...f.value}),!n.prioritizePosition&&n.avoidCollisions&&sX({...f.value}),lX({
...f.value,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{
const{width:o,height:i}=t.reference,a=e.floating.style
;a.setProperty("--radix-popper-available-width",`${n}px`),
a.setProperty("--radix-popper-available-height",`${r}px`),
a.setProperty("--radix-popper-anchor-width",`${o}px`),
a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),l.value&&(e={
element:l.value,padding:n.arrowPadding},{name:"arrow",options:e,fn(t){
const n=hX(fX(e.element));return null==n?{}:uX({element:n,padding:e.padding
}).fn(t)}}),jY({arrowWidth:c.value,arrowHeight:u.value
}),n.hideWhenDetached&&cX({strategy:"referenceHidden",...f.value})];var e
})),{floatingStyles:g,placement:v,isPositioned:b,middlewareData:O}=function(e,t,n){
void 0===n&&(n={});const r=n.whileElementsMounted,o=Aa((()=>{var e
;return null==(e=fX(n.open))||e})),i=Aa((()=>fX(n.middleware))),a=Aa((()=>{var e
;return null!=(e=fX(n.placement))?e:"bottom"})),s=Aa((()=>{var e
;return null!=(e=fX(n.strategy))?e:"absolute"})),l=Aa((()=>{var e
;return null==(e=fX(n.transform))||e
})),c=Aa((()=>hX(e.value))),u=Aa((()=>hX(t.value))),d=Bn(0),p=Bn(0),h=Bn(s.value),f=Bn(a.value),m=Qn({}),g=Bn(!1),v=Aa((()=>{
const e={position:h.value,left:"0",top:"0"};if(!u.value)return e
;const t=gX(u.value,d.value),n=gX(u.value,p.value);return l.value?{...e,
transform:"translate("+t+"px, "+n+"px)",...mX(u.value)>=1.5&&{
willChange:"transform"}}:{position:h.value,left:t+"px",top:n+"px"}}));let b
;function O(){null!=c.value&&null!=u.value&&pX(c.value,u.value,{
middleware:i.value,placement:a.value,strategy:s.value}).then((e=>{
d.value=e.x,p.value=e.y,
h.value=e.strategy,f.value=e.placement,m.value=e.middlewareData,g.value=!0}))}
function y(){"function"==typeof b&&(b(),b=void 0)}return li([i,a,s],O,{
flush:"sync"}),li([c,u],(function(){
y(),void 0!==r?null==c.value||null==u.value||(b=r(c.value,u.value,O)):O()}),{
flush:"sync"}),li(o,(function(){o.value||(g.value=!1)}),{flush:"sync"
}),ft()&&mt(y),{x:Sn(d),y:Sn(p),strategy:Sn(h),placement:Sn(f),
middlewareData:Sn(m),isPositioned:Sn(g),floatingStyles:v,update:O}}(o.anchor,s,{
strategy:"fixed",placement:d,whileElementsMounted:(...e)=>oX(...e,{
animationFrame:"always"===n.updatePositionStrategy}),middleware:m
}),y=Aa((()=>UY(v.value)[0])),w=Aa((()=>UY(v.value)[1]));ai((()=>{
b.value&&r("placed")}));const x=Aa((()=>{var e
;return 0!==(null==(e=O.value.arrow)?void 0:e.centerOffset)})),k=Bn("")
;ai((()=>{a.value&&(k.value=window.getComputedStyle(a.value).zIndex)}))
;const S=Aa((()=>{var e;return(null==(e=O.value.arrow)?void 0:e.x)??0
})),_=Aa((()=>{var e;return(null==(e=O.value.arrow)?void 0:e.y)??0}))
;return zY({placedSide:y,onArrowChange:e=>l.value=e,arrowX:S,arrowY:_,
shouldHideArrow:x}),(e,t)=>{var r,o,a;return zi(),Wi("div",{
ref_key:"floatingRef",ref:s,"data-radix-popper-content-wrapper":"",style:Xe({
...Fn(g),transform:Fn(b)?Fn(g).transform:"translate(0, -200%)",
minWidth:"max-content",zIndex:k.value,
"--radix-popper-transform-origin":[null==(r=Fn(O).transformOrigin)?void 0:r.x,null==(o=Fn(O).transformOrigin)?void 0:o.y].join(" "),
...(null==(a=Fn(O).hide)?void 0:a.referenceHidden)&&{visibility:"hidden",
pointerEvents:"none"}})},[ta(Fn(pY),ua({ref:Fn(i)},e.$attrs,{
"as-child":n.asChild,as:e.as,"data-side":y.value,"data-align":w.value,style:{
animation:Fn(b)?void 0:"none"}}),{default:Tr((()=>[no(e.$slots,"default")])),_:3
},16,["as-child","as","data-side","data-align","style"])],4)}}}),ZY=eo({
__name:"VisuallyHidden",props:{asChild:{type:Boolean},as:{default:"span"}},
setup:e=>(JX(),(e,t)=>(zi(),Xi(Fn(pY),{as:e.as,"as-child":e.asChild,style:{
position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",
padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",
whiteSpace:"nowrap",wordWrap:"normal"}},{
default:Tr((()=>[no(e.$slots,"default")])),_:3},8,["as","as-child"])))
}),[VY,WY]=vX("CollectionProvider")
;function XY(e="data-radix-vue-collection-item"){
const t=Bn(new Map),n=Bn(),r=WY({collectionRef:n,itemMap:t,attrName:e
}),{getItems:o}=function(e){const t=e??VY();return{getItems:()=>{
const e=t.collectionRef.value;if(!e)return[]
;const n=Array.from(e.querySelectorAll(`[${t.attrName}]`))
;return Array.from(t.itemMap.value.values()).sort(((e,t)=>n.indexOf(e.ref)-n.indexOf(t.ref)))
}}}(r);return{getItems:o,
reactiveItems:Aa((()=>Array.from(r.itemMap.value.values()))),
itemMapSize:Aa((()=>r.itemMap.value.size))}}const YY=eo({name:"CollectionSlot",
setup(e,{slots:t}){const n=VY(),{primitiveElement:r,currentElement:o}=hY()
;return li(o,(()=>{n.collectionRef.value=o.value})),()=>Pa(dY,{ref:r},t)}
}),GY=eo({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}
},setup(e,{slots:t,attrs:n}){
const r=VY(),{primitiveElement:o,currentElement:i}=hY();return ai((t=>{
if(i.value){const n=Dn(i.value);r.itemMap.value.set(n,{ref:i.value,value:e.value
}),t((()=>r.itemMap.value.delete(n)))}})),()=>Pa(dY,{...n,[r.attrName]:"",ref:o
},t)}});const KY=eo({__name:"MenuAnchor",props:{element:{},asChild:{type:Boolean
},as:{}},setup(e){const t=e;return(e,n)=>(zi(),Xi(Fn(BY),tt(na(t)),{
default:Tr((()=>[no(e.$slots,"default")])),_:3},16))}});const JY=yX((function(){
const e=Bn(!1);return Ur((()=>{RX("keydown",(()=>{e.value=!0}),{capture:!0,
passive:!0}),RX(["pointerdown","pointermove"],(()=>{e.value=!1}),{capture:!0,
passive:!0})})),e
})),[eG,tG]=vX(["MenuRoot","MenuSub"],"MenuContext"),[nG,rG]=vX("MenuRoot"),oG=eo({
__name:"MenuRoot",props:{open:{type:Boolean,default:!1},dir:{},modal:{
type:Boolean,default:!0}},emits:["update:open"],setup(e,{emit:t}){
const n=e,r=t,{modal:o,dir:i}=Wn(n),a=VX(i),s=IX(n,"open",r),l=Bn(),c=JY()
;return tG({open:s,onOpenChange:e=>{s.value=e},content:l,onContentChange:e=>{
l.value=e}}),rG({onClose:()=>{s.value=!1},isUsingKeyboardRef:c,dir:a,modal:o
}),(e,t)=>(zi(),Xi(Fn(LY),null,{default:Tr((()=>[no(e.$slots,"default")])),_:3
}))}}),iG={bubbles:!1,cancelable:!0};const[aG,sG]=vX("RovingFocusGroup"),lG=eo({
__name:"RovingFocusGroup",props:{orientation:{default:void 0},dir:{},loop:{
type:Boolean,default:!1},currentTabStopId:{},defaultCurrentTabStopId:{},
preventScrollOnEntryFocus:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}
},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:n}){
const r=e,o=n,{loop:i,orientation:a,dir:s}=Wn(r),l=VX(s),c=IX(r,"currentTabStopId",o,{
defaultValue:r.defaultCurrentTabStopId,passive:void 0===r.currentTabStopId
}),u=Bn(!1),d=Bn(!1),p=Bn(0),{getItems:h}=XY();function f(e){const t=!d.value
;if(e.currentTarget&&e.target===e.currentTarget&&t&&!u.value){
const t=new CustomEvent("rovingFocusGroup.onEntryFocus",iG)
;if(e.currentTarget.dispatchEvent(t),o("entryFocus",t),!t.defaultPrevented){
const e=h().map((e=>e.ref)).filter((e=>""!==e.dataset.disabled))
;!function(e,t=!1){const n=document.activeElement
;for(const r of e)if(r===n||(r.focus({preventScroll:t
}),document.activeElement!==n))return
}([e.find((e=>"true"===e.getAttribute("data-active"))),e.find((e=>e.id===c.value)),...e].filter(Boolean),r.preventScrollOnEntryFocus)
}}d.value=!1}return t({getItems:h}),sG({loop:i,dir:l,orientation:a,
currentTabStopId:c,onItemFocus:e=>{c.value=e},onItemShiftTab:()=>{u.value=!0},
onFocusableItemAdd:()=>{p.value++},onFocusableItemRemove:()=>{p.value--}
}),(e,t)=>(zi(),Xi(Fn(YY),null,{default:Tr((()=>[ta(Fn(pY),{
tabindex:u.value||0===p.value?-1:0,"data-orientation":Fn(a),as:e.as,
"as-child":e.asChild,dir:Fn(l),style:{outline:"none"},
onMousedown:t[0]||(t[0]=e=>d.value=!0),onFocus:f,
onBlur:t[1]||(t[1]=e=>u.value=!1)},{default:Tr((()=>[no(e.$slots,"default")])),
_:3},8,["tabindex","data-orientation","as","as-child","dir"])])),_:3}))}
}),[cG,uG]=vX("MenuContent"),dG=eo({__name:"MenuContentImpl",props:fo({loop:{
type:Boolean},disableOutsidePointerEvents:{type:Boolean},disableOutsideScroll:{
type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{},align:{},
alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},
collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},
updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{
type:Boolean},as:{}},{...FY}),
emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],
setup(e,{emit:t}){
const n=e,r=t,o=eG(),i=nG(),{trapFocus:a,disableOutsidePointerEvents:s,loop:l}=Wn(n)
;ai((e=>{if(!xX)return
;const t=document.querySelectorAll("[data-radix-focus-guard]")
;document.body.insertAdjacentElement("afterbegin",t[0]??YX()),
document.body.insertAdjacentElement("beforeend",t[1]??YX()),XX++,e((()=>{
1===XX&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),
XX--}))})),ZX(s.value)
;const c=Bn(""),u=Bn(0),d=Bn(0),p=Bn(null),h=Bn("right"),f=Bn(0),m=Bn(null),{createCollection:g}=function(e,t="data-radix-vue-collection-item"){
const n=Symbol();return{createCollection:e=>{const r=Bn([]);function o(){
const n=DX(e)
;return r.value=n?Array.from(n.querySelectorAll(`[${t}]:not([data-disabled])`)):[]
}return Fr((()=>{r.value=[]})),Ur(o),qr(o),li((()=>null==e?void 0:e.value),o,{
immediate:!0}),Do(n,r),r},injectCollection:()=>$o(n,Bn([]))}
}(),{forwardRef:v,currentElement:b}=JX(),O=g(b);li(b,(e=>{o.onContentChange(e)
}));const{handleTypeaheadSearch:y}=uY(O);function w(e){var t,n
;return h.value===(null==(t=p.value)?void 0:t.side)&&function(e,t){
return!!t&&function(e,t){const{x:n,y:r}=e;let o=!1
;for(let i=0,a=t.length-1;i<t.length;a=i++){
const e=t[i].x,s=t[i].y,l=t[a].x,c=t[a].y
;s>r!=c>r&&n<(l-e)*(r-s)/(c-s)+e&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)
}(e,null==(n=p.value)?void 0:n.area)}async function x(e){var t
;r("openAutoFocus",e),
!e.defaultPrevented&&(e.preventDefault(),null==(t=b.value)||t.focus({
preventScroll:!0}))}function k(e){if(e.defaultPrevented)return
;const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length,o=BX(e,document.activeElement,b.value,{
loop:l.value,arrowKeyOptions:"vertical",dir:null==i?void 0:i.dir.value,focus:!0,
attributeName:"[data-radix-vue-collection-item]:not([data-disabled])"})
;if(o)return null==o?void 0:o.focus()
;if("Space"===e.code||(t&&("Tab"===e.key&&e.preventDefault(),
!n&&r&&y(e.key)),e.target!==b.value)||!$Y.includes(e.key))return
;e.preventDefault();const a=O.value;DY.includes(e.key)&&a.reverse(),function(e){
const t=document.activeElement
;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}
function S(e){var t,n
;null!=(n=null==(t=null==e?void 0:e.currentTarget)?void 0:t.contains)&&n.call(t,e.target)||(window.clearTimeout(u.value),
c.value="")}function _(e){var t;if(!NY(e))return
;const n=e.target,r=f.value!==e.clientX
;if(null!=(t=null==e?void 0:e.currentTarget)&&t.contains(n)&&r){
const t=e.clientX>f.value?"right":"left";h.value=t,f.value=e.clientX}}
return Hr((()=>{window.clearTimeout(u.value)})),uG({onItemEnter:e=>!!w(e),
onItemLeave:e=>{var t;w(e)||(null==(t=b.value)||t.focus(),m.value=null)},
onTriggerLeave:e=>!!w(e),searchRef:c,pointerGraceTimerRef:d,
onPointerGraceIntentChange:e=>{p.value=e}}),(e,t)=>(zi(),Xi(Fn(AY),{
"as-child":"",trapped:Fn(a),onMountAutoFocus:x,
onUnmountAutoFocus:t[7]||(t[7]=e=>r("closeAutoFocus",e))},{
default:Tr((()=>[ta(Fn(OY),{"as-child":"",
"disable-outside-pointer-events":Fn(s),
onEscapeKeyDown:t[2]||(t[2]=e=>r("escapeKeyDown",e)),
onPointerDownOutside:t[3]||(t[3]=e=>r("pointerDownOutside",e)),
onFocusOutside:t[4]||(t[4]=e=>r("focusOutside",e)),
onInteractOutside:t[5]||(t[5]=e=>r("interactOutside",e)),
onDismiss:t[6]||(t[6]=e=>r("dismiss"))},{default:Tr((()=>[ta(Fn(lG),{
"current-tab-stop-id":m.value,
"onUpdate:currentTabStopId":t[0]||(t[0]=e=>m.value=e),"as-child":"",
orientation:"vertical",dir:Fn(i).dir.value,loop:Fn(l),
onEntryFocus:t[1]||(t[1]=e=>{
r("entryFocus",e),Fn(i).isUsingKeyboardRef.value||e.preventDefault()})},{
default:Tr((()=>[ta(Fn(HY),{ref:Fn(v),role:"menu",as:e.as,"as-child":e.asChild,
"aria-orientation":"vertical","data-radix-menu-content":"",
"data-state":Fn(RY)(Fn(o).open.value),dir:Fn(i).dir.value,side:e.side,
"side-offset":e.sideOffset,align:e.align,"align-offset":e.alignOffset,
"avoid-collisions":e.avoidCollisions,"collision-boundary":e.collisionBoundary,
"collision-padding":e.collisionPadding,"arrow-padding":e.arrowPadding,
"prioritize-position":e.prioritizePosition,sticky:e.sticky,
"hide-when-detached":e.hideWhenDetached,onKeydown:k,onBlur:S,onPointermove:_},{
default:Tr((()=>[no(e.$slots,"default")])),_:3
},8,["as","as-child","data-state","dir","side","side-offset","align","align-offset","avoid-collisions","collision-boundary","collision-padding","arrow-padding","prioritize-position","sticky","hide-when-detached"])])),
_:3},8,["current-tab-stop-id","dir","loop"])])),_:3
},8,["disable-outside-pointer-events"])])),_:3},8,["trapped"]))}}),pG=eo({
inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean},
textValue:{},asChild:{type:Boolean},as:{}},setup(e){
const t=e,n=cG(),{forwardRef:r}=JX(),o=Bn(!1);async function i(e){
if(!e.defaultPrevented&&NY(e))if(t.disabled)n.onItemLeave(e);else if(!n.onItemEnter(e)){
const t=e.currentTarget;null==t||t.focus({preventScroll:!0})}}
async function a(e){await dr(),!e.defaultPrevented&&NY(e)&&n.onItemLeave(e)}
return(e,t)=>(zi(),Xi(Fn(GY),null,{default:Tr((()=>[ta(Fn(pY),ua({ref:Fn(r),
role:"menuitem",tabindex:"-1"},e.$attrs,{as:e.as,"as-child":e.asChild,
"data-radix-vue-collection-item":"","aria-disabled":e.disabled||void 0,
"data-disabled":e.disabled?"":void 0,"data-highlighted":o.value?"":void 0,
onPointermove:i,onPointerleave:a,onFocus:t[0]||(t[0]=async t=>{
await dr(),!t.defaultPrevented&&!e.disabled&&(o.value=!0)}),
onBlur:t[1]||(t[1]=async e=>{await dr(),!e.defaultPrevented&&(o.value=!1)})}),{
default:Tr((()=>[no(e.$slots,"default")])),_:3
},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])])),
_:3}))}}),hG=eo({__name:"MenuItem",props:{disabled:{type:Boolean},textValue:{},
asChild:{type:Boolean},as:{}},emits:["select"],setup(e,{emit:t}){
const n=e,r=t,{forwardRef:o,currentElement:i}=JX(),a=nG(),s=cG(),l=Bn(!1)
;async function c(){const e=i.value;if(!n.disabled&&e){
const e=new CustomEvent("menu.itemSelect",{bubbles:!0,cancelable:!0})
;r("select",e),await dr(),e.defaultPrevented?l.value=!1:a.onClose()}}
return(e,t)=>(zi(),Xi(pG,ua(n,{ref:Fn(o),onClick:c,
onPointerdown:t[0]||(t[0]=()=>{l.value=!0}),onPointerup:t[1]||(t[1]=async e=>{
var t
;await dr(),!e.defaultPrevented&&(l.value||null==(t=e.currentTarget)||t.click())
}),onKeydown:t[2]||(t[2]=async t=>{const n=""!==Fn(s).searchRef.value
;e.disabled||n&&" "===t.key||Fn(PY).includes(t.key)&&(t.currentTarget.click(),
t.preventDefault())})}),{default:Tr((()=>[no(e.$slots,"default")])),_:3},16))}
}),fG=eo({__name:"MenuRootContentModal",props:{loop:{type:Boolean},side:{},
sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},
collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},
hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{
type:Boolean},asChild:{type:Boolean},as:{}},
emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],
setup(e,{emit:t}){
const n=t,r=KX(e,n),o=eG(),{forwardRef:i,currentElement:a}=JX()
;return function(e){let t;li((()=>DX(e)),(e=>{e?t=sY(e):t&&t()})),Hr((()=>{
t&&t()}))}(a),(e,t)=>(zi(),Xi(dG,ua(Fn(r),{ref:Fn(i),
"trap-focus":Fn(o).open.value,"disable-outside-pointer-events":Fn(o).open.value,
"disable-outside-scroll":!0,onDismiss:t[0]||(t[0]=e=>Fn(o).onOpenChange(!1)),
onFocusOutside:t[1]||(t[1]=$s((e=>n("focusOutside",e)),["prevent"]))}),{
default:Tr((()=>[no(e.$slots,"default")])),_:3
},16,["trap-focus","disable-outside-pointer-events"]))}}),mG=eo({
__name:"MenuRootContentNonModal",props:{loop:{type:Boolean},side:{},
sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},
collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},
hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{
type:Boolean},asChild:{type:Boolean},as:{}},
emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],
setup(e,{emit:t}){const n=KX(e,t),r=eG();return(e,t)=>(zi(),Xi(dG,ua(Fn(n),{
"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,
onDismiss:t[0]||(t[0]=e=>Fn(r).onOpenChange(!1))}),{
default:Tr((()=>[no(e.$slots,"default")])),_:3},16))}}),gG=eo({
__name:"MenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean},
side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},
collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},
hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{
type:Boolean},asChild:{type:Boolean},as:{}},
emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],
setup(e,{emit:t}){const n=KX(e,t),r=eG(),o=nG();return(e,t)=>(zi(),Xi(Fn(mY),{
present:e.forceMount||Fn(r).open.value},{
default:Tr((()=>[Fn(o).modal.value?(zi(),Xi(fG,tt(ua({key:0},{...e.$attrs,
...Fn(n)})),{default:Tr((()=>[no(e.$slots,"default")])),_:3
},16)):(zi(),Xi(mG,tt(ua({key:1},{...e.$attrs,...Fn(n)})),{
default:Tr((()=>[no(e.$slots,"default")])),_:3},16))])),_:3},8,["present"]))}
}),vG=eo({__name:"MenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{
type:Boolean}},setup(e){const t=e;return(e,n)=>(zi(),Xi(Fn(gY),tt(na(t)),{
default:Tr((()=>[no(e.$slots,"default")])),_:3},16))}
}),[bG,OG]=vX("ContextMenuRoot"),yG=eo({inheritAttrs:!1,
__name:"ContextMenuRoot",props:{dir:{},modal:{type:Boolean,default:!0}},
emits:["update:open"],setup(e,{emit:t}){const n=e,r=t,{dir:o,modal:i}=Wn(n);JX()
;const a=VX(o),s=Bn(!1);return OG({open:s,onOpenChange:e=>{s.value=e},dir:a,
modal:i}),li(s,(e=>{r("update:open",e)})),(e,t)=>(zi(),Xi(Fn(oG),{open:s.value,
"onUpdate:open":t[0]||(t[0]=e=>s.value=e),dir:Fn(a),modal:Fn(i)},{
default:Tr((()=>[no(e.$slots,"default")])),_:3},8,["open","dir","modal"]))}})
;function wG(e){return"mouse"!==e.pointerType}const xG=eo({inheritAttrs:!1,
__name:"ContextMenuTrigger",props:{disabled:{type:Boolean,default:!1},asChild:{
type:Boolean},as:{default:"span"}},setup(e){
const t=e,{disabled:n}=Wn(t),{forwardRef:r}=JX(),o=bG(),i=Bn({x:0,y:0
}),a=Aa((()=>({getBoundingClientRect:()=>({width:0,height:0,left:i.value.x,
right:i.value.x,top:i.value.y,bottom:i.value.y,...i.value})}))),s=Bn(0)
;function l(){window.clearTimeout(s.value)}function c(e){i.value={x:e.clientX,
y:e.clientY},o.onOpenChange(!0)}async function u(e){
n.value||(await dr(),e.defaultPrevented||(l(),c(e),e.preventDefault()))}
async function d(e){
n.value||(await dr(),wG(e)&&!e.defaultPrevented&&(l(),s.value=window.setTimeout((()=>c(e)),700)))
}async function p(e){n.value||(await dr(),wG(e)&&!e.defaultPrevented&&l())}
return(e,t)=>(zi(),Wi(Bi,null,[ta(Fn(KY),{as:"template",element:a.value
},null,8,["element"]),ta(Fn(pY),ua({ref:Fn(r),as:e.as,"as-child":e.asChild,
"data-state":Fn(o).open.value?"open":"closed","data-disabled":Fn(n)?"":void 0,
style:{WebkitTouchCallout:"none"}},e.$attrs,{onContextmenu:u,onPointerdown:d,
onPointermove:p,onPointercancel:p,onPointerup:p}),{
default:Tr((()=>[no(e.$slots,"default")])),_:3
},16,["as","as-child","data-state","data-disabled"])],64))}}),kG=eo({
__name:"ContextMenuPortal",props:{to:{},disabled:{type:Boolean},forceMount:{
type:Boolean}},setup(e){const t=e;return(e,n)=>(zi(),Xi(Fn(vG),tt(na(t)),{
default:Tr((()=>[no(e.$slots,"default")])),_:3},16))}}),SG=eo({
__name:"ContextMenuContent",props:{forceMount:{type:Boolean},loop:{type:Boolean
},alignOffset:{default:0},avoidCollisions:{type:Boolean,default:!0},
collisionBoundary:{default:()=>[]},collisionPadding:{default:0},sticky:{
default:"partial"},hideWhenDetached:{type:Boolean,default:!1},
prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{}},
emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],
setup(e,{emit:t}){const n=KX(e,t);JX();const r=bG(),o=Bn(!1);return(e,t)=>(zi(),
Xi(Fn(gG),ua(Fn(n),{side:"right","side-offset":2,align:"start",style:{
"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)",
"--radix-context-menu-content-available-width":"var(--radix-popper-available-width)",
"--radix-context-menu-content-available-height":"var(--radix-popper-available-height)",
"--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)",
"--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"},
onCloseAutoFocus:t[0]||(t[0]=e=>{
!e.defaultPrevented&&o.value&&e.preventDefault(),o.value=!1}),
onInteractOutside:t[1]||(t[1]=e=>{
!e.defaultPrevented&&!Fn(r).modal.value&&(o.value=!0)})}),{
default:Tr((()=>[no(e.$slots,"default")])),_:3},16))}}),_G=eo({
__name:"ContextMenuItem",props:{disabled:{type:Boolean},textValue:{},asChild:{
type:Boolean},as:{}},emits:["select"],setup(e,{emit:t}){const n=e,r=WX(t)
;return JX(),(e,t)=>(zi(),Xi(Fn(hG),tt(na({...n,...Fn(r)})),{
default:Tr((()=>[no(e.$slots,"default")])),_:3},16))}});!function(){
if("function"==typeof matchMedia)matchMedia("(pointer:coarse)").matches}()
;const EG="tooltip.open",[TG,CG]=vX("TooltipProvider"),AG=eo({
__name:"TooltipProvider",props:{delayDuration:{default:700},skipDelayDuration:{
default:300},disableHoverableContent:{type:Boolean,default:!1},
disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},
ignoreNonKeyboardFocus:{type:Boolean,default:!1}},setup(e){
const t=e,{delayDuration:n,skipDelayDuration:r,disableHoverableContent:o,disableClosingTrigger:i,ignoreNonKeyboardFocus:a,disabled:s}=Wn(t)
;JX();const l=Bn(!0),c=Bn(!1),{start:u,stop:d}=PX((()=>{l.value=!0}),r,{
immediate:!1});return CG({isOpenDelayed:l,delayDuration:n,onOpen(){
d(),l.value=!1},onClose(){u()},isPointerInTransitRef:c,
disableHoverableContent:o,disableClosingTrigger:i,disabled:s,
ignoreNonKeyboardFocus:a}),(e,t)=>no(e.$slots,"default")}
}),[PG,DG]=vX("TooltipRoot"),$G=eo({__name:"TooltipRoot",props:{defaultOpen:{
type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{
default:void 0},disableHoverableContent:{type:Boolean,default:void 0},
disableClosingTrigger:{type:Boolean,default:void 0},disabled:{type:Boolean,
default:void 0},ignoreNonKeyboardFocus:{type:Boolean,default:void 0}},
emits:["update:open"],setup(e,{emit:t}){const n=e,r=t;JX()
;const o=TG(),i=Aa((()=>n.disableHoverableContent??o.disableHoverableContent.value)),a=Aa((()=>n.disableClosingTrigger??o.disableClosingTrigger.value)),s=Aa((()=>n.disabled??o.disabled.value)),l=Aa((()=>n.delayDuration??o.delayDuration.value)),c=Aa((()=>n.ignoreNonKeyboardFocus??o.ignoreNonKeyboardFocus.value)),u=IX(n,"open",r,{
defaultValue:n.defaultOpen,passive:void 0===n.open});li(u,(e=>{
o.onClose&&(e?(o.onOpen(),
document.dispatchEvent(new CustomEvent(EG))):o.onClose())}))
;const d=Bn(!1),p=Bn(),h=Aa((()=>u.value?d.value?"delayed-open":"instant-open":"closed")),{start:f,stop:m}=PX((()=>{
d.value=!0,u.value=!0}),l,{immediate:!1});function g(){m(),d.value=!1,u.value=!0
}function v(){m(),u.value=!1}return DG({contentId:"",open:u,stateAttribute:h,
trigger:p,onTriggerChange(e){p.value=e},onTriggerEnter(){
o.isOpenDelayed.value?f():g()},onTriggerLeave(){i.value?v():m()},onOpen:g,
onClose:v,disableHoverableContent:i,disableClosingTrigger:a,disabled:s,
ignoreNonKeyboardFocus:c}),(e,t)=>(zi(),Xi(Fn(LY),null,{
default:Tr((()=>[no(e.$slots,"default",{open:Fn(u)})])),_:3}))}}),RG=eo({
__name:"TooltipTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},
setup(e){const t=e,n=PG(),r=TG()
;n.contentId||(n.contentId=function(e,t="radix"){const{useId:n}=qX({useId:void 0
});return n&&"function"==typeof n?`${t}-${n()}`:`${t}-${++lY}`
}(0,"radix-vue-tooltip-content"))
;const{forwardRef:o,currentElement:i}=JX(),a=Bn(!1),s=Bn(!1),l=Aa((()=>n.disabled.value?{}:{
click:m,focus:h,pointermove:d,pointerleave:p,pointerdown:u,blur:f}))
;function c(){a.value=!1}function u(){
a.value=!0,document.addEventListener("pointerup",c,{once:!0})}function d(e){
"touch"!==e.pointerType&&!s.value&&!r.isPointerInTransitRef.value&&(n.onTriggerEnter(),
s.value=!0)}function p(){n.onTriggerLeave(),s.value=!1}function h(e){var t,r
;a.value||n.ignoreNonKeyboardFocus.value&&(null==(r=(t=e.target).matches)||!r.call(t,":focus-visible"))||n.onOpen()
}function f(){n.onClose()}function m(){
n.disableClosingTrigger.value||n.onClose()}return Ur((()=>{
n.onTriggerChange(i.value)})),(e,r)=>(zi(),Xi(Fn(BY),{"as-child":""},{
default:Tr((()=>[ta(Fn(pY),ua({ref:Fn(o),
"aria-describedby":Fn(n).open.value?Fn(n).contentId:void 0,
"data-state":Fn(n).stateAttribute.value,as:e.as,"as-child":t.asChild,
"data-grace-area-trigger":""},oo(l.value)),{
default:Tr((()=>[no(e.$slots,"default")])),_:3
},16,["aria-describedby","data-state","as","as-child"])])),_:3}))}}),NG=eo({
__name:"TooltipContentImpl",props:{ariaLabel:{},asChild:{type:Boolean},as:{},
side:{default:"top"},sideOffset:{default:0},align:{default:"center"},
alignOffset:{},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{
default:()=>[]},collisionPadding:{default:0},arrowPadding:{default:0},sticky:{
default:"partial"},hideWhenDetached:{type:Boolean,default:!1}},
emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){
const n=e,r=t,o=PG(),{forwardRef:i}=JX(),a=co(),s=Aa((()=>{var e
;return null==(e=a.default)?void 0:e.call(a)})),l=Aa((()=>{var e
;if(n.ariaLabel)return n.ariaLabel;let t="";function r(e){
"string"==typeof e.children?t+=e.children:Array.isArray(e.children)&&e.children.forEach((e=>r(e)))
}return null==(e=s.value)||e.forEach((e=>r(e))),t})),c=Aa((()=>{
const{ariaLabel:e,...t}=n;return t}));return Ur((()=>{RX(window,"scroll",(e=>{
const t=e.target;null!=t&&t.contains(o.trigger.value)&&o.onClose()
})),RX(window,EG,o.onClose)})),(e,t)=>(zi(),Xi(Fn(OY),{"as-child":"",
"disable-outside-pointer-events":!1,
onEscapeKeyDown:t[0]||(t[0]=e=>r("escapeKeyDown",e)),
onPointerDownOutside:t[1]||(t[1]=e=>{var t
;Fn(o).disableClosingTrigger.value&&null!=(t=Fn(o).trigger.value)&&t.contains(e.target)&&e.preventDefault(),
r("pointerDownOutside",e)}),
onFocusOutside:t[2]||(t[2]=$s((()=>{}),["prevent"])),
onDismiss:t[3]||(t[3]=e=>Fn(o).onClose())},{default:Tr((()=>[ta(Fn(HY),ua({
ref:Fn(i),"data-state":Fn(o).stateAttribute.value},{...e.$attrs,...c.value},{
style:{
"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)",
"--radix-tooltip-content-available-width":"var(--radix-popper-available-width)",
"--radix-tooltip-content-available-height":"var(--radix-popper-available-height)",
"--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)",
"--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),{
default:Tr((()=>[no(e.$slots,"default"),ta(Fn(ZY),{id:Fn(o).contentId,
role:"tooltip"},{default:Tr((()=>[oa(st(l.value),1)])),_:1},8,["id"])])),_:3
},16,["data-state"])])),_:3}))}}),IG=eo({__name:"TooltipContentHoverable",
props:{ariaLabel:{},asChild:{type:Boolean},as:{},side:{},sideOffset:{},align:{},
alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},
collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},
setup(e){
const t=GX(e),{forwardRef:n,currentElement:r}=JX(),{trigger:o,onClose:i}=PG(),a=TG(),{isPointerInTransit:s,onPointerExit:l}=eY(o,r)
;return a.isPointerInTransitRef=s,l((()=>{i()})),(e,r)=>(zi(),Xi(NG,ua({
ref:Fn(n)},Fn(t)),{default:Tr((()=>[no(e.$slots,"default")])),_:3},16))}
}),MG=eo({__name:"TooltipContent",props:{forceMount:{type:Boolean},ariaLabel:{},
asChild:{type:Boolean},as:{},side:{default:"top"},sideOffset:{},align:{},
alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},
collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean}},
emits:["escapeKeyDown","pointerDownOutside"],setup(e,{emit:t}){
const n=e,r=t,o=PG(),i=KX(n,r),{forwardRef:a}=JX()
;return(e,t)=>(zi(),Xi(Fn(mY),{present:e.forceMount||Fn(o).open.value},{
default:Tr((()=>[(zi(),Xi(Ir(Fn(o).disableHoverableContent.value?NG:IG),ua({
ref:Fn(a)},Fn(i)),{default:Tr((()=>[no(e.$slots,"default")])),_:3},16))])),_:3
},8,["present"]))}}),LG=eo({__name:"TooltipPortal",props:{to:{},disabled:{
type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e
;return(e,n)=>(zi(),Xi(Fn(gY),tt(na(t)),{
default:Tr((()=>[no(e.$slots,"default")])),_:3},16))}}),BG=eo({
__name:"ScalarContextMenu",props:{align:{default:"center"},side:{
default:"bottom"},sideOffset:{},disabled:{type:Boolean,default:!1},
triggerClass:{}},setup(e){const t=e;return(e,n)=>(zi(),Xi(Fn(yG),null,{
default:Tr((()=>[ta(Fn(xG),{class:et(e.triggerClass),disabled:t.disabled},{
default:Tr((()=>[no(e.$slots,"trigger")])),_:3
},8,["class","disabled"]),ta(Fn(kG),null,{default:Tr((()=>[ta(Fn(SG),{
align:t.align,side:t.side,sideOffset:t.sideOffset},{
default:Tr((()=>[ta(Fn(_G),null,{default:Tr((()=>[no(e.$slots,"content")])),_:3
})])),_:3},8,["align","side","sideOffset"])])),_:3})])),_:3}))}}),QG={
class:"sr-only"},jG=["value"],UG=eo({inheritAttrs:!1,__name:"ScalarSearchInput",
props:{loading:{},modelValue:{},sidebar:{type:Boolean}},
emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const r=n,o=Bn(null)
;function i(e){r("update:modelValue",e.target.value)}const a=Aa((()=>{
const{class:e,...t}=uo();return{className:e||"",rest:t}})),s=wI({
base:"flex items-center rounded border bg-b-1 text-sm font-medium",variants:{
sidebar:{true:"h-8 gap-1.5 px-1.5 ",false:"h-10 p-3"}}});return t({focus:()=>{
var e;null==(e=o.value)||e.focus()},blur:()=>{var e;null==(e=o.value)||e.blur()}
}),(e,t)=>(zi(),Wi("label",ua(a.value.rest,{class:Fn(xI)(Fn(s)({
sidebar:e.sidebar}),a.value.className)
}),[ea("span",QG,[no(e.$slots,"label",{},(()=>[oa("Enter search")]))]),e.sidebar?(zi(),
Xi(Fn(xZ),{key:0,class:"text-c-2",icon:"Search",size:"xs",thickness:"2.5"
})):aa("",!0),ea("input",{ref_key:"inputRef",ref:o,autocapitalize:"off",
autocomplete:"off",autocorrect:"off",
class:"flex-1 rounded border-none bg-transparent outline-none",
placeholder:"Search...",spellcheck:"false",type:"text",value:e.modelValue,
onInput:i},null,40,jG),e.loading&&e.loading.isLoading?(zi(),Xi(Fn(NI),{key:1,
class:"mr-3 self-center",loadingState:e.loading,size:"md"
},null,8,["loadingState"])):e.modelValue?(zi(),Xi(Fn(bW),{key:2,
class:et(Fn(xI)("p-0",e.sidebar?"h-4 w-4":"h-5 w-5")),icon:"Close",
label:"Clear Search",thickness:e.sidebar?"1.75":"1.5",
onClick:t[0]||(t[0]=e=>r("update:modelValue",""))
},null,8,["class","thickness"])):aa("",!0)],16))}}),FG={class:"contents"},qG={
key:0,
class:"flex h-fit items-center text-sm font-medium text-c-3 group-hover:text-c-1"
},zG=ea("span",null," ",-1),HG={class:"flex min-w-0 flex-1 flex-col gap-0.75"
},ZG={class:"flex items-center gap-1"},VG={
class:"flex-1 truncate text-sm font-medium"},WG={key:0,class:"text-sm text-c-2"
},XG={key:0,class:"truncate text-sm text-c-2"},YG=eo({inheritAttrs:!1,
__name:"ScalarSearchResultItem",props:{icon:{},active:{type:Boolean}},setup(e){
const t=Aa((()=>{const{class:e,...t}=uo();return{className:e||"",rest:t}}))
;return(e,n)=>(zi(),Wi("li",FG,[ea("a",ua(t.value.rest,{
class:Fn(xI)("group flex cursor-pointer gap-2.5 rounded px-3 py-1.5 no-underline hover:bg-b-2",{
"bg-b-2":e.active},t.value.className)
}),[e.icon?(zi(),Wi("div",qG,[no(e.$slots,"icon",{},(()=>[e.icon?(zi(),
Xi(Fn(xZ),{key:0,icon:e.icon,size:"sm"
},null,8,["icon"])):aa("",!0)])),zG])):aa("",!0),ea("div",HG,[ea("div",ZG,[ea("div",VG,[no(e.$slots,"default")]),e.$slots.addon?(zi(),
Wi("div",WG,[no(e.$slots,"addon")])):aa("",!0)]),e.$slots.description?(zi(),
Wi("div",XG,[no(e.$slots,"description")])):aa("",!0)])],16)]))}}),GG=ea("div",{
class:"flex flex-col items-center gap-2 px-3 py-4"},[ea("div",{
class:"rotate-90 text-lg font-bold"},":("),ea("div",{
class:"text-sm font-medium text-c-2"},"No results found")],-1),KG=eo({
inheritAttrs:!1,__name:"ScalarSearchResultList",props:{noResults:{type:Boolean}
},setup(e){const t=Aa((()=>{const{class:e,...t}=uo();return{className:e||"",
rest:t}}));return(e,n)=>(zi(),Wi("ul",ua(t.value.rest,{
class:Fn(xI)("flex flex-col",t.value.className)
}),[e.noResults?no(e.$slots,"noResults",{key:0
},(()=>[GG])):aa("",!0),no(e.$slots,"default")],16))}});function JG(e){
return!!ft()&&(mt(e),!0)}function eK(e){return"function"==typeof e?e():Fn(e)}
const tK="undefined"!=typeof window&&"undefined"!=typeof document
;"undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope)
;const nK=Object.prototype.toString,rK=e=>"[object Object]"===nK.call(e),oK=()=>{},iK=aK()
;function aK(){var e,t
;return tK&&(null==(e=null==window?void 0:window.navigator)?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||(null==(t=null==window?void 0:window.navigator)?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(null==window?void 0:window.navigator.userAgent))
}function sK(e,t=200,n={}){return function(e,t){return function(...n){
return new Promise(((r,o)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,
thisArg:this,args:n})).then(r).catch(o)}))}}(function(e,t={}){let n,r,o=oK
;const i=e=>{clearTimeout(e),o(),o=oK};return a=>{const s=eK(e),l=eK(t.maxWait)
;return n&&i(n),
s<=0||void 0!==l&&l<=0?(r&&(i(r),r=null),Promise.resolve(a())):new Promise(((e,c)=>{
o=t.rejectOnCancel?c:e,l&&!r&&(r=setTimeout((()=>{n&&i(n),r=null,e(a())
}),l)),n=setTimeout((()=>{r&&i(r),r=null,e(a())}),s)}))}}(t,n),e)}
function lK(e,t,n){return li(e,((e,n,r)=>{e&&t(e,n,r)}),{...n,once:!1})}
function cK(e){var t;const n=eK(e);return null!=(t=null==n?void 0:n.$el)?t:n}
const uK=tK?window:void 0;function dK(...e){let t,n,r,o
;if("string"==typeof e[0]||Array.isArray(e[0])?([n,r,o]=e,
t=uK):[t,n,r,o]=e,!t)return oK
;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],a=()=>{
i.forEach((e=>e())),i.length=0},s=li((()=>[cK(t),eK(o)]),(([e,t])=>{
if(a(),!e)return;const o=rK(t)?{...t}:t
;i.push(...n.flatMap((t=>r.map((n=>((e,t,n,r)=>(e.addEventListener(t,n,r),
()=>e.removeEventListener(t,n,r)))(e,t,n,o))))))}),{immediate:!0,flush:"post"
}),l=()=>{s(),a()};return JG(l),l}let pK=!1;function hK(e){const t=function(){
const e=Bn(!1),t=ma();return t&&Ur((()=>{e.value=!0}),t),e}()
;return Aa((()=>(t.value,Boolean(e()))))}function fK(e,t={}){
const{window:n=uK}=t,r=hK((()=>n&&"matchMedia"in n&&"function"==typeof n.matchMedia))
;let o;const i=Bn(!1),a=e=>{i.value=e.matches},s=()=>{
o&&("removeEventListener"in o?o.removeEventListener("change",a):o.removeListener(a))
},l=ai((()=>{
r.value&&(s(),o=n.matchMedia(eK(e)),"addEventListener"in o?o.addEventListener("change",a):o.addListener(a),
i.value=o.matches)}));return JG((()=>{l(),s(),o=void 0})),i}const mK=new Map
;function gK(e){const t=ft();function n(n){var o;const i=mK.get(e)||new Set
;i.add(n),mK.set(e,i);const a=()=>r(n)
;return null==(o=null==t?void 0:t.cleanups)||o.push(a),a}function r(t){
const n=mK.get(e);n&&(n.delete(t),n.size||o())}function o(){mK.delete(e)}return{
on:n,once:function(e){return n((function t(...n){r(t),e(...n)}))},off:r,
emit:function(t,n){var r;null==(r=mK.get(e))||r.forEach((e=>e(t,n)))},reset:o}}
const vK={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",
down:"arrowdown",left:"arrowleft",right:"arrowright"};function bK(e={}){
const{reactive:t=!1,target:n=uK,aliasMap:r=vK,passive:o=!0,onEventFired:i=oK}=e,a=wn(new Set),s={
toJSON:()=>({}),current:a},l=t?wn(s):s,c=new Set,u=new Set;function d(e,n){
e in l&&(t?l[e]=n:l[e].value=n)}function p(){a.clear();for(const e of u)d(e,!1)}
function h(e,t){var n,r
;const o=null==(n=e.key)?void 0:n.toLowerCase(),i=[null==(r=e.code)?void 0:r.toLowerCase(),o].filter(Boolean)
;o&&(t?a.add(o):a.delete(o));for(const a of i)u.add(a),d(a,t)
;"meta"!==o||t?"function"==typeof e.getModifierState&&e.getModifierState("Meta")&&t&&[...a,...i].forEach((e=>c.add(e))):(c.forEach((e=>{
a.delete(e),d(e,!1)})),c.clear())}dK(n,"keydown",(e=>(h(e,!0),i(e))),{passive:o
}),dK(n,"keyup",(e=>(h(e,!1),i(e))),{passive:o}),dK("blur",p,{passive:!0
}),dK("focus",p,{passive:!0});const f=new Proxy(l,{get(e,n,o){
if("string"!=typeof n)return Reflect.get(e,n,o)
;if((n=n.toLowerCase())in r&&(n=r[n]),!(n in l))if(/[+_-]/.test(n)){
const e=n.split(/[+_-]/g).map((e=>e.trim()))
;l[n]=Aa((()=>e.every((e=>eK(f[e])))))}else l[n]=Bn(!1)
;const i=Reflect.get(e,n,o);return t?eK(i):i}});return f}function OK(e){var t
;const n=Bn(null==e?void 0:e.element),r=Bn(null==e?void 0:e.input),o=null!=(t=null==e?void 0:e.styleProp)?t:"height",i=Bn(1)
;function a(){var t;if(!n.value)return;let r=""
;n.value.style[o]="1px",i.value=null==(t=n.value)?void 0:t.scrollHeight,
(null==e?void 0:e.styleTarget)?eK(e.styleTarget).style[o]=`${i.value}px`:r=`${i.value}px`,
n.value.style[o]=r}return li([r,n],(()=>dr(a)),{immediate:!0}),li(i,(()=>{var t
;return null==(t=null==e?void 0:e.onResize)?void 0:t.call(e)
})),function(e,t,n={}){const{window:r=uK,...o}=n;let i
;const a=hK((()=>r&&"ResizeObserver"in r)),s=()=>{i&&(i.disconnect(),i=void 0)
},l=li(Aa((()=>Array.isArray(e)?e.map((e=>cK(e))):[cK(e)])),(e=>{
if(s(),a.value&&r){i=new ResizeObserver(t);for(const t of e)t&&i.observe(t,o)}
}),{immediate:!0,flush:"post"}),c=()=>{s(),l()};JG(c)
}(n,(()=>a())),(null==e?void 0:e.watch)&&li(e.watch,a,{immediate:!0,deep:!0}),{
textarea:n,input:r,triggerResize:a}}const yK={
class:"scalar-input-container relative"},wK=["for"],xK={
class:"icon-slot cursor-pointer text-c-ghost hover:text-c-1 !empty:flex !empty:w-7 !empty:items-center !empty:pr-3"
},kK=eo({__name:"ScalarTextField",props:{modelValue:{},placeholder:{},label:{},
labelShadowColor:{default:"var(--scalar-background-1)"},error:{type:Boolean},
isMultiline:{type:Boolean},helperText:{},emitOnBlur:{type:Boolean,default:!0},
handleFieldSubmit:{},handleFieldChange:{},disableTrim:{type:Boolean,default:!1}
},emits:["submit","update:modelValue"],setup(e,{emit:t}){const n=e,r=t,o=wI({
base:"scalar-input-wrapper relative flex items-center rounded border border-solid border-border",
variants:{focus:{
true:"scalar-input-wrapper-focus border-c-3 has-actv-btn:border has-actv-btn:border-border"
},error:{true:"scalar-input-wrapper-error border-red"}}
}),i=uo(),a=i.id||`id-${CZ()}`,s=Bn(),l=Bn(!1);let c;if(n.isMultiline){
const{triggerResize:e}=OK({element:s,input:n.modelValue});c=e}function u(e){
const t=e.target.value
;n.isMultiline&&c(),n.handleFieldChange?n.handleFieldChange(t):r("update:modelValue",t)
}function d(e){
const t=e.target,o=n.disableTrim||n.isMultiline?t.value:t.value.trim()
;n.handleFieldSubmit?n.handleFieldSubmit(o):r("submit",o)}function p(e){
l.value=!1,n.emitOnBlur&&n.modelValue&&d(e)}return Ur((()=>{var e
;Object.prototype.hasOwnProperty.call(i,"autofocus")&&(null==(e=s.value)||e.focus())
})),(e,t)=>(zi(),Wi("div",yK,[ea("div",{class:et(Fn(o)({error:e.error,
focus:l.value}))},[(zi(),Xi(Ir(e.isMultiline?"textarea":"input"),ua({id:Fn(a)
},e.$attrs,{ref_key:"input",ref:s,class:["scalar-input",Fn(xI)({
"min-h-[77px]":e.isMultiline
},"z-10 w-full resize-none appearance-none border-0 bg-transparent p-3 text-sm text-c-1","outline-none transition-opacity")],
placeholder:e.placeholder,value:e.modelValue,onBlur:p,
onFocus:t[0]||(t[0]=e=>l.value=!0),onInput:u,onKeydown:Ns(d,["enter"])
}),null,16,["id","class","placeholder","value"])),e.label?(zi(),Wi("label",{
key:0,
class:et(Fn(xI)("scalar-input-label pointer-events-none absolute left-0 top-0 mx-2 my-3 px-1 text-sm","z-10 origin-top-left rounded text-c-3 shadow-current transition-transform")),
for:Fn(a),style:Xe({"box-shadow":`0 0 4px 4px ${e.labelShadowColor}`,
"background-color":e.labelShadowColor})
},st(e.label),15,wK)):aa("",!0),ea("div",xK,[no(e.$slots,"default",{},void 0,!0)])],2),e.helperText?(zi(),
Wi("span",{key:0,
class:et(["helper-text mt-1.5 flex items-center gap-1 text-sm",e.error?"font-medium text-red":"text-c-2"])
},[e.error?(zi(),Xi(Fn(xZ),{key:0,icon:"Error",size:"sm"
})):aa("",!0),oa(" "+st(e.helperText),1)],2)):aa("",!0)]))}
}),SK=EI(kK,[["__scopeId","data-v-4de7a24e"]]),_K=eo({__name:"ScalarTooltip",
props:{click:{},delay:{},skipDelay:{default:1e3},align:{default:"center"},side:{
default:"top"},sideOffset:{},class:{},triggerClass:{},resize:{type:Boolean}},
emits:["click"],setup(e){const t=e;return(e,n)=>(zi(),Xi(Fn(AG),{
delayDuration:t.delay,skipDelayDuration:t.skipDelay},{
default:Tr((()=>[ta(Fn($G),null,{default:Tr((()=>[ta(Fn(RG),{
class:et(["flex items-center justify-center",[t.resize?"w-full":"",t.triggerClass]]),
onClick:t.click},{default:Tr((()=>[no(e.$slots,"trigger")])),_:3
},8,["class","onClick"]),ta(Fn(LG),{to:".scalar-client"},{
default:Tr((()=>[ta(Fn(MG),{align:t.align,class:et(["scalar-app",t.class]),
side:t.side,sideOffset:t.sideOffset},{
default:Tr((()=>[no(e.$slots,"content")])),_:3
},8,["align","class","side","sideOffset"])])),_:3})])),_:3})])),_:3
},8,["delayDuration","skipDelayDuration"]))}}),EK=()=>{
const e=document.getElementById("headlessui-portal-root")
;if(e)e.classList.add("scalar-app"),e.classList.add("scalar-client");else{
const e=new MutationObserver((t=>{
const n=t.find((e=>Array.from(e.addedNodes).find((e=>"headlessui-portal-root"===e.id))))
;if(n){const t=n.addedNodes[0]
;t.classList.add("scalar-app"),t.classList.add("scalar-client"),e.disconnect()}
}));e.observe(document.body,{childList:!0})}
},TK=["GET","POST","PUT","HEAD","DELETE","PATCH","OPTIONS","CONNECT","TRACE"],CK={
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)"},AK={POST:"POST",DELETE:"DEL",PATCH:"PATCH",
GET:"GET",PUT:"PUT",OPTIONS:"OPTS",HEAD:"HEAD",CONNECT:"CONN",TRACE:"TRACE"}
;function PK(e){return TK.includes(e)}const DK=eo({__name:"HttpMethod",props:{
as:{},property:{},short:{type:Boolean},method:{}},setup(e){
const t=e,n=Aa((()=>t.method.trim().toUpperCase())),r=Aa((()=>PK(n.value)?AK[n.value]:n.value.slice(0,4))),o=Aa((()=>PK(n.value)?CK[n.value]:"var(--scalar-color-ghost)"))
;return(e,t)=>(zi(),Xi(Ir(e.as??"span"),{style:Xe({[e.property||"color"]:o.value
})},{default:Tr((()=>[no(e.$slots,"default",tt(na({normalized:n.value,
abbreviated:r.value,color:o.value
})),(()=>[oa(st(e.short?r.value:n.value),1)]))])),_:3},8,["style"]))}
}),$K=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n
},RK=$K(eo({__name:"SidebarHttpBadge",props:{active:{type:Boolean},method:{}},
setup:e=>(e,t)=>(zi(),Xi(Fn(DK),{class:et(["sidebar-heading-type",{
"sidebar-heading-type-active":e.active}]),method:e.method,
property:"--method-color",short:""},null,8,["class","method"]))
}),[["__scopeId","data-v-f51e2805"]]);function NK(e){
return Array.isArray?Array.isArray(e):"[object Array]"===qK(e)}const IK=1/0
;function MK(e){return null==e?"":function(e){if("string"==typeof e)return e
;let t=e+"";return"0"==t&&1/e==-IK?"-0":t}(e)}function LK(e){
return"string"==typeof e}function BK(e){return"number"==typeof e}function QK(e){
return!0===e||!1===e||function(e){return jK(e)&&null!==e
}(e)&&"[object Boolean]"==qK(e)}function jK(e){return"object"==typeof e}
function UK(e){return null!=e}function FK(e){return!e.trim().length}
function qK(e){
return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)
}
const zK=e=>`Missing ${e} property in key`,HK=e=>`Property 'weight' in key '${e}' must be a positive integer`,ZK=Object.prototype.hasOwnProperty
;class VK{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{
let n=WK(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight
})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){
return this._keys}toJSON(){return JSON.stringify(this._keys)}}function WK(e){
let t=null,n=null,r=null,o=1,i=null;if(LK(e)||NK(e))r=e,t=XK(e),n=YK(e);else{
if(!ZK.call(e,"name"))throw new Error(zK("name"));const a=e.name
;if(r=a,ZK.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(HK(a))
;t=XK(a),n=YK(a),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}
function XK(e){return NK(e)?e:e.split(".")}function YK(e){
return NK(e)?e.join("."):e}const GK={useExtendedSearch:!1,getFn:function(e,t){
let n=[],r=!1;const o=(e,t,i)=>{if(UK(e))if(t[i]){const a=e[t[i]]
;if(!UK(a))return
;if(i===t.length-1&&(LK(a)||BK(a)||QK(a)))n.push(MK(a));else if(NK(a)){r=!0
;for(let e=0,n=a.length;e<n;e+=1)o(a[e],t,i+1)}else t.length&&o(a,t,i+1)
}else n.push(e)};return o(e,LK(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,
ignoreFieldNorm:!1,fieldNormWeight:1};var KK={isCaseSensitive:!1,
includeScore:!1,keys:[],shouldSort:!0,
sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,
includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,
threshold:.6,distance:100,...GK};const JK=/[^ ]+/g;class eJ{
constructor({getFn:e=KK.getFn,fieldNormWeight:t=KK.fieldNormWeight}={}){
this.norm=function(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(t){
const o=t.match(JK).length;if(n.has(o))return n.get(o)
;const i=1/Math.pow(o,.5*e),a=parseFloat(Math.round(i*r)/r);return n.set(o,a),a
},clear(){n.clear()}}
}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){
this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){
this.keys=e,this._keysMap={},e.forEach(((e,t)=>{this._keysMap[e.id]=t}))}
create(){
!this.isCreated&&this.docs.length&&(this.isCreated=!0,LK(this.docs[0])?this.docs.forEach(((e,t)=>{
this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)
})),this.norm.clear())}add(e){const t=this.size()
;LK(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){
this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)this.records[t].i-=1
}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){
return this.records.length}_addString(e,t){if(!UK(e)||FK(e))return;let n={v:e,
i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}}
;this.keys.forEach(((t,r)=>{let o=t.getFn?t.getFn(e):this.getFn(e,t.path)
;if(UK(o))if(NK(o)){let e=[];const t=[{nestedArrIndex:-1,value:o}]
;for(;t.length;){const{nestedArrIndex:n,value:r}=t.pop()
;if(UK(r))if(LK(r)&&!FK(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)
}else NK(r)&&r.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[r]=e
}else if(LK(o)&&!FK(o)){let e={v:o,n:this.norm.get(o)};n.$[r]=e}
})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}
function tJ(e,t,{getFn:n=KK.getFn,fieldNormWeight:r=KK.fieldNormWeight}={}){
const o=new eJ({getFn:n,fieldNormWeight:r})
;return o.setKeys(e.map(WK)),o.setSources(t),o.create(),o}
function nJ(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=KK.distance,ignoreLocation:i=KK.ignoreLocation}={}){
const a=t/e.length;if(i)return a;const s=Math.abs(r-n);return o?a+s/o:s?1:a}
const rJ=32
;function oJ(e,t,n,{location:r=KK.location,distance:o=KK.distance,threshold:i=KK.threshold,findAllMatches:a=KK.findAllMatches,minMatchCharLength:s=KK.minMatchCharLength,includeMatches:l=KK.includeMatches,ignoreLocation:c=KK.ignoreLocation}={}){
if(t.length>rJ)throw new Error(`Pattern length exceeds max of ${rJ}.`)
;const u=t.length,d=e.length,p=Math.max(0,Math.min(r,d));let h=i,f=p
;const m=s>1||l,g=m?Array(d):[];let v;for(;(v=e.indexOf(t,f))>-1;){let e=nJ(t,{
currentLocation:v,expectedLocation:p,distance:o,ignoreLocation:c})
;if(h=Math.min(e,h),f=v+u,m){let e=0;for(;e<u;)g[v+e]=1,e+=1}}f=-1
;let b=[],O=1,y=u+d;const w=1<<u-1;for(let k=0;k<u;k+=1){let r=0,i=y;for(;r<i;){
nJ(t,{errors:k,currentLocation:p+i,expectedLocation:p,distance:o,
ignoreLocation:c})<=h?r=i:y=i,i=Math.floor((y-r)/2+r)}y=i
;let s=Math.max(1,p-i+1),l=a?d:Math.min(p+i,d)+u,v=Array(l+2);v[l+1]=(1<<k)-1
;for(let a=l;a>=s;a-=1){let r=a-1,i=n[e.charAt(r)]
;if(m&&(g[r]=+!!i),v[a]=(v[a+1]<<1|1)&i,
k&&(v[a]|=(b[a+1]|b[a])<<1|1|b[a+1]),v[a]&w&&(O=nJ(t,{errors:k,
currentLocation:r,expectedLocation:p,distance:o,ignoreLocation:c}),O<=h)){
if(h=O,f=r,f<=p)break;s=Math.max(1,2*p-f)}}if(nJ(t,{errors:k+1,
currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:c})>h)break;b=v}
const x={isMatch:f>=0,score:Math.max(.001,O)};if(m){
const e=function(e=[],t=KK.minMatchCharLength){let n=[],r=-1,o=-1,i=0
;for(let a=e.length;i<a;i+=1){let a=e[i]
;a&&-1===r?r=i:a||-1===r||(o=i-1,o-r+1>=t&&n.push([r,o]),r=-1)}
return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}(g,s)
;e.length?l&&(x.indices=e):x.isMatch=!1}return x}function iJ(e){let t={}
;for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}
return t}class aJ{
constructor(e,{location:t=KK.location,threshold:n=KK.threshold,distance:r=KK.distance,includeMatches:o=KK.includeMatches,findAllMatches:i=KK.findAllMatches,minMatchCharLength:a=KK.minMatchCharLength,isCaseSensitive:s=KK.isCaseSensitive,ignoreLocation:l=KK.ignoreLocation}={}){
if(this.options={location:t,threshold:n,distance:r,includeMatches:o,
findAllMatches:i,minMatchCharLength:a,isCaseSensitive:s,ignoreLocation:l
},this.pattern=s?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return
;const c=(e,t)=>{this.chunks.push({pattern:e,alphabet:iJ(e),startIndex:t})
},u=this.pattern.length;if(u>rJ){let e=0;const t=u%rJ,n=u-t
;for(;e<n;)c(this.pattern.substr(e,rJ),e),e+=rJ;if(t){const e=u-rJ
;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){
const{isCaseSensitive:t,includeMatches:n}=this.options
;if(t||(e=e.toLowerCase()),this.pattern===e){let t={isMatch:!0,score:0}
;return n&&(t.indices=[[0,e.length-1]]),t}
const{location:r,distance:o,threshold:i,findAllMatches:a,minMatchCharLength:s,ignoreLocation:l}=this.options
;let c=[],u=0,d=!1;this.chunks.forEach((({pattern:t,alphabet:p,startIndex:h})=>{
const{isMatch:f,score:m,indices:g}=oJ(e,t,p,{location:r+h,distance:o,
threshold:i,findAllMatches:a,minMatchCharLength:s,includeMatches:n,
ignoreLocation:l});f&&(d=!0),u+=m,f&&g&&(c=[...c,...g])}));let p={isMatch:d,
score:d?u/this.chunks.length:1};return d&&n&&(p.indices=c),p}}class sJ{
constructor(e){this.pattern=e}static isMultiMatch(e){
return lJ(e,this.multiRegex)}static isSingleMatch(e){
return lJ(e,this.singleRegex)}search(){}}function lJ(e,t){const n=e.match(t)
;return n?n[1]:null}class cJ extends sJ{
constructor(e,{location:t=KK.location,threshold:n=KK.threshold,distance:r=KK.distance,includeMatches:o=KK.includeMatches,findAllMatches:i=KK.findAllMatches,minMatchCharLength:a=KK.minMatchCharLength,isCaseSensitive:s=KK.isCaseSensitive,ignoreLocation:l=KK.ignoreLocation}={}){
super(e),this._bitapSearch=new aJ(e,{location:t,threshold:n,distance:r,
includeMatches:o,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:s,
ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){
return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){
return this._bitapSearch.searchIn(e)}}class uJ extends sJ{constructor(e){
super(e)}static get type(){return"include"}static get multiRegex(){
return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0
;const r=[],o=this.pattern.length
;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+o,r.push([t,n-1]);const i=!!r.length
;return{isMatch:i,score:i?0:1,indices:r}}}const dJ=[class extends sJ{
constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){
return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){
const t=e===this.pattern;return{isMatch:t,score:t?0:1,
indices:[0,this.pattern.length-1]}}},uJ,class extends sJ{constructor(e){super(e)
}static get type(){return"prefix-exact"}static get multiRegex(){
return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){
const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,
indices:[0,this.pattern.length-1]}}},class extends sJ{constructor(e){super(e)}
static get type(){return"inverse-prefix-exact"}static get multiRegex(){
return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){
const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,
indices:[0,e.length-1]}}},class extends sJ{constructor(e){super(e)}
static get type(){return"inverse-suffix-exact"}static get multiRegex(){
return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){
const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,
indices:[0,e.length-1]}}},class extends sJ{constructor(e){super(e)}
static get type(){return"suffix-exact"}static get multiRegex(){
return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){
const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,
indices:[e.length-this.pattern.length,e.length-1]}}},class extends sJ{
constructor(e){super(e)}static get type(){return"inverse-exact"}
static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){
return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,
score:t?0:1,indices:[0,e.length-1]}}
},cJ],pJ=dJ.length,hJ=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/
;const fJ=new Set([cJ.type,uJ.type]);class mJ{
constructor(e,{isCaseSensitive:t=KK.isCaseSensitive,includeMatches:n=KK.includeMatches,minMatchCharLength:r=KK.minMatchCharLength,ignoreLocation:o=KK.ignoreLocation,findAllMatches:i=KK.findAllMatches,location:a=KK.location,threshold:s=KK.threshold,distance:l=KK.distance}={}){
this.query=null,this.options={isCaseSensitive:t,includeMatches:n,
minMatchCharLength:r,findAllMatches:i,ignoreLocation:o,location:a,threshold:s,
distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){
return e.split("|").map((e=>{
let n=e.trim().split(hJ).filter((e=>e&&!!e.trim())),r=[]
;for(let o=0,i=n.length;o<i;o+=1){const e=n[o];let i=!1,a=-1;for(;!i&&++a<pJ;){
const n=dJ[a];let o=n.isMultiMatch(e);o&&(r.push(new n(o,t)),i=!0)}
if(!i)for(a=-1;++a<pJ;){const n=dJ[a];let o=n.isSingleMatch(e);if(o){
r.push(new n(o,t));break}}}return r}))}(this.pattern,this.options)}
static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query
;if(!t)return{isMatch:!1,score:1}
;const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase()
;let o=0,i=[],a=0;for(let s=0,l=t.length;s<l;s+=1){const r=t[s];i.length=0,o=0
;for(let t=0,s=r.length;t<s;t+=1){
const s=r[t],{isMatch:l,indices:c,score:u}=s.search(e);if(!l){a=0,o=0,i.length=0
;break}if(o+=1,a+=u,n){const e=s.constructor.type
;fJ.has(e)?i=[...i,...c]:i.push(c)}}if(o){let e={isMatch:!0,score:a/o}
;return n&&(e.indices=i),e}}return{isMatch:!1,score:1}}}const gJ=[]
;function vJ(e,t){for(let n=0,r=gJ.length;n<r;n+=1){let r=gJ[n]
;if(r.condition(e,t))return new r(e,t)}return new aJ(e,t)}
const bJ="$and",OJ="$or",yJ="$path",wJ="$val",xJ=e=>!(!e[bJ]&&!e[OJ]),kJ=e=>({
[bJ]:Object.keys(e).map((t=>({[t]:e[t]})))});function SJ(e,t,{auto:n=!0}={}){
const r=e=>{let o=Object.keys(e);const i=(e=>!!e[yJ])(e)
;if(!i&&o.length>1&&!xJ(e))return r(kJ(e));if((e=>!NK(e)&&jK(e)&&!xJ(e))(e)){
const r=i?e[yJ]:o[0],a=i?e[wJ]:e[r]
;if(!LK(a))throw new Error((e=>`Invalid value for key ${e}`)(r));const s={
keyId:YK(r),pattern:a};return n&&(s.searcher=vJ(a,t)),s}let a={children:[],
operator:o[0]};return o.forEach((t=>{const n=e[t];NK(n)&&n.forEach((e=>{
a.children.push(r(e))}))})),a};return xJ(e)||(e=kJ(e)),r(e)}function _J(e,t){
const n=e.matches;t.matches=[],UK(n)&&n.forEach((e=>{
if(!UK(e.indices)||!e.indices.length)return;const{indices:n,value:r}=e;let o={
indices:n,value:r}
;e.key&&(o.key=e.key.src),e.idx>-1&&(o.refIndex=e.idx),t.matches.push(o)}))}
function EJ(e,t){t.score=e.score}class TJ{constructor(e,t={},n){this.options={
...KK,...t
},this.options.useExtendedSearch,this._keyStore=new VK(this.options.keys),
this.setCollection(e,n)}setCollection(e,t){
if(this._docs=e,t&&!(t instanceof eJ))throw new Error("Incorrect 'index' type")
;this._myIndex=t||tJ(this.options.keys,this._docs,{getFn:this.options.getFn,
fieldNormWeight:this.options.fieldNormWeight})}add(e){
UK(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const t=[]
;for(let n=0,r=this._docs.length;n<r;n+=1){const o=this._docs[n]
;e(o,n)&&(this.removeAt(n),n-=1,r-=1,t.push(o))}return t}removeAt(e){
this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex
}search(e,{limit:t=-1}={}){
const{includeMatches:n,includeScore:r,shouldSort:o,sortFn:i,ignoreFieldNorm:a}=this.options
;let s=LK(e)?LK(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e)
;return function(e,{ignoreFieldNorm:t=KK.ignoreFieldNorm}){e.forEach((e=>{
let n=1;e.matches.forEach((({key:e,norm:r,score:o})=>{const i=e?e.weight:null
;n*=Math.pow(0===o&&i?Number.EPSILON:o,(i||1)*(t?1:r))})),e.score=n}))}(s,{
ignoreFieldNorm:a
}),o&&s.sort(i),BK(t)&&t>-1&&(s=s.slice(0,t)),function(e,t,{includeMatches:n=KK.includeMatches,includeScore:r=KK.includeScore}={}){
const o=[];return n&&o.push(_J),r&&o.push(EJ),e.map((e=>{const{idx:n}=e,r={
item:t[n],refIndex:n};return o.length&&o.forEach((t=>{t(e,r)})),r}))
}(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){
const t=vJ(e,this.options),{records:n}=this._myIndex,r=[]
;return n.forEach((({v:e,i:n,n:o})=>{if(!UK(e))return
;const{isMatch:i,score:a,indices:s}=t.searchIn(e);i&&r.push({item:e,idx:n,
matches:[{score:a,value:e,norm:o,indices:s}]})})),r}_searchLogical(e){
const t=SJ(e,this.options),n=(e,t,r)=>{if(!e.children){
const{keyId:n,searcher:o}=e,i=this._findMatches({key:this._keyStore.get(n),
value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:o})
;return i&&i.length?[{idx:r,item:t,matches:i}]:[]}const o=[]
;for(let i=0,a=e.children.length;i<a;i+=1){const a=e.children[i],s=n(a,t,r)
;if(s.length)o.push(...s);else if(e.operator===bJ)return[]}return o
},r=this._myIndex.records,o={},i=[];return r.forEach((({$:e,i:r})=>{if(UK(e)){
let a=n(t,e,r);a.length&&(o[r]||(o[r]={idx:r,item:e,matches:[]
},i.push(o[r])),a.forEach((({matches:e})=>{o[r].matches.push(...e)})))}})),i}
_searchObjectList(e){
const t=vJ(e,this.options),{keys:n,records:r}=this._myIndex,o=[]
;return r.forEach((({$:e,i:r})=>{if(!UK(e))return;let i=[];n.forEach(((n,r)=>{
i.push(...this._findMatches({key:n,value:e[r],searcher:t}))
})),i.length&&o.push({idx:r,item:e,matches:i})})),o}
_findMatches({key:e,value:t,searcher:n}){if(!UK(t))return[];let r=[]
;if(NK(t))t.forEach((({v:t,i:o,n:i})=>{if(!UK(t))return
;const{isMatch:a,score:s,indices:l}=n.searchIn(t);a&&r.push({score:s,key:e,
value:t,idx:o,norm:i,indices:l})}));else{
const{v:o,n:i}=t,{isMatch:a,score:s,indices:l}=n.searchIn(o);a&&r.push({score:s,
key:e,value:o,norm:i,indices:l})}return r}}function CJ(e){var t,n,r;try{
const o=null==(r=null==(n=null==(t=null==e?void 0:e.information)?void 0:t.requestBody)?void 0:n.content)?void 0:r["application/json"]
;if(!o)throw new Error("Body not found");return function(e){var t
;const n=["Body"],r=null==(t=null==e?void 0:e.schema)?void 0:t.properties
;return r&&Object.keys(r).forEach((t=>{if(!e.schema)return;n.push(function(e,t){
let n=e
;return n+=t.required&&t.required.includes(e)?" REQUIRED ":" optional ",t.properties[e]&&(n+=t.properties[e].type,
t.properties[e].description&&(n+=" "+t.properties[e].description)),n
}(t,e.schema));const o=r[t]
;"object"===o.type&&o.properties&&o.properties&&Object.keys(o.properties).forEach((e=>{
var t,r
;n.push(`${e} ${null==(r=null==(t=o.properties)?void 0:t[e])?void 0:r.type}`)}))
})),n}(o)}catch(o){return!1}}
TJ.version="7.0.0",TJ.createIndex=tJ,TJ.parseIndex=function(e,{getFn:t=KK.getFn,fieldNormWeight:n=KK.fieldNormWeight}={}){
const{keys:r,records:o}=e,i=new eJ({getFn:t,fieldNormWeight:n})
;return i.setKeys(r),i.setIndexRecords(o),i
},TJ.config=KK,TJ.parseQuery=SJ,function(...e){gJ.push(...e)}(mJ)
;const AJ=e=>(_r("data-v-fb0fd0be"),e=e(),Er(),e),PJ=AJ((()=>ea("div",{
class:"ref-search-meta"
},[ea("span",null,"↑↓ Navigate"),ea("span",null,"⏎ Select")],-1))),DJ=$K(eo({
__name:"SearchModal",props:{parsedSpec:{},modalState:{}},setup(e){
const t=e,n=Gn(t,"parsedSpec"),r=Gn(t.modalState.open),{resetSearch:o,fuseSearch:i,selectedSearchResult:a,searchResultsWithPlaceholderResults:s,searchText:l}=function({specification:e}){
const{getHeadingId:t,getWebhookId:n,getModelId:r,getOperationId:o,getTagId:i}=Jh(),{hideModels:a}=DD(),s=Bn([]),l=Bn([]),c=Bn(0),u=Bn(""),d=new TJ(s.value,{
keys:["title","description","body"]
}),p=Aa((()=>0===u.value.length?s.value.slice(0,25).map((e=>({item:e
}))):l.value.slice(0,25)));return li(e.value,(async()=>{var l,c,u,p,h,f,m,g,v
;const b=performance.now()
;if(s.value=[],!(null==(c=null==(l=e.value)?void 0:l.tags)?void 0:c.length)&&!(null==(p=null==(u=e.value)?void 0:u.webhooks)?void 0:p.length))return void d.setCollection([])
;const O=[],y=wP((null==(f=null==(h=e.value)?void 0:h.info)?void 0:f.description)??"")
;y.length&&(y.forEach((e=>{O.push({type:"heading",title:`Info > ${e.value}`,
description:"",href:`#${t(e)}`,tag:e.slug,body:""})
})),s.value=s.value.concat(O)),
null==(g=null==(m=e.value)?void 0:m.tags)||g.forEach((e=>{const t={
title:e["x-displayName"]??e.name,href:`#${i(e)}`,description:e.description,
type:"tag",tag:e.name,body:""}
;s.value.push(t),e.operations&&e.operations.forEach((t=>{
const{parameterMap:n}=ef({operation:t}),r=CJ(t)||n.value;let i=null
;"boolean"!=typeof r&&(i=r);const a={type:"req",title:t.name??t.path,
href:`#${o(t,e)}`,operationId:t.operationId,description:t.description??"",
httpVerb:t.httpVerb,path:t.path,tag:e.name,operation:t}
;i&&(a.body=i),s.value.push(a)}))}))
;const w=null==(v=e.value)?void 0:v.webhooks,x=[]
;w&&Object.keys(w).forEach((e=>{Object.keys(w[e]).forEach((t=>{var r;x.push({
type:"webhook",title:`Webhook: ${null==(r=w[e][t])?void 0:r.name}`,
href:`#${n(e,t)}`,description:e,httpVerb:t,tag:e,body:""})
})),s.value=s.value.concat(x)}));const k=a.value?{}:kP(e.value),S=[]
;k&&(Object.keys(k).forEach((e=>{S.push({type:"model",title:"Model",
href:`#${r(e)}`,description:k[e].title??e,tag:e,body:""})
})),s.value=s.value.concat(S)),d.setCollection(s.value)
;const _=performance.now()
;console.log(`create-search-index: ${Math.round(_-b)} ms`)}),{immediate:!0}),{
resetSearch:function(){u.value="",c.value=0,l.value=[]},fuseSearch:()=>{
c.value=0,l.value=d.search(u.value)},selectedSearchResult:c,
searchResultsWithPlaceholderResults:p,searchText:u}}({specification:n})
;!function({active:e,selectedSearchResult:t,searchResultsWithPlaceholderResults:n,onSearchResultClick:r}){
const o=Fp(),i=Aa((()=>n.value[t.value]));Dp(o.enter,(()=>{
e&&window&&(r(i.value),window.location.hash=i.value.item.href)
})),Dp(o.ArrowDown,(()=>{var r
;e&&window&&(t.value<n.value.length-1?t.value++:t.value=0,
null==(r=document.getElementById(i.value.item.href))||r.scrollIntoView({
behavior:"smooth",block:"center"}))})),Dp(o.ArrowUp,(()=>{var r
;e&&window&&(t.value>0?t.value--:t.value=n.value.length-1,
null==(r=document.getElementById(i.value.item.href))||r.scrollIntoView({
behavior:"smooth",block:"center"}))}))}({selectedSearchResult:a,active:r,
searchResultsWithPlaceholderResults:s,onSearchResultClick:h});const c={
heading:"DocsPage",model:"Brackets",req:"Terminal",tag:"CodeFolder",
webhook:"Terminal"},u=Bn(null);li((()=>t.modalState.open),(e=>{e&&o()}))
;const{setCollapsedSidebarItem:d}=DD(),p=/#(tag\/[^/]*)/;function h(e){
let n="models";const r=e.item.href.match(p)
;(null==r?void 0:r.length)&&r.length>1&&(n=r[1]),d(n,!0),t.modalState.hide()}
function f(e){const t=new URL(window.location.href);return t.hash=e,t.toString()
}return(e,t)=>(zi(),Xi(Fn(TI),{state:e.modalState,variant:"search"},{
default:Tr((()=>[ea("div",{ref_key:"searchModalRef",ref:u,
class:"ref-search-container"},[ta(Fn(UG),{modelValue:Fn(l),
"onUpdate:modelValue":t[0]||(t[0]=e=>Ln(l)?l.value=e:null),onInput:Fn(i)
},null,8,["modelValue","onInput"])],512),ta(Fn(KG),{
class:"ref-search-results custom-scroll",noResults:!Fn(s).length},{
query:Tr((()=>[oa(st(Fn(l)),1)])),
default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(Fn(s),((e,t)=>(zi(),Xi(Fn(YG),{
id:e.item.href,key:e.refIndex,active:Fn(a)===t,href:f(e.item.href),
icon:c[e.item.type],onClick:t=>h(e),onFocus:e=>a.value=t},Jr({default:Tr((()=>{
var t,n;return[ea("span",{class:et({
deprecated:null==(n=null==(t=e.item.operation)?void 0:t.information)?void 0:n.deprecated
})},st(e.item.title),3)]})),_:2
},[(e.item.httpVerb||e.item.path)&&e.item.path!==e.item.title?{
name:"description",fn:Tr((()=>[oa(st(e.item.path),1)])),key:"0"
}:e.item.description?{name:"description",
fn:Tr((()=>[oa(st(e.item.description),1)])),key:"1"
}:void 0,"req"===e.item.type?{name:"addon",fn:Tr((()=>[ta(RK,{
method:e.item.httpVerb??"get"},null,8,["method"])])),key:"2"
}:void 0]),1032,["id","active","href","icon","onClick","onFocus"])))),128))])),
_:1},8,["noResults"]),PJ])),_:1},8,["state"]))}
}),[["__scopeId","data-v-fb0fd0be"]]),$J=eo({__name:"Search",props:{
parsedSpec:{},modalState:{}},setup:e=>(e,t)=>(zi(),Xi(DJ,{
modalState:e.modalState,parsedSpec:e.parsedSpec
},null,8,["modalState","parsedSpec"]))});function RJ(){
return typeof navigator<"u"&&/Mac/.test(navigator.platform)}
const NJ=Symbol(),IJ=Symbol(),MJ=Qp(NJ),LJ=Qp(IJ),BJ=e=>(_r("data-v-f812b614"),
e=e(),Er(),e),QJ={class:"sidebar-search-input"},jJ=BJ((()=>ea("span",{
class:"sidebar-search-placeholder"},"Search",-1))),UJ={
class:"sidebar-search-shortcut"},FJ={class:"sidebar-search-key"},qJ=eo({
__name:"SearchButton",props:{spec:{},searchHotKey:{default:"k"}},setup(e){
const t=e,n=SI(),r=Bn(null),o=Fp({passive:!1,onEventFired(e){
!RJ()&&e.ctrlKey&&e.key===t.searchHotKey&&(e.preventDefault(),
e.stopPropagation())}});return Ur((()=>{LJ.on((e=>{r.value=e}))
})),Dp(o[`${RJ()?"meta":"control"}_${t.searchHotKey}`],(()=>{var e
;(null==(e=r.value)?void 0:e.open)||(n.open?n.hide():n.show())
})),(e,t)=>(zi(),Wi(Bi,null,[ea("button",{
class:et(["sidebar-search",e.$attrs.class]),type:"button",
onClick:t[0]||(t[0]=(...e)=>Fn(n).show&&Fn(n).show(...e))},[ta(Fn(xZ),{
class:"search-icon",icon:"Search",size:"sm",thickness:"2.5"
}),ea("div",QJ,[jJ,ea("span",UJ,[ea("span",FJ,st(Fn(RJ)()?"⌘":"⌃")+st(e.searchHotKey),1)])])],2),ta($J,{
modalState:Fn(n),parsedSpec:e.spec},null,8,["modalState","parsedSpec"])],64))}
}),zJ=$K(qJ,[["__scopeId","data-v-f812b614"]])
;let HJ=Symbol("headlessui.useid"),ZJ=0;function VJ(){
return $o(HJ,(()=>""+ ++ZJ))()}function WJ(e){var t
;if(null==e||null==e.value)return null;let n=null!=(t=e.value.$el)?t:e.value
;return n instanceof Node?n:null}function XJ(e,t,...n){if(e in t){let r=t[e]
;return"function"==typeof r?r(...n):r}
let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`)
;throw Error.captureStackTrace&&Error.captureStackTrace(r,XJ),r}
var YJ=Object.defineProperty,GJ=(e,t,n)=>(((e,t,n)=>{t in e?YJ(e,t,{
enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n
})(e,"symbol"!=typeof t?t+"":t,n),n);let KJ=new class{constructor(){
GJ(this,"current",this.detect()),GJ(this,"currentId",0)}set(e){
this.current!==e&&(this.currentId=0,this.current=e)}reset(){
this.set(this.detect())}nextId(){return++this.currentId}get isServer(){
return"server"===this.current}get isClient(){return"client"===this.current}
detect(){
return"undefined"==typeof window||"undefined"==typeof document?"server":"client"
}};function JJ(e){if(KJ.isServer)return null
;if(e instanceof Node)return e.ownerDocument
;if(null!=e&&e.hasOwnProperty("value")){let t=WJ(e);if(t)return t.ownerDocument}
return document}
let e0=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",")
;var t0=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",
e[e.Last=8]="Last",
e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(t0||{}),n0=(e=>(e[e.Error=0]="Error",
e[e.Overflow=1]="Overflow",
e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",
e))(n0||{}),r0=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(r0||{})
;var o0=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(o0||{})
;function i0(e,t=0){var n;return e!==(null==(n=JJ(e))?void 0:n.body)&&XJ(t,{
0:()=>e.matches(e0),1(){let t=e;for(;null!==t;){if(t.matches(e0))return!0
;t=t.parentElement}return!1}})}
var a0=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(a0||{})
;"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{
e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")
}),!0),document.addEventListener("click",(e=>{
1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")
}),!0));let s0=["textarea","input"].join(",");function l0(e,t=e=>e){
return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0
;let i=r.compareDocumentPosition(o)
;return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0
}))}function c0(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var i
;let a=null!=(i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:null==e?void 0:e.ownerDocument)?i:document,s=Array.isArray(e)?n?l0(e):e:function(e=document.body){
return null==e?[]:Array.from(e.querySelectorAll(e0)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))
}(e)
;o.length>0&&s.length>1&&(s=s.filter((e=>!o.includes(e)))),r=null!=r?r:a.activeElement
;let l,c=(()=>{if(5&t)return 1;if(10&t)return-1
;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")
})(),u=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,s.indexOf(r))-1
;if(4&t)return Math.max(0,s.indexOf(r))+1;if(8&t)return s.length-1
;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")
})(),d=32&t?{preventScroll:!0}:{},p=0,h=s.length;do{if(p>=h||p+h<=0)return 0
;let e=u+p;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}
l=s[e],null==l||l.focus(d),p+=c}while(l!==a.activeElement)
;return 6&t&&function(e){var t,n
;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,s0))&&n
}(l)&&l.select(),2}function u0(){
return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0||/Android/gi.test(window.navigator.userAgent)
}function d0(e,t,n){KJ.isServer||ai((r=>{
document.addEventListener(e,t,n),r((()=>document.removeEventListener(e,t,n)))}))
}function p0(e,t,n=Aa((()=>!0))){function r(r,o){
if(!n.value||r.defaultPrevented)return;let i=o(r)
;if(null===i||!i.getRootNode().contains(i))return;let a=function e(t){
return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)
;for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:WJ(e)
;if(null!=t&&t.contains(i)||r.composed&&r.composedPath().includes(t))return}
return!i0(i,o0.Loose)&&-1!==i.tabIndex&&r.preventDefault(),t(r,i)}let o=Bn(null)
;d0("pointerdown",(e=>{var t,r
;n.value&&(o.value=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)
}),!0),d0("mousedown",(e=>{var t,r
;n.value&&(o.value=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)
}),!0),d0("click",(e=>{u0()||o.value&&(r(e,(()=>o.value)),o.value=null)
}),!0),d0("touchend",(e=>r(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),
function(e,t,n){KJ.isServer||ai((r=>{
window.addEventListener(e,t,n),r((()=>window.removeEventListener(e,t,n)))}))
}("blur",(e=>r(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)
}function h0(e,t){if(e)return e;let n=null!=t?t:"button"
;return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}
function f0(e,t){let n=Bn(h0(e.value.type,e.value.as));return Ur((()=>{
n.value=h0(e.value.type,e.value.as)})),ai((()=>{var e
;n.value||WJ(t)&&WJ(t)instanceof HTMLButtonElement&&(null==(e=WJ(t))||!e.hasAttribute("type"))&&(n.value="button")
})),n}function m0(e){return[e.screenX,e.screenY]}var g0=(e=>(e[e.None=0]="None",
e[e.RenderStrategy=1]="RenderStrategy",
e[e.Static=2]="Static",e))(g0||{}),v0=(e=>(e[e.Unmount=0]="Unmount",
e[e.Hidden=1]="Hidden",e))(v0||{})
;function b0({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){var i
;let a=w0(r,n),s=Object.assign(o,{props:a});if(e||2&t&&a.static)return O0(s)
;if(1&t){return XJ(null==(i=a.unmount)||i?0:1,{0:()=>null,1:()=>O0({...o,props:{
...a,hidden:!0,style:{display:"none"}}})})}return O0(s)}
function O0({props:e,attrs:t,slots:n,slot:r,name:o}){var i,a
;let{as:s,...l}=x0(e,["unmount","static"]),c=null==(i=n.default)?void 0:i.call(n,r),u={}
;if(r){let e=!1,t=[]
;for(let[n,o]of Object.entries(r))"boolean"==typeof o&&(e=!0),!0===o&&t.push(n)
;e&&(u["data-headlessui-state"]=t.join(" "))}if("template"===s){
if(c=y0(null!=c?c:[]),Object.keys(l).length>0||Object.keys(t).length>0){
let[e,...n]=null!=c?c:[];if(!function(e){
return null!=e&&("string"==typeof e.type||"object"==typeof e.type||"function"==typeof e.type)
}(e)||n.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${o} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(l).concat(Object.keys(t)).map((e=>e.trim())).filter(((e,t,n)=>n.indexOf(e)===t)).sort(((e,t)=>e.localeCompare(t))).map((e=>`  - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>`  - ${e}`)).join("\n")].join("\n"))
;let r=w0(null!=(a=e.props)?a:{},l,u),i=ra(e,r,!0)
;for(let t in r)t.startsWith("on")&&(i.props||(i.props={}),i.props[t]=r[t])
;return i}return Array.isArray(c)&&1===c.length?c[0]:c}
return Pa(s,Object.assign({},l,u),{default:()=>c})}function y0(e){
return e.flatMap((e=>e.type===Bi?y0(e.children):[e]))}function w0(...e){
if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={}
;for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),
n[e].push(r[e])):t[e]=r[e]
;if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))))
;for(let r in n)Object.assign(t,{[r](e,...t){let o=n[r];for(let n of o){
if(e instanceof Event&&e.defaultPrevented)return;n(e,...t)}}});return t}
function x0(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r]
;return n}
var k0=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",
e))(k0||{});let S0=eo({name:"Hidden",props:{as:{type:[Object,String],
default:"div"},features:{type:Number,default:1}},
setup:(e,{slots:t,attrs:n})=>()=>{var r;let{features:o,...i}=e;return b0({
ourProps:{"aria-hidden":!(2&~o)||(null!=(r=i["aria-hidden"])?r:void 0),
hidden:!(4&~o)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,
padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",
whiteSpace:"nowrap",borderWidth:"0",...!(4&~o)&&!!(2&~o)&&{display:"none"}}},
theirProps:i,slot:{},attrs:n,slots:t,name:"Hidden"})}}),_0=Symbol("Context")
;var E0=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",
e[e.Opening=8]="Opening",e))(E0||{});function T0(){return $o(_0,null)}
function C0(e){Do(_0,e)}
var A0=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",
e.Backspace="Backspace",
e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",
e.ArrowRight="ArrowRight",
e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",
e.PageDown="PageDown",e.Tab="Tab",e))(A0||{})
;var P0=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",
e[e.Last=3]="Last",
e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(P0||{})
;function D0(e,t){let n=t.resolveItems();if(n.length<=0)return null
;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:
for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r
;case 1:-1===o&&(o=n.length)
;for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r
;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e
;return r;case 3:
for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r
;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r
;return r;case 5:return null;default:!function(e){
throw new Error("Unexpected object: "+e)}(e)}}function $0(e={},t=null,n=[]){
for(let[r,o]of Object.entries(e))N0(n,R0(t,r),o);return n}function R0(e,t){
return e?e+"["+t+"]":t}function N0(e,t,n){
if(Array.isArray(n))for(let[r,o]of n.entries())N0(e,R0(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):$0(n,t,e)
}var I0=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(I0||{})
;let M0=Symbol("DisclosureContext");function L0(e){let t=$o(M0,null)
;if(null===t){
let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`)
;throw Error.captureStackTrace&&Error.captureStackTrace(t,L0),t}return t}
let B0=Symbol("DisclosurePanelContext");let Q0=eo({name:"Disclosure",props:{as:{
type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}
},setup(e,{slots:t,attrs:n}){
let r=Bn(e.defaultOpen?0:1),o=Bn(null),i=Bn(null),a={
buttonId:Bn(`headlessui-disclosure-button-${VJ()}`),
panelId:Bn(`headlessui-disclosure-panel-${VJ()}`),disclosureState:r,panel:o,
button:i,toggleDisclosure(){r.value=XJ(r.value,{0:1,1:0})},closeDisclosure(){
1!==r.value&&(r.value=1)},close(e){a.closeDisclosure()
;let t=e?e instanceof HTMLElement?e:e.value instanceof HTMLElement?WJ(e):WJ(a.button):WJ(a.button)
;null==t||t.focus()}};return Do(M0,a),C0(Aa((()=>XJ(r.value,{0:E0.Open,
1:E0.Closed})))),()=>{let{defaultOpen:o,...i}=e;return b0({theirProps:i,
ourProps:{},slot:{open:0===r.value,close:a.close},slots:t,attrs:n,
name:"Disclosure"})}}}),j0=eo({name:"DisclosureButton",props:{as:{
type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{
type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){
let o=L0("DisclosureButton"),i=$o(B0,null),a=Aa((()=>null!==i&&i.value===o.panelId.value))
;Ur((()=>{a.value||null!==e.id&&(o.buttonId.value=e.id)})),Hr((()=>{
a.value||(o.buttonId.value=null)}));let s=Bn(null);r({el:s,$el:s
}),a.value||ai((()=>{o.button.value=s.value}));let l=f0(Aa((()=>({as:e.as,
type:t.type}))),s);function c(){var t
;e.disabled||(a.value?(o.toggleDisclosure(),
null==(t=WJ(o.button))||t.focus()):o.toggleDisclosure())}function u(t){var n
;if(!e.disabled)if(a.value)switch(t.key){case A0.Space:case A0.Enter:
t.preventDefault(),
t.stopPropagation(),o.toggleDisclosure(),null==(n=WJ(o.button))||n.focus()
}else switch(t.key){case A0.Space:case A0.Enter:
t.preventDefault(),t.stopPropagation(),o.toggleDisclosure()}}function d(e){
if(e.key===A0.Space)e.preventDefault()}return()=>{var r;let i={
open:0===o.disclosureState.value},{id:p,...h}=e;return b0({ourProps:a.value?{
ref:s,type:l.value,onClick:c,onKeydown:u}:{id:null!=(r=o.buttonId.value)?r:p,
ref:s,type:l.value,"aria-expanded":0===o.disclosureState.value,
"aria-controls":0===o.disclosureState.value||WJ(o.panel)?o.panelId.value:void 0,
disabled:!!e.disabled||void 0,onClick:c,onKeydown:u,onKeyup:d},theirProps:h,
slot:i,attrs:t,slots:n,name:"DisclosureButton"})}}}),U0=eo({
name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{
type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,
default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=L0("DisclosurePanel")
;Ur((()=>{null!==e.id&&(o.panelId.value=e.id)})),Hr((()=>{o.panelId.value=null
})),r({el:o.panel,$el:o.panel}),Do(B0,o.panelId)
;let i=T0(),a=Aa((()=>null!==i?(i.value&E0.Open)===E0.Open:0===o.disclosureState.value))
;return()=>{var r;let i={open:0===o.disclosureState.value,close:o.close
},{id:s,...l}=e;return b0({ourProps:{id:null!=(r=o.panelId.value)?r:s,
ref:o.panel},theirProps:l,slot:i,attrs:t,slots:n,
features:g0.RenderStrategy|g0.Static,visible:a.value,name:"DisclosurePanel"})}}
}),F0=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g
;function q0(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0)
;if(!(o instanceof HTMLElement))return r;let i=!1
;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),
i=!0;let a=i?null!=(n=o.innerText)?n:"":r
;return F0.test(a)&&(a=a.replace(F0,"")),a}function z0(e){let t=Bn(""),n=Bn("")
;return()=>{let r=WJ(e);if(!r)return"";let o=r.innerText
;if(t.value===o)return n.value;let i=function(e){
let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim()
;let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{
let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label")
;return"string"==typeof e?e.trim():q0(t).trim()}return null})).filter(Boolean)
;if(e.length>0)return e.join(", ")}return q0(e).trim()}(r).trim().toLowerCase()
;return t.value=o,n.value=i,i}}function H0(e,t){return e===t}
var Z0=(e=>(e[e.Open=0]="Open",
e[e.Closed=1]="Closed",e))(Z0||{}),V0=(e=>(e[e.Single=0]="Single",
e[e.Multi=1]="Multi",
e))(V0||{}),W0=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(W0||{})
;let X0=Symbol("ListboxContext");function Y0(e){let t=$o(X0,null);if(null===t){
let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`)
;throw Error.captureStackTrace&&Error.captureStackTrace(t,Y0),t}return t}
let G0=eo({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{
type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},
by:{type:[String,Function],default:()=>H0},horizontal:{type:[Boolean],default:!1
},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{
type:[Object,String,Number,Boolean],default:void 0},form:{type:String,
optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}
},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:r}){
let o=Bn(1),i=Bn(null),a=Bn(null),s=Bn(null),l=Bn([]),c=Bn(""),u=Bn(null),d=Bn(1)
;function p(e=e=>e){
let t=null!==u.value?l.value[u.value]:null,n=l0(e(l.value.slice()),(e=>WJ(e.dataRef.domRef))),r=t?n.indexOf(t):null
;return-1===r&&(r=null),{options:n,activeOptionIndex:r}}
let h=Aa((()=>e.multiple?1:0)),[f,m]=function(e,t,n){
let r=Bn(null==n?void 0:n.value),o=Aa((()=>void 0!==e.value))
;return[Aa((()=>o.value?e.value:r.value)),function(e){
return o.value||(r.value=e),null==t?void 0:t(e)}]
}(Aa((()=>e.modelValue)),(e=>r("update:modelValue",e)),Aa((()=>e.defaultValue))),g=Aa((()=>void 0===f.value?XJ(h.value,{
1:[],0:void 0}):f.value)),v={listboxState:o,value:g,mode:h,compare(t,n){
if("string"==typeof e.by){let r=e.by
;return(null==t?void 0:t[r])===(null==n?void 0:n[r])}return e.by(t,n)},
orientation:Aa((()=>e.horizontal?"horizontal":"vertical")),labelRef:i,
buttonRef:a,optionsRef:s,disabled:Aa((()=>e.disabled)),options:l,searchQuery:c,
activeOptionIndex:u,activationTrigger:d,closeListbox(){
e.disabled||1!==o.value&&(o.value=1,u.value=null)},openListbox(){
e.disabled||0!==o.value&&(o.value=0)},goToOption(t,n,r){
if(e.disabled||1===o.value)return;let i=p(),a=D0(t===P0.Specific?{
focus:P0.Specific,id:n}:{focus:t},{resolveItems:()=>i.options,
resolveActiveIndex:()=>i.activeOptionIndex,resolveId:e=>e.id,
resolveDisabled:e=>e.dataRef.disabled})
;c.value="",u.value=a,d.value=null!=r?r:1,l.value=i.options},search(t){
if(e.disabled||1===o.value)return;let n=""!==c.value?0:1
;c.value+=t.toLowerCase()
;let r=(null!==u.value?l.value.slice(u.value+n).concat(l.value.slice(0,u.value+n)):l.value).find((e=>e.dataRef.textValue.startsWith(c.value)&&!e.dataRef.disabled)),i=r?l.value.indexOf(r):-1
;-1===i||i===u.value||(u.value=i,d.value=1)},clearSearch(){
e.disabled||1!==o.value&&""!==c.value&&(c.value="")},registerOption(e,t){
let n=p((n=>[...n,{id:e,dataRef:t}]))
;l.value=n.options,u.value=n.activeOptionIndex},unregisterOption(e){
let t=p((t=>{let n=t.findIndex((t=>t.id===e));return-1!==n&&t.splice(n,1),t}))
;l.value=t.options,u.value=t.activeOptionIndex,d.value=1},theirOnChange(t){
e.disabled||m(t)},select(t){e.disabled||m(XJ(h.value,{0:()=>t,1:()=>{
let e=Pn(v.value.value).slice(),n=Pn(t),r=e.findIndex((e=>v.compare(n,Pn(e))))
;return-1===r?e.push(n):e.splice(r,1),e}}))}};p0([a,s],((e,t)=>{var n
;v.closeListbox(),
i0(t,o0.Loose)||(e.preventDefault(),null==(n=WJ(a))||n.focus())
}),Aa((()=>0===o.value))),Do(X0,v),C0(Aa((()=>XJ(o.value,{0:E0.Open,1:E0.Closed
}))));let b=Aa((()=>{var e;return null==(e=WJ(a))?void 0:e.closest("form")}))
;return Ur((()=>{li([b],(()=>{
if(b.value&&void 0!==e.defaultValue)return b.value.addEventListener("reset",t),
()=>{var e;null==(e=b.value)||e.removeEventListener("reset",t)};function t(){
v.theirOnChange(e.defaultValue)}}),{immediate:!0})})),()=>{
let{name:r,modelValue:i,disabled:a,form:s,...l}=e,c={open:0===o.value,
disabled:a,value:g.value};return Pa(Bi,[...null!=r&&null!=g.value?$0({
[r]:g.value}).map((([e,t])=>Pa(S0,function(e){let t=Object.assign({},e)
;for(let n in t)void 0===t[n]&&delete t[n];return t}({features:k0.Hidden,key:e,
as:"input",type:"hidden",hidden:!0,readOnly:!0,form:s,disabled:a,name:e,value:t
})))):[],b0({ourProps:{},theirProps:{...n,
...x0(l,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},
slot:c,slots:t,attrs:n,name:"Listbox"})])}}}),K0=eo({name:"ListboxButton",
props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}
},setup(e,{attrs:t,slots:n,expose:r}){var o
;let i=null!=(o=e.id)?o:`headlessui-listbox-button-${VJ()}`,a=Y0("ListboxButton")
;function s(e){switch(e.key){case A0.Space:case A0.Enter:case A0.ArrowDown:
e.preventDefault(),a.openListbox(),dr((()=>{var e
;null==(e=WJ(a.optionsRef))||e.focus({preventScroll:!0
}),a.value.value||a.goToOption(P0.First)}));break;case A0.ArrowUp:
e.preventDefault(),a.openListbox(),dr((()=>{var e
;null==(e=WJ(a.optionsRef))||e.focus({preventScroll:!0
}),a.value.value||a.goToOption(P0.Last)}))}}function l(e){
if(e.key===A0.Space)e.preventDefault()}function c(e){
a.disabled.value||(0===a.listboxState.value?(a.closeListbox(),dr((()=>{var e
;return null==(e=WJ(a.buttonRef))?void 0:e.focus({preventScroll:!0})
}))):(e.preventDefault(),a.openListbox(),function(e){
requestAnimationFrame((()=>requestAnimationFrame(e)))}((()=>{var e
;return null==(e=WJ(a.optionsRef))?void 0:e.focus({preventScroll:!0})}))))}r({
el:a.buttonRef,$el:a.buttonRef});let u=f0(Aa((()=>({as:e.as,type:t.type
}))),a.buttonRef);return()=>{var r,o;let d={open:0===a.listboxState.value,
disabled:a.disabled.value,value:a.value.value},{...p}=e;return b0({ourProps:{
ref:a.buttonRef,id:i,type:u.value,"aria-haspopup":"listbox",
"aria-controls":null==(r=WJ(a.optionsRef))?void 0:r.id,
"aria-expanded":0===a.listboxState.value,
"aria-labelledby":a.labelRef.value?[null==(o=WJ(a.labelRef))?void 0:o.id,i].join(" "):void 0,
disabled:!0===a.disabled.value||void 0,onKeydown:s,onKeyup:l,onClick:c},
theirProps:p,slot:d,attrs:t,slots:n,name:"ListboxButton"})}}}),J0=eo({
name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{
type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,
default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o
;let i=null!=(o=e.id)?o:`headlessui-listbox-options-${VJ()}`,a=Y0("ListboxOptions"),s=Bn(null)
;function l(e){switch(s.value&&clearTimeout(s.value),e.key){case A0.Space:
if(""!==a.searchQuery.value)return e.preventDefault(),
e.stopPropagation(),a.search(e.key);case A0.Enter:
if(e.preventDefault(),e.stopPropagation(),null!==a.activeOptionIndex.value){
let e=a.options.value[a.activeOptionIndex.value];a.select(e.dataRef.value)}
0===a.mode.value&&(a.closeListbox(),dr((()=>{var e
;return null==(e=WJ(a.buttonRef))?void 0:e.focus({preventScroll:!0})})));break
;case XJ(a.orientation.value,{vertical:A0.ArrowDown,horizontal:A0.ArrowRight}):
return e.preventDefault(),e.stopPropagation(),a.goToOption(P0.Next)
;case XJ(a.orientation.value,{vertical:A0.ArrowUp,horizontal:A0.ArrowLeft}):
return e.preventDefault(),e.stopPropagation(),a.goToOption(P0.Previous)
;case A0.Home:case A0.PageUp:
return e.preventDefault(),e.stopPropagation(),a.goToOption(P0.First)
;case A0.End:case A0.PageDown:
return e.preventDefault(),e.stopPropagation(),a.goToOption(P0.Last)
;case A0.Escape:
e.preventDefault(),e.stopPropagation(),a.closeListbox(),dr((()=>{var e
;return null==(e=WJ(a.buttonRef))?void 0:e.focus({preventScroll:!0})}));break
;case A0.Tab:e.preventDefault(),e.stopPropagation();break;default:
1===e.key.length&&(a.search(e.key),
s.value=setTimeout((()=>a.clearSearch()),350))}}r({el:a.optionsRef,
$el:a.optionsRef})
;let c=T0(),u=Aa((()=>null!==c?(c.value&E0.Open)===E0.Open:0===a.listboxState.value))
;return()=>{var r,o;let s={open:0===a.listboxState.value},{...c}=e;return b0({
ourProps:{
"aria-activedescendant":null===a.activeOptionIndex.value||null==(r=a.options.value[a.activeOptionIndex.value])?void 0:r.id,
"aria-multiselectable":1===a.mode.value||void 0,
"aria-labelledby":null==(o=WJ(a.buttonRef))?void 0:o.id,
"aria-orientation":a.orientation.value,id:i,onKeydown:l,role:"listbox",
tabIndex:0,ref:a.optionsRef},theirProps:c,slot:s,attrs:t,slots:n,
features:g0.RenderStrategy|g0.Static,visible:u.value,name:"ListboxOptions"})}}
}),e1=eo({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},
value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},
id:{type:String,default:null}},setup(e,{slots:t,attrs:n,expose:r}){var o
;let i=null!=(o=e.id)?o:`headlessui-listbox-option-${VJ()}`,a=Y0("ListboxOption"),s=Bn(null)
;r({el:s,$el:s})
;let l=Aa((()=>null!==a.activeOptionIndex.value&&a.options.value[a.activeOptionIndex.value].id===i)),c=Aa((()=>XJ(a.mode.value,{
0:()=>a.compare(Pn(a.value.value),Pn(e.value)),
1:()=>Pn(a.value.value).some((t=>a.compare(Pn(t),Pn(e.value))))
}))),u=Aa((()=>XJ(a.mode.value,{1:()=>{var e;let t=Pn(a.value.value)
;return(null==(e=a.options.value.find((e=>t.some((t=>a.compare(Pn(t),Pn(e.dataRef.value)))))))?void 0:e.id)===i
},0:()=>c.value}))),d=z0(s),p=Aa((()=>({disabled:e.disabled,value:e.value,
get textValue(){return d()},domRef:s})));function h(t){
if(e.disabled)return t.preventDefault()
;a.select(e.value),0===a.mode.value&&(a.closeListbox(),dr((()=>{var e
;return null==(e=WJ(a.buttonRef))?void 0:e.focus({preventScroll:!0})})))}
function f(){if(e.disabled)return a.goToOption(P0.Nothing)
;a.goToOption(P0.Specific,i)}
Ur((()=>a.registerOption(i,p))),Hr((()=>a.unregisterOption(i))),Ur((()=>{
li([a.listboxState,c],(()=>{0===a.listboxState.value&&c.value&&XJ(a.mode.value,{
1:()=>{u.value&&a.goToOption(P0.Specific,i)},0:()=>{a.goToOption(P0.Specific,i)}
})}),{immediate:!0})})),ai((()=>{
0===a.listboxState.value&&l.value&&0!==a.activationTrigger.value&&dr((()=>{
var e,t
;return null==(t=null==(e=WJ(s))?void 0:e.scrollIntoView)?void 0:t.call(e,{
block:"nearest"})}))}));let m=function(){let e=Bn([-1,-1]);return{wasMoved(t){
let n=m0(t);return(e.value[0]!==n[0]||e.value[1]!==n[1])&&(e.value=n,!0)},
update(t){e.value=m0(t)}}}();function g(e){m.update(e)}function v(t){
m.wasMoved(t)&&(e.disabled||l.value||a.goToOption(P0.Specific,i,0))}
function b(t){m.wasMoved(t)&&(e.disabled||l.value&&a.goToOption(P0.Nothing))}
return()=>{let{disabled:r}=e,o={active:l.value,selected:c.value,disabled:r
},{value:a,disabled:u,...d}=e;return b0({ourProps:{id:i,ref:s,role:"option",
tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,
"aria-selected":c.value,disabled:void 0,onClick:h,onFocus:f,onPointerenter:g,
onMouseenter:g,onPointermove:v,onMousemove:v,onPointerleave:b,onMouseleave:b},
theirProps:d,slot:o,attrs:n,slots:t,name:"ListboxOption"})}}}),t1=eo({props:{
onFocus:{type:Function,required:!0}},setup(e){let t=Bn(!0)
;return()=>t.value?Pa(S0,{as:"button",type:"button",features:k0.Focusable,
onFocus(n){n.preventDefault();let r,o=50;r=requestAnimationFrame((function n(){
var i
;if(!(o--<=0))return null!=(i=e.onFocus)&&i.call(e)?(t.value=!1,void cancelAnimationFrame(r)):void(r=requestAnimationFrame(n))
;r&&cancelAnimationFrame(r)}))}}):null}})
;var n1,r1=(e=>(e[e.Forwards=0]="Forwards",
e[e.Backwards=1]="Backwards",e))(r1||{}),o1=((n1=o1||{})[n1.Less=-1]="Less",
n1[n1.Equal=0]="Equal",n1[n1.Greater=1]="Greater",n1)
;let i1=Symbol("TabsContext");function a1(e){let t=$o(i1,null);if(null===t){
let t=new Error(`<${e} /> is missing a parent <TabGroup /> component.`)
;throw Error.captureStackTrace&&Error.captureStackTrace(t,a1),t}return t}
let s1=Symbol("TabsSSRContext"),l1=eo({name:"TabGroup",emits:{change:e=>!0},
props:{as:{type:[Object,String],default:"template"},selectedIndex:{
type:[Number],default:null},defaultIndex:{type:[Number],default:0},vertical:{
type:[Boolean],default:!1},manual:{type:[Boolean],default:!1}},inheritAttrs:!1,
setup(e,{slots:t,attrs:n,emit:r}){var o
;let i=Bn(null!=(o=e.selectedIndex)?o:e.defaultIndex),a=Bn([]),s=Bn([]),l=Aa((()=>null!==e.selectedIndex)),c=Aa((()=>l.value?e.selectedIndex:i.value))
;function u(e){var t
;let n=l0(d.tabs.value,WJ),r=l0(d.panels.value,WJ),o=n.filter((e=>{var t
;return!(null!=(t=WJ(e))&&t.hasAttribute("disabled"))}));if(e<0||e>n.length-1){
let t=XJ(null===i.value?0:Math.sign(e-i.value),{[-1]:()=>1,
0:()=>XJ(Math.sign(e),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),a=XJ(t,{
0:()=>n.indexOf(o[0]),1:()=>n.indexOf(o[o.length-1])})
;-1!==a&&(i.value=a),d.tabs.value=n,d.panels.value=r}else{
let a=n.slice(0,e),s=[...n.slice(e),...a].find((e=>o.includes(e)));if(!s)return
;let l=null!=(t=n.indexOf(s))?t:d.selectedIndex.value
;-1===l&&(l=d.selectedIndex.value),i.value=l,d.tabs.value=n,d.panels.value=r}}
let d={selectedIndex:Aa((()=>{var t,n
;return null!=(n=null!=(t=i.value)?t:e.defaultIndex)?n:null})),
orientation:Aa((()=>e.vertical?"vertical":"horizontal")),
activation:Aa((()=>e.manual?"manual":"auto")),tabs:a,panels:s,
setSelectedIndex(e){c.value!==e&&r("change",e),l.value||u(e)},registerTab(e){
var t;if(a.value.includes(e))return;let n=a.value[i.value]
;if(a.value.push(e),a.value=l0(a.value,WJ),!l.value){
let e=null!=(t=a.value.indexOf(n))?t:i.value;-1!==e&&(i.value=e)}},
unregisterTab(e){let t=a.value.indexOf(e);-1!==t&&a.value.splice(t,1)},
registerPanel(e){s.value.includes(e)||(s.value.push(e),s.value=l0(s.value,WJ))},
unregisterPanel(e){let t=s.value.indexOf(e);-1!==t&&s.value.splice(t,1)}}
;Do(i1,d);let p=Bn({tabs:[],panels:[]}),h=Bn(!1);Ur((()=>{h.value=!0
})),Do(s1,Aa((()=>h.value?null:p.value)));let f=Aa((()=>e.selectedIndex))
;return Ur((()=>{li([f],(()=>{var t
;return u(null!=(t=e.selectedIndex)?t:e.defaultIndex)}),{immediate:!0})
})),ai((()=>{if(!l.value||null==c.value||d.tabs.value.length<=0)return
;let e=l0(d.tabs.value,WJ)
;e.some(((e,t)=>WJ(d.tabs.value[t])!==WJ(e)))&&d.setSelectedIndex(e.findIndex((e=>WJ(e)===WJ(d.tabs.value[c.value]))))
})),()=>{let r={selectedIndex:i.value};return Pa(Bi,[a.value.length<=0&&Pa(t1,{
onFocus:()=>{for(let e of a.value){let t=WJ(e)
;if(0===(null==t?void 0:t.tabIndex))return t.focus(),!0}return!1}}),b0({
theirProps:{...n,
...x0(e,["selectedIndex","defaultIndex","manual","vertical","onChange"])},
ourProps:{},slot:r,slots:t,attrs:n,name:"TabGroup"})])}}}),c1=eo({
name:"TabList",props:{as:{type:[Object,String],default:"div"}},
setup(e,{attrs:t,slots:n}){let r=a1("TabList");return()=>{let o={
selectedIndex:r.selectedIndex.value};return b0({ourProps:{role:"tablist",
"aria-orientation":r.orientation.value},theirProps:e,slot:o,attrs:t,slots:n,
name:"TabList"})}}}),u1=eo({name:"Tab",props:{as:{type:[Object,String],
default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,
default:null}},setup(e,{attrs:t,slots:n,expose:r}){var o
;let i=null!=(o=e.id)?o:`headlessui-tabs-tab-${VJ()}`,a=a1("Tab"),s=Bn(null);r({
el:s,$el:s}),Ur((()=>a.registerTab(s))),Hr((()=>a.unregisterTab(s)))
;let l=$o(s1),c=Aa((()=>{if(l.value){let e=l.value.tabs.indexOf(i)
;return-1===e?l.value.tabs.push(i)-1:e}return-1})),u=Aa((()=>{
let e=a.tabs.value.indexOf(s);return-1===e?c.value:e
})),d=Aa((()=>u.value===a.selectedIndex.value));function p(e){var t;let n=e()
;if(n===n0.Success&&"auto"===a.activation.value){
let e=null==(t=JJ(s))?void 0:t.activeElement,n=a.tabs.value.findIndex((t=>WJ(t)===e))
;-1!==n&&a.setSelectedIndex(n)}return n}function h(e){
let t=a.tabs.value.map((e=>WJ(e))).filter(Boolean)
;if(e.key===A0.Space||e.key===A0.Enter)return e.preventDefault(),
e.stopPropagation(),void a.setSelectedIndex(u.value);switch(e.key){case A0.Home:
case A0.PageUp:
return e.preventDefault(),e.stopPropagation(),p((()=>c0(t,t0.First)))
;case A0.End:case A0.PageDown:
return e.preventDefault(),e.stopPropagation(),p((()=>c0(t,t0.Last)))}
return p((()=>XJ(a.orientation.value,{
vertical:()=>e.key===A0.ArrowUp?c0(t,t0.Previous|t0.WrapAround):e.key===A0.ArrowDown?c0(t,t0.Next|t0.WrapAround):n0.Error,
horizontal:()=>e.key===A0.ArrowLeft?c0(t,t0.Previous|t0.WrapAround):e.key===A0.ArrowRight?c0(t,t0.Next|t0.WrapAround):n0.Error
})))===n0.Success?e.preventDefault():void 0}let f=Bn(!1);function m(){var t
;f.value||(f.value=!0,!e.disabled&&(null==(t=WJ(s))||t.focus({preventScroll:!0
}),a.setSelectedIndex(u.value),function(e){
"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{
throw e}))))}((()=>{f.value=!1}))))}function g(e){e.preventDefault()}
let v=f0(Aa((()=>({as:e.as,type:t.type}))),s);return()=>{var r,o;let l={
selected:d.value,disabled:null!=(r=e.disabled)&&r},{...c}=e;return b0({
ourProps:{ref:s,onKeydown:h,onMousedown:g,onClick:m,id:i,role:"tab",
type:v.value,"aria-controls":null==(o=WJ(a.panels.value[u.value]))?void 0:o.id,
"aria-selected":d.value,tabIndex:d.value?0:-1,disabled:!!e.disabled||void 0},
theirProps:c,slot:l,attrs:t,slots:n,name:"Tab"})}}});const d1=eo({
__name:"ApiClientModal",props:{proxyUrl:{},spec:{},servers:{}},setup(e){
const t=e,n=Bn(null),r=Bn(null),{server:o}=mp();return Ur((async()=>{
if(!n.value)return
;const{createApiClientModal:e}=await Promise.resolve().then((()=>Bne)),{app:o,open:i,updateAuth:a,modalState:s,updateSpec:l,updateServer:c}=await e(n.value,{
spec:t.spec??{},proxyUrl:t.proxyUrl,servers:t.servers});r.value={app:o,
updateSpec:l,updateServer:c},LJ.emit(s),MJ.on((e=>{
e.open&&i(e.open),e.updateSpec&&l(e.updateSpec),e.updateAuth&&a(e.updateAuth)}))
})),li(o,(e=>{const t=Md(e);t&&r.value&&r.value.updateServer(t)
})),li((()=>t.spec),(e=>{var t
;return e&&(null==(t=r.value)?void 0:t.updateSpec(e))}),{deep:!0}),zr((()=>{
var e;return null==(e=r.value)?void 0:e.app.unmount()})),(e,t)=>(zi(),Wi("div",{
ref_key:"el",ref:n},null,512))}}),p1=["title","innerHTML"],h1=$K(eo({
__name:"ServerUrl",props:{server:{},variables:{}},setup(e){const t=e,n=Aa((()=>{
var e
;return Pd(((null==(e=t.server)?void 0:e.url)??"").replace(/(<([^>]+)>)/gi,""),(e=>{
var n;const r=(null==(n=t.variables)?void 0:n[e])??""
;return`<span class="base-url-variable">${""!==r?r:`{${e}}`}</span>`}))}))
;return(e,t)=>e.server?(zi(),Wi("a",{key:0,class:"base-url",
title:e.server.description,innerHTML:n.value},null,8,p1)):aa("",!0)}
}),[["__scopeId","data-v-41e1c30c"]]),f1={class:"w-full"},m1={
class:"custom-scroll"},g1=$K(eo({__name:"ServerUrlSelect",props:{options:{},
value:{}},emits:["change"],setup(e,{emit:t}){
const n=e,r=t,o=Aa((()=>n.options.map(((e,t)=>({id:t.toString(),label:e.url??""
}))))),i=Aa({get:()=>{var e
;return null==(e=o.value)?void 0:e.find((e=>e.id===n.value.toString()))},
set:e=>r("change",(null==e?void 0:e.id)??"")})
;return(e,t)=>(zi(),Wi("div",f1,[ta(Fn(yW),{modelValue:i.value,
"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),options:o.value,resize:""},{
default:Tr((()=>[ta(Fn(LI),{class:et(["url-select",{
"pointer-events-none":o.value.length<=1}]),fullWidth:"",variant:"ghost"},{
default:Tr((()=>[ea("span",m1,[no(e.$slots,"default",{},void 0,!0)]),o.value.length>1?(zi(),
Xi(Fn(xZ),{key:0,icon:"ChevronDown",size:"xs"})):aa("",!0)])),_:3
},8,["class"])])),_:3},8,["modelValue","options"])]))}
}),[["__scopeId","data-v-a3e94a85"]]),v1={class:"w-full"},b1=eo({
__name:"ServerVariablesSelect",props:{enum:{},value:{}},emits:["change"],
setup(e,{emit:t}){const n=e,r=t,o=Aa((()=>n.enum.map((e=>({id:e,label:e
}))))),i=Aa({get:()=>o.value.find((e=>e.id===n.value)),
set:e=>r("change",(null==e?void 0:e.id)??"")})
;return(e,t)=>(zi(),Wi("div",v1,[ta(Fn(yW),{modelValue:i.value,
"onUpdate:modelValue":t[0]||(t[0]=e=>i.value=e),options:o.value},{
default:Tr((()=>[ta(Fn(LI),{class:"variable-select",fullWidth:"",variant:"ghost"
},{default:Tr((()=>[ea("span",null,st(e.value),1),ta(Fn(xZ),{icon:"ChevronDown",
size:"xs"})])),_:1})])),_:1},8,["modelValue","options"])]))}
}),O1=$K(b1,[["__scopeId","data-v-4b092d90"]]),y1=$K(eo({
__name:"ServerVariablesTextbox",props:{value:{}},emits:["change"],
setup(e,{emit:t}){const n=e,r=t,o=Aa({get:()=>n.value,set:e=>r("change",e)})
;return(e,t)=>Yr((zi(),Wi("input",{
"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),autocomplete:"off",
class:"variable-textbox",placeholder:"value",spellcheck:"false",type:"text"
},null,512)),[[ks,o.value]])}}),[["__scopeId","data-v-fbcac0a4"]]),w1={key:0,
class:"variable-container"},x1=["for"],k1=eo({__name:"ServerVariablesForm",
props:{variables:{},values:{}},emits:["update:variable"],setup(e,{emit:t}){
const n=e,r=t;function o(e,t){r("update:variable",e,t)}const i=e=>{var t,r
;return((null==(t=n.values)?void 0:t[e])??(null==(r=n.variables)?void 0:r[e].default)??"").toString()
}
;return(e,t)=>e.variables&&Object.keys(e.variables??{}).length?(zi(),Wi("div",w1,[(zi(!0),
Wi(Bi,null,Kr(Object.keys(e.variables),(t=>{var n,r,a,s;return zi(),Wi("div",{
key:t,class:"variable-container-item"},[ea("label",{class:"variable-label",
for:`variable-${t}`
},[ea("code",null,st(t),1)],8,x1),(null==(r=null==(n=e.variables)?void 0:n[t].enum)?void 0:r.length)?(zi(),
Xi(O1,{key:0,
enum:(null==(s=null==(a=e.variables[t])?void 0:a.enum)?void 0:s.map((e=>`${e}`)))??[],
value:i(t),onChange:e=>o(t,e)
},null,8,["enum","value","onChange"])):(zi(),Xi(y1,{key:1,value:i(t),
onChange:e=>o(t,e)},null,8,["value","onChange"]))])})),128))])):aa("",!0)}
}),S1=$K(k1,[["__scopeId","data-v-d5675216"]]),_1=e=>(_r("data-v-465cec21"),
e=e(),Er(),e),E1={key:0},T1=_1((()=>ea("span",{class:"server-form-title"
},"Base URL",-1))),C1={class:"server-form"},A1={class:"server-form-container"
},P1={class:"server-item"},D1={key:0,muted:""},$1={class:"description"
},R1=$K(eo({__name:"ServerForm",props:{selected:{default:0},servers:{},
variables:{}},emits:["update:selected","update:variable"],setup(e,{emit:t}){
const n=e,r=t,o=Gn(Number(n.selected)),i=e=>{const t=parseInt(e,10)
;r("update:selected",t),o.value=t},a=Aa((()=>{var e
;return null==(e=n.servers)?void 0:e[o.value]}));return(e,t)=>{var n,r,s
;return(null==(n=e.servers)?void 0:n.length)?(zi(),
Wi("div",E1,[T1,ea("div",C1,[ea("div",A1,[ea("div",P1,[ta(g1,{options:e.servers,
value:o.value,onChange:i},{default:Tr((()=>[ta(h1,{server:a.value,
variables:e.variables},null,8,["server","variables"])])),_:1
},8,["options","value"])]),ta(S1,{values:e.variables,
variables:null==(r=a.value)?void 0:r.variables,
"onUpdate:variable":t[0]||(t[0]=(t,n)=>e.$emit("update:variable",t,n))
},null,8,["values","variables"])])]),(null==(s=a.value)?void 0:s.description)?(zi(),
Wi("div",D1,[ea("div",$1,[ta(Fn(cW),{value:a.value.description
},null,8,["value"])])])):aa("",!0)])):aa("",!0)}}
}),[["__scopeId","data-v-465cec21"]]),N1=eo({__name:"BaseUrl",props:{
specification:{},defaultServerUrl:{},servers:{}},setup(e){
const t=e,n=Gn(t.specification),r=Gn(t.defaultServerUrl),o=Gn(t.servers),{server:i,setServer:a}=mp({
specification:n,defaultServerUrl:r,servers:o}),s=Bn(0);function l(e,t){a({
variables:{...i.variables,[e]:t}})}return li(s,(()=>a({selectedServer:s.value
})),{immediate:!0}),(e,t)=>(zi(),Xi(R1,{selected:s.value,servers:Fn(i).servers,
variables:Fn(i).variables,"onUpdate:selected":t[0]||(t[0]=e=>{s.value=e}),
"onUpdate:variable":l},null,8,["selected","servers","variables"]))}}),I1={
class:"card-form"};const M1=$K({},[["render",function(e,t){
return zi(),Wi("form",I1,[no(e.$slots,"default",{},void 0,!0)])
}],["__scopeId","data-v-20e78fcd"]]),L1=$K(eo({__name:"CardFormButton",
setup(e,{expose:t}){const n=Bn();return t({el:n}),(e,t)=>(zi(),Wi("button",{
ref_key:"el",ref:n,class:"card-form-button",type:"button"
},[no(e.$slots,"default",{},void 0,!0)],512))}
}),[["__scopeId","data-v-502d153b"]]),B1={class:"card-form-group"}
;const Q1=$K({},[["render",function(e,t){
return zi(),Wi("div",B1,[no(e.$slots,"default",{},void 0,!0)])
}],["__scopeId","data-v-88abf5f7"]]),j1={class:"card-form-rows"}
;const U1=$K({},[["render",function(e,t){
return zi(),Wi("div",j1,[no(e.$slots,"default",{},void 0,!0)])
}],["__scopeId","data-v-1611fc76"]]),F1={class:"card-form-input"
},q1=["for"],z1=["id","type"],H1=$K(eo({inheritAttrs:!1,
__name:"CardFormTextInput",props:{id:{},type:{}},setup(e){
const t=e,n=Bn(!0),r=Aa((()=>"password"===t.type?n.value?"password":"text":t.type??"text"))
;return(e,t)=>(zi(),Wi("div",F1,[ea("label",{for:e.id
},[no(e.$slots,"default",{},void 0,!0)],8,q1),ea("input",ua(e.$attrs,{id:e.id,
autocomplete:"off","data-1p-ignore":"",spellcheck:"false",type:r.value
}),null,16,z1),"password"===e.type?(zi(),Xi(Fn(bW),{key:0,class:"password-mask",
icon:n.value?"Show":"Hide",label:n.value?"Show Password":"Hide Password",
onClick:t[0]||(t[0]=e=>n.value=!n.value)},null,8,["icon","label"])):aa("",!0)]))
}}),[["__scopeId","data-v-8e6b4182"]]);function Z1(e){if(function(e){
return null!=e&&"object"==typeof e&&"$el"in e}(e)){const t=e.$el
;return vV(t)&&"#comment"===fV(t)?null:t}return e}function V1(e){
if("undefined"==typeof window)return 1
;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}
function W1(e,t){const n=V1(e);return Math.round(t*n)/n}
const X1=e=>(_r("data-v-6d6455a4"),e=e(),Er(),e),Y1={class:"scopes-label"
},G1=X1((()=>ea("em",null,"/",-1))),K1=["checked"],J1={
class:"dropdown-item-title"},e2={class:"dropdown-item-description"},t2=eo({
__name:"SecuritySchemeScopes",props:{scopes:{},selected:{}},
emits:["update:selected"],setup(e,{emit:t}){
const n=e,r=t,o=Bn(),i=Bn(),{floatingStyles:a}=function(e,t,n){
void 0===n&&(n={});const r=n.whileElementsMounted,o=Aa((()=>{var e
;return null==(e=Fn(n.open))||e})),i=Aa((()=>Fn(n.middleware))),a=Aa((()=>{var e
;return null!=(e=Fn(n.placement))?e:"bottom"})),s=Aa((()=>{var e
;return null!=(e=Fn(n.strategy))?e:"absolute"})),l=Aa((()=>{var e
;return null==(e=Fn(n.transform))||e
})),c=Aa((()=>Z1(e.value))),u=Aa((()=>Z1(t.value))),d=Bn(0),p=Bn(0),h=Bn(s.value),f=Bn(a.value),m=Qn({}),g=Bn(!1),v=Aa((()=>{
const e={position:h.value,left:"0",top:"0"};if(!u.value)return e
;const t=W1(u.value,d.value),n=W1(u.value,p.value);return l.value?{...e,
transform:"translate("+t+"px, "+n+"px)",...V1(u.value)>=1.5&&{
willChange:"transform"}}:{position:h.value,left:t+"px",top:n+"px"}}));let b
;function O(){null!=c.value&&null!=u.value&&GV(c.value,u.value,{
middleware:i.value,placement:a.value,strategy:s.value}).then((e=>{
d.value=e.x,p.value=e.y,
h.value=e.strategy,f.value=e.placement,m.value=e.middlewareData,g.value=!0}))}
function y(){"function"==typeof b&&(b(),b=void 0)}return li([i,a,s],O,{
flush:"sync"}),li([c,u],(function(){
y(),void 0!==r?null==c.value||null==u.value||(b=r(c.value,u.value,O)):O()}),{
flush:"sync"}),li(o,(function(){o.value||(g.value=!1)}),{flush:"sync"
}),ft()&&mt(y),{x:Sn(d),y:Sn(p),strategy:Sn(h),placement:Sn(f),
middlewareData:Sn(m),isPositioned:Sn(g),floatingStyles:v,update:O}}(o,i,{
placement:"bottom-end",whileElementsMounted:VV,middleware:[WV(5),YV(),XV()]
}),s=Aa({get:()=>n.selected,set:e=>r("update:selected",e)})
;return(e,t)=>Object.keys(e.scopes??{}).length?(zi(),Xi(Fn(G0),{key:0,
modelValue:s.value,"onUpdate:modelValue":t[0]||(t[0]=e=>s.value=e),multiple:""
},{default:Tr((({open:t})=>[ea("div",{ref_key:"trigger",ref:o,
class:et(["wrapper",{"wrapper-open":t}])},[ta(Fn(K0),{as:L1},{
default:Tr((()=>[ea("div",Y1,[oa(" Scopes "+st(s.value.length),1),G1,oa(st(Object.entries(e.scopes??{}).length)+" ",1),ta(Fn(xZ),{
icon:t?"ChevronUp":"ChevronDown",size:"sm"},null,8,["icon"])])])),_:2
},1024)],2),(zi(),Xi(Mi,{to:"body"},[ea("div",{ref_key:"dropdown",ref:i,
class:"floating scalar-app",style:Xe(Fn(a))},[ta(Fn(J0),{as:"dl",
class:"dropdown"},{
default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(Object.entries(e.scopes??{}),(([e,t])=>(zi(),
Xi(Fn(e1),{key:e,as:"div",class:"dropdown-item",value:e},{
default:Tr((({selected:n})=>[ea("input",{checked:n,class:"dropdown-item-check",
tabindex:"-1",type:"checkbox"
},null,8,K1),ea("dt",J1,st(e),1),ea("dd",e2,st(t),1)])),_:2
},1032,["value"])))),128))])),_:1})],4)]))])),_:1},8,["modelValue"])):aa("",!0)}
}),n2=$K(t2,[["__scopeId","data-v-6d6455a4"]]),r2=$K(eo({
__name:"SecurityScheme",props:{value:{},proxy:{}},setup(e){
const{toast:t}=Dh(),{server:n}=mp(),{authentication:r,setAuthentication:o}=Wd(),i=e=>{
const t=e.target.value;o({apiKey:{...r.apiKey,token:t}
}),r.preferredSecurityScheme&&MJ.emit({updateAuth:{
nameKey:r.preferredSecurityScheme,propertyKey:"value",value:t}})},a=e=>{
const t=e.target.value;o({http:{...r.http,basic:{...r.http.basic,username:t}}}),
r.preferredSecurityScheme&&MJ.emit({updateAuth:{
nameKey:r.preferredSecurityScheme,propertyKey:"username",value:t}})},s=e=>{
const t=e.target.value;o({http:{...r.http,basic:{...r.http.basic,password:t}}}),
r.preferredSecurityScheme&&MJ.emit({updateAuth:{
nameKey:r.preferredSecurityScheme,propertyKey:"password",value:t}})},l=e=>{
const t=e.target.value;o({http:{...r.http,bearer:{...r.http.bearer,token:t}}
}),r.preferredSecurityScheme&&MJ.emit({updateAuth:{
nameKey:r.preferredSecurityScheme,propertyKey:"token",value:t}})},c=e=>{o({
oAuth2:{...r.oAuth2,clientId:e.target.value}})},u=e=>{o({oAuth2:{...r.oAuth2,
username:e.target.value}})},d=e=>{o({oAuth2:{...r.oAuth2,password:e.target.value
}})};const p=Aa({get:()=>r.oAuth2.scopes,set:e=>o({oAuth2:{...r.oAuth2,scopes:e}
})});return(e,h)=>{var f
;return e.value&&(null==(f=e.value)?void 0:f.type)?(zi(),Xi(M1,{key:0,
onSubmit:h[5]||(h[5]=$s((()=>{}),["prevent"]))},{
default:Tr((()=>["apiKey"===e.value.type?(zi(),Xi(H1,{key:0,
id:`security-scheme-${e.value.name}`,placeholder:"Token",type:"password",
value:Fn(r).apiKey.token,onInput:i},{default:Tr((()=>{var t,n,r
;return[e.value.in?(zi(),Wi(Bi,{key:0
},[oa(st((null==(n=null==(t=e.value.in)?void 0:t.charAt(0))?void 0:n.toUpperCase())+(null==(r=e.value.in)?void 0:r.slice(1))),1)],64)):aa("",!0),oa(" API ")]
})),_:1},8,["id","value"])):"http"===e.value.type||"basic"===e.value.type?(zi(),
Wi(Bi,{key:1},["basic"===e.value.type||"basic"===e.value.scheme?(zi(),Xi(Q1,{
key:0},{default:Tr((()=>[ta(H1,{id:"http.basic.username",placeholder:"Username",
value:Fn(r).http.basic.username,onInput:a},{
default:Tr((()=>[oa(" Username ")])),_:1},8,["value"]),ta(H1,{
id:"http.basic.password",placeholder:"Password",type:"password",
value:Fn(r).http.basic.password,onInput:s},{
default:Tr((()=>[oa(" Password ")])),_:1},8,["value"])])),_:1
})):"http"===e.value.type&&"bearer"===e.value.scheme?(zi(),Xi(H1,{key:1,
id:"http.bearer.token",placeholder:"Token",type:"password",
value:Fn(r).http.bearer.token,onInput:l},{
default:Tr((()=>[oa(" Bearer Token ")])),_:1
},8,["value"])):aa("",!0)],64)):"oauth2"===e.value.type.toLowerCase()&&e.value.flows?(zi(),
Xi(Q1,{key:2},{default:Tr((()=>{var i,a
;return[e.value.flows.implicit?(zi(),Wi(Bi,{key:0
},[Fn(r).oAuth2.accessToken?(zi(),Wi(Bi,{key:0},[ta(H1,{id:"oAuth2.accessToken",
placeholder:"xxxxx",type:"password",value:Fn(r).oAuth2.accessToken},{
default:Tr((()=>[oa(" Access Token ")])),_:1},8,["value"]),ta(L1,{
onClick:h[0]||(h[0]=()=>Fn(o)({oAuth2:{...Fn(r).oAuth2,accessToken:"",state:""}
}))},{default:Tr((()=>[oa(" Reset ")])),_:1
})],64)):aa("",!0)],64)):aa("",!0),(null==(a=null==(i=e.value)?void 0:i.flows)?void 0:a.password)?(zi(),
Xi(U1,{key:1},{default:Tr((()=>[ta(Q1,null,{default:Tr((()=>[ta(H1,{
id:"oAuth2.username",placeholder:"Username",value:Fn(r).oAuth2.username,
onInput:u},{default:Tr((()=>[oa(" Username ")])),_:1},8,["value"]),ta(H1,{
id:"oAuth2.password",placeholder:"Password",type:"password",
value:Fn(r).oAuth2.password,onInput:d},{default:Tr((()=>[oa(" Password ")])),_:1
},8,["value"])])),_:1}),ta(Q1,null,{default:Tr((()=>{var i,a,s,l,u,d,f,m,g,v,b
;return[ta(H1,{id:"oAuth2.clientId",placeholder:"12345",type:"text",
value:Fn(r).oAuth2.clientId,onInput:c},{default:Tr((()=>[oa(" Client ID ")])),
_:1
},8,["value"]),void 0!==e.value&&Object.entries((null==(s=null==(a=null==(i=e.value)?void 0:i.flows)?void 0:a.implicit)?void 0:s.scopes)??(null==(d=null==(u=null==(l=e.value)?void 0:l.flows)?void 0:u.password)?void 0:d.scopes)??{}).length>0?(zi(),
Xi(n2,{key:0,selected:p.value,"onUpdate:selected":h[1]||(h[1]=e=>p.value=e),
scopes:(null==(g=null==(m=null==(f=e.value)?void 0:f.flows)?void 0:m.implicit)?void 0:g.scopes)??(null==(b=null==(v=e.value)?void 0:v.flows)?void 0:b.password.scopes)
},null,8,["selected","scopes"])):aa("",!0),ea("button",{
class:"cardform-auth-button",type:"button",onClick:h[2]||(h[2]=()=>{var i,a
;return function(e,n){
if("string"!=typeof e)return void console.log("tokenUrl is not a string")
;const i=(null==n?void 0:n.baseUrl)&&!e.startsWith("http")?Ks(null==n?void 0:n.baseUrl,e):e,a=new URL(i)
;a.searchParams.set("grant_type","password"),
a.searchParams.set("username",r.oAuth2.username),
a.searchParams.set("password",r.oAuth2.password),
a.searchParams.set("client_id",r.oAuth2.clientId),
a.searchParams.set("scope",r.oAuth2.scopes.join(" ")),
fetch((null==n?void 0:n.proxy)?Js(null==n?void 0:n.proxy,a.toString()):a.toString(),{
method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"}
}).then((e=>{
if(!e.ok)throw new Error("Failed to get an access token. Please check your credentials.")
;return e.json()})).then((e=>{o({oAuth2:{...r.oAuth2,accessToken:e.access_token}
})})).catch((e=>{t("Couldn’t retrieve the password grant token","warn",{
description:"Open your browser console to get more information."
}),console.error("[authorizeWithPassword]",e)}))
}(null==(a=null==(i=e.value.flows)?void 0:i.password)?void 0:a.tokenUrl,{
baseUrl:Fn(Md)(Fn(n)),proxy:e.proxy})})}," Authorize ")]})),_:1})])),_:1
})):(zi(),Xi(U1,{key:2},{default:Tr((()=>[ta(Q1,null,{default:Tr((()=>{var t,n
;return[ta(H1,{id:"oAuth2.clientId",placeholder:"12345",type:"text",
value:Fn(r).oAuth2.clientId,onInput:c},{default:Tr((()=>[oa(" Client ID ")])),
_:1
},8,["value"]),void 0!==e.value&&Object.entries((null==(t=e.value.flows.implicit)?void 0:t.scopes)??e.value.flows.password.scopes).length>0?(zi(),
Xi(n2,{key:0,selected:p.value,"onUpdate:selected":h[3]||(h[3]=e=>p.value=e),
scopes:(null==(n=e.value.flows.implicit)?void 0:n.scopes)??e.value.flows.password.scopes
},null,8,["selected","scopes"])):aa("",!0),ea("button",{
class:"cardform-auth-button",type:"button",onClick:h[4]||(h[4]=()=>{var t,n,i,a
;return(e=>{
const t=window.open(e,"openAuth2Window","left=100,top=100,width=800,height=600")
;if(t){const e=setInterval((function(){var n;try{
const i=new URLSearchParams(t.location.href).get("access_token")
;if(t.closed||i){clearInterval(e)
;const a=null==(n=t.location.href.match(/state=([^&]*)/))?void 0:n[1]
;i&&r.oAuth2.state===a&&o({oAuth2:{...r.oAuth2,accessToken:i}}),t.close()}
}catch{}}),200)}})(function(e){
const t=r.oAuth2.scopes.join(" "),n=(Math.random()+1).toString(36).substring(7),i=new URL(e.authorizationUrl)
;return o({oAuth2:{...r.oAuth2,state:n}
}),i.searchParams.set("response_type","token"),
i.searchParams.set("client_id",r.oAuth2.clientId),
i.searchParams.set("redirect_uri",window.location.href),
i.searchParams.set("scope",t),i.searchParams.set("state",n),i.toString()
}((null==(n=null==(t=e.value)?void 0:t.flows)?void 0:n.implicit)??(null==(a=null==(i=e.value)?void 0:i.flows)?void 0:a.password)))
})}," Authorize ")]})),_:1})])),_:1}))]})),_:1})):aa("",!0)])),_:1})):aa("",!0)}
}
}),[["__scopeId","data-v-a66a7911"]]),o2=e=>(_r("data-v-e77a5dfa"),e=e(),Er(),e),i2={
key:0,class:"security-scheme-label"},a2={key:1,class:"security-scheme-selector"
},s2={class:"security-scheme-label"},l2=["value"],c2=o2((()=>ea("option",{
value:""},"No Authentication",-1))),u2=["value"],d2=$K(eo({
__name:"SecuritySchemeSelector",props:{value:{}},emits:["input"],
setup(e,{emit:t}){
const n=e,r=t,{authentication:o,setAuthentication:i}=Wd(),a=e=>{
s(e.target.value)};Ur((()=>{
o.preferredSecurityScheme||s(Object.keys(n.value??{})[0]??null)}));const s=e=>{
i({preferredSecurityScheme:e}),r("input",e)}
;Zr((()=>s(Object.keys(n.value??{})[0]??null)))
;const l=(e,t)=>`${c(e)} (${t})`,c=e=>{var t,n
;return(e=>!(null==e?void 0:e.type))(e)?"No Authentication":(e=>"apikey"===e.type.toLowerCase())(e)?"API Key":(e=>"http"===e.type&&"basic"===e.scheme.toLowerCase()||"basic"===e.type.toLowerCase())(e)?"Basic Authentication":(e=>"http"===e.type&&"bearer"===e.scheme.toLowerCase())(e)?"Bearer Authentication":(e=>"oauth2"===e.type.toLowerCase())(e)?(null==(t=e.flows)?void 0:t.implicit)?"OAuth 2.0 Implicit":(null==(n=e.flows)?void 0:n.password)?"OAuth 2.0 Password":"OAuth 2.0":`${e.type} (not yet supported)`
},u=Aa((()=>Object.keys(n.value??{})));return(e,t)=>{var n,r
;return 1===u.value.length?(zi(),
Wi("div",i2,st(l(null==(n=e.value)?void 0:n[u.value[0]],u.value[0])),1)):u.value.length>1?(zi(),
Wi("div",a2,[ea("span",s2,st(Fn(o).preferredSecurityScheme?l(null==(r=e.value)?void 0:r[Fn(o).preferredSecurityScheme],Fn(o).preferredSecurityScheme):"No Authentication"),1),ta(Fn(xZ),{
icon:"ChevronDown"}),ea("select",{value:Fn(o).preferredSecurityScheme,
onClick:t[0]||(t[0]=$s((()=>{}),["prevent"])),onInput:a
},[c2,(zi(!0),Wi(Bi,null,Kr(u.value,(t=>{var n;return zi(),Wi("option",{key:t,
value:t??null},st(l(null==(n=e.value)?void 0:n[t],t)),9,u2)
})),128))],40,l2)])):aa("",!0)}}}),[["__scopeId","data-v-e77a5dfa"]]),p2={key:0
},h2={class:"authentication-header"},f2={class:"selector"},m2={key:0,
class:"authentication-content"},g2=$K(eo({__name:"Authentication",props:{
parsedSpec:{},proxy:{}},setup(e){
const t=e,{authentication:n,setAuthentication:r}=Wd(),o=Aa((()=>{var e,r,o
;if(!n.preferredSecurityScheme)return!1
;const i=null==(o=null==(r=null==(e=t.parsedSpec)?void 0:e.components)?void 0:r.securitySchemes)?void 0:o[n.preferredSecurityScheme]
;return!!i&&"type"in i&&!!i.type}));return li((()=>{var e,n
;return null==(n=null==(e=t.parsedSpec)?void 0:e.components)?void 0:n.securitySchemes
}),(()=>{var e,n;r({
securitySchemes:null==(n=null==(e=t.parsedSpec)?void 0:e.components)?void 0:n.securitySchemes
})}),{deep:!0,immediate:!0}),Zr((async()=>{const e=ii()
;await iD(1),e.payload.data["useGlobalStore-authentication"]=n})),(e,t)=>{
var r,i,a,s,l
;return Fn(_P)(e.parsedSpec)?(zi(),Wi("div",p2,[ea("div",h2,[ea("div",f2,[ta(d2,{
value:null==(i=null==(r=e.parsedSpec)?void 0:r.components)?void 0:i.securitySchemes
},null,8,["value"])])]),o.value?(zi(),
Wi("div",m2,[Fn(n).preferredSecurityScheme?(zi(),Xi(r2,{key:0,proxy:e.proxy,
value:null==(l=null==(s=null==(a=e.parsedSpec)?void 0:a.components)?void 0:s.securitySchemes)?void 0:l[Fn(n).preferredSecurityScheme]
},null,8,["proxy","value"])):aa("",!0)])):aa("",!0)])):aa("",!0)}}
}),[["__scopeId","data-v-25fd5cfd"]]),v2=e=>(_r("data-v-4951736c"),
e=e(),Er(),e),b2=["onClick"],O2=["value"],y2=["label"],w2=["value"],x2={
class:"client-libraries-icon__more"},k2={key:1,class:"client-libraries-icon",
height:"50",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg"
},S2=[v2((()=>ea("g",{fill:"currentColor","fill-rule":"nonzero"},[ea("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)))],_2={key:0},E2=$K(eo({__name:"ClientSelector",setup(e){
const{httpClient:t,setHttpClient:n,availableTargets:r,getClientTitle:o,getTargetTitle:i}=VD(),a=Bn(),s=[{
targetKey:"shell",clientKey:"curl"},{targetKey:"ruby",clientKey:"native"},{
targetKey:"node",clientKey:"undici"},{targetKey:"php",clientKey:"guzzle"},{
targetKey:"python",clientKey:"python3"
}].filter((e=>r.value.find((t=>t.key===e.targetKey&&t.clients.find((t=>t.key===e.clientKey)))))),l=e=>`programming-language-${e}`,c=e=>s.some((t=>t.targetKey===e.targetKey&&t.clientKey===e.clientKey))
;return(e,u)=>(zi(),Wi("div",{ref_key:"containerRef",ref:a,
class:"client-libraries-content"},[(zi(!0),Wi(Bi,null,Kr(Fn(s),(e=>{return zi(),
Wi("div",{key:e.clientKey,class:et(["client-libraries rendered-code-sdks",{
"client-libraries__active":(r=e,
r.targetKey===t.targetKey&&r.clientKey===t.clientKey)}]),onClick:()=>Fn(n)(e)
},[ea("div",{class:et(`client-libraries-icon__${e.targetKey}`)},[ta(Fn(xZ),{
class:"client-libraries-icon",icon:l(e.targetKey)
},null,8,["icon"])],2),ea("span",null,st(Fn(i)(e)),1)],10,b2);var r
})),128)),ea("div",{class:et(["client-libraries client-libraries__select",{
"client-libraries__active":Fn(t)&&!c(Fn(t))}])},[ea("select",{
class:"language-select",value:JSON.stringify(Fn(t)),
onInput:u[0]||(u[0]=e=>Fn(n)(JSON.parse(e.target.value)))
},[(zi(!0),Wi(Bi,null,Kr(Fn(r),(e=>(zi(),Wi("optgroup",{key:e.key,label:e.title
},[(zi(!0),Wi(Bi,null,Kr(e.clients,(t=>(zi(),Wi("option",{key:t.key,
value:JSON.stringify({targetKey:e.key,clientKey:t.key})},st(Fn(o)({
targetKey:e.key,clientKey:t.key
})),9,w2)))),128))],8,y2)))),128))],40,O2),ea("div",x2,[Fn(t)&&!c(Fn(t))?(zi(),
Wi("div",{key:0,class:et(`client-libraries-icon__${Fn(t).targetKey}`)
},[ta(Fn(xZ),{class:"client-libraries-icon",icon:l(Fn(t).targetKey)
},null,8,["icon"])],2)):(zi(),
Wi("svg",k2,S2))]),Fn(r).length?(zi(),Wi("span",_2,"More")):aa("",!0)],2)],512))
}
}),[["__scopeId","data-v-4951736c"]]),T2=e=>(_r("data-v-dbf83e74"),e=e(),Er(),e),C2=T2((()=>ea("div",{
class:"client-libraries-heading"},"Client Libraries",-1))),A2={
class:"selected-client card-footer",muted:""},P2=$K(eo({
__name:"ClientLibraries",setup(e){
const{availableTargets:t,httpTargetTitle:n,httpClientTitle:r}=VD()
;return(e,o)=>(zi(),Wi("div",null,[Fn(t).length?(zi(),Wi(Bi,{key:0
},[C2,ea("div",null,[ta(E2)]),ea("div",A2,st(Fn(r))+" "+st(Fn(n)),1)],64)):aa("",!0)]))
}}),[["__scopeId","data-v-dbf83e74"]]),D2={class:"download"
},$2=["href"],R2=$K(eo({__name:"DownloadLink",props:{specTitle:{}},setup(e){
const t=e,n=$o(tD),r=$o(rD),o=()=>{aD.emit({id:"",specTitle:t.specTitle})}
;return(e,t)=>{var i,a,s
;return zi(),Wi("div",D2,[(null==(i=Fn(n))?void 0:i())?aa("",!0):(zi(),Wi(Bi,{
key:0},[(null==(a=Fn(r))?void 0:a())?(zi(),Wi("a",{key:0,
class:"download-button",download:"",href:null==(s=Fn(r))?void 0:s(),
target:"_blank"}," Download OpenAPI Document ",8,$2)):(zi(),Wi("button",{key:1,
class:"download-button",type:"button",onClick:o
}," Download OpenAPI Document "))],64))])}}
}),[["__scopeId","data-v-af826d86"]]),N2={class:"badge"}
;const I2=$K({},[["render",function(e,t){
return zi(),Wi("div",N2,[no(e.$slots,"default",{},void 0,!0)])
}],["__scopeId","data-v-190574ac"]]),M2=eo({__name:"IntersectionObserver",
props:{id:{},is:{}},emits:["intersecting"],setup(e,{emit:t}){
const n=e,r=t,o=Bn(),i=e=>{const t=e.offsetHeight
;return`${t/2}px 0px ${t/2}px 0px`};return Ur((()=>{if(o.value){const t={
rootMargin:i(o.value),
threshold:(e=o.value,e.offsetHeight<window.innerHeight?.8:.5)}
;!function(e,t,n={}){
const{root:r,rootMargin:o="0px",threshold:i=.1,window:a=Rp,immediate:s=!0}=n,l=Mp((()=>a&&"IntersectionObserver"in a)),c=Aa((()=>{
const t=Sp(e);return(Array.isArray(t)?t:[t]).map($p).filter(Ep)}));let u=Ap
;const d=Bn(s),p=l.value?li((()=>[c.value,$p(r),d.value]),(([e,n])=>{
if(u(),!d.value)return;if(!e.length)return;const r=new IntersectionObserver(t,{
root:$p(n),rootMargin:o,threshold:i});e.forEach((e=>e&&r.observe(e))),u=()=>{
r.disconnect(),u=Ap}}),{immediate:s,flush:"post"}):Ap,h=()=>{u(),p(),d.value=!1}
;kp(h)}(o,(([{isIntersecting:e}])=>{e&&n.id&&r("intersecting")}),t)}var e
})),(e,t)=>(zi(),Xi(Ir(e.is??"div"),{id:e.id,ref_key:"intersectionObserverRef",
ref:o},{default:Tr((()=>[no(e.$slots,"default")])),_:3},8,["id"]))}}),L2=$K(eo({
__name:"Section",props:{id:{},label:{}},setup(e){
const t=e,{getSectionId:n,hash:r,isIntersectionEnabled:o,pathRouting:i}=Jh(),{setCollapsedSidebarItem:a}=DD()
;function s(){var e,s;if(!t.label||!o.value)return
;const l=new URL(window.location.href),c=t.id??""
;i.value?l.pathname=EP(i.value.basePath,c):l.hash=c,
r.value=c,window.history.replaceState({},"",l),
((null==(e=t.id)?void 0:e.startsWith("model"))||(null==(s=t.id)?void 0:s.startsWith("webhook")))&&a(n(t.id),!0)
}return(e,t)=>(zi(),Xi(M2,{is:"section",id:e.id,class:"section",onIntersecting:s
},{default:Tr((()=>[no(e.$slots,"default",{},void 0,!0)])),_:3},8,["id"]))}
}),[["__scopeId","data-v-fc324287"]]),B2={
class:"section-accordion-button-content"},Q2={key:0,
class:"section-accordion-button-actions"},j2={key:0,
class:"section-accordion-description"},U2={
class:"section-accordion-content-card"},F2=$K(eo({__name:"SectionAccordion",
props:{id:{},transparent:{type:Boolean}},setup(e){
const t=Bn(),n=function(e,t={}){
const{delayEnter:n=0,delayLeave:r=0,window:o=Rp}=t,i=Bn(!1);let a;const s=e=>{
const t=e?n:r
;a&&(clearTimeout(a),a=void 0),t?a=setTimeout((()=>i.value=e),t):i.value=e}
;return o?(Ip(e,"mouseenter",(()=>s(!0)),{passive:!0
}),Ip(e,"mouseleave",(()=>s(!1)),{passive:!0}),i):i}(t)
;return(e,r)=>(zi(),Xi(M2,{id:e.id,class:"section-wrapper"},{
default:Tr((()=>[ta(Fn(Q0),{as:"section",class:et(["section-accordion",{
"section-accordion-transparent":e.transparent}])},{
default:Tr((({open:r})=>[ta(Fn(j0),{ref_key:"button",ref:t,
class:"section-accordion-button"},{
default:Tr((()=>[ea("div",B2,[no(e.$slots,"title",{},void 0,!0)]),e.$slots.actions?(zi(),
Wi("div",Q2,[no(e.$slots,"actions",{active:Fn(n)||r
},void 0,!0)])):aa("",!0),ta(Fn(xZ),{class:"section-accordion-chevron",
icon:r?"ChevronDown":"ChevronRight"},null,8,["icon"])])),_:2},1536),ta(Fn(U0),{
class:"section-accordion-content"},{default:Tr((()=>[e.$slots.description?(zi(),
Wi("div",j2,[no(e.$slots,"description",{},void 0,!0)])):aa("",!0),ea("div",U2,[no(e.$slots,"default",{},void 0,!0)])])),
_:3})])),_:3},8,["class"])])),_:3},8,["id"]))}
}),[["__scopeId","data-v-07cabcb0"]]),q2={class:"section-column"}
;const z2=$K({},[["render",function(e,t){
return zi(),Wi("div",q2,[no(e.$slots,"default",{},void 0,!0)])
}],["__scopeId","data-v-d64e7382"]]),H2={class:"section-columns"}
;const Z2=$K({},[["render",function(e,t){
return zi(),Wi("div",H2,[no(e.$slots,"default",{},void 0,!0)])
}],["__scopeId","data-v-8b9602bf"]]),V2={class:"section-container"}
;const W2=$K({},[["render",function(e,t){
return zi(),Wi("div",V2,[no(e.$slots,"default",{},void 0,!0)])
}],["__scopeId","data-v-823b8471"]]),X2={class:"section-accordion-wrapper"},Y2={
class:"section-accordion-title"},G2=$K(eo({__name:"SectionContainerAccordion",
setup:e=>(e,t)=>(zi(),Wi("div",X2,[ta(Fn(Q0),{as:"div",
class:"section-accordion",defaultOpen:""},{default:Tr((({open:t})=>[ta(Fn(j0),{
class:"section-accordion-button"},{default:Tr((()=>[ta(Fn(xZ),{
class:"section-accordion-chevron",icon:t?"ChevronDown":"ChevronRight"
},null,8,["icon"]),ea("div",Y2,[no(e.$slots,"title",{},void 0,!0)])])),_:2
},1024),ta(Fn(U0),{class:"section-accordion-content"},{
default:Tr((()=>[no(e.$slots,"default",{},void 0,!0)])),_:3})])),_:3})]))
}),[["__scopeId","data-v-2049975e"]]),K2=$K(eo({__name:"LoadingSkeleton",props:{
lines:{default:1}},
setup:e=>(e,t)=>(zi(!0),Wi(Bi,null,Kr([...Array(e.lines).keys()],(t=>(zi(),
Wi("div",{key:t,class:et(["loading",{"single-line":1===e.lines}])
},null,2)))),128))}),[["__scopeId","data-v-c90b2c46"]]),J2={
class:"section-content"},e5=$K(eo({__name:"SectionContent",props:{loading:{
type:Boolean,default:!1}},
setup:e=>(e,t)=>(zi(),Wi("div",J2,[e.loading?(zi(),Xi(K2,{key:1,lines:8
})):no(e.$slots,"default",{key:0},void 0,!0)]))
}),[["__scopeId","data-v-9735459e"]]),t5=$K(eo({__name:"SectionHeader",props:{
loading:{type:Boolean,default:!1},tight:{type:Boolean,default:!1},level:{
default:1}},setup:e=>(e,t)=>e.loading?(zi(),Xi(K2,{key:0
})):(zi(),Xi(Ir(`h${e.level}`),{key:1,class:et(["section-header",{tight:e.tight
}])},{default:Tr((()=>[no(e.$slots,"default",{},void 0,!0)])),_:3},8,["class"]))
}),[["__scopeId","data-v-3bd1b9f0"]]),n5={key:0,class:"screenreader-only"
},r5=$K(eo({__name:"ScreenReader",props:{if:{type:Boolean,default:!0}},
setup:e=>(e,t)=>e.$props.if?(zi(),
Wi("span",n5,[no(e.$slots,"default",{},void 0,!0)])):no(e.$slots,"default",{
key:1},void 0,!0)
}),[["__scopeId","data-v-681ebf2c"]]),o5=e=>(_r("data-v-d9801d4e"),
e=e(),Er(),e),i5={class:"label"},a5={class:"anchor"
},s5=o5((()=>ea("span",null,"​",-1))),l5=$K(eo({__name:"Anchor",props:{id:{}},
setup(e){const{copyToClipboard:t}=Rh()
;return(e,n)=>(zi(),Wi("span",i5,[no(e.$slots,"default",{},void 0,!0),ea("span",a5,[s5,ea("button",{
class:"anchor-copy",type:"button",onClick:n[0]||(n[0]=$s((n=>Fn(t)((e=>{
const t=new URL(window.location.href);return t.hash=e,t.toString()
})(e.id))),["stop"]))},[oa(" # "),ta(r5,null,{
default:Tr((()=>[oa('Copy link to "'),no(e.$slots,"default",{},void 0,!0),oa('"')])),
_:3})])])]))}
}),[["__scopeId","data-v-d9801d4e"]]),c5=["aria-expanded"],u5=$K(eo({
__name:"CompactSection",props:{id:{},label:{}},setup(e){
const t=e,{hash:n}=Jh(),r=Bn(!1);return li(n,(async e=>{
e!==t.id||r.value||(r.value=!0,await dr(),oD(t.id))}),{immediate:!0
}),(e,t)=>(zi(),Wi("div",{"aria-expanded":r.value,class:"collapsible-section"
},[ea("div",{class:et(["collapsible-section-trigger",{
"collapsible-section-trigger-open":r.value}]),
onClick:t[0]||(t[0]=e=>r.value=!r.value)},[ta(Fn(xZ),{
icon:r.value?"ChevronDown":"ChevronRight",size:"sm"},null,8,["icon"]),ta(l5,{
id:e.id,class:"collapsible-section-header"},{
default:Tr((()=>[no(e.$slots,"heading",{},void 0,!0)])),_:3
},8,["id"])],2),r.value?(zi(),Xi(Fn(L2),{key:0,id:e.id,
class:"collapsible-section-content",label:e.label},{
default:Tr((()=>[no(e.$slots,"default",{},void 0,!0)])),_:3
},8,["id","label"])):aa("",!0)],8,c5))}
}),[["__scopeId","data-v-db0c8da0"]]),d5={key:0,class:"introduction-description"
},p5=$K(eo({__name:"Description",props:{value:{}},setup(e){const t=e,n=Aa((()=>{
if(!t.value)return[];const e=new jh;return OP(t.value).map((t=>{const[n]=vP(t)
;return{id:n?r({...n,slug:e.slug(n.value)}):void 0,content:t}}))
})),{getHeadingId:r,hash:o,isIntersectionEnabled:i,pathRouting:a}=Jh()
;const s=new jh,l=e=>(e.data={hProperties:{id:r({depth:e.depth,
value:e.children[0].value,slug:s.slug(e.children[0].value)})}},e)
;return(e,t)=>e.value?(zi(),
Wi("div",d5,[(zi(!0),Wi(Bi,null,Kr(n.value,((e,t)=>(zi(),Wi(Bi,{key:t
},[e.id?(zi(),Xi(M2,{key:0,id:e.id,class:"introduction-description-heading",
onIntersecting:()=>function(e=""){if(!i.value)return
;const t=new URL(window.location.href)
;a.value?t.pathname=EP(a.value.basePath,e):t.hash=e,
o.value=e,window.history.replaceState({},"",t)}(e.id)},{
default:Tr((()=>[ta(Fn(cW),{transform:l,transformType:"heading",value:e.content
},null,8,["value"])])),_:2},1032,["id","onIntersecting"])):(zi(),Xi(Fn(cW),{
key:1,value:e.content,withImages:""
},null,8,["value"]))],64)))),128))])):aa("",!0)}
}),[["__scopeId","data-v-15c890da"]]),h5={class:"badges"},f5={
class:"sticky-cards"},m5=$K(eo({__name:"Introduction",props:{info:{},
parsedSpec:{}},setup(e){
const t=e,n=new jh,r=Aa((()=>t.parsedSpec.openapi??t.parsedSpec.swagger??"")),o=Aa((()=>n.slug(t.info.title??"")))
;return(e,t)=>(zi(),Xi(Fn(W2),null,{default:Tr((()=>[ta(Fn(L2),{
class:"introduction-section"},{default:Tr((()=>[ta(Fn(e5),{
loading:!e.info.description&&!e.info.title},{default:Tr((()=>[ta(Fn(Z2),null,{
default:Tr((()=>[ta(Fn(z2),null,{
default:Tr((()=>[ea("div",h5,[e.info.version?(zi(),Xi(Fn(I2),{key:0},{
default:Tr((()=>[oa(st(e.info.version),1)])),_:1
})):aa("",!0),r.value?(zi(),Xi(Fn(I2),{key:1},{
default:Tr((()=>[oa(" OAS "+st(r.value),1)])),_:1})):aa("",!0)]),ta(Fn(t5),{
level:1,loading:!e.info.title,tight:""},{
default:Tr((()=>[oa(st(e.info.title),1)])),_:1},8,["loading"]),ta(R2,{
specTitle:o.value},null,8,["specTitle"]),ta(p5,{value:e.info.description
},null,8,["value"])])),_:1}),e.$slots.aside?(zi(),Xi(Fn(z2),{key:0},{
default:Tr((()=>[ea("div",f5,[no(e.$slots,"aside",{},void 0,!0)])])),_:3
})):aa("",!0)])),_:3})])),_:3
},8,["loading"]),no(e.$slots,"after",{},void 0,!0)])),_:3})])),_:3}))}
}),[["__scopeId","data-v-4e25996e"]]),g5=eo({__name:"Lazy",props:{id:{},isLazy:{
type:Boolean,default:!0},lazyTimeout:{default:0}},setup(e){
const t=e,n=Bn(!t.isLazy);return t.isLazy?((e=()=>{})=>{
"undefined"==typeof window||("requestIdleCallback"in window?setTimeout((()=>window.requestIdleCallback(e)),t.lazyTimeout):setTimeout((()=>dr(e)),t.lazyTimeout??300))
})((()=>{n.value=!0,t.id&&dr((()=>uD.emit({id:t.id})))
})):t.id&&dr((()=>uD.emit({id:t.id}))),(e,t)=>n.value?no(e.$slots,"default",{
key:0}):aa("",!0)}}),v5=["value"],b5=["label"],O5=["value"],y5=["value"],w5=eo({
__name:"TextSelect",props:{modelValue:{},options:{}},
emits:["update:modelValue"],setup:e=>(e,t)=>(zi(),Wi("div",{
class:et(["text-select",1===e.options.length?"text-select--single-option":""])
},[ea("span",null,[no(e.$slots,"default")]),ea("select",{value:e.modelValue,
onInput:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.value))
},[(zi(!0),Wi(Bi,null,Kr(e.options,(e=>(zi(),Wi(Bi,{key:e.value
},[e.options?(zi(),Wi("optgroup",{key:0,label:e.label
},[(zi(!0),Wi(Bi,null,Kr(e.options,(e=>(zi(),Wi("option",{key:e.value,
value:e.value},st(e.label),9,O5)))),128))],8,b5)):(zi(),Wi("option",{
key:e.value,value:e.value},st(e.label),9,y5))],64)))),128))],40,v5)],2))
}),x5=$K(eo({__name:"ExamplePicker",props:{examples:{}},
emits:["update:modelValue"],setup(e,{emit:t}){
const n=e,r=t,o=Bn(Object.keys(n.examples)[0]);function i(e){
if(!e)return"Select an example";const t=n.examples[e]
;return(null==t?void 0:t.summary)??e}return li((()=>n.examples),(()=>{var e
;(e=Object.keys(n.examples)[0])&&(o.value=e)}),{immediate:!0}),li(o,(()=>{
o.value&&r("update:modelValue",o.value)}),{immediate:!0}),(e,t)=>(zi(),Xi(w5,{
modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),
class:"example-selector",options:Object.keys(e.examples).map((e=>({label:i(e),
value:e})))},{default:Tr((()=>[oa(st(i(o.value)),1)])),_:1
},8,["modelValue","options"]))}}),[["__scopeId","data-v-090632a2"]]),k5={
class:"scalar-card"};const S5=$K({},[["render",function(e,t){
return zi(),Wi("div",k5,[no(e.$slots,"default",{},void 0,!0)])
}],["__scopeId","data-v-38801681"]]),_5=$K(eo({__name:"CardContent",props:{
muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},
transparent:{type:Boolean},borderless:{type:Boolean}},
setup:e=>(e,t)=>(zi(),Wi("div",{class:et(["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}])
},[no(e.$slots,"default",{},void 0,!0)],2))
}),[["__scopeId","data-v-dd83e46e"]]),E5={class:"scalar-card-header-slots"},T5={
class:"scalar-card-header-slot scalar-card-header-title"},C5={
class:"scalar-card-header-slot scalar-card-header-actions"},A5=$K(eo({
__name:"CardHeader",props:{muted:{type:Boolean},contrast:{type:Boolean},
frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},
setup(e){const t=e;return(e,n)=>(zi(),Xi(_5,ua(t,{class:"scalar-card-header"}),{
default:Tr((()=>[ea("div",E5,[ea("div",T5,[no(e.$slots,"default",{},void 0,!0)]),ea("div",C5,[no(e.$slots,"actions",{},void 0,!0)])])])),
_:3},16))}}),[["__scopeId","data-v-ef7873bc"]]),P5=$K(eo({__name:"CardFooter",
props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},
transparent:{type:Boolean},borderless:{type:Boolean}},setup(e){const t=e
;return(e,n)=>(zi(),Xi(_5,tt(na(t)),{
default:Tr((()=>[no(e.$slots,"default",{},void 0,!0)])),_:3},16))}
}),[["__scopeId","data-v-918ab8d6"]]),D5=$K(eo({__name:"CardTabHeader",
emits:["change"],setup(e,{emit:t}){const n=t,r=e=>{n("change",e)}
;return(e,t)=>(zi(),Xi(A5,{class:"scalar-card-header scalar-card-header-tabs"},{
actions:Tr((()=>[no(e.$slots,"actions",{},void 0,!0)])),
default:Tr((()=>[ta(Fn(l1),{onChange:r},{default:Tr((()=>[ta(Fn(c1),{
class:"tab-list custom-scroll"},{
default:Tr((()=>[no(e.$slots,"default",{},void 0,!0)])),_:3})])),_:3})])),_:3}))
}}),[["__scopeId","data-v-03fdb072"]]),$5=$K(eo({__name:"CardTab",
setup:e=>(e,t)=>(zi(),Xi(Fn(u1),{as:"template"},{
default:Tr((({selected:t})=>[ea("button",{class:et({tab:!0,"tab-selected":t}),
type:"button"},[ea("span",null,[no(e.$slots,"default",{},void 0,!0)])],2)])),_:3
}))}),[["__scopeId","data-v-f373ecc2"]]),R5={class:"request-header"},N5={
class:"code-snippet"},I5={key:0,class:"request-card-footer-addon"},M5=eo({
__name:"ExampleRequest",props:{operation:{}},setup(e){const t=e,n=(e=>{
let t=0,n=0,r=0;if(!(null==e?void 0:e.length))return n
;for(r=0;r<e.length;r++)t=e.charCodeAt(r),n=(n<<5)-n+t,n|=0;return n
})(t.operation.path+t.operation.httpVerb+t.operation.operationId),r=`components-Content-Operation-Example-Request${n}`,o=Bn(),{httpClient:i,setHttpClient:a,availableTargets:s,httpTargetTitle:l,httpClientTitle:c}=VD(),{server:u}=mp(),{authentication:d}=Wd(),p=Aa((()=>{
var e;const n=["x-custom-examples","x-codeSamples","x-code-samples"]
;for(const r of n)if(null==(e=t.operation.information)?void 0:e[r])return t.operation.information[r]??[]
;return[]})),h=Bn(p.value.length?{targetKey:"customExamples",clientKey:0}:{
targetKey:i.targetKey,clientKey:i.clientKey});li(i,(()=>{h.value={
targetKey:i.targetKey,clientKey:i.clientKey}}));const f=Aa((()=>{var e,n,r,o
;return Object.keys((null==(o=null==(r=null==(n=null==(e=t.operation.information)?void 0:e.requestBody)?void 0:n.content)?void 0:r["application/json"])?void 0:o.examples)??{}).length>1
})),m=$o(eD);async function g(){var e,n
;if("customExamples"===h.value.targetKey)return(null==(e=p.value[h.value.clientKey])?void 0:e.source)??""
;const r=Dm({url:Md(u)},cf(t.operation,{replaceVariables:!0
},o.value),Xs(d,(null==(n=t.operation.information)?void 0:n.security)??(null==m?void 0:m()))),a=i.clientKey,s=i.targetKey
;return await async function(e,t,n){const r=t
;if(Of().hasPlugin(r,n))return Of().print(t,n,e);try{
const r=t.replace("js","javascript"),o=n,i=await new Pm(e).convert(r,o)
;if("string"==typeof i)return i}catch(o){
console.error("[getExampleCode] Failed to generate example code with httpsnippet-lite:",o)
}return""}(r,s,a)??""}const v=function(e,t,n){let r;r=Ln(n)?{evaluating:n}:{}
;const{lazy:o=!1,evaluating:i,shallow:a=!0,onError:s=Ap}=r,l=Bn(!o),c=a?Qn(t):Bn(t)
;let u=0;return ai((async t=>{if(!l.value)return;u++;const n=u;let r=!1
;i&&Promise.resolve().then((()=>{i.value=!0}));try{const o=await e((e=>{t((()=>{
i&&(i.value=!1),r||e()}))}));n===u&&(c.value=o)}catch(P$){s(P$)}finally{
i&&n===u&&(i.value=!1),r=!0}})),o?Aa((()=>(l.value=!0,c.value))):c}((async()=>{
try{return await g()}catch(e){return console.error("[generateSnippet]",e),""}
}),$d[r]??"");Zr((async()=>{ii().payload.data[r]=await g()}));const b=Aa((()=>{
var e,t
;const n="customExamples"===(null==(e=h.value)?void 0:e.targetKey)?(null==(t=p.value[h.value.clientKey])?void 0:t.lang)??"plaintext":i.targetKey
;return"shell"===n&&v.value.includes("curl")?"curl":"Objective-C"===n?"objc":n
})),O=Aa((()=>{const e=s.value.map((e=>({value:e.key,label:e.title,
options:e.clients.map((t=>({value:JSON.stringify({targetKey:e.key,
clientKey:t.key}),label:t.title})))})));return p.value.length&&e.unshift({
value:"customExamples",label:"Examples",options:p.value.map(((e,t)=>({
value:JSON.stringify({targetKey:"customExamples",clientKey:t}),
label:e.label??e.lang??`Example #${t+1}`})))}),e}));function y(e){
const t=JSON.parse(e);"customExamples"===t.targetKey?h.value=t:a(t)}
return(e,t)=>Fn(s).length||p.value.length?(zi(),Xi(Fn(S5),{key:0,
class:"dark-mode"},{default:Tr((()=>[ta(Fn(A5),{muted:""},{
actions:Tr((()=>[ta(w5,{class:"request-client-picker",
modelValue:JSON.stringify(h.value),options:O.value,"onUpdate:modelValue":y},{
default:Tr((()=>["customExamples"===h.value.targetKey?(zi(),Wi(Bi,{key:0
},[oa(st(p.value[h.value.clientKey].label??"Example"),1)],64)):(zi(),Wi(Bi,{
key:1},[oa(st(Fn(l))+" "+st(Fn(c)),1)],64))])),_:1
},8,["modelValue","options"])])),default:Tr((()=>[ea("div",R5,[ta(Fn(DK),{
as:"span",class:"request-method",method:e.operation.httpVerb
},null,8,["method"]),no(e.$slots,"header",{},void 0,!0)])])),_:3}),ta(Fn(_5),{
borderless:"",class:"request-editor-section custom-scroll",frameless:""},{
default:Tr((()=>[ea("div",N5,[ta(Fn(TZ),{class:"bg-b-2",content:Fn(v),
hideCredentials:Fn(Gs)(Fn(d)),lang:b.value,lineNumbers:""
},null,8,["content","hideCredentials","lang"])])])),_:1
}),f.value||e.$slots.footer?(zi(),Xi(Fn(P5),{key:0,class:"request-card-footer",
contrast:""},{default:Tr((()=>{var n,r,i,a
;return[f.value?(zi(),Wi("div",I5,[ta(x5,{class:"request-example-selector",
examples:(null==(a=null==(i=null==(r=null==(n=e.operation.information)?void 0:n.requestBody)?void 0:r.content)?void 0:i["application/json"])?void 0:a.examples)??[],
"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e)
},null,8,["examples"])])):aa("",!0),no(e.$slots,"footer",{},void 0,!0)]})),_:3
})):aa("",!0)])),_:3})):aa("",!0)}
}),L5=$K(M5,[["__scopeId","data-v-77ab5d94"]]),B5={key:2,class:"empty-state"
},Q5=$K(eo({__name:"ExampleResponse",props:{response:{}},setup:e=>(e,t)=>{
var n,r,o,i;return(null==(n=e.response)?void 0:n.example)?(zi(),Xi(Fn(TZ),{
key:0,class:"bg-b-2",content:Fn(Ad)(null==(r=e.response)?void 0:r.example),
lang:"json"
},null,8,["content"])):(null==(o=e.response)?void 0:o.schema)?(zi(),Xi(Fn(TZ),{
key:1,class:"bg-b-2",
content:Fn(Ad)(Fn(nf)(null==(i=e.response)?void 0:i.schema,{emptyString:"…",
mode:"read"})),lang:"json"},null,8,["content"])):(zi(),Wi("div",B5," No Body "))
}
}),[["__scopeId","data-v-908bf679"]]),j5=e=>(_r("data-v-0696399e"),e=e(),Er(),e),U5={
key:1,class:"scalar-card-checkbox"},F5=j5((()=>ea("span",{
class:"scalar-card-checkbox-checkmark"},null,-1))),q5={
class:"scalar-card-container custom-scroll"},z5={key:1,
class:"response-description"},H5=$K(eo({__name:"ExampleResponses",props:{
operation:{}},setup(e){const t=e,{copyToClipboard:n}=Rh(),r=Bn(),o=Aa((()=>{
var e,n
;return Object.keys((null==(n=null==(e=null==t?void 0:t.operation)?void 0:e.information)?void 0:n.responses)??{}).sort()
})),i=Aa((()=>!!l.value.examples)),a=Bn(0),s=Aa((()=>{var e,n
;const r=o.value[a.value]
;return null==(n=null==(e=t.operation.information)?void 0:e.responses)?void 0:n[r]
})),l=Aa((()=>{var e;const t=Td(null==(e=s.value)?void 0:e.content)
;return(null==t?void 0:t["application/json"])??(null==t?void 0:t["text/plain"])??s.value
})),c=()=>{if(i.value){
if(Array.isArray(l.value.examples))return l.value.examples[0];{
const e=Object.keys(l.value.examples)[0];return l.value.examples[e]}}
return l.value.example},u=Aa((()=>({...l.value,
example:i.value&&r.value?l.value.examples[r.value].value??l.value.examples[r.value]:c()
}))),d=e=>{a.value=e,r.value=void 0},p=Bn(!1);return(e,t)=>o.value.length?(zi(),
Xi(Fn(S5),{key:0},{default:Tr((()=>{var e;return[ta(Fn(D5),{muted:"",x:"as",
onChange:d},{actions:Tr((()=>{var e,r
;return[(null==(e=l.value)?void 0:e.example)?(zi(),Wi("button",{key:0,
class:"code-copy",type:"button",onClick:t[0]||(t[0]=()=>{var e
;return Fn(n)(null==(e=l.value)?void 0:e.example)})},[ta(Fn(xZ),{
icon:"Clipboard",width:"12px",x:"asd"
})])):aa("",!0),(null==(r=l.value)?void 0:r.schema)?(zi(),
Wi("label",U5,[oa(" Show Schema "),Yr(ea("input",{
"onUpdate:modelValue":t[1]||(t[1]=e=>p.value=e),
class:"scalar-card-checkbox-input",type:"checkbox"
},null,512),[[Ss,p.value]]),F5])):aa("",!0)]})),
default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(o.value,(e=>(zi(),Xi(Fn($5),{key:e},{
default:Tr((()=>[oa(st(e),1)])),_:2},1024)))),128))])),_:1
}),ea("div",q5,[ta(Fn(_5),{muted:""},{default:Tr((()=>{var e
;return[(null==(e=l.value)?void 0:e.schema)?(zi(),Wi(Bi,{key:0
},[p.value&&u.value?(zi(),Xi(Fn(TZ),{key:0,content:u.value,lang:"json"
},null,8,["content"])):(zi(),Xi(Q5,{key:1,response:u.value
},null,8,["response"]))],64)):(zi(),Xi(Q5,{key:1,response:u.value
},null,8,["response"]))]})),_:1
})]),(null==(e=s.value)?void 0:e.description)||i.value?(zi(),Xi(Fn(P5),{key:0,
class:"response-card-footer",muted:""},{default:Tr((()=>{var e,n
;return[i.value?(zi(),Xi(Fn(x5),{key:0,class:"response-example-selector",
examples:null==(e=l.value)?void 0:e.examples,
"onUpdate:modelValue":t[2]||(t[2]=e=>r.value=e)
},null,8,["examples"])):(null==(n=s.value)?void 0:n.description)?(zi(),
Wi("div",z5,[ta(Fn(cW),{class:"markdown",value:s.value.description
},null,8,["value"])])):aa("",!0)]})),_:1})):aa("",!0)]})),_:1})):aa("",!0)}
}),[["__scopeId","data-v-0696399e"]]),Z5={key:0,class:"schema-type"
},V5=["title"],W5=$K(eo({__name:"SchemaHeading",props:{value:{
type:[Object,Boolean]},name:{}},setup:e=>(e,t)=>{var n,r,o,i,a,s
;return"object"==typeof e.value?(zi(),Wi("span",Z5,[ea("span",{
class:"schema-type-icon",
title:"string"==typeof e.value.type?e.value.type:Array.isArray(e.value.type)?e.value.type.join(" | "):"unkown type"
},["object"===e.value.type?(zi(),Wi(Bi,{key:0
},[oa(" {} ")],64)):aa("",!0),"array"===e.value.type?(zi(),Wi(Bi,{key:1
},[oa(" [] ")],64)):aa("",!0),e.value.enum?(zi(),Wi(Bi,{key:2
},[oa(" enum ")],64)):aa("",!0)],8,V5),(null==(r=null==(n=e.value)?void 0:n.xml)?void 0:r.name)&&"##default"!==(null==(i=null==(o=e.value)?void 0:o.xml)?void 0:i.name)?(zi(),
Wi(Bi,{key:0
},[oa(" <"+st(null==(s=null==(a=e.value)?void 0:a.xml)?void 0:s.name)+" /> ",1)],64)):e.name?(zi(),
Wi(Bi,{key:1},[oa(st(e.name),1)],64)):(zi(),Wi(Bi,{key:2
},[oa(st(e.value.type),1)],64))])):aa("",!0)}
}),[["__scopeId","data-v-2a52eb0b"]]),X5={key:0,class:"property-detail-prefix"
},Y5={key:1,class:"property-detail-value"},G5={key:2,
class:"property-detail-value"},K5=$K(eo({__name:"SchemaPropertyDetail",props:{
truncate:{type:Boolean},code:{type:Boolean}},setup:e=>(e,t)=>(zi(),Wi("span",{
class:et(["property-detail",{"property-detail-truncate":e.truncate}])
},[e.$slots.prefix?(zi(),
Wi("div",X5,[no(e.$slots,"prefix",{},void 0,!0),oa("  ")])):aa("",!0),e.code?(zi(),
Wi("code",Y5,[no(e.$slots,"default",{},void 0,!0)])):(zi(),
Wi("span",G5,[no(e.$slots,"default",{},void 0,!0)]))],2))
}),[["__scopeId","data-v-16d94ef5"]]),J5={class:"property-heading"},e3={key:0,
class:"property-name"},t3={key:1,class:"property-additional"},n3={key:2,
class:"property-deprecated"},r3={key:3,class:"property-required"},o3={key:4,
class:"property-const"},i3={key:5,class:"property-details"},a3={key:6,
class:"property-write-only"},s3={key:7,class:"property-read-only"},l3=eo({
__name:"SchemaPropertyHeading",props:{value:{},enum:{type:Boolean},required:{
type:Boolean,default:!1},additional:{type:Boolean}},setup(e){
const t=["oneOf","anyOf","allOf","not"];return(e,n)=>{var r,o,i,a,s,l,c
;return zi(),
Wi("div",J5,[e.$slots.name?(zi(),Wi("div",e3,[no(e.$slots,"name",{},void 0,!0)])):aa("",!0),e.additional?(zi(),
Wi("div",t3,[(null==(r=e.value)?void 0:r["x-additionalPropertiesName"])?(zi(),
Wi(Bi,{key:0
},[oa(st(e.value["x-additionalPropertiesName"]),1)],64)):(zi(),Wi(Bi,{key:1
},[oa("additional properties")],64))])):aa("",!0),(null==(o=e.value)?void 0:o.deprecated)?(zi(),
Wi("div",n3,[ta(Fn(I2),null,{default:Tr((()=>[oa("deprecated")])),_:1
})])):aa("",!0),e.required?(zi(),
Wi("div",r3," required ")):aa("",!0),(null==(i=e.value)?void 0:i.const)||(null==(a=e.value)?void 0:a.enum)&&1===e.value.enum.length?(zi(),
Wi("div",o3,[ta(K5,{truncate:""},{prefix:Tr((()=>[oa("const:")])),
default:Tr((()=>[oa(" "+st(e.value.const??e.value.enum[0]),1)])),_:1
})])):(null==(s=e.value)?void 0:s.type)?(zi(),Wi("div",i3,[ta(K5,null,{
default:Tr((()=>{var t,n,r
;return[(null==(n=null==(t=e.value)?void 0:t.items)?void 0:n.type)?(zi(),Wi(Bi,{
key:0
},[oa(st(e.value.type)+" "+st(e.value.items.type)+"[] ",1)],64)):(zi(),Wi(Bi,{
key:1
},[oa(st(Array.isArray(e.value.type)?e.value.type.join(" | "):e.value.type)+" "+st((null==(r=e.value)?void 0:r.nullable)?" | nullable":""),1)],64)),e.value.minItems||e.value.maxItems?(zi(),
Wi(Bi,{key:2
},[oa(st(e.value.minItems)+"…"+st(e.value.maxItems),1)],64)):aa("",!0)]})),_:1
}),e.value.minLength?(zi(),Xi(K5,{key:0},{prefix:Tr((()=>[oa("min:")])),
default:Tr((()=>[oa(" "+st(e.value.minLength),1)])),_:1
})):aa("",!0),e.value.maxLength?(zi(),Xi(K5,{key:1},{
prefix:Tr((()=>[oa("max:")])),
default:Tr((()=>[oa(" "+st(e.value.maxLength),1)])),_:1
})):aa("",!0),e.value.uniqueItems?(zi(),Xi(K5,{key:2},{
default:Tr((()=>[oa(" unique! ")])),_:1
})):aa("",!0),e.value.format?(zi(),Xi(K5,{key:3},{
default:Tr((()=>[oa(st(e.value.format),1)])),_:1
})):aa("",!0),void 0!==e.value.minimum&&e.value.exclusiveMinimum?(zi(),Xi(K5,{
key:4},{prefix:Tr((()=>[oa("greater than:")])),
default:Tr((()=>[oa(" "+st(e.value.minimum),1)])),_:1
})):aa("",!0),void 0===e.value.minimum||e.value.exclusiveMinimum?aa("",!0):(zi(),
Xi(K5,{key:5},{prefix:Tr((()=>[oa("min:")])),
default:Tr((()=>[oa(" "+st(e.value.minimum),1)])),_:1
})),void 0!==e.value.maximum&&e.value.exclusiveMaximum?(zi(),Xi(K5,{key:6},{
prefix:Tr((()=>[oa("less than:")])),
default:Tr((()=>[oa(" "+st(e.value.maximum),1)])),_:1
})):aa("",!0),void 0===e.value.maximum||e.value.exclusiveMaximum?aa("",!0):(zi(),
Xi(K5,{key:7},{prefix:Tr((()=>[oa("max:")])),
default:Tr((()=>[oa(" "+st(e.value.maximum),1)])),_:1
})),e.value.pattern?(zi(),Xi(K5,{key:8,code:"",truncate:""},{
default:Tr((()=>[oa(st(e.value.pattern),1)])),_:1
})):aa("",!0),e.$props.enum?(zi(),Xi(K5,{key:9},{default:Tr((()=>[oa("enum")])),
_:1})):aa("",!0),e.value.default?(zi(),Xi(K5,{key:10,truncate:""},{
prefix:Tr((()=>[oa("default:")])),default:Tr((()=>{
return[oa(" "+st((t=e.value,Array.isArray(null==t?void 0:t.default)&&1===t.default.length?t.default[0]:null==t?void 0:t.default)),1)]
;var t})),_:1
})):aa("",!0)])):aa("",!0),(null==(l=e.value)?void 0:l.writeOnly)?(zi(),
Wi("div",a3," write-only ")):(null==(c=e.value)?void 0:c.readOnly)?(zi(),
Wi("div",s3," read-only ")):aa("",!0),(zi(!0),Wi(Bi,null,Kr(t.filter((t=>{
var n,r,o
;return(null==(n=e.value)?void 0:n[t])||(null==(o=null==(r=e.value)?void 0:r.items)?void 0:o[t])
})),(e=>(zi(),Xi(Fn(I2),{key:e},{default:Tr((()=>[oa(st(e),1)])),_:2
},1024)))),128))])}}
}),c3=$K(l3,[["__scopeId","data-v-51fd8de8"]]),u3=e=>(_r("data-v-d1d8e2ad"),
e=e(),Er(),e),d3={key:0,class:"property-description"},p3={key:1,
class:"property-description"},h3={key:2,class:"property-example custom-scroll"
},f3=u3((()=>ea("span",{class:"property-example-label"},"Example",-1))),m3={
class:"property-example-value"},g3={key:3,class:"property-enum"},v3={key:0,
class:"property-list"},b3={class:"property-heading"},O3={class:"property-name"
},y3={class:"property-description"},w3={key:1,class:"property-enum-values"},x3={
key:4,class:"children"},k3={key:0,class:"children"},S3={key:0,
class:"property-rule"},_3={key:1,class:"property-rule"},E3=$K(eo({
__name:"SchemaProperty",props:{value:{},level:{default:0},name:{},required:{
type:Boolean,default:!1},compact:{type:Boolean,default:!1},description:{},
additional:{type:Boolean}},setup(e){const t={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"}},n=function(e,t){
return(null==t?void 0:t.properties)||(null==t?void 0:t.additionalProperties)?null:e||(null==t?void 0:t.description)||null
},r=function(e){return e&&t[e.type]?t[e.type][e.format||"_default"]:null
},o=function(e){var t
;return(null==e?void 0:e.enum)||(null==(t=null==e?void 0:e.items)?void 0:t.enum)||[]
},i=["oneOf","anyOf","allOf","not"];return(e,t)=>{var a,s,l,c,u,d,p,h,f,m,g
;return zi(),Wi("div",{class:et(["property",[`property--level-${e.level}`,{
"property--compact":e.compact,
"property--deprecated":null==(a=e.value)?void 0:a.deprecated}]])},[ta(c3,{
additional:e.additional,enum:o(e.value).length>1,required:e.required,
value:e.value},Jr({_:2},[e.name?{name:"name",fn:Tr((()=>[oa(st(e.name),1)])),
key:"0"
}:void 0]),1032,["additional","enum","required","value"]),n(e.description,e.value)?(zi(),
Wi("div",d3,[ta(Fn(cW),{value:n(e.description,e.value)
},null,8,["value"])])):r(e.value)?(zi(),Wi("div",p3,[ta(Fn(cW),{
value:r(e.value)||""
},null,8,["value"])])):aa("",!0),(null==(s=e.value)?void 0:s.example)||(null==(c=null==(l=e.value)?void 0:l.items)?void 0:c.example)?(zi(),
Wi("div",h3,[f3,ea("code",m3,st(e.value.example||(null==(u=e.value)?void 0:u.items.example)),1)])):aa("",!0),(null==(d=o(e.value))?void 0:d.length)>1?(zi(),
Wi("div",g3,[(null==(p=e.value)?void 0:p["x-enumDescriptions"])?(zi(),
Wi("div",v3,[(zi(!0),Wi(Bi,null,Kr(o(e.value),(t=>(zi(),Wi("div",{key:t,
class:"property"},[ea("div",b3,[ea("div",O3,st(t),1)]),ea("div",y3,[ta(Fn(cW),{
value:e.value["x-enumDescriptions"][t]},null,8,["value"])])])))),128))])):(zi(),
Wi("ul",w3,[(zi(!0),Wi(Bi,null,Kr(o(e.value),(e=>(zi(),Wi("li",{key:e,
class:"property-enum-value"
},st(e),1)))),128))]))])):aa("",!0),"object"===(null==(h=e.value)?void 0:h.type)&&((null==(f=e.value)?void 0:f.properties)||(null==(m=e.value)?void 0:m.additionalProperties))?(zi(),
Wi("div",x3,[ta(A3,{compact:e.compact,level:e.level+1,value:e.value
},null,8,["compact","level","value"])])):aa("",!0),(null==(g=e.value)?void 0:g.items)?(zi(),
Wi(Bi,{key:5
},[["object"].includes(e.value.items.type)?(zi(),Wi("div",k3,[ta(A3,{
compact:e.compact,level:e.level+1,value:e.value.items
},null,8,["compact","level","value"])])):aa("",!0)],64)):aa("",!0),(zi(),
Wi(Bi,null,Kr(i,(t=>{var n,r,o;return zi(),Wi(Bi,{key:t
},[(null==(n=e.value)?void 0:n[t])?(zi(),
Wi("div",S3,[(zi(!0),Wi(Bi,null,Kr(e.value[t],((t,n)=>(zi(),Xi(A3,{key:n,
compact:e.compact,level:e.level+1,value:t
},null,8,["compact","level","value"])))),128))])):aa("",!0),(null==(o=null==(r=e.value)?void 0:r.items)?void 0:o[t])&&e.level<3?(zi(),
Wi("div",_3,[(zi(!0),Wi(Bi,null,Kr(e.value.items[t],((t,n)=>(zi(),Xi(A3,{key:n,
compact:e.compact,level:e.level+1,value:t
},null,8,["compact","level","value"])))),128))])):aa("",!0)],64)})),64))],2)}}
}),[["__scopeId","data-v-d1d8e2ad"]]),T3={key:0,class:"schema-card-description"
},C3=eo({__name:"Schema",props:{value:{type:[Object,Boolean]},level:{default:0},
name:{},compact:{type:Boolean},noncollapsible:{type:Boolean},hideHeading:{
type:Boolean}},setup(e){
const t=e,n=Aa((()=>!t.noncollapsible&&0!==t.level)),r=e=>t.noncollapsible&&e.stopPropagation()
;return(e,t)=>"object"==typeof e.value&&Object.keys(e.value).length?(zi(),
Xi(Fn(Q0),{key:0,defaultOpen:e.noncollapsible},{default:Tr((({open:t})=>{var o
;return[ea("div",{class:et(["schema-card",[`schema-card--level-${e.level}`,{
"schema-card--compact":e.compact,"schema-card--open":t}]])
},[(null==(o=e.value)?void 0:o.description)&&"string"==typeof e.value.description?(zi(),
Wi("div",T3,[ta(Fn(cW),{value:e.value.description
},null,8,["value"])])):aa("",!0),ea("div",{class:et(["schema-properties",{
"schema-properties-open":t}])},[Yr(ta(Fn(j0),{
as:e.noncollapsible?"div":"button",class:et(["schema-card-title",{
"schema-card-title--compact":e.compact}]),style:Xe({
top:`calc(var(--refs-header-height) +  calc(var(--schema-title-height) * ${e.level}))`
}),onClickCapture:r},{default:Tr((()=>{var r,o,i;return[e.compact?(zi(),Wi(Bi,{
key:0},[n.value?(zi(),Xi(Fn(xZ),{key:0,
class:et(["schema-card-title-icon h-2.5",{"schema-card-title-icon--open":t}]),
icon:"Add",thickness:"3"},null,8,["class"])):aa("",!0),t?(zi(),Wi(Bi,{key:1
},[oa(" Hide "+st((null==(r=e.value)?void 0:r.title)??"Child Attributes"),1)],64)):(zi(),
Wi(Bi,{key:2
},[oa(" Show "+st((null==(o=e.value)?void 0:o.title)??"Child Attributes"),1)],64))],64)):(zi(),
Wi(Bi,{key:1},[n.value?(zi(),Xi(Fn(xZ),{key:0,
class:et(["schema-card-title-icon",{"schema-card-title-icon--open":t}]),
icon:"Add",size:"xs",thickness:"2.5"},null,8,["class"])):aa("",!0),ta(W5,{
name:(null==(i=e.value)?void 0:i.title)??e.name,value:e.value
},null,8,["name","value"])],64))]})),_:2
},1032,["as","class","style"]),[[Ka,!(e.hideHeading||e.noncollapsible&&e.compact)]]),ta(Fn(U0),{
static:e.noncollapsible},{default:Tr((()=>{var t
;return[e.value.properties||e.value.additionalProperties?(zi(),Wi(Bi,{key:0
},[e.value.properties?(zi(!0),Wi(Bi,{key:0
},Kr(Object.keys(null==(t=e.value)?void 0:t.properties),(t=>{var n,r,o,i
;return zi(),Xi(E3,{key:t,compact:e.compact,level:e.level,name:t,
required:(null==(n=e.value.required)?void 0:n.includes(t))||!0===(null==(o=null==(r=e.value.properties)?void 0:r[t])?void 0:o.required),
value:null==(i=e.value.properties)?void 0:i[t]
},null,8,["compact","level","name","required","value"])
})),128)):aa("",!0),e.value.additionalProperties?(zi(),Wi(Bi,{key:1
},[!0!==e.value.additionalProperties&&0!==Object.keys(e.value.additionalProperties).length&&e.value.additionalProperties.type?(zi(),
Xi(E3,{key:1,additional:"",compact:e.compact,level:e.level,noncollapsible:"",
value:e.value.additionalProperties
},null,8,["compact","level","value"])):(zi(),Xi(E3,{key:0,additional:"",
compact:e.compact,level:e.level,noncollapsible:"",value:{type:"anything",
..."object"==typeof e.value.additionalProperties?e.value.additionalProperties:{}
}},null,8,["compact","level","value"]))],64)):aa("",!0)],64)):(zi(),Xi(E3,{
key:1,compact:e.compact,level:e.level,name:e.value.name,value:e.value
},null,8,["compact","level","name","value"]))]})),_:1},8,["static"])],2)],2)]
})),_:1},8,["defaultOpen"])):aa("",!0)}
}),A3=$K(C3,[["__scopeId","data-v-24920b5a"]]),P3=["value"],D3=["value"],$3=$K(eo({
__name:"ContentTypeSelect",props:{requestBody:{},defaultValue:{}},
emits:["selectContentType"],setup(e,{emit:t}){const n=e,r=t,o=Aa((()=>{var e
;return(null==(e=n.requestBody)?void 0:e.content)?Object.keys(n.requestBody.content):[]
})),i=Bn(n.defaultValue||o.value[0]);return(e,t)=>{var a;return zi(),Wi("div",{
class:et(["content-type-select",{"content-type-no-select":o.value.length<=1}])
},[ea("span",null,st(i.value),1),(null==n?void 0:n.requestBody)&&o.value.length>1?(zi(),
Wi("select",{key:0,value:i.value,onChange:t[0]||(t[0]=e=>(e=>{
const t=e.target.value;i.value=t,r("selectContentType",{contentType:t})})(e))
},[(zi(!0),Wi(Bi,null,Kr(null==(a=n.requestBody)?void 0:a.content,((e,t)=>(zi(),
Wi("option",{key:t,value:t},st(t),9,D3)))),128))],40,P3)):aa("",!0)],2)}}
}),[["__scopeId","data-v-19d1d4d0"]]),R3=$K(eo({__name:"ParameterHeaders",
props:{headers:{}},setup(e){function t(e){return void 0!==e.schema}
return(e,n)=>(zi(),Xi(Fn(Q0),null,{default:Tr((({open:n})=>[ea("div",{
class:et(["headers-card headers-card--compact",[{"headers-card--open":n}]])
},[ea("div",{class:et(["headers-properties",{"headers-properties-open":n}])
},[ta(Fn(j0),{class:"headers-card-title headers-card-title--compact",style:{
top:"calc(var(--refs-header-height)))"}},{default:Tr((()=>[ta(Fn(xZ),{
class:et(["headers-card-title-icon",{"headers-card-title-icon--open":n}]),
icon:"Add",thickness:"3"},null,8,["class"]),n?(zi(),Wi(Bi,{key:0
},[oa(" Hide Headers ")],64)):(zi(),Wi(Bi,{key:1
},[oa(" Show Headers ")],64))])),_:2},1024),ta(Fn(U0),null,{
default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(e.headers,((e,n)=>(zi(),Xi(E3,{key:n,
description:e.description,name:`${n}`,value:t(e)?e.schema:void 0
},null,8,["description","name","value"])))),128))])),_:1})],2)],2)])),_:1}))}
}),[["__scopeId","data-v-eecfdd25"]]),N3={class:"parameter-item"},I3={
class:"parameter-item-name"},M3={class:"parameter-item-type"},L3={key:1,
class:"parameter-item-container parameter-item-container-markdown"},B3=$K(eo({
__name:"ParameterItem",props:{parameter:{},showChildren:{type:Boolean,default:!1
},collapsableItems:{type:Boolean,default:!1}},setup(e){
const t=e,n=Bn(!1),r=Bn(Aa((()=>t.parameter.content?Object.keys(t.parameter.content):[])).value[0])
;t.parameter.content&&"application/json"in t.parameter.content&&(r.value="application/json")
;const o=Aa((()=>t.collapsableItems&&t.parameter.content));return(e,i)=>{var a,s
;return zi(),Wi("li",N3,[o.value?(zi(),Wi("div",{key:0,
class:et(["flex parameter-item-trigger",{"parameter-item-trigger-open":n.value
}]),onClick:i[1]||(i[1]=e=>n.value=!n.value)},[ta(Fn(xZ),{
class:"parameter-item-icon",icon:n.value?"ChevronDown":"ChevronRight",size:"md",
thickness:"1.75"
},null,8,["icon"]),ea("span",I3,st(e.parameter.name),1),ea("span",M3,st(e.parameter.description),1),o.value&&t.parameter.content?(zi(),
Xi($3,{key:0,class:"parameter-item-content-type",defaultValue:r.value,
requestBody:t.parameter,
onSelectContentType:i[0]||(i[0]=({contentType:e})=>r.value=e)
},null,8,["defaultValue","requestBody"])):aa("",!0)],2)):aa("",!0),o.value&&n.value||!o.value?(zi(),
Wi("div",L3,[e.parameter.headers?(zi(),Xi(R3,{key:0,headers:e.parameter.headers
},null,8,["headers"])):aa("",!0),ta(Fn(E3),{compact:"",
description:o.value?"":e.parameter.description,name:o.value?"":e.parameter.name,
noncollapsible:e.showChildren,required:e.parameter.required,
value:e.parameter.content?null==(s=null==(a=e.parameter.content)?void 0:a[r.value])?void 0:s.schema:e.parameter.schema
},null,8,["description","name","noncollapsible","required","value"])])):aa("",!0)])
}}}),[["__scopeId","data-v-f4d4e7c0"]]),Q3={key:0,class:"parameters"},j3={
class:"parameters-title"},U3={class:"parameter-list"},F3=$K(eo({
__name:"Parameters",props:{parameters:{},showChildren:{type:Boolean,default:!1},
collapsableItems:{type:Boolean,default:!1}},setup:e=>(e,t)=>{var n
;return(null==(n=e.parameters)?void 0:n.length)?(zi(),
Wi("div",Q3,[ea("div",j3,[no(e.$slots,"title",{},void 0,!0)]),ea("ul",U3,[(zi(!0),
Wi(Bi,null,Kr(e.parameters,(t=>(zi(),Xi(B3,{key:t.name,
collapsableItems:e.collapsableItems,parameter:t,showChildren:e.showChildren
},null,8,["collapsableItems","parameter","showChildren"])))),128))])])):aa("",!0)
}}),[["__scopeId","data-v-eade05ab"]]),q3={key:0},z3={class:"request-body-title"
},H3=["value"],Z3={key:0,class:"request-body-description"},V3={key:0,
class:"request-body-schema"},W3=$K(eo({__name:"RequestBody",props:{
requestBody:{}},setup(e){var t;const n=e,r=Aa((()=>{var e
;return(null==(e=n.requestBody)?void 0:e.content)?Object.keys(n.requestBody.content):[]
})),o=Bn("application/json")
;return(null==(t=n.requestBody)?void 0:t.content)&&r.value.length>0&&(o.value=r.value[0]),
(e,t)=>{var i,a,s,l
;return(null==n?void 0:n.requestBody)?(zi(),Wi("div",q3,[ea("div",z3,[no(e.$slots,"title",{},void 0,!0),ea("div",{
class:et(["request-body-title-select",{
"request-body-title-no-select":r.value.length<=1}])
},[ea("span",null,st(o.value),1),(null==n?void 0:n.requestBody)&&r.value.length>1?Yr((zi(),
Wi("select",{key:0,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e)
},[(zi(!0),Wi(Bi,null,Kr(null==(i=n.requestBody)?void 0:i.content,((e,t)=>(zi(),
Wi("option",{key:t,value:t
},st(t),9,H3)))),128))],512)),[[Es,o.value]]):aa("",!0)],2),(null==n?void 0:n.requestBody.description)?(zi(),
Wi("div",Z3,[ta(Fn(cW),{value:n.requestBody.description
},null,8,["value"])])):aa("",!0)]),(null==(a=null==n?void 0:n.requestBody.content)?void 0:a[o.value])?(zi(),
Wi("div",V3,[ta(Fn(A3),{compact:"",noncollapsible:"",
value:null==(l=null==(s=null==n?void 0:n.requestBody.content)?void 0:s[o.value])?void 0:l.schema
},null,8,["value"])])):aa("",!0)])):aa("",!0)}}
}),[["__scopeId","data-v-3b43342b"]]),X3={class:"endpoint-details"},Y3={
class:"endpoint-description"},G3=eo({__name:"EndpointDetails",props:{
operation:{}},setup(e){
const t=e,{parameterMap:n}=ef(t),{responses:r}=cD(t.operation);return(e,t)=>{
var o,i;return zi(),Wi("div",X3,[ea("div",Y3,[ta(Fn(cW),{
value:e.operation.description,withImages:""},null,8,["value"])]),ta(F3,{
parameters:Fn(n).path},{title:Tr((()=>[oa("Path Parameters")])),_:1
},8,["parameters"]),ta(F3,{parameters:Fn(n).query},{
title:Tr((()=>[oa("Query Parameters")])),_:1},8,["parameters"]),ta(F3,{
parameters:Fn(n).header},{title:Tr((()=>[oa("Headers")])),_:1
},8,["parameters"]),ta(F3,{parameters:Fn(n).body,showChildren:""},{
title:Tr((()=>[oa("Body Parameters")])),_:1},8,["parameters"]),ta(F3,{
parameters:Fn(n).formData},{title:Tr((()=>[oa("Form Data")])),_:1
},8,["parameters"]),(null==(o=e.operation.information)?void 0:o.requestBody)?(zi(),
Xi(W3,{key:0,requestBody:null==(i=e.operation.information)?void 0:i.requestBody
},{title:Tr((()=>[oa("Body")])),_:1},8,["requestBody"])):aa("",!0),ta(F3,{
collapsableItems:!0,parameters:Fn(r)},{title:Tr((()=>[oa("Responses")])),_:1
},8,["parameters"])])}}}),K3={key:0},J3=eo({__name:"EndpointPath",props:{
path:{},deprecated:{type:Boolean}},setup(e){
const t=e,n=e=>e.startsWith("{")&&e.endsWith("}"),r=Aa((()=>t.path.split(/({[^}]+})/)))
;return(e,t)=>(zi(),Wi("span",{class:et(["endpoint-path",{
deprecated:e.deprecated}])},[(zi(!0),Wi(Bi,null,Kr(r.value,((e,t)=>(zi(),Wi(Bi,{
key:t},[n(e)?(zi(),Wi("em",K3,st(e),1)):(zi(),Wi(Bi,{key:1
},[oa(st(e),1)],64))],64)))),128))],2))}
}),e4=$K(J3,[["__scopeId","data-v-b5ffe25a"]]),t4=e=>(_r("data-v-2e17b0a6"),
e=e(),
Er(),e),n4=["method"],r4=t4((()=>ea("span",null,"Test Request",-1))),o4=$K(eo({
__name:"TestRequestButton",props:{operation:{}},setup(e){const t=$o(nD)
;return(e,n)=>{var r;return!0!==(null==(r=Fn(t))?void 0:r())?(zi(),Wi("button",{
key:0,class:"show-api-client-button",method:e.operation.httpVerb,type:"button",
onClick:n[0]||(n[0]=$s((t=>Fn(MJ).emit({open:{path:e.operation.path,
method:e.operation.httpVerb}})),["stop"]))},[ta(Fn(xZ),{icon:"Play",size:"sm"
}),r4],8,n4)):(zi(),Wi(Bi,{key:1},[oa(" ")],64))}}
}),[["__scopeId","data-v-2e17b0a6"]]),i4={class:"examples"},a4=$K(eo({
__name:"Operation",props:{id:{},operation:{}},setup:e=>(e,t)=>(zi(),Xi(Fn(L2),{
id:e.id,label:e.operation.name},{default:Tr((()=>[ta(Fn(e5),null,{
default:Tr((()=>[ta(Fn(Z2),null,{default:Tr((()=>[ta(Fn(z2),null,{
default:Tr((()=>{var t,n
;return[(null==(t=e.operation.information)?void 0:t.deprecated)?(zi(),
Xi(Fn(I2),{key:0},{default:Tr((()=>[oa(" Deprecated ")])),_:1
})):aa("",!0),ea("div",{
class:et((null==(n=e.operation.information)?void 0:n.deprecated)?"deprecated":"")
},[ta(Fn(t5),{level:3},{default:Tr((()=>[ta(Fn(l5),{id:e.id??""},{
default:Tr((()=>[oa(st(e.operation.name),1)])),_:1},8,["id"])])),_:1
})],2),ta(G3,{operation:e.operation},null,8,["operation"])]})),_:1
}),ta(Fn(z2),null,{default:Tr((()=>[ea("div",i4,[ta(Fn(L5),{
operation:e.operation},{header:Tr((()=>{var t;return[ta(e4,{
class:"example-path",
deprecated:null==(t=e.operation.information)?void 0:t.deprecated,
path:e.operation.path},null,8,["deprecated","path"])]})),footer:Tr((()=>[ta(o4,{
operation:e.operation},null,8,["operation"])])),_:1
},8,["operation"]),ta(Fn(H5),{operation:e.operation,style:{"margin-top":"12px"}
},null,8,["operation"])])])),_:1})])),_:1})])),_:1})])),_:1},8,["id","label"]))
}),[["__scopeId","data-v-307792e5"]]),s4={class:"endpoint-details-card"
},l4=$K(eo({__name:"EndpointDetailsCard",props:{operation:{}},setup(e){
const t=e,{parameterMap:n}=ef(t),{responses:r}=cD(t.operation);return(e,t)=>{
var o;return zi(),Wi("div",s4,[ta(F3,{class:"endpoint-details-card-item",
parameters:Fn(n).path},{title:Tr((()=>[oa("Path Parameters")])),_:1
},8,["parameters"]),ta(F3,{class:"endpoint-details-card-item",
parameters:Fn(n).query},{title:Tr((()=>[oa("Query Parameters")])),_:1
},8,["parameters"]),ta(F3,{class:"endpoint-details-card-item",
parameters:Fn(n).header},{title:Tr((()=>[oa("Headers")])),_:1
},8,["parameters"]),ta(W3,{class:"endpoint-details-card-item",
requestBody:null==(o=e.operation.information)?void 0:o.requestBody},{
title:Tr((()=>[oa("Body")])),_:1},8,["requestBody"]),ta(F3,{
class:"endpoint-details-card-item",parameters:Fn(r)},{
title:Tr((()=>[oa("Responses")])),_:1},8,["parameters"])])}}
}),[["__scopeId","data-v-102733a0"]]),c4={class:"endpoint-header"},u4={
class:"endpoint-details"},d4={class:"endpoint-label"},p4={
class:"endpoint-label-path"},h4={class:"endpoint-label-name"},f4={
class:"endpoint-content"},m4=$K(eo({__name:"OperationAccordion",props:{id:{},
operation:{}},setup(e){const{copyToClipboard:t}=Rh(),n=$o(nD)
;return console.log(!(null==n?void 0:n())),(e,r)=>(zi(),Xi(Fn(F2),{id:e.id,
class:"reference-endpoint",transparent:""},Jr({
title:Tr((()=>[ea("h3",c4,[ea("div",u4,[ta(Fn(DK),{class:"endpoint-type",
method:e.operation.httpVerb,short:""},null,8,["method"]),ta(Fn(l5),{id:e.id??"",
class:"endpoint-anchor"},{default:Tr((()=>{var t
;return[ea("div",d4,[ea("div",p4,[ta(e4,{
deprecated:null==(t=e.operation.information)?void 0:t.deprecated,
path:e.operation.path
},null,8,["deprecated","path"])]),ea("div",h4,st(e.operation.name),1)])]})),_:1
},8,["id"])])])])),actions:Tr((({active:o})=>{var i;return[o?(zi(),Xi(o4,{key:0,
operation:e.operation
},null,8,["operation"])):(null==(i=Fn(n))?void 0:i())?aa("",!0):(zi(),
Xi(Fn(xZ),{key:1,class:"endpoint-try-hint",icon:"Play",thickness:"1.75px"
})),ta(Fn(bW),{class:"endpoint-copy",icon:"Clipboard",label:"Copy endpoint URL",
size:"xs",variant:"ghost",
onClick:r[0]||(r[0]=$s((n=>Fn(t)(e.operation.path)),["stop"]))})]})),
default:Tr((()=>[ea("div",f4,[ta(l4,{operation:e.operation
},null,8,["operation"]),ta(Fn(H5),{operation:e.operation
},null,8,["operation"]),ta(Fn(L5),{operation:e.operation
},null,8,["operation"])])])),_:2},[e.operation.description?{name:"description",
fn:Tr((()=>[ta(Fn(cW),{value:e.operation.description,withImages:""
},null,8,["value"])])),key:"0"}:void 0]),1032,["id"]))}
}),[["__scopeId","data-v-9b0621a3"]]),g4=$K(eo({__name:"ShowMoreButton",props:{
id:{}},setup(e){const{setCollapsedSidebarItem:t}=DD()
;return(e,n)=>(zi(),Wi("button",{class:"show-more",type:"button",
onClick:n[0]||(n[0]=n=>Fn(t)(e.id,!0))},[oa(" Show More "),ta(Fn(xZ),{
class:"show-more-icon",icon:"ChevronDown"})]))}
}),[["__scopeId","data-v-b1ddf847"]]),v4={class:"endpoints"
},b4=["onClick"],O4=$K(eo({__name:"Endpoints",props:{id:{},tag:{},isCollapsed:{
type:Boolean}},setup(e){
const t=e,{getOperationId:n,getTagId:r}=Jh(),{scrollToOperation:o}=DD()
;return(e,i)=>(zi(),Xi(Fn(L2),{id:e.id,label:e.tag.name.toUpperCase()},{
default:Tr((()=>[ta(Fn(e5),null,{default:Tr((()=>[ta(Fn(Z2),null,{
default:Tr((()=>[ta(Fn(z2),null,{default:Tr((()=>[ta(Fn(t5),{level:2},{
default:Tr((()=>[ta(Fn(l5),{id:Fn(r)(e.tag)},{
default:Tr((()=>[oa(st(e.tag["x-displayName"]??e.tag.name),1)])),_:1
},8,["id"])])),_:1}),ta(Fn(cW),{clamp:!!e.isCollapsed&&"7",
value:e.tag.description,withImages:""},null,8,["clamp","value"])])),_:1
}),ta(Fn(z2),null,{default:Tr((()=>{var r
;return[(null==(r=e.tag.operations)?void 0:r.length)>0?(zi(),Xi(Fn(S5),{key:0,
class:"scalar-card-sticky"},{default:Tr((()=>[ta(Fn(A5),{muted:""},{
default:Tr((()=>[oa("Endpoints")])),_:1}),ta(Fn(_5),{class:"custom-scroll",
muted:""},{
default:Tr((()=>[ea("div",v4,[(zi(!0),Wi(Bi,null,Kr(e.tag.operations,(r=>{var i
;return zi(),Wi("a",{key:Fn(n)(r,e.tag),class:"endpoint",onClick:e=>(async e=>{
const r=n(e,t.tag);o(r)})(r)},[ta(Fn(DK),{method:r.httpVerb
},null,8,["method"]),ea("span",{class:et({
deprecated:null==(i=r.information)?void 0:i.deprecated})},st(r.path),3)],8,b4)
})),128))])])),_:1})])),_:1})):aa("",!0)]})),_:1})])),_:1})])),_:1})])),_:1
},8,["id","label"]))}}),[["__scopeId","data-v-fe316e67"]]),y4=$K(eo({
__name:"Tag",props:{id:{},tag:{},spec:{}},setup(e){
const t=e,n=Bn(null),{collapsedSidebarItems:r}=DD(),{getTagId:o}=Jh(),i=Aa((()=>{
var e,n,r
;return 1!==(null==(e=t.spec.tags)?void 0:e.length)||"default"!==(null==(n=t.tag)?void 0:n.name)||""!==(null==(r=t.tag)?void 0:r.description)
}));return(e,t)=>(zi(),Xi(Fn(W2),{ref_key:"sectionContainerRef",ref:n,
class:"tag-section-container"},{default:Tr((()=>{var t
;return[i.value?(zi(),Xi(O4,{key:0,id:e.id,isCollapsed:!Fn(r)[Fn(o)(e.tag)],
tag:e.tag
},null,8,["id","isCollapsed","tag"])):aa("",!0),!Fn(r)[Fn(o)(e.tag)]&&(null==(t=e.tag.operations)?void 0:t.length)>1?(zi(),
Xi(g4,{key:1,id:e.id??""},null,8,["id"])):no(e.$slots,"default",{key:2
},void 0,!0)]})),_:3},512))}}),[["__scopeId","data-v-f9c3c8a1"]]),w4=$K(eo({
__name:"TagAccordion",props:{tag:{},spec:{}},setup(e){const{getTagId:t}=Jh()
;return(e,n)=>(zi(),Xi(Fn(G2),{class:"tag-section"},{title:Tr((()=>[ta(Fn(t5),{
class:"tag-name",level:2},{default:Tr((()=>[ta(Fn(l5),{id:Fn(t)(e.tag)},{
default:Tr((()=>[oa(st(e.tag.name),1)])),_:1},8,["id"])])),_:1}),ta(Fn(cW),{
class:"tag-description",value:e.tag.description,withImages:""
},null,8,["value"])])),default:Tr((()=>[no(e.$slots,"default",{},void 0,!0)])),
_:3}))}}),[["__scopeId","data-v-fe69da0e"]]),x4=eo({__name:"Loading",props:{
layout:{default:"default"},parsedSpec:{}},setup(e){
const t=e,n=Bn(!1),r=Bn([]),o=Bn([]),{getModelId:i,getSectionId:a,getTagId:s,hash:l,isIntersectionEnabled:c}=Jh(),u=Bn("accordion"!==t.layout&&l.value)
;li((()=>{var e;return null==(e=t.parsedSpec.tags)?void 0:e.length}),(e=>{
var i,u;if(!l.value||"number"!=typeof e||!t.parsedSpec.tags)return;const d=a()
;if(d.startsWith("tag")){let e=0
;const o=(null==(i=t.parsedSpec.tags)?void 0:i.findIndex((e=>s(e)===d)))??0,a=l.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/)
;if(4===(null==a?void 0:a.length)){const n=a[2],r="/"+a[3]
;e=null==(u=t.parsedSpec.tags[o])?void 0:u.operations.findIndex((({httpVerb:e,path:t})=>n===e&&r===t))
}const c=t.parsedSpec.tags[o];if(!c)return
;"default"!==c.name&&(n.value=d!==l.value&&d.startsWith("tag")),r.value.push({
...c,lazyOperations:c.operations.slice(e,e+2)})
}else if(l.value.startsWith("model")){
const e=Object.keys(kP(t.parsedSpec)??{}),[,n]=l.value.toLowerCase().split("/"),r="models"===l.value?0:e.findIndex((e=>e.toLowerCase()===n))
;if(-1===r)return;o.value=e.slice(r,r+3)
}else"undefined"!=typeof window&&oD(l.value),setTimeout((()=>c.value=!0),1e3)
}),{immediate:!0});const d=uD.on((({id:e})=>{const t=l.value
;t&&e===t&&(d(),setTimeout((()=>{
"undefined"!=typeof window&&oD(t),u.value=!1,setTimeout((()=>c.value=!0),1e3)
}),300))}));return Ur((()=>{l.value||setTimeout((()=>c.value=!0),1e3)
})),(e,t)=>Yr((zi(),Wi("div",{class:et(["references-loading",{
"references-loading-hidden-tag":n.value,
"references-loading-top-spacer":r.value.length}])
},[(zi(!0),Wi(Bi,null,Kr(r.value,((t,n)=>(zi(),Wi(Bi,{key:t.name+n
},[t.operations&&t.operations.length>0?(zi(),Xi(Fn(y4),{key:0,spec:e.parsedSpec,
tag:t},{
default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(t.lazyOperations,(e=>(zi(),Xi(Fn(a4),{
key:`${e.httpVerb}-${e.operationId}`,operation:e,tag:t
},null,8,["operation","tag"])))),128))])),_:2
},1032,["spec","tag"])):aa("",!0)],64)))),128)),o.value.length?(zi(),Xi(Fn(W2),{
key:0},{default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(o.value,(t=>(zi(),Xi(Fn(L2),{
key:t,label:t},{default:Tr((()=>{var n
;return[(null==(n=Fn(kP)(e.parsedSpec))?void 0:n[t])?(zi(),Xi(Fn(e5),{key:0},{
default:Tr((()=>{var n;return[ta(Fn(t5),{level:2},{default:Tr((()=>[ta(Fn(l5),{
id:Fn(i)(t)},{default:Tr((()=>{var n
;return[oa(st((null==(n=Fn(kP)(e.parsedSpec))?void 0:n[t]).title??t),1)]})),_:2
},1032,["id"])])),_:2},1024),ta(Fn(A3),{name:t,noncollapsible:"",
value:null==(n=Fn(kP)(e.parsedSpec))?void 0:n[t]},null,8,["name","value"])]})),
_:2},1024)):aa("",!0)]})),_:2},1032,["label"])))),128))])),_:1
})):aa("",!0)],2)),[[Ka,u.value]])}}),k4=$K(eo({__name:"Models",props:{
schemas:{}},setup(e){
const t=e,{collapsedSidebarItems:n}=DD(),{getModelId:r}=Jh(),o=Aa((()=>Object.keys(t.schemas??{}).length<=10||n[r()])),i=Aa((()=>{
const e=Object.keys(t.schemas??{});return o.value?e:e.slice(0,10)}))
;return(e,t)=>e.schemas?(zi(),Xi(Fn(W2),{key:0,id:"models"},{
default:Tr((()=>[ta(Fn(L2),null,{default:Tr((()=>[ta(Fn(t5),{level:2},{
default:Tr((()=>[oa("Models")])),_:1}),ta(Fn(g5),{id:"models",isLazy:!1
}),ea("div",{class:et(["models-list",{"models-list-truncated":!o.value}])
},[(zi(!0),Wi(Bi,null,Kr(i.value,(t=>(zi(),Xi(Fn(g5),{id:Fn(r)(t),key:t,
isLazy:""},{default:Tr((()=>[ta(Fn(u5),{id:Fn(r)(t),class:"models-list-item",
label:t},{heading:Tr((()=>[ta(Fn(W5),{name:t,value:e.schemas[t]
},null,8,["name","value"])])),default:Tr((()=>[ta(Fn(A3),{hideHeading:!0,
noncollapsible:"",value:e.schemas[t]},null,8,["value"])])),_:2
},1032,["id","label"])])),_:2
},1032,["id"])))),128))],2),o.value?aa("",!0):(zi(),Xi(g4,{key:0,id:Fn(r)(),
class:"show-more-models"},null,8,["id"]))])),_:1})])),_:1})):aa("",!0)}
}),[["__scopeId","data-v-cff15ceb"]]),S4={key:0,class:"properties"},_4={key:1
},E4=$K(eo({__name:"ModelsAccordion",props:{schemas:{}},setup(e){
const t=e,n=Aa((()=>t.schemas?Object.entries(t.schemas).map((([e,t])=>({name:e,
schema:t}))):[])),{getModelId:r}=Jh();return(e,o)=>t.schemas?(zi(),Xi(Fn(G2),{
key:0,class:"reference-models"},{title:Tr((()=>[ta(Fn(t5),{level:2},{
default:Tr((()=>[oa("Models")])),_:1})])),
default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(n.value,(({name:e,schema:t})=>(zi(),
Xi(Fn(F2),{id:Fn(r)(e),key:e,label:e},{title:Tr((()=>[ta(Fn(l5),{id:Fn(r)(e),
class:"reference-models-anchor"},{default:Tr((()=>[ta(Fn(W5),{
class:"reference-models-label",name:e,value:t},null,8,["name","value"])])),_:2
},1032,["id"])])),
default:Tr((()=>[(null==t?void 0:t.properties)?(zi(),Wi("div",S4,[(zi(!0),
Wi(Bi,null,Kr(Object.entries(t.properties),(([e,n])=>{var r,o,i
;return zi(),Xi(Fn(E3),{key:e,name:e,
required:(null==(r=t.required)?void 0:r.includes(e))||!0===(null==(i=null==(o=t.properties)?void 0:o[e])?void 0:i.required),
value:n},null,8,["name","required","value"])
})),128))])):(zi(),Wi("div",_4,[ta(Fn(E3),{value:t},null,8,["value"])]))])),_:2
},1032,["id","label"])))),128))])),_:1})):aa("",!0)}
}),[["__scopeId","data-v-b3be69ad"]]),T4=$K(eo({__name:"Webhook",props:{
webhook:{}},setup(e){const t=e,{responses:n}=cD(t.webhook);return(e,t)=>{var r
;return e.webhook?(zi(),Wi(Bi,{key:0},[ta(W3,{class:"webhook-request-body",
requestBody:null==(r=e.webhook.information)?void 0:r.requestBody},{
title:Tr((()=>[oa("Payload")])),_:1},8,["requestBody"]),ta(F3,{
class:"webhook-response-parameters",parameters:Fn(n)},{
title:Tr((()=>[oa("Responses")])),_:1},8,["parameters"])],64)):aa("",!0)}}
}),[["__scopeId","data-v-8fced5af"]]),C4=$K(eo({__name:"Webhooks",props:{
webhooks:{}},setup(e){
const t=e,n=Aa((()=>Object.keys(t.webhooks??{}))),{getWebhookId:r}=Jh(),{collapsedSidebarItems:o}=DD(),i=Aa((()=>n.value.length<=10||o[r()])),a=Aa((()=>{
const e=n.value;return i.value?e:e.slice(0,10)}))
;return(e,t)=>n.value.length?(zi(),Xi(Fn(W2),{key:0,id:"webhooks"},{
default:Tr((()=>[ta(Fn(L2),null,{default:Tr((()=>[ta(Fn(t5),{level:2},{
default:Tr((()=>[oa("Webhooks")])),_:1}),ta(Fn(g5),{id:"webhooks",isLazy:!1
}),ea("div",{class:et(["webhooks-list",{"webhooks-list-truncated":!i.value}])
},[(zi(!0),Wi(Bi,null,Kr(a.value,(t=>{var n;return zi(),Wi(Bi,{key:t
},[(zi(!0),Wi(Bi,null,Kr(Object.keys(null==(n=e.webhooks)?void 0:n[t]),(n=>(zi(),
Xi(Fn(g5),{id:Fn(r)(t,n),key:n,isLazy:""},{default:Tr((()=>{var o
;return[(null==(o=e.webhooks)?void 0:o[t])?(zi(),Xi(Fn(u5),{key:0,id:Fn(r)(t,n),
class:"webhooks-list-item",label:t},{heading:Tr((()=>{var r
;return[oa(st(null==(r=e.webhooks[t][n])?void 0:r.name),1)]})),default:Tr((()=>{
var r,o
;return[(null==(r=e.webhooks[t][n])?void 0:r.description)?(zi(),Xi(Fn(cW),{
key:0,class:"webhook-section-description",
value:null==(o=e.webhooks[t][n])?void 0:o.description,withImages:""
},null,8,["value"])):aa("",!0),ta(T4,{webhook:e.webhooks[t][n]
},null,8,["webhook"])]})),_:2},1032,["id","label"])):aa("",!0)]})),_:2
},1032,["id"])))),128))],64)})),128))],2),i.value?aa("",!0):(zi(),Xi(g4,{key:0,
id:"webhooks",class:"show-more-webhooks"}))])),_:1})])),_:1})):aa("",!0)}
}),[["__scopeId","data-v-87687203"]]),A4=ia('<div class="section-flare" data-v-8d751fa0><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div><div class="section-flare-item" data-v-8d751fa0></div></div>',1),P4={
class:"narrow-references-container"},D4=$K(eo({__name:"Content",props:{
parsedSpec:{},layout:{},baseServerURL:{},servers:{},proxy:{}},setup(e){
const t=e,{getOperationId:n,getTagId:r,hash:o}=Jh(),{hideModels:i,collapsedSidebarItems:a}=DD(),s=Aa((()=>"accordion"===t.layout?w4:y4)),l=Aa((()=>"accordion"===t.layout?m4:a4)),c=Aa((()=>"accordion"===t.layout?"after":"aside")),u="accordion"!==t.layout&&!o.value.startsWith("model")
;return(e,o)=>{var d,p,h,f
;return zi(),Wi(Bi,null,[A4,ea("div",P4,[no(e.$slots,"start",{},void 0,!0),ta(Fn(x4),{
layout:e.layout,parsedSpec:e.parsedSpec
},null,8,["layout","parsedSpec"]),(null==(p=null==(d=e.parsedSpec)?void 0:d.info)?void 0:p.title)||(null==(f=null==(h=e.parsedSpec)?void 0:h.info)?void 0:f.description)?(zi(),
Xi(Fn(m5),{key:0,info:e.parsedSpec.info,parsedSpec:e.parsedSpec},{
[c.value]:Tr((()=>[ea("div",{class:et(["introduction-card",{
"introduction-card-row":"accordion"===e.layout}])},[ta(Fn(N1),{
class:"introduction-card-item",defaultServerUrl:e.baseServerURL,
servers:t.servers,specification:e.parsedSpec
},null,8,["defaultServerUrl","servers","specification"]),ta(Fn(g2),{
class:"introduction-card-item",parsedSpec:e.parsedSpec,proxy:e.proxy
},null,8,["parsedSpec","proxy"]),ta(Fn(P2),{class:"introduction-card-item"
})],2)])),_:2},1032,["info","parsedSpec"])):no(e.$slots,"empty-state",{key:1
},void 0,!0),(zi(!0),Wi(Bi,null,Kr(e.parsedSpec.tags,(t=>(zi(),Xi(Fn(g5),{
id:Fn(r)(t),key:Fn(r)(t),isLazy:Fn(u)&&!Fn(a)[Fn(r)(t)]},{
default:Tr((()=>[(zi(),Xi(Ir(s.value),{id:Fn(r)(t),spec:e.parsedSpec,tag:t},{
default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(t.operations,((e,r)=>(zi(),Xi(Fn(g5),{
id:Fn(n)(e,t),key:`${e.httpVerb}-${e.operationId}`,isLazy:r>0},{
default:Tr((()=>[(zi(),Xi(Ir(l.value),{id:Fn(n)(e,t),operation:e,tag:t
},null,8,["id","operation","tag"]))])),_:2},1032,["id","isLazy"])))),128))])),
_:2},1032,["id","spec","tag"]))])),_:2
},1032,["id","isLazy"])))),128)),e.parsedSpec.webhooks?(zi(),Xi(Fn(C4),{key:2,
webhooks:e.parsedSpec.webhooks
},null,8,["webhooks"])):aa("",!0),Fn(SP)(e.parsedSpec)&&!Fn(i)?(zi(),Wi(Bi,{
key:3},["accordion"===e.layout?(zi(),Xi(Fn(E4),{key:0,
schemas:Fn(kP)(e.parsedSpec)},null,8,["schemas"])):(zi(),Xi(Fn(k4),{key:1,
schemas:Fn(kP)(e.parsedSpec)
},null,8,["schemas"]))],64)):aa("",!0),no(e.$slots,"end",{},void 0,!0)])],64)}}
}),[["__scopeId","data-v-8d751fa0"]]),$4=e=>(_r("data-v-391b4e37"),
e=e(),Er(),e),R4={class:"start custom-scroll"},N4={class:"start-copy"
},I4=ia('<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),M4={
class:"start-cta"},L4={class:"start-row"
},B4=ia('<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),Q4={
class:"start-section start-section-colors"},j4=$4((()=>ea("p",{class:"start-h2"
},"THEMING",-1))),U4=["onClick"],F4=ia('<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),q4=$K(eo({
__name:"GettingStarted",props:{theme:{}},
emits:["changeTheme","loadSwaggerFile","linkSwaggerFile","updateContent"],
setup(e,{emit:t}){
const n=t,r=["default","alternate","moon","purple","solarized","bluePlanet","saturn","kepler","mars","deepSpace"]
;async function o(){
const e=await fetch("https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml")
;n("updateContent",await e.text())}
return(e,t)=>(zi(),Wi("div",R4,[ea("div",N4,[I4,ea("div",M4,[ta(Fn(LI),{
fullWidth:"",onClick:o},{default:Tr((()=>[oa(" Show Example ")])),_:1
}),ta(Fn(LI),{fullWidth:"",variant:"outlined",
onClick:t[0]||(t[0]=t=>e.$emit("loadSwaggerFile"))},{
default:Tr((()=>[oa(" Upload File ")])),_:1
})])]),ea("div",L4,[B4,ea("div",Q4,[j4,(zi(),Wi(Bi,null,Kr(r,(t=>ea("div",{
key:t,class:et(["start-item",{"start-item-active":t===e.theme}]),
onClick:n=>e.$emit("changeTheme",{id:t,label:Fn(yp)[t]})
},st(Fn(yp)[t]),11,U4))),64))])]),F4]))}
}),[["__scopeId","data-v-391b4e37"]]),z4=["id"],H4={key:0,
class:"sidebar-heading-chevron"},Z4=["href"],V4={
class:"sidebar-heading-link-title"},W4={key:1,
class:"sidebar-heading-link-method"},X4={key:1,class:"action-menu"},Y4=$K(eo({
__name:"SidebarElement",props:{id:{},item:{},isActive:{type:Boolean},
hasChildren:{type:Boolean},open:{type:Boolean}},emits:["toggleOpen"],
setup(e,{emit:t}){
const n=e,r=t,{hash:o,isIntersectionEnabled:i,pathRouting:a}=Jh(),s=async()=>{
var e,t
;n.hasChildren&&r("toggleOpen"),null==(t=null==(e=n.item)?void 0:e.select)||t.call(e),
n.open&&(i.value=!1,await iD(100),i.value=!0)},l=()=>{
if(a.value)return EP(a.value.basePath,n.item.id);if("undefined"!=typeof window){
const e=new URL(window.location.href)
;return e.hash=n.item.id,`${e.pathname}${e.search}${e.hash}`}
return`#${n.item.id}`},c=async e=>{var t,s;if(a.value){
e.preventDefault(),n.hasChildren&&r("toggleOpen"),
null==(s=null==(t=n.item)?void 0:t.select)||s.call(t),
r("toggleOpen"),i.value=!1,o.value=n.item.id
;const l=new URL(window.location.href)
;l.pathname=EP(a.value.basePath,n.item.id),
window.history.pushState({},"",l),oD(n.item.id),await iD(100),i.value=!0}}
;return(e,t)=>{var n,r;return zi(),Wi("li",{id:e.id,class:"sidebar-group-item"
},[ea("div",{class:et(["sidebar-heading",{
"sidebar-group-item__folder":e.hasChildren,active_page:e.isActive,
deprecated:e.item.deprecated??!1}]),onClick:s
},[e.hasChildren?(zi(),Wi("p",H4,[ta(Fn(bW),{class:"toggle-nested-icon",
icon:e.open?"ChevronDown":"ChevronRight",label:"Toggle group",size:"xs",
onClick:$s(s,["stop"])},null,8,["icon"]),oa("   ")])):aa("",!0),ea("a",{
class:"sidebar-heading-link",href:l(),onClick:c
},[(null==(r=null==(n=e.item)?void 0:n.icon)?void 0:r.src)?(zi(),Xi(Fn(xZ),{
key:0,class:"sidebar-icon",icon:e.item.icon.src
},null,8,["icon"])):aa("",!0),ea("p",V4,st(e.item.title),1),e.item.httpVerb&&!e.hasChildren?(zi(),
Wi("p",W4,[oa("   "),ta(RK,{active:e.isActive,method:e.item.httpVerb
},null,8,["active","method"])])):aa("",!0)],8,Z4)],2),e.open?no(e.$slots,"default",{
key:0
},void 0,!0):aa("",!0),e.$slots["action-menu"]?(zi(),Wi("div",X4,[no(e.$slots,"action-menu",{},void 0,!0)])):aa("",!0)],8,z4)
}}}),[["__scopeId","data-v-8f97b414"]]),G4=$K(eo({__name:"SidebarGroup",props:{
level:{}},setup:e=>(e,t)=>(zi(),Wi("ul",{
class:"sidebar-group sidebar-indent-nested",style:Xe({
"--scalar-sidebar-level":e.level})},[no(e.$slots,"default",{},void 0,!0)],4))
}),[["__scopeId","data-v-39c84840"]]),K4={class:"sidebar"},J4={
class:"sidebar-group-title"},e8=$K(eo({__name:"Sidebar",props:{parsedSpec:{},
tagsSorter:{type:[String,Function]}},setup(e){
const t=e,{hash:n,isIntersectionEnabled:r}=Jh(),{items:o,toggleCollapsedSidebarItem:i,collapsedSidebarItems:a}=DD({
parsedSpec:t.parsedSpec,tagsSorter:t.tagsSorter}),s=Bn(null),l=Bn(!0);li(n,(e=>{
r.value&&!l.value&&"undefined"!=typeof window&&c(e)}));const c=e=>{var t,n,r,o
;const i=document.getElementById(`sidebar-${e}`);if(!i||!s.value)return
;let a=-160
;"heading"===i.getAttribute("data-sidebar-type")?a+=i.offsetTop+(null==(t=i.getElementsByClassName("sidebar-heading"))?void 0:t[0]).offsetHeight:a+=i.offsetTop+((null==(n=i.parentElement)?void 0:n.offsetTop)??0)+((null==(o=null==(r=i.parentElement)?void 0:r.parentElement)?void 0:o.offsetTop)??0),
s.value.scrollTo({top:a,behavior:"smooth"})};return Ur((()=>{
setTimeout((()=>c(n.value)),500),l.value=!1
})),(e,t)=>(zi(),Wi("div",K4,[no(e.$slots,"sidebar-start",{},void 0,!0),ea("div",{
ref_key:"scrollerEl",ref:s,
class:"sidebar-pages custom-scroll custom-scroll-self-contain-overflow"
},[ta(G4,{level:0},{
default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(Fn(o).entries,(e=>(zi(),Wi(Bi,{key:e.id
},[e.isGroup?(zi(),Wi(Bi,{key:0
},[ea("li",J4,st(e.displayTitle??e.title),1),(zi(!0),
Wi(Bi,null,Kr(e.children,(t=>(zi(),Xi(Y4,{key:t.id,id:`sidebar-${t.id}`,
"data-sidebar-type":"heading",hasChildren:t.children&&t.children.length>0,
isActive:Fn(n)===t.id,item:{id:t.id,title:t.displayTitle??t.title,
select:t.select,httpVerb:t.httpVerb,deprecated:t.deprecated??!1},
open:Fn(a)[t.id]??!1,onToggleOpen:async()=>{
l.value=!0,Fn(i)(t.id),await Fn(iD)(100),l.value=!1}},{default:Tr((()=>{var r
;return[t.children&&(null==(r=t.children)?void 0:r.length)>0?(zi(),Xi(G4,{key:0,
level:1},{default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(t.children,(t=>(zi(),Wi(Bi,{
key:t.id},[e.show?(zi(),Xi(Y4,{key:0,id:`sidebar-${t.id}`,isActive:Fn(n)===t.id,
item:{id:t.id,title:t.displayTitle??t.title,select:t.select,httpVerb:t.httpVerb,
deprecated:t.deprecated??!1}
},null,8,["id","isActive","item"])):aa("",!0)],64)))),128))])),_:2
},1024)):aa("",!0)]})),_:2
},1032,["id","hasChildren","isActive","item","open","onToggleOpen"])))),128))],64)):(zi(),
Wi(Bi,{key:1},[e.show?(zi(),Xi(Y4,{key:0,id:`sidebar-${e.id}`,
"data-sidebar-type":"heading",hasChildren:e.children&&e.children.length>0,
isActive:Fn(n)===e.id,item:{id:e.id,title:e.displayTitle??e.title,
select:e.select,httpVerb:e.httpVerb,deprecated:e.deprecated??!1},
open:Fn(a)[e.id]??!1,onToggleOpen:async()=>{
l.value=!0,Fn(i)(e.id),await Fn(iD)(100),l.value=!1}},{default:Tr((()=>{var t
;return[e.children&&(null==(t=e.children)?void 0:t.length)>0?(zi(),Xi(G4,{key:0,
level:1},{default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(e.children,(t=>(zi(),Wi(Bi,{
key:t.id},[e.show?(zi(),Xi(Y4,{key:0,id:`sidebar-${t.id}`,isActive:Fn(n)===t.id,
item:{id:t.id,title:t.displayTitle??t.title,select:t.select,httpVerb:t.httpVerb,
deprecated:t.deprecated??!1}
},null,8,["id","isActive","item"])):aa("",!0)],64)))),128))])),_:2
},1024)):aa("",!0)]})),_:2
},1032,["id","hasChildren","isActive","item","open","onToggleOpen"])):aa("",!0)],64))],64)))),128))])),
_:1})],512),no(e.$slots,"sidebar-end",{},void 0,!0)]))}
}),[["__scopeId","data-v-66b58ff3"]]),t8={style:{"padding-top":"2.5rem"}
},n8=["innerHTML"],r8={class:"references-header"},o8={key:0,
class:"references-navigation t-doc__sidebar"},i8={
class:"references-navigation-list"},a8={class:"references-editor"},s8={
class:"references-editor-textarea"},l8={class:"references-rendered"},c8={key:0,
class:"references-footer"},u8=eo({inheritAttrs:!1,__name:"ApiReferenceLayout",
props:{configuration:{},parsedSpec:{},rawSpec:{}},
emits:["changeTheme","updateContent","loadSwaggerFile","linkSwaggerFile","toggleDarkMode"],
setup(e){const t=e,{initializeToasts:n,toast:r}=Dh();n((e=>r(e)))
;const o=Lp("(min-width: 1150px)"),i=Bn("100dvh"),a=Bn(null)
;!function(e,t,n={}){const{window:r=Rp,...o}=n;let i
;const a=Mp((()=>r&&"ResizeObserver"in r)),s=()=>{i&&(i.disconnect(),i=void 0)
},l=li(Aa((()=>Array.isArray(e)?e.map((e=>$p(e))):[$p(e)])),(e=>{
if(s(),a.value&&r){i=new ResizeObserver(t);for(const t of e)t&&i.observe(t,o)}
}),{immediate:!0,flush:"post"}),c=()=>{s(),l()};kp(c)}(a,(e=>{
i.value=e[0].contentRect.height+"px"}));const s=Bn(0);Ur((()=>{var e,t,n
;const r=null==(t=null==(e=a.value)?void 0:e.parentElement)?void 0:t.getBoundingClientRect(),o=null==(n=a.value)?void 0:n.getBoundingClientRect()
;if(r&&o){const e=o.top-r.top;s.value=e<2?0:e}}))
;const l=Aa(Op),{breadcrumb:c,collapsedSidebarItems:u,isSidebarOpen:d,setCollapsedSidebarItem:p,hideModels:h,defaultOpenAllTags:f,setParsedSpec:m,scrollToOperation:g}=DD(),{getPathRoutingId:v,getSectionId:b,getTagId:O,hash:y,isIntersectionEnabled:w,pathRouting:x,updateHash:k}=Jh()
;x.value=t.configuration.pathRouting,jr((()=>k()));const S=async e=>{var t
;w.value=!1,
k(),e?g(e):null==(t=a.value)||t.scrollTo(0,0),await iD(100),w.value=!0}
;jr((()=>EK())),Ur((()=>{aD.on((({specTitle:e})=>{!function(e,t){
const n=ld(e),r=n?new Blob([e],{type:"application/json"}):new Blob([e],{
type:"application/x-yaml"
}),o=URL.createObjectURL(r),i=n?".json":".yaml",a=t?t+i:"spec"+i,s=document.createElement("a")
;s.href=o,s.download=a,s.dispatchEvent(new MouseEvent("click",{bubbles:!0,
cancelable:!0,view:window})),setTimeout((()=>{
window.URL.revokeObjectURL(o),s.remove()}),100)}(t.rawSpec,e)
})),window.onhashchange=()=>S(decodeURIComponent(window.location.hash.replace(/^#/,""))),
window.onpopstate=()=>x.value&&S(v(window.location.pathname))}))
;const _=Aa((()=>o.value||!t.configuration.isEditable)),E=Pp((e=>{
if((e.target.scrollTop??0)<50){
const e=t.configuration.pathRouting?t.configuration.pathRouting.basePath:window.location.pathname
;window.history.replaceState({},"",e+window.location.search),y.value=""}
})),T=Aa((()=>({breadcrumb:c.value,spec:t.parsedSpec})));var C
;li((()=>t.parsedSpec),m,{deep:!0}),Zr((()=>{var e,n;const r=ii()
;if(r&&(r.payload||(r.payload={data:{}
}),(e=r.payload).data||(e.data={}),t.configuration.pathRouting)){
const e=v(r.url);y.value=e,r.payload.data.hash=e
;for(const t in u)Object.hasOwn(u,t)&&delete u[t];if(e)p(b(e),!0);else{
const e=null==(n=t.parsedSpec.tags)?void 0:n[0];e&&p(O(e),!0)}
r.payload.data["useSidebarContent-collapsedSidebarItems"]=u}})),function(e){
Do(HJ,e)}((()=>{var e;const t=ma(),n="scalar-instance-id";if(!t)return n
;let r=t.uid
;return"undefined"==typeof window?(t.attrs||(t.attrs={}),t.attrs[n]=r):(null==(e=t.vnode.el)?void 0:e.getAttribute)&&(r=t.vnode.el.getAttribute(n)),
`${n}-${r}`
})),Do(eD,(()=>t.parsedSpec.security)),Do(tD,(()=>t.configuration.hideDownloadButton)),
Do(nD,(()=>t.configuration.hideTestRequestButton)),Do(rD,(()=>{var e
;return null==(e=t.configuration.spec)?void 0:e.url
})),h.value=t.configuration.hideModels??!1,
f.value=t.configuration.defaultOpenAllTags??!1,
C=t.configuration,li((()=>C),(()=>{var e
;C.proxy===Mh?(console.warn(`[DEPRECATED] Warning: configuration.proxy points to our old proxy (${Mh}).`),
console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${Lh}) instead.`),
C.proxy=Lh,
console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${Lh}). Read more: https://github.com/scalar/scalar`)):(null==(e=C.proxy)?void 0:e.length)&&C.proxy!==Lh&&"http://localhost:5051"!==C.proxy&&(console.warn(`[DEPRECATED] Warning: configuration.proxy points to a custom proxy (${null==C?void 0:C.proxy}).`),
console.warn("[DEPRECATED] Action Required: You need to use our new proxy (written in Go). Read more: https://github.com/scalar/scalar/tree/main/examples/proxy-server"))
}),{immediate:!0});const A=Aa((()=>`<style>\n  ${((e,t)=>{
const{variables:n=!0,fonts:r=!0,layer:o="scalar-theme"}=t??{},i=[xp(e),n?":root {\n  --scalar-border-width: 0.5px;\n  --scalar-radius: 3px;\n  --scalar-radius-lg: 6px;\n  --scalar-radius-xl: 8px;\n\n  /* TYPOGRAPHY ------------------------------------ */\n  --scalar-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,\n    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;\n  --scalar-font-code: 'JetBrains Mono', ui-monospace, Menlo, Monaco,\n    'Cascadia Mono', 'Segoe UI Mono', 'Roboto Mono', 'Oxygen Mono',\n    'Ubuntu Monospace', 'Source Code Pro', 'Fira Mono', 'Droid Sans Mono',\n    'Courier New', monospace;\n\n  /** Font sizes for rendered text content (editor styles or static content) */\n  --scalar-heading-1: 40px; /* Editor Page heading */\n  --scalar-page-description: 24px;\n  --scalar-heading-2: 24px; /* Editor section headings */\n  --scalar-heading-3: 20px;\n  --scalar-heading-4: 16px;\n  --scalar-heading-5: 16px;\n  --scalar-heading-6: 16px;\n\n  --scalar-paragraph: 16px;\n  --scalar-small: 14px;\n  --scalar-mini: 13px;\n  --scalar-micro: 12px;\n  --scalar-bold: 600;\n  --scalar-semibold: 500;\n  --scalar-regular: 400;\n\n  /* Font sizes for interactive applications (not rendered text content) */\n  --scalar-font-size-1: 24px;\n  --scalar-font-size-2: 16px;\n  --scalar-font-size-3: 14px;\n  --scalar-font-size-4: 13px;\n  --scalar-font-size-5: 12px;\n  --scalar-font-size-6: 12px;\n  --scalar-font-size-7: 10px;\n\n  --scalar-line-height-1: 32px;\n  --scalar-line-height-2: 24px;\n  --scalar-line-height-3: 20px;\n  --scalar-line-height-4: 18px;\n  --scalar-line-height-5: 16px;\n\n  --scalar-font-medium: 500;\n  --scalar-font-bold: 700;\n\n  --scalar-text-decoration: none;\n  --scalar-text-decoration-hover: underline;\n}\n.dark-mode {\n  color-scheme: dark;\n  --scalar-scrollbar-color: rgba(255, 255, 255, 0.18);\n  --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.36);\n  --scalar-button-1: rgba(255, 255, 255, 1);\n  --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n  --scalar-button-1-color: black;\n\n  --scalar-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1);\n  --scalar-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px,\n    rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, 0.1);\n\n  --scalar-lifted-brightness: 1.45;\n  --scalar-backdrop-brightness: 0.5;\n\n  --scalar-sidebar-indent-border: transparent;\n  --scalar-sidebar-indent-border-hover: transparent;\n  --scalar-sidebar-indent-border-active: transparent;\n}\n.light-mode {\n  color-scheme: light;\n  --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n  --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);\n  --scalar-button-1: rgba(0, 0, 0, 1);\n  --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n  --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n\n  --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n  --scalar-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px,\n    rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, #eeeeed 0px 0 0 0.5px;\n\n  --scalar-lifted-brightness: 1;\n  --scalar-backdrop-brightness: 1;\n\n  --scalar-sidebar-indent-border: transparent;\n  --scalar-sidebar-indent-border-hover: transparent;\n  --scalar-sidebar-indent-border-active: transparent;\n}\n/* On some browsers, the light color scheme takes precedence when the light mode is active */\n.light-mode .dark-mode {\n  color-scheme: dark !important;\n}\n@media (max-width: 460px) {\n  :root {\n    --scalar-font-size-1: 22px;\n    --scalar-font-size-2: 14px;\n    --scalar-font-size-3: 12px;\n  }\n}\n\n@media (max-width: 720px) {\n  :root {\n    --scalar-heading-1: 24px;\n    --scalar-page-description: 20px;\n  }\n}\n":"",r?"/* Inter (--scalar-font) */\n/* cyrillic-ext */\n@font-face {\n  font-family: 'Inter';\n  font-style: normal;\n  font-weight: 100 900;\n  font-display: swap;\n  src: url(https://fonts.scalar.com/inter-cyrillic-ext.woff2) format('woff2');\n  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F,\n    U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n  font-family: 'Inter';\n  font-style: normal;\n  font-weight: 100 900;\n  font-display: swap;\n  src: url(https://fonts.scalar.com/inter-cyrillic.woff2) format('woff2');\n  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek-ext */\n@font-face {\n  font-family: 'Inter';\n  font-style: normal;\n  font-weight: 100 900;\n  font-display: swap;\n  src: url(https://fonts.scalar.com/inter-greek-ext.woff2) format('woff2');\n  unicode-range: U+1F00-1FFF;\n}\n/* greek */\n@font-face {\n  font-family: 'Inter';\n  font-style: normal;\n  font-weight: 100 900;\n  font-display: swap;\n  src: url(https://fonts.scalar.com/inter-greek.woff2) format('woff2');\n  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1,\n    U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n  font-family: 'Inter';\n  font-style: normal;\n  font-weight: 100 900;\n  font-display: swap;\n  src: url(https://fonts.scalar.com/inter-vietnamese.woff2) format('woff2');\n  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,\n    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,\n    U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n  font-family: 'Inter';\n  font-style: normal;\n  font-weight: 100 900;\n  font-display: swap;\n  src: url(https://fonts.scalar.com/inter-latin-ext.woff2) format('woff2');\n  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,\n    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n  font-family: 'Inter';\n  font-style: normal;\n  font-weight: 100 900;\n  font-display: swap;\n  src: url(https://fonts.scalar.com/inter-latin.woff2) format('woff2');\n  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,\n    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,\n    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* JetBrains Mono (--scalar-font-code) */\n/* cyrillic-ext */\n@font-face {\n  font-family: 'JetBrains Mono';\n  font-style: normal;\n  font-weight: 400;\n  src: url(https://fonts.scalar.com/mono-cyrillic-ext.woff2) format('woff2');\n  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F,\n    U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n  font-family: 'JetBrains Mono';\n  font-style: normal;\n  font-weight: 400;\n  src: url(https://fonts.scalar.com/mono-cyrillic.woff2) format('woff2');\n  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n  font-family: 'JetBrains Mono';\n  font-style: normal;\n  font-weight: 400;\n  src: url(https://fonts.scalar.com/mono-greek.woff2) format('woff2');\n  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1,\n    U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n  font-family: 'JetBrains Mono';\n  font-style: normal;\n  font-weight: 400;\n  src: url(https://fonts.scalar.com/mono-vietnamese.woff2) format('woff2');\n  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,\n    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,\n    U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n  font-family: 'JetBrains Mono';\n  font-style: normal;\n  font-weight: 400;\n  src: url(https://fonts.scalar.com/mono-latin-ext.woff2) format('woff2');\n  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,\n    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n  font-family: 'JetBrains Mono';\n  font-style: normal;\n  font-weight: 400;\n  src: url(https://fonts.scalar.com/mono-latin.woff2) format('woff2');\n  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,\n    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,\n    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n":""].join("")
;return o?`@layer ${o} {\n${i}}`:i})(t.configuration.theme,{
fonts:t.configuration.withDefaultFonts})}</style>`));return(e,t)=>{var n
;return zi(),Wi("main",t8,[ea("div",{innerHTML:A.value},null,8,n8),ea("div",{
ref_key:"documentEl",ref:a,
class:et(["scalar-app scalar-api-reference references-layout",[{
"scalar-scrollbars-obtrusive":l.value,
"references-editable":e.configuration.isEditable,
"references-sidebar":e.configuration.showSidebar,
"references-sidebar-mobile-open":Fn(d),
"references-classic":"classic"===e.configuration.layout},e.$attrs.class]]),
style:Xe({"--scalar-y-offset":`var(--scalar-custom-header-height, ${s.value}px)`
}),onScrollPassive:t[4]||(t[4]=(...e)=>Fn(E)&&Fn(E)(...e))
},[ea("div",r8,[no(e.$slots,"header",tt(na(T.value)),void 0,!0)]),e.configuration.showSidebar?(zi(),
Wi("aside",o8,[ea("div",i8,[ta(Fn(e8),{parsedSpec:e.parsedSpec,
tagsSorter:e.configuration.tagsSorter},{
"sidebar-start":Tr((()=>[no(e.$slots,"sidebar-start",tt(na(T.value)),void 0,!0)])),
"sidebar-end":Tr((()=>[no(e.$slots,"sidebar-end",tt(na(T.value)),void 0,!0)])),
_:3
},8,["parsedSpec","tagsSorter"])])])):aa("",!0),Yr(ea("div",a8,[ea("div",s8,[no(e.$slots,"editor",tt(na(T.value)),void 0,!0)])],512),[[Ka,e.configuration.isEditable]]),_.value?(zi(),
Wi(Bi,{key:1},[ea("div",l8,[ta(Fn(D4),{
baseServerURL:e.configuration.baseServerURL,
layout:"classic"===e.configuration.layout?"accordion":"default",
parsedSpec:e.parsedSpec,proxy:e.configuration.proxy,
servers:e.configuration.servers},Jr({
start:Tr((()=>[no(e.$slots,"content-start",tt(na(T.value)),void 0,!0)])),
end:Tr((()=>[no(e.$slots,"content-end",tt(na(T.value)),void 0,!0)])),_:2
},[(null==(n=e.configuration)?void 0:n.isEditable)?{name:"empty-state",
fn:Tr((()=>{var n;return[ta(q4,{
theme:(null==(n=e.configuration)?void 0:n.theme)||"default",
onChangeTheme:t[0]||(t[0]=t=>e.$emit("changeTheme",t)),
onLinkSwaggerFile:t[1]||(t[1]=t=>e.$emit("linkSwaggerFile")),
onLoadSwaggerFile:t[2]||(t[2]=t=>e.$emit("loadSwaggerFile")),
onUpdateContent:t[3]||(t[3]=t=>e.$emit("updateContent",t))},null,8,["theme"])]
})),key:"0"
}:void 0]),1032,["baseServerURL","layout","parsedSpec","proxy","servers"])]),e.$slots.footer?(zi(),
Wi("div",c8,[no(e.$slots,"footer",tt(na(T.value)),void 0,!0)])):aa("",!0)],64)):aa("",!0),ta(d1,{
proxyUrl:e.configuration.proxy,servers:e.configuration.servers,
spec:e.configuration.spec
},null,8,["proxyUrl","servers","spec"])],38),ta(Fn($h))])}}
}),d8=$K(u8,[["__scopeId","data-v-0be0da1e"]]),p8={
class:"references-classic-header-container"},h8={
class:"references-classic-header"};const f8=$K({},[["render",function(e,t){
return zi(),
Wi("div",p8,[ea("div",h8,[no(e.$slots,"default",{},void 0,!0),no(e.$slots,"dark-mode-toggle",{},void 0,!0)])])
}],["__scopeId","data-v-a860f78f"]]),m8=eo({__name:"ClassicLayout",props:{
configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},
emits:["toggleDarkMode","updateContent"],setup(e){const t=e,n=co(),r=Aa((()=>({
...t.configuration,showSidebar:!1})));return(e,o)=>(zi(),Xi(d8,{
configuration:r.value,parsedSpec:e.parsedSpec,rawSpec:e.rawSpec,
onUpdateContent:o[0]||(o[0]=t=>e.$emit("updateContent",t))},Jr({
"content-start":Tr((({spec:e})=>[ta(f8,null,{
default:Tr((()=>[t.configuration.hideSearch?aa("",!0):(zi(),Xi(Fn(zJ),{key:0,
class:"t-doc__sidebar",searchHotKey:r.value.searchHotKey,spec:e
},null,8,["searchHotKey","spec"]))])),_:2},1024)])),_:2},[Kr(n,((t,n)=>({name:n,
fn:Tr((t=>[no(e.$slots,n,tt(na(t||{})))]))
})))]),1032,["configuration","parsedSpec","rawSpec"]))}}),g8={
class:"references-mobile-header t-doc__header"},v8={
class:"references-mobile-breadcrumbs"},b8={
class:"references-mobile-header-actions"},O8=$K(eo({__name:"MobileHeader",
props:{open:{type:Boolean}},emits:["update:open"],setup(e){
const{breadcrumb:t}=DD();return(e,n)=>(zi(),Wi("div",g8,[ta(Fn(bW),{
icon:e.open?"Close":"Menu",label:e.open?"Close Menu":"Open Menu",size:"md",
onClick:n[0]||(n[0]=t=>e.$emit("update:open",!e.open))
},null,8,["icon","label"]),ea("span",v8,st(Fn(t)),1),ea("div",b8,[no(e.$slots,"actions",{},void 0,!0)])]))
}}),[["__scopeId","data-v-b5fb4b8b"]]),y8={key:0,
class:"scalar-api-references-standalone-search"},w8=eo({__name:"ModernLayout",
props:{configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},
emits:["toggleDarkMode","updateContent"],setup(e){
const t=e,n=co(),r=Lp("(max-width: 1000px)"),{isSidebarOpen:o}=DD()
;li(r,((e,t)=>{e&&!t&&(o.value=!1)}));const{hash:i}=Jh();return li(i,((e,t)=>{
e&&e!==t&&(o.value=!1)})),(e,r)=>(zi(),Xi(d8,{class:et({
"scalar-api-references-standalone-mobile":e.configuration.showSidebar}),
configuration:e.configuration,parsedSpec:e.parsedSpec,rawSpec:e.rawSpec,
onUpdateContent:r[1]||(r[1]=t=>e.$emit("updateContent",t))},Jr({
header:Tr((()=>[t.configuration.showSidebar?(zi(),Xi(O8,{key:0,open:Fn(o),
"onUpdate:open":r[0]||(r[0]=e=>Ln(o)?o.value=e:null)
},null,8,["open"])):aa("",!0)])),"sidebar-start":Tr((({spec:e})=>{var n
;return[t.configuration.hideSearch?aa("",!0):(zi(),Wi("div",y8,[ta(Fn(zJ),{
searchHotKey:null==(n=t.configuration)?void 0:n.searchHotKey,spec:e
},null,8,["searchHotKey","spec"])]))]})),_:2},[Kr(n,((t,n)=>({name:n,
fn:Tr((t=>[no(e.$slots,n,tt(na(t||{})),void 0,!0)]))
})))]),1032,["class","configuration","parsedSpec","rawSpec"]))}
}),x8=$K(w8,[["__scopeId","data-v-5937070f"]]),k8=eo({__name:"Layouts",props:{
configuration:{},parsedSpec:{},rawSpec:{},isDark:{type:Boolean}},
emits:["toggleDarkMode","updateContent"],setup(e){const t=e,n=co(),r={modern:x8,
classic:m8}
;return(e,o)=>(zi(),Xi(Ir(r[e.configuration.layout??"modern"]??x8),ua(t,{
onToggleDarkMode:o[0]||(o[0]=t=>e.$emit("toggleDarkMode")),
onUpdateContent:o[1]||(o[1]=t=>e.$emit("updateContent",t))}),Jr({_:2
},[Kr(n,((t,n)=>({name:n,fn:Tr((t=>[no(e.$slots,n,tt(na(t||{})))]))})))]),1040))
}}),S8=eo({__name:"ApiReference",props:{configuration:{}},
emits:["updateContent"],setup(e){var t,n,r
;const o=e,{toggleDarkMode:i,isDark:a}=Ih(null==(t=o.configuration)?void 0:t.darkMode,null==(n=o.configuration)?void 0:n.forceDarkModeState)
;li((()=>{var e;return null==(e=o.configuration)?void 0:e.darkMode}),(e=>{
e!==a.value&&i()}));const s=Aa((()=>{var e,t
;if(null==(e=o.configuration)?void 0:e.customCss)return function(e){
return bp.some((t=>e.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"),
vp.reduce(((e,[t,n])=>e.replaceAll(t,n)),e)):e
}(null==(t=o.configuration)?void 0:t.customCss)}))
;li(s,(()=>console.log(s.value)));const l=Aa((()=>{var e;return{spec:{
content:void 0,url:void 0,...null==(e=o.configuration)?void 0:e.spec},
proxy:void 0,theme:"default",showSidebar:!0,isEditable:!1,...o.configuration,
customCss:s.value}}));function c(e,t){li((()=>{var t
;return null==(t=l.value)?void 0:t[e]}),(e=>{void 0!==e&&t(e)}),{immediate:!0})}
(null==(r=l.value)?void 0:r.metaData)&&function(e,t){
const{title:n,titleTemplate:r,...o}=e;Vs({title:n,titleTemplate:r,_flatMeta:o},{
...t,transform(e){const t=N({...e._flatMeta});return delete e._flatMeta,{...e,
meta:t}}})}(l.value.metaData);const{setAuthentication:u}=Wd()
;c("authentication",u);const{setExcludedClients:d,setDefaultHttpClient:p}=VD()
;c("defaultHttpClient",p),c("hiddenClients",d)
;const{parsedSpec:h,rawSpec:f}=lD({proxy:Gn((()=>l.value.proxy||"")),
specConfig:Gn((()=>l.value.spec||{}))})
;return jp(Aa((()=>l.value.favicon))),(e,t)=>{var n
;return zi(),Wi(Bi,null,[(null==(n=l.value)?void 0:n.customCss)?(zi(),
Xi(Ir("style"),{key:0},{default:Tr((()=>[oa(st(l.value.customCss),1)])),_:1
})):aa("",!0),ta(Fn(k8),{configuration:l.value,isDark:Fn(a),parsedSpec:Fn(h),
rawSpec:Fn(f),onToggleDarkMode:t[0]||(t[0]=()=>Fn(i)()),
onUpdateContent:t[1]||(t[1]=t=>e.$emit("updateContent",t))},{
footer:Tr((()=>[no(e.$slots,"footer")])),
"content-end":Tr((()=>[no(e.$slots,"footer")])),_:3
},8,["configuration","isDark","parsedSpec","rawSpec"])],64)}}
}),_8=()=>document.getElementById("api-reference"),E8=document.querySelector("[data-spec]"),T8=document.querySelector("[data-spec-url]"),C8=document.querySelector("#api-reference[data-configuration]"),A8=()=>{
if(C8){const e=C8.getAttribute("data-configuration")
;if(e)return JSON.parse(e.split("&quot;").join('"'))}return{}},P8=()=>{var e,t,n
;if(null==(e=A8().spec)?void 0:e.url)return null==(t=A8().spec)?void 0:t.url
;const r=_8();if(r){const e=null==(n=r.getAttribute("data-url"))?void 0:n.trim()
;if(e)return e}if(T8){
console.warn('[@scalar/api-reference] The [data-spec-url] HTML API is deprecated. Use the new <script id="api-reference" data-url="/scalar.json" /> API instead.')
;const e=T8.getAttribute("data-spec-url");if(e)return e}},D8=()=>{var e,t
;const n=_8();if(n){const t=null==(e=n.innerHTML)?void 0:e.trim();if(t)return t}
if(E8){
console.warn('[@scalar/api-reference] The [data-spec] HTML API is deprecated. Use the new <script id="api-reference" type="application/json">{"openapi":"3.1.0","info":{"title":"Example"},"paths":{}}<\/script> API instead.')
;const e=null==(t=E8.getAttribute("data-spec"))?void 0:t.trim();if(e)return e}
},$8=()=>{const e=_8();if(e){const t=e.getAttribute("data-proxy-url")
;if(t)return t.trim()}},R8=wn({});if(T8||E8||_8()){const n=D8()?{content:D8()}:{
url:P8()};Object.assign(R8,{configuration:{...A8(),spec:{...n},proxy:$8()}
}),A8().darkMode?null==(e=document.body)||e.classList.add("dark-mode"):null==(t=document.body)||t.classList.add("light-mode")
;const r=()=>{var e;let t=null;const n=_8()
;return n?(t=document.createElement("div"),
null==(e=null==n?void 0:n.parentNode)||e.insertBefore(t,n)):t=E8||T8||document.body,
t};let o=r();const i=()=>{const e=Bs((()=>Pa(S8,R8))),t=qs()
;return e.use(t),o?e.mount(o):console.error("Could not find a mount point for API References"),
e};let a=i();document.addEventListener("scalar:reload-references",(()=>{
document.body.contains(o)||(console.log("Re-adding container"),
o=r()),a.unmount(),a=i()
}),!1),document.addEventListener("scalar:destroy-references",(()=>{
delete R8.configuration,a.unmount()
}),!1),document.addEventListener("scalar:update-references-config",(e=>{
"detail"in e&&Object.assign(R8,e.detail)}),!1)
}else console.error('Couldn’t find a [data-spec], [data-spec-url] or <script id="api-reference" /> element. Try adding it like this: %c<div data-spec-url="https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml" />',"font-family: monospace;")
;function N8(e,t){
const n=e.match(/{{\s*([^}\s]+?)\s*}}|{\s*([^}\s]+?)\s*}|:\b[\w.]+\b/g)??[]
;let r=e;return n.forEach((e=>{const n=function(e,t){
const n=e.split(".").reduce(((e,t)=>null==e?void 0:e[t]),t)
;return"string"==typeof n?n:JSON.stringify(n)
}(e.startsWith(":")?e.slice(1):e.replace(/[{}]/g,"").trim(),t)
;n&&(r=r.replaceAll(e,n))})),r}
/*!
    * vue-router v4.3.3
    * (c) 2024 Eduardo San Martin Morote
    * @license MIT
    */
const I8="undefined"!=typeof document;const M8=Object.assign;function L8(e,t){
const n={};for(const r in t){const o=t[r];n[r]=Q8(o)?o.map(e):e(o)}return n}
const B8=()=>{},Q8=Array.isArray,j8=/#/g,U8=/&/g,F8=/\//g,q8=/=/g,z8=/\?/g,H8=/\+/g,Z8=/%5B/g,V8=/%5D/g,W8=/%5E/g,X8=/%60/g,Y8=/%7B/g,G8=/%7C/g,K8=/%7D/g,J8=/%20/g
;function e7(e){
return encodeURI(""+e).replace(G8,"|").replace(Z8,"[").replace(V8,"]")}
function t7(e){
return e7(e).replace(H8,"%2B").replace(J8,"+").replace(j8,"%23").replace(U8,"%26").replace(X8,"`").replace(Y8,"{").replace(K8,"}").replace(W8,"^")
}function n7(e){return null==e?"":function(e){
return e7(e).replace(j8,"%23").replace(z8,"%3F")}(e).replace(F8,"%2F")}
function r7(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}
const o7=/\/$/,i7=e=>e.replace(o7,"");function a7(e,t,n="/"){
let r,o={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?")
;return s<l&&s>=0&&(l=-1),
l>-1&&(r=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),o=e(i)),
s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=function(e,t){
if(e.startsWith("/"))return e;if(!e)return t
;const n=t.split("/"),r=e.split("/"),o=r[r.length-1]
;".."!==o&&"."!==o||r.push("");let i,a,s=n.length-1
;for(i=0;i<r.length;i++)if(a=r[i],"."!==a){if(".."!==a)break;s>1&&s--}
return n.slice(0,s).join("/")+"/"+r.slice(i).join("/")}(null!=r?r:t,n),{
fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:r7(a)}}function s7(e,t){
return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}
function l7(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function c7(e,t){
if(Object.keys(e).length!==Object.keys(t).length)return!1
;for(const n in e)if(!u7(e[n],t[n]))return!1;return!0}function u7(e,t){
return Q8(e)?d7(e,t):Q8(t)?d7(t,e):e===t}function d7(e,t){
return Q8(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t
}var p7,h7,f7,m7
;(h7=p7||(p7={})).pop="pop",h7.push="push",(m7=f7||(f7={})).back="back",
m7.forward="forward",m7.unknown="";function g7(e){if(!e)if(I8){
const t=document.querySelector("base")
;e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/"
;return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),i7(e)}const v7=/^[^#]+#/
;function b7(e,t){return e.replace(v7,"#")+t}const O7=()=>({left:window.scrollX,
top:window.scrollY});function y7(e){let t;if("el"in e){
const n=e.el,r="string"==typeof n&&n.startsWith("#"),o="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n
;if(!o)return;t=function(e,t){
const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect()
;return{behavior:t.behavior,left:r.left-n.left-(t.left||0),
top:r.top-n.top-(t.top||0)}}(o,e)}else t=e
;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)
}function w7(e,t){return(history.state?history.state.position-t:-1)+e}
const x7=new Map;let k7=()=>location.protocol+"//"+location.host
;function S7(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){
let t=o.includes(e.slice(i))?e.slice(i).length:1,n=o.slice(t)
;return"/"!==n[0]&&(n="/"+n),s7(n,"")}return s7(n,e)+r+o}
function _7(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,
position:window.history.length,scroll:o?O7():null}}function E7(e=""){
let t=[],n=[""],r=0;function o(e){r++,r!==n.length&&n.splice(r),n.push(e)}
const i={location:"",state:{},base:e=g7(e),createHref:b7.bind(null,e),
replace(e){n.splice(r--,1),o(e)},push(e,t){o(e)},listen:e=>(t.push(e),()=>{
const n=t.indexOf(e);n>-1&&t.splice(n,1)}),destroy(){t=[],n=[""],r=0},
go(e,o=!0){const i=this.location,a=e<0?f7.back:f7.forward
;r=Math.max(0,Math.min(r+e,n.length-1)),o&&function(e,n,{direction:r,delta:o}){
const i={direction:r,delta:o,type:p7.pop};for(const a of t)a(e,n,i)
}(this.location,i,{direction:a,delta:e})}}
;return Object.defineProperty(i,"location",{enumerable:!0,get:()=>n[r]}),i}
function T7(e){return"string"==typeof e||"symbol"==typeof e}const C7={path:"/",
name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},
redirectedFrom:void 0},A7=Symbol("");var P7,D7;function $7(e,t){
return M8(new Error,{type:e,[A7]:!0},t)}function R7(e,t){
return e instanceof Error&&A7 in e&&(null==t||!!(e.type&t))}
(D7=P7||(P7={}))[D7.aborted=4]="aborted",
D7[D7.cancelled=8]="cancelled",D7[D7.duplicated=16]="duplicated"
;const N7="[^/]+?",I7={sensitive:!1,strict:!1,start:!0,end:!0
},M7=/[.+*?^${}()[\]/\\]/g;function L7(e,t){let n=0
;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}
return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0
}function B7(e,t){let n=0;const r=e.score,o=t.score
;for(;n<r.length&&n<o.length;){const e=L7(r[n],o[n]);if(e)return e;n++}
if(1===Math.abs(o.length-r.length)){if(Q7(r))return 1;if(Q7(o))return-1}
return o.length-r.length}function Q7(e){const t=e[e.length-1]
;return e.length>0&&t[t.length-1]<0}const j7={type:0,value:""},U7=/[a-zA-Z0-9_]/
;function F7(e,t,n){const r=function(e,t){const n=M8({},I7,t),r=[]
;let o=n.start?"^":"";const i=[];for(const l of e){const e=l.length?[]:[90]
;n.strict&&!l.length&&(o+="/");for(let t=0;t<l.length;t++){const r=l[t]
;let a=40+(n.sensitive?.25:0)
;if(0===r.type)t||(o+="/"),o+=r.value.replace(M7,"\\$&"),
a+=40;else if(1===r.type){const{value:e,repeatable:n,optional:c,regexp:u}=r
;i.push({name:e,repeatable:n,optional:c});const d=u||N7;if(d!==N7){a+=10;try{
new RegExp(`(${d})`)}catch(s){
throw new Error(`Invalid custom RegExp for param "${e}" (${d}): `+s.message)}}
let p=n?`((?:${d})(?:/(?:${d}))*)`:`(${d})`
;t||(p=c&&l.length<2?`(?:/${p})`:"/"+p),
c&&(p+="?"),o+=p,a+=20,c&&(a+=-8),n&&(a+=-20),".*"===d&&(a+=-50)}e.push(a)}
r.push(e)}if(n.strict&&n.end){const e=r.length-1
;r[e][r[e].length-1]+=.7000000000000001}
n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)")
;const a=new RegExp(o,n.sensitive?"":"i");return{re:a,score:r,keys:i,
parse:function(e){const t=e.match(a),n={};if(!t)return null
;for(let r=1;r<t.length;r++){const e=t[r]||"",o=i[r-1]
;n[o.name]=e&&o.repeatable?e.split("/"):e}return n},stringify:function(t){
let n="",r=!1;for(const o of e){r&&n.endsWith("/")||(n+="/"),r=!1
;for(const e of o)if(0===e.type)n+=e.value;else if(1===e.type){
const{value:i,repeatable:a,optional:s}=e,l=i in t?t[i]:""
;if(Q8(l)&&!a)throw new Error(`Provided param "${i}" is an array but it is not repeatable (* or + modifiers)`)
;const c=Q8(l)?l.join("/"):l;if(!c){
if(!s)throw new Error(`Missing required param "${i}"`)
;o.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=c}}return n||"/"}}
}(function(e){if(!e)return[[]];if("/"===e)return[[j7]]
;if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){
throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=0,r=n;const o=[];let i
;function a(){i&&o.push(i),i=[]}let s,l=0,c="",u="";function d(){
c&&(0===n?i.push({type:0,value:c
}):1===n||2===n||3===n?(i.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),
i.push({type:1,value:c,regexp:u,repeatable:"*"===s||"+"===s,
optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),c="")}
function p(){c+=s}for(;l<e.length;)if(s=e[l++],"\\"!==s||2===n)switch(n){case 0:
"/"===s?(c&&d(),a()):":"===s?(d(),n=1):p();break;case 4:p(),n=r;break;case 1:
"("===s?n=2:U7.test(s)?p():(d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break
;case 2:")"===s?"\\"==u[u.length-1]?u=u.slice(0,-1)+s:n=3:u+=s;break;case 3:d(),
n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,u="";break;default:t("Unknown state")
}else r=n,n=4
;return 2===n&&t(`Unfinished custom RegExp for param "${c}"`),d(),a(),o
}(e.path),n),o=M8(r,{record:e,parent:t,children:[],alias:[]})
;return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}
function q7(e,t){const n=[],r=new Map;function o(e,n,r){
const s=!r,l=function(e){return{path:e.path,redirect:e.redirect,name:e.name,
meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:H7(e),
children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,
enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{
default:e.component}}}(e);l.aliasOf=r&&r.record;const c=W7(t,e),u=[l]
;if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias
;for(const e of t)u.push(M8({},l,{components:r?r.record.components:l.components,
path:e,aliasOf:r?r.record:l}))}let d,p;for(const t of u){const{path:u}=t
;if(n&&"/"!==u[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/"
;t.path=n.record.path+(u&&r+u)}
if(d=F7(t,n,c),r?r.alias.push(d):(p=p||d,p!==d&&p.alias.push(d),
s&&e.name&&!Z7(d)&&i(e.name)),X7(d)&&a(d),l.children){const e=l.children
;for(let t=0;t<e.length;t++)o(e[t],d,r&&r.children[t])}r=r||d}return p?()=>{i(p)
}:B8}function i(e){if(T7(e)){const t=r.get(e)
;t&&(r.delete(e),n.splice(n.indexOf(t),1),
t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e)
;t>-1&&(n.splice(t,1),
e.record.name&&r.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))
}}function a(e){const t=function(e,t){let n=0,r=t.length;for(;n!==r;){
const o=n+r>>1;B7(e,t[o])<0?r=o:n=o+1}const o=function(e){let t=e
;for(;t=t.parent;)if(X7(t)&&0===B7(e,t))return t;return}(e)
;o&&(r=t.lastIndexOf(o,r-1));return r}(e,n)
;n.splice(t,0,e),e.record.name&&!Z7(e)&&r.set(e.record.name,e)}return t=W7({
strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>o(e))),{addRoute:o,
resolve:function(e,t){let o,i,a,s={};if("name"in e&&e.name){
if(o=r.get(e.name),!o)throw $7(1,{location:e})
;a=o.record.name,s=M8(z7(t.params,o.keys.filter((e=>!e.optional)).concat(o.parent?o.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&z7(e.params,o.keys.map((e=>e.name)))),
i=o.stringify(s)
}else if(null!=e.path)i=e.path,o=n.find((e=>e.re.test(i))),o&&(s=o.parse(i),
a=o.record.name);else{
if(o=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!o)throw $7(1,{
location:e,currentLocation:t})
;a=o.record.name,s=M8({},t.params,e.params),i=o.stringify(s)}const l=[];let c=o
;for(;c;)l.unshift(c.record),c=c.parent;return{name:a,path:i,params:s,matched:l,
meta:V7(l)}},removeRoute:i,getRoutes:function(){return n},
getRecordMatcher:function(e){return r.get(e)}}}function z7(e,t){const n={}
;for(const r of t)r in e&&(n[r]=e[r]);return n}function H7(e){
const t={},n=e.props||!1
;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"==typeof n?n[r]:n
;return t}function Z7(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}
return!1}function V7(e){return e.reduce(((e,t)=>M8(e,t.meta)),{})}
function W7(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}
function X7({record:e}){
return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}
function Y7(e){const t={};if(""===e||"?"===e)return t
;const n=("?"===e[0]?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){
const e=n[r].replace(H8," "),o=e.indexOf("="),i=r7(o<0?e:e.slice(0,o)),a=o<0?null:r7(e.slice(o+1))
;if(i in t){let e=t[i];Q8(e)||(e=t[i]=[e]),e.push(a)}else t[i]=a}return t}
function G7(e){let t="";for(let n in e){const r=e[n]
;if(n=t7(n).replace(q8,"%3D"),null==r){void 0!==r&&(t+=(t.length?"&":"")+n)
;continue}(Q8(r)?r.map((e=>e&&t7(e))):[r&&t7(r)]).forEach((e=>{
void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}
function K7(e){const t={};for(const n in e){const r=e[n]
;void 0!==r&&(t[n]=Q8(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}
const J7=Symbol(""),e6=Symbol(""),t6=Symbol(""),n6=Symbol(""),r6=Symbol("")
;function o6(){let e=[];return{add:function(t){return e.push(t),()=>{
const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){
e=[]}}}function i6(e,t,n,r,o,i=e=>e()){
const a=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[])
;return()=>new Promise(((s,l)=>{const c=e=>{var i;!1===e?l($7(4,{from:n,to:t
})):e instanceof Error?l(e):"string"==typeof(i=e)||i&&"object"==typeof i?l($7(2,{
from:t,to:e})):(a&&r.enterCallbacks[o]===a&&"function"==typeof e&&a.push(e),s())
},u=i((()=>e.call(r&&r.instances[o],t,n,c)));let d=Promise.resolve(u)
;e.length<3&&(d=d.then(c)),d.catch((e=>l(e)))}))}function a6(e,t,n,r,o=e=>e()){
const i=[];for(const s of e)for(const e in s.components){let l=s.components[e]
;if("beforeRouteEnter"===t||s.instances[e])if("object"==typeof(a=l)||"displayName"in a||"props"in a||"__vccOpts"in a){
const a=(l.__vccOpts||l)[t];a&&i.push(i6(a,n,r,s,e,o))}else{let a=l()
;i.push((()=>a.then((i=>{
if(!i)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${s.path}"`))
;const a=(l=i).__esModule||"Module"===l[Symbol.toStringTag]?i.default:i;var l
;s.components[e]=a;const c=(a.__vccOpts||a)[t];return c&&i6(c,n,r,s,e,o)()}))))}
}var a;return i}function s6(e){const t=$o(t6),n=$o(n6),r=Aa((()=>{
const n=Fn(e.to);return t.resolve(n)})),o=Aa((()=>{
const{matched:e}=r.value,{length:t}=e,o=e[t-1],i=n.matched
;if(!o||!i.length)return-1;const a=i.findIndex(l7.bind(null,o));if(a>-1)return a
;const s=c6(e[t-2])
;return t>1&&c6(o)===s&&i[i.length-1].path!==s?i.findIndex(l7.bind(null,e[t-2])):a
})),i=Aa((()=>o.value>-1&&function(e,t){for(const n in t){const r=t[n],o=e[n]
;if("string"==typeof r){if(r!==o)return!1
}else if(!Q8(o)||o.length!==r.length||r.some(((e,t)=>e!==o[t])))return!1}
return!0
}(n.params,r.value.params))),a=Aa((()=>o.value>-1&&o.value===n.matched.length-1&&c7(n.params,r.value.params)))
;return{route:r,href:Aa((()=>r.value.href)),isActive:i,isExactActive:a,
navigate:function(n={}){return function(e){
if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return
;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return
;if(e.currentTarget&&e.currentTarget.getAttribute){
const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}
e.preventDefault&&e.preventDefault();return!0
}(n)?t[Fn(e.replace)?"replace":"push"](Fn(e.to)).catch(B8):Promise.resolve()}}}
const l6=eo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{
type:[String,Object],required:!0},replace:Boolean,activeClass:String,
exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,
default:"page"}},useLink:s6,setup(e,{slots:t}){
const n=wn(s6(e)),{options:r}=$o(t6),o=Aa((()=>({
[u6(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,
[u6(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive
})));return()=>{const r=t.default&&t.default(n);return e.custom?r:Pa("a",{
"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,
onClick:n.navigate,class:o.value},r)}}});function c6(e){
return e?e.aliasOf?e.aliasOf.path:e.path:""}
const u6=(e,t,n)=>null!=e?e:null!=t?t:n;function d6(e,t){if(!e)return null
;const n=e(t);return 1===n.length?n[0]:n}const p6=eo({name:"RouterView",
inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},
compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){
const r=$o(r6),o=Aa((()=>e.route||r.value)),i=$o(e6,0),a=Aa((()=>{let e=Fn(i)
;const{matched:t}=o.value;let n;for(;(n=t[e])&&!n.components;)e++;return e
})),s=Aa((()=>o.value.matched[a.value]))
;Do(e6,Aa((()=>a.value+1))),Do(J7,s),Do(r6,o);const l=Bn()
;return li((()=>[l.value,s.value,e.name]),(([e,t,n],[r,o,i])=>{
t&&(t.instances[n]=e,
o&&o!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),
t.updateGuards.size||(t.updateGuards=o.updateGuards))),
!e||!t||o&&l7(t,o)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{
flush:"post"}),()=>{const r=o.value,i=e.name,a=s.value,c=a&&a.components[i]
;if(!c)return d6(n.default,{Component:c,route:r})
;const u=a.props[i],d=u?!0===u?r.params:"function"==typeof u?u(r):u:null,p=Pa(c,M8({},d,t,{
onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[i]=null)},ref:l}))
;return d6(n.default,{Component:p,route:r})||p}}});function h6(e){
const t=q7(e.routes,e),n=e.parseQuery||Y7,r=e.stringifyQuery||G7,o=e.history,i=o6(),a=o6(),s=o6(),l=Qn(C7)
;let c=C7
;I8&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual")
;const u=L8.bind(null,(e=>""+e)),d=L8.bind(null,n7),p=L8.bind(null,r7)
;function h(e,i){if(i=M8({},i||l.value),"string"==typeof e){
const r=a7(n,e,i.path),a=t.resolve({path:r.path},i),s=o.createHref(r.fullPath)
;return M8(r,a,{params:p(a.params),hash:r7(r.hash),redirectedFrom:void 0,href:s
})}let a;if(null!=e.path)a=M8({},e,{path:a7(n,e.path,i.path).path});else{
const t=M8({},e.params);for(const e in t)null==t[e]&&delete t[e];a=M8({},e,{
params:d(t)}),i.params=d(i.params)}const s=t.resolve(a,i),c=e.hash||""
;s.params=u(p(s.params));const h=function(e,t){const n=t.query?e(t.query):""
;return t.path+(n&&"?")+n+(t.hash||"")}(r,M8({},e,{
hash:(f=c,e7(f).replace(Y8,"{").replace(K8,"}").replace(W8,"^")),path:s.path}))
;var f;const m=o.createHref(h);return M8({fullPath:h,hash:c,
query:r===G7?K7(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}
function f(e){return"string"==typeof e?a7(n,e,l.value.path):M8({},e)}
function m(e,t){if(c!==e)return $7(8,{from:t,to:e})}function g(e){return b(e)}
function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){
const{redirect:n}=t;let r="function"==typeof n?n(e):n
;return"string"==typeof r&&(r=r.includes("?")||r.includes("#")?r=f(r):{path:r
},r.params={}),M8({query:e.query,hash:e.hash,params:null!=r.path?{}:e.params},r)
}}function b(e,t){
const n=c=h(e),o=l.value,i=e.state,a=e.force,s=!0===e.replace,u=v(n)
;if(u)return b(M8(f(u),{state:"object"==typeof u?M8({},i,u.state):i,force:a,
replace:s}),t||n);const d=n;let p;return d.redirectedFrom=t,!a&&function(e,t,n){
const r=t.matched.length-1,o=n.matched.length-1
;return r>-1&&r===o&&l7(t.matched[r],n.matched[o])&&c7(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash
}(r,o,n)&&(p=$7(16,{to:d,from:o
}),D(o,o,!0,!1)),(p?Promise.resolve(p):w(d,o)).catch((e=>R7(e)?R7(e,2)?e:P(e):A(e,d,o))).then((e=>{
if(e){if(R7(e,2))return b(M8({replace:s},f(e.to),{
state:"object"==typeof e.to?M8({},i,e.to.state):i,force:a}),t||d)
}else e=k(d,o,!0,s,i);return x(d,o,e),e}))}function O(e,t){const n=m(e,t)
;return n?Promise.reject(n):Promise.resolve()}function y(e){
const t=N.values().next().value
;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}
function w(e,t){let n;const[r,o,s]=function(e,t){
const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length)
;for(let a=0;a<i;a++){const i=t.matched[a]
;i&&(e.matched.find((e=>l7(e,i)))?r.push(i):n.push(i));const s=e.matched[a]
;s&&(t.matched.find((e=>l7(e,s)))||o.push(s))}return[n,r,o]}(e,t)
;n=a6(r.reverse(),"beforeRouteLeave",e,t)
;for(const i of r)i.leaveGuards.forEach((r=>{n.push(i6(r,e,t))}))
;const l=O.bind(null,e,t);return n.push(l),M(n).then((()=>{n=[]
;for(const r of i.list())n.push(i6(r,e,t));return n.push(l),M(n)})).then((()=>{
n=a6(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach((r=>{
n.push(i6(r,e,t))}));return n.push(l),M(n)})).then((()=>{n=[]
;for(const r of s)if(r.beforeEnter)if(Q8(r.beforeEnter))for(const o of r.beforeEnter)n.push(i6(o,e,t));else n.push(i6(r.beforeEnter,e,t))
;return n.push(l),M(n)
})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),
n=a6(s,"beforeRouteEnter",e,t,y),n.push(l),M(n)))).then((()=>{n=[]
;for(const r of a.list())n.push(i6(r,e,t));return n.push(l),M(n)
})).catch((e=>R7(e,8)?e:Promise.reject(e)))}function x(e,t,n){
s.list().forEach((r=>y((()=>r(e,t,n)))))}function k(e,t,n,r,i){const a=m(e,t)
;if(a)return a;const s=t===C7,c=I8?history.state:{}
;n&&(r||s?o.replace(e.fullPath,M8({scroll:s&&c&&c.scroll
},i)):o.push(e.fullPath,i)),l.value=e,D(e,t,n,s),P()}let S;function _(){
S||(S=o.listen(((e,t,n)=>{if(!I.listening)return;const r=h(e),i=v(r)
;if(i)return void b(M8(i,{replace:!0}),r).catch(B8);c=r;const a=l.value;var s,u
;I8&&(s=w7(a.fullPath,n.delta),
u=O7(),x7.set(s,u)),w(r,a).catch((e=>R7(e,12)?e:R7(e,2)?(b(e.to,r).then((e=>{
R7(e,20)&&!n.delta&&n.type===p7.pop&&o.go(-1,!1)
})).catch(B8),Promise.reject()):(n.delta&&o.go(-n.delta,!1),
A(e,r,a)))).then((e=>{
(e=e||k(r,a,!1))&&(n.delta&&!R7(e,8)?o.go(-n.delta,!1):n.type===p7.pop&&R7(e,20)&&o.go(-1,!1)),
x(r,a,e)})).catch(B8)})))}let E,T=o6(),C=o6();function A(e,t,n){P(e)
;const r=C.list()
;return r.length?r.forEach((r=>r(e,t,n))):console.error(e),Promise.reject(e)}
function P(e){
return E||(E=!e,_(),T.list().forEach((([t,n])=>e?n(e):t())),T.reset()),e}
function D(t,n,r,o){const{scrollBehavior:i}=e
;if(!I8||!i)return Promise.resolve();const a=!r&&function(e){const t=x7.get(e)
;return x7.delete(e),t
}(w7(t.fullPath,0))||(o||!r)&&history.state&&history.state.scroll||null
;return dr().then((()=>i(t,n,a))).then((e=>e&&y7(e))).catch((e=>A(e,t,n)))}
const $=e=>o.go(e);let R;const N=new Set,I={currentRoute:l,listening:!0,
addRoute:function(e,n){let r,o
;return T7(e)?(r=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,r)},
removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},
hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){
return t.getRoutes().map((e=>e.record))},resolve:h,options:e,push:g,
replace:function(e){return g(M8(f(e),{replace:!0}))},go:$,back:()=>$(-1),
forward:()=>$(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,
onError:C.add,isReady:function(){
return E&&l.value!==C7?Promise.resolve():new Promise(((e,t)=>{T.add([e,t])}))},
install(e){
e.component("RouterLink",l6),e.component("RouterView",p6),e.config.globalProperties.$router=this,
Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,
get:()=>Fn(l)}),I8&&!R&&l.value===C7&&(R=!0,g(o.location).catch((e=>{})))
;const t={};for(const r in C7)Object.defineProperty(t,r,{get:()=>l.value[r],
enumerable:!0});e.provide(t6,this),e.provide(n6,xn(t)),e.provide(r6,l)
;const n=e.unmount;N.add(e),e.unmount=function(){
N.delete(e),N.size<1&&(c=C7,S&&S(),S=null,l.value=C7,R=!1,E=!1),n()}}}
;function M(e){return e.reduce(((e,t)=>e.then((()=>y(t)))),Promise.resolve())}
return I}function f6(){return $o(t6)}function m6(){return $o(n6)}
var g6=(e=>(e.Request="request",
e.Examples="examples",e.Cookies="cookies",e.Collection="collection",
e.Schema="schema",
e.Environment="environment",e.Servers="servers",e.Workspace="workspace",
e))(g6||{});const v6=[{path:"",
redirect:e=>`${e.fullPath.replace(/\/$/,"")}/request/default`},{path:"request",
redirect:e=>`${e.fullPath.replace(/\/$/,"")}/default`},{name:"request",
path:"request/:request",component:()=>Promise.resolve().then((()=>ASe))},{
name:"examples",path:"request/:request/examples/:examples",
component:()=>Promise.resolve().then((()=>ASe))}],b6=[{path:"/",
redirect:"/workspace/default/request/default"},{path:"/workspace",
redirect:"/workspace/default/request/default"},{path:"/workspace/:workspace",
children:v6}],O6=[{path:"/",redirect:k6},{path:"/workspace",redirect:k6},{
path:"/workspace/:workspace",children:[...v6,{path:"environment",
redirect:e=>`${e.fullPath.replace(/\/$/,"")}/default`},{name:"environment",
path:"environment/:environment",component:()=>Promise.resolve().then((()=>GSe))
},{path:"cookies",redirect:e=>`${e.fullPath.replace(/\/$/,"")}/default`},{
name:"cookies",path:"cookies/:cookies",
component:()=>Promise.resolve().then((()=>h_e))},{path:"servers",
redirect:e=>`${e.fullPath.replace(/\/$/,"")}/default`},{name:"servers",
path:"servers/:servers",component:()=>Promise.resolve().then((()=>b_e))}]
}],y6=h6({history:function(e){const t=function(e){
const{history:t,location:n}=window,r={value:S7(e,n)},o={value:t.state}
;function i(r,i,a){
const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+r:k7()+e+r
;try{t[a?"replaceState":"pushState"](i,"",l),o.value=i}catch(c){
console.error(c),n[a?"replace":"assign"](l)}}return o.value||i(r.value,{
back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,
scroll:null},!0),{location:r,state:o,push:function(e,n){
const a=M8({},o.value,t.state,{forward:e,scroll:O7()})
;i(a.current,a,!0),i(e,M8({},_7(r.value,e,null),{position:a.position+1
},n),!1),r.value=e},replace:function(e,n){
i(e,M8({},t.state,_7(o.value.back,e,o.value.forward,!0),n,{
position:o.value.position}),!0),r.value=e}}}(e=g7(e)),n=function(e,t,n,r){
let o=[],i=[],a=null;const s=({state:i})=>{
const s=S7(e,location),l=n.value,c=t.value;let u=0;if(i){if(n.value=s,t.value=i,
a&&a===l)return void(a=null);u=c?i.position-c.position:0}else r(s)
;o.forEach((e=>{e(n.value,l,{delta:u,type:p7.pop,
direction:u?u>0?f7.forward:f7.back:f7.unknown})}))};function l(){
const{history:e}=window;e.state&&e.replaceState(M8({},e.state,{scroll:O7()}),"")
}
return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{
passive:!0}),{pauseListeners:function(){a=n.value},listen:function(e){o.push(e)
;const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return i.push(t),t},
destroy:function(){for(const e of i)e()
;i=[],window.removeEventListener("popstate",s),
window.removeEventListener("beforeunload",l)}}
}(e,t.state,t.location,t.replace),r=M8({location:"",base:e,go:function(e,t=!0){
t||n.pauseListeners(),history.go(e)},createHref:b7.bind(null,e)},t,n)
;return Object.defineProperty(r,"location",{enumerable:!0,
get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,
get:()=>t.state.value}),r}(),routes:O6}),w6=()=>h6({history:E7(),routes:b6
}),x6="activeWorkspace";function k6(){
return`/workspace/${localStorage.getItem(x6)??"default"}/request/default`}
var S6,_6,E6
;(_6=S6||(S6={})).assertEqual=e=>e,_6.assertIs=function(e){},_6.assertNever=function(e){
throw new Error},_6.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t
},_6.getValidEnumValues=e=>{
const t=_6.objectKeys(e).filter((t=>"number"!=typeof e[e[t]])),n={}
;for(const r of t)n[r]=e[r];return _6.objectValues(n)
},_6.objectValues=e=>_6.objectKeys(e).map((function(t){return e[t]
})),_6.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{
const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n)
;return t},_6.find=(e,t)=>{for(const n of e)if(t(n))return n
},_6.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,
_6.joinValues=function(e,t=" | "){
return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)
},_6.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,
(E6||(E6={})).mergeShapes=(e,t)=>({...e,...t})
;const T6=S6.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),C6=e=>{
switch(typeof e){case"undefined":return T6.undefined;case"string":
return T6.string;case"number":return isNaN(e)?T6.nan:T6.number;case"boolean":
return T6.boolean;case"function":return T6.function;case"bigint":
return T6.bigint;case"symbol":return T6.symbol;case"object":
return Array.isArray(e)?T6.array:null===e?T6.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?T6.promise:"undefined"!=typeof Map&&e instanceof Map?T6.map:"undefined"!=typeof Set&&e instanceof Set?T6.set:"undefined"!=typeof Date&&e instanceof Date?T6.date:T6.object
;default:return T6.unknown}
},A6=S6.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"])
;class P6 extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{
this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{
this.issues=[...this.issues,...e]};const t=new.target.prototype
;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,
this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){
const t=e||function(e){return e.message},n={_errors:[]},r=e=>{
for(const o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(r);else if("invalid_return_type"===o.code)r(o.returnTypeError);else if("invalid_arguments"===o.code)r(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else{
let e=n,r=0;for(;r<o.path.length;){const n=o.path[r]
;r===o.path.length-1?(e[n]=e[n]||{_errors:[]
},e[n]._errors.push(t(o))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),
n}static assert(e){if(!(e instanceof P6))throw new Error(`Not a ZodError: ${e}`)
}toString(){return this.message}get message(){
return JSON.stringify(this.issues,S6.jsonStringifyReplacer,2)}get isEmpty(){
return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[]
;for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],
t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}
get formErrors(){return this.flatten()}}P6.create=e=>new P6(e);const D6=(e,t)=>{
let n;switch(e.code){case A6.invalid_type:
n=e.received===T6.undefined?"Required":`Expected ${e.expected}, received ${e.received}`
;break;case A6.invalid_literal:
n=`Invalid literal value, expected ${JSON.stringify(e.expected,S6.jsonStringifyReplacer)}`
;break;case A6.unrecognized_keys:
n=`Unrecognized key(s) in object: ${S6.joinValues(e.keys,", ")}`;break
;case A6.invalid_union:n="Invalid input";break
;case A6.invalid_union_discriminator:
n=`Invalid discriminator value. Expected ${S6.joinValues(e.options)}`;break
;case A6.invalid_enum_value:
n=`Invalid enum value. Expected ${S6.joinValues(e.options)}, received '${e.received}'`
;break;case A6.invalid_arguments:n="Invalid function arguments";break
;case A6.invalid_return_type:n="Invalid function return type";break
;case A6.invalid_date:n="Invalid date";break;case A6.invalid_string:
"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,
"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:S6.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid"
;break;case A6.too_small:
n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input"
;break;case A6.too_big:
n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input"
;break;case A6.custom:n="Invalid input";break
;case A6.invalid_intersection_types:n="Intersection results could not be merged"
;break;case A6.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`
;break;case A6.not_finite:n="Number must be finite";break;default:
n=t.defaultError,S6.assertNever(e)}return{message:n}};let $6=D6;function R6(){
return $6}const N6=e=>{
const{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],a={...o,
path:i};if(void 0!==o.message)return{...o,path:i,message:o.message};let s=""
;const l=r.filter((e=>!!e)).slice().reverse();for(const c of l)s=c(a,{data:t,
defaultError:s}).message;return{...o,path:i,message:s}};function I6(e,t){
const n=R6(),r=N6({issueData:t,data:e.data,path:e.path,
errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===D6?void 0:D6].filter((e=>!!e))
});e.common.issues.push(r)}class M6{constructor(){this.value="valid"}dirty(){
"valid"===this.value&&(this.value="dirty")}abort(){
"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[]
;for(const r of t){if("aborted"===r.status)return L6
;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}
static async mergeObjectAsync(e,t){const n=[];for(const r of t){
const e=await r.key,t=await r.value;n.push({key:e,value:t})}
return M6.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={}
;for(const r of t){const{key:t,value:o}=r;if("aborted"===t.status)return L6
;if("aborted"===o.status)return L6
;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),
"__proto__"===t.value||void 0===o.value&&!r.alwaysSet||(n[t.value]=o.value)}
return{status:e.value,value:n}}}const L6=Object.freeze({status:"aborted"
}),B6=e=>({status:"dirty",value:e}),Q6=e=>({status:"valid",value:e
}),j6=e=>"aborted"===e.status,U6=e=>"dirty"===e.status,F6=e=>"valid"===e.status,q6=e=>"undefined"!=typeof Promise&&e instanceof Promise
;function z6(e,t,n,r){
if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it")
;return t.get(e)}function H6(e,t,n,r,o){
if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it")
;return t.set(e,n),n}var Z6,V6,W6,X6
;"function"==typeof SuppressedError&&SuppressedError,
(V6=Z6||(Z6={})).errToObj=e=>"string"==typeof e?{message:e
}:e||{},V6.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class Y6{
constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,
this._key=r}get path(){
return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),
this._cachedPath}}const G6=(e,t)=>{if(F6(t))return{success:!0,data:t.value}
;if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.")
;return{success:!1,get error(){if(this._error)return this._error
;const t=new P6(e.common.issues);return this._error=t,this._error}}}
;function K6(e){if(!e)return{}
;const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e
;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.')
;if(t)return{errorMap:t,description:o};return{errorMap:(t,o)=>{var i,a
;const{message:s}=e;return"invalid_enum_value"===t.code?{
message:null!=s?s:o.defaultError}:void 0===o.data?{
message:null!==(i=null!=s?s:r)&&void 0!==i?i:o.defaultError
}:"invalid_type"!==t.code?{message:o.defaultError}:{
message:null!==(a=null!=s?s:n)&&void 0!==a?a:o.defaultError}},description:o}}
class J6{constructor(e){
this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),
this.safeParse=this.safeParse.bind(this),
this.parseAsync=this.parseAsync.bind(this),
this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),
this.refine=this.refine.bind(this),
this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),
this.optional=this.optional.bind(this),
this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),
this.array=this.array.bind(this),
this.promise=this.promise.bind(this),this.or=this.or.bind(this),
this.and=this.and.bind(this),
this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),
this.default=this.default.bind(this),
this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),
this.pipe=this.pipe.bind(this),
this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),
this.isOptional=this.isOptional.bind(this)}get description(){
return this._def.description}_getType(e){return C6(e.data)}_getOrReturnCtx(e,t){
return t||{common:e.parent.common,data:e.data,parsedType:C6(e.data),
schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}
_processInputParams(e){return{status:new M6,ctx:{common:e.parent.common,
data:e.data,parsedType:C6(e.data),schemaErrorMap:this._def.errorMap,path:e.path,
parent:e.parent}}}_parseSync(e){const t=this._parse(e)
;if(q6(t))throw new Error("Synchronous parse encountered promise.");return t}
_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){
const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}
safeParse(e,t){var n;const r={common:{issues:[],
async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,
contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],
schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:C6(e)
},o=this._parseSync({data:e,path:r.path,parent:r});return G6(r,o)}
async parseAsync(e,t){const n=await this.safeParseAsync(e,t)
;if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={
common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},
path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,
data:e,parsedType:C6(e)},r=this._parse({data:e,path:n.path,parent:n
}),o=await(q6(r)?r:Promise.resolve(r));return G6(n,o)}refine(e,t){
const n=e=>"string"==typeof t||void 0===t?{message:t
}:"function"==typeof t?t(e):t;return this._refinement(((t,r)=>{
const o=e(t),i=()=>r.addIssue({code:A6.custom,...n(t)})
;return"undefined"!=typeof Promise&&o instanceof Promise?o.then((e=>!!e||(i(),
!1))):!!o||(i(),!1)}))}refinement(e,t){
return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),
!1)))}_refinement(e){return new V9({schema:this,typeName:iee.ZodEffects,effect:{
type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}
optional(){return W9.create(this,this._def)}nullable(){
return X9.create(this,this._def)}nullish(){return this.nullable().optional()}
array(){return C9.create(this,this._def)}promise(){
return Z9.create(this,this._def)}or(e){return D9.create([this,e],this._def)}
and(e){return I9.create(this,e,this._def)}transform(e){return new V9({
...K6(this._def),schema:this,typeName:iee.ZodEffects,effect:{type:"transform",
transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Y9({
...K6(this._def),innerType:this,defaultValue:t,typeName:iee.ZodDefault})}
brand(){return new eee({typeName:iee.ZodBranded,type:this,...K6(this._def)})}
catch(e){const t="function"==typeof e?e:()=>e;return new G9({...K6(this._def),
innerType:this,catchValue:t,typeName:iee.ZodCatch})}describe(e){
return new(0,this.constructor)({...this._def,description:e})}pipe(e){
return tee.create(this,e)}readonly(){return nee.create(this)}isOptional(){
return this.safeParse(void 0).success}isNullable(){
return this.safeParse(null).success}}
const e9=/^c[^\s-]{8,}$/i,t9=/^[0-9a-z]+$/,n9=/^[0-9A-HJKMNP-TV-Z]{26}$/,r9=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,o9=/^[a-z0-9_-]{21}$/i,i9=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,a9=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i
;let s9
;const l9=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,c9=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,u9=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,d9="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",p9=new RegExp(`^${d9}$`)
;function h9(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d"
;return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),
t}function f9(e){let t=`${d9}T${h9(e)}`;const n=[]
;return n.push(e.local?"Z?":"Z"),
e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,
new RegExp(`^${t}$`)}class m9 extends J6{_parse(e){
this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==T6.string){
const t=this._getOrReturnCtx(e);return I6(t,{code:A6.invalid_type,
expected:T6.string,received:t.parsedType}),L6}const t=new M6;let n
;for(const a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(n=this._getOrReturnCtx(e,n),
I6(n,{code:A6.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,
message:a.message
}),t.dirty());else if("max"===a.kind)e.data.length>a.value&&(n=this._getOrReturnCtx(e,n),
I6(n,{code:A6.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,
message:a.message}),t.dirty());else if("length"===a.kind){
const r=e.data.length>a.value,o=e.data.length<a.value
;(r||o)&&(n=this._getOrReturnCtx(e,n),r?I6(n,{code:A6.too_big,maximum:a.value,
type:"string",inclusive:!0,exact:!0,message:a.message}):o&&I6(n,{
code:A6.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,
message:a.message}),t.dirty())
}else if("email"===a.kind)a9.test(e.data)||(n=this._getOrReturnCtx(e,n),I6(n,{
validation:"email",code:A6.invalid_string,message:a.message
}),t.dirty());else if("emoji"===a.kind)s9||(s9=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),
s9.test(e.data)||(n=this._getOrReturnCtx(e,n),I6(n,{validation:"emoji",
code:A6.invalid_string,message:a.message
}),t.dirty());else if("uuid"===a.kind)r9.test(e.data)||(n=this._getOrReturnCtx(e,n),
I6(n,{validation:"uuid",code:A6.invalid_string,message:a.message
}),t.dirty());else if("nanoid"===a.kind)o9.test(e.data)||(n=this._getOrReturnCtx(e,n),
I6(n,{validation:"nanoid",code:A6.invalid_string,message:a.message
}),t.dirty());else if("cuid"===a.kind)e9.test(e.data)||(n=this._getOrReturnCtx(e,n),
I6(n,{validation:"cuid",code:A6.invalid_string,message:a.message
}),t.dirty());else if("cuid2"===a.kind)t9.test(e.data)||(n=this._getOrReturnCtx(e,n),
I6(n,{validation:"cuid2",code:A6.invalid_string,message:a.message
}),t.dirty());else if("ulid"===a.kind)n9.test(e.data)||(n=this._getOrReturnCtx(e,n),
I6(n,{validation:"ulid",code:A6.invalid_string,message:a.message
}),t.dirty());else if("url"===a.kind)try{new URL(e.data)}catch(i){
n=this._getOrReturnCtx(e,n),I6(n,{validation:"url",code:A6.invalid_string,
message:a.message}),t.dirty()}else if("regex"===a.kind){a.regex.lastIndex=0
;a.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),I6(n,{validation:"regex",
code:A6.invalid_string,message:a.message}),t.dirty())
}else if("trim"===a.kind)e.data=e.data.trim();else if("includes"===a.kind)e.data.includes(a.value,a.position)||(n=this._getOrReturnCtx(e,n),
I6(n,{code:A6.invalid_string,validation:{includes:a.value,position:a.position},
message:a.message
}),t.dirty());else if("toLowerCase"===a.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===a.kind)e.data=e.data.toUpperCase();else if("startsWith"===a.kind)e.data.startsWith(a.value)||(n=this._getOrReturnCtx(e,n),
I6(n,{code:A6.invalid_string,validation:{startsWith:a.value},message:a.message
}),
t.dirty());else if("endsWith"===a.kind)e.data.endsWith(a.value)||(n=this._getOrReturnCtx(e,n),
I6(n,{code:A6.invalid_string,validation:{endsWith:a.value},message:a.message
}),t.dirty());else if("datetime"===a.kind){
f9(a).test(e.data)||(n=this._getOrReturnCtx(e,n),I6(n,{code:A6.invalid_string,
validation:"datetime",message:a.message}),t.dirty())}else if("date"===a.kind){
p9.test(e.data)||(n=this._getOrReturnCtx(e,n),I6(n,{code:A6.invalid_string,
validation:"date",message:a.message}),t.dirty())}else if("time"===a.kind){
new RegExp(`^${h9(a)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),I6(n,{
code:A6.invalid_string,validation:"time",message:a.message}),t.dirty())
}else"duration"===a.kind?i9.test(e.data)||(n=this._getOrReturnCtx(e,n),I6(n,{
validation:"duration",code:A6.invalid_string,message:a.message
}),t.dirty()):"ip"===a.kind?(r=e.data,
("v4"!==(o=a.version)&&o||!l9.test(r))&&("v6"!==o&&o||!c9.test(r))&&(n=this._getOrReturnCtx(e,n),
I6(n,{validation:"ip",code:A6.invalid_string,message:a.message
}),t.dirty())):"base64"===a.kind?u9.test(e.data)||(n=this._getOrReturnCtx(e,n),
I6(n,{validation:"base64",code:A6.invalid_string,message:a.message
}),t.dirty()):S6.assertNever(a);var r,o;return{status:t.value,value:e.data}}
_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,
code:A6.invalid_string,...Z6.errToObj(n)})}_addCheck(e){return new m9({
...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({
kind:"email",...Z6.errToObj(e)})}url(e){return this._addCheck({kind:"url",
...Z6.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",
...Z6.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Z6.errToObj(e)
})}nanoid(e){return this._addCheck({kind:"nanoid",...Z6.errToObj(e)})}cuid(e){
return this._addCheck({kind:"cuid",...Z6.errToObj(e)})}cuid2(e){
return this._addCheck({kind:"cuid2",...Z6.errToObj(e)})}ulid(e){
return this._addCheck({kind:"ulid",...Z6.errToObj(e)})}base64(e){
return this._addCheck({kind:"base64",...Z6.errToObj(e)})}ip(e){
return this._addCheck({kind:"ip",...Z6.errToObj(e)})}datetime(e){var t,n
;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,
offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",
precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,
offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,
local:null!==(n=null==e?void 0:e.local)&&void 0!==n&&n,
...Z6.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({
kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({
kind:"time",precision:null,message:e}):this._addCheck({kind:"time",
precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,
...Z6.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({
kind:"duration",...Z6.errToObj(e)})}regex(e,t){return this._addCheck({
kind:"regex",regex:e,...Z6.errToObj(t)})}includes(e,t){return this._addCheck({
kind:"includes",value:e,position:null==t?void 0:t.position,
...Z6.errToObj(null==t?void 0:t.message)})}startsWith(e,t){
return this._addCheck({kind:"startsWith",value:e,...Z6.errToObj(t)})}
endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...Z6.errToObj(t)})
}min(e,t){return this._addCheck({kind:"min",value:e,...Z6.errToObj(t)})}
max(e,t){return this._addCheck({kind:"max",value:e,...Z6.errToObj(t)})}
length(e,t){return this._addCheck({kind:"length",value:e,...Z6.errToObj(t)})}
nonempty(e){return this.min(1,Z6.errToObj(e))}trim(){return new m9({
...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){
return new m9({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}
toUpperCase(){return new m9({...this._def,checks:[...this._def.checks,{
kind:"toUpperCase"}]})}get isDatetime(){
return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){
return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){
return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){
return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){
return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){
return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){
return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){
return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){
return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){
return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){
return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){
return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){
return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){
return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null
;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value)
;return e}get maxLength(){let e=null
;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value)
;return e}}function g9(e,t){
const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r
;return parseInt(e.toFixed(o).replace(".",""))%parseInt(t.toFixed(o).replace(".",""))/Math.pow(10,o)
}m9.create=e=>{var t;return new m9({checks:[],typeName:iee.ZodString,
coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...K6(e)})}
;class v9 extends J6{constructor(){
super(...arguments),this.min=this.gte,this.max=this.lte,
this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data))
;if(this._getType(e)!==T6.number){const t=this._getOrReturnCtx(e);return I6(t,{
code:A6.invalid_type,expected:T6.number,received:t.parsedType}),L6}let t
;const n=new M6
;for(const r of this._def.checks)if("int"===r.kind)S6.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),
I6(t,{code:A6.invalid_type,expected:"integer",received:"float",message:r.message
}),n.dirty());else if("min"===r.kind){
(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),
I6(t,{code:A6.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,
exact:!1,message:r.message}),n.dirty())}else if("max"===r.kind){
(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),
I6(t,{code:A6.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,
exact:!1,message:r.message}),n.dirty())
}else"multipleOf"===r.kind?0!==g9(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),
I6(t,{code:A6.not_multiple_of,multipleOf:r.value,message:r.message
}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),
I6(t,{code:A6.not_finite,message:r.message}),n.dirty()):S6.assertNever(r)
;return{status:n.value,value:e.data}}gte(e,t){
return this.setLimit("min",e,!0,Z6.toString(t))}gt(e,t){
return this.setLimit("min",e,!1,Z6.toString(t))}lte(e,t){
return this.setLimit("max",e,!0,Z6.toString(t))}lt(e,t){
return this.setLimit("max",e,!1,Z6.toString(t))}setLimit(e,t,n,r){
return new v9({...this._def,checks:[...this._def.checks,{kind:e,value:t,
inclusive:n,message:Z6.toString(r)}]})}_addCheck(e){return new v9({...this._def,
checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",
message:Z6.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,
inclusive:!1,message:Z6.toString(e)})}negative(e){return this._addCheck({
kind:"max",value:0,inclusive:!1,message:Z6.toString(e)})}nonpositive(e){
return this._addCheck({kind:"max",value:0,inclusive:!0,message:Z6.toString(e)})}
nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,
message:Z6.toString(e)})}multipleOf(e,t){return this._addCheck({
kind:"multipleOf",value:e,message:Z6.toString(t)})}finite(e){
return this._addCheck({kind:"finite",message:Z6.toString(e)})}safe(e){
return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,
message:Z6.toString(e)})._addCheck({kind:"max",inclusive:!0,
value:Number.MAX_SAFE_INTEGER,message:Z6.toString(e)})}get minValue(){let e=null
;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value)
;return e}get maxValue(){let e=null
;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value)
;return e}get isInt(){
return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&S6.isInteger(e.value)))
}get isFinite(){let e=null,t=null;for(const n of this._def.checks){
if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0
;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)
}return Number.isFinite(t)&&Number.isFinite(e)}}v9.create=e=>new v9({checks:[],
typeName:iee.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...K6(e)})
;class b9 extends J6{constructor(){
super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){
this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==T6.bigint){
const t=this._getOrReturnCtx(e);return I6(t,{code:A6.invalid_type,
expected:T6.bigint,received:t.parsedType}),L6}let t;const n=new M6
;for(const r of this._def.checks)if("min"===r.kind){
(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),
I6(t,{code:A6.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,
message:r.message}),n.dirty())}else if("max"===r.kind){
(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),
I6(t,{code:A6.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,
message:r.message}),n.dirty())
}else"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),
I6(t,{code:A6.not_multiple_of,multipleOf:r.value,message:r.message
}),n.dirty()):S6.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){
return this.setLimit("min",e,!0,Z6.toString(t))}gt(e,t){
return this.setLimit("min",e,!1,Z6.toString(t))}lte(e,t){
return this.setLimit("max",e,!0,Z6.toString(t))}lt(e,t){
return this.setLimit("max",e,!1,Z6.toString(t))}setLimit(e,t,n,r){
return new b9({...this._def,checks:[...this._def.checks,{kind:e,value:t,
inclusive:n,message:Z6.toString(r)}]})}_addCheck(e){return new b9({...this._def,
checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",
value:BigInt(0),inclusive:!1,message:Z6.toString(e)})}negative(e){
return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,
message:Z6.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",
value:BigInt(0),inclusive:!0,message:Z6.toString(e)})}nonnegative(e){
return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,
message:Z6.toString(e)})}multipleOf(e,t){return this._addCheck({
kind:"multipleOf",value:e,message:Z6.toString(t)})}get minValue(){let e=null
;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value)
;return e}get maxValue(){let e=null
;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value)
;return e}}b9.create=e=>{var t;return new b9({checks:[],typeName:iee.ZodBigInt,
coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...K6(e)})}
;class O9 extends J6{_parse(e){this._def.coerce&&(e.data=Boolean(e.data))
;if(this._getType(e)!==T6.boolean){const t=this._getOrReturnCtx(e);return I6(t,{
code:A6.invalid_type,expected:T6.boolean,received:t.parsedType}),L6}
return Q6(e.data)}}O9.create=e=>new O9({typeName:iee.ZodBoolean,
coerce:(null==e?void 0:e.coerce)||!1,...K6(e)});class y9 extends J6{_parse(e){
this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==T6.date){
const t=this._getOrReturnCtx(e);return I6(t,{code:A6.invalid_type,
expected:T6.date,received:t.parsedType}),L6}if(isNaN(e.data.getTime())){
return I6(this._getOrReturnCtx(e),{code:A6.invalid_date}),L6}const t=new M6
;let n
;for(const r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),
I6(n,{code:A6.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,
type:"date"
}),t.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),
I6(n,{code:A6.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,
type:"date"}),t.dirty()):S6.assertNever(r);return{status:t.value,
value:new Date(e.data.getTime())}}_addCheck(e){return new y9({...this._def,
checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",
value:e.getTime(),message:Z6.toString(t)})}max(e,t){return this._addCheck({
kind:"max",value:e.getTime(),message:Z6.toString(t)})}get minDate(){let e=null
;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value)
;return null!=e?new Date(e):null}get maxDate(){let e=null
;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value)
;return null!=e?new Date(e):null}}y9.create=e=>new y9({checks:[],
coerce:(null==e?void 0:e.coerce)||!1,typeName:iee.ZodDate,...K6(e)})
;class w9 extends J6{_parse(e){if(this._getType(e)!==T6.symbol){
const t=this._getOrReturnCtx(e);return I6(t,{code:A6.invalid_type,
expected:T6.symbol,received:t.parsedType}),L6}return Q6(e.data)}}
w9.create=e=>new w9({typeName:iee.ZodSymbol,...K6(e)});class x9 extends J6{
_parse(e){if(this._getType(e)!==T6.undefined){const t=this._getOrReturnCtx(e)
;return I6(t,{code:A6.invalid_type,expected:T6.undefined,received:t.parsedType
}),L6}return Q6(e.data)}}x9.create=e=>new x9({typeName:iee.ZodUndefined,...K6(e)
});class k9 extends J6{_parse(e){if(this._getType(e)!==T6.null){
const t=this._getOrReturnCtx(e);return I6(t,{code:A6.invalid_type,
expected:T6.null,received:t.parsedType}),L6}return Q6(e.data)}}
k9.create=e=>new k9({typeName:iee.ZodNull,...K6(e)});class S9 extends J6{
constructor(){super(...arguments),this._any=!0}_parse(e){return Q6(e.data)}}
S9.create=e=>new S9({typeName:iee.ZodAny,...K6(e)});class _9 extends J6{
constructor(){super(...arguments),this._unknown=!0}_parse(e){return Q6(e.data)}}
_9.create=e=>new _9({typeName:iee.ZodUnknown,...K6(e)});class E9 extends J6{
_parse(e){const t=this._getOrReturnCtx(e);return I6(t,{code:A6.invalid_type,
expected:T6.never,received:t.parsedType}),L6}}E9.create=e=>new E9({
typeName:iee.ZodNever,...K6(e)});class T9 extends J6{_parse(e){
if(this._getType(e)!==T6.undefined){const t=this._getOrReturnCtx(e)
;return I6(t,{code:A6.invalid_type,expected:T6.void,received:t.parsedType}),L6}
return Q6(e.data)}}T9.create=e=>new T9({typeName:iee.ZodVoid,...K6(e)})
;class C9 extends J6{_parse(e){
const{ctx:t,status:n}=this._processInputParams(e),r=this._def
;if(t.parsedType!==T6.array)return I6(t,{code:A6.invalid_type,expected:T6.array,
received:t.parsedType}),L6;if(null!==r.exactLength){
const e=t.data.length>r.exactLength.value,o=t.data.length<r.exactLength.value
;(e||o)&&(I6(t,{code:e?A6.too_big:A6.too_small,
minimum:o?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,
type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}
if(null!==r.minLength&&t.data.length<r.minLength.value&&(I6(t,{
code:A6.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,
message:r.minLength.message
}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(I6(t,{
code:A6.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,
message:r.maxLength.message
}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new Y6(t,e,t.path,n))))).then((e=>M6.mergeArray(n,e)))
;const o=[...t.data].map(((e,n)=>r.type._parseSync(new Y6(t,e,t.path,n))))
;return M6.mergeArray(n,o)}get element(){return this._def.type}min(e,t){
return new C9({...this._def,minLength:{value:e,message:Z6.toString(t)}})}
max(e,t){return new C9({...this._def,maxLength:{value:e,message:Z6.toString(t)}
})}length(e,t){return new C9({...this._def,exactLength:{value:e,
message:Z6.toString(t)}})}nonempty(e){return this.min(1,e)}}function A9(e){
if(e instanceof P9){const t={};for(const n in e.shape){const r=e.shape[n]
;t[n]=W9.create(A9(r))}return new P9({...e._def,shape:()=>t})}
return e instanceof C9?new C9({...e._def,type:A9(e.element)
}):e instanceof W9?W9.create(A9(e.unwrap())):e instanceof X9?X9.create(A9(e.unwrap())):e instanceof M9?M9.create(e.items.map((e=>A9(e)))):e
}C9.create=(e,t)=>new C9({type:e,minLength:null,maxLength:null,exactLength:null,
typeName:iee.ZodArray,...K6(t)});class P9 extends J6{constructor(){
super(...arguments),
this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}
_getCached(){if(null!==this._cached)return this._cached
;const e=this._def.shape(),t=S6.objectKeys(e);return this._cached={shape:e,
keys:t}}_parse(e){if(this._getType(e)!==T6.object){
const t=this._getOrReturnCtx(e);return I6(t,{code:A6.invalid_type,
expected:T6.object,received:t.parsedType}),L6}
const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:o}=this._getCached(),i=[]
;if(!(this._def.catchall instanceof E9&&"strip"===this._def.unknownKeys))for(const s in n.data)o.includes(s)||i.push(s)
;const a=[];for(const s of o){const e=r[s],t=n.data[s];a.push({key:{
status:"valid",value:s},value:e._parse(new Y6(n,t,n.path,s)),
alwaysSet:s in n.data})}if(this._def.catchall instanceof E9){
const e=this._def.unknownKeys;if("passthrough"===e)for(const t of i)a.push({
key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}
});else if("strict"===e)i.length>0&&(I6(n,{code:A6.unrecognized_keys,keys:i
}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")
}else{const e=this._def.catchall;for(const t of i){const r=n.data[t];a.push({
key:{status:"valid",value:t},value:e._parse(new Y6(n,r,n.path,t)),
alwaysSet:t in n.data})}}
return n.common.async?Promise.resolve().then((async()=>{const e=[]
;for(const t of a){const n=await t.key,r=await t.value;e.push({key:n,value:r,
alwaysSet:t.alwaysSet})}return e
})).then((e=>M6.mergeObjectSync(t,e))):M6.mergeObjectSync(t,a)}get shape(){
return this._def.shape()}strict(e){return Z6.errToObj,new P9({...this._def,
unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,o,i,a
;const s=null!==(i=null===(o=(r=this._def).errorMap)||void 0===o?void 0:o.call(r,t,n).message)&&void 0!==i?i:n.defaultError
;return"unrecognized_keys"===t.code?{
message:null!==(a=Z6.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}
strip(){return new P9({...this._def,unknownKeys:"strip"})}passthrough(){
return new P9({...this._def,unknownKeys:"passthrough"})}extend(e){
return new P9({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){
return new P9({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,
shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:iee.ZodObject})}
setKey(e,t){return this.augment({[e]:t})}catchall(e){return new P9({
...this._def,catchall:e})}pick(e){const t={}
;return S6.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])
})),new P9({...this._def,shape:()=>t})}omit(e){const t={}
;return S6.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])
})),new P9({...this._def,shape:()=>t})}deepPartial(){return A9(this)}partial(e){
const t={};return S6.objectKeys(this.shape).forEach((n=>{const r=this.shape[n]
;e&&!e[n]?t[n]=r:t[n]=r.optional()})),new P9({...this._def,shape:()=>t})}
required(e){const t={};return S6.objectKeys(this.shape).forEach((n=>{
if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n]
;for(;e instanceof W9;)e=e._def.innerType;t[n]=e}})),new P9({...this._def,
shape:()=>t})}keyof(){return q9(S6.objectKeys(this.shape))}}
P9.create=(e,t)=>new P9({shape:()=>e,unknownKeys:"strip",catchall:E9.create(),
typeName:iee.ZodObject,...K6(t)}),P9.strictCreate=(e,t)=>new P9({shape:()=>e,
unknownKeys:"strict",catchall:E9.create(),typeName:iee.ZodObject,...K6(t)
}),P9.lazycreate=(e,t)=>new P9({shape:e,unknownKeys:"strip",
catchall:E9.create(),typeName:iee.ZodObject,...K6(t)});class D9 extends J6{
_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options
;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{
...t.common,issues:[]},parent:null};return{result:await e._parseAsync({
data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){
for(const t of e)if("valid"===t.result.status)return t.result
;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),
r.result;const n=e.map((e=>new P6(e.ctx.common.issues)));return I6(t,{
code:A6.invalid_union,unionErrors:n}),L6}));{let e;const r=[];for(const i of n){
const n={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({
data:t.data,path:t.path,parent:n});if("valid"===o.status)return o
;"dirty"!==o.status||e||(e={result:o,ctx:n
}),n.common.issues.length&&r.push(n.common.issues)}
if(e)return t.common.issues.push(...e.ctx.common.issues),e.result
;const o=r.map((e=>new P6(e)));return I6(t,{code:A6.invalid_union,unionErrors:o
}),L6}}get options(){return this._def.options}}D9.create=(e,t)=>new D9({
options:e,typeName:iee.ZodUnion,...K6(t)})
;const $9=e=>e instanceof U9?$9(e.schema):e instanceof V9?$9(e.innerType()):e instanceof F9?[e.value]:e instanceof z9?e.options:e instanceof H9?S6.objectValues(e.enum):e instanceof Y9?$9(e._def.innerType):e instanceof x9?[void 0]:e instanceof k9?[null]:e instanceof W9?[void 0,...$9(e.unwrap())]:e instanceof X9?[null,...$9(e.unwrap())]:e instanceof eee||e instanceof nee?$9(e.unwrap()):e instanceof G9?$9(e._def.innerType):[]
;class R9 extends J6{_parse(e){const{ctx:t}=this._processInputParams(e)
;if(t.parsedType!==T6.object)return I6(t,{code:A6.invalid_type,
expected:T6.object,received:t.parsedType}),L6
;const n=this.discriminator,r=t.data[n],o=this.optionsMap.get(r)
;return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t
}):o._parseSync({data:t.data,path:t.path,parent:t}):(I6(t,{
code:A6.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),
path:[n]}),L6)}get discriminator(){return this._def.discriminator}get options(){
return this._def.options}get optionsMap(){return this._def.optionsMap}
static create(e,t,n){const r=new Map;for(const o of t){const t=$9(o.shape[e])
;if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`)
;for(const n of t){
if(r.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`)
;r.set(n,o)}}return new R9({typeName:iee.ZodDiscriminatedUnion,discriminator:e,
options:t,optionsMap:r,...K6(n)})}}function N9(e,t){const n=C6(e),r=C6(t)
;if(e===t)return{valid:!0,data:e};if(n===T6.object&&r===T6.object){
const n=S6.objectKeys(t),r=S6.objectKeys(e).filter((e=>-1!==n.indexOf(e))),o={
...e,...t};for(const i of r){const n=N9(e[i],t[i]);if(!n.valid)return{valid:!1}
;o[i]=n.data}return{valid:!0,data:o}}if(n===T6.array&&r===T6.array){
if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){
const o=N9(e[r],t[r]);if(!o.valid)return{valid:!1};n.push(o.data)}return{
valid:!0,data:n}}return n===T6.date&&r===T6.date&&+e==+t?{valid:!0,data:e}:{
valid:!1}}class I9 extends J6{_parse(e){
const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{
if(j6(e)||j6(r))return L6;const o=N9(e.value,r.value)
;return o.valid?((U6(e)||U6(r))&&t.dirty(),{status:t.value,value:o.data
}):(I6(n,{code:A6.invalid_intersection_types}),L6)}
;return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,
path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,
parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,
path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,
parent:n}))}}I9.create=(e,t,n)=>new I9({left:e,right:t,
typeName:iee.ZodIntersection,...K6(n)});class M9 extends J6{_parse(e){
const{status:t,ctx:n}=this._processInputParams(e)
;if(n.parsedType!==T6.array)return I6(n,{code:A6.invalid_type,expected:T6.array,
received:n.parsedType}),L6;if(n.data.length<this._def.items.length)return I6(n,{
code:A6.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,
type:"array"}),L6;!this._def.rest&&n.data.length>this._def.items.length&&(I6(n,{
code:A6.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,
type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{
const r=this._def.items[t]||this._def.rest
;return r?r._parse(new Y6(n,e,n.path,t)):null})).filter((e=>!!e))
;return n.common.async?Promise.all(r).then((e=>M6.mergeArray(t,e))):M6.mergeArray(t,r)
}get items(){return this._def.items}rest(e){return new M9({...this._def,rest:e})
}}M9.create=(e,t)=>{
if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])")
;return new M9({items:e,typeName:iee.ZodTuple,rest:null,...K6(t)})}
;class L9 extends J6{get keySchema(){return this._def.keyType}get valueSchema(){
return this._def.valueType}_parse(e){
const{status:t,ctx:n}=this._processInputParams(e)
;if(n.parsedType!==T6.object)return I6(n,{code:A6.invalid_type,
expected:T6.object,received:n.parsedType}),L6
;const r=[],o=this._def.keyType,i=this._def.valueType
;for(const a in n.data)r.push({key:o._parse(new Y6(n,a,n.path,a)),
value:i._parse(new Y6(n,n.data[a],n.path,a)),alwaysSet:a in n.data})
;return n.common.async?M6.mergeObjectAsync(t,r):M6.mergeObjectSync(t,r)}
get element(){return this._def.valueType}static create(e,t,n){
return new L9(t instanceof J6?{keyType:e,valueType:t,typeName:iee.ZodRecord,
...K6(n)}:{keyType:m9.create(),valueType:e,typeName:iee.ZodRecord,...K6(t)})}}
class B9 extends J6{get keySchema(){return this._def.keyType}get valueSchema(){
return this._def.valueType}_parse(e){
const{status:t,ctx:n}=this._processInputParams(e)
;if(n.parsedType!==T6.map)return I6(n,{code:A6.invalid_type,expected:T6.map,
received:n.parsedType}),L6
;const r=this._def.keyType,o=this._def.valueType,i=[...n.data.entries()].map((([e,t],i)=>({
key:r._parse(new Y6(n,e,n.path,[i,"key"])),
value:o._parse(new Y6(n,t,n.path,[i,"value"]))})));if(n.common.async){
const e=new Map;return Promise.resolve().then((async()=>{for(const n of i){
const r=await n.key,o=await n.value
;if("aborted"===r.status||"aborted"===o.status)return L6
;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}
return{status:t.value,value:e}}))}{const e=new Map;for(const n of i){
const r=n.key,o=n.value;if("aborted"===r.status||"aborted"===o.status)return L6
;"dirty"!==r.status&&"dirty"!==o.status||t.dirty(),e.set(r.value,o.value)}
return{status:t.value,value:e}}}}B9.create=(e,t,n)=>new B9({valueType:t,
keyType:e,typeName:iee.ZodMap,...K6(n)});class Q9 extends J6{_parse(e){
const{status:t,ctx:n}=this._processInputParams(e)
;if(n.parsedType!==T6.set)return I6(n,{code:A6.invalid_type,expected:T6.set,
received:n.parsedType}),L6;const r=this._def
;null!==r.minSize&&n.data.size<r.minSize.value&&(I6(n,{code:A6.too_small,
minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,
message:r.minSize.message
}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(I6(n,{
code:A6.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,
message:r.maxSize.message}),t.dirty());const o=this._def.valueType
;function i(e){const n=new Set;for(const r of e){
if("aborted"===r.status)return L6;"dirty"===r.status&&t.dirty(),n.add(r.value)}
return{status:t.value,value:n}}
const a=[...n.data.values()].map(((e,t)=>o._parse(new Y6(n,e,n.path,t))))
;return n.common.async?Promise.all(a).then((e=>i(e))):i(a)}min(e,t){
return new Q9({...this._def,minSize:{value:e,message:Z6.toString(t)}})}max(e,t){
return new Q9({...this._def,maxSize:{value:e,message:Z6.toString(t)}})}
size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}
Q9.create=(e,t)=>new Q9({valueType:e,minSize:null,maxSize:null,
typeName:iee.ZodSet,...K6(t)});class j9 extends J6{constructor(){
super(...arguments),this.validate=this.implement}_parse(e){
const{ctx:t}=this._processInputParams(e)
;if(t.parsedType!==T6.function)return I6(t,{code:A6.invalid_type,
expected:T6.function,received:t.parsedType}),L6;function n(e,n){return N6({
data:e,path:t.path,
errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,R6(),D6].filter((e=>!!e)),
issueData:{code:A6.invalid_arguments,argumentsError:n}})}function r(e,n){
return N6({data:e,path:t.path,
errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,R6(),D6].filter((e=>!!e)),
issueData:{code:A6.invalid_return_type,returnTypeError:n}})}const o={
errorMap:t.common.contextualErrorMap},i=t.data
;if(this._def.returns instanceof Z9){const e=this
;return Q6((async function(...t){
const a=new P6([]),s=await e._def.args.parseAsync(t,o).catch((e=>{
throw a.addIssue(n(t,e)),a
})),l=await Reflect.apply(i,this,s),c=await e._def.returns._def.type.parseAsync(l,o).catch((e=>{
throw a.addIssue(r(l,e)),a}));return c}))}{const e=this
;return Q6((function(...t){const a=e._def.args.safeParse(t,o)
;if(!a.success)throw new P6([n(t,a.error)])
;const s=Reflect.apply(i,this,a.data),l=e._def.returns.safeParse(s,o)
;if(!l.success)throw new P6([r(s,l.error)]);return l.data}))}}parameters(){
return this._def.args}returnType(){return this._def.returns}args(...e){
return new j9({...this._def,args:M9.create(e).rest(_9.create())})}returns(e){
return new j9({...this._def,returns:e})}implement(e){return this.parse(e)}
strictImplement(e){return this.parse(e)}static create(e,t,n){return new j9({
args:e||M9.create([]).rest(_9.create()),returns:t||_9.create(),
typeName:iee.ZodFunction,...K6(n)})}}class U9 extends J6{get schema(){
return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e)
;return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}
U9.create=(e,t)=>new U9({getter:e,typeName:iee.ZodLazy,...K6(t)})
;class F9 extends J6{_parse(e){if(e.data!==this._def.value){
const t=this._getOrReturnCtx(e);return I6(t,{received:t.data,
code:A6.invalid_literal,expected:this._def.value}),L6}return{status:"valid",
value:e.data}}get value(){return this._def.value}}function q9(e,t){
return new z9({values:e,typeName:iee.ZodEnum,...K6(t)})}
F9.create=(e,t)=>new F9({value:e,typeName:iee.ZodLiteral,...K6(t)})
;class z9 extends J6{constructor(){super(...arguments),W6.set(this,void 0)}
_parse(e){if("string"!=typeof e.data){
const t=this._getOrReturnCtx(e),n=this._def.values;return I6(t,{
expected:S6.joinValues(n),received:t.parsedType,code:A6.invalid_type}),L6}
if(z6(this,W6)||H6(this,W6,new Set(this._def.values)),!z6(this,W6).has(e.data)){
const t=this._getOrReturnCtx(e),n=this._def.values;return I6(t,{received:t.data,
code:A6.invalid_enum_value,options:n}),L6}return Q6(e.data)}get options(){
return this._def.values}get enum(){const e={}
;for(const t of this._def.values)e[t]=t;return e}get Values(){const e={}
;for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={}
;for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){
return z9.create(e,{...this._def,...t})}exclude(e,t=this._def){
return z9.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}
W6=new WeakMap,z9.create=q9;class H9 extends J6{constructor(){
super(...arguments),X6.set(this,void 0)}_parse(e){
const t=S6.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e)
;if(n.parsedType!==T6.string&&n.parsedType!==T6.number){
const e=S6.objectValues(t);return I6(n,{expected:S6.joinValues(e),
received:n.parsedType,code:A6.invalid_type}),L6}
if(z6(this,X6)||H6(this,X6,new Set(S6.getValidEnumValues(this._def.values))),
!z6(this,X6).has(e.data)){const e=S6.objectValues(t);return I6(n,{
received:n.data,code:A6.invalid_enum_value,options:e}),L6}return Q6(e.data)}
get enum(){return this._def.values}}X6=new WeakMap,H9.create=(e,t)=>new H9({
values:e,typeName:iee.ZodNativeEnum,...K6(t)});class Z9 extends J6{unwrap(){
return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e)
;if(t.parsedType!==T6.promise&&!1===t.common.async)return I6(t,{
code:A6.invalid_type,expected:T6.promise,received:t.parsedType}),L6
;const n=t.parsedType===T6.promise?t.data:Promise.resolve(t.data)
;return Q6(n.then((e=>this._def.type.parseAsync(e,{path:t.path,
errorMap:t.common.contextualErrorMap}))))}}Z9.create=(e,t)=>new Z9({type:e,
typeName:iee.ZodPromise,...K6(t)});class V9 extends J6{innerType(){
return this._def.schema}sourceType(){
return this._def.schema._def.typeName===iee.ZodEffects?this._def.schema.sourceType():this._def.schema
}_parse(e){
const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,o={
addIssue:e=>{I6(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}}
;if(o.addIssue=o.addIssue.bind(o),"preprocess"===r.type){
const e=r.transform(n.data,o)
;if(n.common.async)return Promise.resolve(e).then((async e=>{
if("aborted"===t.value)return L6;const r=await this._def.schema._parseAsync({
data:e,path:n.path,parent:n})
;return"aborted"===r.status?L6:"dirty"===r.status||"dirty"===t.value?B6(r.value):r
}));{if("aborted"===t.value)return L6;const r=this._def.schema._parseSync({
data:e,path:n.path,parent:n})
;return"aborted"===r.status?L6:"dirty"===r.status||"dirty"===t.value?B6(r.value):r
}}if("refinement"===r.type){const e=e=>{const t=r.refinement(e,o)
;if(n.common.async)return Promise.resolve(t)
;if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.")
;return e};if(!1===n.common.async){const r=this._def.schema._parseSync({
data:n.data,path:n.path,parent:n})
;return"aborted"===r.status?L6:("dirty"===r.status&&t.dirty(),e(r.value),{
status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,
path:n.path,parent:n
}).then((n=>"aborted"===n.status?L6:("dirty"===n.status&&t.dirty(),
e(n.value).then((()=>({status:t.value,value:n.value}))))))}
if("transform"===r.type){if(!1===n.common.async){
const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n})
;if(!F6(e))return e;const i=r.transform(e.value,o)
;if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.")
;return{status:t.value,value:i}}return this._def.schema._parseAsync({
data:n.data,path:n.path,parent:n
}).then((e=>F6(e)?Promise.resolve(r.transform(e.value,o)).then((e=>({
status:t.value,value:e}))):e))}S6.assertNever(r)}}V9.create=(e,t,n)=>new V9({
schema:e,typeName:iee.ZodEffects,effect:t,...K6(n)
}),V9.createWithPreprocess=(e,t,n)=>new V9({schema:t,effect:{type:"preprocess",
transform:e},typeName:iee.ZodEffects,...K6(n)});class W9 extends J6{_parse(e){
return this._getType(e)===T6.undefined?Q6(void 0):this._def.innerType._parse(e)}
unwrap(){return this._def.innerType}}W9.create=(e,t)=>new W9({innerType:e,
typeName:iee.ZodOptional,...K6(t)});class X9 extends J6{_parse(e){
return this._getType(e)===T6.null?Q6(null):this._def.innerType._parse(e)}
unwrap(){return this._def.innerType}}X9.create=(e,t)=>new X9({innerType:e,
typeName:iee.ZodNullable,...K6(t)});class Y9 extends J6{_parse(e){
const{ctx:t}=this._processInputParams(e);let n=t.data
;return t.parsedType===T6.undefined&&(n=this._def.defaultValue()),
this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){
return this._def.innerType}}Y9.create=(e,t)=>new Y9({innerType:e,
typeName:iee.ZodDefault,
defaultValue:"function"==typeof t.default?t.default:()=>t.default,...K6(t)})
;class G9 extends J6{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,
common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,
path:n.path,parent:{...n}});return q6(r)?r.then((e=>({status:"valid",
value:"valid"===e.status?e.value:this._def.catchValue({get error(){
return new P6(n.common.issues)},input:n.data})}))):{status:"valid",
value:"valid"===r.status?r.value:this._def.catchValue({get error(){
return new P6(n.common.issues)},input:n.data})}}removeCatch(){
return this._def.innerType}}G9.create=(e,t)=>new G9({innerType:e,
typeName:iee.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,
...K6(t)});class K9 extends J6{_parse(e){if(this._getType(e)!==T6.nan){
const t=this._getOrReturnCtx(e);return I6(t,{code:A6.invalid_type,
expected:T6.nan,received:t.parsedType}),L6}return{status:"valid",value:e.data}}}
K9.create=e=>new K9({typeName:iee.ZodNaN,...K6(e)});const J9=Symbol("zod_brand")
;class eee extends J6{_parse(e){
const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({
data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}
class tee extends J6{_parse(e){const{status:t,ctx:n}=this._processInputParams(e)
;if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({
data:n.data,path:n.path,parent:n})
;return"aborted"===e.status?L6:"dirty"===e.status?(t.dirty(),
B6(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}
{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n})
;return"aborted"===e.status?L6:"dirty"===e.status?(t.dirty(),{status:"dirty",
value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}
static create(e,t){return new tee({in:e,out:t,typeName:iee.ZodPipeline})}}
class nee extends J6{_parse(e){
const t=this._def.innerType._parse(e),n=e=>(F6(e)&&(e.value=Object.freeze(e.value)),
e);return q6(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}
function ree(e,t={},n){return e?S9.create().superRefine(((r,o)=>{var i,a
;if(!e(r)){const e="function"==typeof t?t(r):"string"==typeof t?{message:t
}:t,s=null===(a=null!==(i=e.fatal)&&void 0!==i?i:n)||void 0===a||a,l="string"==typeof e?{
message:e}:e;o.addIssue({code:"custom",...l,fatal:s})}})):S9.create()}
nee.create=(e,t)=>new nee({innerType:e,typeName:iee.ZodReadonly,...K6(t)})
;const oee={object:P9.lazycreate};var iee,aee
;(aee=iee||(iee={})).ZodString="ZodString",
aee.ZodNumber="ZodNumber",aee.ZodNaN="ZodNaN",
aee.ZodBigInt="ZodBigInt",aee.ZodBoolean="ZodBoolean",
aee.ZodDate="ZodDate",aee.ZodSymbol="ZodSymbol",aee.ZodUndefined="ZodUndefined",
aee.ZodNull="ZodNull",
aee.ZodAny="ZodAny",aee.ZodUnknown="ZodUnknown",aee.ZodNever="ZodNever",
aee.ZodVoid="ZodVoid",
aee.ZodArray="ZodArray",aee.ZodObject="ZodObject",aee.ZodUnion="ZodUnion",
aee.ZodDiscriminatedUnion="ZodDiscriminatedUnion",
aee.ZodIntersection="ZodIntersection",
aee.ZodTuple="ZodTuple",aee.ZodRecord="ZodRecord",
aee.ZodMap="ZodMap",aee.ZodSet="ZodSet",
aee.ZodFunction="ZodFunction",aee.ZodLazy="ZodLazy",aee.ZodLiteral="ZodLiteral",
aee.ZodEnum="ZodEnum",
aee.ZodEffects="ZodEffects",aee.ZodNativeEnum="ZodNativeEnum",
aee.ZodOptional="ZodOptional",
aee.ZodNullable="ZodNullable",aee.ZodDefault="ZodDefault",
aee.ZodCatch="ZodCatch",aee.ZodPromise="ZodPromise",aee.ZodBranded="ZodBranded",
aee.ZodPipeline="ZodPipeline",aee.ZodReadonly="ZodReadonly"
;const see=m9.create,lee=v9.create,cee=K9.create,uee=b9.create,dee=O9.create,pee=y9.create,hee=w9.create,fee=x9.create,mee=k9.create,gee=S9.create,vee=_9.create,bee=E9.create,Oee=T9.create,yee=C9.create,wee=P9.create,xee=P9.strictCreate,kee=D9.create,See=R9.create,_ee=I9.create,Eee=M9.create,Tee=L9.create,Cee=B9.create,Aee=Q9.create,Pee=j9.create,Dee=U9.create,$ee=F9.create,Ree=z9.create,Nee=H9.create,Iee=Z9.create,Mee=V9.create,Lee=W9.create,Bee=X9.create,Qee=V9.createWithPreprocess,jee=tee.create,Uee={
string:e=>m9.create({...e,coerce:!0}),number:e=>v9.create({...e,coerce:!0}),
boolean:e=>O9.create({...e,coerce:!0}),bigint:e=>b9.create({...e,coerce:!0}),
date:e=>y9.create({...e,coerce:!0})},Fee=L6;var qee=Object.freeze({
__proto__:null,defaultErrorMap:D6,setErrorMap:function(e){$6=e},getErrorMap:R6,
makeIssue:N6,EMPTY_PATH:[],addIssueToContext:I6,ParseStatus:M6,INVALID:L6,
DIRTY:B6,OK:Q6,isAborted:j6,isDirty:U6,isValid:F6,isAsync:q6,get util(){
return S6},get objectUtil(){return E6},ZodParsedType:T6,getParsedType:C6,
ZodType:J6,datetimeRegex:f9,ZodString:m9,ZodNumber:v9,ZodBigInt:b9,
ZodBoolean:O9,ZodDate:y9,ZodSymbol:w9,ZodUndefined:x9,ZodNull:k9,ZodAny:S9,
ZodUnknown:_9,ZodNever:E9,ZodVoid:T9,ZodArray:C9,ZodObject:P9,ZodUnion:D9,
ZodDiscriminatedUnion:R9,ZodIntersection:I9,ZodTuple:M9,ZodRecord:L9,ZodMap:B9,
ZodSet:Q9,ZodFunction:j9,ZodLazy:U9,ZodLiteral:F9,ZodEnum:z9,ZodNativeEnum:H9,
ZodPromise:Z9,ZodEffects:V9,ZodTransformer:V9,ZodOptional:W9,ZodNullable:X9,
ZodDefault:Y9,ZodCatch:G9,ZodNaN:K9,BRAND:J9,ZodBranded:eee,ZodPipeline:tee,
ZodReadonly:nee,custom:ree,Schema:J6,ZodSchema:J6,late:oee,
get ZodFirstPartyTypeKind(){return iee},coerce:Uee,any:gee,array:yee,bigint:uee,
boolean:dee,date:pee,discriminatedUnion:See,effect:Mee,enum:Ree,function:Pee,
instanceof:(e,t={message:`Input not instance of ${e.name}`
})=>ree((t=>t instanceof e),t),intersection:_ee,lazy:Dee,literal:$ee,map:Cee,
nan:cee,nativeEnum:Nee,never:bee,null:mee,nullable:Bee,number:lee,object:wee,
oboolean:()=>dee().optional(),onumber:()=>lee().optional(),optional:Lee,
ostring:()=>see().optional(),pipeline:jee,preprocess:Qee,promise:Iee,record:Tee,
set:Aee,strictObject:xee,string:see,symbol:hee,transformer:Mee,tuple:Eee,
undefined:fee,union:kee,unknown:vee,void:Oee,NEVER:Fee,ZodIssueCode:A6,
quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),
ZodError:P6})
;const zee=qee.string().min(7).optional().default((()=>CZ())),Hee=qee.object({
type:qee.literal("apiKey").default("apiKey"),name:qee.string().default(""),
value:qee.string().default("")}),Zee=qee.object({
type:qee.literal("http").default("http"),username:qee.string().default(""),
password:qee.string().default(""),token:qee.string().default("")
}),Vee=qee.object({type:qee.literal("oauth-implicit").default("oauth-implicit"),
token:qee.string().default("")}),Wee=qee.object({
type:qee.literal("oauth-password").default("oauth-password"),
token:qee.string().default(""),username:qee.string().default(""),
password:qee.string().default(""),clientSecret:qee.string().default("")
}),Xee=qee.object({
type:qee.literal("oauth-clientCredentials").default("oauth-clientCredentials"),
token:qee.string().default(""),clientSecret:qee.string().default("")
}),Yee=qee.object({
type:qee.literal("oauth-authorizationCode").default("oauth-authorizationCode"),
token:qee.string().default(""),clientSecret:qee.string().default("")
}),Gee=qee.union([Hee,Zee,Vee,Wee,Xee,Yee]);function Kee(e,t={}){
if("apiKey"===e.type)return Hee.parse({name:e.name,...t})
;if("http"===e.type)return Zee.parse(t);if("oauth2"===e.type){
if("authorizationCode"===e.flow.type)return Yee.parse(t)
;if("clientCredentials"===e.flow.type)return Xee.parse(t)
;if("implicit"===e.flow.type)return Vee.parse(t)
;if("password"===e.flow.type)return Wee.parse(t)}
throw Error("INVALID SCHEMA FOR OAUTH EXAMPLE")}const Jee=qee.object({
description:qee.string().optional()}),ete=qee.object({uid:zee,
nameKey:qee.string().optional().default("")}),tte=Jee.extend({
type:qee.literal("apiKey"),name:qee.string().optional().default(""),
in:qee.enum(["query","header","cookie"]).optional().default("header")
}),nte=tte.merge(ete),rte=Jee.extend({type:qee.literal("http"),
scheme:qee.enum(["basic","bearer"]).optional().default("basic"),
bearerFormat:qee.union([qee.literal("JWT"),qee.string()]).optional().default("JWT")
}),ote=rte.merge(ete),ite=Jee.extend({type:qee.literal("openIdConnect"),
openIdConnectUrl:qee.string().optional().default("")
}),ate=ite.merge(ete),ste=qee.string().default(""),lte=qee.string().default(""),cte=qee.object({
refreshUrl:qee.string().optional().default(""),
scopes:qee.union([qee.map(qee.string(),qee.string().optional()),qee.record(qee.string(),qee.string().optional()),qee.object({})]).optional().default({}),
selectedScopes:qee.array(qee.string()).optional().default([])
}),ute=qee.discriminatedUnion("type",[cte.extend({type:qee.literal("implicit"),
authorizationUrl:ste,"x-scalar-redirect-uri":qee.string().optional().default("")
}),cte.extend({type:qee.literal("password"),tokenUrl:lte}),cte.extend({
type:qee.literal("clientCredentials"),tokenUrl:lte}),cte.extend({
type:qee.literal("authorizationCode"),authorizationUrl:ste,
"x-scalar-redirect-uri":qee.string().optional().default(""),tokenUrl:lte
})]).optional().default({type:"implicit",
authorizationUrl:"http://localhost:8080"}),dte=Jee.extend({
type:qee.literal("oauth2"),flow:ute,
"x-scalar-client-id":qee.string().optional().default("")
}),pte=dte.merge(ete),hte=qee.record(qee.string(),qee.array(qee.string()).optional().default([]))
;qee.union([tte,rte,dte,ite])
;const fte=qee.union([nte,ote,ate,pte]),mte=qee.object({
name:qee.string().optional().default("name"),identifier:qee.string().optional(),
url:qee.string().url().optional()}),gte=qee.object({
name:qee.string().optional(),url:qee.string().url().optional(),
email:qee.string().email().optional()}),vte=qee.object({
title:qee.string().optional().default("OpenAPI Spec"),
summary:qee.string().optional(),description:qee.string().optional(),
termsOfService:qee.string().optional(),contact:gte.optional(),
license:mte.optional(),version:qee.string().default("0.0.1")}),bte=qee.object({
description:qee.string().optional(),url:qee.string().default("")
}),Ote=qee.object({tagName:qee.string()}).array(),yte=qee.object({
type:qee.literal("tag").optional().default("tag"),name:qee.string(),
description:qee.string().optional(),externalDocs:bte.optional(),
"x-scalar-children":Ote.default([])}).extend({uid:zee,
children:zee.array().default([])}),wte=qee.object({
type:qee.literal("collection").optional().default("collection"),
openapi:qee.union([qee.string(),qee.literal("3.0.0"),qee.literal("3.1.0"),qee.literal("4.0.0")]).optional().default("3.1.0"),
jsonSchemaDialect:qee.string().optional(),info:vte.optional(),
security:qee.array(hte).optional().default([]),externalDocs:bte.optional(),
components:qee.record(qee.string(),qee.unknown()).optional(),
webhooks:qee.record(qee.string(),qee.unknown()).optional()}),xte=qee.object({
uid:zee,securitySchemes:qee.string().array().default([]),
selectedServerUid:qee.string().default(""),servers:zee.array().default([]),
requests:zee.array().default([]),tags:zee.array().default([]),
children:zee.array().default([]),auth:qee.record(zee,Gee).default({})
}),kte=wte.merge(xte),Ste=qee.object({
enum:qee.string().array().min(1).optional(),
default:qee.string().optional().default("default"),
description:qee.string().optional()}),_te=qee.object({
url:qee.string().optional(),description:qee.string().optional(),
variables:qee.record(qee.string(),Ste).optional()}).extend({uid:zee
}),Ete=qee.enum(["path","query","header","cookie"]),Tte=qee.enum(["matrix","simple","form","label","spaceDelimited","pipeDelimited","deepObject"]),Cte=qee.object({
in:Ete,name:qee.string(),description:qee.string().optional(),
required:qee.boolean().optional().default(!1),
deprecated:qee.boolean().optional().default(!1),schema:qee.unknown().optional(),
content:qee.unknown().optional(),style:Tte.optional()
}),Ate=["connect","delete","get","head","options","patch","post","put","trace"],Pte=qee.any(),Dte=qee.object({
tags:qee.string().array().optional(),summary:qee.string().optional(),
description:qee.string().optional(),operationId:qee.string().optional(),
security:qee.array(hte).optional(),requestBody:Pte.optional(),
parameters:Cte.array().optional(),externalDocs:bte.optional(),
deprecated:qee.boolean().optional(),
responses:qee.record(qee.string(),qee.any()).optional()}),$te=qee.object({
type:qee.literal("request").optional().default("request"),uid:zee,
path:qee.string().optional().default(""),method:qee.enum(Ate).default("get"),
servers:zee.array().default([]),selectedServerUid:qee.string().default(""),
examples:zee.array().default([]),
selectedSecuritySchemeUids:zee.array().default([])
}),Rte=Dte.merge($te),Nte=qee.object({key:qee.string().default(""),
value:qee.coerce.string().default(""),enabled:qee.boolean().default(!0),
file:qee.any().optional(),description:qee.string().optional(),
refUid:zee.optional(),required:qee.boolean().optional(),
enum:qee.array(qee.string()).optional(),type:qee.string().optional(),
format:qee.string().optional(),minimum:qee.number().optional(),
maximum:qee.number().optional(),default:qee.any().optional(),
nullable:qee.boolean().optional()}),Ite=qee.object({raw:qee.object({
encoding:qee.enum(["json","text","html","javascript","xml","yaml","edn"]).default("json"),
value:qee.string().default("")}).optional(),formData:qee.object({
encoding:qee.union([qee.literal("form-data"),qee.literal("urlencoded")]).default("form-data"),
value:Nte.array().default([])}).optional(),
binary:qee.instanceof(Blob).optional(),
activeBody:qee.union([qee.literal("raw"),qee.literal("formData"),qee.literal("binary")]).default("raw")
}),Mte=qee.object({
type:qee.literal("requestExample").optional().default("requestExample"),uid:zee,
requestUid:zee,name:qee.string().optional().default("Name"),
body:Ite.optional().default({}),parameters:qee.object({
path:Nte.array().default([]),query:Nte.array().default([]),
headers:Nte.array().default([]),cookies:Nte.array().default([])
}).optional().default({}),
serverVariables:qee.record(qee.string(),qee.array(qee.string())).optional()})
;function Lte(e,t,n){var r,o,i,a,s;const l={path:[],query:[],cookie:[],header:[]
};null==(r=e.parameters)||r.forEach((e=>l[e.in].push(function(e){var t
;const n=e.schema,r=String((null==n?void 0:n.default)??(null==(t=null==n?void 0:n.examples)?void 0:t[0])??""),o=Dd({
...n,key:e.name,value:r,description:e.description,required:e.required,
enabled:!!e.required},Nte,!1)
;return o||(console.warn(`Example at ${e.name} is invalid.`),Nte.parse({}))
}(e))));const c={activeBody:"raw",raw:{encoding:"json",value:""}}
;if(e.requestBody){const t=lf({path:e.path,information:{
requestBody:e.requestBody}})
;"application/json"===(null==(o=null==t?void 0:t.body)?void 0:o.mimeType)&&(c.activeBody="raw",
c.raw={encoding:"json",value:t.body.text??JSON.stringify({})
}),"application/xml"===(null==(i=null==t?void 0:t.body)?void 0:i.mimeType)&&(c.activeBody="raw",
c.raw={encoding:"xml",value:t.body.text??""
}),"application/octet-stream"===(null==(a=null==t?void 0:t.body)?void 0:a.mimeType)&&(c.activeBody="binary",
c.binary=void 0),
"application/x-www-form-urlencoded"===(null==(s=null==t?void 0:t.body)?void 0:s.mimeType)&&(c.activeBody="formData",
c.formData=void 0)}const u=Dd({requestUid:e.uid,parameters:l,name:t,body:c,
serverVariables:{}},Mte,!1)
;return u||(console.warn(`Example at ${e.uid} is invalid.`),Mte.parse({}))}
function Bte(e,t,n){const r=t.split("."),o=r.at(-1)
;return r.reduce(((e,t)=>(t===o&&(e[t]=n),e[t])),e),e}class Qte{
constructor(e,t=5e3,n=!1){
r(this,"parentData"),r(this,"maxRecords"),r(this,"records",[]),
r(this,"sideEffects",[]),
r(this,"idx",0),r(this,"debug"),this.maxRecords=t,this.parentData=e,this.debug=n
}_unsavedMutate(e,t){Bte(this.parentData,e,t),this.runSideEffects(e)}
addSideEffect(e,t,n,r=!0){this.sideEffects.push({triggers:e,effect:t,name:n
}),r&&(t(this.parentData),
this.debug&&console.info(`Running mutation side effect: ${n}`,"debug"))}
runSideEffects(e){this.sideEffects.forEach((({effect:t,triggers:n,name:r})=>{
(n.some((t=>e.includes(t)))||e.length<1)&&(t(this.parentData),
this.debug&&console.info(`Running mutation side effect: ${r}`,"debug"))}))}
mutate(e,t,n=null){
this.idx<this.records.length-1&&this.records.splice(this.idx+1)
;const r=function(e,t){return t.split(".").reduce(((e,t)=>e[t]),e)
}(this.parentData,e)
;r!==t&&(Bte(this.parentData,e,t),this.runSideEffects(e),this.records.push({
prev:n??r,value:t,path:e
}),this.idx=this.records.length-1,this.records.length>this.maxRecords&&this.records.shift(),
this.debug&&console.info(`Set object '${this.idx}' '${e}' to ${t}`,"debug"))}
undo(){if(this.idx<0||this.records.length<1)return!1
;this.debug&&console.info("Undoing Mutation","debug")
;const e=this.records[this.idx]
;return this.idx-=1,this._unsavedMutate(e.path,e.prev),!0}redo(){
if(this.idx>this.records.length-2)return!1
;this.debug&&console.info("Redoing Mutation","debug")
;const e=this.records[this.idx+1]
;return this.idx+=1,this._unsavedMutate(e.path,e.value),!0}}const jte={
DEBOUNCE_MS:328,MAX_WAIT_MS:1e3
},{parse:Ute,stringify:Fte}=JSON,{keys:qte}=Object,zte=String,Hte="string",Zte={},Vte="object",Wte=(e,t)=>t,Xte=e=>e instanceof zte?zte(e):e,Yte=(e,t)=>typeof t===Hte?new zte(t):t,Gte=(e,t,n,r)=>{
const o=[];for(let i=qte(n),{length:a}=i,s=0;s<a;s++){const a=i[s],l=n[a]
;if(l instanceof zte){const i=e[l]
;typeof i!==Vte||t.has(i)?n[a]=r.call(n,a,i):(t.add(i),n[a]=Zte,o.push({k:a,
a:[e,t,i,r]}))}else n[a]!==Zte&&(n[a]=r.call(n,a,l))}
for(let{length:i}=o,a=0;a<i;a++){const{k:e,a:t}=o[a]
;n[e]=r.call(n,e,Gte.apply(null,t))}return n},Kte=(e,t,n)=>{
const r=zte(t.push(n)-1);return e.set(n,r),r},Jte=(e,t)=>{
const n=Ute(e,Yte).map(Xte),r=n[0],o=Wte,i=typeof r===Vte&&r?Gte(n,new Set,r,o):r
;return o.call({"":i},"",i)},ene=(e,t,n)=>{const r=Wte,o=new Map,i=[],a=[]
;let s=+Kte(o,i,r.call({"":e},"",e)),l=!s
;for(;s<i.length;)l=!0,a[s]=Fte(i[s++],c,n);return"["+a.join(",")+"]"
;function c(e,t){if(l)return l=!l,t;const n=r.call(this,e,t);switch(typeof n){
case Vte:if(null===n)return n;case Hte:return o.get(n)||Kte(o,i,n)}return n}
},tne=500;function nne(e,t,n,r=tne){function o(n){const r=t[n]
;return r||console.warn(`Missing ${e[n]?"mutator":"object"} for uid: ${n}`),
r??null}const i=n?sK((()=>localStorage.setItem(n,ene(e))),jte.DEBOUNCE_MS,{
maxWait:jte.MAX_WAIT_MS}):()=>null;return{add:n=>{
e[n.uid]=n,t[n.uid]=new Qte(n,r),i()},delete:n=>{delete e[n],delete t[n],i()},
set:n=>{e[n.uid]=n,t[n.uid]=new Qte(n,r),i()},edit:(e,t,n)=>{const r=o(e)
;null==r||r.mutate(t,n),i()},untrackedEdit:(e,t,n)=>{const r=o(e)
;null==r||r._unsavedMutate(t,n),i()},undo:e=>{const t=o(e);null==t||t.undo(),i()
},redo:e=>{const t=o(e);null==t||t.redo(),i()}}}const rne=qee.object({uid:zee,
name:qee.string().default("Default Cookie"),
value:qee.string().default("Default Value"),domain:qee.string().optional(),
expires:qee.date().optional(),httpOnly:qee.boolean().optional(),
maxAge:qee.number().optional(),partitioned:qee.boolean().optional(),
path:qee.string().optional(),
sameSite:qee.union([qee.literal("Lax"),qee.literal("Strict"),qee.literal("None")]).default("None"),
secure:qee.boolean().optional()});const one=qee.object({uid:zee,
name:qee.string().optional().default("Default Environment"),
color:qee.string().optional().default("blue"),value:qee.string().default(""),
isDefault:qee.boolean().optional()});const ine=(e,t)=>{if("oauth2"===e.type){
const n=Object.entries(e.flows??{});if(n.length){const[[r,o]]=n;return{...e,
nameKey:t,flow:{...o,type:r}}}}return{...e,nameKey:t}};async function ane(e){
var t,n,r,o,i;const{filesystem:a}=await WP(e),{specification:s}=function(e){
return{specification:[YP,XP].reduce(((e,t)=>t(e)),BP(zP(e)).specification),
version:"3.1"}
}(a),{schema:l,errors:c=[]}=await VP(s),u=l,d=[...c.map((e=>e.message))]
;if(!u)return{importWarnings:d,error:!0}
;const p=[],h=_te.array().parse((null==(t=u.servers)?void 0:t.map((e=>e??[{
url:"undefined"!=typeof window?window.location.origin:"http://localhost",
description:"Replace with your API server"
}])))??[]),f=new Set,m=(null==(n=u.components)?void 0:n.securitySchemes)??{},g=null==(o=(r=Object.entries(m)).map)?void 0:o.call(r,(([e,t])=>{
const n=Dd("oauth2"===t.type?ine(t,e):{...t,nameKey:e},fte,!1)
;return n||d.push(`Security scheme ${e} is invalid.`),n})).filter((e=>!!e)),v={}
;var b;g.forEach((e=>{v[e.nameKey]=e.uid
})),(b=u.paths??{},b?Object.keys(b).map((e=>String(e))):[]).forEach((e=>{var t
;const n=null==(t=null==u?void 0:u.paths)?void 0:t[e];if(!n)return
;const r=_te.array().parse(n.servers??[]);h.push(...r),Ate.forEach((t=>{
var o,i,a;const s=n[t];if(s&&"object"==typeof s){
const l=_te.array().parse(s.servers??[])
;h.push(...l),null==(o=s.tags)||o.forEach((e=>f.add(e)))
;const{security:c,...u}=s,m={...u,method:t,path:e,selectedSecuritySchemeUids:[],
parameters:[...(null==n?void 0:n.parameters)??[],...s.parameters??[]],
servers:[...r,...l].map((e=>e.uid))}
;(null==(i=s.security)?void 0:i.length)&&(m.security=null==(a=s.security)?void 0:a.map((e=>{
if(Object.keys(e).length){const[t]=Object.keys(e);return{[t]:e[t]}}return e})))
;const g=Dd(m,Rte,!1);g?p.push(g):d.push(`${t} Request at ${n} is invalid.`)}}))
}));const O=Dd((null==u?void 0:u.tags)??[],yte.array(),!1)??[]
;O.forEach((e=>f.delete(e.name))),f.forEach((e=>O.push(yte.parse({name:e}))))
;const y={};O.forEach((e=>{y[e.name]=e}));const w=new Set(O.map((e=>e.uid)))
;O.forEach((e=>{var t;null==(t=e["x-scalar-children"])||t.forEach((t=>{
const n=y[t.tagName].uid;e.children.push(n),w.delete(n)}))})),p.forEach((e=>{
e.tags?e.tags.forEach((t=>{y[t].children.push(e.uid)})):w.add(e.uid)}))
;const x=[];p.forEach((e=>{const t=Lte(e,"Default Example")
;x.push(t),e.examples.push(t.uid)}));const k=null==g?void 0:g.reduce(((e,t)=>{
const n=Kee(t);return n&&(e[t.uid]=n),e}),{}),S=kte.parse({...u,auth:k,
requests:p.map((e=>e.uid)),servers:h.map((e=>e.uid)),tags:O.map((e=>e.uid)),
children:[...w],security:u.security??[{}],
selectedServerUid:null==(i=null==h?void 0:h[0])?void 0:i.uid,components:{
...u.components},securitySchemes:g.map((e=>e.uid))});return{error:!1,servers:h,
requests:p,examples:x,collection:S,tags:O,securitySchemes:g}}
function sne({collections:e,tags:t}){return function(n){
const r=Object.values(e).find((e=>{var t
;return null==(t=e.requests)?void 0:t.includes(n.uid)}));if(!r)return[]
;const o=Object.keys(t).reduce(((e,t)=>(e[t]=[],e)),{[null==r?void 0:r.uid]:[]})
;!function e(n,r){
r.forEach((e=>o[e].push(...n.children))),n.children.forEach((n=>{
t[n]&&e(t[n],[...r,n])}))}(r,[r.uid]);const i=new Set
;return Object.entries(o).forEach((([e,t])=>{t.includes(n.uid)&&i.add(e)
})),[...i]}}
const lne=qee.enum(["Meta","Control","Shift","Alt","default"]).optional().default("default"),cne=qee.array(lne).optional().default(["default"]),une=qee.record(qee.enum(["Space","Backspace","Tab","Enter","Escape","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Delete","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","*","+","-",".","/","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12",";","=",",","-",".","/","`","[","\\","]",""]),qee.object({
modifiers:cne.optional(),
event:qee.enum(["closeModal","navigateSearchResultsDown","selectSearchResult","navigateSearchResultsUp","openCommandPalette","openCommandPaletteRequest","toggleSidebar","addTopNav","closeTopNav","navigateTopNavLeft","navigateTopNavRight","focusAddressBar","jumpToTab","jumpToLastTab","focusRequestSearch"])
})),dne=qee.object({modifiers:cne,hotKeys:une.optional()
}).optional(),pne=qee.object({uid:zee,
name:qee.string().default("Default Workspace"),
description:qee.string().default("Basic Scalar Workspace"),
isReadOnly:qee.boolean().default(!1),
collections:qee.array(qee.string()).default([]),
environments:qee.array(qee.string()).default([]),hotKeyConfig:dne,
activeEnvironmentId:qee.string().optional().default("default"),
cookies:qee.array(qee.string()).default([]),proxyUrl:qee.string().optional(),
themeId:qee.enum(["alternate","default","moon","purple","solarized","bluePlanet","deepSpace","saturn","kepler","mars","none"]).optional().default("default")
});const hne=(e,t=!0)=>{const n=Aa((te=e,()=>{const e={
[g6.Collection]:"default",[g6.Environment]:"default",[g6.Request]:"default",
[g6.Examples]:"default",[g6.Schema]:"default",[g6.Cookies]:"default",
[g6.Servers]:"default",[g6.Workspace]:"default"},t=te.currentRoute.value
;return t&&Object.values(g6).forEach((n=>{t.params[n]&&(e[n]=t.params[n])})),e
})),{collections:r,collectionMutators:o}=function(e){const t=wn({});return{
collections:t,collectionMutators:nne(t,wn({}),e&&bd)}
}(t),{tags:i,tagMutators:a}=function(e){const t=wn({});return{tags:t,
tagMutators:nne(t,wn({}),e&&_d)}}(t),{requests:s,requestMutators:l}=function(e){
const t=wn({});return{requests:t,requestMutators:nne(t,wn({}),e&&wd)}
}(t),{requestExamples:c,requestExampleMutators:u}=function(e){const t=wn({})
;return{requestExamples:t,requestExampleMutators:nne(t,wn({}),e&&xd)}
}(t),{cookies:d,cookieMutators:p}=function(e){
const t=wn({}),n=nne(t,wn({}),e&&Od);return n.add(rne.parse({uid:"default",
name:"Cookie",value:"",domain:"",path:"/",secure:!1,httpOnly:!1,sameSite:"None"
})),{cookies:t,cookieMutators:n}
}(t),{environments:h,environmentMutators:f}=function(e){
const t=wn({}),n=nne(t,wn({}),e&&yd);return n.add(one.parse({uid:"default",
name:"Global Environment",color:"blue",raw:JSON.stringify({
exampleKey:"exampleValue"},null,2),parsed:[],isDefault:!0})),{environments:t,
environmentMutators:n}}(t),{servers:m,serverMutators:g}=function(e){
const t=wn({});return{servers:t,serverMutators:nne(t,wn({}),e&&Sd)}
}(t),{securitySchemes:v,securitySchemeMutators:b}=function(e){const t=wn({})
;return{securitySchemes:t,securitySchemeMutators:nne(t,wn({}),e&&kd)}
}(t),{workspaces:O,workspaceMutators:y}=function(e){const t=wn({});return{
workspaces:t,workspaceMutators:nne(t,wn({}),e&&Ed)}}(t),w={routerParams:n,
collections:r,collectionMutators:o,tags:i,tagMutators:a,requests:s,
requestMutators:l,requestExamples:c,requestExampleMutators:u,cookies:d,
cookieMutators:p,environments:h,environmentMutators:f,servers:m,
serverMutators:g,securitySchemes:v,securitySchemeMutators:b,workspaces:O,
workspaceMutators:y
},{addRequest:x,deleteRequest:k,findRequestParents:S}=function({requestExamples:e,requestExampleMutators:t,requestMutators:n,collectionMutators:r,collections:o,tags:i,tagMutators:a}){
return{addRequest:(s,l)=>{var c;const u=Dd(s,Rte,!1)
;if(!u)return console.error("INVALID REQUEST DATA",s)
;const d=o[l],p=Lte(u,vd((u.summary??"Example")+" #1",(t=>u.examples.some((n=>t===e[n].name)))))
;return u.examples.push(p.uid),
n.add(u),t.add(p),r.edit(l,"requests",[...d.requests,u.uid]),
null!=(c=u.tags)&&c.length?u.tags.forEach((e=>{
const t=d.tags.find((t=>i[t].name===e))
;t&&a.edit(t,"children",[...i[t].children,u.uid])
})):r.edit(l,"children",[...d.children,u.uid]),u},deleteRequest:(e,s)=>{var l
;const c=o[s]
;e.examples.forEach((e=>t.delete(e))),r.edit(s,"requests",c.requests.filter((t=>t!==e.uid))),
r.edit(s,"children",c.children.filter((t=>t!==e.uid))),
null==(l=e.tags)||l.forEach((t=>{const n=c.tags.find((e=>i[e].name===t))
;n&&a.edit(n,"children",i[n].children.filter((t=>t!==e.uid)))})),n.delete(e.uid)
},findRequestParents:sne({collections:o,tags:i})}
}(w),{deleteEnvironment:_}=function({environmentMutators:e}){return{
deleteEnvironment:t=>{
"default"!==t?e.delete(t):console.warn("Default environment cannot be deleted.")
}}
}(w),{addServer:E,deleteServer:T}=function({serverMutators:e,collections:t,collectionMutators:n,requests:r,requestMutators:o}){
return{addServer:(i,a)=>{const s=_te.parse(i)
;return t[a]?n.edit(a,"servers",[...t[a].servers,s.uid]):r[a]&&o.edit(a,"servers",[...r[a].servers,s.uid]),
e.add(s),s},deleteServer:(r,o)=>{
n.edit(o,"servers",t[o].servers.filter((e=>e!==r))),e.delete(r)}}
}(w),{addCollection:C,deleteCollection:A}=function({requests:e,requestMutators:t,requestExamples:n,requestExampleMutators:r,workspaces:o,workspaceMutators:i,collections:a,collectionMutators:s,tagMutators:l}){
return{addCollection:(e,t)=>{const n=kte.parse(e)
;return i.edit(t,"collections",[...o[t].collections,n.uid]),s.add(n),n},
deleteCollection:(o,c)=>{var u,d;if(c.uid){
if("Drafts"===(null==(d=null==(u=a[o.uid])?void 0:u.info)?void 0:d.title))return void console.warn("The drafts collection cannot be deleted")
;if(1===Object.values(a).length)return void console.warn("You must have at least one collection")
;o.tags.forEach((e=>l.delete(e))),o.requests.forEach((o=>{const i=e[o]
;i&&(t.delete(o),i.examples.forEach((e=>n[e]&&r.delete(e))))
})),i.edit(c.uid,"collections",c.collections.filter((e=>e!==o.uid))),
s.delete(o.uid)}}}
}(w),{addRequestExample:P,deleteRequestExample:D}=function({requestExamples:e,requestExampleMutators:t,requestMutators:n,requests:r}){
return{addRequestExample:(r,o)=>{
const i=o??vd((r.summary??"Example")+" #1",(t=>r.examples.some((n=>t===e[n].name)))),a=Lte(r,i)
;return t.add(a),n.edit(r.uid,"examples",[...r.examples,a.uid]),a},
deleteRequestExample:e=>{
n.edit(e.requestUid,"examples",r[e.requestUid].examples.filter((t=>t!==e.uid))),
t.delete(e.uid)}}
}(w),{addWorkspace:$,deleteWorkspace:R}=function({workspaces:e,workspaceMutators:t,collectionMutators:n,requestMutators:r,requestExampleMutators:o}){
return{addWorkspace:(e={})=>{const i=Mte.parse({name:"Example"}),a=Rte.parse({
method:"get",parameters:[],path:"",summary:"My First Request",examples:[i.uid]
}),s=kte.parse({info:{title:"Drafts"},children:[a.uid],requests:[a.uid]
}),l=pne.parse({...e,collections:[s.uid]})
;return o.add(i),r.add(a),n.add(s),t.add(l),l},deleteWorkspace:n=>{
Object.keys(e).length<=1?console.warn("The last workspace cannot be deleted."):t.delete(n)
}}
}(w),{addSecurityScheme:N,deleteSecurityScheme:I}=function({securitySchemeMutators:e,collectionMutators:t,collections:n,requests:r,requestMutators:o}){
return{addSecurityScheme:(r,o)=>{const i=fte.parse(r)
;e.add(i),o&&t.edit(o,"securitySchemes",[...n[o].securitySchemes,i.uid])
;const a=Kee(i);return t.edit(o,"auth",{...n[o].auth,[i.uid]:a}),i},
deleteSecurityScheme:i=>{Object.values(n).forEach((e=>{
e.securitySchemes.includes(i.uid)&&t.edit(e.uid,"securitySchemes",e.securitySchemes.filter((e=>e!==i.uid)))
})),Object.values(n).forEach((e=>{if(i.uid in e.auth){
const{[i.uid]:n,...r}=e.auth;t.edit(e.uid,"auth",r)}
})),Object.values(r).forEach((e=>{var t,n,a
;null!=(t=e.security)&&t.some((e=>Object.keys(e).includes(i.uid)))&&o.edit(e.uid,"security",null==(n=r[e.uid].security)?void 0:n.filter((e=>!Object.keys(e).includes(i.uid)))),
e.selectedSecuritySchemeUids.includes(i.uid)&&o.edit(e.uid,"selectedSecuritySchemeUids",null==(a=e.selectedSecuritySchemeUids)?void 0:a.filter((e=>e!==i.uid)))
})),e.delete(i.uid)}}
}(w),{addTag:M,deleteTag:L}=function({collectionMutators:e,collections:t,requests:n,requestMutators:r,tagMutators:o}){
return{addTag:(n,r)=>{const i=t[r],a=Dd(n,yte,!1)
;return a?(e.edit(r,"tags",[...i.tags,a.uid]),
e.edit(r,"children",[...i.children,a.uid]),
o.add(a),a):console.error("INVALID TAG DATA",n)},deleteTag:(i,a)=>{const s=t[a]
;e.edit(a,"tags",s.tags.filter((e=>e!==i.uid))),
e.edit(a,"children",s.children.filter((e=>e!==i.uid))),i.children.forEach((t=>{
var o;const l=null==(o=n[t].tags)?void 0:o.filter((e=>e!==i.name))
;r.edit(t,"tags",l),
(null==l||!l.length)&&!s.children.includes(t)&&e.edit(a,"children",[...s.children,t])
})),o.delete(i.uid)}}
}(w),B=Aa((()=>O[n.value[g6.Workspace]]??O[Object.keys(O)[0]])),Q=Aa((()=>{var e
;return null==(e=B.value)?void 0:e.collections.map((e=>r[e])).sort(((e,t)=>{
var n,r
;return"Drafts"===(null==(n=e.info)?void 0:n.title)?1:"Drafts"===(null==(r=t.info)?void 0:r.title)?-1:0
}))})),j=Aa((()=>{var e
;return null==(e=Q.value)?void 0:e.flatMap((e=>e.servers.map((e=>m[e]))))
})),U=Aa((()=>{var e;return null==(e=Q.value)?void 0:e.flatMap((e=>e.requests))
})),F=Aa((()=>{var e
;return h[(null==(e=B.value)?void 0:e.activeEnvironmentId)??"default"]
})),q=Aa((()=>{
const e=n.value[g6.Request],t=r[n.value.collection]||r[B.value.collections[0]],o=s[e]||s[null==t?void 0:t.requests[0]]
;return function(e,t){var n,r
;y6.currentRoute.value&&!t&&null!=(n=y6.currentRoute.value)&&n.params[e]&&"default"!==(null==(r=y6.currentRoute.value)?void 0:r.params[e])&&y6.currentRoute.value.path.includes(e)&&y6.push({
params:{...y6.currentRoute.value.params,[e]:"default"}})}(g6.Request,o),o
})),z=Aa((()=>{var e
;const t="default"===n.value[g6.Examples]?(null==(e=q.value)?void 0:e.examples[0])||"":n.value[g6.Examples]
;return c[t]})),H=Aa((()=>{var e;const t=null==(e=q.value)?void 0:e.uid
;if(t)return Object.values(r).find((e=>{var n
;return null==(n=e.requests)?void 0:n.includes(t)}))
;const n=B.value.collections[0]??r[0].uid;return r[n]})),Z=Aa((()=>{var e,t
;return m[(null==(e=q.value)?void 0:e.selectedServerUid)||(null==(t=H.value)?void 0:t.selectedServerUid)||""]
})),V=Aa((()=>n.value[g6.Cookies])),W=Aa((()=>F.value?function(e){
return function e(t,n){const r=Object.keys(t),o=[];return r.forEach((r=>{
const i=n?`${n}.${r}`:r
;"object"==typeof t[r]?o.push(...e(t[r],i)):o.push([i,String(t[r])])})),o}(e)
}(JSON.parse(F.value.value)).map((([e,t])=>({key:e,value:t
}))):[])),X=wn([]),Y=Aa((()=>{var e
;return(null==(e=B.value)?void 0:e.isReadOnly)??!1
})),{importSpecFile:G,importSpecFromUrl:K}=function({requestMutators:e,collectionMutators:t,serverMutators:n,tagMutators:r,securitySchemeMutators:o,requestExampleMutators:i,workspaceMutators:a,workspaces:s}){
const l=async(l,c="default",u)=>{var d;const p=Pn(l)
;null!=u&&u.length&&"object"==typeof p&&(p.servers=u);const h=await ane(p)
;if(h.error)return console.group("IMPORT ERRORS"),
h.importWarnings.forEach((e=>console.warn(e))),void console.groupEnd()
;h.examples.forEach((e=>i.add(e))),
h.requests.forEach((t=>e.add(t))),h.tags.forEach((e=>r.add(e))),
h.servers.forEach((e=>n.add(e))),
h.securitySchemes.forEach((e=>o.add(e))),t.add(h.collection),
a.edit(c,"collections",[...(null==(d=s[c])?void 0:d.collections)??[],h.collection.uid])
};return{importSpecFile:l,importSpecFromUrl:async function(e,t,n){try{
const r=await dd(e,t);await l(r,void 0,n)}catch(a$){
console.error("Failed to fetch spec from URL:",a$)}}}
}(w),J=Bn(localStorage.getItem("sidebarWidth")||"280px"),ee=SI();var te
;return window.dataDump=()=>({collections:Pn(r),cookies:Pn(d),
environments:Pn(h),requestExamples:Pn(c),requests:Pn(s),securitySchemes:Pn(v),
servers:Pn(m),tags:Pn(i),workspaces:Pn(O)}),{workspaces:O,collections:r,tags:i,
cookies:d,environments:h,requestExamples:c,requests:s,servers:m,
securitySchemes:v,activeCollection:H,activeCookieId:V,activeExample:z,
activeRequest:q,activeRouterParams:n,activeEnvironment:F,activeServer:Z,
activeWorkspace:B,activeWorkspaceCollections:Q,activeWorkspaceServers:j,
activeEnvVariables:W,activeWorkspaceRequests:U,modalState:ee,isReadOnly:Y,
router:e,sidebarWidth:J,setSidebarWidth:e=>{
J.value=e,localStorage.setItem("sidebarWidth",e)},importSpecFile:G,
importSpecFromUrl:K,cookieMutators:p,collectionMutators:{...o,rawAdd:o.add,
add:C,delete:A},environmentMutators:{...f,delete:_},requestMutators:{...l,
rawAdd:l.add,add:x,delete:k},findRequestParents:S,requestExampleMutators:{...u,
rawAdd:u.add,add:P,delete:D},requestHistory:X,securitySchemeMutators:{...b,
rawAdd:b.add,add:N,delete:I},serverMutators:{...g,rawAdd:g.add,add:E,delete:T},
tagMutators:{...a,rawAdd:a.add,add:M,delete:L},workspaceMutators:{...y,
rawAdd:y.add,add:$,delete:R}}},fne=()=>$o("workspace"),mne=(e,t)=>{
const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};Bn(!1);const gne=eo({
__name:"ScalarHotkey",props:{hotkey:{}},emits:["hotkeyPressed"],
setup(e,{emit:t}){
const n=e,r=t,o=Aa((()=>RJ()?"⌘":"⌃")),i=Aa((()=>new Map([["↵","enter"],["N","n"]]).get(n.hotkey))),a=Aa((()=>`${o.value} ${n.hotkey}`)),s=bK({
passive:!1,onEventFired(e){
!RJ()&&e.ctrlKey&&e.key===i.value&&(e.preventDefault(),e.stopPropagation())}})
;return lK(s[`${RJ()?"meta":"control"}_${n.hotkey}`],(()=>{
r("hotkeyPressed",i.value||"")})),(e,t)=>(zi(),Wi("div",ua(e.$attrs,{
class:"bg-b-1 border-b-3 inline-block overflow-hidden rounded border-1/2 text-xxs rounded-b px-1 font-medium uppercase"
}),st(a.value),17))}
}),vne=gK(Symbol()),bne=["Escape","ArrowDown","ArrowUp","Enter","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"],One={
Escape:{event:"closeModal"},b:{event:"toggleSidebar",modifiers:["default"]},k:{
event:"openCommandPalette",modifiers:["default"]},t:{event:"addTopNav",
modifiers:["default"]},w:{event:"closeTopNav",modifiers:["default"]},ArrowLeft:{
event:"navigateTopNavLeft",modifiers:["default","Alt"]},ArrowRight:{
event:"navigateTopNavRight",modifiers:["default","Alt"]},l:{
event:"focusAddressBar",modifiers:["default"]},1:{event:"jumpToTab",
modifiers:["default"]},2:{event:"jumpToTab",modifiers:["default"]},3:{
event:"jumpToTab",modifiers:["default"]},4:{event:"jumpToTab",
modifiers:["default"]},5:{event:"jumpToTab",modifiers:["default"]},6:{
event:"jumpToTab",modifiers:["default"]},7:{event:"jumpToTab",
modifiers:["default"]},8:{event:"jumpToTab",modifiers:["default"]},9:{
event:"jumpToLastTab",modifiers:["default"]},f:{event:"focusRequestSearch",
modifiers:["default"]},n:{event:"openCommandPaletteRequest",
modifiers:["default"]}},yne=e=>{if(!(e.target instanceof HTMLElement))return!1
;const t=e.target
;return"INPUT"===t.tagName?!bne.includes(e.key):!("TEXTAREA"!==t.tagName&&!t.getAttribute("contenteditable"))
},wne={Alt:"altKey",Control:"ctrlKey",Shift:"shiftKey",Meta:"metaKey"
},xne=e=>e.map((e=>"default"===e?RJ()?"metaKey":"ctrlKey":wne[e])),kne=eo({
__name:"HttpMethod",props:{isSquare:{type:Boolean,default:!1},method:{},
isEditable:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){
const n=e,r=t,o=Aa((()=>md(n.method))),i=Object.entries(pd).map((([e])=>({id:e,
label:e.charAt(0)+e.toLowerCase().slice(1),color:md(e).color}))),a=Aa({
get:()=>i.find((({id:e})=>e===n.method)),
set:e=>(null==e?void 0:e.id)&&r("change",e.id)}),s=EN({
base:"text-center font-code text-3xs justify-center items-center flex",
variants:{isSquare:{
true:"px-2.5 whitespace-nowrap font-bold border-r h-fit m-auto",
false:"rounded-full"},isEditable:{
true:"px-0 http-bg-gradient rounded-md border-1/2 border-r-1/2",
false:"cusor-pointer"}}}),l=Aa((()=>o.value.short))
;return(e,t)=>e.isEditable?(zi(),Xi(Fn(yW),{key:0,modelValue:a.value,
"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),
class:"mt-1 font-code text-sm uppercase",options:Fn(i)},{
default:Tr((()=>[ea("div",{class:et(["h-full",{
"pointer-events-none":!e.isEditable}])},[ea("button",{
class:et(["relative h-full",Fn(TN)(Fn(s)({isSquare:e.isSquare,
isEditable:e.isEditable}),o.value.color)]),type:"button"
},[ea("span",null,st(l.value),1)],2)],2)])),_:1
},8,["modelValue","options"])):(zi(),Wi("div",{key:1,
class:et(["relative gap-1 whitespace-nowrap",Fn(TN)(Fn(s)({isSquare:e.isSquare,
isEditable:e.isEditable}),o.value.color)]),type:"button"},st(o.value.short),3))}
}),Sne=mne(kne,[["__scopeId","data-v-a2902675"]])
;function _ne({multiple:e,accept:t,onChange:n,onError:r}={}){const o=Bn(null)
;let i
;typeof document<"u"&&(i=document.createElement("input"),i.type="file",i.onchange=e=>{
const t=e.target;o.value=t.files,null==n||n(o.value)
},i.onerror=()=>null==r?void 0:r(),i.multiple=e,i.accept=t);return{files:kn(o),
open:()=>{if(!i)return null==r?void 0:r();i.click()}}}
const Ene=gK(Symbol()),Tne={class:"scalar"},Cne={className:"scalar-container"
},Ane={className:"scalar-app scalar-client scalar-app-layout"},Pne=eo({
__name:"ApiClientModal",setup(e){
const{activeWorkspace:t,modalState:n}=fne(),r=e=>((e,{hotKeys:t=One,modifiers:n=["default"]}={})=>{
const r=" "===e.key?"Space":e.key,o=t[r];o&&("Escape"===r?vne.emit({[o.event]:e
}):xne(o.modifiers||n).every((t=>!0===e[t]))&&!yne(e)?vne.emit({[o.event]:e
}):!yne(e)&&void 0===o.modifiers&&vne.emit({[o.event]:e}))
})(e,t.value.hotKeyConfig);li((()=>n.open),(e=>{
e?(window.addEventListener("keydown",r),
document.documentElement.style.overflow="hidden"):(window.removeEventListener("keydown",r),
document.documentElement.style.removeProperty("overflow"))})),jr((()=>EK()))
;const o=e=>e.closeModal&&n.open&&n.hide();return Ur((()=>vne.on(o))),zr((()=>{
document.documentElement.style.removeProperty("overflow"),vne.off(o)
})),(e,t)=>Yr((zi(),Wi("div",Tne,[ea("div",Cne,[ea("div",Ane,[ta(Fn(p6),{
key:"$route.fullPath"})]),ea("div",{class:"scalar-app-exit",
onClick:t[0]||(t[0]=e=>Fn(n).hide())})])],512)),[[Ka,Fn(n).open]])}
}),Dne=mne(Pne,[["__scopeId","data-v-c544671b"]]),$ne="2.1.0",Rne="scalar_api_client_data_version",Nne=e=>{
const t=localStorage.getItem(e)||"[{}]";return"["===t[0]?Jte(t):JSON.parse(t)
},Ine=()=>{const e=(()=>{
const e=localStorage.getItem("collection"),t=localStorage.getItem(Rne)
;if(!(null==e?void 0:e.length)||"{"===(null==e?void 0:e[0]))return"0.0.0";try{
const[n]=Object.values(Jte(e)??{})
;return"collection"===(null==n?void 0:n.type)?"2.1.0":t||"0.0.0"}catch(P$){
return console.error(P$),t||"0.0.0"}})();console.info("Data version: "+e)
;let t={collections:Nne("collection"),cookies:Nne("cookie"),
environments:Nne("environment"),requestExamples:Nne("requestExample"),
requests:Nne("request"),securitySchemes:Nne("securityScheme"),
servers:Nne("server"),tags:Nne("tag"),workspaces:Nne("workspace")}
;return t=((e,t)=>{const n=e=>{
const[t,n=0,r=0]=e.split(".").map((e=>parseInt(e,10)));return{major:t,minor:n,
patch:r}},{major:r,minor:o,patch:i}=n(e),{major:a,minor:s,patch:l}=n(t)
;return r<a||!(r>a)&&(o<s||!(o>s)&&i<l)})(e,"2.1.0")?(e=>{
console.info("Performing data migration v-0.0.0 to v-2.1.0");const t={...e,
folders:Nne("folder")},n=e=>e.reduce(((e,r)=>{var o;const i=t.requests[r]
;if(i)e.requestUids.add(r),
null==(o=i.securitySchemeUids)||o.forEach((t=>e.authUids.add(t)));else if(t.folders[r]){
const{requestUids:o,tagUids:i,authUids:a}=n(t.folders[r].childUids??[])
;e.tagUids.add(r),
o.forEach((t=>e.requestUids.add(t))),i.forEach((t=>e.tagUids.add(t))),
a.forEach((t=>e.authUids.add(t)))}return e}),{requestUids:new Set,
tagUids:new Set,authUids:new Set
}),r={},o=Object.values(t.collections??{}).map((e=>{var o,i,a,s,l,c,u
;const{requestUids:d,tagUids:p,authUids:h}=n(e.childUids??[]),f=[...new Set([...h,...Object.values(e.securitySchemeDict??{})])]
;d.forEach((e=>r[e]=f));const m=f.reduce(((e,n)=>{const r=t.securitySchemes[n]
;return r.uid&&(e[n]=(e=>"apiKey"===e.type?{type:"apiKey",name:e.name,
value:e.value??""}:"http"===e.type?{type:"http",username:e.value??"",
password:e.secondValue??"",token:e.value??""
}:"oauth2"===e.type&&"implicit"===e.flow.type?{type:"oauth-implicit",
token:e.flow.token??""}:"oauth2"===e.type&&"password"===e.flow.type?{
type:"oauth-password",token:e.flow.token??"",username:e.flow.value??"",
password:e.flow.secondValue??"",clientSecret:e.flow.clientSecret??""
}:"oauth2"===e.type&&"clientCredentials"===e.flow.type?{
type:"oauth-clientCredentials",token:e.flow.token??"",
clientSecret:e.flow.clientSecret??""
}:"oauth2"===e.type&&"authorizationCode"===e.flow.type?{
type:"oauth-authorizationCode",token:e.flow.token??"",
clientSecret:e.flow.clientSecret??""}:{type:"apiKey",name:"",value:""})(r)),e
}),{});return{type:"collection",
openapi:(null==(o=e.spec)?void 0:o.openapi)||"3.1.0",
info:(null==(i=e.spec)?void 0:i.info)||{title:"OpenAPI Spec",version:"0.0.1"},
security:(null==(a=e.spec)?void 0:a.security)||[],
externalDocs:null==(s=e.spec)?void 0:s.externalDocs,uid:e.uid,securitySchemes:f,
selectedServerUid:e.selectedServerUid||(null==(c=null==(l=e.spec)?void 0:l.serverUids)?void 0:c[0])||"",
servers:(null==(u=e.spec)?void 0:u.serverUids)||[],requests:[...d],tags:[...p],
auth:m,children:e.childUids||[]}
})),i=Object.values(t.cookies??{}),a=Object.values(t.environments??{}).map((e=>({
...e,value:e.raw??""}))),s=Object.values(t.requests??{}).map((e=>{var t,n,o,i,a
;const s=[...Object.values((null==(t=e.parameters)?void 0:t.path)??{}),...Object.values((null==(n=e.parameters)?void 0:n.query)??{}),...Object.values((null==(o=e.parameters)?void 0:o.headers)??{}),...Object.values((null==(i=e.parameters)?void 0:i.cookies)??{})].filter((e=>e)),l=(e.selectedSecuritySchemeUids||[]).filter((t=>r[e.uid].includes(t)))
;return{...e,parameters:s,type:"request",
method:(null==(a=e.method)?void 0:a.toLowerCase())??"get",
examples:e.childUids||[],selectedSecuritySchemeUids:l,selectedServerUid:"",
servers:[]}})),l=Object.values(t.requestExamples??{}).map((e=>({...e,
type:"requestExample"}))),c=e=>{const t={refreshUrl:e.refreshUrl||"",
selectedScopes:e.selectedScopes||[],scopes:e.scopes||{}}
;return"implicit"===e.type?{...e,...t,type:"implicit",
"x-scalar-redirect-uri":("redirectUri"in e?e.redirectUri:"")||""
}:"password"===e.type||"clientCredentials"===e.type?{...e,...t,
tokenUrl:e.tokenUrl||""}:{...e,...t,
"x-scalar-redirect-uri":("redirectUri"in e?e.redirectUri:"")||"",
authorizationUrl:e.authorizationUrl||"",tokenUrl:e.tokenUrl||""}},u=e=>{
switch(null==e?void 0:e.type){case"apiKey":return`${Rd(e.in)}`;case"http":
return`${Rd(e.scheme)} Authentication`;case"oauth2":
return e.flow.type.replace(/([A-Z])/g,(e=>` ${e}`)).replace(/^./,(e=>e.toUpperCase())).trim()
;case"openIdConnect":return"Open ID Connect";default:return"None"}
},d=Object.values(t.securitySchemes??{}).map((e=>"oauth2"===e.type?{...e,
nameKey:u(e),"x-scalar-client-id":e.clientId||"",flow:c(e.flow)}:{...e,
nameKey:u(e)})),p=Object.values(t.servers??{}).map((e=>({...e,
variables:e.variables??{}})));return{collections:o,cookies:i,environments:a,
requestExamples:l,requests:s,securitySchemes:d,servers:p,
tags:Object.values(t.folders??{}).map((e=>({type:"tag",uid:e.uid,
name:e.name||"unknownTag",description:e.description,children:e.childUids||[],
"x-scalar-children":[]}))),workspaces:Object.values(t.workspaces??{}).map((e=>({
...e,description:e.description??"Basic Scalar Workspace",
cookies:e.cookieUids||[],collections:e.collectionUids||[],
environments:e.environmentUids||[]})))}})(t):{
collections:Object.values(t.collections),cookies:Object.values(t.cookies),
environments:Object.values(t.environments),
requestExamples:Object.values(t.requestExamples),
requests:Object.values(t.requests),
securitySchemes:Object.values(t.securitySchemes),
servers:Object.values(t.servers),tags:Object.values(t.tags),
workspaces:Object.values(t.workspaces)},t},Mne=(e,t,n)=>e.forEach((e=>{
const r=Dd(e,t,!1);r&&n(r)
})),Lne=({el:e,appComponent:t,configuration:n={},isReadOnly:r=!1,persistData:o=!0,mountOnInitialize:i=!0,router:a})=>{
const s=hne(a,o);if(localStorage.getItem(Ed)&&!r){const e={};let t=0,n=0,o=""
;for(o in localStorage)Object.prototype.hasOwnProperty.call(localStorage,o)&&(n=2*(localStorage[o].length+o.length),
t+=n,e[o]=(n/1024).toFixed(2)+" KB")
;e.Total=(t/1024).toFixed(2)+" KB",console.table(e),(e=>{
const{collectionMutators:t,cookieMutators:n,environmentMutators:o,tagMutators:i,requestExampleMutators:a,requestMutators:s,serverMutators:l,securitySchemeMutators:c,workspaceMutators:u}=e
;try{
const{collections:e,cookies:r,environments:d,requestExamples:p,requests:h,servers:f,securitySchemes:m,tags:g,workspaces:v}=Ine()
;Mne(e,kte,t.rawAdd),
Mne(r,rne,n.add),Mne(d,one,o.add),Mne(p,Mte,a.rawAdd),Mne(h,Rte,s.rawAdd),
Mne(f,_te,l.rawAdd),Mne(m,fte,c.rawAdd),Mne(g,yte,i.rawAdd),Mne(v,pne,u.rawAdd),
localStorage.setItem(Rne,$ne)}catch(r){console.error(r)}})(s)
}else if(r&&n.spec){const e=pne.parse({uid:"default",name:"Workspace",
isReadOnly:!0,proxyUrl:n.proxyUrl});s.workspaceMutators.rawAdd(e)
}else s.workspaceMutators.add({uid:"default",name:"Workspace",isReadOnly:r,
proxyUrl:n.proxyUrl}),localStorage.setItem(Rne,$ne);const l=Bs(t)
;l.use(a),l.provide("workspace",s)
;const{activeCollection:c,activeWorkspace:u,collectionMutators:d,importSpecFile:p,importSpecFromUrl:h,modalState:f,requests:m,securitySchemes:g,servers:v,workspaceMutators:b}=s,O=(t=e)=>{
t?l.mount(t):console.error("[@scalar/api-client-modal] Could not create the API client.","Invalid HTML element provided.","Read more: https://github.com/scalar/scalar/tree/main/packages/api-client")
}
;return u.value&&(i&&O(),null!=n&&n.proxyUrl&&b.edit(u.value.uid,"proxyUrl",null==n?void 0:n.proxyUrl),
null!=n&&n.themeId&&b.edit(u.value.uid,"themeId",null==n?void 0:n.themeId)),{
app:l,updateConfig(e,t=!0){
t?Object.assign(n??{},e):Cd(n??{},e),e.spec&&p(e.spec)},updateServer:e=>{var t
;const n=Object.values(v).find((t=>t.url===e))
;n&&c.value&&d.edit(null==(t=c.value)?void 0:t.uid,"selectedServerUid",n.uid)},
updateAuth:({nameKey:e,propertyKey:t,value:n})=>{
const r=Object.values(g).find((t=>t.nameKey===e))
;r&&c.value&&d.edit(c.value.uid,`auth.${r.uid}.${t}`,n)},updateSpec:async e=>{
null!=e&&e.url?await h(e.url,null==n?void 0:n.proxyUrl):null!=e&&e.content?await p(null==e?void 0:e.content):console.error("[@scalar/api-client-modal] Could not create the API client.","Please provide an OpenAPI document: { spec: { url: '…' } }","Read more: https://github.com/scalar/scalar/tree/main/packages/api-client")
},route:e=>{
const t=Object.values(m).find((({path:t,method:n})=>t===e.path&&n.toUpperCase()===e.method.toUpperCase()))
;t&&a.push(`/workspace/default/request/${t.uid}`)},open:e=>{if(e){
const t=Object.values(m).find((({path:t,method:n})=>!e||t===e.path&&n.toUpperCase()===e.method.toUpperCase()))
;t&&a.push(`/workspace/default/request/${t.uid}`)}f.open=!0},mount:O,
modalState:f,store:s}},Bne=Object.freeze(Object.defineProperty({__proto__:null,
ApiClientModal:Dne,createApiClientModal:async(e,t={},n=!0)=>{var r,o,i
;const a=Lne({el:e,appComponent:Dne,configuration:t,persistData:!1,
isReadOnly:!0,mountOnInitialize:n,router:w6()
}),{importSpecFile:s,importSpecFromUrl:l}=a.store
;return null!=(r=t.spec)&&r.url?await l(t.spec.url,t.proxyUrl,null==t?void 0:t.servers):null!=(o=t.spec)&&o.content&&await s(null==(i=t.spec)?void 0:i.content,void 0,null==t?void 0:t.servers),
a},createModalRouter:w6,router:y6,useWorkspace:fne},Symbol.toStringTag,{
value:"Module"})),Qne={
class:"flex flex-col min-h-0 flex-1 xl:overflow-hidden md:flex-row leading-3 z-0"
};const jne=mne({},[["render",function(e,t){
return zi(),Wi("div",Qne,[no(e.$slots,"default")])}]]),Une={
class:"border-t-1/2 md:border-t-0 divide divide-y xl:divide-y-0 xl:divide-x-1/2 flex xl:flex-row flex-col custom-scroll pr-0 rounded"
};const Fne=mne({},[["render",function(e,t){
return zi(),Wi("div",Une,[no(e.$slots,"default")])
}]]),qne="An unknown error has occurred.",zne="The URL seems to be invalid. Try adding a valid URL.",Hne="There is an invalid header present, please double check your params.",Zne="File uploads are not saved in history, you must re-upload the file.",Vne="The request has been cancelled",Wne="An error occurred while making the request",Xne="The address bar input seems to be empty. Try adding a URL.",Yne=(e,t=qne)=>(console.error(e),
e instanceof Error?(e.message=Gne(e.message),
e):"string"==typeof e?new Error(Gne(e)):new Error(t)),Gne=e=>"Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'."===e?Zne:"Failed to construct 'URL': Invalid URL"===e?zne:"Failed to execute 'fetch' on 'Window': Invalid name"===e?Hne:e,Kne=e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.toLowerCase().slice(1))).join("-")
/*! js-cookie v3.0.5 | MIT */;function Jne(e){
for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}
return e}var ere=function e(t,n){function r(e,r,o){
if("undefined"!=typeof document){
"number"==typeof(o=Jne({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),
o.expires&&(o.expires=o.expires.toUTCString()),
e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape)
;var i=""
;for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]))
;return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,
get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){
for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){
var i=n[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0])
;if(r[s]=t.read(a,s),e===s)break}catch(P$){}}return e?r[e]:r}},
remove:function(e,t){r(e,"",Jne({},t,{expires:-1}))},withAttributes:function(t){
return e(this.converter,Jne({},this.attributes,t))},withConverter:function(t){
return e(Jne({},this.converter,t),this.attributes)}},{attributes:{
value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){
return'"'===e[0]&&(e=e.slice(1,-1)),
e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){
return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)
}},{path:"/"}),tre={
removeLeadingAndTrailingHTTPWhitespace:e=>e.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,""),
removeTrailingHTTPWhitespace:e=>e.replace(/[ \t\n\r]+$/u,""),
isHTTPWhitespaceChar:e=>" "===e||"\t"===e||"\n"===e||"\r"===e,
solelyContainsHTTPTokenCodePoints:e=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(e),
soleyContainsHTTPQuotedStringTokenCodePoints:e=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(e),
asciiLowercase:e=>e.replace(/[A-Z]/gu,(e=>e.toLowerCase())),
collectAnHTTPQuotedString:(e,t)=>{let n="";for(t++;;){
for(;t<e.length&&'"'!==e[t]&&"\\"!==e[t];)n+=e[t],++t;if(t>=e.length)break
;const r=e[t];if(++t,"\\"!==r)break;if(t>=e.length){n+="\\";break}n+=e[t],++t}
return[n,t]}}
;const{asciiLowercase:nre,solelyContainsHTTPTokenCodePoints:rre,soleyContainsHTTPQuotedStringTokenCodePoints:ore}=tre
;var ire=class{constructor(e){this._map=e}get size(){return this._map.size}
get(e){return e=nre(String(e)),this._map.get(e)}has(e){
return e=nre(String(e)),this._map.has(e)}set(e,t){
if(e=nre(String(e)),t=String(t),
!rre(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`)
;if(!ore(t))throw new Error(`Invalid MIME type parameter value "${t}": only HTTP quoted-string token code points are valid.`)
;return this._map.set(e,t)}clear(){this._map.clear()}delete(e){
return e=nre(String(e)),this._map.delete(e)}forEach(e,t){this._map.forEach(e,t)}
keys(){return this._map.keys()}values(){return this._map.values()}entries(){
return this._map.entries()}[Symbol.iterator](){
return this._map[Symbol.iterator]()}}
;const{removeLeadingAndTrailingHTTPWhitespace:are,removeTrailingHTTPWhitespace:sre,isHTTPWhitespaceChar:lre,solelyContainsHTTPTokenCodePoints:cre,soleyContainsHTTPQuotedStringTokenCodePoints:ure,asciiLowercase:dre,collectAnHTTPQuotedString:pre}=tre
;const{solelyContainsHTTPTokenCodePoints:hre}=tre;const fre=ire,mre=e=>{e=are(e)
;let t=0,n="";for(;t<e.length&&"/"!==e[t];)n+=e[t],++t
;if(0===n.length||!cre(n))return null;if(t>=e.length)return null;++t;let r=""
;for(;t<e.length&&";"!==e[t];)r+=e[t],++t
;if(r=sre(r),0===r.length||!cre(r))return null;const o={type:dre(n),
subtype:dre(r),parameters:new Map};for(;t<e.length;){for(++t;lre(e[t]);)++t
;let n="";for(;t<e.length&&";"!==e[t]&&"="!==e[t];)n+=e[t],++t
;if(n=dre(n),t<e.length){if(";"===e[t])continue;++t}let r=null
;if('"'===e[t])for([r,t]=pre(e,t);t<e.length&&";"!==e[t];)++t;else{
for(r="";t<e.length&&";"!==e[t];)r+=e[t],++t;if(r=sre(r),""===r)continue}
n.length>0&&cre(n)&&ure(r)&&!o.parameters.has(n)&&o.parameters.set(n,r)}return o
},gre=e=>{let t=`${e.type}/${e.subtype}`;if(0===e.parameters.size)return t
;for(let[n,r]of e.parameters)t+=";",
t+=n,t+="=",hre(r)&&0!==r.length||(r=r.replace(/(["\\])/gu,"\\$1"),
r=`"${r}"`),t+=r;return t
},{asciiLowercase:vre,solelyContainsHTTPTokenCodePoints:bre}=tre
;const Ore=Jf(class{constructor(e){e=String(e);const t=mre(e)
;if(null===t)throw new Error(`Could not parse MIME type string "${e}"`)
;this._type=t.type,
this._subtype=t.subtype,this._parameters=new fre(t.parameters)}static parse(e){
try{return new this(e)}catch(P$){return null}}get essence(){
return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){
if(0===(e=vre(String(e))).length)throw new Error("Invalid type: must be a non-empty string")
;if(!bre(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`)
;this._type=e}get subtype(){return this._subtype}set subtype(e){
if(0===(e=vre(String(e))).length)throw new Error("Invalid subtype: must be a non-empty string")
;if(!bre(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`)
;this._subtype=e}get parameters(){return this._parameters}toString(){
return gre(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){
case"text":switch(this._subtype){case"ecmascript":case"javascript":
case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":
case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":
case"x-ecmascript":case"x-javascript":return!e||0===this._parameters.size
;default:return!1}case"application":switch(this._subtype){case"ecmascript":
case"javascript":case"x-ecmascript":case"x-javascript":
return!e||0===this._parameters.size;default:return!1}default:return!1}}isXML(){
return"xml"===this._subtype&&("text"===this._type||"application"===this._type)||this._subtype.endsWith("+xml")
}isHTML(){return"html"===this._subtype&&"text"===this._type}
}),yre=gK(Symbol()),wre={"application/epub+zip":{extension:".epub"},
"application/gzip":{extension:".gz"},"application/java-archive":{
extension:".jar"},"application/javascript":{extension:".js",raw:!0},
"application/json":{extension:".json",raw:!0,language:"json"},
"application/ld+json":{extension:".jsonld",raw:!0,language:"json"},
"application/problem+json":{extension:".json",raw:!0,language:"json"},
"application/msword":{extension:".doc"},"application/octet-stream":{
extension:".bin"},"application/ogg":{extension:".ogx"},"application/pdf":{
extension:".pdf",preview:"object"},"application/rtf":{extension:".rtf",raw:!0},
"application/vnd.amazon.ebook":{extension:".azw"},
"application/vnd.apple.installer+xml":{extension:".mpkg",raw:!0,language:"xml"},
"application/vnd.mozilla.xul+xml":{extension:".xul",raw:!0,language:"xml"},
"application/vnd.ms-excel":{extension:".xls"},"application/vnd.ms-fontobject":{
extension:".eot"},"application/vnd.ms-powerpoint":{extension:".ppt"},
"application/vnd.oasis.opendocument.presentation":{extension:".odp"},
"application/vnd.oasis.opendocument.spreadsheet":{extension:".ods"},
"application/vnd.oasis.opendocument.text":{extension:".odt"},
"application/vnd.openxmlformats-officedocument.presentationml.presentation":{
extension:".pptx"},
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{
extension:".xlsx"},
"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{
extension:".docx"},"application/vnd.rar":{extension:".rar"},
"application/vnd.visio":{extension:".vsd"},"application/x-7z-compressed":{
extension:".7z"},"application/x-abiword":{extension:".abw"},
"application/x-bzip":{extension:".bz"},"application/x-bzip2":{extension:".bz2"},
"application/x-cdf":{extension:".cda"},"application/x-csh":{extension:".csh"},
"application/x-freearc":{extension:".arc"},"application/x-httpd-php":{
extension:".php",raw:!0},"application/x-sh":{extension:".sh",raw:!0},
"application/x-tar":{extension:".tar"},"application/xhtml+xml":{
extension:".xhtml",raw:!0,language:"html"},"application/xml":{extension:".xml",
raw:!0,language:"xml"},"application/yaml":{extension:".yaml",raw:!0,
language:"yaml"},"application/zip":{extension:".zip"},"audio/aac":{
extension:".aac"},"audio/midi":{extension:".midi"},"audio/mpeg":{
extension:".mp3",preview:"audio"},"audio/ogg":{extension:".oga"},"audio/wav":{
extension:".wav"},"audio/webm":{extension:".weba"},"font/otf":{extension:".otf"
},"font/ttf":{extension:".ttf"},"font/woff":{extension:".woff"},"font/woff2":{
extension:".woff2"},"image/apng":{extension:".apng",preview:"image",alpha:!0},
"image/avif":{extension:".avif",preview:"image"},"image/bmp":{extension:".bmp",
preview:"image"},"image/gif":{extension:".gif",preview:"image",alpha:!0},
"image/jpeg":{extension:".jpg",preview:"image"},"image/png":{extension:".png",
preview:"image",alpha:!0},"image/svg+xml":{extension:".svg",raw:!0,
language:"xml",preview:"image",alpha:!0},"image/tiff":{extension:".tiff"},
"image/vnd.microsoft.icon":{extension:".ico",preview:"image"},"image/webp":{
extension:".webp",preview:"image",alpha:!0},"text/calendar":{extension:".ics",
raw:!0},"text/css":{extension:".css",raw:!0,language:"css"},"text/csv":{
extension:".csv",raw:!0},"text/html":{extension:".html",raw:!0,language:"html",
preview:"object"},"text/javascript":{extension:".js",raw:!0},"text/plain":{
extension:".txt",raw:!0},"text/xml":{extension:".xml",raw:!0,language:"xml"},
"text/yaml":{extension:".yaml",raw:!0,language:"yaml"},"video/3gpp":{
extension:".3gp"},"audio/3gpp":{extension:".3gp"},"video/3gpp2":{
extension:".3g2"},"audio/3gpp2":{extension:".3g2"},"video/mp2t":{extension:".ts"
},"video/mp4":{extension:".mp4",preview:"video"},"video/mpeg":{extension:".mpeg"
},"video/ogg":{extension:".ogv"},"video/webm":{extension:".webm",preview:"video"
},"video/x-msvideo":{extension:".avi"}
},xre=Object.entries(wre).filter((([,e])=>null==e?void 0:e.raw)).map((([e])=>e))
;const kre=({request:e,auth:t,example:n,server:r,securitySchemes:o,proxy:i,environment:a,globalCookies:s})=>{
try{
const l=a??{},c=new AbortController,u=n.parameters.path.reduce(((e,t)=>(t.enabled&&(e[t.key]=N8(t.value,l)),
e)),{}),d=N8((null==r?void 0:r.url)??"",l),p=N8(e.path,u);let h=d||p
;if(!h)throw Xne;const f=function(e,t){const n=new URLSearchParams
;return e.parameters.query.forEach((e=>{e.enabled&&n.append(e.key,N8(e.value,t))
})),n}(n,l),m=function(e,t){const n={};return e.parameters.headers.forEach((e=>{
const r=e.key.toLowerCase()
;e.enabled&&("content-type"!==r||"multipart/form-data"!==e.value)&&(n[r]=N8(e.value,t))
})),n}(n,l),{body:g}=function(e,t,n){var r,o,i;if(!fd(e))return{body:void 0,
contentType:void 0};if("formData"===t.body.activeBody&&t.body.formData){
const e="form-data"===t.body.formData.encoding?"multipart/form-data":"application/x-www-form-urlencoded",r="form-data"===t.body.formData.encoding?new FormData:new URLSearchParams
;return t.body.formData.value.forEach((e=>{
!e.enabled||!e.key||(e.file&&r instanceof FormData?r.append(e.key,e.file,e.file.name):void 0!==e.value&&r.append(e.key,N8(e.value,n)))
})),{body:r,contentType:e}}return"raw"===t.body.activeBody?{
body:N8((null==(r=t.body.raw)?void 0:r.value)??"",n),
contentType:null==(o=t.body.raw)?void 0:o.encoding
}:"binary"===t.body.activeBody?{body:t.body.binary,
contentType:null==(i=t.body.binary)?void 0:i.type}:{body:void 0,
contentType:void 0}
}(e.method,n,l),{cookieParams:v}=function({example:e,env:t,globalCookies:n,domain:r,proxy:o}){
let i;try{i=new URL(o||r).host}catch{typeof window<"u"&&(i=window.location.host)
}const a={domain:i,sameSite:"None",secure:!0},s=ere.get()
;return Object.keys(s).forEach((e=>ere.remove(e))),
e.parameters.cookies.forEach((e=>{e.enabled&&ere.set(e.key,N8(e.value,t))
})),n.forEach((e=>{var t;const{name:n,value:o,...a}=e
;(a.domain===r||(null==(t=a.domain)?void 0:t.startsWith("."))&&r.endsWith(a.domain??""))&&ere.set(n,o,{
domain:i,path:a.path,expires:a.expires?new Date(a.expires):void 0,
httpOnly:a.httpOnly,secure:a.secure})})),{cookieParams:a}}({example:n,env:l,
globalCookies:s,domain:h,proxy:i})
;return e.selectedSecuritySchemeUids.forEach((e=>{const n=t[e],r=o[e];if(n&&r){
if("apiKey"===r.type&&"apiKey"===n.type){const e=N8(n.value,l)
;"header"===r.in&&(m[n.name]=e),
"query"===r.in&&f.append(n.name,e),"cookie"===r.in&&ere.set(n.name,e)}
if("http"===r.type&&"http"===n.type)if("basic"===r.scheme){
const e=N8(n.username,l),t=N8(n.password,l),r=t?`${e}:${t}`:e
;m.Authorization=`Basic ${btoa(r)}`}else{const e=N8(n.token,l)
;m.Authorization=`Bearer ${e}`}
"oauth2"===r.type&&n.type.includes("oauth")&&"token"in n&&(n.token||console.error("OAuth token was not created"),
m.Authorization=`Bearer ${n.token}`)}})),[null,{sendRequest:async()=>{
yre.emit("start");const t=Date.now();try{if(h&&(!el(h)||typeof window<"u")){
const e=el(h)?window.location.origin+h:h,t=new URL(e),n=new URL(p,t.origin),o=new URL(t)
;null!=r&&r.url&&("/"===t.pathname?o.pathname=p:o.pathname=t.pathname+p),
o.search=new URLSearchParams([...t.searchParams,...n.searchParams,...f]).toString(),
h=o.toString()}
const o=new URLSearchParams([["scalar_url",h.toString()]]),a=tl(i,h)?`${i}?${o.toString()}`:h,s=await fetch(a,{
signal:c.signal,method:e.method,body:g,headers:m});yre.emit("stop")
;const l=((e,t=!1)=>{var n,r;const o=Object.fromEntries(e)
;t&&["Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers"].map((e=>e.toLowerCase())).forEach((e=>delete o[e]))
;const i=Object.keys(o).find((e=>"x-scalar-modified-headers"===e.toLowerCase())),a=i?(null==(r=null==(n=o[i])?void 0:n.toString().split(", "))?void 0:r.map((e=>e.toLowerCase())))??[]:[]
;return Object.keys(o).forEach((e=>{a.includes(e.toLowerCase())&&delete o[e]})),
i&&delete o[i],Object.keys(o).forEach((e=>{const t=/^x-scalar-original-/i
;if(t.test(e)){const n=e.replace(t,"");o[n]=o[e],delete o[e]}
})),Object.keys(o).forEach((e=>{const t=Kne(e);e!==t&&(o[t]=o[e],delete o[e])
})),Object.fromEntries(Object.entries(o).sort((([e],[t])=>e.localeCompare(t))))
})(s.headers,tl(i,h)),u=s.headers.get("content-type")??"text/plain;charset=UTF-8",d=function(e,t){
const n=new Ore(t);if(xre.includes(n.essence)){
const t=new TextDecoder(n.parameters.get("charset")).decode(e)
;return"json"===n.subtype?JSON.parse(t):t}return new Blob([e],{type:n.essence})
}(await s.arrayBuffer(),u),v="getSetCookie"in s.headers&&"function"==typeof s.headers.getSetCookie?s.headers.getSetCookie():[]
;return[null,{timestamp:Date.now(),request:n,response:{...s,headers:l,
cookieHeaderKeys:v,data:d,duration:Date.now()-t,method:e.method,status:s.status,
path:p}}]}catch(o){return yre.emit("abort"),[Yne(o,Wne),null]}},controller:c}]
}catch(P$){return yre.emit("abort"),[Yne(P$),null]}},Sre={
class:"fade-request-section-content sticky top-0 z-10 pointer-events-none"
},_re={
class:"request-section-content request-section-content-filter bg-b-1 border-1/2 text-c-3 bg-b-1 mb-2.5 hidden xl:flex justify-center rounded p-[1.5px] text-xs gap-[1.5px] pointer-events-auto"
},Ere=["isActive","onClick"],Tre=eo({__name:"ContextBar",props:{sections:{},
activeSection:{}},emits:["setActiveSection"],
setup:e=>(e,t)=>(zi(),Wi("div",Sre,[ea("div",_re,[(zi(!0),
Wi(Bi,null,Kr(e.sections,(t=>(zi(),Wi("button",{key:t,
class:et(["hover:bg-b-2 w-full rounded p-1 text-center font-medium",[e.activeSection===t?"bg-b-2 text-c-1  pointer-events-none":""]]),
isActive:e.activeSection===t,type:"button",
onClick:n=>e.$emit("setActiveSection",t)},st(t),11,Ere)))),128))])]))
}),Cre=mne(Tre,[["__scopeId","data-v-200b65e3"]]),Are=["aria-labelledby"],Pre=["id"],Dre=eo({
__name:"ViewLayoutSection",setup(e){const t=CZ()
;return(e,n)=>(zi(),Wi("section",{"aria-labelledby":Fn(t),
class:"flex xl:min-w-0 xl:flex-1 flex-col xl:custom-scroll bg-b-1"},[ea("div",{
id:Fn(t),
class:"xl:min-h-header flex items-center border-b-1/2 p-2 md:px-4 md:py-2.5 xl:pl-6 xl:pr-5 text-sm font-medium sticky top-0 bg-b-1 z-20 rounded-t xl:rounded-none"
},[no(e.$slots,"title")],8,Pre),no(e.$slots,"default")],8,Are))}});class $re{
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]=Ure(this,e,t);let r=[]
;return this.decompose(0,e,r,2),
n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),
Nre.from(r,this.length-(t-e)+n.length)}append(e){
return this.replace(this.length,this.length,e)}slice(e,t=this.length){
[e,t]=Ure(this,e,t);let n=[];return this.decompose(e,t,n,0),Nre.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),r=new Lre(this),o=new Lre(e)
;for(let i=t,a=t;;){
if(r.next(i),o.next(i),i=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1
;if(a+=r.value.length,r.done||a>=n)return!0}}iter(e=1){return new Lre(this,e)}
iterRange(e,t=this.length){return new Bre(this,e,t)}iterLines(e,t){let n
;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from
;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))
}return new Qre(n)}toString(){return this.sliceString(0)}toJSON(){let e=[]
;return this.flatten(e),e}constructor(){}static of(e){
if(0==e.length)throw new RangeError("A document must have at least one line")
;return 1!=e.length||e[0]?e.length<=32?new Rre(e):Nre.from(Rre.split(e,[])):$re.empty
}}class Rre extends $re{constructor(e,t=function(e){let t=-1
;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}
get lines(){return this.text.length}get children(){return null}
lineInner(e,t,n,r){for(let o=0;;o++){let i=this.text[o],a=r+i.length
;if((t?n:a)>=e)return new jre(r,a,n,i);r=a+1,n++}}decompose(e,t,n,r){
let o=e<=0&&t>=this.length?this:new Rre(Mre(this.text,e,t),Math.min(t,this.length)-Math.max(0,e))
;if(1&r){let e=n.pop(),t=Ire(o.text,e.text.slice(),0,o.length)
;if(t.length<=32)n.push(new Rre(t,e.length+o.length));else{let e=t.length>>1
;n.push(new Rre(t.slice(0,e)),new Rre(t.slice(e)))}}else n.push(o)}
replace(e,t,n){if(!(n instanceof Rre))return super.replace(e,t,n)
;[e,t]=Ure(this,e,t)
;let r=Ire(this.text,Ire(n.text,Mre(this.text,0,e)),t),o=this.length+n.length-(t-e)
;return r.length<=32?new Rre(r,o):Nre.from(Rre.split(r,[]),o)}
sliceString(e,t=this.length,n="\n"){[e,t]=Ure(this,e,t);let r=""
;for(let o=0,i=0;o<=t&&i<this.text.length;i++){let a=this.text[i],s=o+a.length
;o>e&&i&&(r+=n),e<s&&t>o&&(r+=a.slice(Math.max(0,e-o),t-o)),o=s+1}return r}
flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}
static split(e,t){let n=[],r=-1
;for(let o of e)n.push(o),r+=o.length+1,32==n.length&&(t.push(new Rre(n,r)),
n=[],r=-1);return r>-1&&t.push(new Rre(n,r)),t}}class Nre extends $re{
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,r){for(let o=0;;o++){
let i=this.children[o],a=r+i.length,s=n+i.lines-1
;if((t?s:a)>=e)return i.lineInner(e,t,n,r);r=a+1,n=s+1}}decompose(e,t,n,r){
for(let o=0,i=0;i<=t&&o<this.children.length;o++){
let a=this.children[o],s=i+a.length;if(e<=s&&t>=i){
let o=r&((i<=e?1:0)|(s>=t?2:0))
;i>=e&&s<=t&&!o?n.push(a):a.decompose(e-i,t-i,n,o)}i=s+1}}replace(e,t,n){
if([e,t]=Ure(this,e,t),
n.lines<this.lines)for(let r=0,o=0;r<this.children.length;r++){
let i=this.children[r],a=o+i.length;if(e>=o&&t<=a){
let s=i.replace(e-o,t-o,n),l=this.lines-i.lines+s.lines
;if(s.lines<l>>4&&s.lines>l>>6){let o=this.children.slice()
;return o[r]=s,new Nre(o,this.length-(t-e)+n.length)}return super.replace(o,a,s)
}o=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){
[e,t]=Ure(this,e,t);let r="";for(let o=0,i=0;o<this.children.length&&i<=t;o++){
let a=this.children[o],s=i+a.length
;i>e&&o&&(r+=n),e<s&&t>i&&(r+=a.sliceString(e-i,t-i,n)),i=s+1}return r}
flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){
if(!(e instanceof Nre))return 0
;let n=0,[r,o,i,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1]
;for(;;r+=t,o+=t){if(r==i||o==a)return n;let s=this.children[r],l=e.children[o]
;if(s!=l)return n+s.scanIdentical(l,t);n+=s.length+1}}
static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0
;for(let p of e)n+=p.lines;if(n<32){let n=[];for(let t of e)t.flatten(n)
;return new Rre(n,t)}let r=Math.max(32,n>>5),o=r<<1,i=r>>1,a=[],s=0,l=-1,c=[]
;function u(e){let t
;if(e.lines>o&&e instanceof Nre)for(let n of e.children)u(n);else e.lines>i&&(s>i||!s)?(d(),
a.push(e)):e instanceof Rre&&s&&(t=c[c.length-1])instanceof Rre&&e.lines+t.lines<=32?(s+=e.lines,
l+=e.length+1,
c[c.length-1]=new Rre(t.text.concat(e.text),t.length+1+e.length)):(s+e.lines>r&&d(),
s+=e.lines,l+=e.length+1,c.push(e))}function d(){
0!=s&&(a.push(1==c.length?c[0]:Nre.from(c,l)),l=-1,s=c.length=0)}
for(let p of e)u(p);return d(),1==a.length?a[0]:new Nre(a,t)}}
function Ire(e,t,n=0,r=1e9){for(let o=0,i=0,a=!0;i<e.length&&o<=r;i++){
let s=e[i],l=o+s.length
;l>=n&&(l>r&&(s=s.slice(0,r-o)),o<n&&(s=s.slice(n-o)),a?(t[t.length-1]+=s,
a=!1):t.push(s)),o=l+1}return t}function Mre(e,t,n){return Ire(e,[""],t,n)}
$re.empty=new Rre([""],0);class Lre{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 Rre?e.text.length:e.children.length)<<1]
}nextInner(e,t){for(this.done=this.lineBreak=!1;;){
let n=this.nodes.length-1,r=this.nodes[n],o=this.offsets[n],i=o>>1,a=r instanceof Rre?r.text.length:r.children.length
;if(i==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this
;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()
}else if((1&o)==(t>0?0:1)){
if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--
}else if(r instanceof Rre){let o=r.text[i+(t<0?-1:0)]
;if(this.offsets[n]+=t,o.length>Math.max(0,e))return this.value=0==e?o:t>0?o.slice(e):o.slice(0,o.length-e),
this;e-=o.length}else{let o=r.children[i+(t<0?-1:0)]
;e>o.length?(e-=o.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,
this.nodes.push(o),
this.offsets.push(t>0?1:(o instanceof Rre?o.text.length:o.children.length)<<1))}
}}next(e=0){
return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)
}}class Bre{constructor(e,t,n){
this.value="",this.done=!1,this.cursor=new Lre(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:r}=this.cursor.next(e)
;return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.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 Qre{constructor(e){
this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){
let{done:t,lineBreak:n,value:r}=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=r,this.afterBreak=!1),this}get lineBreak(){return!1}}
"undefined"!=typeof Symbol&&($re.prototype[Symbol.iterator]=function(){
return this.iter()
},Lre.prototype[Symbol.iterator]=Bre.prototype[Symbol.iterator]=Qre.prototype[Symbol.iterator]=function(){
return this});class jre{constructor(e,t,n,r){
this.from=e,this.to=t,this.number=n,this.text=r}get length(){
return this.to-this.from}}function Ure(e,t,n){
return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}
let Fre="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((e=>e?parseInt(e,36):1))
;for(let y_e=1;y_e<Fre.length;y_e++)Fre[y_e]+=Fre[y_e-1];function qre(e){
for(let t=1;t<Fre.length;t+=2)if(Fre[t]>e)return Fre[t-1]<=e;return!1}
function zre(e){return e>=127462&&e<=127487}const Hre=8205
;function Zre(e,t,n=!0,r=!0){return(n?Vre:Wre)(e,t,r)}function Vre(e,t,n){
if(t==e.length)return t;t&&Xre(e.charCodeAt(t))&&Yre(e.charCodeAt(t-1))&&t--
;let r=Gre(e,t);for(t+=Jre(r);t<e.length;){let o=Gre(e,t)
;if(r==Hre||o==Hre||n&&qre(o))t+=Jre(o),r=o;else{if(!zre(o))break;{let n=0,r=t-2
;for(;r>=0&&zre(Gre(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}
function Wre(e,t,n){for(;t>0;){let r=Vre(e,t-2,n);if(r<t)return r;t--}return 0}
function Xre(e){return e>=56320&&e<57344}function Yre(e){
return e>=55296&&e<56320}function Gre(e,t){let n=e.charCodeAt(t)
;if(!Yre(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1)
;return Xre(r)?r-56320+(n-55296<<10)+65536:n}function Kre(e){
return e<=65535?String.fromCharCode(e):(e-=65536,
String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function Jre(e){
return e<65536?1:2}const eoe=/\r\n?|\n/;var toe=function(e){
return e[e.Simple=0]="Simple",
e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",
e[e.TrackAfter=3]="TrackAfter",e}(toe||(toe={}));class noe{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 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}
iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){
let o=this.sections[t++],i=this.sections[t++];i<0?(e(n,r,o),r+=o):r+=i,n+=o}}
iterChangedRanges(e,t=!1){aoe(this,e,t)}get invertedDesc(){let e=[]
;for(let t=0;t<this.sections.length;){
let n=this.sections[t++],r=this.sections[t++];r<0?e.push(n,r):e.push(r,n)}
return new noe(e)}composeDesc(e){return this.empty?e:e.empty?this:loe(this,e)}
mapDesc(e,t=!1){return e.empty?this:soe(this,e,t)}mapPos(e,t=-1,n=toe.Simple){
let r=0,o=0;for(let i=0;i<this.sections.length;){
let a=this.sections[i++],s=this.sections[i++],l=r+a;if(s<0){
if(l>e)return o+(e-r);o+=a}else{
if(n!=toe.Simple&&l>=e&&(n==toe.TrackDel&&r<e&&l>e||n==toe.TrackBefore&&r<e||n==toe.TrackAfter&&l>e))return null
;if(l>e||l==e&&t<0&&!a)return e==r||t<0?o:o+s;o+=s}r=l}
if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`)
;return o}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){
let o=r+this.sections[n++]
;if(this.sections[n++]>=0&&r<=t&&o>=e)return!(r<e&&o>t)||"cover";r=o}return!1}
toString(){let e="";for(let t=0;t<this.sections.length;){
let n=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}
return e}toJSON(){return this.sections}static fromJSON(e){
if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc")
;return new noe(e)}static create(e){return new noe(e)}}class roe extends noe{
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 aoe(this,((t,n,r,o,i)=>e=e.replace(r,r+(n-t),i)),!1),e}mapDesc(e,t=!1){
return soe(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[]
;for(let r=0,o=0;r<t.length;r+=2){let i=t[r],a=t[r+1];if(a>=0){t[r]=a,t[r+1]=i
;let s=r>>1;for(;n.length<s;)n.push($re.empty)
;n.push(i?e.slice(o,o+i):$re.empty)}o+=i}return new roe(t,n)}compose(e){
return this.empty?e:e.empty?this:loe(this,e,!0)}map(e,t=!1){
return e.empty?this:soe(this,e,t,!0)}iterChanges(e,t=!1){aoe(this,e,t)}
get desc(){return noe.create(this.sections)}filter(e){
let t=[],n=[],r=[],o=new coe(this);e:for(let i=0,a=0;;){
let s=i==e.length?1e9:e[i++];for(;a<s||a==s&&0==o.len;){if(o.done)break e
;let e=Math.min(o.len,s-a);ooe(r,e,-1);let i=-1==o.ins?-1:0==o.off?o.ins:0
;ooe(t,e,i),i>0&&ioe(n,t,o.text),o.forward(e),a+=e}let l=e[i++];for(;a<l;){
if(o.done)break e;let e=Math.min(o.len,l-a)
;ooe(t,e,-1),ooe(r,e,-1==o.ins?-1:0==o.off?o.ins:0),o.forward(e),a+=e}}return{
changes:new roe(t,n),filtered:noe.create(r)}}toJSON(){let e=[]
;for(let t=0;t<this.sections.length;t+=2){
let n=this.sections[t],r=this.sections[t+1]
;r<0?e.push(n):0==r?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))
}return e}static of(e,t,n){let r=[],o=[],i=0,a=null;function s(e=!1){
if(!e&&!r.length)return;i<t&&ooe(r,t-i,-1);let n=new roe(r,o)
;a=a?a.compose(n.map(a)):n,r=[],o=[],i=0}return function e(l){
if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof roe){
if(l.length!=t)throw new RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`)
;s(),a=a?a.compose(l.map(a)):l}else{let{from:e,to:a=e,insert:c}=l
;if(e>a||e<0||a>t)throw new RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`)
;let u=c?"string"==typeof c?$re.of(c.split(n||eoe)):c:$re.empty,d=u.length
;if(e==a&&0==d)return;e<i&&s(),e>i&&ooe(r,e-i,-1),ooe(r,a-e,d),ioe(o,r,u),i=a}
}(e),s(!a),a}static empty(e){return new roe(e?[e,-1]:[],[])}static fromJSON(e){
if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet")
;let t=[],n=[];for(let r=0;r<e.length;r++){let o=e[r]
;if("number"==typeof o)t.push(o,-1);else{
if(!Array.isArray(o)||"number"!=typeof o[0]||o.some(((e,t)=>t&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet")
;if(1==o.length)t.push(o[0],0);else{for(;n.length<r;)n.push($re.empty)
;n[r]=$re.of(o.slice(1)),t.push(o[0],n[r].length)}}}return new roe(t,n)}
static createSet(e,t){return new roe(e,t)}}function ooe(e,t,n,r=!1){
if(0==t&&n<=0)return;let o=e.length-2
;o>=0&&n<=0&&n==e[o+1]?e[o]+=t:0==t&&0==e[o]?e[o+1]+=n:r?(e[o]+=t,
e[o+1]+=n):e.push(t,n)}function ioe(e,t,n){if(0==n.length)return
;let r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{
for(;e.length<r;)e.push($re.empty);e.push(n)}}function aoe(e,t,n){
let r=e.inserted;for(let o=0,i=0,a=0;a<e.sections.length;){
let s=e.sections[a++],l=e.sections[a++];if(l<0)o+=s,i+=s;else{
let c=o,u=i,d=$re.empty
;for(;c+=s,u+=l,l&&r&&(d=d.append(r[a-2>>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)s=e.sections[a++],
l=e.sections[a++];t(o,c,i,u,d),o=c,i=u}}}function soe(e,t,n,r=!1){
let o=[],i=r?[]:null,a=new coe(e),s=new coe(t)
;for(let l=-1;;)if(-1==a.ins&&-1==s.ins){let e=Math.min(a.len,s.len)
;ooe(o,e,-1),a.forward(e),s.forward(e)
}else if(s.ins>=0&&(a.ins<0||l==a.i||0==a.off&&(s.len<a.len||s.len==a.len&&!n))){
let e=s.len;for(ooe(o,s.ins,-1);e;){let t=Math.min(a.len,e)
;a.ins>=0&&l<a.i&&a.len<=t&&(ooe(o,0,a.ins),
i&&ioe(i,o,a.text),l=a.i),a.forward(t),e-=t}s.next()}else{if(!(a.ins>=0)){
if(a.done&&s.done)return i?roe.createSet(o,i):noe.create(o)
;throw new Error("Mismatched change set lengths")}{let e=0,t=a.len
;for(;t;)if(-1==s.ins){let n=Math.min(t,s.len);e+=n,t-=n,s.forward(n)}else{
if(!(0==s.ins&&s.len<t))break;t-=s.len,s.next()}
ooe(o,e,l<a.i?a.ins:0),i&&l<a.i&&ioe(i,o,a.text),l=a.i,a.forward(a.len-t)}}}
function loe(e,t,n=!1){let r=[],o=n?[]:null,i=new coe(e),a=new coe(t)
;for(let s=!1;;){if(i.done&&a.done)return o?roe.createSet(r,o):noe.create(r)
;if(0==i.ins)ooe(r,i.len,0,s),i.next();else if(0!=a.len||a.done){
if(i.done||a.done)throw new Error("Mismatched change set lengths");{
let e=Math.min(i.len2,a.len),t=r.length;if(-1==i.ins){
let t=-1==a.ins?-1:a.off?0:a.ins;ooe(r,e,t,s),o&&t&&ioe(o,r,a.text)
}else-1==a.ins?(ooe(r,i.off?0:i.len,e,s),
o&&ioe(o,r,i.textBit(e))):(ooe(r,i.off?0:i.len,a.off?0:a.ins,s),
o&&!a.off&&ioe(o,r,a.text))
;s=(i.ins>e||a.ins>=0&&a.len>e)&&(s||r.length>t),i.forward2(e),a.forward(e)}
}else ooe(r,0,a.ins,s),o&&ioe(o,r,a.text),a.next()}}class coe{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-2==this.ins}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?$re.empty:e[t]}
textBit(e){let{inserted:t}=this.set,n=this.i-2>>1
;return n>=t.length&&!e?$re.empty:t[n].slice(this.off,null==e?void 0:this.off+e)
}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){
-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}
class uoe{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){
return 32&this.flags?this.to:this.from}get head(){
return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}
get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){
let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6
;return 16777215==e?void 0:e}map(e,t=-1){let n,r
;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),
r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new uoe(n,r,this.flags)}
extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return doe.range(e,t)
;let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t
;return doe.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||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange")
;return doe.range(e.anchor,e.head)}static create(e,t,n){return new uoe(e,t,n)}}
class doe{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){
return e.empty?this:doe.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 1==this.ranges.length?this:new doe([this.main],0)}addRange(e,t=!0){
return doe.create([e].concat(this.ranges),t?0:this.mainIndex+1)}
replaceRange(e,t=this.mainIndex){let n=this.ranges.slice()
;return n[t]=e,doe.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)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection")
;return new doe(e.ranges.map((e=>uoe.fromJSON(e))),e.main)}static single(e,t=e){
return new doe([doe.range(e,t)],0)}static create(e,t=0){
if(0==e.length)throw new RangeError("A selection needs at least one range")
;for(let n=0,r=0;r<e.length;r++){let o=e[r]
;if(o.empty?o.from<=n:o.from<n)return doe.normalized(e.slice(),t);n=o.to}
return new doe(e,t)}static cursor(e,t=0,n,r){
return uoe.create(e,e,(0==t?0:t<0?8:16)|(null==n?7:Math.min(6,n))|(null!=r?r:16777215)<<6)
}static range(e,t,n,r){let o=(null!=n?n:16777215)<<6|(null==r?7:Math.min(6,r))
;return t<e?uoe.create(t,e,48|o):uoe.create(e,t,(t>e?8:0)|o)}
static normalized(e,t=0){let n=e[t]
;e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let r=1;r<e.length;r++){
let n=e[r],o=e[r-1];if(n.empty?n.from<=o.to:n.from<o.to){
let i=o.from,a=Math.max(n.to,o.to)
;r<=t&&t--,e.splice(--r,2,n.anchor>n.head?doe.range(a,i):doe.range(i,a))}}
return new doe(e,t)}}function poe(e,t){
for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")
}let hoe=0;class foe{constructor(e,t,n,r,o){
this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=hoe++,
this.default=e([]),this.extensions="function"==typeof o?o(this):o}get reader(){
return this}static define(e={}){
return new foe(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:moe),!!e.static,e.enables)
}of(e){return new goe([],this,0,e)}compute(e,t){
if(this.isStatic)throw new Error("Can't compute a static facet")
;return new goe(e,this,1,t)}computeN(e,t){
if(this.isStatic)throw new Error("Can't compute a static facet")
;return new goe(e,this,2,t)}from(e,t){
return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function moe(e,t){
return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class goe{
constructor(e,t,n,r){
this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=hoe++}
dynamicSlot(e){var t
;let n=this.value,r=this.facet.compareInput,o=this.id,i=e[o]>>1,a=2==this.type,s=!1,l=!1,c=[]
;for(let u of this.dependencies)"doc"==u?s=!0:"selection"==u?l=!0:1&(null!==(t=e[u.id])&&void 0!==t?t:1)||c.push(e[u.id])
;return{create:e=>(e.values[i]=n(e),1),update(e,t){
if(s&&t.docChanged||l&&(t.docChanged||t.selection)||boe(e,c)){let t=n(e)
;if(a?!voe(t,e.values[i],r):!r(t,e.values[i]))return e.values[i]=t,1}return 0},
reconfigure:(e,t)=>{let s,l=t.config.address[o];if(null!=l){let o=Roe(t,l)
;if(this.dependencies.every((n=>n instanceof foe?t.facet(n)===e.facet(n):!(n instanceof woe)||t.field(n,!1)==e.field(n,!1)))||(a?voe(s=n(e),o,r):r(s=n(e),o)))return e.values[i]=o,
0}else s=n(e);return e.values[i]=s,1}}}}function voe(e,t,n){
if(e.length!=t.length)return!1
;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}
function boe(e,t){let n=!1;for(let r of t)1&$oe(e,r)&&(n=!0);return n}
function Ooe(e,t,n){
let r=n.map((t=>e[t.id])),o=n.map((e=>e.type)),i=r.filter((e=>!(1&e))),a=e[t.id]>>1
;function s(e){let n=[];for(let t=0;t<r.length;t++){let i=Roe(e,r[t])
;if(2==o[t])for(let e of i)n.push(e);else n.push(i)}return t.combine(n)}return{
create(e){for(let t of r)$oe(e,t);return e.values[a]=s(e),1},update(e,n){
if(!boe(e,i))return 0;let r=s(e)
;return t.compare(r,e.values[a])?0:(e.values[a]=r,1)},reconfigure(e,o){
let i=boe(e,r),l=o.config.facets[t.id],c=o.facet(t)
;if(l&&!i&&moe(n,l))return e.values[a]=c,0;let u=s(e)
;return t.compare(u,c)?(e.values[a]=c,0):(e.values[a]=u,1)}}}
const yoe=foe.define({static:!0});class woe{constructor(e,t,n,r,o){
this.id=e,this.createF=t,
this.updateF=n,this.compareF=r,this.spec=o,this.provides=void 0}
static define(e){
let t=new woe(hoe++,e.create,e.update,e.compare||((e,t)=>e===t),e)
;return e.provide&&(t.provides=e.provide(t)),t}create(e){
let t=e.facet(yoe).find((e=>e.field==this))
;return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1
;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{
let r=e.values[t],o=this.updateF(r,n)
;return this.compareF(r,o)?0:(e.values[t]=o,1)},
reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),
0):(e.values[t]=this.create(e),1)}}init(e){return[this,yoe.of({field:this,
create:e})]}get extension(){return this}}const xoe=4,koe=3,Soe=2,_oe=1
;function Eoe(e){return t=>new Coe(t,e)}const Toe={highest:Eoe(0),high:Eoe(_oe),
default:Eoe(Soe),low:Eoe(koe),lowest:Eoe(xoe)};class Coe{constructor(e,t){
this.inner=e,this.prec=t}}class Aoe{of(e){return new Poe(this,e)}reconfigure(e){
return Aoe.reconfigure.of({compartment:this,extension:e})}get(e){
return e.config.compartments.get(this)}}class Poe{constructor(e,t){
this.compartment=e,this.inner=t}}class Doe{constructor(e,t,n,r,o,i){
for(this.base=e,
this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=o,
this.facets=i,
this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)
}staticFacet(e){let t=this.address[e.id]
;return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){
let r=[],o=Object.create(null),i=new Map;for(let d of function(e,t,n){
let r=[[],[],[],[],[]],o=new Map;function i(e,a){let s=o.get(e);if(null!=s){
if(s<=a)return;let t=r[s].indexOf(e)
;t>-1&&r[s].splice(t,1),e instanceof Poe&&n.delete(e.compartment)}if(o.set(e,a),
Array.isArray(e))for(let t of e)i(t,a);else if(e instanceof Poe){
if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions")
;let r=t.get(e.compartment)||e.inner;n.set(e.compartment,r),i(r,a)
}else if(e instanceof Coe)i(e.inner,e.prec);else if(e instanceof woe)r[a].push(e),
e.provides&&i(e.provides,a);else if(e instanceof goe)r[a].push(e),
e.facet.extensions&&i(e.facet.extensions,Soe);else{let t=e.extension
;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`)
;i(t,a)}}return i(e,Soe),r.reduce(((e,t)=>e.concat(t)))
}(e,t,i))d instanceof woe?r.push(d):(o[d.facet.id]||(o[d.facet.id]=[])).push(d)
;let a=Object.create(null),s=[],l=[]
;for(let d of r)a[d.id]=l.length<<1,l.push((e=>d.slot(e)))
;let c=null==n?void 0:n.config.facets;for(let d in o){
let e=o[d],t=e[0].facet,r=c&&c[d]||[]
;if(e.every((e=>0==e.type)))if(a[t.id]=s.length<<1|1,
moe(r,e))s.push(n.facet(t));else{let r=t.combine(e.map((e=>e.value)))
;s.push(n&&t.compare(r,n.facet(t))?n.facet(t):r)}else{
for(let t of e)0==t.type?(a[t.id]=s.length<<1|1,
s.push(t.value)):(a[t.id]=l.length<<1,l.push((e=>t.dynamicSlot(e))))
;a[t.id]=l.length<<1,l.push((n=>Ooe(n,t,e)))}}let u=l.map((e=>e(a)))
;return new Doe(e,i,u,a,s,o)}}function $oe(e,t){if(1&t)return 2
;let n=t>>1,r=e.status[n]
;if(4==r)throw new Error("Cyclic dependency between fields and/or facets")
;if(2&r)return r;e.status[n]=4;let o=e.computeSlot(e,e.config.dynamicSlots[n])
;return e.status[n]=2|o}function Roe(e,t){
return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}
const Noe=foe.define(),Ioe=foe.define({combine:e=>e.some((e=>e)),static:!0
}),Moe=foe.define({combine:e=>e.length?e[0]:void 0,static:!0
}),Loe=foe.define(),Boe=foe.define(),Qoe=foe.define(),joe=foe.define({
combine:e=>!!e.length&&e[0]});class Uoe{constructor(e,t){
this.type=e,this.value=t}static define(){return new Foe}}class Foe{of(e){
return new Uoe(this,e)}}class qoe{constructor(e){this.map=e}of(e){
return new zoe(this,e)}}class zoe{constructor(e,t){this.type=e,this.value=t}
map(e){let t=this.type.map(this.value,e)
;return void 0===t?void 0:t==this.value?this:new zoe(this.type,t)}is(e){
return this.type==e}static define(e={}){return new qoe(e.map||(e=>e))}
static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){
let e=r.map(t);e&&n.push(e)}return n}}
zoe.reconfigure=zoe.define(),zoe.appendConfig=zoe.define();class Hoe{
constructor(e,t,n,r,o,i){
this.startState=e,this.changes=t,this.selection=n,this.effects=r,
this.annotations=o,
this.scrollIntoView=i,this._doc=null,this._state=null,n&&poe(n,t.newLength),
o.some((e=>e.type==Hoe.time))||(this.annotations=o.concat(Hoe.time.of(Date.now())))
}static create(e,t,n,r,o,i){return new Hoe(e,t,n,r,o,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(Hoe.userEvent)
;return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))
}}function Zoe(e,t){let n=[];for(let r=0,o=0;;){let i,a
;if(r<e.length&&(o==t.length||t[o]>=e[r]))i=e[r++],a=e[r++];else{
if(!(o<t.length))return n;i=t[o++],a=t[o++]}
!n.length||n[n.length-1]<i?n.push(i,a):n[n.length-1]<a&&(n[n.length-1]=a)}}
function Voe(e,t,n){var r;let o,i,a
;return n?(o=t.changes,i=roe.empty(t.changes.length),
a=e.changes.compose(t.changes)):(o=t.changes.map(e.changes),
i=e.changes.mapDesc(t.changes,!0),a=e.changes.compose(o)),{changes:a,
selection:t.selection?t.selection.map(i):null===(r=e.selection)||void 0===r?void 0:r.map(o),
effects:zoe.mapEffects(e.effects,o).concat(zoe.mapEffects(t.effects,i)),
annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,
scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function Woe(e,t,n){
let r=t.selection,o=Goe(t.annotations)
;return t.userEvent&&(o=o.concat(Hoe.userEvent.of(t.userEvent))),{
changes:t.changes instanceof roe?t.changes:roe.of(t.changes||[],n,e.facet(Moe)),
selection:r&&(r instanceof doe?r:doe.single(r.anchor,r.head)),
effects:Goe(t.effects),annotations:o,scrollIntoView:!!t.scrollIntoView}}
function Xoe(e,t,n){let r=Woe(e,t.length?t[0]:{},e.doc.length)
;t.length&&!1===t[0].filter&&(n=!1);for(let i=1;i<t.length;i++){
!1===t[i].filter&&(n=!1);let o=!!t[i].sequential
;r=Voe(r,Woe(e,t[i],o?r.changes.newLength:e.doc.length),o)}
let o=Hoe.create(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView)
;return function(e){let t=e.startState,n=t.facet(Qoe),r=e
;for(let o=n.length-1;o>=0;o--){let i=n[o](e)
;i&&Object.keys(i).length&&(r=Voe(r,Woe(t,i,e.changes.newLength),!0))}
return r==e?e:Hoe.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)
}(n?function(e){let t=e.startState,n=!0;for(let o of t.facet(Loe)){let t=o(e)
;if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:Zoe(n,t))}if(!0!==n){
let r,o;if(!1===n)o=e.changes.invertedDesc,r=roe.empty(t.doc.length);else{
let t=e.changes.filter(n)
;r=t.changes,o=t.filtered.mapDesc(t.changes).invertedDesc}
e=Hoe.create(t,r,e.selection&&e.selection.map(o),zoe.mapEffects(e.effects,o),e.annotations,e.scrollIntoView)
}let r=t.facet(Boe);for(let o=r.length-1;o>=0;o--){let n=r[o](e)
;e=n instanceof Hoe?n:Array.isArray(n)&&1==n.length&&n[0]instanceof Hoe?n[0]:Xoe(t,Goe(n),!1)
}return e}(o):o)}
Hoe.time=Uoe.define(),Hoe.userEvent=Uoe.define(),Hoe.addToHistory=Uoe.define(),
Hoe.remote=Uoe.define();const Yoe=[];function Goe(e){
return null==e?Yoe:Array.isArray(e)?e:[e]}var Koe=function(e){
return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e
}(Koe||(Koe={}))
;const Joe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/
;let eie;try{eie=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(O_e){}
function tie(e){return t=>{if(!/\S/.test(t))return Koe.Space;if(function(e){
if(eie)return eie.test(e);for(let t=0;t<e.length;t++){let n=e[t]
;if(/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Joe.test(n)))return!0
}return!1}(t))return Koe.Word
;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return Koe.Word
;return Koe.Other}}class nie{constructor(e,t,n,r,o,i){
this.config=e,this.doc=t,this.selection=n,
this.values=r,this.status=e.statusTemplate.slice(),
this.computeSlot=o,i&&(i._state=this)
;for(let a=0;a<this.config.dynamicSlots.length;a++)$oe(this,a<<1)
;this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id]
;if(null!=n)return $oe(this,n),Roe(this,n)
;if(t)throw new RangeError("Field is not present in this state")}update(...e){
return Xoe(this,e,!0)}applyTransaction(e){
let t,n=this.config,{base:r,compartments:o}=n
;for(let a of e.effects)a.is(Aoe.reconfigure)?(n&&(o=new Map,
n.compartments.forEach(((e,t)=>o.set(t,e))),
n=null),o.set(a.value.compartment,a.value.extension)):a.is(zoe.reconfigure)?(n=null,
r=a.value):a.is(zoe.appendConfig)&&(n=null,r=Goe(r).concat(a.value))
;if(n)t=e.startState.values.slice();else{
n=Doe.resolve(r,o,this),t=new nie(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values
}let i=e.startState.facet(Ioe)?e.newSelection:e.newSelection.asSingle()
;new nie(n,e.newDoc,i,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){
return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{
from:t.from,to:t.to,insert:e},range:doe.cursor(t.from+e.length)})))}
changeByRange(e){
let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),o=[n.range],i=Goe(n.effects)
;for(let a=1;a<t.ranges.length;a++){
let n=e(t.ranges[a]),s=this.changes(n.changes),l=s.map(r)
;for(let e=0;e<a;e++)o[e]=o[e].map(l);let c=r.mapDesc(s,!0)
;o.push(n.range.map(c)),
r=r.compose(l),i=zoe.mapEffects(i,l).concat(zoe.mapEffects(Goe(n.effects),c))}
return{changes:r,selection:doe.create(o,t.mainIndex),effects:i}}changes(e=[]){
return e instanceof roe?e:roe.of(e,this.doc.length,this.facet(nie.lineSeparator))
}toText(e){return $re.of(e.split(this.facet(nie.lineSeparator)||eoe))}
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 null==t?e.default:($oe(this,t),Roe(this,t))}toJSON(e){let t={
doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){
let r=e[n]
;r instanceof woe&&null!=this.config.address[r.id]&&(t[n]=r.spec.toJSON(this.field(e[n]),this))
}return t}static fromJSON(e,t={},n){
if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState")
;let r=[];if(n)for(let o in n)if(Object.prototype.hasOwnProperty.call(e,o)){
let t=n[o],i=e[o];r.push(t.init((e=>t.spec.fromJSON(i,e))))}return nie.create({
doc:e.doc,selection:doe.fromJSON(e.selection),
extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){
let t=Doe.resolve(e.extensions||[],new Map),n=e.doc instanceof $re?e.doc:$re.of((e.doc||"").split(t.staticFacet(nie.lineSeparator)||eoe)),r=e.selection?e.selection instanceof doe?e.selection:doe.single(e.selection.anchor,e.selection.head):doe.single(0)
;return poe(r,n.length),
t.staticFacet(Ioe)||(r=r.asSingle()),new nie(t,n,r,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)
}get tabSize(){return this.facet(nie.tabSize)}get lineBreak(){
return this.facet(nie.lineSeparator)||"\n"}get readOnly(){return this.facet(joe)
}phrase(e,...t){
for(let n of this.facet(nie.phrases))if(Object.prototype.hasOwnProperty.call(n,e)){
e=n[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,n)=>{
if("$"==n)return"$";let r=+(n||1);return!r||r>t.length?e:t[r-1]}))),e}
languageDataAt(e,t,n=-1){let r=[]
;for(let o of this.facet(Noe))for(let i of o(this,t,n))Object.prototype.hasOwnProperty.call(i,e)&&r.push(i[e])
;return r}charCategorizer(e){
return tie(this.languageDataAt("wordChars",e).join(""))}wordAt(e){
let{text:t,from:n,length:r}=this.doc.lineAt(e),o=this.charCategorizer(e),i=e-n,a=e-n
;for(;i>0;){let e=Zre(t,i,!1);if(o(t.slice(e,i))!=Koe.Word)break;i=e}for(;a<r;){
let e=Zre(t,a);if(o(t.slice(a,e))!=Koe.Word)break;a=e}
return i==a?null:doe.range(i+n,a+n)}}function rie(e,t,n={}){let r={}
;for(let o of e)for(let e of Object.keys(o)){let t=o[e],i=r[e]
;if(void 0===i)r[e]=t;else if(i===t||void 0===t);else{
if(!Object.hasOwnProperty.call(n,e))throw new Error("Config merge conflict for field "+e)
;r[e]=n[e](i,t)}}for(let o in t)void 0===r[o]&&(r[o]=t[o]);return r}
nie.allowMultipleSelections=Ioe,nie.tabSize=foe.define({
combine:e=>e.length?e[0]:4
}),nie.lineSeparator=Moe,nie.readOnly=joe,nie.phrases=foe.define({compare(e,t){
let n=Object.keys(e),r=Object.keys(t)
;return n.length==r.length&&n.every((n=>e[n]==t[n]))}
}),nie.languageData=Noe,nie.changeFilter=Loe,
nie.transactionFilter=Boe,nie.transactionExtender=Qoe,
Aoe.reconfigure=zoe.define();class oie{eq(e){return this==e}range(e,t=e){
return iie.create(e,t,this)}}
oie.prototype.startSide=oie.prototype.endSide=0,oie.prototype.point=!1,
oie.prototype.mapMode=toe.TrackDel;let iie=class e{constructor(e,t,n){
this.from=e,this.to=t,this.value=n}static create(t,n,r){return new e(t,n,r)}}
;function aie(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}
class sie{constructor(e,t,n,r){
this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){
return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let o=n?this.to:this.from
;for(let i=r,a=o.length;;){if(i==a)return i
;let r=i+a>>1,s=o[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t
;if(r==i)return s>=0?i:a;s>=0?a=r:i=r+1}}between(e,t,n,r){
for(let o=this.findIndex(t,-1e9,!0),i=this.findIndex(n,1e9,!1,o);o<i;o++)if(!1===r(this.from[o]+e,this.to[o]+e,this.value[o]))return!1
}map(e,t){let n=[],r=[],o=[],i=-1,a=-1;for(let s=0;s<this.value.length;s++){
let l,c,u=this.value[s],d=this.from[s]+e,p=this.to[s]+e;if(d==p){
let e=t.mapPos(d,u.startSide,u.mapMode);if(null==e)continue
;if(l=c=e,u.startSide!=u.endSide&&(c=t.mapPos(d,u.endSide),c<l))continue
}else if(l=t.mapPos(d,u.startSide),
c=t.mapPos(p,u.endSide),l>c||l==c&&u.startSide>0&&u.endSide<=0)continue
;(c-l||u.endSide-u.startSide)<0||(i<0&&(i=l),
u.point&&(a=Math.max(a,c-l)),n.push(u),r.push(l-i),o.push(c-i))}return{
mapped:n.length?new sie(r,o,n,a):null,pos:i}}}class lie{constructor(e,t,n,r){
this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}
static create(e,t,n,r){return new lie(e,t,n,r)}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:r=0,filterTo:o=this.length}=e,i=e.filter
;if(0==t.length&&!i)return this
;if(n&&(t=t.slice().sort(aie)),this.isEmpty)return t.length?lie.of(t):this
;let a=new die(this,null,-1).goto(0),s=0,l=[],c=new cie
;for(;a.value||s<t.length;)if(s<t.length&&(a.from-t[s].from||a.startSide-t[s].value.startSide)>=0){
let e=t[s++];c.addInner(e.from,e.to,e.value)||l.push(e)
}else 1==a.rangeIndex&&a.chunkIndex<this.chunk.length&&(s==t.length||this.chunkEnd(a.chunkIndex)<t[s].from)&&(!i||r>this.chunkEnd(a.chunkIndex)||o<this.chunkPos[a.chunkIndex])&&c.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!i||r>a.to||o<a.from||i(a.from,a.to,a.value))&&(c.addInner(a.from,a.to,a.value)||l.push(iie.create(a.from,a.to,a.value))),
a.next())
;return c.finishInner(this.nextLayer.isEmpty&&!l.length?lie.empty:this.nextLayer.update({
add:l,filter:i,filterFrom:r,filterTo:o}))}map(e){
if(e.empty||this.isEmpty)return this;let t=[],n=[],r=-1
;for(let i=0;i<this.chunk.length;i++){
let o=this.chunkPos[i],a=this.chunk[i],s=e.touchesRange(o,o+a.length)
;if(!1===s)r=Math.max(r,a.maxPoint),
t.push(a),n.push(e.mapPos(o));else if(!0===s){let{mapped:i,pos:s}=a.map(o,e)
;i&&(r=Math.max(r,i.maxPoint),t.push(i),n.push(s))}}let o=this.nextLayer.map(e)
;return 0==t.length?o:new lie(n,t,o||lie.empty,r)}between(e,t,n){
if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){
let o=this.chunkPos[r],i=this.chunk[r]
;if(t>=o&&e<=o+i.length&&!1===i.between(o,e-o,t-o,n))return}
this.nextLayer.between(e,t,n)}}iter(e=0){return pie.from([this]).goto(e)}
get isEmpty(){return this.nextLayer==this}static iter(e,t=0){
return pie.from(e).goto(t)}static compare(e,t,n,r,o=-1){
let i=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=o)),a=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=o)),s=uie(i,a,n),l=new fie(i,s,o),c=new fie(a,s,o)
;n.iterGaps(((e,t,n)=>mie(l,e,c,t,n,r))),n.empty&&0==n.length&&mie(l,0,c,0,0,r)}
static eq(e,t,n=0,r){null==r&&(r=999999999)
;let o=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),i=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0))
;if(o.length!=i.length)return!1;if(!o.length)return!0
;let a=uie(o,i),s=new fie(o,a,0).goto(n),l=new fie(i,a,0).goto(n);for(;;){
if(s.to!=l.to||!gie(s.active,l.active)||s.point&&(!l.point||!s.point.eq(l.point)))return!1
;if(s.to>r)return!0;s.next(),l.next()}}static spans(e,t,n,r,o=-1){
let i=new fie(e,null,o).goto(t),a=t,s=i.openStart;for(;;){let e=Math.min(i.to,n)
;if(i.point){
let n=i.activeForPoint(i.to),o=i.pointFrom<t?n.length+1:i.point.startSide<0?n.length:Math.min(n.length,s)
;r.point(a,e,i.point,n,o,i.pointRank),s=Math.min(i.openEnd(e),n.length)
}else e>a&&(r.span(a,e,i.active,s),s=i.openEnd(e))
;if(i.to>n)return s+(i.point&&i.to>n?1:0);a=i.to,i.next()}}static of(e,t=!1){
let n=new cie;for(let r of e instanceof iie?[e]:t?function(e){
if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n]
;if(aie(t,r)>0)return e.slice().sort(aie);t=r}return e
}(e):e)n.add(r.from,r.to,r.value);return n.finish()}static join(e){
if(!e.length)return lie.empty;let t=e[e.length-1]
;for(let n=e.length-2;n>=0;n--)for(let r=e[n];r!=lie.empty;r=r.nextLayer)t=new lie(r.chunkPos,r.chunk,t,Math.max(r.maxPoint,t.maxPoint))
;return t}}lie.empty=new lie([],[],null,-1),lie.empty.nextLayer=lie.empty
;class cie{finishChunk(e){
this.chunks.push(new sie(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 cie)).add(e,t,n)}
addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide
;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`")
;return!(r<0)&&(250==this.from.length&&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(lie.empty)}finishInner(e){
if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e
;let t=lie.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint)
;return this.from=null,t}}function uie(e,t,n){let r=new Map
;for(let i of e)for(let e=0;e<i.chunk.length;e++)i.chunk[e].maxPoint<=0&&r.set(i.chunk[e],i.chunkPos[e])
;let o=new Set;for(let i of t)for(let e=0;e<i.chunk.length;e++){
let t=r.get(i.chunk[e])
;null==t||(n?n.mapPos(t):t)!=i.chunkPos[e]||(null==n?void 0:n.touchesRange(t,t+i.chunk[e].length))||o.add(i.chunk[e])
}return o}class die{constructor(e,t,n,r=0){
this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}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 t=this.layer.chunk[this.chunkIndex]
;if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break
;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){
let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0)
;(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}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}{
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 pie{constructor(e){this.heap=e}static from(e,t=null,n=-1){let r=[]
;for(let o=0;o<e.length;o++)for(let i=e[o];!i.isEmpty;i=i.nextLayer)i.maxPoint>=n&&r.push(new die(i,t,n,o))
;return 1==r.length?r[0]:new pie(r)}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--)hie(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--)hie(this.heap,n)
;(this.to-e||this.value.endSide-t)<0&&this.next()}next(){
if(0==this.heap.length)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(),hie(this.heap,0)}}}function hie(e,t){for(let n=e[t];;){
let r=1+(t<<1);if(r>=e.length)break;let o=e[r]
;if(r+1<e.length&&o.compare(e[r+1])>=0&&(o=e[r+1],r++),n.compare(o)<0)break
;e[r]=n,e[t]=o,t=r}}class fie{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=pie.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){
vie(this.active,e),vie(this.activeTo,e),
vie(this.activeRank,e),this.minActive=Oie(this.active,this.activeTo)}
addActive(e){let t=0,{value:n,to:r,rank:o}=this.cursor
;for(;t<this.activeRank.length&&(o-this.activeRank[t]||r-this.activeTo[t])>0;)t++
;bie(this.active,t,n),
bie(this.activeTo,t,r),bie(this.activeRank,t,o),e&&bie(e,t,this.cursor.from),
this.minActive=Oie(this.active,this.activeTo)}next(){let e=this.to,t=this.point
;this.point=null;let n=this.openStart<0?[]:null;for(;;){let r=this.minActive
;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){
if(this.activeTo[r]>e){
this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}
this.removeActive(r),n&&vie(n,r)}else{if(!this.cursor.value){
this.to=this.endSide=1e9;break}if(this.cursor.from>e){
this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{
let e=this.cursor.value;if(e.point){
if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=e,
this.pointFrom=this.cursor.from,
this.pointRank=this.cursor.rank,this.to=this.cursor.to,
this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide)
;break}this.cursor.next()}else this.addActive(n),this.cursor.next()}}}if(n){
this.openStart=0;for(let t=n.length-1;t>=0&&n[t]<e;t--)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 mie(e,t,n,r,o,i){e.goto(t),n.goto(r);let a=r+o,s=r,l=r-t;for(;;){
let t=e.to+l-n.to||e.endSide-n.endSide,r=t<0?e.to+l:n.to,o=Math.min(r,a)
;if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&gie(e.activeForPoint(e.to),n.activeForPoint(n.to))||i.comparePoint(s,o,e.point,n.point):o>s&&!gie(e.active,n.active)&&i.compareRange(s,o,e.active,n.active),
r>a)break;s=r,t<=0&&e.next(),t>=0&&n.next()}}function gie(e,t){
if(e.length!=t.length)return!1
;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}
function vie(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}
function bie(e,t,n){for(let r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=n}
function Oie(e,t){let n=-1,r=1e9
;for(let o=0;o<t.length;o++)(t[o]-r||e[o].endSide-e[n].endSide)<0&&(n=o,r=t[o])
;return n}function yie(e,t,n=e.length){let r=0
;for(let o=0;o<n;)9==e.charCodeAt(o)?(r+=t-r%t,o++):(r++,o=Zre(e,o));return r}
const wie="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),xie="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),kie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{}
;class Sie{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){
return/^@/.test(e)?[e]:e.split(/,\s*/)}function o(e,t,i,a){
let s=[],l=/^@(\w+)\b/.exec(e[0]),c=l&&"keyframes"==l[1]
;if(l&&null==t)return i.push(e[0]+";");for(let n in t){let a=t[n]
;if(/&/.test(n))o(n.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),a,i);else if(a&&"object"==typeof a){
if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.")
;o(r(n),a,s,c)
}else null!=a&&s.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+a+";")
}(s.length||c)&&i.push((!n||l||a?e:e.map(n)).join(", ")+" {"+s.join(" ")+"}")}
for(let i in e)o(r(i),e[i],this.rules)}getRules(){return this.rules.join("\n")}
static newName(){let e=kie[wie]||1;return kie[wie]=e+1,"ͼ"+e.toString(36)}
static mount(e,t,n){let r=e[xie],o=n&&n.nonce;r?o&&r.setNonce(o):r=new Eie(e,o),
r.mount(Array.isArray(t)?t:[t],e)}}let _ie=new Map;class Eie{constructor(e,t){
let n=e.ownerDocument||e,r=n.defaultView
;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let t=_ie.get(n)
;if(t)return e[xie]=t;this.sheet=new r.CSSStyleSheet,_ie.set(n,this)
}else this.styleTag=n.createElement("style"),
t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[xie]=this}mount(e,t){
let n=this.sheet,r=0,o=0;for(let i=0;i<e.length;i++){
let t=e[i],a=this.modules.indexOf(t)
;if(a<o&&a>-1&&(this.modules.splice(a,1),o--,a=-1),-1==a){
if(this.modules.splice(o++,0,t),
n)for(let e=0;e<t.rules.length;e++)n.insertRule(t.rules[e],r++)}else{
for(;o<a;)r+=this.modules[o++].rules.length;r+=t.rules.length,o++}}
if(n)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{
let e=""
;for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n"
;this.styleTag.textContent=e;let n=t.head||t
;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}
setNonce(e){
this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)
}}for(var Tie={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:"'"},Cie={48:")",49:"!",50:"@",51:"#",52:"$",
53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",
188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'
},Aie="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Pie="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Die=0;Die<10;Die++)Tie[48+Die]=Tie[96+Die]=String(Die)
;for(Die=1;Die<=24;Die++)Tie[Die+111]="F"+Die
;for(Die=65;Die<=90;Die++)Tie[Die]=String.fromCharCode(Die+32),
Cie[Die]=String.fromCharCode(Die)
;for(var $ie in Tie)Cie.hasOwnProperty($ie)||(Cie[$ie]=Tie[$ie])
;function Rie(e){let t
;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}
function Nie(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}
function Iie(e,t){if(!t.anchorNode)return!1;try{return Nie(e,t.anchorNode)
}catch(O_e){return!1}}function Mie(e){
return 3==e.nodeType?Xie(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]
}function Lie(e,t,n,r){return!!n&&(jie(e,t,n,r,-1)||jie(e,t,n,r,1))}
function Bie(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}
function Qie(e){
return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)
}function jie(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:Uie(e))){
if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1
;t=Bie(e)+(o<0?0:1),e=n}else{if(1!=e.nodeType)return!1
;if(1==(e=e.childNodes[t+(o<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1
;t=o<0?Uie(e):0}}}function Uie(e){
return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Fie(e,t){
let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}
function qie(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,
bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}
function zie(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight
;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),
(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{
scaleX:n,scaleY:r}}class Hie{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?Uie(t):0),n,Math.min(e.focusOffset,n?Uie(n):0))
}set(e,t,n,r){
this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}
let Zie,Vie=null;function Wie(e){if(e.setActive)return e.setActive()
;if(Vie)return e.focus(Vie);let t=[]
;for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),
n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==Vie?{get preventScroll(){
return Vie={preventScroll:!0},!0}}:void 0),!Vie){Vie=!1
;for(let e=0;e<t.length;){let n=t[e++],r=t[e++],o=t[e++]
;n.scrollTop!=r&&(n.scrollTop=r),n.scrollLeft!=o&&(n.scrollLeft=o)}}}
function Xie(e,t,n=t){let r=Zie||(Zie=document.createRange())
;return r.setEnd(e,n),r.setStart(e,t),r}function Yie(e,t,n,r){let o={key:t,
code:t,keyCode:n,which:n,cancelable:!0}
;r&&({altKey:o.altKey,ctrlKey:o.ctrlKey,shiftKey:o.shiftKey,metaKey:o.metaKey}=r)
;let i=new KeyboardEvent("keydown",o);i.synthetic=!0,e.dispatchEvent(i)
;let a=new KeyboardEvent("keyup",o)
;return a.synthetic=!0,e.dispatchEvent(a),i.defaultPrevented||a.defaultPrevented
}function Gie(e){
for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}
function Kie(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}
function Jie(e,t){for(let n=e,r=t;;){if(3==n.nodeType&&r>0)return{node:n,
offset:r};if(1==n.nodeType&&r>0){if("false"==n.contentEditable)return null
;n=n.childNodes[r-1],r=Uie(n)}else{if(!n.parentNode||Qie(n))return null
;r=Bie(n),n=n.parentNode}}}function eae(e,t){for(let n=e,r=t;;){
if(3==n.nodeType&&r<n.nodeValue.length)return{node:n,offset:r}
;if(1==n.nodeType&&r<n.childNodes.length){
if("false"==n.contentEditable)return null;n=n.childNodes[r],r=0}else{
if(!n.parentNode||Qie(n))return null;r=Bie(n)+1,n=n.parentNode}}}class tae{
constructor(e,t,n=!0){this.node=e,this.offset=t,this.precise=n}
static before(e,t){return new tae(e.parentNode,Bie(e),t)}static after(e,t){
return new tae(e.parentNode,Bie(e)+1,t)}}const nae=[];class rae{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(2&this.flags){
let n,r=this.dom,o=null;for(let i of this.children){if(7&i.flags){
if(!i.dom&&(n=o?o.nextSibling:r.firstChild)){let e=rae.get(n)
;(!e||!e.parent&&e.canReuseDOM(i))&&i.reuseDOM(n)}i.sync(e,t),i.flags&=-8}
if(n=o?o.nextSibling:r.firstChild,
t&&!t.written&&t.node==r&&n!=i.dom&&(t.written=!0),
i.dom.parentNode==r)for(;n&&n!=i.dom;)n=oae(n);else r.insertBefore(i.dom,n)
;o=i.dom}
for(n=o?o.nextSibling:r.firstChild,n&&t&&t.node==r&&(t.written=!0);n;)n=oae(n)
}else if(1&this.flags)for(let n of this.children)7&n.flags&&(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 r=0==Uie(e)?0:0==t?-1:1
;for(;;){let t=e.parentNode;if(t==this.dom)break
;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}
n=r<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0
;for(;n&&!rae.get(n);)n=n.nextSibling;if(!n)return this.length
;for(let r=0,o=0;;r++){let e=this.children[r];if(e.dom==n)return o
;o+=e.length+e.breakAfter}}domBoundsAround(e,t,n=0){let r=-1,o=-1,i=-1,a=-1
;for(let s=0,l=n,c=n;s<this.children.length;s++){
let n=this.children[s],u=l+n.length;if(l<e&&u>t)return n.domBoundsAround(e,t,l)
;if(u>=e&&-1==r&&(r=s,o=l),l>t&&n.dom.parentNode==this.dom){i=s,a=c;break}
c=u,l=u+n.breakAfter}return{from:o,to:a<0?n+this.length:a,
startDOM:(r?this.children[r-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),1&t.flags)return
;t.flags|=1,e=!1}}setParent(e){
this.parent!=e&&(this.parent=e,7&this.flags&&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=nae){this.markDirty();for(let r=e;r<t;r++){
let e=this.children[r];e.parent==this&&n.indexOf(e)<0&&e.destroy()}
this.children.splice(e,t-e,...n);for(let r=0;r<n.length;r++)n[r].setParent(this)
}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){
return new iae(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?"["+("Text"==e?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,r,o,i){return!1}become(e){return!1}
canReuseDOM(e){return e.constructor==this.constructor&&!(8&(this.flags|e.flags))
}getSide(){return 0}destroy(){
for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}
function oae(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}
rae.prototype.breakAfter=0;class iae{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||0==this.i||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 aae(e,t,n,r,o,i,a,s,l){
let{children:c}=e,u=c.length?c[t]:null,d=i.length?i[i.length-1]:null,p=d?d.breakAfter:a
;if(!(t==r&&u&&!a&&!p&&i.length<2&&u.merge(n,o,i.length?d:null,0==n,s,l))){
if(r<c.length){let e=c[r]
;e&&(o<e.length||e.breakAfter&&(null==d?void 0:d.breakAfter))?(t==r&&(e=e.split(o),
o=0),
!p&&d&&e.merge(0,o,d,!0,0,l)?i[i.length-1]=e:((o||e.children.length&&!e.children[0].length)&&e.merge(0,o,null,!1,0,l),
i.push(e))):(null==e?void 0:e.breakAfter)&&(d?d.breakAfter=1:a=1),r++}
for(u&&(u.breakAfter=a,
n>0&&(!a&&i.length&&u.merge(n,u.length,i[0],!1,s,0)?u.breakAfter=i.shift().breakAfter:(n<u.length||u.children.length&&0==u.children[u.children.length-1].length)&&u.merge(n,u.length,null,!1,s,0),
t++));t<r&&i.length;)if(c[r-1].become(i[i.length-1]))r--,
i.pop(),l=i.length?0:s;else{if(!c[t].become(i[0]))break
;t++,i.shift(),s=i.length?0:l}
!i.length&&t&&r<c.length&&!c[t-1].breakAfter&&c[r].merge(0,0,c[t-1],!1,s,l)&&t--,
(t<r||i.length)&&e.replaceChildren(t,r,i)}}function sae(e,t,n,r,o,i){
let a=e.childCursor(),{i:s,off:l}=a.findPos(n,1),{i:c,off:u}=a.findPos(t,-1),d=t-n
;for(let p of r)d+=p.length;e.length+=d,aae(e,c,u,s,l,r,0,o,i)}
let lae="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",
platform:""},cae="undefined"!=typeof document?document:{documentElement:{
style:{}}}
;const uae=/Edge\/(\d+)/.exec(lae.userAgent),dae=/MSIE \d/.test(lae.userAgent),pae=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(lae.userAgent),hae=!!(dae||pae||uae),fae=!hae&&/gecko\/(\d+)/i.test(lae.userAgent),mae=!hae&&/Chrome\/(\d+)/.exec(lae.userAgent),gae="webkitFontSmoothing"in cae.documentElement.style,vae=!hae&&/Apple Computer/.test(lae.vendor),bae=vae&&(/Mobile\/\w+/.test(lae.userAgent)||lae.maxTouchPoints>2)
;var Oae={mac:bae||/Mac/.test(lae.platform),windows:/Win/.test(lae.platform),
linux:/Linux|X11/.test(lae.platform),ie:hae,
ie_version:dae?cae.documentMode||6:pae?+pae[1]:uae?+uae[1]:0,gecko:fae,
gecko_version:fae?+(/Firefox\/(\d+)/.exec(lae.userAgent)||[0,0])[1]:0,
chrome:!!mae,chrome_version:mae?+mae[1]:0,ios:bae,
android:/Android\b/.test(lae.userAgent),webkit:gae,safari:vae,
webkit_version:gae?+(/\bAppleWebKit\/(\d+)/.exec(lae.userAgent)||[0,0])[1]:0,
tabSize:null!=cae.documentElement.style.tabSize?"tab-size":"-moz-tab-size"}
;class yae extends rae{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){3==e.nodeType&&this.createDOM(e)}
merge(e,t,n){
return!(8&this.flags||n&&(!(n instanceof yae)||this.length-(t-e)+n.length>256||8&n.flags))&&(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),
this.markDirty(),!0)}split(e){let t=new yae(this.text.slice(e))
;return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}
localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){
return new tae(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 function(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let o=t,i=t,a=0
;0==t&&n<0||t==r&&n>=0?Oae.chrome||Oae.gecko||(t?(o--,
a=1):i<r&&(i++,a=-1)):n<0?o--:i<r&&i++;let s=Xie(e,o,i).getClientRects()
;if(!s.length)return null;let l=s[(a?a<0:n>=0)?0:s.length-1]
;Oae.safari&&!a&&0==l.width&&(l=Array.prototype.find.call(s,(e=>e.width))||l)
;return a?Fie(l,a<0):l||null}(this.dom,e,t)}}class wae extends rae{
constructor(e,t=[],n=0){super(),this.mark=e,this.children=t,this.length=n
;for(let r of t)r.setParent(this)}setAttrs(e){
if(Gie(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)&&!(8&(this.flags|e.flags))}
reuseDOM(e){
e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}
sync(e,t){
this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),
super.sync(e,t)}merge(e,t,n,r,o,i){
return(!n||!(!(n instanceof wae&&n.mark.eq(this.mark))||e&&o<=0||t<this.length&&i<=0))&&(sae(this,e,t,n?n.children.slice():[],o-1,i-1),
this.markDirty(),!0)}split(e){let t=[],n=0,r=-1,o=0;for(let a of this.children){
let i=n+a.length;i>e&&t.push(n<e?a.split(e-n):a),r<0&&n>=e&&(r=o),n=i,o++}
let i=this.length-e
;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),
new wae(this.mark,t,i)}domAtPos(e){return Sae(this,e)}coordsAt(e,t){
return Eae(this,e,t)}}class xae extends rae{static create(e,t,n){
return new xae(e,t,n)}constructor(e,t,n){
super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){
let t=xae.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,r,o,i){
return!(n&&(!(n instanceof xae&&this.widget.compare(n.widget))||e>0&&o<=0||t<this.length&&i<=0))&&(this.length=e+(n?n.length:0)+(this.length-t),
!0)}become(e){
return e instanceof xae&&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)}ignoreMutation(){return!0}
ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){
if(0==this.length)return $re.empty;let e=this;for(;e.parent;)e=e.parent
;let{view:t}=e,n=t&&t.state.doc,r=this.posAtStart
;return n?n.slice(r,r+this.length):$re.empty}domAtPos(e){
return(this.length?0==e:this.side>0)?tae.before(this.dom):tae.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 r=this.dom.getClientRects(),o=null;if(!r.length)return null
;let i=this.side?this.side<0:e>0
;for(let a=i?r.length-1:0;o=r[a],!(e>0?0==a:a==r.length-1||o.top<o.bottom);a+=i?-1:1);
return Fie(o,!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 kae extends rae{
constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}
become(e){return e instanceof kae&&e.side==this.side}split(){
return new kae(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?tae.before(this.dom):tae.after(this.dom)}localPosFromDOM(){
return 0}domBoundsAround(){return null}coordsAt(e){
return this.dom.getBoundingClientRect()}get overrideDOMText(){return $re.empty}
get isHidden(){return!0}}function Sae(e,t){let n=e.dom,{children:r}=e,o=0
;for(let i=0;o<r.length;o++){let e=r[o],a=i+e.length
;if(!(a==i&&e.getSide()<=0)){
if(t>i&&t<a&&e.dom.parentNode==n)return e.domAtPos(t-i);if(t<=i)break;i=a}}
for(let i=o;i>0;i--){let e=r[i-1]
;if(e.dom.parentNode==n)return e.domAtPos(e.length)}for(let i=o;i<r.length;i++){
let e=r[i];if(e.dom.parentNode==n)return e.domAtPos(0)}return new tae(n,0)}
function _ae(e,t,n){let r,{children:o}=e
;n>0&&t instanceof wae&&o.length&&(r=o[o.length-1])instanceof wae&&r.mark.eq(t.mark)?_ae(r,t.children[0],n-1):(o.push(t),
t.setParent(e)),e.length+=t.length}function Eae(e,t,n){
let r=null,o=-1,i=null,a=-1;!function e(t,s){
for(let l=0,c=0;l<t.children.length&&c<=s;l++){let u=t.children[l],d=c+u.length
;d>=s&&(u.children.length?e(u,s-c):(!i||i.isHidden&&n>0)&&(d>s||c==d&&u.getSide()>0)?(i=u,
a=s-c):(c<s||c==d&&u.getSide()<0&&!u.isHidden)&&(r=u,o=s-c)),c=d}}(e,t)
;let s=(n<0?r:i)||r||i;return s?s.coordsAt(Math.max(0,s==r?o:a),n):function(e){
let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let n=Mie(t)
;return n[n.length-1]||null}(e)}function Tae(e,t){
for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n]
;return t}
yae.prototype.children=xae.prototype.children=kae.prototype.children=nae
;const Cae=Object.create(null);function Aae(e,t,n){if(e==t)return!0
;e||(e=Cae),t||(t=Cae);let r=Object.keys(e),o=Object.keys(t)
;if(r.length-(n&&r.indexOf(n)>-1?1:0)!=o.length-(n&&o.indexOf(n)>-1?1:0))return!1
;for(let i of r)if(i!=n&&(-1==o.indexOf(i)||e[i]!==t[i]))return!1;return!0}
function Pae(e,t,n){let r=!1
;if(t)for(let o in t)n&&o in n||(r=!0,"style"==o?e.style.cssText="":e.removeAttribute(o))
;if(n)for(let o in n)t&&t[o]==n[o]||(r=!0,
"style"==o?e.style.cssText=n[o]:e.setAttribute(o,n[o]));return r}
function Dae(e){let t=Object.create(null)
;for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}
return t}class $ae extends rae{constructor(){
super(...arguments),this.children=[],
this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}
merge(e,t,n,r,o,i){if(n){if(!(n instanceof $ae))return!1
;this.dom||n.transferDOM(this)}
return r&&this.setDeco(n?n.attrs:null),sae(this,e,t,n?n.children.slice():[],o,i),
!0}split(e){let t=new $ae
;if(t.breakAfter=this.breakAfter,0==this.length)return t
;let{i:n,off:r}=this.childPos(e)
;r&&(t.append(this.children[n].split(r),0),this.children[n].merge(r,this.children[n].length,null,!1,0,0),
n++);for(let o=n;o<this.children.length;o++)t.append(this.children[o],0)
;for(;n>0&&0==this.children[n-1].length;)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=void 0===this.prevAttrs?this.attrs:this.prevAttrs,
this.prevAttrs=void 0,this.dom=null)}setDeco(e){
Aae(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,
this.markDirty()),this.attrs=e)}append(e,t){_ae(this,e,t)}addLineDeco(e){
let t=e.spec.attributes,n=e.spec.class
;t&&(this.attrs=Tae(t,this.attrs||{})),n&&(this.attrs=Tae({class:n
},this.attrs||{}))}domAtPos(e){return Sae(this,e)}reuseDOM(e){
"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n
;this.dom?4&this.flags&&(Gie(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),void 0!==this.prevAttrs&&(Pae(this.dom,this.prevAttrs,this.attrs),
this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t)
;let r=this.dom.lastChild;for(;r&&rae.get(r)instanceof wae;)r=r.lastChild
;if(!(r&&this.length&&("BR"==r.nodeName||0!=(null===(n=rae.get(r))||void 0===n?void 0:n.isEditable)||Oae.ios&&this.children.some((e=>e instanceof yae))))){
let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}
measureTextSize(){if(0==this.children.length||this.length>20)return null
;let e,t=0;for(let n of this.children){
if(!(n instanceof yae)||/[^ -~]/.test(n.text))return null;let r=Mie(n.dom)
;if(1!=r.length)return null;t+=r[0].width,e=r[0].height}return t?{
lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,
textHeight:e}:null}coordsAt(e,t){let n=Eae(this,e,t)
;if(!this.children.length&&n&&this.parent){
let{heightOracle:e}=this.parent.view.viewState,t=n.bottom-n.top
;if(Math.abs(t-e.lineHeight)<2&&e.textHeight<t){let r=(t-e.textHeight)/2;return{
top:n.top+r,bottom:n.bottom-r,left:n.left,right:n.left}}}return n}become(e){
return!1}covers(){return!0}static find(e,t){
for(let n=0,r=0;n<e.children.length;n++){let o=e.children[n],i=r+o.length
;if(i>=t){if(o instanceof $ae)return o;if(i>t)break}r=i+o.breakAfter}return null
}}class Rae extends rae{constructor(e,t,n){
super(),this.widget=e,this.length=t,this.deco=n,
this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,o,i){
return!(n&&(!(n instanceof Rae&&this.widget.compare(n.widget))||e>0&&o<=0||t<this.length&&i<=0))&&(this.length=e+(n?n.length:0)+(this.length-t),
!0)}domAtPos(e){
return 0==e?tae.before(this.dom):tae.after(this.dom,e==this.length)}split(e){
let t=this.length-e;this.length=e;let n=new Rae(this.widget,t,this.deco)
;return n.breakAfter=this.breakAfter,n}get children(){return nae}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):$re.empty
}domBoundsAround(){return null}become(e){
return e instanceof Rae&&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)}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&&(e<0?t<0:n>0)}}class Nae{
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 Iae=function(e){
return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",
e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e
}(Iae||(Iae={}));class Mae extends oie{constructor(e,t,n,r){
super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}
get heightRelevant(){return!1}static mark(e){return new Lae(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 Qae(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,r=!!e.block
;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:o,end:i}=jae(e,r)
;t=(o?r?-3e8:-1:5e8)-1,n=1+(i?r?2e8:1:-6e8)}
return new Qae(e,t,n,r,e.widget||null,!0)}static line(e){return new Bae(e)}
static set(e,t=!1){return lie.of(e,t)}hasHeight(){
return!!this.widget&&this.widget.estimatedHeight>-1}}Mae.none=lie.empty
;class Lae extends Mae{constructor(e){let{start:t,end:n}=jae(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 Lae&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(n=e.attrs)||void 0===n?void 0:n.class))&&Aae(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)}}Lae.prototype.point=!1;class Bae extends Mae{
constructor(e){super(-2e8,-2e8,null,e)}eq(e){
return e instanceof Bae&&this.spec.class==e.spec.class&&Aae(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)}}
Bae.prototype.mapMode=toe.TrackBefore,Bae.prototype.point=!0
;class Qae extends Mae{constructor(e,t,n,r,o,i){
super(t,n,o,e),this.block=r,this.isReplace=i,
this.mapMode=r?t<=0?toe.TrackBefore:toe.TrackAfter:toe.TrackDel}get type(){
return this.startSide!=this.endSide?Iae.WidgetRange:this.startSide<=0?Iae.WidgetBefore:Iae.WidgetAfter
}get heightRelevant(){
return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)
}eq(e){
return e instanceof Qae&&(t=this.widget,n=e.widget,t==n||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide
;var t,n}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)}}function jae(e,t=!1){
let{inclusiveStart:n,inclusiveEnd:r}=e
;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!=n?n:t,
end:null!=r?r:t}}function Uae(e,t,n,r=0){let o=n.length-1
;o>=0&&n[o]+r>=e?n[o]=Math.max(n[o],t):n.push(e,t)}Qae.prototype.point=!0
;class Fae{constructor(e,t,n,r){
this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=r,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(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos
;let e=this.content[this.content.length-1]
;return!(e.breakAfter||e instanceof Rae&&e.deco.endSide<0)}getLine(){
return this.curLine||(this.content.push(this.curLine=new $ae),
this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){
this.pendingBuffer&&(this.curLine.append(qae(new kae(-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 Rae||this.getLine()
}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){
let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skip)
;if(this.skip=0,r)throw new Error("Ran out of text content when drawing inline views")
;if(n){
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}
this.text=t,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512)
;this.flushBuffer(t.slice(t.length-n)),
this.getLine().append(qae(new yae(this.text.slice(this.textOff,this.textOff+r)),t),n),
this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){
this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}
point(e,t,n,r,o,i){if(this.disallowBlockEffectsFor[i]&&n instanceof Qae){
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 a=t-e
;if(n instanceof Qae)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),
this.addBlockWidget(new Rae(n.widget||zae.block,a,n));else{
let i=xae.create(n.widget||zae.inline,a,a?0:n.startSide),s=this.atCursorPos&&!i.isEditable&&o<=r.length&&(e<t||n.startSide>0),l=!i.isEditable&&(e<t||o>r.length||n.startSide<=0),c=this.getLine()
;2!=this.pendingBuffer||s||i.isEditable||(this.pendingBuffer=0),
this.flushBuffer(r),
s&&(c.append(qae(new kae(1),r),o),o=r.length+Math.max(0,o-r.length)),
c.append(qae(i,r),o),
this.atCursorPos=l,this.pendingBuffer=l?e<t||o>r.length?1:2:0,
this.pendingBuffer&&(this.bufferMarks=r.slice())
}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n)
;a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),
this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=o)}
static build(e,t,n,r,o){let i=new Fae(e,t,n,o)
;return i.openEnd=lie.spans(r,t,n,i),
i.openStart<0&&(i.openStart=i.openEnd),i.finish(i.openEnd),i}}function qae(e,t){
for(let n of t)e=new wae(n,[e],e.length);return e}class zae extends Nae{
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}}
zae.inline=new zae("span"),zae.block=new zae("div");var Hae=function(e){
return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Hae||(Hae={}))
;const Zae=Hae.LTR,Vae=Hae.RTL;function Wae(e){let t=[]
;for(let n=0;n<e.length;n++)t.push(1<<+e[n]);return t}
const Xae=Wae("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Yae=Wae("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Gae=Object.create(null),Kae=[]
;for(let y_e of["()","[]","{}"]){let e=y_e.charCodeAt(0),t=y_e.charCodeAt(1)
;Gae[e]=t,Gae[t]=-e}function Jae(e){
return e<=247?Xae[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?Yae[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1
}const ese=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class tse{
get dir(){return this.level%2?Vae:Zae}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,r){let o=-1;for(let i=0;i<e.length;i++){let a=e[i]
;if(a.from<=t&&a.to>=t){if(a.level==n)return i
;(o<0||(0!=r?r<0?a.from<t:a.to>t:e[o].level>a.level))&&(o=i)}}
if(o<0)throw new RangeError("Index out of range");return o}}function nse(e,t){
if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++){let r=e[n],o=t[n]
;if(r.from!=o.from||r.to!=o.to||r.direction!=o.direction||!nse(r.inner,o.inner))return!1
}return!0}const rse=[];function ose(e,t,n,r,o,i,a){let s=r%2?2:1
;if(r%2==o%2)for(let l=t,c=0;l<n;){let t=!0,u=!1;if(c==i.length||l<i[c].from){
let e=rse[l];e!=s&&(t=!1,u=16==e)}let d=t||1!=s?null:[],p=t?r:r+1,h=l
;e:for(;;)if(c<i.length&&h==i[c].from){if(u)break e;let f=i[c]
;if(!t)for(let e=f.to,t=c+1;;){if(e==n)break e;if(!(t<i.length&&i[t].from==e)){
if(rse[e]==s)break e;break}e=i[t++].to}if(c++,d)d.push(f);else{
f.from>l&&a.push(new tse(l,f.from,p)),
ise(e,f.direction==Zae!=!(p%2)?r+1:r,o,f.inner,f.from,f.to,a),l=f.to}h=f.to
}else{if(h==n||(t?rse[h]!=s:rse[h]==s))break;h++}
d?ose(e,l,h,r+1,o,d,a):l<h&&a.push(new tse(l,h,p)),l=h
}else for(let l=n,c=i.length;l>t;){let n=!0,u=!1;if(!c||l>i[c-1].to){
let e=rse[l-1];e!=s&&(n=!1,u=16==e)}let d=n||1!=s?null:[],p=n?r:r+1,h=l
;e:for(;;)if(c&&h==i[c-1].to){if(u)break e;let f=i[--c]
;if(!n)for(let e=f.from,n=c;;){if(e==t)break e;if(!n||i[n-1].to!=e){
if(rse[e-1]==s)break e;break}e=i[--n].from}if(d)d.push(f);else{
f.to<l&&a.push(new tse(f.to,l,p)),
ise(e,f.direction==Zae!=!(p%2)?r+1:r,o,f.inner,f.from,f.to,a),l=f.from}h=f.from
}else{if(h==t||(n?rse[h-1]!=s:rse[h-1]==s))break;h--}
d?ose(e,h,l,r+1,o,d,a):h<l&&a.push(new tse(h,l,p)),l=h}}
function ise(e,t,n,r,o,i,a){let s=t%2?2:1;!function(e,t,n,r,o){
for(let i=0;i<=r.length;i++){
let a=i?r[i-1].to:t,s=i<r.length?r[i].from:n,l=i?256:o
;for(let t=a,n=l,r=l;t<s;t++){let o=Jae(e.charCodeAt(t))
;512==o?o=n:8==o&&4==r&&(o=16),rse[t]=4==o?2:o,7&o&&(r=o),n=o}
for(let e=a,t=l,r=l;e<s;e++){let o=rse[e]
;if(128==o)e<s-1&&t==rse[e+1]&&24&t?o=rse[e]=t:rse[e]=256;else if(64==o){
let o=e+1;for(;o<s&&64==rse[o];)o++;let i=e&&8==t||o<n&&8==rse[o]?1==r?1:8:256
;for(let t=e;t<o;t++)rse[t]=i;e=o-1}else 8==o&&1==r&&(rse[e]=1);t=o,7&o&&(r=o)}}
}(e,o,i,r,s),function(e,t,n,r,o){let i=1==o?2:1
;for(let a=0,s=0,l=0;a<=r.length;a++){
let c=a?r[a-1].to:t,u=a<r.length?r[a].from:n
;for(let t,n,r,a=c;a<u;a++)if(n=Gae[t=e.charCodeAt(a)])if(n<0){
for(let e=s-3;e>=0;e-=3)if(Kae[e+1]==-n){let t=Kae[e+2],n=2&t?o:4&t?1&t?i:o:0
;n&&(rse[a]=rse[Kae[e]]=n),s=e;break}}else{if(189==Kae.length)break
;Kae[s++]=a,Kae[s++]=t,Kae[s++]=l}else if(2==(r=rse[a])||1==r){let e=r==o
;l=e?0:1;for(let t=s-3;t>=0;t-=3){let n=Kae[t+2];if(2&n)break
;if(e)Kae[t+2]|=2;else{if(4&n)break;Kae[t+2]|=4}}}}
}(e,o,i,r,s),function(e,t,n,r){for(let o=0,i=r;o<=n.length;o++){
let a=o?n[o-1].to:e,s=o<n.length?n[o].from:t;for(let l=a;l<s;){let a=rse[l]
;if(256==a){let a=l+1;for(;;)if(a==s){if(o==n.length)break
;a=n[o++].to,s=o<n.length?n[o].from:t}else{if(256!=rse[a])break;a++}
let c=1==i,u=c==(1==(a<t?rse[a]:r))?c?1:2:r
;for(let t=a,r=o,i=r?n[r-1].to:e;t>l;)t==i&&(t=n[--r].from,
i=r?n[r-1].to:e),rse[--t]=u;l=a}else i=a,l++}}}(o,i,r,s),ose(e,o,i,t,n,r,a)}
function ase(e){return[new tse(0,e,0)]}let sse="";function lse(e,t,n,r,o){var i
;let a=r.head-e.from,s=tse.find(t,a,null!==(i=r.bidiLevel)&&void 0!==i?i:-1,r.assoc),l=t[s],c=l.side(o,n)
;if(a==c){let e=s+=o?1:-1;if(e<0||e>=t.length)return null
;l=t[s=e],a=l.side(!o,n),c=l.side(o,n)}let u=Zre(e.text,a,l.forward(o,n))
;(u<l.from||u>l.to)&&(u=c),sse=e.text.slice(Math.min(a,u),Math.max(a,u))
;let d=s==(o?t.length-1:0)?null:t[s+(o?1:-1)]
;return d&&u==c&&d.level+(o?0:1)<l.level?doe.cursor(d.side(!o,n)+e.from,d.forward(o,n)?1:-1,d.level):doe.cursor(u+e.from,l.forward(o,n)?-1:1,l.level)
}function cse(e,t,n){for(let r=t;r<n;r++){let t=Jae(e.charCodeAt(r))
;if(1==t)return Zae;if(2==t||4==t)return Vae}return Zae}
const use=foe.define(),dse=foe.define(),pse=foe.define(),hse=foe.define(),fse=foe.define(),mse=foe.define(),gse=foe.define(),vse=foe.define({
combine:e=>e.some((e=>e))}),bse=foe.define({combine:e=>e.some((e=>e))
}),Ose=foe.define();class yse{
constructor(e,t="nearest",n="nearest",r=5,o=5,i=!1){
this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=o,this.isSnapshot=i}
map(e){
return e.empty?this:new yse(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 yse(doe.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)
}}const wse=zoe.define({map:(e,t)=>e.map(t)}),xse=zoe.define()
;function kse(e,t,n){let r=e.facet(hse)
;r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)
}const Sse=foe.define({combine:e=>!e.length||e[0]});let _se=0
;const Ese=foe.define();class Tse{constructor(e,t,n,r,o){
this.id=e,this.create=t,
this.domEventHandlers=n,this.domEventObservers=r,this.extension=o(this)}
static define(e,t){
const{eventHandlers:n,eventObservers:r,provide:o,decorations:i}=t||{}
;return new Tse(_se++,e,n,r,(e=>{let t=[Ese.of(e)];return i&&t.push(Dse.of((t=>{
let n=t.plugin(e);return n?i(n):Mae.none}))),o&&t.push(o(e)),t}))}
static fromClass(e,t){return Tse.define((t=>new e(t)),t)}}class Cse{
constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){
if(this.value){if(this.mustUpdate){let e=this.mustUpdate
;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(P$){
if(kse(e.state,P$,"CodeMirror plugin crashed"),this.value.destroy)try{
this.value.destroy()}catch(O_e){}this.deactivate()}}}else if(this.spec)try{
this.value=this.spec.create(e)}catch(P$){
kse(e.state,P$,"CodeMirror plugin crashed"),this.deactivate()}return this}
destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{
this.value.destroy()}catch(P$){kse(e.state,P$,"CodeMirror plugin crashed")}}
deactivate(){this.spec=this.value=null}}
const Ase=foe.define(),Pse=foe.define(),Dse=foe.define(),$se=foe.define(),Rse=foe.define(),Nse=foe.define()
;function Ise(e,t){let n=e.state.facet(Nse);if(!n.length)return n
;let r=n.map((t=>t instanceof Function?t(e):t)),o=[]
;return lie.spans(r,t.from,t.to,{point(){},span(e,n,r,i){
let a=e-t.from,s=n-t.from,l=o;for(let o=r.length-1;o>=0;o--,i--){
let e,n=r[o].spec.bidiIsolate
;if(null==n&&(n=cse(t.text,a,s)),i>0&&l.length&&(e=l[l.length-1]).to==a&&e.direction==n)e.to=s,
l=e.inner;else{let e={from:a,to:s,direction:n,inner:[]};l.push(e),l=e.inner}}}
}),o}const Mse=foe.define();function Lse(e){let t=0,n=0,r=0,o=0
;for(let i of e.state.facet(Mse)){let a=i(e)
;a&&(null!=a.left&&(t=Math.max(t,a.left)),
null!=a.right&&(n=Math.max(n,a.right)),
null!=a.top&&(r=Math.max(r,a.top)),null!=a.bottom&&(o=Math.max(o,a.bottom)))}
return{left:t,right:n,top:r,bottom:o}}const Bse=foe.define();class Qse{
constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){
return new Qse(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 r=e[t-1]
;if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(t-1,1)}}
return e.splice(t,0,n),e}static extendWithRanges(e,t){if(0==t.length)return e
;let n=[];for(let r=0,o=0,i=0,a=0;;r++){
let s=r==e.length?null:e[r],l=i-a,c=s?s.fromB:1e9;for(;o<t.length&&t[o]<c;){
let e=t[o],r=t[o+1],i=Math.max(a,e),s=Math.min(c,r)
;if(i<=s&&new Qse(i+l,s+l,i,s).addToSet(n),r>c)break;o+=2}if(!s)return n
;new Qse(s.fromA,s.toA,s.fromB,s.toB).addToSet(n),i=s.toA,a=s.toB}}}class jse{
constructor(e,t,n){
this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,
this.changes=roe.empty(this.startState.doc.length)
;for(let o of n)this.changes=this.changes.compose(o.changes);let r=[]
;this.changes.iterChangedRanges(((e,t,n,o)=>r.push(new Qse(e,t,n,o)))),
this.changedRanges=r}static create(e,t,n){return new jse(e,t,n)}
get viewportChanged(){return(4&this.flags)>0}get heightChanged(){
return(2&this.flags)>0}get geometryChanged(){
return this.docChanged||(10&this.flags)>0}get focusChanged(){
return(1&this.flags)>0}get docChanged(){return!this.changes.empty}
get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){
return 0==this.flags&&0==this.transactions.length}}class Use extends rae{
get length(){return this.view.state.doc.length}constructor(e){
super(),this.view=e,
this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,
this.hasComposition=null,
this.markedForComposition=new Set,this.editContextFormatting=Mae.none,
this.lastCompositionAfterCursor=!1,
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 $ae],
this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Qse(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:e,toA:t})=>t<this.minWidthFrom||e>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),
this.updateEditContextFormatting(e);let r=-1
;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?r=this.domChanged.newSel.head:function(e,t){
let n=!1;t&&e.iterChangedRanges(((e,r)=>{e<t.to&&r>t.from&&(n=!0)}));return n
}(e.changes,this.hasComposition)||e.selectionSet||(r=e.state.selection.main.head))
;let o=r>-1?function(e,t,n){let r=qse(e,n);if(!r)return null
;let{node:o,from:i,to:a}=r,s=o.nodeValue;if(/[\n\r]/.test(s))return null
;if(e.state.doc.sliceString(r.from,r.to)!=s)return null
;let l=t.invertedDesc,c=new Qse(l.mapPos(i),l.mapPos(a),i,a),u=[]
;for(let d=o.parentNode;;d=d.parentNode){let t=rae.get(d)
;if(t instanceof wae)u.push({node:d,deco:t.mark});else{
if(t instanceof $ae||"DIV"==d.nodeName&&d.parentNode==e.contentDOM)return{
range:c,text:o,marks:u,line:d};if(d==e.contentDOM)return null;u.push({node:d,
deco:new Lae({inclusive:!0,attributes:Dae(d),tagName:d.tagName.toLowerCase()})})
}}}(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){
this.markedForComposition.clear();let{from:t,to:r}=this.hasComposition
;n=new Qse(t,r,e.changes.mapPos(t,-1),e.changes.mapPos(r,1)).addToSet(n.slice())
}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB
}:null,(Oae.ie||Oae.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0)
;let i=function(e,t,n){let r=new zse;return lie.compare(e,t,n,r),r.changes
}(this.decorations,this.updateDeco(),e.changes)
;return n=Qse.extendWithRanges(n,i),
!!(7&this.flags||0!=n.length)&&(this.updateInner(n,e.startState.doc.length,o),
e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){
this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n)
;let{observer:r}=this.view;r.ignore((()=>{
this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",
this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":""
;let e=Oae.chrome||Oae.ios?{node:r.selectionRange.focusNode,written:!1}:void 0
;this.sync(this.view,e),
this.flags&=-8,e&&(e.written||r.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),
this.dom.style.height=""})),this.markedForComposition.forEach((e=>e.flags&=-9))
;let o=[]
;if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let i of this.children)i instanceof Rae&&i.widget instanceof Fse&&o.push(i.dom)
;r.updateGaps(o)}updateChildren(e,t,n){
let r=n?n.range.addToSet(e.slice()):e,o=this.childCursor(t)
;for(let i=r.length-1;;i--){let e=i>=0?r[i]:null;if(!e)break
;let t,a,s,l,{fromA:c,toA:u,fromB:d,toB:p}=e
;if(n&&n.range.fromB<p&&n.range.toB>d){
let e=Fae.build(this.view.state.doc,d,n.range.fromB,this.decorations,this.dynamicDecorationMap),r=Fae.build(this.view.state.doc,n.range.toB,p,this.decorations,this.dynamicDecorationMap)
;a=e.breakAtStart,s=e.openStart,l=r.openEnd;let o=this.compositionView(n)
;r.breakAtStart?o.breakAfter=1:r.content.length&&o.merge(o.length,o.length,r.content[0],!1,r.openStart,0)&&(o.breakAfter=r.content[0].breakAfter,
r.content.shift()),
e.content.length&&o.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),
t=e.content.concat(o).concat(r.content)
}else({content:t,breakAtStart:a,openStart:s,openEnd:l}=Fae.build(this.view.state.doc,d,p,this.decorations,this.dynamicDecorationMap))
;let{i:h,off:f}=o.findPos(u,1),{i:m,off:g}=o.findPos(c,-1)
;aae(this,m,g,h,f,t,a,s,l)}n&&this.fixCompositionDOM(n)}
updateEditContextFormatting(e){
this.editContextFormatting=this.editContextFormatting.map(e.changes)
;for(let t of e.transactions)for(let e of t.effects)e.is(xse)&&(this.editContextFormatting=e.value)
}compositionView(e){let t=new yae(e.text.nodeValue);t.flags|=8
;for(let{deco:r}of e.marks)t=new wae(r,[t],t.length);let n=new $ae
;return n.append(t,0),n}fixCompositionDOM(e){let t=(e,t)=>{
t.flags|=8|(t.children.some((e=>7&e.flags))?1:0),
this.markedForComposition.add(t);let n=rae.get(e)
;n&&n!=t&&(n.dom=null),t.setDOM(e)
},n=this.childPos(e.range.fromB,1),r=this.children[n.i];t(e.line,r)
;for(let o=e.marks.length-1;o>=-1;o--)n=r.childPos(n.off,1),
r=r.children[n.i],t(o>=0?e.marks[o].node:e.text,r)}updateSelection(e=!1,t=!1){
!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange()
;let n=this.view.root.activeElement,r=n==this.dom,o=!r&&Iie(this.dom,this.view.observer.selectionRange)&&!(n&&this.dom.contains(n))
;if(!(r||t||o))return;let i=this.forceSelection;this.forceSelection=!1
;let a=this.view.state.selection.main,s=this.moveToLine(this.domAtPos(a.anchor)),l=a.empty?s:this.moveToLine(this.domAtPos(a.head))
;if(Oae.gecko&&a.empty&&!this.hasComposition&&(1==(c=s).node.nodeType&&c.node.firstChild&&(0==c.offset||"false"==c.node.childNodes[c.offset-1].contentEditable)&&(c.offset==c.node.childNodes.length||"false"==c.node.childNodes[c.offset].contentEditable))){
let e=document.createTextNode("")
;this.view.observer.ignore((()=>s.node.insertBefore(e,s.node.childNodes[s.offset]||null))),
s=l=new tae(e,0),i=!0}var c;let u=this.view.observer.selectionRange
;!i&&u.focusNode&&(Lie(s.node,s.offset,u.anchorNode,u.anchorOffset)&&Lie(l.node,l.offset,u.focusNode,u.focusOffset)||this.suppressWidgetCursorChange(u,a))||(this.view.observer.ignore((()=>{
Oae.android&&Oae.chrome&&this.dom.contains(u.focusNode)&&function(e,t){
for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0
;return!1}(u.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({
preventScroll:!0}));let e=Rie(this.view.root);if(e)if(a.empty){if(Oae.gecko){
let e=(t=s.node,
r=s.offset,1!=t.nodeType?0:(r&&"false"==t.childNodes[r-1].contentEditable?1:0)|(r<t.childNodes.length&&"false"==t.childNodes[r].contentEditable?2:0))
;if(e&&3!=e){let t=(1==e?Jie:eae)(s.node,s.offset)
;t&&(s=new tae(t.node,t.offset))}}
e.collapse(s.node,s.offset),null!=a.bidiLevel&&void 0!==e.caretBidiLevel&&(e.caretBidiLevel=a.bidiLevel)
}else if(e.extend){e.collapse(s.node,s.offset);try{e.extend(l.node,l.offset)
}catch(O_e){}}else{let t=document.createRange()
;a.anchor>a.head&&([s,l]=[l,s]),t.setEnd(l.node,l.offset),
t.setStart(s.node,s.offset),e.removeAllRanges(),e.addRange(t)}else;var t,r
;o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),n&&n.focus())
})),this.view.observer.setSelectionRange(s,l)),
this.impreciseAnchor=s.precise?null:new tae(u.anchorNode,u.anchorOffset),
this.impreciseHead=l.precise?null:new tae(u.focusNode,u.focusOffset)}
suppressWidgetCursorChange(e,t){
return this.hasComposition&&t.empty&&Lie(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=Rie(e.root),{anchorNode:r,anchorOffset:o}=e.observer.selectionRange
;if(!(n&&t.empty&&t.assoc&&n.modify))return;let i=$ae.find(this,t.head)
;if(!i)return;let a=i.posAtStart;if(t.head==a||t.head==a+i.length)return
;let s=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1)
;if(!s||!l||s.bottom>l.top)return;let c=this.domAtPos(t.head+t.assoc)
;n.collapse(c.node,c.offset),
n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),
e.observer.readSelectionRange();let u=e.observer.selectionRange
;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&n.collapse(r,o)}
moveToLine(e){let t,n=this.dom;if(e.node!=n)return e
;for(let r=e.offset;!t&&r<n.childNodes.length;r++){
let e=rae.get(n.childNodes[r]);e instanceof $ae&&(t=e.domAtPos(0))}
for(let r=e.offset-1;!t&&r>=0;r--){let e=rae.get(n.childNodes[r])
;e instanceof $ae&&(t=e.domAtPos(e.length))}
return t?new tae(t.node,t.offset,!0):e}nearest(e){for(let t=e;t;){
let e=rae.get(t);if(e&&e.rootView==this)return e;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 e=this.children[t];if(n<e.length||e instanceof $ae)break;t++,n=0}
return this.children[t].domAtPos(n)}coordsAt(e,t){let n=null,r=0
;for(let o=this.length,i=this.children.length-1;i>=0;i--){
let a=this.children[i],s=o-a.breakAfter,l=s-a.length;if(s<e)break
;if(l<=e&&(l<e||a.covers(-1))&&(s>e||a.covers(1))&&(!n||a instanceof $ae&&!(n instanceof $ae&&t>=0)))n=a,
r=l;else if(n&&l==e&&s==e&&a instanceof Rae&&Math.abs(t)<2){
if(a.deco.startSide<0)break;i&&(n=null)}o=l}return n?n.coordsAt(e-r,t):null}
coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),r=this.children[t]
;if(!(r instanceof $ae))return null;for(;r.children.length;){
let{i:e,off:t}=r.childPos(n,1);for(;;e++){if(e==r.children.length)return null
;if((r=r.children[e]).length)break}n=t}if(!(r instanceof yae))return null
;let o=Zre(r.text,n);if(o==n)return null;let i=Xie(r.dom,n,o).getClientRects()
;for(let a=0;a<i.length;a++){let e=i[a]
;if(a==i.length-1||e.top<e.bottom&&e.left<e.right)return e}return null}
measureVisibleLineHeights(e){
let t=[],{from:n,to:r}=e,o=this.view.contentDOM.clientWidth,i=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,s=this.view.textDirection==Hae.LTR
;for(let l=0,c=0;c<this.children.length;c++){let e=this.children[c],u=l+e.length
;if(u>r)break;if(l>=n){let n=e.dom.getBoundingClientRect()
;if(t.push(n.height),i){let t=e.dom.lastChild,r=t?Mie(t):[];if(r.length){
let e=r[r.length-1],t=s?e.right-n.left:n.right-e.left;t>a&&(a=t,this.minWidth=o,
this.minWidthFrom=l,this.minWidthTo=u)}}}l=u+e.breakAfter}return t}
textDirectionAt(e){let{i:t}=this.childPos(e,1)
;return"rtl"==getComputedStyle(this.children[t].dom).direction?Hae.RTL:Hae.LTR}
measureTextSize(){for(let o of this.children)if(o instanceof $ae){
let e=o.measureTextSize();if(e)return e}
let e,t,n,r=document.createElement("div")
;return r.className="cm-line",r.style.width="99999px",
r.style.position="absolute",
r.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{
this.dom.appendChild(r);let o=Mie(r.firstChild)[0]
;e=r.getBoundingClientRect().height,t=o?o.width/27:7,n=o?o.height:e,r.remove()
})),{lineHeight:e,charWidth:t,textHeight:n}}childCursor(e=this.length){
let t=this.children.length
;return t&&(e-=this.children[--t].length),new iae(this.children,e,t)}
computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){
let o=r==t.viewports.length?null:t.viewports[r],i=o?o.from-1:this.length
;if(i>n){let r=(t.lineBlockAt(i).bottom-t.lineBlockAt(n).top)/this.view.scaleY
;e.push(Mae.replace({widget:new Fse(r),block:!0,inclusive:!0,isBlockGap:!0
}).range(n,i))}if(!o)break;n=o.to+1}return Mae.set(e)}updateDeco(){
let e=1,t=this.view.state.facet(Dse).map((t=>(this.dynamicDecorationMap[e++]="function"==typeof t)?t(this.view):t)),n=!1,r=this.view.state.facet($se).map(((e,t)=>{
let r="function"==typeof e;return r&&(n=!0),r?e(this.view):e}))
;for(r.length&&(this.dynamicDecorationMap[e++]=n,
t.push(lie.join(r))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1
;return this.decorations}scrollIntoView(e){if(e.isSnapshot){
let t=this.view.viewState.lineBlockAt(e.range.head)
;return this.view.scrollDOM.scrollTop=t.top-e.yMargin,
void(this.view.scrollDOM.scrollLeft=e.xMargin)}
for(let l of this.view.state.facet(Ose))try{if(l(this.view,e.range,e))return!0
}catch(P$){kse(this.view.state,P$,"scroll handler")}
let t,{range:n}=e,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1)
;if(!r)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={
left:Math.min(r.left,t.left),top:Math.min(r.top,t.top),
right:Math.max(r.right,t.right),bottom:Math.max(r.bottom,t.bottom)})
;let o=Lse(this.view),i={left:r.left-o.left,top:r.top-o.top,
right:r.right+o.right,bottom:r.bottom+o.bottom
},{offsetWidth:a,offsetHeight:s}=this.view.scrollDOM;!function(e,t,n,r,o,i,a,s){
let l=e.ownerDocument,c=l.defaultView||window
;for(let u=e,d=!1;u&&!d;)if(1==u.nodeType){let e,p=u==l.body,h=1,f=1
;if(p)e=qie(c);else{
if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(d=!0),
u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){
u=u.assignedSlot||u.parentNode;continue}let t=u.getBoundingClientRect()
;({scaleX:h,scaleY:f}=zie(u,t)),e={left:t.left,right:t.left+u.clientWidth*h,
top:t.top,bottom:t.top+u.clientHeight*f}}let m=0,g=0
;if("nearest"==o)t.top<e.top?(g=-(e.top-t.top+a),
n>0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+g+a)):t.bottom>e.bottom&&(g=t.bottom-e.bottom+a,
n<0&&t.top-g<e.top&&(g=-(e.top+g-t.top+a)));else{
let r=t.bottom-t.top,i=e.bottom-e.top
;g=("center"==o&&r<=i?t.top+r/2-i/2:"start"==o||"center"==o&&n<0?t.top-a:t.bottom-i+a)-e.top
}
if("nearest"==r?t.left<e.left?(m=-(e.left-t.left+i),n>0&&t.right>e.right+m&&(m=t.right-e.right+m+i)):t.right>e.right&&(m=t.right-e.right+i,
n<0&&t.left<e.left+m&&(m=-(e.left+m-t.left+i))):m=("center"==r?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==r==s?t.left-i:t.right-(e.right-e.left)+i)-e.left,
m||g)if(p)c.scrollBy(m,g);else{let e=0,n=0;if(g){let e=u.scrollTop
;u.scrollTop+=g/f,n=(u.scrollTop-e)*f}if(m){let t=u.scrollLeft
;u.scrollLeft+=m/h,e=(u.scrollLeft-t)*h}t={left:t.left-e,top:t.top-n,
right:t.right-e,bottom:t.bottom-n
},e&&Math.abs(e-m)<1&&(r="nearest"),n&&Math.abs(n-g)<1&&(o="nearest")}if(p)break
;u=u.assignedSlot||u.parentNode}else{if(11!=u.nodeType)break;u=u.host}
}(this.view.scrollDOM,i,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,a),-a),Math.max(Math.min(e.yMargin,s),-s),this.view.textDirection==Hae.LTR)
}}class Fse extends Nae{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 qse(e,t){let n=e.observer.selectionRange;if(!n.focusNode)return null
;let r=Jie(n.focusNode,n.focusOffset),o=eae(n.focusNode,n.focusOffset),i=r||o
;if(o&&r&&o.node!=r.node){let t=rae.get(o.node)
;if(!t||t instanceof yae&&t.text!=o.node.nodeValue)i=o;else if(e.docView.lastCompositionAfterCursor){
let e=rae.get(r.node);!e||e instanceof yae&&e.text!=r.node.nodeValue||(i=o)}}
if(e.docView.lastCompositionAfterCursor=i!=r,!i)return null;let a=t-i.offset
;return{from:a,to:a+i.node.nodeValue.length,node:i.node}}let zse=class{
constructor(){this.changes=[]}compareRange(e,t){Uae(e,t,this.changes)}
comparePoint(e,t){Uae(e,t,this.changes)}};function Hse(e,t){
return t.left>e?t.left-e:Math.max(0,e-t.right)}function Zse(e,t){
return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function Vse(e,t){
return e.top<t.bottom-1&&e.bottom>t.top+1}function Wse(e,t){return t<e.top?{
top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function Xse(e,t){
return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}
function Yse(e,t,n){let r,o,i,a,s,l,c,u,d=!1
;for(let h=e.firstChild;h;h=h.nextSibling){let e=Mie(h)
;for(let p=0;p<e.length;p++){let f=e[p]
;o&&Vse(o,f)&&(f=Wse(Xse(f,o.bottom),o.top));let m=Hse(t,f),g=Zse(n,f)
;if(0==m&&0==g)return 3==h.nodeType?Gse(h,t,n):Yse(h,t,n)
;if(!r||a>g||a==g&&i>m){r=h,o=f,i=m,a=g;let s=g?n<f.top?-1:1:m?t<f.left?-1:1:0
;d=!s||(s>0?p<e.length-1:p>0)}
0==m?n>f.bottom&&(!c||c.bottom<f.bottom)?(s=h,c=f):n<f.top&&(!u||u.top>f.top)&&(l=h,
u=f):c&&Vse(c,f)?c=Xse(c,f.bottom):u&&Vse(u,f)&&(u=Wse(u,f.top))}}
if(c&&c.bottom>=n?(r=s,o=c):u&&u.top<=n&&(r=l,o=u),!r)return{node:e,offset:0}
;let p=Math.max(o.left,Math.min(o.right,t))
;return 3==r.nodeType?Gse(r,p,n):d&&"false"!=r.contentEditable?Yse(r,p,n):{
node:e,
offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(o.left+o.right)/2?1:0)}
}function Gse(e,t,n){let r=e.nodeValue.length,o=-1,i=1e9,a=0
;for(let s=0;s<r;s++){let r=Xie(e,s,s+1).getClientRects()
;for(let l=0;l<r.length;l++){let c=r[l];if(c.top==c.bottom)continue
;a||(a=t-c.left);let u=(c.top>n?c.top-n:n-c.bottom)-1
;if(c.left-1<=t&&c.right+1>=t&&u<i){let n=t>=(c.left+c.right)/2,r=n
;if(Oae.chrome||Oae.gecko){
Xie(e,s).getBoundingClientRect().left==c.right&&(r=!n)}if(u<=0)return{node:e,
offset:s+(r?1:0)};o=s+(r?1:0),i=u}}}return{node:e,
offset:o>-1?o:a>0?e.nodeValue.length:0}}function Kse(e,t,n,r=-1){var o,i
;let a,s=e.contentDOM.getBoundingClientRect(),l=s.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,{x:u,y:d}=t,p=d-l
;if(p<0)return 0;if(p>c)return e.state.doc.length
;for(let y=e.viewState.heightOracle.textHeight/2,w=!1;a=e.elementAtHeight(p),
a.type!=Iae.Text;)for(;p=r>0?a.bottom+y:a.top-y,!(p>=0&&p<=c);){
if(w)return n?null:0;w=!0,r=-r}d=l+p;let h=a.from
;if(h<e.viewport.from)return 0==e.viewport.from?0:n?null:Jse(e,s,a,u,d)
;if(h>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:Jse(e,s,a,u,d)
;let f=e.dom.ownerDocument,m=e.root.elementFromPoint?e.root:f,g=m.elementFromPoint(u,d)
;g&&!e.contentDOM.contains(g)&&(g=null),
g||(u=Math.max(s.left+1,Math.min(s.right-1,u)),
g=m.elementFromPoint(u,d),g&&!e.contentDOM.contains(g)&&(g=null));let v,b=-1
;if(g&&0!=(null===(o=e.docView.nearest(g))||void 0===o?void 0:o.isEditable))if(f.caretPositionFromPoint){
let e=f.caretPositionFromPoint(u,d);e&&({offsetNode:v,offset:b}=e)
}else if(f.caretRangeFromPoint){let t=f.caretRangeFromPoint(u,d)
;t&&(({startContainer:v,startOffset:b}=t),
(!e.contentDOM.contains(v)||Oae.safari&&function(e,t,n){let r
;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1
;for(let o=e.nextSibling;o;o=o.nextSibling)if(1!=o.nodeType||"BR"!=o.nodeName)return!1
;return Xie(e,r-1,r).getBoundingClientRect().left>n
}(v,b,u)||Oae.chrome&&function(e,t,n){if(0!=t)return!1;for(let o=e;;){
let e=o.parentNode;if(!e||1!=e.nodeType||e.firstChild!=o)return!1
;if(e.classList.contains("cm-line"))break;o=e}
let r=1==e.nodeType?e.getBoundingClientRect():Xie(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect()
;return n-r.left>5}(v,b,u))&&(v=void 0))}if(!v||!e.docView.dom.contains(v)){
let t=$ae.find(e.docView,h);if(!t)return p>a.top+a.height/2?a.to:a.from
;({node:v,offset:b}=Yse(t.dom,u,d))}let O=e.docView.nearest(v);if(!O)return null
;if(O.isWidget&&1==(null===(i=O.dom)||void 0===i?void 0:i.nodeType)){
let e=O.dom.getBoundingClientRect()
;return t.y<e.top||t.y<=e.bottom&&t.x<=(e.left+e.right)/2?O.posAtStart:O.posAtEnd
}return O.localPosFromDOM(v,b)+O.posAtStart}function Jse(e,t,n,r,o){
let i=Math.round((r-t.left)*e.defaultCharacterWidth)
;if(e.lineWrapping&&n.height>1.5*e.defaultLineHeight){
let t=e.viewState.heightOracle.textHeight
;i+=Math.floor((o-n.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength
}let a=e.state.sliceDoc(n.from,n.to);return n.from+function(e,t,n,r){
for(let o=0,i=0;;){if(i>=t)return o;if(o==e.length)break
;i+=9==e.charCodeAt(o)?n-i%n:1,o=Zre(e,o)}return!0===r?-1:e.length
}(a,i,e.state.tabSize)}function ele(e,t,n,r){let o=function(e,t){
let n=e.lineBlockAt(t)
;if(Array.isArray(n.type))for(let r of n.type)if(r.to>t||r.to==t&&(r.to==n.to||r.type==Iae.Text))return r
;return n
}(e,t.head),i=r&&o.type==Iae.Text&&(e.lineWrapping||o.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>o.from?t.head-1:t.head):null
;if(i){
let t=e.dom.getBoundingClientRect(),r=e.textDirectionAt(o.from),a=e.posAtCoords({
x:n==(r==Hae.LTR)?t.right-1:t.left+1,y:(i.top+i.bottom)/2})
;if(null!=a)return doe.cursor(a,n?-1:1)}return doe.cursor(n?o.to:o.from,n?-1:1)}
function tle(e,t,n,r){
let o=e.state.doc.lineAt(t.head),i=e.bidiSpans(o),a=e.textDirectionAt(o.from)
;for(let s=t,l=null;;){let t=lse(o,i,a,s,n),c=sse;if(!t){
if(o.number==(n?e.state.doc.lines:1))return s
;c="\n",o=e.state.doc.line(o.number+(n?1:-1)),
i=e.bidiSpans(o),t=e.visualLineSide(o,!n)}if(l){if(!l(c))return s}else{
if(!r)return t;l=r(c)}s=t}}function nle(e,t,n){for(;;){let r=0
;for(let o of e)o.between(t-1,t+1,((e,o,i)=>{if(t>e&&t<o){
let i=r||n||(t-e<o-t?-1:1);t=i<0?e:o,r=i}}));if(!r)return t}}
function rle(e,t,n){
let r=nle(e.state.facet(Rse).map((t=>t(e))),n.from,t.head>n.from?-1:1)
;return r==n.from?n:doe.cursor(r,r<n.from?1:-1)}class ole{setSelectionOrigin(e){
this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){
var t
;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.tabFocusMode=-1,
this.lastSelectionOrigin=null,
this.lastSelectionTime=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,Oae.safari&&e.contentDOM.addEventListener("input",(()=>null)),
Oae.gecko&&(t=e.contentDOM.ownerDocument,
Ple.has(t)||(Ple.add(t),t.addEventListener("copy",(()=>{})),
t.addEventListener("cut",(()=>{}))))}handleEvent(e){(function(e,t){
if(!t.bubbles)return!0;if(t.defaultPrevented)return!1
;for(let n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=rae.get(r))&&n.ignoreEvent(t))return!1
;return!0
})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e))
}runHandlers(e,t){let n=this.handlers[e];if(n){
for(let e of n.observers)e(this.view,t);for(let e of n.handlers){
if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}
ensureHandlers(e){let t=function(e){let t=Object.create(null);function n(e){
return t[e]||(t[e]={observers:[],handlers:[]})}for(let r of e){let e=r.spec
;if(e&&e.domEventHandlers)for(let t in e.domEventHandlers){
let o=e.domEventHandlers[t];o&&n(t).handlers.push(ile(r.value,o))}
if(e&&e.domEventObservers)for(let t in e.domEventObservers){
let o=e.domEventObservers[t];o&&n(t).observers.push(ile(r.value,o))}}
for(let r in dle)n(r).handlers.push(dle[r])
;for(let r in ple)n(r).observers.push(ple[r]);return t
}(e),n=this.handlers,r=this.view.contentDOM;for(let o in t)if("scroll"!=o){
let e=!t[o].handlers.length,i=n[o]
;i&&e!=!i.handlers.length&&(r.removeEventListener(o,this.handleEvent),
i=null),i||r.addEventListener(o,this.handleEvent,{passive:e})}
for(let o in n)"scroll"==o||t[o]||r.removeEventListener(o,this.handleEvent)
;this.handlers=t}keydown(e){
if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),
9==e.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0
;if(this.tabFocusMode>0&&27!=e.keyCode&&lle.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),
Oae.android&&Oae.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),
!0;let t
;return!Oae.ios||e.synthetic||e.altKey||e.metaKey||!((t=ale.find((t=>t.keyCode==e.keyCode)))&&!e.ctrlKey||sle.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),
!1):(this.pendingIOSKey=t||e,setTimeout((()=>this.flushIOSKey()),250),!0)}
flushIOSKey(e){let t=this.pendingIOSKey
;return!!t&&(!("Enter"==t.key&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString()))&&(this.pendingIOSKey=void 0,
Yie(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0)))}
ignoreDuringComposition(e){
return!!/^key/.test(e.type)&&(this.composing>0||!!(Oae.safari&&!Oae.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,
!0))}startMouseSelection(e){
this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}
update(e){
this.view.observer.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 ile(e,t){
return(n,r)=>{try{return t.call(e,r,n)}catch(P$){kse(n.state,P$)}}}const ale=[{
key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",
keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,
inputType:"insertLineBreak"},{key:"Delete",keyCode:46,
inputType:"deleteContentForward"}],sle="dthko",lle=[16,17,18,20,91,92,224,225]
;function cle(e){return.7*Math.max(0,e)+8}class ule{constructor(e,t,n,r){
this.view=e,this.startEvent=t,this.style=n,this.mustSelect=r,this.scrollSpeed={
x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function(e){
let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(1==n.nodeType){
if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n
;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}
return null}(e.contentDOM),this.atoms=e.state.facet(Rse).map((t=>t(e)))
;let o=e.contentDOM.ownerDocument
;o.addEventListener("mousemove",this.move=this.move.bind(this)),
o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,
this.multiple=e.state.facet(nie.allowMultipleSelections)&&function(e,t){
let n=e.state.facet(use);return n.length?n[0](t):Oae.mac?t.metaKey:t.ctrlKey
}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection
;if(n.empty)return!1;let r=Rie(e.root);if(!r||0==r.rangeCount)return!0
;let o=r.getRangeAt(0).getClientRects();for(let i=0;i<o.length;i++){let e=o[i]
;if(e.left<=t.clientX&&e.right>=t.clientX&&e.top<=t.clientY&&e.bottom>=t.clientY)return!0
}return!1}(e,t)||1!=Sle(t))&&null}start(e){!1===this.dragging&&this.select(e)}
move(e){var t,n,r;if(0==e.buttons)return this.destroy()
;if(this.dragging||null==this.dragging&&(n=this.startEvent,
r=e,Math.max(Math.abs(n.clientX-r.clientX),Math.abs(n.clientY-r.clientY))<10))return
;this.select(this.lastEvent=e)
;let o=0,i=0,a=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{
left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight
},s=Lse(this.view)
;e.clientX-s.left<=a.left+6?o=-cle(a.left-e.clientX):e.clientX+s.right>=a.right-6&&(o=cle(e.clientX-a.right)),
e.clientY-s.top<=a.top+6?i=-cle(a.top-e.clientY):e.clientY+s.bottom>=a.bottom-6&&(i=cle(e.clientY-a.bottom)),
this.setScrollSpeed(o,i)}up(e){null==this.dragging&&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),
!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null
;for(let n=0;n<e.ranges.length;n++){let r=e.ranges[n],o=null;if(r.empty){
let e=nle(this.atoms,r.from,0);e!=r.from&&(o=doe.cursor(e,-1))}else{
let e=nle(this.atoms,r.from,-1),t=nle(this.atoms,r.to,1)
;e==r.from&&t==r.to||(o=doe.range(r.from==r.anchor?e:t,r.from==r.head?e:t))}
o&&(t||(t=e.ranges.slice()),t[n]=o)}return t?doe.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,!1===this.dragging)||this.view.dispatch({
selection:n,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){
e.transactions.some((e=>e.isUserEvent("input.type")))?this.destroy():this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)
}}
const dle=Object.create(null),ple=Object.create(null),hle=Oae.ie&&Oae.ie_version<15||Oae.ios&&Oae.webkit_version<604
;function fle(e,t){
let n,{state:r}=e,o=1,i=r.toText(t),a=i.lines==r.selection.ranges.length,s=null!=Ele&&r.selection.ranges.every((e=>e.empty))&&Ele==i.toString()
;if(s){let e=-1;n=r.changeByRange((n=>{let s=r.doc.lineAt(n.from)
;if(s.from==e)return{range:n};e=s.from
;let l=r.toText((a?i.line(o++).text:t)+r.lineBreak);return{changes:{from:s.from,
insert:l},range:doe.cursor(n.from+l.length)}}))}else n=a?r.changeByRange((e=>{
let t=i.line(o++);return{changes:{from:e.from,to:e.to,insert:t.text},
range:doe.cursor(e.from+t.length)}})):r.replaceSelection(i);e.dispatch(n,{
userEvent:"input.paste",scrollIntoView:!0})}function mle(e,t,n,r){
if(1==r)return doe.cursor(t,n);if(2==r)return function(e,t,n=1){
let r=e.charCategorizer(t),o=e.doc.lineAt(t),i=t-o.from
;if(0==o.length)return doe.cursor(t);0==i?n=1:i==o.length&&(n=-1);let a=i,s=i
;n<0?a=Zre(o.text,i,!1):s=Zre(o.text,i);let l=r(o.text.slice(a,s));for(;a>0;){
let e=Zre(o.text,a,!1);if(r(o.text.slice(e,a))!=l)break;a=e}for(;s<o.length;){
let e=Zre(o.text,s);if(r(o.text.slice(s,e))!=l)break;s=e}
return doe.range(a+o.from,s+o.from)}(e.state,t,n);{
let n=$ae.find(e.docView,t),r=e.state.doc.lineAt(n?n.posAtEnd:t),o=n?n.posAtStart:r.from,i=n?n.posAtEnd:r.to
;return i<e.state.doc.length&&i==r.to&&i++,doe.range(o,i)}}ple.scroll=e=>{
e.inputState.lastScrollTop=e.scrollDOM.scrollTop,
e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft
},dle.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),
27==t.keyCode&&0!=e.inputState.tabFocusMode&&(e.inputState.tabFocusMode=Date.now()+2e3),
!1),ple.touchstart=(e,t)=>{
e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")
},ple.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")
},dle.mousedown=(e,t)=>{
if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1
;let n=null;for(let r of e.state.facet(pse))if(n=r(e,t),n)break
;if(n||0!=t.button||(n=function(e,t){let n=Ole(e,t),r=Sle(t),o=e.state.selection
;return{update(e){
e.docChanged&&(n.pos=e.changes.mapPos(n.pos),o=o.map(e.changes))},get(t,i,a){
let s,l=Ole(e,t),c=mle(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!i){
let t=mle(e,n.pos,n.bias,r),o=Math.min(t.from,c.from),i=Math.max(t.to,c.to)
;c=o<c.from?doe.range(o,i):doe.range(i,o)}
return i?o.replaceRange(o.main.extend(c.from,c.to)):a&&1==r&&o.ranges.length>1&&(s=function(e,t){
for(let n=0;n<e.ranges.length;n++){let{from:r,to:o}=e.ranges[n]
;if(r<=t&&o>=t)return doe.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))
}return null}(o,l.pos))?s:a?o.addRange(c):doe.create([c])}}}(e,t)),n){
let r=!e.hasFocus
;e.inputState.startMouseSelection(new ule(e,t,n,r)),r&&e.observer.ignore((()=>{
Wie(e.contentDOM);let t=e.root.activeElement
;t&&!t.contains(e.contentDOM)&&t.blur()}));let o=e.inputState.mouseSelection
;if(o)return o.start(t),!1===o.dragging}return!1}
;let gle=(e,t)=>e>=t.top&&e<=t.bottom,vle=(e,t,n)=>gle(t,n)&&e>=n.left&&e<=n.right
;function ble(e,t,n,r){let o=$ae.find(e.docView,t);if(!o)return 1
;let i=t-o.posAtStart;if(0==i)return 1;if(i==o.length)return-1
;let a=o.coordsAt(i,-1);if(a&&vle(n,r,a))return-1;let s=o.coordsAt(i,1)
;return s&&vle(n,r,s)?1:a&&gle(r,a)?-1:1}function Ole(e,t){let n=e.posAtCoords({
x:t.clientX,y:t.clientY},!1);return{pos:n,bias:ble(e,n,t.clientX,t.clientY)}}
const yle=Oae.ie&&Oae.ie_version<=11;let wle=null,xle=0,kle=0;function Sle(e){
if(!yle)return e.detail;let t=wle,n=kle
;return wle=e,kle=Date.now(),xle=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(xle+1)%3:1
}function _le(e,t,n,r){if(!n)return;let o=e.posAtCoords({x:t.clientX,y:t.clientY
},!1),{draggedContent:i}=e.inputState,a=r&&i&&function(e,t){
let n=e.state.facet(dse);return n.length?n[0](t):Oae.mac?!t.altKey:!t.ctrlKey
}(e,t)?{from:i.from,to:i.to}:null,s={from:o,insert:n
},l=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:l,selection:{
anchor:l.mapPos(o,-1),head:l.mapPos(o,1)},userEvent:a?"move.drop":"input.drop"
}),e.inputState.draggedContent=null}dle.dragstart=(e,t)=>{
let{selection:{main:n}}=e.state;if(t.target.draggable){
let r=e.docView.nearest(t.target);if(r&&r.isWidget){
let e=r.posAtStart,t=e+r.length;(e>=n.to||t<=n.from)&&(n=doe.range(e,t))}}
let{inputState:r}=e
;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,
t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),
t.dataTransfer.effectAllowed="copyMove"),!1
},dle.dragend=e=>(e.inputState.draggedContent=null,!1),dle.drop=(e,t)=>{
if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0
;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),o=0,i=()=>{
++o==n.length&&_le(e,t,r.filter((e=>null!=e)).join(e.state.lineBreak),!1)}
;for(let e=0;e<n.length;e++){let t=new FileReader;t.onerror=i,t.onload=()=>{
/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),i()
},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text")
;if(n)return _le(e,t,n,!0),!0}return!1},dle.paste=(e,t)=>{
if(e.state.readOnly)return!0;e.observer.flush();let n=hle?null:t.clipboardData
;return n?(fle(e,n.getData("text/plain")||n.getData("text/uri-list")),
!0):(function(e){let t=e.dom.parentNode;if(!t)return
;let n=t.appendChild(document.createElement("textarea"))
;n.style.cssText="position: fixed; left: -10000px; top: 10px",
n.focus(),setTimeout((()=>{e.focus(),n.remove(),fle(e,n.value)}),50)}(e),!1)}
;let Ele=null;dle.copy=dle.cut=(e,t)=>{
let{text:n,ranges:r,linewise:o}=function(e){let t=[],n=[],r=!1
;for(let o of e.selection.ranges)o.empty||(t.push(e.sliceDoc(o.from,o.to)),
n.push(o));if(!t.length){let o=-1;for(let{from:r}of e.selection.ranges){
let i=e.doc.lineAt(r);i.number>o&&(t.push(i.text),n.push({from:i.from,
to:Math.min(e.doc.length,i.to+1)})),o=i.number}r=!0}return{
text:t.join(e.lineBreak),ranges:n,linewise:r}}(e.state);if(!n&&!o)return!1
;Ele=o?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,
scrollIntoView:!0,userEvent:"delete.cut"});let i=hle?null:t.clipboardData
;return i?(i.clearData(),i.setData("text/plain",n),!0):(function(e,t){
let n=e.dom.parentNode;if(!n)return
;let r=n.appendChild(document.createElement("textarea"))
;r.style.cssText="position: fixed; left: -10000px; top: 10px",
r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout((()=>{
r.remove(),e.focus()}),50)}(e,n),!1)};const Tle=Uoe.define();function Cle(e,t){
let n=[];for(let r of e.facet(gse)){let o=r(e,t);o&&n.push(o)}
return n?e.update({effects:n,annotations:Tle.of(!0)}):null}function Ale(e){
setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){
let n=Cle(e.state,t);n?e.dispatch(n):e.update([])}}),10)}ple.focus=e=>{
e.inputState.lastFocusTime=Date.now(),
e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,
e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),Ale(e)},ple.blur=e=>{
e.observer.clearSelectionRange(),Ale(e)
},ple.compositionstart=ple.compositionupdate=e=>{
e.observer.editContext||(null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),
e.inputState.composing<0&&(e.inputState.composing=0))},ple.compositionend=e=>{
e.observer.editContext||(e.inputState.composing=-1,
e.inputState.compositionEndedAt=Date.now(),
e.inputState.compositionPendingKey=!0,
e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,
e.inputState.compositionFirstChange=null,
Oae.chrome&&Oae.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{
e.inputState.composing<0&&e.docView.hasComposition&&e.update([])}),50))
},ple.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()
},dle.beforeinput=(e,t)=>{var n;let r
;if(Oae.chrome&&Oae.android&&(r=ale.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(r.key,r.keyCode),
"Backspace"==r.key||"Delete"==r.key)){
let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0
;setTimeout((()=>{var n
;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),
e.focus())}),100)}
return Oae.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),
Oae.safari&&"insertText"==t.inputType&&e.inputState.composing>=0&&setTimeout((()=>ple.compositionend(e,t)),20),
!1};const Ple=new Set;const Dle=["pre-wrap","normal","pre-line","break-spaces"]
;class $le{constructor(e){
this.lineWrapping=e,this.doc=$re.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){if(!this.lineWrapping)return this.lineHeight
;return(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight
}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){
return Dle.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1
;for(let n=0;n<e.length;n++){let r=e[n]
;r<0?n++:this.heightSamples[Math.floor(10*r)]||(t=!0,
this.heightSamples[Math.floor(10*r)]=!0)}return t}refresh(e,t,n,r,o,i){
let a=Dle.indexOf(e)>-1,s=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=a
;if(this.lineWrapping=a,
this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=o,s){
this.heightSamples={};for(let e=0;e<i.length;e++){let t=i[e]
;t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return s}}class Rle{
constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){
return this.index<this.heights.length}}class Nle{constructor(e,t,n,r,o){
this.from=e,this.length=t,this.top=n,this.height=r,this._content=o}get type(){
return"number"==typeof this._content?Iae.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 Qae?this._content.widget:null}
get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}
join(e){
let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e])
;return new Nle(this.from,this.length+e.length,this.top,this.height+e.height,t)}
}var Ile=function(e){
return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",
e}(Ile||(Ile={}));const Mle=.001;class Lle{constructor(e,t,n=2){
this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}
set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){
this.height!=t&&(Math.abs(this.height-t)>Mle&&(e.heightChanged=!0),
this.height=t)}replace(e,t,n){return Lle.of(n)}decomposeLeft(e,t){t.push(this)}
decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let o=this,i=n.doc
;for(let a=r.length-1;a>=0;a--){
let{fromA:s,toA:l,fromB:c,toB:u}=r[a],d=o.lineAt(s,Ile.ByPosNoHeight,n.setDoc(t),0,0),p=d.to>=l?d:o.lineAt(l,Ile.ByPosNoHeight,n,0,0)
;for(u+=p.to-l,
l=p.to;a>0&&d.from<=r[a-1].toA;)s=r[a-1].fromA,c=r[a-1].fromB,a--,
s<d.from&&(d=o.lineAt(s,Ile.ByPosNoHeight,n,0,0));c+=d.from-s,s=d.from
;let h=qle.build(n.setDoc(i),e,c,u);o=o.replace(s,l,h)}
return o.updateHeight(n,0)}static empty(){return new Qle(0,0)}static of(e){
if(1==e.length)return e[0];let t=0,n=e.length,r=0,o=0;for(;;)if(t==n)if(r>2*o){
let o=e[t-1]
;o.break?e.splice(--t,1,o.left,null,o.right):e.splice(--t,1,o.left,o.right),
n+=1+o.break,r-=o.size}else{if(!(o>2*r))break;{let t=e[n]
;t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),
n+=2+t.break,o-=t.size}}else if(r<o){let n=e[t++];n&&(r+=n.size)}else{
let t=e[--n];t&&(o+=t.size)}let i=0
;return null==e[t-1]?(i=1,t--):null==e[t]&&(i=1,
n++),new Ule(Lle.of(e.slice(0,t)),i,Lle.of(e.slice(n)))}}Lle.prototype.size=1
;class Ble extends Lle{constructor(e,t,n){super(e,t),this.deco=n}
blockAt(e,t,n,r){return new Nle(r,this.length,n,this.height,this.deco||0)}
lineAt(e,t,n,r,o){return this.blockAt(0,n,r,o)}forEachLine(e,t,n,r,o,i){
e<=o+this.length&&t>=o&&i(this.blockAt(0,n,r,o))}updateHeight(e,t=0,n=!1,r){
return r&&r.from<=t&&r.more&&this.setHeight(e,r.heights[r.index++]),
this.outdated=!1,this}toString(){return`block(${this.length})`}}
class Qle extends Ble{constructor(e,t){
super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}
blockAt(e,t,n,r){return new Nle(r,this.length,n,this.height,this.breaks)}
replace(e,t,n){let r=n[0]
;return 1==n.length&&(r instanceof Qle||r instanceof jle&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof jle?r=new Qle(r.length,this.height):r.height=this.height,
this.outdated||(r.outdated=!1),r):Lle.of(n)}updateHeight(e,t=0,n=!1,r){
return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.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 jle extends Lle{constructor(e){super(e,0)}heightMetrics(e,t){
let n,r=e.doc.lineAt(t).number,o=e.doc.lineAt(t+this.length).number,i=o-r+1,a=0
;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*i)
;n=t/i,this.length>i+1&&(a=(this.height-t)/(this.length-i-1))
}else n=this.height/i;return{firstLine:r,lastLine:o,perLine:n,perChar:a}}
blockAt(e,t,n,r){
let{firstLine:o,lastLine:i,perLine:a,perChar:s}=this.heightMetrics(t,r)
;if(t.lineWrapping){
let o=r+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length)),i=t.doc.lineAt(o),l=a+i.length*s,c=Math.max(n,e-l/2)
;return new Nle(i.from,i.length,c,l,0)}{
let r=Math.max(0,Math.min(i-o,Math.floor((e-n)/a))),{from:s,length:l}=t.doc.line(o+r)
;return new Nle(s,l,n+a*r,a,0)}}lineAt(e,t,n,r,o){
if(t==Ile.ByHeight)return this.blockAt(e,n,r,o);if(t==Ile.ByPosNoHeight){
let{from:t,to:r}=n.doc.lineAt(e);return new Nle(t,r-t,0,0,0)}
let{firstLine:i,perLine:a,perChar:s}=this.heightMetrics(n,o),l=n.doc.lineAt(e),c=a+l.length*s,u=l.number-i,d=r+a*u+s*(l.from-o-u)
;return new Nle(l.from,l.length,Math.max(r,Math.min(d,r+this.height-c)),c,0)}
forEachLine(e,t,n,r,o,i){e=Math.max(e,o),t=Math.min(t,o+this.length)
;let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(n,o)
;for(let c=e,u=r;c<=t;){let t=n.doc.lineAt(c);if(c==e){let n=t.number-a
;u+=s*n+l*(e-o-n)}let r=s+l*t.length
;i(new Nle(t.from,t.length,u,r,0)),u+=r,c=t.to+1}}replace(e,t,n){
let r=this.length-t;if(r>0){let e=n[n.length-1]
;e instanceof jle?n[n.length-1]=new jle(e.length+r):n.push(null,new jle(r-1))}
if(e>0){let t=n[0]
;t instanceof jle?n[0]=new jle(e+t.length):n.unshift(new jle(e-1),null)}
return Lle.of(n)}decomposeLeft(e,t){t.push(new jle(e-1),null)}
decomposeRight(e,t){t.push(null,new jle(this.length-e-1))}
updateHeight(e,t=0,n=!1,r){let o=t+this.length
;if(r&&r.from<=t+this.length&&r.more){let n=[],i=Math.max(t,r.from),a=-1
;for(r.from>t&&n.push(new jle(r.from-t-1).updateHeight(e,t));i<=o&&r.more;){
let t=e.doc.lineAt(i).length;n.length&&n.push(null);let o=r.heights[r.index++]
;-1==a?a=o:Math.abs(o-a)>=Mle&&(a=-2);let s=new Qle(t,o)
;s.outdated=!1,n.push(s),i+=t+1}
i<=o&&n.push(null,new jle(o-i).updateHeight(e,i));let s=Lle.of(n)
;return(a<0||Math.abs(s.height-this.height)>=Mle||Math.abs(a-this.heightMetrics(e,t).perLine)>=Mle)&&(e.heightChanged=!0),
s}
return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),
this}toString(){return`gap(${this.length})`}}class Ule extends Lle{
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 1&this.flags
}blockAt(e,t,n,r){let o=n+this.left.height
;return e<o?this.left.blockAt(e,t,n,r):this.right.blockAt(e,t,o,r+this.left.length+this.break)
}lineAt(e,t,n,r,o){
let i=r+this.left.height,a=o+this.left.length+this.break,s=t==Ile.ByHeight?e<i:e<a,l=s?this.left.lineAt(e,t,n,r,o):this.right.lineAt(e,t,n,i,a)
;if(this.break||(s?l.to<a:l.from>a))return l
;let c=t==Ile.ByPosNoHeight?Ile.ByPosNoHeight:Ile.ByPos
;return s?l.join(this.right.lineAt(a,c,n,i,a)):this.left.lineAt(a,c,n,r,o).join(l)
}forEachLine(e,t,n,r,o,i){
let a=r+this.left.height,s=o+this.left.length+this.break
;if(this.break)e<s&&this.left.forEachLine(e,t,n,r,o,i),
t>=s&&this.right.forEachLine(e,t,n,a,s,i);else{
let l=this.lineAt(s,Ile.ByPos,n,r,o)
;e<l.from&&this.left.forEachLine(e,l.from-1,n,r,o,i),
l.to>=e&&l.from<=t&&i(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,a,s,i)}}
replace(e,t,n){let r=this.left.length+this.break
;if(t<r)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-r,t-r,n))
;let o=[];e>0&&this.decomposeLeft(e,o);let i=o.length;for(let a of n)o.push(a)
;if(e>0&&Fle(o,i-1),t<this.length){let e=o.length
;this.decomposeRight(t,o),Fle(o,e)}return Lle.of(o)}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,r=n+this.break
;if(e>=r)return this.right.decomposeRight(e-r,t)
;e<n&&this.left.decomposeRight(e,t),
this.break&&e<r&&t.push(null),t.push(this.right)}balanced(e,t){
return e.size>2*t.size||t.size>2*e.size?Lle.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,r){
let{left:o,right:i}=this,a=t+o.length+this.break,s=null
;return r&&r.from<=t+o.length&&r.more?s=o=o.updateHeight(e,t,n,r):o.updateHeight(e,t,n),
r&&r.from<=a+i.length&&r.more?s=i=i.updateHeight(e,a,n,r):i.updateHeight(e,a,n),
s?this.balanced(o,i):(this.height=this.left.height+this.right.height,
this.outdated=!1,this)}toString(){
return this.left+(this.break?" ":"-")+this.right}}function Fle(e,t){let n,r
;null==e[t]&&(n=e[t-1])instanceof jle&&(r=e[t+1])instanceof jle&&e.splice(t-1,3,new jle(n.length+1+r.length))
}class qle{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 e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1]
;n instanceof Qle?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new Qle(e-this.pos,-1)),
this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)
}this.pos=t}point(e,t,n){if(e<t||n.heightRelevant){
let r=n.widget?n.widget.estimatedHeight:0,o=n.widget?n.widget.lineBreaks:0
;r<0&&(r=this.oracle.lineHeight);let i=t-e
;n.block?this.addBlock(new Ble(i,r,n)):(i||o||r>=5)&&this.addLineDeco(r,o,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||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),
this.nodes.push(null)),
this.pos>e&&this.nodes.push(new Qle(this.pos-e,-1)),this.writtenTo=this.pos}
blankContent(e,t){let n=new jle(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 Qle)return e;let t=new Qle(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 r=this.ensureLine()
;r.length+=n,
r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,
this.writtenTo=this.pos=this.pos+n}finish(e){
let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1]
;!(this.lineStart>-1)||t instanceof Qle||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new Qle(0,-1))
;let n=e
;for(let r of this.nodes)r instanceof Qle&&r.updateHeight(this.oracle,n),
n+=r?r.length:1;return this.nodes}static build(e,t,n,r){let o=new qle(n,e)
;return lie.spans(t,n,r,o,0),o.finish(n)}}class zle{constructor(){
this.changes=[]}compareRange(){}comparePoint(e,t,n,r){
(e<t||n&&n.heightRelevant||r&&r.heightRelevant)&&Uae(e,t,this.changes,5)}}
function Hle(e,t){
let n=e.getBoundingClientRect(),r=e.ownerDocument,o=r.defaultView||window,i=Math.max(0,n.left),a=Math.min(o.innerWidth,n.right),s=Math.max(0,n.top),l=Math.min(o.innerHeight,n.bottom)
;for(let c=e.parentNode;c&&c!=r.body;)if(1==c.nodeType){
let t=c,n=window.getComputedStyle(t)
;if((t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)&&"visible"!=n.overflow){
let n=t.getBoundingClientRect()
;i=Math.max(i,n.left),a=Math.min(a,n.right),s=Math.max(s,n.top),
l=c==e.parentNode?n.bottom:Math.min(l,n.bottom)}
c="absolute"==n.position||"fixed"==n.position?t.offsetParent:t.parentNode}else{
if(11!=c.nodeType)break;c=c.host}return{left:i-n.left,
right:Math.max(i,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}}
function Zle(e,t){let n=e.getBoundingClientRect();return{left:0,
right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class Vle{
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 r=e[n],o=t[n]
;if(r.from!=o.from||r.to!=o.to||r.size!=o.size)return!1}return!0}draw(e,t){
return Mae.replace({widget:new Wle(this.size*(t?e.scaleY:e.scaleX),t)
}).range(this.from,this.to)}}class Wle extends Nae{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 Xle{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=!1,
this.scaleX=1,this.scaleY=1,
this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=Jle,
this.scrollTarget=null,
this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Hae.LTR,
this.visibleRanges=[],this.mustEnforceCursorAssoc=!1
;let t=e.facet(Pse).some((e=>"function"!=typeof e&&"cm-lineWrapping"==e.class))
;this.heightOracle=new $le(t),
this.stateDeco=e.facet(Dse).filter((e=>"function"!=typeof e)),
this.heightMap=Lle.empty().applyChanges(this.stateDeco,$re.empty,this.heightOracle.setDoc(e.doc),[new Qse(0,0,0,e.doc.length)])
;for(let n=0;n<2&&(this.viewport=this.getViewport(0,null),
this.updateForViewport());n++);
this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),
this.lineGapDeco=Mae.set(this.lineGaps.map((e=>e.draw(this,!1)))),
this.computeVisibleRanges()}updateForViewport(){
let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){
let r=n?t.head:t.anchor;if(!e.some((({from:e,to:t})=>r>=e&&r<=t))){
let{from:t,to:n}=this.lineBlockAt(r);e.push(new Yle(t,n))}}
return this.viewports=e.sort(((e,t)=>e.from-t.from)),this.updateScaler()}
updateScaler(){let e=this.scaler
;return this.scaler=this.heightMap.height<=7e6?Jle:new ece(this.heightOracle,this.heightMap,this.viewports),
e.eq(this.scaler)?0:2}updateViewportLines(){
this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{
this.viewportLines.push(tce(e,this.scaler))}))}update(e,t=null){
this.state=e.state;let n=this.stateDeco
;this.stateDeco=this.state.facet(Dse).filter((e=>"function"!=typeof e))
;let r=e.changedRanges,o=Qse.extendWithRanges(r,function(e,t,n){let r=new zle
;return lie.compare(e,t,n,r,0),r.changes
}(n,this.stateDeco,e?e.changes:roe.empty(this.state.doc.length))),i=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop)
;this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),
this.heightMap.height!=i&&(e.flags|=2),
a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),
this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,
this.scrollAnchorHeight=this.heightMap.height)
;let s=o.length?this.mapViewport(this.viewport,e.changes):this.viewport
;(t&&(t.range.head<s.from||t.range.head>s.to)||!this.viewportIsAppropriate(s))&&(s=this.getViewport(0,t))
;let l=s.from!=this.viewport.from||s.to!=this.viewport.to
;this.viewport=s,e.flags|=this.updateForViewport(),
(l||!e.changes.empty||2&e.flags)&&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(bse)&&(this.mustEnforceCursorAssoc=!0)
}measure(e){
let t=e.contentDOM,n=window.getComputedStyle(t),r=this.heightOracle,o=n.whiteSpace
;this.defaultTextDirection="rtl"==n.direction?Hae.RTL:Hae.LTR
;let i=this.heightOracle.mustRefreshForWrapping(o),a=t.getBoundingClientRect(),s=i||this.mustMeasureContent||this.contentDOMHeight!=a.height
;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let l=0,c=0
;if(a.width&&a.height){let{scaleX:e,scaleY:n}=zie(t,a)
;(e>.005&&Math.abs(this.scaleX-e)>.005||n>.005&&Math.abs(this.scaleY-n)>.005)&&(this.scaleX=e,
this.scaleY=n,l|=8,i=s=!0)}
let u=(parseInt(n.paddingTop)||0)*this.scaleY,d=(parseInt(n.paddingBottom)||0)*this.scaleY
;this.paddingTop==u&&this.paddingBottom==d||(this.paddingTop=u,
this.paddingBottom=d,
l|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(s=!0),
this.editorWidth=e.scrollDOM.clientWidth,l|=8)
;let p=e.scrollDOM.scrollTop*this.scaleY
;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,
this.scrollTop=p),this.scrolledToBottom=Kie(e.scrollDOM)
;let h=(this.printing?Zle:Hle)(t,this.paddingTop),f=h.top-this.pixelViewport.top,m=h.bottom-this.pixelViewport.bottom
;this.pixelViewport=h
;let g=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left
;if(g!=this.inView&&(this.inView=g,
g&&(s=!0)),!this.inView&&!this.scrollTarget)return 0;let v=a.width
;if(this.contentDOMWidth==v&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=a.width,
this.editorHeight=e.scrollDOM.clientHeight,l|=8),s){
let t=e.docView.measureVisibleLineHeights(this.viewport)
;if(r.mustRefreshForHeights(t)&&(i=!0),
i||r.lineWrapping&&Math.abs(v-this.contentDOMWidth)>r.charWidth){
let{lineHeight:n,charWidth:a,textHeight:s}=e.docView.measureTextSize()
;i=n>0&&r.refresh(o,n,a,s,v/a,t),i&&(e.docView.minWidth=0,l|=8)}
f>0&&m>0?c=Math.max(f,m):f<0&&m<0&&(c=Math.min(f,m)),r.heightChanged=!1
;for(let n of this.viewports){
let o=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n)
;this.heightMap=(i?Lle.empty().applyChanges(this.stateDeco,$re.empty,this.heightOracle,[new Qse(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,i,new Rle(n.from,o))
}r.heightChanged&&(l|=2)}
let b=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to)
;return b&&(2&l&&(l|=this.updateScaler()),
this.viewport=this.getViewport(c,this.scrollTarget),
l|=this.updateForViewport()),
(2&l||b)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(i?[]:this.lineGaps,e)),
l|=this.computeVisibleRanges(),
this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,
e.docView.enforceCursorAssoc()),l}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)),r=this.heightMap,o=this.heightOracle,{visibleTop:i,visibleBottom:a}=this,s=new Yle(r.lineAt(i-1e3*n,Ile.ByHeight,o,0,0).from,r.lineAt(a+1e3*(1-n),Ile.ByHeight,o,0,0).to)
;if(t){let{head:e}=t.range;if(e<s.from||e>s.to){
let n,i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),a=r.lineAt(e,Ile.ByPos,o,0,0)
;n="center"==t.y?(a.top+a.bottom)/2-i/2:"start"==t.y||"nearest"==t.y&&e<s.from?a.top:a.bottom-i,
s=new Yle(r.lineAt(n-500,Ile.ByHeight,o,0,0).from,r.lineAt(n+i+500,Ile.ByHeight,o,0,0).to)
}}return s}mapViewport(e,t){let n=t.mapPos(e.from,-1),r=t.mapPos(e.to,1)
;return new Yle(this.heightMap.lineAt(n,Ile.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,Ile.ByPos,this.heightOracle,0,0).to)
}viewportIsAppropriate({from:e,to:t},n=0){if(!this.inView)return!0
;let{top:r}=this.heightMap.lineAt(e,Ile.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(t,Ile.ByPos,this.heightOracle,0,0),{visibleTop:i,visibleBottom:a}=this
;return(0==e||r<=i-Math.max(10,Math.min(-n,250)))&&(t==this.state.doc.length||o>=a+Math.max(10,Math.min(n,250)))&&r>i-2e3&&o<a+2e3
}mapLineGaps(e,t){if(!e.length||t.empty)return e;let n=[]
;for(let r of e)t.touchesRange(r.from,r.to)||n.push(new Vle(t.mapPos(r.from),t.mapPos(r.to),r.size))
;return n}ensureLineGaps(e,t){
let n=this.heightOracle.lineWrapping,r=n?1e4:2e3,o=r>>1,i=r<<1
;if(this.defaultTextDirection!=Hae.LTR&&!n)return[];let a=[],s=(r,i,l,c)=>{
if(i-r<o)return;let u=this.state.selection.main,d=[u.from];u.empty||d.push(u.to)
;for(let e of d)if(e>r&&e<i)return s(r,e-10,l,c),void s(e+10,i,l,c)
;let p=function(e,t){for(let n of e)if(t(n))return n;return
}(e,(e=>e.from>=l.from&&e.to<=l.to&&Math.abs(e.from-r)<o&&Math.abs(e.to-i)<o&&!d.some((t=>e.from<t&&e.to>t))))
;if(!p){if(i<l.to&&t&&n&&t.visibleRanges.some((e=>e.from<=i&&e.to>=i))){
let e=t.moveToLineBoundary(doe.cursor(i),!1,!0).head;e>r&&(i=e)}
p=new Vle(r,i,this.gapSize(l,r,i,c))}a.push(p)},l=e=>{
if(e.length<i||e.type!=Iae.Text)return;let t=function(e,t,n){let r=[],o=e,i=0
;lie.spans(n,e,t,{span(){},point(e,t){e>o&&(r.push({from:o,to:e}),i+=e-o),o=t}
},20),o<t&&(r.push({from:o,to:t}),i+=t-o);return{total:i,ranges:r}
}(e.from,e.to,this.stateDeco);if(t.total<i)return
;let o,a,l=this.scrollTarget?this.scrollTarget.range.head:null;if(n){
let n,i,s=r/this.heightOracle.lineLength*this.heightOracle.lineHeight
;if(null!=l){
let r=Kle(t,l),o=((this.visibleBottom-this.visibleTop)/2+s)/e.height;n=r-o,i=r+o
}else n=(this.visibleTop-e.top-s)/e.height,
i=(this.visibleBottom-e.top+s)/e.height;o=Gle(t,n),a=Gle(t,i)}else{
let e,n,i=t.total*this.heightOracle.charWidth,s=r*this.heightOracle.charWidth
;if(null!=l){
let r=Kle(t,l),o=((this.pixelViewport.right-this.pixelViewport.left)/2+s)/i
;e=r-o,n=r+o
}else e=(this.pixelViewport.left-s)/i,n=(this.pixelViewport.right+s)/i
;o=Gle(t,e),a=Gle(t,n)}o>e.from&&s(e.from,o,e,t),a<e.to&&s(a,e.to,e,t)}
;for(let c of this.viewportLines)Array.isArray(c.type)?c.type.forEach(l):l(c)
;return a}gapSize(e,t,n,r){let o=Kle(r,n)-Kle(r,t)
;return this.heightOracle.lineWrapping?e.height*o:r.total*this.heightOracle.charWidth*o
}updateLineGaps(e){
Vle.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=Mae.set(e.map((e=>e.draw(this,this.heightOracle.lineWrapping)))))
}computeVisibleRanges(){let e=this.stateDeco
;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[]
;lie.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n
})},point(){}},20)
;let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].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))||tce(this.heightMap.lineAt(e,Ile.ByPos,this.heightOracle,0,0),this.scaler)
}lineBlockAtHeight(e){
return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find((t=>t.top<=e&&t.bottom>=e))||tce(this.heightMap.lineAt(this.scaler.fromDOM(e),Ile.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 tce(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 Yle{constructor(e,t){this.from=e,this.to=t}}
function Gle({total:e,ranges:t},n){if(n<=0)return t[0].from
;if(n>=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let o=0;;o++){
let{from:e,to:n}=t[o],i=n-e;if(r<=i)return e+r;r-=i}}function Kle(e,t){let n=0
;for(let{from:r,to:o}of e.ranges){if(t<=o){n+=t-r;break}n+=o-r}return n/e.total}
const Jle={toDOM:e=>e,fromDOM:e=>e,scale:1,eq(e){return e==this}};class ece{
constructor(e,t,n){let r=0,o=0,i=0;this.viewports=n.map((({from:n,to:o})=>{
let i=t.lineAt(n,Ile.ByPos,e,0,0).top,a=t.lineAt(o,Ile.ByPos,e,0,0).bottom
;return r+=a-i,{from:n,to:o,top:i,bottom:a,domTop:0,domBottom:0}
})),this.scale=(7e6-r)/(t.height-r)
;for(let a of this.viewports)a.domTop=i+(a.top-o)*this.scale,
i=a.domBottom=a.domTop+(a.bottom-a.top),o=a.bottom}toDOM(e){
for(let t=0,n=0,r=0;;t++){let o=t<this.viewports.length?this.viewports[t]:null
;if(!o||e<o.top)return r+(e-n)*this.scale
;if(e<=o.bottom)return o.domTop+(e-o.top);n=o.bottom,r=o.domBottom}}fromDOM(e){
for(let t=0,n=0,r=0;;t++){let o=t<this.viewports.length?this.viewports[t]:null
;if(!o||e<o.domTop)return n+(e-r)/this.scale
;if(e<=o.domBottom)return o.top+(e-o.domTop);n=o.bottom,r=o.domBottom}}eq(e){
return e instanceof ece&&(this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every(((t,n)=>t.from==e.viewports[n].from&&t.to==e.viewports[n].to)))
}}function tce(e,t){if(1==t.scale)return e
;let n=t.toDOM(e.top),r=t.toDOM(e.bottom)
;return new Nle(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map((e=>tce(e,t))):e._content)
}const nce=foe.define({combine:e=>e.join(" ")}),rce=foe.define({
combine:e=>e.indexOf(!0)>-1
}),oce=Sie.newName(),ice=Sie.newName(),ace=Sie.newName(),sce={"&light":"."+ice,
"&dark":"."+ace};function lce(e,t,n){return new Sie(t,{
finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e
;if(!n||!n[t])throw new RangeError(`Unsupported selector: ${t}`);return n[t]
})):e+" "+t})}const cce=lce("."+oce,{"&":{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"}
},sce),uce="";class dce{constructor(e,t){
this.points=e,this.text="",this.lineSeparator=t.facet(nie.lineSeparator)}
append(e){this.text+=e}lineBreak(){this.text+=uce}readRange(e,t){
if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r)
;let e=this.text.length;this.readNode(r);let o=r.nextSibling;if(o==t)break
;let i=rae.get(r),a=rae.get(o)
;(i&&a?i.breakAfter:(i?i.breakAfter:Qie(r))||Qie(o)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>e)&&this.lineBreak(),
r=o}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,r=this.lineSeparator?null:/\r\n?|\n/g;;){let o,i=-1,a=1
;if(this.lineSeparator?(i=t.indexOf(this.lineSeparator,n),
a=this.lineSeparator.length):(o=r.exec(t))&&(i=o.index,
a=o[0].length),this.append(t.slice(n,i<0?t.length:i)),i<0)break
;if(this.lineBreak(),
a>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=a-1)
;n=i+a}}readNode(e){if(e.cmIgnore)return;let t=rae.get(e),n=t&&t.overrideDOMText
;if(null!=n){this.findPointInside(e,n.length)
;for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)
}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&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)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(pce(e,n.node,n.offset)?t:0))
}}function pce(e,t,n){for(;;){if(!t||n<Uie(t))return!1;if(t==e)return!0
;n=Bie(t)+1,t=t.parentNode}}class hce{constructor(e,t){
this.node=e,this.offset=t,this.pos=-1}}class fce{constructor(e,t,n,r){
this.typeOver=r,this.bounds=null,this.text="",this.domChanged=t>-1
;let{impreciseHead:o,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 t=o||i?[]:function(e){let t=[]
;if(e.root.activeElement!=e.contentDOM)return t
;let{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:i}=e.observer.selectionRange
;n&&(t.push(new hce(n,r)),o==n&&i==r||t.push(new hce(o,i)));return t
}(e),n=new dce(t,e.state)
;n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,
this.newSel=function(e,t){if(0==e.length)return null
;let n=e[0].pos,r=2==e.length?e[1].pos:n
;return n>-1&&r>-1?doe.single(n+t,r+t):null}(t,this.bounds.from)}else{
let t=e.observer.selectionRange,n=o&&o.node==t.focusNode&&o.offset==t.focusOffset||!Nie(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),r=i&&i.node==t.anchorNode&&i.offset==t.anchorOffset||!Nie(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),a=e.viewport
;if((Oae.ios||Oae.chrome)&&e.state.selection.main.empty&&n!=r&&(a.from>0||a.to<e.state.doc.length)){
let t=Math.min(n,r),o=Math.max(n,r),i=a.from-t,s=a.to-o
;0!=i&&1!=i&&0!=t||0!=s&&-1!=s&&o!=e.state.doc.length||(n=0,
r=e.state.doc.length)}this.newSel=doe.single(r,n)}}}function mce(e,t){
let n,{newSel:r}=t,o=e.state.selection.main,i=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1
;if(t.bounds){let{from:r,to:a}=t.bounds,s=o.from,l=null
;(8===i||Oae.android&&t.text.length<a-r)&&(s=o.to,l="end")
;let c=function(e,t,n,r){let o=Math.min(e.length,t.length),i=0
;for(;i<o&&e.charCodeAt(i)==t.charCodeAt(i);)i++
;if(i==o&&e.length==t.length)return null;let a=e.length,s=t.length
;for(;a>0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;if("end"==r){
n-=a+Math.max(0,i-Math.min(a,s))-i}if(a<i&&e.length<t.length){
i-=n<=i&&n>=a?i-n:0,s=i+(s-a),a=i}else if(s<i){i-=n<=i&&n>=s?i-n:0,a=i+(a-s),s=i
}return{from:i,toA:a,toB:s}}(e.state.doc.sliceString(r,a,uce),t.text,s-r,l)
;c&&(Oae.chrome&&13==i&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==uce+uce&&c.toB--,
n={from:r+c.from,to:r+c.toA,insert:$re.of(t.text.slice(c.from,c.toB).split(uce))
})}else r&&(!e.hasFocus&&e.state.facet(Sse)||r.main.eq(o))&&(r=null)
;if(!n&&!r)return!1;if(!n&&t.typeOver&&!o.empty&&r&&r.main.empty?n={from:o.from,
to:o.to,insert:e.state.doc.slice(o.from,o.to)
}:n&&n.from>=o.from&&n.to<=o.to&&(n.from!=o.from||n.to!=o.to)&&o.to-o.from-(n.to-n.from)<=4?n={
from:o.from,to:o.to,
insert:e.state.doc.slice(o.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,o.to))
}:(Oae.mac||Oae.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(r&&2==n.insert.length&&(r=doe.single(r.main.anchor-1,r.main.head-1)),
n={from:o.from,to:o.to,insert:$re.of([" "])
}):Oae.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(r&&(r=doe.single(r.main.anchor-1,r.main.head-1)),
n={from:o.from,to:o.to,insert:$re.of([" "])}),n)return gce(e,n,r,i)
;if(r&&!r.main.eq(o)){let t=!1,n="select"
;return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),
n=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:t,
userEvent:n}),!0}return!1}function gce(e,t,n,r=-1){
if(Oae.ios&&e.inputState.flushIOSKey(t))return!0;let o=e.state.selection.main
;if(Oae.android&&(t.to==o.to&&(t.from==o.from||t.from==o.from-1&&" "==e.state.sliceDoc(t.from,o.from))&&1==t.insert.length&&2==t.insert.lines&&Yie(e.contentDOM,"Enter",13)||(t.from==o.from-1&&t.to==o.to&&0==t.insert.length||8==r&&t.insert.length<t.to-t.from&&t.to>o.head)&&Yie(e.contentDOM,"Backspace",8)||t.from==o.from&&t.to==o.to+1&&0==t.insert.length&&Yie(e.contentDOM,"Delete",46)))return!0
;let i,a=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++
;let s=()=>i||(i=function(e,t,n){let r,o=e.state,i=o.selection.main
;if(t.from>=i.from&&t.to<=i.to&&t.to-t.from>=(i.to-i.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){
let n=i.from<t.from?o.sliceDoc(i.from,t.from):"",a=i.to>t.to?o.sliceDoc(t.to,i.to):""
;r=o.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+a))
}else{let a=o.changes(t),s=n&&n.main.to<=a.newLength?n.main:void 0
;if(o.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=i.to&&t.to>=i.to-10){
let l,c=e.state.sliceDoc(t.from,t.to),u=n&&qse(e,n.main.head);if(u){
let e=t.insert.length-(t.to-t.from);l={from:u.from,to:u.to-e}
}else l=e.state.doc.lineAt(i.head);let d=i.to-t.to,p=i.to-i.from
;r=o.changeByRange((n=>{if(n.from==i.from&&n.to==i.to)return{changes:a,
range:s||n.map(a)};let r=n.to-d,u=r-c.length
;if(n.to-n.from!=p||e.state.sliceDoc(u,r)!=c||n.to>=l.from&&n.from<=l.to)return{
range:n};let h=o.changes({from:u,to:r,insert:t.insert}),f=n.to-i.to;return{
changes:h,
range:s?doe.range(Math.max(0,s.anchor+f),Math.max(0,s.head+f)):n.map(h)}}))
}else r={changes:a,selection:s&&o.selection.replaceRange(s)}}let a="input.type"
;(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,
a+=".compose",
e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1))
;return o.update(r,{userEvent:a,scrollIntoView:!0})}(e,t,n))
;return e.state.facet(mse).some((n=>n(e,t.from,t.to,a,s)))||e.dispatch(s()),!0}
const vce={childList:!0,characterData:!0,subtree:!0,attributes:!0,
characterDataOldValue:!0},bce=Oae.ie&&Oae.ie_version<=11;class Oce{
constructor(e){
this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new Hie,
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.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{
for(let e of t)this.queue.push(e)
;(Oae.ie&&Oae.ie_version<=11||Oae.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()
})),
window.EditContext&&!0===e.constructor.EDIT_CONTEXT&&(this.editContext=new xce(e),
e.state.facet(Sse)&&(e.contentDOM.editContext=this.editContext.editContext)),
bce&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",
oldValue:e.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),
window.matchMedia&&(this.printQuery=window.matchMedia("print")),
"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{
var e
;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()
})),
this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),
this.start(),
"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((e=>{
this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),
e.length>0&&e[e.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((e=>{
e.length>0&&e[e.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.editContext&&this.view.requestMeasure(this.editContext.measureReq),
this.onScrollChanged(e)}onResize(){
this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{
this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(e){
("change"!=e.type||e.matches)&&(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,r=this.selectionRange
;if(n.state.facet(Sse)?n.root.activeElement!=this.dom:!Iie(n.dom,r))return
;let o=r.anchorNode&&n.docView.nearest(r.anchorNode)
;o&&o.ignoreEvent(e)?t||(this.selectionChanged=!1):(Oae.ie&&Oae.ie_version<=11||Oae.android&&Oae.chrome)&&!n.state.selection.main.empty&&r.focusNode&&Lie(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)
}readSelectionRange(){let{view:e}=this,t=Rie(e.root);if(!t)return!1
;let n=Oae.safari&&11==e.root.nodeType&&function(e){let t=e.activeElement
;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t
}(this.dom.ownerDocument)==this.dom&&function(e,t){if(t.getComposedRanges){
let n=t.getComposedRanges(e.root)[0];if(n)return wce(e,n)}let n=null
;function r(e){
e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}
return e.contentDOM.addEventListener("beforeinput",r,!0),
e.dom.ownerDocument.execCommand("indent"),
e.contentDOM.removeEventListener("beforeinput",r,!0),n?wce(e,n):null
}(this.view,t)||t;if(!n||this.selectionRange.eq(n))return!1
;let r=Iie(this.dom,n)
;return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){
let n=t.focusNode,r=t.focusOffset
;if(!n||t.anchorNode!=n||t.anchorOffset!=r)return!1
;for(r=Math.min(r,Uie(n));;)if(r){if(1!=n.nodeType)return!1
;let e=n.childNodes[r-1];"false"==e.contentEditable?r--:(n=e,r=Uie(n))}else{
if(n==e)return!0;r=Bie(n),n=n.parentNode}
}(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),
!1):(this.selectionRange.setRange(n),r&&(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(1==n.nodeType)!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(11!=n.nodeType)break
;n=n.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),
t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll)
;for(let e of this.scrollTargets=t)e.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,vce),
bce&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),
this.active=!0)}stop(){
this.active&&(this.active=!1,this.observer.disconnect(),bce&&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 e=()=>{
let e=this.delayedAndroidKey;if(e){
this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,
this.view.inputState.lastKeyTime=Date.now(),
!this.flush()&&e.force&&Yie(this.dom,e.key,e.keyCode)}}
;this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}
this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,
force:this.lastChange<Date.now()-50||!!(null===(n=this.delayedAndroidKey)||void 0===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,r=!1;for(let o of e){let e=this.readMutation(o)
;e&&(e.typeOver&&(r=!0),
-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{
from:t,to:n,typeOver:r}}readChange(){
let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&Iie(this.dom,this.selectionRange)
;if(e<0&&!r)return null
;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,
this.selectionChanged=!1;let o=new fce(this.view,e,t,n)
;return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}
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,r=mce(this.view,t)
;return this.view.state==n&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),
r}readMutation(e){let t=this.view.docView.nearest(e.target)
;if(!t||t.ignoreMutation(e))return null
;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),
"childList"==e.type){
let n=yce(t,e.previousSibling||e.target.previousSibling,-1),r=yce(t,e.nextSibling||e.target.nextSibling,1)
;return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,
typeOver:!1}}return"characterData"==e.type?{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),
this.printQuery?this.printQuery.addEventListener("change",this.onPrint):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),
this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),
e.document.removeEventListener("selectionchange",this.onSelectionChange)}
update(e){
this.editContext&&(this.editContext.update(e),e.startState.facet(Sse)!=e.state.facet(Sse)&&(e.view.contentDOM.editContext=e.state.facet(Sse)?this.editContext.editContext:null))
}destroy(){var e,t,n
;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),
null===(t=this.gapIntersection)||void 0===t||t.disconnect(),
null===(n=this.resizeScroll)||void 0===n||n.disconnect()
;for(let r of this.scrollTargets)r.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 yce(e,t,n){
for(;t;){let r=rae.get(t);if(r&&r.parent==e)return r;let o=t.parentNode
;t=o!=e.dom?o:n>0?t.nextSibling:t.previousSibling}return null}function wce(e,t){
let n=t.startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,a=e.docView.domAtPos(e.state.selection.main.anchor)
;return Lie(a.node,a.offset,o,i)&&([n,r,o,i]=[o,i,n,r]),{anchorNode:n,
anchorOffset:r,focusNode:o,focusOffset:i}}class xce{constructor(e){
this.from=0,this.to=0,this.pendingContextChange=null,this.resetRange(e.state)
;let t=this.editContext=new window.EditContext({
text:e.state.doc.sliceString(this.from,this.to),
selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),
selectionEnd:this.toContextPos(e.state.selection.main.head)})
;t.addEventListener("textupdate",(t=>{let{anchor:n}=e.state.selection.main,r={
from:this.toEditorPos(t.updateRangeStart),to:this.toEditorPos(t.updateRangeEnd),
insert:$re.of(t.text.split("\n"))}
;r.from==this.from&&n<this.from?r.from=n:r.to==this.to&&n>this.to&&(r.to=n),
(r.from!=r.to||r.insert.length)&&(this.pendingContextChange=r,
gce(e,r,doe.single(this.toEditorPos(t.selectionStart),this.toEditorPos(t.selectionEnd))),
this.pendingContextChange&&this.revertPending(e.state))
})),t.addEventListener("characterboundsupdate",(n=>{let r=[],o=null
;for(let t=this.toEditorPos(n.rangeStart),i=this.toEditorPos(n.rangeEnd);t<i;t++){
let n=e.coordsForChar(t)
;o=n&&new DOMRect(n.left,n.right,n.right-n.left,n.bottom-n.top)||o||new DOMRect,
r.push(o)}t.updateCharacterBounds(n.rangeStart,r)
})),t.addEventListener("textformatupdate",(t=>{let n=[]
;for(let e of t.getTextFormats()){let t=e.underlineStyle,r=e.underlineThickness
;if("None"!=t&&"None"!=r){
let o=`text-decoration: underline ${"Dashed"==t?"dashed ":"Squiggle"==t?"wavy ":""}${"Thin"==r?1:2}px`
;n.push(Mae.mark({attributes:{style:o}
}).range(this.toEditorPos(e.rangeStart),this.toEditorPos(e.rangeEnd)))}}
e.dispatch({effects:xse.of(Mae.set(n))})
})),t.addEventListener("compositionstart",(()=>{
e.inputState.composing<0&&(e.inputState.composing=0,
e.inputState.compositionFirstChange=!0)
})),t.addEventListener("compositionend",(()=>{
e.inputState.composing=-1,e.inputState.compositionFirstChange=null
})),this.measureReq={read:e=>{
this.editContext.updateControlBounds(e.contentDOM.getBoundingClientRect())
;let t=Rie(e.root)
;t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())
}}}applyEdits(e){let t=0,n=!1,r=this.pendingContextChange
;return e.changes.iterChanges(((o,i,a,s,l)=>{if(n)return;let c=l.length-(i-o)
;if(r&&i>=r.to){
if(r.from==o&&r.to==i&&r.insert.eq(l))return r=this.pendingContextChange=null,
void(t+=c);r=null,this.revertPending(e.state)}
if(o+=t,(i+=t)<=this.from)this.from+=c,this.to+=c;else if(o<this.to){
if(o<this.from||i>this.to||this.to-this.from+l.length>3e4)return void(n=!0)
;this.editContext.updateText(this.toContextPos(o),this.toContextPos(i),l.toString()),
this.to+=c}t+=c})),r&&!n&&this.revertPending(e.state),!n}update(e){
this.applyEdits(e)&&this.rangeIsValid(e.state)?(e.docChanged||e.selectionSet)&&this.setSelection(e.state):(this.pendingContextChange=null,
this.resetRange(e.state),
this.editContext.updateText(0,this.editContext.text.length,e.state.doc.sliceString(this.from,this.to)),
this.setSelection(e.state)),
(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)
}resetRange(e){let{head:t}=e.selection.main
;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}
revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,
this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.to+t.insert.length),e.doc.sliceString(t.from,t.to))
}setSelection(e){
let{main:t}=e.selection,n=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),r=this.toContextPos(t.head)
;this.editContext.selectionStart==n&&this.editContext.selectionEnd==r||this.editContext.updateSelection(n,r)
}rangeIsValid(e){let{head:t}=e.selection.main
;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)
}toEditorPos(e){return e+this.from}toContextPos(e){return e-this.from}}
class kce{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&&(e=>e.forEach((e=>t(e,this))))||(e=>this.update(e)),
this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){
if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e
;e=e.assignedSlot||e.parentNode}return null
}(e.parent)||document,this.viewState=new Xle(e.state||nie.create(e)),
e.scrollTo&&e.scrollTo.is(wse)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),
this.plugins=this.state.facet(Ese).map((e=>new Cse(e)))
;for(let n of this.plugins)n.update(this)
;this.observer=new Oce(this),this.inputState=new ole(this),
this.inputState.ensureHandlers(this.plugins),
this.docView=new Use(this),this.mountStyles(),
this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){
let t=1==e.length&&e[0]instanceof Hoe?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)]
;this.dispatchTransactions(t,this)}update(e){
if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress")
;let t,n=!1,r=!1,o=this.state;for(let d of e){
if(d.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.")
;o=d.state}if(this.destroyed)return void(this.viewState.state=o)
;let i=this.hasFocus,a=0,s=null
;e.some((e=>e.annotation(Tle)))?(this.inputState.notifiedFocused=i,
a=1):i!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=i,
s=Cle(o,i),s||(a=1));let l=this.observer.delayedAndroidKey,c=null
;if(l?(this.observer.clearDelayedAndroidKey(),
c=this.observer.readChange(),(c&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),
o.facet(nie.phrases)!=this.state.facet(nie.phrases))return this.setState(o)
;t=jse.create(this,o,e),t.flags|=a;let u=this.viewState.scrollTarget;try{
this.updateState=2;for(let t of e){if(u&&(u=u.map(t.changes)),t.scrollIntoView){
let{main:e}=t.state.selection
;u=new yse(e.empty?e:doe.cursor(e.head,e.head>e.anchor?-1:1))}
for(let e of t.effects)e.is(wse)&&(u=e.value.clip(this.state))}
this.viewState.update(t,u),
this.bidiCache=Ece.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),
this.inputState.update(t)),
n=this.docView.update(t),this.state.facet(Bse)!=this.styleModules&&this.mountStyles(),
r=this.updateAttrs(),
this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))
}finally{this.updateState=0}
if(t.startState.facet(nce)!=t.state.facet(nce)&&(this.viewState.mustMeasureContent=!0),
(n||r||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),
n&&this.docViewUpdate(),!t.empty)for(let d of this.state.facet(fse))try{d(t)
}catch(P$){kse(this.state,P$,"update listener")}
(s||c)&&Promise.resolve().then((()=>{
s&&this.state==s.startState&&this.dispatch(s),
c&&!mce(this,c)&&l.force&&Yie(this.contentDOM,l.key,l.keyCode)}))}setState(e){
if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress")
;if(this.destroyed)return void(this.viewState.state=e);this.updateState=2
;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this)
;this.viewState=new Xle(e),
this.plugins=e.facet(Ese).map((e=>new Cse(e))),this.pluginMap.clear()
;for(let e of this.plugins)e.update(this)
;this.docView.destroy(),this.docView=new Use(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(Ese),n=e.state.facet(Ese);if(t!=n){let r=[]
;for(let o of n){let n=t.indexOf(o);if(n<0)r.push(new Cse(o));else{
let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}
for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this)
;this.plugins=r,this.pluginMap.clear()
}else for(let r of this.plugins)r.mustUpdate=e
;for(let r=0;r<this.plugins.length;r++)this.plugins[r].update(this)
;t!=n&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){
for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{
t.docViewUpdate(this)}catch(P$){kse(this.state,P$,"doc view update listener")}}}
measure(e=!0){if(this.destroyed)return
;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),
this.observer.delayedAndroidKey)return this.measureScheduled=-1,
void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush()
;let t=null,n=this.scrollDOM,r=n.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:i}=this.viewState
;Math.abs(r-this.viewState.scrollTop)>1&&(i=-1),
this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){
if(i<0)if(Kie(n))o=-1,i=this.viewState.heightMap.height;else{
let e=this.viewState.scrollAnchorAt(r);o=e.from,i=e.top}this.updateState=1
;let a=this.viewState.measure(this)
;if(!a&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break
;if(e>5){
console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize")
;break}let s=[];4&a||([this.measureRequests,s]=[s,this.measureRequests])
;let l=s.map((e=>{try{return e.read(this)}catch(P$){
return kse(this.state,P$),_ce}})),c=jse.create(this,this.state,[]),u=!1
;c.flags|=a,t?t.flags|=a:t=c,this.updateState=2,c.empty||(this.updatePlugins(c),
this.inputState.update(c),
this.updateAttrs(),u=this.docView.update(c),u&&this.docViewUpdate())
;for(let e=0;e<s.length;e++)if(l[e]!=_ce)try{let t=s[e]
;t.write&&t.write(l[e],this)}catch(P$){kse(this.state,P$)}
if(u&&this.docView.updateSelection(!0),
!c.viewportChanged&&0==this.measureRequests.length){
if(this.viewState.editorHeight){if(this.viewState.scrollTarget){
this.docView.scrollIntoView(this.viewState.scrollTarget),
this.viewState.scrollTarget=null,i=-1;continue}{
let e=(o<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(o).top)-i
;if(e>1||e<-1){r+=e,n.scrollTop=r/this.scaleY,i=-1;continue}}}break}}}finally{
this.updateState=0,this.measureScheduled=-1}
if(t&&!t.empty)for(let a of this.state.facet(fse))a(t)}get themeClasses(){
return oce+" "+(this.state.facet(rce)?ace:ice)+" "+this.state.facet(nce)}
updateAttrs(){let e=Tce(this,Ase,{
class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={
spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",
contenteditable:this.state.facet(Sse)?"true":"false",class:"cm-content",
style:`${Oae.tabSize}: ${this.state.tabSize}`,role:"textbox",
"aria-multiline":"true"}
;this.state.readOnly&&(t["aria-readonly"]="true"),Tce(this,Pse,t)
;let n=this.observer.ignore((()=>{
let n=Pae(this.contentDOM,this.contentAttrs,t),r=Pae(this.dom,this.editorAttrs,e)
;return n||r}));return this.editorAttrs=e,this.contentAttrs=t,n}
showAnnouncements(e){let t=!0
;for(let n of e)for(let e of n.effects)if(e.is(kce.announce)){
t&&(this.announceDOM.textContent=""),
t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value
}}mountStyles(){this.styleModules=this.state.facet(Bse)
;let e=this.state.facet(kce.cspNonce)
;Sie.mount(this.root,this.styleModules.concat(cce).reverse(),e?{nonce:e}:void 0)
}readMeasured(){
if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update")
;0==this.updateState&&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(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e)
;this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e)
;return(void 0===t||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find((t=>t.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 rle(this,e,tle(this,e,t,n))}moveByGroup(e,t){
return rle(this,e,tle(this,e,t,(t=>function(e,t,n){
let r=e.state.charCategorizer(t),o=r(n);return e=>{let t=r(e)
;return o==Koe.Space&&(o=t),o==t}}(this,e.head,t))))}visualLineSide(e,t){
let n=this.bidiSpans(e),r=this.textDirectionAt(e.from),o=n[t?n.length-1:0]
;return doe.cursor(o.side(t,r)+e.from,o.forward(!t,r)?1:-1)}
moveToLineBoundary(e,t,n=!0){return ele(this,e,t,n)}moveVertically(e,t,n){
return rle(this,e,function(e,t,n,r){let o=t.head,i=n?1:-1
;if(o==(n?e.state.doc.length:0))return doe.cursor(o,t.assoc)
;let a,s=t.goalColumn,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(o,t.assoc||-1),u=e.documentTop
;if(c)null==s&&(s=c.left-l.left),a=i<0?c.top:c.bottom;else{
let t=e.viewState.lineBlockAt(o)
;null==s&&(s=Math.min(l.right-l.left,e.defaultCharacterWidth*(o-t.from))),
a=(i<0?t.top:t.bottom)+u}
let d=l.left+s,p=null!=r?r:e.viewState.heightOracle.textHeight>>1
;for(let h=0;;h+=10){let t=a+(p+h)*i,n=Kse(e,{x:d,y:t},!1,i)
;if(t<l.top||t>l.bottom||(i<0?n<o:n>o)){
let r=e.docView.coordsForChar(n),o=!r||t<r.top?-1:1
;return doe.cursor(n,o,void 0,s)}}}(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(),Kse(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 r=this.state.doc.lineAt(e),o=this.bidiSpans(r)
;return Fie(n,o[tse.find(o,e-r.from,-1,t)].dir==Hae.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(vse)||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>Sce)return ase(e.length);let t,n=this.textDirectionAt(e.from)
;for(let o of this.bidiCache)if(o.from==e.from&&o.dir==n&&(o.fresh||nse(o.isolates,t=Ise(this,e))))return o.order
;t||(t=Ise(this,e));let r=function(e,t,n){if(!e)return[new tse(0,0,t==Vae?1:0)]
;if(t==Zae&&!n.length&&!ese.test(e))return ase(e.length)
;if(n.length)for(;e.length>rse.length;)rse[rse.length]=256;let r=[],o=t==Zae?0:1
;return ise(e,o,o,n,0,e.length,r),r}(e.text,n,t)
;return this.bidiCache.push(new Ece(e.from,e.to,n,t,!0,r)),r}get hasFocus(){
var e
;return(this.dom.ownerDocument.hasFocus()||Oae.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM
}focus(){this.observer.ignore((()=>{
Wie(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){
this._root!=e&&(this._root=e,
this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),
this.mountStyles())}destroy(){
this.root.activeElement==this.contentDOM&&this.contentDOM.blur()
;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 wse.of(new yse("number"==typeof e?doe.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 wse.of(new yse(doe.cursor(n.from),"start","start",n.top-e,t,!0))}
setTabFocusMode(e){
null==e?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof e?this.inputState.tabFocusMode=e?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+e)
}static domEventHandlers(e){return Tse.define((()=>({})),{eventHandlers:e})}
static domEventObservers(e){return Tse.define((()=>({})),{eventObservers:e})}
static theme(e,t){let n=Sie.newName(),r=[nce.of(n),Bse.of(lce(`.${n}`,e))]
;return t&&t.dark&&r.push(rce.of(!0)),r}static baseTheme(e){
return Toe.lowest(Bse.of(lce("."+oce,e,sce)))}static findFromDOM(e){var t
;let n=e.querySelector(".cm-content"),r=n&&rae.get(n)||rae.get(e)
;return(null===(t=null==r?void 0:r.rootView)||void 0===t?void 0:t.view)||null}}
kce.styleModule=Bse,
kce.inputHandler=mse,kce.scrollHandler=Ose,kce.focusChangeEffect=gse,
kce.perLineTextDirection=vse,
kce.exceptionSink=hse,kce.updateListener=fse,kce.editable=Sse,
kce.mouseSelectionStyle=pse,
kce.dragMovesSelection=dse,kce.clickAddsSelectionRange=use,
kce.decorations=Dse,kce.outerDecorations=$se,
kce.atomicRanges=Rse,kce.bidiIsolatedRanges=Nse,
kce.scrollMargins=Mse,kce.darkTheme=rce,kce.cspNonce=foe.define({
combine:e=>e.length?e[0]:""
}),kce.contentAttributes=Pse,kce.editorAttributes=Ase,
kce.lineWrapping=kce.contentAttributes.of({class:"cm-lineWrapping"
}),kce.announce=zoe.define();const Sce=4096,_ce={};class Ece{
constructor(e,t,n,r,o,i){
this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=o,this.order=i}
static update(e,t){if(t.empty&&!e.some((e=>e.fresh)))return e
;let n=[],r=e.length?e[e.length-1].dir:Hae.LTR
;for(let o=Math.max(0,e.length-10);o<e.length;o++){let i=e[o]
;i.dir!=r||t.touchesRange(i.from,i.to)||n.push(new Ece(t.mapPos(i.from,1),t.mapPos(i.to,-1),i.dir,i.isolates,!1,i.order))
}return n}}function Tce(e,t,n){
for(let r=e.state.facet(t),o=r.length-1;o>=0;o--){
let t=r[o],i="function"==typeof t?t(e):t;i&&Tae(i,n)}return n}
const Cce=Oae.mac?"mac":Oae.windows?"win":Oae.linux?"linux":"key"
;function Ace(e,t,n){
return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),
!1!==n&&t.shiftKey&&(e="Shift-"+e),e}
const Pce=Toe.default(kce.domEventHandlers({keydown:(e,t)=>function(e,t,n,r){
Ice=t;let o=function(e){
var t=!(Aie&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Pie&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?Cie:Tie)[e.keyCode]||e.key||"Unidentified"
;return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),
"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t
}(t),i=Jre(Gre(o,0))==o.length&&" "!=o,a="",s=!1,l=!1,c=!1
;Rce&&Rce.view==n&&Rce.scope==r&&(a=Rce.prefix+" ",
lle.indexOf(t.keyCode)<0&&(l=!0,Rce=null));let u,d,p=new Set,h=e=>{if(e){
for(let t of e.run)if(!p.has(t)&&(p.add(t),
t(n)))return e.stopPropagation&&(c=!0),!0
;e.preventDefault&&(e.stopPropagation&&(c=!0),l=!0)}return!1},f=e[r]
;f&&(h(f[a+Ace(o,t,!i)])?s=!0:i&&(t.altKey||t.metaKey||t.ctrlKey)&&!(Oae.windows&&t.ctrlKey&&t.altKey)&&(u=Tie[t.keyCode])&&u!=o?(h(f[a+Ace(u,t,!0)])||t.shiftKey&&(d=Cie[t.keyCode])!=o&&d!=u&&h(f[a+Ace(d,t,!1)]))&&(s=!0):i&&t.shiftKey&&h(f[a+Ace(o,t,!0)])&&(s=!0),
!s&&h(f._any)&&(s=!0));l&&(s=!0);s&&c&&t.stopPropagation();return Ice=null,s
}(function(e){let t=e.facet(Dce),n=$ce.get(t);n||$ce.set(t,n=function(e,t=Cce){
let n=Object.create(null),r=Object.create(null),o=(e,t)=>{let n=r[e]
;if(null==n)r[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")
},i=(e,r,i,a,s)=>{var l,c
;let u=n[e]||(n[e]=Object.create(null)),d=r.split(/ (?!$)/).map((e=>function(e,t){
const n=e.split(/-(?!$)/);let r,o,i,a,s=n[n.length-1];"Space"==s&&(s=" ")
;for(let l=0;l<n.length-1;++l){const e=n[l]
;if(/^(cmd|meta|m)$/i.test(e))a=!0;else if(/^a(lt)?$/i.test(e))r=!0;else if(/^(c|ctrl|control)$/i.test(e))o=!0;else if(/^s(hift)?$/i.test(e))i=!0;else{
if(!/^mod$/i.test(e))throw new Error("Unrecognized modifier name: "+e)
;"mac"==t?a=!0:o=!0}}
return r&&(s="Alt-"+s),o&&(s="Ctrl-"+s),a&&(s="Meta-"+s),i&&(s="Shift-"+s),s
}(e,t)));for(let t=1;t<d.length;t++){let n=d.slice(0,t).join(" ")
;o(n,!0),u[n]||(u[n]={preventDefault:!0,stopPropagation:!1,run:[t=>{let r=Rce={
view:t,prefix:n,scope:e};return setTimeout((()=>{Rce==r&&(Rce=null)}),Nce),!0}]
})}let p=d.join(" ");o(p,!1);let h=u[p]||(u[p]={preventDefault:!1,
stopPropagation:!1,
run:(null===(c=null===(l=u._any)||void 0===l?void 0:l.run)||void 0===c?void 0:c.slice())||[]
});i&&h.run.push(i),a&&(h.preventDefault=!0),s&&(h.stopPropagation=!0)}
;for(let a of e){let e=a.scope?a.scope.split(" "):["editor"]
;if(a.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null))
;e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:r}=a
;for(let t in e)e[t].run.push((e=>r(e,Ice)))}let r=a[t]||a.key
;if(r)for(let t of e)i(t,r,a.run,a.preventDefault,a.stopPropagation),
a.shift&&i(t,"Shift-"+r,a.shift,a.preventDefault,a.stopPropagation)}return n
}(t.reduce(((e,t)=>e.concat(t)),[])));return n}(t.state),e,t,"editor")
})),Dce=foe.define({enables:Pce}),$ce=new WeakMap;let Rce=null;const Nce=4e3
;let Ice=null;const Mce={".cm-line":{"& ::selection, &::selection":{
backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{
caretColor:"initial !important","&::selection, & ::selection":{
backgroundColor:"Highlight !important"}}}};function Lce(e,t,n,r,o){t.lastIndex=0
;for(let i,a=e.iterRange(n,r),s=n;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;i=t.exec(a.value);)o(s+i.index,i)
}
!Oae.ios&&(Mce[".cm-line"].caretColor=Mce[".cm-content"].caretColor="transparent !important")
;class Bce{constructor(e){
const{regexp:t,decoration:n,decorate:r,boundary:o,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,
r)this.addMatch=(e,t,n,o)=>r(o,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,r,o)=>{
let i=n(e,t,r);i&&o(r,r+e[0].length,i)};else{
if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator")
;this.addMatch=(e,t,r,o)=>o(r,r+e[0].length,n)}this.boundary=o,this.maxLength=i}
createDeco(e){let t=new cie,n=t.add.bind(t)
;for(let{from:r,to:o}of function(e,t){let n=e.visibleRanges
;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n
;let r=[]
;for(let{from:o,to:i}of n)o=Math.max(e.state.doc.lineAt(o).from,o-t),i=Math.min(e.state.doc.lineAt(i).to,i+t),
r.length&&r[r.length-1].to>=o?r[r.length-1].to=i:r.push({from:o,to:i});return r
}(e,this.maxLength))Lce(e.state.doc,this.regexp,r,o,((t,r)=>this.addMatch(r,e,t,n)))
;return t.finish()}updateDeco(e,t){let n=1e9,r=-1
;return e.docChanged&&e.changes.iterChanges(((t,o,i,a)=>{
a>e.view.viewport.from&&i<e.view.viewport.to&&(n=Math.min(i,n),r=Math.max(a,r))
})),
e.viewportChanged||r-n>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t
}updateRange(e,t,n,r){for(let o of e.visibleRanges){
let i=Math.max(o.from,n),a=Math.min(o.to,r);if(a>i){
let n=e.state.doc.lineAt(i),r=n.to<a?e.state.doc.lineAt(a):n,s=Math.max(o.from,n.from),l=Math.min(o.to,r.to)
;if(this.boundary){for(;i>n.from;i--)if(this.boundary.test(n.text[i-1-n.from])){
s=i;break}for(;a<r.to;a++)if(this.boundary.test(r.text[a-r.from])){l=a;break}}
let c,u=[],d=(e,t,n)=>u.push(n.range(e,t))
;if(n==r)for(this.regexp.lastIndex=s-n.from;(c=this.regexp.exec(n.text))&&c.index<l-n.from;)this.addMatch(c,e,c.index+n.from,d);else Lce(e.state.doc,this.regexp,s,l,((t,n)=>this.addMatch(n,e,t,d)))
;t=t.update({filterFrom:s,filterTo:l,filter:(e,t)=>e<s||t>l,add:u})}}return t}}
const Qce=null!=/x/.unicode?"gu":"g",jce=new RegExp("[\0-\b\n--­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff￹-￼]",Qce),Uce={
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 Fce=null;const qce=foe.define({combine(e){
let t=rie(e,{render:null,specialChars:jce,addSpecialChars:null})
;return(t.replaceTabs=!function(){var e
;if(null==Fce&&"undefined"!=typeof document&&document.body){
let t=document.body.style
;Fce=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return Fce||!1
}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,Qce)),
t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,Qce)),
t}});function zce(e={}){return[qce.of(e),Hce||(Hce=Tse.fromClass(class{
constructor(e){
this.view=e,this.decorations=Mae.none,this.decorationCache=Object.create(null),
this.decorator=this.makeDecorator(e.state.facet(qce)),
this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new Bce({
regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:o}=n.state,i=Gre(t[0],0)
;if(9==i){let e=o.lineAt(r),t=n.state.tabSize,i=yie(e.text,t,r-e.from)
;return Mae.replace({
widget:new Vce((t-i%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}
return this.decorationCache[i]||(this.decorationCache[i]=Mae.replace({
widget:new Zce(e,i)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){
let t=e.state.facet(qce)
;e.startState.facet(qce)!=t?(this.decorator=this.makeDecorator(t),
this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)
}},{decorations:e=>e.decorations}))]}let Hce=null;class Zce extends Nae{
constructor(e,t){super(),this.options=e,this.code=t}eq(e){
return e.code==this.code}toDOM(e){
let t=(n=this.code)>=32?"•":10==n?"␤":String.fromCharCode(9216+n);var n
;let r=e.state.phrase("Control character")+" "+(Uce[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,r,t)
;if(o)return o;let i=document.createElement("span")
;return i.textContent=t,i.title=r,
i.setAttribute("aria-label",r),i.className="cm-specialChar",i}ignoreEvent(){
return!1}}class Vce extends Nae{constructor(e){super(),this.width=e}eq(e){
return e.width==this.width}toDOM(){let e=document.createElement("span")
;return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}
ignoreEvent(){return!1}}class Wce extends Nae{constructor(e){
super(),this.content=e}toDOM(){let e=document.createElement("span")
;return e.className="cm-placeholder",
e.style.pointerEvents="none",e.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),
"string"==typeof this.content?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),
e}coordsAt(e){let t=e.firstChild?Mie(e.firstChild):[];if(!t.length)return null
;let n=window.getComputedStyle(e.parentNode),r=Fie(t[0],"rtl"!=n.direction),o=parseInt(n.lineHeight)
;return r.bottom-r.top>1.5*o?{left:r.left,right:r.right,top:r.top,bottom:r.top+o
}:r}ignoreEvent(){return!1}}const Xce="-10000px";class Yce{constructor(e,t,n,r){
this.facet=t,
this.createTooltipView=n,this.removeTooltipView=r,this.input=e.state.facet(t),
this.tooltips=this.input.filter((e=>e));let o=null
;this.tooltipViews=this.tooltips.map((e=>o=n(e,o)))}update(e,t){var n
;let r=e.state.facet(this.facet),o=r.filter((e=>e));if(r===this.input){
for(let t of this.tooltipViews)t.update&&t.update(e);return!1}
let i=[],a=t?[]:null;for(let s=0;s<o.length;s++){let n=o[s],r=-1;if(n){
for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e]
;t&&t.create==n.create&&(r=e)}
if(r<0)i[s]=this.createTooltipView(n,s?i[s-1]:null),a&&(a[s]=!!n.above);else{
let n=i[s]=this.tooltipViews[r];a&&(a[s]=t[r]),n.update&&n.update(e)}}}
for(let s of this.tooltipViews)i.indexOf(s)<0&&(this.removeTooltipView(s),
null===(n=s.destroy)||void 0===n||n.call(s))
;return t&&(a.forEach(((e,n)=>t[n]=e)),
t.length=a.length),this.input=r,this.tooltips=o,this.tooltipViews=i,!0}}
function Gce(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,
right:t.innerWidth}}const Kce=foe.define({combine:e=>{var t,n,r;return{
position:Oae.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",
parent:(null===(n=e.find((e=>e.parent)))||void 0===n?void 0:n.parent)||null,
tooltipSpace:(null===(r=e.find((e=>e.tooltipSpace)))||void 0===r?void 0:r.tooltipSpace)||Gce
}}}),Jce=new WeakMap,eue=Tse.fromClass(class{constructor(e){
this.view=e,this.above=[],
this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,
this.measureTimeout=-1;let t=e.state.facet(Kce)
;this.position=t.position,this.parent=t.parent,
this.classes=e.themeClasses,this.createContainer(),this.measureReq={
read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this
},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver((()=>this.measureSoon())):null,
this.manager=new Yce(e,rue,((e,t)=>this.createTooltip(e,t)),(e=>{
this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()
})),this.above=this.manager.tooltips.map((e=>!!e.above)),
this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{
Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()
}),{threshold:[1]
}):null,this.observeIntersection(),e.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 e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)
}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{
this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){
e.transactions.length&&(this.lastTransaction=Date.now())
;let t=this.manager.update(e,this.above);t&&this.observeIntersection()
;let n=t||e.geometryChanged,r=e.state.facet(Kce)
;if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position
;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}
if(r.parent!=this.parent){
this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer()
;for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0
}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses)
;n&&this.maybeMeasure()}createTooltip(e,t){
let n=e.create(this.view),r=t?t.dom:null
;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){
let e=document.createElement("div")
;e.className="cm-tooltip-arrow",n.dom.appendChild(e)}
return n.dom.style.position=this.position,
n.dom.style.top=Xce,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),
n.mount&&n.mount(this.view),
this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n
;this.view.win.removeEventListener("resize",this.measureSoon)
;for(let r of this.manager.tooltipViews)r.dom.remove(),
null===(e=r.destroy)||void 0===e||e.call(r)
;this.parent&&this.container.remove(),
null===(t=this.resizeObserver)||void 0===t||t.disconnect(),
null===(n=this.intersectionObserver)||void 0===n||n.disconnect(),
clearTimeout(this.measureTimeout)}readMeasure(){
let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1
;if("fixed"==this.position&&this.manager.tooltipViews.length){
let{dom:e}=this.manager.tooltipViews[0]
;if(Oae.gecko)r=e.offsetParent!=this.container.ownerDocument.body;else if(e.style.top==Xce&&"0px"==e.style.left){
let t=e.getBoundingClientRect();r=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}}
if(r||"absolute"==this.position)if(this.parent){
let e=this.parent.getBoundingClientRect()
;e.width&&e.height&&(t=e.width/this.parent.offsetWidth,
n=e.height/this.parent.offsetHeight)
}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,
parent:this.parent?this.container.getBoundingClientRect():e,
pos:this.manager.tooltips.map(((e,t)=>{let n=this.manager.tooltipViews[t]
;return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),
size:this.manager.tooltipViews.map((({dom:e})=>e.getBoundingClientRect())),
space:this.view.state.facet(Kce).tooltipSpace(this.view),scaleX:t,scaleY:n,
makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){
this.madeAbsolute=!0,this.position="absolute"
;for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}
let{editor:n,space:r,scaleX:o,scaleY:i}=e,a=[]
;for(let s=0;s<this.manager.tooltips.length;s++){
let l=this.manager.tooltips[s],c=this.manager.tooltipViews[s],{dom:u}=c,d=e.pos[s],p=e.size[s]
;if(!d||d.bottom<=Math.max(n.top,r.top)||d.top>=Math.min(n.bottom,r.bottom)||d.right<Math.max(n.left,r.left)-.1||d.left>Math.min(n.right,r.right)+.1){
u.style.top=Xce;continue}
let h=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,f=h?7:0,m=p.right-p.left,g=null!==(t=Jce.get(c))&&void 0!==t?t:p.bottom-p.top,v=c.offset||nue,b=this.view.textDirection==Hae.LTR,O=p.width>r.right-r.left?b?r.left:r.right-p.width:b?Math.min(d.left-(h?14:0)+v.x,r.right-m):Math.max(r.left,d.left-m+(h?14:0)-v.x),y=this.above[s]
;!l.strictSide&&(y?d.top-(p.bottom-p.top)-v.y<r.top:d.bottom+(p.bottom-p.top)+v.y>r.bottom)&&y==r.bottom-d.bottom>d.top-r.top&&(y=this.above[s]=!y)
;let w=(y?d.top-r.top:r.bottom-d.bottom)-f;if(w<g&&!1!==c.resize){
if(w<this.view.defaultLineHeight){u.style.top=Xce;continue}
Jce.set(c,g),u.style.height=(g=w)/i+"px"
}else u.style.height&&(u.style.height="")
;let x=y?d.top-g-f-v.y:d.bottom+f+v.y,k=O+m
;if(!0!==c.overlap)for(let e of a)e.left<k&&e.right>O&&e.top<x+g&&e.bottom>x&&(x=y?e.top-g-2-f:e.bottom+f+2)
;if("absolute"==this.position?(u.style.top=(x-e.parent.top)/i+"px",
u.style.left=(O-e.parent.left)/o+"px"):(u.style.top=x/i+"px",
u.style.left=O/o+"px"),h){let e=d.left+(b?v.x:-v.x)-(O+14-7)
;h.style.left=e/o+"px"}!0!==c.overlap&&a.push({left:O,top:x,right:k,bottom:x+g
}),
u.classList.toggle("cm-tooltip-above",y),u.classList.toggle("cm-tooltip-below",!y),
c.positioned&&c.positioned(e.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 e of this.manager.tooltipViews)e.dom.style.top=Xce}},{
eventObservers:{scroll(){this.maybeMeasure()}}}),tue=kce.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:"14px",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"}}}),nue={x:0,y:0},rue=foe.define({
enables:[eue,tue]}),oue=foe.define({combine:e=>e.reduce(((e,t)=>e.concat(t)),[])
});class iue{static create(e){return new iue(e)}constructor(e){
this.view=e,this.mounted=!1,
this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),
this.manager=new Yce(e,oue,((e,t)=>this.createHostedView(e,t)),(e=>e.dom.remove()))
}createHostedView(e,t){let n=e.create(this.view)
;return n.dom.classList.add("cm-tooltip-section"),
this.dom.insertBefore(n.dom,t?t.dom.nextSibling:this.dom.firstChild),
this.mounted&&n.mount&&n.mount(this.view),n}mount(e){
for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}
positioned(e){
for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){
this.manager.update(e)}destroy(){var e
;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)
}passProp(e){let t;for(let n of this.manager.tooltipViews){let r=n[e]
;if(void 0!==r)if(void 0===t)t=r;else if(t!==r)return}return t}get offset(){
return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")
}get overlap(){return this.passProp("overlap")}get resize(){
return this.passProp("resize")}}const aue=rue.compute([oue],(e=>{
let t=e.facet(oue);return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),
end:Math.max(...t.map((e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos
}))),create:iue.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}))
;class sue{constructor(e,t,n,r,o){
this.view=e,this.source=t,this.field=n,this.setHover=r,
this.hoverTime=o,this.hoverTimeout=-1,
this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,
time:0
},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),
e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}
update(){
this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))
}get active(){return this.view.state.field(this.field)}checkHover(){
if(this.hoverTimeout=-1,this.active.length)return
;let e=Date.now()-this.lastMove.time
;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()
}startHover(){clearTimeout(this.restartTimeout)
;let{view:e,lastMove:t}=this,n=e.docView.nearest(t.target);if(!n)return
;let r,o=1;if(n instanceof xae)r=n.posAtStart;else{
if(r=e.posAtCoords(t),null==r)return;let n=e.coordsAtPos(r)
;if(!n||t.y<n.top||t.y>n.bottom||t.x<n.left-e.defaultCharacterWidth||t.x>n.right+e.defaultCharacterWidth)return
;let i=e.bidiSpans(e.state.doc.lineAt(r)).find((e=>e.from<=r&&e.to>=r)),a=i&&i.dir==Hae.RTL?-1:1
;o=t.x<n.left?-a:a}let i=this.source(e,r,o);if(null==i?void 0:i.then){
let t=this.pending={pos:r};i.then((n=>{
this.pending==t&&(this.pending=null,!n||Array.isArray(n)&&!n.length||e.dispatch({
effects:this.setHover.of(Array.isArray(n)?n:[n])}))
}),(t=>kse(e.state,t,"hover tooltip")))
}else!i||Array.isArray(i)&&!i.length||e.dispatch({
effects:this.setHover.of(Array.isArray(i)?i:[i])})}get tooltip(){
let e=this.view.plugin(eue),t=e?e.manager.tooltips.findIndex((e=>e.create==iue.create)):-1
;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,n;this.lastMove={
x:e.clientX,y:e.clientY,target:e.target,time:Date.now()
},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime))
;let{active:r,tooltip:o}=this;if(r.length&&o&&!function(e,t){
let n=e.getBoundingClientRect()
;return t.clientX>=n.left-lue&&t.clientX<=n.right+lue&&t.clientY>=n.top-lue&&t.clientY<=n.bottom+lue
}(o.dom,e)||this.pending){
let{pos:o}=r[0]||this.pending,i=null!==(n=null===(t=r[0])||void 0===t?void 0:t.end)&&void 0!==n?n:o
;(o==i?this.view.posAtCoords(this.lastMove)==o:function(e,t,n,r,o,i){
let a=e.scrollDOM.getBoundingClientRect(),s=e.documentTop+e.documentPadding.top+e.contentHeight
;if(a.left>r||a.right<r||a.top>o||Math.min(a.bottom,s)<o)return!1
;let l=e.posAtCoords({x:r,y:o},!1);return l>=t&&l<=n
}(this.view,o,i,e.clientX,e.clientY))||(this.view.dispatch({
effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){
clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this
;if(t.length){let{tooltip:t}=this
;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({
effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=n=>{
e.removeEventListener("mouseleave",t),
this.active.length&&!this.view.dom.contains(n.relatedTarget)&&this.view.dispatch({
effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){
clearTimeout(this.hoverTimeout),
this.view.dom.removeEventListener("mouseleave",this.mouseleave),
this.view.dom.removeEventListener("mousemove",this.mousemove)}}const lue=4
;function cue(e,t={}){let n=zoe.define(),r=woe.define({create:()=>[],
update(e,r){
if(e.length&&(t.hideOnChange&&(r.docChanged||r.selection)?e=[]:t.hideOn&&(e=e.filter((e=>!t.hideOn(r,e)))),
r.docChanged)){let t=[];for(let n of e){
let e=r.changes.mapPos(n.pos,-1,toe.TrackDel);if(null!=e){
let o=Object.assign(Object.create(null),n)
;o.pos=e,null!=o.end&&(o.end=r.changes.mapPos(o.end)),t.push(o)}}e=t}
for(let t of r.effects)t.is(n)&&(e=t.value),t.is(due)&&(e=[]);return e},
provide:e=>oue.from(e)})
;return[r,Tse.define((o=>new sue(o,e,r,n,t.hoverTime||300))),aue]}
function uue(e,t){let n=e.plugin(eue);if(!n)return null
;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}
const due=zoe.define(),pue=foe.define({combine(e){let t,n
;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{
topContainer:t,bottomContainer:n}}}),hue=Tse.fromClass(class{constructor(e){
this.input=e.state.facet(gue),
this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)))
;let t=e.state.facet(pue)
;this.top=new fue(e,!0,t.topContainer),this.bottom=new fue(e,!1,t.bottomContainer),
this.top.sync(this.panels.filter((e=>e.top))),
this.bottom.sync(this.panels.filter((e=>!e.top)))
;for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}
update(e){let t=e.state.facet(pue)
;this.top.container!=t.topContainer&&(this.top.sync([]),
this.top=new fue(e.view,!0,t.topContainer)),
this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),
this.bottom=new fue(e.view,!1,t.bottomContainer)),
this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(gue)
;if(n!=this.input){let t=n.filter((e=>e)),r=[],o=[],i=[],a=[];for(let n of t){
let t,s=this.specs.indexOf(n)
;s<0?(t=n(e.view),a.push(t)):(t=this.panels[s],t.update&&t.update(e)),r.push(t),
(t.top?o:i).push(t)}
this.specs=t,this.panels=r,this.top.sync(o),this.bottom.sync(i)
;for(let e of a)e.dom.classList.add("cm-panel"),e.mount&&e.mount()
}else for(let r of this.panels)r.update&&r.update(e)}destroy(){
this.top.sync([]),this.bottom.sync([])}},{provide:e=>kce.scrollMargins.of((t=>{
let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),
bottom:n.bottom.scrollMargin()}}))});class fue{constructor(e,t,n){
this.view=e,this.top=t,
this.container=n,this.dom=void 0,this.classes="",this.panels=[],
this.syncClasses()}sync(e){
for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy()
;this.panels=e,this.syncDOM()}syncDOM(){
if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),
this.dom=void 0));if(!this.dom){
this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",
this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom
;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild
;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=mue(e)
;e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=mue(e)}
scrollMargin(){
return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)
}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){
for(let e of this.classes.split(" "))e&&this.container.classList.remove(e)
;for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)
}}}function mue(e){let t=e.nextSibling;return e.remove(),t}
const gue=foe.define({enables:hue});class vue extends oie{compare(e){
return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}
destroy(e){}}
vue.prototype.elementClass="",vue.prototype.toDOM=void 0,vue.prototype.mapMode=toe.TrackBefore,
vue.prototype.startSide=vue.prototype.endSide=-1,vue.prototype.point=!0
;const bue=foe.define(),Oue={class:"",renderEmptyElements:!1,elementStyle:"",
markers:()=>lie.empty,lineMarker:()=>null,widgetMarker:()=>null,
lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}
},yue=foe.define();function wue(e){
return[kue(),yue.of(Object.assign(Object.assign({},Oue),e))]}
const xue=foe.define({combine:e=>e.some((e=>e))});function kue(e){return[Sue]}
const Sue=Tse.fromClass(class{constructor(e){
this.view=e,this.prevViewport=e.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=e.state.facet(yue).map((t=>new Cue(e,t)))
;for(let t of this.gutters)this.dom.appendChild(t.dom)
;this.fixed=!e.state.facet(xue),
this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),
e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){
if(this.updateGutters(e)){
let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from)
;this.syncGutters(r<.8*(n.to-n.from))}
e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),
this.view.state.facet(xue)!=!this.fixed&&(this.fixed=!this.fixed,
this.dom.style.position=this.fixed?"sticky":""),
this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling
;e&&this.dom.remove()
;let n=lie.iter(this.view.state.facet(bue),this.view.viewport.from),r=[],o=this.gutters.map((e=>new Tue(e,this.view.viewport,-this.view.documentPadding.top)))
;for(let i of this.view.viewportLineBlocks)if(r.length&&(r=[]),
Array.isArray(i.type)){let e=!0;for(let t of i.type)if(t.type==Iae.Text&&e){
Eue(n,r,t.from);for(let e of o)e.line(this.view,t,r);e=!1
}else if(t.widget)for(let e of o)e.widget(this.view,t)
}else if(i.type==Iae.Text){Eue(n,r,i.from);for(let e of o)e.line(this.view,i,r)
}else if(i.widget)for(let e of o)e.widget(this.view,i);for(let i of o)i.finish()
;e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){
let t=e.startState.facet(yue),n=e.state.facet(yue),r=e.docChanged||e.heightChanged||e.viewportChanged||!lie.eq(e.startState.facet(bue),e.state.facet(bue),e.view.viewport.from,e.view.viewport.to)
;if(t==n)for(let o of this.gutters)o.update(e)&&(r=!0);else{r=!0;let o=[]
;for(let r of n){let n=t.indexOf(r)
;n<0?o.push(new Cue(this.view,r)):(this.gutters[n].update(e),
o.push(this.gutters[n]))}
for(let e of this.gutters)e.dom.remove(),o.indexOf(e)<0&&e.destroy()
;for(let e of o)this.dom.appendChild(e.dom);this.gutters=o}return r}destroy(){
for(let e of this.gutters)e.destroy();this.dom.remove()}},{
provide:e=>kce.scrollMargins.of((t=>{let n=t.plugin(e)
;return n&&0!=n.gutters.length&&n.fixed?t.textDirection==Hae.LTR?{
left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}:null}))})
;function _ue(e){return Array.isArray(e)?e:[e]}function Eue(e,t,n){
for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class Tue{
constructor(e,t,n){
this.gutter=e,this.height=n,this.i=0,this.cursor=lie.iter(e.markers,t.from)}
addElement(e,t,n){
let{gutter:r}=this,o=(t.top-this.height)/e.scaleY,i=t.height/e.scaleY
;if(this.i==r.elements.length){let t=new Aue(e,i,o,n)
;r.elements.push(t),r.dom.appendChild(t.dom)
}else r.elements[this.i].update(e,i,o,n);this.height=t.bottom,this.i++}
line(e,t,n){let r=[];Eue(this.cursor,r,t.from),n.length&&(r=r.concat(n))
;let o=this.gutter.config.lineMarker(e,t,r);o&&r.unshift(o);let i=this.gutter
;(0!=r.length||i.config.renderEmptyElements)&&this.addElement(e,t,r)}
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 Cue{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,(r=>{
let o,i=r.target;if(i!=this.dom&&this.dom.contains(i)){
for(;i.parentNode!=this.dom;)i=i.parentNode;let e=i.getBoundingClientRect()
;o=(e.top+e.bottom)/2}else o=r.clientY
;let a=e.lineBlockAtHeight(o-e.documentTop)
;t.domEventHandlers[n](e,a,r)&&r.preventDefault()}))
;this.markers=_ue(t.markers(e)),
t.initialSpacer&&(this.spacer=new Aue(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=_ue(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){
let t=this.config.updateSpacer(this.spacer.markers[0],e)
;t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}
let n=e.view.viewport
;return!lie.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)
}destroy(){for(let e of this.elements)e.destroy()}}class Aue{
constructor(e,t,n,r){
this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),
this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){
this.height!=t&&(this.height=t,
this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),
function(e,t){if(e.length!=t.length)return!1
;for(let n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0
}(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,t){
let n="cm-gutterElement",r=this.dom.firstChild;for(let o=0,i=0;;){
let a=i,s=o<t.length?t[o++]:null,l=!1;if(s){let e=s.elementClass;e&&(n+=" "+e)
;for(let t=i;t<this.markers.length;t++)if(this.markers[t].compare(s)){a=t,l=!0
;break}}else a=this.markers.length;for(;i<a;){let e=this.markers[i++]
;if(e.toDOM){e.destroy(r);let t=r.nextSibling;r.remove(),r=t}}if(!s)break
;s.toDOM&&(l?r=r.nextSibling:this.dom.insertBefore(s.toDOM(e),r)),l&&i++}
this.dom.className=n,this.markers=t}destroy(){this.setMarkers(null,[])}}
const Pue=foe.define(),Due=foe.define({combine:e=>rie(e,{formatNumber:String,
domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e)
;for(let r in t){let e=n[r],o=t[r];n[r]=e?(t,n,r)=>e(t,n,r)||o(t,n,r):o}return n
}})});class $ue extends vue{constructor(e){super(),this.number=e}eq(e){
return this.number==e.number}toDOM(){return document.createTextNode(this.number)
}}function Rue(e,t){return e.state.facet(Due).formatNumber(t,e.state)}
const Nue=yue.compute([Due],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,
markers:e=>e.state.facet(Pue),
lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new $ue(Rue(e,e.state.doc.lineAt(t.from).number)),
widgetMarker:()=>null,
lineMarkerChange:e=>e.startState.facet(Due)!=e.state.facet(Due),
initialSpacer:e=>new $ue(Rue(e,Iue(e.state.doc.lines))),updateSpacer(e,t){
let n=Rue(t.view,Iue(t.view.state.doc.lines));return n==e.number?e:new $ue(n)},
domEventHandlers:e.facet(Due).domEventHandlers})));function Iue(e){let t=9
;for(;t<e;)t=10*t+9;return t}const Mue=1024;let Lue=0;class Bue{
constructor(e,t){this.from=e,this.to=t}}class Que{constructor(e={}){
this.id=Lue++,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"function"!=typeof e&&(e=Fue.match(e)),t=>{let n=e(t)
;return void 0===n?null:[this,n]}}}Que.closedBy=new Que({
deserialize:e=>e.split(" ")}),Que.openedBy=new Que({deserialize:e=>e.split(" ")
}),Que.group=new Que({deserialize:e=>e.split(" ")}),Que.isolate=new Que({
deserialize:e=>{
if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e)
;return e||"auto"}}),Que.contextHash=new Que({perNode:!0
}),Que.lookAhead=new Que({perNode:!0}),Que.mounted=new Que({perNode:!0})
;class jue{constructor(e,t,n){this.tree=e,this.overlay=t,this.parser=n}
static get(e){return e&&e.props&&e.props[Que.mounted.id]}}
const Uue=Object.create(null);class Fue{constructor(e,t,n,r=0){
this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){
let t=e.props&&e.props.length?Object.create(null):Uue,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new Fue(e.name||"",t,e.id,n)
;if(e.props)for(let o of e.props)if(Array.isArray(o)||(o=o(r)),o){
if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type")
;t[o[0].id]=o[1]}return r}prop(e){return this.props[e.id]}get isTop(){
return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){
return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){
if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(Que.group)
;return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){
let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n]
;return e=>{for(let n=e.prop(Que.group),r=-1;r<(n?n.length:0);r++){
let o=t[r<0?e.name:n[r]];if(o)return o}}}}
Fue.none=new Fue("",Object.create(null),0,8);class que{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 r=null;for(let t of e){
let e=t(n);e&&(r||(r=Object.assign({},n.props)),r[e[0].id]=e[1])}
t.push(r?new Fue(n.name,r,n.id,n.flags):n)}return new que(t)}}
const zue=new WeakMap,Hue=new WeakMap;var Zue,Vue
;(Vue=Zue||(Zue={}))[Vue.ExcludeBuffers=1]="ExcludeBuffers",
Vue[Vue.IncludeAnonymous=2]="IncludeAnonymous",
Vue[Vue.IgnoreMounts=4]="IgnoreMounts",
Vue[Vue.IgnoreOverlays=8]="IgnoreOverlays";class Wue{constructor(e,t,n,r,o){
if(this.type=e,
this.children=t,this.positions=n,this.length=r,this.props=null,o&&o.length){
this.props=Object.create(null)
;for(let[e,t]of o)this.props["number"==typeof e?e:e.id]=t}}toString(){
let e=jue.get(this);if(e&&!e.overlay)return e.tree.toString();let t=""
;for(let n of this.children){let e=n.toString();e&&(t&&(t+=","),t+=e)}
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 sde(this.topNode,e)}cursorAt(e,t=0,n=0){
let r=zue.get(this)||this.topNode,o=new sde(r)
;return o.moveTo(e,t),zue.set(this,o._tree),o}get topNode(){
return new ede(this,0,0,null)}resolve(e,t=0){
let n=Kue(zue.get(this)||this.topNode,e,t,!1);return zue.set(this,n),n}
resolveInner(e,t=0){let n=Kue(Hue.get(this)||this.topNode,e,t,!0)
;return Hue.set(this,n),n}resolveStack(e,t=0){return function(e,t,n){
let r=e.resolveInner(t,n),o=null
;for(let i=r instanceof ede?r:r.context.parent;i;i=i.parent)if(i.index<0){
let e=i.parent;(o||(o=[r])).push(e.resolve(t,n)),i=e}else{let e=jue.get(i.tree)
;if(e&&e.overlay&&e.overlay[0].from<=t&&e.overlay[e.overlay.length-1].to>=t){
let a=new ede(e.tree,e.overlay[0].from+i.from,-1,i)
;(o||(o=[r])).push(Kue(a,t,n,!1))}}return o?ide(o):r}(this,e,t)}iterate(e){
let{enter:t,leave:n,from:r=0,to:o=this.length}=e,i=e.mode||0,a=(i&Zue.IncludeAnonymous)>0
;for(let s=this.cursor(i|Zue.IncludeAnonymous);;){let e=!1
;if(s.from<=o&&s.to>=r&&(!a&&s.type.isAnonymous||!1!==t(s))){
if(s.firstChild())continue;e=!0}
for(;e&&n&&(a||!s.type.isAnonymous)&&n(s),!s.nextSibling();){
if(!s.parent())return;e=!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:dde(Fue.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new Wue(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new Wue(Fue.none,e,t,n)))
}static build(e){return function(e){var t
;let{buffer:n,nodeSet:r,maxBufferLength:o=Mue,reused:i=[],minRepeatType:a=r.types.length}=e,s=Array.isArray(n)?new Xue(n,n.length):n,l=r.types,c=0,u=0
;function d(e,t,n,b,O,y){let{id:w,start:x,end:k,size:S}=s,_=u;for(;S<0;){
if(s.next(),-1==S){let t=i[w];return n.push(t),void b.push(x-e)}
if(-3==S)return void(c=w);if(-4==S)return void(u=w)
;throw new RangeError(`Unrecognized record size: ${S}`)}let E,T,C=l[w],A=x-e
;if(k-x<=o&&(T=g(s.pos-t,O))){
let t=new Uint16Array(T.size-T.skip),n=s.pos-T.size,o=t.length
;for(;s.pos>n;)o=v(T.start,t,o);E=new Yue(t,k-T.start,r),A=T.start-e}else{
let e=s.pos-S;s.next();let t=[],n=[],r=w>=a?w:-1,i=0,l=k
;for(;s.pos>e;)r>=0&&s.id==r&&s.size>=0?(s.end<=l-o&&(f(t,n,x,i,s.end,l,r,_),
i=t.length,l=s.end),s.next()):y>2500?p(x,e,t,n):d(x,e,t,n,r,y+1)
;if(r>=0&&i>0&&i<t.length&&f(t,n,x,i,x,l,r,_),
t.reverse(),n.reverse(),r>-1&&i>0){let e=h(C);E=dde(C,t,n,0,t.length,0,k-x,e,e)
}else E=m(C,t,n,k-x,_-k)}n.push(E),b.push(A)}function p(e,t,n,i){
let a=[],l=0,c=-1;for(;s.pos>t;){let{id:e,start:t,end:n,size:r}=s
;if(r>4)s.next();else{if(c>-1&&t<c)break;c<0&&(c=n-o),a.push(e,t,n),l++,s.next()
}}if(l){let t=new Uint16Array(4*l),o=a[a.length-2]
;for(let e=a.length-3,n=0;e>=0;e-=3)t[n++]=a[e],t[n++]=a[e+1]-o,t[n++]=a[e+2]-o,
t[n++]=n;n.push(new Yue(t,a[2]-o,r)),i.push(o-e)}}function h(e){return(t,n,r)=>{
let o,i,a=0,s=t.length-1;if(s>=0&&(o=t[s])instanceof Wue){
if(!s&&o.type==e&&o.length==r)return o
;(i=o.prop(Que.lookAhead))&&(a=n[s]+o.length+i)}return m(e,t,n,r,a)}}
function f(e,t,n,o,i,a,s,l){let c=[],u=[]
;for(;e.length>o;)c.push(e.pop()),u.push(t.pop()+n-i)
;e.push(m(r.types[s],c,u,a-i,l-a)),t.push(i-n)}function m(e,t,n,r,o=0,i){if(c){
let e=[Que.contextHash,c];i=i?[e].concat(i):[e]}if(o>25){let e=[Que.lookAhead,o]
;i=i?[e].concat(i):[e]}return new Wue(e,t,n,r,i)}function g(e,t){
let n=s.fork(),r=0,i=0,l=0,c=n.end-o,u={size:0,start:0,skip:0}
;e:for(let o=n.pos-e;n.pos>o;){let e=n.size;if(n.id==t&&e>=0){
u.size=r,u.start=i,u.skip=l,l+=4,r+=4,n.next();continue}let s=n.pos-e
;if(e<0||s<o||n.start<c)break;let d=n.id>=a?4:0,p=n.start
;for(n.next();n.pos>s;){if(n.size<0){if(-3!=n.size)break e;d+=4
}else n.id>=a&&(d+=4);n.next()}i=p,r+=e,l+=d}
return(t<0||r==e)&&(u.size=r,u.start=i,u.skip=l),u.size>4?u:void 0}
function v(e,t,n){let{id:r,start:o,end:i,size:l}=s;if(s.next(),l>=0&&r<a){
let a=n;if(l>4){let r=s.pos-(l-4);for(;s.pos>r;)n=v(e,t,n)}
t[--n]=a,t[--n]=i-e,t[--n]=o-e,t[--n]=r}else-3==l?c=r:-4==l&&(u=r);return n}
let b=[],O=[];for(;s.pos>0;)d(e.start||0,e.bufferStart||0,b,O,-1,0)
;let y=null!==(t=e.length)&&void 0!==t?t:b.length?O[0]+b[0].length:0
;return new Wue(l[e.topID],b.reverse(),O.reverse(),y)}(e)}}
Wue.empty=new Wue(Fue.none,[],[],0);class Xue{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 Xue(this.buffer,this.index)}}class Yue{constructor(e,t,n){
this.buffer=e,this.length=t,this.set=n}get type(){return Fue.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],r=this.set.types[t],o=r.name
;if(/\W/.test(o)&&!r.isError&&(o=JSON.stringify(o)),n==(e+=4))return o;let i=[]
;for(;e<n;)i.push(this.childString(e)),e=this.buffer[e+3]
;return o+"("+i.join(",")+")"}findChild(e,t,n,r,o){let{buffer:i}=this,a=-1
;for(let s=e;s!=t&&!(Gue(o,r,i[s+1],i[s+2])&&(a=s,n>0));s=i[s+3]);return a}
slice(e,t,n){let r=this.buffer,o=new Uint16Array(t-e),i=0;for(let a=e,s=0;a<t;){
o[s++]=r[a++],o[s++]=r[a++]-n;let t=o[s++]=r[a++]-n
;o[s++]=r[a++]-e,i=Math.max(i,t)}return new Yue(o,i,this.set)}}
function Gue(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t
;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:
return!0}}function Kue(e,t,n,r){
for(var o;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){
let t=!r&&e instanceof ede&&e.index<0?null:e.parent;if(!t)return e;e=t}
let i=r?0:Zue.IgnoreOverlays
;if(r)for(let a=e,s=a.parent;s;a=s,s=a.parent)a instanceof ede&&a.index<0&&(null===(o=s.enter(t,n,i))||void 0===o?void 0:o.from)!=a.from&&(e=s)
;for(;;){let r=e.enter(t,n,i);if(!r)return e;e=r}}class Jue{cursor(e=0){
return new sde(this,e)}getChild(e,t=null,n=null){let r=tde(this,e,t,n)
;return r.length?r[0]:null}getChildren(e,t=null,n=null){return tde(this,e,t,n)}
resolve(e,t=0){return Kue(this,e,t,!1)}resolveInner(e,t=0){
return Kue(this,e,t,!0)}matchContext(e){return nde(this,e)}
enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){
let e=t.lastChild;if(!e||e.to!=t.to)break
;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){
return this}get next(){return this.parent}}class ede extends Jue{
constructor(e,t,n,r){
super(),this._tree=e,this.from=t,this.index=n,this._parent=r}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,r,o=0){for(let i=this;;){
for(let{children:a,positions:s}=i._tree,l=t>0?a.length:-1;e!=l;e+=t){
let l=a[e],c=s[e]+i.from;if(Gue(r,n,c,c+l.length))if(l instanceof Yue){
if(o&Zue.ExcludeBuffers)continue;let a=l.findChild(0,l.buffer.length,t,n-c,r)
;if(a>-1)return new ode(new rde(i,l,e,c),null,a)
}else if(o&Zue.IncludeAnonymous||!l.type.isAnonymous||lde(l)){let a
;if(!(o&Zue.IgnoreMounts)&&(a=jue.get(l))&&!a.overlay)return new ede(a.tree,c,e,i)
;let s=new ede(l,c,e,i)
;return o&Zue.IncludeAnonymous||!s.type.isAnonymous?s:s.nextChild(t<0?l.children.length-1:0,t,n,r)
}}if(o&Zue.IncludeAnonymous||!i.type.isAnonymous)return null
;if(e=i.index>=0?i.index+t: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 r
;if(!(n&Zue.IgnoreOverlays)&&(r=jue.get(this._tree))&&r.overlay){
let n=e-this.from
;for(let{from:e,to:o}of r.overlay)if((t>0?e<=n:e<n)&&(t<0?o>=n:o>n))return new ede(r.tree,r.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 tde(e,t,n,r){let o=e.cursor(),i=[]
;if(!o.firstChild())return i
;if(null!=n)for(let a=!1;!a;)if(a=o.type.is(n),!o.nextSibling())return i
;for(;;){if(null!=r&&o.type.is(r))return i
;if(o.type.is(t)&&i.push(o.node),!o.nextSibling())return null==r?i:[]}}
function nde(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){
if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}
return!0}class rde{constructor(e,t,n,r){
this.parent=e,this.buffer=t,this.index=n,this.start=r}}class ode extends Jue{
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:r}=this.context,o=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n)
;return o<0?null:new ode(this.context,this,o)}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&Zue.ExcludeBuffers)return null
;let{buffer:r}=this.context,o=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t)
;return o<0?null:new ode(this.context,this,o)}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 ode(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 ode(this.context,this._parent,e.findChild(t,this.index,-1,0,4))
}get tree(){return null}toTree(){
let e=[],t=[],{buffer:n}=this.context,r=this.index+4,o=n.buffer[this.index+3]
;if(o>r){let i=n.buffer[this.index+1];e.push(n.slice(r,o,i)),t.push(0)}
return new Wue(this.type,e,t,this.to-this.from)}toString(){
return this.context.buffer.childString(this.index)}}function ide(e){
if(!e.length)return null;let t=0,n=e[0];for(let i=1;i<e.length;i++){let r=e[i]
;(r.from>n.from||r.to<n.to)&&(n=r,t=i)}
let r=n instanceof ede&&n.index<0?null:n.parent,o=e.slice()
;return r?o[t]=r:o.splice(t,1),new ade(o,n)}class ade{constructor(e,t){
this.heads=e,this.node=t}get next(){return ide(this.heads)}}class sde{
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 ede)this.yieldNode(e);else{
this._tree=e.context.parent,this.buffer=e.context
;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.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)}
yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer
;return this.type=t||r.set.types[r.buffer[e]],
this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){
return!!e&&(e instanceof ede?(this.buffer=null,
this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}
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:r}=this.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n)
;return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}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&Zue.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))
}parent(){
if(!this.buffer)return this.yieldNode(this.mode&Zue.IncludeAnonymous?this._tree._parent:this._tree.parent)
;if(this.stack.length)return this.yieldBuf(this.stack.pop())
;let e=this.mode&Zue.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))
;let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){
let e=n<0?0:this.stack[n]+4
;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{
let e=t.buffer[this.index+3]
;if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}
return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))
}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}
atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){
if(this.index<r.buffer.buffer.length)return!1
}else for(let e=0;e<this.index;e++)if(r.buffer.buffer[e+3]<this.index)return!1
;({index:t,parent:n}=r)}else({index:t,_parent:n}=this._tree)
;for(;n;({index:t,_parent:n}=n))if(t>-1)for(let r=t+e,o=e<0?-1:n._tree.children.length;r!=o;r+=e){
let e=n._tree.children[r]
;if(this.mode&Zue.IncludeAnonymous||e instanceof Yue||!e.type.isAnonymous||lde(e))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 r=this.index,o=this.stack.length;o>=0;){
for(let i=e;i;i=i._parent)if(i.index==r){if(r==this.index)return i;t=i,n=o+1
;break e}r=this.stack[--o]}
for(let r=n;r<this.stack.length;r++)t=new ode(this.buffer,t,this.stack[r])
;return this.bufferNode=new ode(this.buffer,t,this.index)}get tree(){
return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let r=!1
;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}
this.type.isAnonymous||(r=!0)}
for(;r&&t&&t(this),r=this.type.isAnonymous,!this.nextSibling();){if(!n)return
;this.parent(),n--,r=!0}}}matchContext(e){
if(!this.buffer)return nde(this.node,e)
;let{buffer:t}=this.buffer,{types:n}=t.set
;for(let r=e.length-1,o=this.stack.length-1;r>=0;o--){
if(o<0)return nde(this.node,e,r);let i=n[t.buffer[this.stack[o]]]
;if(!i.isAnonymous){if(e[r]&&e[r]!=i.name)return!1;r--}}return!0}}
function lde(e){
return e.children.some((e=>e instanceof Yue||!e.type.isAnonymous||lde(e)))}
const cde=new WeakMap;function ude(e,t){
if(!e.isAnonymous||t instanceof Yue||t.type!=e)return 1;let n=cde.get(t)
;if(null==n){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof Wue)){n=1
;break}n+=ude(e,r)}cde.set(t,n)}return n}function dde(e,t,n,r,o,i,a,s,l){let c=0
;for(let h=r;h<o;h++)c+=ude(e,t[h]);let u=Math.ceil(1.5*c/8),d=[],p=[]
;return function t(n,r,o,a,s){for(let c=o;c<a;){let o=c,h=r[c],f=ude(e,n[c])
;for(c++;c<a;c++){let t=ude(e,n[c]);if(f+t>=u)break;f+=t}if(c==o+1){if(f>u){
let e=n[o];t(e.children,e.positions,0,e.children.length,r[o]+s);continue}
d.push(n[o])}else{let t=r[c-1]+n[c-1].length-h;d.push(dde(e,n,r,o,c,h,t,null,l))
}p.push(h+s-i)}}(t,n,r,o,0),(s||l)(d,p,a)}class pde{constructor(){
this.map=new WeakMap}setBuffer(e,t,n){let r=this.map.get(e)
;r||this.map.set(e,r=new Map),r.set(t,n)}getBuffer(e,t){let n=this.map.get(e)
;return n&&n.get(t)}set(e,t){
e instanceof ode?this.setBuffer(e.context.buffer,e.index,t):e instanceof ede&&this.map.set(e.tree,t)
}get(e){
return e instanceof ode?this.getBuffer(e.context.buffer,e.index):e instanceof ede?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 hde{constructor(e,t,n,r,o=!1,i=!1){
this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(o?1:0)|(i?2:0)}
get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}
static addTree(e,t=[],n=!1){let r=[new hde(0,e.length,e,0,!1,n)]
;for(let o of t)o.to>e.length&&r.push(o);return r}
static applyChanges(e,t,n=128){if(!t.length)return e
;let r=[],o=1,i=e.length?e[0]:null;for(let a=0,s=0,l=0;;a++){
let c=a<t.length?t[a]:null,u=c?c.fromA:1e9;if(u-s>=n)for(;i&&i.from<u;){let t=i
;if(s>=t.from||u<=t.to||l){let e=Math.max(t.from,s)-l,n=Math.min(t.to,u)-l
;t=e>=n?null:new hde(e,n,t.tree,t.offset+l,a>0,!!c)}if(t&&r.push(t),i.to>u)break
;i=o<e.length?e[o++]:null}if(!c)break;s=c.toA,l=c.toA-c.toB}return r}}class fde{
startParse(e,t,n){
return"string"==typeof e&&(e=new mde(e)),n=n?n.length?n.map((e=>new Bue(e.from,e.to))):[new Bue(0,0)]:[new Bue(0,e.length)],
this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){
let e=r.advance();if(e)return e}}}class mde{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)}}class gde{
constructor(e,t,n,r,o){
this.parser=e,this.parse=t,this.overlay=n,this.target=r,this.from=o}}
function vde(e){
if(!e.length||e.some((e=>e.from>=e.to)))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))
}class bde{constructor(e,t,n,r,o,i,a){
this.parser=e,this.predicate=t,this.mounts=n,
this.index=r,this.start=o,this.target=i,this.prev=a,this.depth=0,this.ranges=[]}
}const Ode=new Que({perNode:!0});class yde{constructor(e,t,n,r,o){
this.nest=t,this.input=n,
this.fragments=r,this.ranges=o,this.inner=[],this.innerDone=0,
this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){
if(this.baseParse){let e=this.baseParse.advance();if(!e)return null
;if(this.baseParse=null,
this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let t of this.inner)t.parse.stopAt(this.stoppedAt)
}if(this.innerDone==this.inner.length){let e=this.baseTree
;return null!=this.stoppedAt&&(e=new Wue(e.type,e.children,e.positions,e.length,e.propValues.concat([[Ode,this.stoppedAt]]))),
e}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[Que.mounted.id]=new jue(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 _de(this.fragments),t=null,n=null,r=new sde(new ede(this.baseTree,this.ranges[0].from,0,null),Zue.IncludeAnonymous|Zue.IgnoreMounts)
;e:for(let o,i;;){let a,s=!0
;if(null!=this.stoppedAt&&r.from>=this.stoppedAt)s=!1;else if(e.hasNode(r)){
if(t){
let e=t.mounts.find((e=>e.frag.from<=r.from&&e.frag.to>=r.to&&e.mount.overlay))
;if(e)for(let n of e.mount.overlay){let o=n.from+e.pos,i=n.to+e.pos
;o>=r.from&&i<=r.to&&!t.ranges.some((e=>e.from<i&&e.to>o))&&t.ranges.push({
from:o,to:i})}}s=!1
}else if(n&&(i=wde(n.ranges,r.from,r.to)))s=2!=i;else if(!r.type.isAnonymous&&(o=this.nest(r,this.input))&&(r.from<r.to||!o.overlay)){
r.tree||kde(r);let i=e.findMounts(r.from,o.parser)
;if("function"==typeof o.overlay)t=new bde(o.parser,o.overlay,i,this.inner.length,r.from,r.tree,t);else{
let e=Ede(this.ranges,o.overlay||(r.from<r.to?[new Bue(r.from,r.to)]:[]))
;e.length&&vde(e),
!e.length&&o.overlay||this.inner.push(new gde(o.parser,e.length?o.parser.startParse(this.input,Cde(i,e),e):o.parser.startParse(""),o.overlay?o.overlay.map((e=>new Bue(e.from-r.from,e.to-r.from))):null,r.tree,e.length?e[0].from:r.from)),
o.overlay?e.length&&(n={ranges:e,depth:0,prev:n}):s=!1}
}else t&&(a=t.predicate(r))&&(!0===a&&(a=new Bue(r.from,r.to)),
a.from<a.to&&t.ranges.push(a))
;if(s&&r.firstChild())t&&t.depth++,n&&n.depth++;else for(;!r.nextSibling();){
if(!r.parent())break e;if(t&&! --t.depth){let e=Ede(this.ranges,t.ranges)
;e.length&&(vde(e),
this.inner.splice(t.index,0,new gde(t.parser,t.parser.startParse(this.input,Cde(t.mounts,e),e),t.ranges.map((e=>new Bue(e.from-t.start,e.to-t.start))),t.target,e[0].from))),
t=t.prev}n&&! --n.depth&&(n=n.prev)}}}}function wde(e,t,n){for(let r of e){
if(r.from>=n)break;if(r.to>t)return r.from<=t&&r.to>=n?2:1}return 0}
function xde(e,t,n,r,o,i){if(t<n){let a=e.buffer[t+1]
;r.push(e.slice(t,n,a)),o.push(a-i)}}function kde(e){
let{node:t}=e,n=[],r=t.context.buffer;do{n.push(e.index),e.parent()
}while(!e.tree)
;let o=e.tree,i=o.children.indexOf(r),a=o.children[i],s=a.buffer,l=[i]
;o.children[i]=function e(r,o,i,c,u,d){let p=n[d],h=[],f=[];xde(a,r,p,h,f,c)
;let m=s[p+1],g=s[p+2];l.push(h.length)
;let v=d?e(p+4,s[p+3],a.set.types[s[p]],m,g-m,d-1):t.toTree()
;return h.push(v),f.push(m-c),xde(a,s[p+3],o,h,f,c),new Wue(i,h,f,u)
}(0,s.length,Fue.none,0,a.length,n.length-1);for(let c of l){
let t=e.tree.children[c],n=e.tree.positions[c]
;e.yield(new ede(t,n+e.from,c,e._tree))}}class Sde{constructor(e,t){
this.offset=t,
this.done=!1,this.cursor=e.cursor(Zue.IncludeAnonymous|Zue.IgnoreMounts)}
moveTo(e){let{cursor:t}=this,n=e-this.offset
;for(;!this.done&&t.from<n;)t.to>=e&&t.enter(n,1,Zue.IgnoreOverlays|Zue.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&&0==t.positions[0]&&t.children[0]instanceof Wue))break
;t=t.children[0]}return!1}}let _de=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=null!==(t=n.tree.prop(Ode))&&void 0!==t?t:n.to,
this.inner=new Sde(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=null!==(e=t.tree.prop(Ode))&&void 0!==e?e:t.to,
this.inner=new Sde(t.tree,-t.offset)}}findMounts(e,t){var n;let r=[]
;if(this.inner){this.inner.cursor.moveTo(e,1)
;for(let e=this.inner.cursor.node;e;e=e.parent){
let o=null===(n=e.tree)||void 0===n?void 0:n.prop(Que.mounted)
;if(o&&o.parser==t)for(let t=this.fragI;t<this.fragments.length;t++){
let n=this.fragments[t];if(n.from>=e.to)break
;n.tree==this.curFrag.tree&&r.push({frag:n,pos:e.from-n.offset,mount:o})}}}
return r}};function Ede(e,t){let n=null,r=t;for(let o=1,i=0;o<e.length;o++){
let a=e[o-1].to,s=e[o].from;for(;i<r.length;i++){let e=r[i];if(e.from>=s)break
;e.to<=a||(n||(r=n=t.slice()),
e.from<a?(n[i]=new Bue(e.from,a),e.to>s&&n.splice(i+1,0,new Bue(s,e.to))):e.to>s?n[i--]=new Bue(s,e.to):n.splice(i--,1))
}}return r}function Tde(e,t,n,r){let o=0,i=0,a=!1,s=!1,l=-1e9,c=[];for(;;){
let u=o==e.length?1e9:a?e[o].to:e[o].from,d=i==t.length?1e9:s?t[i].to:t[i].from
;if(a!=s){let e=Math.max(l,n),t=Math.min(u,d,r);e<t&&c.push(new Bue(e,t))}
if(l=Math.min(u,d),1e9==l)break
;u==l&&(a?(a=!1,o++):a=!0),d==l&&(s?(s=!1,i++):s=!0)}return c}function Cde(e,t){
let n=[];for(let{pos:r,mount:o,frag:i}of e){
let e=r+(o.overlay?o.overlay[0].from:0),a=e+o.tree.length,s=Math.max(i.from,e),l=Math.min(i.to,a)
;if(o.overlay){let a=o.overlay.map((e=>new Bue(e.from+r,e.to+r))),c=Tde(t,a,s,l)
;for(let t=0,r=s;;t++){let a=t==c.length,s=a?l:c[t].from
;if(s>r&&n.push(new hde(r,s,o.tree,-e,i.from>=r||i.openStart,i.to<=s||i.openEnd)),
a)break;r=c[t].to}
}else n.push(new hde(s,l,o.tree,-e,i.from>=e||i.openStart,i.to<=a||i.openEnd))}
return n}let Ade=0,Pde=class e{constructor(e,t,n){
this.set=e,this.base=t,this.modified=n,this.id=Ade++}static define(t){
if(null==t?void 0:t.base)throw new Error("Can not derive from a modified tag")
;let n=new e([],null,[]);if(n.set.push(n),t)for(let e of t.set)n.set.push(e)
;return n}static defineModifier(){let e=new $de
;return t=>t.modified.indexOf(e)>-1?t:$de.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))
}},Dde=0;class $de{constructor(){this.instances=[],this.id=Dde++}
static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>{
return n.base==e&&(r=t,
o=n.modified,r.length==o.length&&r.every(((e,t)=>e==o[t])));var r,o}))
;if(n)return n;let r=[],o=new Pde(r,e,t);for(let a of t)a.instances.push(o)
;let i=function(e){let t=[[]]
;for(let n=0;n<e.length;n++)for(let r=0,o=t.length;r<o;r++)t.push(t[r].concat(e[n]))
;return t.sort(((e,t)=>t.length-e.length))}(t)
;for(let a of e.set)if(!a.modified.length)for(let e of i)r.push($de.get(a,e))
;return o}}function Rde(e){let t=Object.create(null);for(let n in e){let r=e[n]
;Array.isArray(r)||(r=[r]);for(let e of n.split(" "))if(e){let n=[],o=2,i=e
;for(let t=0;;){if("..."==i&&t>0&&t+3==e.length){o=1;break}
let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(i)
;if(!r)throw new RangeError("Invalid path: "+e)
;if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),
t+=r[0].length,t==e.length)break;let a=e[t++];if(t==e.length&&"!"==a){o=0;break}
if("/"!=a)throw new RangeError("Invalid path: "+e);i=e.slice(t)}
let a=n.length-1,s=n[a];if(!s)throw new RangeError("Invalid path: "+e)
;let l=new Ide(r,o,a>0?n.slice(0,a):null);t[s]=l.sort(t[s])}}return Nde.add(t)}
const Nde=new Que;class Ide{constructor(e,t,n,r){
this.tags=e,this.mode=t,this.context=n,this.next=r}get opaque(){
return 0==this.mode}get inherit(){return 1==this.mode}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}}function Mde(e,t){
let n=Object.create(null)
;for(let i of e)if(Array.isArray(i.tag))for(let e of i.tag)n[e.id]=i.class;else n[i.tag.id]=i.class
;let{scope:r,all:o=null}=t||{};return{style:e=>{let t=o
;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}
return t},scope:r}}function Lde(e,t,n,r=0,o=e.length){
let i=new Bde(r,Array.isArray(t)?t:[t],n)
;i.highlightRange(e.cursor(),r,o,"",i.highlighters),i.flush(o)}
Ide.empty=new Ide([],2,null);class Bde{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,r,o){let{type:i,from:a,to:s}=e;if(a>=n||s<=t)return
;i.isTop&&(o=this.highlighters.filter((e=>!e.scope||e.scope(i))))
;let l=r,c=function(e){let t=e.type.prop(Nde)
;for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null
}(e)||Ide.empty,u=function(e,t){let n=null;for(let r of e){let e=r.style(t)
;e&&(n=n?n+" "+e:e)}return n}(o,c.tags)
;if(u&&(l&&(l+=" "),l+=u,1==c.mode&&(r+=(r?" ":"")+u)),
this.startSpan(Math.max(t,a),l),c.opaque)return
;let d=e.tree&&e.tree.prop(Que.mounted);if(d&&d.overlay){
let i=e.node.enter(d.overlay[0].from+a,1),c=this.highlighters.filter((e=>!e.scope||e.scope(d.tree.type))),u=e.firstChild()
;for(let p=0,h=a;;p++){
let f=p<d.overlay.length?d.overlay[p]:null,m=f?f.from+a:s,g=Math.max(t,h),v=Math.min(n,m)
;if(g<v&&u)for(;e.from<v&&(this.highlightRange(e,g,v,r,o),
this.startSpan(Math.min(v,e.to),l),!(e.to>=m)&&e.nextSibling()););
if(!f||m>n)break
;h=f.to+a,h>t&&(this.highlightRange(i.cursor(),Math.max(t,f.from+a),Math.min(n,h),"",c),
this.startSpan(Math.min(n,h),l))}u&&e.parent()}else if(e.firstChild()){d&&(r="")
;do{if(!(e.to<=t)){if(e.from>=n)break
;this.highlightRange(e,t,n,r,o),this.startSpan(Math.min(n,e.to),l)}
}while(e.nextSibling());e.parent()}}}
const Qde=Pde.define,jde=Qde(),Ude=Qde(),Fde=Qde(Ude),qde=Qde(Ude),zde=Qde(),Hde=Qde(zde),Zde=Qde(zde),Vde=Qde(),Wde=Qde(Vde),Xde=Qde(),Yde=Qde(),Gde=Qde(),Kde=Qde(Gde),Jde=Qde(),epe={
comment:jde,lineComment:Qde(jde),blockComment:Qde(jde),docComment:Qde(jde),
name:Ude,variableName:Qde(Ude),typeName:Fde,tagName:Qde(Fde),propertyName:qde,
attributeName:Qde(qde),className:Qde(Ude),labelName:Qde(Ude),namespace:Qde(Ude),
macroName:Qde(Ude),literal:zde,string:Hde,docString:Qde(Hde),character:Qde(Hde),
attributeValue:Qde(Hde),number:Zde,integer:Qde(Zde),float:Qde(Zde),
bool:Qde(zde),regexp:Qde(zde),escape:Qde(zde),color:Qde(zde),url:Qde(zde),
keyword:Xde,self:Qde(Xde),null:Qde(Xde),atom:Qde(Xde),unit:Qde(Xde),
modifier:Qde(Xde),operatorKeyword:Qde(Xde),controlKeyword:Qde(Xde),
definitionKeyword:Qde(Xde),moduleKeyword:Qde(Xde),operator:Yde,
derefOperator:Qde(Yde),arithmeticOperator:Qde(Yde),logicOperator:Qde(Yde),
bitwiseOperator:Qde(Yde),compareOperator:Qde(Yde),updateOperator:Qde(Yde),
definitionOperator:Qde(Yde),typeOperator:Qde(Yde),controlOperator:Qde(Yde),
punctuation:Gde,separator:Qde(Gde),bracket:Kde,angleBracket:Qde(Kde),
squareBracket:Qde(Kde),paren:Qde(Kde),brace:Qde(Kde),content:Vde,heading:Wde,
heading1:Qde(Wde),heading2:Qde(Wde),heading3:Qde(Wde),heading4:Qde(Wde),
heading5:Qde(Wde),heading6:Qde(Wde),contentSeparator:Qde(Vde),list:Qde(Vde),
quote:Qde(Vde),emphasis:Qde(Vde),strong:Qde(Vde),link:Qde(Vde),
monospace:Qde(Vde),strikethrough:Qde(Vde),inserted:Qde(),deleted:Qde(),
changed:Qde(),invalid:Qde(),meta:Jde,documentMeta:Qde(Jde),annotation:Qde(Jde),
processingInstruction:Qde(Jde),definition:Pde.defineModifier(),
constant:Pde.defineModifier(),function:Pde.defineModifier(),
standard:Pde.defineModifier(),local:Pde.defineModifier(),
special:Pde.defineModifier()};var tpe;Mde([{tag:epe.link,class:"tok-link"},{
tag:epe.heading,class:"tok-heading"},{tag:epe.emphasis,class:"tok-emphasis"},{
tag:epe.strong,class:"tok-strong"},{tag:epe.keyword,class:"tok-keyword"},{
tag:epe.atom,class:"tok-atom"},{tag:epe.bool,class:"tok-bool"},{tag:epe.url,
class:"tok-url"},{tag:epe.labelName,class:"tok-labelName"},{tag:epe.inserted,
class:"tok-inserted"},{tag:epe.deleted,class:"tok-deleted"},{tag:epe.literal,
class:"tok-literal"},{tag:epe.string,class:"tok-string"},{tag:epe.number,
class:"tok-number"},{tag:[epe.regexp,epe.escape,epe.special(epe.string)],
class:"tok-string2"},{tag:epe.variableName,class:"tok-variableName"},{
tag:epe.local(epe.variableName),class:"tok-variableName tok-local"},{
tag:epe.definition(epe.variableName),class:"tok-variableName tok-definition"},{
tag:epe.special(epe.variableName),class:"tok-variableName2"},{
tag:epe.definition(epe.propertyName),class:"tok-propertyName tok-definition"},{
tag:epe.typeName,class:"tok-typeName"},{tag:epe.namespace,class:"tok-namespace"
},{tag:epe.className,class:"tok-className"},{tag:epe.macroName,
class:"tok-macroName"},{tag:epe.propertyName,class:"tok-propertyName"},{
tag:epe.operator,class:"tok-operator"},{tag:epe.comment,class:"tok-comment"},{
tag:epe.meta,class:"tok-meta"},{tag:epe.invalid,class:"tok-invalid"},{
tag:epe.punctuation,class:"tok-punctuation"}]);const npe=new Que
;function rpe(e){return foe.define({combine:e?t=>t.concat(e):void 0})}
const ope=new Que;class ipe{constructor(e,t,n=[],r=""){
this.data=e,this.name=r,nie.prototype.hasOwnProperty("tree")||Object.defineProperty(nie.prototype,"tree",{
get(){return lpe(this)}
}),this.parser=t,this.extension=[vpe.of(this),nie.languageData.of(((e,t,n)=>{
let r=ape(e,t,n),o=r.type.prop(npe);if(!o)return[]
;let i=e.facet(o),a=r.type.prop(ope);if(a){let o=r.resolve(t-r.from,n)
;for(let t of a)if(t.test(o,e)){let n=e.facet(t.facet)
;return"replace"==t.type?n:n.concat(i)}}return i}))].concat(n)}
isActiveAt(e,t,n=-1){return ape(e,t,n).type.prop(npe)==this.data}findRegions(e){
let t=e.facet(vpe);if((null==t?void 0:t.data)==this.data)return[{from:0,
to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{
if(e.prop(npe)==this.data)return void n.push({from:t,to:t+e.length})
;let o=e.prop(Que.mounted);if(o){if(o.tree.prop(npe)==this.data){
if(o.overlay)for(let e of o.overlay)n.push({from:e.from+t,to:e.to+t
});else n.push({from:t,to:t+e.length});return}if(o.overlay){let e=n.length
;if(r(o.tree,o.overlay[0].from+t),n.length>e)return}}
for(let n=0;n<e.children.length;n++){let o=e.children[n]
;o instanceof Wue&&r(o,e.positions[n]+t)}};return r(lpe(e),0),n}
get allowsNesting(){return!0}}function ape(e,t,n){
let r=e.facet(vpe),o=lpe(e).topNode
;if(!r||r.allowsNesting)for(let i=o;i;i=i.enter(t,n,Zue.ExcludeBuffers))i.type.isTop&&(o=i)
;return o}ipe.setState=zoe.define();class spe extends ipe{constructor(e,t,n){
super(e,t,[],n),this.parser=t}static define(e){let t=rpe(e.languageData)
;return new spe(t,e.parser.configure({props:[npe.add((e=>e.isTop?t:void 0))]
}),e.name)}configure(e,t){
return new spe(this.data,this.parser.configure(e),t||this.name)}
get allowsNesting(){return this.parser.hasWrappers()}}function lpe(e){
let t=e.field(ipe.state,!1);return t?t.tree:Wue.empty}class cpe{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 upe=null;class dpe{constructor(e,t,n=[],r,o,i,a,s){
this.parser=e,this.state=t,
this.fragments=n,this.tree=r,this.treeLen=o,this.viewport=i,
this.skipped=a,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}
static create(e,t,n){return new dpe(e,t,[],Wue.empty,0,n,[],null)}startParse(){
return this.parser.startParse(new cpe(this.state.doc),this.fragments)}work(e,t){
return null!=t&&t>=this.state.doc.length&&(t=void 0),
this.tree!=Wue.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),
!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e
;e=()=>Date.now()>t}
for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){
let r=this.parse.advance();if(r){
if(this.fragments=this.withoutTempSkipped(hde.addTree(r,this.fragments,null!=this.parse.stoppedAt)),
this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,
this.tree=r,
this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0
;this.parse=this.startParse()}if(e())return!1}}))}takeTree(){let e,t
;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||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(hde.addTree(this.tree,this.fragments,!0)),
this.parse=null)}withContext(e){let t=upe;upe=this;try{return e()}finally{upe=t}
}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=ppe(e,t.from,t.to)
;return e}changes(e,t){
let{fragments:n,tree:r,treeLen:o,viewport:i,skipped:a}=this
;if(this.takeTree(),!e.empty){let t=[]
;if(e.iterChangedRanges(((e,n,r,o)=>t.push({fromA:e,toA:n,fromB:r,toB:o
}))),n=hde.applyChanges(n,t),r=Wue.empty,o=0,i={from:e.mapPos(i.from,-1),
to:e.mapPos(i.to,1)},this.skipped.length){a=[];for(let t of this.skipped){
let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);n<r&&a.push({from:n,to:r})}}}
return new dpe(this.parser,t,n,r,o,i,a,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:t,to:r}=this.skipped[n]
;t<e.to&&r>e.from&&(this.fragments=ppe(this.fragments,t,r),
this.skipped.splice(n--,1))}return!(this.skipped.length>=t)&&(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 fde{createParse(t,n,r){
let o=r[0].from,i=r[r.length-1].to,a={parsedPos:o,advance(){let t=upe;if(t){
for(let e of r)t.tempSkipped.push(e)
;e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}
return this.parsedPos=i,new Wue(Fue.none,[],[],i-o)},stoppedAt:null,stopAt(){}}
;return a}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments
;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){
return upe}}function ppe(e,t,n){return hde.applyChanges(e,[{fromA:t,toA:n,
fromB:t,toB:n}])}class hpe{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 hpe(t)}static init(e){
let t=Math.min(3e3,e.doc.length),n=dpe.create(e.facet(vpe).parser,e,{from:0,to:t
});return n.work(20,t)||n.takeTree(),new hpe(n)}}ipe.state=woe.define({
create:hpe.init,update(e,t){
for(let n of t.effects)if(n.is(ipe.setState))return n.value
;return t.startState.facet(vpe)!=t.state.facet(vpe)?hpe.init(t.state):e.apply(t)
}});let fpe=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)}
;"undefined"!=typeof requestIdleCallback&&(fpe=e=>{let t=-1,n=setTimeout((()=>{
t=requestIdleCallback(e,{timeout:400})}),100)
;return()=>t<0?clearTimeout(n):cancelIdleCallback(t)})
;const mpe="undefined"!=typeof navigator&&(null===(tpe=navigator.scheduling)||void 0===tpe?void 0:tpe.isInputPending)?()=>navigator.scheduling.isInputPending():null,gpe=Tse.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(ipe.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(ipe.state)
;t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=fpe(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:r}}=this.view,o=n.field(ipe.state)
;if(o.tree==o.context.tree&&o.context.isDone(r+1e5))return
;let i=Date.now()+Math.min(this.chunkBudget,100,e&&!mpe?Math.max(25,e.timeRemaining()-5):1e9),a=o.context.treeLen<r&&n.doc.length>r+1e3,s=o.context.work((()=>mpe&&mpe()||Date.now()>i),r+(a?0:1e5))
;this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(o.context.takeTree(),
this.view.dispatch({effects:ipe.setState.of(new hpe(o.context))
})),this.chunkBudget>0&&(!s||a)&&this.scheduleWork(),
this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){
e.scheduleOn&&(this.workScheduled++,
e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>kse(this.view.state,e))).then((()=>this.workScheduled--)),
e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){
return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){
this.scheduleWork()}}}),vpe=foe.define({combine:e=>e.length?e[0]:null,
enables:e=>[ipe.state,gpe,kce.contentAttributes.compute([e],(t=>{
let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}}))]});class bpe{
constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}
const Ope=foe.define(),ype=foe.define({combine:e=>{if(!e.length)return"  "
;let t=e[0]
;if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]))
;return t}});function wpe(e){let t=e.facet(ype)
;return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function xpe(e,t){
let n="",r=e.tabSize,o=e.facet(ype)[0];if("\t"==o){for(;t>=r;)n+="\t",t-=r;o=" "
}for(let i=0;i<t;i++)n+=o;return n}function kpe(e,t){
e instanceof nie&&(e=new Spe(e));for(let r of e.state.facet(Ope)){let n=r(e,t)
;if(void 0!==n)return n}let n=lpe(e.state);return n.length>=t?function(e,t,n){
let r=t.resolveStack(n),o=r.node.enterUnfinishedNodesBefore(n);if(o!=r.node){
let e=[];for(let t=o;t!=r.node;t=t.parent)e.push(t)
;for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return Epe(r,e,n)
}(e,n,t):null}class Spe{constructor(e,t={}){
this.state=e,this.options=t,this.unit=wpe(e)}lineAt(e,t=1){
let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:o}=this.options
;return null!=r&&r>=n.from&&r<=n.to?o&&r==e?{text:"",from:e}:(t<0?r<e:r<=e)?{
text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from
}:n}textAfterPos(e,t=1){
if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return""
;let{text:n,from:r}=this.lineAt(e,t)
;return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,t=1){
let{text:n,from:r}=this.lineAt(e,t),o=this.countColumn(n,e-r),i=this.options.overrideIndentation?this.options.overrideIndentation(r):-1
;return i>-1&&(o+=i-this.countColumn(n,n.search(/\S|$/))),o}
countColumn(e,t=e.length){return yie(e,this.state.tabSize,t)}lineIndent(e,t=1){
let{text:n,from:r}=this.lineAt(e,t),o=this.options.overrideIndentation;if(o){
let e=o(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}
get simulatedBreak(){return this.options.simulateBreak||null}}const _pe=new Que
;function Epe(e,t,n){for(let r=e;r;r=r.next){let e=Tpe(r.node)
;if(e)return e(Ape.create(t,n,r))}return 0}function Tpe(e){
let t=e.type.prop(_pe);if(t)return t;let n,r=e.firstChild
;if(r&&(n=r.type.prop(Que.closedBy))){
let t=e.lastChild,r=t&&n.indexOf(t.name)>-1
;return e=>$pe(e,!0,1,void 0,r&&!function(e){
return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak
}(e)?t.from:void 0)}return null==e.parent?Cpe:null}function Cpe(){return 0}
class Ape extends Spe{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 Ape(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(Ppe(n,e))break
;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){
return Epe(this.context.next,this.base,this.pos)}}function Ppe(e,t){
for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}
function Dpe({closing:e,align:t=!0,units:n=1}){return r=>$pe(r,t,n,e)}
function $pe(e,t,n,r,o){
let i=e.textAfter,a=i.match(/^\s*/)[0].length,s=r&&i.slice(a,a+r.length)==r||o==e.pos+a,l=t?function(e){
let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null
;let o=e.options.simulateBreak,i=e.state.doc.lineAt(n.from),a=null==o||o<=i.from?i.to:Math.min(i.to,o)
;for(let s=n.to;;){let e=t.childAfter(s);if(!e||e==r)return null
;if(!e.type.isSkipped)return e.from<a?n:null;s=e.to}}(e):null
;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*n)}
function Rpe({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter)
;return n.baseIndent+(r?0:t*n.unit)}}const Npe=200
;const Ipe=foe.define(),Mpe=new Que;function Lpe(e){
let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,
to:n.type.isError?e.to:n.from}:null}function Bpe(e){let t=e.lastChild
;return t&&t.to==e.to&&t.type.isError}function Qpe(e,t,n){
for(let r of e.facet(Ipe)){let o=r(e,t,n);if(o)return o}return function(e,t,n){
let r=lpe(e);if(r.length<n)return null;let o=null
;for(let i=r.resolveStack(n,1);i;i=i.next){let a=i.node
;if(a.to<=n||a.from>n)continue;if(o&&a.from<t)break;let s=a.type.prop(Mpe)
;if(s&&(a.to<r.length-50||r.length==e.doc.length||!Bpe(a))){let r=s(a,e)
;r&&r.from<=n&&r.from>=t&&r.to>n&&(o=r)}}return o}(e,t,n)}function jpe(e,t){
let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}
const Upe=zoe.define({map:jpe}),Fpe=zoe.define({map:jpe}),qpe=woe.define({
create:()=>Mae.none,update(e,t){e=e.map(t.changes)
;for(let n of t.effects)if(n.is(Upe)&&!Hpe(e,n.value.from,n.value.to)){
let{preparePlaceholder:r}=t.state.facet(Vpe),o=r?Mae.replace({
widget:new Ype(r(t.state,n.value))}):Xpe;e=e.update({
add:[o.range(n.value.from,n.value.to)]})}else n.is(Fpe)&&(e=e.update({
filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,
filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main
;e.between(r,r,((e,t)=>{e<r&&t>r&&(n=!0)})),n&&(e=e.update({filterFrom:r,
filterTo:r,filter:(e,t)=>t<=r||e>=r}))}return e},
provide:e=>kce.decorations.from(e),toJSON(e,t){let n=[]
;return e.between(0,t.doc.length,((e,t)=>{n.push(e,t)})),n},fromJSON(e){
if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state")
;let t=[];for(let n=0;n<e.length;){let r=e[n++],o=e[n++]
;if("number"!=typeof r||"number"!=typeof o)throw new RangeError("Invalid JSON for fold state")
;t.push(Xpe.range(r,o))}return Mae.set(t,!0)}});function zpe(e,t,n){var r
;let o=null
;return null===(r=e.field(qpe,!1))||void 0===r||r.between(t,n,((e,t)=>{
(!o||o.from>e)&&(o={from:e,to:t})})),o}function Hpe(e,t,n){let r=!1
;return e.between(t,t,((e,o)=>{e==t&&o==n&&(r=!0)})),r}const Zpe={
placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"
},Vpe=foe.define({combine:e=>rie(e,Zpe)});function Wpe(e,t){
let{state:n}=e,r=n.facet(Vpe),o=t=>{
let n=e.lineBlockAt(e.posAtDOM(t.target)),r=zpe(e.state,n.from,n.to)
;r&&e.dispatch({effects:Fpe.of(r)}),t.preventDefault()}
;if(r.placeholderDOM)return r.placeholderDOM(e,o,t)
;let i=document.createElement("span")
;return i.textContent=r.placeholderText,i.setAttribute("aria-label",n.phrase("folded code")),
i.title=n.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=o,i}
const Xpe=Mae.replace({widget:new class extends Nae{toDOM(e){return Wpe(e,null)}
}});class Ype extends Nae{constructor(e){super(),this.value=e}eq(e){
return this.value==e.value}toDOM(e){return Wpe(e,this.value)}}const Gpe={
openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},
foldingChanged:()=>!1};class Kpe extends vue{constructor(e,t){
super(),this.config=e,this.open=t}eq(e){
return this.config==e.config&&this.open==e.open}toDOM(e){
if(this.config.markerDOM)return this.config.markerDOM(this.open)
;let t=document.createElement("span")
;return t.textContent=this.open?this.config.openText:this.config.closedText,
t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}
const Jpe=kce.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",
border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",
padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",
cursor:"pointer"}});class ehe{constructor(e,t){let n;function r(e){
let t=Sie.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e
;const o="string"==typeof t.all?t.all:t.all?r(t.all):void 0,i=t.scope
;this.scope=i instanceof ipe?e=>e.prop(npe)==i.data:i?e=>e==i:void 0,
this.style=Mde(e.map((e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{
tag:null}))}))),{all:o
}).style,this.module=n?new Sie(n):null,this.themeType=t.themeType}
static define(e,t){return new ehe(e,t||{})}}
const the=foe.define(),nhe=foe.define({combine:e=>e.length?[e[0]]:null})
;function rhe(e){let t=e.facet(the);return t.length?t:e.facet(nhe)}
function ohe(e,t){let n,r=[ahe]
;return e instanceof ehe&&(e.module&&r.push(kce.styleModule.of(e.module)),
n=e.themeType),
(null==t?void 0:t.fallback)?r.push(nhe.of(e)):n?r.push(the.computeN([kce.darkTheme],(t=>t.facet(kce.darkTheme)==("dark"==n)?[e]:[]))):r.push(the.of(e)),
r}class ihe{constructor(e){
this.markCache=Object.create(null),this.tree=lpe(e.state),
this.decorations=this.buildDeco(e,rhe(e.state)),this.decoratedTo=e.viewport.to}
update(e){
let t=lpe(e.state),n=rhe(e.state),r=n!=rhe(e.startState),{viewport:o}=e.view,i=e.changes.mapPos(this.decoratedTo,1)
;t.length<o.to&&!r&&t.type==this.tree.type&&i>=o.to?(this.decorations=this.decorations.map(e.changes),
this.decoratedTo=i):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,
this.decorations=this.buildDeco(e.view,n),this.decoratedTo=o.to)}buildDeco(e,t){
if(!t||!this.tree.length)return Mae.none;let n=new cie
;for(let{from:r,to:o}of e.visibleRanges)Lde(this.tree,t,((e,t,r)=>{
n.add(e,t,this.markCache[r]||(this.markCache[r]=Mae.mark({class:r})))}),r,o)
;return n.finish()}}const ahe=Toe.high(Tse.fromClass(ihe,{
decorations:e=>e.decorations})),she=ehe.define([{tag:epe.meta,color:"#404740"},{
tag:epe.link,textDecoration:"underline"},{tag:epe.heading,
textDecoration:"underline",fontWeight:"bold"},{tag:epe.emphasis,
fontStyle:"italic"},{tag:epe.strong,fontWeight:"bold"},{tag:epe.strikethrough,
textDecoration:"line-through"},{tag:epe.keyword,color:"#708"},{
tag:[epe.atom,epe.bool,epe.url,epe.contentSeparator,epe.labelName],color:"#219"
},{tag:[epe.literal,epe.inserted],color:"#164"},{tag:[epe.string,epe.deleted],
color:"#a11"},{tag:[epe.regexp,epe.escape,epe.special(epe.string)],color:"#e40"
},{tag:epe.definition(epe.variableName),color:"#00f"},{
tag:epe.local(epe.variableName),color:"#30a"},{tag:[epe.typeName,epe.namespace],
color:"#085"},{tag:epe.className,color:"#167"},{
tag:[epe.special(epe.variableName),epe.macroName],color:"#256"},{
tag:epe.definition(epe.propertyName),color:"#00c"},{tag:epe.comment,color:"#940"
},{tag:epe.invalid,color:"#f00"}]),lhe=kce.baseTheme({
"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},
"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}
}),che="()[]{}",uhe=foe.define({combine:e=>rie(e,{afterCursor:!0,brackets:che,
maxScanDistance:1e4,renderMatch:hhe})}),dhe=Mae.mark({class:"cm-matchingBracket"
}),phe=Mae.mark({class:"cm-nonmatchingBracket"});function hhe(e){
let t=[],n=e.matched?dhe:phe
;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),
t}const fhe=[woe.define({create:()=>Mae.none,update(e,t){
if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(uhe)
;for(let o of t.state.selection.ranges){if(!o.empty)continue
;let e=Ohe(t.state,o.head,-1,r)||o.head>0&&Ohe(t.state,o.head-1,1,r)||r.afterCursor&&(Ohe(t.state,o.head,1,r)||o.head<t.state.doc.length&&Ohe(t.state,o.head+1,-1,r))
;e&&(n=n.concat(r.renderMatch(e,t.state)))}return Mae.set(n,!0)},
provide:e=>kce.decorations.from(e)}),lhe];function mhe(e={}){
return[uhe.of(e),fhe]}const ghe=new Que;function vhe(e,t,n){
let r=e.prop(t<0?Que.openedBy:Que.closedBy);if(r)return r;if(1==e.name.length){
let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}
function bhe(e){let t=e.type.prop(ghe);return t?t(e.node):e}
function Ohe(e,t,n,r={}){
let o=r.maxScanDistance||1e4,i=r.brackets||che,a=lpe(e),s=a.resolveInner(t,n)
;for(let l=s;l;l=l.parent){let r=vhe(l.type,n,i);if(r&&l.from<l.to){let o=bhe(l)
;if(o&&(n>0?t>=o.from&&t<o.to:t>o.from&&t<=o.to))return yhe(e,t,n,l,o,r,i)}}
return function(e,t,n,r,o,i,a){
let s=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=a.indexOf(s)
;if(l<0||l%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t
},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0
;for(let p=0;!u.next().done&&p<=i;){let e=u.value;n<0&&(p+=e.length);let i=t+p*n
;for(let t=n>0?0:e.length-1,s=n>0?e.length:-1;t!=s;t+=n){let s=a.indexOf(e[t])
;if(!(s<0||r.resolveInner(i+t,1).type!=o))if(s%2==0==n>0)d++;else{
if(1==d)return{start:c,end:{from:i+t,to:i+t+1},matched:s>>1==l>>1};d--}}
n>0&&(p+=e.length)}return u.done?{start:c,matched:!1}:null}(e,t,n,a,s.type,o,i)}
function yhe(e,t,n,r,o,i,a){let s=r.parent,l={from:o.from,to:o.to
},c=0,u=null==s?void 0:s.cursor()
;if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do{
if(n<0?u.to<=r.from:u.from>=r.to){
if(0==c&&i.indexOf(u.type.name)>-1&&u.from<u.to){let e=bhe(u);return{start:l,
end:e?{from:e.from,to:e.to}:void 0,matched:!0}}
if(vhe(u.type,n,a))c++;else if(vhe(u.type,-n,a)){if(0==c){let e=bhe(u);return{
start:l,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}c--}}
}while(n<0?u.prevSibling():u.nextSibling());return{start:l,matched:!1}}
const whe=Object.create(null),xhe=[Fue.none],khe=[],She=Object.create(null),_he=Object.create(null)
;for(let[y_e,w_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"]])_he[y_e]=The(whe,w_e)
;function Ehe(e,t){khe.indexOf(e)>-1||(khe.push(e),console.warn(t))}
function The(e,t){let n=[];for(let s of t.split(" ")){let t=[]
;for(let n of s.split(".")){let r=e[n]||epe[n]
;r?"function"==typeof r?t.length?t=t.map(r):Ehe(n,`Modifier ${n} used at start of tag`):t.length?Ehe(n,`Tag ${n} used as modifier`):t=Array.isArray(r)?r:[r]:Ehe(n,`Unknown highlighting tag ${n}`)
}for(let e of t)n.push(e)}if(!n.length)return 0
;let r=t.replace(/ /g,"_"),o=r+" "+n.map((e=>e.id)),i=She[o];if(i)return i.id
;let a=She[o]=Fue.define({id:xhe.length,name:r,props:[Rde({[r]:n})]})
;return xhe.push(a),a.id}Hae.RTL,Hae.LTR
;const Che=new Map([["aliceblue","#f0f8ff"],["antiquewhite","#faebd7"],["aqua","#00ffff"],["aquamarine","#7fffd4"],["azure","#f0ffff"],["beige","#f5f5dc"],["bisque","#ffe4c4"],["black","#000000"],["blanchedalmond","#ffebcd"],["blue","#0000ff"],["blueviolet","#8a2be2"],["brown","#a52a2a"],["burlywood","#deb887"],["cadetblue","#5f9ea0"],["chartreuse","#7fff00"],["chocolate","#d2691e"],["coral","#ff7f50"],["cornflowerblue","#6495ed"],["cornsilk","#fff8dc"],["crimson","#dc143c"],["cyan","#00ffff"],["darkblue","#00008b"],["darkcyan","#008b8b"],["darkgoldenrod","#b8860b"],["darkgray","#a9a9a9"],["darkgreen","#006400"],["darkgrey","#a9a9a9"],["darkkhaki","#bdb76b"],["darkmagenta","#8b008b"],["darkolivegreen","#556b2f"],["darkorange","#ff8c00"],["darkorchid","#9932cc"],["darkred","#8b0000"],["darksalmon","#e9967a"],["darkseagreen","#8fbc8f"],["darkslateblue","#483d8b"],["darkslategray","#2f4f4f"],["darkslategrey","#2f4f4f"],["darkturquoise","#00ced1"],["darkviolet","#9400d3"],["deeppink","#ff1493"],["deepskyblue","#00bfff"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1e90ff"],["firebrick","#b22222"],["floralwhite","#fffaf0"],["forestgreen","#228b22"],["fuchsia","#ff00ff"],["gainsboro","#dcdcdc"],["ghostwhite","#f8f8ff"],["goldenrod","#daa520"],["gold","#ffd700"],["gray","#808080"],["green","#008000"],["greenyellow","#adff2f"],["grey","#808080"],["honeydew","#f0fff0"],["hotpink","#ff69b4"],["indianred","#cd5c5c"],["indigo","#4b0082"],["ivory","#fffff0"],["khaki","#f0e68c"],["lavenderblush","#fff0f5"],["lavender","#e6e6fa"],["lawngreen","#7cfc00"],["lemonchiffon","#fffacd"],["lightblue","#add8e6"],["lightcoral","#f08080"],["lightcyan","#e0ffff"],["lightgoldenrodyellow","#fafad2"],["lightgray","#d3d3d3"],["lightgreen","#90ee90"],["lightgrey","#d3d3d3"],["lightpink","#ffb6c1"],["lightsalmon","#ffa07a"],["lightseagreen","#20b2aa"],["lightskyblue","#87cefa"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#b0c4de"],["lightyellow","#ffffe0"],["lime","#00ff00"],["limegreen","#32cd32"],["linen","#faf0e6"],["magenta","#ff00ff"],["maroon","#800000"],["mediumaquamarine","#66cdaa"],["mediumblue","#0000cd"],["mediumorchid","#ba55d3"],["mediumpurple","#9370db"],["mediumseagreen","#3cb371"],["mediumslateblue","#7b68ee"],["mediumspringgreen","#00fa9a"],["mediumturquoise","#48d1cc"],["mediumvioletred","#c71585"],["midnightblue","#191970"],["mintcream","#f5fffa"],["mistyrose","#ffe4e1"],["moccasin","#ffe4b5"],["navajowhite","#ffdead"],["navy","#000080"],["oldlace","#fdf5e6"],["olive","#808000"],["olivedrab","#6b8e23"],["orange","#ffa500"],["orangered","#ff4500"],["orchid","#da70d6"],["palegoldenrod","#eee8aa"],["palegreen","#98fb98"],["paleturquoise","#afeeee"],["palevioletred","#db7093"],["papayawhip","#ffefd5"],["peachpuff","#ffdab9"],["peru","#cd853f"],["pink","#ffc0cb"],["plum","#dda0dd"],["powderblue","#b0e0e6"],["purple","#800080"],["rebeccapurple","#663399"],["red","#ff0000"],["rosybrown","#bc8f8f"],["royalblue","#4169e1"],["saddlebrown","#8b4513"],["salmon","#fa8072"],["sandybrown","#f4a460"],["seagreen","#2e8b57"],["seashell","#fff5ee"],["sienna","#a0522d"],["silver","#c0c0c0"],["skyblue","#87ceeb"],["slateblue","#6a5acd"],["slategray","#708090"],["slategrey","#708090"],["snow","#fffafa"],["springgreen","#00ff7f"],["steelblue","#4682b4"],["tan","#d2b48c"],["teal","#008080"],["thistle","#d8bfd8"],["tomato","#ff6347"],["turquoise","#40e0d0"],["violet","#ee82ee"],["wheat","#f5deb3"],["white","#ffffff"],["whitesmoke","#f5f5f5"],["yellow","#ffff00"],["yellowgreen","#9acd32"]])
;const Ahe=new WeakMap;var Phe=function(e){
return e.rgb="RGB",e.hex="HEX",e.named="NAMED",e.hsl="HSL",e}(Phe||(Phe={}))
;const Dhe=/rgb(?:a)?\(\s*(\d{1,3}%?)\s*,?\s*(\d{1,3}%?)\s*,?\s*(\d{1,3}%?)\s*(,\s*0?\.\d+)?\)/,$he=/hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*(,\s*0?\.\d+)?\)/
;function Rhe(e,t,n,r,o){var i;switch(r){case"AttributeValue":{
const n=e.resolveInner(t,0).tree;if(!n)return null
;const r=null===(i=n.prop(Que.mounted))||void 0===i?void 0:i.tree
;if("Styles"!==(null==r?void 0:r.type.name))return null;const a=[]
;return r.iterate({from:0,to:r.length,enter:({type:n,from:r,to:i})=>{
const s=Rhe(e,t+1+r,t+1+i,n.name,o);if(s){
if(Array.isArray(s))throw new Error("Unexpected nested overlays");a.push(s)}}}),
a}case"CallExpression":{const e=o.sliceString(t,n);switch(e.slice(0,3)){
case"rgb":{const r=Dhe.exec(e);if(!r)return null
;const[o,i,a,s,l]=r,c=function(e,t,n){return`#${Ihe(e)}${Ihe(t)}${Ihe(n)}`
}(i,a,s);return{colorType:Phe.rgb,color:c,from:t,to:n,alpha:l||""}}case"hsl":{
const r=$he.exec(e);if(!r)return null;const[o,i,a,s,l]=r,c=function(e,t,n){
const r=Number(t)/100,o=Number(n)/100,[i,a,s]=function(e,t,n){if(0===t){
const e=Math.round(255*n);return[e,e,e]}let r;r=n<.5?n*(1+t):n+t-n*t
;const o=2*n-r,i=Bhe(.333+(e/=360)),a=e,s=Bhe(e-.333),l=Qhe(r,o,i),c=Qhe(r,o,a),u=Qhe(r,o,s)
;return[Math.round(255*l),Math.round(255*c),Math.round(255*u)]}(Number(e),r,o)
;return`#${Mhe(i)}${Mhe(a)}${Mhe(s)}`}(i,a,s);return{colorType:Phe.hsl,color:c,
from:t,to:n,alpha:l||""}}default:return null}}case"ColorLiteral":{
const[e,r]=function(e){
if(4===e.length)return[`#${e[1].repeat(2)}${e[2].repeat(2)}${e[3].repeat(2)}`,""]
;if(5===e.length)return[`#${e[1].repeat(2)}${e[2].repeat(2)}${e[3].repeat(2)}`,e[4].repeat(2)]
;if(9===e.length)return[`#${e.slice(1,-2)}`,e.slice(-2)];return[e,""]
}(o.sliceString(t,n));return{colorType:Phe.hex,color:e,from:t,to:n,alpha:r}}
case"ValueName":{const e=o.sliceString(t,n),r=Che.get(e);return r?{
colorType:Phe.named,color:r,from:t,to:n,alpha:""}:null}default:return null}}
function Nhe(e){const t=[],n=lpe(e.state)
;for(const r of e.visibleRanges)n.iterate({from:r.from,to:r.to,
enter:({type:r,from:o,to:i})=>{const a=Rhe(n,o,i,r.name,e.state.doc)
;if(a)if(Array.isArray(a))for(const e of a)t.push(Mae.widget({widget:new Uhe(e),
side:1}).range(e.from));else t.push(Mae.widget({widget:new Uhe(a),side:1
}).range(a.from))}});return Mae.set(t)}function Ihe(e){let t
;if(e.endsWith("%")){const n=Number(e.slice(0,-1));t=Math.round(n/100*255)
}else t=Number(e);return Mhe(t)}function Mhe(e){const t=e.toString(16)
;return 1==t.length?"0"+t:t}function Lhe(e){
const t=e.slice(1,3),n=e.slice(3,5),r=e.slice(5,7)
;return[parseInt(t,16),parseInt(n,16),parseInt(r,16)]}function Bhe(e){
return e<0?e+1:e>1?e-1:e}function Qhe(e,t,n){
return 6*n<1?t+6*(e-t)*n:2*n<1?e:3*n<2?t+(e-t)*(.666-n)*6:t}
const jhe="cm-css-color-picker-wrapper";class Uhe extends Nae{constructor(e){
var{color:t}=e,n=function(e,t){var n={}
;for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r])
;if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0
;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])
}return n}(e,["color"]);super(),this.state=n,this.color=t}eq(e){
return e.state.colorType===this.state.colorType&&e.color===this.color&&e.state.from===this.state.from&&e.state.to===this.state.to&&e.state.alpha===this.state.alpha
}toDOM(){const e=document.createElement("input")
;Ahe.set(e,this.state),e.type="color",e.value=this.color
;const t=document.createElement("span");return t.appendChild(e),t.className=jhe,
t}ignoreEvent(){return!1}}const Fhe=kce.baseTheme({[`.${jhe}`]:{
display:"inline-block",outline:"1px solid #eee",marginRight:"0.6ch",
height:"1em",width:"1em",transform:"translateY(1px)"},
[`.${jhe} input[type="color"]`]:{cursor:"pointer",height:"100%",width:"100%",
padding:0,border:"none","&::-webkit-color-swatch-wrapper":{padding:0},
"&::-webkit-color-swatch":{border:"none"},"&::-moz-color-swatch":{border:"none"}
}}),qhe=Tse.fromClass(class{constructor(e){this.decorations=Nhe(e)}update(e){
(e.docChanged||e.viewportChanged)&&(this.decorations=Nhe(e.view))}},{
decorations:e=>e.decorations,eventHandlers:{change:(e,t)=>{const n=e.target
;if("INPUT"!==n.nodeName||!n.parentElement||!n.parentElement.classList.contains(jhe))return!1
;const r=Ahe.get(n);let o=n.value+r.alpha
;if(r.colorType===Phe.rgb)o=`rgb(${Lhe(n.value).join(", ")}${r.alpha})`;else if(r.colorType===Phe.named)for(const[i,a]of Che.entries())a===n.value&&(o=i);else if(r.colorType===Phe.hsl){
const[e,t,i]=Lhe(n.value),[a,s,l]=function(e,t,n){
const r=e/255,o=t/255,i=n/255,a=Math.min(r,o,i),s=Math.max(r,o,i),l=(s+a)/2
;if(s===a)return[0,0,l];let c,u
;for(c=l<=.5?(s-a)/(s+a):(s-a)/(2-s-a),u=s===r?(o-i)/(s-a):o===s?2+(i-r)/(s-a):4+(r-o)/(s-a),
u=Math.round(60*u);u<0;)u+=360;return[u,c,l]}(e,t,i)
;o=`hsl(${a}, ${Math.round(100*s)}%, ${Math.round(100*l)}%${r.alpha})`}
return t.dispatch({changes:{from:r.from,to:r.to,insert:o}}),!0}}}),zhe=[qhe,Fhe]
;class Hhe{constructor(e,t,n){
this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){
let t=lpe(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),r=t.text.slice(n-t.from,this.pos-t.from),o=r.search(Yhe(e,!1))
;return o<0?null:{from:n+o,to:this.pos,text:r.slice(o)}}get aborted(){
return null==this.abortListeners}addEventListener(e,t){
"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function Zhe(e){
let t=Object.keys(e).join(""),n=/\w/.test(t)
;return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`
}function Vhe(e){let t=e.map((e=>"string"==typeof e?{label:e
}:e)),[n,r]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){
let t=Object.create(null),n=Object.create(null);for(let{label:o}of e){t[o[0]]=!0
;for(let e=1;e<o.length;e++)n[o[e]]=!0}let r=Zhe(t)+Zhe(n)+"*$"
;return[new RegExp("^"+r),new RegExp(r)]}(t);return e=>{let o=e.matchBefore(r)
;return o||e.explicit?{from:o?o.from:e.pos,options:t,validFor:n}:null}}
class Whe{constructor(e,t,n,r){
this.completion=e,this.source=t,this.match=n,this.score=r}}function Xhe(e){
return e.selection.main.from}function Yhe(e,t){var n
;let{source:r}=e,o=t&&"^"!=r[0],i="$"!=r[r.length-1]
;return o||i?new RegExp(`${o?"^":""}(?:${r})${i?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e
}const Ghe=Uoe.define();const Khe=new WeakMap;function Jhe(e){
if(!Array.isArray(e))return e;let t=Khe.get(e);return t||Khe.set(e,t=Vhe(e)),t}
const efe=zoe.define(),tfe=zoe.define();class nfe{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=Gre(e,t),r=Jre(n)
;this.chars.push(n);let o=e.slice(t,t+r),i=o.toUpperCase()
;this.folded.push(Gre(i==o?o.toLowerCase():i,0)),t+=r}
this.astral=e.length!=this.chars.length}ret(e,t){
return this.score=e,this.matched=t,this}match(e){
if(0==this.pattern.length)return this.ret(-100,[])
;if(e.length<this.pattern.length)return null
;let{chars:t,folded:n,any:r,precise:o,byWord:i}=this;if(1==t.length){
let r=Gre(e,0),o=Jre(r),i=o==e.length?0:-100;if(r==t[0]);else{
if(r!=n[0])return null;i+=-200}return this.ret(i,[0,o])}
let a=e.indexOf(this.pattern)
;if(0==a)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length])
;let s=t.length,l=0;if(a<0){for(let o=0,i=Math.min(e.length,200);o<i&&l<s;){
let i=Gre(e,o);i!=t[l]&&i!=n[l]||(r[l++]=o),o+=Jre(i)}if(l<s)return null}
let c=0,u=0,d=!1,p=0,h=-1,f=-1,m=/[a-z]/.test(e),g=!0
;for(let v=0,b=Math.min(e.length,200),O=0;v<b&&u<s;){let r=Gre(e,v)
;a<0&&(c<s&&r==t[c]&&(o[c++]=v),
p<s&&(r==t[p]||r==n[p]?(0==p&&(h=v),f=v+1,p++):p=0))
;let l,b=r<255?r>=48&&r<=57||r>=97&&r<=122?2:r>=65&&r<=90?1:0:(l=Kre(r))!=l.toLowerCase()?1:l!=l.toUpperCase()?2:0
;(!v||1==b&&m||0==O&&0!=b)&&(t[u]==r||n[u]==r&&(d=!0)?i[u++]=v:i.length&&(g=!1)),
O=b,v+=Jre(r)}
return u==s&&0==i[0]&&g?this.result((d?-200:0)-100,i,e):p==s&&0==h?this.ret(-200-e.length+(f==e.length?0:-100),[0,f]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):p==s?this.ret(-900-e.length,[h,f]):u==s?this.result((d?-200:0)-100-700+(g?0:-1100),i,e):2==t.length?null:this.result((r[0]?-700:0)-200-1100,r,e)
}result(e,t,n){let r=[],o=0;for(let i of t){
let e=i+(this.astral?Jre(Gre(n,i)):1);o&&r[o-1]==i?r[o-1]=e:(r[o++]=i,r[o++]=e)}
return this.ret(e-n.length,r)}}class rfe{constructor(e){
this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}
match(e){if(e.length<this.pattern.length)return null
;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null
;return null==n?null:(this.matched=[0,t.length],
this.score=n+(e.length==this.pattern.length?0:-100),this)}}
const ofe=foe.define({combine:e=>rie(e,{activateOnTyping:!0,
activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,
override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,
tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],
positionInfo:afe,filterStrict:!1,
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=>ife(e(n),t(n)),
optionClass:(e,t)=>n=>ife(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),
filterStrict:(e,t)=>e||t})});function ife(e,t){return e?t?e+" "+t:e:t}
function afe(e,t,n,r,o,i){
let a,s,l=e.textDirection==Hae.RTL,c=l,u=!1,d="top",p=t.left-o.left,h=o.right-t.right,f=r.right-r.left,m=r.bottom-r.top
;if(c&&p<Math.min(f,h)?c=!1:!c&&h<Math.min(f,p)&&(c=!0),
f<=(c?p:h))a=Math.max(o.top,Math.min(n.top,o.bottom-m))-t.top,
s=Math.min(400,c?p:h);else{u=!0,s=Math.min(400,(l?t.right:o.right-t.left)-30)
;let e=o.bottom-t.bottom
;e>=m||e>t.top?a=n.bottom-t.top:(d="bottom",a=t.bottom-n.top)}return{
style:`${d}: ${a/((t.bottom-t.top)/i.offsetHeight)}px; max-width: ${s/((t.right-t.left)/i.offsetWidth)}px`,
class:"cm-completionInfo-"+(u?l?"left-narrow":"right-narrow":c?"left":"right")}}
function sfe(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){
let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n)
;return{from:e-(r+1)*n,to:e-r*n}}class lfe{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:e=>this.placeInfo(e),key:this
},this.space=null,this.currentClass=""
;let r=e.state.field(t),{options:o,selected:i}=r.open,a=e.state.facet(ofe)
;this.optionContent=function(e){let t=e.addToOptions.slice()
;return e.icons&&t.push({render(e){let t=document.createElement("div")
;return t.classList.add("cm-completionIcon"),
e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),
t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n,r){
let o=document.createElement("span");o.className="cm-completionLabel"
;let i=e.displayLabel||e.label,a=0;for(let s=0;s<r.length;){
let e=r[s++],t=r[s++];e>a&&o.appendChild(document.createTextNode(i.slice(a,e)))
;let n=o.appendChild(document.createElement("span"))
;n.appendChild(document.createTextNode(i.slice(e,t))),
n.className="cm-completionMatchedText",a=t}
return a<i.length&&o.appendChild(document.createTextNode(i.slice(a))),o},
position:50},{render(e){if(!e.detail)return null
;let t=document.createElement("span")
;return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80
}),t.sort(((e,t)=>e.position-t.position)).map((e=>e.render))
}(a),this.optionClass=a.optionClass,
this.tooltipClass=a.tooltipClass,this.range=sfe(o.length,i,a.maxRenderedOptions),
this.dom=document.createElement("div"),
this.dom.className="cm-tooltip-autocomplete",
this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(n=>{
let{options:r}=e.state.field(t).open
;for(let t,o=n.target;o&&o!=this.dom;o=o.parentNode)if("LI"==o.nodeName&&(t=/-(\d+)$/.exec(o.id))&&+t[1]<r.length)return this.applyCompletion(e,r[+t[1]]),
void n.preventDefault()})),this.dom.addEventListener("focusout",(t=>{
let n=e.state.field(this.stateField,!1)
;n&&n.tooltip&&e.state.facet(ofe).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({
effects:tfe.of(null)})})),this.showOptions(o,r.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),r=e.startState.field(this.stateField)
;if(this.updateTooltipClass(e.state),n!=r){
let{options:o,selected:i,disabled:a}=n.open
;r.open&&r.open.options==o||(this.range=sfe(o.length,i,e.state.facet(ofe).maxRenderedOptions),
this.showOptions(o,n.id)),
this.updateSel(),a!=(null===(t=r.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)
}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){
for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e)
;for(let e of t.split(" "))e&&this.dom.classList.add(e);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=sfe(t.options.length,t.selected,this.view.state.facet(ofe).maxRenderedOptions),
this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){
this.destroyInfo();let{completion:n}=t.options[t.selected],{info:r}=n
;if(!r)return;let o="string"==typeof r?document.createTextNode(r):r(n)
;if(!o)return;"then"in o?o.then((t=>{
t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)
})).catch((e=>kse(this.view.state,e,"completion info"))):this.addInfoPane(o,n)}}
addInfoPane(e,t){this.destroyInfo()
;let n=this.info=document.createElement("div")
;if(n.className="cm-tooltip cm-completionInfo",
null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{
let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}
this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}
updateSelectedOption(e){let t=null
;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,
r++)"LI"==n.nodeName&&n.id?r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),
t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):r--
;return t&&function(e,t){
let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=n.height/e.offsetHeight
;r.top<n.top?e.scrollTop-=(n.top-r.top)/o:r.bottom>n.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/o)
}(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(),r=e.getBoundingClientRect(),o=this.space
;if(!o){let e=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,
right:e.innerWidth,bottom:e.innerHeight}}
return r.top>Math.min(o.bottom,t.bottom)-10||r.bottom<Math.max(o.top,t.top)+10?null:this.view.state.facet(ofe).positionInfo(this.view,t,r,n,o,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 r=document.createElement("ul")
;r.id=t,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),
r.setAttribute("aria-label",this.view.state.phrase("Completions"));let o=null
;for(let i=n.from;i<n.to;i++){let{completion:a,match:s}=e[i],{section:l}=a
;if(l){let e="string"==typeof l?l:l.name
;if(e!=o&&(i>n.from||0==n.from))if(o=e,"string"!=typeof l&&l.header)r.appendChild(l.header(l));else{
r.appendChild(document.createElement("completion-section")).textContent=e}}
const c=r.appendChild(document.createElement("li"))
;c.id=t+"-"+i,c.setAttribute("role","option");let u=this.optionClass(a)
;u&&(c.className=u);for(let e of this.optionContent){
let t=e(a,this.view.state,this.view,s);t&&c.appendChild(t)}}
return n.from&&r.classList.add("cm-completionListIncompleteTop"),
n.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}
destroyInfo(){
this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),
this.info=null)}destroy(){this.destroyInfo()}}function cfe(e,t){
return n=>new lfe(n,e,t)}function ufe(e){
return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class dfe{
constructor(e,t,n,r,o,i){
this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,
this.selected=o,this.disabled=i}setSelected(e,t){
return e==this.selected||e>=this.options.length?this:new dfe(this.options,ffe(t,e),this.tooltip,this.timestamp,e,this.disabled)
}static build(e,t,n,r,o){let i=function(e,t){let n=[],r=null,o=e=>{n.push(e)
;let{section:t}=e.completion;if(t){r||(r=[]);let e="string"==typeof t?t:t.name
;r.some((t=>t.name==e))||r.push("string"==typeof t?{name:e}:t)}},i=t.facet(ofe)
;for(let c of e)if(c.hasResult()){let e=c.result.getMatch
;if(!1===c.result.filter)for(let t of c.result.options)o(new Whe(t,c.source,e?e(t):[],1e9-n.length));else{
let n,r=t.sliceDoc(c.from,c.to),a=i.filterStrict?new rfe(r):new nfe(r)
;for(let t of c.result.options)if(n=a.match(t.label)){
let r=t.displayLabel?e?e(t,n.matched):[]:n.matched
;o(new Whe(t,c.source,r,n.score+(t.boost||0)))}}}if(r){
let e=Object.create(null),t=0,o=(e,t)=>{var n,r
;return(null!==(n=e.rank)&&void 0!==n?n:1e9)-(null!==(r=t.rank)&&void 0!==r?r:1e9)||(e.name<t.name?-1:1)
};for(let n of r.sort(o))t-=1e5,e[n.name]=t;for(let r of n){
let{section:t}=r.completion;t&&(r.score+=e["string"==typeof t?t:t.name])}}
let a=[],s=null,l=i.compareCompletions
;for(let c of n.sort(((e,t)=>t.score-e.score||l(e.completion,t.completion)))){
let e=c.completion
;!s||s.label!=e.label||s.detail!=e.detail||null!=s.type&&null!=e.type&&s.type!=e.type||s.apply!=e.apply||s.boost!=e.boost?a.push(c):ufe(c.completion)>ufe(s)&&(a[a.length-1]=c),
s=c.completion}return a}(e,t)
;if(!i.length)return r&&e.some((e=>1==e.state))?new dfe(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null
;let a=t.facet(ofe).selectOnOpen?0:-1;if(r&&r.selected!=a&&-1!=r.selected){
let e=r.options[r.selected].completion
;for(let t=0;t<i.length;t++)if(i[t].completion==e){a=t;break}}
return new dfe(i,ffe(n,a),{
pos:e.reduce(((e,t)=>t.hasResult()?Math.min(e,t.from):e),1e8),create:kfe,
above:o.aboveCursor},r?r.timestamp:Date.now(),a,!1)}map(e){
return new dfe(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{
pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}
class pfe{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){
return new pfe(mfe,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}
update(e){
let{state:t}=e,n=t.facet(ofe),r=(n.override||t.languageDataAt("autocomplete",Xhe(t)).map(Jhe)).map((t=>{
let r=this.active.find((e=>e.source==t))||new vfe(t,this.active.some((e=>0!=e.state))?1:0)
;return r.update(e,n)}))
;r.length==this.active.length&&r.every(((e,t)=>e==this.active[t]))&&(r=this.active)
;let o=this.open
;o&&e.docChanged&&(o=o.map(e.changes)),e.selection||r.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){
if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult;)n++
;for(;r<t.length&&!t[r].hasResult;)r++;let o=n==e.length,i=r==t.length
;if(o||i)return o==i;if(e[n++].result!=t[r++].result)return!1}
}(r,this.active)?o=dfe.build(r,t,this.id,o,n):o&&o.disabled&&!r.some((e=>1==e.state))&&(o=null),
!o&&r.every((e=>1!=e.state))&&r.some((e=>e.hasResult()))&&(r=r.map((e=>e.hasResult()?new vfe(e.source,0):e)))
;for(let i of e.effects)i.is(yfe)&&(o=o&&o.setSelected(i.value,this.id))
;return r==this.active&&o==this.open?this:new pfe(r,this.id,o)}get tooltip(){
return this.open?this.open.tooltip:null}get attrs(){
return this.open?this.open.attrs:hfe}}const hfe={"aria-autocomplete":"list"}
;function ffe(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox",
"aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}
const mfe=[];function gfe(e,t){if(e.isUserEvent("input.complete")){
let n=e.annotation(Ghe);if(n&&t.activateOnCompletion(n))return"input"}
return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null
}class vfe{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}
hasResult(){return!1}update(e,t){let n=gfe(e,t),r=this
;n?r=r.handleUserEvent(e,n,t):e.docChanged?r=r.handleChange(e):e.selection&&0!=r.state&&(r=new vfe(r.source,0))
;for(let o of e.effects)if(o.is(efe))r=new vfe(r.source,1,o.value?Xhe(e.state):-1);else if(o.is(tfe))r=new vfe(r.source,0);else if(o.is(Ofe))for(let e of o.value)e.source==r.source&&(r=e)
;return r}handleUserEvent(e,t,n){
return"delete"!=t&&n.activateOnTyping?new vfe(this.source,1):this.map(e.changes)
}handleChange(e){
return e.changes.touchesRange(Xhe(e.startState))?new vfe(this.source,0):this.map(e.changes)
}map(e){
return e.empty||this.explicitPos<0?this:new vfe(this.source,this.state,e.mapPos(this.explicitPos))
}}class bfe extends vfe{constructor(e,t,n,r,o){
super(e,2,t),this.result=n,this.from=r,this.to=o}hasResult(){return!0}
handleUserEvent(e,t,n){var r;let o=this.result
;o.map&&!e.changes.empty&&(o=o.map(o,e.changes))
;let i=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),s=Xhe(e.state)
;if((this.explicitPos<0?s<=i:s<this.from)||s>a||!o||"delete"==t&&Xhe(e.startState)==this.from)return new vfe(this.source,"input"==t&&n.activateOnTyping?1:0)
;let l=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos)
;return function(e,t,n,r){if(!e)return!1;let o=t.sliceDoc(n,r)
;return"function"==typeof e?e(o,n,r,t):Yhe(e,!0).test(o)
}(o.validFor,e.state,i,a)?new bfe(this.source,l,o,i,a):o.update&&(o=o.update(o,i,a,new Hhe(e.state,s,l>=0)))?new bfe(this.source,l,o,o.from,null!==(r=o.to)&&void 0!==r?r:Xhe(e.state)):new vfe(this.source,1,l)
}handleChange(e){
return e.changes.touchesRange(this.from,this.to)?new vfe(this.source,0):this.map(e.changes)
}map(e){if(e.empty)return this
;return(this.result.map?this.result.map(this.result,e):this.result)?new bfe(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new vfe(this.source,0)
}}const Ofe=zoe.define({map:(e,t)=>e.map((e=>e.map(t)))
}),yfe=zoe.define(),wfe=woe.define({create:()=>pfe.start(),
update:(e,t)=>e.update(t),
provide:e=>[rue.from(e,(e=>e.tooltip)),kce.contentAttributes.from(e,(e=>e.attrs))]
});function xfe(e,t){const n=t.completion.apply||t.completion.label
;let r=e.state.field(wfe).active.find((e=>e.source==t.source))
;return r instanceof bfe&&("string"==typeof n?e.dispatch(Object.assign(Object.assign({},function(e,t,n,r){
let{main:o}=e.selection,i=n-o.from,a=r-o.from
;return Object.assign(Object.assign({},e.changeByRange((s=>s!=o&&n!=r&&e.sliceDoc(s.from+i,s.from+a)!=e.sliceDoc(n,r)?{
range:s}:{changes:{from:s.from+i,to:r==o.from?s.to:s.from+a,insert:t},
range:doe.cursor(s.from+i+t.length)}))),{scrollIntoView:!0,
userEvent:"input.complete"})}(e.state,n,r.from,r.to)),{
annotations:Ghe.of(t.completion)})):n(e,t.completion,r.from,r.to),!0)}
const kfe=cfe(wfe,xfe);function Sfe(e,t="option"){return n=>{
let r=n.state.field(wfe,!1)
;if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(ofe).interactionDelay)return!1
;let o,i=1
;"page"==t&&(o=uue(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1))
;let{length:a}=r.open.options,s=r.open.selected>-1?r.open.selected+i*(e?1:-1):e?0:a-1
;return s<0?s="page"==t?0:a-1:s>=a&&(s="page"==t?a-1:0),n.dispatch({
effects:yfe.of(s)}),!0}}class _fe{constructor(e,t){this.active=e,this.context=t,
this.time=Date.now(),this.updates=[],this.done=void 0}}
const Efe=Tse.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,
this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0
;for(let t of e.state.field(wfe).active)1==t.state&&this.startQuery(t)}
update(e){let t=e.state.field(wfe),n=e.state.facet(ofe)
;if(!e.selectionSet&&!e.docChanged&&e.startState.field(wfe)==t)return
;let r=e.transactions.some((e=>(e.selection||e.docChanged)&&!gfe(e,n)))
;for(let i=0;i<this.running.length;i++){let t=this.running[i]
;if(r||t.updates.length+e.transactions.length>50&&Date.now()-t.time>1e3){
for(let e of t.context.abortListeners)try{e()}catch(P$){kse(this.view.state,P$)}
t.context.abortListeners=null,this.running.splice(i--,1)
}else t.updates.push(...e.transactions)}
this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),
e.transactions.some((e=>e.effects.some((e=>e.is(efe)))))&&(this.pendingStart=!0)
;let o=this.pendingStart?50:n.activateOnTypingDelay
;if(this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),o):-1,
0!=this.composing)for(let i of e.transactions)"input"==gfe(i,n)?this.composing=2:2==this.composing&&i.selection&&(this.composing=3)
}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1
;let{state:e}=this.view,t=e.field(wfe)
;for(let n of t.active)1!=n.state||this.running.some((e=>e.active.source==n.source))||this.startQuery(n)
}startQuery(e){
let{state:t}=this.view,n=Xhe(t),r=new Hhe(t,n,e.explicitPos==n),o=new _fe(e,r)
;this.running.push(o),Promise.resolve(e.source(r)).then((e=>{
o.context.aborted||(o.done=e||null,this.scheduleAccept())}),(e=>{
this.view.dispatch({effects:tfe.of(null)}),kse(this.view.state,e)}))}
scheduleAccept(){
this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(ofe).updateSyncTime))
}accept(){var e
;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1
;let t=[],n=this.view.state.facet(ofe);for(let r=0;r<this.running.length;r++){
let o=this.running[r];if(void 0===o.done)continue;if(this.running.splice(r--,1),
o.done){
let r=new bfe(o.active.source,o.active.explicitPos,o.done,o.done.from,null!==(e=o.done.to)&&void 0!==e?e:Xhe(o.updates.length?o.updates[0].startState:this.view.state))
;for(let e of o.updates)r=r.update(e,n);if(r.hasResult()){t.push(r);continue}}
let i=this.view.state.field(wfe).active.find((e=>e.source==o.active.source))
;if(i&&1==i.state)if(null==o.done){let e=new vfe(o.active.source,0)
;for(let t of o.updates)e=e.update(t,n);1!=e.state&&t.push(e)
}else this.startQuery(i)}t.length&&this.view.dispatch({effects:Ofe.of(t)})}},{
eventHandlers:{blur(e){let t=this.view.state.field(wfe,!1)
;if(t&&t.tooltip&&this.view.state.facet(ofe).closeOnBlur){
let n=t.open&&uue(this.view,t.open.tooltip)
;n&&n.dom.contains(e.relatedTarget)||setTimeout((()=>this.view.dispatch({
effects:tfe.of(null)})),10)}},compositionstart(){this.composing=1},
compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({
effects:efe.of(!1)})),20),this.composing=0}}
}),Tfe="object"==typeof navigator&&/Win/.test(navigator.platform),Cfe=Toe.highest(kce.domEventHandlers({
keydown(e,t){let n=t.state.field(wfe,!1)
;if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&(!Tfe||!e.altKey)||e.metaKey)return!1
;let r=n.open.options[n.open.selected],o=n.active.find((e=>e.source==r.source)),i=r.completion.commitCharacters||o.result.commitCharacters
;return i&&i.indexOf(e.key)>-1&&xfe(t,r),!1}})),Afe=kce.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 Pfe{constructor(e,t,n,r){
this.field=e,this.line=t,this.from=n,this.to=r}}class Dfe{constructor(e,t,n){
this.field=e,this.from=t,this.to=n}map(e){
let t=e.mapPos(this.from,-1,toe.TrackDel),n=e.mapPos(this.to,1,toe.TrackDel)
;return null==t||null==n?null:new Dfe(this.field,t,n)}}class $fe{
constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){
let n=[],r=[t],o=e.doc.lineAt(t),i=/^\s*/.exec(o.text)[0]
;for(let a of this.lines){if(n.length){let n=i,o=/^\t*/.exec(a)[0].length
;for(let t=0;t<o;t++)n+=e.facet(ype);r.push(t+n.length-o),a=n+a.slice(o)}
n.push(a),t+=a.length+1}return{text:n,
ranges:this.fieldPositions.map((e=>new Dfe(e.field,r[e.line]+e.from,r[e.line]+e.to)))
}}static parse(e){let t,n=[],r=[],o=[];for(let i of e.split(/\r\n?|\n/)){
for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(i);){
let e=t[1]?+t[1]:null,a=t[2]||t[3]||"",s=-1,l=a.replace(/\\[{}]/g,(e=>e[1]))
;for(let t=0;t<n.length;t++)(null!=e?n[t].seq==e:l&&n[t].name==l)&&(s=t)
;if(s<0){let t=0;for(;t<n.length&&(null==e||null!=n[t].seq&&n[t].seq<e);)t++
;n.splice(t,0,{seq:e,name:l}),s=t;for(let e of o)e.field>=s&&e.field++}
o.push(new Pfe(s,r.length,t.index,t.index+l.length)),
i=i.slice(0,t.index)+a+i.slice(t.index+t[0].length)}
i=i.replace(/\\([{}])/g,((e,t,n)=>{
for(let i of o)i.line==r.length&&i.from>n&&(i.from--,i.to--);return t
})),r.push(i)}return new $fe(r,o)}}let Rfe=Mae.widget({
widget:new class extends Nae{toDOM(){let e=document.createElement("span")
;return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}
}),Nfe=Mae.mark({class:"cm-snippetField"});class Ife{constructor(e,t){
this.ranges=e,
this.active=t,this.deco=Mae.set(e.map((e=>(e.from==e.to?Rfe:Nfe).range(e.from,e.to))))
}map(e){let t=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null
;t.push(r)}return new Ife(t,this.active)}selectionInsideField(e){
return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))
}}const Mfe=zoe.define({map:(e,t)=>e&&e.map(t)
}),Lfe=zoe.define(),Bfe=woe.define({create:()=>null,update(e,t){
for(let n of t.effects){if(n.is(Mfe))return n.value
;if(n.is(Lfe)&&e)return new Ife(e.ranges,n.value)}
return e&&t.docChanged&&(e=e.map(t.changes)),
e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},
provide:e=>kce.decorations.from(e,(e=>e?e.deco:Mae.none))});function Qfe(e,t){
return doe.create(e.filter((e=>e.field==t)).map((e=>doe.range(e.from,e.to))))}
function jfe(e){let t=$fe.parse(e);return(e,n,r,o)=>{
let{text:i,ranges:a}=t.instantiate(e.state,r),s={changes:{from:r,to:o,
insert:$re.of(i)},scrollIntoView:!0,
annotations:n?[Ghe.of(n),Hoe.userEvent.of("input.complete")]:void 0}
;if(a.length&&(s.selection=Qfe(a,0)),a.some((e=>e.field>0))){
let t=new Ife(a,0),n=s.effects=[Mfe.of(t)]
;void 0===e.state.field(Bfe,!1)&&n.push(zoe.appendConfig.of([Bfe,zfe,Zfe,Afe]))}
e.dispatch(e.state.update(s))}}function Ufe(e){return({state:t,dispatch:n})=>{
let r=t.field(Bfe,!1);if(!r||e<0&&0==r.active)return!1
;let o=r.active+e,i=e>0&&!r.ranges.some((t=>t.field==o+e));return n(t.update({
selection:Qfe(r.ranges,o),effects:Mfe.of(i?null:new Ife(r.ranges,o)),
scrollIntoView:!0})),!0}}const Ffe=[{key:"Tab",run:Ufe(1),shift:Ufe(-1)},{
key:"Escape",run:({state:e,dispatch:t})=>!!e.field(Bfe,!1)&&(t(e.update({
effects:Mfe.of(null)})),!0)}],qfe=foe.define({combine:e=>e.length?e[0]:Ffe
}),zfe=Toe.highest(Dce.compute([qfe],(e=>e.facet(qfe))));function Hfe(e,t){
return Object.assign(Object.assign({},t),{apply:jfe(e)})}
const Zfe=kce.domEventHandlers({mousedown(e,t){let n,r=t.state.field(Bfe,!1)
;if(!r||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1
;let o=r.ranges.find((e=>e.from<=n&&e.to>=n))
;return!(!o||o.field==r.active)&&(t.dispatch({selection:Qfe(r.ranges,o.field),
effects:Mfe.of(r.ranges.some((e=>e.field>o.field))?new Ife(r.ranges,o.field):null),
scrollIntoView:!0}),!0)}}),Vfe={brackets:["(","[","{","'",'"'],before:")]}:;>",
stringPrefixes:[]},Wfe=zoe.define({map(e,t){let n=t.mapPos(e,-1,toe.TrackAfter)
;return null==n?void 0:n}}),Xfe=new class extends oie{}
;Xfe.startSide=1,Xfe.endSide=-1;const Yfe=woe.define({create:()=>lie.empty,
update(e,t){if(e=e.map(t.changes),t.selection){
let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({
filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(Wfe)&&(e=e.update({
add:[Xfe.range(n.value,n.value+1)]}));return e}});const Gfe="()[]{}<>"
;function Kfe(e){
for(let t=0;t<Gfe.length;t+=2)if(Gfe.charCodeAt(t)==e)return Gfe.charAt(t+1)
;return Kre(e<128?e:e+1)}function Jfe(e,t){
return e.languageDataAt("closeBrackets",t)[0]||Vfe}
const eme="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),tme=kce.inputHandler.of(((e,t,n,r)=>{
if((eme?e.composing:e.compositionStarted)||e.state.readOnly)return!1
;let o=e.state.selection.main
;if(r.length>2||2==r.length&&1==Jre(Gre(r,0))||t!=o.from||n!=o.to)return!1
;let i=function(e,t){
let n=Jfe(e,e.selection.main.head),r=n.brackets||Vfe.brackets;for(let o of r){
let i=Kfe(Gre(o,0))
;if(t==o)return i==o?sme(e,o,r.indexOf(o+o+o)>-1,n):ime(e,o,i,n.before||Vfe.before)
;if(t==i&&rme(e,e.selection.main.from))return ame(e,o,i)}return null}(e.state,r)
;return!!i&&(e.dispatch(i),!0)})),nme=[{key:"Backspace",
run:({state:e,dispatch:t})=>{if(e.readOnly)return!1
;let n=Jfe(e,e.selection.main.head).brackets||Vfe.brackets,r=null,o=e.changeByRange((t=>{
if(t.empty){let r=function(e,t){let n=e.sliceString(t-2,t)
;return Jre(Gre(n,0))==n.length?n:n.slice(1)}(e.doc,t.head)
;for(let o of n)if(o==r&&ome(e.doc,t.head)==Kfe(Gre(o,0)))return{changes:{
from:t.head-o.length,to:t.head+o.length},range:doe.cursor(t.head-o.length)}}
return{range:r=t}}));return r||t(e.update(o,{scrollIntoView:!0,
userEvent:"delete.backward"})),!r}}];function rme(e,t){let n=!1
;return e.field(Yfe).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}
function ome(e,t){let n=e.sliceString(t,t+2);return n.slice(0,Jre(Gre(n,0)))}
function ime(e,t,n,r){let o=null,i=e.changeByRange((i=>{if(!i.empty)return{
changes:[{insert:t,from:i.from},{insert:n,from:i.to}],
effects:Wfe.of(i.to+t.length),range:doe.range(i.anchor+t.length,i.head+t.length)
};let a=ome(e.doc,i.head);return!a||/\s/.test(a)||r.indexOf(a)>-1?{changes:{
insert:t+n,from:i.head},effects:Wfe.of(i.head+t.length),
range:doe.cursor(i.head+t.length)}:{range:o=i}}));return o?null:e.update(i,{
scrollIntoView:!0,userEvent:"input.type"})}function ame(e,t,n){
let r=null,o=e.changeByRange((t=>t.empty&&ome(e.doc,t.head)==n?{changes:{
from:t.head,to:t.head+n.length,insert:n},range:doe.cursor(t.head+n.length)}:r={
range:t}));return r?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}
function sme(e,t,n,r){
let o=r.stringPrefixes||Vfe.stringPrefixes,i=null,a=e.changeByRange((r=>{
if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],
effects:Wfe.of(r.to+t.length),range:doe.range(r.anchor+t.length,r.head+t.length)
};let a,s=r.head,l=ome(e.doc,s);if(l==t){if(lme(e,s))return{changes:{insert:t+t,
from:s},effects:Wfe.of(s+t.length),range:doe.cursor(s+t.length)};if(rme(e,s)){
let r=n&&e.sliceDoc(s,s+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:s,
to:s+r.length,insert:r},range:doe.cursor(s+r.length)}}}else{
if(n&&e.sliceDoc(s-2*t.length,s)==t+t&&(a=cme(e,s-2*t.length,o))>-1&&lme(e,a))return{
changes:{insert:t+t+t+t,from:s},effects:Wfe.of(s+t.length),
range:doe.cursor(s+t.length)}
;if(e.charCategorizer(s)(l)!=Koe.Word&&cme(e,s,o)>-1&&!function(e,t,n,r){
let o=lpe(e).resolveInner(t,-1),i=r.reduce(((e,t)=>Math.max(e,t.length)),0)
;for(let a=0;a<5;a++){
let a=e.sliceDoc(o.from,Math.min(o.to,o.from+n.length+i)),s=a.indexOf(n)
;if(!s||s>-1&&r.indexOf(a.slice(0,s))>-1){let t=o.firstChild
;for(;t&&t.from==o.from&&t.to-t.from>n.length+s;){
if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}
let l=o.to==t&&o.parent;if(!l)break;o=l}return!1}(e,s,t,o))return{changes:{
insert:t+t,from:s},effects:Wfe.of(s+t.length),range:doe.cursor(s+t.length)}}
return{range:i=r}}));return i?null:e.update(a,{scrollIntoView:!0,
userEvent:"input.type"})}function lme(e,t){let n=lpe(e).resolveInner(t+1)
;return n.parent&&n.from==t}function cme(e,t,n){let r=e.charCategorizer(t)
;if(r(e.sliceDoc(t-1,t))!=Koe.Word)return t;for(let o of n){let n=t-o.length
;if(e.sliceDoc(n,t)==o&&r(e.sliceDoc(n-1,n))!=Koe.Word)return n}return-1}
const ume=[{key:"Ctrl-Space",run:e=>!!e.state.field(wfe,!1)&&(e.dispatch({
effects:efe.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(wfe,!1)
;return!(!t||!t.active.some((e=>0!=e.state)))&&(e.dispatch({effects:tfe.of(null)
}),!0)}},{key:"ArrowDown",run:Sfe(!0)},{key:"ArrowUp",run:Sfe(!1)},{
key:"PageDown",run:Sfe(!0,"page")},{key:"PageUp",run:Sfe(!1,"page")},{
key:"Enter",run:e=>{let t=e.state.field(wfe,!1)
;return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(ofe).interactionDelay)&&xfe(e,t.open.options[t.open.selected])
}
}],dme=Toe.highest(Dce.computeN([ofe],(e=>e.facet(ofe).defaultKeymap?[ume]:[]))),pme=({state:e,dispatch:t})=>(t(e.update(e.replaceSelection(e.lineBreak),{
scrollIntoView:!0,userEvent:"input"})),!0);function hme(e,t){let n=-1
;return e.changeByRange((r=>{let o=[];for(let a=r.from;a<=r.to;){
let i=e.doc.lineAt(a);i.number>n&&(r.empty||r.to>i.from)&&(t(i,o,r),n=i.number),
a=i.to+1}let i=e.changes(o);return{changes:o,
range:doe.range(i.mapPos(r.anchor,1),i.mapPos(r.head,1))}}))}const fme={
key:"Tab",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(hme(e,((t,n)=>{
n.push({from:t.from,insert:e.facet(ype)})})),{userEvent:"input.indent"})),!0),
shift:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(hme(e,((t,n)=>{
let r=/^\s*/.exec(t.text)[0];if(!r)return
;let o=yie(r,e.tabSize),i=0,a=xpe(e,Math.max(0,o-wpe(e)))
;for(;i<r.length&&i<a.length&&r.charCodeAt(i)==a.charCodeAt(i);)i++;n.push({
from:t.from+i,to:t.from+r.length,insert:a.slice(i)})})),{
userEvent:"delete.dedent"})),!0)};class mme{
constructor(e,t,n,r,o,i,a,s,l,c=0,u){
this.p=e,this.stack=t,this.state=n,this.reducePos=r,
this.pos=o,this.score=i,this.buffer=a,
this.bufferBase=s,this.curContext=l,this.lookAhead=c,this.parent=u}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 r=e.parser.context
;return new mme(e,[],t,n,n,0,[],0,r?new gme(r,r.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,r=65535&e,{parser:o}=this.p
;this.reducePos<this.pos-25&&this.setLookAhead(this.pos)
;let i=o.dynamicPrecedence(r)
;if(i&&(this.score+=i),0==n)return this.pushState(o.getGoto(this.state,r,!0),this.reducePos),
r<o.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,4,!0),
void this.reduceContext(r,this.reducePos)
;let a=this.stack.length-3*(n-1)-(262144&e?6:0),s=a?this.stack[a-2]:this.p.ranges[0].from,l=this.reducePos-s
;l>=2e3&&!(null===(t=this.p.parser.nodeSet.types[r])||void 0===t?void 0:t.isAnonymous)&&(s==this.p.lastBigReductionStart?(this.p.bigReductionCount++,
this.p.lastBigReductionSize=l):this.p.lastBigReductionSize<l&&(this.p.bigReductionCount=1,
this.p.lastBigReductionStart=s,this.p.lastBigReductionSize=l))
;let c=a?this.stack[a-1]:0,u=this.bufferBase+this.buffer.length-c
;if(r<o.minRepeatTerm||131072&e){
let e=o.stateFlag(this.state,1)?this.pos:this.reducePos
;this.storeNode(r,s,e,u+4,!0)}if(262144&e)this.state=this.stack[a];else{
let e=this.stack[a-3];this.state=o.getGoto(e,r,!0)}
for(;this.stack.length>a;)this.stack.pop();this.reduceContext(r,s)}
storeNode(e,t,n,r=4,o=!1){
if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){
let e=this,r=this.buffer.length
;if(0==r&&e.parent&&(r=e.bufferBase-e.parent.bufferBase,
e=e.parent),r>0&&0==e.buffer[r-4]&&e.buffer[r-1]>-1){if(t==n)return
;if(e.buffer[r-2]>=t)return void(e.buffer[r-2]=n)}}if(o&&this.pos!=n){
let o=this.buffer.length
;if(o>0&&0!=this.buffer[o-4])for(;o>0&&this.buffer[o-2]>n;)this.buffer[o]=this.buffer[o-4],
this.buffer[o+1]=this.buffer[o-3],
this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],
o-=4,r>4&&(r-=4)
;this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=n,this.buffer[o+3]=r
}else this.buffer.push(e,t,n,r)}shift(e,t,n,r){
if(131072&e)this.pushState(65535&e,this.pos);else if(262144&e)this.pos=r,
this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4);else{
let o=e,{parser:i}=this.p
;(r>this.pos||t<=i.maxNode)&&(this.pos=r,i.stateFlag(o,1)||(this.reducePos=r)),
this.pushState(o,n),
this.shiftContext(t,n),t<=i.maxNode&&this.buffer.push(t,n,r,4)}}apply(e,t,n,r){
65536&e?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t){
let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),
n++);let r=this.pos
;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,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),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent
;return new mme(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,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 vme(this);;){
let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e)
;if(0==n)return!1;if(!(65536&n))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 n=[]
;for(let r,o=0;o<t.length;o+=2)(r=t[o+1])!=this.state&&this.p.parser.hasAction(r,e)&&n.push(t[o],r)
;if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let r=t[e+1]
;n.some(((e,t)=>1&t&&e==r))||n.push(t[e],r)}t=n}let n=[]
;for(let r=0;r<t.length&&n.length<4;r+=2){let e=t[r+1];if(e==this.state)continue
;let o=this.split()
;o.pushState(e,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(t[r],this.pos),
o.reducePos=this.pos,o.score-=200,n.push(o)}return n}forceReduce(){
let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(65536&t))return!1
;if(!e.validAction(this.state,t)){let n=t>>19,r=65535&t,o=this.stack.length-3*n
;if(o<0||e.getGoto(this.stack[o],r,!1)<0){let e=this.findForcedReduction()
;if(null==e)return!1;t=e}
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=(r,o)=>{
if(!t.includes(r))return t.push(r),e.allActions(r,(t=>{
if(393216&t);else if(65536&t){let n=(t>>19)-o;if(n>1){
let r=65535&t,o=this.stack.length-3*n
;if(o>=0&&e.getGoto(this.stack[o],r,!1)>=0)return n<<19|65536|r}}else{
let e=n(t,o+1);if(null!=e)return e}}))};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(3!=this.stack.length)return!1;let{parser:e}=this.p
;return 65535==e.data[e.stateSlot(this.state,1)]&&!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||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)
}emitLookAhead(){let e=this.buffer.length-1
;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)
}updateContext(e){if(e!=this.curContext.context){
let t=new gme(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 gme{constructor(e,t){
this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class vme{
constructor(e){
this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}
reduce(e){let t=65535&e,n=e>>19
;0==n?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),
this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(n-1)
;let r=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=r}}
class bme{constructor(e,t,n){
this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,
0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){
return new bme(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent
;null!=e&&(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,0==this.index&&this.maybeNext()}fork(){
return new bme(this.stack,this.pos,this.index)}}function Ome(e,t=Uint16Array){
if("string"!=typeof e)return e;let n=null;for(let r=0,o=0;r<e.length;){let i=0
;for(;;){let t=e.charCodeAt(r++),n=!1;if(126==t){i=65535;break}
t>=92&&t--,t>=34&&t--;let o=t-32;if(o>=46&&(o-=46,n=!0),i+=o,n)break;i*=46}
n?n[o++]=i:n=new t(i)}return n}class yme{constructor(){
this.start=-1,this.value=-1,
this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}
const wme=new yme;class xme{constructor(e,t){
this.input=e,this.ranges=t,this.chunk="",
this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,
this.next=-1,this.token=wme,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,r=this.rangeIndex,o=this.pos+e;for(;o<n.from;){
if(!r)return null;let e=this.ranges[--r];o-=n.from-e.to,n=e}
for(;t<0?o>n.to:o>=n.to;){if(r==this.ranges.length-1)return null
;let e=this.ranges[++r];o+=e.from-n.to,n=e}return o}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,n,r=this.chunkOff+e
;if(r>=0&&r<this.chunk.length)t=this.pos+e,n=this.chunk.charCodeAt(r);else{
let r=this.resolveOffset(e,1);if(null==r)return-1
;if(t=r,t>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)n=this.chunk2.charCodeAt(t-this.chunk2Pos);else{
let e=this.rangeIndex,r=this.range;for(;r.to<=t;)r=this.ranges[++e]
;this.chunk2=this.input.chunk(this.chunk2Pos=t),
t+this.chunk2.length>r.to&&(this.chunk2=this.chunk2.slice(0,r.to-t)),
n=this.chunk2.charCodeAt(0)}}
return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}acceptToken(e,t=0){
let n=t?this.resolveOffset(t,-1):this.pos
;if(null==n||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=wme,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 r of this.ranges){if(r.from>=t)break
;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}
class kme{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p
;Eme(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}
kme.prototype.contextual=kme.prototype.fallback=kme.prototype.extend=!1
;class Sme{constructor(e,t,n){
this.precTable=t,this.elseToken=n,this.data="string"==typeof e?Ome(e):e}
token(e,t){let n=e.pos,r=0;for(;;){let n=e.next<0,o=e.resolveOffset(1,1)
;if(Eme(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break
;if(null==this.elseToken)return;if(n||r++,null==o)break;e.reset(o,e.token)}
r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}}
Sme.prototype.contextual=kme.prototype.fallback=kme.prototype.extend=!1
;class _me{constructor(e,t={}){
this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,
this.extend=!!t.extend}}function Eme(e,t,n,r,o,i){
let a=0,s=1<<r,{dialect:l}=n.p.parser;e:for(;s&e[a];){let n=e[a+1]
;for(let d=a+3;d<n;d+=2)if((e[d+1]&s)>0){let n=e[d]
;if(l.allows(n)&&(-1==t.token.value||t.token.value==n||Cme(n,t.token.value,o,i))){
t.acceptToken(n);break}}let r=t.next,c=0,u=e[a+2]
;if(!(t.next<0&&u>c&&65535==e[n+3*u-3])){for(;c<u;){
let o=c+u>>1,i=n+o+(o<<1),s=e[i],l=e[i+1]||65536;if(r<s)u=o;else{if(!(r>=l)){
a=e[i+2],t.advance();continue e}c=o+1}}break}a=e[n+3*u-1]}}function Tme(e,t,n){
for(let r,o=t;65535!=(r=e[o]);o++)if(r==n)return o-t;return-1}
function Cme(e,t,n,r){let o=Tme(n,r,t);return o<0||Tme(n,r,e)<o}
const Ame="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG)
;let Pme=null;function Dme(e,t,n){let r=e.cursor(Zue.IncludeAnonymous)
;for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){
if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25))
;if(n<0?r.prevSibling():r.nextSibling())break
;if(!r.parent())return n<0?0:e.length}}class $me{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?Dme(e.tree,e.from+e.offset,1)-e.offset:e.from,
this.safeTo=e.openEnd?Dme(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],r=this.index[t]
;if(r==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop()
;continue}let o=n.children[r],i=this.start[t]+n.positions[r]
;if(i>e)return this.nextStart=i,null;if(o instanceof Wue){if(i==e){
if(i<this.safeFrom)return null;let e=i+o.length;if(e<=this.safeTo){
let t=o.prop(Que.lookAhead);if(!t||e+t<this.fragment.to)return o}}
this.index[t]++,
i+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(i),
this.index.push(0))}else this.index[t]++,this.nextStart=i+o.length}}}class Rme{
constructor(e,t){
this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],
this.tokens=e.tokenizers.map((e=>new yme))}getActions(e){
let t=0,n=null,{parser:r}=e.p,{tokenizers:o}=r,i=r.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,s=0
;for(let l=0;l<o.length;l++){if(!(1<<l&i))continue;let r=o[l],c=this.tokens[l]
;if((!n||r.fallback)&&((r.contextual||c.start!=e.pos||c.mask!=i||c.context!=a)&&(this.updateCachedToken(c,r,e),
c.mask=i,
c.context=a),c.lookAhead>c.end+25&&(s=Math.max(c.lookAhead,s)),0!=c.value)){
let o=t
;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),
!r.extend&&(n=c,t>o))break}}for(;this.actions.length>t;)this.actions.pop()
;return s&&e.setLookAhead(s),
n||e.pos!=this.stream.end||(n=new yme,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 yme,{pos:n,p:r}=e
;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,
t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos)
;if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p
;for(let r=0;r<t.specialized.length;r++)if(t.specialized[r]==e.value){
let o=t.specializers[r](this.stream.read(e.start,e.end),n)
;if(o>=0&&n.p.parser.dialect.allows(o>>1)){1&o?e.extended=o>>1:e.value=o>>1
;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){
for(let o=0;o<r;o+=3)if(this.actions[o]==e)return r
;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r}
addActions(e,t,n,r){let{state:o}=e,{parser:i}=e.p,{data:a}=i
;for(let s=0;s<2;s++)for(let e=i.stateSlot(o,s?2:1);;e+=3){if(65535==a[e]){
if(1!=a[e+1]){0==r&&2==a[e+1]&&(r=this.putAction(jme(a,e+2),t,n,r));break}
e=jme(a,e+2)}a[e]==t&&(r=this.putAction(jme(a,e+1),t,n,r))}return r}}class Nme{
constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,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 xme(t,r),this.tokens=new Rme(e,this.stream),
this.topTerm=e.top[1];let{from:o}=r[0];this.stacks=[mme.start(this,e.top[0],o)],
this.fragments=n.length&&this.stream.end-o>4*e.bufferLength?new $me(n,e.nodeSet):null
}get parsedPos(){return this.minStackPos}advance(){
let e,t,n=this.stacks,r=this.minStackPos,o=this.stacks=[]
;if(this.bigReductionCount>300&&1==n.length){let[e]=n
;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);
this.bigReductionCount=this.lastBigReductionSize=0}for(let i=0;i<n.length;i++){
let a=n[i];for(;;){if(this.tokens.mainToken=null,a.pos>r)o.push(a);else{
if(this.advanceStack(a,o,n))continue;{e||(e=[],t=[]),e.push(a)
;let n=this.tokens.getMainToken(a);t.push(n.value,n.end)}}break}}if(!o.length){
let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt
;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)
}return t}(e)
;if(t)return Ame&&console.log("Finish with "+this.stackID(t)),this.stackToTree(t)
;if(this.parser.strict)throw Ame&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),
new SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}
if(this.recovering&&e){
let n=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,o)
;if(n)return Ame&&console.log("Force-finish "+this.stackID(n)),
this.stackToTree(n.forceAll())}if(this.recovering){
let e=1==this.recovering?1:3*this.recovering
;if(o.length>e)for(o.sort(((e,t)=>t.score-e.score));o.length>e;)o.pop()
;o.some((e=>e.reducePos>r))&&this.recovering--}else if(o.length>1){
e:for(let e=0;e<o.length-1;e++){let t=o[e];for(let n=e+1;n<o.length;n++){
let r=o[n];if(t.sameState(r)||t.buffer.length>500&&r.buffer.length>500){
if(!((t.score-r.score||t.buffer.length-r.buffer.length)>0)){o.splice(e--,1)
;continue e}o.splice(n--,1)}}}o.length>12&&o.splice(12,o.length-12)}
this.minStackPos=o[0].pos
;for(let i=1;i<o.length;i++)o[i].pos<this.minStackPos&&(this.minStackPos=o[i].pos)
;return null}stopAt(e){
if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward")
;this.stoppedAt=e}advanceStack(e,t,n){
let r=e.pos,{parser:o}=this,i=Ame?this.stackID(e)+" -> ":""
;if(null!=this.stoppedAt&&r>this.stoppedAt)return e.forceReduce()?e:null
;if(this.fragments){
let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0
;for(let a=this.fragments.nodeAt(r);a;){
let r=this.parser.nodeSet.types[a.type.id]==a.type?o.getGoto(e.state,a.type.id):-1
;if(r>-1&&a.length&&(!t||(a.prop(Que.contextHash)||0)==n))return e.useNode(a,r),
Ame&&console.log(i+this.stackID(e)+` (via reuse of ${o.getName(a.type.id)})`),!0
;if(!(a instanceof Wue)||0==a.children.length||a.positions[0]>0)break
;let s=a.children[0];if(!(s instanceof Wue&&0==a.positions[0]))break;a=s}}
let a=o.stateSlot(e.state,4)
;if(a>0)return e.reduce(a),Ame&&console.log(i+this.stackID(e)+` (via always-reduce ${o.getName(65535&a)})`),
!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););
let s=this.tokens.getActions(e);for(let l=0;l<s.length;){
let a=s[l++],c=s[l++],u=s[l++],d=l==s.length||!n,p=d?e:e.split(),h=this.tokens.mainToken
;if(p.apply(a,c,h?h.start:p.pos,u),
Ame&&console.log(i+this.stackID(p)+` (via ${65536&a?`reduce of ${o.getName(65535&a)}`:"shift"} for ${o.getName(c)} @ ${r}${p==e?"":", split"})`),
d)return!0;p.pos>r?t.push(p):n.push(p)}return!1}advanceFully(e,t){let n=e.pos
;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return Ime(e,t),
!0}}runRecovery(e,t,n){let r=null,o=!1;for(let i=0;i<e.length;i++){
let a=e[i],s=t[i<<1],l=t[1+(i<<1)],c=Ame?this.stackID(a)+" -> ":""
;if(a.deadEnd){if(o)continue
;if(o=!0,a.restart(),Ame&&console.log(c+this.stackID(a)+" (restarted)"),
this.advanceFully(a,n))continue}let u=a.split(),d=c
;for(let e=0;u.forceReduce()&&e<10;e++){
if(Ame&&console.log(d+this.stackID(u)+" (via force-reduce)"),
this.advanceFully(u,n))break;Ame&&(d=this.stackID(u)+" -> ")}
for(let e of a.recoverByInsert(s))Ame&&console.log(c+this.stackID(e)+" (via recover-insert)"),
this.advanceFully(e,n)
;this.stream.end>a.pos?(l==a.pos&&(l++,s=0),a.recoverByDelete(s,l),
Ame&&console.log(c+this.stackID(a)+` (via recover-delete ${this.parser.getName(s)})`),
Ime(a,n)):(!r||r.score<a.score)&&(r=a)}return r}stackToTree(e){return e.close(),
Wue.build({buffer:bme.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=(Pme||(Pme=new WeakMap)).get(e)
;return t||Pme.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}
function Ime(e,t){for(let n=0;n<t.length;n++){let r=t[n]
;if(r.pos==e.pos&&r.sameState(e))return void(t[n].score<e.score&&(t[n]=e))}
t.push(e)}class Mme{constructor(e,t,n){
this.source=e,this.flags=t,this.disabled=n}allows(e){
return!this.disabled||0==this.disabled[e]}}const Lme=e=>e;class Bme{
constructor(e){
this.start=e.start,this.shift=e.shift||Lme,this.reduce=e.reduce||Lme,
this.reuse=e.reuse||Lme,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}
class Qme extends fde{constructor(e){
if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`)
;let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length
;for(let a=0;a<e.repeatNodeCount;a++)t.push("")
;let n=Object.keys(e.topRules).map((t=>e.topRules[t][1])),r=[]
;for(let a=0;a<t.length;a++)r.push([]);function o(e,t,n){
r[e].push([t,t.deserialize(String(n))])}
if(e.nodeProps)for(let a of e.nodeProps){let e=a[0]
;"string"==typeof e&&(e=Que[e]);for(let t=1;t<a.length;){let n=a[t++]
;if(n>=0)o(n,e,a[t++]);else{let r=a[t+-n];for(let i=-n;i>0;i--)o(a[t++],e,r);t++
}}}this.nodeSet=new que(t.map(((t,o)=>Fue.define({
name:o>=this.minRepeatTerm?void 0:t,id:o,props:r[o],top:n.indexOf(o)>-1,
error:0==o,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1
})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),
this.strict=!1,this.bufferLength=Mue;let i=Ome(e.tokenData)
;this.context=e.context,
this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length)
;for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term
;this.specializers=this.specializerSpecs.map(Ume),
this.states=Ome(e.states,Uint32Array),
this.data=Ome(e.stateData),this.goto=Ome(e.goto),
this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map((e=>"number"==typeof e?new kme(i,e):e)),
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 r=new Nme(this,e,t,n);for(let o of this.wrappers)r=o(r,e,t,n);return r}
getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return-1;for(let o=r[t+1];;){
let t=r[o++],i=1&t,a=r[o++];if(i&&n)return a
;for(let n=o+(t>>1);o<n;o++)if(r[o]==e)return a;if(i)return-1}}hasAction(e,t){
let n=this.data;for(let r=0;r<2;r++)for(let o,i=this.stateSlot(e,r?2:1);;i+=3){
if(65535==(o=n[i])){if(1!=n[i+1]){if(2==n[i+1])return jme(n,i+2);break}
o=n[i=jme(n,i+2)]}if(o==t||0==o)return jme(n,i+1)}return 0}stateSlot(e,t){
return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}
validAction(e,t){return!!this.allActions(e,(e=>e==t||null))}allActions(e,t){
let n=this.stateSlot(e,4),r=n?t(n):void 0
;for(let o=this.stateSlot(e,1);null==r;o+=3){if(65535==this.data[o]){
if(1!=this.data[o+1])break;o=jme(this.data,o+2)}r=t(jme(this.data,o+1))}return r
}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){
if(65535==this.data[n]){if(1!=this.data[n+1])break;n=jme(this.data,n+2)}
if(!(1&this.data[n+2])){let e=this.data[n+1]
;t.some(((t,n)=>1&n&&t==e))||t.push(this.data[n],e)}}return t}configure(e){
let t=Object.assign(Object.create(Qme.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((t=>{
let n=e.tokenizers.find((e=>e.from==t));return n?n.to:t
}))),e.specializers&&(t.specializers=this.specializers.slice(),
t.specializerSpecs=this.specializerSpecs.map(((n,r)=>{
let o=e.specializers.find((e=>e.from==n.external));if(!o)return n
;let i=Object.assign(Object.assign({},n),{external:o.to})
;return t.specializers[r]=Ume(i),i
}))),e.contextTracker&&(t.context=e.contextTracker),
e.dialect&&(t.dialect=this.parseDialect(e.dialect)),
null!=e.strict&&(t.strict=e.strict),
e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),
null!=e.bufferLength&&(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 null==t?0:t[e]||0}parseDialect(e){
let t=Object.keys(this.dialects),n=t.map((()=>!1))
;if(e)for(let o of e.split(" ")){let e=t.indexOf(o);e>=0&&(n[e]=!0)}let r=null
;for(let o=0;o<t.length;o++)if(!n[o])for(let e,n=this.dialects[t[o]];65535!=(e=this.data[n++]);)(r||(r=new Uint8Array(this.maxTerm+1)))[e]=1
;return new Mme(e,n,r)}static deserialize(e){return new Qme(e)}}
function jme(e,t){return e[t]|e[t+1]<<16}function Ume(e){if(e.external){
let t=e.extend?1:0;return(n,r)=>e.external(n,r)<<1|t}return e.get}
const Fme=[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]
;function qme(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function zme(e){
return e>=48&&e<=57}const Hme=new _me(((e,t)=>{for(let n=!1,r=0,o=0;;o++){
let{next:i}=e
;if(qme(i)||45==i||95==i||n&&zme(i))!n&&(45!=i||o>0)&&(n=!0),r===o&&45==i&&r++,
e.advance();else{if(92!=i||10==e.peek(1)){
n&&e.acceptToken(40==i?100:2==r&&t.canShift(2)?2:101);break}
e.advance(),e.next>-1&&e.advance(),n=!0}}})),Zme=new _me((e=>{
if(Fme.includes(e.peek(-1))){let{next:t}=e
;(qme(t)||95==t||35==t||46==t||91==t||58==t&&qme(e.peek(1))||45==t||38==t)&&e.acceptToken(99)
}})),Vme=new _me((e=>{if(!Fme.includes(e.peek(-1))){let{next:t}=e
;if(37==t&&(e.advance(),e.acceptToken(1)),qme(t)){do{e.advance()
}while(qme(e.next)||zme(e.next));e.acceptToken(1)}}})),Wme=Rde({
"AtKeyword import charset namespace keyframes media supports":epe.definitionKeyword,
"from to selector":epe.keyword,NamespaceName:epe.namespace,
KeyframeName:epe.labelName,KeyframeRangeName:epe.operatorKeyword,
TagName:epe.tagName,ClassName:epe.className,
PseudoClassName:epe.constant(epe.className),IdName:epe.labelName,
"FeatureName PropertyName":epe.propertyName,AttributeName:epe.attributeName,
NumberLiteral:epe.number,KeywordQuery:epe.keyword,
UnaryQueryOp:epe.operatorKeyword,"CallTag ValueName":epe.atom,
VariableName:epe.variableName,Callee:epe.operatorKeyword,Unit:epe.unit,
"UniversalSelector NestingSelector":epe.definitionOperator,
MatchOp:epe.compareOperator,"ChildOp SiblingOp, LogicOp":epe.logicOperator,
BinOp:epe.arithmeticOperator,Important:epe.modifier,Comment:epe.blockComment,
ColorLiteral:epe.color,"ParenthesizedContent StringLiteral":epe.string,
":":epe.punctuation,"PseudoOp #":epe.derefOperator,"; ,":epe.separator,
"( )":epe.paren,"[ ]":epe.squareBracket,"{ }":epe.brace}),Xme={__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},Yme={__proto__:null,"@import":118,"@media":142,
"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},Gme={
__proto__:null,not:132,only:132},Kme=Qme.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:dOOQO'#D}'#D}O-UQWO,5:gO-ZQWO,5:mO-cQWO,5:oOOQS-E8U-E8UO${QdO,59}O-kQ[O'#E^O-xQWO,5;_O-xQWO,5;_POOO'#EV'#EVP.TO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.zQXO,5:vOOQO-E8Y-E8YOOQS1G.g1G.gOOQP1G.n1G.nO)gQWO1G.nO)lQWO1G.nOOQP1G/Z1G/ZO/XQ`O1G/^O/rQXO1G/aO0YQXO1G/cO0pQXO1G/dO1WQWO,59|O1]Q[O'#DSO1dQdO'#CoOOQP1G/^1G/^O${QdO1G/^O1kQpO,59]OOQS,59_,59_O${QdO,59aO1sQWO1G/mOOQS,59c,59cO1xQ!bO,59eOOQS'#DP'#DPOOQS'#EY'#EYO2QQ[O,59jOOQS,59j,59jO2YQWO'#DjO2eQWO,5:VO2jQWO,5:]O&`Q[O,5:XO&`Q[O'#E_O2rQWO,5;`O2}QWO,5:ZO(aQ[O,5:^OOQS1G/z1G/zOOQS1G/|1G/|OOQS1G0O1G0OO3`QWO1G0OO3eQdO'#EOOOQS1G0R1G0ROOQS1G0X1G0XOOQS1G0Z1G0ZO3pQtO1G/iOOQO,5:x,5:xO4WQ[O,5:xOOQO-E8[-E8[O4eQWO1G0yPOOO-E8T-E8TPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$x7+$xO${QdO7+$xOOQS1G/h1G/hO4pQXO'#ErO4wQWO,59nO4|QtO'#EXO5tQdO'#EoO6OQWO,59ZO6TQpO7+$xOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%X7+%XO6]QWO1G/POOQS-E8W-E8WOOQS1G/U1G/UO${QdO1G/qOOQO1G/w1G/wOOQO1G/s1G/sO6bQWO,5:yOOQO-E8]-E8]O6pQXO1G/xOOQS7+%j7+%jO6wQYO'#CsOOQO'#EQ'#EQO7SQ`O'#EPOOQO'#EP'#EPO7_QWO'#E`O7gQdO,5:jOOQS,5:j,5:jO7rQtO'#E]O${QdO'#E]O8sQdO7+%TOOQO7+%T7+%TOOQO1G0d1G0dO9WQpO<<HdO9`QWO,5;^OOQP1G/Y1G/YOOQS-E8V-E8VO${QdO'#EZO9hQWO,5;ZOOQT1G.u1G.uOOQP<<Hd<<HdOOQS7+$k7+$kO9pQdO7+%]OOQO7+%d7+%dOOQO,5:k,5:kO3hQdO'#EaO7_QWO,5:zOOQS,5:z,5:zOOQS-E8^-E8^OOQS1G0U1G0UO9wQtO,5:wOOQS-E8Z-E8ZOOQO<<Ho<<HoOOQPAN>OAN>OO:xQdO,5:uOOQO-E8X-E8XOOQO<<Hw<<HwOOQO,5:{,5:{OOQO-E8_-E8_OOQS1G0f1G0f",
stateData:";[~O#ZOS#[QQ~OUYOXYO]VO^VOqXOxWO![aO!]ZO!i[O!k]O!m^O!p_O!v`O#XRO#bTO~OQfOUYOXYO]VO^VOqXOxWO![aO!]ZO!i[O!k]O!m^O!p_O!v`O#XeO#bTO~O#U#gP~P!ZO#[jO~O#XlO~O]qO^qOqsOtoOxrO!OtO!RvO#VuO#bnO~O!TwO~P#pO`}O#WzO#XyO~O#X!OO~O#X!QO~OQ![Ob!TOf![Oh![On!YOq!ZO#W!WO#X!SO#e!UO~Ob!^O!d!`O!g!aO#X!]O!T#hP~Oh!fOn!YO#X!eO~Oh!hO#X!hO~Ob!^O!d!`O!g!aO#X!]O~O!Y#hP~P%jO]WX]!WX^WXqWXtWXxWX!OWX!RWX!TWX#VWX#bWX~O]!mO~O!Y!nO#U#gX!S#gX~O#U#gX!S#gX~P!ZO#]!qO#^!qO#_!sO~OUYOXYO]VO^VOqXOxWO#XRO#bTO~OtoO!TwO~O`!zO#WzO#XyO~O!S#gP~P!ZOb#RO~Ob#SO~Op#TO|#UO~OP#WObgXjgX!YgX!dgX!ggX#XgXagXQgXfgXhgXngXqgXtgX!XgX#UgX#WgX#egXpgX!SgX~Ob!^Oj#XO!d!`O!g!aO#X!]O!Y#hP~Ob#[O~Op#`O#X#]O~Ob!^O!d!`O!g!aO#X#aO~Ot#eO!b#dO!T#hX!Y#hX~Ob#hO~Oj#XO!Y#jO~O!Y#kO~Oh#lOn!YO~O!T#mO~O!TwO!b#dO~O!TwO!Y#pO~O!Y#QX#U#QX!S#QX~P!ZO!Y!nO#U#ga!S#ga~O#]!qO#^!qO#_#wO~O]qO^qOqsOxrO!OtO!RvO#VuO#bnO~Ot#Oa!T#Oaa#Oa~P.`Op#yO|#zO~O]qO^qOqsOxrO#bnO~Ot}i!O}i!R}i!T}i#V}ia}i~P/aOt!Pi!O!Pi!R!Pi!T!Pi#V!Pia!Pi~P/aOt!Qi!O!Qi!R!Qi!T!Qi#V!Qia!Qi~P/aO!S#{O~Oa#fP~P(aOa#cP~P${Oa$SOj#XO~O!Y$UO~Oh$VOo$VO~Op$XO#X#]O~O]!`Xa!^X!b!^X~O]$YO~Oa$ZO!b#dO~Ot#eO!T#ha!Y#ha~O!b#dOt!ca!T!ca!Y!caa!ca~O!Y$`O~O!S$gO#X$bO#e$aO~Oj#XOt$iO!X$kO!Y!Vi#U!Vi!S!Vi~P${O!Y#Qa#U#Qa!S#Qa~P!ZO!Y!nO#U#gi!S#gi~Oa#fX~P#pOa$oO~Oj#XOQ!{Xa!{Xb!{Xf!{Xh!{Xn!{Xq!{Xt!{X#W!{X#X!{X#e!{X~Ot$qOa#cX~P${Oa$sO~Oj#XOp$tO~Oa$uO~O!b#dOt#Ra!T#Ra!Y#Ra~Oa$wO~P.`OP#WOtgX!TgX~O#e$aOt!sX!T!sX~Ot$yO!TwO~O!S$}O#X$bO#e$aO~Oj#XOQ#PXb#PXf#PXh#PXn#PXq#PXt#PX!X#PX!Y#PX#U#PX#W#PX#X#PX#e#PX!S#PX~Ot$iO!X%QO!Y!Vq#U!Vq!S!Vq~P${Oj#XOp%RO~OtoOa#fa~Ot$qOa#ca~Oa%UO~P${Oj#XOQ#Pab#Paf#Pah#Pan#Paq#Pat#Pa!X#Pa!Y#Pa#U#Pa#W#Pa#X#Pa#e#Pa!S#Pa~Oa!}at!}a~P${O#Zo#[#ej!R#e~",
goto:"-g#jPPP#kP#nP#w$WP#w$g#wPP$mPPP$s$|$|P%`P$|P$|%z&^PPPP$|&vP&z'Q#wP'W#w'^P#wP#w#wPPP'd'y(WPP#nPP(_(_(i(_P(_P(_(_P#nP#nP#nP(l#nP(o(r(u(|#nP#nP)R)X)h)v)|*S*^*d*n*t*zPPPPPPPPPP+Q+ZP+v+yP,o,r,x-RRkQ_bOPdhw!n#skYOPdhotuvw!n#R#h#skSOPdhotuvw!n#R#h#sQmTR!tnQ{VR!xqQ!x}Q#Z!XR#x!zq![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%Sp![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%SU$d#m$f$yR$x$cq!XZ]!T!m#S#U#X#q#z$P$Y$i$j$q$v%Sp![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%SQ!f^R#l!gT#^!Z#_Q|VR!yqQ!x|R#x!yQ!PWR!{rQ!RXR!|sQxUQ!wpQ#i!cQ#o!jQ#p!kQ${$eR%X$zSgPwQ!phQ#r!nR$l#sZfPhw!n#sa!b[`a!V!^!`#d#eR#b!^R!g^R!i_R#n!iS$e#m$fR%V$yV$c#m$f$yQ!rjR#v!rQdOShPwU!ldh#sR#s!nQ$P#SU$p$P$v%SQ$v$YR%S$qQ#_!ZR$W#_Q$r$PR%T$rQpUS!vp$nR$n#|Q$j#qR%P$jQ!ogS#t!o#uR#u!pQ#f!_R$^#fQ$f#mR$|$fQ$z$eR%W$z_cOPdhw!n#s^UOPdhw!n#sQ!uoQ!}tQ#OuQ#PvQ#|#RR$_#hR$Q#SQ!VZQ!d]Q#V!TQ#q!m[$O#S$P$Y$q$v%SQ$R#UQ$T#XS$h#q$jQ$m#zR%O$iR#}#RQiPR#QwQ!c[Q!kaR#Y!VU!_[a!VQ!j`Q#c!^Q#g!`Q$[#dR$]#e",
nodeNames:"⚠ Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: 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:[Wme],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%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^~'mh#Z~o`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%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^l)[UOy%^z#]%^#]#^)n#^;'S%^;'S;=`%o<%lO%^l)sUo`Oy%^z#a%^#a#b*V#b;'S%^;'S;=`%o<%lO%^l*[Uo`Oy%^z#d%^#d#e*n#e;'S%^;'S;=`%o<%lO%^l*sUo`Oy%^z#c%^#c#d+V#d;'S%^;'S;=`%o<%lO%^l+[Uo`Oy%^z#f%^#f#g+n#g;'S%^;'S;=`%o<%lO%^l+sUo`Oy%^z#h%^#h#i,V#i;'S%^;'S;=`%o<%lO%^l,[Uo`Oy%^z#T%^#T#U,n#U;'S%^;'S;=`%o<%lO%^l,sUo`Oy%^z#b%^#b#c-V#c;'S%^;'S;=`%o<%lO%^l-[Uo`Oy%^z#h%^#h#i-n#i;'S%^;'S;=`%o<%lO%^l-uS!X[o`Oy%^z;'S%^;'S;=`%o<%lO%^~.UWOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o<%lO.R~.sOh~~.vRO;'S.R;'S;=`/P;=`O.R~/SXOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o;=`<%l.R<%lO.R~/rP;=`<%l.Rn/zYxQOy%^z!Q%^!Q![0j![!c%^!c!i0j!i#T%^#T#Z0j#Z;'S%^;'S;=`%o<%lO%^l0oYo`Oy%^z!Q%^!Q![1_![!c%^!c!i1_!i#T%^#T#Z1_#Z;'S%^;'S;=`%o<%lO%^l1dYo`Oy%^z!Q%^!Q![2S![!c%^!c!i2S!i#T%^#T#Z2S#Z;'S%^;'S;=`%o<%lO%^l2ZYf[o`Oy%^z!Q%^!Q![2y![!c%^!c!i2y!i#T%^#T#Z2y#Z;'S%^;'S;=`%o<%lO%^l3QYf[o`Oy%^z!Q%^!Q![3p![!c%^!c!i3p!i#T%^#T#Z3p#Z;'S%^;'S;=`%o<%lO%^l3uYo`Oy%^z!Q%^!Q![4e![!c%^!c!i4e!i#T%^#T#Z4e#Z;'S%^;'S;=`%o<%lO%^l4lYf[o`Oy%^z!Q%^!Q![5[![!c%^!c!i5[!i#T%^#T#Z5[#Z;'S%^;'S;=`%o<%lO%^l5aYo`Oy%^z!Q%^!Q![6P![!c%^!c!i6P!i#T%^#T#Z6P#Z;'S%^;'S;=`%o<%lO%^l6WSf[o`Oy%^z;'S%^;'S;=`%o<%lO%^d6gUOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^d7QS|So`Oy%^z;'S%^;'S;=`%o<%lO%^b7cSXQOy%^z;'S%^;'S;=`%o<%lO%^~7rWOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W<%lO7o~8_RO;'S7o;'S;=`8h;=`O7o~8kXOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W;=`<%l7o<%lO7o~9ZP;=`<%l7on9cSb^Oy%^z;'S%^;'S;=`%o<%lO%^~9tOa~n9{UUQjWOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^n:fWjW!RQOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#e[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l<cYo`Oy%^z{%^{|=R|}%^}!O=R!O!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l=WUo`Oy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l=qUo`#e[Oy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l>[[o`#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSt^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#bQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#[~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Y^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",
tokenizers:[Zme,Vme,Hme,1,2,3,4,new Sme("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],
topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,
get:e=>Xme[e]||-1},{term:58,get:e=>Yme[e]||-1},{term:101,get:e=>Gme[e]||-1}],
tokenPrec:1200});let Jme=null;function ege(){
if(!Jme&&"object"==typeof document&&document.body){
let{style:e}=document.body,t=[],n=new Set
;for(let r in e)"cssText"!=r&&"cssFloat"!=r&&"string"==typeof e[r]&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))),
n.has(r)||(t.push(r),n.add(r)));Jme=t.sort().map((e=>({type:"property",label:e
})))}return Jme||[]}
const tge=["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((e=>({
type:"class",label:e
}))),nge=["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((e=>({
type:"keyword",label:e
}))).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((e=>({
type:"constant",label:e
})))),rge=["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((e=>({
type:"type",label:e}))),oge=/^(\w[\w-]*|-\w[\w-]*|)$/,ige=/^-(-[\w-]*)?$/
;const age=new pde,sge=["Declaration"];function lge(e){for(let t=e;;){
if(t.type.isTop)return t;if(!(t=t.parent))return e}}function cge(e,t,n){
if(t.to-t.from>4096){let r=age.get(t);if(r)return r
;let o=[],i=new Set,a=t.cursor(Zue.IncludeAnonymous);if(a.firstChild())do{
for(let t of cge(e,a.node,n))i.has(t.label)||(i.add(t.label),o.push(t))
}while(a.nextSibling());return age.set(t,o),o}{let r=[],o=new Set
;return t.cursor().iterate((t=>{var i
;if(n(t)&&t.matchContext(sge)&&":"==(null===(i=t.node.nextSibling)||void 0===i?void 0:i.name)){
let n=e.sliceString(t.from,t.to);o.has(n)||(o.add(n),r.push({label:n,
type:"variable"}))}})),r}}const uge=(e=>t=>{
let{state:n,pos:r}=t,o=lpe(n).resolveInner(r,-1),i=o.type.isError&&o.from==o.to-1&&"-"==n.doc.sliceString(o.from,o.to)
;if("PropertyName"==o.name||(i||"TagName"==o.name)&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{
from:o.from,options:ege(),validFor:oge};if("ValueName"==o.name)return{
from:o.from,options:nge,validFor:oge};if("PseudoClassName"==o.name)return{
from:o.from,options:tge,validFor:oge};if(e(o)||(t.explicit||i)&&function(e,t){
var n
;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1
;let r=null===(n=e.parent)||void 0===n?void 0:n.firstChild
;return"Callee"==(null==r?void 0:r.name)&&"var"==t.sliceString(r.from,r.to)
}(o,n.doc))return{from:e(o)||i?o.from:r,options:cge(n.doc,lge(o),e),validFor:ige
};if("TagName"==o.name){
for(let{parent:e}=o;e;e=e.parent)if("Block"==e.name)return{from:o.from,
options:ege(),validFor:oge};return{from:o.from,options:rge,validFor:oge}}
if(!t.explicit)return null;let a=o.resolve(r),s=a.childBefore(r)
;return s&&":"==s.name&&"PseudoClassSelector"==a.name?{from:r,options:tge,
validFor:oge}:s&&":"==s.name&&"Declaration"==a.name||"ArgList"==a.name?{from:r,
options:nge,validFor:oge}:"Block"==a.name||"Styles"==a.name?{from:r,
options:ege(),validFor:oge}:null})((e=>"VariableName"==e.name)),dge=spe.define({
name:"css",parser:Kme.configure({props:[_pe.add({Declaration:Rpe()}),Mpe.add({
"Block KeyframeList":Lpe})]}),languageData:{commentTokens:{block:{open:"/*",
close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function pge(){
return new bpe(dge,dge.data.of({autocomplete:uge}))}
const hge=20,fge=22,mge=23,gge=24,vge=26,bge=27,Oge=28,yge=31,wge=34,xge=37,kge={
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},Sge={
dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,
th:!0,tr:!0},_ge={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 Ege(e){return 9==e||10==e||13==e||32==e}
let Tge=null,Cge=null,Age=0;function Pge(e,t){let n=e.pos+t
;if(Age==n&&Cge==e)return Tge;let r=e.peek(t);for(;Ege(r);)r=e.peek(++t)
;let o=""
;for(;45==(i=r)||46==i||58==i||i>=65&&i<=90||95==i||i>=97&&i<=122||i>=161;)o+=String.fromCharCode(r),
r=e.peek(++t);var i
;return Cge=e,Age=n,Tge=o?o.toLowerCase():r==Dge||r==$ge?void 0:null}
const Dge=63,$ge=33;function Rge(e,t){this.name=e,this.parent=t}
const Nge=[6,10,7,8,9],Ige=new Bme({start:null,
shift:(e,t,n,r)=>Nge.indexOf(t)>-1?new Rge(Pge(r,1)||"",e):e,
reduce:(e,t)=>t==hge&&e?e.parent:e,reuse(e,t,n,r){let o=t.type.id
;return 6==o||36==o?new Rge(Pge(r,1)||"",e):e},strict:!1}),Mge=new _me(((e,t)=>{
if(60!=e.next)return void(e.next<0&&t.context&&e.acceptToken(57));e.advance()
;let n=47==e.next;n&&e.advance();let r=Pge(e,0);if(void 0===r)return
;if(!r)return e.acceptToken(n?14:6);let o=t.context?t.context.name:null;if(n){
if(r==o)return e.acceptToken(11);if(o&&Sge[o])return e.acceptToken(57,-2)
;if(t.dialectEnabled(0))return e.acceptToken(12)
;for(let e=t.context;e;e=e.parent)if(e.name==r)return;e.acceptToken(13)}else{
if("script"==r)return e.acceptToken(7);if("style"==r)return e.acceptToken(8)
;if("textarea"==r)return e.acceptToken(9)
;if(kge.hasOwnProperty(r))return e.acceptToken(10)
;o&&_ge[o]&&_ge[o][r]?e.acceptToken(57,-1):e.acceptToken(6)}}),{contextual:!0
}),Lge=new _me((e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(58)
;break}if(45==e.next)t++;else{if(62==e.next&&t>=2){n>=3&&e.acceptToken(58,-2)
;break}t=0}e.advance()}}));const Bge=new _me(((e,t)=>{
if(47==e.next&&62==e.peek(1)){let n=t.dialectEnabled(1)||function(e){
for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return!0;return!1}(t.context)
;e.acceptToken(n?5:4,2)}else 62==e.next&&e.acceptToken(4,1)}))
;function Qge(e,t,n){let r=2+e.length;return new _me((o=>{
for(let i=0,a=0,s=0;;s++){if(o.next<0){s&&o.acceptToken(t);break}
if(0==i&&60==o.next||1==i&&47==o.next||i>=2&&i<r&&o.next==e.charCodeAt(i-2))i++,
a++;else if(2!=i&&i!=r||!Ege(o.next)){if(i==r&&62==o.next){
s>a?o.acceptToken(t,-a):o.acceptToken(n,-(a-2));break}
if((10==o.next||13==o.next)&&s){o.acceptToken(t,1);break}i=a=0}else a++
;o.advance()}}))}
const jge=Qge("script",54,1),Uge=Qge("style",55,2),Fge=Qge("textarea",56,3),qge=Rde({
"Text RawText":epe.content,
"StartTag StartCloseTag SelfClosingEndTag EndTag":epe.angleBracket,
TagName:epe.tagName,"MismatchedCloseTag/TagName":[epe.tagName,epe.invalid],
AttributeName:epe.attributeName,
"AttributeValue UnquotedAttributeValue":epe.attributeValue,
Is:epe.definitionOperator,"EntityReference CharacterReference":epe.character,
Comment:epe.blockComment,ProcessingInst:epe.processingInstruction,
DoctypeDecl:epe.documentMeta}),zge=Qme.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/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O+_O7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+pOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",
stateData:",]~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",
goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^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:Ige,
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:[qge],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&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pT`POv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!cpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({W`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!a`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!a`!cpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYkWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]``P!a`!cp!^^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebhSkWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXhSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vchS`P!a`!cpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!`h`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WihSkWc!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QchSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$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!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",
tokenizers:[jge,Uge,Fge,Bge,Mge,Lge,0,1,2,3,4,5],topRules:{Document:[0,15]},
dialects:{noMatch:0,selfClosing:509},tokenPrec:511});function Hge(e,t){
let n=Object.create(null);for(let r of e.getChildren(mge)){
let e=r.getChild(gge),o=r.getChild(vge)||r.getChild(bge)
;e&&(n[t.read(e.from,e.to)]=o?o.type.id==vge?t.read(o.from+1,o.to-1):t.read(o.from,o.to):"")
}return n}function Zge(e,t){let n=e.getChild(fge)
;return n?t.read(n.from,n.to):" "}function Vge(e,t,n){let r
;for(let o of n)if(!o.attrs||o.attrs(r||(r=Hge(e.node.parent.firstChild,t))))return{
parser:o.parser};return null}function Wge(e=[],t=[]){let n=[],r=[],o=[],i=[]
;for(let l of e){
("script"==l.tag?n:"style"==l.tag?r:"textarea"==l.tag?o:i).push(l)}
let a=t.length?Object.create(null):null
;for(let l of t)(a[l.name]||(a[l.name]=[])).push(l);return s=(e,t)=>{
let s=e.type.id;if(s==Oge)return Vge(e,t,n);if(s==yge)return Vge(e,t,r)
;if(s==wge)return Vge(e,t,o);if(s==hge&&i.length){
let n,r=e.node,o=r.firstChild,a=o&&Zge(o,t)
;if(a)for(let e of i)if(e.tag==a&&(!e.attrs||e.attrs(n||(n=Hge(o,t))))){
let t=r.lastChild,n=t.type.id==xge?t.from:r.to;if(n>o.to)return{parser:e.parser,
overlay:[{from:o.to,to:n}]}}}if(a&&s==mge){let n,r=e.node;if(n=r.firstChild){
let e=a[t.read(n.from,n.to)];if(e)for(let n of e){
if(n.tagName&&n.tagName!=Zge(r.parent,t))continue;let e=r.lastChild
;if(e.type.id==vge){let t=e.from+1,r=e.lastChild,o=e.to-(r&&r.isError?0:1)
;if(o>t)return{parser:n.parser,overlay:[{from:t,to:o}]}
}else if(e.type.id==bge)return{parser:n.parser,overlay:[{from:e.from,to:e.to}]}}
}}return null},(e,t,n,r)=>new yde(e,s,t,n,r);var s}
const Xge=[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],Yge=new Bme({
start:!1,shift:(e,t)=>5==t||6==t||315==t?e:316==t,strict:!1
}),Gge=new _me(((e,t)=>{let{next:n}=e
;(125==n||-1==n||t.context)&&e.acceptToken(313)}),{contextual:!0,fallback:!0
}),Kge=new _me(((e,t)=>{let n,{next:r}=e
;Xge.indexOf(r)>-1||(47!=r||47!=(n=e.peek(1))&&42!=n)&&(125==r||59==r||-1==r||t.context||e.acceptToken(312))
}),{contextual:!0}),Jge=new _me(((e,t)=>{let{next:n}=e;if(43==n||45==n){
if(e.advance(),n==e.next){e.advance();let n=!t.context&&t.canShift(1)
;e.acceptToken(n?1:2)}
}else 63==n&&46==e.peek(1)&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(3))
}),{contextual:!0});function eve(e,t){
return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}
const tve=new _me(((e,t)=>{if(60!=e.next||!t.dialectEnabled(0))return
;if(e.advance(),47==e.next)return;let n=0
;for(;Xge.indexOf(e.next)>-1;)e.advance(),n++;if(eve(e.next,!0)){
for(e.advance(),n++;eve(e.next,!1);)e.advance(),n++
;for(;Xge.indexOf(e.next)>-1;)e.advance(),n++;if(44==e.next)return
;for(let t=0;;t++){if(7==t){if(!eve(e.next,!0))return;break}
if(e.next!="extends".charCodeAt(t))break;e.advance(),n++}}e.acceptToken(4,-n)
})),nve=Rde({"get set async static":epe.modifier,
"for while do if else switch try catch finally return throw break continue default case":epe.controlKeyword,
"in of await yield void typeof delete instanceof":epe.operatorKeyword,
"let var const using function class extends":epe.definitionKeyword,
"import export from":epe.moduleKeyword,"with debugger as new":epe.keyword,
TemplateString:epe.special(epe.string),super:epe.atom,BooleanLiteral:epe.bool,
this:epe.self,null:epe.null,Star:epe.modifier,VariableName:epe.variableName,
"CallExpression/VariableName TaggedTemplateExpression/VariableName":epe.function(epe.variableName),
VariableDefinition:epe.definition(epe.variableName),Label:epe.labelName,
PropertyName:epe.propertyName,PrivatePropertyName:epe.special(epe.propertyName),
"CallExpression/MemberExpression/PropertyName":epe.function(epe.propertyName),
"FunctionDeclaration/VariableDefinition":epe.function(epe.definition(epe.variableName)),
"ClassDeclaration/VariableDefinition":epe.definition(epe.className),
PropertyDefinition:epe.definition(epe.propertyName),
PrivatePropertyDefinition:epe.definition(epe.special(epe.propertyName)),
UpdateOp:epe.updateOperator,"LineComment Hashbang":epe.lineComment,
BlockComment:epe.blockComment,Number:epe.number,String:epe.string,
Escape:epe.escape,ArithOp:epe.arithmeticOperator,LogicOp:epe.logicOperator,
BitOp:epe.bitwiseOperator,CompareOp:epe.compareOperator,RegExp:epe.regexp,
Equals:epe.definitionOperator,Arrow:epe.function(epe.punctuation),
": Spread":epe.punctuation,"( )":epe.paren,"[ ]":epe.squareBracket,
"{ }":epe.brace,"InterpolationStart InterpolationEnd":epe.special(epe.brace),
".":epe.derefOperator,", ;":epe.separator,"@":epe.meta,TypeName:epe.typeName,
TypeDefinition:epe.definition(epe.typeName),
"type enum interface implements namespace module declare":epe.definitionKeyword,
"abstract global Privacy readonly override":epe.modifier,
"is keyof unique infer":epe.operatorKeyword,
JSXAttributeValue:epe.attributeValue,JSXText:epe.content,
"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":epe.angleBracket,
"JSXIdentifier JSXNameSpacedName":epe.tagName,
"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":epe.attributeName,
"JSXBuiltin/JSXIdentifier":epe.standard(epe.tagName)}),rve={__proto__:null,
export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,
true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,
yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,
instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,
infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,
interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,
of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,
catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538
},ove={__proto__:null,async:123,get:125,set:127,declare:189,public:191,
private:191,protected:191,static:193,abstract:195,override:197,readonly:203,
accessor:205,new:395},ive={__proto__:null,"<":187},ave=Qme.deserialize({
version:14,
states:"$@QO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOO`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOO<nQWO'#HRO>VQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#D}OAUQWO'#EQO:VQ7[O'#EkOAaQWO'#EkOAlQpO'#FdOOQU'#Cg'#CgOOQ?Mp'#Dn'#DnOOQ?Mp'#Jq'#JqO%[Q^O'#JqOOQO'#Jt'#JtOOQO'#Id'#IdOBlQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Jx'#JxOChQ?NQO'#EdOCrQ`O'#ETOOQO'#Js'#JsODWQ`O'#JtOEeQ`O'#ETOCrQ`O'#EdPErO#@ItO'#CbPOOO)CDx)CDxOOOO'#I['#I[OE}O!bO,59UOOQ?Mr,59U,59UOOOO'#I]'#I]OF]O#tO,59UO%[Q^O'#D`OOOO'#I_'#I_OFkO!0LbO,59xOOQ?Mr,59x,59xOFyQ^O'#I`OG^QWO'#JoOI]QrO'#JoO+}Q^O'#JoOIdQWO,5:OOIzQWO'#EmOJXQWO'#KOOJdQWO'#J}OJdQWO'#J}OJlQWO,5;ZOJqQWO'#J|OOQ?Mv,5:Z,5:ZOJxQ^O,5:ZOLvQ?NdO,5:cOMgQWO,5:kONQQ?MxO'#J{ONXQWO'#JzO9WQWO'#JzONmQWO'#JzONuQWO,5;YONzQWO'#JzO!#PQrO'#JnOOQ?Mr'#Ci'#CiO%[Q^O'#EPO!#oQrO,5:pOOQQ'#Ju'#JuOOQO-E<f-E<fO9^QWO,5=[O!$VQWO,5=[O!$[Q^O,5;WO!&_Q7[O'#EhO!'xQWO,5;WO!'}Q^O'#DvO!(XQ`O,5;aO!(aQ`O,5;aO%[Q^O,5;aOOQU'#FS'#FSOOQU'#FU'#FUO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bOOQU'#FY'#FYO!(oQ^O,5;sOOQ?Mr,5;x,5;xOOQ?Mr,5;y,5;yOOQ?Mr,5;{,5;{O%[Q^O'#IlO!*rQ?MxO,5<gO%[Q^O,5;bO!&_Q7[O,5;bO!+aQ7[O,5;bO!-RQ7[O'#EZO%[Q^O,5;vOOQ?Mr,5;z,5;zO!-YQ&jO'#FiO!.VQ&jO'#KSO!-qQ&jO'#KSO!.^Q&jO'#KSOOQO'#KS'#KSO!.rQ&jO,5<ROOOS,5<_,5<_O!/TQ^O'#FuOOOS'#Ik'#IkO7VO,YO,5<PO!/[Q&jO'#FwOOQ?Mr,5<P,5<PO!/{Q!LQO'#CvOOQ?Mr'#Cz'#CzO!0`O!0LbO'#DOO!0|Q7[O,5<dO!1TQWO,5<fO!2pQ$ISO'#GVO!2}QWO'#GWO!3SQWO'#GWO!4rQ$ISO'#G[O!5nQ`O'#G`OOQO'#Gk'#GkO!+hQ7[O'#GjOOQO'#Gm'#GmO!+hQ7[O'#GlO!6aQ!LQO'#JgOOQ?Mr'#Jg'#JgO!6kQWO'#JfO!6yQWO'#JeO!7RQWO'#CuOOQ?Mr'#Cx'#CxO!7ZQWO'#CzOOQ?Mr'#DS'#DSOOQ?Mr'#DU'#DUO1SQWO'#DWO!+hQ7[O'#F}O!+hQ7[O'#GPO!7`QWO'#GRO!7eQWO'#GSO!3SQWO'#GYO!+hQ7[O'#G_O!7jQWO'#EnO!8XQWO,5<eOOQ?Mp'#Cr'#CrO!8aQWO'#EoO!9ZQ`O'#EpOOQ?Mp'#J|'#J|O!9bQ?MxO'#K]O9hQ?MxO,5=`O`Q^O,5>pOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-E<X-E<XO!;aQ?NdO,5:_O!9UQ`O,5:]O!=zQ?NdO,5:gO%[Q^O,5:gO!@bQ?NdO,5:iOOQO,5@v,5@vO!ARQ7[O,5=[O!AaQ?MxO'#JdO9RQWO'#JdO!ArQ?MxO,59ZO!A}Q`O,59ZO!BVQ7[O,59ZO:VQ7[O,59ZO!BbQWO,5;WO!BjQWO'#H^O!COQWO'#K`O%[Q^O,5;|O!9UQ`O,5<OO!CWQWO,5=wO!C]QWO,5=wO!CbQWO,5=wO9hQ?MxO,5=wO;wQWO,5=gOOQO'#Cv'#CvO!CpQ`O,5=dO!CxQ7[O,5=eO!DTQWO,5=gO!DYQpO,5=jO!DbQWO'#K[O>tQWO'#HTO9^QWO'#HVO!DgQWO'#HVO:VQ7[O'#HXO!DlQWO'#HXOOQU,5=m,5=mO!DqQWO'#HYO!ESQWO'#CoO!EXQWO,59PO!EcQWO,59PO!GhQ^O,59POOQU,59P,59PO!GxQ?MxO,59PO%[Q^O,59PO!JTQ^O'#HaOOQU'#Hb'#HbOOQU'#Hc'#HcO`Q^O,5=yO!JkQWO,5=yO`Q^O,5>PO`Q^O,5>RO!JpQWO,5>TO`Q^O,5>VO!JuQWO,5>YO!JzQ^O,5>`OOQU,5>f,5>fO%[Q^O,5>fO9hQ?MxO,5>hOOQU,5>j,5>jO# UQWO,5>jOOQU,5>l,5>lO# UQWO,5>lOOQU,5>n,5>nO# rQ`O'#D[O%[Q^O'#JqO# |Q`O'#JqO#!kQ`O'#DjO#!|Q`O'#DjO#%_Q^O'#DjO#%fQWO'#JpO#%nQWO,5:TO#%sQWO'#EqO#&RQWO'#KPO#&ZQWO,5;[O#&`Q`O'#DjO#&mQ`O'#ESOOQ?Mr,5:l,5:lO%[Q^O,5:lO#&tQWO,5:lO>tQWO,5;VO!A}Q`O,5;VO!BVQ7[O,5;VO:VQ7[O,5;VO#&|QWO,5@]O#'RQ(CYO,5:pOOQO-E<b-E<bO#(XQ?NQO,5;OOCrQ`O,5:oO#(cQ`O,5:oOCrQ`O,5;OO!ArQ?MxO,5:oOOQ?Mp'#Eg'#EgOOQO,5;O,5;OO%[Q^O,5;OO#(pQ?MxO,5;OO#({Q?MxO,5;OO!A}Q`O,5:oOOQO,5;U,5;UO#)ZQ?MxO,5;OPOOO'#IY'#IYP#)oO#@ItO,58|POOO,58|,58|OOOO-E<Y-E<YOOQ?Mr1G.p1G.pOOOO-E<Z-E<ZO#)zQpO,59zOOOO-E<]-E<]OOQ?Mr1G/d1G/dO#*PQrO,5>zO+}Q^O,5>zOOQO,5?Q,5?QO#*ZQ^O'#I`OOQO-E<^-E<^O#*hQWO,5@ZO#*pQrO,5@ZO#*wQWO,5@iOOQ?Mr1G/j1G/jO%[Q^O,5@jO#+PQWO'#IfOOQO-E<d-E<dO#*wQWO,5@iOOQ?Mp1G0u1G0uOOQ?Mv1G/u1G/uOOQ?Mv1G0V1G0VO%[Q^O,5@gO#+eQ?MxO,5@gO#+vQ?MxO,5@gO#+}QWO,5@fO9WQWO,5@fO#,VQWO,5@fO#,eQWO'#IiO#+}QWO,5@fOOQ?Mp1G0t1G0tO!(XQ`O,5:rO!(dQ`O,5:rOOQQ,5:t,5:tO#-VQYO,5:tO#-_Q7[O1G2vO9^QWO1G2vOOQ?Mr1G0r1G0rO#-mQ?NdO1G0rO#.rQ?NbO,5;SOOQ?Mr'#GU'#GUO#/`Q?NdO'#JgO!$[Q^O1G0rO#1hQrO'#JrO%[Q^O'#JrO#1rQWO,5:bOOQ?Mr'#D['#D[OOQ?Mr1G0{1G0{O%[Q^O1G0{OOQ?Mr1G1e1G1eO#1wQWO1G0{O#4]Q?NdO1G0|O#4dQ?NdO1G0|O#6zQ?NdO1G0|O#7RQ?NdO1G0|O#9iQ?NdO1G0|O#<PQ?NdO1G0|O#<WQ?NdO1G0|O#<_Q?NdO1G0|O#>uQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-E<j-E<jO#E}Q?NdO1G0|O#FzQ?NdO1G0|OOQ?Mr1G0|1G0|O#GzQ7[O'#JwO#HUQWO,5:uO#HZQ?NdO1G1bO#H}Q&jO,5<VO#IVQ&jO,5<WO#I_Q&jO'#FnO#IvQWO'#FmOOQO'#KT'#KTOOQO'#Ij'#IjO#I{Q&jO1G1mOOQ?Mr1G1m1G1mOOOS1G1x1G1xO#J^Q07bO'#JmO#JhQWO,5<aO!(oQ^O,5<aOOOS-E<i-E<iOOQ?Mr1G1k1G1kO#JmQ`O'#KSOOQ?Mr,5<c,5<cO#JuQ`O,5<cO!&_Q7[O'#DQOOOO'#I^'#I^O#JzO!0LbO,59jOOQ?Mr,59j,59jO%[Q^O1G2OO!7eQWO'#InO#KVQ7[O,5<xOOQ?Mr,5<u,5<uO!+hQ7[O'#IqO#KuQ7[O,5=UO!+hQ7[O'#IsO#LhQ7[O,5=WO!&_Q7[O,5=YOOQO1G2Q1G2QO#LrQpO'#CrO#MVQ$ISO'#EoO#NUQ`O'#G`O#NrQpO,5<qO#NyQWO'#KWO9WQWO'#KWO$ XQWO,5<sO!+hQ7[O,5<rO$ ^QWO'#GXO$ oQWO,5<rO$ tQpO'#GUO$!RQpO'#KXO$!]QWO'#KXO!&_Q7[O'#KXO$!bQWO,5<vO$!gQ`O'#GaO!5iQ`O'#GaO$!xQWO'#GcO$!}QWO'#GeO!3SQWO'#GhO$#SQ?MxO'#IpO$#_Q`O,5<zOOQ?Mv,5<z,5<zO$#fQ`O'#GaO$#tQ`O'#GbO$#|Q`O'#GbO$$RQ7[O,5=UO$$cQ7[O,5=WOOQ?Mr,5=Z,5=ZO!+hQ7[O,5@QO!+hQ7[O,5@QO$$sQWO'#IuO$%OQWO,5@PO$%WQWO,59aOOQ?Mr,59f,59fO$%zQ!LSO,59rOOQ?Mr'#Jk'#JkO$&mQ7[O,5<iO$'`Q7[O,5<kO@fQWO,5<mOOQ?Mr,5<n,5<nO$'jQWO,5<tO$'oQ7[O,5<yO$(PQWO'#JzO!$[Q^O1G2PO$(UQWO1G2PO9WQWO'#J}O9WQWO'#EqO%[Q^O'#EqO9WQWO'#IwO$(ZQ?MxO,5@wOOQU1G2z1G2zOOQU1G4[1G4[OOQ?Mr1G/y1G/yOOQ?Mr1G/w1G/wO$*]Q?NdO1G0ROOQU1G2v1G2vO!&_Q7[O1G2vO%[Q^O1G2vO#-bQWO1G2vO$,aQ7[O'#EhOOQ?Mp,5@O,5@OO$,kQ?MxO,5@OOOQU1G.u1G.uO!ArQ?MxO1G.uO!A}Q`O1G.uO!BVQ7[O1G.uO$,|QWO1G0rO$-RQWO'#CiO$-^QWO'#KaO$-fQWO,5=xO$-kQWO'#KaO$-pQWO'#KaO$.OQWO'#I}O$.^QWO,5@zO$.fQrO1G1hOOQ?Mr1G1j1G1jO9^QWO1G3cO@fQWO1G3cO$.mQWO1G3cO$.rQWO1G3cOOQU1G3c1G3cO!DTQWO1G3RO!&_Q7[O1G3OO$.wQWO1G3OOOQU1G3P1G3PO!&_Q7[O1G3PO$.|QWO1G3PO$/UQ`O'#G}OOQU1G3R1G3RO!5iQ`O'#IyO!DYQpO1G3UOOQU1G3U1G3UOOQU,5=o,5=oO$/^Q7[O,5=qO9^QWO,5=qO$!}QWO,5=sO9RQWO,5=sO!A}Q`O,5=sO!BVQ7[O,5=sO:VQ7[O,5=sO$/lQWO'#K_O$/wQWO,5=tOOQU1G.k1G.kO$/|Q?MxO1G.kO@fQWO1G.kO$0XQWO1G.kO9hQ?MxO1G.kO$2aQrO,5@|O$2nQWO,5@|O9WQWO,5@|O$2yQ^O,5={O$3QQWO,5={OOQU1G3e1G3eO`Q^O1G3eOOQU1G3k1G3kOOQU1G3m1G3mO>oQWO1G3oO$3VQ^O1G3qO$7ZQ^O'#HpOOQU1G3t1G3tO$7hQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$7pQ^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$;wQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$;|Q07bO,5:UOOQO,5;],5;]O$<WQ`O'#IaO$<nQWO,5@[OOQ?Mr1G/o1G/oO$<vQ`O'#IgO$=QQWO,5@kOOQ?Mp1G0v1G0vO#!|Q`O,5:UOOQO'#Ic'#IcO$=YQ`O,5:nOOQ?Mv,5:n,5:nO#&wQWO1G0WOOQ?Mr1G0W1G0WO%[Q^O1G0WOOQ?Mr1G0q1G0qO>tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-E<W-E<WPOOO1G.h1G.hOOOO1G/f1G/fO$>jQpO,5<gO$>rQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$>|QWO1G5uO$?UQWO1G6TO$?^QrO1G6UO9WQWO,5?QO$?hQ?NdO1G6RO%[Q^O1G6RO$?xQ?MxO1G6RO$@ZQWO1G6QO$@ZQWO1G6QO9WQWO1G6QO$@cQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$@wQWO,5?TO$(PQWO,5?TOOQO-E<g-E<gOOQQ1G0^1G0^OOQQ1G0`1G0`O#-YQWO1G0`OOQU7+(b7+(bO!&_Q7[O7+(bO%[Q^O7+(bO$AVQWO7+(bO$AbQ7[O7+(bO$ApQ?NdO,5=UO$CxQ?NdO,5=WO$FQQ?NdO,5=UO$H`Q?NdO,5=WO$JnQ?NdO,59rO$LsQ?NdO,5<iO$N{Q?NdO,5<kO%#TQ?NdO,5<yOOQ?Mr7+&^7+&^O%%cQ?NdO7+&^O%&VQ^O'#IbO%&dQWO,5@^O%&lQrO,5@^OOQ?Mr1G/|1G/|O%&vQWO7+&gOOQ?Mr7+&g7+&gO%&{Q07bO,5:cO%[Q^O7+&yO%'VQ07bO,5:_O%'dQ07bO,5:gO%'nQ07bO,5:iO%'xQ7[O'#IeO%(SQWO,5@cOOQ?Mr1G0a1G0aOOQO1G1q1G1qOOQO1G1r1G1rO%([QtO,5<YO!(oQ^O,5<XOOQO-E<h-E<hOOQ?Mr7+'X7+'XOOOS7+'d7+'dOOOS1G1{1G1{O%(gQWO1G1{OOQ?Mr1G1}1G1}O%(lQpO,59lOOOO-E<[-E<[OOQ?Mr1G/U1G/UO%(sQ?NdO7+'jOOQ?Mr,5?Y,5?YO%)gQpO,5?YOOQ?Mr1G2d1G2dP!&_Q7[O'#InPOQ?Mr-E<l-E<lO%*VQ7[O,5?]OOQ?Mr-E<o-E<oO%*xQ7[O,5?_OOQ?Mr-E<q-E<qO%+SQpO1G2tO%+ZQpO'#CrO%+qQ7[O'#J}O%+xQ^O'#EqOOQ?Mr1G2]1G2]O%,SQWO'#ImO%,hQWO,5@rO%,hQWO,5@rO%,pQWO,5@rO%,{QWO,5@rOOQO1G2_1G2_O%-ZQ7[O1G2^O!+hQ7[O1G2^O%-kQ$ISO'#IoO%-xQWO,5@sO!&_Q7[O,5@sO%.QQpO,5@sOOQ?Mr1G2b1G2bOOQ?Mp,5<{,5<{OOQ?Mp,5<|,5<|O$(PQWO,5<|OCcQWO,5<|O!A}Q`O,5<{OOQO'#Gd'#GdO%.[QWO,5<}OOQ?Mp,5=P,5=PO$(PQWO,5=SOOQO,5?[,5?[OOQO-E<n-E<nOOQ?Mv1G2f1G2fO!5iQ`O,5<{O%.dQWO,5<|O$!xQWO,5<}O%.oQ`O,5<|O!+hQ7[O'#IqO%/`Q7[O1G2pO!+hQ7[O'#IsO%0RQ7[O1G2rO%0]Q7[O1G5lO%0gQ7[O1G5lOOQO,5?a,5?aOOQO-E<s-E<sOOQO1G.{1G.{O!9UQ`O,59tO%[Q^O,59tOOQ?Mr,5<h,5<hO%0tQWO1G2XO!+hQ7[O1G2`O%0yQ?NdO7+'kOOQ?Mr7+'k7+'kO!$[Q^O7+'kO%1mQWO,5;]OOQ?Mp,5?c,5?cOOQ?Mp-E<u-E<uO%1rQpO'#KYO#&wQWO7+(bO4UQrO7+(bO$AYQWO7+(bO%1|Q?NbO'#CiO%2aQ?NbO,5=QO%3RQWO,5=QOOQ?Mp1G5j1G5jOOQU7+$a7+$aO!ArQ?MxO7+$aO!A}Q`O7+$aO!$[Q^O7+&^O%3WQWO'#I|O%3oQWO,5@{OOQO1G3d1G3dO9^QWO,5@{O%3oQWO,5@{O%3wQWO,5@{OOQO,5?i,5?iOOQO-E<{-E<{OOQ?Mr7+'S7+'SO%3|QWO7+(}O9hQ?MxO7+(}O9^QWO7+(}O@fQWO7+(}OOQU7+(m7+(mO%4RQ?NbO7+(jO!&_Q7[O7+(jO%4]QpO7+(kOOQU7+(k7+(kO!&_Q7[O7+(kO%4dQWO'#K^O%4oQWO,5=iOOQO,5?e,5?eOOQO-E<w-E<wOOQU7+(p7+(pO%6RQ`O'#HWOOQU1G3]1G3]O!&_Q7[O1G3]O%[Q^O1G3]O%6YQWO1G3]O%6eQ7[O1G3]O9hQ?MxO1G3_O$!}QWO1G3_O9RQWO1G3_O!A}Q`O1G3_O!BVQ7[O1G3_O%6sQWO'#I{O%7XQWO,5@yO%7aQ`O,5@yOOQ?Mp1G3`1G3`OOQU7+$V7+$VO@fQWO7+$VO9hQ?MxO7+$VO%7lQWO7+$VO%[Q^O1G6hO%[Q^O1G6iO%7qQ?MxO1G6hO%7{Q^O1G3gO%8SQWO1G3gO%8XQ^O1G3gOOQU7+)P7+)PO9hQ?MxO7+)ZO`Q^O7+)]OOQU'#Kd'#KdOOQU'#JO'#JOO%8`Q^O,5>[OOQU,5>[,5>[O%[Q^O'#HqO%8mQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%8rQ`O1G5wO%9WQ07bO1G0wO%9bQWO1G0wOOQO1G/p1G/pO%9mQ07bO1G/pO>tQWO1G/pO!(oQ^O'#DjOOQO,5>{,5>{OOQO-E<_-E<_OOQO,5?R,5?ROOQO-E<e-E<eO!A}Q`O1G/pOOQO-E<a-E<aOOQ?Mv1G0Y1G0YOOQ?Mr7+%r7+%rO#&wQWO7+%rOOQ?Mr7+&]7+&]O>tQWO7+&]O!A}Q`O7+&]OOQO7+%u7+%uO$>`Q?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%9wQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%:SQ?MxO7+&UO%:bQ?NdO7++mO%[Q^O7++mO%:rQWO7++lO%:rQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%:zQWO1G4oOOQQ7+%z7+%zO#&wQWO<<K|O4UQrO<<K|O%;YQWO<<K|OOQU<<K|<<K|O!&_Q7[O<<K|O%[Q^O<<K|O%;bQWO<<K|O%;mQ?NdO,5?]O%=uQ?NdO,5?_O%?}Q?NdO1G2^O%B]Q?NdO1G2pO%DeQ?NdO1G2rO%FmQrO,5>|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<<JR<<JRO%GPQ07bO1G0rO%IWQ07bO1G0|O%I_Q07bO1G0|O%K`Q07bO1G0|O%KgQ07bO1G0|O%MhQ07bO1G0|O& iQ07bO1G0|O& pQ07bO1G0|O& wQ07bO1G0|O&#xQ07bO1G0|O&$PQ07bO1G0|O&$WQ?NdO<<JeO&&OQ07bO1G0|O&&{Q07bO1G0|O&'{Q07bO'#JgO&*OQ07bO1G1bO&*]Q07bO1G0RO&*gQ7[O,5?POOQO-E<c-E<cO!(oQ^O'#FpOOQO'#KU'#KUOOQO1G1t1G1tO&*qQWO1G1sO&*vQ07bO,5?WOOOS7+'g7+'gOOOO1G/W1G/WOOQ?Mr1G4t1G4tO!+hQ7[O7+(`O&-WQrO'#CiO&-bQWO,5?XO9WQWO,5?XOOQO-E<k-E<kO&-pQWO1G6^O&-pQWO1G6^O&-xQWO1G6^O&.TQ7[O7+'xO&.eQpO,5?ZO&.oQWO,5?ZO!&_Q7[O,5?ZOOQO-E<m-E<mO&.tQpO1G6_O&/OQWO1G6_OOQ?Mp1G2h1G2hO$(PQWO1G2hOOQ?Mp1G2g1G2gO&/WQWO1G2iO!&_Q7[O1G2iOOQ?Mp1G2n1G2nO!A}Q`O1G2gOCcQWO1G2hO&/]QWO1G2iO&/eQWO1G2hO$!xQWO1G2iO&0XQ7[O,5?]OOQ?Mr-E<p-E<pO&0zQ7[O,5?_OOQ?Mr-E<r-E<rO!+hQ7[O7++WOOQ?Mr1G/`1G/`O&1UQWO1G/`OOQ?Mr7+'s7+'sO&1ZQ7[O7+'zO&1kQ?NdO<<KVOOQ?Mr<<KV<<KVO&2_QWO1G0wO!&_Q7[O'#IvO&2dQWO,5@tO&4fQrO<<K|O!&_Q7[O1G2lOOQU<<G{<<G{O!ArQ?MxO<<G{O&4mQ?NdO<<IxOOQ?Mr<<Ix<<IxOOQO,5?h,5?hO&5aQWO,5?hO&5fQWO,5?hOOQO-E<z-E<zO&5tQWO1G6gO&5tQWO1G6gO9^QWO1G6gO@fQWO<<LiOOQU<<Li<<LiO&5|QWO<<LiO9hQ?MxO<<LiOOQU<<LU<<LUO%4RQ?NbO<<LUOOQU<<LV<<LVO%4]QpO<<LVO&6RQ`O'#IxO&6^QWO,5@xO!(oQ^O,5@xOOQU1G3T1G3TO%+xQ^O'#JqOOQO'#Iz'#IzO9hQ?MxO'#IzO&6fQ`O,5=rOOQU,5=r,5=rO&6mQ`O'#EdO&7RQ`O'#GcO&7WQWO7+(wO&7]QWO7+(wOOQU7+(w7+(wO!&_Q7[O7+(wO%[Q^O7+(wO&7eQWO7+(wOOQU7+(y7+(yO9hQ?MxO7+(yO$!}QWO7+(yO9RQWO7+(yO!A}Q`O7+(yO&7pQWO,5?gOOQO-E<y-E<yOOQO'#HZ'#HZO&7{QWO1G6eO9hQ?MxO<<GqOOQU<<Gq<<GqO@fQWO<<GqO&8TQWO7+,SO&8YQWO7+,TO%[Q^O7+,SO%[Q^O7+,TOOQU7+)R7+)RO&8_QWO7+)RO&8dQ^O7+)RO&8kQWO7+)ROOQU<<Lu<<LuOOQU<<Lw<<LwOOQU-E<|-E<|OOQU1G3v1G3vO&8pQWO,5>]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<<I^<<I^OOQ?Mr<<Iw<<IwO>tQWO<<IwOOQO<<Ip<<IpO$>`Q?NdO<<IpO%[Q^O<<IpOOQO<<Ia<<IaO!ArQ?MxO<<IaO&9UQ?MxO<<IpO&9aQ?NdO<= XO&9qQWO<= WOOQO7+*Z7+*ZO9WQWO7+*ZOOQUANAhANAhO&9yQrOANAhO!&_Q7[OANAhO#&wQWOANAhO4UQrOANAhO&:QQWOANAhO%[Q^OANAhO&:YQ?NdO7+'xO&<hQ?NdO,5?]O&>pQ?NdO,5?_O&@xQ?NdO7+'zO&CWQrO1G4hO&CbQ07bO7+&^O&EcQ07bO,5=UO&GgQ07bO,5=WO&GwQ07bO,5=UO&HXQ07bO,5=WO&HiQ07bO,59rO&JlQ07bO,5<iO&LlQ07bO,5<kO&N}Q07bO,5<yO'!pQ07bO7+'jO'!}Q07bO7+'kO'#[QWO,5<[OOQO7+'_7+'_O'#aQ7[O<<KzOOQO1G4s1G4sO'#hQWO1G4sO'#sQWO1G4sO'$RQWO7++xO'$RQWO7++xO!&_Q7[O1G4uO'$ZQpO1G4uO'$eQWO7++yOOQ?Mp7+(S7+(SO'$mQWO7+(TO'$xQpO7+(TOOQ?Mp7+(R7+(RO$(PQWO7+(SO'%PQWO7+(TO!&_Q7[O7+(TOCcQWO7+(SO'%UQWO7+(TO'%^Q7[O<<NrOOQ?Mr7+$z7+$zO'%hQpO,5?bOOQO-E<t-E<tO'%rQ?NbO7+(WOOQUAN=gAN=gO9^QWO1G5SOOQO1G5S1G5SO'&SQWO1G5SO'&XQWO7+,RO'&XQWO7+,RO9hQ?MxOANBTO@fQWOANBTOOQUANBTANBTOOQUANApANApOOQUANAqANAqO'&aQWO,5?dOOQO-E<v-E<vO'&lQ07bO1G6dOOQO,5?f,5?fOOQO-E<x-E<xOOQU1G3^1G3^O%+xQ^O,5<}O'&vQWO,5<}OOQU<<Lc<<LcO!&_Q7[O<<LcO&7WQWO<<LcO'&{QWO<<LcO%[Q^O<<LcOOQU<<Le<<LeO9hQ?MxO<<LeO$!}QWO<<LeO9RQWO<<LeO''TQ`O1G5RO''`QWO7+,POOQUAN=]AN=]O9hQ?MxOAN=]OOQU<= n<= nOOQU<= o<= oO''hQWO<= nO''mQWO<= oOOQU<<Lm<<LmO''rQWO<<LmO''wQ^O<<LmOOQU1G3w1G3wO>tQWO7+)hO'(OQWO<<I}O'(ZQ07bO<<I}OOQO<<Hv<<HvOOQ?MrAN?cAN?cOOQOAN?[AN?[O$>`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<<Mu<<MuOOQUG27SG27SO!&_Q7[OG27SO#&wQWOG27SO'(eQrOG27SO4UQrOG27SO'(lQWOG27SO'(tQ07bO<<JeO')RQ07bO1G2^O'*tQ07bO,5?]O',tQ07bO,5?_O'.tQ07bO1G2pO'0tQ07bO1G2rO'2tQ07bO<<KVO'3RQ07bO<<IxOOQO1G1v1G1vO!+hQ7[OANAfOOQO7+*_7+*_O'3`QWO7+*_O'3kQWO<= dO'3sQpO7+*aOOQ?Mp<<Ko<<KoO$(PQWO<<KoOCcQWO<<KoO'3}QWO<<KoOOQ?Mp<<Kn<<KnO'4YQpO<<KoO$(PQWO<<KnO'4aQWO<<KoO!&_Q7[O<<KoOOQO7+*n7+*nO9^QWO7+*nO'4fQWO<= mOOQUG27oG27oO9hQ?MxOG27oO!(oQ^O1G5OO'4nQWO7+,OO&7WQWOANA}OOQUANA}ANA}O!&_Q7[OANA}O'4vQWOANA}OOQUANBPANBPO9hQ?MxOANBPO$!}QWOANBPOOQO'#H['#H[OOQO7+*m7+*mOOQUG22wG22wOOQUANEYANEYOOQUANEZANEZOOQUANBXANBXO'5OQWOANBXOOQU<<MS<<MSO!(oQ^OAN?iOOQOG24vG24vO$>`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'<pQ7[OG27QOOQO<<My<<MyOOQ?MpANAZANAZO$(PQWOANAZOCcQWOANAZO'=QQWOANAZOOQ?MpANAYANAYO'=]QpOANAZOOQO<<NY<<NYOOQULD-ZLD-ZO'=dQ07bO7+*jOOQUG27iG27iO&7WQWOG27iO!&_Q7[OG27iOOQUG27kG27kO9hQ?MxOG27kOOQUG27sG27sO'=nQ07bOG25TOOQOLD*bLD*bOOQU!$(!Y!$(!YO#&wQWO!$(!YO!&_Q7[O!$(!YO'=xQ?NdOG27QOOQ?MpG26uG26uO$(PQWOG26uOCcQWOG26uO'@WQWOG26uOOQULD-TLD-TO&7WQWOLD-TOOQULD-VLD-VOOQU!)9Et!)9EtO#&wQWO!)9EtOOQ?MpLD,aLD,aO$(PQWOLD,aOCcQWOLD,aOOQU!$(!o!$(!oOOQU!.K;`!.K;`O'@cQ07bOG27QOOQ?Mp!$( {!$( {O$(PQWO!$( {OOQ?Mp!)9Eg!)9EgO!(oQ^O'#DwO1PQWO'#EUO'BUQrO'#JmO'B]QMnO'#DsO'BdQ^O'#D{O'BkQrO'#CiO'ERQrO'#CiO!(oQ^O'#D}O'EcQ^O,5;WO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O'#IlO'GfQWO,5<gO!(oQ^O,5;bO'GnQ7[O,5;bO'IXQ7[O,5;bO!(oQ^O,5;vO!&_Q7[O'#GjO'GnQ7[O'#GjO!&_Q7[O'#GlO'GnQ7[O'#GlO1SQWO'#DWO1SQWO'#DWO!&_Q7[O'#F}O'GnQ7[O'#F}O!&_Q7[O'#GPO'GnQ7[O'#GPO!&_Q7[O'#G_O'GnQ7[O'#G_O!(oQ^O,5:gO'I`Q`O'#D[O!(oQ^O,5@jO'EcQ^O1G0rO'IjQ07bO'#CiO!(oQ^O1G2OO!&_Q7[O'#IqO'GnQ7[O'#IqO!&_Q7[O'#IsO'GnQ7[O'#IsO'ItQpO'#CrO!&_Q7[O,5<rO'GnQ7[O,5<rO'EcQ^O1G2PO!(oQ^O7+&yO!&_Q7[O1G2^O'GnQ7[O1G2^O!&_Q7[O'#IqO'GnQ7[O'#IqO!&_Q7[O'#IsO'GnQ7[O'#IsO!&_Q7[O1G2`O'GnQ7[O1G2`O'EcQ^O7+'kO'EcQ^O7+&^O!&_Q7[OANAfO'GnQ7[OANAfO'JXQWO'#ElO'J^QWO'#ElO'JfQWO'#F[O'JkQWO'#EvO'JpQWO'#KOO'J{QWO'#J|O'KWQWO,5;WO'K]Q7[O,5<dO'KdQWO'#GWO'KiQWO'#GWO'KnQWO,5<eO'KvQWO,5;WO'LOQ07bO1G1_O'LVQWO,5<rO'L[QWO,5<rO'LaQWO,5<tO'LfQWO,5<tO'LkQWO1G2PO'LpQWO1G0rO'LuQ7[O<<KzO'L|Q7[O<<KzO7eQ7[O'#FzO9RQWO'#FyOAaQWO'#EkO!(oQ^O,5;sO!3SQWO'#GWO!3SQWO'#GWO!3SQWO'#GYO!3SQWO'#GYO!+hQ7[O7+(`O!+hQ7[O7+(`O%+SQpO1G2tO%+SQpO1G2tO!&_Q7[O,5=YO!&_Q7[O,5=Y",
stateData:"'NQ~O'wOS'xOSTOS'yRQ~OPYOQYOSfOY!VOaqOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![XO!fuO!iZO!lYO!mYO!nYO!pvO!rwO!uxO!y]O#t!PO$V|O%e}O%g!QO%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO%v!UO&S!WO&Y!XO&[!YO&^!ZO&`![O&c!]O&i!^O&o!_O&q!`O&s!aO&u!bO&w!cO(OSO(QTO(TUO([VO(j[O(yiO~OWtO~P`OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa!wOp!nO!P!oO!_!yO!`!vO!a!vO!y;QO#Q!pO#R!pO#S!xO#T!pO#U!pO#X!zO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O'y!{O~OP]XR]X[]Xa]Xo]X}]X!P]X!Y]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X'u]X([]X(m]X(t]X(u]X~O!d%PX~P(qO_!}O(Q#PO(R!}O(S#PO~O_#QO(S#PO(T#PO(U#QO~Ou#SO!R#TO(]#TO(^#VO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O;UO(QTO(TUO([VO(j[O(yiO~O!X#ZO!Y#WO!V(cP!V(qP~P+}O!Z#cO~P`OPYOQYOSfOd!jOe!iOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(QTO(TUO([VO(j[O(yiO~Om#mO!X#iO!y]O#f#lO#g#iO(O;VO!h(nP~P.iO!i#oO(O#nO~O!u#sO!y]O%e#tO~O#h#uO~O!d#vO#h#uO~OP$[OR#zO[$cOo$aO}#yO!P#{O!Y$_O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~Oa(aX'u(aX's(aX!h(aX!V(aX![(aX%f(aX!d(aX~P1qO#P$dO#]$eO$P$eOP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#s(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX![(bX%f(bX~Oa(bX'u(bX's(bX!V(bX!h(bXs(bX!d(bX~P4UO#]$eO~O$[$hO$^$gO$e$mO~OSfO![$nO$h$oO$j$qO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{%[O!P${O![$|O!f%aO!i$xO#g%bO$V%_O$r%]O$t%^O$w%`O(O$sO(QTO(TUO([$uO(t$}O(u%POg(XP~O!i%cO~O!P%fO![%gO(O%eO~O!d%kO~Oa%lO'u%lO~O}%pO~P%[O(P!lO~P%[O%k%tO~P%[Oh%VO!i%cO(O%eO(P!lO~Oe%{O!i%cO(O%eO~O#s$RO~O}&QO![%}O!i&PO%g&TO(O%eO(P!lO(QTO(TUO`)SP~O!u#sO~O%p&VO!P)OX![)OX(O)OX~O(O&WO~O!r&]O#t!PO%g!QO%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO~Od&bOe&aO!u&_O%e&`O%x&^O~P;|Od&eOeyO![&dO!r&]O!uxO!y]O#t!PO%e}O%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO%v!UO~Ob&hO#]&kO%g&fO(P!lO~P=RO!i&lO!r&pO~O!i#oO~O![XO~Oa%lO't&xO'u%lO~Oa%lO't&{O'u%lO~Oa%lO't&}O'u%lO~O's]X!V]Xs]X!h]X&W]X![]X%f]X!d]X~P(qO!_'[O!`'TO!a'TO(P!lO(QTO(TUO~Op'RO!P'QO!X'UO(`'PO!Z(dP!Z(sP~P@YOk'_O![']O(O%eO~Oe'dO!i%cO(O%eO~O}&QO!i&PO~Op!nO!P!oO!y;QO#Q!pO#R!pO#T!pO#U!pO(P!lO(QTO(TUO(`!mO(j!sO~O!_'jO!`'iO!a'iO#S!pO#X'kO#Y'kO~PAtOa%lOh%VO!d#vO!i%cO'u%lO(m'mO~O!m'qO#]'oO~PCSOp!nO!P!oO(QTO(TUO(`!mO(j!sO~O![XOp(hX!P(hX!_(hX!`(hX!a(hX!y(hX#Q(hX#R(hX#S(hX#T(hX#U(hX#X(hX#Y(hX(P(hX(Q(hX(T(hX(`(hX(j(hX~O!`'iO!a'iO(P!lO~PCrO'z'uO'{'uO'|'wO~O_!}O(Q'yO(R!}O(S'yO~O_#QO(S'yO(T'yO(U#QO~Ou#SO!R#TO(]#TO(^'}O~O!X(PO!V'SX!V'YX!Y'SX!Y'YX~P+}O!Y(RO!V(cX~OP$[OR#zO[$cOo$aO}#yO!P#{O!Y(RO!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~O!V(cX~PGfO!V(WO~O!V(pX!Y(pX!d(pX!h(pX(m(pX~O#](pX#h#aX!Z(pX~PIiO#](XO!V(rX!Y(rX~O!Y(YO!V(qX~O!V(]O~O#]$eO~PIiO!Z(^O~P`OR#zO}#yO!P#{O!i#xO([VOP!ka[!kao!ka!Y!ka!m!ka#O!ka#k!ka#l!ka#m!ka#n!ka#o!ka#p!ka#q!ka#r!ka#s!ka#u!ka#w!ka#y!ka#z!ka(m!ka(t!ka(u!ka~Oa!ka'u!ka's!ka!V!ka!h!kas!ka![!ka%f!ka!d!ka~PKPO!h(_O~O!d#vO#](`O(m'mO!Y(oXa(oX'u(oX~O!h(oX~PMlO!P%fO![%gO!y]O#f(eO#g(dO(O%eO~O!Y(fO!h(nX~O!h(hO~O!P%fO![%gO#g(dO(O%eO~OP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#s(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX~O!d#vO!h(bX~P! YOR(jO}(iO!i#xO#P$dO!y!xa!P!xa~O!u!xa%e!xa![!xa#f!xa#g!xa(O!xa~P!#ZO!u(nO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![XO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~O#h(tO~O!X(vO!h(fP~P%[O(`(xO(j[O~O!P(zO!i#xO(`(xO(j[O~OP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![!eO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(O)XO(QTO(TUO([VO(j[O(y<xO~O!Y$_Oa$oa'u$oa's$oa!h$oa!V$oa![$oa%f$oa!d$oa~O#t)`O~P!&_Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{%[O!P${O![$|O!f%aO!i$xO#g%bO$V%_O$r%]O$t%^O$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~Og(kP~P!+hO})eO!d)dO![$]X$Y$]X$[$]X$^$]X$e$]X~O!d)dO![(vX$Y(vX$[(vX$^(vX$e(vX~O})eO~P!-qO})eO![(vX$Y(vX$[(vX$^(vX$e(vX~O![)gO$Y)kO$[)fO$^)fO$e)lO~O!X)oO~P!(oO$[$hO$^$gO$e)sO~Ok$xX}$xX!P$xX#P$xX(t$xX(u$xX~OgjXg$xXkjX!YjX#]jX~P!/gOu)uO(])vO(^)xO~Ok*RO})zO!P){O(t$}O(u%PO~Og)yO~P!0kOg*SO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P*UO![*VO!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(QTO(TUO([$uO(t$}O(u%PO~O!X*YO(O*TO!h(zP~P!1YO#h*[O~O!i*]O~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(O*_O(QTO(TUO([$uO(t$}O(u%PO~O!X*bO!V({P~P!3XOo*nO!P*fO!_*lO!`*eO!a*eO!i*]O#X*mO%]*hO(P!lO(`!mO~O!Z*kO~P!4|O#P$dOk(ZX}(ZX!P(ZX(t(ZX(u(ZX!Y(ZX#](ZX~Og(ZX#}(ZX~P!5uOk*sO#]*rOg(YX!Y(YX~O!Y*tOg(XX~O(O&WOg(XP~Op*wO~O!i*|O~O(O(rO~Om+QO!P%fO!X#iO![%gO!y]O#f#lO#g#iO(O%eO!h(nP~O!d#vO#h+RO~O!P%fO!X+TO!Y(YO![%gO(O%eO!V(qP~Op'XO!P+VO!X+UO(QTO(TUO(`(xO~O!Z(sP~P!8uO!Y+WOa)PX'u)PX~OP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~Oa!ga!Y!ga'u!ga's!ga!V!ga!h!gas!ga![!ga%f!ga!d!ga~P!9mOR#zO}#yO!P#{O!i#xO([VOP!oa[!oao!oa!Y!oa!m!oa#O!oa#k!oa#l!oa#m!oa#n!oa#o!oa#p!oa#q!oa#r!oa#s!oa#u!oa#w!oa#y!oa#z!oa(m!oa(t!oa(u!oa~Oa!oa'u!oa's!oa!V!oa!h!oas!oa![!oa%f!oa!d!oa~P!<TOR#zO}#yO!P#{O!i#xO([VOP!qa[!qao!qa!Y!qa!m!qa#O!qa#k!qa#l!qa#m!qa#n!qa#o!qa#p!qa#q!qa#r!qa#s!qa#u!qa#w!qa#y!qa#z!qa(m!qa(t!qa(u!qa~Oa!qa'u!qa's!qa!V!qa!h!qas!qa![!qa%f!qa!d!qa~P!>kOh%VOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%VO!i%cO~Oh%VO!i%cO(O%eO~O!d#vO#h(tO~Ob+nO%g+oO(O+kO(QTO(TUO!Z)TP~O!Y+pO`)SX~O[+tO~O`+uO~O![%}O(O%eO(P!lO`)SP~Oh%VO#]+zO~Oh%VOk+}O![$|O~O![,PO~O},RO![XO~O%k%tO~O!u,WO~Oe,]O~Ob,^O(O#nO(QTO(TUO!Z)RP~Oe%{O~O%g!QO(O&WO~P=RO[,cO`,bO~OPYOQYOSfOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO!fuO!iZO!lYO!mYO!nYO!pvO!uxO!y]O%e}O(QTO(TUO([VO(j[O(yiO~O![!eO!r!gO$V!kO(O!dO~P!EkO`,bOa%lO'u%lO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa,hO!rwO#t!OO%i!OO%j!OO%k!OO~P!HTO!i&lO~O&Y,nO~O![,pO~O&k,rO&m,sOP&haQ&haS&haY&haa&had&hae&ham&hao&hap&haq&haw&hay&ha{&ha!P&ha!T&ha!U&ha![&ha!f&ha!i&ha!l&ha!m&ha!n&ha!p&ha!r&ha!u&ha!y&ha#t&ha$V&ha%e&ha%g&ha%i&ha%j&ha%k&ha%n&ha%p&ha%s&ha%t&ha%v&ha&S&ha&Y&ha&[&ha&^&ha&`&ha&c&ha&i&ha&o&ha&q&ha&s&ha&u&ha&w&ha's&ha(O&ha(Q&ha(T&ha([&ha(j&ha(y&ha!Z&ha&a&hab&ha&f&ha~O(O,xO~Oh!bX!Y!OX!Z!OX!d!OX!d!bX!i!bX#]!OX~O!Y!bX!Z!bX~P# ZO!d,}O#],|Oh(eX!Y#eX!Y(eX!Z#eX!Z(eX!d(eX!i(eX~Oh%VO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![!eO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(QTO(TUO([VO(j[O(y<xO~O(O;zO~P##_O!Y-TO!Z(dX~O!Z-VO~O!d,}O#],|O!Y#eX!Z#eX~O!Y-WO!Z(sX~O!Z-YO~O!`-ZO!a-ZO(P!lO~P#!|O!Z-^O~P'_Ok-aO![']O~O!V-fO~Op!xa!_!xa!`!xa!a!xa#Q!xa#R!xa#S!xa#T!xa#U!xa#X!xa#Y!xa(P!xa(Q!xa(T!xa(`!xa(j!xa~P!#ZO!m-kO#]-iO~PCSO!`-mO!a-mO(P!lO~PCrOa%lO#]-iO'u%lO~Oa%lO!d#vO#]-iO'u%lO~Oa%lO!d#vO!m-kO#]-iO'u%lO(m'mO~O'z'uO'{'uO'|-rO~Os-sO~O!V'Sa!Y'Sa~P!9mO!X-wO!V'SX!Y'SX~P%[O!Y(RO!V(ca~O!V(ca~PGfO!Y(YO!V(qa~O!P%fO!X-{O![%gO(O%eO!V'YX!Y'YX~O#]-}O!Y(oa!h(oaa(oa'u(oa~O!d#vO~P#+eO!Y(fO!h(na~O!P%fO![%gO#g.RO(O%eO~Om.WO!P%fO!X.TO![%gO!y]O#f.VO#g.TO(O%eO!Y']X!h']X~OR.[O!i#xO~Oh%VOk._O![']O%f.^O~Oa#`i!Y#`i'u#`i's#`i!V#`i!h#`is#`i![#`i%f#`i!d#`i~P!9mOk=UO})zO!P){O(t$}O(u%PO~O#h#[aa#[a#]#[a'u#[a!Y#[a!h#[a![#[a!V#[a~P#.aO#h(ZXP(ZXR(ZX[(ZXa(ZXo(ZX!i(ZX!m(ZX#O(ZX#k(ZX#l(ZX#m(ZX#n(ZX#o(ZX#p(ZX#q(ZX#r(ZX#s(ZX#u(ZX#w(ZX#y(ZX#z(ZX'u(ZX([(ZX(m(ZX!h(ZX!V(ZX's(ZXs(ZX![(ZX%f(ZX!d(ZX~P!5uO!Y.lO!h(fX~P!9mO!h.oO~O!V.qO~OP$[OR#zO}#yO!P#{O!i#xO!m$[O([VO[#jia#jio#ji!Y#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#k#ji~P#1|O#k$OO~P#1|OP$[OR#zOo$aO}#yO!P#{O!i#xO!m$[O#k$OO#l$PO#m$PO#n$PO([VO[#jia#ji!Y#ji#O#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#o#ji~P#4kO#o$QO~P#4kOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO([VOa#ji!Y#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#u#ji~P#7YOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO([VO(u#}Oa#ji!Y#ji#y#ji#z#ji'u#ji(m#ji(t#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#w$UO~P#9pO#w#ji~P#9pO#u$SO~P#7YOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO([VO(t#|O(u#}Oa#ji!Y#ji#z#ji'u#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#y#ji~P#<fO#y$WO~P#<fOP]XR]X[]Xo]X}]X!P]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X!Y]X!Z]X~O#}]X~P#?TOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O#w;`O#y;bO#z;cO([VO(m$YO(t#|O(u#}O~O#}.sO~P#AbO#P$dO#];iO$P;iO#}(bX!Z(bX~P! YOa'`a!Y'`a'u'`a's'`a!h'`a!V'`as'`a!['`a%f'`a!d'`a~P!9mO[#jia#jio#ji!Y#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~OP$[OR#zO}#yO!P#{O!i#xO!m$[O#k$OO#l$PO#m$PO#n$PO([VO(t#ji(u#ji~P#DdOk=UO})zO!P){O(t$}O(u%POP#jiR#ji!i#ji!m#ji#k#ji#l#ji#m#ji#n#ji([#ji~P#DdO!Y.wOg(kX~P!0kOg.yO~Oa$Oi!Y$Oi'u$Oi's$Oi!V$Oi!h$Ois$Oi![$Oi%f$Oi!d$Oi~P!9mO$[.zO$^.zO~O$[.{O$^.{O~O!d)dO#].|O![$bX$Y$bX$[$bX$^$bX$e$bX~O!X.}O~O![)gO$Y/PO$[)fO$^)fO$e/QO~O!Y;dO!Z(aX~P#AbO!Z/RO~O!d)dO$e(vX~O$e/TO~Ou)uO(])vO(^/WO~O!V/[O~P!&_O(t$}Ok%^a}%^a!P%^a(u%^a!Y%^a#]%^a~Og%^a#}%^a~P#K^O(u%POk%`a}%`a!P%`a(t%`a!Y%`a#]%`a~Og%`a#}%`a~P#LPO!YfX!dfX!hfX!h$xX(mfX~P!/gO!X/eO!Y(YO(O/dO!V(qP!V({P~P!1YOo*nO!_*lO!`*eO!a*eO!i*]O#X*mO%]*hO(P!lO~Op'XO!P/fO!X+UO!Z*kO(QTO(TUO(`;wO!Z(sP~P#MjO!h/gO~P#.aO!Y/hO!d#vO(m'mO!h(zX~O!h/mO~O!P%fO!X*YO![%gO(O%eO!h(zP~O#h/oO~O!V$xX!Y$xX!d%PX~P!/gO!Y/pO!V({X~P#.aO!d/rO~O!V/tO~Oh%VOo/xO!d#vO!i%cO(m'mO~O(O/zO~O!d+cO~Oa%lO!Y0OO'u%lO~O!Z0QO~P!4|O!`0RO!a0RO(P!lO(`!mO~O!P0TO(`!mO~O#X0UO~Og%^a!Y%^a#]%^a#}%^a~P!0kOg%`a!Y%`a#]%`a#}%`a~P!0kO(O&WOg'iX!Y'iX~O!Y*tOg(Xa~Og0_O~OR0`O}0`O!P0aO#P$dOkza(tza(uza!Yza#]za~Ogza#}za~P$%]O})zO!P){Ok$qa(t$qa(u$qa!Y$qa#]$qa~Og$qa#}$qa~P$&UO})zO!P){Ok$sa(t$sa(u$sa!Y$sa#]$sa~Og$sa#}$sa~P$&wO#h0dO~Og%Ra!Y%Ra#]%Ra#}%Ra~P!0kO!d#vO~O#h0gO~O!Y+WOa)Pa'u)Pa~OR#zO}#yO!P#{O!i#xO([VOP!oi[!oio!oi!Y!oi!m!oi#O!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#q!oi#r!oi#s!oi#u!oi#w!oi#y!oi#z!oi(m!oi(t!oi(u!oi~Oa!oi'u!oi's!oi!V!oi!h!ois!oi![!oi%f!oi!d!oi~P$(fOh%VOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(QTO(TUO([$uO(t$}O(u%PO~Om0pO(O0oO~P$*|O!d+cOa(Wa![(Wa'u(Wa!Y(Wa~O#h0vO~O[]X!YfX!ZfX~O!Y0wO!Z)TX~O!Z0yO~O[0zO~Ob0|O(O+kO(QTO(TUO~O![%}O(O%eO`'qX!Y'qX~O!Y+pO`)Sa~O!h1PO~P!9mO[1SO~O`1TO~O#]1WO~Ok1ZO![$|O~O(`(xO!Z)QP~Oh%VOk1dO![1aO%f1cO~O[1nO!Y1lO!Z)RX~O!Z1oO~O`1qOa%lO'u%lO~O(O#nO(QTO(TUO~O#P$dO#]$eO$P$eOP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX~O#s1tO&W1uOa(bX~P$0dO#]$eO#s1tO&W1uO~Oa1wO~P%[Oa1yO~O&a1|OP&_iQ&_iS&_iY&_ia&_id&_ie&_im&_io&_ip&_iq&_iw&_iy&_i{&_i!P&_i!T&_i!U&_i![&_i!f&_i!i&_i!l&_i!m&_i!n&_i!p&_i!r&_i!u&_i!y&_i#t&_i$V&_i%e&_i%g&_i%i&_i%j&_i%k&_i%n&_i%p&_i%s&_i%t&_i%v&_i&S&_i&Y&_i&[&_i&^&_i&`&_i&c&_i&i&_i&o&_i&q&_i&s&_i&u&_i&w&_i's&_i(O&_i(Q&_i(T&_i([&_i(j&_i(y&_i!Z&_ib&_i&f&_i~Ob2SO!Z2QO&f2RO~P`O![XO!i2UO~O&m,sOP&hiQ&hiS&hiY&hia&hid&hie&him&hio&hip&hiq&hiw&hiy&hi{&hi!P&hi!T&hi!U&hi![&hi!f&hi!i&hi!l&hi!m&hi!n&hi!p&hi!r&hi!u&hi!y&hi#t&hi$V&hi%e&hi%g&hi%i&hi%j&hi%k&hi%n&hi%p&hi%s&hi%t&hi%v&hi&S&hi&Y&hi&[&hi&^&hi&`&hi&c&hi&i&hi&o&hi&q&hi&s&hi&u&hi&w&hi's&hi(O&hi(Q&hi(T&hi([&hi(j&hi(y&hi!Z&hi&a&hib&hi&f&hi~O!V2[O~O!Y!^a!Z!^a~P#AbOp!nO!P!oO!X2bO(`!mO!Y'TX!Z'TX~P@YO!Y-TO!Z(da~O!Y'ZX!Z'ZX~P!8uO!Y-WO!Z(sa~O!Z2iO~P'_Oa%lO#]2rO'u%lO~Oa%lO!d#vO#]2rO'u%lO~Oa%lO!d#vO!m2vO#]2rO'u%lO(m'mO~Oa%lO'u%lO~P!9mO!Y$_Os$oa~O!V'Si!Y'Si~P!9mO!Y(RO!V(ci~O!Y(YO!V(qi~O!V(ri!Y(ri~P!9mO!Y(oi!h(oia(oi'u(oi~P!9mO#]2xO!Y(oi!h(oia(oi'u(oi~O!Y(fO!h(ni~O!P%fO![%gO!y]O#f2}O#g2|O(O%eO~O!P%fO![%gO#g2|O(O%eO~Ok3UO![']O%f3TO~Oh%VOk3UO![']O%f3TO~O#h%^aP%^aR%^a[%^aa%^ao%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a'u%^a([%^a(m%^a!h%^a!V%^a's%^as%^a![%^a%f%^a!d%^a~P#K^O#h%`aP%`aR%`a[%`aa%`ao%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a'u%`a([%`a(m%`a!h%`a!V%`a's%`as%`a![%`a%f%`a!d%`a~P#LPO#h%^aP%^aR%^a[%^aa%^ao%^a!Y%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a'u%^a([%^a(m%^a!h%^a!V%^a's%^a#]%^as%^a![%^a%f%^a!d%^a~P#.aO#h%`aP%`aR%`a[%`aa%`ao%`a!Y%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a'u%`a([%`a(m%`a!h%`a!V%`a's%`a#]%`as%`a![%`a%f%`a!d%`a~P#.aO#hzaPza[zaazaoza!iza!mza#Oza#kza#lza#mza#nza#oza#pza#qza#rza#sza#uza#wza#yza#zza'uza([za(mza!hza!Vza'szasza![za%fza!dza~P$%]O#h$qaP$qaR$qa[$qaa$qao$qa!i$qa!m$qa#O$qa#k$qa#l$qa#m$qa#n$qa#o$qa#p$qa#q$qa#r$qa#s$qa#u$qa#w$qa#y$qa#z$qa'u$qa([$qa(m$qa!h$qa!V$qa's$qas$qa![$qa%f$qa!d$qa~P$&UO#h$saP$saR$sa[$saa$sao$sa!i$sa!m$sa#O$sa#k$sa#l$sa#m$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#u$sa#w$sa#y$sa#z$sa'u$sa([$sa(m$sa!h$sa!V$sa's$sas$sa![$sa%f$sa!d$sa~P$&wO#h%RaP%RaR%Ra[%Raa%Rao%Ra!Y%Ra!i%Ra!m%Ra#O%Ra#k%Ra#l%Ra#m%Ra#n%Ra#o%Ra#p%Ra#q%Ra#r%Ra#s%Ra#u%Ra#w%Ra#y%Ra#z%Ra'u%Ra([%Ra(m%Ra!h%Ra!V%Ra's%Ra#]%Ras%Ra![%Ra%f%Ra!d%Ra~P#.aOa#`q!Y#`q'u#`q's#`q!V#`q!h#`qs#`q![#`q%f#`q!d#`q~P!9mO!X3^O!Y'UX!h'UX~P%[O!Y.lO!h(fa~O!Y.lO!h(fa~P!9mO!V3aO~O#}!ka!Z!ka~PKPO#}!ga!Y!ga!Z!ga~P#AbO#}!oa!Z!oa~P!<TO#}!qa!Z!qa~P!>kOg'XX!Y'XX~P!+hO!Y.wOg(ka~OSfO![3uO$c3vO~O!Z3zO~Os3{O~P#.aOa$lq!Y$lq'u$lq's$lq!V$lq!h$lqs$lq![$lq%f$lq!d$lq~P!9mO!V3|O~P#.aO})zO!P){O(u%POk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%)nO})zO!P){Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*aO(m$YO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(O<QO~P!1YOmkO(O4OO~P.iO!P%fO!X4QO![%gO(O%eO!Y'aX!h'aX~O!Y/hO!h(za~O!Y/hO!d#vO!h(za~O!Y/hO!d#vO(m'mO!h(za~Og$zi!Y$zi#]$zi#}$zi~P!0kO!X4YO!V'cX!Y'cX~P!3XO!Y/pO!V({a~O!Y/pO!V({a~P#.aO!d#vO#s4bO~Oo4eO!d#vO(m'mO~O!P4hO(`!mO~O(t$}Ok%^i}%^i!P%^i(u%^i!Y%^i#]%^i~Og%^i#}%^i~P%.wO(u%POk%`i}%`i!P%`i(t%`i!Y%`i#]%`i~Og%`i#}%`i~P%/jOg(Yi!Y(Yi~P!0kO#]4mOg(Yi!Y(Yi~P!0kO!h4pO~Oa$mq!Y$mq'u$mq's$mq!V$mq!h$mqs$mq![$mq%f$mq!d$mq~P!9mO!V4tO~O!Y4uO![(|X~P#.aOa$xX![$xX%Z]X'u$xX!Y$xX~P!/gO%Z4xOalXklX}lX!PlX![lX'ulX(tlX(ulX!YlX~O%Z4xO~Ob5OO%g5PO(O+kO(QTO(TUO!Y'pX!Z'pX~O!Y0wO!Z)Ta~O[5TO~O`5UO~Oa%lO'u%lO~P#.aO![$|O~P#.aO!Y5^O#]5`O!Z)QX~O!Z5aO~Oo5hOp!nO!P5bO!_!yO!`!vO!a!vO!y;QO#Q!pO#R!pO#S!pO#T!pO#U!pO#X5gO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O!Z5fO~P%4tOk5mO![1aO%f5lO~Oh%VOk5mO![1aO%f5lO~Ob5tO(O#nO(QTO(TUO!Y'oX!Z'oX~O!Y1lO!Z)Ra~O(QTO(TUO(`5vO~O`5zO~O#s5}O&W6OO~PMlO!h6PO~P%[Oa6RO~Oa6RO~P%[Ob2SO!Z6WO&f2RO~P`O!d6YO~O!d6[Oh(ei!Y(ei!Z(ei!d(ei!i(ei~O!Y#ei!Z#ei~P#AbO#]6]O!Y#ei!Z#ei~O!Y!^i!Z!^i~P#AbOa%lO#]6fO'u%lO~Oa%lO!d#vO#]6fO'u%lO~O!Y(oq!h(oqa(oq'u(oq~P!9mO!Y(fO!h(nq~O!P%fO![%gO#g6mO(O%eO~O![']O%f6pO~Ok6tO![']O%f6pO~O#h'eaP'eaR'ea['eaa'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea'u'ea(['ea(m'ea!h'ea!V'ea's'eas'ea!['ea%f'ea!d'ea~P%)nO#h'gaP'gaR'ga['gaa'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga'u'ga(['ga(m'ga!h'ga!V'ga's'gas'ga!['ga%f'ga!d'ga~P%*aO#h$ziP$ziR$zi[$zia$zio$zi!Y$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi'u$zi([$zi(m$zi!h$zi!V$zi's$zi#]$zis$zi![$zi%f$zi!d$zi~P#.aO#h%^iP%^iR%^i[%^ia%^io%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i'u%^i([%^i(m%^i!h%^i!V%^i's%^is%^i![%^i%f%^i!d%^i~P%.wO#h%`iP%`iR%`i[%`ia%`io%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i'u%`i([%`i(m%`i!h%`i!V%`i's%`is%`i![%`i%f%`i!d%`i~P%/jO!Y'Ua!h'Ua~P!9mO!Y.lO!h(fi~O#}#`i!Y#`i!Z#`i~P#AbOP$[OR#zO}#yO!P#{O!i#xO!m$[O([VO[#jio#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#k#ji~P%G^O#k;YO~P%G^OP$[OR#zOo;fO}#yO!P#{O!i#xO!m$[O#k;YO#l;ZO#m;ZO#n;ZO([VO[#ji#O#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#o#ji~P%IfO#o;[O~P%IfOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O([VO#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#u#ji~P%KnOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O([VO(u#}O#y#ji#z#ji#}#ji(m#ji(t#ji!Y#ji!Z#ji~O#w;`O~P%MoO#w#ji~P%MoO#u;^O~P%KnOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O#w;`O([VO(t#|O(u#}O#z#ji#}#ji(m#ji!Y#ji!Z#ji~O#y#ji~P&!OO#y;bO~P&!OOa#{y!Y#{y'u#{y's#{y!V#{y!h#{ys#{y![#{y%f#{y!d#{y~P!9mO[#jio#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji!Y#ji!Z#ji~OP$[OR#zO}#yO!P#{O!i#xO!m$[O#k;YO#l;ZO#m;ZO#n;ZO([VO(t#ji(u#ji~P&$zOk=VO})zO!P){O(t$}O(u%POP#jiR#ji!i#ji!m#ji#k#ji#l#ji#m#ji#n#ji([#ji~P&$zO#P$dOP(ZXR(ZX[(ZXk(ZXo(ZX}(ZX!P(ZX!i(ZX!m(ZX#O(ZX#k(ZX#l(ZX#m(ZX#n(ZX#o(ZX#p(ZX#q(ZX#r(ZX#s(ZX#u(ZX#w(ZX#y(ZX#z(ZX#}(ZX([(ZX(m(ZX(t(ZX(u(ZX!Y(ZX!Z(ZX~O#}$Oi!Y$Oi!Z$Oi~P#AbO#}!oi!Z!oi~P$(fOg'Xa!Y'Xa~P!0kO!Z7WO~O!Y'`a!Z'`a~P#AbOP]XR]X[]Xo]X}]X!P]X!V]X!Y]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X~O!d%WX#s%WX~P&+QO!d#vO(m'mO!Y'aa!h'aa~O!Y/hO!h(zi~O!Y/hO!d#vO!h(zi~Og$zq!Y$zq#]$zq#}$zq~P!0kO!V'ca!Y'ca~P#.aO!d7_O~O!Y/pO!V({i~P#.aO!Y/pO!V({i~O!V7cO~O!d#vO#s7hO~Oo7iO!d#vO(m'mO~O})zO!P){O(u%POk'fa(t'fa!Y'fa#]'fa~Og'fa#}'fa~P&/pO})zO!P){Ok'ha(t'ha(u'ha!Y'ha#]'ha~Og'ha#}'ha~P&0cO!V7lO~Og$|q!Y$|q#]$|q#}$|q~P!0kOa$my!Y$my'u$my's$my!V$my!h$mys$my![$my%f$my!d$my~P!9mO!d6[O~O!Y4uO![(|a~O![']OP$SaR$Sa[$Sao$Sa}$Sa!P$Sa!Y$Sa!i$Sa!m$Sa#O$Sa#k$Sa#l$Sa#m$Sa#n$Sa#o$Sa#p$Sa#q$Sa#r$Sa#s$Sa#u$Sa#w$Sa#y$Sa#z$Sa([$Sa(m$Sa(t$Sa(u$Sa~O%f6pO~P&2lOa#`y!Y#`y'u#`y's#`y!V#`y!h#`ys#`y![#`y%f#`y!d#`y~P!9mO[7qO~Ob7sO(O+kO(QTO(TUO~O!Y0wO!Z)Ti~O`7wO~O(`(xO!Y'lX!Z'lX~O!Y5^O!Z)Qa~O!Z8QO~P%4tOp!nO!P8RO(QTO(TUO(`!mO(j!sO~O#X8SO~O![1aO~O![1aO%f8UO~Ok8XO![1aO%f8UO~O[8^O!Y'oa!Z'oa~O!Y1lO!Z)Ri~O!h8bO~O!h8cO~O!h8fO~O!h8fO~P%[Oa8hO~O!d8iO~O!h8jO~O!Y(ri!Z(ri~P#AbOa%lO#]8rO'u%lO~O!Y(oy!h(oya(oy'u(oy~P!9mO!Y(fO!h(ny~O%f8uO~P&2lO![']O%f8uO~O#h$zqP$zqR$zq[$zqa$zqo$zq!Y$zq!i$zq!m$zq#O$zq#k$zq#l$zq#m$zq#n$zq#o$zq#p$zq#q$zq#r$zq#s$zq#u$zq#w$zq#y$zq#z$zq'u$zq([$zq(m$zq!h$zq!V$zq's$zq#]$zqs$zq![$zq%f$zq!d$zq~P#.aO#h'faP'faR'fa['faa'fao'fa!i'fa!m'fa#O'fa#k'fa#l'fa#m'fa#n'fa#o'fa#p'fa#q'fa#r'fa#s'fa#u'fa#w'fa#y'fa#z'fa'u'fa(['fa(m'fa!h'fa!V'fa's'fas'fa!['fa%f'fa!d'fa~P&/pO#h'haP'haR'ha['haa'hao'ha!i'ha!m'ha#O'ha#k'ha#l'ha#m'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#u'ha#w'ha#y'ha#z'ha'u'ha(['ha(m'ha!h'ha!V'ha's'has'ha!['ha%f'ha!d'ha~P&0cO#h$|qP$|qR$|q[$|qa$|qo$|q!Y$|q!i$|q!m$|q#O$|q#k$|q#l$|q#m$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#u$|q#w$|q#y$|q#z$|q'u$|q([$|q(m$|q!h$|q!V$|q's$|q#]$|qs$|q![$|q%f$|q!d$|q~P#.aO!Y'Ui!h'Ui~P!9mO#}#`q!Y#`q!Z#`q~P#AbO(t$}OP%^aR%^a[%^ao%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a#}%^a([%^a(m%^a!Y%^a!Z%^a~Ok%^a}%^a!P%^a(u%^a~P&CoO(u%POP%`aR%`a[%`ao%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a#}%`a([%`a(m%`a!Y%`a!Z%`a~Ok%`a}%`a!P%`a(t%`a~P&EsOk=VO})zO!P){O(u%PO~P&CoOk=VO})zO!P){O(t$}O~P&EsOR0`O}0`O!P0aO#P$dOPza[zakzaoza!iza!mza#Oza#kza#lza#mza#nza#oza#pza#qza#rza#sza#uza#wza#yza#zza#}za([za(mza(tza(uza!Yza!Zza~O})zO!P){OP$qaR$qa[$qak$qao$qa!i$qa!m$qa#O$qa#k$qa#l$qa#m$qa#n$qa#o$qa#p$qa#q$qa#r$qa#s$qa#u$qa#w$qa#y$qa#z$qa#}$qa([$qa(m$qa(t$qa(u$qa!Y$qa!Z$qa~O})zO!P){OP$saR$sa[$sak$sao$sa!i$sa!m$sa#O$sa#k$sa#l$sa#m$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#u$sa#w$sa#y$sa#z$sa#}$sa([$sa(m$sa(t$sa(u$sa!Y$sa!Z$sa~Ok=VO})zO!P){O(t$}O(u%PO~OP%RaR%Ra[%Rao%Ra!i%Ra!m%Ra#O%Ra#k%Ra#l%Ra#m%Ra#n%Ra#o%Ra#p%Ra#q%Ra#r%Ra#s%Ra#u%Ra#w%Ra#y%Ra#z%Ra#}%Ra([%Ra(m%Ra!Y%Ra!Z%Ra~P&NlO#}$lq!Y$lq!Z$lq~P#AbO#}$mq!Y$mq!Z$mq~P#AbO!Z9SO~O#}9TO~P!0kO!d#vO!Y'ai!h'ai~O!d#vO(m'mO!Y'ai!h'ai~O!Y/hO!h(zq~O!V'ci!Y'ci~P#.aO!Y/pO!V({q~Oo9[O!d#vO(m'mO~O!V9]O~P#.aO!V9]O~O!d#vO#s9bO~Og(Yy!Y(Yy~P!0kO!Y'ja!['ja~P#.aOa%Yq![%Yq'u%Yq!Y%Yq~P#.aO[9dO~O!Y0wO!Z)Tq~O#]9hO!Y'la!Z'la~O!Y5^O!Z)Qi~P#AbO!P4hO~O![1aO%f9lO~O(QTO(TUO(`9qO~O!Y1lO!Z)Rq~O!h9tO~O!h9uO~O!h9vO~O!h9vO~P%[O#]9yO!Y#ey!Z#ey~O!Y#ey!Z#ey~P#AbO%f:OO~P&2lO![']O%f:OO~O#}#{y!Y#{y!Z#{y~P#AbOP$ziR$zi[$zio$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi#}$zi([$zi(m$zi!Y$zi!Z$zi~P&NlO})zO!P){O(u%POP'eaR'ea['eak'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea#}'ea(['ea(m'ea(t'ea!Y'ea!Z'ea~O})zO!P){OP'gaR'ga['gak'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga#}'ga(['ga(m'ga(t'ga(u'ga!Y'ga!Z'ga~O(t$}OP%^iR%^i[%^ik%^io%^i}%^i!P%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i#}%^i([%^i(m%^i(u%^i!Y%^i!Z%^i~O(u%POP%`iR%`i[%`ik%`io%`i}%`i!P%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i#}%`i([%`i(m%`i(t%`i!Y%`i!Z%`i~O#}$my!Y$my!Z$my~P#AbO#}#`y!Y#`y!Z#`y~P#AbO!d#vO!Y'aq!h'aq~O!Y/hO!h(zy~O!V'cq!Y'cq~P#.aOo:YO!d#vO(m'mO~O!V:ZO~P#.aO!V:ZO~O!Y0wO!Z)Ty~O!Y5^O!Z)Qq~O![1aO%f:cO~O!h:fO~O%f:kO~P&2lOP$zqR$zq[$zqo$zq!i$zq!m$zq#O$zq#k$zq#l$zq#m$zq#n$zq#o$zq#p$zq#q$zq#r$zq#s$zq#u$zq#w$zq#y$zq#z$zq#}$zq([$zq(m$zq!Y$zq!Z$zq~P&NlO})zO!P){O(u%POP'faR'fa['fak'fao'fa!i'fa!m'fa#O'fa#k'fa#l'fa#m'fa#n'fa#o'fa#p'fa#q'fa#r'fa#s'fa#u'fa#w'fa#y'fa#z'fa#}'fa(['fa(m'fa(t'fa!Y'fa!Z'fa~O})zO!P){OP'haR'ha['hak'hao'ha!i'ha!m'ha#O'ha#k'ha#l'ha#m'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#u'ha#w'ha#y'ha#z'ha#}'ha(['ha(m'ha(t'ha(u'ha!Y'ha!Z'ha~OP$|qR$|q[$|qo$|q!i$|q!m$|q#O$|q#k$|q#l$|q#m$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#u$|q#w$|q#y$|q#z$|q#}$|q([$|q(m$|q!Y$|q!Z$|q~P&NlOg%b!Z!Y%b!Z#]%b!Z#}%b!Z~P!0kOo:oO!d#vO(m'mO~O!V:pO~P#.aO!Y'lq!Z'lq~P#AbO!Y#e!Z!Z#e!Z~P#AbO#h%b!ZP%b!ZR%b!Z[%b!Za%b!Zo%b!Z!Y%b!Z!i%b!Z!m%b!Z#O%b!Z#k%b!Z#l%b!Z#m%b!Z#n%b!Z#o%b!Z#p%b!Z#q%b!Z#r%b!Z#s%b!Z#u%b!Z#w%b!Z#y%b!Z#z%b!Z'u%b!Z([%b!Z(m%b!Z!h%b!Z!V%b!Z's%b!Z#]%b!Zs%b!Z![%b!Z%f%b!Z!d%b!Z~P#.aOo:xO!d#vO(m'mO~OP%b!ZR%b!Z[%b!Zo%b!Z!i%b!Z!m%b!Z#O%b!Z#k%b!Z#l%b!Z#m%b!Z#n%b!Z#o%b!Z#p%b!Z#q%b!Z#r%b!Z#s%b!Z#u%b!Z#w%b!Z#y%b!Z#z%b!Z#}%b!Z([%b!Z(m%b!Z!Y%b!Z!Z%b!Z~P&NlOs(aX~P1qO}%pO~P!(oO(P!lO~P!(oO!VfX!YfX#]fX~P&+QOP]XR]X[]Xo]X}]X!P]X!Y]X!YfX!i]X!m]X#O]X#P]X#]]X#]fX#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X~O!dfX!h]X!hfX(mfX~P'BxOP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![XO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(O)XO(QTO(TUO([VO(j[O(y<xO~O!Y;dO!Z$oa~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;oO!P${O![$|O!f=PO!i$xO#g;uO$V%_O$r;qO$t;sO$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~O#t)`O~P'GnOo!bX(m!bX~P# ZO!Z]X!ZfX~P'BxO!VfX!V$xX!YfX!Y$xX#]fX~P!/gO#h;XO~O!d#vO#h;XO~O#];iO~O#s;]O~O#];xO!Y(rX!Z(rX~O#];iO!Y(pX!Z(pX~O#h;yO~Og;{O~P!0kO#h<RO~O#h<SO~O!d#vO#h<TO~O!d#vO#h;yO~O#}<UO~P#AbO#h<VO~O#h<WO~O#h<]O~O#h<^O~O#h<_O~O#h<`O~O#}<aO~P!0kO#}<bO~P!0kO#P#Q#R#T#U#X#f#g#r(y$r$t$w%Z%e%f%g%n%p%s%t%v%x~'yT#l!U'w(P#mp#k#no}'x$['x(O$^(`~",
goto:"$4Q)XPPPPPP)YPP)]P)nP+O/PPPPP5xPP6`PP<V?mP@QP@QPPP@QPBRP@QP@QP@QPBVPB[PByPGrPPPGvPPPPGvJxPPPKOKzPGvPGvPPNYGvPPPGvPGvP!!aGvP!%v!&{!'UP!'x!'|!'x!+YPPPPPPP!+y!&{PP!,Z!-gP!0jGvGv!0o!3z!8b!8b!<`PPP!<hGvPPPPPPPPPPP!?vP!ATPPGv!BfPGvPGvGvGvGvGvPGv!CxP!GRP!JWP!J[!Jf!Jj!JjP!GOP!Jn!JnP!MsP!MwGvGv!M}##RBV@QP@QP@Q@QP#$_@Q@Q#&j@Q#)Z@Q#+`@Q@Q#,O#.]#.]#.b#.k#.]#.wP#.]P@Q#/a@Q#3S@Q@Q5xPPP#6{PPP#7f#7fP#7fP#7|#7fPP#8SP#7yP#7y#8g#7y#9R#9X5u)]#9[)]P#9c#9c#9cP)]P)]P)]P)]PP)]P#9i#9lP#9l)]P#9pP#9sP)]P)]P)]P)]P)]P)])]PP#9y#:P#:[#:b#:h#:n#:t#;S#;Y#;d#;j#;t#;z#<[#<b#=S#=f#=l#=r#>Q#>g#@V#@e#@l#BR#Ba#C|#D[#Db#Dh#Dn#Dx#EO#EU#E`#Er#ExPPPPPPPPPP#FOPPPPPPP#Fs#Iz#KZ#Kb#KjPPP$!sP$!|$%t$,^$,a$,d$-P$-S$-Z$-cP$-i$-lP$.Y$.^$/U$0d$0i$1PPP$1U$1[$1`P$1c$1g$1k$2a$2x$3a$3e$3h$3k$3q$3t$3x$3|R!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5eQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*e$|*V*jQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*lQ1k,]R;v;T%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8rS#q];Q!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{U*y%[;n;oQ+n%}Q,^&dQ,e&lQ0m+aQ0q+cQ0|+oQ1s,cQ3Q._Q5O0wQ5t1lQ6r3UQ7s5PR8x6t'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{t!nQ!r!v!y!z'T'[']'i'j'k-T-Z-]-m1a5e5g$|$ti#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VQ&U|Q'R!eU'X%g*V-WQ+n%}Q,^&dQ0c*|Q0|+oQ1R+uQ1r,bQ1s,cQ5O0wQ5X1TQ5t1lQ5w1nQ5x1qQ7s5PQ7v5UQ8a5zQ9g7wR9r8^rnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PR,`&h&x^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<z<{[#]WZ#W#Z'U(P!b%hm#h#i#l$x%c%f(Y(d(e(f*U*Y*]+T+U+W,g,}-{.R.S.T.V/e/h2U2|2}4Q6[6mQ%uxQ%yyS&O|&TQ&[!TQ'`!hQ'b!iQ(m#sS+h%z%{Q+l%}Q,V&_Q,Z&aS-d'c'dQ.a(nQ0u+iQ0{+oQ0}+pQ1Q+tQ1f,WS1j,[,]Q2n-eQ4}0wQ5R0zQ5W1SQ5s1kQ7r5PQ7u5TQ9c7qR:^9d!O$zi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R!S%wy!i!u%y%z%{'S'b'c'd'h'r*d+h+i-Q-d-e-l/y0u2g2n2u4dQ+b%uQ+{&XQ,O&YQ,Y&aQ.`(mQ1e,VU1i,Z,[,]Q3V.aQ5n1fS5r1j1kQ8]5s#^<|#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vo<};g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bW%Ti%V*t<xS&X!Q&fQ&Y!RQ&Z!SR+y&V$}%Si#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VT)v$u)wV*y%[;n;oW'X!e%g*V-WS(y#y#zQ+]%pQ+s&QS.Y(i(jQ1[,PQ4n0`R7{5^'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{$i$^c#Y#e%o%q%s(O(U(p(u(})O)P)Q)R)S)T)U)V)W)Y)[)^)c)m+^+r-R-p-u-z-|.k.n.r.t.u.v/X0e2]2`2p2w3]3b3c3d3e3f3g3h3i3j3k3l3m3n3q3r3y4r4{6_6e6j6y6z7T7U7}8l8p8z9Q9R9{:`:g;R<oT#TV#U'PkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q'V!eR2c-Tv!nQ!e!r!v!y!z'T'[']'i'j'k-T-Z-]-m1a5e5gU*d$|*V*jS/y*e*lQ0S*mQ1^,RQ4d0RR4g0UnqOXst!Z#d%k&o&q&r&t,k,p1|2PQ&v!^Q's!xS(o#u;XQ+f%xQ,T&[Q,U&^Q-b'aQ-o'lS.j(t;yS0f+R<TQ0s+gQ1`,SQ2T,rQ2V,sQ2_-OQ2l-cQ2o-gS4s0g<_Q4y0tS4|0v<`Q6^2aQ6b2mQ6g2tQ7p4zQ8m6`Q8n6cQ8q6hR9x8j$d$]c#Y#e%q%s(O(U(p(u(})O)P)Q)R)S)T)U)V)W)Y)[)^)c)m+^+r-R-p-u-z-|.k.n.r.u.v/X0e2]2`2p2w3]3b3c3d3e3f3g3h3i3j3k3l3m3n3q3r3y4r4{6_6e6j6y6z7T7U7}8l8p8z9Q9R9{:`:g;R<oS(k#p'fQ({#zS+[%o.tS.Z(j(lR3O.['OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{S#q];QQ&q!XQ&r!YQ&t![Q&u!]R1{,nQ'^!hQ+_%uQ-`'`S.](m+bQ2j-_W3S.`.a0l0nQ6a2kW6n3P3R3V4wU8t6o6q6sU9}8v8w8yS:i9|:PQ:t:jR:z:uU!wQ']-]T5c1a5e!Q_OXZ`st!V!Z#d#h%c%k&f&h&o&q&r&t(f,k,p.S1|2P]!pQ!r']-]1a5eT#q];Q%[{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rS(y#y#zS.Y(i(j!s<f$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{U$fd)Z,eS(l#p'fU*q%R(s3pU0b*x.f7PQ4w0mQ6o3QQ8w6rR:P8xm!tQ!r!v!y!z']'i'j'k-]-m1a5e5gQ'q!uS(b#g1vS-k'h'tQ/k*XQ/w*dQ2v-nQ4U/lS4_/x0SQ7Z4PS7f4e4gQ9V7[Q9Z7cQ9`7iS:X9[9]S:n:Y:ZS:w:o:pR:}:xQ#wbQ'p!uS(a#g1vS(c#m+QQ+S%dQ+d%vQ+j%|U-j'h'q'tQ.O(bQ/j*XQ/v*dQ/|*gQ0r+eQ1g,XS2s-k-nQ2{.WS4T/k/lS4^/w0SQ4a/{Q4c/}Q5p1hQ6i2vQ7Y4PQ7^4US7b4_4gQ7g4fQ8Z5qS9U7Z7[Q9Y7cQ9^7fQ9a7jQ9o8[Q:V9VS:W9Z9]Q:[9`Q:e9pS:m:X:ZS:v:n:pQ:|:wQ;O:}Q<i<dQ<t<mR<u<nV!wQ']-]%[aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rS#wz!j!r<c$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{R<i<z%[bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rQ%dj!S%vy!i!u%y%z%{'S'b'c'd'h'r*d+h+i-Q-d-e-l/y0u2g2n2u4dS%|z!jQ+e%wQ,X&aW1h,Y,Z,[,]U5q1i1j1kS8[5r5sQ9p8]!r<d$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q<m<yR<n<z%OeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rY#bWZ#W#Z(P!b%hm#h#i#l$x%c%f(Y(d(e(f*U*Y*]+T+U+W,g,}-{.R.S.T.V/e/h2U2|2}4Q6[6mQ,f&l!p<e$Z$n)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{R<h'UU'Y!e%g*VR2e-W%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8r!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q,e&lQ0m+aQ3Q._Q6r3UR8x6t!b$Tc#Y%o(O(U(p(u)V)W)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;R!P;_)Y)m-R.t2]2`3b3k3l3q3y6_6z7T7U7}8l8z9Q9R:`:g<o!f$Vc#Y%o(O(U(p(u)S)T)V)W)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;R!T;a)Y)m-R.t2]2`3b3h3i3k3l3q3y6_6z7T7U7}8l8z9Q9R:`:g<o!^$Zc#Y%o(O(U(p(u)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;RQ3}/cz<{)Y)m-R.t2]2`3b3q3y6_6z7T7U7}8l8z9Q9R:`:g<oQ=Q=SR=R=T'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{S$oh$pR3v.|'VgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.|.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{T$kf$qQ$ifS)f$l)jR)r$qT$jf$qT)h$l)j'VhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.|.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{T$oh$pQ$rhR)q$p%[jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8r!s<y$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{#elOPXZst!Z!`!o#S#d#o#{$n%k&h&k&l&o&q&r&t&x'Q'_(z)o+V+a,h,k,p-a._.}/f0a1d1t1u1w1y1|2P2R3U3u5b5m5}6O6R6t8R8X8h!O%Ri$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R#^(s#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=VQ*}%`Q/Y)zo3p;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!O$yi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=RQ*^$zU*g$|*V*jQ+O%aQ/}*h#^<k#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn<l;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bQ<p<|Q<q<}Q<r=OR<s=P!O%Ri$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R#^(s#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vo3p;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bnoOXst!Z#d%k&o&q&r&t,k,p1|2PS*a${*UQ,y&{Q,z&}R4X/p$|%Si#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VQ+|&YQ1Y,OQ5[1XR7z5]V*i$|*V*jU*i$|*V*jT5d1a5eU/{*f/f5bS4f0T8RR7j4hQ+d%vQ/|*gQ0r+eQ1g,XQ5p1hQ8Z5qQ9o8[R:e9p!O%Oi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=Rr)}$v)a*O*p+P/n0Z0[3s4V4q7X7k:U<j<v<wS0V*o0W#^;j#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn;k;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!`;|(q)_*W*`.b.e.i/U/Z/c/s0k1V1X3Y4W4[5Z5]6u6x7`7d7m7o9X9_:]:l=S=T`;}3o6{7O7S8{:Q:T:{S<X.d3ZT<Y6}9O!O%Qi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=Rv*P$v)a*Q*o+P/_/n0Z0[3s4V4i4q7X7k:U<j<v<wS0X*p0Y#^;l#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn;m;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!d<O(q)_*W*`.c.d.i/U/Z/c/s0k1V1X3W3Y4W4[5Z5]6u6v6x7`7d7m7o9X9_:]:l=S=Td<P3o6|6}7S8{8|:Q:R:T:{S<Z.e3[T<[7O9PrnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PQ&c!UR,h&lrnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PR&c!UQ,Q&ZR1U+ysnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PQ1b,VS5k1e1fU8T5i5j5nS9k8V8WS:a9j9mQ:q:bR:y:rQ&j!VR,a&fR5w1nS&O|&TR0}+pQ&o!WR,k&pR,q&uT1},p2PR,u&vQ,t&vR2W,uQ'v!{R-q'vSsOtQ#dXT%ns#dQ#OTR'x#OQ#RUR'z#RQ)w$uR/V)wQ#UVR'|#UQ#XWU(S#X(T-xQ(T#YR-x(UQ-U'VR2d-UQ.m(uS3_.m3`R3`.nQ-]']R2h-]Y!rQ']-]1a5eR'g!rQ.x)aR3t.xU#_W%f*UU(Z#_([-yQ([#`R-y(VQ-X'YR2f-Xt`OXst!V!Z#d%k&f&h&o&q&r&t,k,p1|2PS#hZ%cU#r`#h.SR.S(fQ(g#jQ.P(cW.X(g.P2y6kQ2y.QR6k2zQ)j$lR/O)jQ$phR)p$pQ$`cU)]$`-t;eQ-t;RR;e)mQ/i*XW4R/i4S7]9WU4S/j/k/lS7]4T4UR9W7^$Z)|$v(q)_)a*W*`*o*p*z*{+P.d.e.g.h.i/U/Z/_/a/c/n/s0Z0[0k1V1X3W3X3Y3o3s4V4W4[4i4k4q5Z5]6u6v6w6x6}7O7Q7R7S7X7`7d7k7m7o8{8|8}9X9_:Q:R:S:T:U:]:l:{<j<v<w=S=TQ/q*`U4Z/q4]7aQ4]/sR7a4[S*j$|*VR0P*jr*O$v)a*o*p+P/n0Z0[3s4V4q7X7k:U<j<v<w!`.b(q)_*W*`.d.e.i/U/Z/c/s0k1V1X3Y4W4[5Z5]6u6x7`7d7m7o9X9_:]:l=S=TU/`*O.b6{a6{3o6}7O7S8{:Q:T:{Q0W*oQ3Z.dU4j0W3Z9OR9O6}v*Q$v)a*o*p+P/_/n0Z0[3s4V4i4q7X7k:U<j<v<w!d.c(q)_*W*`.d.e.i/U/Z/c/s0k1V1X3W3Y4W4[5Z5]6u6v6x7`7d7m7o9X9_:]:l=S=TU/b*Q.c6|e6|3o6}7O7S8{8|:Q:R:T:{Q0Y*pQ3[.eU4l0Y3[9PR9P7OQ*u%UR0^*uQ4v0kR7n4vQ+X%iR0j+XQ5_1[S7|5_9iR9i7}Q,S&[R1_,SQ5e1aR8P5eQ1m,^S5u1m8_R8_5wQ0x+lW5Q0x5S7t9eQ5S0{Q7t5RR9e7uQ+q&OR1O+qQ2P,pR6V2PYrOXst#dQ&s!ZQ+Z%kQ,j&oQ,l&qQ,m&rQ,o&tQ1z,kS1},p2PR6U1|Q%mpQ&w!_Q&z!aQ&|!bQ'O!cQ'n!uQ+Y%jQ+f%xQ+x&UQ,`&jQ,w&yW-h'h'p'q'tQ-o'lQ0O*iQ0s+gS1p,a,dQ2X,vQ2Y,yQ2Z,zQ2o-gW2q-j-k-n-pQ4y0tQ5V1RQ5Y1VQ5o1gQ5y1rQ6T1{U6d2p2s2vQ6g2tQ7p4zQ7x5XQ7y5ZQ8O5dQ8Y5pQ8`5xS8o6e6iQ8q6hQ9f7vQ9n8ZQ9s8aQ9z8pQ:_9gQ:d9oQ:h9{R:s:eQ%xyQ'a!iQ'l!uU+g%y%z%{Q-O'SU-c'b'c'dS-g'h'rQ/u*dS0t+h+iQ2a-QS2m-d-eQ2t-lQ4`/yQ4z0uQ6`2gQ6c2nQ6h2uR7e4dS$wi<xR*v%VU%Ui%V<xR0]*tQ$viS(q#v+cS)_$b$cQ)a$dQ*W$xS*`${*UQ*o%OQ*p%QQ*z%]Q*{%^Q+P%bQ.d;jQ.e;lQ.g;pQ.h;rQ.i;tQ/U)uS/Z){/]Q/_)}Q/a*PQ/c*RQ/n*[S/s*b/eQ0Z*rQ0[*sh0k+`.^1c3T5l6p8U8u9l:O:c:kQ1V+zQ1X+}Q3W;|Q3X<OQ3Y<RS3o;g;hQ3s.wQ4V/oQ4W/pQ4[/rQ4i0VQ4k0XQ4q0dQ5Z1WQ5]1ZQ6u<VQ6v<XQ6w<ZQ6x<]Q6};kQ7O;mQ7Q;qQ7R;sQ7S;uQ7X3}Q7`4YQ7d4bQ7k4mQ7m4uQ7o4xQ8{<SQ8|;}Q8}<PQ9X7_Q9_7hQ:Q<WQ:R<YQ:S<[Q:T<^Q:U9TQ:]9bQ:l<aQ:{<bQ<j<xQ<v=QQ<w=RQ=S=UR=T=VQ*x%[Q.f;nR7P;onpOXst!Z#d%k&o&q&r&t,k,p1|2PQ!fPS#fZ#oQ&y!`U'e!o5b8RQ'{#SQ(|#{Q)n$nS,d&h&kQ,i&lQ,v&xQ,{'QQ-_'_Q.p(zQ/S)oS0h+V/fQ0n+aQ1x,hQ2k-aQ3R._Q3x.}Q4o0aQ5j1dQ5{1tQ5|1uQ6Q1wQ6S1yQ6X2RQ6s3UQ7V3uQ8W5mQ8d5}Q8e6OQ8g6RQ8y6tQ9m8XR9w8h#YcOPXZst!Z!`!o#d#o#{%k&h&k&l&o&q&r&t&x'Q'_(z+V+a,h,k,p-a._/f0a1d1t1u1w1y1|2P2R3U5b5m5}6O6R6t8R8X8hQ#YWQ#eYQ%ouQ%qvS%sw!gS(O#W(RQ(U#ZQ(p#uQ(u#xQ(}$OQ)O$PQ)P$QQ)Q$RQ)R$SQ)S$TQ)T$UQ)U$VQ)V$WQ)W$XQ)Y$ZQ)[$_Q)^$aQ)c$eW)m$n)o.}3uQ+^%rQ+r&PS-R'U2bQ-p'oS-u(P-wQ-z(XQ-|(`Q.k(tQ.n(vQ.r;PQ.t;SQ.u;TQ.v;WQ/X)yQ0e+RQ2],|Q2`-PQ2p-iQ2w-}Q3].lQ3b;XQ3c;YQ3d;ZQ3e;[Q3f;]Q3g;^Q3h;_Q3i;`Q3j;aQ3k;bQ3l;cQ3m.sQ3n;fQ3q;iQ3r;vQ3y;dQ4r0gQ4{0vQ6_;xQ6e2rQ6j2xQ6y3^Q6z;yQ7T;{Q7U<TQ7}5`Q8l6]Q8p6fQ8z<UQ9Q<_Q9R<`Q9{8rQ:`9hQ:g9yQ;R#SR<o<{R#[WR'W!el!tQ!r!v!y!z']'i'j'k-]-m1a5e5gS'S!e-TS-Q'T'[R2g-ZR(w#xQ!fQT-[']-]]!qQ!r']-]1a5eQ#p]R'f;QR)b$dY!uQ']-]1a5eQ'h!rS'r!v!yS't!z5gS-l'i'jQ-n'kR2u-mT#kZ%cS#jZ%cS%im,gU(c#h#i#lS.Q(d(eQ.U(fQ0i+WQ2z.RU2{.S.T.VS6l2|2}R8s6md#^W#W#Z%f(P(Y*U+T-{/er#gZm#h#i#l%c(d(e(f+W.R.S.T.V2|2}6mS*X$x*]Q/l*YQ1v,gQ2^,}Q4P/hQ6Z2UQ7[4QQ8k6[T<g'U+UV#aW%f*UU#`W%f*US(Q#W(YU(V#Z+T/eS-S'U+UT-v(P-{V'Z!e%g*VQ$lfR)t$qT)i$l)jR3w.|T*Z$x*]T*c${*UQ0l+`Q3P.^Q5i1cQ6q3TQ8V5lQ8v6pQ9j8UQ9|8uQ:b9lQ:j:OQ:r:cR:u:knqOXst!Z#d%k&o&q&r&t,k,p1|2PQ&i!VR,`&ftmOXst!U!V!Z#d%k&f&o&q&r&t,k,p1|2PR,g&lT%jm,gR1],PR,_&dQ&S|R+w&TR+m%}T&m!W&pT&n!W&pT2O,p2P",
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 : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < 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 InstantiationExpression 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 InstantiationExpression 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:376,context:Yge,
nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["closedBy",24,">",37,"InterpolationEnd",47,"]",58,"}",71,")",164,"JSXEndTag"]],
propSources:[nve],skippedNodes:[0,5,6,274],repeatNodeCount:37,
tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Rp(U!b'w0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(S#S$h&j'x0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Rp(U!b'x0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!m),Q(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(Q':f$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(U!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Rp(U!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__WS$h&j(Rp(U!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]WS$h&j(U!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(U!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(RpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(RpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Rp(U!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$h&j(j%1l(Rp(U!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$h&j(Rp(U!b$[#t(O,2j(`$I[OY%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+dHRk$h&j(Rp(U!b$[#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$h&j(Rp(U!b#m(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWKl_$h&j$P(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,#xLva(u+JY$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWNW`$h&j#y(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At! c_(T';W$h&j(RpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$h&j(RpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$h&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$c`$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(RpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$c`(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b/5|!'t_!i/.^$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&U!)O_!h!Lf$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z-!n!*[b$h&j(Rp(U!b(P%&f#n(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW!+o`$h&j(Rp(U!b#k(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;x!,|`$h&j(Rp(U!bo+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,$U!.Z_!Y+Jf$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!/ec$h&j(Rp(U!b}.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!0ya$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!2Z_!X!L^$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!3eg$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!5Vg$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!6wc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!8_c$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!9uf$h&j(Rp(U!b#l(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z?O!;fb$h&j(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z>^!<w`$h&j(U!b!U7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;'S!<n;'S;=`!L]<%lO!<n<z!>Q^$h&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!?Td$h&j!U7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$h&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DWX$h&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$h&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$h&j(U!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(U!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(U!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(U!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(U!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;'S!KS;'S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$h&j(Rp!U7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_# o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p# o#p;'S!Lc;'S;=`#&Y<%lO!Lc=l!Mwl$h&j(Rp!U7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r8Q# vZ(Rp!U7`OY# oZr# ors!@cs!P# o!P!Q#!i!Q!}# o!}#O#$R#O#P!Bq#P;'S# o;'S;=`#$y<%lO# o8Q#!pe(Rp!U7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;'S)r;'S;=`*Z<%lO)r8Q#$WX(RpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q# o#Q;'S#$R;'S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l# o=l#%W^$h&j(RpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;'S#%P;'S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$h&j(Rp(U!b!U7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z9d#(r](Rp(U!b!U7`OY#(iZr#(irs!Grsw#(iwx# ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;'S#(i;'S;=`#,`<%lO#(i9d#)th(Rp(U!b!U7`OY*gZr*grs'}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;'S*g;'S;=`+Z<%lO*g9d#+gZ(Rp(U!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;'S#+`;'S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$h&j(Rp(U!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;'S#,f;'S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$h&j(Rp(U!b'y0/l!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z07[#/o_$h&j(Rp(U!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;'S#/d;'S;=`#6|<%lO#/d06j#0w]$h&j(U!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;'S#0n;'S;=`#3x<%lO#0n05W#1wX$h&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;'S#1p;'S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;'S#2d;'S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW(U!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;'S#3R;'S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$h&j(RpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;'S#4O;'S;=`#5w<%lO#4O00^#5XW(RpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;'S#5Q;'S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Rp(U!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;'S#5};'S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$h&j$P(Ch(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;ZAt#8vb$Y#t$h&j(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z'Ad#:Zp$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#<jk$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#O-<U(Rp(U!b(y7`OY*gZr*grs'}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$ f!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#MXX$j&j(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El#M}Z#o(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;'S*g;'S;=`+Z<%lO*g(El#NyX$P(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El$ oX#p(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g*)x$!ga#]*!Y$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(K[$#w_#h(Cl$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x$%Vag!*r#p(Ch$e#|$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$'f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$&g_#p(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$'qa#o(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$)R`#o(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(Kd$*`a(m(Ct$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$+p`$h&j#z(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`$,}_!y$Ip$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f$.X_!P0,v$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/]Z$h&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;'S$0O;'S;=`$4i<%lO$0O(n$0VT_#S$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0kO_#S(n$0p[$h&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;'S&c;'S;=`&w<%lO&c(n$1kZ$h&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2cZ$h&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3ZZ$h&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!V#)l$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$6U`#w(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;p$7c_$h&j(Rp(U!b([+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$8qk$h&j(Rp(U!b(O,2j$^#t(`$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;'S$8b;'S;=`$<l<%lO$8b+d$:qk$h&j(Rp(U!b$^#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;'S$:f;'S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X![#Hb(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$=sa(t+JY$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;'S%Z;'S;=`+a<%lO%Z(Kd$?V_!Z(Cds`$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!n7`$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$h&j(Rp(U!b'w0/l$[#t(O,2j(`$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%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$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$h&j(Rp(U!b'x0/l$[#t(O,2j(`$I[OY%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:[Kge,Jge,tve,2,3,4,5,6,7,8,9,10,11,12,13,14,Gge,new Sme("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOu~~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(^~~",141,335),new Sme("j~RQYZXz{^~^O'{~~aP!P!Qd~iO'|~~",25,318)],
topRules:{Script:[0,7],SingleExpression:[1,272],SingleClassItem:[2,273]},
dialects:{jsx:0,ts:14725},dynamicPrecedences:{77:1,79:1,91:1,167:1,196:1},
specialized:[{term:322,get:e=>rve[e]||-1},{term:338,get:e=>ove[e]||-1},{term:92,
get:e=>ive[e]||-1}],tokenPrec:14749
}),sve=[Hfe("function ${name}(${params}) {\n\t${}\n}",{label:"function",
detail:"definition",type:"keyword"
}),Hfe("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{
label:"for",detail:"loop",type:"keyword"
}),Hfe("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",
detail:"of loop",type:"keyword"}),Hfe("do {\n\t${}\n} while (${})",{label:"do",
detail:"loop",type:"keyword"}),Hfe("while (${}) {\n\t${}\n}",{label:"while",
detail:"loop",type:"keyword"
}),Hfe("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",
detail:"/ catch block",type:"keyword"}),Hfe("if (${}) {\n\t${}\n}",{label:"if",
detail:"block",type:"keyword"}),Hfe("if (${}) {\n\t${}\n} else {\n\t${}\n}",{
label:"if",detail:"/ else block",type:"keyword"
}),Hfe("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{
label:"class",detail:"definition",type:"keyword"
}),Hfe('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",
type:"keyword"}),Hfe('import ${name} from "${module}"\n${}',{label:"import",
detail:"default",type:"keyword"
})],lve=sve.concat([Hfe("interface ${name} {\n\t${}\n}",{label:"interface",
detail:"definition",type:"keyword"}),Hfe("type ${name} = ${type}",{label:"type",
detail:"definition",type:"keyword"}),Hfe("enum ${name} {\n\t${}\n}",{
label:"enum",detail:"definition",type:"keyword"
})]),cve=new pde,uve=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"])
;function dve(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition")
;return r&&n(r,e),!0}}const pve=["FunctionDeclaration"],hve={
FunctionDeclaration:dve("function"),ClassDeclaration:dve("class"),
ClassExpression:()=>!0,EnumDeclaration:dve("constant"),
TypeAliasDeclaration:dve("type"),NamespaceDeclaration:dve("namespace"),
VariableDefinition(e,t){e.matchContext(pve)||t(e,"variable")},
TypeDefinition(e,t){t(e,"type")},__proto__:null};function fve(e,t){
let n=cve.get(t);if(n)return n;let r=[],o=!0;function i(t,n){
let o=e.sliceString(t.from,t.to);r.push({label:o,type:n})}
return t.cursor(Zue.IncludeAnonymous).iterate((t=>{if(o)o=!1;else if(t.name){
let e=hve[t.name];if(e&&e(t,i)||uve.has(t.name))return!1
}else if(t.to-t.from>8192){for(let n of fve(e,t.node))r.push(n);return!1}
})),cve.set(t,r),r}
const mve=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,gve=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."]
;function vve(e){let t=lpe(e.state).resolveInner(e.pos,-1)
;if(gve.indexOf(t.name)>-1)return null
;let n="VariableName"==t.name||t.to-t.from<20&&mve.test(e.state.sliceDoc(t.from,t.to))
;if(!n&&!e.explicit)return null;let r=[]
;for(let o=t;o;o=o.parent)uve.has(o.name)&&(r=r.concat(fve(e.state.doc,o)))
;return{options:r,from:n?t.from:e.pos,validFor:mve}}const bve=spe.define({
name:"javascript",parser:ave.configure({props:[_pe.add({IfStatement:Rpe({
except:/^\s*({|else\b)/}),TryStatement:Rpe({except:/^\s*({|catch\b|finally\b)/
}),LabeledStatement:e=>e.baseIndent,SwitchBody:e=>{
let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t)
;return e.baseIndent+(n?0:r?1:2)*e.unit},Block:Dpe({closing:"}"}),
ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,
"Statement Property":Rpe({except:/^{/}),JSXElement(e){
let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)
},JSXEscape(e){let t=/\s*\}/.test(e.textAfter)
;return e.lineIndent(e.node.from)+(t?0:e.unit)},
"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),Mpe.add({
"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Lpe,
BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{
brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",
close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}
}),Ove={test:e=>/^JSX/.test(e.name),facet:rpe({commentTokens:{block:{open:"{/*",
close:"*/}"}}})},yve=bve.configure({dialect:"ts"
},"typescript"),wve=bve.configure({dialect:"jsx",
props:[ope.add((e=>e.isTop?[Ove]:void 0))]}),xve=bve.configure({
dialect:"jsx ts",props:[ope.add((e=>e.isTop?[Ove]:void 0))]},"typescript")
;let kve=e=>({label:e,type:"keyword"})
;const Sve="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(kve),_ve=Sve.concat(["declare","implements","private","protected","public"].map(kve))
;function Eve(e={}){
let t=e.jsx?e.typescript?xve:wve:e.typescript?yve:bve,n=e.typescript?lve.concat(_ve):sve.concat(Sve)
;return new bpe(t,[bve.data.of({autocomplete:(r=gve,o=Vhe(n),e=>{
for(let t=lpe(e.state).resolveInner(e.pos,-1);t;t=t.parent){
if(r.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return o(e)})
}),bve.data.of({autocomplete:vve}),e.jsx?Ave:[]]);var r,o}
function Tve(e,t,n=e.length){
for(let r=null==t?void 0:t.firstChild;r;r=r.nextSibling)if("JSXIdentifier"==r.name||"JSXBuiltin"==r.name||"JSXNamespacedName"==r.name||"JSXMemberExpression"==r.name)return e.sliceString(r.from,Math.min(r.to,n))
;return""}
const Cve="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),Ave=kce.inputHandler.of(((e,t,n,r,o)=>{
if((Cve?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!bve.isActiveAt(e.state,t,-1))return!1
;let i=o(),{state:a}=i,s=a.changeByRange((e=>{var t
;let n,{head:o}=e,i=lpe(a).resolveInner(o-1,-1)
;if("JSXStartTag"==i.name&&(i=i.parent),
a.doc.sliceString(o-1,o)!=r||"JSXAttributeValue"==i.name&&i.to>o);else{
if(">"==r&&"JSXFragmentTag"==i.name)return{range:e,changes:{from:o,insert:"</>"}
};if("/"==r&&"JSXStartCloseTag"==i.name){let e=i.parent,r=e.parent
;if(r&&e.from==o-2&&((n=Tve(a.doc,r.firstChild,o))||"JSXFragmentTag"==(null===(t=r.firstChild)||void 0===t?void 0:t.name))){
let e=`${n}>`;return{range:doe.cursor(o+e.length,-1),changes:{from:o,insert:e}}}
}else if(">"==r){let t=function(e){for(;;){
if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e
;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(i)
;if(t&&"JSXOpenTag"==t.name&&!/^\/?>|^<\//.test(a.doc.sliceString(o,o+2))&&(n=Tve(a.doc,t,o)))return{
range:e,changes:{from:o,insert:`</${n}>`}}}}return{range:e}}))
;return!s.changes.empty&&(e.dispatch([i,a.update(s,{userEvent:"input.complete",
scrollIntoView:!0})]),!0)
})),Pve=["_blank","_self","_top","_parent"],Dve=["ascii","utf-8","utf-16","latin1","latin1"],$ve=["get","post","put","delete"],Rve=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Nve=["true","false"],Ive={},Mve={
a:{attrs:{href:null,ping:null,type:null,media:null,target:Pve,hreflang:null}},
abbr:Ive,address:Ive,area:{attrs:{alt:null,coords:null,href:null,target:null,
ping:null,media:null,hreflang:null,type:null,
shape:["default","rect","circle","poly"]}},article:Ive,aside:Ive,audio:{attrs:{
src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],
preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],
controls:["controls"]}},b:Ive,base:{attrs:{href:null,target:Pve}},bdi:Ive,
bdo:Ive,blockquote:{attrs:{cite:null}},body:Ive,br:Ive,button:{attrs:{form:null,
formaction:null,name:null,value:null,autofocus:["autofocus"],
disabled:["autofocus"],formenctype:Rve,formmethod:$ve,
formnovalidate:["novalidate"],formtarget:Pve,type:["submit","reset","button"]}},
canvas:{attrs:{width:null,height:null}},caption:Ive,center:Ive,cite:Ive,
code:Ive,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:Ive,del:{attrs:{cite:null,datetime:null}},
details:{attrs:{open:["open"]}},dfn:Ive,div:Ive,dl:Ive,dt:Ive,em:Ive,embed:{
attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}
},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Ive,
figure:Ive,footer:Ive,form:{attrs:{action:null,name:null,"accept-charset":Dve,
autocomplete:["on","off"],enctype:Rve,method:$ve,novalidate:["novalidate"],
target:Pve}},h1:Ive,h2:Ive,h3:Ive,h4:Ive,h5:Ive,h6:Ive,head:{
children:["title","base","link","style","meta","script","noscript","command"]},
header:Ive,hgroup:Ive,hr:Ive,html:{attrs:{manifest:null}},i:Ive,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:Rve,formmethod:$ve,formnovalidate:["novalidate"],formtarget:Pve,
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:Ive,keygen:{attrs:{challenge:null,
form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],
keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Ive,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:Ive,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{
attrs:{content:null,charset:Dve,
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:Ive,noscript:Ive,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:Ive,param:{attrs:{name:null,value:null}},pre:Ive,progress:{attrs:{
value:null,max:null}},q:{attrs:{cite:null}},rp:Ive,rt:Ive,ruby:Ive,samp:Ive,
script:{attrs:{type:["text/javascript"],src:null,async:["async"],
defer:["defer"],charset:Dve}},section:Ive,select:{attrs:{form:null,name:null,
size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},
slot:{attrs:{name:null}},small:Ive,source:{attrs:{src:null,type:null,media:null}
},span:Ive,strong:Ive,style:{attrs:{type:["text/css"],media:null,scoped:null}},
sub:Ive,summary:Ive,sup:Ive,table:Ive,tbody:Ive,td:{attrs:{colspan:null,
rowspan:null,headers:null}},template:Ive,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:Ive,th:{attrs:{colspan:null,
rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Ive,
time:{attrs:{datetime:null}},title:Ive,tr:Ive,track:{attrs:{src:null,label:null,
default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],
srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Ive,
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:Ive},Lve={accesskey:null,class:null,contenteditable:Nve,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:Nve,autocorrect:Nve,autocapitalize:Nve,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":Nve,
"aria-autocomplete":["inline","list","both","none"],"aria-busy":Nve,
"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,
"aria-describedby":null,"aria-disabled":Nve,"aria-dropeffect":null,
"aria-expanded":["true","false","undefined"],"aria-flowto":null,
"aria-grabbed":["true","false","undefined"],"aria-haspopup":Nve,
"aria-hidden":Nve,"aria-invalid":["true","false","grammar","spelling"],
"aria-label":null,"aria-labelledby":null,"aria-level":null,
"aria-live":["off","polite","assertive"],"aria-multiline":Nve,
"aria-multiselectable":Nve,"aria-owns":null,"aria-posinset":null,
"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Nve,
"aria-relevant":null,"aria-required":Nve,
"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
},Bve="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((e=>"on"+e))
;for(let y_e of Bve)Lve[y_e]=null;class Qve{constructor(e,t){
this.tags=Object.assign(Object.assign({},Mve),e),
this.globalAttrs=Object.assign(Object.assign({},Lve),t),
this.allTags=Object.keys(this.tags),
this.globalAttrNames=Object.keys(this.globalAttrs)}}
function jve(e,t,n=e.length){if(!t)return""
;let r=t.firstChild,o=r&&r.getChild("TagName")
;return o?e.sliceString(o.from,Math.min(o.to,n)):""}function Uve(e,t=!1){
for(;e;e=e.parent)if("Element"==e.name){if(!t)return e;t=!1}return null}
function Fve(e,t,n){let r=n.tags[jve(e,Uve(t))]
;return(null==r?void 0:r.children)||n.allTags}function qve(e,t){let n=[]
;for(let r=Uve(t);r&&!r.type.isTop;r=Uve(r.parent)){let o=jve(e,r)
;if(o&&"CloseTag"==r.lastChild.name)break
;o&&n.indexOf(o)<0&&("EndTag"==t.name||t.from>=r.firstChild.to)&&n.push(o)}
return n}Qve.default=new Qve;const zve=/^[:\-\.\w\u00b7-\uffff]*$/
;function Hve(e,t,n,r,o){let i=/\s*>/.test(e.sliceDoc(o,o+5))?"":">",a=Uve(n,!0)
;return{from:r,to:o,options:Fve(e.doc,a,t).map((e=>({label:e,type:"type"
}))).concat(qve(e.doc,n).map(((e,t)=>({label:"/"+e,apply:"/"+e+i,type:"type",
boost:99-t})))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Zve(e,t,n,r){
let o=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,
options:qve(e.doc,t).map(((e,t)=>({label:e,apply:e+o,type:"type",boost:99-t}))),
validFor:zve}}function Vve(e,t){
let{state:n,pos:r}=t,o=lpe(n).resolveInner(r,-1),i=o.resolve(r)
;for(let a,s=r;i==o&&(a=o.childBefore(s));){let e=a.lastChild
;if(!e||!e.type.isError||e.from<e.to)break;i=o=a,s=e.from}
return"TagName"==o.name?o.parent&&/CloseTag$/.test(o.parent.name)?Zve(n,o,o.from,r):Hve(n,e,o,o.from,r):"StartTag"==o.name?Hve(n,e,o,r,r):"StartCloseTag"==o.name||"IncompleteCloseTag"==o.name?Zve(n,o,r,r):"OpenTag"==o.name||"SelfClosingTag"==o.name||"AttributeName"==o.name?function(e,t,n,r,o){
let i=Uve(n),a=i?t.tags[jve(e.doc,i)]:null,s=a&&a.attrs?Object.keys(a.attrs):[]
;return{from:r,to:o,
options:(a&&!1===a.globalAttrs?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames).map((e=>({
label:e,type:"property"}))),validFor:zve}
}(n,e,o,"AttributeName"==o.name?o.from:r,r):"Is"==o.name||"AttributeValue"==o.name||"UnquotedAttributeValue"==o.name?function(e,t,n,r,o){
var i
;let a,s=null===(i=n.parent)||void 0===i?void 0:i.getChild("AttributeName"),l=[]
;if(s){let i=e.sliceDoc(s.from,s.to),c=t.globalAttrs[i];if(!c){
let r=Uve(n),o=r?t.tags[jve(e.doc,r)]:null
;c=(null==o?void 0:o.attrs)&&o.attrs[i]}if(c){
let t=e.sliceDoc(r,o).toLowerCase(),n='"',i='"'
;/^['"]/.test(t)?(a='"'==t[0]?/^[^"]*$/:/^[^']*$/,
n="",i=e.sliceDoc(o,o+1)==t[0]?"":t[0],t=t.slice(1),r++):a=/^[^\s<>='"]*$/
;for(let e of c)l.push({label:e,apply:n+e+i,type:"constant"})}}return{from:r,
to:o,options:l,validFor:a}
}(n,e,o,"Is"==o.name?r:o.from,r):!t.explicit||"Element"!=i.name&&"Text"!=i.name&&"Document"!=i.name?null:function(e,t,n,r){
let o=[],i=0;for(let a of Fve(e.doc,n,t))o.push({label:"<"+a,type:"type"})
;for(let a of qve(e.doc,n))o.push({label:"</"+a+">",type:"type",boost:99-i++})
;return{from:r,to:r,options:o,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}
}(n,e,o,r)}function Wve(e){
let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new Qve(t,n):Qve.default
;return e=>Vve(r,e)}const Xve=bve.parser.configure({top:"SingleExpression"
}),Yve=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,
parser:yve.parser},{tag:"script",
attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:wve.parser},{
tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:xve.parser},{
tag:"script",
attrs:e=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type),
parser:Xve},{tag:"script",
attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),
parser:bve.parser},{tag:"style",
attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),
parser:dge.parser}],Gve=[{name:"style",parser:dge.parser.configure({top:"Styles"
})}].concat(Bve.map((e=>({name:e,parser:bve.parser})))),Kve=spe.define({
name:"html",parser:zge.configure({props:[_pe.add({Element(e){
let t=/^(\s*)(<\/)?/.exec(e.textAfter)
;return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)
},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){
if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue()
;let t,n=null;for(let r=e.node;;){let e=r.lastChild
;if(!e||"Element"!=e.name||e.to!=r.to)break;n=r=e}
return n&&(!(t=n.lastChild)||"CloseTag"!=t.name&&"SelfClosingTag"!=t.name)?e.lineIndent(n.from)+e.unit:null
}}),Mpe.add({Element(e){let t=e.firstChild,n=e.lastChild
;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==n.name?n.from:e.to}:null}
}),ghe.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{
commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},
indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),Jve=Kve.configure({
wrap:Wge(Yve,Gve)})
;const ebe=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),tbe=kce.inputHandler.of(((e,t,n,r,o)=>{
if(e.composing||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!Jve.isActiveAt(e.state,t,-1))return!1
;let i=o(),{state:a}=i,s=a.changeByRange((e=>{var t,n,o
;let i,s=a.doc.sliceString(e.from-1,e.to)==r,{head:l}=e,c=lpe(a).resolveInner(l,-1)
;if(s&&">"==r&&"EndTag"==c.name){let r=c.parent
;if("CloseTag"!=(null===(n=null===(t=r.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)&&(i=jve(a.doc,r.parent,l))&&!ebe.has(i)){
return{range:e,changes:{from:l,to:l+(">"===a.doc.sliceString(l,l+1)?1:0),
insert:`</${i}>`}}}}else if(s&&"/"==r&&"IncompleteCloseTag"==c.name){
let e=c.parent
;if(c.from==l-2&&"CloseTag"!=(null===(o=e.lastChild)||void 0===o?void 0:o.name)&&(i=jve(a.doc,e,l))&&!ebe.has(i)){
let e=l+(">"===a.doc.sliceString(l,l+1)?1:0),t=`${i}>`;return{
range:doe.cursor(l+t.length,-1),changes:{from:l,to:e,insert:t}}}}return{range:e}
}));return!s.changes.empty&&(e.dispatch([i,a.update(s,{
userEvent:"input.complete",scrollIntoView:!0})]),!0)})),nbe=Rde({
String:epe.string,Number:epe.number,"True False":epe.bool,
PropertyName:epe.propertyName,Null:epe.null,",":epe.separator,
"[ ]":epe.squareBracket,"{ }":epe.brace}),rbe=Qme.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:[nbe],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}),obe=spe.define({
name:"json",parser:rbe.configure({props:[_pe.add({Object:Rpe({except:/^\s*\}/}),
Array:Rpe({except:/^\s*\]/})}),Mpe.add({"Object Array":Lpe})]}),languageData:{
closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}})
;function ibe(e){
return 45==e||46==e||58==e||e>=65&&e<=90||95==e||e>=97&&e<=122||e>=161}
let abe=null,sbe=null,lbe=0;function cbe(e,t){let n=e.pos+t
;if(sbe==e&&lbe==n)return abe;for(;9==(r=e.peek(t))||10==r||13==r||32==r;)t++
;var r;let o="";for(;;){let n=e.peek(t);if(!ibe(n))break
;o+=String.fromCharCode(n),t++}return sbe=e,lbe=n,abe=o||null}function ube(e,t){
this.name=e,this.parent=t,this.hash=t?t.hash:0
;for(let n=0;n<e.length;n++)this.hash+=(this.hash<<4)+e.charCodeAt(n)+(e.charCodeAt(n)<<8)
}const dbe=new Bme({start:null,shift:(e,t,n,r)=>1==t?new ube(cbe(r,1)||"",e):e,
reduce:(e,t)=>11==t&&e?e.parent:e,reuse(e,t,n,r){let o=t.type.id
;return 1==o||13==o?new ube(cbe(r,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1
}),pbe=new _me(((e,t)=>{if(60==e.next)if(e.advance(),47==e.next){e.advance()
;let n=cbe(e,0);if(!n)return e.acceptToken(5)
;if(t.context&&n==t.context.name)return e.acceptToken(2)
;for(let r=t.context;r;r=r.parent)if(r.name==n)return e.acceptToken(3,-2)
;e.acceptToken(4)}else if(33!=e.next&&63!=e.next)return e.acceptToken(1)}),{
contextual:!0});function hbe(e,t){return new _me((n=>{let r=0,o=t.charCodeAt(0)
;e:for(;!(n.next<0);n.advance(),r++)if(n.next==o){
for(let e=1;e<t.length;e++)if(n.peek(e)!=t.charCodeAt(e))continue e;break}
r&&n.acceptToken(e)}))}
const fbe=hbe(35,"--\x3e"),mbe=hbe(36,"?>"),gbe=hbe(37,"]]>"),vbe=Rde({
Text:epe.content,
"StartTag StartCloseTag EndTag SelfCloseEndTag":epe.angleBracket,
TagName:epe.tagName,"MismatchedCloseTag/TagName":[epe.tagName,epe.invalid],
AttributeName:epe.attributeName,AttributeValue:epe.attributeValue,
Is:epe.definitionOperator,"EntityReference CharacterReference":epe.character,
Comment:epe.blockComment,ProcessingInst:epe.processingInstruction,
DoctypeDecl:epe.documentMeta,Cdata:epe.special(epe.string)
}),bbe=Qme.deserialize({version:14,
states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'jO!bO,59eOOOO-E6w-E6wO'xOpO1G.uO'xOpO1G.uOOOP1G.u1G.uO(QOpO7+$fOOOP7+$f7+$fO(YO!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'bOpO1G.qO'bOpO1G.qO(eO#tO'#CnOOOO1G.q1G.qO(sOpO7+$aOOOP7+$a7+$aOOOP<<HQ<<HQOOOPAN=aAN=aOOOPAN=iAN=iO'bOpO7+$]OOOO7+$]7+$]OOOO'#Cz'#CzO({O#tO,59YOOOO,59Y,59YOOOP<<G{<<G{OOOO<<Gw<<GwOOOO-E6x-E6xOOOO1G.t1G.t",
stateData:")Z~OPQOSVOTWOVWOWWOXWOiXOxPO}TO!PUO~OuZOw]O~O^`Oy^O~OPQOQcOSVOTWOVWOWWOXWOxPO}TO!PUO~ORdO~P!SOseO|gO~OthO!OjO~O^lOy^O~OuZOwoO~O^qOy^O~O[vO`sOdwOy^O~ORyO~P!SO^{Oy^O~OseO|}O~OthO!O!PO~O^!QOy^O~O[!SOy^O~O[!VO`sOd!WOy^O~Oa!YOy^O~Oy^O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oy^O~O[!_Oy^O~O[!aOy^O~O[!cO`sOd!dOy^O~O[!cO`sOd!dO~Oa!eOy^O~Oy^Oz!gO~Oy^O[ma`madma~O[!jOy^O~O[!kOy^O~O[!lO`sOd!mO~OW!pOX!pOz!rO{!pO~O[!sOy^O~OW!pOX!pOz!vO{!pO~O",
goto:"%[wPPPPPPPPPPxxP!OP!UPP!_!iP!oxxxP!u!{#R$Z$j$p$v$|PPPP%SXWORYbXRORYb_t`qru!T!U!bQ!h!YS!o!e!fR!t!nQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!i!nQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!i!]R!n!eQu`S!UqrU![u!U!bR!b!TQ!q!gR!u!qQbRRxbQfTR|fQiUR!OiSXOYTaRb",
nodeNames:"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",
maxTerm:47,context:dbe,
nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["openedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],
propSources:[vbe],skippedNodes:[0],repeatNodeCount:8,
tokenData:"Jy~R!XOX$nXY&kYZ&kZ]$n]^&k^p$npq&kqr$nrs'ssv$nvw(Zw}$n}!O,^!O!P$n!P!Q.m!Q![$n![!]0V!]!^$n!^!_3h!_!`El!`!aF_!a!bGQ!b!c$n!c!}0V!}#P$n#P#QHj#Q#R$n#R#S0V#S#T$n#T#o0V#o%W$n%W%o0V%o%p$n%p&a0V&a&b$n&b1p0V1p4U$n4U4d0V4d4e$n4e$IS0V$IS$I`$n$I`$Ib0V$Ib$Kh$n$Kh%#t0V%#t&/x$n&/x&Et0V&Et&FV$n&FV;'S0V;'S;:j3b;:j;=`&e<%l?&r$n?&r?Ah0V?Ah?BY$n?BY?Mn0V?MnO$nX$uWVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nP%dTVPOv%_w!^%_!_;'S%_;'S;=`%s<%lO%_P%vP;=`<%l%_W&OT{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yW&bP;=`<%l%yX&hP;=`<%l$n_&t_VP{WyUOX$nXY&kYZ&kZ]$n]^&k^p$npq&kqr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZ'zTzYVPOv%_w!^%_!_;'S%_;'S;=`%s<%lO%_~(^ast)c![!]*g!c!}*g#R#S*g#T#o*g%W%o*g%p&a*g&b1p*g4U4d*g4e$IS*g$I`$Ib*g$Kh%#t*g&/x&Et*g&FV;'S*g;'S;:j,W?&r?Ah*g?BY?Mn*g~)fQ!Q![)l#l#m)z~)oQ!Q![)l!]!^)u~)zOX~~)}R!Q![*W!c!i*W#T#Z*W~*ZS!Q![*W!]!^)u!c!i*W#T#Z*W~*jg}!O*g!O!P*g!Q![*g![!]*g!]!^,R!c!}*g#R#S*g#T#o*g$}%O*g%W%o*g%p&a*g&b1p*g1p4U*g4U4d*g4e$IS*g$I`$Ib*g$Je$Jg*g$Kh%#t*g&/x&Et*g&FV;'S*g;'S;:j,W?&r?Ah*g?BY?Mn*g~,WOW~~,ZP;=`<%l*gZ,eYVP{WOr$nrs%_sv$nw}$n}!O-T!O!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZ-[YVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!a-z!a;'S$n;'S;=`&e<%lO$nZ.TW|QVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n].tYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!a/d!a;'S$n;'S;=`&e<%lO$n]/mWdSVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n_0b!O`S^QVP{WOr$nrs%_sv$nw}$n}!O0V!O!P0V!P!Q$n!Q![0V![!]0V!]!^$n!^!_%y!_!c$n!c!}0V!}#R$n#R#S0V#S#T$n#T#o0V#o$}$n$}%O0V%O%W$n%W%o0V%o%p$n%p&a0V&a&b$n&b1p0V1p4U0V4U4d0V4d4e$n4e$IS0V$IS$I`$n$I`$Ib0V$Ib$Je$n$Je$Jg0V$Jg$Kh$n$Kh%#t0V%#t&/x$n&/x&Et0V&Et&FV$n&FV;'S0V;'S;:j3b;:j;=`&e<%l?&r$n?&r?Ah0V?Ah?BY$n?BY?Mn0V?MnO$n_3eP;=`<%l0VX3mW{WOq%yqr4Vsv%yw!a%y!a!bEU!b;'S%y;'S;=`&_<%lO%yX4[]{WOr%ysv%yw}%y}!O5T!O!f%y!f!g6V!g!}%y!}#O;f#O#W%y#W#XAr#X;'S%y;'S;=`&_<%lO%yX5YV{WOr%ysv%yw}%y}!O5o!O;'S%y;'S;=`&_<%lO%yX5vT}P{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yX6[V{WOr%ysv%yw!q%y!q!r6q!r;'S%y;'S;=`&_<%lO%yX6vV{WOr%ysv%yw!e%y!e!f7]!f;'S%y;'S;=`&_<%lO%yX7bV{WOr%ysv%yw!v%y!v!w7w!w;'S%y;'S;=`&_<%lO%yX7|V{WOr%ysv%yw!{%y!{!|8c!|;'S%y;'S;=`&_<%lO%yX8hV{WOr%ysv%yw!r%y!r!s8}!s;'S%y;'S;=`&_<%lO%yX9SV{WOr%ysv%yw!g%y!g!h9i!h;'S%y;'S;=`&_<%lO%yX9nX{WOr9irs:Zsv9ivw:Zw!`9i!`!a:x!a;'S9i;'S;=`;`<%lO9iP:^TO!`:Z!`!a:m!a;'S:Z;'S;=`:r<%lO:ZP:rOiPP:uP;=`<%l:ZX;PTiP{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yX;cP;=`<%l9iX;kX{WOr%ysv%yw!e%y!e!f<W!f#V%y#V#W?f#W;'S%y;'S;=`&_<%lO%yX<]V{WOr%ysv%yw!f%y!f!g<r!g;'S%y;'S;=`&_<%lO%yX<wV{WOr%ysv%yw!c%y!c!d=^!d;'S%y;'S;=`&_<%lO%yX=cV{WOr%ysv%yw!v%y!v!w=x!w;'S%y;'S;=`&_<%lO%yX=}V{WOr%ysv%yw!c%y!c!d>d!d;'S%y;'S;=`&_<%lO%yX>iV{WOr%ysv%yw!}%y!}#O?O#O;'S%y;'S;=`&_<%lO%yX?VT{WxPOr%ysv%yw;'S%y;'S;=`&_<%lO%yX?kV{WOr%ysv%yw#W%y#W#X@Q#X;'S%y;'S;=`&_<%lO%yX@VV{WOr%ysv%yw#T%y#T#U@l#U;'S%y;'S;=`&_<%lO%yX@qV{WOr%ysv%yw#h%y#h#iAW#i;'S%y;'S;=`&_<%lO%yXA]V{WOr%ysv%yw#T%y#T#U>d#U;'S%y;'S;=`&_<%lO%yXAwV{WOr%ysv%yw#c%y#c#dB^#d;'S%y;'S;=`&_<%lO%yXBcV{WOr%ysv%yw#V%y#V#WBx#W;'S%y;'S;=`&_<%lO%yXB}V{WOr%ysv%yw#h%y#h#iCd#i;'S%y;'S;=`&_<%lO%yXCiV{WOr%ysv%yw#m%y#m#nDO#n;'S%y;'S;=`&_<%lO%yXDTV{WOr%ysv%yw#d%y#d#eDj#e;'S%y;'S;=`&_<%lO%yXDoV{WOr%ysv%yw#X%y#X#Y9i#Y;'S%y;'S;=`&_<%lO%yXE]T!PP{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yZEuWaQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n_FhW[UVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZGXYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aGw!a;'S$n;'S;=`&e<%lO$nZHQW!OQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZHqYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_#P$n#P#QIa#Q;'S$n;'S;=`&e<%lO$nZIhYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aJW!a;'S$n;'S;=`&e<%lO$nZJaWwQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n",
tokenizers:[pbe,fbe,mbe,gbe,0,1,2,3],topRules:{Document:[0,6]},tokenPrec:0})
;function Obe(e,t){let n=t&&t.getChild("TagName")
;return n?e.sliceString(n.from,n.to):""}function ybe(e,t){let n=t&&t.firstChild
;return n&&"OpenTag"==n.name?Obe(e,n):""}function wbe(e){
for(let t=e&&e.parent;t;t=t.parent)if("Element"==t.name)return t;return null}
let xbe=class{constructor(e,t,n){
this.attrs=t,this.attrValues=n,this.children=[],
this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"
},e.completion||{}),{label:this.name
}),this.openCompletion=Object.assign(Object.assign({},this.completion),{
label:"<"+this.name
}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{
label:"</"+this.name+">",boost:2
}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{
label:this.name+">"}),this.text=e.textContent?e.textContent.map((e=>({label:e,
type:"text"}))):[]}};const kbe=/^[:\-\.\w\u00b7-\uffff]*$/;function Sbe(e){
return Object.assign(Object.assign({type:"property"},e.completion||{}),{
label:e.name})}function _be(e){return"string"==typeof e?{label:`"${e}"`,
type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{
label:`"${e.label}"`})}function Ebe(e,t){let n=[],r=[],o=Object.create(null)
;for(let l of t){let e=Sbe(l)
;n.push(e),l.global&&r.push(e),l.values&&(o[l.name]=l.values.map(_be))}
let i=[],a=[],s=Object.create(null);for(let l of e){let e=r,t=o
;l.attributes&&(e=e.concat(l.attributes.map((e=>"string"==typeof e?n.find((t=>t.label==e))||{
label:e,type:"property"
}:(e.values&&(t==o&&(t=Object.create(t)),t[e.name]=e.values.map(_be)),
Sbe(e))))));let c=new xbe(l,e,t);s[c.name]=c,i.push(c),l.top&&a.push(c)}
a.length||(a=i);for(let l=0;l<i.length;l++){let t=e[l],n=i[l]
;if(t.children)for(let e of t.children)s[e]&&n.children.push(s[e]);else n.children=i
}return e=>{var t;let{doc:n}=e.state,l=function(e,t){var n
;let r=lpe(e).resolveInner(t,-1),o=null
;for(let i=r;!o&&i.parent;i=i.parent)"OpenTag"!=i.name&&"CloseTag"!=i.name&&"SelfClosingTag"!=i.name&&"MismatchedCloseTag"!=i.name||(o=i)
;if(o&&(o.to>t||o.lastChild.type.isError)){let e=o.parent
;if("TagName"==r.name)return"CloseTag"==o.name||"MismatchedCloseTag"==o.name?{
type:"closeTag",from:r.from,context:e}:{type:"openTag",from:r.from,
context:wbe(e)};if("AttributeName"==r.name)return{type:"attrName",from:r.from,
context:o};if("AttributeValue"==r.name)return{type:"attrValue",from:r.from,
context:o};let n=r==o||"Attribute"==r.name?r.childBefore(t):r
;return"StartTag"==(null==n?void 0:n.name)?{type:"openTag",from:t,context:wbe(e)
}:"StartCloseTag"==(null==n?void 0:n.name)&&n.to<=t?{type:"closeTag",from:t,
context:e}:"Is"==(null==n?void 0:n.name)?{type:"attrValue",from:t,context:o}:n?{
type:"attrName",from:t,context:o}:null}if("StartCloseTag"==r.name)return{
type:"closeTag",from:t,context:r.parent}
;for(;r.parent&&r.to==t&&!(null===(n=r.lastChild)||void 0===n?void 0:n.type.isError);)r=r.parent
;return"Element"==r.name||"Text"==r.name||"Document"==r.name?{type:"tag",from:t,
context:"Element"==r.name?r:wbe(r)}:null}(e.state,e.pos)
;if(!l||"tag"==l.type&&!e.explicit)return null;let{type:c,from:u,context:d}=l
;if("openTag"==c){let e=a,t=ybe(n,d);if(t){let n=s[t]
;e=(null==n?void 0:n.children)||i}return{from:u,
options:e.map((e=>e.completion)),validFor:kbe}}if("closeTag"==c){let r=ybe(n,d)
;return r?{from:u,to:e.pos+(">"==n.sliceString(e.pos,e.pos+1)?1:0),
options:[(null===(t=s[r])||void 0===t?void 0:t.closeNameCompletion)||{
label:r+">",type:"type"}],validFor:kbe}:null}if("attrName"==c){let e=s[Obe(n,d)]
;return{from:u,options:(null==e?void 0:e.attrs)||r,validFor:kbe}}
if("attrValue"==c){let t=function(e,t,n){
let r=t&&t.getChildren("Attribute").find((e=>e.from<=n&&e.to>=n)),o=r&&r.getChild("AttributeName")
;return o?e.sliceString(o.from,o.to):""}(n,d,u);if(!t)return null
;let r=s[Obe(n,d)],i=((null==r?void 0:r.attrValues)||o)[t];return i&&i.length?{
from:u,to:e.pos+('"'==n.sliceString(e.pos,e.pos+1)?1:0),options:i,
validFor:/^"[^"]*"?$/}:null}if("tag"==c){
let t=ybe(n,d),r=s[t],o=[],l=d&&d.lastChild
;!t||l&&"CloseTag"==l.name&&Obe(n,l)==t||o.push(r?r.closeCompletion:{
label:"</"+t+">",type:"type",boost:2})
;let c=o.concat(((null==r?void 0:r.children)||(d?i:a)).map((e=>e.openCompletion)))
;if(d&&(null==r?void 0:r.text.length)){let t=d.firstChild
;t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos))&&(c=c.concat(r.text))}
return{from:u,options:c,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}return null}}
const Tbe=spe.define({name:"xml",parser:bbe.configure({props:[_pe.add({
Element(e){let t=/^\s*<\//.test(e.textAfter)
;return e.lineIndent(e.node.from)+(t?0:e.unit)},
"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit}),Mpe.add({
Element(e){let t=e.firstChild,n=e.lastChild;return t&&"OpenTag"==t.name?{
from:t.to,to:"CloseTag"==n.name?n.from:e.to}:null}}),ghe.add({
"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{
block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}})
;function Cbe(e,t,n=e.length){if(!t)return""
;let r=t.firstChild,o=r&&r.getChild("TagName")
;return o?e.sliceString(o.from,Math.min(o.to,n)):""}
const Abe=kce.inputHandler.of(((e,t,n,r,o)=>{
if(e.composing||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!Tbe.isActiveAt(e.state,t,-1))return!1
;let i=o(),{state:a}=i,s=a.changeByRange((e=>{var t,n,o
;let i,{head:s}=e,l=a.doc.sliceString(s-1,s)==r,c=lpe(a).resolveInner(s,-1)
;if(l&&">"==r&&"EndTag"==c.name){let r=c.parent
;if("CloseTag"!=(null===(n=null===(t=r.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)&&(i=Cbe(a.doc,r.parent,s))){
return{range:e,changes:{from:s,to:s+(">"===a.doc.sliceString(s,s+1)?1:0),
insert:`</${i}>`}}}}else if(l&&"/"==r&&"StartCloseTag"==c.name){let e=c.parent
;if(c.from==s-2&&"CloseTag"!=(null===(o=e.lastChild)||void 0===o?void 0:o.name)&&(i=Cbe(a.doc,e,s))){
let e=s+(">"===a.doc.sliceString(s,s+1)?1:0),t=`${i}>`;return{
range:doe.cursor(s+t.length,-1),changes:{from:s,to:e,insert:t}}}}return{range:e}
}));return!s.changes.empty&&(e.dispatch([i,a.update(s,{
userEvent:"input.complete",scrollIntoView:!0})]),!0)})),Pbe=63;class Dbe{
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
}}function $be(e,t){for(let n=0,r=t-e.pos-1;;r--,n++){let t=e.peek(r)
;if(Nbe(t)||-1==t)return n}}function Rbe(e){return 32==e||9==e}function Nbe(e){
return 10==e||13==e}function Ibe(e){return Rbe(e)||Nbe(e)}function Mbe(e){
return e<0||Ibe(e)}Dbe.top=new Dbe(null,-1,0);const Lbe=new Bme({start:Dbe.top,
reduce:(e,t)=>3!=e.type||20!=t&&34!=t?e:e.parent,shift(e,t,n,r){
if(3==t)return new Dbe(e,$be(r,r.pos),1)
;if(65==t||5==t)return new Dbe(e,$be(r,r.pos),2);if(t==Pbe)return e.parent
;if(19==t||33==t)return new Dbe(e,0,3);if(13==t&&4==e.type)return e.parent
;if(47==t){let t=/[1-9]/.exec(r.read(r.pos,n.pos))
;if(t)return new Dbe(e,e.depth+ +t[0],4)}return e},hash:e=>e.hash})
;function Bbe(e,t,n=0){
return e.peek(n)==t&&e.peek(n+1)==t&&e.peek(n+2)==t&&Mbe(e.peek(n+3))}
const Qbe=new _me(((e,t)=>{
if(-1==e.next&&t.canShift(64))return e.acceptToken(64);let n=e.peek(-1)
;if((Nbe(n)||n<0)&&3!=t.context.type){if(Bbe(e,45)){
if(!t.canShift(Pbe))return e.acceptToken(1,3);e.acceptToken(Pbe)}if(Bbe(e,46)){
if(!t.canShift(Pbe))return e.acceptToken(2,3);e.acceptToken(Pbe)}let n=0
;for(;32==e.next;)n++,e.advance()
;!(n<t.context.depth)&&(n!=t.context.depth||1!=t.context.type||45==e.next&&Mbe(e.peek(1)))||-1==e.next||Nbe(e.next)||35==e.next||e.acceptToken(Pbe,-n)
}}),{contextual:!0}),jbe=new _me(((e,t)=>{
if(3!=t.context.type)if(45==e.next)e.advance(),
Mbe(e.next)&&e.acceptToken(1==t.context.type&&t.context.depth==$be(e,e.pos-1)?4:3);else if(63==e.next)e.advance(),
Mbe(e.next)&&e.acceptToken(2==t.context.type&&t.context.depth==$be(e,e.pos-1)?6:5);else{
let n=e.pos;for(;;)if(Rbe(e.next)){if(e.pos==n)return;e.advance()
}else if(33==e.next)qbe(e);else{if(38!=e.next){if(42==e.next){zbe(e);break}
if(39==e.next||34==e.next){if(Hbe(e,!0))break;return}
if(91==e.next||123==e.next){if(!Zbe(e))return;break}Ybe(e,!0,!1,0);break}zbe(e)}
for(;Rbe(e.next);)e.advance();if(58==e.next){if(e.pos==n&&t.canShift(29))return
;Mbe(e.peek(1))&&e.acceptTokenTo(2==t.context.type&&t.context.depth==$be(e,n)?66:65,n)
}}else 63==e.next&&(e.advance(),Mbe(e.next)&&e.acceptToken(7))}),{contextual:!0
});function Ube(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}
function Fbe(e,t){
return 37==e.next?(e.advance(),Ube(e.next)&&e.advance(),Ube(e.next)&&e.advance(),
!0):!!((n=e.next)>32&&n<127&&34!=n&&37!=n&&44!=n&&60!=n&&62!=n&&92!=n&&94!=n&&96!=n&&123!=n&&124!=n&&125!=n||t&&44==e.next)&&(e.advance(),
!0);var n}function qbe(e){if(e.advance(),60==e.next){
for(e.advance();;)if(!Fbe(e,!0)){62==e.next&&e.advance();break}
}else for(;Fbe(e,!1););}function zbe(e){
for(e.advance();!Mbe(e.next)&&"f"!=Wbe(e.tag);)e.advance()}function Hbe(e,t){
let n=e.next,r=!1,o=e.pos;for(e.advance();;){let i=e.next;if(i<0)break
;if(e.advance(),i==n){if(39!=i)break;if(39!=e.next)break;e.advance()
}else if(92==i&&34==n)e.next>=0&&e.advance();else if(Nbe(i)){if(t)return!1;r=!0
}else if(t&&e.pos>=o+1024)return!1}return!r}function Zbe(e){
for(let t=[],n=e.pos+1024;;)if(91==e.next||123==e.next)t.push(e.next),
e.advance();else if(39==e.next||34==e.next){if(!Hbe(e,!0))return!1
}else if(93==e.next||125==e.next){if(t[t.length-1]!=e.next-2)return!1
;if(t.pop(),e.advance(),!t.length)return!0}else{
if(e.next<0||e.pos>n||Nbe(e.next))return!1;e.advance()}}
const Vbe="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif"
;function Wbe(e){return e<33?"u":e>125?"s":Vbe[e-33]}function Xbe(e,t){
let n=Wbe(e);return"u"!=n&&!(t&&"f"==n)}function Ybe(e,t,n,r){
if("s"!=Wbe(e.next)&&(63!=e.next&&58!=e.next&&45!=e.next||!Xbe(e.peek(1),n)))return!1
;e.advance();let o=e.pos;for(;;){let i=e.next,a=0,s=r+1;for(;Ibe(i);){
if(Nbe(i)){if(t)return!1;s=0}else s++;i=e.peek(++a)}
if(!(i>=0&&(58==i?Xbe(e.peek(a+1),n):35==i?32!=e.peek(a-1):Xbe(i,n)))||!n&&s<=r||0==s&&!n&&(Bbe(e,45,a)||Bbe(e,46,a)))break
;if(t&&"f"==Wbe(i))return!1;for(let t=a;t>=0;t--)e.advance()
;if(t&&e.pos>o+1024)return!1}return!0}const Gbe=new _me(((e,t)=>{
if(33==e.next)qbe(e),e.acceptToken(12);else if(38==e.next||42==e.next){
let t=38==e.next?10:11;zbe(e),e.acceptToken(t)
}else 39==e.next||34==e.next?(Hbe(e,!1),
e.acceptToken(9)):Ybe(e,!1,3==t.context.type,t.context.depth)&&e.acceptToken(8)
})),Kbe=new _me(((e,t)=>{let n=4==t.context.type?t.context.depth:-1,r=e.pos
;e:for(;;){let o=0,i=e.next;for(;32==i;)i=e.peek(++o)
;if(!o&&(Bbe(e,45,o)||Bbe(e,46,o)))break
;if(!Nbe(i)&&(n<0&&(n=Math.max(t.context.depth+1,o)),o<n))break;for(;;){
if(e.next<0)break e;let t=Nbe(e.next);if(e.advance(),t)continue e;r=e.pos}}
e.acceptTokenTo(13,r)})),Jbe=Rde({DirectiveName:epe.keyword,
DirectiveContent:epe.attributeValue,"DirectiveEnd DocEnd":epe.meta,
QuotedLiteral:epe.string,BlockLiteralHeader:epe.special(epe.string),
BlockLiteralContent:epe.content,Literal:epe.content,
"Key/Literal Key/QuotedLiteral":epe.definition(epe.propertyName),
"Anchor Alias":epe.labelName,Tag:epe.typeName,Comment:epe.lineComment,
": , -":epe.separator,"?":epe.punctuation,"[ ]":epe.squareBracket,
"{ }":epe.brace}),eOe=Qme.deserialize({version:14,
states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_QgO'#DeO2oQgO'#DkOOQP'#Dk'#DkQ)jQaOOO3PQdO'#CsOOQO,59^,59^O3kQdO'#CuOOQO,59`,59`OOQO,59c,59cO4VQdO,59cO4aQdO'#CzO4kQ`O'#CzOOQO,59b,59bOOQU,5:Q,5:QOOQR1G.v1G.vO4pQ`O1G.vOOQU-E7d-E7dO4xQdO,59kOOQO,59k,59kO5SQdO'#DQO5^Q`O'#DQOOQO,5:d,5:dOOQU,5:R,5:ROOQR1G/U1G/UO5cQ`O1G/UOOQU-E7e-E7eO5kQgO'#DhO5xQcO1G/XOOQR1G/X1G/XOOQR,59q,59qO6TQgO,59qO6eQdO'#DiO6lQgO'#DiO7PQcO1G/[OOQR1G/[1G/[OOQR,59r,59rO#|QfO,59rOOQR1G/b1G/bO7_OWO1G/bO7dOaO1G/bOOQR,59y,59yOOQR,59{,59{OOQP1G/h1G/hO7lOaO1G/hO7tOaO1G/hO8POaO1G/hOOQP1G.s1G.sO8_QgO,5:POOQP,5:P,5:POOQP,5:V,5:VOOQP-E7i-E7iOOQO,59_,59_OOQO,59a,59aOOQO1G.}1G.}OOQO,59f,59fO8oQdO,59fOOQR7+$b7+$bP,XQ`O'#DfOOQO1G/V1G/VOOQO,59l,59lO8yQdO,59lOOQR7+$p7+$pP9TQ`O'#DgOOQR'#DT'#DTOOQR,5:S,5:SOOQR-E7f-E7fOOQR7+$s7+$sOOQR1G/]1G/]O9YQgO'#DYO9jQ`O'#DYOOQR,5:T,5:TO#|QfO'#DZO9oQcO'#DZOOQR-E7g-E7gOOQR7+$v7+$vOOQR1G/^1G/^OOQR7+$|7+$|O:QOWO7+$|OOQP7+%S7+%SO:VOaO7+%SO:_OaO7+%SOOQP1G/k1G/kOOQO1G/Q1G/QOOQO1G/W1G/WOOQR,59t,59tO:jQgO,59tOOQR,59u,59uO#|QfO,59uOOQR<<Hh<<HhOOQP<<Hn<<HnO:zOaO<<HnOOQR1G/`1G/`OOQR1G/a1G/aOOQPAN>YAN>Y",
stateData:";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX!b!QXU!QXm!QX!d!QX~P&aO[!WOP!SXQ!SX!V!SX!`!SXS!SX!a!SX!b!SXU!SXm!SX!d!SX~P&aO^!ZO!W![O!b!YO!f!]O!g!YO~OP!_O!V[OQaX!`aX~OPaXQaX!VaX!`aX~P#|OP!bOQ!cO!V[O~OP_O!V[O~P#|OWROXROY!fOcPOqQObfXmfXofXpfX~OWROXRO[!hOcPOqQObhXmhXohXphX~ObeXmlXoeX~ObkXokX~P%OOm!kO~Om!lObnPonP~P%OOb!pOo!oO~Ob!pO~P!bOm!sOosXpsX~OosXpsX~P%OOm!uOotPptP~P%OOo!xOp!yO~Op!yO~P#WOS!|O!a#OO!b#OO~OUyX!ayX!byX!dyX~P#|Om#QO~OU#SO!a#UO!b#UO!d#RO~Om#WOUzX!azX!bzX!dzX~O]#XO~O!b#XO!g#YO~O^#ZO!b#XO!g#YO~OP!RXQ!RX!V!RX!`!RXS!RX!a!RX!b!RXU!RXm!RX!d!RX~P&aOP!TXQ!TX!V!TX!`!TXS!TX!a!TX!b!TXU!TXm!TX!d!TX~P&aO!b#^O!g#^O~O^#_O!b#^O!f#`O!g#^O~O^#_O!W#aO!b#^O!g#^O~OPaaQaa!Vaa!`aa~P#|OP#cO!V[OQ!XX!`!XX~OP!XXQ!XX!V!XX!`!XX~P#|OP_O!V[OQ!_X!`!_X~P#|OWROXROcPOqQObgXmgXogXpgX~OWROXROcPOqQObiXmiXoiXpiX~Obkaoka~P%OObnXonX~P%OOm#kO~Ob#lOo!oO~Oosapsa~P%OOotXptX~P%OOm#pO~Oo!xOp#qO~OSwP!awP!bwP~P#|OS!|O!a#vO!b#vO~OUya!aya!bya!dya~P#|Om#xO~P%OOm#{OU}P!a}P!b}P!d}P~P#|OU#SO!a$OO!b$OO!d#RO~O]$QO~O!b$QO!g$RO~O!b$SO!g$SO~O^$TO!b$SO!g$SO~O^$TO!b$SO!f$UO!g$SO~OP!XaQ!Xa!V!Xa!`!Xa~P#|Obnaona~P%OOotapta~P%OOo!xO~OU|X!a|X!b|X!d|X~P#|Om$ZO~Om$]OU}X!a}X!b}X!d}X~O]$^O~O!b$_O!g$_O~O^$`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 Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",
maxTerm:74,context:Lbe,
nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],
propSources:[Jbe],skippedNodes:[0],repeatNodeCount:6,
tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",
tokenizers:[Qbe,jbe,Gbe,Kbe,0,1],topRules:{Stream:[0,15]},tokenPrec:0
}),tOe=spe.define({name:"yaml",parser:eOe.configure({props:[_pe.add({Stream:e=>{
for(let t=e.node.resolve(e.pos,-1);t&&t.to>=e.pos;t=t.parent){
if("BlockLiteralContent"==t.name&&t.from<t.to)return e.baseIndentFor(t)
;if("BlockLiteral"==t.name)return e.baseIndentFor(t)+e.unit
;if("BlockSequence"==t.name||"BlockMapping"==t.name)return e.column(t.from,1)
;if("QuotedLiteral"==t.name)return null;if("Literal"==t.name){
let n=e.column(t.from,1);if(n==e.lineIndent(t.from,1))return n
;if(t.to>e.pos)return null}}return null},FlowMapping:Dpe({closing:"}"}),
FlowSequence:Dpe({closing:"]"})}),Mpe.add({"FlowMapping FlowSequence":Lpe,
"BlockSequence Pair BlockLiteral":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to
})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}})
;function nOe(){var e=arguments[0]
;"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1]
;if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){
for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r]
;"string"==typeof o?e.setAttribute(r,o):null!=o&&(e[r]=o)}t++}
for(;t<arguments.length;t++)rOe(e,arguments[t]);return e}function rOe(e,t){
if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{
if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t)
;for(var n=0;n<t.length;n++)rOe(e,t[n])}}class oOe{constructor(e,t,n){
this.from=e,this.to=t,this.diagnostic=n}}class iOe{constructor(e,t,n){
this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){
let r=e,o=n.facet(vOe).markerFilter;o&&(r=o(r,n))
;let i=Mae.set(r.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?Mae.widget({
widget:new yOe(e),diagnostic:e}).range(e.from):Mae.mark({attributes:{
class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},
diagnostic:e}).range(e.from,e.to))),!0);return new iOe(i,t,aOe(i))}}
function aOe(e,t=null,n=0){let r=null;return e.between(n,1e9,((e,n,{spec:o})=>{
if(!t||o.diagnostic==t)return r=new oOe(e,n,o.diagnostic),!1})),r}
function sOe(e,t){return e.field(dOe,!1)?t:t.concat(zoe.appendConfig.of(_Oe))}
const lOe=zoe.define(),cOe=zoe.define(),uOe=zoe.define(),dOe=woe.define({
create:()=>new iOe(Mae.none,null,null),update(e,t){
if(t.docChanged&&e.diagnostics.size){
let n=e.diagnostics.map(t.changes),r=null,o=e.panel;if(e.selected){
let o=t.changes.mapPos(e.selected.from,1)
;r=aOe(n,e.selected.diagnostic,o)||aOe(n,null,o)}
!n.size&&o&&t.state.facet(vOe).autoPanel&&(o=null),e=new iOe(n,o,r)}
for(let n of t.effects)if(n.is(lOe)){
let r=t.state.facet(vOe).autoPanel?n.value.length?xOe.open:null:e.panel
;e=iOe.init(n.value,r,t.state)
}else n.is(cOe)?e=new iOe(e.diagnostics,n.value?xOe.open:null,e.selected):n.is(uOe)&&(e=new iOe(e.diagnostics,e.panel,n.value))
;return e},
provide:e=>[gue.from(e,(e=>e.panel)),kce.decorations.from(e,(e=>e.diagnostics))]
}),pOe=Mae.mark({class:"cm-lintRange cm-lintRange-active"});function hOe(e,t,n){
let{diagnostics:r}=e.state.field(dOe),o=[],i=2e8,a=0
;r.between(t-(n<0?1:0),t+(n>0?1:0),((e,r,{spec:s})=>{
t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t<r||n<0))&&(o.push(s.diagnostic),
i=Math.min(e,i),a=Math.max(r,a))}));let s=e.state.facet(vOe).tooltipFilter
;return s&&(o=s(o,e.state)),o.length?{pos:i,end:a,
above:e.state.doc.lineAt(i).to<a,create:()=>({dom:fOe(e,o)})}:null}
function fOe(e,t){return nOe("ul",{class:"cm-tooltip-lint"
},t.map((t=>OOe(e,t,!1))))}const mOe=e=>{let t=e.state.field(dOe,!1)
;return!(!t||!t.panel)&&(e.dispatch({effects:cOe.of(!1)}),!0)
},gOe=Tse.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0
;let{delay:t}=e.state.facet(vOe)
;this.lintTime=Date.now()+t,this.run=this.run.bind(this),
this.timeout=setTimeout(this.run,t)}run(){clearTimeout(this.timeout)
;let e=Date.now()
;if(e<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-e);else{
this.set=!1;let{state:e}=this.view,{sources:t}=e.facet(vOe)
;t.length&&Promise.all(t.map((e=>Promise.resolve(e(this.view))))).then((t=>{
let n=t.reduce(((e,t)=>e.concat(t)))
;this.view.state.doc==e.doc&&this.view.dispatch(function(e,t){return{
effects:sOe(e,[lOe.of(t)])}}(this.view.state,n))}),(e=>{kse(this.view.state,e)
}))}}update(e){let t=e.state.facet(vOe)
;(e.docChanged||t!=e.startState.facet(vOe)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,
this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){
this.set&&(this.lintTime=Date.now(),this.run())}destroy(){
clearTimeout(this.timeout)}}),vOe=foe.define({combine:e=>Object.assign({
sources:e.map((e=>e.source)).filter((e=>null!=e))},rie(e.map((e=>e.config)),{
delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null
},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function bOe(e){let t=[]
;if(e)e:for(let{name:n}of e){for(let e=0;e<n.length;e++){let r=n[e]
;if(/[a-zA-Z]/.test(r)&&!t.some((e=>e.toLowerCase()==r.toLowerCase()))){
t.push(r);continue e}}t.push("")}return t}function OOe(e,t,n){var r
;let o=n?bOe(t.actions):[];return nOe("li",{
class:"cm-diagnostic cm-diagnostic-"+t.severity},nOe("span",{
class:"cm-diagnosticText"
},t.renderMessage?t.renderMessage(e):t.message),null===(r=t.actions)||void 0===r?void 0:r.map(((n,r)=>{
let i=!1,a=r=>{if(r.preventDefault(),i)return;i=!0
;let o=aOe(e.state.field(dOe).diagnostics,t);o&&n.apply(e,o.from,o.to)
},{name:s}=n,l=o[r]?s.indexOf(o[r]):-1,c=l<0?s:[s.slice(0,l),nOe("u",s.slice(l,l+1)),s.slice(l+1)]
;return nOe("button",{type:"button",class:"cm-diagnosticAction",onclick:a,
onmousedown:a,"aria-label":` Action: ${s}${l<0?"":` (access key "${o[r]})"`}.`
},c)})),t.source&&nOe("div",{class:"cm-diagnosticSource"},t.source))}
class yOe extends Nae{constructor(e){super(),this.diagnostic=e}eq(e){
return e.diagnostic==this.diagnostic}toDOM(){return nOe("span",{
class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class wOe{
constructor(e,t){
this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),
this.dom=OOe(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}
}class xOe{constructor(e){this.view=e,this.items=[];this.list=nOe("ul",{
tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),
onkeydown:t=>{
if(27==t.keyCode)mOe(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{
if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{
let{diagnostic:n}=this.items[this.selectedIndex],r=bOe(n.actions)
;for(let o=0;o<r.length;o++)if(r[o].toUpperCase().charCodeAt(0)==t.keyCode){
let t=aOe(this.view.state.field(dOe).diagnostics,n)
;t&&n.actions[o].apply(e,t.from,t.to)}}}t.preventDefault()},onclick:e=>{
for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)
}}),this.dom=nOe("div",{class:"cm-panel-lint"},this.list,nOe("button",{
type:"button",name:"close","aria-label":this.view.state.phrase("close"),
onclick:()=>mOe(this.view)},"×")),this.update()}get selectedIndex(){
let e=this.view.state.field(dOe).selected;if(!e)return-1
;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t
;return-1}update(){
let{diagnostics:e,selected:t}=this.view.state.field(dOe),n=0,r=!1,o=null
;for(e.between(0,this.view.state.doc.length,((e,i,{spec:a})=>{let s,l=-1
;for(let t=n;t<this.items.length;t++)if(this.items[t].diagnostic==a.diagnostic){
l=t;break}
l<0?(s=new wOe(this.view,a.diagnostic),this.items.splice(n,0,s),r=!0):(s=this.items[l],
l>n&&(this.items.splice(n,l-n),
r=!0)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute("aria-selected")||(s.dom.setAttribute("aria-selected","true"),
o=s):s.dom.hasAttribute("aria-selected")&&s.dom.removeAttribute("aria-selected"),
n++
}));n<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)r=!0,
this.items.pop();0==this.items.length&&(this.items.push(new wOe(this.view,{
from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")
})),
r=!0),o?(this.list.setAttribute("aria-activedescendant",o.id),this.view.requestMeasure({
key:this,read:()=>({sel:o.dom.getBoundingClientRect(),
panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{
let n=t.height/this.list.offsetHeight
;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/n:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)
}
})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()
}sync(){let e=this.list.firstChild;function t(){let t=e
;e=t.nextSibling,t.remove()}
for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t()
;e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}
moveSelection(e){if(this.selectedIndex<0)return
;let t=aOe(this.view.state.field(dOe).diagnostics,this.items[e].diagnostic)
;t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,
effects:uOe.of(t)})}static open(e){return new xOe(e)}}function kOe(e){
return function(e,t='viewBox="0 0 40 40"'){
return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`
}(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')
}const SOe=kce.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",
marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},
".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{
borderLeft:"5px solid orange"},".cm-diagnostic-info":{
borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"
},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",
backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",
cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},
".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",
paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:kOe("#d11")},
".cm-lintRange-warning":{backgroundImage:kOe("orange")},".cm-lintRange-info":{
backgroundImage:kOe("#999")},".cm-lintRange-hint":{backgroundImage:kOe("#66d")},
".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{
padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{
content:'""',position:"absolute",bottom:0,left:"-2px",
borderLeft:"3px solid transparent",borderRight:"3px solid transparent",
borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{
borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{
borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{
borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative",
"& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{
backgroundColor:"#ddd","& u":{textDecoration:"underline"}},
"&:focus [aria-selected]":{background_fallback:"#bdf",
backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},
"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{
position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",
font:"inherit",padding:0,margin:0}}
}),_Oe=[dOe,kce.decorations.compute([dOe],(e=>{
let{selected:t,panel:n}=e.field(dOe)
;return t&&n&&t.from!=t.to?Mae.set([pOe.range(t.from,t.to)]):Mae.none
})),cue(hOe,{hideOn:function(e,t){
let n=t.pos,r=t.end||n,o=e.state.facet(vOe).hideOn(e,n,r);if(null!=o)return o
;let i=e.startState.doc.lineAt(t.pos)
;return!(!e.effects.some((e=>e.is(lOe)))&&!e.changes.touchesRange(i.from,Math.max(i.to,r)))
}}),SOe];const EOe=(e=>{var{theme:t,settings:n={},styles:r=[]}=e,o={
".cm-gutters":{}},i={}
;n.background&&(i.backgroundColor=n.background),n.backgroundImage&&(i.backgroundImage=n.backgroundImage),
n.foreground&&(i.color=n.foreground),
n.fontSize&&(i.fontSize=n.fontSize),(n.background||n.foreground)&&(o["&"]=i),
n.fontFamily&&(o["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily
}),n.gutterBackground&&(o[".cm-gutters"].backgroundColor=n.gutterBackground),
n.gutterForeground&&(o[".cm-gutters"].color=n.gutterForeground),
n.gutterBorder&&(o[".cm-gutters"].borderRightColor=n.gutterBorder),
n.caret&&(o[".cm-content"]={caretColor:n.caret
},o[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var a={}
;return n.gutterActiveForeground&&(a.color=n.gutterActiveForeground),
n.lineHighlight&&(o[".cm-activeLine"]={backgroundColor:n.lineHighlight
},a.backgroundColor=n.lineHighlight),
o[".cm-activeLineGutter"]=a,n.selection&&(o["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={
background:n.selection+" !important"
}),n.selectionMatch&&(o["& .cm-selectionMatch"]={
backgroundColor:n.selectionMatch}),[kce.theme(o,{dark:"dark"===t
}),ohe(ehe.define(r))]})({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:[epe.standard(epe.tagName),epe.tagName],
color:"var(--scalar-color-purple)"},{tag:[epe.comment],
color:"var(--scalar-color-3)"},{tag:[epe.className],
color:"var(--scalar-color-orange)"},{
tag:[epe.variableName,epe.propertyName,epe.attributeName],
color:"var(--scalar-color-1)"},{tag:[epe.operator],color:"var(--scalar-color-2)"
},{tag:[epe.keyword,epe.typeName,epe.typeOperator],
color:"var(--scalar-color-green)"},{tag:[epe.string],
color:"var(--scalar-color-blue)"},{tag:[epe.bracket,epe.regexp,epe.meta],
color:"var(--scalar-color-3)"},{tag:[epe.number],
color:"var(--scalar-color-blue)"},{tag:[epe.name,epe.quote],
color:"var(--scalar-color-3)"},{tag:[epe.heading],color:"var(--scalar-color-3)",
fontWeight:"bold"},{tag:[epe.emphasis],color:"var(--scalar-color-3)",
fontStyle:"italic"},{tag:[epe.deleted],color:"var(--scalar-color-3)",
backgroundColor:"transparent"},{
tag:[epe.atom,epe.bool,epe.special(epe.variableName)],
color:"var(--scalar-color-3)"},{tag:[epe.url,epe.escape,epe.regexp,epe.link],
color:"var(--scalar-color-1)"},{tag:epe.link,textDecoration:"underline"},{
tag:epe.strikethrough,textDecoration:"line-through"},{tag:epe.invalid,
color:"var(--scalar-color-3)"}]})
;var TOe=Object.defineProperty,COe=(e,t,n)=>((e,t,n)=>t in e?TOe(e,t,{
enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,t+"",n)
;const AOe=new Bce({regexp:/(\{[^}]+\})/g,decoration:()=>Mae.mark({attributes:{
class:"api-client-url-variable"}})}),POe=()=>Tse.fromClass(class{constructor(e){
COe(this,"variables"),this.variables=AOe.createDeco(e)}update(e){
this.variables=AOe.updateDeco(e,this.variables)}},{decorations:e=>e.variables,
provide:e=>kce.atomicRanges.of((t=>{var n
;return(null==(n=t.plugin(e))?void 0:n.variables)||Mae.none}))
}),DOe=e=>"provider"in e&&!!qn(e.provider),$Oe={key:"Mod-a",run:e=>(e.dispatch({
selection:{anchor:0,head:e.state.doc.length},scrollIntoView:!1}),!0)},ROe=e=>{
const t=Bn(null);function n(){if(e.codeMirrorRef.value){
const n=DOe(e)?qn(e.provider):null,i=IOe({...r.value,provider:n})
;t.value=new kce({parent:e.codeMirrorRef.value,extensions:i
}),DOe(e)||o(qn(e.content))}}li(e.codeMirrorRef,(()=>{var e
;null==(e=t.value)||e.destroy(),n()}),{immediate:!0}),zr((()=>{var e
;return null==(e=t.value)?void 0:e.destroy()}));const r=Aa((()=>({
onChange:e.onChange,onBlur:e.onBlur,onFocus:e.onFocus,
disableTabIndent:qn(e.disableTabIndent),language:qn(e.language),
classes:qn(e.classes),readOnly:qn(e.readOnly),lineNumbers:qn(e.lineNumbers),
withVariables:qn(e.withVariables),disableEnter:qn(e.disableEnter),
disableCloseBrackets:qn(e.disableCloseBrackets),withoutTheme:qn(e.withoutTheme),
lint:qn(e.lint),additionalExtensions:qn(e.extensions),
placeholder:qn(e.placeholder)})));li((()=>DOe(e)?qn(e.provider):null),(()=>{
var r;DOe(e)&&(null==(r=t.value)||r.destroy(),n())})),li(r,(()=>{if(t.value){
const n=DOe(e)?qn(e.provider):null,o=IOe({...r.value,provider:n})
;t.value.dispatch({effects:zoe.reconfigure.of(o)})}}),{immediate:!0})
;const o=(e="")=>{t.value&&t.value.state.doc.toString()!==e&&t.value.dispatch({
changes:{from:0,to:t.value.state.doc.length,insert:e},selection:{
anchor:Math.min(t.value.state.selection.main.anchor,e.length)}})}
;return li((()=>qn(e.content)),(()=>{DOe(e)||o(qn(e.content))}),{immediate:!0}),
{setCodeMirrorContent:o,codeMirror:t}},NOe={html:function(e={}){let t,n=""
;!1===e.matchClosingTags&&(n="noMatch"),
!0===e.selfClosingTags&&(n=(n?n+" ":"")+"selfClosing"),
(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(t=Wge((e.nestedLanguages||[]).concat(Yve),(e.nestedAttributes||[]).concat(Gve)))
;let r=t?Kve.configure({wrap:t,dialect:n}):n?Jve.configure({dialect:n}):Jve
;return new bpe(r,[Jve.data.of({autocomplete:Wve(e)
}),!1!==e.autoCloseTags?tbe:[],Eve().support,pge().support])},json:function(){
return new bpe(obe)},yaml:function(){return new bpe(tOe)},css:pge,
xml:function(e={}){let t=[Tbe.data.of({
autocomplete:Ebe(e.elements||[],e.attributes||[])})]
;return!1!==e.autoCloseTags&&t.push(Abe),new bpe(Tbe,t)}}
;function IOe({onChange:e,onBlur:t,onFocus:n,provider:r,language:o,classes:i=[],readOnly:a=!1,lineNumbers:s=!1,withVariables:l=!1,disableEnter:c=!1,disableCloseBrackets:u=!1,disableTabIndent:d=!1,withoutTheme:p=!1,lint:h=!1,additionalExtensions:f=[],placeholder:m}){
const g=[zce(),ohe(she,{fallback:!0}),kce.theme({".cm-line":{lineHeight:"20px",
padding:"0 2px 0 4px"},".cm-gutterElement":{lineHeight:"20px"},".cm-tooltip":{
border:"1px solid #f5c6cb",fontSize:"12px"},".cm-tooltip-lint":{
backgroundColor:"#ffffff"},".cm-diagnostic-error":{borderLeft:"0",
color:"#dc1b19"},".cm-foldPlaceholder":{background:"var(--scalar-background-1)",
border:"none",fontFamily:"var(--scalar-font)"}}),kce.updateListener.of((t=>{
t.docChanged&&(null==e||e(t.state.doc.toString()))})),kce.domEventHandlers({
blur:(e,n)=>{null==t||t(n.state.doc.toString())},focus:(e,t)=>{
null==n||n(t.state.doc.toString())}}),kce.editorAttributes.of({class:i.join(" ")
}),...f]
;if(r&&g.push(r),p||g.push(EOe),a?g.push(kce.editable.of(!1)):(g.push(nie.transactionFilter.of((e=>{
if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e
;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head)
;if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,o=n.lineAt(r)
;if(r>o.from+Npe)return e;let i=n.sliceString(o.from,r)
;if(!t.some((e=>e.test(i))))return e;let{state:a}=e,s=-1,l=[]
;for(let{head:c}of a.selection.ranges){let e=a.doc.lineAt(c)
;if(e.from==s)continue;s=e.from;let t=kpe(a,e.from);if(null==t)continue
;let n=/^\s*/.exec(e.text)[0],r=xpe(a,t);n!=r&&l.push({from:e.from,
to:e.from+n.length,insert:r})}return l.length?[e,{changes:l,sequential:!0}]:e
})),mhe(),function(e={}){return[Cfe,wfe,ofe.of(e),Efe,dme,Afe]
}(),Dce.of([...ume,$Oe]),mhe()),
u||g.push([tme,Yfe],Dce.of([...nme])),d?g.push(Dce.of([{key:"Tab",run:()=>!1,
shift:()=>!1}])):g.push(Dce.of([fme]))),m&&g.push((v=m,Tse.fromClass(class{
constructor(e){this.view=e,this.placeholder=v?Mae.set([Mae.widget({
widget:new Wce(v),side:1}).range(0)]):Mae.none}get decorations(){
return this.view.state.doc.length?Mae.none:this.placeholder}},{
decorations:e=>e.decorations}))),s&&g.push(function(e={}){
return[Due.of(e),kue(),Nue]}()),o&&NOe[o]&&g.push(NOe[o](),function(e={}){
let t=Object.assign(Object.assign({},Gpe),e),n=new Kpe(t,!0),r=new Kpe(t,!1),o=Tse.fromClass(class{
constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}
update(e){
(e.docChanged||e.viewportChanged||e.startState.facet(vpe)!=e.state.facet(vpe)||e.startState.field(qpe,!1)!=e.state.field(qpe,!1)||lpe(e.startState)!=lpe(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))
}buildMarkers(e){let t=new cie;for(let o of e.viewportLineBlocks){
let i=zpe(e.state,o.from,o.to)?r:Qpe(e.state,o.from,o.to)?n:null
;i&&t.add(o.from,o.from,i)}return t.finish()}}),{domEventHandlers:i}=t
;return[o,wue({class:"cm-foldGutter",markers(e){var t
;return(null===(t=e.plugin(o))||void 0===t?void 0:t.markers)||lie.empty},
initialSpacer:()=>new Kpe(t,!1),
domEventHandlers:Object.assign(Object.assign({},i),{click:(e,t,n)=>{
if(i.click&&i.click(e,t,n))return!0;let r=zpe(e.state,t.from,t.to)
;if(r)return e.dispatch({effects:Fpe.of(r)}),!0;let o=Qpe(e.state,t.from,t.to)
;return!!o&&(e.dispatch({effects:Upe.of(o)}),!0)}})}),[qpe,Jpe]]}({
markerDOM:e=>{const t=document.createElement("div")
;t.classList.add("cm-foldMarker");return((...e)=>{Ls().render(...e)})(Pa(xZ,{
icon:e?"ChevronDown":"ChevronRight",size:"xs"}),t),t}})),h&&"json"===o){
const e=function(e,t={}){return[vOe.of({source:e,config:t}),gOe,_Oe]}((e=>{
const t=[],n=e.state.doc.toString();if(n.trim())try{JSON.parse(n)}catch(r){
r instanceof Error&&t.push({from:0,to:e.state.doc.length,severity:"error",
message:r.message})}return t}));g.push(e)}var v
;return l&&g.push(POe()),c?g.push(Dce.of([{key:"Enter",run:()=>!0},{
key:"Ctrl-Enter",mac:"Cmd-Enter",run:()=>!0},{key:"Shift-Enter",run:()=>!0
}])):g.push(Dce.of([{key:"Enter",run:pme}])),g}const MOe={class:"w-full"},LOe={
class:"text-c-1"},BOe={class:"flex items-center justify-center h-4 w-4"
},QOe=ea("span",null,"Add value",-1),jOe=eo({__name:"DataTableInputSelect",
props:{modelValue:{},value:{},canAddCustomValue:{type:Boolean,default:!0}},
emits:["update:modelValue"],setup(e,{emit:t}){
const n=e,r=t,o=Aa((()=>n.value??[])),i=Bn(n.modelValue.toString()),a=Bn(!1),s=Bn(""),l=Bn(null)
;li(s,(e=>{r("update:modelValue",e)}));const c=e=>{
i.value=e,r("update:modelValue",e),a.value=!1},u=()=>{
s.value.trim()&&(c(s.value),s.value="")},d=()=>{
s.value.trim()||(i.value="",a.value=!1)},p=e=>i.value===e;return li(a,(e=>{
e&&dr((()=>{var e;null==(e=l.value)||e.focus()}))
})),(e,t)=>(zi(),Wi("div",MOe,[a.value?Yr((zi(),Wi("input",{key:0,
ref_key:"inputRef",ref:l,"onUpdate:modelValue":t[0]||(t[0]=e=>s.value=e),
class:"border-none text-c-1 min-w-0 w-full px-2 py-1.5 outline-none",
placeholder:"Value",type:"text",onBlur:d,onKeyup:Ns(u,["enter"])
},null,544)),[[ks,s.value]]):(zi(),Xi(Fn(dW),{key:1,resize:"",value:i.value},{
items:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(o.value,(e=>(zi(),Xi(Fn(mW),{key:e,
class:"flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
value:e,onClick:t=>c(e)},{default:Tr((()=>[ea("div",{
class:et(["flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",p(e)?"bg-blue text-b-1":"text-transparent"])
},[ta(Fn(xZ),{class:"size-2.5",icon:"Checkmark",thickness:"3.5"
})],2),oa(" "+st(e),1)])),_:2
},1032,["value","onClick"])))),128)),ta(Fn(hW)),e.canAddCustomValue?(zi(),
Xi(Fn(mW),{key:0,class:"flex items-center gap-1.5",
onClick:t[1]||(t[1]=e=>a.value=!0)},{default:Tr((()=>[ea("div",BOe,[ta(Fn(xZ),{
class:"h-2.5",icon:"Add"})]),QOe])),_:1})):aa("",!0)])),
default:Tr((()=>[ta(Fn(LI),{
class:"gap-1.5 font-normal h-full justify-start px-2 py-1.5",fullWidth:"",
variant:"ghost"},{
default:Tr((()=>[ea("span",LOe,st(i.value||"Select a value"),1),ta(Fn(xZ),{
icon:"ChevronDown",size:"xs"})])),_:1})])),_:1},8,["value"]))]))}})
;function UOe(e){return e.flatMap((e=>{if("value"===e.key)try{
const t=JSON.parse(e.value);return Object.keys(t).map((e=>({key:e,value:t[e]})))
}catch{}return[]}))}
var FOe=Object.defineProperty,qOe=(e,t,n)=>((e,t,n)=>t in e?FOe(e,t,{
enumerable:!0,configurable:!0,writable:!0,value:n
}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);let zOe=class e extends Nae{
constructor(e,t,n,r){
super(),qOe(this,"app"),qOe(this,"environments"),qOe(this,"activeEnvVariables"),
qOe(this,"isReadOnly"),
this.variableName=e,this.variableName=e,this.environments=t,
this.activeEnvVariables=n,this.isReadOnly=r}toDOM(){
const e=document.createElement("span")
;e.className="cm-pill",e.textContent=`${this.variableName}`;const t=eo({props:{
variableName:{type:String,default:null}},render:()=>{
const t=UOe(this.activeEnvVariables.value).find((e=>e.key===this.variableName))
;t&&(e.className+=` bg-${(e=>{var t
;return(null==(t=e.value.find((e=>"color"===e.key)))?void 0:t.value)||"grey"
})(this.activeEnvVariables)}`);const n=t?Pa("div",{class:"p-2"
},t.value):Pa("div",{class:"divide-y divide-1/2 grid"},[Pa("span",{class:"p-2"
},"Variable not found"),!this.isReadOnly&&Pa("div",{class:"p-1"},[Pa(LI,{
class:"gap-1.5 justify-start font-normal px-1 py-1.5 h-auto transition-colors rounded no-underline text-xxs w-full hover:bg-b-2",
variant:"ghost",onClick:()=>{window.location.href="/environment"}},[Pa(xZ,{
class:"w-2",icon:"Add",size:"xs"}),"Add variable"])])]);return Pa(_K,{
align:"start",class:"bg-b-1 w-full",delay:0,side:"bottom",sideOffset:6},{
trigger:()=>Pa("span",`${this.variableName}`),content:()=>Pa("div",{
class:"w-content shadow-lg rounded bg-b-1 text-xxs leading-5 text-c-1"},n)})}})
;return this.app=Bs(t,{variableName:this.variableName}),this.app.mount(e),e}
destroy(){this.app&&this.app.unmount()}eq(t){
return t instanceof e&&t.variableName===this.variableName}ignoreEvent(){return!1
}};const HOe=e=>Tse.fromClass(class{constructor(e){
qOe(this,"decorations"),this.decorations=this.buildDecorations(e)}update(e){
(e.docChanged||e.viewportChanged)&&(this.decorations=this.buildDecorations(e.view))
}buildDecorations(t){const n=new cie;for(const{from:r,to:o}of t.visibleRanges){
const i=t.state.doc.sliceString(r,o);let a;for(;null!==(a=Nd.exec(i));){
const t=r+a.index,o=t+a[0].length,i=a[1];n.add(t,o,Mae.widget({
widget:new zOe(i,e.environments,e.activeEnvVariables,e.isReadOnly),side:1}))}}
return n.finish()}},{decorations:e=>e.decorations}),ZOe=kce.domEventHandlers({
keydown(e,t){if("Backspace"===e.key){
const{state:n}=t,{from:r,to:o}=n.selection.main
;if(0===r&&o===n.doc.length)return t.dispatch({changes:{from:0,to:n.doc.length},
selection:{anchor:0}}),e.preventDefault(),!0
;if(r===o&&r>0&&"}}"===n.doc.sliceString(r-2,r))return t.dispatch({changes:{
from:r-2,to:o},selection:{anchor:r-2}}),e.preventDefault(),!0}return!1}}),VOe={
key:0},WOe=["onClick"],XOe={class:"flex items-center gap-1.5 whitespace-nowrap"
},YOe={class:"w-20 overflow-hidden text-ellipsis text-right whitespace-nowrap"
},GOe=eo({__name:"EnvironmentVariableDropdown",props:{query:{},
activeEnvVariables:{},router:{},dropdownPosition:{}},emits:["select"],
setup(e,{emit:t}){const n=e,r=t,o=Bn(!0),i=Bn(null),a=()=>{
const e=l.value.params.workspace
;s(`/workspace/${e}/environment/default`),o.value=!1
},{push:s,currentRoute:l}=n.router,c=new TJ(UOe(n.activeEnvVariables.value),{
keys:["key","value"]}),u=Aa((()=>{const e=n.query
;if(!e)return UOe(n.activeEnvVariables.value).slice(-4);const t=c.search(e)
;return t.length>0?t.map((e=>e.item)):[]}));return function(e,t,n={}){
const{window:r=uK,ignore:o=[],capture:i=!0,detectIframe:a=!1}=n;if(!r)return oK
;iK&&!pK&&(pK=!0,
Array.from(r.document.body.children).forEach((e=>e.addEventListener("click",oK))),
r.document.documentElement.addEventListener("click",oK));let s=!0
;const l=e=>o.some((t=>{
if("string"==typeof t)return Array.from(r.document.querySelectorAll(t)).some((t=>t===e.target||e.composedPath().includes(t)))
;{const n=cK(t);return n&&(e.target===n||e.composedPath().includes(n))}
})),c=[dK(r,"click",(n=>{const r=cK(e)
;r&&r!==n.target&&!n.composedPath().includes(r)&&(0===n.detail&&(s=!l(n)),
s?t(n):s=!0)}),{passive:!0,capture:i}),dK(r,"pointerdown",(t=>{const n=cK(e)
;s=!l(t)&&!(!n||t.composedPath().includes(n))}),{passive:!0
}),a&&dK(r,"blur",(n=>{setTimeout((()=>{var o;const i=cK(e)
;"IFRAME"!==(null==(o=r.document.activeElement)?void 0:o.tagName)||(null==i?void 0:i.contains(r.document.activeElement))||t(n)
}),0)}))].filter(Boolean)}(i,(()=>{o.value=!1}),{ignore:[i]}),(e,t)=>{var s,l
;return zi(),Xi(Fn(dW),{ref_key:"dropdownRef",ref:i,
class:"mt-2 z-10 min-w-60 rounded border bg-b-1 p-1 w-fit",static:"",
staticOpen:o.value,style:Xe({
left:(null==(s=e.dropdownPosition)?void 0:s.left)+"px",
top:(null==(l=e.dropdownPosition)?void 0:l.top)+"px"}),teleport:".scalar-client"
},{
items:Tr((()=>[u.value.length?(zi(),Wi("ul",VOe,[(zi(!0),Wi(Bi,null,Kr(u.value,(e=>(zi(),
Wi("li",{key:e.key,
class:"h-8 font-code text-xxs hover:bg-b-2 flex cursor-pointer items-center justify-between gap-1.5 rounded p-1.5 transition-colors duration-150",
onClick:t=>(e=>{r("select",e)})(e.key)},[ea("div",XOe,[ea("span",{
class:et(["h-2.5 w-2.5 min-w-2.5 rounded-full",n.activeEnvVariables.value.map((e=>{
if("color"===e.key)return`bg-${e.value}`}))])
},null,2),oa(" "+st(e.key),1)]),ea("span",YOe,st(e.value),1)],8,WOe)))),128))])):(zi(),
Xi(Fn(LI),{key:1,
class:"font-code text-xxs hover:bg-b-2 flex h-8 w-full justify-start gap-2 px-1.5 transition-colors duration-150",
variant:"secondary",onClick:a},{default:Tr((()=>[ta(Fn(xZ),{class:"w-2.5",
icon:"Add"}),oa(" Add Variable ")])),_:1}))])),_:1},8,["staticOpen","style"])}}
}),KOe=["id"],JOe={key:3,class:"absolute centered-y right-7 text-orange text-xs"
},eye={key:4,
class:"required absolute centered-y right-0 pt-px pr-2 text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-has-[.cm-focused]:opacity-0 pointer-events-none"
},tye=eo({inheritAttrs:!1,__name:"CodeInput",props:{colorPicker:{type:Boolean,
default:!1},modelValue:{},error:{type:Boolean},emitOnBlur:{type:Boolean,
default:!0},lineNumbers:{type:Boolean},lint:{type:Boolean},disableTabIndent:{
type:Boolean,default:!1},language:{},handleFieldSubmit:{},handleFieldChange:{},
placeholder:{},required:{type:Boolean},disableEnter:{type:Boolean,default:!1},
disableCloseBrackets:{type:Boolean,default:!1},enum:{},type:{},nullable:{
type:Boolean,default:!1},withVariables:{type:Boolean,default:!0}},
emits:["submit","update:modelValue"],setup(e,{expose:t,emit:n}){var r
;const o=e,i=n,a=uo(),s=a.id||`id-${CZ()}`,l=Bn(!1),c=Bn(!1),u=Bn(""),d=Bn({
left:0,top:0}),{activeEnvVariables:p,isReadOnly:h,environments:f,router:m}=fne()
;function g(e){l.value=!1,o.emitOnBlur&&o.modelValue&&function(e){
o.handleFieldSubmit?o.handleFieldSubmit(e):i("submit",e)}(e)}const v=[]
;o.colorPicker&&v.push(zhe),v.push(HOe({environments:f,activeEnvVariables:p,
isReadOnly:h}),ZOe);const b=Bn(null),{codeMirror:O}=ROe({
content:Gn((()=>void 0!==o.modelValue?String(o.modelValue):"")),onChange:e=>{
(function(e){
e===o.modelValue||(o.handleFieldChange?o.handleFieldChange(e):i("update:modelValue",e))
})(e),w()},onFocus:()=>l.value=!0,onBlur:e=>g(e),codeMirrorRef:b,
disableTabIndent:Gn((()=>o.disableTabIndent)),
disableEnter:Gn((()=>o.disableEnter)),
disableCloseBrackets:Gn((()=>o.disableCloseBrackets)),
lineNumbers:Gn((()=>o.lineNumbers)),language:Gn((()=>o.language)),
lint:Gn((()=>o.lint)),extensions:v,placeholder:Gn((()=>o.placeholder))})
;null==(r=O.value)||r.focus(),li(O,(()=>{
O.value&&Object.prototype.hasOwnProperty.call(a,"autofocus")&&O.value.focus()}))
;const{handleDropdownSelect:y,updateDropdownVisibility:w}=function(e){
const{codeMirror:t,query:n,showDropdown:r,dropdownPosition:o}=e;function i(){
var e;return(null==(e=t.value)?void 0:e.state.selection.main.head)||0}
function a(e){var n;return null==(n=t.value)?void 0:n.coordsAtPos(e)}
function s(){const e=a(i()-n.value.length-2);e&&(o.value={left:e.left,
top:Math.max(e.bottom)})}function l(){var e
;const l=i(),c=(null==(e=t.value)?void 0:e.state.doc.sliceString(0,l))||"",u=c.lastIndexOf("{{")
;u>c.lastIndexOf("}}")?(n.value=c.slice(u+2),r.value=!0,o.value=a(l)||{left:0,
top:0},""===n.value&&s()):r.value=!1}return li(n,s),li((()=>{var e
;return null==(e=t.value)?void 0:e.state.doc.toString()}),l),{
handleDropdownSelect:function(e){var o
;const a=`{{${e}}}`,s=i(),l=Math.max(0,s-n.value.length-2),c=s
;null==(o=t.value)||o.dispatch({changes:{from:l,to:c,insert:a}}),r.value=!1},
updateDropdownVisibility:l}}({codeMirror:O,query:u,showDropdown:c,
dropdownPosition:d}),x=Aa((()=>{var e
;return"boolean"===o.type||null!=(e=o.type)&&e.includes("boolean")||o.nullable?["true","false","null"]:["true","false"]
}));return t({focus:()=>{var e;null==(e=O.value)||e.focus()}}),(e,t)=>{var n
;return zi(),Wi(Bi,null,[o.enum&&o.enum.length?(zi(),Xi(jOe,{key:0,
modelValue:o.modelValue,value:o.enum,
"onUpdate:modelValue":t[0]||(t[0]=e=>i("update:modelValue",e))
},null,8,["modelValue","value"])):"boolean"===o.type||null!=(n=o.type)&&n.includes("boolean")?(zi(),
Xi(jOe,{key:1,modelValue:o.modelValue,value:x.value,
"onUpdate:modelValue":t[1]||(t[1]=e=>i("update:modelValue",e))
},null,8,["modelValue","value"])):(zi(),Wi("div",ua({key:2,id:Fn(s)},e.$attrs,{
ref_key:"codeMirrorRef",ref:b,
class:["peer font-code w-full whitespace-nowrap overflow-hidden text-xs leading-[1.44] relative",{
"flow-code-input--error":e.error}]
}),null,16,KOe)),e.$slots.warning?(zi(),Wi("div",JOe,[no(e.$slots,"warning",{},void 0,!0)])):aa("",!0),no(e.$slots,"icon",{},void 0,!0),e.required?(zi(),
Wi("div",eye," Required ")):aa("",!0),c.value&&o.withVariables&&!Fn(h)?(zi(),
Xi(GOe,{key:5,activeEnvVariables:Aa((()=>Fn(p))),dropdownPosition:d.value,
query:u.value,router:Fn(m),onSelect:Fn(y)
},null,8,["activeEnvVariables","dropdownPosition","query","router","onSelect"])):aa("",!0)],64)
}}}),nye=mne(tye,[["__scopeId","data-v-44609195"]]),rye={key:0,class:"sr-only"
},oye=eo({__name:"DataTable",props:{columns:{},scroll:{type:Boolean}},
setup:e=>(e,t)=>(zi(),Wi("div",{
class:et(["border-1/2 rounded bg-b-1 md:mx-1",e.scroll?"overflow-x-auto custom-scroll":"overflow-visible"])
},[ea("table",{class:et(["grid auto-rows-auto min-h-8 mb-0",{
"min-w-full w-max":e.scroll}]),style:Xe({
gridTemplateColumns:e.columns.map((e=>e||"1fr")).join(" ")})
},[e.$slots.caption?(zi(),
Wi("caption",rye,[no(e.$slots,"caption")])):aa("",!0),no(e.$slots,"default")],6)],2))
}),iye=eo({__name:"DataTableCell",props:{is:{default:"td"}},
setup:e=>(e,t)=>(zi(),Xi(Ir(e.is),{
class:"min-h-8 min-w-8 border-l-0 border-t-0 border-b-1/2 border-r-1/2 flex text-sm last:border-r-0 group-last:border-b-transparent p-0 m-0 relative",
role:"cell"},{default:Tr((()=>[no(e.$slots,"default")])),_:3}))}),aye=eo({
__name:"DataTableHeader",setup:e=>(e,t)=>(zi(),Xi(iye,{is:"th",
class:"truncate font-medium px-2 py-1.5"},{
default:Tr((()=>[no(e.$slots,"default")])),_:3}))}),sye={
class:"group contents w-fit min-w-full"}
;const lye=mne({},[["render",function(e,t){
return zi(),Wi("tr",sye,[no(e.$slots,"default")])}]]),cye={
class:"flex flex-1 items-center gap-1.5 text-c-1"},uye={key:0,
class:"bg-b-2 text-c-2 text-3xs inline-flex h-4 w-4 items-center justify-center rounded-full font-semibold"
},dye={class:"flex items-center gap-2"},pye={key:0,
class:"ui-not-open:invisible -my-1 flex items-center gap-2"},hye=eo({
__name:"ViewLayoutCollapse",props:{defaultOpen:{type:Boolean,default:!0},
itemCount:{default:0}},setup:e=>(e,t)=>(zi(),Xi(Fn(UR),{as:"div",
class:"focus-within:bg-b-2 ui-not-open:hover:bg-b-2 focus-within:text-c-1 text-c-2 rounded request-item ui-not-open:bg-transparent ui-open:pb-1 ui-open:mb-3 ui-not-open:mb-0 ui-not-open:pb-0",
defaultOpen:e.defaultOpen},{default:Tr((({open:t})=>[ta(Fn(FR),{
class:"hover:text-c-1 group flex w-full items-center gap-1.5 overflow-hidden py-1.5 text-sm font-medium px-1.5"
},{default:Tr((()=>[ta(Fn(xZ),{
class:"text-c-3 group-hover:text-c-1 ui-open:rotate-90 ui-not-open:rotate-0",
icon:"ChevronRight",size:"sm",thickness:"2.5"
}),ea("div",cye,[no(e.$slots,"title",{open:t
}),!t&&e.itemCount?(zi(),Wi("span",uye,st(e.itemCount),1)):aa("",!0)]),ea("div",dye,[e.$slots.actions?(zi(),
Wi("div",pye,[no(e.$slots,"actions",{open:t})])):aa("",!0)])])),_:2
},1024),ta(Fn(qR),{class:"rounded-b"},{default:Tr((()=>[no(e.$slots,"default",{
open:t})])),_:2},1024)])),_:3},8,["defaultOpen"]))
}),fye=["checked","disabled"],mye={
class:"w-full h-full flex items-center justify-center centered text-border peer-checked:text-c-2 pointer-events-none absolute before:absolute before:opacity-0 group-hover/cell:before:opacity-100 before:border before:rounded before:w-9/12 before:aspect-square before:top-1/2 before:left-1/2 before:transform before:-translate-x-1/2 before:-translate-y-1/2 before:border-[1px]"
},gye=eo({__name:"DataTableCheckbox",props:{modelValue:{type:Boolean},disabled:{
type:Boolean}},emits:["update:modelValue"],setup:e=>(e,t)=>(zi(),Xi(iye,{
class:"group/cell relative flex min-w-8"},{default:Tr((()=>[ea("input",{
checked:e.modelValue,class:"peer absolute inset-0 opacity-0 cursor-pointer",
disabled:e.disabled,tabindex:"-1",type:"checkbox",
onChange:t[0]||(t[0]=t=>e.$emit("update:modelValue",t.target.checked))
},null,40,fye),ea("div",mye,[ta(Fn(xZ),{icon:"Checkmark",size:"xs",
thickness:"2.5"})])])),_:1}))}),vye={class:"pl-1 pr-1.5 py-[9px]"},bye={
class:"grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1"
},Oye={key:0,class:"flex items-center text-c-2"},yye={key:0},wye={key:1,
class:"before:content-['·'] before:block before:mx-[0.5ch] flex"},xye={key:2,
class:"before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
},kye={key:3,
class:"before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
},Sye={key:4,
class:"before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
},_ye={key:1,class:"leading-snug text-pretty text-sm",style:{maxWidth:"16rem"}
},Eye=eo({__name:"RequestTableTooltip",props:{item:{}},setup(e){
const t=e,n=Aa((()=>t.item.type||t.item.format||t.item.minimum||t.item.maximum||t.item.default))
;return(e,r)=>(zi(),Xi(Fn(_K),{align:"start",class:"w-full",delay:0,side:"left",
triggerClass:"before:absolute before:content-[''] before:bg-gradient-to-r before:from-transparent before:to-b-1 before:min-h-full before:right-[23px] before:w-3 absolute h-8 right-0"
},{trigger:Tr((()=>[ea("div",vye,[ta(Fn(xZ),{
class:"text-c-3 group-hover/info:text-c-1",icon:"Info",size:"sm",thickness:"1.5"
})])])),
content:Tr((()=>[ea("div",bye,[n.value?(zi(),Wi("div",Oye,[t.item.type?(zi(),
Wi("span",yye,st(t.item.type),1)):aa("",!0),t.item.format?(zi(),
Wi("span",wye,st(t.item.format),1)):aa("",!0),t.item.minimum?(zi(),
Wi("span",xye,"min: "+st(t.item.minimum),1)):aa("",!0),t.item.maximum?(zi(),
Wi("span",kye,"max: "+st(t.item.maximum),1)):aa("",!0),t.item.default?(zi(),
Wi("span",Sye,"default: "+st(t.item.default),1)):aa("",!0)])):aa("",!0),t.item.description?(zi(),
Wi("span",_ye,st(t.item.description),1)):aa("",!0)])])),_:1}))}
}),Tye=e=>(_r("data-v-15395b2c"),e=e(),Er(),e),Cye={
class:"text-c-2 max-w-[100%] overflow-hidden filemask flex items-end justify-end"
},Aye=["onClick"],Pye=Tye((()=>ea("span",null,"File",-1))),Dye=eo({
__name:"RequestTable",props:{items:{},isEnabledHidden:{type:Boolean,default:!1},
showUploadButton:{type:Boolean,default:!1}},
emits:["updateRow","toggleRow","addRow","deleteRow","inputFocus","inputBlur","uploadFile","removeFile"],
setup(e,{emit:t}){
const n=t,r=e.isEnabledHidden?["",""]:["","","36px"],o=(e,t,r)=>{
n("updateRow",e,t,r)
},i=e=>!!(e.description||e.type||e.default||e.format),a=e=>Aa((()=>{
if("integer"===e.type&&void 0!==e.value){const t=Number(e.value)
;if(void 0!==e.minimum&&t<e.minimum)return`Min is ${e.minimum}`
;if(void 0!==e.maximum&&t>e.maximum)return`Max is ${e.maximum}`}return!1
})),s=e=>Array.isArray(e.default)&&1===e.default.length?e.default[0]:e.default
;return(e,t)=>(zi(),Xi(oye,{class:"flex-1",columns:Fn(r)},{
default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(e.items,((r,l)=>(zi(),Xi(lye,{key:l},{
default:Tr((()=>[e.isEnabledHidden?aa("",!0):(zi(),Xi(gye,{key:0,
modelValue:r.enabled,"onUpdate:modelValue":e=>n("toggleRow",l,e)
},null,8,["modelValue","onUpdate:modelValue"])),ta(iye,null,{
default:Tr((()=>[ta(nye,{disableCloseBrackets:"",disableEnter:"",
disableTabIndent:"",modelValue:r.key,placeholder:"Key",required:r.required,
onBlur:t[0]||(t[0]=e=>n("inputBlur")),onFocus:t[1]||(t[1]=e=>n("inputFocus")),
onInput:t=>e.items&&l===e.items.length-1&&n("addRow"),
onSelectVariable:e=>o(l,"key",e),
"onUpdate:modelValue":e=>n("updateRow",l,"key",e)
},null,8,["modelValue","required","onInput","onSelectVariable","onUpdate:modelValue"])])),
_:2},1024),ta(iye,null,{default:Tr((()=>[ta(nye,{class:et({"pr-6":i(r)}),
disableCloseBrackets:"",disableEnter:"",disableTabIndent:"",enum:r.enum,
max:r.maximum,min:r.minimum,modelValue:r.value,nullable:r.nullable,
placeholder:"Value",type:r.type,onBlur:t[2]||(t[2]=e=>n("inputBlur")),
onFocus:t[3]||(t[3]=e=>n("inputFocus")),
onInput:t=>e.items&&l===e.items.length-1&&n("addRow"),
onSelectVariable:e=>o(l,"value",e),
"onUpdate:modelValue":e=>n("updateRow",l,"value",e)},Jr({
icon:Tr((()=>[i(r)?(zi(),Xi(Eye,{key:0,item:{...r,default:s(r)}
},null,8,["item"])):aa("",!0)])),_:2},[a(r).value?{name:"warning",
fn:Tr((()=>[oa(st(a(r).value),1)])),key:"0"
}:void 0]),1032,["class","enum","max","min","modelValue","nullable","type","onInput","onSelectVariable","onUpdate:modelValue"])])),
_:2},1024),e.showUploadButton?(zi(),Xi(iye,{key:1,
class:"group/upload p-1 overflow-hidden relative text-ellipsis whitespace-nowrap"
},{default:Tr((()=>{var e;return[r.file?(zi(),Wi(Bi,{key:0
},[ea("div",Cye,[ea("span",null,st(null==(e=r.file)?void 0:e.name),1)]),ea("button",{
class:"absolute bg-b-2 font-medium centered-x centered-y hidden rounded text-center p-0.5 w-[calc(100%_-_8px)] group-hover/upload:block text-xs",
type:"button",onClick:e=>n("removeFile",l)
}," Delete ",8,Aye)],64)):(zi(),Xi(Fn(LI),{key:1,
class:"bg-b-2 hover:bg-b-3 border-0 py-px text-c-2 shadow-none",size:"sm",
variant:"outlined",onClick:e=>(e=>{n("uploadFile",e)})(l)},{
default:Tr((()=>[Pye,ta(Fn(xZ),{class:"ml-1",icon:"UploadSimple",size:"xs",
thickness:"2.5"})])),_:2},1032,["onClick"]))]})),_:2},1024)):aa("",!0)])),_:2
},1024)))),128))])),_:1},8,["columns"]))}
}),$ye=mne(Dye,[["__scopeId","data-v-15395b2c"]]),Rye={key:0,
class:"text-c-3 flex min-h-10 w-full items-center justify-center p-2 text-sm"
},Nye=[ea("span",null,"No Body",-1)],Iye={key:1,
class:"flex items-center justify-center p-1.5 overflow-hidden"},Mye={
class:"text-c-2 text-xs w-full border rounded p-1 max-w-full overflow-hidden whitespace-nowrap"
},Lye=ea("span",null,"Upload File",-1),Bye=eo({__name:"RequestBody",props:{
title:{}},setup(e){
const{activeRequest:t,activeExample:n,requestExampleMutators:r}=fne(),o={
json:"json",xml:"xml",yaml:"yaml",edn:"edn",other:"html"},i=Object.entries({
multipartForm:"Multipart Form",formUrlEncoded:"Form URL Encoded",
binaryFile:"Binary File",json:"JSON",xml:"XML",yaml:"YAML",edn:"EDN",
other:"Other",none:"None"}).map((([e,t])=>({id:e,label:t}))),a=Aa((()=>{var e,t
;return n.value?"formData"===n.value.body.activeBody?"urlencoded"===(null==(e=n.value.body.formData)?void 0:e.encoding)?"formUrlEncoded":"multipartForm":"binary"===n.value.body.activeBody?"binaryFile":"raw"===n.value.body.activeBody&&null!=(t=n.value.body.raw)&&t.encoding?"html"===n.value.body.raw.encoding?"other":n.value.body.raw.encoding:"none":"none"
})),s=Aa({get:()=>i.find((e=>e.id===a.value))??i[i.length-1],set:e=>{
null!=e&&e.id&&v(e.id)}}),l=Bn(null),c=Aa((()=>{const e=s.value.id
;return o[e]??"plaintext"}));function u(){console.log("deleteRow")}
const d=(e,o,i)=>{if(!t.value||!n.value)return;const a=p.value;if(a.length>e){
const t=[...a];t[e]={...t[e],[o]:i
},(""!==t[e].key||""!==t[e].value)&&(t[e].enabled=!0),
""===t[e].key&&""===t[e].value&&t.splice(e,1),
r.edit(n.value.uid,"body.formData.value",t)}else{const e=[Nte.parse({[o]:i})]
;r.edit(n.value.uid,"body.formData.value",e),dr((()=>{var e
;l.value&&(null==(e=l.value.querySelectorAll("input")["key"===o?0:1])||e.focus())
}))}},p=Aa((()=>{var e,t,r
;return(null==(r=null==(t=null==(e=n.value)?void 0:e.body)?void 0:t.formData)?void 0:r.value)??[]
})),h=()=>0===p.value.length&&f(),f=()=>{if(!t.value||!n.value)return
;const e=Nte.parse({enabled:!1}),o=[...p.value,e]
;n.value.body.formData?r.edit(n.value.uid,"body.formData.value",o):r.edit(n.value.uid,"body.formData",{
value:o,encoding:"form-data"})},m=(e,o)=>{if(!t.value||!n.value)return
;const i=p.value;if(i.length>e){const t=[...i]
;t[e].enabled=o,r.edit(n.value.uid,"body.formData.value",t)}},g=e=>{
!t.value||!n.value||r.edit(n.value.uid,"body.raw.value",e)},v=e=>{var t,o
;if(!n.value)return
;const{activeBody:i,encoding:a,header:s}=(e=>"multipartForm"===e?{
activeBody:"formData",encoding:"form-data",header:"multipart/form-data"
}:"formUrlEncoded"===e?{activeBody:"formData",encoding:"urlencoded",
header:"application/x-www-form-urlencoded"}:"binaryFile"===e?{
activeBody:"binary",encoding:void 0,header:"application/octet-stream"
}:"json"===e?{activeBody:"raw",encoding:"json",header:"application/json"
}:"xml"===e?{activeBody:"raw",encoding:"xml",header:"application/xml"
}:"yaml"===e?{activeBody:"raw",encoding:"yaml",header:"application/yaml"
}:"edn"===e?{activeBody:"raw",encoding:"edn",header:"application/edn"
}:"other"===e?{activeBody:"raw",encoding:"html",header:"application/html"}:{
activeBody:"raw",encoding:void 0,header:void 0})(e)
;if(r.edit(n.value.uid,"body.activeBody",i),
a&&"raw"===i)r.edit(n.value.uid,"body.raw",{encoding:a,
value:(null==(t=n.value.body.raw)?void 0:t.value)??""
});else if(a&&"formData"===i)r.edit(n.value.uid,"body.formData",{encoding:a,
value:(null==(o=n.value.body.formData)?void 0:o.value)??[]});else if(!a){
const{raw:e,...t}=n.value.body;r.edit(n.value.uid,"body",t)}
const l=[...n.value.parameters.headers],c=l.findIndex((e=>"content-type"===e.key.toLowerCase()))
;c>=0?s?l[c].value=s:l.splice(c,1):s&&l.unshift({key:"Content-Type",value:s,
enabled:!0}),r.edit(n.value.uid,"parameters.headers",l)},b=async e=>{
const{open:o}=_ne({onChange:async o=>{const i=null==o?void 0:o[0]
;if(i&&t.value&&n.value){const t=[...p.value];t[e]={...t[e],file:i
},r.edit(n.value.uid,"body.formData.value",t)}},multiple:!1,accept:"*/*"});o()}
;function O(){!t.value||!n.value||r.edit(n.value.uid,"body.binary",void 0)}
function y(e){if(!t.value||!n.value)return;const o=[...p.value];o[e]={...o[e],
file:void 0},r.edit(n.value.uid,"body.formData.value",o)}function w(){
const{open:e}=_ne({onChange:async e=>{const o=null==e?void 0:e[0]
;o&&t.value&&n.value&&r.edit(n.value.uid,"body.binary",o)},multiple:!1,
accept:"*/*"});e()}return li(s,(e=>{
["multipartForm","formUrlEncoded"].includes(null==e?void 0:e.id)&&h()}),{
immediate:!0}),li((()=>{var e;return null==(e=n.value)?void 0:e.uid}),(()=>{
var e
;null!=(e=t.value)&&e.method&&fd(t.value.method)&&v(a.value),["multipartForm","formUrlEncoded"].includes(a.value)&&h()
}),{immediate:!0}),(e,t)=>(zi(),Xi(hye,null,{
title:Tr((()=>[oa(st(e.title),1)])),default:Tr((()=>[ta(oye,{columns:[""]},{
default:Tr((()=>[ta(lye,null,{default:Tr((()=>[ta(aye,{
class:"relative col-span-full flex h-8 cursor-pointer items-center px-[2.25px] py-[2.25px]"
},{default:Tr((()=>[ta(Fn(yW),{modelValue:s.value,
"onUpdate:modelValue":t[0]||(t[0]=e=>s.value=e),class:"text-xxs w-full",
fullWidth:"",options:Fn(i),teleport:""},{default:Tr((()=>[ta(Fn(LI),{
class:"flex gap-1.5 h-auto px-1.5 text-c-2 font-normal hover:text-c-1",
fullWidth:"",variant:"ghost"},{default:Tr((()=>{var e
;return[ea("span",null,st(null==(e=s.value)?void 0:e.label),1),ta(Fn(xZ),{
icon:"ChevronDown",size:"xs",thickness:"2.5"})]})),_:1})])),_:1
},8,["modelValue","options"])])),_:1})])),_:1}),ta(lye,null,{default:Tr((()=>{
var e,t,r,o,i
;return["none"===s.value.id?(zi(),Wi("div",Rye,Nye)):"binaryFile"===s.value.id?(zi(),
Wi("div",Iye,[null!=(e=Fn(n))&&e.body.binary?(zi(),Wi(Bi,{key:0
},[ea("span",Mye,st((null==(t=Fn(n))?void 0:t.body.binary).name),1),ta(Fn(LI),{
class:"bg-b-2 hover:bg-b-3 border-0 text-c-2 ml-1 shadow-none",size:"sm",
variant:"outlined",onClick:O},{default:Tr((()=>[oa(" Delete ")])),_:1
})],64)):(zi(),Xi(Fn(LI),{key:1,
class:"bg-b-2 hover:bg-b-3 border-0 text-c-2 shadow-none",size:"sm",
variant:"outlined",onClick:w},{default:Tr((()=>[Lye,ta(Fn(xZ),{class:"ml-1",
icon:"UploadSimple",size:"xs",thickness:"2.5"})])),_:1
}))])):"multipartForm"==s.value.id?(zi(),Xi($ye,{key:2,
ref_key:"tableWrapperRef",ref:l,
class:"!m-0 rounded-t-none shadow-none border-l-0 border-r-0 border-t-0 border-b-0",
columns:["32px","","","61px"],items:p.value,showUploadButton:"",onAddRow:f,
onDeleteRow:u,onRemoveFile:y,onToggleRow:m,onUpdateRow:d,onUploadFile:b
},null,8,["items"])):"formUrlEncoded"==s.value.id?(zi(),Xi($ye,{key:3,
ref_key:"tableWrapperRef",ref:l,
class:"!m-0 rounded-t-none border-t-0 shadow-none border-l-0 border-r-0 border-t-0 border-b-0",
columns:["32px","","","61px"],items:p.value,showUploadButton:"",onAddRow:f,
onDeleteRow:u,onRemoveFile:y,onToggleRow:m,onUpdateRow:d,onUploadFile:b
},null,8,["items"])):(zi(),Xi(nye,{key:4,content:"",language:c.value,
lineNumbers:"",lint:"",
modelValue:(null==(i=null==(o=null==(r=Fn(n))?void 0:r.body)?void 0:o.raw)?void 0:i.value)??"",
"onUpdate:modelValue":g},null,8,["language","modelValue"]))]})),_:1
}),ta(lye)])),_:1})])),_:1}))}}),Qye={
class:"text-c-2 flex whitespace-nowrap opacity-0 group-hover/params:opacity-100 request-meta-buttons"
},jye=eo({__name:"RequestParams",props:{title:{},paramKey:{}},setup(e){
const t=e,{activeRequest:n,activeExample:r,requestExampleMutators:o}=fne(),i=Aa((()=>{
var e;return(null==(e=r.value)?void 0:e.parameters[t.paramKey])??[]}));Ur((()=>{
d()}));const a=()=>{if(!n.value||!r.value)return;const e=Nte.parse({enabled:!1
}),a=[...i.value,e];o.edit(r.value.uid,`parameters.${t.paramKey}`,a)
},s=Bn(null),l=(e,a,l)=>{if(!n.value||!r.value)return;const c=i.value
;if(c.length>e){const n=[...c];n[e]={...n[e],[a]:l
},(""!==n[e].key||""!==n[e].value)&&(n[e].enabled=!0),
""===n[e].key&&""===n[e].value&&n.splice(e,1),
o.edit(r.value.uid,`parameters.${t.paramKey}`,n)}else{const e=[Nte.parse({[a]:l
})];o.edit(r.value.uid,`parameters.${t.paramKey}`,e),dr((()=>{var e
;s.value&&(null==(e=s.value.querySelectorAll("input")["key"===a?0:1])||e.focus())
}))}
},c=(e,i)=>n.value&&r.value&&o.edit(r.value.uid,`parameters.${t.paramKey}.${e}.enabled`,i),u=()=>{
if(!n.value||!r.value)return;const e=i.value.filter((e=>e.enabled||e.required))
;o.edit(r.value.uid,`parameters.${t.paramKey}`,e),dr((()=>{a()}))};function d(){
if(0===i.value.length)a();else if(i.value.length>=1){
const e=i.value[i.value.length-1];""!==e.key&&""!==e.value&&a()}}
const p=Aa((()=>i.value.filter((e=>e.key||e.value)).length))
;return li((()=>r.value),((e,t)=>{e!==t&&d()}),{immediate:!0
}),(e,t)=>(zi(),Xi(hye,{class:"group/params",itemCount:p.value},{
title:Tr((()=>[oa(st(e.title),1)])),actions:Tr((()=>[ea("div",Qye,[ta(Fn(LI),{
class:"px-1 transition-none",size:"sm",variant:"ghost",onClick:$s(u,["stop"])},{
default:Tr((()=>[oa(" Clear ")])),_:1})])])),default:Tr((()=>[ea("div",{
ref_key:"tableWrapperRef",ref:s},[ta($ye,{class:"flex-1",columns:["32px","",""],
items:i.value,onAddRow:a,onToggleRow:c,onUpdateRow:l
},null,8,["items"])],512)])),_:1},8,["itemCount"]))}}),Uye={key:1,
class:"text-c-3 px-4 text-sm border rounded min-h-12 justify-center flex items-center bg-b-1 mx-1"
},Fye=ea("code",{class:"bg-b-2 ml-1 px-1 rounded"
},"/endpoint/{my_path_variable}",-1),qye=eo({__name:"RequestPathParams",props:{
title:{},paramKey:{}},setup(e){
const t=e,{activeRequest:n,activeExample:r,requestMutators:o,requestExampleMutators:i}=fne(),a=Aa((()=>{
const e=r.value;return e?e.parameters[t.paramKey].map((t=>{var n;return{...t,
enum:t.enum||(null==(n=e.serverVariables)?void 0:n[t.key])}})):[]
})),s=(e,a,s)=>{var l,c;if(!n.value||!r.value)return
;const u=r.value.parameters[t.paramKey],d=null==(l=u[e])?void 0:l.key
;if("key"===a){if(null!=(c=u[e])&&c.required)return;if(s){
const e=encodeURIComponent(d),t=encodeURIComponent(s),r=new RegExp(`(?<=/):${e}(?=[/?#]|$)`,"g"),i=n.value.path.replace(r,`:${t}`)
;o.edit(n.value.uid,"path",i)}else{u.splice(e,1)
;const t=new RegExp(`/:${encodeURIComponent(d)}(?=[/?#]|$)`,"g"),r=n.value.path.replace(t,"")
;o.edit(n.value.uid,"path",r)}}
i.edit(r.value.uid,`parameters.${t.paramKey}.${e}.${a}`,s)};return li((()=>{
var e;return null==(e=n.value)?void 0:e.path}),(e=>{e&&(e=>{var n
;if(!r.value)return
;const o=(null==(n=e.match(Id))?void 0:n.map((e=>e.slice(1,-1))))||[],a=r.value.parameters[t.paramKey],s=new Map(a.map((e=>[e.key,e]))),l=o.map((e=>s.get(e)||{
key:e,value:"",enabled:!0}));a.forEach((e=>{
!o.includes(e.key)&&(e.value||e.required)&&l.push(e)
})),a.splice(0,a.length,...l),i.edit(r.value.uid,`parameters.${t.paramKey}`,a)
})(e)})),(e,t)=>(zi(),Xi(hye,{itemCount:a.value.length},{
title:Tr((()=>[oa(st(e.title),1)])),
default:Tr((()=>[a.value.length?(zi(),Xi($ye,{key:0,class:"flex-1",
isEnabledHidden:"",items:a.value,onUpdateRow:s
},null,8,["items"])):(zi(),Wi("div",Uye,[oa(" You can use variables in your path: "),Fye]))])),
_:1},8,["itemCount"]))}}),zye={class:"mb-4 leading-normal text-c-2 text-sm"
},Hye={class:"flex justify-between gap-2"},Zye=eo({
__name:"DeleteRequestAuthModal",props:{state:{},scheme:{}},emits:["close"],
setup(e,{emit:t}){
const n=e,r=t,{securitySchemes:o,securitySchemeMutators:i}=fne(),a=()=>{var e
;null!=(e=n.scheme)&&e.id&&i.delete(o[n.scheme.id]),r("close")}
;return(e,t)=>(zi(),Xi(Fn(TI),{size:"xxs",state:e.state,
title:"Delete Security Scheme"},{default:Tr((()=>{var n
;return[ea("p",zye," This cannot be undone. You’re about to delete the "+st(null==(n=e.scheme)?void 0:n.label)+" security scheme from the collection. ",1),ea("div",Hye,[ta(Fn(LI),{
class:"gap-1.5 px-3 h-8 shadow-none focus:outline-none flex items-center cursor-pointer",
type:"button",variant:"outlined",onClick:t[0]||(t[0]=e=>r("close"))},{
default:Tr((()=>[oa(" Cancel ")])),_:1}),ta(Fn(LI),{
class:"gap-1.5 px-3 h-8 shadow-none focus:outline-none flex items-center cursor-pointer",
type:"submit",onClick:a},{default:Tr((()=>{var t
;return[oa(" Delete "+st(null==(t=e.scheme)?void 0:t.label),1)]})),_:1})])]})),
_:1},8,["state"]))}}),Vye={key:0,
class:"text-c-2 flex min-w-[120px] items-center border-r-1/2 pl-2 pr-0"},Wye={
class:"row-1"},Xye=["id","max","min","readOnly","required","type","value"],Yye={
key:0,
class:"absolute centered-y right-0 pt-px pr-2 text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-focus:opacity-0"
},Gye={key:1,class:"absolute centered-y right-7 text-orange text-xs"},Kye=eo({
inheritAttrs:!1,__name:"DataTableInput",props:{id:{},type:{},containerClass:{},
required:{type:Boolean,default:!1},modelValue:{},canAddCustomEnumValue:{
type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},enum:{},min:{},
max:{}},emits:["update:modelValue","inputFocus","inputBlur","selectVariable"],
setup(e,{emit:t}){const n=e,r=t,o=Bn(!0),i=Bn(""),a=Bn(!1),s=()=>{
a.value||r("inputBlur")
},l=Aa((()=>"password"===n.type?o.value?"password":"text":n.type??"text")),c=e=>{
const t=e.target;i.value=t.value,r("update:modelValue",t.value)}
;return(e,t)=>(zi(),Xi(iye,{class:et(["relative row",e.containerClass])},{
default:Tr((()=>[e.$slots.default?(zi(),
Wi("div",Vye,[no(e.$slots,"default",{},void 0,!0)])):aa("",!0),ea("div",Wye,[n.enum&&n.enum.length?(zi(),
Xi(jOe,{key:0,canAddCustomValue:e.canAddCustomEnumValue,modelValue:n.modelValue,
value:n.enum,"onUpdate:modelValue":t[0]||(t[0]=e=>r("update:modelValue",e))
},null,8,["canAddCustomValue","modelValue","value"])):(zi(),Wi(Bi,{key:1
},[ea("input",ua(e.$attrs,{id:e.id,autocomplete:"off",
class:"border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer px-2 py-1.5 outline-none",
"data-1p-ignore":"",max:e.max,min:e.min,readOnly:e.readOnly,required:e.required,
spellcheck:"false",type:l.value,value:e.modelValue,onBlur:s,
onFocus:t[1]||(t[1]=e=>r("inputFocus")),onInput:c
}),null,16,Xye),e.required?(zi(),
Wi("div",Yye," Required ")):aa("",!0)],64))]),e.$slots.warning?(zi(),
Wi("div",Gye,[no(e.$slots,"warning",{},void 0,!0)])):aa("",!0),no(e.$slots,"icon",{},void 0,!0),"password"===e.type?(zi(),
Xi(Fn(bW),{key:2,class:"-ml-.5 mr-1 h-6 w-6 self-center p-1.5",
icon:o.value?"Show":"Hide",label:o.value?"Show Password":"Hide Password",
onClick:t[2]||(t[2]=e=>o.value=!o.value)
},null,8,["icon","label"])):aa("",!0)])),_:3},8,["class"]))}
}),Jye=mne(Kye,[["__scopeId","data-v-b93b9304"]]),ewe=["for"],twe=eo({
__name:"RequestAuthDataTableInput",props:{id:{},type:{},containerClass:{},
required:{type:Boolean,default:!1},modelValue:{},readOnly:{type:Boolean,
default:!1}},
emits:["update:modelValue","inputFocus","inputBlur","selectVariable"],
setup(e,{emit:t}){const n=e,r=t;return(e,t)=>(zi(),Xi(Jye,ua({id:n.id,
containerClass:n.containerClass,modelValue:n.modelValue,readOnly:n.readOnly,
required:n.required,type:n.type},e.$attrs,{
onInputBlur:t[0]||(t[0]=e=>r("inputBlur")),
onInputFocus:t[1]||(t[1]=e=>r("inputFocus")),
onSelectVariable:t[2]||(t[2]=e=>r("selectVariable",e)),
"onUpdate:modelValue":t[3]||(t[3]=e=>r("update:modelValue",e))}),{
default:Tr((()=>[ea("label",{for:n.id},[no(e.$slots,"default")],8,ewe)])),
icon:Tr((()=>[no(e.$slots,"icon")])),_:3
},16,["id","containerClass","modelValue","readOnly","required","type"]))}
}),nwe={class:"flex h-full w-full"},rwe=ea("div",{
class:"text-c-2 min-w-[120px] items-center pl-2 h-full border-r-1/2"
},[ea("span",{class:"h-8 flex items-center"}," Scopes ")],-1),owe={
class:"flex-1 text-c-3"},iwe={class:"grid auto-rows-auto border-t-1/2",style:{
gridTemplateColumns:"1fr auto"}},awe={class:"font-code text-xs"},swe=eo({
__name:"OAuthScopesInput",props:{activeFlow:{},updateScheme:{type:Function}},
setup(e){const t=e,n=Aa((()=>{var e
;return Object.entries((null==(e=t.activeFlow)?void 0:e.scopes)??{}).map((([e,t])=>({
id:e,label:e,description:t})))})),r=Aa((()=>{var e
;return(null==(e=t.activeFlow)?void 0:e.selectedScopes)||[]}))
;return(e,o)=>(zi(),Xi(Fn(iye),{class:"items-center min-h-8 h-auto"},{
default:Tr((()=>[ea("div",nwe,[rwe,ta(Fn(UR),{as:"div",
class:"flex flex-col w-full"},{default:Tr((()=>[ta(Fn(FR),{
class:"group/scopes-accordion flex items-center text-left min-h-8 gap-1.5 h-auto pl-2 hover:bg-b-2 pr-2.5 cursor-pointer"
},{default:Tr((({open:t})=>{var n,r,o
;return[ea("div",owe," Selected "+st((null==(r=null==(n=e.activeFlow)?void 0:n.selectedScopes)?void 0:r.length)||0)+" / "+st(Object.keys((null==(o=e.activeFlow)?void 0:o.scopes)??{}).length||0),1),ta(Fn(xZ),{
class:"text-c-3 group-hover/scopes-accordion:text-c-2",
icon:t?"ChevronDown":"ChevronRight",size:"xs"},null,8,["icon"])]})),_:1
}),ta(Fn(qR),{as:"template"},{
default:Tr((()=>[ea("table",iwe,[(zi(!0),Wi(Bi,null,Kr(n.value,(({id:e,label:n,description:o})=>(zi(),
Xi(Fn(lye),{key:e,class:"text-c-2",onClick:n=>function(e,n){
n?t.updateScheme("flow.selectedScopes",[...r.value,e]):t.updateScheme("flow.selectedScopes",r.value.filter((t=>t!==e)))
}(e,!r.value.includes(e))},{default:Tr((()=>[ta(Fn(iye),{
class:"w-full px-2 py-1.5 hover:bg-b-2 cursor-pointer"},{
default:Tr((()=>[ea("span",null,[ea("span",awe,st(n),1),ea("span",null," – "+st(o),1)])])),
_:2},1024),ta(Fn(gye),{modelValue:r.value.includes(e),
"onUpdate:modelValue":()=>{}},null,8,["modelValue"])])),_:2
},1032,["onClick"])))),128))])])),_:1})])),_:1})])])),_:1}))}
}),lwe=e=>e.type.startsWith("oauth"),cwe=async(e,t,n,r)=>{
if(!("clientSecret"in t))throw new Error("Authorize Servers only works for Client Credentials or Authorization Code flow")
;if(!e.flow)throw new Error("OAuth2 flow was not defined")
;const o=new URLSearchParams
;o.set("client_id",e["x-scalar-client-id"]),o.set("scope",n),
t.clientSecret&&o.set("client_secret",t.clientSecret),
"x-scalar-redirect-uri"in e.flow&&o.set("redirect_uri",e.flow["x-scalar-redirect-uri"]),
r?(o.set("code",r),
o.set("grant_type","authorization_code")):"oauth-password"===t.type?(o.set("grant_type","password"),
o.set("username",t.username),
o.set("password",t.password)):o.set("grant_type","client_credentials");try{
const n={"Content-Type":"application/x-www-form-urlencoded"}
;e["x-scalar-client-id"]&&t.clientSecret&&(n.Authorization=`Basic ${btoa(`${e["x-scalar-client-id"]}:${t.clientSecret}`)}`)
;const r=await fetch(e.flow.tokenUrl,{method:"POST",headers:n,body:o
}),{access_token:i}=await r.json();return i}catch{
throw new Error("Failed to get an access token. Please check your credentials.")
}},uwe={class:"h-8 flex items-center justify-self-end"},dwe={
class:"h-8 flex items-center justify-self-end"},pwe=eo({__name:"OAuth2",props:{
example:{},scheme:{}},setup(e){
const t=e,n=$I(),{activeCollection:r,collectionMutators:o,isReadOnly:i,securitySchemeMutators:a}=fne(),s=(e,t)=>r.value&&o.edit(r.value.uid,e,t),l=(e,n)=>a.edit(t.scheme.uid,e,n),c=async()=>{
var e;if(n.isLoading||null==(e=r.value)||!e.uid)return;n.startLoading()
;const o=await((e,t)=>new Promise(((n,r)=>{
const o=e.flow.selectedScopes.join(" ")
;if("clientCredentials"===e.flow.type||"password"===e.flow.type)cwe(e,t,o).then(n).catch(r);else{
const i=(Math.random()+1).toString(36).substring(7),a=new URL(e.flow.authorizationUrl)
;"implicit"===e.flow.type?a.searchParams.set("response_type","token"):"authorizationCode"===e.flow.type&&a.searchParams.set("response_type","code"),
a.searchParams.set("client_id",e["x-scalar-client-id"]),
a.searchParams.set("redirect_uri",e.flow["x-scalar-redirect-uri"]),
a.searchParams.set("scope",o),a.searchParams.set("state",i)
;const s=window.open(a,"openAuth2Window","left=100,top=100,width=800,height=600")
;if(s){const a=setInterval((function(){var l;let c=null,u=null;try{
const e=new URL(s.location.href).searchParams
;c=e.get("access_token"),u=e.get("code")
;const t=new URLSearchParams(s.location.href.split("#")[1])
;c||(c=t.get("access_token")),u||(u=t.get("code"))}catch{}
if(s.closed||c||u)if(clearInterval(a),s.close(),c){
const e=null==(l=s.location.href.match(/state=([^&]*)/))?void 0:l[1]
;c&&e===i&&n(c)
}else u?cwe(e,t,o,u).then(n).catch(r):(clearInterval(a),r(new Error("Window was closed without granting authorization")))
}),200)}}})))(t.scheme,t.example).finally((()=>n.stopLoading()))
;o&&s(`auth.${t.scheme.uid}.token`,o)}
;return(e,r)=>e.example.token?(zi(),Wi(Bi,{key:0},[ta(Fn(lye),null,{
default:Tr((()=>[ta(twe,{id:"oauth2-access-token",class:"border-r-transparent",
modelValue:e.example.token,
placeholder:"QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",type:"password",
"onUpdate:modelValue":r[0]||(r[0]=e=>s(`auth.${t.scheme.uid}.token`,e))},{
default:Tr((()=>[oa(" Access Token ")])),_:1},8,["modelValue"])])),_:1
}),ta(Fn(lye),{class:"min-w-full"},{default:Tr((()=>[ea("div",uwe,[ta(Fn(LI),{
class:"p-0 py-0.5 px-2 mr-1",loading:Fn(n),size:"sm",variant:"outlined",
onClick:r[1]||(r[1]=e=>s(`auth.${t.scheme.uid}.token`,""))},{
default:Tr((()=>[oa(" Clear ")])),_:1},8,["loading"])])])),_:1
})],64)):(zi(),Wi(Bi,{key:1},[Fn(i)?aa("",!0):(zi(),Xi(Fn(lye),{key:0},{
default:Tr((()=>["authorizationUrl"in e.scheme.flow?(zi(),Xi(twe,{key:0,
id:`oauth2-authorization-url-${e.scheme.uid}`,
modelValue:e.scheme.flow.authorizationUrl,
placeholder:"https://galaxy.scalar.com/authorize",
"onUpdate:modelValue":r[2]||(r[2]=e=>l("flow.authorizationUrl",e))},{
default:Tr((()=>[oa(" Authorization Url ")])),_:1
},8,["id","modelValue"])):aa("",!0),"tokenUrl"in e.scheme.flow?(zi(),Xi(twe,{
key:1,id:`oauth2-token-url-${e.scheme.uid}`,modelValue:e.scheme.flow.tokenUrl,
placeholder:"https://galaxy.scalar.com/token",
"onUpdate:modelValue":r[3]||(r[3]=e=>l("flow.tokenUrl",e))},{
default:Tr((()=>[oa(" Token Url ")])),_:1},8,["id","modelValue"])):aa("",!0)])),
_:1})),"x-scalar-redirect-uri"in e.scheme.flow?(zi(),Xi(Fn(lye),{key:1},{
default:Tr((()=>[ta(twe,{id:`oauth2-redirect-uri-${e.scheme.uid}`,
modelValue:e.scheme.flow["x-scalar-redirect-uri"],
placeholder:"https://galaxy.scalar.com/callback",
"onUpdate:modelValue":r[4]||(r[4]=e=>l("flow.x-scalar-redirect-uri",e))},{
default:Tr((()=>[oa(" Redirect Url ")])),_:1},8,["id","modelValue"])])),_:1
})):aa("",!0),"oauth-password"===e.example.type?(zi(),Wi(Bi,{key:2
},[ta(Fn(lye),null,{default:Tr((()=>[ta(twe,{
id:`oauth2-password-username-${e.scheme.uid}`,class:"text-c-2",
modelValue:e.example.username,placeholder:"ScalarEnjoyer01",
"onUpdate:modelValue":r[5]||(r[5]=t=>s(`auth.${e.scheme.uid}.username`,t))},{
default:Tr((()=>[oa(" Username ")])),_:1},8,["id","modelValue"])])),_:1
}),ta(Fn(lye),null,{default:Tr((()=>[ta(twe,{
id:`oauth2-password-password-${e.scheme.uid}`,modelValue:e.example.password,
placeholder:"xxxxxx",type:"password",
"onUpdate:modelValue":r[6]||(r[6]=t=>s(`auth.${e.scheme.uid}.password`,t))},{
default:Tr((()=>[oa(" Password ")])),_:1},8,["id","modelValue"])])),_:1
})],64)):aa("",!0),ta(Fn(lye),null,{default:Tr((()=>[ta(twe,{
id:`oauth2-client-id-${e.scheme.uid}`,modelValue:e.scheme["x-scalar-client-id"],
placeholder:"12345",
"onUpdate:modelValue":r[7]||(r[7]=e=>l("x-scalar-client-id",e))},{
default:Tr((()=>[oa(" Client ID ")])),_:1},8,["id","modelValue"])])),_:1
}),"clientSecret"in e.example?(zi(),Xi(Fn(lye),{key:3},{
default:Tr((()=>[ta(twe,{id:`oauth2-client-secret-${e.scheme.uid}`,
modelValue:e.example.clientSecret,placeholder:"XYZ123",type:"password",
"onUpdate:modelValue":r[8]||(r[8]=t=>s(`auth.${e.scheme.uid}.clientSecret`,t))
},{default:Tr((()=>[oa(" Client Secret ")])),_:1},8,["id","modelValue"])])),_:1
})):aa("",!0),e.scheme.flow.scopes?(zi(),Xi(Fn(lye),{key:4},{
default:Tr((()=>[ta(swe,{activeFlow:e.scheme.flow,updateScheme:l
},null,8,["activeFlow"])])),_:1})):aa("",!0),ta(Fn(lye),{class:"min-w-full"},{
default:Tr((()=>[ea("div",dwe,[ta(Fn(LI),{class:"p-0 py-0.5 px-2 mr-1",
loading:Fn(n),size:"sm",variant:"outlined",onClick:c},{
default:Tr((()=>[oa(" Authorize ")])),_:1},8,["loading"])])])),_:1})],64))}
}),hwe=eo({__name:"RequestExampleAuth",setup(e){
const{activeCollection:t,activeRequest:n,collectionMutators:r,securitySchemes:o}=fne(),i=Aa((()=>t.value&&n.value?n.value.selectedSecuritySchemeUids.map((e=>({
example:t.value.auth[e],scheme:o[e]}))):[]));function a(e){
return`${je(e.nameKey)}: ${e.type} ${"oauth2"===e.type?e.flow.type:""}`}
function s(e,n,o,i){var a
;null!=(a=t.value)&&a.uid&&r.edit(t.value.uid,`auth.${e}.${o}`,i)}
return(e,t)=>(zi(!0),
Wi(Bi,null,Kr(i.value,(({scheme:e,example:t})=>(zi(),Wi(Bi,{key:e.uid
},[ta(Fn(lye),{class:"group/delete"},{
default:Tr((()=>[i.value.length>1?(zi(),Xi(Fn(iye),{key:0,
class:"text-c-2 pl-2 text-xs font-medium flex items-center bg-b-2"},{
default:Tr((()=>[oa(st(a(e)),1)])),_:2},1024)):aa("",!0)])),_:2
},1024),"http"===e.type&&"http"===t.type?(zi(),Wi(Bi,{key:0
},["bearer"===e.scheme?(zi(),Xi(Fn(lye),{key:0},{default:Tr((()=>[ta(twe,{
id:`http-bearer-token-${e.uid}`,modelValue:t.token,placeholder:"Token",
type:"password","onUpdate:modelValue":t=>s(e.uid,0,"token",t)},{
default:Tr((()=>[oa(" Bearer Token ")])),_:2
},1032,["id","modelValue","onUpdate:modelValue"])])),_:2
},1024)):"basic"===e.scheme?(zi(),Wi(Bi,{key:1},[ta(Fn(lye),null,{
default:Tr((()=>[ta(twe,{id:`http-basic-username-${e.uid}`,class:"text-c-2",
modelValue:t.username,placeholder:"ScalarEnjoyer01",required:"",
"onUpdate:modelValue":t=>s(e.uid,0,"username",t)},{
default:Tr((()=>[oa(" Username ")])),_:2
},1032,["id","modelValue","onUpdate:modelValue"])])),_:2
},1024),ta(Fn(lye),null,{default:Tr((()=>[ta(twe,{
id:`http-basic-password-${e.uid}`,modelValue:t.password,placeholder:"xxxxxx",
type:"password","onUpdate:modelValue":t=>s(e.uid,0,"password",t)},{
default:Tr((()=>[oa(" Password ")])),_:2
},1032,["id","modelValue","onUpdate:modelValue"])])),_:2
},1024)],64)):aa("",!0)],64)):"apiKey"===e.type&&"apiKey"===t.type?(zi(),Wi(Bi,{
key:1},[ta(Fn(lye),null,{default:Tr((()=>[ta(twe,{id:`api-key-name-${e.uid}`,
modelValue:t.name,placeholder:"api-key",
"onUpdate:modelValue":t=>s(e.uid,0,"name",t)},{default:Tr((()=>[oa(" Name ")])),
_:2},1032,["id","modelValue","onUpdate:modelValue"])])),_:2
},1024),ta(Fn(lye),null,{default:Tr((()=>[ta(twe,{
id:`api-key-value-add-${e.uid}`,modelValue:t.value,
placeholder:"QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
"onUpdate:modelValue":t=>s(e.uid,0,"value",t)},{
default:Tr((()=>[oa(" Value ")])),_:2
},1032,["id","modelValue","onUpdate:modelValue"])])),_:2
},1024)],64)):"oauth2"===e.type&&Fn(lwe)(t)?(zi(),Xi(pwe,{key:2,example:t,
scheme:e},null,8,["example","scheme"])):aa("",!0)],64)))),128))}}),fwe=e=>({
id:e.uid,label:e.nameKey}),mwe=Object.entries({apiKeyCookie:{
label:"API Key in Cookies",payload:{type:"apiKey",in:"cookie",
nameKey:"apiKeyCookie"}},apiKeyHeader:{label:"API Key in Headers",payload:{
type:"apiKey",in:"header",nameKey:"apiKeyHeader"}},apiKeyQuery:{
label:"API Key in Query Params",payload:{type:"apiKey",in:"query",
nameKey:"apiKeyQuery"}},httpBasic:{label:"HTTP Basic",payload:{type:"http",
scheme:"basic",nameKey:"httpBasic"}},httpBearer:{label:"HTTP Bearer",payload:{
type:"http",scheme:"bearer",nameKey:"httpBearer"}},oauth2Implicit:{
label:"Oauth2 Implicit Flow",payload:{type:"oauth2",nameKey:"oauth2Implicit",
flow:{type:"implicit"}}},oauth2Password:{label:"Oauth2 Password Flow",payload:{
type:"oauth2",nameKey:"oauth2Password",flow:{type:"password"}}},
oauth2ClientCredentials:{label:"Oauth2 Client Credentials",payload:{
type:"oauth2",nameKey:"oauth2ClientCredentials",flow:{type:"clientCredentials"}}
},oauth2AuthorizationFlow:{label:"Oauth2 Authorization Code",payload:{
type:"oauth2",nameKey:"oauth2AuthorizationFlow",flow:{type:"authorizationCode"}}
}}).map((([e,t])=>({id:e,isDeletable:!1,...t
}))),gwe=e=>(_r("data-v-cdda9bac"),e=e(),Er(),e),vwe={class:"flex gap-1"
},bwe=gwe((()=>ea("div",{
class:"text-c-2 h-8 flex min-w-[120px] items-center border-r-1/2 pr-0 pl-2"
}," Auth Type ",-1))),Owe={key:0,class:"flex relative scroll-timeline-x w-full"
},ywe=gwe((()=>ea("div",{class:"fade-left"},null,-1))),wwe={
class:"flex flex-1 gap-0.75 mr-1.5 items-center"},xwe=gwe((()=>ea("div",{
class:"fade-right"},null,-1))),kwe={key:1,class:"pl-2"},Swe=eo({
__name:"RequestAuth",props:{title:{}},setup(e){
const{activeCollection:t,activeRequest:n,collectionMutators:r,isReadOnly:o,requestMutators:i,securitySchemes:a,securitySchemeMutators:s}=fne(),l=Bn(null),c=SI(),u=Bn(void 0),d=Aa((()=>{
var e,r,i
;const s=null==(r=null==(e=n.value)?void 0:e.security)?void 0:r.filter((e=>Object.keys(e).length))
;return((o.value&&null!=s&&s.length?s.map((e=>{var t;const n=Object.keys(e)[0]
;return(null==(t=Object.values(a).find((e=>e.nameKey===n)))?void 0:t.uid)??""
})):null==(i=t.value)?void 0:i.securitySchemes)??[]).map((e=>a[e])).filter((e=>e))
})),p=Aa((()=>{const e=d.value.map((e=>fwe(e)));return o.value?e:[{
label:"Select auth",options:e},{label:"Add new auth",options:mwe}]
})),h=Aa((()=>{var e
;return(null==(e=n.value)?void 0:e.selectedSecuritySchemeUids.map((e=>fwe(a[e]))))??[]
}));function f(e){var o,l
;if(null==(o=t.value)||!o.uid||null==(l=n.value)||!l.uid)return
;const c=e.find((e=>e.payload)),u=e.filter((e=>!e.payload)).map((({id:e})=>e))
;if(null!=c&&c.payload){const e=s.add(c.payload,t.value.uid);u.push(e.uid)}
const d=u.filter((e=>!t.value.auth[e]))
;r.edit(t.value.uid,"auth",d.reduce(((e,t)=>(e[t]=(e=>{
const t="oauth2"===e.type?`oauth-${e.flow.type}`:e.type;return Gee.parse({type:t
})})(a[t]),e)),t.value.auth)),i.edit(n.value.uid,"selectedSecuritySchemeUids",u)
}function m(e){u.value=e,c.show()}return(e,t)=>(zi(),Xi(hye,{
class:"group/params",itemCount:h.value.length},{
title:Tr((()=>[ea("div",vwe,st(e.title),1)])),
default:Tr((()=>[ea("form",null,[ta(Fn(oye),{class:"flex-1",columns:[""]},{
default:Tr((()=>[ta(Fn(lye),null,{default:Tr((()=>[ta(Fn(aye),{
class:"relative col-span-full cursor-pointer py-[0px] px-[0px] flex items-center"
},{default:Tr((()=>[ta(Fn(sW),{ref_key:"comboboxRef",ref:l,
class:"text-xs w-full",fullWidth:"",isDeletable:"",modelValue:h.value,
multiple:"",options:p.value,style:{"margin-left":"120px"},teleport:"",
onDelete:m,"onUpdate:modelValue":f},{default:Tr((()=>[ta(Fn(LI),{
class:"h-auto py-0 px-0 text-c-2 hover:text-c-1 font-normal justify-start",
fullWidth:"",variant:"ghost"},{
default:Tr((()=>[bwe,h.value.length?(zi(),Wi("div",Owe,[ywe,ea("div",wwe,[(zi(!0),
Wi(Bi,null,Kr(h.value,(e=>(zi(),Wi("span",{key:e.id,
class:"cm-pill flex items-center mx-0 h-fit"},[oa(st(e.label)+" ",1),ta(Fn(xZ),{
class:"ml-1 cursor-pointer text-c-3 hover:text-c-1",icon:"Close",size:"xs",
onClick:$s((t=>(e=>n.value&&i.edit(n.value.uid,"selectedSecuritySchemeUids",n.value.selectedSecuritySchemeUids.filter((t=>t!==e))))(e.id)),["stop"])
},null,8,["onClick"])])))),128))]),xwe])):(zi(),
Wi("div",kwe," None ")),ta(Fn(xZ),{class:"min-w-3 ml-auto mr-2.5",
icon:"ChevronDown",size:"xs"})])),_:1})])),_:1},8,["modelValue","options"])])),
_:1})])),_:1}),ta(hwe)])),_:1}),ta(Zye,{scheme:u.value,state:Fn(c),
onClose:t[0]||(t[0]=e=>Fn(c).hide())},null,8,["scheme","state"])])])),_:1
},8,["itemCount"]))}}),_we=mne(Swe,[["__scopeId","data-v-cdda9bac"]]),Ewe={
class:"flex-1 flex gap-1 items-center pointer-events-none"},Twe={key:0,
class:"absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text",
for:"requestname"},Cwe=["value"],Awe={key:2,class:"text-c-2"},Pwe={
class:"request-section-content custom-scroll flex flex-1 flex-col px-2 xl:px-5 py-2.5"
},Dwe=eo({__name:"RequestSection",setup(e){
const{activeRequest:t,activeExample:n,isReadOnly:r,requestMutators:o}=fne(),i=Aa((()=>{
var e,r
;const o=new Set(["Query","Auth","Request","Cookies","Headers","Body","All"])
;return null!=(e=n.value)&&e.parameters.path.length||o.delete("Request"),
fd((null==(r=t.value)?void 0:r.method)??"get")||o.delete("Body"),
a.value&&o.delete("Auth"),[...o]})),a=Aa((()=>{var e,n
;return r.value&&0===(null==(n=null==(e=t.value)?void 0:e.security)?void 0:n.length)
})),s=Bn("All");li(t,(e=>{"Body"===s.value&&e&&!fd(e.method)&&(s.value="All")}))
;const l=e=>{if(!t.value)return;const n=e.target
;o.edit(t.value.uid,"summary",n.value)};return(e,o)=>(zi(),Xi(Dre,null,{
title:Tr((()=>{var e,n;return[ta(Fn(xZ),{
class:"text-c-3 mr-2 pointer-events-none",icon:"ExternalLink",size:"sm",
thickness:"2.5"
}),ea("div",Ewe,[oa(" Request "),Fn(r)?aa("",!0):(zi(),Wi("label",Twe)),Fn(r)?(zi(),
Wi("span",Awe,st(null==(n=Fn(t))?void 0:n.summary),1)):(zi(),Wi("input",{key:1,
id:"requestname",
class:"outline-none border-0 text-c-2 rounded pointer-events-auto relative w-full",
placeholder:"Request Name",value:null==(e=Fn(t))?void 0:e.summary,onInput:l
},null,40,Cwe))])]})),default:Tr((()=>{var e,r,l;return[ea("div",Pwe,[ta(Cre,{
activeSection:s.value,sections:i.value,
onSetActiveSection:o[0]||(o[0]=e=>s.value=e)
},null,8,["activeSection","sections"]),Yr(ta(_we,{title:"Authentication"
},null,512),[[Ka,!a.value&&("All"===s.value||"Auth"===s.value)]]),Yr(ta(qye,{
paramKey:"path",title:"Path Variables"
},null,512),[[Ka,("All"===s.value||"Request"===s.value)&&(null==(l=null==(r=null==(e=Fn(n))?void 0:e.parameters)?void 0:r.path)?void 0:l.length)]]),Yr(ta(jye,{
paramKey:"cookies",title:"Cookies"
},null,512),[[Ka,"All"===s.value||"Cookies"===s.value]]),Yr(ta(jye,{
paramKey:"headers",title:"Headers"
},null,512),[[Ka,"All"===s.value||"Headers"===s.value]]),Yr(ta(jye,{
paramKey:"query",title:"Query Parameters"
},null,512),[[Ka,"All"===s.value||"Query"===s.value]]),Yr(ta(Bye,{title:"Body"
},null,512),[[Ka,Fn(t)&&("All"===s.value||"Body"===s.value)&&Fn(fd)(Fn(t).method)]])])]
})),_:1}))}}),$we=(e,t=2)=>e>1e3?(e/1e3).toFixed(t)+"s":e+"ms",Rwe={100:{
color:"text-yellow"},200:{color:"text-green"},202:{color:"text-green"},300:{
color:"text-blue"},304:{color:"text-blue"},400:{color:"text-red"},401:{
color:"text-orange"},422:{color:"text-yellow"},423:{color:"text-purple"},505:{
color:"text-orange"}},Nwe=e=>Rwe[e]||{color:"text-grey"},Iwe={class:"min-w-0"
},Mwe={class:"min-w-0 truncate text-c-1"},Lwe=eo({__name:"AddressBarHistory",
props:{open:{type:Boolean}},setup(e){
const{activeRequest:t,requestHistory:n,requestExampleMutators:r}=fne(),o=f6(),i=Aa((()=>n.filter((e=>{
var n;return e.request.requestUid===(null==(n=t.value)?void 0:n.uid)
})).slice().reverse()));return(e,n)=>{var a
;return zi(),Wi(Bi,null,[null!=(a=i.value)&&a.length?(zi(),Xi(Fn(eN),{key:0,
class:"addressbar-history-button mr-1 rounded-lg p-1.5 text-c-3 focus:text-c-1"
},{default:Tr((()=>[ta(Fn(xZ),{icon:"History",size:"sm",thickness:"2.25"})])),
_:1})):aa("",!0),ea("div",{
class:et(["absolute bg-white left-0 top-8 w-full rounded-lg before:pointer-events-none before:absolute before:left-0 before:-top-8 before:h-[calc(100%+32px)] before:w-full before:rounded-lg z-50",{
"before:shadow-lg":e.open}])},[ta(Fn(tN),{
class:"bg-b-1 border-t custom-scroll max-h-[300px] rounded-b-lg p-[3px] grid grid-cols-[44px,1fr,repeat(3,auto)] items-center"
},{default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(i.value,((e,n)=>(zi(),Xi(Fn(nN),{
key:n,
class:"contents font-code text-sm *:rounded-none first:*:rounded-l last:*:rounded-r *:h-8 *:hover:bg-b-2 *:flex *:items-center *:cursor-pointer *:px-1.5 text-c-2 font-medium",
value:n,onClick:n=>function(e){var n
;const i=o.currentRoute.value.params.workspace
;(null==(n=t.value)?void 0:n.uid)!==e.request.requestUid&&o.push(`/workspace/${i}/request/${e.request.requestUid}`),
r.set({...e.request})}(e)},{default:Tr((()=>{var t
;return[e.response.method?(zi(),Xi(Sne,{key:0,class:"text-[11px]",
method:e.response.method
},null,8,["method"])):aa("",!0),ea("div",Iwe,[ea("div",Mwe,st(e.response.path),1)]),ea("div",null,st(Fn($we)(e.response.duration)),1),ea("div",{
class:et([Fn(Nwe)(e.response.status).color])
},st(e.response.status),3),ea("div",null,st(null==(t=Fn(gd)[e.response.status])?void 0:t.name),1)]
})),_:2},1032,["value","onClick"])))),128))])),_:1})],2)],64)}}
}),Bwe=mne(Lwe,[["__scopeId","data-v-38e0296d"]]),Qwe={
class:"whitespace-nowrap text-ellipsis overflow-hidden"},jwe=eo({
__name:"AddressBarServerItem",props:{serverOption:{},type:{}},setup(e){
const t=e,{activeCollection:n,activeRequest:r,activeServer:o,collectionMutators:i,requestMutators:a}=fne(),s=e=>{
var t;return(null==(t=o.value)?void 0:t.uid)===e};return(e,o)=>(zi(),Xi(Fn(mW),{
class:"flex !gap-1.5 group font-code text-xxs whitespace-nowrap text-ellipsis overflow-hidden",
value:e.serverOption.id,onClick:o[0]||(o[0]=o=>(e=>{
"collection"===t.type&&n.value?i.edit(n.value.uid,"selectedServerUid",e):"request"===t.type&&r.value&&a.edit(r.value.uid,"selectedServerUid",e)
})(e.serverOption.id))},{default:Tr((()=>[ea("div",{
class:et(["flex size-4 items-center justify-center rounded-full p-[3px] group-hover:shadow-border",s(e.serverOption.id)?"bg-blue text-b-1":"text-transparent"])
},[ta(Fn(xZ),{class:"relative top-[0.5px] size-2.5",icon:"Checkmark",
thickness:"3.5"})],2),ea("span",Qwe,st(e.serverOption.label),1)])),_:1
},8,["value"]))}}),Uwe={key:0,class:"text-xxs text-c-2 ml-8"},Fwe=ea("div",{
class:"text-xxs text-c-2 ml-8"},"Collection Servers",-1),qwe={
class:"flex items-center justify-center h-4 w-4"
},zwe=ea("span",null,"Add Server",-1),Hwe={key:1,
class:"flex whitespace-nowrap items-center font-code lg:text-sm text-xs"
},Zwe=eo({__name:"AddressBarServer",setup(e){
const{activeRequest:t,activeCollection:n,activeServer:r,isReadOnly:o,servers:i,collectionMutators:a}=fne(),s=Aa((()=>{
var e,n;return null==(n=null==(e=t.value)?void 0:e.servers)?void 0:n.map((e=>{
var t;return{id:e,label:(null==(t=i[e])?void 0:t.url)??"Unknown server"}}))
})),l=Aa((()=>{var e,t
;return null==(t=null==(e=n.value)?void 0:e.servers)?void 0:t.map((e=>{var t
;return{id:e,label:(null==(t=i[e])?void 0:t.url)??"Unknown server"}}))
})),c=Aa((()=>{var e,t
;return(null==(e=s.value)?void 0:e.length)&&(null==(t=l.value)?void 0:t.length)
}));li([n,t],(([e,t])=>{
!e||e.selectedServerUid||null!=t&&t.selectedServerUid||a.edit(e.uid,"selectedServerUid",e.servers[0])
}));const u=()=>Ene.emit({commandName:"Add Server"}),d=Aa((()=>{var e,t,n
;return null!=(t=null==(e=r.value)?void 0:e.url)&&t.endsWith("/")?r.value.url.slice(0,-1):(null==(n=r.value)?void 0:n.url)||""
}));return(e,t)=>{var n,r
;return s.value&&(null==(n=s.value)?void 0:n.length)>1||l.value&&(null==(r=l.value)?void 0:r.length)>1?(zi(),
Xi(Fn(dW),{key:0,teleport:".scalar-client"},{
items:Tr((()=>[c.value?(zi(),Wi("div",Uwe," Request Servers ")):aa("",!0),(zi(!0),
Wi(Bi,null,Kr(s.value,(e=>(zi(),Xi(jwe,{key:e.id,serverOption:e,type:"request"
},null,8,["serverOption"])))),128)),c.value?(zi(),Wi(Bi,{key:1
},[ta(Fn(hW)),Fwe],64)):aa("",!0),(zi(!0),
Wi(Bi,null,Kr(l.value,(e=>(zi(),Xi(jwe,{key:e.id,serverOption:e,
type:"collection"
},null,8,["serverOption"])))),128)),Fn(o)?aa("",!0):(zi(),Wi(Bi,{key:2
},[ta(Fn(hW)),ta(Fn(mW),null,{default:Tr((()=>[ea("div",{
class:"font-code text-xxs flex items-center gap-1.5",onClick:u
},[ea("div",qwe,[ta(Fn(xZ),{class:"h-2.5",icon:"Add"})]),zwe])])),_:1
})],64))])),default:Tr((()=>[ea("button",{
class:"font-code lg:text-sm text-xs whitespace-nowrap border border-b-3 border-solid rounded px-1.5 py-0.5 text-c-2 z-[1]",
type:"button",onClick:t[0]||(t[0]=$s((()=>{}),["stop"]))},st(d.value),1)])),_:1
})):d.value?(zi(),Wi("div",Hwe,st(d.value),1)):aa("",!0)}}
}),Vwe=gK(Symbol()),Wwe=e=>(_r("data-v-1a9f572a"),e=e(),Er(),e),Xwe={key:0,
class:"order-last lg:order-none lg:w-auto w-full"},Ywe={
class:"m-auto flex flex-row items-center"},Gwe={
class:"pointer-events-none absolute left-0 top-0 z-10 block h-full w-full overflow-hidden"
},Kwe={class:"flex gap-1"},Jwe={
class:"codemirror-bg-switcher scroll-timeline-x scroll-timeline-x-hidden relative flex w-full"
},exe=Wwe((()=>ea("div",{class:"fade-left"},null,-1))),txe=Wwe((()=>ea("div",{
class:"fade-right"},null,-1))),nxe=Wwe((()=>ea("span",{
class:"text-xxs relative z-10 lg:flex hidden"},"Send",-1))),rxe=eo({
__name:"AddressBar",setup(e){
const{activeRequest:t,activeExample:n,isReadOnly:r,requestMutators:o,requestHistory:i}=fne(),a=Bn(i[0]),s=Bn(null),l=bK()
;lK(RJ()?l.meta_enter:l.ctrl_enter,(()=>Vwe.emit()));li((()=>{var e
;return null==(e=t.value)?void 0:e.path}),(e=>{!t.value||!e||(e=>{
!t.value||t.value.path===e||o.edit(t.value.uid,"path",e)})(e)}))
;const c=Bn(100),u=Bn(0),d=Bn(!1),p=Bn();function h(){
d.value?c.value-=(c.value-15)/60:c.value-=u.value/20,
c.value<=0&&(clearInterval(p.value),p.value=void 0,c.value=100,d.value=!1)}
function f(e){t.value&&o.edit(t.value.uid,"method",e)}function m(){
if(!t.value)return;const{method:e}=t.value;return pd[e].backgroundColor}
function g(){d.value||(d.value=!0,Vwe.emit())}function v(e){
t.value&&o.edit(t.value.uid,"path",e)}function b(e){var t
;e.focusAddressBar&&(null==(t=s.value)||t.focus())}return yre.on((e=>{
"start"===e&&(p.value||(d.value=!0,
p.value=setInterval(h,20))),"stop"===e&&(u.value=c.value,
d.value=!1),"abort"===e&&(clearInterval(p.value),
p.value=void 0,c.value=100,d.value=!1)
})),Ur((()=>vne.on(b))),zr((()=>vne.off(b))),
(e,o)=>Fn(t)&&Fn(n)?(zi(),Wi("div",Xwe,[ea("div",Ywe,[ta(Fn(JR),{
modelValue:a.value,"onUpdate:modelValue":o[0]||(o[0]=e=>a.value=e)},{
default:Tr((({open:e})=>[ea("div",{
class:et(["addressbar-bg-states text-xxs relative flex w-full lg:min-w-[720px] lg:max-w-[720px] order-last overflow-hidden lg:order-none flex-1 flex-row items-stretch rounded-lg border-1/2 p-[3px]",{
"border-transparent overflow-visible rounded-b-none":e}])
},[ea("div",Gwe,[ea("div",{
class:et(["bg-mix-transparent bg-mix-amount-90 absolute left-0 top-0 h-full w-full",m()]),
style:Xe({transform:`translate3d(-${c.value}%,0,0)`})
},null,6)]),ea("div",Kwe,[ta(Sne,{isEditable:!Fn(r),isSquare:"",
method:Fn(t).method,teleport:".scalar-client",onChange:f
},null,8,["isEditable","method"])]),ea("div",Jwe,[exe,ta(Zwe),ta(nye,{
ref_key:"addressBarRef",ref:s,disableCloseBrackets:"",disabled:Fn(r),
disableEnter:"",disableTabIndent:"",emitOnBlur:!1,modelValue:Fn(t).path,
placeholder:"Enter URL to get started",server:"",onSubmit:g,
"onUpdate:modelValue":v},null,8,["disabled","modelValue"]),txe]),ta(Bwe,{open:e
},null,8,["open"]),ta(Fn(LI),{
class:"relative h-auto shrink-0 gap-1 overflow-hidden pl-2 pr-2.5 py-1 z-[1] font-bold",
disabled:d.value,onClick:g},{default:Tr((()=>[ta(Fn(xZ),{
class:"relative z-10 shrink-0 fill-current",icon:"Play",size:"xs"}),nxe])),_:1
},8,["disabled"])],2)])),_:1},8,["modelValue"])])])):aa("",!0)}
}),oxe=mne(rxe,[["__scopeId","data-v-1a9f572a"]]),ixe={
class:"font-medium m-0 text-sm flex gap-1.5 items-center"},axe={
class:"flex items-center justify-center h-4 w-4"},sxe=ea("span",{
class:"leading-none"},"Manage Environments",-1),lxe=eo({
__name:"EnvironmentSelector",setup(e){
const{environments:t,activeWorkspace:n,workspaceMutators:r,activeEnvironment:o,isReadOnly:i}=fne(),a=f6(),s=e=>{
r.edit(n.value.uid,"activeEnvironmentId",e)
},l=()=>a.push(`/workspace/${n.value.uid}/environment`),c=Aa((()=>[t.default,...Object.values(t).filter((e=>"default"!==e.uid))]))
;return(e,t)=>(zi(),Wi("div",null,[ta(Fn(dW),null,{
items:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(c.value,(e=>(zi(),Xi(Fn(mW),{key:e.uid,
class:"flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
onClick:$s((t=>s(e.uid)),["stop"])},{default:Tr((()=>[ea("div",{
class:et(["flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",Fn(n).activeEnvironmentId===e.uid?"bg-blue text-b-1":"text-transparent"])
},[ta(Fn(xZ),{class:"size-2.5",icon:"Checkmark",thickness:"3.5"
})],2),oa(" "+st(e.name),1)])),_:2},1032,["onClick"])))),128)),ta(Fn(mW),{
class:"flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
onClick:t[0]||(t[0]=$s((e=>s("")),["stop"]))},{default:Tr((()=>[ea("div",{
class:et(["flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",""===Fn(n).activeEnvironmentId?"bg-blue text-b-1":"text-transparent"])
},[ta(Fn(xZ),{class:"size-2.5",icon:"Checkmark",thickness:"3.5"
})],2),oa(" No Environment ")])),_:1
}),ta(Fn(hW)),Fn(i)?aa("",!0):(zi(),Xi(Fn(mW),{key:0,
class:"flex items-center gap-1.5",onClick:l},{
default:Tr((()=>[ea("div",axe,[ta(Fn(xZ),{icon:"Brackets",size:"sm"})]),sxe])),
_:1}))])),default:Tr((()=>[ta(Fn(LI),{
class:"font-normal h-auto justify-start py-1.5 px-1.5 text-c-1 hover:bg-b-2 text-c-2 w-fit",
fullWidth:"",variant:"ghost"},{default:Tr((()=>{var e
;return[ea("h2",ixe,[oa(st((null==(e=Fn(o))?void 0:e.name)??"No Environment")+" ",1),ta(Fn(xZ),{
class:"size-2.5",icon:"ChevronDown",thickness:"3.5"})])]})),_:1})])),_:1})]))}
}),cxe={class:"size-3.5",fill:"none",viewBox:"0 0 24 24",
xmlns:"http://www.w3.org/2000/svg"},uxe=ea("defs",null,[ea("clipPath",{id:"mask"
},[ea("path",{"clip-rule":"evenodd",
d:"M9 3.2H4c-1.7 0-3 1.3-3 3v11.5c0 1.7 1.3 3 3 3h5V3.2z"})])],-1),dxe={
"clip-path":"url(#mask)"},pxe=ea("path",{
d:"M20 20.8H4c-1.7 0-3-1.3-3-3V6.2c0-1.7 1.3-3 3-3h16c1.7 0 3 1.3 3 3v11.5c0 1.7-1.3 3-3 3zM9 3.2v17.5",
stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",
"stroke-width":"2"},null,-1),hxe=eo({__name:"SidebarToggle",props:{modelValue:{
type:Boolean}},emits:["update:modelValue"],setup:e=>(e,t)=>(zi(),Wi("button",{
class:"text-c-3 hover:bg-b-2 active:text-c-1 p-2 rounded",type:"button",
onClick:t[0]||(t[0]=t=>e.$emit("update:modelValue",!e.modelValue))
},[(zi(),Wi("svg",cxe,[uxe,ea("g",dxe,[ea("path",{
class:et(["transition-transform duration-300",e.modelValue?"translate-x-0":"-translate-x-1/2"]),
d:"M1 3.2h8v17.5H1z",fill:"currentColor"},null,2)]),pxe]))]))
}),fxe=e=>(_r("data-v-d2e340a5"),e=e(),Er(),e),mxe={
class:"lg:min-h-header flex items-center w-full justify-center p-1 flex-wrap t-app__top-container border-b-1/2"
},gxe={
class:"flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12"
},vxe=fxe((()=>ea("a",{
class:"text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
href:"https://scalar.com/",target:"_blank"
}," Powered by Scalar.com ",-1))),bxe={
class:"flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12"
},Oxe=eo({__name:"RequestSubpageHeader",props:{modelValue:{type:Boolean},
isReadonly:{type:Boolean}},emits:["update:modelValue","hideModal"],
setup:e=>(e,t)=>(zi(),Wi("div",mxe,[ea("div",gxe,[ta(hxe,{
class:"gitbook-hidden",modelValue:e.modelValue,
"onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:modelValue",t))
},null,8,["modelValue"]),vxe]),ta(oxe),ea("div",bxe,[e.isReadonly?aa("",!0):(zi(),
Xi(lxe,{key:0})),e.isReadonly?(zi(),Wi("button",{key:1,
class:"text-c-3 hover:bg-b-2 active:text-c-1 p-2 rounded",type:"button",
onClick:t[1]||(t[1]=t=>e.$emit("hideModal"))},[ta(Fn(xZ),{icon:"Close",
size:"lg",thickness:"1.75"})])):aa("",!0)])]))
}),yxe=mne(Oxe,[["__scopeId","data-v-d2e340a5"]]),wxe=["download","href"],xxe=ea("span",null,"Download",-1),kxe=eo({
__name:"ResponseBodyDownload",props:{href:{},type:{}},setup(e){
const t=e,n=Aa((()=>{var e
;return(null==(e=wre[t.type??""])?void 0:e.extension)??".unknown"}))
;return(e,t)=>(zi(),Wi("a",{
class:"flex gap-1 text-c-3 text-xxs no-underline items-center hover:bg-b-3 rounded py-0.5 px-1.5",
download:`response${n.value}`,href:e.href,
onClick:t[0]||(t[0]=$s((()=>{}),["stop"]))},[ta(Fn(xZ),{icon:"Download",
size:"xs"}),xxe],8,wxe))}}),Sxe={class:"flex justify-center px-2 py-3"},_xe={
class:"text-c-3 p-2 text-sm"};const Exe=mne({},[["render",function(e,t){
return zi(),Wi("div",Sxe,[ea("div",_xe,[no(e.$slots,"default")])])
}]]),Txe=["src"],Cxe=["src","type"],Axe=["src","type"],Pxe=["data","type"],Dxe=eo({
__name:"ResponseBodyPreview",props:{src:{},type:{},mode:{},alpha:{type:Boolean}
},setup(e){const t=e,n=Bn(!1)
;return li((()=>t.src),(()=>n.value=!1)),(e,t)=>!n.value&&e.src?(zi(),Wi("div",{
key:0,class:et(["flex justify-center overflow-hidden rounded-b",{
"p-2 bg-preview":e.alpha}])},["image"===e.mode?(zi(),Wi("img",{key:0,
class:et(["max-w-full",{rounded:e.alpha}]),src:e.src,
onError:t[0]||(t[0]=e=>n.value=!0)
},null,42,Txe)):"video"===e.mode?(zi(),Wi("video",{key:1,autoplay:"",
controls:"",loop:"",width:"100%",onError:t[1]||(t[1]=e=>n.value=!0)
},[ea("source",{src:e.src,type:e.type},null,8,Cxe)],32)):"audio"===e.mode?(zi(),
Wi("audio",{key:2,class:"my-12",controls:"",loop:"",
onError:t[2]||(t[2]=e=>n.value=!0)},[ea("source",{src:e.src,type:e.type
},null,8,Axe)],32)):(zi(),Wi("object",{key:3,class:"w-full aspect-[4/3]",
data:e.src,type:e.type,onError:t[3]||(t[3]=e=>n.value=!0)
},null,40,Pxe))],2)):(zi(),Xi(Exe,{key:1},{
default:Tr((()=>[oa("Preview unavailable")])),_:1}))}
}),$xe=mne(Dxe,[["__scopeId","data-v-7fbe3767"]]),Rxe=eo({
__name:"ResponseBodyRaw",props:{data:{},language:{}},setup(e){
const t=e,n=Bn(null),r=Aa((()=>{const e=t.data
;return e&&ld(e)?JSON.stringify(JSON.parse(e),null,2):e&&"object"==typeof Pn(e)?JSON.stringify(e,null,2):e
}));return ROe({codeMirrorRef:n,readOnly:!0,lineNumbers:!0,content:r,
language:t.language}),(e,t)=>(zi(),Xi(Fn(TZ),{content:r.value,lang:e.language
},null,8,["content","lang"]))}
}),Nxe=mne(Rxe,[["__scopeId","data-v-ee29f8db"]]),Ixe={
class:"text-c-3 flex -my-1 justify-center rounded text-xxs p-0.5 gap-0.5"
},Mxe=eo({__name:"ResponseBodyToggle",props:{modelValue:{type:Boolean}},
emits:["update:modelValue"],setup:e=>(e,t)=>(zi(),Wi("div",Ixe,[ea("button",{
class:et(["hover:bg-b-3 rounded px-1",{
"bg-b-3 text-c-1 cursor-default":e.modelValue}]),type:"button",
onClick:t[0]||(t[0]=$s((t=>e.$emit("update:modelValue",!0)),["stop"]))
}," Preview ",2),ea("button",{class:et(["hover:bg-b-3 rounded px-1",{
"bg-b-3 text-c-1 cursor-default":!e.modelValue}]),type:"button",
onClick:t[1]||(t[1]=$s((t=>e.$emit("update:modelValue",!1)),["stop"]))
}," Raw ",2)]))}),Lxe={key:0,
class:"mx-1 border-1/2 flex flex-col rounded bg-b-1"},Bxe={
class:"flex justify-between items-center border-b-1/2 px-3 py-1.5"},Qxe={
class:"text-xxs leading-3 font-code"},jxe=eo({__name:"ResponseBody",props:{
title:{},data:{},headers:{}},setup(e){const t=e,n=Bn(!0),r=Aa((()=>{var e
;return!(null==(e=s.value)||!e.raw||!s.value.preview)
})),o=Aa((()=>n.value||!r.value)),i=Aa((()=>!n.value||!r.value)),a=Aa((()=>{
var e
;const n=(null==(e=t.headers.find((e=>"content-type"===e.name.toLowerCase())))?void 0:e.value)??""
;return new Ore(n)
})),s=Aa((()=>wre[a.value.essence])),l=Aa((()=>(e=>e instanceof Blob)(t.data)?URL.createObjectURL(t.data):"string"==typeof t.data?URL.createObjectURL(new Blob([t.data],{
type:a.value.toString()
})):t.data instanceof Object&&Object.keys(t.data).length?URL.createObjectURL(new Blob([JSON.stringify(t.data)],{
type:a.value.toString()})):""));return(e,t)=>(zi(),Xi(hye,null,Jr({
title:Tr((()=>[oa(st(e.title),1)])),default:Tr((()=>{var c,u,d,p
;return[e.data?(zi(),
Wi("div",Lxe,[ea("div",Bxe,[ea("span",Qxe,st(a.value.essence),1),r.value?(zi(),
Xi(Mxe,{key:0,modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e)
},null,8,["modelValue"])):aa("",!0)]),null!=(c=s.value)&&c.raw&&i.value?(zi(),
Xi(Nxe,{key:l.value,data:e.data,language:s.value.language
},null,8,["data","language"])):aa("",!0),null!=(u=s.value)&&u.preview&&o.value?(zi(),
Xi($xe,{key:l.value,alpha:s.value.alpha,mode:s.value.preview,src:l.value,
type:a.value.essence
},null,8,["alpha","mode","src","type"])):aa("",!0),null!=(d=s.value)&&d.raw||null!=(p=s.value)&&p.preview?aa("",!0):(zi(),
Xi(Exe,{key:2},{default:Tr((()=>[oa(" Binary file ")])),_:1}))])):aa("",!0)]})),
_:2},[e.data&&l.value?{name:"actions",fn:Tr((()=>[ta(kxe,{href:l.value,
type:a.value.essence},null,8,["href","type"])])),key:"0"}:void 0]),1024))}
}),Uxe=eo({__name:"ScalarAsciiArt",props:{art:{},animate:{type:Boolean}},
setup(e){const t=e,n=Aa((()=>t.art.split("\n"))),r=(e,t)=>({
animationDuration:100*e+"ms, 500ms",
animationTimingFunction:`steps(${e}), step-end`,animationDelay:100*t+"ms, 0ms",
animationIterationCount:"1, "+100*(n.value.length+n.value[n.value.length-1].length+5)/500
});return(e,t)=>(zi(),Wi("div",{
class:et(["ascii-art font-code text-c-3 flex flex-col items-start text-[6px] leading-[7px]",{
"ascii-art-animate":e.animate}])
},[(zi(!0),Wi(Bi,null,Kr(n.value,((e,t)=>(zi(),Wi("span",{key:t,
class:"inline-block",style:Xe({width:`calc(${e.length+1}ch)`})},[ea("span",{
class:"inline-block whitespace-pre overflow-hidden",style:Xe(r(e.length,t))
},st(e),5)],4)))),128))],2))}
}),Fxe=mne(Uxe,[["__scopeId","data-v-80684d49"]]),qxe=e=>(_r("data-v-c180e370"),
e=e(),Er(),e),zxe={class:"relative col-1 flex-center gap-6 p-2 capitalize"
},Hxe={class:"flex h-[calc(100%_-_50px)] flex-col items-center justify-center"
},Zxe={key:0,class:"scalar-version-number"
},Vxe=qxe((()=>ea("b",null,"Alpha",-1))),Wxe=qxe((()=>ea("div",{class:"mt-1"
},[ea("a",{href:"https://github.com/scalar/scalar/issues/2669",target:"_blank"
},"Roadmap")],-1))),Xxe={
class:"text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm"
},Yxe=eo({__name:"ResponseEmpty",setup(e){
const{isReadOnly:t,activeWorkspace:n}=fne(),r=()=>{Ene.emit({
commandName:"Create Request"})},o=e=>{e.openCommandPaletteRequest&&r()}
;return Ur((()=>vne.on(o))),
zr((()=>vne.off(o))),(e,o)=>(zi(),Wi("div",zxe,[ea("div",Hxe,[Fn(n).isReadOnly?aa("",!0):(zi(),
Wi("div",Zxe,[oa(" Scalar V1.0.6 "),Vxe,oa(" Release "),Wxe])),ta(Fxe,{
art:Fn("                         .,,uod8B8bou,,.\n                ..,uod8BBBBBBBBBBBBBBBBRPFT?l!i:.\n           ||||||||||||||!?TFPRBBBBBBBBBBBBBBB8m=,\n           ||||   '\"\"^^!!||||||||||TFPRBBBVT!:...!\n           ||||            '\"\"^^!!|||||?!:.......!\n           ||||                     ||||.........!\n           ||||                     ||||.........!\n           ||||                     ||||.........!\n           ||||                     ||||.........!\n           ||||                     ||||.........!\n           ||||                     ||||.........!\n           ||||,                    ||||.........`\n           |||||!!-._               ||||.......;.\n           ':!|||||||||!!-._        ||||.....bBBBBWdou,.\n         bBBBBB86foi!|||||||!!-..:|||!..bBBBBBBBBBBBBBBY!\n         ::!?TFPRBBBBBB86foi!||||||||!!bBBBBBBBBBBBBBBY..!\n         :::::::::!?TFPRBBBBBB86ftiaabBBBBBBBBBBBBBBY....!\n         :::;`\"^!:;::::::!?TFPRBBBBBBBBBBBBBBBBBBBY......!\n         ;::::::...''^::::::::::!?TFPRBBBBBBBBBBY........!\n     .ob86foi;::::::::::::::::::::::::!?TFPRBY..........`\n    .b888888888886foi;:::::::::::::::::::::::..........`\n .b888888888888888888886foi;::::::::::::::::..........\n.b888888888888888888888888888886foi;:::::::::......`\n!Tf998888888888888888888888888888888886foi;:::....`\n  '\"^!|Tf9988888888888888888888888888888888!::..`\n       '\"^!|Tf998888888888888888888888889!! '`\n             '\"^!|Tf9988888888888888888!!`            iBBbo.\n                  '\"^!|Tf998888888889!`             WBBBBbo.\n                        '\"^!|Tf9989!`              YBBBP^'\n                              '\"^!`               `\n")
},null,8,["art"])]),ea("div",Xxe,[ea("button",{
class:"flex items-center gap-1.5",type:"button",
onClick:o[0]||(o[0]=e=>Fn(Vwe).emit())},[oa(" Send Request "),ta(gne,{hotkey:"↵"
})]),Fn(t)?aa("",!0):(zi(),Wi("button",{key:0,class:"flex items-center gap-1.5",
type:"button",onClick:r},[oa(" New Request "),ta(gne,{hotkey:"N"})]))])]))}
}),Gxe=mne(Yxe,[["__scopeId","data-v-c180e370"]]),Kxe=gK(Symbol()),Jxe={key:0,
class:"absolute inset-0 bg-b-1 z-10 flex flex-col gap-6 items-center justify-center"
},eke=eo({__name:"ResponseLoadingOverlay",setup(e){const t=$I(),n=Bn()
;return yre.on((e=>{
"start"===e?n.value=setTimeout((()=>t.startLoading()),1e3):(clearTimeout(n.value),
n.value=void 0,t.stopLoading())})),(e,n)=>(zi(),Xi(Ba,null,{
default:Tr((()=>[Fn(t).isLoading?(zi(),Wi("div",Jxe,[ta(Fn(NI),{
class:"text-c-3",loadingState:Fn(t),size:"3xl"
},null,8,["loadingState"]),ta(Fn(LI),{variant:"ghost",
onClick:n[0]||(n[0]=e=>Fn(Kxe).emit())},{default:Tr((()=>[oa(" Cancel ")])),_:1
})])):aa("",!0)])),_:1}))}
}),tke=mne(eke,[["__scopeId","data-v-7a03bf55"]]),nke=["href"],rke=eo({
__name:"HelpfulLink",props:{href:{}},setup:e=>(e,t)=>(zi(),Wi("a",{
class:"cursor-help decoration-c-3 underline underline-offset-2",href:e.href,
rel:"noopener noreferrer",target:"_blank"},[no(e.$slots,"default")],8,nke))
}),oke=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],ike=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],ake=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],ske=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],lke=(e,t,n)=>{
let r=e
;return"string"==typeof t||Array.isArray(t)?r=e.toLocaleString(t,n):!0!==t&&void 0===n||(r=e.toLocaleString(void 0,n)),
r};function cke(e,t={}){
if(!Number.isFinite(e))throw new TypeError("Expected a finite number")
;t.colonNotation&&(t.compact=!1,
t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,
t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,
t.millisecondsDecimalDigits=0);const n=[],r=(e,r,o,i)=>{
if(!(0!==n.length&&t.colonNotation||0!==e||t.colonNotation&&"m"===o))return
;let a,s;if(i=(i||e||"0").toString(),t.colonNotation){a=n.length>0?":":"",s=""
;const e=i.includes(".")?i.split(".")[0].length:i.length,t=n.length>0?2:1
;i="0".repeat(Math.max(0,t-e))+i
}else a="",s=t.verbose?" "+(l=r,1===e?l:`${l}s`):o;var l;n.push(a+i+s)
},o=function(e){if("number"!=typeof e)throw new TypeError("Expected a number")
;const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,
minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,
microseconds:t(1e3*e)%1e3,nanoseconds:t(1e6*e)%1e3}}(e)
;if(r(Math.trunc(o.days/365),"year","y"),
r(o.days%365,"day","d"),r(o.hours,"hour","h"),
r(o.minutes,"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(r(o.seconds,"second","s"),
t.formatSubMilliseconds)r(o.milliseconds,"millisecond","ms"),
r(o.microseconds,"microsecond","µs"),r(o.nanoseconds,"nanosecond","ns");else{
const e=o.milliseconds+o.microseconds/1e3+o.nanoseconds/1e6,n="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,i=e>=1?Math.round(e):Math.ceil(e),a=n?e.toFixed(n):i
;r(Number.parseFloat(a),"millisecond","ms",a)}else{const n=((e,t)=>{
const n=Math.floor(e*10**t+1e-7);return(Math.round(n)/10**t).toFixed(t)
})(e/1e3%60,"number"==typeof t.secondsDecimalDigits?t.secondsDecimalDigits:1),o=t.keepDecimalsOnWholeSeconds?n:n.replace(/\.0+$/,"")
;r(Number.parseFloat(o),"second","s",o)}
if(0===n.length)return"0"+(t.verbose?" milliseconds":"ms")
;if(t.compact)return n[0];if("number"==typeof t.unitCount){
const e=t.colonNotation?"":" ";return n.slice(0,Math.max(t.unitCount,1)).join(e)
}return t.colonNotation?n.join(""):n.join(" ")}const uke={
class:"flex gap-1.5 text-c-3 pl-1"},dke={key:0},pke={key:0},hke={key:1},fke=eo({
__name:"ResponseMetaInformation",props:{response:{}},setup(e){
const t=e,n=Bn(),r=Bn(0);yre.on((e=>{
"start"===e?n.value=setInterval((()=>r.value+=1e3),1e3):(clearInterval(n.value),
n.value=void 0,r.value=0)}));const o=e=>{var t,n
;const r=parseInt((null==(t=e.headers)?void 0:t["Content-Length"])||(null==(n=e.headers)?void 0:n["content-length"])||"0",10)
;return r?function(e,t){
if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`)
;const n=(t={bits:!1,binary:!1,space:!0,...t
}).bits?t.binary?ske:ake:t.binary?ike:oke,r=t.space?" ":""
;if(t.signed&&0===e)return` 0${r}${n[0]}`;const o=e<0,i=o?"-":t.signed?"+":""
;let a;if(o&&(e=-e),void 0!==t.minimumFractionDigits&&(a={
minimumFractionDigits:t.minimumFractionDigits
}),void 0!==t.maximumFractionDigits&&(a={
maximumFractionDigits:t.maximumFractionDigits,...a
}),e<1)return i+lke(e,t.locale,a)+r+n[0]
;const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),n.length-1)
;return e/=(t.binary?1024:1e3)**s,
a||(e=e.toPrecision(3)),i+lke(Number(e),t.locale,a)+r+n[s]}(r):void 0
},i=Aa((()=>{const e=t.response.status;if(e)return gd[e]??void 0}))
;return(e,t)=>(zi(),
Wi("div",uke,[n.value&&r.value?(zi(),Wi("span",dke,st(Fn(cke)(r.value)),1)):(zi(),
Wi(Bi,{key:1
},[ea("span",null,st(Fn(cke)(e.response.duration)),1),o(e.response)?(zi(),
Wi("span",pke,st(o(e.response)),1)):aa("",!0),i.value?(zi(),Wi(Bi,{key:1
},[i.value.url?(zi(),Xi(rke,{key:0,href:i.value.url},{
default:Tr((()=>[oa(st(e.response.status)+" "+st(i.value.name),1)])),_:1
},8,["href"])):(zi(),
Wi("span",hke,st(e.response.status)+" "+st(i.value.name),1))],64)):aa("",!0)],64))]))
}}),mke={class:"flex-1 px-2 py-1.5 whitespace-nowrap"},gke=eo({
__name:"DataTableText",props:{text:{}},setup:e=>(e,t)=>(zi(),Xi(iye,{
class:"relative flex"},{default:Tr((()=>[ea("span",mke,st(e.text),1)])),_:1}))
}),vke={key:1,
class:"text-c-3 px-4 text-sm border border-1/2 rounded min-h-12 justify-center flex items-center bg-b-1 mx-1"
},bke=eo({__name:"ResponseCookies",props:{cookies:{}},
setup:e=>(e,t)=>(zi(),Xi(hye,{defaultOpen:!1},{title:Tr((()=>[oa("Cookies")])),
default:Tr((()=>[(zi(),Wi(Bi,{key:0},[e.cookies.length?(zi(),Xi(oye,{key:0,
class:"flex-1",columns:["",""]},{
default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(e.cookies,((e,t)=>(zi(),Xi(lye,{key:t},{
default:Tr((()=>[ta(gke,{text:e.name},null,8,["text"]),ta(gke,{text:e.value
},null,8,["text"])])),_:2},1024)))),128))])),_:1
})):(zi(),Wi("div",vke," No cookies "))],64))])),_:1}))}),Oke={key:1,
class:"text-c-3 px-4 text-sm border rounded min-h-12 justify-center flex items-center bg-b-1 mx-1"
},yke=eo({__name:"ResponseHeaders",props:{headers:{}},
setup:e=>(e,t)=>(zi(),Xi(hye,{defaultOpen:!1,itemCount:e.headers.length},{
title:Tr((()=>[oa("Headers")])),default:Tr((()=>[e.headers.length?(zi(),Xi(oye,{
key:0,columns:["minmax(auto, min-content)","minmax(50%, 1fr)"],scroll:""},{
default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(e.headers,((e,t)=>(zi(),Xi(lye,{key:t,
class:"text-c-1"},{default:Tr((()=>[ta(gke,{
class:"sticky left-0 z-1 bg-b-1 max-w-48",text:e.name},null,8,["text"]),ta(gke,{
class:"z-0",text:e.value},null,8,["text"])])),_:2},1024)))),128))])),_:1
})):(zi(),Wi("div",Oke," No Headers "))])),_:1},8,["itemCount"]))}),wke={
class:"flex items-center flex-1"},xke={
class:"custom-scroll relative flex flex-1 flex-col px-2 xl:px-4 py-2.5"
},kke=eo({__name:"ResponseSection",props:{response:{}},setup(e){
const t=e,n=Aa((()=>{var e;const n=null==(e=t.response)?void 0:e.headers
;return n?Object.keys(n).map((e=>({name:e,value:n[e],required:!1
}))).filter((e=>!["rest-api-client-content-length","X-API-Client-Content-Length"].includes(e.name))):[]
})),r=Aa((()=>{var e
;return(null==(e=t.response)?void 0:e.cookieHeaderKeys.flatMap((e=>{var n,r
;const o=null==(r=null==(n=t.response)?void 0:n.headers)?void 0:r[e];return o?{
name:e,value:o,required:!1}:[]})))??[]
})),o=["Cookies","Headers","Body","All"],i=Bn("All")
;return(e,a)=>(zi(),Xi(Dre,null,{title:Tr((()=>[ta(Fn(xZ),{
class:"text-c-3 mr-2 rotate-180",icon:"ExternalLink",size:"sm",thickness:"2.5"
}),ea("div",wke,[oa(" Response "),e.response?(zi(),Xi(fke,{key:0,
response:e.response},null,8,["response"])):aa("",!0)])])),default:Tr((()=>{var s
;return[ea("div",xke,[e.response?(zi(),Wi(Bi,{key:1},[ta(Cre,{
activeSection:i.value,sections:o,onSetActiveSection:a[0]||(a[0]=e=>i.value=e)
},null,8,["activeSection"]),"All"===i.value||"Cookies"===i.value?(zi(),Xi(bke,{
key:0,cookies:r.value
},null,8,["cookies"])):aa("",!0),"All"===i.value||"Headers"===i.value?(zi(),
Xi(yke,{key:1,headers:n.value
},null,8,["headers"])):aa("",!0),"All"===i.value||"Body"===i.value?(zi(),
Xi(jxe,{key:2,active:!0,data:null==(s=t.response)?void 0:s.data,headers:n.value,
title:"Body"},null,8,["data","headers"])):aa("",!0)],64)):(zi(),Xi(Gxe,{key:0
})),ta(tke)])]})),_:1}))}}),Ske={parse(e){try{return{error:!1,data:JSON.parse(e)
}}catch(P$){return{error:!0,
message:P$.message?String(P$.message):"Unknown Error"}}}};function _ke(){
const e=f6(),{activeWorkspaceRequests:t,requests:n}=fne(),r=Bn([]),o=Bn([]),i=Bn(0),a=Bn(""),s=Bn(null),l=Bn([]),c=new TJ(r.value,{
keys:["title","description","body"]});li(t,(e=>{(e=>{r.value=e.map((e=>({
id:e.uid,title:e.summary??e.method,description:e.description??"",
httpVerb:e.method,path:e.path}))),c.setCollection(r.value)})(e.map((e=>n[e])))
}),{immediate:!0});const u=t=>{
e.push(t.item.id),a.value="",i.value=0,o.value=[],
s.value instanceof HTMLInputElement&&s.value.blur()
},d=Aa((()=>0===a.value.length?r.value.map((e=>({item:e}))):o.value));return{
searchText:a,searchResultsWithPlaceholderResults:d,selectedSearchResult:i,
onSearchResultClick:u,fuseSearch:()=>{i.value=0,o.value=c.search(a.value)},
searchInputRef:s,searchResultRefs:l,navigateSearchResults:e=>{
const t="up"===e?-1:1,n=d.value.length;i.value=(i.value+t+n)%n,dr((()=>{
const e=l.value[i.value];e instanceof HTMLElement&&e.scrollIntoView({
behavior:"smooth",block:"center"})}))},selectSearchResult:()=>{
i.value>=0&&u(d.value[i.value])}}}const Eke={
class:"fixed relative z-10 pt-0 md:px-2.5 md:pb-2 md:bottom-[42px]"},Tke=eo({
__name:"SidebarButton",props:{click:{type:Function}},setup(e){const t=e,n=()=>{
t.click()};return(e,t)=>(zi(),Wi("div",Eke,[ta(Fn(LI),{
class:"bg-b-1 text-c-1 hover:bg-b-2 group relative w-full border-1/2 px-2 py-1 md:p-1.5 h-auto",
icon:"Plus",variant:"outlined",onClick:n},{
default:Tr((()=>[no(e.$slots,"title"),ta(gne,{
class:"hidden md:block absolute right-2 group-hover:opacity-80 text-c-2 add-item-hotkey",
hotkey:"K",onHotkeyPressed:n})])),_:3})]))}}),Cke={
class:"flex gap-10 justify-between"},Ake=eo({__name:"SidebarListElementForm",
props:{danger:{type:Boolean},label:{}},emits:["cancel","submit"],
setup(e,{emit:t}){const n=t,r=EN({
base:"gap-1.5 font-medium px-2.5 h-8 shadow-none focus:outline-none",variants:{
danger:{true:"delete-warning-button",false:""}}});return(e,t)=>(zi(),Wi("form",{
class:"flex flex-col gap-4 text-base",
onSubmit:t[1]||(t[1]=$s((e=>n("submit")),["prevent"]))
},[no(e.$slots,"default",{},void 0,!0),ea("div",Cke,[ta(Fn(LI),{
class:"gap-1.5 px-2.5 h-8 shadow-none focus:outline-none flex items-center cursor-pointer",
type:"button",variant:"outlined",onClick:t[0]||(t[0]=e=>n("cancel"))},{
default:Tr((()=>[oa(" Cancel ")])),_:1}),ta(Fn(LI),{
class:et(["custom-scroll whitespace-nowrap",Fn(TN)(Fn(r)({danger:e.danger}))]),
type:"submit"},{default:Tr((()=>[oa(st(e.label??"Save"),1)])),_:1
},8,["class"])])],32))}}),Pke=mne(Ake,[["__scopeId","data-v-c3d3d457"]]),Dke={
key:0,class:"leading-normal text-c-2 text-sm text-pretty"},$ke=eo({
__name:"DeleteSidebarListElement",props:{variableName:{},warningMessage:{}},
emits:["close","delete"],setup(e,{emit:t}){
const n=e,r=t,o=Aa((()=>n.variableName.length>18?n.variableName.slice(0,18)+"…":n.variableName))
;return(e,t)=>(zi(),Xi(Pke,{danger:"",label:`Delete ${o.value}`,
onCancel:t[0]||(t[0]=e=>r("close")),onSubmit:t[1]||(t[1]=e=>r("delete"))},{
default:Tr((()=>[e.warningMessage?(zi(),
Wi("p",Dke,st(e.warningMessage),1)):aa("",!0)])),_:1},8,["label"]))}}),Rke=eo({
__name:"RenameSidebarListElement",props:{name:{}},emits:["close","rename"],
setup(e,{emit:t}){const n=t,r=Bn(e.name);return(e,t)=>(zi(),Xi(Pke,{
onCancel:t[1]||(t[1]=e=>n("close")),onSubmit:t[2]||(t[2]=e=>n("rename",r.value))
},{default:Tr((()=>[ta(Fn(SK),{modelValue:r.value,
"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e),autofocus:""
},null,8,["modelValue"])])),_:1}))}
}),Nke=e=>(_r("data-v-59cf3dad"),e=e(),Er(),e),Ike=Nke((()=>ea("span",null,"Add Example",-1))),Mke=Nke((()=>ea("span",null,"Rename",-1))),Lke=Nke((()=>ea("span",null,"Delete",-1))),Bke=eo({
__name:"RequestSidebarItemMenu",props:{menuItem:{}},emits:["closeMenu"],
setup(e,{emit:t}){
const n=e,r=t,{replace:o}=f6(),{activeWorkspace:i,activeRouterParams:a}=fne(),s=Bn(""),l=SI(),c=SI(),u=()=>{
var e;return Ene.emit({commandName:"Add Example",metaData:{
itemUid:null==(e=n.menuItem.item)?void 0:e.entity.uid}})},d=()=>{var e
;s.value=(null==(e=n.menuItem.item)?void 0:e.title)||"",l.show()},p=e=>{var t
;s.value=e,null==(t=n.menuItem.item)||t.rename(e),l.hide()},h=()=>{var e,t,r
;null==(e=n.menuItem.item)||e.delete(),
a.value[g6.Request]===(null==(t=n.menuItem.item)?void 0:t.entity.uid)&&o(`/workspace/${i.value.uid}/request/default`),
a.value[g6.Examples]===(null==(r=n.menuItem.item)?void 0:r.entity.uid)&&o(`/workspace/${i.value}/request/default`)
},f=Bn(null);li([()=>n.menuItem.open,f],(async([e])=>{var t,n
;e&&null!=(n=null==(t=f.value)?void 0:t.$parent)&&n.$el&&f.value.$parent.$el.focus()
}));const m=()=>n.menuItem.open&&r("closeMenu")
;return Ur((()=>window.addEventListener("click",m))),
zr((()=>window.removeEventListener("click",m))),(e,t)=>{var n,r
;return zi(),Wi(Bi,null,[e.menuItem.targetRef&&e.menuItem.open?(zi(),Xi(Fn(dW),{
key:0,static:"",targetRef:e.menuItem.targetRef,teleport:"",
onKeydown:t[1]||(t[1]=Ns((t=>e.$emit("closeMenu")),["escape"]))},{
items:Tr((()=>{var n
;return["request"===(null==(n=e.menuItem.item)?void 0:n.entity.type)?(zi(),
Xi(Fn(mW),{key:0,class:"flex gap-2",onClick:u},{default:Tr((()=>[ta(Fn(xZ),{
class:"inline-flex",icon:"Example",size:"md",thickness:"1.5"}),Ike])),_:1
})):aa("",!0),ta(Fn(mW),{ref_key:"menuRef",ref:f,class:"flex gap-2",onClick:d},{
default:Tr((()=>[ta(Fn(xZ),{class:"inline-flex",icon:"Edit",size:"md",
thickness:"1.5"}),Mke])),_:1},512),ta(Fn(mW),{class:"flex gap-2",
onClick:t[0]||(t[0]=e=>Fn(c).show())},{default:Tr((()=>[ta(Fn(xZ),{
class:"inline-flex",icon:"Delete",size:"md",thickness:"1.5"}),Lke])),_:1})]})),
_:1},8,["targetRef"])):aa("",!0),ta(Fn(TI),{size:"xxs",state:Fn(c),
title:`Delete ${null==(n=e.menuItem.item)?void 0:n.resourceTitle}`},{
default:Tr((()=>{var n,r;return[ta($ke,{
variableName:(null==(n=e.menuItem.item)?void 0:n.title)??"",
warningMessage:null==(r=e.menuItem.item)?void 0:r.warning,
onClose:t[2]||(t[2]=e=>Fn(c).hide()),onDelete:h
},null,8,["variableName","warningMessage"])]})),_:1
},8,["state","title"]),ta(Fn(TI),{size:"xxs",state:Fn(l),
title:`Rename ${null==(r=e.menuItem.item)?void 0:r.resourceTitle}`},{
default:Tr((()=>{var n;return[ta(Rke,{
name:(null==(n=e.menuItem.item)?void 0:n.title)??"",
onClose:t[3]||(t[3]=e=>Fn(l).hide()),onRename:p},null,8,["name"])]})),_:1
},8,["state","title"])],64)}}}),Qke=mne(Bke,[["__scopeId","data-v-59cf3dad"]])
;const jke=Bn(null),Uke=Bn(null),Fke=["draggable"],qke=eo({__name:"Draggable",
props:{ceiling:{default:.8},floor:{default:.2},isDraggable:{type:Boolean,
default:!0},isDroppable:{type:[Boolean,Function],default:!0},parentIds:{},id:{}
},emits:["onDragEnd","onDragStart"],setup(e,{expose:t,emit:n}){
const r=e,o=n,i=Aa((()=>(r.parentIds.length??0)>0?r.parentIds[r.parentIds.length-1]:null)),a=e=>{
!e.dataTransfer||!(e.target instanceof HTMLElement)||!r.isDraggable||(e.target.classList.add("dragging"),
e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move",jke.value={
id:r.id,parentId:i.value},o("onDragStart",{id:r.id,parentId:i.value}))
},s=((e,t)=>{let n=!1;return function(...r){
n||(e(...r),n=!0,setTimeout((()=>n=!1),t))}})((e=>{var t,n
;if(!jke.value||jke.value.id===r.id||r.parentIds.includes((null==(t=jke.value)?void 0:t.id)??""))return
;const o=null==(n=Uke.value)?void 0:n.offset,a=e.target.offsetHeight,s=r.floor*a,l=r.ceiling*a
;let c=3
;e.offsetY<=0&&o&&3!==o?c=o:e.offsetY<=s?c=0:e.offsetY>=l?c=1:e.offsetY>s&&e.offsetY<l&&(c=2),
(e=>"function"==typeof r.isDroppable?r.isDroppable(jke.value,{id:r.id,
parentId:i.value,offset:e}):r.isDroppable)(c)&&(Uke.value={id:r.id,
parentId:i.value,offset:c})}),25),l=["above","below","asChild"],c=Aa((()=>{var e
;let t="sidebar-indent-nested"
;return r.id===(null==(e=Uke.value)?void 0:e.id)&&(t+=` dragover-${l[Uke.value.offset]}`),
t})),u=()=>{if(!Uke.value||!jke.value)return;const e={...jke.value},t={
...Uke.value}
;jke.value=null,Uke.value=null,document.querySelectorAll("div.dragging").forEach((e=>e.classList.remove("dragging"))),
e.id!==t.id&&o("onDragEnd",e,t)};return t({draggingItem:jke,hoveredItem:Uke
}),(e,t)=>(zi(),Wi("div",{class:et(c.value),draggable:e.isDraggable,onDragend:u,
onDragover:t[0]||(t[0]=$s(((...e)=>Fn(s)&&Fn(s)(...e)),["prevent","stop"])),
onDragstart:$s(a,["stop"])},[no(e.$slots,"default",{},void 0,!0)],42,Fke))}
}),zke=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n
},Hke=zke(qke,[["__scopeId","data-v-1c55d212"]]),Zke=wn({}),Vke=(e,t)=>Zke[e]=t,Wke=e=>{
Zke[e]=!Zke[e]},Xke=()=>({collapsedSidebarFolders:Zke,
setCollapsedSidebarFolder:Vke,toggleSidebarFolder:Wke
}),Yke=e=>(_r("data-v-b442ef6b"),e=e(),Er(),e),Gke={
class:"flex flex-row gap-1 items-center"},Kke={class:"relative"},Jke={
class:"flex items-start"},eSe={
class:"z-10 flex h-5 items-center justify-center max-w-[14px]"},tSe={
class:"flex flex-1 flex-row justify-between editable-sidebar-hover"},nSe={
class:"relative flex h-fit"},rSe=Yke((()=>ea("span",null," ",-1))),oSe={key:2
},iSe=Yke((()=>ea("span",null,"Add Request",-1))),aSe="hover:bg-sidebar-active-b indent-padding-left",sSe=eo({
__name:"RequestSidebarItem",props:{isDraggable:{type:Boolean,default:!1},
isDroppable:{type:[Boolean,Function],default:!1},parentUids:{},uid:{},
menuItem:{}},emits:["onDragEnd","newTab","openMenu"],setup(e,{emit:t}){ts((e=>({
"83b391e6":w.value,53834791:x.value})))
;const n=e,r=t,{activeRequest:o,activeRouterParams:i,activeWorkspace:a,collections:s,tags:l,isReadOnly:c,requests:u,requestExamples:d,collectionMutators:p,tagMutators:h,requestMutators:f,requestExampleMutators:m,router:g}=fne(),{collapsedSidebarFolders:v,toggleSidebarFolder:b}=Xke(),O=Aa((()=>{
var e,t;const r=s[n.uid],o=l[n.uid],i=u[n.uid],c=d[n.uid];return r?{
title:(null==(e=r.info)?void 0:e.title)??"Unknown title",entity:r,
resourceTitle:"Collection",children:r.children,
warning:"This cannot be undone. You’re about to delete the collection and all folders andrequests inside it.",
rename:e=>p.edit(r.uid,"info.title",e),delete:()=>p.delete(r,a.value)}:o?{
title:o.name,entity:o,resourceTitle:"Tag",children:o.children,
warning:"This cannot be undone. You’re about to delete the tag and all requests inside it",
rename:e=>h.edit(o.uid,"name",e),delete:()=>h.delete(o,n.parentUids[0])}:i?{
title:i.summary??[i.method,i.path].join(" - "),
link:`/workspace/${a.value.uid}/request/${i.uid}`,method:i.method,entity:i,
resourceTitle:"Request",
warning:"This cannot be undone. You’re about to delete the request.",
children:i.examples,rename:e=>f.edit(i.uid,"summary",e),
delete:()=>f.delete(i,n.parentUids[0])}:{title:c.name,
link:`/workspace/${a.value.uid}/request/${c.requestUid}/examples/${c.uid}`,
method:null==(t=u[c.requestUid])?void 0:t.method,entity:c,
resourceTitle:"Example",children:[],rename:e=>m.edit(c.uid,"name",e),
delete:()=>m.delete(c)}
})),y=Aa((()=>"collection"===O.value.entity.type&&"Drafts"===O.value.title)),w=Aa((()=>n.parentUids.length?c.value?12*(n.parentUids.length-1)+"px":12*n.parentUids.length+"px":"12px")),x=Aa((()=>n.parentUids.length?c.value?12*(n.parentUids.length-1)+"px":12*n.parentUids.length+"px":"0px")),k=Aa((()=>{
var e
;return v[n.uid]||(null==(e=o.value)?void 0:e.uid)===n.uid&&O.value.entity.examples.length>1
})),S=Aa((()=>{var e
;return"default"===i.value[g6.Request]&&(null==(e=o.value)?void 0:e.uid)===n.uid
})),_=Bn(null),E=Aa((()=>{let e=.5,t=.5;if(!_.value)return{ceiling:e,floor:t}
;const{draggingItem:n}=_.value
;return s[null==n?void 0:n.id]||"collection"!==O.value.entity.type?"tag"===O.value.entity.type&&(e=.8,
t=.2):(e=1,t=0),{ceiling:e,floor:t}
})),T=(e,t)=>!(a.value.isReadOnly||d[t.id]||s[e.id]);return(e,t)=>{
const o=Rr("RequestSidebarItem",!0);return zi(),Wi("div",{
class:et(["relative flex flex-row",[Fn(c)&&e.parentUids.length>1||!Fn(c)&&e.parentUids.length?"before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 indent-border-line-offset":""]])
},[ta(Fn(Hke),{id:O.value.entity.uid,ref_key:"draggableRef",ref:_,
ceiling:E.value.ceiling,class:"flex flex-1 flex-col gap-[.5px] text-sm",
floor:E.value.floor,isDraggable:e.isDraggable,isDroppable:e.isDroppable,
parentIds:e.parentUids,
onOnDragEnd:t[8]||(t[8]=(...t)=>e.$emit("onDragEnd",...t))},{default:Tr((()=>{
var i;return[O.value.link?(zi(),Xi(Fn(l6),{key:0,class:"no-underline",
to:O.value.link,onClick:t[1]||(t[1]=$s((e=>((e,t)=>{
e&&(xne(["default"]).some((t=>e[t]))?r("newTab",t.title||"",t.entity.uid):t.link&&g.push(t.link))
})(e,O.value)),["prevent"]))},{default:Tr((({isExactActive:n})=>{var r,o
;return[ea("div",{
class:et(["group relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover w-full",[aSe,n||S.value?"bg-sidebar-active-b text-sidebar-active-c transition-none":"text-sidebar-c-2"]]),
tabindex:"0"},[ea("span",{
class:et(["line-clamp-3 z-10 font-medium w-full pl-2 word-break-break-word",{
"editable-sidebar-hover-item":!Fn(c)}])
},st(O.value.title),3),ea("div",Gke,[ea("div",Kke,[Fn(c)?aa("",!0):(zi(),
Xi(Fn(LI),{key:0,
class:et(["px-0.5 py-0 z-10 hover:bg-b-3 hidden group-hover:flex absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit",{
flex:(null==(o=null==(r=e.menuItem)?void 0:r.item)?void 0:o.entity.uid)===O.value.entity.uid&&e.menuItem.open
}]),size:"sm",type:"button",variant:"ghost",
onClick:t[0]||(t[0]=$s((t=>e.$emit("openMenu",{item:O.value,
parentUids:e.parentUids,targetRef:t.currentTarget.parentNode,open:!0
})),["stop","prevent"]))},{default:Tr((()=>[ta(Fn(xZ),{icon:"Ellipses",size:"sm"
})])),_:1
},8,["class"]))]),ea("span",Jke,[oa("   "),O.value.method?(zi(),Xi(Fn(Sne),{
key:0,class:"font-bold",method:O.value.method
},null,8,["method"])):aa("",!0)])])],2)]})),_:1
},8,["to"])):!Fn(c)||e.parentUids.length?(zi(),Wi("button",{key:1,
class:et(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]",aSe]),
type:"button",onClick:t[3]||(t[3]=e=>Fn(b)(O.value.entity.uid))
},[ea("span",eSe,[no(e.$slots,"leftIcon",{},(()=>[ea("div",{class:et({
"rotate-90":Fn(v)[O.value.entity.uid]})},[ta(Fn(xZ),{class:"text-c-3 text-sm",
icon:"ChevronRight",size:"sm",thickness:"2.5"
})],2)]),!0),oa("   ")]),ea("div",tSe,[ea("span",{
class:et(["line-clamp-3 z-10 font-medium text-left w-full word-break-break-word",{
"editable-sidebar-hover-item":!Fn(c)}])
},st(O.value.title),3),ea("div",nSe,[Fn(c)||y.value?aa("",!0):(zi(),Xi(Fn(LI),{
key:0,
class:et(["px-0.5 py-0 z-10 hover:bg-b-3 hidden group-hover:flex absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit",{
flex:(null==(i=e.menuItem.item)?void 0:i.entity.uid)===O.value.entity.uid&&e.menuItem.open
}]),size:"sm",variant:"ghost",onClick:t[2]||(t[2]=$s((t=>e.$emit("openMenu",{
item:O.value,parentUids:e.parentUids,targetRef:t.currentTarget.parentNode,
open:!0})),["stop","prevent"]))},{default:Tr((()=>[ta(Fn(xZ),{icon:"Ellipses",
size:"sm"})])),_:1
},8,["class"])),rSe])])])):aa("",!0),k.value?(zi(),Wi("div",oSe,[(zi(!0),
Wi(Bi,null,Kr(O.value.children,(n=>(zi(),Xi(o,{key:n,isDraggable:!Fn(d)[n],
isDroppable:T,menuItem:e.menuItem,parentUids:[...e.parentUids,e.uid],uid:n,
onNewTab:t[4]||(t[4]=(t,n)=>e.$emit("newTab",t,n)),
onOnDragEnd:t[5]||(t[5]=(...t)=>e.$emit("onDragEnd",...t)),
onOpenMenu:t[6]||(t[6]=t=>e.$emit("openMenu",t))
},null,8,["isDraggable","menuItem","parentUids","uid"])))),128)),0===O.value.children.length?(zi(),
Xi(Fn(LI),{key:0,
class:et(["mb-[.5px] flex gap-1.5 h-8 text-c-1 py-0 justify-start text-xs w-full hover:bg-b-2",e.parentUids.length?"pl-9":""]),
variant:"ghost",onClick:t[7]||(t[7]=e=>{Ene.emit({commandName:"Create Request",
metaData:{itemUid:n.uid,parentUid:n.parentUids[0]}})})},{
default:Tr((()=>[ta(Fn(xZ),{class:"ml-0.5 h-2.5 w-2.5",icon:"Add",thickness:"3"
}),iSe])),_:1},8,["class"])):aa("",!0)])):aa("",!0)]})),_:3
},8,["id","ceiling","floor","isDraggable","isDroppable","parentIds"])],2)}}
}),lSe=mne(sSe,[["__scopeId","data-v-b442ef6b"]]),cSe={key:0,
class:"xl:min-h-header flex items-center justify-between border-b-1/2 p-2 md:px-4 md:py-2.5 text-sm"
},uSe={class:"font-medium m-0 text-sm whitespace-nowrap"},dSe=eo({
__name:"Sidebar",props:{title:{},showSideBar:{type:Boolean,default:!0}},
setup(e){
const t=e,{isReadOnly:n,sidebarWidth:r,setSidebarWidth:o}=fne(),i=Bn(!1),a=fK("(max-width: 780px)"),s=Bn(null),l=fK("(max-width: 800px)"),c=e=>{
e.preventDefault()
;const t=e.clientX,n=parseInt(getComputedStyle(s.value).width||r.value,10),a=e=>{
i.value=!0,document.body.classList.add("dragging");let r=n+e.clientX-t
;r>420&&(r=420+.2*(r-420)),r<240&&(r=240),o(`${r}px`)},l=()=>{
i.value=!1,document.body.classList.remove("dragging"),
document.documentElement.removeEventListener("mousemove",a,!1),
document.documentElement.removeEventListener("mouseup",l,!1),
parseInt(r.value,10)>420?o("360px"):parseInt(r.value,10)<240&&o("240px")}
;document.documentElement.addEventListener("mousemove",a,!1),
document.documentElement.addEventListener("mouseup",l,!1)}
;return(e,o)=>Yr((zi(),Wi("aside",{ref_key:"sidebarRef",ref:s,
class:et(["sidebar overflow-hidden relative flex flex-col flex-1 md:flex-none bg-b-1 md:border-b-0 md:border-r-1/2 min-w-full md:min-w-fit",{
dragging:i.value}]),style:Xe({width:Fn(a)?"100%":Fn(r)})
},[no(e.$slots,"header",{},void 0,!0),!Fn(n)&&e.title?(zi(),
Wi("div",cSe,[ea("h2",uSe,st(e.title),1),Fn(l)?no(e.$slots,"button",{key:0
},void 0,!0):aa("",!0)])):aa("",!0),ea("div",{
class:et(["custom-scroll sidebar-height pb-0 md:pb-[42px] w-[inherit]",{
"sidebar-mask":!Fn(n)}])
},[no(e.$slots,"content",{},void 0,!0)],2),Fn(l)?aa("",!0):no(e.$slots,"button",{
key:1},void 0,!0),Fn(a)?aa("",!0):(zi(),Wi("div",{key:2,class:"resizer",
onMousedown:c},null,32))],6)),[[Ka,t.showSideBar]])}
}),pSe=mne(dSe,[["__scopeId","data-v-ae519e15"]]),hSe={
class:"xl:min-h-header xl:py-2.5 py-1 flex items-center border-b-1/2 px-2.5 text-sm w-[inherit]"
},fSe={class:"font-medium m-0 text-sm flex gap-1.5 items-center"},mSe={
class:"line-clamp-1 text-left w-[calc(100%-10px)]"},gSe={
class:"text-ellipsis overflow-hidden"
},vSe=ea("span",null,"Rename",-1),bSe=ea("span",null,"Delete",-1),OSe=ea("div",{
class:"grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1"
},[ea("div",{class:"flex items-center text-c-2"
},[ea("span",null,"Only workspace cannot be deleted.")])],-1),ySe=ea("span",null,"Delete",-1),wSe={
class:"flex items-center justify-center h-4 w-4"
},xSe=ea("span",null,"Create new workspace",-1),kSe=eo({
__name:"WorkspaceDropdown",setup(e){
const{activeWorkspace:t,workspaces:n,workspaceMutators:r}=fne(),{push:o}=f6(),i=Aa((()=>1===Object.keys(n).length)),a=()=>Ene.emit({
commandName:"Create Workspace"}),s=Bn(""),l=Bn(""),c=SI(),u=SI(),d=()=>{
s.value.trim()&&(r.edit(l.value,"name",s.value.trim()),c.hide())},p=async()=>{
if(!i.value){const e=t.value.uid===l.value,i={...n}
;if(delete i[l.value],r.delete(l.value),e){const e=Object.keys(i)[0]
;await o(`/workspace/${e}/`)}}u.hide()}
;return(e,r)=>(zi(),Wi(Bi,null,[ea("div",hSe,[ta(Fn(dW),null,{
items:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(Fn(n),((e,a)=>(zi(),Xi(Fn(BG),{key:a},{
trigger:Tr((()=>[ta(Fn(mW),{
class:"flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden w-full",
onClick:$s((e=>(e=>{e!==t.value.uid&&o(`/workspace/${e}`)})(a)),["stop"])},{
default:Tr((()=>[ea("div",{
class:et(["flex items-center justify-center rounded-full p-[3px] w-4 h-4 group-hover/item:shadow-border",Fn(t).uid===a?"bg-blue text-b-1":"text-transparent"])
},[ta(Fn(xZ),{class:"size-2.5",icon:"Checkmark",thickness:"3.5"
})],2),ea("span",gSe,st(e.name),1)])),_:2},1032,["onClick"])])),
content:Tr((()=>[ta(Fn(dW),{static:""},{items:Tr((()=>[ta(Fn(mW),{
class:"flex gap-2",onMousedown:e=>(e=>{s.value=n[e].name,l.value=e,c.show()})(a)
},{default:Tr((()=>[ta(Fn(xZ),{class:"inline-flex",icon:"Edit",size:"md",
thickness:"1.5"}),vSe])),_:2},1032,["onMousedown"]),i.value?(zi(),Xi(Fn(_K),{
key:0,class:"z-10",side:"bottom"},{trigger:Tr((()=>[ta(Fn(mW),{
class:"flex gap-2 w-full",disabled:"",
onMousedown:r[0]||(r[0]=$s((()=>{}),["prevent"]))},{default:Tr((()=>[ta(Fn(xZ),{
class:"inline-flex",icon:"Delete",size:"md",thickness:"1.5"}),bSe])),_:1})])),
content:Tr((()=>[OSe])),_:1})):(zi(),Xi(Fn(mW),{key:1,class:"flex !gap-2",
onMousedown:$s((e=>(e=>{s.value=n[e].name,l.value=e,u.show()})(a)),["prevent"])
},{default:Tr((()=>[ta(Fn(xZ),{class:"inline-flex",icon:"Delete",size:"sm",
thickness:"1.5"}),ySe])),_:2},1032,["onMousedown"]))])),_:2},1024)])),_:2
},1024)))),128)),ta(Fn(hW)),ta(Fn(mW),{class:"flex items-center gap-1.5",
onClick:a},{default:Tr((()=>[ea("div",wSe,[ta(Fn(xZ),{class:"h-2.5",icon:"Add",
thickness:"3"})]),xSe])),_:1})])),default:Tr((()=>[ta(Fn(LI),{
class:"font-normal h-full justify-start line-clamp-1 py-1.5 px-1.5 text-c-1 hover:bg-b-2 w-fit",
fullWidth:"",variant:"ghost"},{
default:Tr((()=>[ea("div",fSe,[ea("h2",mSe,st(Fn(t).name),1),ta(Fn(xZ),{
class:"size-2.5",icon:"ChevronDown",thickness:"3.5"})])])),_:1})])),_:1
})]),ta(Fn(TI),{size:"xxs",state:Fn(u),title:"Delete workspace"},{
default:Tr((()=>[ta($ke,{variableName:s.value,
warningMessage:"This cannot be undone. You’re about to delete the workspace and everything inside it.",
onClose:r[1]||(r[1]=e=>Fn(u).hide()),onDelete:p},null,8,["variableName"])])),_:1
},8,["state"]),ta(Fn(TI),{size:"xxs",state:Fn(c),title:"Rename Workspace"},{
default:Tr((()=>[ta(Rke,{name:s.value,onClose:r[2]||(r[2]=e=>Fn(c).hide()),
onRename:d},null,8,["name"])])),_:1},8,["state"])],64))}}),SSe={
class:"search-button-fade sticky px-3 py-2.5 top-0 z-50"},_Se=eo({
__name:"RequestSidebar",props:{showSidebar:{type:Boolean},isReadonly:{
type:Boolean}},emits:["update:showSidebar","newTab"],setup(e,{emit:t}){
const n=e,r=t,o=fne(),{activeWorkspaceCollections:i,activeRequest:a,activeWorkspaceRequests:s,findRequestParents:l,isReadOnly:c}=o,{handleDragEnd:u,isDroppable:d}=function({collections:e,collectionMutators:t,tags:n,tagMutators:r,requests:o,requestHistory:i,workspaceMutators:a,activeWorkspace:s}){
function l(o,i){e[o]?t.edit(o,"children",i):n[o]&&r.edit(o,"children",i)}return{
handleDragEnd:function(o,i){if(!o||!i)return
;const{id:c,parentId:u}=o,{id:d,parentId:p,offset:h}=i
;if(u?e[u]?t.edit(u,"children",e[u].children.filter((e=>e!==c))):n[u]&&r.edit(u,"children",n[u].children.filter((e=>e!==c))):a.edit(s.value.uid,"collections",s.value.collections.filter((e=>e!==c))),
2===h){const t=e[d]||n[d];l(d,[...t.children,c])}else if(p){
const t=[...(e[p]||n[p]).children],r=t.findIndex((e=>d===e))??0
;t.splice(r+h,0,c),l(p,t)}else{
const e=[...s.value.collections],t=e.findIndex((e=>d===e))??0;e.splice(t+h,0,c),
a.edit(s.value.uid,"collections",e)}},isDroppable:(t,n)=>{var r,o
;return!(s.value.isReadOnly||!e[t.id]&&2!==n.offset||e[t.id]&&"Drafts"===(null==(o=null==(r=e[n.id])?void 0:r.info)?void 0:o.title))
}}}(o),{collapsedSidebarFolders:p,setCollapsedSidebarFolder:h}=Xke(),f=wn({
open:!1});li(a,(e=>{e&&l(e).forEach((e=>h(e,!0)))}),{immediate:!0})
;const{searchText:m,searchResultsWithPlaceholderResults:g,selectedSearchResult:v,onSearchResultClick:b,fuseSearch:O,searchInputRef:y,searchResultRefs:w,navigateSearchResults:x,selectSearchResult:k}=_ke(),S=e=>{
var t
;e.toggleSidebar&&r("update:showSidebar",n.showSidebar),e.openCommandPalette&&(e.openCommandPalette.preventDefault(),
Ene.emit()),e.focusRequestSearch&&(null==(t=y.value)||t.focus())}
;return Ur((()=>vne.on(S))),zr((()=>{vne.off(S)
})),(e,t)=>(zi(),Wi(Bi,null,[Yr(ta(Fn(pSe),{
class:et([e.showSidebar?"sidebar-active-width":""]),showSidebar:e.showSidebar,
"onUpdate:showSidebar":t[8]||(t[8]=t=>e.$emit("update:showSidebar",t))},Jr({
content:Tr((()=>[ea("div",SSe,[ta(Fn(UG),{ref_key:"searchInputRef",ref:y,
modelValue:Fn(m),"onUpdate:modelValue":t[0]||(t[0]=e=>Ln(m)?m.value=e:null),
sidebar:"",onInput:Fn(O),
onKeydown:[t[1]||(t[1]=Ns($s((e=>Fn(x)("down")),["stop"]),["down"])),t[2]||(t[2]=Ns($s((e=>Fn(k)()),["stop"]),["enter"])),t[3]||(t[3]=Ns($s((e=>Fn(x)("up")),["stop"]),["up"]))]
},null,8,["modelValue","onInput"])]),ea("div",{
class:et(["custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0",{
"pb-14":!e.isReadonly}]),onDragenter:t[6]||(t[6]=$s((()=>{}),["prevent"])),
onDragover:t[7]||(t[7]=$s((()=>{}),["prevent"]))},[Fn(m)?(zi(),Xi(Fn(KG),{key:0,
class:"gap-px custom-scroll",noResults:!Fn(g).length},{default:Tr((()=>[(zi(!0),
Wi(Bi,null,Kr(Fn(g),((e,t)=>(zi(),Xi(Fn(YG),{id:`#search-input-${e.item.id}`,
key:e.refIndex,ref_for:!0,ref:e=>Fn(w)[t]=e,active:Fn(v)===t,class:"px-2",
onClick:t=>Fn(b)(e),onFocus:e=>v.value=t},{addon:Tr((()=>[ta(Sne,{
class:"font-bold",method:e.item.httpVerb??"get"},null,8,["method"])])),
default:Tr((()=>[oa(st(e.item.title)+" ",1)])),_:2
},1032,["id","active","onClick","onFocus"])))),128))])),_:1
},8,["noResults"])):(zi(!0),Wi(Bi,{key:1},Kr(Fn(i),(n=>{var o
;return zi(),Xi(lSe,{key:n.uid,
isDraggable:!e.isReadonly&&"Drafts"!==(null==(o=n.info)?void 0:o.title),
isDroppable:Fn(d),menuItem:f,parentUids:[],uid:n.uid,
onNewTab:t[4]||(t[4]=(e,t)=>r("newTab",{name:e,uid:t})),onOnDragEnd:Fn(u),
onOpenMenu:t[5]||(t[5]=e=>Object.assign(f,e))},{leftIcon:Tr((()=>[ta(Fn(xZ),{
class:"text-sidebar-c-2 text-sm group-hover:hidden",icon:"CodeFolder",size:"sm",
thickness:"2"}),ea("div",{class:et({"rotate-90":Fn(p)[n.uid]})},[ta(Fn(xZ),{
class:"text-c-3 hidden text-sm group-hover:block",icon:"ChevronRight",size:"sm"
})],2)])),_:2
},1032,["isDraggable","isDroppable","menuItem","uid","onOnDragEnd"])
})),128))],34)])),button:Tr((()=>[e.isReadonly?aa("",!0):(zi(),Xi(Tke,{key:0,
class:et({"empty-sidebar-item":1===Fn(s).length}),click:Fn(Ene).emit},{
title:Tr((()=>[oa("Add Item")])),_:1},8,["class","click"]))])),_:2
},[e.isReadonly?void 0:{name:"header",fn:Tr((()=>[ta(Fn(kSe))])),key:"0"
}]),1032,["class","showSidebar"]),[[Ka,e.showSidebar]]),!Fn(c)&&f?(zi(),Xi(Qke,{
key:0,menuItem:f,onCloseMenu:t[9]||(t[9]=e=>f.open=!1)
},null,8,["menuItem"])):aa("",!0)],64))}
}),ESe=mne(_Se,[["__scopeId","data-v-4163cb67"]]),TSe=eo({__name:"Request",
emits:["newTab"],setup(e){var t
;const n=fne(),{toast:r}=Dh(),{activeCollection:o,activeExample:i,activeEnvironment:a,activeRequest:s,activeWorkspace:l,activeServer:c,cookies:u,modalState:d,requestHistory:p,securitySchemes:h}=n,f=Bn(!(null!=(t=l.value)&&t.isReadOnly)),m=Bn(),g=Aa((()=>p.findLast((e=>{
var t;return e.request.uid===(null==(t=i.value)?void 0:t.uid)}))))
;li(fK("(max-width: 780px)"),(e=>f.value=!e));const v=async()=>{var e
;if(!s.value||!i.value||!o.value)return
;const t=Ske.parse((null==(e=a.value)?void 0:e.value)||"{}")
;t.error&&console.error("INVALID ENVIRONMENT!")
;const n=t.error||"object"!=typeof t.data?{}:t.data??{},d=l.value.cookies.map((e=>u[e])),[f,g]=kre({
auth:o.value.auth,request:s.value,example:i.value,proxy:l.value.proxyUrl??"",
environment:n,globalCookies:d,securitySchemes:h,server:c.value})
;if(f)return void r(f.message,"error");m.value=g.controller
;const[v,b]=await g.sendRequest();v?r(v.message,"error"):p.push(b)},b=async()=>{
var e;return null==(e=m.value)?void 0:e.abort(Vne)};return Ur((()=>{
Vwe.on(v),Kxe.on(b)})),zr((()=>Vwe.off(v))),(e,t)=>(zi(),Wi("div",{
class:et(["flex flex-1 flex-col rounded pt-0 h-full bg-b-1 relative border-1/2 rounded mr-1.5 mb-1.5 overflow-hidden",{
"!mr-0 !mb-0 !border-0":Fn(l).isReadOnly}])},[ta(yxe,{modelValue:f.value,
"onUpdate:modelValue":t[0]||(t[0]=e=>f.value=e),isReadonly:Fn(l).isReadOnly,
onHideModal:t[1]||(t[1]=()=>Fn(d).hide())
},null,8,["modelValue","isReadonly"]),ta(jne,null,{default:Tr((()=>[ta(ESe,{
isReadonly:Fn(l).isReadOnly,showSidebar:f.value,
onNewTab:t[2]||(t[2]=t=>e.$emit("newTab",t)),
"onUpdate:showSidebar":t[3]||(t[3]=e=>f.value=e)
},null,8,["isReadonly","showSidebar"]),Fn(i)?(zi(),Xi(Fne,{key:0,
class:et(["flex-1",[f.value?"sidebar-active-hide-layout":""]])},{
default:Tr((()=>{var e;return[ta(Dwe),ta(kke,{
response:null==(e=g.value)?void 0:e.response},null,8,["response"])]})),_:1
},8,["class"])):aa("",!0)])),_:1})],2))}
}),CSe=mne(TSe,[["__scopeId","data-v-d3ddd323"]]),ASe=Object.freeze(Object.defineProperty({
__proto__:null,default:CSe},Symbol.toStringTag,{value:"Module"})),PSe={
class:"flex flex-col p-2"};const DSe=mne({},[["render",function(e,t){
return zi(),Wi("ul",PSe,[no(e.$slots,"default")])}]]),$Se={
class:"absolute flex right-1 opacity-0 group-hover:opacity-100"},RSe=eo({
__name:"SidebarListElementActions",props:{variable:{},warningMessage:{}},
emits:["delete"],setup(e,{emit:t}){const{variable:n}=e,r=t,o=Bn({action:"None",
name:""}),i=SI(),{copyToClipboard:a}=(()=>{const{toast:e}=Dh();return{
copyToClipboard:t=>{navigator.clipboard.writeText(t).then((()=>{
e("Copied to the clipboard.","info")}))}}})();function s(){i.hide(),o.value={
action:"None",name:""}}
return(e,t)=>(zi(),Wi(Bi,null,[ea("div",$Se,[ea("button",{
class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",type:"button",
onClick:t[0]||(t[0]=t=>Fn(a)(e.variable.name))},[ta(Fn(xZ),{class:"h-3 w-3",
icon:"Clipboard"})]),e.variable.isDefault?aa("",!0):(zi(),Wi("button",{key:0,
class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",type:"button",
onClick:t[1]||(t[1]=$s((e=>function(e){o.value={action:e,name:n.name},i.show()
}("Delete")),["prevent"]))},[ta(Fn(xZ),{class:"h-3.5 w-3.5",icon:"Close"
})]))]),ta(Fn(TI),{size:"sm",state:Fn(i),
title:`${o.value.action} ${o.value.name}`},{
default:Tr((()=>["Delete"===o.value.action?(zi(),Xi($ke,{key:0,
variableName:o.value.name,warningMessage:e.warningMessage,onClose:s,
onDelete:t[2]||(t[2]=t=>function(e){r("delete",e),s()}(e.variable.uid))
},null,8,["variableName","warningMessage"])):aa("",!0)])),_:1
},8,["state","title"])],64))}}),NSe={key:0,class:"hover:bg-b-3 rounded p-1.5",
type:"button"},ISe={class:"empty-variable-name"},MSe=eo({
__name:"SidebarListElement",props:{variable:{},warningMessage:{}},
emits:["delete"],setup(e,{emit:t}){const n=t,r=f6(),o=e=>{n("delete",e)}
;return(e,t)=>{const n=Rr("router-link");return zi(),Wi("li",null,[ta(n,{
class:et(["h-8 text-c-2 hover:bg-b-2 group relative block flex items-center gap-1 rounded py-1 pr-2 font-medium no-underline",[e.variable.color?"pl-1":"pl-2"]]),
exactActiveClass:"active-link",to:`${e.variable.uid}`,
onClick:t[0]||(t[0]=$s((t=>((e,t)=>{e.metaKey?window.open(t,"_blank"):r.push(t)
})(t,e.variable.uid)),["prevent"]))},{
default:Tr((()=>[e.variable.color?(zi(),Wi("button",NSe,[ea("div",{
class:et(["h-2.5 w-2.5 rounded-xl",`bg-${e.variable.color}`])
},null,2)])):aa("",!0),ea("span",ISe,st(e.variable.name),1),ta(RSe,{variable:{
...e.variable,isDefault:e.variable.isDefault??!1},
warningMessage:e.warningMessage,onDelete:o
},null,8,["variable","warningMessage"])])),_:1},8,["class","to"])])}}
}),LSe=mne(MSe,[["__scopeId","data-v-e9dbd857"]]),BSe=e=>(_r("data-v-4f9e2869"),
e=e(),Er(),e),QSe={
class:"flex flex-1 flex-col rounded pt-0 h-full bg-b-1 relative border-1/2 rounded mr-1.5 mb-1.5 overflow-hidden"
},jSe={
class:"hidden md:flex lg:min-h-header items-center w-full p-1 t-app__top-container items-center border-b-1/2"
},USe=BSe((()=>ea("span",{class:"leading-none"
},"Back To Requests",-1))),FSe=eo({__name:"SubpageHeader",setup(e){const t=m6()
;return(e,n)=>{const r=Rr("router-link")
;return zi(),Wi("div",QSe,[ea("div",jSe,[ta(r,{
class:"text-c-2 text-sm font-medium ml-1 flex items-center p-1.5 hover:bg-b-2 rounded cursor-pointer gap-0.5 active:text-c-1 no-underline dark:hover:bg-b-2",
to:`/workspace/${Fn(t).params.workspace}/request/default`},{
default:Tr((()=>[ta(Fn(xZ),{icon:"ChevronLeft",size:"md",thickness:"1.75"
}),USe])),_:1},8,["to"])]),no(e.$slots,"default",{},void 0,!0)])}}
}),qSe=mne(FSe,[["__scopeId","data-v-4f9e2869"]]),zSe={
class:"flex flex-row gap-1.5 space-x-1"},HSe=["onClick"],ZSe=eo({
__name:"EnvironmentColors",props:{activeColor:{}},emits:["select"],setup(e){
const t=[{color:"grey",bgClass:"bg-grey"},{color:"red",bgClass:"bg-red"},{
color:"yellow",bgClass:"bg-yellow"},{color:"green",bgClass:"bg-green"},{
color:"orange",bgClass:"bg-orange"},{color:"blue",bgClass:"bg-blue"},{
color:"text-c-2",bgClass:"bg-c-2"},{color:"purple",bgClass:"bg-purple"},{
color:"pink",bgClass:"bg-pink"}]
;return(e,n)=>(zi(),Wi("div",zSe,[(zi(),Wi(Bi,null,Kr(t,(t=>ea("div",{
key:t.color,
class:et(["flex h-5 w-5 cursor-pointer items-center justify-center rounded-full",t.bgClass]),
onClick:n=>e.$emit("select",t.color)},[e.activeColor===t.color?(zi(),Xi(Fn(xZ),{
key:0,icon:"Checkmark",size:"xs"})):aa("",!0)],10,HSe))),64))]))}}),VSe={
class:"flex-1"},WSe=["value"],XSe={class:"colors ml-auto"},YSe=eo({
__name:"Environment",setup(e){
const t=f6(),{environments:n,environmentMutators:r}=fne(),o=Bn(null),i=Bn(null),a=Bn(!1)
;function s(){const e=one.parse({name:"New Environment",uid:CZ(),color:"grey",
raw:JSON.stringify({exampleKey:"exampleValue"},null,2),parsed:[],isDefault:!1})
;r.add(e),o.value=e.uid,t.push(o.value)}function l(e){
o.value&&r.edit(o.value,"value",e)}
const c=e=>o.value&&r.edit(o.value,"color",e),u=()=>{
o.value&&!n[o.value].isDefault&&(a.value=!0,dr((()=>{var e
;null==(e=i.value)||e.focus()})))},d=e=>{const t=e.target.value
;o.value&&!n[o.value].isDefault&&r.edit(o.value,"name",t)};return Ur((()=>{
"default"===t.currentRoute.value.params.environment&&(o.value=n.default.uid)})),
(e,t)=>(zi(),Xi(qSe,null,{default:Tr((()=>[ta(jne,null,{
default:Tr((()=>[ta(pSe,{title:"Environment"},{
content:Tr((()=>[ea("div",VSe,[ta(DSe,null,{
default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(Fn(n),(e=>(zi(),Xi(LSe,{key:e.uid,
class:"text-xs",variable:{name:e.name,uid:e.uid,color:e.color,
isDefault:e.isDefault},
warningMessage:"Are you sure you want to delete this environment?",
onClick:t=>o.value=e.uid,onDelete:t=>(e=>{
r.delete(e),o.value===e&&(o.value=null)})(e.uid)
},null,8,["variable","onClick","onDelete"])))),128))])),_:1})])])),
button:Tr((()=>[ta(Tke,{click:s},{title:Tr((()=>[oa("Add Environment")])),_:1
})])),_:1}),ta(Fne,{class:"flex-1"},{default:Tr((()=>[ta(Dre,null,Jr({
default:Tr((()=>[o.value?(zi(),Xi(nye,{key:0,class:"pl-px pr-2 md:px-2 py-2.5",
lineNumbers:"",modelValue:Fn(n)[o.value].value,"onUpdate:modelValue":l
},null,8,["modelValue"])):aa("",!0)])),_:2},[o.value?{name:"title",
fn:Tr((()=>[!a.value||Fn(n)[o.value].isDefault?(zi(),Wi("span",{key:0,
onDblclick:u},st(Fn(n)[o.value].name),33)):(zi(),Wi("input",{key:1,
ref_key:"nameInputRef",ref:i,
class:"ring-1 ring-offset-4 ring-b-outline rounded",spellcheck:"false",
type:"text",value:Fn(n)[o.value].name,onBlur:t[0]||(t[0]=e=>a.value=!1),
onInput:d,onKeyup:t[1]||(t[1]=Ns((e=>a.value=!1),["enter"]))
},null,40,WSe)),ea("div",XSe,[ta(ZSe,{activeColor:Fn(n)[o.value].color,
onSelect:c},null,8,["activeColor"])])])),key:"0"}:void 0]),1024)])),_:1})])),_:1
})])),_:1}))}}),GSe=Object.freeze(Object.defineProperty({__proto__:null,
default:YSe},Symbol.toStringTag,{value:"Module"})),KSe={key:0},JSe={
class:"custom-scroll flex flex-1 flex-col gap-1.5 p-2 md:p-5"},e_e=eo({
__name:"Form",props:{title:{},options:{},data:{},onUpdate:{type:Function}},
setup:e=>(e,t)=>(zi(),Xi(Dre,null,{
title:Tr((()=>[e.title?(zi(),Wi("span",KSe,st(e.title),1)):no(e.$slots,"title",{
key:1})])),
default:Tr((()=>[ea("div",JSe,[Object.keys(e.data).length>0?(zi(),Xi(oye,{key:0,
columns:[""]},{
default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(e.options,((t,n)=>(zi(),Xi(lye,{key:n,
class:et({"border-t":0===n})},{default:Tr((()=>[ta(Jye,{
modelValue:String(e.data[t.key]??""),placeholder:t.placeholder,
"onUpdate:modelValue":n=>e.onUpdate(t.key,n)},{
default:Tr((()=>[oa(st(t.label),1)])),_:2
},1032,["modelValue","placeholder","onUpdate:modelValue"])])),_:2
},1032,["class"])))),128))])),_:1})):aa("",!0)])])),_:3}))}),t_e={
class:"flex items-center pointer-events-none"},n_e=ea("label",{
class:"absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text",
for:"cookiename"},null,-1),r_e=["value"],o_e=eo({__name:"CookieForm",setup(e){
const{cookies:t,activeCookieId:n,cookieMutators:r}=fne(),o=[{label:"Key",
key:"key",placeholder:"Username"},{label:"Value",key:"value",placeholder:"123"
},{label:"Domain",key:"domain",placeholder:"scalar.com"},{label:"Path",
key:"path",placeholder:"/"},{label:"Expires",key:"expires",
placeholder:"Tomorrow"},{label:"Secure",key:"secure",placeholder:"True/False"},{
label:"HttpOnly",key:"httpOnly",placeholder:"True/False"
}],i=Aa((()=>t[n.value]||{})),a=(e,t)=>{n.value&&r.edit(n.value,e,t)}
;return(e,t)=>(zi(),Xi(e_e,{data:i.value,onUpdate:a,options:o},{
title:Tr((()=>[ea("div",t_e,[n_e,ea("input",{id:"cookiename",
class:"md:pl-1 outline-none border-0 text-c-2 rounded pointer-events-auto relative w-full",
placeholder:"Cookie Name",value:i.value.name,
onInput:t[0]||(t[0]=e=>a("name",e.target.value))},null,40,r_e)])])),_:1
},8,["data"]))}}),i_e=ea("span",null,"Raw Cookie String",-1),a_e=eo({
__name:"CookieRaw",setup(e){const{cookies:t,activeCookieId:n}=fne()
;return(e,r)=>(zi(),Xi(Dre,null,{title:Tr((()=>[i_e])),
default:Tr((()=>[Fn(n)&&Fn(t)[Fn(n)]?(zi(),Xi(nye,{key:0,
class:"pl-px pr-2 md:px-2 py-2.5",lineNumbers:"",modelValue:""})):aa("",!0)])),
_:1}))}}),s_e={class:"flex-1"},l_e=["onClick"],c_e={
class:"before:bg-b-3 before:absolute before:left-[calc(1rem_-_1.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative"
},u_e=["onClick"],d_e={
class:"before:bg-b-3 before:absolute before:left-[calc(1.75rem_-_1.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 relative"
},p_e=eo({__name:"Cookies",setup(e){
const{cookies:t,cookieMutators:n}=fne(),{collapsedSidebarFolders:r,toggleSidebarFolder:o}=Xke(),i=f6(),a=()=>{
const e=Object.keys(t).length,r=rne.parse({name:`Cookie ${e}`,value:"",
domain:"example.com",path:"/",secure:!1,httpOnly:!1,sameSite:"None"})
;n.add(r),i.push(r.uid)},s=Aa((()=>{const e={}
;return Object.values(t).forEach((t=>{
t.domain&&t.path&&(e[t.domain]||(e[t.domain]={}),
e[t.domain][t.path]||(e[t.domain][t.path]=[]),e[t.domain][t.path].push(t))})),e
})),l=e=>r[e];return Ur((()=>{
const e=Object.keys(s.value),t=Object.entries(s.value).flatMap((([e,t])=>Object.keys(t).map((t=>e+t))))
;e.forEach((e=>{r[e]=!0})),t.forEach((e=>{r[e]=!0}))
})),(e,c)=>(zi(),Xi(qSe,null,{default:Tr((()=>[ta(jne,null,{
default:Tr((()=>[ta(Fn(pSe),{title:"Cookies"},{
content:Tr((()=>[ea("div",s_e,[ta(DSe,null,{
default:Tr((()=>[(zi(!0),Wi(Bi,null,Kr(s.value,((e,a)=>(zi(),Wi("div",{key:a
},[ea("button",{
class:"flex font-medium gap-1.5 items-center px-2 py-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
type:"button",onClick:e=>Fn(o)(a)},[ta(Fn(xZ),{class:et(["text-c-3",{
"rotate-90":Fn(r)[a]}]),icon:"ChevronRight",size:"sm",thickness:"2.5"
},null,8,["class"]),oa(" "+st(a),1)],8,l_e),Yr(ea("div",c_e,[(zi(!0),
Wi(Bi,null,Kr(e,((e,s)=>(zi(),Wi("div",{key:s},[ea("button",{
class:"flex font-medium gap-1.5 items-center pl-5 pr-2 py-1.5 text-left text-sm w-full break-words rounded hover:bg-b-2",
type:"button",onClick:e=>Fn(o)(a+s)},[ta(Fn(xZ),{class:et(["text-c-3",{
"rotate-90":Fn(r)[a+s]}]),icon:"ChevronRight",size:"sm",thickness:"2.5"
},null,8,["class"]),oa(" "+st(s),1)],8,u_e),Yr(ea("div",d_e,[(zi(!0),
Wi(Bi,null,Kr(e,(e=>(zi(),Xi(LSe,{key:e.uid,class:"cookie text-xs",variable:{
name:e.name,uid:e.uid},
warningMessage:"Are you sure you want to delete this cookie?",onDelete:r=>(e=>{
n.delete(e);const r=Object.values(t).filter((t=>t.uid!==e));if(r.length>1){
const e=r[r.length-1];i.push(e.uid)
}else 1===r.length&&"default"===r[0].uid&&i.push("default")})(e.uid)
},null,8,["variable","onDelete"])))),128))],512),[[Ka,l(a+s)]])])))),128))],512),[[Ka,l(a)]])])))),128))])),
_:1})])])),button:Tr((()=>[ta(Tke,{click:a},{title:Tr((()=>[oa("Add Item")])),
_:1})])),_:1}),ta(Fne,{class:"flex-1"},{default:Tr((()=>[ta(o_e),ta(a_e)])),_:1
})])),_:1})])),_:1}))}}),h_e=Object.freeze(Object.defineProperty({
__proto__:null,default:p_e},Symbol.toStringTag,{value:"Module"})),f_e={
class:"w-full"},m_e=eo({__name:"ServerForm",setup(e){
const{activeCollection:t,servers:n,serverMutators:r}=fne(),o=[{label:"URL",
key:"url",placeholder:"https://void.scalar.com/api"},{label:"Label",
key:"description",placeholder:"Production"}],i=m6(),a=Aa((()=>{var e,r
;return n[t.value&&"default"===i.params.server?null==(e=t.value)?void 0:e.servers[0]:(null==(r=t.value)?void 0:r.servers.find((e=>e===i.params.server)))??""]
})),s=(e,n)=>{t.value&&r.edit(a.value.uid,e,n)},l=(e,n)=>{
t.value&&r.edit(a.value.uid,`variables.${e}.value`,n)},c=Aa((()=>{var e
;return Object.entries((null==(e=a.value)?void 0:e.variables)??{}).map((([e,t])=>{
var n;return{key:e,label:e,
placeholder:(t.default??(null==(n=null==t?void 0:t.enum)?void 0:n[0])??"").toString()
}}))})),u=Aa((()=>Object.entries(a.value.variables??{}).reduce(((e,[t,n])=>{
var r
;return e[t]=(n.default??(null==(r=null==n?void 0:n.enum)?void 0:r[0])??"").toString(),
e}),{})));return(e,t)=>(zi(),Wi("div",f_e,[a.value?(zi(),Wi(Bi,{key:0},[ta(e_e,{
data:a.value,onUpdate:s,options:o,title:"Server"
},null,8,["data"]),Object.keys(u.value).length?(zi(),Xi(e_e,{key:0,data:u.value,
onUpdate:l,options:c.value,title:"Variables"
},null,8,["data","options"])):aa("",!0)],64)):aa("",!0)]))}}),g_e={
class:"flex-1"},v_e=eo({__name:"Servers",setup(e){
const{activeCollection:t,servers:n,serverMutators:r}=fne(),{push:o}=f6(),i=()=>{
if(!t.value)return;const e=_te.parse({url:"http://localhost"})
;r.add(e,t.value.uid),o(`/servers/${e.uid}`)};return(e,r)=>(zi(),Xi(qSe,null,{
default:Tr((()=>[ta(jne,null,{default:Tr((()=>[ta(Fn(pSe),{title:"Servers"},{
content:Tr((()=>[ea("div",g_e,[ta(DSe,null,{default:Tr((()=>{var e
;return[(zi(!0),
Wi(Bi,null,Kr(null==(e=Fn(t))?void 0:e.servers,(e=>(zi(),Xi(LSe,{key:e,
class:"text-xs",variable:{name:Fn(n)[e].url??"",uid:e}
},null,8,["variable"])))),128))]})),_:1})])])),button:Tr((()=>[ta(Tke,{click:i
},{title:Tr((()=>[oa("Add Server")])),_:1})])),_:1}),ta(Fne,{class:"flex-1"},{
default:Tr((()=>[ta(m_e)])),_:1})])),_:1})])),_:1}))}
}),b_e=Object.freeze(Object.defineProperty({__proto__:null,default:v_e
},Symbol.toStringTag,{value:"Module"}))}));
