forked from nodeca/js-yaml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjs-yaml.min.js
23 lines (23 loc) · 67.5 KB
/
js-yaml.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*!
* Copyright (C) 2011 by Vitaly Puzrin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/var jsyaml=window.jsyaml=function(){var e=function(t,n){var r=e.resolve(t,n||"/"),i=e.modules[r];if(!i)throw new Error("Failed to resolve module "+t+", tried "+r);var s=e.cache[r],o=s?s.exports:i();return o};return e.paths=[],e.modules={},e.cache={},e.extensions=[".js",".coffee"],e._core={assert:!0,events:!0,fs:!0,path:!0,vm:!0},e.resolve=function(){return function(t,n){function u(t){t=r.normalize(t);if(e.modules[t])return t;for(var n=0;n<e.extensions.length;n++){var i=e.extensions[n];if(e.modules[t+i])return t+i}}function a(t){t=t.replace(/\/+$/,"");var n=r.normalize(t+"/package.json");if(e.modules[n]){var i=e.modules[n](),s=i.browserify;if(typeof s=="object"&&s.main){var o=u(r.resolve(t,s.main));if(o)return o}else if(typeof s=="string"){var o=u(r.resolve(t,s));if(o)return o}else if(i.main){var o=u(r.resolve(t,i.main));if(o)return o}}return u(t+"/index")}function f(e,t){var n=l(t);for(var r=0;r<n.length;r++){var i=n[r],s=u(i+"/"+e);if(s)return s;var o=a(i+"/"+e);if(o)return o}var s=u(e);if(s)return s}function l(e){var t;e==="/"?t=[""]:t=r.normalize(e).split("/");var n=[];for(var i=t.length-1;i>=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<u.length;a++){var f=u[a];if(f.slice(0,o.length+1)===o+"/"){var l=f.slice(o.length);e.modules[n+l]=e.modules[o+l]}else f===o&&(e.modules[n]=e.modules[o])}},function(){var t={};e.define=function(n,r){e.modules.__browserify_process&&(t=e.modules.__browserify_process());var i=e._core[n]?"":e.modules.path().dirname(n),s=function(t){var n=e(t,i),r=e.cache[e.resolve(t,i)];return r.parent===null&&(r.parent=o),n};s.resolve=function(t){return e.resolve(t,i)},s.modules=e.modules,s.define=e.define,s.cache=e.cache;var o={id:n,filename:n,exports:{},loaded:!1,parent:null};e.modules[n]=function(){return e.cache[n]=o,r.call(o.exports,s,o,o.exports,i,n,t),o.loaded=!0,o.exports}}}(),e.define("path",function(e,t,n,r,i,s){function o(e,t){var n=[];for(var r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}function u(e,t){var n=0;for(var r=e.length;r>=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<r;n+=1)if(!!arguments[n]&&"object"==typeof arguments[n])for(i in arguments[n])arguments[n].hasOwnProperty(i)&&-1===s.indexOf(i)&&(t[i]=arguments[n][i]);return t},o.inherits=function(t,n){var r=function(){};r.prototype=n.prototype,t.prototype=new r,o.extend(t.prototype,n.prototype,{except:["arguments","length","name","prototype","caller"]}),o.extend(t.prototype,{constructor:t}),t.__parent__=n},o.isInstanceOf=function(t,n){var r;return t instanceof n?!0:!t||!t.constructor?!1:(r=t.constructor.__parent__,r===n||o.isInstanceOf(r,n))},o.each=function(t,n,r){var i,s,o;if(null===t||undefined===t)return;r=r||n;if(t.forEach===Array.prototype.forEach)t.forEach(n,r);else{i=Object.getOwnPropertyNames(t);for(s=0,o=i.length;s<o;s+=1)n.call(r,t[i[s]],i[s],t)}},o.reverse=function(t){var n=[],r,i;for(r=0,i=t.length;r<i;r+=1)n.unshift(t[r]);return n},o.decodeBase64=function(){var e="=",t=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1];return function(r){var i,s,o=0,u=[],a,f;a=0,f=0;for(o=0;o<r.length;o+=1){s=r.charCodeAt(o),i=t[s&127];if(10!==s&&13!==s){if(-1===i)throw new Error("Illegal characters (code="+s+") in position "+o+": ordinal not in range(0..128)");f=f<<6|i,a+=6,a>=8&&(a-=8,e!==r.charAt(o)&&u.push(f>>a&255),f&=(1<<a)-1)}}if(a)throw new Error("Corrupted base64 string");return new Buffer(u)}}(),o.Populator=function(t,n,r){if(!(this instanceof o.Populator))return new o.Populator(t,n,r);this.data=t,this.execute=function(){n.call(r||n)}},o.Hash=function(t){var n,r,i;if(!(this instanceof o.Hash))return new o.Hash(t);i=0,n=[],r=[],this.store=function(t,s){var o=n.indexOf(t);if(0<=o){r[o]=s;return}o=i,i+=1,n[o]=t,r[o]=s},this.remove=function(t){var i=n.indexOf(t);0<=i&&(delete n[i],delete r[i])},this.hasKey=function(t){return 0<=n.indexOf(t)},this.get=function(i){var s=n.indexOf(i);return 0<=s?r[s]:t}}}),e.define("/lib/js-yaml/reader.js",function(e,t,n,r,i,s){"use strict";function c(e,t,n,r,i){a.YAMLError.apply(this),this.name="ReaderError",this.name=e,this.position=t,this.character=n,this.encoding=r,this.reason=i,this.toString=function s(){return"unacceptable character "+this.character+": "+this.reason+'\n in "'+this.name+'", position '+this.position}}function h(e){this.name="<unicode string>",this.stream=null,this.streamPointer=0,this.eof=!0,this.buffer="",this.pointer=0,this.rawBuffer=null,this.encoding="utf-8",this.index=0,this.line=0,this.column=0,"string"==typeof e?(this.name="<unicode string>",this.checkPrintable(e),this.buffer=e+"\0"):Buffer.isBuffer(e)?(this.name="<buffer>",this.rawBuffer=e,this.update(1)):(this.name="<file>",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.length<t){this.eof||this.updateRaw(),n=this.rawBuffer,this.checkPrintable(n),this.buffer+=n,this.rawBuffer=this.rawBuffer.slice(n.length);if(this.eof){this.buffer+="\0",this.rawBuffer=null;break}}},h.prototype.updateRaw=function(t){var n=new Buffer(+t||4096),r,i;r=o.readSync(this.stream,n,0,n.length),null===this.rawBuffer?this.rawBuffer=n.slice(0,r):(i=new Buffer(this.rawBuffer.length+r),this.rawBuffer.copy(i),n.copy(i,this.rawBuffer.length),this.rawBuffer=i),this.streamPointer+=r;if(!r||r<n.length)this.eof=!0},t.exports.Reader=h}),e.define("/lib/js-yaml/errors.js",function(e,t,n,r,i,s){"use strict";function a(e,t,n,r,i,s){this.name=e,this.index=t,this.line=n,this.column=r,this.buffer=i,this.pointer=s}function f(e){o.extend(this,Error.prototype.constructor.call(this,e)),this.name="YAMLError"}function l(e){var t="Error ";return null!==e.problemMark&&(t+="on line "+(e.problemMark.line+1)+", col "+(e.problemMark.column+1)+": "),null!==e.problem&&(t+=e.problem),null!==e.note&&(t+=e.note),t}function c(e){var t=[];return null!==e.context&&t.push(e.context),null!==e.contextMark&&(null===e.problem||null===e.problemMark||e.contextMark.name!==e.problemMark.name||e.contextMark.line!==e.problemMark.line||e.contextMark.column!==e.problemMark.column)&&t.push(e.contextMark.toString()),null!==e.problem&&t.push(e.problem),null!==e.problemMark&&t.push(e.problemMark.toString()),null!==e.note&&t.push(e.note),t.join("\n")}function h(e,t,n,r,i){f.call(this),this.name="MarkedYAMLError",this.context=e||null,this.contextMark=t||null,this.problem=n||null,this.problemMark=r||null,this.note=i||null,this.toString=function s(e){return e?l(this):c(this)}}var o=e("./common"),u=function(t,n){var r="",i;for(i=0;i<n;i+=1)r+=t;return r};a.prototype.getSnippet=function(e,t){var n,r,i,s,o;if(!this.buffer)return null;e=e||4,t=t||75,n="",r=this.pointer;while(r>0&&-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(s<this.buffer.length&&-1==="\0\r\n
\u2028\u2029".indexOf(this.buffer[s])){s+=1;if(s-this.pointer>t/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<t)n.push(e),t-=1,e+=1;return n};o.inherits(h,u.MarkedYAMLError),d.prototype.checkToken=function(){var t;while(this.needMoreTokens())this.fetchMoreTokens();if(this.tokens.length){if(!arguments.length)return!0;for(t=0;t<arguments.length;t+=1)if(o.isInstanceOf(this.tokens[0],arguments[t]))return!0}return!1},d.prototype.peekToken=function(){while(this.needMoreTokens())this.fetchMoreTokens();return this.tokens.length?this.tokens[0]:null},d.prototype.getToken=function(){var t=null;while(this.needMoreTokens())this.fetchMoreTokens();return this.tokens.length&&(this.tokensTaken+=1,t=this.tokens.shift()),t},d.prototype.needMoreTokens=function(){return this.done?!1:this.tokens.length?(this.stalePossibleSimpleKeys(),this.nextPossibleSimpleKey()===this.tokensTaken?!0:!1):!0},d.prototype.fetchMoreTokens=function(){var t;this.scanToNextToken(),this.stalePossibleSimpleKeys(),this.unwindIndent(this.column),t=this.peek();if(t==="\0")return this.fetchStreamEnd();if(t==="%"&&this.checkDirective())return this.fetchDirective();if(t==="-"&&this.checkDocumentStart())return this.fetchDocumentStart();if(t==="."&&this.checkDocumentEnd())return this.fetchDocumentEnd();if(t==="[")return this.fetchFlowSequenceStart();if(t==="{")return this.fetchFlowMappingStart();if(t==="]")return this.fetchFlowSequenceEnd();if(t==="}")return this.fetchFlowMappingEnd();if(t===",")return this.fetchFlowEntry();if(t==="-"&&this.checkBlockEntry())return this.fetchBlockEntry();if(t==="?"&&this.checkKey())return this.fetchKey();if(t===":"&&this.checkValue())return this.fetchValue();if(t==="*")return this.fetchAlias();if(t==="&")return this.fetchAnchor();if(t==="!")return this.fetchTag();if(t==="|"&&!this.flowLevel)return this.fetchLiteral();if(t===">"&&!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.tokenNumber<t)t=e.tokenNumber}),t},d.prototype.stalePossibleSimpleKeys=function(){o.each(this.possibleSimpleKeys,function(e,t){if(e.line!==this.line||1024<this.index-e.index){if(e.required)throw new h("while scanning a simple key",e.mark,"could not found expected ':'",this.getMark());delete this.possibleSimpleKeys[t]}},this)},d.prototype.savePossibleSimpleKey=function(){var t,n,r;t=!this.flowLevel&&this.indent===this.column;if(!this.allowSimpleKey&&t)throw new u.YAMLError("Simple key is required");this.allowSimpleKey&&(this.removePossibleSimpleKey(),n=this.tokensTaken+this.tokens.length,r=new p(n,t,this.index,this.line,this.column,this.getMark()),this.possibleSimpleKeys[this.flowLevel]=r)},d.prototype.removePossibleSimpleKey=function(){var t;if(undefined!==this.possibleSimpleKeys[this.flowLevel]){t=this.possibleSimpleKeys[this.flowLevel];if(t.required)throw new h("while scanning a simple key",t.mark,"could not found expected ':'",this.getMark());delete this.possibleSimpleKeys[this.flowLevel]}},d.prototype.unwindIndent=function(t){var n;if(this.flowLevel)return;while(this.indent>t)n=this.getMark(),this.indent=this.indents.pop(),this.tokens.push(new a.BlockEndToken(n,n))},d.prototype.addIndent=function(t){return this.indent<t?(this.indents.push(this.indent),this.indent=t,!0):!1},d.prototype.fetchStreamStart=function(){var t;t=this.getMark(),this.tokens.push(new a.StreamStartToken(t,t,this.encoding))},d.prototype.fetchStreamEnd=function(){var t;this.unwindIndent(-1),this.removePossibleSimpleKey(),this.allowSimpleKey=!1,this.possibleSimpleKeys={},t=this.getMark(),this.tokens.push(new a.StreamEndToken(t,t)),this.done=!0},d.prototype.fetchDirective=function(){this.unwindIndent(-1),this.removePossibleSimpleKey(),this.allowSimpleKey=!1,this.tokens.push(this.scanDirective())},d.prototype.fetchDocumentStart=function(){this.fetchDocumentIndicator(a.DocumentStartToken)},d.prototype.fetchDocumentEnd=function(){this.fetchDocumentIndicator(a.DocumentEndToken)},d.prototype.fetchDocumentIndicator=function(t){var n,r;this.unwindIndent(-1),this.removePossibleSimpleKey(),this.allowSimpleKey=!1,n=this.getMark(),this.forward(3),r=this.getMark(),this.tokens.push(new t(n,r))},d.prototype.fetchFlowSequenceStart=function(){this.fetchFlowCollectionStart(a.FlowSequenceStartToken)},d.prototype.fetchFlowMappingStart=function(){this.fetchFlowCollectionStart(a.FlowMappingStartToken)},d.prototype.fetchFlowCollectionStart=function(t){var n,r;this.savePossibleSimpleKey(),this.flowLevel+=1,this.allowSimpleKey=!0,n=this.getMark(),this.forward(),r=this.getMark(),this.tokens.push(new t(n,r))},d.prototype.fetchFlowSequenceEnd=function(){this.fetchFlowCollectionEnd(a.FlowSequenceEndToken)},d.prototype.fetchFlowMappingEnd=function(){this.fetchFlowCollectionEnd(a.FlowMappingEndToken)},d.prototype.fetchFlowCollectionEnd=function(t){var n,r;this.removePossibleSimpleKey(),this.flowLevel-=1,this.allowSimpleKey=!1,n=this.getMark(),this.forward(),r=this.getMark(),this.tokens.push(new t(n,r))},d.prototype.fetchFlowEntry=function(){var t,n;this.allowSimpleKey=!0,this.removePossibleSimpleKey(),t=this.getMark(),this.forward(),n=this.getMark(),this.tokens.push(new a.FlowEntryToken(t,n))},d.prototype.fetchBlockEntry=function(){var t,n,r;if(!this.flowLevel){if(!this.allowSimpleKey)throw new h(null,null,"sequence entries are not allowed here",this.getMark());this.addIndent(this.column)&&(t=this.getMark(),this.tokens.push(new a.BlockSequenceStartToken(t,t)))}this.allowSimpleKey=!0,this.removePossibleSimpleKey(),n=this.getMark(),this.forward(),r=this.getMark(),this.tokens.push(new a.BlockEntryToken(n,r))},d.prototype.fetchKey=function(){var t,n,r;if(!this.flowLevel){if(!this.allowSimpleKey)throw new h(null,null,"mapping keys are not allowed here",this.getMark());this.addIndent(this.column)&&(t=this.getMark(),this.tokens.push(new a.BlockMappingStartToken(t,t)))}this.allowSimpleKey=!this.flowLevel,this.removePossibleSimpleKey(),n=this.getMark(),this.forward(),r=this.getMark(),this.tokens.push(new a.KeyToken(n,r))},d.prototype.fetchValue=function(){var t,n,r,i;if(undefined!==this.possibleSimpleKeys[this.flowLevel])t=this.possibleSimpleKeys[this.flowLevel],delete this.possibleSimpleKeys[this.flowLevel],this.tokens.splice(t.tokenNumber-this.tokensTaken,0,new a.KeyToken(t.mark,t.mark)),this.flowLevel||this.addIndent(t.column)&&this.tokens.splice(t.tokenNumber-this.tokensTaken,0,new a.BlockMappingStartToken(t.mark,t.mark)),this.allowSimpleKey=!1;else{if(!this.flowLevel&&!this.allowSimpleKey)throw new h(null,null,"mapping values are not allowed here",this.getMark());this.flowLevel||this.addIndent(this.column)&&(n=this.getMark(),this.tokens.push(new a.BlockMappingStartToken(n,n))),this.allowSimpleKey=!this.flowLevel,this.removePossibleSimpleKey()}r=this.getMark(),this.forward(),i=this.getMark(),this.tokens.push(new a.ValueToken(r,i))},d.prototype.fetchAlias=function(){this.savePossibleSimpleKey(),this.allowSimpleKey=!1,this.tokens.push(this.scanAnchor(a.AliasToken))},d.prototype.fetchAnchor=function(){this.savePossibleSimpleKey(),this.allowSimpleKey=!1,this.tokens.push(this.scanAnchor(a.AnchorToken))},d.prototype.fetchTag=function(){this.savePossibleSimpleKey(),this.allowSimpleKey=!1,this.tokens.push(this.scanTag())},d.prototype.fetchLiteral=function(){this.fetchBlockScalar("|")},d.prototype.fetchFolded=function(){this.fetchBlockScalar(">")},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<t&&this.peek()===" ")this.forward();while(0<="\r\n
\u2028\u2029".indexOf(this.peek())){n.push(this.scanLineBreak()),r=this.getMark();while(this.column<t&&this.peek()===" ")this.forward()}return[n,r]},d.prototype.scanFlowScalar=function(t){var n,r,i,s,o;n=t==='"',r=[],i=this.getMark(),s=this.peek(),this.forward(),r=r.concat(this.scanFlowScalarNonSpaces(n,i));while(this.peek()!==s)r=r.concat(this.scanFlowScalarSpaces(n,i)),r=r.concat(this.scanFlowScalarNonSpaces(n,i));return this.forward(),o=this.getMark(),new a.ScalarToken(r.join(""),!1,i,o,t)},d.prototype.scanFlowScalarNonSpaces=function(t,n){var r=this,i,s,o,u,a;a=function(e){if(-1==="0123456789ABCDEFabcdef".indexOf(r.peek(e)))throw new h("while scanning a double-quoted scalar",n,"expected escape sequence of "+s+" hexdecimal numbers, but found "+r.peek(e),r.getMark())},i=[];for(;;){s=0;while(-1==="'\"\\\0 \r\n
\u2028\u2029".indexOf(this.peek(s)))s+=1;s&&(i.push(this.prefix(s)),this.forward(s)),o=this.peek();if(!t&&o==="'"&&this.peek(1)==="'")i.push("'"),this.forward(2);else if(t&&o==="'"||!t&&0<='"\\'.indexOf(o))i.push(o),this.forward();else{if(!t||o!=="\\")return i;this.forward(),o=this.peek();if(f.hasOwnProperty(o))i.push(f[o]),this.forward();else if(l.hasOwnProperty(o))s=l[o],this.forward(),c(s).forEach(a),u=parseInt(this.prefix(s),16),i.push(String.fromCharCode(u)),this.forward(s);else{if(!(0<="\r\n
\u2028\u2029".indexOf(o)))throw new h("while scanning a double-quoted scalar",n,"found unknown escape character "+o,this.getMark());this.scanLineBreak(),i=i.concat(this.scanFlowScalarBreaks(t,n))}}}},d.prototype.scanFlowScalarSpaces=function(t,n){var r,i,s,o,u,a;r=[],i=0;while(0<=" ".indexOf(this.peek(i)))i+=1
;s=this.prefix(i),this.forward(i),o=this.peek();if(o==="\0")throw new h("while scanning a quoted scalar",n,"found unexpected end of stream",this.getMark());return 0<="\r\n
\u2028\u2029".indexOf(o)?(u=this.scanLineBreak(),a=this.scanFlowScalarBreaks(t,n),u!=="\n"?r.push(u):a||r.push(" "),r=r.concat(a)):r.push(s),r},d.prototype.scanFlowScalarBreaks=function(t,n){var r=[],i;for(;;){i=this.prefix(3);if((i==="---"||i==="...")&&0<="\0 \r\n
\u2028\u2029".indexOf(this.peek(3)))throw new h("while scanning a quoted scalar",n,"found unexpected document separator",this.getMark());while(0<=" ".indexOf(this.peek()))this.forward();if(!(0<="\r\n
\u2028\u2029".indexOf(this.peek())))return r;r.push(this.scanLineBreak())}},d.prototype.scanPlain=function(){var t,n,r,i,s,o,u;n=[],r=this.getMark(),i=r,s=this.indent+1,o=[];for(;;){u=0;if(this.peek()==="#")break;for(;;){t=this.peek(u);if(0<="\0 \r\n
\u2028\u2029".indexOf(t)||!this.flowLevel&&t===":"&&0<="\0 \r\n
\u2028\u2029".indexOf(this.peek(u+1))||this.flowLevel&&0<=",:?[]{}".indexOf(t))break;u+=1}if(this.flowLevel&&t===":"&&-1==="\0 \r\n
\u2028\u2029,[]{}".indexOf(this.peek(u+1)))throw this.forward(u),new h("while scanning a plain scalar",r,"found unexpected ':'",this.getMark(),"Please check http://pyyaml.org/wiki/YAMLColonInFlowContext for details.");if(u===0)break;this.allowSimpleKey=!1,n=n.concat(o),n.push(this.prefix(u)),this.forward(u),i=this.getMark(),o=this.scanPlainSpaces(s,r);if(!Array.isArray(o)||!o.length||this.peek()==="#"||!this.flowLevel&&this.column<s)break}return new a.ScalarToken(n.join(""),!0,r,i)},d.prototype.scanPlainSpaces=function(t,n){var r,i,s,o,u,a,f;r=[],i=0;while(this.peek(i)===" ")i+=1;s=this.prefix(i),this.forward(i),o=this.peek();if(0<="\r\n
\u2028\u2029".indexOf(o)){f=this.scanLineBreak(),this.allowSimpleKey=!0,u=this.prefix(3);if((u==="---"||u==="...")&&0<="\0 \r\n
\u2028\u2029".indexOf(this.peek(3)))return;a=[];while(0<=" \r\n
\u2028\u2029".indexOf(this.peek()))if(this.peek()===" ")this.forward();else{a.push(this.scanLineBreak()),u=this.prefix(3);if((u==="---"||u==="...")&&0<="\0 \r\n
\u2028\u2029".indexOf(this.peek(3)))return}f!=="\n"?r.push(f):(!a||!a.length)&&r.push(" "),r=r.concat(a)}else s&&r.push(s);return r},d.prototype.scanTagHandle=function(t,n){var r,i,s;r=this.peek();if(r!=="!")throw new h("while scanning a "+t,n,"expected '!', but found "+r,this.getMark());i=1,r=this.peek(i);if(r!==" "){while(/^[0-9A-Za-z]/.test(r)||0<="-_".indexOf(r))i+=1,r=this.peek(i);if(r!=="!")throw this.forward(i),new h("while scanning a "+t,n,"expected '!', but found "+r,this.getMark());i+=1}return s=this.prefix(i),this.forward(i),s},d.prototype.scanTagUri=function(t,n){var r,i,s;r=[],i=0,s=this.peek(i);while(/^[0-9A-Za-z]/.test(s)||0<="-;/?:@&=+$,_.!~*'()[]%".indexOf(s))s==="%"?(r.push(this.prefix(i)),this.forward(i),i=0,r.push(this.scanUriEscapes(t,n))):i+=1,s=this.peek(i);i&&(r.push(this.prefix(i)),this.forward(i),i=0);if(!r.length)throw new h("while parsing a "+t,n,"expected URI, but found "+s,this.getMark());return r.join("")},d.prototype.scanUriEscapes=function(t,n){var r=this,i,s,o,u;i=[],s=this.getMark(),u=function(e){if(-1==="0123456789ABCDEFabcdef".indexOf(r.peek(e)))throw new h("while scanning a "+t,n,"expected URI escape sequence of 2 hexdecimal numbers, but found "+r.peek(e),r.getMark())};while(this.peek()==="%")this.forward(),c(2).forEach(u),i.push(parseInt(this.prefix(2),16)),this.forward(2);try{o=(new Buffer(i)).toString("utf8")}catch(a){throw new h("while scanning a "+t,n,a.toString(),s)}return o},d.prototype.scanLineBreak=function(){var t;return t=this.peek(),0<="\r\n
".indexOf(t)?(this.prefix(2)==="\r\n"?this.forward(2):this.forward(),"\n"):0<="\u2028\u2029".indexOf(t)?(this.forward(),t):""},t.exports.Scanner=d}),e.define("/lib/js-yaml/tokens.js",function(e,t,n,r,i,s){"use strict";function u(e,t){this.startMark=e||null,this.endMark=t||null}function a(e,t,n,r){u.call(this,n,r),this.name=e,this.value=t}function f(){u.apply(this,arguments)}function l(){u.apply(this,arguments)}function c(e,t,n){u.call(this,e,t),this.encoding=n||null}function h(){u.apply(this,arguments)}function p(){u.apply(this,arguments)}function d(){u.apply(this,arguments)}function v(){u.apply(this,arguments)}function m(){u.apply(this,arguments)}function g(){u.apply(this,arguments)}function y(){u.apply(this,arguments)}function b(){u.apply(this,arguments)}function w(){u.apply(this,arguments)}function E(){u.apply(this,arguments)}function S(){u.apply(this,arguments)}function x(){u.apply(this,arguments)}function T(e,t,n){u.call(this,t,n),this.value=e}function N(e,t,n){u.call(this,t,n),this.value=e}function C(e,t,n){u.call(this,t,n),this.value=e}function k(e,t,n,r,i){u.call(this,n,r),this.value=e,this.plain=t,this.style=i||null}var o=e("./common");u.prototype.hash=u.prototype.toString=function L(){var e=[],t=this;return Object.getOwnPropertyNames(this).forEach(function(n){/startMark|endMark|__meta__/.test(n)||e.push(n+":"+t[n])}),this.constructor.name+"("+e.join(", ")+")"},o.inherits(a,u),a.id="<directive>",o.inherits(f,u),f.id="<document start>",o.inherits(l,u),l.id="<document end>",o.inherits(c,u),c.id="<stream start>",o.inherits(h,u),h.id="<stream end>",o.inherits(p,u),p.id="<block sequence start>",o.inherits(d,u),d.id="<block mapping start>",o.inherits(v,u),v.id="<block end>",o.inherits(m,u),m.id="[",o.inherits(g,u),g.id="{",o.inherits(y,u),y.id="]",o.inherits(b,u),b.id="}",o.inherits(w,u),w.id="?",o.inherits(E,u),E.id=":",o.inherits(S,u),S.id="-",o.inherits(x,u),x.id=",",o.inherits(T,u),T.id="<alias>",o.inherits(N,u),N.id="<anchor>",o.inherits(C,u),C.id="<tag>",o.inherits(k,u),C.id="<scalar>",t.exports.DirectiveToken=a,t.exports.DocumentStartToken=f,t.exports.DocumentEndToken=l,t.exports.StreamStartToken=c,t.exports.StreamEndToken=h,t.exports.BlockSequenceStartToken=p,t.exports.BlockMappingStartToken=d,t.exports.BlockEndToken=v,t.exports.FlowSequenceStartToken=m,t.exports.FlowMappingStartToken=g,t.exports.FlowSequenceEndToken=y,t.exports.FlowMappingEndToken=b,t.exports.KeyToken=w,t.exports.ValueToken=E,t.exports.BlockEntryToken=S,t.exports.FlowEntryToken=x,t.exports.AliasToken=T,t.exports.AnchorToken=N,t.exports.TagToken=C,t.exports.ScalarToken=k}),e.define("/lib/js-yaml/parser.js",function(e,t,n,r,i,s){"use strict";function l(){u.MarkedYAMLError.apply(this,arguments),this.name="ParserError"}function h(e){this.currentEvent=null,this.yamlVersion=null,this.tagHandles={},this.states=[],this.marks=[],this.state=this.parseStreamStart.bind(this)}var o=e("./common"),u=e("./errors"),a=e("./tokens"),f=e("./events");o.inherits(l,u.MarkedYAMLError);var c={"!":"!","!!":"tag:yaml.org,2002:"};h.prototype.dispose=function(){this.states=[],this.state=null},h.prototype.checkEvent=function(){var t;null===this.currentEvent&&!!this.state&&(this.currentEvent=this.state());if(null!==this.currentEvent){if(0===arguments.length)return!0;for(t=0;t<arguments.length;t+=1)if(o.isInstanceOf(this.currentEvent,arguments[t]))return!0}return!1},h.prototype.peekEvent=function(){return null===this.currentEvent&&!!this.state&&(this.currentEvent=this.state()),this.currentEvent},h.prototype.getEvent=function(){var t;return null===this.currentEvent&&!!this.state&&(this.currentEvent=this.state()),t=this.currentEvent,this.currentEvent=null,t},h.prototype.parseStreamStart=function(){var t,n;return t=this.getToken(),n=new f.StreamStartEvent(t.startMark,t.endMark,t.encoding),this.state=this.parseImplicitDocumentStart.bind(this),n},h.prototype.parseImplicitDocumentStart=function(){var t,n;return this.checkToken(a.DirectiveToken,a.DocumentStartToken,a.StreamEndToken)?this.parseDocumentStart():(this.tagHandles=c,t=this.peekToken(),n=new f.DocumentStartEvent(t.startMark,t.startMark,!1),this.states.push(this.parseDocumentEnd.bind(this)),this.state=this.parseBlockNode.bind(this),n)},h.prototype.parseDocumentStart=function(){var t,n,r,i,s,o;while(this.checkToken(a.DocumentEndToken))this.getToken();if(this.checkToken(a.StreamEndToken)){t=this.getToken(),n=new f.StreamEndEvent(t.startMark,t.endMark);if(this.states&&this.states.length)throw new u.YAMLError("States supposed to be empty");if(this.marks&&this.marks.length)throw new u.YAMLError("Marks supposed to be empty");return this.state=null,n}t=this.peekToken(),s=t.startMark,o=this.processDirectives(),r=o.shift(),i=o.shift();if(!this.checkToken(a.DocumentStartToken))throw new l(null,null,"expected '<document start>', 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 <block end>, 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 <block end>, 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<i.length;s+=1){o=i[s][0],c=i[s][1];if(c.test(n))return o}}return t===u.ScalarNode?o=a:t===u.SequenceNode?o=f:t===u.MappingNode?o=l:o=null,o},o.inherits(h,c),h.yamlImplicitResolvers={},h.addImplicitResolver=c.addImplicitResolver,h.addImplicitResolver("tag:yaml.org,2002:bool",new RegExp("^(?:true|True|TRUE|false|False|FALSE)$"),["t","T","f","F"]),h.addImplicitResolver("tag:yaml.org,2002:float",new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),["-","+","0","1","2","3","4","5","6","7","8","9","."]),h.addImplicitResolver("tag:yaml.org,2002:int",new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?(?:0|[1-9][0-9_]*)|[-+]?0x[0-9a-fA-F_]+|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)$"),["-","+","0","1","2","3","4","5","6","7","8","9"]),h.addImplicitResolver("tag:yaml.org,2002:merge",new RegExp("^(?:<<)$"),["<"]),h.addImplicitResolver("tag:yaml.org,2002:null",new RegExp("^(?:~|null|Null|NULL|)$"),["~","n","N",""]),h.addImplicitResolver("tag:yaml.org,2002:timestamp",new RegExp("^(?:[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]|[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])?))?)$"),["0","1","2","3","4","5","6","7","8","9"]),h.addImplicitResolver("tag:yaml.org,2002:value",new RegExp("^(?:=)$"),["="]),h.addImplicitResolver("tag:yaml.org,2002:yaml",new RegExp("^(?:!|&|\\*)$"),["!","&","*"]),t.exports.BaseResolver=c,t.exports.Resolver=h}),e.define("/lib/js-yaml/constructor.js",function(e,t,n,r,i,s){"use strict";function f(){u.MarkedYAMLError.apply(this,arguments),this.name="ConstructorError"}function h(){this.constructedObjects=new o.Hash,this.recursiveObjects=new o.Hash,this.statePopulators=[],this.deepConstruct=!1,this.yamlConstructors=h.yamlConstructors}function p(){h.apply(this),this.yamlConstructors=p.yamlConstructors}function d(){p.apply(this),this.yamlConstructors=d.yamlConstructors}var o=e("./common"),u=e("./errors"),a=e("./nodes");o.inherits(f,u.MarkedYAMLError);var l={y:!0,yes:!0,n:!1,no:!1,"true":!0,"false":!1,on:!0,off:!1},c=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]))?))?)?$");h.yamlConstructors={},h.addConstructor=function(t,n){this.yamlConstructors[t]=n},h.prototype.checkData=function(){return this.checkNode()},h.prototype.getData=function(){if(this.checkNode())return this.constructDocument(this.getNode())},h.prototype.getSingleData=function(){var t=this.getSingleNode();return null!==t?this.constructDocument(t):null},h.prototype.constructDocument=function(t){var n=this.constructObject(t),r,i;r=function(e){e.execute()};while(!!this.statePopulators.length)i=this.statePopulators,this.statePopulators=[],i.forEach(r);return this.constructedObjects=new o.Hash,this.recursiveObjects=new o.Hash,this.deepConstruct=!1,n},h.prototype.constructObject=function(t,n){var r,i,s,u;if(this.constructedObjects.hasKey(t))return this.constructedObjects.get(t);!n||(i=this.deepConstruct,this.deepConstruct=!0);if(this.recursiveObjects.hasKey(t))throw new f(null,null,"found unconstructable recursive node",t.startMark);this.recursiveObjects.store(t,null);if(undefined!==this.yamlConstructors[t.tag])s=this.yamlConstructors[t.tag];else{if(undefined===this.yamlConstructors[null])throw new f(null,null,"can't find any constructor for tag="+t.tag,t.startMark);s=this.yamlConstructors[null]}return r=s.call(this,t),r instanceof o.Populator&&(u=r,r=u.data,this.deepConstruct?u.execute():this.statePopulators.push(u)),this.constructedObjects.store(t,r),this.recursiveObjects.remove(t),n&&(this.deepConstruct=i),r},h.prototype.constructScalar=function(t){if(!o.isInstanceOf(t,a.ScalarNode))throw new f(null,null,"expected a scalar node, but found "+t.id,t.startMark);return t.value},h.prototype.constructSequence=function(t,n){if(!o.isInstanceOf(t,a.SequenceNode))throw new f(null,null,"expected a sequence node, but found "+t.id,t.startMark);return t.value.map(function(e){return this.constructObject(e,n)},this)},h.prototype.constructMapping=function(t,n){var r;if(!o.isInstanceOf(t,a.MappingNode))throw new f(null,null,"expected a mapping node, but found "+t.id,t.startMark);return r={},o.each(t.value,function(e){var t=e[0],i=e[1],s,o;s=this.constructObject(t,n);if(undefined===t.hash)throw new f("while constructing a mapping",t.startMark,"found unhashable key",t.startMark);o=this.constructObject(i,n),r[s]=o},this),r},h.prototype.constructPairs=function(t,n){var r;if(!o.isInstanceOf(t,a.MappingNode))throw new f(null,null,"expected a mapping node, but found "+t.id,t.startMark);return r=[],o.each(t.value,function(e){var t,i;t=this.constructObject(e[0],n),i=this.constructObject(e[1],n),r.store(t,i)},this),r},o.inherits(p,h),p.yamlConstructors=o.extend({},h.yamlConstructors),p.addConstructor=h.addConstructor,p.prototype.constructScalar=function(t){var n;if(o.isInstanceOf(t,a.MappingNode)){o.each(t.value,function(e){var t=e[0],r=e[1];"tag:yaml.org,2002:value"===t.tag&&(n=this.constructScalar(r))},this);if(undefined!==n)return n}return h.prototype.constructScalar.call(this,t)},p.prototype.flattenMapping=function(t){var n=this,r=[],i=0,s,u,l,c,h,p;c=function(e){r.push(e)},h=function(e){e.forEach(c)},p=function(e){if(!o.isInstanceOf(e,a.MappingNode))throw new f("while constructing a mapping",t.startMark,"expected a mapping for merging, but found "+e.id,e.startMark);n.flattenMapping(e),l.push(e.value)};while(i<t.value.length){s=t.value[i][0],u=t.value[i][1];if("tag:yaml.org,2002:merge"===s.tag){t.value.splice(i,1);if(o.isInstanceOf(u,a.MappingNode))n.flattenMapping(u),o.each(u.value,c);else{if(!o.isInstanceOf(u,a.SequenceNode))throw new f("while constructing a mapping",t.startMark,"expected a mapping or list of mappings for merging, but found "+u.id,u.startMark);l=[],o.each(u.value,p),o.reverse(l).forEach(h)}}else"tag:yaml.org,2002:value"===s.tag?(s.tag="tag:yaml.org,2002:str",i+=1):i+=1}!r.length||(o.each(t.value,function(e){r.push(e)}),t.value=r)},p.prototype.constructMapping=function(t,n){return o.isInstanceOf(t,a.MappingNode)&&this.flattenMapping(t),h.prototype.constructMapping.call(this,t)},p.prototype.constructYamlNull=function(t){return this.constructScalar(t),null},p.prototype.constructYamlBool=function(t){var n=this.constructScalar(t);return l[n.toLowerCase()]},p.prototype.constructYamlInt=function(t){var n=this.constructScalar(t).replace(/_/g,""),r="-"===n[0]?-1:1,i,s=[];return 0<="+-".indexOf(n[0])&&(n=n.slice(1)),"0"===n?0:/^0b/.test(n)?r*parseInt(n.slice(2),2):/^0x/.test(n)?r*parseInt(n,16):"0"===n[0]?r*parseInt(n,8):0<=n.indexOf(":")?(n.split(":").forEach(function(e){s.unshift(parseInt(e,10))}),n=0,i=1,s.forEach(function(e){n+=e*i,i*=60}),r*n):r*parseInt(n,10)},p.prototype.constructYamlFloat=function(t){var n=this.constructScalar(t).replace(/_/g,""),r="-"===n[0]?-1:1,i,s=[];return 0<="+-".indexOf(n[0])&&(n=n.slice(1)),".inf"===n?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===n?NaN:0<=n.indexOf(":")?(n.split(":").forEach(function(e){s.unshift(parseFloat(e,10))}),n=0,i=1,s.forEach(function(e){n+=e*i,i*=60}),r*n):r*parseFloat(n,10)},p.prototype.constructYamlBinary=function(t){try{return o.decodeBase64(this.constructScalar(t))}catch(n){throw new f(null,null,"failed to decode base64 data: "+n.toString(),t.startMark)}},p.prototype.constructYamlTimestamp=function(t){var n,r,i,s,o,u,a,f=0,l=null,h,p,d;n=c.exec(this.constructScalar(t)),r=+n[1],i=+n[2]-1,s=+n[3];if(!n[4])return new Date(Date.UTC(r,i,s));o=+n[4],u=+n[5],a=+n[6];if(!!n[7]){f=n[7].slice(0,3);while(f.length<3)f+="0";f=+f}return!n[9]||(h=+n[10],p=+(n[11]||0),l=(h*60+p)*6e4,"-"===n[9]&&(l=-l)),d=new Date(Date.UTC(r,i,s,o,u,a,f)),!l||d.setTime(d.getTime()-l),d},p.prototype.constructYamlOmap=function(t){var n=this,r=[];return o.Populator(r,function(){if(!o.isInstanceOf(t,a.SequenceNode))throw new f("while constructing an ordered map",t.startMark,"expected a sequence, but found "+t.id,t.startMark);t.value.forEach(function(
e){var i,s,u;if(!o.isInstanceOf(e,a.MappingNode))throw new f("while constructing an ordered map",t.startMark,"expected a mapping of length 1, but found "+e.id,e.startMark);if(1!==e.value.length)throw new f("while constructing an ordered map",t.startMark,"expected a single mapping item, but found "+e.value.length+" items",e.startMark);s=n.constructObject(e.value[0][0]),u=n.constructObject(e.value[0][1]),i=Object.create(null),i[s]=u,r.push(i)})})},p.prototype.constructYamlPairs=function(t){var n=this,r=[];return o.Populator(r,function(){if(!o.isInstanceOf(t,a.SequenceNode))throw new f("while constructing pairs",t.startMark,"expected a sequence, but found "+t.id,t.startMark);t.value.forEach(function(e){var i,s;if(!o.isInstanceOf(e,a.MappingNode))throw new f("while constructing pairs",t.startMark,"expected a mapping of length 1, but found "+e.id,e.startMark);if(1!==e.value.length)throw new f("while constructing pairs",t.startMark,"expected a single mapping item, but found "+e.value.length+" items",e.startMark);i=n.constructObject(e.value[0][0]),s=n.constructObject(e.value[0][1]),r.push([i,s])})})},p.prototype.constructYamlSet=function(t){var n={};return o.Populator(n,function(){o.extend(n,this.constructMapping(t))},this)},p.prototype.constructYamlStr=function(t){return this.constructScalar(t)},p.prototype.constructYamlSeq=function(t){var n=[];return o.Populator(n,function(){this.constructSequence(t).forEach(function(e){n.push(e)})},this)},p.prototype.constructYamlMap=function(t){var n={};return o.Populator(n,function(){o.extend(n,this.constructMapping(t,!0))},this)},p.prototype.constructUndefined=function(t){throw new f(null,null,"could not determine constructor for the tag "+t.tag,t.startMark)},p.addConstructor("tag:yaml.org,2002:null",p.prototype.constructYamlNull),p.addConstructor("tag:yaml.org,2002:bool",p.prototype.constructYamlBool),p.addConstructor("tag:yaml.org,2002:int",p.prototype.constructYamlInt),p.addConstructor("tag:yaml.org,2002:float",p.prototype.constructYamlFloat),p.addConstructor("tag:yaml.org,2002:binary",p.prototype.constructYamlBinary),p.addConstructor("tag:yaml.org,2002:timestamp",p.prototype.constructYamlTimestamp),p.addConstructor("tag:yaml.org,2002:omap",p.prototype.constructYamlOmap),p.addConstructor("tag:yaml.org,2002:pairs",p.prototype.constructYamlPairs),p.addConstructor("tag:yaml.org,2002:set",p.prototype.constructYamlSet),p.addConstructor("tag:yaml.org,2002:str",p.prototype.constructYamlStr),p.addConstructor("tag:yaml.org,2002:seq",p.prototype.constructYamlSeq),p.addConstructor("tag:yaml.org,2002:map",p.prototype.constructYamlMap),p.addConstructor(null,p.prototype.constructUndefined),o.inherits(d,p),d.yamlConstructors=o.extend({},p.yamlConstructors),d.addConstructor=p.addConstructor,d.prototype.constructJavascriptRegExp=function(t){var n=this.constructScalar(t),r=/\/([gim]*)$/.exec(n),i;return"/"===n[0]&&!!r&&4>=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")}();