micro-contracts 0.18.11 → 0.18.12
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/cli-contract.yaml
CHANGED
|
@@ -167,7 +167,7 @@ Expecting one of '${i.join("', '")}'`);let n=`${t}Help`;return this.on(n,a=>{let
|
|
|
167
167
|
`,d+=e.repeat("-",a.indent+p+3+m.pos)+`^
|
|
168
168
|
`;for(let h=1;h<=a.linesAfter&&!(c+h>=l.length);h++){let g=t(n.buffer,s[c+h],l[c+h],n.position-(s[c]-s[c+h]),f);d+=e.repeat(" ",a.indent)+r((n.line+h+1).toString(),p)+" | "+g.str+`
|
|
169
169
|
`}return d.replace(/\n$/,"")}return $5=i,$5}function oi(){if(Wj)return k5;Wj=1;let e=Mp(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function i(a){let o={};return a!==null&&Object.keys(a).forEach(function(s){a[s].forEach(function(l){o[String(l)]=s})}),o}function n(a,o){if(o=o||{},Object.keys(o).forEach(function(s){if(t.indexOf(s)===-1)throw new e('Unknown option "'+s+'" is met in definition of "'+a+'" YAML type.')}),this.options=o,this.tag=a,this.kind=o.kind||null,this.resolve=o.resolve||function(){return!0},this.construct=o.construct||function(s){return s},this.instanceOf=o.instanceOf||null,this.predicate=o.predicate||null,this.represent=o.represent||null,this.representName=o.representName||null,this.defaultStyle=o.defaultStyle||null,this.multi=o.multi||!1,this.styleAliases=i(o.styleAliases||null),r.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+a+'" YAML type.')}return k5=n,k5}function gT(){if(Hj)return x5;Hj=1;let e=Mp(),t=oi();function r(a,o){let s=[];return a[o].forEach(function(l){let u=s.length;s.forEach(function(c,d){c.tag===l.tag&&c.kind===l.kind&&c.multi===l.multi&&(u=d)}),s[u]=l}),s}function i(){let a={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function o(s){s.multi?(a.multi[s.kind].push(s),a.multi.fallback.push(s)):a[s.kind][s.tag]=a.fallback[s.tag]=s}for(let s=0,l=arguments.length;s<l;s+=1)arguments[s].forEach(o);return a}function n(a){return this.extend(a)}return n.prototype.extend=function(o){let s=[],l=[];if(o instanceof t)l.push(o);else if(Array.isArray(o))l=l.concat(o);else if(o&&(Array.isArray(o.implicit)||Array.isArray(o.explicit)))o.implicit&&(s=s.concat(o.implicit)),o.explicit&&(l=l.concat(o.explicit));else throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");s.forEach(function(c){if(!(c instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(c.loadKind&&c.loadKind!=="scalar")throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(c.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(c){if(!(c instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let u=Object.create(n.prototype);return u.implicit=(this.implicit||[]).concat(s),u.explicit=(this.explicit||[]).concat(l),u.compiledImplicit=r(u,"implicit"),u.compiledExplicit=r(u,"explicit"),u.compiledTypeMap=i(u.compiledImplicit,u.compiledExplicit),u},x5=n,x5}function vT(){if(Jj)return A5;Jj=1;let e=oi();return A5=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),A5}function yT(){if(Yj)return C5;Yj=1;let e=oi();return C5=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),C5}function _T(){if(Xj)return D5;Xj=1;let e=oi();return D5=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),D5}function bT(){if(Qj)return O5;Qj=1;let e=gT();return O5=new e({explicit:[vT(),yT(),_T()]}),O5}function wT(){if(eT)return P5;eT=1;let e=oi();function t(n){if(n===null)return!0;let a=n.length;return a===1&&n==="~"||a===4&&(n==="null"||n==="Null"||n==="NULL")}function r(){return null}function i(n){return n===null}return P5=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),P5}function ST(){if(tT)return I5;tT=1;let e=oi();function t(n){if(n===null)return!1;let a=n.length;return a===4&&(n==="true"||n==="True"||n==="TRUE")||a===5&&(n==="false"||n==="False"||n==="FALSE")}function r(n){return n==="true"||n==="True"||n==="TRUE"}function i(n){return Object.prototype.toString.call(n)==="[object Boolean]"}return I5=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:{lowercase:function(n){return n?"true":"false"},uppercase:function(n){return n?"TRUE":"FALSE"},camelcase:function(n){return n?"True":"False"}},defaultStyle:"lowercase"}),I5}function ET(){if(rT)return j5;rT=1;let e=Lp(),t=oi();function r(u){return u>=48&&u<=57||u>=65&&u<=70||u>=97&&u<=102}function i(u){return u>=48&&u<=55}function n(u){return u>=48&&u<=57}function a(u){if(u===null)return!1;let c=u.length,d=0,p=!1;if(!c)return!1;let f=u[d];if((f==="-"||f==="+")&&(f=u[++d]),f==="0"){if(d+1===c)return!0;if(f=u[++d],f==="b"){for(d++;d<c;d++){if(f=u[d],f!=="0"&&f!=="1")return!1;p=!0}return p&&isFinite(o(u))}if(f==="x"){for(d++;d<c;d++){if(!r(u.charCodeAt(d)))return!1;p=!0}return p&&isFinite(o(u))}if(f==="o"){for(d++;d<c;d++){if(!i(u.charCodeAt(d)))return!1;p=!0}return p&&isFinite(o(u))}}for(;d<c;d++){if(!n(u.charCodeAt(d)))return!1;p=!0}return p?isFinite(o(u)):!1}function o(u){let c=u,d=1,p=c[0];if((p==="-"||p==="+")&&(p==="-"&&(d=-1),c=c.slice(1),p=c[0]),c==="0")return 0;if(p==="0"){if(c[1]==="b")return d*parseInt(c.slice(2),2);if(c[1]==="x")return d*parseInt(c.slice(2),16);if(c[1]==="o")return d*parseInt(c.slice(2),8)}return d*parseInt(c,10)}function s(u){return o(u)}function l(u){return Object.prototype.toString.call(u)==="[object Number]"&&u%1===0&&!e.isNegativeZero(u)}return j5=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:a,construct:s,predicate:l,represent:{binary:function(u){return u>=0?"0b"+u.toString(2):"-0b"+u.toString(2).slice(1)},octal:function(u){return u>=0?"0o"+u.toString(8):"-0o"+u.toString(8).slice(1)},decimal:function(u){return u.toString(10)},hexadecimal:function(u){return u>=0?"0x"+u.toString(16).toUpperCase():"-0x"+u.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),j5}function $T(){if(nT)return T5;nT=1;let e=Lp(),t=oi(),r=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),i=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function n(u){return u===null||!r.test(u)?!1:isFinite(parseFloat(u,10))?!0:i.test(u)}function a(u){let c=u.toLowerCase(),d=c[0]==="-"?-1:1;return"+-".indexOf(c[0])>=0&&(c=c.slice(1)),c===".inf"?d===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:c===".nan"?NaN:d*parseFloat(c,10)}let o=/^[-+]?[0-9]+e/;function s(u,c){if(isNaN(u))switch(c){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===u)switch(c){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===u)switch(c){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(u))return"-0.0";let d=u.toString(10);return o.test(d)?d.replace("e",".e"):d}function l(u){return Object.prototype.toString.call(u)==="[object Number]"&&(u%1!==0||e.isNegativeZero(u))}return T5=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:n,construct:a,predicate:l,represent:s,defaultStyle:"lowercase"}),T5}function kT(){return iT||(iT=1,N5=bT().extend({implicit:[wT(),ST(),ET(),$T()]})),N5}function xT(){return aT||(aT=1,R5=kT()),R5}function AT(){if(oT)return B5;oT=1;let e=oi(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=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]))?))?$");function i(o){return o===null?!1:t.exec(o)!==null||r.exec(o)!==null}function n(o){let s=0,l=null,u=t.exec(o);if(u===null&&(u=r.exec(o)),u===null)throw new Error("Date resolve error");let c=+u[1],d=+u[2]-1,p=+u[3];if(!u[4])return new Date(Date.UTC(c,d,p));let f=+u[4],m=+u[5],h=+u[6];if(u[7]){for(s=u[7].slice(0,3);s.length<3;)s+="0";s=+s}if(u[9]){let y=+u[10],_=+(u[11]||0);l=(y*60+_)*6e4,u[9]==="-"&&(l=-l)}let g=new Date(Date.UTC(c,d,p,f,m,h,s));return l&&g.setTime(g.getTime()-l),g}function a(o){return o.toISOString()}return B5=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:i,construct:n,instanceOf:Date,represent:a}),B5}function CT(){if(sT)return F5;sT=1;let e=oi();function t(r){return r==="<<"||r===null}return F5=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),F5}function DT(){if(uT)return L5;uT=1;let e=oi(),t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
170
|
-
\r`;function r(o){if(o===null)return!1;let s=0,l=o.length,u=t;for(let c=0;c<l;c++){let d=u.indexOf(o.charAt(c));if(!(d>64)){if(d<0)return!1;s+=6}}return s%8===0}function i(o){let s=o.replace(/[\r\n=]/g,""),l=s.length,u=t,c=0,d=[];for(let f=0;f<l;f++)f%4===0&&f&&(d.push(c>>16&255),d.push(c>>8&255),d.push(c&255)),c=c<<6|u.indexOf(s.charAt(f));let p=l%4*6;return p===0?(d.push(c>>16&255),d.push(c>>8&255),d.push(c&255)):p===18?(d.push(c>>10&255),d.push(c>>2&255)):p===12&&d.push(c>>4&255),new Uint8Array(d)}function n(o){let s="",l=0,u=o.length,c=t;for(let p=0;p<u;p++)p%3===0&&p&&(s+=c[l>>18&63],s+=c[l>>12&63],s+=c[l>>6&63],s+=c[l&63]),l=(l<<8)+o[p];let d=u%3;return d===0?(s+=c[l>>18&63],s+=c[l>>12&63],s+=c[l>>6&63],s+=c[l&63]):d===2?(s+=c[l>>10&63],s+=c[l>>4&63],s+=c[l<<2&63],s+=c[64]):d===1&&(s+=c[l>>2&63],s+=c[l<<4&63],s+=c[64],s+=c[64]),s}function a(o){return Object.prototype.toString.call(o)==="[object Uint8Array]"}return L5=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:i,predicate:a,represent:n}),L5}function OT(){if(lT)return M5;lT=1;let e=oi(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(a){if(a===null)return!0;let o=
|
|
170
|
+
\r`;function r(o){if(o===null)return!1;let s=0,l=o.length,u=t;for(let c=0;c<l;c++){let d=u.indexOf(o.charAt(c));if(!(d>64)){if(d<0)return!1;s+=6}}return s%8===0}function i(o){let s=o.replace(/[\r\n=]/g,""),l=s.length,u=t,c=0,d=[];for(let f=0;f<l;f++)f%4===0&&f&&(d.push(c>>16&255),d.push(c>>8&255),d.push(c&255)),c=c<<6|u.indexOf(s.charAt(f));let p=l%4*6;return p===0?(d.push(c>>16&255),d.push(c>>8&255),d.push(c&255)):p===18?(d.push(c>>10&255),d.push(c>>2&255)):p===12&&d.push(c>>4&255),new Uint8Array(d)}function n(o){let s="",l=0,u=o.length,c=t;for(let p=0;p<u;p++)p%3===0&&p&&(s+=c[l>>18&63],s+=c[l>>12&63],s+=c[l>>6&63],s+=c[l&63]),l=(l<<8)+o[p];let d=u%3;return d===0?(s+=c[l>>18&63],s+=c[l>>12&63],s+=c[l>>6&63],s+=c[l&63]):d===2?(s+=c[l>>10&63],s+=c[l>>4&63],s+=c[l<<2&63],s+=c[64]):d===1&&(s+=c[l>>2&63],s+=c[l<<4&63],s+=c[64],s+=c[64]),s}function a(o){return Object.prototype.toString.call(o)==="[object Uint8Array]"}return L5=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:i,predicate:a,represent:n}),L5}function OT(){if(lT)return M5;lT=1;let e=oi(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(a){if(a===null)return!0;let o={},s=a;for(let l=0,u=s.length;l<u;l+=1){let c=s[l],d=!1;if(r.call(c)!=="[object Object]")return!1;let p;for(p in c)if(t.call(c,p))if(!d)d=!0;else return!1;if(!d||t.call(o,p))return!1;Object.defineProperty(o,p,{value:!0})}return!0}function n(a){return a!==null?a:[]}return M5=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:n}),M5}function PT(){if(cT)return z5;cT=1;let e=oi(),t=Object.prototype.toString;function r(n){if(n===null)return!0;let a=n,o=new Array(a.length);for(let s=0,l=a.length;s<l;s+=1){let u=a[s];if(t.call(u)!=="[object Object]")return!1;let c=Object.keys(u);if(c.length!==1)return!1;o[s]=[c[0],u[c[0]]]}return!0}function i(n){if(n===null)return[];let a=n,o=new Array(a.length);for(let s=0,l=a.length;s<l;s+=1){let u=a[s],c=Object.keys(u);o[s]=[c[0],u[c[0]]]}return o}return z5=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:i}),z5}function IT(){if(dT)return U5;dT=1;let e=oi(),t=Object.prototype.hasOwnProperty;function r(n){if(n===null)return!0;let a=n;for(let o in a)if(t.call(a,o)&&a[o]!==null)return!1;return!0}function i(n){return n!==null?n:{}}return U5=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:i}),U5}function Z5(){return pT||(pT=1,q5=xT().extend({implicit:[AT(),CT()],explicit:[DT(),OT(),PT(),IT()]})),q5}function Lme(){if(fT)return w1;fT=1;let e=Lp(),t=Mp(),r=Fme(),i=Z5(),n=Object.prototype.hasOwnProperty,a=1,o=2,s=3,l=4,u=1,c=2,d=3,p=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=/[\x85\u2028\u2029]/,m=/[,\[\]{}]/,h=/^(?:!|!!|![0-9A-Za-z-]+!)$/,g=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function y(O){return Object.prototype.toString.call(O)}function _(O){return O===10||O===13}function w(O){return O===9||O===32}function S(O){return O===9||O===32||O===10||O===13}function C(O){return O===44||O===91||O===93||O===123||O===125}function D(O){if(O>=48&&O<=57)return O-48;let ee=O|32;return ee>=97&&ee<=102?ee-97+10:-1}function E(O){return O===120?2:O===117?4:O===85?8:0}function A(O){return O>=48&&O<=57?O-48:-1}function T(O){switch(O){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
|
171
171
|
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function P(O){return O<=65535?String.fromCharCode(O):String.fromCharCode((O-65536>>10)+55296,(O-65536&1023)+56320)}function $(O,ee,I){ee==="__proto__"?Object.defineProperty(O,ee,{configurable:!0,enumerable:!0,writable:!0,value:I}):O[ee]=I}let k=new Array(256),B=new Array(256);for(let O=0;O<256;O++)k[O]=T(O)?1:0,B[O]=T(O);function x(O,ee){this.input=O,this.filename=ee.filename||null,this.schema=ee.schema||i,this.onWarning=ee.onWarning||null,this.legacy=ee.legacy||!1,this.json=ee.json||!1,this.listener=ee.listener||null,this.maxDepth=typeof ee.maxDepth=="number"?ee.maxDepth:100,this.maxTotalMergeKeys=typeof ee.maxTotalMergeKeys=="number"?ee.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=O.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function N(O,ee){let I={name:O.filename,buffer:O.input.slice(0,-1),position:O.position,line:O.line,column:O.position-O.lineStart};return I.snippet=r(I),new t(ee,I)}function F(O,ee){throw N(O,ee)}function H(O,ee){O.onWarning&&O.onWarning.call(null,N(O,ee))}function ie(O,ee,I){let te=O.anchorMapTransactions;if(te.length!==0){let ae=te[te.length-1];n.call(ae,ee)||(ae[ee]={existed:n.call(O.anchorMap,ee),value:O.anchorMap[ee]})}O.anchorMap[ee]=I}function he(O){O.anchorMapTransactions.push(Object.create(null))}function Z(O){let ee=O.anchorMapTransactions.pop(),I=O.anchorMapTransactions;if(I.length===0)return;let te=I[I.length-1],ae=Object.keys(ee);for(let ve=0,G=ae.length;ve<G;ve+=1){let M=ae[ve];n.call(te,M)||(te[M]=ee[M])}}function se(O){let ee=O.anchorMapTransactions.pop(),I=Object.keys(ee);for(let te=I.length-1;te>=0;te-=1){let ae=ee[I[te]];ae.existed?O.anchorMap[I[te]]=ae.value:delete O.anchorMap[I[te]]}}function W(O){return{position:O.position,line:O.line,lineStart:O.lineStart,lineIndent:O.lineIndent,firstTabInLine:O.firstTabInLine,tag:O.tag,anchor:O.anchor,kind:O.kind,result:O.result}}function U(O,ee){O.position=ee.position,O.line=ee.line,O.lineStart=ee.lineStart,O.lineIndent=ee.lineIndent,O.firstTabInLine=ee.firstTabInLine,O.tag=ee.tag,O.anchor=ee.anchor,O.kind=ee.kind,O.result=ee.result}let Y={YAML:function(ee,I,te){ee.version!==null&&F(ee,"duplication of %YAML directive"),te.length!==1&&F(ee,"YAML directive accepts exactly one argument");let ae=/^([0-9]+)\.([0-9]+)$/.exec(te[0]);ae===null&&F(ee,"ill-formed argument of the YAML directive");let ve=parseInt(ae[1],10),G=parseInt(ae[2],10);ve!==1&&F(ee,"unacceptable YAML version of the document"),ee.version=te[0],ee.checkLineBreaks=G<2,G!==1&&G!==2&&H(ee,"unsupported YAML version of the document")},TAG:function(ee,I,te){let ae;te.length!==2&&F(ee,"TAG directive accepts exactly two arguments");let ve=te[0];ae=te[1],h.test(ve)||F(ee,"ill-formed tag handle (first argument) of the TAG directive"),n.call(ee.tagMap,ve)&&F(ee,'there is a previously declared suffix for "'+ve+'" tag handle'),g.test(ae)||F(ee,"ill-formed tag prefix (second argument) of the TAG directive");try{ae=decodeURIComponent(ae)}catch{F(ee,"tag prefix is malformed: "+ae)}ee.tagMap[ve]=ae}};function ce(O,ee,I,te){if(ee<I){let ae=O.input.slice(ee,I);if(te)for(let ve=0,G=ae.length;ve<G;ve+=1){let M=ae.charCodeAt(ve);M===9||M>=32&&M<=1114111||F(O,"expected valid JSON character")}else p.test(ae)&&F(O,"the stream contains non-printable characters");O.result+=ae}}function be(O,ee,I,te){e.isObject(I)||F(O,"cannot merge mappings; the provided source object is unacceptable");let ae=Object.keys(I);for(let ve=0,G=ae.length;ve<G;ve+=1){let M=ae[ve];O.maxTotalMergeKeys!==-1&&++O.totalMergeKeys>O.maxTotalMergeKeys&&F(O,"merge keys exceeded maxTotalMergeKeys ("+O.maxTotalMergeKeys+")"),n.call(ee,M)||($(ee,M,I[M]),te[M]=!0)}}function Be(O,ee,I,te,ae,ve,G,M,K){if(Array.isArray(ae)){ae=Array.prototype.slice.call(ae);for(let X=0,R=ae.length;X<R;X+=1)Array.isArray(ae[X])&&F(O,"nested arrays are not supported inside keys"),typeof ae=="object"&&y(ae[X])==="[object Object]"&&(ae[X]="[object Object]")}if(typeof ae=="object"&&y(ae)==="[object Object]"&&(ae="[object Object]"),ae=String(ae),ee===null&&(ee={}),te==="tag:yaml.org,2002:merge")if(Array.isArray(ve))for(let X=0,R=ve.length;X<R;X+=1)be(O,ee,ve[X],I);else be(O,ee,ve,I);else!O.json&&!n.call(I,ae)&&n.call(ee,ae)&&(O.line=G||O.line,O.lineStart=M||O.lineStart,O.position=K||O.position,F(O,"duplicated mapping key")),$(ee,ae,ve),delete I[ae];return ee}function Ae(O){let ee=O.input.charCodeAt(O.position);ee===10?O.position++:ee===13?(O.position++,O.input.charCodeAt(O.position)===10&&O.position++):F(O,"a line break is expected"),O.line+=1,O.lineStart=O.position,O.firstTabInLine=-1}function we(O,ee,I){let te=0,ae=O.input.charCodeAt(O.position);for(;ae!==0;){for(;w(ae);)ae===9&&O.firstTabInLine===-1&&(O.firstTabInLine=O.position),ae=O.input.charCodeAt(++O.position);if(ee&&ae===35)do ae=O.input.charCodeAt(++O.position);while(ae!==10&&ae!==13&&ae!==0);if(_(ae))for(Ae(O),ae=O.input.charCodeAt(O.position),te++,O.lineIndent=0;ae===32;)O.lineIndent++,ae=O.input.charCodeAt(++O.position);else break}return I!==-1&&te!==0&&O.lineIndent<I&&H(O,"deficient indentation"),te}function Fe(O){let ee=O.position,I=O.input.charCodeAt(ee);return!!((I===45||I===46)&&I===O.input.charCodeAt(ee+1)&&I===O.input.charCodeAt(ee+2)&&(ee+=3,I=O.input.charCodeAt(ee),I===0||S(I)))}function Ue(O,ee){ee===1?O.result+=" ":ee>1&&(O.result+=e.repeat(`
|
|
172
172
|
`,ee-1))}function ge(O,ee,I){let te,ae,ve,G,M,K,X=O.kind,R=O.result,L=O.input.charCodeAt(O.position);if(S(L)||C(L)||L===35||L===38||L===42||L===33||L===124||L===62||L===39||L===34||L===37||L===64||L===96)return!1;if(L===63||L===45){let Q=O.input.charCodeAt(O.position+1);if(S(Q)||I&&C(Q))return!1}for(O.kind="scalar",O.result="",te=ae=O.position,ve=!1;L!==0;){if(L===58){let Q=O.input.charCodeAt(O.position+1);if(S(Q)||I&&C(Q))break}else if(L===35){let Q=O.input.charCodeAt(O.position-1);if(S(Q))break}else{if(O.position===O.lineStart&&Fe(O)||I&&C(L))break;if(_(L))if(G=O.line,M=O.lineStart,K=O.lineIndent,we(O,!1,-1),O.lineIndent>=ee){ve=!0,L=O.input.charCodeAt(O.position);continue}else{O.position=ae,O.line=G,O.lineStart=M,O.lineIndent=K;break}}ve&&(ce(O,te,ae,!1),Ue(O,O.line-G),te=ae=O.position,ve=!1),w(L)||(ae=O.position+1),L=O.input.charCodeAt(++O.position)}return ce(O,te,ae,!1),O.result?!0:(O.kind=X,O.result=R,!1)}function $e(O,ee){let I,te,ae=O.input.charCodeAt(O.position);if(ae!==39)return!1;for(O.kind="scalar",O.result="",O.position++,I=te=O.position;(ae=O.input.charCodeAt(O.position))!==0;)if(ae===39)if(ce(O,I,O.position,!0),ae=O.input.charCodeAt(++O.position),ae===39)I=O.position,O.position++,te=O.position;else return!0;else _(ae)?(ce(O,I,te,!0),Ue(O,we(O,!1,ee)),I=te=O.position):O.position===O.lineStart&&Fe(O)?F(O,"unexpected end of the document within a single quoted scalar"):(O.position++,w(ae)||(te=O.position));F(O,"unexpected end of the stream within a single quoted scalar")}function ne(O,ee){let I,te,ae,ve=O.input.charCodeAt(O.position);if(ve!==34)return!1;for(O.kind="scalar",O.result="",O.position++,I=te=O.position;(ve=O.input.charCodeAt(O.position))!==0;){if(ve===34)return ce(O,I,O.position,!0),O.position++,!0;if(ve===92){if(ce(O,I,O.position,!0),ve=O.input.charCodeAt(++O.position),_(ve))we(O,!1,ee);else if(ve<256&&k[ve])O.result+=B[ve],O.position++;else if((ae=E(ve))>0){let G=ae,M=0;for(;G>0;G--)ve=O.input.charCodeAt(++O.position),(ae=D(ve))>=0?M=(M<<4)+ae:F(O,"expected hexadecimal character");O.result+=P(M),O.position++}else F(O,"unknown escape sequence");I=te=O.position}else _(ve)?(ce(O,I,te,!0),Ue(O,we(O,!1,ee)),I=te=O.position):O.position===O.lineStart&&Fe(O)?F(O,"unexpected end of the document within a double quoted scalar"):(O.position++,w(ve)||(te=O.position))}F(O,"unexpected end of the stream within a double quoted scalar")}function pe(O,ee){let I=!0,te,ae,ve,G=O.tag,M,K=O.anchor,X,R,L,Q,oe=Object.create(null),de,_e,ke,Ve=O.input.charCodeAt(O.position);if(Ve===91)X=93,Q=!1,M=[];else if(Ve===123)X=125,Q=!0,M={};else return!1;for(O.anchor!==null&&ie(O,O.anchor,M),Ve=O.input.charCodeAt(++O.position);Ve!==0;){if(we(O,!0,ee),Ve=O.input.charCodeAt(O.position),Ve===X)return O.position++,O.tag=G,O.anchor=K,O.kind=Q?"mapping":"sequence",O.result=M,!0;if(I?Ve===44&&F(O,"expected the node content, but found ','"):F(O,"missed comma between flow collection entries"),_e=de=ke=null,R=L=!1,Ve===63){let We=O.input.charCodeAt(O.position+1);S(We)&&(R=L=!0,O.position++,we(O,!0,ee))}te=O.line,ae=O.lineStart,ve=O.position,Dt(O,ee,a,!1,!0),_e=O.tag,de=O.result,we(O,!0,ee),Ve=O.input.charCodeAt(O.position),(L||O.line===te)&&Ve===58&&(R=!0,Ve=O.input.charCodeAt(++O.position),we(O,!0,ee),Dt(O,ee,a,!1,!0),ke=O.result),Q?Be(O,M,oe,_e,de,ke,te,ae,ve):R?M.push(Be(O,null,oe,_e,de,ke,te,ae,ve)):M.push(de),we(O,!0,ee),Ve=O.input.charCodeAt(O.position),Ve===44?(I=!0,Ve=O.input.charCodeAt(++O.position)):I=!1}F(O,"unexpected end of the stream within a flow collection")}function De(O,ee){let I,te=u,ae=!1,ve=!1,G=ee,M=0,K=!1,X,R=O.input.charCodeAt(O.position);if(R===124)I=!1;else if(R===62)I=!0;else return!1;for(O.kind="scalar",O.result="";R!==0;)if(R=O.input.charCodeAt(++O.position),R===43||R===45)u===te?te=R===43?d:c:F(O,"repeat of a chomping mode identifier");else if((X=A(R))>=0)X===0?F(O,"bad explicit indentation width of a block scalar; it cannot be less than one"):ve?F(O,"repeat of an indentation width identifier"):(G=ee+X-1,ve=!0);else break;if(w(R)){do R=O.input.charCodeAt(++O.position);while(w(R));if(R===35)do R=O.input.charCodeAt(++O.position);while(!_(R)&&R!==0)}for(;R!==0;){for(Ae(O),O.lineIndent=0,R=O.input.charCodeAt(O.position);(!ve||O.lineIndent<G)&&R===32;)O.lineIndent++,R=O.input.charCodeAt(++O.position);if(!ve&&O.lineIndent>G&&(G=O.lineIndent),_(R)){M++;continue}if(!ve&&G===0&&F(O,"missing indentation for block scalar"),O.lineIndent<G){te===d?O.result+=e.repeat(`
|
|
173
173
|
`,ae?1+M:M):te===u&&ae&&(O.result+=`
|