UnisMindMap/mineru/cli/static/web/assets/index-zcV97yfy.js

433 lines
688 KiB
JavaScript
Raw Normal View History

import{e as ng,w as Da,i as kd,r as $t,s as Sd,c as Qt,d as _r,h as Ad,F as ms,g as ii,a as rg,o as Ed,b as Td,f as sg,j as Ne,T as ig,k as Pt,l as It,m as ze,t as dn,n as Ge,p as gt,q as Jl,u as vl,v as Ra,x as gr,y as Ql,z as Ct,A as ag,B as og,C as lg,D as Zl,E as Nd,G as cg,H as ug,I as fg,J as sa,K as ia,L as hg,M as dg,N as mg,O as pg,P as gg,Q as bg}from"./vendor-DSv9k51x.js";import{M as Cd}from"./markdown-_Dy2zPzC.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();/*!
* shared v9.14.5
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/function yg(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Pa=typeof window<"u",xr=(e,t=!1)=>t?Symbol.for(e):Symbol(e),wg=(e,t,n)=>vg({l:e,k:t,s:n}),vg=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),wt=e=>typeof e=="number"&&isFinite(e),_g=e=>Od(e)==="[object Date]",vr=e=>Od(e)==="[object RegExp]",so=e=>Re(e)&&Object.keys(e).length===0,Ht=Object.assign,xg=Object.create,rt=(e=null)=>xg(e);let uf;const Zn=()=>uf||(uf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:rt());function ff(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function hf(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function kg(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,i)=>`${s}="${hf(i)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,i)=>`${s}='${hf(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript&#58;")}),e}const Sg=Object.prototype.hasOwnProperty;function Cn(e,t){return Sg.call(e,t)}const ut=Array.isArray,lt=e=>typeof e=="function",ue=e=>typeof e=="string",Ue=e=>typeof e=="boolean",Je=e=>e!==null&&typeof e=="object",Ag=e=>Je(e)&&lt(e.then)&&lt(e.catch),Id=Object.prototype.toString,Od=e=>Id.call(e),Re=e=>{if(!Je(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},Eg=e=>e==null?"":ut(e)||Re(e)&&e.toString===Id?JSON.stringify(e,null,2):String(e);function Tg(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}function io(e){let t=e;return()=>++t}const aa=e=>!Je(e)||ut(e);function xa(e,t){if(aa(e)||aa(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(Je(r[i])&&!Je(s[i])&&(s[i]=Array.isArray(r[i])?[]:rt()),aa(s[i])||aa(r[i])?s[i]=r[i]:n.push({src:r[i],des:s[i]}))})}}/*!
* message-compiler v9.14.5
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/function Ng(e,t,n){return{line:e,column:t,offset:n}}function $a(e,t,n){return{start:e,end:t}}const Cg=/\{([0-9a-zA-Z]+)\}/g;function Md(e,...t){return t.length===1&&Ig(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Cg,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Ld=Object.assign,df=e=>typeof e=="string",Ig=e=>e!==null&&typeof e=="object";function Dd(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const q0={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Og={[q0.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Mg(e,t,...n){const r=Md(Og[e],...n||[]),s={message:String(r),code:e};return t&&(s.location=t),s}const Ce={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Lg={[Ce.EXPECTED_TOKEN]:"Expected token: '{0}'",[Ce.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Ce.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Ce.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Ce.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Ce.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Ce.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Ce.EMPTY_PLACEHOLDER]:"Empty placeholder",[Ce.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Ce.INVALID_LINKED_FORMAT]:"Invalid linked format",[Ce.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Ce.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Ce.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Ce.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Ce.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Ce.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Ts(e,t,n={}){const{domain:r,messages:s,args:i}=n,o=Md((s||Lg)[e]||"",...i||[]),u=new SyntaxError(String(o));return u.code=e,t&&(u.location=t),u.domain=r,u}function Dg(e){throw e}const Xn=" ",Rg="\r",Yt=`
`,Pg="\u2028",$g="\u2029";function Bg(e){const t=e;let n=0,r=1,s=1,i=0;const o=j=>t[j]===Rg&&t[j+1]===Yt,u=j=>t[j]===Yt,h=j=>t[j]===$g,d=j=>t[j]===Pg,p=j=>o(j)||u(j)||h(j)||d(j),w=()=>n,v=()=>r,x=()=>s,k=()=>i,A=j=>o(j)||h(j)||d(j)?Yt:t[j],N=()=>A(n),I=()=>A(n+i);function V(){return i=0,p(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function D(){return o(n+i)&&i++,i++,t[n+i]}function M(){n=0,r=1,s=1,i=0}function B(j=0){i=j}function P(){const j=n+i;for(;j!==n;)V();i=0}return{index:w,line:v,column:x,peekOffset:k,charAt:A,currentChar:N,currentPeek:I,next:V,peek:D,reset:M,resetPeek:B,skipToPeek:P}}const hr=void 0,Fg=".",mf="'",zg="tokenizer";function qg(e,t={}){const n=t.location!==!1,r=Bg(e),s=()=>r.index(),i=()=>Ng(r.line(),r.column(),r.index()),o=i(),u=s(),h={currentType:14,offset:u,startLoc:o,endLoc:o,lastType:14,lastOffset:u,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},d=()=>h,{onError:p}=t;function w($,F,ee,...we){const st=d();if(F.column+=ee,F.offset+=ee,p){const _e=n?$a(st.startLoc,F):null,J=Ts($,_e,{domain:zg,args:we});p(J)}}function v($,F,ee){$.endLoc=i(),$.currentType=F;const we={type:F};return n&&(we.loc=$a($.startLoc,$.endLoc)),ee!=null&&(we.value=ee),we}const x=$=>v($,14);function k($,F){return $.currentChar()===F?($.next(),F):(w(Ce.EXPECTED_TOKEN,i(),0,F),"")}function A($){let F="";for(;$.currentPeek()===Xn||$.currentPeek()===Yt;)F+=$.currentPeek(),$.peek();return F}function N($){const F=A($);return $.skipToPeek(),F}function I($){if($===hr)return!1;const F=$.charCodeAt(0);return F>=97&&F<=122||F>=65&&F<=90||F===95}function V($){if($===hr)return!1;const F=$.charCodeAt(0);return F>=48&&F<=57}function D($,F){const{currentType:ee}=F;if(ee!==2)return!1;A($);const we=I($.currentPeek());return $.resetPeek(),we}function M($,F){const{currentType:ee}=F;if(ee!==2)return!1;A($);const we=$.currentPeek()==="-"?$.peek():$.currentPeek(),st=V(we);return $.resetPeek(),st}function B($,F){const{currentType:ee}=F;if(ee!==2)return!1;A($);const we=$.currentPeek()===mf;return $.resetPeek(),we}function P($,F){const{currentType:ee}=F;if(ee!==8)return!1;A($);const we=$.currentPeek()===".";return $.resetPeek(),we}function j($,F){const{currentType:ee}=F;if(ee!==9)return!1;A($);const we=I($.currentPeek());return $.resetPeek(),we}function W($,F){const{currentType:ee}=F;if(!(ee===8||ee===12))return!1;A($);const we=$.currentPeek()===":";return $.resetPeek(),we}function Y($,F){const{currentType:ee}=F;if(ee!==10)return!1;const we=()=>{const _e=$.currentPeek();return _e==="{"?I($.peek()):_e==="@"||_e==="%"||_e==="|"||_e===":"||_e==="."||_e===Xn||!_e?!1:_e===Yt?($.peek(),we()):be($,!1)},st=we();return $.resetPeek(),st}function pe($){A($);const F=$.currentPeek()==="|";return $.resetPeek(),F}function Me($){const F=A($),ee=$.currentPeek()==="%"&&$.peek()==="{";return $.resetPeek(),{isModulo:ee,hasSpace:F.length>0}}function be($,F=!0){const ee=(st=!1,_e="",J=!1)=>{const re=$.currentPeek();return re==="{"?_e==="%"?!1:st:re==="@"||!re?_e==="%"?!0:st:re==="%"?($.peek(),ee(st,"%",!0)):re==="|"?_e==="%"||J?!0:!(_e===Xn||_e===Yt):re===Xn?($.peek(),ee(!0,Xn,J)):re===Yt?($.peek(),ee(!0,Yt,J)):!0},we=ee();return F&&$.resetPeek(),we}function xe($,F){const ee=$.currentChar();return ee===hr?hr:F(ee)?($.next(),ee):null}function G($){const F=$.charCodeAt(0);return F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===95||F===36}function he($){return xe($,G)}function Q($){const F=$.charCodeAt(0);return F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===95||F===36||F===45}function ge($){return xe($,Q)}function te($){const F=$.charCodeAt(0);return F>=48&&F<=57}function Ae($){return xe($,te)}function Le($){const F=$.charCodeAt(0);return F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102}function ve($){return xe($,Le)}function U($){let F="",ee="";for(;F=Ae($);)ee+=F;return ee}function ce($){N($);const F=$.currentChar();return F!=="%"&&w(Ce.EXPECTED_TOKEN,i(),0,F),$.next(),"%"}function Ee($){let F="";for(;;){const ee=$.currentChar();if(ee==="{"||ee==="}"||ee==="@"||ee==="|"||!ee)break;if(ee==="%")if(be($))F+=ee,$.next();else break;else if(ee===Xn||ee===Yt)if(be($))F+=ee,$.next();e
`,i=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],u=Jg(e,{filename:r,breakLineCode:s,needIndent:i});u.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),u.indent(i),o.length>0&&(u.push(`const { ${Dd(o.map(p=>`${p}: _${p}`),", ")} } = ctx`),u.newline()),u.push("return "),ws(u,e),u.deindent(i),u.push("}"),delete e.helpers;const{code:h,map:d}=u.context();return{ast:e,code:h,map:d?d.toJSON():void 0}};function r2(e,t={}){const n=Ld({},t),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,u=jg(n).parse(e);return r?(i&&Kg(u),s&&os(u),{ast:u,code:""}):(Gg(u,n),n2(u,n))}/*!
* core-base v9.14.5
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/function s2(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Zn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Zn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Zn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function zn(e){return Je(e)&&H0(e)===0&&(Cn(e,"b")||Cn(e,"body"))}const Rd=["b","body"];function i2(e){return kr(e,Rd)}const Pd=["c","cases"];function a2(e){return kr(e,Pd,[])}const $d=["s","static"];function o2(e){return kr(e,$d)}const Bd=["i","items"];function l2(e){return kr(e,Bd,[])}const Fd=["t","type"];function H0(e){return kr(e,Fd)}const zd=["v","value"];function oa(e,t){const n=kr(e,zd);if(n!=null)return n;throw ai(t)}const qd=["m","modifier"];function c2(e){return kr(e,qd)}const Ud=["k","key"];function u2(e){const t=kr(e,Ud);if(t)return t;throw ai(6)}function kr(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(Cn(e,s)&&e[s]!=null)return e[s]}return n}const Hd=[...Rd,...Pd,...$d,...Bd,...Ud,...qd,...zd,...Fd];function ai(e){return new Error(`unhandled node type: ${e}`)}const Sr=[];Sr[0]={w:[0],i:[3,0],"[":[4],o:[7]};Sr[1]={w:[1],".":[2],"[":[4],o:[7]};Sr[2]={w:[2],i:[3,0],0:[3,0]};Sr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Sr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Sr[5]={"'":[4,0],o:8,l:[5,0]};Sr[6]={'"':[4,0],o:8,l:[6,0]};const f2=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function h2(e){return f2.test(e)}function d2(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function m2(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function p2(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:h2(t)?d2(t):"*"+t}function g2(e){const t=[];let n=-1,r=0,s=0,i,o,u,h,d,p,w;const v=[];v[0]=()=>{o===void 0?o=u:o+=u},v[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},v[2]=()=>{v[0](),s++},v[3]=()=>{if(s>0)s--,r=4,v[0]();else{if(s=0,o===void 0||(o=p2(o),o===!1))return!1;v[1]()}};function x(){const k=e[n+1];if(r===5&&k==="'"||r===6&&k==='"')return n++,u="\\"+k,v[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&x())){if(h=m2(i),w=Sr[r],d=w[h]||w.l||8,d===8||(r=d[0],d[1]!==void 0&&(p=v[d[1]],p&&(u=i,p()===!1))))return;if(r===7)return t}}const bf=new Map;function b2(e,t){return Je(e)?e[t]:null}function y2(e,t){if(!Je(e))return null;let n=bf.get(t);if(n||(n=g2(t),n&&bf.set(t,n)),!n)return null;const r=n.length;let s=e,i=0;for(;i<r;){const o=n[i];if(Hd.includes(o)&&zn(s))return null;const u=s[o];if(u===void 0||lt(s))return null;s=u,i++}return s}const w2=e=>e,v2=e=>"",_2="text",x2=e=>e.length===0?"":Tg(e),k2=Eg;function yf(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function S2(e){const t=wt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(wt(e.named.count)||wt(e.named.n))?wt(e.named.count)?e.named.count:wt(e.named.n)?e.named.n:t:t}function A2(e,t){t.count||(t.count=e),t.n||(t.n=e)}function E2(e={}){const t=e.locale,n=S2(e),r=Je(e.pluralRules)&&ue(t)&&lt(e.pluralRules[t])?e.pluralRules[t]:yf,s=Je(e.pluralRules)&&ue(t)&&lt(e.pluralRules[t])?yf:void 0,i=I=>I[r(n,I.length,s)],o=e.list||[],u=I=>o[I],h=e.named||rt();wt(e.pluralIndex)&&A2(n,h);const d=I=>h[I];function p(I){const V=lt(e.messages)?e.messages(I):Je(e.messages)?e.messages[I]:!1;return V||(e.parent?e.parent.message(I):v2)}const w=I=>e.modifiers?e.modifiers[I]:w2,v=Re(e.processor)&&lt(e.processor.normalize)?e.processor.normalize:x2,x=Re(e.processor)&&lt(e.processor.interpolate)?e.processor.interpolate:k2,k=Re(e.processor)&&ue(e.processor.type)?e.processor.type:_2,N={list:u,named:d,plural:i,linked:(I,...V)=>{const[D,M]=V;let B="text",P="";V.length===1?Je(D)?(P=D.modifier||P,B=D.type||B):ue(D)&&(P=D||P):V.length===2&&(ue(D)&&(P=D||P),ue(M)&&(B=M||B));const j=p(I)(N),W=B==="vnode"&&ut(j)&&P?j[0]:j;return P?w(P)(W,B):W},message:p,type:k,interpolate:x,normalize:v,values:Ht(rt(),o,h)};return N}let oi=null;function T2(e){oi=e}f
* vue-i18n v9.14.5
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/const Z2="9.14.5";function e5(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Zn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Zn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Zn().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Zn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Zn().__INTLIFY_PROD_DEVTOOLS__=!1)}const t5=M2.__EXTEND_POINT__,Yn=io(t5);Yn(),Yn(),Yn(),Yn(),Yn(),Yn(),Yn(),Yn(),Yn();const r1=In.__EXTEND_POINT__,rn=io(r1),Mt={UNEXPECTED_RETURN_TYPE:r1,INVALID_ARGUMENT:rn(),MUST_BE_CALL_SETUP_TOP:rn(),NOT_INSTALLED:rn(),NOT_AVAILABLE_IN_LEGACY_MODE:rn(),REQUIRED_VALUE:rn(),INVALID_VALUE:rn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:rn(),NOT_INSTALLED_WITH_PROVIDE:rn(),UNEXPECTED_ERROR:rn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:rn(),BRIDGE_SUPPORT_VUE_2_ONLY:rn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:rn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:rn(),__EXTEND_POINT__:rn()};function Ft(e,...t){return Ts(e,null,void 0)}const s0=xr("__translateVNode"),i0=xr("__datetimeParts"),a0=xr("__numberParts"),s1=xr("__setPluralRules"),i1=xr("__injectWithOption"),o0=xr("__dispose");function li(e){if(!Je(e)||zn(e))return e;for(const t in e)if(Cn(e,t))if(!t.includes("."))Je(e[t])&&li(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,i=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=rt()),!Je(s[n[o]])){i=!0;break}s=s[n[o]]}if(i||(zn(s)?Hd.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!zn(s)){const o=s[n[r]];Je(o)&&li(o)}}return e}function oo(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=t,o=Re(n)?n:ut(r)?rt():{[e]:rt()};if(ut(r)&&r.forEach(u=>{if("locale"in u&&"resource"in u){const{locale:h,resource:d}=u;h?(o[h]=o[h]||rt(),xa(d,o[h])):xa(d,o)}else ue(u)&&xa(JSON.parse(u),o)}),s==null&&i)for(const u in o)Cn(o,u)&&li(o[u]);return o}function a1(e){return e.type}function o1(e,t,n){let r=Je(t.messages)?t.messages:rt();"__i18nGlobal"in n&&(r=oo(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(Je(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(Je(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Lf(e){return Ne(ig,null,e,0)}const Df="__INTLIFY_META__",Rf=()=>[],n5=()=>!1;let Pf=0;function $f(e){return(t,n,r,s)=>e(n,r,ii()||void 0,s)}const r5=()=>{const e=ii();let t=null;return e&&(t=a1(e)[Df])?{[Df]:t}:null};function W0(e={},t){const{__root:n,__injectWithOption:r}=e,s=n===void 0,i=e.flatJson,o=Pa?$t:Sd,u=!!e.translateExistCompatible;let h=Ue(e.inheritLocale)?e.inheritLocale:!0;const d=o(n&&h?n.locale.value:ue(e.locale)?e.locale:vs),p=o(n&&h?n.fallbackLocale.value:ue(e.fallbackLocale)||ut(e.fallbackLocale)||Re(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:d.value),w=o(oo(d.value,e)),v=o(Re(e.datetimeFormats)?e.datetimeFormats:{[d.value]:{}}),x=o(Re(e.numberFormats)?e.numberFormats:{[d.value]:{}});let k=n?n.missingWarn:Ue(e.missingWarn)||vr(e.missingWarn)?e.missingWarn:!0,A=n?n.fallbackWarn:Ue(e.fallbackWarn)||vr(e.fallbackWarn)?e.fallbackWarn:!0,N=n?n.fallbackRoot:Ue(e.fallbackRoot)?e.fallbackRoot:!0,I=!!e.fallbackFormat,V=lt(e.missing)?e.missing:null,D=lt(e.missing)?$f(e.missing):null,M=lt(e.postTranslation)?e.postTranslation:null,B=n?n.warnHtmlMessage:Ue(e.warnHtmlMessage)?e.warnHtmlMessage:!0,P=!!e.escapeParameter;const j=n?n.modifiers:Re(e.modifiers)?e.modifiers:{};let W=e.pluralRules||n&&n.pluralRules,Y;Y=(()=>{s&&Sf(null);const J={version:Z2,locale:d.value,fallbackLocale:p.value,messages:w.value,modifiers:j,pluralRules:W,missing:D===null?void 0:D,missingWarn:k,fallbackWarn:A,fallbackFormat:I,unresolving:!0,postTranslation:M===null?void 0:M,warnHtmlMessage:B,escapeParameter:P,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framew
`:ka(e.children):co(e)?ka(e.children):jr(e)?e.data:""}function _s(e){return Array.isArray(e)?e.map(_s).join(""):zt(e)&&!ec(e)?_s(e.children):jr(e)?e.data:""}function za(e){return Array.isArray(e)?e.map(za).join(""):zt(e)&&(e.type===Qe.Tag||co(e))?za(e.children):jr(e)?e.data:""}function fo(e){return zt(e)?e.children:[]}function E1(e){return e.parent||null}function T1(e){const t=E1(e);if(t!=null)return fo(t);const n=[e];let{prev:r,next:s}=e;for(;r!=null;)n.unshift(r),{prev:r}=r;for(;s!=null;)n.push(s),{next:s}=s;return n}function Z3(e,t){var n;return(n=e.attribs)===null||n===void 0?void 0:n[t]}function e6(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function t6(e){return e.name}function tc(e){let{next:t}=e;for(;t!==null&&!De(t);)({next:t}=t);return t}function nc(e){let{prev:t}=e;for(;t!==null&&!De(t);)({prev:t}=t);return t}function Jr(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}function n6(e,t){const n=t.prev=e.prev;n&&(n.next=t);const r=t.next=e.next;r&&(r.prev=t);const s=t.parent=e.parent;if(s){const i=s.children;i[i.lastIndexOf(e)]=t,e.parent=null}}function r6(e,t){if(Jr(t),t.next=null,t.parent=e,e.children.push(t)>1){const n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null}function s6(e,t){Jr(t);const{parent:n}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){const s=n.children;s.splice(s.lastIndexOf(r),0,t)}}else n&&n.children.push(t)}function i6(e,t){if(Jr(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){const n=e.children[1];n.prev=t,t.next=n}else t.next=null}function a6(e,t){Jr(t);const{parent:n}=e;if(n){const r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}function ho(e,t,n=!0,r=1/0){return rc(e,Array.isArray(t)?t:[t],n,r)}function rc(e,t,n,r){const s=[],i=[t],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}const u=i[0][o[0]++];if(e(u)&&(s.push(u),--r<=0))return s;n&&zt(u)&&u.children.length>0&&(o.unshift(0),i.unshift(u.children))}}function o6(e,t){return t.find(e)}function sc(e,t,n=!0){let r=null;for(let s=0;s<t.length&&!r;s++){const i=t[s];if(De(i))e(i)?r=i:n&&i.children.length>0&&(r=sc(e,i.children,!0));else continue}return r}function N1(e,t){return t.some(n=>De(n)&&(e(n)||N1(e,n.children)))}function l6(e,t){const n=[],r=[t],s=[0];for(;;){if(s[0]>=r[0].length){if(r.length===1)return n;r.shift(),s.shift();continue}const i=r[0][s[0]++];De(i)&&(e(i)&&n.push(i),i.children.length>0&&(s.unshift(0),r.unshift(i.children)))}}const qa={tag_name(e){return typeof e=="function"?t=>De(t)&&e(t.name):e==="*"?De:t=>De(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>jr(t)&&e(t.data):t=>jr(t)&&t.data===e}};function C1(e,t){return typeof t=="function"?n=>De(n)&&t(n.attribs[e]):n=>De(n)&&n.attribs[e]===t}function c6(e,t){return n=>e(n)||t(n)}function I1(e){const t=Object.keys(e).map(n=>{const r=e[n];return Object.prototype.hasOwnProperty.call(qa,n)?qa[n](r):C1(n,r)});return t.length===0?null:t.reduce(c6)}function u6(e,t){const n=I1(e);return n?n(t):!0}function f6(e,t,n,r=1/0){const s=I1(e);return s?ho(s,t,n,r):[]}function h6(e,t,n=!0){return Array.isArray(t)||(t=[t]),sc(C1("id",e),t,n)}function Ns(e,t,n=!0,r=1/0){return ho(qa.tag_name(e),t,n,r)}function d6(e,t,n=!0,r=1/0){return ho(qa.tag_type(e),t,n,r)}function m6(e){let t=e.length;for(;--t>=0;){const n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0){e.splice(t,1);continue}for(let r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e}var wn;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(wn||(wn={}));function O1(e,t){const n=[],r=[];if(e===t)return 0;let s=zt(e)?e:e.parent;for(;s;)n.unshift(s),s=s.parent;for(s=zt(t)?t:t.parent;s;)r.unshift(s),s=
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},H1={};function s7(e,t){return e===qe.falseFunc?qe.falseFunc:n=>t.isTag(n)&&e(n)}function V1(e,t){const n=t.getSiblings(e);if(n.length<=1)return[];const r=n.indexOf(e);return r<0||r===n.length-1?[]:n.slice(r+1).filter(t.isTag)}function g0(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}const Ol=(e,t,n,r,s)=>{const i=s(t,g0(n),r);return i===qe.trueFunc?e:i===qe.falseFunc?qe.falseFunc:o=>i(o)&&e(o)},Ml={is:Ol,matches:Ol,where:Ol,not(e,t,n,r,s){const i=s(t,g0(n),r);return i===qe.falseFunc?e:i===qe.trueFunc?qe.falseFunc:o=>!i(o)&&e(o)},has(e,t,n,r,s){const{adapter:i}=n,o=g0(n);o.relativeSelector=!0;const u=t.some(p=>p.some(ac))?[H1]:void 0,h=s(t,o,u);if(h===qe.falseFunc)return qe.falseFunc;const d=s7(h,i);if(u&&h!==qe.trueFunc){const{shouldTestNextSiblings:p=!1}=h;return w=>{if(!e(w))return!1;u[0]=w;const v=i.getChildren(w),x=p?[...v,...V1(w,i)]:v;return i.existsOne(d,x)}}return p=>e(p)&&i.existsOne(d,i.getChildren(p))}};function i7(e,t,n,r,s){var i;const{name:o,data:u}=t;if(Array.isArray(u)){if(!(o in Ml))throw new Error(`Unknown pseudo-class :${o}(${u})`);return Ml[o](e,u,n,r,s)}const h=(i=n.pseudos)===null||i===void 0?void 0:i[o],d=typeof h=="string"?h:r7[o];if(typeof d=="string"){if(u!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);const p=po(d);return Ml.is(e,p,n,r,s)}if(typeof h=="function")return lh(h,o,u,1),p=>h(p,u)&&e(p);if(o in p0)return p0[o](e,u,n,r);if(o in oh){const p=oh[o];return lh(p,o,u,2),w=>p(w,n,u)&&e(w)}throw new Error(`Unknown pseudo-class :${o}`)}function Ll(e,t){const n=t.getParent(e);return n&&t.isTag(n)?n:null}function a7(e,t,n,r,s){const{adapter:i,equals:o}=n;switch(t.type){case Se.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Se.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Se.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!n.xmlMode||n.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),Q6[t.action](e,t,n)}case Se.Pseudo:return i7(e,t,n,r,s);case Se.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:u}=t;return(!n.xmlMode||n.lowerCaseTags)&&(u=u.toLowerCase()),function(d){return i.getName(d)===u&&e(d)}}case Se.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(d){let p=d;for(;p=Ll(p,i);)if(e(p))return!0;return!1};const u=new WeakSet;return function(d){let p=d;for(;p=Ll(p,i);)if(!u.has(p)){if(i.isTag(p)&&e(p))return!0;u.add(p)}return!1}}case"_flexibleDescendant":return function(h){let d=h;do if(e(d))return!0;while(d=Ll(d,i));return!1};case Se.Parent:return function(h){return i.getChildren(h).some(d=>i.isTag(d)&&e(d))};case Se.Child:return function(h){const d=i.getParent(h);return d!=null&&i.isTag(d)&&e(d)};case Se.Sibling:return function(h){const d=i.getSiblings(h);for(let p=0;p<d.length;p++){const w=d[p];if(o(h,w))break;if(i.isTag(w)&&e(w))return!0}return!1};case Se.Adjacent:return i.prevElementSibling?function(h){const d=i.prevElementSibling(h);return d!=null&&e(d)}:function(h){const d=i.getSiblings(h);let p;for(let w=0;w<d.length;w++){const v=d[w];if(o(h,v))break;i.isTag(v)&&(p=v)}return!!p&&e(p)};ca
`)})):{name:s,value:i.replace(uh,`\r
`)}}).toArray()}const M8=Object.freeze(Object.defineProperty({__proto__:null,serialize:I8,serializeArray:O8},Symbol.toStringTag,{value:"Module"}));function L8(e){var t;return typeof e=="string"?{selector:e,value:"textContent"}:{selector:e.selector,value:(t=e.value)!==null&&t!==void 0?t:"textContent"}}function D8(e){const t={};for(const n in e){const r=e[n],s=Array.isArray(r),{selector:i,value:o}=L8(s?r[0]:r),u=typeof o=="function"?o:typeof o=="string"?h=>this._make(h).prop(o):h=>this._make(h).extract(o);if(s)t[n]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((h,d)=>u(d,n,t)).get();else{const h=this._findBySelector(i,1);t[n]=h.length>0?u(h[0],n,t):void 0}}return t}const R8=Object.freeze(Object.defineProperty({__proto__:null,extract:D8},Symbol.toStringTag,{value:"Module"}));class xi{constructor(t,n,r){if(this.length=0,this.options=r,this._root=n,t){for(let s=0;s<t.length;s++)this[s]=t[s];this.length=t.length}}}xi.prototype.cheerio="[cheerio object]";xi.prototype.splice=Array.prototype.splice;xi.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(xi.prototype,z6,n8,S8,N8,M8,R8);function P8(e,t){return function n(r,s,i=!0){if(r==null)throw new Error("cheerio.load() expects a string");const o=u0(s),u=e(r,o,i,null);class h extends xi{_make(w,v){const x=d(w,v);return x.prevObject=this,x}_parse(w,v,x,k){return e(w,v,x,k)}_render(w){return t(w,this.options)}}function d(p,w,v=u,x){if(p&&nr(p))return p;const k=u0(x,o),A=typeof v=="string"?[e(v,k,!1,null)]:"length"in v?v:[v],N=nr(A)?A:new h(A,null,k);if(N._root=N,!p)return new h(void 0,N,k);const I=typeof p=="string"&&d0(p)?e(p,k,!1,null).children:$8(p)?[p]:Array.isArray(p)?p:void 0,V=new h(I,N,k);if(I)return V;if(typeof p!="string")throw new TypeError("Unexpected type of selector");let D=p;const M=w?typeof w=="string"?d0(w)?new h([e(w,k,!1,null)],N,k):(D=`${w} ${D}`,N):nr(w)?w:new h(Array.isArray(w)?w:[w],N,k):N;return M?M.find(D):V}return Object.assign(d,N6,{load:n,_root:u,_options:o,fn:h.prototype,prototype:h.prototype}),d}}function $8(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}var Te;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(Te||(Te={}));var ie;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"})(ie||(ie={}));function Qn(e){return e===Te.Space||e===Te.NewLine||e===Te.Tab||e===Te.FormFeed||e===Te.CarriageReturn}function ua(e)
`)}}Jt.defaultYaml={explicit:!1,version:"1.2"};Jt.defaultTags={"!!":"tag:yaml.org,2002:"};function om(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function lm(e){const t=new Set;return Ms(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function cm(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function pb(e,t){const n=[],r=new Map;let s=null;return{onAnchor:i=>{n.push(i),s??(s=lm(e));const o=cm(t,s);return s.add(o),o},setAnchors:()=>{for(const i of n){const o=r.get(i);if(typeof o=="object"&&o.anchor&&(ct(o.node)||vt(o.node)))o.node.anchor=o.anchor;else{const u=new Error("Failed to resolve repeated object (this should not happen)");throw u.source=i,u}}},sourceObjects:r}}function hs(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let s=0,i=r.length;s<i;++s){const o=r[s],u=hs(e,r,String(s),o);u===void 0?delete r[s]:u!==o&&(r[s]=u)}else if(r instanceof Map)for(const s of Array.from(r.keys())){const i=r.get(s),o=hs(e,r,s,i);o===void 0?r.delete(s):o!==i&&r.set(s,o)}else if(r instanceof Set)for(const s of Array.from(r)){const i=hs(e,r,s,s);i===void 0?r.delete(s):i!==s&&(r.delete(s),r.add(i))}else for(const[s,i]of Object.entries(r)){const o=hs(e,r,s,i);o===void 0?delete r[s]:o!==i&&(r[s]=o)}return e.call(t,n,r)}function xn(e,t,n){if(Array.isArray(e))return e.map((r,s)=>xn(r,String(s),n));if(e&&typeof e.toJSON=="function"){if(!n||!am(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=i=>{r.res=i,delete n.onCreate};const s=e.toJSON(t,n);return n.onCreate&&n.onCreate(s),s}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class mc{constructor(t){Object.defineProperty(this,kn,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:s,reviver:i}={}){if(!go(t))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},u=xn(this,"",o);if(typeof s=="function")for(const{count:h,res:d}of o.anchors.values())s(d,h);return typeof i=="function"?hs(i,{"":u},"",u):u}}class pc extends mc{constructor(t){super(dc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,n){let r;n!=null&&n.aliasResolveCache?r=n.aliasResolveCache:(r=[],Ms(t,{Node:(i,o)=>{(Qr(o)||am(o))&&r.push(o)}}),n&&(n.aliasResolveCache=r));let s;for(const i of r){if(i===this)break;i.anchor===this.source&&(s=i)}return s}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:s,maxAliasCount:i}=n,o=this.resolve(s,n);if(!o){const h=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(h)}let u=r.get(o);if(u||(xn(o,null,n),u=r.get(o)),(u==null?void 0:u.res)===void 0){const h="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(h)}if(i>=0&&(u.count+=1,u.aliasCount===0&&(u.aliasCount=Sa(s,o,r)),u.count*u.aliasCount>i)){const h="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(h)}return u.res}toString(t,n,r){const s=`*${this.source}`;if(t){if(om(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(t.implicitKey)return`${s} `}return s}}function Sa(e,t,n){if(Qr(t)){const r=t.resolve(e),s=n&&r&&n.get(r);return s?s.count*s.aliasCount:0}else if(vt(t)){let r=0;for(const s of t.items){const i=Sa(e,s,n);i>r&&(r=i)}return r}else if(xt(t)){const r=Sa(e,t.key,n),s=Sa(e,t.value,n);return Math.max(r,s)}return 1}const um=e=>!e||typeof e!="function"&&typeof e!="object";class Pe extends mc{constructor(t){super(Un),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:xn(this.value,t,n)}toString(){return String(this.value)}}Pe.BLOCK_FOLDED="BLOCK_FOLDED";Pe.BLOCK_L
`)?er(n,t):n.includes(`
`)?`
`+er(n,t):(e.endsWith(" ")?"":" ")+n,hm="flow",v0="block",Aa="quoted";function bo(e,t,n="flow",{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:u}={}){if(!s||s<0)return e;s<i&&(i=0);const h=Math.max(1+i,1+s-t.length);if(e.length<=h)return e;const d=[],p={};let w=s-t.length;typeof r=="number"&&(r>s-Math.max(2,i)?d.push(0):w=s-r);let v,x,k=!1,A=-1,N=-1,I=-1;n===v0&&(A=bh(e,A,t.length),A!==-1&&(w=A+h));for(let D;D=e[A+=1];){if(n===Aa&&D==="\\"){switch(N=A,e[A+1]){case"x":A+=3;break;case"u":A+=5;break;case"U":A+=9;break;default:A+=1}I=A}if(D===`
`)n===v0&&(A=bh(e,A,t.length)),w=A+t.length+h,v=void 0;else{if(D===" "&&x&&x!==" "&&x!==`
`&&x!==" "){const M=e[A+1];M&&M!==" "&&M!==`
`&&M!==" "&&(v=A)}if(A>=w)if(v)d.push(v),w=v+h,v=void 0;else if(n===Aa){for(;x===" "||x===" ";)x=D,D=e[A+=1],k=!0;const M=A>I+1?A-2:N-1;if(p[M])return e;d.push(M),p[M]=!0,w=M+h,v=void 0}else k=!0}x=D}if(k&&u&&u(),d.length===0)return e;o&&o();let V=e.slice(0,d[0]);for(let D=0;D<d.length;++D){const M=d[D],B=d[D+1]||e.length;M===0?V=`
${t}${e.slice(0,B)}`:(n===Aa&&p[M]&&(V+=`${e[M]}\\`),V+=`
${t}${e.slice(M+1,B)}`)}return V}function bh(e,t,n){let r=t,s=t+1,i=e[s];for(;i===" "||i===" ";)if(t<s+n)i=e[++t];else{do i=e[++t];while(i&&i!==`
`);r=t,s=t+1,i=e[s]}return r}const yo=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),wo=e=>/^(%|---|\.\.\.)/m.test(e);function wb(e,t,n){if(!t||t<0)return!1;const r=t-n,s=e.length;if(s<=r)return!1;for(let i=0,o=0;i<s;++i)if(e[i]===`
`){if(i-o>r)return!0;if(o=i+1,s-o<=r)return!1}return!0}function ri(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,s=t.options.doubleQuotedMinMultiLineLength,i=t.indent||(wo(e)?" ":"");let o="",u=0;for(let h=0,d=n[h];d;d=n[++h])if(d===" "&&n[h+1]==="\\"&&n[h+2]==="n"&&(o+=n.slice(u,h)+"\\ ",h+=1,u=h,d="\\"),d==="\\")switch(n[h+1]){case"u":{o+=n.slice(u,h);const p=n.substr(h+2,4);switch(p){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:p.substr(0,2)==="00"?o+="\\x"+p.substr(2):o+=n.substr(h,6)}h+=5,u=h+1}break;case"n":if(r||n[h+2]==='"'||n.length<s)h+=1;else{for(o+=n.slice(u,h)+`
`;n[h+2]==="\\"&&n[h+3]==="n"&&n[h+4]!=='"';)o+=`
`,h+=2;o+=i,n[h+2]===" "&&(o+="\\"),h+=1,u=h+1}break;default:h+=1}return o=u?o+n.slice(u):n,r?o:bo(o,i,Aa,yo(t,!1))}function _0(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
`)||/[ \t]\n|\n[ \t]/.test(e))return ri(e,t);const n=t.indent||(wo(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
${n}`)+"'";return t.implicitKey?r:bo(r,n,hm,yo(t,!1))}function ds(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=ri;else{const s=e.includes('"'),i=e.includes("'");s&&!i?r=_0:i&&!s?r=ri:r=n?_0:ri}return r(e,t)}let x0;try{x0=new RegExp(`(^|(?<!
))
+(?!
|$)`,"g")}catch{x0=/\n+(?!\n|$)/g}function Ea({comment:e,type:t,value:n},r,s,i){const{blockQuote:o,commentString:u,lineWidth:h}=r.options;if(!o||/\n[\t ]+$/.test(n))return ds(n,r);const d=r.indent||(r.forceBlockIndent||wo(n)?" ":""),p=o==="literal"?!0:o==="folded"||t===Pe.BLOCK_FOLDED?!1:t===Pe.BLOCK_LITERAL?!0:!wb(n,h,d.length);if(!n)return p?`|
`:`>
`;let w,v;for(v=n.length;v>0;--v){const B=n[v-1];if(B!==`
`&&B!==" "&&B!==" ")break}let x=n.substring(v);const k=x.indexOf(`
`);k===-1?w="-":n===x||k!==x.length-1?(w="+",i&&i()):w="",x&&(n=n.slice(0,-x.length),x[x.length-1]===`
`&&(x=x.slice(0,-1)),x=x.replace(x0,`$&${d}`));let A=!1,N,I=-1;for(N=0;N<n.length;++N){const B=n[N];if(B===" ")A=!0;else if(B===`
`)I=N;else break}let V=n.substring(0,I<N?I+1:N);V&&(n=n.substring(V.length),V=V.replace(/\n+/g,`$&${d}`));let M=(A?d?"2":"1":"")+w;if(e&&(M+=" "+u(e.replace(/ ?[\r\n]+/g," ")),s&&s()),!p){const B=n.replace(/\n+/g,`
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);let P=!1;const j=yo(r,!0);o!=="folded"&&t!==Pe.BLOCK_FOLDED&&(j.onOverflow=()=>{P=!0});const W=bo(`${V}${B}${x}`,d,v0,j);if(!P)return`>${M}
${d}${W}`}return n=n.replace(/\n+/g,`$&${d}`),`|${M}
${d}${V}${n}${x}`}function vb(e,t,n,r){const{type:s,value:i}=e,{actualString:o,implicitKey:u,indent:h,indentStep:d,inFlow:p}=t;if(u&&i.includes(`
`)||p&&/[[\]{},]/.test(i))return ds(i,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return u||p||!i.includes(`
`)?ds(i,t):Ea(e,t,n,r);if(!u&&!p&&s!==Pe.PLAIN&&i.includes(`
`))return Ea(e,t,n,r);if(wo(i)){if(h==="")return t.forceBlockIndent=!0,Ea(e,t,n,r);if(u&&h===d)return ds(i,t)}const w=i.replace(/\n+/g,`$&
${h}`);if(o){const v=A=>{var N;return A.default&&A.tag!=="tag:yaml.org,2002:str"&&((N=A.test)==null?void 0:N.test(w))},{compat:x,tags:k}=t.doc.schema;if(k.some(v)||x!=null&&x.some(v))return ds(i,t)}return u?w:bo(w,h,hm,yo(t,!1))}function gc(e,t,n,r){const{implicitKey:s,inFlow:i}=t,o=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:u}=e;u!==Pe.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(u=Pe.QUOTE_DOUBLE);const h=p=>{switch(p){case Pe.BLOCK_FOLDED:case Pe.BLOCK_LITERAL:return s||i?ds(o.value,t):Ea(o,t,n,r);case Pe.QUOTE_DOUBLE:return ri(o.value,t);case Pe.QUOTE_SINGLE:return _0(o.value,t);case Pe.PLAIN:return vb(o,t,n,r);default:return null}};let d=h(u);if(d===null){const{defaultKeyType:p,defaultStringType:w}=t.options,v=s&&p||w;if(d=h(v),d===null)throw new Error(`Unsupported default string type ${v}`)}return d}function dm(e,t){const n=Object.assign({blockQuote:!0,commentString:yb,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function _b(e,t){var s;if(t.tag){const i=e.filter(o=>o.tag===t.tag);if(i.length>0)return i.find(o=>o.format===t.format)??i[0]}let n,r;if(ct(t)){r=t.value;let i=e.filter(o=>{var u;return(u=o.identify)==null?void 0:u.call(o,r)});if(i.length>1){const o=i.filter(u=>u.test);o.length>0&&(i=o)}n=i.find(o=>o.format===t.format)??i.find(o=>!o.format)}else r=t,n=e.find(i=>i.nodeClass&&r instanceof i.nodeClass);if(!n){const i=((s=r==null?void 0:r.constructor)==null?void 0:s.name)??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${i} value`)}return n}function xb(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const s=[],i=(ct(e)||vt(e))&&e.anchor;i&&om(i)&&(n.add(i),s.push(`&${i}`));const o=e.tag??(t.default?null:t.tag);return o&&s.push(r.directives.tagString(o)),s.join(" ")}function xs(e,t,n,r){var h;if(xt(e))return e.toString(t,n,r);if(Qr(e)){if(t.doc.directives)return e.toString(t);if((h=t.resolvedAliases)!=null&&h.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 s;const i=_t(e)?e:t.doc.createNode(e,{onTagObj:d=>s=d});s??(s=_b(t.doc.schema.tags,i));const o=xb(i,s,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);const u=typeof s.stringify=="function"?s.stringify(i,t,n,r):ct(i)?gc(i,t,n,r):i.toString(t,n,r);return o?ct(i)||u[0]==="{"||u[0]==="["?`${o} ${u}`:`${o}
${t.indent}${u}`:u}function kb({key:e,value:t},n,r,s){const{allNullValues:i,doc:o,indent:u,indentStep:h,options:{commentString:d,indentSeq:p,simpleKeys:w}}=n;let v=_t(e)&&e.comment||null;if(w){if(v)throw new Error("With simple keys, key nodes cannot have comments");if(vt(e)||!_t(e)&&typeof e=="object"){const j="With simple keys, collection cannot be used as a key value";throw new Error(j)}}let x=!w&&(!e||v&&t==null&&!n.inFlow||vt(e)||(ct(e)?e.type===Pe.BLOCK_FOLDED||e.type===Pe.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!x&&(w||!i),indent:u+h});let k=!1,A=!1,N=xs(e,n,()=>k=!0,()=>A=!0);if(!x&&!n.inFlow&&N.length>1024){if(w)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");x=!0}if(n.inFlow){if(i||t==null)return k&&r&&r(),N===""?"?":x?`? ${N}`:N}else if(i&&!w||t==null&&x)return N=`? ${N}`,v&&!k?N+=Fr(N,n.indent,d(v)):A&&s&&s(),N;k&&(v=null),x?(v&&(N+=Fr(N,n.indent,d(v))),N=`? ${N}
${u}:`):(N=`${N}:`,v&&(N+=Fr(N,n.indent,d(v))));let I,V,D;_t(t)?(I=!!t.spaceBefore,V=t.commentBefore,D=t.comment):(I=!1,V=null,D=null,t&&typeof t=="object"&&(t=o.createNode(t))),n.implicitKey=!1,!x&&!v&&ct(t)&&(n.indentAtStart=N.length+1),A=!1,!p&&h.length>=2&&!n.inFlow&&!x&&Si(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let M=!1;const B=xs(t,n,()=>M=!0,()=>A=!0);let P=" ";if(v||I||V){if(P=I?`
`:"",V){const j=d(V);P+=`
${er(j,n.indent)}`}B===""&&!n.inFlow?P===`
`&&D&&(P=`
`):P+=`
${n.indent}`}else if(!x&&vt(t)){const j=B[0],W=B.indexOf(`
`),Y=W!==-1,pe=n.inFlow??t.flow??t.items.length===0;if(Y||!pe){let Me=!1;if(Y&&(j==="&"||j==="!")){let be=B.indexOf(" ");j==="&"&&be!==-1&&be<W&&B[be+1]==="!"&&(be=B.indexOf(" ",be+1)),(be===-1||W<be)&&(Me=!0)}Me||(P=`
${n.indent}`)}}else(B===""||B[0]===`
`)&&(P="");return N+=P+B,n.inFlow?M&&r&&r():D&&!M?N+=Fr(N,n.indent,d(D)):A&&s&&s(),N}function mm(e,t){(e==="debug"||e==="warn")&&console.warn(t)}const fa="<<",rr={identify:e=>e===fa||typeof e=="symbol"&&e.description===fa,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Pe(Symbol(fa)),{addToJSMap:pm}),stringify:()=>fa},Sb=(e,t)=>(rr.identify(t)||ct(t)&&(!t.type||t.type===Pe.PLAIN)&&rr.identify(t.value))&&(e==null?void 0:e.doc.schema.tags.some(n=>n.tag===rr.tag&&n.default));function pm(e,t,n){if(n=e&&Qr(n)?n.resolve(e.doc):n,Si(n))for(const r of n.items)Dl(e,t,r);else if(Array.isArray(n))for(const r of n)Dl(e,t,r);else Dl(e,t,n)}function Dl(e,t,n){const r=e&&Qr(n)?n.resolve(e.doc):n;if(!ki(r))throw new Error("Merge sources must be maps or map aliases");const s=r.toJSON(null,e,Map);for(const[i,o]of s)t instanceof Map?t.has(i)||t.set(i,o):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}function gm(e,t,{key:n,value:r}){if(_t(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Sb(e,n))pm(e,t,r);else{const s=xn(n,"",e);if(t instanceof Map)t.set(s,xn(r,s,e));else if(t instanceof Set)t.add(s);else{const i=Ab(n,s,e),o=xn(r,i,e);i in t?Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[i]=o}}return t}function Ab(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(_t(e)&&(n!=null&&n.doc)){const r=dm(n.doc,{});r.anchors=new Set;for(const i of n.anchors.keys())r.anchors.add(i.anchor);r.inFlow=!0,r.inStringifyKey=!0;const s=e.toString(r);if(!n.mapKeyWarned){let i=JSON.stringify(s);i.length>40&&(i=i.substring(0,36)+'..."'),mm(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return s}return JSON.stringify(t)}function bc(e,t,n){const r=mi(e,void 0,n),s=mi(t,void 0,n);return new Zt(r,s)}class Zt{constructor(t,n=null){Object.defineProperty(this,kn,{value:im}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return _t(n)&&(n=n.clone(t)),_t(r)&&(r=r.clone(t)),new Zt(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return gm(n,r,this)}toString(t,n,r){return t!=null&&t.doc?kb(this,t,n,r):JSON.stringify(this)}}function bm(e,t,n){return(t.inFlow??e.flow?Tb:Eb)(e,t,n)}function Eb({comment:e,items:t},n,{blockItemPrefix:r,flowChars:s,itemIndent:i,onChompKeep:o,onComment:u}){const{indent:h,options:{commentString:d}}=n,p=Object.assign({},n,{indent:i,type:null});let w=!1;const v=[];for(let k=0;k<t.length;++k){const A=t[k];let N=null;if(_t(A))!w&&A.spaceBefore&&v.push(""),Xa(n,v,A.commentBefore,w),A.comment&&(N=A.comment);else if(xt(A)){const V=_t(A.key)?A.key:null;V&&(!w&&V.spaceBefore&&v.push(""),Xa(n,v,V.commentBefore,w))}w=!1;let I=xs(A,p,()=>N=null,()=>w=!0);N&&(I+=Fr(I,i,d(N))),w&&N&&(w=!1),v.push(r+I)}let x;if(v.length===0)x=s.start+s.end;else{x=v[0];for(let k=1;k<v.length;++k){const A=v[k];x+=A?`
${h}${A}`:`
`}}return e?(x+=`
`+er(d(e),h),u&&u()):w&&o&&o(),x}function Tb({items:e},t,{flowChars:n,itemIndent:r}){const{indent:s,indentStep:i,flowCollectionPadding:o,options:{commentString:u}}=t;r+=i;const h=Object.assign({},t,{indent:r,inFlow:!0,type:null});let d=!1,p=0;const w=[];for(let k=0;k<e.length;++k){const A=e[k];let N=null;if(_t(A))A.spaceBefore&&w.push(""),Xa(t,w,A.commentBefore,!1),A.comment&&(N=A.comment);else if(xt(A)){const V=_t(A.key)?A.key:null;V&&(V.spaceBefore&&w.push(""),Xa(t,w,V.commentBefore,!1),V.comment&&(d=!0));const D=_t(A.value)?A.value:null;D?(D.comment&&(N=D.comment),D.commentBefore&&(d=!0)):A.value==null&&(V!=null&&V.comment)&&(N=V.comment)}N&&(d=!0);let I=xs(A,h,()=>N=null);k<e.length-1&&(I+=","),N&&(I+=Fr(I,r,u(N))),!d&&(w.length>p||I.includes(`
`))&&(d=!0),w.push(I),p=w.length}const{start:v,end:x}=n;if(w.length===0)return v+x;if(!d){const k=w.reduce((A,N)=>A+N.length+2,2);d=t.options.lineWidth>0&&k>t.options.lineWidth}if(d){let k=v;for(const A of w)k+=A?`
${i}${s}${A}`:`
`;return`${k}
${s}${x}`}else return`${v}${o}${w.join(" ")}${o}${x}`}function Xa({indent:e,options:{commentString:t}},n,r,s){if(r&&s&&(r=r.replace(/^\n+/,"")),r){const i=er(t(r),e);n.push(i.trimStart())}}function zr(e,t){const n=ct(t)?t.value:t;for(const r of e)if(xt(r)&&(r.key===t||r.key===n||ct(r.key)&&r.key.value===n))return r}class _n extends fm{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(wr,t),this.items=[]}static from(t,n,r){const{keepUndefined:s,replacer:i}=r,o=new this(t),u=(h,d)=>{if(typeof i=="function")d=i.call(n,h,d);else if(Array.isArray(i)&&!i.includes(h))return;(d!==void 0||s)&&o.items.push(bc(h,d,r))};if(n instanceof Map)for(const[h,d]of n)u(h,d);else if(n&&typeof n=="object")for(const h of Object.keys(n))u(h,n[h]);return typeof t.sortMapEntries=="function"&&o.items.sort(t.sortMapEntries),o}add(t,n){var o;let r;xt(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Zt(t,t==null?void 0:t.value):r=new Zt(t.key,t.value);const s=zr(this.items,r.key),i=(o=this.schema)==null?void 0:o.sortMapEntries;if(s){if(!n)throw new Error(`Key ${r.key} already set`);ct(s.value)&&um(r.value)?s.value.value=r.value:s.value=r.value}else if(i){const u=this.items.findIndex(h=>i(r,h)<0);u===-1?this.items.push(r):this.items.splice(u,0,r)}else this.items.push(r)}delete(t){const n=zr(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const r=zr(this.items,t),s=r==null?void 0:r.value;return(!n&&ct(s)?s.value:s)??void 0}has(t){return!!zr(this.items,t)}set(t,n){this.add(new Zt(t,n),!0)}toJSON(t,n,r){const s=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(s);for(const i of this.items)gm(n,s,i);return s}toString(t,n,r){if(!t)return JSON.stringify(this);for(const s of this.items)if(!xt(s))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),bm(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const Ls={collection:"map",default:!0,nodeClass:_n,tag:"tag:yaml.org,2002:map",resolve(e,t){return ki(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>_n.from(e,t,n)};class Gr extends fm{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(Os,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=ha(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=ha(t);if(typeof r!="number")return;const s=this.items[r];return!n&&ct(s)?s.value:s}has(t){const n=ha(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=ha(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const s=this.items[r];ct(s)&&um(n)?s.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let s=0;for(const i of this.items)r.push(xn(i,String(s++),n));return r}toString(t,n,r){return t?bm(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:s}=r,i=new this(t);if(n&&Symbol.iterator in Object(n)){let o=0;for(let u of n){if(typeof s=="function"){const h=n instanceof Set?u:String(o++);u=s.call(n,h,u)}i.items.push(mi(u,void 0,r))}}return i}}function ha(e){let t=ct(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const Ds={collection:"seq",default:!0,nodeClass:Gr,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Si(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Gr.from(e,t,n)},vo={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),gc(e,t,n,r)}},_o={identify:e=>e==null,createNode:()=>new Pe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Pe(null),stringify:({source:e},t)=>typeof e=="string"&&_o.test.test(e)?e:t.options.nullStr},yc={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,
`:" ")}return gc({comment:e,type:t,value:u},r,s,i)}};function Am(e,t){if(Si(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!xt(r)){if(ki(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const s=r.items[0]||new Zt(new Pe(null));if(r.commentBefore&&(s.key.commentBefore=s.key.commentBefore?`${r.commentBefore}
${s.key.commentBefore}`:r.commentBefore),r.comment){const i=s.value??s.key;i.comment=i.comment?`${r.comment}
${i.comment}`:r.comment}r=s}e.items[n]=xt(r)?r:new Zt(r)}}else t("Expected a sequence for this tag");return e}function Em(e,t,n){const{replacer:r}=n,s=new Gr(e);s.tag="tag:yaml.org,2002:pairs";let i=0;if(t&&Symbol.iterator in Object(t))for(let o of t){typeof r=="function"&&(o=r.call(t,String(i++),o));let u,h;if(Array.isArray(o))if(o.length===2)u=o[0],h=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const d=Object.keys(o);if(d.length===1)u=d[0],h=o[u];else throw new TypeError(`Expected tuple with one key, not ${d.length} keys`)}else u=o;s.items.push(bc(u,h,n))}return s}const _c={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Am,createNode:Em};class gs extends Gr{constructor(){super(),this.add=_n.prototype.add.bind(this),this.delete=_n.prototype.delete.bind(this),this.get=_n.prototype.get.bind(this),this.has=_n.prototype.has.bind(this),this.set=_n.prototype.set.bind(this),this.tag=gs.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const s of this.items){let i,o;if(xt(s)?(i=xn(s.key,"",n),o=xn(s.value,i,n)):i=xn(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}static from(t,n,r){const s=Em(t,n,r),i=new this;return i.items=s.items,i}}gs.tag="tag:yaml.org,2002:omap";const xc={collection:"seq",identify:e=>e instanceof Map,nodeClass:gs,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=Am(e,t),r=[];for(const{key:s}of n.items)ct(s)&&(r.includes(s.value)?t(`Ordered maps must not include duplicate keys: ${s.value}`):r.push(s.value));return Object.assign(new gs,n)},createNode:(e,t,n)=>gs.from(e,t,n)};function Tm({value:e,source:t},n){return t&&(e?Nm:Cm).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const Nm={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Pe(!0),stringify:Tm},Cm={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Pe(!1),stringify:Tm},Mb={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:On},Lb={identify:e=>typeof e=="number",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():On(e)}},Db={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Pe(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:On},Ai=e=>typeof e=="bigint"||Number.isInteger(e);function ko(e,t,n,{intAsBigInt:r}){const s=e[0];if((s==="-"||s==="+")&&(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}`;break}const o=BigInt(e);return s==="-"?BigInt(-1)*o:o}const i=parseInt(e,n);return s==="-"?-1*i:i}function kc(e,t,n){const{value:r}=e;if(Ai(r)){const s=r.toString(t);return r<0?"-"+n+s.substr(1):n+s}return On(e)}const Rb={identify:Ai,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>ko(e,2,2,n),stringify:e=>kc(e,2,"0b")},Pb={identify:Ai,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>ko(e,1,8,n),stringify:e=>kc(e,8,"0")},$b={identify:Ai,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>ko(e,0,10,n),stringify:On},Bb={identify:Ai,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>ko(e,2,16,n),stringify:e=>kc(e,16,"0x")};class bs extends _n{constructor(t){super(t),this.tag=bs.tag}add(t){let n;xt(t)?n=t:t&&typeof t=="o
`)?(n.push("..."),n.push(er(d,""))):n.push(`... ${d}`)}else n.push("...");else{let d=e.comment;d&&o&&(d=d.replace(/^\n+/,"")),d&&((!o||u)&&n[n.length-1]!==""&&n.push(""),n.push(er(i(d),"")))}return n.join(`
`)+`
`}class Ao{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,kn,{value:w0});let s=null;typeof n=="function"||Array.isArray(n)?s=n:r===void 0&&n&&(r=n,n=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=i;let{version:o}=i;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Jt({version:o}),this.setSchema(o,r),this.contents=t===void 0?null:this.createNode(t,s,r)}clone(){const t=Object.create(Ao.prototype,{[kn]:{value:w0}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=_t(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){is(this.contents)&&this.contents.add(t)}addIn(t,n){is(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=lm(this);t.anchor=!n||r.has(n)?cm(n||"a",r):n}return new pc(t.anchor)}createNode(t,n,r){let s;if(typeof n=="function")t=n.call({"":t},"",t),s=n;else if(Array.isArray(n)){const N=V=>typeof V=="number"||V instanceof String||V instanceof Number,I=n.filter(N).map(String);I.length>0&&(n=n.concat(I)),s=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:i,anchorPrefix:o,flow:u,keepUndefined:h,onTagObj:d,tag:p}=r??{},{onAnchor:w,setAnchors:v,sourceObjects:x}=pb(this,o||"a"),k={aliasDuplicateObjects:i??!0,keepUndefined:h??!1,onAnchor:w,onTagObj:d,replacer:s,schema:this.schema,sourceObjects:x},A=mi(t,p,k);return u&&vt(A)&&(A.flow=!0),v(),A}createPair(t,n,r={}){const s=this.createNode(t,null,r),i=this.createNode(n,null,r);return new Zt(s,i)}delete(t){return is(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Ys(t)?this.contents==null?!1:(this.contents=null,!0):is(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return vt(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return Ys(t)?!n&&ct(this.contents)?this.contents.value:this.contents:vt(this.contents)?this.contents.getIn(t,n):void 0}has(t){return vt(this.contents)?this.contents.has(t):!1}hasIn(t){return Ys(t)?this.contents!==void 0:vt(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=Ka(this.schema,[t],n):is(this.contents)&&this.contents.set(t,n)}setIn(t,n){Ys(t)?this.contents=n:this.contents==null?this.contents=Ka(this.schema,Array.from(t),n):is(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Jt({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Jt({version:t}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const s=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${s}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new Ec(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:s,onAnchor:i,reviver:o}={}){const u={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},h=xn(this.contents,n??"",u);if(typeof i=="function")for(const{count:d,res:p}of u.anchors.values())i(p,d);return typeof o=="function"?hs(o,{"":h},"",h):h}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t
`),o=u+o}if(/[^ ]/.test(o)){let u=1;const h=n.linePos[1];(h==null?void 0:h.line)===r&&h.col>s&&(u=Math.max(1,Math.min(h.col-s,80-i)));const d=" ".repeat(i)+"^".repeat(u);n.message+=`:
${o}
${d}
`}};function ks(e,{flow:t,indicator:n,next:r,offset:s,onError:i,parentIndent:o,startOnNewline:u}){let h=!1,d=u,p=u,w="",v="",x=!1,k=!1,A=null,N=null,I=null,V=null,D=null,M=null,B=null;for(const W of e)switch(k&&(W.type!=="space"&&W.type!=="newline"&&W.type!=="comma"&&i(W.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),k=!1),A&&(d&&W.type!=="comment"&&W.type!=="newline"&&i(A,"TAB_AS_INDENT","Tabs are not allowed as indentation"),A=null),W.type){case"space":!t&&(n!=="doc-start"||(r==null?void 0:r.type)!=="flow-collection")&&W.source.includes(" ")&&(A=W),p=!0;break;case"comment":{p||i(W,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const Y=W.source.substring(1)||" ";w?w+=v+Y:w=Y,v="",d=!1;break}case"newline":d?w?w+=W.source:(!M||n!=="seq-item-ind")&&(h=!0):v+=W.source,d=!0,x=!0,(N||I)&&(V=W),p=!0;break;case"anchor":N&&i(W,"MULTIPLE_ANCHORS","A node can have at most one anchor"),W.source.endsWith(":")&&i(W.offset+W.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),N=W,B??(B=W.offset),d=!1,p=!1,k=!0;break;case"tag":{I&&i(W,"MULTIPLE_TAGS","A node can have at most one tag"),I=W,B??(B=W.offset),d=!1,p=!1,k=!0;break}case n:(N||I)&&i(W,"BAD_PROP_ORDER",`Anchors and tags must be after the ${W.source} indicator`),M&&i(W,"UNEXPECTED_TOKEN",`Unexpected ${W.source} in ${t??"collection"}`),M=W,d=n==="seq-item-ind"||n==="explicit-key-ind",p=!1;break;case"comma":if(t){D&&i(W,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),D=W,d=!1,p=!1;break}default:i(W,"UNEXPECTED_TOKEN",`Unexpected ${W.type} token`),d=!1,p=!1}const P=e[e.length-1],j=P?P.offset+P.source.length:s;return k&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),A&&(d&&A.indent<=o||(r==null?void 0:r.type)==="block-map"||(r==null?void 0:r.type)==="block-seq")&&i(A,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:D,found:M,spaceBefore:h,comment:w,hasNewline:x,anchor:N,tag:I,newlineAfterProp:V,end:j,start:B??j}}function pi(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(pi(t.key)||pi(t.value))return!0}return!1;default:return!0}}function k0(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&pi(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Dm(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const s=typeof r=="function"?r:(i,o)=>i===o||ct(i)&&ct(o)&&i.value===o.value;return t.some(i=>s(i.key,n))}const kh="All mapping items must start at the same column";function Hb({composeNode:e,composeEmptyNode:t},n,r,s,i){var p;const o=(i==null?void 0:i.nodeClass)??_n,u=new o(n.schema);n.atRoot&&(n.atRoot=!1);let h=r.offset,d=null;for(const w of r.items){const{start:v,key:x,sep:k,value:A}=w,N=ks(v,{indicator:"explicit-key-ind",next:x??(k==null?void 0:k[0]),offset:h,onError:s,parentIndent:r.indent,startOnNewline:!0}),I=!N.found;if(I){if(x&&(x.type==="block-seq"?s(h,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in x&&x.indent!==r.indent&&s(h,"BAD_INDENT",kh)),!N.anchor&&!N.tag&&!k){d=N.end,N.comment&&(u.comment?u.comment+=`
`+N.comment:u.comment=N.comment);continue}(N.newlineAfterProp||pi(x))&&s(x??v[v.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((p=N.found)==null?void 0:p.indent)!==r.indent&&s(h,"BAD_INDENT",kh);n.atKey=!0;const V=N.end,D=x?e(n,x,N,s):t(n,V,v,null,N,s);n.schema.compat&&k0(r.indent,x,s),n.atKey=!1,Dm(n,u.items,D)&&s(V,"DUPLICATE_KEY","Map keys must be unique");const M=ks(k??[],{indicator:"map-value-ind",next:A,offset:D.range[2],onError:s,parentIndent:r.indent,startOnNewline:!x||x.type==="block-scalar"});if(h=M.end,M.found){I&&((A==null?void 0:A.type)==="block-map"&&!M.hasNewline&&s(h,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&N.start<M.found.offset-1024&&s(D.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const B=A?e(n,A,M,s):t(n,h,k,null,M,s);n.schema.compat&&k0(r.indent,A,s),h=B.range[2];const P=new Zt(D,B);n.options.keepSourceTokens&&(P.srcToken=w),u.items.push(P)}else{I&&s(D.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),M.comment&&(D.comment?D.comment+=`
`+M.comment:D.comment=M.comment);const B=new Zt(D);n.options.keepSourceTokens&&(B.srcToken=w),u.items.push(B)}}return d&&d<h&&s(d,"IMPOSSIBLE","Map comment with trailing content"),u.range=[r.offset,h,d??h],u}function Vb({composeNode:e,composeEmptyNode:t},n,r,s,i){const o=(i==null?void 0:i.nodeClass)??Gr,u=new o(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let h=r.offset,d=null;for(const{start:p,value:w}of r.items){const v=ks(p,{indicator:"seq-item-ind",next:w,offset:h,onError:s,parentIndent:r.indent,startOnNewline:!0});if(!v.found)if(v.anchor||v.tag||w)(w==null?void 0:w.type)==="block-seq"?s(v.end,"BAD_INDENT","All sequence items must start at the same column"):s(h,"MISSING_CHAR","Sequence item without - indicator");else{d=v.end,v.comment&&(u.comment=v.comment);continue}const x=w?e(n,w,v,s):t(n,v.end,p,null,v,s);n.schema.compat&&k0(r.indent,w,s),h=x.range[2],u.items.push(x)}return u.range=[r.offset,h,d??h],u}function Ei(e,t,n,r){let s="";if(e){let i=!1,o="";for(const u of e){const{source:h,type:d}=u;switch(d){case"space":i=!0;break;case"comment":{n&&!i&&r(u,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const p=h.substring(1)||" ";s?s+=o+p:s=p,o="";break}case"newline":s&&(o+=h),i=!0;break;default:r(u,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}t+=h.length}}return{comment:s,offset:t}}const Pl="Block collections are not allowed within flow collections",$l=e=>e&&(e.type==="block-map"||e.type==="block-seq");function jb({composeNode:e,composeEmptyNode:t},n,r,s,i){var N;const o=r.start.source==="{",u=o?"flow map":"flow sequence",h=(i==null?void 0:i.nodeClass)??(o?_n:Gr),d=new h(n.schema);d.flow=!0;const p=n.atRoot;p&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let w=r.offset+r.start.source.length;for(let I=0;I<r.items.length;++I){const V=r.items[I],{start:D,key:M,sep:B,value:P}=V,j=ks(D,{flow:u,indicator:"explicit-key-ind",next:M??(B==null?void 0:B[0]),offset:w,onError:s,parentIndent:r.indent,startOnNewline:!1});if(!j.found){if(!j.anchor&&!j.tag&&!B&&!P){I===0&&j.comma?s(j.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${u}`):I<r.items.length-1&&s(j.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${u}`),j.comment&&(d.comment?d.comment+=`
`+j.comment:d.comment=j.comment),w=j.end;continue}!o&&n.options.strict&&pi(M)&&s(M,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(I===0)j.comma&&s(j.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${u}`);else if(j.comma||s(j.start,"MISSING_CHAR",`Missing , between ${u} items`),j.comment){let W="";e:for(const Y of D)switch(Y.type){case"comma":case"space":break;case"comment":W=Y.source.substring(1);break e;default:break e}if(W){let Y=d.items[d.items.length-1];xt(Y)&&(Y=Y.value??Y.key),Y.comment?Y.comment+=`
`+W:Y.comment=W,j.comment=j.comment.substring(W.length+1)}}if(!o&&!B&&!j.found){const W=P?e(n,P,j,s):t(n,j.end,B,null,j,s);d.items.push(W),w=W.range[2],$l(P)&&s(W.range,"BLOCK_IN_FLOW",Pl)}else{n.atKey=!0;const W=j.end,Y=M?e(n,M,j,s):t(n,W,D,null,j,s);$l(M)&&s(Y.range,"BLOCK_IN_FLOW",Pl),n.atKey=!1;const pe=ks(B??[],{flow:u,indicator:"map-value-ind",next:P,offset:Y.range[2],onError:s,parentIndent:r.indent,startOnNewline:!1});if(pe.found){if(!o&&!j.found&&n.options.strict){if(B)for(const xe of B){if(xe===pe.found)break;if(xe.type==="newline"){s(xe,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}j.start<pe.found.offset-1024&&s(pe.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else P&&("source"in P&&((N=P.source)==null?void 0:N[0])===":"?s(P,"MISSING_CHAR",`Missing space after : in ${u}`):s(pe.start,"MISSING_CHAR",`Missing , or : between ${u} items`));const Me=P?e(n,P,pe,s):pe.found?t(n,pe.end,B,null,pe,s):null;Me?$l(P)&&s(Me.range,"BLOCK_IN_FLOW",Pl):pe.comment&&(Y.comment?Y.comment+=`
`+pe.comment:Y.comment=pe.comment);const be=new Zt(Y,Me);if(n.options.keepSourceTokens&&(be.srcToken=V),o){const xe=d;Dm(n,xe.items,Y)&&s(W,"DUPLICATE_KEY","Map keys must be unique"),xe.items.push(be)}else{const xe=new _n(n.schema);xe.flow=!0,xe.items.push(be);const G=(Me??Y).range;xe.range=[Y.range[0],G[1],G[2]],d.items.push(xe)}w=Me?Me.range[2]:pe.end}}const v=o?"}":"]",[x,...k]=r.end;let A=w;if((x==null?void 0:x.source)===v)A=x.offset+x.source.length;else{const I=u[0].toUpperCase()+u.substring(1),V=p?`${I} must end with a ${v}`:`${I} in block collection must be sufficiently indented and end with a ${v}`;s(w,p?"MISSING_CHAR":"BAD_INDENT",V),x&&x.source.length!==1&&k.unshift(x)}if(k.length>0){const I=Ei(k,A,n.options.strict,s);I.comment&&(d.comment?d.comment+=`
`+I.comment:d.comment=I.comment),d.range=[r.offset,A,I.offset]}else d.range=[r.offset,A,A];return d}function Bl(e,t,n,r,s,i){const o=n.type==="block-map"?Hb(e,t,n,r,i):n.type==="block-seq"?Vb(e,t,n,r,i):jb(e,t,n,r,i),u=o.constructor;return s==="!"||s===u.tagName?(o.tag=u.tagName,o):(s&&(o.tag=s),o)}function Wb(e,t,n,r,s){var v;const i=r.tag,o=i?t.directives.tagName(i.source,x=>s(i,"TAG_RESOLVE_FAILED",x)):null;if(n.type==="block-seq"){const{anchor:x,newlineAfterProp:k}=r,A=x&&i?x.offset>i.offset?x:i:x??i;A&&(!k||k.offset<A.offset)&&s(A,"MISSING_CHAR","Missing newline after block sequence props")}const u=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!i||!o||o==="!"||o===_n.tagName&&u==="map"||o===Gr.tagName&&u==="seq")return Bl(e,t,n,s,o);let h=t.schema.tags.find(x=>x.tag===o&&x.collection===u);if(!h){const x=t.schema.knownTags[o];if((x==null?void 0:x.collection)===u)t.schema.tags.push(Object.assign({},x,{default:!1})),h=x;else return x?s(i,"BAD_COLLECTION_TYPE",`${x.tag} used for ${u} collection, but expects ${x.collection??"scalar"}`,!0):s(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),Bl(e,t,n,s,o)}const d=Bl(e,t,n,s,o,h),p=((v=h.resolve)==null?void 0:v.call(h,d,x=>s(i,"TAG_RESOLVE_FAILED",x),t.options))??d,w=_t(p)?p:new Pe(p);return w.range=d.range,w.tag=o,h!=null&&h.format&&(w.format=h.format),w}function Gb(e,t,n){const r=t.offset,s=Kb(t,e.options.strict,n);if(!s)return{value:"",type:null,comment:"",range:[r,r,r]};const i=s.mode===">"?Pe.BLOCK_FOLDED:Pe.BLOCK_LITERAL,o=t.source?Xb(t.source):[];let u=o.length;for(let A=o.length-1;A>=0;--A){const N=o[A][1];if(N===""||N==="\r")u=A;else break}if(u===0){const A=s.chomp==="+"&&o.length>0?`
`.repeat(Math.max(1,o.length-1)):"";let N=r+s.length;return t.source&&(N+=t.source.length),{value:A,type:i,comment:s.comment,range:[r,N,N]}}let h=t.indent+s.indent,d=t.offset+s.length,p=0;for(let A=0;A<u;++A){const[N,I]=o[A];if(I===""||I==="\r")s.indent===0&&N.length>h&&(h=N.length);else{N.length<h&&n(d+N.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),s.indent===0&&(h=N.length),p=A,h===0&&!e.atRoot&&n(d,"BAD_INDENT","Block scalar values in collections must be indented");break}d+=N.length+I.length+1}for(let A=o.length-1;A>=u;--A)o[A][0].length>h&&(u=A+1);let w="",v="",x=!1;for(let A=0;A<p;++A)w+=o[A][0].slice(h)+`
`;for(let A=p;A<u;++A){let[N,I]=o[A];d+=N.length+I.length+1;const V=I[I.length-1]==="\r";if(V&&(I=I.slice(0,-1)),I&&N.length<h){const M=`Block scalar lines must not be less indented than their ${s.indent?"explicit indentation indicator":"first line"}`;n(d-I.length-(V?2:1),"BAD_INDENT",M),N=""}i===Pe.BLOCK_LITERAL?(w+=v+N.slice(h)+I,v=`
`):N.length>h||I[0]===" "?(v===" "?v=`
`:!x&&v===`
`&&(v=`
`),w+=v+N.slice(h)+I,v=`
`,x=!0):I===""?v===`
`?w+=`
`:v=`
`:(w+=v+I,v=" ",x=!1)}switch(s.chomp){case"-":break;case"+":for(let A=u;A<o.length;++A)w+=`
`+o[A][0].slice(h);w[w.length-1]!==`
`&&(w+=`
`);break;default:w+=`
`}const k=r+s.length+t.source.length;return{value:w,type:i,comment:s.comment,range:[r,k,k]}}function Kb({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:s}=t[0],i=s[0];let o=0,u="",h=-1;for(let v=1;v<s.length;++v){const x=s[v];if(!u&&(x==="-"||x==="+"))u=x;else{const k=Number(x);!o&&k?o=k:h===-1&&(h=e+v)}}h!==-1&&r(h,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${s}`);let d=!1,p="",w=s.length;for(let v=1;v<t.length;++v){const x=t[v];switch(x.type){case"space":d=!0;case"newline":w+=x.source.length;break;case"comment":n&&!d&&r(x,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),w+=x.source.length,p=x.source.substring(1);break;case"error":r(x,"UNEXPECTED_TOKEN",x.message),w+=x.source.length;break;default:{const k=`Unexpected token in block scalar header: ${x.type}`;r(x,"UNEXPECTED_TOKEN",k);const A=x.source;A&&typeof A=="string"&&(w+=A.length)}}}return{mode:i,indent:o,chomp:u,comment:p,length:w}}function Xb(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let o=1;o<t.length;o+=2)i.push([t[o],t[o+1]]);return i}function Yb(e,t,n){const{offset:r,type:s,source:i,end:o}=e;let u,h;const d=(v,x,k)=>n(r+v,x,k);switch(s){case"scalar":u=Pe.PLAIN,h=Jb(i,d);break;case"single-quoted-scalar":u=Pe.QUOTE_SINGLE,h=Qb(i,d);break;case"double-quoted-scalar":u=Pe.QUOTE_DOUBLE,h=Zb(i,d);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${s}`),{value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}}const p=r+i.length,w=Ei(o,p,t,n);return{value:h,type:u,comment:w.comment,range:[r,p,w.offset]}}function Jb(e,t){let n="";switch(e[0]){case" ":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]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),Rm(e)}function Qb(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),Rm(e.slice(1,-1)).replace(/''/g,"'")}function Rm(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let s=r[1],i=" ",o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===""?i===`
`?s+=i:i=`
`:(s+=i+r[1],i=" "),o=n.lastIndex;const u=/[ \t]*(.*)/sy;return u.lastIndex=o,r=u.exec(e),s+i+((r==null?void 0:r[1])??"")}function Zb(e,t){let n="";for(let r=1;r<e.length-1;++r){const s=e[r];if(!(s==="\r"&&e[r+1]===`
`))if(s===`
`){const{fold:i,offset:o}=ey(e,r);n+=i,r=o}else if(s==="\\"){let i=e[++r];const o=ty[i];if(o)n+=o;else if(i===`
`)for(i=e[r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="\r"&&e[r+1]===`
`)for(i=e[++r+1];i===" "||i===" ";)i=e[++r+1];else if(i==="x"||i==="u"||i==="U"){const u={x:2,u:4,U:8}[i];n+=ny(e,r+1,u,t),r+=u}else{const u=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${u}`),n+=u}}else if(s===" "||s===" "){const i=r;let o=e[r+1];for(;o===" "||o===" ";)o=e[++r+1];o!==`
`&&!(o==="\r"&&e[r+2]===`
`)&&(n+=r>i?e.slice(i,r+1):s)}else n+=s}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function ey(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
`||r==="\r")&&!(r==="\r"&&e[t+2]!==`
`);)r===`
`&&(n+=`
`),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const ty={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
`,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function ny(e,t,n,r){const s=e.substr(t,n),o=s.length===n&&/^[0-9a-fA-F]+$/.test(s)?parseInt(s,16):NaN;if(isNaN(o)){const u=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${u}`),u}return String.fromCodePoint(o)}function Pm(e,t,n,r){const{value:s,type:i,comment:o,range:u}=t.type==="block-scalar"?Gb(e,t,r):Yb(t,e.options.strict,r),h=n?e.directives.tagName(n.source,w=>r(n,"TAG_RESOLVE_FAILED",w)):null;let d;e.options.stringKeys&&e.atKey?d=e.schema[Un]:h?d=ry(e.schema,s,h,n,r):t.type==="scalar"?d=sy(e,s,t,r):d=e.schema[Un];let p;try{const w=d.resolve(s,v=>r(n??t,"TAG_RESOLVE_FAILED",v),e.options);p=ct(w)?w:new Pe(w)}catch(w){const v=w instanceof Error?w.message:String(w);r(n??t,"TAG_RESOLVE_FAILED",v),p=new Pe(s)}return p.range=u,p.source=s,i&&(p.type=i),h&&(p.tag=h),d.format&&(p.format=d.format),o&&(p.comment=o),p}function ry(e,t,n,r,s){var u;if(n==="!")return e[Un];const i=[];for(const h of e.tags)if(!h.collection&&h.tag===n)if(h.default&&h.test)i.push(h);else return h;for(const h of i)if((u=h.test)!=null&&u.test(t))return h;const o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(s(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[Un])}function sy({atKey:e,directives:t,schema:n},r,s,i){const o=n.tags.find(u=>{var h;return(u.default===!0||e&&u.default==="key")&&((h=u.test)==null?void 0:h.test(r))})||n[Un];if(n.compat){const u=n.compat.find(h=>{var d;return h.default&&((d=h.test)==null?void 0:d.test(r))})??n[Un];if(o.tag!==u.tag){const h=t.tagString(o.tag),d=t.tagString(u.tag),p=`Value may be parsed as either ${h} or ${d}`;i(s,"TAG_RESOLVE_FAILED",p,!0)}}return o}function iy(e,t,n){if(t){n??(n=t.length);for(let r=n-1;r>=0;--r){let s=t[r];switch(s.type){case"space":case"comment":case"newline":e-=s.source.length;continue}for(s=t[++r];(s==null?void 0:s.type)==="space";)e+=s.source.length,s=t[++r];break}}return e}const ay={composeNode:$m,composeEmptyNode:Tc};function $m(e,t,n,r){const s=e.atKey,{spaceBefore:i,comment:o,anchor:u,tag:h}=n;let d,p=!0;switch(t.type){case"alias":d=oy(e,t,r),(u||h)&&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":d=Pm(e,t,h,r),u&&(d.anchor=u.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":d=Wb(ay,e,t,n,r),u&&(d.anchor=u.source.substring(1));break;default:{const w=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",w),d=Tc(e,t.offset,void 0,null,n,r),p=!1}}return u&&d.anchor===""&&r(u,"BAD_ALIAS","Anchor cannot be an empty string"),s&&e.options.stringKeys&&(!ct(d)||typeof d.value!="string"||d.tag&&d.tag!=="tag:yaml.org,2002:str")&&r(h??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),i&&(d.spaceBefore=!0),o&&(t.type==="scalar"&&t.source===""?d.comment=o:d.commentBefore=o),e.options.keepSourceTokens&&p&&(d.srcToken=t),d}function Tc(e,t,n,r,{spaceBefore:s,comment:i,anchor:o,tag:u,end:h},d){const p={type:"scalar",offset:iy(t,n,r),indent:-1,source:""},w=Pm(e,p,u,d);return o&&(w.anchor=o.source.substring(1),w.anchor===""&&d(o,"BAD_ALIAS","Anchor cannot be an empty string")),s&&(w.spaceBefore=!0),i&&(w.comment=i,w.range[2]=h),w}function oy({options:e},{offset:t,source:n,end:r},s){const i=new pc(n.substring(1));i.source===""&&s(t,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&s(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=t+n.length,u=Ei(r,o,e.strict,s);return i.range=[t,o,u.offset],u.comment&&(i.comment=u.comment),i}function ly(e,t,{offset:n,start:r,value:s,end:i},o){const u=Object.assign({_directives:t},e),h=new Ao(void 0,u),d={atKey:!1,atRoot:!0,directives:h.directives,options:h.options,schema:h.schema},p=ks(r,{indicator:"doc-start",next:s??(i==null?void 0:i[0]),offset:n,onError:o,parentIndent:0,startOnNewline:!0});p.found&&(h.directives.docStart=!0,s&&(s.type===
`:`
`)+(o.substring(1)||" "),n=!0,r=!1;break;case"%":((s=e[i+1])==null?void 0:s[0])!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class cy{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,s,i)=>{const o=Vs(n);i?this.warnings.push(new Ub(o,r,s)):this.errors.push(new Js(o,r,s))},this.directives=new Jt({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:s}=Sh(this.prelude);if(r){const i=t.contents;if(n)t.comment=t.comment?`${t.comment}
${r}`:r;else if(s||t.directives.docStart||!i)t.commentBefore=r;else if(vt(i)&&!i.flow&&i.items.length>0){let o=i.items[0];xt(o)&&(o=o.key);const u=o.commentBefore;o.commentBefore=u?`${r}
${u}`:r}else{const o=i.commentBefore;i.commentBefore=o?`${r}
${o}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Sh(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const s of t)yield*this.next(s);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,s)=>{const i=Vs(t);i[0]+=n,this.onError(i,"BAD_DIRECTIVE",r,s)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=ly(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new Js(Vs(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new Js(Vs(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=Ei(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Js(Vs(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),s=new Ao(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),s.range=[0,n,n],this.decorate(s,!1),yield s}}}const Bm="\uFEFF",Fm="",zm="",S0="";function uy(e){switch(e){case Bm:return"byte-order-mark";case Fm:return"doc-mode";case zm:return"flow-error-end";case S0:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
`:case`\r
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function Tn(e){switch(e){case void 0:case" ":case`
`:case"\r":case" ":return!0;default:return!1}}const Ah=new Set("0123456789ABCDEFabcdef"),fy=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),ma=new Set(",[]{}"),hy=new Set(` ,[]{}
\r `),Fl=e=>!e||hy.has(e);class dy{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
`?!0:n==="\r"?this.buffer[t+1]===`
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const s=this.buffer[r+t+1];if(s===`
`||!s&&!this.atEnd)return t+r+1}return n===`
`||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Tn(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Bm&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,r=t.indexOf("#");for(;r!==-1;){const i=t[r-1];if(i===" "||i===" "){n=r-1;break}else r=t.indexOf("#",r+1)}for(;;){const i=t[n-1];if(i===" "||i===" ")n-=1;else break}const s=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Fm,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&Tn(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Tn(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Tn(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Fl),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const s=this.getLine();if(s===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&s[0]!=="#"||r===0&&(s.startsWith("---")||s.startsWith("..."))&&Tn(s[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(s[0]==="]"||s[0]==="}")))return this.flowLevel=0,yield zm,yield*this.parseLineStart();let i=0;for(;s[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),s[i]){case void 0:return"flow";case"#":return yield*this.pushCount(s.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Fl),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||Tn(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*th
`,this.pos);if(s!==-1){for(;s!==-1;){const i=this.continueScalar(s+1);if(i===-1)break;s=r.indexOf(`
`,i)}s!==-1&&(n=s-(r[s-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Tn(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let i=this.pos;r=this.buffer[i];++i)switch(r){case" ":n+=1;break;case`
`:t=i,n=0;break;case"\r":{const o=this.buffer[i+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
`)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const i=this.continueScalar(t+1);if(i===-1)break;t=this.buffer.indexOf(`
`,i)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let s=t+1;for(r=this.buffer[s];r===" ";)r=this.buffer[++s];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
`;)r=this.buffer[++s];t=s-1}else if(!this.blockScalarKeep)do{let i=t-1,o=this.buffer[i];o==="\r"&&(o=this.buffer[--i]);const u=i;for(;o===" ";)o=this.buffer[--i];if(o===`
`&&i>=this.pos&&i+1+n>u)t=i;else break}while(!0);return yield S0,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,s;for(;s=this.buffer[++r];)if(s===":"){const i=this.buffer[r+1];if(Tn(i)||t&&ma.has(i))break;n=r}else if(Tn(s)){let i=this.buffer[r+1];if(s==="\r"&&(i===`
`?(r+=1,s=`
`,i=this.buffer[r+1]):n=r),i==="#"||t&&ma.has(i))break;if(s===`
`){const o=this.continueScalar(r+1);if(o===-1)break;r=Math.max(r,o-2)}}else{if(t&&ma.has(s))break;n=r}return!s&&!this.atEnd?this.setNext("plain-scalar"):(yield S0,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Fl))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Tn(n)||t&&ma.has(n))return t?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 t=this.pos+2,n=this.buffer[t];for(;!Tn(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(fy.has(n))n=this.buffer[++t];else if(n==="%"&&Ah.has(this.buffer[t+1])&&Ah.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const s=n-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=n),s}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class my{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const i=n+r>>1;this.lineStarts[i]<t?n=i+1:r=i}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const s=this.lineStarts[n-1];return{line:n,col:t-s+1}}}}function dr(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Eh(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function qm(e){switch(e==null?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function pa(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function as(e){var n;if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=e[++t])==null?void 0:n.type)==="space";);return e.splice(t,e.length)}function Th(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!dr(t.start,"explicit-key-ind")&&!dr(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,qm(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)}class py{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new dy,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=uy(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(t==null?void 0:t.type)!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const s="end"in n.value?n.value.end:void 0,i=Array.isArray(s)?s[s.length-1]:void 0;(i==null?void 0:i.type)==="comment"?s==null||s.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const s=t.items[t.items.length-2],i=(r=s==null?void 0:s.value)==null?void 0:r.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const s=!this.onKeyLine&&this.indent===t.indent,i=s&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let o=[];if(i&&n.sep&&!n.value){const u=[];for(let h=0;h<n.sep.length;++h){const d=n.sep[h];switch(d.type){case"newline":u.push(h);break;case"space":break;case"comment":d.indent>t.indent&&(u.length=0);break;default:u.length=0}}u.length>=2&&(o=n.sep.splice(u[1]))}switch(this.type){case"anchor":case"tag":i||n.value?(o.push(this.sourceToken),t.items.push({start:o}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):i||n.value?(o.push(this.sourceToken),t.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(dr(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(qm(n.key)&&!dr(n.sep,"newline")){const u=as(n.start),h=n.key,d=n.sep;d.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:h,sep:d}]})}else o.length>0?n.sep=n.sep.concat(o,this.sourceToken):n.sep.push(this.sourceToken);else if(dr(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const u=as(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||i?t.items.push({start:o,key:null,sep:[this.sourceToken]}):dr(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const u=this.flowScalar(this.type);i||n.value?(t.items.push({start:o,key:u,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(u):(Object.assign(n,{key:u,sep:[]}),this.onKeyLine=!0);return}default:{const u=this.startBlockValue(t);if(u){if(u.type==="block-seq"){if(!n.explicitKey&&n.sep&&!dr(n.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else s&&t.items.push({start:o});this.stack.push(u);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const s="end"in n.value?n.value.end:void 0,i=Array.isArray(s)?s[s.length-1]:void 0;(i==null?void 0:i.type)==="comment"?s==null||s.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const s=t.items[t.items.length-2],i=(r=s==null?void 0:s.value)==null?void 0:r.end;if(Array.i
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=pa(t),r=as(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=pa(t),r=as(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function gy(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new my||null,prettyErrors:t}}function by(e,t={}){const{lineCounter:n,prettyErrors:r}=gy(t),s=new py(n==null?void 0:n.addNewLine),i=new cy(t);let o=null;for(const u of i.compose(s.parse(e),!0,e.length))if(!o)o=u;else if(o.options.logLevel!=="silent"){o.errors.push(new Js(u.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(o.errors.forEach(xh(e,n)),o.warnings.forEach(xh(e,n))),o}function yy(e,t,n){let r;const s=by(e,n);if(!s)return null;if(s.warnings.forEach(i=>mm(s.options.logLevel,i)),s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:r},n))}var Um={},Hm={exports:{}};(function(e,t){(function(r,s){e.exports=s()})(typeof self<"u"?self:Ql,function(){return function(){var n={};(function(){n.d=function(l,a){for(var c in a)n.o(a,c)&&!n.o(l,c)&&Object.defineProperty(l,c,{enumerable:!0,get:a[c]})}})(),function(){n.o=function(l,a){return Object.prototype.hasOwnProperty.call(l,a)}}();var r={};n.d(r,{default:function(){return eg}});class s{constructor(a,c){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;let f="KaTeX parse error: "+a,m,y;const _=c&&c.loc;if(_&&_.start<=_.end){const C=_.lexer.input;m=_.start,y=_.end,m===C.length?f+=" at end of input: ":f+=" at position "+(m+1)+": ";const R=C.slice(m,y).replace(/[^]/g,"$&̲");let q;m>15?q="…"+C.slice(m-15,m):q=C.slice(0,m);let H;y+15<C.length?H=C.slice(y,y+15)+"…":H=C.slice(y),f+=q+R+H}const E=new Error(f);return E.name="ParseError",E.__proto__=s.prototype,E.position=m,m!=null&&y!=null&&(E.length=y-m),E.rawMessage=a,E}}s.prototype.__proto__=Error.prototype;var i=s;const o=/([A-Z])/g,u=l=>l.replace(o,"-$1").toLowerCase(),h={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},d=/[&><"']/g,p=l=>String(l).replace(d,a=>h[a]),w=l=>l.type==="ordgroup"||l.type==="color"?l.body.length===1?w(l.body[0]):l:l.type==="font"?w(l.body):l,v=new Set(["mathord","textord","atom"]),x=l=>v.has(w(l).type),k=l=>{const a=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(l);return a?a[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(a[1])?null:a[1].toLowerCase():"_relative"},A={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its o
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+l/2.075+" -"+l+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+l)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+l)+" "+a+"h400000v"+(40+l)+"h-400000z"},et=function(l,a){return"M263,"+(601+l+a)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+l/2.084+" -"+l+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+l)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+l)+" "+a+"h400000v"+(40+l)+"h-400000z"},Et=function(l,a){return"M983 "+(10+l+a)+`
l`+l/3.13+" -"+l+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+l)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+l)+" "+a+"h400000v"+(40+l)+"h-400000z"},Lt=function(l,a){return"M424,"+(2398+l+a)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+l/4.223+" -"+l+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+l)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+l)+" "+a+`
h400000v`+(40+l)+"h-400000z"},qt=function(l,a){return"M473,"+(2713+l+a)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+l/5.298+" -"+l+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+l)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+l)+" "+a+"h400000v"+(40+l)+"H1017.7z"},Sn=function(l){const a=l/2;return"M400000 "+l+" H0 L"+a+" 0 l65 45 L145 "+(l-80)+" H400000z"},ir=function(l,a,c){const f=c-54-a-l;return"M702 "+(l+a)+"H400000"+(40+l)+`
H742v`+f+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+a+"H400000v"+(40+l)+"H742z"},Er=function(l,a,c){a=1e3*a;let f="";switch(l){case"sqrtMain":f=Ee(a,ce);break;case"sqrtSize1":f=et(a,ce);break;case"sqrtSize2":f=Et(a,ce);break;case"sqrtSize3":f=Lt(a,ce);break;case"sqrtSize4":f=qt(a,ce);break;case"sqrtTall":f=ir(a,ce,c)}return f},Tr=function(l,a){switch(l){case"⎜":return"M291 0 H417 V"+a+" H291z M291 0 H417 V"+a+" H291z";case"":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z";case"∥":return"M145 0 H188 V"+a+" H145z M145 0 H188 V"+a+" H145z"+("M367 0 H410 V"+a+" H367z M367 0 H410 V"+a+" H367z");case"⎟":return"M457 0 H583 V"+a+" H457z M457 0 H583 V"+a+" H457z";case"⎢":return"M319 0 H403 V"+a+" H319z M319 0 H403 V"+a+" H319z";case"⎥":return"M263 0 H347 V"+a+" H263z M263 0 H347 V"+a+" H263z";case"⎪":return"M384 0 H504 V"+a+" H384z M384 0 H504 V"+a+" H384z";case"⏐":return"M312 0 H355 V"+a+" H312z M312 0 H355 V"+a+" H312z";case"‖":return"M257 0 H300 V"+a+" H257z M257 0 H300 V"+a+" H257z"+("M478 0 H521 V"+a+" H478z M478 0 H521 V"+a+" H478z");default:return""}},ar={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},le=function(l,a){switch(l){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v1759 h347 v-84
H403z M403 1759 V0 H319 V1759 v`+a+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v`+a+" v1759 h84z";case"vert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+a+" v585 h43z";case"doublevert":return"M145 15 v585 v"+a+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+a+` v585 h43z
M367 15 v585 v`+a+` v585 c2.667,10,9.667,15,21,15
c10,0,16.667,-5,20,-15 v-585 v`+-a+` v-585 c-2.667,-10,-9.667,-15,-21,-15
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+a+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+a+` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v`+a+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+a+` v1799 H0 v-84 H319z
MM319 602 V0 H403 V602 v`+a+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+a+` v602 h84z
M403 1759 V0 H319 V1759 v`+a+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+a+` v602 h84z
M347 1759 V0 h-84 V1759 v`+a+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
-36,557 l0,`+(a+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
l0,-`+(a+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(a+9)+`
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
l0,-`+(a+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};var $e={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778
`+de+" children.");for(let Fe=0;Fe<de;Fe++){const Ve=new or(q[Fe]),Ze=new jn([Ve],{width:"400em",height:oe(Z),viewBox:"0 0 "+_+" "+K,preserveAspectRatio:He[Fe]+" slice"}),at=lr([ye[Fe]],[Ze],a);if(de===1)return{span:at,minWidth:H,height:Z};at.style.height=oe(Z),C.push(at)}return{span:se(["stretchy"],C,a),minWidth:H,height:Z}}}const{span:f,minWidth:m,height:y}=c();return f.height=y,f.style.height=oe(y),m>0&&(f.style.minWidth=oe(m)),f},g4=function(l,a,c,f,m){let y;const _=l.height+l.depth+c+f;if(/fbox|color|angl/.test(a)){if(y=se(["stretchy",a],[],m),a==="fbox"){const E=m.color&&m.getColor();E&&(y.style.borderColor=E)}}else{const E=[];/^[bx]cancel$/.test(a)&&E.push(new $o({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(a)&&E.push(new $o({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));const C=new jn(E,{width:"100%",height:oe(_)});y=lr([],[C],m)}return y.height=_,y.style.height=oe(_),y};function Be(l,a){if(!l||l.type!==a)throw new Error("Expected node of type "+a+", but got "+(l?"node of type "+l.type:String(l)));return l}function Xo(l){const a=Ki(l);if(!a)throw new Error("Expected node of symbol group type, but got "+(l?"node of type "+l.type:String(l)));return a}function Ki(l){return l&&(l.type==="atom"||Jp.hasOwnProperty(l.type))?l:null}const Yo=(l,a)=>{let c,f,m;l&&l.type==="supsub"?(f=Be(l.base,"accent"),c=f.base,l.base=c,m=Xp(je(l,a)),l.base=f):(f=Be(l,"accent"),c=f.base);const y=je(c,a.havingCrampedStyle()),_=f.isShifty&&x(c);let E=0;if(_){const K=w(c),Z=je(K,a.havingCrampedStyle());E=jc(Z).skew}const C=f.label==="\\c";let R=C?y.height+y.depth:Math.min(y.height,a.fontMetrics().xHeight),q;if(f.isStretchy)q=Gi(f,a),q=Xe({positionType:"firstBaseline",children:[{type:"elem",elem:y},{type:"elem",elem:q,wrapperClasses:["svg-align"],wrapperStyle:E>0?{width:"calc(100% - "+oe(2*E)+")",marginLeft:oe(2*E)}:void 0}]});else{let K,Z;f.label==="\\vec"?(K=Zc("vec",a),Z=Qc.vec[1]):(K=zi({mode:f.mode,text:f.label},a,"textord"),K=jc(K),K.italic=0,Z=K.width,C&&(R+=K.depth)),q=se(["accent-body"],[K]);const de=f.label==="\\textcircled";de&&(q.classes.push("accent-full"),R=y.height);let ye=E;de||(ye-=Z/2),q.style.left=oe(ye),f.label==="\\textcircled"&&(q.style.top=".2em"),q=Xe({positionType:"firstBaseline",children:[{type:"elem",elem:y},{type:"kern",size:-R},{type:"elem",elem:q}]})}const H=se(["mord","accent"],[q],a);return m?(m.children[0]=H,m.height=Math.max(H.height,m.height),m.classes[0]="mord",m):H},ou=(l,a)=>{const c=l.isStretchy?Wi(l.label):new ae("mo",[gn(l.label,l.mode)]),f=new ae("mover",[it(l.base,a),c]);return f.setAttribute("accent","true"),f},b4=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(l=>"\\"+l).join("|"));fe({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(l,a)=>{const c=Vi(a[0]),f=!b4.test(l.funcName),m=!f||l.funcName==="\\widehat"||l.funcName==="\\widetilde"||l.funcName==="\\widecheck";return{type:"accent",mode:l.parser.mode,label:l.funcName,isStretchy:f,isShifty:m,base:c}},htmlBuilder:Yo,mathmlBuilder:ou}),fe({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(l,a)=>{const c=a[0];let f=l.parser.mode;return f==="math"&&(l.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+l.funcName+" works only in text mode"),f="text"),{type:"accent",mode:f,label:l.funcName,isStretchy:!1,isShifty:!0,base:c}},htmlBuilder:Yo,mathmlBuilder:ou}),fe({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(l,a)=>{let{parser:c,funcName:f}=l;
]`,q4="\\\\[a-zA-Z@]+",U4="\\\\[^\uD800-\uDFFF]",H4="("+q4+")"+Ju+"*",V4=`\\\\(
|[ \r ]+
?)[ \r ]*`,ml="[̀-ͯ]",j4=new RegExp(ml+"+$"),W4="("+Ju+"+)|"+(V4+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(ml+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ml+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+H4)+("|"+U4+")");class Qu{constructor(a,c){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=a,this.settings=c,this.tokenRegex=new RegExp(W4,"g"),this.catcodes={"%":14,"~":13}}setCatcode(a,c){this.catcodes[a]=c}lex(){const a=this.input,c=this.tokenRegex.lastIndex;if(c===a.length)return new un("EOF",new tn(this,c,c));const f=this.tokenRegex.exec(a);if(f===null||f.index!==c)throw new i("Unexpected character: '"+a[c]+"'",new un(a[c],new tn(this,c,c+1)));const m=f[6]||f[3]||(f[2]?"\\ ":" ");if(this.catcodes[m]===14){const y=a.indexOf(`
`,this.tokenRegex.lastIndex);return y===-1?(this.tokenRegex.lastIndex=a.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=y+1,this.lex()}return new un(m,new tn(this,c,this.tokenRegex.lastIndex))}}class G4{constructor(a,c){a===void 0&&(a={}),c===void 0&&(c={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=c,this.builtins=a,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new i("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");const a=this.undefStack.pop();for(const c in a)a.hasOwnProperty(c)&&(a[c]==null?delete this.current[c]:this.current[c]=a[c])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(a){return this.current.hasOwnProperty(a)||this.builtins.hasOwnProperty(a)}get(a){return this.current.hasOwnProperty(a)?this.current[a]:this.builtins[a]}set(a,c,f){if(f===void 0&&(f=!1),f){for(let m=0;m<this.undefStack.length;m++)delete this.undefStack[m][a];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][a]=c)}else{const m=this.undefStack[this.undefStack.length-1];m&&!m.hasOwnProperty(a)&&(m[a]=this.current[a])}c==null?delete this.current[a]:this.current[a]=c}}var K4=Tu;T("\\noexpand",function(l){const a=l.popToken();return l.isExpandable(a.text)&&(a.noexpand=!0,a.treatAsRelax=!0),{tokens:[a],numArgs:0}}),T("\\expandafter",function(l){const a=l.popToken();return l.expandOnce(!0),{tokens:[a],numArgs:0}}),T("\\@firstoftwo",function(l){return{tokens:l.consumeArgs(2)[0],numArgs:0}}),T("\\@secondoftwo",function(l){return{tokens:l.consumeArgs(2)[1],numArgs:0}}),T("\\@ifnextchar",function(l){const a=l.consumeArgs(3);l.consumeSpaces();const c=l.future();return a[0].length===1&&a[0][0].text===c.text?{tokens:a[1],numArgs:0}:{tokens:a[2],numArgs:0}}),T("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),T("\\TextOrMath",function(l){const a=l.consumeArgs(2);return l.mode==="text"?{tokens:a[0],numArgs:0}:{tokens:a[1],numArgs:0}});const Zu={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};T("\\char",function(l){let a=l.popToken(),c,f="";if(a.text==="'")c=8,a=l.popToken();else if(a.text==='"')c=16,a=l.popToken();else if(a.text==="`")if(a=l.popToken(),a.text[0]==="\\")f=a.text.charCodeAt(1);else{if(a.text==="EOF")throw new i("\\char` missing argument");f=a.text.charCodeAt(0)}else c=10;if(c){if(f=Zu[a.text],f==null||f>=c)throw new i("Invalid base-"+c+" digit "+a.text);let m;for(;(m=Zu[l.future().text])!=null&&m<c;)f*=c,f+=m,l.popToken()}return"\\@char{"+f+"}"});const pl=(l,a,c,f)=>{let m=l.consumeArg().tokens;if(m.length!==1)throw new i("\\newcommand's first argument must be a macro name");const y=m[0].text,_=l.isDefined(y);if(_&&!a)throw new i("\\newcommand{"+y+"} attempting to redefine "+(y+"; use \\renewcommand"));if(!_&&!c)throw new i("\\renewcommand{"+y+"} when command "+y+" does not yet exist; use \\newcommand");let E=0;if(m=l.consumeArg().tokens,m.length===1&&m[0].text==="["){let C="",R=l.expandNextToken();for(;R.text!=="]"&&R.text!=="EOF";)C+=R.text,R=l.expandNextToken();if(!C.match(/^\s*[0-9]+\s*$/))throw new i("Invalid number of arguments: "+C);E=parseInt(C),m=l.consumeArg().tokens}return _&&f||l.macros.set(y,{tokens:m,numArgs:E}),""};T("\\newcommand",l=>pl(l,!1,!0,!1)),T("\\renewcommand",l=>pl(l,!0,!1,!1)),T("\\providecommand",l=>pl(l,!0,!0,!0)),T("\\message",l=>{const a=l.consumeArgs(1)[0];return console.log(a.reverse().map(c=>c.text).join("")),""}),T("\\errmessage",l=>{const a=l.consumeArgs(1)[0];return console.error(a.reverse().map(c=>c.text).join("")),""}),T("\\show",l=>{const a=l.popToken(),c=a.text;return console.log(a,l.macros.get(c),fr[c],dt.math[c],dt.text[c]),""}),T("\\bgroup","{"),T("\\egroup","}"),T("~","\\nobreakspace"),T("\\lq","`"),T("\\rq","'"),T("\\aa","\\r a"),T("\\AA","\\r A"),T("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),T("\\copyright","\\Text
please report what input caused this bug`);return y=y.slice(1,-1),{type:"verb",mode:"text",body:y,star:_}}af.hasOwnProperty(c[0])&&!dt[this.mode][c[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+c[0]+'" used in math mode',a),c=af[c[0]]+c.slice(1));const f=j4.exec(c);f&&(c=c.substring(0,f.index),c==="i"?c="ı":c==="j"&&(c="ȷ"));let m;if(dt[this.mode][c]){this.settings.strict&&this.mode==="math"&&Bo.includes(c)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+c[0]+'" used in math mode',a);const y=dt[this.mode][c].group,_=tn.range(a);let E;if(Yp.hasOwnProperty(y)){const C=y;E={type:"atom",mode:this.mode,family:C,loc:_,text:c}}else E={type:y,mode:this.mode,loc:_,text:c};m=E}else if(c.charCodeAt(0)>=128)this.settings.strict&&(U(c.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+c[0]+'" used in math mode',a):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+c[0]+'"'+(" ("+c.charCodeAt(0)+")"),a)),m={type:"textord",mode:"text",loc:tn.range(a),text:c};else return null;if(this.consume(),f)for(let y=0;y<f[0].length;y++){const _=f[0][y];if(!bl[_])throw new i("Unknown accent ' "+_+"'",a);const E=bl[_][this.mode]||bl[_].text;if(!E)throw new i("Accent "+_+" unsupported in "+this.mode+" mode",a);m={type:"accent",mode:this.mode,loc:tn.range(a),label:E,isStretchy:!1,isShifty:!0,base:m}}return m}}ta.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var yl=function(l,a){if(!(typeof l=="string"||l instanceof String))throw new TypeError("KaTeX can only parse string typed expression");const c=new ta(l,a);delete c.gullet.macros.current["\\df@tag"];let f=c.parse();if(delete c.gullet.macros.current["\\current@color"],delete c.gullet.macros.current["\\color"],c.gullet.macros.get("\\df@tag")){if(!a.displayMode)throw new i("\\tag works only in display equations");f=[{type:"tag",mode:"text",body:f,tag:c.subparse([new un("\\df@tag")])}]}return f};let of=function(l,a,c){a.textContent="";const f=wl(l,c).toNode();a.appendChild(f)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),of=function(){throw new i("KaTeX doesn't work in quirks mode.")});const J4=function(l,a){return wl(l,a).toMarkup()},Q4=function(l,a){const c=new I(a);return yl(l,c)},lf=function(l,a,c){if(c.throwOnError||!(l instanceof i))throw l;const f=se(["katex-error"],[new pn(a)]);return f.setAttribute("title",l.toString()),f.setAttribute("style","color:"+c.errorColor),f},wl=function(l,a){const c=new I(a);try{const f=yl(l,c);return f4(f,l,c)}catch(f){return lf(f,l,c)}};var Z4={version:"0.16.33",render:of,renderToString:J4,ParseError:i,SETTINGS_SCHEMA:A,__parse:Q4,__renderToDomTree:wl,__renderToHTMLTree:function(l,a){const c=new I(a);try{const f=yl(l,c);return h4(f,l,c)}catch(f){return lf(f,l,c)}},__setFontMetrics:Nr,__defineSymbol:g,__defineFunction:fe,__defineMacro:T,__domTree:{Span:Ps,Anchor:Po,SymbolNode:pn,SvgNode:jn,PathNode:or,LineNode:$o}},eg=Z4;return r=r.default,r}()})})(Hm);var wy=Hm.exports,vy=Ql&&Ql.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Um,"__esModule",{value:!0});const _y=vy(wy);function Nh(e,t){const n=e.src[t-1],r=e.src[t],s=e.src[t+1];if(r!=="$")return{can_open:!1,can_close:!1};let i=!1,o=!1;return n!=="$"&&n!=="\\"&&(n===void 0||Ch(n)||!Ih(n))&&(i=!0),s!=="$"&&(s==null||Ch(s)||!Ih(s))&&(o=!0),{can_open:i,can_close:o}}function Ch(e){return/^\s$/u.test(e)}function Ih(e){return/^[\w\d]$/u.test(e)}function Oh(e,t){const n=e.src[t-1],r=e.src[t],s=e.src[t+1],i=e.src[t+2];return r==="$"&&n!=="$"&&n!=="\\"&&s==="$"&&i!=="$"?{can_open:!0,can_close:!0}:{can_open:!1,can_close:!1}}function xy(e,t){if(e.src[e.pos]!=="$")return!1;const n=e.tokens.at(-1);if((n==null?void 0:n.type)==="html_inline"&&/^<\w+.+[^/]>$/.test(n.content))return!1;let
`:"")+e.getLines(t+1,p,e.tShift[t],!0)+(d&&d.trim()?d:""),v.map=[t,e.line],v.markup="$$",!0}function Sy(e,t,n,r){const s=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(!e.src.slice(s,i).match(/^\s*\\begin\s*\{([^{}]+)\}/))return!1;if(t>0){const x=e.bMarks[t-1]+e.tShift[t-1],k=e.eMarks[t-1],A=e.src.slice(x,k);if(!/^\s*$/.test(A))return!1}if(r)return!0;const h=[];let d=t,p,w=!1;e:for(;!w&&!(d>=n);d++){const x=e.bMarks[d]+e.tShift[d],k=e.eMarks[d];if(x<k&&e.tShift[d]<e.blkIndent)break;const A=e.src.slice(x,k);for(const N of A.matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))if(N[1]==="\\begin")h.push(N[2].trim());else if(N[1]==="\\end"&&(h.pop(),!h.length)){p=e.src.slice(x,k),w=!0;break e}}e.line=d+1;const v=e.push("math_block","math",0);return v.block=!0,v.content=(e.getLines(t,d,e.tShift[t],!0)+(p??"")).trim(),v.map=[t,e.line],v.markup="$$",!0}function Ay(e,t){var n,r,s,i,o;if(e.src.slice(e.pos,e.pos+2)!=="$$")return!1;if(i=Oh(e,e.pos),!i.can_open)return t||(e.pending+="$$"),e.pos+=2,!0;for(n=e.pos+2,r=n;(r=e.src.indexOf("$$",r))!==-1;){for(o=r-1;e.src[o]==="\\";)o-=1;if((r-o)%2==1)break;r+=2}return r===-1?(t||(e.pending+="$$"),e.pos=n,!0):r-n===0?(t||(e.pending+="$$$$"),e.pos=n+2,!0):(i=Oh(e,r),i.can_close?(t||(s=e.push("math_block","math",0),s.block=!0,s.markup="$$",s.content=e.src.slice(n,r)),e.pos=r+2,!0):(t||(e.pending+="$$"),e.pos=n,!0))}function Ey(e,t){const n=e.src.slice(e.pos);if(!/^\n\\begin/.test(n))return!1;if(e.pos+=1,t)return!0;const r=n.split(/\n/g).slice(1);let s;const i=[];e:for(var o=0;o<r.length;++o){const d=r[o];for(const p of d.matchAll(/(\\begin|\\end)\s*\{([^{}]+)\}/g))if(p[1]==="\\begin")i.push(p[2].trim());else if(p[1]==="\\end"&&(i.pop(),!i.length)){s=o;break e}}if(typeof s>"u")return!1;const u=r.slice(0,s+1).reduce((d,p)=>d+p.length,0)+s+1,h=e.push("math_inline_bare_block","math",0);return h.block=!0,h.markup="$$",h.content=n.slice(1,u),e.pos=e.pos+u,!0}function Mh(e,t,n,r){const s=e.tokens;for(let i=s.length-1;i>=0;i--){const o=s[i],u=[];if(o.type!=="html_block")continue;const h=o.content;for(const d of h.matchAll(r)){if(!d.groups)continue;const p=d.groups.html_before_math,w=d.groups.math,v=d.groups.html_after_math;p&&u.push({...o,type:"html_block",map:null,content:p}),w&&u.push({...o,type:t,map:null,content:w,markup:n,block:!0,tag:"math"}),v&&u.push({...o,type:"html_block",map:null,content:v})}u.length>0&&s.splice(i,1,...u)}return!0}function ga(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function Ty(e,t){const n=(t==null?void 0:t.katex)??_y.default,r=t==null?void 0:t.enableBareBlocks,s=t==null?void 0:t.enableMathBlockInHtml,i=t==null?void 0:t.enableMathInlineInHtml,o=t==null?void 0:t.enableFencedBlocks;e.inline.ruler.after("escape","math_inline",xy),e.inline.ruler.after("escape","math_inline_block",Ay),r&&e.inline.ruler.before("text","math_inline_bare_block",Ey),e.block.ruler.after("blockquote","math_block",(x,k,A,N)=>r&&Sy(x,k,A,N)?!0:ky(x,k,A,N),{alt:["paragraph","reference","blockquote","list"]});const u=/(?<html_before_math>[\s\S]*?)\$\$(?<math>[\s\S]+?)\$\$(?<html_after_math>(?:(?!\$\$[\s\S]+?\$\$)[\s\S])*)/gm,h=/(?<html_before_math>[\s\S]*?)\$(?<math>.*?)\$(?<html_after_math>(?:(?!\$.*?\$)[\s\S])*)/gm;s&&e.core.ruler.push("math_block_in_html_block",x=>Mh(x,"math_block","$$",u)),i&&e.core.ruler.push("math_inline_in_html_block",x=>Mh(x,"math_inline","$",h));const d=x=>{const k=/\\begin\{(align|equation|gather|cd|alignat)\}/ig.test(x);try{return n.renderToString(x,{...t,displayMode:k})}catch(A){return t!=null&&t.throwOnError&&console.log(A),`<span class="katex-error" title="${ga(x)}">${ga(A+"")}</span>`}},p=(x,k)=>{const A=x[k].content,I=A.length>2&&A[0]==="`"&&A[A.length-1]==="`"?A.slice(1,-1):A;return d(I)},w=x=>{try{return`<p class="katex-block">${n.renderToString(x,{...t,displayMode:!0})}</p>`}catch(k){return t!=null&&t.throwOnError&&console.log(k),`<p class="katex-block katex-error" title="${ga(x)}">${ga(k+"")}</p>`}},v=(x,k)=>w(x[k].content)+`
`;if(e.renderer.rules.math_inline=p,e.renderer.rules.math_inline_block=v,e.renderer.rules.math_inline_bare_block=v,e.renderer.rules.math_block=v,o){const x="math",k=e.renderer.rules.fence;e.renderer.rules.fence=function(A,N,I,V,D){const M=A[N];return M.info.trim().toLowerCase()===x&&o?w(M.content)+`
`:(k==null?void 0:k.call(this,A,N,I,V,D))||""}}}var Ny=Um.default=Ty;function Cy(){const e=Cd({html:!0,breaks:!0});return e.use(tb).use(nb).use(ib).use(lb),e}function Iy(e){return{transformer:e,parser:new Ks,beforeParse:new Ks,afterParse:new Ks,retransform:new Ks}}const Oy=`<svg width="16" height="16" viewBox="0 -3 24 24"><path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"/></svg>
`,My=`<svg width="16" height="16" viewBox="0 -3 24 24"><path fill-rule="evenodd" d="M6 5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1zM3 6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-5z" clip-rule="evenodd"/></svg>
`,Ly="checkbox",Lh={" ":My.trim(),x:Oy.trim()},Dy={name:Ly,transform(e){return e.parser.tap(t=>{t.core.ruler.before("inline","checkbox",n=>{for(let r=2;r<n.tokens.length;r+=1){const s=n.tokens[r];if(s.type==="inline"&&s.content){const i=n.tokens[r-1].type,o=n.tokens[r-2].type;(i==="heading_open"||i==="paragraph_open"&&o==="list_item_open")&&(s.content=s.content.replace(/^\[(.)\] /,(u,h)=>Lh[h]?`${Lh[h]} `:u))}}return!1})}),{}}},Ry="frontmatter",Py={name:Ry,transform(e){return e.beforeParse.tap((t,n)=>{var r;const{content:s}=n;if(!/^---\r?\n/.test(s))return;const i=/\n---\r?\n/.exec(s);if(!i)return;const o=s.slice(4,i.index).trimEnd();let u;try{u=yy(o.replace(/\r?\n|\r/g,`
`)),u!=null&&u.markmap&&(u.markmap=$y(u.markmap))}catch{return}n.frontmatter=u,n.parserOptions={...n.parserOptions,...(r=u==null?void 0:u.markmap)==null?void 0:r.htmlParser},n.frontmatterInfo={lines:s.slice(0,i.index).split(`
`).length+1,offset:i.index+i[0].length}}),{}}};function $y(e){if(e)return["color","extraJs","extraCss"].forEach(t=>{e[t]!=null&&(e[t]=By(e[t]))}),["duration","maxWidth","initialExpandLevel"].forEach(t=>{e[t]!=null&&(e[t]=Fy(e[t]))}),e}function By(e){let t;return typeof e=="string"?t=[e]:Array.isArray(e)&&(t=e.filter(n=>n&&typeof n=="string")),t!=null&&t.length?t:void 0}function Fy(e){if(!isNaN(+e))return+e}function Nc(e,t){return t.type==="script"&&t.data.src?{...t,data:{...t.data,src:e.getFullUrl(t.data.src)}}:t}function zy(e,t){return t.type==="stylesheet"&&t.data.href?{...t,data:{...t.data,href:e.getFullUrl(t.data.href)}}:t}const Dh="hljs",qy=["@highlightjs/cdn-assets@11.11.1/highlight.min.js"].map(e=>J0(e)),Uy=["@highlightjs/cdn-assets@11.11.1/styles/default.min.css"].map(e=>d1(e)),Hy={versions:{hljs:"11.11.1"},preloadScripts:qy,styles:Uy},A0={name:Dh,config:Hy,transform(e){var t,n,r;let s;const i=((n=(t=A0.config)==null?void 0:t.preloadScripts)==null?void 0:n.map(h=>Nc(e.transformer.urlBuilder,h)))||[],o=()=>(s||(s=Y0(i)),s);let u=us;return e.parser.tap(h=>{h.set({highlight:(d,p)=>{u();const{hljs:w}=window;return w?w.highlightAuto(d,p?[p]:void 0).value:(o().then(()=>{e.retransform.call()}),d)}})}),e.beforeParse.tap((h,d)=>{u=()=>{d.features[Dh]=!0}}),{styles:(r=A0.config)==null?void 0:r.styles}}};function Vy(e,t,n){return e.map(r=>{if(typeof r=="string"&&!r.includes("://")){r.startsWith("npm:")||(r=`npm:${r}`);const s=4+t.length;r.startsWith(`npm:${t}/`)&&(r=`${r.slice(0,s)}@${n}${r.slice(s)}`)}return r})}var jy=["katex@0.16.18/dist/fonts/KaTeX_AMS-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Caligraphic-Bold.woff2","katex@0.16.18/dist/fonts/KaTeX_Caligraphic-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Fraktur-Bold.woff2","katex@0.16.18/dist/fonts/KaTeX_Fraktur-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Main-Bold.woff2","katex@0.16.18/dist/fonts/KaTeX_Main-BoldItalic.woff2","katex@0.16.18/dist/fonts/KaTeX_Main-Italic.woff2","katex@0.16.18/dist/fonts/KaTeX_Main-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Math-BoldItalic.woff2","katex@0.16.18/dist/fonts/KaTeX_Math-Italic.woff2","katex@0.16.18/dist/fonts/KaTeX_SansSerif-Bold.woff2","katex@0.16.18/dist/fonts/KaTeX_SansSerif-Italic.woff2","katex@0.16.18/dist/fonts/KaTeX_SansSerif-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Script-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Size1-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Size2-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Size3-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Size4-Regular.woff2","katex@0.16.18/dist/fonts/KaTeX_Typewriter-Regular.woff2"];const zl="katex",Wy=["katex@0.16.18/dist/katex.min.js"].map(e=>J0(e)),Vm=J0("webfontloader@1.6.28/webfontloader.js");Vm.data.defer=!0;const Gy=["katex@0.16.18/dist/katex.min.css"].map(e=>d1(e)),Ky={versions:{katex:"0.16.18",webfontloader:"1.6.28"},preloadScripts:Wy,scripts:[{type:"iife",data:{fn:e=>{window.WebFontConfig={custom:{families:["KaTeX_AMS","KaTeX_Caligraphic:n4,n7","KaTeX_Fraktur:n4,n7","KaTeX_Main:n4,n7,i4,i7","KaTeX_Math:i4,i7","KaTeX_Script","KaTeX_SansSerif:n4,n7,i4","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4","KaTeX_Typewriter"]},active:()=>{e().refreshHook.call()}}},getParams({getMarkmap:e}){return[e]}}},Vm],styles:Gy,resources:jy};function Xy(e){return e.default||e}const Yy=Xy(Ny),Qs={name:zl,config:Ky,transform(e){var t,n,r,s;let i;const o=((n=(t=Qs.config)==null?void 0:t.preloadScripts)==null?void 0:n.map(p=>Nc(e.transformer.urlBuilder,p)))||[],u=()=>(i||(i=Y0(o)),i),h=(p,w)=>{const{katex:v}=window;return v?v.renderToString(p,{displayMode:w,throwOnError:!1}):(u().then(()=>{e.retransform.call()}),p)};let d=us;return e.parser.tap(p=>{p.use(Yy),["math_block","math_inline"].forEach(w=>{const v=(x,k)=>(d(),h(x[k].content,!!x[k].block));p.renderer.rules[w]=v})}),e.beforeParse.tap((p,w)=>{d=()=>{w.features[zl]=!0}}),e.afterParse.tap((p,w)=>{var v;const x=(v=w.frontmatter)==null?void 0:v.markmap;x&&["extraJs","extraCss"].forEach(k=>{var A,N;const I=x[k];I&&(x[k]=Vy(I,zl,((N=(A=Qs.config)==null?void 0:A.versions)==null?void 0:
`)(u)}}),r}_p.version=_x;const xp=(e,t=0)=>(e.y=t,(e.children||[]).reduce((n,r)=>{const[s,i]=n;xp(r,e.y+e.ySize);const o=(s===0?r.lExt:r.rExt).bottom;s!==0&&Sx(e,s,i);const u=Mx(o,s,i);return[s+1,u]},[0,null]),kx(e),Ox(e),e),kp=(e,t,n)=>{typeof t>"u"&&(t=-e.relX-e.prelim,n=0);const r=t+e.relX;return e.relX=r+e.prelim-n,e.prelim=0,e.x=n+e.relX,(e.children||[]).forEach(s=>kp(s,r,e.x)),e},kx=e=>{(e.children||[]).reduce((t,n)=>{const[r,s]=t,i=r+n.shift,o=s+i+n.change;return n.relX+=o,[i,o]},[0,0])},Sx=(e,t,n)=>{const r=e.children[t-1],s=e.children[t];let i=r,o=r.relX,u=s,h=s.relX,d=!0;for(;i&&u;){i.bottom>n.lowY&&(n=n.next);const p=o+i.prelim-(h+u.prelim)+i.xSize/2+u.xSize/2+i.spacing(u);(p>0||p<0&&d)&&(h+=p,Ax(s,p),Ex(e,t,n.index,p)),d=!1;const w=i.bottom,v=u.bottom;w<=v&&(i=Nx(i),i&&(o+=i.relX)),w>=v&&(u=Tx(u),u&&(h+=u.relX))}!i&&u?Cx(e,t,u,h):i&&!u&&Ix(e,t,i,o)},Ax=(e,t)=>{e.relX+=t,e.lExtRelX+=t,e.rExtRelX+=t},Ex=(e,t,n,r)=>{const s=e.children[t],i=t-n;if(i>1){const o=r/i;e.children[n+1].shift+=o,s.shift-=o,s.change-=r-o}},Tx=e=>e.hasChildren?e.firstChild:e.lThr,Nx=e=>e.hasChildren?e.lastChild:e.rThr,Cx=(e,t,n,r)=>{const s=e.firstChild,i=s.lExt,o=e.children[t];i.lThr=n;const u=r-n.relX-s.lExtRelX;i.relX+=u,i.prelim-=u,s.lExt=o.lExt,s.lExtRelX=o.lExtRelX},Ix=(e,t,n,r)=>{const s=e.children[t],i=s.rExt,o=e.children[t-1];i.rThr=n;const u=r-n.relX-s.rExtRelX;i.relX+=u,i.prelim-=u,s.rExt=o.rExt,s.rExtRelX=o.rExtRelX},Ox=e=>{if(e.hasChildren){const t=e.firstChild,n=e.lastChild,r=(t.prelim+t.relX-t.xSize/2+n.relX+n.prelim+n.xSize/2)/2;Object.assign(e,{prelim:r,lExt:t.lExt,lExtRelX:t.lExtRelX,rExt:n.rExt,rExtRelX:n.rExtRelX})}},Mx=(e,t,n)=>{for(;n!==null&&e>=n.lowY;)n=n.next;return{lowY:e,index:t,next:n}},Lx=".markmap{--markmap-max-width: 9999px;--markmap-a-color: #0097e6;--markmap-a-hover-color: #00a8ff;--markmap-code-bg: #f0f0f0;--markmap-code-color: #555;--markmap-highlight-bg: #ffeaa7;--markmap-table-border: 1px solid currentColor;--markmap-font: 300 16px/20px sans-serif;--markmap-circle-open-bg: #fff;--markmap-text-color: #333;--markmap-highlight-node-bg: #ff02;font:var(--markmap-font);color:var(--markmap-text-color)}.markmap-link{fill:none}.markmap-node>circle{cursor:pointer}.markmap-foreign{display:inline-block}.markmap-foreign p{margin:0}.markmap-foreign a{color:var(--markmap-a-color)}.markmap-foreign a:hover{color:var(--markmap-a-hover-color)}.markmap-foreign code{padding:.25em;font-size:calc(1em - 2px);color:var(--markmap-code-color);background-color:var(--markmap-code-bg);border-radius:2px}.markmap-foreign pre{margin:0}.markmap-foreign pre>code{display:block}.markmap-foreign del{text-decoration:line-through}.markmap-foreign em{font-style:italic}.markmap-foreign strong{font-weight:700}.markmap-foreign mark{background:var(--markmap-highlight-bg)}.markmap-foreign table,.markmap-foreign th,.markmap-foreign td{border-collapse:collapse;border:var(--markmap-table-border)}.markmap-foreign img{display:inline-block}.markmap-foreign svg{fill:currentColor}.markmap-foreign>div{width:var(--markmap-max-width);text-align:left}.markmap-foreign>div>div{display:inline-block}.markmap-highlight rect{fill:var(--markmap-highlight-node-bg)}.markmap-dark .markmap{--markmap-code-bg: #1a1b26;--markmap-code-color: #ddd;--markmap-circle-open-bg: #444;--markmap-text-color: #eee}",Vl="g.markmap-node",Dx="path.markmap-link",Rx="g.markmap-highlight",jl=V_();function id(e,t){const n=o9(e,t);return e[n]}function Wl(e){e.stopPropagation()}const Px=new Ks;class si{constructor(t,n){this.options={...ex},this._disposeList=[],this.handleZoom=r=>{const{transform:s}=r;this.g.attr("transform",s)},this.handlePan=r=>{r.preventDefault();const s=ls(this.svg.node()),i=s.translate(-r.deltaX/s.k,-r.deltaY/s.k);this.svg.call(this.zoom.transform,i)},this.handleClick=(r,s)=>{let i=this.options.toggleRecursively;(wp?r.metaKey:r.ctrlKey)&&(i=!i),this.toggleNode(s,i)},this.ensureView=this.ensureVisible,this.svg=t.datum?t:pr(t),this.styleNode=this.svg.append("style"),this.zoom=J_().filter(r=>this.options.scrollForPan&&r.type==="wheel"?r.ctrlKey&&!r.button:(!r.ctrlKey||r.type
`)}updateStyle(){this.svg.attr("class",K5(this.svg.attr("class"),"markmap",this.state.id));const t=this.getStyleContent();this.styleNode.text(t)}async toggleNode(t,n=!1){var r,s;const i=(r=t.payload)!=null&&r.fold?0:1;n?Xs(t,(o,u)=>{o.payload={...o.payload,fold:i},u()}):t.payload={...t.payload,fold:(s=t.payload)!=null&&s.fold?0:1},await this.renderData(t)}_initializeData(t){let n=0;const{color:r,initialExpandLevel:s}=this.options;let i=0,o=0;return Xs(t,(u,h,d)=>{var p,w,v,x;o+=1,u.children=(p=u.children)==null?void 0:p.map(A=>({...A})),n+=1,u.state={...u.state,depth:o,id:n,rect:{x:0,y:0,width:0,height:0},size:[0,0]},u.state.key=[(w=d==null?void 0:d.state)==null?void 0:w.id,u.state.id].filter(Boolean).join(".")+tx(u.content),u.state.path=[(v=d==null?void 0:d.state)==null?void 0:v.path,u.state.id].filter(Boolean).join("."),r(u);const k=((x=u.payload)==null?void 0:x.fold)===2;k?i+=1:(i||s>=0&&u.state.depth>=s)&&(u.payload={...u.payload,fold:1}),h(),k&&(i-=1),o-=1}),t}_relayout(){if(!this.state.data)return;this.g.selectAll(hn(Vl)).selectAll(hn("foreignObject")).each(function(h){var d;const p=(d=this.firstChild)==null?void 0:d.firstChild,w=[p.scrollWidth,p.scrollHeight];h.state.size=w});const{lineWidth:t,paddingX:n,spacingHorizontal:r,spacingVertical:s}=this.options,i=_p({}).children(h=>{var d;if(!((d=h.payload)!=null&&d.fold))return h.children}).nodeSize(h=>{const[d,p]=h.data.state.size;return[p,d+(d?n*2:0)+r]}).spacing((h,d)=>(h.parent===d.parent?s:s*2)+t(h.data)),o=i.hierarchy(this.state.data);i(o);const u=o.descendants();u.forEach(h=>{const d=h.data;d.state.rect={x:h.y,y:h.x-h.xSize/2,width:h.ySize-r,height:h.xSize}}),this.state.rect={x1:Bh(u,h=>h.data.state.rect.x)||0,y1:Bh(u,h=>h.data.state.rect.y)||0,x2:$h(u,h=>h.data.state.rect.x+h.data.state.rect.width)||0,y2:$h(u,h=>h.data.state.rect.y+h.data.state.rect.height)||0}}setOptions(t){this.options={...this.options,...t},this.options.zoom?this.svg.call(this.zoom):this.svg.on(".zoom",null),this.options.pan?this.svg.on("wheel",this.handlePan):this.svg.on("wheel",null)}async setData(t,n){n&&this.setOptions(n),t&&(this.state.data=this._initializeData(t)),this.state.data&&(this.updateStyle(),await this.renderData())}async setHighlight(t){this.state.highlight=t||void 0,await this.renderData()}_getHighlightRect(t){const n=this.svg.node(),r=4/ls(n).k,s={...t.state.rect};return s.x-=r,s.y-=r,s.width+=2*r,s.height+=2*r,s}async renderData(t){const{paddingX:n,autoFit:r,color:s,maxWidth:i,lineWidth:o}=this.options,u=this.state.data;if(!u)return;const h={},d={},p=[];Xs(u,(U,ce,Ee)=>{var et;(et=U.payload)!=null&&et.fold||ce(),h[U.state.id]=U,Ee&&(d[U.state.id]=Ee.state.id),p.push(U)});const w={},v={},x=U=>{!U||w[U.state.id]||Xs(U,(ce,Ee)=>{w[ce.state.id]=U.state.id,Ee()})},k=U=>v[w[U.state.id]]||u.state.rect,A=U=>(h[w[U.state.id]]||u).state.rect;v[u.state.id]=u.state.rect,t&&x(t);let{highlight:N}=this.state;N&&!h[N.state.id]&&(N=void 0);let I=this.g.selectAll(hn(Rx)).selectAll(hn("rect")).data(N?[this._getHighlightRect(N)]:[]).join("rect").attr("x",U=>U.x).attr("y",U=>U.y).attr("width",U=>U.width).attr("height",U=>U.height);const V=this.g.selectAll(hn(Vl)).each(U=>{v[U.state.id]=U.state.rect}).data(p,U=>U.state.key),D=V.enter().append("g").attr("data-depth",U=>U.state.depth).attr("data-path",U=>U.state.path).each(U=>{x(h[d[U.state.id]])}),M=V.exit().each(U=>{x(h[d[U.state.id]])}),B=V.merge(D).attr("class",U=>{var ce;return["markmap-node",((ce=U.payload)==null?void 0:ce.fold)&&"markmap-fold"].filter(Boolean).join(" ")}),P=B.selectAll(hn("line")).data(U=>[U],U=>U.state.key),j=P.enter().append("line").attr("stroke",U=>s(U)).attr("stroke-width",0),W=P.merge(j),Y=B.selectAll(hn("circle")).data(U=>{var ce;return(ce=U.children)!=null&&ce.length?[U]:[]},U=>U.state.key),pe=Y.enter().append("circle").attr("stroke-width",0).attr("r",0).on("click",(U,ce)=>this.handleClick(U,ce)).on("mousedown",Wl).merge(Y).attr("stroke",U=>s(U)).attr("fill",U=>{var ce;return(ce=U.payload)!=null&&ce.fold&&U.children?s(U):"var(--markmap-circle-open-bg)"}),Me=this._observer,be=B.selectAll(hn("foreignObject")).data(U=
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&Gk[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fd=Symbol("internals");function Gs(e){return e&&String(e).trim().toLowerCase()}function Ma(e){return e===!1||e==null?e:X.isArray(e)?e.map(Ma):String(e)}function Xk(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Yk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Kl(e,t,n,r,s){if(X.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!X.isString(t)){if(X.isString(r))return t.indexOf(r)!==-1;if(X.isRegExp(r))return r.test(t)}}function Jk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Qk(e,t){const n=X.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let ln=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(u,h,d){const p=Gs(h);if(!p)throw new Error("header name must be a non-empty string");const w=X.findKey(s,p);(!w||s[w]===void 0||d===!0||d===void 0&&s[w]!==!1)&&(s[w||h]=Ma(u))}const o=(u,h)=>X.forEach(u,(d,p)=>i(d,p,h));if(X.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(X.isString(t)&&(t=t.trim())&&!Yk(t))o(Kk(t),n);else if(X.isObject(t)&&X.isIterable(t)){let u={},h,d;for(const p of t){if(!X.isArray(p))throw TypeError("Object iterator must return a key-value pair");u[d=p[0]]=(h=u[d])?X.isArray(h)?[...h,p[1]]:[h,p[1]]:p[1]}o(u,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Gs(t),t){const r=X.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Xk(s);if(X.isFunction(n))return n.call(this,s,r);if(X.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Gs(t),t){const r=X.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Kl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=Gs(o),o){const u=X.findKey(r,o);u&&(!n||Kl(r,r[u],u,n))&&(delete r[u],s=!0)}}return X.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||Kl(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return X.forEach(this,(s,i)=>{const o=X.findKey(r,i);if(o){n[o]=Ma(s),delete n[i];return}const u=t?Jk(i):String(i).trim();u!==i&&delete n[i],n[u]=Ma(s),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return X.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&X.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[fd]=this[fd]={accessors:{}}).accessors,s=this.prototype;function i(o){const u=Gs(o);r[u]||(Qk(s,o),r[u]=!0)}return X.isArray(t)?t.forEach(i):i(t),this}};ln.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);X.reduceDescriptors(ln.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});X.freezeMethods(ln);function Xl(e,t){const n=this||Mi,r=t||n,s=ln.from(r.headers);let i=r.data;return X.forEach(e,function(u){i=u.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function $p(e){return!!(e&&e.__CANCEL__)}let Li=class extends Oe{constructor(t,n,r){super(t??"canceled",Oe.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Bp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Zk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function eS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(h){const d=Date.now(),p=r[i];o||(o=d),n[s]=h,r[s]=d;let w=i,v=0;for(;w!==s;)v+=n[w++],w=w%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),d-o<t)return;const x=p&&d-p;return x?Math.round(v*1e3/x):void 0}}function tS(e,t){let n=0,r=1e3/t,s,i;const o=(d,p=Date.now())=>{n=p,s=null,i&&(clearTimeout(i),i=null),e(...d)};return[(...d)=>{const p=Date.now(),w=p-n;w>=r?o(d,p):(s=d,i||(i=setTimeout(()=>{i=null,o(s)},r-w)))},()=>s&&o(s)]}const ro=(e,t,n=3)=>{let r=0;const s=eS(50,250);return tS(i=>{const o=i.loaded,u=i.lengthComputable?i.total:void 0,h=o-r,d=s(h),p=o<=u;r=o;const w={loaded:o,total:u,progress:u?o/u:void 0,bytes:h,rate:d||void 0,estimated:d&&u&&p?(u-o)/d:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(w)},n)},hd=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},dd=e=>(...t)=>X.asap(()=>e(...t)),nS=Vt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Vt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Vt.origin),Vt.navigator&&/(msie|trident)/i.test(Vt.navigator.userAgent)):()=>!0,rS=Vt.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const u=[`${e}=${encodeURIComponent(t)}`];X.isNumber(n)&&u.push(`expires=${new Date(n).toUTCString()}`),X.isString(r)&&u.push(`path=${r}`),X.isString(s)&&u.push(`domain=${s}`),i===!0&&u.push("secure"),X.isString(o)&&u.push(`SameSite=${o}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function sS(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function iS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Fp(e,t,n){let r=!sS(t);return e&&(r||n==!1)?iS(e,t):t}const md=e=>e instanceof ln?{...e}:e;function Xr(e,t){t=t||{};const n={};function r(d,p,w,v){return X.isPlainObject(d)&&X.isPlainObject(p)?X.merge.call({caseless:v},d,p):X.isPlainObject(p)?X.merge({},p):X.isArray(p)?p.slice():p}function s(d,p,w,v){if(X.isUndefined(p)){if(!X.isUndefined(d))return r(void 0,d,w,v)}else return r(d,p,w,v)}function i(d,p){if(!X.isUndefined(p))return r(void 0,p)}function o(d,p){if(X.isUndefined(p)){if(!X.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function u(d,p,w){if(w in t)return r(d,p);if(w in e)return r(void 0,d)}const h={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgre
`+o.map(vd).join(`
`):" "+vd(o[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return s}const Up={getAdapter:gS,adapters:qc};function Yl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Li(null,e)}function _d(e){return Yl(e),e.headers=ln.from(e.headers),e.data=Xl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Up.getAdapter(e.adapter||Mi.adapter,e)(e).then(function(r){return Yl(e),r.data=Xl.call(e,e.transformResponse,r),r.headers=ln.from(r.headers),r},function(r){return $p(r)||(Yl(e),r&&r.response&&(r.response.data=Xl.call(e,e.transformResponse,r.response),r.response.headers=ln.from(r.response.headers))),Promise.reject(r)})}const Hp="1.13.6",Do={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Do[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xd={};Do.transitional=function(t,n,r){function s(i,o){return"[Axios v"+Hp+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,u)=>{if(t===!1)throw new Oe(s(o," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!xd[o]&&(xd[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,u):!0}};Do.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function bS(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const u=e[i],h=u===void 0||o(u,i,e);if(h!==!0)throw new Oe("option "+i+" must be "+h,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+i,Oe.ERR_BAD_OPTION)}}const La={assertOptions:bS,validators:Do},yn=La.validators;let Vr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ud,response:new ud}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Xr(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&La.assertOptions(r,{silentJSONParsing:yn.transitional(yn.boolean),forcedJSONParsing:yn.transitional(yn.boolean),clarifyTimeoutError:yn.transitional(yn.boolean),legacyInterceptorReqResOrdering:yn.transitional(yn.boolean)},!1),s!=null&&(X.isFunction(s)?n.paramsSerializer={serialize:s}:La.assertOptions(s,{encode:yn.function,serialize:yn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),La.assertOptions(n,{baseUrl:yn.spelling("baseURL"),withXsrfToken:yn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&X.merge(i.common,i[n.method]);i&&X.forEach(["delete","get","head","post","put","patch","common"],k=>{delete i[k]}),n.headers=ln.concat(o,i);const u=[];let h=!0;this.interceptors.request.forEach(function(A){if(typeof A.runWhen=="function"&&A.runWhen(n)===!1)return;h=h&&A.synchronous;const N=n.transitional||Fc;N&&N.legacyInterceptorReqResOrdering?u.unshift(A.fulfilled,A.rejected):u.push(A.fulfilled,A.rejected)});const d=[];this.interceptors.response.forEach(function(A){d.push(A.fulfilled,A.rejected)});let p,w=0,v;if(!h){const k=[_d.bind(this),void 0];for(k.unshift(...u),k.push(...d),v=k.length,p=Promise.resolve(n);w<v;)p=p.then(k[w++],k[w++]);return p}v=u.length;let x=n;for(;w<v;){const k=u[w++],A=u[w++];try{x=k(x)}catch(N){A.call(this,N);break}}try{p=_d.call(this,x)}catch(k){return Promise.reject(k)}for(w=0,v=d.length;w<v;)p=p.then(d[w++],d[w++]);return p}getUri(t){t=Xr(this.defaults,t);const n=Fp(t.baseURL,t.url,t.allowAbsoluteUrls);return Rp(n,t.params,t.paramsSerializer)}};X.forEach(["delete","get","head","options"],function(t){Vr.prototype[t]=function(n,r){return this.request(Xr(r||{},{method:t,url:n,data:(r||{}).data}))}});X.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,u){return this.request(Xr(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Vr.prototype[t]=n(),Vr.prototype[t+"Form"]=n(!0)});let yS=class Vp{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(u=>{r.subscribe(u),i=u}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,u){r.reason||(r.reason=new Li(i,o,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Vp(function(s){t=s}),cancel:t}}};function wS(e){return function(n){return e.apply(null,n)}}function vS(e){return X.isObject(e)&&e.isAxiosError===!0}const z0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,Unproce
`),n=[];let r=!1,s=0;for(const i of t){const o=i.trim();if(o.startsWith("#")){const u=o.match(/^#+/);u?s=u[0].length:s=0,n.push(i),r=!0;continue}if(!o){n.push(i);continue}if(o.startsWith("![")){n.push(i);continue}if(r&&s>0&&s<6){const u=s+1,h="#".repeat(u);n.push(h+" "+o)}else n.push(i)}return n.join(`
`)}function kS(){const e=$t([]),t=$t(!1),n=ug({maxPages:1e3,backend:"hybrid-auto-engine",serverUrl:"http://localhost:30000",tableEnable:!0,formulaEnable:!0,language:"ch",forceOcr:!1}),r=$t(null),s=$t(!1),i=$t(null);return{uploadedFiles:e,config:n,results:r,isUploading:t,isProcessing:s,error:i,backendOptions:[{value:"pipeline",label:"传统管道解析"},{value:"vlm-auto-engine",label:"VLM本地引擎"},{value:"hybrid-auto-engine",label:"混合本地引擎"},{value:"vlm-http-client",label:"VLM远程客户端"},{value:"hybrid-http-client",label:"混合远程客户端"}],languageOptions:[{value:"ch",label:"中文(简体)"},{value:"en",label:"英语"},{value:"korean",label:"韩语"},{value:"japan",label:"日语"},{value:"chinese_cht",label:"中文(繁体)"},{value:"ta",label:"泰米尔语"},{value:"te",label:"泰卢固语"},{value:"ka",label:"卡纳达语"},{value:"th",label:"泰语"},{value:"el",label:"希腊语"},{value:"latin",label:"拉丁语系"},{value:"arabic",label:"阿拉伯语系"},{value:"east_slavic",label:"东斯拉夫语系"},{value:"cyrillic",label:"西里尔语系"},{value:"devanagari",label:"梵文字母语系"}],handleFileUpload:x=>{if(!x||x.length===0)return;const k=[];for(let A=0;A<x.length;A++){const N=x[A],I=N.type;if(!I.startsWith("image/")&&I!=="application/pdf"){i.value="不支持的文件类型";continue}if(N.size>100*1024*1024){i.value="文件大小超出限制";continue}k.push(N)}e.value=k,i.value=null},clearAll:()=>{e.value=[],r.value=null,i.value=null},processDocument:async()=>{if(e.value.length===0){i.value="请先上传文件";return}s.value=!0,i.value=null;try{const x={files:e.value,output_dir:"./output",lang_list:[n.language],backend:n.backend,parse_method:n.forceOcr?"ocr":"auto",formula_enable:n.formulaEnable,table_enable:n.tableEnable,start_page_id:0,end_page_id:n.maxPages-1,return_md:!0,return_middle_json:!1,response_format_zip:!1};n.backend.includes("http-client")&&n.serverUrl&&(x.server_url=n.serverUrl);const k=await _S.parseDocument(x);if(k.results){const N=Object.values(k.results)[0].md_content||"",I=xS(N);r.value={markdown:N,source:I,mindmap:I}}}catch(x){i.value=x.message||"转换失败"}finally{s.value=!1}},getFormulaLabel:x=>x.startsWith("vlm")?"启用行间公式识别":x==="pipeline"?"启用公式识别":x.startsWith("hybrid")?"启用行内公式识别":"启用公式识别",getFormulaInfo:x=>x.startsWith("vlm")?"禁用后,行间公式将显示为图片。":x==="pipeline"?"禁用后,行间公式将显示为图片,行内公式将不会被检测或解析。":x.startsWith("hybrid")?"禁用后,行内公式将不会被检测或解析。":""}}const SS={class:"document-processor"},AS={class:"top-header"},ES={class:"main-content"},TS={class:"upload-section"},NS={class:"upload-content"},CS={class:"uploaded-files"},IS={class:"file-name"},OS={key:0,class:"settings-panel"},MS={class:"settings-header"},LS={class:"result-section"},DS={class:"result-content"},RS={key:0,class:"loading-container"},PS={key:1,class:"empty-state"},$S={key:2,class:"result-tab-content result-fade-in"},BS={class:"markdown-content"},FS={class:"markdown-box"},zS={class:"source-content"},qS={class:"mindmap-content"},US={class:"mindmap-box"},HS=_r({__name:"DocumentProcessor",setup(e){const{uploadedFiles:t,config:n,results:r,isProcessing:s,backendOptions:i,languageOptions:o,processDocument:u}=kS(),h=$t(!1),d=$t(null),p=$t(!1),w=$t("markdown"),v=$t(!1),x=()=>{if(h.value){const B=document.querySelector(".settings-panel");B&&(B.classList.remove("showing"),B.classList.add("hiding"),setTimeout(()=>{h.value=!1,B.classList.remove("hiding"),document.removeEventListener("click",k)},400))}else h.value=!0,setTimeout(()=>{const B=document.querySelector(".settings-panel");B&&B.classList.add("showing"),document.addEventListener("click",k)},10)},k=B=>{const P=document.querySelector(".settings-panel"),j=document.querySelector(".settings-button");P&&!P.contains(B.target)&&j&&!j.contains(B.target)&&(P.classList.remove("showing"),P.classList.add("hiding"),setTimeout(()=>{h.value=!1,P.classList.remove("hiding"),document.removeEventList