PageSourceSearch

https://flowfuse.com/_nuxt/DA40pKmN2.js

js flowfuse.com collected 2026-09-24 22:01:34 UTC 137,277 bytes, 125 lines download raw bytes

vendor: 7,941 bytes, lines 1-2
1import{B as e,wt as t,yt as n}from"./DtSZKRQB.js";import{D as r,E as i,T as a,_ as o,b as s,bt as c,ct as l,mt as u,o as d,xt as f}from"./KMxuRXml.js";import{t as p}from"./CLq1vqfN.js";import{t as m}from"./Ytd-nzq5.js";import{t as h}from"./CXPpCJCY.js";import{t as g}from"./BDNMzG2s.js";import{t as _}from"./C6potsZ22.js";import{t as v}from"./BAj-7MLB2.js";import{t as y}from"./BgiSfEwc2.js";import{n as b,t as x}from"./CqkOkv2E2.js";import{n as S,t as ee}from"./Cv9pRODJ2.js";var te=Symbol.for(`yaml.alias`),ne=Symbol.for(`yaml.document`),C=Symbol.for(`yaml.map`),re=Symbol.for(`yaml.pair`),w=Symbol.for(`yaml.scalar`),T=Symbol.for(`yaml.seq`),E=Symbol.for(`yaml.node.type`),ie=e=>!!e&&typeof e==`object`&&e[E]===te,ae=e=>!!e&&typeof e==`object`&&e[E]===ne,oe=e=>!!e&&typeof e==`object`&&e[E]===C,D=e=>!!e&&typeof e==`object`&&e[E]===re,O=e=>!!e&&typeof e==`object`&&e[E]===w,se=e=>!!e&&typeof e==`object`&&e[E]===T;function k(e){if(e&&typeof e==`object`)switch(e[E]){case C:case T:return!0}return!1}function A(e){if(e&&typeof e==`object`)switch(e[E]){case te:case C:case w:case T:return!0}return!1}var ce=e=>(O(e)||k(e))&&!!e.anchor,j=Symbol(`break visit`),le=Symbol(`skip children`),ue=Symbol(`remove node`);function M(e,t){let n=de(t);ae(e)?N(null,e.contents,n,Object.freeze([e]))===ue&&(e.contents=null):N(null,e,n,Object.freeze([]))}M.BREAK=j,M.SKIP=le,M.REMOVE=ue;function N(e,t,n,r){let i=fe(e,t,n,r);if(A(i)||D(i))return pe(e,r,i),N(e,i,n,r);if(typeof i!=`symbol`){if(k(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=N(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else if(i===j)return j;else i===ue&&(t.items.splice(e,1),--e)}}else if(D(t)){r=Object.freeze(r.concat(t));let e=N(`key`,t.key,n,r);if(e===j)return j;e===ue&&(t.key=null);let i=N(`value`,t.value,n,r);if(i===j)return j;i===ue&&(t.value=null)}}return i}function de(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function fe(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(oe(t))return n.Map?.(e,t,r);if(se(t))return n.Seq?.(e,t,r);if(D(t))return n.Pair?.(e,t,r);if(O(t))return n.Scalar?.(e,t,r);if(ie(t))return n.Alias?.(e,t,r)}function pe(e,t,n){let r=t[t.length-1];if(k(r))r.items[e]=n;else if(D(r))e===`key`?r.key=n:r.value=n;else if(ae(r))r.contents=n;else{let e=ie(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var me={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},he=e=>e.replace(/[!,[\]{}]/g,e=>me[e]),P=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags)}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+he(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&A(e.contents)){let t={};M(e.contents,(e,n)=>{A(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)(i!==`!!`||a!==`tag:yaml.org,2002:`)&&(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
2`)}};P.defaultYaml={explicit:!1,version:`1.2`},P.defaultTags={"!!":`tag:yaml.org,2002:`};function ge(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function _e(e){let t=new Set;return M(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function ve(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function ye(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=_e(e);let a=ve(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(O(t.node)||k(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function F(e,t,n,r){if(r&&typeof r==`object`){if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=F(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=F(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=F(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=F(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function I(e,t,n){if(Array.isArray(e))return e.map((e,t)=>I(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!ce(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var be=class{constructor(e){Object.defineProperty(this,E,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!ae(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=I(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?F(i,{"":o},``,o):o}},xe=class extends be{constructor(e){super(te),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],M(e,{Node:(e,t)=>{(ie(t)||ce(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(I(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=Se(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exh
2austion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(ge(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function Se(e,t,n){if(ie(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(k(t)){let r=0;for(let i of t.items){let t=Se(e,i,n);t>r&&(r=t)}return r}if(D(t)){let r=Se(e,t.key,n),i=Se(e,t.value,n);return Math.max(r,i)}return 1}var Ce=e=>!e||typeof e!=`function`&&typeof e!=`object`,L=class extends be{constructor(e){super(w),this.value=e}toJSON(e,t){return t?.keep?this.value:I(this.value,e,t)}toString(){return String(this.value)}};L.BLOCK_FOLDED=`BLOCK_FOLDED`,L.BLOCK_LITERAL=`BLOCK_LITERAL`,L.PLAIN=`PLAIN`,L.QUOTE_DOUBLE=`QUOTE_DOUBLE`,L.QUOTE_SINGLE=`QUOTE_SINGLE`;var we=`tag:yaml.org,2002:`;function Te(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function Ee(e,t,n){if(ae(e)&&(e=e.contents),A(e))return e;
vendor: 34,058 bytes, lines 2-41
2if(D(e)){let t=n.schema[C].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??(c.anchor=i(e)),new xe(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=we+t.slice(2));let l=Te(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new L(e);return c&&(c.node=t),t}l=e instanceof Map?o[C]:Symbol.iterator in Object(e)?o[T]:o[C]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new L(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function De(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return Ee(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var Oe=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,ke=class extends be{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>A(t)||D(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Oe(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(k(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,De(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(k(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&O(i)?i.value:i:k(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!D(t))return!1;let n=t.value;return n==null||e&&O(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return k(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(k(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,De(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},Ae=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function R(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var z=(e,t,n)=>e.endsWith(`
3`)?R(n,t):n.includes(`
4`)?`
5`+R(n,t):(e.endsWith(` `)?``:` `)+n,je=`flow`,Me=`block`,Ne=`quoted`;function Pe(e,t,n=`flow`,{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:s}={}){if(!i||i<0)return e;i<a&&(a=0);let c=Math.max(1+a,1+i-t.length);if(e.length<=c)return e;let l=[],u={},d=i-t.length;typeof r==`number`&&(r>i-Math.max(2,a)?l.push(0):d=i-r);let f,p,m=!1,h=-1,g=-1,_=-1;n===`block`&&(h=Fe(e,h,t.length),h!==-1&&(d=h+c));for(let r;r=e[h+=1];){if(n===`quoted`&&r===`\\`){switch(g=h,e[h+1]){case`x`:h+=3;break;case`u`:h+=5;break;case`U`:h+=9;break;default:h+=1}_=h}if(r===`
6`)n===`block`&&(h=Fe(e,h,t.length)),d=h+t.length+c,f=void 0;else{if(r===` `&&p&&p!==` `&&p!==`
7`&&p!==`	`){let t=e[h+1];t&&t!==` `&&t!==`
8`&&t!==`	`&&(f=h)}if(h>=d){if(f)l.push(f),d=f+c,f=void 0;else if(n===`quoted`){for(;p===` `||p===`	`;)p=r,r=e[h+=1],m=!0;let t=h>_+1?h-2:g-1;if(u[t])return e;l.push(t),u[t]=!0,d=t+c,f=void 0}else m=!0}}p=r}if(m&&s&&s(),l.length===0)return e;o&&o();let v=e.slice(0,l[0]);for(let r=0;r<l.length;++r){let i=l[r],a=l[r+1]||e.length;i===0?v=`\n${t}${e.slice(0,a)}`:(n===`quoted`&&u[i]&&(v+=`${e[i]}\\`),v+=`\n${t}${e.slice(i+1,a)}`)}return v}function Fe(e,t,n){let r=t,i=t+1,a=e[i];for(;a===` `||a===`	`;)if(t<i+n)a=e[++t];else{do a=e[++t];while(a&&a!==`
9`);r=t,i=t+1,a=e[i]}return r}var Ie=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),Le=e=>/^(%|---|\.\.\.)/m.test(e);function Re(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t<i;++t)if(e[t]===`
10`){if(t-n>r)return!0;if(n=t+1,i-n<=r)return!1}return!0}function ze(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,a=t.indent||(Le(e)?`  `:``),o=``,s=0;for(let e=0,t=n[e];t;t=n[++e])if(t===` `&&n[e+1]===`\\`&&n[e+2]===`n`&&(o+=n.slice(s,e)+`\\ `,e+=1,s=e,t=`\\`),t===`\\`)switch(n[e+1]){case`u`:{o+=n.slice(s,e);let t=n.substr(e+2,4);switch(t){case`0000`:o+=`\\0`;break;case`0007`:o+=`\\a`;break;case`000b`:o+=`\\v`;break;case`001b`:o+=`\\e`;break;case`0085`:o+=`\\N`;break;case`00a0`:o+=`\\_`;break;case`2028`:o+=`\\L`;break;case`2029`:o+=`\\P`;break;default:t.substr(0,2)===`00`?o+=`\\x`+t.substr(2):o+=n.substr(e,6)}e+=5,s=e+1}break;case`n`:if(r||n[e+2]===`"`||n.length<i)e+=1;else{for(o+=n.slice(s,e)+`
11
12`;n[e+2]===`\\`&&n[e+3]===`n`&&n[e+4]!==`"`;)o+=`
13`,e+=2;o+=a,n[e+2]===` `&&(o+=`\\`),e+=1,s=e+1}break;default:e+=1}return o=s?o+n.slice(s):n,r?o:Pe(o,a,Ne,Ie(t,!1))}function Be(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
14`)||/[ \t]\n|\n[ \t]/.test(e))return ze(e,t);let n=t.indent||(Le(e)?`  `:``),r=`'`+e.replace(/'/g,`''`).replace(/\n+/g,`$&\n${n}`)+`'`;return t.implicitKey?r:Pe(r,n,je,Ie(t,!1))}function B(e,t){let{singleQuote:n}=t.options,r;if(n===!1)r=ze;else{let t=e.includes(`"`),i=e.includes(`'`);r=t&&!i?Be:i&&!t?ze:n?Be:ze}return r(e,t)}var Ve;try{Ve=RegExp(`(^|(?<!
15))
16+(?!
17|$)`,`g`)}catch{Ve=/\n+(?!\n|$)/g}function He({comment:e,type:t,value:n},r,i,a){let{blockQuote:o,commentString:s,lineWidth:c}=r.options;if(!o||/\n[\t ]+$/.test(n))return B(n,r);let l=r.indent||(r.forceBlockIndent||Le(n)?`  `:``),u=o===`literal`?!0:o===`folded`||t===L.BLOCK_FOLDED?!1:t===L.BLOCK_LITERAL||!Re(n,c,l.length);if(!n)return u?`|
18`:`>
19`;let d,f;for(f=n.length;f>0;--f){let e=n[f-1];if(e!==`
20`&&e!==`	`&&e!==` `)break}let p=n.substring(f),m=p.indexOf(`
21`);m===-1?d=`-`:n===p||m!==p.length-1?(d=`+`,a&&a()):d=``,p&&=(n=n.slice(0,-p.length),p[p.length-1]===`
22`&&(p=p.slice(0,-1)),p.replace(Ve,`$&${l}`));let h=!1,g,_=-1;for(g=0;g<n.length;++g){let e=n[g];if(e===` `)h=!0;else if(e===`
23`)_=g;else break}let v=n.substring(0,_<g?_+1:g);v&&=(n=n.substring(v.length),v.replace(/\n+/g,`$&${l}`));let y=(h?l?`2`:`1`:``)+d;if(e&&(y+=` `+s(e.replace(/ ?[\r\n]+/g,` `)),i&&i()),!u){let e=n.replace(/\n+/g,`
24$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\n+/g,`$&${l}`),i=!1,a=Ie(r,!0);o!==`folded`&&t!==L.BLOCK_FOLDED&&(a.onOverflow=()=>{i=!0});let s=Pe(`${v}${e}${p}`,l,Me,a);if(!i)return`>${y}\n${l}${s}`}return n=n.replace(/\n+/g,`$&${l}`),`|${y}\n${l}${v}${n}${p}`}function Ue(e,t,n,r){let{type:i,value:a}=e,{actualString:o,implicitKey:s,indent:c,indentStep:l,inFlow:u}=t;if(s&&a.includes(`
25`)||u&&/[[\]{},]/.test(a))return B(a,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(a))return s||u||!a.includes(`
26`)?B(a,t):He(e,t,n,r);if(!s&&!u&&i!==L.PLAIN&&a.includes(`
27`))return He(e,t,n,r);if(Le(a)){if(c===``)return t.forceBlockIndent=!0,He(e,t,n,r);if(s&&c===l)return B(a,t)}let d=a.replace(/\n+/g,`$&\n${c}`);if(o){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(d),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return B(a,t)}return s?d:Pe(d,c,je,Ie(t,!1))}function We(e,t,n,r){let{implicitKey:i,inFlow:a}=t,o=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:s}=e;s!==L.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(s=L.QUOTE_DOUBLE);let c=e=>{switch(e){case L.BLOCK_FOLDED:case L.BLOCK_LITERAL:return i||a?B(o.value,t):He(o,t,n,r);case L.QUOTE_DOUBLE:return ze(o.value,t);case L.QUOTE_SINGLE:return Be(o.value,t);case L.PLAIN:return Ue(o,t,n,r);default:return null}},l=c(s);if(l===null){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(l=c(r),l===null)throw Error(`Unsupported default string type ${r}`)}return l}function Ge(e,t){let n=Object.assign({blockQuote:!0,commentString:Ae,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),r;switch(n.collectionStyle){case`block`:r=!1;break;case`flow`:r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):`  `,inFlow:r,options:n}}function Ke(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let n,r;if(O(t)){r=t.value;let i=e.filter(e=>e.identify?.(r));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}n=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else r=t,n=e.find(e=>e.nodeClass&&r instanceof e.nodeClass);if(!n){let e=r?.constructor?.name??(r===null?`null`:typeof r);throw Error(`Tag not resolved for ${e} value`)}return n}function qe(e,t,{anchors:n,doc:r}){if(!r.directives)return``;let i=[],a=(O(e)||k(e))&&e.anchor;a&&ge(a)&&(n.add(a),i.push(`&${a}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(r.directives.tagString(o)),i.join(` `)}function V(e,t,n,r){if(D(e))return e.toString(t,n,r);if(ie(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i,a=A(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??=Ke(t.doc.schema.tags,a);let o=qe(a,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let s=typeof i.stringify==`function`?i.stringify(a,t,n,r):O(a)?We(a,t,n,r):a.toString(t,n,r);return o?O(a)||s[0]===`{`||s[0]===`[`?`${o} ${s}`:`${o}\n${t.indent}${s}`:s}function Je({key:e,value:t},n,r,i){let{allNullValues:a,doc:o,indent:s,indentStep:c,options:{commentString:l,indentSeq:u,simpleKeys:d}}=n,f=A(e)&&e.comment||null;if(d){if(f)throw Error(`With simple keys, key nodes cannot have comments`);if(k(e)||!A(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let p=!d&&(!e||f&&t==null&&!n.inFlow||k(e)||(O(e)?e.type===L.BLOCK_FOLDED||e.type===L.BLOCK_LITERAL:typeof e==`object`));n=Object.assign({},n,{allNullValues:!1,implicitKey:!p&&(d||!a),indent:s+c});let m=!1,h=!1,g=V(e,n,()=>m=!0,()=>h=!0);if(!p&&!n.inFlow&&g.length>1024){if(d)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);p=!0}if(n.inFlow){if(a||t==null)return m&&r&&r(),g===``?`?`:p?`? ${g}`:g}else if(a&&!d||t==null&&p)return g=`? ${g}`,f&&!m?g+=z(g,n.indent,l(f)):h&&i&&i(),g;m&&(f=null),p?(f&&(g+=z(g,n.indent,l(f))),g=`? ${g}\n${s}:`):(g=`${g}:`,f&&(g+=z(g,n.indent,l(f))));let _,v,y;A(t)?(_=!!t.spaceBefore,v=t.commentBefore,y=t.comment):(_=!1,v=null,y=null,t&&typeof t==`object`&&(t=o.createNode(t))),n.implicitKey=!1,!p&&!f&&O(t)&&(n.indentAtStart=g.length+1),h=!1,!u&&c.length>=2&&!n.inFlow&&!p&&se(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let b=!1,x=V(t,n,()=>b=!0,()=>h=!0),S=` `;if(f||_||v){if(S=_?`
28`:``,v){let e=l(v);S+=`\n${R(e,n.indent)}`}x===``&&!n.inFlow?S===`
29`&&y&&(S=`
30
31`):S+=`\n${n.indent}`}else if(!p&&k(t)){let e=x[0],r=x.indexOf(`
32`),i=r!==-1,a=n.inFlow??t.flow??t.items.length===0;if(i||!a){let t=!1;if(i&&(e===`&`||e===`!`)){let n=x.indexOf(` `);e===`&`&&n!==-1&&n<r&&x[n+1]===`!`&&(n=x.indexOf(` `,n+1)),(n===-1||r<n)&&(t=!0)}t||(S=`\n${n.indent}`)}}else(x===``||x[0]===`
33`)&&(S=``);return g+=S+x,n.inFlow?b&&r&&r():y&&!b?g+=z(g,n.indent,l(y)):h&&i&&i(),g}function Ye(e,t){(e===`debug`||e===`warn`)&&console.warn(t)}var Xe=`<<`,H={identify:e=>e===Xe||typeof e==`symbol`&&e.description===Xe,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new L(Symbol(Xe)),{addToJSMap:Qe}),stringify:()=>Xe},Ze=(e,t)=>(H.identify(t)||O(t)&&(!t.type||t.type===L.PLAIN)&&H.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===H.tag&&e.default);function Qe(e,t,n){let r=et(e,n);if(se(r))for(let n of r.items)$e(e,t,n);else if(Array.isArray(r))for(let n of r)$e(e,t,n);else $e(e,t,r)}function $e(e,t,n){let r=et(e,n);if(!oe(r))throw Error(`Merge sources must be maps or map aliases`);let i=r.toJSON(null,e,Map);for(let[e,n]of i)t instanceof Map?t.has(e)||t.set(e,n):t instanceof Set?t.add(e):Object.prototype.hasOwnProperty.call(t,e)||Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0});return t}function et(e,t){return e&&ie(t)?t.resolve(e.doc,e):t}function tt(e,t,{key:n,value:r}){if(A(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(Ze(e,n))Qe(e,t,r);else{let i=I(n,``,e);if(t instanceof Map)t.set(i,I(r,i,e));else if(t instanceof Set)t.add(i);else{let a=nt(n,i,e),o=I(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}function nt(e,t,n){if(t===null)return``;if(typeof t!=`object`)return String(t);if(A(e)&&n?.doc){let t=Ge(n.doc,{});t.anchors=new Set;for(let e of n.anchors.keys())t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+`..."`),Ye(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}function rt(e,t,n){return new U(Ee(e,void 0,n),Ee(t,void 0,n))}var U=class e{constructor(e,t=null){Object.defineProperty(this,E,{value:re}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return A(n)&&(n=n.clone(t)),A(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){return tt(t,t?.mapAsMap?new Map:{},this)}toString(e,t,n){return e?.doc?Je(this,e,t,n):JSON.stringify(this)}};function it(e,t,n){return(t.inFlow??e.flow?ot:at)(e,t,n)}function at({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:s}){let{indent:c,options:{commentString:l}}=n,u=Object.assign({},n,{indent:a,type:null}),d=!1,f=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(A(i))!d&&i.spaceBefore&&f.push(``),st(n,f,i.commentBefore,d),i.comment&&(o=i.comment);else if(D(i)){let e=A(i.key)?i.key:null;e&&(!d&&e.spaceBefore&&f.push(``),st(n,f,e.commentBefore,d))}d=!1;let s=V(i,u,()=>o=null,()=>d=!0);o&&(s+=z(s,a,l(o))),d&&o&&(d=!1),f.push(r+s)}let p;if(f.length===0)p=i.start+i.end;else{p=f[0];for(let e=1;e<f.length;++e){let t=f[e];p+=t?`\n${c}${t}`:`
34`}}return e?(p+=`
35`+R(l(e),c),s&&s()):d&&o&&o(),p}function ot({items:e},t,{flowChars:n,itemIndent:r}){let{indent:i,indentStep:a,flowCollectionPadding:o,options:{commentString:s}}=t;r+=a;let c=Object.assign({},t,{indent:r,inFlow:!0,type:null}),l=!1,u=0,d=[];for(let n=0;n<e.length;++n){let i=e[n],a=null;if(A(i))i.spaceBefore&&d.push(``),st(t,d,i.commentBefore,!1),i.comment&&(a=i.comment);else if(D(i)){let e=A(i.key)?i.key:null;e&&(e.spaceBefore&&d.push(``),st(t,d,e.commentBefore,!1),e.comment&&(l=!0));let n=A(i.value)?i.value:null;n?(n.comment&&(a=n.comment),n.commentBefore&&(l=!0)):i.value==null&&e?.comment&&(a=e.comment)}a&&(l=!0);let o=V(i,c,()=>a=null);l||=d.length>u||o.includes(`
36`),n<e.length-1?o+=`,`:t.options.trailingComma&&(t.options.lineWidth>0&&(l||=d.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth),l&&(o+=`,`)),a&&(o+=z(o,r,s(a))),d.push(o),u=d.length}let{start:f,end:p}=n;if(d.length===0)return f+p;if(!l){let e=d.reduce((e,t)=>e+t.length+2,2);l=t.options.lineWidth>0&&e>t.options.lineWidth}if(l){let e=f;for(let t of d)e+=t?`\n${a}${i}${t}`:`
37`;return`${e}\n${i}${p}`}return`${f}${o}${d.join(` `)}${o}${p}`}function st({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,``)),r){let i=R(t(r),e);n.push(i.trimStart())}}function W(e,t){let n=O(t)?t.value:t;for(let r of e)if(D(r)&&(r.key===t||r.key===n||O(r.key)&&r.key.value===n))return r}var G=class extends ke{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(C,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,a=new this(e),o=(e,o)=>{if(typeof i==`function`)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(o!==void 0||r)&&a.items.push(rt(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))o(e,t[e]);return typeof e.sortMapEntries==`function`&&a.items.sort(e.sortMapEntries),a}add(e,t){let n;n=D(e)?e:!e||typeof e!=`object`||!(`key`in e)?new U(e,e?.value):new U(e.key,e.value);let r=W(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);O(r.value)&&Ce(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>i(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=W(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=W(this.items,e)?.value;return(!t&&O(n)?n.value:n)??void 0}has(e){return!!W(this.items,e)}set(e,t){this.add(new U(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(r);for(let e of this.items)tt(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!D(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),it(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:n,onComment:t})}},K={collection:`map`,default:!0,nodeClass:G,tag:`tag:yaml.org,2002:map`,resolve(e,t){return oe(e)||t(`Expected a mapping for this tag`),e},createNode:(e,t,n)=>G.from(e,t,n)},q=class extends ke{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(T,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=ct(e);return typeof t==`number`&&this.items.splice(t,1).length>0}get(e,t){let n=ct(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&O(r)?r.value:r}has(e){let t=ct(e);return typeof t==`number`&&t<this.items.length}set(e,t){let n=ct(e);if(typeof n!=`number`)throw Error(`Expected a valid index, not ${e}.`);let r=this.items[n];O(r)&&Ce(t)?r.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let r=0;for(let e of this.items)n.push(I(e,String(r++),t));return n}toString(e,t,n){return e?it(this,e,{blockItemPrefix:`- `,flowChars:{start:`[`,end:`]`},itemIndent:(e.indent||``)+`  `,onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let a of t){if(typeof r==`function`){let n=t instanceof Set?a:String(e++);a=r.call(t,n,a)}i.items.push(Ee(a,void 0,n))}}return i}};function ct(e){let t=O(e)?e.value:e;return t&&typeof t==`string`&&(t=Number(t)),typeof t==`number`&&Number.isInteger(t)&&t>=0?t:null}var J={collection:`seq`,default:!0,nodeClass:q,tag:`tag:yaml.org,2002:seq`,resolve(e,t){return se(e)||t(`Expected a sequence for this tag`),e},createNode:(e,t,n)=>q.from(e,t,n)},lt={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),We(e,t,n,r)}},ut={identify:e=>e==null,createNode:()=>new L(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new L(null),stringify:({source:e},t)=>typeof e==`string`&&ut.test.test(e)?e:t.options.nullStr},dt={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new L(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},n){return e&&dt.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?n.options.trueStr:n.options.falseStr}};function Y({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-->0;)a+=`0`}return a}var ft={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:Y},pt={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Y(e)}},mt={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new L(parseFloat(e)),n=e.indexOf(`.`);return n!==-1&&e[e.length-1]===`0`&&(t.minFractionDigits=e.length-n-1),t},stringify:Y},ht=e=>typeof e==`bigint`||Number.isInteger(e),gt=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function _t(e,t,n){let{value:r}=e;return ht(r)&&r>=0?n+r.toString(t):Y(e)}var vt={identify:e=>ht(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>gt(e,2,8,n),stringify:e=>_t(e,8,`0o`)},yt={identify:ht,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>gt(e,0,10,n),stringify:Y},bt={identify:e=>ht(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>gt(e,2,16,n),stringify:e=>_t(e,16,`0x`)},xt=[K,J,lt,ut,dt,vt,yt,bt,ft,pt,mt];function St(e){return typeof e==`bigint`||Number.isInteger(e)}var Ct=({value:e})=>JSON.stringify(e),wt=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:Ct},{identify:e=>e==null,createNode:()=>new L(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:Ct},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:Ct},{identify:St,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>St(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:Ct}],Tt=[K,J].concat(wt,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}}),Et={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,t){if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}return t(`This environment does not support reading binary tags; either Buffer or atob is required`),e},stringify({comment:e,type:t,value:n},r,i,a){if(!n)return``;let o=n,s;if(typeof btoa==`function`){let e=``;for(let t=0;t<o.length;++t)e+=String.fromCharCode(o[t]);s=btoa(e)}else throw Error(`This environment does not support writing binary tags; either Buffer or btoa is required`);if(t??=L.BLOCK_LITERAL,t!==L.QUOTE_DOUBLE){let e=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),n=Math.ceil(s.length/e),i=Array(n);for(let t=0,r=0;t<n;++t,r+=e)i[t]=s.substr(r,e);s=i.join(t===L.BLOCK_LITERAL?`
38`:` `)}return We({comment:e,type:t,value:s},r,i,a)}};function Dt(e,t){if(se(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!D(r)){if(oe(r)){r.items.length>1&&t(`Each pair must have its own sequence indicator`);let e=r.items[0]||new U(new L(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore}\n${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment}\n${t.comment}`:r.comment}r=e}e.items[n]=D(r)?r:new U(r)}}else t(`Expected a sequence for this tag`);return e}function Ot(e,t,n){let{replacer:r}=n,i=new q(e);i.tag=`tag:yaml.org,2002:pairs`;let a=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof r==`function`&&(e=r.call(t,String(a++),e));let o,s;if(Array.isArray(e)){if(e.length===2)o=e[0],s=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)o=t[0],s=e[o];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(rt(o,s,n))}return i}var kt={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:Dt,createNode:Ot},At=class e extends q{constructor(){super(),this.add=G.prototype.add.bind(this),this.delete=G.prototype.delete.bind(this),this.get=G.prototype.get.bind(this),this.has=G.prototype.has.bind(this),this.set=G.prototype.set.bind(this),this.tag=e.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let e of this.items){let r,i;if(D(e)?(r=I(e.key,``,t),i=I(e.value,r,t)):r=I(e,``,t),n.has(r))throw Error(`Ordered maps must not include duplicate keys`);n.set(r,i)}return n}static from(e,t,n){let r=Ot(e,t,n),i=new this;return i.items=r.items,i}};At.tag=`tag:yaml.org,2002:omap`;var jt={collection:`seq`,identify:e=>e instanceof Map,nodeClass:At,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,t){let n=Dt(e,t),r=[];for(let{key:e}of n.items)O(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new At,n)},createNode:(e,t,n)=>At.from(e,t,n)};function Mt({value:e,source:t},n){return t&&(e?Nt:Pt).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}var Nt={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new L(!0),stringify:Mt},Pt={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new L(!1),stringify:Mt},Ft={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:Y},It={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():Y(e)}},Lt={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new L(parseFloat(e.replace(/_/g,``))),n=e.indexOf(`.`);if(n!==-1){let r=e.substring(n+1).replace(/_/g,``);r[r.length-1]===`0`&&(t.minFractionDigits=r.length)}return t},stringify:Y},Rt=e=>typeof e==`bigint`||Number.isInteger(e);function zt(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function Bt(e,t,n){let{value:r}=e;if(Rt(r)){let e=r.toString(t);return r<0?`-`+n+e.substr(1):n+e}return Y(e)}var Vt={identify:Rt,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>zt(e,2,2,n),stringify:e=>Bt(e,2,`0b`)},Ht={identify:Rt,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>zt(e,1,8,n),stringify:e=>Bt(e,8,`0`)},Ut={identify:Rt,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>zt(e,0,10,n),stringify:Y},Wt={identify:Rt,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>zt(e,2,16,n),stringify:e=>Bt(e,16,`0x`)},Gt=class e extends G{constructor(t){super(t),this.tag=e.tag}add(e){let t;t=D(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new U(e.key,null):new U(e,null),W(this.items,t.key)||this.items.push(t)}get(e,t){let n=W(this.items,e);return!t&&D(n)?O(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=W(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new U(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof r==`function`&&(e=r.call(t,e,e)),i.items.push(rt(e,null,n));return i}};Gt.tag=`tag:yaml.org,2002:set`;var Kt={collection:`map`,identify:e=>e instanceof Set,nodeClass:Gt,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>Gt.from(e,t,n),resolve(e,t){if(oe(e)){if(e.hasAllNullValues(!0))return Object.assign(new Gt,e);t(`Set items must all have null values`)}else t(`Expected a mapping for this tag`);return e}};function qt(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function Jt(e){let{value:t}=e,n=e=>e;if(typeof t==`bigint`)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return Y(e);let r=``;t<0&&(r=`-`,t*=n(-1));let i=n(60),a=[t%i];return t<60?a.unshift(0):(t=(t-a[0])/i,a.unshift(t%i),t>=60&&(t=(t-a[0])/i,a.unshift(t))),r+a.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}var Yt={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>qt(e,n),stringify:Jt},Xt={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>qt(e,!1),stringify:Jt},Zt={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(Zt.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,n,r,i,a,o,s]=t.map(Number),c=t[7]?Number((t[7]+`00`).substr(1,3)):0,l=Date.UTC(n,r-1,i,a||0,o||0,s||0,c),u=t[8];if(u&&u!==`Z`){let e=qt(u,!1);Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``},Qt=[K,J,lt,ut,Nt,Pt,Vt,Ht,Ut,Wt,Ft,It,Lt,Et,H,jt,kt,Kt,Yt,Xt,Zt],$t=new Map([[`core`,xt],[`failsafe`,[K,J,lt]],[`json`,Tt],[`yaml11`,Qt],[`yaml-1.1`,Qt]]),en={binary:Et,bool:dt,float:mt,floatExp:pt,floatNaN:ft,floatTime:Xt,int:yt,intHex:bt,intOct:vt,intTime:Yt,map:K,merge:H,null:ut,omap:jt,pairs:kt,seq:J,set:Kt,timestamp:Zt},tn={"tag:yaml.org,2002:binary":Et,"tag:yaml.org,2002:merge":H,"tag:yaml.org,2002:omap":jt,"tag:yaml.org,2002:pairs":kt,"tag:yaml.org,2002:set":Kt,"tag:yaml.org,2002:timestamp":Zt};function nn(e,t,n){let r=$t.get(t);if(r&&!e)return n&&!r.includes(H)?r.concat(H):r.slice();let i=r;if(!i){if(Array.isArray(e))i=[];else{let e=Array.from($t.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(H)),i.reduce((e,t)=>{let n=typeof t==`string`?en[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(en).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}var rn=(e,t)=>e.key<t.key?-1:+(e.key>t.key),an=class e{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(e)?nn(e,`compat`):e?nn(null,e):null,this.name=typeof i==`string`&&i||`core`,this.knownTags=r?tn:{},this.tags=nn(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,C,{value:K}),Object.defineProperty(this,w,{value:lt}),Object.defineProperty(this,T,{value:J}),this.sortMapEntries=typeof a==`function`?a:a===!0?rn:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}};function on(e,t){let n=[],r=t.directives===!0;if(t.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push(`---`);let i=Ge(e,t),{commentString:a}=i.options;if(e.commentBefore){n.length!==1&&n.unshift(``);let t=a(e.commentBefore);n.unshift(R(t,``))}let o=!1,s=null;if(e.contents){if(A(e.contents)){if(e.contents.spaceBefore&&r&&n.push(``),e.contents.commentBefore){let t=a(e.contents.commentBefore);n.push(R(t,``))}i.forceBlockIndent=!!e.comment,s=e.contents.comment}let t=s?void 0:()=>o=!0,c=V(e.contents,i,()=>s=null,t);s&&(c+=z(c,``,a(s))),(c[0]===`|`||c[0]===`>`)&&n[n.length-1]===`---`?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(V(e.contents,i));if(e.directives?.docEnd){if(e.comment){let t=a(e.comment);t.includes(`
39`)?(n.push(`...`),n.push(R(t,``))):n.push(`... ${t}`)}else n.push(`...`)}else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,``)),t&&((!o||s)&&n[n.length-1]!==``&&n.push(``),n.push(R(a(t),``)))}return n.join(`
40`)+`
41`}var sn=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,E,{value:ne});let r=null;typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`w
41arn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=i;let{version:a}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new P({version:a}),this.setSchema(a,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){let t=Object.create(e.prototype,{[E]:{value:ne}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=A(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){cn(this.contents)&&this.contents.add(e)}addIn(e,t){cn(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=_e(this);e.anchor=!t||n.has(t)?ve(t||`a`,n):t}return new xe(e.anchor)}createNode(e,t,n){let r;if(typeof t==`function`)e=t.call({"":e},``,e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:a,flow:o,keepUndefined:s,onTagObj:c,tag:l}=n??{},{onAnchor:u,setAnchors:d,sourceObjects:f}=ye(this,a||`a`),p={aliasDuplicateObjects:i??!0,keepUndefined:s??!1,onAnchor:u,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:f},m=Ee(e,l,p);return o&&k(m)&&(m.flow=!0),d(),m}createPair(e,t,n={}){return new U(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return cn(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Oe(e)?this.contents!=null&&(this.contents=null,!0):cn(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return k(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Oe(e)?!t&&O(this.contents)?this.contents.value:this.contents:k(this.contents)?this.contents.getIn(e,t):void 0}has(e){return k(this.contents)?this.contents.has(e):!1}hasIn(e){return Oe(e)?this.contents!==void 0:k(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=De(this.schema,[e],t):cn(this.contents)&&this.contents.set(e,t)}setIn(e,t){Oe(e)?this.contents=t:this.contents==null?this.contents=De(this.schema,Array.from(e),t):cn(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new P({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new P({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new an(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100}
vendor: 49,959 bytes, lines 41-107
41,s=I(this.contents,t??``,o);if(typeof i==`function`)for(let{count:e,res:t}of o.anchors.values())i(t,e);return typeof a==`function`?F(a,{"":s},``,s):s}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return on(this,e)}};function cn(e){if(k(e))return!0;throw Error(`Expected a YAML collection as document contents`)}var ln=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},un=class extends ln{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},dn=class extends ln{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}},fn=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`…
42`),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}};function pn(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(`	`)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],ee=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:ee,start:x??ee}}function mn(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
43`))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let t of e.items){for(let e of t.start)if(e.type===`newline`)return!0;if(t.sep){for(let e of t.sep)if(e.type===`newline`)return!0}if(mn(t.key)||mn(t.value))return!0}return!1;default:return!0}}function hn(e,t,n){if(t?.type===`flow-collection`){let r=t.end[0];r.indent===e&&(r.source===`]`||r.source===`}`)&&mn(t)&&n(r,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}function gn(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==`function`?r:(e,t)=>e===t||O(e)&&O(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var _n=`All mapping items must start at the same column`;function vn({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??G)(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=pn(l,{indicator:`explicit-key-ind`,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type===`block-seq`?i(s,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in u&&u.indent!==r.indent&&i(s,`BAD_INDENT`,_n)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=`
44`+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||mn(u))&&i(u??l[l.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else p.found?.indent!==r.indent&&i(s,`BAD_INDENT`,_n);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&hn(r.indent,u,i),n.atKey=!1,gn(n,o.items,g)&&i(h,`DUPLICATE_KEY`,`Map keys must be unique`);let _=pn(d??[],{indicator:`map-value-ind`,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type===`block-scalar`});if(s=_.end,_.found){m&&(f?.type===`block-map`&&!_.hasNewline&&i(s,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),n.options.strict&&p.start<_.found.offset-1024&&i(g.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&hn(r.indent,f,i),s=c.range[2];let l=new U(g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),_.comment&&(g.comment?g.comment+=`
45`+_.comment:g.comment=_.comment);let e=new U(g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&c<s&&i(c,`IMPOSSIBLE`,`Map comment with trailing content`),o.range=[r.offset,s,c??s],o}function yn({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??q)(n.schema);n.atRoot&&=!1,n.atKey&&=!1;let s=r.offset,c=null;for(let{start:a,value:l}of r.items){let u=pn(a,{indicator:`seq-item-ind`,next:l,offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found){if(u.anchor||u.tag||l)l?.type===`block-seq`?i(u.end,`BAD_INDENT`,`All sequence items must start at the same column`):i(s,`MISSING_CHAR`,`Sequence item without - indicator`);else{c=u.end,u.comment&&(o.comment=u.comment);continue}}let d=l?e(n,l,u,i):t(n,u.end,a,null,u,i);n.schema.compat&&hn(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function bn(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}var xn=`Block collections are not allowed within flow collections`,Sn=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function Cn({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source===`{`,s=o?`flow map`:`flow sequence`,c=new((a?.nodeClass)??(o?G:q))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a<r.items.length;++a){let l=r.items[a],{start:d,key:f,sep:p,value:m}=l,h=pn(d,{flow:s,indicator:`explicit-key-ind`,next:f??p?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!h.found){if(!h.anchor&&!h.tag&&!p&&!m){a===0&&h.comma?i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`):a<r.items.length-1&&i(h.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${s}`),h.comment&&(c.comment?c.comment+=`
46`+h.comment:c.comment=h.comment),u=h.end;continue}!o&&n.options.strict&&mn(f)&&i(f,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`)}if(a===0)h.comma&&i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`);else if(h.comma||i(h.start,`MISSING_CHAR`,`Missing , between ${s} items`),h.comment){let e=``;loop:for(let t of d)switch(t.type){case`comma`:case`space`:break;case`comment`:e=t.source.substring(1);break loop;default:break loop}if(e){let t=c.items[c.items.length-1];D(t)&&(t=t.value??t.key),t.comment?t.comment+=`
47`+e:t.comment=e,h.comment=h.comment.substring(e.length+1)}}if(!o&&!p&&!h.found){let r=m?e(n,m,h,i):t(n,h.end,p,null,h,i);c.items.push(r),u=r.range[2],Sn(m)&&i(r.range,`BLOCK_IN_FLOW`,xn)}else{n.atKey=!0;let a=h.end,g=f?e(n,f,h,i):t(n,a,d,null,h,i);Sn(f)&&i(g.range,`BLOCK_IN_FLOW`,xn),n.atKey=!1;let _=pn(p??[],{flow:s,indicator:`map-value-ind`,next:m,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(_.found){if(!o&&!h.found&&n.options.strict){if(p)for(let e of p){if(e===_.found)break;if(e.type===`newline`){i(e,`MULTILINE_IMPLICIT_KEY`,`Implicit keys of flow sequence pairs need to be on a single line`);break}}h.start<_.found.offset-1024&&i(_.found,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit flow sequence key`)}}else m&&(`source`in m&&m.source?.[0]===`:`?i(m,`MISSING_CHAR`,`Missing space after : in ${s}`):i(_.start,`MISSING_CHAR`,`Missing , or : between ${s} items`));let v=m?e(n,m,_,i):_.found?t(n,_.end,p,null,_,i):null;v?Sn(m)&&i(v.range,`BLOCK_IN_FLOW`,xn):_.comment&&(g.comment?g.comment+=`
48`+_.comment:g.comment=_.comment);let y=new U(g,v);if(n.options.keepSourceTokens&&(y.srcToken=l),o){let e=c;gn(n,e.items,g)&&i(a,`DUPLICATE_KEY`,`Map keys must be unique`),e.items.push(y)}else{let e=new G(n.schema);e.flow=!0,e.items.push(y);let t=(v??g).range;e.range=[g.range[0],t[1],t[2]],c.items.push(e)}u=v?v.range[2]:_.end}}let d=o?`}`:`]`,[f,...p]=r.end,m=u;if(f?.source===d)m=f.offset+f.source.length;else{let e=s[0].toUpperCase()+s.substring(1),t=l?`${e} must end with a ${d}`:`${e} in block collection must be sufficiently indented and end with a ${d}`;i(u,l?`MISSING_CHAR`:`BAD_INDENT`,t),f&&f.source.length!==1&&p.unshift(f)}if(p.length>0){let e=bn(p,m,n.options.strict,i);e.comment&&(c.comment?c.comment+=`
49`+e.comment:c.comment=e.comment),c.range=[r.offset,m,e.offset]}else c.range=[r.offset,m,m];return c}function wn(e,t,n,r,i,a){let o=n.type===`block-map`?vn(e,t,n,r,a):n.type===`block-seq`?yn(e,t,n,r,a):Cn(e,t,n,r,a),s=o.constructor;return i===`!`||i===s.tagName?(o.tag=s.tagName,o):(i&&(o.tag=i),o)}function Tn(e,t,n,r,i){let a=r.tag,o=a?t.directives.tagName(a.source,e=>i(a,`TAG_RESOLVE_FAILED`,e)):null;if(n.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=r,n=e&&a?e.offset>a.offset?e:a:e??a;n&&(!t||t.offset<n.offset)&&i(n,`MISSING_CHAR`,`Missing newline after block sequence props`)}let s=n.type===`block-map`?`map`:n.type===`block-seq`?`seq`:n.start.source===`{`?`map`:`seq`;if(!a||!o||o===`!`||o===G.tagName&&s===`map`||o===q.tagName&&s===`seq`)return wn(e,t,n,i,o);let c=t.schema.tags.find(e=>e.tag===o&&e.collection===s);if(!c){let r=t.schema.knownTags[o];if(r?.collection===s)t.schema.tags.push(Object.assign({},r,{default:!1})),c=r;else return r?i(a,`BAD_COLLECTION_TYPE`,`${r.tag} used for ${s} collection, but expects ${r.collection??`scalar`}`,!0):i(a,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${o}`,!0),wn(e,t,n,i,o)}let l=wn(e,t,n,i,o,c),u=c.resolve?.(l,e=>i(a,`TAG_RESOLVE_FAILED`,e),t.options)??l,d=A(u)?u:new L(u);return d.range=l.range,d.tag=o,c?.format&&(d.format=c.format),d}function En(e,t,n){let r=t.offset,i=Dn(t,e.options.strict,n);if(!i)return{value:``,type:null,comment:``,range:[r,r,r]};let a=i.mode===`>`?L.BLOCK_FOLDED:L.BLOCK_LITERAL,o=t.source?On(t.source):[],s=o.length;for(let e=o.length-1;e>=0;--e){let t=o[e][1];if(t===``||t===`\r`)s=e;else break}if(s===0){let e=i.chomp===`+`&&o.length>0?`
50`.repeat(Math.max(1,o.length-1)):``,n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:a,comment:i.comment,range:[r,n,n]}}let c=t.indent+i.indent,l=t.offset+i.length,u=0;for(let t=0;t<s;++t){let[r,a]=o[t];if(a===``||a===`\r`)i.indent===0&&r.length>c&&(c=r.length);else{r.length<c&&n(l+r.length,`MISSING_CHAR`,`Block scalars with more-indented leading empty lines must use an explicit indentation indicator`),i.indent===0&&(c=r.length),u=t,c===0&&!e.atRoot&&n(l,`BAD_INDENT`,`Block scalar values in collections must be indented`);break}l+=r.length+a.length+1}for(let e=o.length-1;e>=s;--e)o[e][0].length>c&&(s=e+1);let d=``,f=``,p=!1;for(let e=0;e<u;++e)d+=o[e][0].slice(c)+`
51`;for(let e=u;e<s;++e){let[t,r]=o[e];l+=t.length+r.length+1;let s=r[r.length-1]===`\r`;if(s&&(r=r.slice(0,-1)),r&&t.length<c){let e=`Block scalar lines must not be less indented than their ${i.indent?`explicit indentation indicator`:`first line`}`;n(l-r.length-(s?2:1),`BAD_INDENT`,e),t=``}a===L.BLOCK_LITERAL?(d+=f+t.slice(c)+r,f=`
52`):t.length>c||r[0]===`	`?(f===` `?f=`
53`:!p&&f===`
54`&&(f=`
55
56`),d+=f+t.slice(c)+r,f=`
57`,p=!0):r===``?f===`
58`?d+=`
59`:f=`
60`:(d+=f+r,f=` `,p=!1)}switch(i.chomp){case`-`:break;case`+`:for(let e=s;e<o.length;++e)d+=`
61`+o[e][0].slice(c);d[d.length-1]!==`
62`&&(d+=`
63`);break;default:d+=`
64`}let m=r+i.length+t.source.length;return{value:d,type:a,comment:i.comment,range:[r,m,m]}}function Dn({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t<i.length;++t){let n=i[t];if(!s&&(n===`-`||n===`+`))s=n;else{let r=Number(n);!o&&r?o=r:c===-1&&(c=e+t)}}c!==-1&&r(c,`UNEXPECTED_TOKEN`,`Block scalar header includes extra characters: ${i}`);let l=!1,u=``,d=i.length;for(let e=1;e<t.length;++e){let i=t[e];switch(i.type){case`space`:l=!0;case`newline`:d+=i.source.length;break;case`comment`:n&&!l&&r(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`),d+=i.source.length,u=i.source.substring(1);break;case`error`:r(i,`UNEXPECTED_TOKEN`,i.message),d+=i.source.length;break;default:{r(i,`UNEXPECTED_TOKEN`,`Unexpected token in block scalar header: ${i.type}`);let e=i.source;e&&typeof e==`string`&&(d+=e.length)}}}return{mode:a,indent:o,chomp:s,comment:u,length:d}}function On(e){let t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),i=[r?.[1]?[r[1],n.slice(r[1].length)]:[``,n]];for(let e=1;e<t.length;e+=2)i.push([t[e],t[e+1]]);return i}function kn(e,t,n){let{offset:r,type:i,source:a,end:o}=e,s,c,l=(e,t,i)=>n(r+e,t,i);switch(i){case`scalar`:s=L.PLAIN,c=An(a,l);break;case`single-quoted-scalar`:s=L.QUOTE_SINGLE,c=jn(a,l);break;case`double-quoted-scalar`:s=L.QUOTE_DOUBLE,c=Nn(a,l);break;default:return n(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${i}`),{value:``,type:null,comment:``,range:[r,r+a.length,r+a.length]}}let u=r+a.length,d=bn(o,u,t,n);return{value:c,type:s,comment:d.comment,range:[r,u,d.offset]}}function An(e,t){let n=``;switch(e[0]){case`	`:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),Mn(e)}function jn(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),Mn(e.slice(1,-1)).replace(/''/g,`'`)}function Mn(e){let t,n;try{t=RegExp(`(.*?)(?<![ 	])[ 	]*\r?
65`,`sy`),n=RegExp(`[ 	]*(.*?)(?:(?<![ 	])[ 	]*)?\r?
66`,`sy`)}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],a=` `,o=t.lastIndex;for(n.lastIndex=o;r=n.exec(e);)r[1]===``?a===`
67`?i+=a:a=`
68`:(i+=a+r[1],a=` `),o=n.lastIndex;let s=/[ \t]*(.*)/sy;return s.lastIndex=o,r=s.exec(e),i+a+(r?.[1]??``)}function Nn(e,t){let n=``;for(let r=1;r<e.length-1;++r){let i=e[r];if(i!==`\r`||e[r+1]!==`
69`){if(i===`
70`){let{fold:t,offset:i}=Pn(e,r);n+=t,r=i}else if(i===`\\`){let i=e[++r],a=Fn[i];if(a)n+=a;else if(i===`
71`)for(i=e[r+1];i===` `||i===`	`;)i=e[++r+1];else if(i===`\r`&&e[r+1]===`
72`)for(i=e[++r+1];i===` `||i===`	`;)i=e[++r+1];else if(i===`x`||i===`u`||i===`U`){let a=i===`x`?2:i===`u`?4:8;n+=In(e,r+1,a,t),r+=a}else{let i=e.substr(r-1,2);t(r-1,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),n+=i}}else if(i===` `||i===`	`){let t=r,a=e[r+1];for(;a===` `||a===`	`;)a=e[++r+1];a!==`
73`&&(a!==`\r`||e[r+2]!==`
74`)&&(n+=r>t?e.slice(t,r+1):i)}else n+=i}}return(e[e.length-1]!==`"`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing "quote`),n}function Pn(e,t){let n=``,r=e[t+1];for(;(r===` `||r===`	`||r===`
75`||r===`\r`)&&(r!==`\r`||e[t+2]===`
76`);)r===`
77`&&(n+=`
78`),t+=1,r=e[t+1];return n||=` `,{fold:n,offset:t}}var Fn={0:`\0`,a:`\x07`,b:`\b`,e:`\x1B`,f:`\f`,n:`
79`,r:`\r`,t:`	`,v:`\v`,N:`…`,_:`\xA0`,L:`\u2028`,P:`\u2029`," ":` `,'"':`"`,"/":`/`,"\\":`\\`,"	":`	`};function In(e,t,n,r){let i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;try{return String.fromCodePoint(a)}catch{let i=e.substr(t-2,n+2);return r(t-2,`BAD_DQ_ESCAPE`,`Invalid escape sequence ${i}`),i}}function Ln(e,t,n,r){let{value:i,type:a,comment:o,range:s}=t.type===`block-scalar`?En(e,t,r):kn(t,e.options.strict,r),c=n?e.directives.tagName(n.source,e=>r(n,`TAG_RESOLVE_FAILED`,e)):null,l;l=e.options.stringKeys&&e.atKey?e.schema[w]:c?Rn(e.schema,i,c,n,r):t.type===`scalar`?zn(e,i,t,r):e.schema[w];let u;try{let a=l.resolve(i,e=>r(n??t,`TAG_RESOLVE_FAILED`,e),e.options);u=O(a)?a:new L(a)}catch(e){let a=e instanceof Error?e.message:String(e);r(n??t,`TAG_RESOLVE_FAILED`,a),u=new L(i)}return u.range=s,u.source=i,a&&(u.type=a),c&&(u.tag=c),l.format&&(u.format=l.format),o&&(u.comment=o),u}function Rn(e,t,n,r,i){if(n===`!`)return e[w];let a=[];for(let t of e.tags)if(!t.collection&&t.tag===n){if(t.default&&t.test)a.push(t);else return t}for(let e of a)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${n}`,n!==`tag:yaml.org,2002:str`),e[w])}function zn({atKey:e,directives:t,schema:n},r,i,a){let o=n.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(r))||n[w];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[w];o.tag!==e.tag&&a(i,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${t.tagString(o.tag)} or ${t.tagString(e.tag)}`,!0)}return o}function Bn(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}var Vn={composeNode:Hn,composeEmptyNode:Un};function Hn(e,t,n,r){let i=e.atKey,{spaceBefore:a,comment:o,anchor:s,tag:c}=n,l,u=!0;switch(t.type){case`alias`:l=Wn(e,t,r),(s||c)&&r(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:l=Ln(e,t,c,r),s&&(l.anchor=s.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{l=Tn(Vn,e,t,n,r),s&&(l.anchor=s.source.substring(1))}catch(e){r(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:r(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),u=!1}return l??=Un(e,t.offset,void 0,null,n,r),s&&l.anchor===``&&r(s,`BAD_ALIAS`,`Anchor cannot be an empty string`),i&&e.options.stringKeys&&(!O(l)||typeof l.value!=`string`||l.tag&&l.tag!==`tag:yaml.org,2002:str`)&&r(c??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),a&&(l.spaceBefore=!0),o&&(t.type===`scalar`&&t.source===``?l.comment=o:l.commentBefore=o),e.options.keepSourceTokens&&u&&(l.srcToken=t),l}function Un(e,t,n,r,{spaceBefore:i,comment:a,anchor:o,tag:s,end:c},l){let u=Ln(e,{type:`scalar`,offset:Bn(t,n,r),indent:-1,source:``},s,l);return o&&(u.anchor=o.source.substring(1),u.anchor===``&&l(o,`BAD_ALIAS`,`Anchor cannot be an empty string`)),i&&(u.spaceBefore=!0),a&&(u.comment=a,u.range[2]=c),u}function Wn({options:e},{offset:t,source:n,end:r},i){let a=new xe(n.substring(1));a.source===``&&i(t,`BAD_ALIAS`,`Alias cannot be an empty string`),a.source.endsWith(`:`)&&i(t+n.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let o=t+n.length,s=bn(r,o,e.strict,i);return a.range=[t,o,s.offset],s.comment&&(a.comment=s.comment),a}function Gn(e,t,{offset:n,start:r,value:i,end:a},o){let s=new sn(void 0,Object.assign({_directives:t},e)),c={atKey:!1,atRoot:!0,directives:s.directives,options:s.options,schema:s.schema},l=pn(r,{indicator:`doc-start`,next:i??a?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});l.found&&(s.directives.docStart=!0,i&&(i.type===`block-map`||i.type===`block-seq`)&&!l.hasNewline&&o(l.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),s.contents=i?Hn(c,i,l,o):Un(c,l.end,r,null,l,o);let u=s.contents.range[2],d=bn(a,u,!1,o);return d.comment&&(s.comment=d.comment),s.range=[n,u,d.offset],s}function Kn(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:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function qn(e){let t=``,n=!1,r=!1;for(let i=0;i<e.length;++i){let a=e[i];switch(a[0]){case`#`:t+=(t===``?``:r?`
80
81`:`
82`)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}var Jn=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let i=Kn(e);r?this.warnings.push(new dn(i,t,n)):this.errors.push(new un(i,t,n))},this.directives=new P({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=qn(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(k(i)&&!i.flow&&i.items.length>0){let e=i.items[0];D(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t<this.errors.length;++t)e.errors.push(this.errors[t]);for(let t=0;t<this.warnings.length;++t)e.warnings.push(this.warnings[t])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:qn(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case`directive`:this.directives.add(e.source,(t,n,r)=>{let i=Kn(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=Gn(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,n=new un(Kn(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new un(Kn(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=bn(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new un(Kn(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 e=new sn(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),e.range=[0,t,t],this.decorate(e,!1),yield e}}},Yn=Symbol(`break visit`),Xn=Symbol(`skip children`),Zn=Symbol(`remove item`);function X(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),Qn(Object.freeze([]),e,t)}X.BREAK=Yn,X.SKIP=Xn,X.REMOVE=Zn,X.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},X.parentCollection=(e,t)=>{let n=X.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&`items`in i)return i;throw Error(`Parent collection not found`)};function Qn(e,t,n){let r=n(t,e);if(typeof r==`symbol`)return r;for(let i of[`key`,`value`]){let a=t[i];if(a&&`items`in a){for(let t=0;t<a.items.length;++t){let r=Qn(Object.freeze(e.concat([[i,t]])),a.items[t],n);if(typeof r==`number`)t=r-1;else if(r===Yn)return Yn;else r===Zn&&(a.items.splice(t,1),--t)}typeof r==`function`&&i===`key`&&(r=r(t,e))}}return typeof r==`function`?r(t,e):r}function $n(e){switch(e){case``:return`byte-order-mark`;case`�`:return`doc-mode`;case`�`:return`flow-error-end`;case`�`:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case`
83`:case`\r
84`:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case`	`:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}function Z(e){switch(e){case void 0:case` `:case`
85`:case`\r`:case`	`:return!0;default:return!1}}var er=new Set(`0123456789ABCDEFabcdef`),tr=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),nr=new Set(`,[]{}`),rr=new Set(` ,[]{}
86\r	`),ir=e=>!e||rr.has(e),ar=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(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===`	`;)t=this.buffer[++e];return!t||t===`#`||t===`
87`||t===`\r`&&this.buffer[e+1]===`
88`}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===` `;)t=this.buffer[++n+e];if(t===`\r`){let t=this.buffer[n+e+1];if(t===`
89`||!t&&!this.atEnd)return e+n+1}return t===`
90`||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t===`-`||t===`.`){let t=this.buffer.substr(e,3);if((t===`---`||t===`...`)&&Z(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!=`number`||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
91`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]===`\r`&&--e,this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case`stream`:return yield*this.parseStream();case`line-start`:return yield*this.parseLineStart();case`block-start`:return yield*this.parseBlockStart();case`doc`:return yield*this.parseDocument();case`flow`:return yield*this.parseFlowCollection();case`quoted-scalar`:return yield*this.parseQuotedScalar();case`block-scalar`:return yield*this.parseBlockScalar();case`plain-scalar`:return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext(`stream`);if(e[0]===``&&(yield*this.pushCount(1),e=e.substring(1)),e[0]===`%`){let t=e.length,n=e.indexOf(`#`);for(;n!==-1;){let r=e[n-1];if(r===` `||r===`	`){t=n-1;break}n=e.indexOf(`#`,n+1)}for(;;){let n=e[t-1];if(n===` `||n===`	`)--t;else break}let r=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),`stream`}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),`stream`}return yield`�`,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext(`line-start`);if(e===`-`||e===`.`){if(!this.atEnd&&!this.hasChars(4))return this.setNext(`line-start`);let e=this.peek(3);if((e===`---`||e===`...`)&&Z(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,e===`---`?`doc`:`stream`}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Z(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext(`block-start`);if((e===`-`||e===`?`||e===`:`)&&Z(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,`block-start`}return`doc`}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext(`doc`);let t=yield*this.pushIndicators();switch(e[t]){case`#`:yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),`doc`;case`*`:return yield*this.pushUntil(ir),`doc`;case`"`:case`'`:return yield*this.parseQuotedScalar();case`|`:case`>`:return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(r===null)return this.setNext(`flow`);if((n!==-1&&n<this.indentNext&&r[0]!==`#`||n===0&&(r.startsWith(`---`)||r.startsWith(`...`))&&Z(r[3]))&&(n!==this.indentNext-1||this.flowLevel!==1||r[0]!==`]`&&r[0]!==`}`))return this.flowLevel=0,yield`�`,yield*this.parseLineStart();let i=0;for(;r[i]===`,`;)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return`flow`;case`#`:return yield*this.pushCount(r.length-i),`flow`;case`{`:case`[`:return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,`flow`;case`}`:case`]`:return yield*this.pushCount(1),this.flowKey=!0,--this.flowLevel,this.flowLevel?`flow`:`doc`;case`*`:return yield*this.pushUntil(ir),`flow`;case`"`:case`'`:return this.flowKey=!0,yield*this.parseQuotedScalar();case`:`:{let e=this.charAt(1);if(this.flowKey||Z(e)||e===`,`)return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),`flow`}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e===`'`)for(;t!==-1&&this.buffer[t+1]===`'`;)t=this.buffer.indexOf(`'`,t+2);else for(;t!==-1;){let e=0;for(;this.buffer[t-1-e]===`\\`;)e+=1;if(e%2==0)break;t=this.buffer.indexOf(`"`,t+1)}let n=this.buffer.substring(0,t),r=n.indexOf(`
92`,this.pos);if(r!==-1){for(;r!==-1;){let e=this.continueScalar(r+1);if(e===-1)break;r=n.indexOf(`
93`,e)}r!==-1&&(t=r-(n[r-1]===`\r`?2:1))}if(t===-1){if(!this.atEnd)return this.setNext(`quoted-scalar`);t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?`flow`:`doc`}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t===`+`)this.blockScalarKeep=!0;else if(t>`0`&&t<=`9`)this.blockScalarIndent=Number(t)-1;else if(t!==`-`)break}return yield*this.pushUntil(e=>Z(e)||e===`#`)}*parseBlockScalar(){let e=this.pos-1,t=0,n;loop:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case` `:t+=1;break;case`
94`:e=r,t=0;break;case`\r`:{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext(`block-scalar`);if(e===`
95`)break}default:break loop}if(!n&&!this.atEnd)return this.setNext(`block-scalar`);if(t>=this.indentNext){this.indentNext=this.blockScalarIndent===-1?t:this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let t=this.continueScalar(e+1);if(t===-1)break;e=this.buffer.indexOf(`
96`,t)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext(`block-scalar`);e=this.buffer.length}}let r=e+1;for(n=this.buffer[r];n===` `;)n=this.buffer[++r];if(n===`	`){for(;n===`	`||n===` `||n===`\r`||n===`
97`;)n=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let n=e-1,r=this.buffer[n];r===`\r`&&(r=this.buffer[--n]);let i=n;for(;r===` `;)r=this.buffer[--n];if(r===`
98`&&n>=this.pos&&n+1+t>i)e=n;else break}while(!0);return yield`�`,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r===`:`){let r=this.buffer[n+1];if(Z(r)||e&&nr.has(r))break;t=n}else if(Z(r)){let i=this.buffer[n+1];if(r===`\r`&&(i===`
99`?(n+=1,r=`
100`,i=this.buffer[n+1]):t=n),i===`#`||e&&nr.has(i))break;if(r===`
101`){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&nr.has(r))break;t=n}return!r&&!this.atEnd?this.setNext(`plain-scalar`):(yield`�`,yield*this.pushToIndex(t+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(ir),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,n=this.charAt(1);if(Z(n)||t&&nr.has(n)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!Z(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(tr.has(t))t=this.buffer[++e];else if(t===`%`&&er.has(this.buffer[e+1])&&er.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
102`?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===`
103`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===`	`);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}},or=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};function Q(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function sr(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 cr(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 lr(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 $(e){if(e.length===0)return[];let t=e.length;loop: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 loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function ur(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function dr(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!Q(t.start,`explicit-key-ind`)&&!Q(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,cr(t.value)?t.value.end?ur(t.value.end,t.sep):t.value.end=t.sep:ur(t.start,t.sep),delete t.sep)}var fr=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 ar,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=$n(e);if(!t){let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}else 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}}*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?.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 e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&dr(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&sr(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.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`:sr(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());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=$(lr(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(`
104`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
105`,e)+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 n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.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 n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){ur(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,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(Q(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=$(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Q(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(cr(t.key)&&!Q(t.sep,`newline`)){let e=$(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken)}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):Q(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 n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!Q(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 n&&e.items.push({start:i});this.stack.push(r);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 n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.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 n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){ur(n,t.start),n.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||Q(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.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 n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=$(lr(t));dr(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
106`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
107`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=$(lr(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=$(lr(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.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;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function pr(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new or||null,prettyErrors:t}}function mr(e,t={}){let{lineCounter:n,prettyErrors:r}=pr(t),i=new fr(n?.addNewLine),a=new Jn(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new un(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}
107return r&&n&&(o.errors.forEach(fn(e,n)),o.warnings.forEach(fn(e,n))),o}function hr(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=mr(e,n);if(!i)return null;if(i.warnings.forEach(e=>Ye(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}var gr=hr(`- type: "Webinar"
108  title: "Industrial IoT Solutions, Reimagined"
109  buttonText: "Register now"
110  link: "/webinars/2026/industrial-iot-solutions/"
111  expire: "2026-09-29T16:01:00Z"
112- type: "Online Conference"
113  title: "Node-RED Con 2026 — Registration is open!"
114  buttonText: "Register free"
115  link: "https://events.zoom.us/ev/Ag_xPefs5sgZrJ1NFahdYqv-WfvhdtzQOkVaQMrJcPZQilHl_XXW~ApY0XoKxnhY-LrVkmWioZBCf7qE7qIdXM6LHUUBlsgeZTfnxHmWbFi7rosxSUgMyLxKrm4IXZTcAqmX-3hj-YZWstQ"
116  expire: "2026-11-03T14:00:00Z"
117- type: "New"
118  title: "Meet FlowFuse Expert: build industrial applications with AI."
119  buttonText: "Learn more"
120  link: "/ai/"
121- type: "Get started"
122  title: "Begin with installing the FlowFuse device agent on your hardware."
123  buttonText: "Install on edge"
124  link: "/docs/device-agent/install/overview/"
125`)||[];function _r(){return gr.filter(e=>!e.expire||new Date(e.expire)>new Date)}var vr={class:`ff-utility-bar w-full bg-indigo-700 text-indigo-100 text-sm px-6`,"data-nav-zone":`utility`},yr={class:`mx-auto max-screen-none lg:max-w-screen-xl 2xl:max-w-[1920px] flex items-center justify-between gap-4 py-3`},br={class:`ff-utility-announce min-w-0 flex-1 flex items-center`},xr=[`href`],Sr={class:`shrink-0 font-semibold`},Cr={class:`truncate`},wr={class:`shrink-0 hidden sm:inline-flex items-center gap-1 font-medium text-white underline underline-offset-2`},Tr={class:`hidden md:flex items-center gap-5 shrink-0`,"aria-label":`Quick links`},Er={__name:`AppUtilityBar`,setup(n){let f=_r();return l(()=>{let e=document.querySelectorAll(`.ff-utility-announce > .ff-utility-item`);if(e.length===0)return;let t=0;e.forEach((e,t)=>{e.style.display=t===0?`inline-flex`:`none`}),!(e.length<2)&&_(()=>{e[t].style.display=`none`,t=(t+1)%e.length,e[t].style.display=`inline-flex`},7e3)}),(n,l)=>{let p=m;return u(),s(`div`,vr,[o(`div`,yr,[o(`div`,br,[(u(!0),s(d,null,c(e(f),e=>(u(),s(`a`,{key:e.link,href:e.link,class:`ff-utility-item group inline-flex items-center gap-2 min-w-0 no-underline hover:no-underline text-indigo-100 hover:text-white`},[o(`span`,Sr,t(e.type),1),l[1]||=o(`span`,{class:`hidden sm:block`},`-`,-1),o(`span`,Cr,t(e.title),1),o(`span`,wr,[i(t(e.buttonText)+` `,1),l[0]||=o(`span`,{class:`transition-transform group-hover:translate-x-0.5`},`→`,-1)])],8,xr))),128))]),r(p,{variant:`nav-text`,position:`utility-bar-mobile`,class:`md:hidden shrink-0 text-indigo-100 hover:text-white no-underline hover:no-underline font-medium`}),o(`nav`,Tr,[l[2]||=a(`<a href="/about/" class="text-indigo-100 hover:text-white no-underline hover:no-underline">About us</a><a href="/blog/" class="text-indigo-100 hover:text-white no-underline hover:no-underline">Blog</a><a href="/docs/" class="text-indigo-100 hover:text-white no-underline hover:no-underline">Docs</a><a href="/support/" class="text-indigo-100 hover:text-white no-underline hover:no-underline">Support</a><a href="/docs/device-agent/install/overview/" class="text-indigo-100 hover:text-white no-underline hover:no-underline">Install on edge</a><span class="h-4 w-px bg-indigo-400/40" aria-hidden="true"></span>`,6),r(p,{variant:`nav-text`,position:`utility-bar`,class:`text-indigo-100 hover:text-white no-underline hover:no-underline font-medium`})])])])}}},Dr={class:`h-full w-full`,viewBox:`0 0 402 70`,xmlns:`http://www.w3.org/2000/svg`},Or=[`stop-color`],kr=[`stop-color`],Ar=[`stop-color`],jr=[`stop-color`],Mr=[`stop-color`],Nr=[`mask`],Pr=[`mask`],Fr=[`fill`],Ir=[`fill`],Lr=[`fill`],Rr=[`fill`],zr=[`fill`],Br=[`fill`],Vr=[`fill`],Hr=[`fill`],Ur=[`fill`],Wr=[`fill`],Gr=[`fill`],Kr={__name:`FlowFuseWordmark`,props:{uid:{type:String,required:!0},color:{type:String,default:`#DA3D0B`}},setup(e){let t=e,n=`ffWaveWordmark-${t.uid}`,r=`ffWaveWordmarkMask0-${t.uid}`,i=`ffWaveWordmarkMask1-${t.uid}`;return(t,a)=>(u(),s(`svg`,Dr,[o(`defs`,null,[o(`linearGradient`,{id:n,gradientUnits:`userSpaceOnUse`,x1:`0`,y1:`0`,x2:`402`,y2:`0`},[o(`stop`,{offset:`0`,"stop-color":e.color},null,8,Or),o(`stop`,{offset:`0.25`,"stop-color":e.color},null,8,kr),o(`stop`,{offset:`0.5`,"stop-color":e.color},null,8,Ar),o(`stop`,{offset:`0.75`,"stop-color":e.color},null,8,jr),o(`stop`,{offset:`1`,"stop-color":e.color},null,8,Mr)])]),o(`mask`,{id:r,style:{"mask-type":`luminance`},maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`402`,height:`70`},[...a[0]||=[o(`path`,{d:`M402 0H0V70H402V0Z`,fill:`white`},null,-1)]]),o(`g`,{mask:`url(#${r})`},[o(`mask`,{id:i,style:{"mask-type":`luminance`},maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`402`,height:`70`},[...a[1]||=[o(`path`,{d:`M402 0H0V70H402V0Z`,fill:`white`},null,-1)]]),o(`g`,{mask:`url(#${i})`},[o(`path`,{d:`M118.95 9.98H95.3695C93.7495 9.98 92.4595 10.47 91.4795 11.44C90.4995 12.41 90.0195 13.71 90.0195 15.32V55.38C90.0195 57.05 90.4495 58.24 91.3095 58.94C92.1695 59.64 93.5495 59.99 95.4395 59.99C96.3595 59.99 97.2495 59.92 98.1095 59.79C98.9695 59.66 99.6195 59.53 100.05 59.43V39.87H113.6C114.73 39.87 115.62 39.51 116.27 38.78C116.92 38.05 117.24 37.01 117.24 35.66C117.24 34.85 117.12 34.11 116.88 33.43C116.64 32.76 116.38 32.2 116.11 31.77H100.05V18.15H116.35C117.48 18.15 118.37 17.79 119.02 17.06C119.67 16.33 119.99 15.27 119.99 13.86C119.99 13.05 119.88 12.3 119.67 11.59C119.45 10.89 119.21 10.35 118.94 9.97`,fill:`url(#${n})`},null,8,Fr),o(`path`,{d:`M130.979 9.98001C130.059 9.98001 129.199 10.06 128.389 10.22C127.579 10.38 126.959 10.52 126.529 10.62V55.53C126.529 57.2 126.969 58.36 127.859 59.01C128.749 59.66 130.079 59.98 131.869 59.98C132.839 59.98 133.719 59.91 134.499 59.78C135.279 59.65 135.889 59.5 136.319 59.34V14.52C136.319 12.85 135.889 11.68 135.029 11C134.169 10.33 132.819 9.99001 130.979 9.99001`,fill:`url(#${n})`},null,8,Ir),o(`path`,{d:`M175.521 22.61C172.531 20.94 169.041 20.1 165.041 20.1C161.041 20.1 157.611 20.94 154.601 22.61C151.591 24.28 149.241 26.63 147.571 29.65C145.901 32.67 145.061 36.26 145.061 40.41C145.061 44.56 145.881 48.15 147.531 51.17C149.171 54.19 151.501 56.53 154.521 58.17C157.531 59.81 161.041 60.64 165.041 60.64C169.041 60.64 172.611 59.82 175.601 58.17C178.591 56.52 180.901 54.18 182.551 51.13C184.191 48.08 185.011 44.51 185.011 40.41C185.011 36.31 184.171 32.67 182.501 29.65C180.831 26.63 178.501 24.28 175.511 22.61M172.271 49.6C170.521 51.78 168.111 52.88 165.041 52.88C161.971 52.88 159.561 51.8 157.811 49.65C156.
125061 47.49 155.181 44.42 155.181 40.42C155.181 36.42 156.071 33.41 157.851 31.19C159.631 28.98 162.031 27.87 165.041 27.87C168.051 27.87 170.521 28.98 172.271 31.19C174.021 33.4 174.901 36.48 174.901 40.42C174.901 44.36 174.021 47.42 172.271 49.6Z`,fill:`url(#${n})`},null,8,Lr),o(`path`,{d:`M281.95 9.98H258.37C256.75 9.98 255.46 10.47 254.48 11.44C253.51 12.41 253.02 13.71 253.02 15.32V55.38C253.02 57.05 253.45 58.24 254.31 58.94C255.17 59.64 256.55 59.99 258.44 59.99C259.36 59.99 260.25 59.92 261.11 59.79C261.97 59.66 262.62 59.53 263.05 59.43V39.87H276.6C277.73 39.87 278.62 39.51 279.27 38.78C279.92 38.05 280.24 37.01 280.24 35.66C280.24 34.85 280.12 34.11 279.88 33.43C279.64 32.76 279.38 32.2 279.11 31.77H263.05V18.15H279.35C280.48 18.15 281.37 17.79 282.02 17.06C282.67 16.33 282.99 15.27 282.99 13.86C282.99 13.05 282.88 12.3 282.67 11.59C282.45 10.89 282.21 10.35 281.94 9.97`,fill:`url(#${n})`},null,8,Rr),o(`path`,{d:`M243.98 21.39C243.12 20.8 242.01 20.5 240.66 20.5C239.04 20.5 237.59 20.88 236.29 21.63C235.59 26.59 234.71 31.61 233.66 36.68C232.61 41.75 231.59 46.53 230.62 51H230.22C229.95 49.76 229.45 47.87 228.72 45.34C227.99 42.81 227.14 39.91 226.17 36.64C225.2 33.38 224.17 30.02 223.09 26.56C222.77 25.59 222.13 24.87 221.19 24.42C220.25 23.96 219.08 23.73 217.67 23.73C216.59 23.73 215.64 23.84 214.83 24.05C214.02 24.27 213.26 24.59 212.56 25.02C211.48 28.63 210.42 32.2 209.36 35.7C208.31 39.21 207.39 42.32 206.61 45.05C205.83 47.77 205.27 49.76 204.95 51H204.63C204.41 50.14 204.11 48.88 203.74 47.24C203.36 45.6 202.93 43.64 202.45 41.37C201.96 39.1 201.46 36.57 200.95 33.76C200.44 30.95 199.94 28.01 199.46 24.94C199.19 23.32 198.65 22.18 197.84 21.5C197.03 20.83 195.92 20.49 194.52 20.49C193.39 20.49 192.37 20.71 191.48 21.14C190.59 21.57 189.88 22.06 189.34 22.6C189.72 24.65 190.19 27 190.76 29.64C191.33 32.28 191.95 35.01 192.62 37.81C193.29 40.62 193.97 43.33 194.64 45.94C195.31 48.56 195.97 50.86 196.62 52.86C197.27 54.86 197.84 56.4 198.32 57.47C198.75 58.33 199.53 59 200.67 59.45C201.8 59.91 203.1 60.14 204.56 60.14C205.85 60.14 206.95 60 207.84 59.73C208.73 59.46 209.44 59.11 209.99 58.68C210.64 56.9 211.4 54.67 212.29 52C213.18 49.33 214.1 46.44 215.04 43.34C215.98 40.24 216.83 37.2 217.59 34.24C218.4 37.15 219.23 40.11 220.09 43.1C220.95 46.09 221.8 48.87 222.64 51.44C223.48 54 224.22 56.09 224.87 57.71C225.41 59.33 227.33 60.14 230.61 60.14C231.85 60.14 233 59.99 234.05 59.69C235.1 59.4 235.88 59.06 236.36 58.68C236.79 57.6 237.3 56.15 237.9 54.31C238.49 52.48 239.13 50.4 239.8 48.08C240.47 45.76 241.14 43.36 241.78 40.88C242.43 38.4 243 36.05 243.52 33.84C244.03 31.63 244.45 29.67 244.78 27.97C245.1 26.27 245.26 25.07 245.26 24.37C245.26 22.97 244.83 21.97 243.97 21.38`,fill:`url(#${n})`},null,8,zr),o(`path`,{d:`M316.89 20.67C315.97 20.67 315.11 20.75 314.3 20.91C313.49 21.07 312.87 21.21 312.44 21.31V51.17C311.79 51.55 310.87 51.91 309.69 52.26C308.5 52.61 307.05 52.78 305.32 52.78C302.62 52.78 300.52 52.15 299.01 50.88C297.5 49.61 296.74 47.55 296.74 44.69V25.27C296.74 23.49 296.32 22.28 295.48 21.63C294.64 20.98 293.31 20.66 291.47 20.66C290.5 20.66 289.61 20.74 288.8 20.9C287.99 21.06 287.4 21.2 287.02 21.3V44.85C287.02 48.52 287.75 51.51 289.2 53.83C290.66 56.15 292.76 57.85 295.51 58.93C298.26 60.01 301.5 60.55 305.22 60.55C308.3 60.55 311.02 60.24 313.4 59.62C315.77 59 317.71 58.23 319.22 57.32C320.35 56.62 321.14 55.86 321.57 55.06C322 54.25 322.22 53.23 322.22 51.98V25.27C322.22 23.49 321.79 22.28 320.93 21.63C320.07 20.98 318.72 20.66 316.88 20.66`,fill:`url(#${n})`},null,8,Br),o(`path`,{d:`M347.659 36.62L343.449 35.57C341.779 35.19 340.589 34.67 339.889 33.99C339.189 33.32 338.839 32.52 338.839 31.6C338.839 30.3 339.459 29.32 340.699 28.64C341.939 27.97 343.609 27.63 345.719 27.63C347.119 27.63 348.509 27.78 349.889 28.07C351.269 28.37 352.519 28.74 353.649 29.2C354.779 29.66 355.669 30.1 356.319 30.53C356.909 30.1 357.409 29.53 357.819 28.83C358.219 28.13 358.429 27.32 358.429 26.4C358.429 25.05 357.849 23.91 356.689 22.96C355.529 22.02 353.939 21.29 351.909 20.78C349.889 20.27 347.579 20.01 344.989 20.01C340.019 20.01 336.169 21.1 333.419 23.29C330.669 25.48 329.289 28.24 329.289 31.59C329.289 34.61 330.219 37.04 332.079 38.87C333.939 40.71 336.809 42.05 340.699 42.92L345.469 44.13C347.199 44.51 348.459 45.06 349.269 45.79C350.079 46.52 350.479 47.5 350.479 48.74C350.479 51.6 348.159 53.03 343.519 53.03C340.979 53.03 338.719 52.64 336.719 51.86C334.719 51.08 332.969 50.2 331.459 49.23C330.759 49.72 330.189 50.33 329.759 51.09C329.329 51.85 329.109 52.68 329.109 53.6C329.109 55.71 330.489 57.4 333.239 58.7C335.989 60 339.519 60.64 343.839 60.64C349.119 60.64 353.159 59.57 355.939 57.44C358.719 55.31 360.109 52.38 360.109 48.66C360.109 45.53 359.119 42.99 357.149 41.02C355.179 39.05 352.009 37.58 347.639 36.61`,fill:`url(#${n})`},null,8,Vr),o(`path`,{d:`M400.87 40.23C401.63 39.5 402 38.38 402 36.87C402 33.63 401.24 30.75 399.73 28.21C398.22 25.67 396.13 23.68 393.46 22.22C390.79 20.76 387.7 20.04 384.19 20.04C381.6 20.04 379.16 20.46 376.87 21.29C374.58 22.12 372.55 23.38 370.8 25.05C369.05 26.72 367.67 28.8 366.67 31.28C365.67 33.76 3
12565.17 36.65 365.17 39.94C365.17 44.47 366.06 48.27 367.84 51.35C369.62 54.43 372.12 56.73 375.32 58.27C378.53 59.81 382.21 60.58 386.37 60.58C389.07 60.58 391.45 60.31 393.53 59.77C395.61 59.23 397.26 58.46 398.51 57.46C399.75 56.46 400.37 55.29 400.37 53.94C400.37 53.08 400.14 52.28 399.68 51.55C399.22 50.82 398.64 50.24 397.94 49.81C396.75 50.62 395.2 51.36 393.29 52.04C391.37 52.71 389.29 53.05 387.02 53.05C383.62 53.05 380.82 52.21 378.6 50.54C376.85 49.22 375.65 47.31 374.98 44.84L397.69 41.55C399.04 41.39 400.09 40.95 400.85 40.22M374.36 37.99C374.53 34.74 375.47 32.2 377.2 30.39C379.06 28.45 381.39 27.48 384.2 27.48C387.01 27.48 388.98 28.25 390.43 29.79C391.89 31.33 392.69 33.15 392.86 35.25L374.36 37.99Z`,fill:`url(#${n})`},null,8,Hr),o(`path`,{d:`M38.6096 42.28C45.7596 45.31 52.6296 48.9 60.0596 50.56C63.3596 51.11 66.7096 51.38 69.9996 51.38V33.16H67.2496C57.0696 33.16 47.6796 38.41 38.5996 42.27`,fill:`url(#${n})`},null,8,Ur),o(`path`,{d:`M17.43 48.08C14.13 47.81 10.82 47.81 7.53 47.81H0V64.54C0 67.56 2.45 70.01 5.47 70.01H64.53C67.55 70.01 70 67.56 70 64.54V62.43C62.86 62.43 55.39 61.51 48.78 58.75C38.34 55.17 28.71 48.36 17.43 48.08Z`,fill:`url(#${n})`},null,8,Wr),o(`path`,{d:`M64.53 0H5.47C2.45 0 0 2.45 0 5.47V36.49C6.61 36.49 13.58 36.76 20.18 36.21C29.26 35.39 37.23 30.42 45.76 27.11C53.46 23.8 61.75 21.86 70 22.14V5.47C70 2.45 67.55 0 64.53 0Z`,fill:`url(#${n})`},null,8,Gr),a[2]||=o(`path`,{d:`M70 33.17V22.13C61.75 21.86 53.46 23.8 45.76 27.1C37.23 30.41 29.26 35.38 20.18 36.2C13.58 36.76 6.61 36.48 0 36.48V47.79H7.54C10.83 47.79 14.14 47.79 17.44 48.06C28.72 48.33 38.34 55.15 48.79 58.73C55.4 61.49 62.87 62.41 70.01 62.41V51.37C66.72 51.37 63.37 51.1 60.07 50.55C52.64 48.88 45.77 45.3 38.62 42.27C47.7 38.4 57.08 33.16 67.27 33.16H70.02L70 33.17Z`,fill:`white`},null,-1)],8,Pr)],8,Nr)]))}},qr={_comment:`Nav highlight cards, one per top-nav dropdown. Marketing owns this file: each entry is the promo card shown at the left of the corresponding mega dropdown on xl+ screens. Swap an entry to feature a campaign, webinar, customer story or launch. Each card renders as the image plus the title (which also serves as the link's accessible name); keep titles short (2 lines max). Set image to a site-absolute path to override, otherwise the card uses the linked page's front-matter image, falling back to /images/og-blog.jpg. Consumed by Eleventy (base.njk) and by Nuxt (nuxt/components/AppHeader.vue).`,platform:{title:`Industrial AI, governed and built in`,link:`/ai/`,image:`/images/ai/ai-hero.png`},solutions:{title:`Scale automotive operations`,link:`/industries/automotive/`,image:`/images/industries/automotive.jpg`},resources:{title:`Free Node-RED training`,link:`https://node-red-academy.learnworlds.com/`,image:`/images/education/education_hero.jpg`},company:{title:`See how teams ship with FlowFuse`,link:`/customer-stories/`,image:`/images/stories/arch_systems.jpeg`}},Jr={_comment:"Canonical marketing chrome: the top mega nav and the footer link lists. Rendered by BOTH renderers, so a page added or removed here propagates to the whole site: Eleventy reads it as an 11ty _data file (as `chrome`) in src/_includes/layouts/base.njk, and Nuxt imports it directly in components/AppHeader.vue and components/AppFooter.vue. Icon keys are filenames in src/_includes/components/icons/; Nuxt resolves them through utils/navIcons.ts, which a unit test keeps in sync. Class strings are literal so Tailwind can see them (src/css/style.css has an @source for this file). An href of 'site:<key>' is resolved against src/_data/site.json at render time instead of being a literal URL, so values like the job board link stay single-sourced there.",header:{dropdowns:[{label:`Platform`,columns:[{title:`Overview`,titleGrid:`xl:col-start-2 xl:row-start-1`,listClasses:`row-span-6 xl:col-start-2 xl:row-start-2`,links:[{label:`Product`,href:`/product/`,icon:`star`},{label:`FlowFuse Edge`,href:`/product/edge/`,icon:`chip`,indent:!0},{label:`FlowFuse Hub`,href:`/product/hub/`,icon:`circle-stack`,indent:!0},{label:`FlowFuse Fleet`,href:`/product/fleet/`,icon:`server-stack`,indent:!0},{label:`Security Statement`,href:`/platform/security/`,icon:`lock-closed`},{label:`Pricing`,href:`/pricing/`,icon:`dollar`}]},{title:`Components`,titleGrid:`md:col-start-2 md:row-start-1 xl:col-start-3`,listClasses:`row-span-6 md:col-start-2 md:row-start-2 xl:col-start-3`,links:[{label:`FlowFuse Dashboard`,href:`/platform/dashboard/`,icon:`dashboard`},{label:`Device Agent`,href:`/platform/device-agent/`,icon:`device-agent`},{label:`Node-RED`,href:`/node-red/`,icon:`code-bracket`},{label:`FlowFuse Expert`,href:`/docs/user/expert/`,icon:`sparkles`},{label:`Integrations`,href:`/integrations/`,icon:`squares-plus`},{label:`Blueprint Library`,href:`/blueprints/`,icon:`building-library`}]},{title:`Capabilities`,titleGrid:`md:col-start-3 md:row-start-1 xl:col-start-4`,listClasses:`row-span-[7] md:col-start-3 md:row-start-2 xl:col-start-4`,links:[{label:`Industrial AI`,href:`/ai/`,icon:`sparkles`},{label:`IT/OT middleware`,href:`/use-cases/it-ot-middleware/`,icon:`cog`},{label:`Unified Namespace`,href:`/use-cases/uns/`,icon:`uns`},{label:`MES`,href:`/use-cases/mes/`,icon:`chart`}
125,{label:`SCADA`,href:`/use-cases/scada/`,icon:`screen`},{label:`Remote Device Management`,href:`/use-cases/remote-device-management/`,icon:`chip`},{label:`Data Integration`,href:`/use-cases/data-integration/`,icon:`arrows-right-left`}]}],megaClasses:`narrow mega md:grid md:grid-flow-col md:grid-rows-[repeat(8,auto)] md:pr-1 md:auto-rows-auto items-center`,highlight:`platform`},{label:`Solutions`,columns:[{title:`By Industry`,titleGrid:`xl:col-start-2 xl:row-start-1`,listClasses:`row-span-[4] xl:col-start-2 xl:row-start-2`,links:[{label:`Automotive`,href:`/industries/automotive/`,icon:`car`},{label:`Industrial Machinery`,href:`/industries/industrial-machinery/`,icon:`cog-6-tooth`},{label:`Building Materials`,href:`/industries/building-materials/`,icon:`building-office-2`},{label:`See all industries`,href:`/industries/`,icon:`arrow-right`}]},{title:`By Use Case`,titleGrid:`md:col-start-2 md:row-start-1 xl:col-start-3`,listClasses:`row-span-3 md:col-start-2 md:row-start-2 xl:col-start-3`,links:[{label:`Production Monitoring`,href:`/use-cases/production-monitoring/`,icon:`pulse`},{label:`Shop Floor Communication`,href:`/use-cases/shop-floor-communication/`,icon:`chat`},{label:`See all use cases`,href:`/use-cases/`,icon:`arrow-right`}]},{title:`By Integration`,titleGrid:`md:col-start-3 md:row-start-1 xl:col-start-4`,listClasses:`row-span-[9] md:col-start-3 md:row-start-2 xl:col-start-4`,links:[{label:`OPC UA`,href:`/integrations/opcua/`,icon:`server-stack`},{label:`See all integrations`,href:`/integrations/`,icon:`arrow-right`}]}
125],megaClasses:`narrow mega md:grid md:grid-flow-col md:grid-rows-[repeat(12,auto)] md:pr-1 md:auto-rows-auto items-center`,highlight:`solutions`},{label:`Resources`,columns:[{title:`Learn`,titleGrid:`xl:col-start-2 xl:row-start-1`,listClasses:`row-span-4 xl:col-start-2 xl:row-start-2`,links:[{label:`Blog`,href:`/blog/`,icon:`newspaper`},{label:`Webinars`,href:`/webinars/`,icon:`screen`},{label:`Publications`,href:`/resources/publications/`,icon:`book-open`},{label:`Node-RED Academy`,href:`https://node-red-academy.learnworlds.com/`,icon:`academic-cap`}]},{title:`Reference`,titleGrid:`md:col-start-2 md:row-start-1 xl:col-start-3`,listClasses:`row-span-5 md:col-start-2 md:row-start-2 xl:col-start-3`,links:[{label:`Guides`,href:`/docs/application-guide/`,icon:`book-open`},{label:`Docs`,href:`/docs/`,icon:`document-text`},{label:`Changelog`,href:`/changelog/`,icon:`rocket-launch`},{label:`Github`,href:`https://github.com/FlowFuse/flowfuse`,icon:`github`,solid:!0},{label:`Support forums`,href:`https://discourse.nodered.org/c/vendors/flowfuse/24/`,icon:`chat-bubble-left-right-sm`}]},{title:`Customers`,titleGrid:`md:col-start-3 md:row-start-1 xl:col-start-4`,listClasses:`row-span-3 md:col-start-3 md:row-start-2 xl:col-start-4`,links:[{label:`Customer Stories`,href:`/customer-stories/`,icon:`presentation`},{label:`ROI Calculator`,href:`/resources/roi-calculator/`,icon:`arrow-trending-up`}]}
125],megaClasses:`narrow mega md:grid md:grid-flow-col md:grid-rows-[repeat(6,auto)] md:pr-1 md:auto-rows-auto items-center`,highlight:`resources`},{label:`Company`,columns:[{title:`Company`,titleGrid:`xl:col-start-2 xl:row-start-1`,listClasses:`row-span-5 xl:col-start-2 xl:row-start-2`,links:[{label:`Why FlowFuse`,href:`/platform/why-flowfuse/`,icon:`flowfuse`},{label:`About us`,href:`/about/`,icon:`building-office-2`},{label:`Jobs`,href:`site:jobBoard`,icon:`case`},{label:`Handbook`,href:`/handbook/`,icon:`book-open`},{label:`Security certifications`,href:`/platform/security/#certifications`,icon:`certificate`}]},{title:`Partners & Services`,titleGrid:`md:col-start-2 md:row-start-1 xl:col-start-3`,listClasses:`row-span-2 md:col-start-2 md:row-start-2 xl:col-start-3`,links:[{label:`Partnerships`,href:`/partners/`,icon:`user-group`},{label:`Professional Services`,href:`/professional-services/`,icon:`wrench-screwdriver`}]},{title:`Support`,titleGrid:`md:col-start-3 md:row-start-1 xl:col-start-4`,listClasses:`row-span-3 md:col-start-3 md:row-start-2 xl:col-start-4`,links:[{label:`Service Status`,href:`https://status.flowfuse.com/`,icon:`check-badge`,solid:!0},{label:`Request Support`,href:`/support/`,icon:`lifebuoy`},{label:`Contact Us`,href:`/contact-us/`,icon:`mail`}]}
125],megaClasses:`narrow mega md:grid md:grid-flow-col md:grid-rows-[repeat(6,auto)] md:pr-1 md:auto-rows-auto items-center`,highlight:`company`}],direct:[{label:`Industrial AI`,href:`/ai/`,classes:`nav-collapsible`},{label:`Pricing`,href:`/pricing/`,classes:`nav-collapsible`}]},footer:{sections:[{title:`Platform`,gridClasses:`grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-2 gap-x-8 gap-y-8`,groups:[{title:`Overview`,links:[{label:`Product`,href:`/product/`},{label:`FlowFuse Edge`,href:`/product/edge/`},{label:`FlowFuse Hub`,href:`/product/hub/`},{label:`FlowFuse Fleet`,href:`/product/fleet/`},{label:`Security Statement`,href:`/platform/security/`},{label:`Pricing`,href:`/pricing/`}],classes:`lg:col-start-1 lg:row-start-1`},{title:`Components`,links:[{label:`FlowFuse Dashboard`,href:`/platform/dashboard/`},{label:`Device Agent`,href:`/platform/device-agent/`},{label:`Node-RED`,href:`/node-red/`},{label:`FlowFuse Expert`,href:`/docs/user/expert/`},{label:`Integrations`,href:`/integrations/`},{label:`Blueprint Library`,href:`/blueprints/`}],classes:`lg:col-start-1 lg:row-start-2`},{title:`Capabilities`,links:[{label:`Industrial AI`,href:`/ai/`},{label:`IT/OT middleware`,href:`/use-cases/it-ot-middleware/`},{label:`Unified Namespace`,href:`/use-cases/uns/`},{label:`MES`,href:`/use-cases/mes/`},{label:`SCADA`,href:`/use-cases/scada/`},{label:`Remote Device Management`,href:`/use-cases/remote-device-management/`},{label:`Data Integration`,href:`/use-cases/data-integration/`}],classes:`lg:col-start-2 lg:row-start-1 lg:row-span-2`}]},{title:`Solutions`,gridClasses:`grid grid-cols-2 sm:grid-cols-3 gap-x-8 gap-y-8`,groups:[{title:`By Industry`,links:[{label:`Automotive`,href:`/industries/automotive/`},{label:`Industrial Machinery`,href:`/industries/industrial-machinery/`},{label:`Building Materials`,href:`/industries/building-materials/`},{label:`See all industries`,href:`/industries/`}]},{title:`By Use Case`,links:[{label:`Production Monitoring`,href:`/use-cases/production-monitoring/`},{label:`Shop Floor Communication`,href:`/use-cases/shop-floor-communication/`},{label:`See all use cases`,href:`/use-cases/`}]},{title:`By Integration`,links:[{label:`OPC UA`,href:`/integrations/opcua/`},{label:`See all integrations`,href:`/integrations/`}]}]},{title:`Resources`,gridClasses:`grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-1 gap-x-8 gap-y-8`,groups:[{title:`Learn`,links:[{label:`Blog`,href:`/blog/`},{label:`Webinars`,href:`/webinars/`},{label:`Publications`,href:`/resources/publications/`},{label:`Node-RED Academy`,href:`https://node-red-academy.learnworlds.com/`}]},{title:`Reference`,links:[{label:`Guides`,href:`/docs/application-guide/`},{label:`Docs`,href:`/docs/`},{label:`Changelog`,href:`/changelog/`},{label:`Github`,href:`https://github.com/FlowFuse/flowfuse`},{label:`Support forums`,href:`https://discourse.nodered.org/c/vendors/flowfuse/24/`}]},{title:`Customers`,links:[{label:`Customer Stories`,href:`/customer-stories/`},{label:`Sign Up to Mailing List`,href:`/blog/#sign-up`,capture:{event:`cta-blog-subscribe`,props:{position:`footer`}}}]}]}],company:{grid:[{links:[{label:`Why FlowFuse`,href:`/platform/why-flowfuse/`},{label:`About us`,href:`/about/`},{label:`Jobs`,href:`site:jobBoard`},{label:`Security certifications`,href:`/platform/security/#certifications`}]},{links:[{label:`Handbook`,href:`/handbook/`},{label:`Partnerships`,href:`/partners/`}]},{links:[{label:`Professional Services`,href:`/professional-services/`},{label:`Service Status`,href:`https://status.flowfuse.com/`}]}],trailing:{links:[{label:`Request Support`,href:`/support/`},{label:`Contact Us`,href:`/contact-us/`}]}}}},Yr={id:`ff-header`,class:`ff-header`,"data-nav-zone":`header`},Xr={class:`relative w-full flex items-center justify-between xl:grid xl:grid-cols-header mx-auto max-screen-none lg:max-w-screen-xl 2xl:max-w-[1920px]`},Zr={class:`ff-logo-link hidden min-[420px]:flex md:hidden lg:flex no-underline hover:no-underline font-bold h-8 w-40 flex-row`,href:`/`,"aria-label":`FlowFuse Home`,style:{"font-family":`'Baloo 2', sans-serif`}},Qr={class:`flex items-center gap-2 md:hidden relative z-20`},$r={id:`nav-content`,class:``},ei=[`data-nav-section`],ti={class:`flex items-center gap-1`},ni={class:`ff-nav-label`},ri={class:`mega-highlight`},ii=[`href`],ai={class:`mega-highlight-title`},oi={class:`mega-highlight-media`}
125,si=[`src`],ci={class:`flex items-center gap-2`},li={class:`ff-nav-label`},ui={class:`contents`},di=[`href`],fi={class:`ff-nav-label`},pi=[`href`],mi={class:`ff-nav-label`},hi={class:`cta hidden md:flex flex-row items-center justify-end font-medium text no-underline z-10 bg-transparent w-auto`},gi={class:`hidden md:flex`},_i={class:`flex`},vi={id:`mobile-ctas`,class:`hidden fixed bottom-0 z-20`},yi={class:`grid grid-cols-2 gap-2`},bi={__name:`AppHeader`,setup(i){let f=e=>{let t=qr[e];return{...t,image:t.image||`/images/og-blog.jpg`}},g=y();return l(()=>{let e=document.getElementById(`nav-toggle`);e&&(e.onclick=function(){let t=document.getElementById(`ff-header`),n=document.getElementById(`nav-content`);if(!t||!n)return;let r=!t.classList.contains(`mobile-open`);e.classList.toggle(`mobile-open`),t.classList.toggle(`mobile-open`),document.documentElement.classList.toggle(`nav-scroll-lock`,r),r?n.style.top=t.getBoundingClientRect().bottom+`px`:n.style.top=``}),window.addEventListener(`resize`,()=>{if(window.innerWidth>=768){document.getElementById(`nav-toggle`)?.classList.remove(`mobile-open`),document.getElementById(`ff-header`)?.classList.remove(`mobile-open`),document.documentElement.classList.remove(`nav-scroll-lock`);let e=document.getElementById(`nav-content`);e&&(e.style.top=``)}}),document.querySelectorAll(`header .ff-nav-dropdown > span`).forEach(e=>{e.addEventListener(`click`,t=>{window.innerWidth<768&&(t.preventDefault(),t.stopPropagation(),e.parentElement.classList.toggle(`mobile-expanded`))})});let t=document.getElementById(`nav-content`),n=document.querySelector(`.ff-header nav`),r=document.getElementById(`nav-more`),i=document.getElementById(`nav-more-list`);if(!t||!r||!i||!n)return;function a(){let e=n.getBoundingClientRect().right,t=Array.from(n.children).filter(e=>e.offsetWidth>0),r=t[t.length-1];return r&&r.getBoundingClientRect().right>e+1+24}function o(){if(window.innerWidth<768){r.style.display=`none`,t.querySelectorAll(`.nav-collapsible`).forEach(e=>{e.style.display=``});return}for(t.querySelectorAll(`.nav-collapsible`).forEach(e=>{e.style.display=``}),r.style.display=`none`;i.firstChild;)i.removeChild(i.firstChild);if(!a())return;r.style.display=``;let e=Array.from(t.querySelectorAll(`.nav-collapsible`)).reverse();for(let t=0;t<e.length;t++){let n=e[t];if(!a())break;let r=n.querySelector(`a`);if(r){let e=document.createElement(`li`),t=document.createElement(`a`);t.className=`flex items-center gap-2`,t.href=r.getAttribute(`href`),t.textContent=r.textContent.trim(),e.appendChild(t),i.prepend(e)}n.style.display=`none`}i.children.length===0&&(r.style.display=`none`)}let s;window.addEventListener(`resize`,()=>{clearTimeout(s),s=setTimeout(o,50)}),document.fonts&&document.fonts.ready?document.fonts.ready.then(o):window.addEventListener(`load`,o),o()}),(i,l)=>{let _=Kr,y=h,b=v,x=p,S=m;return u(),s(`header`,Yr,[o(`nav`,Xr,[o(`a`,Zr,[r(_,{uid:`header`,color:`#DA3D0B`})]),l[3]||=a(`<a class="ff-logo-link w-8 h-8 block min-[420px]:hidden md:block lg:hidden shrink-0" href="/" aria-label="FlowFuse Home"><svg class="ff-wave-square" enable-background="new 0 0 79.4 79.4" viewBox="0 0 79.4 79.4" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="ffWaveSquare" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="79.4" y2="0"><stop offset="0" stop-color="#ED4E4E"></stop><stop offset="0.25" stop-color="#ED4E4E"></stop><stop offset="0.5" stop-color="#ED4E4E"></stop><stop offset="0.75" stop-color="#ED4E4E"></stop><stop offset="1" stop-color="#ED4E4E"></stop></linearGradient></defs><path fill-rule="evenodd" clip-rule="evenodd" d="M6.28751 0H73.5639C77.022 0 79.8514 2.83457 79.8514 6.29905V25.5112C70.4201 25.1962 60.9888 27.4009 52.1863 31.1803C49.3488 32.2807 46.5646 33.5413 43.7871 34.7989C37.0251 37.8605 30.3032 40.904 22.9494 41.5737C17.2809 42.047 11.435 41.9869 5.67825 41.9277C3.77251 41.9082 1.87653 41.8887 0 41.8887V6.29905C0 2.83457 2.82938 0 6.28751 0ZM44.0131 48.1865C45.9468 49.0061 47.863 49.861 49.7741 50.7136L49.7742 50.7136C55.9409 53.4649 62.0544 56.1924 68.5343 57.635C72.3069 58.2649 76.0794 58.5799 79.8519 58.5799V37.793H76.7081C67.2021 37.793 58.326 41.7897 49.7365 45.6572L49.7363 45.6573C47.8155 46.5222 45.909 47.3806 44.0131 48.1865ZM19.8057 54.8032C16.0332 54.4883 12.2606 54.4883 8.48814 54.4883H0V73.7004C0 77.1649 2.82938 79.9994 6.28751 79.9994H73.8782C77.3364 79.9994 80.1657 77.1649 80.1657 73.7004V71.
1251808C71.992 71.1808 63.5038 70.2359 55.9588 67.0864C51.7804 65.691 47.7481 63.8567 43.7373 62.0322L43.7373 62.0322C35.9794 58.5031 28.3023 55.0108 19.8057 54.8032Z" fill="url(#ffWaveSquare)"></path><path d="M79.8514 37.7939V25.1958C70.4201 24.8808 60.9888 27.0855 52.1863 30.8649C42.4407 34.6444 33.3238 40.3135 22.9494 41.2584C15.4044 41.8883 7.54501 41.5733 0 41.5733V54.4864H8.48814C12.2606 54.4864 16.0331 54.4864 19.8057 54.8013C32.695 55.1163 43.6982 62.9901 55.6445 67.0845C63.1895 70.234 71.6776 71.1789 79.8514 71.1789V58.5807C76.0789 58.5807 72.3064 58.2658 68.5338 57.6359C60.0457 55.7462 52.1863 51.6518 44.0126 48.1873C54.387 43.778 65.0757 37.7939 76.7076 37.7939H79.8514Z" fill="white"></path></svg></a>`,1),o(`div`,Qr,[r(y,{variant:`primary`,position:`header-mobile`}),l[0]||=a(`<button id="nav-toggle" class="text-gray-700 flex items-center text-red-hero"><svg class="burger fill-current h-4 w-4" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><title>Menu</title><path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z"></path></svg><svg class="close fill-current h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path></svg></button>`,1)]),o(`ul`,$r,[(u(!0),s(d,null,c(e(Jr).header.dropdowns,i=>(u(),s(`li`,{key:i.label,class:`ff-nav-dropdown relative hover:cursor-pointer`,"data-nav-section":i.label},[o(`span`,ti,[o(`span`,ni,t(i.label),1),l[1]||=o(`span`,{class:`ff-nav-chevron`},[o(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,"stroke-width":`1.5`,stroke:`currentColor`,class:`w-5 h-5 ff-icon--down`},[o(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M19.5 8.25l-7.5 7.5-7.5-7.5`})])],-1)]),o(`ul`,{class:n(i.megaClasses)},[o(`li`,ri,[o(`a`,{href:f(i.highlight).link,class:`mega-highlight-card`},[o(`span`,ai,t(f(i.highlight).title),1),o(`span`,oi,[o(`img`,{src:f(i.highlight).image,alt:``,loading:`lazy`},null,8,si)])],8,ii)]),(u(!0),s(d,null,c(i.columns,i=>(u(),s(d,{key:i.title},[o(`li`,{class:n([`pl-3 title border-l-2 border-gray-200`,i.titleGrid])},[o(`span`,ci,[o(`span`,li,t(i.title),1)])],2),o(`li`,ui,[o(`ul`,{class:n([`sub-menu grid grid-rows-subgrid ml-7 auto-rows-auto border-l-2 border-gray-200`,i.listClasses])},[(u(!0),s(d,null,c(i.links,i=>(u(),s(`li`,{key:i.label,class:n({"nav-indent":i.indent})},[o(`a`,{class:`flex items-center gap-2`,href:e(g)(i.href)},[r(b,{name:i.icon,solid:!!i.solid},null,8,[`name`,`solid`]),o(`span`,fi,t(i.label),1)],8,di)],2))),128))],2)])],64))),128))],2)],8,ei))),128)),(u(!0),s(d,null,c(e(Jr).header.direct,e=>(u(),s(`li`,{key:e.label,class:n(e.classes)},[o(`a`,{class:`flex items-center gap-2`,href:e.href},[o(`span`,mi,t(e.label),1)],8,pi)],2))),128)),l[2]||=a(`<li id="nav-more" class="ff-nav-dropdown relative hover:cursor-pointer" style="display:none;" data-nav-section="More"><span class="flex items-center gap-1"><span class="ff-nav-label">More</span><span class="ff-nav-chevron"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5 ff-icon--down"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5"></path></svg></span></span><ul id="nav-more-list" class="align-left"></ul></li>`,1)]),o(`ul`,hi,[o(`li`,gi,[r(x,{variant:`nav-text`,position:`main-nav`,padded:``,class:`ff-nav-freetrial text-base`})]),o(`li`,_i,[r(y,{variant:`primary`,position:`main-nav`,class:`ml-2`})])])]),o(`div`,vi,[o(`div`,yi,[r(S,{variant:`primary-outlined`,position:`mobile-cta-bar`}),r(x,{variant:`primary-outlined`,position:`mobile-cta-bar`})]),r(y,{variant:`primary`,position:`mobile-cta-bar`})])])}}},xi={class:`ff-footer bg-gray-100 w-full`,"data-nav-zone":`footer`},Si={class:`pt-20 pb-12 px-6 max-w-screen-xl mx-auto`},Ci={class:`grid grid-cols-1 lg:grid-cols-[2fr_3fr_1fr] gap-x-8 gap-y-12 text-sm`},wi=[`data-nav-section`],Ti={class:`text-lg font-medium text-gray-900 mb-6`},Ei={class:`uppercase text-xs font-semibold text-gray-400 tracking-widest mb-4`},Di={class:`flex flex-col gap-2.5`},Oi=[`href`,`onClick`],ki={class:`mt-12 border-t border-gray-300 pt-9`,"data-nav-section":`Company`},Ai={class:`grid grid-cols-1 lg:grid-cols-[2fr_3fr_1fr] gap-x-8 gap-y-8 text-sm`},ji={href:`/`,class:`ff-logo-link ff-footer-logo block w-40 no-underline hover:no-underline`,"aria-label":`FlowFuse home`},Mi={class:`grid grid-cols-2 sm:grid-cols-3 gap-x-8 gap-y-8`},Ni={class:`flex flex-col gap-2.5`},Pi=[`href`],Fi={class:`flex flex-col gap-2.5`},Ii=[`href`],Li={class:`mt-12 pt-6 border-t border-gray-200 flex flex-col md:flex-row md:items-center md:justify-between gap-4 text-sm text-gray-500`,"data-nav-section":`Legal and social`},Ri={class:`flex flex-wrap items-center gap-x-2 gap-y-1`},zi={class:`flex flex-wrap items-center gap-x-4 gap-y-2`},Bi={href:`https://www.facebook.com/FlowFuse/`,class:`block`},Vi={href:`https://github.com/FlowFuse`,class:`block`},Hi={href:`https://www.reddit.com/r/flowfuse`,class:`block`},Ui={href:`https://www.linkedin.com/company/flowfuse`,class:`block`},Wi={__name:`AppFooter`,setup(i){let l=y(),f=e=>{!e.capture||typeof window>`u`||!window.capture||window.capture(e.capture.event,e.capture.props)};return(i,p)=>{let m=Kr,h=b,g=S,_=x,v=ee;return u(),s(`footer`,xi,[o(`div`,Si,[o(`div`,Ci,[(u(!0),s(d,null,c(e(Jr).footer.sections,r=>(u(),s(`section`,{key:r.title,class:`pt-5`,"data-nav-section":r.title}
125,[o(`p`,Ti,t(r.title),1),o(`div`,{class:n(r.gridClasses)},[(u(!0),s(d,null,c(r.groups,r=>(u(),s(`div`,{key:r.title,class:n(r.classes)},[o(`p`,Ei,t(r.title),1),o(`ul`,Di,[(u(!0),s(d,null,c(r.links,n=>(u(),s(`li`,{key:n.label},[o(`a`,{href:e(l)(n.href),onClick:e=>f(n)},t(n.label),9,Oi)]))),128))])],2))),128))],2)],8,wi))),128))]),o(`section`,ki,[o(`div`,Ai,[o(`div`,null,[o(`a`,ji,[r(m,{uid:`footer`,color:`#1F2937`})])]),o(`div`,Mi,[(u(!0),s(d,null,c(e(Jr).footer.company.grid,(n,r)=>(u(),s(`div`,{key:r},[o(`ul`,Ni,[(u(!0),s(d,null,c(n.links,n=>(u(),s(`li`,{key:n.label},[o(`a`,{href:e(l)(n.href)},t(n.label),9,Pi)]))),128))])]))),128))]),o(`div`,null,[o(`ul`,Fi,[(u(!0),s(d,null,c(e(Jr).footer.company.trailing.links,n=>(u(),s(`li`,{key:n.label},[o(`a`,{href:e(l)(n.href)},t(n.label),9,Ii)]))),128))])])])]),o(`div`,Li,[o(`div`,Ri,[o(`span`,null,`Copyright `+t(new Date().getFullYear())+` FlowFuse Inc. All Rights Reserved.`,1),p[0]||=a(`<span aria-hidden="true">·</span><a href="/privacy-policy/">Privacy</a><span aria-hidden="true">·</span><a href="/terms/">Terms</a><span aria-hidden="true">·</span><a class="cursor-pointer" type="button" data-cc="show-preferencesModal">Cookie preferences</a>`,6)]),o(`div`,zi,[o(`a`,Bi,[p[1]||=o(`span`,{class:`sr-only`},`Visit our Facebook page`,-1),r(h,{class:`h-5 hover:text-red-hero`})]),o(`a`,Vi,[p[2]||=o(`span`,{class:`sr-only`},`Visit our GitHub page`,-1),r(g,{class:`hover:text-red-hero h-5`})]),p[5]||=o(`a`,{href:`https://discord.gg/2RrvW8dkrF`,class:`block`},[o(`span`,{class:`sr-only`},`Join our Discord`),o(`svg`,{class:`fill-current hover:text-red-hero h-5`,width:`22`,height:`17`,viewBox:`0 0 22 17`,xmlns:`http://www.w3.org/2000/svg`},[o(`path`,{d:`M18.6361 1.39641C17.1907 0.734661 15.6648 0.265193 14.0973 0C13.8828 0.38343 13.6888 0.777928 13.5159 1.18184C11.8463 0.930252 10.1484 0.930252 8.47881 1.18184C8.30587 0.77797 8.1118 0.383476 7.8974 0C6.32897 0.267433 4.80205 0.738015 3.35518 1.39987C0.482757 5.64967 -0.29591 9.79391 0.0934235 13.8793C1.77558 15.1222 3.6584 16.0674 5.66003 16.6739C6.11074 16.0677 6.50956 15.4246 6.85226 14.7514C6.20135 14.5083 5.57311 14.2084 4.9748 13.8551C5.13227 13.7409 5.28627 13.6232 5.43508 13.509C7.17601 14.3277 9.07613 14.7522 11 14.7522C12.9238 14.7522 14.8239 14.3277 16.5648 13.509C16.7154 13.6319 16.8694 13.7495 17.0251 13.8551C16.4257 14.209 15.7963 14.5095 15.1442 14.7532C15.4865 15.426 15.8853 16.0686 16.3364 16.6739C18.3398 16.0698 20.224 15.1251 21.9065 13.881C22.3633 9.14329 21.1261 5.03711 18.6361 1.39641ZM7.34541 11.3668C6.26047 11.3668 5.36414 10.3822 5.36414 9.17097C5.36414 7.95971 6.22932 6.96648 7.34195 6.96648C8.45458 6.96648 9.34399 7.95971 9.32496 9.17097C9.30593 10.3822 8.45112 11.3668 7.34541 11.3668ZM14.6545 11.3668C13.5678 11.3668 12.675 10.3822 12.675 9.17097C12.675 7.95971 13.5401 6.96648 14.6545 6.96648C15.7689 6.96648 16.6514 7.95971 16.6323 9.17097C16.6133 10.3822 15.7602 11.3668 14.6545 11.3668Z`})])],-1),o(`a`,Hi,[p[3]||=o(`span`,{class:`sr-only`},`Visit our Reddit community`,-1),r(_,{class:`h-5 hover:text-red-hero`})]),p[6]||=o(`a`,{href:`/blog/index.xml`,class:`block`},[o(`span`,{class:`sr-only`},`Subscribe to our RSS feed`),o(`svg`,{class:`fill-current hover:text-red-hero`,xmlns:`http://www.w3.org/2000/svg`,width:`18`,height:`18`,viewBox:`0 0 24 24`},[o(`path`,{d:`M6.503 20.752c0 1.794-1.456 3.248-3.251 3.248-1.796 0-3.252-1.454-3.252-3.248 0-1.794 1.456-3.248 3.252-3.248 1.795.001 3.251 1.454 3.251 3.248zm-6.503-12.572v4.811c6.05.062 10.96 4.966 11.022 11.009h4.817c-.062-8.71-7.118-15.758-15.839-15.82zm0-3.368c10.58.046 19.152 8.594 19.183 19.188h4.817c-.03-13.231-10.755-23.954-24-24v4.812z`})])],-1),o(`a`,Ui,[p[4]||=o(`span`,{class:`sr-only`},`Visit our LinkedIn page`,-1),r(v,{class:`h-5 hover:text-red-hero`})]),p[7]||=o(`a`,{href:`https://www.youtube.com/channel/UCbBzP8NZbv3WDtlt4UouA-g`,class:`block`},[o(`span`,{class:`sr-only`},`Visit our YouTube channel`),o(`svg`,{class:`fill-current h-5 hover:text-red-hero`,width:`28`,height:`20`,viewBox:`0 0 28 20`,xmlns:`http://www.w3.org/2000/svg`},[o(`path`,{d:`M27.3016 2.97749C26.9889 1.80488 26.0709 0.88338 24.9028 0.569489C22.7854 0 14.3001 0 14.3001 0C14.3001 0 5.81476 0 3.69957 0.569489C2.53142 0.88338 1.61342 1.80488 1.30072 2.97749C0.733398 5.10074 0.733398 9.53333 0.733398 9.53333C0.733398 9.53333 0.733398 13.9659 1.30072 16.0892C1.61342 17.2618 2.53142 18.1833 3.69957 18.4972C5.81476 19.0667 14.3001 19.0667 14.3001 19.0667C14.3001 19.0667 22.7854 19.0667 24.9006 18.4972C26.0687 18.1833 26.9867 17.2618 27.2994 16.0892C27.8667 13.9659 27.8667 9.53333 27.8667 9.53333C27.8667 9.53333 27.8667 5.10074 27.2994 2.97749H27.3016ZM11.5863 13.6184V5.44826L18.6354 9.53333L11.5863 13.6184Z`})])],-1)])])])])}}},Gi={},Ki={class:`font-sans ff-website leading-normal tracking-normal gradient text-gray-500 min-h-screen flex flex-col`},qi={class:`flex-grow base`},Ji={class:`w-full`},Yi={id:`main-content`,class:`flex flex-col mx-auto items-center justify-center bg-white gradient-bg`};function Xi(e,t){let n=Er,i=bi,a=Wi;return u(),s(`div`,Ki,[t[0]||=o(`a`,{href:`#main-content`,class:`skip-to-main`},`Skip to main content`,-1),r(n),r(i),o(`div`,qi,[o(`div`,Ji,[o(`main`,Yi,[f(e.$slots,`default`)])])]),r(a)])}var Zi=g(Gi,[[`render`,Xi]]);
125export{Zi as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.