2 lines
154 KiB
JavaScript
Vendored
2 lines
154 KiB
JavaScript
Vendored
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e.prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.yaml=t())}(this,function(){"use strict";var e=function(e,t){var n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n};var t=function(e){return/^\s*#[^\n\S]*@(prettier|format)\s*?(\n|$)/.test(e)};var n=function e(t,n,r){return n("children"in t?Object.assign({},t,{children:t.children.map(function(r){return e(r,n,t)})}):t,r)},r=function(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1})},o=function(){return{type:"null",position:{start:{line:-1,column:-1,offset:-1},end:{line:-1,column:-1,offset:-1}}}};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e,t){return e(t={exports:{}},t.exports),t.exports}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};var c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};function f(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function p(e){return this instanceof p?(this.v=e,this):new p(e)}var h=Object.freeze({__extends:function(e,t){function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},__assign:c,__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},__decorate:function(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":u(Reflect))&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"===("undefined"==typeof Reflect?"undefined":u(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))(function(o,a){function i(e){try{s(r.next(e))}catch(e){a(e)}}function u(e){try{s(r.throw(e))}catch(e){a(e)}}function s(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(i,u)}s((r=r.apply(e,t||[])).next())})},__generator:function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=r[2&a[0]?"return":a[0]?"throw":"next"])&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[0,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},__exportStar:function(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])},__values:f,__read:l,__spread:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e},__await:p,__asyncGenerator:function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),a=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||u(e,t)})})}function u(e,t){try{(n=o[e](t)).value instanceof p?Promise.resolve(n.value.v).then(s,c):f(a[0][2],n)}catch(e){f(a[0][3],e)}var n}function s(e){u("next",e)}function c(e){u("throw",e)}function f(e,t){e(t),a.shift(),a.length&&u(a[0][0],a[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:p(e[r](t)),done:"return"===r}:o?o(t):t}:o}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,o,(t=e[n](t)).done,t.value)})}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}}}),d=i(function(e,t){var n="\n",r="\r",o=function(){function e(e){this.string=e;for(var t=[0],o=0;o<e.length;)switch(e[o]){case n:o+=n.length,t.push(o);break;case r:e[o+=r.length]===n&&(o+=n.length),t.push(o);break;default:o++}this.offsets=t}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length?null:n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();t.__esModule=!0,t.default=o});a(d);var y=i(function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.start=t,this.end=n||t}return r(e,null,[{key:"copy",value:function(t){return new e(t.start,t.end)}}]),r(e,[{key:"apply",value:function(e){return this.isEmpty?"":e.slice(this.start,this.end)}},{key:"isEmpty",get:function(){return"number"!=typeof this.start||!this.end||this.end<=this.start}},{key:"length",get:function(){return this.isEmpty?0:this.end-this.start}}]),e}();t.default=o});a(y);var v=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Char=t.Type=void 0;var n,r=(n=y)&&n.__esModule?n:{default:n};function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}var u={ALIAS:"ALIAS",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"};t.Type=u;var s={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};t.Char=s;var c=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.context=r||null,this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=t,this.value=null}return i(e,null,[{key:"addStringTerminator",value:function(t,n,r){if("\n"===r[r.length-1])return r;var o=e.endOfWhiteSpace(t,n);return o>=t.length||"\n"===t[o]?r+"\n":r}},{key:"atDocumentBoundary",value:function(e,t,n){var r=e[t];if(!r)return!0;var o=e[t-1];if(o&&"\n"!==o)return!1;if(n){if(r!==n)return!1}else if(r!==s.DIRECTIVES_END&&r!==s.DOCUMENT_END)return!1;var a=e[t+1],i=e[t+2];if(a!==r||i!==r)return!1;var u=e[t+3];return!u||"\n"===u||"\t"===u||" "===u}},{key:"endOfIdentifier",value:function(e,t){for(var n=e[t],r="<"===n,o=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];n&&-1===o.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}},{key:"endOfIndent",value:function(e,t){for(var n=e[t];" "===n;)n=e[t+=1];return t}},{key:"endOfLine",value:function(e,t){for(var n=e[t];n&&"\n"!==n;)n=e[t+=1];return t}},{key:"endOfWhiteSpace",value:function(e,t){for(var n=e[t];"\t"===n||" "===n;)n=e[t+=1];return t}},{key:"startOfLine",value:function(e,t){for(var n=e[t-1];n&&"\n"!==n;)n=e[t-=1];return t+1}},{key:"endOfBlockIndent",value:function(t,n,r){var o=e.endOfIndent(t,r);if(o>r+n)return o;var a=e.endOfWhiteSpace(t,o),i=t[a];return i&&"\n"!==i?null:a}},{key:"atBlank",value:function(e,t){var n=e[t];return"\n"===n||"\t"===n||" "===n}},{key:"atCollectionItem",value:function(t,n){var r=t[n];return("?"===r||":"===r||"-"===r)&&e.atBlank(t,n+1)}},{key:"nextNodeIsIndented",value:function(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}},{key:"normalizeOffset",value:function(t,n){var r=t[n];return r?"\n"!==r&&"\n"===t[n-1]?n-1:e.endOfWhiteSpace(t,n):n}},{key:"foldNewline",value:function(t,n,r){for(var o=0,a=!1,i="",u=t[n+1];" "===u||"\t"===u||"\n"===u;){switch(u){case"\n":o=0,n+=1,i+="\n";break;case"\t":o<=r&&(a=!0),n=e.endOfWhiteSpace(t,n+2)-1;break;case" ":o+=1,n+=1}u=t[n+1]}return i||(i=" "),u&&o<=r&&(a=!0),{fold:i,offset:n,error:a}}}]),i(e,[{key:"getPropValue",value:function(e,t,n){if(!this.context)return null;var r=this.context.src,o=this.props[e];return o&&r[o.start]===t?r.slice(o.start+(n?1:0),o.end):null}},{key:"commentHasRequiredWhitespace",value:function(t){var n=this.context.src;if(this.header&&t===this.header.end)return!1;if(this.valueRange){var r=this.valueRange.end;return t!==r||e.atBlank(n,r-1)}}},{key:"parseComment",value:function(t){var n=this.context.src;if(n[t]===s.COMMENT){var o=e.endOfLine(n,t+1),a=new r.default(t,o);return this.props.push(a),o}return t}},{key:"toString",value:function(){var t=this.context.src,n=this.range,r=this.value;if(null!=r)return r;var o=t.slice(n.start,n.end);return e.addStringTerminator(t,n.end,o)}},{key:"anchor",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,s.ANCHOR,!0);if(null!=t)return t}return null}},{key:"comment",get:function(){for(var e=[],t=0;t<this.props.length;++t){var n=this.getPropValue(t,s.COMMENT,!0);null!=n&&e.push(n)}return e.length>0?e.join("\n"):null}},{key:"hasComment",get:function(){if(this.context)for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]===s.COMMENT)return!0;return!1}},{key:"hasProps",get:function(){if(this.context)for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]!==s.COMMENT)return!0;return!1}},{key:"jsonLike",get:function(){return-1!==[u.FLOW_MAP,u.FLOW_SEQ,u.QUOTE_DOUBLE,u.QUOTE_SINGLE].indexOf(this.type)}},{key:"rawValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end;return this.context.src.slice(t,n)}},{key:"tag",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,s.TAG,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};var n=o(t.match(/^(.*!)([^!]*)$/),3);n[0];return{handle:n[1],suffix:n[2]}}}return null}},{key:"valueRangeContainsNewline",get:function(){if(!this.valueRange||!this.context)return!1;for(var e=this.valueRange,t=e.start,n=e.end,r=this.context.src,o=t;o<n;++o)if("\n"===r[o])return!0;return!1}}]),e}();t.default=c});a(v);var m=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLWarning=t.YAMLSyntaxError=t.YAMLSemanticError=t.YAMLReferenceError=void 0;var n,r=(n=v)&&n.__esModule?n:{default:n};function o(e){return(o="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e)return null;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return f(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,e)})(e)}function f(e,t,n){return(f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&l(o,n.prototype),o}).apply(null,arguments)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){function t(e,n){var o;if(a(this,t),!(n&&e instanceof r.default))throw new Error("Invalid arguments for new YAMLReferenceError");return(o=i(this,p(t).call(this))).name="YAMLReferenceError",o.message=n,o.source=e,o}return s(t,c(ReferenceError)),t}();t.YAMLReferenceError=h;var d=function(e){function t(e,n){var o;if(a(this,t),!(n&&e instanceof r.default))throw new Error("Invalid arguments for new YAMLSemanticError");return(o=i(this,p(t).call(this))).name="YAMLSemanticError",o.message=n,o.source=e,o}return s(t,c(SyntaxError)),t}();t.YAMLSemanticError=d;var y=function(e){function t(e,n){var o;if(a(this,t),!(n&&e instanceof r.default))throw new Error("Invalid arguments for new YAMLSyntaxError");return(o=i(this,p(t).call(this))).name="YAMLSyntaxError",o.message=n,o.source=e,o}return s(t,c(SyntaxError)),t}();t.YAMLSyntaxError=y;var m=function(e){function t(e,n){var o;if(a(this,t),!(n&&e instanceof r.default))throw new Error("Invalid arguments for new YAMLWarning");return(o=i(this,p(t).call(this))).name="YAMLWarning",o.message=n,o.source=e,o}return s(t,c(Error)),t}();t.YAMLWarning=m});a(m);var g=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(v),o=(n=y)&&n.__esModule?n:{default:n};function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,c(t).call(this,r.Type.COMMENT))}var n,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,r.default),n=t,(a=[{key:"parse",value:function(e,t){this.context=e;e.src;var n=this.parseComment(t);return this.range=new o.default(t,n),n}}])&&i(n.prototype,a),u&&i(n,u),t}();t.default=l});a(g);var b=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(v),o=(n=y)&&n.__esModule?n:{default:n};function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=i(this,s(t).call(this,r.Type.DIRECTIVE))).name=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,r.default),f(t,null,[{key:"endOfDirective",value:function(e,t){for(var n=e[t];n&&"\n"!==n&&"#"!==n;)n=e[t+=1];for(n=e[t-1];" "===n||"\t"===n;)n=e[(t-=1)-1];return t}}]),f(t,[{key:"parseName",value:function(e){for(var t=this.context.src,n=e,r=t[n];r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}},{key:"parseParameters",value:function(e){for(var t=this.context.src,n=e,r=t[n];r&&"\n"!==r&&"#"!==r;)r=t[n+=1];return this.valueRange=new o.default(e,n),n}},{key:"parse",value:function(e,t){this.context=e;e.src;var n=this.parseName(t+1);return n=this.parseParameters(n),n=this.parseComment(n),this.range=new o.default(t,n),n}},{key:"parameters",get:function(){var e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}}]),t}();t.default=p});a(b);var _=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(g),r=i(b),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(v),a=i(y);function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function c(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=c(this,f(t).call(this,o.Type.DOCUMENT))).directives=null,e.contents=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,o.default),p(t,null,[{key:"startCommentOrEndBlankLine",value:function(e,t){var n=o.default.endOfWhiteSpace(e,t),r=e[n];return"#"===r||"\n"===r?n:t}}]),p(t,[{key:"parseDirectives",value:function(e){var a=this.context.src;this.directives=[];for(var i=!1,u=e;!o.default.atDocumentBoundary(a,u,o.Char.DIRECTIVES_END);)switch(a[u=t.startCommentOrEndBlankLine(a,u)]){case"\n":u+=1;break;case"#":var s=new n.default;u=s.parse({src:a},u),this.directives.push(s);break;case"%":var c=new r.default;u=c.parse({parent:this,src:a},u),this.directives.push(c),i=!0;break;default:return i?this.error=new m.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),u}return a[u]?u+3:(i?this.error=new m.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),u)}},{key:"parseContents",value:function(e){var r=this.context,i=r.parseNode,u=r.src;this.contents||(this.contents=[]);for(var s=e;"-"===u[s-1];)s-=1;var c=o.default.endOfWhiteSpace(u,e),f=s===e;for(this.valueRange=new a.default(c);!o.default.atDocumentBoundary(u,c,o.Char.DOCUMENT_END);){switch(u[c]){case"\n":s=c+=1,f=!0;break;case"#":var l=new n.default;c=l.parse({src:u},c),this.contents.push(l);break;default:var p=o.default.endOfIndent(u,c),h=i({atLineStart:f,indent:-1,inFlow:!1,inCollection:!1,lineStart:s,parent:this},p);if(!h)return p;this.contents.push(h),this.valueRange.end=h.valueRange.end,c=h.range.end,f=!1}c=t.startCommentOrEndBlankLine(u,c)}if(u[c]&&u[c+=3]){if("#"===u[c=o.default.endOfWhiteSpace(u,c)]){var d=new n.default;c=d.parse({src:u},c),this.contents.push(d)}switch(u[c]){case"\n":c+=1;break;case void 0:break;default:this.error=new m.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return c}},{key:"parse",value:function(e,t){this.context=e;var n=65279===e.src.charCodeAt(t)?t+1:t;return n=this.parseDirectives(n),n=this.parseContents(n)}},{key:"toString",value:function(){var e=this.contents,t=(this.context.src,this.directives),n=this.value;if(null!=n)return n;var r=t.join("");return e.length>0&&((t.length>0||e[0].type===o.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}]),t}();t.default=d});a(_);var w=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(v),r=o(y);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,c(t).apply(this,arguments))}var o,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,n.default),o=t,(a=[{key:"parse",value:function(e,t){this.context=e;var o=e.src,a=n.default.endOfIdentifier(o,t+1);return this.valueRange=new r.default(t+1,a),a=n.default.endOfWhiteSpace(o,a),a=this.parseComment(a)}}])&&i(o.prototype,a),u&&i(o,u),t}();t.default=l});a(w);var O=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Chomp=void 0;var n,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(v),o=(n=y)&&n.__esModule?n:{default:n};function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};t.Chomp=l;var p=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=s(this,c(t).call(this,e,n))).blockIndent=null,r.chomping=l.CLIP,r.header=null,r}var n,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,r.default),n=t,(a=[{key:"parseBlockHeader",value:function(e){for(var t=this.context.src,n=e+1,r="";;){var a=t[n];switch(a){case"-":this.chomping=l.STRIP;break;case"+":this.chomping=l.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r+=a;break;default:return this.blockIndent=Number(r)||null,this.header=new o.default(e,n),n}n+=1}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,n=t.indent,a=(t.inFlow,t.src),i=e,u=this.blockIndent?n+this.blockIndent-1:n,s=1,c=a[i];"\n"===c&&(i+=1,!r.default.atDocumentBoundary(a,i));c=a[i]){var f=r.default.endOfBlockIndent(a,u,i);if(null===f)break;if(!this.blockIndent){var l=f-(i+n);if("\n"!==a[f]){if(l<s){i-=1;break}this.blockIndent=l,u=n+this.blockIndent-1}else l>s&&(s=l)}i=r.default.endOfLine(a,f)}return this.valueRange=new o.default(e+1,i),i}},{key:"parse",value:function(e,t){this.context=e;var n=e.src,o=this.parseBlockHeader(t);return o=r.default.endOfWhiteSpace(n,o),o=this.parseComment(o),o=this.parseBlockValue(o)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end,o=this.context,a=o.indent,i=o.src;if(this.valueRange.isEmpty)return"";for(var u=null,s=i[n-1];"\n"===s||"\t"===s||" "===s;){if((n-=1)<=t){if(this.chomping===l.KEEP)break;return""}"\n"===s&&(u=n),s=i[n-1]}var c=n+1;u&&(this.chomping===l.KEEP?(c=u,n=this.valueRange.end):n=u);for(var f=a+this.blockIndent,p=this.type===r.Type.BLOCK_FOLDED,h=!0,d="",y="",v=!1,m=t;m<n;++m){for(var g=0;g<f&&" "===i[m];++g)m+=1;var b=i[m];if("\n"===b)"\n"===y?d+="\n":y="\n";else{var _=r.default.endOfLine(i,m),w=i.slice(m,_);m=_,p&&(" "===b||"\t"===b)&&m<c?(" "===y?y="\n":v||h||"\n"!==y||(y="\n\n"),d+=y+w,y=_<n&&i[_]||"",v=!0):(d+=y+w,y=p&&m<c?" ":"\n",v=!1),h&&""!==w&&(h=!1)}}return this.chomping===l.STRIP?d:d+"\n"}}])&&i(n.prototype,a),u&&i(n,u),t}();t.default=p});a(O);var E=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(v),o=(n=y)&&n.__esModule?n:{default:n};function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=s(this,c(t).call(this,e,n))).node=null,r}var n,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,r.default),n=t,(a=[{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,a=e.src,i=e.atLineStart,u=e.lineStart;i||this.type!==r.Type.SEQ_ITEM||(this.error=new m.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));for(var s=i?t-u:e.indent,c=r.default.endOfWhiteSpace(a,t+1),f=a[c];"\n"===f||"#"===f;){var l=c+1;if("#"===f){var p=r.default.endOfLine(a,l);this.props.push(new o.default(c,p)),c=p}else i=!0,u=l,c=r.default.endOfWhiteSpace(a,l);f=a[c]}r.default.nextNodeIsIndented(f,c-(u+s),this.type!==r.Type.SEQ_ITEM)?(this.node=n({atLineStart:i,inCollection:!1,indent:s,lineStart:u,parent:this},c),this.node&&(c=this.node.range.end)):f&&u>t+1&&(c=u-1);var h=this.node?this.node.valueRange.end:c;return this.valueRange=new o.default(t,h),c}},{key:"toString",value:function(){var e=this.context.src,t=this.node,n=this.range,o=this.value;if(null!=o)return o;var a=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return r.default.addStringTerminator(e,n.end,a)}}])&&i(n.prototype,a),u&&i(n,u),t}();t.default=l});a(E);var S=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;a(E);var n=a(g),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(v),o=a(y);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=c(this,f(t).call(this,e.type===r.Type.SEQ_ITEM?r.Type.SEQ:r.Type.MAP))).items=[e];for(var o=e.props.length-1;o>=0;--o)if(e.props[o].start<e.context.lineStart){n.props=e.props.slice(0,o+1),e.props=e.props.slice(o+1);var a=e.props[0]||e.valueRange;e.range.start=a.start;break}return n}var a,i,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,r.default),a=t,(i=[{key:"parse",value:function(e,t){this.context=e;var a=e.parseNode,i=e.src,u=r.default.startOfLine(i,t),s=this.items[0];s.context.parent=this,this.valueRange=o.default.copy(s.valueRange);for(var c=s.range.start-s.context.lineStart,f=t,l=i[f=r.default.normalizeOffset(i,f)],p=r.default.endOfWhiteSpace(i,u)===f;l;){for(;"\n"===l||"#"===l;){if("#"===l){var h=new n.default;if(f=h.parse({src:i},f),this.items.push(h),this.valueRange.end=f,f>=i.length){l=null;break}}if(u=f+1,f=r.default.endOfIndent(i,u),r.default.atBlank(i,f)){var d=r.default.endOfWhiteSpace(i,f),y=i[d];y&&"\n"!==y&&"#"!==y||(f=d)}l=i[f],p=!0}if(!l)break;if(f!==u+c&&(p||":"!==l)){u>t&&(f=u);break}if(s.type===r.Type.SEQ_ITEM!=("-"===l)){var v=!0;if("-"===l){var m=i[f+1];v=!m||"\n"===m||"\t"===m||" "===m}if(v){u>t&&(f=u);break}}var g=a({atLineStart:p,inCollection:!0,indent:c,lineStart:u,parent:this},f);if(!g)return f;if(this.items.push(g),this.valueRange.end=g.valueRange.end,p=!1,(l=i[f=r.default.normalizeOffset(i,g.range.end)])&&"\n"!==l&&"#"!==l){for(var b=f-1,_=i[b];" "===_||"\t"===_;)_=i[--b];"\n"===_&&(u=b+1)}}return f}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,o=this.value;if(null!=o)return o;for(var a=e.slice(n.start,t[0].range.start)+String(t[0]),i=1;i<t.length;++i){var u=t[i],s=u.context,c=s.atLineStart,f=s.indent;if(c)for(var l=0;l<f;++l)a+=" ";a+=String(u)}return r.default.addStringTerminator(e,n.end,a)}}])&&s(a.prototype,i),u&&s(a,u),t}();t.default=p});a(S);var M=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(g),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(v),o=a(y);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=c(this,f(t).call(this,e,n))).items=null,r}var a,i,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,r.default),a=t,(i=[{key:"prevNodeIsJsonLike",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items.length,t=this.items[e-1];return!!t&&(t.jsonLike||t.type===r.Type.COMMENT&&this.nodeIsJsonLike(e-1))}},{key:"parse",value:function(e,t){this.context=e;var a=e.parseNode,i=e.src,u=e.indent,s=e.lineStart,c=i[t];this.items=[c];var f=r.default.endOfWhiteSpace(i,t+1);for(c=i[f];c&&"]"!==c&&"}"!==c;){switch(c){case"\n":s=f+1,(f=r.default.endOfIndent(i,s))-s<=u&&(this.error=new m.YAMLSemanticError(this,"Insufficient indentation in flow collection"));break;case",":this.items.push(c),f+=1;break;case"#":var l=new n.default;f=l.parse({src:i},f),this.items.push(l);break;case"?":case":":var p=i[f+1];if("\n"===p||"\t"===p||" "===p||","===p||":"===c&&this.prevNodeIsJsonLike()){this.items.push(c),f+=1;break}default:var h=a({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:s,parent:this},f);if(!h)return this.valueRange=new o.default(t,f),f;this.items.push(h),f=r.default.normalizeOffset(i,h.range.end)}c=i[f=r.default.endOfWhiteSpace(i,f)]}return this.valueRange=new o.default(t,f+1),c&&(this.items.push(c),f=r.default.endOfWhiteSpace(i,f+1),f=this.parseComment(f)),f}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,o=this.value;if(null!=o)return o;var a=t.filter(function(e){return e instanceof r.default}),i="",u=n.start;return a.forEach(function(t){var n=e.slice(u,t.range.start);u=t.range.end,i+=n+String(t)}),i+=e.slice(u,n.end),r.default.addStringTerminator(e,n.end,i)}}])&&s(a.prototype,i),u&&s(a,u),t}();t.default=p});a(M);var P=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(v),r=o(y);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,c(t).apply(this,arguments))}var o,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,n.default),o=t,u=[{key:"endOfLine",value:function(e,t,n){for(var r=e[t],o=t;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){var a=e[o+1];if(":"===r&&("\n"===a||"\t"===a||" "===a||","===a))break;if((" "===r||"\t"===r)&&"#"===a)break;o+=1,r=a}return o}}],(a=[{key:"parseBlockValue",value:function(e){for(var r=this.context,o=r.indent,a=r.inFlow,i=r.src,u=e,s=i[u];"\n"===s&&!n.default.atDocumentBoundary(i,u+1);s=i[u]){var c=n.default.endOfBlockIndent(i,o,u+1);if(null===c||"#"===i[c])break;u=t.endOfLine(i,c,a)}return this.valueRange.isEmpty&&(this.valueRange.start=e),this.valueRange.end=u,u}},{key:"parse",value:function(e,o){this.context=e;var a=e.inFlow,i=e.src,u=o,s=i[u];return s&&"#"!==s&&"\n"!==s&&(u=t.endOfLine(i,o,a)),this.valueRange=new r.default(o,u),u=n.default.endOfWhiteSpace(i,u),u=this.parseComment(u),this.hasComment&&!this.valueRange.isEmpty||(u=this.parseBlockValue(u)),u}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var e=this.valueRange,t=e.start,r=e.end,o=this.context.src,a=o[r-1];t<r&&("\n"===a||"\t"===a||" "===a);)a=o[--r-1];for(a=o[t];t<r&&("\n"===a||"\t"===a||" "===a);)a=o[++t];for(var i="",u=t;u<r;++u){var s=o[u];if("\n"===s){var c=n.default.foldNewline(o,u,-1);i+=c.fold,u=c.offset}else if(" "===s||"\t"===s){for(var f=u,l=o[u+1];u<r&&(" "===l||"\t"===l);)l=o[(u+=1)+1];"\n"!==l&&(i+=u>f?o.slice(f,u+1):s)}else i+=s}return i}}])&&i(o.prototype,a),u&&i(o,u),t}();t.default=l});a(P);var T=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(v),r=o(y);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,c(t).apply(this,arguments))}var o,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,n.default),o=t,u=[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}}],(a=[{key:"parseCharCode",value:function(e,t,n){var r=this.context.src,o=r.substr(e,t),a=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(a)?(n.push(new m.YAMLSyntaxError(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(a)}},{key:"parse",value:function(e,o){this.context=e;var a=e.src,i=t.endOfQuote(a,o+1);return this.valueRange=new r.default(o,i),i=n.default.endOfWhiteSpace(a,i),i=this.parseComment(i)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,r=t.start,o=t.end,a=this.context,i=a.indent,u=a.src;'"'!==u[o-1]&&e.push(new m.YAMLSyntaxError(this,'Missing closing "quote'));for(var s="",c=r+1;c<o-1;++c){var f=u[c];if("\n"===f){n.default.atDocumentBoundary(u,c+1)&&e.push(new m.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));var l=n.default.foldNewline(u,c,i);s+=l.fold,c=l.offset,l.error&&e.push(new m.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===f)switch(u[c+=1]){case"0":s+="\0";break;case"a":s+="";break;case"b":s+="\b";break;case"e":s+="";break;case"f":s+="\f";break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":s+="\t";break;case"v":s+="\v";break;case"N":s+="
";break;case"_":s+=" ";break;case"L":s+="\u2028";break;case"P":s+="\u2029";break;case" ":s+=" ";break;case'"':s+='"';break;case"/":s+="/";break;case"\\":s+="\\";break;case"\t":s+="\t";break;case"x":s+=this.parseCharCode(c+1,2,e),c+=2;break;case"u":s+=this.parseCharCode(c+1,4,e),c+=4;break;case"U":s+=this.parseCharCode(c+1,8,e),c+=8;break;case"\n":for(;" "===u[c+1]||"\t"===u[c+1];)c+=1;break;default:e.push(new m.YAMLSyntaxError(this,"Invalid escape sequence ".concat(u.substr(c-1,2)))),s+="\\"+u[c]}else if(" "===f||"\t"===f){for(var p=c,h=u[c+1];" "===h||"\t"===h;)h=u[(c+=1)+1];"\n"!==h&&(s+=c>p?u.slice(p,c+1):f)}else s+=f}return e.length>0?{errors:e,str:s}:s}}])&&i(o.prototype,a),u&&i(o,u),t}();t.default=l});a(T);var A=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(v),r=o(y);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,c(t).apply(this,arguments))}var o,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,n.default),o=t,u=[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}}],(a=[{key:"parse",value:function(e,o){this.context=e;var a=e.src,i=t.endOfQuote(a,o+1);return this.valueRange=new r.default(o,i),i=n.default.endOfWhiteSpace(a,i),i=this.parseComment(i)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,r=t.start,o=t.end,a=this.context,i=a.indent,u=a.src;"'"!==u[o-1]&&e.push(new m.YAMLSyntaxError(this,"Missing closing 'quote"));for(var s="",c=r+1;c<o-1;++c){var f=u[c];if("\n"===f){n.default.atDocumentBoundary(u,c+1)&&e.push(new m.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));var l=n.default.foldNewline(u,c,i);s+=l.fold,c=l.offset,l.error&&e.push(new m.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===f)s+=f,"'"!==u[c+=1]&&e.push(new m.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(" "===f||"\t"===f){for(var p=c,h=u[c+1];" "===h||"\t"===h;)h=u[(c+=1)+1];"\n"!==h&&(s+=c>p?u.slice(p,c+1):f)}else s+=f}return e.length>0?{errors:e,str:s}:s}}])&&i(o.prototype,a),u&&i(o,u),t}();t.default=l});a(A);var k=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=p(w),r=p(O),o=p(S),a=p(E),i=p(M),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(v),s=p(P),c=p(T),f=p(A),l=p(y);function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}var g=function(){function e(){var t,p,h,d=this,y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},g=v.atLineStart,b=v.inCollection,_=v.inFlow,w=v.indent,O=v.lineStart,E=v.parent;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h=function(t,p){if(u.default.atDocumentBoundary(d.src,p))return null;var h,y=new e(d,t),v=y.parseProps(p),g=v.props,b=v.type,_=v.valueStart;switch(b){case u.Type.ALIAS:h=new n.default(b,g);break;case u.Type.BLOCK_FOLDED:case u.Type.BLOCK_LITERAL:h=new r.default(b,g);break;case u.Type.FLOW_MAP:case u.Type.FLOW_SEQ:h=new i.default(b,g);break;case u.Type.MAP_KEY:case u.Type.MAP_VALUE:case u.Type.SEQ_ITEM:h=new a.default(b,g);break;case u.Type.COMMENT:case u.Type.PLAIN:h=new s.default(b,g);break;case u.Type.QUOTE_DOUBLE:h=new c.default(b,g);break;case u.Type.QUOTE_SINGLE:h=new f.default(b,g);break;default:return h.error=new m.YAMLSyntaxError(h,"Unknown node type: ".concat(JSON.stringify(b))),h.range=new l.default(p,p+1),h}var w=h.parse(y,_),O="\n"===d.src[w]?w+1:w;if(O<=p&&(h.error=new Error("Node#parse consumed no characters"),h.error.parseEnd=O,h.error.source=h,O=p+1),h.range=new l.default(p,O),y.nodeStartsCollection(h)){h.error||y.atLineStart||y.parent.type!==u.Type.DOCUMENT||(h.error=new m.YAMLSyntaxError(h,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var E=new o.default(h);return w=E.parse(new e(y),w),E.range=new l.default(p,w),E}return h},(p="parseNode")in(t=this)?Object.defineProperty(t,p,{value:h,enumerable:!0,configurable:!0,writable:!0}):t[p]=h,this.atLineStart=null!=g?g:y.atLineStart||!1,this.inCollection=null!=b?b:y.inCollection||!1,this.inFlow=null!=_?_:y.inFlow||!1,this.indent=null!=w?w:y.indent,this.lineStart=null!=O?O:y.lineStart,this.parent=null!=E?E:y.parent||{},this.src=y.src}return d(e,null,[{key:"parseType",value:function(e,t,n){switch(e[t]){case"*":return u.Type.ALIAS;case">":return u.Type.BLOCK_FOLDED;case"|":return u.Type.BLOCK_LITERAL;case"{":return u.Type.FLOW_MAP;case"[":return u.Type.FLOW_SEQ;case"?":return!n&&u.default.atBlank(e,t+1)?u.Type.MAP_KEY:u.Type.PLAIN;case":":return!n&&u.default.atBlank(e,t+1)?u.Type.MAP_VALUE:u.Type.PLAIN;case"-":return!n&&u.default.atBlank(e,t+1)?u.Type.SEQ_ITEM:u.Type.PLAIN;case'"':return u.Type.QUOTE_DOUBLE;case"'":return u.Type.QUOTE_SINGLE;default:return u.Type.PLAIN}}}]),d(e,[{key:"nodeStartsCollection",value:function(e){var t=this.inCollection,n=this.inFlow,r=this.src;if(t||n)return!1;if(e instanceof a.default)return!0;var o=e.range.end;return"\n"!==r[o]&&"\n"!==r[o-1]&&":"===r[o=u.default.endOfWhiteSpace(r,o)]}},{key:"parseProps",value:function(t){for(var n=this.inFlow,r=this.parent,o=this.src,a=[],i=!1,s=o[t=u.default.endOfWhiteSpace(o,t)];s===u.Char.ANCHOR||s===u.Char.COMMENT||s===u.Char.TAG||"\n"===s;){if("\n"===s){var c=t+1,f=u.default.endOfIndent(o,c),p=f-(c+this.indent),h=r.type===u.Type.SEQ_ITEM&&r.context.atLineStart;if(!u.default.nextNodeIsIndented(o[f],p,!h))break;this.atLineStart=!0,this.lineStart=c,i=!1,t=f}else if(s===u.Char.COMMENT){var d=u.default.endOfLine(o,t+1);a.push(new l.default(t,d)),t=d}else{var y=u.default.endOfIdentifier(o,t+1);s===u.Char.TAG&&","===o[y]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(o.slice(t+1,y+13))&&(y=u.default.endOfIdentifier(o,y+5)),a.push(new l.default(t,y)),i=!0,t=u.default.endOfWhiteSpace(o,y)}s=o[t]}return i&&":"===s&&u.default.atBlank(o,t+1)&&(t-=1),{props:a,type:e.parseType(o,t,n),valueStart:t}}},{key:"pretty",get:function(){var e={start:"".concat(this.lineStart," + ").concat(this.indent),in:[],parent:this.parent.type};return this.atLineStart||(e.start+=" + N"),this.inCollection&&e.in.push("collection"),this.inFlow&&e.in.push("flow"),e}}]),e}();t.default=g});a(k);var L=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,"\n"));var t=new r.default({src:e}),o=[],a=0;for(;a<e.length;){var i=new n.default;a=i.parse(t,a),o.push(i)}return o.toString=function(){return o.join("...\n")},o};var n=o(_),r=o(k);function o(e){return e&&e.__esModule?e:{default:e}}});a(L);var j=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,r){return Array.isArray(t)?t.map(function(t,n){return e(t,String(n),r)}):t&&"function"==typeof t.toJSON?t.toJSON(n,r):t}});a(j);var N=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addCommentBefore=function(e,t,n){if(!n)return e;var r=n.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(r,"\n").concat(t).concat(e)},t.default=function(e,t,n){return n?-1===n.indexOf("\n")?"".concat(e," #").concat(n):"".concat(e,"\n")+n.replace(/^/gm,"".concat(t||"","#")):e}});a(N);var R=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}});a(R);var x=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(N),r=o(R);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){function t(){var e,n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,u=new Array(i),c=0;c<i;c++)u[c]=arguments[c];return r=this,l(f(f(n=!(o=(e=s(t)).call.apply(e,[this].concat(u)))||"object"!==a(o)&&"function"!=typeof o?f(r):o)),"items",[]),n}var o,u,p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,r.default),o=t,(u=[{key:"toJSON",value:function(){return null}},{key:"toString",value:function(e,r,o){var a=this,i=r.blockItem,u=r.flowChars,s=r.itemIndent,c=e,f=c.doc,l=c.indent,p=this.type&&"FLOW"===this.type.substr(0,4)||e.inFlow;p&&(s+=" "),e=Object.assign({},e,{indent:s,inFlow:p,type:null});var h,d=!1,y=!1,v=this.items.reduce(function(t,r,o){var i=r&&r.commentBefore;i&&(d=!0,i.match(/^.*$/gm).forEach(function(e){t.push({type:"comment",str:"#".concat(e)})}));var u=r&&r.comment;u&&(d=!0);var c=f.schema.stringify(r,e,function(){u=null});return y||-1===c.indexOf("\n")||(y=!0),p&&o<a.items.length-1&&(c+=","),c=(0,n.default)(c,s,u),t.push({type:"item",str:c}),t},[]);if(0===v.length)h=u.start+u.end;else if(p){var m=u.start,g=u.end,b=v.map(function(e){return e.str});h=d||y||b.reduce(function(e,t){return e+t.length+2},2)>t.maxFlowStringSingleLineLength?"".concat(m,"\n ").concat(l).concat(b.join("\n ".concat(l)),"\n").concat(l).concat(g):"".concat(m," ").concat(b.join(" ")," ").concat(g)}else h=v.map(i).join("\n".concat(l));return this.comment&&(y||-1!==h.indexOf("\n")?h+="\n"+this.comment.replace(/^/gm,"".concat(l,"#")):h=(0,n.default)(h,l,this.comment),o&&o()),h}}])&&i(o.prototype,u),p&&i(o,p),t}();t.default=p,l(p,"maxFlowStringSingleLineLength",60)});a(x);var C=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j),r=o(R);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=s(this,c(t).call(this))).value=e,n}var o,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,r.default),o=t,(a=[{key:"toJSON",value:function(e,t){return t?this.value:(0,n.default)(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}])&&i(o.prototype,a),u&&i(o,u),t}();t.default=l});a(C);var I=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(N),r=s(j),o=s(x),a=s(R),i=s(C);function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=l(this,p(t).call(this))).key=e,n.value=r,n.type="PAIR",n}var u,s,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,a.default),u=t,(s=[{key:"toJSON",value:function(e,t){var n={},o=this.stringKey;return n[o]=(0,r.default)(this.value,o,t),n}},{key:"toString",value:function(e,t){if(!e||!e.doc)return JSON.stringify(this);var r=this.key,i=this.value,u=r instanceof a.default&&r.comment,s=!r||u||r instanceof o.default,c=e,f=c.doc,l=c.indent;e=Object.assign({},e,{implicitKey:!s,indent:l+" "});var p=f.schema.stringify(r,e,function(){u=null});u&&(p=(0,n.default)(p,e.indent,u)),e.implicitKey=!1;var h=f.schema.stringify(i,e,t),d=i&&i.commentBefore?" #".concat(i.commentBefore.replace(/\n+(?!\n|$)/g,"$&".concat(e.indent,"#"))):"";return s?"? ".concat(p,"\n").concat(l,":").concat(d?"".concat(d,"\n").concat(e.indent):" ").concat(h):i instanceof o.default?"".concat(p,":").concat(d,"\n").concat(e.indent).concat(h):"".concat(p,":").concat(d?"".concat(d,"\n").concat(e.indent):" ").concat(h)}},{key:"commentBefore",get:function(){return this.key&&this.key.commentBefore},set:function(e){null==this.key&&(this.key=new i.default(null)),this.key.commentBefore=e}},{key:"comment",get:function(){return this.value&&this.value.comment},set:function(e){null==this.value&&(this.value=new i.default(null)),this.value.comment=e}},{key:"stringKey",get:function(){var e=(0,r.default)(this.key);if(null===e)return"";if("object"===c(e))try{return JSON.stringify(e)}catch(e){}return String(e)}}])&&f(u.prototype,s),d&&f(u,d),t}();t.default=d});a(I);var D=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j),r=o(x);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e,t,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,f(t).apply(this,arguments))}var o,a,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,r.default),o=t,(a=[{key:"toJSON",value:function(e,t){return this.items.map(function(e,r){return(0,n.default)(e,String(r),t)})}},{key:"toString",value:function(e,n){return e?c(f(t.prototype),"toString",this).call(this,e,{blockItem:function(e){var t=e.type,n=e.str;return"comment"===t?n:"- ".concat(n)},flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" "},n):JSON.stringify(this)}}])&&i(o.prototype,a),u&&i(o,u),t}();t.default=p});a(D);var B=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MERGE_KEY=void 0;var n=a(I),r=a(C),o=a(D);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e,t,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h="<<";t.MERGE_KEY=h;var d=function(e){function t(e){var a;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e instanceof n.default){var i=e.value;i instanceof o.default||((i=new o.default).items.push(e.value),i.range=e.value.range),(a=c(this,l(t).call(this,e.key,i))).range=e.range}else a=c(this,l(t).call(this,new r.default(h),new o.default));return a.type="MERGE_PAIR",c(a)}var a,i,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,n.default),a=t,(i=[{key:"toString",value:function(e,n){var r=this.value;if(r.items.length>1)return f(l(t.prototype),"toString",this).call(this,e,n);this.value=r.items[0];var o=f(l(t.prototype),"toString",this).call(this,e,n);return this.value=r,o}}])&&s(a.prototype,i),u&&s(a,u),t}();t.default=d});a(B);var Y=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(j),r=i(x),o=i(B),a=i(I);function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e,t,n){return(l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),f(this,p(t).apply(this,arguments))}var i,u,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,r.default),i=t,(u=[{key:"toJSON",value:function(e,r){return this.items.reduce(function(e,a){if(a instanceof o.default)!function(){for(var n=Object.keys(e),o=a.value.items,i=o.length-1;i>=0;--i){var u=o[i].source;if(!(u instanceof t))throw new Error("Merge sources must be maps");!function(){var t=u.toJSON("",r);Object.keys(t).forEach(function(r){n.includes(r)||(e[r]=t[r])})}()}}();else{var i=a.stringKey,u=a.value;e[i]=(0,n.default)(u,i,r)}return e},{})}},{key:"toString",value:function(e,n){return e?(this.items.forEach(function(e){if(!(e instanceof a.default))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(e)," instead"))}),l(p(t.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},itemIndent:e.indent||""},n)):JSON.stringify(this)}}])&&c(i.prototype,u),s&&c(i,s),t}();t.default=d});a(Y);var F=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(null==t)return new o.default(null);if("object"!==s(t))return i?new o.default(t):t;if(Array.isArray(t)){var u=new a.default;return u.items=t.map(function(t){return e(t,i)}),u}var c=new n.default;return c.items=Object.keys(t).map(function(n){var o=e(n,i),a=e(t[n],i);return new r.default(o,a)}),c};var n=i(Y),r=i(I),o=i(C),a=i(D);function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}});a(F);var U=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(j),r=o(R);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function i(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var p,h,d,y=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=i(this,s(t).call(this))).source=e,n.type=v.Type.ALIAS,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,r.default),f(t,null,[{key:"stringify",value:function(e,t){var n=e.range,r=e.source,o=t.anchors,a=t.doc,i=t.implicitKey,u=Object.keys(o).find(function(e){return o[e]===r});if(u)return"*".concat(u).concat(i?" ":"");var s=a.anchors.getName(r)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(s," [").concat(n,"]"))}}]),f(t,[{key:"toJSON",value:function(e,t){return(0,n.default)(this.source,e,t)}},{key:"tag",set:function(e){throw new Error("Alias nodes cannot have tags")}}]),t}();t.default=y,d=!0,(h="default")in(p=y)?Object.defineProperty(p,h,{value:d,enumerable:!0,configurable:!0,writable:!0}):p[h]=d});a(U);var V=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(U),r=u(Y),o=u(B),a=u(C),i=u(D);function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=function(){function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r={},(n="map")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}var t,u,c;return t=e,c=[{key:"validAnchorNode",value:function(e){return e instanceof a.default||e instanceof i.default||e instanceof r.default}}],(u=[{key:"createAlias",value:function(e,t){return this.setAnchor(e,t),new n.default(e)}},{key:"createMergePair",value:function(){for(var e=this,t=new o.default,a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return t.value.items=i.map(function(t){if(t instanceof n.default){if(t.source instanceof r.default)return t}else if(t instanceof r.default)return e.createAlias(t);throw new Error("Merge sources must be Map nodes or their Aliases")}),t}},{key:"getName",value:function(e){var t=this.map;return Object.keys(t).find(function(n){return t[n]===e})}},{key:"getNode",value:function(e){return this.map[e]}},{key:"newName",value:function(e){for(var t=Object.keys(this.map),n=1;;++n){var r="".concat(e).concat(n);if(!t.includes(r))return r}}},{key:"resolveNodes",value:function(){var e=this.map,t=this._cstAliases;Object.keys(e).forEach(function(t){e[t]=e[t].resolved}),t.forEach(function(e){e.source=e.source.resolved}),delete this._cstAliases}},{key:"setAnchor",value:function(t,n){if(null!=t&&!e.validAnchorNode(t))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");var r=this.map,o=t&&Object.keys(r).find(function(e){return r[e]===t});if(o){if(!n)return o;o!==n&&(delete r[o],r[n]=t)}else{if(!n){if(!t)return null;n=this.newName("a")}r[n]=t}return n}}])&&s(t.prototype,u),c&&s(t,c),e}();t.default=c});a(V);var K=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(x),r=a(I),o=a(C);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}t.default=function(e){return Object.keys(function e(t,a){if(t&&"object"===i(t)){var u=t.tag;t instanceof n.default?(u&&(a[u]=!0),t.items.forEach(function(t){return e(t,a)})):t instanceof r.default?(e(t.key,a),e(t.value,a)):t instanceof o.default&&u&&(a[u]=!0)}return a}(e,{}))}});a(K);var Q=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,o,a){var i=a.indentAtStart,u=a.lineWidth,s=void 0===u?80:u,c=a.minContentWidth,f=void 0===c?20:c,l=a.onFold,p=a.onOverflow;if(!s||s<0)return e;var h=Math.max(1+f,1+s-t.length);if(e.length<=h)return e;for(var d=[],y={},v=s-("number"==typeof i?i:t.length),m=void 0,g=void 0,b=!1,_=0,w=e[0];w;w=e[_+=1]){if(o===r&&"\\"===w)switch(e[_+1]){case"x":w=e[_+=4];break;case"u":w=e[_+=6];break;case"U":w=e[_+=10];break;default:w=e[_+=2]}if("\n"===w){if(o===n)for(var O=e[_+1];" "===O||"\t"===O;){do{w=e[_+=1]}while(w&&"\n"!==w);O=e[_+1]}v=_+h,m=void 0}else{if(" "===w&&g&&" "!==g&&"\n"!==g&&"\t"!==g){var E=e[_+1];E&&" "!==E&&"\n"!==E&&"\t"!==E&&(m=_)}if(_>=v)if(m)d.push(m),v=m+h,m=void 0;else if(o===r){for(;" "===g||"\t"===g;)g=w,w=e[_+=1],b=!0;d.push(_-2),y[_-2]=!0,v=_-2+h,m=void 0}else b=!0}g=w}b&&p&&p();if(0===d.length)return e;l&&l();for(var S=e.slice(0,d[0]),M=0;M<d.length;++M){var P=d[M],T=d[M+1]||e.length;o===r&&y[P]&&(S+="".concat(e[P],"\\")),S+="\n".concat(t).concat(e.slice(P+1,T))}return S},t.FOLD_QUOTED=t.FOLD_BLOCK=t.FOLD_FLOW=void 0;t.FOLD_FLOW="flow";var n="block";t.FOLD_BLOCK=n;var r="quoted";t.FOLD_QUOTED=r});a(Q);var W=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=c,t.str=t.resolve=t.strOptions=void 0;var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(Q);var r={defaultType:v.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};t.strOptions=r;var o=function(e,t){var n=e.length;if(n<=t)return!1;for(var r=0,o=0;r<n;++r)if("\n"===e[r]){if(r-o>t)return!0;if(n-(o=r+1)<=t)return!1}return!0},a=function(e,t){var n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach(function(n){n.source||(n.source=t),e.errors.push(n)}),n.str):""};function i(e,t){var o=t.implicitKey,a=t.indent,i=r.doubleQuoted,u=i.jsonEncoding,s=i.minMultiLineLength,c=JSON.stringify(e);if(u)return c;for(var f="",l=0,p=0,h=c[p];h;h=c[++p])if(" "===h&&"\\"===c[p+1]&&"n"===c[p+2]&&(f+=c.slice(l,p)+"\\ ",l=p+=1,h="\\"),"\\"===h)switch(c[p+1]){case"u":f+=c.slice(l,p);var d=c.substr(p+2,4);switch(d){case"0000":f+="\\0";break;case"0007":f+="\\a";break;case"000b":f+="\\v";break;case"001b":f+="\\e";break;case"0085":f+="\\N";break;case"00a0":f+="\\_";break;case"2028":f+="\\L";break;case"2029":f+="\\P";break;default:"00"===d.substr(0,2)?f+="\\x"+d.substr(2):f+=c.substr(p,6)}l=(p+=5)+1;break;case"n":if(o||'"'===c[p+2]||c.length<s)p+=1;else{for(f+=c.slice(l,p)+"\n\n";"\\"===c[p+2]&&"n"===c[p+3]&&'"'!==c[p+4];)f+="\n",p+=2;f+=a," "===c[p+2]&&(f+="\\"),l=(p+=1)+1}break;default:p+=1}return f=l?f+c.slice(l):c,o?f:(0,n.default)(f,a,n.FOLD_QUOTED,r.fold)}function u(e,t){var o=t.indent,a=t.implicitKey;if(a){if(/\n/.test(e))return i(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return i(e,t);var u="'"+e.replace(/'/g,"''").replace(/\n+/g,"$&\n".concat(o))+"'";return a?u:(0,n.default)(u,o,n.FOLD_FLOW,r.fold)}function s(e,t,a){var u=e.comment,s=e.type,c=e.value;if(/\n[\t ]+$/.test(c)||/^\s*$/.test(c))return i(c,t);var f=t.indent||(t.forceBlockIndent?" ":""),l=f?"2":"1",p=s!==v.Type.BLOCK_FOLDED&&(s===v.Type.BLOCK_LITERAL||!o(c,r.fold.lineWidth-f.length)),h=p?"|":">";if(!c)return h+"\n";var d="",y="";if(c=c.replace(/[\n\t ]*$/,function(e){var t=e.indexOf("\n");return-1===t?h+="-":c!==e&&t===e.length-1||(h+="+"),y=e.replace(/\n$/,""),""}).replace(/^[\n ]*/,function(e){-1!==e.indexOf(" ")&&(h+=l);var t=e.match(/ +$/);return t?(d=e.slice(0,-t[0].length),t[0]):(d=e,"")}),y&&(y=y.replace(/\n+(?!\n|$)/g,"$&".concat(f))),d&&(d=d.replace(/\n+/g,"$&".concat(f))),u&&(h+=" #"+u.replace(/ ?[\r\n]+/g," "),a&&a()),!c)return"".concat(h).concat(l,"\n").concat(f).concat(y);if(p)return c=c.replace(/\n+/g,"$&".concat(f)),"".concat(h,"\n").concat(f).concat(d).concat(c).concat(y);c=c.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(f));var m=(0,n.default)("".concat(d).concat(c).concat(y),f,n.FOLD_BLOCK,r.fold);return"".concat(h,"\n").concat(f).concat(m)}function c(e,t,o){var a=r.defaultType,c=t.implicitKey,f=t.inFlow,l=e,p=l.type,h=l.value;"string"!=typeof h&&(h=String(h),e=Object.assign({},e,{value:h}));var d=function(a){switch(a){case v.Type.BLOCK_FOLDED:case v.Type.BLOCK_LITERAL:return s(e,t,o);case v.Type.QUOTE_DOUBLE:return i(h,t);case v.Type.QUOTE_SINGLE:return u(h,t);case v.Type.PLAIN:return function(e,t,o){var a=e.comment,c=e.type,f=e.value,l=t.implicitKey,p=t.indent,h=t.inFlow,d=t.tags;if(l&&/[\n[\]{},]/.test(f)||h&&/[[\]{},]/.test(f))return i(f,t);if(!f||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t ]$/.test(f))return l||h||-1===f.indexOf("\n")?-1!==f.indexOf('"')&&-1===f.indexOf("'")?u(f,t):i(f,t):s(e,t,o);if(!l&&!h&&c!==v.Type.PLAIN&&-1!==f.indexOf("\n"))return s(e,t,o);var y=f.replace(/\n+/g,"$&\n".concat(p));if("string"!=typeof d.resolveScalar(y).value)return i(f,t);var m=l?y:(0,n.default)(y,p,n.FOLD_FLOW,r.fold);return!a||h||-1===m.indexOf("\n")&&-1===a.indexOf("\n")?m:(o&&o(),(0,N.addCommentBefore)(m,p,a))}(e,t,o);default:return null}};p!==v.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(h)?p=v.Type.QUOTE_DOUBLE:!c&&!f||p!==v.Type.BLOCK_FOLDED&&p!==v.Type.BLOCK_LITERAL||(p=v.Type.QUOTE_DOUBLE);var y=d(p);if(null===y&&null===(y=d(a)))throw new Error("Unsupported default string type ".concat(a));return y}t.resolve=a;var f={class:String,default:!0,tag:"tag:yaml.org,2002:str",resolve:a,stringify:c,options:r};t.str=f});a(W);var q=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.checkKeyLength=function(e,t,n,r,o){if("number"!=typeof o)return;var a=t.items[n],i=a&&a.range&&a.range.start;if(!i)for(var u=n-1;u>=0;--u){var s=t.items[u];if(s&&s.range){i=s.range.end+2*(n-u);break}}if(i>o+1024){var c=String(r).substr(0,8)+"..."+String(r).substr(-8);e.push(new m.YAMLSemanticError(t,'The "'.concat(c,'" key is too long')))}},t.resolveComments=function(e,t){t.forEach(function(t){var n=t.comment,r=t.before,o=e.items[r];o?o.commentBefore?o.commentBefore+="\n"+n:o.commentBefore=n:e.comment?e.comment+="\n"+n:e.comment=n})}});a(q);var $=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==v.Type.MAP&&t.type!==v.Type.FLOW_MAP){var u="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new m.YAMLSyntaxError(t,u)),null}var s=t.type===v.Type.FLOW_MAP?function(e,t){for(var n=[],r=[],o=void 0,i=null,u=!1,s="{",c=0;c<t.items.length;++c){(0,q.checkKeyLength)(e.errors,t,c,o,i);var f=t.items[c];if("string"==typeof f){if("?"===f&&void 0===o&&!u){u=!0,s=":";continue}if(":"===f){if(void 0===o&&(o=null),":"===s){s=",";continue}}else if(u&&(void 0===o&&","!==f&&(o=null),u=!1),void 0!==o&&(r.push(new a.default(o)),o=void 0,i=null,","===f)){s=":";continue}if("}"===f){if(c===t.items.length-1)continue}else if(f===s){s=":";continue}e.errors.push(new m.YAMLSyntaxError(t,"Flow map contains an unexpected ".concat(f)))}else f.type===v.Type.COMMENT?n.push({comment:f.comment,before:r.length}):void 0===o?(","===s&&e.errors.push(new m.YAMLSemanticError(f,"Separator , missing in flow map")),o=e.resolveNode(f),i=u?null:f.range.start):(","!==s&&e.errors.push(new m.YAMLSemanticError(f,"Indicator : missing in flow map entry")),r.push(new a.default(o,e.resolveNode(f))),o=void 0,u=!1)}"}"!==t.items[t.items.length-1]&&e.errors.push(new m.YAMLSemanticError(t,"Expected flow map to end with }"));void 0!==o&&r.push(new a.default(o));return{comments:n,items:r}}(e,t):function(e,t){for(var r=[],o=[],i=void 0,u=null,s=0;s<t.items.length;++s){var c=t.items[s];switch(c.type){case v.Type.COMMENT:r.push({comment:c.comment,before:o.length});break;case v.Type.MAP_KEY:void 0!==i&&o.push(new a.default(i)),c.error&&e.errors.push(c.error),i=e.resolveNode(c.node),u=null;break;case v.Type.MAP_VALUE:if(void 0===i&&(i=null),c.error&&e.errors.push(c.error),!c.context.atLineStart&&c.node&&c.node.type===v.Type.MAP&&!c.node.context.atLineStart){e.errors.push(new m.YAMLSemanticError(c.node,"Nested mappings are not allowed in compact mappings"))}var f=c.node;if(!f&&c.props.length>0){(f=new n.default(v.Type.PLAIN,[])).context={parent:c,src:c.context.src};var l=c.range.start+1;f.range={start:l,end:l},f.valueRange={start:l,end:l}}o.push(new a.default(i,e.resolveNode(f))),(0,q.checkKeyLength)(e.errors,t,s,i,u),i=void 0,u=null;break;default:void 0!==i&&o.push(new a.default(i)),i=e.resolveNode(c),u=c.range.start,c.error&&e.errors.push(c.error);var p=t.items[s+1];if(!p||p.type!==v.Type.MAP_VALUE){e.errors.push(new m.YAMLSemanticError(c,"Implicit map keys need to be followed by map values"))}if(c.valueRangeContainsNewline){e.errors.push(new m.YAMLSemanticError(c,"Implicit map keys need to be on a single line"))}}}void 0!==i&&o.push(new a.default(i));return{comments:r,items:o}}(e,t),c=s.comments,f=s.items,l=new r.default;l.items=f,(0,q.resolveComments)(l,c);for(var p=0;p<f.length;++p){var h=f[p].key;if(e.schema.merge&&h.value===o.MERGE_KEY){f[p]=new o.default(f[p]);var d=f[p].value.items,y=null;d.some(function(e){if(e instanceof i.default){var t=e.source.type;return t!==v.Type.MAP&&t!==v.Type.FLOW_MAP&&(y="Merge nodes aliases can only point to maps")}return y="Merge nodes can only have Alias nodes as values"}),y&&e.errors.push(new m.YAMLSemanticError(t,y))}else for(var g=p+1;g<f.length;++g){var b=f[g].key;if(h===b||h&&b&&h.hasOwnProperty("value")&&h.value===b.value){var _='Map keys must be unique; "'.concat(h,'" is repeated');e.errors.push(new m.YAMLSemanticError(t,_));break}}}return t.resolved=l,l};var n=u(P),r=u(Y),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(B),a=u(I),i=u(U);function u(e){return e&&e.__esModule?e:{default:e}}});a($);var J=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==v.Type.SEQ&&t.type!==v.Type.FLOW_SEQ){var o="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new m.YAMLSyntaxError(t,o)),null}var a=t.type===v.Type.FLOW_SEQ?function(e,t){for(var r=[],o=[],a=!1,i=void 0,u=null,s="[",c=0;c<t.items.length;++c){var f=t.items[c];if("string"==typeof f)if(":"===f||!a&&void 0===i||(a&&void 0===i&&(i=null),o.push(new n.default(i)),a=!1,i=void 0,u=null),f===s)s=null;else if(s||"?"!==f){if("["!==s&&":"===f&&void 0===i){if(","===s){if((i=o.pop())instanceof n.default){e.errors.push(new m.YAMLSemanticError(f,"Chaining flow sequence pairs is invalid (e.g. [ a : b : c ])"))}a||(0,q.checkKeyLength)(e.errors,t,c,i,u)}else i=null;u=null,a=!1,s=null}else if("["===s||"]"!==f||c<t.items.length-1){var l="Flow sequence contains an unexpected ".concat(f);e.errors.push(new m.YAMLSyntaxError(t,l))}}else a=!0;else if(f.type===v.Type.COMMENT)r.push({comment:f.comment,before:o.length});else{if(s){var p="Expected a ".concat(s," here in flow sequence");e.errors.push(new m.YAMLSemanticError(f,p))}var h=e.resolveNode(f);void 0===i?o.push(h):(o.push(new n.default(i,h)),i=void 0),u=f.range.start,s=","}}"]"!==t.items[t.items.length-1]&&e.errors.push(new m.YAMLSemanticError(t,"Expected flow sequence to end with ]"));void 0!==i&&o.push(new n.default(i));return{comments:r,items:o}}(e,t):function(e,t){for(var n=[],r=[],o=0;o<t.items.length;++o){var a=t.items[o];switch(a.type){case v.Type.COMMENT:n.push({comment:a.comment,before:r.length});break;case v.Type.SEQ_ITEM:if(a.error&&e.errors.push(a.error),r.push(e.resolveNode(a.node)),a.hasProps){e.errors.push(new m.YAMLSemanticError(a,"Sequence items cannot have tags or anchors before the - indicator"))}break;default:a.error&&e.errors.push(a.error),e.errors.push(new m.YAMLSyntaxError(a,"Unexpected ".concat(a.type," node in sequence")))}}return{comments:n,items:r}}(e,t),i=a.comments,u=a.items,s=new r.default;return s.items=u,(0,q.resolveComments)(s,i),t.resolved=s,s};var n=o(I),r=o(D);function o(e){return e&&e.__esModule?e:{default:e}}});a(J);var G=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.seq=t.map=void 0;var n=i(Y),r=i(D),o=i($),a=i(J);function i(e){return e&&e.__esModule?e:{default:e}}var u={class:n.default,default:!0,tag:"tag:yaml.org,2002:map",resolve:o.default,stringify:function(e,t,n){return e.toString(t,n)}};t.map=u;var s={class:r.default,default:!0,tag:"tag:yaml.org,2002:seq",resolve:a.default,stringify:function(e,t,n){return e.toString(t,n)}};t.seq=s;var c=[u,s,W.str];t.default=c});a(G);var z=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.nullOptions=t.stringifyNumber=void 0;var n,r=(n=G)&&n.__esModule?n:{default:n};var o=function(e){var t=e.value;return isFinite(t)?JSON.stringify(t):isNaN(t)?".nan":t<0?"-.inf":".inf"};t.stringifyNumber=o;var a={nullStr:"null"};t.nullOptions=a;var i=r.default.concat([{class:null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:a,stringify:function(){return a.nullStr}},{class:Boolean,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function(e){return"t"===e[0]||"T"===e[0]}},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function(e,t){return parseInt(t,8)},stringify:function(e){return"0o"+e.value.toString(8)}},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(e){return parseInt(e,10)},stringify:o},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function(e,t){return parseInt(t,16)},stringify:function(e){return"0x"+e.value.toString(16)}},{class:Number,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:o},{class:Number,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/,resolve:function(e){return parseFloat(e)},stringify:o}]);t.default=i});a(z);var H=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=[G.map,G.seq,{class:String,default:!0,tag:"tag:yaml.org,2002:str",resolve:W.resolve},{class:null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function(){return null}},{class:Boolean,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$/,resolve:function(){return!0}},{class:Boolean,default:!0,tag:"tag:yaml.org,2002:bool",test:/^false$/,resolve:function(){return!1}},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function(e){return parseInt(e,10)}},{class:Number,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function(e){return parseFloat(e)}}];n.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var r=n;t.default=r});a(H);var Z="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},X=[],ee=[],te="undefined"!=typeof Uint8Array?Uint8Array:Array,ne=!1;function re(){ne=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;t<n;++t)X[t]=e[t],ee[e.charCodeAt(t)]=t;ee["-".charCodeAt(0)]=62,ee["_".charCodeAt(0)]=63}function oe(e,t,n){for(var r,o,a=[],i=t;i<n;i+=3)r=(e[i]<<16)+(e[i+1]<<8)+e[i+2],a.push(X[(o=r)>>18&63]+X[o>>12&63]+X[o>>6&63]+X[63&o]);return a.join("")}function ae(e){var t;ne||re();for(var n=e.length,r=n%3,o="",a=[],i=0,u=n-r;i<u;i+=16383)a.push(oe(e,i,i+16383>u?u:i+16383));return 1===r?(t=e[n-1],o+=X[t>>2],o+=X[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=X[t>>10],o+=X[t>>4&63],o+=X[t<<2&63],o+="="),a.push(o),a.join("")}function ie(e,t,n,r,o){var a,i,u=8*o-r-1,s=(1<<u)-1,c=s>>1,f=-7,l=n?o-1:0,p=n?-1:1,h=e[t+l];for(l+=p,a=h&(1<<-f)-1,h>>=-f,f+=u;f>0;a=256*a+e[t+l],l+=p,f-=8);for(i=a&(1<<-f)-1,a>>=-f,f+=r;f>0;i=256*i+e[t+l],l+=p,f-=8);if(0===a)a=1-c;else{if(a===s)return i?NaN:1/0*(h?-1:1);i+=Math.pow(2,r),a-=c}return(h?-1:1)*i*Math.pow(2,a-r)}function ue(e,t,n,r,o,a){var i,u,s,c=8*a-o-1,f=(1<<c)-1,l=f>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-1,d=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,i=f):(i=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-i))<1&&(i--,s*=2),(t+=i+l>=1?p/s:p*Math.pow(2,1-l))*s>=2&&(i++,s/=2),i+l>=f?(u=0,i=f):i+l>=1?(u=(t*s-1)*Math.pow(2,o),i+=l):(u=t*Math.pow(2,l-1)*Math.pow(2,o),i=0));o>=8;e[n+h]=255&u,h+=d,u/=256,o-=8);for(i=i<<o|u,c+=o;c>0;e[n+h]=255&i,h+=d,i/=256,c-=8);e[n+h-d]|=128*y}var se={}.toString,ce=Array.isArray||function(e){return"[object Array]"==se.call(e)};function fe(){return pe.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function le(e,t){if(fe()<t)throw new RangeError("Invalid typed array length");return pe.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=pe.prototype:(null===e&&(e=new pe(t)),e.length=t),e}function pe(e,t,n){if(!(pe.TYPED_ARRAY_SUPPORT||this instanceof pe))return new pe(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return ye(this,e)}return he(this,e,t,n)}function he(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);pe.TYPED_ARRAY_SUPPORT?(e=t).__proto__=pe.prototype:e=ve(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!pe.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|be(t,n),o=(e=le(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(ge(t)){var n=0|me(t.length);return 0===(e=le(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?le(e,0):ve(e,t);if("Buffer"===t.type&&ce(t.data))return ve(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function de(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function ye(e,t){if(de(t),e=le(e,t<0?0:0|me(t)),!pe.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function ve(e,t){var n=t.length<0?0:0|me(t.length);e=le(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function me(e){if(e>=fe())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+fe().toString(16)+" bytes");return 0|e}function ge(e){return!(null==e||!e._isBuffer)}function be(e,t){if(ge(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return We(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return qe(e).length;default:if(r)return We(e).length;t=(""+t).toLowerCase(),r=!0}}function _e(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function we(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=pe.from(t,r)),ge(t))return 0===t.length?-1:Oe(e,t,n,r,o);if("number"==typeof t)return t&=255,pe.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Oe(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function Oe(e,t,n,r,o){var a,i=1,u=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,u/=2,s/=2,n/=2}function c(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var f=-1;for(a=n;a<u;a++)if(c(e,a)===c(t,-1===f?0:a-f)){if(-1===f&&(f=a),a-f+1===s)return f*i}else-1!==f&&(a-=a-f),f=-1}else for(n+s>u&&(n=u-s),a=n;a>=0;a--){for(var l=!0,p=0;p<s;p++)if(c(e,a+p)!==c(t,p)){l=!1;break}if(l)return a}return-1}function Ee(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var i=0;i<r;++i){var u=parseInt(t.substr(2*i,2),16);if(isNaN(u))return i;e[n+i]=u}return i}function Se(e,t,n,r){return $e(We(t,e.length-n),e,n,r)}function Me(e,t,n,r){return $e(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function Pe(e,t,n,r){return Me(e,t,n,r)}function Te(e,t,n,r){return $e(qe(t),e,n,r)}function Ae(e,t,n,r){return $e(function(e,t){for(var n,r,o,a=[],i=0;i<e.length&&!((t-=2)<0);++i)n=e.charCodeAt(i),r=n>>8,o=n%256,a.push(o),a.push(r);return a}(t,e.length-n),e,n,r)}function ke(e,t,n){return 0===t&&n===e.length?ae(e):ae(e.slice(t,n))}function Le(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var a,i,u,s,c=e[o],f=null,l=c>239?4:c>223?3:c>191?2:1;if(o+l<=n)switch(l){case 1:c<128&&(f=c);break;case 2:128==(192&(a=e[o+1]))&&(s=(31&c)<<6|63&a)>127&&(f=s);break;case 3:a=e[o+1],i=e[o+2],128==(192&a)&&128==(192&i)&&(s=(15&c)<<12|(63&a)<<6|63&i)>2047&&(s<55296||s>57343)&&(f=s);break;case 4:a=e[o+1],i=e[o+2],u=e[o+3],128==(192&a)&&128==(192&i)&&128==(192&u)&&(s=(15&c)<<18|(63&a)<<12|(63&i)<<6|63&u)>65535&&s<1114112&&(f=s)}null===f?(f=65533,l=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),o+=l}return function(e){var t=e.length;if(t<=je)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=je));return n}(r)}pe.TYPED_ARRAY_SUPPORT=void 0===Z.TYPED_ARRAY_SUPPORT||Z.TYPED_ARRAY_SUPPORT,pe.poolSize=8192,pe._augment=function(e){return e.__proto__=pe.prototype,e},pe.from=function(e,t,n){return he(null,e,t,n)},pe.TYPED_ARRAY_SUPPORT&&(pe.prototype.__proto__=Uint8Array.prototype,pe.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&pe[Symbol.species]),pe.alloc=function(e,t,n){return function(e,t,n,r){return de(t),t<=0?le(e,t):void 0!==n?"string"==typeof r?le(e,t).fill(n,r):le(e,t).fill(n):le(e,t)}(null,e,t,n)},pe.allocUnsafe=function(e){return ye(null,e)},pe.allocUnsafeSlow=function(e){return ye(null,e)},pe.isBuffer=function(e){return null!=e&&(!!e._isBuffer||Je(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Je(e.slice(0,0))}(e))},pe.compare=function(e,t){if(!ge(e)||!ge(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,a=Math.min(n,r);o<a;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},pe.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},pe.concat=function(e,t){if(!ce(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return pe.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=pe.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!ge(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},pe.byteLength=be,pe.prototype._isBuffer=!0,pe.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)_e(this,t,t+1);return this},pe.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)_e(this,t,t+3),_e(this,t+1,t+2);return this},pe.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)_e(this,t,t+7),_e(this,t+1,t+6),_e(this,t+2,t+5),_e(this,t+3,t+4);return this},pe.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?Le(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return xe(this,t,n);case"utf8":case"utf-8":return Le(this,t,n);case"ascii":return Ne(this,t,n);case"latin1":case"binary":return Re(this,t,n);case"base64":return ke(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ce(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},pe.prototype.equals=function(e){if(!ge(e))throw new TypeError("Argument must be a Buffer");return this===e||0===pe.compare(this,e)},pe.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),"<Buffer "+e+">"},pe.prototype.compare=function(e,t,n,r,o){if(!ge(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var a=o-r,i=n-t,u=Math.min(a,i),s=this.slice(r,o),c=e.slice(t,n),f=0;f<u;++f)if(s[f]!==c[f]){a=s[f],i=c[f];break}return a<i?-1:i<a?1:0},pe.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},pe.prototype.indexOf=function(e,t,n){return we(this,e,t,n,!0)},pe.prototype.lastIndexOf=function(e,t,n){return we(this,e,t,n,!1)},pe.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return Ee(this,e,t,n);case"utf8":case"utf-8":return Se(this,e,t,n);case"ascii":return Me(this,e,t,n);case"latin1":case"binary":return Pe(this,e,t,n);case"base64":return Te(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ae(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},pe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var je=4096;function Ne(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function Re(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function xe(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",a=t;a<n;++a)o+=Qe(e[a]);return o}function Ce(e,t,n){for(var r=e.slice(t,n),o="",a=0;a<r.length;a+=2)o+=String.fromCharCode(r[a]+256*r[a+1]);return o}function Ie(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function De(e,t,n,r,o,a){if(!ge(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function Be(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,a=Math.min(e.length-n,2);o<a;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function Ye(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,a=Math.min(e.length-n,4);o<a;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function Fe(e,t,n,r,o,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Ue(e,t,n,r,o){return o||Fe(e,0,n,4),ue(e,t,n,r,23,4),n+4}function Ve(e,t,n,r,o){return o||Fe(e,0,n,8),ue(e,t,n,r,52,8),n+8}pe.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),pe.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=pe.prototype;else{var o=t-e;n=new pe(o,void 0);for(var a=0;a<o;++a)n[a]=this[a+e]}return n},pe.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||Ie(e,t,this.length);for(var r=this[e],o=1,a=0;++a<t&&(o*=256);)r+=this[e+a]*o;return r},pe.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||Ie(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},pe.prototype.readUInt8=function(e,t){return t||Ie(e,1,this.length),this[e]},pe.prototype.readUInt16LE=function(e,t){return t||Ie(e,2,this.length),this[e]|this[e+1]<<8},pe.prototype.readUInt16BE=function(e,t){return t||Ie(e,2,this.length),this[e]<<8|this[e+1]},pe.prototype.readUInt32LE=function(e,t){return t||Ie(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},pe.prototype.readUInt32BE=function(e,t){return t||Ie(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},pe.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||Ie(e,t,this.length);for(var r=this[e],o=1,a=0;++a<t&&(o*=256);)r+=this[e+a]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},pe.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||Ie(e,t,this.length);for(var r=t,o=1,a=this[e+--r];r>0&&(o*=256);)a+=this[e+--r]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},pe.prototype.readInt8=function(e,t){return t||Ie(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},pe.prototype.readInt16LE=function(e,t){t||Ie(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},pe.prototype.readInt16BE=function(e,t){t||Ie(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},pe.prototype.readInt32LE=function(e,t){return t||Ie(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},pe.prototype.readInt32BE=function(e,t){return t||Ie(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},pe.prototype.readFloatLE=function(e,t){return t||Ie(e,4,this.length),ie(this,e,!0,23,4)},pe.prototype.readFloatBE=function(e,t){return t||Ie(e,4,this.length),ie(this,e,!1,23,4)},pe.prototype.readDoubleLE=function(e,t){return t||Ie(e,8,this.length),ie(this,e,!0,52,8)},pe.prototype.readDoubleBE=function(e,t){return t||Ie(e,8,this.length),ie(this,e,!1,52,8)},pe.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||De(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,a=0;for(this[t]=255&e;++a<n&&(o*=256);)this[t+a]=e/o&255;return t+n},pe.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||De(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},pe.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,1,255,0),pe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},pe.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,2,65535,0),pe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Be(this,e,t,!0),t+2},pe.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,2,65535,0),pe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Be(this,e,t,!1),t+2},pe.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,4,4294967295,0),pe.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ye(this,e,t,!0),t+4},pe.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,4,4294967295,0),pe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ye(this,e,t,!1),t+4},pe.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);De(this,e,t,n,o-1,-o)}var a=0,i=1,u=0;for(this[t]=255&e;++a<n&&(i*=256);)e<0&&0===u&&0!==this[t+a-1]&&(u=1),this[t+a]=(e/i>>0)-u&255;return t+n},pe.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);De(this,e,t,n,o-1,-o)}var a=n-1,i=1,u=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===u&&0!==this[t+a+1]&&(u=1),this[t+a]=(e/i>>0)-u&255;return t+n},pe.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,1,127,-128),pe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},pe.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,2,32767,-32768),pe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Be(this,e,t,!0),t+2},pe.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,2,32767,-32768),pe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Be(this,e,t,!1),t+2},pe.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,4,2147483647,-2147483648),pe.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ye(this,e,t,!0),t+4},pe.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||De(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),pe.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ye(this,e,t,!1),t+4},pe.prototype.writeFloatLE=function(e,t,n){return Ue(this,e,t,!0,n)},pe.prototype.writeFloatBE=function(e,t,n){return Ue(this,e,t,!1,n)},pe.prototype.writeDoubleLE=function(e,t,n){return Ve(this,e,t,!0,n)},pe.prototype.writeDoubleBE=function(e,t,n){return Ve(this,e,t,!1,n)},pe.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,a=r-n;if(this===e&&n<t&&t<r)for(o=a-1;o>=0;--o)e[o+t]=this[o+n];else if(a<1e3||!pe.TYPED_ARRAY_SUPPORT)for(o=0;o<a;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},pe.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!pe.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var i=ge(e)?e:We(new pe(e,r).toString()),u=i.length;for(a=0;a<n-t;++a)this[a+t]=i[a%u]}return this};var Ke=/[^+\/0-9A-Za-z-_]/g;function Qe(e){return e<16?"0"+e.toString(16):e.toString(16)}function We(e,t){var n;t=t||1/0;for(var r=e.length,o=null,a=[],i=0;i<r;++i){if((n=e.charCodeAt(i))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function qe(e){return function(e){var t,n,r,o,a,i;ne||re();var u=e.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[u-2]?2:"="===e[u-1]?1:0,i=new te(3*u/4-a),r=a>0?u-4:u;var s=0;for(t=0,n=0;t<r;t+=4,n+=3)o=ee[e.charCodeAt(t)]<<18|ee[e.charCodeAt(t+1)]<<12|ee[e.charCodeAt(t+2)]<<6|ee[e.charCodeAt(t+3)],i[s++]=o>>16&255,i[s++]=o>>8&255,i[s++]=255&o;return 2===a?(o=ee[e.charCodeAt(t)]<<2|ee[e.charCodeAt(t+1)]>>4,i[s++]=255&o):1===a&&(o=ee[e.charCodeAt(t)]<<10|ee[e.charCodeAt(t+1)]<<4|ee[e.charCodeAt(t+2)]>>2,i[s++]=o>>8&255,i[s++]=255&o),i}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Ke,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $e(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Je(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Ge=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.binary=void 0;var n={class:Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:function(e,t){var n=(0,W.resolve)(e,t);return pe.from(n,"base64")},options:{defaultType:v.Type.BLOCK_LITERAL,lineWidth:76},stringify:function(e,t,r){var o,a=e.comment,i=e.type,u=e.value;if(o=u instanceof pe?u.toString("base64"):pe.from(u.buffer).toString("base64"),i||(i=n.options.defaultType),i===v.Type.QUOTE_DOUBLE)u=o;else{for(var s=n.options.lineWidth,c=Math.ceil(o.length/s),f=new Array(c),l=0,p=0;l<c;++l,p+=s)f[l]=o.substr(p,s);u=f.join(i===v.Type.BLOCK_LITERAL?"\n":" ")}return(0,W.stringify)({comment:a,type:i,value:u},t,r)}};t.binary=n;var r=[n];t.default=r});a(Ge);var ze=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.timestamp=t.floatTime=t.intTime=void 0;var n=function(e,t){var n=t.split(":").reduce(function(e,t){return 60*e+Number(t)},0);return"-"===e?-n:n},r=function(e){var t=e.value;if(isNaN(t)||!isFinite(t))return(0,z.stringifyNumber)(t);var n="";t<0&&(n="-",t=Math.abs(t));var r=[t%60];return t<60?r.unshift(0):(t=Math.round((t-r[0])/60),r.unshift(t%60),t>=60&&(t=Math.round((t-r[0])/60),r.unshift(t))),n+r.map(function(e){return e<10?"0"+String(e):String(e)}).join(":").replace(/000000\d*$/,"")},o={class:Number,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(e,t,r){return n(t,r.replace(/_/g,""))},stringify:r};t.intTime=o;var a={class:Number,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(e,t,r){return n(t,r.replace(/_/g,""))},stringify:r};t.floatTime=a;var i={class: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:function(e,t,r,o,a,i,u,s,c){s&&(s=(s+"00").substr(1,3));var f=Date.UTC(t,r-1,o,a||0,i||0,u||0,s||0);if(c&&"Z"!==c){var l=n(c[0],c.slice(1));Math.abs(l)<30&&(l*=60),f-=6e4*l}return new Date(f)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};t.timestamp=i;var u=[o,a,i];t.default=u});a(ze);var He=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.boolOptions=t.nullOptions=void 0;var n=a(Ge),r=a(ze),o=a(G);function a(e){return e&&e.__esModule?e:{default:e}}var i={nullStr:"null"};t.nullOptions=i;var u={trueStr:"true",falseStr:"false"};t.boolOptions=u;var s=o.default.concat([{class:null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:i,stringify:function(){return i.nullStr}},{class:Boolean,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function(){return!0},options:u,stringify:function(e){return e.value?u.trueStr:u.falseStr}},{class:Boolean,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function(){return!1},options:u,stringify:function(e){return e.value?u.trueStr:u.falseStr}},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^0b([0-1_]+)$/,resolve:function(e,t){return parseInt(t.replace(/_/g,""),2)},stringify:function(e){return"0b"+e.value.toString(2)}},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0([0-7_]+)$/,resolve:function(e,t){return parseInt(t.replace(/_/g,""),8)},stringify:function(e){var t=e.value;return(t<0?"-0":"0")+t.toString(8)}},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:function(e){return parseInt(e.replace(/_/g,""),10)},stringify:z.stringifyNumber},{class:Number,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F_]+)$/,resolve:function(e,t){return parseInt(t.replace(/_/g,""),16)},stringify:function(e){var t=e.value;return(t<0?"-0x":"0x")+t.toString(16)}},{class:Number,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:z.stringifyNumber},{class:Number,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?([0-9][0-9_]*)?\.[0-9_]*([eE][-+]?[0-9]+)?$/,resolve:function(e){return parseFloat(e.replace(/_/g,""))},stringify:z.stringifyNumber}],r.default,n.default);t.default=s});a(He);var Ze=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DefaultTags=t.defaultPrefix=t.availableSchema=void 0;var n=h(F),r=h(U),o=h(x),a=h(z),i=h(G),s=h(H),c=h(R),f=h(I),l=h(C),p=h(He);function h(e){return e&&e.__esModule?e:{default:e}}function d(e){return(d="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}var b={core:a.default,failsafe:i.default,json:s.default,"yaml-1.1":p.default};t.availableSchema=b;t.defaultPrefix="tag:yaml.org,2002:";var _={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};t.DefaultTags=_;var w=function(){function e(t){var n=t.merge,r=t.schema,o=t.tags;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.merge=!!n,this.name=r,this.schema=b[r],!this.schema){var a=Object.keys(b).map(function(e){return JSON.stringify(e)}).join(", ");throw new Error("Unknown schema; use ".concat(a,", or { tag, test, resolve }[]"))}Array.isArray(o)?this.schema=this.schema.concat(o):"function"==typeof o&&(this.schema=o(this.schema.slice()))}return g(e,null,[{key:"defaultStringifier",value:function(e){return JSON.stringify(e)}}]),g(e,[{key:"resolveScalar",value:function(e,t){t||(t=this.schema);for(var n=0;n<t.length;++n){var r=t[n],o=r.format,a=r.test,i=r.resolve;if(a){var u=e.match(a);if(u){var s=new l.default(i.apply(null,u));return o&&(s.format=o),s}}}return this.schema.scalarFallback&&(e=this.schema.scalarFallback(e)),new l.default(e)}},{key:"resolveNode",value:function(e,t,n){var r=this.schema.filter(function(e){return e.tag===n}),a=r.find(function(e){return!e.test});t.error&&e.errors.push(t.error);try{if(a){var i=a.resolve(e,t);i instanceof o.default||(i=new l.default(i)),t.resolved=i}else{var u=(0,W.resolve)(e,t);"string"==typeof u&&r.length>0&&(t.resolved=this.resolveScalar(u,r))}}catch(n){n.source||(n.source=t),e.errors.push(n),t.resolved=null}return t.resolved?(n&&(t.resolved.tag=n),t.resolved):null}},{key:"resolveNodeWithFallback",value:function(e,t,n){var r=this.resolveNode(e,t,n);if(t.hasOwnProperty("resolved"))return r;var o,a=(o=t.type)===v.Type.FLOW_MAP||o===v.Type.MAP?_.MAP:function(e){var t=e.type;return t===v.Type.FLOW_SEQ||t===v.Type.SEQ}(t)?_.SEQ:_.STR;if(a){e.warnings.push(new m.YAMLWarning(t,"The tag ".concat(n," is unavailable, falling back to ").concat(a)));var i=this.resolveNode(e,t,a);return i.tag=n,i}return e.errors.push(new m.YAMLReferenceError(t,"The tag ".concat(n," is unavailable"))),null}},{key:"getTagObject",value:function(e){if(e instanceof r.default)return r.default;if(e.tag){var t=this.schema.find(function(t){var n=t.format;return t.tag===e.tag&&n===e.format});if(t||(t=this.schema.find(function(t){return t.tag===e.tag})),t)return t}if(null===e.value){var n=this.schema.find(function(e){return null===e.class&&!e.format});if(!n)throw new Error("Tag not resolved for null value");return n}var o=e;if(e.hasOwnProperty("value"))switch(d(e.value)){case"boolean":o=new Boolean;break;case"number":o=new Number;break;case"string":o=new String;break;default:o=e.value}var a=this.schema.find(function(t){return t.class&&o instanceof t.class&&t.format===e.format});if(a||(a=this.schema.find(function(e){return e.class&&o instanceof e.class&&!e.format})),!a){var i=o&&o.constructor?o.constructor.name:d(o);throw new Error("Tag not resolved for ".concat(i," value"))}return a}},{key:"stringifyProps",value:function(e,t,n){var r=n.anchors,o=n.doc,a=[],i=o.anchors.getName(e);return i&&(r[i]=e,a.push("&".concat(i))),e.tag&&e.tag!==t.tag?a.push(o.stringifyTag(e.tag)):t.default||a.push(o.stringifyTag(t.tag)),a.join(" ")}},{key:"stringify",value:function(t,r,a){if(t instanceof c.default||(t=(0,n.default)(t,!0)),r.tags=this,t instanceof f.default)return t.toString(r,a);var i=this.getTagObject(t),u=this.stringifyProps(t,i,r),s=i.stringify||e.defaultStringifier,l=s(t,r,a);return u?t instanceof o.default&&"{"!==l[0]&&"["!==l[0]?"".concat(u,"\n").concat(r.indent).concat(l):"".concat(u," ").concat(l):l}}]),e}();t.default=w});a(Ze);var Xe=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=f(N),r=f(V),o=f(K),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(Ze),i=f(U),u=f(x),s=f(j),c=f(C);function f(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h,d,y,g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.anchors=new r.default,this.commentBefore=null,this.comment=null,this.contents=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}var t,f,h;return t=e,(f=[{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"setSchema",value:function(){this.schema||(this.schema=new a.default(Object.assign({},this.getDefaults(),this.options)))}},{key:"parse",value:function(e){var t=this,n=e.directives,r=void 0===n?[]:n,o=e.contents,a=void 0===o?[]:o,i=e.error,s=e.valueRange;i&&(i.source||(i.source=this),this.errors.push(i));var c=[];r.forEach(function(e){var n=e.comment,r=e.name;switch(r){case"TAG":t.resolveTagDirective(e);break;case"YAML":case"YAML:1.0":t.resolveYamlDirective(e);break;default:if(r){var o="YAML only supports %TAG and %YAML directives, and not %".concat(r);t.warnings.push(new m.YAMLWarning(e,o))}}n&&c.push(n)}),this.range=s?[s.start,s.end]:null,this.setSchema(),this.anchors._cstAliases=[],this.commentBefore=c.join("\n")||null;var f={before:[],after:[]},l=[];switch(a.forEach(function(e){if(e.valueRange&&!e.valueRange.isEmpty){if(1===l.length){t.errors.push(new m.YAMLSyntaxError(e,"Document is not valid YAML (bad indentation?)"))}l.push(t.resolveNode(e))}else if(e.comment){(0===l.length?f.before:f.after).push(e.comment)}}),l.length){case 0:this.contents=null,f.after=f.before;break;case 1:if(this.contents=l[0],this.contents){var p=f.before.join("\n")||null;if(p){var h=this.contents instanceof u.default&&this.contents.items[0]?this.contents.items[0]:this.contents;h.commentBefore=h.commentBefore?"".concat(p,"\n").concat(h.commentBefore):p}}else f.after=f.before.concat(f.after);break;default:this.contents=l,this.contents[0]?this.contents[0].commentBefore=f.before.join("\n")||null:f.after=f.before.concat(f.after)}return this.comment=f.after.join("\n")||null,this.anchors.resolveNodes(),this}},{key:"resolveTagDirective",value:function(e){var t=l(e.parameters,2),n=t[0],r=t[1];if(n&&r)if(this.tagPrefixes.every(function(e){return e.handle!==n}))this.tagPrefixes.push({handle:n,prefix:r});else{this.errors.push(new m.YAMLSemanticError(e,"The %TAG directive must only be given at most once per handle in the same document."))}else{this.errors.push(new m.YAMLSemanticError(e,"Insufficient parameters given for %TAG directive"))}}},{key:"resolveYamlDirective",value:function(t){var n=l(t.parameters,1)[0];if("YAML:1.0"===t.name&&(n="1.0"),this.version){this.errors.push(new m.YAMLSemanticError(t,"The %YAML directive must only be given at most once per document."))}if(n){if(!e.defaults[n]){var r=this.version||this.options.version,o="Document will be parsed as YAML ".concat(r," rather than YAML ").concat(n);this.warnings.push(new m.YAMLWarning(t,o))}this.version=n}else{this.errors.push(new m.YAMLSemanticError(t,"Insufficient parameters given for %YAML directive"))}}},{key:"resolveTagName",value:function(e){var t=e.tag,n=e.type,r=!1;if(t){var o=t.handle,i=t.suffix,u=t.verbatim;if(u){if("!"!==u&&"!!"!==u)return u;var s="Verbatim tags aren't resolved, so ".concat(u," is invalid.");this.errors.push(new m.YAMLSemanticError(e,s))}else if("!"!==o||i){var c=this.tagPrefixes.find(function(e){return e.handle===o});if(!c){var f=this.getDefaults().tagPrefixes;f&&(c=f.find(function(e){return e.handle===o}))}if(c){if(i){if("!"===o&&"1.0"===(this.version||this.options.version)){if("^"===i[0])return i;if(/[:/]/.test(i)){var l=i.match(/^([a-z0-9-]+)\/(.*)/i);return l?"tag:".concat(l[1],".yaml.org,2002:").concat(l[2]):"tag:".concat(i)}}return c.prefix+decodeURIComponent(i)}this.errors.push(new m.YAMLSemanticError(e,"The ".concat(o," tag has no suffix.")))}else{var p="The ".concat(o," tag handle is non-default and was not declared.");this.errors.push(new m.YAMLSemanticError(e,p))}}else r=!0}switch(n){case v.Type.BLOCK_FOLDED:case v.Type.BLOCK_LITERAL:case v.Type.QUOTE_DOUBLE:case v.Type.QUOTE_SINGLE:return a.DefaultTags.STR;case v.Type.FLOW_MAP:case v.Type.MAP:return a.DefaultTags.MAP;case v.Type.FLOW_SEQ:case v.Type.SEQ:return a.DefaultTags.SEQ;case v.Type.PLAIN:return r?a.DefaultTags.STR:null;default:return null}}},{key:"resolveNode",value:function(e){if(!e)return null;var t,n=this.anchors,r=this.errors,o=this.schema,a=!1,u=!1,s={before:[],after:[]};if((function(e){return e&&-1!==[v.Type.MAP_KEY,v.Type.MAP_VALUE,v.Type.SEQ_ITEM].indexOf(e.type)}(e.context.parent)?e.context.parent.props.concat(e.props):e.props).forEach(function(t,n){var o=t.start,i=t.end;switch(e.context.src[o]){case v.Char.COMMENT:if(!e.commentHasRequiredWhitespace(o)){r.push(new m.YAMLSemanticError(e,"Comments must be separated from other tokens by white space characters"))}var c=e.context.src.slice(o+1,i),f=e.header,l=e.valueRange;l&&(o>l.start||f&&o>f.start)?s.after.push(c):s.before.push(c);break;case v.Char.ANCHOR:if(a){r.push(new m.YAMLSemanticError(e,"A node can have at most one anchor"))}a=!0;break;case v.Char.TAG:if(u){r.push(new m.YAMLSemanticError(e,"A node can have at most one tag"))}u=!0}}),a){var c=e.anchor,f=n.getNode(c);f&&(n.map[n.newName(c)]=f),n.map[c]=e}if(e.type===v.Type.ALIAS){if(a||u){r.push(new m.YAMLSemanticError(e,"An alias node must not specify any properties"))}var l=e.rawValue,p=n.getNode(l);if(!p){var h="Aliased anchor not found: ".concat(l);return r.push(new m.YAMLReferenceError(e,h)),null}if(t=new i.default(p),n._cstAliases.push(t),!p.resolved){this.warnings.push(new m.YAMLWarning(e,"Alias node contains a circular reference, which cannot be resolved as JSON"))}}else{var d=this.resolveTagName(e);if(d)t=o.resolveNodeWithFallback(this,e,d);else{if(e.type!==v.Type.PLAIN){var y="Failed to resolve ".concat(e.type," node here");return r.push(new m.YAMLSyntaxError(e,y)),null}try{t=o.resolveScalar(e.strValue||"")}catch(t){return t.source||(t.source=e),r.push(t),null}}}if(t){t.range=[e.range.start,e.range.end],this.options.keepCstNodes&&(t.cstNode=e),this.options.keepNodeTypes&&(t.type=e.type);var g=s.before.join("\n");g&&(t.commentBefore=t.commentBefore?"".concat(t.commentBefore,"\n").concat(g):g);var b=s.after.join("\n");b&&(t.comment=t.comment?"".concat(t.comment,"\n").concat(b):b)}return e.resolved=t}},{key:"listNonDefaultTags",value:function(){return(0,o.default)(this.contents).filter(function(e){return 0!==e.indexOf(a.defaultPrefix)})}},{key:"setTagPrefix",value:function(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){var n=this.tagPrefixes.find(function(t){return t.handle===e});n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter(function(t){return t.handle!==e})}},{key:"stringifyTag",value:function(e){if("1.0"===(this.version||this.options.version)){var t=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(t)return"!"+t[1];var n=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(e.replace(/^tag:/,""))}var r=this.tagPrefixes.find(function(t){return 0===e.indexOf(t.prefix)});if(!r){var o=this.getDefaults().tagPrefixes;r=o&&o.find(function(t){return 0===e.indexOf(t.prefix)})}if(!r)return"!"===e[0]?e:"!<".concat(e,">");var a=e.substr(r.prefix.length).replace(/[!,\[]{}]/g,function(e){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e]});return r.handle+a}},{key:"toJSON",value:function(e){var t=this.warnings.find(function(e){return/circular reference/.test(e.message)});if(t)throw new m.YAMLSemanticError(t.source,t.message);var n=this.options.keepBlobsInJSON&&("string"!=typeof e||!(this.contents instanceof c.default));return(0,s.default)(this.contents,e,n)}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();var e=[];this.commentBefore&&e.push(this.commentBefore.replace(/^/gm,"#"));var t=!1;if(this.version){var r="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?r="%YAML:1.0":"1.1"===this.version&&(r="%YAML 1.1")),e.push(r),t=!0}var o=this.listNonDefaultTags();this.tagPrefixes.forEach(function(n){var r=n.handle,a=n.prefix;o.some(function(e){return 0===e.indexOf(a)})&&(e.push("%TAG ".concat(r," ").concat(a)),t=!0)}),t&&e.push("---");var a={anchors:{},doc:this,indent:""};if(this.contents){this.contents.commentBefore&&e.push(this.contents.commentBefore.replace(/^/gm,"#")),a.forceBlockIndent=!!this.comment;var i=this.contents.comment,u=this.schema.stringify(this.contents,a,function(){i=null});e.push((0,n.default)(u,"",i))}else void 0!==this.contents&&e.push(this.schema.stringify(this.contents,a));return this.comment&&e.push(this.comment.replace(/^/gm,"#")),e.join("\n")+"\n"}}])&&p(t.prototype,f),h&&p(t,h),e}();t.default=g,h=g,d="defaults",y={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:a.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:a.defaultPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:a.defaultPrefix}]}},d in h?Object.defineProperty(h,d,{value:y,enumerable:!0,configurable:!0,writable:!0}):h[d]=y});a(Xe);var et=i(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(L),r=a(F),o=a(Xe);function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return(i="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":u(e)})(e)}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l={keepNodeTypes:!0,keepBlobsInJSON:!0,tags:null,version:"1.2"},p=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,c(t).call(this,Object.assign({},l,e)))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,o.default),t}();function h(e,t){var r=(0,n.default)(e),o=new p(t).parse(r[0]);if(r.length>1){o.errors.unshift(new m.YAMLSemanticError(r[1],"Source contains multiple documents; please use YAML.parseAllDocuments()"))}return o}var d={createNode:r.default,defaultOptions:l,Document:p,parse:function(e,t){var n=h(e,t);if(n.warnings.forEach(function(e){return console.warn(e)}),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){return(0,n.default)(e).map(function(e){return new p(t).parse(e)})},parseCST:n.default,parseDocument:h,stringify:function(e,t){var n=new p(t);return n.contents=e,String(n)}};t.default=d});a(et);var tt=L,nt=i(function(e,t){function n(e,t){e.position={start:e.position.start,end:t}}t.__esModule=!0,t.overwriteStart=function(e,t){e.position={start:t,end:e.position.end}},t.overwriteEnd=n,t.getLast=function(e){return e[e.length-1]},t.defineParent=function(e,t){Object.defineProperty(e,"parent",{value:t,enumerable:!1})},t.createError=function(e,t){var n=new SyntaxError(e.message);return n.name="YAMLSyntaxError",n.source=t.text,n.position=t.transformRange(e.source.range||e.source.valueRange),n},t.getStartPoint=function(e){var t="tag"in e&&"null"!==e.tag.type&&e.tag.position,n="anchor"in e&&"null"!==e.anchor.type&&e.anchor.position;return t||n?t&&n?t.start.offset<n.start.offset?t.start:n.start:t?t.start:n.start:e.position.start},t.updateEndPoints=function e(t,r){if(void 0===r&&(r=[]),"children"in t&&0!==t.children.length&&t.children.forEach(function(n){e(n,r.concat(t))}),0!==r.length){for(var o=r[r.length-1],a=0,i=["endComments","trailingComments"];a<i.length;a++){var u=t[i[a]];if(u&&0!==u.length){var s=u[u.length-1];s.position.end.offset>o.position.end.offset&&n(o,s.position.end)}}"null"!==t.type&&t.position.end.offset>o.position.end.offset&&n(o,t.position.end)}},t.isYAMLError=function(e){return e instanceof Error&&("YAMLSyntaxError"===e.name||"YAMLSemanticError"===e.name)},t.findLastCharIndex=function(e,t,n){if(t<e.length)for(var r=t;r>=0;r--){var o=e[r];if(n.test(o))return r}return-1},t.isExplicitMappingItem=function(e){var t=e.children,n=t[0],r=t[1];return"null"===r.type||n.position.start.line!==r.position.start.line},t.isBlockValue=function(e){return"blockFolded"===e.type||"blockLiteral"===e.type}});a(nt);var rt=i(function(e,t){function n(e,t){if(t.position.end.offset<e.position.end.offset)return!1;switch(e.type){case"sequence":return"documentBody"!==e.parent.type&&t.position.start.column>=e.position.start.column&&t.position.start.offset>nt.getLast(e.children).position.end.offset;case"sequenceItem":return t.position.start.column>e.position.start.column;case"mappingValue":return t.position.start.column>e.parent.position.start.column&&!nt.isBlockValue(e.children[0]);case"mappingKey":return t.position.start.column>e.parent.position.start.column&&!nt.isBlockValue(e.children[0])&&nt.isExplicitMappingItem(e.parent);default:return!1}}t.__esModule=!0,t.attachComments=function(e,t){var r=function(e,t){for(var n=t.text.split("\n").map(function(){return{leadingAttachableNode:null,trailingAttachableNode:null,trailingNode:null,comment:null}}),r=0,o=t.comments;r<o.length;r++){var a=o[r];n[a.position.start.line-1].comment=a}return function e(t,n,r){if("leadingComments"in t){var o=nt.getStartPoint(t),a=n[o.line-1].leadingAttachableNode;"document"!==t.type&&(!a||o.column<a.position.start.column)&&(n[o.line-1].leadingAttachableNode=t)}if("trailingComments"in t){var i=t.position.end,u=n[i.line-1].trailingAttachableNode;"document"===t.type&&"\n..."!==r.text.slice(t.position.end.offset-4,t.position.end.offset)||u&&!(i.column>=u.position.end.column)||(n[i.line-1].trailingAttachableNode=t)}if("null"!==t.type&&"root"!==t.type&&"document"!==t.type&&"documentHead"!==t.type&&"documentBody"!==t.type)for(var s=t.position,o=s.start,i=s.end,c=[i.line].concat(o.line===i.line?[]:o.line),f=0,l=c;f<l.length;f++){var p=l[f],u=n[p-1].trailingNode;(!u||i.column>=u.position.end.column)&&(n[p-1].trailingNode=t)}"children"in t&&t.children.forEach(function(o){nt.defineParent(o,t),e(o,n,r)})}(e,n,t),n}(e,t),o=e.children.slice();t.comments.sort(function(e,t){return e.position.start.offset-t.position.end.offset}).filter(function(e){return void 0===e.parent}).forEach(function(e){for(;o.length>1&&e.position.start.line>o[0].position.end.line;)o.shift();!function(e,t,r){var o=e.position.start.line,a=t[o-1].trailingAttachableNode;if(null!==a&&"blockFolded"!==a.type&&"blockLiteral"!==a.type)return nt.defineParent(e,a),void a.trailingComments.push(e);for(var i=o;i>=r.position.start.line;i--){var u=t[i-1].trailingNode,s=void 0;if(null===u){if(i===o||null===t[i-1].comment)continue;s=t[i-1].comment.parent}else s=u;for(;;){if(n(s,e))return nt.defineParent(e,s),void s.endComments.push(e);if(void 0===s.parent)break;s=s.parent}break}for(var i=o+1;i<=r.position.end.line;i++){var c=t[i-1].leadingAttachableNode;if(null!==c)return nt.defineParent(e,c),void c.leadingComments.push(e)}nt.defineParent(e,r.children[1]),r.children[1].children.push(e)}(e,r,o[0])}),nt.updateEndPoints(e)}});a(rt);var ot=i(function(e,t){t.__esModule=!0,t.createNode=function(e,t){return{type:e,position:t}}});a(ot);var at=i(function(e,t){t.__esModule=!0,t.createRoot=function(e,t,n){return h.__assign({},ot.createNode("root",e),{children:t,comments:n})}});function it(){}a(at),it.ok=function(){},it.strictEqual=function(){};var ut=Object.freeze({default:it}),st=i(function(e,t){t.__esModule=!0,t.createAnchor=function(e,t){return h.__assign({},ot.createNode("anchor",e),{value:t})}});a(st);var ct=i(function(e,t){t.__esModule=!0,t.createComment=function(e,t){return h.__assign({},ot.createNode("comment",e),{value:t})}});a(ct);var ft=i(function(e,t){t.__esModule=!0,t.createNonSpecificTag=function(e){return ot.createNode("nonSpecificTag",e)}});a(ft);var lt=i(function(e,t){t.__esModule=!0,t.createShorthandTag=function(e,t,n){return h.__assign({},ot.createNode("shorthandTag",e),{handle:t,suffix:n})}});a(lt);var pt=i(function(e,t){t.__esModule=!0,t.createVerbatimTag=function(e,t){return h.__assign({},ot.createNode("verbatimTag",e),{value:t})}});a(pt);var ht=i(function(e,t){t.__esModule=!0,t.createCommentAttachable=function(){return{leadingComments:[],trailingComments:[]}}});a(ht);var dt=i(function(e,t){t.__esModule=!0,t.createPoint=function(e,t,n){return{offset:e,line:t,column:n}}});a(dt);var yt=i(function(e,t){t.__esModule=!0,t.createPosition=function(e,t){return{start:e,end:t}}});a(yt);var vt=i(function(e,t){t.__esModule=!0,t.createNull=function(){return ot.createNode("null",yt.createPosition(dt.createPoint(-1,-1,-1),dt.createPoint(-1,-1,-1)))}});a(vt);var mt=i(function(e,t){t.__esModule=!0,t.createContent=function(){return{anchor:vt.createNull(),tag:vt.createNull(),middleComments:[]}}});a(mt);var gt=i(function(e,t){t.__esModule=!0,t.createAlias=function(e,t){return h.__assign({},ot.createNode("alias",e),mt.createContent(),ht.createCommentAttachable(),{value:t})}});a(gt);var bt=ut&&it||ut,_t=i(function(e,t){t.__esModule=!0,t.tranformAlias=function(e,t){return bt(null!==e.valueRange),gt.createAlias(t.transformRange({start:e.valueRange.start-1,end:e.valueRange.end}),e.rawValue)}});a(_t);var wt=i(function(e,t){t.__esModule=!0,t.createBlockFolded=function(e){return h.__assign({},e,{type:"blockFolded"})}});a(wt);var Ot=i(function(e,t){t.__esModule=!0,t.createBlockValue=function(e,t,n,r){return h.__assign({},ot.createNode("blockValue",e),mt.createContent(),ht.createCommentAttachable(),{chomping:t,indent:n,value:r})}});a(Ot);var Et=i(function(e,t){var n;t.__esModule=!0,function(e){e.CLIP="clip",e.STRIP="strip",e.KEEP="keep"}(n||(n={})),t.tranformBlockValue=function(e,t){bt(null!==e.valueRange),bt(null!==e.strValue);var r="CLIP"===e.chomping?0:1,o=e.header.length-1-r!=0;return bt(!o||null!==e.blockIndent),Ot.createBlockValue(t.transformRange({start:e.header.start,end:e.valueRange.end}),n[e.chomping],o?e.blockIndent:null,e.strValue)}});a(Et);var St=i(function(e,t){t.__esModule=!0,t.tranformBlockFolded=function(e,t){return bt("BLOCK_FOLDED"===e.type),wt.createBlockFolded(Et.tranformBlockValue(e,t))}});a(St);var Mt=i(function(e,t){t.__esModule=!0,t.createBlockLiteral=function(e){return h.__assign({},e,{type:"blockLiteral"})}});a(Mt);var Pt=i(function(e,t){t.__esModule=!0,t.tranformBlockLiteral=function(e,t){return bt("BLOCK_LITERAL"===e.type),Mt.createBlockLiteral(Et.tranformBlockValue(e,t))}});a(Pt);var Tt=i(function(e,t){t.__esModule=!0,t.transformComment=function(e,t){return bt(null!==e.range),ct.createComment(t.transformRange(e.range),e.comment)}});a(Tt);var At=i(function(e,t){t.__esModule=!0,t.createDirective=function(e,t,n){return h.__assign({},ot.createNode("directive",e),ht.createCommentAttachable(),{name:t,parameters:n})}});a(At);var kt=i(function(e,t){t.__esModule=!0,t.transformDirective=function(e,t){return bt(null!==e.range),At.createDirective(t.transformRange(e.range),e.name,e.parameters)}});a(kt);var Lt=i(function(e,t){t.__esModule=!0,t.createDocument=function(e,t,n){return h.__assign({},ot.createNode("document",e),ht.createCommentAttachable(),{children:[t,n]})}});a(Lt);var jt=i(function(e,t){t.__esModule=!0,t.createDocumentBody=function(e,t){return h.__assign({},ot.createNode("documentBody",e),{children:t})}});a(jt);var Nt=i(function(e,t){t.__esModule=!0,t.createDocumentHead=function(e,t){return h.__assign({},ot.createNode("documentHead",e),{children:t})}});a(Nt);var Rt=i(function(e,t){t.__esModule=!0,t.transformDocument=function(e,t){bt(null!==e.valueRange);var n=e.directives.map(t.transformNode),r=n.reduce(function(e,t){return"comment"===t.type?e+1:0},0),o=n.filter(function(e,o){return!(o<n.length-r&&"comment"===e.type&&(t.comments.push(e),1))}),a=e.contents.map(t.transformNode),i=a.filter(function(e){return"comment"!==e.type||(t.comments.push(e),!1)});bt(i.length<=1);var u,s,c,f,l=(u=t.text.slice(0,e.valueRange.start).match(/(^|\n)---\s*$/),s=u?t.text.indexOf("---",u.index):-1,c=0!==n.length?n[0].position.start.offset:u?s:e.valueRange.start,f=u?s+"---".length:e.valueRange.start,t.transformRange({start:c,end:f})),p=function(n){var r=t.text.slice(e.valueRange.end).match(/^\s*\.\.\.(\s*(#[^\n]*)?\n|$)/),o=r?t.text.indexOf("...",e.valueRange.end+r.index):-1,i=0!==a.length?a[0].position.start.offset:e.valueRange.start,u=r?o+"...".length:0!==a.length?nt.getLast(a).position.end.offset:e.valueRange.start;return t.transformRange({start:i,end:u})}(),h=yt.createPosition(l.start,p.end),d=Nt.createDocumentHead(l,[]);return d.children=o.map(function(e){return"comment"===e.type&&(t.comments.push(e),nt.defineParent(e,d)),e}),Lt.createDocument(h,d,jt.createDocumentBody(p,i))}});a(Rt);var xt=i(function(e,t){t.__esModule=!0,t.createFlowCollection=function(e,t){return h.__assign({},ot.createNode("flowCollection",e),mt.createContent(),ht.createCommentAttachable(),{children:t})}});a(xt);var Ct=i(function(e,t){t.__esModule=!0,t.createFlowMapping=function(e,t){return h.__assign({},xt.createFlowCollection(e,t),{type:"flowMapping"})}});a(Ct);var It=i(function(e,t){t.__esModule=!0,t.createFlowMappingItem=function(e,t,n){return h.__assign({},ot.createNode("flowMappingItem",e),ht.createCommentAttachable(),{children:[t,n]})}});a(It);var Dt=i(function(e,t){t.__esModule=!0,t.createFlowSequenceItem=function(e,t){return h.__assign({},ot.createNode("flowSequenceItem",e),{children:[t]})}});a(Dt);var Bt=i(function(e,t){t.__esModule=!0,t.createEndCommentAttachable=function(){return{endComments:[]}}});a(Bt);var Yt=i(function(e,t){t.__esModule=!0,t.createMappingKey=function(e,t){return h.__assign({},ot.createNode("mappingKey",e),ht.createCommentAttachable(),Bt.createEndCommentAttachable(),{children:[t]})}});a(Yt);var Ft=i(function(e,t){t.__esModule=!0,t.createMappingValue=function(e,t){return h.__assign({},ot.createNode("mappingValue",e),ht.createCommentAttachable(),Bt.createEndCommentAttachable(),{children:[t]})}});a(Ft);var Ut=i(function(e,t){function n(e,t,n,r){bt(t.length===n.length);var o=t.indexOf(",");bt(-1===o||o===t.length-1);var a=-1===o?t:t.slice(0,-1);if(bt(a.length>0&&a.length<=4),1===a.length){var i=a[0];if("string"==typeof i){var u=n[0],s=r.transformRange(u);return It.createFlowMappingItem(s,"?"===i?Yt.createMappingKey(r.transformRange(u),r.transformNode(null)):r.transformNode(null),":"===i?Ft.createMappingValue(r.transformRange(u),r.transformNode(null)):r.transformNode(null))}return"FLOW_MAP"===e?It.createFlowMappingItem(i.position,Yt.createMappingKey(i.position,i),r.transformNode(null)):Dt.createFlowSequenceItem(i.position,i)}var c=t.indexOf(":"),f=t.indexOf("?");if(2===a.length){if(-1!==f&&-1!==c){var l=n[0],p=n[1];return It.createFlowMappingItem(r.transformRange({start:l.start,end:p.end}),Yt.createMappingKey(r.transformRange(l),r.transformNode(null)),Ft.createMappingValue(r.transformRange(p),r.transformNode(null)))}if(-1!==f){bt(0===f);l=n[0];var h=a[1],d={start:r.transformOffset(l.start),end:h.position.end};return It.createFlowMappingItem(d,Yt.createMappingKey(d,h),r.transformNode(null))}if(0===c){p=n[0];var y=a[1],v={start:r.transformOffset(p.start),end:y.position.end};return It.createFlowMappingItem(v,r.transformNode(null),Ft.createMappingValue(v,y))}bt(1===c);p=n[1],h=a[0];return It.createFlowMappingItem(yt.createPosition(h.position.start,r.transformOffset(p.end)),Yt.createMappingKey(h.position,h),Ft.createMappingValue(r.transformRange(p),r.transformNode(null)))}if(3===a.length){if(-1===f){bt(1===c);p=n[1],h=a[0],y=a[2];return It.createFlowMappingItem(r.transformRange({start:h.position.start.offset,end:y.position.end.offset}),Yt.createMappingKey(h.position,h),Ft.createMappingValue(r.transformRange({start:p.start,end:y.position.end.offset}),y))}if(bt(0===f),1===c){l=n[0],p=n[1],y=a[2];return It.createFlowMappingItem(r.transformRange({start:l.start,end:y.position.end.offset}),Yt.createMappingKey(r.transformRange(l),r.transformNode(null)),Ft.createMappingValue(r.transformRange({start:p.start,end:y.position.end.offset}),y))}l=n[0],p=n[2],h=a[1];return It.createFlowMappingItem(r.transformRange({start:l.start,end:p.end}),Yt.createMappingKey(r.transformRange({start:l.start,end:h.position.end.offset}),h),Ft.createMappingValue(r.transformRange(p),r.transformNode(null)))}bt(0===f&&2===c);l=n[0],p=n[2],h=a[1],y=a[3];return It.createFlowMappingItem(r.transformRange({start:l.start,end:y.position.end.offset}),Yt.createMappingKey(r.transformRange({start:l.start,end:h.position.end.offset}),h),Ft.createMappingValue(r.transformRange({start:p.start,end:y.position.end.offset}),y))}t.__esModule=!0,t.transformFlowCollection=function(e,t){bt(null!==e.valueRange),bt(e.items.length>=2),bt("FLOW_MAP"===e.type?"{"===e.items[0]&&"}"===nt.getLast(e.items):"["===e.items[0]&&"]"===nt.getLast(e.items));for(var r=!1,o=!1,a=[],i=[],s=[],c=e.valueRange.start,f=c+1,l=e.items.length-2,p=1;p<=l;p++){var h=!1,d=e.items[p];if("{"!==d&&"}"!==d&&"["!==d&&"]"!==d){if("object"===u(d)&&"COMMENT"===d.type){h=!0;var y=t.transformNode(d);t.comments.push(y),c=y.position.start.offset,f=y.position.end.offset}else"?"===d?(bt(!r),bt(!o),o=!0):":"===d&&(bt(!r),r=!0),v("string"==typeof d?d:t.transformNode(d));if(p===l&&0===i.length&&h)break;","!==d&&p!==l||(a.push(n(e.type,i,s,t)),i=[],s=[],r=!1,o=!1)}else bt(!0)}return xt.createFlowCollection(t.transformRange(e.valueRange),a);function v(e){var n=function(e){if("string"!=typeof e)return{start:e.position.start.offset,end:e.position.end.offset};var n=t.text.indexOf(e,f);return{start:n,end:n+e.length}}(e),r=n.start,o=n.end;c=r,f=o,i.push(e),s.push({start:r,end:o})}}});a(Ut);var Vt=i(function(e,t){t.__esModule=!0,t.transformFlowMap=function(e,t){bt("FLOW_MAP"===e.type);var n=Ut.transformFlowCollection(e,t);bt(n.children.every(function(e){return"flowMappingItem"===e.type}));var r=n.children;return Ct.createFlowMapping(n.position,r)}});a(Vt);var Kt=i(function(e,t){t.__esModule=!0,t.createFlowSequence=function(e,t){return h.__assign({},xt.createFlowCollection(e,t),{type:"flowSequence"})}});a(Kt);var Qt=i(function(e,t){t.__esModule=!0,t.transformFlowSeq=function(e,t){bt("FLOW_SEQ"===e.type);var n=Ut.transformFlowCollection(e,t);return Kt.createFlowSequence(n.position,n.children)}});a(Qt);var Wt=i(function(e,t){t.__esModule=!0,t.createMapping=function(e,t){return h.__assign({},ot.createNode("mapping",e),mt.createContent(),ht.createCommentAttachable(),{children:t})}});a(Wt);var qt=i(function(e,t){t.__esModule=!0,t.createMappingItem=function(e,t,n){return h.__assign({},ot.createNode("mappingItem",e),ht.createCommentAttachable(),{children:[t,n]})}});a(qt);var $t=i(function(e,t){t.__esModule=!0,t.transformMap=function(e,t){bt(null!==e.valueRange);var n=function(e,t){var n=e.filter(function(e){return"COMMENT"!==e.type||(t.comments.push(t.transformNode(e)),!1)}),r=[];return n.reduce(function(e,o,a){if("MAP_VALUE"!==o.type){if("MAP_KEY"===o.type)r.push(t.transformNode(o));else{var i=t.transformNode(o);r.push(Yt.createMappingKey(i.position,i))}if(1===r.length&&a!==n.length-1)return e;var u=0;return 1!==r.length&&(u++,bt("MAP_KEY"===n[a-1].type)),a===n.length-1&&(u++,bt("MAP_KEY"===n[a].type)),e.concat(r.splice(0,u).map(function(e){return qt.createMappingItem(e.position,e,t.transformNode(null))}))}var s=t.transformNode(o);bt(r.length<=1);var c=0!==r.length?r.pop():Yt.createMappingKey(yt.createPosition(s.position.start,s.position.start),t.transformNode(null));return e.concat(qt.createMappingItem(yt.createPosition(c.position.start,s.position.end),c,s))},[])}(e.items,t);return Wt.createMapping(yt.createPosition(n[0].position.start,nt.getLast(n).position.end),n)}});a($t);var Jt=i(function(e,t){t.__esModule=!0,t.transformMapKey=function(e,t){bt("MAP_KEY"===e.type),bt(null!==e.valueRange),bt(null===e.node||"COMMENT"!==e.node.type);var n=t.transformNode(e.node),r=t.transformOffset(e.valueRange.start);return Yt.createMappingKey(yt.createPosition(r,"null"===n.type?r:n.position.end),n)}});a(Jt);var Gt=i(function(e,t){t.__esModule=!0,t.transformMapValue=function(e,t){bt(null!==e.valueRange),bt(null===e.node||"COMMENT"!==e.node.type);var n=t.transformNode(e.node);return Ft.createMappingValue(yt.createPosition(t.transformOffset(e.valueRange.start),"null"===n.type?t.transformOffset(e.valueRange.start+1):n.position.end),n)}});a(Gt);var zt=i(function(e,t){t.__esModule=!0,t.transformNull=function(){return vt.createNull()}});a(zt);var Ht=i(function(e,t){t.__esModule=!0,t.createPlain=function(e,t){return h.__assign({},ot.createNode("plain",e),mt.createContent(),ht.createCommentAttachable(),{value:t})}});a(Ht);var Zt=i(function(e,t){t.__esModule=!0,t.transformPlain=function(e,t){return bt(null!==e.strValue),bt(null!==e.valueRange),Ht.createPlain(t.transformRange({start:e.valueRange.start,end:nt.findLastCharIndex(t.text,e.valueRange.end-1,/\S/)+1}),e.strValue)}});a(Zt);var Xt=i(function(e,t){t.__esModule=!0,t.createQuoteDouble=function(e){return h.__assign({},e,{type:"quoteDouble"})}});a(Xt);var en=i(function(e,t){t.__esModule=!0,t.createQuoteValue=function(e,t){return h.__assign({},ot.createNode("quoteValue",e),mt.createContent(),ht.createCommentAttachable(),{value:t})}});a(en);var tn=i(function(e,t){t.__esModule=!0,t.transformQuoteValue=function(e,t){return bt(null!==e.valueRange),bt("string"==typeof e.strValue),en.createQuoteValue(t.transformRange(e.valueRange),e.strValue)}});a(tn);var nn=i(function(e,t){t.__esModule=!0,t.transformQuoteDouble=function(e,t){return bt("QUOTE_DOUBLE"===e.type),Xt.createQuoteDouble(tn.transformQuoteValue(e,t))}});a(nn);var rn=i(function(e,t){t.__esModule=!0,t.createQuoteSingle=function(e){return h.__assign({},e,{type:"quoteSingle"})}});a(rn);var on=i(function(e,t){t.__esModule=!0,t.transformQuoteSingle=function(e,t){return bt("QUOTE_SINGLE"===e.type),rn.createQuoteSingle(tn.transformQuoteValue(e,t))}});a(on);var an=i(function(e,t){t.__esModule=!0,t.transformRange=function(e,t){return yt.createPosition(t.transformOffset(e.start),t.transformOffset(e.end))}});a(an);var un=i(function(e,t){t.__esModule=!0,t.createSequence=function(e,t){return h.__assign({},ot.createNode("sequence",e),mt.createContent(),ht.createCommentAttachable(),Bt.createEndCommentAttachable(),{children:t})}});a(un);var sn=i(function(e,t){t.__esModule=!0,t.transformSeq=function(e,t){var n=e.items.filter(function(e){return"COMMENT"!==e.type||(t.comments.push(t.transformNode(e)),!1)}).map(t.transformNode);return bt(null!==e.valueRange),un.createSequence(yt.createPosition(n[0].position.start,nt.getLast(n).position.end),n)}});a(sn);var cn=i(function(e,t){t.__esModule=!0,t.createSequenceItem=function(e,t){return h.__assign({},ot.createNode("sequenceItem",e),ht.createCommentAttachable(),Bt.createEndCommentAttachable(),{children:[t]})}});a(cn);var fn=i(function(e,t){t.__esModule=!0,t.transformSeqItem=function(e,t){bt(null!==e.valueRange),bt(null===e.node||"COMMENT"!==e.node.type);var n=t.transformNode(e.node);return cn.createSequenceItem(yt.createPosition(t.transformOffset(e.valueRange.start),"null"===n.type?t.transformOffset(e.valueRange.start+1):n.position.end),n)}});a(fn);var ln=i(function(e,t){t.__esModule=!0,t.transformNode=function(e,t){if(null===e)return zt.transformNull();var n=function(e,t){switch(e.type){case"ALIAS":return _t.tranformAlias(e,t);case"BLOCK_FOLDED":return St.tranformBlockFolded(e,t);case"BLOCK_LITERAL":return Pt.tranformBlockLiteral(e,t);case"COMMENT":return Tt.transformComment(e,t);case"DIRECTIVE":return kt.transformDirective(e,t);case"DOCUMENT":return Rt.transformDocument(e,t);case"FLOW_MAP":return Vt.transformFlowMap(e,t);case"FLOW_SEQ":return Qt.transformFlowSeq(e,t);case"MAP":return $t.transformMap(e,t);case"MAP_KEY":return Jt.transformMapKey(e,t);case"MAP_VALUE":return Gt.transformMapValue(e,t);case"PLAIN":return Zt.transformPlain(e,t);case"QUOTE_DOUBLE":return nn.transformQuoteDouble(e,t);case"QUOTE_SINGLE":return on.transformQuoteSingle(e,t);case"SEQ":return sn.transformSeq(e,t);case"SEQ_ITEM":return fn.transformSeqItem(e,t);default:throw new Error("Unexpected node type "+e.type)}}(e,t);if("comment"===n.type)return n;var r=-1,o=[],a=null,i=null;if(e.props.forEach(function(e){var u=t.text[e.start];switch(u){case"!":case"&":e.start<(-1!==r?r:n.position.start.offset)&&(r=e.start),"!"===u?a=e:i=e;break;case"#":o.push(e);break;default:throw new Error("Unexpected leading character "+JSON.stringify(u))}}),o.forEach(function(e){var o=e.start,a=e.end,i=ct.createComment(an.transformRange(e,t),t.text.slice(e.start+1,e.end));"middleComments"in n&&-1!==r&&r<=o&&n.position.start.offset>=a?(nt.defineParent(i,n),n.middleComments.push(i)):("blockFolded"===n.type||"blockLiteral"===n.type)&&n.position.start.offset<o&&n.position.end.offset>a&&(nt.defineParent(i,n),n.trailingComments.push(i)),t.comments.push(i)}),a){bt("tag"in n);var u=e.tag;n.tag="verbatim"in u?pt.createVerbatimTag(t.transformRange(a),u.verbatim):"!"===u.handle&&""===u.suffix?ft.createNonSpecificTag(t.transformRange(a)):lt.createShorthandTag(t.transformRange(a),u.handle,u.suffix)}if(i){bt("anchor"in n);var s=e.anchor;n.anchor=st.createAnchor(t.transformRange(i),s)}return n}});a(ln);var pn=i(function(e,t){t.__esModule=!0,t.transformOffset=function(e,t){var n=t.locator.locationForIndex(e);return bt(null!==n),dt.createPoint(e,n.line+1,n.column+1)}});a(pn);var hn=i(function(e,t){t.__esModule=!0,t.parse=function(e){var t=tt.default(e),n=new d.default(e),r=[],o={text:e,locator:n,comments:r,transformNode:function(e){return ln.transformNode(e,o)},transformRange:function(e){return an.transformRange(e,o)},transformOffset:function(e){return pn.transformOffset(e,o)}};t.forEach(function(e){var t=new et.default.Document({merge:!0}).parse(e).errors.filter(nt.isYAMLError);if(0!==t.length)throw nt.createError(t[0],o)});var a=o.transformRange({start:0,end:e.length}),i=t.map(o.transformNode).map(function(t,n,r){if(0===n&&nt.overwriteStart(t,a.start),"\n..."!==e.slice(t.position.end.offset-4,t.position.end.offset)){var i=n===r.length-1?a.end:o.transformOffset(r[n+1].position.start.offset-1);nt.overwriteEnd(t,i),nt.overwriteEnd(t.children[1],i)}return t}),u=at.createRoot(a,i,r);return 0!==o.comments.length&&rt.attachComments(u,o),u}});a(hn);var dn=i(function(e,t){t.__esModule=!0,h.__exportStar(hn,t)});a(dn);var yn=o,vn=r,mn=n;return{parsers:{yaml:{astFormat:"yaml",parse:function(t){try{var n=mn(dn.parse(t),function(e){return"mappingKey"!==e.type&&"mappingValue"!==e.type||"null"!==e.children[0].type||0!==e.leadingComments.length||0!==e.trailingComments.length||0!==e.endComments.length?(function(e){switch(e.type){case"document":vn(e,"head",function(){return e.children[0]}),vn(e,"body",function(){return e.children[1]});break;case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":vn(e,"node",function(){return e.children[0]});break;case"mappingItem":case"flowMappingItem":vn(e,"key",function(){return e.children[0]}),vn(e,"value",function(){return e.children[1]})}}(e),e):yn()});return delete n.comments,n}catch(t){throw t&&"YAMLSyntaxError"===t.name?e(t.message,t.position):t}},hasPragma:t,locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset},preprocess:function(e){return-1===e.indexOf("\r")?e:e.replace(/\r\n?/g,"\n")}}}}});
|