@hiiretail/gcp-infra-generators 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node_modules/.package-lock.json +8 -8
- package/dist/node_modules/js-yaml/README.md +9 -8
- package/dist/node_modules/js-yaml/dist/js-yaml.js +22 -16
- package/dist/node_modules/js-yaml/dist/js-yaml.min.js +2 -2
- package/dist/node_modules/js-yaml/dist/js-yaml.mjs +20 -15
- package/dist/node_modules/js-yaml/lib/loader.js +18 -12
- package/dist/node_modules/js-yaml/package.json +1 -1
- package/dist/package.json +2 -2
- package/package.json +2 -2
- package/dist/node_modules/js-yaml/CHANGELOG.md +0 -616
|
@@ -1044,9 +1044,9 @@
|
|
|
1044
1044
|
}
|
|
1045
1045
|
},
|
|
1046
1046
|
"node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": {
|
|
1047
|
-
"version": "3.14.
|
|
1048
|
-
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.
|
|
1049
|
-
"integrity": "sha512-
|
|
1047
|
+
"version": "3.14.2",
|
|
1048
|
+
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz",
|
|
1049
|
+
"integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==",
|
|
1050
1050
|
"dev": true,
|
|
1051
1051
|
"license": "MIT",
|
|
1052
1052
|
"dependencies": {
|
|
@@ -7459,9 +7459,9 @@
|
|
|
7459
7459
|
"license": "MIT"
|
|
7460
7460
|
},
|
|
7461
7461
|
"node_modules/js-yaml": {
|
|
7462
|
-
"version": "4.1.
|
|
7463
|
-
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.
|
|
7464
|
-
"integrity": "sha512-
|
|
7462
|
+
"version": "4.1.1",
|
|
7463
|
+
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
|
|
7464
|
+
"integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
|
|
7465
7465
|
"dependencies": {
|
|
7466
7466
|
"argparse": "^2.0.1"
|
|
7467
7467
|
},
|
|
@@ -11541,7 +11541,7 @@
|
|
|
11541
11541
|
},
|
|
11542
11542
|
"packages/generators": {
|
|
11543
11543
|
"name": "@hiiretail/gcp-infra-generators",
|
|
11544
|
-
"version": "1.1.
|
|
11544
|
+
"version": "1.1.2",
|
|
11545
11545
|
"license": "MIT",
|
|
11546
11546
|
"dependencies": {
|
|
11547
11547
|
"@google-cloud/storage": "^7.17.0",
|
|
@@ -11552,7 +11552,7 @@
|
|
|
11552
11552
|
"enquirer-separator": "^0.1.0",
|
|
11553
11553
|
"glob": "^11.0.3",
|
|
11554
11554
|
"inquirer": "^7.3.3",
|
|
11555
|
-
"js-yaml": "^4.1.
|
|
11555
|
+
"js-yaml": "^4.1.1",
|
|
11556
11556
|
"semver": "^7.3.2",
|
|
11557
11557
|
"sprintf-js": "^1.1.3",
|
|
11558
11558
|
"yeoman-environment": "^2.10.3",
|
|
@@ -4,11 +4,11 @@ JS-YAML - YAML 1.2 parser / writer for JavaScript
|
|
|
4
4
|
[](https://github.com/nodeca/js-yaml/actions)
|
|
5
5
|
[](https://www.npmjs.org/package/js-yaml)
|
|
6
6
|
|
|
7
|
-
__[Online Demo](
|
|
7
|
+
__[Online Demo](https://nodeca.github.io/js-yaml/)__
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
This is an implementation of [YAML](
|
|
11
|
-
serialization language. Started as [PyYAML](
|
|
10
|
+
This is an implementation of [YAML](https://yaml.org/), a human-friendly data
|
|
11
|
+
serialization language. Started as [PyYAML](https://pyyaml.org/) port, it was
|
|
12
12
|
completely rewritten from scratch. Now it's very fast, and supports 1.2 spec.
|
|
13
13
|
|
|
14
14
|
|
|
@@ -81,11 +81,11 @@ options:
|
|
|
81
81
|
Loader will call this function with an instance of `YAMLException` for each warning.
|
|
82
82
|
- `schema` _(default: `DEFAULT_SCHEMA`)_ - specifies a schema to use.
|
|
83
83
|
- `FAILSAFE_SCHEMA` - only strings, arrays and plain objects:
|
|
84
|
-
|
|
84
|
+
https://www.yaml.org/spec/1.2/spec.html#id2802346
|
|
85
85
|
- `JSON_SCHEMA` - all JSON-supported types:
|
|
86
|
-
|
|
86
|
+
https://www.yaml.org/spec/1.2/spec.html#id2803231
|
|
87
87
|
- `CORE_SCHEMA` - same as `JSON_SCHEMA`:
|
|
88
|
-
|
|
88
|
+
https://www.yaml.org/spec/1.2/spec.html#id2804923
|
|
89
89
|
- `DEFAULT_SCHEMA` - all supported YAML types.
|
|
90
90
|
- `json` _(default: false)_ - compatibility with JSON.parse behaviour. If true, then duplicate keys in a mapping will override values rather than throwing an error.
|
|
91
91
|
|
|
@@ -149,6 +149,7 @@ output is shown on the right side after `=>` (default setting) or `->`:
|
|
|
149
149
|
"lowercase" => "null"
|
|
150
150
|
"uppercase" -> "NULL"
|
|
151
151
|
"camelcase" -> "Null"
|
|
152
|
+
"empty" -> ""
|
|
152
153
|
|
|
153
154
|
!!int
|
|
154
155
|
"binary" -> "0b1", "0b101010", "0b1110001111010"
|
|
@@ -182,8 +183,8 @@ Supported YAML types
|
|
|
182
183
|
--------------------
|
|
183
184
|
|
|
184
185
|
The list of standard YAML tags and corresponding JavaScript types. See also
|
|
185
|
-
[YAML tag discussion](
|
|
186
|
-
[YAML types repository](
|
|
186
|
+
[YAML tag discussion](https://pyyaml.org/wiki/YAMLTagDiscussion) and
|
|
187
|
+
[YAML types repository](https://yaml.org/type/).
|
|
187
188
|
|
|
188
189
|
```
|
|
189
190
|
!!null '' # null
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
/*! js-yaml 4.1.
|
|
2
|
+
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
5
5
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
6
6
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jsyaml = {}));
|
|
7
|
-
}(this, (function (exports) { 'use strict';
|
|
7
|
+
})(this, (function (exports) { 'use strict';
|
|
8
8
|
|
|
9
9
|
function isNothing(subject) {
|
|
10
10
|
return (typeof subject === 'undefined') || (subject === null);
|
|
@@ -1216,6 +1216,22 @@
|
|
|
1216
1216
|
);
|
|
1217
1217
|
}
|
|
1218
1218
|
|
|
1219
|
+
// set a property of a literal object, while protecting against prototype pollution,
|
|
1220
|
+
// see https://github.com/nodeca/js-yaml/issues/164 for more details
|
|
1221
|
+
function setProperty(object, key, value) {
|
|
1222
|
+
// used for this specific key only because Object.defineProperty is slow
|
|
1223
|
+
if (key === '__proto__') {
|
|
1224
|
+
Object.defineProperty(object, key, {
|
|
1225
|
+
configurable: true,
|
|
1226
|
+
enumerable: true,
|
|
1227
|
+
writable: true,
|
|
1228
|
+
value: value
|
|
1229
|
+
});
|
|
1230
|
+
} else {
|
|
1231
|
+
object[key] = value;
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1219
1235
|
var simpleEscapeCheck = new Array(256); // integer, for fast access
|
|
1220
1236
|
var simpleEscapeMap = new Array(256);
|
|
1221
1237
|
for (var i = 0; i < 256; i++) {
|
|
@@ -1394,7 +1410,7 @@
|
|
|
1394
1410
|
key = sourceKeys[index];
|
|
1395
1411
|
|
|
1396
1412
|
if (!_hasOwnProperty$1.call(destination, key)) {
|
|
1397
|
-
destination
|
|
1413
|
+
setProperty(destination, key, source[key]);
|
|
1398
1414
|
overridableKeys[key] = true;
|
|
1399
1415
|
}
|
|
1400
1416
|
}
|
|
@@ -1454,17 +1470,7 @@
|
|
|
1454
1470
|
throwError(state, 'duplicated mapping key');
|
|
1455
1471
|
}
|
|
1456
1472
|
|
|
1457
|
-
|
|
1458
|
-
if (keyNode === '__proto__') {
|
|
1459
|
-
Object.defineProperty(_result, keyNode, {
|
|
1460
|
-
configurable: true,
|
|
1461
|
-
enumerable: true,
|
|
1462
|
-
writable: true,
|
|
1463
|
-
value: valueNode
|
|
1464
|
-
});
|
|
1465
|
-
} else {
|
|
1466
|
-
_result[keyNode] = valueNode;
|
|
1467
|
-
}
|
|
1473
|
+
setProperty(_result, keyNode, valueNode);
|
|
1468
1474
|
delete overridableKeys[keyNode];
|
|
1469
1475
|
}
|
|
1470
1476
|
|
|
@@ -3860,7 +3866,7 @@
|
|
|
3860
3866
|
exports.Schema = Schema;
|
|
3861
3867
|
exports.Type = Type;
|
|
3862
3868
|
exports.YAMLException = YAMLException;
|
|
3863
|
-
exports
|
|
3869
|
+
exports["default"] = jsYaml;
|
|
3864
3870
|
exports.dump = dump;
|
|
3865
3871
|
exports.load = load;
|
|
3866
3872
|
exports.loadAll = loadAll;
|
|
@@ -3871,4 +3877,4 @@
|
|
|
3871
3877
|
|
|
3872
3878
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3873
3879
|
|
|
3874
|
-
}))
|
|
3880
|
+
}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! js-yaml 4.1.
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jsyaml={})}(this,(function(e){"use strict";function t(e){return null==e}var n={isNothing:t,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:t(e)?[]:[e]},repeat:function(e,t){var n,i="";for(n=0;n<t;n+=1)i+=e;return i},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var n,i,r,o;if(t)for(n=0,i=(o=Object.keys(t)).length;n<i;n+=1)e[r=o[n]]=t[r];return e}};function i(e,t){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),i+" "+n):i}function r(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=i(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(e){return this.name+": "+i(this,e)};var o=r;function a(e,t,n,i,r){var o="",a="",l=Math.floor(r/2)-1;return i-t>l&&(t=i-l+(o=" ... ").length),n-i>l&&(n=i+l-(a=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:i-t+o.length}}function l(e,t){return n.repeat(" ",t-e.length)+e}var c=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var i,r=/\r?\n|\r|\0/g,o=[0],c=[],s=-1;i=r.exec(e.buffer);)c.push(i.index),o.push(i.index+i[0].length),e.position<=i.index&&s<0&&(s=o.length-2);s<0&&(s=o.length-1);var u,p,f="",d=Math.min(e.line+t.linesAfter,c.length).toString().length,h=t.maxLength-(t.indent+d+3);for(u=1;u<=t.linesBefore&&!(s-u<0);u++)p=a(e.buffer,o[s-u],c[s-u],e.position-(o[s]-o[s-u]),h),f=n.repeat(" ",t.indent)+l((e.line-u+1).toString(),d)+" | "+p.str+"\n"+f;for(p=a(e.buffer,o[s],c[s],e.position,h),f+=n.repeat(" ",t.indent)+l((e.line+1).toString(),d)+" | "+p.str+"\n",f+=n.repeat("-",t.indent+d+3+p.pos)+"^\n",u=1;u<=t.linesAfter&&!(s+u>=c.length);u++)p=a(e.buffer,o[s+u],c[s+u],e.position-(o[s]-o[s+u]),h),f+=n.repeat(" ",t.indent)+l((e.line+u+1).toString(),d)+" | "+p.str+"\n";return f.replace(/\n$/,"")},s=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],u=["scalar","sequence","mapping"];var p=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===s.indexOf(t))throw new o('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(t.styleAliases||null),-1===u.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function f(e,t){var n=[];return e[t].forEach((function(e){var t=n.length;n.forEach((function(n,i){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=i)})),n[t]=e})),n}function d(e){return this.extend(e)}d.prototype.extend=function(e){var t=[],n=[];if(e instanceof p)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new o("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof p))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new o("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new o("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof p))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var i=Object.create(d.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=f(i,"implicit"),i.compiledExplicit=f(i,"explicit"),i.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(i);return n}(i.compiledImplicit,i.compiledExplicit),i};var h=d,g=new p("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),m=new p("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),y=new p("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),b=new h({explicit:[g,m,y]});var A=new p("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var v=new p("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function w(e){return 48<=e&&e<=55}function k(e){return 48<=e&&e<=57}var C=new p("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=e.length,r=0,o=!1;if(!i)return!1;if("-"!==(t=e[r])&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===i)return!0;if("b"===(t=e[++r])){for(r++;r<i;r++)if("_"!==(t=e[r])){if("0"!==t&&"1"!==t)return!1;o=!0}return o&&"_"!==t}if("x"===t){for(r++;r<i;r++)if("_"!==(t=e[r])){if(!(48<=(n=e.charCodeAt(r))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;o=!0}return o&&"_"!==t}if("o"===t){for(r++;r<i;r++)if("_"!==(t=e[r])){if(!w(e.charCodeAt(r)))return!1;o=!0}return o&&"_"!==t}}if("_"===t)return!1;for(;r<i;r++)if("_"!==(t=e[r])){if(!k(e.charCodeAt(r)))return!1;o=!0}return!(!o||"_"===t)},construct:function(e){var t,n=e,i=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(i=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return i*parseInt(n.slice(2),2);if("x"===n[1])return i*parseInt(n.slice(2),16);if("o"===n[1])return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!n.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),x=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var I=/^[-+]?[0-9]+e/;var S=new p("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!x.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||n.isNegativeZero(e))},represent:function(e,t){var i;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return i=e.toString(10),I.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"}),O=b.extend({implicit:[A,v,C,S]}),j=O,T=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),N=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var F=new p("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==T.exec(e)||null!==N.exec(e))},construct:function(e){var t,n,i,r,o,a,l,c,s=0,u=null;if(null===(t=T.exec(e))&&(t=N.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(o=+t[4],a=+t[5],l=+t[6],t[7]){for(s=t[7].slice(0,3);s.length<3;)s+="0";s=+s}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(n,i,r,o,a,l,s)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var E=new p("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var L=new p("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=0,r=e.length,o=M;for(n=0;n<r;n++)if(!((t=o.indexOf(e.charAt(n)))>64)){if(t<0)return!1;i+=6}return i%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,o=M,a=0,l=[];for(t=0;t<r;t++)t%4==0&&t&&(l.push(a>>16&255),l.push(a>>8&255),l.push(255&a)),a=a<<6|o.indexOf(i.charAt(t));return 0===(n=r%4*6)?(l.push(a>>16&255),l.push(a>>8&255),l.push(255&a)):18===n?(l.push(a>>10&255),l.push(a>>2&255)):12===n&&l.push(a>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,i="",r=0,o=e.length,a=M;for(t=0;t<o;t++)t%3==0&&t&&(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]),r=(r<<8)+e[t];return 0===(n=o%3)?(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]):2===n?(i+=a[r>>10&63],i+=a[r>>4&63],i+=a[r<<2&63],i+=a[64]):1===n&&(i+=a[r>>2&63],i+=a[r<<4&63],i+=a[64],i+=a[64]),i}}),_=Object.prototype.hasOwnProperty,D=Object.prototype.toString;var U=new p("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,i,r,o,a=[],l=e;for(t=0,n=l.length;t<n;t+=1){if(i=l[t],o=!1,"[object Object]"!==D.call(i))return!1;for(r in i)if(_.call(i,r)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==a.indexOf(r))return!1;a.push(r)}return!0},construct:function(e){return null!==e?e:[]}}),q=Object.prototype.toString;var Y=new p("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,i,r,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(i=a[t],"[object Object]"!==q.call(i))return!1;if(1!==(r=Object.keys(i)).length)return!1;o[t]=[r[0],i[r[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,i,r,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1)i=a[t],r=Object.keys(i),o[t]=[r[0],i[r[0]]];return o}}),R=Object.prototype.hasOwnProperty;var B=new p("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(R.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),K=j.extend({implicit:[F,E],explicit:[L,U,Y,B]}),P=Object.prototype.hasOwnProperty,W=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,H=/[\x85\u2028\u2029]/,$=/[,\[\]\{\}]/,G=/^(?:!|!!|![a-z\-]+!)$/i,V=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Z(e){return Object.prototype.toString.call(e)}function J(e){return 10===e||13===e}function Q(e){return 9===e||32===e}function z(e){return 9===e||32===e||10===e||13===e}function X(e){return 44===e||91===e||93===e||123===e||125===e}function ee(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function te(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function ne(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var ie=new Array(256),re=new Array(256),oe=0;oe<256;oe++)ie[oe]=te(oe)?1:0,re[oe]=te(oe);function ae(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||K,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function le(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=c(n),new o(t,n)}function ce(e,t){throw le(e,t)}function se(e,t){e.onWarning&&e.onWarning.call(null,le(e,t))}var ue={YAML:function(e,t,n){var i,r,o;null!==e.version&&ce(e,"duplication of %YAML directive"),1!==n.length&&ce(e,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&ce(e,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&ce(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&se(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var i,r;2!==n.length&&ce(e,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],G.test(i)||ce(e,"ill-formed tag handle (first argument) of the TAG directive"),P.call(e.tagMap,i)&&ce(e,'there is a previously declared suffix for "'+i+'" tag handle'),V.test(r)||ce(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(t){ce(e,"tag prefix is malformed: "+r)}e.tagMap[i]=r}};function pe(e,t,n,i){var r,o,a,l;if(t<n){if(l=e.input.slice(t,n),i)for(r=0,o=l.length;r<o;r+=1)9===(a=l.charCodeAt(r))||32<=a&&a<=1114111||ce(e,"expected valid JSON character");else W.test(l)&&ce(e,"the stream contains non-printable characters");e.result+=l}}function fe(e,t,i,r){var o,a,l,c;for(n.isObject(i)||ce(e,"cannot merge mappings; the provided source object is unacceptable"),l=0,c=(o=Object.keys(i)).length;l<c;l+=1)a=o[l],P.call(t,a)||(t[a]=i[a],r[a]=!0)}function de(e,t,n,i,r,o,a,l,c){var s,u;if(Array.isArray(r))for(s=0,u=(r=Array.prototype.slice.call(r)).length;s<u;s+=1)Array.isArray(r[s])&&ce(e,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===Z(r[s])&&(r[s]="[object Object]");if("object"==typeof r&&"[object Object]"===Z(r)&&(r="[object Object]"),r=String(r),null===t&&(t={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(o))for(s=0,u=o.length;s<u;s+=1)fe(e,t,o[s],n);else fe(e,t,o,n);else e.json||P.call(n,r)||!P.call(t,r)||(e.line=a||e.line,e.lineStart=l||e.lineStart,e.position=c||e.position,ce(e,"duplicated mapping key")),"__proto__"===r?Object.defineProperty(t,r,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[r]=o,delete n[r];return t}function he(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):ce(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function ge(e,t,n){for(var i=0,r=e.input.charCodeAt(e.position);0!==r;){for(;Q(r);)9===r&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&35===r)do{r=e.input.charCodeAt(++e.position)}while(10!==r&&13!==r&&0!==r);if(!J(r))break;for(he(e),r=e.input.charCodeAt(e.position),i++,e.lineIndent=0;32===r;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return-1!==n&&0!==i&&e.lineIndent<n&&se(e,"deficient indentation"),i}function me(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!z(t)))}function ye(e,t){1===t?e.result+=" ":t>1&&(e.result+=n.repeat("\n",t-1))}function be(e,t){var n,i,r=e.tag,o=e.anchor,a=[],l=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),i=e.input.charCodeAt(e.position);0!==i&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,ce(e,"tab characters must not be used in indentation")),45===i)&&z(e.input.charCodeAt(e.position+1));)if(l=!0,e.position++,ge(e,!0,-1)&&e.lineIndent<=t)a.push(null),i=e.input.charCodeAt(e.position);else if(n=e.line,we(e,t,3,!1,!0),a.push(e.result),ge(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)ce(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!l&&(e.tag=r,e.anchor=o,e.kind="sequence",e.result=a,!0)}function Ae(e){var t,n,i,r,o=!1,a=!1;if(33!==(r=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&ce(e,"duplication of a tag property"),60===(r=e.input.charCodeAt(++e.position))?(o=!0,r=e.input.charCodeAt(++e.position)):33===r?(a=!0,n="!!",r=e.input.charCodeAt(++e.position)):n="!",t=e.position,o){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&62!==r);e.position<e.length?(i=e.input.slice(t,e.position),r=e.input.charCodeAt(++e.position)):ce(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==r&&!z(r);)33===r&&(a?ce(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),G.test(n)||ce(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),r=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),$.test(i)&&ce(e,"tag suffix cannot contain flow indicator characters")}i&&!V.test(i)&&ce(e,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(t){ce(e,"tag name is malformed: "+i)}return o?e.tag=i:P.call(e.tagMap,n)?e.tag=e.tagMap[n]+i:"!"===n?e.tag="!"+i:"!!"===n?e.tag="tag:yaml.org,2002:"+i:ce(e,'undeclared tag handle "'+n+'"'),!0}function ve(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&ce(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!z(n)&&!X(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ce(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function we(e,t,i,r,o){var a,l,c,s,u,p,f,d,h,g=1,m=!1,y=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=l=c=4===i||3===i,r&&ge(e,!0,-1)&&(m=!0,e.lineIndent>t?g=1:e.lineIndent===t?g=0:e.lineIndent<t&&(g=-1)),1===g)for(;Ae(e)||ve(e);)ge(e,!0,-1)?(m=!0,c=a,e.lineIndent>t?g=1:e.lineIndent===t?g=0:e.lineIndent<t&&(g=-1)):c=!1;if(c&&(c=m||o),1!==g&&4!==i||(d=1===i||2===i?t:t+1,h=e.position-e.lineStart,1===g?c&&(be(e,h)||function(e,t,n){var i,r,o,a,l,c,s,u=e.tag,p=e.anchor,f={},d=Object.create(null),h=null,g=null,m=null,y=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=f),s=e.input.charCodeAt(e.position);0!==s;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,ce(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),o=e.line,63!==s&&58!==s||!z(i)){if(a=e.line,l=e.lineStart,c=e.position,!we(e,n,2,!1,!0))break;if(e.line===o){for(s=e.input.charCodeAt(e.position);Q(s);)s=e.input.charCodeAt(++e.position);if(58===s)z(s=e.input.charCodeAt(++e.position))||ce(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(de(e,f,d,h,g,null,a,l,c),h=g=m=null),b=!0,y=!1,r=!1,h=e.tag,g=e.result;else{if(!b)return e.tag=u,e.anchor=p,!0;ce(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=u,e.anchor=p,!0;ce(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===s?(y&&(de(e,f,d,h,g,null,a,l,c),h=g=m=null),b=!0,y=!0,r=!0):y?(y=!1,r=!0):ce(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,s=i;if((e.line===o||e.lineIndent>t)&&(y&&(a=e.line,l=e.lineStart,c=e.position),we(e,t,4,!0,r)&&(y?g=e.result:m=e.result),y||(de(e,f,d,h,g,m,a,l,c),h=g=m=null),ge(e,!0,-1),s=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==s)ce(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&de(e,f,d,h,g,null,a,l,c),b&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=f),b}(e,h,d))||function(e,t){var n,i,r,o,a,l,c,s,u,p,f,d,h=!0,g=e.tag,m=e.anchor,y=Object.create(null);if(91===(d=e.input.charCodeAt(e.position)))a=93,s=!1,o=[];else{if(123!==d)return!1;a=125,s=!0,o={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),d=e.input.charCodeAt(++e.position);0!==d;){if(ge(e,!0,t),(d=e.input.charCodeAt(e.position))===a)return e.position++,e.tag=g,e.anchor=m,e.kind=s?"mapping":"sequence",e.result=o,!0;h?44===d&&ce(e,"expected the node content, but found ','"):ce(e,"missed comma between flow collection entries"),f=null,l=c=!1,63===d&&z(e.input.charCodeAt(e.position+1))&&(l=c=!0,e.position++,ge(e,!0,t)),n=e.line,i=e.lineStart,r=e.position,we(e,t,1,!1,!0),p=e.tag,u=e.result,ge(e,!0,t),d=e.input.charCodeAt(e.position),!c&&e.line!==n||58!==d||(l=!0,d=e.input.charCodeAt(++e.position),ge(e,!0,t),we(e,t,1,!1,!0),f=e.result),s?de(e,o,y,p,u,f,n,i,r):l?o.push(de(e,null,y,p,u,f,n,i,r)):o.push(u),ge(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(h=!0,d=e.input.charCodeAt(++e.position)):h=!1}ce(e,"unexpected end of the stream within a flow collection")}(e,d)?y=!0:(l&&function(e,t){var i,r,o,a,l,c=1,s=!1,u=!1,p=t,f=0,d=!1;if(124===(a=e.input.charCodeAt(e.position)))r=!1;else{if(62!==a)return!1;r=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===c?c=43===a?3:2:ce(e,"repeat of a chomping mode identifier");else{if(!((o=48<=(l=a)&&l<=57?l-48:-1)>=0))break;0===o?ce(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?ce(e,"repeat of an indentation width identifier"):(p=t+o-1,u=!0)}if(Q(a)){do{a=e.input.charCodeAt(++e.position)}while(Q(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!J(a)&&0!==a)}for(;0!==a;){for(he(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!u||e.lineIndent<p)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>p&&(p=e.lineIndent),J(a))f++;else{if(e.lineIndent<p){3===c?e.result+=n.repeat("\n",s?1+f:f):1===c&&s&&(e.result+="\n");break}for(r?Q(a)?(d=!0,e.result+=n.repeat("\n",s?1+f:f)):d?(d=!1,e.result+=n.repeat("\n",f+1)):0===f?s&&(e.result+=" "):e.result+=n.repeat("\n",f):e.result+=n.repeat("\n",s?1+f:f),s=!0,u=!0,f=0,i=e.position;!J(a)&&0!==a;)a=e.input.charCodeAt(++e.position);pe(e,i,e.position,!1)}}return!0}(e,d)||function(e,t){var n,i,r;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(pe(e,i,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;i=e.position,e.position++,r=e.position}else J(n)?(pe(e,i,r,!0),ye(e,ge(e,!1,t)),i=r=e.position):e.position===e.lineStart&&me(e)?ce(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);ce(e,"unexpected end of the stream within a single quoted scalar")}(e,d)||function(e,t){var n,i,r,o,a,l,c;if(34!==(l=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(l=e.input.charCodeAt(e.position));){if(34===l)return pe(e,n,e.position,!0),e.position++,!0;if(92===l){if(pe(e,n,e.position,!0),J(l=e.input.charCodeAt(++e.position)))ge(e,!1,t);else if(l<256&&ie[l])e.result+=re[l],e.position++;else if((a=120===(c=l)?2:117===c?4:85===c?8:0)>0){for(r=a,o=0;r>0;r--)(a=ee(l=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:ce(e,"expected hexadecimal character");e.result+=ne(o),e.position++}else ce(e,"unknown escape sequence");n=i=e.position}else J(l)?(pe(e,n,i,!0),ye(e,ge(e,!1,t)),n=i=e.position):e.position===e.lineStart&&me(e)?ce(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}ce(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?y=!0:!function(e){var t,n,i;if(42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!z(i)&&!X(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&ce(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),P.call(e.anchorMap,n)||ce(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],ge(e,!0,-1),!0}(e)?function(e,t,n){var i,r,o,a,l,c,s,u,p=e.kind,f=e.result;if(z(u=e.input.charCodeAt(e.position))||X(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(z(i=e.input.charCodeAt(e.position+1))||n&&X(i)))return!1;for(e.kind="scalar",e.result="",r=o=e.position,a=!1;0!==u;){if(58===u){if(z(i=e.input.charCodeAt(e.position+1))||n&&X(i))break}else if(35===u){if(z(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&me(e)||n&&X(u))break;if(J(u)){if(l=e.line,c=e.lineStart,s=e.lineIndent,ge(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=l,e.lineStart=c,e.lineIndent=s;break}}a&&(pe(e,r,o,!1),ye(e,e.line-l),r=o=e.position,a=!1),Q(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return pe(e,r,o,!1),!!e.result||(e.kind=p,e.result=f,!1)}(e,d,1===i)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||ce(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===g&&(y=c&&be(e,h))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&ce(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),s=0,u=e.implicitTypes.length;s<u;s+=1)if((f=e.implicitTypes[s]).resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(P.call(e.typeMap[e.kind||"fallback"],e.tag))f=e.typeMap[e.kind||"fallback"][e.tag];else for(f=null,s=0,u=(p=e.typeMap.multi[e.kind||"fallback"]).length;s<u;s+=1)if(e.tag.slice(0,p[s].tag.length)===p[s].tag){f=p[s];break}f||ce(e,"unknown tag !<"+e.tag+">"),null!==e.result&&f.kind!==e.kind&&ce(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):ce(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function ke(e){var t,n,i,r,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(ge(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!z(r);)r=e.input.charCodeAt(++e.position);for(i=[],(n=e.input.slice(t,e.position)).length<1&&ce(e,"directive name must not be less than one character in length");0!==r;){for(;Q(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!J(r));break}if(J(r))break;for(t=e.position;0!==r&&!z(r);)r=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==r&&he(e),P.call(ue,n)?ue[n](e,n,i):se(e,'unknown document directive "'+n+'"')}ge(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,ge(e,!0,-1)):a&&ce(e,"directives end mark is expected"),we(e,e.lineIndent-1,4,!1,!0),ge(e,!0,-1),e.checkLineBreaks&&H.test(e.input.slice(o,e.position))&&se(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&me(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,ge(e,!0,-1)):e.position<e.length-1&&ce(e,"end of the stream or a document separator is expected")}function Ce(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new ae(e,t),i=e.indexOf("\0");for(-1!==i&&(n.position=i,ce(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)ke(n);return n.documents}var xe={loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var i=Ce(e,n);if("function"!=typeof t)return i;for(var r=0,o=i.length;r<o;r+=1)t(i[r])},load:function(e,t){var n=Ce(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new o("expected a single document in the stream, but found more")}}},Ie=Object.prototype.toString,Se=Object.prototype.hasOwnProperty,Oe=65279,je={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Te=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ne=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Fe(e){var t,i,r;if(t=e.toString(16).toUpperCase(),e<=255)i="x",r=2;else if(e<=65535)i="u",r=4;else{if(!(e<=4294967295))throw new o("code point within a string may not be greater than 0xFFFFFFFF");i="U",r=8}return"\\"+i+n.repeat("0",r-t.length)+t}function Ee(e){this.schema=e.schema||K,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=n.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,i,r,o,a,l,c;if(null===t)return{};for(n={},r=0,o=(i=Object.keys(t)).length;r<o;r+=1)a=i[r],l=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(c=e.compiledTypeMap.fallback[a])&&Se.call(c.styleAliases,l)&&(l=c.styleAliases[l]),n[a]=l;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Me(e,t){for(var i,r=n.repeat(" ",t),o=0,a=-1,l="",c=e.length;o<c;)-1===(a=e.indexOf("\n",o))?(i=e.slice(o),o=c):(i=e.slice(o,a+1),o=a+1),i.length&&"\n"!==i&&(l+=r),l+=i;return l}function Le(e,t){return"\n"+n.repeat(" ",e.indent*t)}function _e(e){return 32===e||9===e}function De(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==Oe||65536<=e&&e<=1114111}function Ue(e){return De(e)&&e!==Oe&&13!==e&&10!==e}function qe(e,t,n){var i=Ue(e),r=i&&!_e(e);return(n?i:i&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!r)||Ue(t)&&!_e(t)&&35===e||58===t&&r}function Ye(e,t){var n,i=e.charCodeAt(t);return i>=55296&&i<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}function Re(e){return/^\n* /.test(e)}function Be(e,t,n,i,r,o,a,l){var c,s,u=0,p=null,f=!1,d=!1,h=-1!==i,g=-1,m=De(s=Ye(e,0))&&s!==Oe&&!_e(s)&&45!==s&&63!==s&&58!==s&&44!==s&&91!==s&&93!==s&&123!==s&&125!==s&&35!==s&&38!==s&&42!==s&&33!==s&&124!==s&&61!==s&&62!==s&&39!==s&&34!==s&&37!==s&&64!==s&&96!==s&&function(e){return!_e(e)&&58!==e}(Ye(e,e.length-1));if(t||a)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!De(u=Ye(e,c)))return 5;m=m&&qe(u,p,l),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(10===(u=Ye(e,c)))f=!0,h&&(d=d||c-g-1>i&&" "!==e[g+1],g=c);else if(!De(u))return 5;m=m&&qe(u,p,l),p=u}d=d||h&&c-g-1>i&&" "!==e[g+1]}return f||d?n>9&&Re(e)?5:a?2===o?5:2:d?4:3:!m||a||r(e)?2===o?5:2:1}function Ke(e,t,n,i,r){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==Te.indexOf(t)||Ne.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,n),l=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),c=i||e.flowLevel>-1&&n>=e.flowLevel;switch(Be(t,c,e.indent,l,(function(t){return function(e,t){var n,i;for(n=0,i=e.implicitTypes.length;n<i;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!i,r)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+Pe(t,e.indent)+We(Me(t,a));case 4:return">"+Pe(t,e.indent)+We(Me(function(e,t){var n,i,r=/(\n+)([^\n]*)/g,o=(l=e.indexOf("\n"),l=-1!==l?l:e.length,r.lastIndex=l,He(e.slice(0,l),t)),a="\n"===e[0]||" "===e[0];var l;for(;i=r.exec(e);){var c=i[1],s=i[2];n=" "===s[0],o+=c+(a||n||""===s?"":"\n")+He(s,t),a=n}return o}(t,l),a));case 5:return'"'+function(e){for(var t,n="",i=0,r=0;r<e.length;i>=65536?r+=2:r++)i=Ye(e,r),!(t=je[i])&&De(i)?(n+=e[r],i>=65536&&(n+=e[r+1])):n+=t||Fe(i);return n}(t)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function Pe(e,t){var n=Re(e)?String(t):"",i="\n"===e[e.length-1];return n+(i&&("\n"===e[e.length-2]||"\n"===e)?"+":i?"":"-")+"\n"}function We(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function He(e,t){if(""===e||" "===e[0])return e;for(var n,i,r=/ [^ ]/g,o=0,a=0,l=0,c="";n=r.exec(e);)(l=n.index)-o>t&&(i=a>o?a:l,c+="\n"+e.slice(o,i),o=i+1),a=l;return c+="\n",e.length-o>t&&a>o?c+=e.slice(o,a)+"\n"+e.slice(a+1):c+=e.slice(o),c.slice(1)}function $e(e,t,n,i){var r,o,a,l="",c=e.tag;for(r=0,o=n.length;r<o;r+=1)a=n[r],e.replacer&&(a=e.replacer.call(n,String(r),a)),(Ve(e,t+1,a,!0,!0,!1,!0)||void 0===a&&Ve(e,t+1,null,!0,!0,!1,!0))&&(i&&""===l||(l+=Le(e,t)),e.dump&&10===e.dump.charCodeAt(0)?l+="-":l+="- ",l+=e.dump);e.tag=c,e.dump=l||"[]"}function Ge(e,t,n){var i,r,a,l,c,s;for(a=0,l=(r=n?e.explicitTypes:e.implicitTypes).length;a<l;a+=1)if(((c=r[a]).instanceOf||c.predicate)&&(!c.instanceOf||"object"==typeof t&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(n?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag="?",c.represent){if(s=e.styleMap[c.tag]||c.defaultStyle,"[object Function]"===Ie.call(c.represent))i=c.represent(t,s);else{if(!Se.call(c.represent,s))throw new o("!<"+c.tag+'> tag resolver accepts not "'+s+'" style');i=c.represent[s](t,s)}e.dump=i}return!0}return!1}function Ve(e,t,n,i,r,a,l){e.tag=null,e.dump=n,Ge(e,n,!1)||Ge(e,n,!0);var c,s=Ie.call(e.dump),u=i;i&&(i=e.flowLevel<0||e.flowLevel>t);var p,f,d="[object Object]"===s||"[object Array]"===s;if(d&&(f=-1!==(p=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&t>0)&&(r=!1),f&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&f&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===s)i&&0!==Object.keys(e.dump).length?(!function(e,t,n,i){var r,a,l,c,s,u,p="",f=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new o("sortKeys must be a boolean or a function");for(r=0,a=d.length;r<a;r+=1)u="",i&&""===p||(u+=Le(e,t)),c=n[l=d[r]],e.replacer&&(c=e.replacer.call(n,l,c)),Ve(e,t+1,l,!0,!0,!0)&&((s=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,s&&(u+=Le(e,t)),Ve(e,t+1,c,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",p+=u+=e.dump));e.tag=f,e.dump=p||"{}"}(e,t,e.dump,r),f&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var i,r,o,a,l,c="",s=e.tag,u=Object.keys(n);for(i=0,r=u.length;i<r;i+=1)l="",""!==c&&(l+=", "),e.condenseFlow&&(l+='"'),a=n[o=u[i]],e.replacer&&(a=e.replacer.call(n,o,a)),Ve(e,t,o,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ve(e,t,a,!1,!1)&&(c+=l+=e.dump));e.tag=s,e.dump="{"+c+"}"}(e,t,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===s)i&&0!==e.dump.length?(e.noArrayIndent&&!l&&t>0?$e(e,t-1,e.dump,r):$e(e,t,e.dump,r),f&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var i,r,o,a="",l=e.tag;for(i=0,r=n.length;i<r;i+=1)o=n[i],e.replacer&&(o=e.replacer.call(n,String(i),o)),(Ve(e,t,o,!1,!1)||void 0===o&&Ve(e,t,null,!1,!1))&&(""!==a&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=l,e.dump="["+a+"]"}(e,t,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else{if("[object String]"!==s){if("[object Undefined]"===s)return!1;if(e.skipInvalid)return!1;throw new o("unacceptable kind of an object to dump "+s)}"?"!==e.tag&&Ke(e,e.dump,t,a,u)}null!==e.tag&&"?"!==e.tag&&(c=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),c="!"===e.tag[0]?"!"+c:"tag:yaml.org,2002:"===c.slice(0,18)?"!!"+c.slice(18):"!<"+c+">",e.dump=c+" "+e.dump)}return!0}function Ze(e,t){var n,i,r=[],o=[];for(Je(e,r,o),n=0,i=o.length;n<i;n+=1)t.duplicates.push(r[o[n]]);t.usedDuplicates=new Array(i)}function Je(e,t,n){var i,r,o;if(null!==e&&"object"==typeof e)if(-1!==(r=t.indexOf(e)))-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,o=e.length;r<o;r+=1)Je(e[r],t,n);else for(r=0,o=(i=Object.keys(e)).length;r<o;r+=1)Je(e[i[r]],t,n)}function Qe(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var ze=p,Xe=h,et=b,tt=O,nt=j,it=K,rt=xe.load,ot=xe.loadAll,at={dump:function(e,t){var n=new Ee(t=t||{});n.noRefs||Ze(e,n);var i=e;return n.replacer&&(i=n.replacer.call({"":i},"",i)),Ve(n,0,i,!0,!0)?n.dump+"\n":""}}.dump,lt=o,ct={binary:L,float:S,map:y,null:A,pairs:Y,set:B,timestamp:F,bool:v,int:C,merge:E,omap:U,seq:m,str:g},st=Qe("safeLoad","load"),ut=Qe("safeLoadAll","loadAll"),pt=Qe("safeDump","dump"),ft={Type:ze,Schema:Xe,FAILSAFE_SCHEMA:et,JSON_SCHEMA:tt,CORE_SCHEMA:nt,DEFAULT_SCHEMA:it,load:rt,loadAll:ot,dump:at,YAMLException:lt,types:ct,safeLoad:st,safeLoadAll:ut,safeDump:pt};e.CORE_SCHEMA=nt,e.DEFAULT_SCHEMA=it,e.FAILSAFE_SCHEMA=et,e.JSON_SCHEMA=tt,e.Schema=Xe,e.Type=ze,e.YAMLException=lt,e.default=ft,e.dump=at,e.load=rt,e.loadAll=ot,e.safeDump=pt,e.safeLoad=st,e.safeLoadAll=ut,e.types=ct,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jsyaml={})}(this,function(e){"use strict";function t(e){return null==e}var n={isNothing:t,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:t(e)?[]:[e]},repeat:function(e,t){var n,i="";for(n=0;n<t;n+=1)i+=e;return i},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var n,i,r,o;if(t)for(n=0,i=(o=Object.keys(t)).length;n<i;n+=1)e[r=o[n]]=t[r];return e}};function i(e,t){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),i+" "+n):i}function r(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=i(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(e){return this.name+": "+i(this,e)};var o=r;function a(e,t,n,i,r){var o="",a="",l=Math.floor(r/2)-1;return i-t>l&&(t=i-l+(o=" ... ").length),n-i>l&&(n=i+l-(a=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:i-t+o.length}}function l(e,t){return n.repeat(" ",t-e.length)+e}var c=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var i,r=/\r?\n|\r|\0/g,o=[0],c=[],s=-1;i=r.exec(e.buffer);)c.push(i.index),o.push(i.index+i[0].length),e.position<=i.index&&s<0&&(s=o.length-2);s<0&&(s=o.length-1);var u,p,f="",d=Math.min(e.line+t.linesAfter,c.length).toString().length,h=t.maxLength-(t.indent+d+3);for(u=1;u<=t.linesBefore&&!(s-u<0);u++)p=a(e.buffer,o[s-u],c[s-u],e.position-(o[s]-o[s-u]),h),f=n.repeat(" ",t.indent)+l((e.line-u+1).toString(),d)+" | "+p.str+"\n"+f;for(p=a(e.buffer,o[s],c[s],e.position,h),f+=n.repeat(" ",t.indent)+l((e.line+1).toString(),d)+" | "+p.str+"\n",f+=n.repeat("-",t.indent+d+3+p.pos)+"^\n",u=1;u<=t.linesAfter&&!(s+u>=c.length);u++)p=a(e.buffer,o[s+u],c[s+u],e.position-(o[s]-o[s+u]),h),f+=n.repeat(" ",t.indent)+l((e.line+u+1).toString(),d)+" | "+p.str+"\n";return f.replace(/\n$/,"")},s=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],u=["scalar","sequence","mapping"];var p=function(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===s.indexOf(t))throw new o('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}(t.styleAliases||null),-1===u.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function f(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,i){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=i)}),n[t]=e}),n}function d(e){return this.extend(e)}d.prototype.extend=function(e){var t=[],n=[];if(e instanceof p)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new o("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach(function(e){if(!(e instanceof p))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new o("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new o("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof p))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(d.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=f(i,"implicit"),i.compiledExplicit=f(i,"explicit"),i.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(i);return n}(i.compiledImplicit,i.compiledExplicit),i};var h=d,g=new p("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),m=new p("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),y=new p("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),b=new h({explicit:[g,m,y]});var A=new p("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var v=new p("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function w(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function k(e){return 48<=e&&e<=55}function C(e){return 48<=e&&e<=57}var x=new p("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n=e.length,i=0,r=!1;if(!n)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===n)return!0;if("b"===(t=e[++i])){for(i++;i<n;i++)if("_"!==(t=e[i])){if("0"!==t&&"1"!==t)return!1;r=!0}return r&&"_"!==t}if("x"===t){for(i++;i<n;i++)if("_"!==(t=e[i])){if(!w(e.charCodeAt(i)))return!1;r=!0}return r&&"_"!==t}if("o"===t){for(i++;i<n;i++)if("_"!==(t=e[i])){if(!k(e.charCodeAt(i)))return!1;r=!0}return r&&"_"!==t}}if("_"===t)return!1;for(;i<n;i++)if("_"!==(t=e[i])){if(!C(e.charCodeAt(i)))return!1;r=!0}return!(!r||"_"===t)},construct:function(e){var t,n=e,i=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(i=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return i*parseInt(n.slice(2),2);if("x"===n[1])return i*parseInt(n.slice(2),16);if("o"===n[1])return i*parseInt(n.slice(2),8)}return i*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!n.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),I=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var S=/^[-+]?[0-9]+e/;var O=new p("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!I.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||n.isNegativeZero(e))},represent:function(e,t){var i;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return i=e.toString(10),S.test(i)?i.replace("e",".e"):i},defaultStyle:"lowercase"}),j=b.extend({implicit:[A,v,x,O]}),T=j,N=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),F=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var E=new p("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==N.exec(e)||null!==F.exec(e))},construct:function(e){var t,n,i,r,o,a,l,c,s=0,u=null;if(null===(t=N.exec(e))&&(t=F.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(o=+t[4],a=+t[5],l=+t[6],t[7]){for(s=t[7].slice(0,3);s.length<3;)s+="0";s=+s}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(n,i,r,o,a,l,s)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var M=new p("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var _=new p("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=0,r=e.length,o=L;for(n=0;n<r;n++)if(!((t=o.indexOf(e.charAt(n)))>64)){if(t<0)return!1;i+=6}return i%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,o=L,a=0,l=[];for(t=0;t<r;t++)t%4==0&&t&&(l.push(a>>16&255),l.push(a>>8&255),l.push(255&a)),a=a<<6|o.indexOf(i.charAt(t));return 0===(n=r%4*6)?(l.push(a>>16&255),l.push(a>>8&255),l.push(255&a)):18===n?(l.push(a>>10&255),l.push(a>>2&255)):12===n&&l.push(a>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,i="",r=0,o=e.length,a=L;for(t=0;t<o;t++)t%3==0&&t&&(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]),r=(r<<8)+e[t];return 0===(n=o%3)?(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]):2===n?(i+=a[r>>10&63],i+=a[r>>4&63],i+=a[r<<2&63],i+=a[64]):1===n&&(i+=a[r>>2&63],i+=a[r<<4&63],i+=a[64],i+=a[64]),i}}),D=Object.prototype.hasOwnProperty,U=Object.prototype.toString;var q=new p("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,i,r,o,a=[],l=e;for(t=0,n=l.length;t<n;t+=1){if(i=l[t],o=!1,"[object Object]"!==U.call(i))return!1;for(r in i)if(D.call(i,r)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==a.indexOf(r))return!1;a.push(r)}return!0},construct:function(e){return null!==e?e:[]}}),Y=Object.prototype.toString;var R=new p("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,i,r,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(i=a[t],"[object Object]"!==Y.call(i))return!1;if(1!==(r=Object.keys(i)).length)return!1;o[t]=[r[0],i[r[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,i,r,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1)i=a[t],r=Object.keys(i),o[t]=[r[0],i[r[0]]];return o}}),B=Object.prototype.hasOwnProperty;var K=new p("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(B.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),P=T.extend({implicit:[E,M],explicit:[_,q,R,K]}),W=Object.prototype.hasOwnProperty,H=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$=/[\x85\u2028\u2029]/,G=/[,\[\]\{\}]/,V=/^(?:!|!!|![a-z\-]+!)$/i,Z=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function J(e){return Object.prototype.toString.call(e)}function Q(e){return 10===e||13===e}function z(e){return 9===e||32===e}function X(e){return 9===e||32===e||10===e||13===e}function ee(e){return 44===e||91===e||93===e||123===e||125===e}function te(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function ne(e){return 120===e?2:117===e?4:85===e?8:0}function ie(e){return 48<=e&&e<=57?e-48:-1}function re(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function oe(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}function ae(e,t,n){"__proto__"===t?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var le=new Array(256),ce=new Array(256),se=0;se<256;se++)le[se]=re(se)?1:0,ce[se]=re(se);function ue(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||P,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function pe(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=c(n),new o(t,n)}function fe(e,t){throw pe(e,t)}function de(e,t){e.onWarning&&e.onWarning.call(null,pe(e,t))}var he={YAML:function(e,t,n){var i,r,o;null!==e.version&&fe(e,"duplication of %YAML directive"),1!==n.length&&fe(e,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&fe(e,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&fe(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&de(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var i,r;2!==n.length&&fe(e,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],V.test(i)||fe(e,"ill-formed tag handle (first argument) of the TAG directive"),W.call(e.tagMap,i)&&fe(e,'there is a previously declared suffix for "'+i+'" tag handle'),Z.test(r)||fe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(t){fe(e,"tag prefix is malformed: "+r)}e.tagMap[i]=r}};function ge(e,t,n,i){var r,o,a,l;if(t<n){if(l=e.input.slice(t,n),i)for(r=0,o=l.length;r<o;r+=1)9===(a=l.charCodeAt(r))||32<=a&&a<=1114111||fe(e,"expected valid JSON character");else H.test(l)&&fe(e,"the stream contains non-printable characters");e.result+=l}}function me(e,t,i,r){var o,a,l,c;for(n.isObject(i)||fe(e,"cannot merge mappings; the provided source object is unacceptable"),l=0,c=(o=Object.keys(i)).length;l<c;l+=1)a=o[l],W.call(t,a)||(ae(t,a,i[a]),r[a]=!0)}function ye(e,t,n,i,r,o,a,l,c){var s,u;if(Array.isArray(r))for(s=0,u=(r=Array.prototype.slice.call(r)).length;s<u;s+=1)Array.isArray(r[s])&&fe(e,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===J(r[s])&&(r[s]="[object Object]");if("object"==typeof r&&"[object Object]"===J(r)&&(r="[object Object]"),r=String(r),null===t&&(t={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(o))for(s=0,u=o.length;s<u;s+=1)me(e,t,o[s],n);else me(e,t,o,n);else e.json||W.call(n,r)||!W.call(t,r)||(e.line=a||e.line,e.lineStart=l||e.lineStart,e.position=c||e.position,fe(e,"duplicated mapping key")),ae(t,r,o),delete n[r];return t}function be(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):fe(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ae(e,t,n){for(var i=0,r=e.input.charCodeAt(e.position);0!==r;){for(;z(r);)9===r&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&35===r)do{r=e.input.charCodeAt(++e.position)}while(10!==r&&13!==r&&0!==r);if(!Q(r))break;for(be(e),r=e.input.charCodeAt(e.position),i++,e.lineIndent=0;32===r;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return-1!==n&&0!==i&&e.lineIndent<n&&de(e,"deficient indentation"),i}function ve(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!X(t)))}function we(e,t){1===t?e.result+=" ":t>1&&(e.result+=n.repeat("\n",t-1))}function ke(e,t){var n,i,r=e.tag,o=e.anchor,a=[],l=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),i=e.input.charCodeAt(e.position);0!==i&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,fe(e,"tab characters must not be used in indentation")),45===i)&&X(e.input.charCodeAt(e.position+1));)if(l=!0,e.position++,Ae(e,!0,-1)&&e.lineIndent<=t)a.push(null),i=e.input.charCodeAt(e.position);else if(n=e.line,Ie(e,t,3,!1,!0),a.push(e.result),Ae(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)fe(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!l&&(e.tag=r,e.anchor=o,e.kind="sequence",e.result=a,!0)}function Ce(e){var t,n,i,r,o=!1,a=!1;if(33!==(r=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&fe(e,"duplication of a tag property"),60===(r=e.input.charCodeAt(++e.position))?(o=!0,r=e.input.charCodeAt(++e.position)):33===r?(a=!0,n="!!",r=e.input.charCodeAt(++e.position)):n="!",t=e.position,o){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&62!==r);e.position<e.length?(i=e.input.slice(t,e.position),r=e.input.charCodeAt(++e.position)):fe(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==r&&!X(r);)33===r&&(a?fe(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),V.test(n)||fe(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),r=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),G.test(i)&&fe(e,"tag suffix cannot contain flow indicator characters")}i&&!Z.test(i)&&fe(e,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(t){fe(e,"tag name is malformed: "+i)}return o?e.tag=i:W.call(e.tagMap,n)?e.tag=e.tagMap[n]+i:"!"===n?e.tag="!"+i:"!!"===n?e.tag="tag:yaml.org,2002:"+i:fe(e,'undeclared tag handle "'+n+'"'),!0}function xe(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&fe(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!X(n)&&!ee(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&fe(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Ie(e,t,i,r,o){var a,l,c,s,u,p,f,d,h,g=1,m=!1,y=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=l=c=4===i||3===i,r&&Ae(e,!0,-1)&&(m=!0,e.lineIndent>t?g=1:e.lineIndent===t?g=0:e.lineIndent<t&&(g=-1)),1===g)for(;Ce(e)||xe(e);)Ae(e,!0,-1)?(m=!0,c=a,e.lineIndent>t?g=1:e.lineIndent===t?g=0:e.lineIndent<t&&(g=-1)):c=!1;if(c&&(c=m||o),1!==g&&4!==i||(d=1===i||2===i?t:t+1,h=e.position-e.lineStart,1===g?c&&(ke(e,h)||function(e,t,n){var i,r,o,a,l,c,s,u=e.tag,p=e.anchor,f={},d=Object.create(null),h=null,g=null,m=null,y=!1,b=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=f),s=e.input.charCodeAt(e.position);0!==s;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,fe(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),o=e.line,63!==s&&58!==s||!X(i)){if(a=e.line,l=e.lineStart,c=e.position,!Ie(e,n,2,!1,!0))break;if(e.line===o){for(s=e.input.charCodeAt(e.position);z(s);)s=e.input.charCodeAt(++e.position);if(58===s)X(s=e.input.charCodeAt(++e.position))||fe(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(ye(e,f,d,h,g,null,a,l,c),h=g=m=null),b=!0,y=!1,r=!1,h=e.tag,g=e.result;else{if(!b)return e.tag=u,e.anchor=p,!0;fe(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return e.tag=u,e.anchor=p,!0;fe(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===s?(y&&(ye(e,f,d,h,g,null,a,l,c),h=g=m=null),b=!0,y=!0,r=!0):y?(y=!1,r=!0):fe(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,s=i;if((e.line===o||e.lineIndent>t)&&(y&&(a=e.line,l=e.lineStart,c=e.position),Ie(e,t,4,!0,r)&&(y?g=e.result:m=e.result),y||(ye(e,f,d,h,g,m,a,l,c),h=g=m=null),Ae(e,!0,-1),s=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==s)fe(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&ye(e,f,d,h,g,null,a,l,c),b&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=f),b}(e,h,d))||function(e,t){var n,i,r,o,a,l,c,s,u,p,f,d,h=!0,g=e.tag,m=e.anchor,y=Object.create(null);if(91===(d=e.input.charCodeAt(e.position)))a=93,s=!1,o=[];else{if(123!==d)return!1;a=125,s=!0,o={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),d=e.input.charCodeAt(++e.position);0!==d;){if(Ae(e,!0,t),(d=e.input.charCodeAt(e.position))===a)return e.position++,e.tag=g,e.anchor=m,e.kind=s?"mapping":"sequence",e.result=o,!0;h?44===d&&fe(e,"expected the node content, but found ','"):fe(e,"missed comma between flow collection entries"),f=null,l=c=!1,63===d&&X(e.input.charCodeAt(e.position+1))&&(l=c=!0,e.position++,Ae(e,!0,t)),n=e.line,i=e.lineStart,r=e.position,Ie(e,t,1,!1,!0),p=e.tag,u=e.result,Ae(e,!0,t),d=e.input.charCodeAt(e.position),!c&&e.line!==n||58!==d||(l=!0,d=e.input.charCodeAt(++e.position),Ae(e,!0,t),Ie(e,t,1,!1,!0),f=e.result),s?ye(e,o,y,p,u,f,n,i,r):l?o.push(ye(e,null,y,p,u,f,n,i,r)):o.push(u),Ae(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(h=!0,d=e.input.charCodeAt(++e.position)):h=!1}fe(e,"unexpected end of the stream within a flow collection")}(e,d)?y=!0:(l&&function(e,t){var i,r,o,a,l=1,c=!1,s=!1,u=t,p=0,f=!1;if(124===(a=e.input.charCodeAt(e.position)))r=!1;else{if(62!==a)return!1;r=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)1===l?l=43===a?3:2:fe(e,"repeat of a chomping mode identifier");else{if(!((o=ie(a))>=0))break;0===o?fe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?fe(e,"repeat of an indentation width identifier"):(u=t+o-1,s=!0)}if(z(a)){do{a=e.input.charCodeAt(++e.position)}while(z(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!Q(a)&&0!==a)}for(;0!==a;){for(be(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!s||e.lineIndent<u)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>u&&(u=e.lineIndent),Q(a))p++;else{if(e.lineIndent<u){3===l?e.result+=n.repeat("\n",c?1+p:p):1===l&&c&&(e.result+="\n");break}for(r?z(a)?(f=!0,e.result+=n.repeat("\n",c?1+p:p)):f?(f=!1,e.result+=n.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=n.repeat("\n",p):e.result+=n.repeat("\n",c?1+p:p),c=!0,s=!0,p=0,i=e.position;!Q(a)&&0!==a;)a=e.input.charCodeAt(++e.position);ge(e,i,e.position,!1)}}return!0}(e,d)||function(e,t){var n,i,r;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(ge(e,i,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;i=e.position,e.position++,r=e.position}else Q(n)?(ge(e,i,r,!0),we(e,Ae(e,!1,t)),i=r=e.position):e.position===e.lineStart&&ve(e)?fe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);fe(e,"unexpected end of the stream within a single quoted scalar")}(e,d)||function(e,t){var n,i,r,o,a,l;if(34!==(l=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(l=e.input.charCodeAt(e.position));){if(34===l)return ge(e,n,e.position,!0),e.position++,!0;if(92===l){if(ge(e,n,e.position,!0),Q(l=e.input.charCodeAt(++e.position)))Ae(e,!1,t);else if(l<256&&le[l])e.result+=ce[l],e.position++;else if((a=ne(l))>0){for(r=a,o=0;r>0;r--)(a=te(l=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:fe(e,"expected hexadecimal character");e.result+=oe(o),e.position++}else fe(e,"unknown escape sequence");n=i=e.position}else Q(l)?(ge(e,n,i,!0),we(e,Ae(e,!1,t)),n=i=e.position):e.position===e.lineStart&&ve(e)?fe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}fe(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?y=!0:!function(e){var t,n,i;if(42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!X(i)&&!ee(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&fe(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),W.call(e.anchorMap,n)||fe(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Ae(e,!0,-1),!0}(e)?function(e,t,n){var i,r,o,a,l,c,s,u,p=e.kind,f=e.result;if(X(u=e.input.charCodeAt(e.position))||ee(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(X(i=e.input.charCodeAt(e.position+1))||n&&ee(i)))return!1;for(e.kind="scalar",e.result="",r=o=e.position,a=!1;0!==u;){if(58===u){if(X(i=e.input.charCodeAt(e.position+1))||n&&ee(i))break}else if(35===u){if(X(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&ve(e)||n&&ee(u))break;if(Q(u)){if(l=e.line,c=e.lineStart,s=e.lineIndent,Ae(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=l,e.lineStart=c,e.lineIndent=s;break}}a&&(ge(e,r,o,!1),we(e,e.line-l),r=o=e.position,a=!1),z(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return ge(e,r,o,!1),!!e.result||(e.kind=p,e.result=f,!1)}(e,d,1===i)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||fe(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===g&&(y=c&&ke(e,h))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&fe(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),s=0,u=e.implicitTypes.length;s<u;s+=1)if((f=e.implicitTypes[s]).resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(W.call(e.typeMap[e.kind||"fallback"],e.tag))f=e.typeMap[e.kind||"fallback"][e.tag];else for(f=null,s=0,u=(p=e.typeMap.multi[e.kind||"fallback"]).length;s<u;s+=1)if(e.tag.slice(0,p[s].tag.length)===p[s].tag){f=p[s];break}f||fe(e,"unknown tag !<"+e.tag+">"),null!==e.result&&f.kind!==e.kind&&fe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):fe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function Se(e){var t,n,i,r,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(r=e.input.charCodeAt(e.position))&&(Ae(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==r));){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!X(r);)r=e.input.charCodeAt(++e.position);for(i=[],(n=e.input.slice(t,e.position)).length<1&&fe(e,"directive name must not be less than one character in length");0!==r;){for(;z(r);)r=e.input.charCodeAt(++e.position);if(35===r){do{r=e.input.charCodeAt(++e.position)}while(0!==r&&!Q(r));break}if(Q(r))break;for(t=e.position;0!==r&&!X(r);)r=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==r&&be(e),W.call(he,n)?he[n](e,n,i):de(e,'unknown document directive "'+n+'"')}Ae(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,Ae(e,!0,-1)):a&&fe(e,"directives end mark is expected"),Ie(e,e.lineIndent-1,4,!1,!0),Ae(e,!0,-1),e.checkLineBreaks&&$.test(e.input.slice(o,e.position))&&de(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ve(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,Ae(e,!0,-1)):e.position<e.length-1&&fe(e,"end of the stream or a document separator is expected")}function Oe(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new ue(e,t),i=e.indexOf("\0");for(-1!==i&&(n.position=i,fe(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Se(n);return n.documents}var je={loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var i=Oe(e,n);if("function"!=typeof t)return i;for(var r=0,o=i.length;r<o;r+=1)t(i[r])},load:function(e,t){var n=Oe(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new o("expected a single document in the stream, but found more")}}},Te=Object.prototype.toString,Ne=Object.prototype.hasOwnProperty,Fe=65279,Ee={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Me=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Le=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function _e(e){var t,i,r;if(t=e.toString(16).toUpperCase(),e<=255)i="x",r=2;else if(e<=65535)i="u",r=4;else{if(!(e<=4294967295))throw new o("code point within a string may not be greater than 0xFFFFFFFF");i="U",r=8}return"\\"+i+n.repeat("0",r-t.length)+t}function De(e){this.schema=e.schema||P,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=n.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,i,r,o,a,l,c;if(null===t)return{};for(n={},r=0,o=(i=Object.keys(t)).length;r<o;r+=1)a=i[r],l=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(c=e.compiledTypeMap.fallback[a])&&Ne.call(c.styleAliases,l)&&(l=c.styleAliases[l]),n[a]=l;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ue(e,t){for(var i,r=n.repeat(" ",t),o=0,a=-1,l="",c=e.length;o<c;)-1===(a=e.indexOf("\n",o))?(i=e.slice(o),o=c):(i=e.slice(o,a+1),o=a+1),i.length&&"\n"!==i&&(l+=r),l+=i;return l}function qe(e,t){return"\n"+n.repeat(" ",e.indent*t)}function Ye(e){return 32===e||9===e}function Re(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==Fe||65536<=e&&e<=1114111}function Be(e){return Re(e)&&e!==Fe&&13!==e&&10!==e}function Ke(e,t,n){var i=Be(e),r=i&&!Ye(e);return(n?i:i&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!r)||Be(t)&&!Ye(t)&&35===e||58===t&&r}function Pe(e,t){var n,i=e.charCodeAt(t);return i>=55296&&i<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}function We(e){return/^\n* /.test(e)}function He(e,t,n,i,r,o,a,l){var c,s,u=0,p=null,f=!1,d=!1,h=-1!==i,g=-1,m=Re(s=Pe(e,0))&&s!==Fe&&!Ye(s)&&45!==s&&63!==s&&58!==s&&44!==s&&91!==s&&93!==s&&123!==s&&125!==s&&35!==s&&38!==s&&42!==s&&33!==s&&124!==s&&61!==s&&62!==s&&39!==s&&34!==s&&37!==s&&64!==s&&96!==s&&function(e){return!Ye(e)&&58!==e}(Pe(e,e.length-1));if(t||a)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!Re(u=Pe(e,c)))return 5;m=m&&Ke(u,p,l),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(10===(u=Pe(e,c)))f=!0,h&&(d=d||c-g-1>i&&" "!==e[g+1],g=c);else if(!Re(u))return 5;m=m&&Ke(u,p,l),p=u}d=d||h&&c-g-1>i&&" "!==e[g+1]}return f||d?n>9&&We(e)?5:a?2===o?5:2:d?4:3:!m||a||r(e)?2===o?5:2:1}function $e(e,t,n,i,r){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==Me.indexOf(t)||Le.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,n),l=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),c=i||e.flowLevel>-1&&n>=e.flowLevel;switch(He(t,c,e.indent,l,function(t){return function(e,t){var n,i;for(n=0,i=e.implicitTypes.length;n<i;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)},e.quotingType,e.forceQuotes&&!i,r)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+Ge(t,e.indent)+Ve(Ue(t,a));case 4:return">"+Ge(t,e.indent)+Ve(Ue(function(e,t){var n,i,r=/(\n+)([^\n]*)/g,o=(l=e.indexOf("\n"),l=-1!==l?l:e.length,r.lastIndex=l,Ze(e.slice(0,l),t)),a="\n"===e[0]||" "===e[0];var l;for(;i=r.exec(e);){var c=i[1],s=i[2];n=" "===s[0],o+=c+(a||n||""===s?"":"\n")+Ze(s,t),a=n}return o}(t,l),a));case 5:return'"'+function(e){for(var t,n="",i=0,r=0;r<e.length;i>=65536?r+=2:r++)i=Pe(e,r),!(t=Ee[i])&&Re(i)?(n+=e[r],i>=65536&&(n+=e[r+1])):n+=t||_e(i);return n}(t)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function Ge(e,t){var n=We(e)?String(t):"",i="\n"===e[e.length-1];return n+(i&&("\n"===e[e.length-2]||"\n"===e)?"+":i?"":"-")+"\n"}function Ve(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Ze(e,t){if(""===e||" "===e[0])return e;for(var n,i,r=/ [^ ]/g,o=0,a=0,l=0,c="";n=r.exec(e);)(l=n.index)-o>t&&(i=a>o?a:l,c+="\n"+e.slice(o,i),o=i+1),a=l;return c+="\n",e.length-o>t&&a>o?c+=e.slice(o,a)+"\n"+e.slice(a+1):c+=e.slice(o),c.slice(1)}function Je(e,t,n,i){var r,o,a,l="",c=e.tag;for(r=0,o=n.length;r<o;r+=1)a=n[r],e.replacer&&(a=e.replacer.call(n,String(r),a)),(ze(e,t+1,a,!0,!0,!1,!0)||void 0===a&&ze(e,t+1,null,!0,!0,!1,!0))&&(i&&""===l||(l+=qe(e,t)),e.dump&&10===e.dump.charCodeAt(0)?l+="-":l+="- ",l+=e.dump);e.tag=c,e.dump=l||"[]"}function Qe(e,t,n){var i,r,a,l,c,s;for(a=0,l=(r=n?e.explicitTypes:e.implicitTypes).length;a<l;a+=1)if(((c=r[a]).instanceOf||c.predicate)&&(!c.instanceOf||"object"==typeof t&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(n?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag="?",c.represent){if(s=e.styleMap[c.tag]||c.defaultStyle,"[object Function]"===Te.call(c.represent))i=c.represent(t,s);else{if(!Ne.call(c.represent,s))throw new o("!<"+c.tag+'> tag resolver accepts not "'+s+'" style');i=c.represent[s](t,s)}e.dump=i}return!0}return!1}function ze(e,t,n,i,r,a,l){e.tag=null,e.dump=n,Qe(e,n,!1)||Qe(e,n,!0);var c,s=Te.call(e.dump),u=i;i&&(i=e.flowLevel<0||e.flowLevel>t);var p,f,d="[object Object]"===s||"[object Array]"===s;if(d&&(f=-1!==(p=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&t>0)&&(r=!1),f&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&f&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===s)i&&0!==Object.keys(e.dump).length?(!function(e,t,n,i){var r,a,l,c,s,u,p="",f=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new o("sortKeys must be a boolean or a function");for(r=0,a=d.length;r<a;r+=1)u="",i&&""===p||(u+=qe(e,t)),c=n[l=d[r]],e.replacer&&(c=e.replacer.call(n,l,c)),ze(e,t+1,l,!0,!0,!0)&&((s=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,s&&(u+=qe(e,t)),ze(e,t+1,c,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",p+=u+=e.dump));e.tag=f,e.dump=p||"{}"}(e,t,e.dump,r),f&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var i,r,o,a,l,c="",s=e.tag,u=Object.keys(n);for(i=0,r=u.length;i<r;i+=1)l="",""!==c&&(l+=", "),e.condenseFlow&&(l+='"'),a=n[o=u[i]],e.replacer&&(a=e.replacer.call(n,o,a)),ze(e,t,o,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ze(e,t,a,!1,!1)&&(c+=l+=e.dump));e.tag=s,e.dump="{"+c+"}"}(e,t,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===s)i&&0!==e.dump.length?(e.noArrayIndent&&!l&&t>0?Je(e,t-1,e.dump,r):Je(e,t,e.dump,r),f&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var i,r,o,a="",l=e.tag;for(i=0,r=n.length;i<r;i+=1)o=n[i],e.replacer&&(o=e.replacer.call(n,String(i),o)),(ze(e,t,o,!1,!1)||void 0===o&&ze(e,t,null,!1,!1))&&(""!==a&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=l,e.dump="["+a+"]"}(e,t,e.dump),f&&(e.dump="&ref_"+p+" "+e.dump));else{if("[object String]"!==s){if("[object Undefined]"===s)return!1;if(e.skipInvalid)return!1;throw new o("unacceptable kind of an object to dump "+s)}"?"!==e.tag&&$e(e,e.dump,t,a,u)}null!==e.tag&&"?"!==e.tag&&(c=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),c="!"===e.tag[0]?"!"+c:"tag:yaml.org,2002:"===c.slice(0,18)?"!!"+c.slice(18):"!<"+c+">",e.dump=c+" "+e.dump)}return!0}function Xe(e,t){var n,i,r=[],o=[];for(et(e,r,o),n=0,i=o.length;n<i;n+=1)t.duplicates.push(r[o[n]]);t.usedDuplicates=new Array(i)}function et(e,t,n){var i,r,o;if(null!==e&&"object"==typeof e)if(-1!==(r=t.indexOf(e)))-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,o=e.length;r<o;r+=1)et(e[r],t,n);else for(r=0,o=(i=Object.keys(e)).length;r<o;r+=1)et(e[i[r]],t,n)}function tt(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var nt=p,it=h,rt=b,ot=j,at=T,lt=P,ct=je.load,st=je.loadAll,ut={dump:function(e,t){var n=new De(t=t||{});n.noRefs||Xe(e,n);var i=e;return n.replacer&&(i=n.replacer.call({"":i},"",i)),ze(n,0,i,!0,!0)?n.dump+"\n":""}}.dump,pt=o,ft={binary:_,float:O,map:y,null:A,pairs:R,set:K,timestamp:E,bool:v,int:x,merge:M,omap:q,seq:m,str:g},dt=tt("safeLoad","load"),ht=tt("safeLoadAll","loadAll"),gt=tt("safeDump","dump"),mt={Type:nt,Schema:it,FAILSAFE_SCHEMA:rt,JSON_SCHEMA:ot,CORE_SCHEMA:at,DEFAULT_SCHEMA:lt,load:ct,loadAll:st,dump:ut,YAMLException:pt,types:ft,safeLoad:dt,safeLoadAll:ht,safeDump:gt};e.CORE_SCHEMA=at,e.DEFAULT_SCHEMA=lt,e.FAILSAFE_SCHEMA=rt,e.JSON_SCHEMA=ot,e.Schema=it,e.Type=nt,e.YAMLException=pt,e.default=mt,e.dump=ut,e.load=ct,e.loadAll=st,e.safeDump=gt,e.safeLoad=dt,e.safeLoadAll=ht,e.types=ft,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
/*! js-yaml 4.1.
|
|
2
|
+
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
|
3
3
|
function isNothing(subject) {
|
|
4
4
|
return (typeof subject === 'undefined') || (subject === null);
|
|
5
5
|
}
|
|
@@ -1210,6 +1210,22 @@ function charFromCodepoint(c) {
|
|
|
1210
1210
|
);
|
|
1211
1211
|
}
|
|
1212
1212
|
|
|
1213
|
+
// set a property of a literal object, while protecting against prototype pollution,
|
|
1214
|
+
// see https://github.com/nodeca/js-yaml/issues/164 for more details
|
|
1215
|
+
function setProperty(object, key, value) {
|
|
1216
|
+
// used for this specific key only because Object.defineProperty is slow
|
|
1217
|
+
if (key === '__proto__') {
|
|
1218
|
+
Object.defineProperty(object, key, {
|
|
1219
|
+
configurable: true,
|
|
1220
|
+
enumerable: true,
|
|
1221
|
+
writable: true,
|
|
1222
|
+
value: value
|
|
1223
|
+
});
|
|
1224
|
+
} else {
|
|
1225
|
+
object[key] = value;
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1213
1229
|
var simpleEscapeCheck = new Array(256); // integer, for fast access
|
|
1214
1230
|
var simpleEscapeMap = new Array(256);
|
|
1215
1231
|
for (var i = 0; i < 256; i++) {
|
|
@@ -1388,7 +1404,7 @@ function mergeMappings(state, destination, source, overridableKeys) {
|
|
|
1388
1404
|
key = sourceKeys[index];
|
|
1389
1405
|
|
|
1390
1406
|
if (!_hasOwnProperty$1.call(destination, key)) {
|
|
1391
|
-
destination
|
|
1407
|
+
setProperty(destination, key, source[key]);
|
|
1392
1408
|
overridableKeys[key] = true;
|
|
1393
1409
|
}
|
|
1394
1410
|
}
|
|
@@ -1448,17 +1464,7 @@ function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valu
|
|
|
1448
1464
|
throwError(state, 'duplicated mapping key');
|
|
1449
1465
|
}
|
|
1450
1466
|
|
|
1451
|
-
|
|
1452
|
-
if (keyNode === '__proto__') {
|
|
1453
|
-
Object.defineProperty(_result, keyNode, {
|
|
1454
|
-
configurable: true,
|
|
1455
|
-
enumerable: true,
|
|
1456
|
-
writable: true,
|
|
1457
|
-
value: valueNode
|
|
1458
|
-
});
|
|
1459
|
-
} else {
|
|
1460
|
-
_result[keyNode] = valueNode;
|
|
1461
|
-
}
|
|
1467
|
+
setProperty(_result, keyNode, valueNode);
|
|
1462
1468
|
delete overridableKeys[keyNode];
|
|
1463
1469
|
}
|
|
1464
1470
|
|
|
@@ -3847,5 +3853,4 @@ var jsYaml = {
|
|
|
3847
3853
|
safeDump: safeDump
|
|
3848
3854
|
};
|
|
3849
3855
|
|
|
3850
|
-
export default
|
|
3851
|
-
export { CORE_SCHEMA, DEFAULT_SCHEMA, FAILSAFE_SCHEMA, JSON_SCHEMA, Schema, Type, YAMLException, dump, load, loadAll, safeDump, safeLoad, safeLoadAll, types };
|
|
3856
|
+
export { CORE_SCHEMA, DEFAULT_SCHEMA, FAILSAFE_SCHEMA, JSON_SCHEMA, Schema, Type, YAMLException, jsYaml as default, dump, load, loadAll, safeDump, safeLoad, safeLoadAll, types };
|
|
@@ -120,6 +120,22 @@ function charFromCodepoint(c) {
|
|
|
120
120
|
);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
// set a property of a literal object, while protecting against prototype pollution,
|
|
124
|
+
// see https://github.com/nodeca/js-yaml/issues/164 for more details
|
|
125
|
+
function setProperty(object, key, value) {
|
|
126
|
+
// used for this specific key only because Object.defineProperty is slow
|
|
127
|
+
if (key === '__proto__') {
|
|
128
|
+
Object.defineProperty(object, key, {
|
|
129
|
+
configurable: true,
|
|
130
|
+
enumerable: true,
|
|
131
|
+
writable: true,
|
|
132
|
+
value: value
|
|
133
|
+
});
|
|
134
|
+
} else {
|
|
135
|
+
object[key] = value;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
123
139
|
var simpleEscapeCheck = new Array(256); // integer, for fast access
|
|
124
140
|
var simpleEscapeMap = new Array(256);
|
|
125
141
|
for (var i = 0; i < 256; i++) {
|
|
@@ -298,7 +314,7 @@ function mergeMappings(state, destination, source, overridableKeys) {
|
|
|
298
314
|
key = sourceKeys[index];
|
|
299
315
|
|
|
300
316
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
301
|
-
destination
|
|
317
|
+
setProperty(destination, key, source[key]);
|
|
302
318
|
overridableKeys[key] = true;
|
|
303
319
|
}
|
|
304
320
|
}
|
|
@@ -358,17 +374,7 @@ function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valu
|
|
|
358
374
|
throwError(state, 'duplicated mapping key');
|
|
359
375
|
}
|
|
360
376
|
|
|
361
|
-
|
|
362
|
-
if (keyNode === '__proto__') {
|
|
363
|
-
Object.defineProperty(_result, keyNode, {
|
|
364
|
-
configurable: true,
|
|
365
|
-
enumerable: true,
|
|
366
|
-
writable: true,
|
|
367
|
-
value: valueNode
|
|
368
|
-
});
|
|
369
|
-
} else {
|
|
370
|
-
_result[keyNode] = valueNode;
|
|
371
|
-
}
|
|
377
|
+
setProperty(_result, keyNode, valueNode);
|
|
372
378
|
delete overridableKeys[keyNode];
|
|
373
379
|
}
|
|
374
380
|
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hiiretail/gcp-infra-generators",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Infrastructure as code generator for GCP.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node esbuild.js && npm run build:deps",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"enquirer-separator": "^0.1.0",
|
|
32
32
|
"glob": "^11.0.3",
|
|
33
33
|
"inquirer": "^7.3.3",
|
|
34
|
-
"js-yaml": "^4.1.
|
|
34
|
+
"js-yaml": "^4.1.1",
|
|
35
35
|
"semver": "^7.3.2",
|
|
36
36
|
"sprintf-js": "^1.1.3",
|
|
37
37
|
"yeoman-environment": "^2.10.3",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hiiretail/gcp-infra-generators",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Infrastructure as code generator for GCP.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node esbuild.js && npm run build:deps",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"enquirer-separator": "^0.1.0",
|
|
32
32
|
"glob": "^11.0.3",
|
|
33
33
|
"inquirer": "^7.3.3",
|
|
34
|
-
"js-yaml": "^4.1.
|
|
34
|
+
"js-yaml": "^4.1.1",
|
|
35
35
|
"semver": "^7.3.2",
|
|
36
36
|
"sprintf-js": "^1.1.3",
|
|
37
37
|
"yeoman-environment": "^2.10.3",
|
|
@@ -1,616 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
## [4.1.0] - 2021-04-15
|
|
10
|
-
### Added
|
|
11
|
-
- Types are now exported as `yaml.types.XXX`.
|
|
12
|
-
- Every type now has `options` property with original arguments kept as they were
|
|
13
|
-
(see `yaml.types.int.options` as an example).
|
|
14
|
-
|
|
15
|
-
### Changed
|
|
16
|
-
- `Schema.extend()` now keeps old type order in case of conflicts
|
|
17
|
-
(e.g. Schema.extend([ a, b, c ]).extend([ b, a, d ]) is now ordered as `abcd` instead of `cbad`).
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## [4.0.0] - 2021-01-03
|
|
21
|
-
### Changed
|
|
22
|
-
- Check [migration guide](migrate_v3_to_v4.md) to see details for all breaking changes.
|
|
23
|
-
- Breaking: "unsafe" tags `!!js/function`, `!!js/regexp`, `!!js/undefined` are
|
|
24
|
-
moved to [js-yaml-js-types](https://github.com/nodeca/js-yaml-js-types) package.
|
|
25
|
-
- Breaking: removed `safe*` functions. Use `load`, `loadAll`, `dump`
|
|
26
|
-
instead which are all now safe by default.
|
|
27
|
-
- `yaml.DEFAULT_SAFE_SCHEMA` and `yaml.DEFAULT_FULL_SCHEMA` are removed, use
|
|
28
|
-
`yaml.DEFAULT_SCHEMA` instead.
|
|
29
|
-
- `yaml.Schema.create(schema, tags)` is removed, use `schema.extend(tags)` instead.
|
|
30
|
-
- `!!binary` now always mapped to `Uint8Array` on load.
|
|
31
|
-
- Reduced nesting of `/lib` folder.
|
|
32
|
-
- Parse numbers according to YAML 1.2 instead of YAML 1.1 (`01234` is now decimal,
|
|
33
|
-
`0o1234` is octal, `1:23` is parsed as string instead of base60).
|
|
34
|
-
- `dump()` no longer quotes `:`, `[`, `]`, `(`, `)` except when necessary, #470, #557.
|
|
35
|
-
- Line and column in exceptions are now formatted as `(X:Y)` instead of
|
|
36
|
-
`at line X, column Y` (also present in compact format), #332.
|
|
37
|
-
- Code snippet created in exceptions now contains multiple lines with line numbers.
|
|
38
|
-
- `dump()` now serializes `undefined` as `null` in collections and removes keys with
|
|
39
|
-
`undefined` in mappings, #571.
|
|
40
|
-
- `dump()` with `skipInvalid=true` now serializes invalid items in collections as null.
|
|
41
|
-
- Custom tags starting with `!` are now dumped as `!tag` instead of `!<!tag>`, #576.
|
|
42
|
-
- Custom tags starting with `tag:yaml.org,2002:` are now shorthanded using `!!`, #258.
|
|
43
|
-
|
|
44
|
-
### Added
|
|
45
|
-
- Added `.mjs` (es modules) support.
|
|
46
|
-
- Added `quotingType` and `forceQuotes` options for dumper to configure
|
|
47
|
-
string literal style, #290, #529.
|
|
48
|
-
- Added `styles: { '!!null': 'empty' }` option for dumper
|
|
49
|
-
(serializes `{ foo: null }` as "`foo: `"), #570.
|
|
50
|
-
- Added `replacer` option (similar to option in JSON.stringify), #339.
|
|
51
|
-
- Custom `Tag` can now handle all tags or multiple tags with the same prefix, #385.
|
|
52
|
-
|
|
53
|
-
### Fixed
|
|
54
|
-
- Astral characters are no longer encoded by `dump()`, #587.
|
|
55
|
-
- "duplicate mapping key" exception now points at the correct column, #452.
|
|
56
|
-
- Extra commas in flow collections (e.g. `[foo,,bar]`) now throw an exception
|
|
57
|
-
instead of producing null, #321.
|
|
58
|
-
- `__proto__` key no longer overrides object prototype, #164.
|
|
59
|
-
- Removed `bower.json`.
|
|
60
|
-
- Tags are now url-decoded in `load()` and url-encoded in `dump()`
|
|
61
|
-
(previously usage of custom non-ascii tags may have led to invalid YAML that can't be parsed).
|
|
62
|
-
- Anchors now work correctly with empty nodes, #301.
|
|
63
|
-
- Fix incorrect parsing of invalid block mapping syntax, #418.
|
|
64
|
-
- Throw an error if block sequence/mapping indent contains a tab, #80.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
## [3.14.1] - 2020-12-07
|
|
68
|
-
### Security
|
|
69
|
-
- Fix possible code execution in (already unsafe) `.load()` (in &anchor).
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
## [3.14.0] - 2020-05-22
|
|
73
|
-
### Changed
|
|
74
|
-
- Support `safe/loadAll(input, options)` variant of call.
|
|
75
|
-
- CI: drop outdated nodejs versions.
|
|
76
|
-
- Dev deps bump.
|
|
77
|
-
|
|
78
|
-
### Fixed
|
|
79
|
-
- Quote `=` in plain scalars #519.
|
|
80
|
-
- Check the node type for `!<?>` tag in case user manually specifies it.
|
|
81
|
-
- Verify that there are no null-bytes in input.
|
|
82
|
-
- Fix wrong quote position when writing condensed flow, #526.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
## [3.13.1] - 2019-04-05
|
|
86
|
-
### Security
|
|
87
|
-
- Fix possible code execution in (already unsafe) `.load()`, #480.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
## [3.13.0] - 2019-03-20
|
|
91
|
-
### Security
|
|
92
|
-
- Security fix: `safeLoad()` can hang when arrays with nested refs
|
|
93
|
-
used as key. Now throws exception for nested arrays. #475.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
## [3.12.2] - 2019-02-26
|
|
97
|
-
### Fixed
|
|
98
|
-
- Fix `noArrayIndent` option for root level, #468.
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
## [3.12.1] - 2019-01-05
|
|
102
|
-
### Added
|
|
103
|
-
- Added `noArrayIndent` option, #432.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
## [3.12.0] - 2018-06-02
|
|
107
|
-
### Changed
|
|
108
|
-
- Support arrow functions without a block statement, #421.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
## [3.11.0] - 2018-03-05
|
|
112
|
-
### Added
|
|
113
|
-
- Add arrow functions suport for `!!js/function`.
|
|
114
|
-
|
|
115
|
-
### Fixed
|
|
116
|
-
- Fix dump in bin/octal/hex formats for negative integers, #399.
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
## [3.10.0] - 2017-09-10
|
|
120
|
-
### Fixed
|
|
121
|
-
- Fix `condenseFlow` output (quote keys for sure, instead of spaces), #371, #370.
|
|
122
|
-
- Dump astrals as codepoints instead of surrogate pair, #368.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
## [3.9.1] - 2017-07-08
|
|
126
|
-
### Fixed
|
|
127
|
-
- Ensure stack is present for custom errors in node 7.+, #351.
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
## [3.9.0] - 2017-07-08
|
|
131
|
-
### Added
|
|
132
|
-
- Add `condenseFlow` option (to create pretty URL query params), #346.
|
|
133
|
-
|
|
134
|
-
### Fixed
|
|
135
|
-
- Support array return from safeLoadAll/loadAll, #350.
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
## [3.8.4] - 2017-05-08
|
|
139
|
-
### Fixed
|
|
140
|
-
- Dumper: prevent space after dash for arrays that wrap, #343.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
## [3.8.3] - 2017-04-05
|
|
144
|
-
### Fixed
|
|
145
|
-
- Should not allow numbers to begin and end with underscore, #335.
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
## [3.8.2] - 2017-03-02
|
|
149
|
-
### Fixed
|
|
150
|
-
- Fix `!!float 123` (integers) parse, #333.
|
|
151
|
-
- Don't allow leading zeros in floats (except 0, 0.xxx).
|
|
152
|
-
- Allow positive exponent without sign in floats.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
## [3.8.1] - 2017-02-07
|
|
156
|
-
### Changed
|
|
157
|
-
- Maintenance: update browserified build.
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
## [3.8.0] - 2017-02-07
|
|
161
|
-
### Fixed
|
|
162
|
-
- Fix reported position for `duplicated mapping key` errors.
|
|
163
|
-
Now points to block start instead of block end.
|
|
164
|
-
(#243, thanks to @shockey).
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
## [3.7.0] - 2016-11-12
|
|
168
|
-
### Added
|
|
169
|
-
- Support polymorphism for tags (#300, thanks to @monken).
|
|
170
|
-
|
|
171
|
-
### Fixed
|
|
172
|
-
- Fix parsing of quotes followed by newlines (#304, thanks to @dplepage).
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
## [3.6.1] - 2016-05-11
|
|
176
|
-
### Fixed
|
|
177
|
-
- Fix output cut on a pipe, #286.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
## [3.6.0] - 2016-04-16
|
|
181
|
-
### Fixed
|
|
182
|
-
- Dumper rewrite, fix multiple bugs with trailing `\n`.
|
|
183
|
-
Big thanks to @aepsilon!
|
|
184
|
-
- Loader: fix leading/trailing newlines in block scalars, @aepsilon.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
## [3.5.5] - 2016-03-17
|
|
188
|
-
### Fixed
|
|
189
|
-
- Date parse fix: don't allow dates with on digit in month and day, #268.
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
## [3.5.4] - 2016-03-09
|
|
193
|
-
### Added
|
|
194
|
-
- `noCompatMode` for dumper, to disable quoting YAML 1.1 values.
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
## [3.5.3] - 2016-02-11
|
|
198
|
-
### Changed
|
|
199
|
-
- Maintenance release.
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
## [3.5.2] - 2016-01-11
|
|
203
|
-
### Changed
|
|
204
|
-
- Maintenance: missed comma in bower config.
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
## [3.5.1] - 2016-01-11
|
|
208
|
-
### Changed
|
|
209
|
-
- Removed `inherit` dependency, #239.
|
|
210
|
-
- Better browserify workaround for esprima load.
|
|
211
|
-
- Demo rewrite.
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
## [3.5.0] - 2016-01-10
|
|
215
|
-
### Fixed
|
|
216
|
-
- Dumper. Fold strings only, #217.
|
|
217
|
-
- Dumper. `norefs` option, to clone linked objects, #229.
|
|
218
|
-
- Loader. Throw a warning for duplicate keys, #166.
|
|
219
|
-
- Improved browserify support (mark `esprima` & `Buffer` excluded).
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
## [3.4.6] - 2015-11-26
|
|
223
|
-
### Changed
|
|
224
|
-
- Use standalone `inherit` to keep browserified files clear.
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
## [3.4.5] - 2015-11-23
|
|
228
|
-
### Added
|
|
229
|
-
- Added `lineWidth` option to dumper.
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
## [3.4.4] - 2015-11-21
|
|
233
|
-
### Fixed
|
|
234
|
-
- Fixed floats dump (missed dot for scientific format), #220.
|
|
235
|
-
- Allow non-printable characters inside quoted scalars, #192.
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
## [3.4.3] - 2015-10-10
|
|
239
|
-
### Changed
|
|
240
|
-
- Maintenance release - deps bump (esprima, argparse).
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
## [3.4.2] - 2015-09-09
|
|
244
|
-
### Fixed
|
|
245
|
-
- Fixed serialization of duplicated entries in sequences, #205.
|
|
246
|
-
Thanks to @vogelsgesang.
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
## [3.4.1] - 2015-09-05
|
|
250
|
-
### Fixed
|
|
251
|
-
- Fixed stacktrace handling in generated errors, for browsers (FF/IE).
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
## [3.4.0] - 2015-08-23
|
|
255
|
-
### Changed
|
|
256
|
-
- Don't throw on warnings anymore. Use `onWarning` option to catch.
|
|
257
|
-
- Throw error on unknown tags (was warning before).
|
|
258
|
-
- Reworked internals of error class.
|
|
259
|
-
|
|
260
|
-
### Fixed
|
|
261
|
-
- Fixed multiline keys dump, #197. Thanks to @tcr.
|
|
262
|
-
- Fixed heading line breaks in some scalars (regression).
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
## [3.3.1] - 2015-05-13
|
|
266
|
-
### Added
|
|
267
|
-
- Added `.sortKeys` dumper option, thanks to @rjmunro.
|
|
268
|
-
|
|
269
|
-
### Fixed
|
|
270
|
-
- Fixed astral characters support, #191.
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
## [3.3.0] - 2015-04-26
|
|
274
|
-
### Changed
|
|
275
|
-
- Significantly improved long strings formatting in dumper, thanks to @isaacs.
|
|
276
|
-
- Strip BOM if exists.
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
## [3.2.7] - 2015-02-19
|
|
280
|
-
### Changed
|
|
281
|
-
- Maintenance release.
|
|
282
|
-
- Updated dependencies.
|
|
283
|
-
- HISTORY.md -> CHANGELOG.md
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
## [3.2.6] - 2015-02-07
|
|
287
|
-
### Fixed
|
|
288
|
-
- Fixed encoding of UTF-16 surrogate pairs. (e.g. "\U0001F431" CAT FACE).
|
|
289
|
-
- Fixed demo dates dump (#113, thanks to @Hypercubed).
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
## [3.2.5] - 2014-12-28
|
|
293
|
-
### Fixed
|
|
294
|
-
- Fixed resolving of all built-in types on empty nodes.
|
|
295
|
-
- Fixed invalid warning on empty lines within quoted scalars and flow collections.
|
|
296
|
-
- Fixed bug: Tag on an empty node didn't resolve in some cases.
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
## [3.2.4] - 2014-12-19
|
|
300
|
-
### Fixed
|
|
301
|
-
- Fixed resolving of !!null tag on an empty node.
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
## [3.2.3] - 2014-11-08
|
|
305
|
-
### Fixed
|
|
306
|
-
- Implemented dumping of objects with circular and cross references.
|
|
307
|
-
- Partially fixed aliasing of constructed objects. (see issue #141 for details)
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
## [3.2.2] - 2014-09-07
|
|
311
|
-
### Fixed
|
|
312
|
-
- Fixed infinite loop on unindented block scalars.
|
|
313
|
-
- Rewritten base64 encode/decode in binary type, to keep code licence clear.
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
## [3.2.1] - 2014-08-24
|
|
317
|
-
### Fixed
|
|
318
|
-
- Nothig new. Just fix npm publish error.
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
## [3.2.0] - 2014-08-24
|
|
322
|
-
### Added
|
|
323
|
-
- Added input piping support to CLI.
|
|
324
|
-
|
|
325
|
-
### Fixed
|
|
326
|
-
- Fixed typo, that could cause hand on initial indent (#139).
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
## [3.1.0] - 2014-07-07
|
|
330
|
-
### Changed
|
|
331
|
-
- 1.5x-2x speed boost.
|
|
332
|
-
- Removed deprecated `require('xxx.yml')` support.
|
|
333
|
-
- Significant code cleanup and refactoring.
|
|
334
|
-
- Internal API changed. If you used custom types - see updated examples.
|
|
335
|
-
Others are not affected.
|
|
336
|
-
- Even if the input string has no trailing line break character,
|
|
337
|
-
it will be parsed as if it has one.
|
|
338
|
-
- Added benchmark scripts.
|
|
339
|
-
- Moved bower files to /dist folder
|
|
340
|
-
- Bugfixes.
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
## [3.0.2] - 2014-02-27
|
|
344
|
-
### Fixed
|
|
345
|
-
- Fixed bug: "constructor" string parsed as `null`.
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
## [3.0.1] - 2013-12-22
|
|
349
|
-
### Fixed
|
|
350
|
-
- Fixed parsing of literal scalars. (issue #108)
|
|
351
|
-
- Prevented adding unnecessary spaces in object dumps. (issue #68)
|
|
352
|
-
- Fixed dumping of objects with very long (> 1024 in length) keys.
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
## [3.0.0] - 2013-12-16
|
|
356
|
-
### Changed
|
|
357
|
-
- Refactored code. Changed API for custom types.
|
|
358
|
-
- Removed output colors in CLI, dump json by default.
|
|
359
|
-
- Removed big dependencies from browser version (esprima, buffer). Load `esprima` manually, if `!!js/function` needed. `!!bin` now returns Array in browser
|
|
360
|
-
- AMD support.
|
|
361
|
-
- Don't quote dumped strings because of `-` & `?` (if not first char).
|
|
362
|
-
- __Deprecated__ loading yaml files via `require()`, as not recommended
|
|
363
|
-
behaviour for node.
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
## [2.1.3] - 2013-10-16
|
|
367
|
-
### Fixed
|
|
368
|
-
- Fix wrong loading of empty block scalars.
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
## [2.1.2] - 2013-10-07
|
|
372
|
-
### Fixed
|
|
373
|
-
- Fix unwanted line breaks in folded scalars.
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
## [2.1.1] - 2013-10-02
|
|
377
|
-
### Fixed
|
|
378
|
-
- Dumper now respects deprecated booleans syntax from YAML 1.0/1.1
|
|
379
|
-
- Fixed reader bug in JSON-like sequences/mappings.
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
## [2.1.0] - 2013-06-05
|
|
383
|
-
### Added
|
|
384
|
-
- Add standard YAML schemas: Failsafe (`FAILSAFE_SCHEMA`),
|
|
385
|
-
JSON (`JSON_SCHEMA`) and Core (`CORE_SCHEMA`).
|
|
386
|
-
- Add `skipInvalid` dumper option.
|
|
387
|
-
|
|
388
|
-
### Changed
|
|
389
|
-
- Rename `DEFAULT_SCHEMA` to `DEFAULT_FULL_SCHEMA`
|
|
390
|
-
and `SAFE_SCHEMA` to `DEFAULT_SAFE_SCHEMA`.
|
|
391
|
-
- Use `safeLoad` for `require` extension.
|
|
392
|
-
|
|
393
|
-
### Fixed
|
|
394
|
-
- Bug fix: export `NIL` constant from the public interface.
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
## [2.0.5] - 2013-04-26
|
|
398
|
-
### Security
|
|
399
|
-
- Close security issue in !!js/function constructor.
|
|
400
|
-
Big thanks to @nealpoole for security audit.
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
## [2.0.4] - 2013-04-08
|
|
404
|
-
### Changed
|
|
405
|
-
- Updated .npmignore to reduce package size
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
## [2.0.3] - 2013-02-26
|
|
409
|
-
### Fixed
|
|
410
|
-
- Fixed dumping of empty arrays ans objects. ([] and {} instead of null)
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
## [2.0.2] - 2013-02-15
|
|
414
|
-
### Fixed
|
|
415
|
-
- Fixed input validation: tabs are printable characters.
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
## [2.0.1] - 2013-02-09
|
|
419
|
-
### Fixed
|
|
420
|
-
- Fixed error, when options not passed to function cass
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
## [2.0.0] - 2013-02-09
|
|
424
|
-
### Changed
|
|
425
|
-
- Full rewrite. New architecture. Fast one-stage parsing.
|
|
426
|
-
- Changed custom types API.
|
|
427
|
-
- Added YAML dumper.
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
## [1.0.3] - 2012-11-05
|
|
431
|
-
### Fixed
|
|
432
|
-
- Fixed utf-8 files loading.
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
## [1.0.2] - 2012-08-02
|
|
436
|
-
### Fixed
|
|
437
|
-
- Pull out hand-written shims. Use ES5-Shims for old browsers support. See #44.
|
|
438
|
-
- Fix timstamps incorectly parsed in local time when no time part specified.
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
## [1.0.1] - 2012-07-07
|
|
442
|
-
### Fixed
|
|
443
|
-
- Fixes `TypeError: 'undefined' is not an object` under Safari. Thanks Phuong.
|
|
444
|
-
- Fix timestamps incorrectly parsed in local time. Thanks @caolan. Closes #46.
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
## [1.0.0] - 2012-07-01
|
|
448
|
-
### Changed
|
|
449
|
-
- `y`, `yes`, `n`, `no`, `on`, `off` are not converted to Booleans anymore.
|
|
450
|
-
Fixes #42.
|
|
451
|
-
- `require(filename)` now returns a single document and throws an Error if
|
|
452
|
-
file contains more than one document.
|
|
453
|
-
- CLI was merged back from js-yaml.bin
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
## [0.3.7] - 2012-02-28
|
|
457
|
-
### Fixed
|
|
458
|
-
- Fix export of `addConstructor()`. Closes #39.
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
## [0.3.6] - 2012-02-22
|
|
462
|
-
### Changed
|
|
463
|
-
- Removed AMD parts - too buggy to use. Need help to rewrite from scratch
|
|
464
|
-
|
|
465
|
-
### Fixed
|
|
466
|
-
- Removed YUI compressor warning (renamed `double` variable). Closes #40.
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
## [0.3.5] - 2012-01-10
|
|
470
|
-
### Fixed
|
|
471
|
-
- Workagound for .npmignore fuckup under windows. Thanks to airportyh.
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
## [0.3.4] - 2011-12-24
|
|
475
|
-
### Fixed
|
|
476
|
-
- Fixes str[] for oldIEs support.
|
|
477
|
-
- Adds better has change support for browserified demo.
|
|
478
|
-
- improves compact output of Error. Closes #33.
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
## [0.3.3] - 2011-12-20
|
|
482
|
-
### Added
|
|
483
|
-
- adds `compact` stringification of Errors.
|
|
484
|
-
|
|
485
|
-
### Changed
|
|
486
|
-
- jsyaml executable moved to separate module.
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
## [0.3.2] - 2011-12-16
|
|
490
|
-
### Added
|
|
491
|
-
- Added jsyaml executable.
|
|
492
|
-
- Added !!js/function support. Closes #12.
|
|
493
|
-
|
|
494
|
-
### Fixed
|
|
495
|
-
- Fixes ug with block style scalars. Closes #26.
|
|
496
|
-
- All sources are passing JSLint now.
|
|
497
|
-
- Fixes bug in Safari. Closes #28.
|
|
498
|
-
- Fixes bug in Opers. Closes #29.
|
|
499
|
-
- Improves browser support. Closes #20.
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
## [0.3.1] - 2011-11-18
|
|
503
|
-
### Added
|
|
504
|
-
- Added AMD support for browserified version.
|
|
505
|
-
- Added permalinks for online demo YAML snippets. Now we have YPaste service, lol.
|
|
506
|
-
- Added !!js/regexp and !!js/undefined types. Partially solves #12.
|
|
507
|
-
|
|
508
|
-
### Changed
|
|
509
|
-
- Wrapped browserified js-yaml into closure.
|
|
510
|
-
|
|
511
|
-
### Fixed
|
|
512
|
-
- Fixed the resolvement of non-specific tags. Closes #17.
|
|
513
|
-
- Fixed !!set mapping.
|
|
514
|
-
- Fixed month parse in dates. Closes #19.
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
## [0.3.0] - 2011-11-09
|
|
518
|
-
### Added
|
|
519
|
-
- Added browserified version. Closes #13.
|
|
520
|
-
- Added live demo of browserified version.
|
|
521
|
-
- Ported some of the PyYAML tests. See #14.
|
|
522
|
-
|
|
523
|
-
### Fixed
|
|
524
|
-
- Removed JS.Class dependency. Closes #3.
|
|
525
|
-
- Fixed timestamp bug when fraction was given.
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
## [0.2.2] - 2011-11-06
|
|
529
|
-
### Fixed
|
|
530
|
-
- Fixed crash on docs without ---. Closes #8.
|
|
531
|
-
- Fixed multiline string parse
|
|
532
|
-
- Fixed tests/comments for using array as key
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
## [0.2.1] - 2011-11-02
|
|
536
|
-
### Fixed
|
|
537
|
-
- Fixed short file read (<4k). Closes #9.
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
## [0.2.0] - 2011-11-02
|
|
541
|
-
### Changed
|
|
542
|
-
- First public release
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
[4.1.0]: https://github.com/nodeca/js-yaml/compare/4.0.0...4.1.0
|
|
546
|
-
[4.0.0]: https://github.com/nodeca/js-yaml/compare/3.14.0...4.0.0
|
|
547
|
-
[3.14.0]: https://github.com/nodeca/js-yaml/compare/3.13.1...3.14.0
|
|
548
|
-
[3.13.1]: https://github.com/nodeca/js-yaml/compare/3.13.0...3.13.1
|
|
549
|
-
[3.13.0]: https://github.com/nodeca/js-yaml/compare/3.12.2...3.13.0
|
|
550
|
-
[3.12.2]: https://github.com/nodeca/js-yaml/compare/3.12.1...3.12.2
|
|
551
|
-
[3.12.1]: https://github.com/nodeca/js-yaml/compare/3.12.0...3.12.1
|
|
552
|
-
[3.12.0]: https://github.com/nodeca/js-yaml/compare/3.11.0...3.12.0
|
|
553
|
-
[3.11.0]: https://github.com/nodeca/js-yaml/compare/3.10.0...3.11.0
|
|
554
|
-
[3.10.0]: https://github.com/nodeca/js-yaml/compare/3.9.1...3.10.0
|
|
555
|
-
[3.9.1]: https://github.com/nodeca/js-yaml/compare/3.9.0...3.9.1
|
|
556
|
-
[3.9.0]: https://github.com/nodeca/js-yaml/compare/3.8.4...3.9.0
|
|
557
|
-
[3.8.4]: https://github.com/nodeca/js-yaml/compare/3.8.3...3.8.4
|
|
558
|
-
[3.8.3]: https://github.com/nodeca/js-yaml/compare/3.8.2...3.8.3
|
|
559
|
-
[3.8.2]: https://github.com/nodeca/js-yaml/compare/3.8.1...3.8.2
|
|
560
|
-
[3.8.1]: https://github.com/nodeca/js-yaml/compare/3.8.0...3.8.1
|
|
561
|
-
[3.8.0]: https://github.com/nodeca/js-yaml/compare/3.7.0...3.8.0
|
|
562
|
-
[3.7.0]: https://github.com/nodeca/js-yaml/compare/3.6.1...3.7.0
|
|
563
|
-
[3.6.1]: https://github.com/nodeca/js-yaml/compare/3.6.0...3.6.1
|
|
564
|
-
[3.6.0]: https://github.com/nodeca/js-yaml/compare/3.5.5...3.6.0
|
|
565
|
-
[3.5.5]: https://github.com/nodeca/js-yaml/compare/3.5.4...3.5.5
|
|
566
|
-
[3.5.4]: https://github.com/nodeca/js-yaml/compare/3.5.3...3.5.4
|
|
567
|
-
[3.5.3]: https://github.com/nodeca/js-yaml/compare/3.5.2...3.5.3
|
|
568
|
-
[3.5.2]: https://github.com/nodeca/js-yaml/compare/3.5.1...3.5.2
|
|
569
|
-
[3.5.1]: https://github.com/nodeca/js-yaml/compare/3.5.0...3.5.1
|
|
570
|
-
[3.5.0]: https://github.com/nodeca/js-yaml/compare/3.4.6...3.5.0
|
|
571
|
-
[3.4.6]: https://github.com/nodeca/js-yaml/compare/3.4.5...3.4.6
|
|
572
|
-
[3.4.5]: https://github.com/nodeca/js-yaml/compare/3.4.4...3.4.5
|
|
573
|
-
[3.4.4]: https://github.com/nodeca/js-yaml/compare/3.4.3...3.4.4
|
|
574
|
-
[3.4.3]: https://github.com/nodeca/js-yaml/compare/3.4.2...3.4.3
|
|
575
|
-
[3.4.2]: https://github.com/nodeca/js-yaml/compare/3.4.1...3.4.2
|
|
576
|
-
[3.4.1]: https://github.com/nodeca/js-yaml/compare/3.4.0...3.4.1
|
|
577
|
-
[3.4.0]: https://github.com/nodeca/js-yaml/compare/3.3.1...3.4.0
|
|
578
|
-
[3.3.1]: https://github.com/nodeca/js-yaml/compare/3.3.0...3.3.1
|
|
579
|
-
[3.3.0]: https://github.com/nodeca/js-yaml/compare/3.2.7...3.3.0
|
|
580
|
-
[3.2.7]: https://github.com/nodeca/js-yaml/compare/3.2.6...3.2.7
|
|
581
|
-
[3.2.6]: https://github.com/nodeca/js-yaml/compare/3.2.5...3.2.6
|
|
582
|
-
[3.2.5]: https://github.com/nodeca/js-yaml/compare/3.2.4...3.2.5
|
|
583
|
-
[3.2.4]: https://github.com/nodeca/js-yaml/compare/3.2.3...3.2.4
|
|
584
|
-
[3.2.3]: https://github.com/nodeca/js-yaml/compare/3.2.2...3.2.3
|
|
585
|
-
[3.2.2]: https://github.com/nodeca/js-yaml/compare/3.2.1...3.2.2
|
|
586
|
-
[3.2.1]: https://github.com/nodeca/js-yaml/compare/3.2.0...3.2.1
|
|
587
|
-
[3.2.0]: https://github.com/nodeca/js-yaml/compare/3.1.0...3.2.0
|
|
588
|
-
[3.1.0]: https://github.com/nodeca/js-yaml/compare/3.0.2...3.1.0
|
|
589
|
-
[3.0.2]: https://github.com/nodeca/js-yaml/compare/3.0.1...3.0.2
|
|
590
|
-
[3.0.1]: https://github.com/nodeca/js-yaml/compare/3.0.0...3.0.1
|
|
591
|
-
[3.0.0]: https://github.com/nodeca/js-yaml/compare/2.1.3...3.0.0
|
|
592
|
-
[2.1.3]: https://github.com/nodeca/js-yaml/compare/2.1.2...2.1.3
|
|
593
|
-
[2.1.2]: https://github.com/nodeca/js-yaml/compare/2.1.1...2.1.2
|
|
594
|
-
[2.1.1]: https://github.com/nodeca/js-yaml/compare/2.1.0...2.1.1
|
|
595
|
-
[2.1.0]: https://github.com/nodeca/js-yaml/compare/2.0.5...2.1.0
|
|
596
|
-
[2.0.5]: https://github.com/nodeca/js-yaml/compare/2.0.4...2.0.5
|
|
597
|
-
[2.0.4]: https://github.com/nodeca/js-yaml/compare/2.0.3...2.0.4
|
|
598
|
-
[2.0.3]: https://github.com/nodeca/js-yaml/compare/2.0.2...2.0.3
|
|
599
|
-
[2.0.2]: https://github.com/nodeca/js-yaml/compare/2.0.1...2.0.2
|
|
600
|
-
[2.0.1]: https://github.com/nodeca/js-yaml/compare/2.0.0...2.0.1
|
|
601
|
-
[2.0.0]: https://github.com/nodeca/js-yaml/compare/1.0.3...2.0.0
|
|
602
|
-
[1.0.3]: https://github.com/nodeca/js-yaml/compare/1.0.2...1.0.3
|
|
603
|
-
[1.0.2]: https://github.com/nodeca/js-yaml/compare/1.0.1...1.0.2
|
|
604
|
-
[1.0.1]: https://github.com/nodeca/js-yaml/compare/1.0.0...1.0.1
|
|
605
|
-
[1.0.0]: https://github.com/nodeca/js-yaml/compare/0.3.7...1.0.0
|
|
606
|
-
[0.3.7]: https://github.com/nodeca/js-yaml/compare/0.3.6...0.3.7
|
|
607
|
-
[0.3.6]: https://github.com/nodeca/js-yaml/compare/0.3.5...0.3.6
|
|
608
|
-
[0.3.5]: https://github.com/nodeca/js-yaml/compare/0.3.4...0.3.5
|
|
609
|
-
[0.3.4]: https://github.com/nodeca/js-yaml/compare/0.3.3...0.3.4
|
|
610
|
-
[0.3.3]: https://github.com/nodeca/js-yaml/compare/0.3.2...0.3.3
|
|
611
|
-
[0.3.2]: https://github.com/nodeca/js-yaml/compare/0.3.1...0.3.2
|
|
612
|
-
[0.3.1]: https://github.com/nodeca/js-yaml/compare/0.3.0...0.3.1
|
|
613
|
-
[0.3.0]: https://github.com/nodeca/js-yaml/compare/0.2.2...0.3.0
|
|
614
|
-
[0.2.2]: https://github.com/nodeca/js-yaml/compare/0.2.1...0.2.2
|
|
615
|
-
[0.2.1]: https://github.com/nodeca/js-yaml/compare/0.2.0...0.2.1
|
|
616
|
-
[0.2.0]: https://github.com/nodeca/js-yaml/releases/tag/0.2.0
|