UNPKG

phaser4-rex-plugins

Version:
2 lines 57.4 kB
var t,e;t=void 0,e=function(){var t=function(t){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))t.length=0;else for(var e in t)delete t[e];return t};let e=class{constructor(){this.achievements={},this.obtainedStates={}}clear(){return t(this.achievements),t(this.obtainedStates),this}add(t,e,n){return this.achievements.hasOwnProperty(t)||(this.achievements[t]=[]),this.achievements[t].push({name:e,function:n}),this}getAchievements(t){return this.achievements[t]}getObtainedState(t,e){if(void 0===t)return this.obtainedStates;this.obtainedStates.hasOwnProperty(t)||(this.obtainedStates[t]={});var n=this.obtainedStates[t];return void 0===e?n:(n.hasOwnProperty(e)||(n[e]={wasObtained:!1,justObtained:!1}),n[e])}runTest(t,e){var n,i=this.getAchievements(t);if(void 0===i)return this;for(var r=0,o=i.length;r<o;r++)(n=this.getObtainedState(t,i[r].name)).justObtained=!1,n.wasObtained||i[r].function(e)&&(n.justObtained=!0,n.wasObtained=!0);return this}getTestResults(t,e){return this.runTest(t,e),this.getObtainedState(t)}forEachObtainedState(t,e,n){var i,r,o=this.getAchievements(t);if(void 0===o)return this;for(var a=0,s=o.length;a<s;a++)i=o[a].name,r=this.getObtainedState(t,i),n?e.call(n,t,i,r):e(t,i,r);return this}getLevelNames(t){for(var e in void 0===t&&(t=[]),this.achievements)t.push(e);return t}getAchievementNames(t,e){void 0===e&&(e=[]);var n=this.getAchievements(t);if(!n)return e;for(var i=0,r=n.length;i<r;i++)e.push(n[i].name);return names}loadObtainedStates(t){return this.obtainedStates=t,this}getObtainedStates(){return this.obtainedStates}setObtainedState(t,e,n){void 0===n&&(n=!0);var i=this.getObtainedState(t,e);return i.wasObtained=n,i.justObtained=n,this}clearObtainedState(t,e){return this.setObtainedState(t,e,gfalse),this}}; /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function n(t){return null==t}var i={isNothing:n,isObject:function(t){return"object"==typeof t&&null!==t},toArray:function(t){return Array.isArray(t)?t:n(t)?[]:[t]},repeat:function(t,e){var n,i="";for(n=0;n<e;n+=1)i+=t;return i},isNegativeZero:function(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t},extend:function(t,e){var n,i,r,o;if(e)for(n=0,i=(o=Object.keys(e)).length;n<i;n+=1)t[r=o[n]]=e[r];return t}};function r(t,e){var n="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(n+='in "'+t.mark.name+'" '),n+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(n+="\n\n"+t.mark.snippet),i+" "+n):i}function o(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=r(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.prototype.toString=function(t){return this.name+": "+r(this,t)};var a=o;function s(t,e,n,i,r){var o="",a="",s=Math.floor(r/2)-1;return i-e>s&&(e=i-s+(o=" ... ").length),n-i>s&&(n=i+s-(a=" ...").length),{str:o+t.slice(e,n).replace(/\t/g,"→")+a,pos:i-e+o.length}}function l(t,e){return i.repeat(" ",e-t.length)+t}var c=function(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,o=[0],a=[],c=-1;n=r.exec(t.buffer);)a.push(n.index),o.push(n.index+n[0].length),t.position<=n.index&&c<0&&(c=o.length-2);c<0&&(c=o.length-1);var u,p,h="",f=Math.min(t.line+e.linesAfter,a.length).toString().length,d=e.maxLength-(e.indent+f+3);for(u=1;u<=e.linesBefore&&!(c-u<0);u++)p=s(t.buffer,o[c-u],a[c-u],t.position-(o[c]-o[c-u]),d),h=i.repeat(" ",e.indent)+l((t.line-u+1).toString(),f)+" | "+p.str+"\n"+h;for(p=s(t.buffer,o[c],a[c],t.position,d),h+=i.repeat(" ",e.indent)+l((t.line+1).toString(),f)+" | "+p.str+"\n",h+=i.repeat("-",e.indent+f+3+p.pos)+"^\n",u=1;u<=e.linesAfter&&!(c+u>=a.length);u++)p=s(t.buffer,o[c+u],a[c+u],t.position-(o[c]-o[c+u]),d),h+=i.repeat(" ",e.indent)+l((t.line+u+1).toString(),f)+" | "+p.str+"\n";return h.replace(/\n$/,"")},u=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],p=["scalar","sequence","mapping"],h=function(t,e){if(e=e||{},Object.keys(e).forEach((function(e){if(-1===u.indexOf(e))throw new a('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')})),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=function(t){var e={};return null!==t&&Object.keys(t).forEach((function(n){t[n].forEach((function(t){e[String(t)]=n}))})),e}(e.styleAliases||null),-1===p.indexOf(this.kind))throw new a('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')};function f(t,e){var n=[];return t[e].forEach((function(t){var e=n.length;n.forEach((function(n,i){n.tag===t.tag&&n.kind===t.kind&&n.multi===t.multi&&(e=i)})),n[e]=t})),n}function d(t){return this.extend(t)}d.prototype.extend=function(t){var e=[],n=[];if(t instanceof h)n.push(t);else if(Array.isArray(t))n=n.concat(t);else{if(!t||!Array.isArray(t.implicit)&&!Array.isArray(t.explicit))throw new a("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit))}e.forEach((function(t){if(!(t instanceof h))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new a("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new a("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(t){if(!(t instanceof h))throw new a("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(e),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=f(i,"implicit"),i.compiledExplicit=f(i,"explicit"),i.compiledTypeMap=function(){var t,e,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(n.multi[t.kind].push(t),n.multi.fallback.push(t)):n[t.kind][t.tag]=n.fallback[t.tag]=t}for(t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return n}(i.compiledImplicit,i.compiledExplicit),i};var g=d,y=new h("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}}),m=new h("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}}),b=new h("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}}),v=new g({explicit:[y,m,b]}),k=new h("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)},construct:function(){return null},predicate:function(t){return null===t},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),A=new h("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)},construct:function(t){return"true"===t||"True"===t||"TRUE"===t},predicate:function(t){return"[object Boolean]"===Object.prototype.toString.call(t)},represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function w(t){return 48<=t&&t<=55}function _(t){return 48<=t&&t<=57}var x=new h("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,n,i=t.length,r=0,o=!1;if(!i)return!1;if("-"!==(e=t[r])&&"+"!==e||(e=t[++r]),"0"===e){if(r+1===i)return!0;if("b"===(e=t[++r])){for(r++;r<i;r++)if("_"!==(e=t[r])){if("0"!==e&&"1"!==e)return!1;o=!0}return o&&"_"!==e}if("x"===e){for(r++;r<i;r++)if("_"!==(e=t[r])){if(!(48<=(n=t.charCodeAt(r))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;o=!0}return o&&"_"!==e}if("o"===e){for(r++;r<i;r++)if("_"!==(e=t[r])){if(!w(t.charCodeAt(r)))return!1;o=!0}return o&&"_"!==e}}if("_"===e)return!1;for(;r<i;r++)if("_"!==(e=t[r])){if(!_(t.charCodeAt(r)))return!1;o=!0}return!(!o||"_"===e)},construct:function(t){var e,n=t,i=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(e=n[0])&&"+"!==e||("-"===e&&(i=-1),e=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===e){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(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!i.isNegativeZero(t)},represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),S=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),I=/^[-+]?[0-9]+e/,O=new h("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(t){return null!==t&&!(!S.test(t)||"_"===t[t.length-1])},construct:function(t){var e,n;return n="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:n*parseFloat(e,10)},predicate:function(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||i.isNegativeZero(t))},represent:function(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(i.isNegativeZero(t))return"-0.0";return n=t.toString(10),I.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),C=v.extend({implicit:[k,A,x,O]}),j=C,T=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),E=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]))?))?$"),N=new h("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(t){return null!==t&&(null!==T.exec(t)||null!==E.exec(t))},construct:function(t){var e,n,i,r,o,a,s,l,c=0,u=null;if(null===(e=T.exec(t))&&(e=E.exec(t)),null===e)throw new Error("Date resolve error");if(n=+e[1],i=+e[2]-1,r=+e[3],!e[4])return new Date(Date.UTC(n,i,r));if(o=+e[4],a=+e[5],s=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(u=6e4*(60*+e[10]+ +(e[11]||0)),"-"===e[9]&&(u=-u)),l=new Date(Date.UTC(n,i,r,o,a,s,c)),u&&l.setTime(l.getTime()-u),l},instanceOf:Date,represent:function(t){return t.toISOString()}}),F=new h("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(t){return"<<"===t||null===t}}),M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",L=new h("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(t){if(null===t)return!1;var e,n,i=0,r=t.length,o=M;for(n=0;n<r;n++)if(!((e=o.indexOf(t.charAt(n)))>64)){if(e<0)return!1;i+=6}return i%8==0},construct:function(t){var e,n,i=t.replace(/[\r\n=]/g,""),r=i.length,o=M,a=0,s=[];for(e=0;e<r;e++)e%4==0&&e&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|o.indexOf(i.charAt(e));return 0==(n=r%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===n?(s.push(a>>10&255),s.push(a>>2&255)):12===n&&s.push(a>>4&255),new Uint8Array(s)},predicate:function(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)},represent:function(t){var e,n,i="",r=0,o=t.length,a=M;for(e=0;e<o;e++)e%3==0&&e&&(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]),r=(r<<8)+t[e];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,P=Object.prototype.toString,D=new h("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,n,i,r,o,a=[],s=t;for(e=0,n=s.length;e<n;e+=1){if(i=s[e],o=!1,"[object Object]"!==P.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(t){return null!==t?t:[]}}),U=Object.prototype.toString,q=new h("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(t){if(null===t)return!0;var e,n,i,r,o,a=t;for(o=new Array(a.length),e=0,n=a.length;e<n;e+=1){if(i=a[e],"[object Object]"!==U.call(i))return!1;if(1!==(r=Object.keys(i)).length)return!1;o[e]=[r[0],i[r[0]]]}return!0},construct:function(t){if(null===t)return[];var e,n,i,r,o,a=t;for(o=new Array(a.length),e=0,n=a.length;e<n;e+=1)i=a[e],r=Object.keys(i),o[e]=[r[0],i[r[0]]];return o}}),R=Object.prototype.hasOwnProperty,Y=new h("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(t){if(null===t)return!0;var e,n=t;for(e in n)if(R.call(n,e)&&null!==n[e])return!1;return!0},construct:function(t){return null!==t?t:{}}}),B=j.extend({implicit:[N,F],explicit:[L,D,q,Y]}),G=Object.prototype.hasOwnProperty,K=1,W=2,H=3,V=4,Q=1,Z=2,z=3,J=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,X=/[\x85\u2028\u2029]/,tt=/[,\[\]\{\}]/,et=/^(?:!|!!|![a-z\-]+!)$/i,nt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function it(t){return Object.prototype.toString.call(t)}function rt(t){return 10===t||13===t}function ot(t){return 9===t||32===t}function at(t){return 9===t||32===t||10===t||13===t}function st(t){return 44===t||91===t||93===t||123===t||125===t}function lt(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function ct(t){return 48===t?"\0":97===t?"":98===t?"\b":116===t||9===t?"\t":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"…":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function ut(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10),56320+(t-65536&1023))}for(var pt=new Array(256),ht=new Array(256),ft=0;ft<256;ft++)pt[ft]=ct(ft)?1:0,ht[ft]=ct(ft);function dt(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||B,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function gt(t,e){var n={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return n.snippet=c(n),new a(e,n)}function yt(t,e){throw gt(t,e)}function mt(t,e){t.onWarning&&t.onWarning.call(null,gt(t,e))}var bt={YAML:function(t,e,n){var i,r,o;null!==t.version&&yt(t,"duplication of %YAML directive"),1!==n.length&&yt(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&yt(t,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&yt(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,1!==o&&2!==o&&mt(t,"unsupported YAML version of the document")},TAG:function(t,e,n){var i,r;2!==n.length&&yt(t,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],et.test(i)||yt(t,"ill-formed tag handle (first argument) of the TAG directive"),G.call(t.tagMap,i)&&yt(t,'there is a previously declared suffix for "'+i+'" tag handle'),nt.test(r)||yt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{r=decodeURIComponent(r)}catch(e){yt(t,"tag prefix is malformed: "+r)}t.tagMap[i]=r}};function vt(t,e,n,i){var r,o,a,s;if(e<n){if(s=t.input.slice(e,n),i)for(r=0,o=s.length;r<o;r+=1)9===(a=s.charCodeAt(r))||32<=a&&a<=1114111||yt(t,"expected valid JSON character");else J.test(s)&&yt(t,"the stream contains non-printable characters");t.result+=s}}function kt(t,e,n,r){var o,a,s,l;for(i.isObject(n)||yt(t,"cannot merge mappings; the provided source object is unacceptable"),s=0,l=(o=Object.keys(n)).length;s<l;s+=1)a=o[s],G.call(e,a)||(e[a]=n[a],r[a]=!0)}function At(t,e,n,i,r,o,a,s,l){var c,u;if(Array.isArray(r))for(c=0,u=(r=Array.prototype.slice.call(r)).length;c<u;c+=1)Array.isArray(r[c])&&yt(t,"nested arrays are not supported inside keys"),"object"==typeof r&&"[object Object]"===it(r[c])&&(r[c]="[object Object]");if("object"==typeof r&&"[object Object]"===it(r)&&(r="[object Object]"),r=String(r),null===e&&(e={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)kt(t,e,o[c],n);else kt(t,e,o,n);else t.json||G.call(n,r)||!G.call(e,r)||(t.line=a||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,yt(t,"duplicated mapping key")),"__proto__"===r?Object.defineProperty(e,r,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[r]=o,delete n[r];return e}function wt(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):yt(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function _t(t,e,n){for(var i=0,r=t.input.charCodeAt(t.position);0!==r;){for(;ot(r);)9===r&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),r=t.input.charCodeAt(++t.position);if(e&&35===r)do{r=t.input.charCodeAt(++t.position)}while(10!==r&&13!==r&&0!==r);if(!rt(r))break;for(wt(t),r=t.input.charCodeAt(t.position),i++,t.lineIndent=0;32===r;)t.lineIndent++,r=t.input.charCodeAt(++t.position)}return-1!==n&&0!==i&&t.lineIndent<n&&mt(t,"deficient indentation"),i}function xt(t){var e,n=t.position;return!(45!==(e=t.input.charCodeAt(n))&&46!==e||e!==t.input.charCodeAt(n+1)||e!==t.input.charCodeAt(n+2)||(n+=3,0!==(e=t.input.charCodeAt(n))&&!at(e)))}function St(t,e){1===e?t.result+=" ":e>1&&(t.result+=i.repeat("\n",e-1))}function It(t,e){var n,i,r=t.tag,o=t.anchor,a=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,yt(t,"tab characters must not be used in indentation")),45===i)&&at(t.input.charCodeAt(t.position+1));)if(s=!0,t.position++,_t(t,!0,-1)&&t.lineIndent<=e)a.push(null),i=t.input.charCodeAt(t.position);else if(n=t.line,jt(t,e,H,!1,!0),a.push(t.result),_t(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===n||t.lineIndent>e)&&0!==i)yt(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break;return!!s&&(t.tag=r,t.anchor=o,t.kind="sequence",t.result=a,!0)}function Ot(t){var e,n,i,r,o=!1,a=!1;if(33!==(r=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&yt(t,"duplication of a tag property"),60===(r=t.input.charCodeAt(++t.position))?(o=!0,r=t.input.charCodeAt(++t.position)):33===r?(a=!0,n="!!",r=t.input.charCodeAt(++t.position)):n="!",e=t.position,o){do{r=t.input.charCodeAt(++t.position)}while(0!==r&&62!==r);t.position<t.length?(i=t.input.slice(e,t.position),r=t.input.charCodeAt(++t.position)):yt(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==r&&!at(r);)33===r&&(a?yt(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),et.test(n)||yt(t,"named tag handle cannot contain such characters"),a=!0,e=t.position+1)),r=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),tt.test(i)&&yt(t,"tag suffix cannot contain flow indicator characters")}i&&!nt.test(i)&&yt(t,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(e){yt(t,"tag name is malformed: "+i)}return o?t.tag=i:G.call(t.tagMap,n)?t.tag=t.tagMap[n]+i:"!"===n?t.tag="!"+i:"!!"===n?t.tag="tag:yaml.org,2002:"+i:yt(t,'undeclared tag handle "'+n+'"'),!0}function Ct(t){var e,n;if(38!==(n=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&yt(t,"duplication of an anchor property"),n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!at(n)&&!st(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&yt(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function jt(t,e,n,r,o){var a,s,l,c,u,p,h,f,d,g=1,y=!1,m=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=s=l=V===n||H===n,r&&_t(t,!0,-1)&&(y=!0,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)),1===g)for(;Ot(t)||Ct(t);)_t(t,!0,-1)?(y=!0,l=a,t.lineIndent>e?g=1:t.lineIndent===e?g=0:t.lineIndent<e&&(g=-1)):l=!1;if(l&&(l=y||o),1!==g&&V!==n||(f=K===n||W===n?e:e+1,d=t.position-t.lineStart,1===g?l&&(It(t,d)||function(t,e,n){var i,r,o,a,s,l,c,u=t.tag,p=t.anchor,h={},f=Object.create(null),d=null,g=null,y=null,m=!1,b=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=h),c=t.input.charCodeAt(t.position);0!==c;){if(m||-1===t.firstTabInLine||(t.position=t.firstTabInLine,yt(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),o=t.line,63!==c&&58!==c||!at(i)){if(a=t.line,s=t.lineStart,l=t.position,!jt(t,n,W,!1,!0))break;if(t.line===o){for(c=t.input.charCodeAt(t.position);ot(c);)c=t.input.charCodeAt(++t.position);if(58===c)at(c=t.input.charCodeAt(++t.position))||yt(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(At(t,h,f,d,g,null,a,s,l),d=g=y=null),b=!0,m=!1,r=!1,d=t.tag,g=t.result;else{if(!b)return t.tag=u,t.anchor=p,!0;yt(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!b)return t.tag=u,t.anchor=p,!0;yt(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(m&&(At(t,h,f,d,g,null,a,s,l),d=g=y=null),b=!0,m=!0,r=!0):m?(m=!1,r=!0):yt(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,c=i;if((t.line===o||t.lineIndent>e)&&(m&&(a=t.line,s=t.lineStart,l=t.position),jt(t,e,V,!0,r)&&(m?g=t.result:y=t.result),m||(At(t,h,f,d,g,y,a,s,l),d=g=y=null),_t(t,!0,-1),c=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&0!==c)yt(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&At(t,h,f,d,g,null,a,s,l),b&&(t.tag=u,t.anchor=p,t.kind="mapping",t.result=h),b}(t,d,f))||function(t,e){var n,i,r,o,a,s,l,c,u,p,h,f,d=!0,g=t.tag,y=t.anchor,m=Object.create(null);if(91===(f=t.input.charCodeAt(t.position)))a=93,c=!1,o=[];else{if(123!==f)return!1;a=125,c=!0,o={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),f=t.input.charCodeAt(++t.position);0!==f;){if(_t(t,!0,e),(f=t.input.charCodeAt(t.position))===a)return t.position++,t.tag=g,t.anchor=y,t.kind=c?"mapping":"sequence",t.result=o,!0;d?44===f&&yt(t,"expected the node content, but found ','"):yt(t,"missed comma between flow collection entries"),h=null,s=l=!1,63===f&&at(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,_t(t,!0,e)),n=t.line,i=t.lineStart,r=t.position,jt(t,e,K,!1,!0),p=t.tag,u=t.result,_t(t,!0,e),f=t.input.charCodeAt(t.position),!l&&t.line!==n||58!==f||(s=!0,f=t.input.charCodeAt(++t.position),_t(t,!0,e),jt(t,e,K,!1,!0),h=t.result),c?At(t,o,m,p,u,h,n,i,r):s?o.push(At(t,null,m,p,u,h,n,i,r)):o.push(u),_t(t,!0,e),44===(f=t.input.charCodeAt(t.position))?(d=!0,f=t.input.charCodeAt(++t.position)):d=!1}yt(t,"unexpected end of the stream within a flow collection")}(t,f)?m=!0:(s&&function(t,e){var n,r,o,a,s,l=Q,c=!1,u=!1,p=e,h=0,f=!1;if(124===(a=t.input.charCodeAt(t.position)))r=!1;else{if(62!==a)return!1;r=!0}for(t.kind="scalar",t.result="";0!==a;)if(43===(a=t.input.charCodeAt(++t.position))||45===a)Q===l?l=43===a?z:Z:yt(t,"repeat of a chomping mode identifier");else{if(!((o=48<=(s=a)&&s<=57?s-48:-1)>=0))break;0===o?yt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?yt(t,"repeat of an indentation width identifier"):(p=e+o-1,u=!0)}if(ot(a)){do{a=t.input.charCodeAt(++t.position)}while(ot(a));if(35===a)do{a=t.input.charCodeAt(++t.position)}while(!rt(a)&&0!==a)}for(;0!==a;){for(wt(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!u||t.lineIndent<p)&&32===a;)t.lineIndent++,a=t.input.charCodeAt(++t.position);if(!u&&t.lineIndent>p&&(p=t.lineIndent),rt(a))h++;else{if(t.lineIndent<p){l===z?t.result+=i.repeat("\n",c?1+h:h):l===Q&&c&&(t.result+="\n");break}for(r?ot(a)?(f=!0,t.result+=i.repeat("\n",c?1+h:h)):f?(f=!1,t.result+=i.repeat("\n",h+1)):0===h?c&&(t.result+=" "):t.result+=i.repeat("\n",h):t.result+=i.repeat("\n",c?1+h:h),c=!0,u=!0,h=0,n=t.position;!rt(a)&&0!==a;)a=t.input.charCodeAt(++t.position);vt(t,n,t.position,!1)}}return!0}(t,f)||function(t,e){var n,i,r;if(39!==(n=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;0!==(n=t.input.charCodeAt(t.position));)if(39===n){if(vt(t,i,t.position,!0),39!==(n=t.input.charCodeAt(++t.position)))return!0;i=t.position,t.position++,r=t.position}else rt(n)?(vt(t,i,r,!0),St(t,_t(t,!1,e)),i=r=t.position):t.position===t.lineStart&&xt(t)?yt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,r=t.position);yt(t,"unexpected end of the stream within a single quoted scalar")}(t,f)||function(t,e){var n,i,r,o,a,s,l;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return vt(t,n,t.position,!0),t.position++,!0;if(92===s){if(vt(t,n,t.position,!0),rt(s=t.input.charCodeAt(++t.position)))_t(t,!1,e);else if(s<256&&pt[s])t.result+=ht[s],t.position++;else if((a=120===(l=s)?2:117===l?4:85===l?8:0)>0){for(r=a,o=0;r>0;r--)(a=lt(s=t.input.charCodeAt(++t.position)))>=0?o=(o<<4)+a:yt(t,"expected hexadecimal character");t.result+=ut(o),t.position++}else yt(t,"unknown escape sequence");n=i=t.position}else rt(s)?(vt(t,n,i,!0),St(t,_t(t,!1,e)),n=i=t.position):t.position===t.lineStart&&xt(t)?yt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}yt(t,"unexpected end of the stream within a double quoted scalar")}(t,f)?m=!0:function(t){var e,n,i;if(42!==(i=t.input.charCodeAt(t.position)))return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!at(i)&&!st(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&yt(t,"name of an alias node must contain at least one character"),n=t.input.slice(e,t.position),G.call(t.anchorMap,n)||yt(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],_t(t,!0,-1),!0}(t)?(m=!0,null===t.tag&&null===t.anchor||yt(t,"alias node should not have any properties")):function(t,e,n){var i,r,o,a,s,l,c,u,p=t.kind,h=t.result;if(at(u=t.input.charCodeAt(t.position))||st(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)&&(at(i=t.input.charCodeAt(t.position+1))||n&&st(i)))return!1;for(t.kind="scalar",t.result="",r=o=t.position,a=!1;0!==u;){if(58===u){if(at(i=t.input.charCodeAt(t.position+1))||n&&st(i))break}else if(35===u){if(at(t.input.charCodeAt(t.position-1)))break}else{if(t.position===t.lineStart&&xt(t)||n&&st(u))break;if(rt(u)){if(s=t.line,l=t.lineStart,c=t.lineIndent,_t(t,!1,-1),t.lineIndent>=e){a=!0,u=t.input.charCodeAt(t.position);continue}t.position=o,t.line=s,t.lineStart=l,t.lineIndent=c;break}}a&&(vt(t,r,o,!1),St(t,t.line-s),r=o=t.position,a=!1),ot(u)||(o=t.position+1),u=t.input.charCodeAt(++t.position)}return vt(t,r,o,!1),!!t.result||(t.kind=p,t.result=h,!1)}(t,f,K===n)&&(m=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===g&&(m=l&&It(t,d))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&yt(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),c=0,u=t.implicitTypes.length;c<u;c+=1)if((h=t.implicitTypes[c]).resolve(t.result)){t.result=h.construct(t.result),t.tag=h.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(G.call(t.typeMap[t.kind||"fallback"],t.tag))h=t.typeMap[t.kind||"fallback"][t.tag];else for(h=null,c=0,u=(p=t.typeMap.multi[t.kind||"fallback"]).length;c<u;c+=1)if(t.tag.slice(0,p[c].tag.length)===p[c].tag){h=p[c];break}h||yt(t,"unknown tag !<"+t.tag+">"),null!==t.result&&h.kind!==t.kind&&yt(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+h.kind+'", not "'+t.kind+'"'),h.resolve(t.result,t.tag)?(t.result=h.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):yt(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||m}function Tt(t){var e,n,i,r,o=t.position,a=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(r=t.input.charCodeAt(t.position))&&(_t(t,!0,-1),r=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==r));){for(a=!0,r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!at(r);)r=t.input.charCodeAt(++t.position);for(i=[],(n=t.input.slice(e,t.position)).length<1&&yt(t,"directive name must not be less than one character in length");0!==r;){for(;ot(r);)r=t.input.charCodeAt(++t.position);if(35===r){do{r=t.input.charCodeAt(++t.position)}while(0!==r&&!rt(r));break}if(rt(r))break;for(e=t.position;0!==r&&!at(r);)r=t.input.charCodeAt(++t.position);i.push(t.input.slice(e,t.position))}0!==r&&wt(t),G.call(bt,n)?bt[n](t,n,i):mt(t,'unknown document directive "'+n+'"')}_t(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,_t(t,!0,-1)):a&&yt(t,"directives end mark is expected"),jt(t,t.lineIndent-1,V,!1,!0),_t(t,!0,-1),t.checkLineBreaks&&X.test(t.input.slice(o,t.position))&&mt(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&xt(t)?46===t.input.charCodeAt(t.position)&&(t.position+=3,_t(t,!0,-1)):t.position<t.length-1&&yt(t,"end of the stream or a document separator is expected")}function Et(t,e){e=e||{},0!==(t=String(t)).length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var n=new dt(t,e),i=t.indexOf("\0");for(-1!==i&&(n.position=i,yt(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;)Tt(n);return n.documents}var Nt={loadAll:function(t,e,n){null!==e&&"object"==typeof e&&void 0===n&&(n=e,e=null);var i=Et(t,n);if("function"!=typeof e)return i;for(var r=0,o=i.length;r<o;r+=1)e(i[r])},load:function(t,e){var n=Et(t,e);if(0!==n.length){if(1===n.length)return n[0];throw new a("expected a single document in the stream, but found more")}}},Ft=Object.prototype.toString,Mt=Object.prototype.hasOwnProperty,Lt=65279,$t=9,Pt=10,Dt=13,Ut=32,qt=33,Rt=34,Yt=35,Bt=37,Gt=38,Kt=39,Wt=42,Ht=44,Vt=45,Qt=58,Zt=61,zt=62,Jt=63,Xt=64,te=91,ee=93,ne=96,ie=123,re=124,oe=125,ae={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"},se=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],le=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ce(t){var e,n,r;if(e=t.toString(16).toUpperCase(),t<=255)n="x",r=2;else if(t<=65535)n="u",r=4;else{if(!(t<=4294967295))throw new a("code point within a string may not be greater than 0xFFFFFFFF");n="U",r=8}return"\\"+n+i.repeat("0",r-e.length)+e}var ue=1,pe=2;function he(t){this.schema=t.schema||B,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=i.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=function(t,e){var n,i,r,o,a,s,l;if(null===e)return{};for(n={},r=0,o=(i=Object.keys(e)).length;r<o;r+=1)a=i[r],s=String(e[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=t.compiledTypeMap.fallback[a])&&Mt.call(l.styleAliases,s)&&(s=l.styleAliases[s]),n[a]=s;return n}(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?pe:ue,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function fe(t,e){for(var n,r=i.repeat(" ",e),o=0,a=-1,s="",l=t.length;o<l;)-1===(a=t.indexOf("\n",o))?(n=t.slice(o),o=l):(n=t.slice(o,a+1),o=a+1),n.length&&"\n"!==n&&(s+=r),s+=n;return s}function de(t,e){return"\n"+i.repeat(" ",t.indent*e)}function ge(t){return t===Ut||t===$t}function ye(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&t!==Lt||65536<=t&&t<=1114111}function me(t){return ye(t)&&t!==Lt&&t!==Dt&&t!==Pt}function be(t,e,n){var i=me(t),r=i&&!ge(t);return(n?i:i&&t!==Ht&&t!==te&&t!==ee&&t!==ie&&t!==oe)&&t!==Yt&&!(e===Qt&&!r)||me(e)&&!ge(e)&&t===Yt||e===Qt&&r}function ve(t,e){var n,i=t.charCodeAt(e);return i>=55296&&i<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1))>=56320&&n<=57343?1024*(i-55296)+n-56320+65536:i}function ke(t){return/^\n* /.test(t)}var Ae=1,we=2,_e=3,xe=4,Se=5;function Ie(t,e,n,i,r,o,a,s){var l,c,u=0,p=null,h=!1,f=!1,d=-1!==i,g=-1,y=ye(c=ve(t,0))&&c!==Lt&&!ge(c)&&c!==Vt&&c!==Jt&&c!==Qt&&c!==Ht&&c!==te&&c!==ee&&c!==ie&&c!==oe&&c!==Yt&&c!==Gt&&c!==Wt&&c!==qt&&c!==re&&c!==Zt&&c!==zt&&c!==Kt&&c!==Rt&&c!==Bt&&c!==Xt&&c!==ne&&function(t){return!ge(t)&&t!==Qt}(ve(t,t.length-1));if(e||a)for(l=0;l<t.length;u>=65536?l+=2:l++){if(!ye(u=ve(t,l)))return Se;y=y&&be(u,p,s),p=u}else{for(l=0;l<t.length;u>=65536?l+=2:l++){if((u=ve(t,l))===Pt)h=!0,d&&(f=f||l-g-1>i&&" "!==t[g+1],g=l);else if(!ye(u))return Se;y=y&&be(u,p,s),p=u}f=f||d&&l-g-1>i&&" "!==t[g+1]}return h||f?n>9&&ke(t)?Se:a?o===pe?Se:we:f?xe:_e:!y||a||r(t)?o===pe?Se:we:Ae}function Oe(t,e,n,i,r){t.dump=function(){if(0===e.length)return t.quotingType===pe?'""':"''";if(!t.noCompatMode&&(-1!==se.indexOf(e)||le.test(e)))return t.quotingType===pe?'"'+e+'"':"'"+e+"'";var o=t.indent*Math.max(1,n),s=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o),l=i||t.flowLevel>-1&&n>=t.flowLevel;switch(Ie(e,l,t.indent,s,(function(e){return function(t,e){var n,i;for(n=0,i=t.implicitTypes.length;n<i;n+=1)if(t.implicitTypes[n].resolve(e))return!0;return!1}(t,e)}),t.quotingType,t.forceQuotes&&!i,r)){case Ae:return e;case we:return"'"+e.replace(/'/g,"''")+"'";case _e:return"|"+Ce(e,t.indent)+je(fe(e,o));case xe:return">"+Ce(e,t.indent)+je(fe(function(t,e){for(var n,i,r,o=/(\n+)([^\n]*)/g,a=(r=-1!==(r=t.indexOf("\n"))?r:t.length,o.lastIndex=r,Te(t.slice(0,r),e)),s="\n"===t[0]||" "===t[0];i=o.exec(t);){var l=i[1],c=i[2];n=" "===c[0],a+=l+(s||n||""===c?"":"\n")+Te(c,e),s=n}return a}(e,s),o));case Se:return'"'+function(t){for(var e,n="",i=0,r=0;r<t.length;i>=65536?r+=2:r++)i=ve(t,r),!(e=ae[i])&&ye(i)?(n+=t[r],i>=65536&&(n+=t[r+1])):n+=e||ce(i);return n}(e)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function Ce(t,e){var n=ke(t)?String(e):"",i="\n"===t[t.length-1];return n+(!i||"\n"!==t[t.length-2]&&"\n"!==t?i?"":"-":"+")+"\n"}function je(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function Te(t,e){if(""===t||" "===t[0])return t;for(var n,i,r=/ [^ ]/g,o=0,a=0,s=0,l="";n=r.exec(t);)(s=n.index)-o>e&&(i=a>o?a:s,l+="\n"+t.slice(o,i),o=i+1),a=s;return l+="\n",t.length-o>e&&a>o?l+=t.slice(o,a)+"\n"+t.slice(a+1):l+=t.slice(o),l.slice(1)}function Ee(t,e,n,i){var r,o,a,s="",l=t.tag;for(r=0,o=n.length;r<o;r+=1)a=n[r],t.replacer&&(a=t.replacer.call(n,String(r),a)),(Fe(t,e+1,a,!0,!0,!1,!0)||void 0===a&&Fe(t,e+1,null,!0,!0,!1,!0))&&(i&&""===s||(s+=de(t,e)),t.dump&&Pt===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=l,t.dump=s||"[]"}function Ne(t,e,n){var i,r,o,s,l,c;for(o=0,s=(r=n?t.explicitTypes:t.implicitTypes).length;o<s;o+=1)if(((l=r[o]).instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof e&&e instanceof l.instanceOf)&&(!l.predicate||l.predicate(e))){if(n?l.multi&&l.representName?t.tag=l.representName(e):t.tag=l.tag:t.tag="?",l.represent){if(c=t.styleMap[l.tag]||l.defaultStyle,"[object Function]"===Ft.call(l.represent))i=l.represent(e,c);else{if(!Mt.call(l.represent,c))throw new a("!<"+l.tag+'> tag resolver accepts not "'+c+'" style');i=l.represent[c](e,c)}t.dump=i}return!0}return!1}function Fe(t,e,n,i,r,o,s){t.tag=null,t.dump=n,Ne(t,n,!1)||Ne(t,n,!0);var l,c=Ft.call(t.dump),u=i;i&&(i=t.flowLevel<0||t.flowLevel>e);var p,h,f="[object Object]"===c||"[object Array]"===c;if(f&&(h=-1!==(p=t.duplicates.indexOf(n))),(null!==t.tag&&"?"!==t.tag||h||2!==t.indent&&e>0)&&(r=!1),h&&t.usedDuplicates[p])t.dump="*ref_"+p;else{if(f&&h&&!t.usedDuplicates[p]&&(t.usedDuplicates[p]=!0),"[object Object]"===c)i&&0!==Object.keys(t.dump).length?(function(t,e,n,i){var r,o,s,l,c,u,p="",h=t.tag,f=Object.keys(n);if(!0===t.sortKeys)f.sort();else if("function"==typeof t.sortKeys)f.sort(t.sortKeys);else if(t.sortKeys)throw new a("sortKeys must be a boolean or a function");for(r=0,o=f.length;r<o;r+=1)u="",i&&""===p||(u+=de(t,e)),l=n[s=f[r]],t.replacer&&(l=t.replacer.call(n,s,l)),Fe(t,e+1,s,!0,!0,!0)&&((c=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&Pt===t.dump.charCodeAt(0)?u+="?":u+="? "),u+=t.dump,c&&(u+=de(t,e)),Fe(t,e+1,l,!0,c)&&(t.dump&&Pt===t.dump.charCodeAt(0)?u+=":":u+=": ",p+=u+=t.dump));t.tag=h,t.dump=p||"{}"}(t,e,t.dump,r),h&&(t.dump="&ref_"+p+t.dump)):(function(t,e,n){var i,r,o,a,s,l="",c=t.tag,u=Object.keys(n);for(i=0,r=u.length;i<r;i+=1)s="",""!==l&&(s+=", "),t.condenseFlow&&(s+='"'),a=n[o=u[i]],t.replacer&&(a=t.replacer.call(n,o,a)),Fe(t,e,o,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Fe(t,e,a,!1,!1)&&(l+=s+=t.dump));t.tag=c,t.dump="{"+l+"}"}(t,e,t.dump),h&&(t.dump="&ref_"+p+" "+t.dump));else if("[object Array]"===c)i&&0!==t.dump.length?(t.noArrayIndent&&!s&&e>0?Ee(t,e-1,t.dump,r):Ee(t,e,t.dump,r),h&&(t.dump="&ref_"+p+t.dump)):(function(t,e,n){var i,r,o,a="",s=t.tag;for(i=0,r=n.length;i<r;i+=1)o=n[i],t.replacer&&(o=t.replacer.call(n,String(i),o)),(Fe(t,e,o,!1,!1)||void 0===o&&Fe(t,e,null,!1,!1))&&(""!==a&&(a+=","+(t.condenseFlow?"":" ")),a+=t.dump);t.tag=s,t.dump="["+a+"]"}(t,e,t.dump),h&&(t.dump="&ref_"+p+" "+t.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(t.skipInvalid)return!1;throw new a("unacceptable kind of an object to dump "+c)}"?"!==t.tag&&Oe(t,t.dump,e,o,u)}null!==t.tag&&"?"!==t.tag&&(l=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),l="!"===t.tag[0]?"!"+l:"tag:yaml.org,2002:"===l.slice(0,18)?"!!"+l.slice(18):"!<"+l+">",t.dump=l+" "+t.dump)}return!0}function Me(t,e){var n,i,r=[],o=[];for(Le(t,r,o),n=0,i=o.length;n<i;n+=1)e.duplicates.push(r[o[n]]);e.usedDuplicates=new Array(i)}function Le(t,e,n){var i,r,o;if(null!==t&&"object"==typeof t)if(-1!==(r=e.indexOf(t)))-1===n.indexOf(r)&&n.push(r);else if(e.push(t),Array.isArray(t))for(r=0,o=t.length;r<o;r+=1)Le(t[r],e,n);else for(r=0,o=(i=Object.keys(t)).length;r<o;r+=1)Le(t[i[r]],e,n)}function $e(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var Pe={Type:h,Schema:g,FAILSAFE_SCHEMA:v,JSON_SCHEMA:C,CORE_SCHEMA:j,DEFAULT_SCHEMA:B,load:Nt.load,loadAll:Nt.loadAll,dump:function(t,e){var n=new he(e=e||{});n.noRefs||Me(t,n);var i=t;return n.replacer&&(i=n.replacer.call({"":i},"",i)),Fe(n,0,i,!0,!0)?n.dump+"\n":""},YAMLException:a,types:{binary:L,float:O,map:b,null:k,pairs:q,set:Y,timestamp:N,bool:A,int:x,merge:F,omap:D,seq:m,str:y},safeLoad:$e("safeLoad","load"),safeLoadAll:$e("safeLoadAll","loadAll"),safeDump:$e("safeDump","dump")};function De(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ue(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var qe={};!function(t){var e=function(){var t=function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n},e=[1,11],n=[1,3],i=[1,4],r=[1,5],o=[1,6],a=[1,8],s=[1,9],l=[1,10],c=[1,13],u=[1,14],p=[1,15],h=[1,16],f=[1,17],d=[1,18],g=[1,19],y=[1,20],m=[1,21],b=[1,22],v=[1,23],k=[1,24],A=[1,25],w=[1,26],_=[5,7,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,30],x=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30],S=[5,7,12,13,14,19,20,21,22,23,24,25,26,28,30],I=[5,7,12,13,14,15,16,17,19,20,21,22,23,24,25,26,28,30],O=[5,7,12,19,20,21,22,23,24,25,26,28,30],C=[5,7,12,25,26,28,30],j=[7,28],T={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,expression_list:6,",":7,dot_name:8,".":9,NAME:10,"[":11,"]":12,"+":13,"-":14,"*":15,"/":16,"%":17,"^":18,">":19,"<":20,"==":21,"!=":22,">=":23,"<=":24,"||":25,"&&":26,"(":27,")":28,"?":29,":":30,true:31,false:32,QUOTED_STRING:33,NUMBER:34,HEXNUMBER:35,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",7:",",9:".",10:"NAME",11:"[",12:"]",13:"+",14:"-",15:"*",16:"/",17:"%",18:"^",19:">",20:"<",21:"==",22:"!=",23:">=",24:"<=",25:"||",26:"&&",27:"(",28:")",29:"?",30:":",31:"true",32:"false",33:"QUOTED_STRING",34:"NUMBER",35:"HEXNUMBER"},productions_:[0,[3,2],[6,3],[6,1],[8,3],[8,4],[8,1],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,3],[4,7],[4,1],[4,1],[4,1],[4,3],[4,4],[4,1],[4,1],[4,1]],performAction:function(t,e,n,i,r,o,a){var s=o.length-1;switch(r){case 1:var l=o[s-1];return"function"==typeof l?l:function(t){return l};case 2:case 4:this.$=o[s-2].concat([o[s]]);break;case 3:case 6:this.$=[o[s]];break;case 5:this.$=o[s-3].concat([o[s-1]]);break;case 7:this.$=function(t){return F(i.parser,t,"_add",[o[s-2],o[s]])};break;case 8:this.$=function(t){return F(i.parser,t,"_subtract",[o[s-2],o[s]])};break;case 9:this.$=function(t){return F(i.parser,t,"_multiply",[o[s-2],o[s]])};break;case 10:this.$=function(t){return F(i.parser,t,"_divide",[o[s-2],o[s]])};break;case 11:this.$=function(t){return F(i.parser,t,"_mod",[o[s-2],o[s]])};break;case 12:this.$=function(t){return F(i.parser,t,"_pow",[o[s-2],o[s]])};break;case 13:this.$=function(t){return 1==F(i.parser,t,"_greaterThen",[o[s-2],o[s]])};break;case 14:this.$=function(t){return 1==F(i.parser,t,"_lessThen",[o[s-2],o[s]])};break;case 15:this.$=function(t){return 1==F(i.parser,t,"_equalTo",[o[s-2],o[s]])};break;case 16:this.$=function(t){return 0==F(i.parser,t,"_equalTo",[o[s-2],o[s]])};break;case 17:this.$=function(t){return 0==F(i.parser,t,"_lessThen",[o[s-2],o[s]])};break;case 18:this.$=function(t){return 0==F(i.parser,t,"_greaterThen",[o[s-2],o[s]])};break;case 19:this.$=function(t){return 1==F(i.parser,t,"_or",[o[s-2],o[s]])};break;case 20:this.$=function(t){return 1==F(i.parser,t,"_and",[o[s-2],o[s]])};break;case 21:this.$=function(t){return-E(o[s],t)};break;case 22:this.$=function(t){return E(o[s-1],t)};break;case 23:this.$=function(t){return E(o[s-5],t)?E(o[s-2],t):E(o[s],t)};break;case 24:this.$=!0;break;case 25:this.$=!1;break;case 26:this.$=function(t){return i.parser.getDotProperty(t,N(o[s],t),0)};break;case 27:this.$=function(t){return M(i.parser,t,N(o[s-2],t),void 0,!0)};break;case 28:this.$=function(t){return M(i.parser,t,N(o[s-3],t),o[s-1],!0)};break;case 29:this.$=t.slice(1,-1);break;case 30:this.$=Number(t);break;case 31:this.$=parseInt(t,16)}},table:[{3:1,4:2,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{1:[3]},{5:[1,12],13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k,25:A,26:w},{4:27,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:28,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t(_,[2,24]),t(_,[2,25]),t(_,[2,26],{9:[1,30],11:[1,31],27:[1,29]}),t(_,[2,29]),t(_,[2,30]),t(_,[2,31]),t(x,[2,6]),{1:[2,1]},{4:32,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:33,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:34,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:35,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:36,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:37,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:38,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:39,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:40,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:41,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:42,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:43,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:44,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},{4:45,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t(_,[2,21]),{13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k,25:A,26:w,28:[1,46]},{4:49,6:48,8:7,10:e,14:n,27:i,28:[1,47],31:r,32:o,33:a,34:s,35:l},{10:[1,50]},{4:51,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t(S,[2,7],{15:p,16:h,17:f,18:d}),t(S,[2,8],{15:p,16:h,17:f,18:d}),t(I,[2,9],{18:d}),t(I,[2,10],{18:d}),t([5,7,12,13,14,17,19,20,21,22,23,24,25,26,28,30],[2,11],{15:p,16:h,18:d}),t(_,[2,12]),t(O,[2,13],{13:c,14:u,15:p,16:h,17:f,18:d}),t(O,[2,14],{13:c,14:u,15:p,16:h,17:f,18:d}),t(O,[2,15],{13:c,14:u,15:p,16:h,17:f,18:d}),t(O,[2,16],{13:c,14:u,15:p,16:h,17:f,18:d}),t(O,[2,17],{13:c,14:u,15:p,16:h,17:f,18:d}),t(O,[2,18],{13:c,14:u,15:p,16:h,17:f,18:d}),t(C,[2,19],{13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k}),t(C,[2,20],{13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k}),t(_,[2,22],{29:[1,52]}),t(_,[2,27]),{7:[1,54],28:[1,53]},t(j,[2,3],{13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k,25:A,26:w}),t(x,[2,4]),{12:[1,55],13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k,25:A,26:w},{4:56,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t(_,[2,28]),{4:57,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t(x,[2,5]),{13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k,25:A,26:w,30:[1,58]},t(j,[2,2],{13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k,25:A,26:w}),{4:59,8:7,10:e,14:n,27:i,31:r,32:o,33:a,34:s,35:l},t([5,7,12,28,30],[2,23],{13:c,14:u,15:p,16:h,17:f,18:d,19:g,20:y,21:m,22:b,23:v,24:k,25:A,26:w})],defaultActions:{12:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],i=[null],r=[],o=this.table,a="",s=0,l=0,c=r.slice.call(arguments,1),u=Object.create(this.lexer),p={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(p.yy[h]=this.yy[h]);u.setInput(t,p.yy),p.yy.lexer=u,p.yy.parser=this,void 0===u.yylloc&&(u.yylloc={});var f=u.yylloc;r.push(f);var d=u.options&&u.options.ranges;"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var g,y,m,b,v,k,A,w,_,x={};;){if(y=n[n.length-1],this.defaultActions[y]?m=this.defaultActions[y]:(null==g&&(_=void 0,"number"!=typeof(_=u.lex()||1)&&(_=e.symbols_[_]||_),g=_),m=o[y]&&o[y][g]),void 0===m||!m.length||!m[0]){var S="";for(v in w=[],o[y])this.terminals_[v]&&v>2&&w.push("'"+this.terminals_[v]+"'");S=u.showPosition?"Parse error on line "+(s+1)+":\n"+u.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[g]||g)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==g?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(S,{text:u.match,token:this.terminals_[g]||g,line:u.yylineno,loc:f,expected:w})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+y+", token: "+g);switch(m[0]){case 1:n.push(g),i.push(u.yytext),r.push(u.yylloc),n.push(m[1]),g=null,l=u.yyleng,a=u.yytext,s=u.yylineno,f=u.yylloc;break;case 2:if(k=this.productions_[m[1]][1],x.$=i[i.length-k],x._$={first_line:r[r.length-(k||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(k||1)].first_column,last_column:r[r.length-1].last_column},d&&(x._$.range=[r[r.length-(k||1)].range[0],r[r.length-1].range[1]]),void 0!==(b=this.performAction.apply(x,[a,l,s,p.yy,m[1],i,r].concat(c))))return b;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),r=r.slice(0,-1*k)),n.push(this.productions_[m[1]][0]),i.push(x.$),r.push(x._$),A=o[n[n.length-2]][n[n.length-1]],n.push(A);break;case 3:return!0}}return!0}};function E(t,e){return"function"==typeof t?t(e):t}function N(t,e){return t&&(t=t.map((function(t){return E(t,e)}))),t}function F(t,e,n,i){return t[n].apply(t,N(i,e))}function M(t,e,n,i,r){var o,a,s;if((o="string"==typeof n?r?n.split("."):[n]:n).length>1){var l=o.pop();a=(s=t.getDotProperty(e,o))[l]}else a=t.getProperty(e,n),s=t;return null==a&&(a=t.getProperty(e,"defaultHandler"),s=t),a.apply(s,N(i,e))}var L=function(){var t={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options