@kingsimba/nc-ui 0.1.42 → 0.1.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/yaml.cjs CHANGED
@@ -1,182 +1,137 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const ne=require("react/jsx-runtime"),K=require("react"),jn=require("./clsx-C11secjj.cjs");var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Mn={},W=de&&de.__assign||function(){return W=Object.assign||function(n){for(var e,t=1,s=arguments.length;t<s;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},W.apply(this,arguments)},Ds=de&&de.__createBinding||(Object.create?function(n,e,t,s){s===void 0&&(s=t);var r=Object.getOwnPropertyDescriptor(e,t);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,s,r)}:function(n,e,t,s){s===void 0&&(s=t),n[s]=e[t]}),Bs=de&&de.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),Ps=de&&de.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&Ds(e,n,t);return Bs(e,n),e},js=de&&de.__rest||function(n,e){var t={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&e.indexOf(s)<0&&(t[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(n);r<s.length;r++)e.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(n,s[r])&&(t[s[r]]=n[s[r]]);return t};Object.defineProperty(Mn,"__esModule",{value:!0});var se=Ps(K),Ms=89,ft=90,Ks=77,wn=57,kn=219,vn=222,Sn=192,En=100,Us=3e3,qs=typeof window<"u"&&"navigator"in window&&/Win/i.test(navigator.platform),Pt=typeof window<"u"&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),mt="npm__react-simple-code-editor__textarea",zs=`
2
- /**
3
- * Reset the text fill color so that placeholder is visible
4
- */
5
- .`.concat(mt,`:empty {
6
- -webkit-text-fill-color: inherit !important;
7
- }
8
-
9
- /**
10
- * Hack to apply on some CSS on IE10 and IE11
11
- */
12
- @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
13
- /**
14
- * IE doesn't support '-webkit-text-fill-color'
15
- * So we use 'color: transparent' to make the text transparent on IE
16
- * Unlike other browsers, it doesn't affect caret color in IE
17
- */
18
- .`).concat(mt,` {
19
- color: transparent !important;
20
- }
21
-
22
- .`).concat(mt,`::selection {
23
- background-color: #accef7 !important;
24
- color: transparent !important;
25
- }
26
- }
27
- `),Gs=se.forwardRef(function(e,t){var s=e.autoFocus,r=e.disabled,i=e.form,a=e.highlight,o=e.ignoreTabKey,l=o===void 0?!1:o,c=e.insertSpaces,h=c===void 0?!0:c,f=e.maxLength,y=e.minLength,g=e.name,d=e.onBlur,u=e.onClick,p=e.onFocus,m=e.onKeyDown,b=e.onKeyUp,w=e.onValueChange,S=e.padding,v=S===void 0?0:S,N=e.placeholder,_=e.preClassName,A=e.readOnly,O=e.required,x=e.style,D=e.tabSize,B=D===void 0?2:D,I=e.textareaClassName,L=e.textareaId,M=e.value,j=js(e,["autoFocus","disabled","form","highlight","ignoreTabKey","insertSpaces","maxLength","minLength","name","onBlur","onClick","onFocus","onKeyDown","onKeyUp","onValueChange","padding","placeholder","preClassName","readOnly","required","style","tabSize","textareaClassName","textareaId","value"]),$=se.useRef({stack:[],offset:-1}),U=se.useRef(null),oe=se.useState(!0),V=oe[0],X=oe[1],ge={paddingTop:typeof v=="object"?v.top:v,paddingRight:typeof v=="object"?v.right:v,paddingBottom:typeof v=="object"?v.bottom:v,paddingLeft:typeof v=="object"?v.left:v},le=a(M),Q=function(E,R){return E.substring(0,R).split(`
28
- `)},_e=se.useCallback(function(E,R){var C,F,Y;R===void 0&&(R=!1);var H=$.current,ye=H.stack,Ve=H.offset;if(ye.length&&Ve>-1){$.current.stack=ye.slice(0,Ve+1);var We=$.current.stack.length;if(We>En){var Fe=We-En;$.current.stack=ye.slice(Fe,We),$.current.offset=Math.max($.current.offset-Fe,0)}}var fe=Date.now();if(R){var Se=$.current.stack[$.current.offset];if(Se&&fe-Se.timestamp<Us){var He=/[^a-z0-9]([a-z0-9]+)$/i,ee=(C=Q(Se.value,Se.selectionStart).pop())===null||C===void 0?void 0:C.match(He),Ze=(F=Q(E.value,E.selectionStart).pop())===null||F===void 0?void 0:F.match(He);if(ee!=null&&ee[1]&&(!((Y=Ze==null?void 0:Ze[1])===null||Y===void 0)&&Y.startsWith(ee[1]))){$.current.stack[$.current.offset]=W(W({},E),{timestamp:fe});return}}}$.current.stack.push(W(W({},E),{timestamp:fe})),$.current.offset++},[]),Ce=se.useCallback(function(){var E=U.current;if(E){var R=E.value,C=E.selectionStart,F=E.selectionEnd;_e({value:R,selectionStart:C,selectionEnd:F})}},[_e]),ke=function(E){var R=U.current;R&&(R.value=E.value,R.selectionStart=E.selectionStart,R.selectionEnd=E.selectionEnd,w==null||w(E.value))},ve=function(E){var R=U.current,C=$.current.stack[$.current.offset];C&&R&&($.current.stack[$.current.offset]=W(W({},C),{selectionStart:R.selectionStart,selectionEnd:R.selectionEnd})),_e(E),ke(E)},Ye=function(){var E=$.current,R=E.stack,C=E.offset,F=R[C-1];F&&(ke(F),$.current.offset=Math.max(C-1,0))},Fs=function(){var E=$.current,R=E.stack,C=E.offset,F=R[C+1];F&&(ke(F),$.current.offset=Math.min(C+1,R.length-1))},$s=function(E){if(!(m&&(m(E),E.defaultPrevented))){E.key==="Escape"&&E.currentTarget.blur();var R=E.currentTarget,C=R.value,F=R.selectionStart,Y=R.selectionEnd,H=(h?" ":" ").repeat(B);if(E.key==="Tab"&&!l&&V)if(E.preventDefault(),E.shiftKey){var ye=Q(C,F),Ve=ye.length-1,We=Q(C,Y).length-1,Fe=C.split(`
29
- `).map(function(Je,yn){return yn>=Ve&&yn<=We&&Je.startsWith(H)?Je.substring(H.length):Je}).join(`
30
- `);if(C!==Fe){var fe=ye[Ve];ve({value:Fe,selectionStart:fe!=null&&fe.startsWith(H)?F-H.length:F,selectionEnd:Y-(C.length-Fe.length)})}}else if(F!==Y){var ye=Q(C,F),Se=ye.length-1,He=Q(C,Y).length-1,fe=ye[Se];ve({value:C.split(`
31
- `).map(function(mn,bn){return bn>=Se&&bn<=He?H+mn:mn}).join(`
32
- `),selectionStart:fe&&/\S/.test(fe)?F+H.length:F,selectionEnd:Y+H.length*(He-Se+1)})}else{var ee=F+H.length;ve({value:C.substring(0,F)+H+C.substring(Y),selectionStart:ee,selectionEnd:ee})}else if(E.key==="Backspace"){var Ze=F!==Y,Rs=C.substring(0,F);if(Rs.endsWith(H)&&!Ze){E.preventDefault();var ee=F-H.length;ve({value:C.substring(0,F-H.length)+C.substring(Y),selectionStart:ee,selectionEnd:ee})}}else if(E.key==="Enter"){if(F===Y){var Bt=Q(C,F).pop(),ut=Bt==null?void 0:Bt.match(/^\s+/);if(ut!=null&&ut[0]){E.preventDefault();var gn=`
33
- `+ut[0],ee=F+gn.length;ve({value:C.substring(0,F)+gn+C.substring(Y),selectionStart:ee,selectionEnd:ee})}}}else if(E.keyCode===wn||E.keyCode===kn||E.keyCode===vn||E.keyCode===Sn){var me=void 0;E.keyCode===wn&&E.shiftKey?me=["(",")"]:E.keyCode===kn?E.shiftKey?me=["{","}"]:me=["[","]"]:E.keyCode===vn?E.shiftKey?me=['"','"']:me=["'","'"]:E.keyCode===Sn&&!E.shiftKey&&(me=["`","`"]),F!==Y&&me&&(E.preventDefault(),ve({value:C.substring(0,F)+me[0]+C.substring(F,Y)+me[1]+C.substring(Y),selectionStart:F,selectionEnd:Y+2}))}else(Pt?E.metaKey&&E.keyCode===ft:E.ctrlKey&&E.keyCode===ft)&&!E.shiftKey&&!E.altKey?(E.preventDefault(),Ye()):(Pt?E.metaKey&&E.keyCode===ft&&E.shiftKey:qs?E.ctrlKey&&E.keyCode===Ms:E.ctrlKey&&E.keyCode===ft&&E.shiftKey)&&!E.altKey?(E.preventDefault(),Fs()):E.keyCode===Ks&&E.ctrlKey&&(!Pt||E.shiftKey)&&(E.preventDefault(),X(function(Je){return!Je}))}},xs=function(E){var R=E.currentTarget,C=R.value,F=R.selectionStart,Y=R.selectionEnd;_e({value:C,selectionStart:F,selectionEnd:Y},!0),w(C)};return se.useEffect(function(){Ce()},[Ce]),se.useImperativeHandle(t,function(){return{get session(){return{history:$.current}},set session(E){$.current=E.history}}},[]),se.createElement("div",W({},j,{style:W(W({},Xe.container),x)}),se.createElement("pre",W({className:_,"aria-hidden":"true",style:W(W(W({},Xe.editor),Xe.highlight),ge)},typeof le=="string"?{dangerouslySetInnerHTML:{__html:le+"<br />"}}:{children:le})),se.createElement("textarea",{ref:function(E){return U.current=E},style:W(W(W({},Xe.editor),Xe.textarea),ge),className:mt+(I?" ".concat(I):""),id:L,value:M,onChange:xs,onKeyDown:$s,onClick:u,onKeyUp:b,onFocus:p,onBlur:d,disabled:r,form:i,maxLength:f,minLength:y,name:g,placeholder:N,readOnly:A,required:O,autoFocus:s,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),se.createElement("style",{dangerouslySetInnerHTML:{__html:zs}}))}),Xe={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}},Ys=Mn.default=Gs,Vs=Object.create,_t=Object.defineProperty,Ws=Object.defineProperties,Hs=Object.getOwnPropertyDescriptor,Zs=Object.getOwnPropertyDescriptors,Kn=Object.getOwnPropertyNames,vt=Object.getOwnPropertySymbols,Js=Object.getPrototypeOf,Xt=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable,An=(n,e,t)=>e in n?_t(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,pe=(n,e)=>{for(var t in e||(e={}))Xt.call(e,t)&&An(n,t,e[t]);if(vt)for(var t of vt(e))Un.call(e,t)&&An(n,t,e[t]);return n},Nt=(n,e)=>Ws(n,Zs(e)),qn=(n,e)=>{var t={};for(var s in n)Xt.call(n,s)&&e.indexOf(s)<0&&(t[s]=n[s]);if(n!=null&&vt)for(var s of vt(n))e.indexOf(s)<0&&Un.call(n,s)&&(t[s]=n[s]);return t},Xs=(n,e)=>function(){return e||(0,n[Kn(n)[0]])((e={exports:{}}).exports,e),e.exports},Qs=(n,e)=>{for(var t in e)_t(n,t,{get:e[t],enumerable:!0})},er=(n,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Kn(e))!Xt.call(n,r)&&r!==t&&_t(n,r,{get:()=>e[r],enumerable:!(s=Hs(e,r))||s.enumerable});return n},tr=(n,e,t)=>(t=n!=null?Vs(Js(n)):{},er(!n||!n.__esModule?_t(t,"default",{value:n,enumerable:!0}):t,n)),nr=Xs({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(n,e){var t=function(){var s=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,i={},a={util:{encode:function d(u){return u instanceof o?new o(u.type,d(u.content),u.alias):Array.isArray(u)?u.map(d):u.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(d){return Object.prototype.toString.call(d).slice(8,-1)},objId:function(d){return d.__id||Object.defineProperty(d,"__id",{value:++r}),d.__id},clone:function d(u,p){p=p||{};var m,b;switch(a.util.type(u)){case"Object":if(b=a.util.objId(u),p[b])return p[b];m={},p[b]=m;for(var w in u)u.hasOwnProperty(w)&&(m[w]=d(u[w],p));return m;case"Array":return b=a.util.objId(u),p[b]?p[b]:(m=[],p[b]=m,u.forEach(function(S,v){m[v]=d(S,p)}),m);default:return u}},getLanguage:function(d){for(;d;){var u=s.exec(d.className);if(u)return u[1].toLowerCase();d=d.parentElement}return"none"},setLanguage:function(d,u){d.className=d.className.replace(RegExp(s,"gi"),""),d.classList.add("language-"+u)},isActive:function(d,u,p){for(var m="no-"+u;d;){var b=d.classList;if(b.contains(u))return!0;if(b.contains(m))return!1;d=d.parentElement}return!!p}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(d,u){var p=a.util.clone(a.languages[d]);for(var m in u)p[m]=u[m];return p},insertBefore:function(d,u,p,m){m=m||a.languages;var b=m[d],w={};for(var S in b)if(b.hasOwnProperty(S)){if(S==u)for(var v in p)p.hasOwnProperty(v)&&(w[v]=p[v]);p.hasOwnProperty(S)||(w[S]=b[S])}var N=m[d];return m[d]=w,a.languages.DFS(a.languages,function(_,A){A===N&&_!=d&&(this[_]=w)}),w},DFS:function d(u,p,m,b){b=b||{};var w=a.util.objId;for(var S in u)if(u.hasOwnProperty(S)){p.call(u,S,u[S],m||S);var v=u[S],N=a.util.type(v);N==="Object"&&!b[w(v)]?(b[w(v)]=!0,d(v,p,null,b)):N==="Array"&&!b[w(v)]&&(b[w(v)]=!0,d(v,p,S,b))}}},plugins:{},highlight:function(d,u,p){var m={code:d,grammar:u,language:p};if(a.hooks.run("before-tokenize",m),!m.grammar)throw new Error('The language "'+m.language+'" has no grammar.');return m.tokens=a.tokenize(m.code,m.grammar),a.hooks.run("after-tokenize",m),o.stringify(a.util.encode(m.tokens),m.language)},tokenize:function(d,u){var p=u.rest;if(p){for(var m in p)u[m]=p[m];delete u.rest}var b=new h;return f(b,b.head,d),c(d,b,u,b.head,0),g(b)},hooks:{all:{},add:function(d,u){var p=a.hooks.all;p[d]=p[d]||[],p[d].push(u)},run:function(d,u){var p=a.hooks.all[d];if(!(!p||!p.length))for(var m=0,b;b=p[m++];)b(u)}},Token:o};function o(d,u,p,m){this.type=d,this.content=u,this.alias=p,this.length=(m||"").length|0}o.stringify=function d(u,p){if(typeof u=="string")return u;if(Array.isArray(u)){var m="";return u.forEach(function(N){m+=d(N,p)}),m}var b={type:u.type,content:d(u.content,p),tag:"span",classes:["token",u.type],attributes:{},language:p},w=u.alias;w&&(Array.isArray(w)?Array.prototype.push.apply(b.classes,w):b.classes.push(w)),a.hooks.run("wrap",b);var S="";for(var v in b.attributes)S+=" "+v+'="'+(b.attributes[v]||"").replace(/"/g,"&quot;")+'"';return"<"+b.tag+' class="'+b.classes.join(" ")+'"'+S+">"+b.content+"</"+b.tag+">"};function l(d,u,p,m){d.lastIndex=u;var b=d.exec(p);if(b&&m&&b[1]){var w=b[1].length;b.index+=w,b[0]=b[0].slice(w)}return b}function c(d,u,p,m,b,w){for(var S in p)if(!(!p.hasOwnProperty(S)||!p[S])){var v=p[S];v=Array.isArray(v)?v:[v];for(var N=0;N<v.length;++N){if(w&&w.cause==S+","+N)return;var _=v[N],A=_.inside,O=!!_.lookbehind,x=!!_.greedy,D=_.alias;if(x&&!_.pattern.global){var B=_.pattern.toString().match(/[imsuy]*$/)[0];_.pattern=RegExp(_.pattern.source,B+"g")}for(var I=_.pattern||_,L=m.next,M=b;L!==u.tail&&!(w&&M>=w.reach);M+=L.value.length,L=L.next){var j=L.value;if(u.length>d.length)return;if(!(j instanceof o)){var $=1,U;if(x){if(U=l(I,M,d,O),!U||U.index>=d.length)break;var ge=U.index,oe=U.index+U[0].length,V=M;for(V+=L.value.length;ge>=V;)L=L.next,V+=L.value.length;if(V-=L.value.length,M=V,L.value instanceof o)continue;for(var X=L;X!==u.tail&&(V<oe||typeof X.value=="string");X=X.next)$++,V+=X.value.length;$--,j=d.slice(M,V),U.index-=M}else if(U=l(I,0,j,O),!U)continue;var ge=U.index,le=U[0],Q=j.slice(0,ge),_e=j.slice(ge+le.length),Ce=M+j.length;w&&Ce>w.reach&&(w.reach=Ce);var ke=L.prev;Q&&(ke=f(u,ke,Q),M+=Q.length),y(u,ke,$);var ve=new o(S,A?a.tokenize(le,A):le,D,le);if(L=f(u,ke,ve),_e&&f(u,L,_e),$>1){var Ye={cause:S+","+N,reach:Ce};c(d,u,p,L.prev,M,Ye),w&&Ye.reach>w.reach&&(w.reach=Ye.reach)}}}}}}function h(){var d={value:null,prev:null,next:null},u={value:null,prev:d,next:null};d.next=u,this.head=d,this.tail=u,this.length=0}function f(d,u,p){var m=u.next,b={value:p,prev:u,next:m};return u.next=b,m.prev=b,d.length++,b}function y(d,u,p){for(var m=u.next,b=0;b<p&&m!==d.tail;b++)m=m.next;u.next=m,m.prev=u,d.length-=b}function g(d){for(var u=[],p=d.head.next;p!==d.tail;)u.push(p.value),p=p.next;return u}return a}();e.exports=t,t.default=t}}),k=tr(nr());k.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},k.languages.markup.tag.inside["attr-value"].inside.entity=k.languages.markup.entity,k.languages.markup.doctype.inside["internal-subset"].inside=k.languages.markup,k.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.replace(/&amp;/,"&"))}),Object.defineProperty(k.languages.markup.tag,"addInlined",{value:function(n,s){var t={},t=(t["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:k.languages[s]},t.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:t}}),s=(t["language-"+s]={pattern:/[\s\S]+/,inside:k.languages[s]},{});s[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:t},k.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(k.languages.markup.tag,"addAttribute",{value:function(n,e){k.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:k.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),k.languages.html=k.languages.markup,k.languages.mathml=k.languages.markup,k.languages.svg=k.languages.markup,k.languages.xml=k.languages.extend("markup",{}),k.languages.ssml=k.languages.xml,k.languages.atom=k.languages.xml,k.languages.rss=k.languages.xml,function(n){var e={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},t=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,s="(?:[^\\\\-]|"+t.source+")",s=RegExp(s+"-"+s),r={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};n.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:t,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":e,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:t}},"special-escape":e,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":r}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:t,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":r}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(k),k.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},k.languages.javascript=k.languages.extend("clike",{"class-name":[k.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),k.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,k.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:k.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:k.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:k.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:k.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:k.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),k.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:k.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),k.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),k.languages.markup&&(k.languages.markup.tag.addInlined("script","javascript"),k.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),k.languages.js=k.languages.javascript,k.languages.actionscript=k.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),k.languages.actionscript["class-name"].alias="function",delete k.languages.actionscript.parameter,delete k.languages.actionscript["literal-property"],k.languages.markup&&k.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:k.languages.markup}}),function(n){var e=/#(?!\{).+/,t={pattern:/#\{[^}]+\}/,alias:"variable"};n.languages.coffeescript=n.languages.extend("javascript",{comment:e,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:t}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),n.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:e,interpolation:t}}}),n.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:n.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:t}}]}),n.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete n.languages.coffeescript["template-string"],n.languages.coffee=n.languages.coffeescript}(k),function(n){var e=n.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(e,"addSupport",{value:function(t,s){(t=typeof t=="string"?[t]:t).forEach(function(r){var i=function(f){f.inside||(f.inside={}),f.inside.rest=s},a="doc-comment";if(o=n.languages[r]){var o,l=o[a];if((l=l||(o=n.languages.insertBefore(r,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[a])instanceof RegExp&&(l=o[a]={pattern:l}),Array.isArray(l))for(var c=0,h=l.length;c<h;c++)l[c]instanceof RegExp&&(l[c]={pattern:l[c]}),i(l[c]);else i(l)}})}}),e.addSupport(["java","javascript","php"],e)}(k),function(n){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,e=(n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css,n.languages.markup);e&&(e.tag.addInlined("style","css"),e.tag.addAttribute("style","css"))}(k),function(n){var e=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,e=(n.languages.css.selector={pattern:n.languages.css.selector.pattern,lookbehind:!0,inside:e={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+e.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[e,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},n.languages.css.atrule.inside["selector-function-argument"].inside=e,n.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),t={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};n.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:e,number:t,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:e,number:t})}(k),function(n){var e=/[*&][^\s[\]{},]+/,t=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,s="(?:"+t.source+"(?:[ ]+"+e.source+")?|"+e.source+"(?:[ ]+"+t.source+")?)",r=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(o,l){l=(l||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return s}).replace(/<<value>>/g,function(){return o});return RegExp(c,l)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return s})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return s}).replace(/<<key>>/g,function(){return"(?:"+r+"|"+i+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:t,important:e,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml}(k),function(n){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function t(c){return c=c.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+c+")")}var s=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return s}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,a=(n.languages.markdown=n.languages.extend("markup",{}),n.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+i+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+i+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(s),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(s),alias:"important",inside:n.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:t(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:t(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:t(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:t(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(c){["url","bold","italic","strike","code-snippet"].forEach(function(h){c!==h&&(n.languages.markdown[c].inside.content.inside[h]=n.languages.markdown[h])})}),n.hooks.add("after-tokenize",function(c){c.language!=="markdown"&&c.language!=="md"||function h(f){if(f&&typeof f!="string")for(var y=0,g=f.length;y<g;y++){var d,u=f[y];u.type!=="code"?h(u.content):(d=u.content[1],u=u.content[3],d&&u&&d.type==="code-language"&&u.type==="code-block"&&typeof d.content=="string"&&(d=d.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),d="language-"+(d=(/[a-z][\w-]*/i.exec(d)||[""])[0].toLowerCase()),u.alias?typeof u.alias=="string"?u.alias=[u.alias,d]:u.alias.push(d):u.alias=[d]))}}(c.tokens)}),n.hooks.add("wrap",function(c){if(c.type==="code-block"){for(var h="",f=0,y=c.classes.length;f<y;f++){var g=c.classes[f],g=/language-(.+)/.exec(g);if(g){h=g[1];break}}var d,u=n.languages[h];u?c.content=n.highlight(function(p){return p=p.replace(a,""),p=p.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(m,b){var w;return(b=b.toLowerCase())[0]==="#"?(w=b[1]==="x"?parseInt(b.slice(2),16):Number(b.slice(1)),l(w)):o[b]||m})}(c.content),u,h):h&&h!=="none"&&n.plugins.autoloader&&(d="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),c.attributes.id=d,n.plugins.autoloader.loadLanguages(h,function(){var p=document.getElementById(d);p&&(p.innerHTML=n.highlight(p.textContent,n.languages[h],h))}))}}),RegExp(n.languages.markup.tag.pattern.source,"gi")),o={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;n.languages.md=n.languages.markdown}(k),k.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:k.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},k.hooks.add("after-tokenize",function(n){if(n.language==="graphql")for(var e=n.tokens.filter(function(d){return typeof d!="string"&&d.type!=="comment"&&d.type!=="scalar"}),t=0;t<e.length;){var s=e[t++];if(s.type==="keyword"&&s.content==="mutation"){var r=[];if(f(["definition-mutation","punctuation"])&&h(1).content==="("){t+=2;var i=y(/^\($/,/^\)$/);if(i===-1)continue;for(;t<i;t++){var a=h(0);a.type==="variable"&&(g(a,"variable-input"),r.push(a.content))}t=i+1}if(f(["punctuation","property-query"])&&h(0).content==="{"&&(t++,g(h(0),"property-mutation"),0<r.length)){var o=y(/^\{$/,/^\}$/);if(o!==-1)for(var l=t;l<o;l++){var c=e[l];c.type==="variable"&&0<=r.indexOf(c.content)&&g(c,"variable-input")}}}}function h(d){return e[t+d]}function f(d,u){u=u||0;for(var p=0;p<d.length;p++){var m=h(p+u);if(!m||m.type!==d[p])return}return 1}function y(d,u){for(var p=1,m=t;m<e.length;m++){var b=e[m],w=b.content;if(b.type==="punctuation"&&typeof w=="string"){if(d.test(w))p++;else if(u.test(w)&&--p===0)return m}}return-1}function g(d,u){var p=d.alias;p?Array.isArray(p)||(d.alias=p=[p]):d.alias=p=[],p.push(u)}}),k.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(n){var e=n.languages.javascript["template-string"],t=e.pattern.source,s=e.inside.interpolation,r=s.inside["interpolation-punctuation"],i=s.pattern.source;function a(f,y){if(n.languages[f])return{pattern:RegExp("((?:"+y+")\\s*)"+t),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:f}}}}function o(f,y,g){return f={code:f,grammar:y,language:g},n.hooks.run("before-tokenize",f),f.tokens=n.tokenize(f.code,f.grammar),n.hooks.run("after-tokenize",f),f.tokens}function l(f,y,g){var p=n.tokenize(f,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),d=0,u={},p=o(p.map(function(b){if(typeof b=="string")return b;for(var w,S,b=b.content;f.indexOf((S=d++,w="___"+g.toUpperCase()+"_"+S+"___"))!==-1;);return u[w]=b,w}).join(""),y,g),m=Object.keys(u);return d=0,function b(w){for(var S=0;S<w.length;S++){if(d>=m.length)return;var v,N,_,A,O,x,D,B=w[S];typeof B=="string"||typeof B.content=="string"?(v=m[d],(D=(x=typeof B=="string"?B:B.content).indexOf(v))!==-1&&(++d,N=x.substring(0,D),O=u[v],_=void 0,(A={})["interpolation-punctuation"]=r,(A=n.tokenize(O,A)).length===3&&((_=[1,1]).push.apply(_,o(A[1],n.languages.javascript,"javascript")),A.splice.apply(A,_)),_=new n.Token("interpolation",A,s.alias,O),A=x.substring(D+v.length),O=[],N&&O.push(N),O.push(_),A&&(b(x=[A]),O.push.apply(O,x)),typeof B=="string"?(w.splice.apply(w,[S,1].concat(O)),S+=O.length-1):B.content=O)):(D=B.content,Array.isArray(D)?b(D):b([D]))}}(p),new n.Token(g,p,"language-"+g,f)}n.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),e].filter(Boolean);var c={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function h(f){return typeof f=="string"?f:Array.isArray(f)?f.map(h).join(""):h(f.content)}n.hooks.add("after-tokenize",function(f){f.language in c&&function y(g){for(var d=0,u=g.length;d<u;d++){var p,m,b,w=g[d];typeof w!="string"&&(p=w.content,Array.isArray(p)?w.type==="template-string"?(w=p[1],p.length===3&&typeof w!="string"&&w.type==="embedded-code"&&(m=h(w),w=w.alias,w=Array.isArray(w)?w[0]:w,b=n.languages[w])&&(p[1]=l(m,b,w))):y(p):typeof p!="string"&&y([p]))}}(f.tokens)})}(k),function(n){n.languages.typescript=n.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),n.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var e=n.languages.extend("typescript",{});delete e["class-name"],n.languages.typescript["class-name"].inside=e,n.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),n.languages.ts=n.languages.typescript}(k),function(n){var e=n.languages.javascript,t=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+t+"\\s+)?)";n.languages.jsdoc=n.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),n.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:e,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return t})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+t),lookbehind:!0,inside:{string:e.string,number:e.number,boolean:e.boolean,keyword:n.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:e,alias:"language-javascript"}}}}),n.languages.javadoclike.addSupport("javascript",n.languages.jsdoc)}(k),function(n){n.languages.flow=n.languages.extend("javascript",{}),n.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),n.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete n.languages.flow.parameter,n.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(n.languages.flow.keyword)||(n.languages.flow.keyword=[n.languages.flow.keyword]),n.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(k),k.languages.n4js=k.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),k.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),k.languages.n4jsd=k.languages.n4js,function(n){function e(a,o){return RegExp(a.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),o)}n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),n.languages.insertBefore("javascript","keyword",{imports:{pattern:e(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:e(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:e(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var t=["function","function-variable","method","method-variable","property-access"],s=0;s<t.length;s++){var i=t[s],r=n.languages.javascript[i],i=(r=n.util.type(r)==="RegExp"?n.languages.javascript[i]={pattern:r}:r).inside||{};(r.inside=i)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(k),function(n){var e=n.util.clone(n.languages.javascript),t=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,s=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,r=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(l,c){return l=l.replace(/<S>/g,function(){return t}).replace(/<BRACES>/g,function(){return s}).replace(/<SPREAD>/g,function(){return r}),RegExp(l,c)}r=i(r).source,n.languages.jsx=n.languages.extend("markup",e),n.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=e.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);function a(l){for(var c=[],h=0;h<l.length;h++){var f=l[h],y=!1;typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?0<c.length&&c[c.length-1].tagName===o(f.content[0].content[1])&&c.pop():f.content[f.content.length-1].content!=="/>"&&c.push({tagName:o(f.content[0].content[1]),openedBraces:0}):0<c.length&&f.type==="punctuation"&&f.content==="{"?c[c.length-1].openedBraces++:0<c.length&&0<c[c.length-1].openedBraces&&f.type==="punctuation"&&f.content==="}"?c[c.length-1].openedBraces--:y=!0),(y||typeof f=="string")&&0<c.length&&c[c.length-1].openedBraces===0&&(y=o(f),h<l.length-1&&(typeof l[h+1]=="string"||l[h+1].type==="plain-text")&&(y+=o(l[h+1]),l.splice(h+1,1)),0<h&&(typeof l[h-1]=="string"||l[h-1].type==="plain-text")&&(y=o(l[h-1])+y,l.splice(h-1,1),h--),l[h]=new n.Token("plain-text",y,null,y)),f.content&&typeof f.content!="string"&&a(f.content)}}var o=function(l){return l?typeof l=="string"?l:typeof l.content=="string"?l.content:l.content.map(o).join(""):""};n.hooks.add("after-tokenize",function(l){l.language!=="jsx"&&l.language!=="tsx"||a(l.tokens)})}(k),function(n){var e=n.util.clone(n.languages.typescript),e=(n.languages.tsx=n.languages.extend("jsx",e),delete n.languages.tsx.parameter,delete n.languages.tsx["literal-property"],n.languages.tsx.tag);e.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+e.pattern.source+")",e.pattern.flags),e.lookbehind=!0}(k),k.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},k.languages.swift["string-literal"].forEach(function(n){n.inside.interpolation.inside=k.languages.swift}),function(n){n.languages.kotlin=n.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete n.languages.kotlin["class-name"];var e={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:n.languages.kotlin}};n.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:e},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:e},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete n.languages.kotlin.string,n.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),n.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),n.languages.kt=n.languages.kotlin,n.languages.kts=n.languages.kotlin}(k),k.languages.c=k.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),k.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),k.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},k.languages.c.string],char:k.languages.c.char,comment:k.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:k.languages.c}}}}),k.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete k.languages.c.boolean,k.languages.objectivec=k.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete k.languages.objectivec["class-name"],k.languages.objc=k.languages.objectivec,k.languages.reason=k.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),k.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete k.languages.reason.function,function(n){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,t=0;t<2;t++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string}(k),k.languages.go=k.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),k.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete k.languages.go["class-name"],function(n){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,t=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});n.languages.cpp=n.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),n.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return t})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),n.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n.languages.cpp}}}}),n.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:n.languages.extend("cpp",{})}}),n.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},n.languages.cpp["base-clause"])}(k),k.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},k.languages.python["string-interpolation"].inside.interpolation.inside.rest=k.languages.python,k.languages.py=k.languages.python,k.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},k.languages.webmanifest=k.languages.json;var Gt={};Qs(Gt,{dracula:()=>rr,duotoneDark:()=>ar,duotoneLight:()=>lr,github:()=>ur,gruvboxMaterialDark:()=>jr,gruvboxMaterialLight:()=>Kr,jettwaveDark:()=>Cr,jettwaveLight:()=>$r,nightOwl:()=>pr,nightOwlLight:()=>hr,oceanicNext:()=>yr,okaidia:()=>br,oneDark:()=>Rr,oneLight:()=>Br,palenight:()=>kr,shadesOfPurple:()=>Sr,synthwave84:()=>Ar,ultramin:()=>Nr,vsDark:()=>zn,vsLight:()=>Ir});var sr={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},rr=sr,ir={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},ar=ir,or={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},lr=or,cr={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},ur=cr,fr={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},pr=fr,dr={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},hr=dr,te={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},gr={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:te.keyword}},{types:["attr-value"],style:{color:te.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:te.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:te.primitive}},{types:["boolean"],style:{color:te.boolean}},{types:["tag"],style:{color:te.tag}},{types:["string"],style:{color:te.string}},{types:["punctuation"],style:{color:te.string}},{types:["selector","char","builtin","inserted"],style:{color:te.char}},{types:["function"],style:{color:te.function}},{types:["operator","entity","url","variable"],style:{color:te.variable}},{types:["keyword"],style:{color:te.keyword}},{types:["atrule","class-name"],style:{color:te.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},yr=gr,mr={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},br=mr,wr={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},kr=wr,vr={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},Sr=vr,Er={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},Ar=Er,_r={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},Nr=_r,Or={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},zn=Or,Tr={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},Ir=Tr,Lr={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},Cr=Lr,Fr={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},$r=Fr,xr={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},Rr=xr,Dr={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},Br=Dr,Pr={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},jr=Pr,Mr={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},Kr=Mr,Ur=n=>K.useCallback(e=>{var t=e,{className:s,style:r,line:i}=t,a=qn(t,["className","style","line"]);const o=Nt(pe({},a),{className:jn.clsx("token-line",s)});return typeof n=="object"&&"plain"in n&&(o.style=n.plain),typeof r=="object"&&(o.style=pe(pe({},o.style||{}),r)),o},[n]),qr=n=>{const e=K.useCallback(({types:t,empty:s})=>{if(n!=null){{if(t.length===1&&t[0]==="plain")return s!=null?{display:"inline-block"}:void 0;if(t.length===1&&s!=null)return n[t[0]]}return Object.assign(s!=null?{display:"inline-block"}:{},...t.map(r=>n[r]))}},[n]);return K.useCallback(t=>{var s=t,{token:r,className:i,style:a}=s,o=qn(s,["token","className","style"]);const l=Nt(pe({},o),{className:jn.clsx("token",...r.types,i),children:r.content,style:e(r)});return a!=null&&(l.style=pe(pe({},l.style||{}),a)),l},[e])},zr=/\r\n|\r|\n/,_n=n=>{n.length===0?n.push({types:["plain"],content:`
34
- `,empty:!0}):n.length===1&&n[0].content===""&&(n[0].content=`
35
- `,n[0].empty=!0)},Nn=(n,e)=>{const t=n.length;return t>0&&n[t-1]===e?n:n.concat(e)},Gr=n=>{const e=[[]],t=[n],s=[0],r=[n.length];let i=0,a=0,o=[];const l=[o];for(;a>-1;){for(;(i=s[a]++)<r[a];){let c,h=e[a];const y=t[a][i];if(typeof y=="string"?(h=a>0?h:["plain"],c=y):(h=Nn(h,y.type),y.alias&&(h=Nn(h,y.alias)),c=y.content),typeof c!="string"){a++,e.push(h),t.push(c),s.push(0),r.push(c.length);continue}const g=c.split(zr),d=g.length;o.push({types:h,content:g[0]});for(let u=1;u<d;u++)_n(o),l.push(o=[]),o.push({types:h,content:g[u]})}a--,e.pop(),t.pop(),s.pop(),r.pop()}return _n(o),l},On=Gr,Yr=({prism:n,code:e,grammar:t,language:s})=>K.useMemo(()=>{if(t==null)return On([e]);const r={code:e,grammar:t,language:s,tokens:[]};return n.hooks.run("before-tokenize",r),r.tokens=n.tokenize(e,t),n.hooks.run("after-tokenize",r),On(r.tokens)},[e,t,s,n]),Vr=(n,e)=>{const{plain:t}=n,s=n.styles.reduce((r,i)=>{const{languages:a,style:o}=i;return a&&!a.includes(e)||i.types.forEach(l=>{const c=pe(pe({},r[l]),o);r[l]=c}),r},{});return s.root=t,s.plain=Nt(pe({},t),{backgroundColor:void 0}),s},Wr=Vr,Hr=({children:n,language:e,code:t,theme:s,prism:r})=>{const i=e.toLowerCase(),a=Wr(s,i),o=Ur(a),l=qr(a),c=r.languages[i],h=Yr({prism:r,language:i,code:t,grammar:c});return n({tokens:h,className:`prism-code language-${i}`,style:a!=null?a.root:{},getLineProps:o,getTokenProps:l})},Zr=n=>K.createElement(Hr,Nt(pe({},n),{prism:n.prism||k,theme:n.theme||zn,code:n.code,language:n.language}));/*! Bundled license information:
36
-
37
- prismjs/prism.js:
38
- (**
39
- * Prism: Lightweight, robust, elegant syntax highlighting
40
- *
41
- * @license MIT <https://opensource.org/licenses/MIT>
42
- * @author Lea Verou <https://lea.verou.me>
43
- * @namespace
44
- * @public
45
- *)
46
- */const Qt=Symbol.for("yaml.alias"),Yt=Symbol.for("yaml.document"),Ae=Symbol.for("yaml.map"),Gn=Symbol.for("yaml.pair"),he=Symbol.for("yaml.scalar"),Ue=Symbol.for("yaml.seq"),ae=Symbol.for("yaml.node.type"),qe=n=>!!n&&typeof n=="object"&&n[ae]===Qt,Ot=n=>!!n&&typeof n=="object"&&n[ae]===Yt,at=n=>!!n&&typeof n=="object"&&n[ae]===Ae,G=n=>!!n&&typeof n=="object"&&n[ae]===Gn,P=n=>!!n&&typeof n=="object"&&n[ae]===he,ot=n=>!!n&&typeof n=="object"&&n[ae]===Ue;function q(n){if(n&&typeof n=="object")switch(n[ae]){case Ae:case Ue:return!0}return!1}function z(n){if(n&&typeof n=="object")switch(n[ae]){case Qt:case Ae:case he:case Ue:return!0}return!1}const Yn=n=>(P(n)||q(n))&&!!n.anchor,Ne=Symbol("break visit"),Jr=Symbol("skip children"),nt=Symbol("remove node");function Le(n,e){const t=Xr(e);Ot(n)?Re(null,n.contents,t,Object.freeze([n]))===nt&&(n.contents=null):Re(null,n,t,Object.freeze([]))}Le.BREAK=Ne;Le.SKIP=Jr;Le.REMOVE=nt;function Re(n,e,t,s){const r=Qr(n,e,t,s);if(z(r)||G(r))return ei(n,s,r),Re(n,r,t,s);if(typeof r!="symbol"){if(q(e)){s=Object.freeze(s.concat(e));for(let i=0;i<e.items.length;++i){const a=Re(i,e.items[i],t,s);if(typeof a=="number")i=a-1;else{if(a===Ne)return Ne;a===nt&&(e.items.splice(i,1),i-=1)}}}else if(G(e)){s=Object.freeze(s.concat(e));const i=Re("key",e.key,t,s);if(i===Ne)return Ne;i===nt&&(e.key=null);const a=Re("value",e.value,t,s);if(a===Ne)return Ne;a===nt&&(e.value=null)}}return r}function Xr(n){return typeof n=="object"&&(n.Collection||n.Node||n.Value)?Object.assign({Alias:n.Node,Map:n.Node,Scalar:n.Node,Seq:n.Node},n.Value&&{Map:n.Value,Scalar:n.Value,Seq:n.Value},n.Collection&&{Map:n.Collection,Seq:n.Collection},n):n}function Qr(n,e,t,s){var r,i,a,o,l;if(typeof t=="function")return t(n,e,s);if(at(e))return(r=t.Map)==null?void 0:r.call(t,n,e,s);if(ot(e))return(i=t.Seq)==null?void 0:i.call(t,n,e,s);if(G(e))return(a=t.Pair)==null?void 0:a.call(t,n,e,s);if(P(e))return(o=t.Scalar)==null?void 0:o.call(t,n,e,s);if(qe(e))return(l=t.Alias)==null?void 0:l.call(t,n,e,s)}function ei(n,e,t){const s=e[e.length-1];if(q(s))s.items[n]=t;else if(G(s))n==="key"?s.key=t:s.value=t;else if(Ot(s))s.contents=t;else{const r=qe(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${r} parent`)}}const ti={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},ni=n=>n.replace(/[!,[\]{}]/g,e=>ti[e]);class Z{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Z.defaultYaml,e),this.tags=Object.assign({},Z.defaultTags,t)}clone(){const e=new Z(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new Z(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Z.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Z.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:Z.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Z.defaultTags),this.atNextDocument=!1);const s=e.trim().split(/[ \t]+/),r=s.shift();switch(r){case"%TAG":{if(s.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[i,a]=s;return this.tags[i]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;const[i]=s;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const a=/^\d+\.\d+$/.test(i);return t(6,`Unsupported YAML version ${i}`,a),!1}}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const a=e.slice(2,-1);return a==="!"||a==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),a)}const[,s,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);const i=this.tags[s];if(i)try{return i+decodeURIComponent(r)}catch(a){return t(String(a)),null}return s==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,s]of Object.entries(this.tags))if(e.startsWith(s))return t+ni(e.substring(s.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let r;if(e&&s.length>0&&z(e.contents)){const i={};Le(e.contents,(a,o)=>{z(o)&&o.tag&&(i[o.tag]=!0)}),r=Object.keys(i)}else r=[];for(const[i,a]of s)i==="!!"&&a==="tag:yaml.org,2002:"||(!e||r.some(o=>o.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
47
- `)}}Z.defaultYaml={explicit:!1,version:"1.2"};Z.defaultTags={"!!":"tag:yaml.org,2002:"};function Vn(n){if(/[\x00-\x19\s,[\]{}]/.test(n)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(n)}`;throw new Error(t)}return!0}function Wn(n){const e=new Set;return Le(n,{Value(t,s){s.anchor&&e.add(s.anchor)}}),e}function Hn(n,e){for(let t=1;;++t){const s=`${n}${t}`;if(!e.has(s))return s}}function si(n,e){const t=[],s=new Map;let r=null;return{onAnchor:i=>{t.push(i),r??(r=Wn(n));const a=Hn(e,r);return r.add(a),a},setAnchors:()=>{for(const i of t){const a=s.get(i);if(typeof a=="object"&&a.anchor&&(P(a.node)||q(a.node)))a.node.anchor=a.anchor;else{const o=new Error("Failed to resolve repeated object (this should not happen)");throw o.source=i,o}}},sourceObjects:s}}function De(n,e,t,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let r=0,i=s.length;r<i;++r){const a=s[r],o=De(n,s,String(r),a);o===void 0?delete s[r]:o!==a&&(s[r]=o)}else if(s instanceof Map)for(const r of Array.from(s.keys())){const i=s.get(r),a=De(n,s,r,i);a===void 0?s.delete(r):a!==i&&s.set(r,a)}else if(s instanceof Set)for(const r of Array.from(s)){const i=De(n,s,r,r);i===void 0?s.delete(r):i!==r&&(s.delete(r),s.add(i))}else for(const[r,i]of Object.entries(s)){const a=De(n,s,r,i);a===void 0?delete s[r]:a!==i&&(s[r]=a)}return n.call(e,t,s)}function ie(n,e,t){if(Array.isArray(n))return n.map((s,r)=>ie(s,String(r),t));if(n&&typeof n.toJSON=="function"){if(!t||!Yn(n))return n.toJSON(e,t);const s={aliasCount:0,count:1,res:void 0};t.anchors.set(n,s),t.onCreate=i=>{s.res=i,delete t.onCreate};const r=n.toJSON(e,t);return t.onCreate&&t.onCreate(r),r}return typeof n=="bigint"&&!(t!=null&&t.keep)?Number(n):n}class en{constructor(e){Object.defineProperty(this,ae,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:s,onAnchor:r,reviver:i}={}){if(!Ot(e))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},o=ie(this,"",a);if(typeof r=="function")for(const{count:l,res:c}of a.anchors.values())r(c,l);return typeof i=="function"?De(i,{"":o},"",o):o}}class tn extends en{constructor(e){super(Qt),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){if((t==null?void 0:t.maxAliasCount)===0)throw new ReferenceError("Alias resolution is disabled");let s;t!=null&&t.aliasResolveCache?s=t.aliasResolveCache:(s=[],Le(e,{Node:(i,a)=>{(qe(a)||Yn(a))&&s.push(a)}}),t&&(t.aliasResolveCache=s));let r;for(const i of s){if(i===this)break;i.anchor===this.source&&(r=i)}return r}toJSON(e,t){if(!t)return{source:this.source};const{anchors:s,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let o=s.get(a);if(o||(ie(a,null,t),o=s.get(a)),(o==null?void 0:o.res)===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=bt(r,a,s)),o.count*o.aliasCount>i)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return o.res}toString(e,t,s){const r=`*${this.source}`;if(e){if(Vn(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(e.implicitKey)return`${r} `}return r}}function bt(n,e,t){if(qe(e)){const s=e.resolve(n),r=t&&s&&t.get(s);return r?r.count*r.aliasCount:0}else if(q(e)){let s=0;for(const r of e.items){const i=bt(n,r,t);i>s&&(s=i)}return s}else if(G(e)){const s=bt(n,e.key,t),r=bt(n,e.value,t);return Math.max(s,r)}return 1}const Zn=n=>!n||typeof n!="function"&&typeof n!="object";class T extends en{constructor(e){super(he),this.value=e}toJSON(e,t){return t!=null&&t.keep?this.value:ie(this.value,e,t)}toString(){return String(this.value)}}T.BLOCK_FOLDED="BLOCK_FOLDED";T.BLOCK_LITERAL="BLOCK_LITERAL";T.PLAIN="PLAIN";T.QUOTE_DOUBLE="QUOTE_DOUBLE";T.QUOTE_SINGLE="QUOTE_SINGLE";const ri="tag:yaml.org,2002:";function ii(n,e,t){if(e){const s=t.filter(i=>i.tag===e),r=s.find(i=>!i.format)??s[0];if(!r)throw new Error(`Tag ${e} not found`);return r}return t.find(s=>{var r;return((r=s.identify)==null?void 0:r.call(s,n))&&!s.format})}function rt(n,e,t){var f,y,g;if(Ot(n)&&(n=n.contents),z(n))return n;if(G(n)){const d=(y=(f=t.schema[Ae]).createNode)==null?void 0:y.call(f,t.schema,null,t);return d.items.push(n),d}(n instanceof String||n instanceof Number||n instanceof Boolean||typeof BigInt<"u"&&n instanceof BigInt)&&(n=n.valueOf());const{aliasDuplicateObjects:s,onAnchor:r,onTagObj:i,schema:a,sourceObjects:o}=t;let l;if(s&&n&&typeof n=="object"){if(l=o.get(n),l)return l.anchor??(l.anchor=r(n)),new tn(l.anchor);l={anchor:null,node:null},o.set(n,l)}e!=null&&e.startsWith("!!")&&(e=ri+e.slice(2));let c=ii(n,e,a.tags);if(!c){if(n&&typeof n.toJSON=="function"&&(n=n.toJSON()),!n||typeof n!="object"){const d=new T(n);return l&&(l.node=d),d}c=n instanceof Map?a[Ae]:Symbol.iterator in Object(n)?a[Ue]:a[Ae]}i&&(i(c),delete t.onTagObj);const h=c!=null&&c.createNode?c.createNode(t.schema,n,t):typeof((g=c==null?void 0:c.nodeClass)==null?void 0:g.from)=="function"?c.nodeClass.from(t.schema,n,t):new T(n);return e?h.tag=e:c.default||(h.tag=c.tag),l&&(l.node=h),h}function St(n,e,t){let s=t;for(let r=e.length-1;r>=0;--r){const i=e[r];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const a=[];a[i]=s,s=a}else s=new Map([[i,s]])}return rt(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:n,sourceObjects:new Map})}const et=n=>n==null||typeof n=="object"&&!!n[Symbol.iterator]().next().done;class Jn extends en{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(s=>z(s)||G(s)?s.clone(e):s),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(et(e))this.add(t);else{const[s,...r]=e,i=this.get(s,!0);if(q(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(s,St(this.schema,r,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${r}`)}}deleteIn(e){const[t,...s]=e;if(s.length===0)return this.delete(t);const r=this.get(t,!0);if(q(r))return r.deleteIn(s);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${s}`)}getIn(e,t){const[s,...r]=e,i=this.get(s,!0);return r.length===0?!t&&P(i)?i.value:i:q(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!G(t))return!1;const s=t.value;return s==null||e&&P(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(e){const[t,...s]=e;if(s.length===0)return this.has(t);const r=this.get(t,!0);return q(r)?r.hasIn(s):!1}setIn(e,t){const[s,...r]=e;if(r.length===0)this.set(s,t);else{const i=this.get(s,!0);if(q(i))i.setIn(r,t);else if(i===void 0&&this.schema)this.set(s,St(this.schema,r,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${r}`)}}}const ai=n=>n.replace(/^(?!$)(?: $)?/gm,"#");function be(n,e){return/^\n+$/.test(n)?n.substring(1):e?n.replace(/^(?! *$)/gm,e):n}const Oe=(n,e,t)=>n.endsWith(`
48
- `)?be(t,e):t.includes(`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const q=require("react/jsx-runtime"),B=require("react"),ce=require("./index-Isl3QL-U.cjs"),ht=Symbol.for("yaml.alias"),ot=Symbol.for("yaml.document"),z=Symbol.for("yaml.map"),Rt=Symbol.for("yaml.pair"),G=Symbol.for("yaml.scalar"),ye=Symbol.for("yaml.seq"),V=Symbol.for("yaml.node.type"),be=n=>!!n&&typeof n=="object"&&n[V]===ht,Je=n=>!!n&&typeof n=="object"&&n[V]===ot,$e=n=>!!n&&typeof n=="object"&&n[V]===z,v=n=>!!n&&typeof n=="object"&&n[V]===Rt,L=n=>!!n&&typeof n=="object"&&n[V]===G,Ce=n=>!!n&&typeof n=="object"&&n[V]===ye;function $(n){if(n&&typeof n=="object")switch(n[V]){case z:case ye:return!0}return!1}function C(n){if(n&&typeof n=="object")switch(n[V]){case ht:case z:case G:case ye:return!0}return!1}const qt=n=>(L(n)||$(n))&&!!n.anchor,x=Symbol("break visit"),Ls=Symbol("skip children"),Te=Symbol("remove node");function ne(n,e){const t=$s(e);Je(n)?fe(null,n.contents,t,Object.freeze([n]))===Te&&(n.contents=null):fe(null,n,t,Object.freeze([]))}ne.BREAK=x;ne.SKIP=Ls;ne.REMOVE=Te;function fe(n,e,t,s){const i=Cs(n,e,t,s);if(C(i)||v(i))return vs(n,s,i),fe(n,i,t,s);if(typeof i!="symbol"){if($(e)){s=Object.freeze(s.concat(e));for(let r=0;r<e.items.length;++r){const o=fe(r,e.items[r],t,s);if(typeof o=="number")r=o-1;else{if(o===x)return x;o===Te&&(e.items.splice(r,1),r-=1)}}}else if(v(e)){s=Object.freeze(s.concat(e));const r=fe("key",e.key,t,s);if(r===x)return x;r===Te&&(e.key=null);const o=fe("value",e.value,t,s);if(o===x)return x;o===Te&&(e.value=null)}}return i}function $s(n){return typeof n=="object"&&(n.Collection||n.Node||n.Value)?Object.assign({Alias:n.Node,Map:n.Node,Scalar:n.Node,Seq:n.Node},n.Value&&{Map:n.Value,Scalar:n.Value,Seq:n.Value},n.Collection&&{Map:n.Collection,Seq:n.Collection},n):n}function Cs(n,e,t,s){var i,r,o,l,a;if(typeof t=="function")return t(n,e,s);if($e(e))return(i=t.Map)==null?void 0:i.call(t,n,e,s);if(Ce(e))return(r=t.Seq)==null?void 0:r.call(t,n,e,s);if(v(e))return(o=t.Pair)==null?void 0:o.call(t,n,e,s);if(L(e))return(l=t.Scalar)==null?void 0:l.call(t,n,e,s);if(be(e))return(a=t.Alias)==null?void 0:a.call(t,n,e,s)}function vs(n,e,t){const s=e[e.length-1];if($(s))s.items[n]=t;else if(v(s))n==="key"?s.key=t:s.value=t;else if(Je(s))s.contents=t;else{const i=be(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const _s={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Ms=n=>n.replace(/[!,[\]{}]/g,e=>_s[e]);class K{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},K.defaultYaml,e),this.tags=Object.assign({},K.defaultTags,t)}clone(){const e=new K(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new K(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:K.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},K.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:K.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},K.defaultTags),this.atNextDocument=!1);const s=e.trim().split(/[ \t]+/),i=s.shift();switch(i){case"%TAG":{if(s.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[r,o]=s;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;const[r]=s;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{const o=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,o),!1}}default:return t(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}const[,s,i]=e.match(/^(.*!)([^!]*)$/s);i||t(`The ${e} tag has no suffix`);const r=this.tags[s];if(r)try{return r+decodeURIComponent(i)}catch(o){return t(String(o)),null}return s==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,s]of Object.entries(this.tags))if(e.startsWith(s))return t+Ms(e.substring(s.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let i;if(e&&s.length>0&&C(e.contents)){const r={};ne(e.contents,(o,l)=>{C(l)&&l.tag&&(r[l.tag]=!0)}),i=Object.keys(r)}else i=[];for(const[r,o]of s)r==="!!"&&o==="tag:yaml.org,2002:"||(!e||i.some(l=>l.startsWith(o)))&&t.push(`%TAG ${r} ${o}`);return t.join(`
2
+ `)}}K.defaultYaml={explicit:!1,version:"1.2"};K.defaultTags={"!!":"tag:yaml.org,2002:"};function Ft(n){if(/[\x00-\x19\s,[\]{}]/.test(n)){const t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(n)}`;throw new Error(t)}return!0}function Ut(n){const e=new Set;return ne(n,{Value(t,s){s.anchor&&e.add(s.anchor)}}),e}function Vt(n,e){for(let t=1;;++t){const s=`${n}${t}`;if(!e.has(s))return s}}function Bs(n,e){const t=[],s=new Map;let i=null;return{onAnchor:r=>{t.push(r),i??(i=Ut(n));const o=Vt(e,i);return i.add(o),o},setAnchors:()=>{for(const r of t){const o=s.get(r);if(typeof o=="object"&&o.anchor&&(L(o.node)||$(o.node)))o.node.anchor=o.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=r,l}}},sourceObjects:s}}function ue(n,e,t,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let i=0,r=s.length;i<r;++i){const o=s[i],l=ue(n,s,String(i),o);l===void 0?delete s[i]:l!==o&&(s[i]=l)}else if(s instanceof Map)for(const i of Array.from(s.keys())){const r=s.get(i),o=ue(n,s,i,r);o===void 0?s.delete(i):o!==r&&s.set(i,o)}else if(s instanceof Set)for(const i of Array.from(s)){const r=ue(n,s,i,i);r===void 0?s.delete(i):r!==i&&(s.delete(i),s.add(r))}else for(const[i,r]of Object.entries(s)){const o=ue(n,s,i,r);o===void 0?delete s[i]:o!==r&&(s[i]=o)}return n.call(e,t,s)}function U(n,e,t){if(Array.isArray(n))return n.map((s,i)=>U(s,String(i),t));if(n&&typeof n.toJSON=="function"){if(!t||!qt(n))return n.toJSON(e,t);const s={aliasCount:0,count:1,res:void 0};t.anchors.set(n,s),t.onCreate=r=>{s.res=r,delete t.onCreate};const i=n.toJSON(e,t);return t.onCreate&&t.onCreate(i),i}return typeof n=="bigint"&&!(t!=null&&t.keep)?Number(n):n}class dt{constructor(e){Object.defineProperty(this,V,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:s,onAnchor:i,reviver:r}={}){if(!Je(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},l=U(this,"",o);if(typeof i=="function")for(const{count:a,res:c}of o.anchors.values())i(c,a);return typeof r=="function"?ue(r,{"":l},"",l):l}}class pt extends dt{constructor(e){super(ht),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){if((t==null?void 0:t.maxAliasCount)===0)throw new ReferenceError("Alias resolution is disabled");let s;t!=null&&t.aliasResolveCache?s=t.aliasResolveCache:(s=[],ne(e,{Node:(r,o)=>{(be(o)||qt(o))&&s.push(o)}}),t&&(t.aliasResolveCache=s));let i;for(const r of s){if(r===this)break;r.anchor===this.source&&(i=r)}return i}toJSON(e,t){if(!t)return{source:this.source};const{anchors:s,doc:i,maxAliasCount:r}=t,o=this.resolve(i,t);if(!o){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(a)}let l=s.get(o);if(l||(U(o,null,t),l=s.get(o)),(l==null?void 0:l.res)===void 0){const a="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(a)}if(r>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=De(i,o,s)),l.count*l.aliasCount>r)){const a="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(a)}return l.res}toString(e,t,s){const i=`*${this.source}`;if(e){if(Ft(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${i} `}return i}}function De(n,e,t){if(be(e)){const s=e.resolve(n),i=t&&s&&t.get(s);return i?i.count*i.aliasCount:0}else if($(e)){let s=0;for(const i of e.items){const r=De(n,i,t);r>s&&(s=r)}return s}else if(v(e)){const s=De(n,e.key,t),i=De(n,e.value,t);return Math.max(s,i)}return 1}const Jt=n=>!n||typeof n!="function"&&typeof n!="object";class A extends dt{constructor(e){super(G),this.value=e}toJSON(e,t){return t!=null&&t.keep?this.value:U(this.value,e,t)}toString(){return String(this.value)}}A.BLOCK_FOLDED="BLOCK_FOLDED";A.BLOCK_LITERAL="BLOCK_LITERAL";A.PLAIN="PLAIN";A.QUOTE_DOUBLE="QUOTE_DOUBLE";A.QUOTE_SINGLE="QUOTE_SINGLE";const Ps="tag:yaml.org,2002:";function Ks(n,e,t){if(e){const s=t.filter(r=>r.tag===e),i=s.find(r=>!r.format)??s[0];if(!i)throw new Error(`Tag ${e} not found`);return i}return t.find(s=>{var i;return((i=s.identify)==null?void 0:i.call(s,n))&&!s.format})}function Ee(n,e,t){var f,d,u;if(Je(n)&&(n=n.contents),C(n))return n;if(v(n)){const g=(d=(f=t.schema[z]).createNode)==null?void 0:d.call(f,t.schema,null,t);return g.items.push(n),g}(n instanceof String||n instanceof Number||n instanceof Boolean||typeof BigInt<"u"&&n instanceof BigInt)&&(n=n.valueOf());const{aliasDuplicateObjects:s,onAnchor:i,onTagObj:r,schema:o,sourceObjects:l}=t;let a;if(s&&n&&typeof n=="object"){if(a=l.get(n),a)return a.anchor??(a.anchor=i(n)),new pt(a.anchor);a={anchor:null,node:null},l.set(n,a)}e!=null&&e.startsWith("!!")&&(e=Ps+e.slice(2));let c=Ks(n,e,o.tags);if(!c){if(n&&typeof n.toJSON=="function"&&(n=n.toJSON()),!n||typeof n!="object"){const g=new A(n);return a&&(a.node=g),g}c=n instanceof Map?o[z]:Symbol.iterator in Object(n)?o[ye]:o[z]}r&&(r(c),delete t.onTagObj);const p=c!=null&&c.createNode?c.createNode(t.schema,n,t):typeof((u=c==null?void 0:c.nodeClass)==null?void 0:u.from)=="function"?c.nodeClass.from(t.schema,n,t):new A(n);return e?p.tag=e:c.default||(p.tag=c.tag),a&&(a.node=p),p}function Fe(n,e,t){let s=t;for(let i=e.length-1;i>=0;--i){const r=e[i];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){const o=[];o[r]=s,s=o}else s=new Map([[r,s]])}return Ee(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:n,sourceObjects:new Map})}const Oe=n=>n==null||typeof n=="object"&&!!n[Symbol.iterator]().next().done;class Yt extends dt{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(s=>C(s)||v(s)?s.clone(e):s),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Oe(e))this.add(t);else{const[s,...i]=e,r=this.get(s,!0);if($(r))r.addIn(i,t);else if(r===void 0&&this.schema)this.set(s,Fe(this.schema,i,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${i}`)}}deleteIn(e){const[t,...s]=e;if(s.length===0)return this.delete(t);const i=this.get(t,!0);if($(i))return i.deleteIn(s);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${s}`)}getIn(e,t){const[s,...i]=e,r=this.get(s,!0);return i.length===0?!t&&L(r)?r.value:r:$(r)?r.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!v(t))return!1;const s=t.value;return s==null||e&&L(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(e){const[t,...s]=e;if(s.length===0)return this.has(t);const i=this.get(t,!0);return $(i)?i.hasIn(s):!1}setIn(e,t){const[s,...i]=e;if(i.length===0)this.set(s,t);else{const r=this.get(s,!0);if($(r))r.setIn(i,t);else if(r===void 0&&this.schema)this.set(s,Fe(this.schema,i,t));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${i}`)}}}const js=n=>n.replace(/^(?!$)(?: $)?/gm,"#");function H(n,e){return/^\n+$/.test(n)?n.substring(1):e?n.replace(/^(?! *$)/gm,e):n}const ee=(n,e,t)=>n.endsWith(`
3
+ `)?H(t,e):t.includes(`
49
4
  `)?`
50
- `+be(t,e):(n.endsWith(" ")?"":" ")+t,Xn="flow",Vt="block",wt="quoted";function Tt(n,e,t="flow",{indentAtStart:s,lineWidth:r=80,minContentWidth:i=20,onFold:a,onOverflow:o}={}){if(!r||r<0)return n;r<i&&(i=0);const l=Math.max(1+i,1+r-e.length);if(n.length<=l)return n;const c=[],h={};let f=r-e.length;typeof s=="number"&&(s>r-Math.max(2,i)?c.push(0):f=r-s);let y,g,d=!1,u=-1,p=-1,m=-1;t===Vt&&(u=Tn(n,u,e.length),u!==-1&&(f=u+l));for(let w;w=n[u+=1];){if(t===wt&&w==="\\"){switch(p=u,n[u+1]){case"x":u+=3;break;case"u":u+=5;break;case"U":u+=9;break;default:u+=1}m=u}if(w===`
51
- `)t===Vt&&(u=Tn(n,u,e.length)),f=u+e.length+l,y=void 0;else{if(w===" "&&g&&g!==" "&&g!==`
52
- `&&g!==" "){const S=n[u+1];S&&S!==" "&&S!==`
53
- `&&S!==" "&&(y=u)}if(u>=f)if(y)c.push(y),f=y+l,y=void 0;else if(t===wt){for(;g===" "||g===" ";)g=w,w=n[u+=1],d=!0;const S=u>m+1?u-2:p-1;if(h[S])return n;c.push(S),h[S]=!0,f=S+l,y=void 0}else d=!0}g=w}if(d&&o&&o(),c.length===0)return n;a&&a();let b=n.slice(0,c[0]);for(let w=0;w<c.length;++w){const S=c[w],v=c[w+1]||n.length;S===0?b=`
54
- ${e}${n.slice(0,v)}`:(t===wt&&h[S]&&(b+=`${n[S]}\\`),b+=`
55
- ${e}${n.slice(S+1,v)}`)}return b}function Tn(n,e,t){let s=e,r=e+1,i=n[r];for(;i===" "||i===" ";)if(e<r+t)i=n[++e];else{do i=n[++e];while(i&&i!==`
56
- `);s=e,r=e+1,i=n[r]}return s}const It=(n,e)=>({indentAtStart:e?n.indent.length:n.indentAtStart,lineWidth:n.options.lineWidth,minContentWidth:n.options.minContentWidth}),Lt=n=>/^(%|---|\.\.\.)/m.test(n);function oi(n,e,t){if(!e||e<0)return!1;const s=e-t,r=n.length;if(r<=s)return!1;for(let i=0,a=0;i<r;++i)if(n[i]===`
57
- `){if(i-a>s)return!0;if(a=i+1,r-a<=s)return!1}return!0}function st(n,e){const t=JSON.stringify(n);if(e.options.doubleQuotedAsJSON)return t;const{implicitKey:s}=e,r=e.options.doubleQuotedMinMultiLineLength,i=e.indent||(Lt(n)?" ":"");let a="",o=0;for(let l=0,c=t[l];c;c=t[++l])if(c===" "&&t[l+1]==="\\"&&t[l+2]==="n"&&(a+=t.slice(o,l)+"\\ ",l+=1,o=l,c="\\"),c==="\\")switch(t[l+1]){case"u":{a+=t.slice(o,l);const h=t.substr(l+2,4);switch(h){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:h.substr(0,2)==="00"?a+="\\x"+h.substr(2):a+=t.substr(l,6)}l+=5,o=l+1}break;case"n":if(s||t[l+2]==='"'||t.length<r)l+=1;else{for(a+=t.slice(o,l)+`
5
+ `+H(t,e):(n.endsWith(" ")?"":" ")+t,Gt="flow",lt="block",Re="quoted";function Ye(n,e,t="flow",{indentAtStart:s,lineWidth:i=80,minContentWidth:r=20,onFold:o,onOverflow:l}={}){if(!i||i<0)return n;i<r&&(r=0);const a=Math.max(1+r,1+i-e.length);if(n.length<=a)return n;const c=[],p={};let f=i-e.length;typeof s=="number"&&(s>i-Math.max(2,r)?c.push(0):f=i-s);let d,u,g=!1,h=-1,m=-1,y=-1;t===lt&&(h=Lt(n,h,e.length),h!==-1&&(f=h+a));for(let S;S=n[h+=1];){if(t===Re&&S==="\\"){switch(m=h,n[h+1]){case"x":h+=3;break;case"u":h+=5;break;case"U":h+=9;break;default:h+=1}y=h}if(S===`
6
+ `)t===lt&&(h=Lt(n,h,e.length)),f=h+e.length+a,d=void 0;else{if(S===" "&&u&&u!==" "&&u!==`
7
+ `&&u!==" "){const N=n[h+1];N&&N!==" "&&N!==`
8
+ `&&N!==" "&&(d=h)}if(h>=f)if(d)c.push(d),f=d+a,d=void 0;else if(t===Re){for(;u===" "||u===" ";)u=S,S=n[h+=1],g=!0;const N=h>y+1?h-2:m-1;if(p[N])return n;c.push(N),p[N]=!0,f=N+a,d=void 0}else g=!0}u=S}if(g&&l&&l(),c.length===0)return n;o&&o();let b=n.slice(0,c[0]);for(let S=0;S<c.length;++S){const N=c[S],k=c[S+1]||n.length;N===0?b=`
9
+ ${e}${n.slice(0,k)}`:(t===Re&&p[N]&&(b+=`${n[N]}\\`),b+=`
10
+ ${e}${n.slice(N+1,k)}`)}return b}function Lt(n,e,t){let s=e,i=e+1,r=n[i];for(;r===" "||r===" ";)if(e<i+t)r=n[++e];else{do r=n[++e];while(r&&r!==`
11
+ `);s=e,i=e+1,r=n[i]}return s}const Ge=(n,e)=>({indentAtStart:e?n.indent.length:n.indentAtStart,lineWidth:n.options.lineWidth,minContentWidth:n.options.minContentWidth}),We=n=>/^(%|---|\.\.\.)/m.test(n);function Ds(n,e,t){if(!e||e<0)return!1;const s=e-t,i=n.length;if(i<=s)return!1;for(let r=0,o=0;r<i;++r)if(n[r]===`
12
+ `){if(r-o>s)return!0;if(o=r+1,i-o<=s)return!1}return!0}function Ie(n,e){const t=JSON.stringify(n);if(e.options.doubleQuotedAsJSON)return t;const{implicitKey:s}=e,i=e.options.doubleQuotedMinMultiLineLength,r=e.indent||(We(n)?" ":"");let o="",l=0;for(let a=0,c=t[a];c;c=t[++a])if(c===" "&&t[a+1]==="\\"&&t[a+2]==="n"&&(o+=t.slice(l,a)+"\\ ",a+=1,l=a,c="\\"),c==="\\")switch(t[a+1]){case"u":{o+=t.slice(l,a);const p=t.substr(a+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+=t.substr(a,6)}a+=5,l=a+1}break;case"n":if(s||t[a+2]==='"'||t.length<i)a+=1;else{for(o+=t.slice(l,a)+`
58
13
 
59
- `;t[l+2]==="\\"&&t[l+3]==="n"&&t[l+4]!=='"';)a+=`
60
- `,l+=2;a+=i,t[l+2]===" "&&(a+="\\"),l+=1,o=l+1}break;default:l+=1}return a=o?a+t.slice(o):t,s?a:Tt(a,i,wt,It(e,!1))}function Wt(n,e){if(e.options.singleQuote===!1||e.implicitKey&&n.includes(`
61
- `)||/[ \t]\n|\n[ \t]/.test(n))return st(n,e);const t=e.indent||(Lt(n)?" ":""),s="'"+n.replace(/'/g,"''").replace(/\n+/g,`$&
62
- ${t}`)+"'";return e.implicitKey?s:Tt(s,t,Xn,It(e,!1))}function Be(n,e){const{singleQuote:t}=e.options;let s;if(t===!1)s=st;else{const r=n.includes('"'),i=n.includes("'");r&&!i?s=Wt:i&&!r?s=st:s=t?Wt:st}return s(n,e)}let Ht;try{Ht=new RegExp(`(^|(?<!
14
+ `;t[a+2]==="\\"&&t[a+3]==="n"&&t[a+4]!=='"';)o+=`
15
+ `,a+=2;o+=r,t[a+2]===" "&&(o+="\\"),a+=1,l=a+1}break;default:a+=1}return o=l?o+t.slice(l):t,s?o:Ye(o,r,Re,Ge(e,!1))}function at(n,e){if(e.options.singleQuote===!1||e.implicitKey&&n.includes(`
16
+ `)||/[ \t]\n|\n[ \t]/.test(n))return Ie(n,e);const t=e.indent||(We(n)?" ":""),s="'"+n.replace(/'/g,"''").replace(/\n+/g,`$&
17
+ ${t}`)+"'";return e.implicitKey?s:Ye(s,t,Gt,Ge(e,!1))}function he(n,e){const{singleQuote:t}=e.options;let s;if(t===!1)s=Ie;else{const i=n.includes('"'),r=n.includes("'");i&&!r?s=at:r&&!i?s=Ie:s=t?at:Ie}return s(n,e)}let ct;try{ct=new RegExp(`(^|(?<!
63
18
  ))
64
19
  +(?!
65
- |$)`,"g")}catch{Ht=/\n+(?!\n|$)/g}function kt({comment:n,type:e,value:t},s,r,i){const{blockQuote:a,commentString:o,lineWidth:l}=s.options;if(!a||/\n[\t ]+$/.test(t))return Be(t,s);const c=s.indent||(s.forceBlockIndent||Lt(t)?" ":""),h=a==="literal"?!0:a==="folded"||e===T.BLOCK_FOLDED?!1:e===T.BLOCK_LITERAL?!0:!oi(t,l,c.length);if(!t)return h?`|
20
+ |$)`,"g")}catch{ct=/\n+(?!\n|$)/g}function qe({comment:n,type:e,value:t},s,i,r){const{blockQuote:o,commentString:l,lineWidth:a}=s.options;if(!o||/\n[\t ]+$/.test(t))return he(t,s);const c=s.indent||(s.forceBlockIndent||We(t)?" ":""),p=o==="literal"?!0:o==="folded"||e===A.BLOCK_FOLDED?!1:e===A.BLOCK_LITERAL?!0:!Ds(t,a,c.length);if(!t)return p?`|
66
21
  `:`>
67
- `;let f,y;for(y=t.length;y>0;--y){const v=t[y-1];if(v!==`
68
- `&&v!==" "&&v!==" ")break}let g=t.substring(y);const d=g.indexOf(`
69
- `);d===-1?f="-":t===g||d!==g.length-1?(f="+",i&&i()):f="",g&&(t=t.slice(0,-g.length),g[g.length-1]===`
70
- `&&(g=g.slice(0,-1)),g=g.replace(Ht,`$&${c}`));let u=!1,p,m=-1;for(p=0;p<t.length;++p){const v=t[p];if(v===" ")u=!0;else if(v===`
71
- `)m=p;else break}let b=t.substring(0,m<p?m+1:p);b&&(t=t.substring(b.length),b=b.replace(/\n+/g,`$&${c}`));let S=(u?c?"2":"1":"")+f;if(n&&(S+=" "+o(n.replace(/ ?[\r\n]+/g," ")),r&&r()),!h){const v=t.replace(/\n+/g,`
72
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let N=!1;const _=It(s,!0);a!=="folded"&&e!==T.BLOCK_FOLDED&&(_.onOverflow=()=>{N=!0});const A=Tt(`${b}${v}${g}`,c,Vt,_);if(!N)return`>${S}
73
- ${c}${A}`}return t=t.replace(/\n+/g,`$&${c}`),`|${S}
74
- ${c}${b}${t}${g}`}function li(n,e,t,s){const{type:r,value:i}=n,{actualString:a,implicitKey:o,indent:l,indentStep:c,inFlow:h}=e;if(o&&i.includes(`
75
- `)||h&&/[[\]{},]/.test(i))return Be(i,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return o||h||!i.includes(`
76
- `)?Be(i,e):kt(n,e,t,s);if(!o&&!h&&r!==T.PLAIN&&i.includes(`
77
- `))return kt(n,e,t,s);if(Lt(i)){if(l==="")return e.forceBlockIndent=!0,kt(n,e,t,s);if(o&&l===c)return Be(i,e)}const f=i.replace(/\n+/g,`$&
78
- ${l}`);if(a){const y=u=>{var p;return u.default&&u.tag!=="tag:yaml.org,2002:str"&&((p=u.test)==null?void 0:p.test(f))},{compat:g,tags:d}=e.doc.schema;if(d.some(y)||g!=null&&g.some(y))return Be(i,e)}return o?f:Tt(f,l,Xn,It(e,!1))}function nn(n,e,t,s){const{implicitKey:r,inFlow:i}=e,a=typeof n.value=="string"?n:Object.assign({},n,{value:String(n.value)});let{type:o}=n;o!==T.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(o=T.QUOTE_DOUBLE);const l=h=>{switch(h){case T.BLOCK_FOLDED:case T.BLOCK_LITERAL:return r||i?Be(a.value,e):kt(a,e,t,s);case T.QUOTE_DOUBLE:return st(a.value,e);case T.QUOTE_SINGLE:return Wt(a.value,e);case T.PLAIN:return li(a,e,t,s);default:return null}};let c=l(o);if(c===null){const{defaultKeyType:h,defaultStringType:f}=e.options,y=r&&h||f;if(c=l(y),c===null)throw new Error(`Unsupported default string type ${y}`)}return c}function Qn(n,e){const t=Object.assign({blockQuote:!0,commentString:ai,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,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},n.schema.toStringOptions,e);let s;switch(t.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:n,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:s,options:t}}function ci(n,e){var r;if(e.tag){const i=n.filter(a=>a.tag===e.tag);if(i.length>0)return i.find(a=>a.format===e.format)??i[0]}let t,s;if(P(e)){s=e.value;let i=n.filter(a=>{var o;return(o=a.identify)==null?void 0:o.call(a,s)});if(i.length>1){const a=i.filter(o=>o.test);a.length>0&&(i=a)}t=i.find(a=>a.format===e.format)??i.find(a=>!a.format)}else s=e,t=n.find(i=>i.nodeClass&&s instanceof i.nodeClass);if(!t){const i=((r=s==null?void 0:s.constructor)==null?void 0:r.name)??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${i} value`)}return t}function ui(n,e,{anchors:t,doc:s}){if(!s.directives)return"";const r=[],i=(P(n)||q(n))&&n.anchor;i&&Vn(i)&&(t.add(i),r.push(`&${i}`));const a=n.tag??(e.default?null:e.tag);return a&&r.push(s.directives.tagString(a)),r.join(" ")}function Me(n,e,t,s){var l;if(G(n))return n.toString(e,t,s);if(qe(n)){if(e.doc.directives)return n.toString(e);if((l=e.resolvedAliases)!=null&&l.has(n))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(n):e.resolvedAliases=new Set([n]),n=n.resolve(e.doc)}let r;const i=z(n)?n:e.doc.createNode(n,{onTagObj:c=>r=c});r??(r=ci(e.doc.schema.tags,i));const a=ui(i,r,e);a.length>0&&(e.indentAtStart=(e.indentAtStart??0)+a.length+1);const o=typeof r.stringify=="function"?r.stringify(i,e,t,s):P(i)?nn(i,e,t,s):i.toString(e,t,s);return a?P(i)||o[0]==="{"||o[0]==="["?`${a} ${o}`:`${a}
79
- ${e.indent}${o}`:o}function fi({key:n,value:e},t,s,r){const{allNullValues:i,doc:a,indent:o,indentStep:l,options:{commentString:c,indentSeq:h,simpleKeys:f}}=t;let y=z(n)&&n.comment||null;if(f){if(y)throw new Error("With simple keys, key nodes cannot have comments");if(q(n)||!z(n)&&typeof n=="object"){const _="With simple keys, collection cannot be used as a key value";throw new Error(_)}}let g=!f&&(!n||y&&e==null&&!t.inFlow||q(n)||(P(n)?n.type===T.BLOCK_FOLDED||n.type===T.BLOCK_LITERAL:typeof n=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!g&&(f||!i),indent:o+l});let d=!1,u=!1,p=Me(n,t,()=>d=!0,()=>u=!0);if(!g&&!t.inFlow&&p.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(t.inFlow){if(i||e==null)return d&&s&&s(),p===""?"?":g?`? ${p}`:p}else if(i&&!f||e==null&&g)return p=`? ${p}`,y&&!d?p+=Oe(p,t.indent,c(y)):u&&r&&r(),p;d&&(y=null),g?(y&&(p+=Oe(p,t.indent,c(y))),p=`? ${p}
80
- ${o}:`):(p=`${p}:`,y&&(p+=Oe(p,t.indent,c(y))));let m,b,w;z(e)?(m=!!e.spaceBefore,b=e.commentBefore,w=e.comment):(m=!1,b=null,w=null,e&&typeof e=="object"&&(e=a.createNode(e))),t.implicitKey=!1,!g&&!y&&P(e)&&(t.indentAtStart=p.length+1),u=!1,!h&&l.length>=2&&!t.inFlow&&!g&&ot(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let S=!1;const v=Me(e,t,()=>S=!0,()=>u=!0);let N=" ";if(y||m||b){if(N=m?`
81
- `:"",b){const _=c(b);N+=`
82
- ${be(_,t.indent)}`}v===""&&!t.inFlow?N===`
83
- `&&w&&(N=`
22
+ `;let f,d;for(d=t.length;d>0;--d){const k=t[d-1];if(k!==`
23
+ `&&k!==" "&&k!==" ")break}let u=t.substring(d);const g=u.indexOf(`
24
+ `);g===-1?f="-":t===u||g!==u.length-1?(f="+",r&&r()):f="",u&&(t=t.slice(0,-u.length),u[u.length-1]===`
25
+ `&&(u=u.slice(0,-1)),u=u.replace(ct,`$&${c}`));let h=!1,m,y=-1;for(m=0;m<t.length;++m){const k=t[m];if(k===" ")h=!0;else if(k===`
26
+ `)y=m;else break}let b=t.substring(0,y<m?y+1:m);b&&(t=t.substring(b.length),b=b.replace(/\n+/g,`$&${c}`));let N=(h?c?"2":"1":"")+f;if(n&&(N+=" "+l(n.replace(/ ?[\r\n]+/g," ")),i&&i()),!p){const k=t.replace(/\n+/g,`
27
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let I=!1;const O=Ge(s,!0);o!=="folded"&&e!==A.BLOCK_FOLDED&&(O.onOverflow=()=>{I=!0});const w=Ye(`${b}${k}${u}`,c,lt,O);if(!I)return`>${N}
28
+ ${c}${w}`}return t=t.replace(/\n+/g,`$&${c}`),`|${N}
29
+ ${c}${b}${t}${u}`}function Rs(n,e,t,s){const{type:i,value:r}=n,{actualString:o,implicitKey:l,indent:a,indentStep:c,inFlow:p}=e;if(l&&r.includes(`
30
+ `)||p&&/[[\]{},]/.test(r))return he(r,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return l||p||!r.includes(`
31
+ `)?he(r,e):qe(n,e,t,s);if(!l&&!p&&i!==A.PLAIN&&r.includes(`
32
+ `))return qe(n,e,t,s);if(We(r)){if(a==="")return e.forceBlockIndent=!0,qe(n,e,t,s);if(l&&a===c)return he(r,e)}const f=r.replace(/\n+/g,`$&
33
+ ${a}`);if(o){const d=h=>{var m;return h.default&&h.tag!=="tag:yaml.org,2002:str"&&((m=h.test)==null?void 0:m.test(f))},{compat:u,tags:g}=e.doc.schema;if(g.some(d)||u!=null&&u.some(d))return he(r,e)}return l?f:Ye(f,a,Gt,Ge(e,!1))}function mt(n,e,t,s){const{implicitKey:i,inFlow:r}=e,o=typeof n.value=="string"?n:Object.assign({},n,{value:String(n.value)});let{type:l}=n;l!==A.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(l=A.QUOTE_DOUBLE);const a=p=>{switch(p){case A.BLOCK_FOLDED:case A.BLOCK_LITERAL:return i||r?he(o.value,e):qe(o,e,t,s);case A.QUOTE_DOUBLE:return Ie(o.value,e);case A.QUOTE_SINGLE:return at(o.value,e);case A.PLAIN:return Rs(o,e,t,s);default:return null}};let c=a(l);if(c===null){const{defaultKeyType:p,defaultStringType:f}=e.options,d=i&&p||f;if(c=a(d),c===null)throw new Error(`Unsupported default string type ${d}`)}return c}function Wt(n,e){const t=Object.assign({blockQuote:!0,commentString:js,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,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},n.schema.toStringOptions,e);let s;switch(t.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:n,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:s,options:t}}function qs(n,e){var i;if(e.tag){const r=n.filter(o=>o.tag===e.tag);if(r.length>0)return r.find(o=>o.format===e.format)??r[0]}let t,s;if(L(e)){s=e.value;let r=n.filter(o=>{var l;return(l=o.identify)==null?void 0:l.call(o,s)});if(r.length>1){const o=r.filter(l=>l.test);o.length>0&&(r=o)}t=r.find(o=>o.format===e.format)??r.find(o=>!o.format)}else s=e,t=n.find(r=>r.nodeClass&&s instanceof r.nodeClass);if(!t){const r=((i=s==null?void 0:s.constructor)==null?void 0:i.name)??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${r} value`)}return t}function Fs(n,e,{anchors:t,doc:s}){if(!s.directives)return"";const i=[],r=(L(n)||$(n))&&n.anchor;r&&Ft(r)&&(t.add(r),i.push(`&${r}`));const o=n.tag??(e.default?null:e.tag);return o&&i.push(s.directives.tagString(o)),i.join(" ")}function me(n,e,t,s){var a;if(v(n))return n.toString(e,t,s);if(be(n)){if(e.doc.directives)return n.toString(e);if((a=e.resolvedAliases)!=null&&a.has(n))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(n):e.resolvedAliases=new Set([n]),n=n.resolve(e.doc)}let i;const r=C(n)?n:e.doc.createNode(n,{onTagObj:c=>i=c});i??(i=qs(e.doc.schema.tags,r));const o=Fs(r,i,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);const l=typeof i.stringify=="function"?i.stringify(r,e,t,s):L(r)?mt(r,e,t,s):r.toString(e,t,s);return o?L(r)||l[0]==="{"||l[0]==="["?`${o} ${l}`:`${o}
34
+ ${e.indent}${l}`:l}function Us({key:n,value:e},t,s,i){const{allNullValues:r,doc:o,indent:l,indentStep:a,options:{commentString:c,indentSeq:p,simpleKeys:f}}=t;let d=C(n)&&n.comment||null;if(f){if(d)throw new Error("With simple keys, key nodes cannot have comments");if($(n)||!C(n)&&typeof n=="object"){const O="With simple keys, collection cannot be used as a key value";throw new Error(O)}}let u=!f&&(!n||d&&e==null&&!t.inFlow||$(n)||(L(n)?n.type===A.BLOCK_FOLDED||n.type===A.BLOCK_LITERAL:typeof n=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!u&&(f||!r),indent:l+a});let g=!1,h=!1,m=me(n,t,()=>g=!0,()=>h=!0);if(!u&&!t.inFlow&&m.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");u=!0}if(t.inFlow){if(r||e==null)return g&&s&&s(),m===""?"?":u?`? ${m}`:m}else if(r&&!f||e==null&&u)return m=`? ${m}`,d&&!g?m+=ee(m,t.indent,c(d)):h&&i&&i(),m;g&&(d=null),u?(d&&(m+=ee(m,t.indent,c(d))),m=`? ${m}
35
+ ${l}:`):(m=`${m}:`,d&&(m+=ee(m,t.indent,c(d))));let y,b,S;C(e)?(y=!!e.spaceBefore,b=e.commentBefore,S=e.comment):(y=!1,b=null,S=null,e&&typeof e=="object"&&(e=o.createNode(e))),t.implicitKey=!1,!u&&!d&&L(e)&&(t.indentAtStart=m.length+1),h=!1,!p&&a.length>=2&&!t.inFlow&&!u&&Ce(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let N=!1;const k=me(e,t,()=>N=!0,()=>h=!0);let I=" ";if(d||y||b){if(I=y?`
36
+ `:"",b){const O=c(b);I+=`
37
+ ${H(O,t.indent)}`}k===""&&!t.inFlow?I===`
38
+ `&&S&&(I=`
84
39
 
85
- `):N+=`
86
- ${t.indent}`}else if(!g&&q(e)){const _=v[0],A=v.indexOf(`
87
- `),O=A!==-1,x=t.inFlow??e.flow??e.items.length===0;if(O||!x){let D=!1;if(O&&(_==="&"||_==="!")){let B=v.indexOf(" ");_==="&"&&B!==-1&&B<A&&v[B+1]==="!"&&(B=v.indexOf(" ",B+1)),(B===-1||A<B)&&(D=!0)}D||(N=`
88
- ${t.indent}`)}}else(v===""||v[0]===`
89
- `)&&(N="");return p+=N+v,t.inFlow?S&&s&&s():w&&!S?p+=Oe(p,t.indent,c(w)):u&&r&&r(),p}function es(n,e){(n==="debug"||n==="warn")&&console.warn(e)}const pt="<<",we={identify:n=>n===pt||typeof n=="symbol"&&n.description===pt,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new T(Symbol(pt)),{addToJSMap:ts}),stringify:()=>pt},pi=(n,e)=>(we.identify(e)||P(e)&&(!e.type||e.type===T.PLAIN)&&we.identify(e.value))&&(n==null?void 0:n.doc.schema.tags.some(t=>t.tag===we.tag&&t.default));function ts(n,e,t){const s=ns(n,t);if(ot(s))for(const r of s.items)jt(n,e,r);else if(Array.isArray(s))for(const r of s)jt(n,e,r);else jt(n,e,s)}function jt(n,e,t){const s=ns(n,t);if(!at(s))throw new Error("Merge sources must be maps or map aliases");const r=s.toJSON(null,n,Map);for(const[i,a]of r)e instanceof Map?e.has(i)||e.set(i,a):e instanceof Set?e.add(i):Object.prototype.hasOwnProperty.call(e,i)||Object.defineProperty(e,i,{value:a,writable:!0,enumerable:!0,configurable:!0});return e}function ns(n,e){return n&&qe(e)?e.resolve(n.doc,n):e}function ss(n,e,{key:t,value:s}){if(z(t)&&t.addToJSMap)t.addToJSMap(n,e,s);else if(pi(n,t))ts(n,e,s);else{const r=ie(t,"",n);if(e instanceof Map)e.set(r,ie(s,r,n));else if(e instanceof Set)e.add(r);else{const i=di(t,r,n),a=ie(s,i,n);i in e?Object.defineProperty(e,i,{value:a,writable:!0,enumerable:!0,configurable:!0}):e[i]=a}}return e}function di(n,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(z(n)&&(t!=null&&t.doc)){const s=Qn(t.doc,{});s.anchors=new Set;for(const i of t.anchors.keys())s.anchors.add(i.anchor);s.inFlow=!0,s.inStringifyKey=!0;const r=n.toString(s);if(!t.mapKeyWarned){let i=JSON.stringify(r);i.length>40&&(i=i.substring(0,36)+'..."'),es(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return r}return JSON.stringify(e)}function sn(n,e,t){const s=rt(n,void 0,t),r=rt(e,void 0,t);return new J(s,r)}class J{constructor(e,t=null){Object.defineProperty(this,ae,{value:Gn}),this.key=e,this.value=t}clone(e){let{key:t,value:s}=this;return z(t)&&(t=t.clone(e)),z(s)&&(s=s.clone(e)),new J(t,s)}toJSON(e,t){const s=t!=null&&t.mapAsMap?new Map:{};return ss(t,s,this)}toString(e,t,s){return e!=null&&e.doc?fi(this,e,t,s):JSON.stringify(this)}}function rs(n,e,t){return(e.inFlow??n.flow?gi:hi)(n,e,t)}function hi({comment:n,items:e},t,{blockItemPrefix:s,flowChars:r,itemIndent:i,onChompKeep:a,onComment:o}){const{indent:l,options:{commentString:c}}=t,h=Object.assign({},t,{indent:i,type:null});let f=!1;const y=[];for(let d=0;d<e.length;++d){const u=e[d];let p=null;if(z(u))!f&&u.spaceBefore&&y.push(""),Et(t,y,u.commentBefore,f),u.comment&&(p=u.comment);else if(G(u)){const b=z(u.key)?u.key:null;b&&(!f&&b.spaceBefore&&y.push(""),Et(t,y,b.commentBefore,f))}f=!1;let m=Me(u,h,()=>p=null,()=>f=!0);p&&(m+=Oe(m,i,c(p))),f&&p&&(f=!1),y.push(s+m)}let g;if(y.length===0)g=r.start+r.end;else{g=y[0];for(let d=1;d<y.length;++d){const u=y[d];g+=u?`
90
- ${l}${u}`:`
91
- `}}return n?(g+=`
92
- `+be(c(n),l),o&&o()):f&&a&&a(),g}function gi({items:n},e,{flowChars:t,itemIndent:s}){const{indent:r,indentStep:i,flowCollectionPadding:a,options:{commentString:o}}=e;s+=i;const l=Object.assign({},e,{indent:s,inFlow:!0,type:null});let c=!1,h=0;const f=[];for(let d=0;d<n.length;++d){const u=n[d];let p=null;if(z(u))u.spaceBefore&&f.push(""),Et(e,f,u.commentBefore,!1),u.comment&&(p=u.comment);else if(G(u)){const b=z(u.key)?u.key:null;b&&(b.spaceBefore&&f.push(""),Et(e,f,b.commentBefore,!1),b.comment&&(c=!0));const w=z(u.value)?u.value:null;w?(w.comment&&(p=w.comment),w.commentBefore&&(c=!0)):u.value==null&&(b!=null&&b.comment)&&(p=b.comment)}p&&(c=!0);let m=Me(u,l,()=>p=null);c||(c=f.length>h||m.includes(`
93
- `)),d<n.length-1?m+=",":e.options.trailingComma&&(e.options.lineWidth>0&&(c||(c=f.reduce((b,w)=>b+w.length+2,2)+(m.length+2)>e.options.lineWidth)),c&&(m+=",")),p&&(m+=Oe(m,s,o(p))),f.push(m),h=f.length}const{start:y,end:g}=t;if(f.length===0)return y+g;if(!c){const d=f.reduce((u,p)=>u+p.length+2,2);c=e.options.lineWidth>0&&d>e.options.lineWidth}if(c){let d=y;for(const u of f)d+=u?`
94
- ${i}${r}${u}`:`
95
- `;return`${d}
96
- ${r}${g}`}else return`${y}${a}${f.join(" ")}${a}${g}`}function Et({indent:n,options:{commentString:e}},t,s,r){if(s&&r&&(s=s.replace(/^\n+/,"")),s){const i=be(e(s),n);t.push(i.trimStart())}}function Te(n,e){const t=P(e)?e.value:e;for(const s of n)if(G(s)&&(s.key===e||s.key===t||P(s.key)&&s.key.value===t))return s}class re extends Jn{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Ae,e),this.items=[]}static from(e,t,s){const{keepUndefined:r,replacer:i}=s,a=new this(e),o=(l,c)=>{if(typeof i=="function")c=i.call(t,l,c);else if(Array.isArray(i)&&!i.includes(l))return;(c!==void 0||r)&&a.items.push(sn(l,c,s))};if(t instanceof Map)for(const[l,c]of t)o(l,c);else if(t&&typeof t=="object")for(const l of Object.keys(t))o(l,t[l]);return typeof e.sortMapEntries=="function"&&a.items.sort(e.sortMapEntries),a}add(e,t){var a;let s;G(e)?s=e:!e||typeof e!="object"||!("key"in e)?s=new J(e,e==null?void 0:e.value):s=new J(e.key,e.value);const r=Te(this.items,s.key),i=(a=this.schema)==null?void 0:a.sortMapEntries;if(r){if(!t)throw new Error(`Key ${s.key} already set`);P(r.value)&&Zn(s.value)?r.value.value=s.value:r.value=s.value}else if(i){const o=this.items.findIndex(l=>i(s,l)<0);o===-1?this.items.push(s):this.items.splice(o,0,s)}else this.items.push(s)}delete(e){const t=Te(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){const s=Te(this.items,e),r=s==null?void 0:s.value;return(!t&&P(r)?r.value:r)??void 0}has(e){return!!Te(this.items,e)}set(e,t){this.add(new J(e,t),!0)}toJSON(e,t,s){const r=s?new s:t!=null&&t.mapAsMap?new Map:{};t!=null&&t.onCreate&&t.onCreate(r);for(const i of this.items)ss(t,r,i);return r}toString(e,t,s){if(!e)return JSON.stringify(this);for(const r of this.items)if(!G(r))throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),rs(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:t})}}const ze={collection:"map",default:!0,nodeClass:re,tag:"tag:yaml.org,2002:map",resolve(n,e){return at(n)||e("Expected a mapping for this tag"),n},createNode:(n,e,t)=>re.from(n,e,t)};class Ie extends Jn{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Ue,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=dt(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const s=dt(e);if(typeof s!="number")return;const r=this.items[s];return!t&&P(r)?r.value:r}has(e){const t=dt(e);return typeof t=="number"&&t<this.items.length}set(e,t){const s=dt(e);if(typeof s!="number")throw new Error(`Expected a valid index, not ${e}.`);const r=this.items[s];P(r)&&Zn(t)?r.value=t:this.items[s]=t}toJSON(e,t){const s=[];t!=null&&t.onCreate&&t.onCreate(s);let r=0;for(const i of this.items)s.push(ie(i,String(r++),t));return s}toString(e,t,s){return e?rs(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:s,onComment:t}):JSON.stringify(this)}static from(e,t,s){const{replacer:r}=s,i=new this(e);if(t&&Symbol.iterator in Object(t)){let a=0;for(let o of t){if(typeof r=="function"){const l=t instanceof Set?o:String(a++);o=r.call(t,l,o)}i.items.push(rt(o,void 0,s))}}return i}}function dt(n){let e=P(n)?n.value:n;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}const Ge={collection:"seq",default:!0,nodeClass:Ie,tag:"tag:yaml.org,2002:seq",resolve(n,e){return ot(n)||e("Expected a sequence for this tag"),n},createNode:(n,e,t)=>Ie.from(n,e,t)},Ct={identify:n=>typeof n=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:n=>n,stringify(n,e,t,s){return e=Object.assign({actualString:!0},e),nn(n,e,t,s)}},Ft={identify:n=>n==null,createNode:()=>new T(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new T(null),stringify:({source:n},e)=>typeof n=="string"&&Ft.test.test(n)?n:e.options.nullStr},rn={identify:n=>typeof n=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:n=>new T(n[0]==="t"||n[0]==="T"),stringify({source:n,value:e},t){if(n&&rn.test.test(n)){const s=n[0]==="t"||n[0]==="T";if(e===s)return n}return e?t.options.trueStr:t.options.falseStr}};function ue({format:n,minFractionDigits:e,tag:t,value:s}){if(typeof s=="bigint")return String(s);const r=typeof s=="number"?s:Number(s);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let i=Object.is(s,-0)?"-0":JSON.stringify(s);if(!n&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^-?\d/.test(i)&&!i.includes("e")){let a=i.indexOf(".");a<0&&(a=i.length,i+=".");let o=e-(i.length-a-1);for(;o-- >0;)i+="0"}return i}const is={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:n=>n.slice(-3).toLowerCase()==="nan"?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ue},as={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:n=>parseFloat(n),stringify(n){const e=Number(n.value);return isFinite(e)?e.toExponential():ue(n)}},os={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(n){const e=new T(parseFloat(n)),t=n.indexOf(".");return t!==-1&&n[n.length-1]==="0"&&(e.minFractionDigits=n.length-t-1),e},stringify:ue},$t=n=>typeof n=="bigint"||Number.isInteger(n),an=(n,e,t,{intAsBigInt:s})=>s?BigInt(n):parseInt(n.substring(e),t);function ls(n,e,t){const{value:s}=n;return $t(s)&&s>=0?t+s.toString(e):ue(n)}const cs={identify:n=>$t(n)&&n>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(n,e,t)=>an(n,2,8,t),stringify:n=>ls(n,8,"0o")},us={identify:$t,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(n,e,t)=>an(n,0,10,t),stringify:ue},fs={identify:n=>$t(n)&&n>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(n,e,t)=>an(n,2,16,t),stringify:n=>ls(n,16,"0x")},yi=[ze,Ge,Ct,Ft,rn,cs,us,fs,is,as,os];function In(n){return typeof n=="bigint"||Number.isInteger(n)}const ht=({value:n})=>JSON.stringify(n),mi=[{identify:n=>typeof n=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:n=>n,stringify:ht},{identify:n=>n==null,createNode:()=>new T(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ht},{identify:n=>typeof n=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:n=>n==="true",stringify:ht},{identify:In,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(n,e,{intAsBigInt:t})=>t?BigInt(n):parseInt(n,10),stringify:({value:n})=>In(n)?n.toString():JSON.stringify(n)},{identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:n=>parseFloat(n),stringify:ht}],bi={default:!0,tag:"",test:/^/,resolve(n,e){return e(`Unresolved plain scalar ${JSON.stringify(n)}`),n}},wi=[ze,Ge].concat(mi,bi),on={identify:n=>n instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(n,e){if(typeof atob=="function"){const t=atob(n.replace(/[\n\r]/g,"")),s=new Uint8Array(t.length);for(let r=0;r<t.length;++r)s[r]=t.charCodeAt(r);return s}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),n},stringify({comment:n,type:e,value:t},s,r,i){if(!t)return"";const a=t;let o;if(typeof btoa=="function"){let l="";for(let c=0;c<a.length;++c)l+=String.fromCharCode(a[c]);o=btoa(l)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=T.BLOCK_LITERAL),e!==T.QUOTE_DOUBLE){const l=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),c=Math.ceil(o.length/l),h=new Array(c);for(let f=0,y=0;f<c;++f,y+=l)h[f]=o.substr(y,l);o=h.join(e===T.BLOCK_LITERAL?`
97
- `:" ")}return nn({comment:n,type:e,value:o},s,r,i)}};function ps(n,e){if(ot(n))for(let t=0;t<n.items.length;++t){let s=n.items[t];if(!G(s)){if(at(s)){s.items.length>1&&e("Each pair must have its own sequence indicator");const r=s.items[0]||new J(new T(null));if(s.commentBefore&&(r.key.commentBefore=r.key.commentBefore?`${s.commentBefore}
98
- ${r.key.commentBefore}`:s.commentBefore),s.comment){const i=r.value??r.key;i.comment=i.comment?`${s.comment}
99
- ${i.comment}`:s.comment}s=r}n.items[t]=G(s)?s:new J(s)}}else e("Expected a sequence for this tag");return n}function ds(n,e,t){const{replacer:s}=t,r=new Ie(n);r.tag="tag:yaml.org,2002:pairs";let i=0;if(e&&Symbol.iterator in Object(e))for(let a of e){typeof s=="function"&&(a=s.call(e,String(i++),a));let o,l;if(Array.isArray(a))if(a.length===2)o=a[0],l=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){const c=Object.keys(a);if(c.length===1)o=c[0],l=a[o];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else o=a;r.items.push(sn(o,l,t))}return r}const ln={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:ps,createNode:ds};class Pe extends Ie{constructor(){super(),this.add=re.prototype.add.bind(this),this.delete=re.prototype.delete.bind(this),this.get=re.prototype.get.bind(this),this.has=re.prototype.has.bind(this),this.set=re.prototype.set.bind(this),this.tag=Pe.tag}toJSON(e,t){if(!t)return super.toJSON(e);const s=new Map;t!=null&&t.onCreate&&t.onCreate(s);for(const r of this.items){let i,a;if(G(r)?(i=ie(r.key,"",t),a=ie(r.value,i,t)):i=ie(r,"",t),s.has(i))throw new Error("Ordered maps must not include duplicate keys");s.set(i,a)}return s}static from(e,t,s){const r=ds(e,t,s),i=new this;return i.items=r.items,i}}Pe.tag="tag:yaml.org,2002:omap";const cn={collection:"seq",identify:n=>n instanceof Map,nodeClass:Pe,default:!1,tag:"tag:yaml.org,2002:omap",resolve(n,e){const t=ps(n,e),s=[];for(const{key:r}of t.items)P(r)&&(s.includes(r.value)?e(`Ordered maps must not include duplicate keys: ${r.value}`):s.push(r.value));return Object.assign(new Pe,t)},createNode:(n,e,t)=>Pe.from(n,e,t)};function hs({value:n,source:e},t){return e&&(n?gs:ys).test.test(e)?e:n?t.options.trueStr:t.options.falseStr}const gs={identify:n=>n===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new T(!0),stringify:hs},ys={identify:n=>n===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new T(!1),stringify:hs},ki={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:n=>n.slice(-3).toLowerCase()==="nan"?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ue},vi={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:n=>parseFloat(n.replace(/_/g,"")),stringify(n){const e=Number(n.value);return isFinite(e)?e.toExponential():ue(n)}},Si={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(n){const e=new T(parseFloat(n.replace(/_/g,""))),t=n.indexOf(".");if(t!==-1){const s=n.substring(t+1).replace(/_/g,"");s[s.length-1]==="0"&&(e.minFractionDigits=s.length)}return e},stringify:ue},lt=n=>typeof n=="bigint"||Number.isInteger(n);function xt(n,e,t,{intAsBigInt:s}){const r=n[0];if((r==="-"||r==="+")&&(e+=1),n=n.substring(e).replace(/_/g,""),s){switch(t){case 2:n=`0b${n}`;break;case 8:n=`0o${n}`;break;case 16:n=`0x${n}`;break}const a=BigInt(n);return r==="-"?BigInt(-1)*a:a}const i=parseInt(n,t);return r==="-"?-1*i:i}function un(n,e,t){const{value:s}=n;if(lt(s)){const r=s.toString(e);return s<0?"-"+t+r.substr(1):t+r}return ue(n)}const Ei={identify:lt,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(n,e,t)=>xt(n,2,2,t),stringify:n=>un(n,2,"0b")},Ai={identify:lt,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(n,e,t)=>xt(n,1,8,t),stringify:n=>un(n,8,"0")},_i={identify:lt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(n,e,t)=>xt(n,0,10,t),stringify:ue},Ni={identify:lt,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(n,e,t)=>xt(n,2,16,t),stringify:n=>un(n,16,"0x")};class je extends re{constructor(e){super(e),this.tag=je.tag}add(e){let t;G(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new J(e.key,null):t=new J(e,null),Te(this.items,t.key)||this.items.push(t)}get(e,t){const s=Te(this.items,e);return!t&&G(s)?P(s.key)?s.key.value:s.key:s}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const s=Te(this.items,e);s&&!t?this.items.splice(this.items.indexOf(s),1):!s&&t&&this.items.push(new J(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,s);throw new Error("Set items must all have null values")}static from(e,t,s){const{replacer:r}=s,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let a of t)typeof r=="function"&&(a=r.call(t,a,a)),i.items.push(sn(a,null,s));return i}}je.tag="tag:yaml.org,2002:set";const fn={collection:"map",identify:n=>n instanceof Set,nodeClass:je,default:!1,tag:"tag:yaml.org,2002:set",createNode:(n,e,t)=>je.from(n,e,t),resolve(n,e){if(at(n)){if(n.hasAllNullValues(!0))return Object.assign(new je,n);e("Set items must all have null values")}else e("Expected a mapping for this tag");return n}};function pn(n,e){const t=n[0],s=t==="-"||t==="+"?n.substring(1):n,r=a=>e?BigInt(a):Number(a),i=s.replace(/_/g,"").split(":").reduce((a,o)=>a*r(60)+r(o),r(0));return t==="-"?r(-1)*i:i}function ms(n){let{value:e}=n,t=a=>a;if(typeof e=="bigint")t=a=>BigInt(a);else if(isNaN(e)||!isFinite(e))return ue(n);let s="";e<0&&(s="-",e*=t(-1));const r=t(60),i=[e%r];return e<60?i.unshift(0):(e=(e-i[0])/r,i.unshift(e%r),e>=60&&(e=(e-i[0])/r,i.unshift(e))),s+i.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const bs={identify:n=>typeof n=="bigint"||Number.isInteger(n),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(n,e,{intAsBigInt:t})=>pn(n,t),stringify:ms},ws={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:n=>pn(n,!1),stringify:ms},Rt={identify:n=>n instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(n){const e=n.match(Rt.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,t,s,r,i,a,o]=e.map(Number),l=e[7]?Number((e[7]+"00").substr(1,3)):0;let c=Date.UTC(t,s-1,r,i||0,a||0,o||0,l);const h=e[8];if(h&&h!=="Z"){let f=pn(h,!1);Math.abs(f)<30&&(f*=60),c-=6e4*f}return new Date(c)},stringify:({value:n})=>(n==null?void 0:n.toISOString().replace(/(T00:00:00)?\.000Z$/,""))??""},Ln=[ze,Ge,Ct,Ft,gs,ys,Ei,Ai,_i,Ni,ki,vi,Si,on,we,cn,ln,fn,bs,ws,Rt],Cn=new Map([["core",yi],["failsafe",[ze,Ge,Ct]],["json",wi],["yaml11",Ln],["yaml-1.1",Ln]]),Fn={binary:on,bool:rn,float:os,floatExp:as,floatNaN:is,floatTime:ws,int:us,intHex:fs,intOct:cs,intTime:bs,map:ze,merge:we,null:Ft,omap:cn,pairs:ln,seq:Ge,set:fn,timestamp:Rt},Oi={"tag:yaml.org,2002:binary":on,"tag:yaml.org,2002:merge":we,"tag:yaml.org,2002:omap":cn,"tag:yaml.org,2002:pairs":ln,"tag:yaml.org,2002:set":fn,"tag:yaml.org,2002:timestamp":Rt};function Mt(n,e,t){const s=Cn.get(e);if(s&&!n)return t&&!s.includes(we)?s.concat(we):s.slice();let r=s;if(!r)if(Array.isArray(n))r=[];else{const i=Array.from(Cn.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${i} or define customTags array`)}if(Array.isArray(n))for(const i of n)r=r.concat(i);else typeof n=="function"&&(r=n(r.slice()));return t&&(r=r.concat(we)),r.reduce((i,a)=>{const o=typeof a=="string"?Fn[a]:a;if(!o){const l=JSON.stringify(a),c=Object.keys(Fn).map(h=>JSON.stringify(h)).join(", ");throw new Error(`Unknown custom tag ${l}; use one of ${c}`)}return i.includes(o)||i.push(o),i},[])}const Ti=(n,e)=>n.key<e.key?-1:n.key>e.key?1:0;class dn{constructor({compat:e,customTags:t,merge:s,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?Mt(e,"compat"):e?Mt(null,e):null,this.name=typeof i=="string"&&i||"core",this.knownTags=r?Oi:{},this.tags=Mt(t,this.name,s),this.toStringOptions=o??null,Object.defineProperty(this,Ae,{value:ze}),Object.defineProperty(this,he,{value:Ct}),Object.defineProperty(this,Ue,{value:Ge}),this.sortMapEntries=typeof a=="function"?a:a===!0?Ti:null}clone(){const e=Object.create(dn.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function Ii(n,e){var l;const t=[];let s=e.directives===!0;if(e.directives!==!1&&n.directives){const c=n.directives.toString(n);c?(t.push(c),s=!0):n.directives.docStart&&(s=!0)}s&&t.push("---");const r=Qn(n,e),{commentString:i}=r.options;if(n.commentBefore){t.length!==1&&t.unshift("");const c=i(n.commentBefore);t.unshift(be(c,""))}let a=!1,o=null;if(n.contents){if(z(n.contents)){if(n.contents.spaceBefore&&s&&t.push(""),n.contents.commentBefore){const f=i(n.contents.commentBefore);t.push(be(f,""))}r.forceBlockIndent=!!n.comment,o=n.contents.comment}const c=o?void 0:()=>a=!0;let h=Me(n.contents,r,()=>o=null,c);o&&(h+=Oe(h,"",i(o))),(h[0]==="|"||h[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${h}`:t.push(h)}else t.push(Me(n.contents,r));if((l=n.directives)!=null&&l.docEnd)if(n.comment){const c=i(n.comment);c.includes(`
100
- `)?(t.push("..."),t.push(be(c,""))):t.push(`... ${c}`)}else t.push("...");else{let c=n.comment;c&&a&&(c=c.replace(/^\n+/,"")),c&&((!a||o)&&t[t.length-1]!==""&&t.push(""),t.push(be(i(c),"")))}return t.join(`
40
+ `):I+=`
41
+ ${t.indent}`}else if(!u&&$(e)){const O=k[0],w=k.indexOf(`
42
+ `),E=w!==-1,_=t.inFlow??e.flow??e.items.length===0;if(E||!_){let D=!1;if(E&&(O==="&"||O==="!")){let R=k.indexOf(" ");O==="&"&&R!==-1&&R<w&&k[R+1]==="!"&&(R=k.indexOf(" ",R+1)),(R===-1||w<R)&&(D=!0)}D||(I=`
43
+ ${t.indent}`)}}else(k===""||k[0]===`
44
+ `)&&(I="");return m+=I+k,t.inFlow?N&&s&&s():S&&!N?m+=ee(m,t.indent,c(S)):h&&i&&i(),m}function Ht(n,e){(n==="debug"||n==="warn")&&console.warn(e)}const Me="<<",Q={identify:n=>n===Me||typeof n=="symbol"&&n.description===Me,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new A(Symbol(Me)),{addToJSMap:Qt}),stringify:()=>Me},Vs=(n,e)=>(Q.identify(e)||L(e)&&(!e.type||e.type===A.PLAIN)&&Q.identify(e.value))&&(n==null?void 0:n.doc.schema.tags.some(t=>t.tag===Q.tag&&t.default));function Qt(n,e,t){const s=Xt(n,t);if(Ce(s))for(const i of s.items)et(n,e,i);else if(Array.isArray(s))for(const i of s)et(n,e,i);else et(n,e,s)}function et(n,e,t){const s=Xt(n,t);if(!$e(s))throw new Error("Merge sources must be maps or map aliases");const i=s.toJSON(null,n,Map);for(const[r,o]of i)e instanceof Map?e.has(r)||e.set(r,o):e instanceof Set?e.add(r):Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}function Xt(n,e){return n&&be(e)?e.resolve(n.doc,n):e}function zt(n,e,{key:t,value:s}){if(C(t)&&t.addToJSMap)t.addToJSMap(n,e,s);else if(Vs(n,t))Qt(n,e,s);else{const i=U(t,"",n);if(e instanceof Map)e.set(i,U(s,i,n));else if(e instanceof Set)e.add(i);else{const r=Js(t,i,n),o=U(s,r,n);r in e?Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[r]=o}}return e}function Js(n,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(C(n)&&(t!=null&&t.doc)){const s=Wt(t.doc,{});s.anchors=new Set;for(const r of t.anchors.keys())s.anchors.add(r.anchor);s.inFlow=!0,s.inStringifyKey=!0;const i=n.toString(s);if(!t.mapKeyWarned){let r=JSON.stringify(i);r.length>40&&(r=r.substring(0,36)+'..."'),Ht(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return i}return JSON.stringify(e)}function gt(n,e,t){const s=Ee(n,void 0,t),i=Ee(e,void 0,t);return new j(s,i)}class j{constructor(e,t=null){Object.defineProperty(this,V,{value:Rt}),this.key=e,this.value=t}clone(e){let{key:t,value:s}=this;return C(t)&&(t=t.clone(e)),C(s)&&(s=s.clone(e)),new j(t,s)}toJSON(e,t){const s=t!=null&&t.mapAsMap?new Map:{};return zt(t,s,this)}toString(e,t,s){return e!=null&&e.doc?Us(this,e,t,s):JSON.stringify(this)}}function Zt(n,e,t){return(e.inFlow??n.flow?Gs:Ys)(n,e,t)}function Ys({comment:n,items:e},t,{blockItemPrefix:s,flowChars:i,itemIndent:r,onChompKeep:o,onComment:l}){const{indent:a,options:{commentString:c}}=t,p=Object.assign({},t,{indent:r,type:null});let f=!1;const d=[];for(let g=0;g<e.length;++g){const h=e[g];let m=null;if(C(h))!f&&h.spaceBefore&&d.push(""),Ue(t,d,h.commentBefore,f),h.comment&&(m=h.comment);else if(v(h)){const b=C(h.key)?h.key:null;b&&(!f&&b.spaceBefore&&d.push(""),Ue(t,d,b.commentBefore,f))}f=!1;let y=me(h,p,()=>m=null,()=>f=!0);m&&(y+=ee(y,r,c(m))),f&&m&&(f=!1),d.push(s+y)}let u;if(d.length===0)u=i.start+i.end;else{u=d[0];for(let g=1;g<d.length;++g){const h=d[g];u+=h?`
45
+ ${a}${h}`:`
46
+ `}}return n?(u+=`
47
+ `+H(c(n),a),l&&l()):f&&o&&o(),u}function Gs({items:n},e,{flowChars:t,itemIndent:s}){const{indent:i,indentStep:r,flowCollectionPadding:o,options:{commentString:l}}=e;s+=r;const a=Object.assign({},e,{indent:s,inFlow:!0,type:null});let c=!1,p=0;const f=[];for(let g=0;g<n.length;++g){const h=n[g];let m=null;if(C(h))h.spaceBefore&&f.push(""),Ue(e,f,h.commentBefore,!1),h.comment&&(m=h.comment);else if(v(h)){const b=C(h.key)?h.key:null;b&&(b.spaceBefore&&f.push(""),Ue(e,f,b.commentBefore,!1),b.comment&&(c=!0));const S=C(h.value)?h.value:null;S?(S.comment&&(m=S.comment),S.commentBefore&&(c=!0)):h.value==null&&(b!=null&&b.comment)&&(m=b.comment)}m&&(c=!0);let y=me(h,a,()=>m=null);c||(c=f.length>p||y.includes(`
48
+ `)),g<n.length-1?y+=",":e.options.trailingComma&&(e.options.lineWidth>0&&(c||(c=f.reduce((b,S)=>b+S.length+2,2)+(y.length+2)>e.options.lineWidth)),c&&(y+=",")),m&&(y+=ee(y,s,l(m))),f.push(y),p=f.length}const{start:d,end:u}=t;if(f.length===0)return d+u;if(!c){const g=f.reduce((h,m)=>h+m.length+2,2);c=e.options.lineWidth>0&&g>e.options.lineWidth}if(c){let g=d;for(const h of f)g+=h?`
49
+ ${r}${i}${h}`:`
50
+ `;return`${g}
51
+ ${i}${u}`}else return`${d}${o}${f.join(" ")}${o}${u}`}function Ue({indent:n,options:{commentString:e}},t,s,i){if(s&&i&&(s=s.replace(/^\n+/,"")),s){const r=H(e(s),n);t.push(r.trimStart())}}function te(n,e){const t=L(e)?e.value:e;for(const s of n)if(v(s)&&(s.key===e||s.key===t||L(s.key)&&s.key.value===t))return s}class F extends Yt{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(z,e),this.items=[]}static from(e,t,s){const{keepUndefined:i,replacer:r}=s,o=new this(e),l=(a,c)=>{if(typeof r=="function")c=r.call(t,a,c);else if(Array.isArray(r)&&!r.includes(a))return;(c!==void 0||i)&&o.items.push(gt(a,c,s))};if(t instanceof Map)for(const[a,c]of t)l(a,c);else if(t&&typeof t=="object")for(const a of Object.keys(t))l(a,t[a]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,t){var o;let s;v(e)?s=e:!e||typeof e!="object"||!("key"in e)?s=new j(e,e==null?void 0:e.value):s=new j(e.key,e.value);const i=te(this.items,s.key),r=(o=this.schema)==null?void 0:o.sortMapEntries;if(i){if(!t)throw new Error(`Key ${s.key} already set`);L(i.value)&&Jt(s.value)?i.value.value=s.value:i.value=s.value}else if(r){const l=this.items.findIndex(a=>r(s,a)<0);l===-1?this.items.push(s):this.items.splice(l,0,s)}else this.items.push(s)}delete(e){const t=te(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){const s=te(this.items,e),i=s==null?void 0:s.value;return(!t&&L(i)?i.value:i)??void 0}has(e){return!!te(this.items,e)}set(e,t){this.add(new j(e,t),!0)}toJSON(e,t,s){const i=s?new s:t!=null&&t.mapAsMap?new Map:{};t!=null&&t.onCreate&&t.onCreate(i);for(const r of this.items)zt(t,i,r);return i}toString(e,t,s){if(!e)return JSON.stringify(this);for(const i of this.items)if(!v(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Zt(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:t})}}const we={collection:"map",default:!0,nodeClass:F,tag:"tag:yaml.org,2002:map",resolve(n,e){return $e(n)||e("Expected a mapping for this tag"),n},createNode:(n,e,t)=>F.from(n,e,t)};class se extends Yt{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(ye,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=Be(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const s=Be(e);if(typeof s!="number")return;const i=this.items[s];return!t&&L(i)?i.value:i}has(e){const t=Be(e);return typeof t=="number"&&t<this.items.length}set(e,t){const s=Be(e);if(typeof s!="number")throw new Error(`Expected a valid index, not ${e}.`);const i=this.items[s];L(i)&&Jt(t)?i.value=t:this.items[s]=t}toJSON(e,t){const s=[];t!=null&&t.onCreate&&t.onCreate(s);let i=0;for(const r of this.items)s.push(U(r,String(i++),t));return s}toString(e,t,s){return e?Zt(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:s,onComment:t}):JSON.stringify(this)}static from(e,t,s){const{replacer:i}=s,r=new this(e);if(t&&Symbol.iterator in Object(t)){let o=0;for(let l of t){if(typeof i=="function"){const a=t instanceof Set?l:String(o++);l=i.call(t,a,l)}r.items.push(Ee(l,void 0,s))}}return r}}function Be(n){let e=L(n)?n.value:n;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}const ke={collection:"seq",default:!0,nodeClass:se,tag:"tag:yaml.org,2002:seq",resolve(n,e){return Ce(n)||e("Expected a sequence for this tag"),n},createNode:(n,e,t)=>se.from(n,e,t)},He={identify:n=>typeof n=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:n=>n,stringify(n,e,t,s){return e=Object.assign({actualString:!0},e),mt(n,e,t,s)}},Qe={identify:n=>n==null,createNode:()=>new A(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new A(null),stringify:({source:n},e)=>typeof n=="string"&&Qe.test.test(n)?n:e.options.nullStr},yt={identify:n=>typeof n=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:n=>new A(n[0]==="t"||n[0]==="T"),stringify({source:n,value:e},t){if(n&&yt.test.test(n)){const s=n[0]==="t"||n[0]==="T";if(e===s)return n}return e?t.options.trueStr:t.options.falseStr}};function Y({format:n,minFractionDigits:e,tag:t,value:s}){if(typeof s=="bigint")return String(s);const i=typeof s=="number"?s:Number(s);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let r=Object.is(s,-0)?"-0":JSON.stringify(s);if(!n&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^-?\d/.test(r)&&!r.includes("e")){let o=r.indexOf(".");o<0&&(o=r.length,r+=".");let l=e-(r.length-o-1);for(;l-- >0;)r+="0"}return r}const xt={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:n=>n.slice(-3).toLowerCase()==="nan"?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Y},es={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:n=>parseFloat(n),stringify(n){const e=Number(n.value);return isFinite(e)?e.toExponential():Y(n)}},ts={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(n){const e=new A(parseFloat(n)),t=n.indexOf(".");return t!==-1&&n[n.length-1]==="0"&&(e.minFractionDigits=n.length-t-1),e},stringify:Y},Xe=n=>typeof n=="bigint"||Number.isInteger(n),bt=(n,e,t,{intAsBigInt:s})=>s?BigInt(n):parseInt(n.substring(e),t);function ss(n,e,t){const{value:s}=n;return Xe(s)&&s>=0?t+s.toString(e):Y(n)}const ns={identify:n=>Xe(n)&&n>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(n,e,t)=>bt(n,2,8,t),stringify:n=>ss(n,8,"0o")},is={identify:Xe,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(n,e,t)=>bt(n,0,10,t),stringify:Y},rs={identify:n=>Xe(n)&&n>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(n,e,t)=>bt(n,2,16,t),stringify:n=>ss(n,16,"0x")},Ws=[we,ke,He,Qe,yt,ns,is,rs,xt,es,ts];function $t(n){return typeof n=="bigint"||Number.isInteger(n)}const Pe=({value:n})=>JSON.stringify(n),Hs=[{identify:n=>typeof n=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:n=>n,stringify:Pe},{identify:n=>n==null,createNode:()=>new A(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Pe},{identify:n=>typeof n=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:n=>n==="true",stringify:Pe},{identify:$t,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(n,e,{intAsBigInt:t})=>t?BigInt(n):parseInt(n,10),stringify:({value:n})=>$t(n)?n.toString():JSON.stringify(n)},{identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:n=>parseFloat(n),stringify:Pe}],Qs={default:!0,tag:"",test:/^/,resolve(n,e){return e(`Unresolved plain scalar ${JSON.stringify(n)}`),n}},Xs=[we,ke].concat(Hs,Qs),wt={identify:n=>n instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(n,e){if(typeof atob=="function"){const t=atob(n.replace(/[\n\r]/g,"")),s=new Uint8Array(t.length);for(let i=0;i<t.length;++i)s[i]=t.charCodeAt(i);return s}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),n},stringify({comment:n,type:e,value:t},s,i,r){if(!t)return"";const o=t;let l;if(typeof btoa=="function"){let a="";for(let c=0;c<o.length;++c)a+=String.fromCharCode(o[c]);l=btoa(a)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=A.BLOCK_LITERAL),e!==A.QUOTE_DOUBLE){const a=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),c=Math.ceil(l.length/a),p=new Array(c);for(let f=0,d=0;f<c;++f,d+=a)p[f]=l.substr(d,a);l=p.join(e===A.BLOCK_LITERAL?`
52
+ `:" ")}return mt({comment:n,type:e,value:l},s,i,r)}};function os(n,e){if(Ce(n))for(let t=0;t<n.items.length;++t){let s=n.items[t];if(!v(s)){if($e(s)){s.items.length>1&&e("Each pair must have its own sequence indicator");const i=s.items[0]||new j(new A(null));if(s.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${s.commentBefore}
53
+ ${i.key.commentBefore}`:s.commentBefore),s.comment){const r=i.value??i.key;r.comment=r.comment?`${s.comment}
54
+ ${r.comment}`:s.comment}s=i}n.items[t]=v(s)?s:new j(s)}}else e("Expected a sequence for this tag");return n}function ls(n,e,t){const{replacer:s}=t,i=new se(n);i.tag="tag:yaml.org,2002:pairs";let r=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof s=="function"&&(o=s.call(e,String(r++),o));let l,a;if(Array.isArray(o))if(o.length===2)l=o[0],a=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)l=c[0],a=o[l];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else l=o;i.items.push(gt(l,a,t))}return i}const kt={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:os,createNode:ls};class de extends se{constructor(){super(),this.add=F.prototype.add.bind(this),this.delete=F.prototype.delete.bind(this),this.get=F.prototype.get.bind(this),this.has=F.prototype.has.bind(this),this.set=F.prototype.set.bind(this),this.tag=de.tag}toJSON(e,t){if(!t)return super.toJSON(e);const s=new Map;t!=null&&t.onCreate&&t.onCreate(s);for(const i of this.items){let r,o;if(v(i)?(r=U(i.key,"",t),o=U(i.value,r,t)):r=U(i,"",t),s.has(r))throw new Error("Ordered maps must not include duplicate keys");s.set(r,o)}return s}static from(e,t,s){const i=ls(e,t,s),r=new this;return r.items=i.items,r}}de.tag="tag:yaml.org,2002:omap";const St={collection:"seq",identify:n=>n instanceof Map,nodeClass:de,default:!1,tag:"tag:yaml.org,2002:omap",resolve(n,e){const t=os(n,e),s=[];for(const{key:i}of t.items)L(i)&&(s.includes(i.value)?e(`Ordered maps must not include duplicate keys: ${i.value}`):s.push(i.value));return Object.assign(new de,t)},createNode:(n,e,t)=>de.from(n,e,t)};function as({value:n,source:e},t){return e&&(n?cs:fs).test.test(e)?e:n?t.options.trueStr:t.options.falseStr}const cs={identify:n=>n===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new A(!0),stringify:as},fs={identify:n=>n===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new A(!1),stringify:as},zs={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:n=>n.slice(-3).toLowerCase()==="nan"?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Y},Zs={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:n=>parseFloat(n.replace(/_/g,"")),stringify(n){const e=Number(n.value);return isFinite(e)?e.toExponential():Y(n)}},xs={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(n){const e=new A(parseFloat(n.replace(/_/g,""))),t=n.indexOf(".");if(t!==-1){const s=n.substring(t+1).replace(/_/g,"");s[s.length-1]==="0"&&(e.minFractionDigits=s.length)}return e},stringify:Y},ve=n=>typeof n=="bigint"||Number.isInteger(n);function ze(n,e,t,{intAsBigInt:s}){const i=n[0];if((i==="-"||i==="+")&&(e+=1),n=n.substring(e).replace(/_/g,""),s){switch(t){case 2:n=`0b${n}`;break;case 8:n=`0o${n}`;break;case 16:n=`0x${n}`;break}const o=BigInt(n);return i==="-"?BigInt(-1)*o:o}const r=parseInt(n,t);return i==="-"?-1*r:r}function Nt(n,e,t){const{value:s}=n;if(ve(s)){const i=s.toString(e);return s<0?"-"+t+i.substr(1):t+i}return Y(n)}const en={identify:ve,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(n,e,t)=>ze(n,2,2,t),stringify:n=>Nt(n,2,"0b")},tn={identify:ve,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(n,e,t)=>ze(n,1,8,t),stringify:n=>Nt(n,8,"0")},sn={identify:ve,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(n,e,t)=>ze(n,0,10,t),stringify:Y},nn={identify:ve,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(n,e,t)=>ze(n,2,16,t),stringify:n=>Nt(n,16,"0x")};class pe extends F{constructor(e){super(e),this.tag=pe.tag}add(e){let t;v(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new j(e.key,null):t=new j(e,null),te(this.items,t.key)||this.items.push(t)}get(e,t){const s=te(this.items,e);return!t&&v(s)?L(s.key)?s.key.value:s.key:s}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const s=te(this.items,e);s&&!t?this.items.splice(this.items.indexOf(s),1):!s&&t&&this.items.push(new j(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,s);throw new Error("Set items must all have null values")}static from(e,t,s){const{replacer:i}=s,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let o of t)typeof i=="function"&&(o=i.call(t,o,o)),r.items.push(gt(o,null,s));return r}}pe.tag="tag:yaml.org,2002:set";const Ot={collection:"map",identify:n=>n instanceof Set,nodeClass:pe,default:!1,tag:"tag:yaml.org,2002:set",createNode:(n,e,t)=>pe.from(n,e,t),resolve(n,e){if($e(n)){if(n.hasAllNullValues(!0))return Object.assign(new pe,n);e("Set items must all have null values")}else e("Expected a mapping for this tag");return n}};function At(n,e){const t=n[0],s=t==="-"||t==="+"?n.substring(1):n,i=o=>e?BigInt(o):Number(o),r=s.replace(/_/g,"").split(":").reduce((o,l)=>o*i(60)+i(l),i(0));return t==="-"?i(-1)*r:r}function us(n){let{value:e}=n,t=o=>o;if(typeof e=="bigint")t=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return Y(n);let s="";e<0&&(s="-",e*=t(-1));const i=t(60),r=[e%i];return e<60?r.unshift(0):(e=(e-r[0])/i,r.unshift(e%i),e>=60&&(e=(e-r[0])/i,r.unshift(e))),s+r.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const hs={identify:n=>typeof n=="bigint"||Number.isInteger(n),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(n,e,{intAsBigInt:t})=>At(n,t),stringify:us},ds={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:n=>At(n,!1),stringify:us},Ze={identify:n=>n instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(n){const e=n.match(Ze.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,t,s,i,r,o,l]=e.map(Number),a=e[7]?Number((e[7]+"00").substr(1,3)):0;let c=Date.UTC(t,s-1,i,r||0,o||0,l||0,a);const p=e[8];if(p&&p!=="Z"){let f=At(p,!1);Math.abs(f)<30&&(f*=60),c-=6e4*f}return new Date(c)},stringify:({value:n})=>(n==null?void 0:n.toISOString().replace(/(T00:00:00)?\.000Z$/,""))??""},Ct=[we,ke,He,Qe,cs,fs,en,tn,sn,nn,zs,Zs,xs,wt,Q,St,kt,Ot,hs,ds,Ze],vt=new Map([["core",Ws],["failsafe",[we,ke,He]],["json",Xs],["yaml11",Ct],["yaml-1.1",Ct]]),_t={binary:wt,bool:yt,float:ts,floatExp:es,floatNaN:xt,floatTime:ds,int:is,intHex:rs,intOct:ns,intTime:hs,map:we,merge:Q,null:Qe,omap:St,pairs:kt,seq:ke,set:Ot,timestamp:Ze},rn={"tag:yaml.org,2002:binary":wt,"tag:yaml.org,2002:merge":Q,"tag:yaml.org,2002:omap":St,"tag:yaml.org,2002:pairs":kt,"tag:yaml.org,2002:set":Ot,"tag:yaml.org,2002:timestamp":Ze};function tt(n,e,t){const s=vt.get(e);if(s&&!n)return t&&!s.includes(Q)?s.concat(Q):s.slice();let i=s;if(!i)if(Array.isArray(n))i=[];else{const r=Array.from(vt.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`)}if(Array.isArray(n))for(const r of n)i=i.concat(r);else typeof n=="function"&&(i=n(i.slice()));return t&&(i=i.concat(Q)),i.reduce((r,o)=>{const l=typeof o=="string"?_t[o]:o;if(!l){const a=JSON.stringify(o),c=Object.keys(_t).map(p=>JSON.stringify(p)).join(", ");throw new Error(`Unknown custom tag ${a}; use one of ${c}`)}return r.includes(l)||r.push(l),r},[])}const on=(n,e)=>n.key<e.key?-1:n.key>e.key?1:0;class Tt{constructor({compat:e,customTags:t,merge:s,resolveKnownTags:i,schema:r,sortMapEntries:o,toStringDefaults:l}){this.compat=Array.isArray(e)?tt(e,"compat"):e?tt(null,e):null,this.name=typeof r=="string"&&r||"core",this.knownTags=i?rn:{},this.tags=tt(t,this.name,s),this.toStringOptions=l??null,Object.defineProperty(this,z,{value:we}),Object.defineProperty(this,G,{value:He}),Object.defineProperty(this,ye,{value:ke}),this.sortMapEntries=typeof o=="function"?o:o===!0?on:null}clone(){const e=Object.create(Tt.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function ln(n,e){var a;const t=[];let s=e.directives===!0;if(e.directives!==!1&&n.directives){const c=n.directives.toString(n);c?(t.push(c),s=!0):n.directives.docStart&&(s=!0)}s&&t.push("---");const i=Wt(n,e),{commentString:r}=i.options;if(n.commentBefore){t.length!==1&&t.unshift("");const c=r(n.commentBefore);t.unshift(H(c,""))}let o=!1,l=null;if(n.contents){if(C(n.contents)){if(n.contents.spaceBefore&&s&&t.push(""),n.contents.commentBefore){const f=r(n.contents.commentBefore);t.push(H(f,""))}i.forceBlockIndent=!!n.comment,l=n.contents.comment}const c=l?void 0:()=>o=!0;let p=me(n.contents,i,()=>l=null,c);l&&(p+=ee(p,"",r(l))),(p[0]==="|"||p[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${p}`:t.push(p)}else t.push(me(n.contents,i));if((a=n.directives)!=null&&a.docEnd)if(n.comment){const c=r(n.comment);c.includes(`
55
+ `)?(t.push("..."),t.push(H(c,""))):t.push(`... ${c}`)}else t.push("...");else{let c=n.comment;c&&o&&(c=c.replace(/^\n+/,"")),c&&((!o||l)&&t[t.length-1]!==""&&t.push(""),t.push(H(r(c),"")))}return t.join(`
101
56
  `)+`
102
- `}class Dt{constructor(e,t,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,ae,{value:Yt});let r=null;typeof t=="function"||Array.isArray(t)?r=t:s===void 0&&t&&(s=t,t=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},s);this.options=i;let{version:a}=i;s!=null&&s._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new Z({version:a}),this.setSchema(a,s),this.contents=e===void 0?null:this.createNode(e,r,s)}clone(){const e=Object.create(Dt.prototype,{[ae]:{value:Yt}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=z(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){$e(this.contents)&&this.contents.add(e)}addIn(e,t){$e(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const s=Wn(this);e.anchor=!t||s.has(t)?Hn(t||"a",s):t}return new tn(e.anchor)}createNode(e,t,s){let r;if(typeof t=="function")e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){const p=b=>typeof b=="number"||b instanceof String||b instanceof Number,m=t.filter(p).map(String);m.length>0&&(t=t.concat(m)),r=t}else s===void 0&&t&&(s=t,t=void 0);const{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:l,onTagObj:c,tag:h}=s??{},{onAnchor:f,setAnchors:y,sourceObjects:g}=si(this,a||"a"),d={aliasDuplicateObjects:i??!0,keepUndefined:l??!1,onAnchor:f,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:g},u=rt(e,h,d);return o&&q(u)&&(u.flow=!0),y(),u}createPair(e,t,s={}){const r=this.createNode(e,null,s),i=this.createNode(t,null,s);return new J(r,i)}delete(e){return $e(this.contents)?this.contents.delete(e):!1}deleteIn(e){return et(e)?this.contents==null?!1:(this.contents=null,!0):$e(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return q(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return et(e)?!t&&P(this.contents)?this.contents.value:this.contents:q(this.contents)?this.contents.getIn(e,t):void 0}has(e){return q(this.contents)?this.contents.has(e):!1}hasIn(e){return et(e)?this.contents!==void 0:q(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=St(this.schema,[e],t):$e(this.contents)&&this.contents.set(e,t)}setIn(e,t){et(e)?this.contents=t:this.contents==null?this.contents=St(this.schema,Array.from(e),t):$e(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let s;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Z({version:"1.1"}),s={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Z({version:e}),s={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,s=null;break;default:{const r=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${r}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(s)this.schema=new dn(Object.assign(s,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:s,maxAliasCount:r,onAnchor:i,reviver:a}={}){const o={anchors:new Map,doc:this,keep:!e,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=ie(this.contents,t??"",o);if(typeof i=="function")for(const{count:c,res:h}of o.anchors.values())i(h,c);return typeof a=="function"?De(a,{"":l},"",l):l}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return Ii(this,e)}}function $e(n){if(q(n))return!0;throw new Error("Expected a YAML collection as document contents")}class ks extends Error{constructor(e,t,s,r){super(),this.name=e,this.code=s,this.message=r,this.pos=t}}class tt extends ks{constructor(e,t,s){super("YAMLParseError",e,t,s)}}class Li extends ks{constructor(e,t,s){super("YAMLWarning",e,t,s)}}const $n=(n,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(o=>e.linePos(o));const{line:s,col:r}=t.linePos[0];t.message+=` at line ${s}, column ${r}`;let i=r-1,a=n.substring(e.lineStarts[s-1],e.lineStarts[s]).replace(/[\n\r]+$/,"");if(i>=60&&a.length>80){const o=Math.min(i-39,a.length-79);a="…"+a.substring(o),i-=o-1}if(a.length>80&&(a=a.substring(0,79)+"…"),s>1&&/^ *$/.test(a.substring(0,i))){let o=n.substring(e.lineStarts[s-2],e.lineStarts[s-1]);o.length>80&&(o=o.substring(0,79)+`…
103
- `),a=o+a}if(/[^ ]/.test(a)){let o=1;const l=t.linePos[1];(l==null?void 0:l.line)===s&&l.col>r&&(o=Math.max(1,Math.min(l.col-r,80-i)));const c=" ".repeat(i)+"^".repeat(o);t.message+=`:
57
+ `}class xe{constructor(e,t,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,V,{value:ot});let i=null;typeof t=="function"||Array.isArray(t)?i=t:s===void 0&&t&&(s=t,t=void 0);const r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},s);this.options=r;let{version:o}=r;s!=null&&s._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new K({version:o}),this.setSchema(o,s),this.contents=e===void 0?null:this.createNode(e,i,s)}clone(){const e=Object.create(xe.prototype,{[V]:{value:ot}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=C(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){le(this.contents)&&this.contents.add(e)}addIn(e,t){le(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const s=Ut(this);e.anchor=!t||s.has(t)?Vt(t||"a",s):t}return new pt(e.anchor)}createNode(e,t,s){let i;if(typeof t=="function")e=t.call({"":e},"",e),i=t;else if(Array.isArray(t)){const m=b=>typeof b=="number"||b instanceof String||b instanceof Number,y=t.filter(m).map(String);y.length>0&&(t=t.concat(y)),i=t}else s===void 0&&t&&(s=t,t=void 0);const{aliasDuplicateObjects:r,anchorPrefix:o,flow:l,keepUndefined:a,onTagObj:c,tag:p}=s??{},{onAnchor:f,setAnchors:d,sourceObjects:u}=Bs(this,o||"a"),g={aliasDuplicateObjects:r??!0,keepUndefined:a??!1,onAnchor:f,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:u},h=Ee(e,p,g);return l&&$(h)&&(h.flow=!0),d(),h}createPair(e,t,s={}){const i=this.createNode(e,null,s),r=this.createNode(t,null,s);return new j(i,r)}delete(e){return le(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Oe(e)?this.contents==null?!1:(this.contents=null,!0):le(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return $(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Oe(e)?!t&&L(this.contents)?this.contents.value:this.contents:$(this.contents)?this.contents.getIn(e,t):void 0}has(e){return $(this.contents)?this.contents.has(e):!1}hasIn(e){return Oe(e)?this.contents!==void 0:$(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=Fe(this.schema,[e],t):le(this.contents)&&this.contents.set(e,t)}setIn(e,t){Oe(e)?this.contents=t:this.contents==null?this.contents=Fe(this.schema,Array.from(e),t):le(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let s;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new K({version:"1.1"}),s={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new K({version:e}),s={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,s=null;break;default:{const i=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(s)this.schema=new Tt(Object.assign(s,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:s,maxAliasCount:i,onAnchor:r,reviver:o}={}){const l={anchors:new Map,doc:this,keep:!e,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},a=U(this.contents,t??"",l);if(typeof r=="function")for(const{count:c,res:p}of l.anchors.values())r(p,c);return typeof o=="function"?ue(o,{"":a},"",a):a}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return ln(this,e)}}function le(n){if($(n))return!0;throw new Error("Expected a YAML collection as document contents")}class ps extends Error{constructor(e,t,s,i){super(),this.name=e,this.code=s,this.message=i,this.pos=t}}class Ae extends ps{constructor(e,t,s){super("YAMLParseError",e,t,s)}}class an extends ps{constructor(e,t,s){super("YAMLWarning",e,t,s)}}const Mt=(n,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(l=>e.linePos(l));const{line:s,col:i}=t.linePos[0];t.message+=` at line ${s}, column ${i}`;let r=i-1,o=n.substring(e.lineStarts[s-1],e.lineStarts[s]).replace(/[\n\r]+$/,"");if(r>=60&&o.length>80){const l=Math.min(r-39,o.length-79);o="…"+o.substring(l),r-=l-1}if(o.length>80&&(o=o.substring(0,79)+"…"),s>1&&/^ *$/.test(o.substring(0,r))){let l=n.substring(e.lineStarts[s-2],e.lineStarts[s-1]);l.length>80&&(l=l.substring(0,79)+`…
58
+ `),o=l+o}if(/[^ ]/.test(o)){let l=1;const a=t.linePos[1];(a==null?void 0:a.line)===s&&a.col>i&&(l=Math.max(1,Math.min(a.col-i,80-r)));const c=" ".repeat(r)+"^".repeat(l);t.message+=`:
104
59
 
105
- ${a}
60
+ ${o}
106
61
  ${c}
107
- `}};function Ke(n,{flow:e,indicator:t,next:s,offset:r,onError:i,parentIndent:a,startOnNewline:o}){let l=!1,c=o,h=o,f="",y="",g=!1,d=!1,u=null,p=null,m=null,b=null,w=null,S=null,v=null;for(const A of n)switch(d&&(A.type!=="space"&&A.type!=="newline"&&A.type!=="comma"&&i(A.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d=!1),u&&(c&&A.type!=="comment"&&A.type!=="newline"&&i(u,"TAB_AS_INDENT","Tabs are not allowed as indentation"),u=null),A.type){case"space":!e&&(t!=="doc-start"||(s==null?void 0:s.type)!=="flow-collection")&&A.source.includes(" ")&&(u=A),h=!0;break;case"comment":{h||i(A,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const O=A.source.substring(1)||" ";f?f+=y+O:f=O,y="",c=!1;break}case"newline":c?f?f+=A.source:(!S||t!=="seq-item-ind")&&(l=!0):y+=A.source,c=!0,g=!0,(p||m)&&(b=A),h=!0;break;case"anchor":p&&i(A,"MULTIPLE_ANCHORS","A node can have at most one anchor"),A.source.endsWith(":")&&i(A.offset+A.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),p=A,v??(v=A.offset),c=!1,h=!1,d=!0;break;case"tag":{m&&i(A,"MULTIPLE_TAGS","A node can have at most one tag"),m=A,v??(v=A.offset),c=!1,h=!1,d=!0;break}case t:(p||m)&&i(A,"BAD_PROP_ORDER",`Anchors and tags must be after the ${A.source} indicator`),S&&i(A,"UNEXPECTED_TOKEN",`Unexpected ${A.source} in ${e??"collection"}`),S=A,c=t==="seq-item-ind"||t==="explicit-key-ind",h=!1;break;case"comma":if(e){w&&i(A,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),w=A,c=!1,h=!1;break}default:i(A,"UNEXPECTED_TOKEN",`Unexpected ${A.type} token`),c=!1,h=!1}const N=n[n.length-1],_=N?N.offset+N.source.length:r;return d&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")&&i(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),u&&(c&&u.indent<=a||(s==null?void 0:s.type)==="block-map"||(s==null?void 0:s.type)==="block-seq")&&i(u,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:w,found:S,spaceBefore:l,comment:f,hasNewline:g,anchor:p,tag:m,newlineAfterProp:b,end:_,start:v??_}}function it(n){if(!n)return null;switch(n.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(n.source.includes(`
108
- `))return!0;if(n.end){for(const e of n.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of n.items){for(const t of e.start)if(t.type==="newline")return!0;if(e.sep){for(const t of e.sep)if(t.type==="newline")return!0}if(it(e.key)||it(e.value))return!0}return!1;default:return!0}}function Zt(n,e,t){if((e==null?void 0:e.type)==="flow-collection"){const s=e.end[0];s.indent===n&&(s.source==="]"||s.source==="}")&&it(e)&&t(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function vs(n,e,t){const{uniqueKeys:s}=n.options;if(s===!1)return!1;const r=typeof s=="function"?s:(i,a)=>i===a||P(i)&&P(a)&&i.value===a.value;return e.some(i=>r(i.key,t))}const xn="All mapping items must start at the same column";function Ci({composeNode:n,composeEmptyNode:e},t,s,r,i){var h;const a=(i==null?void 0:i.nodeClass)??re,o=new a(t.schema);t.atRoot&&(t.atRoot=!1);let l=s.offset,c=null;for(const f of s.items){const{start:y,key:g,sep:d,value:u}=f,p=Ke(y,{indicator:"explicit-key-ind",next:g??(d==null?void 0:d[0]),offset:l,onError:r,parentIndent:s.indent,startOnNewline:!0}),m=!p.found;if(m){if(g&&(g.type==="block-seq"?r(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in g&&g.indent!==s.indent&&r(l,"BAD_INDENT",xn)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=`
109
- `+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||it(g))&&r(g??y[y.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((h=p.found)==null?void 0:h.indent)!==s.indent&&r(l,"BAD_INDENT",xn);t.atKey=!0;const b=p.end,w=g?n(t,g,p,r):e(t,b,y,null,p,r);t.schema.compat&&Zt(s.indent,g,r),t.atKey=!1,vs(t,o.items,w)&&r(b,"DUPLICATE_KEY","Map keys must be unique");const S=Ke(d??[],{indicator:"map-value-ind",next:u,offset:w.range[2],onError:r,parentIndent:s.indent,startOnNewline:!g||g.type==="block-scalar"});if(l=S.end,S.found){m&&((u==null?void 0:u.type)==="block-map"&&!S.hasNewline&&r(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&p.start<S.found.offset-1024&&r(w.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const v=u?n(t,u,S,r):e(t,l,d,null,S,r);t.schema.compat&&Zt(s.indent,u,r),l=v.range[2];const N=new J(w,v);t.options.keepSourceTokens&&(N.srcToken=f),o.items.push(N)}else{m&&r(w.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),S.comment&&(w.comment?w.comment+=`
110
- `+S.comment:w.comment=S.comment);const v=new J(w);t.options.keepSourceTokens&&(v.srcToken=f),o.items.push(v)}}return c&&c<l&&r(c,"IMPOSSIBLE","Map comment with trailing content"),o.range=[s.offset,l,c??l],o}function Fi({composeNode:n,composeEmptyNode:e},t,s,r,i){const a=(i==null?void 0:i.nodeClass)??Ie,o=new a(t.schema);t.atRoot&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let l=s.offset,c=null;for(const{start:h,value:f}of s.items){const y=Ke(h,{indicator:"seq-item-ind",next:f,offset:l,onError:r,parentIndent:s.indent,startOnNewline:!0});if(!y.found)if(y.anchor||y.tag||f)(f==null?void 0:f.type)==="block-seq"?r(y.end,"BAD_INDENT","All sequence items must start at the same column"):r(l,"MISSING_CHAR","Sequence item without - indicator");else{c=y.end,y.comment&&(o.comment=y.comment);continue}const g=f?n(t,f,y,r):e(t,y.end,h,null,y,r);t.schema.compat&&Zt(s.indent,f,r),l=g.range[2],o.items.push(g)}return o.range=[s.offset,l,c??l],o}function ct(n,e,t,s){let r="";if(n){let i=!1,a="";for(const o of n){const{source:l,type:c}=o;switch(c){case"space":i=!0;break;case"comment":{t&&!i&&s(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const h=l.substring(1)||" ";r?r+=a+h:r=h,a="";break}case"newline":r&&(a+=l),i=!0;break;default:s(o,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=l.length}}return{comment:r,offset:e}}const Kt="Block collections are not allowed within flow collections",Ut=n=>n&&(n.type==="block-map"||n.type==="block-seq");function $i({composeNode:n,composeEmptyNode:e},t,s,r,i){var p;const a=s.start.source==="{",o=a?"flow map":"flow sequence",l=(i==null?void 0:i.nodeClass)??(a?re:Ie),c=new l(t.schema);c.flow=!0;const h=t.atRoot;h&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let f=s.offset+s.start.source.length;for(let m=0;m<s.items.length;++m){const b=s.items[m],{start:w,key:S,sep:v,value:N}=b,_=Ke(w,{flow:o,indicator:"explicit-key-ind",next:S??(v==null?void 0:v[0]),offset:f,onError:r,parentIndent:s.indent,startOnNewline:!1});if(!_.found){if(!_.anchor&&!_.tag&&!v&&!N){m===0&&_.comma?r(_.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`):m<s.items.length-1&&r(_.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${o}`),_.comment&&(c.comment?c.comment+=`
111
- `+_.comment:c.comment=_.comment),f=_.end;continue}!a&&t.options.strict&&it(S)&&r(S,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(m===0)_.comma&&r(_.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`);else if(_.comma||r(_.start,"MISSING_CHAR",`Missing , between ${o} items`),_.comment){let A="";e:for(const O of w)switch(O.type){case"comma":case"space":break;case"comment":A=O.source.substring(1);break e;default:break e}if(A){let O=c.items[c.items.length-1];G(O)&&(O=O.value??O.key),O.comment?O.comment+=`
112
- `+A:O.comment=A,_.comment=_.comment.substring(A.length+1)}}if(!a&&!v&&!_.found){const A=N?n(t,N,_,r):e(t,_.end,v,null,_,r);c.items.push(A),f=A.range[2],Ut(N)&&r(A.range,"BLOCK_IN_FLOW",Kt)}else{t.atKey=!0;const A=_.end,O=S?n(t,S,_,r):e(t,A,w,null,_,r);Ut(S)&&r(O.range,"BLOCK_IN_FLOW",Kt),t.atKey=!1;const x=Ke(v??[],{flow:o,indicator:"map-value-ind",next:N,offset:O.range[2],onError:r,parentIndent:s.indent,startOnNewline:!1});if(x.found){if(!a&&!_.found&&t.options.strict){if(v)for(const I of v){if(I===x.found)break;if(I.type==="newline"){r(I,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}_.start<x.found.offset-1024&&r(x.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else N&&("source"in N&&((p=N.source)==null?void 0:p[0])===":"?r(N,"MISSING_CHAR",`Missing space after : in ${o}`):r(x.start,"MISSING_CHAR",`Missing , or : between ${o} items`));const D=N?n(t,N,x,r):x.found?e(t,x.end,v,null,x,r):null;D?Ut(N)&&r(D.range,"BLOCK_IN_FLOW",Kt):x.comment&&(O.comment?O.comment+=`
113
- `+x.comment:O.comment=x.comment);const B=new J(O,D);if(t.options.keepSourceTokens&&(B.srcToken=b),a){const I=c;vs(t,I.items,O)&&r(A,"DUPLICATE_KEY","Map keys must be unique"),I.items.push(B)}else{const I=new re(t.schema);I.flow=!0,I.items.push(B);const L=(D??O).range;I.range=[O.range[0],L[1],L[2]],c.items.push(I)}f=D?D.range[2]:x.end}}const y=a?"}":"]",[g,...d]=s.end;let u=f;if((g==null?void 0:g.source)===y)u=g.offset+g.source.length;else{const m=o[0].toUpperCase()+o.substring(1),b=h?`${m} must end with a ${y}`:`${m} in block collection must be sufficiently indented and end with a ${y}`;r(f,h?"MISSING_CHAR":"BAD_INDENT",b),g&&g.source.length!==1&&d.unshift(g)}if(d.length>0){const m=ct(d,u,t.options.strict,r);m.comment&&(c.comment?c.comment+=`
114
- `+m.comment:c.comment=m.comment),c.range=[s.offset,u,m.offset]}else c.range=[s.offset,u,u];return c}function qt(n,e,t,s,r,i){const a=t.type==="block-map"?Ci(n,e,t,s,i):t.type==="block-seq"?Fi(n,e,t,s,i):$i(n,e,t,s,i),o=a.constructor;return r==="!"||r===o.tagName?(a.tag=o.tagName,a):(r&&(a.tag=r),a)}function xi(n,e,t,s,r){var y;const i=s.tag,a=i?e.directives.tagName(i.source,g=>r(i,"TAG_RESOLVE_FAILED",g)):null;if(t.type==="block-seq"){const{anchor:g,newlineAfterProp:d}=s,u=g&&i?g.offset>i.offset?g:i:g??i;u&&(!d||d.offset<u.offset)&&r(u,"MISSING_CHAR","Missing newline after block sequence props")}const o=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!i||!a||a==="!"||a===re.tagName&&o==="map"||a===Ie.tagName&&o==="seq")return qt(n,e,t,r,a);let l=e.schema.tags.find(g=>g.tag===a&&g.collection===o);if(!l){const g=e.schema.knownTags[a];if((g==null?void 0:g.collection)===o)e.schema.tags.push(Object.assign({},g,{default:!1})),l=g;else return g?r(i,"BAD_COLLECTION_TYPE",`${g.tag} used for ${o} collection, but expects ${g.collection??"scalar"}`,!0):r(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),qt(n,e,t,r,a)}const c=qt(n,e,t,r,a,l),h=((y=l.resolve)==null?void 0:y.call(l,c,g=>r(i,"TAG_RESOLVE_FAILED",g),e.options))??c,f=z(h)?h:new T(h);return f.range=c.range,f.tag=a,l!=null&&l.format&&(f.format=l.format),f}function Ri(n,e,t){const s=e.offset,r=Di(e,n.options.strict,t);if(!r)return{value:"",type:null,comment:"",range:[s,s,s]};const i=r.mode===">"?T.BLOCK_FOLDED:T.BLOCK_LITERAL,a=e.source?Bi(e.source):[];let o=a.length;for(let u=a.length-1;u>=0;--u){const p=a[u][1];if(p===""||p==="\r")o=u;else break}if(o===0){const u=r.chomp==="+"&&a.length>0?`
115
- `.repeat(Math.max(1,a.length-1)):"";let p=s+r.length;return e.source&&(p+=e.source.length),{value:u,type:i,comment:r.comment,range:[s,p,p]}}let l=e.indent+r.indent,c=e.offset+r.length,h=0;for(let u=0;u<o;++u){const[p,m]=a[u];if(m===""||m==="\r")r.indent===0&&p.length>l&&(l=p.length);else{p.length<l&&t(c+p.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),r.indent===0&&(l=p.length),h=u,l===0&&!n.atRoot&&t(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=p.length+m.length+1}for(let u=a.length-1;u>=o;--u)a[u][0].length>l&&(o=u+1);let f="",y="",g=!1;for(let u=0;u<h;++u)f+=a[u][0].slice(l)+`
116
- `;for(let u=h;u<o;++u){let[p,m]=a[u];c+=p.length+m.length+1;const b=m[m.length-1]==="\r";if(b&&(m=m.slice(0,-1)),m&&p.length<l){const S=`Block scalar lines must not be less indented than their ${r.indent?"explicit indentation indicator":"first line"}`;t(c-m.length-(b?2:1),"BAD_INDENT",S),p=""}i===T.BLOCK_LITERAL?(f+=y+p.slice(l)+m,y=`
117
- `):p.length>l||m[0]===" "?(y===" "?y=`
118
- `:!g&&y===`
119
- `&&(y=`
62
+ `}};function ge(n,{flow:e,indicator:t,next:s,offset:i,onError:r,parentIndent:o,startOnNewline:l}){let a=!1,c=l,p=l,f="",d="",u=!1,g=!1,h=null,m=null,y=null,b=null,S=null,N=null,k=null;for(const w of n)switch(g&&(w.type!=="space"&&w.type!=="newline"&&w.type!=="comma"&&r(w.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),h&&(c&&w.type!=="comment"&&w.type!=="newline"&&r(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),h=null),w.type){case"space":!e&&(t!=="doc-start"||(s==null?void 0:s.type)!=="flow-collection")&&w.source.includes(" ")&&(h=w),p=!0;break;case"comment":{p||r(w,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const E=w.source.substring(1)||" ";f?f+=d+E:f=E,d="",c=!1;break}case"newline":c?f?f+=w.source:(!N||t!=="seq-item-ind")&&(a=!0):d+=w.source,c=!0,u=!0,(m||y)&&(b=w),p=!0;break;case"anchor":m&&r(w,"MULTIPLE_ANCHORS","A node can have at most one anchor"),w.source.endsWith(":")&&r(w.offset+w.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=w,k??(k=w.offset),c=!1,p=!1,g=!0;break;case"tag":{y&&r(w,"MULTIPLE_TAGS","A node can have at most one tag"),y=w,k??(k=w.offset),c=!1,p=!1,g=!0;break}case t:(m||y)&&r(w,"BAD_PROP_ORDER",`Anchors and tags must be after the ${w.source} indicator`),N&&r(w,"UNEXPECTED_TOKEN",`Unexpected ${w.source} in ${e??"collection"}`),N=w,c=t==="seq-item-ind"||t==="explicit-key-ind",p=!1;break;case"comma":if(e){S&&r(w,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),S=w,c=!1,p=!1;break}default:r(w,"UNEXPECTED_TOKEN",`Unexpected ${w.type} token`),c=!1,p=!1}const I=n[n.length-1],O=I?I.offset+I.source.length:i;return g&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")&&r(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),h&&(c&&h.indent<=o||(s==null?void 0:s.type)==="block-map"||(s==null?void 0:s.type)==="block-seq")&&r(h,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:S,found:N,spaceBefore:a,comment:f,hasNewline:u,anchor:m,tag:y,newlineAfterProp:b,end:O,start:k??O}}function Le(n){if(!n)return null;switch(n.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(n.source.includes(`
63
+ `))return!0;if(n.end){for(const e of n.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of n.items){for(const t of e.start)if(t.type==="newline")return!0;if(e.sep){for(const t of e.sep)if(t.type==="newline")return!0}if(Le(e.key)||Le(e.value))return!0}return!1;default:return!0}}function ft(n,e,t){if((e==null?void 0:e.type)==="flow-collection"){const s=e.end[0];s.indent===n&&(s.source==="]"||s.source==="}")&&Le(e)&&t(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function ms(n,e,t){const{uniqueKeys:s}=n.options;if(s===!1)return!1;const i=typeof s=="function"?s:(r,o)=>r===o||L(r)&&L(o)&&r.value===o.value;return e.some(r=>i(r.key,t))}const Bt="All mapping items must start at the same column";function cn({composeNode:n,composeEmptyNode:e},t,s,i,r){var p;const o=(r==null?void 0:r.nodeClass)??F,l=new o(t.schema);t.atRoot&&(t.atRoot=!1);let a=s.offset,c=null;for(const f of s.items){const{start:d,key:u,sep:g,value:h}=f,m=ge(d,{indicator:"explicit-key-ind",next:u??(g==null?void 0:g[0]),offset:a,onError:i,parentIndent:s.indent,startOnNewline:!0}),y=!m.found;if(y){if(u&&(u.type==="block-seq"?i(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in u&&u.indent!==s.indent&&i(a,"BAD_INDENT",Bt)),!m.anchor&&!m.tag&&!g){c=m.end,m.comment&&(l.comment?l.comment+=`
64
+ `+m.comment:l.comment=m.comment);continue}(m.newlineAfterProp||Le(u))&&i(u??d[d.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((p=m.found)==null?void 0:p.indent)!==s.indent&&i(a,"BAD_INDENT",Bt);t.atKey=!0;const b=m.end,S=u?n(t,u,m,i):e(t,b,d,null,m,i);t.schema.compat&&ft(s.indent,u,i),t.atKey=!1,ms(t,l.items,S)&&i(b,"DUPLICATE_KEY","Map keys must be unique");const N=ge(g??[],{indicator:"map-value-ind",next:h,offset:S.range[2],onError:i,parentIndent:s.indent,startOnNewline:!u||u.type==="block-scalar"});if(a=N.end,N.found){y&&((h==null?void 0:h.type)==="block-map"&&!N.hasNewline&&i(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&m.start<N.found.offset-1024&&i(S.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const k=h?n(t,h,N,i):e(t,a,g,null,N,i);t.schema.compat&&ft(s.indent,h,i),a=k.range[2];const I=new j(S,k);t.options.keepSourceTokens&&(I.srcToken=f),l.items.push(I)}else{y&&i(S.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),N.comment&&(S.comment?S.comment+=`
65
+ `+N.comment:S.comment=N.comment);const k=new j(S);t.options.keepSourceTokens&&(k.srcToken=f),l.items.push(k)}}return c&&c<a&&i(c,"IMPOSSIBLE","Map comment with trailing content"),l.range=[s.offset,a,c??a],l}function fn({composeNode:n,composeEmptyNode:e},t,s,i,r){const o=(r==null?void 0:r.nodeClass)??se,l=new o(t.schema);t.atRoot&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let a=s.offset,c=null;for(const{start:p,value:f}of s.items){const d=ge(p,{indicator:"seq-item-ind",next:f,offset:a,onError:i,parentIndent:s.indent,startOnNewline:!0});if(!d.found)if(d.anchor||d.tag||f)(f==null?void 0:f.type)==="block-seq"?i(d.end,"BAD_INDENT","All sequence items must start at the same column"):i(a,"MISSING_CHAR","Sequence item without - indicator");else{c=d.end,d.comment&&(l.comment=d.comment);continue}const u=f?n(t,f,d,i):e(t,d.end,p,null,d,i);t.schema.compat&&ft(s.indent,f,i),a=u.range[2],l.items.push(u)}return l.range=[s.offset,a,c??a],l}function _e(n,e,t,s){let i="";if(n){let r=!1,o="";for(const l of n){const{source:a,type:c}=l;switch(c){case"space":r=!0;break;case"comment":{t&&!r&&s(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const p=a.substring(1)||" ";i?i+=o+p:i=p,o="";break}case"newline":i&&(o+=a),r=!0;break;default:s(l,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=a.length}}return{comment:i,offset:e}}const st="Block collections are not allowed within flow collections",nt=n=>n&&(n.type==="block-map"||n.type==="block-seq");function un({composeNode:n,composeEmptyNode:e},t,s,i,r){var m;const o=s.start.source==="{",l=o?"flow map":"flow sequence",a=(r==null?void 0:r.nodeClass)??(o?F:se),c=new a(t.schema);c.flow=!0;const p=t.atRoot;p&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let f=s.offset+s.start.source.length;for(let y=0;y<s.items.length;++y){const b=s.items[y],{start:S,key:N,sep:k,value:I}=b,O=ge(S,{flow:l,indicator:"explicit-key-ind",next:N??(k==null?void 0:k[0]),offset:f,onError:i,parentIndent:s.indent,startOnNewline:!1});if(!O.found){if(!O.anchor&&!O.tag&&!k&&!I){y===0&&O.comma?i(O.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):y<s.items.length-1&&i(O.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),O.comment&&(c.comment?c.comment+=`
66
+ `+O.comment:c.comment=O.comment),f=O.end;continue}!o&&t.options.strict&&Le(N)&&i(N,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(y===0)O.comma&&i(O.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(O.comma||i(O.start,"MISSING_CHAR",`Missing , between ${l} items`),O.comment){let w="";e:for(const E of S)switch(E.type){case"comma":case"space":break;case"comment":w=E.source.substring(1);break e;default:break e}if(w){let E=c.items[c.items.length-1];v(E)&&(E=E.value??E.key),E.comment?E.comment+=`
67
+ `+w:E.comment=w,O.comment=O.comment.substring(w.length+1)}}if(!o&&!k&&!O.found){const w=I?n(t,I,O,i):e(t,O.end,k,null,O,i);c.items.push(w),f=w.range[2],nt(I)&&i(w.range,"BLOCK_IN_FLOW",st)}else{t.atKey=!0;const w=O.end,E=N?n(t,N,O,i):e(t,w,S,null,O,i);nt(N)&&i(E.range,"BLOCK_IN_FLOW",st),t.atKey=!1;const _=ge(k??[],{flow:l,indicator:"map-value-ind",next:I,offset:E.range[2],onError:i,parentIndent:s.indent,startOnNewline:!1});if(_.found){if(!o&&!O.found&&t.options.strict){if(k)for(const T of k){if(T===_.found)break;if(T.type==="newline"){i(T,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}O.start<_.found.offset-1024&&i(_.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else I&&("source"in I&&((m=I.source)==null?void 0:m[0])===":"?i(I,"MISSING_CHAR",`Missing space after : in ${l}`):i(_.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const D=I?n(t,I,_,i):_.found?e(t,_.end,k,null,_,i):null;D?nt(I)&&i(D.range,"BLOCK_IN_FLOW",st):_.comment&&(E.comment?E.comment+=`
68
+ `+_.comment:E.comment=_.comment);const R=new j(E,D);if(t.options.keepSourceTokens&&(R.srcToken=b),o){const T=c;ms(t,T.items,E)&&i(w,"DUPLICATE_KEY","Map keys must be unique"),T.items.push(R)}else{const T=new F(t.schema);T.flow=!0,T.items.push(R);const M=(D??E).range;T.range=[E.range[0],M[1],M[2]],c.items.push(T)}f=D?D.range[2]:_.end}}const d=o?"}":"]",[u,...g]=s.end;let h=f;if((u==null?void 0:u.source)===d)h=u.offset+u.source.length;else{const y=l[0].toUpperCase()+l.substring(1),b=p?`${y} must end with a ${d}`:`${y} in block collection must be sufficiently indented and end with a ${d}`;i(f,p?"MISSING_CHAR":"BAD_INDENT",b),u&&u.source.length!==1&&g.unshift(u)}if(g.length>0){const y=_e(g,h,t.options.strict,i);y.comment&&(c.comment?c.comment+=`
69
+ `+y.comment:c.comment=y.comment),c.range=[s.offset,h,y.offset]}else c.range=[s.offset,h,h];return c}function it(n,e,t,s,i,r){const o=t.type==="block-map"?cn(n,e,t,s,r):t.type==="block-seq"?fn(n,e,t,s,r):un(n,e,t,s,r),l=o.constructor;return i==="!"||i===l.tagName?(o.tag=l.tagName,o):(i&&(o.tag=i),o)}function hn(n,e,t,s,i){var d;const r=s.tag,o=r?e.directives.tagName(r.source,u=>i(r,"TAG_RESOLVE_FAILED",u)):null;if(t.type==="block-seq"){const{anchor:u,newlineAfterProp:g}=s,h=u&&r?u.offset>r.offset?u:r:u??r;h&&(!g||g.offset<h.offset)&&i(h,"MISSING_CHAR","Missing newline after block sequence props")}const l=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!r||!o||o==="!"||o===F.tagName&&l==="map"||o===se.tagName&&l==="seq")return it(n,e,t,i,o);let a=e.schema.tags.find(u=>u.tag===o&&u.collection===l);if(!a){const u=e.schema.knownTags[o];if((u==null?void 0:u.collection)===l)e.schema.tags.push(Object.assign({},u,{default:!1})),a=u;else return u?i(r,"BAD_COLLECTION_TYPE",`${u.tag} used for ${l} collection, but expects ${u.collection??"scalar"}`,!0):i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),it(n,e,t,i,o)}const c=it(n,e,t,i,o,a),p=((d=a.resolve)==null?void 0:d.call(a,c,u=>i(r,"TAG_RESOLVE_FAILED",u),e.options))??c,f=C(p)?p:new A(p);return f.range=c.range,f.tag=o,a!=null&&a.format&&(f.format=a.format),f}function dn(n,e,t){const s=e.offset,i=pn(e,n.options.strict,t);if(!i)return{value:"",type:null,comment:"",range:[s,s,s]};const r=i.mode===">"?A.BLOCK_FOLDED:A.BLOCK_LITERAL,o=e.source?mn(e.source):[];let l=o.length;for(let h=o.length-1;h>=0;--h){const m=o[h][1];if(m===""||m==="\r")l=h;else break}if(l===0){const h=i.chomp==="+"&&o.length>0?`
70
+ `.repeat(Math.max(1,o.length-1)):"";let m=s+i.length;return e.source&&(m+=e.source.length),{value:h,type:r,comment:i.comment,range:[s,m,m]}}let a=e.indent+i.indent,c=e.offset+i.length,p=0;for(let h=0;h<l;++h){const[m,y]=o[h];if(y===""||y==="\r")i.indent===0&&m.length>a&&(a=m.length);else{m.length<a&&t(c+m.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(a=m.length),p=h,a===0&&!n.atRoot&&t(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=m.length+y.length+1}for(let h=o.length-1;h>=l;--h)o[h][0].length>a&&(l=h+1);let f="",d="",u=!1;for(let h=0;h<p;++h)f+=o[h][0].slice(a)+`
71
+ `;for(let h=p;h<l;++h){let[m,y]=o[h];c+=m.length+y.length+1;const b=y[y.length-1]==="\r";if(b&&(y=y.slice(0,-1)),y&&m.length<a){const N=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;t(c-y.length-(b?2:1),"BAD_INDENT",N),m=""}r===A.BLOCK_LITERAL?(f+=d+m.slice(a)+y,d=`
72
+ `):m.length>a||y[0]===" "?(d===" "?d=`
73
+ `:!u&&d===`
74
+ `&&(d=`
120
75
 
121
- `),f+=y+p.slice(l)+m,y=`
122
- `,g=!0):m===""?y===`
76
+ `),f+=d+m.slice(a)+y,d=`
77
+ `,u=!0):y===""?d===`
123
78
  `?f+=`
124
- `:y=`
125
- `:(f+=y+m,y=" ",g=!1)}switch(r.chomp){case"-":break;case"+":for(let u=o;u<a.length;++u)f+=`
126
- `+a[u][0].slice(l);f[f.length-1]!==`
79
+ `:d=`
80
+ `:(f+=d+y,d=" ",u=!1)}switch(i.chomp){case"-":break;case"+":for(let h=l;h<o.length;++h)f+=`
81
+ `+o[h][0].slice(a);f[f.length-1]!==`
127
82
  `&&(f+=`
128
83
  `);break;default:f+=`
129
- `}const d=s+r.length+e.source.length;return{value:f,type:i,comment:r.comment,range:[s,d,d]}}function Di({offset:n,props:e},t,s){if(e[0].type!=="block-scalar-header")return s(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:r}=e[0],i=r[0];let a=0,o="",l=-1;for(let y=1;y<r.length;++y){const g=r[y];if(!o&&(g==="-"||g==="+"))o=g;else{const d=Number(g);!a&&d?a=d:l===-1&&(l=n+y)}}l!==-1&&s(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${r}`);let c=!1,h="",f=r.length;for(let y=1;y<e.length;++y){const g=e[y];switch(g.type){case"space":c=!0;case"newline":f+=g.source.length;break;case"comment":t&&!c&&s(g,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=g.source.length,h=g.source.substring(1);break;case"error":s(g,"UNEXPECTED_TOKEN",g.message),f+=g.source.length;break;default:{const d=`Unexpected token in block scalar header: ${g.type}`;s(g,"UNEXPECTED_TOKEN",d);const u=g.source;u&&typeof u=="string"&&(f+=u.length)}}}return{mode:i,indent:a,chomp:o,comment:h,length:f}}function Bi(n){const e=n.split(/\n( *)/),t=e[0],s=t.match(/^( *)/),i=[s!=null&&s[1]?[s[1],t.slice(s[1].length)]:["",t]];for(let a=1;a<e.length;a+=2)i.push([e[a],e[a+1]]);return i}function Pi(n,e,t){const{offset:s,type:r,source:i,end:a}=n;let o,l;const c=(y,g,d)=>t(s+y,g,d);switch(r){case"scalar":o=T.PLAIN,l=ji(i,c);break;case"single-quoted-scalar":o=T.QUOTE_SINGLE,l=Mi(i,c);break;case"double-quoted-scalar":o=T.QUOTE_DOUBLE,l=Ki(i,c);break;default:return t(n,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${r}`),{value:"",type:null,comment:"",range:[s,s+i.length,s+i.length]}}const h=s+i.length,f=ct(a,h,e,t);return{value:l,type:o,comment:f.comment,range:[s,h,f.offset]}}function ji(n,e){let t="";switch(n[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${n[0]}`;break}case"@":case"`":{t=`reserved character ${n[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),Ss(n)}function Mi(n,e){return(n[n.length-1]!=="'"||n.length===1)&&e(n.length,"MISSING_CHAR","Missing closing 'quote"),Ss(n.slice(1,-1)).replace(/''/g,"'")}function Ss(n){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
84
+ `}const g=s+i.length+e.source.length;return{value:f,type:r,comment:i.comment,range:[s,g,g]}}function pn({offset:n,props:e},t,s){if(e[0].type!=="block-scalar-header")return s(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=e[0],r=i[0];let o=0,l="",a=-1;for(let d=1;d<i.length;++d){const u=i[d];if(!l&&(u==="-"||u==="+"))l=u;else{const g=Number(u);!o&&g?o=g:a===-1&&(a=n+d)}}a!==-1&&s(a,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,p="",f=i.length;for(let d=1;d<e.length;++d){const u=e[d];switch(u.type){case"space":c=!0;case"newline":f+=u.source.length;break;case"comment":t&&!c&&s(u,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=u.source.length,p=u.source.substring(1);break;case"error":s(u,"UNEXPECTED_TOKEN",u.message),f+=u.source.length;break;default:{const g=`Unexpected token in block scalar header: ${u.type}`;s(u,"UNEXPECTED_TOKEN",g);const h=u.source;h&&typeof h=="string"&&(f+=h.length)}}}return{mode:r,indent:o,chomp:l,comment:p,length:f}}function mn(n){const e=n.split(/\n( *)/),t=e[0],s=t.match(/^( *)/),r=[s!=null&&s[1]?[s[1],t.slice(s[1].length)]:["",t]];for(let o=1;o<e.length;o+=2)r.push([e[o],e[o+1]]);return r}function gn(n,e,t){const{offset:s,type:i,source:r,end:o}=n;let l,a;const c=(d,u,g)=>t(s+d,u,g);switch(i){case"scalar":l=A.PLAIN,a=yn(r,c);break;case"single-quoted-scalar":l=A.QUOTE_SINGLE,a=bn(r,c);break;case"double-quoted-scalar":l=A.QUOTE_DOUBLE,a=wn(r,c);break;default:return t(n,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[s,s+r.length,s+r.length]}}const p=s+r.length,f=_e(o,p,e,t);return{value:a,type:l,comment:f.comment,range:[s,p,f.offset]}}function yn(n,e){let t="";switch(n[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${n[0]}`;break}case"@":case"`":{t=`reserved character ${n[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),gs(n)}function bn(n,e){return(n[n.length-1]!=="'"||n.length===1)&&e(n.length,"MISSING_CHAR","Missing closing 'quote"),gs(n.slice(1,-1)).replace(/''/g,"'")}function gs(n){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
130
85
  `,"sy"),t=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
131
- `,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,t=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=e.exec(n);if(!s)return n;let r=s[1],i=" ",a=e.lastIndex;for(t.lastIndex=a;s=t.exec(n);)s[1]===""?i===`
132
- `?r+=i:i=`
133
- `:(r+=i+s[1],i=" "),a=t.lastIndex;const o=/[ \t]*(.*)/sy;return o.lastIndex=a,s=o.exec(n),r+i+((s==null?void 0:s[1])??"")}function Ki(n,e){let t="";for(let s=1;s<n.length-1;++s){const r=n[s];if(!(r==="\r"&&n[s+1]===`
134
- `))if(r===`
135
- `){const{fold:i,offset:a}=Ui(n,s);t+=i,s=a}else if(r==="\\"){let i=n[++s];const a=qi[i];if(a)t+=a;else if(i===`
136
- `)for(i=n[s+1];i===" "||i===" ";)i=n[++s+1];else if(i==="\r"&&n[s+1]===`
137
- `)for(i=n[++s+1];i===" "||i===" ";)i=n[++s+1];else if(i==="x"||i==="u"||i==="U"){const o=i==="x"?2:i==="u"?4:8;t+=zi(n,s+1,o,e),s+=o}else{const o=n.substr(s-1,2);e(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),t+=o}}else if(r===" "||r===" "){const i=s;let a=n[s+1];for(;a===" "||a===" ";)a=n[++s+1];a!==`
138
- `&&!(a==="\r"&&n[s+2]===`
139
- `)&&(t+=s>i?n.slice(i,s+1):r)}else t+=r}return(n[n.length-1]!=='"'||n.length===1)&&e(n.length,"MISSING_CHAR",'Missing closing "quote'),t}function Ui(n,e){let t="",s=n[e+1];for(;(s===" "||s===" "||s===`
86
+ `,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,t=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=e.exec(n);if(!s)return n;let i=s[1],r=" ",o=e.lastIndex;for(t.lastIndex=o;s=t.exec(n);)s[1]===""?r===`
87
+ `?i+=r:r=`
88
+ `:(i+=r+s[1],r=" "),o=t.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=o,s=l.exec(n),i+r+((s==null?void 0:s[1])??"")}function wn(n,e){let t="";for(let s=1;s<n.length-1;++s){const i=n[s];if(!(i==="\r"&&n[s+1]===`
89
+ `))if(i===`
90
+ `){const{fold:r,offset:o}=kn(n,s);t+=r,s=o}else if(i==="\\"){let r=n[++s];const o=Sn[r];if(o)t+=o;else if(r===`
91
+ `)for(r=n[s+1];r===" "||r===" ";)r=n[++s+1];else if(r==="\r"&&n[s+1]===`
92
+ `)for(r=n[++s+1];r===" "||r===" ";)r=n[++s+1];else if(r==="x"||r==="u"||r==="U"){const l=r==="x"?2:r==="u"?4:8;t+=Nn(n,s+1,l,e),s+=l}else{const l=n.substr(s-1,2);e(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),t+=l}}else if(i===" "||i===" "){const r=s;let o=n[s+1];for(;o===" "||o===" ";)o=n[++s+1];o!==`
93
+ `&&!(o==="\r"&&n[s+2]===`
94
+ `)&&(t+=s>r?n.slice(r,s+1):i)}else t+=i}return(n[n.length-1]!=='"'||n.length===1)&&e(n.length,"MISSING_CHAR",'Missing closing "quote'),t}function kn(n,e){let t="",s=n[e+1];for(;(s===" "||s===" "||s===`
140
95
  `||s==="\r")&&!(s==="\r"&&n[e+2]!==`
141
96
  `);)s===`
142
97
  `&&(t+=`
143
- `),e+=1,s=n[e+1];return t||(t=" "),{fold:t,offset:e}}const qi={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
144
- `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function zi(n,e,t,s){const r=n.substr(e,t),a=r.length===t&&/^[0-9a-fA-F]+$/.test(r)?parseInt(r,16):NaN;try{return String.fromCodePoint(a)}catch{const o=n.substr(e-2,t+2);return s(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}}function Es(n,e,t,s){const{value:r,type:i,comment:a,range:o}=e.type==="block-scalar"?Ri(n,e,s):Pi(e,n.options.strict,s),l=t?n.directives.tagName(t.source,f=>s(t,"TAG_RESOLVE_FAILED",f)):null;let c;n.options.stringKeys&&n.atKey?c=n.schema[he]:l?c=Gi(n.schema,r,l,t,s):e.type==="scalar"?c=Yi(n,r,e,s):c=n.schema[he];let h;try{const f=c.resolve(r,y=>s(t??e,"TAG_RESOLVE_FAILED",y),n.options);h=P(f)?f:new T(f)}catch(f){const y=f instanceof Error?f.message:String(f);s(t??e,"TAG_RESOLVE_FAILED",y),h=new T(r)}return h.range=o,h.source=r,i&&(h.type=i),l&&(h.tag=l),c.format&&(h.format=c.format),a&&(h.comment=a),h}function Gi(n,e,t,s,r){var o;if(t==="!")return n[he];const i=[];for(const l of n.tags)if(!l.collection&&l.tag===t)if(l.default&&l.test)i.push(l);else return l;for(const l of i)if((o=l.test)!=null&&o.test(e))return l;const a=n.knownTags[t];return a&&!a.collection?(n.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(r(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),n[he])}function Yi({atKey:n,directives:e,schema:t},s,r,i){const a=t.tags.find(o=>{var l;return(o.default===!0||n&&o.default==="key")&&((l=o.test)==null?void 0:l.test(s))})||t[he];if(t.compat){const o=t.compat.find(l=>{var c;return l.default&&((c=l.test)==null?void 0:c.test(s))})??t[he];if(a.tag!==o.tag){const l=e.tagString(a.tag),c=e.tagString(o.tag),h=`Value may be parsed as either ${l} or ${c}`;i(r,"TAG_RESOLVE_FAILED",h,!0)}}return a}function Vi(n,e,t){if(e){t??(t=e.length);for(let s=t-1;s>=0;--s){let r=e[s];switch(r.type){case"space":case"comment":case"newline":n-=r.source.length;continue}for(r=e[++s];(r==null?void 0:r.type)==="space";)n+=r.source.length,r=e[++s];break}}return n}const Wi={composeNode:As,composeEmptyNode:hn};function As(n,e,t,s){const r=n.atKey,{spaceBefore:i,comment:a,anchor:o,tag:l}=t;let c,h=!0;switch(e.type){case"alias":c=Hi(n,e,s),(o||l)&&s(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=Es(n,e,l,s),o&&(c.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{c=xi(Wi,n,e,t,s),o&&(c.anchor=o.source.substring(1))}catch(f){const y=f instanceof Error?f.message:String(f);s(e,"RESOURCE_EXHAUSTION",y)}break;default:{const f=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;s(e,"UNEXPECTED_TOKEN",f),h=!1}}return c??(c=hn(n,e.offset,void 0,null,t,s)),o&&c.anchor===""&&s(o,"BAD_ALIAS","Anchor cannot be an empty string"),r&&n.options.stringKeys&&(!P(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&s(l??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),i&&(c.spaceBefore=!0),a&&(e.type==="scalar"&&e.source===""?c.comment=a:c.commentBefore=a),n.options.keepSourceTokens&&h&&(c.srcToken=e),c}function hn(n,e,t,s,{spaceBefore:r,comment:i,anchor:a,tag:o,end:l},c){const h={type:"scalar",offset:Vi(e,t,s),indent:-1,source:""},f=Es(n,h,o,c);return a&&(f.anchor=a.source.substring(1),f.anchor===""&&c(a,"BAD_ALIAS","Anchor cannot be an empty string")),r&&(f.spaceBefore=!0),i&&(f.comment=i,f.range[2]=l),f}function Hi({options:n},{offset:e,source:t,end:s},r){const i=new tn(t.substring(1));i.source===""&&r(e,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&r(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const a=e+t.length,o=ct(s,a,n.strict,r);return i.range=[e,a,o.offset],o.comment&&(i.comment=o.comment),i}function Zi(n,e,{offset:t,start:s,value:r,end:i},a){const o=Object.assign({_directives:e},n),l=new Dt(void 0,o),c={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},h=Ke(s,{indicator:"doc-start",next:r??(i==null?void 0:i[0]),offset:t,onError:a,parentIndent:0,startOnNewline:!0});h.found&&(l.directives.docStart=!0,r&&(r.type==="block-map"||r.type==="block-seq")&&!h.hasNewline&&a(h.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=r?As(c,r,h,a):hn(c,h.end,s,null,h,a);const f=l.contents.range[2],y=ct(i,f,!1,a);return y.comment&&(l.comment=y.comment),l.range=[t,f,y.offset],l}function Qe(n){if(typeof n=="number")return[n,n+1];if(Array.isArray(n))return n.length===2?n:[n[0],n[1]];const{offset:e,source:t}=n;return[e,e+(typeof t=="string"?t.length:1)]}function Rn(n){var r;let e="",t=!1,s=!1;for(let i=0;i<n.length;++i){const a=n[i];switch(a[0]){case"#":e+=(e===""?"":s?`
98
+ `),e+=1,s=n[e+1];return t||(t=" "),{fold:t,offset:e}}const Sn={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
99
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Nn(n,e,t,s){const i=n.substr(e,t),o=i.length===t&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(o)}catch{const l=n.substr(e-2,t+2);return s(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),l}}function ys(n,e,t,s){const{value:i,type:r,comment:o,range:l}=e.type==="block-scalar"?dn(n,e,s):gn(e,n.options.strict,s),a=t?n.directives.tagName(t.source,f=>s(t,"TAG_RESOLVE_FAILED",f)):null;let c;n.options.stringKeys&&n.atKey?c=n.schema[G]:a?c=On(n.schema,i,a,t,s):e.type==="scalar"?c=An(n,i,e,s):c=n.schema[G];let p;try{const f=c.resolve(i,d=>s(t??e,"TAG_RESOLVE_FAILED",d),n.options);p=L(f)?f:new A(f)}catch(f){const d=f instanceof Error?f.message:String(f);s(t??e,"TAG_RESOLVE_FAILED",d),p=new A(i)}return p.range=l,p.source=i,r&&(p.type=r),a&&(p.tag=a),c.format&&(p.format=c.format),o&&(p.comment=o),p}function On(n,e,t,s,i){var l;if(t==="!")return n[G];const r=[];for(const a of n.tags)if(!a.collection&&a.tag===t)if(a.default&&a.test)r.push(a);else return a;for(const a of r)if((l=a.test)!=null&&l.test(e))return a;const o=n.knownTags[t];return o&&!o.collection?(n.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),n[G])}function An({atKey:n,directives:e,schema:t},s,i,r){const o=t.tags.find(l=>{var a;return(l.default===!0||n&&l.default==="key")&&((a=l.test)==null?void 0:a.test(s))})||t[G];if(t.compat){const l=t.compat.find(a=>{var c;return a.default&&((c=a.test)==null?void 0:c.test(s))})??t[G];if(o.tag!==l.tag){const a=e.tagString(o.tag),c=e.tagString(l.tag),p=`Value may be parsed as either ${a} or ${c}`;r(i,"TAG_RESOLVE_FAILED",p,!0)}}return o}function Tn(n,e,t){if(e){t??(t=e.length);for(let s=t-1;s>=0;--s){let i=e[s];switch(i.type){case"space":case"comment":case"newline":n-=i.source.length;continue}for(i=e[++s];(i==null?void 0:i.type)==="space";)n+=i.source.length,i=e[++s];break}}return n}const In={composeNode:bs,composeEmptyNode:It};function bs(n,e,t,s){const i=n.atKey,{spaceBefore:r,comment:o,anchor:l,tag:a}=t;let c,p=!0;switch(e.type){case"alias":c=En(n,e,s),(l||a)&&s(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=ys(n,e,a,s),l&&(c.anchor=l.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{c=hn(In,n,e,t,s),l&&(c.anchor=l.source.substring(1))}catch(f){const d=f instanceof Error?f.message:String(f);s(e,"RESOURCE_EXHAUSTION",d)}break;default:{const f=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;s(e,"UNEXPECTED_TOKEN",f),p=!1}}return c??(c=It(n,e.offset,void 0,null,t,s)),l&&c.anchor===""&&s(l,"BAD_ALIAS","Anchor cannot be an empty string"),i&&n.options.stringKeys&&(!L(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&s(a??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),r&&(c.spaceBefore=!0),o&&(e.type==="scalar"&&e.source===""?c.comment=o:c.commentBefore=o),n.options.keepSourceTokens&&p&&(c.srcToken=e),c}function It(n,e,t,s,{spaceBefore:i,comment:r,anchor:o,tag:l,end:a},c){const p={type:"scalar",offset:Tn(e,t,s),indent:-1,source:""},f=ys(n,p,l,c);return o&&(f.anchor=o.source.substring(1),f.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(f.spaceBefore=!0),r&&(f.comment=r,f.range[2]=a),f}function En({options:n},{offset:e,source:t,end:s},i){const r=new pt(t.substring(1));r.source===""&&i(e,"BAD_ALIAS","Alias cannot be an empty string"),r.source.endsWith(":")&&i(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=e+t.length,l=_e(s,o,n.strict,i);return r.range=[e,o,l.offset],l.comment&&(r.comment=l.comment),r}function Ln(n,e,{offset:t,start:s,value:i,end:r},o){const l=Object.assign({_directives:e},n),a=new xe(void 0,l),c={atKey:!1,atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},p=ge(s,{indicator:"doc-start",next:i??(r==null?void 0:r[0]),offset:t,onError:o,parentIndent:0,startOnNewline:!0});p.found&&(a.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!p.hasNewline&&o(p.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),a.contents=i?bs(c,i,p,o):It(c,p.end,s,null,p,o);const f=a.contents.range[2],d=_e(r,f,!1,o);return d.comment&&(a.comment=d.comment),a.range=[t,f,d.offset],a}function Ne(n){if(typeof n=="number")return[n,n+1];if(Array.isArray(n))return n.length===2?n:[n[0],n[1]];const{offset:e,source:t}=n;return[e,e+(typeof t=="string"?t.length:1)]}function Pt(n){var i;let e="",t=!1,s=!1;for(let r=0;r<n.length;++r){const o=n[r];switch(o[0]){case"#":e+=(e===""?"":s?`
145
100
 
146
101
  `:`
147
- `)+(a.substring(1)||" "),t=!0,s=!1;break;case"%":((r=n[i+1])==null?void 0:r[0])!=="#"&&(i+=1),t=!1;break;default:t||(s=!0),t=!1}}return{comment:e,afterEmptyLine:s}}class Ji{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,s,r,i)=>{const a=Qe(t);i?this.warnings.push(new Li(a,s,r)):this.errors.push(new tt(a,s,r))},this.directives=new Z({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:s,afterEmptyLine:r}=Rn(this.prelude);if(s){const i=e.contents;if(t)e.comment=e.comment?`${e.comment}
148
- ${s}`:s;else if(r||e.directives.docStart||!i)e.commentBefore=s;else if(q(i)&&!i.flow&&i.items.length>0){let a=i.items[0];G(a)&&(a=a.key);const o=a.commentBefore;a.commentBefore=o?`${s}
149
- ${o}`:s}else{const a=i.commentBefore;i.commentBefore=a?`${s}
150
- ${a}`:s}}if(t){for(let i=0;i<this.errors.length;++i)e.errors.push(this.errors[i]);for(let i=0;i<this.warnings.length;++i)e.warnings.push(this.warnings[i])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Rn(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,s=-1){for(const r of e)yield*this.next(r);yield*this.end(t,s)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,s,r)=>{const i=Qe(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",s,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=Zi(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,s=new tt(Qe(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(s):this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){const s="Unexpected doc-end without preceding document";this.errors.push(new tt(Qe(e),"UNEXPECTED_TOKEN",s));break}this.doc.directives.docEnd=!0;const t=ct(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const s=this.doc.comment;this.doc.comment=s?`${s}
151
- ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new tt(Qe(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const s=Object.assign({_directives:this.directives},this.options),r=new Dt(void 0,s);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,t,t],this.decorate(r,!1),yield r}}}const _s="\uFEFF",Ns="",Os="",Jt="";function Xi(n){switch(n){case _s:return"byte-order-mark";case Ns:return"doc-mode";case Os:return"flow-error-end";case Jt:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
102
+ `)+(o.substring(1)||" "),t=!0,s=!1;break;case"%":((i=n[r+1])==null?void 0:i[0])!=="#"&&(r+=1),t=!1;break;default:t||(s=!0),t=!1}}return{comment:e,afterEmptyLine:s}}class $n{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,s,i,r)=>{const o=Ne(t);r?this.warnings.push(new an(o,s,i)):this.errors.push(new Ae(o,s,i))},this.directives=new K({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:s,afterEmptyLine:i}=Pt(this.prelude);if(s){const r=e.contents;if(t)e.comment=e.comment?`${e.comment}
103
+ ${s}`:s;else if(i||e.directives.docStart||!r)e.commentBefore=s;else if($(r)&&!r.flow&&r.items.length>0){let o=r.items[0];v(o)&&(o=o.key);const l=o.commentBefore;o.commentBefore=l?`${s}
104
+ ${l}`:s}else{const o=r.commentBefore;r.commentBefore=o?`${s}
105
+ ${o}`:s}}if(t){for(let r=0;r<this.errors.length;++r)e.errors.push(this.errors[r]);for(let r=0;r<this.warnings.length;++r)e.warnings.push(this.warnings[r])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Pt(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,s=-1){for(const i of e)yield*this.next(i);yield*this.end(t,s)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,s,i)=>{const r=Ne(e);r[0]+=t,this.onError(r,"BAD_DIRECTIVE",s,i)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=Ln(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,s=new Ae(Ne(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(s):this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){const s="Unexpected doc-end without preceding document";this.errors.push(new Ae(Ne(e),"UNEXPECTED_TOKEN",s));break}this.doc.directives.docEnd=!0;const t=_e(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const s=this.doc.comment;this.doc.comment=s?`${s}
106
+ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Ae(Ne(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const s=Object.assign({_directives:this.directives},this.options),i=new xe(void 0,s);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,t,t],this.decorate(i,!1),yield i}}}const ws="\uFEFF",ks="",Ss="",ut="";function Cn(n){switch(n){case ws:return"byte-order-mark";case ks:return"doc-mode";case Ss:return"flow-error-end";case ut:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
152
107
  `:case`\r
153
- `: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(n[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 ce(n){switch(n){case void 0:case" ":case`
154
- `:case"\r":case" ":return!0;default:return!1}}const Dn=new Set("0123456789ABCDEFabcdef"),Qi=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),gt=new Set(",[]{}"),ea=new Set(` ,[]{}
155
- \r `),zt=n=>!n||ea.has(n);class ta{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let s=this.next??"stream";for(;s&&(t||this.hasChars(1));)s=yield*this.parseNext(s)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return!t||t==="#"||t===`
108
+ `: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(n[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 J(n){switch(n){case void 0:case" ":case`
109
+ `:case"\r":case" ":return!0;default:return!1}}const Kt=new Set("0123456789ABCDEFabcdef"),vn=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Ke=new Set(",[]{}"),_n=new Set(` ,[]{}
110
+ \r `),rt=n=>!n||_n.has(n);class Mn{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let s=this.next??"stream";for(;s&&(t||this.hasChars(1));)s=yield*this.parseNext(s)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return!t||t==="#"||t===`
156
111
  `?!0:t==="\r"?this.buffer[e+1]===`
157
- `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let s=0;for(;t===" ";)t=this.buffer[++s+e];if(t==="\r"){const r=this.buffer[s+e+1];if(r===`
158
- `||!r&&!this.atEnd)return e+s+1}return t===`
159
- `||s>=this.indentNext||!t&&!this.atEnd?e+s:-1}if(t==="-"||t==="."){const s=this.buffer.substr(e,3);if((s==="---"||s==="...")&&ce(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
160
- `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===_s&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let t=e.length,s=e.indexOf("#");for(;s!==-1;){const i=e[s-1];if(i===" "||i===" "){t=s-1;break}else s=e.indexOf("#",s+1)}for(;;){const i=e[t-1];if(i===" "||i===" ")t-=1;else break}const r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield Ns,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const t=this.peek(3);if((t==="---"||t==="...")&&ce(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,t==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!ce(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&ce(t)){const s=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=s,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(zt),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,s=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=s=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);const r=this.getLine();if(r===null)return this.setNext("flow");if((s!==-1&&s<this.indentNext&&r[0]!=="#"||s===0&&(r.startsWith("---")||r.startsWith("..."))&&ce(r[3]))&&!(s===this.indentNext-1&&this.flowLevel===1&&(r[0]==="]"||r[0]==="}")))return this.flowLevel=0,yield Os,yield*this.parseLineStart();let i=0;for(;r[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return"flow";case"#":return yield*this.pushCount(r.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(zt),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const a=this.charAt(1);if(this.flowKey||ce(a)||a===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;t!==-1&&this.buffer[t+1]==="'";)t=this.buffer.indexOf("'",t+2);else for(;t!==-1;){let i=0;for(;this.buffer[t-1-i]==="\\";)i+=1;if(i%2===0)break;t=this.buffer.indexOf('"',t+1)}const s=this.buffer.substring(0,t);let r=s.indexOf(`
161
- `,this.pos);if(r!==-1){for(;r!==-1;){const i=this.continueScalar(r+1);if(i===-1)break;r=s.indexOf(`
162
- `,i)}r!==-1&&(t=r-(s[r-1]==="\r"?2:1))}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if(t==="+")this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil(t=>ce(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,s;e:for(let i=this.pos;s=this.buffer[i];++i)switch(s){case" ":t+=1;break;case`
163
- `:e=i,t=0;break;case"\r":{const a=this.buffer[i+1];if(!a&&!this.atEnd)return this.setNext("block-scalar");if(a===`
164
- `)break}default:break e}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const i=this.continueScalar(e+1);if(i===-1)break;e=this.buffer.indexOf(`
165
- `,i)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let r=e+1;for(s=this.buffer[r];s===" ";)s=this.buffer[++r];if(s===" "){for(;s===" "||s===" "||s==="\r"||s===`
166
- `;)s=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let i=e-1,a=this.buffer[i];a==="\r"&&(a=this.buffer[--i]);const o=i;for(;a===" ";)a=this.buffer[--i];if(a===`
167
- `&&i>=this.pos&&i+1+t>o)e=i;else break}while(!0);return yield Jt,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1,s=this.pos-1,r;for(;r=this.buffer[++s];)if(r===":"){const i=this.buffer[s+1];if(ce(i)||e&&gt.has(i))break;t=s}else if(ce(r)){let i=this.buffer[s+1];if(r==="\r"&&(i===`
168
- `?(s+=1,r=`
169
- `,i=this.buffer[s+1]):t=s),i==="#"||e&&gt.has(i))break;if(r===`
170
- `){const a=this.continueScalar(s+1);if(a===-1)break;s=Math.max(s,a-2)}}else{if(e&&gt.has(r))break;t=s}return!r&&!this.atEnd?this.setNext("plain-scalar"):(yield Jt,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const s=this.buffer.slice(this.pos,e);return s?(yield s,this.pos+=s.length,s.length):(t&&(yield""),0)}*pushIndicators(){let e=0;e:for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue e;case"&":e+=yield*this.pushUntil(zt),e+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{const t=this.flowLevel>0,s=this.charAt(1);if(ce(s)||t&&gt.has(s)){t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue e}}}break e}return e}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!ce(t)&&t!==">";)t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Qi.has(t))t=this.buffer[++e];else if(t==="%"&&Dn.has(this.buffer[e+1])&&Dn.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
112
+ `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let s=0;for(;t===" ";)t=this.buffer[++s+e];if(t==="\r"){const i=this.buffer[s+e+1];if(i===`
113
+ `||!i&&!this.atEnd)return e+s+1}return t===`
114
+ `||s>=this.indentNext||!t&&!this.atEnd?e+s:-1}if(t==="-"||t==="."){const s=this.buffer.substr(e,3);if((s==="---"||s==="...")&&J(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
115
+ `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===ws&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let t=e.length,s=e.indexOf("#");for(;s!==-1;){const r=e[s-1];if(r===" "||r===" "){t=s-1;break}else s=e.indexOf("#",s+1)}for(;;){const r=e[t-1];if(r===" "||r===" ")t-=1;else break}const i=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){const t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield ks,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const t=this.peek(3);if((t==="---"||t==="...")&&J(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,t==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!J(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&J(t)){const s=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=s,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(rt),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,s=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=s=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);const i=this.getLine();if(i===null)return this.setNext("flow");if((s!==-1&&s<this.indentNext&&i[0]!=="#"||s===0&&(i.startsWith("---")||i.startsWith("..."))&&J(i[3]))&&!(s===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield Ss,yield*this.parseLineStart();let r=0;for(;i[r]===",";)r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(r+=yield*this.pushIndicators(),i[r]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-r),"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(rt),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||J(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let t=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;t!==-1&&this.buffer[t+1]==="'";)t=this.buffer.indexOf("'",t+2);else for(;t!==-1;){let r=0;for(;this.buffer[t-1-r]==="\\";)r+=1;if(r%2===0)break;t=this.buffer.indexOf('"',t+1)}const s=this.buffer.substring(0,t);let i=s.indexOf(`
116
+ `,this.pos);if(i!==-1){for(;i!==-1;){const r=this.continueScalar(i+1);if(r===-1)break;i=s.indexOf(`
117
+ `,r)}i!==-1&&(t=i-(s[i-1]==="\r"?2:1))}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const t=this.buffer[++e];if(t==="+")this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil(t=>J(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,s;e:for(let r=this.pos;s=this.buffer[r];++r)switch(s){case" ":t+=1;break;case`
118
+ `:e=r,t=0;break;case"\r":{const o=this.buffer[r+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
119
+ `)break}default:break e}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const r=this.continueScalar(e+1);if(r===-1)break;e=this.buffer.indexOf(`
120
+ `,r)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let i=e+1;for(s=this.buffer[i];s===" ";)s=this.buffer[++i];if(s===" "){for(;s===" "||s===" "||s==="\r"||s===`
121
+ `;)s=this.buffer[++i];e=i-1}else if(!this.blockScalarKeep)do{let r=e-1,o=this.buffer[r];o==="\r"&&(o=this.buffer[--r]);const l=r;for(;o===" ";)o=this.buffer[--r];if(o===`
122
+ `&&r>=this.pos&&r+1+t>l)e=r;else break}while(!0);return yield ut,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1,s=this.pos-1,i;for(;i=this.buffer[++s];)if(i===":"){const r=this.buffer[s+1];if(J(r)||e&&Ke.has(r))break;t=s}else if(J(i)){let r=this.buffer[s+1];if(i==="\r"&&(r===`
123
+ `?(s+=1,i=`
124
+ `,r=this.buffer[s+1]):t=s),r==="#"||e&&Ke.has(r))break;if(i===`
125
+ `){const o=this.continueScalar(s+1);if(o===-1)break;s=Math.max(s,o-2)}}else{if(e&&Ke.has(i))break;t=s}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield ut,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const s=this.buffer.slice(this.pos,e);return s?(yield s,this.pos+=s.length,s.length):(t&&(yield""),0)}*pushIndicators(){let e=0;e:for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue e;case"&":e+=yield*this.pushUntil(rt),e+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{const t=this.flowLevel>0,s=this.charAt(1);if(J(s)||t&&Ke.has(s)){t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue e}}}break e}return e}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!J(t)&&t!==">";)t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(vn.has(t))t=this.buffer[++e];else if(t==="%"&&Kt.has(this.buffer[e+1])&&Kt.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
171
126
  `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
172
- `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,s;do s=this.buffer[++t];while(s===" "||e&&s===" ");const r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,s=this.buffer[t];for(;!e(s);)s=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class Ts{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,s=this.lineStarts.length;for(;t<s;){const i=t+s>>1;this.lineStarts[i]<e?t=i+1:s=i}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};const r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}}function Ee(n,e){for(let t=0;t<n.length;++t)if(n[t].type===e)return!0;return!1}function Bn(n){for(let e=0;e<n.length;++e)switch(n[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function Is(n){switch(n==null?void 0:n.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function yt(n){switch(n.type){case"document":return n.start;case"block-map":{const e=n.items[n.items.length-1];return e.sep??e.start}case"block-seq":return n.items[n.items.length-1].start;default:return[]}}function xe(n){var t;if(n.length===0)return[];let e=n.length;e:for(;--e>=0;)switch(n[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((t=n[++e])==null?void 0:t.type)==="space";);return n.splice(e,n.length)}function At(n,e){if(e.length<1e5)Array.prototype.push.apply(n,e);else for(let t=0;t<e.length;++t)n.push(e[t])}function Pn(n){if(n.start.type==="flow-seq-start")for(const e of n.items)e.sep&&!e.value&&!Ee(e.start,"explicit-key-ind")&&!Ee(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,Is(e.value)?e.value.end?At(e.value.end,e.sep):e.value.end=e.sep:At(e.start,e.sep),delete e.sep)}class na{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new ta,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const s of this.lexer.lex(e,t))yield*this.next(s);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const t=Xi(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const s=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(e==null?void 0:e.type)!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else{const s=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in s?s.indent:0:t.type==="flow-collection"&&s.type==="document"&&(t.indent=0),t.type==="flow-collection"&&Pn(t),s.type){case"document":s.value=t;break;case"block-scalar":s.props.push(t);break;case"block-map":{const r=s.items[s.items.length-1];if(r.value){s.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(r.sep)r.value=t;else{Object.assign(r,{key:t,sep:[]}),this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=s.items[s.items.length-1];r.value?s.items.push({start:[],value:t}):r.value=t;break}case"flow-collection":{const r=s.items[s.items.length-1];!r||r.value?s.items.push({start:[],key:t,sep:[]}):r.sep?r.value=t:Object.assign(r,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const r=t.items[t.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&Bn(r.start)===-1&&(t.indent===0||r.start.every(i=>i.type!=="comment"||i.indent<t.indent))&&(s.type==="document"?s.end=r.start:s.items.push({start:r.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{Bn(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const t=yt(this.peek(2)),s=xe(t);let r;e.end?(r=e.end,r.push(this.sourceToken),delete e.end):r=[this.sourceToken];const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf(`
127
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,s;do s=this.buffer[++t];while(s===" "||e&&s===" ");const i=t-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=t),i}*pushUntil(e){let t=this.pos,s=this.buffer[t];for(;!e(s);)s=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class Ns{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,s=this.lineStarts.length;for(;t<s;){const r=t+s>>1;this.lineStarts[r]<e?t=r+1:s=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};const i=this.lineStarts[t-1];return{line:t,col:e-i+1}}}}function X(n,e){for(let t=0;t<n.length;++t)if(n[t].type===e)return!0;return!1}function jt(n){for(let e=0;e<n.length;++e)switch(n[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function Os(n){switch(n==null?void 0:n.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function je(n){switch(n.type){case"document":return n.start;case"block-map":{const e=n.items[n.items.length-1];return e.sep??e.start}case"block-seq":return n.items[n.items.length-1].start;default:return[]}}function ae(n){var t;if(n.length===0)return[];let e=n.length;e:for(;--e>=0;)switch(n[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((t=n[++e])==null?void 0:t.type)==="space";);return n.splice(e,n.length)}function Ve(n,e){if(e.length<1e5)Array.prototype.push.apply(n,e);else for(let t=0;t<e.length;++t)n.push(e[t])}function Dt(n){if(n.start.type==="flow-seq-start")for(const e of n.items)e.sep&&!e.value&&!X(e.start,"explicit-key-ind")&&!X(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,Os(e.value)?e.value.end?Ve(e.value.end,e.sep):e.value.end=e.sep:Ve(e.start,e.sep),delete e.sep)}class Bn{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Mn,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const s of this.lexer.lex(e,t))yield*this.next(s);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const t=Cn(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const s=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(e==null?void 0:e.type)!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else{const s=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in s?s.indent:0:t.type==="flow-collection"&&s.type==="document"&&(t.indent=0),t.type==="flow-collection"&&Dt(t),s.type){case"document":s.value=t;break;case"block-scalar":s.props.push(t);break;case"block-map":{const i=s.items[s.items.length-1];if(i.value){s.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=t;else{Object.assign(i,{key:t,sep:[]}),this.onKeyLine=!i.explicitKey;return}break}case"block-seq":{const i=s.items[s.items.length-1];i.value?s.items.push({start:[],value:t}):i.value=t;break}case"flow-collection":{const i=s.items[s.items.length-1];!i||i.value?s.items.push({start:[],key:t,sep:[]}):i.sep?i.value=t:Object.assign(i,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const i=t.items[t.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&jt(i.start)===-1&&(t.indent===0||i.start.every(r=>r.type!=="comment"||r.indent<t.indent))&&(s.type==="document"?s.end=i.start:s.items.push({start:i.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{jt(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const t=je(this.peek(2)),s=ae(t);let i;e.end?(i=e.end,i.push(this.sourceToken),delete e.end):i=[this.sourceToken];const r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf(`
173
128
  `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
174
- `,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var s;const t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){const r="end"in t.value?t.value.end:void 0,i=Array.isArray(r)?r[r.length-1]:void 0;(i==null?void 0:i.type)==="comment"?r==null||r.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2],i=(s=r==null?void 0:r.value)==null?void 0:s.end;if(Array.isArray(i)){At(i,t.start),i.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const r=!this.onKeyLine&&this.indent===e.indent,i=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let a=[];if(i&&t.sep&&!t.value){const o=[];for(let l=0;l<t.sep.length;++l){const c=t.sep[l];switch(c.type){case"newline":o.push(l);break;case"space":break;case"comment":c.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(a=t.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":i||t.value?(a.push(this.sourceToken),e.items.push({start:a}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):i||t.value?(a.push(this.sourceToken),e.items.push({start:a,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(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Ee(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(Is(t.key)&&!Ee(t.sep,"newline")){const o=xe(t.start),l=t.key,c=t.sep;c.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:l,sep:c}]})}else a.length>0?t.sep=t.sep.concat(a,this.sourceToken):t.sep.push(this.sourceToken);else if(Ee(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const o=xe(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||i?e.items.push({start:a,key:null,sep:[this.sourceToken]}):Ee(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);i||t.value?(e.items.push({start:a,key:o,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(o):(Object.assign(t,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{const o=this.startBlockValue(e);if(o){if(o.type==="block-seq"){if(!t.explicitKey&&t.sep&&!Ee(t.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 r&&e.items.push({start:a});this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var s;const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const r="end"in t.value?t.value.end:void 0,i=Array.isArray(r)?r[r.length-1]:void 0;(i==null?void 0:i.type)==="comment"?r==null||r.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const r=e.items[e.items.length-2],i=(s=r==null?void 0:r.value)==null?void 0:s.end;if(Array.isArray(i)){At(i,t.start),i.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||Ee(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){const r=this.startBlockValue(e);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while((s==null?void 0:s.type)==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:r,sep:[]}):t.sep?this.stack.push(r):Object.assign(t,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const s=this.startBlockValue(e);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{const s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===e.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){const r=yt(s),i=xe(r);Pn(e);const a=e.end.splice(1,e.end.length);a.push(this.sourceToken);const o={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
129
+ `,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var s;const t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){const i="end"in t.value?t.value.end:void 0,r=Array.isArray(i)?i[i.length-1]:void 0;(r==null?void 0:r.type)==="comment"?i==null||i.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){const i=e.items[e.items.length-2],r=(s=i==null?void 0:i.value)==null?void 0:s.end;if(Array.isArray(r)){Ve(r,t.start),r.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const i=!this.onKeyLine&&this.indent===e.indent,r=i&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind";let o=[];if(r&&t.sep&&!t.value){const l=[];for(let a=0;a<t.sep.length;++a){const c=t.sep[a];switch(c.type){case"newline":l.push(a);break;case"space":break;case"comment":c.indent>e.indent&&(l.length=0);break;default:l.length=0}}l.length>=2&&(o=t.sep.splice(l[1]))}switch(this.type){case"anchor":case"tag":r||t.value?(o.push(this.sourceToken),e.items.push({start:o}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(o.push(this.sourceToken),e.items.push({start:o,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(X(t.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(Os(t.key)&&!X(t.sep,"newline")){const l=ae(t.start),a=t.key,c=t.sep;c.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:l,key:a,sep:c}]})}else o.length>0?t.sep=t.sep.concat(o,this.sourceToken):t.sep.push(this.sourceToken);else if(X(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{const l=ae(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:l,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||r?e.items.push({start:o,key:null,sep:[this.sourceToken]}):X(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const l=this.flowScalar(this.type);r||t.value?(e.items.push({start:o,key:l,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(l):(Object.assign(t,{key:l,sep:[]}),this.onKeyLine=!0);return}default:{const l=this.startBlockValue(e);if(l){if(l.type==="block-seq"){if(!t.explicitKey&&t.sep&&!X(t.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 i&&e.items.push({start:o});this.stack.push(l);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var s;const t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){const i="end"in t.value?t.value.end:void 0,r=Array.isArray(i)?i[i.length-1]:void 0;(r==null?void 0:r.type)==="comment"?i==null||i.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){const i=e.items[e.items.length-2],r=(s=i==null?void 0:i.value)==null?void 0:s.end;if(Array.isArray(r)){Ve(r,t.start),r.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||X(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){const i=this.startBlockValue(e);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while((s==null?void 0:s.type)==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:i,sep:[]}):t.sep?this.stack.push(i):Object.assign(t,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const s=this.startBlockValue(e);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{const s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===e.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){const i=je(s),r=ae(i);Dt(e);const o=e.end.splice(1,e.end.length);o.push(this.sourceToken);const l={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
175
130
  `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
176
- `,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=yt(e),s=xe(t);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const t=yt(e),s=xe(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function sa(n){const e=n.prettyErrors!==!1;return{lineCounter:n.lineCounter||e&&new Ts||null,prettyErrors:e}}function Ls(n,e={}){const{lineCounter:t,prettyErrors:s}=sa(e),r=new na(t==null?void 0:t.addNewLine),i=new Ji(e);let a=null;for(const o of i.compose(r.parse(n),!0,n.length))if(!a)a=o;else if(a.options.logLevel!=="silent"){a.errors.push(new tt(o.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&t&&(a.errors.forEach($n(n,t)),a.warnings.forEach($n(n,t))),a}function ra(n,e,t){let s;const r=Ls(n,t);if(!r)return null;if(r.warnings.forEach(i=>es(r.options.logLevel,i)),r.errors.length>0){if(r.options.logLevel!=="silent")throw r.errors[0];r.errors=[]}return r.toJS(Object.assign({reviver:s},t))}k.languages.yaml||(k.languages.yaml={scalar:{pattern:/([\-:]\s*(?:![^\s]+)?[ \t]*[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/,lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:/(\s*(?:^|[:\-,[{\r\n?])[ \t]*(?:![^\s]+)?[ \t]*)[^\r\n{[\]},#\s]+?(?=\s*:\s)/,lookbehind:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"tag"},datetime:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?)(?=[ \t]*(?:$|,|\]|\}))/m,lookbehind:!0,alias:"number"},boolean:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:false|true)(?=[ \t]*(?:$|,|\]|\}|[\r\n]))/im,lookbehind:!0,alias:"boolean"},null:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:null|~)(?=[ \t]*(?:$|,|\]|\}|[\r\n]))/im,lookbehind:!0,alias:"constant"},string:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)("|')(?:(?!\2)[^\\\r\n]|\\.)*\2(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/m,lookbehind:!0,greedy:!0},number:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)(?=[ \t]*(?:$|,|\]|\}|[\r\n]))/im,lookbehind:!0},tag:/![^\s]+/,anchor:/[&*][\w]+/,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./});function ia(n){const e=new Ts,t=Ls(n,{lineCounter:e}),s=[];return Le(t,{Scalar(r,i){i.value===null&&i.range&&s.push(e.linePos(i.range[0]).line)}}),s}function aa(n){const e=n.split(`
177
- `);for(let t=0;t<e.length;t++)if(/\bnull\b/.test(e[t]))return t+1;return 0}function Cs({value:n,onChange:e,onValidationChange:t,readOnly:s=!1,minHeight:r=100,maxHeight:i,debounceMs:a=500,className:o="",style:l={},language:c="yaml",allowNull:h=!0}){const[f,y]=K.useState(null),g=K.useRef(null),d=K.useRef(t),u=K.useRef(!1);d.current=t;const p=K.useCallback(I=>{var L,M;if(!I.trim())return null;if(c==="json")try{if(JSON.parse(I),!h){const j=aa(I);if(j>0)return{line:j,message:"Null values are not allowed"}}return null}catch(j){const $=(j==null?void 0:j.message)||"Invalid JSON",U=/position\s+(\d+)/i.exec($);let oe=1;if(U){const V=Math.min(parseInt(U[1],10),I.length);oe=1;for(let X=0;X<V;X++)I.charCodeAt(X)===10&&oe++}else{const V=/line\s+(\d+)/i.exec($);V&&(oe=parseInt(V[1],10)||1)}return{line:oe,message:$}}try{if(ra(I),!h){const j=ia(I);if(j.length>0)return{line:j[0],message:"Null values are not allowed"}}return null}catch(j){return{line:((M=(L=j==null?void 0:j.linePos)==null?void 0:L[0])==null?void 0:M.line)??1,message:j.message||"Invalid YAML"}}},[c,h]),m=K.useCallback(I=>{var L;y(I),(L=d.current)==null||L.call(d,!I,I==null?void 0:I.message)},[]),b=K.useCallback(I=>{s||(u.current=!0,g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{m(p(I)),g.current=null},a),e(I))},[e,p,m,a,s]);K.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]),K.useEffect(()=>{if(u.current){u.current=!1;return}g.current&&(clearTimeout(g.current),g.current=null),m(p(n))},[n,p,m]);const w=K.useMemo(()=>n.split(`
178
- `).length,[n]),S=K.useMemo(()=>Array.from({length:w},(I,L)=>L+1).join(`
179
- `),[w]),[v,N]=K.useState(!1);K.useEffect(()=>{const I=()=>{const M=getComputedStyle(document.documentElement).getPropertyValue("--nc-bg").trim();N(M.startsWith("#0")||M.startsWith("#1")||M.startsWith("#2")||M.startsWith("#3"))};I();const L=new MutationObserver(I);return L.observe(document.documentElement,{attributes:!0,attributeFilter:["class","data-theme"]}),()=>L.disconnect()},[]);const _=v?Gt.vsDark:Gt.vsLight,A=K.useCallback(I=>{const L=I[0];return L==="boolean"?{color:v?"#569cd6":"#0000ff"}:L==="constant"||L==="null"?{color:v?"#569cd6":"#0000ff"}:{}},[v]),O=K.useCallback(I=>ne.jsx(Zr,{theme:_,code:I,language:c,children:({tokens:L,getLineProps:M,getTokenProps:j})=>ne.jsx(ne.Fragment,{children:L.map(($,U)=>{const oe=U+1,V=(f==null?void 0:f.line)===oe;return ne.jsx("div",{...M({line:$}),style:{background:V?"color-mix(in srgb, var(--nc-danger) 15%, transparent)":void 0,textDecoration:V?"underline wavy var(--nc-danger)":void 0},children:$.map((X,ge)=>{const le=j({token:X}),Q=A(X.types);return ne.jsx("span",{...le,style:{...le.style,...Q,opacity:s?.7:void 0}},ge)})},U)})})}),[f,_,A,c,s]),x=K.useRef(null),D=K.useRef(null),B=()=>{x.current&&D.current&&(D.current.scrollTop=x.current.scrollTop)};return ne.jsxs("div",{className:`nc-yaml-textarea ${o}`.trim(),style:{display:"flex",flexDirection:"column",gap:4,...l},children:[ne.jsx("style",{children:`
131
+ `,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=je(e),s=ae(t);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const t=je(e),s=ae(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Pn(n){const e=n.prettyErrors!==!1;return{lineCounter:n.lineCounter||e&&new Ns||null,prettyErrors:e}}function As(n,e={}){const{lineCounter:t,prettyErrors:s}=Pn(e),i=new Bn(t==null?void 0:t.addNewLine),r=new $n(e);let o=null;for(const l of r.compose(i.parse(n),!0,n.length))if(!o)o=l;else if(o.options.logLevel!=="silent"){o.errors.push(new Ae(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&t&&(o.errors.forEach(Mt(n,t)),o.warnings.forEach(Mt(n,t))),o}function Kn(n,e,t){let s;const i=As(n,t);if(!i)return null;if(i.warnings.forEach(r=>Ht(i.options.logLevel,r)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:s},t))}ce.Prism.languages.yaml||(ce.Prism.languages.yaml={scalar:{pattern:/([\-:]\s*(?:![^\s]+)?[ \t]*[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/,lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:/(\s*(?:^|[:\-,[{\r\n?])[ \t]*(?:![^\s]+)?[ \t]*)[^\r\n{[\]},#\s]+?(?=\s*:\s)/,lookbehind:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"tag"},datetime:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?)(?=[ \t]*(?:$|,|\]|\}))/m,lookbehind:!0,alias:"number"},boolean:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:false|true)(?=[ \t]*(?:$|,|\]|\}|[\r\n]))/im,lookbehind:!0,alias:"boolean"},null:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)(?:null|~)(?=[ \t]*(?:$|,|\]|\}|[\r\n]))/im,lookbehind:!0,alias:"constant"},string:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)("|')(?:(?!\2)[^\\\r\n]|\\.)*\2(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/m,lookbehind:!0,greedy:!0},number:{pattern:/([:\-,[{]\s*(?:![^\s]+)?[ \t]*)[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)(?=[ \t]*(?:$|,|\]|\}|[\r\n]))/im,lookbehind:!0},tag:/![^\s]+/,anchor:/[&*][\w]+/,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./});function jn(n){const e=new Ns,t=As(n,{lineCounter:e}),s=[];return ne(t,{Scalar(i,r){r.value===null&&r.range&&s.push(e.linePos(r.range[0]).line)}}),s}function Dn(n){const e=n.split(`
132
+ `);for(let t=0;t<e.length;t++)if(/\bnull\b/.test(e[t]))return t+1;return 0}function Ts({value:n,onChange:e,onValidationChange:t,readOnly:s=!1,minHeight:i=100,maxHeight:r,debounceMs:o=500,className:l="",style:a={},language:c="yaml",allowNull:p=!0}){const[f,d]=B.useState(null),u=B.useRef(null),g=B.useRef(t),h=B.useRef(!1);g.current=t;const m=B.useCallback(T=>{var M,W;if(!T.trim())return null;if(c==="json")try{if(JSON.parse(T),!p){const P=Dn(T);if(P>0)return{line:P,message:"Null values are not allowed"}}return null}catch(P){const ie=(P==null?void 0:P.message)||"Invalid JSON",Se=/position\s+(\d+)/i.exec(ie);let re=1;if(Se){const Z=Math.min(parseInt(Se[1],10),T.length);re=1;for(let oe=0;oe<Z;oe++)T.charCodeAt(oe)===10&&re++}else{const Z=/line\s+(\d+)/i.exec(ie);Z&&(re=parseInt(Z[1],10)||1)}return{line:re,message:ie}}try{if(Kn(T),!p){const P=jn(T);if(P.length>0)return{line:P[0],message:"Null values are not allowed"}}return null}catch(P){return{line:((W=(M=P==null?void 0:P.linePos)==null?void 0:M[0])==null?void 0:W.line)??1,message:P.message||"Invalid YAML"}}},[c,p]),y=B.useCallback(T=>{var M;d(T),(M=g.current)==null||M.call(g,!T,T==null?void 0:T.message)},[]),b=B.useCallback(T=>{s||(h.current=!0,u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{y(m(T)),u.current=null},o),e(T))},[e,m,y,o,s]);B.useEffect(()=>()=>{u.current&&clearTimeout(u.current)},[]),B.useEffect(()=>{if(h.current){h.current=!1;return}u.current&&(clearTimeout(u.current),u.current=null),y(m(n))},[n,m,y]);const S=B.useMemo(()=>n.split(`
133
+ `).length,[n]),N=B.useMemo(()=>Array.from({length:S},(T,M)=>M+1).join(`
134
+ `),[S]),[k,I]=B.useState(!1);B.useEffect(()=>{const T=()=>{const W=getComputedStyle(document.documentElement).getPropertyValue("--nc-bg").trim();I(W.startsWith("#0")||W.startsWith("#1")||W.startsWith("#2")||W.startsWith("#3"))};T();const M=new MutationObserver(T);return M.observe(document.documentElement,{attributes:!0,attributeFilter:["class","data-theme"]}),()=>M.disconnect()},[]);const O=k?ce.themes_exports.vsDark:ce.themes_exports.vsLight,w=B.useCallback(T=>{const M=T[0];return M==="boolean"?{color:k?"#569cd6":"#0000ff"}:M==="constant"||M==="null"?{color:k?"#569cd6":"#0000ff"}:{}},[k]),E=B.useCallback(T=>q.jsx(ce.Highlight2,{theme:O,code:T,language:c,children:({tokens:M,getLineProps:W,getTokenProps:P})=>q.jsx(q.Fragment,{children:M.map((ie,Se)=>{const re=Se+1,Z=(f==null?void 0:f.line)===re;return q.jsx("div",{...W({line:ie}),style:{background:Z?"color-mix(in srgb, var(--nc-danger) 15%, transparent)":void 0,textDecoration:Z?"underline wavy var(--nc-danger)":void 0},children:ie.map((oe,Is)=>{const Et=P({token:oe}),Es=w(oe.types);return q.jsx("span",{...Et,style:{...Et.style,...Es,opacity:s?.7:void 0}},Is)})},Se)})})}),[f,O,w,c,s]),_=B.useRef(null),D=B.useRef(null),R=()=>{_.current&&D.current&&(D.current.scrollTop=_.current.scrollTop)};return q.jsxs("div",{className:`nc-yaml-textarea ${l}`.trim(),style:{display:"flex",flexDirection:"column",gap:4,...a},children:[q.jsx("style",{children:`
180
135
  .yaml-editor-container,
181
136
  .yaml-editor-container * {
182
137
  white-space: pre !important;
@@ -197,5 +152,4 @@ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.pus
197
152
  caret-color: transparent !important;
198
153
  color: var(--nc-text-weak) !important;
199
154
  }
200
- `}),ne.jsxs("div",{className:`nc-yaml-textarea-container${f?" error":""}`,style:{border:`1px solid ${f?"var(--nc-danger)":"var(--nc-border)"}`,background:s?"var(--nc-bg-secondary)":"var(--nc-bg-tertiary)",minHeight:r,maxHeight:i},children:[ne.jsx("div",{ref:D,style:{padding:"10px 8px",paddingRight:12,background:"var(--nc-bg-tertiary)",borderRight:"1px solid var(--nc-border)",color:"var(--nc-text-weak)",fontFamily:'Consolas, Monaco, "Courier New", monospace',fontSize:13,lineHeight:"1.5",textAlign:"right",userSelect:"none",whiteSpace:"pre",minWidth:40,overflow:"hidden"},children:S}),ne.jsx("div",{ref:x,className:`yaml-editor-container${s?" read-only":""}`,style:{flex:1,overflowX:"auto",overflowY:"auto",color:"var(--nc-text)"},onScroll:B,children:ne.jsx(Ys,{value:n,onValueChange:b,highlight:O,padding:10,readOnly:s,style:{fontFamily:'Consolas, Monaco, "Courier New", monospace',fontSize:13,lineHeight:"1.5",minHeight:Math.max(r-2,0),background:"transparent",color:"var(--nc-text)",whiteSpace:"pre",minWidth:"max-content"},textareaClassName:"yaml-editor-textarea"})})]}),f&&ne.jsxs("div",{style:{color:"var(--nc-danger)",fontSize:12,padding:"4px 8px",background:"color-mix(in srgb, var(--nc-danger) 10%, transparent)",borderRadius:4},children:["Line ",f.line,": ",f.message]})]})}exports.YamlTextArea=Cs;exports.default=Cs;
201
- //# sourceMappingURL=yaml.cjs.map
155
+ `}),q.jsxs("div",{className:`nc-yaml-textarea-container${f?" error":""}`,style:{border:`1px solid ${f?"var(--nc-danger)":"var(--nc-border)"}`,background:s?"var(--nc-bg-secondary)":"var(--nc-bg-tertiary)",minHeight:i,maxHeight:r},children:[q.jsx("div",{ref:D,style:{padding:"10px 8px",paddingRight:12,background:"var(--nc-bg-tertiary)",borderRight:"1px solid var(--nc-border)",color:"var(--nc-text-weak)",fontFamily:'Consolas, Monaco, "Courier New", monospace',fontSize:13,lineHeight:"1.5",textAlign:"right",userSelect:"none",whiteSpace:"pre",minWidth:40,overflow:"hidden"},children:N}),q.jsx("div",{ref:_,className:`yaml-editor-container${s?" read-only":""}`,style:{flex:1,overflowX:"auto",overflowY:"auto",color:"var(--nc-text)"},onScroll:R,children:q.jsx(ce._default,{value:n,onValueChange:b,highlight:E,padding:10,readOnly:s,style:{fontFamily:'Consolas, Monaco, "Courier New", monospace',fontSize:13,lineHeight:"1.5",minHeight:Math.max(i-2,0),background:"transparent",color:"var(--nc-text)",whiteSpace:"pre",minWidth:"max-content"},textareaClassName:"yaml-editor-textarea"})})]}),f&&q.jsxs("div",{style:{color:"var(--nc-danger)",fontSize:12,padding:"4px 8px",background:"color-mix(in srgb, var(--nc-danger) 10%, transparent)",borderRadius:4},children:["Line ",f.line,": ",f.message]})]})}exports.YamlTextArea=Ts;exports.default=Ts;