@shiplightai/mcp 0.1.48 → 0.1.49

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.
Files changed (48) hide show
  1. package/chrome-extension/background.js +11 -2
  2. package/dist/agentHelpers-242MN5TR-AK52N3RJ.js +4 -0
  3. package/dist/agentLogin-VLDCPI66-52P67BMY.js +4 -0
  4. package/dist/chunk-34YV5HSR.js +3999 -0
  5. package/dist/chunk-3KLJZX63.js +34 -0
  6. package/dist/chunk-5YN4X7LV.js +31 -0
  7. package/dist/chunk-67R4GP2H.js +4 -0
  8. package/dist/chunk-7W6YLS2E.js +22 -0
  9. package/dist/chunk-AFEFEPKR.js +4 -0
  10. package/dist/chunk-B7PRQ6ZM.js +4 -0
  11. package/dist/chunk-ETDHHU35.js +4 -0
  12. package/dist/chunk-FUPXB4VL.js +9 -0
  13. package/dist/chunk-GZSLCYQ7.js +192 -0
  14. package/dist/chunk-HHCLRZRA.js +15 -0
  15. package/dist/chunk-HQNPMIQW.js +200 -0
  16. package/dist/chunk-JKHKVGEC.js +4 -0
  17. package/dist/chunk-JT3U4KNR.js +59 -0
  18. package/dist/chunk-K7YTTSET.js +4 -0
  19. package/dist/chunk-KW4N7WFX.js +38 -0
  20. package/dist/chunk-LM633YUO.js +4 -0
  21. package/dist/chunk-ORSFJVJL.js +221 -0
  22. package/dist/chunk-PFLXO7G4.js +6 -0
  23. package/dist/chunk-PWGR4MG7.js +4 -0
  24. package/dist/chunk-RSM4LZ5P.js +4237 -0
  25. package/dist/chunk-Z3E7FIDS.js +17 -0
  26. package/dist/dist-CBGK26LV-CIQ64GXB.js +15 -0
  27. package/dist/dist-N7YI5OTM.js +4 -0
  28. package/dist/dist-VVPHZ43R.js +4 -0
  29. package/dist/dist-YNN5UBVC.js +4 -0
  30. package/dist/esm-7LSQY7YM.js +153 -0
  31. package/dist/fileFromPath-7DXRMRQU.js +19 -0
  32. package/dist/handler-2DVP4PMD-IFR4HH7D.js +4 -0
  33. package/dist/import-meta-resolve-GTPXFCVK.js +6 -0
  34. package/dist/index.js +21 -9352
  35. package/dist/lib-ZSSBUTBS.js +588 -0
  36. package/dist/magic-string.es-LGBSB5S5.js +16 -0
  37. package/dist/multipart-parser-JC2L5VJI.js +5 -0
  38. package/dist/multipart-parser-TJWXZEMW-OF3QE73Z.js +5 -0
  39. package/dist/relayBrowserCache-QL6LD4JJ-TKU47MOI.js +4 -0
  40. package/dist/server-KGF6BY7H.js +22 -0
  41. package/dist/src-B7EYCIZ4-XWOBV3GQ.js +6 -0
  42. package/dist/src-SYQHKG2Q.js +6 -0
  43. package/dist/task-2JIXKMIY-CMX3BD6Z.js +193 -0
  44. package/dist/token-AWIWOSVF.js +4 -0
  45. package/dist/token-QK7JKAKS.js +4 -0
  46. package/dist/token-util-GL5PN7CJ.js +4 -0
  47. package/dist/token-util-TEE5GKZ2.js +4 -0
  48. package/package.json +1 -1
@@ -0,0 +1,200 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __createRequire } from "module";
3
+ const require = __createRequire(import.meta.url);
4
+ import{h as Ne}from"./chunk-JT3U4KNR.js";import{a as _}from"./chunk-Z3E7FIDS.js";import{h as ge}from"./chunk-JKHKVGEC.js";import{a as J,c as E,d as ye}from"./chunk-ETDHHU35.js";import{createRequire as ct}from"module";import{z as P}from"zod";var ri=ct(import.meta.url),C=E(f=>{"use strict";var g=Symbol.for("yaml.alias"),d=Symbol.for("yaml.document"),m=Symbol.for("yaml.map"),y=Symbol.for("yaml.pair"),u=Symbol.for("yaml.scalar"),c=Symbol.for("yaml.seq"),n=Symbol.for("yaml.node.type"),o=p=>!!p&&typeof p=="object"&&p[n]===g,i=p=>!!p&&typeof p=="object"&&p[n]===d,r=p=>!!p&&typeof p=="object"&&p[n]===m,e=p=>!!p&&typeof p=="object"&&p[n]===y,t=p=>!!p&&typeof p=="object"&&p[n]===u,s=p=>!!p&&typeof p=="object"&&p[n]===c;function a(p){if(p&&typeof p=="object")switch(p[n]){case m:case c:return!0}return!1}function l(p){if(p&&typeof p=="object")switch(p[n]){case g:case m:case u:case c:return!0}return!1}var h=p=>(t(p)||a(p))&&!!p.anchor;f.ALIAS=g,f.DOC=d,f.MAP=m,f.NODE_TYPE=n,f.PAIR=y,f.SCALAR=u,f.SEQ=c,f.hasAnchor=h,f.isAlias=o,f.isCollection=a,f.isDocument=i,f.isMap=r,f.isNode=l,f.isPair=e,f.isScalar=t,f.isSeq=s}),ne=E(f=>{"use strict";var g=C(),d=Symbol("break visit"),m=Symbol("skip children"),y=Symbol("remove node");function u(t,s){let a=i(s);g.isDocument(t)?c(null,t.contents,a,Object.freeze([t]))===y&&(t.contents=null):c(null,t,a,Object.freeze([]))}u.BREAK=d,u.SKIP=m,u.REMOVE=y;function c(t,s,a,l){let h=r(t,s,a,l);if(g.isNode(h)||g.isPair(h))return e(t,l,h),c(t,h,a,l);if(typeof h!="symbol"){if(g.isCollection(s)){l=Object.freeze(l.concat(s));for(let p=0;p<s.items.length;++p){let b=c(p,s.items[p],a,l);if(typeof b=="number")p=b-1;else{if(b===d)return d;b===y&&(s.items.splice(p,1),p-=1)}}}else if(g.isPair(s)){l=Object.freeze(l.concat(s));let p=c("key",s.key,a,l);if(p===d)return d;p===y&&(s.key=null);let b=c("value",s.value,a,l);if(b===d)return d;b===y&&(s.value=null)}}return h}async function n(t,s){let a=i(s);g.isDocument(t)?await o(null,t.contents,a,Object.freeze([t]))===y&&(t.contents=null):await o(null,t,a,Object.freeze([]))}n.BREAK=d,n.SKIP=m,n.REMOVE=y;async function o(t,s,a,l){let h=await r(t,s,a,l);if(g.isNode(h)||g.isPair(h))return e(t,l,h),o(t,h,a,l);if(typeof h!="symbol"){if(g.isCollection(s)){l=Object.freeze(l.concat(s));for(let p=0;p<s.items.length;++p){let b=await o(p,s.items[p],a,l);if(typeof b=="number")p=b-1;else{if(b===d)return d;b===y&&(s.items.splice(p,1),p-=1)}}}else if(g.isPair(s)){l=Object.freeze(l.concat(s));let p=await o("key",s.key,a,l);if(p===d)return d;p===y&&(s.key=null);let b=await o("value",s.value,a,l);if(b===d)return d;b===y&&(s.value=null)}}return h}function i(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}function r(t,s,a,l){if(typeof a=="function")return a(t,s,l);if(g.isMap(s))return a.Map?.(t,s,l);if(g.isSeq(s))return a.Seq?.(t,s,l);if(g.isPair(s))return a.Pair?.(t,s,l);if(g.isScalar(s))return a.Scalar?.(t,s,l);if(g.isAlias(s))return a.Alias?.(t,s,l)}function e(t,s,a){let l=s[s.length-1];if(g.isCollection(l))l.items[t]=a;else if(g.isPair(l))t==="key"?l.key=a:l.value=a;else if(g.isDocument(l))l.contents=a;else{let h=g.isAlias(l)?"alias":"scalar";throw new Error(`Cannot replace node with ${h} parent`)}}f.visit=u,f.visitAsync=n}),Ce=E(f=>{"use strict";var g=C(),d=ne(),m={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},y=c=>c.replace(/[!,[\]{}]/g,n=>m[n]),u=class R{constructor(n,o){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},R.defaultYaml,n),this.tags=Object.assign({},R.defaultTags,o)}clone(){let n=new R(this.yaml,this.tags);return n.docStart=this.docStart,n}atDocument(){let n=new R(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:R.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},R.defaultTags);break}return n}add(n,o){this.atNextDocument&&(this.yaml={explicit:R.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},R.defaultTags),this.atNextDocument=!1);let i=n.trim().split(/[ \t]+/),r=i.shift();switch(r){case"%TAG":{if(i.length!==2&&(o(0,"%TAG directive should contain exactly two parts"),i.length<2))return!1;let[e,t]=i;return this.tags[e]=t,!0}case"%YAML":{if(this.yaml.explicit=!0,i.length!==1)return o(0,"%YAML directive should contain exactly one part"),!1;let[e]=i;if(e==="1.1"||e==="1.2")return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return o(6,`Unsupported YAML version ${e}`,t),!1}}default:return o(0,`Unknown directive ${r}`,!0),!1}}tagName(n,o){if(n==="!")return"!";if(n[0]!=="!")return o(`Not a valid tag: ${n}`),null;if(n[1]==="<"){let t=n.slice(2,-1);return t==="!"||t==="!!"?(o(`Verbatim tags aren't resolved, so ${n} is invalid.`),null):(n[n.length-1]!==">"&&o("Verbatim tags must end with a >"),t)}let[,i,r]=n.match(/^(.*!)([^!]*)$/s);r||o(`The ${n} tag has no suffix`);let e=this.tags[i];if(e)try{return e+decodeURIComponent(r)}catch(t){return o(String(t)),null}return i==="!"?n:(o(`Could not resolve tag: ${n}`),null)}tagString(n){for(let[o,i]of Object.entries(this.tags))if(n.startsWith(i))return o+y(n.substring(i.length));return n[0]==="!"?n:`!<${n}>`}toString(n){let o=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],i=Object.entries(this.tags),r;if(n&&i.length>0&&g.isNode(n.contents)){let e={};d.visit(n.contents,(t,s)=>{g.isNode(s)&&s.tag&&(e[s.tag]=!0)}),r=Object.keys(e)}else r=[];for(let[e,t]of i)e==="!!"&&t==="tag:yaml.org,2002:"||(!n||r.some(s=>s.startsWith(t)))&&o.push(`%TAG ${e} ${t}`);return o.join(`
5
+ `)}};u.defaultYaml={explicit:!1,version:"1.2"},u.defaultTags={"!!":"tag:yaml.org,2002:"},f.Directives=u}),we=E(f=>{"use strict";var g=C(),d=ne();function m(n){if(/[\x00-\x19\s,[\]{}]/.test(n)){let o=`Anchor must not contain whitespace or control characters: ${JSON.stringify(n)}`;throw new Error(o)}return!0}function y(n){let o=new Set;return d.visit(n,{Value(i,r){r.anchor&&o.add(r.anchor)}}),o}function u(n,o){for(let i=1;;++i){let r=`${n}${i}`;if(!o.has(r))return r}}function c(n,o){let i=[],r=new Map,e=null;return{onAnchor:t=>{i.push(t),e??(e=y(n));let s=u(o,e);return e.add(s),s},setAnchors:()=>{for(let t of i){let s=r.get(t);if(typeof s=="object"&&s.anchor&&(g.isScalar(s.node)||g.isCollection(s.node)))s.node.anchor=s.anchor;else{let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=t,a}}},sourceObjects:r}}f.anchorIsValid=m,f.anchorNames=y,f.createNodeAnchors=c,f.findNewAnchor=u}),Ie=E(f=>{"use strict";function g(d,m,y,u){if(u&&typeof u=="object")if(Array.isArray(u))for(let c=0,n=u.length;c<n;++c){let o=u[c],i=g(d,u,String(c),o);i===void 0?delete u[c]:i!==o&&(u[c]=i)}else if(u instanceof Map)for(let c of Array.from(u.keys())){let n=u.get(c),o=g(d,u,c,n);o===void 0?u.delete(c):o!==n&&u.set(c,o)}else if(u instanceof Set)for(let c of Array.from(u)){let n=g(d,u,c,c);n===void 0?u.delete(c):n!==c&&(u.delete(c),u.add(n))}else for(let[c,n]of Object.entries(u)){let o=g(d,u,c,n);o===void 0?delete u[c]:o!==n&&(u[c]=o)}return d.call(m,y,u)}f.applyReviver=g}),H=E(f=>{"use strict";var g=C();function d(m,y,u){if(Array.isArray(m))return m.map((c,n)=>d(c,String(n),u));if(m&&typeof m.toJSON=="function"){if(!u||!g.hasAnchor(m))return m.toJSON(y,u);let c={aliasCount:0,count:1,res:void 0};u.anchors.set(m,c),u.onCreate=o=>{c.res=o,delete u.onCreate};let n=m.toJSON(y,u);return u.onCreate&&u.onCreate(n),n}return typeof m=="bigint"&&!u?.keep?Number(m):m}f.toJS=d}),ve=E(f=>{"use strict";var g=Ie(),d=C(),m=H(),y=class{constructor(u){Object.defineProperty(this,d.NODE_TYPE,{value:u})}clone(){let u=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(u.range=this.range.slice()),u}toJS(u,{mapAsMap:c,maxAliasCount:n,onAnchor:o,reviver:i}={}){if(!d.isDocument(u))throw new TypeError("A document argument is required");let r={anchors:new Map,doc:u,keep:!0,mapAsMap:c===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},e=m.toJS(this,"",r);if(typeof o=="function")for(let{count:t,res:s}of r.anchors.values())o(s,t);return typeof i=="function"?g.applyReviver(i,{"":e},"",e):e}};f.NodeBase=y}),oe=E(f=>{"use strict";var g=we(),d=ne(),m=C(),y=ve(),u=H(),c=class extends y.NodeBase{constructor(o){super(m.ALIAS),this.source=o,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(o,i){let r;i?.aliasResolveCache?r=i.aliasResolveCache:(r=[],d.visit(o,{Node:(t,s)=>{(m.isAlias(s)||m.hasAnchor(s))&&r.push(s)}}),i&&(i.aliasResolveCache=r));let e;for(let t of r){if(t===this)break;t.anchor===this.source&&(e=t)}return e}toJSON(o,i){if(!i)return{source:this.source};let{anchors:r,doc:e,maxAliasCount:t}=i,s=this.resolve(e,i);if(!s){let l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=r.get(s);if(a||(u.toJS(s,null,i),a=r.get(s)),!a||a.res===void 0){let l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(t>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=n(e,s,r)),a.count*a.aliasCount>t)){let l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(o,i,r){let e=`*${this.source}`;if(o){if(g.anchorIsValid(this.source),o.options.verifyAliasOrder&&!o.anchors.has(this.source)){let t=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(t)}if(o.implicitKey)return`${e} `}return e}};function n(o,i,r){if(m.isAlias(i)){let e=i.resolve(o),t=r&&e&&r.get(e);return t?t.count*t.aliasCount:0}else if(m.isCollection(i)){let e=0;for(let t of i.items){let s=n(o,t,r);s>e&&(e=s)}return e}else if(m.isPair(i)){let e=n(o,i.key,r),t=n(o,i.value,r);return Math.max(e,t)}return 1}f.Alias=c}),D=E(f=>{"use strict";var g=C(),d=ve(),m=H(),y=c=>!c||typeof c!="function"&&typeof c!="object",u=class extends d.NodeBase{constructor(c){super(g.SCALAR),this.value=c}toJSON(c,n){return n?.keep?this.value:m.toJS(this.value,c,n)}toString(){return String(this.value)}};u.BLOCK_FOLDED="BLOCK_FOLDED",u.BLOCK_LITERAL="BLOCK_LITERAL",u.PLAIN="PLAIN",u.QUOTE_DOUBLE="QUOTE_DOUBLE",u.QUOTE_SINGLE="QUOTE_SINGLE",f.Scalar=u,f.isScalarValue=y}),ae=E(f=>{"use strict";var g=oe(),d=C(),m=D(),y="tag:yaml.org,2002:";function u(n,o,i){if(o){let r=i.filter(t=>t.tag===o),e=r.find(t=>!t.format)??r[0];if(!e)throw new Error(`Tag ${o} not found`);return e}return i.find(r=>r.identify?.(n)&&!r.format)}function c(n,o,i){if(d.isDocument(n)&&(n=n.contents),d.isNode(n))return n;if(d.isPair(n)){let b=i.schema[d.MAP].createNode?.(i.schema,null,i);return b.items.push(n),b}(n instanceof String||n instanceof Number||n instanceof Boolean||typeof BigInt<"u"&&n instanceof BigInt)&&(n=n.valueOf());let{aliasDuplicateObjects:r,onAnchor:e,onTagObj:t,schema:s,sourceObjects:a}=i,l;if(r&&n&&typeof n=="object"){if(l=a.get(n),l)return l.anchor??(l.anchor=e(n)),new g.Alias(l.anchor);l={anchor:null,node:null},a.set(n,l)}o?.startsWith("!!")&&(o=y+o.slice(2));let h=u(n,o,s.tags);if(!h){if(n&&typeof n.toJSON=="function"&&(n=n.toJSON()),!n||typeof n!="object"){let b=new m.Scalar(n);return l&&(l.node=b),b}h=n instanceof Map?s[d.MAP]:Symbol.iterator in Object(n)?s[d.SEQ]:s[d.MAP]}t&&(t(h),delete i.onTagObj);let p=h?.createNode?h.createNode(i.schema,n,i):typeof h?.nodeClass?.from=="function"?h.nodeClass.from(i.schema,n,i):new m.Scalar(n);return o?p.tag=o:h.default||(p.tag=h.tag),l&&(l.node=p),p}f.createNode=c}),ke=E(f=>{"use strict";var g=ae(),d=C(),m=ve();function y(n,o,i){let r=i;for(let e=o.length-1;e>=0;--e){let t=o[e];if(typeof t=="number"&&Number.isInteger(t)&&t>=0){let s=[];s[t]=r,r=s}else r=new Map([[t,r]])}return g.createNode(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:n,sourceObjects:new Map})}var u=n=>n==null||typeof n=="object"&&!!n[Symbol.iterator]().next().done,c=class extends m.NodeBase{constructor(n,o){super(n),Object.defineProperty(this,"schema",{value:o,configurable:!0,enumerable:!1,writable:!0})}clone(n){let o=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return n&&(o.schema=n),o.items=o.items.map(i=>d.isNode(i)||d.isPair(i)?i.clone(n):i),this.range&&(o.range=this.range.slice()),o}addIn(n,o){if(u(n))this.add(o);else{let[i,...r]=n,e=this.get(i,!0);if(d.isCollection(e))e.addIn(r,o);else if(e===void 0&&this.schema)this.set(i,y(this.schema,r,o));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}}deleteIn(n){let[o,...i]=n;if(i.length===0)return this.delete(o);let r=this.get(o,!0);if(d.isCollection(r))return r.deleteIn(i);throw new Error(`Expected YAML collection at ${o}. Remaining path: ${i}`)}getIn(n,o){let[i,...r]=n,e=this.get(i,!0);return r.length===0?!o&&d.isScalar(e)?e.value:e:d.isCollection(e)?e.getIn(r,o):void 0}hasAllNullValues(n){return this.items.every(o=>{if(!d.isPair(o))return!1;let i=o.value;return i==null||n&&d.isScalar(i)&&i.value==null&&!i.commentBefore&&!i.comment&&!i.tag})}hasIn(n){let[o,...i]=n;if(i.length===0)return this.has(o);let r=this.get(o,!0);return d.isCollection(r)?r.hasIn(i):!1}setIn(n,o){let[i,...r]=n;if(r.length===0)this.set(i,o);else{let e=this.get(i,!0);if(d.isCollection(e))e.setIn(r,o);else if(e===void 0&&this.schema)this.set(i,y(this.schema,r,o));else throw new Error(`Expected YAML collection at ${i}. Remaining path: ${r}`)}}};f.Collection=c,f.collectionFromPath=y,f.isEmptyPath=u}),le=E(f=>{"use strict";var g=y=>y.replace(/^(?!$)(?: $)?/gm,"#");function d(y,u){return/^\n+$/.test(y)?y.substring(1):u?y.replace(/^(?! *$)/gm,u):y}var m=(y,u,c)=>y.endsWith(`
6
+ `)?d(c,u):c.includes(`
7
+ `)?`
8
+ `+d(c,u):(y.endsWith(" ")?"":" ")+c;f.indentComment=d,f.lineComment=m,f.stringifyComment=g}),ht=E(f=>{"use strict";var g="flow",d="block",m="quoted";function y(c,n,o="flow",{indentAtStart:i,lineWidth:r=80,minContentWidth:e=20,onFold:t,onOverflow:s}={}){if(!r||r<0)return c;r<e&&(e=0);let a=Math.max(1+e,1+r-n.length);if(c.length<=a)return c;let l=[],h={},p=r-n.length;typeof i=="number"&&(i>r-Math.max(2,e)?l.push(0):p=r-i);let b,w,k=!1,v=-1,S=-1,A=-1;o===d&&(v=u(c,v,n.length),v!==-1&&(p=v+a));for(let L;L=c[v+=1];){if(o===m&&L==="\\"){switch(S=v,c[v+1]){case"x":v+=3;break;case"u":v+=5;break;case"U":v+=9;break;default:v+=1}A=v}if(L===`
9
+ `)o===d&&(v=u(c,v,n.length)),p=v+n.length+a,b=void 0;else{if(L===" "&&w&&w!==" "&&w!==`
10
+ `&&w!==" "){let M=c[v+1];M&&M!==" "&&M!==`
11
+ `&&M!==" "&&(b=v)}if(v>=p)if(b)l.push(b),p=b+a,b=void 0;else if(o===m){for(;w===" "||w===" ";)w=L,L=c[v+=1],k=!0;let M=v>A+1?v-2:S-1;if(h[M])return c;l.push(M),h[M]=!0,p=M+a,b=void 0}else k=!0}w=L}if(k&&s&&s(),l.length===0)return c;t&&t();let T=c.slice(0,l[0]);for(let L=0;L<l.length;++L){let M=l[L],N=l[L+1]||c.length;M===0?T=`
12
+ ${n}${c.slice(0,N)}`:(o===m&&h[M]&&(T+=`${c[M]}\\`),T+=`
13
+ ${n}${c.slice(M+1,N)}`)}return T}function u(c,n,o){let i=n,r=n+1,e=c[r];for(;e===" "||e===" ";)if(n<r+o)e=c[++n];else{do e=c[++n];while(e&&e!==`
14
+ `);i=n,r=n+1,e=c[r]}return i}f.FOLD_BLOCK=d,f.FOLD_FLOW=g,f.FOLD_QUOTED=m,f.foldFlowLines=y}),ce=E(f=>{"use strict";var g=D(),d=ht(),m=(s,a)=>({indentAtStart:a?s.indent.length:s.indentAtStart,lineWidth:s.options.lineWidth,minContentWidth:s.options.minContentWidth}),y=s=>/^(%|---|\.\.\.)/m.test(s);function u(s,a,l){if(!a||a<0)return!1;let h=a-l,p=s.length;if(p<=h)return!1;for(let b=0,w=0;b<p;++b)if(s[b]===`
15
+ `){if(b-w>h)return!0;if(w=b+1,p-w<=h)return!1}return!0}function c(s,a){let l=JSON.stringify(s);if(a.options.doubleQuotedAsJSON)return l;let{implicitKey:h}=a,p=a.options.doubleQuotedMinMultiLineLength,b=a.indent||(y(s)?" ":""),w="",k=0;for(let v=0,S=l[v];S;S=l[++v])if(S===" "&&l[v+1]==="\\"&&l[v+2]==="n"&&(w+=l.slice(k,v)+"\\ ",v+=1,k=v,S="\\"),S==="\\")switch(l[v+1]){case"u":{w+=l.slice(k,v);let A=l.substr(v+2,4);switch(A){case"0000":w+="\\0";break;case"0007":w+="\\a";break;case"000b":w+="\\v";break;case"001b":w+="\\e";break;case"0085":w+="\\N";break;case"00a0":w+="\\_";break;case"2028":w+="\\L";break;case"2029":w+="\\P";break;default:A.substr(0,2)==="00"?w+="\\x"+A.substr(2):w+=l.substr(v,6)}v+=5,k=v+1}break;case"n":if(h||l[v+2]==='"'||l.length<p)v+=1;else{for(w+=l.slice(k,v)+`
16
+
17
+ `;l[v+2]==="\\"&&l[v+3]==="n"&&l[v+4]!=='"';)w+=`
18
+ `,v+=2;w+=b,l[v+2]===" "&&(w+="\\"),v+=1,k=v+1}break;default:v+=1}return w=k?w+l.slice(k):l,h?w:d.foldFlowLines(w,b,d.FOLD_QUOTED,m(a,!1))}function n(s,a){if(a.options.singleQuote===!1||a.implicitKey&&s.includes(`
19
+ `)||/[ \t]\n|\n[ \t]/.test(s))return c(s,a);let l=a.indent||(y(s)?" ":""),h="'"+s.replace(/'/g,"''").replace(/\n+/g,`$&
20
+ ${l}`)+"'";return a.implicitKey?h:d.foldFlowLines(h,l,d.FOLD_FLOW,m(a,!1))}function o(s,a){let{singleQuote:l}=a.options,h;if(l===!1)h=c;else{let p=s.includes('"'),b=s.includes("'");p&&!b?h=n:b&&!p?h=c:h=l?n:c}return h(s,a)}var i;try{i=new RegExp(`(^|(?<!
21
+ ))
22
+ +(?!
23
+ |$)`,"g")}catch{i=/\n+(?!\n|$)/g}function r({comment:s,type:a,value:l},h,p,b){let{blockQuote:w,commentString:k,lineWidth:v}=h.options;if(!w||/\n[\t ]+$/.test(l)||/^\s*$/.test(l))return o(l,h);let S=h.indent||(h.forceBlockIndent||y(l)?" ":""),A=w==="literal"?!0:w==="folded"||a===g.Scalar.BLOCK_FOLDED?!1:a===g.Scalar.BLOCK_LITERAL?!0:!u(l,v,S.length);if(!l)return A?`|
24
+ `:`>
25
+ `;let T,L;for(L=l.length;L>0;--L){let K=l[L-1];if(K!==`
26
+ `&&K!==" "&&K!==" ")break}let M=l.substring(L),N=M.indexOf(`
27
+ `);N===-1?T="-":l===M||N!==M.length-1?(T="+",b&&b()):T="",M&&(l=l.slice(0,-M.length),M[M.length-1]===`
28
+ `&&(M=M.slice(0,-1)),M=M.replace(i,`$&${S}`));let O=!1,I,F=-1;for(I=0;I<l.length;++I){let K=l[I];if(K===" ")O=!0;else if(K===`
29
+ `)F=I;else break}let $=l.substring(0,F<I?F+1:I);$&&(l=l.substring($.length),$=$.replace(/\n+/g,`$&${S}`));let G=(O?S?"2":"1":"")+T;if(s&&(G+=" "+k(s.replace(/ ?[\r\n]+/g," ")),p&&p()),!A){let K=l.replace(/\n+/g,`
30
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${S}`),x=!1,j=m(h,!0);w!=="folded"&&a!==g.Scalar.BLOCK_FOLDED&&(j.onOverflow=()=>{x=!0});let B=d.foldFlowLines(`${$}${K}${M}`,S,d.FOLD_BLOCK,j);if(!x)return`>${G}
31
+ ${S}${B}`}return l=l.replace(/\n+/g,`$&${S}`),`|${G}
32
+ ${S}${$}${l}${M}`}function e(s,a,l,h){let{type:p,value:b}=s,{actualString:w,implicitKey:k,indent:v,indentStep:S,inFlow:A}=a;if(k&&b.includes(`
33
+ `)||A&&/[[\]{},]/.test(b))return o(b,a);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(b))return k||A||!b.includes(`
34
+ `)?o(b,a):r(s,a,l,h);if(!k&&!A&&p!==g.Scalar.PLAIN&&b.includes(`
35
+ `))return r(s,a,l,h);if(y(b)){if(v==="")return a.forceBlockIndent=!0,r(s,a,l,h);if(k&&v===S)return o(b,a)}let T=b.replace(/\n+/g,`$&
36
+ ${v}`);if(w){let L=O=>O.default&&O.tag!=="tag:yaml.org,2002:str"&&O.test?.test(T),{compat:M,tags:N}=a.doc.schema;if(N.some(L)||M?.some(L))return o(b,a)}return k?T:d.foldFlowLines(T,v,d.FOLD_FLOW,m(a,!1))}function t(s,a,l,h){let{implicitKey:p,inFlow:b}=a,w=typeof s.value=="string"?s:Object.assign({},s,{value:String(s.value)}),{type:k}=s;k!==g.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(w.value)&&(k=g.Scalar.QUOTE_DOUBLE);let v=A=>{switch(A){case g.Scalar.BLOCK_FOLDED:case g.Scalar.BLOCK_LITERAL:return p||b?o(w.value,a):r(w,a,l,h);case g.Scalar.QUOTE_DOUBLE:return c(w.value,a);case g.Scalar.QUOTE_SINGLE:return n(w.value,a);case g.Scalar.PLAIN:return e(w,a,l,h);default:return null}},S=v(k);if(S===null){let{defaultKeyType:A,defaultStringType:T}=a.options,L=p&&A||T;if(S=v(L),S===null)throw new Error(`Unsupported default string type ${L}`)}return S}f.stringifyString=t}),he=E(f=>{"use strict";var g=we(),d=C(),m=le(),y=ce();function u(i,r){let e=Object.assign({blockQuote:!0,commentString:m.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},i.schema.toStringOptions,r),t;switch(e.collectionStyle){case"block":t=!1;break;case"flow":t=!0;break;default:t=null}return{anchors:new Set,doc:i,flowCollectionPadding:e.flowCollectionPadding?" ":"",indent:"",indentStep:typeof e.indent=="number"?" ".repeat(e.indent):" ",inFlow:t,options:e}}function c(i,r){if(r.tag){let s=i.filter(a=>a.tag===r.tag);if(s.length>0)return s.find(a=>a.format===r.format)??s[0]}let e,t;if(d.isScalar(r)){t=r.value;let s=i.filter(a=>a.identify?.(t));if(s.length>1){let a=s.filter(l=>l.test);a.length>0&&(s=a)}e=s.find(a=>a.format===r.format)??s.find(a=>!a.format)}else t=r,e=i.find(s=>s.nodeClass&&t instanceof s.nodeClass);if(!e){let s=t?.constructor?.name??(t===null?"null":typeof t);throw new Error(`Tag not resolved for ${s} value`)}return e}function n(i,r,{anchors:e,doc:t}){if(!t.directives)return"";let s=[],a=(d.isScalar(i)||d.isCollection(i))&&i.anchor;a&&g.anchorIsValid(a)&&(e.add(a),s.push(`&${a}`));let l=i.tag??(r.default?null:r.tag);return l&&s.push(t.directives.tagString(l)),s.join(" ")}function o(i,r,e,t){if(d.isPair(i))return i.toString(r,e,t);if(d.isAlias(i)){if(r.doc.directives)return i.toString(r);if(r.resolvedAliases?.has(i))throw new TypeError("Cannot stringify circular structure without alias nodes");r.resolvedAliases?r.resolvedAliases.add(i):r.resolvedAliases=new Set([i]),i=i.resolve(r.doc)}let s,a=d.isNode(i)?i:r.doc.createNode(i,{onTagObj:p=>s=p});s??(s=c(r.doc.schema.tags,a));let l=n(a,s,r);l.length>0&&(r.indentAtStart=(r.indentAtStart??0)+l.length+1);let h=typeof s.stringify=="function"?s.stringify(a,r,e,t):d.isScalar(a)?y.stringifyString(a,r,e,t):a.toString(r,e,t);return l?d.isScalar(a)||h[0]==="{"||h[0]==="["?`${l} ${h}`:`${l}
37
+ ${r.indent}${h}`:h}f.createStringifyContext=u,f.stringify=o}),ut=E(f=>{"use strict";var g=C(),d=D(),m=he(),y=le();function u({key:c,value:n},o,i,r){let{allNullValues:e,doc:t,indent:s,indentStep:a,options:{commentString:l,indentSeq:h,simpleKeys:p}}=o,b=g.isNode(c)&&c.comment||null;if(p){if(b)throw new Error("With simple keys, key nodes cannot have comments");if(g.isCollection(c)||!g.isNode(c)&&typeof c=="object"){let I="With simple keys, collection cannot be used as a key value";throw new Error(I)}}let w=!p&&(!c||b&&n==null&&!o.inFlow||g.isCollection(c)||(g.isScalar(c)?c.type===d.Scalar.BLOCK_FOLDED||c.type===d.Scalar.BLOCK_LITERAL:typeof c=="object"));o=Object.assign({},o,{allNullValues:!1,implicitKey:!w&&(p||!e),indent:s+a});let k=!1,v=!1,S=m.stringify(c,o,()=>k=!0,()=>v=!0);if(!w&&!o.inFlow&&S.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");w=!0}if(o.inFlow){if(e||n==null)return k&&i&&i(),S===""?"?":w?`? ${S}`:S}else if(e&&!p||n==null&&w)return S=`? ${S}`,b&&!k?S+=y.lineComment(S,o.indent,l(b)):v&&r&&r(),S;k&&(b=null),w?(b&&(S+=y.lineComment(S,o.indent,l(b))),S=`? ${S}
38
+ ${s}:`):(S=`${S}:`,b&&(S+=y.lineComment(S,o.indent,l(b))));let A,T,L;g.isNode(n)?(A=!!n.spaceBefore,T=n.commentBefore,L=n.comment):(A=!1,T=null,L=null,n&&typeof n=="object"&&(n=t.createNode(n))),o.implicitKey=!1,!w&&!b&&g.isScalar(n)&&(o.indentAtStart=S.length+1),v=!1,!h&&a.length>=2&&!o.inFlow&&!w&&g.isSeq(n)&&!n.flow&&!n.tag&&!n.anchor&&(o.indent=o.indent.substring(2));let M=!1,N=m.stringify(n,o,()=>M=!0,()=>v=!0),O=" ";if(b||A||T){if(O=A?`
39
+ `:"",T){let I=l(T);O+=`
40
+ ${y.indentComment(I,o.indent)}`}N===""&&!o.inFlow?O===`
41
+ `&&(O=`
42
+
43
+ `):O+=`
44
+ ${o.indent}`}else if(!w&&g.isCollection(n)){let I=N[0],F=N.indexOf(`
45
+ `),$=F!==-1,G=o.inFlow??n.flow??n.items.length===0;if($||!G){let K=!1;if($&&(I==="&"||I==="!")){let x=N.indexOf(" ");I==="&"&&x!==-1&&x<F&&N[x+1]==="!"&&(x=N.indexOf(" ",x+1)),(x===-1||F<x)&&(K=!0)}K||(O=`
46
+ ${o.indent}`)}}else(N===""||N[0]===`
47
+ `)&&(O="");return S+=O+N,o.inFlow?M&&i&&i():L&&!M?S+=y.lineComment(S,o.indent,l(L)):v&&r&&r(),S}f.stringifyPair=u}),Ke=E(f=>{"use strict";var g=J("process");function d(y,...u){y==="debug"&&console.log(...u)}function m(y,u){(y==="debug"||y==="warn")&&(typeof g.emitWarning=="function"?g.emitWarning(u):console.warn(u))}f.debug=d,f.warn=m}),Se=E(f=>{"use strict";var g=C(),d=D(),m="<<",y={identify:o=>o===m||typeof o=="symbol"&&o.description===m,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new d.Scalar(Symbol(m)),{addToJSMap:c}),stringify:()=>m},u=(o,i)=>(y.identify(i)||g.isScalar(i)&&(!i.type||i.type===d.Scalar.PLAIN)&&y.identify(i.value))&&o?.doc.schema.tags.some(r=>r.tag===y.tag&&r.default);function c(o,i,r){if(r=o&&g.isAlias(r)?r.resolve(o.doc):r,g.isSeq(r))for(let e of r.items)n(o,i,e);else if(Array.isArray(r))for(let e of r)n(o,i,e);else n(o,i,r)}function n(o,i,r){let e=o&&g.isAlias(r)?r.resolve(o.doc):r;if(!g.isMap(e))throw new Error("Merge sources must be maps or map aliases");let t=e.toJSON(null,o,Map);for(let[s,a]of t)i instanceof Map?i.has(s)||i.set(s,a):i instanceof Set?i.add(s):Object.prototype.hasOwnProperty.call(i,s)||Object.defineProperty(i,s,{value:a,writable:!0,enumerable:!0,configurable:!0});return i}f.addMergeToJSMap=c,f.isMergeKey=u,f.merge=y}),Be=E(f=>{"use strict";var g=Ke(),d=Se(),m=he(),y=C(),u=H();function c(o,i,{key:r,value:e}){if(y.isNode(r)&&r.addToJSMap)r.addToJSMap(o,i,e);else if(d.isMergeKey(o,r))d.addMergeToJSMap(o,i,e);else{let t=u.toJS(r,"",o);if(i instanceof Map)i.set(t,u.toJS(e,t,o));else if(i instanceof Set)i.add(t);else{let s=n(r,t,o),a=u.toJS(e,s,o);s in i?Object.defineProperty(i,s,{value:a,writable:!0,enumerable:!0,configurable:!0}):i[s]=a}}return i}function n(o,i,r){if(i===null)return"";if(typeof i!="object")return String(i);if(y.isNode(o)&&r?.doc){let e=m.createStringifyContext(r.doc,{});e.anchors=new Set;for(let s of r.anchors.keys())e.anchors.add(s.anchor);e.inFlow=!0,e.inStringifyKey=!0;let t=o.toString(e);if(!r.mapKeyWarned){let s=JSON.stringify(t);s.length>40&&(s=s.substring(0,36)+'..."'),g.warn(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return t}return JSON.stringify(i)}f.addPairToJSMap=c}),V=E(f=>{"use strict";var g=ae(),d=ut(),m=Be(),y=C();function u(n,o,i){let r=g.createNode(n,void 0,i),e=g.createNode(o,void 0,i);return new c(r,e)}var c=class $e{constructor(o,i=null){Object.defineProperty(this,y.NODE_TYPE,{value:y.PAIR}),this.key=o,this.value=i}clone(o){let{key:i,value:r}=this;return y.isNode(i)&&(i=i.clone(o)),y.isNode(r)&&(r=r.clone(o)),new $e(i,r)}toJSON(o,i){let r=i?.mapAsMap?new Map:{};return m.addPairToJSMap(i,r,this)}toString(o,i,r){return o?.doc?d.stringifyPair(this,o,i,r):JSON.stringify(this)}};f.Pair=c,f.createPair=u}),_e=E(f=>{"use strict";var g=C(),d=he(),m=le();function y(o,i,r){return(i.inFlow??o.flow?c:u)(o,i,r)}function u({comment:o,items:i},r,{blockItemPrefix:e,flowChars:t,itemIndent:s,onChompKeep:a,onComment:l}){let{indent:h,options:{commentString:p}}=r,b=Object.assign({},r,{indent:s,type:null}),w=!1,k=[];for(let S=0;S<i.length;++S){let A=i[S],T=null;if(g.isNode(A))!w&&A.spaceBefore&&k.push(""),n(r,k,A.commentBefore,w),A.comment&&(T=A.comment);else if(g.isPair(A)){let M=g.isNode(A.key)?A.key:null;M&&(!w&&M.spaceBefore&&k.push(""),n(r,k,M.commentBefore,w))}w=!1;let L=d.stringify(A,b,()=>T=null,()=>w=!0);T&&(L+=m.lineComment(L,s,p(T))),w&&T&&(w=!1),k.push(e+L)}let v;if(k.length===0)v=t.start+t.end;else{v=k[0];for(let S=1;S<k.length;++S){let A=k[S];v+=A?`
48
+ ${h}${A}`:`
49
+ `}}return o?(v+=`
50
+ `+m.indentComment(p(o),h),l&&l()):w&&a&&a(),v}function c({items:o},i,{flowChars:r,itemIndent:e}){let{indent:t,indentStep:s,flowCollectionPadding:a,options:{commentString:l}}=i;e+=s;let h=Object.assign({},i,{indent:e,inFlow:!0,type:null}),p=!1,b=0,w=[];for(let S=0;S<o.length;++S){let A=o[S],T=null;if(g.isNode(A))A.spaceBefore&&w.push(""),n(i,w,A.commentBefore,!1),A.comment&&(T=A.comment);else if(g.isPair(A)){let M=g.isNode(A.key)?A.key:null;M&&(M.spaceBefore&&w.push(""),n(i,w,M.commentBefore,!1),M.comment&&(p=!0));let N=g.isNode(A.value)?A.value:null;N?(N.comment&&(T=N.comment),N.commentBefore&&(p=!0)):A.value==null&&M?.comment&&(T=M.comment)}T&&(p=!0);let L=d.stringify(A,h,()=>T=null);S<o.length-1&&(L+=","),T&&(L+=m.lineComment(L,e,l(T))),!p&&(w.length>b||L.includes(`
51
+ `))&&(p=!0),w.push(L),b=w.length}let{start:k,end:v}=r;if(w.length===0)return k+v;if(!p){let S=w.reduce((A,T)=>A+T.length+2,2);p=i.options.lineWidth>0&&S>i.options.lineWidth}if(p){let S=k;for(let A of w)S+=A?`
52
+ ${s}${t}${A}`:`
53
+ `;return`${S}
54
+ ${t}${v}`}else return`${k}${a}${w.join(" ")}${a}${v}`}function n({indent:o,options:{commentString:i}},r,e,t){if(e&&t&&(e=e.replace(/^\n+/,"")),e){let s=m.indentComment(i(e),o);r.push(s.trimStart())}}f.stringifyCollection=y}),z=E(f=>{"use strict";var g=_e(),d=Be(),m=ke(),y=C(),u=V(),c=D();function n(i,r){let e=y.isScalar(r)?r.value:r;for(let t of i)if(y.isPair(t)&&(t.key===r||t.key===e||y.isScalar(t.key)&&t.key.value===e))return t}var o=class extends m.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(i){super(y.MAP,i),this.items=[]}static from(i,r,e){let{keepUndefined:t,replacer:s}=e,a=new this(i),l=(h,p)=>{if(typeof s=="function")p=s.call(r,h,p);else if(Array.isArray(s)&&!s.includes(h))return;(p!==void 0||t)&&a.items.push(u.createPair(h,p,e))};if(r instanceof Map)for(let[h,p]of r)l(h,p);else if(r&&typeof r=="object")for(let h of Object.keys(r))l(h,r[h]);return typeof i.sortMapEntries=="function"&&a.items.sort(i.sortMapEntries),a}add(i,r){let e;y.isPair(i)?e=i:!i||typeof i!="object"||!("key"in i)?e=new u.Pair(i,i?.value):e=new u.Pair(i.key,i.value);let t=n(this.items,e.key),s=this.schema?.sortMapEntries;if(t){if(!r)throw new Error(`Key ${e.key} already set`);y.isScalar(t.value)&&c.isScalarValue(e.value)?t.value.value=e.value:t.value=e.value}else if(s){let a=this.items.findIndex(l=>s(e,l)<0);a===-1?this.items.push(e):this.items.splice(a,0,e)}else this.items.push(e)}delete(i){let r=n(this.items,i);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(i,r){let e=n(this.items,i)?.value;return(!r&&y.isScalar(e)?e.value:e)??void 0}has(i){return!!n(this.items,i)}set(i,r){this.add(new u.Pair(i,r),!0)}toJSON(i,r,e){let t=e?new e:r?.mapAsMap?new Map:{};r?.onCreate&&r.onCreate(t);for(let s of this.items)d.addPairToJSMap(r,t,s);return t}toString(i,r,e){if(!i)return JSON.stringify(this);for(let t of this.items)if(!y.isPair(t))throw new Error(`Map items must all be pairs; found ${JSON.stringify(t)} instead`);return!i.allNullValues&&this.hasAllNullValues(!1)&&(i=Object.assign({},i,{allNullValues:!0})),g.stringifyCollection(this,i,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:i.indent||"",onChompKeep:e,onComment:r})}};f.YAMLMap=o,f.findPair=n}),Z=E(f=>{"use strict";var g=C(),d=z(),m={collection:"map",default:!0,nodeClass:d.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(y,u){return g.isMap(y)||u("Expected a mapping for this tag"),y},createNode:(y,u,c)=>d.YAMLMap.from(y,u,c)};f.map=m}),Y=E(f=>{"use strict";var g=ae(),d=_e(),m=ke(),y=C(),u=D(),c=H(),n=class extends m.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(i){super(y.SEQ,i),this.items=[]}add(i){this.items.push(i)}delete(i){let r=o(i);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(i,r){let e=o(i);if(typeof e!="number")return;let t=this.items[e];return!r&&y.isScalar(t)?t.value:t}has(i){let r=o(i);return typeof r=="number"&&r<this.items.length}set(i,r){let e=o(i);if(typeof e!="number")throw new Error(`Expected a valid index, not ${i}.`);let t=this.items[e];y.isScalar(t)&&u.isScalarValue(r)?t.value=r:this.items[e]=r}toJSON(i,r){let e=[];r?.onCreate&&r.onCreate(e);let t=0;for(let s of this.items)e.push(c.toJS(s,String(t++),r));return e}toString(i,r,e){return i?d.stringifyCollection(this,i,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(i.indent||"")+" ",onChompKeep:e,onComment:r}):JSON.stringify(this)}static from(i,r,e){let{replacer:t}=e,s=new this(i);if(r&&Symbol.iterator in Object(r)){let a=0;for(let l of r){if(typeof t=="function"){let h=r instanceof Set?l:String(a++);l=t.call(r,h,l)}s.items.push(g.createNode(l,void 0,e))}}return s}};function o(i){let r=y.isScalar(i)?i.value:i;return r&&typeof r=="string"&&(r=Number(r)),typeof r=="number"&&Number.isInteger(r)&&r>=0?r:null}f.YAMLSeq=n}),ee=E(f=>{"use strict";var g=C(),d=Y(),m={collection:"seq",default:!0,nodeClass:d.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(y,u){return g.isSeq(y)||u("Expected a sequence for this tag"),y},createNode:(y,u,c)=>d.YAMLSeq.from(y,u,c)};f.seq=m}),ue=E(f=>{"use strict";var g=ce(),d={identify:m=>typeof m=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:m=>m,stringify(m,y,u,c){return y=Object.assign({actualString:!0},y),g.stringifyString(m,y,u,c)}};f.string=d}),Me=E(f=>{"use strict";var g=D(),d={identify:m=>m==null,createNode:()=>new g.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new g.Scalar(null),stringify:({source:m},y)=>typeof m=="string"&&d.test.test(m)?m:y.options.nullStr};f.nullTag=d}),De=E(f=>{"use strict";var g=D(),d={identify:m=>typeof m=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:m=>new g.Scalar(m[0]==="t"||m[0]==="T"),stringify({source:m,value:y},u){if(m&&d.test.test(m)){let c=m[0]==="t"||m[0]==="T";if(y===c)return m}return y?u.options.trueStr:u.options.falseStr}};f.boolTag=d}),te=E(f=>{"use strict";function g({format:d,minFractionDigits:m,tag:y,value:u}){if(typeof u=="bigint")return String(u);let c=typeof u=="number"?u:Number(u);if(!isFinite(c))return isNaN(c)?".nan":c<0?"-.inf":".inf";let n=JSON.stringify(u);if(!d&&m&&(!y||y==="tag:yaml.org,2002:float")&&/^\d/.test(n)){let o=n.indexOf(".");o<0&&(o=n.length,n+=".");let i=m-(n.length-o-1);for(;i-- >0;)n+="0"}return n}f.stringifyNumber=g}),Fe=E(f=>{"use strict";var g=D(),d=te(),m={identify:c=>typeof c=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:c=>c.slice(-3).toLowerCase()==="nan"?NaN:c[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:d.stringifyNumber},y={identify:c=>typeof c=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:c=>parseFloat(c),stringify(c){let n=Number(c.value);return isFinite(n)?n.toExponential():d.stringifyNumber(c)}},u={identify:c=>typeof c=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(c){let n=new g.Scalar(parseFloat(c)),o=c.indexOf(".");return o!==-1&&c[c.length-1]==="0"&&(n.minFractionDigits=c.length-o-1),n},stringify:d.stringifyNumber};f.float=u,f.floatExp=y,f.floatNaN=m}),Ge=E(f=>{"use strict";var g=te(),d=o=>typeof o=="bigint"||Number.isInteger(o),m=(o,i,r,{intAsBigInt:e})=>e?BigInt(o):parseInt(o.substring(i),r);function y(o,i,r){let{value:e}=o;return d(e)&&e>=0?r+e.toString(i):g.stringifyNumber(o)}var u={identify:o=>d(o)&&o>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(o,i,r)=>m(o,2,8,r),stringify:o=>y(o,8,"0o")},c={identify:d,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(o,i,r)=>m(o,0,10,r),stringify:g.stringifyNumber},n={identify:o=>d(o)&&o>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(o,i,r)=>m(o,2,16,r),stringify:o=>y(o,16,"0x")};f.int=c,f.intHex=n,f.intOct=u}),ft=E(f=>{"use strict";var g=Z(),d=Me(),m=ee(),y=ue(),u=De(),c=Fe(),n=Ge(),o=[g.map,m.seq,y.string,d.nullTag,u.boolTag,n.intOct,n.int,n.intHex,c.floatNaN,c.floatExp,c.float];f.schema=o}),dt=E(f=>{"use strict";var g=D(),d=Z(),m=ee();function y(i){return typeof i=="bigint"||Number.isInteger(i)}var u=({value:i})=>JSON.stringify(i),c=[{identify:i=>typeof i=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify:u},{identify:i=>i==null,createNode:()=>new g.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:u},{identify:i=>typeof i=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:i=>i==="true",stringify:u},{identify:y,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(i,r,{intAsBigInt:e})=>e?BigInt(i):parseInt(i,10),stringify:({value:i})=>y(i)?i.toString():JSON.stringify(i)},{identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:i=>parseFloat(i),stringify:u}],n={default:!0,tag:"",test:/^/,resolve(i,r){return r(`Unresolved plain scalar ${JSON.stringify(i)}`),i}},o=[d.map,m.seq].concat(c,n);f.schema=o}),je=E(f=>{"use strict";var g=J("buffer"),d=D(),m=ce(),y={identify:u=>u instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(u,c){if(typeof g.Buffer=="function")return g.Buffer.from(u,"base64");if(typeof atob=="function"){let n=atob(u.replace(/[\n\r]/g,"")),o=new Uint8Array(n.length);for(let i=0;i<n.length;++i)o[i]=n.charCodeAt(i);return o}else return c("This environment does not support reading binary tags; either Buffer or atob is required"),u},stringify({comment:u,type:c,value:n},o,i,r){if(!n)return"";let e=n,t;if(typeof g.Buffer=="function")t=e instanceof g.Buffer?e.toString("base64"):g.Buffer.from(e.buffer).toString("base64");else if(typeof btoa=="function"){let s="";for(let a=0;a<e.length;++a)s+=String.fromCharCode(e[a]);t=btoa(s)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(c??(c=d.Scalar.BLOCK_LITERAL),c!==d.Scalar.QUOTE_DOUBLE){let s=Math.max(o.options.lineWidth-o.indent.length,o.options.minContentWidth),a=Math.ceil(t.length/s),l=new Array(a);for(let h=0,p=0;h<a;++h,p+=s)l[h]=t.substr(p,s);t=l.join(c===d.Scalar.BLOCK_LITERAL?`
55
+ `:" ")}return m.stringifyString({comment:u,type:c,value:t},o,i,r)}};f.binary=y}),Ae=E(f=>{"use strict";var g=C(),d=V(),m=D(),y=Y();function u(o,i){if(g.isSeq(o))for(let r=0;r<o.items.length;++r){let e=o.items[r];if(!g.isPair(e)){if(g.isMap(e)){e.items.length>1&&i("Each pair must have its own sequence indicator");let t=e.items[0]||new d.Pair(new m.Scalar(null));if(e.commentBefore&&(t.key.commentBefore=t.key.commentBefore?`${e.commentBefore}
56
+ ${t.key.commentBefore}`:e.commentBefore),e.comment){let s=t.value??t.key;s.comment=s.comment?`${e.comment}
57
+ ${s.comment}`:e.comment}e=t}o.items[r]=g.isPair(e)?e:new d.Pair(e)}}else i("Expected a sequence for this tag");return o}function c(o,i,r){let{replacer:e}=r,t=new y.YAMLSeq(o);t.tag="tag:yaml.org,2002:pairs";let s=0;if(i&&Symbol.iterator in Object(i))for(let a of i){typeof e=="function"&&(a=e.call(i,String(s++),a));let l,h;if(Array.isArray(a))if(a.length===2)l=a[0],h=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){let p=Object.keys(a);if(p.length===1)l=p[0],h=a[l];else throw new TypeError(`Expected tuple with one key, not ${p.length} keys`)}else l=a;t.items.push(d.createPair(l,h,r))}return t}var n={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:u,createNode:c};f.createPairs=c,f.pairs=n,f.resolvePairs=u}),We=E(f=>{"use strict";var g=C(),d=H(),m=z(),y=Y(),u=Ae(),c=class qe extends y.YAMLSeq{constructor(){super(),this.add=m.YAMLMap.prototype.add.bind(this),this.delete=m.YAMLMap.prototype.delete.bind(this),this.get=m.YAMLMap.prototype.get.bind(this),this.has=m.YAMLMap.prototype.has.bind(this),this.set=m.YAMLMap.prototype.set.bind(this),this.tag=qe.tag}toJSON(i,r){if(!r)return super.toJSON(i);let e=new Map;r?.onCreate&&r.onCreate(e);for(let t of this.items){let s,a;if(g.isPair(t)?(s=d.toJS(t.key,"",r),a=d.toJS(t.value,s,r)):s=d.toJS(t,"",r),e.has(s))throw new Error("Ordered maps must not include duplicate keys");e.set(s,a)}return e}static from(i,r,e){let t=u.createPairs(i,r,e),s=new this;return s.items=t.items,s}};c.tag="tag:yaml.org,2002:omap";var n={collection:"seq",identify:o=>o instanceof Map,nodeClass:c,default:!1,tag:"tag:yaml.org,2002:omap",resolve(o,i){let r=u.resolvePairs(o,i),e=[];for(let{key:t}of r.items)g.isScalar(t)&&(e.includes(t.value)?i(`Ordered maps must not include duplicate keys: ${t.value}`):e.push(t.value));return Object.assign(new c,r)},createNode:(o,i,r)=>c.from(o,i,r)};f.YAMLOMap=c,f.omap=n}),pt=E(f=>{"use strict";var g=D();function d({value:u,source:c},n){return c&&(u?m:y).test.test(c)?c:u?n.options.trueStr:n.options.falseStr}var m={identify:u=>u===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new g.Scalar(!0),stringify:d},y={identify:u=>u===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new g.Scalar(!1),stringify:d};f.falseTag=y,f.trueTag=m}),mt=E(f=>{"use strict";var g=D(),d=te(),m={identify:c=>typeof c=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:c=>c.slice(-3).toLowerCase()==="nan"?NaN:c[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:d.stringifyNumber},y={identify:c=>typeof c=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:c=>parseFloat(c.replace(/_/g,"")),stringify(c){let n=Number(c.value);return isFinite(n)?n.toExponential():d.stringifyNumber(c)}},u={identify:c=>typeof c=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(c){let n=new g.Scalar(parseFloat(c.replace(/_/g,""))),o=c.indexOf(".");if(o!==-1){let i=c.substring(o+1).replace(/_/g,"");i[i.length-1]==="0"&&(n.minFractionDigits=i.length)}return n},stringify:d.stringifyNumber};f.float=u,f.floatExp=y,f.floatNaN=m}),gt=E(f=>{"use strict";var g=te(),d=i=>typeof i=="bigint"||Number.isInteger(i);function m(i,r,e,{intAsBigInt:t}){let s=i[0];if((s==="-"||s==="+")&&(r+=1),i=i.substring(r).replace(/_/g,""),t){switch(e){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`;break}let l=BigInt(i);return s==="-"?BigInt(-1)*l:l}let a=parseInt(i,e);return s==="-"?-1*a:a}function y(i,r,e){let{value:t}=i;if(d(t)){let s=t.toString(r);return t<0?"-"+e+s.substr(1):e+s}return g.stringifyNumber(i)}var u={identify:d,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(i,r,e)=>m(i,2,2,e),stringify:i=>y(i,2,"0b")},c={identify:d,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(i,r,e)=>m(i,1,8,e),stringify:i=>y(i,8,"0")},n={identify:d,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(i,r,e)=>m(i,0,10,e),stringify:g.stringifyNumber},o={identify:d,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(i,r,e)=>m(i,2,16,e),stringify:i=>y(i,16,"0x")};f.int=n,f.intBin=u,f.intHex=o,f.intOct=c}),Ue=E(f=>{"use strict";var g=C(),d=V(),m=z(),y=class Re extends m.YAMLMap{constructor(n){super(n),this.tag=Re.tag}add(n){let o;g.isPair(n)?o=n:n&&typeof n=="object"&&"key"in n&&"value"in n&&n.value===null?o=new d.Pair(n.key,null):o=new d.Pair(n,null),m.findPair(this.items,o.key)||this.items.push(o)}get(n,o){let i=m.findPair(this.items,n);return!o&&g.isPair(i)?g.isScalar(i.key)?i.key.value:i.key:i}set(n,o){if(typeof o!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof o}`);let i=m.findPair(this.items,n);i&&!o?this.items.splice(this.items.indexOf(i),1):!i&&o&&this.items.push(new d.Pair(n))}toJSON(n,o){return super.toJSON(n,o,Set)}toString(n,o,i){if(!n)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},n,{allNullValues:!0}),o,i);throw new Error("Set items must all have null values")}static from(n,o,i){let{replacer:r}=i,e=new this(n);if(o&&Symbol.iterator in Object(o))for(let t of o)typeof r=="function"&&(t=r.call(o,t,t)),e.items.push(d.createPair(t,null,i));return e}};y.tag="tag:yaml.org,2002:set";var u={collection:"map",identify:c=>c instanceof Set,nodeClass:y,default:!1,tag:"tag:yaml.org,2002:set",createNode:(c,n,o)=>y.from(c,n,o),resolve(c,n){if(g.isMap(c)){if(c.hasAllNullValues(!0))return Object.assign(new y,c);n("Set items must all have null values")}else n("Expected a mapping for this tag");return c}};f.YAMLSet=y,f.set=u}),He=E(f=>{"use strict";var g=te();function d(n,o){let i=n[0],r=i==="-"||i==="+"?n.substring(1):n,e=s=>o?BigInt(s):Number(s),t=r.replace(/_/g,"").split(":").reduce((s,a)=>s*e(60)+e(a),e(0));return i==="-"?e(-1)*t:t}function m(n){let{value:o}=n,i=s=>s;if(typeof o=="bigint")i=s=>BigInt(s);else if(isNaN(o)||!isFinite(o))return g.stringifyNumber(n);let r="";o<0&&(r="-",o*=i(-1));let e=i(60),t=[o%e];return o<60?t.unshift(0):(o=(o-t[0])/e,t.unshift(o%e),o>=60&&(o=(o-t[0])/e,t.unshift(o))),r+t.map(s=>String(s).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var y={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,o,{intAsBigInt:i})=>d(n,i),stringify:m},u={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=>d(n,!1),stringify:m},c={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){let o=n.match(c.test);if(!o)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,i,r,e,t,s,a]=o.map(Number),l=o[7]?Number((o[7]+"00").substr(1,3)):0,h=Date.UTC(i,r-1,e,t||0,s||0,a||0,l),p=o[8];if(p&&p!=="Z"){let b=d(p,!1);Math.abs(b)<30&&(b*=60),h-=6e4*b}return new Date(h)},stringify:({value:n})=>n?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};f.floatTime=u,f.intTime=y,f.timestamp=c}),yt=E(f=>{"use strict";var g=Z(),d=Me(),m=ee(),y=ue(),u=je(),c=pt(),n=mt(),o=gt(),i=Se(),r=We(),e=Ae(),t=Ue(),s=He(),a=[g.map,m.seq,y.string,d.nullTag,c.trueTag,c.falseTag,o.intBin,o.intOct,o.int,o.intHex,n.floatNaN,n.floatExp,n.float,u.binary,i.merge,r.omap,e.pairs,t.set,s.intTime,s.floatTime,s.timestamp];f.schema=a}),bt=E(f=>{"use strict";var g=Z(),d=Me(),m=ee(),y=ue(),u=De(),c=Fe(),n=Ge(),o=ft(),i=dt(),r=je(),e=Se(),t=We(),s=Ae(),a=yt(),l=Ue(),h=He(),p=new Map([["core",o.schema],["failsafe",[g.map,m.seq,y.string]],["json",i.schema],["yaml11",a.schema],["yaml-1.1",a.schema]]),b={binary:r.binary,bool:u.boolTag,float:c.float,floatExp:c.floatExp,floatNaN:c.floatNaN,floatTime:h.floatTime,int:n.int,intHex:n.intHex,intOct:n.intOct,intTime:h.intTime,map:g.map,merge:e.merge,null:d.nullTag,omap:t.omap,pairs:s.pairs,seq:m.seq,set:l.set,timestamp:h.timestamp},w={"tag:yaml.org,2002:binary":r.binary,"tag:yaml.org,2002:merge":e.merge,"tag:yaml.org,2002:omap":t.omap,"tag:yaml.org,2002:pairs":s.pairs,"tag:yaml.org,2002:set":l.set,"tag:yaml.org,2002:timestamp":h.timestamp};function k(v,S,A){let T=p.get(S);if(T&&!v)return A&&!T.includes(e.merge)?T.concat(e.merge):T.slice();let L=T;if(!L)if(Array.isArray(v))L=[];else{let M=Array.from(p.keys()).filter(N=>N!=="yaml11").map(N=>JSON.stringify(N)).join(", ");throw new Error(`Unknown schema "${S}"; use one of ${M} or define customTags array`)}if(Array.isArray(v))for(let M of v)L=L.concat(M);else typeof v=="function"&&(L=v(L.slice()));return A&&(L=L.concat(e.merge)),L.reduce((M,N)=>{let O=typeof N=="string"?b[N]:N;if(!O){let I=JSON.stringify(N),F=Object.keys(b).map($=>JSON.stringify($)).join(", ");throw new Error(`Unknown custom tag ${I}; use one of ${F}`)}return M.includes(O)||M.push(O),M},[])}f.coreKnownTags=w,f.getTags=k}),Ve=E(f=>{"use strict";var g=C(),d=Z(),m=ee(),y=ue(),u=bt(),c=(o,i)=>o.key<i.key?-1:o.key>i.key?1:0,n=class ze{constructor({compat:i,customTags:r,merge:e,resolveKnownTags:t,schema:s,sortMapEntries:a,toStringDefaults:l}){this.compat=Array.isArray(i)?u.getTags(i,"compat"):i?u.getTags(null,i):null,this.name=typeof s=="string"&&s||"core",this.knownTags=t?u.coreKnownTags:{},this.tags=u.getTags(r,this.name,e),this.toStringOptions=l??null,Object.defineProperty(this,g.MAP,{value:d.map}),Object.defineProperty(this,g.SCALAR,{value:y.string}),Object.defineProperty(this,g.SEQ,{value:m.seq}),this.sortMapEntries=typeof a=="function"?a:a===!0?c:null}clone(){let i=Object.create(ze.prototype,Object.getOwnPropertyDescriptors(this));return i.tags=this.tags.slice(),i}};f.Schema=n}),wt=E(f=>{"use strict";var g=C(),d=he(),m=le();function y(u,c){let n=[],o=c.directives===!0;if(c.directives!==!1&&u.directives){let s=u.directives.toString(u);s?(n.push(s),o=!0):u.directives.docStart&&(o=!0)}o&&n.push("---");let i=d.createStringifyContext(u,c),{commentString:r}=i.options;if(u.commentBefore){n.length!==1&&n.unshift("");let s=r(u.commentBefore);n.unshift(m.indentComment(s,""))}let e=!1,t=null;if(u.contents){if(g.isNode(u.contents)){if(u.contents.spaceBefore&&o&&n.push(""),u.contents.commentBefore){let l=r(u.contents.commentBefore);n.push(m.indentComment(l,""))}i.forceBlockIndent=!!u.comment,t=u.contents.comment}let s=t?void 0:()=>e=!0,a=d.stringify(u.contents,i,()=>t=null,s);t&&(a+=m.lineComment(a,"",r(t))),(a[0]==="|"||a[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${a}`:n.push(a)}else n.push(d.stringify(u.contents,i));if(u.directives?.docEnd)if(u.comment){let s=r(u.comment);s.includes(`
58
+ `)?(n.push("..."),n.push(m.indentComment(s,""))):n.push(`... ${s}`)}else n.push("...");else{let s=u.comment;s&&e&&(s=s.replace(/^\n+/,"")),s&&((!e||t)&&n[n.length-1]!==""&&n.push(""),n.push(m.indentComment(r(s),"")))}return n.join(`
59
+ `)+`
60
+ `}f.stringifyDocument=y}),fe=E(f=>{"use strict";var g=oe(),d=ke(),m=C(),y=V(),u=H(),c=Ve(),n=wt(),o=we(),i=Ie(),r=ae(),e=Ce(),t=class Ye{constructor(l,h,p){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,m.NODE_TYPE,{value:m.DOC});let b=null;typeof h=="function"||Array.isArray(h)?b=h:p===void 0&&h&&(p=h,h=void 0);let w=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},p);this.options=w;let{version:k}=w;p?._directives?(this.directives=p._directives.atDocument(),this.directives.yaml.explicit&&(k=this.directives.yaml.version)):this.directives=new e.Directives({version:k}),this.setSchema(k,p),this.contents=l===void 0?null:this.createNode(l,b,p)}clone(){let l=Object.create(Ye.prototype,{[m.NODE_TYPE]:{value:m.DOC}});return l.commentBefore=this.commentBefore,l.comment=this.comment,l.errors=this.errors.slice(),l.warnings=this.warnings.slice(),l.options=Object.assign({},this.options),this.directives&&(l.directives=this.directives.clone()),l.schema=this.schema.clone(),l.contents=m.isNode(this.contents)?this.contents.clone(l.schema):this.contents,this.range&&(l.range=this.range.slice()),l}add(l){s(this.contents)&&this.contents.add(l)}addIn(l,h){s(this.contents)&&this.contents.addIn(l,h)}createAlias(l,h){if(!l.anchor){let p=o.anchorNames(this);l.anchor=!h||p.has(h)?o.findNewAnchor(h||"a",p):h}return new g.Alias(l.anchor)}createNode(l,h,p){let b;if(typeof h=="function")l=h.call({"":l},"",l),b=h;else if(Array.isArray(h)){let F=G=>typeof G=="number"||G instanceof String||G instanceof Number,$=h.filter(F).map(String);$.length>0&&(h=h.concat($)),b=h}else p===void 0&&h&&(p=h,h=void 0);let{aliasDuplicateObjects:w,anchorPrefix:k,flow:v,keepUndefined:S,onTagObj:A,tag:T}=p??{},{onAnchor:L,setAnchors:M,sourceObjects:N}=o.createNodeAnchors(this,k||"a"),O={aliasDuplicateObjects:w??!0,keepUndefined:S??!1,onAnchor:L,onTagObj:A,replacer:b,schema:this.schema,sourceObjects:N},I=r.createNode(l,T,O);return v&&m.isCollection(I)&&(I.flow=!0),M(),I}createPair(l,h,p={}){let b=this.createNode(l,null,p),w=this.createNode(h,null,p);return new y.Pair(b,w)}delete(l){return s(this.contents)?this.contents.delete(l):!1}deleteIn(l){return d.isEmptyPath(l)?this.contents==null?!1:(this.contents=null,!0):s(this.contents)?this.contents.deleteIn(l):!1}get(l,h){return m.isCollection(this.contents)?this.contents.get(l,h):void 0}getIn(l,h){return d.isEmptyPath(l)?!h&&m.isScalar(this.contents)?this.contents.value:this.contents:m.isCollection(this.contents)?this.contents.getIn(l,h):void 0}has(l){return m.isCollection(this.contents)?this.contents.has(l):!1}hasIn(l){return d.isEmptyPath(l)?this.contents!==void 0:m.isCollection(this.contents)?this.contents.hasIn(l):!1}set(l,h){this.contents==null?this.contents=d.collectionFromPath(this.schema,[l],h):s(this.contents)&&this.contents.set(l,h)}setIn(l,h){d.isEmptyPath(l)?this.contents=h:this.contents==null?this.contents=d.collectionFromPath(this.schema,Array.from(l),h):s(this.contents)&&this.contents.setIn(l,h)}setSchema(l,h={}){typeof l=="number"&&(l=String(l));let p;switch(l){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new e.Directives({version:"1.1"}),p={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=l:this.directives=new e.Directives({version:l}),p={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,p=null;break;default:{let b=JSON.stringify(l);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${b}`)}}if(h.schema instanceof Object)this.schema=h.schema;else if(p)this.schema=new c.Schema(Object.assign(p,h));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:l,jsonArg:h,mapAsMap:p,maxAliasCount:b,onAnchor:w,reviver:k}={}){let v={anchors:new Map,doc:this,keep:!l,mapAsMap:p===!0,mapKeyWarned:!1,maxAliasCount:typeof b=="number"?b:100},S=u.toJS(this.contents,h??"",v);if(typeof w=="function")for(let{count:A,res:T}of v.anchors.values())w(T,A);return typeof k=="function"?i.applyReviver(k,{"":S},"",S):S}toJSON(l,h){return this.toJS({json:!0,jsonArg:l,mapAsMap:!1,onAnchor:h})}toString(l={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in l&&(!Number.isInteger(l.indent)||Number(l.indent)<=0)){let h=JSON.stringify(l.indent);throw new Error(`"indent" option must be a positive integer, not ${h}`)}return n.stringifyDocument(this,l)}};function s(a){if(m.isCollection(a))return!0;throw new Error("Expected a YAML collection as document contents")}f.Document=t}),de=E(f=>{"use strict";var g=class extends Error{constructor(u,c,n,o){super(),this.name=u,this.code=n,this.message=o,this.pos=c}},d=class extends g{constructor(u,c,n){super("YAMLParseError",u,c,n)}},m=class extends g{constructor(u,c,n){super("YAMLWarning",u,c,n)}},y=(u,c)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(t=>c.linePos(t));let{line:o,col:i}=n.linePos[0];n.message+=` at line ${o}, column ${i}`;let r=i-1,e=u.substring(c.lineStarts[o-1],c.lineStarts[o]).replace(/[\n\r]+$/,"");if(r>=60&&e.length>80){let t=Math.min(r-39,e.length-79);e="\u2026"+e.substring(t),r-=t-1}if(e.length>80&&(e=e.substring(0,79)+"\u2026"),o>1&&/^ *$/.test(e.substring(0,r))){let t=u.substring(c.lineStarts[o-2],c.lineStarts[o-1]);t.length>80&&(t=t.substring(0,79)+`\u2026
61
+ `),e=t+e}if(/[^ ]/.test(e)){let t=1,s=n.linePos[1];s&&s.line===o&&s.col>i&&(t=Math.max(1,Math.min(s.col-i,80-r)));let a=" ".repeat(r)+"^".repeat(t);n.message+=`:
62
+
63
+ ${e}
64
+ ${a}
65
+ `}};f.YAMLError=g,f.YAMLParseError=d,f.YAMLWarning=m,f.prettifyError=y}),pe=E(f=>{"use strict";function g(d,{flow:m,indicator:y,next:u,offset:c,onError:n,parentIndent:o,startOnNewline:i}){let r=!1,e=i,t=i,s="",a="",l=!1,h=!1,p=null,b=null,w=null,k=null,v=null,S=null,A=null;for(let M of d)switch(h&&(M.type!=="space"&&M.type!=="newline"&&M.type!=="comma"&&n(M.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),h=!1),p&&(e&&M.type!=="comment"&&M.type!=="newline"&&n(p,"TAB_AS_INDENT","Tabs are not allowed as indentation"),p=null),M.type){case"space":!m&&(y!=="doc-start"||u?.type!=="flow-collection")&&M.source.includes(" ")&&(p=M),t=!0;break;case"comment":{t||n(M,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let N=M.source.substring(1)||" ";s?s+=a+N:s=N,a="",e=!1;break}case"newline":e?s?s+=M.source:(!S||y!=="seq-item-ind")&&(r=!0):a+=M.source,e=!0,l=!0,(b||w)&&(k=M),t=!0;break;case"anchor":b&&n(M,"MULTIPLE_ANCHORS","A node can have at most one anchor"),M.source.endsWith(":")&&n(M.offset+M.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),b=M,A??(A=M.offset),e=!1,t=!1,h=!0;break;case"tag":{w&&n(M,"MULTIPLE_TAGS","A node can have at most one tag"),w=M,A??(A=M.offset),e=!1,t=!1,h=!0;break}case y:(b||w)&&n(M,"BAD_PROP_ORDER",`Anchors and tags must be after the ${M.source} indicator`),S&&n(M,"UNEXPECTED_TOKEN",`Unexpected ${M.source} in ${m??"collection"}`),S=M,e=y==="seq-item-ind"||y==="explicit-key-ind",t=!1;break;case"comma":if(m){v&&n(M,"UNEXPECTED_TOKEN",`Unexpected , in ${m}`),v=M,e=!1,t=!1;break}default:n(M,"UNEXPECTED_TOKEN",`Unexpected ${M.type} token`),e=!1,t=!1}let T=d[d.length-1],L=T?T.offset+T.source.length:c;return h&&u&&u.type!=="space"&&u.type!=="newline"&&u.type!=="comma"&&(u.type!=="scalar"||u.source!=="")&&n(u.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p&&(e&&p.indent<=o||u?.type==="block-map"||u?.type==="block-seq")&&n(p,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:v,found:S,spaceBefore:r,comment:s,hasNewline:l,anchor:b,tag:w,newlineAfterProp:k,end:L,start:A??L}}f.resolveProps=g}),Te=E(f=>{"use strict";function g(d){if(!d)return null;switch(d.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(d.source.includes(`
66
+ `))return!0;if(d.end){for(let m of d.end)if(m.type==="newline")return!0}return!1;case"flow-collection":for(let m of d.items){for(let y of m.start)if(y.type==="newline")return!0;if(m.sep){for(let y of m.sep)if(y.type==="newline")return!0}if(g(m.key)||g(m.value))return!0}return!1;default:return!0}}f.containsNewline=g}),Xe=E(f=>{"use strict";var g=Te();function d(m,y,u){if(y?.type==="flow-collection"){let c=y.end[0];c.indent===m&&(c.source==="]"||c.source==="}")&&g.containsNewline(y)&&u(c,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}f.flowIndentCheck=d}),Je=E(f=>{"use strict";var g=C();function d(m,y,u){let{uniqueKeys:c}=m.options;if(c===!1)return!1;let n=typeof c=="function"?c:(o,i)=>o===i||g.isScalar(o)&&g.isScalar(i)&&o.value===i.value;return y.some(o=>n(o.key,u))}f.mapIncludes=d}),vt=E(f=>{"use strict";var g=V(),d=z(),m=pe(),y=Te(),u=Xe(),c=Je(),n="All mapping items must start at the same column";function o({composeNode:i,composeEmptyNode:r},e,t,s,a){let l=a?.nodeClass??d.YAMLMap,h=new l(e.schema);e.atRoot&&(e.atRoot=!1);let p=t.offset,b=null;for(let w of t.items){let{start:k,key:v,sep:S,value:A}=w,T=m.resolveProps(k,{indicator:"explicit-key-ind",next:v??S?.[0],offset:p,onError:s,parentIndent:t.indent,startOnNewline:!0}),L=!T.found;if(L){if(v&&(v.type==="block-seq"?s(p,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in v&&v.indent!==t.indent&&s(p,"BAD_INDENT",n)),!T.anchor&&!T.tag&&!S){b=T.end,T.comment&&(h.comment?h.comment+=`
67
+ `+T.comment:h.comment=T.comment);continue}(T.newlineAfterProp||y.containsNewline(v))&&s(v??k[k.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else T.found?.indent!==t.indent&&s(p,"BAD_INDENT",n);e.atKey=!0;let M=T.end,N=v?i(e,v,T,s):r(e,M,k,null,T,s);e.schema.compat&&u.flowIndentCheck(t.indent,v,s),e.atKey=!1,c.mapIncludes(e,h.items,N)&&s(M,"DUPLICATE_KEY","Map keys must be unique");let O=m.resolveProps(S??[],{indicator:"map-value-ind",next:A,offset:N.range[2],onError:s,parentIndent:t.indent,startOnNewline:!v||v.type==="block-scalar"});if(p=O.end,O.found){L&&(A?.type==="block-map"&&!O.hasNewline&&s(p,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),e.options.strict&&T.start<O.found.offset-1024&&s(N.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let I=A?i(e,A,O,s):r(e,p,S,null,O,s);e.schema.compat&&u.flowIndentCheck(t.indent,A,s),p=I.range[2];let F=new g.Pair(N,I);e.options.keepSourceTokens&&(F.srcToken=w),h.items.push(F)}else{L&&s(N.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),O.comment&&(N.comment?N.comment+=`
68
+ `+O.comment:N.comment=O.comment);let I=new g.Pair(N);e.options.keepSourceTokens&&(I.srcToken=w),h.items.push(I)}}return b&&b<p&&s(b,"IMPOSSIBLE","Map comment with trailing content"),h.range=[t.offset,p,b??p],h}f.resolveBlockMap=o}),kt=E(f=>{"use strict";var g=Y(),d=pe(),m=Xe();function y({composeNode:u,composeEmptyNode:c},n,o,i,r){let e=r?.nodeClass??g.YAMLSeq,t=new e(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let s=o.offset,a=null;for(let{start:l,value:h}of o.items){let p=d.resolveProps(l,{indicator:"seq-item-ind",next:h,offset:s,onError:i,parentIndent:o.indent,startOnNewline:!0});if(!p.found)if(p.anchor||p.tag||h)h&&h.type==="block-seq"?i(p.end,"BAD_INDENT","All sequence items must start at the same column"):i(s,"MISSING_CHAR","Sequence item without - indicator");else{a=p.end,p.comment&&(t.comment=p.comment);continue}let b=h?u(n,h,p,i):c(n,p.end,l,null,p,i);n.schema.compat&&m.flowIndentCheck(o.indent,h,i),s=b.range[2],t.items.push(b)}return t.range=[o.offset,s,a??s],t}f.resolveBlockSeq=y}),ie=E(f=>{"use strict";function g(d,m,y,u){let c="";if(d){let n=!1,o="";for(let i of d){let{source:r,type:e}=i;switch(e){case"space":n=!0;break;case"comment":{y&&!n&&u(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let t=r.substring(1)||" ";c?c+=o+t:c=t,o="";break}case"newline":c&&(o+=r),n=!0;break;default:u(i,"UNEXPECTED_TOKEN",`Unexpected ${e} at node end`)}m+=r.length}}return{comment:c,offset:m}}f.resolveEnd=g}),St=E(f=>{"use strict";var g=C(),d=V(),m=z(),y=Y(),u=ie(),c=pe(),n=Te(),o=Je(),i="Block collections are not allowed within flow collections",r=t=>t&&(t.type==="block-map"||t.type==="block-seq");function e({composeNode:t,composeEmptyNode:s},a,l,h,p){let b=l.start.source==="{",w=b?"flow map":"flow sequence",k=p?.nodeClass??(b?m.YAMLMap:y.YAMLSeq),v=new k(a.schema);v.flow=!0;let S=a.atRoot;S&&(a.atRoot=!1),a.atKey&&(a.atKey=!1);let A=l.offset+l.start.source.length;for(let O=0;O<l.items.length;++O){let I=l.items[O],{start:F,key:$,sep:G,value:K}=I,x=c.resolveProps(F,{flow:w,indicator:"explicit-key-ind",next:$??G?.[0],offset:A,onError:h,parentIndent:l.indent,startOnNewline:!1});if(!x.found){if(!x.anchor&&!x.tag&&!G&&!K){O===0&&x.comma?h(x.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${w}`):O<l.items.length-1&&h(x.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${w}`),x.comment&&(v.comment?v.comment+=`
69
+ `+x.comment:v.comment=x.comment),A=x.end;continue}!b&&a.options.strict&&n.containsNewline($)&&h($,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(O===0)x.comma&&h(x.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${w}`);else if(x.comma||h(x.start,"MISSING_CHAR",`Missing , between ${w} items`),x.comment){let j="";e:for(let B of F)switch(B.type){case"comma":case"space":break;case"comment":j=B.source.substring(1);break e;default:break e}if(j){let B=v.items[v.items.length-1];g.isPair(B)&&(B=B.value??B.key),B.comment?B.comment+=`
70
+ `+j:B.comment=j,x.comment=x.comment.substring(j.length+1)}}if(!b&&!G&&!x.found){let j=K?t(a,K,x,h):s(a,x.end,G,null,x,h);v.items.push(j),A=j.range[2],r(K)&&h(j.range,"BLOCK_IN_FLOW",i)}else{a.atKey=!0;let j=x.end,B=$?t(a,$,x,h):s(a,j,F,null,x,h);r($)&&h(B.range,"BLOCK_IN_FLOW",i),a.atKey=!1;let W=c.resolveProps(G??[],{flow:w,indicator:"map-value-ind",next:K,offset:B.range[2],onError:h,parentIndent:l.indent,startOnNewline:!1});if(W.found){if(!b&&!x.found&&a.options.strict){if(G)for(let U of G){if(U===W.found)break;if(U.type==="newline"){h(U,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}x.start<W.found.offset-1024&&h(W.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else K&&("source"in K&&K.source&&K.source[0]===":"?h(K,"MISSING_CHAR",`Missing space after : in ${w}`):h(W.start,"MISSING_CHAR",`Missing , or : between ${w} items`));let X=K?t(a,K,W,h):W.found?s(a,W.end,G,null,W,h):null;X?r(K)&&h(X.range,"BLOCK_IN_FLOW",i):W.comment&&(B.comment?B.comment+=`
71
+ `+W.comment:B.comment=W.comment);let me=new d.Pair(B,X);if(a.options.keepSourceTokens&&(me.srcToken=I),b){let U=v;o.mapIncludes(a,U.items,B)&&h(j,"DUPLICATE_KEY","Map keys must be unique"),U.items.push(me)}else{let U=new m.YAMLMap(a.schema);U.flow=!0,U.items.push(me);let Le=(X??B).range;U.range=[B.range[0],Le[1],Le[2]],v.items.push(U)}A=X?X.range[2]:W.end}}let T=b?"}":"]",[L,...M]=l.end,N=A;if(L&&L.source===T)N=L.offset+L.source.length;else{let O=w[0].toUpperCase()+w.substring(1),I=S?`${O} must end with a ${T}`:`${O} in block collection must be sufficiently indented and end with a ${T}`;h(A,S?"MISSING_CHAR":"BAD_INDENT",I),L&&L.source.length!==1&&M.unshift(L)}if(M.length>0){let O=u.resolveEnd(M,N,a.options.strict,h);O.comment&&(v.comment?v.comment+=`
72
+ `+O.comment:v.comment=O.comment),v.range=[l.offset,N,O.offset]}else v.range=[l.offset,N,N];return v}f.resolveFlowCollection=e}),Mt=E(f=>{"use strict";var g=C(),d=D(),m=z(),y=Y(),u=vt(),c=kt(),n=St();function o(r,e,t,s,a,l){let h=t.type==="block-map"?u.resolveBlockMap(r,e,t,s,l):t.type==="block-seq"?c.resolveBlockSeq(r,e,t,s,l):n.resolveFlowCollection(r,e,t,s,l),p=h.constructor;return a==="!"||a===p.tagName?(h.tag=p.tagName,h):(a&&(h.tag=a),h)}function i(r,e,t,s,a){let l=s.tag,h=l?e.directives.tagName(l.source,S=>a(l,"TAG_RESOLVE_FAILED",S)):null;if(t.type==="block-seq"){let{anchor:S,newlineAfterProp:A}=s,T=S&&l?S.offset>l.offset?S:l:S??l;T&&(!A||A.offset<T.offset)&&a(T,"MISSING_CHAR","Missing newline after block sequence props")}let p=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!l||!h||h==="!"||h===m.YAMLMap.tagName&&p==="map"||h===y.YAMLSeq.tagName&&p==="seq")return o(r,e,t,a,h);let b=e.schema.tags.find(S=>S.tag===h&&S.collection===p);if(!b){let S=e.schema.knownTags[h];if(S&&S.collection===p)e.schema.tags.push(Object.assign({},S,{default:!1})),b=S;else return S?a(l,"BAD_COLLECTION_TYPE",`${S.tag} used for ${p} collection, but expects ${S.collection??"scalar"}`,!0):a(l,"TAG_RESOLVE_FAILED",`Unresolved tag: ${h}`,!0),o(r,e,t,a,h)}let w=o(r,e,t,a,h,b),k=b.resolve?.(w,S=>a(l,"TAG_RESOLVE_FAILED",S),e.options)??w,v=g.isNode(k)?k:new d.Scalar(k);return v.range=w.range,v.tag=h,b?.format&&(v.format=b.format),v}f.composeCollection=i}),Qe=E(f=>{"use strict";var g=D();function d(u,c,n){let o=c.offset,i=m(c,u.options.strict,n);if(!i)return{value:"",type:null,comment:"",range:[o,o,o]};let r=i.mode===">"?g.Scalar.BLOCK_FOLDED:g.Scalar.BLOCK_LITERAL,e=c.source?y(c.source):[],t=e.length;for(let k=e.length-1;k>=0;--k){let v=e[k][1];if(v===""||v==="\r")t=k;else break}if(t===0){let k=i.chomp==="+"&&e.length>0?`
73
+ `.repeat(Math.max(1,e.length-1)):"",v=o+i.length;return c.source&&(v+=c.source.length),{value:k,type:r,comment:i.comment,range:[o,v,v]}}let s=c.indent+i.indent,a=c.offset+i.length,l=0;for(let k=0;k<t;++k){let[v,S]=e[k];if(S===""||S==="\r")i.indent===0&&v.length>s&&(s=v.length);else{v.length<s&&n(a+v.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(s=v.length),l=k,s===0&&!u.atRoot&&n(a,"BAD_INDENT","Block scalar values in collections must be indented");break}a+=v.length+S.length+1}for(let k=e.length-1;k>=t;--k)e[k][0].length>s&&(t=k+1);let h="",p="",b=!1;for(let k=0;k<l;++k)h+=e[k][0].slice(s)+`
74
+ `;for(let k=l;k<t;++k){let[v,S]=e[k];a+=v.length+S.length+1;let A=S[S.length-1]==="\r";if(A&&(S=S.slice(0,-1)),S&&v.length<s){let T=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(a-S.length-(A?2:1),"BAD_INDENT",T),v=""}r===g.Scalar.BLOCK_LITERAL?(h+=p+v.slice(s)+S,p=`
75
+ `):v.length>s||S[0]===" "?(p===" "?p=`
76
+ `:!b&&p===`
77
+ `&&(p=`
78
+
79
+ `),h+=p+v.slice(s)+S,p=`
80
+ `,b=!0):S===""?p===`
81
+ `?h+=`
82
+ `:p=`
83
+ `:(h+=p+S,p=" ",b=!1)}switch(i.chomp){case"-":break;case"+":for(let k=t;k<e.length;++k)h+=`
84
+ `+e[k][0].slice(s);h[h.length-1]!==`
85
+ `&&(h+=`
86
+ `);break;default:h+=`
87
+ `}let w=o+i.length+c.source.length;return{value:h,type:r,comment:i.comment,range:[o,w,w]}}function m({offset:u,props:c},n,o){if(c[0].type!=="block-scalar-header")return o(c[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=c[0],r=i[0],e=0,t="",s=-1;for(let p=1;p<i.length;++p){let b=i[p];if(!t&&(b==="-"||b==="+"))t=b;else{let w=Number(b);!e&&w?e=w:s===-1&&(s=u+p)}}s!==-1&&o(s,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let a=!1,l="",h=i.length;for(let p=1;p<c.length;++p){let b=c[p];switch(b.type){case"space":a=!0;case"newline":h+=b.source.length;break;case"comment":n&&!a&&o(b,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=b.source.length,l=b.source.substring(1);break;case"error":o(b,"UNEXPECTED_TOKEN",b.message),h+=b.source.length;break;default:{let w=`Unexpected token in block scalar header: ${b.type}`;o(b,"UNEXPECTED_TOKEN",w);let k=b.source;k&&typeof k=="string"&&(h+=k.length)}}}return{mode:r,indent:e,chomp:t,comment:l,length:h}}function y(u){let c=u.split(/\n( *)/),n=c[0],o=n.match(/^( *)/),i=[o?.[1]?[o[1],n.slice(o[1].length)]:["",n]];for(let r=1;r<c.length;r+=2)i.push([c[r],c[r+1]]);return i}f.resolveBlockScalar=d}),Ze=E(f=>{"use strict";var g=D(),d=ie();function m(e,t,s){let{offset:a,type:l,source:h,end:p}=e,b,w,k=(A,T,L)=>s(a+A,T,L);switch(l){case"scalar":b=g.Scalar.PLAIN,w=y(h,k);break;case"single-quoted-scalar":b=g.Scalar.QUOTE_SINGLE,w=u(h,k);break;case"double-quoted-scalar":b=g.Scalar.QUOTE_DOUBLE,w=n(h,k);break;default:return s(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${l}`),{value:"",type:null,comment:"",range:[a,a+h.length,a+h.length]}}let v=a+h.length,S=d.resolveEnd(p,v,t,s);return{value:w,type:b,comment:S.comment,range:[a,v,S.offset]}}function y(e,t){let s="";switch(e[0]){case" ":s="a tab character";break;case",":s="flow indicator character ,";break;case"%":s="directive indicator character %";break;case"|":case">":{s=`block scalar indicator ${e[0]}`;break}case"@":case"`":{s=`reserved character ${e[0]}`;break}}return s&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${s}`),c(e)}function u(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),c(e.slice(1,-1)).replace(/''/g,"'")}function c(e){let t,s;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
88
+ `,"sy"),s=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
89
+ `,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,s=/[ \t]*(.*?)[ \t]*\r?\n/sy}let a=t.exec(e);if(!a)return e;let l=a[1],h=" ",p=t.lastIndex;for(s.lastIndex=p;a=s.exec(e);)a[1]===""?h===`
90
+ `?l+=h:h=`
91
+ `:(l+=h+a[1],h=" "),p=s.lastIndex;let b=/[ \t]*(.*)/sy;return b.lastIndex=p,a=b.exec(e),l+h+(a?.[1]??"")}function n(e,t){let s="";for(let a=1;a<e.length-1;++a){let l=e[a];if(!(l==="\r"&&e[a+1]===`
92
+ `))if(l===`
93
+ `){let{fold:h,offset:p}=o(e,a);s+=h,a=p}else if(l==="\\"){let h=e[++a],p=i[h];if(p)s+=p;else if(h===`
94
+ `)for(h=e[a+1];h===" "||h===" ";)h=e[++a+1];else if(h==="\r"&&e[a+1]===`
95
+ `)for(h=e[++a+1];h===" "||h===" ";)h=e[++a+1];else if(h==="x"||h==="u"||h==="U"){let b={x:2,u:4,U:8}[h];s+=r(e,a+1,b,t),a+=b}else{let b=e.substr(a-1,2);t(a-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${b}`),s+=b}}else if(l===" "||l===" "){let h=a,p=e[a+1];for(;p===" "||p===" ";)p=e[++a+1];p!==`
96
+ `&&!(p==="\r"&&e[a+2]===`
97
+ `)&&(s+=a>h?e.slice(h,a+1):l)}else s+=l}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),s}function o(e,t){let s="",a=e[t+1];for(;(a===" "||a===" "||a===`
98
+ `||a==="\r")&&!(a==="\r"&&e[t+2]!==`
99
+ `);)a===`
100
+ `&&(s+=`
101
+ `),t+=1,a=e[t+1];return s||(s=" "),{fold:s,offset:t}}var i={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
102
+ `,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function r(e,t,s,a){let l=e.substr(t,s),h=l.length===s&&/^[0-9a-fA-F]+$/.test(l)?parseInt(l,16):NaN;if(isNaN(h)){let p=e.substr(t-2,s+2);return a(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${p}`),p}return String.fromCodePoint(h)}f.resolveFlowScalar=m}),At=E(f=>{"use strict";var g=C(),d=D(),m=Qe(),y=Ze();function u(o,i,r,e){let{value:t,type:s,comment:a,range:l}=i.type==="block-scalar"?m.resolveBlockScalar(o,i,e):y.resolveFlowScalar(i,o.options.strict,e),h=r?o.directives.tagName(r.source,w=>e(r,"TAG_RESOLVE_FAILED",w)):null,p;o.options.stringKeys&&o.atKey?p=o.schema[g.SCALAR]:h?p=c(o.schema,t,h,r,e):i.type==="scalar"?p=n(o,t,i,e):p=o.schema[g.SCALAR];let b;try{let w=p.resolve(t,k=>e(r??i,"TAG_RESOLVE_FAILED",k),o.options);b=g.isScalar(w)?w:new d.Scalar(w)}catch(w){let k=w instanceof Error?w.message:String(w);e(r??i,"TAG_RESOLVE_FAILED",k),b=new d.Scalar(t)}return b.range=l,b.source=t,s&&(b.type=s),h&&(b.tag=h),p.format&&(b.format=p.format),a&&(b.comment=a),b}function c(o,i,r,e,t){if(r==="!")return o[g.SCALAR];let s=[];for(let l of o.tags)if(!l.collection&&l.tag===r)if(l.default&&l.test)s.push(l);else return l;for(let l of s)if(l.test?.test(i))return l;let a=o.knownTags[r];return a&&!a.collection?(o.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(t(e,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),o[g.SCALAR])}function n({atKey:o,directives:i,schema:r},e,t,s){let a=r.tags.find(l=>(l.default===!0||o&&l.default==="key")&&l.test?.test(e))||r[g.SCALAR];if(r.compat){let l=r.compat.find(h=>h.default&&h.test?.test(e))??r[g.SCALAR];if(a.tag!==l.tag){let h=i.tagString(a.tag),p=i.tagString(l.tag),b=`Value may be parsed as either ${h} or ${p}`;s(t,"TAG_RESOLVE_FAILED",b,!0)}}return a}f.composeScalar=u}),Tt=E(f=>{"use strict";function g(d,m,y){if(m){y??(y=m.length);for(let u=y-1;u>=0;--u){let c=m[u];switch(c.type){case"space":case"comment":case"newline":d-=c.source.length;continue}for(c=m[++u];c?.type==="space";)d+=c.source.length,c=m[++u];break}}return d}f.emptyScalarPosition=g}),Pt=E(f=>{"use strict";var g=oe(),d=C(),m=Mt(),y=At(),u=ie(),c=Tt(),n={composeNode:o,composeEmptyNode:i};function o(e,t,s,a){let l=e.atKey,{spaceBefore:h,comment:p,anchor:b,tag:w}=s,k,v=!0;switch(t.type){case"alias":k=r(e,t,a),(b||w)&&a(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":k=y.composeScalar(e,t,w,a),b&&(k.anchor=b.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":k=m.composeCollection(n,e,t,s,a),b&&(k.anchor=b.source.substring(1));break;default:{let S=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;a(t,"UNEXPECTED_TOKEN",S),k=i(e,t.offset,void 0,null,s,a),v=!1}}return b&&k.anchor===""&&a(b,"BAD_ALIAS","Anchor cannot be an empty string"),l&&e.options.stringKeys&&(!d.isScalar(k)||typeof k.value!="string"||k.tag&&k.tag!=="tag:yaml.org,2002:str")&&a(w??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),h&&(k.spaceBefore=!0),p&&(t.type==="scalar"&&t.source===""?k.comment=p:k.commentBefore=p),e.options.keepSourceTokens&&v&&(k.srcToken=t),k}function i(e,t,s,a,{spaceBefore:l,comment:h,anchor:p,tag:b,end:w},k){let v={type:"scalar",offset:c.emptyScalarPosition(t,s,a),indent:-1,source:""},S=y.composeScalar(e,v,b,k);return p&&(S.anchor=p.source.substring(1),S.anchor===""&&k(p,"BAD_ALIAS","Anchor cannot be an empty string")),l&&(S.spaceBefore=!0),h&&(S.comment=h,S.range[2]=w),S}function r({options:e},{offset:t,source:s,end:a},l){let h=new g.Alias(s.substring(1));h.source===""&&l(t,"BAD_ALIAS","Alias cannot be an empty string"),h.source.endsWith(":")&&l(t+s.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let p=t+s.length,b=u.resolveEnd(a,p,e.strict,l);return h.range=[t,p,b.offset],b.comment&&(h.comment=b.comment),h}f.composeEmptyNode=i,f.composeNode=o}),Et=E(f=>{"use strict";var g=fe(),d=Pt(),m=ie(),y=pe();function u(c,n,{offset:o,start:i,value:r,end:e},t){let s=Object.assign({_directives:n},c),a=new g.Document(void 0,s),l={atKey:!1,atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},h=y.resolveProps(i,{indicator:"doc-start",next:r??e?.[0],offset:o,onError:t,parentIndent:0,startOnNewline:!0});h.found&&(a.directives.docStart=!0,r&&(r.type==="block-map"||r.type==="block-seq")&&!h.hasNewline&&t(h.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),a.contents=r?d.composeNode(l,r,h,t):d.composeEmptyNode(l,h.end,i,null,h,t);let p=a.contents.range[2],b=m.resolveEnd(e,p,!1,t);return b.comment&&(a.comment=b.comment),a.range=[o,p,b.offset],a}f.composeDoc=u}),et=E(f=>{"use strict";var g=J("process"),d=Ce(),m=fe(),y=de(),u=C(),c=Et(),n=ie();function o(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:s}=e;return[t,t+(typeof s=="string"?s.length:1)]}function i(e){let t="",s=!1,a=!1;for(let l=0;l<e.length;++l){let h=e[l];switch(h[0]){case"#":t+=(t===""?"":a?`
103
+
104
+ `:`
105
+ `)+(h.substring(1)||" "),s=!0,a=!1;break;case"%":e[l+1]?.[0]!=="#"&&(l+=1),s=!1;break;default:s||(a=!0),s=!1}}return{comment:t,afterEmptyLine:a}}var r=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,s,a,l)=>{let h=o(t);l?this.warnings.push(new y.YAMLWarning(h,s,a)):this.errors.push(new y.YAMLParseError(h,s,a))},this.directives=new d.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:s,afterEmptyLine:a}=i(this.prelude);if(s){let l=e.contents;if(t)e.comment=e.comment?`${e.comment}
106
+ ${s}`:s;else if(a||e.directives.docStart||!l)e.commentBefore=s;else if(u.isCollection(l)&&!l.flow&&l.items.length>0){let h=l.items[0];u.isPair(h)&&(h=h.key);let p=h.commentBefore;h.commentBefore=p?`${s}
107
+ ${p}`:s}else{let h=l.commentBefore;l.commentBefore=h?`${s}
108
+ ${h}`:s}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:i(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,s=-1){for(let a of e)yield*this.next(a);yield*this.end(t,s)}*next(e){switch(g.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,(t,s,a)=>{let l=o(e);l[0]+=t,this.onError(l,"BAD_DIRECTIVE",s,a)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=c.composeDoc(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":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,s=new y.YAMLParseError(o(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(s):this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){let s="Unexpected doc-end without preceding document";this.errors.push(new y.YAMLParseError(o(e),"UNEXPECTED_TOKEN",s));break}this.doc.directives.docEnd=!0;let t=n.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let s=this.doc.comment;this.doc.comment=s?`${s}
109
+ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new y.YAMLParseError(o(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){let s=Object.assign({_directives:this.directives},this.options),a=new m.Document(void 0,s);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),a.range=[0,t,t],this.decorate(a,!1),yield a}}};f.Composer=r}),Lt=E(f=>{"use strict";var g=Qe(),d=Ze(),m=de(),y=ce();function u(e,t=!0,s){if(e){let a=(l,h,p)=>{let b=typeof l=="number"?l:Array.isArray(l)?l[0]:l.offset;if(s)s(b,h,p);else throw new m.YAMLParseError([b,b+1],h,p)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return d.resolveFlowScalar(e,t,a);case"block-scalar":return g.resolveBlockScalar({options:{strict:t}},e,a)}}return null}function c(e,t){let{implicitKey:s=!1,indent:a,inFlow:l=!1,offset:h=-1,type:p="PLAIN"}=t,b=y.stringifyString({type:p,value:e},{implicitKey:s,indent:a>0?" ".repeat(a):"",inFlow:l,options:{blockQuote:!0,lineWidth:-1}}),w=t.end??[{type:"newline",offset:-1,indent:a,source:`
110
+ `}];switch(b[0]){case"|":case">":{let k=b.indexOf(`
111
+ `),v=b.substring(0,k),S=b.substring(k+1)+`
112
+ `,A=[{type:"block-scalar-header",offset:h,indent:a,source:v}];return i(A,w)||A.push({type:"newline",offset:-1,indent:a,source:`
113
+ `}),{type:"block-scalar",offset:h,indent:a,props:A,source:S}}case'"':return{type:"double-quoted-scalar",offset:h,indent:a,source:b,end:w};case"'":return{type:"single-quoted-scalar",offset:h,indent:a,source:b,end:w};default:return{type:"scalar",offset:h,indent:a,source:b,end:w}}}function n(e,t,s={}){let{afterKey:a=!1,implicitKey:l=!1,inFlow:h=!1,type:p}=s,b="indent"in e?e.indent:null;if(a&&typeof b=="number"&&(b+=2),!p)switch(e.type){case"single-quoted-scalar":p="QUOTE_SINGLE";break;case"double-quoted-scalar":p="QUOTE_DOUBLE";break;case"block-scalar":{let k=e.props[0];if(k.type!=="block-scalar-header")throw new Error("Invalid block scalar header");p=k.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:p="PLAIN"}let w=y.stringifyString({type:p,value:t},{implicitKey:l||b===null,indent:b!==null&&b>0?" ".repeat(b):"",inFlow:h,options:{blockQuote:!0,lineWidth:-1}});switch(w[0]){case"|":case">":o(e,w);break;case'"':r(e,w,"double-quoted-scalar");break;case"'":r(e,w,"single-quoted-scalar");break;default:r(e,w,"scalar")}}function o(e,t){let s=t.indexOf(`
114
+ `),a=t.substring(0,s),l=t.substring(s+1)+`
115
+ `;if(e.type==="block-scalar"){let h=e.props[0];if(h.type!=="block-scalar-header")throw new Error("Invalid block scalar header");h.source=a,e.source=l}else{let{offset:h}=e,p="indent"in e?e.indent:-1,b=[{type:"block-scalar-header",offset:h,indent:p,source:a}];i(b,"end"in e?e.end:void 0)||b.push({type:"newline",offset:-1,indent:p,source:`
116
+ `});for(let w of Object.keys(e))w!=="type"&&w!=="offset"&&delete e[w];Object.assign(e,{type:"block-scalar",indent:p,props:b,source:l})}}function i(e,t){if(t)for(let s of t)switch(s.type){case"space":case"comment":e.push(s);break;case"newline":return e.push(s),!0}return!1}function r(e,t,s){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=s,e.source=t;break;case"block-scalar":{let a=e.props.slice(1),l=t.length;e.props[0].type==="block-scalar-header"&&(l-=e.props[0].source.length);for(let h of a)h.offset+=l;delete e.props,Object.assign(e,{type:s,source:t,end:a});break}case"block-map":case"block-seq":{let a={type:"newline",offset:e.offset+t.length,indent:e.indent,source:`
117
+ `};delete e.items,Object.assign(e,{type:s,source:t,end:[a]});break}default:{let a="indent"in e?e.indent:-1,l="end"in e&&Array.isArray(e.end)?e.end.filter(h=>h.type==="space"||h.type==="comment"||h.type==="newline"):[];for(let h of Object.keys(e))h!=="type"&&h!=="offset"&&delete e[h];Object.assign(e,{type:s,indent:a,source:t,end:l})}}}f.createScalarToken=c,f.resolveAsScalar=u,f.setScalarValue=n}),Nt=E(f=>{"use strict";var g=y=>"type"in y?d(y):m(y);function d(y){switch(y.type){case"block-scalar":{let u="";for(let c of y.props)u+=d(c);return u+y.source}case"block-map":case"block-seq":{let u="";for(let c of y.items)u+=m(c);return u}case"flow-collection":{let u=y.start.source;for(let c of y.items)u+=m(c);for(let c of y.end)u+=c.source;return u}case"document":{let u=m(y);if(y.end)for(let c of y.end)u+=c.source;return u}default:{let u=y.source;if("end"in y&&y.end)for(let c of y.end)u+=c.source;return u}}}function m({start:y,key:u,sep:c,value:n}){let o="";for(let i of y)o+=i.source;if(u&&(o+=d(u)),c)for(let i of c)o+=i.source;return n&&(o+=d(n)),o}f.stringify=g}),Ot=E(f=>{"use strict";var g=Symbol("break visit"),d=Symbol("skip children"),m=Symbol("remove item");function y(c,n){"type"in c&&c.type==="document"&&(c={start:c.start,value:c.value}),u(Object.freeze([]),c,n)}y.BREAK=g,y.SKIP=d,y.REMOVE=m,y.itemAtPath=(c,n)=>{let o=c;for(let[i,r]of n){let e=o?.[i];if(e&&"items"in e)o=e.items[r];else return}return o},y.parentCollection=(c,n)=>{let o=y.itemAtPath(c,n.slice(0,-1)),i=n[n.length-1][0],r=o?.[i];if(r&&"items"in r)return r;throw new Error("Parent collection not found")};function u(c,n,o){let i=o(n,c);if(typeof i=="symbol")return i;for(let r of["key","value"]){let e=n[r];if(e&&"items"in e){for(let t=0;t<e.items.length;++t){let s=u(Object.freeze(c.concat([[r,t]])),e.items[t],o);if(typeof s=="number")t=s-1;else{if(s===g)return g;s===m&&(e.items.splice(t,1),t-=1)}}typeof i=="function"&&r==="key"&&(i=i(n,c))}}return typeof i=="function"?i(n,c):i}f.visit=y}),Pe=E(f=>{"use strict";var g=Lt(),d=Nt(),m=Ot(),y="\uFEFF",u="",c="",n="",o=t=>!!t&&"items"in t,i=t=>!!t&&(t.type==="scalar"||t.type==="single-quoted-scalar"||t.type==="double-quoted-scalar"||t.type==="block-scalar");function r(t){switch(t){case y:return"<BOM>";case u:return"<DOC>";case c:return"<FLOW_END>";case n:return"<SCALAR>";default:return JSON.stringify(t)}}function e(t){switch(t){case y:return"byte-order-mark";case u:return"doc-mode";case c:return"flow-error-end";case n:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
118
+ `:case`\r
119
+ `: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(t[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}f.createScalarToken=g.createScalarToken,f.resolveAsScalar=g.resolveAsScalar,f.setScalarValue=g.setScalarValue,f.stringify=d.stringify,f.visit=m.visit,f.BOM=y,f.DOCUMENT=u,f.FLOW_END=c,f.SCALAR=n,f.isCollection=o,f.isScalar=i,f.prettyToken=r,f.tokenType=e}),tt=E(f=>{"use strict";var g=Pe();function d(i){switch(i){case void 0:case" ":case`
120
+ `:case"\r":case" ":return!0;default:return!1}}var m=new Set("0123456789ABCDEFabcdef"),y=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),u=new Set(",[]{}"),c=new Set(` ,[]{}
121
+ \r `),n=i=>!i||c.has(i),o=class{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(i,r=!1){if(i){if(typeof i!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+i:i,this.lineEndPos=null}this.atEnd=!r;let e=this.next??"stream";for(;e&&(r||this.hasChars(1));)e=yield*this.parseNext(e)}atLineEnd(){let i=this.pos,r=this.buffer[i];for(;r===" "||r===" ";)r=this.buffer[++i];return!r||r==="#"||r===`
122
+ `?!0:r==="\r"?this.buffer[i+1]===`
123
+ `:!1}charAt(i){return this.buffer[this.pos+i]}continueScalar(i){let r=this.buffer[i];if(this.indentNext>0){let e=0;for(;r===" ";)r=this.buffer[++e+i];if(r==="\r"){let t=this.buffer[e+i+1];if(t===`
124
+ `||!t&&!this.atEnd)return i+e+1}return r===`
125
+ `||e>=this.indentNext||!r&&!this.atEnd?i+e:-1}if(r==="-"||r==="."){let e=this.buffer.substr(i,3);if((e==="---"||e==="...")&&d(this.buffer[i+3]))return-1}return i}getLine(){let i=this.lineEndPos;return(typeof i!="number"||i!==-1&&i<this.pos)&&(i=this.buffer.indexOf(`
126
+ `,this.pos),this.lineEndPos=i),i===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[i-1]==="\r"&&(i-=1),this.buffer.substring(this.pos,i))}hasChars(i){return this.pos+i<=this.buffer.length}setNext(i){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=i,null}peek(i){return this.buffer.substr(this.pos,i)}*parseNext(i){switch(i){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 i=this.getLine();if(i===null)return this.setNext("stream");if(i[0]===g.BOM&&(yield*this.pushCount(1),i=i.substring(1)),i[0]==="%"){let r=i.length,e=i.indexOf("#");for(;e!==-1;){let s=i[e-1];if(s===" "||s===" "){r=e-1;break}else e=i.indexOf("#",e+1)}for(;;){let s=i[r-1];if(s===" "||s===" ")r-=1;else break}let t=(yield*this.pushCount(r))+(yield*this.pushSpaces(!0));return yield*this.pushCount(i.length-t),this.pushNewline(),"stream"}if(this.atLineEnd()){let r=yield*this.pushSpaces(!0);return yield*this.pushCount(i.length-r),yield*this.pushNewline(),"stream"}return yield g.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let i=this.charAt(0);if(!i&&!this.atEnd)return this.setNext("line-start");if(i==="-"||i==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let r=this.peek(3);if((r==="---"||r==="...")&&d(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,r==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!d(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[i,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((i==="-"||i==="?"||i===":")&&d(r)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let i=this.getLine();if(i===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(i[r]){case"#":yield*this.pushCount(i.length-r);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(n),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(i.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let i,r,e=-1;do i=yield*this.pushNewline(),i>0?(r=yield*this.pushSpaces(!1),this.indentValue=e=r):r=0,r+=yield*this.pushSpaces(!0);while(i+r>0);let t=this.getLine();if(t===null)return this.setNext("flow");if((e!==-1&&e<this.indentNext&&t[0]!=="#"||e===0&&(t.startsWith("---")||t.startsWith("..."))&&d(t[3]))&&!(e===this.indentNext-1&&this.flowLevel===1&&(t[0]==="]"||t[0]==="}")))return this.flowLevel=0,yield g.FLOW_END,yield*this.parseLineStart();let s=0;for(;t[s]===",";)s+=yield*this.pushCount(1),s+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s+=yield*this.pushIndicators(),t[s]){case void 0:return"flow";case"#":return yield*this.pushCount(t.length-s),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(n),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let a=this.charAt(1);if(this.flowKey||d(a)||a===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let i=this.charAt(0),r=this.buffer.indexOf(i,this.pos+1);if(i==="'")for(;r!==-1&&this.buffer[r+1]==="'";)r=this.buffer.indexOf("'",r+2);else for(;r!==-1;){let s=0;for(;this.buffer[r-1-s]==="\\";)s+=1;if(s%2===0)break;r=this.buffer.indexOf('"',r+1)}let e=this.buffer.substring(0,r),t=e.indexOf(`
127
+ `,this.pos);if(t!==-1){for(;t!==-1;){let s=this.continueScalar(t+1);if(s===-1)break;t=e.indexOf(`
128
+ `,s)}t!==-1&&(r=t-(e[t-1]==="\r"?2:1))}if(r===-1){if(!this.atEnd)return this.setNext("quoted-scalar");r=this.buffer.length}return yield*this.pushToIndex(r+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let i=this.pos;for(;;){let r=this.buffer[++i];if(r==="+")this.blockScalarKeep=!0;else if(r>"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>d(r)||r==="#")}*parseBlockScalar(){let i=this.pos-1,r=0,e;e:for(let s=this.pos;e=this.buffer[s];++s)switch(e){case" ":r+=1;break;case`
129
+ `:i=s,r=0;break;case"\r":{let a=this.buffer[s+1];if(!a&&!this.atEnd)return this.setNext("block-scalar");if(a===`
130
+ `)break}default:break e}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let s=this.continueScalar(i+1);if(s===-1)break;i=this.buffer.indexOf(`
131
+ `,s)}while(i!==-1);if(i===-1){if(!this.atEnd)return this.setNext("block-scalar");i=this.buffer.length}}let t=i+1;for(e=this.buffer[t];e===" ";)e=this.buffer[++t];if(e===" "){for(;e===" "||e===" "||e==="\r"||e===`
132
+ `;)e=this.buffer[++t];i=t-1}else if(!this.blockScalarKeep)do{let s=i-1,a=this.buffer[s];a==="\r"&&(a=this.buffer[--s]);let l=s;for(;a===" ";)a=this.buffer[--s];if(a===`
133
+ `&&s>=this.pos&&s+1+r>l)i=s;else break}while(!0);return yield g.SCALAR,yield*this.pushToIndex(i+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let i=this.flowLevel>0,r=this.pos-1,e=this.pos-1,t;for(;t=this.buffer[++e];)if(t===":"){let s=this.buffer[e+1];if(d(s)||i&&u.has(s))break;r=e}else if(d(t)){let s=this.buffer[e+1];if(t==="\r"&&(s===`
134
+ `?(e+=1,t=`
135
+ `,s=this.buffer[e+1]):r=e),s==="#"||i&&u.has(s))break;if(t===`
136
+ `){let a=this.continueScalar(e+1);if(a===-1)break;e=Math.max(e,a-2)}}else{if(i&&u.has(t))break;r=e}return!t&&!this.atEnd?this.setNext("plain-scalar"):(yield g.SCALAR,yield*this.pushToIndex(r+1,!0),i?"flow":"doc")}*pushCount(i){return i>0?(yield this.buffer.substr(this.pos,i),this.pos+=i,i):0}*pushToIndex(i,r){let e=this.buffer.slice(this.pos,i);return e?(yield e,this.pos+=e.length,e.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(n))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let i=this.flowLevel>0,r=this.charAt(1);if(d(r)||i&&u.has(r))return i?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let i=this.pos+2,r=this.buffer[i];for(;!d(r)&&r!==">";)r=this.buffer[++i];return yield*this.pushToIndex(r===">"?i+1:i,!1)}else{let i=this.pos+1,r=this.buffer[i];for(;r;)if(y.has(r))r=this.buffer[++i];else if(r==="%"&&m.has(this.buffer[i+1])&&m.has(this.buffer[i+2]))r=this.buffer[i+=3];else break;return yield*this.pushToIndex(i,!1)}}*pushNewline(){let i=this.buffer[this.pos];return i===`
137
+ `?yield*this.pushCount(1):i==="\r"&&this.charAt(1)===`
138
+ `?yield*this.pushCount(2):0}*pushSpaces(i){let r=this.pos-1,e;do e=this.buffer[++r];while(e===" "||i&&e===" ");let t=r-this.pos;return t>0&&(yield this.buffer.substr(this.pos,t),this.pos=r),t}*pushUntil(i){let r=this.pos,e=this.buffer[r];for(;!i(e);)e=this.buffer[++r];return yield*this.pushToIndex(r,!1)}};f.Lexer=o}),it=E(f=>{"use strict";var g=class{constructor(){this.lineStarts=[],this.addNewLine=d=>this.lineStarts.push(d),this.linePos=d=>{let m=0,y=this.lineStarts.length;for(;m<y;){let c=m+y>>1;this.lineStarts[c]<d?m=c+1:y=c}if(this.lineStarts[m]===d)return{line:m+1,col:1};if(m===0)return{line:0,col:d};let u=this.lineStarts[m-1];return{line:m,col:d-u+1}}}};f.LineCounter=g}),st=E(f=>{"use strict";var g=J("process"),d=Pe(),m=tt();function y(e,t){for(let s=0;s<e.length;++s)if(e[s].type===t)return!0;return!1}function u(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function c(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function n(e){switch(e.type){case"document":return e.start;case"block-map":{let t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function o(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function i(e){if(e.start.type==="flow-seq-start")for(let t of e.items)t.sep&&!t.value&&!y(t.start,"explicit-key-ind")&&!y(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,c(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}var r=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new m.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let s of this.lexer.lex(e,t))yield*this.next(s);t||(yield*this.end())}*next(e){if(this.source=e,g.env.LOG_TOKENS&&console.log("|",d.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=d.tokenType(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{let 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(){let e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let 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{let 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"&&i(t),s.type){case"document":s.value=t;break;case"block-scalar":s.props.push(t);break;case"block-map":{let a=s.items[s.items.length-1];if(a.value){s.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(a.sep)a.value=t;else{Object.assign(a,{key:t,sep:[]}),this.onKeyLine=!a.explicitKey;return}break}case"block-seq":{let a=s.items[s.items.length-1];a.value?s.items.push({start:[],value:t}):a.value=t;break}case"flow-collection":{let a=s.items[s.items.length-1];!a||a.value?s.items.push({start:[],key:t,sep:[]}):a.sep?a.value=t:Object.assign(a,{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")){let a=t.items[t.items.length-1];a&&!a.sep&&!a.value&&a.start.length>0&&u(a.start)===-1&&(t.indent===0||a.start.every(l=>l.type!=="comment"||l.indent<t.indent))&&(s.type==="document"?s.end=a.start:s.items.push({start:a.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":{let 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":{u(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}let 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"){let t=n(this.peek(2)),s=o(t),a;e.end?(a=e.end,a.push(this.sourceToken),delete e.end):a=[this.sourceToken];let l={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}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(`
139
+ `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
140
+ `,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let s="end"in t.value?t.value.end:void 0;(Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment"?s?.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)){let s=e.items[e.items.length-2]?.value?.end;if(Array.isArray(s)){Array.prototype.push.apply(s,t.start),s.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let s=!this.onKeyLine&&this.indent===e.indent,a=s&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind",l=[];if(a&&t.sep&&!t.value){let h=[];for(let p=0;p<t.sep.length;++p){let b=t.sep[p];switch(b.type){case"newline":h.push(p);break;case"space":break;case"comment":b.indent>e.indent&&(h.length=0);break;default:h.length=0}}h.length>=2&&(l=t.sep.splice(h[1]))}switch(this.type){case"anchor":case"tag":a||t.value?(l.push(this.sourceToken),e.items.push({start:l}),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):a||t.value?(l.push(this.sourceToken),e.items.push({start:l,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(y(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:l,key:null,sep:[this.sourceToken]}]});else if(c(t.key)&&!y(t.sep,"newline")){let h=o(t.start),p=t.key,b=t.sep;b.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:p,sep:b}]})}else l.length>0?t.sep=t.sep.concat(l,this.sourceToken):t.sep.push(this.sourceToken);else if(y(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let h=o(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||a?e.items.push({start:l,key:null,sep:[this.sourceToken]}):y(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":{let h=this.flowScalar(this.type);a||t.value?(e.items.push({start:l,key:h,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(h):(Object.assign(t,{key:h,sep:[]}),this.onKeyLine=!0);return}default:{let h=this.startBlockValue(e);if(h){if(h.type==="block-seq"){if(!t.explicitKey&&t.sep&&!y(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 s&&e.items.push({start:l});this.stack.push(h);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let s="end"in t.value?t.value.end:void 0;(Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment"?s?.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)){let s=e.items[e.items.length-2]?.value?.end;if(Array.isArray(s)){Array.prototype.push.apply(s,t.start),s.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||y(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let s=this.startBlockValue(e);if(s){this.stack.push(s);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let 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&&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":{let a=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:a,sep:[]}):t.sep?this.stack.push(a):Object.assign(t,{key:a,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let s=this.startBlockValue(e);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{let 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"){let a=n(s),l=o(a);i(e);let h=e.end.splice(1,e.end.length);h.push(this.sourceToken);let p={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:l,key:e,sep:h}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=p}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
141
+ `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
142
+ `,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;let t=n(e),s=o(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;let t=n(e),s=o(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())}}};f.Parser=r}),xt=E(f=>{"use strict";var g=et(),d=fe(),m=de(),y=Ke(),u=C(),c=it(),n=st();function o(s){let a=s.prettyErrors!==!1;return{lineCounter:s.lineCounter||a&&new c.LineCounter||null,prettyErrors:a}}function i(s,a={}){let{lineCounter:l,prettyErrors:h}=o(a),p=new n.Parser(l?.addNewLine),b=new g.Composer(a),w=Array.from(b.compose(p.parse(s)));if(h&&l)for(let k of w)k.errors.forEach(m.prettifyError(s,l)),k.warnings.forEach(m.prettifyError(s,l));return w.length>0?w:Object.assign([],{empty:!0},b.streamInfo())}function r(s,a={}){let{lineCounter:l,prettyErrors:h}=o(a),p=new n.Parser(l?.addNewLine),b=new g.Composer(a),w=null;for(let k of b.compose(p.parse(s),!0,s.length))if(!w)w=k;else if(w.options.logLevel!=="silent"){w.errors.push(new m.YAMLParseError(k.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return h&&l&&(w.errors.forEach(m.prettifyError(s,l)),w.warnings.forEach(m.prettifyError(s,l))),w}function e(s,a,l){let h;typeof a=="function"?h=a:l===void 0&&a&&typeof a=="object"&&(l=a);let p=r(s,l);if(!p)return null;if(p.warnings.forEach(b=>y.warn(p.options.logLevel,b)),p.errors.length>0){if(p.options.logLevel!=="silent")throw p.errors[0];p.errors=[]}return p.toJS(Object.assign({reviver:h},l))}function t(s,a,l){let h=null;if(typeof a=="function"||Array.isArray(a)?h=a:l===void 0&&a&&(l=a),typeof l=="string"&&(l=l.length),typeof l=="number"){let p=Math.round(l);l=p<1?void 0:p>8?{indent:8}:{indent:p}}if(s===void 0){let{keepUndefined:p}=l??a??{};if(!p)return}return u.isDocument(s)&&!h?s.toString(l):new d.Document(s,h,l).toString(l)}f.parse=e,f.parseAllDocuments=i,f.parseDocument=r,f.stringify=t}),rt=E(f=>{"use strict";var g=et(),d=fe(),m=Ve(),y=de(),u=oe(),c=C(),n=V(),o=D(),i=z(),r=Y(),e=Pe(),t=tt(),s=it(),a=st(),l=xt(),h=ne();f.Composer=g.Composer,f.Document=d.Document,f.Schema=m.Schema,f.YAMLError=y.YAMLError,f.YAMLParseError=y.YAMLParseError,f.YAMLWarning=y.YAMLWarning,f.Alias=u.Alias,f.isAlias=c.isAlias,f.isCollection=c.isCollection,f.isDocument=c.isDocument,f.isMap=c.isMap,f.isNode=c.isNode,f.isPair=c.isPair,f.isScalar=c.isScalar,f.isSeq=c.isSeq,f.Pair=n.Pair,f.Scalar=o.Scalar,f.YAMLMap=i.YAMLMap,f.YAMLSeq=r.YAMLSeq,f.CST=e,f.Lexer=t.Lexer,f.LineCounter=s.LineCounter,f.Parser=a.Parser,f.parse=l.parse,f.parseAllDocuments=l.parseAllDocuments,f.parseDocument=l.parseDocument,f.stringify=l.stringify,f.visit=h.visit,f.visitAsync=h.visitAsync}),ci=ye(rt(),1),ui=ye(rt(),1),Ct="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36",nt=112,It=1920,Kt=1080,Bt=1920,$t=1080-nt,_t=1280,Dt=720,Ft=500,Gt=500,se="Desktop Chrome",jt=(f=>(f.Chromium="chromium",f.Firefox="firefox",f.Webkit="webkit",f))(jt||{}),ot={"Blackberry PlayBook":{name:"Blackberry PlayBook",userAgent:"Mozilla/5.0 (PlayBook; U; RIM Tablet OS 2.1.0; en-US) AppleWebKit/536.2+ (KHTML like Gecko) Version/26.0 Safari/536.2+",screen:{width:600,height:1024},viewport:{width:600,height:1024},deviceScaleFactor:1,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"BlackBerry Z30":{name:"BlackBerry Z30",userAgent:"Mozilla/5.0 (BB10; Touch) AppleWebKit/537.10+ (KHTML, like Gecko) Version/26.0 Mobile Safari/537.10+",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"Galaxy Note 3":{name:"Galaxy Note 3",userAgent:"Mozilla/5.0 (Linux; U; Android 4.3; en-us; SM-N900T Build/JSS15J) AppleWebKit/534.30 (KHTML, like Gecko) Version/26.0 Mobile Safari/534.30",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"Galaxy Note II":{name:"Galaxy Note II",userAgent:"Mozilla/5.0 (Linux; U; Android 4.1; en-us; GT-N7100 Build/JRO03C) AppleWebKit/534.30 (KHTML, like Gecko) Version/26.0 Mobile Safari/534.30",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"Galaxy S III":{name:"Galaxy S III",userAgent:"Mozilla/5.0 (Linux; U; Android 4.0; en-us; GT-I9300 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/26.0 Mobile Safari/534.30",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"Galaxy S5":{name:"Galaxy S5",userAgent:"Mozilla/5.0 (Linux; Android 5.0; SM-G900P Build/LRX21T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Galaxy S8":{name:"Galaxy S8",userAgent:"Mozilla/5.0 (Linux; Android 7.0; SM-G950U Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:360,height:740},viewport:{width:360,height:740},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Galaxy S9+":{name:"Galaxy S9+",userAgent:"Mozilla/5.0 (Linux; Android 8.0.0; SM-G965U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:320,height:658},viewport:{width:320,height:658},deviceScaleFactor:4.5,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Galaxy S24":{name:"Galaxy S24",userAgent:"Mozilla/5.0 (Linux; Android 14; SM-S921U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:360,height:780},viewport:{width:360,height:780},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Galaxy A55":{name:"Galaxy A55",userAgent:"Mozilla/5.0 (Linux; Android 14; SM-A556B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:480,height:1040},viewport:{width:480,height:1040},deviceScaleFactor:2.25,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Galaxy Tab S4":{name:"Galaxy Tab S4",userAgent:"Mozilla/5.0 (Linux; Android 8.1.0; SM-T837A) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:712,height:1138},viewport:{width:712,height:1138},deviceScaleFactor:2.25,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Galaxy Tab S9":{name:"Galaxy Tab S9",userAgent:"Mozilla/5.0 (Linux; Android 14; SM-X710) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:640,height:1024},viewport:{width:640,height:1024},deviceScaleFactor:2.5,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"iPad (gen 5)":{name:"iPad (gen 5)",userAgent:"Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:768,height:1024},viewport:{width:768,height:1024},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPad (gen 6)":{name:"iPad (gen 6)",userAgent:"Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:768,height:1024},viewport:{width:768,height:1024},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPad (gen 7)":{name:"iPad (gen 7)",userAgent:"Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:810,height:1080},viewport:{width:810,height:1080},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPad (gen 11)":{name:"iPad (gen 11)",userAgent:"Mozilla/5.0 (iPad; CPU OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/19E241 Safari/604.1",screen:{width:656,height:944},viewport:{width:656,height:944},deviceScaleFactor:2.5,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPad Mini":{name:"iPad Mini",userAgent:"Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:768,height:1024},viewport:{width:768,height:1024},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPad Pro 11":{name:"iPad Pro 11",userAgent:"Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:834,height:1194},viewport:{width:834,height:1194},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 6":{name:"iPhone 6",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/26.0 Mobile/15A372 Safari/604.1",screen:{width:375,height:667},viewport:{width:375,height:667},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 6 Plus":{name:"iPhone 6 Plus",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/26.0 Mobile/15A372 Safari/604.1",screen:{width:414,height:736},viewport:{width:414,height:736},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 7":{name:"iPhone 7",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/26.0 Mobile/15A372 Safari/604.1",screen:{width:375,height:667},viewport:{width:375,height:667},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 7 Plus":{name:"iPhone 7 Plus",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/26.0 Mobile/15A372 Safari/604.1",screen:{width:414,height:736},viewport:{width:414,height:736},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 8":{name:"iPhone 8",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/26.0 Mobile/15A372 Safari/604.1",screen:{width:375,height:667},viewport:{width:375,height:667},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 8 Plus":{name:"iPhone 8 Plus",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/26.0 Mobile/15A372 Safari/604.1",screen:{width:414,height:736},viewport:{width:414,height:736},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone SE":{name:"iPhone SE",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/26.0 Mobile/14E304 Safari/602.1",screen:{width:320,height:568},viewport:{width:320,height:568},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone SE (3rd gen)":{name:"iPhone SE (3rd gen)",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/26.0 Mobile/19E241 Safari/602.1",screen:{width:375,height:667},viewport:{width:375,height:667},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone X":{name:"iPhone X",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/26.0 Mobile/15A372 Safari/604.1",screen:{width:375,height:812},viewport:{width:375,height:812},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone XR":{name:"iPhone XR",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:414,height:896},viewport:{width:414,height:896},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 11":{name:"iPhone 11",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:414,height:896},viewport:{width:414,height:715},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 11 Pro":{name:"iPhone 11 Pro",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:375,height:812},viewport:{width:375,height:635},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 11 Pro Max":{name:"iPhone 11 Pro Max",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:414,height:896},viewport:{width:414,height:715},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 12":{name:"iPhone 12",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:390,height:844},viewport:{width:390,height:664},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 12 Pro":{name:"iPhone 12 Pro",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:390,height:844},viewport:{width:390,height:664},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 12 Pro Max":{name:"iPhone 12 Pro Max",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:428,height:926},viewport:{width:428,height:746},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 12 Mini":{name:"iPhone 12 Mini",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:375,height:812},viewport:{width:375,height:629},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 13":{name:"iPhone 13",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:390,height:844},viewport:{width:390,height:664},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 13 Pro":{name:"iPhone 13 Pro",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:390,height:844},viewport:{width:390,height:664},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 13 Pro Max":{name:"iPhone 13 Pro Max",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:428,height:926},viewport:{width:428,height:746},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 13 Mini":{name:"iPhone 13 Mini",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:375,height:812},viewport:{width:375,height:629},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 14":{name:"iPhone 14",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:390,height:844},viewport:{width:390,height:664},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 14 Plus":{name:"iPhone 14 Plus",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:428,height:926},viewport:{width:428,height:746},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 14 Pro":{name:"iPhone 14 Pro",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:393,height:852},viewport:{width:393,height:660},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 14 Pro Max":{name:"iPhone 14 Pro Max",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:430,height:932},viewport:{width:430,height:740},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 15":{name:"iPhone 15",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:393,height:852},viewport:{width:393,height:659},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 15 Plus":{name:"iPhone 15 Plus",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:430,height:932},viewport:{width:430,height:739},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 15 Pro":{name:"iPhone 15 Pro",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:393,height:852},viewport:{width:393,height:659},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"iPhone 15 Pro Max":{name:"iPhone 15 Pro Max",userAgent:"Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Mobile/15E148 Safari/604.1",screen:{width:430,height:932},viewport:{width:430,height:739},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"Kindle Fire HDX":{name:"Kindle Fire HDX",userAgent:"Mozilla/5.0 (Linux; U; en-us; KFAPWI Build/JDQ39) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.13 Safari/535.19 Silk-Accelerated=true",screen:{width:800,height:1280},viewport:{width:800,height:1280},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"LG Optimus L70":{name:"LG Optimus L70",userAgent:"Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; LGMS323 Build/KOT49I.MS32310c) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:384,height:640},viewport:{width:384,height:640},deviceScaleFactor:1.25,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Microsoft Lumia 550":{name:"Microsoft Lumia 550",userAgent:"Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 550) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36 Edge/14.14263",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Microsoft Lumia 950":{name:"Microsoft Lumia 950",userAgent:"Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36 Edge/14.14263",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:4,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nexus 10":{name:"Nexus 10",userAgent:"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 10 Build/MOB31T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:800,height:1280},viewport:{width:800,height:1280},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nexus 4":{name:"Nexus 4",userAgent:"Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:384,height:640},viewport:{width:384,height:640},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nexus 5":{name:"Nexus 5",userAgent:"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nexus 5X":{name:"Nexus 5X",userAgent:"Mozilla/5.0 (Linux; Android 8.0.0; Nexus 5X Build/OPR4.170623.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:412,height:732},viewport:{width:412,height:732},deviceScaleFactor:2.625,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nexus 6":{name:"Nexus 6",userAgent:"Mozilla/5.0 (Linux; Android 7.1.1; Nexus 6 Build/N6F26U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:412,height:732},viewport:{width:412,height:732},deviceScaleFactor:3.5,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nexus 6P":{name:"Nexus 6P",userAgent:"Mozilla/5.0 (Linux; Android 8.0.0; Nexus 6P Build/OPP3.170518.006) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:412,height:732},viewport:{width:412,height:732},deviceScaleFactor:3.5,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nexus 7":{name:"Nexus 7",userAgent:"Mozilla/5.0 (Linux; Android 6.0.1; Nexus 7 Build/MOB30X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:600,height:960},viewport:{width:600,height:960},deviceScaleFactor:2,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nokia Lumia 520":{name:"Nokia Lumia 520",userAgent:"Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 520)",screen:{width:320,height:533},viewport:{width:320,height:533},deviceScaleFactor:1.5,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Nokia N9":{name:"Nokia N9",userAgent:"Mozilla/5.0 (MeeGo; NokiaN9) AppleWebKit/534.13 (KHTML, like Gecko) NokiaBrowser/8.5.0 Mobile Safari/534.13",screen:{width:480,height:854},viewport:{width:480,height:854},deviceScaleFactor:1,isMobile:!0,hasTouch:!0,defaultBrowserType:"webkit"},"Pixel 2":{name:"Pixel 2",userAgent:"Mozilla/5.0 (Linux; Android 8.0; Pixel 2 Build/OPD3.170816.012) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:411,height:731},viewport:{width:411,height:731},deviceScaleFactor:2.625,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Pixel 2 XL":{name:"Pixel 2 XL",userAgent:"Mozilla/5.0 (Linux; Android 8.0.0; Pixel 2 XL Build/OPD1.170816.004) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:411,height:823},viewport:{width:411,height:823},deviceScaleFactor:3.5,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Pixel 3":{name:"Pixel 3",userAgent:"Mozilla/5.0 (Linux; Android 9; Pixel 3 Build/PQ1A.181105.017.A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:393,height:786},viewport:{width:393,height:786},deviceScaleFactor:2.75,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Pixel 4":{name:"Pixel 4",userAgent:"Mozilla/5.0 (Linux; Android 10; Pixel 4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:353,height:745},viewport:{width:353,height:745},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Pixel 4a (5G)":{name:"Pixel 4a (5G)",userAgent:"Mozilla/5.0 (Linux; Android 11; Pixel 4a (5G)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:412,height:892},viewport:{width:412,height:765},deviceScaleFactor:2.63,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Pixel 5":{name:"Pixel 5",userAgent:"Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:393,height:851},viewport:{width:393,height:727},deviceScaleFactor:2.75,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Pixel 7":{name:"Pixel 7",userAgent:"Mozilla/5.0 (Linux; Android 14; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:412,height:915},viewport:{width:412,height:839},deviceScaleFactor:2.625,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Moto G4":{name:"Moto G4",userAgent:"Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Mobile Safari/537.36",screen:{width:360,height:640},viewport:{width:360,height:640},deviceScaleFactor:3,isMobile:!0,hasTouch:!0,defaultBrowserType:"chromium"},"Desktop Chrome HiDPI":{name:"Desktop Chrome HiDPI",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:1792,height:1120},viewport:{width:1280,height:720},deviceScaleFactor:2,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium"},"Desktop Edge HiDPI":{name:"Desktop Edge HiDPI",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36 Edg/141.0.7390.16",screen:{width:1792,height:1120},viewport:{width:1280,height:720},deviceScaleFactor:2,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium"},"Desktop Firefox HiDPI":{name:"Desktop Firefox HiDPI",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0.1) Gecko/20100101 Firefox/142.0.1",screen:{width:1792,height:1120},viewport:{width:1280,height:720},deviceScaleFactor:2,isMobile:!1,hasTouch:!1,defaultBrowserType:"firefox"},"Desktop Safari":{name:"Desktop Safari",userAgent:"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Safari/605.1.15",screen:{width:1792,height:1120},viewport:{width:1280,height:720},deviceScaleFactor:2,isMobile:!1,hasTouch:!1,defaultBrowserType:"webkit"},"Desktop Chrome":{name:"Desktop Chrome",displayName:"Playwright Chromium",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:1920,height:1080},viewport:{width:1920,height:1080},deviceScaleFactor:1,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium"},"Desktop Chrome Medium Resolution":{name:"Desktop Chrome Medium Resolution",displayName:"Playwright Chromium",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:1280,height:720},viewport:{width:1280,height:720},deviceScaleFactor:1,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium"},"Desktop Chrome (Branded)":{name:"Desktop Chrome (Branded)",displayName:"Google Chrome",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:1920,height:1080},viewport:{width:1920,height:1080},deviceScaleFactor:1,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium",channel:"chrome"},"Desktop Chrome Medium Resolution (Branded)":{name:"Desktop Chrome Medium Resolution (Branded)",displayName:"Google Chrome",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36",screen:{width:1280,height:720},viewport:{width:1280,height:720},deviceScaleFactor:1,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium",channel:"chrome"},"Desktop Edge":{name:"Desktop Edge",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36 Edg/141.0.7390.16",screen:{width:1920,height:1080},viewport:{width:1280,height:720},deviceScaleFactor:1,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium"},"Desktop Edge (Branded)":{name:"Desktop Edge (Branded)",displayName:"Microsoft Edge",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36 Edg/141.0.7390.16",screen:{width:1920,height:1080},viewport:{width:1920,height:1080},deviceScaleFactor:1,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium",channel:"msedge"},"Desktop Edge Medium Resolution (Branded)":{name:"Desktop Edge Medium Resolution (Branded)",displayName:"Microsoft Edge",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.7390.16 Safari/537.36 Edg/141.0.7390.16",screen:{width:1280,height:720},viewport:{width:1280,height:720},deviceScaleFactor:1,isMobile:!1,hasTouch:!1,defaultBrowserType:"chromium",channel:"msedge"},"Desktop Firefox":{name:"Desktop Firefox",userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0.1) Gecko/20100101 Firefox/142.0.1",screen:{width:1920,height:1080},viewport:{width:1280,height:720},deviceScaleFactor:1,isMobile:!1,hasTouch:!1,defaultBrowserType:"firefox"}},Wt={desktop:["Desktop Chrome","Desktop Chrome Medium Resolution","Desktop Chrome (Branded)","Desktop Chrome Medium Resolution (Branded)","Desktop Edge (Branded)","Desktop Edge Medium Resolution (Branded)","Desktop Safari"],mobile:["iPhone 15 Pro Max","iPhone 15 Pro","iPhone 15 Plus","iPhone 15","iPhone 14 Pro Max","iPhone 14 Pro","iPhone 14 Plus","iPhone 14","iPhone 13 Pro Max","iPhone 13 Pro","iPhone 13","iPhone 13 Mini","iPhone 12 Pro Max","iPhone 12 Pro","iPhone 12","iPhone 12 Mini","iPhone 11 Pro Max","iPhone 11 Pro","iPhone 11","iPhone XR","iPhone X","iPhone SE (3rd gen)","iPhone SE","iPhone 8 Plus","iPhone 8","iPhone 7 Plus","iPhone 7","iPhone 6 Plus","iPhone 6","Galaxy S24","Galaxy A55","Galaxy S9+","Galaxy S8","Galaxy S5","Galaxy Note 3","Galaxy Note II","Galaxy S III","Pixel 7","Pixel 5","Pixel 4a (5G)","Pixel 4","Pixel 3","Pixel 2 XL","Pixel 2","Nexus 6P","Nexus 6","Nexus 5X","Nexus 5","Nexus 4","Moto G4","LG Optimus L70","Microsoft Lumia 950","Microsoft Lumia 550","Nokia Lumia 520","Nokia N9","BlackBerry Z30"]},re=(f,g=!1)=>{let d=["chromium"];return g&&d.push("webkit"),Wt[f].map(m=>ot[m]).filter(m=>m.defaultBrowserType&&d.includes(m.defaultBrowserType))},Ee=f=>ot[f],fi={desktop:{label:"Desktop",type:"desktop",devices:re("desktop")},mobile:{label:"Mobile Web",type:"mobile",devices:re("mobile")}},di={desktop:{label:"Desktop",type:"desktop",devices:re("desktop",!0)},mobile:{label:"Mobile Web",type:"mobile",devices:re("mobile",!0)}},at=(f,g=!1)=>{let d={userAgent:Ct,viewport:{width:Bt,height:$t},isMobile:!1,hasTouch:!1};if(!f||f===se)return d;let m=Ee(f);if(!m)return d;let{width:y,height:u}=m.viewport,c=Math.max(Ft/y,1),n=Math.max(Gt/u,1),o=Math.max(c,n),i={width:Math.round(y*o),height:Math.round(u*o)};return{userAgent:m.userAgent,viewport:g?i:m.viewport,isMobile:m.isMobile,hasTouch:m.hasTouch}},pi=f=>{let g={width:It,height:Kt};if(!f||f===se)return g;let d=at(f);return d.viewport?{width:d.viewport.width,height:d.viewport.height+nt}:g},mi=f=>{let g={width:_t,height:Dt};if(!f||f===se)return g;let d=at(f);return d.viewport?{width:d.viewport.width,height:d.viewport.height}:g},gi=f=>!f||f===se?void 0:Ee(f)?.channel,yi=f=>!f||f===se?"chromium":Ee(f)?.defaultBrowserType??"chromium",qt=(f=>(f.PASSWORD="password",f.OAUTH2="oauth2",f.SSO="sso",f.API="api",f))(qt||{}),Ut=(f=>(f.SMS="sms",f.EMAIL="email",f.TOTP="totp",f))(Ut||{});function bi(f,g){if(!f||typeof f!="string")return f;let d=g instanceof Map?Object.fromEntries(g):g,m=u=>{let c=u.startsWith("$")?u.slice(1):u,n=d[c]??d[`$${c}`];return n!=null?String(n):void 0},y=f;return y=y.replace(/\{\{\s*\$?([^}]+?)\s*\}\}/g,(u,c)=>{let n=m(c.trim());return n!==void 0?n:u}),y=y.replace(/<secret>\$?([\w-]+)<\/secret>/g,(u,c)=>{let n=m(c);return n!==void 0?n:u}),y=y.replace(/\$\{([^}]+)\}/g,(u,c)=>{let n=m(c.trim());return n!==void 0?n:u}),y=y.replace(/\$([a-zA-Z_]\w*)/g,(u,c)=>{let n=m(c);return n!==void 0?n:u}),y}var wi=class lt{constructor(){ge(this,"data",{}),ge(this,"sensitive",new Set)}get(g){return this.data[g]}set(g,d,m=!1){this.data[g]=d,m?this.sensitive.add(g):this.sensitive.has(g)&&this.sensitive.delete(g)}getAll(){return{...this.data}}isSensitive(g){return this.sensitive.has(g)}getAllSensitiveKeys(){return new Set(this.sensitive)}delete(g){return this.sensitive.delete(g),delete this.data[g]}clear(){this.data={},this.sensitive.clear()}has(g){return g in this.data}get size(){return Object.keys(this.data).length}merge(g){for(let[d,m]of Object.entries(g.getAll()))this.set(d,m,g.isSensitive(d))}toJSON(){return{data:{...this.data},sensitiveKeys:Array.from(this.sensitive)}}static fromJSON(g){let d=new lt;if(g.data){let m=new Set(g.sensitiveKeys||[]);for(let[y,u]of Object.entries(g.data))d.set(y,u,m.has(y))}return d}},Rt=P.enum(["JS_CODE","AI_MODE"]),Oe=P.object({type:Rt,expression:P.string()}),Ht=P.enum(["DRAFT","STEP","ACTION","IF_ELSE","WHILE_LOOP"]),Q=P.object({uid:P.string(),type:Ht}),Vt=P.object({action_data:P.object({action_name:P.string(),kwargs:P.record(P.any()).optional(),args:P.array(P.any()).optional()}),action_description:P.string().optional(),url:P.string().optional(),xpath:P.string().nullable().optional(),locator:P.string().nullable().optional(),css_selector:P.string().nullable().optional(),unique_selector:P.string().nullable().optional(),element_index:P.number().nullable().optional(),frame_path:P.array(P.any()).optional(),artifacts:P.record(P.any()).optional(),feedback:P.string().optional(),original_browser_use_action:P.any().optional()}).passthrough(),zt=Q.extend({type:P.literal("DRAFT"),description:P.string()}),Yt=Q.extend({type:P.literal("ACTION"),description:P.string(),action_entity:Vt.optional(),locator:P.string().optional(),use_pure_vision:P.boolean().optional()}),q=P.lazy(()=>P.union([zt,Yt,Q.extend({type:P.literal("STEP"),description:P.string().optional().default(""),statements:P.array(q),reference_id:P.number().optional()}),Q.extend({type:P.literal("IF_ELSE"),description:P.string().optional(),condition:Oe,then:P.array(q),else:P.array(q).optional()}),Q.extend({type:P.literal("WHILE_LOOP"),description:P.string().optional(),condition:Oe,body:P.array(q),timeout_ms:P.number().optional()})])),Xt=P.object({name:P.string(),statements:P.array(q),teardown:P.array(q).optional(),skip:P.union([P.boolean(),P.string()]).optional(),timeout:P.number().optional(),fail:P.union([P.boolean(),P.string()]).optional(),only:P.boolean().optional(),slow:P.boolean().optional()}),Jt=P.object({tests:P.array(Xt).min(1),beforeAll:P.array(q).optional(),afterAll:P.array(q).optional(),beforeEach:P.array(q).optional(),afterEach:P.array(q).optional()}),vi=P.object({version:P.string().optional(),goal:P.string().optional(),url:P.string().optional(),baseURL:P.string().optional(),final_feedback:P.string().optional(),completed:P.boolean().optional(),success:P.boolean().optional(),statements:P.array(q).optional(),teardown:P.array(q).optional(),last_modified_at:P.string().optional(),testGroup:Jt.optional()}).refine(f=>f.testGroup!==void 0?f.goal===void 0&&(f.statements===void 0||f.statements.length===0):f.goal!==void 0,{message:"TestFlow must have either goal/statements (single test) or testGroup (suite), not both"}),ki=1024*1024,Qt=5e3,Zt=1e4;async function xe(f,g){let d=Object.getPrototypeOf(async()=>{}).constructor,m=`
143
+ return await (${g});
144
+ `;return await new d("page",m)(f)}async function be(f,g,d){let m=[],y=[];for(let u of g){let c=!1;try{let n=`page.${u}`;_.log(`Checking element existence: ${n}`),m.push(`Checking element existence: ${n}`);try{await xe(f,`${n}.waitFor({ state: 'attached', timeout: ${Qt} })`),_.log(`Element is attached: ${n}`),m.push(`Element is attached: ${n}`),c=!0}catch{await xe(f,`${n}.count()`)>0?(_.log(`Element found (snapshot): ${n}`),m.push(`Element found (snapshot): ${n}`),c=!0):(_.log(`Element not found: ${n}`),m.push(`Element not found: ${n}`),c=!1)}}catch(n){_.log(`Error checking element: ${n.message}`),m.push(`Error checking element: ${n.message}`),c=!1}if(y.push(c),!c&&d)break}return{successResults:y,logs:m}}async function ei(f,g,d=!0){let{successResults:m,logs:y}=await be(f,g,d);return{success:m.length===g.length&&m.every(u=>u),logs:y}}async function Si(f,g){if(!g||g.length===0)return _.log("No validation expressions provided, cannot validate login"),!1;_.log(`Validating login with ${g.length} expression(s)`);let{success:d,logs:m}=await ei(f,g,!0);return d?_.log("All validation expressions passed"):_.log(`Validation failed: ${m.join(", ")}`),d}async function ti(f,g){let d=f.context().browser();if(!d)throw new Error("Cannot create unsigned-in context: browser not available");let m=await d.newContext(),y=await m.newPage();return await y.goto(g),await Ne(y,Zt),{context:m,page:y,close:async()=>{await y.close(),await m.close()}}}async function ii(f,g,d,m,y,u){let c=`
145
+ Based on the current page status, generate ${y} Playwright locators in JavaScript code that can
146
+ be used by a program to verify the page is signed in.
147
+ Each expression should yield a locator object that can be used for waiting and checking visibility.
148
+ `;g&&(c+=`
149
+ For your comparison, the DOM elements of the UNSIGNED IN page are:
150
+ """
151
+ ${g}
152
+ """
153
+ `),c+=`
154
+ Output the code in a code block with \`\`\`javascript\`\`\` at the beginning and \`\`\` at the end.
155
+
156
+ Here is an example of the right format:
157
+ \`\`\`javascript
158
+ getByRole("button", { name: "Logout" }).first()
159
+ \`\`\`
160
+
161
+ User name, id, email etc are great choices as a part of locators if they present.
162
+ They tend to be strong and stable indicators of signed in status.
163
+
164
+ Don't use locators that may change with page content, such as:
165
+ - time of day
166
+ - location
167
+ - language
168
+ - timezone
169
+ - device
170
+ - browser
171
+ - operating system
172
+ - numbers
173
+ - and other dynamic values
174
+
175
+ It is a good idea to add 'first()' to the locator to make it more stable for locators
176
+ that can result in multiple results.
177
+ `,d&&(c+=`
178
+ Previously generated expressions and their results:
179
+ """
180
+ ${d}
181
+ """
182
+ Avoid regenerating these failed ones, but can reuse the successful ones.`),m&&(c+=`
183
+ ${m}
184
+ `),c+=`
185
+ Remember, you must have the javascript code block in your final response.
186
+ `,_.log("Agent generating validation locators"),_.log(`Prompt:
187
+ ${c}`);let n=await u(f,c);if(!n.success)throw new Error(n.details||"Agent failed to generate verification code");let o=(n.details||"").match(/```javascript\n(.*)\n```/s);if(!o)throw new Error("Agent failed to generate verification code: no javascript code block found");return o[1].split(`
188
+ `).map(i=>i.trim()).filter(i=>i.length>0).map(i=>(i.startsWith("page.")&&(i=i.slice(5)),i))}async function Mi(f,g,d,m,y){let u=null;try{u=await ti(f,g);let c=await y(u.page),n=3,o="";for(let i=0;i<n;i++)try{let r=await ii(f,c,o||null,d.verification_hint??null,d.num_verification_exprs??1,m);_.log(`Generated validation locators: ${JSON.stringify(r)}`);{let{successResults:e,logs:t}=await be(f,r,!1);if(o+=`Test results on a SIGNED IN page. EXPECT ALL PASS:
189
+ ${t.join(`
190
+ `)}
191
+
192
+ `,!e.every(s=>s)){_.log(`Locator validation on signed-in page failed. Results: ${JSON.stringify(e)}`),_.log(`Validation logs:
193
+ ${t.join(`
194
+ `)}`);continue}}{_.log("Validating locators in unsigned-in context, EXPECT ALL TO FAIL");let{successResults:e,logs:t}=await be(u.page,r,!1);if(o+=`Test results on an UNSIGNED IN page. EXPECT ALL FAIL:
195
+ ${t.join(`
196
+ `)}
197
+
198
+ `,e.some(s=>s)){_.log(`Locator validation on unsigned-in page failed (some passed when should fail). Results: ${JSON.stringify(e)}`),_.log(`Validation logs:
199
+ ${t.join(`
200
+ `)}`);continue}}return _.log("Generated validation locators passed dual validation"),r}catch(r){_.log(`Failed to generate validation expressions (attempt ${i+1}/${n}): ${r.message}`)}return _.log("Failed to generate valid locators after max retries"),null}finally{u&&await u.close()}}export{se as a,jt as b,Ee as c,at as d,pi as e,mi as f,gi as g,yi as h,qt as i,Ut as j,bi as k,wi as l,be as m,ei as n,Si as o,ti as p,ii as q,Mi as r};
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __createRequire } from "module";
3
+ const require = __createRequire(import.meta.url);
4
+ import{createRequire as g}from"module";var R=g(import.meta.url),f=class{constructor(){this.config=this.getDefaultConfig()}getDefaultConfig(){return{logLevel:1,debugAgent:!1,testResultsJsonPath:void 0,consoleLogsPath:void 0}}getConfig(){return{...this.config}}updateConfig(e){this.config={...this.config,...e}}resetConfig(){this.config=this.getDefaultConfig()}get(e){return this.config[e]}set(e,t){this.config[e]=t}},l=new f,s=l;function y(e){l.updateConfig(e)}function L(){return l.getConfig()}var c=class{getLevel(){return s.get("logLevel")}isStderrOnly(){return s.get("stderrOnly")===!0}debug(...e){this.getLevel()<=0&&(this.isStderrOnly()?console.error("[DEBUG]",...e):console.log("[DEBUG]",...e))}info(...e){this.getLevel()<=1&&(this.isStderrOnly()?console.error("[INFO]",...e):console.log("[INFO]",...e))}log(...e){this.info(...e)}warn(...e){this.getLevel()<=2&&console.warn("[WARN]",...e)}error(...e){this.getLevel()<=3&&console.error("[ERROR]",...e)}setLevel(e){s.set("logLevel",e)}},u=new c,N=u,n=Object.defineProperty,h=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.prototype.hasOwnProperty,d=(e,t,o)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,m=(e,t)=>()=>(e&&(t=e(e=0)),t),C=(e,t)=>{for(var o in t)n(e,o,{get:t[o],enumerable:!0})},i=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of v(t))!O.call(e,r)&&r!==o&&n(e,r,{get:()=>t[r],enumerable:!(a=h(t,r))||a.enumerable});return e},D=(e,t,o)=>(i(e,t,"default"),o&&i(o,t,"default")),E=e=>i(n({},"__esModule",{value:!0}),e),w=(e,t,o)=>d(e,typeof t!="symbol"?t+"":t,o),p=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e[e.SILENT=4]="SILENT",e))(p||{});export{y as a,L as b,N as c,m as d,C as e,D as f,E as g,w as h,p as i};