diff --git a/Cargo.toml b/Cargo.toml index c4fc3d931d3a095545eb732d3025e5b21a7c7ee1..d44ad29eb647e0dc52907482458567e05d750037 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,9 +15,9 @@ cxx-build = "1.0.126" [dependencies] ron = "0.8.1" log = "0.4.22" -toml = "0.8.19" home = "0.5.9" ryu = "1.0.18" +toml = "0.8.19" clap = "4.5.16" cxx = "1.0.126" bytes = "1.7.1" @@ -28,6 +28,7 @@ anyhow = "1.0.86" colored = "2.1.0" inquire = "0.7.5" hcl-rs = "0.18.0" +os_info = "3.8.2" macros-rs = "0.5.2" termcolor = "1.4.1" once_cell = "1.19.0" @@ -52,7 +53,7 @@ chrono = { version = "0.4.38", features = ["serde"] } serde = { version = "1.0.208", features = ["derive"] } nix = { version = "0.27.1", features = ["process", "signal"] } utoipa = { version = "4.2.3", features = ["serde_yaml", "non_strict_integers"] } -os_info = "3.8.2" + [dependencies.reqwest] version = "0.11.27" diff --git a/src/daemon/static/index.html b/src/daemon/static/index.html index 52fb69cfe0f6b20afbd143483cae59abe30ddb51..fc0130205bbab15e65f7d5bf534fdf433074c075 100644 --- a/src/daemon/static/index.html +++ b/src/daemon/static/index.html @@ -1,14 +1,14 @@ - + PMC - API Docs - + -
- + + diff --git a/src/daemon/static/scalar.js b/src/daemon/static/scalar.js index ef37e727ededeaa59c9ff2bfcb51deebac8040b4..62316ccfa0f5b8e6b4f2ca4c09a86476471314f5 100644 --- a/src/daemon/static/scalar.js +++ b/src/daemon/static/scalar.js @@ -5,8 +5,11 @@ * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/ * /____/\____/_/ |_/_____/_/ |_/_/ |_| * - * @scalar/api-reference 1.25.17-pmc - * license: https://github.com/scalar/scalar/blob/main/LICENSE + * @scalar/api-reference 1.25.38 + * + * Website: https://scalar.com + * GitHub: https://github.com/scalar/scalar + * License: https://github.com/scalar/scalar/blob/main/LICENSE **/ !function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){ @@ -81,29 +84,29 @@ 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}) +function k(e,t){return Object.entries(e).map((([e,n])=>{ +if("object"==typeof n&&(n=k(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" +})).join(t.entrySeparator||"")}const x=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"}, +articleExpirationTime:x("article:expiration_time"), +articleModifiedTime:x("article:modified_time"), +articlePublishedTime:x("article:published_time"), +bookReleaseDate:x("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"), +fbAppId:x("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"), +ogAudioSecureUrl:x("og:audio:secure_url"),ogAudioUrl:x("og:audio"), +ogImageSecureUrl:x("og:image:secure_url"),ogImageUrl:x("og:image"), +ogSiteName:x("og:site_name"),ogVideoSecureUrl:x("og:video:secure_url"), +ogVideoUrl:x("og:video"),profileFirstName:x("profile:first_name"), +profileLastName:x("profile:last_name"),profileUsername:x("profile:username"), refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";", resolve({key:e,value:t}){if("seconds"===e)return`${t}`}}},robots:{unpack:{ entrySeparator:", ", @@ -117,7 +120,7 @@ const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.split("-")[0] }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),{ +const n=_[t];return"refresh"===t?`${e.seconds};url=${e.url}`:k(A(e),{ keyValueSeparator:"=",entrySeparator:", ", resolve:({value:e,key:t})=>null===e?"":"boolean"==typeof e?`${t}`:void 0, ...null==n?void 0:n.unpack})} @@ -139,18 +142,18 @@ 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?" ":";" +function M(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]), +}async function I(e,t){ +for(const n of Object.keys(e))if(["class","style"].includes(n))e[n]=M(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 e}const L=10;async function j(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?{ +props:await I("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] @@ -162,14 +165,14 @@ 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<{ @@ -178,9 +181,9 @@ const r=function(e){let n 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)) +e.includes(q)&&(e.endsWith(q)&&(e=e.slice(0,-10).trim()),e.startsWith(q)&&(e=e.slice(10).trim()), +e=H(e=e.replace(new RegExp(`\\${q}\\s*\\${q}`,"g"),q),{separator:n},n)),e} +async function V(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={ @@ -192,7 +195,7 @@ 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) +props:await I(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}}} @@ -224,10 +227,10 @@ 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 +}(e,t),delete e._domUpdatePromise,r()}))))}function Z(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)}}}}} +"entries:updated":function(t){V(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])})) @@ -247,18 +250,18 @@ const o=Object.keys(e.props).length+(e.innerHTML?1:0)+(e.textContent?1:0) ;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={} +}}},G={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], +})}}},Y=["script","link","bodyAttrs"],K=e=>({hooks:{"tags:resolve":function(t){ +for(const n of t.tags.filter((e=>Y.includes(e.tag))))Object.entries(n.props).forEach((([t,r])=>{ +t.startsWith("on")&&"function"==typeof r&&(e.ssr&&z.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))))){ +;for(const o of Object.keys((null==e?void 0:e.dataset)||{}).filter((e=>z.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:{ @@ -298,45 +301,46 @@ 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, +n.resolvedInput)for(const o of await j(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[X,G,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(Z()),ae=t}function le(e,t){ return!e||"server"===e&&t||"client"===e&&!t} /** - * @vue/shared v3.4.31 + * @vue/shared v3.5.12 * (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)} +function ce(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1 +;return e=>e in t} 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=>{ +},be=Object.prototype.hasOwnProperty,Oe=(e,t)=>be.call(e,t),ye=Array.isArray,we=e=>"[object Map]"===Pe(e),ke=e=>"[object Set]"===Pe(e),xe=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"),Me=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{ +},Ie=/-(\w)/g,Le=Me((e=>e.replace(Ie,((e,t)=>t?t.toUpperCase():"")))),je=/\B([A-Z])/g,Be=Me((e=>e.replace(je,"-$1").toLowerCase())),Qe=Me((e=>e.charAt(0).toUpperCase()+e.slice(1))),Ue=Me((e=>e?`on${Qe(e)}`:"")),Fe=(e,t)=>!Object.is(e,t),ze=(e,...t)=>{ +for(let n=0;n{ 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:{}) +},He=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ve=e=>{ +const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let Ze +;const We=()=>Ze||(Ze="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{if(e){ -const n=e.split(Ge);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t} +const Ge=/;(?![^(]*\))/g,Ye=/:([^]+)/,Ke=/\/\*[^]*?\*\//g;function Je(e){ +const t={};return e.replace(Ke,"").split(Ge).forEach((e=>{if(e){ +const n=e.split(Ye);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;not(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))) +e)),{})}:ke(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 + * @vue/reactivity v3.5.12 * (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=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{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{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.parent=void 0,this._active=!1}}}function ht(){return ut} +function ft(e,t=!1){ut&&ut.cleanups.push(e)}const mt=new WeakSet;class gt{ +constructor(e){ +this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0, +this.cleanup=void 0,this.scheduler=void 0,ut&&ut.active&&ut.effects.push(this)} +pause(){this.flags|=64}resume(){ +64&this.flags&&(this.flags&=-65,mt.has(this)&&(mt.delete(this),this.trigger()))} +notify(){2&this.flags&&!(32&this.flags)||8&this.flags||yt(this)}run(){ +if(!(1&this.flags))return this.fn();this.flags|=2,Rt(this),xt(this) +;const e=dt,t=At;dt=this,At=!0;try{return this.fn()}finally{ +St(this),dt=e,At=t,this.flags&=-3}}stop(){if(1&this.flags){ +for(let e=this.deps;e;e=e.nextDep)Tt(e);this.deps=this.depsTail=void 0,Rt(this), +this.onStop&&this.onStop(),this.flags&=-2}}trigger(){ +64&this.flags?mt.add(this):this.scheduler?this.scheduler():this.runIfDirty()} +runIfDirty(){_t(this)&&this.run()}get dirty(){return _t(this)}}let vt,bt,Ot=0 +;function yt(e,t=!1){if(e.flags|=8,t)return e.next=bt,void(bt=e);e.next=vt,vt=e} +function wt(){Ot++}function kt(){if(--Ot>0)return;if(bt){let e=bt +;for(bt=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e +;for(;vt;){let n=vt;for(vt=void 0;n;){const r=n.next +;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=r}} +if(e)throw e}function xt(e){ +for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink, +t.dep.activeLink=t}function St(e){let t,n=e.depsTail,r=n;for(;r;){ +const e=r.prevDep +;-1===r.version?(r===n&&(n=e),Tt(r),Ct(r)):t=r,r.dep.activeLink=r.prevActiveLink, +r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function _t(e){ +for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Et(t.dep.computed)||t.dep.version!==t.version))return!0 +;return!!e._dirty}function Et(e){if(4&e.flags&&!(16&e.flags))return +;if(e.flags&=-17,e.globalVersion===Nt)return;e.globalVersion=Nt;const t=e.dep +;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!_t(e))return void(e.flags&=-3) +;const n=dt,r=At;dt=e,At=!0;try{xt(e);const n=e.fn(e._value) +;(0===t.version||Fe(n,e._value))&&(e._value=n,t.version++)}catch(o){ +throw t.version++,o}finally{dt=n,At=r,St(e),e.flags&=-3}}function Tt(e,t=!1){ +const{dep:n,prevSub:r,nextSub:o}=e +;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r, +e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5 +;for(let e=n.computed.deps;e;e=e.nextDep)Tt(e,!0)} +t||--n.sc||!n.map||n.map.delete(n.key)}function Ct(e){ +const{prevDep:t,nextDep:n}=e +;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let At=!0 +;const Pt=[];function Dt(){Pt.push(At),At=!1}function $t(){const e=Pt.pop() +;At=void 0===e||e}function Rt(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){ +const e=dt;dt=void 0;try{t()}finally{dt=e}}}let Nt=0;class Mt{constructor(e,t){ +this.sub=e, +this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0 +}}class It{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0, +this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){ +if(!dt||!At||dt===this.computed)return;let t=this.activeLink +;if(void 0===t||t.sub!==dt)t=this.activeLink=new Mt(dt,this), +dt.deps?(t.prevDep=dt.depsTail, +dt.depsTail.nextDep=t,dt.depsTail=t):dt.deps=dt.depsTail=t, +Lt(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){ +const e=t.nextDep +;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=dt.depsTail, +t.nextDep=void 0,dt.depsTail.nextDep=t,dt.depsTail=t,dt.deps===t&&(dt.deps=e)} +return t}trigger(e){this.version++,Nt++,this.notify(e)}notify(e){wt();try{0 +;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ +kt()}}}function Lt(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed +;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Lt(e)} +const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}} +const jt=new WeakMap,Bt=Symbol(""),Qt=Symbol(""),Ut=Symbol("") +;function Ft(e,t,n){if(At&&dt){let t=jt.get(e);t||jt.set(e,t=new Map) +;let r=t.get(n);r||(t.set(n,r=new It),r.map=t,r.key=n),r.track()}} +function zt(e,t,n,r,o,i){const a=jt.get(e);if(!a)return void Nt++;const s=e=>{ +e&&e.trigger()};if(wt(),"clear"===t)a.forEach(s);else{const o=ye(e),i=o&&Re(n) +;if(o&&"length"===n){const e=Number(r);a.forEach(((t,n)=>{ +("length"===n||n===Ut||!Ee(n)&&n>=e)&&s(t)})) +}else switch((void 0!==n||a.has(void 0))&&s(a.get(n)),i&&s(a.get(Ut)),t){ +case"add":o?i&&s(a.get("length")):(s(a.get(Bt)),we(e)&&s(a.get(Qt)));break +;case"delete":o||(s(a.get(Bt)),we(e)&&s(a.get(Qt)));break;case"set": +we(e)&&s(a.get(Bt))}}kt()}function qt(e){const t=$n(e) +;return t===e?t:(Ft(t,0,Ut),Pn(e)?t:t.map(Rn))}function Ht(e){ +return Ft(e=$n(e),0,Ut),e}const Vt={__proto__:null,[Symbol.iterator](){ +return Zt(this,Symbol.iterator,Rn)},concat(...e){ +return qt(this).concat(...e.map((e=>ye(e)?qt(e):e)))},entries(){ +return Zt(this,"entries",(e=>(e[1]=Rn(e[1]),e)))},every(e,t){ +return Xt(this,"every",e,t,void 0,arguments)},filter(e,t){ +return Xt(this,"filter",e,t,(e=>e.map(Rn)),arguments)},find(e,t){ +return Xt(this,"find",e,t,Rn,arguments)},findIndex(e,t){ +return Xt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){ +return Xt(this,"findLast",e,t,Rn,arguments)},findLastIndex(e,t){ +return Xt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){ +return Xt(this,"forEach",e,t,void 0,arguments)},includes(...e){ +return Yt(this,"includes",e)},indexOf(...e){return Yt(this,"indexOf",e)}, +join(e){return qt(this).join(e)},lastIndexOf(...e){ +return Yt(this,"lastIndexOf",e)},map(e,t){ +return Xt(this,"map",e,t,void 0,arguments)},pop(){return Kt(this,"pop")}, +push(...e){return Kt(this,"push",e)},reduce(e,...t){return Gt(this,"reduce",e,t) +},reduceRight(e,...t){return Gt(this,"reduceRight",e,t)},shift(){ +return Kt(this,"shift")},some(e,t){return Xt(this,"some",e,t,void 0,arguments)}, +splice(...e){return Kt(this,"splice",e)},toReversed(){ +return qt(this).toReversed()},toSorted(e){return qt(this).toSorted(e)}, +toSpliced(...e){return qt(this).toSpliced(...e)},unshift(...e){ +return Kt(this,"unshift",e)},values(){return Zt(this,"values",Rn)}} +;function Zt(e,t,n){const r=Ht(e),o=r[t]();return r===e||Pn(e)||(o._next=o.next, +o.next=()=>{const e=o._next();return e.value&&(e.value=n(e.value)),e}),o} +const Wt=Array.prototype;function Xt(e,t,n,r,o,i){ +const a=Ht(e),s=a!==e&&!Pn(e),l=a[t];if(l!==Wt[t]){const t=l.apply(e,i) +;return s?Rn(t):t}let c=n;a!==e&&(s?c=function(t,r){ +return n.call(this,Rn(t),r,e)}:n.length>2&&(c=function(t,r){ +return n.call(this,t,r,e)}));const u=l.call(a,c,r);return s&&o?o(u):u} +function Gt(e,t,n,r){const o=Ht(e);let i=n +;return o!==e&&(Pn(e)?n.length>3&&(i=function(t,r,o){return n.call(this,t,r,o,e) +}):i=function(t,r,o){return n.call(this,t,Rn(r),o,e)}),o[t](i,...r)} +function Yt(e,t,n){const r=$n(e);Ft(r,0,Ut);const o=r[t](...n) +;return-1!==o&&!1!==o||!Dn(n[0])?o:(n[0]=$n(n[0]),r[t](...n))} +function Kt(e,t,n=[]){Dt(),wt();const r=$n(e)[t].apply(e,n);return kt(),$t(),r} +const Jt=ce("__proto__,__v_isRef,__isVue"),en=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(Ee)) +;function tn(e){Ee(e)||(e=String(e));const t=$n(this) +;return Ft(t,0,e),t.hasOwnProperty(e)}class nn{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{ +;if("__v_raw"===t)return n===(r?o?kn:wn:o?yn:On).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0 +;const i=ye(e);if(!r){let e;if(i&&(e=Vt[t]))return e +;if("hasOwnProperty"===t)return tn}const a=Reflect.get(e,t,Mn(e)?e:n) +;return(Ee(t)?en.has(t):Jt(t))?a:(r||Ft(e,0,t), +o?a:Mn(a)?i&&Re(t)?a:a.value:Te(a)?r?_n(a):xn(a):a)}}class rn extends nn{ 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,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?{ +const an=new rn,sn=new on,ln=new rn(!0),cn=new on(!0),un=e=>e,dn=e=>Reflect.getPrototypeOf(e) +;function pn(e){return function(...t){ +return"delete"!==e&&("clear"===e?void 0:this)}}function hn(e,t){const n={get(n){ +const r=this.__v_raw,o=$n(r),i=$n(n);e||(Fe(n,i)&&Ft(o,0,n),Ft(o,0,i)) +;const{has:a}=dn(o),s=t?un:e?Nn:Rn +;return a.call(o,n)?s(r.get(n)):a.call(o,i)?s(r.get(i)):void(r!==o&&r.get(n))}, +get size(){const t=this.__v_raw;return!e&&Ft($n(t),0,Bt),Reflect.get(t,"size",t) +},has(t){const n=this.__v_raw,r=$n(n),o=$n(t) +;return e||(Fe(t,o)&&Ft(r,0,t),Ft(r,0,o)),t===o?n.has(t):n.has(t)||n.has(o)}, +forEach(n,r){const o=this,i=o.__v_raw,a=$n(i),s=t?un:e?Nn:Rn +;return!e&&Ft(a,0,Bt),i.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}};ge(n,e?{ +add:pn("add"),set:pn("set"),delete:pn("delete"),clear:pn("clear")}:{add(e){ +t||Pn(e)||An(e)||(e=$n(e));const n=$n(this) +;return dn(n).has.call(n,e)||(n.add(e),zt(n,"add",e,e)),this},set(e,n){ +t||Pn(n)||An(n)||(n=$n(n));const r=$n(this),{has:o,get:i}=dn(r) +;let a=o.call(r,e);a||(e=$n(e),a=o.call(r,e));const s=i.call(r,e) +;return r.set(e,n),a?Fe(n,s)&&zt(r,"set",e,n):zt(r,"add",e,n),this},delete(e){ +const t=$n(this),{has:n,get:r}=dn(t);let o=n.call(t,e) +;o||(e=$n(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e) +;return o&&zt(t,"delete",e,void 0),i},clear(){ +const e=$n(this),t=0!==e.size,n=e.clear();return t&&zt(e,"clear",void 0,void 0), +n}});return["keys","values","entries",Symbol.iterator].forEach((r=>{ +n[r]=function(e,t,n){return function(...r){ +const o=this.__v_raw,i=$n(o),a=we(i),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=o[e](...r),u=n?un:t?Nn:Rn +;return!t&&Ft(i,0,l?Qt:Bt),{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 this}}}}(r,e,t)})),n}function fn(e,t){const n=hn(e,t) ;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 +}const mn={get:fn(!1,!1)},gn={get:fn(!1,!0)},vn={get:fn(!0,!1)},bn={ +get:fn(!0,!0)},On=new WeakMap,yn=new WeakMap,wn=new WeakMap,kn=new WeakMap +;function xn(e){return An(e)?e:Tn(e,!1,an,mn,On)}function Sn(e){ +return Tn(e,!1,ln,gn,yn)}function _n(e){return Tn(e,!0,sn,vn,wn)}function En(e){ +return Tn(e,!0,cn,bn,kn)}function Tn(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{ +;const l=new Proxy(e,2===a?r:n);return o.set(e,l),l}function Cn(e){ +return An(e)?Cn(e.__v_raw):!(!e||!e.__v_isReactive)}function An(e){ +return!(!e||!e.__v_isReadonly)}function Pn(e){return!(!e||!e.__v_isShallow)} +function Dn(e){return!!e&&!!e.__v_raw}function $n(e){const t=e&&e.__v_raw +;return t?$n(t):e}const Rn=e=>Te(e)?xn(e):e,Nn=e=>Te(e)?_n(e):e;function Mn(e){ +return!!e&&!0===e.__v_isRef}function In(e){return jn(e,!1)}function Ln(e){ +return jn(e,!0)}function jn(e,t){return Mn(e)?e:new Bn(e,t)}class Bn{ 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)} +this.dep=new It,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:$n(e), +this._value=t?e:Rn(e),this.__v_isShallow=t}get value(){ +return this.dep.track(),this._value}set value(e){ +const t=this._rawValue,n=this.__v_isShallow||Pn(e)||An(e) +;e=n?e:$n(e),Fe(e,t)&&(this._rawValue=e, +this._value=n?e:Rn(e),this.dep.trigger())}}function Qn(e){return Mn(e)?e.value:e +}function Un(e){return Se(e)?e():Qn(e)}const Fn={ +get:(e,t,n)=>"__v_raw"===t?e:Qn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t] +;return Mn(o)&&!Mn(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function zn(e){ +return Cn(e)?e:new Proxy(e,Fn)}class qn{constructor(e){ +this.__v_isRef=!0,this._value=void 0 +;const t=this.dep=new It,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t)) +;this._get=n,this._set=r}get value(){return this._value=this._get()} +set value(e){this._set(e)}}function Hn(e){return new qn(e)}function Vn(e){ +const t=ye(e)?new Array(e.length):{};for(const n in e)t[n]=Gn(e,n);return t} +class Zn{constructor(e,t,n){ +this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0, +this._value=void 0}get value(){const e=this._object[this._key] +;return this._value=void 0===e?this._defaultValue:e}set value(e){ +this._object[this._key]=e}get dep(){return function(e,t){const n=jt.get(e) +;return n&&n.get(t)}($n(this._object),this._key)}}class Wn{constructor(e){ +this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0} +get value(){return this._value=this._getter()}}function Xn(e,t,n){ +return Mn(e)?e:Se(e)?new Wn(e):Te(e)&&arguments.length>1?Gn(e,t,n):In(e)} +function Gn(e,t,n){const r=e[t];return Mn(r)?r:new Zn(e,t,n)}class Yn{ +constructor(e,t,n){ +this.fn=e,this.setter=t,this._value=void 0,this.dep=new It(this), +this.__v_isRef=!0, +this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Nt-1, +this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){ +if(this.flags|=16,!(8&this.flags)&&dt!==this)return yt(this,!0),!0}get value(){ +const e=this.dep.track() +;return Et(this),e&&(e.version=this.dep.version),this._value}set value(e){ +this.setter&&this.setter(e)}}const Kn={},Jn=new WeakMap;let er +;function tr(e,t,n=ue){ +const{immediate:r,deep:o,once:i,scheduler:a,augmentJob:s,call:l}=n,c=e=>o?e:Pn(e)||!1===o||0===o?nr(e,1):nr(e) +;let u,d,p,h,f=!1,m=!1 +;if(Mn(e)?(d=()=>e.value,f=Pn(e)):Cn(e)?(d=()=>c(e),f=!0):ye(e)?(m=!0, +f=e.some((e=>Cn(e)||Pn(e))), +d=()=>e.map((e=>Mn(e)?e.value:Cn(e)?c(e):Se(e)?l?l(e,2):e():void 0))):d=Se(e)?t?l?()=>l(e,2):e:()=>{ +if(p){Dt();try{p()}finally{$t()}}const t=er;er=u;try{return l?l(e,3,[h]):e(h) +}finally{er=t}}:pe,t&&o){const e=d,t=!0===o?1/0:o;d=()=>nr(e(),t)} +const g=ht(),v=()=>{u.stop(),g&&ve(g.effects,u)};if(i&&t){const e=t;t=(...t)=>{ +e(...t),v()}}let b=m?new Array(e.length).fill(Kn):Kn;const O=e=>{ +if(1&u.flags&&(u.dirty||e))if(t){const e=u.run() +;if(o||f||(m?e.some(((e,t)=>Fe(e,b[t]))):Fe(e,b))){p&&p();const n=er;er=u;try{ +const n=[e,b===Kn?void 0:m&&b[0]===Kn?[]:b,h];l?l(t,3,n):t(...n),b=e}finally{ +er=n}}}else u.run()} +;return s&&s(O),u=new gt(d),u.scheduler=a?()=>a(O,!1):O,h=e=>function(e,t=!1,n=er){ +if(n){let t=Jn.get(n);t||Jn.set(n,t=[]),t.push(e)}}(e,!1,u),p=u.onStop=()=>{ +const e=Jn.get(u);if(e){if(l)l(e,4);else for(const t of e)t();Jn.delete(u)} +},t?r?O(!0):b=u.run():a?a(O.bind(null,!0),!0):u.run(), +v.pause=u.pause.bind(u),v.resume=u.resume.bind(u),v.stop=v,v} +function nr(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--,Mn(e))nr(e.value,t,n);else if(ye(e))for(let r=0;r{ +nr(e,t,n)}));else if($e(e)){for(const r in e)nr(e[r],t,n) +;for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&nr(e[r],t,n) +}return e} /** - * @vue/runtime-core v3.4.31 + * @vue/runtime-core v3.5.12 * (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>>1,o=or[r],i=gr(o) -;igr(e)-gr(t))) -;if(ar.length=0,sr)return void sr.push(...e);for(sr=e,lr=0;lrnull==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_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{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{ir(e,t,n)})),o}if(ye(e)){const o=[] +;for(let i=0;i=br(n)?ar.push(e):ar.splice(function(e){ +let t=sr+1,n=ar.length;for(;t>>1,o=ar[r],i=br(o) +;ibr(e)-br(t))) +;if(lr.length=0,cr)return void cr.push(...e);for(cr=e,ur=0;urnull==e.id?2&e.flags?-1:1/0:e.id;function Or(e){try{ +for(sr=0;sr{ +r._d&&Xi(-1);const o=kr(t);let i;try{i=e(...n)}finally{kr(o),r._d&&Xi(1)} +return i};return r._n=!0,r._c=!0,r._d=!0,r}function Sr(e,t){ +if(null===yr)return e;const n=Pa(yr),r=e.dirs||(e.dirs=[]) +;for(let o=0;oe.__isTeleport,Cr=e=>e&&(e.disabled||""===e.disabled),Ar=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Pr=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Dr=(e,t)=>{ +const n=e&&e.to;if(_e(n)){if(t){return t(n)}return null}return n},$r={ +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=Cr(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=(e,t)=>{ +16&b&&(o&&o.isCE&&(o.ce._teleportTarget=e),u(O,e,t,o,i,a,s,l))},p=()=>{ +const e=t.target=Dr(t.props,f),n=Ir(e,t,m,h) +;e&&("svg"!==a&&Ar(e)?a="svg":"mathml"!==a&&Pr(e)&&(a="mathml"), +v||(d(e,n),Mr(t,!1)))} +;v&&(d(n,c),Mr(t,!0)),(w=t.props)&&(w.defer||""===w.defer)?bi(p,i):p()}else{ +t.el=e.el,t.targetStart=e.targetStart +;const r=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=Cr(e.props),g=m?n:u,b=m?r:h +;if("svg"===a||Ar(u)?a="svg":("mathml"===a||Pr(u))&&(a="mathml"), +y?(p(e.dynamicChildren,y,g,o,i,a,s), +ki(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):Rr(t,n,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){ +const e=t.target=Dr(t.props,f);e&&Rr(t,e,null,c,0)}else m&&Rr(t,u,h,c,1);Mr(t,v) +}var w},remove(e,t,n,{um:r,o:{remove:o}},i){ +const{shapeFlag:a,children:s,anchor:l,targetStart:c,targetAnchor:u,target:d,props:p}=e +;if(d&&(o(c),o(u)),i&&o(l),16&a){const e=i||!Cr(p);for(let o=0;o{const t=e.subTree +;return t.component?Ur(t.component):t};function Fr(e){let t=e[0] +;if(e.length>1)for(const n of e)if(n.type!==zi){t=n;break}return t}const zr={ +name:"BaseTransition",props:Qr,setup(e,{slots:t}){const n=ba(),r=function(){ +const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map} +;return lo((()=>{e.isMounted=!0})),po((()=>{e.isUnmounting=!0})),e}() +;return()=>{const o=t.default&&Xr(t.default(),!0);if(!o||!o.length)return +;const i=Fr(o),a=$n(e),{mode:s}=a;if(r.isLeaving)return Vr(i);const l=Zr(i) +;if(!l)return Vr(i);let c=Hr(l,a,r,n,(e=>c=e));l.type!==zi&&Wr(l,c) +;const u=n.subTree,d=u&&Zr(u);if(d&&d.type!==zi&&!ea(l,d)&&Ur(n).type!==zi){ +const e=Hr(d,a,r,n) +;if(Wr(d,e),"out-in"===s&&l.type!==zi)return r.isLeaving=!0,e.afterLeave=()=>{ +r.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave},Vr(i) +;"in-out"===s&&l.type!==zi&&(e.delayLeave=(e,t,n)=>{ +qr(r,d)[String(d.key)]=d,e[Lr]=()=>{t(),e[Lr]=void 0,delete c.delayedLeave +},c.delayedLeave=n})}return i}}};function qr(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 Hr(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=qr(n,e),k=(e,t)=>{ +e&&or(e,r,9,t)},x=(e,t)=>{const n=t[1] +;k(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[Lr]&&t[Lr](!0);const o=w[y];o&&ea(e,o)&&o.el[Lr]&&o.el[Lr](),k(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[jr]=t=>{ +a||(a=!0,k(t?o:r,[e]),S.delayedLeave&&S.delayedLeave(),e[jr]=void 0)} +;t?x(t,[e,s]):s()},leave(t,r){const o=String(e.key) +;if(t[jr]&&t[jr](!0),n.isUnmounting)return r();k(p,[t]);let i=!1 +;const a=t[Lr]=n=>{i||(i=!0,r(),k(n?m:f,[t]),t[Lr]=void 0,w[o]===e&&delete w[o]) +};w[o]=e,h?x(h,[t,a]):a()},clone(e){const i=Hr(e,t,n,r,o);return o&&o(i),i}} +;return S}function Vr(e){if(eo(e))return(e=aa(e)).children=null,e} +function Zr(e){if(!eo(e))return Tr(e.type)&&e.children?Fr(e.children):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 Wr(e,t){ +6&e.shapeFlag&&e.component?(e.transition=t, +Wr(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 Xr(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;ige({name:e.name +},t,{setup:e}))():e}function Yr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]} +function Kr(e,t,n,r,o=!1){ +if(ye(e))return void e.forEach(((e,i)=>Kr(e,t&&(ye(t)?t[i]:t),n,r,o))) +;if(Jr(r)&&!o)return +;const i=4&r.shapeFlag?Pa(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,p=$n(d),h=d===ue?()=>!1:e=>Oe(p,e) +;if(null!=c&&c!==l&&(_e(c)?(u[c]=null,h(c)&&(d[c]=null)):Mn(c)&&(c.value=null)), +Se(l))rr(l,s,12,[a,u]);else{const t=_e(l),r=Mn(l);if(t||r){const s=()=>{if(e.f){ +const n=t?h(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], +h(l)&&(d[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value)) +}else t?(u[l]=a,h(l)&&(d[l]=a)):r&&(l.value=a,e.k&&(u[e.k]=a))} +;a?(s.id=-1,bi(s,n)):s()}}}We().requestIdleCallback,We().cancelIdleCallback +;const Jr=e=>!!e.type.__asyncLoader,eo=e=>e.type.__isKeepAlive;function to(e,t){ +ro(e,"a",t)}function no(e,t){ro(e,"da",t)}function ro(e,t,n=va){ +const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return +;t=t.parent}return e()});if(io(t,r,n),n){let e=n.parent +;for(;e&&e.parent;)eo(e.parent.vnode)&&oo(r,t,n,e),e=e.parent}} +function oo(e,t,n,r){const o=io(t,e,r,!0);ho((()=>{ve(r[t],o)}),n)} +function io(e,t,n=va,r=!1){if(n){ +const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{Dt() +;const o=wa(n),i=or(t,n,e,r);return o(),$t(),i}) +;return r?o.unshift(i):o.push(i),i}}const ao=e=>(t,n=va)=>{ +_a&&"sp"!==e||io(e,((...e)=>t(...e)),n) +},so=ao("bm"),lo=ao("m"),co=ao("bu"),uo=ao("u"),po=ao("bum"),ho=ao("um"),fo=ao("sp"),mo=ao("rtg"),go=ao("rtc") +;function vo(e,t=va){io("ec",e,t)}const bo="components";function Oo(e,t){ +return ko(bo,e,!0,t)||e}const yo=Symbol.for("v-ndc");function wo(e){ +return _e(e)?ko(bo,e,!1)||e:e||yo}function ko(e,t,n=!0,r=!1){const o=yr||va +;if(o){const n=o.type;{const e=Da(n,!1) +;if(e&&(e===t||e===Le(t)||e===Qe(Le(t))))return n} +const i=xo(o[e]||n[e],t)||xo(o.appContext[e],t);return!i&&r?n:i}} +function xo(e,t){return e&&(e[t]||e[Le(t)]||e[Qe(Le(t))])}function So(e,t,n,r){ +let o;const i=n,a=ye(e);if(a||_e(e)){let n=!1 +;a&&Cn(e)&&(n=!Pn(e),e=Ht(e)),o=new Array(e.length) +;for(let r=0,a=e.length;rt(e,n,void 0,i)));else{ const n=Object.keys(e);o=new Array(n.length);for(let r=0,a=n.length;r{ 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, +function Eo(e,t,n={},r,o){ +if(yr.ce||yr.parent&&Jr(yr.parent)&&yr.parent.ce)return"default"!==t&&(n.name=t), +Zi(),Ki(Ui,null,[oa("slot",n,r&&r())],64);let i=e[t];i&&i._c&&(i._d=!1),Zi() +;const a=i&&To(i(n)),s=n.key||a&&a.key,l=Ki(Ui,{ +key:(s&&!Ee(s)?s:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&1===e._?64:-2) +;return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l} +function To(e){ +return e.some((e=>!Ji(e)||e.type!==zi&&!(e.type===Ui&&!To(e.children))))?e:null} +function Co(e,t){const n={};for(const r in e)n[Ue(r)]=e[r];return n} +const Ao=e=>e?xa(e)?Pa(e):Ao(e.parent):null,Po=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 +$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ao(e.parent),$root:e=>Ao(e.root), +$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Fo(e),$forceUpdate:e=>e.f||(e.f=()=>{ +fr(e.update)}),$nextTick:e=>e.n||(e.n=hr.bind(e.proxy)),$watch:e=>Pi.bind(e) +}),Do=(e,t)=>e!==ue&&!e.__isScriptSetup&&Oe(e,t),$o={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(Do(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,""), +;if(n!==ue&&Oe(n,t))return a[t]=4,n[t];jo&&(a[t]=0)}}const u=Po[t];let d,p +;return u?("$attrs"===t&&Ft(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, +;return Do(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) +;return!!n[a]||e!==ue&&Oe(e,a)||Do(t,a)||(s=i[0])&&Oe(s,a)||Oe(r,a)||Oe(Po,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] +Reflect.defineProperty(e,t,n)}};function Ro(){return Mo().slots}function No(){ +return Mo().attrs}function Mo(){const e=ba() +;return e.setupContext||(e.setupContext=Aa(e))}function Io(e){ +return ye(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function Lo(e,t){ +const n=Io(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, +default:t[r]}),e&&t[`__skip_${r}`]&&(e.skipFactory=!0)}return n}let jo=!0 +;function Bo(e){const t=Fo(e),n=e.proxy,r=e.ctx +;jo=!1,t.beforeCreate&&Qo(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:k,renderTriggered:x,errorCaptured:S,serverPrefetch:_,expose:E,inheritAttrs:T,components:C,directives:A,filters:P}=t +;if(c&&function(e,t,n=pe){ye(e)&&(e=Vo(e));for(const r in e){const n=e[r];let o +;o=Te(n)?"default"in n?ti(n.from||r,n.default,!0):ti(n.from||r):ti(n), +Mn(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({ +;Se(e)&&(r[$]=e.bind(n))}if(o){const t=o.call(n,n);Te(t)&&(e.data=xn(t))} +if(jo=!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=$a({ 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])}))} +get:()=>a.value,set:e=>a.value=e})}if(s)for(const $ in s)Uo(s[$],r,n,$);if(l){ +const e=Se(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{ei(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={}) +if(u&&Qo(u,e,"c"), +D(so,d),D(lo,p),D(co,h),D(uo,f),D(to,m),D(no,g),D(vo,S),D(go,k),D(mo,x),D(po,b), +D(ho,y),D(fo,_),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){ +A&&(e.directives=A),_&&Yr(e)}function Qo(e,t,n){ +or(ye(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Uo(e,t,n,r){ +let o=r.includes(".")?Di(n,r):()=>n[r];if(_e(e)){const n=t[e];Se(n)&&Ci(o,n) +}else if(Se(e))Ci(o,e.bind(n));else if(Te(e))if(ye(e))e.forEach((e=>Uo(e,t,n,r)));else{ +const r=Se(e.handler)?e.handler.bind(n):t[e.handler];Se(r)&&Ci(o,r,e)}} +function Fo(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){ +;let l;return s?l=s:o.length||n||r?(l={},o.length&&o.forEach((e=>zo(l,e,a,!0))), +zo(l,t,a)):l=t,Te(t)&&i.set(t,l),l}function zo(e,t,n,r=!1){ +const{mixins:o,extends:i}=t;i&&zo(e,i,n,!0),o&&o.forEach((t=>zo(e,t,n,!0))) +;for(const a in t)if(r&&"expose"===a);else{const r=qo[a]||n&&n[a] +;e[a]=r?r(e[a],t[a]):t[a]}return e}const qo={data:Ho,props:Xo,emits:Xo, +methods:Wo,computed:Wo,beforeCreate:Zo,created:Zo,beforeMount:Zo,mounted:Zo, +beforeUpdate:Zo,updated:Zo,beforeDestroy:Zo,beforeUnmount:Zo,destroyed:Zo, +unmounted:Zo,activated:Zo,deactivated:Zo,errorCaptured:Zo,serverPrefetch:Zo, +components:Wo,directives:Wo,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]=Zo(e[r],t[r]);return n +},provide:Ho,inject:function(e,t){return Wo(Vo(e),Vo(t))}};function Ho(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(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 +emitsCache:new WeakMap}}let Yo=0;function Ko(e,t){return function(n,r=null){ +Se(n)||(n=ge({},n)),null==r||Te(r)||(r=null);const o=Go(),i=new WeakSet,a=[] +;let s=!1;const l=o.app={_uid:Yo++,_component:n,_props:r,_container:null, +_context:o,_instance:null,version:Na,get config(){return o.config}, +set config(e){}, +use:(e,...t)=>(i.has(e)||(e&&Se(e.install)?(i.add(e),e.install(l,...t)):Se(e)&&(i.add(e), +e(l,...t))),l),mixin:e=>(o.mixins.includes(e)||o.mixins.push(e),l), +component:(e,t)=>t?(o.components[e]=t,l):o.components[e], +directive:(e,t)=>t?(o.directives[e]=t,l):o.directives[e],mount(i,a,c){if(!s){ +const u=l._ceVNode||oa(n,r) +;return u.appContext=o,!0===c?c="svg":!1===c&&(c=void 0), +a&&t?t(u,i):e(u,i,c),s=!0,l._container=i,i.__vue_app__=l,Pa(u.component)}}, +onUnmount(e){a.push(e)},unmount(){s&&(or(a,l._instance,16),e(null,l._container), +delete l._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,l), +runWithContext(e){const t=Jo;Jo=l;try{return e()}finally{Jo=t}}};return l}} +let Jo=null;function ei(e,t){if(va){let n=va.provides +;const r=va.parent&&va.parent.provides +;r===n&&(n=va.provides=Object.create(r)),n[e]=t}else;}function ti(e,t,n=!1){ +const r=va||yr;if(r||Jo){ +const o=Jo?Jo._context.provides:r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0 ;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){ +const ni={},ri=()=>Object.create(ni),oi=e=>Object.getPrototypeOf(e)===ni +;function ii(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{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-1,n[1]=r<0||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 +;if(n in i)r=i[n];else{const a=wa(o);r=i[n]=e.call(null,t),a()}}else r=e +;o.ce&&o.ce._setProp(n,r)}a[0]&&(i&&!e?r=!1:!a[1]||""!==r&&r!==Be(n)||(r=!0))} +return r}const si=new WeakMap;function li(e,t,n=!1){ +const r=n?si: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]=li(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"_"===e[0]||"$stable"===e,di=e=>ye(e)?e.map(ua):[ua(e)],pi=(e,t,n)=>{ +if(t._n)return t;const r=xr(((...e)=>di(t(...e))),n);return r._c=!1,r +},hi=(e,t,n)=>{const r=e._ctx;for(const o in e){if(ui(o))continue;const n=e[o] +;if(Se(n))t[o]=pi(0,n,r);else if(null!=n){const e=di(n);t[o]=()=>e}} +},fi=(e,t)=>{const n=di(t);e.slots.default=()=>n},mi=(e,t,n)=>{ +for(const r in t)(n||"_"!==r)&&(e[r]=t[r])},gi=(e,t,n)=>{const r=e.slots=ri() +;if(32&e.vnode.shapeFlag){const e=t._;e?(mi(r,t,n),n&&qe(r,"_",e,!0)):hi(t,r) +}else t&&fi(e,t)},vi=(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:mi(o,t,n):(i=!t.$stable,hi(t,o)),a=t}else t&&(fi(e,t),a={ +default:1});if(i)for(const s in o)ui(s)||null!=a[s]||delete o[s] +},bi=function(e,t){ +t&&t.pendingBranch?ye(e)?t.effects.push(...e):t.effects.push(e):(ye(n=e)?lr.push(...n):cr&&-1===n.id?cr.splice(ur+1,0,n):1&n.flags||(lr.push(n), +n.flags|=1),mr());var n};function Oi(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: +;e&&!ea(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 Fi: +m(e,t,n,r);break;case zi:g(e,t,n,r);break;case qi:null==e&&v(t,n,r,a);break +;case Ui: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)=>{ +}null!=u&&o&&Kr(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)=>{ @@ -800,590 +948,533 @@ 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 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){ +8&m?c(p,e.children):16&m&&x(e.children,p,null,a,s,yi(e,l),u,d), +v&&_r(e,null,a,"created"),k(p,e,e.scopeId,u,a),f){ +for(const e in f)"value"===e||Ne(e)||o(p,e,null,f[e],l,a) +;"value"in f&&o(p,"value",null,f.value,l),(h=f.onVnodeBeforeMount)&&fa(h,a,e)} +v&&_r(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{for(let c=l;c{ -const l=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag +;b&&g.beforeEnter(p),n(p,t,r),((h=f&&f.onVnodeMounted)||b||v)&&bi((()=>{ +h&&fa(h,a,e),b&&g.enter(p),v&&_r(e,null,a,"mounted")}),s)},k=(e,t,n,r,o)=>{ +if(n&&p(e,n),r)for(let i=0;i{ +for(let c=l;c{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{m&&da(m,n,t,e),p&&Gr(t,e,n,"updated")}),r) +;if(n&&wi(n,!1),(m=f.onVnodeBeforeUpdate)&&fa(m,n,t,e), +p&&_r(t,e,n,"beforeUpdate"), +n&&wi(n,!0),(h.innerHTML&&null==f.innerHTML||h.textContent&&null==f.textContent)&&c(l,""), +d?_(e.dynamicChildren,d,l,n,r,yi(t,i),a):s||R(e,t,l,null,n,r,yi(t,i),a,!1),u>0){ +if(16&u)E(l,h,f,n,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 e=t.dynamicProps +;for(let t=0;t{m&&fa(m,n,t,e),p&&_r(t,e,n,"updated")}),r) },_=(e,t,n,r,o,i,a)=>{for(let s=0;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("") +const l=e[s],c=t[s],d=l.el&&(l.type===Ui||!ea(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)=>{if(t!==n){ +if(t!==ue)for(const a in t)Ne(a)||a in n||o(e,a,t[a],null,i,r) +;for(const a in n){if(Ne(a))continue;const s=n[a],l=t[a] +;s!==l&&"value"!==a&&o(e,a,l,s,i,r)}"value"in n&&o(e,"value",t.value,n.value,i)} +},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) +n(p,r,o),x(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)&&ki(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, +const r=e.type,o=(t?t.appContext:e.appContext)||ma,i={uid:ga++,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, +job:null,scope:new pt(!0),render:null,proxy:null,exposed:null,exposeProxy:null, +withProxy:null,provides:t?t.provides:Object.create(o.provides), +ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null, +directives:null,propsOptions:li(r,o),emitsOptions:Ni(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,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) +},i.root=t?t.root:i,i.emit=Ri.bind(null,i),e.ce&&e.ce(i);return i}(e,r,o) +;if(eo(e)&&(s.ctx.renderer=H),function(e,t=!1,n=!1){t&&ya(t) +;const{props:r,children:o}=e.vnode,i=xa(e);(function(e,t,n,r=!1){ +const o={},i=ri();e.propsDefaults=Object.create(null),ii(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)=>{ +;n?e.props=r?o:Sn(o):e.type.props?e.props=o:e.props=i,e.attrs=i +})(e,r,i,t),gi(e,o,n);const a=i?function(e,t){const n=e.type +;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,$o);const{setup:r}=n +;if(r){Dt() +;const n=e.setupContext=r.length>1?Aa(e):null,o=wa(e),i=rr(r,e,0,[e.props,n]),a=Ce(i) +;if($t(),o(),!a&&!e.sp||Jr(e)||Yr(e),a){if(i.then(ka,ka),t)return i.then((n=>{ +Ea(e,n,t)})).catch((t=>{ir(t,e,0)}));e.asyncDep=i}else Ea(e,i,t)}else Ta(e,t) +}(e,t):void 0;t&&ya(!1)}(s,!1,a),s.asyncDep){if(o&&o.registerDep(s,D,a),!e.el){ +const e=s.subTree=oa(zi);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){ +;if(!(n&&l>=0))return!(!o&&!s||s&&s.$stable)||r!==a&&(r?!a||Bi(r,a,c):!!a) +;if(1024&l)return!0;if(16&l)return r?Bi(r,a,c):!!a;if(8&l){ const e=t.dynamicProps;for(let t=0;tir&&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(a[n]!==r[n]&&!Mi(c,n))return!0}}return!1}(e,t,n)){ +if(r.asyncDep&&!r.asyncResolved)return void $(r,t,n);r.next=t,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=xi(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 +;wi(e,!1),t?(t.el=c.el,$(e,t,a)):t=c,n&&ze(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&fa(d,l,t,c), +wi(e,!0);const h=Ii(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]) +}(e,h.el),r&&bi(r,o),(d=t.props&&t.props.onVnodeUpdated)&&bi((()=>fa(d,l,t,c)),o) +}else{let a;const{el:s,props:l}=t,{bm:c,m:u,parent:d,root:p,type:h}=e,m=Jr(t) +;if(wi(e,!1),c&&ze(c),!m&&(a=l&&l.onVnodeBeforeMount)&&fa(a,d,t),wi(e,!0),s&&Z){ +const t=()=>{e.subTree=Ii(e),Z(s,e.subTree,e,o,null)} +;m&&h.__asyncHydrate?h.__asyncHydrate(s,e,t):t()}else{ +p.ce&&p.ce._injectChildStyle(h);const a=e.subTree=Ii(e) +;f(null,a,n,r,e,o,i),t.el=a.el}if(u&&bi(u,o),!m&&(a=l&&l.onVnodeMounted)){ +const e=t;bi((()=>fa(a,d,e)),o)} +(256&t.shapeFlag||d&&Jr(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&bi(e.a,o), +e.isMounted=!0,t=n=r=null}};e.scope.on();const l=e.effect=new gt(s) +;e.scope.off();const c=e.update=l.run.bind(l),d=e.job=l.runIfDirty.bind(l) +;d.i=e,d.id=e.uid,l.scheduler=()=>fr(d),wi(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=$n(o),[l]=e.propsOptions;let c=!1 +;if(!(r||a>0)||16&a){let r;ii(e,t,o,i)&&(c=!0) +;for(const i in s)t&&(Oe(t,i)||(r=Be(i))!==i&&Oe(t,r))||(l?!n||void 0===n[i]&&void 0===n[r]||(o[i]=ai(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{ +;o[t]=ai(l,s,t,u,e,!1)}else u!==i[a]&&(i[a]=u,c=!0)}}c&&zt(e.attrs,"set","") +}(e,t.props,r,n),vi(e,t.children,n),Dt(),gr(e),$t()},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(h>0){if(128&h)return void M(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 +8&f?(16&d&&U(u,o,i),p!==u&&c(n,p)):16&d?16&f?M(u,p,n,r,o,i,a,s,l):U(u,o,i,!0):(8&d&&c(n,""), +16&f&&x(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;pu?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 r=t[p]=l?da(t[p]):ua(t[p]);f(e[p],r,n,null,o,i,a,s,l)} +c>u?U(e,o,i,!0,!1,d):x(t,n,r,o,i,a,s,l,d)},M=(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 +const r=e[c],u=t[c]=l?da(t[c]):ua(t[c]);if(!ea(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 +const r=e[d],c=t[p]=l?da(t[p]):ua(t[p]);if(!ea(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=ep)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){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])){ +;if(null!=r.key)u=g.get(r.key);else for(v=m;v<=p;v++)if(0===k[v-m]&&ea(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 +void 0===u?L(r,o,i,!0):(k[u-m]=c+1,u>=w?w=u:y=!0,f(r,t[u],n,null,o,i,a,s,l),b++) +}const x=y?function(e){const t=e.slice(),n=[0];let r,o,i,a,s;const l=e.length ;for(r=0;r>1,e[n[s]]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--){ +;for(;i-- >0;)n[i]=a,a=t[a];return n}(k):de;for(v=x.length-1,c=O-1;c>=0;c--){ const e=m+c,d=t[e],p=e+1{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=e -;if(6&u)return void M(e.component.subTree,t,r,o) +;0===k[c]?f(null,d,n,p,o,i,a,s,l):y&&(v<0||c!==x[v]?I(d,n,p,2):v--)}} +},I=(e,t,r,o,i=null)=>{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=e +;if(6&u)return void I(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;el.enter(a)),i);else{ +n(a,t,r),bi((()=>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 +const{type:i,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p,cacheIndex: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{ +null!=s&&Kr(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=!Jr(e);let g +;if(m&&(g=a&&a.onVnodeBeforeUnmount)&&fa(g,t,e),6&u)Q(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=()=>{ +;f&&_r(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,H,r):c&&!c.hasOnce&&(i!==Ui||d>0&&64&d)?U(c,t,n,!1,!0):(i===Ui&&384&d||!o&&16&u)&&U(l,t,n), +r&&j(e)}(m&&(g=a&&a.onVnodeUnmounted)||f)&&bi((()=>{ +g&&fa(g,t,e),f&&_r(e,null,t,"unmounted")}),n)},j=e=>{ +const{type:t,el:n,anchor:o,transition:i}=e;if(t===Ui)return void B(n,o) +;if(t===qi)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((()=>{ +;r?r(e.el,a,o):o()}else a()},B=(e,t)=>{let n;for(;e!==t;)n=d(e),r(e),e=n;r(t) +},Q=(e,t,n)=>{const{bum:r,scope:o,job:i,subTree:a,um:s,m:l,a:c}=e +;Si(l),Si(c),r&&ze(r),o.stop(),i&&(i.flags|=8,L(a,e,t,n)),s&&bi(s,t),bi((()=>{ 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;a6&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)=>{ +for(let a=i;a{ +if(6&e.shapeFlag)return F(e.component.subTree) +;if(128&e.shapeFlag)return e.suspense.next() +;const t=d(e.anchor||e.el),n=t&&t[Er];return n?d(n):t};let z=!1 +;const q=(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){ +t._vnode=e,z||(z=!0,gr(),vr(),z=!1)},H={p:f,um:L,m:I,r:j,mt:A,mc:x,pc:R,pbc:_, +n:F,o:e};let V,Z;return{render:q,hydrate:V,createApp:Ko(q,V)}}(e)} +function yi({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$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{ -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;i1)for(let i=0;ie&&(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;o0?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, +}function wi({effect:e,job:t},n){ +n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ki(e,t,n=!1){ +const r=e.children,o=t.children;if(ye(r)&&ye(o))for(let i=0;iti(_i);function Ti(e,t){return Ai(e,null,t)} +function Ci(e,t,n){return Ai(e,t,n)}function Ai(e,t,n=ue){ +const{immediate:r,deep:o,flush:i,once:a}=n,s=ge({},n),l=t&&r||!t&&"post"!==i +;let c;if(_a)if("sync"===i){const e=Ei() +;c=e.__watcherHandles||(e.__watcherHandles=[])}else if(!l){const e=()=>{} +;return e.stop=pe,e.resume=pe,e.pause=pe,e}const u=va +;s.call=(e,t,n)=>or(e,u,t,n);let d=!1;"post"===i?s.scheduler=e=>{ +bi(e,u&&u.suspense)}:"sync"!==i&&(d=!0,s.scheduler=(e,t)=>{t?e():fr(e) +}),s.augmentJob=e=>{t&&(e.flags|=4),d&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))} +;const p=tr(e,t,s);return _a&&(c?c.push(p):l&&p()),p}function Pi(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=wa(this),s=Ai(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"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${Le(t)}Modifiers`]||e[`${Be(t)}Modifiers`] +;function Ri(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ue;let o=n +;const i=t.startsWith("update:"),a=i&&$i(r,t.slice(7));let s +;a&&(a.trim&&(o=n.map((e=>_e(e)?e.trim():e))),a.number&&(o=n.map(He))) +;let l=r[s=Ue(t)]||r[s=Ue(Le(t))];!l&&i&&(l=r[s=Ue(Be(t))]),l&&or(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,or(c,e,6,o)}}function Ni(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=Ni(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 Mi(e,t){ +return!(!e||!fe(t))&&(t=t.slice(2).replace(/Once$/,""), +Oe(e,t[0].toLowerCase()+t.slice(1))||Oe(e,Be(t))||Oe(e,t))}function Ii(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=kr(e) +;let v,b;try{if(4&n.shapeFlag){const e=o||r,t=e;v=ua(c.call(t,e,u,d,h,p,f)),b=s +}else{const e=t;0,v=ua(e.length>1?e(d,{attrs:s,slots:a,emit:l +}):e(d,null)),b=t.props?s:Li(s)}}catch(y){Hi.length=0,ir(y,e,1),v=oa(zi)}let O=v +;if(b&&!1!==m){const e=Object.keys(b),{shapeFlag:t}=O +;e.length&&7&t&&(i&&e.some(me)&&(b=ji(b,i)),O=aa(O,b,!1,!0))} +return n.dirs&&(O=aa(O,null,!1,!0), +O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&Wr(O,n.transition), +v=O,kr(g),v}const Li=e=>{let t +;for(const n in e)("class"===n||"style"===n||fe(n))&&((t||(t={}))[n]=e[n]) +;return t},ji=(e,t)=>{const n={} +;for(const r in e)me(r)&&r.slice(9)in t||(n[r]=e[r]);return n} +;function Bi(e,t,n){const r=Object.keys(t) +;if(r.length!==Object.keys(e).length)return!0;for(let o=0;oe.__isSuspense +;const Ui=Symbol.for("v-fgt"),Fi=Symbol.for("v-txt"),zi=Symbol.for("v-cmt"),qi=Symbol.for("v-stc"),Hi=[] +;let Vi=null;function Zi(e=!1){Hi.push(Vi=e?null:[])}let Wi=1;function Xi(e){ +Wi+=e,e<0&&Vi&&(Vi.hasOnce=!0)}function Gi(e){ +return e.dynamicChildren=Wi>0?Vi||de:null, +Hi.pop(),Vi=Hi[Hi.length-1]||null,Wi>0&&Vi&&Vi.push(e),e} +function Yi(e,t,n,r,o,i){return Gi(ra(e,t,n,r,o,i,!0))}function Ki(e,t,n,r,o){ +return Gi(oa(e,t,n,r,o,!0))}function Ji(e){return!!e&&!0===e.__v_isVNode} +function ea(e,t){return e.type===t.type&&e.key===t.key} +const ta=({key:e})=>null!=e?e:null,na=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e), +null!=e?_e(e)||Mn(e)||Se(e)?{i:yr,r:e,k:t,f:!!n}:e:null) +;function ra(e,t=null,n=null,r=0,o=null,i=(e===Ui?0:1),a=!1,s=!1){const l={ +__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ta(t),ref:t&&na(t),scopeId:wr, 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) +targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r, +dynamicProps:o,dynamicChildren:null,appContext:null,ctx:yr} +;return s?(pa(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=_e(n)?8:16), +Wi>0&&!a&&Vi&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&Vi.push(l),l} +const oa=function(e,t=null,n=null,r=0,o=null,i=!1){e&&e!==yo||(e=zi);if(Ji(e)){ +const r=aa(e,t,!0) +;return n&&pa(r,n),Wi>0&&!i&&Vi&&(6&r.shapeFlag?Vi[Vi.indexOf(e)]=r:Vi.push(r)), +r.patchFlag=-2,r}a=e,Se(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=ia(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, +;e&&!_e(e)&&(t.class=et(e)),Te(n)&&(Dn(n)&&!ye(n)&&(n=ge({},n)),t.style=Xe(n))} +const s=_e(e)?1:Qi(e)?128:Tr(e)?64:Te(e)?4:Se(e)?2:0;return ra(e,t,n,r,o,s,i,!0) +};function ia(e){return e?Dn(e)||oi(e)?ge({},e):e:null} +function aa(e,t,n=!1,r=!1){ +const{props:o,ref:i,patchFlag:a,children:s,transition:l}=e,c=t?ha(o||{},t):o,u={ +__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ta(c), +ref:t&&t.ref?n&&i?ye(i)?i.concat(na(t)):[i,na(t)]:na(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 +targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount, +shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ui?-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&&aa(e.ssContent), +ssFallback:e.ssFallback&&aa(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx, +ce:e.ce};return l&&r&&Wr(u,l.clone(u)),u}function sa(e=" ",t=0){ +return oa(Fi,null,e,t)}function la(e,t){const n=oa(qi,null,e) +;return n.staticCount=t,n}function ca(e="",t=!1){ +return t?(Zi(),Ki(zi,null,e)):oa(zi,null,e)}function ua(e){ +return null==e||"boolean"==typeof e?oa(zi):ye(e)?oa(Ui,null,e.slice()):Ji(e)?da(e):oa(Fi,null,String(e)) +}function da(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:aa(e)} +function pa(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)))}{ +const n=t.default;return void(n&&(n._c&&(n._d=!1),pa(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={} +;r||oi(t)?3===r&&yr&&(1===yr.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=yr} +}else Se(t)?(t={default:t,_ctx:yr},n=32):(t=String(t),64&r?(n=16,t=[sa(t)]):n=8) +;e.children=t,e.shapeFlag|=n}function ha(...e){const t={} ;for(let n=0;nfa||xr;let ga,va;{ +}else""!==e&&(t[e]=r[e])}return t}function fa(e,t,n,r=null){or(e,t,7,[n,r])} +const ma=Go();let ga=0;let va=null;const ba=()=>va||yr;let Oa,ya;{ 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){ +;Oa=t("__VUE_INSTANCE_SETTERS__",(e=>va=e)), +ya=t("__VUE_SSR_SETTERS__",(e=>_a=e))}const wa=e=>{const t=va +;return Oa(e),e.scope.on(),()=>{e.scope.off(),Oa(t)}},ka=()=>{ +va&&va.scope.off(),Oa(null)};function xa(e){return 4&e.vnode.shapeFlag} +let Sa,_a=!1;function Ea(e,t,n){ +Se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=zn(t)), +Ta(e,n)}function Ta(e,t,n){const r=e.type;if(!e.render){if(!t&&Sa&&!r.render){ +const t=r.template||Fo(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={ +isCustomElement:n,delimiters:i},o),a);r.render=Sa(t,s)}}e.render=r.render||pe}{ +const t=wa(e);Dt();try{Bo(e)}finally{$t(),t()}}}const Ca={ +get:(e,t)=>(Ft(e,0,""),e[t])};function Aa(e){const t=t=>{e.exposed=t||{}} +;return{attrs:new Proxy(e.attrs,Ca),slots:e.slots,emit:e.emit,expose:t}} +function Pa(e){ +return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(zn((t=e.exposed, +!Oe(t,"__v_skip")&&Object.isExtensible(t)&&qe(t,"__v_skip",!0),t)),{ +get:(t,n)=>n in t?t[n]:n in Po?Po[n](e):void 0,has:(e,t)=>t in e||t in Po +})):e.proxy;var t}function Da(e,t=!0){ +return Se(e)?e.displayName||e.name:e.name||t&&e.__name}const $a=(e,t)=>{ +const n=function(e,t,n=!1){let r,o +;return Se(e)?r=e:(r=e.get,o=e.set),new Yn(r,o,n)}(e,0,_a);return n} +;function Ra(e,t,n){const r=arguments.length +;return 2===r?Te(t)&&!ye(t)?Ji(t)?oa(e,null,[t]):oa(e,t):oa(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Ji(n)&&(n=[n]), +oa(e,t,n))}const Na="3.5.12"; +/** + * @vue/runtime-dom v3.5.12 + * (c) 2018-present Yuxi (Evan) You and Vue contributors + * @license MIT + **/let Ma;const Ia="undefined"!=typeof window&&window.trustedTypes;if(Ia)try{ +Ma=Ia.createPolicy("vue",{createHTML:e=>e})}catch(G$){} +const La=Ma?e=>Ma.createHTML(e):e=>e,ja="undefined"!=typeof document?document:null,Ba=ja&&ja.createElement("template"),Qa={ 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) +const o="svg"===t?ja.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?ja.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?ja.createElement(e,{ +is:n}):ja.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), +o},createText:e=>ja.createTextNode(e),createComment:e=>ja.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,"")}, +querySelector:e=>ja.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?`${e}`:"mathml"===r?`${e}`:e -;const o=Ra.content;if("svg"===r||"mathml"===r){const e=o.firstChild +Ba.innerHTML=La("svg"===r?`${e}`:"mathml"===r?`${e}`:e) +;const o=Ba.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 +},Ua="transition",Fa="animation",za=Symbol("_vtc"),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 +},Ha=ge({},Qr,qa),Va=e=>(e.displayName="Transition", +e.props=Ha,e),Za=Va(((e,{slots:t})=>Ra(zr,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) +if(null==e)return null;if(Te(e))return[Ga(e.enter),Ga(e.leave)];{const t=Ga(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)}, +}(o),m=f&&f[0],g=f&&f[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:O,onLeave:y,onLeaveCancelled:w,onBeforeAppear:k=v,onAppear:x=b,onAppearCancelled:S=O}=t,_=(e,t,n)=>{ +Ka(e,t?u:s),Ka(e,t?c:a),n&&n()},E=(e,t)=>{ +e._isLeaving=!1,Ka(e,d),Ka(e,h),Ka(e,p),t&&t()},T=e=>(t,n)=>{ +const o=e?x:b,a=()=>_(t,e,n);Wa(o,[t,a]),Ja((()=>{ +Ka(t,e?l:i),Ya(t,e?u:s),Xa(o)||ts(t,r,m,a)}))};return ge(t,{onBeforeEnter(e){ +Wa(v,[e]),Ya(e,i),Ya(e,a)},onBeforeAppear(e){Wa(k,[e]),Ya(e,l),Ya(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){ +;Ya(e,d),Ya(e,p),document.body.offsetHeight,Ja((()=>{ +e._isLeaving&&(Ka(e,d),Ya(e,h),Xa(y)||ts(e,r,g,n))})),Wa(y,[e,n])}, +onEnterCancelled(e){_(e,!1),Wa(O,[e])},onAppearCancelled(e){_(e,!0),Wa(S,[e])}, +onLeaveCancelled(e){E(e),Wa(w,[e])}})}(e),t))),Wa=(e,t=[])=>{ +ye(e)?e.forEach((e=>e(...t))):e&&e(...t) +},Xa=e=>!!e&&(ye(e)?e.some((e=>e.length>1)):e.length>1);function Ga(e){ +return Ve(e)}function Ya(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) +(e[za]||(e[za]=new Set)).add(t)}function Ka(e,t){ +t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[za] +;n&&(n.delete(t),n.size||(e[za]=void 0))}function Ja(e){ +requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let es=0 +;function ts(e,t,n,r){const o=e._endId=++es,i=()=>{o===e._endId&&r()} +;if(null!=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(`${Ua}Delay`),i=r(`${Ua}Duration`),a=ns(o,i),s=r(`${Fa}Delay`),l=r(`${Fa}Duration`),c=ns(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()) +;t===Ua?a>0&&(u=Ua,d=a,p=i.length):t===Fa?c>0&&(u=Fa,d=c,p=l.length):(d=Math.max(a,c), +u=d>0?a>c?Ua:Fa:null,p=u?u===Ua?i.length:l.length:0) +;const h=u===Ua&&/\b(transform|all)(,|$)/.test(r(`${Ua}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((()=>{uXa(t)+Xa(e[n]))))}function Xa(e){ +;return Math.max(...t.map(((t,n)=>rs(t)+rs(e[n]))))}function rs(e){ return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))} -const Ya=Symbol("_vod"),Ga=Symbol("_vsh"),Ka={ +const os=Symbol("_vod"),is=Symbol("_vsh"),as={ beforeMount(e,{value:t},{transition:n}){ -e[Ya]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Ja(e,t) +e[os]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):ss(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 +!t!=!n&&(r?t?(r.beforeEnter(e),ss(e,!0),r.enter(e)):r.leave(e,(()=>{ss(e,!1) +})):ss(e,t))},beforeUnmount(e,{value:t}){ss(e,t)}};function ss(e,t){ +e.style.display=t?e[os]:"none",e[is]=!t}const ls=Symbol("");function cs(e){ +const t=ba();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{ +Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>ds(e,n))) +},r=()=>{const r=e(t.proxy);t.ce?ds(t.ce,r):us(t.subTree,r),n(r)};so((()=>{ +Ai(r,null,{flush:"post"})})),lo((()=>{const e=new MutationObserver(r) +;e.observe(t.subTree.el.parentNode,{childList:!0}),ho((()=>e.disconnect()))}))} +function us(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){ +us(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree +;if(1&e.shapeFlag&&e.el)ds(e.el,t);else if(e.type===Ui)e.children.forEach((e=>us(e,t)));else if(e.type===qi){ +let{el:n,anchor:r}=e;for(;n&&(ds(n,t),n!==r);)n=n.nextSibling}}function ds(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;ofs(e,t,n)));else if(null==n&&(n=""), +t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=gs[t] +;if(n)return n;let r=Le(t);if("filter"!==r&&r in e)return gs[t]=r;r=Qe(r) +;for(let o=0;o{if(e._vts){ -if(e._vts<=n.attached)return}else e._vts=Date.now();er(function(e,t){if(ye(t)){ +if(e._vts<=n.attached)return}else e._vts=Date.now();or(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) +}(e,n.value),t,5,[e])};return n.value=e,n.attached=Es(),n}(r,o);ys(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 xs=/(?:Once|Passive|Capture)$/;let Ss=0 +;const _s=Promise.resolve(),Es=()=>Ss||(_s.then((()=>Ss=0)),Ss=Date.now()) +;const Ts=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123 +;const Cs=e=>{const t=e.props["onUpdate:modelValue"]||!1 +;return ye(t)?e=>ze(t,e):t};function As(e){e.target.composing=!0}function Ps(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)) +const Ds=Symbol("_assign"),$s={ +created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Ds]=Cs(o) +;const i=r||o.props&&"number"===o.props.type;ys(e,t?"change":"input",(t=>{ +if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),i&&(r=He(r)),e[Ds](r) +})),n&&ys(e,"change",(()=>{e.value=e.value.trim() +})),t||(ys(e,"compositionstart",As),ys(e,"compositionend",Ps),ys(e,"change",Ps)) },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(e[Ds]=Cs(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)){ +;if(o&&e.value.trim()===s)return}e.value=s}}},Rs={deep:!0,created(e,t,n){ +e[Ds]=Cs(n),ys(e,"change",(()=>{ +const t=e._modelValue,n=Ls(e),r=e.checked,o=e[Ds];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-1;else if(ke(t))o=t.has(r.props.value);else{ +if(t===n)return;o=ot(t,js(e,!0))}e.checked!==o&&(e.checked=o)}const Ms={deep:!0, +created(e,{value:t,modifiers:{number:n}},r){const o=ke(t);ys(e,"change",(()=>{ +const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?He(Ls(e)):Ls(e))) +;e[Ds](e.multiple?o?new Set(t):t:t[0]),e._assigning=!0,hr((()=>{e._assigning=!1 +}))})),e[Ds]=Cs(r)},mounted(e,{value:t}){Is(e,t)},beforeUpdate(e,t,n){ +e[Ds]=Cs(n)},updated(e,{value:t}){e._assigning||Is(e,t)}};function Is(e,t){ +const n=e.multiple,r=ye(t);if(!n||r||ke(t)){ +for(let o=0,i=e.options.length;oString(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){ +}else i.selected=t.has(a);else if(ot(Ls(i),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o)) +}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Ls(e){ +return"_value"in e?e._value:e.value}function js(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(), +const Bs=["ctrl","shift","alt","meta"],Qs={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)=>{ +exact:(e,t)=>Bs.some((n=>e[`${n}Key`]&&!t.includes(n)))},Us=(e,t)=>{ const n=e._withMods||(e._withMods={}),r=t.join(".") -;return n[r]||(n[r]=(n,...r)=>{for(let e=0;e{for(let e=0;e{ +delete:"backspace"},zs=(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] +if(!("key"in n))return;const r=Be(n.key) +;return t.some((e=>e===r||Fs[e]===r))?e(n):void 0})},qs=ge({ +patchProp:(e,t,n,r,o,i)=>{const a="svg"===o;"class"===t?function(e,t,n){ +const r=e[za] ;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){ +}(e,r,a):"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)} +const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&fs(r,t,"") +}else for(const e in t)null==n[e]&&fs(r,e,"") +;for(const e in n)"display"===e&&(i=!0),fs(r,e,n[e])}else if(o){if(t!==n){ +const e=r[ls];e&&(n+=";"+e),r.cssText=n,i=ps.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), +;os in e&&(e[os]=i?r.display:"",e[is]&&(r.display="none")) +}(e,n,r):fe(t)?me(t)||ks(e,t,0,r,i):("."===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(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Ts(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=>{ +}if(Ts(t)&&_e(n))return!1;return t in e +}(e,t,r,a))?(Os(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||bs(e,t,r,a,0,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&_e(r)?("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r), +bs(e,t,r,a)):Os(e,Le(t),r,0,t)}},Qa);let Hs;function Vs(){return Hs||(Hs=Oi(qs)) +}const Zs=(...e)=>{const t=Vs().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" +;Se(o)||o.render||o.template||(o.template=r.innerHTML), +1===r.nodeType&&(r.textContent="");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((()=>{ +i},t};const Ws=Na.startsWith("3");function Xs(e,t=""){ +if(e instanceof Promise)return e;const n="function"==typeof(r=e)?r():Qn(r);var r +;return e&&n?Array.isArray(n)?n.map((e=>Xs(e,t))):"object"==typeof n?Object.fromEntries(Object.entries(n).map((([e,t])=>"titleTemplate"===e||e.startsWith("on")?[e,Qn(t)]:[e,Xs(t,e)]))):n:n +}const Gs={hooks:{"entries:resolve":function(e){ +for(const t of e.entries)t.resolvedInput=Xs(t.input)}}},Ys="usehead" +;function Ks(e={}){ +e.domDelayFn=e.domDelayFn||(e=>hr((()=>setTimeout((()=>e()),0))));const t=se(e) +;return t.use(Gs),t.install=function(e){return{install(t){ +Ws&&(t.config.globalProperties.$unhead=e, +t.config.globalProperties.$head=e,t.provide(Ys,e))}}.install}(t),t} +const Js="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},el="__unhead_injection_handler__" +;function tl(){if(el in Js)return Js[el]();const e=ti(Ys);return e||ae} +function nl(e,t={}){const n=t.head||tl() +;if(n)return n.ssr?n.push(e,t):function(e,t,n={}){const r=In(!1),o=In({}) +;Ti((()=>{o.value=r.value?{}:Xs(t)}));const i=e.push(o.value,n);Ci(o,(e=>{ +i.patch(e)}));ba()&&(po((()=>{i.dispose()})),no((()=>{r.value=!0})),to((()=>{ 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=[] +const rl=["GET","POST","PUT","HEAD","DELETE","PATCH","OPTIONS","CONNECT","TRACE"] +;function ol(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??""] @@ -1398,60 +1489,60 @@ 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({ +const{username:t,password:n}=e.http.basic,r=il(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){ +queryString:i,cookies:a}}function il(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 +function al(e){ +return[e.apiKey.token,e.http.bearer.token,e.oAuth2.accessToken,il(e.http.basic.username,e.http.basic.password),e.http.basic.password].filter(Boolean) +}const sl=(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) +;function ll(e,t){if(!ul(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) +const cl=e=>!/^https?:\/\//.test(e);function ul(e,t){ +return!(!e||!t)&&(!cl(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){ +const dl=Symbol.for("yaml.alias"),pl=Symbol.for("yaml.document"),hl=Symbol.for("yaml.map"),fl=Symbol.for("yaml.pair"),ml=Symbol.for("yaml.scalar"),gl=Symbol.for("yaml.seq"),vl=Symbol.for("yaml.node.type"),bl=e=>!!e&&"object"==typeof e&&e[vl]===dl,Ol=e=>!!e&&"object"==typeof e&&e[vl]===pl,yl=e=>!!e&&"object"==typeof e&&e[vl]===hl,wl=e=>!!e&&"object"==typeof e&&e[vl]===fl,kl=e=>!!e&&"object"==typeof e&&e[vl]===ml,xl=e=>!!e&&"object"==typeof e&&e[vl]===gl +;function Sl(e){if(e&&"object"==typeof e)switch(e[vl]){case hl:case gl:return!0} +return!1}function _l(e){if(e&&"object"==typeof e)switch(e[vl]){case dl:case hl: +case ml:case gl:return!0}return!1} +const El=e=>(kl(e)||Sl(e))&&!!e.anchor,Tl=Symbol("break visit"),Cl=Symbol("skip children"),Al=Symbol("remove node") +;function Pl(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){ +;return e}(t);if(Ol(e)){ +Dl(null,e.contents,n,Object.freeze([e]))===Al&&(e.contents=null) +}else Dl(null,e,n,Object.freeze([]))}function Dl(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" +;return"function"==typeof n?n(e,t,r):yl(t)?null==(o=n.Map)?void 0:o.call(n,e,t,r):xl(t)?null==(i=n.Seq)?void 0:i.call(n,e,t,r):wl(t)?null==(a=n.Pair)?void 0:a.call(n,e,t,r):kl(t)?null==(s=n.Scalar)?void 0:s.call(n,e,t,r):bl(t)?null==(l=n.Alias)?void 0:l.call(n,e,t,r):void 0 +}(e,t,n,r);if(_l(o)||wl(o))return function(e,t,n){const r=t[t.length-1] +;if(Sl(r))r.items[e]=n;else if(wl(r))"key"===e?r.key=n:r.value=n;else{ +if(!Ol(r)){const e=bl(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)){ +}(e,r,o),Dl(e,o,n,r);if("symbol"!=typeof o)if(Sl(t)){ r=Object.freeze(r.concat(t));for(let e=0;ekl[e])) +for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+e.substring(n.length).replace(/[!,[\]{}]/g,(e=>$l[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=[] +;let r;if(e&&n.length>0&&_l(e.contents)){const t={};Pl(e.contents,((e,n)=>{ +_l(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)){ +;return t.join("\n")}}function Nl(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){ +}return!0}function Ml(e){const t=new Set;return Pl(e,{Value(e,n){ +n.anchor&&t.add(n.anchor)}}),t}function Il(e,t){for(let n=1;;++n){ +const r=`${e}${n}`;if(!t.has(r))return r}}function Ll(e,t,n,r){ if(r&&"object"==typeof r)if(Array.isArray(r))for(let o=0,i=r.length;oAl(e,String(t),n))) -;if(e&&"function"==typeof e.toJSON){if(!n||!vl(e))return e.toJSON(t,n);const r={ +}else for(const[o,i]of Object.entries(r)){const t=Ll(e,r,o,i) +;void 0===t?delete r[o]:t!==i&&(r[o]=t)}return e.call(t,n,r)}function jl(e,t,n){ +if(Array.isArray(e))return e.map(((e,t)=>jl(e,String(t),n))) +;if(e&&"function"==typeof e.toJSON){if(!n||!El(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(){ +return"bigint"!=typeof e||(null==n?void 0:n.keep)?e:Number(e)}Rl.defaultYaml={ +explicit:!1,version:"1.2"},Rl.defaultTags={"!!":"tag:yaml.org,2002:"};class Bl{ +constructor(e){Object.defineProperty(this,vl,{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={ +if(!Ol(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) +maxAliasCount:"number"==typeof n?n:100},a=jl(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(){ +;return"function"==typeof o?Ll(o,{"":a},"",a):a}}let Ql=class extends Bl{ +constructor(e){super(dl),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 +;return Pl(e,{Node:(e,n)=>{if(n===this)return Pl.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){ +;if(a||(jl(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)){ +if(o>=0&&(a.count+=1,0===a.aliasCount&&(a.aliasCount=Ul(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)){ +if(Nl(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(){ +;function Ul(e,t,n){if(bl(t)){const r=t.resolve(e),o=n&&r&&n.get(r) +;return o?o.count*o.aliasCount:0}if(Sl(t)){let r=0;for(const o of t.items){ +const t=Ul(e,o,n);t>r&&(r=t)}return r}if(wl(t)){ +const r=Ul(e,t.key,n),o=Ul(e,t.value,n);return Math.max(r,o)}return 1} +const Fl=e=>!e||"function"!=typeof e&&"object"!=typeof e;class zl extends Bl{ +constructor(e){super(ml),this.value=e}toJSON(e,t){ +return(null==t?void 0:t.keep)?this.value:jl(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) +zl.BLOCK_FOLDED="BLOCK_FOLDED",zl.BLOCK_LITERAL="BLOCK_LITERAL", +zl.PLAIN="PLAIN",zl.QUOTE_DOUBLE="QUOTE_DOUBLE",zl.QUOTE_SINGLE="QUOTE_SINGLE" +;const ql="tag:yaml.org,2002:";function Hl(e,t,n){var r,o,i +;if(Ol(e)&&(e=e.contents),_l(e))return e;if(wl(e)){ +const t=null==(o=(r=n.schema[hl]).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={ +if(d=u.get(e),d)return d.anchor||(d.anchor=s(e)),new Ql(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){ +(null==t?void 0:t.startsWith("!!"))&&(t=ql+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]} +const t=new zl(e);return d&&(d.node=t),t} +p=e instanceof Map?c[hl]:Symbol.iterator in Object(e)?c[gl]:c[hl]} 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){ +;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 zl(e) +;return t?h.tag=t:p.default||(h.tag=p.tag),d&&(d.node=h),h}function Vl(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, +}else r=new Map([[e,r]])}return Hl(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){ +const Zl=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done +;class Wl extends Bl{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{ +t.items=t.items.map((t=>_l(t)||wl(t)?t.clone(e):t)),this.range&&(t.range=this.range.slice()), +t}addIn(e,t){if(Zl(e))this.add(t);else{const[n,...r]=e,o=this.get(n,!0) +;if(Sl(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 +;this.set(n,Vl(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) +;if(Sl(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 +;return 0===r.length?!t&&kl(o)?o.value:o:Sl(o)?o.getIn(r,t):void 0} +hasAllNullValues(e){return this.items.every((t=>{if(!wl(t))return!1 ;const n=t.value -;return null==n||e&&hl(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag +;return null==n||e&&kl(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 +;const r=this.get(t,!0);return!!Sl(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(Sl(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){ +;this.set(n,Vl(this.schema,r,t))}}}}Wl.maxFlowStringSingleLineLength=60 +;const Xl=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Gl(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}={}){ +const Yl=(e,t,n)=>e.endsWith("\n")?Gl(n,t):n.includes("\n")?"\n"+Gl(n,t):(e.endsWith(" ")?"":" ")+n,Kl="flow",Jl="block",ec="quoted" +;function tc(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 +;n===Jl&&(m=nc(e,m,t.length),-1!==m&&(h=m+l));for(let O;O=e[m+=1];){ +if(n===ec&&"\\"===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("\n"===O)n===Jl&&(m=nc(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){ +if(m>=h)if(d)c.push(d),h=d+l,d=void 0;else if(n===ec){ 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({ +;r=t,o=t+1,i=e[o]}return r}const rc=(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) +minContentWidth:e.options.minContentWidth}),oc=e=>/^(%|---|\.\.\.)/m.test(e) +;function ic(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)?" ":"") +;const{implicitKey:r}=t,o=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(oc(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) @@ -1618,17 +1709,17 @@ l+=1,s=l,c="\\"),"\\"===c)switch(n[l+1]){case"u":{a+=n.slice(s,l) l+=5,s=l+1}break;case"n":if(r||'"'===n[l+2]||n.lengthr)return!0 ;if(a=i+1,o-a<=r)return!1}return!0}(n,l,c.length));if(!n)return u?"|\n":">\n" @@ -1636,35 +1727,35 @@ if(!t||t<0)return!1;const r=t-n,o=e.length;if(o<=r)return!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}`)) +"\n"===h[h.length-1]&&(h=h.slice(0,-1)),h=h.replace(lc,`$&${c}`)) ;let m,g=!1,v=-1;for(m=0;m")+(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){ +;return`${O}\n${c}${tc(`${b}${n=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`)}${h}`,c,Jl,rc(r,!0))}` +}function uc(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: +;s!==zl.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(s=zl.QUOTE_DOUBLE) +;const l=e=>{switch(e){case zl.BLOCK_FOLDED:case zl.BLOCK_LITERAL: +return o||i?sc(a.value,t):cc(a,t,n,r);case zl.QUOTE_DOUBLE:return ic(a.value,t) +;case zl.QUOTE_SINGLE:return ac(a.value,t);case zl.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)} +;if(s&&i.includes("\n")||u&&/[[\]{},]/.test(i))return sc(i,t) +;if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return s||u||!i.includes("\n")?sc(i,t):cc(e,t,n,r) +;if(!s&&!u&&o!==zl.PLAIN&&i.includes("\n"))return cc(e,t,n,r);if(oc(i)){ +if(""===l)return t.forceBlockIndent=!0,cc(e,t,n,r);if(s&&l===c)return sc(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(r.some(e)||(null==n?void 0:n.some(e)))return sc(i,t)} +return s?d:tc(d,l,Kl,rc(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, +return c}function dc(e,t){const n=Object.assign({blockQuote:!0,commentString:Xl, defaultKeyType:null,defaultStringType:"PLAIN",directives:null, doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false", flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20, @@ -1673,13 +1764,13 @@ nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0 ;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) +options:n}}function pc(e,t,n,r){var o;if(wl(e))return e.toString(t,n,r) +;if(bl(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}) +e=e.resolve(t.doc)}let i;const a=_l(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)){ +;if(n.length>0)return n.find((e=>e.format===t.format))??n[0]}let r,o;if(kl(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)) @@ -1687,210 +1778,210 @@ o=t.value;const n=e.filter((e=>{var t 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 +if(!r.directives)return"";const o=[],i=(kl(e)||Sl(e))&&e.anchor +;i&&Nl(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){ +;const l="function"==typeof i.stringify?i.stringify(a,t,n,r):kl(a)?uc(a,t,n,r):a.toString(t,n,r) +;return s?kl(a)||"{"===l[0]||"["===l[0]?`${s} ${l}`:`${s}\n${t.indent}${l}`:l} +function hc(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{ +}function fc(e,t,{key:n,value:r}){ +if((null==e?void 0:e.doc.schema.merge)&&mc(n))if(r=bl(r)?r.resolve(e.doc):r, +xl(r))for(const o of r.items)gc(e,t,o);else if(Array.isArray(r))for(const o of r)gc(e,t,o);else gc(e,t,r);else{ +const o=jl(n,"",e) +;if(t instanceof Map)t.set(o,jl(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 +;if("object"!=typeof t)return String(t);if(_l(e)&&(null==n?void 0:n.doc)){ +const t=dc(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) +;e.length>40&&(e=e.substring(0,36)+'..."'),hc(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=jl(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 mc=e=>"<<"===e||kl(e)&&"<<"===e.value&&(!e.type||e.type===zl.PLAIN) +;function gc(e,t,n){const r=e&&bl(n)?n.resolve(e.doc):n +;if(!yl(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 +value:a,writable:!0,enumerable:!0,configurable:!0});return t}function vc(e,t,n){ +const r=Hl(e,void 0,n),o=Hl(t,void 0,n);return new bc(r,o)}class bc{ +constructor(e,t=null){Object.defineProperty(this,vl,{value:fl }),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 _l(t)&&(t=t.clone(e)),_l(n)&&(n=n.clone(e)),new bc(t,n)}toJSON(e,t){ +return fc(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){ +;let p=_l(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") +;if(Sl(e)||!_l(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)) +let h=!d&&(!e||p&&null==t&&!n.inFlow||Sl(e)||(kl(e)?e.type===zl.BLOCK_FOLDED||e.type===zl.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)) +;let f,m,g,v=!1,b=!1,O=pc(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, +p&&!v?O+=Yl(O,n.indent,c(p)):b&&o&&o(),O +;v&&(p=null),h?(p&&(O+=Yl(O,n.indent,c(p))), +O=`? ${O}\n${s}:`):(O=`${O}:`,p&&(O+=Yl(O,n.indent,c(p)))), +_l(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)){ +h||p||!kl(t)||(n.indentAtStart=O.length+1),b=!1,u||!(l.length>=2)||n.inFlow||h||!xl(t)||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2)) +;let y=!1;const w=pc(t,n,(()=>y=!0),(()=>b=!0));let k=" " +;if(p||f||m)k=f?"\n":"", +m&&(k+=`\n${Gl(c(m),n.indent)}`),""!==w||n.inFlow?k+=`\n${n.indent}`:"\n"===k&&(k="\n\n");else if(!h&&Sl(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&&no=null),(()=>d=!0)) -;o&&(a+=Fl(a,i,c(o))),d&&o&&(d=!1),p.push(r+a)}let h +;if(_l(e))!d&&e.spaceBefore&&p.push(""),kc(n,p,e.commentBefore,d),e.comment&&(o=e.comment);else if(wl(e)){ +const t=_l(e.key)?e.key:null +;t&&(!d&&t.spaceBefore&&p.push(""),kc(n,p,t.commentBefore,d))}d=!1 +;let a=pc(e,u,(()=>o=null),(()=>d=!0)) +;o&&(a+=Yl(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;eo=null)) -;fo=null)) +;fu||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){ +function kc({indent:e,options:{commentString:t}},n,r,o){ +if(r&&o&&(r=r.replace(/^\n+/,"")),r){const o=Gl(t(r),e);n.push(o.trimStart())}} +function xc(e,t){const n=kl(t)?t.value:t;for(const r of e)if(wl(r)){ +if(r.key===t||r.key===n)return r;if(kl(r.key)&&r.key.value===n)return r}} +class Sc extends Wl{static get tagName(){return"tag:yaml.org,2002:map"} +constructor(e){super(hl,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))} +;(void 0!==a||r)&&i.items.push(vc(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 +;r=wl(e)?e:e&&"object"==typeof e&&"key"in e?new bc(e.key,e.value):new bc(e,null==e?void 0:e.value) +;const o=xc(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){ +;kl(o.value)&&Fl(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 +delete(e){const t=xc(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 n=xc(this.items,e),r=null==n?void 0:n.value +;return(!t&&kl(r)?r.value:r)??void 0}has(e){return!!xc(this.items,e)}set(e,t){ +this.add(new bc(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) +;(null==t?void 0:t.onCreate)&&t.onCreate(r);for(const o of this.items)fc(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`) +;for(const r of this.items)if(!wl(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(yl(e)||t("Expected a mapping for this tag"),e), +createNode:(e,t,n)=>Sc.from(e,t,n)};class Ec extends Wl{static get tagName(){ +return"tag:yaml.org,2002:seq"}constructor(e){super(gl,e),this.items=[]}add(e){ +this.items.push(e)}delete(e){const t=Tc(e);if("number"!=typeof t)return!1 +;return this.items.splice(t,1).length>0}get(e,t){const n=Tc(e) +;if("number"!=typeof n)return;const r=this.items[n];return!t&&kl(r)?r.value:r} +has(e){const t=Tc(e);return"number"==typeof 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, +"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}const Cc={collection:"seq", +default:!0,nodeClass:Ec,tag:"tag:yaml.org,2002:seq", +resolve:(e,t)=>(xl(e)||t("Expected a sequence for this tag"),e), +createNode:(e,t,n)=>Ec.from(e,t,n)},Ac={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, +stringify:(e,t,n,r)=>uc(e,t=Object.assign({actualString:!0},t),n,r)},Pc={ +identify:e=>null==e,createNode:()=>new zl(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", +resolve:()=>new zl(null), +stringify:({source:e},t)=>"string"==typeof e&&Pc.test.test(e)?e:t.options.nullStr +},Dc={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} +resolve:e=>new zl("t"===e[0]||"T"===e[0]),stringify({source:e,value:t},n){ +if(e&&Dc.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}){ +;function $c({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, +;for(;n-- >0;)i+="0"}return i}const Rc={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, +stringify:$c},Nc={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={ +;return isFinite(t)?t.toExponential():$c(e)}},Mc={ 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(".") +const t=new zl(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, +stringify:$c +},Ic=e=>"bigint"==typeof e||Number.isInteger(e),Lc=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n) +;function jc(e,t,n){const{value:r}=e;return Ic(r)&&r>=0?n+r.toString(t):$c(e)} +const Bc={identify:e=>Ic(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int", +format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Lc(e,2,8,n), +stringify:e=>jc(e,8,"0o")},Qc={identify:Ic,default:!0, +tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Lc(e,0,10,n), +stringify:$c},Uc={identify:e=>Ic(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){ +resolve:(e,t,n)=>Lc(e,2,16,n),stringify:e=>jc(e,16,"0x") +},Fc=[_c,Cc,Ac,Pc,Dc,Bc,Qc,Uc,Rc,Nc,Mc];function zc(e){ return"bigint"==typeof e||Number.isInteger(e)} -const Ic=({value:e})=>JSON.stringify(e),Mc=[gc,Oc].concat([{ +const qc=({value:e})=>JSON.stringify(e),Hc=[_c,Cc].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), +resolve:e=>e,stringify:qc},{identify:e=>null==e,createNode:()=>new zl(null), default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null, -stringify:Ic},{identify:e=>"boolean"==typeof e,default:!0, +stringify:qc},{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", +stringify:qc},{identify:zc,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)},{ +stringify:({value:e})=>zc(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={ +resolve:e=>parseFloat(e),stringify:qc}],{default:!0,tag:"",test:/^/, +resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),Vc={ 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){ @@ -1901,207 +1992,207 @@ 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;t1&&t("Each pair must have its own sequence indicator") -;const e=r.items[0]||new cc(new Nl(null)) +;const e=r.items[0]||new bc(new zl(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) +e.items[n]=wl(r)?r:new bc(r)}}else t("Expected a sequence for this tag") +;return e}function Wc(e,t,n){const{replacer:r}=n,o=new Ec(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){ +;e=t[0],s=a[e]}else e=a;o.items.push(vc(e,s,n))}return o}const Xc={ +collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Zc, +createNode:Wc};class Gc extends Ec{constructor(){ +super(),this.add=Sc.prototype.add.bind(this), +this.delete=Sc.prototype.delete.bind(this),this.get=Sc.prototype.get.bind(this), +this.has=Sc.prototype.has.bind(this), +this.set=Sc.prototype.set.bind(this),this.tag=Gc.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, +;if(wl(r)?(e=jl(r.key,"",t), +o=jl(r.value,e,t)):e=jl(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=Wc(e,t,n),o=new this +;return o.items=r.items,o}}Gc.tag="tag:yaml.org,2002:omap";const Yc={ +collection:"seq",identify:e=>e instanceof Map,nodeClass:Gc,default:!1, +tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Zc(e,t),r=[] +;for(const{key:o}of n.items)kl(o)&&(r.includes(o.value)?t(`Ordered maps must not include duplicate keys: ${o.value}`):r.push(o.value)) +;return Object.assign(new Gc,n)},createNode:(e,t,n)=>Gc.from(e,t,n)} +;function Kc({value:e,source:t},n){ +return t&&(e?Jc:eu).test.test(t)?t:e?n.options.trueStr:n.options.falseStr} +const Jc={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 zl(!0), +stringify:Kc},eu={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 zl(!1), +stringify:Kc},tu={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, +stringify:$c},nu={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={ +;return isFinite(t)?t.toExponential():$c(e)}},ru={ 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 t=new zl(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] +;"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:$c +},ou=e=>"bigint"==typeof e||Number.isInteger(e) +;function iu(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){ +;return"-"===o?-1*i:i}function au(e,t,n){const{value:r}=e;if(ou(r)){ +const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return $c(e)}const su={ +identify:ou,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN", +test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>iu(e,2,2,n),stringify:e=>au(e,2,"0b") +},lu={identify:ou,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT", +test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>iu(e,1,8,n),stringify:e=>au(e,8,"0") +},cu={identify:ou,default:!0,tag:"tag:yaml.org,2002:int", +test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>iu(e,0,10,n),stringify:$c},uu={ +identify:ou,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX", +test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>iu(e,2,16,n), +stringify:e=>au(e,16,"0x")};class du extends Sc{constructor(e){ +super(e),this.tag=du.tag}add(e){let t +;t=wl(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new bc(e.key,null):new bc(e,null) +;xc(this.items,t.key)||this.items.push(t)}get(e,t){const n=xc(this.items,e) +;return!t&&wl(n)?kl(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)) +;const n=xc(this.items,e) +;n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new bc(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) +o.items.push(vc(i,null,n));return o}}du.tag="tag:yaml.org,2002:set";const pu={ +collection:"map",identify:e=>e instanceof Set,nodeClass:du,default:!1, +tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>du.from(e,t,n),resolve(e,t){ +if(yl(e)){if(e.hasAllNullValues(!0))return Object.assign(new du,e) ;t("Set items must all have null values") -}else t("Expected a mapping for this tag");return e}};function ou(e,t){ +}else t("Expected a mapping for this tag");return e}};function hu(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) +;return"-"===n?o(-1)*i:i}function fu(e){let{value:t}=e,n=e=>e +;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return $c(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, +const mu={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={ +resolve:(e,t,{intAsBigInt:n})=>hu(e,n),stringify:fu},gu={ 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, +resolve:e=>hu(e,!1),stringify:fu},vu={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) +resolve(e){const t=e.match(vu.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)}, +let e=hu(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){ +},bu=[_c,Cc,Ac,Pc,Jc,eu,su,lu,cu,uu,tu,nu,ru,Vc,Yc,Xc,pu,mu,gu,vu],Ou=new Map([["core",Fc],["failsafe",[_c,Cc,Ac]],["json",Hc],["yaml11",bu],["yaml-1.1",bu]]),yu={ +binary:Vc,bool:Dc,float:Mc,floatExp:Nc,floatNaN:Rc,floatTime:gu,int:Qc, +intHex:Uc,intOct:Bc,intTime:mu,map:_c,null:Pc,omap:Yc,pairs:Xc,seq:Cc,set:pu, +timestamp:vu},wu={"tag:yaml.org,2002:binary":Vc,"tag:yaml.org,2002:omap":Yc, +"tag:yaml.org,2002:pairs":Xc,"tag:yaml.org,2002:set":pu, +"tag:yaml.org,2002:timestamp":vu};function ku(e,t){let n=Ou.get(t);if(!n){ if(!Array.isArray(e)){ -const e=Array.from(uu.keys()).filter((e=>"yaml11"!==e)).map((e=>JSON.stringify(e))).join(", ") +const e=Array.from(Ou.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(", ") +;return n.map((e=>{if("string"!=typeof e)return e;const t=yu[e];if(t)return t +;const n=Object.keys(yu).map((e=>JSON.stringify(e))).join(", ") ;throw new Error(`Unknown custom tag "${e}"; use one of ${n}`)}))} -const fu=(e,t)=>e.keyt.key?1:0;let mu=class e{ +const xu=(e,t)=>e.keyt.key?1:0;let Su=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.compat=Array.isArray(e)?ku(e,"compat"):e?ku(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(){ +this.knownTags=r?wu:{},this.tags=ku(t,this.name), +this.toStringOptions=a??null,Object.defineProperty(this,hl,{value:_c +}),Object.defineProperty(this,ml,{value:Ac}),Object.defineProperty(this,gl,{ +value:Cc}),this.sortMapEntries="function"==typeof i?i:!0===i?xu:null}clone(){ const t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this)) -;return t.tags=this.tags.slice(),t}};class gu{constructor(e,t,n){ +;return t.tags=this.tags.slice(),t}};class _u{constructor(e,t,n){ this.commentBefore=null, -this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,ll,{ -value:rl});let r=null +this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,vl,{ +value:pl});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({ +this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new Rl({ 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}}) +clone(){const e=Object.create(_u.prototype,{[vl]:{value:pl}}) ;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, +e.contents=_l(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)} +Eu(this.contents)&&this.contents.add(e)}addIn(e,t){ +Eu(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){ +const n=Ml(this);e.anchor=!t||n.has(t)?Il(t||"a",n):t}return new Ql(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 n=[],r=new Map;let o=null;return{onAnchor:r=>{n.push(r),o||(o=Ml(e)) +;const i=Il(t,o);return o.add(i),i},setAnchors:()=>{for(const e of n){ +const t=r.get(e);if("object"!=typeof t||!t.anchor||!kl(t.node)&&!Sl(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, +}(this,i||"a"),h=Hl(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)} +;return a&&Sl(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 bc(r,o) +}delete(e){return!!Eu(this.contents)&&this.contents.delete(e)}deleteIn(e){ +return Zl(e)?null!=this.contents&&(this.contents=null, +!0):!!Eu(this.contents)&&this.contents.deleteIn(e)}get(e,t){ +return Sl(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){ +return Zl(e)?!t&&kl(this.contents)?this.contents.value:this.contents:Sl(this.contents)?this.contents.getIn(e,t):void 0 +}has(e){return!!Sl(this.contents)&&this.contents.has(e)}hasIn(e){ +return Zl(e)?void 0!==this.contents:!!Sl(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) +null==this.contents?this.contents=Vl(this.schema,[e],t):Eu(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) +Zl(e)?this.contents=t:null==this.contents?this.contents=Vl(this.schema,Array.from(e),t):Eu(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({ +this.directives?this.directives.yaml.version="1.1":this.directives=new Rl({ 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 +this.directives?this.directives.yaml.version=e:this.directives=new Rl({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))}} +;this.schema=new Su(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) +maxAliasCount:"number"==typeof r?r:100},s=jl(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({ +;return"function"==typeof i?Ll(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)){ @@ -2110,26 +2201,26 @@ const t=JSON.stringify(e.indent) 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)){ +;const i=dc(e,t),{commentString:a}=i.options;if(e.commentBefore){ +1!==r.length&&r.unshift("");const t=a(e.commentBefore);r.unshift(Gl(t,""))} +let s=!1,l=null;if(e.contents){if(_l(e.contents)){ if(e.contents.spaceBefore&&o&&r.push(""),e.contents.commentBefore){ -const t=a(e.contents.commentBefore);r.push(Ul(t,""))} +const t=a(e.contents.commentBefore);r.push(Gl(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)) +;let n=pc(e.contents,i,(()=>l=null),t) +;l&&(n+=Yl(n,"",a(l))),"|"!==n[0]&&">"!==n[0]||"---"!==r[r.length-1]?r.push(n):r[r.length-1]=`--- ${n}` +}else r.push(pc(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}`) +;t.includes("\n")?(r.push("..."),r.push(Gl(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 +r.push(Gl(a(t),"")))}return r.join("\n")+"\n"}(this,e)}}function Eu(e){ +if(Sl(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=>{ +class Tu extends Error{constructor(e,t,n,r){ +super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class Cu extends Tu{ +constructor(e,t,n){super("YAMLParseError",e,t,n)}}class Au extends Tu{ +constructor(e,t,n){super("YAMLWarning",e,t,n)}}const Pu=(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]+$/,"") @@ -2141,7 +2232,7 @@ let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-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}){ +;function Du(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), @@ -2162,25 +2253,25 @@ 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 +const k=e[e.length-1],x=k?k.offset+k.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 +anchor:v,tag:b,end:x,start:w??x}}function $u(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)){ +;if($u(t.key)||$u(t.value))return!0}return!1;default:return!0}} +function Ru(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)&&$u(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) +function Nu(e,t,n){const{uniqueKeys:r}=e.options;if(!1===r)return!1 +;const o="function"==typeof r?r:(t,n)=>t===n||kl(t)&&kl(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){ +const Mu="All mapping items must start at the same column";function Iu(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") @@ -2188,67 +2279,67 @@ n&&!i&&r(s,"MISSING_CHAR","Comments must be separated from other tokens by white 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 Lu="Block collections are not allowed within flow collections",ju=e=>e&&("block-map"===e.type||"block-seq"===e.type) +;function Bu(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) +var a;const s=new((null==i?void 0:i.nodeClass)??Sc)(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", +const{start:i,key:d,sep:p,value:h}=u,f=Du(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)), +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",Mu)), !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) +(f.hasNewlineAfterProp||$u(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",Mu) ;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, +;n.schema.compat&&Ru(r.indent,d,o), +Nu(n,s.items,v)&&o(g,"DUPLICATE_KEY","Map keys must be unique") +;const b=Du(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.start0){ -const e=Tu(h,f,n.options.strict,o) +const e=Iu(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){ +function Qu(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=0;--m){const e=a[m][1] @@ -2311,30 +2402,30 @@ for(let m=a.length-1;m>=s;--m)a[m][0].length>l&&(s=m+1);let d="",p="",h=!1 ;if(r&&(t=t.slice(0,-1)),t&&e.lengthl||"\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;en(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" +s=zl.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){ +n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`);return Fu(e) +}(i,c);break;case"single-quoted-scalar":s=zl.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="" +;return Fu(e.slice(1,-1)).replace(/''/g,"'")}(i,c);break +;case"double-quoted-scalar":s=zl.QUOTE_DOUBLE,l=function(e,t){let n="" ;for(let r=1;rr(n,"TAG_RESOLVE_FAILED",e))):null,c=n&&l?function(e,t,n,r,o){ -var i;if("!"===n)return e[al];const a=[] +return String.fromCodePoint(i)}function Vu(e,t,n,r){ +const{value:o,type:i,comment:a,range:s}="block-scalar"===t.type?Qu(e,t,r):Uu(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[ml];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 @@ -2370,119 +2461,119 @@ for(const l of a)if(null==(i=l.test)?void 0:i.test(t))return l ;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[ml] }(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){ +;return e.default&&(null==(t=e.test)?void 0:t.test(n))}))||t[ml];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] +;return e.default&&(null==(t=e.test)?void 0:t.test(n))}))??t[ml] ;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{ +}}return i}(e,o,t,r):e.schema[ml];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)} +;u=kl(i)?i:new zl(i)}catch(d){const e=d instanceof Error?d.message:String(d) +;r(n??t,"TAG_RESOLVE_FAILED",e),u=new zl(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){ +function Zu(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 +;break}}return e}const Wu={composeNode:Xu,composeEmptyNode:Gu} +;function Xu(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)) +const i=new Ql(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) +;const a=t+n.length,s=Iu(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-scalar":l=Vu(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) +;if(!r||!a||"!"===a||a===Sc.tagName&&"map"===s||a===Ec.tagName&&"seq"===s||!s)return Bu(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) +Bu(e,t,n,o,a);t.schema.tags.push(Object.assign({},i,{default:!1})),l=i} +const c=Bu(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=_l(u)?u:new zl(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: +}(Wu,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} +l=Gu(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) +function Gu(e,t,n,r,{spaceBefore:o,comment:i,anchor:a,tag:s,end:l},c){ +const u=Vu(e,{type:"scalar",offset:Zu(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){ +o&&(u.spaceBefore=!0),i&&(u.comment=i,u.range[2]=l),u}function Yu(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{ -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=Yu(e) +;r?this.warnings.push(new Au(o,t,n)):this.errors.push(new Cu(o,t,n)) +},this.directives=new Rl({version:e.version||"1.2"}),this.options=e} +decorate(e,t){const{comment:n,afterEmptyLine:r}=Ku(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 +;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!o)e.commentBefore=n;else if(Sl(o)&&!o.flow&&o.items.length>0){ +let e=o.items[0];wl(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, +streamInfo(){return{comment:Ku(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) +case"directive":this.directives.add(e.source,((t,n,r)=>{const o=Yu(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", +_directives:t},e),l=new _u(void 0,s),c={atRoot:!0,directives:l.directives, +options:l.options,schema:l.schema},u=Du(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) +l.contents=o?Xu(c,o,u,a):Gu(c,u.end,r,null,u,a) +;const d=l.contents.range[2],p=Iu(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) +const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Cu(Yu(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.errors.push(new Cu(Yu(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) +;const t=Iu(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}`)) +this.errors.push(new Cu(Yu(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.options),n=new _u(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){ +n.range=[0,t,t],this.decorate(n,!1),yield n}}}function ed(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(){ +const td=new Set("0123456789ABCDEFabcdef"),nd=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),rd=new Set(",[]{}"),od=new Set(" ,[]{}\n\r\t"),id=e=>!e||od.has(e) +;class ad{constructor(){ this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1, this.buffer="",this.flowKey=!1, this.flowLevel=0,this.indentNext=0,this.indentValue=0, @@ -2498,7 +2589,7 @@ return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e] 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(){ +;if(("---"===t||"..."===t)&&ed(this.buffer[e+3]))return-1}return e}getLine(){ let e=this.lineEndPos ;return("number"!=typeof e||-1!==e&&ethis.indentValue&&!Hu(this.charAt(1))&&(this.indentNext=this.indentValue), +this.indentNext>this.indentValue&&!ed(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)){ +;if(("-"===e||"?"===e||":"===e)&&ed(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(){ @@ -2546,7 +2637,7 @@ yield*this.pushSpaces(!0);const e=this.getLine() 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.pushUntil(id),"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), @@ -2556,7 +2647,7 @@ 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"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break -}return yield*this.pushUntil((e=>Hu(e)||"#"===e))}*parseBlockScalar(){ +}return yield*this.pushUntil((e=>ed(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} @@ -2602,11 +2693,11 @@ for(;"\t"===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++r];t=r-1 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(ed(t)||e&&rd.has(t))break;n=r}else if(ed(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){ +t="\n",o=this.buffer[r+1]):n=r),"#"===o||e&&rd.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} +if(e&&rd.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} @@ -2615,15 +2706,15 @@ return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):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()) +return(yield*this.pushUntil(id))+(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, +;if(ed(t)||e&&rd.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] +;for(;!ed(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 +let e=this.pos+1,t=this.buffer[e];for(;t;)if(nd.has(t))t=this.buffer[++e];else{ +if("%"!==t||!td.has(this.buffer[e+1])||!td.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 @@ -2631,31 +2722,31 @@ const e=this.buffer[this.pos] }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=[], +;return yield*this.pushToIndex(t,!1)}}class sd{constructor(){this.lineStarts=[], this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{ let t=0,n=this.lineStarts.length;for(;t>1 ;this.lineStarts[r]=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), +function hd(e){ +if("flow-seq-start"===e.start.type)for(const t of e.items)!t.sep||t.value||ld(t.start,"explicit-key-ind")||ld(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){ +ud(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 fd=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} +this.stack=[],this.source="",this.type="",this.lexer=new ad,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){ @@ -2698,7 +2789,7 @@ 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 +"flow-collection"===t.type&&hd(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, @@ -2710,7 +2801,7 @@ const n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t 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.indent0&&-1===cd(n.start)&&(0===t.indent||n.start.every((e=>"comment"!==e.type||e.indent0?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({ +}else o.length>0?n.sep=n.sep.concat(o,this.sourceToken):n.sep.push(this.sourceToken);else if(ld(n.start,"newline"))Object.assign(n,{ +key:null,sep:[this.sourceToken]});else{const e=pd(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({ +sep:[this.sourceToken]}):ld(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] @@ -2802,7 +2893,7 @@ 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({ +;return void(n.value||ld(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()} @@ -2826,7 +2917,7 @@ return void e.end.push(this.sourceToken)}const n=this.startBlockValue(e) 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) +const n=pd(dd(t));hd(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)} @@ -2842,9 +2933,9 @@ 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", +;const t=pd(dd(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{ +case"map-value-ind":{this.onKeyLine=!0;const t=pd(dd(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))) @@ -2855,38 +2946,40 @@ 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={}){ +"newline"===this.type&&(yield*this.pop())}}};function md(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 +;return{lineCounter:e.lineCounter||t&&new sd||null,prettyErrors:t} +}(t),o=new fd(null==n?void 0:n.addNewLine),i=new Ju(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()")) +a.errors.push(new Cu(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) +;return r&&n&&(a.errors.forEach(Pu(e,n)),a.warnings.forEach(Pu(e,n))),a} +const gd={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 +parseSafe(e,t){try{return gd.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", +},vd=e=>"string"==typeof e&&!!gd.parseSafe(e,!1);function bd(e){const t=e.trim() +;if("{"!==t[0]&&"["!==t[0])return e;try{ +return JSON.stringify(JSON.parse(e),null,2)}catch{return e}} +const Od="https://api.scalar.com/request-proxy",yd="https://proxy.scalar.com" +;async function wd(e,t){t===Od&&(t=yd);const n=await fetch(t?ll(t,e):e) +;if(200!==n.status)throw 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`), +new Error(`Failed to fetch the specification (Status: ${n.status})`) +;return bd(await n.text())}const kd={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"} +},xd=["post","put","patch","delete"],Sd=e=>xd.includes(e),_d=e=>{ +const t=e.trim().toLowerCase();return kd[t]??{short:t,color:"text-c-2", +backgroundColor:"bg-c-2"}},Ed={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:{ @@ -3008,64 +3101,64 @@ 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 +},Td=(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 Td(o,t,n) +},Cd="collection",Ad="cookie",Pd="environment",Dd="request",$d="requestExample",Rd="securityScheme",Nd="server",Md="tag",Id="workspace" +;function Ld(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){ +}(e);void 0!==n&&(t[n]=t[e],e!==n&&delete t[e])})),t}function jd(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 +})),Object.assign(e,t),e}const Bd=e=>{ +if("string"==typeof e)return vd(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){ +return n}),2)}(e)}return(null==e?void 0:e.toString())??""};function Qd(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) +function Ud(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.log("Received: ",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("(?e[0].toUpperCase()+e.slice(1) +;const qd=/{{((?:[^{}]|{[^{}]*})*)}}/g,Hd=new RegExp("(?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, +}const Wd="get",Xd=e=>{ +if("string"!=typeof e)return console.warn(`Request method is not a string. Using ${Wd} as the default.`), +Wd;const t=e.trim().toUpperCase() +;return n=t,rl.includes(n)?t:(console.warn(`${e} is not a valid request method. Using ${Wd} as the default.`), +Wd);var n};const Gd=xn({showApiClient:!1,activeApiClientEndpointId:"", +activeItem:{},snippetType:"javascript"});function Yd(e,t=!1){ +Gd.showApiClient=!!t||!Gd.showApiClient,e&&(Gd.activeItem=e)}function Kd(){ +Gd.showApiClient=!1}function Jd(e){Gd.activeApiClientEndpointId=e} +function ep(e){Gd.snippetType=e}const tp=()=>({state:_n(Gd),toggleApiClient:Yd, +setActiveApiClientEndpointId:Jd,setSnippetType:ep,hideApiClient:Kd +}),np=xn(Fd["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 +accessToken:"",state:""}}),rp=e=>Object.assign(np,e),op=()=>({authentication:np, +setAuthentication:rp}),ip=xn({operation:{},globalSecurity:[]}),ap=e=>{ +Object.assign(ip,{...ip,operation:e})},sp=e=>{Object.assign(ip,{...ip, +globalSecurity:e})},lp=()=>({openApi:ip,setOperation:ap,setGlobalSecurity:sp +}),cp=xn({}),up=In([]),dp=In(""),pp=xn({name:"",url:"",type:"GET",path:"", +variables:[],headers:[],query:[],body:"",formData:[]}),hp=e=>{ +cp[e.responseId]=e,dp.value=e.responseId,up.value.unshift(e.responseId)},fp=e=>{ +var t;dp.value=e +;const n=null==(t=cp[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(pp,r) +},mp=$a((()=>{var e +;return dp.value?null==(e=cp[dp.value??""])?void 0:e.response:null})),gp=e=>{ +Object.assign(pp,e)},vp=()=>{dp.value=""},bp=In(!0);function Op(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=[{ @@ -3076,142 +3169,149 @@ url:(null==t?void 0:t.defaultServerUrl)?null==t?void 0:t.defaultServerUrl:"undef ;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), +;return e.url=sl((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){ +function yp(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:{ +yp(r,t[n])):void 0!==r&&(t[n]=r);return t}function wp(e){return yp(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){ +const kp=xn({selectedServer:null,servers:[],variables:{}}),xp=e=>{ +Object.assign(kp,{...kp,...e})};function Sp(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({ +const _p=({specification:e,defaultServerUrl:t,servers:n}={})=>(void 0!==(null==e?void 0:e.value)&&Ci((()=>[null==e?void 0:e.value,null==n?void 0:n.value,null==t?void 0:t.value]),(()=>{ +const r=Op(void 0===(null==n?void 0:n.value)?(null==e?void 0:e.value)??wp():wp({ 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:{ +}),o=null==r?void 0:r[kp.selectedServer??0];var i;xp({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 +})))),...Sp(kp.variables,(null==r?void 0:r[kp.selectedServer??0])??{})}})}),{ +deep:!0,immediate:!0}),{server:kp,setServer:xp +}),Ep="/* 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/* selection colors */\n.light-mode,\n.dark-mode {\n --scalar-selection-background: color-mix(\n in sRGB,\n var(--scalar-color-1) 80%,\n transparent\n );\n --scalar-selection-color: var(--scalar-background-1);\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",Tp=[["--theme-","--scalar-"],["--sidebar-","--scalar-sidebar-"]],Cp=Tp.map((([e])=>e)) +;function Ap(){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", +const Pp={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 +kepler:"Kepler-11e",mars:"Mars",deepSpace:"Deep Space",none:""},Dp={ +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: #2a2b2a;\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:Ep, +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: #505452;\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-3);\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-3);\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-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: #3f4145;\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: #2f4851;\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: #2e394c;\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:not(::selection),\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:not(::selection),\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:not(::selection),\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:not(::selection),\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 --scalar-selection-background: color-mix(\n in sRGB,\n var(--scalar-color-1) 90%,\n transparent\n );\n --scalar-selection-color: var(--scalar-background-1);\n}\n.dark-mode {\n --scalar-background-1: #140507;\n --scalar-background-2: #20090c;\n --scalar-background-3: #321116;\n --scalar-border-color: #3c3031;\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 --scalar-selection-background: color-mix(\n in sRGB,\n var(--scalar-color-1) 50%,\n transparent\n );\n --scalar-selection-color: var(--scalar-background-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:not(::selection),\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" +},$p=e=>"none"===e?"":Dp[e||"default"]??Ep;function Rp(e){ +return!!ht()&&(ft(e),!0)}function Np(e){return"function"==typeof e?e():Qn(e)} +const Mp="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){ +;const Ip=e=>null!=e,Lp=Object.prototype.toString,jp=e=>"[object Object]"===Lp.call(e),Bp=()=>{},Qp=Up() +;function Up(){var e,t +;return Mp&&(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 Fp(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) +thisArg:this,args:n})).then(r).catch(o)}))}}(function(e,t={}){let n,r,o=Bp +;const i=e=>{clearTimeout(e),o(),o=Bp};return a=>{const s=Np(e),l=Np(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){ +function zp(e,t,n){return Ci(e,((e,n,r)=>{e&&t(e,n,r)}),{...n,once:!1})} +function qp(e){var t;const n=Np(e);return null!=(t=null==n?void 0:n.$el)?t:n} +const Hp=Mp?window:void 0,Vp=Mp?window.document:void 0;function Zp(...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]) +;if("string"==typeof e[0]||Array.isArray(e[0])?([n,r,o]=e,t=Hp):[t,n,r,o]=e, +!t)return Bp;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 +},s=Ci((()=>[qp(t),Np(o)]),(([e,t])=>{if(a(),!e)return;const o=jp(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=()=>{ +}),l=()=>{s(),a()};return Rp(l),l}let Wp=!1;function Xp(e){const t=function(){ +const e=In(!1),t=ba();return t&&lo((()=>{e.value=!0}),t),e}() +;return $a((()=>(t.value,Boolean(e()))))}function Gp(e,t={}){ +const{window:n=Hp}=t,r=Xp((()=>n&&"matchMedia"in n&&"function"==typeof n.matchMedia)) +;let o;const i=In(!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) +},l=Ti((()=>{ +r.value&&(s(),o=n.matchMedia(Np(e)),"addEventListener"in o?o.addEventListener("change",a):o.addListener(a), +i.value=o.matches)}));return Rp((()=>{l(),s(),o=void 0})),i} +function Yp(e,t,n={}){const{window:r=Hp,...o}=n;let i +;const a=Xp((()=>r&&"ResizeObserver"in r)),s=()=>{i&&(i.disconnect(),i=void 0) +},l=Ci($a((()=>Array.isArray(e)?e.map((e=>qp(e))):[qp(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()};return Rp(c),{isSupported:a, +stop:c}}const Kp=new Map;function Jp(e){const t=ht();function n(n){var o +;const i=Kp.get(e)||new Set;i.add(n),Kp.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{ +const n=Kp.get(e);n&&(n.delete(t),n.size||o())}function o(){Kp.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=>{ +emit:function(t,n){var r;null==(r=Kp.get(e))||r.forEach((e=>e(t,n)))},reset:o}} +function eh(e=null,t={}){ +const{baseUrl:n="",rel:r="icon",document:o=Vp}=t,i=function(...e){ +if(1!==e.length)return Xn(...e);const t=e[0] +;return"function"==typeof t?_n(Hn((()=>({get:t,set:Bp})))):In(t)}(e) +;return Ci(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", +null==o||o.head.append(t))}})(e)}),{immediate:!0}),i}const th={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){ +left:"arrowleft",right:"arrowright"};function nh(e={}){ +const{reactive:t=!1,target:n=Hp,aliasMap:r=th,passive:o=!0,onEventFired:i=Bp}=e,a=xn(new Set),s={ +toJSON:()=>({}),current:a},l=t?xn(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){ +a.delete(e),d(e,!1)})),c.clear())}Zp(n,"keydown",(e=>(h(e,!0),i(e))),{passive:o +}),Zp(n,"keyup",(e=>(h(e,!1),i(e))),{passive:o}),Zp("blur",p,{passive:!0 +}),Zp("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,{ +;l[n]=$a((()=>e.every((e=>Np(f[e])))))}else l[n]=In(!1) +;const i=Reflect.get(e,n,o);return t?Np(i):i}});return f} +var rh=Object.defineProperty,oh=(e,t,n)=>(((e,t,n)=>{t in e?rh(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),()=>{ +;let ih=0;const ah=new class{constructor(){ +oh(this,"subscribers"),oh(this,"toasts"), +oh(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 +}))),oh(this,"publish",(e=>{this.subscribers.forEach((t=>t(e))) +})),oh(this,"addToast",(e=>{this.publish(e),this.toasts=[...this.toasts,e] +})),oh(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:ih++,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=>{ +})),oh(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 +}))),e))),oh(this,"message",((e,t)=>this.create({...t,message:e,type:"default" +}))),oh(this,"error",((e,t)=>this.create({...t,type:"error",message:e +}))),oh(this,"success",((e,t)=>this.create({...t,type:"success",message:e +}))),oh(this,"info",((e,t)=>this.create({...t,type:"info",message:e +}))),oh(this,"warning",((e,t)=>this.create({...t,type:"warning",message:e +}))),oh(this,"loading",((e,t)=>this.create({...t,type:"loading",message:e +}))),oh(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})) @@ -3226,21 +3326,21 @@ 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++ +})),oh(this,"custom",((e,t)=>{const n=(null==t?void 0:t.id)||ih++ ;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={ +})),this.subscribers=[],this.toasts=[]}},sh=(e,t)=>{ +const n=(null==t?void 0:t.id)||ih++;return ah.create({message:e,id:n, +type:"default",...t}),n},lh=Object.assign(sh,{success:ah.success,info:ah.info, +warning:ah.warning,error:ah.error,custom:ah.custom,message:ah.message, +promise:ah.promise,dismiss:ah.dismiss,loading:ah.loading}),ch=(e,t)=>{ +const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},uh={},dh={ 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:{ +"stroke-linejoin":"round"},ph=[ra("line",{x1:"18",y1:"6",x2:"6",y2:"18" +},null,-1),ra("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1)] +;const hh=ch(uh,[["render",function(e,t){return Zi(),Yi("svg",dh,ph) +}]]),fh=["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"],mh=["aria-label","data-disabled"],gh={ +key:0,"data-icon":""},vh={"data-content":""},bh=Gr({__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:{}, @@ -3248,48 +3348,48 @@ 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((()=>{ +const n=t,r=e,o=In(!1),i=In(!1),a=In(!1),s=In(!1),l=In(0),c=In(0),u=In(null),d=In(null),p=$a((()=>0===r.index)),h=$a((()=>r.index+1<=r.visibleToasts)),f=$a((()=>r.toast.type)),m=$a((()=>!1!==r.toast.dismissible)),g=$a((()=>{ 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} +})),v=r.toast.style||{},b=$a((()=>r.heights.findIndex((e=>e.toastId===r.toast.id))||0)),O=$a((()=>r.toast.closeButton??r.closeButton)),y=$a((()=>r.toast.duration||r.duration||4e3)),w=In(0),k=In(0),x=In(y.value),S=In(0),_=In(null),E=$a((()=>r.position.split("-"))),T=$a((()=>E.value[0])),C=$a((()=>E.value[1])),A="string"!=typeof r.toast.title,P="string"!=typeof r.toast.description,D=$a((()=>r.heights.reduce(((e,t,n)=>n>=b.value?e:e+t.height),0))),$=(()=>{ +const e=In(!1);return Ti((()=>{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 +})(),R=$a((()=>r.toast.invert||r.invert)),N=$a((()=>"loading"===f.value)) +;lo((()=>{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 +},...r.heights],n("update:heights",a)}));const M=()=>{i.value=!0,l.value=k.value ;const e=r.heights.filter((e=>e.toastId!==r.toast.id)) -;n("update:heights",e),setTimeout((()=>{n("removeToast",r.toast)}),200)},M=()=>{ +;n("update:heights",e),setTimeout((()=>{n("removeToast",r.toast)}),200)},I=()=>{ var e,t -;N.value||!m.value||(I(),null==(t=(e=r.toast).onDismiss)||t.call(e,r.toast)) +;N.value||!m.value||(M(),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), +N.value||!m.value||(u.value=new Date,l.value=k.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 +},j=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) +;if(Math.abs(c)>=20||h>.11)return l.value=k.value, +null==(o=(n=r.toast).onDismiss)||o.call(n,r.toast),M(),void(s.value=!0) ;null==(i=d.value)||i.style.setProperty("--swipe-amount","0px"),a.value=!1 -},Q=e=>{var t;if(!_.value)return +},B=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=>{ +};return Ti((()=>{k.value=14*b.value+D.value})),Ti((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{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){ +;null==(t=(e=r.toast).onAutoClose)||t.call(e,r.toast),M()}),x.value)),e((()=>{ +clearTimeout(t)}))})),Ti((()=>{r.toast.delete&&M()})),lo((()=>{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){ +;n("update:heights",t)}o.value=!0})),ho((()=>{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",{ +(e,t)=>{var n,r,u,b,y,w,x,S,_,E,D,$;return Zi(),Yi("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), @@ -3301,123 +3401,123 @@ class:et(g.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, +"--offset":`${i.value?l.value:k.value}px`, +"--initial-height":e.expandByDefault?"auto":`${c.value}px`,...e.style,...Qn(v) +}),onPointerdown:L,onPointerup:j,onPointermove:B +},[O.value&&!e.toast.component?(Zi(),Yi("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":"", +onClick:I +},[oa(hh)],10,mh)):ca("",!0),e.toast.component?(Zi(),Ki(wo(e.toast.component),ha({ +key:1},e.toast.componentProps,{onCloseToast:M}),null,16)):(Zi(),Yi(Ui,{key:2 +},["default"!==f.value||e.toast.icon||e.toast.promise?(Zi(), +Yi("div",gh,[!e.toast.promise&&"loading"!==f.value||e.toast.icon?ca("",!0):Eo(e.$slots,"loading-icon",{ +key:0}),e.toast.icon?(Zi(),Ki(wo(e.toast.icon),{key:1})):(Zi(),Yi(Ui,{key:2 +},["success"===f.value?Eo(e.$slots,"success-icon",{key:0 +}):"error"===f.value?Eo(e.$slots,"error-icon",{key:1 +}):"warning"===f.value?Eo(e.$slots,"warning-icon",{key:2 +}):"info"===f.value?Eo(e.$slots,"info-icon",{key:3 +}):ca("",!0)],64))])):ca("",!0),ra("div",vh,[ra("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, +},[A?(Zi(),Ki(wo(e.toast.title),tt(ha({key:0 +},e.toast.componentProps)),null,16)):(Zi(),Yi(Ui,{key:1 +},[sa(st(e.toast.title),1)],64))],2),e.toast.description?(Zi(),Yi("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(e.descriptionClass,e.toast.descriptionClass,null==(x=e.classes)?void 0:x.description,null==(S=e.toast.classes)?void 0:S.description)) +},[P?(Zi(),Ki(wo(e.toast.description),tt(ha({key:0 +},e.toast.componentProps)),null,16)):(Zi(),Yi(Ui,{key:1 +},[sa(st(e.toast.description),1)],64))],2)):ca("",!0)]),e.toast.cancel?(Zi(), +Yi("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",{ +;M(),null!=(t=e.toast.cancel)&&t.onClick&&e.toast.cancel.onClick()}) +},st(e.toast.cancel.label),3)):ca("",!0),e.toast.action?(Zi(),Yi("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", +;null==(n=e.toast.action)||n.onClick(t),!t.defaultPrevented&&M()}) +},st(e.toast.action.label),3)):ca("",!0)],64))],46,fh)}} +}),Oh=["data-visible"],yh={class:"sonner-spinner"},wh=Gr({__name:"Loader", props:{visible:{type:Boolean}},setup(e){const t=Array(12).fill(0) -;return(e,n)=>(zi(),Wi("div",{class:"sonner-loading-wrapper", +;return(e,n)=>(Zi(),Yi("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",{ +},[ra("div",yh,[(Zi(!0),Yi(Ui,null,So(Qn(t),(e=>(Zi(),Yi("div",{ +key:`spinner-bar-${e}`,class:"sonner-loading-bar"})))),128))])],8,Oh))} +}),kh={},xh={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20", +fill:"currentColor",height:"20",width:"20"},Sh=[ra("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",{ +"clip-rule":"evenodd"},null,-1)];const _h=ch(kh,[["render",function(e,t){ +return Zi(),Yi("svg",xh,Sh)}]]),Eh={},Th={xmlns:"http://www.w3.org/2000/svg", +viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ch=[ra("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",{ +"clip-rule":"evenodd"},null,-1)];const Ah=ch(Eh,[["render",function(e,t){ +return Zi(),Yi("svg",Th,Ch)}]]),Ph={},Dh={xmlns:"http://www.w3.org/2000/svg", +viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},$h=[ra("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",{ +"clip-rule":"evenodd"},null,-1)];const Rh=ch(Ph,[["render",function(e,t){ +return Zi(),Yi("svg",Dh,$h)}]]),Nh={},Mh={xmlns:"http://www.w3.org/2000/svg", +viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Ih=[ra("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({ +"clip-rule":"evenodd"},null,-1)];const Lh=ch(Nh,[["render",function(e,t){ +return Zi(),Yi("svg",Mh,Ih) +}]]),jh=["aria-label"],Bh=["dir","data-theme","data-rich-colors","data-y-position","data-x-position"],Qh="32px",Uh=typeof window<"u"&&typeof document<"u",Fh=Gr({ 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:{ +},class:{default:""},style:{default:()=>({})},offset:{default:Qh},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 r=e,o=No(),i=In([]),a=$a((()=>{ 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,"") +})),s=In([]),l=In(!1),c=In(!1),u=In("system"!==r.theme?r.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),d=$a((()=>r.cn||t)),p=In(null),h=In(null),f=In(!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((()=>{ +};return Ti((e=>{const t=ah.subscribe((e=>{ +e.dismiss?i.value=i.value.map((t=>t.id===e.id?{...t,delete:!0}:t)):hr((()=>{ 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=>{ +})),Ci((()=>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),(()=>{ +u.value=e?"dark":"light"}))):u.value=e})),Ci((()=>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){ +}),h.value=null,f.value=!1)}})),Ti((()=>{i.value.length<=1&&(l.value=!1) +})),Ti((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), +;"Escape"===e.code&&o&&(l.value=!1)}Uh&&(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, +})),(e,t)=>(Zi(),Yi("section",{"aria-label":`${e.containerAriaLabel} ${Qn(m)}`, +tabIndex:-1},[(Zi(!0),Yi(Ui,null,So(a.value,((r,a)=>{var u +;return Zi(),Yi("ol",ha({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, +"--offset":"number"==typeof e.offset?`${e.offset}px`:e.offset||Qh, +"--width":"356px","--gap":"14px",...e.style,...Qn(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, +},e.$attrs),[(Zi(!0),Yi(Ui,null,So(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(),Ki(bh,{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, @@ -3432,69 +3532,69 @@ 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,{ +"loading-icon":xr((()=>[Eo(e.$slots,"loading-icon",{},(()=>[oa(wh,{ 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 +"success-icon":xr((()=>[Eo(e.$slots,"success-icon",{},(()=>[oa(_h)]))])), +"error-icon":xr((()=>[Eo(e.$slots,"error-icon",{},(()=>[oa(Lh)]))])), +"warning-icon":xr((()=>[Eo(e.$slots,"warning-icon",{},(()=>[oa(Rh)]))])), +"info-icon":xr((()=>[Eo(e.$slots,"info-icon",{},(()=>[oa(Ah)]))])),_: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() +})),128))],16,Bh)})),128))],8,jh))}}),zh={toast:()=>null};function qh(e){ +zh.toast=e}function Hh(){return{initializeToasts:qh,toast:(e,t="info",n={ +timeout:3e3})=>{zh.toast(e,t,n)}}}const Vh=Gr({__name:"ScalarToasts",setup(e){ +const t=In(!1);lo((()=>t.value=!0));const n={success:lh.success,error:lh.error, +warn:lh.warning,info:lh},{initializeToasts:r}=Hh() ;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"){ +description:r.description})})),(e,n)=>t.value?(Zi(),Ki(Qn(Fh),{key:0, +class:"scalar-toaster"})):ca("",!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=>{ +document.head.appendChild(e)}}catch(dR){ +console.error("vite-plugin-css-injected-by-js",dR)}}();const Zh=()=>{ +const{toast:e}=Hh();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??(()=>{ +}))}}},Wh=In(!1);function Xh(e,t){var n +;return Wh.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=>{ +})(),Ci(Wh,(e=>{ "undefined"!=typeof document&&(document.body.classList.toggle("dark-mode",e), -document.body.classList.toggle("light-mode",!e))}),{immediate:!0}),{isDark:Nh, +document.body.classList.toggle("light-mode",!e))}),{immediate:!0}),{isDark:Wh, 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))) +;Wh.value=!Wh.value,"undefined"!=typeof window&&(null==(e=null==window?void 0:window.localStorage)||e.setItem("isDark",JSON.stringify(Wh.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]++, +;Wh.value=e,"undefined"!=typeof window&&(null==(t=null==window?void 0:window.localStorage)||t.setItem("isDark",JSON.stringify(Wh.value))) +}}}const Gh="https://api.scalar.com/request-proxy",Yh="https://proxy.scalar.com" +;const Kh=/[\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,Jh=Object.hasOwnProperty +;class ef{constructor(){this.occurrences,this.reset()}slug(e,t){const n=this +;let r=tf(e,!0===t);const o=r;for(;Jh.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){ +this.occurrences=Object.create(null)}}function tf(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 +e.replace(Kh,"").replace(/ /g,"-"))} +const nf=In(Fd.hash??""),rf=In(),of=In(!1),af=e=>e.slug?`description/${e.slug}`:"",sf=e=>{ +var t;if(!rf.value)return"" +;const n=new RegExp("^"+(null==(t=rf.value)?void 0:t.basePath)+"/?") +;return decodeURIComponent(e.replace(n,""))},lf=(e,t)=>{if(!e)return"webhooks" +;const n=tf(e);return`webhook/${t}/${encodeURIComponent(n)}`},cf=e=>{ +if(!e)return"models";const t=tf(e);return`model/${encodeURIComponent(t)}` +},uf=(e,t)=>`${df(t)}/${e.httpVerb}${e.path}`,df=({name:e})=>{const t=tf(e) +;return`tag/${encodeURIComponent(t)}`},pf=(e=nf.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 +;return n||r||o},hf=()=>{ +nf.value=rf.value?sf(window.location.pathname):decodeURIComponent(window.location.hash.replace(/^#/,"")) +},ff=()=>({hash:nf,getWebhookId:lf,getModelId:cf,getHeadingId:af, +getOperationId:uf,getPathRoutingId:sf,getSectionId:pf,getTagId:df, +isIntersectionEnabled:of,pathRouting:rf,updateHash:hf});function mf(e){return{ +parameterMap:$a((()=>{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(), +})),r}))}}const gf={"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", @@ -3504,52 +3604,54 @@ 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"]){ +uri:"https://example.com",uuid:"123e4567-e89b-12d3-a456-426614174000"} +;function vf(e,t=""){return gf[e.format]??t}const bf=new WeakMap +;function Of(e,t){return"object"!=typeof t||null===t||bf.set(e,t),t} +const yf=(e,t,n=0,r,o)=>{var i,a,s,l,c,u,d,p,h,f,m,g,v +;if(bf.has(e))return bf.get(e);if(6===n)try{JSON.stringify(e)}catch{ +return"[Circular Reference]"}const b=!!(null==t?void 0:t.emptyString) +;if("write"===(null==t?void 0:t.mode)&&e.readOnly||"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(void 0!==n)return"number"===e.type||"integer"===e.type?parseInt(n,10):Of(e,n) +}if(Array.isArray(e.examples)&&e.examples.length>0)return Of(e,e.examples[0]) +;if(void 0!==e.example)return Of(e,e.example) +;if(void 0!==e.default)return Of(e,e.default) +;if(Array.isArray(e.enum)&&e.enum.length>0)return Of(e,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)) +;if(void 0!==e.properties)for(const o in e.properties)if(Object.prototype.hasOwnProperty.call(e.properties,o)){ +const i=e.properties[o],a=(null==t?void 0:t.xml)?null==(h=i.xml)?void 0:h.name:void 0 +;r[a??o]=yf(i,t,n+1,e,o),void 0===r[a??o]&&delete r[a??o]} +if(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=yf(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){ +return void 0!==e.anyOf?Object.assign(r,yf(e.anyOf[0],t,n+1)):void 0!==e.oneOf?Object.assign(r,yf(e.oneOf[0],t,n+1)):void 0!==e.allOf&&Object.assign(r,...e.allOf.map((r=>yf(r,t,n+1,e))).filter((e=>void 0!==e))), +Of(e,r)}if("array"===e.type||void 0!==e.items){ +const r=null==(m=null==(f=null==e?void 0:e.items)?void 0:f.xml)?void 0:m.name,o=!!((null==t?void 0:t.xml)&&(null==(g=e.xml)?void 0:g.wrapped)&&r) +;if(void 0!==e.example)return Of(e,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, +;const i=(["anyOf","oneOf"].includes(a)?e.items[a].slice(0,1):e.items[a]).map((r=>yf(r,t,n+1,e))).filter((e=>void 0!==e)) +;return Of(e,o?[{[r]:i}]:i)}}if(null==(v=e.items)?void 0:v.type){ +const i=yf(e.items,t,n+1);return o?[{[r]:i}]:[i]}return[]}const O={ +string:b?vf(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) +;if(void 0!==e.type&&void 0!==O[e.type])return Of(e,O[e.type]) +;const y=e.oneOf||e.anyOf;if(Array.isArray(y)&&y.length>0){const e=y[0] +;return yf(e,t,n+1)}if(Array.isArray(e.allOf)){let r=null +;return e.allOf.forEach((e=>{const o=yf(e,t,n+1) ;r="object"==typeof o&&"object"==typeof r?{...r??{},...o -}:Array.isArray(o)&&Array.isArray(r)?[...r??{},...o]:o})),r} +}:Array.isArray(o)&&Array.isArray(r)?[...r??{},...o]:o})),Of(e,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 +;const t=O[e.type[0]];if(void 0!==t)return Of(e,t)}return null} +;function wf(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"}):"", +value:e.example?e.example:e.schema?yf(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="" +function kf(e,t){const n=function(e,t,r){let o="" ;if(e instanceof Array)for(let i=0,a=e.length;i":"@"!=t ;o+=("\n"==o.charAt(o.length-1)?r:"")+""} }else o+=r+"<"+t+">"+e.toString()+"";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 t?r.replace(/\t/g,t):r.replace(/\t|\n/g,"")}function xf(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:{ +;return"object"==typeof n&&null!==n?xf(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 _f(e,t){var n,r,o,i +;const a=Ld(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:Bd(null==c?void 0:c.value)}} +;const u=wf(e,"body",!1);if(u.length>0)return{body:{mimeType:"application/json", +text:Bd(u[0].value)}};const d=wf(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", +const e=(null==p?void 0:p.schema)?yf(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, +const e=(null==p?void 0:p.schema)?yf(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{ +mimeType:s,text:f??kf(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, +const e=(null==p?void 0:p.schema)?yf(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, +const e=(null==p?void 0:p.schema)?yf(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) +mimeType:s,params:xf(f??e??{})}}}return null}const Ef=(e,t,n)=>{let r=e.path +;const o=wf(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{ +;r=r.replace(e,`__${t.toUpperCase()}__`)}))}const i=_f(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){ +headers:[...wf(e,"header",null==t?void 0:t.requiredOnly),...(null==i?void 0:i.headers)??[]], +queryString:wf(e,"query",null==t?void 0:t.requiredOnly), +cookies:wf(e,"cookie",null==t?void 0:t.requiredOnly)}};function Tf(e){ +return(e??[]).map((e=>({...e,enabled:!0})))}function Cf(e){ +return e.reduce(((e,t)=>(e[t.name]=t.value,e)),{})}function Af(e){ +return/\s|-/.test(e)}function Pf(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 +;for(const[i,a]of Object.entries(e)){const e=Af(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}`) +const r=a.map((e=>"string"==typeof e?`'${e}'`:e&&"object"==typeof e?Pf(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){ +}else if(a&&"object"==typeof a)n.push(`${o}${e}: ${Pf(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", +return`{\n${n.join(",\n")}\n${r}}`}function Df(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()}`:"" +},i=new URLSearchParams(r.queryString?Cf(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||{}, @@ -3621,14 +3723,14 @@ 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", +"application/json"===r.postData.mimeType&&(o.body=`JSON.stringify(${Pf(JSON.parse(o.body))})`)) +;const s=Object.keys(o).length?`, ${Pf(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} +}}function $f(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()}`:"" +},i=new URLSearchParams(r.queryString?Cf(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||{}, @@ -3636,12 +3738,12 @@ 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 +"application/json"===r.postData.mimeType&&(o.body=`JSON.stringify(${Pf(JSON.parse(o.body))})`)) +;const s=Object.keys(o).length?`, ${Pf(o)}`:"";return{target:"node", +client:"fetch",code:`fetch('${r.url}${a}'${s})`}}function Rf(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()}`:"" +},i=new URLSearchParams(r.queryString?Cf(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||{}, @@ -3649,12 +3751,12 @@ 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 +"application/json"===r.postData.mimeType&&(o.body=`JSON.stringify(${Pf(JSON.parse(o.body))})`)) +;const s=Object.keys(o).length?`, ${Pf(o)}`:"";return{target:"js", +client:"fetch",code:`fetch('${r.url}${a}'${s})`}}function Nf(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=new URLSearchParams(r.queryString?Cf(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 @@ -3664,11 +3766,11 @@ o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${e }))),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={ +;const a=Object.keys(o).length?`, ${Pf(o)}`:"";return{target:"js", +client:"ofetch",code:`ofetch('${r.url}'${a})`}}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) +},i=new URLSearchParams(r.queryString?Cf(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 @@ -3678,9 +3780,9 @@ o.headers["Set-Cookie"]=o.headers["Set-Cookie"]?`${o.headers["Set-Cookie"]}; ${e }))),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) +;const a=Object.keys(o).length?`, ${Pf(o)}`:"";return{target:"node", +client:"ofetch",code:`ofetch('${r.url}'${a})`}}function If(){ +const e=[Df,$f,Rf,Nf,Mf];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)), @@ -3688,23 +3790,23 @@ 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)=>{ +const Lf="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{FormData:jf,Blob:Bf,File:Qf}=Lf,Uf="\r\n",Ff="-".repeat(2),zf=Symbol.toStringTag,qf=(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)=>{ +;return r+=`${Ff}${e}${Uf}`,r+=`Content-Disposition: form-data; name="${t}"`, +"string"!=typeof n&&"blob"!==n.name&&(r+=`; filename="${n.name}"${Uf}`, +r+=`Content-Type: ${n.type||"application/octet-stream"}`),`${r}${Uf.repeat(2)}` +},Hf=async function*(e,t){ +for(const[n,r]of e)yield qf(t,n,r),"string"==typeof r?yield r:yield await r.text(), +yield Uf;yield(e=>`${Ff}${e}${Ff}${Uf.repeat(1)}`)(t) +},Vf=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase())),Zf=(e,t)=>{ +const n=Vf(e,t);if(n)return e[n] +},Wf=(e,t)=>Boolean(Vf(e,t)),Xf=["application/json","application/x-json","text/json","text/x-json","+json"],Gf=(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){ +;function Yf(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{ +}class Kf extends URL{get path(){return this.pathname+this.search}}class Jf{ constructor({indent:e,join:t}={}){ this.postProcessors=[],this.code=[],this.indentationCharacter="", this.lineJoin="\n", @@ -3715,69 +3817,69 @@ this.unshift=(e,t)=>{const n=this.indentLine(e,t);this.code.unshift(n) 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={}){ +this.lineJoin=null!=t?t:"\n"}}function em(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:{ +}const tm=e=>em(e,{delimiter:"'"}),nm=e=>em(e,{delimiter:'"'}),rm={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 +const{push:i,blank:a,join:s}=new Jf ;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(`headers = curl_slist_append(headers, "${e}: ${nm(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{ +i("CURLcode ret = curl_easy_perform(hnd);"),s()}}}};class om{constructor(e){ +this.name="",this.toString=()=>`:${this.name}`,this.name=e}}class im{ 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": +const am=e=>void 0===e?null:null===e?"null":e.constructor.name.toLowerCase(),sm=e=>"object"===am(e)&&0===Object.keys(e).length,lm=e=>(Object.keys(e).filter((t=>sm(e[t]))).forEach((t=>{ +delete e[t]})),e),cm=(e,t)=>{const n=" ".repeat(e) +;return t.replace(/\n/g,`\n${n}`)},um=e=>{switch(am(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"}, +const t=Object.keys(e).reduce(((t,n)=>`${t}:${n} ${cm(n.length+2,um(e[n]))}\n `),"").trim() +;return`{${cm(1,t)}}`}case"array":{ +const t=e.reduce(((e,t)=>`${e} ${um(t)}`),"").trim();return`[${cm(1,t)}]`}} +},dm={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}) +const{push:a,join:s}=new Jf({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 +l["content-type"]=new om("json"),l["form-params"]=n.jsonObj +;const e=Vf(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") +;const e=Vf(l.headers,"content-type");e&&delete l.headers[e]}break +;case"text/plain":{l.body=n.text;const e=Vf(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]} +content:new im(e.fileName)}:{name:e.name,content:e.value})) +;const e=Vf(l.headers,"content-type");e&&delete l.headers[e]}} +if("application/json"===Zf(l.headers,"accept")){l.accept=new om("json") +;const e=Vf(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:{ +sm(lm(l)))a(`(client/${t} "${r}")`);else{const e=11+t.length+r.length +;a(`(client/${t} "${r}" ${cm(e,um(lm(l)))})`)}return s()}}}},pm={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}) +indent:" ",...o},{push:l,join:c}=new Jf({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={ +let t=Zf(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) @@ -3792,7 +3894,7 @@ 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){ +l(`{ "${t}", "${nm(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",1), l("{",1),null===(i=t.params)||void 0===i||i.forEach((e=>{ @@ -3818,22 +3920,22 @@ 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 +const{push:a,join:s}=new Jf ;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])}");`) +Object.keys(r).forEach((e=>{a(`request.AddHeader("${e}", "${nm(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) +const t=Zf(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:{ +return a("IRestResponse response = client.Execute(request);"),s()}}}},hm={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" +const{blank:i,push:a,join:s}=new Jf({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(), @@ -3850,33 +3952,33 @@ a("}",f),i()),a(`url := "${r}"`,f),i(), 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) +a(`req.Header.Add("${e}", "${nm(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, +l&&(i(),a("}")),s()}}}},fm={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" +},{blank:l,push:c,join:u}=new Jf({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", +l();return`${u()}\r\n${(null==i?void 0:i.text)||""}`}}}},mm={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}) +...o},{blank:a,push:s,join:l}=new Jf({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) +s(`.setHeader("${e}", "${nm(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), @@ -3885,10 +3987,10 @@ 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}) +...o},{push:a,join:s}=new Jf({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) +a(`.header("${t}", "${nm(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 response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"), @@ -3896,30 +3998,30 @@ 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}) +...o},{push:a,blank:s,join:l}=new Jf({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) +Object.keys(r).forEach((e=>{a(`.addHeader("${e}", "${nm(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}) +...o},{join:a,push:s}=new Jf({indent:i.indent}) ;return["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(e.toUpperCase())?s(`HttpResponse response = Unirest.${e.toLowerCase()}("${r}")`):s(`HttpResponse response = Unirest.customMethod("${e.toUpperCase()}","${r}")`), -Object.keys(t).forEach((e=>{s(`.header("${e}", "${Qf(t[e])}")`,1) +Object.keys(t).forEach((e=>{s(`.header("${e}", "${nm(t[e])}")`,1) })),(null==n?void 0:n.text)&&s(`.body(${JSON.stringify(n.text)})`,1), -s(".asString();",1),a()}}}};function Jf(e){ +s(".asString();",1),a()}}}};function gm(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 +}var vm={};Object.defineProperty(vm,"__esModule",{value:!0 +}),vm.default=e=>Object.getOwnPropertySymbols(e).filter((t=>Object.prototype.propertyIsEnumerable.call(e,t))) +;const bm=function(e){ +return"[object RegExp]"===Object.prototype.toString.call(e)},Om=function(e){ +var t=typeof e;return null!==e&&("object"===t||"function"===t)},ym=vm.default +;var wm=(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__@@", @@ -3929,13 +4031,13 @@ pad:"@@__STRINGIFY_OBJECT_PAD__@@",indent:"@@__STRINGIFY_OBJECT_INDENT__@@"} ;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(null==t||"number"==typeof t||"boolean"==typeof t||"function"==typeof t||"symbol"==typeof t||bm(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)) +;return r.pop(),a(s)}if(Om(t)){let s=Object.keys(t).concat(ym(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) @@ -3944,20 +4046,20 @@ const l=s.length-1===a?i.newLine:","+i.newLineOrSpace,c="symbol"==typeof r,u=!c& })).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", +}(e,t,n)};const km=gm(wm),xm={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}) +indent:" ",cors:!0,...o},{blank:s,push:l,join:c}=new Jf({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 +l(`const data = JSON.stringify(${km(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: +})),Wf(t,"content-type")&&(null===(i=Zf(t,"content-type"))||void 0===i?void 0:i.includes("boundary"))){ +const e=Vf(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;"), @@ -3965,12 +4067,12 @@ 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])}');`) +Object.keys(t).forEach((e=>{l(`xhr.setRequestHeader('${e}', '${tm(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:" ",...i},{blank:s,push:l,join:c,addPostProcessor:u}=new Jf({ 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){ @@ -3983,7 +4085,7 @@ d.data="encodedParams,",u((e=>e.replace(/'encodedParams,'/,"encodedParams,")))) 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") +const p=km(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), @@ -3992,18 +4094,18 @@ 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={ +credentials:null,...o},{blank:a,join:s,push:l}=new Jf({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") +;case"multipart/form-data":if(!n.params)break;const e=Vf(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, +l(`const options = ${km(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;"), @@ -4014,7 +4116,7 @@ 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, +indent:" ",...o},{blank:s,push:l,join:c}=new Jf({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 @@ -4023,35 +4125,35 @@ case"application/x-www-form-urlencoded":u.data=r.paramsObj?r.paramsObj:r.text 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 +Wf(n,"content-type")&&(null===(i=Zf(n,"content-type"))||void 0===i?void 0:i.includes("boundary"))){ +const e=Vf(n,"content-type");e&&delete u.headers[e]}s();break;default: +(null==r?void 0:r.text)&&(u.data=r.text)}const d=km(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", +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}) +...o},{blank:a,join:s,push:l}=new Jf({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) +Object.keys(r).forEach((e=>{l(`.addHeader("${e}", "${nm(r[e])}")`,1) })),l(".build()",1), -a(),l("val response = client.newCall(request).execute()"),s()}}}},lm={info:{ +a(),l("val response = client.newCall(request).execute()"),s()}}}},_m={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({ +const{indent:i=" ",insecureSkipVerify:a=!1}=o,{blank:s,join:l,push:c,unshift:u}=new Jf({ 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 options = ${km(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), @@ -4061,17 +4163,17 @@ 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 +c(`req.write(qs.stringify(${km(r.paramsObj,{indent:" ",inlineCharacterLimit:80 })}));`));break;case"application/json": -r.jsonObj&&c(`req.write(JSON.stringify(${im(r.jsonObj,{indent:" ", +r.jsonObj&&c(`req.write(JSON.stringify(${km(r.jsonObj,{indent:" ", inlineCharacterLimit:80})}));`);break;default: -(null==r?void 0:r.text)&&c(`req.write(${im(r.text,{indent:i})});`)} +(null==r?void 0:r.text)&&c(`req.write(${km(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}) +;const{push:c,blank:u,join:d,unshift:p}=new Jf({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){ @@ -4086,7 +4188,7 @@ options:{filename:e.fileName,contentType:e.contentType?e.contentType:null} (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,{ +})),u()),l&&p("const fs = require('fs');"),c(`const options = ${km(h,{ indent:" ",inlineCharacterLimit:80 })};`),u(),c("request(options, function (error, response, body) {"), c("if (error) throw new Error(error);",1), @@ -4097,32 +4199,32 @@ 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({ +;const{addPostProcessor:c,blank:u,join:d,push:p,unshift:h}=new Jf({ 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,{ +})),p("req.jar(CookieJar);"),u()),Object.keys(r).length&&(p(`req.query(${km(r,{ +indent:s.indent})});`),u()),Object.keys(i).length&&(p(`req.headers(${km(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 +o.paramsObj&&(p(`req.form(${km(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 +o.jsonObj&&(p("req.type('json');"),p(`req.send(${km(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())} +})),p(`req.multipart(${km(e,{indent:s.indent})});`),u();break}default: +(null==o?void 0:o.text)&&(p(`req.send(${km(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:" ",...i},{blank:s,join:l,push:c,addPostProcessor:u}=new Jf({ 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), @@ -4133,7 +4235,7 @@ 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:" ", +s(),(null==o?void 0:o.text)&&(d.data=o.text)}const p=km(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), @@ -4142,7 +4244,7 @@ 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}) +;const{blank:c,push:u,join:d,unshift:p}=new Jf({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": @@ -4151,7 +4253,7 @@ 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") +;break;case"multipart/form-data":if(!n.params)break;const e=Vf(r,"content-type") ;e&&delete r[e], p("const FormData = require('form-data');"),u("const formData = new FormData();"), n.params.forEach((e=>{ @@ -4160,7 +4262,7 @@ e.fileName||e.fileName||e.contentType?e.fileName&&(l=!0,u(`formData.append('${e. 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}) +;const f=km(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(), @@ -4168,25 +4270,25 @@ u("try {"),u("const response = await fetch(url, options);",1),u("const data = aw 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)=>{ +}}}},Em=(e,t,n,r)=>{const o=`${e} *${t} = ` +;return`${o}${Tm(n,r?o.length:void 0)};`},Tm=(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 Array]":return`@[ ${e.map((e=>Tm(e))).join(n)} ]` ;case"[object Object]":{const t=[] -;for(const n in e)t.push(`@"${n}": ${um(e[n])}`);return`@{ ${t.join(n)} }`} +;for(const n in e)t.push(`@"${n}": ${Tm(e[n])}`);return`@{ ${t.join(n)} }`} case"[object Boolean]":return e?"@YES":"@NO";default: -return null==e?"":`@"${e.toString().replace(/"/g,'\\"')}"`}},dm={info:{ +return null==e?"":`@"${e.toString().replace(/"/g,'\\"')}"`}},Cm={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:" ",pretty:!0,timeout:10,...o},{push:s,join:l,blank:c}=new Jf({ indent:a.indent}),u={hasHeaders:!1,hasBody:!1} ;if(s("#import "), Object.keys(e).length&&(u.hasHeaders=!0, -c(),s(cm("NSDictionary","headers",e,a.pretty))), +c(),s(Em("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 @@ -4194,10 +4296,10 @@ if(null===(i=t.params)||void 0===i?void 0:i.length){c();const[e,...n]=t.params 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)), +t.jsonObj&&(s(Em("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(Em("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) {"), @@ -4230,36 +4332,36 @@ s(" NSHTTPURLResponse *httpResponse = s(' NSLog(@"%@", httpResponse);',2), s(" }",1), s(" }];"),s("[dataTask resume];"),l() -}}}},pm={info:{key:"ocaml",title:"OCaml",extname:".ml",default:"cohttp"}, +}}}},Am={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}) +indent:" ",...o},{push:a,blank:s,join:l}=new Jf({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) +;1===c.length?a(`let headers = Header.add (Header.init ()) "${c[0]}" "${nm(t[c[0]])}" in`):c.length>1&&(a("let headers = Header.add_list (Header.init ()) ["), +c.forEach((e=>{a(`("${e}", "${nm(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)){ +},Pm=(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 String]":return`'${em(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}`) +const r=e.map((e=>Pm(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)}`) +;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.push(`${Pm(n,t)} => ${Pm(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={ +},Dm=["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"],$m={ 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({ +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 Jf({ indent:c});p||(m(h?"{ 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])}"`)) +;const w=Object.keys(a).sort().map((e=>`"${e}: ${nm(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);"), @@ -4286,24 +4388,24 @@ 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}) +},{push:l,blank:c,join:u}=new Jf({indent:s.indent +}),{code:d,push:p,join:h}=new Jf({indent:s.indent}) ;switch(s.noTags||(l(s.shortTags?" ${hm(e.paramsObj,s.indent+s.indent,s.indent)},`,1);break +p(`'form_params' => ${Pm(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)} +})),t.length&&(p(`'multipart' => ${Pm(t,s.indent+s.indent,s.indent)}`,1), +Wf(o,"content-type")&&(null===(a=Zf(o,"content-type"))||void 0===a?void 0:a.indexOf("boundary")))){ +const e=Vf(o,"content-type");e&&delete o[e]}break}default: +(null==e?void 0:e.text)&&p(`'body' => ${Pm(e.text)},`,1)} const f=Object.keys(o).sort().map((function(e){ -return`${s.indent}${s.indent}'${e}' => '${Bf(o[e])}',` +return`${s.indent}${s.indent}'${e}' => '${tm(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)}',`), +;return m.length&&f.push(`${s.indent}${s.indent}'cookie' => '${tm(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}', [`), @@ -4313,22 +4415,22 @@ c(),l("echo $response->getBody();"),!s.noTags&&s.closingTag&&(c(),l("?>")),u()} 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({ +const{closingTag:s=!1,indent:l=" ",noTags:c=!1,shortTags:u=!1}=a,{push:d,blank:p,join:h}=new Jf({ indent:l}) -;switch(c||(d(u?"setUrl(${hm(t)});`),fm.includes(e.toUpperCase())?d(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`):d(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`), +d(`$request->setUrl(${Pm(t)});`),Dm.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)});`), +Object.keys(r).length&&(d(`$request->setQueryData(${Pm(r,l)});`),p()),Object.keys(o).length&&(d(`$request->setHeaders(${Pm(o,l)});`), p()), -Object.keys(i).length&&(d(`$request->setCookies(${hm(i,l)});`),p()),null==n?void 0:n.mimeType){ +Object.keys(i).length&&(d(`$request->setCookies(${Pm(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 +d(`$request->setContentType(${Pm(n.mimeType)});`), +d(`$request->setPostFields(${Pm(n.paramsObj,l)});`),p();break ;case"application/json": -d(`$request->setContentType(${hm(n.mimeType)});`),d(`$request->setBody(json_encode(${hm(n.jsonObj,l)}));`), +d(`$request->setContentType(${Pm(n.mimeType)});`),d(`$request->setBody(json_encode(${Pm(n.jsonObj,l)}));`), p();break;default: -(null==n?void 0:n.text)&&(d(`$request->setBody(${hm(n.text)});`),p())} +(null==n?void 0:n.text)&&(d(`$request->setBody(${Pm(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("?>")), @@ -4337,39 +4439,39 @@ 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({ +;const{closingTag:l=!1,indent:c=" ",noTags:u=!1,shortTags:d=!1}=a,{push:p,blank:h,join:f}=new Jf({ indent:c});let m=!1 ;switch(u||(p(d?"append(new http\\QueryString(${hm(e.paramsObj,c)}));`), +p("$body = new http\\Message\\Body;"),p(`$body->append(new http\\QueryString(${Pm(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" +;const o=Object.keys(r).length?Pm(r,c):"null",i=n.length?Pm(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} +p(`$body->addForm(${o}, ${i});`),Wf(t,"content-type")&&(null===(s=Zf(t,"content-type"))||void 0===s?void 0:s.indexOf("boundary"))){ +const e=Vf(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)}));`), +p("$body = new http\\Message\\Body;"),p(`$body->append(json_encode(${Pm(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)});`), +p(`$body->append(${Pm(e.text)});`),h(),m=!0)} +return p(`$request->setRequestUrl(${Pm(i)});`), +p(`$request->setRequestMethod(${Pm(n)});`), m&&(p("$request->setBody($body);"),h()), -Object.keys(r).length&&(p(`$request->setQuery(new http\\QueryString(${hm(r,c)}));`), +Object.keys(r).length&&(p(`$request->setQuery(new http\\QueryString(${Pm(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)});`), +Object.keys(t).length&&(p(`$request->setHeaders(${Pm(t,c)});`),h()),Object.keys(o).length&&(h(), +p(`$client->setCookies(${Pm(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 +},Rm=e=>({method:t,headersObj:n,cookies:r,uriObj:o,fullUrl:i,postData:a,allHeaders:s})=>{ +const{push:l,join:c}=new Jf ;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:"`"})}")`) +"connection"!==e&&l(`$headers.Add("${e}", "${em(n[e],{escapeChar:"`"})}")`) })),u.push("-Headers $headers")), r.length&&(l("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"), r.forEach((e=>{ @@ -4377,34 +4479,34 @@ 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"),{ +(null==a?void 0:a.text)&&(u.push(`-ContentType '${em(Zf(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", +c()},Nm={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", +convert:Rm("Invoke-RestMethod")},Mm={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){ +convert:Rm("Invoke-WebRequest")};function Im(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)=>{ +}const Lm=(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 Im("array",e.map((e=>("[object Object]"===Object.prototype.toString.call(e)&&(r=Object.keys(e).length>1), +Lm(e,t,n)))),r,t.indent,n)}case"[object Object]":{const r=[] +;for(const o in e)r.push(`"${o}": ${Lm(e[o],t,n)}`) +;return Im("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:{ +},jm=["HEAD","GET","POST","PUT","PATCH","DELETE","OPTIONS"],Bm={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({ +var s,l;const{push:c,blank:u,join:d}=new Jf({ 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] @@ -4417,43 +4519,43 @@ 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={ +const g=Zf(o,"cookie"),v=Zf(o,"accept"),b=g?`set_cookies(\`${String(g).replace(/;/g,'", `').replace(/` /g,"`").replace(/[=]/g,'` = "')}")`:void 0,O=v?`accept("${nm(v)}")`:void 0,y=`content_type("${nm(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}' = '${tm(t)}'`)).join(", "),k=w?`add_headers(${w})`:void 0 +;let x=`response <- VERB("${i}", url` +;m&&(x+=", body = payload"),n.length&&(x+=", query = queryString") +;const S=[k,y,O,b].filter((e=>!!e)).join(", ") +;return S&&(x+=`, ${S}`),r&&(r.text||r.jsonObj||r.params)&&(x+=", encode = encode"), +x+=")",c(x),u(),c('content(response, "text")'),d()} +},Qm=(e="")=>/^[a-z0-9-_/.@%^=:]+$/i.test(e)?e:`'${e.replace(/'/g,"'\\''")}'`,Um={ "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}`:", " +insecure:"k",request:"X"},Fm=(e,t)=>t.repeat(e),zm=(e,t,n,r)=>{ +const o=Fm(r,n),i=Fm(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)=>{ +},qm=(e,t,n)=>`let ${e} = ${Hm(t,n)}`,Hm=(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]": +Hm(e,t,n))));return zm(o,r,t.indent,n)}case"[object Object]":{const r=[] +;for(const o in e)r.push(`"${o}": ${Hm(e[o],t,n)}`) +;return zm(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}}, +return null==e?"":`"${e.toString().replace(/"/g,'\\"')}"`}},Vm={c:rm,clojure:dm, +csharp:pm,go:hm,http:fm,java:mm,javascript:xm,kotlin:Sm,node:_m,objc:Cm, +ocaml:Am,php:$m,powershell:{info:{key:"powershell",title:"Powershell", +extname:".ps1",default:"webrequest"},clientsById:{webrequest:Mm,restmethod:Nm}}, 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 +const{insecureSkipVerify:s=!1}=a,{push:l,blank:c,join:u}=new Jf ;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])}" }`), +;if(1===h)for(const f in p)l(`headers = { '${f}': "${nm(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])}"`) +;for(const t in p)e++!==h?l(` '${t}': "${nm(p[t])}",`):l(` '${t}': "${nm(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(), @@ -4462,36 +4564,36 @@ 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}) +indent:" ",pretty:!0,...i},{push:s,blank:l,join:c}=new Jf({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 +n.jsonObj&&(s(`payload = ${Lm(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) +s(`files = ${Lm(h,a)}`),m&&s(`payload = ${Lm(p,a)}`) +;const e=Vf(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) +s(`payload = ${Lm(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])}"}`), +;if(0===v&&(m||f))l();else if(1===v)for(const O in d)s(`headers = {"${O}": "${nm(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), +;for(const t in d)s(e!==v?`"${t}": "${nm(d[t])}",`:`"${t}": "${nm(d[t])}"`,1), e+=1;s("}"),l()} -let b=wm.includes(o)?`response = requests.${o.toLowerCase()}(url`:`response = requests.request("${o}", url` +let b=jm.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} +}},r:{info:{key:"r",title:"R",extname:".r",default:"httr"},clientsById:{httr:Bm} },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 +const{insecureSkipVerify:a=!1}=i,{push:s,blank:l,join:c}=new Jf ;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`), @@ -4502,7 +4604,7 @@ s("end"),l()),s(`url = URI("${n}")`),l(),s("http = Net::HTTP.new(url.host, url.p "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])}'`) +;return p.length&&p.forEach((e=>{s(`request["${e}"] = '${tm(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"}, @@ -4511,38 +4613,38 @@ description:"cURL is a command line tool and library for transferring data with }, 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({ +;const{binary:l=!1,globOff:c=!1,indent:u=" ",insecureSkipVerify:d=!1,prettifyJson:p=!1,short:h=!1}=a,{push:f,join:m}=new Jf({ ..."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(e){const e=Um[t];return e?`-${e}`:""}return`--${t}`})(h);let v=Qm(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"), +Zf(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 e=Vf(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){ +;f(`${g("header")} ${Qm(t)}`) +})),o.cookie&&f(`${g("cookie")} ${Qm(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)}`) +;t=e.fileName?`${e.name}=@${e.fileName}`:`${e.name}=${e.value}`,f(`${g("form")} ${Qm(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 +;f(`${l?"--data-binary":"--data"+(r?"-urlencode":"")} ${Qm(`${r?n:t}=${e.value}`)}`) +})):f(`${l?"--data-binary":g("data")} ${Qm(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{ +;if(b=i.mimeType,Xf.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} @- <{ 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, +},{push:l,join:c,unshift:u}=new Jf({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"), @@ -4553,32 +4655,32 @@ 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])}`) +;Array.isArray(t)?t.forEach((t=>{l(`${e}==${Qm(t)}`)})):l(`${e}==${Qm(t)}`) +})),Object.keys(e).sort().forEach((t=>{l(`${t}:${Qm(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:{ +t.params.forEach((e=>{l(`${e.name}=${Qm(e.value)}`)}))):d=!0 +;if(u(`http ${p.length?`${p.join(" ")} `:""}${o} ${i=Qm(s.queryParams?i:r)}`), +d&&(null==t?void 0:t.text)){u(`echo ${Qm(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, +short:!1,verbose:!1,...o},{push:a,join:s}=new Jf({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), +a(`--method ${Qm(e)}`),Object.keys(n).forEach((e=>{const t=`${e}: ${n[e]}` +;a(`--header ${Qm(t)}`) +})),(null==t?void 0:t.text)&&a(`--body-data ${l=Qm(t.text), l.replace(/\r/g,"\\r").replace(/\n/g,"\\n")}`), -a(i.short?"-O":"--output-document"),a(`- ${km(r)}`),s()}}}},swift:{info:{ +a(i.short?"-O":"--output-document"),a(`- ${Qm(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:" ",pretty:!0,timeout:"10",...o},{push:s,blank:l,join:c}=new Jf({ 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))), +l(),s(qm("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 @@ -4586,10 +4688,10 @@ if(l(),null===(i=t.params)||void 0===i?void 0:i.length){const[e,...n]=t.params 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]`), +t.jsonObj&&(s(`${qm("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}"`), +s(qm("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), @@ -4616,7 +4718,7 @@ s("let dataTask = session.dataTask(with: request as URLRequest, completionHandle 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 +;class Zm{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", @@ -4624,7 +4726,7 @@ 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,{})), +;if(i.queryString&&i.queryString.length&&(i.queryObj=i.queryString.reduce(Gf,{})), 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}}),{})} @@ -4636,39 +4738,39 @@ 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" +const e=new jf,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],{ +;"object"==typeof(i=r)&&"function"==typeof i.arrayBuffer&&"string"==typeof i.type&&"function"==typeof i.stream&&"function"==typeof i.constructor&&/^(Blob|File)$/.test(i[zf])?e.append(n,r,o):e.append(n,new Bf([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" +}(o):o)}));const{postData:n}=i;for await(const o of Hf(e,t))n.text+=o +;i.postData.boundary=t;const r=Vf(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 +i.postData.params?(i.postData.paramsObj=i.postData.params.reduce(Gf,{}), +i.postData.text=Yf(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.jsonObj=JSON.parse(i.postData.text)}catch(G$){ 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) +...i.queryObj,...c};const u=Yf(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 +fullUrl:d.toString(),url:l.toString(),uriObj:new Kf(d.toString())}} +async convert(e,t,n){!n&&t&&(n=t);const r=Vm[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", +;return 1===i.length?i[0]:i}}const Wm=(...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]))) +const t=new Map;return e.forEach((e=>{t.set(Zd(e.name),e) +})),Array.from(t.values()).map((e=>({...e,name:Zd(e.name)})))} +return Object.fromEntries(Object.entries(e??{}).reverse().filter((([e],t,n)=>n.findIndex((([t])=>Zd(t)===Zd(e)))===t)).reverse().map((([e,t])=>[Zd(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)=>{ +},Xm="object"==typeof self?self:globalThis,Gm=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) @@ -4676,16 +4778,16 @@ const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o] {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]} +const{name:e,message:t}=a;return n(new Xm[e](t),o)}case 8:return n(BigInt(a),o) +;case"BigInt":return n(Object(BigInt(a)),o)}return n(new Xm[i](a),o)};return r +})(new Map,e)(0),Ym="",{toString:Km}={},{keys:Jm}=Object,eg=e=>{const t=typeof e +;if("object"!==t||!e)return[0,t];const n=Km.call(e).slice(8,-1);switch(n){ +case"Array":return[1,Ym];case"Object":return[2,Ym];case"Date":return[3,Ym] +;case"RegExp":return[4,Ym];case"Map":return[5,Ym];case"Set":return[6,Ym]} 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}={})=>{ +},tg=([e,t])=>0===e&&("function"===t||"symbol"===t),ng=(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) +;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,s]=eg(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:{ @@ -4694,201 +4796,201 @@ if(s)return o([s,[...r]],r);const e=[],t=o([a,e],r) 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: +;for(const t of Jm(r))!e&&tg(eg(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)) +;for(const[o,a]of r)(e||!tg(eg(o))&&!tg(eg(a)))&&t.push([i(o),i(a)]);return n} +case 6:{const t=[],n=o([a,t],r);for(const o of r)!e&&tg(eg(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) +},rg="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Gm(ng(e,t)):structuredClone(e):(e,t)=>Gm(ng(e,t)),og=function(e,t,n,r,o){ +const i=ig(t);return!!lg(e)&&i.call(o,e,n,r)},ig=function(e){ +if(null==e)return sg;if("string"==typeof e)return function(e){return ag(t) ;function t(t){return t.tagName===e}}(e) ;if("object"==typeof e)return function(e){const t=[];let n=-1 -;for(;++n":"")+")"})} -return u;function u(){let c,u,d,p=Jm +return u;function u(){let c,u,d,p=gg ;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(Array.isArray(e))return e;if("number"==typeof e)return[vg,e] +;return null==e?gg:[e]}(n(o,l)),p[0]===bg))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, +;if(t.children&&p[0]!==Og)for(u=(r?t.children.length:-1)+a, d=l.concat(t);u>-1&&u0&&(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){ +const n=Eg(t.contentProperties,e)||{};e.children.push({type:"element", +tagName:"span",properties:rg(n),children:rg(r)})}}}}))}}function Eg(e,t){ +return"function"==typeof e?e(t):e}const Tg=ig((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){ +})),Cg={}.hasOwnProperty;const Ag=new Set(["pingback","prefetch","stylesheet"]) +;const Pg=ig(["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"]),Dg=ig("meta") +;function $g(e){return Boolean("text"===e.type||Pg(e)||Tg(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(;++n0&&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 +}}function ev(e,t){ +return"root"===e.type||"element"===e.type&&(t||og(e,"script")||Tg(e)||!$g(e))} +let tv=class{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)} +};function nv(e,t){const n={},r={};let o=-1 ;for(;++o"xlink:"+t.slice(5).toLowerCase(),properties:{ xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null, -xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ov=nv({space:"xml", +xLinkShow:null,xLinkTitle:null,xLinkType:null}}),wv=Ov({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({ +xmlBase:null,xmlSpace:null}});function kv(e,t){return t in e?e[t]:t} +function xv(e,t){return kv(e,t.toLowerCase())}const Sv=Ov({space:"xmlns", +attributes:{xmlnsxlink:"xmlns:xlink"},transform:xv,properties:{xmlns:null, +xmlnsXLink:null}}),_v=Ov({ 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:{ +ariaActiveDescendant:null,ariaAtomic:sv,ariaAutoComplete:null,ariaBusy:sv, +ariaChecked:sv,ariaColCount:cv,ariaColIndex:cv,ariaColSpan:cv,ariaControls:uv, +ariaCurrent:null,ariaDescribedBy:uv,ariaDetails:null,ariaDisabled:sv, +ariaDropEffect:uv,ariaErrorMessage:null,ariaExpanded:sv,ariaFlowTo:uv, +ariaGrabbed:sv,ariaHasPopup:null,ariaHidden:sv,ariaInvalid:null, +ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:uv,ariaLevel:cv, +ariaLive:null,ariaModal:sv,ariaMultiLine:sv,ariaMultiSelectable:sv, +ariaOrientation:null,ariaOwns:uv,ariaPlaceholder:null,ariaPosInSet:cv, +ariaPressed:sv,ariaReadOnly:sv,ariaRelevant:null,ariaRequired:sv, +ariaRoleDescription:uv,ariaRowCount:cv,ariaRowIndex:cv,ariaRowSpan:cv, +ariaSelected:sv,ariaSetSize:cv,ariaSort:null,ariaValueMax:cv,ariaValueMin:cv, +ariaValueNow:cv,ariaValueText:null,role:null}}),Ev=Ov({space:"html",attributes:{ acceptcharset:"accept-charset",classname:"class",htmlfor:"for", -httpequiv:"http-equiv"},transform:av, +httpequiv:"http-equiv"},transform:xv, 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, +accept:dv,acceptCharset:uv,accessKey:uv,action:null,allow:null, +allowFullScreen:av,allowPaymentRequest:av,allowUserMedia:av,alt:null,as:null, +async:av,autoCapitalize:null,autoComplete:uv,autoFocus:av,autoPlay:av, +blocking:uv,capture:null,charSet:null,checked:av,cite:null,className:uv,cols:cv, +colSpan:null,content:null,contentEditable:sv,controls:av,controlsList:uv, +coords:cv|dv,crossOrigin:null,data:null,dateTime:null,decoding:null,default:av, +defer:av,dir:null,dirName:null,disabled:av,download:lv,draggable:sv, 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, +formEncType:null,formMethod:null,formNoValidate:av,formTarget:null,headers:uv, +height:cv,hidden:av,high:cv,href:null,hrefLang:null,htmlFor:uv,httpEquiv:uv, +id:null,imageSizes:null,imageSrcSet:null,inert:av,inputMode:null,integrity:null, +is:null,isMap:av,itemId:null,itemProp:uv,itemRef:uv,itemScope:av,itemType:uv, +kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:av, +low:cv,manifest:null,max:null,maxLength:cv,media:null,method:null,min:null, +minLength:cv,multiple:av,muted:av,name:null,nonce:null,noModule:av, +noValidate:av,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, @@ -4907,28 +5009,28 @@ 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, +onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:av, +optimum:cv,pattern:null,ping:uv,placeholder:null,playsInline:av,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, +readOnly:av,referrerPolicy:null,rel:uv,required:av,reversed:av,rows:cv, +rowSpan:cv,sandbox:uv,scope:null,scoped:av,seamless:av,selected:av, +shadowRootClonable:av,shadowRootDelegatesFocus:av,shadowRootMode:null, +shape:null,size:cv,sizes:null,slot:null,span:cv,spellCheck:sv,src:null, +srcDoc:null,srcLang:null,srcSet:null,start:cv,step:null,style:null,tabIndex:cv, +target:null,title:null,translate:null,type:null,typeMustMatch:av,useMap:null, +value:sv,width:cv,wrap:null,writingSuggestions:null,align:null,aLink:null, +archive:uv,axis:null,background:null,bgColor:null,border:cv,borderColor:null, +bottomMargin:cv,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:{ +compact:av,declare:av,event:null,face:null,frame:null,frameBorder:null, +hSpace:cv,leftMargin:cv,link:null,longDesc:null,lowSrc:null,marginHeight:cv, +marginWidth:cv,noResize:av,noHref:av,noShade:av,noWrap:av,object:null, +profile:null,prompt:null,rev:null,rightMargin:cv,rules:null,scheme:null, +scrolling:sv,standby:null,summary:null,text:null,topMargin:cv,valueType:null, +version:null,vAlign:null,vLink:null,vSpace:cv,allowTransparency:null, +autoCorrect:null,autoSave:null,disablePictureInPicture:av, +disableRemotePlayback:av,prefix:null,property:null,results:cv,security:null, +unselectable:null}}),Tv=Ov({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", @@ -4995,36 +5097,36 @@ 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, +timelineBegin:"timelinebegin"},transform:kv,properties:{about:pv, +accentHeight:cv,accumulate:null,additive:null,alignmentBaseline:null, +alphabetic:cv,amplitude:cv,arabicForm:null,ascent:cv,attributeName:null, +attributeType:null,azimuth:cv,bandwidth:null,baselineShift:null, +baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:cv,by:null, +calcMode:null,capHeight:cv,className:uv,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, +cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:cv, +diffuseConstant:cv,direction:null,display:null,dur:null,divisor:cv, +dominantBaseline:null,download:av,dx:null,dy:null,edgeMode:null,editable:null, +elevation:cv,enableBackground:null,end:null,event:null,exponent:cv, +externalResourcesRequired:null,fill:null,fillOpacity:cv,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, +fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:dv,g2:dv, +glyphName:dv,glyphOrientationHorizontal:null,glyphOrientationVertical:null, +glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:cv, 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, +horizAdvX:cv,horizOriginX:cv,horizOriginY:cv,id:null,ideographic:cv, +imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:cv,k:cv, +k1:cv,k2:cv,k3:cv,k4:cv,kernelMatrix:pv,kernelUnitLength:null,keyPoints:null, keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null, -letterSpacing:null,lightingColor:null,limitingConeAngle:Zg,local:null, +letterSpacing:null,lightingColor:null,limitingConeAngle:cv,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, +mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:cv, 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, @@ -5046,93 +5148,93 @@ 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, +orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:cv, +overlineThickness:cv,paintOrder:null,panose1:null,path:null,pathLength:cv, 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, +ping:uv,pitch:null,playbackOrder:null,pointerEvents:null,points:null, +pointsAtX:cv,pointsAtY:cv,pointsAtZ:cv,preserveAlpha:null, +preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:pv,r:null, +radius:null,referrerPolicy:null,refX:null,refY:null,rel:pv,rev:pv, +renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:pv, +requiredFeatures:pv,requiredFonts:pv,requiredFormats:pv,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, +shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:cv, +specularExponent:cv,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, +stopOpacity:null,strikethroughPosition:cv,strikethroughThickness:cv,string:null, +stroke:null,strokeDashArray:pv,strokeDashOffset:null,strokeLineCap:null, +strokeLineJoin:null,strokeMiterLimit:cv,strokeOpacity:cv,strokeWidth:null, +style:null,surfaceScale:cv,syncBehavior:null,syncBehaviorDefault:null, +syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:pv, +tabIndex:cv,tableValues:null,target:null,targetX:cv,targetY:cv,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, +title:null,transformBehavior:null,type:null,typeOf:pv,to:null,transform:null, +transformOrigin:null,u1:null,u2:null,underlinePosition:cv,underlineThickness:cv, +unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:cv,values:null, +vAlphabetic:cv,vMathematical:cv,vectorEffect:null,vHanging:cv,vIdeographic:cv, +version:null,vertAdvY:cv,vertOriginX:cv,vertOriginY:cv,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, +writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:cv,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 +}),Cv=/^data[-\w.:]+$/i,Av=/-[a-z]/g,Pv=/[A-Z]/g;function Dv(e,t){const n=rv(t) +;let r=t,o=ov;if(n in e.normal)return e.property[e.normal[n]] +;if(n.length>4&&"data"===n.slice(0,4)&&Cv.test(t)){if("-"===t.charAt(4)){ +const e=t.slice(5).replace(Av,Rv);r="data"+e.charAt(0).toUpperCase()+e.slice(1) +}else{const e=t.slice(4);if(!Av.test(e)){let n=e.replace(Pv,$v) +;"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=gv}return new o(r,t)}function $v(e){ +return"-"+e.toLowerCase()}function Rv(e){return e.charAt(1).toUpperCase()} +const Nv=nv([wv,yv,Sv,_v,Ev],"html"),Mv=nv([wv,yv,Sv,_v,Tv],"svg") +;function Iv(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){ +;!e&&i||t.push(e),o=r+1,r=n.indexOf(",",o)}return t}function Lv(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 +}const jv=/[#.]/g +;const Bv=new Set(["button","menu","reset","submit"]),Qv={}.hasOwnProperty +;function Uv(e,t,n){const r=n&&function(e){const t={};let n=-1 ;for(;++n-1&&ee)return{ line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e}},toOffset:function(e){ @@ -5140,151 +5242,151 @@ 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=55296&&e<=57343}function ab(e){ +const db=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],pb=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]),hb="�" +;var fb,mb +;(mb=fb=fb||(fb={}))[mb.EOF=-1]="EOF",mb[mb.NULL=0]="NULL",mb[mb.TABULATION=9]="TABULATION", +mb[mb.CARRIAGE_RETURN=13]="CARRIAGE_RETURN", +mb[mb.LINE_FEED=10]="LINE_FEED",mb[mb.FORM_FEED=12]="FORM_FEED", +mb[mb.SPACE=32]="SPACE", +mb[mb.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",mb[mb.QUOTATION_MARK=34]="QUOTATION_MARK", +mb[mb.NUMBER_SIGN=35]="NUMBER_SIGN", +mb[mb.AMPERSAND=38]="AMPERSAND",mb[mb.APOSTROPHE=39]="APOSTROPHE", +mb[mb.HYPHEN_MINUS=45]="HYPHEN_MINUS", +mb[mb.SOLIDUS=47]="SOLIDUS",mb[mb.DIGIT_0=48]="DIGIT_0", +mb[mb.DIGIT_9=57]="DIGIT_9", +mb[mb.SEMICOLON=59]="SEMICOLON",mb[mb.LESS_THAN_SIGN=60]="LESS_THAN_SIGN", +mb[mb.EQUALS_SIGN=61]="EQUALS_SIGN", +mb[mb.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN", +mb[mb.QUESTION_MARK=63]="QUESTION_MARK", +mb[mb.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A", +mb[mb.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F", +mb[mb.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X", +mb[mb.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z", +mb[mb.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET", +mb[mb.GRAVE_ACCENT=96]="GRAVE_ACCENT", +mb[mb.LATIN_SMALL_A=97]="LATIN_SMALL_A",mb[mb.LATIN_SMALL_F=102]="LATIN_SMALL_F", +mb[mb.LATIN_SMALL_X=120]="LATIN_SMALL_X", +mb[mb.LATIN_SMALL_Z=122]="LATIN_SMALL_Z", +mb[mb.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER" +;const gb="--",vb="[CDATA[",bb="doctype",Ob="script",yb="public",wb="system" +;function kb(e){return e>=55296&&e<=57343}function xb(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){ +function Sb(e){return e>=64976&&e<=65007||pb.has(e)}var _b,Eb +;(Eb=_b=_b||(_b={})).controlCharacterInInputStream="control-character-in-input-stream", +Eb.noncharacterInInputStream="noncharacter-in-input-stream", +Eb.surrogateInInputStream="surrogate-in-input-stream", +Eb.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus", +Eb.endTagWithAttributes="end-tag-with-attributes", +Eb.endTagWithTrailingSolidus="end-tag-with-trailing-solidus", +Eb.unexpectedSolidusInTag="unexpected-solidus-in-tag", +Eb.unexpectedNullCharacter="unexpected-null-character", +Eb.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name", +Eb.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name", +Eb.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name", +Eb.missingEndTagName="missing-end-tag-name", +Eb.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name", +Eb.unknownNamedCharacterReference="unknown-named-character-reference", +Eb.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference", +Eb.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier", +Eb.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value", +Eb.eofBeforeTagName="eof-before-tag-name", +Eb.eofInTag="eof-in-tag",Eb.missingAttributeValue="missing-attribute-value", +Eb.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes", +Eb.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword", +Eb.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers", +Eb.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword", +Eb.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier", +Eb.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier", +Eb.missingDoctypePublicIdentifier="missing-doctype-public-identifier", +Eb.missingDoctypeSystemIdentifier="missing-doctype-system-identifier", +Eb.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier", +Eb.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier", +Eb.cdataInHtmlContent="cdata-in-html-content", +Eb.incorrectlyOpenedComment="incorrectly-opened-comment", +Eb.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text", +Eb.eofInDoctype="eof-in-doctype", +Eb.nestedComment="nested-comment",Eb.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment", +Eb.eofInComment="eof-in-comment", +Eb.incorrectlyClosedComment="incorrectly-closed-comment", +Eb.eofInCdata="eof-in-cdata", +Eb.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference", +Eb.nullCharacterReference="null-character-reference", +Eb.surrogateCharacterReference="surrogate-character-reference", +Eb.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range", +Eb.controlCharacterReference="control-character-reference", +Eb.noncharacterCharacterReference="noncharacter-character-reference", +Eb.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name", +Eb.missingDoctypeName="missing-doctype-name", +Eb.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name", +Eb.duplicateAttribute="duplicate-attribute", +Eb.nonConformingDoctype="non-conforming-doctype", +Eb.missingDoctype="missing-doctype", +Eb.misplacedDoctype="misplaced-doctype",Eb.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element", +Eb.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements", +Eb.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head", +Eb.openElementsLeftAfterEof="open-elements-left-after-eof", +Eb.abandonedHeadElementChild="abandoned-head-element-child", +Eb.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element", +Eb.nestedNoscriptInHead="nested-noscript-in-head", +Eb.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text" +;class Tb{constructor(e){ this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2, this.gapStack=[],this.skipNextNewLine=!1, this.lastChunkWritten=!1,this.endOfChunkHit=!1, @@ -5301,8 +5403,8 @@ _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(){ +}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,fb.EOF +;return this._err(_b.surrogateInInputStream),e}willDropParsedChunk(){ return this.pos>this.bufferWaterline}dropParsedChunk(){ this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos), this.lineStartPos-=this.pos, @@ -5316,333 +5418,333 @@ if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkW !1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n=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} +;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,fb.EOF +;const n=this.html.charCodeAt(t);return n===fb.CARRIAGE_RETURN?fb.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--, +fb.EOF;let e=this.html.charCodeAt(this.pos) +;if(e===fb.CARRIAGE_RETURN)return this.isEol=!0, +this.skipNextNewLine=!0,fb.LINE_FEED +;if(e===fb.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), +;this.skipNextNewLine=!1,kb(e)&&(e=this._processSurrogate(e)) +;return null===this.handler.onParseError||e>31&&e<127||e===fb.LINE_FEED||e===fb.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e), e}_checkForProblematicCharacters(e){ -ab(e)?this._err(lb.controlCharacterInInputStream):sb(e)&&this._err(lb.noncharacterInInputStream) +xb(e)?this._err(_b.controlCharacterInInputStream):Sb(e)&&this._err(_b.noncharacterInInputStream) }retreat(e){ for(this.pos-=e;this.pos=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ȀDMPTLJNjǑǖ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;扐blè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;戥ǹ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ቻ኉Dzኀ\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;䅻Dzᕔ\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ƀ;oș᳊᳔ndĀ;ș᳑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;ẝẤijạả;怄;怅怃Ā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;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱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⧓ସdz⧟\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᪠ⵒⵗLjⵚ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㚆㚝㚵㚼Dz㚋\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){ +(Ab=Cb=Cb||(Cb={}))[Ab.CHARACTER=0]="CHARACTER",Ab[Ab.NULL_CHARACTER=1]="NULL_CHARACTER", +Ab[Ab.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER", +Ab[Ab.START_TAG=3]="START_TAG", +Ab[Ab.END_TAG=4]="END_TAG",Ab[Ab.COMMENT=5]="COMMENT", +Ab[Ab.DOCTYPE=6]="DOCTYPE",Ab[Ab.EOF=7]="EOF",Ab[Ab.HIBERNATION=8]="HIBERNATION" +;const Db=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ȀDMPTLJNjǑǖ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;扐blè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;戥ǹ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ቻ኉Dzኀ\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;䅻Dzᕔ\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ƀ;oș᳊᳔ndĀ;ș᳑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;ẝẤijạả;怄;怅怃Ā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;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱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⧓ସdz⧟\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᪠ⵒⵗLjⵚ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㚆㚝㚵㚼Dz㚋\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)))),$b=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0)))) +;var Rb +;const Nb=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]]),Mb=null!==(Rb=String.fromCodePoint)&&void 0!==Rb?Rb: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){ +t+=String.fromCharCode(e),t};var Ib,Lb +;(Lb=Ib||(Ib={}))[Lb.NUM=35]="NUM",Lb[Lb.SEMI=59]="SEMI", +Lb[Lb.EQUALS=61]="EQUALS", +Lb[Lb.ZERO=48]="ZERO",Lb[Lb.NINE=57]="NINE",Lb[Lb.LOWER_A=97]="LOWER_A", +Lb[Lb.LOWER_F=102]="LOWER_F", +Lb[Lb.LOWER_X=120]="LOWER_X",Lb[Lb.LOWER_Z=122]="LOWER_Z", +Lb[Lb.UPPER_A=65]="UPPER_A", +Lb[Lb.UPPER_F=70]="UPPER_F",Lb[Lb.UPPER_Z=90]="UPPER_Z" +;var jb,Bb,Qb,Ub,Fb,zb,qb,Hb,Vb,Zb,Wb,Xb,Gb,Yb,Kb,Jb;function eO(e){ +return e>=Ib.ZERO&&e<=Ib.NINE}function tO(e){return e===Ib.EQUALS||function(e){ +return e>=Ib.UPPER_A&&e<=Ib.UPPER_Z||e>=Ib.LOWER_A&&e<=Ib.LOWER_Z||eO(e)}(e)} +(Bb=jb||(jb={}))[Bb.VALUE_LENGTH=49152]="VALUE_LENGTH", +Bb[Bb.BRANCH_LENGTH=16256]="BRANCH_LENGTH", +Bb[Bb.JUMP_TABLE=127]="JUMP_TABLE",(Ub=Qb||(Qb={}))[Ub.EntityStart=0]="EntityStart", +Ub[Ub.NumericStart=1]="NumericStart", +Ub[Ub.NumericDecimal=2]="NumericDecimal",Ub[Ub.NumericHex=3]="NumericHex", +Ub[Ub.NamedEntity=4]="NamedEntity", +(zb=Fb||(Fb={}))[zb.Legacy=0]="Legacy",zb[zb.Strict=1]="Strict", +zb[zb.Attribute=2]="Attribute";class nO{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} +this.errors=n,this.state=Qb.EntityStart,this.consumed=1, +this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Fb.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: +this.decodeMode=e,this.state=Qb.EntityStart,this.result=0,this.treeIndex=0, +this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Qb.EntityStart: +return e.charCodeAt(t)===Ib.NUM?(this.state=Qb.NumericStart, +this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Qb.NamedEntity, +this.stateNamedEntity(e,t));case Qb.NumericStart: +return this.stateNumericStart(e,t);case Qb.NumericDecimal: +return this.stateNumericDecimal(e,t);case Qb.NumericHex: +return this.stateNumericHex(e,t);case Qb.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, +return t>=e.length?-1:(32|e.charCodeAt(t))===Ib.LOWER_X?(this.state=Qb.NumericHex, this.consumed+=1, -this.stateNumericHex(e,t+1)):(this.state=kb.NumericDecimal,this.stateNumericDecimal(e,t)) +this.stateNumericHex(e,t+1)):(this.state=Qb.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=Ob.UPPER_A&&r<=Ob.UPPER_F||r>=Ob.LOWER_A&&r<=Ob.LOWER_F)))return this.addToNumericResult(e,n,t,16), +;if(!(eO(o)||(r=o,r>=Ib.UPPER_A&&r<=Ib.UPPER_F||r>=Ib.LOWER_A&&r<=Ib.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=55296&&e<=57343||e>1114111?65533:null!==(t=vb.get(e))&&void 0!==t?t:e +;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=Nb.get(e))&&void 0!==t?t:e }(this.result),this.consumed), -this.errors&&(e!==Ob.SEMI&&this.errors.missingSemicolonAfterCharacterReference(), +this.errors&&(e!==Ib.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 +;let r=n[this.treeIndex],o=(r&jb.VALUE_LENGTH)>>14 ;for(;t>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, +;if(this.treeIndex=oO(n,r,this.treeIndex+Math.max(1,o),i), +this.treeIndex<0)return 0===this.result||this.decodeMode===Fb.Attribute&&(0===o||tO(i))?0:this.emitNotTerminatedNamedEntity() +;if(r=n[this.treeIndex],o=(r&jb.VALUE_LENGTH)>>14,0!==o){ +if(i===Ib.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess) +;this.decodeMode!==Fb.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 +;const{result:t,decodeTree:n}=this,r=(n[t]&jb.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), +;return this.emitCodePoint(1===t?r[e]&~jb.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: +case Qb.NamedEntity: +return 0===this.result||this.decodeMode===Fb.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity() +;case Qb.NumericDecimal:return this.emitNumericEntity(0,2);case Qb.NumericHex: +return this.emitNumericEntity(0,3);case Qb.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 +0;case Qb.EntityStart:return 0}}}function rO(e){let t="" +;const n=new nO(e,(e=>t+=Mb(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 +const a=t+e.slice(o);return t="",a}}function oO(e,t,n,r){ +const o=(t&jb.BRANCH_LENGTH)>>7,i=t&jb.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(nr))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{ +rO(Db),rO($b),(Hb=qb=qb||(qb={})).HTML="http://www.w3.org/1999/xhtml", +Hb.MATHML="http://www.w3.org/1998/Math/MathML", +Hb.SVG="http://www.w3.org/2000/svg", +Hb.XLINK="http://www.w3.org/1999/xlink",Hb.XML="http://www.w3.org/XML/1998/namespace", +Hb.XMLNS="http://www.w3.org/2000/xmlns/", +(Zb=Vb=Vb||(Vb={})).TYPE="type",Zb.ACTION="action", +Zb.ENCODING="encoding",Zb.PROMPT="prompt", +Zb.NAME="name",Zb.COLOR="color",Zb.FACE="face", +Zb.SIZE="size",(Xb=Wb=Wb||(Wb={})).NO_QUIRKS="no-quirks", +Xb.QUIRKS="quirks",Xb.LIMITED_QUIRKS="limited-quirks",(Yb=Gb=Gb||(Gb={})).A="a", +Yb.ADDRESS="address", +Yb.ANNOTATION_XML="annotation-xml",Yb.APPLET="applet",Yb.AREA="area", +Yb.ARTICLE="article", +Yb.ASIDE="aside",Yb.B="b",Yb.BASE="base",Yb.BASEFONT="basefont", +Yb.BGSOUND="bgsound", +Yb.BIG="big",Yb.BLOCKQUOTE="blockquote",Yb.BODY="body",Yb.BR="br", +Yb.BUTTON="button", +Yb.CAPTION="caption",Yb.CENTER="center",Yb.CODE="code",Yb.COL="col", +Yb.COLGROUP="colgroup", +Yb.DD="dd",Yb.DESC="desc",Yb.DETAILS="details",Yb.DIALOG="dialog", +Yb.DIR="dir",Yb.DIV="div", +Yb.DL="dl",Yb.DT="dt",Yb.EM="em",Yb.EMBED="embed",Yb.FIELDSET="fieldset", +Yb.FIGCAPTION="figcaption",Yb.FIGURE="figure",Yb.FONT="font",Yb.FOOTER="footer", +Yb.FOREIGN_OBJECT="foreignObject", +Yb.FORM="form",Yb.FRAME="frame",Yb.FRAMESET="frameset", +Yb.H1="h1",Yb.H2="h2",Yb.H3="h3", +Yb.H4="h4",Yb.H5="h5",Yb.H6="h6",Yb.HEAD="head", +Yb.HEADER="header",Yb.HGROUP="hgroup", +Yb.HR="hr",Yb.HTML="html",Yb.I="i",Yb.IMG="img", +Yb.IMAGE="image",Yb.INPUT="input", +Yb.IFRAME="iframe",Yb.KEYGEN="keygen",Yb.LABEL="label", +Yb.LI="li",Yb.LINK="link", +Yb.LISTING="listing",Yb.MAIN="main",Yb.MALIGNMARK="malignmark", +Yb.MARQUEE="marquee", +Yb.MATH="math",Yb.MENU="menu",Yb.META="meta",Yb.MGLYPH="mglyph", +Yb.MI="mi",Yb.MO="mo", +Yb.MN="mn",Yb.MS="ms",Yb.MTEXT="mtext",Yb.NAV="nav",Yb.NOBR="nobr", +Yb.NOFRAMES="noframes", +Yb.NOEMBED="noembed",Yb.NOSCRIPT="noscript",Yb.OBJECT="object", +Yb.OL="ol",Yb.OPTGROUP="optgroup", +Yb.OPTION="option",Yb.P="p",Yb.PARAM="param",Yb.PLAINTEXT="plaintext", +Yb.PRE="pre", +Yb.RB="rb",Yb.RP="rp",Yb.RT="rt",Yb.RTC="rtc",Yb.RUBY="ruby",Yb.S="s", +Yb.SCRIPT="script", +Yb.SECTION="section",Yb.SELECT="select",Yb.SOURCE="source",Yb.SMALL="small", +Yb.SPAN="span", +Yb.STRIKE="strike",Yb.STRONG="strong",Yb.STYLE="style",Yb.SUB="sub", +Yb.SUMMARY="summary", +Yb.SUP="sup",Yb.TABLE="table",Yb.TBODY="tbody",Yb.TEMPLATE="template", +Yb.TEXTAREA="textarea", +Yb.TFOOT="tfoot",Yb.TD="td",Yb.TH="th",Yb.THEAD="thead",Yb.TITLE="title", +Yb.TR="tr", +Yb.TRACK="track",Yb.TT="tt",Yb.U="u",Yb.UL="ul",Yb.SVG="svg",Yb.VAR="var", +Yb.WBR="wbr", +Yb.XMP="xmp",(Jb=Kb=Kb||(Kb={}))[Jb.UNKNOWN=0]="UNKNOWN",Jb[Jb.A=1]="A", +Jb[Jb.ADDRESS=2]="ADDRESS", +Jb[Jb.ANNOTATION_XML=3]="ANNOTATION_XML",Jb[Jb.APPLET=4]="APPLET", +Jb[Jb.AREA=5]="AREA", +Jb[Jb.ARTICLE=6]="ARTICLE",Jb[Jb.ASIDE=7]="ASIDE",Jb[Jb.B=8]="B", +Jb[Jb.BASE=9]="BASE", +Jb[Jb.BASEFONT=10]="BASEFONT",Jb[Jb.BGSOUND=11]="BGSOUND",Jb[Jb.BIG=12]="BIG", +Jb[Jb.BLOCKQUOTE=13]="BLOCKQUOTE", +Jb[Jb.BODY=14]="BODY",Jb[Jb.BR=15]="BR",Jb[Jb.BUTTON=16]="BUTTON", +Jb[Jb.CAPTION=17]="CAPTION", +Jb[Jb.CENTER=18]="CENTER",Jb[Jb.CODE=19]="CODE",Jb[Jb.COL=20]="COL", +Jb[Jb.COLGROUP=21]="COLGROUP", +Jb[Jb.DD=22]="DD",Jb[Jb.DESC=23]="DESC",Jb[Jb.DETAILS=24]="DETAILS", +Jb[Jb.DIALOG=25]="DIALOG", +Jb[Jb.DIR=26]="DIR",Jb[Jb.DIV=27]="DIV",Jb[Jb.DL=28]="DL", +Jb[Jb.DT=29]="DT",Jb[Jb.EM=30]="EM", +Jb[Jb.EMBED=31]="EMBED",Jb[Jb.FIELDSET=32]="FIELDSET", +Jb[Jb.FIGCAPTION=33]="FIGCAPTION", +Jb[Jb.FIGURE=34]="FIGURE",Jb[Jb.FONT=35]="FONT", +Jb[Jb.FOOTER=36]="FOOTER",Jb[Jb.FOREIGN_OBJECT=37]="FOREIGN_OBJECT", +Jb[Jb.FORM=38]="FORM", +Jb[Jb.FRAME=39]="FRAME",Jb[Jb.FRAMESET=40]="FRAMESET",Jb[Jb.H1=41]="H1", +Jb[Jb.H2=42]="H2", +Jb[Jb.H3=43]="H3",Jb[Jb.H4=44]="H4",Jb[Jb.H5=45]="H5",Jb[Jb.H6=46]="H6", +Jb[Jb.HEAD=47]="HEAD", +Jb[Jb.HEADER=48]="HEADER",Jb[Jb.HGROUP=49]="HGROUP",Jb[Jb.HR=50]="HR", +Jb[Jb.HTML=51]="HTML", +Jb[Jb.I=52]="I",Jb[Jb.IMG=53]="IMG",Jb[Jb.IMAGE=54]="IMAGE", +Jb[Jb.INPUT=55]="INPUT", +Jb[Jb.IFRAME=56]="IFRAME",Jb[Jb.KEYGEN=57]="KEYGEN",Jb[Jb.LABEL=58]="LABEL", +Jb[Jb.LI=59]="LI", +Jb[Jb.LINK=60]="LINK",Jb[Jb.LISTING=61]="LISTING",Jb[Jb.MAIN=62]="MAIN", +Jb[Jb.MALIGNMARK=63]="MALIGNMARK", +Jb[Jb.MARQUEE=64]="MARQUEE",Jb[Jb.MATH=65]="MATH", +Jb[Jb.MENU=66]="MENU",Jb[Jb.META=67]="META", +Jb[Jb.MGLYPH=68]="MGLYPH",Jb[Jb.MI=69]="MI",Jb[Jb.MO=70]="MO",Jb[Jb.MN=71]="MN", +Jb[Jb.MS=72]="MS", +Jb[Jb.MTEXT=73]="MTEXT",Jb[Jb.NAV=74]="NAV",Jb[Jb.NOBR=75]="NOBR", +Jb[Jb.NOFRAMES=76]="NOFRAMES", +Jb[Jb.NOEMBED=77]="NOEMBED",Jb[Jb.NOSCRIPT=78]="NOSCRIPT", +Jb[Jb.OBJECT=79]="OBJECT", +Jb[Jb.OL=80]="OL",Jb[Jb.OPTGROUP=81]="OPTGROUP",Jb[Jb.OPTION=82]="OPTION", +Jb[Jb.P=83]="P", +Jb[Jb.PARAM=84]="PARAM",Jb[Jb.PLAINTEXT=85]="PLAINTEXT",Jb[Jb.PRE=86]="PRE", +Jb[Jb.RB=87]="RB", +Jb[Jb.RP=88]="RP",Jb[Jb.RT=89]="RT",Jb[Jb.RTC=90]="RTC",Jb[Jb.RUBY=91]="RUBY", +Jb[Jb.S=92]="S", +Jb[Jb.SCRIPT=93]="SCRIPT",Jb[Jb.SECTION=94]="SECTION",Jb[Jb.SELECT=95]="SELECT", +Jb[Jb.SOURCE=96]="SOURCE", +Jb[Jb.SMALL=97]="SMALL",Jb[Jb.SPAN=98]="SPAN",Jb[Jb.STRIKE=99]="STRIKE", +Jb[Jb.STRONG=100]="STRONG", +Jb[Jb.STYLE=101]="STYLE",Jb[Jb.SUB=102]="SUB",Jb[Jb.SUMMARY=103]="SUMMARY", +Jb[Jb.SUP=104]="SUP", +Jb[Jb.TABLE=105]="TABLE",Jb[Jb.TBODY=106]="TBODY",Jb[Jb.TEMPLATE=107]="TEMPLATE", +Jb[Jb.TEXTAREA=108]="TEXTAREA", +Jb[Jb.TFOOT=109]="TFOOT",Jb[Jb.TD=110]="TD",Jb[Jb.TH=111]="TH", +Jb[Jb.THEAD=112]="THEAD", +Jb[Jb.TITLE=113]="TITLE",Jb[Jb.TR=114]="TR",Jb[Jb.TRACK=115]="TRACK", +Jb[Jb.TT=116]="TT", +Jb[Jb.U=117]="U",Jb[Jb.UL=118]="UL",Jb[Jb.SVG=119]="SVG",Jb[Jb.VAR=120]="VAR", +Jb[Jb.WBR=121]="WBR",Jb[Jb.XMP=122]="XMP" +;const iO=new Map([[Gb.A,Kb.A],[Gb.ADDRESS,Kb.ADDRESS],[Gb.ANNOTATION_XML,Kb.ANNOTATION_XML],[Gb.APPLET,Kb.APPLET],[Gb.AREA,Kb.AREA],[Gb.ARTICLE,Kb.ARTICLE],[Gb.ASIDE,Kb.ASIDE],[Gb.B,Kb.B],[Gb.BASE,Kb.BASE],[Gb.BASEFONT,Kb.BASEFONT],[Gb.BGSOUND,Kb.BGSOUND],[Gb.BIG,Kb.BIG],[Gb.BLOCKQUOTE,Kb.BLOCKQUOTE],[Gb.BODY,Kb.BODY],[Gb.BR,Kb.BR],[Gb.BUTTON,Kb.BUTTON],[Gb.CAPTION,Kb.CAPTION],[Gb.CENTER,Kb.CENTER],[Gb.CODE,Kb.CODE],[Gb.COL,Kb.COL],[Gb.COLGROUP,Kb.COLGROUP],[Gb.DD,Kb.DD],[Gb.DESC,Kb.DESC],[Gb.DETAILS,Kb.DETAILS],[Gb.DIALOG,Kb.DIALOG],[Gb.DIR,Kb.DIR],[Gb.DIV,Kb.DIV],[Gb.DL,Kb.DL],[Gb.DT,Kb.DT],[Gb.EM,Kb.EM],[Gb.EMBED,Kb.EMBED],[Gb.FIELDSET,Kb.FIELDSET],[Gb.FIGCAPTION,Kb.FIGCAPTION],[Gb.FIGURE,Kb.FIGURE],[Gb.FONT,Kb.FONT],[Gb.FOOTER,Kb.FOOTER],[Gb.FOREIGN_OBJECT,Kb.FOREIGN_OBJECT],[Gb.FORM,Kb.FORM],[Gb.FRAME,Kb.FRAME],[Gb.FRAMESET,Kb.FRAMESET],[Gb.H1,Kb.H1],[Gb.H2,Kb.H2],[Gb.H3,Kb.H3],[Gb.H4,Kb.H4],[Gb.H5,Kb.H5],[Gb.H6,Kb.H6],[Gb.HEAD,Kb.HEAD],[Gb.HEADER,Kb.HEADER],[Gb.HGROUP,Kb.HGROUP],[Gb.HR,Kb.HR],[Gb.HTML,Kb.HTML],[Gb.I,Kb.I],[Gb.IMG,Kb.IMG],[Gb.IMAGE,Kb.IMAGE],[Gb.INPUT,Kb.INPUT],[Gb.IFRAME,Kb.IFRAME],[Gb.KEYGEN,Kb.KEYGEN],[Gb.LABEL,Kb.LABEL],[Gb.LI,Kb.LI],[Gb.LINK,Kb.LINK],[Gb.LISTING,Kb.LISTING],[Gb.MAIN,Kb.MAIN],[Gb.MALIGNMARK,Kb.MALIGNMARK],[Gb.MARQUEE,Kb.MARQUEE],[Gb.MATH,Kb.MATH],[Gb.MENU,Kb.MENU],[Gb.META,Kb.META],[Gb.MGLYPH,Kb.MGLYPH],[Gb.MI,Kb.MI],[Gb.MO,Kb.MO],[Gb.MN,Kb.MN],[Gb.MS,Kb.MS],[Gb.MTEXT,Kb.MTEXT],[Gb.NAV,Kb.NAV],[Gb.NOBR,Kb.NOBR],[Gb.NOFRAMES,Kb.NOFRAMES],[Gb.NOEMBED,Kb.NOEMBED],[Gb.NOSCRIPT,Kb.NOSCRIPT],[Gb.OBJECT,Kb.OBJECT],[Gb.OL,Kb.OL],[Gb.OPTGROUP,Kb.OPTGROUP],[Gb.OPTION,Kb.OPTION],[Gb.P,Kb.P],[Gb.PARAM,Kb.PARAM],[Gb.PLAINTEXT,Kb.PLAINTEXT],[Gb.PRE,Kb.PRE],[Gb.RB,Kb.RB],[Gb.RP,Kb.RP],[Gb.RT,Kb.RT],[Gb.RTC,Kb.RTC],[Gb.RUBY,Kb.RUBY],[Gb.S,Kb.S],[Gb.SCRIPT,Kb.SCRIPT],[Gb.SECTION,Kb.SECTION],[Gb.SELECT,Kb.SELECT],[Gb.SOURCE,Kb.SOURCE],[Gb.SMALL,Kb.SMALL],[Gb.SPAN,Kb.SPAN],[Gb.STRIKE,Kb.STRIKE],[Gb.STRONG,Kb.STRONG],[Gb.STYLE,Kb.STYLE],[Gb.SUB,Kb.SUB],[Gb.SUMMARY,Kb.SUMMARY],[Gb.SUP,Kb.SUP],[Gb.TABLE,Kb.TABLE],[Gb.TBODY,Kb.TBODY],[Gb.TEMPLATE,Kb.TEMPLATE],[Gb.TEXTAREA,Kb.TEXTAREA],[Gb.TFOOT,Kb.TFOOT],[Gb.TD,Kb.TD],[Gb.TH,Kb.TH],[Gb.THEAD,Kb.THEAD],[Gb.TITLE,Kb.TITLE],[Gb.TR,Kb.TR],[Gb.TRACK,Kb.TRACK],[Gb.TT,Kb.TT],[Gb.U,Kb.U],[Gb.UL,Kb.UL],[Gb.SVG,Kb.SVG],[Gb.VAR,Kb.VAR],[Gb.WBR,Kb.WBR],[Gb.XMP,Kb.XMP]]) +;function aO(e){var t;return null!==(t=iO.get(e))&&void 0!==t?t:Kb.UNKNOWN} +const sO=Kb,lO={ +[qb.HTML]:new Set([sO.ADDRESS,sO.APPLET,sO.AREA,sO.ARTICLE,sO.ASIDE,sO.BASE,sO.BASEFONT,sO.BGSOUND,sO.BLOCKQUOTE,sO.BODY,sO.BR,sO.BUTTON,sO.CAPTION,sO.CENTER,sO.COL,sO.COLGROUP,sO.DD,sO.DETAILS,sO.DIR,sO.DIV,sO.DL,sO.DT,sO.EMBED,sO.FIELDSET,sO.FIGCAPTION,sO.FIGURE,sO.FOOTER,sO.FORM,sO.FRAME,sO.FRAMESET,sO.H1,sO.H2,sO.H3,sO.H4,sO.H5,sO.H6,sO.HEAD,sO.HEADER,sO.HGROUP,sO.HR,sO.HTML,sO.IFRAME,sO.IMG,sO.INPUT,sO.LI,sO.LINK,sO.LISTING,sO.MAIN,sO.MARQUEE,sO.MENU,sO.META,sO.NAV,sO.NOEMBED,sO.NOFRAMES,sO.NOSCRIPT,sO.OBJECT,sO.OL,sO.P,sO.PARAM,sO.PLAINTEXT,sO.PRE,sO.SCRIPT,sO.SECTION,sO.SELECT,sO.SOURCE,sO.STYLE,sO.SUMMARY,sO.TABLE,sO.TBODY,sO.TD,sO.TEMPLATE,sO.TEXTAREA,sO.TFOOT,sO.TH,sO.THEAD,sO.TITLE,sO.TR,sO.TRACK,sO.UL,sO.WBR,sO.XMP]), +[qb.MATHML]:new Set([sO.MI,sO.MO,sO.MN,sO.MS,sO.MTEXT,sO.ANNOTATION_XML]), +[qb.SVG]:new Set([sO.TITLE,sO.FOREIGN_OBJECT,sO.DESC]),[qb.XLINK]:new Set, +[qb.XML]:new Set,[qb.XMLNS]:new Set};function cO(e){ +return e===sO.H1||e===sO.H2||e===sO.H3||e===sO.H4||e===sO.H5||e===sO.H6} +Gb.STYLE,Gb.SCRIPT,Gb.XMP,Gb.IFRAME,Gb.NOEMBED,Gb.NOFRAMES,Gb.PLAINTEXT +;const uO=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 dO,pO +;(pO=dO||(dO={}))[pO.DATA=0]="DATA",pO[pO.RCDATA=1]="RCDATA",pO[pO.RAWTEXT=2]="RAWTEXT", +pO[pO.SCRIPT_DATA=3]="SCRIPT_DATA", +pO[pO.PLAINTEXT=4]="PLAINTEXT",pO[pO.TAG_OPEN=5]="TAG_OPEN", +pO[pO.END_TAG_OPEN=6]="END_TAG_OPEN", +pO[pO.TAG_NAME=7]="TAG_NAME",pO[pO.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN", +pO[pO.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN", +pO[pO.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME", +pO[pO.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN", +pO[pO.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN", +pO[pO.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME", +pO[pO.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN", +pO[pO.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN", +pO[pO.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME", +pO[pO.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START", +pO[pO.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH", +pO[pO.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED", +pO[pO.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH", +pO[pO.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH", +pO[pO.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN", +pO[pO.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN", +pO[pO.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME", +pO[pO.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START", +pO[pO.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED", +pO[pO.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH", +pO[pO.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH", +pO[pO.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN", +pO[pO.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END", +pO[pO.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME", +pO[pO.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME", +pO[pO.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME", +pO[pO.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE", +pO[pO.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED", +pO[pO.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED", +pO[pO.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED", +pO[pO.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED", +pO[pO.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG", +pO[pO.BOGUS_COMMENT=40]="BOGUS_COMMENT", +pO[pO.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN", +pO[pO.COMMENT_START=42]="COMMENT_START", +pO[pO.COMMENT_START_DASH=43]="COMMENT_START_DASH", +pO[pO.COMMENT=44]="COMMENT",pO[pO.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN", +pO[pO.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG", +pO[pO.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH", +pO[pO.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH", +pO[pO.COMMENT_END_DASH=49]="COMMENT_END_DASH", +pO[pO.COMMENT_END=50]="COMMENT_END", +pO[pO.COMMENT_END_BANG=51]="COMMENT_END_BANG", +pO[pO.DOCTYPE=52]="DOCTYPE",pO[pO.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME", +pO[pO.DOCTYPE_NAME=54]="DOCTYPE_NAME", +pO[pO.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME", +pO[pO.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD", +pO[pO.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER", +pO[pO.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED", +pO[pO.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED", +pO[pO.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER", +pO[pO.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS", +pO[pO.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD", +pO[pO.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER", +pO[pO.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED", +pO[pO.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED", +pO[pO.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER", +pO[pO.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",pO[pO.CDATA_SECTION=68]="CDATA_SECTION", +pO[pO.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET", +pO[pO.CDATA_SECTION_END=70]="CDATA_SECTION_END", +pO[pO.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE", +pO[pO.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE", +pO[pO.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND", +pO[pO.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE", +pO[pO.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START", +pO[pO.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE", +pO[pO.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE", +pO[pO.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END" +;const hO={DATA:dO.DATA,RCDATA:dO.RCDATA,RAWTEXT:dO.RAWTEXT, +SCRIPT_DATA:dO.SCRIPT_DATA,PLAINTEXT:dO.PLAINTEXT,CDATA_SECTION:dO.CDATA_SECTION +};function fO(e){return e>=fb.DIGIT_0&&e<=fb.DIGIT_9}function mO(e){ +return e>=fb.LATIN_CAPITAL_A&&e<=fb.LATIN_CAPITAL_Z}function gO(e){ +return function(e){return e>=fb.LATIN_SMALL_A&&e<=fb.LATIN_SMALL_Z}(e)||mO(e)} +function vO(e){return gO(e)||fO(e)}function bO(e){ +return e>=fb.LATIN_CAPITAL_A&&e<=fb.LATIN_CAPITAL_F}function OO(e){ +return e>=fb.LATIN_SMALL_A&&e<=fb.LATIN_SMALL_F}function yO(e){return e+32} +function wO(e){ +return e===fb.SPACE||e===fb.LINE_FEED||e===fb.TABULATION||e===fb.FORM_FEED} +function kO(e){return wO(e)||e===fb.SOLIDUS||e===fb.GREATER_THAN_SIGN}class xO{ 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.active=!1,this.state=dO.DATA,this.returnState=dO.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)} +},this.preprocessor=new Tb(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?{ @@ -5666,21 +5768,21 @@ _reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){ this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(lb.endTagWithAttributes), -e.selfClosing&&this._err(lb.endTagWithTrailingSolidus), +;this.prepareToken(e),e.tagID=aO(e.tagName),e.type===Cb.START_TAG?(this.lastStartTagName=e.tagName, +this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(_b.endTagWithAttributes), +e.selfClosing&&this._err(_b.endTagWithTrailingSolidus), this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()} emitCurrentComment(e){ this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk() @@ -5702,651 +5804,651 @@ this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk 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.currentCharacterToken.type){case Cb.CHARACTER: this.handler.onCharacter(this.currentCharacterToken);break -;case db.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken) -;break;case db.WHITESPACE_CHARACTER: +;case Cb.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken) +;break;case Cb.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} +this.handler.onEof({type:Cb.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 +const t=wO(e)?Cb.WHITESPACE_CHARACTER:e===fb.NULL?Cb.NULL_CHARACTER:Cb.CHARACTER ;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))} -_emitChars(e){this._appendCharToCurrentCharacterToken(db.CHARACTER,e)} +_emitChars(e){this._appendCharToCurrentCharacterToken(Cb.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 +;for(let i=0,a=Db[0];i>=0&&(i=oO(Db,a,i+1,e),!(i<0));e=this._consume()){ +n+=1,a=Db[i];const s=a&jb.VALUE_LENGTH;if(s){const a=(s>>14)-1 +;if(e!==fb.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((o=this.preprocessor.peek(1))===fb.EQUALS_SIGN||vO(o))?(t=[fb.AMPERSAND], +i+=a):(t=0===a?[Db[i]&~jb.VALUE_LENGTH]:1===a?[Db[++i]]:[Db[++i],Db[++i]], +n=0,r=e!==fb.SEMICOLON),0===a){this._consume();break}}}var o ;return this._unconsume(n), -r&&!this.preprocessor.endOfChunkHit&&this._err(lb.missingSemicolonAfterCharacterReference), +r&&!this.preprocessor.endOfChunkHit&&this._err(_b.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 +return this.returnState===dO.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===dO.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===dO.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: +}_callState(e){switch(this.state){case dO.DATA:this._stateData(e);break +;case dO.RCDATA:this._stateRcdata(e);break;case dO.RAWTEXT:this._stateRawtext(e) +;break;case dO.SCRIPT_DATA:this._stateScriptData(e);break;case dO.PLAINTEXT: +this._statePlaintext(e);break;case dO.TAG_OPEN:this._stateTagOpen(e);break +;case dO.END_TAG_OPEN:this._stateEndTagOpen(e);break;case dO.TAG_NAME: +this._stateTagName(e);break;case dO.RCDATA_LESS_THAN_SIGN: +this._stateRcdataLessThanSign(e);break;case dO.RCDATA_END_TAG_OPEN: +this._stateRcdataEndTagOpen(e);break;case dO.RCDATA_END_TAG_NAME: +this._stateRcdataEndTagName(e);break;case dO.RAWTEXT_LESS_THAN_SIGN: +this._stateRawtextLessThanSign(e);break;case dO.RAWTEXT_END_TAG_OPEN: +this._stateRawtextEndTagOpen(e);break;case dO.RAWTEXT_END_TAG_NAME: +this._stateRawtextEndTagName(e);break;case dO.SCRIPT_DATA_LESS_THAN_SIGN: +this._stateScriptDataLessThanSign(e);break;case dO.SCRIPT_DATA_END_TAG_OPEN: +this._stateScriptDataEndTagOpen(e);break;case dO.SCRIPT_DATA_END_TAG_NAME: +this._stateScriptDataEndTagName(e);break;case dO.SCRIPT_DATA_ESCAPE_START: +this._stateScriptDataEscapeStart(e);break;case dO.SCRIPT_DATA_ESCAPE_START_DASH: +this._stateScriptDataEscapeStartDash(e);break;case dO.SCRIPT_DATA_ESCAPED: +this._stateScriptDataEscaped(e);break;case dO.SCRIPT_DATA_ESCAPED_DASH: +this._stateScriptDataEscapedDash(e);break;case dO.SCRIPT_DATA_ESCAPED_DASH_DASH: this._stateScriptDataEscapedDashDash(e);break -;case Wb.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN: +;case dO.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN: this._stateScriptDataEscapedLessThanSign(e);break -;case Wb.SCRIPT_DATA_ESCAPED_END_TAG_OPEN: +;case dO.SCRIPT_DATA_ESCAPED_END_TAG_OPEN: this._stateScriptDataEscapedEndTagOpen(e);break -;case Wb.SCRIPT_DATA_ESCAPED_END_TAG_NAME: +;case dO.SCRIPT_DATA_ESCAPED_END_TAG_NAME: this._stateScriptDataEscapedEndTagName(e);break -;case Wb.SCRIPT_DATA_DOUBLE_ESCAPE_START: +;case dO.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: +;case dO.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break +;case dO.SCRIPT_DATA_DOUBLE_ESCAPED_DASH: this._stateScriptDataDoubleEscapedDash(e);break -;case Wb.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH: +;case dO.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH: this._stateScriptDataDoubleEscapedDashDash(e);break -;case Wb.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN: +;case dO.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: +;case dO.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e) +;break;case dO.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break +;case dO.ATTRIBUTE_NAME:this._stateAttributeName(e);break +;case dO.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break +;case dO.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break +;case dO.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e) +;break;case dO.ATTRIBUTE_VALUE_SINGLE_QUOTED: +this._stateAttributeValueSingleQuoted(e);break;case dO.ATTRIBUTE_VALUE_UNQUOTED: +this._stateAttributeValueUnquoted(e);break;case dO.AFTER_ATTRIBUTE_VALUE_QUOTED: +this._stateAfterAttributeValueQuoted(e);break;case dO.SELF_CLOSING_START_TAG: +this._stateSelfClosingStartTag(e);break;case dO.BOGUS_COMMENT: +this._stateBogusComment(e);break;case dO.MARKUP_DECLARATION_OPEN: +this._stateMarkupDeclarationOpen(e);break;case dO.COMMENT_START: +this._stateCommentStart(e);break;case dO.COMMENT_START_DASH: +this._stateCommentStartDash(e);break;case dO.COMMENT:this._stateComment(e);break +;case dO.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break +;case dO.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break +;case dO.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: +;case dO.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH: +this._stateCommentLessThanSignBangDashDash(e);break;case dO.COMMENT_END_DASH: +this._stateCommentEndDash(e);break;case dO.COMMENT_END:this._stateCommentEnd(e) +;break;case dO.COMMENT_END_BANG:this._stateCommentEndBang(e);break +;case dO.DOCTYPE:this._stateDoctype(e);break;case dO.BEFORE_DOCTYPE_NAME: +this._stateBeforeDoctypeName(e);break;case dO.DOCTYPE_NAME: +this._stateDoctypeName(e);break;case dO.AFTER_DOCTYPE_NAME: +this._stateAfterDoctypeName(e);break;case dO.AFTER_DOCTYPE_PUBLIC_KEYWORD: this._stateAfterDoctypePublicKeyword(e);break -;case Wb.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER: +;case dO.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER: this._stateBeforeDoctypePublicIdentifier(e);break -;case Wb.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED: +;case dO.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED: this._stateDoctypePublicIdentifierDoubleQuoted(e);break -;case Wb.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED: +;case dO.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED: this._stateDoctypePublicIdentifierSingleQuoted(e);break -;case Wb.AFTER_DOCTYPE_PUBLIC_IDENTIFIER: +;case dO.AFTER_DOCTYPE_PUBLIC_IDENTIFIER: this._stateAfterDoctypePublicIdentifier(e);break -;case Wb.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS: +;case dO.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: +;case dO.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e) +;break;case dO.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER: this._stateBeforeDoctypeSystemIdentifier(e);break -;case Wb.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED: +;case dO.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED: this._stateDoctypeSystemIdentifierDoubleQuoted(e);break -;case Wb.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED: +;case dO.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: +;case dO.AFTER_DOCTYPE_SYSTEM_IDENTIFIER: +this._stateAfterDoctypeSystemIdentifier(e);break;case dO.BOGUS_DOCTYPE: +this._stateBogusDoctype(e);break;case dO.CDATA_SECTION: +this._stateCdataSection(e);break;case dO.CDATA_SECTION_BRACKET: +this._stateCdataSectionBracket(e);break;case dO.CDATA_SECTION_END: +this._stateCdataSectionEnd(e);break;case dO.CHARACTER_REFERENCE: +this._stateCharacterReference(e);break;case dO.NAMED_CHARACTER_REFERENCE: +this._stateNamedCharacterReference(e);break;case dO.AMBIGUOUS_AMPERSAND: +this._stateAmbiguousAmpersand(e);break;case dO.NUMERIC_CHARACTER_REFERENCE: this._stateNumericCharacterReference(e);break -;case Wb.HEXADEMICAL_CHARACTER_REFERENCE_START: +;case dO.HEXADEMICAL_CHARACTER_REFERENCE_START: this._stateHexademicalCharacterReferenceStart(e);break -;case Wb.HEXADEMICAL_CHARACTER_REFERENCE: +;case dO.HEXADEMICAL_CHARACTER_REFERENCE: this._stateHexademicalCharacterReference(e);break -;case Wb.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e) -;break;case Wb.NUMERIC_CHARACTER_REFERENCE_END: +;case dO.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e) +;break;case dO.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: +case fb.LESS_THAN_SIGN:this.state=dO.TAG_OPEN;break;case fb.AMPERSAND: +this.returnState=dO.DATA,this.state=dO.CHARACTER_REFERENCE;break;case fb.NULL: +this._err(_b.unexpectedNullCharacter),this._emitCodePoint(e);break;case fb.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: +switch(e){case fb.AMPERSAND: +this.returnState=dO.RCDATA,this.state=dO.CHARACTER_REFERENCE;break +;case fb.LESS_THAN_SIGN:this.state=dO.RCDATA_LESS_THAN_SIGN;break;case fb.NULL: +this._err(_b.unexpectedNullCharacter),this._emitChars(hb);break;case fb.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: +switch(e){case fb.LESS_THAN_SIGN:this.state=dO.RAWTEXT_LESS_THAN_SIGN;break +;case fb.NULL:this._err(_b.unexpectedNullCharacter),this._emitChars(hb);break +;case fb.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}} +_stateScriptData(e){switch(e){case fb.LESS_THAN_SIGN: +this.state=dO.SCRIPT_DATA_LESS_THAN_SIGN;break;case fb.NULL: +this._err(_b.unexpectedNullCharacter),this._emitChars(hb);break;case fb.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)}} +switch(e){case fb.NULL:this._err(_b.unexpectedNullCharacter),this._emitChars(hb) +;break;case fb.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), +if(gO(e))this._createStartTagToken(),this.state=dO.TAG_NAME,this._stateTagName(e);else switch(e){ +case fb.EXCLAMATION_MARK:this.state=dO.MARKUP_DECLARATION_OPEN;break +;case fb.SOLIDUS:this.state=dO.END_TAG_OPEN;break;case fb.QUESTION_MARK: +this._err(_b.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 +this.state=dO.BOGUS_COMMENT,this._stateBogusComment(e);break;case fb.EOF: +this._err(_b.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break ;default: -this._err(lb.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Wb.DATA, +this._err(_b.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=dO.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("");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)}} +case fb.HYPHEN_MINUS: +this.state=dO.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break +;case fb.LESS_THAN_SIGN:this.state=dO.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break +;case fb.NULL: +this._err(_b.unexpectedNullCharacter),this.state=dO.SCRIPT_DATA_ESCAPED, +this._emitChars(hb);break;case fb.EOF: +this._err(_b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default: +this.state=dO.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}} +_stateScriptDataEscapedDashDash(e){switch(e){case fb.HYPHEN_MINUS: +this._emitChars("-");break;case fb.LESS_THAN_SIGN: +this.state=dO.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break +;case fb.GREATER_THAN_SIGN:this.state=dO.SCRIPT_DATA,this._emitChars(">");break +;case fb.NULL: +this._err(_b.unexpectedNullCharacter),this.state=dO.SCRIPT_DATA_ESCAPED, +this._emitChars(hb);break;case fb.EOF: +this._err(_b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default: +this.state=dO.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, +e===fb.SOLIDUS?this.state=dO.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:gO(e)?(this._emitChars("<"), +this.state=dO.SCRIPT_DATA_DOUBLE_ESCAPE_START, this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"), -this.state=Wb.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))} +this.state=dO.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))} _stateScriptDataEscapedEndTagOpen(e){ -Jb(e)?(this.state=Wb.SCRIPT_DATA_ESCAPED_END_TAG_NAME, +gO(e)?(this.state=dO.SCRIPT_DATA_ESCAPED_END_TAG_NAME, this._stateScriptDataEscapedEndTagName(e)):(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)}} +case fb.HYPHEN_MINUS: +this.state=dO.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break +;case fb.LESS_THAN_SIGN:this.state=dO.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, +this._emitChars("<");break;case fb.NULL: +this._err(_b.unexpectedNullCharacter),this.state=dO.SCRIPT_DATA_DOUBLE_ESCAPED, +this._emitChars(hb);break;case fb.EOF: +this._err(_b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default: +this.state=dO.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}} +_stateScriptDataDoubleEscapedDashDash(e){switch(e){case fb.HYPHEN_MINUS: +this._emitChars("-");break;case fb.LESS_THAN_SIGN: +this.state=dO.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<") +;break;case fb.GREATER_THAN_SIGN:this.state=dO.SCRIPT_DATA,this._emitChars(">") +;break;case fb.NULL: +this._err(_b.unexpectedNullCharacter),this.state=dO.SCRIPT_DATA_DOUBLE_ESCAPED, +this._emitChars(hb);break;case fb.EOF: +this._err(_b.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default: +this.state=dO.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, +e===fb.SOLIDUS?(this.state=dO.SCRIPT_DATA_DOUBLE_ESCAPE_END, +this._emitChars("/")):(this.state=dO.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){ -if(this.preprocessor.startsWith(nb,!1)&&iO(this.preprocessor.peek(nb.length))){ +if(this.preprocessor.startsWith(Ob,!1)&&kO(this.preprocessor.peek(Ob.length))){ this._emitCodePoint(e) -;for(let e=0;e1114111)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) +if(this.charRefCode===fb.NULL)this._err(_b.nullCharacterReference), +this.charRefCode=fb.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(_b.characterReferenceOutsideUnicodeRange), +this.charRefCode=fb.REPLACEMENT_CHARACTER;else if(kb(this.charRefCode))this._err(_b.surrogateCharacterReference), +this.charRefCode=fb.REPLACEMENT_CHARACTER;else if(Sb(this.charRefCode))this._err(_b.noncharacterCharacterReference);else if(xb(this.charRefCode)||this.charRefCode===fb.CARRIAGE_RETURN){ +this._err(_b.controlCharacterReference);const e=uO.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(){ +const SO=new Set([Kb.DD,Kb.DT,Kb.LI,Kb.OPTGROUP,Kb.OPTION,Kb.P,Kb.RB,Kb.RP,Kb.RT,Kb.RTC]),_O=new Set([...SO,Kb.CAPTION,Kb.COLGROUP,Kb.TBODY,Kb.TD,Kb.TFOOT,Kb.TH,Kb.THEAD,Kb.TR]),EO=new Map([[Kb.APPLET,qb.HTML],[Kb.CAPTION,qb.HTML],[Kb.HTML,qb.HTML],[Kb.MARQUEE,qb.HTML],[Kb.OBJECT,qb.HTML],[Kb.TABLE,qb.HTML],[Kb.TD,qb.HTML],[Kb.TEMPLATE,qb.HTML],[Kb.TH,qb.HTML],[Kb.ANNOTATION_XML,qb.MATHML],[Kb.MI,qb.MATHML],[Kb.MN,qb.MATHML],[Kb.MO,qb.MATHML],[Kb.MS,qb.MATHML],[Kb.MTEXT,qb.MATHML],[Kb.DESC,qb.SVG],[Kb.FOREIGN_OBJECT,qb.SVG],[Kb.TITLE,qb.SVG]]),TO=[Kb.H1,Kb.H2,Kb.H3,Kb.H4,Kb.H5,Kb.H6],CO=[Kb.TR,Kb.TEMPLATE,Kb.HTML],AO=[Kb.TBODY,Kb.TFOOT,Kb.THEAD,Kb.TEMPLATE,Kb.HTML],PO=[Kb.TABLE,Kb.TEMPLATE,Kb.HTML],DO=[Kb.TD,Kb.TH] +;class $O{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){ +this.tmplCount=0,this.currentTagId=Kb.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 +return this.currentTagId===Kb.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===qb.HTML }_updateCurrentElement(){ this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop] }push(e,t){ @@ -6363,7 +6465,7 @@ 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) +}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==qb.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), @@ -6371,60 +6473,60 @@ this.stackTop--,this._updateCurrentElement(), this.handler.onItemPop(t,this.stackTop=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) +this.clearBackTo(PO,qb.HTML)}clearBackToTableBodyContext(){ +this.clearBackTo(AO,qb.HTML)}clearBackToTableRowContext(){ +this.clearBackTo(CO,qb.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} +return this.stackTop>=1&&this.tagIDs[1]===Kb.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} +isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===Kb.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} +;if(n===e&&r===qb.HTML)return!0;if(EO.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} +;if(cO(t)&&n===qb.HTML)return!0;if(EO.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} +;if(n===e&&r===qb.HTML)return!0 +;if((n===Kb.UL||n===Kb.OL)&&r===qb.HTML||EO.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} +;if(n===e&&r===qb.HTML)return!0 +;if(n===Kb.BUTTON&&r===qb.HTML||EO.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} +;if(this.treeAdapter.getNamespaceURI(this.items[t])===qb.HTML){if(n===e)return!0 +;if(n===Kb.TABLE||n===Kb.TEMPLATE||n===Kb.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){ +;if(this.treeAdapter.getNamespaceURI(this.items[e])===qb.HTML){ +if(t===Kb.TBODY||t===Kb.THEAD||t===Kb.TFOOT)return!0 +;if(t===Kb.TABLE||t===Kb.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()} +;if(this.treeAdapter.getNamespaceURI(this.items[t])===qb.HTML){if(n===e)return!0 +;if(n!==Kb.OPTION&&n!==Kb.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){ +for(;SO.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){ +for(;_O.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){ +for(;this.currentTagId!==e&&_O.has(this.currentTagId);)this.pop()}}var RO,NO +;(NO=RO=RO||(RO={}))[NO.Marker=0]="Marker",NO[NO.Element=1]="Element";const MO={ +type:RO.Marker};class IO{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[e.name,e.value])));let o=0 ;for(let i=0;ir.get(e.name)===e.value))&&(o+=1, -o>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(bO)} +o>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(MO)} pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({ -type:gO.Element,element:e,token:t})}insertElementAfterBookmark(e,t){ +type:RO.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){ +type:RO.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) +clearToLastMarker(){const e=this.entries.indexOf(MO) ;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:[]}), +const t=this.entries.find((t=>t.type===RO.Marker||this.treeAdapter.getTagName(t.element)===e)) +;return t&&t.type===RO.Element?t:null}getElementEntry(e){ +return this.entries.find((t=>t.type===RO.Element&&t.element===e))}} +function LO(e){return{nodeName:"#text",value:e,parentNode:null}}const jO={ +createDocument:()=>({nodeName:"#document",mode:Wb.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", @@ -6455,14 +6557,14 @@ insertBefore(e,t,n){const r=e.childNodes.indexOf(n) },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)}}, +name:t,publicId:n,systemId:r,parentNode:null};jO.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))}, +;if(jO.isTextNode(n))return void(n.value+=t)}jO.appendChild(e,LO(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)}, +;r&&jO.isTextNode(r)?r.value+=t:jO.insertBefore(e,LO(t),n)}, adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name))) ;for(let r=0;re.childNodes[0],getChildNodes:e=>e.childNodes, @@ -6478,83 +6580,83 @@ 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={ +},BO="html",QO="about:legacy-compat",UO="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",FO=["+//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//"],zO=[...FO,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],qO=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),HO=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],VO=[...HO,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"] +;function ZO(e,t){return t.some((t=>e.startsWith(t)))}const WO={ 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.toLowerCase(),e]))),KO=new Map([["xlink:actuate",{ +prefix:"xlink",name:"actuate",namespace:qb.XLINK}],["xlink:arcrole",{ +prefix:"xlink",name:"arcrole",namespace:qb.XLINK}],["xlink:href",{ +prefix:"xlink",name:"href",namespace:qb.XLINK}],["xlink:role",{prefix:"xlink", +name:"role",namespace:qb.XLINK}],["xlink:show",{prefix:"xlink",name:"show", +namespace:qb.XLINK}],["xlink:title",{prefix:"xlink",name:"title", +namespace:qb.XLINK}],["xlink:type",{prefix:"xlink",name:"type", +namespace:qb.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:qb.XML +}],["xml:lang",{prefix:"xml",name:"lang",namespace:qb.XML}],["xml:space",{ +prefix:"xml",name:"space",namespace:qb.XML}],["xmlns",{prefix:"",name:"xmlns", +namespace:qb.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink", +namespace:qb.XMLNS +}]]),JO=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]))),ey=new Set([Kb.B,Kb.BIG,Kb.BLOCKQUOTE,Kb.BODY,Kb.BR,Kb.CENTER,Kb.CODE,Kb.DD,Kb.DIV,Kb.DL,Kb.DT,Kb.EM,Kb.EMBED,Kb.H1,Kb.H2,Kb.H3,Kb.H4,Kb.H5,Kb.H6,Kb.HEAD,Kb.HR,Kb.I,Kb.IMG,Kb.LI,Kb.LISTING,Kb.MENU,Kb.META,Kb.NOBR,Kb.OL,Kb.P,Kb.PRE,Kb.RUBY,Kb.S,Kb.SMALL,Kb.SPAN,Kb.STRONG,Kb.STRIKE,Kb.SUB,Kb.SUP,Kb.TABLE,Kb.TT,Kb.U,Kb.UL,Kb.VAR]) +;function ty(e){for(let t=0;tthis.treeAdapter.isDocumentTypeNode(e))) @@ -6598,18 +6700,18 @@ 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,[]) +_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,qb.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() +const t=this.treeAdapter.createElement(e.tagName,qb.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,[]) +const e=this.treeAdapter.createElement(Gb.HTML,qb.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){ +this.openElements.push(e,Kb.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) @@ -6627,7 +6729,7 @@ const{endLine:t,endCol:n,endOffset:r}=e.location 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?{ +const n=t.location,r=this.treeAdapter.getTagName(e),o=t.type===Cb.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)}} @@ -6635,653 +6737,653 @@ 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)}} +(e.tagID!==Kb.SVG||this.treeAdapter.getTagName(t)!==Gb.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==qb.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===Kb.MGLYPH||e.tagID===Kb.MALIGNMARK)&&!this._isIntegrationPoint(n,t,qb.HTML)) +}_processToken(e){switch(e.type){case Cb.CHARACTER:this.onCharacter(e);break +;case Cb.NULL_CHARACTER:this.onNullCharacter(e);break;case Cb.COMMENT: +this.onComment(e);break;case Cb.DOCTYPE:this.onDoctype(e);break +;case Cb.START_TAG:this._processStartTag(e);break;case Cb.END_TAG: +this.onEndTag(e);break;case Cb.EOF:this.onEof(e);break +;case Cb.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}} _isIntegrationPoint(e,t,n){ -return UO(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n) +return oy(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))) +const t=this.activeFormattingElements.entries.findIndex((e=>e.type===RO.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} +this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ly.IN_ROW} _closePElement(){ -this.openElements.generateImpliedEndTagsWithExclusion(Ib.P),this.openElements.popUntilTagNamePopped(Ib.P) +this.openElements.generateImpliedEndTagsWithExclusion(Kb.P),this.openElements.popUntilTagNamePopped(Kb.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){ +case Kb.TR:return void(this.insertionMode=ly.IN_ROW);case Kb.TBODY: +case Kb.THEAD:case Kb.TFOOT:return void(this.insertionMode=ly.IN_TABLE_BODY) +;case Kb.CAPTION:return void(this.insertionMode=ly.IN_CAPTION);case Kb.COLGROUP: +return void(this.insertionMode=ly.IN_COLUMN_GROUP);case Kb.TABLE: +return void(this.insertionMode=ly.IN_TABLE);case Kb.BODY: +return void(this.insertionMode=ly.IN_BODY);case Kb.FRAMESET: +return void(this.insertionMode=ly.IN_FRAMESET);case Kb.SELECT: +return void this._resetInsertionModeForSelect(e);case Kb.TEMPLATE: +return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Kb.HTML: +return void(this.insertionMode=this.headElement?ly.AFTER_HEAD:ly.BEFORE_HEAD) +;case Kb.TD:case Kb.TH:if(e>0)return void(this.insertionMode=ly.IN_CELL);break +;case Kb.HEAD:if(e>0)return void(this.insertionMode=ly.IN_HEAD)} +this.insertionMode=ly.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(){ +;if(e===Kb.TEMPLATE)break +;if(e===Kb.TABLE)return void(this.insertionMode=ly.IN_SELECT_IN_TABLE)} +this.insertionMode=ly.IN_SELECT}_isElementCausesFosterParenting(e){ +return dy.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{ +case Kb.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===qb.HTML)return{ parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break -;case Ib.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n, +;case Kb.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){ +;return lO[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){ +case ly.INITIAL:xy(this,e);break;case ly.BEFORE_HTML:Sy(this,e);break +;case ly.BEFORE_HEAD:_y(this,e);break;case ly.IN_HEAD:Cy(this,e);break +;case ly.IN_HEAD_NO_SCRIPT:Ay(this,e);break;case ly.AFTER_HEAD:Py(this,e);break +;case ly.IN_BODY:case ly.IN_CAPTION:case ly.IN_CELL:case ly.IN_TEMPLATE: +Ry(this,e);break;case ly.TEXT:case ly.IN_SELECT:case ly.IN_SELECT_IN_TABLE: +this._insertCharacters(e);break;case ly.IN_TABLE:case ly.IN_TABLE_BODY: +case ly.IN_ROW:Fy(this,e);break;case ly.IN_TABLE_TEXT:Zy(this,e);break +;case ly.IN_COLUMN_GROUP:Yy(this,e);break;case ly.AFTER_BODY:aw(this,e);break +;case ly.AFTER_AFTER_BODY:sw(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){ +t.chars=hb,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){ +case ly.INITIAL:xy(this,e);break;case ly.BEFORE_HTML:Sy(this,e);break +;case ly.BEFORE_HEAD:_y(this,e);break;case ly.IN_HEAD:Cy(this,e);break +;case ly.IN_HEAD_NO_SCRIPT:Ay(this,e);break;case ly.AFTER_HEAD:Py(this,e);break +;case ly.TEXT:this._insertCharacters(e);break;case ly.IN_TABLE: +case ly.IN_TABLE_BODY:case ly.IN_ROW:Fy(this,e);break;case ly.IN_COLUMN_GROUP: +Yy(this,e);break;case ly.AFTER_BODY:aw(this,e);break;case ly.AFTER_AFTER_BODY: +sw(this,e)}}onComment(e){ +if(this.skipNextNewLine=!1,this.currentNotInHTML)wy(this,e);else switch(this.insertionMode){ +case ly.INITIAL:case ly.BEFORE_HTML:case ly.BEFORE_HEAD:case ly.IN_HEAD: +case ly.IN_HEAD_NO_SCRIPT:case ly.AFTER_HEAD:case ly.IN_BODY:case ly.IN_TABLE: +case ly.IN_CAPTION:case ly.IN_COLUMN_GROUP:case ly.IN_TABLE_BODY:case ly.IN_ROW: +case ly.IN_CELL:case ly.IN_SELECT:case ly.IN_SELECT_IN_TABLE: +case ly.IN_TEMPLATE:case ly.IN_FRAMESET:case ly.AFTER_FRAMESET:wy(this,e);break +;case ly.IN_TABLE_TEXT:Wy(this,e);break;case ly.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){ +;case ly.AFTER_AFTER_BODY:case ly.AFTER_AFTER_FRAMESET:!function(e,t){ e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){ -switch(this.skipNextNewLine=!1,this.insertionMode){case HO.INITIAL: +switch(this.skipNextNewLine=!1,this.insertionMode){case ly.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) +;const n=t.forceQuirks?Wb.QUIRKS:function(e){if(e.name!==BO)return Wb.QUIRKS +;const{systemId:t}=e;if(t&&t.toLowerCase()===UO)return Wb.QUIRKS +;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),qO.has(n))return Wb.QUIRKS +;let e=null===t?zO:FO;if(ZO(n,e))return Wb.QUIRKS +;if(e=null===t?HO:VO,ZO(n,e))return Wb.LIMITED_QUIRKS}return Wb.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){ +return e.name===BO&&null===e.publicId&&(null===e.systemId||e.systemId===QO) +})(t)||e._err(t,_b.nonConformingDoctype) +;e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=ly.BEFORE_HTML +}(this,e);break;case ly.BEFORE_HEAD:case ly.IN_HEAD:case ly.IN_HEAD_NO_SCRIPT: +case ly.AFTER_HEAD:this._err(e,_b.misplacedDoctype);break;case ly.IN_TABLE_TEXT: +Wy(this,e)}}onStartTag(e){ this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e), -e.selfClosing&&!e.ackSelfClosing&&this._err(e,lb.nonVoidHtmlElementStartTagWithTrailingSolidus) +e.selfClosing&&!e.ackSelfClosing&&this._err(e,_b.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{ +;return t===Kb.FONT&&e.attrs.some((({name:e})=>e===Vb.COLOR||e===Vb.SIZE||e===Vb.FACE))||ey.has(t) +}(t))lw(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), +;r===qb.MATHML?ty(t):r===qb.SVG&&(!function(e){const t=JO.get(e.tagName) +;null!=t&&(e.tagName=t,e.tagID=aO(e.tagName)) +}(t),ny(t)),ry(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){ +_startTagOutsideForeignContent(e){switch(this.insertionMode){case ly.INITIAL: +xy(this,e);break;case ly.BEFORE_HTML:!function(e,t){ +t.tagID===Kb.HTML?(e._insertElement(t,qb.HTML), +e.insertionMode=ly.BEFORE_HEAD):Sy(e,t)}(this,e);break;case ly.BEFORE_HEAD: +!function(e,t){switch(t.tagID){case Kb.HTML:jy(e,t);break;case Kb.HEAD: +e._insertElement(t,qb.HTML), +e.headElement=e.openElements.current,e.insertionMode=ly.IN_HEAD;break;default: +_y(e,t)}}(this,e);break;case ly.IN_HEAD:Ey(this,e);break +;case ly.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Kb.HTML:jy(e,t) +;break;case Kb.BASEFONT:case Kb.BGSOUND:case Kb.HEAD:case Kb.LINK:case Kb.META: +case Kb.NOFRAMES:case Kb.STYLE:Ey(e,t);break;case Kb.NOSCRIPT: +e._err(t,_b.nestedNoscriptInHead);break;default:Ay(e,t)}}(this,e);break +;case ly.AFTER_HEAD:!function(e,t){switch(t.tagID){case Kb.HTML:jy(e,t);break +;case Kb.BODY: +e._insertElement(t,qb.HTML),e.framesetOk=!1,e.insertionMode=ly.IN_BODY;break +;case Kb.FRAMESET:e._insertElement(t,qb.HTML),e.insertionMode=ly.IN_FRAMESET +;break;case Kb.BASE:case Kb.BASEFONT:case Kb.BGSOUND:case Kb.LINK:case Kb.META: +case Kb.NOFRAMES:case Kb.SCRIPT:case Kb.STYLE:case Kb.TEMPLATE:case Kb.TITLE: +e._err(t,_b.abandonedHeadElementChild), +e.openElements.push(e.headElement,Kb.HEAD), +Ey(e,t),e.openElements.remove(e.headElement);break;case Kb.HEAD: +e._err(t,_b.misplacedStartTagForHeadElement);break;default:Py(e,t)}}(this,e) +;break;case ly.IN_BODY:jy(this,e);break;case ly.IN_TABLE:zy(this,e);break +;case ly.IN_TABLE_TEXT:Wy(this,e);break;case ly.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), +;Xy.has(n)?e.openElements.hasInTableScope(Kb.CAPTION)&&(e.openElements.generateImpliedEndTags(), +e.openElements.popUntilTagNamePopped(Kb.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 +e.insertionMode=ly.IN_TABLE,zy(e,t)):jy(e,t)}(this,e);break +;case ly.IN_COLUMN_GROUP:Gy(this,e);break;case ly.IN_TABLE_BODY:Ky(this,e);break +;case ly.IN_ROW:ew(this,e);break;case ly.IN_CELL:!function(e,t){const n=t.tagID +;Xy.has(n)?(e.openElements.hasInTableScope(Kb.TD)||e.openElements.hasInTableScope(Kb.TH))&&(e._closeTableCell(), +ew(e,t)):jy(e,t)}(this,e);break;case ly.IN_SELECT:nw(this,e);break +;case ly.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID +;n===Kb.CAPTION||n===Kb.TABLE||n===Kb.TBODY||n===Kb.TFOOT||n===Kb.THEAD||n===Kb.TR||n===Kb.TD||n===Kb.TH?(e.openElements.popUntilTagNamePopped(Kb.SELECT), +e._resetInsertionMode(),e._processStartTag(t)):nw(e,t)}(this,e);break +;case ly.IN_TEMPLATE:!function(e,t){switch(t.tagID){case Kb.BASE: +case Kb.BASEFONT:case Kb.BGSOUND:case Kb.LINK:case Kb.META:case Kb.NOFRAMES: +case Kb.SCRIPT:case Kb.STYLE:case Kb.TEMPLATE:case Kb.TITLE:Ey(e,t);break +;case Kb.CAPTION:case Kb.COLGROUP:case Kb.TBODY:case Kb.TFOOT:case Kb.THEAD: +e.tmplInsertionModeStack[0]=ly.IN_TABLE,e.insertionMode=ly.IN_TABLE,zy(e,t) +;break;case Kb.COL: +e.tmplInsertionModeStack[0]=ly.IN_COLUMN_GROUP,e.insertionMode=ly.IN_COLUMN_GROUP, +Gy(e,t);break;case Kb.TR: +e.tmplInsertionModeStack[0]=ly.IN_TABLE_BODY,e.insertionMode=ly.IN_TABLE_BODY, +Ky(e,t);break;case Kb.TD:case Kb.TH: +e.tmplInsertionModeStack[0]=ly.IN_ROW,e.insertionMode=ly.IN_ROW,ew(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){ +e.tmplInsertionModeStack[0]=ly.IN_BODY,e.insertionMode=ly.IN_BODY,jy(e,t)} +}(this,e);break;case ly.AFTER_BODY:!function(e,t){ +t.tagID===Kb.HTML?jy(e,t):aw(e,t)}(this,e);break;case ly.IN_FRAMESET: +!function(e,t){switch(t.tagID){case Kb.HTML:jy(e,t);break;case Kb.FRAMESET: +e._insertElement(t,qb.HTML);break;case Kb.FRAME: +e._appendElement(t,qb.HTML),t.ackSelfClosing=!0;break;case Kb.NOFRAMES:Ey(e,t)} +}(this,e);break;case ly.AFTER_FRAMESET:!function(e,t){switch(t.tagID){ +case Kb.HTML:jy(e,t);break;case Kb.NOFRAMES:Ey(e,t)}}(this,e);break +;case ly.AFTER_AFTER_BODY:!function(e,t){t.tagID===Kb.HTML?jy(e,t):sw(e,t) +}(this,e);break;case ly.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){ +case Kb.HTML:jy(e,t);break;case Kb.NOFRAMES:Ey(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), +if(t.tagID===Kb.P||t.tagID===Kb.BR)return lw(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){ +;if(e.treeAdapter.getNamespaceURI(r)===qb.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)) +_endTagOutsideForeignContent(e){switch(this.insertionMode){case ly.INITIAL: +xy(this,e);break;case ly.BEFORE_HTML:!function(e,t){const n=t.tagID +;n!==Kb.HTML&&n!==Kb.HEAD&&n!==Kb.BODY&&n!==Kb.BR||Sy(e,t)}(this,e);break +;case ly.BEFORE_HEAD:!function(e,t){const n=t.tagID +;n===Kb.HEAD||n===Kb.BODY||n===Kb.HTML||n===Kb.BR?_y(e,t):e._err(t,_b.endTagWithoutMatchingOpenElement) +}(this,e);break;case ly.IN_HEAD:!function(e,t){switch(t.tagID){case Kb.HEAD: +e.openElements.pop(),e.insertionMode=ly.AFTER_HEAD;break;case Kb.BODY: +case Kb.BR:case Kb.HTML:Cy(e,t);break;case Kb.TEMPLATE:Ty(e,t);break;default: +e._err(t,_b.endTagWithoutMatchingOpenElement)}}(this,e);break +;case ly.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Kb.NOSCRIPT: +e.openElements.pop(),e.insertionMode=ly.IN_HEAD;break;case Kb.BR:Ay(e,t);break +;default:e._err(t,_b.endTagWithoutMatchingOpenElement)}}(this,e);break +;case ly.AFTER_HEAD:!function(e,t){switch(t.tagID){case Kb.BODY:case Kb.HTML: +case Kb.BR:Py(e,t);break;case Kb.TEMPLATE:Ty(e,t);break;default: +e._err(t,_b.endTagWithoutMatchingOpenElement)}}(this,e);break;case ly.IN_BODY: +Qy(this,e);break;case ly.TEXT:!function(e,t){var n +;t.tagID===Kb.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), +;case ly.IN_TABLE:qy(this,e);break;case ly.IN_TABLE_TEXT:Wy(this,e);break +;case ly.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case Kb.CAPTION: +case Kb.TABLE: +e.openElements.hasInTableScope(Kb.CAPTION)&&(e.openElements.generateImpliedEndTags(), +e.openElements.popUntilTagNamePopped(Kb.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.insertionMode=ly.IN_TABLE,n===Kb.TABLE&&qy(e,t));break;case Kb.BODY: +case Kb.COL:case Kb.COLGROUP:case Kb.HTML:case Kb.TBODY:case Kb.TD: +case Kb.TFOOT:case Kb.TH:case Kb.THEAD:case Kb.TR:break;default:Qy(e,t)} +}(this,e);break;case ly.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){ +case Kb.COLGROUP: +e.openElements.currentTagId===Kb.COLGROUP&&(e.openElements.pop(), +e.insertionMode=ly.IN_TABLE);break;case Kb.TEMPLATE:Ty(e,t);break;case Kb.COL: +break;default:Yy(e,t)}}(this,e);break;case ly.IN_TABLE_BODY:Jy(this,e);break +;case ly.IN_ROW:tw(this,e);break;case ly.IN_CELL:!function(e,t){const n=t.tagID +;switch(n){case Kb.TD:case Kb.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.activeFormattingElements.clearToLastMarker(),e.insertionMode=ly.IN_ROW);break +;case Kb.TABLE:case Kb.TBODY:case Kb.TFOOT:case Kb.THEAD:case Kb.TR: +e.openElements.hasInTableScope(n)&&(e._closeTableCell(),tw(e,t));break +;case Kb.BODY:case Kb.CAPTION:case Kb.COL:case Kb.COLGROUP:case Kb.HTML:break +;default:Qy(e,t)}}(this,e);break;case ly.IN_SELECT:rw(this,e);break +;case ly.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID +;n===Kb.CAPTION||n===Kb.TABLE||n===Kb.TBODY||n===Kb.TFOOT||n===Kb.THEAD||n===Kb.TR||n===Kb.TD||n===Kb.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(Kb.SELECT), +e._resetInsertionMode(),e.onEndTag(t)):rw(e,t)}(this,e);break +;case ly.IN_TEMPLATE:!function(e,t){t.tagID===Kb.TEMPLATE&&Ty(e,t)}(this,e) +;break;case ly.AFTER_BODY:iw(this,e);break;case ly.IN_FRAMESET:!function(e,t){ +t.tagID!==Kb.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(), +e.fragmentContext||e.openElements.currentTagId===Kb.FRAMESET||(e.insertionMode=ly.AFTER_FRAMESET)) +}(this,e);break;case ly.AFTER_FRAMESET:!function(e,t){ +t.tagID===Kb.HTML&&(e.insertionMode=ly.AFTER_AFTER_FRAMESET)}(this,e);break +;case ly.AFTER_AFTER_BODY:sw(this,e)}}onEof(e){switch(this.insertionMode){ +case ly.INITIAL:xy(this,e);break;case ly.BEFORE_HTML:Sy(this,e);break +;case ly.BEFORE_HEAD:_y(this,e);break;case ly.IN_HEAD:Cy(this,e);break +;case ly.IN_HEAD_NO_SCRIPT:Ay(this,e);break;case ly.AFTER_HEAD:Py(this,e);break +;case ly.IN_BODY:case ly.IN_TABLE:case ly.IN_CAPTION:case ly.IN_COLUMN_GROUP: +case ly.IN_TABLE_BODY:case ly.IN_ROW:case ly.IN_CELL:case ly.IN_SELECT: +case ly.IN_SELECT_IN_TABLE:Uy(this,e);break;case ly.TEXT:!function(e,t){ +e._err(t,_b.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)}} +;break;case ly.IN_TABLE_TEXT:Wy(this,e);break;case ly.IN_TEMPLATE:ow(this,e) +;break;case ly.AFTER_BODY:case ly.IN_FRAMESET:case ly.AFTER_FRAMESET: +case ly.AFTER_AFTER_BODY:case ly.AFTER_AFTER_FRAMESET:ky(this,e)}} onWhitespaceCharacter(e){ -if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===Gv.LINE_FEED)){ +if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===fb.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){ +case ly.IN_HEAD:case ly.IN_HEAD_NO_SCRIPT:case ly.AFTER_HEAD:case ly.TEXT: +case ly.IN_COLUMN_GROUP:case ly.IN_SELECT:case ly.IN_SELECT_IN_TABLE: +case ly.IN_FRAMESET:case ly.AFTER_FRAMESET:this._insertCharacters(e);break +;case ly.IN_BODY:case ly.IN_CAPTION:case ly.IN_CELL:case ly.IN_TEMPLATE: +case ly.AFTER_BODY:case ly.AFTER_AFTER_BODY:case ly.AFTER_AFTER_FRAMESET: +$y(this,e);break;case ly.IN_TABLE:case ly.IN_TABLE_BODY:case ly.IN_ROW: +Fy(this,e);break;case ly.IN_TABLE_TEXT:Vy(this,e)}}};function fy(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 +n=null):By(e,t),n}function my(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){ +e.activeFormattingElements.removeEntry(t)),n}function gy(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 +;const n=e.activeFormattingElements.getElementEntry(a),s=n&&i>=sy ;!n||s?(s&&e.activeFormattingElements.removeEntry(n), -e.openElements.remove(a)):(a=ey(e,n), +e.openElements.remove(a)):(a=vy(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){ +function vy(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)) +;return e.openElements.replace(t.element,r),t.element=r,r}function by(e,t,n){ +const r=aO(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){ +;r===Kb.TEMPLATE&&o===qb.HTML&&(t=e.treeAdapter.getTemplateContent(t)), +e.treeAdapter.appendChild(t,n)}}function Oy(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=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: +;r&&!r.endTag&&e._setEndLocation(n,t)}}}}function xy(e,t){ +e._err(t,_b.missingDoctype,!0), +e.treeAdapter.setDocumentMode(e.document,Wb.QUIRKS), +e.insertionMode=ly.BEFORE_HTML,e._processToken(t)}function Sy(e,t){ +e._insertFakeRootElement(),e.insertionMode=ly.BEFORE_HEAD,e._processToken(t)} +function _y(e,t){ +e._insertFakeElement(Gb.HEAD,Kb.HEAD),e.headElement=e.openElements.current, +e.insertionMode=ly.IN_HEAD,e._processToken(t)}function Ey(e,t){switch(t.tagID){ +case Kb.HTML:jy(e,t);break;case Kb.BASE:case Kb.BASEFONT:case Kb.BGSOUND: +case Kb.LINK:case Kb.META:e._appendElement(t,qb.HTML),t.ackSelfClosing=!0;break +;case Kb.TITLE:e._switchToTextParsing(t,hO.RCDATA);break;case Kb.NOSCRIPT: +e.options.scriptingEnabled?e._switchToTextParsing(t,hO.RAWTEXT):(e._insertElement(t,qb.HTML), +e.insertionMode=ly.IN_HEAD_NO_SCRIPT);break;case Kb.NOFRAMES:case Kb.STYLE: +e._switchToTextParsing(t,hO.RAWTEXT);break;case Kb.SCRIPT: +e._switchToTextParsing(t,hO.SCRIPT_DATA);break;case Kb.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.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=ly.IN_TEMPLATE, +e.tmplInsertionModeStack.unshift(ly.IN_TEMPLATE);break;case Kb.HEAD: +e._err(t,_b.misplacedStartTagForHeadElement);break;default:Cy(e,t)}} +function Ty(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.openElements.currentTagId!==Kb.TEMPLATE&&e._err(t,_b.closingOfElementWithOpenChildElements), +e.openElements.popUntilTagNamePopped(Kb.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._resetInsertionMode()):e._err(t,_b.endTagWithoutMatchingOpenElement)} +function Cy(e,t){ +e.openElements.pop(),e.insertionMode=ly.AFTER_HEAD,e._processToken(t)} +function Ay(e,t){ +const n=t.type===Cb.EOF?_b.openElementsLeftAfterEof:_b.disallowedContentInNoscriptInHead +;e._err(t,n),e.openElements.pop(),e.insertionMode=ly.IN_HEAD,e._processToken(t)} +function Py(e,t){ +e._insertFakeElement(Gb.BODY,Kb.BODY),e.insertionMode=ly.IN_BODY,Dy(e,t)} +function Dy(e,t){switch(t.type){case Cb.CHARACTER:Ry(e,t);break +;case Cb.WHITESPACE_CHARACTER:$y(e,t);break;case Cb.COMMENT:wy(e,t);break +;case Cb.START_TAG:jy(e,t);break;case Cb.END_TAG:Qy(e,t);break;case Cb.EOF: +Uy(e,t)}}function $y(e,t){ e._reconstructActiveFormattingElements(),e._insertCharacters(t)} -function gy(e,t){ +function Ry(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){ +function Ny(e,t){ +e._reconstructActiveFormattingElements(),e._appendElement(t,qb.HTML), +e.framesetOk=!1,t.ackSelfClosing=!0}function My(e){const t=Pb(e,Vb.TYPE) +;return null!=t&&t.toLowerCase()===iy}function Iy(e,t){ +e._switchToTextParsing(t,hO.RAWTEXT)}function Ly(e,t){ +e._reconstructActiveFormattingElements(),e._insertElement(t,qb.HTML)} +function jy(e,t){switch(t.tagID){case Kb.I:case Kb.S:case Kb.B:case Kb.U: +case Kb.EM:case Kb.TT:case Kb.BIG:case Kb.CODE:case Kb.FONT:case Kb.SMALL: +case Kb.STRIKE:case Kb.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._insertElement(t,qb.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t) +}(e,t);break;case Kb.A:!function(e,t){ +const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Gb.A) +;n&&(yy(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: +e._insertElement(t,qb.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t) +}(e,t);break;case Kb.H1:case Kb.H2:case Kb.H3:case Kb.H4:case Kb.H5:case Kb.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: +e.openElements.hasInButtonScope(Kb.P)&&e._closePElement(),cO(e.openElements.currentTagId)&&e.openElements.pop(), +e._insertElement(t,qb.HTML)}(e,t);break;case Kb.P:case Kb.DL:case Kb.OL: +case Kb.UL:case Kb.DIV:case Kb.DIR:case Kb.NAV:case Kb.MAIN:case Kb.MENU: +case Kb.ASIDE:case Kb.CENTER:case Kb.FIGURE:case Kb.FOOTER:case Kb.HEADER: +case Kb.HGROUP:case Kb.DIALOG:case Kb.DETAILS:case Kb.ADDRESS:case Kb.ARTICLE: +case Kb.SECTION:case Kb.SUMMARY:case Kb.FIELDSET:case Kb.BLOCKQUOTE: +case Kb.FIGCAPTION:!function(e,t){ +e.openElements.hasInButtonScope(Kb.P)&&e._closePElement(), +e._insertElement(t,qb.HTML)}(e,t);break;case Kb.LI:case Kb.DD:case Kb.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)){ +;if(n===Kb.LI&&t===Kb.LI||(n===Kb.DD||n===Kb.DT)&&(t===Kb.DD||t===Kb.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 +if(t!==Kb.ADDRESS&&t!==Kb.DIV&&t!==Kb.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: +e.openElements.hasInButtonScope(Kb.P)&&e._closePElement(),e._insertElement(t,qb.HTML) +}(e,t);break;case Kb.BR:case Kb.IMG:case Kb.WBR:case Kb.AREA:case Kb.EMBED: +case Kb.KEYGEN:Ny(e,t);break;case Kb.HR:!function(e,t){ +e.openElements.hasInButtonScope(Kb.P)&&e._closePElement(), +e._appendElement(t,qb.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break +;case Kb.RB:case Kb.RTC:!function(e,t){ +e.openElements.hasInScope(Kb.RUBY)&&e.openElements.generateImpliedEndTags(), +e._insertElement(t,qb.HTML)}(e,t);break;case Kb.RT:case Kb.RP:!function(e,t){ +e.openElements.hasInScope(Kb.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Kb.RTC), +e._insertElement(t,qb.HTML)}(e,t);break;case Kb.PRE:case Kb.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.openElements.hasInButtonScope(Kb.P)&&e._closePElement(),e._insertElement(t,qb.HTML), +e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case Kb.XMP:!function(e,t){ +e.openElements.hasInButtonScope(Kb.P)&&e._closePElement(), e._reconstructActiveFormattingElements(), -e.framesetOk=!1,e._switchToTextParsing(t,Yb.RAWTEXT)}(e,t);break;case Ib.SVG: +e.framesetOk=!1,e._switchToTextParsing(t,hO.RAWTEXT)}(e,t);break;case Kb.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){ +e._reconstructActiveFormattingElements(),ny(t),ry(t),t.selfClosing?e._appendElement(t,qb.SVG):e._insertElement(t,qb.SVG), +t.ackSelfClosing=!0}(e,t);break;case Kb.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){ +}(e,t);break;case Kb.BASE:case Kb.LINK:case Kb.META:case Kb.STYLE:case Kb.TITLE: +case Kb.SCRIPT:case Kb.BGSOUND:case Kb.BASEFONT:case Kb.TEMPLATE:Ey(e,t);break +;case Kb.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: +e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case Kb.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.formElement&&!n||(e.openElements.hasInButtonScope(Kb.P)&&e._closePElement(), +e._insertElement(t,qb.HTML),n||(e.formElement=e.openElements.current))}(e,t) +;break;case Kb.NOBR:!function(e,t){ +e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Kb.NOBR)&&(yy(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._insertElement(t,qb.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t) +}(e,t);break;case Kb.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)), +ty(t),ry(t),t.selfClosing?e._appendElement(t,qb.MATHML):e._insertElement(t,qb.MATHML), +t.ackSelfClosing=!0}(e,t);break;case Kb.TABLE:!function(e,t){ +e.treeAdapter.getDocumentMode(e.document)!==Wb.QUIRKS&&e.openElements.hasInButtonScope(Kb.P)&&e._closePElement(), +e._insertElement(t,qb.HTML),e.framesetOk=!1,e.insertionMode=ly.IN_TABLE}(e,t) +;break;case Kb.INPUT:!function(e,t){ +e._reconstructActiveFormattingElements(),e._appendElement(t,qb.HTML), +My(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case Kb.PARAM: +case Kb.TRACK:case Kb.SOURCE:!function(e,t){ +e._appendElement(t,qb.HTML),t.ackSelfClosing=!0}(e,t);break;case Kb.IMAGE: +!function(e,t){t.tagName=Gb.IMG,t.tagID=Kb.IMG,Ny(e,t)}(e,t);break +;case Kb.BUTTON:!function(e,t){ +e.openElements.hasInScope(Kb.BUTTON)&&(e.openElements.generateImpliedEndTags(), +e.openElements.popUntilTagNamePopped(Kb.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._insertElement(t,qb.HTML),e.framesetOk=!1}(e,t);break;case Kb.APPLET: +case Kb.OBJECT:case Kb.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: +e._insertElement(t,qb.HTML),e.activeFormattingElements.insertMarker(), +e.framesetOk=!1}(e,t);break;case Kb.IFRAME:!function(e,t){ +e.framesetOk=!1,e._switchToTextParsing(t,hO.RAWTEXT)}(e,t);break;case Kb.SELECT: !function(e,t){ -e._reconstructActiveFormattingElements(),e._insertElement(t,Tb.HTML), +e._reconstructActiveFormattingElements(),e._insertElement(t,qb.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){ +e.insertionMode=e.insertionMode===ly.IN_TABLE||e.insertionMode===ly.IN_CAPTION||e.insertionMode===ly.IN_TABLE_BODY||e.insertionMode===ly.IN_ROW||e.insertionMode===ly.IN_CELL?ly.IN_SELECT_IN_TABLE:ly.IN_SELECT +}(e,t);break;case Kb.OPTION:case Kb.OPTGROUP:!function(e,t){ +e.openElements.currentTagId===Kb.OPTION&&e.openElements.pop(), +e._reconstructActiveFormattingElements(),e._insertElement(t,qb.HTML)}(e,t);break +;case Kb.NOEMBED:Iy(e,t);break;case Kb.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: +e._insertElement(t,qb.HTML),e.insertionMode=ly.IN_FRAMESET)}(e,t);break +;case Kb.TEXTAREA:!function(e,t){ +e._insertElement(t,qb.HTML),e.skipNextNewLine=!0, +e.tokenizer.state=hO.RCDATA,e.originalInsertionMode=e.insertionMode, +e.framesetOk=!1,e.insertionMode=ly.TEXT}(e,t);break;case Kb.NOSCRIPT: +e.options.scriptingEnabled?Iy(e,t):Ly(e,t);break;case Kb.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){ +e.openElements.hasInButtonScope(Kb.P)&&e._closePElement(),e._insertElement(t,qb.HTML), +e.tokenizer.state=hO.PLAINTEXT}(e,t);break;case Kb.COL:case Kb.TH:case Kb.TD: +case Kb.TR:case Kb.HEAD:case Kb.FRAME:case Kb.TBODY:case Kb.TFOOT:case Kb.THEAD: +case Kb.CAPTION:case Kb.COLGROUP:break;default:Ly(e,t)}}function By(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)){ +;if(r===i&&(r!==Kb.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 +if(e._isSpecialElement(t,i))break}}function Qy(e,t){switch(t.tagID){case Kb.A: +case Kb.B:case Kb.I:case Kb.S:case Kb.U:case Kb.EM:case Kb.TT:case Kb.BIG: +case Kb.CODE:case Kb.FONT:case Kb.NOBR:case Kb.SMALL:case Kb.STRIKE: +case Kb.STRONG:yy(e,t);break;case Kb.P:!function(e){ +e.openElements.hasInButtonScope(Kb.P)||e._insertFakeElement(Gb.P,Kb.P), +e._closePElement()}(e);break;case Kb.DL:case Kb.UL:case Kb.OL:case Kb.DIR: +case Kb.DIV:case Kb.NAV:case Kb.PRE:case Kb.MAIN:case Kb.MENU:case Kb.ASIDE: +case Kb.BUTTON:case Kb.CENTER:case Kb.FIGURE:case Kb.FOOTER:case Kb.HEADER: +case Kb.HGROUP:case Kb.DIALOG:case Kb.ADDRESS:case Kb.ARTICLE:case Kb.DETAILS: +case Kb.SECTION:case Kb.SUMMARY:case Kb.LISTING:case Kb.FIELDSET: +case Kb.BLOCKQUOTE:case Kb.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: +e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Kb.LI:!function(e){ +e.openElements.hasInListItemScope(Kb.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Kb.LI), +e.openElements.popUntilTagNamePopped(Kb.LI))}(e);break;case Kb.DD:case Kb.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.popUntilTagNamePopped(n))}(e,t);break;case Kb.H1:case Kb.H2: +case Kb.H3:case Kb.H4:case Kb.H5:case Kb.H6:!function(e){ e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(), -e.openElements.popUntilNumberedHeaderPopped())}(e);break;case Ib.BR: +e.openElements.popUntilNumberedHeaderPopped())}(e);break;case Kb.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._reconstructActiveFormattingElements(),e._insertFakeElement(Gb.BR,Kb.BR), +e.openElements.pop(),e.framesetOk=!1}(e);break;case Kb.BODY:!function(e,t){ +if(e.openElements.hasInScope(Kb.BODY)&&(e.insertionMode=ly.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){ +;n&&e._setEndLocation(n,t)}}(e,t);break;case Kb.HTML:!function(e,t){ +e.openElements.hasInScope(Kb.BODY)&&(e.insertionMode=ly.AFTER_BODY,iw(e,t)) +}(e,t);break;case Kb.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){ +;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Kb.FORM)&&(e.openElements.generateImpliedEndTags(), +t?e.openElements.popUntilTagNamePopped(Kb.FORM):n&&e.openElements.remove(n))}(e) +;break;case Kb.APPLET:case Kb.OBJECT:case Kb.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.activeFormattingElements.clearToLastMarker())}(e,t);break;case Kb.TEMPLATE: +Ty(e,t);break;default:By(e,t)}}function Uy(e,t){ +e.tmplInsertionModeStack.length>0?ow(e,t):ky(e,t)}function Fy(e,t){ +if(dy.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.insertionMode=ly.IN_TABLE_TEXT,t.type){case Cb.CHARACTER:Zy(e,t);break +;case Cb.WHITESPACE_CHARACTER:Vy(e,t)}else Hy(e,t)}function zy(e,t){ +switch(t.tagID){case Kb.TD:case Kb.TH:case Kb.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: +e._insertFakeElement(Gb.TBODY,Kb.TBODY),e.insertionMode=ly.IN_TABLE_BODY,Ky(e,t) +}(e,t);break;case Kb.STYLE:case Kb.SCRIPT:case Kb.TEMPLATE:Ey(e,t);break +;case Kb.COL:!function(e,t){ +e.openElements.clearBackToTableContext(),e._insertFakeElement(Gb.COLGROUP,Kb.COLGROUP), +e.insertionMode=ly.IN_COLUMN_GROUP,Gy(e,t)}(e,t);break;case Kb.FORM: !function(e,t){ -e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Tb.HTML), +e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,qb.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){ +;case Kb.TABLE:!function(e,t){ +e.openElements.hasInTableScope(Kb.TABLE)&&(e.openElements.popUntilTagNamePopped(Kb.TABLE), +e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case Kb.TBODY: +case Kb.TFOOT:case Kb.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._insertElement(t,qb.HTML),e.insertionMode=ly.IN_TABLE_BODY}(e,t);break +;case Kb.INPUT:!function(e,t){ +My(t)?e._appendElement(t,qb.HTML):Hy(e,t),t.ackSelfClosing=!0}(e,t);break +;case Kb.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._insertElement(t,qb.HTML),e.insertionMode=ly.IN_CAPTION}(e,t);break +;case Kb.COLGROUP:!function(e,t){ +e.openElements.clearBackToTableContext(),e._insertElement(t,qb.HTML), +e.insertionMode=ly.IN_COLUMN_GROUP}(e,t);break;default:Hy(e,t)}} +function qy(e,t){switch(t.tagID){case Kb.TABLE: +e.openElements.hasInTableScope(Kb.TABLE)&&(e.openElements.popUntilTagNamePopped(Kb.TABLE), +e._resetInsertionMode());break;case Kb.TEMPLATE:Ty(e,t);break;case Kb.BODY: +case Kb.CAPTION:case Kb.COL:case Kb.COLGROUP:case Kb.HTML:case Kb.TBODY: +case Kb.TD:case Kb.TFOOT:case Kb.TH:case Kb.THEAD:case Kb.TR:break;default: +Hy(e,t)}}function Hy(e,t){const n=e.fosterParentingEnabled +;e.fosterParentingEnabled=!0,Dy(e,t),e.fosterParentingEnabled=n} +function Vy(e,t){e.pendingCharacterTokens.push(t)}function Zy(e,t){ e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0} -function Dy(e,t){let n=0 -;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&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.openElements.pop(),e.insertionMode=ly.IN_TABLE,qy(e,t));break;case Kb.BODY: +case Kb.CAPTION:case Kb.COL:case Kb.COLGROUP:case Kb.HTML:case Kb.TD:case Kb.TH: +case Kb.TR:break;default:qy(e,t)}}function ew(e,t){switch(t.tagID){case Kb.TH: +case Kb.TD: +e.openElements.clearBackToTableRowContext(),e._insertElement(t,qb.HTML), +e.insertionMode=ly.IN_CELL,e.activeFormattingElements.insertMarker();break +;case Kb.CAPTION:case Kb.COL:case Kb.COLGROUP:case Kb.TBODY:case Kb.TFOOT: +case Kb.THEAD:case Kb.TR: +e.openElements.hasInTableScope(Kb.TR)&&(e.openElements.clearBackToTableRowContext(), +e.openElements.pop(),e.insertionMode=ly.IN_TABLE_BODY,Ky(e,t));break;default: +zy(e,t)}}function tw(e,t){switch(t.tagID){case Kb.TR: +e.openElements.hasInTableScope(Kb.TR)&&(e.openElements.clearBackToTableRowContext(), +e.openElements.pop(),e.insertionMode=ly.IN_TABLE_BODY);break;case Kb.TABLE: +e.openElements.hasInTableScope(Kb.TR)&&(e.openElements.clearBackToTableRowContext(), +e.openElements.pop(),e.insertionMode=ly.IN_TABLE_BODY,Jy(e,t));break +;case Kb.TBODY:case Kb.TFOOT:case Kb.THEAD: +(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(Kb.TR))&&(e.openElements.clearBackToTableRowContext(), +e.openElements.pop(),e.insertionMode=ly.IN_TABLE_BODY,Jy(e,t));break +;case Kb.BODY:case Kb.CAPTION:case Kb.COL:case Kb.COLGROUP:case Kb.HTML: +case Kb.TD:case Kb.TH:break;default:qy(e,t)}}function nw(e,t){switch(t.tagID){ +case Kb.HTML:jy(e,t);break;case Kb.OPTION: +e.openElements.currentTagId===Kb.OPTION&&e.openElements.pop(), +e._insertElement(t,qb.HTML);break;case Kb.OPTGROUP: +e.openElements.currentTagId===Kb.OPTION&&e.openElements.pop(), +e.openElements.currentTagId===Kb.OPTGROUP&&e.openElements.pop(), +e._insertElement(t,qb.HTML);break;case Kb.INPUT:case Kb.KEYGEN:case Kb.TEXTAREA: +case Kb.SELECT: +e.openElements.hasInSelectScope(Kb.SELECT)&&(e.openElements.popUntilTagNamePopped(Kb.SELECT), +e._resetInsertionMode(),t.tagID!==Kb.SELECT&&e._processStartTag(t));break +;case Kb.SCRIPT:case Kb.TEMPLATE:Ey(e,t)}}function rw(e,t){switch(t.tagID){ +case Kb.OPTGROUP: +e.openElements.stackTop>0&&e.openElements.currentTagId===Kb.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===Kb.OPTGROUP&&e.openElements.pop(), +e.openElements.currentTagId===Kb.OPTGROUP&&e.openElements.pop();break +;case Kb.OPTION:e.openElements.currentTagId===Kb.OPTION&&e.openElements.pop() +;break;case Kb.SELECT: +e.openElements.hasInSelectScope(Kb.SELECT)&&(e.openElements.popUntilTagNamePopped(Kb.SELECT), +e._resetInsertionMode());break;case Kb.TEMPLATE:Ty(e,t)}}function ow(e,t){ +e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Kb.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._resetInsertionMode(),e.onEof(t)):ky(e,t)}function iw(e,t){var n +;if(t.tagID===Kb.HTML){ +if(e.fragmentContext||(e.insertionMode=ly.AFTER_AFTER_BODY), +e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===Kb.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) +}}else aw(e,t)}function aw(e,t){e.insertionMode=ly.IN_BODY,Dy(e,t)} +function sw(e,t){e.insertionMode=ly.IN_BODY,Dy(e,t)}function lw(e){ +for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==qb.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop() +}function cw(e,t){return hy.parse(e,t)}function uw(e,t,n){ +"string"==typeof e&&(n=t,t=e,e=null);const r=hy.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){ +Gb.AREA,Gb.BASE,Gb.BASEFONT,Gb.BGSOUND, +Gb.BR,Gb.COL,Gb.EMBED,Gb.FRAME,Gb.HR,Gb.IMG, +Gb.INPUT,Gb.KEYGEN,Gb.LINK,Gb.META,Gb.PARAM,Gb.SOURCE,Gb.TRACK,Gb.WBR +;const dw=hw("end"),pw=hw("start");function hw(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){ +offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function fw(e){ +const t=pw(e),n=dw(e);if(t&&n)return{start:t,end:n}} +const mw=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),gw={ +sourceCodeLocationInfo:!0,scriptingEnabled:!1};function vw(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 +}(e),r=ob("type",{handlers:{root:Ow,element:yw,text:ww,comment:Sw,doctype:kw, +raw:_w},unknown:Ew}),o={parser:n?new hy(gw):hy.getFragmentParser(void 0,gw), +handle(e){r(e,o)},stitches:!1,options:t||{}};r(e,o),Tw(o,pw()) +;const i=Yv(n?o.parser.document:o.parser.getFragment(),{file:o.options.file}) +;return o.stitches&&wg(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-1&&i>l||a>-1&&i>a||s>-1&&i>s)return!0;let c=-1;for(;++c4&&"data"===t.slice(0,4).toLowerCase())return n}function kw(e){ +if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return n}function Qw(e){ return function(t){const n=function(e,t){let n={type:"root",children:[]} -;const r=vw({schema:t?{...mw,...t}:mw,stack:[]},e) +;const r=Nw({schema:t?{...$w,...t}:$w,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) +const Uw=/["&'<>`]/g,Fw=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zw=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,qw=/[|\\{}()[\]^$+*?.]/g,Hw=new WeakMap +;function Vw(e,t){return e=e.replace(t.subset?function(e){let t=Hw.get(e) ;t||(t=function(e){const t=[];let n=-1 -;for(;++n|^->||--!>|"],qw=["<",">"];function zw(e,t){ +return r&&(!n.useShortestReferences||r.length|^->||--!>|"],ak=["<",">"];function sk(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) +const lk=dk(1),ck=dk(-1),uk=[];function dk(e){return function(t,n,r){ +const o=t?t.children:uk;let i=(n||0)+e,a=o[i];if(!r)for(;a&&Ng(a);)i+=e,a=o[i] +;return a}}const pk={}.hasOwnProperty;function hk(e){return function(t,n,r){ +return pk.call(e,t.tagName)&&e[t.tagName](t,n,r)}}const fk=hk({ +body:function(e,t,n){const r=lk(n,t);return!r||"comment"!==r.type},caption:mk, +colgroup:mk,dd:function(e,t,n){const r=lk(n,t) ;return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)}, -dt:function(e,t,n){const r=Hw(n,t) +dt:function(e,t,n){const r=lk(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) +head:mk,html:function(e,t,n){const r=lk(n,t);return!r||"comment"!==r.type}, +li:function(e,t,n){const r=lk(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) +const r=lk(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName}, +option:function(e,t,n){const r=lk(n,t) ;return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)}, -p:function(e,t,n){const r=Hw(n,t) +p:function(e,t,n){const r=lk(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) +},rp:gk,rt:gk,tbody:function(e,t,n){const r=lk(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) +td:vk,tfoot:function(e,t,n){return!lk(n,t)},th:vk,thead:function(e,t,n){ +const r=lk(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) +},tr:function(e,t,n){const r=lk(n,t) +;return!r||"element"===r.type&&"tr"===r.tagName}});function mk(e,t,n){ +const r=lk(n,t,!0) +;return!r||"comment"!==r.type&&!("text"===r.type&&Ng(r.value.charAt(0)))} +function gk(e,t,n){const r=lk(n,t) ;return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)} -function ex(e,t,n){const r=Hw(n,t) +function vk(e,t,n){const r=lk(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 +const bk=hk({body:function(e){const t=lk(e,-1,!0) +;return!(t&&("comment"===t.type||"text"===t.type&&Ng(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=ck(n,t),o=lk(e,-1,!0) +;if(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&fk(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(;++r0}, -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={ +html:function(e){const t=lk(e,-1);return!t||"comment"!==t.type}, +tbody:function(e,t,n){const r=ck(n,t),o=lk(e,-1) +;if(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&fk(r,n.children.indexOf(r),n))return!1 +;return Boolean(o&&"element"===o.type&&"tr"===o.tagName)}});const Ok={ 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 +};function yk(e,t,n){ +const r=Dv(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,{ +;const l=rk(r.attribute,Object.assign({},e.settings.characterReferences,{ +subset:Ok.name[o][i]})) +;return!0===n?l:(n=Array.isArray(n)?(r.commaSeparated?Lv:pg)(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){ +}):String(n),e.settings.collapseEmptyAttributes&&!n?l:(e.settings.preferUnquoted&&(a=rk(n,Object.assign({},e.settings.characterReferences,{ +attribute:!0,subset:Ok.unquoted[o][i] +}))),a!==n&&(e.settings.quoteSmart&&sk(n,s)>sk(n,e.alternative)&&(s=e.alternative), +a=s+rk(n,Object.assign({},e.settings.characterReferences,{ +subset:("'"===s?Ok.single:Ok.double)[o][i],attribute:!0}))+s),l+(a?"="+a:a)))} +const wk=["<","&"];function kk(e,t,n,r){ +return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?rk(e.value,Object.assign({},r.settings.characterReferences,{ +subset:wk})):e.value}const xk=ob("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?"":"\x3c!--"+e.value.replace(Uw,(function(e){ -return jw(e,Object.assign({},r.settings.characterReferences,{subset:qw})) +return r.settings.bogusComments?"":"\x3c!--"+e.value.replace(ok,(function(e){ +return rk(e,Object.assign({},r.settings.characterReferences,{subset:ak})) }))+"--\x3e"},doctype:function(e,t,n,r){ return"" },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 s=[];let l;"html"===o.space&&"svg"===e.tagName&&(r.schema=Mv) ;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]) +;if(t)for(r in t)if(null!==t[r]&&void 0!==t[r]){const o=yk(e,r,t[r]) ;o&&n.push(o)}for(;++o")),s.push(u),a||i&&Gw(e,t,n)||s.push(""), +s.push("/")),s.push(">")),s.push(u),a||i&&fk(e,t,n)||s.push(""), 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-1&&e.test(String.fromCharCode(t))}} -function Ex(e,t,n){const r=Ym((n||{}).ignore||[]),o=function(e){const t=[] +function zk(e,t,n){const r=hg((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?\]}]+$/.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,")") +;const o=sk(e,"(");let i=sk(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))&&{ +value:a[1]}]:s}function nx(e,t,n,r){return!(!rx(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){ +value:t+"@"+n}]}}function rx(e,t){const n=e.input.charCodeAt(e.index-1) +;return(0===e.index||Uk(n)||Qk(n))&&(!t||47!==n)}function ox(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){ +}function ix(e){this.enter({type:"footnoteDefinition",identifier:"",label:"", +children:[]},e)}function ax(){this.buffer()}function sx(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){ +;n.type,n.label=t,n.identifier=ox(this.sliceSerialize(e)).toLowerCase()} +function lx(e){this.exit(e)}function cx(e){this.enter({type:"footnoteReference", +identifier:"",label:""},e)}function ux(){this.buffer()}function dx(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) +;n.type,n.label=t,n.identifier=ox(this.sliceSerialize(e)).toLowerCase()} +function px(e){this.exit(e)}function hx(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) +})),s(),a(),i+=o.move("]"),i}function fx(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(){ +s(),i+=o.move("]:"+(e.children&&e.children.length>0?" ":"")),o.shift(4),i+=o.move(n.indentLines(n.containerFlow(e,o.current()),mx)), +a(),i}function mx(e,t,n){return 0===t?e:(n?"":" ")+e}hx.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 gx=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"] +;function vx(e){this.enter({type:"delete",children:[]},e)}function bx(e){ +this.exit(e)}function Ox(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){ +}),a+=o.move("~~"),i(),a}function yx(e){return e.length}function wx(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"+(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 +Ox.peek=function(){return"~"};const kx={}.hasOwnProperty;function xx(e,t){ +let n,r=-1;if(t.extensions)for(;++r"+(n?"":" ")+e} +function Tx(e,t){return Cx(e,t.inConstruct,!0)&&!Cx(e,t.notInConstruct,!1)} +function Cx(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n ;let r=-1;for(;++r",...l.current() 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){ +})),c+=l.move(o),s()),c+=l.move(")"),a(),c}function Ux(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 +l}function Fx(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\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("<") +}function qx(e,t,n,r){ +const o=$x(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let s,l +;if(zx(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:"](", @@ -7708,33 +7810,33 @@ c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current() 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){ +})),c+=a.move(o),l()),c+=a.move(")"),s(),c}function Hx(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||"*" +l}function Vx(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||"*" +;return t}function Zx(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||"*" +;return t}Bx.peek=function(){return"<"},Qx.peek=function(){return"!" +},Ux.peek=function(){return"!"},Fx.peek=function(){return"`" +},qx.peek=function(e,t,n){return zx(e,n)?"<":"["},Hx.peek=function(){return"["} +;const Wx=hg(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]) +;function Xx(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){ +})),s+=a.move(o+o),i(),s}Xx.peek=function(e,t,n){return n.options.strong||"*"} +;const Gx={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||"`" +;const a=n.indentLines(n.containerFlow(e,i.current()),Ex);return o(),a}, +break:Ax,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} +;return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(Px(e,n)){ +const e=n.enter("codeIndented"),t=n.indentLines(i,Dx);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") @@ -7746,7 +7848,7 @@ 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") +const o=$x(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() })), @@ -7756,8 +7858,8 @@ c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current() 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)){ +})),c+=l.move(o),s()),a(),c},emphasis:Rx,hardBreak:Ax,heading:function(e,t,n,r){ +const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(jx(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)) @@ -7765,25 +7867,25 @@ const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{ ;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){ +c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),s(),c},html:Bx,image:Qx, +imageReference:Ux,inlineCode:Fx,link:qx,linkReference:Hx,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?"-":"*" +;return t}(n):Vx(n);const s=e.ordered?"."===a?")":".":function(e){ +const t=Vx(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-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)) @@ -7793,18 +7895,18 @@ 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, +return Wx(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Xx, 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 r=(Zx(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 +},Yx=[function(e,t,n,r){ +if("code"===t.type&&Px(t,r)&&("list"===e.type||e.type===t.type&&Px(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 +if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&jx(t,r)))return ;return n.spread?1:0}}] -;const Ik=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Mk=[{ +;const Kx=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Jx=[{ character:"\t",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t", before:"[\\r\\n]",inConstruct:"phrasing"},{character:"\t", inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{ @@ -7815,70 +7917,70 @@ inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGr },{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ", before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ", inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!", -after:"\\[",inConstruct:"phrasing",notInConstruct:Ik},{character:'"', +after:"\\[",inConstruct:"phrasing",notInConstruct:Kx},{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+", +inConstruct:"phrasing",notInConstruct:Kx},{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, +notInConstruct:Kx},{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:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Kx},{ character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{ atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{ atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing", -notInConstruct:Ik},{character:"[",inConstruct:["label","reference"]},{ +notInConstruct:Kx},{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:"`"},{ +inConstruct:"phrasing",notInConstruct:Kx},{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){ +character:"`",inConstruct:"phrasing",notInConstruct:Kx},{atBreak:!0, +character:"~"}],eS=document.createElement("i");function tS(e){const t="&"+e+";" +;eS.innerHTML=t;const n=eS.textContent +;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function nS(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 +}const rS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi +;function oS(e){return e.replace(rS,iS)}function iS(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){ +;return nS(n.slice(t?2:1),t?16:10)}return tS(n)||e}function aS(e){ +return e.label||!e.identifier?e.label||"":oS(e.identifier)}function sS(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--;){ +}return e._compiled}function lS(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++ +;if(!1===i)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const cS=/\r?\n|\r/g +;function uS(e,t){const n=[];let r,o=0,i=0 +;for(;r=cS.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){ +function dS(e,t){return e-t}function pS(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(;++s0&&("\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){ +return r.pop(),i.join("")}(e,this,t)}function OS(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=c||e+1=c||e+1l&&(l=e[c].length);++ds[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(;++do?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);a0?(mS(e,e.length,0,t),e):t}const vS={}.hasOwnProperty -;function bS(e){const t={};let n=-1;for(;++n0?($S(e,e.length,0,t),e):t}const NS={}.hasOwnProperty +;function MS(e){const t={};let n=-1;for(;++n0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n} -function MS(e){const t=[];let n=-1,r=0,o=0;for(;++n55295&&i<57344){ +;if(37===i&&Dk(e.charCodeAt(n+1))&&Dk(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=[] +return t.join("")+e.slice(r)}function e_(e){ +return null===e||jk(e)||Uk(e)?1:Qk(e)?2:void 0}function t_(e,t,n){const r=[] ;let o=-1;for(;++o1&&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, +;r_(d,-s),r_(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={ @@ -8067,86 +8169,86 @@ 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[n][1].end.offset-e[n][1].start.offset&&(l=RS(l,[["enter",e[n][1],t],["exit",e[n][1],t]])), +l=RS(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]), +l=RS(l,t_(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)), +l=RS(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 +l=RS(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0, +$S(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1 ;for(;++u=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} +Bk(t)?i_(e,d,"whitespace")(t):d(t)):n(t)}function d(r){ +return null===r||Lk(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, @@ -8154,49 +8256,49 @@ 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"), +Bk(t)?i_(e,c,"whitespace")(t):c(t))}function c(n){ +return null===n||Lk(n)?(e.exit("codeFencedFence"), +r.interrupt?t(n):e.check(u_,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"), +return null===t||Lk(t)?(e.exit("chunkString"), +e.exit("codeFencedFenceInfo"),c(t)):Bk(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"), +i_(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){ +return null===t||Lk(t)?c(t):(e.enter("codeFencedFenceMeta"), e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){ -return null===t||yx(t)?(e.exit("chunkString"), +return null===t||Lk(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))} +return a>0&&Bk(t)?i_(e,g,"linePrefix",a+1)(t):g(t)}function g(t){ +return null===t||Lk(t)?e.check(u_,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={ +return null===t||Lk(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)} +function b(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const p_={ 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){ +return e.enter("codeIndented"),i_(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))} +return null===t?s(t):Lk(t)?e.attempt(h_,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={ +return null===t||Lk(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)} +function s(n){return e.exit("codeIndented"),t(n)}}},h_={ 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){ +return r.parser.lazy[r.now().line]?n(t):Lk(t)?(e.enter("lineEnding"), +e.consume(t),e.exit("lineEnding"),o):i_(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 i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):Lk(e)?o(e):n(e) +}},partial:!0};const f_={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"), +s):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):Lk(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), +return null===t||32===t||96===t||Lk(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){ @@ -8208,7 +8310,7 @@ t=o-1,r++ 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){ +;class m_{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 ethis.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 n&&g_(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(Number.POSITIVE_INFINITY),g_(this.left,e)}unshift(e){ this.setCursor(0),this.right.push(e)}unshiftMany(e){ -this.setCursor(0),JS(this.right,e.reverse())}setCursor(e){ +this.setCursor(0),g_(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=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){ +}},partial:!0};function w_(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) +;if(null===t||32===t||41===t||Rk(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)} +e.exit(s),d(t)):null===t||60===t||Lk(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)?u999||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.consume(d),e.exit(o),e.exit(r),t):Lk(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 null===t||91===t||93===t||Lk(t)||l++>999?(e.exit("chunkString"), +c(t)):(e.consume(t),s||(s=!Bk(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){ +function x_(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",{ +return t===a?(e.exit(i),s(a)):null===t?n(t):Lk(t)?(e.enter("lineEnding"), +e.consume(t),e.exit("lineEnding"),i_(e,l,"linePrefix")):(e.enter("chunkString",{ contentType:"string"}),c(t))}function c(t){ -return t===a||null===t||yx(t)?(e.exit("chunkString"), +return t===a||null===t||Lk(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 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_={ +if(Lk(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r +;if(Bk(o))return i_(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const __={ 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) +return k_.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)), +return o=ox(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) +return jk(t)?S_(e,s)(t):s(t)}function s(t){ +return w_(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t) +}function l(t){return e.attempt(E_,c,c)(t)}function c(t){ +return Bk(t)?i_(e,u,"whitespace")(t):u(t)}function u(i){ +return null===i||Lk(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i) +}}},E_={tokenize:function(e,t,n){return function(t){return jk(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", +return x_(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t) +}function o(t){return Bk(t)?i_(e,i,"whitespace")(t):i(t)}function i(e){ +return null===e||Lk(e)?t(e):n(e)}},partial:!0};const T_={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_={ +return Lk(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const C_={ 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){ +o):null===t||jk(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))} +a(n)):null===n||Lk(n)?(e.exit("atxHeading"), +t(n)):Bk(n)?i_(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)} +return null===t||35===t||jk(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]])) +},$S(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_={ +;const A_=["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"],P_=["pre","script","style","textarea"],D_={ 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)} +o=3,r.interrupt?t:N):Pk(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), +return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,p):Pk(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)){ +function h(t){return Pk(t)?(e.consume(t),a=String.fromCharCode(t),f):n(t)} +function f(s){if(null===s||47===s||62===s||jk(s)){ const l=47===s,c=a.toLowerCase() -;return l||i||!h_.includes(c)?p_.includes(a.toLowerCase())?(o=6,l?(e.consume(s), +;return l||i||!P_.includes(c)?A_.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)} +return 45===s||Dk(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)} +return Bk(t)?(e.consume(t),g):S(t)}function v(t){ +return 47===t?(e.consume(t),S):58===t||95===t||Pk(t)?(e.consume(t), +b):Bk(t)?(e.consume(t),v):S(t)}function b(t){ +return 45===t||46===t||58===t||95===t||Dk(t)?(e.consume(t),b):O(t)} +function O(t){return 61===t?(e.consume(t),y):Bk(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){ +l=t,w):Bk(t)?(e.consume(t),y):k(t)}function w(t){ +return t===l?(e.consume(t),l=null,x):null===t||Lk(t)?n(t):(e.consume(t),w)} +function k(t){ +return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||jk(t)?O(t):(e.consume(t), +k)}function x(e){return 47===e||62===e||Bk(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 null===t||Lk(t)?E(t):Bk(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){ +M):63===t&&3===o?(e.consume(t), +N):93===t&&5===o?(e.consume(t),R):!Lk(t)||6!==o&&7!==o?null===t||Lk(t)?(e.exit("htmlFlowData"), +T(t)):(e.consume(t),E):(e.exit("htmlFlowData"),e.check($_,I,T)(t))} +function T(t){return e.check(R_,C,I)(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 null===t||Lk(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)} +const n=a.toLowerCase();return P_.includes(n)?(e.consume(t),M):E(t)} +return Pk(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){ +return 62===t?(e.consume(t),M):45===t&&2===o?(e.consume(t),N):E(t)} +function M(t){ +return null===t||Lk(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),M)} +function I(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_={ +e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},$_={ 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 e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(a_,t,n) +}},partial:!0},R_={tokenize:function(e,t,n){const r=this;return function(t){ +if(Lk(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 +partial:!0};const N_={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){ +b):Pk(t)?(e.consume(t),x):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){ +i=0,h):Pk(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)} +return null===t?n(t):45===t?(e.consume(t),d):Lk(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)} +return null===t?n(t):93===t?(e.consume(t),m):Lk(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)} +return null===t||62===t?D(t):Lk(t)?(a=v,$(t)):(e.consume(t),v)}function b(t){ +return null===t?n(t):63===t?(e.consume(t),O):Lk(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)} +return Pk(t)?(e.consume(t),w):n(t)}function w(t){ +return 45===t||Dk(t)?(e.consume(t),w):k(t)}function k(t){ +return Lk(t)?(a=k,$(t)):Bk(t)?(e.consume(t),k):D(t)}function x(t){ +return 45===t||Dk(t)?(e.consume(t),x):47===t||62===t||jk(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)} +return 47===t?(e.consume(t),D):58===t||95===t||Pk(t)?(e.consume(t), +_):Lk(t)?(a=S,$(t)):Bk(t)?(e.consume(t),S):D(t)}function _(t){ +return 45===t||46===t||58===t||95===t||Dk(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)} +return 61===t?(e.consume(t),T):Lk(t)?(a=E,$(t)):Bk(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){ +o=t,C):Lk(t)?(a=T,$(t)):Bk(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){ +o=void 0,P):null===t?n(t):Lk(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||jk(t)?S(t):(e.consume(t), +A)}function P(e){return 47===e||62===e||jk(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", +return Bk(t)?i_(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 M_={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() +;return i=r.parser.defined.includes(ox(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)} +return 40===t?e.attempt(I_,c,i?c:u)(t):91===t?e.attempt(L_,c,i?l:u)(t):i?c(t):u(t) +}function l(t){return e.attempt(j_,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 @@ -8472,33 +8574,33 @@ start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end) 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}, +i=RS(i,e.slice(r+1,r+s+3)),i=RS(i,[["enter",u,t]]), +i=RS(i,t_(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)), +i=RS(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]), +i=RS(i,e.slice(o+1)),i=RS(i,[["exit",l,t]]),$S(e,r,e.length,i),e}, resolveAll:function(e){let t=-1;for(;++t=3&&(null===i||yx(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){ +a(i)):o>=3&&(null===i||Lk(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){ +o++,a):(e.exit("thematicBreakSequence"),Bk(t)?i_(e,i,"whitespace")(t):i(t))}}} +;const z_={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("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Nk(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) +42===t||45===t?e.check(F_,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), +return Nk(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){ +e.check(a_,r.interrupt?n:c,e.attempt(q_,d,u))}function c(e){ return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){ -return xx(t)?(e.enter("listItemPrefixWhitespace"), +return Bk(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._closeFlow=void 0,e.check(a_,(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, +i_(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){ +if(r.containerState.furtherBlankLines||!Bk(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){ +r.containerState.initialBlankLine=void 0,e.attempt(H_,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){ +r.interrupt=void 0,i_(e,e.attempt(z_,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o) +}}},exit:function(e){e.exit(this.containerState.type)}},q_={ +tokenize:function(e,t,n){const r=this;return i_(e,(function(e){ const o=r.events[r.events.length-1] -;return!xx(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e) +;return!Bk(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] +},partial:!0},H_={tokenize:function(e,t,n){const r=this +;return i_(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_={ +}),"listItemIndent",r.containerState.size+1)},partial:!0};const V_={ 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){ @@ -8570,8 +8672,8 @@ if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingL 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)}}, +Bk(t)?i_(e,a,"lineSuffix")(t):a(t))}function a(r){ +return null===r||Lk(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), @@ -8580,18 +8682,18 @@ 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 e.push(["exit",a,t]),e}};const Z_={tokenize:function(e,t,n){const r=this +;return i_(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 +}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function W_(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()})) +;const s=ox(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){ +e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function X_(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), @@ -8602,7 +8704,7 @@ 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){ +;return e.splice(n,e.length-n+1,...s),e}function G_(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"), @@ -8610,13 +8712,13 @@ 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) +function l(s){if(a>999||93===s&&!i||null===s||91===s||jk(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"), +;return o.includes(ox(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){ +return jk(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 Y_(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"), @@ -8626,25 +8728,25 @@ 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){ +if(s>999||93===t&&!a||null===t||91===t||jk(t))return n(t);if(93===t){ e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString") -;return i=Ux(r.sliceSerialize(n)), +;return i=ox(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){ +d}return jk(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 +o.includes(i)||o.push(i),i_(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)} +function p(e){return t(e)}}function K_(e,t,n){ +return e.check(a_,t,e.attempt(Z_,t,n))}function J_(e){ +e.exit("gfmFootnoteDefinition")}function eE(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) +const l=e_(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=e_(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(;++n0;)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-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, +return null===t?n(t):Lk(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, +d):n(t):Bk(t)?i_(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)} +return null===t||124===t||jk(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)) +o=!1,Bk(t)?i_(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 Bk(t)?i_(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){ +m):45===t?(a+=1,m(t)):null===t||Lk(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"), +function v(t){return Bk(t)?i_(e,b,"whitespace")(t):b(t)}function b(n){ +return 124===n?p(n):(null===n||Lk(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_ +w):null===n||Lk(n)?(e.exit("tableRow"),t(n)):Bk(n)?i_(e,w,"whitespace")(n):(e.enter("data"), +k(n))}function k(t){ +return null===t||124===t||jk(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?x:k)} +function x(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function oE(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 tE ;for(;++in[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_={ +return void 0!==o&&(i.end=Object.assign({},sE(t.events,o)), +e.add(o,0,[["exit",i,t]]),i=void 0),i}function aE(e,t,n,r,o){ +const i=[],a=sE(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 sE(e,t){ +const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const lE={ 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), +return jk(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{ +function a(r){return Lk(r)?t(r):Bk(r)?e.check({tokenize:cE},t,n)(r):n(r)}}} +;function cE(e,t,n){return i_(e,(function(e){return null===e?n(e):t(e) +}),"whitespace")}const uE={};function dE(e){ +const t=e||uE,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]) +;r.push(function(e){return MS([{text:VS},{document:{91:{tokenize:Y_, +continuation:{tokenize:K_},exit:J_}},text:{91:{tokenize:G_},93:{add:"after", +tokenize:W_,resolveTo:X_}}},eE(e),{flow:{null:{tokenize:rE,resolveAll:oE}}},{ +text:{91:lE}}])}(t)),o.push([{transforms:[ex],enter:{literalAutolink:Wk, +literalAutolinkEmail:Xk,literalAutolinkHttp:Xk,literalAutolinkWww:Xk},exit:{ +literalAutolink:Jk,literalAutolinkEmail:Kk,literalAutolinkHttp:Gk, +literalAutolinkWww:Yk}},{enter:{gfmFootnoteDefinition:ix, +gfmFootnoteDefinitionLabelString:ax,gfmFootnoteCall:cx,gfmFootnoteCallString:ux +},exit:{gfmFootnoteDefinition:lx,gfmFootnoteDefinitionLabelString:sx, +gfmFootnoteCall:px,gfmFootnoteCallString:dx}},{canContainEols:["delete"],enter:{ +strikethrough:vx},exit:{strikethrough:bx}},{enter:{table:wS,tableData:_S, +tableHeader:_S,tableRow:xS},exit:{codeText:ES,table:kS,tableData:SS, +tableHeader:SS,tableRow:SS}},{exit:{taskListCheckValueChecked:AS, +taskListCheckValueUnchecked:AS,paragraph:PS}}]),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:[{ +inConstruct:Vk,notInConstruct:Zk},{character:".",before:"[Ww]", +after:"[\\-.\\w]",inConstruct:Vk,notInConstruct:Zk},{character:":", +before:"[ps]",after:"\\/",inConstruct:Vk,notInConstruct:Zk}]},{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){ +footnoteDefinition:fx,footnoteReference:hx}},{unsafe:[{character:"~", +inConstruct:"phrasing",notInConstruct:gx}],handlers:{delete:Ox}},CS(e),{ +unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:DS}}]}}(t)) +}const pE={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 +i_(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){ +e.exit("paragraph"),void e.consume(t)):Lk(t)?(e.consume(t), +e.exit("chunkText"),r):(e.consume(t),o)}}};const hE={tokenize:function(e){ const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(ar;){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_={ +r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},fE={ 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){ +return i_(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4) +}};const mE={tokenize:function(e){const t=this,n=e.attempt(a_,(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"))) +}),e.attempt(this.parser.constructs.flowInitial,r,i_(e,e.attempt(this.parser.constructs.flow,r,e.attempt(O_,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){ +t.currentConstruct=void 0,n;e.consume(r)}}};const gE={resolveAll:yE() +},vE=OE("string"),bE=OE("text");function OE(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-1){const e=a[0] @@ -8911,56 +9013,56 @@ r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,s=i,b()} function g(t){return e(d,h),o}function v(e){ return h.restore(),++u0){ -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}) +const e=i.tokenStack[i.tokenStack.length-1];(e[1]||UE).call(i,void 0,e[0])} +for(r.position={start:jE(e.length>0?e[0][1].start:{line:1,column:1,offset:0}), +end:jE(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0}) },d=-1;++d1:t} -const CE=9,AE=32;function PE(e){const t=String(e),n=/\r?\n|\r/g +function qE(e){const t=e.spread;return null==t?e.children.length>1:t} +const HE=9,VE=32;function ZE(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]), +;for(;r;)i.push(WE(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){ +;return i.push(WE(t.slice(o),o>0,!1)),i.join("")}function WE(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", +;for(;t===HE||t===VE;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1) +;for(;t===HE||t===VE;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""} +const XE={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"}]}, @@ -9121,7 +9223,7 @@ 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) +const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=JS(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:{ @@ -9134,10 +9236,10 @@ type:"element",tagName:"h"+t.depth,properties:{},children:e.all(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} +;if(!r)return zE(e,t);const o={src:JS(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)} +image:function(e,t){const n={src:JS(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)}, @@ -9146,15 +9248,15 @@ 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||"")} +;if(!r)return zE(e,t);const o={href:JS(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)} +},link:function(e,t){const n={href:JS(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&&++r0){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]) +children:e.wrap(n,!0)},i=pw(t.children[1]),a=dw(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={ @@ -9194,47 +9296,47 @@ const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n. ;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)}, +value:ZE(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=[{ +children:[]};return e.patch(t,n),e.applyData(t,n)},toml:GE,yaml:GE, +definition:GE,footnoteDefinition:GE};function GE(){}function YE(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 +properties:{},children:[{type:"text",value:String(t)}]}),n}function KE(e,t){ +return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const JE={}.hasOwnProperty,eT={} +;function tT(e,t){e.position&&(t.position=fw(e))}function nT(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")?{ +"element"===n.type&&o&&Object.assign(n.properties,rg(o)), +"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function rT(e,t){ +const n=t.data||{},r=!("value"in t)||JE.call(n,"hProperties")||JE.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=[] +value:t.value};return e.patch(t,r),e.applyData(t,r)}function oT(e,t){const n=[] ;let r=-1;for(t&&n.push({type:"text",value:"\n"});++r0&&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={ +value:"\n"}),n}function iT(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++, +n=e.charCodeAt(t);return e.slice(t)}function aT(e,t){const n=function(e,t){ +const n=t||eT,r=new Map,o=new Map,i=new Map,a={...XE,...n.handlers},s={ all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1 ;for(;++r0&&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", @@ -9248,34 +9350,34 @@ const e=h.children[h.children.length-1] 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}]},{ +properties:{...rg(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, +type:"text",value:"\n"},o),i}function sT(e,t){ +return e&&"run"in e?async function(n,r){const o=aT(n,{file:r,...t}) +;await e.run(o,r)}:function(n,r){return aT(n,{file:r,...t||e})}}function lT(e){ +const t=this;t.compiler=function(n){return fS(n,{...t.data("settings"),...e, +extensions:t.data("toMarkdownExtensions")||[]})}}function cT(e){if(e)throw e} +var uT=Object.prototype.hasOwnProperty,dT=Object.prototype.toString,pT=Object.defineProperty,hT=Object.getOwnPropertyDescriptor,fT=function(e){ +return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===dT.call(e) +},mT=function(e){if(!e||"[object Object]"!==dT.call(e))return!1 +;var t,n=uT.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&uT.call(e.constructor.prototype,"isPrototypeOf") +;if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||uT.call(e,t) +},gT=function(e,t){pT&&"__proto__"===t.name?pT(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(){ +},vT=function(e,t){if("__proto__"===t){if(!uT.call(e,t))return +;if(hT)return hT(e,t).value}return e[t]},bT=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={});le.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 +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--;){ +},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(;++n0?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){ +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){ +}const _T={cwd:function(){return"/"}};function ET(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)){ +}function TT(e){if("string"==typeof e)e=new URL(e);else if(!ET(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") @@ -9356,181 +9458,181 @@ const e=new TypeError('File URL host must be "localhost" or empty on darwin') 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){ +const CT=["history","path","basename","stem","extname","dirname"];class AT{ +constructor(e){let t;t=e?ET(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(;++r0){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){ +;yT(a)&&yT(r)&&(r=OT(!0,a,r)),n[o]=[e,r,...i]}}}}const IT=(new MT).freeze() +;function LT(e,t){ if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")} -function wT(e,t){ +function jT(e,t){ if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`") -}function xT(e,t){ +}function BT(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){ +}function QT(e){ +if(!yT(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`") +}function UT(e,t,n){ if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")} -function _T(e){return function(e){ +function FT(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) +}(e)?e:new AT(e)}const zT=function(e,t,n){const r=hg(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(;++tl&&(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(;++sXT(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={ +relevance:0};function pC(e,t,n){return-1===n?"":e.replace(t,(r=>pC(e,t,n-1)))} +const hC="[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"],mC=["true","false","null","undefined","NaN","Infinity"],gC=["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"],vC=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],bC=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],OC=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],yC=[].concat(bC,gC,vC) +;var wC="[0-9](_*[0-9])*",kC=`\\.(${wC})`,xC="[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:`(\\b(${wC})((${kC})|\\.)?|(${kC}))[eE][+-]?(${wC})[fFdD]?\\b`},{ +begin:`\\b(${wC})((${kC})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{ +begin:`(${kC})[fFdD]?\\b`},{begin:`\\b(${wC})[fFdD]\\b`},{ +begin:`\\b0[xX]((${xC})\\.?|(${xC})?\\.(${xC}))[pP][+-]?(${wC})[fFdD]?\\b`},{ +begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${xC})[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] +;const _C=["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"],EC=["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"],TC=["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"],CC=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],AC=["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(),PC=TC.concat(CC) +;const DC=["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"],$C=["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"],RC=["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"],NC=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],MC=["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 IC(e){return e?"string"==typeof e?e:e.source:null}function LC(e){ +return jC("(?=",e,")")}function jC(...e){return e.map((e=>IC(e))).join("")} +function BC(...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){ +}(e);return"("+(t.capture?"":"?:")+e.map((e=>IC(e))).join("|")+")"} +const QC=e=>jC(/\b/,e,/\w$/.test(e)?/\b/:/\B/),UC=["Protocol","Type"].map(QC),FC=["init","self"].map(QC),zC=["Any","Self"],qC=["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"],HC=["false","nil","true"],VC=["assignment","associativity","higherThan","left","lowerThan","none","right"],ZC=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],WC=["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"],XC=BC(/[/=\-+!*%<>&|^~?]/,/[\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]/),GC=BC(XC,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),YC=jC(XC,GC,"*"),KC=BC(/[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]/),JC=BC(KC,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),eA=jC(KC,JC,"*"),tA=jC(/[A-Z]/,JC,"*"),nA=["attached","autoclosure",jC(/convention\(/,BC("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",jC(/objc\(/,eA,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],rA=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"] +;const oA="[A-Za-z$_][0-9A-Za-z$_]*",iA=["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"],aA=["true","false","null","undefined","NaN","Infinity"],sA=["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"],lA=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],cA=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],uA=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],dA=[].concat(cA,sA,lA) +;function pA(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/}] @@ -9557,31 +9659,31 @@ begin:t.concat(//,/>/,/\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(){ +function hA(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){ +const n=e[t],r=typeof n;"object"!==r&&"function"!==r||Object.isFrozen(n)||hA(n) +})),e}class fA{constructor(e){ void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1} -ignoreMatch(){this.isMatchIgnored=!0}}function KC(e){ +ignoreMatch(){this.isMatchIgnored=!0}}function mA(e){ return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'") -}function JC(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r] +}function gA(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){ +const vA=e=>!!e.scope;class bA{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})=>{ +this.buffer+=mA(e)}openNode(e){if(!vA(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+="")}value(){return this.buffer}span(e){ -this.buffer+=``}}const nA=(e={})=>{const t={children:[]} -;return Object.assign(t,e),t};class rA{constructor(){ -this.rootNode=nA(),this.stack=[this.rootNode]}get top(){ +closeNode(e){vA(e)&&(this.buffer+="")}value(){return this.buffer}span(e){ +this.buffer+=``}}const OA=(e={})=>{const t={children:[]} +;return Object.assign(t,e),t};class yA{constructor(){ +this.rootNode=OA(),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.top.children.push(e)}openNode(e){const t=OA({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)} @@ -9589,102 +9691,102 @@ 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} +yA._collapse(e)})))}}class wA extends yA{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 new bA(this,this.options).value()}finalize(){return this.closeAllNodes(), +!0}}function kA(e){return e?"string"==typeof e?e:e.source:null}function xA(e){ +return EA("(?=",e,")")}function SA(e){return EA("(?:",e,")*")}function _A(e){ +return EA("(?:",e,")?")}function EA(...e){return e.map((e=>kA(e))).join("")} +function TA(...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} +}(e);return"("+(t.capture?"":"?:")+e.map((e=>kA(e))).join("|")+")"} +function CA(e){return new RegExp(e.toString()+"|").exec("").length-1} +const AA=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./ +;function PA(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n +;let r=kA(e),o="";for(;r.length>0;){const e=AA.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, +const DA="[a-zA-Z]\\w*",$A="[a-zA-Z_]\\w*",RA="\\b\\d+(\\.\\d+)?",NA="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",MA="\\b(0b[01]+)",IA={ +begin:"\\\\[\\s\\S]",relevance:0},LA={scope:"string",begin:"'",end:"'", +illegal:"\\n",contains:[IA]},jA={scope:"string",begin:'"',end:'"',illegal:"\\n", +contains:[IA]},BA=function(e,t,n={}){const r=gA({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){ +;const o=TA("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:EA(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}), +r},QA=BA("//","$"),UA=BA("/\\*","\\*/"),FA=BA("#","$"),zA={scope:"number", +begin:RA,relevance:0},qA={scope:"number",begin:NA,relevance:0},HA={ +scope:"number",begin:MA,relevance:0},VA={scope:"regexp",begin:/\/(?=[^/\n]*\/)/, +end:/\/[gimuy]*/,contains:[IA,{begin:/\[/,end:/\]/,relevance:0,contains:[IA]}] +},ZA={scope:"title",begin:DA,relevance:0},WA={scope:"title",begin:$A,relevance:0 +},XA={begin:"\\.\\s*"+$A,relevance:0};var GA=Object.freeze({__proto__:null, +APOS_STRING_MODE:LA,BACKSLASH_ESCAPE:IA,BINARY_NUMBER_MODE:HA, +BINARY_NUMBER_RE:MA,COMMENT:BA,C_BLOCK_COMMENT_MODE:UA,C_LINE_COMMENT_MODE:QA, +C_NUMBER_MODE:qA,C_NUMBER_RE:NA,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:{ +HASH_COMMENT_MODE:FA,IDENT_RE:DA,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:XA, +NUMBER_MODE:zA,NUMBER_RE:RA,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, +},QUOTE_STRING_MODE:jA,REGEXP_MODE:VA, RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", SHEBANG:(e={})=>{const t=/^#![ ]*\// -;return e.binary&&(e.begin=cA(t,/.*\b/,e.binary,/\b.*/)),JC({scope:"meta", +;return e.binary&&(e.begin=EA(t,/.*\b/,e.binary,/\b.*/)),gA({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){ +},TITLE_MODE:ZA,UNDERSCORE_IDENT_RE:$A,UNDERSCORE_TITLE_MODE:WA}) +;function YA(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function KA(e,t){ +void 0!==e.className&&(e.scope=e.className,delete e.className)}function JA(e,t){ t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)", -e.__beforeBegin=NA, +e.__beforeBegin=YA, 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){ +void 0===e.relevance&&(e.relevance=0))}function eP(e,t){ +Array.isArray(e.illegal)&&(e.illegal=TA(...e.illegal))}function tP(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 +;e.begin=e.match,delete e.match}}function nP(e,t){ +void 0===e.relevance&&(e.relevance=1)}const rP=(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={ +})),e.keywords=n.keywords,e.begin=EA(n.beforeMatch,xA(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) +},oP=["of","and","for","in","not","or","if","then","parent","list","value"],iP="keyword" +;function aP(e,t,n=iP){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){ +Object.assign(r,aP(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){ +;r[n[0]]=[e,sP(n[0],n[1])]}))}}function sP(e,t){return t?Number(t):function(e){ +return oP.includes(e.toLowerCase())}(e)?0:1}const lP={},cP=e=>{console.error(e) +},uP=(e,...t)=>{console.log(`WARN: ${e}`,...t)},dP=(e,t)=>{ +lP[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),lP[`${e}/${t}`]=!0) +},pP=new Error;function hP(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+=CA(t[s-1]) +;e[n]=a,e[n]._emit=i,e[n]._multi=!0}function fP(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:""})} +if(e.skip||e.excludeBegin||e.returnBegin)throw cP("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), +pP +;if("object"!=typeof e.beginScope||null===e.beginScope)throw cP("beginScope must be object"), +pP;hP(e,e.begin,{key:"beginScope"}),e.begin=PA(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":"")) +if(e.skip||e.excludeEnd||e.returnEnd)throw cP("skip, excludeEnd, returnEnd not compatible with endScope: {}"), +pP +;if("object"!=typeof e.endScope||null===e.endScope)throw cP("endScope must be object"), +pP;hP(e,e.end,{key:"endScope"}),e.end=PA(e.end,{joinWith:""})}}(e)} +function mP(e){function t(t,n){ +return new RegExp(kA(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:"|" +this.matchAt+=CA(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null) +;const e=this.regexes.map((e=>e[1]));this.matcherRe=t(PA(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] @@ -9704,52 +9806,52 @@ 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 +;return e.classNameAliases=gA(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 +;[KA,tP,fP,rP].forEach((e=>e(o,i))),e.compilerExtensions.forEach((e=>e(o,i))), +o.__beforeBegin=null,[JA,eP,nP].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)), +delete o.keywords.$pattern),s=s||/\w+/,o.keywords&&(o.keywords=aP(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)), +a.terminatorEnd=kA(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) +return gA(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants +;if(gP(e))return gA(e,{starts:e.starts?gA(e.starts):null}) +;if(Object.isFrozen(e))return gA(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{ +}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(a),a}(e)}function gP(e){ +return!!e&&(e.endsWithParent||gP(e.starts))}class vP 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 bP=mA,OP=gA,yP=Symbol("nomatch"),wP=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){ +cssSelector:"pre code",languages:null,__emitter:wA};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"), +n=t.ignoreIllegals,o=t.language):(dP("10.7.0","highlight(lang, code, ...args) has been deprecated."), +dP("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 o=k.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] +const n=k.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){ @@ -9759,18 +9861,18 @@ if(!t[_.subLanguage])return void T.addText(C) ;_.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=""), +;continue}const r=k.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), +return e.scope&&"string"==typeof e.scope&&T.openNode(k.classNameAliases[e.scope]||e.scope), +e.beginScope&&(e.beginScope._wrap?(h(C,k.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) +;return n&&0===n.index}(e.endRe,n);if(r){if(e["on:end"]){const n=new fA(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=_ +const t=e[0],r=n.substring(e.index),o=v(_,e,r);if(!o)return yP;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), @@ -9783,31 +9885,31 @@ 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"]] +const t=e[0],n=e.rule,r=new fA(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||"")+'"') -;throw e.mode=_,e}if("end"===i.type){const e=O(i);if(e!==rP)return e} +;throw e.mode=_,e}if("end"===i.type){const e=O(i);if(e!==yP)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) +return C+=a,a.length}const k=m(e) +;if(!k)throw cP(i.replace("{}",e)),new Error('Unknown language: "'+e+'"') +;const x=mP(k);let S="",_=a||x;const E={},T=new s.__emitter(s);!function(){ +const e=[];for(let t=_;t!==k;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();;){ +if(k.__emitTokens)k.__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), +if(R.message&&R.message.includes("Illegal"))return{language:e,value:bP(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:_} +language:e,value:bP(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)} +const t={value:bP(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 @@ -9816,8 +9918,8 @@ if(e.relevance!==t.relevance)return t.relevance-e.relevance ;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||(uP(i.replace("{}",n[1])), +uP("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) @@ -9825,7 +9927,7 @@ VA("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight" 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 +throw new vP("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}`) @@ -9842,31 +9944,31 @@ 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.")}, +return dP("10.7.0","highlightBlock will be removed entirely in v12.0"), +dP("10.7.0","Please use highlightElement now."),p(e)},configure:function(e){ +s=OP(s,e)},initHighlighting:()=>{ +f(),dP("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")}, initHighlightingOnLoad:function(){ -f(),WA("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.") +f(),dP("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} +if(cP("Language definition for '{}' could not be registered.".replace("{}",n)), +!o)throw s;cP(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){ +inherit:OP,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){ +},e.versionString="11.9.0",e.regex={concat:EA,lookahead:xA,either:TA, +optional:_A,anyNumberOfTimes:SA} +;for(const O in GA)"object"==typeof GA[O]&&hA(GA[O]);return Object.assign(e,GA), +e},kP=wP({});kP.newInstance=()=>wP({});var xP=kP;kP.HighlightJS=kP,kP.default=kP +;const SP=gm(xP),_P={},EP="hljs-";class TP{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] @@ -9878,13 +9980,13 @@ 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={ +closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const CP={ 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 +"c++":"cpp",node:"javascript"},AP={};function PP(e){ +const t=e||AP,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 +const t=SP.newInstance();return e&&o(e),{highlight:n, +highlightAuto:function(e,o){const i=(o||_P).subset||r();let a,s=-1,l=0 ;for(;++sl&&(l=c.data.relevance,a=c) }return a||{type:"root",children:[],data:{language:void 0,relevance:l}}}, @@ -9893,9 +9995,9 @@ 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 +const o=r||_P,i="string"==typeof o.prefix?o.prefix:EP ;if(!t.getLanguage(e))throw new Error("Unknown language: `"+e+"` is not registered") -;t.configure({__emitter:uP,classPrefix:i});const a=t.highlight(n,{ +;t.configure({__emitter:TP,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 @@ -9904,23 +10006,23 @@ 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 +return function(e,t){wg(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) +}),"");return CP[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}) +p=d?c.highlight(d,KT(o),{prefix:a}):c.highlightAuto(KT(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){ +p.children.length>0&&(e.children=p.children)}))}}const DP={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={ @@ -10060,8 +10162,8 @@ 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:":("+iC.join("|")+")"},{begin:":(:)?("+aC.join("|")+")"}] +},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+sC.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" @@ -10069,10 +10171,10 @@ begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri" 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:[{ +$pattern:/[a-z-]+/,keyword:"and or not only",attribute:oC.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:/"/, +className:"selector-tag",begin:"\\b("+rC.join("|")+")\\b"}]}}, +curl:gm((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"], @@ -10181,8 +10283,8 @@ 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={ +relevance:0}],illegal:[/[;<']/,/BEGIN/]}},html:pA,java:function(e){ +const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+pC("(?:<"+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"], @@ -10205,9 +10307,9 @@ 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\\._:-]+/, +contains:[i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,dC,e.C_BLOCK_COMMENT_MODE] +},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},dC,i]}},javascript:function(e){ +const t=e.regex,n=hC,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 @@ -10215,7 +10317,7 @@ const n=e[0].length+e.index,r=e.input[n] ;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 +}},a={$pattern:hC,keyword:fC,literal:mC,built_in:yC,"variable.language":OC },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`},{ @@ -10244,13 +10346,13 @@ 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:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},k={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:[{ +className:"title.class",keywords:{_:[...gC,...vC]}},x={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(/\(/)), +match:t.concat(/\b/,(_=[...bC,"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={ @@ -10260,11 +10362,11 @@ contains:[{begin:/\(\)/},y] 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])/, +PARAMS_CONTAINS:O,CLASS_REFERENCE:k},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,{ +},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,f,m,g,{match:/\$\d+/},u,k,{ 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,{ @@ -10274,7 +10376,7 @@ 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,{ +contains:[{begin:i.begin,end:i.end,skip:!0,contains:["self"]}]}]},x,{ 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, @@ -10300,7 +10402,7 @@ 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={ +},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, @@ -10331,10 +10433,10 @@ 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{ +}))(e),n=PC,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, +attribute:EC.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]", @@ -10345,7 +10447,7 @@ className:"attribute",begin:r+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0 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", +},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+AC.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", @@ -10355,10 +10457,10 @@ className:"variable",variants:[{begin:"@"+r+"\\s*:",relevance:15},{begin:"@"+r 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" +begin:"\\b("+_C.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:/\(/, +className:"selector-pseudo",begin:":("+TC.join("|")+")"},{ +className:"selector-pseudo",begin:":(:)?("+CC.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), @@ -10499,11 +10601,11 @@ 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, +;const k=[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}] +contains:["self",...k]},...k,{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, @@ -10713,24 +10815,24 @@ 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", +}))(e),n=NC,r=RC,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:"\\b("+DC.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("+MC.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, +keyword:"and or not only",attribute:$C.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", @@ -10753,62 +10855,62 @@ 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:[{ +match:[/\./,BC(...UC,...FC)],className:{2:"keyword"}},i={ +match:jC(/\./,BC(...qC)),relevance:0 +},a=qC.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})+`}] +match:BC(...qC.filter((e=>"string"!=typeof e)).concat(zC).map(QC),...FC)}]},l={ +$pattern:BC(/\b\w+/,/#\w+/),keyword:a.concat(ZC),literal:HC},c=[o,i,s],u=[{ +match:jC(/\./,BC(...WC)),relevance:0},{className:"built_in", +match:jC(/\b/,BC(...WC),/(?=\()/)}],d={match:/->/,relevance:0},p=[d,{ +className:"operator",relevance:0,variants:[{match:YC},{match:`\\.(\\.|${GC})+`}] }],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={ +match:jC(/\\/,e,/[0\\tnr"']/)},{match:jC(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}] +}),v=(e="")=>({className:"subst",match:jC(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/) +}),b=(e="")=>({className:"subst",label:"interpol",begin:jC(/\\/,e,/\(/),end:/\)/ +}),O=(e="")=>({begin:jC(e,/"""/),end:jC(/"""/,e),contains:[g(e),v(e),b(e)] +}),y=(e="")=>({begin:jC(e,/"/),end:jC(/"/,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,/`/) +},k=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0, +contains:[e.BACKSLASH_ESCAPE]}],x={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//, +contains:k},S=e=>{const t=jC(e,/\//),n=jC(/\//,e);return{begin:t,end:n, +contains:[...k,{scope:"comment",begin:`#(?!.*${n})`,end:/$/}]}},_={ +scope:"regexp",variants:[S("###"),S("##"),S("#"),x]},E={match:jC(/`/,eA,/`/) },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={ +match:`\\$${JC}+`}],C=[{match:/(@|#(un)?)available/,scope:"keyword",starts:{ +contains:[{begin:/\(/,end:/\)/,keywords:rA,contains:[...p,m,w]}]}},{ +scope:"keyword",match:jC(/@/,BC(...nA))},{scope:"meta",match:jC(/@/,eA)}],A={ +match:LC(/\b[A-Z]/),relevance:0,contains:[{className:"type", +match:jC(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,JC,"+") +},{className:"type",match:tA,relevance:0},{match:/[?!]+/,relevance:0},{ +match:/\.\.\./,relevance:0},{match:jC(/\s+&\s+/,LC(tA)),relevance:0}]},P={ begin://,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 +match:jC(eA,/\s*:/),keywords:"_|0",relevance:0 },...r,_,...c,...u,...p,m,w,...T,...C,A]},$={begin://, 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:/:/, +contains:[{begin:BC(LC(jC(eA,/\s*:/)),LC(jC(eA,/\s+/,eA,/\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:eA}]},...r,...c,...p,m,w,...C,A,D],endsParent:!0,illegal:/["']/},N={ +match:[/(func|macro)/,/\s+/,BC(E.match,eA,YC)],className:{1:"keyword", +3:"title.function"},contains:[$,R,t],illegal:[/\[/,/%/]},M={ 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)) +contains:[$,R,t],illegal:/\[|%/},I={match:[/operator/,/\s+/,YC],className:{ +1:"keyword",3:"title"}},L={begin:[/precedencegroup/,/\s+/,tA],className:{ +1:"keyword",3:"title"},contains:[A],keywords:[...VC,...HC],end:/}/} +;for(const j of w.variants){const e=j.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", +contains:[...r,N,M,{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 +},I,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={ +const t=function(e){const t=e.regex,n=oA,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 @@ -10816,7 +10918,7 @@ isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,r=e.input[n] ;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 +}},a={$pattern:oA,keyword:iA,literal:aA,built_in:dA,"variable.language":uA },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`},{ @@ -10845,13 +10947,13 @@ 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:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},k={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:[{ +className:"title.class",keywords:{_:[...sA,...lA]}},x={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(/\(/)), +match:t.concat(/\b/,(_=[...cA,"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={ @@ -10861,11 +10963,11 @@ contains:[{begin:/\(\)/},y] 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])/, +PARAMS_CONTAINS:O,CLASS_REFERENCE:k},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,{ +},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,h,f,m,g,{match:/\$\d+/},u,k,{ 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,{ @@ -10875,7 +10977,7 @@ 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,{ +contains:[{begin:i.begin,end:i.end,skip:!0,contains:["self"]}]}]},x,{ 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, @@ -10883,13 +10985,13 @@ 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={ +}(e),n=oA,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", +contains:[t.exports.CLASS_REFERENCE]},a={$pattern:oA, +keyword:iA.concat(["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"]), +literal:aA,built_in:dA.concat(r),"variable.language":uA},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)} @@ -10898,7 +11000,7 @@ 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){ +name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),t},xml:pA,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", @@ -10921,40 +11023,40 @@ 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=[] +aliases:["yml"],contains:c}}},$P=function(e,...t){return t=>{ +(null==e?void 0:e.transform)&&(null==e?void 0:e.type)&&wg(t,null==e?void 0:e.type,(t=>((null==e?void 0:e.transform)&&(null==e||e.transform(t)), +Og)))}};function RP(e){return IT().use(FE).use(dE).parse(e)}function NP(e,t=1){ +const n=RP(e),r=[];return wg(n,"heading",(e=>{const n=MP(e);n&&r.push({ +depth:e.depth??t,value:n.value})})),r}function MP(e){if("text"===e.type)return e +;if("children"in e&&e.children)for(const t of e.children){const e=MP(t) +;if(e)return e}return null}function IP(e){var t;const n=RP(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){ +const t=IT().use(lT).use(dE).stringify({type:"root",children:e});return t.trim() +}(e)))}const LP=(e,t)=>e.map((e=>({...e,slug:t.slug(e.value)})));function jP(e){ +const t=new ef,n=NP(e);return LP(n,t)}const BP=e=>{ +const t=Math.min(...e.map((e=>e.depth)));return t>=1&&t<=6?t:1};function QP(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 +const UP=e=>!!e&&!!Object.keys(QP(e)??{}).length,FP=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){ +},zP=(e,t)=>e.replace(/\/$/,"")+"/"+t.replace(/^\//,""),{server:qP}=_p(),{setOperation:HP,setGlobalSecurity:VP}=lp(),{toggleApiClient:ZP}=tp(),{setActiveRequest:WP,resetActiveResponse:XP}={ +readOnly:bp,activeRequest:pp,activeResponse:mp,requestHistory:cp, +requestHistoryOrder:up,activeRequestId:dp,setActiveResponse:fp, +resetActiveResponse:vp,addRequestToHistory:hp,setActiveRequest:gp} +;function GP(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), +var o,i;const a=Wm({url:Vd(e)},Ef(n,{requiredOnly:!1 +}),t?ol(t,(null==(o=n.information)?void 0:o.security)??r??[]):{}),s=Ef(n,{ +requiredOnly:!1}),l=wf(n,"path",!1);return{id:n.operationId,name:n.name, +type:a.method,path:s.path??"",variables:l,cookies:Tf(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":{ +headers:Tf(a.headers),url:Vd(e)??"",body:null==(i=a.postData)?void 0:i.text}}({ +serverState:qP,operation:e,authenticationState:null,globalSecurity:null}) +;XP(),WP(n),HP(e),VP(t),ZP(n,!0)}const YP={"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", @@ -11562,11 +11664,10 @@ 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":{ +properties:{url:{type:"string"},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"], @@ -11777,95 +11878,98 @@ $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={ +},KP=Object.keys(YP),JP={ 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)){ +;function eD(e){for(const t of new Set(KP)){ 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){ +specificationVersion:void 0}}function tD(e){ +return null==e?void 0:e.find((e=>e.isEntrypoint))}function nD(e){ +return decodeURI(e.replace(/~1/g,"/").replace(/~0/g,"~"))}function rD(e,t,n=[]){ +const r={};for(const[o,i]of Object.entries(e)){const e=[...n,o] +;Array.isArray(i)?r[o]=i.map(((n,r)=>"object"==typeof n&&null!==n?rD(n,t,[...e,r.toString()]):n)):r[o]="object"==typeof i&&null!==i?rD(i,t,e):i +}return t(r,n)}function oD(e){const t=[] +;return e&&"object"==typeof e?(rD(e,(e=>(e.$ref&&"string"==typeof e.$ref&&!e.$ref.startsWith("#")&&t.push(e.$ref.split("#")[0]), +e))),[...new Set(t)]):t}function iD(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 aD(e){if(iD(e))return e;if("string"==typeof e)try{return JSON.parse(e) +}catch(t){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){ +;const o=md(e,n);if(!o)return null +;if(o.warnings.forEach((e=>hc(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) +function sD(e,t={}){if(iD(e))return e;const n=aD(e);return[{isEntrypoint:!0, +specification:n,filename:null,dir:"./",references:oD(n),...t}]} +function lD(e,t,n,r){void 0===r&&(r=[]);const o=sD(structuredClone(e)),i=tD(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 +errors:r,schema:(n??tD(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 +const i=cD(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){ +errors:(null==i?void 0:i.errors)??[]}}}function cD(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){ +message:JP.INVALID_REFERENCE.replace("%s",e)}) +;const[i,a]=e.split("#",2),s=i!==n.filename;if(i&&s){ 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{ +message:JP.EXTERNAL_REFERENCE_NOT_FOUND.replace("%s",i)});const n=lD(r,t,e,o) +;return void 0===a?n.schema:cD(`#${a}`,t,e,r,o)}const l=function(e){ +return e.split("/").slice(1).map(nD)}(a);try{ +return l.reduce(((e,t)=>e[t]),n.specification)}catch(c){o.push({ +code:"INVALID_REFERENCE",message:JP.INVALID_REFERENCE.replace("%s",e)})}} +async function uD(e,t){const n=sD(e),r=tD(n),o=lD(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=[] +...eD(r.specification)}}async function dD(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, +specification:null==(r=tD(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)) +;if(c)try{u=aD(await c.get(e))}catch(h){ +if(null==t?void 0:t.throwOnError)throw new Error(JP.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){ +message:JP.EXTERNAL_REFERENCE_NOT_FOUND.replace("%s",e)}),{specification:null, +filesystem:[],errors:l}}else u=aD(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}) +;return l.push({code:"NO_CONTENT",message:JP.NO_CONTENT}),{specification:null, +filesystem:[],errors:l}}let d=sD(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))):tD(d)).references??oD(u) +;if(0===p.length)return{specification:null==(i=tD(d))?void 0:i.specification, +filesystem:d,errors:l};for(const f of p){ +const n=null==(a=null==t?void 0:t.plugins)?void 0:a.find((e=>e.check(f))) +;if(!n)continue;const r=n.check(f)&&n.resolvePath?n.resolvePath(e,f):f +;if(d.find((e=>e.filename===f)))continue +;const{filesystem:o,errors:i}=await dD(r,{...t,filename:f}) ;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], +specification:null==(s=tD(d))?void 0:s.specification,filesystem:d,errors:l}} +function pD(e){var t;let n=e +;return(null==(t=n.openapi)?void 0:t.startsWith("3.0"))?(n.openapi="3.1.0", +n=rD(n,(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, +e))),n=rD(n,(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=>{ +e))),n=rD(n,((e,t)=>(void 0!==e.example&&(!function(e){ +return[["components","schemas"],"properties","items","allOf","anyOf","oneOf","not","additionalProperties"].some((t=>Array.isArray(t)?t.every(((t,n)=>e[n]===t)):e.includes(t)))||e.includes("schema")||e.some((e=>e.endsWith("Schema"))) +}(t)?e.examples={default:e.example +}:e.examples=[e.example],delete e.example),e))),n=rD(n,(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=>{ +delete n.format)}return e})),n=rD(n,(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 +})),n=rD(n,(e=>"string"===e.type&&"base64"===e.format?{type:"string", +contentEncoding:"base64"}:e)),n):n}function hD(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."), @@ -11873,7 +11977,7 @@ 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 +e.components.schemas=e.definitions,delete e.definitions,e=rD(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] @@ -11885,33 +11989,49 @@ const t=structuredClone(o.parameters.find((e=>"body"===e.in))??{}) "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} +o.parameters=o.parameters.filter((e=>"body"!==e.in)),delete o.consumes +;const n=o.parameters.filter((e=>"formData"===e.in));if(n.length>0){ +"object"!=typeof o.requestBody&&(o.requestBody={}), +"object"!=typeof o.requestBody.content&&(o.requestBody.content={}), +o.requestBody.content["application/x-www-form-urlencoded"]={schema:{ +type:"object",properties:{},required:[]}} +;for(const e of n)o.requestBody.content["application/x-www-form-urlencoded"].schema.properties[e.name]={ +type:e.type,description:e.description +},e.required&&o.requestBody.content["application/x-www-form-urlencoded"].schema.required.push(e.name) +;o.parameters=o.parameters.filter((e=>"formData"!==e.in))}} 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{ +}}if(e.securityDefinitions){ +"object"!=typeof e.components&&(e.components={}),e.components.securitySchemes={} +;for(const[t,n]of Object.entries(e.securityDefinitions))if("object"==typeof n)if("type"in n&&"oauth2"===n.type){ +const{flow:r,authorizationUrl:o,tokenUrl:i,scopes:a}=n +;e.components.securitySchemes[t]={type:"oauth2",flows:{[r]:{...o&&{ +authorizationUrl:o},...i&&{tokenUrl:i},...a&&{scopes:a}}}} +}else e.components.securitySchemes[t]=n;delete e.securityDefinitions}return e} +const fD={limit:20},mD=e=>{let t=0;const n={...fD,...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=[]), +}}},gD=e=>{let t={} +;t=e&&"object"==typeof e?structuredClone(e):wp(),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, +httpVerb:Xd(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=>{ +Object.keys(t.paths[e]).filter((e=>rl.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, +;if(!0===c["x-internal"])return;const u={httpVerb:Xd(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} @@ -11925,181 +12045,189 @@ t.tags[a].operations.push(u)}));else{ 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() +}},vD=Symbol(),bD=Symbol(),OD=Symbol(),yD=Symbol(),wD=Symbol(),kD=async e=>{ +var t;null==(t=document.getElementById(e))||t.scrollIntoView() +},xD=e=>new Promise((t=>setTimeout(t,e))),SD=Jp(Symbol("downloadSpec")) +;const _D=async({url:e,content:t},n)=>{if(e){const t=performance.now();try{ +const r=function(e){try{return Boolean(new URL(e))}catch{return!1} +}(e)?await wd(e,n):await wd(e),o=performance.now() ;return console.log(`fetch: ${Math.round(o-t)} ms (${e})`), -console.log("size:",Math.round(r.length/1024),"kB"),r} +console.log("size:",Math.round(r.length/1024),"kB"),r}catch(o){ +console.error("Failed to fetch spec from URL:",o)}} 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) +;return"string"==typeof r?r:"object"==typeof r?Bd(r):void 0} +;function ED({specConfig:e,proxy:t}){const n=In(""),r=xn(wp()),o=In(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() +if(!e)return n(gD(wp()));const i=performance.now(),{filesystem:a}=await dD(e,{ +plugins:[mD({fetch:e=>fetch(t?ll(t,e):e)})] +}),{schema:s,errors:l}=await uD(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[] +n(gD(wp()))):n(gD(s))}catch(i){r(i)}return n(gD(wp()))})))(e,{ +proxy:t?Un(t):void 0}).then((e=>{o.value=null,Object.assign(r,{servers:[],...e}) +})).catch((e=>{o.value=e.toString()})):Object.assign(r,wp())} +return Ci((()=>Un(e)),(async e=>{var r;if(e){ +const o=null==(r=await _D(e,Un(t)))?void 0:r.trim() +;"string"==typeof o&&(n.value=o)}}),{immediate:!0,deep:!0}),Ci(n,(()=>{ +i(n.value)})),{rawSpec:n,parsedSpec:r,specErrors:o}}function TD(e){return{ +responses:$a((()=>{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, +const CD=Jp(Symbol()),{getHeadingId:AD,getModelId:PD,getOperationId:DD,getSectionId:$D,getTagId:RD,getWebhookId:ND,hash:MD}=ff(),ID=In(void 0),LD=xn({}) +;function jD(e){var t,n,r +;"alpha"===LD.tagsSorter?e.tags=null==(t=e.tags)?void 0:t.sort(((e,t)=>e.name.localeCompare(t.name))):"function"==typeof LD.tagsSorter&&(e.tags=null==(n=e.tags)?void 0:n.sort(LD.tagsSorter)) +;const o=(e,t)=>{const n=e.name??e.path,r=t.name??t.path +;return n.localeCompare(r)},i=(e,t)=>e.httpVerb.localeCompare(t.httpVerb);let a +;return"alpha"===LD.operationsSorter?a=o:"method"===LD.operationsSorter?a=i:"function"==typeof LD.operationsSorter&&(a=LD.operationsSorter), +a&&(null==(r=e.tags)||r.forEach((e=>{var t +;e.operations=null==(t=e.operations)?void 0:t.sort(a)}))),ID.value=e} +const BD=In(!1),QD=In(!1),UD=xn(Fd["useSidebarContent-collapsedSidebarItems"]??{}) +;function FD(e){UD[e]=!UD[e]}function zD(e,t){UD[e]=t}const qD=In([]) +;const HD=$a((()=>{var e,t,n,r,o,i,a,s,l,c +;const{state:u}=tp(),d={},{openApi:{globalSecurity:p}}=lp(),h=[];let f=null +;qD.value.forEach((e=>{var t;e.depth===BP(qD.value)?(f={id:AD(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=>{ +id:AD(e),title:e.value,show:!u.showApiClient}))})) +;const m=null==(t=null==(e=ID.value)?void 0:e.tags)?void 0:t[0],g=m&&(1!==(null==(v=null==(n=ID.value)?void 0:n.tags)?void 0:v.length)||"default"!==v[0].name||""!==v[0].description)?null==(o=null==(r=ID.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, +id:RD(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, +;const r=DD(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)}}}))} +select:()=>{u.showApiClient&&GP(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, +;const n=DD(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, +select:()=>{u.showApiClient&&GP(e,p)}}}));var v;let b=UP(ID.value)&&!BD.value?[{ +id:PD(),title:"Models",show:!u.showApiClient, +children:Object.keys(QP(ID.value)??{}).map((e=>{var t;const n=PD(e) +;return d[n]=e,{id:n,title:(null==(t=QP(ID.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, +}]:[],O=(y=ID.value)&&Object.keys((null==y?void 0:y.webhooks)??{}).length?[{ +id:ND(),title:"Webhooks",show:!u.showApiClient, +children:Object.keys((null==(a=ID.value)?void 0:a.webhooks)??{}).map((e=>{ +var t,n;const r=ND(e) +;return d[r]=e,Object.keys((null==(n=null==(t=ID.value)?void 0:t.webhooks)?void 0:n[e])??{}).map((t=>{ +var n,r,o;return{id:ND(e,t), +title:null==(o=null==(r=null==(n=ID.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=>{ +;const w=(null==(s=ID.value)?void 0:s["x-tagGroups"])?null==(c=null==(l=ID.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) +})):void 0,k=[...h,...w??g??[],...O,...b];return QD.value&&k.forEach((e=>{ +zD(e.id,!0),e.show=!0})),{entries:k,titles:d}})),VD=In(!1),ZD=$a((()=>{var e,t +;return(null==(t=null==(e=HD.value)?void 0:e.titles)?void 0:t[MD.value])??"" +})),WD=e=>{const t=$D(e);if(t!==e)if(UD[t])kD(e);else{const n=CD.on((t=>{ +t.id===e&&(kD(e),n())}));zD(t,!0)}};function XD(e){ +return Object.assign(LD,e),(null==e?void 0:e.parsedSpec)&&(jD(e.parsedSpec), +Ci((()=>{var e,t +;return null==(t=null==(e=ID.value)?void 0:e.tags)?void 0:t.length}),(()=>{ +var e,t;if(MD.value){const e=$D(MD.value);e&&zD(e,!0)}else{ +const n=null==(t=null==(e=ID.value)?void 0:e.tags)?void 0:t[0];n&&zD(RD(n),!0)} +})),Ci((()=>{var e,t +;return null==(t=null==(e=ID.value)?void 0:e.info)?void 0:t.description}),(()=>{ +var e,t;const n=null==(t=null==(e=ID.value)?void 0:e.info)?void 0:t.description +;return qD.value=n?function(e){const t=jP(e),n=BP(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))}))) +breadcrumb:ZD,items:HD,isSidebarOpen:VD,collapsedSidebarItems:UD, +toggleCollapsedSidebarItem:FD,setCollapsedSidebarItem:zD,hideModels:BD, +setParsedSpec:jD,defaultOpenAllTags:QD,scrollToOperation:WD}}const GD={ +targetKey:"shell",clientKey:"curl"};function YD(e){var t +;return(null==(t=t$.value.find((t=>t.key===e.targetKey)))?void 0:t.title)??e.targetKey +}function KD(e){var t,n +;return(null==(n=null==(t=t$.value.find((t=>t.key===e.targetKey)))?void 0:t.clients.find((t=>t.key===e.clientKey)))?void 0:n.title)??e.clientKey +}const JD=$a((()=>YD(c$))),e$=$a((()=>KD(c$)));const t$=$a((()=>{var e +;const t=Object.keys(Vm).map((e=>({...Vm[e].info, +clients:Object.keys(Vm[e].clientsById).map((t=>Vm[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){ +(null==(n=null==e?void 0:e.clients)?void 0:n.length)?[e]:[])}))}(t,r$)})),n$={ +node:["unirest"]},r$=In({...!0===n$?{}:n$}),o$=In();function i$(e){ +void 0!==e&&(o$.value=e,u$(a$()))}const a$=()=>{var e,t,n,r +;return s$(o$.value)?o$.value:s$(GD)?GD:{ +targetKey:null==(e=t$.value[0])?void 0:e.key, +clientKey:null==(r=null==(n=null==(t=t$.value[0])?void 0:t.clients)?void 0:n[0])?void 0:r.key +}};function s$(e){ +return void 0!==e&&!!t$.value.find((t=>t.key===e.targetKey&&t.clients.find((t=>t.key===e.clientKey)))) +}function l$(){jd(c$,a$())}const c$=xn(a$()),u$=e=>{Object.assign(c$,{...c$,...e +})},d$=()=>({httpClient:_n(c$),resetState:l$,setHttpClient:u$, +setDefaultHttpClient:i$,excludedClients:_n(r$),setExcludedClients:e=>{ +r$.value=e,jd(c$,a$())},availableTargets:t$,getClientTitle:KD,getTargetTitle:YD, +httpTargetTitle:JD,httpClientTitle:e$});function p$(e,t,n){ +let r=In(null==n?void 0:n.value),o=$a((()=>void 0!==e.value)) +;return[$a((()=>o.value?e.value:r.value)),function(e){ +return o.value||(r.value=e),null==t?void 0:t(e)}]}function h$(e){ "function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{ -throw e}))))}function XD(){let e=[],t={ +throw e}))))}function f$(){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]() +microTask(...e){let n={current:!0};return h$((()=>{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()))}, +[t]:r})}))},group(e){let t=f$();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 +let m$=Symbol("headlessui.useid"),g$=0;function v$(){ +return ti(m$,(()=>""+ ++g$))()}function b$(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 n instanceof Node?n:null}function O$(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,{ +;throw Error.captureStackTrace&&Error.captureStackTrace(r,O$),r} +var y$=Object.defineProperty,w$=(e,t,n)=>(((e,t,n)=>{t in e?y$(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){ +})(e,"symbol"!=typeof t?t+"":t,n),n);let k$=new class{constructor(){ +w$(this,"current",this.detect()),w$(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 +}};function x$(e){if(k$.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} +;if(null!=e&&e.hasOwnProperty("value")){let t=b$(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})} +let S$=["[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 _$,E$,T$,C$=((T$=C$||{})[T$.First=1]="First", +T$[T$.Previous=2]="Previous",T$[T$.Next=4]="Next", +T$[T$.Last=8]="Last",T$[T$.WrapAround=16]="WrapAround", +T$[T$.NoScroll=32]="NoScroll", +T$),A$=((E$=A$||{})[E$.Error=0]="Error",E$[E$.Overflow=1]="Overflow", +E$[E$.Success=2]="Success", +E$[E$.Underflow=3]="Underflow",E$),P$=((_$=P$||{})[_$.Previous=-1]="Previous", +_$[_$.Next=1]="Next",_$);function D$(e=document.body){ +return null==e?[]:Array.from(e.querySelectorAll(S$)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))) +}var $$=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))($$||{}) +;function R$(e,t=0){var n;return e!==(null==(n=x$(e))?void 0:n.body)&&O$(t,{ +0:()=>e.matches(S$),1(){let t=e;for(;null!==t;){if(t.matches(S$))return!0 +;t=t.parentElement}return!1}})}function N$(e){let t=x$(e);hr((()=>{ +t&&!R$(t.activeElement,0)&&I$(e)}))} +var M$=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(M$||{}) +;function I$(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){ +}),!0));let L$=["textarea","input"].join(",");function j$(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) +}))}function B$(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?j$(e):e:D$(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") @@ -12110,100 +12238,106 @@ r=null!=r?r:a.activeElement;let l,c=(()=>{if(5&t)return 1;if(10&t)return-1 ;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 null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,L$))&&n +}(l)&&l.select(),2}function Q$(){ 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=>{ +}function U$(){return Q$()||/Android/gi.test(window.navigator.userAgent)} +function F$(e,t,n){k$.isServer||Ti((r=>{ document.addEventListener(e,t,n),r((()=>document.removeEventListener(e,t,n)))})) -}function S$(e,t,n){r$.isServer||ai((r=>{ +}function z$(e,t,n){k$.isServer||Ti((r=>{ window.addEventListener(e,t,n),r((()=>window.removeEventListener(e,t,n)))}))} -function _$(e,t,n=Aa((()=>!0))){function r(r,o){ +function q$(e,t,n=$a((()=>!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) +;for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:b$(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 +return!R$(i,$$.Loose)&&-1!==i.tabIndex&&r.preventDefault(),t(r,i)}let o=In(null) +;F$("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 +}),!0),F$("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" +}),!0),F$("click",(e=>{U$()||o.value&&(r(e,(()=>o.value)),o.value=null) +}),!0),F$("touchend",(e=>r(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0), +z$("blur",(e=>r(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0) +}function H$(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) +function V$(e,t){let n=In(H$(e.value.type,e.value.as));return lo((()=>{ +n.value=H$(e.value.type,e.value.as)})),Ti((()=>{var e +;n.value||b$(t)&&b$(t)instanceof HTMLButtonElement&&(null==(e=b$(t))||!e.hasAttribute("type"))&&(n.value="button") +})),n}function Z$(e){return[e.screenX,e.screenY]}function W$(){let e=In([-1,-1]) +;return{wasMoved(t){let n=Z$(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.value=Z$(t)}}}function X$({container:e,accept:t,walk:n,enabled:r}){Ti((()=>{ +let o=e.value;if(!o||void 0!==r&&!r.value)return;let i=x$(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)}))} +var G$,Y$=(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={} +e))(Y$||{}),K$=((G$=K$||{})[G$.Unmount=0]="Unmount",G$[G$.Hidden=1]="Hidden",G$) +;function J$({visible:e=!0,features:t=0,ourProps:n,theirProps:r,...o}){var i +;let a=nR(r,n),s=Object.assign(o,{props:a});if(e||2&t&&a.static)return eR(s) +;if(1&t){return O$(null==(i=a.unmount)||i?0:1,{0:()=>null,1:()=>eR({...o,props:{ +...a,hidden:!0,style:{display:"none"}}})})}return eR(s)} +function eR({props:e,attrs:t,slots:n,slot:r,name:o}){var i,a +;let{as:s,...l}=oR(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){ +if(c=tR(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) +;let r=nR(null!=(a=e.props)?a:{},l,u),i=aa(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){ +return Ra(s,Object.assign({},l,u),{default:()=>c})}function tR(e){ +return e.flatMap((e=>e.type===Ui?tR(e.children):[e]))}function nR(...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), +function rR(e){let t=Object.assign({},e) +;for(let n in t)void 0===t[n]&&delete t[n];return t}function oR(e,t=[]){ +let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n} +var iR=(e=>(e[e.None=1]="None", +e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(iR||{});let aR=Gr({ +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 J$({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$=[] +theirProps:i,slot:{},attrs:n,slots:t,name:"Hidden"})}}),sR=Symbol("Context") +;var lR=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing", +e[e.Opening=8]="Opening",e))(lR||{});function cR(){return ti(sR,null)} +function uR(e){ei(sR,e)} +var dR,pR=((dR=pR||{}).Space=" ",dR.Enter="Enter",dR.Escape="Escape", +dR.Backspace="Backspace", +dR.Delete="Delete",dR.ArrowLeft="ArrowLeft",dR.ArrowUp="ArrowUp", +dR.ArrowRight="ArrowRight",dR.ArrowDown="ArrowDown",dR.Home="Home",dR.End="End", +dR.PageUp="PageUp",dR.PageDown="PageDown",dR.Tab="Tab",dR);let hR=[] ;!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))} +e.target instanceof HTMLElement&&e.target!==document.body&&hR[0]!==e.target&&(hR.unshift(e.target), +hR=hR.filter((e=>null!=e&&e.isConnected)),hR.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 +;var fR,mR=((fR=mR||{})[fR.First=0]="First", +fR[fR.Previous=1]="Previous",fR[fR.Next=2]="Next", +fR[fR.Last=3]="Last",fR[fR.Specific=4]="Specific",fR[fR.Nothing=5]="Nothing",fR) +;function gR(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=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r ;case 4:for(let r=0;r{ +throw new Error("Unexpected object: "+e)}(e)}}function vR(e={},t=null,n=[]){ +for(let[r,o]of Object.entries(e))OR(n,bR(t,r),o);return n}function bR(e,t){ +return e?e+"["+t+"]":t}function OR(e,t,n){ +if(Array.isArray(n))for(let[r,o]of n.entries())OR(e,bR(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,""]):vR(n,t,e) +}function yR(e,t,n,r){k$.isServer||Ti((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) +o((()=>e.removeEventListener(t,n,r)))}))}var wR=(e=>(e[e.Forwards=0]="Forwards", +e[e.Backwards=1]="Backwards",e))(wR||{});function kR(){let e=In(0) +;return z$("keydown",(t=>{"Tab"===t.key&&(e.value=t.shiftKey?1:0)})),e} +function xR(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=b$(n) ;e instanceof HTMLElement&&t.add(e)}return t} -var rR=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus", +var SR=(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:{ +e[e.All=30]="All",e))(SR||{});let _R=Object.assign(Gr({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 +default:In(new Set)}},inheritAttrs:!1,setup(e,{attrs:t,slots:n,expose:r}){ +let o=In(null);r({el:o,$el:o});let i=$a((()=>x$(o))),a=In(!1) +;lo((()=>a.value=!0)),ho((()=>a.value=!1)),function({ownerDocument:e},t){ +let n=function(e){let t=In(hR.slice());return Ci([e],(([e],[n])=>{ +!0===n&&!1===e?h$((()=>{t.value.splice(0) +})):!1===n&&!0===e&&(t.value=hR.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)))) +;lo((()=>{Ti((()=>{var r,o +;t.value||(null==(r=e.value)?void 0:r.activeElement)===(null==(o=e.value)?void 0:o.body)&&I$(n()) +}),{flush:"post"})})),ho((()=>{t.value&&I$(n())}))}({ownerDocument:i +},$a((()=>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){ +let o=In(null),i=In(!1) +;return lo((()=>i.value=!0)),ho((()=>i.value=!1)),lo((()=>{Ci([t,n,r],((a,s)=>{ +if(a.every(((e,t)=>(null==s?void 0:s[t])===e))||!r.value)return;let l=b$(t) +;l&&h$((()=>{var t,r;if(!i.value)return +;let a=b$(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 "), +;a?I$(a):B$(l,C$.First|C$.NoScroll)===A$.Error&&console.warn("There are no focusable elements inside the "), 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)))) +})})),o}({ownerDocument:i,container:o,initialFocus:$a((()=>e.initialFocus)) +},$a((()=>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 +var i;yR(null==(i=e.value)?void 0:i.defaultView,"focus",(e=>{if(!o.value)return +;let i=xR(n);b$(t)instanceof HTMLElement&&i.add(b$(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, +;s&&s instanceof HTMLElement?ER(i,s)?(r.value=s,I$(s)):(e.preventDefault(), +e.stopPropagation(),I$(a)):I$(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){ +},$a((()=>a.value&&Boolean(8&e.features))));let l=kR();function c(e){let t=b$(o) +;t&&O$(l.value,{[wR.Forwards]:()=>{B$(t,C$.First,{skipElements:[e.relatedTarget] +})},[wR.Backwards]:()=>{B$(t,C$.Last,{skipElements:[e.relatedTarget]})}})} +let u=In(!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)))} +function p(t){if(!a.value)return;let n=xR(e.containers) +;b$(o)instanceof HTMLElement&&n.add(b$(o));let r=t.relatedTarget +;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(ER(n,r)||(u.value?B$(b$(o),O$(l.value,{ +[wR.Forwards]:()=>C$.Next,[wR.Backwards]:()=>C$.Previous})|C$.WrapAround,{ +relativeTo:t.target}):t.target instanceof HTMLElement&&I$(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$({ +;return Ra(Ui,[Boolean(4&i)&&Ra(aR,{as:"button",type:"button", +"data-headlessui-focus-guard":!0,onFocus:c,features:iR.Focusable}),J$({ 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 +}),Boolean(4&i)&&Ra(aR,{as:"button",type:"button", +"data-headlessui-focus-guard":!0,onFocus:c,features:iR.Focusable})])}}}),{ +features:SR});function ER(e,t){for(let n of e)if(n.contains(t))return!0;return!1 +}function TR(){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){ +;n.style(r,"paddingRight",`${i}px`)}}}function CR(e){let t={} +;for(let n of e)Object.assign(t,n(t));return t}let AR=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} +;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:f$(),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$()?{ +SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:CR(n)},o=[Q$()?{ 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() +let n=f$() ;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{ @@ -12312,248 +12446,244 @@ if("INPUT"===e.target.tagName)return;if(r(e.target)){let t=e.target }),{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}){ +block:"nearest"}),i=null)}))}))}}:{},TR(),{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 +TEARDOWN({doc:e}){this.delete(e)}});function PR(e,t,n){let r=function(e){ +let t=Ln(e.getSnapshot());return ho(e.subscribe((()=>{t.value=e.getSnapshot() +}))),t}(AR),o=$a((()=>{let t=e.value?r.value.get(e.value):void 0 +;return!!t&&t.count>0}));return Ci([e,t],(([e,t],[r],o)=>{if(!e||!t)return +;AR.dispatch("PUSH",e,n);let i=!1;o((()=>{ +i||(AR.dispatch("POP",null!=r?r:e,n),i=!0)}))}),{immediate:!0}),o} +AR.subscribe((()=>{let e=AR.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) +;(r&&!e||!r&&e)&&AR.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n), +0===n.count&&AR.dispatch("TEARDOWN",n)}}));let DR=new Map,$R=new Map +;function RR(e,t=In(!0)){Ti((n=>{var r;if(!t.value)return;let o=b$(e) +;if(!o)return;n((function(){var e;if(!o)return;let t=null!=(e=$R.get(o))?e:1 +;if(1===t?$R.delete(o):$R.set(o,t-1),1!==t)return;let n=DR.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"), +o.inert=n.inert,DR.delete(o))}));let i=null!=(r=$R.get(o))?r:0 +;$R.set(o,i+1),0===i&&(DR.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=[] +function NR({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){ +let r=In(null),o=x$(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)) +;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(b$(r))||e.contains(null==(a=null==(i=b$(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", +mainTreeNodeRef:r,MainTreeNode:()=>null!=n?null:Ra(aR,{features:iR.Hidden,ref:r +})}}let MR=Symbol("ForcePortalRootContext");let IR=Gr({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({ +default:!1}},setup:(e,{slots:t,attrs:n})=>(ei(MR,e.force),()=>{ +let{force:r,...o}=e;return J$({theirProps:o,ourProps:{},slot:{},slots:t,attrs:n, +name:"ForcePortalRoot"})})}),LR=Symbol("StackContext") +;var jR=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(jR||{}) +;function BR({type:e,enabled:t,element:n,onUpdate:r}){let o=ti(LR,(()=>{})) +;function i(...e){null==r||r(...e),o(...e)}lo((()=>{Ci(t,((t,r)=>{ +t?i(0,e,n):!0===r&&i(1,e,n)}),{immediate:!0,flush:"sync"})})),ho((()=>{ +t.value&&i(1,e,n)})),ei(LR,i)}let QR=Symbol("DescriptionContext") +;function UR({slot:e=In({}),name:t="Description",props:n={}}={}){let r=In([]) +;return ei(QR,{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 +}),$a((()=>r.value.length>0?r.value.join(" "):void 0))}let FR=Gr({ 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) +;let o=null!=(r=e.id)?r:`headlessui-description-${v$()}`,i=function(){ +let e=ti(QR,null);if(null===e)throw new Error("Missing parent");return e}() +;return lo((()=>ho(i.register(o)))),()=>{ +let{name:r="Description",slot:a=In({}),props:s={}}=i,{...l}=e;return J$({ +ourProps:{...Object.entries(s).reduce(((e,[t,n])=>Object.assign(e,{[t]:Qn(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"}}, +;const zR=new WeakMap;function qR(e,t){let n=t(function(e){var t +;return null!=(t=zR.get(e))?t:0}(e));return n<=0?zR.delete(e):zR.set(e,n),n} +let HR=Gr({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 +let r=In(null),o=$a((()=>x$(r))),i=ti(MR,!1),a=ti(WR,null),s=In(!0===i||null==a?function(e){ +let t=x$(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 +}(r.value):a.resolveTarget());s.value&&qR(s.value,(e=>e+1));let l=In(!1) +;lo((()=>{l.value=!0})),Ti((()=>{i||null!=a&&(s.value=a.resolveTarget())})) +;let c=ti(VR,null),u=!1,d=ba();return Ci(r,(()=>{if(u||!c)return;let e=b$(r) +;e&&(ho(c.register(e),d),u=!0)})),ho((()=>{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) +;!n||s.value!==n||qR(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, +"data-headlessui-portal":""};return Ra(Nr,{to:s.value},J$({ourProps:o, theirProps:e,slot:{},attrs:n,slots:t,name:"Portal"}))}} -}),SR=Symbol("PortalParentContext");function _R(){let e=$o(SR,null),t=Bn([]) +}),VR=Symbol("PortalParentContext");function ZR(){let e=ti(VR,null),t=In([]) ;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[t,Gr({name:"PortalWrapper",setup:(e,{slots:t})=>(ei(VR,r),()=>{var e ;return null==(e=t.default)?void 0:e.call(t)})})]} -let ER=Symbol("PortalGroupContext"),TR=eo({name:"PortalGroup",props:{as:{ +let WR=Symbol("PortalGroupContext"),XR=Gr({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:{}, +setup(e,{attrs:t,slots:n}){let r=xn({resolveTarget:()=>e.target}) +;return ei(WR,r),()=>{let{target:r,...o}=e;return J$({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){ +;var GR,YR=((GR=YR||{})[GR.Open=0]="Open",GR[GR.Closed=1]="Closed",GR) +;let KR=Symbol("DialogContext");function JR(e){let t=ti(KR,null);if(null===t){ let t=new Error(`<${e} /> is missing a parent component.`) -;throw Error.captureStackTrace&&Error.captureStackTrace(t,DR),t}return t} -let $R="DC8F892D-2EBD-447C-A4C8-A03058436FF4",RR=eo({name:"Dialog", +;throw Error.captureStackTrace&&Error.captureStackTrace(t,JR),t}return t} +let eN="DC8F892D-2EBD-447C-A4C8-A03058436FF4",tN=Gr({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:[Boolean,String],default:eN},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 s=null!=(i=e.id)?i:`headlessui-dialog-${v$()}`,l=In(!1);lo((()=>{l.value=!0 })) -;let c=!1,u=Aa((()=>"dialog"===e.role||"alertdialog"===e.role?e.role:(c||(c=!0, +;let c=!1,u=$a((()=>"dialog"===e.role||"alertdialog"===e.role?e.role:(c||(c=!0, console.warn(`Invalid role [${u}] passed to . 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))) +"dialog"))),d=In(0),p=cR(),h=$a((()=>e.open===eN&&null!==p?(p.value&lR.Open)===lR.Open:e.open)),f=In(null),m=$a((()=>x$(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 +}),e.open===eN&&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===eN?void 0:e.open}`) +;let g=$a((()=>l.value&&h.value?0:1)),v=$a((()=>0===g.value)),b=$a((()=>d.value>1)),O=null!==ti(KR,null),[y,w]=ZR(),{resolveContainers:k,mainTreeNodeRef:x,MainTreeNode:S}=NR({ +portals:y,defaultContainers:[$a((()=>{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((()=>{ +}),_=$a((()=>b.value?"parent":"leaf")),E=$a((()=>null!==p&&(p.value&lR.Closing)===lR.Closing)),T=$a((()=>!O&&!E.value&&v.value)),C=$a((()=>{ 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 +;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(b$(x))&&e instanceof HTMLElement))))?n:null +}));RR(C,T);let A=$a((()=>!!b.value||v.value)),P=$a((()=>{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(b$(x))&&e instanceof HTMLElement)))?n:null +}));RR(P,A),BR({type:"Dialog",enabled:$a((()=>0===g.value)),element:f, +onUpdate:(e,t)=>{if("Dialog"===t)return O$(e,{[jR.Add]:()=>d.value+=1, +[jR.Remove]:()=>d.value-=1})}});let D=UR({name:"DialogDescription", +slot:$a((()=>({open:h.value})))}),$=In(null),R={titleId:$,panelRef:In(null), +dialogState:g,setTitleId(e){$.value!==e&&($.value=e)},close(){t("close",!1)}} +;ei(KR,R);let N=$a((()=>!(!v.value||b.value)));q$(k,((e,t)=>{e.preventDefault(), +R.close(),hr((()=>null==t?void 0:t.focus()))}),N) +;let M=$a((()=>!(b.value||0!==g.value))) +;yR(null==(a=m.value)?void 0:a.defaultView,"keydown",(e=>{ +M.value&&(e.defaultPrevented||e.key===pR.Escape&&(e.preventDefault(), +e.stopPropagation(),R.close()))}));let I=$a((()=>!(E.value||0!==g.value||O))) +;return PR(m,I,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],k]} +})),Ti((e=>{if(0!==g.value)return;let t=b$(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:{ +"aria-describedby":D.value},l={open:0===g.value};return Ra(IR,{force:!0 +},(()=>[Ra(HR,(()=>Ra(XR,{target:f.value},(()=>Ra(IR,{force:!1},(()=>Ra(_R,{ +initialFocus:o,containers:k,features:v.value?O$(_.value,{ +parent:_R.features.RestoreFocus,leaf:_R.features.All&~_R.features.FocusLock +}):_R.features.None},(()=>Ra(w,{},(()=>J$({ourProps:a,theirProps:{...i,...n}, +slot:l,attrs:n,slots:r,visible:0===g.value,features:Y$.RenderStrategy|Y$.Static, +name:"Dialog"}))))))))))),Ra(S)]))}}}),nN=Gr({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") +;let i=null!=(o=e.id)?o:`headlessui-dialog-panel-${v$()}`,a=JR("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}, +}),()=>{let{...r}=e;return J$({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:{ +name:"DialogPanel"})}}}),rN=Gr({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) +;let o=null!=(r=e.id)?r:`headlessui-dialog-title-${v$()}`,i=JR("DialogTitle") +;return lo((()=>{i.setTitleId(o),ho((()=>i.setTitleId(null)))})),()=>{ +let{...r}=e;return J$({ourProps:{id:o},theirProps:r,slot:{ +open:0===i.dialogState.value},attrs:t,slots:n,name:"DialogTitle"})}}}),oN=FR +;var iN=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(iN||{}) +;let aN=Symbol("DisclosureContext");function sN(e){let t=ti(aN,null) ;if(null===t){ let t=new Error(`<${e} /> is missing a parent component.`) -;throw Error.captureStackTrace&&Error.captureStackTrace(t,QR),t}return t} -let jR=Symbol("DisclosurePanelContext");let UR=eo({name:"Disclosure",props:{as:{ +;throw Error.captureStackTrace&&Error.captureStackTrace(t,sN),t}return t} +let lN=Symbol("DisclosurePanelContext");let cN=Gr({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(){ +let r=In(e.defaultOpen?0:1),o=In(null),i=In(null),a={ +buttonId:In(`headlessui-disclosure-button-${v$()}`), +panelId:In(`headlessui-disclosure-panel-${v$()}`),disclosureState:r,panel:o, +button:i,toggleDisclosure(){r.value=O$(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, +;let t=e?e instanceof HTMLElement?e:e.value instanceof HTMLElement?b$(e):b$(a.button):b$(a.button) +;null==t||t.focus()}};return ei(aN,a),uR($a((()=>O$(r.value,{0:lR.Open, +1:lR.Closed})))),()=>{let{defaultOpen:o,...i}=e;return J$({theirProps:i, ourProps:{},slot:{open:0===r.value,close:a.close},slots:t,attrs:n, -name:"Disclosure"})}}}),FR=eo({name:"DisclosureButton",props:{as:{ +name:"Disclosure"})}}}),uN=Gr({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, +let o=sN("DisclosureButton"),i=ti(lN,null),a=$a((()=>null!==i&&i.value===o.panelId.value)) +;lo((()=>{a.value||null!==e.id&&(o.buttonId.value=e.id)})),ho((()=>{ +a.value||(o.buttonId.value=null)}));let s=In(null);r({el:s,$el:s +}),a.value||Ti((()=>{o.button.value=s.value}));let l=V$($a((()=>({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: +null==(t=b$(o.button))||t.focus()):o.toggleDisclosure())}function u(t){var n +;if(!e.disabled)if(a.value)switch(t.key){case pR.Space:case pR.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.stopPropagation(),o.toggleDisclosure(),null==(n=b$(o.button))||n.focus() +}else switch(t.key){case pR.Space:case pR.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?{ +if(e.key===pR.Space)e.preventDefault()}return()=>{var r;let i={ +open:0===o.disclosureState.value},{id:p,...h}=e;return J$({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, +"aria-controls":0===o.disclosureState.value||b$(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({ +slot:i,attrs:t,slots:n,name:"DisclosureButton"})}}}),dN=Gr({ 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)) +default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=sN("DisclosurePanel") +;lo((()=>{null!==e.id&&(o.panelId.value=e.id)})),ho((()=>{o.panelId.value=null +})),r({el:o.panel,$el:o.panel}),ei(lN,o.panelId) +;let i=cR(),a=$a((()=>null!==i?(i.value&lR.Open)===lR.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, +},{id:s,...l}=e;return J$({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) +features:Y$.RenderStrategy|Y$.Static,visible:a.value,name:"DisclosurePanel"})}} +}),pN=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g +;function hN(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 +;return pN.test(a)&&(a=a.replace(pN,"")),a}function fN(e){let t=In(""),n=In("") +;return()=>{let r=b$(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", +;return"string"==typeof e?e.trim():hN(t).trim()}return null})).filter(Boolean) +;if(e.length>0)return e.join(", ")}return hN(e).trim()}(r).trim().toLowerCase() +;return t.value=o,n.value=i,i}}function mN(e,t){return e===t} +var gN=(e=>(e[e.Open=0]="Open", +e[e.Closed=1]="Closed",e))(gN||{}),vN=(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){ +e))(vN||{}),bN=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(bN||{}) +;let ON=Symbol("ListboxContext");function yN(e){let t=ti(ON,null);if(null===t){ let t=new Error(`<${e} /> is missing a parent component.`) -;throw Error.captureStackTrace&&Error.captureStackTrace(t,KR),t}return t} -let JR=eo({name:"Listbox",emits:{"update:modelValue":e=>!0},props:{as:{ +;throw Error.captureStackTrace&&Error.captureStackTrace(t,yN),t}return t} +let wN=Gr({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 +by:{type:[String,Function],default:()=>mN},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) +let o=In(1),i=In(null),a=In(null),s=In(null),l=In([]),c=In(""),u=In(null),d=In(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 +let t=null!==u.value?l.value[u.value]:null,n=j$(e(l.value.slice()),(e=>b$(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,{ +let h=$a((()=>e.multiple?1:0)),[f,m]=p$($a((()=>e.modelValue)),(e=>r("update:modelValue",e)),$a((()=>e.defaultValue))),g=$a((()=>void 0===f.value?O$(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, +orientation:$a((()=>e.horizontal?"horizontal":"vertical")),labelRef:i, +buttonRef:a,optionsRef:s,disabled:$a((()=>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, +if(e.disabled||1===o.value)return;let i=p(),a=gR(t===mR.Specific?{ +focus:mR.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){ @@ -12566,134 +12696,140 @@ 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 +e.disabled||m(t)},select(t){e.disabled||m(O$(h.value,{0:()=>t,1:()=>{ +let e=$n(v.value.value).slice(),n=$n(t),r=e.findIndex((e=>v.compare(n,$n(e)))) +;return-1===r?e.push(n):e.splice(r,1),e}}))}};q$([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],(()=>{ +R$(t,$$.Loose)||(e.preventDefault(),null==(n=b$(a))||n.focus()) +}),$a((()=>0===o.value))),ei(ON,v),uR($a((()=>O$(o.value,{0:lR.Open,1:lR.Closed +}))));let b=$a((()=>{var e;return null==(e=b$(a))?void 0:e.closest("form")})) +;return lo((()=>{Ci([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", +disabled:a,value:g.value};return Ra(Ui,[...null!=r&&null!=g.value?vR({ +[r]:g.value}).map((([e,t])=>Ra(aR,rR({features:iR.Hidden,key:e,as:"input", +type:"hidden",hidden:!0,readOnly:!0,form:s,disabled:a,name:e,value:t +})))):[],J$({ourProps:{},theirProps:{...n, +...oR(l,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])}, +slot:c,slots:t,attrs:n,name:"Listbox"})])}}}),kN=Gr({name:"ListboxLabel",props:{ +as:{type:[Object,String],default:"label"},id:{type:String,default:null}}, +setup(e,{attrs:t,slots:n}){var r +;let o=null!=(r=e.id)?r:`headlessui-listbox-label-${v$()}`,i=yN("ListboxLabel") +;function a(){var e;null==(e=b$(i.buttonRef))||e.focus({preventScroll:!0})} +return()=>{let r={open:0===i.listboxState.value,disabled:i.disabled.value +},{...s}=e;return J$({ourProps:{id:o,ref:i.labelRef,onClick:a},theirProps:s, +slot:r,attrs:t,slots:n,name:"ListboxLabel"})}}}),xN=Gr({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}) +;let i=null!=(o=e.id)?o:`headlessui-listbox-button-${v$()}`,a=yN("ListboxButton") +;function s(e){switch(e.key){case pR.Space:case pR.Enter:case pR.ArrowDown: +e.preventDefault(),a.openListbox(),hr((()=>{var e +;null==(e=b$(a.optionsRef))||e.focus({preventScroll:!0 +}),a.value.value||a.goToOption(mR.First)}));break;case pR.ArrowUp: +e.preventDefault(),a.openListbox(),hr((()=>{var e +;null==(e=b$(a.optionsRef))||e.focus({preventScroll:!0 +}),a.value.value||a.goToOption(mR.Last)}))}}function l(e){ +if(e.key===pR.Space)e.preventDefault()}function c(e){ +a.disabled.value||(0===a.listboxState.value?(a.closeListbox(),hr((()=>{var e +;return null==(e=b$(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 +;return null==(e=b$(a.optionsRef))?void 0:e.focus({preventScroll:!0})}))))}r({ +el:a.buttonRef,$el:a.buttonRef});let u=V$($a((()=>({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:{ +disabled:a.disabled.value,value:a.value.value},{...p}=e;return J$({ourProps:{ ref:a.buttonRef,id:i,type:u.value,"aria-haspopup":"listbox", -"aria-controls":null==(r=JD(a.optionsRef))?void 0:r.id, +"aria-controls":null==(r=b$(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, +"aria-labelledby":a.labelRef.value?[null==(o=b$(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({ +theirProps:p,slot:d,attrs:t,slots:n,name:"ListboxButton"})}}}),SN=Gr({ 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: +;let i=null!=(o=e.id)?o:`headlessui-listbox-options-${v$()}`,a=yN("ListboxOptions"),s=In(null) +;function l(e){switch(s.value&&clearTimeout(s.value),e.key){case pR.Space: if(""!==a.searchQuery.value)return e.preventDefault(), -e.stopPropagation(),a.search(e.key);case H$.Enter: +e.stopPropagation(),a.search(e.key);case pR.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: +0===a.mode.value&&(a.closeListbox(),hr((()=>{var e +;return null==(e=b$(a.buttonRef))?void 0:e.focus({preventScroll:!0})})));break +;case O$(a.orientation.value,{vertical:pR.ArrowDown,horizontal:pR.ArrowRight}): +return e.preventDefault(),e.stopPropagation(),a.goToOption(mR.Next) +;case O$(a.orientation.value,{vertical:pR.ArrowUp,horizontal:pR.ArrowLeft}): +return e.preventDefault(),e.stopPropagation(),a.goToOption(mR.Previous) +;case pR.Home:case pR.PageUp: +return e.preventDefault(),e.stopPropagation(),a.goToOption(mR.First) +;case pR.End:case pR.PageDown: +return e.preventDefault(),e.stopPropagation(),a.goToOption(mR.Last) +;case pR.Escape: +e.preventDefault(),e.stopPropagation(),a.closeListbox(),hr((()=>{var e +;return null==(e=b$(a.buttonRef))?void 0:e.focus({preventScroll:!0})}));break +;case pR.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$({ +;let c=cR(),u=$a((()=>null!==c?(c.value&lR.Open)===lR.Open:0===a.listboxState.value)) +;return()=>{var r,o;let s={open:0===a.listboxState.value},{...c}=e;return J$({ 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-labelledby":null==(o=b$(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"}, +features:Y$.RenderStrategy|Y$.Static,visible:u.value,name:"ListboxOptions"})}} +}),_N=Gr({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) +;let i=null!=(o=e.id)?o:`headlessui-listbox-option-${v$()}`,a=yN("ListboxOption"),s=In(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, +;let l=$a((()=>null!==a.activeOptionIndex.value&&a.options.value[a.activeOptionIndex.value].id===i)),c=$a((()=>O$(a.mode.value,{ +0:()=>a.compare($n(a.value.value),$n(e.value)), +1:()=>$n(a.value.value).some((t=>a.compare($n(t),$n(e.value)))) +}))),u=$a((()=>O$(a.mode.value,{1:()=>{var e;let t=$n(a.value.value) +;return(null==(e=a.options.value.find((e=>t.some((t=>a.compare($n(t),$n(e.dataRef.value)))))))?void 0:e.id)===i +},0:()=>c.value}))),d=fN(s),p=$a((()=>({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((()=>{ +;a.select(e.value),0===a.mode.value&&(a.closeListbox(),hr((()=>{var e +;return null==(e=b$(a.buttonRef))?void 0:e.focus({preventScroll:!0})})))} +function f(){if(e.disabled)return a.goToOption(mR.Nothing) +;a.goToOption(mR.Specific,i)} +lo((()=>a.registerOption(i,p))),ho((()=>a.unregisterOption(i))),lo((()=>{ +Ci([a.listboxState,c],(()=>{0===a.listboxState.value&&c.value&&O$(a.mode.value,{ +1:()=>{u.value&&a.goToOption(mR.Specific,i)},0:()=>{a.goToOption(mR.Specific,i)} +})}),{immediate:!0})})),Ti((()=>{ +0===a.listboxState.value&&l.value&&0!==a.activationTrigger.value&&hr((()=>{ 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 null==(t=null==(e=b$(s))?void 0:e.scrollIntoView)?void 0:t.call(e,{ +block:"nearest"})}))}));let m=W$();function g(e){m.update(e)}function v(t){ +m.wasMoved(t)&&(e.disabled||l.value||a.goToOption(mR.Specific,i,0))} +function b(t){m.wasMoved(t)&&(e.disabled||l.value&&a.goToOption(mR.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", +},{value:a,disabled:u,...d}=e;return J$({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){ +;var EN=(e=>(e[e.Open=0]="Open", +e[e.Closed=1]="Closed",e))(EN||{}),TN=(e=>(e[e.Pointer=0]="Pointer", +e[e.Other=1]="Other",e))(TN||{});let CN=Symbol("MenuContext");function AN(e){ +let t=ti(CN,null);if(null===t){ let t=new Error(`<${e} /> is missing a parent component.`) -;throw Error.captureStackTrace&&Error.captureStackTrace(t,aN),t}return t} -let sN=eo({name:"Menu",props:{as:{type:[Object,String],default:"template"}}, +;throw Error.captureStackTrace&&Error.captureStackTrace(t,AN),t}return t} +let PN=Gr({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) +let r=In(1),o=In(null),i=In(null),a=In([]),s=In(""),l=In(null),c=In(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 +let t=null!==l.value?a.value[l.value]:null,n=j$(e(a.value.slice()),(e=>b$(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, +openMenu:()=>r.value=0,goToItem(e,t,n){let r=u(),o=gR(e===mR.Specific?{ +focus:mR.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){ @@ -12703,216 +12839,389 @@ let t=""!==s.value?0:1;s.value+=e.toLowerCase() 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)=>{ +;a.value=t.items,l.value=t.activeItemIndex,c.value=1}};return q$([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", +;d.closeMenu(),R$(t,$$.Loose)||(e.preventDefault(),null==(n=b$(o))||n.focus()) +}),$a((()=>0===r.value))),ei(CN,d),uR($a((()=>O$(r.value,{0:lR.Open,1:lR.Closed +})))),()=>{let o={open:0===r.value,close:d.closeMenu};return J$({ourProps:{}, +theirProps:e,slot:o,slots:t,attrs:n,name:"Menu"})}}}),DN=Gr({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}) +;let i=null!=(o=e.id)?o:`headlessui-menu-button-${v$()}`,a=AN("MenuButton") +;function s(e){switch(e.key){case pR.Space:case pR.Enter:case pR.ArrowDown: +e.preventDefault(),e.stopPropagation(),a.openMenu(),hr((()=>{var e +;null==(e=b$(a.itemsRef))||e.focus({preventScroll:!0}),a.goToItem(mR.First)})) +;break;case pR.ArrowUp: +e.preventDefault(),e.stopPropagation(),a.openMenu(),hr((()=>{var e +;null==(e=b$(a.itemsRef))||e.focus({preventScroll:!0}),a.goToItem(mR.Last)}))}} +function l(e){if(e.key===pR.Space)e.preventDefault()}function c(t){ +e.disabled||(0===a.menuState.value?(a.closeMenu(),hr((()=>{var e +;return null==(e=b$(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 +;return null==(e=b$(a.itemsRef))?void 0:e.focus({preventScroll:!0})}))))}r({ +el:a.buttonRef,$el:a.buttonRef});let u=V$($a((()=>({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, +;return J$({ourProps:{ref:a.buttonRef,id:i,type:u.value,"aria-haspopup":"menu", +"aria-controls":null==(r=b$(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({ +theirProps:d,slot:o,attrs:t,slots:n,name:"MenuButton"})}}}),$N=Gr({ 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: +;let i=null!=(o=e.id)?o:`headlessui-menu-items-${v$()}`,a=AN("MenuItems"),s=In(null) +;function l(e){var t;switch(s.value&&clearTimeout(s.value),e.key){case pR.Space: if(""!==a.searchQuery.value)return e.preventDefault(), -e.stopPropagation(),a.search(e.key);case H$.Enter: +e.stopPropagation(),a.search(e.key);case pR.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: +null==(t=b$(a.items.value[a.activeItemIndex.value].dataRef.domRef))||t.click()} +a.closeMenu(),N$(b$(a.buttonRef));break;case pR.ArrowDown: +return e.preventDefault(),e.stopPropagation(),a.goToItem(mR.Next) +;case pR.ArrowUp: +return e.preventDefault(),e.stopPropagation(),a.goToItem(mR.Previous) +;case pR.Home:case pR.PageUp: +return e.preventDefault(),e.stopPropagation(),a.goToItem(mR.First);case pR.End: +case pR.PageDown: +return e.preventDefault(),e.stopPropagation(),a.goToItem(mR.Last) +;case pR.Escape:e.preventDefault(),e.stopPropagation(),a.closeMenu(),hr((()=>{ +var e;return null==(e=b$(a.buttonRef))?void 0:e.focus({preventScroll:!0})})) +;break;case pR.Tab: +e.preventDefault(),e.stopPropagation(),a.closeMenu(),hr((()=>function(e,t){ +return B$(D$(),t,{relativeTo:e}) +}(b$(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)), +if(e.key===pR.Space)e.preventDefault()}r({el:a.itemsRef,$el:a.itemsRef}),X$({ +container:$a((()=>b$(a.itemsRef))),enabled:$a((()=>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$({ +;let u=cR(),d=$a((()=>null!==u?(u.value&lR.Open)===lR.Open:0===a.menuState.value)) +;return()=>{var r,o;let s={open:0===a.menuState.value},{...u}=e;return J$({ 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, +"aria-labelledby":null==(o=b$(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], +slots:n,features:Y$.RenderStrategy|Y$.Static,visible:d.value,name:"MenuItems"})} +}}),RN=Gr({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) +;let i=null!=(o=e.id)?o:`headlessui-menu-item-${v$()}`,a=AN("MenuItem"),s=In(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((()=>({ +;let l=$a((()=>null!==a.activeItemIndex.value&&a.items.value[a.activeItemIndex.value].id===i)),c=fN(s),u=$a((()=>({ 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()=>{ +if(e.disabled)return t.preventDefault();a.closeMenu(),N$(b$(a.buttonRef))} +function p(){if(e.disabled)return a.goToItem(mR.Nothing) +;a.goToItem(mR.Specific,i)} +lo((()=>a.registerItem(i,u))),ho((()=>a.unregisterItem(i))),Ti((()=>{ +0===a.menuState.value&&l.value&&0!==a.activationTrigger.value&&hr((()=>{var e,t +;return null==(t=null==(e=b$(s))?void 0:e.scrollIntoView)?void 0:t.call(e,{ +block:"nearest"})}))}));let h=W$();function f(e){h.update(e)}function m(t){ +h.wasMoved(t)&&(e.disabled||l.value||a.goToItem(mR.Specific,i,0))}function g(t){ +h.wasMoved(t)&&(e.disabled||l.value&&a.goToItem(mR.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, +;return J$({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, +;var NN,MN=((NN=MN||{})[NN.Open=0]="Open",NN[NN.Closed=1]="Closed",NN) +;let IN=Symbol("PopoverContext");function LN(e){let t=ti(IN,null);if(null===t){ +let t=new Error(`<${e} /> is missing a parent <${UN.name} /> component.`) +;throw Error.captureStackTrace&&Error.captureStackTrace(t,LN),t}return t} +let jN=Symbol("PopoverGroupContext");function BN(){return ti(jN,null)} +let QN=Symbol("PopoverPanelContext");let UN=Gr({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, +setup(e,{slots:t,attrs:n,expose:r}){var o;let i=In(null);r({el:i,$el:i}) +;let a=In(1),s=In(null),l=In(null),c=In(null),u=In(null),d=$a((()=>x$(i))),p=$a((()=>{ +var e,t;if(!b$(s)||!b$(u))return!1 +;for(let c of document.querySelectorAll("body > *"))if(Number(null==c?void 0:c.contains(b$(s)))^Number(null==c?void 0:c.contains(b$(u))))return!0 +;let n=D$(),r=n.indexOf(b$(s)),o=(r+n.length-1)%n.length,i=(r+1)%n.length,a=n[o],l=n[i] +;return!(null!=(e=b$(u))&&e.contains(a)||null!=(t=b$(u))&&t.contains(l))})),h={ +popoverState:a,buttonId:In(null),panelId:In(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)}, +a.value=O$(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 t=e?e instanceof HTMLElement?e:e.value instanceof HTMLElement?b$(e):b$(h.button):b$(h.button) +;null==t||t.focus()}};ei(IN,h),uR($a((()=>O$(a.value,{0:lR.Open,1:lR.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({ +},m=BN(),g=null==m?void 0:m.registerPopover,[v,b]=ZR(),O=NR({ 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=>{ +;return Ti((()=>null==g?void 0:g(f))),yR(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, +;return null!=(r=null==m?void 0:m.isFocusWithinPopoverGroup())?r:(null==(e=d.value)?void 0:e.activeElement)&&((null==(t=b$(s))?void 0:t.contains(d.value.activeElement))||(null==(n=b$(u))?void 0:n.contains(d.value.activeElement))) +}()||s&&u&&(O.contains(e.target)||null!=(t=b$(h.beforePanelSentinel))&&t.contains(e.target)||null!=(n=b$(h.afterPanelSentinel))&&n.contains(e.target)||h.closePopover())) +}),!0),q$(O.resolveContainers,((e,t)=>{var n +;h.closePopover(),R$(t,$$.Loose)||(e.preventDefault(), +null==(n=b$(s))||n.focus())}),$a((()=>0===a.value))),()=>{let r={ +open:0===a.value,close:h.close};return Ra(Ui,[Ra(b,{},(()=>J$({theirProps:{...e, ...n},ourProps:{ref:i},slot:r,slots:t,attrs:n,name:"Popover" -}))),Pa(O.MainTreeNode)])}}}),ON=eo({name:"PopoverButton",props:{as:{ +}))),Ra(O.MainTreeNode)])}}}),FN=Gr({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((()=>{ +;let i=null!=(o=e.id)?o:`headlessui-popover-button-${v$()}`,a=LN("PopoverButton"),s=$a((()=>x$(a.button))) +;r({el:a.button,$el:a.button}),lo((()=>{a.buttonId.value=i})),ho((()=>{ 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, +;let l=BN(),c=null==l?void 0:l.closeOthers,u=ti(QN,null),d=$a((()=>null!==u&&u.value===a.panelId.value)),p=In(null),h=`headlessui-focus-sentinel-${v$()}` +;d.value||Ti((()=>{a.button.value=b$(p)}));let f=V$($a((()=>({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: +if(1===a.popoverState.value)return;switch(e.key){case pR.Space:case pR.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: +null==(n=(t=e.target).click)||n.call(t),a.closePopover(),null==(r=b$(a.button))||r.focus() +}}else switch(e.key){case pR.Space:case pR.Enter: e.preventDefault(),e.stopPropagation(), 1===a.popoverState.value&&(null==c||c(a.buttonId.value)),a.togglePopover();break -;case H$.Escape: +;case pR.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 +;if(!b$(a.button)||null!=(o=s.value)&&o.activeElement&&(null==(i=b$(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 +d.value||e.key===pR.Space&&e.preventDefault()}function v(t){var n,r ;e.disabled||(d.value?(a.closePopover(), -null==(n=JD(a.button))||n.focus()):(t.preventDefault(), +null==(n=b$(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)})} +a.togglePopover(),null==(r=b$(a.button))||r.focus()))}function b(e){ +e.preventDefault(),e.stopPropagation()}let O=kR();function y(){let e=b$(a.panel) +;e&&O$(O.value,{[wR.Forwards]:()=>B$(e,C$.First), +[wR.Backwards]:()=>B$(e,C$.Last) +})===A$.Error&&B$(D$().filter((e=>"true"!==e.dataset.headlessuiFocusGuard)),O$(O.value,{ +[wR.Forwards]:C$.Next,[wR.Backwards]:C$.Previous}),{relativeTo:b$(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, +"aria-controls":b$(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:{ +;return Ra(Ui,[J$({ourProps:l,theirProps:{...t,...s},slot:o,attrs:t,slots:n, +name:"PopoverButton"}),r&&!d.value&&a.isPortalled.value&&Ra(aR,{id:h, +features:iR.Focusable,"data-headlessui-focus-guard":!0,as:"button", +type:"button",onFocus:y})])}}}),zN=Gr({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 +;let i=null!=(o=e.id)?o:`headlessui-popover-panel-${v$()}`,{focus:a}=e,s=LN("PopoverPanel"),l=$a((()=>x$(s.panel))),c=`headlessui-focus-sentinel-before-${v$()}`,u=`headlessui-focus-sentinel-after-${v$()}` +;r({el:s.panel,$el:s.panel}),lo((()=>{s.panelId.value=i})),ho((()=>{ +s.panelId.value=null})),ei(QN,s.panelId),Ti((()=>{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 +;null!=(t=b$(s.panel))&&t.contains(n)||B$(b$(s.panel),C$.First)})) +;let d=cR(),p=$a((()=>null!==d?(d.value&lR.Open)===lR.Open:0===s.popoverState.value)) +;function h(e){var t,n;if(e.key===pR.Escape){ +if(0!==s.popoverState.value||!b$(s.panel)||l.value&&(null==(t=b$(s.panel))||!t.contains(l.value.activeElement)))return ;e.preventDefault(), -e.stopPropagation(),s.closePopover(),null==(n=JD(s.button))||n.focus()}} +e.stopPropagation(),s.closePopover(),null==(n=b$(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] +;a&&b$(s.panel)&&(null!=(t=b$(s.panel))&&t.contains(a)||(s.closePopover(), +(null!=(r=null==(n=b$(s.beforePanelSentinel))?void 0:n.contains)&&r.call(n,a)||null!=(i=null==(o=b$(s.afterPanelSentinel))?void 0:o.contains)&&i.call(o,a))&&a.focus({ +preventScroll:!0})))}let m=kR();function g(){let e=b$(s.panel);e&&O$(m.value,{ +[wR.Forwards]:()=>{var t +;B$(e,C$.First)===A$.Error&&(null==(t=b$(s.afterPanelSentinel))||t.focus())}, +[wR.Backwards]:()=>{var e;null==(e=b$(s.button))||e.focus({preventScroll:!0})}}) +}function v(){let e=b$(s.panel);e&&O$(m.value,{[wR.Forwards]:()=>{ +let e=b$(s.button),t=b$(s.panel);if(!e)return +;let n=D$(),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())}})} +let e=i.indexOf(a);-1!==e&&i.splice(e,1)}B$(i,C$.First,{sorted:!1})}, +[wR.Backwards]:()=>{var t +;B$(e,C$.Previous)===A$.Error&&(null==(t=b$(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, +;return J$({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, +;return[Ra(Ui,[p.value&&s.isPortalled.value&&Ra(aR,{id:c, +ref:s.beforePanelSentinel,features:iR.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, +}),null==(t=n.default)?void 0:t.call(n,...e),p.value&&s.isPortalled.value&&Ra(aR,{ +id:u,ref:s.afterPanelSentinel,features:iR.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"boolean"==typeof e?"".concat(e):0===e?"0":e,SN=e=>{ +features:Y$.RenderStrategy|Y$.Static,visible:p.value,name:"PopoverPanel"})}} +}),qN=Symbol("LabelContext");function HN(){let e=ti(qN,null);if(null===e){ +let e=new Error("You used a