diff --git a/demo/js/js-yaml.js b/demo/js/js-yaml.js index daac5871..18397716 100644 --- a/demo/js/js-yaml.js +++ b/demo/js/js-yaml.js @@ -81,6 +81,13 @@ if (!Object.getOwnPropertyNames) { return names; }; } + + +if (!Object.create) { + Object.create = function () { + return {}; + } +} var jsyaml = window.jsyaml = (function () { var require = function (file, cwd) { var resolved = require.resolve(file, cwd || '/'); diff --git a/js-yaml.js b/js-yaml.js index daac5871..18397716 100644 --- a/js-yaml.js +++ b/js-yaml.js @@ -81,6 +81,13 @@ if (!Object.getOwnPropertyNames) { return names; }; } + + +if (!Object.create) { + Object.create = function () { + return {}; + } +} var jsyaml = window.jsyaml = (function () { var require = function (file, cwd) { var resolved = require.resolve(file, cwd || '/'); diff --git a/js-yaml.min.js b/js-yaml.min.js index 4081004a..8e6f0964 100644 --- a/js-yaml.min.js +++ b/js-yaml.min.js @@ -19,6 +19,6 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */// Extend prototypes and native objects for oldIEs, Safaies and Operas -Array.isArray||(Array.isArray=function(t){return Object.prototype.toString.call(t)==="[object Array]"}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t;for(t=0;t=0;i--){if(t[i]==="node_modules")continue;var s=t.slice(0,i+1).join("/")+"/node_modules";n.push(s)}return n}n||(n="/");if(e._core[t])return t;var r=e.modules.path();n=r.resolve("/",n);var i=n||"/";if(t.match(/^(?:\.\.?\/|\/)/)){var s=u(r.resolve(i,t))||a(r.resolve(i,t));if(s)return s}var o=f(t,i);if(o)return o;throw new Error("Cannot find module '"+t+"'")}}(),e.alias=function(t,n){var r=e.modules.path(),i=null;try{i=e.resolve(t+"/package.json","/")}catch(s){i=e.resolve(t,"/")}var o=r.dirname(i),u=(Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t})(e.modules);for(var a=0;a=0;r--){var i=e[r];i=="."?e.splice(r,1):i===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var a=/^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;n.resolve=function(){var e="",t=!1;for(var n=arguments.length;n>=-1&&!t;n--){var r=n>=0?arguments[n]:s.cwd();if(typeof r!="string"||!r)continue;e=r+"/"+e,t=r.charAt(0)==="/"}return e=u(o(e.split("/"),function(e){return!!e}),!t).join("/"),(t?"/":"")+e||"."},n.normalize=function(e){var t=e.charAt(0)==="/",n=e.slice(-1)==="/";return e=u(o(e.split("/"),function(e){return!!e}),!t).join("/"),!e&&!t&&(e="."),e&&n&&(e+="/"),(t?"/":"")+e},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(o(e,function(e,t){return e&&typeof e=="string"}).join("/"))},n.dirname=function(e){var t=a.exec(e)[1]||"",n=!1;return t?t.length===1||n&&t.length<=3&&t.charAt(1)===":"?t:t.substring(0,t.length-1):"."},n.basename=function(e,t){var n=a.exec(e)[2]||"";return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return a.exec(e)[3]||""}}),e.define("__browserify_process",function(e,t,n,r,i,s){var s=t.exports={};s.nextTick=function(){var e=[],t=typeof window!="undefined"&&window.postMessage&&window.addEventListener;return t&&window.addEventListener("message",function(t){if(t.source===window&&t.data==="browserify-tick"){t.stopPropagation();if(e.length>0){var n=e.shift();n()}}},!0),function(n){t?(e.push(n),window.postMessage("browserify-tick","*")):setTimeout(n,0)}}(),s.title="browser",s.browser=!0,s.env={},s.argv=[],s.binding=function(t){if(t==="evals")return e("vm");throw new Error("No such module. (Possibly not yet loaded)")},function(){var t="/",n;s.cwd=function(){return t},s.chdir=function(r){n||(n=e("path")),t=n.resolve(r,t)}}()}),e.define("/package.json",function(e,t,n,r,i,s){t.exports={main:"./index.js"}}),e.define("/index.js",function(e,t,n,r,i,s){t.exports=e("./lib/js-yaml.js")}),e.define("/lib/js-yaml.js",function(e,t,n,r,i,s){"use strict";var o=e("fs"),u=e("./js-yaml/loader"),a=t.exports={};a.scan=function(t,n,r){r=r||u.SafeLoader;var i=new r(t);while(i.checkToken())n(i.getToken())},a.compose=function(t,n){n=n||u.SafeLoader;var r=new n(t);return r.getSingleNode()},a.load=function(t,n){n=n||u.Loader;var r=new n(t);return r.getSingleData()},a.loadAll=function(t,n,r){r=r||u.Loader;var i=new r(t);while(i.checkData())n(i.getData())},a.safeLoad=function(t){return a.load(t,u.SafeLoader)},a.safeLoadAll=function(t,n){a.loadAll(t,n,u.SafeLoader)},a.addConstructor=function(t,n,r){(r||u.Loader).addConstructor(t,n)},function(){var t=function(e,t){var n=o.openSync(t,"r");e.exports=a.load(n),o.closeSync(n)};undefined!==e.extensions&&(e.extensions[".yml"]=t,e.extensions[".yaml"]=t)}()}),e.define("fs",function(e,t,n,r,i,s){}),e.define("/lib/js-yaml/loader.js",function(e,t,n,r,i,s){"use strict";function p(e){u.Reader.call(this,e),a.Scanner.call(this),f.Parser.call(this),l.Composer.call(this),h.BaseConstructor.call(this),c.BaseResolver.call(this)}function d(e){u.Reader.call(this,e),a.Scanner.call(this),f.Parser.call(this),l.Composer.call(this),h.SafeConstructor.call(this),c.Resolver.call(this)}function v(e){u.Reader.call(this,e),a.Scanner.call(this),f.Parser.call(this),l.Composer.call(this),h.Constructor.call(this),c.Resolver.call(this)}var o=e("./common"),u=e("./reader"),a=e("./scanner"),f=e("./parser"),l=e("./composer"),c=e("./resolver"),h=e("./constructor");o.extend(p.prototype,u.Reader.prototype,a.Scanner.prototype,f.Parser.prototype,l.Composer.prototype,h.BaseConstructor.prototype,c.BaseResolver.prototype),o.extend(d.prototype,u.Reader.prototype,a.Scanner.prototype,f.Parser.prototype,l.Composer.prototype,h.SafeConstructor.prototype,c.Resolver.prototype),o.extend(v.prototype,u.Reader.prototype,a.Scanner.prototype,f.Parser.prototype,l.Composer.prototype,h.Constructor.prototype,c.Resolver.prototype),p.addConstructor=function(e,t){h.BaseConstructor.addConstructor(e,t)},d.addConstructor=function(e,t){h.SafeConstructor.addConstructor(e,t)},v.addConstructor=function(e,t){h.Constructor.addConstructor(e,t)},t.exports.BaseLoader=p,t.exports.SafeLoader=d,t.exports.Loader=v}),e.define("/lib/js-yaml/common.js",function(e,t,n,r,i,s){"use strict";var o=t.exports={};o.extend=function(t){var n,r,i,s=[];t=t||{},r=arguments.length,!!arguments[r-1]&&!!arguments[r-1].except&&(s=arguments[r-1].except,r-=1);for(n=1;n=8&&(a-=8,e!==r.charAt(o)&&u.push(f>>a&255),f&=(1<",this.rawBuffer=e,this.update(1)):(this.name="",this.stream=e,this.eof=!1,this.updateRaw(),this.update(1))}var o=e("fs"),u=e("./common"),a=e("./errors"),f=new RegExp("[^ \n\r -~… -퟿-�]"),l=undefined==="a"[0]?function(e,t){return e.charAt(t)}:function(e,t){return e[t]};u.inherits(c,a.YAMLError),h.prototype.peek=function(t){var n;return t=+t||0,n=l(this.buffer,this.pointer+t),undefined===n&&(this.update(t+1),n=l(this.buffer,this.pointer+t)),n},h.prototype.prefix=function(t){return t=+t||1,this.pointer+t>=this.buffer.length&&this.update(t),this.buffer.slice(this.pointer,this.pointer+t)},h.prototype.forward=function(t){var n;t=undefined!==t?+t:1,this.pointer+t+1>=this.buffer.length&&this.update(t+1);while(t)n=this.buffer[this.pointer],this.pointer+=1,this.index+=1,0<="\n…\u2028\u2029".indexOf(n)||"\r"===n&&"\n"!==this.buffer[this.pointer]?(this.line+=1,this.column=0):n!==""&&(this.column+=1),t-=1},h.prototype.getMark=function(){return null===this.stream?new a.Mark(this.name,this.index,this.line,this.column,this.buffer,this.pointer):new a.Mark(this.name,this.index,this.line,this.column,null,null)},h.prototype.checkPrintable=function(t){var n=t.toString().match(f),r;if(n)throw r=this.index+this.buffer.length-this.pointer+n.index,new c(this.name,r,n[0],"unicode","special characters are not allowed")},h.prototype.update=function(t){var n;if(null===this.rawBuffer)return;this.buffer=this.buffer.slice(this.pointer),this.pointer=0;while(this.buffer.length0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer[r-1])){r-=1;if(this.pointer-r>t/2-1){n=" ... ",r+=5;break}}i="",s=this.pointer;while(st/2-1){i=" ... ",s-=5;break}}return o=this.buffer.slice(r,s),u(" ",e)+n+o+i+"\n"+u(" ",e+this.pointer-r+n.length)+"^"},a.prototype.toString=function(){var e=this.getSnippet(),t;return t=' in "'+this.name+'", line '+(this.line+1)+", column "+(this.column+1),e&&(t+=":\n"+e),t},o.inherits(f,Error),o.inherits(h,f),t.exports.Mark=a,t.exports.YAMLError=f,t.exports.MarkedYAMLError=h}),e.define("/lib/js-yaml/scanner.js",function(e,t,n,r,i,s){"use strict";function h(){u.MarkedYAMLError.apply(this,arguments),this.name="ScannerError"}function p(e,t,n,r,i,s){this.tokenNumber=e,this.required=t,this.index=n,this.line=r,this.column=i,this.mark=s}function d(){this.done=!1,this.flowLevel=0,this.tokens=[],this.fetchStreamStart(),this.tokensTaken=0,this.indent=-1,this.indents=[],this.allowSimpleKey=!0,this.possibleSimpleKeys={}}var o=e("./common"),u=e("./errors"),a=e("./tokens"),f={0:"\0",a:"",b:"\b",t:" "," ":" ",n:"\n",v:" ",f:"\f",r:"\r",e:""," ":" ",'"':'"',"\\":"\\",N:"…",_:" ",L:"\u2028",P:"\u2029"},l={x:2,u:4,U:8},c=function(e,t){var n=[];undefined===t&&(t=e,e=0);while(0"&&!this.flowLevel)return this.fetchFolded();if(t==="'")return this.fetchSingle();if(t==='"')return this.fetchDouble();if(this.checkPlain())return this.fetchPlain();throw new h("while scanning for the next token",null,"found character "+t+" that cannot start any token",this.getMark())},d.prototype.nextPossibleSimpleKey=function(){var t=null;return o.each(this.possibleSimpleKeys,function(e){if(null===t||e.tokenNumbert)n=this.getMark(),this.indent=this.indents.pop(),this.tokens.push(new a.BlockEndToken(n,n))},d.prototype.addIndent=function(t){return this.indent")},d.prototype.fetchBlockScalar=function(t){this.allowSimpleKey=!0,this.removePossibleSimpleKey(),this.tokens.push(this.scanBlockScalar(t))},d.prototype.fetchSingle=function(){this.fetchFlowScalar("'")},d.prototype.fetchDouble=function(){this.fetchFlowScalar('"')},d.prototype.fetchFlowScalar=function(t){this.savePossibleSimpleKey(),this.allowSimpleKey=!1,this.tokens.push(this.scanFlowScalar(t))},d.prototype.fetchPlain=function(){this.savePossibleSimpleKey(),this.allowSimpleKey=!1,this.tokens.push(this.scanPlain())},d.prototype.checkDirective=function(){return this.column===0},d.prototype.checkDocumentStart=function(){return+this.column===0&&this.prefix(3)==="---"?0<="\0 \r\n…\u2028\u2029".indexOf(this.peek(3)):!1},d.prototype.checkDocumentEnd=function(){return+this.column===0&&this.prefix(3)==="..."?0<="\0 \r\n…\u2028\u2029".indexOf(this.peek(3)):!1},d.prototype.checkBlockEntry=function(){return 0<="\0 \r\n…\u2028\u2029".indexOf(this.peek(1))},d.prototype.checkKey=function(){return this.flowLevel?!0:0<="\0 \r\n…\u2028\u2029".indexOf(this.peek(1))},d.prototype.checkValue=function(){return this.flowLevel?!0:0<="\0 \r\n…\u2028\u2029".indexOf(this.peek(1))},d.prototype.checkPlain=function(){var t=this.peek();return-1==="\0 \r\n…\u2028\u2029-?:,[]{}#&*!|>'\"%@`".indexOf(t)||-1==="\0 \r\n…\u2028\u2029".indexOf(this.peek(1))&&(t==="-"||!this.flowLevel&&0<="?:".indexOf(t))},d.prototype.scanToNextToken=function(){var t=!1;this.index===0&&this.peek()===""&&this.forward();while(!t){while(this.peek()===" ")this.forward();if(this.peek()==="#")while(-1==="\0\r\n…\u2028\u2029".indexOf(this.peek()))this.forward();this.scanLineBreak()?this.flowLevel||(this.allowSimpleKey=!0):t=!0}},d.prototype.scanDirective=function(){var t,n,r,i;t=this.getMark(),this.forward(),r=this.scanDirectiveName(t),i=null;if(r==="YAML")i=this.scanYamlDirectiveValue(t),n=this.getMark();else if(r==="TAG")i=this.scanTagDirectiveValue(t),n=this.getMark();else{n=this.getMark();while(-1==="\0\r\n…\u2028\u2029".indexOf(this.peek()))this.forward()}return this.scanDirectiveIgnoredLine(t),new a.DirectiveToken(r,i,t,n)},d.prototype.scanDirectiveName=function(t){var n,r,i;n=0,r=this.peek(n);while(/^[0-9A-Za-z]/.test(r)||0<="-_".indexOf(r))n+=1,r=this.peek(n);if(!n)throw new h("while scanning a directive",t,"expected alphabetic or numeric character, but found "+r,this.getMark());i=this.prefix(n),this.forward(n),r=this.peek();if(-1==="\0 \r\n…\u2028\u2029".indexOf(r))throw new h("while scanning a directive",t,"expected alphabetic or numeric character, but found "+r,this.getMark());return i},d.prototype.scanYamlDirectiveValue=function(t){var n,r;while(this.peek()===" ")this.forward();n=this.scanYamlDirectiveNumber(t);if(this.peek()!==".")throw new h("while scanning a directive",t,"expected a digit or '.', but found "+this.peek(),this.getMark());this.forward(),r=this.scanYamlDirectiveNumber(t);if(-1==="\0 \r\n…\u2028\u2029".indexOf(this.peek()))throw new h("while scanning a directive",t,"expected a digit or ' ', but found "+this.peek(),this.getMark());return[n,r]},d.prototype.scanYamlDirectiveNumber=function(t){var n,r,i;n=this.peek();if(!/^[0-9]/.test(n))throw new h("while scanning a directive",t,"expected a digit, but found "+n,this.getMark());r=0;while(/^[0-9]/.test(this.peek(r)))r+=1;return i=+this.prefix(r),this.forward(r),i},d.prototype.scanTagDirectiveValue=function(t){var n,r;while(this.peek()===" ")this.forward();n=this.scanTagDirectiveHandle(t);while(this.peek()===" ")this.forward();return r=this.scanTagDirectivePrefix(t),[n,r]},d.prototype.scanTagDirectiveHandle=function(t){var n,r;n=this.scanTagHandle("directive",t),r=this.peek();if(r!==" ")throw new h("while scanning a directive",t,"expected ' ', but found "+r,this.getMark());return n},d.prototype.scanTagDirectivePrefix=function(t){var n,r;n=this.scanTagUri("directive",t),r=this.peek();if(-1==="\0 \r\n…\u2028\u2029".indexOf(r))throw new h("while scanning a directive",t,"expected ' ', but found "+r,this.getMark());return n},d.prototype.scanDirectiveIgnoredLine=function(t){var n;while(this.peek()===" ")this.forward();if(this.peek()==="#")while(-1==="\0\r\n…\u2028\u2029".indexOf(this.peek()))this.forward();n=this.peek();if(-1==="\0\r\n…\u2028\u2029".indexOf(n))throw new h("while scanning a directive",t,"expected a comment or a line break, but found "+n,this.getMark());this.scanLineBreak()},d.prototype.scanAnchor=function(t){var n,r,i,s,o,u;n=this.getMark(),r=this.peek(),i=r==="*"?"alias":"anchor",this.forward(),s=0,o=this.peek(s);while(/^[0-9A-Za-z]/.test(o)||0<="-_".indexOf(o))s+=1,o=this.peek(s);if(!s)throw new h("while scanning an "+i,n,"expected alphabetic or numeric character, but found "+o,this.getMark());u=this.prefix(s),this.forward(s),o=this.peek();if(-1==="\0 \r\n…\u2028\u2029?:,]}%@`".indexOf(o))throw new h("while scanning an "+i,n,"expected alphabetic or numeric character, but found "+o,this.getMark());return new t(u,n,this.getMark())},d.prototype.scanTag=function(){var t,n,r,i,s,o;t=this.getMark(),n=this.peek(1);if(n==="<"){r=null,this.forward(2),i=this.scanTagUri("tag",t);if(this.peek()!==">")throw new h("while parsing a tag",t,"expected '>', but found "+this.peek(),this.getMark());this.forward()}else if(0<="\0 \r\n…\u2028\u2029".indexOf(n))r=null,i="!",this.forward();else{s=1,o=!1;while(-1==="\0 \r\n…\u2028\u2029".indexOf(n)){if(n==="!"){o=!0;break}s+=1,n=this.peek(s)}o?r=this.scanTagHandle("tag",t):(r="!",this.forward()),i=this.scanTagUri("tag",t)}n=this.peek();if(-1==="\0 \r\n…\u2028\u2029".indexOf(n))throw new h("while scanning a tag",t,"expected ' ', but found "+n,this.getMark());return new a.TagToken([r,i],t,this.getMark())},d.prototype.scanBlockScalar=function(t){var n,r,i,s,o,u=null,f,l,c,h,p,d,v,m;n=t===">",r=[],i=this.getMark(),this.forward(),v=this.scanBlockScalarIndicators(i),o=v[0],u=v[1]||null,this.scanBlockScalarIgnoredLine(i),f=this.indent+1,f<1&&(f=1),null===u?(v=this.scanBlockScalarIndentation(),h=v[0],l=v[1],s=v[2],c=Math.max(f,l)):(c=f+u-1,v=this.scanBlockScalarBreaks(c),h=v[0],s=v[1]),p="";while(+this.column===c&&this.peek()!=="\0"){r=r.concat(h),d=-1===" ".indexOf(this.peek()),m=0;while(-1==="\0\r\n…\u2028\u2029".indexOf(this.peek(m)))m+=1;r.push(this.prefix(m)),this.forward(m),p=this.scanLineBreak(),v=this.scanBlockScalarBreaks(c),h=v[0],s=v[1];if(+this.column!==c||this.peek()==="\0")break;n&&p==="\n"&&d&&-1===" ".indexOf(this.peek())?(!h||!h.length)&&r.push(" "):r.push(p)}return!1!==o&&r.push(p),!0===o&&(r=r.concat(h)),new a.ScalarToken(r.join(""),!1,i,s,t)},d.prototype.scanBlockScalarIndicators=function(t){var n=null,r=null,i=this.peek();if(0<="+-".indexOf(i)){n=i==="+",this.forward(),i=this.peek();if(0<="0123456789".indexOf(i)){r=+i;if(r===0)throw new h("while scanning a block scalar",t,"expected indentation indicator in the range 1-9, but found 0",this.getMark());this.forward()}}else if(0<="0123456789".indexOf(i)){r=+i;if(r===0)throw new h("while scanning a block scalar",t,"expected indentation indicator in the range 1-9, but found 0",this.getMark());this.forward(),i=this.peek(),0<="+-".indexOf(i)&&(n=i==="+",this.forward())}i=this.peek();if(-1==="\0 \r\n…\u2028\u2029".indexOf(i))throw new h("while scanning a block scalar",t,"expected chomping or indentation indicators, but found "+i,this.getMark());return[n,r]},d.prototype.scanBlockScalarIgnoredLine=function(t){var n;while(this.peek()===" ")this.forward();if(this.peek()==="#")while(-1==="\0\r\n…\u2028\u2029".indexOf(this.peek()))this.forward();n=this.peek();if(-1==="\0\r\n…\u2028\u2029".indexOf(n))throw new h("while scanning a block scalar",t,"expected a comment or a line break, but found "+n,this.getMark());this.scanLineBreak()},d.prototype.scanBlockScalarIndentation=function(){var t,n,r;t=[],n=0,r=this.getMark();while(0<=" \r\n…\u2028\u2029".indexOf(this.peek()))this.peek()!==" "?(t.push(this.scanLineBreak()),r=this.getMark()):(this.forward(),this.column>n&&(n=this.column));return[t,n,r]},d.prototype.scanBlockScalarBreaks=function(t){var n,r;n=[],r=this.getMark();while(this.column', but found "+this.peekToken().constructor.id,this.peekToken().startMark);return t=this.getToken(),n=new f.DocumentStartEvent(s,t.endMark,!0,r,i),this.states.push(this.parseDocumentEnd.bind(this)),this.state=this.parseDocumentContent.bind(this),n},h.prototype.parseDocumentEnd=function(){var t,n,r,i,s;return t=this.peekToken(),i=s=t.startMark,r=!1,this.checkToken(a.DocumentEndToken)&&(t=this.getToken(),s=t.endMark,r=!0),n=new f.DocumentEndEvent(i,s,r),this.state=this.parseDocumentStart.bind(this),n},h.prototype.parseDocumentContent=function(){var t;return this.checkToken(a.DirectiveToken,a.DocumentStartToken,a.DocumentEndToken,a.StreamEndToken)?(t=this.processEmptyScalar(this.peekToken().startMark),this.state=this.states.pop(),t):this.parseBlockNode()},h.prototype.processDirectives=function(){var t,n,r,i;this.yamlVersion=null,this.tagHandles={};while(this.checkToken(a.DirectiveToken)){t=this.getToken();if("YAML"===t.name){if(null!==this.yamlVersion)throw new l(null,null,"found duplicate YAML directive",t.startMark);if(1!==+t.value[0])throw new l(null,null,"found incompatible YAML document (version 1.* is required)",t.startMark);this.yamlVersion=t.value}else if("TAG"===t.name){n=t.value[0],r=t.value[1];if(undefined!==this.tagHandles[n])throw new l(null,null,"duplicate tag handle "+n,t.startMark);this.tagHandles[n]=r}}return Object.getOwnPropertyNames(this.tagHandles).length?(i=[this.yamlVersion,{}],Object.getOwnPropertyNames(this.tagHandles).forEach(function(e){i[1][e]=this.tagHandles[e]}.bind(this))):i=[this.yamlVersion,null],Object.getOwnPropertyNames(c).forEach(function(e){undefined===this.tagHandles[e]&&(this.tagHandles[e]=c[e])}.bind(this)),i},h.prototype.parseBlockNode=function(){return this.parseNode(!0)},h.prototype.parseFlowNode=function(){return this.parseNode()},h.prototype.parseBlockNodeOrIndentlessSequence=function(){return this.parseNode(!0,!0)},h.prototype.parseNode=function(t,n){var r,i,s=null,o=null,u=null,c,h,p=null,d=null,v,m;t=t||!1,n=n||!1;if(this.checkToken(a.AliasToken))r=this.getToken(),i=new f.AliasEvent(r.value,r.startMark,r.endMark),this.state=this.states.pop();else{s=null,o=null,u=c=h=null,this.checkToken(a.AnchorToken)?(r=this.getToken(),u=r.startMark,c=r.endMark,s=r.value,this.checkToken(a.TagToken)&&(r=this.getToken(),h=r.startMark,c=r.endMark,o=r.value)):this.checkToken(a.TagToken)&&(r=this.getToken(),u=h=r.startMark,c=r.endMark,o=r.value,this.checkToken(a.AnchorToken)&&(r=this.getToken(),c=r.endMark,s=r.value));if(null!==o){p=o[0],d=o[1];if(null===p)o=d;else{if(undefined===this.tagHandles[p])throw new l("while parsing a node",u,"found undefined tag handle "+p,h);o=this.tagHandles[p]+d}}null===u&&(u=c=this.peekToken().startMark),i=null,v=null===o||"!"===o;if(n&&this.checkToken(a.BlockEntryToken))c=this.peekToken().endMark,i=new f.SequenceStartEvent(s,o,v,u,c),this.state=this.parseIndentlessSequenceEntry.bind(this);else if(this.checkToken(a.ScalarToken))r=this.getToken(),c=r.endMark,r.plain&&null===o||"!"===o?v=[!0,!1]:null===o?v=[!1,!0]:v=[!1,!1],i=new f.ScalarEvent(s,o,v,r.value,u,c,r.style),this.state=this.states.pop();else if(this.checkToken(a.FlowSequenceStartToken))c=this.peekToken().endMark,i=new f.SequenceStartEvent(s,o,v,u,c,!0),this.state=this.parseFlowSequenceFirstEntry.bind(this);else if(this.checkToken(a.FlowMappingStartToken))c=this.peekToken().endMark,i=new f.MappingStartEvent(s,o,v,u,c,!0),this.state=this.parseFlowMappingFirstKey.bind(this);else if(t&&this.checkToken(a.BlockSequenceStartToken))c=this.peekToken().startMark,i=new f.SequenceStartEvent(s,o,v,u,c,!1),this.state=this.parseBlockSequenceFirstEntry.bind(this);else if(t&&this.checkToken(a.BlockMappingStartToken))c=this.peekToken().startMark,i=new f.MappingStartEvent(s,o,v,u,c,!1),this.state=this.parseBlockMappingFirstKey.bind(this);else{if(null===s&&null===o)throw m=t?"block":"flow",r=this.peekToken(),new l("while parsing a "+m+" node",u,"expected the node content, but found "+r.constructor.id,r.startMark);i=new f.ScalarEvent(s,o,[v,!1],"",u,c),this.state=this.states.pop()}}return i},h.prototype.parseBlockSequenceFirstEntry=function(){var t=this.getToken();return this.marks.push(t.startMark),this.parseBlockSequenceEntry()},h.prototype.parseBlockSequenceEntry=function(){var t,n;if(this.checkToken(a.BlockEntryToken))return t=this.getToken(),this.checkToken(a.BlockEntryToken,a.BlockEndToken)?(this.state=this.parseBlockSequenceEntry.bind(this),this.processEmptyScalar(t.endMark)):(this.states.push(this.parseBlockSequenceEntry.bind(this)),this.parseBlockNode());if(!this.checkToken(a.BlockEndToken))throw t=this.peekToken(),new l("while parsing a block collection",this.marks[this.marks.length-1],"expected , but found "+t.constructor.id,t.startMark);return t=this.getToken(),n=new f.SequenceEndEvent(t.startMark,t.endMark),this.state=this.states.pop(),this.marks.pop(),n},h.prototype.parseIndentlessSequenceEntry=function(){var t,n;return this.checkToken(a.BlockEntryToken)?(t=this.getToken(),this.checkToken(a.BlockEntryToken,a.KeyToken,a.ValueToken,a.BlockEndToken)?(this.state=this.parseIndentlessSequenceEntry.bind(this),this.processEmptyScalar(t.endMark)):(this.states.push(this.parseIndentlessSequenceEntry.bind(this)),this.parseBlockNode())):(t=this.peekToken(),n=new f.SequenceEndEvent(t.startMark,t.startMark),this.state=this.states.pop(),n)},h.prototype.parseBlockMappingFirstKey=function(){var t=this.getToken();return this.marks.push(t.startMark),this.parseBlockMappingKey()},h.prototype.parseBlockMappingKey=function(){var t,n;if(this.checkToken(a.KeyToken))return t=this.getToken(),this.checkToken(a.KeyToken,a.ValueToken,a.BlockEndToken)?(this.state=this.parseBlockMappingValue.bind(this),this.processEmptyScalar(t.endMark)):(this.states.push(this.parseBlockMappingValue.bind(this)),this.parseBlockNodeOrIndentlessSequence());if(!this.checkToken(a.BlockEndToken))throw t=this.peekToken(),new l("while parsing a block mapping",this.marks[this.marks.length-1],"expected , but found "+t.constructor.id,t.startMark);return t=this.getToken(),n=new f.MappingEndEvent(t.startMark,t.endMark),this.state=this.states.pop(),this.marks.pop(),n},h.prototype.parseBlockMappingValue=function(){var t;return this.checkToken(a.ValueToken)?(t=this.getToken(),this.checkToken(a.KeyToken,a.ValueToken,a.BlockEndToken)?(this.state=this.parseBlockMappingKey.bind(this),this.processEmptyScalar(t.endMark)):(this.states.push(this.parseBlockMappingKey.bind(this)),this.parseBlockNodeOrIndentlessSequence())):(this.state=this.parseBlockMappingKey.bind(this),t=this.peekToken(),this.processEmptyScalar(t.startMark))},h.prototype.parseFlowSequenceFirstEntry=function(){var t=this.getToken();return this.marks.push(t.startMark),this.parseFlowSequenceEntry(!0)},h.prototype.parseFlowSequenceEntry=function(t){var n,r;t=t||!1;if(!this.checkToken(a.FlowSequenceEndToken)){if(!t){if(!this.checkToken(a.FlowEntryToken))throw n=this.peekToken(),new l("while parsing a flow sequence",this.marks[this.marks.length-1],"expected ',' or ']', but got "+n.constructor.id,n.startMark);this.getToken()}if(this.checkToken(a.KeyToken))return n=this.peekToken(),r=new f.MappingStartEvent(null,null,!0,n.startMark,n.endMark,!0),this.state=this.parseFlowSequenceEntryMappingKey.bind(this),r;if(!this.checkToken(a.FlowSequenceEndToken))return this.states.push(this.parseFlowSequenceEntry.bind(this)),this.parseFlowNode()}return n=this.getToken(),r=new f.SequenceEndEvent(n.startMark,n.endMark),this.state=this.states.pop(),this.marks.pop(),r},h.prototype.parseFlowSequenceEntryMappingKey=function(){var t=this.getToken();return this.checkToken(a.ValueToken,a.FlowEntryToken,a.FlowSequenceEndToken)?(this.state=this.parseFlowSequenceEntryMappingValue.bind(this),this.processEmptyScalar(t.endMark)):(this.states.push(this.parseFlowSequenceEntryMappingValue.bind(this)),this.parseFlowNode())},h.prototype.parseFlowSequenceEntryMappingValue=function(){var t;return this.checkToken(a.ValueToken)?(t=this.getToken(),this.checkToken(a.FlowEntryToken,a.FlowSequenceEndToken)?(this.state=this.parseFlowSequenceEntryMappingEnd.bind(this),this.processEmptyScalar(t.endMark)):(this.states.push(this.parseFlowSequenceEntryMappingEnd.bind(this)),this.parseFlowNode())):(this.state=this.parseFlowSequenceEntryMappingEnd.bind(this),t=this.peekToken(),this.processEmptyScalar(t.startMark))},h.prototype.parseFlowSequenceEntryMappingEnd=function(){var t;return this.state=this.parseFlowSequenceEntry.bind(this),t=this.peekToken(),new f.MappingEndEvent(t.startMark,t.startMark)},h.prototype.parseFlowMappingFirstKey=function(){var t=this.getToken();return this.marks.push(t.startMark),this.parseFlowMappingKey(!0)},h.prototype.parseFlowMappingKey=function(t){var n,r;t=t||!1;if(!this.checkToken(a.FlowMappingEndToken)){if(!t){if(!this.checkToken(a.FlowEntryToken))throw n=this.peekToken(),new l("while parsing a flow mapping",this.marks[this.marks.length-1],"expected ',' or '}', but got "+n.constructor.id,n.startMark);this.getToken()}if(this.checkToken(a.KeyToken))return n=this.getToken(),this.checkToken(a.ValueToken,a.FlowEntryToken,a.FlowMappingEndToken)?(this.state=this.parseFlowMappingValue.bind(this),this.processEmptyScalar(n.endMark)):(this.states.push(this.parseFlowMappingValue.bind(this)),this.parseFlowNode());if(!this.checkToken(a.FlowMappingEndToken))return this.states.push(this.parseFlowMappingEmptyValue.bind(this)),this.parseFlowNode()}return n=this.getToken(),r=new f.MappingEndEvent(n.startMark,n.endMark),this.state=this.states.pop(),this.marks.pop(),r},h.prototype.parseFlowMappingValue=function(){var t;return this.checkToken(a.ValueToken)?(t=this.getToken(),this.checkToken(a.FlowEntryToken,a.FlowMappingEndToken)?(this.state=this.parseFlowMappingKey.bind(this),this.processEmptyScalar(t.endMark)):(this.states.push(this.parseFlowMappingKey.bind(this)),this.parseFlowNode())):(this.state=this.parseFlowMappingKey.bind(this),t=this.peekToken(),this.processEmptyScalar(t.startMark))},h.prototype.parseFlowMappingEmptyValue=function(){return this.state=this.parseFlowMappingKey.bind(this),this.processEmptyScalar(this.peekToken().startMark)},h.prototype.processEmptyScalar=function(t){return new f.ScalarEvent(null,null,[!0,!1],"",t,t)},t.exports.Parser=h}),e.define("/lib/js-yaml/events.js",function(e,t,n,r,i,s){"use strict";function a(e,t){this.startMark=e||null,this.endMark=t||null}function f(e,t,n){a.call(this,t,n),this.anchor=e}function l(e,t,n,r,i,s){f.call(this,e,r,i),this.tag=t,this.implicit=n,this.flowStyle=s||null}function c(){a.apply(this,arguments)}function h(e,t,n){a.call(this,e,t),this.encoding=n||null}function p(){a.apply(this,arguments)}function d(e,t,n,r,i){a.call(this,e,t),this.explicit=n||null,this.version=r||null,this.tags=i||null}function v(e,t,n){a.call(this,e,t),this.explicit=n||null}function m(){f.apply(this,arguments)}function g(e,t,n,r,i,s,o){f.call(this,e,i,s),this.tag=t,this.implicit=n,this.value=r,this.style=o||null}function y(){l.apply(this,arguments)}function b(){c.apply(this,arguments)}function w(){l.apply(this,arguments)}function E(){c.apply(this,arguments)}var o=e("./common"),u=["anchor","tag","implicit","value"];a.prototype.hash=a.prototype.toString=function S(){var e=this,t=[];return Object.getOwnPropertyNames(this).forEach(function(n){0<=u.indexOf(n)&&t.push(n+"="+e[n])}),this.constructor.name+"("+t.join(", ")+")"},o.inherits(f,a),o.inherits(l,f),o.inherits(c,a),o.inherits(h,a),o.inherits(p,a),o.inherits(d,a),o.inherits(v,a),o.inherits(m,f),o.inherits(g,f),o.inherits(y,l),o.inherits(b,c),o.inherits(w,l),o.inherits(E,c),t.exports.NodeEvent=f,t.exports.CollectionStartEvent=l,t.exports.CollectionEndEvent=c,t.exports.StreamStartEvent=h,t.exports.StreamEndEvent=p,t.exports.DocumentStartEvent=d,t.exports.DocumentEndEvent=v,t.exports.AliasEvent=m,t.exports.ScalarEvent=g,t.exports.SequenceStartEvent=y,t.exports.SequenceEndEvent=b,t.exports.MappingStartEvent=w,t.exports.MappingEndEvent=E}),e.define("/lib/js-yaml/composer.js",function(e,t,n,r,i,s){"use strict";function l(){f.MarkedYAMLError.apply(this,arguments),this.name="ComposerError"}function c(){this.anchors={}}var o=e("./common"),u=e("./nodes"),a=e("./events"),f=e("./errors");o.inherits(l,f.MarkedYAMLError),c.prototype.checkNode=function(){return this.checkEvent(a.StreamStartEvent)&&this.getEvent(),!this.checkEvent(a.StreamEndEvent)},c.prototype.getNode=function(){return this.checkEvent(a.StreamEndEvent)?null:this.composeDocument()},c.prototype.getSingleNode=function(){var t=null;this.getEvent(),this.checkEvent(a.StreamEndEvent)||(t=this.composeDocument());if(!this.checkEvent(a.StreamEndEvent))throw new l("expected a single document in the stream",t.startMark,"but found another document",this.getEvent().startMark);return this.getEvent(),t},c.prototype.composeDocument=function(){var t;return this.getEvent(),t=this.composeNode(null,null),this.getEvent(),this.anchors={},t},c.prototype.composeNode=function(t,n){var r=null,i,s;if(this.checkEvent(a.AliasEvent)){i=this.getEvent(),s=i.anchor;if(undefined===this.anchors[s])throw new l(null,null,"found undefined alias "+s,i.startMark);return this.anchors[s]}i=this.peekEvent(),s=i.anchor;if(null!==s&&undefined!==this.anchors[s])throw new l("found duplicate anchor "+s+"; first occurence",this.anchors[s].startMark,"second occurence",i.startMark);return this.checkEvent(a.ScalarEvent)?r=this.composeScalarNode(s):this.checkEvent(a.SequenceStartEvent)?r=this.composeSequenceNode(s):this.checkEvent(a.MappingStartEvent)&&(r=this.composeMappingNode(s)),r},c.prototype.composeScalarNode=function(t){var n,r,i;return n=this.getEvent(),r=n.tag,null===r?r=this.resolve(u.ScalarNode,n.value,n.implicit):"!"===r&&(r=this.resolve(u.ScalarNode,n.value,!1)),i=new u.ScalarNode(r,n.value,n.startMark,n.endMark,n.style),null!==t&&(this.anchors[t]=i),i},c.prototype.composeSequenceNode=function(t){var n,r,i,s,o;n=this.getEvent(),r=n.tag,null===r?r=this.resolve(u.SequenceNode,null,n.implicit):"!"===r&&(r=this.resolve(u.SequenceNode,null,!1)),i=new u.SequenceNode(r,[],n.startMark,null,n.flowStyle),null!==t&&(this.anchors[t]=i),s=0;while(!this.checkEvent(a.SequenceEndEvent))i.value.push(this.composeNode(i,s)),s+=1;return o=this.getEvent(),i.endMark=o.endMark,i},c.prototype.composeMappingNode=function(t){var n,r,i,s,o,f;n=this.getEvent(),r=n.tag,null===r?r=this.resolve(u.MappingNode,null,n.implicit):"!"===r&&(r=this.resolve(u.MappingNode,null,!1)),i=new u.MappingNode(r,[],n.startMark,null,n.flowStyle),null!==t&&(this.anchors[t]=i);while(!this.checkEvent(a.MappingEndEvent))s=this.composeNode(i,null),o=this.composeNode(i,s),i.value.push([s,o]);return f=this.getEvent(),i.endMark=f.endMark,i},t.exports.Composer=c}),e.define("/lib/js-yaml/nodes.js",function(e,t,n,r,i,s){"use strict";function u(e,t,n,r){this.tag=e,this.value=t,this.startMark=n||null,this.endMark=r||null}function a(e,t,n,r,i){u.call(this,e,t,n,r),this.style=i||null}function f(e,t,n,r,i){u.call(this,e,t,n,r),this.flowStyle=i||null}function l(){f.apply(this,arguments)}function c(){f.apply(this,arguments)}var o=e("./common");u.prototype.hash=u.prototype.toString=function h(){var e=this.value.toString();return this.constructor.name+"("+this.tag+", "+e+")"},o.inherits(a,u),a.id="scalar",o.inherits(f,u),o.inherits(l,f),l.id="sequence",o.inherits(c,f),c.id="mapping",t.exports.ScalarNode=a,t.exports.SequenceNode=l,t.exports.MappingNode=c}),e.define("/lib/js-yaml/resolver.js",function(e,t,n,r,i,s){"use strict";function c(){this.resolverExactPaths=[],this.resolverPrefixPaths=[],this.yamlImplicitResolvers=c.yamlImplicitResolvers}function h(){c.apply(this,arguments),this.yamlImplicitResolvers=h.yamlImplicitResolvers}var o=e("./common"),u=e("./nodes"),a="tag:yaml.org,2002:str",f="tag:yaml.org,2002:seq",l="tag:yaml.org,2002:map";c.yamlImplicitResolvers={},c.addImplicitResolver=function(t,n,r){var i=this;undefined===r&&(r=[null]),r.forEach(function(e){undefined===i.yamlImplicitResolvers[e]&&(i.yamlImplicitResolvers[e]=[]),i.yamlImplicitResolvers[e].push([t,n])})},c.prototype.resolve=function(t,n,r){var i,s,o,c;if(t===u.ScalarNode&&r&&r[0]){n===""?i=this.yamlImplicitResolvers[""]||[]:i=this.yamlImplicitResolvers[n[0]]||[],i=i.concat(this.yamlImplicitResolvers[null]||[]);for(s=0;s=r[0].length&&(n=n.slice(1,n.length-r[0].length),i=r[1]),new RegExp(n,i)},d.prototype.constructJavascriptUndefined=function(t){var n;return n},d.prototype.constructJavascriptFunction=function(t){var n=new Function("return "+this.constructScalar(t));return n()},d.addConstructor("tag:yaml.org,2002:js/undefined",d.prototype.constructJavascriptUndefined),d.addConstructor("tag:yaml.org,2002:js/regexp",d.prototype.constructJavascriptRegExp),d.addConstructor("tag:yaml.org,2002:js/function",d.prototype.constructJavascriptFunction),t.exports.BaseConstructor=h,t.exports.SafeConstructor=p,t.exports.Constructor=d}),e("./index")}(); \ No newline at end of file +Array.isArray||(Array.isArray=function(t){return Object.prototype.toString.call(t)==="[object Array]"}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t;for(t=0;t=0;i--){if(t[i]==="node_modules")continue;var s=t.slice(0,i+1).join("/")+"/node_modules";n.push(s)}return n}n||(n="/");if(e._core[t])return t;var r=e.modules.path();n=r.resolve("/",n);var i=n||"/";if(t.match(/^(?:\.\.?\/|\/)/)){var s=u(r.resolve(i,t))||a(r.resolve(i,t));if(s)return s}var o=f(t,i);if(o)return o;throw new Error("Cannot find module '"+t+"'")}}(),e.alias=function(t,n){var r=e.modules.path(),i=null;try{i=e.resolve(t+"/package.json","/")}catch(s){i=e.resolve(t,"/")}var o=r.dirname(i),u=(Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t})(e.modules);for(var a=0;a=0;r--){var i=e[r];i=="."?e.splice(r,1):i===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var a=/^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;n.resolve=function(){var e="",t=!1;for(var n=arguments.length;n>=-1&&!t;n--){var r=n>=0?arguments[n]:s.cwd();if(typeof r!="string"||!r)continue;e=r+"/"+e,t=r.charAt(0)==="/"}return e=u(o(e.split("/"),function(e){return!!e}),!t).join("/"),(t?"/":"")+e||"."},n.normalize=function(e){var t=e.charAt(0)==="/",n=e.slice(-1)==="/";return e=u(o(e.split("/"),function(e){return!!e}),!t).join("/"),!e&&!t&&(e="."),e&&n&&(e+="/"),(t?"/":"")+e},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(o(e,function(e,t){return e&&typeof e=="string"}).join("/"))},n.dirname=function(e){var t=a.exec(e)[1]||"",n=!1;return t?t.length===1||n&&t.length<=3&&t.charAt(1)===":"?t:t.substring(0,t.length-1):"."},n.basename=function(e,t){var n=a.exec(e)[2]||"";return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return a.exec(e)[3]||""}}),e.define("__browserify_process",function(e,t,n,r,i,s){var s=t.exports={};s.nextTick=function(){var e=[],t=typeof window!="undefined"&&window.postMessage&&window.addEventListener;return t&&window.addEventListener("message",function(t){if(t.source===window&&t.data==="browserify-tick"){t.stopPropagation();if(e.length>0){var n=e.shift();n()}}},!0),function(n){t?(e.push(n),window.postMessage("browserify-tick","*")):setTimeout(n,0)}}(),s.title="browser",s.browser=!0,s.env={},s.argv=[],s.binding=function(t){if(t==="evals")return e("vm");throw new Error("No such module. (Possibly not yet loaded)")},function(){var t="/",n;s.cwd=function(){return t},s.chdir=function(r){n||(n=e("path")),t=n.resolve(r,t)}}()}),e.define("/package.json",function(e,t,n,r,i,s){t.exports={main:"./index.js"}}),e.define("/index.js",function(e,t,n,r,i,s){t.exports=e("./lib/js-yaml.js")}),e.define("/lib/js-yaml.js",function(e,t,n,r,i,s){"use strict";var o=e("fs"),u=e("./js-yaml/loader"),a=t.exports={};a.scan=function(t,n,r){r=r||u.SafeLoader;var i=new r(t);while(i.checkToken())n(i.getToken())},a.compose=function(t,n){n=n||u.SafeLoader;var r=new n(t);return r.getSingleNode()},a.load=function(t,n){n=n||u.Loader;var r=new n(t);return r.getSingleData()},a.loadAll=function(t,n,r){r=r||u.Loader;var i=new r(t);while(i.checkData())n(i.getData())},a.safeLoad=function(t){return a.load(t,u.SafeLoader)},a.safeLoadAll=function(t,n){a.loadAll(t,n,u.SafeLoader)},a.addConstructor=function(t,n,r){(r||u.Loader).addConstructor(t,n)},function(){var t=function(e,t){var n=o.openSync(t,"r");e.exports=a.load(n),o.closeSync(n)};undefined!==e.extensions&&(e.extensions[".yml"]=t,e.extensions[".yaml"]=t)}()}),e.define("fs",function(e,t,n,r,i,s){}),e.define("/lib/js-yaml/loader.js",function(e,t,n,r,i,s){"use strict";function p(e){u.Reader.call(this,e),a.Scanner.call(this),f.Parser.call(this),l.Composer.call(this),h.BaseConstructor.call(this),c.BaseResolver.call(this)}function d(e){u.Reader.call(this,e),a.Scanner.call(this),f.Parser.call(this),l.Composer.call(this),h.SafeConstructor.call(this),c.Resolver.call(this)}function v(e){u.Reader.call(this,e),a.Scanner.call(this),f.Parser.call(this),l.Composer.call(this),h.Constructor.call(this),c.Resolver.call(this)}var o=e("./common"),u=e("./reader"),a=e("./scanner"),f=e("./parser"),l=e("./composer"),c=e("./resolver"),h=e("./constructor");o.extend(p.prototype,u.Reader.prototype,a.Scanner.prototype,f.Parser.prototype,l.Composer.prototype,h.BaseConstructor.prototype,c.BaseResolver.prototype),o.extend(d.prototype,u.Reader.prototype,a.Scanner.prototype,f.Parser.prototype,l.Composer.prototype,h.SafeConstructor.prototype,c.Resolver.prototype),o.extend(v.prototype,u.Reader.prototype,a.Scanner.prototype,f.Parser.prototype,l.Composer.prototype,h.Constructor.prototype,c.Resolver.prototype),p.addConstructor=function(e,t){h.BaseConstructor.addConstructor(e,t)},d.addConstructor=function(e,t){h.SafeConstructor.addConstructor(e,t)},v.addConstructor=function(e,t){h.Constructor.addConstructor(e,t)},t.exports.BaseLoader=p,t.exports.SafeLoader=d,t.exports.Loader=v}),e.define("/lib/js-yaml/common.js",function(e,t,n,r,i,s){"use strict";var o=t.exports={};o.extend=function(t){var n,r,i,s=[];t=t||{},r=arguments.length,!!arguments[r-1]&&!!arguments[r-1].except&&(s=arguments[r-1].except,r-=1);for(n=1;n=8&&(a-=8,e!==r.charAt(o)&&u.push(f>>a&255),f&=(1<",this.rawBuffer=e,this.update(1)):(this.name="",this.stream=e,this.eof=!1,this.updateRaw(),this.update(1))}var o=e("fs"),u=e("./common"),a=e("./errors"),f=new RegExp("[^ \n\r -~… -퟿-�]"),l=undefined==="a"[0]?function(e,t){return e.charAt(t)}:function(e,t){return e[t]};u.inherits(c,a.YAMLError),h.prototype.peek=function(t){var n;return t=+t||0,n=l(this.buffer,this.pointer+t),undefined===n&&(this.update(t+1),n=l(this.buffer,this.pointer+t)),n},h.prototype.prefix=function(t){return t=+t||1,this.pointer+t>=this.buffer.length&&this.update(t),this.buffer.slice(this.pointer,this.pointer+t)},h.prototype.forward=function(t){var n;t=undefined!==t?+t:1,this.pointer+t+1>=this.buffer.length&&this.update(t+1);while(t)n=this.buffer[this.pointer],this.pointer+=1,this.index+=1,0<="\n…\u2028\u2029".indexOf(n)||"\r"===n&&"\n"!==this.buffer[this.pointer]?(this.line+=1,this.column=0):n!==""&&(this.column+=1),t-=1},h.prototype.getMark=function(){return null===this.stream?new a.Mark(this.name,this.index,this.line,this.column,this.buffer,this.pointer):new a.Mark(this.name,this.index,this.line,this.column,null,null)},h.prototype.checkPrintable=function(t){var n=t.toString().match(f),r;if(n)throw r=this.index+this.buffer.length-this.pointer+n.index,new c(this.name,r,n[0],"unicode","special characters are not allowed")},h.prototype.update=function(t){var n;if(null===this.rawBuffer)return;this.buffer=this.buffer.slice(this.pointer),this.pointer=0;while(this.buffer.length0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer[r-1])){r-=1;if(this.pointer-r>t/2-1){n=" ... ",r+=5;break}}i="",s=this.pointer;while(st/2-1){i=" ... ",s-=5;break}}return o=this.buffer.slice(r,s),u(" ",e)+n+o+i+"\n"+u(" ",e+this.pointer-r+n.length)+"^"},a.prototype.toString=function(){var e=this.getSnippet(),t;return t=' in "'+this.name+'", line '+(this.line+1)+", column "+(this.column+1),e&&(t+=":\n"+e),t},o.inherits(f,Error),o.inherits(h,f),t.exports.Mark=a,t.exports.YAMLError=f,t.exports.MarkedYAMLError=h}),e.define("/lib/js-yaml/scanner.js",function(e,t,n,r,i,s){"use strict";function h(){u.MarkedYAMLError.apply(this,arguments),this.name="ScannerError"}function p(e,t,n,r,i,s){this.tokenNumber=e,this.required=t,this.index=n,this.line=r,this.column=i,this.mark=s}function d(){this.done=!1,this.flowLevel=0,this.tokens=[],this.fetchStreamStart(),this.tokensTaken=0,this.indent=-1,this.indents=[],this.allowSimpleKey=!0,this.possibleSimpleKeys={}}var o=e("./common"),u=e("./errors"),a=e("./tokens"),f={0:"\0",a:"",b:"\b",t:" "," ":" ",n:"\n",v:" ",f:"\f",r:"\r",e:""," ":" ",'"':'"',"\\":"\\",N:"…",_:" ",L:"\u2028",P:"\u2029"},l={x:2,u:4,U:8},c=function(e,t){var n=[];undefined===t&&(t=e,e=0);while(0"&&!this.flowLevel)return this.fetchFolded();if(t==="'")return this.fetchSingle();if(t==='"')return this.fetchDouble();if(this.checkPlain())return this.fetchPlain();throw new h("while scanning for the next token",null,"found character "+t+" that cannot start any token",this.getMark())},d.prototype.nextPossibleSimpleKey=function(){var t=null;return o.each(this.possibleSimpleKeys,function(e){if(null===t||e.tokenNumbert)n=this.getMark(),this.indent=this.indents.pop(),this.tokens.push(new a.BlockEndToken(n,n))},d.prototype.addIndent=function(t){return this.indent")},d.prototype.fetchBlockScalar=function(t){this.allowSimpleKey=!0,this.removePossibleSimpleKey(),this.tokens.push(this.scanBlockScalar(t))},d.prototype.fetchSingle=function(){this.fetchFlowScalar("'")},d.prototype.fetchDouble=function(){this.fetchFlowScalar('"')},d.prototype.fetchFlowScalar=function(t){this.savePossibleSimpleKey(),this.allowSimpleKey=!1,this.tokens.push(this.scanFlowScalar(t))},d.prototype.fetchPlain=function(){this.savePossibleSimpleKey(),this.allowSimpleKey=!1,this.tokens.push(this.scanPlain())},d.prototype.checkDirective=function(){return this.column===0},d.prototype.checkDocumentStart=function(){return+this.column===0&&this.prefix(3)==="---"?0<="\0 \r\n…\u2028\u2029".indexOf(this.peek(3)):!1},d.prototype.checkDocumentEnd=function(){return+this.column===0&&this.prefix(3)==="..."?0<="\0 \r\n…\u2028\u2029".indexOf(this.peek(3)):!1},d.prototype.checkBlockEntry=function(){return 0<="\0 \r\n…\u2028\u2029".indexOf(this.peek(1))},d.prototype.checkKey=function(){return this.flowLevel?!0:0<="\0 \r\n…\u2028\u2029".indexOf(this.peek(1))},d.prototype.checkValue=function(){return this.flowLevel?!0:0<="\0 \r\n…\u2028\u2029".indexOf(this.peek(1))},d.prototype.checkPlain=function(){var t=this.peek();return-1==="\0 \r\n…\u2028\u2029-?:,[]{}#&*!|>'\"%@`".indexOf(t)||-1==="\0 \r\n…\u2028\u2029".indexOf(this.peek(1))&&(t==="-"||!this.flowLevel&&0<="?:".indexOf(t))},d.prototype.scanToNextToken=function(){var t=!1;this.index===0&&this.peek()===""&&this.forward();while(!t){while(this.peek()===" ")this.forward();if(this.peek()==="#")while(-1==="\0\r\n…\u2028\u2029".indexOf(this.peek()))this.forward();this.scanLineBreak()?this.flowLevel||(this.allowSimpleKey=!0):t=!0}},d.prototype.scanDirective=function(){var t,n,r,i;t=this.getMark(),this.forward(),r=this.scanDirectiveName(t),i=null;if(r==="YAML")i=this.scanYamlDirectiveValue(t),n=this.getMark();else if(r==="TAG")i=this.scanTagDirectiveValue(t),n=this.getMark();else{n=this.getMark();while(-1==="\0\r\n…\u2028\u2029".indexOf(this.peek()))this.forward()}return this.scanDirectiveIgnoredLine(t),new a.DirectiveToken(r,i,t,n)},d.prototype.scanDirectiveName=function(t){var n,r,i;n=0,r=this.peek(n);while(/^[0-9A-Za-z]/.test(r)||0<="-_".indexOf(r))n+=1,r=this.peek(n);if(!n)throw new h("while scanning a directive",t,"expected alphabetic or numeric character, but found "+r,this.getMark());i=this.prefix(n),this.forward(n),r=this.peek();if(-1==="\0 \r\n…\u2028\u2029".indexOf(r))throw new h("while scanning a directive",t,"expected alphabetic or numeric character, but found "+r,this.getMark());return i},d.prototype.scanYamlDirectiveValue=function(t){var n,r;while(this.peek()===" ")this.forward();n=this.scanYamlDirectiveNumber(t);if(this.peek()!==".")throw new h("while scanning a directive",t,"expected a digit or '.', but found "+this.peek(),this.getMark());this.forward(),r=this.scanYamlDirectiveNumber(t);if(-1==="\0 \r\n…\u2028\u2029".indexOf(this.peek()))throw new h("while scanning a directive",t,"expected a digit or ' ', but found "+this.peek(),this.getMark());return[n,r]},d.prototype.scanYamlDirectiveNumber=function(t){var n,r,i;n=this.peek();if(!/^[0-9]/.test(n))throw new h("while scanning a directive",t,"expected a digit, but found "+n,this.getMark());r=0;while(/^[0-9]/.test(this.peek(r)))r+=1;return i=+this.prefix(r),this.forward(r),i},d.prototype.scanTagDirectiveValue=function(t){var n,r;while(this.peek()===" ")this.forward();n=this.scanTagDirectiveHandle(t);while(this.peek()===" ")this.forward();return r=this.scanTagDirectivePrefix(t),[n,r]},d.prototype.scanTagDirectiveHandle=function(t){var n,r;n=this.scanTagHandle("directive",t),r=this.peek();if(r!==" ")throw new h("while scanning a directive",t,"expected ' ', but found "+r,this.getMark());return n},d.prototype.scanTagDirectivePrefix=function(t){var n,r;n=this.scanTagUri("directive",t),r=this.peek();if(-1==="\0 \r\n…\u2028\u2029".indexOf(r))throw new h("while scanning a directive",t,"expected ' ', but found "+r,this.getMark());return n},d.prototype.scanDirectiveIgnoredLine=function(t){var n;while(this.peek()===" ")this.forward();if(this.peek()==="#")while(-1==="\0\r\n…\u2028\u2029".indexOf(this.peek()))this.forward();n=this.peek();if(-1==="\0\r\n…\u2028\u2029".indexOf(n))throw new h("while scanning a directive",t,"expected a comment or a line break, but found "+n,this.getMark());this.scanLineBreak()},d.prototype.scanAnchor=function(t){var n,r,i,s,o,u;n=this.getMark(),r=this.peek(),i=r==="*"?"alias":"anchor",this.forward(),s=0,o=this.peek(s);while(/^[0-9A-Za-z]/.test(o)||0<="-_".indexOf(o))s+=1,o=this.peek(s);if(!s)throw new h("while scanning an "+i,n,"expected alphabetic or numeric character, but found "+o,this.getMark());u=this.prefix(s),this.forward(s),o=this.peek();if(-1==="\0 \r\n…\u2028\u2029?:,]}%@`".indexOf(o))throw new h("while scanning an "+i,n,"expected alphabetic or numeric character, but found "+o,this.getMark());return new t(u,n,this.getMark())},d.prototype.scanTag=function(){var t,n,r,i,s,o;t=this.getMark(),n=this.peek(1);if(n==="<"){r=null,this.forward(2),i=this.scanTagUri("tag",t);if(this.peek()!==">")throw new h("while parsing a tag",t,"expected '>', but found "+this.peek(),this.getMark());this.forward()}else if(0<="\0 \r\n…\u2028\u2029".indexOf(n))r=null,i="!",this.forward();else{s=1,o=!1;while(-1==="\0 \r\n…\u2028\u2029".indexOf(n)){if(n==="!"){o=!0;break}s+=1,n=this.peek(s)}o?r=this.scanTagHandle("tag",t):(r="!",this.forward()),i=this.scanTagUri("tag",t)}n=this.peek();if(-1==="\0 \r\n…\u2028\u2029".indexOf(n))throw new h("while scanning a tag",t,"expected ' ', but found "+n,this.getMark());return new a.TagToken([r,i],t,this.getMark())},d.prototype.scanBlockScalar=function(t){var n,r,i,s,o,u=null,f,l,c,h,p,d,v,m;n=t===">",r=[],i=this.getMark(),this.forward(),v=this.scanBlockScalarIndicators(i),o=v[0],u=v[1]||null,this.scanBlockScalarIgnoredLine(i),f=this.indent+1,f<1&&(f=1),null===u?(v=this.scanBlockScalarIndentation(),h=v[0],l=v[1],s=v[2],c=Math.max(f,l)):(c=f+u-1,v=this.scanBlockScalarBreaks(c),h=v[0],s=v[1]),p="";while(+this.column===c&&this.peek()!=="\0"){r=r.concat(h),d=-1===" ".indexOf(this.peek()),m=0;while(-1==="\0\r\n…\u2028\u2029".indexOf(this.peek(m)))m+=1;r.push(this.prefix(m)),this.forward(m),p=this.scanLineBreak(),v=this.scanBlockScalarBreaks(c),h=v[0],s=v[1];if(+this.column!==c||this.peek()==="\0")break;n&&p==="\n"&&d&&-1===" ".indexOf(this.peek())?(!h||!h.length)&&r.push(" "):r.push(p)}return!1!==o&&r.push(p),!0===o&&(r=r.concat(h)),new a.ScalarToken(r.join(""),!1,i,s,t)},d.prototype.scanBlockScalarIndicators=function(t){var n=null,r=null,i=this.peek();if(0<="+-".indexOf(i)){n=i==="+",this.forward(),i=this.peek();if(0<="0123456789".indexOf(i)){r=+i;if(r===0)throw new h("while scanning a block scalar",t,"expected indentation indicator in the range 1-9, but found 0",this.getMark());this.forward()}}else if(0<="0123456789".indexOf(i)){r=+i;if(r===0)throw new h("while scanning a block scalar",t,"expected indentation indicator in the range 1-9, but found 0",this.getMark());this.forward(),i=this.peek(),0<="+-".indexOf(i)&&(n=i==="+",this.forward())}i=this.peek();if(-1==="\0 \r\n…\u2028\u2029".indexOf(i))throw new h("while scanning a block scalar",t,"expected chomping or indentation indicators, but found "+i,this.getMark());return[n,r]},d.prototype.scanBlockScalarIgnoredLine=function(t){var n;while(this.peek()===" ")this.forward();if(this.peek()==="#")while(-1==="\0\r\n…\u2028\u2029".indexOf(this.peek()))this.forward();n=this.peek();if(-1==="\0\r\n…\u2028\u2029".indexOf(n))throw new h("while scanning a block scalar",t,"expected a comment or a line break, but found "+n,this.getMark());this.scanLineBreak()},d.prototype.scanBlockScalarIndentation=function(){var t,n,r;t=[],n=0,r=this.getMark();while(0<=" \r\n…\u2028\u2029".indexOf(this.peek()))this.peek()!==" "?(t.push(this.scanLineBreak()),r=this.getMark()):(this.forward(),this.column>n&&(n=this.column));return[t,n,r]},d.prototype.scanBlockScalarBreaks=function(t){var n,r;n=[],r=this.getMark();while(this.column', but found "+this.peekToken().constructor.id,this.peekToken().startMark);return t=this.getToken(),n=new f.DocumentStartEvent(s,t.endMark,!0,r,i),this.states.push(this.parseDocumentEnd.bind(this)),this.state=this.parseDocumentContent.bind(this),n},h.prototype.parseDocumentEnd=function(){var t,n,r,i,s;return t=this.peekToken(),i=s=t.startMark,r=!1,this.checkToken(a.DocumentEndToken)&&(t=this.getToken(),s=t.endMark,r=!0),n=new f.DocumentEndEvent(i,s,r),this.state=this.parseDocumentStart.bind(this),n},h.prototype.parseDocumentContent=function(){var t;return this.checkToken(a.DirectiveToken,a.DocumentStartToken,a.DocumentEndToken,a.StreamEndToken)?(t=this.processEmptyScalar(this.peekToken().startMark),this.state=this.states.pop(),t):this.parseBlockNode()},h.prototype.processDirectives=function(){var t,n,r,i;this.yamlVersion=null,this.tagHandles={};while(this.checkToken(a.DirectiveToken)){t=this.getToken();if("YAML"===t.name){if(null!==this.yamlVersion)throw new l(null,null,"found duplicate YAML directive",t.startMark);if(1!==+t.value[0])throw new l(null,null,"found incompatible YAML document (version 1.* is required)",t.startMark);this.yamlVersion=t.value}else if("TAG"===t.name){n=t.value[0],r=t.value[1];if(undefined!==this.tagHandles[n])throw new l(null,null,"duplicate tag handle "+n,t.startMark);this.tagHandles[n]=r}}return Object.getOwnPropertyNames(this.tagHandles).length?(i=[this.yamlVersion,{}],Object.getOwnPropertyNames(this.tagHandles).forEach(function(e){i[1][e]=this.tagHandles[e]}.bind(this))):i=[this.yamlVersion,null],Object.getOwnPropertyNames(c).forEach(function(e){undefined===this.tagHandles[e]&&(this.tagHandles[e]=c[e])}.bind(this)),i},h.prototype.parseBlockNode=function(){return this.parseNode(!0)},h.prototype.parseFlowNode=function(){return this.parseNode()},h.prototype.parseBlockNodeOrIndentlessSequence=function(){return this.parseNode(!0,!0)},h.prototype.parseNode=function(t,n){var r,i,s=null,o=null,u=null,c,h,p=null,d=null,v,m;t=t||!1,n=n||!1;if(this.checkToken(a.AliasToken))r=this.getToken(),i=new f.AliasEvent(r.value,r.startMark,r.endMark),this.state=this.states.pop();else{s=null,o=null,u=c=h=null,this.checkToken(a.AnchorToken)?(r=this.getToken(),u=r.startMark,c=r.endMark,s=r.value,this.checkToken(a.TagToken)&&(r=this.getToken(),h=r.startMark,c=r.endMark,o=r.value)):this.checkToken(a.TagToken)&&(r=this.getToken(),u=h=r.startMark,c=r.endMark,o=r.value,this.checkToken(a.AnchorToken)&&(r=this.getToken(),c=r.endMark,s=r.value));if(null!==o){p=o[0],d=o[1];if(null===p)o=d;else{if(undefined===this.tagHandles[p])throw new l("while parsing a node",u,"found undefined tag handle "+p,h);o=this.tagHandles[p]+d}}null===u&&(u=c=this.peekToken().startMark),i=null,v=null===o||"!"===o;if(n&&this.checkToken(a.BlockEntryToken))c=this.peekToken().endMark,i=new f.SequenceStartEvent(s,o,v,u,c),this.state=this.parseIndentlessSequenceEntry.bind(this);else if(this.checkToken(a.ScalarToken))r=this.getToken(),c=r.endMark,r.plain&&null===o||"!"===o?v=[!0,!1]:null===o?v=[!1,!0]:v=[!1,!1],i=new f.ScalarEvent(s,o,v,r.value,u,c,r.style),this.state=this.states.pop();else if(this.checkToken(a.FlowSequenceStartToken))c=this.peekToken().endMark,i=new f.SequenceStartEvent(s,o,v,u,c,!0),this.state=this.parseFlowSequenceFirstEntry.bind(this);else if(this.checkToken(a.FlowMappingStartToken))c=this.peekToken().endMark,i=new f.MappingStartEvent(s,o,v,u,c,!0),this.state=this.parseFlowMappingFirstKey.bind(this);else if(t&&this.checkToken(a.BlockSequenceStartToken))c=this.peekToken().startMark,i=new f.SequenceStartEvent(s,o,v,u,c,!1),this.state=this.parseBlockSequenceFirstEntry.bind(this);else if(t&&this.checkToken(a.BlockMappingStartToken))c=this.peekToken().startMark,i=new f.MappingStartEvent(s,o,v,u,c,!1),this.state=this.parseBlockMappingFirstKey.bind(this);else{if(null===s&&null===o)throw m=t?"block":"flow",r=this.peekToken(),new l("while parsing a "+m+" node",u,"expected the node content, but found "+r.constructor.id,r.startMark);i=new f.ScalarEvent(s,o,[v,!1],"",u,c),this.state=this.states.pop()}}return i},h.prototype.parseBlockSequenceFirstEntry=function(){var t=this.getToken();return this.marks.push(t.startMark),this.parseBlockSequenceEntry()},h.prototype.parseBlockSequenceEntry=function(){var t,n;if(this.checkToken(a.BlockEntryToken))return t=this.getToken(),this.checkToken(a.BlockEntryToken,a.BlockEndToken)?(this.state=this.parseBlockSequenceEntry.bind(this),this.processEmptyScalar(t.endMark)):(this.states.push(this.parseBlockSequenceEntry.bind(this)),this.parseBlockNode());if(!this.checkToken(a.BlockEndToken))throw t=this.peekToken(),new l("while parsing a block collection",this.marks[this.marks.length-1],"expected , but found "+t.constructor.id,t.startMark);return t=this.getToken(),n=new f.SequenceEndEvent(t.startMark,t.endMark),this.state=this.states.pop(),this.marks.pop(),n},h.prototype.parseIndentlessSequenceEntry=function(){var t,n;return this.checkToken(a.BlockEntryToken)?(t=this.getToken(),this.checkToken(a.BlockEntryToken,a.KeyToken,a.ValueToken,a.BlockEndToken)?(this.state=this.parseIndentlessSequenceEntry.bind(this),this.processEmptyScalar(t.endMark)):(this.states.push(this.parseIndentlessSequenceEntry.bind(this)),this.parseBlockNode())):(t=this.peekToken(),n=new f.SequenceEndEvent(t.startMark,t.startMark),this.state=this.states.pop(),n)},h.prototype.parseBlockMappingFirstKey=function(){var t=this.getToken();return this.marks.push(t.startMark),this.parseBlockMappingKey()},h.prototype.parseBlockMappingKey=function(){var t,n;if(this.checkToken(a.KeyToken))return t=this.getToken(),this.checkToken(a.KeyToken,a.ValueToken,a.BlockEndToken)?(this.state=this.parseBlockMappingValue.bind(this),this.processEmptyScalar(t.endMark)):(this.states.push(this.parseBlockMappingValue.bind(this)),this.parseBlockNodeOrIndentlessSequence());if(!this.checkToken(a.BlockEndToken))throw t=this.peekToken(),new l("while parsing a block mapping",this.marks[this.marks.length-1],"expected , but found "+t.constructor.id,t.startMark);return t=this.getToken(),n=new f.MappingEndEvent(t.startMark,t.endMark),this.state=this.states.pop(),this.marks.pop(),n},h.prototype.parseBlockMappingValue=function(){var t;return this.checkToken(a.ValueToken)?(t=this.getToken(),this.checkToken(a.KeyToken,a.ValueToken,a.BlockEndToken)?(this.state=this.parseBlockMappingKey.bind(this),this.processEmptyScalar(t.endMark)):(this.states.push(this.parseBlockMappingKey.bind(this)),this.parseBlockNodeOrIndentlessSequence())):(this.state=this.parseBlockMappingKey.bind(this),t=this.peekToken(),this.processEmptyScalar(t.startMark))},h.prototype.parseFlowSequenceFirstEntry=function(){var t=this.getToken();return this.marks.push(t.startMark),this.parseFlowSequenceEntry(!0)},h.prototype.parseFlowSequenceEntry=function(t){var n,r;t=t||!1;if(!this.checkToken(a.FlowSequenceEndToken)){if(!t){if(!this.checkToken(a.FlowEntryToken))throw n=this.peekToken(),new l("while parsing a flow sequence",this.marks[this.marks.length-1],"expected ',' or ']', but got "+n.constructor.id,n.startMark);this.getToken()}if(this.checkToken(a.KeyToken))return n=this.peekToken(),r=new f.MappingStartEvent(null,null,!0,n.startMark,n.endMark,!0),this.state=this.parseFlowSequenceEntryMappingKey.bind(this),r;if(!this.checkToken(a.FlowSequenceEndToken))return this.states.push(this.parseFlowSequenceEntry.bind(this)),this.parseFlowNode()}return n=this.getToken(),r=new f.SequenceEndEvent(n.startMark,n.endMark),this.state=this.states.pop(),this.marks.pop(),r},h.prototype.parseFlowSequenceEntryMappingKey=function(){var t=this.getToken();return this.checkToken(a.ValueToken,a.FlowEntryToken,a.FlowSequenceEndToken)?(this.state=this.parseFlowSequenceEntryMappingValue.bind(this),this.processEmptyScalar(t.endMark)):(this.states.push(this.parseFlowSequenceEntryMappingValue.bind(this)),this.parseFlowNode())},h.prototype.parseFlowSequenceEntryMappingValue=function(){var t;return this.checkToken(a.ValueToken)?(t=this.getToken(),this.checkToken(a.FlowEntryToken,a.FlowSequenceEndToken)?(this.state=this.parseFlowSequenceEntryMappingEnd.bind(this),this.processEmptyScalar(t.endMark)):(this.states.push(this.parseFlowSequenceEntryMappingEnd.bind(this)),this.parseFlowNode())):(this.state=this.parseFlowSequenceEntryMappingEnd.bind(this),t=this.peekToken(),this.processEmptyScalar(t.startMark))},h.prototype.parseFlowSequenceEntryMappingEnd=function(){var t;return this.state=this.parseFlowSequenceEntry.bind(this),t=this.peekToken(),new f.MappingEndEvent(t.startMark,t.startMark)},h.prototype.parseFlowMappingFirstKey=function(){var t=this.getToken();return this.marks.push(t.startMark),this.parseFlowMappingKey(!0)},h.prototype.parseFlowMappingKey=function(t){var n,r;t=t||!1;if(!this.checkToken(a.FlowMappingEndToken)){if(!t){if(!this.checkToken(a.FlowEntryToken))throw n=this.peekToken(),new l("while parsing a flow mapping",this.marks[this.marks.length-1],"expected ',' or '}', but got "+n.constructor.id,n.startMark);this.getToken()}if(this.checkToken(a.KeyToken))return n=this.getToken(),this.checkToken(a.ValueToken,a.FlowEntryToken,a.FlowMappingEndToken)?(this.state=this.parseFlowMappingValue.bind(this),this.processEmptyScalar(n.endMark)):(this.states.push(this.parseFlowMappingValue.bind(this)),this.parseFlowNode());if(!this.checkToken(a.FlowMappingEndToken))return this.states.push(this.parseFlowMappingEmptyValue.bind(this)),this.parseFlowNode()}return n=this.getToken(),r=new f.MappingEndEvent(n.startMark,n.endMark),this.state=this.states.pop(),this.marks.pop(),r},h.prototype.parseFlowMappingValue=function(){var t;return this.checkToken(a.ValueToken)?(t=this.getToken(),this.checkToken(a.FlowEntryToken,a.FlowMappingEndToken)?(this.state=this.parseFlowMappingKey.bind(this),this.processEmptyScalar(t.endMark)):(this.states.push(this.parseFlowMappingKey.bind(this)),this.parseFlowNode())):(this.state=this.parseFlowMappingKey.bind(this),t=this.peekToken(),this.processEmptyScalar(t.startMark))},h.prototype.parseFlowMappingEmptyValue=function(){return this.state=this.parseFlowMappingKey.bind(this),this.processEmptyScalar(this.peekToken().startMark)},h.prototype.processEmptyScalar=function(t){return new f.ScalarEvent(null,null,[!0,!1],"",t,t)},t.exports.Parser=h}),e.define("/lib/js-yaml/events.js",function(e,t,n,r,i,s){"use strict";function a(e,t){this.startMark=e||null,this.endMark=t||null}function f(e,t,n){a.call(this,t,n),this.anchor=e}function l(e,t,n,r,i,s){f.call(this,e,r,i),this.tag=t,this.implicit=n,this.flowStyle=s||null}function c(){a.apply(this,arguments)}function h(e,t,n){a.call(this,e,t),this.encoding=n||null}function p(){a.apply(this,arguments)}function d(e,t,n,r,i){a.call(this,e,t),this.explicit=n||null,this.version=r||null,this.tags=i||null}function v(e,t,n){a.call(this,e,t),this.explicit=n||null}function m(){f.apply(this,arguments)}function g(e,t,n,r,i,s,o){f.call(this,e,i,s),this.tag=t,this.implicit=n,this.value=r,this.style=o||null}function y(){l.apply(this,arguments)}function b(){c.apply(this,arguments)}function w(){l.apply(this,arguments)}function E(){c.apply(this,arguments)}var o=e("./common"),u=["anchor","tag","implicit","value"];a.prototype.hash=a.prototype.toString=function S(){var e=this,t=[];return Object.getOwnPropertyNames(this).forEach(function(n){0<=u.indexOf(n)&&t.push(n+"="+e[n])}),this.constructor.name+"("+t.join(", ")+")"},o.inherits(f,a),o.inherits(l,f),o.inherits(c,a),o.inherits(h,a),o.inherits(p,a),o.inherits(d,a),o.inherits(v,a),o.inherits(m,f),o.inherits(g,f),o.inherits(y,l),o.inherits(b,c),o.inherits(w,l),o.inherits(E,c),t.exports.NodeEvent=f,t.exports.CollectionStartEvent=l,t.exports.CollectionEndEvent=c,t.exports.StreamStartEvent=h,t.exports.StreamEndEvent=p,t.exports.DocumentStartEvent=d,t.exports.DocumentEndEvent=v,t.exports.AliasEvent=m,t.exports.ScalarEvent=g,t.exports.SequenceStartEvent=y,t.exports.SequenceEndEvent=b,t.exports.MappingStartEvent=w,t.exports.MappingEndEvent=E}),e.define("/lib/js-yaml/composer.js",function(e,t,n,r,i,s){"use strict";function l(){f.MarkedYAMLError.apply(this,arguments),this.name="ComposerError"}function c(){this.anchors={}}var o=e("./common"),u=e("./nodes"),a=e("./events"),f=e("./errors");o.inherits(l,f.MarkedYAMLError),c.prototype.checkNode=function(){return this.checkEvent(a.StreamStartEvent)&&this.getEvent(),!this.checkEvent(a.StreamEndEvent)},c.prototype.getNode=function(){return this.checkEvent(a.StreamEndEvent)?null:this.composeDocument()},c.prototype.getSingleNode=function(){var t=null;this.getEvent(),this.checkEvent(a.StreamEndEvent)||(t=this.composeDocument());if(!this.checkEvent(a.StreamEndEvent))throw new l("expected a single document in the stream",t.startMark,"but found another document",this.getEvent().startMark);return this.getEvent(),t},c.prototype.composeDocument=function(){var t;return this.getEvent(),t=this.composeNode(null,null),this.getEvent(),this.anchors={},t},c.prototype.composeNode=function(t,n){var r=null,i,s;if(this.checkEvent(a.AliasEvent)){i=this.getEvent(),s=i.anchor;if(undefined===this.anchors[s])throw new l(null,null,"found undefined alias "+s,i.startMark);return this.anchors[s]}i=this.peekEvent(),s=i.anchor;if(null!==s&&undefined!==this.anchors[s])throw new l("found duplicate anchor "+s+"; first occurence",this.anchors[s].startMark,"second occurence",i.startMark);return this.checkEvent(a.ScalarEvent)?r=this.composeScalarNode(s):this.checkEvent(a.SequenceStartEvent)?r=this.composeSequenceNode(s):this.checkEvent(a.MappingStartEvent)&&(r=this.composeMappingNode(s)),r},c.prototype.composeScalarNode=function(t){var n,r,i;return n=this.getEvent(),r=n.tag,null===r?r=this.resolve(u.ScalarNode,n.value,n.implicit):"!"===r&&(r=this.resolve(u.ScalarNode,n.value,!1)),i=new u.ScalarNode(r,n.value,n.startMark,n.endMark,n.style),null!==t&&(this.anchors[t]=i),i},c.prototype.composeSequenceNode=function(t){var n,r,i,s,o;n=this.getEvent(),r=n.tag,null===r?r=this.resolve(u.SequenceNode,null,n.implicit):"!"===r&&(r=this.resolve(u.SequenceNode,null,!1)),i=new u.SequenceNode(r,[],n.startMark,null,n.flowStyle),null!==t&&(this.anchors[t]=i),s=0;while(!this.checkEvent(a.SequenceEndEvent))i.value.push(this.composeNode(i,s)),s+=1;return o=this.getEvent(),i.endMark=o.endMark,i},c.prototype.composeMappingNode=function(t){var n,r,i,s,o,f;n=this.getEvent(),r=n.tag,null===r?r=this.resolve(u.MappingNode,null,n.implicit):"!"===r&&(r=this.resolve(u.MappingNode,null,!1)),i=new u.MappingNode(r,[],n.startMark,null,n.flowStyle),null!==t&&(this.anchors[t]=i);while(!this.checkEvent(a.MappingEndEvent))s=this.composeNode(i,null),o=this.composeNode(i,s),i.value.push([s,o]);return f=this.getEvent(),i.endMark=f.endMark,i},t.exports.Composer=c}),e.define("/lib/js-yaml/nodes.js",function(e,t,n,r,i,s){"use strict";function u(e,t,n,r){this.tag=e,this.value=t,this.startMark=n||null,this.endMark=r||null}function a(e,t,n,r,i){u.call(this,e,t,n,r),this.style=i||null}function f(e,t,n,r,i){u.call(this,e,t,n,r),this.flowStyle=i||null}function l(){f.apply(this,arguments)}function c(){f.apply(this,arguments)}var o=e("./common");u.prototype.hash=u.prototype.toString=function h(){var e=this.value.toString();return this.constructor.name+"("+this.tag+", "+e+")"},o.inherits(a,u),a.id="scalar",o.inherits(f,u),o.inherits(l,f),l.id="sequence",o.inherits(c,f),c.id="mapping",t.exports.ScalarNode=a,t.exports.SequenceNode=l,t.exports.MappingNode=c}),e.define("/lib/js-yaml/resolver.js",function(e,t,n,r,i,s){"use strict";function c(){this.resolverExactPaths=[],this.resolverPrefixPaths=[],this.yamlImplicitResolvers=c.yamlImplicitResolvers}function h(){c.apply(this,arguments),this.yamlImplicitResolvers=h.yamlImplicitResolvers}var o=e("./common"),u=e("./nodes"),a="tag:yaml.org,2002:str",f="tag:yaml.org,2002:seq",l="tag:yaml.org,2002:map";c.yamlImplicitResolvers={},c.addImplicitResolver=function(t,n,r){var i=this;undefined===r&&(r=[null]),r.forEach(function(e){undefined===i.yamlImplicitResolvers[e]&&(i.yamlImplicitResolvers[e]=[]),i.yamlImplicitResolvers[e].push([t,n])})},c.prototype.resolve=function(t,n,r){var i,s,o,c;if(t===u.ScalarNode&&r&&r[0]){n===""?i=this.yamlImplicitResolvers[""]||[]:i=this.yamlImplicitResolvers[n[0]]||[],i=i.concat(this.yamlImplicitResolvers[null]||[]);for(s=0;s=r[0].length&&(n=n.slice(1,n.length-r[0].length),i=r[1]),new RegExp(n,i)},d.prototype.constructJavascriptUndefined=function(t){var n;return n},d.prototype.constructJavascriptFunction=function(t){var n=new Function("return "+this.constructScalar(t));return n()},d.addConstructor("tag:yaml.org,2002:js/undefined",d.prototype.constructJavascriptUndefined),d.addConstructor("tag:yaml.org,2002:js/regexp",d.prototype.constructJavascriptRegExp),d.addConstructor("tag:yaml.org,2002:js/function",d.prototype.constructJavascriptFunction),t.exports.BaseConstructor=h,t.exports.SafeConstructor=p,t.exports.Constructor=d}),e("./index")}(); \ No newline at end of file diff --git a/support/browserify/30_extensions.js b/support/browserify/30_extensions.js index d6133ac8..ac1d4e93 100644 --- a/support/browserify/30_extensions.js +++ b/support/browserify/30_extensions.js @@ -59,3 +59,10 @@ if (!Object.getOwnPropertyNames) { return names; }; } + + +if (!Object.create) { + Object.create = function () { + return {}; + } +}