diff --git a/dist/index.js b/dist/index.js index c3b8e8e..8ad8c04 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,2 +1,2 @@ -require('./sourcemap-register.js');module.exports=function(e,r){"use strict";var n={};function __webpack_require__(r){if(n[r]){return n[r].exports}var t=n[r]={i:r,l:false,exports:{}};var a=true;try{e[r].call(t.exports,t,t.exports,__webpack_require__);a=false}finally{if(a)delete n[r]}t.l=true;return t.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(144)}r(__webpack_require__);return startup()}([,,,,function(e,r,n){"use strict";var t;try{var a=require;t=a("esprima")}catch(e){if(typeof window!=="undefined")t=window.esprima}var i=n(967);function resolveJavascriptFunction(e){if(e===null)return false;try{var r="("+e+")",n=t.parse(r,{range:true});if(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression"){return false}return true}catch(e){return false}}function constructJavascriptFunction(e){var r="("+e+")",n=t.parse(r,{range:true}),a=[],i;if(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression"){throw new Error("Failed to resolve function")}n.body[0].expression.params.forEach(function(e){a.push(e.name)});i=n.body[0].expression.body.range;if(n.body[0].expression.body.type==="BlockStatement"){return new Function(a,r.slice(i[0]+1,i[1]-1))}return new Function(a,"return "+r.slice(i[0],i[1]))}function representJavascriptFunction(e){return e.toString()}function isFunction(e){return Object.prototype.toString.call(e)==="[object Function]"}e.exports=new i("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction})},function(e,r,n){var t=n(765),a=n(495),i=n(869),s=n(403),f=n(936),c=n(496);var l=Object.prototype;var d=l.hasOwnProperty;function arrayLikeKeys(e,r){var n=i(e),l=!n&&a(e),u=!n&&!l&&s(e),o=!n&&!l&&!u&&c(e),h=n||l||u||o,v=h?t(e.length,String):[],p=v.length;for(var b in e){if((r||d.call(e,b))&&!(h&&(b=="length"||u&&(b=="offset"||b=="parent")||o&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||f(b,p)))){v.push(b)}}return v}e.exports=arrayLikeKeys},,,,function(e,r,n){var t=n(951),a=n(802),i=n(645);function getAllKeys(e){return t(e,i,a)}e.exports=getAllKeys},function(e){var r=Object.prototype;function isPrototype(e){var n=e&&e.constructor,t=typeof n=="function"&&n.prototype||r;return e===t}e.exports=isPrototype},,,,,function(e){e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:false}},,function(e,r,n){var t=n(799),a=n(530);function isArrayLike(e){return e!=null&&a(e.length)&&!t(e)}e.exports=isArrayLike},,,function(e,r){(function(e,n){true?n(r):undefined})(this,function(e){"use strict";function merge(){for(var e=arguments.length,r=Array(e),n=0;n1){r[0]=r[0].slice(0,-1);var t=r.length-1;for(var a=1;a= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var g=s-f;var w=Math.floor;var m=String.fromCharCode;function error$1(e){throw new RangeError(y[e])}function map(e,r){var n=[];var t=e.length;while(t--){n[t]=r(e[t])}return n}function mapDomain(e,r){var n=e.split("@");var t="";if(n.length>1){t=n[0]+"@";e=n[1]}e=e.replace(b,".");var a=e.split(".");var i=map(a,r).join(".");return t+i}function ucs2decode(e){var r=[];var n=0;var t=e.length;while(n=55296&&a<=56319&&n>1;e+=w(e/r);for(;e>g*c>>1;t+=s){e=w(e/g)}return w(t+(g+1)*e/(e+l))};var R=function decode(e){var r=[];var n=e.length;var t=0;var a=o;var l=u;var d=e.lastIndexOf(h);if(d<0){d=0}for(var v=0;v=128){error$1("not-basic")}r.push(e.charCodeAt(v))}for(var p=d>0?d+1:0;p=n){error$1("invalid-input")}var m=E(e.charCodeAt(p++));if(m>=s||m>w((i-t)/y)){error$1("overflow")}t+=m*y;var A=g<=l?f:g>=l+c?c:g-l;if(mw(i/S)){error$1("overflow")}y*=S}var R=r.length+1;l=k(t-b,R,b==0);if(w(t/R)>i-a){error$1("overflow")}a+=w(t/R);t%=R;r.splice(t++,0,a)}return String.fromCodePoint.apply(String,r)};var M=function encode(e){var r=[];e=ucs2decode(e);var n=e.length;var t=o;var a=0;var l=u;var d=true;var v=false;var p=undefined;try{for(var b=e[Symbol.iterator](),y;!(d=(y=b.next()).done);d=true){var g=y.value;if(g<128){r.push(m(g))}}}catch(e){v=true;p=e}finally{try{if(!d&&b.return){b.return()}}finally{if(v){throw p}}}var A=r.length;var E=A;if(A){r.push(h)}while(E=t&&Bw((i-a)/_)){error$1("overflow")}a+=(R-t)*_;t=R;var U=true;var K=false;var x=undefined;try{for(var I=e[Symbol.iterator](),F;!(U=(F=I.next()).done);U=true){var O=F.value;if(Oi){error$1("overflow")}if(O==t){var P=a;for(var T=s;;T+=s){var z=T<=l?f:T>=l+c?c:T-l;if(P>6|192).toString(16).toUpperCase()+"%"+(r&63|128).toString(16).toUpperCase();else n="%"+(r>>12|224).toString(16).toUpperCase()+"%"+(r>>6&63|128).toString(16).toUpperCase()+"%"+(r&63|128).toString(16).toUpperCase();return n}function pctDecChars(e){var r="";var n=0;var t=e.length;while(n=194&&a<224){if(t-n>=6){var i=parseInt(e.substr(n+4,2),16);r+=String.fromCharCode((a&31)<<6|i&63)}else{r+=e.substr(n,6)}n+=6}else if(a>=224){if(t-n>=9){var s=parseInt(e.substr(n+4,2),16);var f=parseInt(e.substr(n+7,2),16);r+=String.fromCharCode((a&15)<<12|(s&63)<<6|f&63)}else{r+=e.substr(n,9)}n+=9}else{r+=e.substr(n,3);n+=3}}return r}function _normalizeComponentEncoding(e,r){function decodeUnreserved(e){var n=pctDecChars(e);return!n.match(r.UNRESERVED)?e:n}if(e.scheme)e.scheme=String(e.scheme).replace(r.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(r.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(r.PCT_ENCODED,decodeUnreserved).replace(r.NOT_USERINFO,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(r.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(r.NOT_HOST,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(r.PCT_ENCODED,decodeUnreserved).replace(e.scheme?r.NOT_PATH:r.NOT_PATH_NOSCHEME,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(r.PCT_ENCODED,decodeUnreserved).replace(r.NOT_QUERY,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(r.PCT_ENCODED,decodeUnreserved).replace(r.NOT_FRAGMENT,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,r){var n=e.match(r.IPV4ADDRESS)||[];var a=t(n,2),i=a[1];if(i){return i.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,r){var n=e.match(r.IPV6ADDRESS)||[];var a=t(n,3),i=a[1],s=a[2];if(i){var f=i.toLowerCase().split("::").reverse(),c=t(f,2),l=c[0],d=c[1];var u=d?d.split(":").map(_stripLeadingZeros):[];var o=l.split(":").map(_stripLeadingZeros);var h=r.IPV4ADDRESS.test(o[o.length-1]);var v=h?7:8;var p=o.length-v;var b=Array(v);for(var y=0;y1){var A=b.slice(0,w.index);var E=b.slice(w.index+w.length);m=A.join(":")+"::"+E.join(":")}else{m=b.join(":")}if(s){m+="%"+s}return m}else{return e}}var B=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var _="".match(/(){0}/)[1]===undefined;function parse(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a={};var i=t.iri!==false?n:r;if(t.reference==="suffix")e=(t.scheme?t.scheme+":":"")+"//"+e;var s=e.match(B);if(s){if(_){a.scheme=s[1];a.userinfo=s[3];a.host=s[4];a.port=parseInt(s[5],10);a.path=s[6]||"";a.query=s[7];a.fragment=s[8];if(isNaN(a.port)){a.port=s[5]}}else{a.scheme=s[1]||undefined;a.userinfo=e.indexOf("@")!==-1?s[3]:undefined;a.host=e.indexOf("//")!==-1?s[4]:undefined;a.port=parseInt(s[5],10);a.path=s[6]||"";a.query=e.indexOf("?")!==-1?s[7]:undefined;a.fragment=e.indexOf("#")!==-1?s[8]:undefined;if(isNaN(a.port)){a.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?s[4]:undefined}}if(a.host){a.host=_normalizeIPv6(_normalizeIPv4(a.host,i),i)}if(a.scheme===undefined&&a.userinfo===undefined&&a.host===undefined&&a.port===undefined&&!a.path&&a.query===undefined){a.reference="same-document"}else if(a.scheme===undefined){a.reference="relative"}else if(a.fragment===undefined){a.reference="absolute"}else{a.reference="uri"}if(t.reference&&t.reference!=="suffix"&&t.reference!==a.reference){a.error=a.error||"URI is not a "+t.reference+" reference."}var f=q[(t.scheme||a.scheme||"").toLowerCase()];if(!t.unicodeSupport&&(!f||!f.unicodeSupport)){if(a.host&&(t.domainHost||f&&f.domainHost)){try{a.host=j.toASCII(a.host.replace(i.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){a.error=a.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(a,r)}else{_normalizeComponentEncoding(a,i)}if(f&&f.parse){f.parse(a,t)}}else{a.error=a.error||"URI can not be parsed."}return a}function _recomposeAuthority(e,t){var a=t.iri!==false?n:r;var i=[];if(e.userinfo!==undefined){i.push(e.userinfo);i.push("@")}if(e.host!==undefined){i.push(_normalizeIPv6(_normalizeIPv4(String(e.host),a),a).replace(a.IPV6ADDRESS,function(e,r,n){return"["+r+(n?"%25"+n:"")+"]"}))}if(typeof e.port==="number"){i.push(":");i.push(e.port.toString(10))}return i.length?i.join(""):undefined}var U=/^\.\.?\//;var K=/^\/\.(\/|$)/;var x=/^\/\.\.(\/|$)/;var I=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var r=[];while(e.length){if(e.match(U)){e=e.replace(U,"")}else if(e.match(K)){e=e.replace(K,"/")}else if(e.match(x)){e=e.replace(x,"/");r.pop()}else if(e==="."||e===".."){e=""}else{var n=e.match(I);if(n){var t=n[0];e=e.slice(t.length);r.push(t)}else{throw new Error("Unexpected dot segment condition")}}}return r.join("")}function serialize(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var a=t.iri?n:r;var i=[];var s=q[(t.scheme||e.scheme||"").toLowerCase()];if(s&&s.serialize)s.serialize(e,t);if(e.host){if(a.IPV6ADDRESS.test(e.host)){}else if(t.domainHost||s&&s.domainHost){try{e.host=!t.iri?j.toASCII(e.host.replace(a.PCT_ENCODED,pctDecChars).toLowerCase()):j.toUnicode(e.host)}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(!t.iri?"ASCII":"Unicode")+" via punycode: "+r}}}_normalizeComponentEncoding(e,a);if(t.reference!=="suffix"&&e.scheme){i.push(e.scheme);i.push(":")}var f=_recomposeAuthority(e,t);if(f!==undefined){if(t.reference!=="suffix"){i.push("//")}i.push(f);if(e.path&&e.path.charAt(0)!=="/"){i.push("/")}}if(e.path!==undefined){var c=e.path;if(!t.absolutePath&&(!s||!s.absolutePath)){c=removeDotSegments(c)}if(f===undefined){c=c.replace(/^\/\//,"/%2F")}i.push(c)}if(e.query!==undefined){i.push("?");i.push(e.query)}if(e.fragment!==undefined){i.push("#");i.push(e.fragment)}return i.join("")}function resolveComponents(e,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var t=arguments[3];var a={};if(!t){e=parse(serialize(e,n),n);r=parse(serialize(r,n),n)}n=n||{};if(!n.tolerant&&r.scheme){a.scheme=r.scheme;a.userinfo=r.userinfo;a.host=r.host;a.port=r.port;a.path=removeDotSegments(r.path||"");a.query=r.query}else{if(r.userinfo!==undefined||r.host!==undefined||r.port!==undefined){a.userinfo=r.userinfo;a.host=r.host;a.port=r.port;a.path=removeDotSegments(r.path||"");a.query=r.query}else{if(!r.path){a.path=e.path;if(r.query!==undefined){a.query=r.query}else{a.query=e.query}}else{if(r.path.charAt(0)==="/"){a.path=removeDotSegments(r.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){a.path="/"+r.path}else if(!e.path){a.path=r.path}else{a.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path}a.path=removeDotSegments(a.path)}a.query=r.query}a.userinfo=e.userinfo;a.host=e.host;a.port=e.port}a.scheme=e.scheme}a.fragment=r.fragment;return a}function resolve(e,r,n){var t=assign({scheme:"null"},n);return serialize(resolveComponents(parse(e,t),parse(r,t),t,true),t)}function normalize(e,r){if(typeof e==="string"){e=serialize(parse(e,r),r)}else if(typeOf(e)==="object"){e=parse(serialize(e,r),r)}return e}function equal(e,r,n){if(typeof e==="string"){e=serialize(parse(e,n),n)}else if(typeOf(e)==="object"){e=serialize(e,n)}if(typeof r==="string"){r=serialize(parse(r,n),n)}else if(typeOf(r)==="object"){r=serialize(r,n)}return e===r}function escapeComponent(e,t){return e&&e.toString().replace(!t||!t.iri?r.ESCAPE:n.ESCAPE,pctEncChar)}function unescapeComponent(e,t){return e&&e.toString().replace(!t||!t.iri?r.PCT_ENCODED:n.PCT_ENCODED,pctDecChars)}var F={scheme:"http",domainHost:true,parse:function parse(e,r){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,r){if(e.port===(String(e.scheme).toLowerCase()!=="https"?80:443)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var O={scheme:"https",domainHost:F.domainHost,parse:F.parse,serialize:F.serialize};var P={};var T=true;var z="[A-Za-z0-9\\-\\.\\_\\~"+(T?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var N="[0-9A-Fa-f]";var L=subexp(subexp("%[EFef]"+N+"%"+N+N+"%"+N+N)+"|"+subexp("%[89A-Fa-f]"+N+"%"+N+N)+"|"+subexp("%"+N+N));var W="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var H="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var G=merge(H,'[\\"\\\\]');var J="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var Y=new RegExp(z,"g");var Q=new RegExp(L,"g");var Z=new RegExp(merge("[^]",W,"[\\.]",'[\\"]',G),"g");var X=new RegExp(merge("[^]",z,J),"g");var V=X;function decodeUnreserved(e){var r=pctDecChars(e);return!r.match(Y)?e:r}var $={scheme:"mailto",parse:function parse$$1(e,r){var n=e;var t=n.to=n.path?n.path.split(","):[];n.path=undefined;if(n.query){var a=false;var i={};var s=n.query.split("&");for(var f=0,c=s.length;f0?e.charCodeAt(i-1):null;h=h&&isPlainSafe(s,f)}}else{for(i=0;it&&e[o+1]!==" ";o=i}}else if(!isPrintable(s)){return P}f=i>0?e.charCodeAt(i-1):null;h=h&&isPlainSafe(s,f)}l=l||u&&(i-o-1>t&&e[o+1]!==" ")}if(!c&&!l){return h&&!a(e)?x:I}if(n>9&&needIndentIndicator(e)){return P}return l?O:F}function writeScalar(e,r,n,t){e.dump=function(){if(r.length===0){return"''"}if(!e.noCompatMode&&K.indexOf(r)!==-1){return"'"+r+"'"}var i=e.indent*Math.max(1,n);var s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i);var f=t||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(r){return testImplicitResolving(e,r)}switch(chooseScalarStyle(r,f,e.indent,s,testAmbiguity)){case x:return r;case I:return"'"+r.replace(/'/g,"''")+"'";case F:return"|"+blockHeader(r,e.indent)+dropEndingNewline(indentString(r,i));case O:return">"+blockHeader(r,e.indent)+dropEndingNewline(indentString(foldString(r,s),i));case P:return'"'+escapeString(r,s)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function blockHeader(e,r){var n=needIndentIndicator(e)?String(r):"";var t=e[e.length-1]==="\n";var a=t&&(e[e.length-2]==="\n"||e==="\n");var i=a?"+":t?"":"-";return n+i+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,r){var n=/(\n+)([^\n]*)/g;var t=function(){var t=e.indexOf("\n");t=t!==-1?t:e.length;n.lastIndex=t;return foldLine(e.slice(0,t),r)}();var a=e[0]==="\n"||e[0]===" ";var i;var s;while(s=n.exec(e)){var f=s[1],c=s[2];i=c[0]===" ";t+=f+(!a&&!i&&c!==""?"\n":"")+foldLine(c,r);a=i}return t}function foldLine(e,r){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var t;var a=0,i,s=0,f=0;var c="";while(t=n.exec(e)){f=t.index;if(f-a>r){i=s>a?s:f;c+="\n"+e.slice(a,i);a=i+1}s=f}c+="\n";if(e.length-a>r&&s>a){c+=e.slice(a,s)+"\n"+e.slice(s+1)}else{c+=e.slice(a)}return c.slice(1)}function escapeString(e){var r="";var n,t;var a;for(var i=0;i=55296&&n<=56319){t=e.charCodeAt(i+1);if(t>=56320&&t<=57343){r+=encodeHex((n-55296)*1024+t-56320+65536);i++;continue}}a=U[n];r+=!a&&isPrintable(n)?e[i]:a||encodeHex(n)}return r}function writeFlowSequence(e,r,n){var t="",a=e.tag,i,s;for(i=0,s=n.length;i1024)d+="? ";d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,r,l,false,false)){continue}d+=e.dump;t+=d}e.tag=a;e.dump="{"+t+"}"}function writeBlockMapping(e,r,n,t){var i="",s=e.tag,f=Object.keys(n),c,l,u,o,h,v;if(e.sortKeys===true){f.sort()}else if(typeof e.sortKeys==="function"){f.sort(e.sortKeys)}else if(e.sortKeys){throw new a("sortKeys must be a boolean or a function")}for(c=0,l=f.length;c1024;if(h){if(e.dump&&d===e.dump.charCodeAt(0)){v+="?"}else{v+="? "}}v+=e.dump;if(h){v+=generateNextLine(e,r)}if(!writeNode(e,r+1,o,true,h)){continue}if(e.dump&&d===e.dump.charCodeAt(0)){v+=":"}else{v+=": "}v+=e.dump;i+=v}e.tag=s;e.dump=i||"{}"}function detectType(e,r,n){var t,i,s,l,d,u;i=n?e.explicitTypes:e.implicitTypes;for(s=0,l=i.length;s tag resolver accepts not "'+u+'" style')}e.dump=t}return true}}return false}function writeNode(e,r,n,t,i,s){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var c=f.call(e.dump);if(t){t=e.flowLevel<0||e.flowLevel>r}var l=c==="[object Object]"||c==="[object Array]",d,u;if(l){d=e.duplicates.indexOf(n);u=d!==-1}if(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0){i=false}if(u&&e.usedDuplicates[d]){e.dump="*ref_"+d}else{if(l&&u&&!e.usedDuplicates[d]){e.usedDuplicates[d]=true}if(c==="[object Object]"){if(t&&Object.keys(e.dump).length!==0){writeBlockMapping(e,r,e.dump,i);if(u){e.dump="&ref_"+d+e.dump}}else{writeFlowMapping(e,r,e.dump);if(u){e.dump="&ref_"+d+" "+e.dump}}}else if(c==="[object Array]"){var o=e.noArrayIndent&&r>0?r-1:r;if(t&&e.dump.length!==0){writeBlockSequence(e,o,e.dump,i);if(u){e.dump="&ref_"+d+e.dump}}else{writeFlowSequence(e,o,e.dump);if(u){e.dump="&ref_"+d+" "+e.dump}}}else if(c==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,r,s)}}else{if(e.skipInvalid)return false;throw new a("unacceptable kind of an object to dump "+c)}if(e.tag!==null&&e.tag!=="?"){e.dump="!<"+e.tag+"> "+e.dump}}return true}function getDuplicateReferences(e,r){var n=[],t=[],a,i;inspectNode(e,n,t);for(a=0,i=t.length;aprocess.env[r]||"")}r.replaceEnvVer=replaceEnvVer},function(e,r,n){"use strict";var t=n(514);e.exports=new t({explicit:[n(672),n(490),n(173)]})},,function(e,r,n){"use strict";var t=n(967);var a=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var r,n,t,i,s,f=e;s=new Array(f.length);for(r=0,n=f.length;r0:e.util.schemaHasRules(r,e.RULES.all)});if(b){var y=h.baseId;t+=" var "+o+" = errors; var "+u+" = false; ";var g=e.compositeRule;e.compositeRule=h.compositeRule=true;var w=s;if(w){var m,A=-1,E=w.length-1;while(A0:e.util.schemaHasRules(A,e.RULES.all)){h.schema=A;h.schemaPath=f+"["+E+"]";h.errSchemaPath=c+"/"+E;t+=" "+e.validate(h)+" ";h.baseId=b}else{t+=" var "+p+" = true; "}if(E){t+=" if ("+p+" && "+y+") { "+u+" = false; "+g+" = ["+g+", "+E+"]; } else { ";v+="}"}t+=" if ("+p+") { "+u+" = "+y+" = true; "+g+" = "+E+"; }"}}e.compositeRule=h.compositeRule=w;t+=""+v+"if (!"+u+") { var err = ";if(e.createErrors!==false){t+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+g+" } ";if(e.opts.messages!==false){t+=" , message: 'should match exactly one schema in oneOf' "}if(e.opts.verbose){t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(vErrors); "}else{t+=" validate.errors = vErrors; return false; "}}t+="} else { errors = "+o+"; if (vErrors !== null) { if ("+o+") vErrors.length = "+o+"; else vErrors = null; }";if(e.opts.allErrors){t+=" } "}return t}},,,,,,,,function(e){"use strict";e.exports=function generate__limitLength(e,r,n){var t=" ";var a=e.level;var i=e.dataLevel;var s=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var d;var u="data"+(i||"");var o=e.opts.$data&&s&&s.$data,h;if(o){t+=" var schema"+a+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ";h="schema"+a}else{h=s}if(!(o||typeof s=="number")){throw new Error(r+" must be number")}var v=r=="maxLength"?">":"<";t+="if ( ";if(o){t+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "}if(e.opts.unicode===false){t+=" "+u+".length "}else{t+=" ucs2length("+u+") "}t+=" "+v+" "+h+") { ";var d=r;var p=p||[];p.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+h+" } ";if(e.opts.messages!==false){t+=" , message: 'should NOT be ";if(r=="maxLength"){t+="longer"}else{t+="shorter"}t+=" than ";if(o){t+="' + "+h+" + '"}else{t+=""+s}t+=" characters' "}if(e.opts.verbose){t+=" , schema: ";if(o){t+="validate.schema"+f}else{t+=""+s}t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}t+=" } "}else{t+=" {} "}var b=t;t=p.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+b+"]); "}else{t+=" validate.errors = ["+b+"]; return false; "}}else{t+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+="} ";if(l){t+=" else { "}return t}},,,,,,,,,,function(e,r,n){var t=n(323),a=n(494);var i=1,s=2;function baseIsMatch(e,r,n,f){var c=n.length,l=c,d=!f;if(e==null){return!l}e=Object(e);while(c--){var u=n[c];if(d&&u[2]?u[1]!==e[u[0]]:!(u[0]in e)){return false}}while(++c":"<";t+="if ( ";if(o){t+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "}t+=" Object.keys("+u+").length "+v+" "+h+") { ";var d=r;var p=p||[];p.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+h+" } ";if(e.opts.messages!==false){t+=" , message: 'should NOT have ";if(r=="maxProperties"){t+="more"}else{t+="fewer"}t+=" than ";if(o){t+="' + "+h+" + '"}else{t+=""+s}t+=" properties' "}if(e.opts.verbose){t+=" , schema: ";if(o){t+="validate.schema"+f}else{t+=""+s}t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}t+=" } "}else{t+=" {} "}var b=t;t=p.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+b+"]); "}else{t+=" validate.errors = ["+b+"]; return false; "}}else{t+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+="} ";if(l){t+=" else { "}return t}},,function(__unusedmodule,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.run=void 0;const core_1=__webpack_require__(186);const config_1=__webpack_require__(373);const inputs_1=__webpack_require__(63);const prepare_1=__webpack_require__(294);async function run(e){try{const r=await inputs_1.loadInputs();const n=await config_1.loadConfig(e,r);core_1.startGroup("Setting mask values");await prepare_1.prepareMask(n);core_1.endGroup();core_1.startGroup("Exporting environment variables");await prepare_1.prepareEnv(n);core_1.endGroup();core_1.startGroup("Saving defined files");await prepare_1.prepareFile(e,n);core_1.endGroup()}catch(e){core_1.setFailed(e)}}exports.run=run;if(require.main===require.cache[eval("__filename")]){const e=process.cwd();run(e)}},,,,function(e,r,n){"use strict";var t=n(967);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},,,,,function(e,r,n){var t=n(647);var a=Math.max;function overRest(e,r,n){r=a(r===undefined?e.length-1:r,0);return function(){var i=arguments,s=-1,f=a(i.length-r,0),c=Array(f);while(++s>10)+55296,(e-65536&1023)+56320)}var A=new Array(256);var E=new Array(256);for(var S=0;S<256;S++){A[S]=simpleEscapeSequence(S)?1:0;E[S]=simpleEscapeSequence(S)}function State(e,r){this.input=e;this.filename=r["filename"]||null;this.schema=r["schema"]||f;this.onWarning=r["onWarning"]||null;this.legacy=r["legacy"]||false;this.json=r["json"]||false;this.listener=r["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[]}function generateError(e,r){return new a(r,new i(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function throwError(e,r){throw generateError(e,r)}function throwWarning(e,r){if(e.onWarning){e.onWarning.call(null,generateError(e,r))}}var k={YAML:function handleYamlDirective(e,r,n){var t,a,i;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(n.length!==1){throwError(e,"YAML directive accepts exactly one argument")}t=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);if(t===null){throwError(e,"ill-formed argument of the YAML directive")}a=parseInt(t[1],10);i=parseInt(t[2],10);if(a!==1){throwError(e,"unacceptable YAML version of the document")}e.version=n[0];e.checkLineBreaks=i<2;if(i!==1&&i!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,r,n){var t,a;if(n.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}t=n[0];a=n[1];if(!w.test(t)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(c.call(e.tagMap,t)){throwError(e,'there is a previously declared suffix for "'+t+'" tag handle')}if(!m.test(a)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}e.tagMap[t]=a}};function captureSegment(e,r,n,t){var a,i,s,f;if(r1){e.result+=t.repeat("\n",r-1)}}function readPlainScalar(e,r,n){var t,a,i,s,f,c,l,d,u=e.kind,o=e.result,h;h=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(h)||is_FLOW_INDICATOR(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96){return false}if(h===63||h===45){a=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(a)||n&&is_FLOW_INDICATOR(a)){return false}}e.kind="scalar";e.result="";i=s=e.position;f=false;while(h!==0){if(h===58){a=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(a)||n&&is_FLOW_INDICATOR(a)){break}}else if(h===35){t=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(t)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(h)){break}else if(is_EOL(h)){c=e.line;l=e.lineStart;d=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=r){f=true;h=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=c;e.lineStart=l;e.lineIndent=d;break}}if(f){captureSegment(e,i,s,false);writeFoldedLines(e,e.line-c);i=s=e.position;f=false}if(!is_WHITE_SPACE(h)){s=e.position+1}h=e.input.charCodeAt(++e.position)}captureSegment(e,i,s,false);if(e.result){return true}e.kind=u;e.result=o;return false}function readSingleQuotedScalar(e,r){var n,t,a;n=e.input.charCodeAt(e.position);if(n!==39){return false}e.kind="scalar";e.result="";e.position++;t=a=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===39){captureSegment(e,t,e.position,true);n=e.input.charCodeAt(++e.position);if(n===39){t=e.position;e.position++;a=e.position}else{return true}}else if(is_EOL(n)){captureSegment(e,t,a,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));t=a=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;a=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,r){var n,t,a,i,s,f;f=e.input.charCodeAt(e.position);if(f!==34){return false}e.kind="scalar";e.result="";e.position++;n=t=e.position;while((f=e.input.charCodeAt(e.position))!==0){if(f===34){captureSegment(e,n,e.position,true);e.position++;return true}else if(f===92){captureSegment(e,n,e.position,true);f=e.input.charCodeAt(++e.position);if(is_EOL(f)){skipSeparationSpace(e,false,r)}else if(f<256&&A[f]){e.result+=E[f];e.position++}else if((s=escapedHexLen(f))>0){a=s;i=0;for(;a>0;a--){f=e.input.charCodeAt(++e.position);if((s=fromHexCode(f))>=0){i=(i<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(i);e.position++}else{throwError(e,"unknown escape sequence")}n=t=e.position}else if(is_EOL(f)){captureSegment(e,n,t,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));n=t=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;t=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,r){var n=true,t,a=e.tag,i,s=e.anchor,f,c,d,u,o,h={},v,p,b,y;y=e.input.charCodeAt(e.position);if(y===91){c=93;o=false;i=[]}else if(y===123){c=125;o=true;i={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=i}y=e.input.charCodeAt(++e.position);while(y!==0){skipSeparationSpace(e,true,r);y=e.input.charCodeAt(e.position);if(y===c){e.position++;e.tag=a;e.anchor=s;e.kind=o?"mapping":"sequence";e.result=i;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}p=v=b=null;d=u=false;if(y===63){f=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(f)){d=u=true;e.position++;skipSeparationSpace(e,true,r)}}t=e.line;composeNode(e,r,l,false,true);p=e.tag;v=e.result;skipSeparationSpace(e,true,r);y=e.input.charCodeAt(e.position);if((u||e.line===t)&&y===58){d=true;y=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,r);composeNode(e,r,l,false,true);b=e.result}if(o){storeMappingPair(e,i,h,p,v,b)}else if(d){i.push(storeMappingPair(e,null,h,p,v,b))}else{i.push(v)}skipSeparationSpace(e,true,r);y=e.input.charCodeAt(e.position);if(y===44){n=true;y=e.input.charCodeAt(++e.position)}else{n=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,r){var n,a,i=h,s=false,f=false,c=r,l=0,d=false,u,o;o=e.input.charCodeAt(e.position);if(o===124){a=false}else if(o===62){a=true}else{return false}e.kind="scalar";e.result="";while(o!==0){o=e.input.charCodeAt(++e.position);if(o===43||o===45){if(h===i){i=o===43?p:v}else{throwError(e,"repeat of a chomping mode identifier")}}else if((u=fromDecimalCode(o))>=0){if(u===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!f){c=r+u-1;f=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(o)){do{o=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(o));if(o===35){do{o=e.input.charCodeAt(++e.position)}while(!is_EOL(o)&&o!==0)}}while(o!==0){readLineBreak(e);e.lineIndent=0;o=e.input.charCodeAt(e.position);while((!f||e.lineIndentc){c=e.lineIndent}if(is_EOL(o)){l++;continue}if(e.lineIndentr)&&c!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentr){if(composeNode(e,r,o,true,a)){if(b){v=e.result}else{p=e.result}}if(!b){storeMappingPair(e,l,u,h,v,p,i,s);h=v=p=null}skipSeparationSpace(e,true,-1);g=e.input.charCodeAt(e.position)}if(e.lineIndent>r&&g!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentr){h=1}else if(e.lineIndent===r){h=0}else if(e.lineIndentr){h=1}else if(e.lineIndent===r){h=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(b=0,y=e.implicitTypes.length;b tag; it should be "'+g.kind+'", not "'+e.kind+'"')}if(!g.resolve(e.result)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=g.construct(e.result);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else{throwError(e,"unknown tag !<"+e.tag+">")}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||p}function readDocument(e){var r=e.position,n,t,a,i=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap={};e.anchorMap={};while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}i=true;s=e.input.charCodeAt(++e.position);n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}t=e.input.slice(n,e.position);a=[];if(t.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}a.push(e.input.slice(n,e.position))}if(s!==0)readLineBreak(e);if(c.call(k,t)){k[t](e,t,a)}else{throwWarning(e,'unknown document directive "'+t+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(i){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,o,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&y.test(e.input.slice(r,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position0:e.util.schemaHasRules(s,e.RULES.all)){o.schema=s;o.schemaPath=f;o.errSchemaPath=c;var p="key"+a,b="idx"+a,y="i"+a,g="' + "+p+" + '",w=o.dataLevel=e.dataLevel+1,m="data"+w,A="dataProperties"+a,E=e.opts.ownProperties,S=e.baseId;if(E){t+=" var "+A+" = undefined; "}if(E){t+=" "+A+" = "+A+" || Object.keys("+d+"); for (var "+b+"=0; "+b+"<"+A+".length; "+b+"++) { var "+p+" = "+A+"["+b+"]; "}else{t+=" for (var "+p+" in "+d+") { "}t+=" var startErrs"+a+" = errors; ";var k=p;var R=e.compositeRule;e.compositeRule=o.compositeRule=true;var M=e.validate(o);o.baseId=S;if(e.util.varOccurences(M,m)<2){t+=" "+e.util.varReplace(M,m,k)+" "}else{t+=" var "+m+" = "+k+"; "+M+" "}e.compositeRule=o.compositeRule=R;t+=" if (!"+v+") { for (var "+y+"=startErrs"+a+"; "+y+"r||s&&f&&l&&!c&&!d||a&&f&&l||!n&&l||!i){return 1}if(!a&&!s&&!d&&e3)return false;if(r[r.length-t.length-1]!=="/")return false}return true}function constructJavascriptRegExp(e){var r=e,n=/\/([gim]*)$/.exec(e),t="";if(r[0]==="/"){if(n)t=n[1];r=r.slice(1,r.length-t.length-1)}return new RegExp(r,t)}function representJavascriptRegExp(e){var r="/"+e.source+"/";if(e.global)r+="g";if(e.multiline)r+="m";if(e.ignoreCase)r+="i";return r}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}e.exports=new t("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},,,,,,,function(e,r,n){var t=n(213),a=n(261),i=n(901),s=n(305),f=n(853),c=n(553);var l=1,d=2;var u="[object Boolean]",o="[object Date]",h="[object Error]",v="[object Map]",p="[object Number]",b="[object RegExp]",y="[object Set]",g="[object String]",w="[object Symbol]";var m="[object ArrayBuffer]",A="[object DataView]";var E=t?t.prototype:undefined,S=E?E.valueOf:undefined;function equalByTag(e,r,n,t,E,k,R){switch(n){case A:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset){return false}e=e.buffer;r=r.buffer;case m:if(e.byteLength!=r.byteLength||!k(new a(e),new a(r))){return false}return true;case u:case o:case p:return i(+e,+r);case h:return e.name==r.name&&e.message==r.message;case b:case g:return e==r+"";case v:var M=f;case y:var C=t&l;M||(M=c);if(e.size!=r.size&&!C){return false}var D=R.get(e);if(D){return D==r}t|=d;R.set(e,r);var j=s(M(e),M(r),t,E,k,R);R["delete"](e);return j;case w:if(S){return S.call(e)==S.call(r)}}return false}e.exports=equalByTag},,,,function(e,r,n){var t=n(829),a=n(974),i=n(84),s=n(71);function property(e){return i(e)?t(s(e)):a(e)}e.exports=property},,,,,function(e){function baseUnary(e){return function(r){return e(r)}}e.exports=baseUnary},,,function(e,r,n){var t=n(882);var a=t.Uint8Array;e.exports=a},,,function(e,r,n){var t=n(497),a=n(926);var i="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||a(e)&&t(e)==i}e.exports=isSymbol},,,,,,,,,,,,,,function(e){e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:true,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:true,readOnly:{type:"boolean",default:false},examples:{type:"array",items:true},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:true},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:false},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:true,enum:{type:"array",items:true,minItems:1,uniqueItems:true},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:true}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:true}},,,,,,,,,,function(e,r,n){var t=n(758);function get(e,r,n){var a=e==null?undefined:t(e,r);return a===undefined?n:a}e.exports=get},,,,,,function(e,r,n){"use strict";var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.prepareFile=r.prepareEnv=r.prepareMask=void 0;const a=n(186);const i=t(n(704));const s=n(36);const f=n(986);async function prepareMask(e){if(!e.mask){return}for(const r of e.mask){a.setSecret(s.replaceEnvVer(r))}a.info(`mask value count: ${e.mask.length}`)}r.prepareMask=prepareMask;async function prepareEnv(e){if(!e.env){return}for(const r in e.env){const n=e.env[r];if(i.default(n)){const e=s.replaceEnvVer(n);a.setSecret(e);a.exportVariable(r,e);a.info(`${r}: *** (mask)`)}else{const e=s.replaceEnvVer(n.value);a.exportVariable(r,e);if(n.secret===false){a.info(`${r}: ${e}`)}else{a.setSecret(e);a.info(`${r}: *** (mask)`)}}}}r.prepareEnv=prepareEnv;async function prepareFile(e,r){if(!r.file){return}for(const n in r.file){const t=r.file[n];const i=s.replaceEnvVer(n);const c=await f.writeFile(e,i,t);if(c){a.info(`wrote "${n}"`)}else{a.error(`could not write "${n}"`)}}}r.prepareFile=prepareFile},,,function(e,r,n){"use strict";var t=/^[a-z_$][a-z0-9_$-]*$/i;var a=n(972);var i=n(458);e.exports={add:addKeyword,get:getKeyword,remove:removeKeyword,validate:validateKeyword};function addKeyword(e,r){var n=this.RULES;if(n.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!t.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(r){this.validateKeyword(r,true);var i=r.type;if(Array.isArray(i)){for(var s=0;so)){return false}var v=d.get(e);var p=d.get(r);if(v&&p){return v==r&&p==e}var b=-1,y=true,g=n&f?new t:undefined;d.set(e,r);d.set(r,e);while(++b0){e+=" ";let r=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const t=this.properties[n];if(t){if(r){r=false}else{e+=","}e+=`${n}=${escapeProperty(t)}`}}}}e+=`${i}${escapeData(this.message)}`;return e}}function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}r.toCommandValue=toCommandValue;function escapeData(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},,,,,function(e){function arrayMap(e,r){var n=-1,t=e==null?0:e.length,a=Array(t);while(++n-b.indexOf(e.keyword));for(const e of t){throw new v.ConfigActionError(`${e.message} at ${e.dataPath}`)}}}}r.assertConfig=assertConfig;async function loadConfig(e,r){if(r.gpgPassphrase){return loadConfigWithGPGPassphrase(e,r.configFile,r.gpgPassphrase)}else{return loadConfigFile(e,r.configFile)}}r.loadConfig=loadConfig;async function loadConfigFile(e,r){const{readFile:n}=d.promises;const t=p.pathResolve(e,r);const a=await n(t,"utf8");return loadConfigYaml(a)}r.loadConfigFile=loadConfigFile;async function loadConfigWithGPGPassphrase(e,r,n){const{readFile:t}=d.promises;const a=p.pathResolve(e,r);const i=await t(a);const{data:s}=await f.decrypt({message:await f.message.read(i),passwords:[n],format:"utf8"});return loadConfigYaml(s)}r.loadConfigWithGPGPassphrase=loadConfigWithGPGPassphrase;async function loadConfigYaml(e){const r=l.default.safeLoad(e);assertConfig(r);return r}r.loadConfigYaml=loadConfigYaml},,,,,,,function(e,r,n){var t=n(882);var a=t["__core-js_shared__"];e.exports=a},,,,,,function(e,r,n){var t=n(752);function listCacheHas(e){return t(this.__data__,e)>-1}e.exports=listCacheHas},,function(e){function arrayFilter(e,r){var n=-1,t=e==null?0:e.length,a=0,i=[];while(++n",w=v?">":"<",d=undefined;if(!(o||typeof s=="number"||s===undefined)){throw new Error(r+" must be number")}if(!(y||b===undefined||typeof b=="number"||typeof b=="boolean")){throw new Error(p+" must be number or boolean")}if(y){var m=e.util.getData(b.$data,i,e.dataPathArr),A="exclusive"+a,E="exclType"+a,S="exclIsNumber"+a,k="op"+a,R="' + "+k+" + '";t+=" var schemaExcl"+a+" = "+m+"; ";m="schemaExcl"+a;t+=" var "+A+"; var "+E+" = typeof "+m+"; if ("+E+" != 'boolean' && "+E+" != 'undefined' && "+E+" != 'number') { ";var d=p;var M=M||[];M.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+(d||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){t+=" , message: '"+p+" should be boolean' "}if(e.opts.verbose){t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}t+=" } "}else{t+=" {} "}var C=t;t=M.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+C+"]); "}else{t+=" validate.errors = ["+C+"]; return false; "}}else{t+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } else if ( ";if(o){t+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "}t+=" "+E+" == 'number' ? ( ("+A+" = "+h+" === undefined || "+m+" "+g+"= "+h+") ? "+u+" "+w+"= "+m+" : "+u+" "+w+" "+h+" ) : ( ("+A+" = "+m+" === true) ? "+u+" "+w+"= "+h+" : "+u+" "+w+" "+h+" ) || "+u+" !== "+u+") { var op"+a+" = "+A+" ? '"+g+"' : '"+g+"='; ";if(s===undefined){d=p;c=e.errSchemaPath+"/"+p;h=m;o=y}}else{var S=typeof b=="number",R=g;if(S&&o){var k="'"+R+"'";t+=" if ( ";if(o){t+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "}t+=" ( "+h+" === undefined || "+b+" "+g+"= "+h+" ? "+u+" "+w+"= "+b+" : "+u+" "+w+" "+h+" ) || "+u+" !== "+u+") { "}else{if(S&&s===undefined){A=true;d=p;c=e.errSchemaPath+"/"+p;h=b;w+="="}else{if(S)h=Math[v?"min":"max"](b,s);if(b===(S?h:true)){A=true;d=p;c=e.errSchemaPath+"/"+p;w+="="}else{A=false;R+="="}}var k="'"+R+"'";t+=" if ( ";if(o){t+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "}t+=" "+u+" "+w+" "+h+" || "+u+" !== "+u+") { "}}d=d||r;var M=M||[];M.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+(d||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+k+", limit: "+h+", exclusive: "+A+" } ";if(e.opts.messages!==false){t+=" , message: 'should be "+R+" ";if(o){t+="' + "+h}else{t+=""+h+"'"}}if(e.opts.verbose){t+=" , schema: ";if(o){t+="validate.schema"+f}else{t+=""+s}t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}t+=" } "}else{t+=" {} "}var C=t;t=M.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+C+"]); "}else{t+=" validate.errors = ["+C+"]; return false; "}}else{t+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } ";if(l){t+=" else { "}return t}},,,,function(e){"use strict";e.exports=function generate_items(e,r,n){var t=" ";var a=e.level;var i=e.dataLevel;var s=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var d="data"+(i||"");var u="valid"+a;var o="errs__"+a;var h=e.util.copy(e);var v="";h.level++;var p="valid"+h.level;var b="i"+a,y=h.dataLevel=e.dataLevel+1,g="data"+y,w=e.baseId;t+="var "+o+" = errors;var "+u+";";if(Array.isArray(s)){var m=e.schema.additionalItems;if(m===false){t+=" "+u+" = "+d+".length <= "+s.length+"; ";var A=c;c=e.errSchemaPath+"/additionalItems";t+=" if (!"+u+") { ";var E=E||[];E.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+s.length+" } ";if(e.opts.messages!==false){t+=" , message: 'should NOT have more than "+s.length+" items' "}if(e.opts.verbose){t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}var S=t;t=E.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+S+"]); "}else{t+=" validate.errors = ["+S+"]; return false; "}}else{t+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } ";c=A;if(l){v+="}";t+=" else { "}}var k=s;if(k){var R,M=-1,C=k.length-1;while(M0:e.util.schemaHasRules(R,e.RULES.all)){t+=" "+p+" = true; if ("+d+".length > "+M+") { ";var D=d+"["+M+"]";h.schema=R;h.schemaPath=f+"["+M+"]";h.errSchemaPath=c+"/"+M;h.errorPath=e.util.getPathExpr(e.errorPath,M,e.opts.jsonPointers,true);h.dataPathArr[y]=M;var j=e.validate(h);h.baseId=w;if(e.util.varOccurences(j,g)<2){t+=" "+e.util.varReplace(j,g,D)+" "}else{t+=" var "+g+" = "+D+"; "+j+" "}t+=" } ";if(l){t+=" if ("+p+") { ";v+="}"}}}}if(typeof m=="object"&&(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0:e.util.schemaHasRules(m,e.RULES.all))){h.schema=m;h.schemaPath=e.schemaPath+".additionalItems";h.errSchemaPath=e.errSchemaPath+"/additionalItems";t+=" "+p+" = true; if ("+d+".length > "+s.length+") { for (var "+b+" = "+s.length+"; "+b+" < "+d+".length; "+b+"++) { ";h.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,true);var D=d+"["+b+"]";h.dataPathArr[y]=b;var j=e.validate(h);h.baseId=w;if(e.util.varOccurences(j,g)<2){t+=" "+e.util.varReplace(j,g,D)+" "}else{t+=" var "+g+" = "+D+"; "+j+" "}if(l){t+=" if (!"+p+") break; "}t+=" } } ";if(l){t+=" if ("+p+") { ";v+="}"}}}else if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0:e.util.schemaHasRules(s,e.RULES.all)){h.schema=s;h.schemaPath=f;h.errSchemaPath=c;t+=" for (var "+b+" = "+0+"; "+b+" < "+d+".length; "+b+"++) { ";h.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,true);var D=d+"["+b+"]";h.dataPathArr[y]=b;var j=e.validate(h);h.baseId=w;if(e.util.varOccurences(j,g)<2){t+=" "+e.util.varReplace(j,g,D)+" "}else{t+=" var "+g+" = "+D+"; "+j+" "}if(l){t+=" if (!"+p+") break; "}t+=" }"}if(l){t+=" "+v+" if ("+o+" == errors) {"}return t}},function(e,r,n){var t=n(129),a=n(658);function hasIn(e,r){return e!=null&&a(e,r,t)}e.exports=hasIn},function(e){function arraySome(e,r){var n=-1,t=e==null?0:e.length;while(++n0:e.util.schemaHasRules(m,e.RULES.all)))){p[p.length]=y}}}}else{var p=s}}if(o||p.length){var A=e.errorPath,E=o||p.length>=e.opts.loopRequired,S=e.opts.ownProperties;if(l){t+=" var missing"+a+"; ";if(E){if(!o){t+=" var "+v+" = validate.schema"+f+"; "}var k="i"+a,R="schema"+a+"["+k+"]",M="' + "+R+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(A,R,e.opts.jsonPointers)}t+=" var "+u+" = true; ";if(o){t+=" if (schema"+a+" === undefined) "+u+" = true; else if (!Array.isArray(schema"+a+")) "+u+" = false; else {"}t+=" for (var "+k+" = 0; "+k+" < "+v+".length; "+k+"++) { "+u+" = "+d+"["+v+"["+k+"]] !== undefined ";if(S){t+=" && Object.prototype.hasOwnProperty.call("+d+", "+v+"["+k+"]) "}t+="; if (!"+u+") break; } ";if(o){t+=" } "}t+=" if (!"+u+") { ";var C=C||[];C.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+M+"' } ";if(e.opts.messages!==false){t+=" , message: '";if(e.opts._errorDataPathProperty){t+="is a required property"}else{t+="should have required property \\'"+M+"\\'"}t+="' "}if(e.opts.verbose){t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}var D=t;t=C.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+D+"]); "}else{t+=" validate.errors = ["+D+"]; return false; "}}else{t+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } else { "}else{t+=" if ( ";var j=p;if(j){var q,k=-1,B=j.length-1;while(k0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(a-1))===-1){a-=1;if(this.position-a>r/2-1){n=" ... ";a+=5;break}}i="";s=this.position;while(sr/2-1){i=" ... ";s-=5;break}}f=this.buffer.slice(a,s);return t.repeat(" ",e)+n+f+i+"\n"+t.repeat(" ",e+this.position-a+n.length)+"^"};Mark.prototype.toString=function toString(e){var r,n="";if(this.name){n+='in "'+this.name+'" '}n+="at line "+(this.line+1)+", column "+(this.column+1);if(!e){r=this.getSnippet();if(r){n+=":\n"+r}}return n};e.exports=Mark},function(e,r,n){var t=n(599),a=n(908),i=n(822),s=n(869),f=n(253);function baseIteratee(e){if(typeof e=="function"){return e}if(e==null){return i}if(typeof e=="object"){return s(e)?a(e[0],e[1]):t(e)}return f(e)}e.exports=baseIteratee},,,,,,function(e,r,n){"use strict";var t=n(967);var a=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(a.exec(e)!==null)return true;if(i.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var r,n,t,s,f,c,l,d=0,u=null,o,h,v;r=a.exec(e);if(r===null)r=i.exec(e);if(r===null)throw new Error("Date resolve error");n=+r[1];t=+r[2]-1;s=+r[3];if(!r[4]){return new Date(Date.UTC(n,t,s))}f=+r[4];c=+r[5];l=+r[6];if(r[7]){d=r[7].slice(0,3);while(d.length<3){d+="0"}d=+d}if(r[9]){o=+r[10];h=+(r[11]||0);u=(o*60+h)*6e4;if(r[9]==="-")u=-u}v=new Date(Date.UTC(n,t,s,f,c,l,d));if(u)v.setTime(v.getTime()-u);return v}function representYamlTimestamp(e){return e.toISOString()}e.exports=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},,,,,,,,,,function(e){"use strict";e.exports=function generate_allOf(e,r,n){var t=" ";var a=e.schema[r];var i=e.schemaPath+e.util.getProperty(r);var s=e.errSchemaPath+"/"+r;var f=!e.opts.allErrors;var c=e.util.copy(e);var l="";c.level++;var d="valid"+c.level;var u=c.baseId,o=true;var h=a;if(h){var v,p=-1,b=h.length-1;while(p0:e.util.schemaHasRules(v,e.RULES.all)){o=false;c.schema=v;c.schemaPath=i+"["+p+"]";c.errSchemaPath=s+"/"+p;t+=" "+e.validate(c)+" ";c.baseId=u;if(f){t+=" if ("+d+") { ";l+="}"}}}}if(f){if(o){t+=" if (true) { "}else{t+=" "+l.slice(0,-1)+" "}}return t}},,,function(e,r,n){var t=n(946),a=n(416),i=n(822);var s=!a?i:function(e,r){return a(e,"toString",{configurable:true,enumerable:false,value:t(r),writable:true})};e.exports=s},,,,,,function(e,r,n){var t=n(594),a=n(645);function getMatchData(e){var r=a(e),n=r.length;while(n--){var i=r[n],s=e[i];r[n]=[i,s,t(s)]}return r}e.exports=getMatchData},,,,,,function(e,r,n){"use strict";var t=n(278);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:t.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:t.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},,,,,,,,,,,,function(e,r,n){var t=n(41);var a="__lodash_hash_undefined__";function hashSet(e,r){var n=this.__data__;this.size+=this.has(e)?0:1;n[e]=t&&r===undefined?a:r;return this}e.exports=hashSet},,,,,function(e,r,n){var t=n(213),a=n(356),i=n(869),s=n(264);var f=1/0;var c=t?t.prototype:undefined,l=c?c.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(i(e)){return a(e,baseToString)+""}if(s(e)){return l?l.call(e):""}var r=e+"";return r=="0"&&1/e==-f?"-0":r}e.exports=baseToString},,,,function(e,r,n){var t=n(411),a=n(542);function getNative(e,r){var n=a(e,r);return t(n)?n:undefined}e.exports=getNative},,,function(e,r,n){var t=n(901),a=n(17),i=n(936),s=n(334);function isIterateeCall(e,r,n){if(!s(n)){return false}var f=typeof r;if(f=="number"?a(n)&&i(r,n.length):f=="string"&&r in n){return t(n[r],e)}return false}e.exports=isIterateeCall},,,,,,,,function(e,r,n){"use strict";var t=n(967);e.exports=new t("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},,,,function(e,r,n){var t=n(987),a=n(926);function baseIsEqual(e,r,n,i,s){if(e===r){return true}if(e==null||r==null||!a(e)&&!a(r)){return e!==e&&r!==r}return t(e,r,n,i,baseIsEqual,s)}e.exports=baseIsEqual},function(e,r,n){var t=n(177),a=n(926);var i=Object.prototype;var s=i.hasOwnProperty;var f=i.propertyIsEnumerable;var c=t(function(){return arguments}())?t:function(e){return a(e)&&s.call(e,"callee")&&!f.call(e,"callee")};e.exports=c},function(e,r,n){var t=n(528),a=n(258),i=n(643);var s=i&&i.isTypedArray;var f=s?a(s):t;e.exports=f},function(e,r,n){var t=n(213),a=n(923),i=n(200);var s="[object Null]",f="[object Undefined]";var c=t?t.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?f:s}return c&&c in Object(e)?a(e):i(e)}e.exports=baseGetTag},,,,,,,,,,,,function(e){function matchesStrictComparable(e,r){return function(n){if(n==null){return false}return n[e]===r&&(r!==undefined||e in Object(n))}}e.exports=matchesStrictComparable},,,function(e,r,n){var t=n(479),a=n(882);var i=t(a,"Promise");e.exports=i},,function(e,r,n){"use strict";var t=n(136);var a=n(199);var i=n(967);function compileList(e,r,n){var t=[];e.include.forEach(function(e){n=compileList(e,r,n)});e[r].forEach(function(e){n.forEach(function(r,n){if(r.tag===e.tag&&r.kind===e.kind){t.push(n)}});n.push(e)});return n.filter(function(e,r){return t.indexOf(r)===-1})}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},r,n;function collectType(r){e[r.kind][r.tag]=e["fallback"][r.tag]=r}for(r=0,n=arguments.length;r-1&&e%1==0&&e<=r}e.exports=isLength},,,function(e){"use strict";var r=e.exports=function(e,r,n){if(typeof r=="function"){n=r;r={}}n=r.cb||n;var t=typeof n=="function"?n:n.pre||function(){};var a=n.post||function(){};_traverse(r,t,a,e,"",e)};r.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true};r.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};r.propsKeywords={definitions:true,properties:true,patternProperties:true,dependencies:true};r.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(e,n,t,a,i,s,f,c,l,d){if(a&&typeof a=="object"&&!Array.isArray(a)){n(a,i,s,f,c,l,d);for(var u in a){var o=a[u];if(Array.isArray(o)){if(u in r.arrayKeywords){for(var h=0;h64)continue;if(r<0)return false;t+=6}return t%8===0}function constructYamlBinary(e){var r,n,a=e.replace(/[\r\n=]/g,""),i=a.length,f=s,c=0,l=[];for(r=0;r>16&255);l.push(c>>8&255);l.push(c&255)}c=c<<6|f.indexOf(a.charAt(r))}n=i%4*6;if(n===0){l.push(c>>16&255);l.push(c>>8&255);l.push(c&255)}else if(n===18){l.push(c>>10&255);l.push(c>>2&255)}else if(n===12){l.push(c>>4&255)}if(t){return t.from?t.from(l):new t(l)}return l}function representYamlBinary(e){var r="",n=0,t,a,i=e.length,f=s;for(t=0;t>18&63];r+=f[n>>12&63];r+=f[n>>6&63];r+=f[n&63]}n=(n<<8)+e[t]}a=i%3;if(a===0){r+=f[n>>18&63];r+=f[n>>12&63];r+=f[n>>6&63];r+=f[n&63]}else if(a===2){r+=f[n>>10&63];r+=f[n>>4&63];r+=f[n<<2&63];r+=f[64]}else if(a===1){r+=f[n>>2&63];r+=f[n<<4&63];r+=f[64];r+=f[64]}return r}function isBinary(e){return t&&t.isBuffer(e)}e.exports=new i("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},,function(e){function setToArray(e){var r=-1,n=Array(e.size);e.forEach(function(e){n[++r]=e});return n}e.exports=setToArray},,,,,,,,function(e,r,n){"use strict";var t=n(810),a=n(578).toHash;e.exports=function rules(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}];var r=["type","$comment"];var n=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"];var i=["number","integer","string","array","object","boolean","null"];e.all=a(r);e.types=a(i);e.forEach(function(n){n.rules=n.rules.map(function(n){var a;if(typeof n=="object"){var i=Object.keys(n)[0];a=n[i];n=i;a.forEach(function(n){r.push(n);e.all[n]=true})}r.push(n);var s=e.all[n]={keyword:n,code:t[n],implements:a};return s});e.all.$comment={keyword:"$comment",code:t.$comment};if(n.type)e.types[n.type]=n});e.keywords=a(r.concat(n));e.custom={};return e}},,,function(e,r,n){"use strict";var t=n(136);var a=n(967);var i=new RegExp("^(?:[-+]?(?:0|[1-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))$");function resolveYamlFloat(e){if(e===null)return false;if(!i.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var r,n,t,a;r=e.replace(/_/g,"").toLowerCase();n=r[0]==="-"?-1:1;a=[];if("+-".indexOf(r[0])>=0){r=r.slice(1)}if(r===".inf"){return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(r===".nan"){return NaN}else if(r.indexOf(":")>=0){r.split(":").forEach(function(e){a.unshift(parseFloat(e,10))});r=0;t=1;a.forEach(function(e){r+=e*t;t*=60});return n*r}return n*parseFloat(r,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(e,r){var n;if(isNaN(e)){switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(t.isNegativeZero(e)){return"-0.0"}n=e.toString(10);return s.test(n)?n.replace("e",".e"):n}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||t.isNegativeZero(e))}e.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},,,,,,,function(e,r,n){"use strict";var t=n(514);e.exports=new t({include:[n(37)],implicit:[n(671),n(675),n(963),n(564)]})},,,,,,,function(e,r,n){"use strict";e.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:n(206),ucs2length:n(580),varOccurences:varOccurences,varReplace:varReplace,schemaHasRules:schemaHasRules,schemaHasRulesExcept:schemaHasRulesExcept,schemaUnknownRules:schemaUnknownRules,toQuotedString:toQuotedString,getPathExpr:getPathExpr,getPath:getPath,getData:getData,unescapeFragment:unescapeFragment,unescapeJsonPointer:unescapeJsonPointer,escapeFragment:escapeFragment,escapeJsonPointer:escapeJsonPointer};function copy(e,r){r=r||{};for(var n in e)r[n]=e[n];return r}function checkDataType(e,r,n,t){var a=t?" !== ":" === ",i=t?" || ":" && ",s=t?"!":"",f=t?"":"!";switch(e){case"null":return r+a+"null";case"array":return s+"Array.isArray("+r+")";case"object":return"("+s+r+i+"typeof "+r+a+'"object"'+i+f+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+a+'"number"'+i+f+"("+r+" % 1)"+i+r+a+r+(n?i+s+"isFinite("+r+")":"")+")";case"number":return"(typeof "+r+a+'"'+e+'"'+(n?i+s+"isFinite("+r+")":"")+")";default:return"typeof "+r+a+'"'+e+'"'}}function checkDataTypes(e,r,n){switch(e.length){case 1:return checkDataType(e[0],r,n,true);default:var t="";var a=toHash(e);if(a.array&&a.object){t=a.null?"(":"(!"+r+" || ";t+="typeof "+r+' !== "object")';delete a.null;delete a.array;delete a.object}if(a.number)delete a.integer;for(var i in a)t+=(t?" && ":"")+checkDataType(i,r,n,true);return t}}var t=toHash(["string","number","integer","boolean","null"]);function coerceToTypes(e,r){if(Array.isArray(r)){var n=[];for(var a=0;a=r)throw new Error("Cannot access property/index "+t+" levels up, current level is "+r);return n[r-t]}if(t>r)throw new Error("Cannot access data "+t+" levels up, current level is "+r);i="data"+(r-t||"");if(!a)return i}var l=i;var d=a.split("/");for(var u=0;u=55296&&a<=56319&&t0:e.util.schemaHasRules(g,e.RULES.all)){t+=" "+v+" = true; if ( "+d+e.util.getProperty(A)+" !== undefined ";if(y){t+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(A)+"') "}t+=") { ";o.schema=g;o.schemaPath=f+e.util.getProperty(A);o.errSchemaPath=c+"/"+e.util.escapeFragment(A);t+=" "+e.validate(o)+" ";o.baseId=x;t+=" } ";if(l){t+=" if ("+v+") { ";h+="}"}}}if(l){t+=" "+h+" if ("+u+" == errors) {"}return t}},,,function(e,r,n){var t=n(334);function isStrictComparable(e){return e===e&&!t(e)}e.exports=isStrictComparable},,,,,function(e,r,n){var t=n(124),a=n(452),i=n(509);function baseMatches(e){var r=a(e);if(r.length==1&&r[0][2]){return i(r[0][0],r[0][1])}return function(n){return n===e||t(n,e,r)}}e.exports=baseMatches},,,,,,function(e,r,n){"use strict";var t=n(578);e.exports=SchemaObject;function SchemaObject(e){t.copy(e,this)}},,,function(e,r,n){var t=n(792),a=n(716),i=n(789),s=n(386),f=n(399);function ListCache(e){var r=-1,n=e==null?0:e.length;this.clear();while(++r%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;var u=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;var o=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var h=/^(?:\/(?:[^~/]|~0|~1)*)*$/;var v=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var p=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;e.exports=formats;function formats(e){e=e=="full"?"full":"fast";return t.copy(formats[e])}formats.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":d,url:u,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:f,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:o,"json-pointer":h,"json-pointer-uri-fragment":v,"relative-json-pointer":p};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":l,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(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:o,"json-pointer":h,"json-pointer-uri-fragment":v,"relative-json-pointer":p};function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function date(e){var r=e.match(a);if(!r)return false;var n=+r[1];var t=+r[2];var s=+r[3];return t>=1&&t<=12&&s>=1&&s<=(t==2&&isLeapYear(n)?29:i[t])}function time(e,r){var n=e.match(s);if(!n)return false;var t=n[1];var a=n[2];var i=n[3];var f=n[5];return(t<=23&&a<=59&&i<=59||t==23&&a==59&&i==60)&&(!r||f)}var b=/t|\s/i;function date_time(e){var r=e.split(b);return r.length==2&&date(r[0])&&time(r[1],true)}var y=/\/|:/;function uri(e){return y.test(e)&&c.test(e)}var g=/[^\\]\\Z/;function regex(e){if(g.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},,,,,,,function(e){function stubArray(){return[]}e.exports=stubArray},,,,,,function(e,r,n){var t=n(17);function createBaseEach(e,r){return function(n,a){if(n==null){return n}if(!t(n)){return e(n,a)}var i=n.length,s=r?i:-1,f=Object(n);while(r?s--:++s":"<";t+="if ( ";if(o){t+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "}t+=" "+u+".length "+v+" "+h+") { ";var d=r;var p=p||[];p.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+h+" } ";if(e.opts.messages!==false){t+=" , message: 'should NOT have ";if(r=="maxItems"){t+="more"}else{t+="fewer"}t+=" than ";if(o){t+="' + "+h+" + '"}else{t+=""+s}t+=" items' "}if(e.opts.verbose){t+=" , schema: ";if(o){t+="validate.schema"+f}else{t+=""+s}t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}t+=" } "}else{t+=" {} "}var b=t;t=p.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+b+"]); "}else{t+=" validate.errors = ["+b+"]; return false; "}}else{t+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+="} ";if(l){t+=" else { "}return t}},,,,,function(e,r,n){var t=n(869),a=n(84),i=n(871),s=n(931);function castPath(e,r){if(t(e)){return e}return a(e,r)?[e]:i(s(e))}e.exports=castPath},,,,,,,,,,,,,,,,function(e,r,n){var t=n(497),a=n(869),i=n(926);var s="[object String]";function isString(e){return typeof e=="string"||!a(e)&&i(e)&&t(e)==s}e.exports=isString},,,,,function(e){function createBaseFor(e){return function(r,n,t){var a=-1,i=Object(r),s=t(r),f=s.length;while(f--){var c=s[e?f:++a];if(n(i[c],c,i)===false){break}}return r}}e.exports=createBaseFor},,,function(e,r,n){var t=n(588),a=n(645);function baseForOwn(e,r){return e&&t(e,r,a)}e.exports=baseForOwn},,function(e){(function(r){if(true){e.exports=r()}else{var n}})(function(){var e,r,n;return function(){function r(e,n,t){function o(i,s){if(!n[i]){if(!e[i]){var f=require;if(!s&&f)return f(i,!0);if(a)return a(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[i]={exports:{}};e[i][0].call(l.exports,function(r){var n=e[i][1][r];return o(n||r)},l,l.exports,r,e,n,t)}return n[i].exports}for(var a=require,i=0;i`Symbol(${e})`;const o="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof r?r:void 0,R=Number.isNaN||function(e){return e!=e};function n(e){return"object"==typeof e&&null!==e||"function"==typeof e}function i(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function a(e){return e.slice()}function s(e,r,n,t,a){new Uint8Array(e).set(new Uint8Array(n,t,a),r)}function l(e){return!1!==function(e){if("number"!=typeof e)return!1;if(R(e))return!1;if(e<0)return!1;return!0}(e)&&e!==1/0}function c(e,r,n){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,r,n)}function u(e,r,n,t){const a=e[r];if(void 0!==a){if("function"!=typeof a)throw new TypeError(`${a} is not a method`);switch(n){case 0:return()=>f(a,e,t);case 1:return r=>{const n=[r].concat(t);return f(a,e,n)}}}return()=>Promise.resolve()}function d(e,r,n){const t=e[r];if(void 0!==t)return c(t,e,n)}function f(e,r,n){try{return Promise.resolve(c(e,r,n))}catch(e){return Promise.reject(e)}}function _(e){return e}function h(e){if(e=Number(e),R(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e}function b(e){if(void 0===e)return()=>1;if("function"!=typeof e)throw new TypeError("size property of a queuing strategy must be a function");return r=>e(r)}function m(e,r,n){return Promise.prototype.then.call(e,r,n)}function y(e,r,n){let t,a;const i=new Promise((e,r)=>{t=e,a=r});void 0===n&&(n=(e=>{throw e}));return function(e,r,n){let t=!1;const a=e=>{!1===t&&(t=!0,n(e))};let i=0,s=0;const f=e.length,c=new Array(f);for(const n of e){const e=i;m(n,n=>{c[e]=n,++s===f&&r(c)},a),++i}}(e,e=>{try{const n=r(e);t(n)}catch(e){a(e)}},e=>{try{const r=n(e);t(r)}catch(e){a(e)}}),i}function p(e){}function w(e){e&&e instanceof p.AssertionError&&setTimeout(()=>{throw e},0)}function g(e){const r=e._queue.shift();return e._queueTotalSize-=r.size,e._queueTotalSize<0&&(e._queueTotalSize=0),r.value}function S(e,r,n){if(!l(n=Number(n)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:r,size:n}),e._queueTotalSize+=n}function v(e){e._queue=[],e._queueTotalSize=0}p.AssertionError=function(){};const P=t("[[AbortSteps]]"),se=t("[[ErrorSteps]]");class WritableStream{constructor(e={},r={}){q(this);const n=r.size;let t=r.highWaterMark;if(void 0!==e.type)throw new RangeError("Invalid type is specified");const a=b(n);void 0===t&&(t=1),function(e,r,n,t){const a=Object.create(WritableStreamDefaultController.prototype);const i=u(r,"write",1,[a]),s=u(r,"close",0,[]),f=u(r,"abort",1,[]);$(e,a,function(){return d(r,"start",[a])},i,s,f,n,t)}(this,e,t=h(t),a)}get locked(){if(!1===E(this))throw G("locked");return C(this)}abort(e){return!1===E(this)?Promise.reject(G("abort")):!0===C(this)?Promise.reject(new TypeError("Cannot abort a stream that already has a writer")):j(this,e)}getWriter(){if(!1===E(this))throw G("getWriter");return T(this)}}function T(e){return new WritableStreamDefaultWriter(e)}function q(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=[],e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function E(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function C(e){return void 0!==e._writer}function j(e,r){const n=e._state;if("closed"===n||"errored"===n)return Promise.resolve(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let t=!1;"erroring"===n&&(t=!0,r=void 0);const a=new Promise((n,a)=>{e._pendingAbortRequest={_promise:void 0,_resolve:n,_reject:a,_reason:r,_wasAlreadyErroring:t}});return e._pendingAbortRequest._promise=a,!1===t&&W(e,r),a}function A(e,r){"writable"!==e._state?B(e):W(e,r)}function W(e,r){const n=e._writableStreamController;e._state="erroring",e._storedError=r;const t=e._writer;void 0!==t&&D(t,r),!1===function(e){if(void 0===e._inFlightWriteRequest&&void 0===e._inFlightCloseRequest)return!1;return!0}(e)&&!0===n._started&&B(e)}function B(e){e._state="errored",e._writableStreamController[se]();const r=e._storedError;for(const n of e._writeRequests)n._reject(r);if(e._writeRequests=[],void 0===e._pendingAbortRequest)return void z(e);const n=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,!0===n._wasAlreadyErroring)return n._reject(r),void z(e);e._writableStreamController[P](n._reason).then(()=>{n._resolve(),z(e)},r=>{n._reject(r),z(e)})}function O(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function z(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);const r=e._writer;void 0!==r&&ee(r,e._storedError)}function k(e,r){const n=e._writer;void 0!==n&&r!==e._backpressure&&(!0===r?function(e){re(e)}(n):ae(n)),e._backpressure=r}class WritableStreamDefaultWriter{constructor(e){if(!1===E(e))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===C(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;const r=e._state;if("writable"===r)!1===O(e)&&!0===e._backpressure?re(this):ne(this),X(this);else if("erroring"===r)oe(this,e._storedError),X(this);else if("closed"===r)ne(this),function(e){X(e),te(e)}(this);else{const r=e._storedError;oe(this,r),Z(this,r)}}get closed(){return!1===F(this)?Promise.reject(J("closed")):this._closedPromise}get desiredSize(){if(!1===F(this))throw J("desiredSize");if(void 0===this._ownerWritableStream)throw K("desiredSize");return function(e){const r=e._ownerWritableStream,n=r._state;if("errored"===n||"erroring"===n)return null;if("closed"===n)return 0;return Q(r._writableStreamController)}(this)}get ready(){return!1===F(this)?Promise.reject(J("ready")):this._readyPromise}abort(e){return!1===F(this)?Promise.reject(J("abort")):void 0===this._ownerWritableStream?Promise.reject(K("abort")):function(e,r){return j(e._ownerWritableStream,r)}(this,e)}close(){if(!1===F(this))return Promise.reject(J("close"));const e=this._ownerWritableStream;return void 0===e?Promise.reject(K("close")):!0===O(e)?Promise.reject(new TypeError("cannot close an already-closing stream")):L(this)}releaseLock(){if(!1===F(this))throw J("releaseLock");void 0!==this._ownerWritableStream&&M(this)}write(e){return!1===F(this)?Promise.reject(J("write")):void 0===this._ownerWritableStream?Promise.reject(K("write to")):Y(this,e)}}function F(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function L(e){const r=e._ownerWritableStream,n=r._state;if("closed"===n||"errored"===n)return Promise.reject(new TypeError(`The stream (in ${n} state) is not in the writable state and cannot be closed`));const t=new Promise((e,n)=>{const t={_resolve:e,_reject:n};r._closeRequest=t});return!0===r._backpressure&&"writable"===n&&ae(e),function(e){S(e,"close",0),x(e)}(r._writableStreamController),t}function I(e,r){"pending"===e._closedPromiseState?ee(e,r):function(e,r){Z(e,r)}(e,r)}function D(e,r){"pending"===e._readyPromiseState?ie(e,r):function(e,r){oe(e,r)}(e,r)}function M(e){const r=e._ownerWritableStream,n=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");D(e,n),I(e,n),r._writer=void 0,e._ownerWritableStream=void 0}function Y(e,r){const n=e._ownerWritableStream,t=n._writableStreamController,a=function(e,r){try{return e._strategySizeAlgorithm(r)}catch(r){return H(e,r),1}}(t,r);if(n!==e._ownerWritableStream)return Promise.reject(K("write to"));const i=n._state;if("errored"===i)return Promise.reject(n._storedError);if(!0===O(n)||"closed"===i)return Promise.reject(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===i)return Promise.reject(n._storedError);const s=function(e){return new Promise((r,n)=>{const t={_resolve:r,_reject:n};e._writeRequests.push(t)})}(n);return function(e,r,n){const t={chunk:r};try{S(e,t,n)}catch(r){return void H(e,r)}const a=e._controlledWritableStream;if(!1===O(a)&&"writable"===a._state){const r=U(e);k(a,r)}x(e)}(t,r,a),s}class WritableStreamDefaultController{constructor(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}error(e){if(!1===function(e){if(!n(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream"))return!1;return!0}(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&V(this,e)}[P](e){const r=this._abortAlgorithm(e);return N(this),r}[se](){v(this)}}function $(e,r,n,t,a,i,s,f){r._controlledWritableStream=e,e._writableStreamController=r,r._queue=void 0,r._queueTotalSize=void 0,v(r),r._started=!1,r._strategySizeAlgorithm=f,r._strategyHWM=s,r._writeAlgorithm=t,r._closeAlgorithm=a,r._abortAlgorithm=i;const c=U(r);k(e,c);const l=n();Promise.resolve(l).then(()=>{r._started=!0,x(r)},n=>{r._started=!0,A(e,n)}).catch(w)}function N(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Q(e){return e._strategyHWM-e._queueTotalSize}function x(e){const r=e._controlledWritableStream;if(!1===e._started)return;if(void 0!==r._inFlightWriteRequest)return;const n=r._state;if("closed"===n||"errored"===n)return;if("erroring"===n)return void B(r);if(0===e._queue.length)return;const t=function(e){return e._queue[0].value}(e);"close"===t?function(e){const r=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(r),g(e);const n=e._closeAlgorithm();N(e),n.then(()=>{!function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";const r=e._writer;void 0!==r&&te(r)}(r)},e=>{!function(e,r){e._inFlightCloseRequest._reject(r),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(r),e._pendingAbortRequest=void 0),A(e,r)}(r,e)}).catch(w)}(e):function(e,r){const n=e._controlledWritableStream;(function(e){e._inFlightWriteRequest=e._writeRequests.shift()})(n),e._writeAlgorithm(r).then(()=>{!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(n);const r=n._state;if(g(e),!1===O(n)&&"writable"===r){const r=U(e);k(n,r)}x(e)},r=>{"writable"===n._state&&N(e),function(e,r){e._inFlightWriteRequest._reject(r),e._inFlightWriteRequest=void 0,A(e,r)}(n,r)}).catch(w)}(e,t.chunk)}function H(e,r){"writable"===e._controlledWritableStream._state&&V(e,r)}function U(e){return Q(e)<=0}function V(e,r){const n=e._controlledWritableStream;N(e),W(n,r)}function G(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function J(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function K(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function X(e){e._closedPromise=new Promise((r,n)=>{e._closedPromise_resolve=r,e._closedPromise_reject=n,e._closedPromiseState="pending"})}function Z(e,r){X(e),ee(e,r)}function ee(e,r){e._closedPromise.catch(()=>{}),e._closedPromise_reject(r),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function te(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function re(e){e._readyPromise=new Promise((r,n)=>{e._readyPromise_resolve=r,e._readyPromise_reject=n}),e._readyPromiseState="pending"}function oe(e,r){re(e),ie(e,r)}function ne(e){re(e),ae(e)}function ie(e,r){e._readyPromise.catch(()=>{}),e._readyPromise_reject(r),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function ae(e){e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}const ce=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},le=t("[[CancelSteps]]"),er=t("[[PullSteps]]");class ReadableStream{constructor(e={},r={}){fe(this);const n=r.size;let t=r.highWaterMark;const a=e.type;if("bytes"===String(a)){if(void 0!==n)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===t&&(t=0),function(e,r,n){const t=Object.create(ReadableByteStreamController.prototype);const a=u(r,"pull",0,[t]),i=u(r,"cancel",1,[]);let s=r.autoAllocateChunkSize;if(void 0!==s&&(s=Number(s),!1===ce(s)||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function(e,r,n,t,a,i,s){r._controlledReadableByteStream=e,r._pullAgain=!1,r._pulling=!1,He(r),r._queue=r._queueTotalSize=void 0,v(r),r._closeRequested=!1,r._started=!1,r._strategyHWM=h(i),r._pullAlgorithm=t,r._cancelAlgorithm=a,r._autoAllocateChunkSize=s,r._pendingPullIntos=[],e._readableStreamController=r;const f=n();Promise.resolve(f).then(()=>{r._started=!0,xe(r)},e=>{nt(r,e)}).catch(w)}(e,t,function(){return d(r,"start",[t])},a,i,n,s)}(this,e,t=h(t))}else{if(void 0!==a)throw new RangeError("Invalid type is specified");{const r=b(n);void 0===t&&(t=1),function(e,r,n,t){const a=Object.create(ReadableStreamDefaultController.prototype);const i=u(r,"pull",0,[a]),s=u(r,"cancel",1,[]);$e(e,a,function(){return d(r,"start",[a])},i,s,n,t)}(this,e,t=h(t),r)}}}get locked(){if(!1===_e(this))throw st("locked");return he(this)}cancel(e){return!1===_e(this)?Promise.reject(st("cancel")):!0===he(this)?Promise.reject(new TypeError("Cannot cancel a stream that already has a reader")):pe(this,e)}getReader({mode:e}={}){if(!1===_e(this))throw st("getReader");if(void 0===e)return ue(this);if("byob"===(e=String(e)))return function(e){return new ReadableStreamBYOBReader(e)}(this);throw new RangeError("Invalid mode is specified")}pipeThrough({writable:e,readable:r},{preventClose:n,preventAbort:t,preventCancel:a,signal:i}={}){if(!1===_e(this))throw st("pipeThrough");if(!1===E(e))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===_e(r))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(n=Boolean(n),t=Boolean(t),a=Boolean(a),void 0!==i&&!at(i))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===he(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===C(e))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return be(this,e,n,t,a,i).catch(()=>{}),r}pipeTo(e,{preventClose:r,preventAbort:n,preventCancel:t,signal:a}={}){return!1===_e(this)?Promise.reject(st("pipeTo")):!1===E(e)?Promise.reject(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(r=Boolean(r),n=Boolean(n),t=Boolean(t),void 0===a||at(a)?!0===he(this)?Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===C(e)?Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):be(this,e,r,n,t,a):Promise.reject(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))}tee(){if(!1===_e(this))throw st("tee");const e=function(e,r){const n=ue(e);let t,i,s,f,c,l=!1,d=!1,u=!1;const o=new Promise(e=>{c=e});function _(){return Be(n).then(e=>{const r=e.value,n=e.done;if(!0===n&&!1===l&&(!1===d&&Le(s._readableStreamController),!1===u&&Le(f._readableStreamController),l=!0),!0===l)return;const t=r,a=r;!1===d&&Ie(s._readableStreamController,t),!1===u&&Ie(f._readableStreamController,a)})}function h(){}return s=de(h,_,function(r){if(d=!0,t=r,!0===u){const r=a([t,i]),n=pe(e,r);c(n)}return o}),f=de(h,_,function(r){if(u=!0,i=r,!0===d){const r=a([t,i]),n=pe(e,r);c(n)}return o}),n._closedPromise.catch(e=>{!0!==l&&(De(s._readableStreamController,e),De(f._readableStreamController,e),l=!0)}),[s,f]}(this);return a(e)}}function ue(e){return new ReadableStreamDefaultReader(e)}function de(e,r,n,t=1,a=(()=>1)){const i=Object.create(ReadableStream.prototype);return fe(i),$e(i,Object.create(ReadableStreamDefaultController.prototype),e,r,n,t,a),i}function fe(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function _e(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function he(e){return void 0!==e._reader}function be(e,t,a,i,s,f){const c=ue(e),l=T(t);let d=!1,u=Promise.resolve();return new Promise((r,o)=>{let v;if(void 0!==f){if(v=(()=>{const r=new DOMException("Aborted","AbortError"),n=[];!1===i&&n.push(()=>"writable"===t._state?j(t,r):Promise.resolve()),!1===s&&n.push(()=>"readable"===e._state?pe(e,r):Promise.resolve()),b(()=>y(n.map(e=>e()),e=>e),!0,r)}),!0===f.aborted)return void v();f.addEventListener("abort",v)}if(h(e,c._closedPromise,e=>{!1===i?b(()=>j(t,e),!0,e):m(!0,e)}),h(t,l._closedPromise,r=>{!1===s?b(()=>pe(e,r),!0,r):m(!0,r)}),function(e,r,n){"closed"===e._state?n():r.then(n).catch(w)}(e,c._closedPromise,()=>{!1===a?b(()=>(function(e){const r=e._ownerWritableStream,n=r._state;return!0===O(r)||"closed"===n?Promise.resolve():"errored"===n?Promise.reject(r._storedError):L(e)})(l)):m()}),!0===O(t)||"closed"===t._state){const r=new TypeError("the destination writable stream closed before all data could be piped to it");!1===s?b(()=>pe(e,r),!0,r):m(!0,r)}function _(){const e=u;return u.then(()=>e!==u?_():void 0)}function h(e,r,n){"errored"===e._state?n(e._storedError):r.catch(n).catch(w)}function b(e,r,a){function n(){e().then(()=>p(r,a),e=>p(!0,e)).catch(w)}!0!==d&&(d=!0,"writable"===t._state&&!1===O(t)?_().then(n):n())}function m(e,r){!0!==d&&(d=!0,"writable"===t._state&&!1===O(t)?_().then(()=>p(e,r)).catch(w):p(e,r))}function p(e,n){M(l),We(c),void 0!==f&&f.removeEventListener("abort",v),e?o(n):r(void 0)}new Promise((e,n)=>{!function r(t){t?e():(!0===d?Promise.resolve(!0):l._readyPromise.then(()=>Be(c).then(({value:e,done:r})=>!0===r||(u=Y(l,e).catch(()=>{}),!1)))).then(r,n)}(!1)}).catch(e=>{u=Promise.resolve(),w(e)})})}function me(e,r){return new Promise((n,t)=>{const a={_resolve:n,_reject:t,_forAuthorCode:r};e._reader._readIntoRequests.push(a)})}function ye(e,r){return new Promise((n,t)=>{const a={_resolve:n,_reject:t,_forAuthorCode:r};e._reader._readRequests.push(a)})}function pe(e,r){if(e._disturbed=!0,"closed"===e._state)return Promise.resolve(void 0);if("errored"===e._state)return Promise.reject(e._storedError);return we(e),e._readableStreamController[le](r).then(()=>void 0)}function we(e){e._state="closed";const r=e._reader;if(void 0!==r){if(Ce(r)){for(const e of r._readRequests){const r=e._resolve;const n=e._forAuthorCode;r(ge(void 0,!0,n))}r._readRequests=[]}_t(r)}}function ge(e,r,n){let t=null;!0===n&&(t=Object.prototype);const a=Object.create(t);return Object.defineProperty(a,"value",{value:e,enumerable:!0,writable:!0,configurable:!0}),Object.defineProperty(a,"done",{value:r,enumerable:!0,writable:!0,configurable:!0}),a}function Se(e,r){e._state="errored",e._storedError=r;const n=e._reader;if(void 0!==n){if(Ce(n)){for(const e of n._readRequests)e._reject(r);n._readRequests=[]}else{for(const e of n._readIntoRequests)e._reject(r);n._readIntoRequests=[]}ft(n,r)}}function ve(e,r,n){const t=e._reader._readRequests.shift();t._resolve(ge(r,n,t._forAuthorCode))}function Re(e){return e._reader._readIntoRequests.length}function Pe(e){return e._reader._readRequests.length}function Te(e){const r=e._reader;return void 0!==r&&!!Ee(r)}function qe(e){const r=e._reader;return void 0!==r&&!!Ce(r)}class ReadableStreamDefaultReader{constructor(e){if(!1===_e(e))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===he(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");je(this,e),this._readRequests=[]}get closed(){return Ce(this)?this._closedPromise:Promise.reject(ct("closed"))}cancel(e){return Ce(this)?void 0===this._ownerReadableStream?Promise.reject(lt("cancel")):Ae(this,e):Promise.reject(ct("cancel"))}read(){return Ce(this)?void 0===this._ownerReadableStream?Promise.reject(lt("read from")):Be(this,!0):Promise.reject(ct("read"))}releaseLock(){if(!Ce(this))throw ct("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");We(this)}}}class ReadableStreamBYOBReader{constructor(e){if(!_e(e))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===Ne(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(he(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");je(this,e),this._readIntoRequests=[]}get closed(){return Ee(this)?this._closedPromise:Promise.reject(ht("closed"))}cancel(e){return Ee(this)?void 0===this._ownerReadableStream?Promise.reject(lt("cancel")):Ae(this,e):Promise.reject(ht("cancel"))}read(e){return Ee(this)?void 0===this._ownerReadableStream?Promise.reject(lt("read from")):ArrayBuffer.isView(e)?(e.buffer,0===e.byteLength?Promise.reject(new TypeError("view must have non-zero byteLength")):function(e,r,n=!1){const t=e._ownerReadableStream;if(t._disturbed=!0,"errored"===t._state)return Promise.reject(t._storedError);return function(e,r,n){const t=e._controlledReadableByteStream;let a=1;r.constructor!==DataView&&(a=r.constructor.BYTES_PER_ELEMENT);const i=r.constructor,s={buffer:_(r.buffer),byteOffset:r.byteOffset,byteLength:r.byteLength,bytesFilled:0,elementSize:a,ctor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(s),me(t,n);if("closed"===t._state){const e=new i(s.buffer,s.byteOffset,0);return Promise.resolve(ge(e,!0,n))}if(e._queueTotalSize>0){if(!0===Je(e,s)){const r=Ve(s);return Xe(e),Promise.resolve(ge(r,!1,n))}if(!0===e._closeRequested){const r=new TypeError("Insufficient bytes to fill elements in the given buffer");return nt(e,r),Promise.reject(r)}}e._pendingPullIntos.push(s);const f=me(t,n);return xe(e),f}(t._readableStreamController,r,n)}(this,e,!0)):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(ht("read"))}releaseLock(){if(!Ee(this))throw ht("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");We(this)}}}function Ee(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function Ce(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function je(e,r){e._ownerReadableStream=r,r._reader=e,"readable"===r._state?ut(e):"closed"===r._state?function(e){ut(e),_t(e)}(e):dt(e,r._storedError)}function Ae(e,r){return pe(e._ownerReadableStream,r)}function We(e){"readable"===e._ownerReadableStream._state?ft(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(e,r){dt(e,r)}(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function Be(e,r=!1){const n=e._ownerReadableStream;return n._disturbed=!0,"closed"===n._state?Promise.resolve(ge(void 0,!0,r)):"errored"===n._state?Promise.reject(n._storedError):n._readableStreamController[er](r)}class ReadableStreamDefaultController{constructor(){throw new TypeError}get desiredSize(){if(!1===Oe(this))throw bt("desiredSize");return Me(this)}close(){if(!1===Oe(this))throw bt("close");if(!1===Ye(this))throw new TypeError("The stream is not in a state that permits close");Le(this)}enqueue(e){if(!1===Oe(this))throw bt("enqueue");if(!1===Ye(this))throw new TypeError("The stream is not in a state that permits enqueue");return Ie(this,e)}error(e){if(!1===Oe(this))throw bt("error");De(this,e)}[le](e){v(this);const r=this._cancelAlgorithm(e);return Fe(this),r}[er](e){const r=this._controlledReadableStream;if(this._queue.length>0){const n=g(this);return!0===this._closeRequested&&0===this._queue.length?(Fe(this),we(r)):ze(this),Promise.resolve(ge(n,!1,e))}const n=ye(r,e);return ze(this),n}}function Oe(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function ze(e){!1!==ke(e)&&(!0!==e._pulling?(e._pulling=!0,e._pullAlgorithm().then(()=>{if(e._pulling=!1,!0===e._pullAgain)return e._pullAgain=!1,ze(e)},r=>{De(e,r)}).catch(w)):e._pullAgain=!0)}function ke(e){const r=e._controlledReadableStream;return!1!==Ye(e)&&!1!==e._started&&(!0===he(r)&&Pe(r)>0||Me(e)>0)}function Fe(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Le(e){const r=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(Fe(e),we(r))}function Ie(e,r){const n=e._controlledReadableStream;if(!0===he(n)&&Pe(n)>0)ve(n,r,!1);else{let n;try{n=e._strategySizeAlgorithm(r)}catch(r){throw De(e,r),r}try{S(e,r,n)}catch(r){throw De(e,r),r}}ze(e)}function De(e,r){const n=e._controlledReadableStream;"readable"===n._state&&(v(e),Fe(e),Se(n,r))}function Me(e){const r=e._controlledReadableStream._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function Ye(e){const r=e._controlledReadableStream._state;return!1===e._closeRequested&&"readable"===r}function $e(e,r,n,t,a,i,s){r._controlledReadableStream=e,r._queue=void 0,r._queueTotalSize=void 0,v(r),r._started=!1,r._closeRequested=!1,r._pullAgain=!1,r._pulling=!1,r._strategySizeAlgorithm=s,r._strategyHWM=i,r._pullAlgorithm=t,r._cancelAlgorithm=a,e._readableStreamController=r;const f=n();Promise.resolve(f).then(()=>{r._started=!0,ze(r)},e=>{De(r,e)}).catch(w)}class ReadableStreamBYOBRequest{constructor(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}get view(){if(!1===Qe(this))throw mt("view");return this._view}respond(e){if(!1===Qe(this))throw mt("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,function(e,r){if(!1===l(r=Number(r)))throw new RangeError("bytesWritten must be a finite");tt(e,r)}(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!1===Qe(this))throw mt("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");e.buffer,function(e,r){const n=e._pendingPullIntos[0];if(n.byteOffset+n.bytesFilled!==r.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(n.byteLength!==r.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");n.buffer=r.buffer,tt(e,r.byteLength)}(this._associatedReadableByteStreamController,e)}}class ReadableByteStreamController{constructor(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}get byobRequest(){if(!1===Ne(this))throw yt("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){const e=this._pendingPullIntos[0],r=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled),n=Object.create(ReadableStreamBYOBRequest.prototype);!function(e,r,n){e._associatedReadableByteStreamController=r,e._view=n}(n,this,r),this._byobRequest=n}return this._byobRequest}get desiredSize(){if(!1===Ne(this))throw yt("desiredSize");return it(this)}close(){if(!1===Ne(this))throw yt("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");const e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);!function(e){const r=e._controlledReadableByteStream;if(e._queueTotalSize>0)return void(e._closeRequested=!0);if(e._pendingPullIntos.length>0){const r=e._pendingPullIntos[0];if(r.bytesFilled>0){const r=new TypeError("Insufficient bytes to fill elements in the given buffer");throw nt(e,r),r}}ot(e),we(r)}(this)}enqueue(e){if(!1===Ne(this))throw yt("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");const r=this._controlledReadableByteStream._state;if("readable"!==r)throw new TypeError(`The stream (in ${r} state) is not in the readable state and cannot be enqueued to`);if(!ArrayBuffer.isView(e))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");e.buffer,function(e,r){const n=e._controlledReadableByteStream,t=r.buffer,a=r.byteOffset,i=r.byteLength,s=_(t);if(!0===qe(n)){if(0===Pe(n))Ge(e,s,a,i);else{const e=new Uint8Array(s,a,i);ve(n,e,!1)}}else!0===Te(n)?(Ge(e,s,a,i),et(e)):Ge(e,s,a,i);xe(e)}(this,e)}error(e){if(!1===Ne(this))throw yt("error");nt(this,e)}[le](e){if(this._pendingPullIntos.length>0){this._pendingPullIntos[0].bytesFilled=0}v(this);const r=this._cancelAlgorithm(e);return ot(this),r}[er](e){const r=this._controlledReadableByteStream;if(this._queueTotalSize>0){const r=this._queue.shift();let n;this._queueTotalSize-=r.byteLength,Xe(this);try{n=new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}catch(e){return Promise.reject(e)}return Promise.resolve(ge(n,!1,e))}const n=this._autoAllocateChunkSize;if(void 0!==n){let r;try{r=new ArrayBuffer(n)}catch(e){return Promise.reject(e)}const t={buffer:r,byteOffset:0,byteLength:n,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(t)}const t=ye(r,e);return xe(this),t}}function Ne(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function Qe(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function xe(e){!1!==function(e){const r=e._controlledReadableByteStream;if("readable"!==r._state)return!1;if(!0===e._closeRequested)return!1;if(!1===e._started)return!1;if(!0===qe(r)&&Pe(r)>0)return!0;if(!0===Te(r)&&Re(r)>0)return!0;if(it(e)>0)return!0;return!1}(e)&&(!0!==e._pulling?(e._pulling=!0,e._pullAlgorithm().then(()=>{e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,xe(e))},r=>{nt(e,r)}).catch(w)):e._pullAgain=!0)}function He(e){Ze(e),e._pendingPullIntos=[]}function Ue(e,r){let n=!1;"closed"===e._state&&(n=!0);const t=Ve(r);"default"===r.readerType?ve(e,t,n):function(e,r,n){const t=e._reader._readIntoRequests.shift();t._resolve(ge(r,n,t._forAuthorCode))}(e,t,n)}function Ve(e){const r=e.bytesFilled,n=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,r/n)}function Ge(e,r,n,t){e._queue.push({buffer:r,byteOffset:n,byteLength:t}),e._queueTotalSize+=t}function Je(e,r){const n=r.elementSize,t=r.bytesFilled-r.bytesFilled%n,a=Math.min(e._queueTotalSize,r.byteLength-r.bytesFilled),i=r.bytesFilled+a,f=i-i%n;let c=a,l=!1;f>t&&(c=f-r.bytesFilled,l=!0);const d=e._queue;for(;c>0;){const n=d[0],t=Math.min(c,n.byteLength),a=r.byteOffset+r.bytesFilled;s(r.buffer,a,n.buffer,n.byteOffset,t),n.byteLength===t?d.shift():(n.byteOffset+=t,n.byteLength-=t),e._queueTotalSize-=t,Ke(e,t,r),c-=t}return l}function Ke(e,r,n){Ze(e),n.bytesFilled+=r}function Xe(e){0===e._queueTotalSize&&!0===e._closeRequested?(ot(e),we(e._controlledReadableByteStream)):xe(e)}function Ze(e){void 0!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function et(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;const r=e._pendingPullIntos[0];!0===Je(e,r)&&(rt(e),Ue(e._controlledReadableByteStream,r))}}function tt(e,r){const n=e._pendingPullIntos[0];if("closed"===e._controlledReadableByteStream._state){if(0!==r)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");!function(e,r){r.buffer=_(r.buffer);const n=e._controlledReadableByteStream;if(!0===Te(n))for(;Re(n)>0;)Ue(n,rt(e))}(e,n)}else!function(e,r,n){if(n.bytesFilled+r>n.byteLength)throw new RangeError("bytesWritten out of range");if(Ke(e,r,n),n.bytesFilled0){const r=n.byteOffset+n.bytesFilled,a=n.buffer.slice(r-t,r);Ge(e,a,0,a.byteLength)}n.buffer=_(n.buffer),n.bytesFilled-=t,Ue(e._controlledReadableByteStream,n),et(e)}(e,r,n);xe(e)}function rt(e){const r=e._pendingPullIntos.shift();return Ze(e),r}function ot(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function nt(e,r){const n=e._controlledReadableByteStream;"readable"===n._state&&(He(e),v(e),ot(e),Se(n,r))}function it(e){const r=e._controlledReadableByteStream._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function at(e){if("object"!=typeof e||null===e)return!1;const r=Object.getOwnPropertyDescriptor(AbortSignal.prototype,"aborted").get;try{return r.call(e),!0}catch(e){return!1}}function st(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function lt(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function ct(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}function ut(e){e._closedPromise=new Promise((r,n)=>{e._closedPromise_resolve=r,e._closedPromise_reject=n})}function dt(e,r){ut(e),ft(e,r)}function ft(e,r){e._closedPromise.catch(()=>{}),e._closedPromise_reject(r),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function _t(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function ht(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function bt(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function mt(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function yt(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}class ByteLengthQueuingStrategy{constructor({highWaterMark:e}){i(this,"highWaterMark",e)}size(e){return e.byteLength}}class CountQueuingStrategy{constructor({highWaterMark:e}){i(this,"highWaterMark",e)}size(){return 1}}class TransformStream{constructor(e={},r={},n={}){const t=r.size;let a=r.highWaterMark;const i=n.size;let s=n.highWaterMark;if(void 0!==e.writableType)throw new RangeError("Invalid writable type specified");const c=b(t);if(void 0===a&&(a=1),a=h(a),void 0!==e.readableType)throw new RangeError("Invalid readable type specified");const l=b(i);let o;void 0===s&&(s=0),s=h(s),function(e,r,n,t,i,s){function a(){return r}e._writable=function(e,r,n,t,a=1,i=(()=>1)){const s=Object.create(WritableStream.prototype);return q(s),$(s,Object.create(WritableStreamDefaultController.prototype),e,r,n,t,a,i),s}(a,function(r){return function(e,r){const n=e._transformStreamController;if(!0===e._backpressure){const t=e._backpressureChangePromise;return t.then(()=>{const t=e._writable,a=t._state;if("erroring"===a)throw t._storedError;return Tt(n,r)})}return Tt(n,r)}(e,r)},function(){return function(e){const r=e._readable,n=e._transformStreamController,t=n._flushAlgorithm();return Rt(n),t.then(()=>{if("errored"===r._state)throw r._storedError;const e=r._readableStreamController;!0===Ye(e)&&Le(e)}).catch(n=>{throw wt(e,n),r._storedError})}(e)},function(r){return function(e,r){return wt(e,r),Promise.resolve()}(e,r)},n,t),e._readable=de(a,function(){return function(e){return St(e,!1),e._backpressureChangePromise}(e)},function(r){return gt(e,r),Promise.resolve()},i,s),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,St(e,!0),e._transformStreamController=void 0}(this,new Promise(e=>{o=e}),a,c,s,l),function(e,r){const n=Object.create(TransformStreamDefaultController.prototype);let t=e=>{try{return Pt(n,e),Promise.resolve()}catch(e){return Promise.reject(e)}};const a=r.transform;if(void 0!==a){if("function"!=typeof a)throw new TypeError("transform is not a method");t=(e=>f(a,r,[e,n]))}const i=u(r,"flush",0,[n]);!function(e,r,n,t){r._controlledTransformStream=e,e._transformStreamController=r,r._transformAlgorithm=n,r._flushAlgorithm=t}(e,n,t,i)}(this,e);const v=d(e,"start",[this._transformStreamController]);o(v)}get readable(){if(!1===pt(this))throw Et("readable");return this._readable}get writable(){if(!1===pt(this))throw Et("writable");return this._writable}}function pt(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function wt(e,r){De(e._readable._readableStreamController,r),gt(e,r)}function gt(e,r){Rt(e._transformStreamController),H(e._writable._writableStreamController,r),!0===e._backpressure&&St(e,!1)}function St(e,r){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=new Promise(r=>{e._backpressureChangePromise_resolve=r}),e._backpressure=r}class TransformStreamDefaultController{constructor(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}get desiredSize(){if(!1===vt(this))throw qt("desiredSize");return Me(this._controlledTransformStream._readable._readableStreamController)}enqueue(e){if(!1===vt(this))throw qt("enqueue");Pt(this,e)}error(e){if(!1===vt(this))throw qt("error");!function(e,r){wt(e._controlledTransformStream,r)}(this,e)}terminate(){if(!1===vt(this))throw qt("terminate");!function(e){const r=e._controlledTransformStream,n=r._readable._readableStreamController;!0===Ye(n)&&Le(n);const t=new TypeError("TransformStream terminated");gt(r,t)}(this)}}function vt(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function Rt(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function Pt(e,r){const n=e._controlledTransformStream,t=n._readable._readableStreamController;if(!1===Ye(t))throw new TypeError("Readable side is not in a state that permits enqueue");try{Ie(t,r)}catch(e){throw gt(n,e),n._readable._storedError}(function(e){return!0!==ke(e)})(t)!==n._backpressure&&St(n,!0)}function Tt(e,r){return e._transformAlgorithm(r).catch(r=>{throw wt(e._controlledTransformStream,r),r})}function qt(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}function Et(e){return new TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`)}const rr={ReadableStream:ReadableStream,WritableStream:WritableStream,ByteLengthQueuingStrategy:ByteLengthQueuingStrategy,CountQueuingStrategy:CountQueuingStrategy,TransformStream:TransformStream};void 0!==o&&Object.assign(o,rr),e.ReadableStream=ReadableStream,e.WritableStream=WritableStream,e.ByteLengthQueuingStrategy=ByteLengthQueuingStrategy,e.CountQueuingStrategy=CountQueuingStrategy,e.TransformStream=TransformStream,Object.defineProperty(e,"__esModule",{value:!0})})}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],2:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=n.AES_asm=function(){"use strict";var e=false;var r,n;function ginit(){r=[],n=[];var t=1,a,i;for(a=0;a<255;a++){r[a]=t;i=t&128,t<<=1,t&=255;if(i===128)t^=27;t^=r[a];n[r[a]]=a}r[255]=r[0];n[0]=0;e=true}function gmul(e,t){var a=r[(n[e]+n[t])%255];if(e===0||t===0)a=0;return a}function ginv(e){var t=r[255-n[e]];if(e===0)t=0;return t}var t=false;var a;var i;var s;var f;function aes_init(){if(!e)ginit();function _s(e){var r,n,t;n=t=ginv(e);for(r=0;r<4;r++){n=(n<<1|n>>>7)&255;t^=n}t^=99;return t}a=[],i=[],s=[[],[],[],[]],f=[[],[],[],[]];for(var r=0;r<256;r++){var n=_s(r);a[r]=n;i[n]=r;s[0][r]=gmul(2,n)<<24|n<<16|n<<8|gmul(3,n);f[0][n]=gmul(14,r)<<24|gmul(9,r)<<16|gmul(13,r)<<8|gmul(11,r);for(var c=1;c<4;c++){s[c][r]=s[c-1][r]>>>8|s[c-1][r]<<24;f[c][n]=f[c-1][n]>>>8|f[c-1][n]<<24}}t=true}var c=function wrapper(e,r){if(!t)aes_init();var n=new Uint32Array(r);n.set(a,2048>>2);n.set(i,3072>>2);for(var c=0;c<4;c++){n.set(s[c],4096+1024*c>>2);n.set(f[c],8192+1024*c>>2)}function set_key(e,r,t,i,s,c,l,u,o){var h=n.subarray(0,60),v=n.subarray(256,256+60);h.set([r,t,i,s,c,l,u,o]);for(var p=e,b=1;p<4*e+28;p++){var y=h[p-1];if(p%e===0||e===8&&p%e===4){y=a[y>>>24]<<24^a[y>>>16&255]<<16^a[y>>>8&255]<<8^a[y&255]}if(p%e===0){y=y<<8^y>>>24^b<<24;b=b<<1^(b&128?27:0)}h[p]=h[p-e]^y}for(var g=0;g=p-4){v[g+w]=y}else{v[g+w]=f[0][a[y>>>24]]^f[1][a[y>>>16&255]]^f[2][a[y>>>8&255]]^f[3][a[y&255]]}}}d.set_rounds(e+5)}var l={Uint8Array:Uint8Array,Uint32Array:Uint32Array};var d=function(e,r,n){"use asm";var t=0,a=0,i=0,s=0,f=0,c=0,l=0,d=0,u=0,o=0,h=0,v=0,p=0,b=0,y=0,g=0,w=0,m=0,A=0,E=0,S=0;var k=new e.Uint32Array(n),R=new e.Uint8Array(n);function _core(e,r,n,f,c,l,d,u){e=e|0;r=r|0;n=n|0;f=f|0;c=c|0;l=l|0;d=d|0;u=u|0;var o=0,h=0,v=0,p=0,b=0,y=0,g=0,w=0;o=n|0x400,h=n|0x800,v=n|0xc00;c=c^k[(e|0)>>2],l=l^k[(e|4)>>2],d=d^k[(e|8)>>2],u=u^k[(e|12)>>2];for(w=16;(w|0)<=f<<4;w=w+16|0){p=k[(n|c>>22&1020)>>2]^k[(o|l>>14&1020)>>2]^k[(h|d>>6&1020)>>2]^k[(v|u<<2&1020)>>2]^k[(e|w|0)>>2],b=k[(n|l>>22&1020)>>2]^k[(o|d>>14&1020)>>2]^k[(h|u>>6&1020)>>2]^k[(v|c<<2&1020)>>2]^k[(e|w|4)>>2],y=k[(n|d>>22&1020)>>2]^k[(o|u>>14&1020)>>2]^k[(h|c>>6&1020)>>2]^k[(v|l<<2&1020)>>2]^k[(e|w|8)>>2],g=k[(n|u>>22&1020)>>2]^k[(o|c>>14&1020)>>2]^k[(h|l>>6&1020)>>2]^k[(v|d<<2&1020)>>2]^k[(e|w|12)>>2];c=p,l=b,d=y,u=g}t=k[(r|c>>22&1020)>>2]<<24^k[(r|l>>14&1020)>>2]<<16^k[(r|d>>6&1020)>>2]<<8^k[(r|u<<2&1020)>>2]^k[(e|w|0)>>2],a=k[(r|l>>22&1020)>>2]<<24^k[(r|d>>14&1020)>>2]<<16^k[(r|u>>6&1020)>>2]<<8^k[(r|c<<2&1020)>>2]^k[(e|w|4)>>2],i=k[(r|d>>22&1020)>>2]<<24^k[(r|u>>14&1020)>>2]<<16^k[(r|c>>6&1020)>>2]<<8^k[(r|l<<2&1020)>>2]^k[(e|w|8)>>2],s=k[(r|u>>22&1020)>>2]<<24^k[(r|c>>14&1020)>>2]<<16^k[(r|l>>6&1020)>>2]<<8^k[(r|d<<2&1020)>>2]^k[(e|w|12)>>2]}function _ecb_enc(e,r,n,t){e=e|0;r=r|0;n=n|0;t=t|0;_core(0x0000,0x0800,0x1000,S,e,r,n,t)}function _ecb_dec(e,r,n,t){e=e|0;r=r|0;n=n|0;t=t|0;var i=0;_core(0x0400,0x0c00,0x2000,S,e,t,n,r);i=a,a=s,s=i}function _cbc_enc(e,r,n,u){e=e|0;r=r|0;n=n|0;u=u|0;_core(0x0000,0x0800,0x1000,S,f^e,c^r,l^n,d^u);f=t,c=a,l=i,d=s}function _cbc_dec(e,r,n,u){e=e|0;r=r|0;n=n|0;u=u|0;var o=0;_core(0x0400,0x0c00,0x2000,S,e,u,n,r);o=a,a=s,s=o;t=t^f,a=a^c,i=i^l,s=s^d;f=e,c=r,l=n,d=u}function _cfb_enc(e,r,n,u){e=e|0;r=r|0;n=n|0;u=u|0;_core(0x0000,0x0800,0x1000,S,f,c,l,d);f=t=t^e,c=a=a^r,l=i=i^n,d=s=s^u}function _cfb_dec(e,r,n,u){e=e|0;r=r|0;n=n|0;u=u|0;_core(0x0000,0x0800,0x1000,S,f,c,l,d);t=t^e,a=a^r,i=i^n,s=s^u;f=e,c=r,l=n,d=u}function _ofb(e,r,n,u){e=e|0;r=r|0;n=n|0;u=u|0;_core(0x0000,0x0800,0x1000,S,f,c,l,d);f=t,c=a,l=i,d=s;t=t^e,a=a^r,i=i^n,s=s^u}function _ctr(e,r,n,f){e=e|0;r=r|0;n=n|0;f=f|0;_core(0x0000,0x0800,0x1000,S,u,o,h,v);v=~g&v|g&v+1;h=~y&h|y&h+((v|0)==0);o=~b&o|b&o+((h|0)==0);u=~p&u|p&u+((o|0)==0);t=t^e;a=a^r;i=i^n;s=s^f}function _gcm_mac(e,r,n,t){e=e|0;r=r|0;n=n|0;t=t|0;var a=0,i=0,s=0,u=0,o=0,h=0,v=0,p=0,b=0,y=0;e=e^f,r=r^c,n=n^l,t=t^d;a=w|0,i=m|0,s=A|0,u=E|0;for(;(b|0)<128;b=b+1|0){if(a>>>31){o=o^e,h=h^r,v=v^n,p=p^t}a=a<<1|i>>>31,i=i<<1|s>>>31,s=s<<1|u>>>31,u=u<<1;y=t&1;t=t>>>1|n<<31,n=n>>>1|r<<31,r=r>>>1|e<<31,e=e>>>1;if(y)e=e^0xe1000000}f=o,c=h,l=v,d=p}function set_rounds(e){e=e|0;S=e}function set_state(e,r,n,f){e=e|0;r=r|0;n=n|0;f=f|0;t=e,a=r,i=n,s=f}function set_iv(e,r,n,t){e=e|0;r=r|0;n=n|0;t=t|0;f=e,c=r,l=n,d=t}function set_nonce(e,r,n,t){e=e|0;r=r|0;n=n|0;t=t|0;u=e,o=r,h=n,v=t}function set_mask(e,r,n,t){e=e|0;r=r|0;n=n|0;t=t|0;p=e,b=r,y=n,g=t}function set_counter(e,r,n,t){e=e|0;r=r|0;n=n|0;t=t|0;v=~g&v|g&t,h=~y&h|y&n,o=~b&o|b&r,u=~p&u|p&e}function get_state(e){e=e|0;if(e&15)return-1;R[e|0]=t>>>24,R[e|1]=t>>>16&255,R[e|2]=t>>>8&255,R[e|3]=t&255,R[e|4]=a>>>24,R[e|5]=a>>>16&255,R[e|6]=a>>>8&255,R[e|7]=a&255,R[e|8]=i>>>24,R[e|9]=i>>>16&255,R[e|10]=i>>>8&255,R[e|11]=i&255,R[e|12]=s>>>24,R[e|13]=s>>>16&255,R[e|14]=s>>>8&255,R[e|15]=s&255;return 16}function get_iv(e){e=e|0;if(e&15)return-1;R[e|0]=f>>>24,R[e|1]=f>>>16&255,R[e|2]=f>>>8&255,R[e|3]=f&255,R[e|4]=c>>>24,R[e|5]=c>>>16&255,R[e|6]=c>>>8&255,R[e|7]=c&255,R[e|8]=l>>>24,R[e|9]=l>>>16&255,R[e|10]=l>>>8&255,R[e|11]=l&255,R[e|12]=d>>>24,R[e|13]=d>>>16&255,R[e|14]=d>>>8&255,R[e|15]=d&255;return 16}function gcm_init(){_ecb_enc(0,0,0,0);w=t,m=a,A=i,E=s}function cipher(e,r,n){e=e|0;r=r|0;n=n|0;var f=0;if(r&15)return-1;while((n|0)>=16){M[e&7](R[r|0]<<24|R[r|1]<<16|R[r|2]<<8|R[r|3],R[r|4]<<24|R[r|5]<<16|R[r|6]<<8|R[r|7],R[r|8]<<24|R[r|9]<<16|R[r|10]<<8|R[r|11],R[r|12]<<24|R[r|13]<<16|R[r|14]<<8|R[r|15]);R[r|0]=t>>>24,R[r|1]=t>>>16&255,R[r|2]=t>>>8&255,R[r|3]=t&255,R[r|4]=a>>>24,R[r|5]=a>>>16&255,R[r|6]=a>>>8&255,R[r|7]=a&255,R[r|8]=i>>>24,R[r|9]=i>>>16&255,R[r|10]=i>>>8&255,R[r|11]=i&255,R[r|12]=s>>>24,R[r|13]=s>>>16&255,R[r|14]=s>>>8&255,R[r|15]=s&255;f=f+16|0,r=r+16|0,n=n-16|0}return f|0}function mac(e,r,n){e=e|0;r=r|0;n=n|0;var t=0;if(r&15)return-1;while((n|0)>=16){C[e&1](R[r|0]<<24|R[r|1]<<16|R[r|2]<<8|R[r|3],R[r|4]<<24|R[r|5]<<16|R[r|6]<<8|R[r|7],R[r|8]<<24|R[r|9]<<16|R[r|10]<<8|R[r|11],R[r|12]<<24|R[r|13]<<16|R[r|14]<<8|R[r|15]);t=t+16|0,r=r+16|0,n=n-16|0}return t|0}var M=[_ecb_enc,_ecb_dec,_cbc_enc,_cbc_dec,_cfb_enc,_cfb_dec,_ofb,_ctr];var C=[_cbc_enc,_gcm_mac];return{set_rounds:set_rounds,set_state:set_state,set_iv:set_iv,set_nonce:set_nonce,set_mask:set_mask,set_counter:set_counter,get_state:get_state,get_iv:get_iv,gcm_init:gcm_init,cipher:cipher,mac:mac}}(l,e,r);d.set_key=set_key;return d};c.ENC={ECB:0,CBC:2,CFB:4,OFB:6,CTR:7},c.DEC={ECB:1,CBC:3,CFB:5,OFB:6,CTR:7},c.MAC={CBC:0,GCM:1};c.HEAP_DATA=16384;return c}()},{}],3:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.AES=undefined;var t=e("./aes.asm");var a=e("../other/utils");var i=e("../other/errors");var s=[];var f=[];var c=function(){function AES(e,r,n,t){if(n===void 0){n=true}this.pos=0;this.len=0;this.mode=t;this.pos=0;this.len=0;this.key=e;this.iv=r;this.padding=n;this.acquire_asm()}AES.prototype.acquire_asm=function(){if(this.heap===undefined&&this.asm===undefined){this.heap=s.pop()||(0,a._heap_init)().subarray(t.AES_asm.HEAP_DATA);this.asm=f.pop()||(0,t.AES_asm)(null,this.heap.buffer);this.reset(this.key,this.iv)}};AES.prototype.release_asm=function(){s.push(this.heap);f.push(this.asm);this.heap=undefined;this.asm=undefined};AES.prototype.reset=function(e,r){var n=e.length;if(n!==16&&n!==24&&n!==32)throw new i.IllegalArgumentError("illegal key size");var t=new DataView(e.buffer,e.byteOffset,e.byteLength);this.asm.set_key(n>>2,t.getUint32(0),t.getUint32(4),t.getUint32(8),t.getUint32(12),n>16?t.getUint32(16):0,n>16?t.getUint32(20):0,n>24?t.getUint32(24):0,n>24?t.getUint32(28):0);if(r!==undefined){if(r.length!==16)throw new i.IllegalArgumentError("illegal iv size");var a=new DataView(r.buffer,r.byteOffset,r.byteLength);this.asm.set_iv(a.getUint32(0),a.getUint32(4),a.getUint32(8),a.getUint32(12))}else{this.asm.set_iv(0,0,0,0)}};AES.prototype.AES_Encrypt_process=function(e){if(!(0,a.is_bytes)(e))throw new TypeError("data isn't of expected type");this.acquire_asm();var r=this.asm;var n=this.heap;var i=t.AES_asm.ENC[this.mode];var s=t.AES_asm.HEAP_DATA;var f=this.pos;var c=this.len;var l=0;var d=e.length||0;var u=0;var o=c+d&-16;var h=0;var v=new Uint8Array(o);while(d>0){h=(0,a._heap_write)(n,f+c,e,l,d);c+=h;l+=h;d-=h;h=r.cipher(i,s+f,c);if(h)v.set(n.subarray(f,f+h),u);u+=h;if(h0){v=(0,a._heap_write)(n,f+c,e,l,d);c+=v;l+=v;d-=v;v=r.cipher(i,s+f,c-(!d?h:0));if(v)p.set(n.subarray(f,f+v),u);u+=v;if(v0){if(f%16){if(this.hasOwnProperty("padding")){throw new i.IllegalArgumentError("data length must be a multiple of the block size")}else{f+=16-f%16}}e.cipher(n,a+s,f);if(this.hasOwnProperty("padding")&&this.padding){var l=r[s+c-1];if(l<1||l>16||l>c)throw new i.SecurityError("bad padding");var d=0;for(var u=l;u>1;u--)d|=l^r[s+c-u];if(d)throw new i.SecurityError("bad padding");c-=l}}var o=new Uint8Array(c);if(c>0){o.set(r.subarray(s,s+c))}this.pos=0;this.len=0;this.release_asm();return o};return AES}();n.AES=c},{"../other/errors":14,"../other/utils":15,"./aes.asm":2}],4:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.AES_CBC=undefined;var t=e("./aes");var a=e("../other/utils");var i=undefined&&undefined.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(r.hasOwnProperty(n))e[n]=r[n]};return function(r,n){e(r,n);function __(){this.constructor=r}r.prototype=n===null?Object.create(n):(__.prototype=n.prototype,new __)}}();var s=function(e){i(AES_CBC,e);function AES_CBC(r,n,t){if(t===void 0){t=true}return e.call(this,r,n,t,"CBC")||this}AES_CBC.encrypt=function(e,r,n,t){if(n===void 0){n=true}return new AES_CBC(r,t,n).encrypt(e)};AES_CBC.decrypt=function(e,r,n,t){if(n===void 0){n=true}return new AES_CBC(r,t,n).decrypt(e)};AES_CBC.prototype.encrypt=function(e){var r=this.AES_Encrypt_process(e);var n=this.AES_Encrypt_finish();return(0,a.joinBytes)(r,n)};AES_CBC.prototype.decrypt=function(e){var r=this.AES_Decrypt_process(e);var n=this.AES_Decrypt_finish();return(0,a.joinBytes)(r,n)};return AES_CBC}(t.AES);n.AES_CBC=s},{"../other/utils":15,"./aes":3}],5:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.AES_CFB=undefined;var t=e("./aes");var a=e("../other/utils");var i=undefined&&undefined.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(r.hasOwnProperty(n))e[n]=r[n]};return function(r,n){e(r,n);function __(){this.constructor=r}r.prototype=n===null?Object.create(n):(__.prototype=n.prototype,new __)}}();var s=function(e){i(AES_CFB,e);function AES_CFB(r,n){var t=e.call(this,r,n,true,"CFB")||this;delete t.padding;return t}AES_CFB.encrypt=function(e,r,n){return new AES_CFB(r,n).encrypt(e)};AES_CFB.decrypt=function(e,r,n){return new AES_CFB(r,n).decrypt(e)};AES_CFB.prototype.encrypt=function(e){var r=this.AES_Encrypt_process(e);var n=this.AES_Encrypt_finish();return(0,a.joinBytes)(r,n)};AES_CFB.prototype.decrypt=function(e){var r=this.AES_Decrypt_process(e);var n=this.AES_Decrypt_finish();return(0,a.joinBytes)(r,n)};return AES_CFB}(t.AES);n.AES_CFB=s},{"../other/utils":15,"./aes":3}],6:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.AES_CTR=undefined;var t=e("./aes");var a=e("../other/errors");var i=e("../other/utils");var s=undefined&&undefined.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(r.hasOwnProperty(n))e[n]=r[n]};return function(r,n){e(r,n);function __(){this.constructor=r}r.prototype=n===null?Object.create(n):(__.prototype=n.prototype,new __)}}();var f=function(e){s(AES_CTR,e);function AES_CTR(r,n){var t=e.call(this,r,undefined,false,"CTR")||this;delete t.padding;t.AES_CTR_set_options(n);return t}AES_CTR.encrypt=function(e,r,n){return new AES_CTR(r,n).encrypt(e)};AES_CTR.decrypt=function(e,r,n){return new AES_CTR(r,n).encrypt(e)};AES_CTR.prototype.encrypt=function(e){var r=this.AES_Encrypt_process(e);var n=this.AES_Encrypt_finish();return(0,i.joinBytes)(r,n)};AES_CTR.prototype.decrypt=function(e){var r=this.AES_Encrypt_process(e);var n=this.AES_Encrypt_finish();return(0,i.joinBytes)(r,n)};AES_CTR.prototype.AES_CTR_set_options=function(e,r,n){if(n!==undefined){if(n<8||n>48)throw new a.IllegalArgumentError("illegal counter size");var t=Math.pow(2,n)-1;this.asm.set_mask(0,0,t/4294967296|0,t|0)}else{n=48;this.asm.set_mask(0,0,65535,4294967295)}if(e!==undefined){var i=e.length;if(!i||i>16)throw new a.IllegalArgumentError("illegal nonce size");var s=new DataView(new ArrayBuffer(16));new Uint8Array(s.buffer).set(e);this.asm.set_nonce(s.getUint32(0),s.getUint32(4),s.getUint32(8),s.getUint32(12))}else{throw new Error("nonce is required")}if(r!==undefined){if(r<0||r>=Math.pow(2,n))throw new a.IllegalArgumentError("illegal counter value");this.asm.set_counter(0,0,r/4294967296|0,r|0)}};return AES_CTR}(t.AES);n.AES_CTR=f},{"../other/errors":14,"../other/utils":15,"./aes":3}],7:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.AES_ECB=undefined;var t=e("./aes");var a=e("../other/utils");var i=undefined&&undefined.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(r.hasOwnProperty(n))e[n]=r[n]};return function(r,n){e(r,n);function __(){this.constructor=r}r.prototype=n===null?Object.create(n):(__.prototype=n.prototype,new __)}}();var s=function(e){i(AES_ECB,e);function AES_ECB(r,n){if(n===void 0){n=false}return e.call(this,r,undefined,n,"ECB")||this}AES_ECB.encrypt=function(e,r,n){if(n===void 0){n=false}return new AES_ECB(r,n).encrypt(e)};AES_ECB.decrypt=function(e,r,n){if(n===void 0){n=false}return new AES_ECB(r,n).decrypt(e)};AES_ECB.prototype.encrypt=function(e){var r=this.AES_Encrypt_process(e);var n=this.AES_Encrypt_finish();return(0,a.joinBytes)(r,n)};AES_ECB.prototype.decrypt=function(e){var r=this.AES_Decrypt_process(e);var n=this.AES_Decrypt_finish();return(0,a.joinBytes)(r,n)};return AES_ECB}(t.AES);n.AES_ECB=s},{"../other/utils":15,"./aes":3}],8:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.AES_GCM=undefined;var t=e("../other/errors");var a=e("../other/utils");var i=e("./aes");var s=e("./aes.asm");var f=undefined&&undefined.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(r.hasOwnProperty(n))e[n]=r[n]};return function(r,n){e(r,n);function __(){this.constructor=r}r.prototype=n===null?Object.create(n):(__.prototype=n.prototype,new __)}}();var c=68719476704;var l=function(e){f(AES_GCM,e);function AES_GCM(r,n,a,i){if(i===void 0){i=16}var f=e.call(this,r,undefined,false,"CTR")||this;f.tagSize=i;f.gamma0=0;f.counter=1;f.asm.gcm_init();if(f.tagSize<4||f.tagSize>16)throw new t.IllegalArgumentError("illegal tagSize value");var l=n.length||0;var d=new Uint8Array(16);if(l!==12){f._gcm_mac_process(n);f.heap[0]=0;f.heap[1]=0;f.heap[2]=0;f.heap[3]=0;f.heap[4]=0;f.heap[5]=0;f.heap[6]=0;f.heap[7]=0;f.heap[8]=0;f.heap[9]=0;f.heap[10]=0;f.heap[11]=l>>>29;f.heap[12]=l>>>21&255;f.heap[13]=l>>>13&255;f.heap[14]=l>>>5&255;f.heap[15]=l<<3&255;f.asm.mac(s.AES_asm.MAC.GCM,s.AES_asm.HEAP_DATA,16);f.asm.get_iv(s.AES_asm.HEAP_DATA);f.asm.set_iv(0,0,0,0);d.set(f.heap.subarray(0,16))}else{d.set(n);d[15]=1}var u=new DataView(d.buffer);f.gamma0=u.getUint32(12);f.asm.set_nonce(u.getUint32(0),u.getUint32(4),u.getUint32(8),0);f.asm.set_mask(0,0,0,4294967295);if(a!==undefined){if(a.length>c)throw new t.IllegalArgumentError("illegal adata length");if(a.length){f.adata=a;f._gcm_mac_process(a)}else{f.adata=undefined}}else{f.adata=undefined}if(f.counter<1||f.counter>4294967295)throw new RangeError("counter must be a positive 32-bit integer");f.asm.set_counter(0,0,0,f.gamma0+f.counter|0);return f}AES_GCM.encrypt=function(e,r,n,t,a){return new AES_GCM(r,n,t,a).encrypt(e)};AES_GCM.decrypt=function(e,r,n,t,a){return new AES_GCM(r,n,t,a).decrypt(e)};AES_GCM.prototype.encrypt=function(e){return this.AES_GCM_encrypt(e)};AES_GCM.prototype.decrypt=function(e){return this.AES_GCM_decrypt(e)};AES_GCM.prototype.AES_GCM_Encrypt_process=function(e){var r=0;var n=e.length||0;var t=this.asm;var i=this.heap;var f=this.counter;var l=this.pos;var d=this.len;var u=0;var o=d+n&-16;var h=0;if((f-1<<4)+d+n>c)throw new RangeError("counter overflow");var v=new Uint8Array(o);while(n>0){h=(0,a._heap_write)(i,l+d,e,r,n);d+=h;r+=h;n-=h;h=t.cipher(s.AES_asm.ENC.CTR,s.AES_asm.HEAP_DATA+l,d);h=t.mac(s.AES_asm.MAC.GCM,s.AES_asm.HEAP_DATA+l,h);if(h)v.set(i.subarray(l,l+h),u);f+=h>>>4;u+=h;if(h>>29;r[4]=d>>>21;r[5]=d>>>13&255;r[6]=d>>>5&255;r[7]=d<<3&255;r[8]=r[9]=r[10]=0;r[11]=u>>>29;r[12]=u>>>21&255;r[13]=u>>>13&255;r[14]=u>>>5&255;r[15]=u<<3&255;e.mac(s.AES_asm.MAC.GCM,s.AES_asm.HEAP_DATA,16);e.get_iv(s.AES_asm.HEAP_DATA);e.set_counter(0,0,0,this.gamma0);e.cipher(s.AES_asm.ENC.CTR,s.AES_asm.HEAP_DATA,16);c.set(r.subarray(0,t),f);this.counter=1;this.pos=0;this.len=0;return c};AES_GCM.prototype.AES_GCM_Decrypt_process=function(e){var r=0;var n=e.length||0;var t=this.asm;var i=this.heap;var f=this.counter;var l=this.tagSize;var d=this.pos;var u=this.len;var o=0;var h=u+n>l?u+n-l&-16:0;var v=u+n-h;var p=0;if((f-1<<4)+u+n>c)throw new RangeError("counter overflow");var b=new Uint8Array(h);while(n>v){p=(0,a._heap_write)(i,d+u,e,r,n-v);u+=p;r+=p;n-=p;p=t.mac(s.AES_asm.MAC.GCM,s.AES_asm.HEAP_DATA+d,p);p=t.cipher(s.AES_asm.DEC.CTR,s.AES_asm.HEAP_DATA+d,p);if(p)b.set(i.subarray(d,d+p),o);f+=p>>>4;o+=p;d=0;u=0}if(n>0){u+=(0,a._heap_write)(i,0,e,r,n)}this.counter=f;this.pos=d;this.len=u;return b};AES_GCM.prototype.AES_GCM_Decrypt_finish=function(){var e=this.asm;var r=this.heap;var n=this.tagSize;var a=this.adata;var i=this.counter;var f=this.pos;var c=this.len;var l=c-n;if(c>>29;r[4]=h>>>21;r[5]=h>>>13&255;r[6]=h>>>5&255;r[7]=h<<3&255;r[8]=r[9]=r[10]=0;r[11]=v>>>29;r[12]=v>>>21&255;r[13]=v>>>13&255;r[14]=v>>>5&255;r[15]=v<<3&255;e.mac(s.AES_asm.MAC.GCM,s.AES_asm.HEAP_DATA,16);e.get_iv(s.AES_asm.HEAP_DATA);e.set_counter(0,0,0,this.gamma0);e.cipher(s.AES_asm.ENC.CTR,s.AES_asm.HEAP_DATA,16);var p=0;for(var b=0;b0){f=(0,a._heap_write)(r,0,e,t,i);t+=f;i-=f;while(f&15)r[f++]=0;n.mac(s.AES_asm.MAC.GCM,s.AES_asm.HEAP_DATA,f)}};return AES_GCM}(i.AES);n.AES_GCM=l},{"../other/errors":14,"../other/utils":15,"./aes":3,"./aes.asm":2}],9:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.Hash=undefined;var t=e("../other/utils");var a=e("../other/errors");var i=function(){function Hash(){this.pos=0;this.len=0;this.acquire_asm()}Hash.prototype.acquire_asm=function(){if(this.heap===undefined&&this.asm===undefined){this.heap=this.constructor.heap_pool.pop()||(0,t._heap_init)();this.asm=this.constructor.asm_pool.pop()||this.constructor.asm_function({Uint8Array:Uint8Array},null,this.heap.buffer);this.reset()}};Hash.prototype.release_asm=function(){this.constructor.heap_pool.push(this.heap);this.constructor.asm_pool.push(this.asm);this.heap=undefined;this.asm=undefined};Hash.prototype.reset=function(){this.acquire_asm();this.result=null;this.pos=0;this.len=0;this.asm.reset();return this};Hash.prototype.process=function(e){if(this.result!==null)throw new a.IllegalStateError("state must be reset before processing new data");this.acquire_asm();var r=this.asm;var n=this.heap;var i=this.pos;var s=this.len;var f=0;var c=e.length;var l=0;while(c>0){l=(0,t._heap_write)(n,i+s,e,f,c);s+=l;f+=l;c-=l;l=r.process(i,s);i+=l;s-=l;if(!s)i=0}this.pos=i;this.len=s;return this};Hash.prototype.finish=function(){if(this.result!==null)throw new a.IllegalStateError("state must be reset before processing new data");this.acquire_asm();this.asm.finish(this.pos,this.len,0);this.result=new Uint8Array(this.HASH_SIZE);this.result.set(this.heap.subarray(0,this.HASH_SIZE));this.pos=0;this.len=0;this.release_asm();return this};return Hash}();n.Hash=i},{"../other/errors":14,"../other/utils":15}],10:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=n.sha1_asm=function sha1_asm(e,r,n){"use asm";var t=0,a=0,i=0,s=0,f=0,c=0,l=0;var d=0,u=0,o=0,h=0,v=0,p=0,b=0,y=0,g=0,w=0;var m=new e.Uint8Array(n);function _core(e,r,n,c,l,d,u,o,h,v,p,b,y,g,w,m){e=e|0;r=r|0;n=n|0;c=c|0;l=l|0;d=d|0;u=u|0;o=o|0;h=h|0;v=v|0;p=p|0;b=b|0;y=y|0;g=g|0;w=w|0;m=m|0;var A=0,E=0,S=0,k=0,R=0,M=0,C=0,D=0,j=0,q=0,B=0,_=0,U=0,K=0,x=0,I=0,F=0,O=0,P=0,T=0,z=0,N=0,L=0,W=0,H=0,G=0,J=0,Y=0,Q=0,Z=0,X=0,V=0,$=0,ee=0,re=0,ne=0,te=0,ae=0,ie=0,se=0,fe=0,ce=0,le=0,de=0,ue=0,oe=0,he=0,ve=0,pe=0,be=0,ye=0,ge=0,we=0,me=0,Ae=0,Ee=0,Se=0,ke=0,Re=0,Me=0,Ce=0,De=0,je=0,qe=0,Be=0,_e=0,Ue=0,Ke=0,xe=0,Ie=0,F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s=s+k|0;f=f+R|0}function _core_heap(e){e=e|0;_core(m[e|0]<<24|m[e|1]<<16|m[e|2]<<8|m[e|3],m[e|4]<<24|m[e|5]<<16|m[e|6]<<8|m[e|7],m[e|8]<<24|m[e|9]<<16|m[e|10]<<8|m[e|11],m[e|12]<<24|m[e|13]<<16|m[e|14]<<8|m[e|15],m[e|16]<<24|m[e|17]<<16|m[e|18]<<8|m[e|19],m[e|20]<<24|m[e|21]<<16|m[e|22]<<8|m[e|23],m[e|24]<<24|m[e|25]<<16|m[e|26]<<8|m[e|27],m[e|28]<<24|m[e|29]<<16|m[e|30]<<8|m[e|31],m[e|32]<<24|m[e|33]<<16|m[e|34]<<8|m[e|35],m[e|36]<<24|m[e|37]<<16|m[e|38]<<8|m[e|39],m[e|40]<<24|m[e|41]<<16|m[e|42]<<8|m[e|43],m[e|44]<<24|m[e|45]<<16|m[e|46]<<8|m[e|47],m[e|48]<<24|m[e|49]<<16|m[e|50]<<8|m[e|51],m[e|52]<<24|m[e|53]<<16|m[e|54]<<8|m[e|55],m[e|56]<<24|m[e|57]<<16|m[e|58]<<8|m[e|59],m[e|60]<<24|m[e|61]<<16|m[e|62]<<8|m[e|63])}function _state_to_heap(e){e=e|0;m[e|0]=t>>>24;m[e|1]=t>>>16&255;m[e|2]=t>>>8&255;m[e|3]=t&255;m[e|4]=a>>>24;m[e|5]=a>>>16&255;m[e|6]=a>>>8&255;m[e|7]=a&255;m[e|8]=i>>>24;m[e|9]=i>>>16&255;m[e|10]=i>>>8&255;m[e|11]=i&255;m[e|12]=s>>>24;m[e|13]=s>>>16&255;m[e|14]=s>>>8&255;m[e|15]=s&255;m[e|16]=f>>>24;m[e|17]=f>>>16&255;m[e|18]=f>>>8&255;m[e|19]=f&255}function reset(){t=0x67452301;a=0xefcdab89;i=0x98badcfe;s=0x10325476;f=0xc3d2e1f0;c=l=0}function init(e,r,n,d,u,o,h){e=e|0;r=r|0;n=n|0;d=d|0;u=u|0;o=o|0;h=h|0;t=e;a=r;i=n;s=d;f=u;c=o;l=h}function process(e,r){e=e|0;r=r|0;var n=0;if(e&63)return-1;while((r|0)>=64){_core_heap(e);e=e+64|0;r=r-64|0;n=n+64|0}c=c+n|0;if(c>>>0>>0)l=l+1|0;return n|0}function finish(e,r,n){e=e|0;r=r|0;n=n|0;var t=0,a=0;if(e&63)return-1;if(~n)if(n&31)return-1;if((r|0)>=64){t=process(e,r)|0;if((t|0)==-1)return-1;e=e+t|0;r=r-t|0}t=t+r|0;c=c+r|0;if(c>>>0>>0)l=l+1|0;m[e|r]=0x80;if((r|0)>=56){for(a=r+1|0;(a|0)<64;a=a+1|0)m[e|a]=0x00;_core_heap(e);r=0;m[e|0]=0}for(a=r+1|0;(a|0)<59;a=a+1|0)m[e|a]=0;m[e|56]=l>>>21&255;m[e|57]=l>>>13&255;m[e|58]=l>>>5&255;m[e|59]=l<<3&255|c>>>29;m[e|60]=c>>>21&255;m[e|61]=c>>>13&255;m[e|62]=c>>>5&255;m[e|63]=c<<3&255;_core_heap(e);if(~n)_state_to_heap(n);return t|0}function hmac_reset(){t=d;a=u;i=o;s=h;f=v;c=64;l=0}function _hmac_opad(){t=p;a=b;i=y;s=g;f=w;c=64;l=0}function hmac_init(e,r,n,m,A,E,S,k,R,M,C,D,j,q,B,_){e=e|0;r=r|0;n=n|0;m=m|0;A=A|0;E=E|0;S=S|0;k=k|0;R=R|0;M=M|0;C=C|0;D=D|0;j=j|0;q=q|0;B=B|0;_=_|0;reset();_core(e^0x5c5c5c5c,r^0x5c5c5c5c,n^0x5c5c5c5c,m^0x5c5c5c5c,A^0x5c5c5c5c,E^0x5c5c5c5c,S^0x5c5c5c5c,k^0x5c5c5c5c,R^0x5c5c5c5c,M^0x5c5c5c5c,C^0x5c5c5c5c,D^0x5c5c5c5c,j^0x5c5c5c5c,q^0x5c5c5c5c,B^0x5c5c5c5c,_^0x5c5c5c5c);p=t;b=a;y=i;g=s;w=f;reset();_core(e^0x36363636,r^0x36363636,n^0x36363636,m^0x36363636,A^0x36363636,E^0x36363636,S^0x36363636,k^0x36363636,R^0x36363636,M^0x36363636,C^0x36363636,D^0x36363636,j^0x36363636,q^0x36363636,B^0x36363636,_^0x36363636);d=t;u=a;o=i;h=s;v=f;c=64;l=0}function hmac_finish(e,r,n){e=e|0;r=r|0;n=n|0;var c=0,l=0,d=0,u=0,o=0,h=0;if(e&63)return-1;if(~n)if(n&31)return-1;h=finish(e,r,-1)|0;c=t,l=a,d=i,u=s,o=f;_hmac_opad();_core(c,l,d,u,o,0x80000000,0,0,0,0,0,0,0,0,0,672);if(~n)_state_to_heap(n);return h|0}function pbkdf2_generate_block(e,r,n,c,l){e=e|0;r=r|0;n=n|0;c=c|0;l=l|0;var d=0,u=0,o=0,h=0,v=0,p=0,b=0,y=0,g=0,w=0;if(e&63)return-1;if(~l)if(l&31)return-1;m[e+r|0]=n>>>24;m[e+r+1|0]=n>>>16&255;m[e+r+2|0]=n>>>8&255;m[e+r+3|0]=n&255;hmac_finish(e,r+4|0,-1)|0;d=p=t,u=b=a,o=y=i,h=g=s,v=w=f;c=c-1|0;while((c|0)>0){hmac_reset();_core(p,b,y,g,w,0x80000000,0,0,0,0,0,0,0,0,0,672);p=t,b=a,y=i,g=s,w=f;_hmac_opad();_core(p,b,y,g,w,0x80000000,0,0,0,0,0,0,0,0,0,672);p=t,b=a,y=i,g=s,w=f;d=d^t;u=u^a;o=o^i;h=h^s;v=v^f;c=c-1|0}t=d;a=u;i=o;s=h;f=v;if(~l)_state_to_heap(l);return 0}return{reset:reset,init:init,process:process,finish:finish,hmac_reset:hmac_reset,hmac_init:hmac_init,hmac_finish:hmac_finish,pbkdf2_generate_block:pbkdf2_generate_block}}},{}],11:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.Sha1=n._sha1_hash_size=n._sha1_block_size=undefined;var t=e("./sha1.asm");var a=e("../hash");var i=undefined&&undefined.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(r.hasOwnProperty(n))e[n]=r[n]};return function(r,n){e(r,n);function __(){this.constructor=r}r.prototype=n===null?Object.create(n):(__.prototype=n.prototype,new __)}}();var s=n._sha1_block_size=64;var f=n._sha1_hash_size=20;var c=function(e){i(Sha1,e);function Sha1(){var r=e!==null&&e.apply(this,arguments)||this;r.NAME="sha1";r.BLOCK_SIZE=s;r.HASH_SIZE=f;return r}Sha1.bytes=function(e){return(new Sha1).process(e).finish().result};Sha1.NAME="sha1";Sha1.heap_pool=[];Sha1.asm_pool=[];Sha1.asm_function=t.sha1_asm;return Sha1}(a.Hash);n.Sha1=c},{"../hash":9,"./sha1.asm":10}],12:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=n.sha256_asm=function sha256_asm(e,r,n){"use asm";var t=0,a=0,i=0,s=0,f=0,c=0,l=0,d=0,u=0,o=0;var h=0,v=0,p=0,b=0,y=0,g=0,w=0,m=0,A=0,E=0,S=0,k=0,R=0,M=0,C=0,D=0;var j=new e.Uint8Array(n);function _core(e,r,n,u,o,h,v,p,b,y,g,w,m,A,E,S){e=e|0;r=r|0;n=n|0;u=u|0;o=o|0;h=h|0;v=v|0;p=p|0;b=b|0;y=y|0;g=g|0;w=w|0;m=m|0;A=A|0;E=E|0;S=S|0;var k=0,R=0,M=0,C=0,D=0,j=0,q=0,B=0;k=t;R=a;M=i;C=s;D=f;j=c;q=l;B=d;B=e+B+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(q^D&(j^q))+0x428a2f98|0;C=C+B|0;B=B+(k&R^M&(k^R))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;q=r+q+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(j^C&(D^j))+0x71374491|0;M=M+q|0;q=q+(B&k^R&(B^k))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;j=n+j+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(D^M&(C^D))+0xb5c0fbcf|0;R=R+j|0;j=j+(q&B^k&(q^B))+(q>>>2^q>>>13^q>>>22^q<<30^q<<19^q<<10)|0;D=u+D+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(C^R&(M^C))+0xe9b5dba5|0;k=k+D|0;D=D+(j&q^B&(j^q))+(j>>>2^j>>>13^j>>>22^j<<30^j<<19^j<<10)|0;C=o+C+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(M^k&(R^M))+0x3956c25b|0;B=B+C|0;C=C+(D&j^q&(D^j))+(D>>>2^D>>>13^D>>>22^D<<30^D<<19^D<<10)|0;M=h+M+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(R^B&(k^R))+0x59f111f1|0;q=q+M|0;M=M+(C&D^j&(C^D))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;R=v+R+(q>>>6^q>>>11^q>>>25^q<<26^q<<21^q<<7)+(k^q&(B^k))+0x923f82a4|0;j=j+R|0;R=R+(M&C^D&(M^C))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;k=p+k+(j>>>6^j>>>11^j>>>25^j<<26^j<<21^j<<7)+(B^j&(q^B))+0xab1c5ed5|0;D=D+k|0;k=k+(R&M^C&(R^M))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;B=b+B+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(q^D&(j^q))+0xd807aa98|0;C=C+B|0;B=B+(k&R^M&(k^R))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;q=y+q+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(j^C&(D^j))+0x12835b01|0;M=M+q|0;q=q+(B&k^R&(B^k))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;j=g+j+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(D^M&(C^D))+0x243185be|0;R=R+j|0;j=j+(q&B^k&(q^B))+(q>>>2^q>>>13^q>>>22^q<<30^q<<19^q<<10)|0;D=w+D+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(C^R&(M^C))+0x550c7dc3|0;k=k+D|0;D=D+(j&q^B&(j^q))+(j>>>2^j>>>13^j>>>22^j<<30^j<<19^j<<10)|0;C=m+C+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(M^k&(R^M))+0x72be5d74|0;B=B+C|0;C=C+(D&j^q&(D^j))+(D>>>2^D>>>13^D>>>22^D<<30^D<<19^D<<10)|0;M=A+M+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(R^B&(k^R))+0x80deb1fe|0;q=q+M|0;M=M+(C&D^j&(C^D))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;R=E+R+(q>>>6^q>>>11^q>>>25^q<<26^q<<21^q<<7)+(k^q&(B^k))+0x9bdc06a7|0;j=j+R|0;R=R+(M&C^D&(M^C))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;k=S+k+(j>>>6^j>>>11^j>>>25^j<<26^j<<21^j<<7)+(B^j&(q^B))+0xc19bf174|0;D=D+k|0;k=k+(R&M^C&(R^M))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;e=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+e+y|0;B=e+B+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(q^D&(j^q))+0xe49b69c1|0;C=C+B|0;B=B+(k&R^M&(k^R))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;r=(n>>>7^n>>>18^n>>>3^n<<25^n<<14)+(S>>>17^S>>>19^S>>>10^S<<15^S<<13)+r+g|0;q=r+q+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(j^C&(D^j))+0xefbe4786|0;M=M+q|0;q=q+(B&k^R&(B^k))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;n=(u>>>7^u>>>18^u>>>3^u<<25^u<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+n+w|0;j=n+j+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(D^M&(C^D))+0x0fc19dc6|0;R=R+j|0;j=j+(q&B^k&(q^B))+(q>>>2^q>>>13^q>>>22^q<<30^q<<19^q<<10)|0;u=(o>>>7^o>>>18^o>>>3^o<<25^o<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+u+m|0;D=u+D+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(C^R&(M^C))+0x240ca1cc|0;k=k+D|0;D=D+(j&q^B&(j^q))+(j>>>2^j>>>13^j>>>22^j<<30^j<<19^j<<10)|0;o=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(n>>>17^n>>>19^n>>>10^n<<15^n<<13)+o+A|0;C=o+C+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(M^k&(R^M))+0x2de92c6f|0;B=B+C|0;C=C+(D&j^q&(D^j))+(D>>>2^D>>>13^D>>>22^D<<30^D<<19^D<<10)|0;h=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(u>>>17^u>>>19^u>>>10^u<<15^u<<13)+h+E|0;M=h+M+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(R^B&(k^R))+0x4a7484aa|0;q=q+M|0;M=M+(C&D^j&(C^D))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;v=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(o>>>17^o>>>19^o>>>10^o<<15^o<<13)+v+S|0;R=v+R+(q>>>6^q>>>11^q>>>25^q<<26^q<<21^q<<7)+(k^q&(B^k))+0x5cb0a9dc|0;j=j+R|0;R=R+(M&C^D&(M^C))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;p=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+p+e|0;k=p+k+(j>>>6^j>>>11^j>>>25^j<<26^j<<21^j<<7)+(B^j&(q^B))+0x76f988da|0;D=D+k|0;k=k+(R&M^C&(R^M))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;b=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+b+r|0;B=b+B+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(q^D&(j^q))+0x983e5152|0;C=C+B|0;B=B+(k&R^M&(k^R))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;y=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+y+n|0;q=y+q+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(j^C&(D^j))+0xa831c66d|0;M=M+q|0;q=q+(B&k^R&(B^k))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;g=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+g+u|0;j=g+j+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(D^M&(C^D))+0xb00327c8|0;R=R+j|0;j=j+(q&B^k&(q^B))+(q>>>2^q>>>13^q>>>22^q<<30^q<<19^q<<10)|0;w=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+w+o|0;D=w+D+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(C^R&(M^C))+0xbf597fc7|0;k=k+D|0;D=D+(j&q^B&(j^q))+(j>>>2^j>>>13^j>>>22^j<<30^j<<19^j<<10)|0;m=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+m+h|0;C=m+C+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(M^k&(R^M))+0xc6e00bf3|0;B=B+C|0;C=C+(D&j^q&(D^j))+(D>>>2^D>>>13^D>>>22^D<<30^D<<19^D<<10)|0;A=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+A+v|0;M=A+M+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(R^B&(k^R))+0xd5a79147|0;q=q+M|0;M=M+(C&D^j&(C^D))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;E=(S>>>7^S>>>18^S>>>3^S<<25^S<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+E+p|0;R=E+R+(q>>>6^q>>>11^q>>>25^q<<26^q<<21^q<<7)+(k^q&(B^k))+0x06ca6351|0;j=j+R|0;R=R+(M&C^D&(M^C))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;S=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+S+b|0;k=S+k+(j>>>6^j>>>11^j>>>25^j<<26^j<<21^j<<7)+(B^j&(q^B))+0x14292967|0;D=D+k|0;k=k+(R&M^C&(R^M))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;e=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+e+y|0;B=e+B+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(q^D&(j^q))+0x27b70a85|0;C=C+B|0;B=B+(k&R^M&(k^R))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;r=(n>>>7^n>>>18^n>>>3^n<<25^n<<14)+(S>>>17^S>>>19^S>>>10^S<<15^S<<13)+r+g|0;q=r+q+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(j^C&(D^j))+0x2e1b2138|0;M=M+q|0;q=q+(B&k^R&(B^k))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;n=(u>>>7^u>>>18^u>>>3^u<<25^u<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+n+w|0;j=n+j+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(D^M&(C^D))+0x4d2c6dfc|0;R=R+j|0;j=j+(q&B^k&(q^B))+(q>>>2^q>>>13^q>>>22^q<<30^q<<19^q<<10)|0;u=(o>>>7^o>>>18^o>>>3^o<<25^o<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+u+m|0;D=u+D+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(C^R&(M^C))+0x53380d13|0;k=k+D|0;D=D+(j&q^B&(j^q))+(j>>>2^j>>>13^j>>>22^j<<30^j<<19^j<<10)|0;o=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(n>>>17^n>>>19^n>>>10^n<<15^n<<13)+o+A|0;C=o+C+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(M^k&(R^M))+0x650a7354|0;B=B+C|0;C=C+(D&j^q&(D^j))+(D>>>2^D>>>13^D>>>22^D<<30^D<<19^D<<10)|0;h=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(u>>>17^u>>>19^u>>>10^u<<15^u<<13)+h+E|0;M=h+M+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(R^B&(k^R))+0x766a0abb|0;q=q+M|0;M=M+(C&D^j&(C^D))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;v=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(o>>>17^o>>>19^o>>>10^o<<15^o<<13)+v+S|0;R=v+R+(q>>>6^q>>>11^q>>>25^q<<26^q<<21^q<<7)+(k^q&(B^k))+0x81c2c92e|0;j=j+R|0;R=R+(M&C^D&(M^C))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;p=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+p+e|0;k=p+k+(j>>>6^j>>>11^j>>>25^j<<26^j<<21^j<<7)+(B^j&(q^B))+0x92722c85|0;D=D+k|0;k=k+(R&M^C&(R^M))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;b=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+b+r|0;B=b+B+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(q^D&(j^q))+0xa2bfe8a1|0;C=C+B|0;B=B+(k&R^M&(k^R))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;y=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+y+n|0;q=y+q+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(j^C&(D^j))+0xa81a664b|0;M=M+q|0;q=q+(B&k^R&(B^k))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;g=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+g+u|0;j=g+j+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(D^M&(C^D))+0xc24b8b70|0;R=R+j|0;j=j+(q&B^k&(q^B))+(q>>>2^q>>>13^q>>>22^q<<30^q<<19^q<<10)|0;w=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+w+o|0;D=w+D+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(C^R&(M^C))+0xc76c51a3|0;k=k+D|0;D=D+(j&q^B&(j^q))+(j>>>2^j>>>13^j>>>22^j<<30^j<<19^j<<10)|0;m=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+m+h|0;C=m+C+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(M^k&(R^M))+0xd192e819|0;B=B+C|0;C=C+(D&j^q&(D^j))+(D>>>2^D>>>13^D>>>22^D<<30^D<<19^D<<10)|0;A=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+A+v|0;M=A+M+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(R^B&(k^R))+0xd6990624|0;q=q+M|0;M=M+(C&D^j&(C^D))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;E=(S>>>7^S>>>18^S>>>3^S<<25^S<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+E+p|0;R=E+R+(q>>>6^q>>>11^q>>>25^q<<26^q<<21^q<<7)+(k^q&(B^k))+0xf40e3585|0;j=j+R|0;R=R+(M&C^D&(M^C))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;S=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+S+b|0;k=S+k+(j>>>6^j>>>11^j>>>25^j<<26^j<<21^j<<7)+(B^j&(q^B))+0x106aa070|0;D=D+k|0;k=k+(R&M^C&(R^M))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;e=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+e+y|0;B=e+B+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(q^D&(j^q))+0x19a4c116|0;C=C+B|0;B=B+(k&R^M&(k^R))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;r=(n>>>7^n>>>18^n>>>3^n<<25^n<<14)+(S>>>17^S>>>19^S>>>10^S<<15^S<<13)+r+g|0;q=r+q+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(j^C&(D^j))+0x1e376c08|0;M=M+q|0;q=q+(B&k^R&(B^k))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;n=(u>>>7^u>>>18^u>>>3^u<<25^u<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+n+w|0;j=n+j+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(D^M&(C^D))+0x2748774c|0;R=R+j|0;j=j+(q&B^k&(q^B))+(q>>>2^q>>>13^q>>>22^q<<30^q<<19^q<<10)|0;u=(o>>>7^o>>>18^o>>>3^o<<25^o<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+u+m|0;D=u+D+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(C^R&(M^C))+0x34b0bcb5|0;k=k+D|0;D=D+(j&q^B&(j^q))+(j>>>2^j>>>13^j>>>22^j<<30^j<<19^j<<10)|0;o=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(n>>>17^n>>>19^n>>>10^n<<15^n<<13)+o+A|0;C=o+C+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(M^k&(R^M))+0x391c0cb3|0;B=B+C|0;C=C+(D&j^q&(D^j))+(D>>>2^D>>>13^D>>>22^D<<30^D<<19^D<<10)|0;h=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(u>>>17^u>>>19^u>>>10^u<<15^u<<13)+h+E|0;M=h+M+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(R^B&(k^R))+0x4ed8aa4a|0;q=q+M|0;M=M+(C&D^j&(C^D))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;v=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(o>>>17^o>>>19^o>>>10^o<<15^o<<13)+v+S|0;R=v+R+(q>>>6^q>>>11^q>>>25^q<<26^q<<21^q<<7)+(k^q&(B^k))+0x5b9cca4f|0;j=j+R|0;R=R+(M&C^D&(M^C))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;p=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+p+e|0;k=p+k+(j>>>6^j>>>11^j>>>25^j<<26^j<<21^j<<7)+(B^j&(q^B))+0x682e6ff3|0;D=D+k|0;k=k+(R&M^C&(R^M))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;b=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+b+r|0;B=b+B+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(q^D&(j^q))+0x748f82ee|0;C=C+B|0;B=B+(k&R^M&(k^R))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;y=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+y+n|0;q=y+q+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(j^C&(D^j))+0x78a5636f|0;M=M+q|0;q=q+(B&k^R&(B^k))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;g=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+g+u|0;j=g+j+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(D^M&(C^D))+0x84c87814|0;R=R+j|0;j=j+(q&B^k&(q^B))+(q>>>2^q>>>13^q>>>22^q<<30^q<<19^q<<10)|0;w=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+w+o|0;D=w+D+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(C^R&(M^C))+0x8cc70208|0;k=k+D|0;D=D+(j&q^B&(j^q))+(j>>>2^j>>>13^j>>>22^j<<30^j<<19^j<<10)|0;m=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+m+h|0;C=m+C+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(M^k&(R^M))+0x90befffa|0;B=B+C|0;C=C+(D&j^q&(D^j))+(D>>>2^D>>>13^D>>>22^D<<30^D<<19^D<<10)|0;A=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+A+v|0;M=A+M+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(R^B&(k^R))+0xa4506ceb|0;q=q+M|0;M=M+(C&D^j&(C^D))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;E=(S>>>7^S>>>18^S>>>3^S<<25^S<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+E+p|0;R=E+R+(q>>>6^q>>>11^q>>>25^q<<26^q<<21^q<<7)+(k^q&(B^k))+0xbef9a3f7|0;j=j+R|0;R=R+(M&C^D&(M^C))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;S=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+S+b|0;k=S+k+(j>>>6^j>>>11^j>>>25^j<<26^j<<21^j<<7)+(B^j&(q^B))+0xc67178f2|0;D=D+k|0;k=k+(R&M^C&(R^M))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;t=t+k|0;a=a+R|0;i=i+M|0;s=s+C|0;f=f+D|0;c=c+j|0;l=l+q|0;d=d+B|0}function _core_heap(e){e=e|0;_core(j[e|0]<<24|j[e|1]<<16|j[e|2]<<8|j[e|3],j[e|4]<<24|j[e|5]<<16|j[e|6]<<8|j[e|7],j[e|8]<<24|j[e|9]<<16|j[e|10]<<8|j[e|11],j[e|12]<<24|j[e|13]<<16|j[e|14]<<8|j[e|15],j[e|16]<<24|j[e|17]<<16|j[e|18]<<8|j[e|19],j[e|20]<<24|j[e|21]<<16|j[e|22]<<8|j[e|23],j[e|24]<<24|j[e|25]<<16|j[e|26]<<8|j[e|27],j[e|28]<<24|j[e|29]<<16|j[e|30]<<8|j[e|31],j[e|32]<<24|j[e|33]<<16|j[e|34]<<8|j[e|35],j[e|36]<<24|j[e|37]<<16|j[e|38]<<8|j[e|39],j[e|40]<<24|j[e|41]<<16|j[e|42]<<8|j[e|43],j[e|44]<<24|j[e|45]<<16|j[e|46]<<8|j[e|47],j[e|48]<<24|j[e|49]<<16|j[e|50]<<8|j[e|51],j[e|52]<<24|j[e|53]<<16|j[e|54]<<8|j[e|55],j[e|56]<<24|j[e|57]<<16|j[e|58]<<8|j[e|59],j[e|60]<<24|j[e|61]<<16|j[e|62]<<8|j[e|63])}function _state_to_heap(e){e=e|0;j[e|0]=t>>>24;j[e|1]=t>>>16&255;j[e|2]=t>>>8&255;j[e|3]=t&255;j[e|4]=a>>>24;j[e|5]=a>>>16&255;j[e|6]=a>>>8&255;j[e|7]=a&255;j[e|8]=i>>>24;j[e|9]=i>>>16&255;j[e|10]=i>>>8&255;j[e|11]=i&255;j[e|12]=s>>>24;j[e|13]=s>>>16&255;j[e|14]=s>>>8&255;j[e|15]=s&255;j[e|16]=f>>>24;j[e|17]=f>>>16&255;j[e|18]=f>>>8&255;j[e|19]=f&255;j[e|20]=c>>>24;j[e|21]=c>>>16&255;j[e|22]=c>>>8&255;j[e|23]=c&255;j[e|24]=l>>>24;j[e|25]=l>>>16&255;j[e|26]=l>>>8&255;j[e|27]=l&255;j[e|28]=d>>>24;j[e|29]=d>>>16&255;j[e|30]=d>>>8&255;j[e|31]=d&255}function reset(){t=0x6a09e667;a=0xbb67ae85;i=0x3c6ef372;s=0xa54ff53a;f=0x510e527f;c=0x9b05688c;l=0x1f83d9ab;d=0x5be0cd19;u=o=0}function init(e,r,n,h,v,p,b,y,g,w){e=e|0;r=r|0;n=n|0;h=h|0;v=v|0;p=p|0;b=b|0;y=y|0;g=g|0;w=w|0;t=e;a=r;i=n;s=h;f=v;c=p;l=b;d=y;u=g;o=w}function process(e,r){e=e|0;r=r|0;var n=0;if(e&63)return-1;while((r|0)>=64){_core_heap(e);e=e+64|0;r=r-64|0;n=n+64|0}u=u+n|0;if(u>>>0>>0)o=o+1|0;return n|0}function finish(e,r,n){e=e|0;r=r|0;n=n|0;var t=0,a=0;if(e&63)return-1;if(~n)if(n&31)return-1;if((r|0)>=64){t=process(e,r)|0;if((t|0)==-1)return-1;e=e+t|0;r=r-t|0}t=t+r|0;u=u+r|0;if(u>>>0>>0)o=o+1|0;j[e|r]=0x80;if((r|0)>=56){for(a=r+1|0;(a|0)<64;a=a+1|0)j[e|a]=0x00;_core_heap(e);r=0;j[e|0]=0}for(a=r+1|0;(a|0)<59;a=a+1|0)j[e|a]=0;j[e|56]=o>>>21&255;j[e|57]=o>>>13&255;j[e|58]=o>>>5&255;j[e|59]=o<<3&255|u>>>29;j[e|60]=u>>>21&255;j[e|61]=u>>>13&255;j[e|62]=u>>>5&255;j[e|63]=u<<3&255;_core_heap(e);if(~n)_state_to_heap(n);return t|0}function hmac_reset(){t=h;a=v;i=p;s=b;f=y;c=g;l=w;d=m;u=64;o=0}function _hmac_opad(){t=A;a=E;i=S;s=k;f=R;c=M;l=C;d=D;u=64;o=0}function hmac_init(e,r,n,j,q,B,_,U,K,x,I,F,O,P,T,z){e=e|0;r=r|0;n=n|0;j=j|0;q=q|0;B=B|0;_=_|0;U=U|0;K=K|0;x=x|0;I=I|0;F=F|0;O=O|0;P=P|0;T=T|0;z=z|0;reset();_core(e^0x5c5c5c5c,r^0x5c5c5c5c,n^0x5c5c5c5c,j^0x5c5c5c5c,q^0x5c5c5c5c,B^0x5c5c5c5c,_^0x5c5c5c5c,U^0x5c5c5c5c,K^0x5c5c5c5c,x^0x5c5c5c5c,I^0x5c5c5c5c,F^0x5c5c5c5c,O^0x5c5c5c5c,P^0x5c5c5c5c,T^0x5c5c5c5c,z^0x5c5c5c5c);A=t;E=a;S=i;k=s;R=f;M=c;C=l;D=d;reset();_core(e^0x36363636,r^0x36363636,n^0x36363636,j^0x36363636,q^0x36363636,B^0x36363636,_^0x36363636,U^0x36363636,K^0x36363636,x^0x36363636,I^0x36363636,F^0x36363636,O^0x36363636,P^0x36363636,T^0x36363636,z^0x36363636);h=t;v=a;p=i;b=s;y=f;g=c;w=l;m=d;u=64;o=0}function hmac_finish(e,r,n){e=e|0;r=r|0;n=n|0;var u=0,o=0,h=0,v=0,p=0,b=0,y=0,g=0,w=0;if(e&63)return-1;if(~n)if(n&31)return-1;w=finish(e,r,-1)|0;u=t,o=a,h=i,v=s,p=f,b=c,y=l,g=d;_hmac_opad();_core(u,o,h,v,p,b,y,g,0x80000000,0,0,0,0,0,0,768);if(~n)_state_to_heap(n);return w|0}function pbkdf2_generate_block(e,r,n,u,o){e=e|0;r=r|0;n=n|0;u=u|0;o=o|0;var h=0,v=0,p=0,b=0,y=0,g=0,w=0,m=0,A=0,E=0,S=0,k=0,R=0,M=0,C=0,D=0;if(e&63)return-1;if(~o)if(o&31)return-1;j[e+r|0]=n>>>24;j[e+r+1|0]=n>>>16&255;j[e+r+2|0]=n>>>8&255;j[e+r+3|0]=n&255;hmac_finish(e,r+4|0,-1)|0;h=A=t,v=E=a,p=S=i,b=k=s,y=R=f,g=M=c,w=C=l,m=D=d;u=u-1|0;while((u|0)>0){hmac_reset();_core(A,E,S,k,R,M,C,D,0x80000000,0,0,0,0,0,0,768);A=t,E=a,S=i,k=s,R=f,M=c,C=l,D=d;_hmac_opad();_core(A,E,S,k,R,M,C,D,0x80000000,0,0,0,0,0,0,768);A=t,E=a,S=i,k=s,R=f,M=c,C=l,D=d;h=h^t;v=v^a;p=p^i;b=b^s;y=y^f;g=g^c;w=w^l;m=m^d;u=u-1|0}t=h;a=v;i=p;s=b;f=y;c=g;l=w;d=m;if(~o)_state_to_heap(o);return 0}return{reset:reset,init:init,process:process,finish:finish,hmac_reset:hmac_reset,hmac_init:hmac_init,hmac_finish:hmac_finish,pbkdf2_generate_block:pbkdf2_generate_block}}},{}],13:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.Sha256=n._sha256_hash_size=n._sha256_block_size=undefined;var t=e("./sha256.asm");var a=e("../hash");var i=undefined&&undefined.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(r.hasOwnProperty(n))e[n]=r[n]};return function(r,n){e(r,n);function __(){this.constructor=r}r.prototype=n===null?Object.create(n):(__.prototype=n.prototype,new __)}}();var s=n._sha256_block_size=64;var f=n._sha256_hash_size=32;var c=function(e){i(Sha256,e);function Sha256(){var r=e!==null&&e.apply(this,arguments)||this;r.NAME="sha256";r.BLOCK_SIZE=s;r.HASH_SIZE=f;return r}Sha256.bytes=function(e){return(new Sha256).process(e).finish().result};Sha256.NAME="sha256";Sha256.heap_pool=[];Sha256.asm_pool=[];Sha256.asm_function=t.sha256_asm;return Sha256}(a.Hash);n.Sha256=c},{"../hash":9,"./sha256.asm":12}],14:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=undefined&&undefined.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(r.hasOwnProperty(n))e[n]=r[n]};return function(r,n){e(r,n);function __(){this.constructor=r}r.prototype=n===null?Object.create(n):(__.prototype=n.prototype,new __)}}();var a=function(e){t(IllegalStateError,e);function IllegalStateError(){var r=[];for(var n=0;n=n)throw new Error("Malformed string, low surrogate expected at position "+a);s=(s^55296)<<10|65536|e.charCodeAt(a)^56320}else if(!r&&s>>>8){throw new Error("Wide characters are not allowed.")}if(!r||s<=127){t[i++]=s}else if(s<=2047){t[i++]=192|s>>6;t[i++]=128|s&63}else if(s<=65535){t[i++]=224|s>>12;t[i++]=128|s>>6&63;t[i++]=128|s&63}else{t[i++]=240|s>>18;t[i++]=128|s>>12&63;t[i++]=128|s>>6&63;t[i++]=128|s&63}}return t.subarray(0,i)}function hex_to_bytes(e){var r=e.length;if(r&1){e="0"+e;r++}var n=new Uint8Array(r>>1);for(var t=0;t>1]=parseInt(e.substr(t,2),16)}return n}function base64_to_bytes(e){return string_to_bytes(t(e))}function bytes_to_string(e,r){if(r===void 0){r=false}var n=e.length,t=new Array(n);for(var a=0,i=0;a=192&&s<224&&a+1=224&&s<240&&a+2=240&&s<248&&a+3>10;t[i++]=56320|f&1023}}else{throw new Error("Malformed UTF8 character at byte offset "+a)}}var c="",l=16384;for(var a=0;a>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e+=1;return e}function is_number(e){return typeof e==="number"}function is_string(e){return typeof e==="string"}function is_buffer(e){return e instanceof ArrayBuffer}function is_bytes(e){return e instanceof Uint8Array}function is_typed_array(e){return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function _heap_init(e,r){var n=e?e.byteLength:r||65536;if(n&4095||n<=0)throw new Error("heap size must be a positive integer and a multiple of 4096");e=e||new Uint8Array(new ArrayBuffer(n));return e}function _heap_write(e,r,n,t,a){var i=e.length-r;var s=i0)return e;return r};BN.min=function min(e,r){if(e.cmp(r)<0)return e;return r};BN.prototype._init=function init(e,r,n){if(typeof e==="number"){return this._initNumber(e,r,n)}if(typeof e==="object"){return this._initArray(e,r,n)}if(r==="hex"){r=16}assert(r===(r|0)&&r>=2&&r<=36);e=e.toString().replace(/\s+/g,"");var t=0;if(e[0]==="-"){t++}if(r===16){this._parseHex(e,t)}else{this._parseBase(e,r,t)}if(e[0]==="-"){this.negative=1}this.strip();if(n!=="le")return;this._initArray(this.toArray(),r,n)};BN.prototype._initNumber=function _initNumber(e,r,n){if(e<0){this.negative=1;e=-e}if(e<67108864){this.words=[e&67108863];this.length=1}else if(e<4503599627370496){this.words=[e&67108863,e/67108864&67108863];this.length=2}else{assert(e<9007199254740992);this.words=[e&67108863,e/67108864&67108863,1];this.length=3}if(n!=="le")return;this._initArray(this.toArray(),r,n)};BN.prototype._initArray=function _initArray(e,r,n){assert(typeof e.length==="number");if(e.length<=0){this.words=[0];this.length=1;return this}this.length=Math.ceil(e.length/3);this.words=new Array(this.length);for(var t=0;t=0;t-=3){i=e[t]|e[t-1]<<8|e[t-2]<<16;this.words[a]|=i<>>26-s&67108863;s+=24;if(s>=26){s-=26;a++}}}else if(n==="le"){for(t=0,a=0;t>>26-s&67108863;s+=24;if(s>=26){s-=26;a++}}}return this.strip()};function parseHex(e,r,n){var t=0;var a=Math.min(e.length,n);for(var i=r;i=49&&s<=54){t|=s-49+10}else if(s>=17&&s<=22){t|=s-17+10}else{t|=s&15}}return t}BN.prototype._parseHex=function _parseHex(e,r){this.length=Math.ceil((e.length-r)/6);this.words=new Array(this.length);for(var n=0;n=r;n-=6){a=parseHex(e,n,n+6);this.words[t]|=a<>>26-i&4194303;i+=24;if(i>=26){i-=26;t++}}if(n+6!==r){a=parseHex(e,r,n+6);this.words[t]|=a<>>26-i&4194303}this.strip()};function parseBase(e,r,n,t){var a=0;var i=Math.min(e.length,n);for(var s=r;s=49){a+=f-49+10}else if(f>=17){a+=f-17+10}else{a+=f}}return a}BN.prototype._parseBase=function _parseBase(e,r,n){this.words=[0];this.length=1;for(var t=0,a=1;a<=67108863;a*=r){t++}t--;a=a/r|0;var i=e.length-n;var s=i%t;var f=Math.min(i,i-s)+n;var c=0;for(var l=n;l1&&this.words[this.length-1]===0){this.length--}return this._normSign()};BN.prototype._normSign=function _normSign(){if(this.length===1&&this.words[0]===0){this.negative=0}return this};BN.prototype.inspect=function inspect(){return(this.red?""};var a=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"];var i=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5];var s=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];BN.prototype.toString=function toString(e,r){e=e||10;r=r|0||1;var n;if(e===16||e==="hex"){n="";var t=0;var f=0;for(var c=0;c>>24-t&16777215;if(f!==0||c!==this.length-1){n=a[6-d.length]+d+n}else{n=d+n}t+=2;if(t>=26){t-=26;c--}}if(f!==0){n=f.toString(16)+n}while(n.length%r!==0){n="0"+n}if(this.negative!==0){n="-"+n}return n}if(e===(e|0)&&e>=2&&e<=36){var u=i[e];var o=s[e];n="";var h=this.clone();h.negative=0;while(!h.isZero()){var v=h.modn(o).toString(e);h=h.idivn(o);if(!h.isZero()){n=a[u-v.length]+v+n}else{n=v+n}}if(this.isZero()){n="0"+n}while(n.length%r!==0){n="0"+n}if(this.negative!==0){n="-"+n}return n}assert(false,"Base should be between 2 and 36")};BN.prototype.toNumber=function toNumber(){var e=this.words[0];if(this.length===2){e+=this.words[1]*67108864}else if(this.length===3&&this.words[2]===1){e+=4503599627370496+this.words[1]*67108864}else if(this.length>2){assert(false,"Number can only safely store up to 53 bits")}return this.negative!==0?-e:e};BN.prototype.toJSON=function toJSON(){return this.toString(16)};BN.prototype.toBuffer=function toBuffer(e,r){assert(typeof t!=="undefined");return this.toArrayLike(t,e,r)};BN.prototype.toArray=function toArray(e,r){return this.toArrayLike(Array,e,r)};BN.prototype.toArrayLike=function toArrayLike(e,r,n){var t=this.byteLength();var a=n||Math.max(1,t);assert(t<=a,"byte array longer than desired length");assert(a>0,"Requested array length <= 0");this.strip();var i=r==="le";var s=new e(a);var f,c;var l=this.clone();if(!i){for(c=0;c=4096){n+=13;r>>>=13}if(r>=64){n+=7;r>>>=7}if(r>=8){n+=4;r>>>=4}if(r>=2){n+=2;r>>>=2}return n+r}}BN.prototype._zeroBits=function _zeroBits(e){if(e===0)return 26;var r=e;var n=0;if((r&8191)===0){n+=13;r>>>=13}if((r&127)===0){n+=7;r>>>=7}if((r&15)===0){n+=4;r>>>=4}if((r&3)===0){n+=2;r>>>=2}if((r&1)===0){n++}return n};BN.prototype.bitLength=function bitLength(){var e=this.words[this.length-1];var r=this._countBits(e);return(this.length-1)*26+r};function toBitArray(e){var r=new Array(e.bitLength());for(var n=0;n>>a}return r}BN.prototype.zeroBits=function zeroBits(){if(this.isZero())return 0;var e=0;for(var r=0;re.length)return this.clone().ior(e);return e.clone().ior(this)};BN.prototype.uor=function uor(e){if(this.length>e.length)return this.clone().iuor(e);return e.clone().iuor(this)};BN.prototype.iuand=function iuand(e){var r;if(this.length>e.length){r=e}else{r=this}for(var n=0;ne.length)return this.clone().iand(e);return e.clone().iand(this)};BN.prototype.uand=function uand(e){if(this.length>e.length)return this.clone().iuand(e);return e.clone().iuand(this)};BN.prototype.iuxor=function iuxor(e){var r;var n;if(this.length>e.length){r=this;n=e}else{r=e;n=this}for(var t=0;te.length)return this.clone().ixor(e);return e.clone().ixor(this)};BN.prototype.uxor=function uxor(e){if(this.length>e.length)return this.clone().iuxor(e);return e.clone().iuxor(this)};BN.prototype.inotn=function inotn(e){assert(typeof e==="number"&&e>=0);var r=Math.ceil(e/26)|0;var n=e%26;this._expand(r);if(n>0){r--}for(var t=0;t0){this.words[t]=~this.words[t]&67108863>>26-n}return this.strip()};BN.prototype.notn=function notn(e){return this.clone().inotn(e)};BN.prototype.setn=function setn(e,r){assert(typeof e==="number"&&e>=0);var n=e/26|0;var t=e%26;this._expand(n+1);if(r){this.words[n]=this.words[n]|1<e.length){n=this;t=e}else{n=e;t=this}var a=0;for(var i=0;i>>26}for(;a!==0&&i>>26}this.length=n.length;if(a!==0){this.words[this.length]=a;this.length++}else if(n!==this){for(;ie.length)return this.clone().iadd(e);return e.clone().iadd(this)};BN.prototype.isub=function isub(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);e.negative=1;return r._normSign()}else if(this.negative!==0){this.negative=0;this.iadd(e);this.negative=1;return this._normSign()}var n=this.cmp(e);if(n===0){this.negative=0;this.length=1;this.words[0]=0;return this}var t,a;if(n>0){t=this;a=e}else{t=e;a=this}var i=0;for(var s=0;s>26;this.words[s]=r&67108863}for(;i!==0&&s>26;this.words[s]=r&67108863}if(i===0&&s>>26;var u=c&67108863;var o=Math.min(l,r.length-1);for(var h=Math.max(0,l-e.length+1);h<=o;h++){var v=l-h|0;a=e.words[v]|0;i=r.words[h]|0;s=a*i+u;d+=s/67108864|0;u=s&67108863}n.words[l]=u|0;c=d|0}if(c!==0){n.words[l]=c|0}else{n.length--}return n.strip()}var f=function comb10MulTo(e,r,n){var t=e.words;var a=r.words;var i=n.words;var s=0;var f;var c;var l;var d=t[0]|0;var u=d&8191;var o=d>>>13;var h=t[1]|0;var v=h&8191;var p=h>>>13;var b=t[2]|0;var y=b&8191;var g=b>>>13;var w=t[3]|0;var m=w&8191;var A=w>>>13;var E=t[4]|0;var S=E&8191;var k=E>>>13;var R=t[5]|0;var M=R&8191;var C=R>>>13;var D=t[6]|0;var j=D&8191;var q=D>>>13;var B=t[7]|0;var _=B&8191;var U=B>>>13;var K=t[8]|0;var x=K&8191;var I=K>>>13;var F=t[9]|0;var O=F&8191;var P=F>>>13;var T=a[0]|0;var z=T&8191;var N=T>>>13;var L=a[1]|0;var W=L&8191;var H=L>>>13;var G=a[2]|0;var J=G&8191;var Y=G>>>13;var Q=a[3]|0;var Z=Q&8191;var X=Q>>>13;var V=a[4]|0;var $=V&8191;var ee=V>>>13;var re=a[5]|0;var ne=re&8191;var te=re>>>13;var ae=a[6]|0;var ie=ae&8191;var se=ae>>>13;var fe=a[7]|0;var ce=fe&8191;var le=fe>>>13;var de=a[8]|0;var ue=de&8191;var oe=de>>>13;var he=a[9]|0;var ve=he&8191;var pe=he>>>13;n.negative=e.negative^r.negative;n.length=19;f=Math.imul(u,z);c=Math.imul(u,N);c=c+Math.imul(o,z)|0;l=Math.imul(o,N);var be=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(be>>>26)|0;be&=67108863;f=Math.imul(v,z);c=Math.imul(v,N);c=c+Math.imul(p,z)|0;l=Math.imul(p,N);f=f+Math.imul(u,W)|0;c=c+Math.imul(u,H)|0;c=c+Math.imul(o,W)|0;l=l+Math.imul(o,H)|0;var ye=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(ye>>>26)|0;ye&=67108863;f=Math.imul(y,z);c=Math.imul(y,N);c=c+Math.imul(g,z)|0;l=Math.imul(g,N);f=f+Math.imul(v,W)|0;c=c+Math.imul(v,H)|0;c=c+Math.imul(p,W)|0;l=l+Math.imul(p,H)|0;f=f+Math.imul(u,J)|0;c=c+Math.imul(u,Y)|0;c=c+Math.imul(o,J)|0;l=l+Math.imul(o,Y)|0;var ge=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(ge>>>26)|0;ge&=67108863;f=Math.imul(m,z);c=Math.imul(m,N);c=c+Math.imul(A,z)|0;l=Math.imul(A,N);f=f+Math.imul(y,W)|0;c=c+Math.imul(y,H)|0;c=c+Math.imul(g,W)|0;l=l+Math.imul(g,H)|0;f=f+Math.imul(v,J)|0;c=c+Math.imul(v,Y)|0;c=c+Math.imul(p,J)|0;l=l+Math.imul(p,Y)|0;f=f+Math.imul(u,Z)|0;c=c+Math.imul(u,X)|0;c=c+Math.imul(o,Z)|0;l=l+Math.imul(o,X)|0;var we=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(we>>>26)|0;we&=67108863;f=Math.imul(S,z);c=Math.imul(S,N);c=c+Math.imul(k,z)|0;l=Math.imul(k,N);f=f+Math.imul(m,W)|0;c=c+Math.imul(m,H)|0;c=c+Math.imul(A,W)|0;l=l+Math.imul(A,H)|0;f=f+Math.imul(y,J)|0;c=c+Math.imul(y,Y)|0;c=c+Math.imul(g,J)|0;l=l+Math.imul(g,Y)|0;f=f+Math.imul(v,Z)|0;c=c+Math.imul(v,X)|0;c=c+Math.imul(p,Z)|0;l=l+Math.imul(p,X)|0;f=f+Math.imul(u,$)|0;c=c+Math.imul(u,ee)|0;c=c+Math.imul(o,$)|0;l=l+Math.imul(o,ee)|0;var me=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(me>>>26)|0;me&=67108863;f=Math.imul(M,z);c=Math.imul(M,N);c=c+Math.imul(C,z)|0;l=Math.imul(C,N);f=f+Math.imul(S,W)|0;c=c+Math.imul(S,H)|0;c=c+Math.imul(k,W)|0;l=l+Math.imul(k,H)|0;f=f+Math.imul(m,J)|0;c=c+Math.imul(m,Y)|0;c=c+Math.imul(A,J)|0;l=l+Math.imul(A,Y)|0;f=f+Math.imul(y,Z)|0;c=c+Math.imul(y,X)|0;c=c+Math.imul(g,Z)|0;l=l+Math.imul(g,X)|0;f=f+Math.imul(v,$)|0;c=c+Math.imul(v,ee)|0;c=c+Math.imul(p,$)|0;l=l+Math.imul(p,ee)|0;f=f+Math.imul(u,ne)|0;c=c+Math.imul(u,te)|0;c=c+Math.imul(o,ne)|0;l=l+Math.imul(o,te)|0;var Ae=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Ae>>>26)|0;Ae&=67108863;f=Math.imul(j,z);c=Math.imul(j,N);c=c+Math.imul(q,z)|0;l=Math.imul(q,N);f=f+Math.imul(M,W)|0;c=c+Math.imul(M,H)|0;c=c+Math.imul(C,W)|0;l=l+Math.imul(C,H)|0;f=f+Math.imul(S,J)|0;c=c+Math.imul(S,Y)|0;c=c+Math.imul(k,J)|0;l=l+Math.imul(k,Y)|0;f=f+Math.imul(m,Z)|0;c=c+Math.imul(m,X)|0;c=c+Math.imul(A,Z)|0;l=l+Math.imul(A,X)|0;f=f+Math.imul(y,$)|0;c=c+Math.imul(y,ee)|0;c=c+Math.imul(g,$)|0;l=l+Math.imul(g,ee)|0;f=f+Math.imul(v,ne)|0;c=c+Math.imul(v,te)|0;c=c+Math.imul(p,ne)|0;l=l+Math.imul(p,te)|0;f=f+Math.imul(u,ie)|0;c=c+Math.imul(u,se)|0;c=c+Math.imul(o,ie)|0;l=l+Math.imul(o,se)|0;var Ee=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Ee>>>26)|0;Ee&=67108863;f=Math.imul(_,z);c=Math.imul(_,N);c=c+Math.imul(U,z)|0;l=Math.imul(U,N);f=f+Math.imul(j,W)|0;c=c+Math.imul(j,H)|0;c=c+Math.imul(q,W)|0;l=l+Math.imul(q,H)|0;f=f+Math.imul(M,J)|0;c=c+Math.imul(M,Y)|0;c=c+Math.imul(C,J)|0;l=l+Math.imul(C,Y)|0;f=f+Math.imul(S,Z)|0;c=c+Math.imul(S,X)|0;c=c+Math.imul(k,Z)|0;l=l+Math.imul(k,X)|0;f=f+Math.imul(m,$)|0;c=c+Math.imul(m,ee)|0;c=c+Math.imul(A,$)|0;l=l+Math.imul(A,ee)|0;f=f+Math.imul(y,ne)|0;c=c+Math.imul(y,te)|0;c=c+Math.imul(g,ne)|0;l=l+Math.imul(g,te)|0;f=f+Math.imul(v,ie)|0;c=c+Math.imul(v,se)|0;c=c+Math.imul(p,ie)|0;l=l+Math.imul(p,se)|0;f=f+Math.imul(u,ce)|0;c=c+Math.imul(u,le)|0;c=c+Math.imul(o,ce)|0;l=l+Math.imul(o,le)|0;var Se=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Se>>>26)|0;Se&=67108863;f=Math.imul(x,z);c=Math.imul(x,N);c=c+Math.imul(I,z)|0;l=Math.imul(I,N);f=f+Math.imul(_,W)|0;c=c+Math.imul(_,H)|0;c=c+Math.imul(U,W)|0;l=l+Math.imul(U,H)|0;f=f+Math.imul(j,J)|0;c=c+Math.imul(j,Y)|0;c=c+Math.imul(q,J)|0;l=l+Math.imul(q,Y)|0;f=f+Math.imul(M,Z)|0;c=c+Math.imul(M,X)|0;c=c+Math.imul(C,Z)|0;l=l+Math.imul(C,X)|0;f=f+Math.imul(S,$)|0;c=c+Math.imul(S,ee)|0;c=c+Math.imul(k,$)|0;l=l+Math.imul(k,ee)|0;f=f+Math.imul(m,ne)|0;c=c+Math.imul(m,te)|0;c=c+Math.imul(A,ne)|0;l=l+Math.imul(A,te)|0;f=f+Math.imul(y,ie)|0;c=c+Math.imul(y,se)|0;c=c+Math.imul(g,ie)|0;l=l+Math.imul(g,se)|0;f=f+Math.imul(v,ce)|0;c=c+Math.imul(v,le)|0;c=c+Math.imul(p,ce)|0;l=l+Math.imul(p,le)|0;f=f+Math.imul(u,ue)|0;c=c+Math.imul(u,oe)|0;c=c+Math.imul(o,ue)|0;l=l+Math.imul(o,oe)|0;var ke=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(ke>>>26)|0;ke&=67108863;f=Math.imul(O,z);c=Math.imul(O,N);c=c+Math.imul(P,z)|0;l=Math.imul(P,N);f=f+Math.imul(x,W)|0;c=c+Math.imul(x,H)|0;c=c+Math.imul(I,W)|0;l=l+Math.imul(I,H)|0;f=f+Math.imul(_,J)|0;c=c+Math.imul(_,Y)|0;c=c+Math.imul(U,J)|0;l=l+Math.imul(U,Y)|0;f=f+Math.imul(j,Z)|0;c=c+Math.imul(j,X)|0;c=c+Math.imul(q,Z)|0;l=l+Math.imul(q,X)|0;f=f+Math.imul(M,$)|0;c=c+Math.imul(M,ee)|0;c=c+Math.imul(C,$)|0;l=l+Math.imul(C,ee)|0;f=f+Math.imul(S,ne)|0;c=c+Math.imul(S,te)|0;c=c+Math.imul(k,ne)|0;l=l+Math.imul(k,te)|0;f=f+Math.imul(m,ie)|0;c=c+Math.imul(m,se)|0;c=c+Math.imul(A,ie)|0;l=l+Math.imul(A,se)|0;f=f+Math.imul(y,ce)|0;c=c+Math.imul(y,le)|0;c=c+Math.imul(g,ce)|0;l=l+Math.imul(g,le)|0;f=f+Math.imul(v,ue)|0;c=c+Math.imul(v,oe)|0;c=c+Math.imul(p,ue)|0;l=l+Math.imul(p,oe)|0;f=f+Math.imul(u,ve)|0;c=c+Math.imul(u,pe)|0;c=c+Math.imul(o,ve)|0;l=l+Math.imul(o,pe)|0;var Re=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Re>>>26)|0;Re&=67108863;f=Math.imul(O,W);c=Math.imul(O,H);c=c+Math.imul(P,W)|0;l=Math.imul(P,H);f=f+Math.imul(x,J)|0;c=c+Math.imul(x,Y)|0;c=c+Math.imul(I,J)|0;l=l+Math.imul(I,Y)|0;f=f+Math.imul(_,Z)|0;c=c+Math.imul(_,X)|0;c=c+Math.imul(U,Z)|0;l=l+Math.imul(U,X)|0;f=f+Math.imul(j,$)|0;c=c+Math.imul(j,ee)|0;c=c+Math.imul(q,$)|0;l=l+Math.imul(q,ee)|0;f=f+Math.imul(M,ne)|0;c=c+Math.imul(M,te)|0;c=c+Math.imul(C,ne)|0;l=l+Math.imul(C,te)|0;f=f+Math.imul(S,ie)|0;c=c+Math.imul(S,se)|0;c=c+Math.imul(k,ie)|0;l=l+Math.imul(k,se)|0;f=f+Math.imul(m,ce)|0;c=c+Math.imul(m,le)|0;c=c+Math.imul(A,ce)|0;l=l+Math.imul(A,le)|0;f=f+Math.imul(y,ue)|0;c=c+Math.imul(y,oe)|0;c=c+Math.imul(g,ue)|0;l=l+Math.imul(g,oe)|0;f=f+Math.imul(v,ve)|0;c=c+Math.imul(v,pe)|0;c=c+Math.imul(p,ve)|0;l=l+Math.imul(p,pe)|0;var Me=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Me>>>26)|0;Me&=67108863;f=Math.imul(O,J);c=Math.imul(O,Y);c=c+Math.imul(P,J)|0;l=Math.imul(P,Y);f=f+Math.imul(x,Z)|0;c=c+Math.imul(x,X)|0;c=c+Math.imul(I,Z)|0;l=l+Math.imul(I,X)|0;f=f+Math.imul(_,$)|0;c=c+Math.imul(_,ee)|0;c=c+Math.imul(U,$)|0;l=l+Math.imul(U,ee)|0;f=f+Math.imul(j,ne)|0;c=c+Math.imul(j,te)|0;c=c+Math.imul(q,ne)|0;l=l+Math.imul(q,te)|0;f=f+Math.imul(M,ie)|0;c=c+Math.imul(M,se)|0;c=c+Math.imul(C,ie)|0;l=l+Math.imul(C,se)|0;f=f+Math.imul(S,ce)|0;c=c+Math.imul(S,le)|0;c=c+Math.imul(k,ce)|0;l=l+Math.imul(k,le)|0;f=f+Math.imul(m,ue)|0;c=c+Math.imul(m,oe)|0;c=c+Math.imul(A,ue)|0;l=l+Math.imul(A,oe)|0;f=f+Math.imul(y,ve)|0;c=c+Math.imul(y,pe)|0;c=c+Math.imul(g,ve)|0;l=l+Math.imul(g,pe)|0;var Ce=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Ce>>>26)|0;Ce&=67108863;f=Math.imul(O,Z);c=Math.imul(O,X);c=c+Math.imul(P,Z)|0;l=Math.imul(P,X);f=f+Math.imul(x,$)|0;c=c+Math.imul(x,ee)|0;c=c+Math.imul(I,$)|0;l=l+Math.imul(I,ee)|0;f=f+Math.imul(_,ne)|0;c=c+Math.imul(_,te)|0;c=c+Math.imul(U,ne)|0;l=l+Math.imul(U,te)|0;f=f+Math.imul(j,ie)|0;c=c+Math.imul(j,se)|0;c=c+Math.imul(q,ie)|0;l=l+Math.imul(q,se)|0;f=f+Math.imul(M,ce)|0;c=c+Math.imul(M,le)|0;c=c+Math.imul(C,ce)|0;l=l+Math.imul(C,le)|0;f=f+Math.imul(S,ue)|0;c=c+Math.imul(S,oe)|0;c=c+Math.imul(k,ue)|0;l=l+Math.imul(k,oe)|0;f=f+Math.imul(m,ve)|0;c=c+Math.imul(m,pe)|0;c=c+Math.imul(A,ve)|0;l=l+Math.imul(A,pe)|0;var De=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(De>>>26)|0;De&=67108863;f=Math.imul(O,$);c=Math.imul(O,ee);c=c+Math.imul(P,$)|0;l=Math.imul(P,ee);f=f+Math.imul(x,ne)|0;c=c+Math.imul(x,te)|0;c=c+Math.imul(I,ne)|0;l=l+Math.imul(I,te)|0;f=f+Math.imul(_,ie)|0;c=c+Math.imul(_,se)|0;c=c+Math.imul(U,ie)|0;l=l+Math.imul(U,se)|0;f=f+Math.imul(j,ce)|0;c=c+Math.imul(j,le)|0;c=c+Math.imul(q,ce)|0;l=l+Math.imul(q,le)|0;f=f+Math.imul(M,ue)|0;c=c+Math.imul(M,oe)|0;c=c+Math.imul(C,ue)|0;l=l+Math.imul(C,oe)|0;f=f+Math.imul(S,ve)|0;c=c+Math.imul(S,pe)|0;c=c+Math.imul(k,ve)|0;l=l+Math.imul(k,pe)|0;var je=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(je>>>26)|0;je&=67108863;f=Math.imul(O,ne);c=Math.imul(O,te);c=c+Math.imul(P,ne)|0;l=Math.imul(P,te);f=f+Math.imul(x,ie)|0;c=c+Math.imul(x,se)|0;c=c+Math.imul(I,ie)|0;l=l+Math.imul(I,se)|0;f=f+Math.imul(_,ce)|0;c=c+Math.imul(_,le)|0;c=c+Math.imul(U,ce)|0;l=l+Math.imul(U,le)|0;f=f+Math.imul(j,ue)|0;c=c+Math.imul(j,oe)|0;c=c+Math.imul(q,ue)|0;l=l+Math.imul(q,oe)|0;f=f+Math.imul(M,ve)|0;c=c+Math.imul(M,pe)|0;c=c+Math.imul(C,ve)|0;l=l+Math.imul(C,pe)|0;var qe=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(qe>>>26)|0;qe&=67108863;f=Math.imul(O,ie);c=Math.imul(O,se);c=c+Math.imul(P,ie)|0;l=Math.imul(P,se);f=f+Math.imul(x,ce)|0;c=c+Math.imul(x,le)|0;c=c+Math.imul(I,ce)|0;l=l+Math.imul(I,le)|0;f=f+Math.imul(_,ue)|0;c=c+Math.imul(_,oe)|0;c=c+Math.imul(U,ue)|0;l=l+Math.imul(U,oe)|0;f=f+Math.imul(j,ve)|0;c=c+Math.imul(j,pe)|0;c=c+Math.imul(q,ve)|0;l=l+Math.imul(q,pe)|0;var Be=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Be>>>26)|0;Be&=67108863;f=Math.imul(O,ce);c=Math.imul(O,le);c=c+Math.imul(P,ce)|0;l=Math.imul(P,le);f=f+Math.imul(x,ue)|0;c=c+Math.imul(x,oe)|0;c=c+Math.imul(I,ue)|0;l=l+Math.imul(I,oe)|0;f=f+Math.imul(_,ve)|0;c=c+Math.imul(_,pe)|0;c=c+Math.imul(U,ve)|0;l=l+Math.imul(U,pe)|0;var _e=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(_e>>>26)|0;_e&=67108863;f=Math.imul(O,ue);c=Math.imul(O,oe);c=c+Math.imul(P,ue)|0;l=Math.imul(P,oe);f=f+Math.imul(x,ve)|0;c=c+Math.imul(x,pe)|0;c=c+Math.imul(I,ve)|0;l=l+Math.imul(I,pe)|0;var Ue=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Ue>>>26)|0;Ue&=67108863;f=Math.imul(O,ve);c=Math.imul(O,pe);c=c+Math.imul(P,ve)|0;l=Math.imul(P,pe);var Ke=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Ke>>>26)|0;Ke&=67108863;i[0]=be;i[1]=ye;i[2]=ge;i[3]=we;i[4]=me;i[5]=Ae;i[6]=Ee;i[7]=Se;i[8]=ke;i[9]=Re;i[10]=Me;i[11]=Ce;i[12]=De;i[13]=je;i[14]=qe;i[15]=Be;i[16]=_e;i[17]=Ue;i[18]=Ke;if(s!==0){i[19]=s;n.length++}return n};if(!Math.imul){f=smallMulTo}function bigMulTo(e,r,n){n.negative=r.negative^e.negative;n.length=e.length+r.length;var t=0;var a=0;for(var i=0;i>>26)|0;a+=s>>>26;s&=67108863}n.words[i]=f;t=s;s=a}if(t!==0){n.words[i]=t}else{n.length--}return n.strip()}function jumboMulTo(e,r,n){var t=new FFTM;return t.mulp(e,r,n)}BN.prototype.mulTo=function mulTo(e,r){var n;var t=this.length+e.length;if(this.length===10&&e.length===10){n=f(this,e,r)}else if(t<63){n=smallMulTo(this,e,r)}else if(t<1024){n=bigMulTo(this,e,r)}else{n=jumboMulTo(this,e,r)}return n};function FFTM(e,r){this.x=e;this.y=r}FFTM.prototype.makeRBT=function makeRBT(e){var r=new Array(e);var n=BN.prototype._countBits(e)-1;for(var t=0;t>=1}return t};FFTM.prototype.permute=function permute(e,r,n,t,a,i){for(var s=0;s>>1){a++}return 1<>>13;n[2*i+1]=a&8191;a=a>>>13}for(i=2*r;i>=26;r+=t/67108864|0;r+=a>>>26;this.words[n]=a&67108863}if(r!==0){this.words[n]=r;this.length++}return this};BN.prototype.muln=function muln(e){return this.clone().imuln(e)};BN.prototype.sqr=function sqr(){return this.mul(this)};BN.prototype.isqr=function isqr(){return this.imul(this.clone())};BN.prototype.pow=function pow(e){var r=toBitArray(e);if(r.length===0)return new BN(1);var n=this;for(var t=0;t=0);var r=e%26;var n=(e-r)/26;var t=67108863>>>26-r<<26-r;var a;if(r!==0){var i=0;for(a=0;a>>26-r}if(i){this.words[a]=i;this.length++}}if(n!==0){for(a=this.length-1;a>=0;a--){this.words[a+n]=this.words[a]}for(a=0;a=0);var t;if(r){t=(r-r%26)/26}else{t=0}var a=e%26;var i=Math.min((e-a)/26,this.length);var s=67108863^67108863>>>a<i){this.length-=i;for(c=0;c=0&&(l!==0||c>=t);c--){var d=this.words[c]|0;this.words[c]=l<<26-a|d>>>a;l=d&s}if(f&&l!==0){f.words[f.length++]=l}if(this.length===0){this.words[0]=0;this.length=1}return this.strip()};BN.prototype.ishrn=function ishrn(e,r,n){assert(this.negative===0);return this.iushrn(e,r,n)};BN.prototype.shln=function shln(e){return this.clone().ishln(e)};BN.prototype.ushln=function ushln(e){return this.clone().iushln(e)};BN.prototype.shrn=function shrn(e){return this.clone().ishrn(e)};BN.prototype.ushrn=function ushrn(e){return this.clone().iushrn(e)};BN.prototype.testn=function testn(e){assert(typeof e==="number"&&e>=0);var r=e%26;var n=(e-r)/26;var t=1<=0);var r=e%26;var n=(e-r)/26;assert(this.negative===0,"imaskn works only with positive numbers");if(this.length<=n){return this}if(r!==0){n++}this.length=Math.min(n,this.length);if(r!==0){var t=67108863^67108863>>>r<=67108864;r++){this.words[r]-=67108864;if(r===this.length-1){this.words[r+1]=1}else{this.words[r+1]++}}this.length=Math.max(this.length,r+1);return this};BN.prototype.isubn=function isubn(e){assert(typeof e==="number");assert(e<67108864);if(e<0)return this.iaddn(-e);if(this.negative!==0){this.negative=0;this.iaddn(e);this.negative=1;return this}this.words[0]-=e;if(this.length===1&&this.words[0]<0){this.words[0]=-this.words[0];this.negative=1}else{for(var r=0;r>26)-(f/67108864|0);this.words[a+n]=i&67108863}for(;a>26;this.words[a+n]=i&67108863}if(s===0)return this.strip();assert(s===-1);s=0;for(a=0;a>26;this.words[a]=i&67108863}this.negative=1;return this.strip()};BN.prototype._wordDiv=function _wordDiv(e,r){var n=this.length-e.length;var t=this.clone();var a=e;var i=a.words[a.length-1]|0;var s=this._countBits(i);n=26-s;if(n!==0){a=a.ushln(n);t.iushln(n);i=a.words[a.length-1]|0}var f=t.length-a.length;var c;if(r!=="mod"){c=new BN(null);c.length=f+1;c.words=new Array(c.length);for(var l=0;l=0;u--){var o=(t.words[a.length+u]|0)*67108864+(t.words[a.length+u-1]|0);o=Math.min(o/i|0,67108863);t._ishlnsubmul(a,o,u);while(t.negative!==0){o--;t.negative=0;t._ishlnsubmul(a,1,u);if(!t.isZero()){t.negative^=1}}if(c){c.words[u]=o}}if(c){c.strip()}t.strip();if(r!=="div"&&n!==0){t.iushrn(n)}return{div:c||null,mod:t}};BN.prototype.divmod=function divmod(e,r,n){assert(!e.isZero());if(this.isZero()){return{div:new BN(0),mod:new BN(0)}}var t,a,i;if(this.negative!==0&&e.negative===0){i=this.neg().divmod(e,r);if(r!=="mod"){t=i.div.neg()}if(r!=="div"){a=i.mod.neg();if(n&&a.negative!==0){a.iadd(e)}}return{div:t,mod:a}}if(this.negative===0&&e.negative!==0){i=this.divmod(e.neg(),r);if(r!=="mod"){t=i.div.neg()}return{div:t,mod:i.mod}}if((this.negative&e.negative)!==0){i=this.neg().divmod(e.neg(),r);if(r!=="div"){a=i.mod.neg();if(n&&a.negative!==0){a.isub(e)}}return{div:i.div,mod:a}}if(e.length>this.length||this.cmp(e)<0){return{div:new BN(0),mod:this}}if(e.length===1){if(r==="div"){return{div:this.divn(e.words[0]),mod:null}}if(r==="mod"){return{div:null,mod:new BN(this.modn(e.words[0]))}}return{div:this.divn(e.words[0]),mod:new BN(this.modn(e.words[0]))}}return this._wordDiv(e,r)};BN.prototype.div=function div(e){return this.divmod(e,"div",false).div};BN.prototype.mod=function mod(e){return this.divmod(e,"mod",false).mod};BN.prototype.umod=function umod(e){return this.divmod(e,"mod",true).mod};BN.prototype.divRound=function divRound(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod;var t=e.ushrn(1);var a=e.andln(1);var i=n.cmp(t);if(i<0||a===1&&i===0)return r.div;return r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)};BN.prototype.modn=function modn(e){assert(e<=67108863);var r=(1<<26)%e;var n=0;for(var t=this.length-1;t>=0;t--){n=(r*n+(this.words[t]|0))%e}return n};BN.prototype.idivn=function idivn(e){assert(e<=67108863);var r=0;for(var n=this.length-1;n>=0;n--){var t=(this.words[n]|0)+r*67108864;this.words[n]=t/e|0;r=t%e}return this.strip()};BN.prototype.divn=function divn(e){return this.clone().idivn(e)};BN.prototype.egcd=function egcd(e){assert(e.negative===0);assert(!e.isZero());var r=this;var n=e.clone();if(r.negative!==0){r=r.umod(e)}else{r=r.clone()}var t=new BN(1);var a=new BN(0);var i=new BN(0);var s=new BN(1);var f=0;while(r.isEven()&&n.isEven()){r.iushrn(1);n.iushrn(1);++f}var c=n.clone();var l=r.clone();while(!r.isZero()){for(var d=0,u=1;(r.words[0]&u)===0&&d<26;++d,u<<=1);if(d>0){r.iushrn(d);while(d-- >0){if(t.isOdd()||a.isOdd()){t.iadd(c);a.isub(l)}t.iushrn(1);a.iushrn(1)}}for(var o=0,h=1;(n.words[0]&h)===0&&o<26;++o,h<<=1);if(o>0){n.iushrn(o);while(o-- >0){if(i.isOdd()||s.isOdd()){i.iadd(c);s.isub(l)}i.iushrn(1);s.iushrn(1)}}if(r.cmp(n)>=0){r.isub(n);t.isub(i);a.isub(s)}else{n.isub(r);i.isub(t);s.isub(a)}}return{a:i,b:s,gcd:n.iushln(f)}};BN.prototype._invmp=function _invmp(e){assert(e.negative===0);assert(!e.isZero());var r=this;var n=e.clone();if(r.negative!==0){r=r.umod(e)}else{r=r.clone()}var t=new BN(1);var a=new BN(0);var i=n.clone();while(r.cmpn(1)>0&&n.cmpn(1)>0){for(var s=0,f=1;(r.words[0]&f)===0&&s<26;++s,f<<=1);if(s>0){r.iushrn(s);while(s-- >0){if(t.isOdd()){t.iadd(i)}t.iushrn(1)}}for(var c=0,l=1;(n.words[0]&l)===0&&c<26;++c,l<<=1);if(c>0){n.iushrn(c);while(c-- >0){if(a.isOdd()){a.iadd(i)}a.iushrn(1)}}if(r.cmp(n)>=0){r.isub(n);t.isub(a)}else{n.isub(r);a.isub(t)}}var d;if(r.cmpn(1)===0){d=t}else{d=a}if(d.cmpn(0)<0){d.iadd(e)}return d};BN.prototype.gcd=function gcd(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone();var n=e.clone();r.negative=0;n.negative=0;for(var t=0;r.isEven()&&n.isEven();t++){r.iushrn(1);n.iushrn(1)}do{while(r.isEven()){r.iushrn(1)}while(n.isEven()){n.iushrn(1)}var a=r.cmp(n);if(a<0){var i=r;r=n;n=i}else if(a===0||n.cmpn(1)===0){break}r.isub(n)}while(true);return n.iushln(t)};BN.prototype.invm=function invm(e){return this.egcd(e).a.umod(e)};BN.prototype.isEven=function isEven(){return(this.words[0]&1)===0};BN.prototype.isOdd=function isOdd(){return(this.words[0]&1)===1};BN.prototype.andln=function andln(e){return this.words[0]&e};BN.prototype.bincn=function bincn(e){assert(typeof e==="number");var r=e%26;var n=(e-r)/26;var t=1<>>26;s&=67108863;this.words[i]=s}if(a!==0){this.words[i]=a;this.length++}return this};BN.prototype.isZero=function isZero(){return this.length===1&&this.words[0]===0};BN.prototype.cmpn=function cmpn(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1){n=1}else{if(r){e=-e}assert(e<=67108863,"Number is too big");var t=this.words[0]|0;n=t===e?0:te.length)return 1;if(this.length=0;n--){var t=this.words[n]|0;var a=e.words[n]|0;if(t===a)continue;if(ta){r=1}break}return r};BN.prototype.gtn=function gtn(e){return this.cmpn(e)===1};BN.prototype.gt=function gt(e){return this.cmp(e)===1};BN.prototype.gten=function gten(e){return this.cmpn(e)>=0};BN.prototype.gte=function gte(e){return this.cmp(e)>=0};BN.prototype.ltn=function ltn(e){return this.cmpn(e)===-1};BN.prototype.lt=function lt(e){return this.cmp(e)===-1};BN.prototype.lten=function lten(e){return this.cmpn(e)<=0};BN.prototype.lte=function lte(e){return this.cmp(e)<=0};BN.prototype.eqn=function eqn(e){return this.cmpn(e)===0};BN.prototype.eq=function eq(e){return this.cmp(e)===0};BN.red=function red(e){return new Red(e)};BN.prototype.toRed=function toRed(e){assert(!this.red,"Already a number in reduction context");assert(this.negative===0,"red works only with positives");return e.convertTo(this)._forceRed(e)};BN.prototype.fromRed=function fromRed(){assert(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)};BN.prototype._forceRed=function _forceRed(e){this.red=e;return this};BN.prototype.forceRed=function forceRed(e){assert(!this.red,"Already a number in reduction context");return this._forceRed(e)};BN.prototype.redAdd=function redAdd(e){assert(this.red,"redAdd works only with red numbers");return this.red.add(this,e)};BN.prototype.redIAdd=function redIAdd(e){assert(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,e)};BN.prototype.redSub=function redSub(e){assert(this.red,"redSub works only with red numbers");return this.red.sub(this,e)};BN.prototype.redISub=function redISub(e){assert(this.red,"redISub works only with red numbers");return this.red.isub(this,e)};BN.prototype.redShl=function redShl(e){assert(this.red,"redShl works only with red numbers");return this.red.shl(this,e)};BN.prototype.redMul=function redMul(e){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,e);return this.red.mul(this,e)};BN.prototype.redIMul=function redIMul(e){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,e);return this.red.imul(this,e)};BN.prototype.redSqr=function redSqr(){assert(this.red,"redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};BN.prototype.redISqr=function redISqr(){assert(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};BN.prototype.redSqrt=function redSqrt(){assert(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};BN.prototype.redInvm=function redInvm(){assert(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};BN.prototype.redNeg=function redNeg(){assert(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};BN.prototype.redPow=function redPow(e){assert(this.red&&!e.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,e)};var c={k256:null,p224:null,p192:null,p25519:null};function MPrime(e,r){this.name=e;this.p=new BN(r,16);this.n=this.p.bitLength();this.k=new BN(1).iushln(this.n).isub(this.p);this.tmp=this._tmp()}MPrime.prototype._tmp=function _tmp(){var e=new BN(null);e.words=new Array(Math.ceil(this.n/13));return e};MPrime.prototype.ireduce=function ireduce(e){var r=e;var n;do{this.split(r,this.tmp);r=this.imulK(r);r=r.iadd(this.tmp);n=r.bitLength()}while(n>this.n);var t=n0){r.isub(this.p)}else{r.strip()}return r};MPrime.prototype.split=function split(e,r){e.iushrn(this.n,0,r)};MPrime.prototype.imulK=function imulK(e){return e.imul(this.k)};function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}inherits(K256,MPrime);K256.prototype.split=function split(e,r){var n=4194303;var t=Math.min(e.length,9);for(var a=0;a>>22;i=s}i>>>=22;e.words[a-10]=i;if(i===0&&e.length>10){e.length-=10}else{e.length-=9}};K256.prototype.imulK=function imulK(e){e.words[e.length]=0;e.words[e.length+1]=0;e.length+=2;var r=0;for(var n=0;n>>=26;e.words[n]=a;r=t}if(r!==0){e.words[e.length++]=r}return e};BN._prime=function prime(e){if(c[e])return c[e];var prime;if(e==="k256"){prime=new K256}else if(e==="p224"){prime=new P224}else if(e==="p192"){prime=new P192}else if(e==="p25519"){prime=new P25519}else{throw new Error("Unknown prime "+e)}c[e]=prime;return prime};function Red(e){if(typeof e==="string"){var r=BN._prime(e);this.m=r.p;this.prime=r}else{assert(e.gtn(1),"modulus must be greater than 1");this.m=e;this.prime=null}}Red.prototype._verify1=function _verify1(e){assert(e.negative===0,"red works only with positives");assert(e.red,"red works only with red numbers")};Red.prototype._verify2=function _verify2(e,r){assert((e.negative|r.negative)===0,"red works only with positives");assert(e.red&&e.red===r.red,"red works only with red numbers")};Red.prototype.imod=function imod(e){if(this.prime)return this.prime.ireduce(e)._forceRed(this);return e.umod(this.m)._forceRed(this)};Red.prototype.neg=function neg(e){if(e.isZero()){return e.clone()}return this.m.sub(e)._forceRed(this)};Red.prototype.add=function add(e,r){this._verify2(e,r);var n=e.add(r);if(n.cmp(this.m)>=0){n.isub(this.m)}return n._forceRed(this)};Red.prototype.iadd=function iadd(e,r){this._verify2(e,r);var n=e.iadd(r);if(n.cmp(this.m)>=0){n.isub(this.m)}return n};Red.prototype.sub=function sub(e,r){this._verify2(e,r);var n=e.sub(r);if(n.cmpn(0)<0){n.iadd(this.m)}return n._forceRed(this)};Red.prototype.isub=function isub(e,r){this._verify2(e,r);var n=e.isub(r);if(n.cmpn(0)<0){n.iadd(this.m)}return n};Red.prototype.shl=function shl(e,r){this._verify1(e);return this.imod(e.ushln(r))};Red.prototype.imul=function imul(e,r){this._verify2(e,r);return this.imod(e.imul(r))};Red.prototype.mul=function mul(e,r){this._verify2(e,r);return this.imod(e.mul(r))};Red.prototype.isqr=function isqr(e){return this.imul(e,e.clone())};Red.prototype.sqr=function sqr(e){return this.mul(e,e)};Red.prototype.sqrt=function sqrt(e){if(e.isZero())return e.clone();var r=this.m.andln(3);assert(r%2===1);if(r===3){var n=this.m.add(new BN(1)).iushrn(2);return this.pow(e,n)}var t=this.m.subn(1);var a=0;while(!t.isZero()&&t.andln(1)===0){a++;t.iushrn(1)}assert(!t.isZero());var i=new BN(1).toRed(this);var s=i.redNeg();var f=this.m.subn(1).iushrn(1);var c=this.m.bitLength();c=new BN(2*c*c).toRed(this);while(this.pow(c,f).cmp(s)!==0){c.redIAdd(s)}var l=this.pow(c,t);var d=this.pow(e,t.addn(1).iushrn(1));var u=this.pow(e,t);var o=a;while(u.cmp(i)!==0){var h=u;for(var v=0;h.cmp(i)!==0;v++){h=h.redSqr()}assert(v=0;a--){var l=r.words[a];for(var d=c-1;d>=0;d--){var u=l>>d&1;if(i!==t[0]){i=this.sqr(i)}if(u===0&&s===0){f=0;continue}s<<=1;s|=u;f++;if(f!==n&&(a!==0||d!==0))continue;i=this.mul(i,t[s]);f=0;s=0}c=26}return i};Red.prototype.convertTo=function convertTo(e){var r=e.umod(this.m);return r===e?r.clone():r};Red.prototype.convertFrom=function convertFrom(e){var r=e.clone();r.red=null;return r};BN.mont=function mont(e){return new Mont(e)};function Mont(e){Red.call(this,e);this.shift=this.m.bitLength();if(this.shift%26!==0){this.shift+=26-this.shift%26}this.r=new BN(1).iushln(this.shift);this.r2=this.imod(this.r.sqr());this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv)}inherits(Mont,Red);Mont.prototype.convertTo=function convertTo(e){return this.imod(e.ushln(this.shift))};Mont.prototype.convertFrom=function convertFrom(e){var r=this.imod(e.mul(this.rinv));r.red=null;return r};Mont.prototype.imul=function imul(e,r){if(e.isZero()||r.isZero()){e.words[0]=0;e.length=1;return e}var n=e.imul(r);var t=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var a=n.isub(t).iushrn(this.shift);var i=a;if(a.cmp(this.m)>=0){i=a.isub(this.m)}else if(a.cmpn(0)<0){i=a.iadd(this.m)}return i._forceRed(this)};Mont.prototype.mul=function mul(e,r){if(e.isZero()||r.isZero())return new BN(0)._forceRed(this);var n=e.mul(r);var t=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var a=n.isub(t).iushrn(this.shift);var i=a;if(a.cmp(this.m)>=0){i=a.isub(this.m)}else if(a.cmpn(0)<0){i=a.iadd(this.m)}return i._forceRed(this)};Mont.prototype.invm=function invm(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(typeof r==="undefined"||r,this)},{buffer:"buffer"}],17:[function(e,r,n){var t;r.exports=function rand(e){if(!t)t=new Rand(null);return t.generate(e)};function Rand(e){this.rand=e}r.exports.Rand=Rand;Rand.prototype.generate=function generate(e){return this._rand(e)};Rand.prototype._rand=function _rand(e){if(this.rand.getBytes)return this.rand.getBytes(e);var r=new Uint8Array(e);for(var n=0;n0){this.redN=null}else{this._maxwellTrick=true;this.redN=this.n.toRed(this.red)}}r.exports=BaseCurve;BaseCurve.prototype.point=function point(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function validate(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function _fixedNafMul(e,r){f(e.precomputed);var n=e._getDoubles();var t=i(r,1);var a=(1<=c;r--)l=(l<<1)+t[r];s.push(l)}var d=this.jpoint(null,null,null);var u=this.jpoint(null,null,null);for(var o=a;o>0;o--){for(var c=0;c=0;l--){for(var r=0;l>=0&&s[l]===0;l--)r++;if(l>=0)r++;c=c.dblp(r);if(l<0)break;var d=s[l];f(d!==0);if(e.type==="affine"){if(d>0)c=c.mixedAdd(a[d-1>>1]);else c=c.mixedAdd(a[-d-1>>1].neg())}else{if(d>0)c=c.add(a[d-1>>1]);else c=c.add(a[-d-1>>1].neg())}}return e.type==="affine"?c.toP():c};BaseCurve.prototype._wnafMulAdd=function _wnafMulAdd(e,r,n,t,a){var f=this._wnafT1;var c=this._wnafT2;var l=this._wnafT3;var d=0;for(var u=0;u=1;u-=2){var v=u-1;var p=u;if(f[v]!==1||f[p]!==1){l[v]=i(n[v],f[v]);l[p]=i(n[p],f[p]);d=Math.max(l[v].length,d);d=Math.max(l[p].length,d);continue}var b=[r[v],null,null,r[p]];if(r[v].y.cmp(r[p].y)===0){b[1]=r[v].add(r[p]);b[2]=r[v].toJ().mixedAdd(r[p].neg())}else if(r[v].y.cmp(r[p].y.redNeg())===0){b[1]=r[v].toJ().mixedAdd(r[p]);b[2]=r[v].add(r[p].neg())}else{b[1]=r[v].toJ().mixedAdd(r[p]);b[2]=r[v].toJ().mixedAdd(r[p].neg())}var y=[-3,-1,-5,-7,0,7,5,1,3];var g=s(n[v],n[p]);d=Math.max(g[0].length,d);l[v]=new Array(d);l[p]=new Array(d);for(var w=0;w=0;u--){var k=0;while(u>=0){var R=true;for(var w=0;w=0)k++;E=E.dblp(k);if(u<0)break;for(var w=0;w0)o=c[w][M-1>>1];else if(M<0)o=c[w][-M-1>>1].neg();if(o.type==="affine")E=E.mixedAdd(o);else E=E.add(o)}}for(var u=0;u=Math.ceil((e.bitLength()+1)/r.step)};BasePoint.prototype._getDoubles=function _getDoubles(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;var n=[this];var t=this;for(var a=0;a";return""};Point.prototype.isInfinity=function isInfinity(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function _extDbl(){var e=this.x.redSqr();var r=this.y.redSqr();var n=this.z.redSqr();n=n.redIAdd(n);var t=this.curve._mulA(e);var a=this.x.redAdd(this.y).redSqr().redISub(e).redISub(r);var i=t.redAdd(r);var s=i.redSub(n);var f=t.redSub(r);var c=a.redMul(s);var l=i.redMul(f);var d=a.redMul(f);var u=s.redMul(i);return this.curve.point(c,l,u,d)};Point.prototype._projDbl=function _projDbl(){var e=this.x.redAdd(this.y).redSqr();var r=this.x.redSqr();var n=this.y.redSqr();var t;var a;var i;if(this.curve.twisted){var s=this.curve._mulA(r);var f=s.redAdd(n);if(this.zOne){t=e.redSub(r).redSub(n).redMul(f.redSub(this.curve.two));a=f.redMul(s.redSub(n));i=f.redSqr().redSub(f).redSub(f)}else{var c=this.z.redSqr();var l=f.redSub(c).redISub(c);t=e.redSub(r).redISub(n).redMul(l);a=f.redMul(s.redSub(n));i=f.redMul(l)}}else{var s=r.redAdd(n);var c=this.curve._mulC(this.z).redSqr();var l=s.redSub(c).redSub(c);t=this.curve._mulC(e.redISub(s)).redMul(l);a=this.curve._mulC(s).redMul(r.redISub(n));i=s.redMul(l)}return this.curve.point(t,a,i)};Point.prototype.dbl=function dbl(){if(this.isInfinity())return this;if(this.curve.extended)return this._extDbl();else return this._projDbl()};Point.prototype._extAdd=function _extAdd(e){var r=this.y.redSub(this.x).redMul(e.y.redSub(e.x));var n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x));var t=this.t.redMul(this.curve.dd).redMul(e.t);var a=this.z.redMul(e.z.redAdd(e.z));var i=n.redSub(r);var s=a.redSub(t);var f=a.redAdd(t);var c=n.redAdd(r);var l=i.redMul(s);var d=f.redMul(c);var u=i.redMul(c);var o=s.redMul(f);return this.curve.point(l,d,o,u)};Point.prototype._projAdd=function _projAdd(e){var r=this.z.redMul(e.z);var n=r.redSqr();var t=this.x.redMul(e.x);var a=this.y.redMul(e.y);var i=this.curve.d.redMul(t).redMul(a);var s=n.redSub(i);var f=n.redAdd(i);var c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(t).redISub(a);var l=r.redMul(s).redMul(c);var d;var u;if(this.curve.twisted){d=r.redMul(f).redMul(a.redSub(this.curve._mulA(t)));u=s.redMul(f)}else{d=r.redMul(f).redMul(a.redSub(t));u=this.curve._mulC(s).redMul(f)}return this.curve.point(l,d,u)};Point.prototype.add=function add(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.curve.extended)return this._extAdd(e);else return this._projAdd(e)};Point.prototype.mul=function mul(e){if(this._hasDoubles(e))return this.curve._fixedNafMul(this,e);else return this.curve._wnafMul(this,e)};Point.prototype.mulAdd=function mulAdd(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,false)};Point.prototype.jmulAdd=function jmulAdd(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,true)};Point.prototype.normalize=function normalize(){if(this.zOne)return this;var e=this.z.redInvm();this.x=this.x.redMul(e);this.y=this.y.redMul(e);if(this.t)this.t=this.t.redMul(e);this.z=this.curve.one;this.zOne=true;return this};Point.prototype.neg=function neg(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function getX(){this.normalize();return this.x.fromRed()};Point.prototype.getY=function getY(){this.normalize();return this.y.fromRed()};Point.prototype.eq=function eq(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};Point.prototype.eqXToP=function eqXToP(e){var r=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return true;var n=e.clone();var t=this.curve.redN.redMul(this.z);for(;;){n.iadd(this.curve.n);if(n.cmp(this.curve.p)>=0)return false;r.redIAdd(t);if(this.x.cmp(r)===0)return true}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add},{"../utils":32,"./base":19,"bn.js":16,inherits:47}],21:[function(e,r,n){"use strict";var t=n;t.base=e("./base");t.short=e("./short");t.mont=e("./mont");t.edwards=e("./edwards")},{"./base":19,"./edwards":20,"./mont":22,"./short":23}],22:[function(e,r,n){"use strict";var t=e("bn.js");var a=e("inherits");var i=e("./base");var s=e("../utils");function MontCurve(e){i.call(this,"mont",e);this.a=new t(e.a,16).toRed(this.red);this.b=new t(e.b,16).toRed(this.red);this.i4=new t(4).toRed(this.red).redInvm();this.two=new t(2).toRed(this.red);this.a24=this.i4.redMul(this.a.redAdd(this.two))}a(MontCurve,i);r.exports=MontCurve;MontCurve.prototype.validate=function validate(e){var r=e.normalize().x;var n=r.redSqr();var t=n.redMul(r).redAdd(n.redMul(this.a)).redAdd(r);var a=t.redSqrt();return a.redSqr().cmp(t)===0};function Point(e,r,n){i.BasePoint.call(this,e,"projective");if(r===null&&n===null){this.x=this.curve.one;this.z=this.curve.zero}else{this.x=new t(r,16);this.z=new t(n,16);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red)}}a(Point,i.BasePoint);MontCurve.prototype.decodePoint=function decodePoint(e,r){var e=s.toArray(e,r);if(e.length===33&&e[0]===64)e=e.slice(1,33).reverse();if(e.length!==32)throw new Error("Unknown point compression format");return this.point(e,1)};MontCurve.prototype.point=function point(e,r){return new Point(this,e,r)};MontCurve.prototype.pointFromJSON=function pointFromJSON(e){return Point.fromJSON(this,e)};Point.prototype.precompute=function precompute(){};Point.prototype._encode=function _encode(e){var r=this.curve.p.byteLength();if(e){return[64].concat(this.getX().toArray("le",r))}else{return this.getX().toArray("be",r)}};Point.fromJSON=function fromJSON(e,r){return new Point(e,r[0],r[1]||e.one)};Point.prototype.inspect=function inspect(){if(this.isInfinity())return"";return""};Point.prototype.isInfinity=function isInfinity(){return this.z.cmpn(0)===0};Point.prototype.dbl=function dbl(){var e=this.x.redAdd(this.z);var r=e.redSqr();var n=this.x.redSub(this.z);var t=n.redSqr();var a=r.redSub(t);var i=r.redMul(t);var s=a.redMul(t.redAdd(this.curve.a24.redMul(a)));return this.curve.point(i,s)};Point.prototype.add=function add(){throw new Error("Not supported on Montgomery curve")};Point.prototype.diffAdd=function diffAdd(e,r){var n=this.x.redAdd(this.z);var t=this.x.redSub(this.z);var a=e.x.redAdd(e.z);var i=e.x.redSub(e.z);var s=i.redMul(n);var f=a.redMul(t);var c=r.z.redMul(s.redAdd(f).redSqr());var l=r.x.redMul(s.redISub(f).redSqr());return this.curve.point(c,l)};Point.prototype.mul=function mul(e){e=new t(e,16);var r=e.clone();var n=this;var a=this.curve.point(null,null);var i=this;for(var s=[];r.cmpn(0)!==0;r.iushrn(1))s.push(r.andln(1));for(var f=s.length-1;f>=0;f--){if(s[f]===0){n=n.diffAdd(a,i);a=a.dbl()}else{a=n.diffAdd(a,i);n=n.dbl()}}return a};Point.prototype.mulAdd=function mulAdd(){throw new Error("Not supported on Montgomery curve")};Point.prototype.jumlAdd=function jumlAdd(){throw new Error("Not supported on Montgomery curve")};Point.prototype.eq=function eq(e){return this.getX().cmp(e.getX())===0};Point.prototype.normalize=function normalize(){this.x=this.x.redMul(this.z.redInvm());this.z=this.curve.one;return this};Point.prototype.getX=function getX(){this.normalize();return this.x.fromRed()}},{"../utils":32,"./base":19,"bn.js":16,inherits:47}],23:[function(e,r,n){"use strict";var t=e("../utils");var a=e("bn.js");var i=e("inherits");var s=e("./base");var f=t.assert;function ShortCurve(e){s.call(this,"short",e);this.a=new a(e.a,16).toRed(this.red);this.b=new a(e.b,16).toRed(this.red);this.tinv=this.two.redInvm();this.zeroA=this.a.fromRed().cmpn(0)===0;this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0;this.endo=this._getEndomorphism(e);this._endoWnafT1=new Array(4);this._endoWnafT2=new Array(4)}i(ShortCurve,s);r.exports=ShortCurve;ShortCurve.prototype._getEndomorphism=function _getEndomorphism(e){if(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)return;var r;var n;if(e.beta){r=new a(e.beta,16).toRed(this.red)}else{var t=this._getEndoRoots(this.p);r=t[0].cmp(t[1])<0?t[0]:t[1];r=r.toRed(this.red)}if(e.lambda){n=new a(e.lambda,16)}else{var i=this._getEndoRoots(this.n);if(this.g.mul(i[0]).x.cmp(this.g.x.redMul(r))===0){n=i[0]}else{n=i[1];f(this.g.mul(n).x.cmp(this.g.x.redMul(r))===0)}}var s;if(e.basis){s=e.basis.map(function(e){return{a:new a(e.a,16),b:new a(e.b,16)}})}else{s=this._getEndoBasis(n)}return{beta:r,lambda:n,basis:s}};ShortCurve.prototype._getEndoRoots=function _getEndoRoots(e){var r=e===this.p?this.red:a.mont(e);var n=new a(2).toRed(r).redInvm();var t=n.redNeg();var i=new a(3).toRed(r).redNeg().redSqrt().redMul(n);var s=t.redAdd(i).fromRed();var f=t.redSub(i).fromRed();return[s,f]};ShortCurve.prototype._getEndoBasis=function _getEndoBasis(e){var r=this.n.ushrn(Math.floor(this.n.bitLength()/2));var n=e;var t=this.n.clone();var i=new a(1);var s=new a(0);var f=new a(0);var c=new a(1);var l;var d;var u;var o;var h;var v;var p;var b=0;var y;var g;while(n.cmpn(0)!==0){var w=t.div(n);y=t.sub(w.mul(n));g=f.sub(w.mul(i));var m=c.sub(w.mul(s));if(!u&&y.cmp(r)<0){l=p.neg();d=i;u=y.neg();o=g}else if(u&&++b===2){break}p=y;t=n;n=y;f=i;i=g;c=s;s=m}h=y.neg();v=g;var A=u.sqr().add(o.sqr());var E=h.sqr().add(v.sqr());if(E.cmp(A)>=0){h=l;v=d}if(u.negative){u=u.neg();o=o.neg()}if(h.negative){h=h.neg();v=v.neg()}return[{a:u,b:o},{a:h,b:v}]};ShortCurve.prototype._endoSplit=function _endoSplit(e){var r=this.endo.basis;var n=r[0];var t=r[1];var a=t.b.mul(e).divRound(this.n);var i=n.b.neg().mul(e).divRound(this.n);var s=a.mul(n.a);var f=i.mul(t.a);var c=a.mul(n.b);var l=i.mul(t.b);var d=e.sub(s).sub(f);var u=c.add(l).neg();return{k1:d,k2:u}};ShortCurve.prototype.pointFromX=function pointFromX(e,r){e=new a(e,16);if(!e.red)e=e.toRed(this.red);var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b);var t=n.redSqrt();if(t.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=t.fromRed().isOdd();if(r&&!i||!r&&i)t=t.redNeg();return this.point(e,t)};ShortCurve.prototype.validate=function validate(e){if(e.inf)return true;var r=e.x;var n=e.y;var t=this.a.redMul(r);var a=r.redSqr().redMul(r).redIAdd(t).redIAdd(this.b);return n.redSqr().redISub(a).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function _endoWnafMulAdd(e,r,n){var t=this._endoWnafT1;var a=this._endoWnafT2;for(var i=0;i";return""};Point.prototype.isInfinity=function isInfinity(){return this.inf};Point.prototype.add=function add(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);if(r.cmpn(0)!==0)r=r.redMul(this.x.redSub(e.x).redInvm());var n=r.redSqr().redISub(this.x).redISub(e.x);var t=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,t)};Point.prototype.dbl=function dbl(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a;var n=this.x.redSqr();var t=e.redInvm();var a=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(t);var i=a.redSqr().redISub(this.x.redAdd(this.x));var s=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,s)};Point.prototype.getX=function getX(){return this.x.fromRed()};Point.prototype.getY=function getY(){return this.y.fromRed()};Point.prototype.mul=function mul(e){e=new a(e,16);if(this.isInfinity())return this;else if(this._hasDoubles(e))return this.curve._fixedNafMul(this,e);else if(this.curve.endo)return this.curve._endoWnafMulAdd([this],[e]);else return this.curve._wnafMul(this,e)};Point.prototype.mulAdd=function mulAdd(e,r,n){var t=[this,r];var a=[e,n];if(this.curve.endo)return this.curve._endoWnafMulAdd(t,a);else return this.curve._wnafMulAdd(1,t,a,2)};Point.prototype.jmulAdd=function jmulAdd(e,r,n){var t=[this,r];var a=[e,n];if(this.curve.endo)return this.curve._endoWnafMulAdd(t,a,true);else return this.curve._wnafMulAdd(1,t,a,2,true)};Point.prototype.eq=function eq(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};Point.prototype.neg=function neg(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed;var t=function(e){return e.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(t)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(t)}}}return r};Point.prototype.toJ=function toJ(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function JPoint(e,r,n,t){s.BasePoint.call(this,e,"jacobian");if(r===null&&n===null&&t===null){this.x=this.curve.one;this.y=this.curve.one;this.z=new a(0)}else{this.x=new a(r,16);this.y=new a(n,16);this.z=new a(t,16)}if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);this.zOne=this.z===this.curve.one}i(JPoint,s.BasePoint);ShortCurve.prototype.jpoint=function jpoint(e,r,n){return new JPoint(this,e,r,n)};JPoint.prototype.toP=function toP(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm();var r=e.redSqr();var n=this.x.redMul(r);var t=this.y.redMul(r).redMul(e);return this.curve.point(n,t)};JPoint.prototype.neg=function neg(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function add(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr();var n=this.z.redSqr();var t=this.x.redMul(r);var a=e.x.redMul(n);var i=this.y.redMul(r.redMul(e.z));var s=e.y.redMul(n.redMul(this.z));var f=t.redSub(a);var c=i.redSub(s);if(f.cmpn(0)===0){if(c.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl()}var l=f.redSqr();var d=l.redMul(f);var u=t.redMul(l);var o=c.redSqr().redIAdd(d).redISub(u).redISub(u);var h=c.redMul(u.redISub(o)).redISub(i.redMul(d));var v=this.z.redMul(e.z).redMul(f);return this.curve.jpoint(o,h,v)};JPoint.prototype.mixedAdd=function mixedAdd(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr();var n=this.x;var t=e.x.redMul(r);var a=this.y;var i=e.y.redMul(r).redMul(this.z);var s=n.redSub(t);var f=a.redSub(i);if(s.cmpn(0)===0){if(f.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl()}var c=s.redSqr();var l=c.redMul(s);var d=n.redMul(c);var u=f.redSqr().redIAdd(l).redISub(d).redISub(d);var o=f.redMul(d.redISub(u)).redISub(a.redMul(l));var h=this.z.redMul(s);return this.curve.jpoint(u,o,h)};JPoint.prototype.dblp=function dblp(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var r=this;for(var n=0;n=0)return false;n.redIAdd(a);if(this.x.cmp(n)===0)return true}};JPoint.prototype.inspect=function inspect(){if(this.isInfinity())return"";return""};JPoint.prototype.isInfinity=function isInfinity(){return this.z.cmpn(0)===0}},{"../utils":32,"./base":19,"bn.js":16,inherits:47}],24:[function(e,r,n){"use strict";var t=n;var a=e("hash.js");var i=e("./curve");var s=e("./utils");var f=s.assert;function PresetCurve(e){if(e.type==="short")this.curve=new i.short(e);else if(e.type==="edwards")this.curve=new i.edwards(e);else if(e.type==="mont")this.curve=new i.mont(e);else throw new Error("Unknown curve type.");this.g=this.curve.g;this.n=this.curve.n;this.hash=e.hash;f(this.g.validate(),"Invalid curve");f(this.g.mul(this.n).isInfinity(),"Invalid curve, n*G != O")}t.PresetCurve=PresetCurve;function defineCurve(e,r){Object.defineProperty(t,e,{configurable:true,enumerable:true,get:function(){var n=new PresetCurve(r);Object.defineProperty(t,e,{configurable:true,enumerable:true,value:n});return n}})}defineCurve("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:false,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});defineCurve("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:false,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});defineCurve("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:false,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});defineCurve("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff "+"fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff "+"fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f "+"5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 "+"f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:false,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 "+"5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 "+"0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]});defineCurve("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff "+"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff "+"ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff "+"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff "+"ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b "+"99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd "+"3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff "+"ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 "+"f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:false,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 "+"053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 "+"a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 "+"579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 "+"3fad0761 353c7086 a272c240 88be9476 9fd16650"]});defineCurve("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",cofactor:"8",hash:a.sha256,gRed:false,g:["9"]});defineCurve("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",cofactor:"8",hash:a.sha256,gRed:false,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});defineCurve("brainpoolP256r1",{type:"short",prime:null,p:"A9FB57DB A1EEA9BC 3E660A90 9D838D72 6E3BF623 D5262028 2013481D 1F6E5377",a:"7D5A0975 FC2C3057 EEF67530 417AFFE7 FB8055C1 26DC5C6C E94A4B44 F330B5D9",b:"26DC5C6C E94A4B44 F330B5D9 BBD77CBF 95841629 5CF7E1CE 6BCCDC18 FF8C07B6",n:"A9FB57DB A1EEA9BC 3E660A90 9D838D71 8C397AA3 B561A6F7 901E0E82 974856A7",hash:a.sha256,gRed:false,g:["8BD2AEB9CB7E57CB2C4B482FFC81B7AFB9DE27E1E3BD23C23A4453BD9ACE3262","547EF835C3DAC4FD97F8461A14611DC9C27745132DED8E545C1D54C72F046997"]});defineCurve("brainpoolP384r1",{type:"short",prime:null,p:"8CB91E82 A3386D28 0F5D6F7E 50E641DF 152F7109 ED5456B4 12B1DA19 7FB71123"+"ACD3A729 901D1A71 87470013 3107EC53",a:"7BC382C6 3D8C150C 3C72080A CE05AFA0 C2BEA28E 4FB22787 139165EF BA91F90F"+"8AA5814A 503AD4EB 04A8C7DD 22CE2826",b:"04A8C7DD 22CE2826 8B39B554 16F0447C 2FB77DE1 07DCD2A6 2E880EA5 3EEB62D5"+"7CB43902 95DBC994 3AB78696 FA504C11",n:"8CB91E82 A3386D28 0F5D6F7E 50E641DF 152F7109 ED5456B3 1F166E6C AC0425A7"+"CF3AB6AF 6B7FC310 3B883202 E9046565",hash:a.sha384,gRed:false,g:["1D1C64F068CF45FFA2A63A81B7C13F6B8847A3E77EF14FE3DB7FCAFE0CBD10"+"E8E826E03436D646AAEF87B2E247D4AF1E","8ABE1D7520F9C2A45CB1EB8E95CFD55262B70B29FEEC5864E19C054FF99129"+"280E4646217791811142820341263C5315"]});defineCurve("brainpoolP512r1",{type:"short",prime:null,p:"AADD9DB8 DBE9C48B 3FD4E6AE 33C9FC07 CB308DB3 B3C9D20E D6639CCA 70330871"+"7D4D9B00 9BC66842 AECDA12A E6A380E6 2881FF2F 2D82C685 28AA6056 583A48F3",a:"7830A331 8B603B89 E2327145 AC234CC5 94CBDD8D 3DF91610 A83441CA EA9863BC"+"2DED5D5A A8253AA1 0A2EF1C9 8B9AC8B5 7F1117A7 2BF2C7B9 E7C1AC4D 77FC94CA",b:"3DF91610 A83441CA EA9863BC 2DED5D5A A8253AA1 0A2EF1C9 8B9AC8B5 7F1117A7"+"2BF2C7B9 E7C1AC4D 77FC94CA DC083E67 984050B7 5EBAE5DD 2809BD63 8016F723",n:"AADD9DB8 DBE9C48B 3FD4E6AE 33C9FC07 CB308DB3 B3C9D20E D6639CCA 70330870"+"553E5C41 4CA92619 41866119 7FAC1047 1DB1D381 085DDADD B5879682 9CA90069",hash:a.sha512,gRed:false,g:["81AEE4BDD82ED9645A21322E9C4C6A9385ED9F70B5D916C1B43B62EEF4D009"+"8EFF3B1F78E2D0D48D50D1687B93B97D5F7C6D5047406A5E688B352209BCB9F822","7DDE385D566332ECC0EABFA9CF7822FDF209F70024A57B1AA000C55B881F81"+"11B2DCDE494A5F485E5BCA4BD88A2763AED1CA2B2FA8F0540678CD1E0F3AD80892"]});var c;try{c=e("./precomputed/secp256k1")}catch(e){c=undefined}defineCurve("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:false,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",c]})},{"./curve":21,"./precomputed/secp256k1":31,"./utils":32,"hash.js":34}],25:[function(e,r,n){"use strict";var t=e("bn.js");var a=e("hmac-drbg");var i=e("../utils");var s=e("../curves");var f=e("brorand");var c=i.assert;var l=e("./key");var d=e("./signature");function EC(e){if(!(this instanceof EC))return new EC(e);if(typeof e==="string"){c(s.hasOwnProperty(e),"Unknown curve "+e);e=s[e]}if(e instanceof s.PresetCurve)e={curve:e};this.curve=e.curve.curve;this.n=this.curve.n;this.nh=this.n.ushrn(1);this.g=this.curve.g;this.g=e.curve.g;this.g.precompute(e.curve.n.bitLength()+1);this.hash=e.hash||e.curve.hash}r.exports=EC;EC.prototype.keyPair=function keyPair(e){return new l(this,e)};EC.prototype.keyFromPrivate=function keyFromPrivate(e,r){return l.fromPrivate(this,e,r)};EC.prototype.keyFromPublic=function keyFromPublic(e,r){return l.fromPublic(this,e,r)};EC.prototype.genKeyPair=function genKeyPair(e){if(!e)e={};var r=new a({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||f(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()});if(this.curve.type==="mont"){var n=new t(r.generate(32));return this.keyFromPrivate(n)}var i=this.n.byteLength();var s=this.n.sub(new t(2));do{var n=new t(r.generate(i));if(n.cmp(s)>0)continue;n.iaddn(1);return this.keyFromPrivate(n)}while(true)};EC.prototype._truncateToN=function truncateToN(e,r,n){n=n||e.byteLength()*8;var t=n-this.n.bitLength();if(t>0)e=e.ushrn(t);if(!r&&e.cmp(this.n)>=0)return e.sub(this.n);else return e};EC.prototype.truncateMsg=function truncateMSG(e){var r;if(e instanceof Uint8Array){r=e.byteLength*8;e=this._truncateToN(new t(e,16),false,r)}else if(typeof e==="string"){r=e.length*4;e=this._truncateToN(new t(e,16),false,r)}else{e=this._truncateToN(new t(e,16))}return e};EC.prototype.sign=function sign(e,r,n,i){if(typeof n==="object"){i=n;n=null}if(!i)i={};r=this.keyFromPrivate(r,n);e=this.truncateMsg(e);var s=this.n.byteLength();var f=r.getPrivate().toArray("be",s);var c=e.toArray("be",s);var l=new a({hash:this.hash,entropy:f,nonce:c,pers:i.pers,persEnc:i.persEnc||"utf8"});var u=this.n.sub(new t(1));for(var o=0;true;o++){var h=i.k?i.k(o):new t(l.generate(this.n.byteLength()));h=this._truncateToN(h,true);if(h.cmpn(1)<=0||h.cmp(u)>=0)continue;var v=this.g.mul(h);if(v.isInfinity())continue;var p=v.getX();var b=p.umod(this.n);if(b.cmpn(0)===0)continue;var y=h.invm(this.n).mul(b.mul(r.getPrivate()).iadd(e));y=y.umod(this.n);if(y.cmpn(0)===0)continue;var g=(v.getY().isOdd()?1:0)|(p.cmp(b)!==0?2:0);if(i.canonical&&y.cmp(this.nh)>0){y=this.n.sub(y);g^=1}return new d({r:b,s:y,recoveryParam:g})}};EC.prototype.verify=function verify(e,r,n,a){n=this.keyFromPublic(n,a);r=new d(r,"hex");var i=this._verify(this.truncateMsg(e),r,n)||this._verify(this._truncateToN(new t(e,16)),r,n);return i};EC.prototype._verify=function _verify(e,r,n){var t=r.r;var a=r.s;if(t.cmpn(1)<0||t.cmp(this.n)>=0)return false;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return false;var i=a.invm(this.n);var s=i.mul(e).umod(this.n);var f=i.mul(t).umod(this.n);if(!this.curve._maxwellTrick){var c=this.g.mulAdd(s,n.getPublic(),f);if(c.isInfinity())return false;return c.getX().umod(this.n).cmp(t)===0}var c=this.g.jmulAdd(s,n.getPublic(),f);if(c.isInfinity())return false;return c.eqXToP(t)};EC.prototype.recoverPubKey=function(e,r,n,a){c((3&n)===n,"The recovery param is more than two bits");r=new d(r,a);var i=this.n;var s=new t(e);var f=r.r;var l=r.s;var u=n&1;var o=n>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&o)throw new Error("Unable to find sencond key candinate");if(o)f=this.curve.pointFromX(f.add(this.curve.n),u);else f=this.curve.pointFromX(f,u);var h=r.r.invm(i);var v=i.sub(s).mul(h).umod(i);var p=l.mul(h).umod(i);return this.g.mulAdd(v,f,p)};EC.prototype.getKeyRecoveryParam=function(e,r,n,t){r=new d(r,t);if(r.recoveryParam!==null)return r.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(e,r,a)}catch(e){continue}if(i.eq(n))return a}throw new Error("Unable to find valid recovery factor")}},{"../curves":24,"../utils":32,"./key":26,"./signature":27,"bn.js":16,brorand:17,"hmac-drbg":46}],26:[function(e,r,n){"use strict";var t=e("bn.js");var a=e("../utils");var i=a.assert;function KeyPair(e,r){this.ec=e;this.priv=null;this.pub=null;if(r.priv)this._importPrivate(r.priv,r.privEnc);if(r.pub)this._importPublic(r.pub,r.pubEnc)}r.exports=KeyPair;KeyPair.fromPublic=function fromPublic(e,r,n){if(r instanceof KeyPair)return r;return new KeyPair(e,{pub:r,pubEnc:n})};KeyPair.fromPrivate=function fromPrivate(e,r,n){if(r instanceof KeyPair)return r;return new KeyPair(e,{priv:r,privEnc:n})};KeyPair.prototype.validate=function validate(){var e=this.getPublic();if(e.isInfinity())return{result:false,reason:"Invalid public key"};if(!e.validate())return{result:false,reason:"Public key is not a point"};if(!e.mul(this.ec.curve.n).isInfinity())return{result:false,reason:"Public key * N != O"};return{result:true,reason:null}};KeyPair.prototype.getPublic=function getPublic(e,r){if(!this.pub)this.pub=this.ec.g.mul(this.priv);if(!e)return this.pub;return this.pub.encode(e,r)};KeyPair.prototype.getPrivate=function getPrivate(e){if(e==="hex")return this.priv.toString(16,2);else return this.priv};KeyPair.prototype._importPrivate=function _importPrivate(e,r){this.priv=new t(e,r||16);if(this.ec.curve.type==="mont"){var n=this.ec.curve.one;var a=n.ushln(255-3).sub(n).ushln(3);this.priv=this.priv.or(n.ushln(255-1));this.priv=this.priv.and(a)}else this.priv=this.priv.umod(this.ec.curve.n)};KeyPair.prototype._importPublic=function _importPublic(e,r){if(e.x||e.y){if(this.ec.curve.type==="mont"){i(e.x,"Need x coordinate")}else if(this.ec.curve.type==="short"||this.ec.curve.type==="edwards"){i(e.x&&e.y,"Need both x and y coordinate")}this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,r)};KeyPair.prototype.derive=function derive(e){return e.mul(this.priv).getX()};KeyPair.prototype.sign=function sign(e,r,n){return this.ec.sign(e,this,r,n)};KeyPair.prototype.verify=function verify(e,r){return this.ec.verify(e,r,this)};KeyPair.prototype.inspect=function inspect(){return""}},{"../utils":32,"bn.js":16}],27:[function(e,r,n){"use strict";var t=e("bn.js");var a=e("../utils");var i=a.assert;function Signature(e,r){if(e instanceof Signature)return e;if(this._importDER(e,r))return;i(e.r&&e.s,"Signature without r or s");this.r=new t(e.r,16);this.s=new t(e.s,16);if(e.recoveryParam===undefined)this.recoveryParam=null;else this.recoveryParam=e.recoveryParam}r.exports=Signature;function Position(){this.place=0}function getLength(e,r){var n=e[r.place++];if(!(n&128)){return n}var t=n&15;var a=0;for(var i=0,s=r.place;i>>3);e.push(n|128);while(--n){e.push(r>>>(n<<3)&255)}e.push(r)}Signature.prototype.toDER=function toDER(e){var r=this.r.toArray();var n=this.s.toArray();if(r[0]&128)r=[0].concat(r);if(n[0]&128)n=[0].concat(n);r=rmPadding(r);n=rmPadding(n);while(!n[0]&&!(n[1]&128)){n=n.slice(1)}var t=[2];constructLength(t,r.length);t=t.concat(r);t.push(2);constructLength(t,n.length);var i=t.concat(n);var s=[48];constructLength(s,i.length);s=s.concat(i);return a.encode(s,e)}},{"../utils":32,"bn.js":16}],28:[function(e,r,n){"use strict";var t=e("hash.js");var a=e("hmac-drbg");var i=e("brorand");var s=e("../curves");var f=e("../utils");var c=f.assert;var l=f.parseBytes;var d=e("./key");var u=e("./signature");function EDDSA(e){c(e==="ed25519","only tested with ed25519 so far");if(!(this instanceof EDDSA))return new EDDSA(e);var e=s[e].curve;this.curve=e;this.g=e.g;this.g.precompute(e.n.bitLength()+1);this.pointClass=e.point().constructor;this.encodingLength=Math.ceil(e.n.bitLength()/8);this.hash=t.sha512}r.exports=EDDSA;EDDSA.prototype.sign=function sign(e,r){e=l(e);var n=this.keyFromSecret(r);var t=this.hashInt(n.messagePrefix(),e);var a=this.g.mul(t);var i=this.encodePoint(a);var s=this.hashInt(i,n.pubBytes(),e).mul(n.priv());var f=t.add(s).umod(this.curve.n);return this.makeSignature({R:a,S:f,Rencoded:i})};EDDSA.prototype.verify=function verify(e,r,n){e=l(e);r=this.makeSignature(r);var t=this.keyFromPublic(n);var a=this.hashInt(r.Rencoded(),t.pubBytes(),e);var i=this.g.mul(r.S());var s=r.R().add(t.pub().mul(a));return s.eq(i)};EDDSA.prototype.hashInt=function hashInt(){var e=this.hash();for(var r=0;r=0){var i;if(a.isOdd()){var s=a.andln(t-1);if(s>(t>>1)-1)i=(t>>1)-s;else i=s;a.isubn(i)}else{i=0}n.push(i);var f=a.cmpn(0)!==0&&a.andln(t-1)===0?r+1:1;for(var c=1;c0||r.cmpn(-a)>0){var i=e.andln(3)+t&3;var s=r.andln(3)+a&3;if(i===3)i=-1;if(s===3)s=-1;var f;if((i&1)===0){f=0}else{var c=e.andln(7)+t&7;if((c===3||c===5)&&s===2)f=-i;else f=i}n[0].push(f);var l;if((s&1)===0){l=0}else{var c=r.andln(7)+a&7;if((c===3||c===5)&&i===2)l=-s;else l=s}n[1].push(l);if(2*t===f+1)t=1-t;if(2*a===l+1)a=1-a;e.iushrn(1);r.iushrn(1)}return n}t.getJSF=getJSF;function cachedProperty(e,r,n){var t="_"+r;e.prototype[r]=function cachedProperty(){return this[t]!==undefined?this[t]:this[t]=n.call(this)}}t.cachedProperty=cachedProperty;function parseBytes(e){return typeof e==="string"?t.toArray(e,"hex"):e}t.parseBytes=parseBytes;function intFromLE(e){return new a(e,"hex","le")}t.intFromLE=intFromLE},{"bn.js":16,"minimalistic-assert":48,"minimalistic-crypto-utils":49}],33:[function(e,r,n){"use strict";(function(e){"use strict";function parse5322(e){function inStr(){return n0){r.semantic=" "}return r}}function star(e,r){return function starFunc(){var n,t,a,i,s;i=getPos();n=o("star");a=0;s=r===undefined?0:r;while((t=e())!==null){a=a+1;add(n,t)}if(a>=s){return n}else{setPos(i);return null}}}function collapseWhitespace(e){return e.replace(/([ \t]|\r\n)+/g," ").replace(/^\s*/,"").replace(/\s*$/,"")}function isUTF8NonAscii(e){return e.charCodeAt(0)>=128}function cr(){return wrap("cr",literal("\r")())}function crlf(){return wrap("crlf",and(cr,lf)())}function dquote(){return wrap("dquote",literal('"')())}function htab(){return wrap("htab",literal("\t")())}function lf(){return wrap("lf",literal("\n")())}function sp(){return wrap("sp",literal(" ")())}function vchar(){return wrap("vchar",compareToken(function vcharFunc(r){var n=r.charCodeAt(0);var t=33<=n&&n<=126;if(e.rfc6532){t=t||isUTF8NonAscii(r)}return t}))}function wsp(){return wrap("wsp",or(sp,htab)())}function quotedPair(){var e=wrap("quoted-pair",or(and(literal("\\"),or(vchar,wsp)),obsQP)());if(e===null){return null}e.semantic=e.semantic[1];return e}function fws(){return wrap("fws",or(obsFws,and(opt(and(star(wsp),invis(crlf))),star(wsp,1)))())}function ctext(){return wrap("ctext",or(function ctextFunc1(){return compareToken(function ctextFunc2(r){var n=r.charCodeAt(0);var t=33<=n&&n<=39||42<=n&&n<=91||93<=n&&n<=126;if(e.rfc6532){t=t||isUTF8NonAscii(r)}return t})},obsCtext)())}function ccontent(){return wrap("ccontent",or(ctext,quotedPair,comment)())}function comment(){return wrap("comment",and(literal("("),star(and(opt(fws),ccontent)),opt(fws),literal(")"))())}function cfws(){return wrap("cfws",or(and(star(and(opt(fws),comment),1),opt(fws)),fws)())}function atext(){return wrap("atext",compareToken(function atextFunc(r){var n="a"<=r&&r<="z"||"A"<=r&&r<="Z"||"0"<=r&&r<="9"||["!","#","$","%","&","'","*","+","-","/","=","?","^","_","`","{","|","}","~"].indexOf(r)>=0;if(e.rfc6532){n=n||isUTF8NonAscii(r)}return n}))}function atom(){return wrap("atom",and(colwsp(opt(cfws)),star(atext,1),colwsp(opt(cfws)))())}function dotAtomText(){var e,r;e=wrap("dot-atom-text",star(atext,1)());if(e===null){return e}r=star(and(literal("."),star(atext,1)))();if(r!==null){add(e,r)}return e}function dotAtom(){return wrap("dot-atom",and(invis(opt(cfws)),dotAtomText,invis(opt(cfws)))())}function qtext(){return wrap("qtext",or(function qtextFunc1(){return compareToken(function qtextFunc2(r){var n=r.charCodeAt(0);var t=33===n||35<=n&&n<=91||93<=n&&n<=126;if(e.rfc6532){t=t||isUTF8NonAscii(r)}return t})},obsQtext)())}function qcontent(){return wrap("qcontent",or(qtext,quotedPair)())}function quotedString(){return wrap("quoted-string",and(invis(opt(cfws)),invis(dquote),star(and(opt(colwsp(fws)),qcontent)),opt(invis(fws)),invis(dquote),invis(opt(cfws)))())}function word(){return wrap("word",or(atom,quotedString)())}function phrase(){return wrap("phrase",or(obsPhrase,star(word,1))())}function address(){return wrap("address",or(mailbox,group)())}function mailbox(){return wrap("mailbox",or(nameAddr,addrSpec)())}function nameAddr(){return wrap("name-addr",and(opt(displayName),angleAddr)())}function angleAddr(){return wrap("angle-addr",or(and(invis(opt(cfws)),literal("<"),addrSpec,literal(">"),invis(opt(cfws))),obsAngleAddr)())}function group(){return wrap("group",and(displayName,literal(":"),opt(groupList),literal(";"),invis(opt(cfws)))())}function displayName(){return wrap("display-name",function phraseFixedSemantic(){var e=phrase();if(e!==null){e.semantic=collapseWhitespace(e.semantic)}return e}())}function mailboxList(){return wrap("mailbox-list",or(and(mailbox,star(and(literal(","),mailbox))),obsMboxList)())}function addressList(){return wrap("address-list",or(and(address,star(and(literal(","),address))),obsAddrList)())}function groupList(){return wrap("group-list",or(mailboxList,invis(cfws),obsGroupList)())}function localPart(){return wrap("local-part",or(obsLocalPart,dotAtom,quotedString)())}function dtext(){return wrap("dtext",or(function dtextFunc1(){return compareToken(function dtextFunc2(r){var n=r.charCodeAt(0);var t=33<=n&&n<=90||94<=n&&n<=126;if(e.rfc6532){t=t||isUTF8NonAscii(r)}return t})},obsDtext)())}function domainLiteral(){return wrap("domain-literal",and(invis(opt(cfws)),literal("["),star(and(opt(fws),dtext)),opt(fws),literal("]"),invis(opt(cfws)))())}function domain(){return wrap("domain",function domainCheckTLD(){var r=or(obsDomain,dotAtom,domainLiteral)();if(e.rejectTLD){if(r&&r.semantic&&r.semantic.indexOf(".")<0){return null}}if(r){r.semantic=r.semantic.replace(/\s+/g,"")}return r}())}function addrSpec(){return wrap("addr-spec",and(localPart,literal("@"),domain)())}function fromSpec(){return wrap("from",or(mailboxList,addressList)())}function senderSpec(){return wrap("sender",or(mailbox,address)())}function replyToSpec(){return wrap("reply-to",addressList())}function obsNoWsCtl(){return e.strict?null:wrap("obs-NO-WS-CTL",compareToken(function(e){var r=e.charCodeAt(0);return 1<=r&&r<=8||11===r||12===r||14<=r&&r<=31||127===r}))}function obsCtext(){return e.strict?null:wrap("obs-ctext",obsNoWsCtl())}function obsQtext(){return e.strict?null:wrap("obs-qtext",obsNoWsCtl())}function obsQP(){return e.strict?null:wrap("obs-qp",and(literal("\\"),or(literal("\0"),obsNoWsCtl,lf,cr))())}function obsPhrase(){if(e.strict)return null;return e.atInDisplayName?wrap("obs-phrase",and(word,star(or(word,literal("."),literal("@"),colwsp(cfws))))()):wrap("obs-phrase",and(word,star(or(word,literal("."),colwsp(cfws))))())}function obsFws(){return e.strict?null:wrap("obs-FWS",star(and(invis(opt(crlf)),wsp),1)())}function obsAngleAddr(){return e.strict?null:wrap("obs-angle-addr",and(invis(opt(cfws)),literal("<"),obsRoute,addrSpec,literal(">"),invis(opt(cfws)))())}function obsRoute(){return e.strict?null:wrap("obs-route",and(obsDomainList,literal(":"))())}function obsDomainList(){return e.strict?null:wrap("obs-domain-list",and(star(or(invis(cfws),literal(","))),literal("@"),domain,star(and(literal(","),invis(opt(cfws)),opt(and(literal("@"),domain)))))())}function obsMboxList(){return e.strict?null:wrap("obs-mbox-list",and(star(and(invis(opt(cfws)),literal(","))),mailbox,star(and(literal(","),opt(and(mailbox,invis(cfws))))))())}function obsAddrList(){return e.strict?null:wrap("obs-addr-list",and(star(and(invis(opt(cfws)),literal(","))),address,star(and(literal(","),opt(and(address,invis(cfws))))))())}function obsGroupList(){return e.strict?null:wrap("obs-group-list",and(star(and(invis(opt(cfws)),literal(",")),1),invis(opt(cfws)))())}function obsLocalPart(){return e.strict?null:wrap("obs-local-part",and(word,star(and(literal("."),word)))())}function obsDomain(){return e.strict?null:wrap("obs-domain",and(atom,star(and(literal("."),atom)))())}function obsDtext(){return e.strict?null:wrap("obs-dtext",or(obsNoWsCtl,quotedPair)())}function findNode(e,r){var n,t,a;if(r===null||r===undefined){return null}t=[r];while(t.length>0){a=t.pop();if(a.name===e){return a}for(n=a.children.length-1;n>=0;n-=1){t.push(a.children[n])}}return null}function findAllNodes(e,r){var n,t,a,i;if(r===null||r===undefined){return null}t=[r];i=[];while(t.length>0){a=t.pop();if(a.name===e){i.push(a)}for(n=a.children.length-1;n>=0;n-=1){t.push(a.children[n])}}return i}function findAllNodesNoChildren(e,r){var n,t,a,i,s;if(r===null||r===undefined){return null}t=[r];i=[];s={};for(n=0;n0){a=t.pop();if(a.name in s){i.push(a)}else{for(n=a.children.length-1;n>=0;n-=1){t.push(a.children[n])}}}return i}function giveResult(r){var n,t,a,i,s;if(r===null){return null}n=[];t=findAllNodesNoChildren(["group","mailbox"],r);for(a=0;a1){return null}return r.addresses&&r.addresses[0]}var r,n,t,a,i;e=handleOpts(e,{});if(e===null){return null}r=e.input;i={address:address,"address-list":addressList,"angle-addr":angleAddr,from:fromSpec,group:group,mailbox:mailbox,"mailbox-list":mailboxList,"reply-to":replyToSpec,sender:senderSpec}[e.startAt]||addressList;if(!e.strict){initialize();e.strict=true;a=i(r);if(e.partial||!inStr()){return giveResult(a)}e.strict=false}initialize();a=i(r);if(!e.partial&&inStr()){return null}return giveResult(a)}function parseOneAddressSimple(e){return parse5322(handleOpts(e,{oneResult:true,rfc6532:true,simple:true,startAt:"address-list"}))}function parseAddressListSimple(e){return parse5322(handleOpts(e,{rfc6532:true,simple:true,startAt:"address-list"}))}function parseFromSimple(e){return parse5322(handleOpts(e,{rfc6532:true,simple:true,startAt:"from"}))}function parseSenderSimple(e){return parse5322(handleOpts(e,{oneResult:true,rfc6532:true,simple:true,startAt:"sender"}))}function parseReplyToSimple(e){return parse5322(handleOpts(e,{rfc6532:true,simple:true,startAt:"reply-to"}))}function handleOpts(e,r){function isString(e){return Object.prototype.toString.call(e)==="[object String]"}function isObject(e){return e===Object(e)}function isNullUndef(e){return e===null||e===undefined}var n,t;if(isString(e)){e={input:e}}else if(!isObject(e)){return null}if(!isString(e.input)){return null}if(!r){return null}n={oneResult:false,partial:false,rejectTLD:false,rfc6532:false,simple:false,startAt:"address-list",strict:false,atInDisplayName:false};for(t in n){if(isNullUndef(e[t])){e[t]=!isNullUndef(r[t])?r[t]:n[t]}}return e}parse5322.parseOneAddress=parseOneAddressSimple;parse5322.parseAddressList=parseAddressListSimple;parse5322.parseFrom=parseFromSimple;parse5322.parseSender=parseSenderSimple;parse5322.parseReplyTo=parseReplyToSimple;if(typeof r!=="undefined"&&typeof r.exports!=="undefined"){r.exports=parse5322}else{e.emailAddresses=parse5322}})(undefined)},{}],34:[function(e,r,n){var t=n;t.utils=e("./hash/utils");t.common=e("./hash/common");t.sha=e("./hash/sha");t.ripemd=e("./hash/ripemd");t.hmac=e("./hash/hmac");t.sha1=t.sha.sha1;t.sha256=t.sha.sha256;t.sha224=t.sha.sha224;t.sha384=t.sha.sha384;t.sha512=t.sha.sha512;t.ripemd160=t.ripemd.ripemd160},{"./hash/common":35,"./hash/hmac":36,"./hash/ripemd":37,"./hash/sha":38,"./hash/utils":45}],35:[function(e,r,n){"use strict";var t=e("./utils");var a=e("minimalistic-assert");function BlockHash(){this.pending=null;this.pendingTotal=0;this.blockSize=this.constructor.blockSize;this.outSize=this.constructor.outSize;this.hmacStrength=this.constructor.hmacStrength;this.padLength=this.constructor.padLength/8;this.endian="big";this._delta8=this.blockSize/8;this._delta32=this.blockSize/32}n.BlockHash=BlockHash;BlockHash.prototype.update=function update(e,r){e=t.toArray(e,r);if(!this.pending)this.pending=e;else this.pending=this.pending.concat(e);this.pendingTotal+=e.length;if(this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length);if(this.pending.length===0)this.pending=null;e=t.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255;t[a++]=e>>>16&255;t[a++]=e>>>8&255;t[a++]=e&255}else{t[a++]=e&255;t[a++]=e>>>8&255;t[a++]=e>>>16&255;t[a++]=e>>>24&255;t[a++]=0;t[a++]=0;t[a++]=0;t[a++]=0;for(i=8;ithis.blockSize)e=(new this.Hash).update(e).digest();a(e.length<=this.blockSize);for(var r=e.length;r>>3}n.g0_256=g0_256;function g1_256(e){return a(e,17)^a(e,19)^e>>>10}n.g1_256=g1_256},{"../utils":45}],45:[function(e,r,n){"use strict";var t=e("minimalistic-assert");var a=e("inherits");n.inherits=a;function toArray(e,r){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e==="string"){if(!r){for(var t=0;t>8;var s=a&255;if(i)n.push(i,s);else n.push(s)}}else if(r==="hex"){e=e.replace(/[^a-z0-9]+/gi,"");if(e.length%2!==0)e="0"+e;for(t=0;t>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return r>>>0}n.htonl=htonl;function toHex32(e,r){var n="";for(var t=0;t>>0}return s}n.join32=join32;function split32(e,r){var n=new Array(e.length*4);for(var t=0,a=0;t>>24;n[a+1]=i>>>16&255;n[a+2]=i>>>8&255;n[a+3]=i&255}else{n[a+3]=i>>>24;n[a+2]=i>>>16&255;n[a+1]=i>>>8&255;n[a]=i&255}}return n}n.split32=split32;function rotr32(e,r){return e>>>r|e<<32-r}n.rotr32=rotr32;function rotl32(e,r){return e<>>32-r}n.rotl32=rotl32;function sum32(e,r){return e+r>>>0}n.sum32=sum32;function sum32_3(e,r,n){return e+r+n>>>0}n.sum32_3=sum32_3;function sum32_4(e,r,n,t){return e+r+n+t>>>0}n.sum32_4=sum32_4;function sum32_5(e,r,n,t,a){return e+r+n+t+a>>>0}n.sum32_5=sum32_5;function sum64(e,r,n,t){var a=e[r];var i=e[r+1];var s=t+i>>>0;var f=(s>>0;e[r+1]=s}n.sum64=sum64;function sum64_hi(e,r,n,t){var a=r+t>>>0;var i=(a>>0}n.sum64_hi=sum64_hi;function sum64_lo(e,r,n,t){var a=r+t;return a>>>0}n.sum64_lo=sum64_lo;function sum64_4_hi(e,r,n,t,a,i,s,f){var c=0;var l=r;l=l+t>>>0;c+=l>>0;c+=l>>0;c+=l>>0}n.sum64_4_hi=sum64_4_hi;function sum64_4_lo(e,r,n,t,a,i,s,f){var c=r+t+i+f;return c>>>0}n.sum64_4_lo=sum64_4_lo;function sum64_5_hi(e,r,n,t,a,i,s,f,c,l){var d=0;var u=r;u=u+t>>>0;d+=u>>0;d+=u>>0;d+=u>>0;d+=u>>0}n.sum64_5_hi=sum64_5_hi;function sum64_5_lo(e,r,n,t,a,i,s,f,c,l){var d=r+t+i+f+l;return d>>>0}n.sum64_5_lo=sum64_5_lo;function rotr64_hi(e,r,n){var t=r<<32-n|e>>>n;return t>>>0}n.rotr64_hi=rotr64_hi;function rotr64_lo(e,r,n){var t=e<<32-n|r>>>n;return t>>>0}n.rotr64_lo=rotr64_lo;function shr64_hi(e,r,n){return e>>>n}n.shr64_hi=shr64_hi;function shr64_lo(e,r,n){var t=e<<32-n|r>>>n;return t>>>0}n.shr64_lo=shr64_lo},{inherits:47,"minimalistic-assert":48}],46:[function(e,r,n){"use strict";var t=e("hash.js");var a=e("minimalistic-crypto-utils");var i=e("minimalistic-assert");function HmacDRBG(e){if(!(this instanceof HmacDRBG))return new HmacDRBG(e);this.hash=e.hash;this.predResist=!!e.predResist;this.outLen=this.hash.outSize;this.minEntropy=e.minEntropy||this.hash.hmacStrength;this._reseed=null;this.reseedInterval=null;this.K=null;this.V=null;var r=a.toArray(e.entropy,e.entropyEnc||"hex");var n=a.toArray(e.nonce,e.nonceEnc||"hex");var t=a.toArray(e.pers,e.persEnc||"hex");i(r.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._init(r,n,t)}r.exports=HmacDRBG;HmacDRBG.prototype._init=function init(e,r,n){var t=e.concat(r).concat(n);this.K=new Array(this.outLen/8);this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._update(e.concat(n||[]));this._reseed=1};HmacDRBG.prototype.generate=function generate(e,r,n,t){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");if(typeof r!=="string"){t=n;n=r;r=null}if(n){n=a.toArray(n,t||"hex");this._update(n)}var i=[];while(i.length>8;var s=a&255;if(i)n.push(i,s);else n.push(s)}}return n}t.toArray=toArray;function zero2(e){if(e.length===1)return"0"+e;else return e}t.zero2=zero2;function toHex(e){var r="";for(var n=0;n0){r.windowBits=-r.windowBits}else if(r.gzip&&r.windowBits>0&&r.windowBits<16){r.windowBits+=16}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new f;this.strm.avail_out=0;var n=t.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(n!==u){throw new Error(s[n])}if(r.header){t.deflateSetHeader(this.strm,r.header)}if(r.dictionary){var l;if(typeof r.dictionary==="string"){l=i.string2buf(r.dictionary)}else if(c.call(r.dictionary)==="[object ArrayBuffer]"){l=new Uint8Array(r.dictionary)}else{l=r.dictionary}n=t.deflateSetDictionary(this.strm,l);if(n!==u){throw new Error(s[n])}this._dict_set=true}}Deflate.prototype.push=function(e,r){var n=this.strm;var s=this.options.chunkSize;var f,v;if(this.ended){return false}v=r===~~r?r:r===true?d:l;if(typeof e==="string"){n.input=i.string2buf(e)}else if(c.call(e)==="[object ArrayBuffer]"){n.input=new Uint8Array(e)}else{n.input=e}n.next_in=0;n.avail_in=n.input.length;do{if(n.avail_out===0){n.output=new a.Buf8(s);n.next_out=0;n.avail_out=s}f=t.deflate(n,v);if(f!==o&&f!==u){this.onEnd(f);this.ended=true;return false}if(n.avail_out===0||n.avail_in===0&&(v===d||v===h)){if(this.options.to==="string"){this.onData(i.buf2binstring(a.shrinkBuf(n.output,n.next_out)))}else{this.onData(a.shrinkBuf(n.output,n.next_out))}}}while((n.avail_in>0||n.avail_out===0)&&f!==o);if(v===d){f=t.deflateEnd(this.strm);this.onEnd(f);this.ended=true;return f===u}if(v===h){this.onEnd(u);n.avail_out=0;return true}return true};Deflate.prototype.onData=function(e){this.chunks.push(e)};Deflate.prototype.onEnd=function(e){if(e===u){if(this.options.to==="string"){this.result=this.chunks.join("")}else{this.result=a.flattenChunks(this.chunks)}}this.chunks=[];this.err=e;this.msg=this.strm.msg};function deflate(e,r){var n=new Deflate(r);n.push(e,true);if(n.err){throw n.msg||s[n.err]}return n.result}function deflateRaw(e,r){r=r||{};r.raw=true;return deflate(e,r)}function gzip(e,r){r=r||{};r.gzip=true;return deflate(e,r)}n.Deflate=Deflate;n.deflate=deflate;n.deflateRaw=deflateRaw;n.gzip=gzip},{"./utils/common":53,"./utils/strings":54,"./zlib/deflate":58,"./zlib/messages":63,"./zlib/zstream":65}],52:[function(e,r,n){"use strict";var t=e("./zlib/inflate");var a=e("./utils/common");var i=e("./utils/strings");var s=e("./zlib/constants");var f=e("./zlib/messages");var c=e("./zlib/zstream");var l=e("./zlib/gzheader");var d=Object.prototype.toString;function Inflate(e){if(!(this instanceof Inflate))return new Inflate(e);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},e||{});var r=this.options;if(r.raw&&r.windowBits>=0&&r.windowBits<16){r.windowBits=-r.windowBits;if(r.windowBits===0){r.windowBits=-15}}if(r.windowBits>=0&&r.windowBits<16&&!(e&&e.windowBits)){r.windowBits+=32}if(r.windowBits>15&&r.windowBits<48){if((r.windowBits&15)===0){r.windowBits|=15}}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new c;this.strm.avail_out=0;var n=t.inflateInit2(this.strm,r.windowBits);if(n!==s.Z_OK){throw new Error(f[n])}this.header=new l;t.inflateGetHeader(this.strm,this.header)}Inflate.prototype.push=function(e,r){var n=this.strm;var f=this.options.chunkSize;var c=this.options.dictionary;var l,u;var o,h,v;var p;var b=false;if(this.ended){return false}u=r===~~r?r:r===true?s.Z_FINISH:s.Z_NO_FLUSH;if(typeof e==="string"){n.input=i.binstring2buf(e)}else if(d.call(e)==="[object ArrayBuffer]"){n.input=new Uint8Array(e)}else{n.input=e}n.next_in=0;n.avail_in=n.input.length;do{if(n.avail_out===0){n.output=new a.Buf8(f);n.next_out=0;n.avail_out=f}l=t.inflate(n,s.Z_NO_FLUSH);if(l===s.Z_NEED_DICT&&c){if(typeof c==="string"){p=i.string2buf(c)}else if(d.call(c)==="[object ArrayBuffer]"){p=new Uint8Array(c)}else{p=c}l=t.inflateSetDictionary(this.strm,p)}if(l===s.Z_BUF_ERROR&&b===true){l=s.Z_OK;b=false}if(l!==s.Z_STREAM_END&&l!==s.Z_OK){this.onEnd(l);this.ended=true;return false}if(n.next_out){if(n.avail_out===0||l===s.Z_STREAM_END||n.avail_in===0&&(u===s.Z_FINISH||u===s.Z_SYNC_FLUSH)){if(this.options.to==="string"){o=i.utf8border(n.output,n.next_out);h=n.next_out-o;v=i.buf2string(n.output,o);n.next_out=h;n.avail_out=f-h;if(h){a.arraySet(n.output,n.output,o,h,0)}this.onData(v)}else{this.onData(a.shrinkBuf(n.output,n.next_out))}}}if(n.avail_in===0&&n.avail_out===0){b=true}}while((n.avail_in>0||n.avail_out===0)&&l!==s.Z_STREAM_END);if(l===s.Z_STREAM_END){u=s.Z_FINISH}if(u===s.Z_FINISH){l=t.inflateEnd(this.strm);this.onEnd(l);this.ended=true;return l===s.Z_OK}if(u===s.Z_SYNC_FLUSH){this.onEnd(s.Z_OK);n.avail_out=0;return true}return true};Inflate.prototype.onData=function(e){this.chunks.push(e)};Inflate.prototype.onEnd=function(e){if(e===s.Z_OK){if(this.options.to==="string"){this.result=this.chunks.join("")}else{this.result=a.flattenChunks(this.chunks)}}this.chunks=[];this.err=e;this.msg=this.strm.msg};function inflate(e,r){var n=new Inflate(r);n.push(e,true);if(n.err){throw n.msg||f[n.err]}return n.result}function inflateRaw(e,r){r=r||{};r.raw=true;return inflate(e,r)}n.Inflate=Inflate;n.inflate=inflate;n.inflateRaw=inflateRaw;n.ungzip=inflate},{"./utils/common":53,"./utils/strings":54,"./zlib/constants":56,"./zlib/gzheader":59,"./zlib/inflate":61,"./zlib/messages":63,"./zlib/zstream":65}],53:[function(e,r,n){"use strict";var t=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";function _has(e,r){return Object.prototype.hasOwnProperty.call(e,r)}n.assign=function(e){var r=Array.prototype.slice.call(arguments,1);while(r.length){var n=r.shift();if(!n){continue}if(typeof n!=="object"){throw new TypeError(n+"must be non-object")}for(var t in n){if(_has(n,t)){e[t]=n[t]}}}return e};n.shrinkBuf=function(e,r){if(e.length===r){return e}if(e.subarray){return e.subarray(0,r)}e.length=r;return e};var a={arraySet:function(e,r,n,t,a){if(r.subarray&&e.subarray){e.set(r.subarray(n,n+t),a);return}for(var i=0;i=252?6:f>=248?5:f>=240?4:f>=224?3:f>=192?2:1}s[254]=s[254]=1;n.string2buf=function(e){var r,n,a,i,s,f=e.length,c=0;for(i=0;i>>6;r[s++]=128|n&63}else if(n<65536){r[s++]=224|n>>>12;r[s++]=128|n>>>6&63;r[s++]=128|n&63}else{r[s++]=240|n>>>18;r[s++]=128|n>>>12&63;r[s++]=128|n>>>6&63;r[s++]=128|n&63}}return r};function buf2binstring(e,r){if(r<65537){if(e.subarray&&i||!e.subarray&&a){return String.fromCharCode.apply(null,t.shrinkBuf(e,r))}}var n="";for(var s=0;s4){c[t++]=65533;n+=i-1;continue}a&=i===2?31:i===3?15:7;while(i>1&&n1){c[t++]=65533;continue}if(a<65536){c[t++]=a}else{a-=65536;c[t++]=55296|a>>10&1023;c[t++]=56320|a&1023}}return buf2binstring(c,t)};n.utf8border=function(e,r){var n;r=r||e.length;if(r>e.length){r=e.length}n=r-1;while(n>=0&&(e[n]&192)===128){n--}if(n<0){return r}if(n===0){return r}return n+s[e[n]]>r?n:r}},{"./common":53}],55:[function(e,r,n){"use strict";function adler32(e,r,n,t){var a=e&65535|0,i=e>>>16&65535|0,s=0;while(n!==0){s=n>2e3?2e3:n;n-=s;do{a=a+r[t++]|0;i=i+a|0}while(--s);a%=65521;i%=65521}return a|i<<16|0}r.exports=adler32},{}],56:[function(e,r,n){"use strict";r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],57:[function(e,r,n){"use strict";function makeTable(){var e,r=[];for(var n=0;n<256;n++){e=n;for(var t=0;t<8;t++){e=e&1?3988292384^e>>>1:e>>>1}r[n]=e}return r}var t=makeTable();function crc32(e,r,n,a){var i=t,s=a+n;e^=-1;for(var f=a;f>>8^i[(e^r[f])&255]}return e^-1}r.exports=crc32},{}],58:[function(e,r,n){"use strict";var t=e("../utils/common");var a=e("./trees");var i=e("./adler32");var s=e("./crc32");var f=e("./messages");var c=0;var l=1;var d=3;var u=4;var o=5;var h=0;var v=1;var p=-2;var b=-3;var y=-5;var g=-1;var w=1;var m=2;var A=3;var E=4;var S=0;var k=2;var R=8;var M=9;var C=15;var D=8;var j=29;var q=256;var B=q+1+j;var _=30;var U=19;var K=2*B+1;var x=15;var I=3;var F=258;var O=F+I+1;var P=32;var T=42;var z=69;var N=73;var L=91;var W=103;var H=113;var G=666;var J=1;var Y=2;var Q=3;var Z=4;var X=3;function err(e,r){e.msg=f[r];return r}function rank(e){return(e<<1)-(e>4?9:0)}function zero(e){var r=e.length;while(--r>=0){e[r]=0}}function flush_pending(e){var r=e.state;var n=r.pending;if(n>e.avail_out){n=e.avail_out}if(n===0){return}t.arraySet(e.output,r.pending_buf,r.pending_out,n,e.next_out);e.next_out+=n;r.pending_out+=n;e.total_out+=n;e.avail_out-=n;r.pending-=n;if(r.pending===0){r.pending_out=0}}function flush_block_only(e,r){a._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,r);e.block_start=e.strstart;flush_pending(e.strm)}function put_byte(e,r){e.pending_buf[e.pending++]=r}function putShortMSB(e,r){e.pending_buf[e.pending++]=r>>>8&255;e.pending_buf[e.pending++]=r&255}function read_buf(e,r,n,a){var f=e.avail_in;if(f>a){f=a}if(f===0){return 0}e.avail_in-=f;t.arraySet(r,e.input,e.next_in,f,n);if(e.state.wrap===1){e.adler=i(e.adler,r,f,n)}else if(e.state.wrap===2){e.adler=s(e.adler,r,f,n)}e.next_in+=f;e.total_in+=f;return f}function longest_match(e,r){var n=e.max_chain_length;var t=e.strstart;var a;var i;var s=e.prev_length;var f=e.nice_match;var c=e.strstart>e.w_size-O?e.strstart-(e.w_size-O):0;var l=e.window;var d=e.w_mask;var u=e.prev;var o=e.strstart+F;var h=l[t+s-1];var v=l[t+s];if(e.prev_length>=e.good_match){n>>=2}if(f>e.lookahead){f=e.lookahead}do{a=r;if(l[a+s]!==v||l[a+s-1]!==h||l[a]!==l[t]||l[++a]!==l[t+1]){continue}t+=2;a++;do{}while(l[++t]===l[++a]&&l[++t]===l[++a]&&l[++t]===l[++a]&&l[++t]===l[++a]&&l[++t]===l[++a]&&l[++t]===l[++a]&&l[++t]===l[++a]&&l[++t]===l[++a]&&ts){e.match_start=r;s=i;if(i>=f){break}h=l[t+s-1];v=l[t+s]}}while((r=u[r&d])>c&&--n!==0);if(s<=e.lookahead){return s}return e.lookahead}function fill_window(e){var r=e.w_size;var n,a,i,s,f;do{s=e.window_size-e.lookahead-e.strstart;if(e.strstart>=r+(r-O)){t.arraySet(e.window,e.window,r,r,0);e.match_start-=r;e.strstart-=r;e.block_start-=r;a=e.hash_size;n=a;do{i=e.head[--n];e.head[n]=i>=r?i-r:0}while(--a);a=r;n=a;do{i=e.prev[--n];e.prev[n]=i>=r?i-r:0}while(--a);s+=r}if(e.strm.avail_in===0){break}a=read_buf(e.strm,e.window,e.strstart+e.lookahead,s);e.lookahead+=a;if(e.lookahead+e.insert>=I){f=e.strstart-e.insert;e.ins_h=e.window[f];e.ins_h=(e.ins_h<e.pending_buf_size-5){n=e.pending_buf_size-5}for(;;){if(e.lookahead<=1){fill_window(e);if(e.lookahead===0&&r===c){return J}if(e.lookahead===0){break}}e.strstart+=e.lookahead;e.lookahead=0;var t=e.block_start+n;if(e.strstart===0||e.strstart>=t){e.lookahead=e.strstart-t;e.strstart=t;flush_block_only(e,false);if(e.strm.avail_out===0){return J}}if(e.strstart-e.block_start>=e.w_size-O){flush_block_only(e,false);if(e.strm.avail_out===0){return J}}}e.insert=0;if(r===u){flush_block_only(e,true);if(e.strm.avail_out===0){return Q}return Z}if(e.strstart>e.block_start){flush_block_only(e,false);if(e.strm.avail_out===0){return J}}return J}function deflate_fast(e,r){var n;var t;for(;;){if(e.lookahead=I){e.ins_h=(e.ins_h<=I){t=a._tr_tally(e,e.strstart-e.match_start,e.match_length-I);e.lookahead-=e.match_length;if(e.match_length<=e.max_lazy_match&&e.lookahead>=I){e.match_length--;do{e.strstart++;e.ins_h=(e.ins_h<=I){e.ins_h=(e.ins_h<4096)){e.match_length=I-1}}if(e.prev_length>=I&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-I;t=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-I);e.lookahead-=e.prev_length-1;e.prev_length-=2;do{if(++e.strstart<=i){e.ins_h=(e.ins_h<=I&&e.strstart>0){i=e.strstart-1;t=f[i];if(t===f[++i]&&t===f[++i]&&t===f[++i]){s=e.strstart+F;do{}while(t===f[++i]&&t===f[++i]&&t===f[++i]&&t===f[++i]&&t===f[++i]&&t===f[++i]&&t===f[++i]&&t===f[++i]&&ie.lookahead){e.match_length=e.lookahead}}}if(e.match_length>=I){n=a._tr_tally(e,1,e.match_length-I);e.lookahead-=e.match_length;e.strstart+=e.match_length;e.match_length=0}else{n=a._tr_tally(e,0,e.window[e.strstart]);e.lookahead--;e.strstart++}if(n){flush_block_only(e,false);if(e.strm.avail_out===0){return J}}}e.insert=0;if(r===u){flush_block_only(e,true);if(e.strm.avail_out===0){return Q}return Z}if(e.last_lit){flush_block_only(e,false);if(e.strm.avail_out===0){return J}}return Y}function deflate_huff(e,r){var n;for(;;){if(e.lookahead===0){fill_window(e);if(e.lookahead===0){if(r===c){return J}break}}e.match_length=0;n=a._tr_tally(e,0,e.window[e.strstart]);e.lookahead--;e.strstart++;if(n){flush_block_only(e,false);if(e.strm.avail_out===0){return J}}}e.insert=0;if(r===u){flush_block_only(e,true);if(e.strm.avail_out===0){return Q}return Z}if(e.last_lit){flush_block_only(e,false);if(e.strm.avail_out===0){return J}}return Y}function Config(e,r,n,t,a){this.good_length=e;this.max_lazy=r;this.nice_length=n;this.max_chain=t;this.func=a}var V;V=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)];function lm_init(e){e.window_size=2*e.w_size;zero(e.head);e.max_lazy_match=V[e.level].max_lazy;e.good_match=V[e.level].good_length;e.nice_match=V[e.level].nice_length;e.max_chain_length=V[e.level].max_chain;e.strstart=0;e.block_start=0;e.lookahead=0;e.insert=0;e.match_length=e.prev_length=I-1;e.match_available=0;e.ins_h=0}function DeflateState(){this.strm=null;this.status=0;this.pending_buf=null;this.pending_buf_size=0;this.pending_out=0;this.pending=0;this.wrap=0;this.gzhead=null;this.gzindex=0;this.method=R;this.last_flush=-1;this.w_size=0;this.w_bits=0;this.w_mask=0;this.window=null;this.window_size=0;this.prev=null;this.head=null;this.ins_h=0;this.hash_size=0;this.hash_bits=0;this.hash_mask=0;this.hash_shift=0;this.block_start=0;this.match_length=0;this.prev_match=0;this.match_available=0;this.strstart=0;this.match_start=0;this.lookahead=0;this.prev_length=0;this.max_chain_length=0;this.max_lazy_match=0;this.level=0;this.strategy=0;this.good_match=0;this.nice_match=0;this.dyn_ltree=new t.Buf16(K*2);this.dyn_dtree=new t.Buf16((2*_+1)*2);this.bl_tree=new t.Buf16((2*U+1)*2);zero(this.dyn_ltree);zero(this.dyn_dtree);zero(this.bl_tree);this.l_desc=null;this.d_desc=null;this.bl_desc=null;this.bl_count=new t.Buf16(x+1);this.heap=new t.Buf16(2*B+1);zero(this.heap);this.heap_len=0;this.heap_max=0;this.depth=new t.Buf16(2*B+1);zero(this.depth);this.l_buf=0;this.lit_bufsize=0;this.last_lit=0;this.d_buf=0;this.opt_len=0;this.static_len=0;this.matches=0;this.insert=0;this.bi_buf=0;this.bi_valid=0}function deflateResetKeep(e){var r;if(!e||!e.state){return err(e,p)}e.total_in=e.total_out=0;e.data_type=k;r=e.state;r.pending=0;r.pending_out=0;if(r.wrap<0){r.wrap=-r.wrap}r.status=r.wrap?T:H;e.adler=r.wrap===2?0:1;r.last_flush=c;a._tr_init(r);return h}function deflateReset(e){var r=deflateResetKeep(e);if(r===h){lm_init(e.state)}return r}function deflateSetHeader(e,r){if(!e||!e.state){return p}if(e.state.wrap!==2){return p}e.state.gzhead=r;return h}function deflateInit2(e,r,n,a,i,s){if(!e){return p}var f=1;if(r===g){r=6}if(a<0){f=0;a=-a}else if(a>15){f=2;a-=16}if(i<1||i>M||n!==R||a<8||a>15||r<0||r>9||s<0||s>E){return err(e,p)}if(a===8){a=9}var c=new DeflateState;e.state=c;c.strm=e;c.wrap=f;c.gzhead=null;c.w_bits=a;c.w_size=1<o||r<0){return e?err(e,p):p}t=e.state;if(!e.output||!e.input&&e.avail_in!==0||t.status===G&&r!==u){return err(e,e.avail_out===0?y:p)}t.strm=e;n=t.last_flush;t.last_flush=r;if(t.status===T){if(t.wrap===2){e.adler=0;put_byte(t,31);put_byte(t,139);put_byte(t,8);if(!t.gzhead){put_byte(t,0);put_byte(t,0);put_byte(t,0);put_byte(t,0);put_byte(t,0);put_byte(t,t.level===9?2:t.strategy>=m||t.level<2?4:0);put_byte(t,X);t.status=H}else{put_byte(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(!t.gzhead.extra?0:4)+(!t.gzhead.name?0:8)+(!t.gzhead.comment?0:16));put_byte(t,t.gzhead.time&255);put_byte(t,t.gzhead.time>>8&255);put_byte(t,t.gzhead.time>>16&255);put_byte(t,t.gzhead.time>>24&255);put_byte(t,t.level===9?2:t.strategy>=m||t.level<2?4:0);put_byte(t,t.gzhead.os&255);if(t.gzhead.extra&&t.gzhead.extra.length){put_byte(t,t.gzhead.extra.length&255);put_byte(t,t.gzhead.extra.length>>8&255)}if(t.gzhead.hcrc){e.adler=s(e.adler,t.pending_buf,t.pending,0)}t.gzindex=0;t.status=z}}else{var b=R+(t.w_bits-8<<4)<<8;var g=-1;if(t.strategy>=m||t.level<2){g=0}else if(t.level<6){g=1}else if(t.level===6){g=2}else{g=3}b|=g<<6;if(t.strstart!==0){b|=P}b+=31-b%31;t.status=H;putShortMSB(t,b);if(t.strstart!==0){putShortMSB(t,e.adler>>>16);putShortMSB(t,e.adler&65535)}e.adler=1}}if(t.status===z){if(t.gzhead.extra){i=t.pending;while(t.gzindex<(t.gzhead.extra.length&65535)){if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>i){e.adler=s(e.adler,t.pending_buf,t.pending-i,i)}flush_pending(e);i=t.pending;if(t.pending===t.pending_buf_size){break}}put_byte(t,t.gzhead.extra[t.gzindex]&255);t.gzindex++}if(t.gzhead.hcrc&&t.pending>i){e.adler=s(e.adler,t.pending_buf,t.pending-i,i)}if(t.gzindex===t.gzhead.extra.length){t.gzindex=0;t.status=N}}else{t.status=N}}if(t.status===N){if(t.gzhead.name){i=t.pending;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>i){e.adler=s(e.adler,t.pending_buf,t.pending-i,i)}flush_pending(e);i=t.pending;if(t.pending===t.pending_buf_size){f=1;break}}if(t.gzindexi){e.adler=s(e.adler,t.pending_buf,t.pending-i,i)}if(f===0){t.gzindex=0;t.status=L}}else{t.status=L}}if(t.status===L){if(t.gzhead.comment){i=t.pending;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>i){e.adler=s(e.adler,t.pending_buf,t.pending-i,i)}flush_pending(e);i=t.pending;if(t.pending===t.pending_buf_size){f=1;break}}if(t.gzindexi){e.adler=s(e.adler,t.pending_buf,t.pending-i,i)}if(f===0){t.status=W}}else{t.status=W}}if(t.status===W){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size){flush_pending(e)}if(t.pending+2<=t.pending_buf_size){put_byte(t,e.adler&255);put_byte(t,e.adler>>8&255);e.adler=0;t.status=H}}else{t.status=H}}if(t.pending!==0){flush_pending(e);if(e.avail_out===0){t.last_flush=-1;return h}}else if(e.avail_in===0&&rank(r)<=rank(n)&&r!==u){return err(e,y)}if(t.status===G&&e.avail_in!==0){return err(e,y)}if(e.avail_in!==0||t.lookahead!==0||r!==c&&t.status!==G){var w=t.strategy===m?deflate_huff(t,r):t.strategy===A?deflate_rle(t,r):V[t.level].func(t,r);if(w===Q||w===Z){t.status=G}if(w===J||w===Q){if(e.avail_out===0){t.last_flush=-1}return h}if(w===Y){if(r===l){a._tr_align(t)}else if(r!==o){a._tr_stored_block(t,0,0,false);if(r===d){zero(t.head);if(t.lookahead===0){t.strstart=0;t.block_start=0;t.insert=0}}}flush_pending(e);if(e.avail_out===0){t.last_flush=-1;return h}}}if(r!==u){return h}if(t.wrap<=0){return v}if(t.wrap===2){put_byte(t,e.adler&255);put_byte(t,e.adler>>8&255);put_byte(t,e.adler>>16&255);put_byte(t,e.adler>>24&255);put_byte(t,e.total_in&255);put_byte(t,e.total_in>>8&255);put_byte(t,e.total_in>>16&255);put_byte(t,e.total_in>>24&255)}else{putShortMSB(t,e.adler>>>16);putShortMSB(t,e.adler&65535)}flush_pending(e);if(t.wrap>0){t.wrap=-t.wrap}return t.pending!==0?h:v}function deflateEnd(e){var r;if(!e||!e.state){return p}r=e.state.status;if(r!==T&&r!==z&&r!==N&&r!==L&&r!==W&&r!==H&&r!==G){return err(e,p)}e.state=null;return r===H?err(e,b):h}function deflateSetDictionary(e,r){var n=r.length;var a;var s,f;var c;var l;var d;var u;var o;if(!e||!e.state){return p}a=e.state;c=a.wrap;if(c===2||c===1&&a.status!==T||a.lookahead){return p}if(c===1){e.adler=i(e.adler,r,n,0)}a.wrap=0;if(n>=a.w_size){if(c===0){zero(a.head);a.strstart=0;a.block_start=0;a.insert=0}o=new t.Buf8(a.w_size);t.arraySet(o,r,n-a.w_size,a.w_size,0);r=o;n=a.w_size}l=e.avail_in;d=e.next_in;u=e.input;e.avail_in=n;e.next_in=0;e.input=r;fill_window(a);while(a.lookahead>=I){s=a.strstart;f=a.lookahead-(I-1);do{a.ins_h=(a.ins_h<>>24;p>>>=E;b-=E;E=A>>>16&255;if(E===0){D[f++]=A&65535}else if(E&16){S=A&65535;E&=15;if(E){if(b>>=E;b-=E}if(b<15){p+=C[i++]<>>24;p>>>=E;b-=E;E=A>>>16&255;if(E&16){k=A&65535;E&=15;if(bd){e.msg="invalid distance too far back";n.mode=t;break e}p>>>=E;b-=E;E=f-c;if(k>E){E=k-E;if(E>o){if(n.sane){e.msg="invalid distance too far back";n.mode=t;break e}}R=0;M=v;if(h===0){R+=u-E;if(E2){D[f++]=M[R++];D[f++]=M[R++];D[f++]=M[R++];S-=3}if(S){D[f++]=M[R++];if(S>1){D[f++]=M[R++]}}}else{R=f-k;do{D[f++]=D[R++];D[f++]=D[R++];D[f++]=D[R++];S-=3}while(S>2);if(S){D[f++]=D[R++];if(S>1){D[f++]=D[R++]}}}}else if((E&64)===0){A=g[(A&65535)+(p&(1<>3;i-=S;b-=S<<3;p&=(1<>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function InflateState(){this.mode=0;this.last=false;this.wrap=0;this.havedict=false;this.flags=0;this.dmax=0;this.check=0;this.total=0;this.head=null;this.wbits=0;this.wsize=0;this.whave=0;this.wnext=0;this.window=null;this.hold=0;this.bits=0;this.length=0;this.offset=0;this.extra=0;this.lencode=null;this.distcode=null;this.lenbits=0;this.distbits=0;this.ncode=0;this.nlen=0;this.ndist=0;this.have=0;this.next=null;this.lens=new t.Buf16(320);this.work=new t.Buf16(288);this.lendyn=null;this.distdyn=null;this.sane=0;this.back=0;this.was=0}function inflateResetKeep(e){var r;if(!e||!e.state){return y}r=e.state;e.total_in=e.total_out=r.total=0;e.msg="";if(r.wrap){e.adler=r.wrap&1}r.mode=E;r.last=0;r.havedict=0;r.dmax=32768;r.head=null;r.hold=0;r.bits=0;r.lencode=r.lendyn=new t.Buf32(ee);r.distcode=r.distdyn=new t.Buf32(re);r.sane=1;r.back=-1;return v}function inflateReset(e){var r;if(!e||!e.state){return y}r=e.state;r.wsize=0;r.whave=0;r.wnext=0;return inflateResetKeep(e)}function inflateReset2(e,r){var n;var t;if(!e||!e.state){return y}t=e.state;if(r<0){n=0;r=-r}else{n=(r>>4)+1;if(r<48){r&=15}}if(r&&(r<8||r>15)){return y}if(t.window!==null&&t.wbits!==r){t.window=null}t.wrap=n;t.wbits=r;return inflateReset(e)}function inflateInit2(e,r){var n;var t;if(!e){return y}t=new InflateState;e.state=t;t.window=null;n=inflateReset2(e,r);if(n!==v){e.state=null}return n}function inflateInit(e){return inflateInit2(e,te)}var ae=true;var ie,se;function fixedtables(e){if(ae){var r;ie=new t.Buf32(512);se=new t.Buf32(32);r=0;while(r<144){e.lens[r++]=8}while(r<256){e.lens[r++]=9}while(r<280){e.lens[r++]=7}while(r<288){e.lens[r++]=8}f(l,e.lens,0,288,ie,0,e.work,{bits:9});r=0;while(r<32){e.lens[r++]=5}f(d,e.lens,0,32,se,0,e.work,{bits:5});ae=false}e.lencode=ie;e.lenbits=9;e.distcode=se;e.distbits=5}function updatewindow(e,r,n,a){var i;var s=e.state;if(s.window===null){s.wsize=1<=s.wsize){t.arraySet(s.window,r,n-s.wsize,s.wsize,0);s.wnext=0;s.whave=s.wsize}else{i=s.wsize-s.wnext;if(i>a){i=a}t.arraySet(s.window,r,n-a,i,s.wnext);a-=i;if(a){t.arraySet(s.window,r,n-a,a,0);s.wnext=a;s.whave=s.wsize}else{s.wnext+=i;if(s.wnext===s.wsize){s.wnext=0}if(s.whave>>8&255;n.check=i(n.check,Ee,2,0);se=0;fe=0;n.mode=S;break}n.flags=0;if(n.head){n.head.done=false}if(!(n.wrap&1)||(((se&255)<<8)+(se>>8))%31){e.msg="incorrect header check";n.mode=X;break}if((se&15)!==A){e.msg="unknown compression method";n.mode=X;break}se>>>=4;fe-=4;me=(se&15)+8;if(n.wbits===0){n.wbits=me}else if(me>n.wbits){e.msg="invalid window size";n.mode=X;break}n.dmax=1<>8&1}if(n.flags&512){Ee[0]=se&255;Ee[1]=se>>>8&255;n.check=i(n.check,Ee,2,0)}se=0;fe=0;n.mode=k;case k:while(fe<32){if(ae===0){break e}ae--;se+=ee[ne++]<>>8&255;Ee[2]=se>>>16&255;Ee[3]=se>>>24&255;n.check=i(n.check,Ee,4,0)}se=0;fe=0;n.mode=R;case R:while(fe<16){if(ae===0){break e}ae--;se+=ee[ne++]<>8}if(n.flags&512){Ee[0]=se&255;Ee[1]=se>>>8&255;n.check=i(n.check,Ee,2,0)}se=0;fe=0;n.mode=M;case M:if(n.flags&1024){while(fe<16){if(ae===0){break e}ae--;se+=ee[ne++]<>>8&255;n.check=i(n.check,Ee,2,0)}se=0;fe=0}else if(n.head){n.head.extra=null}n.mode=C;case C:if(n.flags&1024){de=n.length;if(de>ae){de=ae}if(de){if(n.head){me=n.head.extra_len-n.length;if(!n.head.extra){n.head.extra=new Array(n.head.extra_len)}t.arraySet(n.head.extra,ee,ne,de,me)}if(n.flags&512){n.check=i(n.check,ee,de,ne)}ae-=de;ne+=de;n.length-=de}if(n.length){break e}}n.length=0;n.mode=D;case D:if(n.flags&2048){if(ae===0){break e}de=0;do{me=ee[ne+de++];if(n.head&&me&&n.length<65536){n.head.name+=String.fromCharCode(me)}}while(me&&de>9&1;n.head.done=true}e.adler=n.check=0;n.mode=U;break;case B:while(fe<32){if(ae===0){break e}ae--;se+=ee[ne++]<>>=fe&7;fe-=fe&7;n.mode=Y;break}while(fe<3){if(ae===0){break e}ae--;se+=ee[ne++]<>>=1;fe-=1;switch(se&3){case 0:n.mode=x;break;case 1:fixedtables(n);n.mode=z;if(r===h){se>>>=2;fe-=2;break e}break;case 2:n.mode=O;break;case 3:e.msg="invalid block type";n.mode=X}se>>>=2;fe-=2;break;case x:se>>>=fe&7;fe-=fe&7;while(fe<32){if(ae===0){break e}ae--;se+=ee[ne++]<>>16^65535)){e.msg="invalid stored block lengths";n.mode=X;break}n.length=se&65535;se=0;fe=0;n.mode=I;if(r===h){break e}case I:n.mode=F;case F:de=n.length;if(de){if(de>ae){de=ae}if(de>ie){de=ie}if(de===0){break e}t.arraySet(re,ee,ne,de,te);ae-=de;ne+=de;ie-=de;te+=de;n.length-=de;break}n.mode=U;break;case O:while(fe<14){if(ae===0){break e}ae--;se+=ee[ne++]<>>=5;fe-=5;n.ndist=(se&31)+1;se>>>=5;fe-=5;n.ncode=(se&15)+4;se>>>=4;fe-=4;if(n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols";n.mode=X;break}n.have=0;n.mode=P;case P:while(n.have>>=3;fe-=3}while(n.have<19){n.lens[Re[n.have++]]=0}n.lencode=n.lendyn;n.lenbits=7;Se={bits:n.lenbits};Ae=f(c,n.lens,0,19,n.lencode,0,n.work,Se);n.lenbits=Se.bits;if(Ae){e.msg="invalid code lengths set";n.mode=X;break}n.have=0;n.mode=T;case T:while(n.have>>24;pe=he>>>16&255;be=he&65535;if(ve<=fe){break}if(ae===0){break e}ae--;se+=ee[ne++]<>>=ve;fe-=ve;n.lens[n.have++]=be}else{if(be===16){ke=ve+2;while(fe>>=ve;fe-=ve;if(n.have===0){e.msg="invalid bit length repeat";n.mode=X;break}me=n.lens[n.have-1];de=3+(se&3);se>>>=2;fe-=2}else if(be===17){ke=ve+3;while(fe>>=ve;fe-=ve;me=0;de=3+(se&7);se>>>=3;fe-=3}else{ke=ve+7;while(fe>>=ve;fe-=ve;me=0;de=11+(se&127);se>>>=7;fe-=7}if(n.have+de>n.nlen+n.ndist){e.msg="invalid bit length repeat";n.mode=X;break}while(de--){n.lens[n.have++]=me}}}if(n.mode===X){break}if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block";n.mode=X;break}n.lenbits=9;Se={bits:n.lenbits};Ae=f(l,n.lens,0,n.nlen,n.lencode,0,n.work,Se);n.lenbits=Se.bits;if(Ae){e.msg="invalid literal/lengths set";n.mode=X;break}n.distbits=6;n.distcode=n.distdyn;Se={bits:n.distbits};Ae=f(d,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Se);n.distbits=Se.bits;if(Ae){e.msg="invalid distances set";n.mode=X;break}n.mode=z;if(r===h){break e}case z:n.mode=N;case N:if(ae>=6&&ie>=258){e.next_out=te;e.avail_out=ie;e.next_in=ne;e.avail_in=ae;n.hold=se;n.bits=fe;s(e,le);te=e.next_out;re=e.output;ie=e.avail_out;ne=e.next_in;ee=e.input;ae=e.avail_in;se=n.hold;fe=n.bits;if(n.mode===U){n.back=-1}break}n.back=0;for(;;){he=n.lencode[se&(1<>>24;pe=he>>>16&255;be=he&65535;if(ve<=fe){break}if(ae===0){break e}ae--;se+=ee[ne++]<>ye)];ve=he>>>24;pe=he>>>16&255;be=he&65535;if(ye+ve<=fe){break}if(ae===0){break e}ae--;se+=ee[ne++]<>>=ye;fe-=ye;n.back+=ye}se>>>=ve;fe-=ve;n.back+=ve;n.length=be;if(pe===0){n.mode=J;break}if(pe&32){n.back=-1;n.mode=U;break}if(pe&64){e.msg="invalid literal/length code";n.mode=X;break}n.extra=pe&15;n.mode=L;case L:if(n.extra){ke=n.extra;while(fe>>=n.extra;fe-=n.extra;n.back+=n.extra}n.was=n.length;n.mode=W;case W:for(;;){he=n.distcode[se&(1<>>24;pe=he>>>16&255;be=he&65535;if(ve<=fe){break}if(ae===0){break e}ae--;se+=ee[ne++]<>ye)];ve=he>>>24;pe=he>>>16&255;be=he&65535;if(ye+ve<=fe){break}if(ae===0){break e}ae--;se+=ee[ne++]<>>=ye;fe-=ye;n.back+=ye}se>>>=ve;fe-=ve;n.back+=ve;if(pe&64){e.msg="invalid distance code";n.mode=X;break}n.offset=be;n.extra=pe&15;n.mode=H;case H:if(n.extra){ke=n.extra;while(fe>>=n.extra;fe-=n.extra;n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back";n.mode=X;break}n.mode=G;case G:if(ie===0){break e}de=le-ie;if(n.offset>de){de=n.offset-de;if(de>n.whave){if(n.sane){e.msg="invalid distance too far back";n.mode=X;break}}if(de>n.wnext){de-=n.wnext;ue=n.wsize-de}else{ue=n.wnext-de}if(de>n.length){de=n.length}oe=n.window}else{oe=re;ue=te-n.offset;de=n.length}if(de>ie){de=ie}ie-=de;n.length-=de;do{re[te++]=oe[ue++]}while(--de);if(n.length===0){n.mode=N}break;case J:if(ie===0){break e}re[te++]=n.length;ie--;n.mode=N;break;case Y:if(n.wrap){while(fe<32){if(ae===0){break e}ae--;se|=ee[ne++]<=1;S--){if(O[S]!==0){break}}if(k>S){k=S}if(S===0){p[b++]=1<<24|64<<16|0;p[b++]=1<<24|64<<16|0;g.bits=1;return 0}for(E=1;E0&&(e===f||S!==1)){return-1}P[1]=0;for(m=1;mi||e===l&&D>s){return 1}for(;;){N=m-M;if(y[A]F){L=T[z+y[A]];W=x[I+y[A]]}else{L=32+64;W=0}q=1<>M)+B]=N<<24|L<<16|W|0}while(B!==0);q=1<>=1}if(q!==0){j&=q-1;j+=q}else{j=0}A++;if(--O[m]===0){if(m===S){break}m=r[n+y[A]]}if(m>k&&(j&U)!==_){if(M===0){M=k}K+=E;R=m-M;C=1<i||e===l&&D>s){return 1}_=j&U;p[_]=k<<24|R<<16|K-b|0}}if(j!==0){p[K+j]=m-M<<24|64<<16|0}g.bits=k;return 0}},{"../utils/common":53}],63:[function(e,r,n){"use strict";r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],64:[function(e,r,n){"use strict";var t=e("../utils/common");var a=4;var i=0;var s=1;var f=2;function zero(e){var r=e.length;while(--r>=0){e[r]=0}}var c=0;var l=1;var d=2;var u=3;var o=258;var h=29;var v=256;var p=v+1+h;var b=30;var y=19;var g=2*p+1;var w=15;var m=16;var A=7;var E=256;var S=16;var k=17;var R=18;var M=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];var C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];var D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];var j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];var q=512;var B=new Array((p+2)*2);zero(B);var _=new Array(b*2);zero(_);var U=new Array(q);zero(U);var K=new Array(o-u+1);zero(K);var x=new Array(h);zero(x);var I=new Array(b);zero(I);function StaticTreeDesc(e,r,n,t,a){this.static_tree=e;this.extra_bits=r;this.extra_base=n;this.elems=t;this.max_length=a;this.has_stree=e&&e.length}var F;var O;var P;function TreeDesc(e,r){this.dyn_tree=e;this.max_code=0;this.stat_desc=r}function d_code(e){return e<256?U[e]:U[256+(e>>>7)]}function put_short(e,r){e.pending_buf[e.pending++]=r&255;e.pending_buf[e.pending++]=r>>>8&255}function send_bits(e,r,n){if(e.bi_valid>m-n){e.bi_buf|=r<>m-e.bi_valid;e.bi_valid+=n-m}else{e.bi_buf|=r<>>=1;n<<=1}while(--r>0);return n>>>1}function bi_flush(e){if(e.bi_valid===16){put_short(e,e.bi_buf);e.bi_buf=0;e.bi_valid=0}else if(e.bi_valid>=8){e.pending_buf[e.pending++]=e.bi_buf&255;e.bi_buf>>=8;e.bi_valid-=8}}function gen_bitlen(e,r){var n=r.dyn_tree;var t=r.max_code;var a=r.stat_desc.static_tree;var i=r.stat_desc.has_stree;var s=r.stat_desc.extra_bits;var f=r.stat_desc.extra_base;var c=r.stat_desc.max_length;var l;var d,u;var o;var h;var v;var p=0;for(o=0;o<=w;o++){e.bl_count[o]=0}n[e.heap[e.heap_max]*2+1]=0;for(l=e.heap_max+1;lc){o=c;p++}n[d*2+1]=o;if(d>t){continue}e.bl_count[o]++;h=0;if(d>=f){h=s[d-f]}v=n[d*2];e.opt_len+=v*(o+h);if(i){e.static_len+=v*(a[d*2+1]+h)}}if(p===0){return}do{o=c-1;while(e.bl_count[o]===0){o--}e.bl_count[o]--;e.bl_count[o+1]+=2;e.bl_count[c]--;p-=2}while(p>0);for(o=c;o!==0;o--){d=e.bl_count[o];while(d!==0){u=e.heap[--l];if(u>t){continue}if(n[u*2+1]!==o){e.opt_len+=(o-n[u*2+1])*n[u*2];n[u*2+1]=o}d--}}}function gen_codes(e,r,n){var t=new Array(w+1);var a=0;var i;var s;for(i=1;i<=w;i++){t[i]=a=a+n[i-1]<<1}for(s=0;s<=r;s++){var f=e[s*2+1];if(f===0){continue}e[s*2]=bi_reverse(t[f]++,f)}}function tr_static_init(){var e;var r;var n;var t;var a;var i=new Array(w+1);n=0;for(t=0;t>=7;for(;t8){put_short(e,e.bi_buf)}else if(e.bi_valid>0){e.pending_buf[e.pending++]=e.bi_buf}e.bi_buf=0;e.bi_valid=0}function copy_block(e,r,n,a){bi_windup(e);if(a){put_short(e,n);put_short(e,~n)}t.arraySet(e.pending_buf,e.window,r,n,e.pending);e.pending+=n}function smaller(e,r,n,t){var a=r*2;var i=n*2;return e[a]>1;s>=1;s--){pqdownheap(e,n,s)}l=i;do{s=e.heap[1];e.heap[1]=e.heap[e.heap_len--];pqdownheap(e,n,1);f=e.heap[1];e.heap[--e.heap_max]=s;e.heap[--e.heap_max]=f;n[l*2]=n[s*2]+n[f*2];e.depth[l]=(e.depth[s]>=e.depth[f]?e.depth[s]:e.depth[f])+1;n[s*2+1]=n[f*2+1]=l;e.heap[1]=l++;pqdownheap(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1];gen_bitlen(e,r);gen_codes(n,c,e.bl_count)}function scan_tree(e,r,n){var t;var a=-1;var i;var s=r[0*2+1];var f=0;var c=7;var l=4;if(s===0){c=138;l=3}r[(n+1)*2+1]=65535;for(t=0;t<=n;t++){i=s;s=r[(t+1)*2+1];if(++f=3;r--){if(e.bl_tree[j[r]*2+1]!==0){break}}e.opt_len+=3*(r+1)+5+5+4;return r}function send_all_trees(e,r,n,t){var a;send_bits(e,r-257,5);send_bits(e,n-1,5);send_bits(e,t-4,4);for(a=0;a>>=1){if(r&1&&e.dyn_ltree[n*2]!==0){return i}}if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0){return s}for(n=32;n0){if(e.strm.data_type===f){e.strm.data_type=detect_data_type(e)}build_tree(e,e.l_desc);build_tree(e,e.d_desc);c=build_bl_tree(e);i=e.opt_len+3+7>>>3;s=e.static_len+3+7>>>3;if(s<=i){i=s}}else{i=s=n+5}if(n+4<=i&&r!==-1){_tr_stored_block(e,r,n,t)}else if(e.strategy===a||s===i){send_bits(e,(l<<1)+(t?1:0),3);compress_block(e,B,_)}else{send_bits(e,(d<<1)+(t?1:0),3);send_all_trees(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1);compress_block(e,e.dyn_ltree,e.dyn_dtree)}init_block(e);if(t){bi_windup(e)}}function _tr_tally(e,r,n){e.pending_buf[e.d_buf+e.last_lit*2]=r>>>8&255;e.pending_buf[e.d_buf+e.last_lit*2+1]=r&255;e.pending_buf[e.l_buf+e.last_lit]=n&255;e.last_lit++;if(r===0){e.dyn_ltree[n*2]++}else{e.matches++;r--;e.dyn_ltree[(K[n]+v+1)*2]++;e.dyn_dtree[d_code(r)*2]++}return e.last_lit===e.lit_bufsize-1}n._tr_init=_tr_init;n._tr_stored_block=_tr_stored_block;n._tr_flush_block=_tr_flush_block;n._tr_tally=_tr_tally;n._tr_align=_tr_align},{"../utils/common":53}],65:[function(e,r,n){"use strict";function ZStream(){this.input=null;this.next_in=0;this.avail_in=0;this.total_in=0;this.output=null;this.next_out=0;this.avail_out=0;this.total_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0}r.exports=ZStream},{}],66:[function(e,r,n){var t=r.exports={};var a;var i;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){a=setTimeout}else{a=defaultSetTimout}}catch(e){a=defaultSetTimout}try{if(typeof clearTimeout==="function"){i=clearTimeout}else{i=defaultClearTimeout}}catch(e){i=defaultClearTimeout}})();function runTimeout(e){if(a===setTimeout){return setTimeout(e,0)}if((a===defaultSetTimout||!a)&&setTimeout){a=setTimeout;return setTimeout(e,0)}try{return a(e,0)}catch(r){try{return a.call(null,e,0)}catch(r){return a.call(this,e,0)}}}function runClearTimeout(e){if(i===clearTimeout){return clearTimeout(e)}if((i===defaultClearTimeout||!i)&&clearTimeout){i=clearTimeout;return clearTimeout(e)}try{return i(e)}catch(r){try{return i.call(null,e)}catch(r){return i.call(this,e)}}}var s=[];var f=false;var c;var l=-1;function cleanUpNextTick(){if(!f||!c){return}f=false;if(c.length){s=c.concat(s)}else{l=-1}if(s.length){drainQueue()}}function drainQueue(){if(f){return}var e=runTimeout(cleanUpNextTick);f=true;var r=s.length;while(r){c=s;s=[];while(++l1){for(var n=1;n0){this._ensureByte();var n=8-this.bitOffset;if(e>=n){r<<=n;r|=t[n]&this.curByte;this.hasByte=false;this.bitOffset=0;e-=n}else{r<<=e;var a=n-e;r|=(this.curByte&t[e]<>a;this.bitOffset+=e;e=0}}return r};a.prototype.seek=function(e){var r=e%8;var n=(e-r)/8;this.bitOffset=r;this.stream.seek(n);this.hasByte=false};a.prototype.pi=function(){var e=new Uint8Array(6),r;for(r=0;r("00"+e.toString(16)).slice(-2)).join("")}r.exports=a},{}],68:[function(e,r,n){"use strict";r.exports=function(){var e=new Uint32Array([0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188]);var r=function CRC32(){var r=4294967295;this.getCRC=function(){return~r>>>0};this.updateCRC=function(n){r=r<<8^e[(r>>>24^n)&255]};this.updateCRCRun=function(n,t){while(t-- >0){r=r<<8^e[(r>>>24^n)&255]}}};return r}()},{}],69:[function(e,r,n){"use strict";var t=e("./bitreader");var a=e("./stream");var i=e("./crc32");var s=20;var f=258;var c=0;var l=1;var d=2;var u=6;var o=50;var h="314159265359";var v="177245385090";var p=function mtf(e,r){var n=e[r],t;for(t=r;t>0;t--){e[t]=e[t-1]}e[0]=n;return n};var b={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8};var y={};y[b.LAST_BLOCK]="Bad file checksum";y[b.NOT_BZIP_DATA]="Not bzip data";y[b.UNEXPECTED_INPUT_EOF]="Unexpected input EOF";y[b.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF";y[b.DATA_ERROR]="Data error";y[b.OUT_OF_MEMORY]="Out of memory";y[b.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var g=function _throw(e,r){var n=y[e]||"unknown error";if(r){n+=": "+r}var t=new TypeError(n);t.errorCode=e;throw t};var w=function Bunzip(e,r){this.writePos=this.writeCurrent=this.writeCount=0;this._start_bunzip(e,r)};w.prototype._init_block=function(){var e=this._get_next_block();if(!e){this.writeCount=-1;return false}this.blockCRC=new i;return true};w.prototype._start_bunzip=function(e,r){var n=new Uint8Array(4);if(e.read(n,0,4)!==4||String.fromCharCode(n[0],n[1],n[2])!=="BZh")g(b.NOT_BZIP_DATA,"bad magic");var a=n[3]-48;if(a<1||a>9)g(b.NOT_BZIP_DATA,"level out of range");this.reader=new t(e);this.dbufSize=1e5*a;this.nextoutput=0;this.outputStream=r;this.streamCRC=0};w.prototype._get_next_block=function(){var e,r,n;var t=this.reader;var a=t.pi();if(a===v){return false}if(a!==h)g(b.NOT_BZIP_DATA);this.targetBlockCRC=t.read(32)>>>0;this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0;if(t.read(1))g(b.OBSOLETE_INPUT);var i=t.read(24);if(i>this.dbufSize)g(b.DATA_ERROR,"initial position out of bounds");var y=t.read(16);var w=new Uint8Array(256),m=0;for(e=0;e<16;e++){if(y&1<<15-e){var A=e*16;n=t.read(16);for(r=0;r<16;r++)if(n&1<<15-r)w[m++]=A+r}}var E=t.read(3);if(Eu)g(b.DATA_ERROR);var S=t.read(15);if(S===0)g(b.DATA_ERROR);var k=new Uint8Array(256);for(e=0;e=E)g(b.DATA_ERROR);R[e]=p(k,r)}var M=m+2;var C=[],D;for(r=0;rs)g(b.DATA_ERROR);if(!t.read(1))break;if(!t.read(1))y++;else y--}j[e]=y}var B,_;B=_=j[0];for(e=1;e_)_=j[e];else if(j[e]=S){g(b.DATA_ERROR)}D=C[R[F++]]}e=D.minLen;r=t.read(e);for(;;e++){if(e>D.maxLen){g(b.DATA_ERROR)}if(r<=D.limit[e])break;r=r<<1|t.read(1)}r-=D.base[e];if(r<0||r>=f){g(b.DATA_ERROR)}var T=D.permute[r];if(T===c||T===l){if(!x){x=1;y=0}if(T===c)y+=x;else y+=2*x;x<<=1;continue}if(x){x=0;if(I+y>this.dbufSize){g(b.DATA_ERROR)}O=w[k[0]];K[O]+=y;while(y--)P[I++]=O}if(T>m)break;if(I>=this.dbufSize){g(b.DATA_ERROR)}e=T-1;O=p(k,e);O=w[O];K[O]++;P[I++]=O}if(i<0||i>=I){g(b.DATA_ERROR)}r=0;for(e=0;e<256;e++){n=r+K[e];K[e]=r;r=n}for(e=0;e>=8;L=-1}this.writePos=z;this.writeCurrent=N;this.writeCount=I;this.writeRun=L;return true};w.prototype._read_bunzip=function(e,r){var n,t,a;if(this.writeCount<0){return 0}var i=0;var s=this.dbuf,f=this.writePos,c=this.writeCurrent;var l=this.writeCount,d=this.outputsize;var u=this.writeRun;while(l){l--;t=c;f=s[f];c=f&255;f>>=8;if(u++===3){n=c;a=t;c=-1}else{n=1;a=c}this.blockCRC.updateCRCRun(a,n);while(n--){this.outputStream.writeByte(a);this.nextoutput++}if(c!=t)u=0}this.writeCount=l;if(this.blockCRC.getCRC()!==this.targetBlockCRC){g(b.DATA_ERROR,"Bad block CRC "+"(got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")")}return this.nextoutput};var m=function coerceInputStream(e){if("readByte"in e){return e}var r=new a;r.pos=0;r.readByte=function(){return e[this.pos++]};r.seek=function(e){this.pos=e};r.eof=function(){return this.pos>=e.length};return r};var A=function coerceOutputStream(e){var r=new a;var n=true;if(e){if(typeof e==="number"){r.buffer=new Uint8Array(e);n=false}else if("writeByte"in e){return e}else{r.buffer=e;n=false}}else{r.buffer=new Uint8Array(16384)}r.pos=0;r.writeByte=function(e){if(n&&this.pos>=this.buffer.length){var r=new Uint8Array(this.buffer.length*2);r.set(this.buffer);this.buffer=r}this.buffer[this.pos++]=e};r.getBuffer=function(){if(this.pos!==this.buffer.length){if(!n)throw new TypeError("outputsize does not match decoded input");var e=new Uint8Array(this.pos);e.set(this.buffer.subarray(0,this.pos));this.buffer=e}return this.buffer};r._coerced=true;return r};w.Err=b;w.decode=function(e,r,n){var t=m(e);var a=A(r);var i=new w(t,a);while(true){if("eof"in t&&t.eof())break;if(i._init_block()){i._read_bunzip()}else{var s=i.reader.read(32)>>>0;if(s!==i.streamCRC){g(b.DATA_ERROR,"Bad stream CRC "+"(got "+i.streamCRC.toString(16)+" expected "+s.toString(16)+")")}if(n&&"eof"in t&&!t.eof()){i._start_bunzip(t,a)}else break}}if("getBuffer"in a)return a.getBuffer()};w.decodeBlock=function(e,r,n){var t=m(e);var a=A(n);var s=new w(t,a);s.reader.seek(r);var f=s._get_next_block();if(f){s.blockCRC=new i;s.writeCopies=0;s._read_bunzip()}if("getBuffer"in a)return a.getBuffer()};w.table=function(e,r,n){var t=new a;t.delegate=m(e);t.pos=0;t.readByte=function(){this.pos++;return this.delegate.readByte()};if(t.delegate.eof){t.eof=t.delegate.eof.bind(t.delegate)}var i=new a;i.pos=0;i.writeByte=function(){this.pos++};var s=new w(t,i);var f=s.dbufSize;while(true){if("eof"in t&&t.eof())break;var c=t.pos*8+s.reader.bitOffset;if(s.reader.hasByte){c-=8}if(s._init_block()){var l=i.pos;s._read_bunzip();r(c,i.pos-l)}else{var d=s.reader.read(32);if(n&&"eof"in t&&!t.eof()){s._start_bunzip(t,i);console.assert(s.dbufSize===f,"shouldn't change block size within multistream file")}else break}}};w.Stream=a;r.exports=w},{"./bitreader":67,"./crc32":68,"./stream":70}],70:[function(e,r,n){"use strict";var t=function Stream(){};t.prototype.readByte=function(){throw new Error("abstract method readByte() not implemented")};t.prototype.read=function(e,r,n){var t=0;while(t57343){a.push(i)}else if(56320<=i&&i<=57343){a.push(65533)}else if(55296<=i&&i<=56319){if(t===n-1){a.push(65533)}else{var s=e.charCodeAt(t+1);if(56320<=s&&s<=57343){var f=i&1023;var c=s&1023;a.push(65536+(f<<10)+c);t+=1}else{a.push(65533)}}}t+=1}return a}function codePointsToString(e){var r="";for(var n=0;n>10)+55296,(t&1023)+56320)}}return r}var t=-1;function Stream(e){this.tokens=[].slice.call(e)}Stream.prototype={endOfStream:function(){return!this.tokens.length},read:function(){if(!this.tokens.length)return t;return this.tokens.shift()},prepend:function(e){if(Array.isArray(e)){var r=e;while(r.length)this.tokens.unshift(r.pop())}else{this.tokens.unshift(e)}},push:function(e){if(Array.isArray(e)){var r=e;while(r.length)this.tokens.push(r.shift())}else{this.tokens.push(e)}}};var a=-1;function decoderError(e,r){if(e)throw TypeError("Decoder error");return r||65533}var i="utf-8";function TextDecoder(e,r){if(!(this instanceof TextDecoder)){return new TextDecoder(e,r)}e=e!==undefined?String(e).toLowerCase():i;if(e!==i){throw new Error("Encoding not supported. Only utf-8 is supported")}r=ToDictionary(r);this._streaming=false;this._BOMseen=false;this._decoder=null;this._fatal=Boolean(r["fatal"]);this._ignoreBOM=Boolean(r["ignoreBOM"]);Object.defineProperty(this,"encoding",{value:"utf-8"});Object.defineProperty(this,"fatal",{value:this._fatal});Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}TextDecoder.prototype={decode:function decode(e,r){var n;if(typeof e==="object"&&e instanceof ArrayBuffer){n=new Uint8Array(e)}else if(typeof e==="object"&&"buffer"in e&&e.buffer instanceof ArrayBuffer){n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}else{n=new Uint8Array(0)}r=ToDictionary(r);if(!this._streaming){this._decoder=new UTF8Decoder({fatal:this._fatal});this._BOMseen=false}this._streaming=Boolean(r["stream"]);var t=new Stream(n);var i=[];var s;while(!t.endOfStream()){s=this._decoder.handler(t,t.read());if(s===a)break;if(s===null)continue;if(Array.isArray(s))i.push.apply(i,s);else i.push(s)}if(!this._streaming){do{s=this._decoder.handler(t,t.read());if(s===a)break;if(s===null)continue;if(Array.isArray(s))i.push.apply(i,s);else i.push(s)}while(!t.endOfStream());this._decoder=null}if(i.length){if(["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen){if(i[0]===65279){this._BOMseen=true;i.shift()}else{this._BOMseen=true}}}return codePointsToString(i)}};function TextEncoder(e,r){if(!(this instanceof TextEncoder))return new TextEncoder(e,r);e=e!==undefined?String(e).toLowerCase():i;if(e!==i){throw new Error("Encoding not supported. Only utf-8 is supported")}r=ToDictionary(r);this._streaming=false;this._encoder=null;this._options={fatal:Boolean(r["fatal"])};Object.defineProperty(this,"encoding",{value:"utf-8"})}TextEncoder.prototype={encode:function encode(e,r){e=e?String(e):"";r=ToDictionary(r);if(!this._streaming)this._encoder=new UTF8Encoder(this._options);this._streaming=Boolean(r["stream"]);var n=[];var t=new Stream(stringToCodePoints(e));var i;while(!t.endOfStream()){i=this._encoder.handler(t,t.read());if(i===a)break;if(Array.isArray(i))n.push.apply(n,i);else n.push(i)}if(!this._streaming){while(true){i=this._encoder.handler(t,t.read());if(i===a)break;if(Array.isArray(i))n.push.apply(n,i);else n.push(i)}this._encoder=null}return new Uint8Array(n)}};function UTF8Decoder(e){var r=e.fatal;var n=0,i=0,s=0,f=128,c=191;this.handler=function(e,l){if(l===t&&s!==0){s=0;return decoderError(r)}if(l===t)return a;if(s===0){if(inRange(l,0,127)){return l}if(inRange(l,194,223)){s=1;n=l-192}else if(inRange(l,224,239)){if(l===224)f=160;if(l===237)c=159;s=2;n=l-224}else if(inRange(l,240,244)){if(l===240)f=144;if(l===244)c=143;s=3;n=l-240}else{return decoderError(r)}n=n<<6*s;return null}if(!inRange(l,f,c)){n=s=i=0;f=128;c=191;e.prepend(l);return decoderError(r)}f=128;c=191;i+=1;n+=l-128<<6*(s-i);if(i!==s)return null;var d=n;n=s=i=0;return d}}function UTF8Encoder(e){var r=e.fatal;this.handler=function(e,r){if(r===t)return a;if(inRange(r,0,127))return r;var n,i;if(inRange(r,128,2047)){n=1;i=192}else if(inRange(r,2048,65535)){n=2;i=224}else if(inRange(r,65536,1114111)){n=3;i=240}var s=[(r>>6*n)+i];while(n>0){var f=r>>6*(n-1);s.push(128|f&63);n-=1}return s}}n.TextEncoder=TextEncoder;n.TextDecoder=TextDecoder},{}],72:[function(e,r,n){(function(r){"use strict";var n=function(e){var r,n=new Float64Array(16);if(e)for(r=0;r>>8)-1}function crypto_verify_32(e,r,n,t){return vn(e,r,n,t,32)}function set25519(e,r){var n;for(n=0;n<16;n++)e[n]=r[n]|0}function car25519(e){var r,n,t=1;for(r=0;r<16;r++){n=e[r]+t+65535;t=Math.floor(n/65536);e[r]=n-t*65536}e[0]+=t-1+37*(t-1)}function sel25519(e,r,n){var t,a=~(n-1);for(var i=0;i<16;i++){t=a&(e[i]^r[i]);e[i]^=t;r[i]^=t}}function pack25519(e,r){var t,a,i;var s=n(),f=n();for(t=0;t<16;t++)f[t]=r[t];car25519(f);car25519(f);car25519(f);for(a=0;a<2;a++){s[0]=f[0]-65517;for(t=1;t<15;t++){s[t]=f[t]-65535-(s[t-1]>>16&1);s[t-1]&=65535}s[15]=f[15]-32767-(s[14]>>16&1);i=s[15]>>16&1;s[14]&=65535;sel25519(f,s,1-i)}for(t=0;t<16;t++){e[2*t]=f[t]&255;e[2*t+1]=f[t]>>8}}function neq25519(e,r){var n=new Uint8Array(32),t=new Uint8Array(32);pack25519(n,e);pack25519(t,r);return crypto_verify_32(n,0,t,0)}function par25519(e){var r=new Uint8Array(32);pack25519(r,e);return r[0]&1}function unpack25519(e,r){var n;for(n=0;n<16;n++)e[n]=r[2*n]+(r[2*n+1]<<8);e[15]&=32767}function A(e,r,n){for(var t=0;t<16;t++)e[t]=r[t]+n[t]}function Z(e,r,n){for(var t=0;t<16;t++)e[t]=r[t]-n[t]}function M(e,r,n){var t,a,i=0,s=0,f=0,c=0,l=0,d=0,u=0,o=0,h=0,v=0,p=0,b=0,y=0,g=0,w=0,m=0,A=0,E=0,S=0,k=0,R=0,M=0,C=0,D=0,j=0,q=0,B=0,_=0,U=0,K=0,x=0,I=n[0],F=n[1],O=n[2],P=n[3],T=n[4],z=n[5],N=n[6],L=n[7],W=n[8],H=n[9],G=n[10],J=n[11],Y=n[12],Q=n[13],Z=n[14],X=n[15];t=r[0];i+=t*I;s+=t*F;f+=t*O;c+=t*P;l+=t*T;d+=t*z;u+=t*N;o+=t*L;h+=t*W;v+=t*H;p+=t*G;b+=t*J;y+=t*Y;g+=t*Q;w+=t*Z;m+=t*X;t=r[1];s+=t*I;f+=t*F;c+=t*O;l+=t*P;d+=t*T;u+=t*z;o+=t*N;h+=t*L;v+=t*W;p+=t*H;b+=t*G;y+=t*J;g+=t*Y;w+=t*Q;m+=t*Z;A+=t*X;t=r[2];f+=t*I;c+=t*F;l+=t*O;d+=t*P;u+=t*T;o+=t*z;h+=t*N;v+=t*L;p+=t*W;b+=t*H;y+=t*G;g+=t*J;w+=t*Y;m+=t*Q;A+=t*Z;E+=t*X;t=r[3];c+=t*I;l+=t*F;d+=t*O;u+=t*P;o+=t*T;h+=t*z;v+=t*N;p+=t*L;b+=t*W;y+=t*H;g+=t*G;w+=t*J;m+=t*Y;A+=t*Q;E+=t*Z;S+=t*X;t=r[4];l+=t*I;d+=t*F;u+=t*O;o+=t*P;h+=t*T;v+=t*z;p+=t*N;b+=t*L;y+=t*W;g+=t*H;w+=t*G;m+=t*J;A+=t*Y;E+=t*Q;S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+=t*z;k+=t*N;R+=t*L;M+=t*W;C+=t*H;D+=t*G;j+=t*J;q+=t*Y;B+=t*Q;_+=t*Z;U+=t*X;t=r[14];w+=t*I;m+=t*F;A+=t*O;E+=t*P;S+=t*T;k+=t*z;R+=t*N;M+=t*L;C+=t*W;D+=t*H;j+=t*G;q+=t*J;B+=t*Y;_+=t*Q;U+=t*Z;K+=t*X;t=r[15];m+=t*I;A+=t*F;E+=t*O;S+=t*P;k+=t*T;R+=t*z;M+=t*N;C+=t*L;D+=t*W;j+=t*H;q+=t*G;B+=t*J;_+=t*Y;U+=t*Q;K+=t*Z;x+=t*X;i+=38*A;s+=38*E;f+=38*S;c+=38*k;l+=38*R;d+=38*M;u+=38*C;o+=38*D;h+=38*j;v+=38*q;p+=38*B;b+=38*_;y+=38*U;g+=38*K;w+=38*x;a=1;t=i+a+65535;a=Math.floor(t/65536);i=t-a*65536;t=s+a+65535;a=Math.floor(t/65536);s=t-a*65536;t=f+a+65535;a=Math.floor(t/65536);f=t-a*65536;t=c+a+65535;a=Math.floor(t/65536);c=t-a*65536;t=l+a+65535;a=Math.floor(t/65536);l=t-a*65536;t=d+a+65535;a=Math.floor(t/65536);d=t-a*65536;t=u+a+65535;a=Math.floor(t/65536);u=t-a*65536;t=o+a+65535;a=Math.floor(t/65536);o=t-a*65536;t=h+a+65535;a=Math.floor(t/65536);h=t-a*65536;t=v+a+65535;a=Math.floor(t/65536);v=t-a*65536;t=p+a+65535;a=Math.floor(t/65536);p=t-a*65536;t=b+a+65535;a=Math.floor(t/65536);b=t-a*65536;t=y+a+65535;a=Math.floor(t/65536);y=t-a*65536;t=g+a+65535;a=Math.floor(t/65536);g=t-a*65536;t=w+a+65535;a=Math.floor(t/65536);w=t-a*65536;t=m+a+65535;a=Math.floor(t/65536);m=t-a*65536;i+=a-1+37*(a-1);a=1;t=i+a+65535;a=Math.floor(t/65536);i=t-a*65536;t=s+a+65535;a=Math.floor(t/65536);s=t-a*65536;t=f+a+65535;a=Math.floor(t/65536);f=t-a*65536;t=c+a+65535;a=Math.floor(t/65536);c=t-a*65536;t=l+a+65535;a=Math.floor(t/65536);l=t-a*65536;t=d+a+65535;a=Math.floor(t/65536);d=t-a*65536;t=u+a+65535;a=Math.floor(t/65536);u=t-a*65536;t=o+a+65535;a=Math.floor(t/65536);o=t-a*65536;t=h+a+65535;a=Math.floor(t/65536);h=t-a*65536;t=v+a+65535;a=Math.floor(t/65536);v=t-a*65536;t=p+a+65535;a=Math.floor(t/65536);p=t-a*65536;t=b+a+65535;a=Math.floor(t/65536);b=t-a*65536;t=y+a+65535;a=Math.floor(t/65536);y=t-a*65536;t=g+a+65535;a=Math.floor(t/65536);g=t-a*65536;t=w+a+65535;a=Math.floor(t/65536);w=t-a*65536;t=m+a+65535;a=Math.floor(t/65536);m=t-a*65536;i+=a-1+37*(a-1);e[0]=i;e[1]=s;e[2]=f;e[3]=c;e[4]=l;e[5]=d;e[6]=u;e[7]=o;e[8]=h;e[9]=v;e[10]=p;e[11]=b;e[12]=y;e[13]=g;e[14]=w;e[15]=m}function S(e,r){M(e,r,r)}function inv25519(e,r){var t=n();var a;for(a=0;a<16;a++)t[a]=r[a];for(a=253;a>=0;a--){S(t,t);if(a!==2&&a!==4)M(t,t,r)}for(a=0;a<16;a++)e[a]=t[a]}function pow2523(e,r){var t=n();var a;for(a=0;a<16;a++)t[a]=r[a];for(a=250;a>=0;a--){S(t,t);if(a!==1)M(t,t,r)}for(a=0;a<16;a++)e[a]=t[a]}function crypto_scalarmult(e,r,t){var a=new Uint8Array(32);var i=new Float64Array(80),s,c;var l=n(),d=n(),u=n(),o=n(),h=n(),v=n();for(c=0;c<31;c++)a[c]=r[c];a[31]=r[31]&127|64;a[0]&=248;unpack25519(i,t);for(c=0;c<16;c++){d[c]=i[c];o[c]=l[c]=u[c]=0}l[0]=o[0]=1;for(c=254;c>=0;--c){s=a[c>>>3]>>>(c&7)&1;sel25519(l,d,s);sel25519(u,o,s);A(h,l,u);Z(l,l,u);A(u,d,o);Z(d,d,o);S(o,h);S(v,l);M(l,u,l);M(u,d,h);A(h,l,u);Z(l,l,u);S(d,l);Z(u,o,v);M(l,u,f);A(l,l,o);M(u,u,l);M(l,o,v);M(o,d,i);S(d,h);sel25519(l,d,s);sel25519(u,o,s)}for(c=0;c<16;c++){i[c+16]=l[c];i[c+32]=u[c];i[c+48]=d[c];i[c+64]=o[c]}var p=i.subarray(32);var b=i.subarray(16);inv25519(p,p);M(b,b,p);pack25519(e,b);return 0}function crypto_scalarmult_base(e,r){return crypto_scalarmult(e,r,a)}function crypto_box_keypair(e,r){t(r,32);return crypto_scalarmult_base(e,r)}function add(e,r){var t=n(),a=n(),i=n(),s=n(),f=n(),c=n(),d=n(),u=n(),o=n();Z(t,e[1],e[0]);Z(o,r[1],r[0]);M(t,t,o);A(a,e[0],e[1]);A(o,r[0],r[1]);M(a,a,o);M(i,e[3],r[3]);M(i,i,l);M(s,e[2],r[2]);A(s,s,s);Z(f,a,t);Z(c,s,i);A(d,s,i);A(u,a,t);M(e[0],f,c);M(e[1],u,d);M(e[2],d,c);M(e[3],f,u)}function cswap(e,r,n){var t;for(t=0;t<4;t++){sel25519(e[t],r[t],n)}}function pack(e,r){var t=n(),a=n(),i=n();inv25519(i,r[2]);M(t,r[0],i);M(a,r[1],i);pack25519(e,a);e[31]^=par25519(t)<<7}function scalarmult(e,r,n){var t,a;set25519(e[0],i);set25519(e[1],s);set25519(e[2],s);set25519(e[3],i);for(a=255;a>=0;--a){t=n[a/8|0]>>(a&7)&1;cswap(e,r,t);add(r,e);add(e,e);cswap(e,r,t)}}function scalarbase(e,r){var t=[n(),n(),n(),n()];set25519(t[0],d);set25519(t[1],u);set25519(t[2],s);M(t[3],d,u);scalarmult(e,t,r)}function crypto_sign_keypair(e,a,i){var s;var f=[n(),n(),n(),n()];var c;if(!i)t(a,32);s=r.hash(a.subarray(0,32));s[0]&=248;s[31]&=127;s[31]|=64;scalarbase(f,s);pack(e,f);for(c=0;c<32;c++)a[c+32]=e[c];return 0}var h=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function modL(e,r){var n,t,a,i;for(t=63;t>=32;--t){n=0;for(a=t-32,i=t-12;a>8;r[a]-=n*256}r[a]+=n;r[t]=0}n=0;for(a=0;a<32;a++){r[a]+=n-(r[31]>>4)*h[a];n=r[a]>>8;r[a]&=255}for(a=0;a<32;a++)r[a]-=n*h[a];for(t=0;t<32;t++){r[t+1]+=r[t]>>8;e[t]=r[t]&255}}function reduce(e){var r=new Float64Array(64),n;for(n=0;n<64;n++)r[n]=e[n];for(n=0;n<64;n++)e[n]=0;modL(e,r)}function crypto_sign(e,t,a,i){var s,f,c;var l,d,u=new Float64Array(64);var o=[n(),n(),n(),n()];s=r.hash(i.subarray(0,32));s[0]&=248;s[31]&=127;s[31]|=64;var h=a+64;for(l=0;l>7)Z(e[0],i,e[0]);M(e[3],e[0],e[1]);return 0}function crypto_sign_open(e,t,a,i){var s,f;var c=new Uint8Array(32),l;var d=[n(),n(),n(),n()],u=[n(),n(),n(),n()];f=-1;if(a<64)return-1;if(unpackneg(u,i))return-1;for(s=0;s=0};r.sign.keyPair=function(){var e=new Uint8Array(w);var r=new Uint8Array(m);crypto_sign_keypair(e,r);return{publicKey:e,secretKey:r}};r.sign.keyPair.fromSecretKey=function(e){checkArrayTypes(e);if(e.length!==m)throw new Error("bad secret key size");var r=new Uint8Array(w);for(var n=0;n{r.enqueue(n);e.pause()});e.on("end",()=>r.close());e.on("error",e=>r.error(e))},pull(){e.resume()},cancel(r){e.pause();if(e.cancel){return e.cancel(r)}}})};class NodeReadable extends s{constructor(e,r){super(r);this._webStream=e;this._reader=i.default.getReader(e);this._reading=false;this._doneReadingPromise=Promise.resolve();this._cancelling=false}_read(e){if(this._reading||this._cancelling){return}this._reading=true;const r=async()=>{try{while(true){var e=await this._reader.read();const r=e.done,n=e.value;if(r){this.push(null);break}if(!this.push(n)||this._cancelling){this._reading=false;break}}}catch(e){this.emit("error",e)}};this._doneReadingPromise=r()}async cancel(e){this._cancelling=true;await this._doneReadingPromise;this._reader.releaseLock();return this._webStream.cancel(e)}}n.webToNode=c=function webToNode(e){return new NodeReadable(e)}}n.nodeToWeb=f;n.webToNode=c},{"./streams":75,"./util":76,stream:"stream"}],74:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.externalBuffer=n.Reader=undefined;var t=e("./streams");var a=_interopRequireDefault(t);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const i=new WeakSet;const s=Symbol("externalBuffer");function Reader(e){this.stream=e;if(e[s]){this[s]=e[s].slice()}let r=a.default.isStream(e);if(r==="node"){e=a.default.nodeToWeb(e)}if(r){const r=e.getReader();this._read=r.read.bind(r);this._releaseLock=(()=>{r.closed.catch(function(){});r.releaseLock()});return}let n=false;this._read=(async()=>{if(n||i.has(e)){return{value:undefined,done:true}}n=true;return{value:e,done:false}});this._releaseLock=(()=>{if(n){try{i.add(e)}catch(e){}}})}Reader.prototype.read=async function(){if(this[s]&&this[s].length){const e=this[s].shift();return{done:false,value:e}}return this._read()};Reader.prototype.releaseLock=function(){if(this[s]){this.stream[s]=this[s]}this._releaseLock()};Reader.prototype.readLine=async function(){let e=[];let r;while(!r){var n=await this.read();let t=n.done,i=n.value;i+="";if(t){if(e.length)return a.default.concat(e);return}const s=i.indexOf("\n")+1;if(s){r=a.default.concat(e.concat(i.substr(0,s)));e=[]}if(s!==i.length){e.push(i.substr(s))}}this.unshift(...e);return r};Reader.prototype.readByte=async function(){var e=await this.read();const r=e.done,n=e.value;if(r)return;const t=n[0];this.unshift(a.default.slice(n,1));return t};Reader.prototype.readBytes=async function(e){const r=[];let n=0;while(true){var t=await this.read();const i=t.done,s=t.value;if(i){if(r.length)return a.default.concat(r);return}r.push(s);n+=s.length;if(n>=e){const n=a.default.concat(r);this.unshift(a.default.slice(n,e));return a.default.slice(n,0,e)}}};Reader.prototype.peekBytes=async function(e){const r=await this.readBytes(e);this.unshift(r);return r};Reader.prototype.unshift=function(...e){if(!this[s]){this[s]=[]}this[s].unshift(...e.filter(e=>e&&e.length))};Reader.prototype.readToEnd=async function(e=a.default.concat){const r=[];while(true){var n=await this.read();const e=n.done,t=n.value;if(e)break;r.push(t)}return e(r)};n.Reader=Reader;n.externalBuffer=s},{"./streams":75}],75:[function(e,r,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("./util");var a=e("./node-conversions");var i=e("./reader");const s=t.isNode&&e("buffer").Buffer;function toStream(e){let r=(0,t.isStream)(e);if(r==="node"){return(0,a.nodeToWeb)(e)}else if(r){return e}return new ReadableStream({start(r){r.enqueue(e);r.close()}})}function concat(e){if(e.some(t.isStream)){return concatStream(e)}if(typeof e[0]==="string"){return e.join("")}if(s&&s.isBuffer(e[0])){return s.concat(e)}return(0,t.concatUint8Array)(e)}function concatStream(e){e=e.map(toStream);const r=transformWithCancel(async function(e){await Promise.all(t.map(r=>cancel(r,e)))});let n=Promise.resolve();const t=e.map((t,a)=>transformPair(t,(t,i)=>{n=n.then(()=>pipe(t,r.writable,{preventClose:a!==e.length-1}));return n}));return r.readable}function getReader(e){return new i.Reader(e)}function getWriter(e){const r=e.getWriter();const n=r.releaseLock;r.releaseLock=(()=>{r.closed.catch(function(){});n.call(r)});return r}async function pipe(e,r,n){e=toStream(e);try{if(e[i.externalBuffer]){const n=getWriter(r);for(let r=0;r{n=e});n=null}else{r=false}},close:t.close.bind(t),abort:t.error.bind(t)})}}function transform(e,r=(()=>undefined),n=(()=>undefined)){if((0,t.isStream)(e)){return transformRaw(e,{async transform(e,n){try{const t=await r(e);if(t!==undefined)n.enqueue(t)}catch(e){n.error(e)}},async flush(e){try{const r=await n();if(r!==undefined)e.enqueue(r)}catch(r){e.error(r)}}})}const a=r(e);const i=n();if(a!==undefined&&i!==undefined)return concat([a,i]);return a!==undefined?a:i}function transformPair(e,r){let n;const t=new TransformStream({start(e){n=e}});const a=pipe(e,t.writable);const i=transformWithCancel(async function(){n.error(new Error("Readable side was canceled."));await a;await new Promise(setTimeout)});r(t.readable,i.writable);return i.readable}function parse(e,r){let n;const t=transformPair(e,(e,a)=>{const i=getReader(e);i.remainder=(()=>{i.releaseLock();pipe(e,a);return t});n=r(i)});return n}function tee(e){if((0,t.isStream)(e)){const r=toStream(e).tee();r[0][i.externalBuffer]=r[1][i.externalBuffer]=e[i.externalBuffer];return r}return[slice(e),slice(e)]}function clone(e){if((0,t.isStream)(e)){const r=tee(e);overwrite(e,r[0]);return r[1]}return slice(e)}function passiveClone(e){if((0,t.isStream)(e)){return new ReadableStream({start(r){const n=transformPair(e,async(e,n)=>{const t=getReader(e);const a=getWriter(n);try{while(true){await a.ready;var i=await t.read();const e=i.done,n=i.value;if(e){try{r.close()}catch(e){}await a.close();return}try{r.enqueue(n)}catch(e){}await a.write(n)}}catch(e){r.error(e);await a.abort(e)}});overwrite(e,n)}})}return slice(e)}function overwrite(e,r){Object.entries(Object.getOwnPropertyDescriptors(ReadableStream.prototype)).forEach(([n,t])=>{if(n==="constructor"){return}if(t.value){t.value=t.value.bind(r)}else{t.get=t.get.bind(r)}Object.defineProperty(e,n,t)})}function slice(e,r=0,n=Infinity){if((0,t.isStream)(e)){if(r>=0&&n>=0){let t=0;return transformRaw(e,{transform(e,a){if(t=r){a.enqueue(slice(e,Math.max(r-t,0),n-t))}t+=e.length}else{a.terminate()}}})}if(r<0&&(n<0||n===Infinity)){let t=[];return transform(e,e=>{if(e.length>=-r)t=[e];else t.push(e)},()=>slice(concat(t),r,n))}if(r===0&&n<0){let t;return transform(e,e=>{const a=t?concat([t,e]):e;if(a.length>=-n){t=slice(a,n);return slice(a,r,n)}else{t=a}})}console.warn(`stream.slice(input, ${r}, ${n}) not implemented efficiently.`);return fromAsync(async()=>slice(await readToEnd(e),r,n))}if(e[i.externalBuffer]){e=concat(e[i.externalBuffer].concat([e]))}if((0,t.isUint8Array)(e)&&!(s&&s.isBuffer(e))){if(n===Infinity)n=e.length;return e.subarray(r,n)}return e.slice(r,n)}async function readToEnd(e,r){if((0,t.isStream)(e)){return getReader(e).readToEnd(r)}return e}async function cancel(e,r){if((0,t.isStream)(e)&&e.cancel){return e.cancel(r)}}function fromAsync(e){return new ReadableStream({pull:async r=>{try{r.enqueue(await e());r.close()}catch(e){r.error(e)}}})}n.default={isStream:t.isStream,isUint8Array:t.isUint8Array,toStream:toStream,concatUint8Array:t.concatUint8Array,concatStream:concatStream,concat:concat,getReader:getReader,getWriter:getWriter,pipe:pipe,transformRaw:transformRaw,transform:transform,transformPair:transformPair,parse:parse,clone:clone,passiveClone:passiveClone,slice:slice,readToEnd:readToEnd,cancel:cancel,fromAsync:fromAsync,nodeToWeb:a.nodeToWeb,webToNode:a.webToNode}}).call(this,e("_process"))},{"./node-conversions":73,"./reader":74,"./util":76,_process:66,buffer:"buffer"}],76:[function(e,r,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:true});const t=typeof r.process==="object"&&typeof r.process.versions==="object";const a=t&&e("stream").Readable;function isStream(e){if(ReadableStream.prototype.isPrototypeOf(e)){return"web"}if(a&&a.prototype.isPrototypeOf(e)){return"node"}return false}function isUint8Array(e){return Uint8Array.prototype.isPrototypeOf(e)}function concatUint8Array(e){if(e.length===1)return e[0];let r=0;for(let n=0;nr=>e.hashAlgorithm===r;for(let t=0;t=0;--e){for(let r=c-1;r>=0;--r){l[1]=c*e+(r+1);d[0]=s[0]^l[0];d[1]=s[1]^l[1];d[2]=f[2*r];d[3]=f[2*r+1];d=unpack(n.decrypt(pack(d)));s=d.subarray(0,2);f[2*r]=d[2];f[2*r+1]=d[3]}}if(s[0]===t[0]&&s[1]===t[1]){return pack(f)}throw new Error("Key Data Integrity failed")}function createArrayBuffer(e){if(s.default.isString(e)){const r=e.length;const n=new ArrayBuffer(r);const t=new Uint8Array(n);for(let n=0;n{if(e){l=u.default.concatUint8Array([l,e])}const r=new Uint8Array(l.length);let n;let t=0;while(e?l.length>=s:l.length){const e=a.encrypt(c);for(n=0;n{if(e){l=u.default.concatUint8Array([l,e])}const r=new Uint8Array(l.length);let n;let t=0;while(e?l.length>=s:l.length){const e=a.encrypt(c);c=l;for(n=0;n=3e3*l.default.min_bytes_for_web_crypto){return webEncrypt(e,r,n,a)}const s=new t.AES_CFB(r,a);return i.default.transform(n,e=>s.AES_Encrypt_process(e),()=>s.AES_Encrypt_finish())}function aesDecrypt(e,r,n,a){if(u.default.isStream(n)){const e=new t.AES_CFB(r,a);return i.default.transform(n,r=>e.AES_Decrypt_process(r),()=>e.AES_Decrypt_finish())}return t.AES_CFB.decrypt(n,r,a)}function xorMut(e,r){for(let n=0;nnew Uint8Array(a.update(v.from(e))))}function nodeDecrypt(e,r,n,t){r=v.from(r);t=v.from(t);const a=new h.createDecipheriv(b[e],r,t);return i.default.transform(n,e=>new Uint8Array(a.update(v.from(e))))}},{"../config":79,"../util":158,"./cipher":86,"asmcrypto.js/dist_es5/aes/cfb":5,"web-stream-tools":75}],82:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("asmcrypto.js/dist_es5/aes/ecb");function aes(e){const r=function C(e){const r=new t.AES_ECB(e);this.encrypt=function(e){return r.encrypt(e)};this.decrypt=function(e){return r.decrypt(e)}};r.blockSize=r.prototype.blockSize=16;r.keySize=r.prototype.keySize=e/8;return r}n.default=aes},{"asmcrypto.js/dist_es5/aes/ecb":7}],83:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});function Blowfish(){}Blowfish.prototype.BLOCKSIZE=8;Blowfish.prototype.SBOXES=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];Blowfish.prototype.PARRAY=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731];Blowfish.prototype.NN=16;Blowfish.prototype._clean=function(e){if(e<0){const r=e&2147483647;e=r+2147483648}return e};Blowfish.prototype._F=function(e){let r;const n=e&255;e>>>=8;const t=e&255;e>>>=8;const a=e&255;e>>>=8;const i=e&255;r=this.sboxes[0][i]+this.sboxes[1][a];r^=this.sboxes[2][t];r+=this.sboxes[3][n];return r};Blowfish.prototype._encrypt_block=function(e){let r=e[0];let n=e[1];let t;for(t=0;t>>24-8*r&255;a[r+t]=n[1]>>>24-8*r&255}return a};Blowfish.prototype._decrypt_block=function(e){let r=e[0];let n=e[1];let t;for(t=this.NN+1;t>1;--t){r^=this.parray[t];n=this._F(r)^n;const e=r;r=n;n=e}r^=this.parray[1];n^=this.parray[0];e[0]=this._clean(n);e[1]=this._clean(r)};Blowfish.prototype.init=function(e){let r;let n=0;this.parray=[];for(r=0;r=e.length){n=0}}this.parray[r]=this.PARRAY[r]^t}this.sboxes=[];for(r=0;r<4;++r){this.sboxes[r]=[];for(n=0;n<256;++n){this.sboxes[r][n]=this.SBOXES[r][n]}}const t=[0,0];for(r=0;r>>24&255;r[n+1]=a>>>16&255;r[n+2]=a>>>8&255;r[n+3]=a&255;r[n+4]=t>>>24&255;r[n+5]=t>>>16&255;r[n+6]=t>>>8&255;r[n+7]=t&255}return r};this.decrypt=function(e){const r=new Array(e.length);for(let n=0;n>>24&255;r[n+1]=a>>>16&255;r[n+2]=a>>>8&255;r[n+3]=a&255;r[n+4]=t>>>24&255;r[n+5]=t>>16&255;r[n+6]=t>>8&255;r[n+7]=t&255}return r};const e=new Array(4);e[0]=new Array(4);e[0][0]=[4,0,13,15,12,14,8];e[0][1]=[5,2,16+0,16+2,16+1,16+3,10];e[0][2]=[6,3,16+7,16+6,16+5,16+4,9];e[0][3]=[7,1,16+10,16+9,16+11,16+8,11];e[1]=new Array(4);e[1][0]=[0,6,16+5,16+7,16+4,16+6,16+0];e[1][1]=[1,4,0,2,1,3,16+2];e[1][2]=[2,5,7,6,5,4,16+1];e[1][3]=[3,7,10,9,11,8,16+3];e[2]=new Array(4);e[2][0]=[4,0,13,15,12,14,8];e[2][1]=[5,2,16+0,16+2,16+1,16+3,10];e[2][2]=[6,3,16+7,16+6,16+5,16+4,9];e[2][3]=[7,1,16+10,16+9,16+11,16+8,11];e[3]=new Array(4);e[3][0]=[0,6,16+5,16+7,16+4,16+6,16+0];e[3][1]=[1,4,0,2,1,3,16+2];e[3][2]=[2,5,7,6,5,4,16+1];e[3][3]=[3,7,10,9,11,8,16+3];const r=new Array(4);r[0]=new Array(4);r[0][0]=[16+8,16+9,16+7,16+6,16+2];r[0][1]=[16+10,16+11,16+5,16+4,16+6];r[0][2]=[16+12,16+13,16+3,16+2,16+9];r[0][3]=[16+14,16+15,16+1,16+0,16+12];r[1]=new Array(4);r[1][0]=[3,2,12,13,8];r[1][1]=[1,0,14,15,13];r[1][2]=[7,6,8,9,3];r[1][3]=[5,4,10,11,7];r[2]=new Array(4);r[2][0]=[16+3,16+2,16+12,16+13,16+9];r[2][1]=[16+1,16+0,16+14,16+15,16+12];r[2][2]=[16+7,16+6,16+8,16+9,16+2];r[2][3]=[16+5,16+4,16+10,16+11,16+6];r[3]=new Array(4);r[3][0]=[8,9,7,6,3];r[3][1]=[10,11,5,4,7];r[3][2]=[12,13,3,2,8];r[3][3]=[14,15,1,0,13];this.keySchedule=function(t){const a=new Array(8);const i=new Array(32);let s;for(let e=0;e<4;e++){s=e*4;a[e]=t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3]}const f=[6,7,4,5];let c=0;let l;for(let t=0;t<2;t++){for(let t=0;t<4;t++){for(s=0;s<4;s++){const r=e[t][s];l=a[r[1]];l^=n[4][a[r[2]>>>2]>>>24-8*(r[2]&3)&255];l^=n[5][a[r[3]>>>2]>>>24-8*(r[3]&3)&255];l^=n[6][a[r[4]>>>2]>>>24-8*(r[4]&3)&255];l^=n[7][a[r[5]>>>2]>>>24-8*(r[5]&3)&255];l^=n[f[s]][a[r[6]>>>2]>>>24-8*(r[6]&3)&255];a[r[0]]=l}for(s=0;s<4;s++){const e=r[t][s];l=n[4][a[e[0]>>>2]>>>24-8*(e[0]&3)&255];l^=n[5][a[e[1]>>>2]>>>24-8*(e[1]&3)&255];l^=n[6][a[e[2]>>>2]>>>24-8*(e[2]&3)&255];l^=n[7][a[e[3]>>>2]>>>24-8*(e[3]&3)&255];l^=n[4+s][a[e[4]>>>2]>>>24-8*(e[4]&3)&255];i[c]=l;c++}}}for(let e=0;e<16;e++){this.masking[e]=i[e];this.rotate[e]=i[16+e]&31}};function f1(e,r,t){const a=r+e;const i=a<>>32-t;return(n[0][i>>>24]^n[1][i>>>16&255])-n[2][i>>>8&255]+n[3][i&255]}function f2(e,r,t){const a=r^e;const i=a<>>32-t;return n[0][i>>>24]-n[1][i>>>16&255]+n[2][i>>>8&255]^n[3][i&255]}function f3(e,r,t){const a=r-e;const i=a<>>32-t;return(n[0][i>>>24]+n[1][i>>>16&255]^n[2][i>>>8&255])-n[3][i&255]}const n=new Array(8);n[0]=[821772500,2678128395,1810681135,1059425402,505495343,2617265619,1610868032,3483355465,3218386727,2294005173,3791863952,2563806837,1852023008,365126098,3269944861,584384398,677919599,3229601881,4280515016,2002735330,1136869587,3744433750,2289869850,2731719981,2714362070,879511577,1639411079,575934255,717107937,2857637483,576097850,2731753936,1725645e3,2810460463,5111599,767152862,2543075244,1251459544,1383482551,3052681127,3089939183,3612463449,1878520045,1510570527,2189125840,2431448366,582008916,3163445557,1265446783,1354458274,3529918736,3202711853,3073581712,3912963487,3029263377,1275016285,4249207360,2905708351,3304509486,1442611557,3585198765,2712415662,2731849581,3248163920,2283946226,208555832,2766454743,1331405426,1447828783,3315356441,3108627284,2957404670,2981538698,3339933917,1669711173,286233437,1465092821,1782121619,3862771680,710211251,980974943,1651941557,430374111,2051154026,704238805,4128970897,3144820574,2857402727,948965521,3333752299,2227686284,718756367,2269778983,2731643755,718440111,2857816721,3616097120,1113355533,2478022182,410092745,1811985197,1944238868,2696854588,1415722873,1682284203,1060277122,1998114690,1503841958,82706478,2315155686,1068173648,845149890,2167947013,1768146376,1993038550,3566826697,3390574031,940016341,3355073782,2328040721,904371731,1205506512,4094660742,2816623006,825647681,85914773,2857843460,1249926541,1417871568,3287612,3211054559,3126306446,1975924523,1353700161,2814456437,2438597621,1800716203,722146342,2873936343,1151126914,4160483941,2877670899,458611604,2866078500,3483680063,770352098,2652916994,3367839148,3940505011,3585973912,3809620402,718646636,2504206814,2914927912,3631288169,2857486607,2860018678,575749918,2857478043,718488780,2069512688,3548183469,453416197,1106044049,3032691430,52586708,3378514636,3459808877,3211506028,1785789304,218356169,3571399134,3759170522,1194783844,1523787992,3007827094,1975193539,2555452411,1341901877,3045838698,3776907964,3217423946,2802510864,2889438986,1057244207,1636348243,3761863214,1462225785,2632663439,481089165,718503062,24497053,3332243209,3344655856,3655024856,3960371065,1195698900,2971415156,3710176158,2115785917,4027663609,3525578417,2524296189,2745972565,3564906415,1372086093,1452307862,2780501478,1476592880,3389271281,18495466,2378148571,901398090,891748256,3279637769,3157290713,2560960102,1447622437,4284372637,216884176,2086908623,1879786977,3588903153,2242455666,2938092967,3559082096,2810645491,758861177,1121993112,215018983,642190776,4169236812,1196255959,2081185372,3508738393,941322904,4124243163,2877523539,1848581667,2205260958,3180453958,2589345134,3694731276,550028657,2519456284,3789985535,2973870856,2093648313,443148163,46942275,2734146937,1117713533,1115362972,1523183689,3717140224,1551984063];n[1]=[522195092,4010518363,1776537470,960447360,4267822970,4005896314,1435016340,1929119313,2913464185,1310552629,3579470798,3724818106,2579771631,1594623892,417127293,2715217907,2696228731,1508390405,3994398868,3925858569,3695444102,4019471449,3129199795,3770928635,3520741761,990456497,4187484609,2783367035,21106139,3840405339,631373633,3783325702,532942976,396095098,3548038825,4267192484,2564721535,2011709262,2039648873,620404603,3776170075,2898526339,3612357925,4159332703,1645490516,223693667,1567101217,3362177881,1029951347,3470931136,3570957959,1550265121,119497089,972513919,907948164,3840628539,1613718692,3594177948,465323573,2659255085,654439692,2575596212,2699288441,3127702412,277098644,624404830,4100943870,2717858591,546110314,2403699828,3655377447,1321679412,4236791657,1045293279,4010672264,895050893,2319792268,494945126,1914543101,2777056443,3894764339,2219737618,311263384,4275257268,3458730721,669096869,3584475730,3835122877,3319158237,3949359204,2005142349,2713102337,2228954793,3769984788,569394103,3855636576,1425027204,108000370,2736431443,3671869269,3043122623,1750473702,2211081108,762237499,3972989403,2798899386,3061857628,2943854345,867476300,964413654,1591880597,1594774276,2179821409,552026980,3026064248,3726140315,2283577634,3110545105,2152310760,582474363,1582640421,1383256631,2043843868,3322775884,1217180674,463797851,2763038571,480777679,2718707717,2289164131,3118346187,214354409,200212307,3810608407,3025414197,2674075964,3997296425,1847405948,1342460550,510035443,4080271814,815934613,833030224,1620250387,1945732119,2703661145,3966000196,1388869545,3456054182,2687178561,2092620194,562037615,1356438536,3409922145,3261847397,1688467115,2150901366,631725691,3840332284,549916902,3455104640,394546491,837744717,2114462948,751520235,2221554606,2415360136,3999097078,2063029875,803036379,2702586305,821456707,3019566164,360699898,4018502092,3511869016,3677355358,2402471449,812317050,49299192,2570164949,3259169295,2816732080,3331213574,3101303564,2156015656,3705598920,3546263921,143268808,3200304480,1638124008,3165189453,3341807610,578956953,2193977524,3638120073,2333881532,807278310,658237817,2969561766,1641658566,11683945,3086995007,148645947,1138423386,4158756760,1981396783,2401016740,3699783584,380097457,2680394679,2803068651,3334260286,441530178,4016580796,1375954390,761952171,891809099,2183123478,157052462,3683840763,1592404427,341349109,2438483839,1417898363,644327628,2233032776,2353769706,2201510100,220455161,1815641738,182899273,2995019788,3627381533,3702638151,2890684138,1052606899,588164016,1681439879,4038439418,2405343923,4229449282,167996282,1336969661,1688053129,2739224926,1543734051,1046297529,1138201970,2121126012,115334942,1819067631,1902159161,1941945968,2206692869,1159982321];n[2]=[2381300288,637164959,3952098751,3893414151,1197506559,916448331,2350892612,2932787856,3199334847,4009478890,3905886544,1373570990,2450425862,4037870920,3778841987,2456817877,286293407,124026297,3001279700,1028597854,3115296800,4208886496,2691114635,2188540206,1430237888,1218109995,3572471700,308166588,570424558,2187009021,2455094765,307733056,1310360322,3135275007,1384269543,2388071438,863238079,2359263624,2801553128,3380786597,2831162807,1470087780,1728663345,4072488799,1090516929,532123132,2389430977,1132193179,2578464191,3051079243,1670234342,1434557849,2711078940,1241591150,3314043432,3435360113,3091448339,1812415473,2198440252,267246943,796911696,3619716990,38830015,1526438404,2806502096,374413614,2943401790,1489179520,1603809326,1920779204,168801282,260042626,2358705581,1563175598,2397674057,1356499128,2217211040,514611088,2037363785,2186468373,4022173083,2792511869,2913485016,1173701892,4200428547,3896427269,1334932762,2455136706,602925377,2835607854,1613172210,41346230,2499634548,2457437618,2188827595,41386358,4172255629,1313404830,2405527007,3801973774,2217704835,873260488,2528884354,2478092616,4012915883,2555359016,2006953883,2463913485,575479328,2218240648,2099895446,660001756,2341502190,3038761536,3888151779,3848713377,3286851934,1022894237,1620365795,3449594689,1551255054,15374395,3570825345,4249311020,4151111129,3181912732,310226346,1133119310,530038928,136043402,2476768958,3107506709,2544909567,1036173560,2367337196,1681395281,1758231547,3641649032,306774401,1575354324,3716085866,1990386196,3114533736,2455606671,1262092282,3124342505,2768229131,4210529083,1833535011,423410938,660763973,2187129978,1639812e3,3508421329,3467445492,310289298,272797111,2188552562,2456863912,310240523,677093832,1013118031,901835429,3892695601,1116285435,3036471170,1337354835,243122523,520626091,277223598,4244441197,4194248841,1766575121,594173102,316590669,742362309,3536858622,4176435350,3838792410,2501204839,1229605004,3115755532,1552908988,2312334149,979407927,3959474601,1148277331,176638793,3614686272,2083809052,40992502,1340822838,2731552767,3535757508,3560899520,1354035053,122129617,7215240,2732932949,3118912700,2718203926,2539075635,3609230695,3725561661,1928887091,2882293555,1988674909,2063640240,2491088897,1459647954,4189817080,2302804382,1113892351,2237858528,1927010603,4002880361,1856122846,1594404395,2944033133,3855189863,3474975698,1643104450,4054590833,3431086530,1730235576,2984608721,3084664418,2131803598,4178205752,267404349,1617849798,1616132681,1462223176,736725533,2327058232,551665188,2945899023,1749386277,2575514597,1611482493,674206544,2201269090,3642560800,728599968,1680547377,2620414464,1388111496,453204106,4156223445,1094905244,2754698257,2201108165,3757000246,2704524545,3922940700,3996465027];n[3]=[2645754912,532081118,2814278639,3530793624,1246723035,1689095255,2236679235,4194438865,2116582143,3859789411,157234593,2045505824,4245003587,1687664561,4083425123,605965023,672431967,1336064205,3376611392,214114848,4258466608,3232053071,489488601,605322005,3998028058,264917351,1912574028,756637694,436560991,202637054,135989450,85393697,2152923392,3896401662,2895836408,2145855233,3535335007,115294817,3147733898,1922296357,3464822751,4117858305,1037454084,2725193275,2127856640,1417604070,1148013728,1827919605,642362335,2929772533,909348033,1346338451,3547799649,297154785,1917849091,4161712827,2883604526,3968694238,1469521537,3780077382,3375584256,1763717519,136166297,4290970789,1295325189,2134727907,2798151366,1566297257,3672928234,2677174161,2672173615,965822077,2780786062,289653839,1133871874,3491843819,35685304,1068898316,418943774,672553190,642281022,2346158704,1954014401,3037126780,4079815205,2030668546,3840588673,672283427,1776201016,359975446,3750173538,555499703,2769985273,1324923,69110472,152125443,3176785106,3822147285,1340634837,798073664,1434183902,15393959,216384236,1303690150,3881221631,3711134124,3960975413,106373927,2578434224,1455997841,1801814300,1578393881,1854262133,3188178946,3258078583,2302670060,1539295533,3505142565,3078625975,2372746020,549938159,3278284284,2620926080,181285381,2865321098,3970029511,68876850,488006234,1728155692,2608167508,836007927,2435231793,919367643,3339422534,3655756360,1457871481,40520939,1380155135,797931188,234455205,2255801827,3990488299,397000196,739833055,3077865373,2871719860,4022553888,772369276,390177364,3853951029,557662966,740064294,1640166671,1699928825,3535942136,622006121,3625353122,68743880,1742502,219489963,1664179233,1577743084,1236991741,410585305,2366487942,823226535,1050371084,3426619607,3586839478,212779912,4147118561,1819446015,1911218849,530248558,3486241071,3252585495,2886188651,3410272728,2342195030,20547779,2982490058,3032363469,3631753222,312714466,1870521650,1493008054,3491686656,615382978,4103671749,2534517445,1932181,2196105170,278426614,6369430,3274544417,2913018367,697336853,2143000447,2946413531,701099306,1558357093,2805003052,3500818408,2321334417,3567135975,216290473,3591032198,23009561,1996984579,3735042806,2024298078,3739440863,569400510,2339758983,3016033873,3097871343,3639523026,3844324983,3256173865,795471839,2951117563,4101031090,4091603803,3603732598,971261452,534414648,428311343,3389027175,2844869880,694888862,1227866773,2456207019,3043454569,2614353370,3749578031,3676663836,459166190,4132644070,1794958188,51825668,2252611902,3084671440,2036672799,3436641603,1099053433,2469121526,3059204941,1323291266,2061838604,1018778475,2233344254,2553501054,334295216,3556750194,1065731521,183467730];n[4]=[2127105028,745436345,2601412319,2788391185,3093987327,500390133,1155374404,389092991,150729210,3891597772,3523549952,1935325696,716645080,946045387,2901812282,1774124410,3869435775,4039581901,3293136918,3438657920,948246080,363898952,3867875531,1286266623,1598556673,68334250,630723836,1104211938,1312863373,613332731,2377784574,1101634306,441780740,3129959883,1917973735,2510624549,3238456535,2544211978,3308894634,1299840618,4076074851,1756332096,3977027158,297047435,3790297736,2265573040,3621810518,1311375015,1667687725,47300608,3299642885,2474112369,201668394,1468347890,576830978,3594690761,3742605952,1958042578,1747032512,3558991340,1408974056,3366841779,682131401,1033214337,1545599232,4265137049,206503691,103024618,2855227313,1337551222,2428998917,2963842932,4015366655,3852247746,2796956967,3865723491,3747938335,247794022,3755824572,702416469,2434691994,397379957,851939612,2314769512,218229120,1380406772,62274761,214451378,3170103466,2276210409,3845813286,28563499,446592073,1693330814,3453727194,29968656,3093872512,220656637,2470637031,77972100,1667708854,1358280214,4064765667,2395616961,325977563,4277240721,4220025399,3605526484,3355147721,811859167,3069544926,3962126810,652502677,3075892249,4132761541,3498924215,1217549313,3250244479,3858715919,3053989961,1538642152,2279026266,2875879137,574252750,3324769229,2651358713,1758150215,141295887,2719868960,3515574750,4093007735,4194485238,1082055363,3417560400,395511885,2966884026,179534037,3646028556,3738688086,1092926436,2496269142,257381841,3772900718,1636087230,1477059743,2499234752,3811018894,2675660129,3285975680,90732309,1684827095,1150307763,1723134115,3237045386,1769919919,1240018934,815675215,750138730,2239792499,1234303040,1995484674,138143821,675421338,1145607174,1936608440,3238603024,2345230278,2105974004,323969391,779555213,3004902369,2861610098,1017501463,2098600890,2628620304,2940611490,2682542546,1171473753,3656571411,3687208071,4091869518,393037935,159126506,1662887367,1147106178,391545844,3452332695,1891500680,3016609650,1851642611,546529401,1167818917,3194020571,2848076033,3953471836,575554290,475796850,4134673196,450035699,2351251534,844027695,1080539133,86184846,1554234488,3692025454,1972511363,2018339607,1491841390,1141460869,1061690759,4244549243,2008416118,2351104703,2868147542,1598468138,722020353,1027143159,212344630,1387219594,1725294528,3745187956,2500153616,458938280,4129215917,1828119673,544571780,3503225445,2297937496,1241802790,267843827,2694610800,1397140384,1558801448,3782667683,1806446719,929573330,2234912681,400817706,616011623,4121520928,3603768725,1761550015,1968522284,4053731006,4192232858,4005120285,872482584,3140537016,3894607381,2287405443,1963876937,3663887957,1584857e3,2975024454,1833426440,4025083860];n[5]=[4143615901,749497569,1285769319,3795025788,2514159847,23610292,3974978748,844452780,3214870880,3751928557,2213566365,1676510905,448177848,3730751033,4086298418,2307502392,871450977,3222878141,4110862042,3831651966,2735270553,1310974780,2043402188,1218528103,2736035353,4274605013,2702448458,3936360550,2693061421,162023535,2827510090,687910808,23484817,3784910947,3371371616,779677500,3503626546,3473927188,4157212626,3500679282,4248902014,2466621104,3899384794,1958663117,925738300,1283408968,3669349440,1840910019,137959847,2679828185,1239142320,1315376211,1547541505,1690155329,739140458,3128809933,3933172616,3876308834,905091803,1548541325,4040461708,3095483362,144808038,451078856,676114313,2861728291,2469707347,993665471,373509091,2599041286,4025009006,4170239449,2149739950,3275793571,3749616649,2794760199,1534877388,572371878,2590613551,1753320020,3467782511,1405125690,4270405205,633333386,3026356924,3475123903,632057672,2846462855,1404951397,3882875879,3915906424,195638627,2385783745,3902872553,1233155085,3355999740,2380578713,2702246304,2144565621,3663341248,3894384975,2502479241,4248018925,3094885567,1594115437,572884632,3385116731,767645374,1331858858,1475698373,3793881790,3532746431,1321687957,619889600,1121017241,3440213920,2070816767,2833025776,1933951238,4095615791,890643334,3874130214,859025556,360630002,925594799,1764062180,3920222280,4078305929,979562269,2810700344,4087740022,1949714515,546639971,1165388173,3069891591,1495988560,922170659,1291546247,2107952832,1813327274,3406010024,3306028637,4241950635,153207855,2313154747,1608695416,1150242611,1967526857,721801357,1220138373,3691287617,3356069787,2112743302,3281662835,1111556101,1778980689,250857638,2298507990,673216130,2846488510,3207751581,3562756981,3008625920,3417367384,2198807050,529510932,3547516680,3426503187,2364944742,102533054,2294910856,1617093527,1204784762,3066581635,1019391227,1069574518,1317995090,1691889997,3661132003,510022745,3238594800,1362108837,1817929911,2184153760,805817662,1953603311,3699844737,120799444,2118332377,207536705,2282301548,4120041617,145305846,2508124933,3086745533,3261524335,1877257368,2977164480,3160454186,2503252186,4221677074,759945014,254147243,2767453419,3801518371,629083197,2471014217,907280572,3900796746,940896768,2751021123,2625262786,3161476951,3661752313,3260732218,1425318020,2977912069,1496677566,3988592072,2140652971,3126511541,3069632175,977771578,1392695845,1698528874,1411812681,1369733098,1343739227,3620887944,1142123638,67414216,3102056737,3088749194,1626167401,2546293654,3941374235,697522451,33404913,143560186,2595682037,994885535,1247667115,3859094837,2699155541,3547024625,4114935275,2968073508,3199963069,2732024527,1237921620,951448369,1898488916,1211705605,2790989240,2233243581,3598044975];n[6]=[2246066201,858518887,1714274303,3485882003,713916271,2879113490,3730835617,539548191,36158695,1298409750,419087104,1358007170,749914897,2989680476,1261868530,2995193822,2690628854,3443622377,3780124940,3796824509,2976433025,4259637129,1551479e3,512490819,1296650241,951993153,2436689437,2460458047,144139966,3136204276,310820559,3068840729,643875328,1969602020,1680088954,2185813161,3283332454,672358534,198762408,896343282,276269502,3014846926,84060815,197145886,376173866,3943890818,3813173521,3545068822,1316698879,1598252827,2633424951,1233235075,859989710,2358460855,3503838400,3409603720,1203513385,1193654839,2792018475,2060853022,207403770,1144516871,3068631394,1121114134,177607304,3785736302,326409831,1929119770,2983279095,4183308101,3474579288,3200513878,3228482096,119610148,1170376745,3378393471,3163473169,951863017,3337026068,3135789130,2907618374,1183797387,2015970143,4045674555,2182986399,2952138740,3928772205,384012900,2454997643,10178499,2879818989,2596892536,111523738,2995089006,451689641,3196290696,235406569,1441906262,3890558523,3013735005,4158569349,1644036924,376726067,1006849064,3664579700,2041234796,1021632941,1374734338,2566452058,371631263,4007144233,490221539,206551450,3140638584,1053219195,1853335209,3412429660,3562156231,735133835,1623211703,3104214392,2738312436,4096837757,3366392578,3110964274,3956598718,3196820781,2038037254,3877786376,2339753847,300912036,3766732888,2372630639,1516443558,4200396704,1574567987,4069441456,4122592016,2699739776,146372218,2748961456,2043888151,35287437,2596680554,655490400,1132482787,110692520,1031794116,2188192751,1324057718,1217253157,919197030,686247489,3261139658,1028237775,3135486431,3059715558,2460921700,986174950,2661811465,4062904701,2752986992,3709736643,367056889,1353824391,731860949,1650113154,1778481506,784341916,357075625,3608602432,1074092588,2480052770,3811426202,92751289,877911070,3600361838,1231880047,480201094,3756190983,3094495953,434011822,87971354,363687820,1717726236,1901380172,3926403882,2481662265,400339184,1490350766,2661455099,1389319756,2558787174,784598401,1983468483,30828846,3550527752,2716276238,3841122214,1765724805,1955612312,1277890269,1333098070,1564029816,2704417615,1026694237,3287671188,1260819201,3349086767,1016692350,1582273796,1073413053,1995943182,694588404,1025494639,3323872702,3551898420,4146854327,453260480,1316140391,1435673405,3038941953,3486689407,1622062951,403978347,817677117,950059133,4246079218,3278066075,1486738320,1417279718,481875527,2549965225,3933690356,760697757,1452955855,3897451437,1177426808,1702951038,4085348628,2447005172,1084371187,3516436277,3068336338,1073369276,1027665953,3284188590,1230553676,1368340146,2226246512,267243139,2274220762,4070734279,2497715176,2423353163,2504755875];n[7]=[3793104909,3151888380,2817252029,895778965,2005530807,3871412763,237245952,86829237,296341424,3851759377,3974600970,2475086196,709006108,1994621201,2972577594,937287164,3734691505,168608556,3189338153,2225080640,3139713551,3033610191,3025041904,77524477,185966941,1208824168,2344345178,1721625922,3354191921,1066374631,1927223579,1971335949,2483503697,1551748602,2881383779,2856329572,3003241482,48746954,1398218158,2050065058,313056748,4255789917,393167848,1912293076,940740642,3465845460,3091687853,2522601570,2197016661,1727764327,364383054,492521376,1291706479,3264136376,1474851438,1685747964,2575719748,1619776915,1814040067,970743798,1561002147,2925768690,2123093554,1880132620,3151188041,697884420,2550985770,2607674513,2659114323,110200136,1489731079,997519150,1378877361,3527870668,478029773,2766872923,1022481122,431258168,1112503832,897933369,2635587303,669726182,3383752315,918222264,163866573,3246985393,3776823163,114105080,1903216136,761148244,3571337562,1690750982,3166750252,1037045171,1888456500,2010454850,642736655,616092351,365016990,1185228132,4174898510,1043824992,2023083429,2241598885,3863320456,3279669087,3674716684,108438443,2132974366,830746235,606445527,4173263986,2204105912,1844756978,2532684181,4245352700,2969441100,3796921661,1335562986,4061524517,2720232303,2679424040,634407289,885462008,3294724487,3933892248,2094100220,339117932,4048830727,3202280980,1458155303,2689246273,1022871705,2464987878,3714515309,353796843,2822958815,4256850100,4052777845,551748367,618185374,3778635579,4020649912,1904685140,3069366075,2670879810,3407193292,2954511620,4058283405,2219449317,3135758300,1120655984,3447565834,1474845562,3577699062,550456716,3466908712,2043752612,881257467,869518812,2005220179,938474677,3305539448,3850417126,1315485940,3318264702,226533026,965733244,321539988,1136104718,804158748,573969341,3708209826,937399083,3290727049,2901666755,1461057207,4013193437,4066861423,3242773476,2421326174,1581322155,3028952165,786071460,3900391652,3918438532,1485433313,4023619836,3708277595,3678951060,953673138,1467089153,1930354364,1533292819,2492563023,1346121658,1685000834,1965281866,3765933717,4190206607,2052792609,3515332758,690371149,3125873887,2180283551,2903598061,3933952357,436236910,289419410,14314871,1242357089,2904507907,1616633776,2666382180,585885352,3471299210,2699507360,1432659641,277164553,3354103607,770115018,2303809295,3741942315,3177781868,2853364978,2269453327,3774259834,987383833,1290892879,225909803,1741533526,890078084,1496906255,1111072499,916028167,243534141,1252605537,2204162171,531204876,290011180,3916834213,102027703,237315147,209093447,1486785922,220223953,2758195998,4175039106,82940208,3127791296,2569425252,518464269,1353887104,3941492737,2377294467,3935040926]}function Cast5(e){this.cast5=new OpenpgpSymencCast5;this.cast5.setKey(e);this.encrypt=function(e){return this.cast5.encrypt(e)}}Cast5.blockSize=Cast5.prototype.blockSize=8;Cast5.keySize=Cast5.prototype.keySize=16;n.default=Cast5},{}],85:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});function des(e,r,n,t,a,i){const s=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756];const f=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344];const c=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584];const l=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928];const d=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080];const u=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312];const o=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154];const h=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];let v=0;let p;let b;let y;let g;let w;let m;let A;let E;let S;let k;let R;let M;let C;let D;let j=r.length;const q=e.length===32?3:9;if(q===3){E=n?[0,32,2]:[30,-2,-2]}else{E=n?[0,32,2,62,30,-2,64,96,2]:[94,62,-2,32,64,2,30,-2,-2]}if(n){r=des_addPadding(r,i);j=r.length}let B=new Uint8Array(j);let _=0;if(t===1){S=a[v++]<<24|a[v++]<<16|a[v++]<<8|a[v++];R=a[v++]<<24|a[v++]<<16|a[v++]<<8|a[v++];v=0}while(v>>4^A)&252645135;A^=y;m^=y<<4;y=(m>>>16^A)&65535;A^=y;m^=y<<16;y=(A>>>2^m)&858993459;m^=y;A^=y<<2;y=(A>>>8^m)&16711935;m^=y;A^=y<<8;y=(m>>>1^A)&1431655765;A^=y;m^=y<<1;m=m<<1|m>>>31;A=A<<1|A>>>31;for(b=0;b>>4|A<<28)^e[p+1];y=m;m=A;A=y^(f[g>>>24&63]|l[g>>>16&63]|u[g>>>8&63]|h[g&63]|s[w>>>24&63]|c[w>>>16&63]|d[w>>>8&63]|o[w&63])}y=m;m=A;A=y}m=m>>>1|m<<31;A=A>>>1|A<<31;y=(m>>>1^A)&1431655765;A^=y;m^=y<<1;y=(A>>>8^m)&16711935;m^=y;A^=y<<8;y=(A>>>2^m)&858993459;m^=y;A^=y<<2;y=(m>>>16^A)&65535;A^=y;m^=y<<16;y=(m>>>4^A)&252645135;A^=y;m^=y<<4;if(t===1){if(n){S=m;R=A}else{m^=k;A^=M}}B[_++]=m>>>24;B[_++]=m>>>16&255;B[_++]=m>>>8&255;B[_++]=m&255;B[_++]=A>>>24;B[_++]=A>>>16&255;B[_++]=A>>>8&255;B[_++]=A&255}if(!n){B=des_removePadding(B,i)}return B}function des_createKeys(e){const r=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964];const n=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697];const t=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272];const a=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144];const i=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256];const s=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488];const f=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746];const c=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568];const l=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578];const d=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488];const u=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800];const o=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744];const h=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128];const v=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261];const p=e.length>8?3:1;const b=new Array(32*p);const y=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0];let g;let w;let m=0;let A=0;let E;for(let S=0;S>>4^S)&252645135;S^=E;p^=E<<4;E=(S>>>-16^p)&65535;p^=E;S^=E<<-16;E=(p>>>2^S)&858993459;S^=E;p^=E<<2;E=(S>>>-16^p)&65535;p^=E;S^=E<<-16;E=(p>>>1^S)&1431655765;S^=E;p^=E<<1;E=(S>>>8^p)&16711935;p^=E;S^=E<<8;E=(p>>>1^S)&1431655765;S^=E;p^=E<<1;E=p<<8|S>>>20&240;p=S<<24|S<<8&16711680|S>>>8&65280|S>>>24&240;S=E;for(let e=0;e>>26;S=S<<2|S>>>26}else{p=p<<1|p>>>27;S=S<<1|S>>>27}p&=-15;S&=-15;g=r[p>>>28]|n[p>>>24&15]|t[p>>>20&15]|a[p>>>16&15]|i[p>>>12&15]|s[p>>>8&15]|f[p>>>4&15];w=c[S>>>28]|l[S>>>24&15]|d[S>>>20&15]|u[S>>>16&15]|o[S>>>12&15]|h[S>>>8&15]|v[S>>>4&15];E=(w>>>16^g)&65535;b[A++]=g^E;b[A++]=w^E<<16}}return b}function des_addPadding(e,r){const n=8-e.length%8;let t;if(r===2&&n<8){t=" ".charCodeAt(0)}else if(r===1){t=n}else if(!r&&n<8){t=0}else if(n===8){return e}else{throw new Error("des: invalid padding")}const a=new Uint8Array(e.length+n);for(let r=0;r>>32-r)&t}function getW(e,r){return e[r]|e[r+1]<<8|e[r+2]<<16|e[r+3]<<24}function setW(e,r,n){e.splice(r,4,n&255,n>>>8&255,n>>>16&255,n>>>24&255)}function getB(e,r){return e>>>r*8&255}function createTwofish(){let e=null;let r=null;let n=-1;let a=[];let i=[[],[],[],[]];function tfsInit(r){e=r;let n;let s;let f;let c;let l;const d=[];const u=[];const o=[];let h;const v=[];let p;let b;let y;const g=[[8,1,7,13,6,15,3,2,0,11,5,9,14,12,10,4],[2,8,11,13,15,7,6,14,3,1,9,4,0,10,12,5]];const w=[[14,12,11,8,1,2,3,5,15,4,10,6,7,0,9,13],[1,14,2,11,4,12,3,7,6,13,10,5,15,9,0,8]];const m=[[11,10,5,14,6,13,9,0,12,8,15,3,2,4,7,1],[4,12,7,5,1,6,9,10,0,14,13,8,2,11,3,15]];const A=[[13,7,15,4,1,2,6,14,9,11,3,0,8,5,12,10],[11,9,5,1,12,3,13,14,6,4,7,15,2,0,8,10]];const E=[0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15];const S=[0,9,2,11,4,13,6,15,8,1,10,3,12,5,14,7];const k=[[],[]];const R=[[],[],[],[]];function ffm5b(e){return e^e>>2^[0,90,180,238][e&3]}function ffmEf(e){return e^e>>1^e>>2^[0,238,180,90][e&3]}function mdsRem(e,r){let n;let a;let i;for(n=0;n<8;n++){a=r>>>24;r=r<<8&t|e>>>24;e=e<<8&t;i=a<<1;if(a&128){i^=333}r^=a^i<<16;i^=a>>>1;if(a&1){i^=166}r^=i<<24|i<<8}return r}function qp(e,r){const n=r>>4;const t=r&15;const a=g[e][n^t];const i=w[e][E[t]^S[n]];return A[e][E[i]^S[a]]<<4|m[e][a^i]}function hFun(e,r){let n=getB(e,0);let t=getB(e,1);let a=getB(e,2);let i=getB(e,3);switch(h){case 4:n=k[1][n]^getB(r[3],0);t=k[0][t]^getB(r[3],1);a=k[0][a]^getB(r[3],2);i=k[1][i]^getB(r[3],3);case 3:n=k[1][n]^getB(r[2],0);t=k[1][t]^getB(r[2],1);a=k[0][a]^getB(r[2],2);i=k[0][i]^getB(r[2],3);case 2:n=k[0][k[0][n]^getB(r[1],0)]^getB(r[0],0);t=k[0][k[1][t]^getB(r[1],1)]^getB(r[0],1);a=k[1][k[0][a]^getB(r[1],2)]^getB(r[0],2);i=k[1][k[1][i]^getB(r[1],3)]^getB(r[0],3)}return R[0][n]^R[1][t]^R[2][a]^R[3][i]}e=e.slice(0,32);n=e.length;while(n!==16&&n!==24&&n!==32){e[n++]=0}for(n=0;n>2]=getW(e,n)}for(n=0;n<256;n++){k[0][n]=qp(0,n);k[1][n]=qp(1,n)}for(n=0;n<256;n++){p=k[1][n];b=ffm5b(p);y=ffmEf(p);R[0][n]=p+(b<<8)+(y<<16)+(y<<24);R[2][n]=b+(y<<8)+(p<<16)+(y<<24);p=k[0][n];b=ffm5b(p);y=ffmEf(p);R[1][n]=y+(y<<8)+(b<<16)+(p<<24);R[3][n]=b+(p<<8)+(y<<16)+(b<<24)}h=o.length/2;for(n=0;n=0;e--){tfsIrnd(e,i)}setW(r,n,i[2]^a[0]);setW(r,n+4,i[3]^a[1]);setW(r,n+8,i[0]^a[2]);setW(r,n+12,i[1]^a[3]);n+=16}function tfsFinal(){return r}return{name:"twofish",blocksize:128/8,open:tfsInit,close:tfsClose,encrypt:tfsEncrypt,decrypt:tfsDecrypt,finalize:tfsFinal}}function TF(e){this.tf=createTwofish();this.tf.open(Array.from(e),0);this.encrypt=function(e){return this.tf.encrypt(Array.from(e),0)}}TF.keySize=TF.prototype.keySize=32;TF.blockSize=TF.prototype.blockSize=16;n.default=TF},{}],88:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("asmcrypto.js/dist_es5/aes/cbc");var a=e("../util");var i=_interopRequireDefault(a);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=i.default.getWebCrypto();const f=i.default.getNodeCrypto();const c=i.default.getNodeBuffer();const l=16;function rightXorMut(e,r){const n=e.length-l;for(let t=0;t{n.update(E.from(e))},()=>new Uint8Array(n.digest()))}}function hashjs_hash(e,r){return async function(n){if(!w.default.isStream(n)&&m&&r&&n.length>=y.default.min_bytes_for_web_crypto){return new Uint8Array(await m.digest(r,n))}const t=e();return h.default.transform(n,e=>{t.update(e)},()=>new Uint8Array(t.digest()))}}function asmcrypto_hash(e,r){return async function(n){if(w.default.isStream(n)){const r=new e;return h.default.transform(n,e=>{r.process(e)},()=>r.finish().result)}else if(m&&r&&n.length>=y.default.min_bytes_for_web_crypto){return new Uint8Array(await m.digest(r,n))}else{return e.bytes(n)}}}let S;if(A){S={md5:node_hash("md5"),sha1:node_hash("sha1"),sha224:node_hash("sha224"),sha256:node_hash("sha256"),sha384:node_hash("sha384"),sha512:node_hash("sha512"),ripemd:node_hash("ripemd160")}}else{S={md5:p.default,sha1:asmcrypto_hash(t.Sha1,navigator.userAgent.indexOf("Edge")===-1&&"SHA-1"),sha224:hashjs_hash(s.default),sha256:asmcrypto_hash(a.Sha256,"SHA-256"),sha384:hashjs_hash(c.default,"SHA-384"),sha512:hashjs_hash(d.default,"SHA-512"),ripemd:hashjs_hash(u.ripemd160)}}n.default={md5:S.md5,sha1:S.sha1,sha224:S.sha224,sha256:S.sha256,sha384:S.sha384,sha512:S.sha512,ripemd:S.ripemd,digest:function digest(e,r){switch(e){case 1:return this.md5(r);case 2:return this.sha1(r);case 3:return this.ripemd(r);case 8:return this.sha256(r);case 9:return this.sha384(r);case 10:return this.sha512(r);case 11:return this.sha224(r);default:throw new Error("Invalid hash function.")}},getHashByteLength:function getHashByteLength(e){switch(e){case 1:return 16;case 2:case 3:return 20;case 8:return 32;case 9:return 48;case 10:return 64;case 11:return 28;default:throw new Error("Invalid hash algorithm.")}}}},{"../../config":79,"../../util":158,"./md5":93,"asmcrypto.js/dist_es5/hash/sha1/sha1":11,"asmcrypto.js/dist_es5/hash/sha256/sha256":13,"hash.js/lib/hash/ripemd":37,"hash.js/lib/hash/sha/224":40,"hash.js/lib/hash/sha/384":42,"hash.js/lib/hash/sha/512":43,"web-stream-tools":75}],93:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("../../util");var a=_interopRequireDefault(t);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function md5(e){const r=md51(a.default.Uint8Array_to_str(e));return a.default.hex_to_Uint8Array(hex(r))}function md5cycle(e,r){let n=e[0];let t=e[1];let a=e[2];let i=e[3];n=ff(n,t,a,i,r[0],7,-680876936);i=ff(i,n,t,a,r[1],12,-389564586);a=ff(a,i,n,t,r[2],17,606105819);t=ff(t,a,i,n,r[3],22,-1044525330);n=ff(n,t,a,i,r[4],7,-176418897);i=ff(i,n,t,a,r[5],12,1200080426);a=ff(a,i,n,t,r[6],17,-1473231341);t=ff(t,a,i,n,r[7],22,-45705983);n=ff(n,t,a,i,r[8],7,1770035416);i=ff(i,n,t,a,r[9],12,-1958414417);a=ff(a,i,n,t,r[10],17,-42063);t=ff(t,a,i,n,r[11],22,-1990404162);n=ff(n,t,a,i,r[12],7,1804603682);i=ff(i,n,t,a,r[13],12,-40341101);a=ff(a,i,n,t,r[14],17,-1502002290);t=ff(t,a,i,n,r[15],22,1236535329);n=gg(n,t,a,i,r[1],5,-165796510);i=gg(i,n,t,a,r[6],9,-1069501632);a=gg(a,i,n,t,r[11],14,643717713);t=gg(t,a,i,n,r[0],20,-373897302);n=gg(n,t,a,i,r[5],5,-701558691);i=gg(i,n,t,a,r[10],9,38016083);a=gg(a,i,n,t,r[15],14,-660478335);t=gg(t,a,i,n,r[4],20,-405537848);n=gg(n,t,a,i,r[9],5,568446438);i=gg(i,n,t,a,r[14],9,-1019803690);a=gg(a,i,n,t,r[3],14,-187363961);t=gg(t,a,i,n,r[8],20,1163531501);n=gg(n,t,a,i,r[13],5,-1444681467);i=gg(i,n,t,a,r[2],9,-51403784);a=gg(a,i,n,t,r[7],14,1735328473);t=gg(t,a,i,n,r[12],20,-1926607734);n=hh(n,t,a,i,r[5],4,-378558);i=hh(i,n,t,a,r[8],11,-2022574463);a=hh(a,i,n,t,r[11],16,1839030562);t=hh(t,a,i,n,r[14],23,-35309556);n=hh(n,t,a,i,r[1],4,-1530992060);i=hh(i,n,t,a,r[4],11,1272893353);a=hh(a,i,n,t,r[7],16,-155497632);t=hh(t,a,i,n,r[10],23,-1094730640);n=hh(n,t,a,i,r[13],4,681279174);i=hh(i,n,t,a,r[0],11,-358537222);a=hh(a,i,n,t,r[3],16,-722521979);t=hh(t,a,i,n,r[6],23,76029189);n=hh(n,t,a,i,r[9],4,-640364487);i=hh(i,n,t,a,r[12],11,-421815835);a=hh(a,i,n,t,r[15],16,530742520);t=hh(t,a,i,n,r[2],23,-995338651);n=ii(n,t,a,i,r[0],6,-198630844);i=ii(i,n,t,a,r[7],10,1126891415);a=ii(a,i,n,t,r[14],15,-1416354905);t=ii(t,a,i,n,r[5],21,-57434055);n=ii(n,t,a,i,r[12],6,1700485571);i=ii(i,n,t,a,r[3],10,-1894986606);a=ii(a,i,n,t,r[10],15,-1051523);t=ii(t,a,i,n,r[1],21,-2054922799);n=ii(n,t,a,i,r[8],6,1873313359);i=ii(i,n,t,a,r[15],10,-30611744);a=ii(a,i,n,t,r[6],15,-1560198380);t=ii(t,a,i,n,r[13],21,1309151649);n=ii(n,t,a,i,r[4],6,-145523070);i=ii(i,n,t,a,r[11],10,-1120210379);a=ii(a,i,n,t,r[2],15,718787259);t=ii(t,a,i,n,r[9],21,-343485551);e[0]=add32(n,e[0]);e[1]=add32(t,e[1]);e[2]=add32(a,e[2]);e[3]=add32(i,e[3])}function cmn(e,r,n,t,a,i){r=add32(add32(r,e),add32(t,i));return add32(r<>>32-a,n)}function ff(e,r,n,t,a,i,s){return cmn(r&n|~r&t,e,r,a,i,s)}function gg(e,r,n,t,a,i,s){return cmn(r&t|n&~t,e,r,a,i,s)}function hh(e,r,n,t,a,i,s){return cmn(r^n^t,e,r,a,i,s)}function ii(e,r,n,t,a,i,s){return cmn(n^(r|~t),e,r,a,i,s)}function md51(e){const r=e.length;const n=[1732584193,-271733879,-1732584194,271733878];let t;for(t=64;t<=e.length;t+=64){md5cycle(n,md5blk(e.substring(t-64,t)))}e=e.substring(t-64);const a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3)}a[t>>2]|=128<<(t%4<<3);if(t>55){md5cycle(n,a);for(t=0;t<16;t++){a[t]=0}}a[14]=r*8;md5cycle(n,a);return n}function md5blk(e){const r=[];let n;for(n=0;n<64;n+=4){r[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24)}return r}const i="0123456789abcdef".split("");function rhex(e){let r="";let n=0;for(;n<4;n++){r+=i[e>>n*8+4&15]+i[e>>n*8&15]}return r}function hex(e){for(let r=0;r>3),17+(v>>3)),8-(v&7)).subarray(1);const g=new Uint8Array(f);const w=new Uint8Array(r.length+l);let m;let A=0;for(m=0;mr-11){throw new Error("Message too long")}const t=await getPkcs1Padding(r-n-3);return String.fromCharCode(0)+String.fromCharCode(2)+t+String.fromCharCode(0)+e};l.decode=function(e){if(e.charCodeAt(0)!==0){e=String.fromCharCode(0)+e}const r=e.charCodeAt(0);const n=e.charCodeAt(1);let t=2;while(e.charCodeAt(t)!==0&&t=8&&i===0){return e.substr(t)}throw new Error("Decryption error")};d.encode=async function(e,r,n){let t;const a=c.default.Uint8Array_to_str(r);if(a.length!==s.default.getHashByteLength(e)){throw new Error("Invalid hash length")}let i="";for(t=0;t0){const n=e.charCodeAt(r-1);if(n>=1){const t=e.substr(r-n);const a=String.fromCharCode(n).repeat(n);if(t===a){return e.substr(0,r-n)}}}throw new Error("Invalid padding")}n.default={encode:encode,decode:decode}},{}],98:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("bn.js");var a=_interopRequireDefault(t);var i=e("../random");var s=_interopRequireDefault(i);var f=e("../../util");var c=_interopRequireDefault(f);var l=e("./prime");var d=_interopRequireDefault(l);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const u=new a.default(1);const o=new a.default(0);n.default={sign:async function sign(e,r,n,t,i,f){let c;let l;let d;let h;const v=new a.default.red(t);const p=new a.default.red(i);const b=n.toRed(v);const y=f.toRed(p);const g=new a.default(r.subarray(0,i.byteLength())).toRed(p);while(true){c=await s.default.getRandomBN(u,i);l=b.redPow(c).fromRed().toRed(p);if(o.cmp(l)===0){continue}h=g.redAdd(y.redMul(l));d=c.toRed(p).redInvm().redMul(h);if(o.cmp(d)===0){continue}break}return{r:l.toArrayLike(Uint8Array,"be",i.byteLength()),s:d.toArrayLike(Uint8Array,"be",i.byteLength())}},verify:async function verify(e,r,n,t,i,s,f,l){if(o.ucmp(r)>=0||r.ucmp(f)>=0||o.ucmp(n)>=0||n.ucmp(f)>=0){c.default.print_debug("invalid DSA Signature");return null}const d=new a.default.red(s);const u=new a.default.red(f);const h=new a.default(t.subarray(0,f.byteLength()));const v=n.toRed(u).redInvm();if(o.cmp(v)===0){c.default.print_debug("invalid DSA Signature");return null}const p=h.toRed(u).redMul(v);const b=r.toRed(u).redMul(v);const y=i.toRed(d).redPow(p.fromRed());const g=l.toRed(d).redPow(b.fromRed());const w=y.redMul(g).fromRed().mod(f);return w.cmp(r)===0},validateParams:async function validateParams(e,r,n,t,i){e=new a.default(e);r=new a.default(r);n=new a.default(n);t=new a.default(t);const f=new a.default(1);if(n.lte(f)||n.gte(e)){return false}if(!e.sub(f).mod(r).isZero()){return false}const c=new a.default.red(e);const l=n.toRed(c);if(!l.redPow(r).eq(f)){return false}const u=r.bitLength();if(u<150||!await d.default.isProbablePrime(r,null,32)){return false}i=new a.default(i);const o=await s.default.getRandomBN(new a.default(2).shln(u-1),new a.default(2).shln(u));const h=r.mul(o).add(i);if(!t.eq(l.redPow(h))){return false}return true}}},{"../../util":158,"../random":109,"./prime":107,"bn.js":16}],99:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("bn.js");var a=_interopRequireDefault(t);var i=e("../random");var s=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const f=new a.default(0);n.default={encrypt:async function encrypt(e,r,n,t){const i=new a.default.red(r);const c=e.toRed(i);const l=n.toRed(i);const d=t.toRed(i);const u=await s.default.getRandomBN(f,r);return{c1:l.redPow(u).fromRed(),c2:d.redPow(u).redMul(c).fromRed()}},decrypt:async function decrypt(e,r,n,t){const i=new a.default.red(n);const s=e.toRed(i);const f=r.toRed(i);return s.redPow(t).redInvm().redMul(f).fromRed()},validateParams:async function validateParams(e,r,n,t){e=new a.default(e);r=new a.default(r);n=new a.default(n);const i=new a.default(1);if(r.lte(i)||r.gte(e)){return false}const f=e.subn(1).bitLength();if(f<1023){return false}const c=new a.default.red(e);const l=r.toRed(c);if(!l.redPow(e.subn(1)).eq(i)){return false}let d=r;const u=new a.default(1);const o=new a.default(2).shln(17);while(u.lt(o)){d=d.mul(r).mod(e);if(d.eqn(1)){return false}u.iaddn(1)}t=new a.default(t);const h=await s.default.getRandomBN(new a.default(2).shln(f-1),new a.default(2).shln(f));const v=e.subn(1).mul(h).add(t);if(!n.eq(l.redPow(v))){return false}return true}}},{"../random":109,"bn.js":16}],100:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.validateStandardParams=n.privateToJwk=n.rawPublicToJwk=n.jwkToRawPublic=n.getPreferredHashAlgo=n.generate=n.nodeCurves=n.webCurves=n.curves=undefined;var t=e("bn.js");var a=_interopRequireDefault(t);var i=e("tweetnacl/nacl-fast-light.js");var s=_interopRequireDefault(i);var f=e("../../random");var c=_interopRequireDefault(f);var l=e("../../../enums");var d=_interopRequireDefault(l);var u=e("../../../util");var o=_interopRequireDefault(u);var h=e("../../../type/oid");var v=_interopRequireDefault(h);var p=e("./indutnyKey");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const b=o.default.getWebCrypto();const y=o.default.getNodeCrypto();const g={p256:"P-256",p384:"P-384",p521:"P-521"};const w=y?y.getCurves():[];const m=y?{secp256k1:w.includes("secp256k1")?"secp256k1":undefined,p256:w.includes("prime256v1")?"prime256v1":undefined,p384:w.includes("secp384r1")?"secp384r1":undefined,p521:w.includes("secp521r1")?"secp521r1":undefined,ed25519:w.includes("ED25519")?"ED25519":undefined,curve25519:w.includes("X25519")?"X25519":undefined,brainpoolP256r1:w.includes("brainpoolP256r1")?"brainpoolP256r1":undefined,brainpoolP384r1:w.includes("brainpoolP384r1")?"brainpoolP384r1":undefined,brainpoolP512r1:w.includes("brainpoolP512r1")?"brainpoolP512r1":undefined}:{};const A={p256:{oid:[6,8,42,134,72,206,61,3,1,7],keyType:d.default.publicKey.ecdsa,hash:d.default.hash.sha256,cipher:d.default.symmetric.aes128,node:m.p256,web:g.p256,payloadSize:32,sharedSize:256},p384:{oid:[6,5,43,129,4,0,34],keyType:d.default.publicKey.ecdsa,hash:d.default.hash.sha384,cipher:d.default.symmetric.aes192,node:m.p384,web:g.p384,payloadSize:48,sharedSize:384},p521:{oid:[6,5,43,129,4,0,35],keyType:d.default.publicKey.ecdsa,hash:d.default.hash.sha512,cipher:d.default.symmetric.aes256,node:m.p521,web:g.p521,payloadSize:66,sharedSize:528},secp256k1:{oid:[6,5,43,129,4,0,10],keyType:d.default.publicKey.ecdsa,hash:d.default.hash.sha256,cipher:d.default.symmetric.aes128,node:m.secp256k1,payloadSize:32},ed25519:{oid:[6,9,43,6,1,4,1,218,71,15,1],keyType:d.default.publicKey.eddsa,hash:d.default.hash.sha512,node:false,payloadSize:32},curve25519:{oid:[6,10,43,6,1,4,1,151,85,1,5,1],keyType:d.default.publicKey.ecdh,hash:d.default.hash.sha256,cipher:d.default.symmetric.aes128,node:false,payloadSize:32},brainpoolP256r1:{oid:[6,9,43,36,3,3,2,8,1,1,7],keyType:d.default.publicKey.ecdsa,hash:d.default.hash.sha256,cipher:d.default.symmetric.aes128,node:m.brainpoolP256r1,payloadSize:32},brainpoolP384r1:{oid:[6,9,43,36,3,3,2,8,1,1,11],keyType:d.default.publicKey.ecdsa,hash:d.default.hash.sha384,cipher:d.default.symmetric.aes192,node:m.brainpoolP384r1,payloadSize:48},brainpoolP512r1:{oid:[6,9,43,36,3,3,2,8,1,1,13],keyType:d.default.publicKey.ecdsa,hash:d.default.hash.sha512,cipher:d.default.symmetric.aes256,node:m.brainpoolP512r1,payloadSize:64}};function Curve(e,r){try{if(o.default.isArray(e)||o.default.isUint8Array(e)){e=new v.default(e)}if(e instanceof v.default){e=e.getName()}this.name=d.default.write(d.default.curve,e)}catch(e){throw new Error("Not valid curve")}r=r||A[this.name];this.keyType=r.keyType;this.oid=r.oid;this.hash=r.hash;this.cipher=r.cipher;this.node=r.node&&A[this.name];this.web=r.web&&A[this.name];this.payloadSize=r.payloadSize;if(this.web&&o.default.getWebCrypto()){this.type="web"}else if(this.node&&o.default.getNodeCrypto()){this.type="node"}else if(this.name==="curve25519"){this.type="curve25519"}else if(this.name==="ed25519"){this.type="ed25519"}}Curve.prototype.genKeyPair=async function(){let e;switch(this.type){case"web":try{return await webGenKeyPair(this.name)}catch(e){o.default.print_debug_error("Browser did not support generating ec key "+e.message);break}case"node":return nodeGenKeyPair(this.name);case"curve25519":{const r=await c.default.getRandomBytes(32);r[0]=r[0]&127|64;r[31]&=248;const n=r.slice().reverse();e=s.default.box.keyPair.fromSecretKey(n);const t=o.default.concatUint8Array([new Uint8Array([64]),e.publicKey]);return{publicKey:t,privateKey:r}}case"ed25519":{const e=await c.default.getRandomBytes(32);const r=s.default.sign.keyPair.fromSeed(e);const n=o.default.concatUint8Array([new Uint8Array([64]),r.publicKey]);return{publicKey:n,privateKey:e}}}const r=await(0,p.getIndutnyCurve)(this.name);e=await r.genKeyPair({entropy:o.default.Uint8Array_to_str(await c.default.getRandomBytes(32))});return{publicKey:new Uint8Array(e.getPublic("array",false)),privateKey:e.getPrivate().toArrayLike(Uint8Array)}};async function generate(e){e=new Curve(e);const r=await e.genKeyPair();return{oid:e.oid,Q:new a.default(r.publicKey),d:new a.default(r.privateKey),hash:e.hash,cipher:e.cipher}}function getPreferredHashAlgo(e){return A[d.default.write(d.default.curve,e.toHex())].hash}async function validateStandardParams(e,r,n,t){const i={p256:true,p384:true,p521:true,secp256k1:true,curve25519:e===d.default.publicKey.ecdh,brainpoolP256r1:true,brainpoolP384r1:true,brainpoolP512r1:true};const f=r.getName();if(!i[f]){return false}if(f==="curve25519"){t=t.slice().reverse();var c=s.default.box.keyPair.fromSecretKey(t);const e=c.publicKey;n=new Uint8Array(n);const r=new Uint8Array([64,...e]);if(!o.default.equalsUint8Array(r,n)){return false}return true}const l=await(0,p.getIndutnyCurve)(f);try{n=(0,p.keyFromPublic)(l,n).getPublic()}catch(e){return false}t=new a.default(t);const u=(0,p.keyFromPrivate)(l,t).getPublic();if(!u.eq(n)){return false}return true}n.default=Curve;n.curves=A;n.webCurves=g;n.nodeCurves=m;n.generate=generate;n.getPreferredHashAlgo=getPreferredHashAlgo;n.jwkToRawPublic=jwkToRawPublic;n.rawPublicToJwk=rawPublicToJwk;n.privateToJwk=privateToJwk;n.validateStandardParams=validateStandardParams;async function webGenKeyPair(e){const r=await b.generateKey({name:"ECDSA",namedCurve:g[e]},true,["sign","verify"]);const n=await b.exportKey("jwk",r.privateKey);const t=await b.exportKey("jwk",r.publicKey);return{publicKey:jwkToRawPublic(t),privateKey:o.default.b64_to_Uint8Array(n.d,true)}}async function nodeGenKeyPair(e){const r=y.createECDH(m[e]);await r.generateKeys();return{publicKey:new Uint8Array(r.getPublicKey()),privateKey:new Uint8Array(r.getPrivateKey())}}function jwkToRawPublic(e){const r=o.default.b64_to_Uint8Array(e.x);const n=o.default.b64_to_Uint8Array(e.y);const t=new Uint8Array(r.length+n.length+1);t[0]=4;t.set(r,1);t.set(n,r.length+1);return t}function rawPublicToJwk(e,r,n){const t=e;const a=n.slice(1,t+1);const i=n.slice(t+1,t*2+1);const s={kty:"EC",crv:r,x:o.default.Uint8Array_to_b64(a,true),y:o.default.Uint8Array_to_b64(i,true),ext:true};return s}function privateToJwk(e,r,n,t){const a=rawPublicToJwk(e,r,n);a.d=o.default.Uint8Array_to_b64(t,true);return a}},{"../../../enums":113,"../../../type/oid":156,"../../../util":158,"../../random":109,"./indutnyKey":105,"bn.js":16,"tweetnacl/nacl-fast-light.js":72}],101:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=function(){function sliceIterator(e,r){var n=[];var t=true;var a=false;var i=undefined;try{for(var s=e[Symbol.iterator](),f;!(t=(f=s.next()).done);t=true){n.push(f.value);if(r&&n.length===r)break}}catch(e){a=true;i=e}finally{try{if(!t&&s["return"])s["return"]()}finally{if(a)throw i}}return n}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return sliceIterator(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var a=e("bn.js");var i=_interopRequireDefault(a);var s=e("tweetnacl/nacl-fast-light.js");var f=_interopRequireDefault(s);var c=e("./curves");var l=_interopRequireDefault(c);var d=e("../../aes_kw");var u=_interopRequireDefault(d);var o=e("../../cipher");var h=_interopRequireDefault(o);var v=e("../../random");var p=_interopRequireDefault(v);var b=e("../../hash");var y=_interopRequireDefault(b);var g=e("../../../enums");var w=_interopRequireDefault(g);var m=e("../../../util");var A=_interopRequireDefault(m);var E=e("./indutnyKey");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const S=A.default.getWebCrypto();const k=A.default.getNodeCrypto();async function validateParams(e,r,n){return(0,c.validateStandardParams)(w.default.publicKey.ecdh,e,r,n)}function buildEcdhParam(e,r,n,t){return A.default.concatUint8Array([r.write(),new Uint8Array([e]),n.write(),A.default.str_to_Uint8Array("Anonymous Sender "),t.subarray(0,20)])}function parseParams(e){if(e.length<3||e.length>4){throw new Error("Unexpected number of parameters")}const r=e[0];const n=new l.default(r);const t={oid:r};t.Q=e[1].toUint8Array();t.kdfParams=e[2];if(e.length===4){t.d=e[3].toUint8Array("be",n.payloadSize)}return t}async function kdf(e,r,n,t,a=false,i=false){let s;if(a){for(s=0;s=0&&r[s]===0;s--);r=r.subarray(0,s+1)}const f=await y.default.digest(e,A.default.concatUint8Array([new Uint8Array([0,0,0,1]),r,t]));return f.subarray(0,n)}async function genPublicEphemeralKey(e,r){switch(e.type){case"curve25519":{const a=await p.default.getRandomBytes(32);var n=await genPrivateEphemeralKey(e,r,null,a);const i=n.secretKey,s=n.sharedKey;var t=f.default.box.keyPair.fromSecretKey(i);let c=t.publicKey;c=A.default.concatUint8Array([new Uint8Array([64]),c]);return{publicKey:c,sharedKey:s}}case"web":if(e.web&&A.default.getWebCrypto()){try{return await webPublicEphemeralKey(e,r)}catch(e){A.default.print_debug_error(e)}}break;case"node":return nodePublicEphemeralKey(e,r)}return ellipticPublicEphemeralKey(e,r)}async function encrypt(e,r,n,t,a){const i=new l.default(e);var s=await genPublicEphemeralKey(i,t);const f=s.publicKey,c=s.sharedKey;const d=buildEcdhParam(w.default.publicKey.ecdh,e,r,a);const o=w.default.read(w.default.symmetric,r.cipher);const v=await kdf(r.hash,c,h.default[o].keySize,d);const p=u.default.wrap(v,n.toString());return{publicKey:f,wrappedKey:p}}async function genPrivateEphemeralKey(e,r,n,t){if(t.length!==e.payloadSize){const r=new Uint8Array(e.payloadSize);r.set(t,e.payloadSize-t.length);t=r}switch(e.type){case"curve25519":{const e=t.slice().reverse();const n=f.default.scalarMult(e,r.subarray(1));return{secretKey:e,sharedKey:n}}case"web":if(e.web&&A.default.getWebCrypto()){try{return await webPrivateEphemeralKey(e,r,n,t)}catch(e){A.default.print_debug_error(e)}}break;case"node":return nodePrivateEphemeralKey(e,r,t)}return ellipticPrivateEphemeralKey(e,r,t)}async function decrypt(e,r,n,t,a,s,f){const c=new l.default(e);var d=await genPrivateEphemeralKey(c,n,a,s);const o=d.sharedKey;const v=buildEcdhParam(w.default.publicKey.ecdh,e,r,f);const p=w.default.read(w.default.symmetric,r.cipher);let b;for(let e=0;e<3;e++){try{const n=await kdf(r.hash,o,h.default[p].keySize,v,e===1,e===2);return new i.default(u.default.unwrap(n,t))}catch(e){b=e}}throw b}async function webPrivateEphemeralKey(e,r,n,a){const i=(0,c.privateToJwk)(e.payloadSize,e.web.web,n,a);let s=S.importKey("jwk",i,{name:"ECDH",namedCurve:e.web.web},true,["deriveKey","deriveBits"]);const f=(0,c.rawPublicToJwk)(e.payloadSize,e.web.web,r);let l=S.importKey("jwk",f,{name:"ECDH",namedCurve:e.web.web},true,[]);var d=await Promise.all([s,l]);var u=t(d,2);s=u[0];l=u[1];let o=S.deriveBits({name:"ECDH",namedCurve:e.web.web,public:l},s,e.web.sharedSize);let h=S.exportKey("jwk",s);var v=await Promise.all([o,h]);var p=t(v,2);o=p[0];h=p[1];const b=new Uint8Array(o);const y=A.default.b64_to_Uint8Array(h.d,true);return{secretKey:y,sharedKey:b}}async function webPublicEphemeralKey(e,r){const n=(0,c.rawPublicToJwk)(e.payloadSize,e.web.web,r);let a=S.generateKey({name:"ECDH",namedCurve:e.web.web},true,["deriveKey","deriveBits"]);let i=S.importKey("jwk",n,{name:"ECDH",namedCurve:e.web.web},false,[]);var s=await Promise.all([a,i]);var f=t(s,2);a=f[0];i=f[1];let l=S.deriveBits({name:"ECDH",namedCurve:e.web.web,public:i},a.privateKey,e.web.sharedSize);let d=S.exportKey("jwk",a.publicKey);var u=await Promise.all([l,d]);var o=t(u,2);l=o[0];d=o[1];const h=new Uint8Array(l);const v=new Uint8Array((0,c.jwkToRawPublic)(d));return{publicKey:v,sharedKey:h}}async function ellipticPrivateEphemeralKey(e,r,n){const t=await(0,E.getIndutnyCurve)(e.name);r=(0,E.keyFromPublic)(t,r);n=(0,E.keyFromPrivate)(t,n);const a=new Uint8Array(n.getPrivate());const i=n.derive(r.getPublic());const s=t.curve.p.byteLength();const f=i.toArrayLike(Uint8Array,"be",s);return{secretKey:a,sharedKey:f}}async function ellipticPublicEphemeralKey(e,r){const n=await(0,E.getIndutnyCurve)(e.name);const t=await e.genKeyPair();r=(0,E.keyFromPublic)(n,r);const a=(0,E.keyFromPrivate)(n,t.privateKey);const i=t.publicKey;const s=a.derive(r.getPublic());const f=n.curve.p.byteLength();const c=s.toArrayLike(Uint8Array,"be",f);return{publicKey:i,sharedKey:c}}async function nodePrivateEphemeralKey(e,r,n){const t=k.createECDH(e.node.node);t.setPrivateKey(n);const a=new Uint8Array(t.computeSecret(r));const i=new Uint8Array(t.getPrivateKey());return{secretKey:i,sharedKey:a}}async function nodePublicEphemeralKey(e,r){const n=k.createECDH(e.node.node);n.generateKeys();const t=new Uint8Array(n.computeSecret(r));const a=new Uint8Array(n.getPublicKey());return{publicKey:a,sharedKey:t}}n.default={encrypt:encrypt,decrypt:decrypt,genPublicEphemeralKey:genPublicEphemeralKey,genPrivateEphemeralKey:genPrivateEphemeralKey,buildEcdhParam:buildEcdhParam,kdf:kdf,webPublicEphemeralKey:webPublicEphemeralKey,webPrivateEphemeralKey:webPrivateEphemeralKey,ellipticPublicEphemeralKey:ellipticPublicEphemeralKey,ellipticPrivateEphemeralKey:ellipticPrivateEphemeralKey,nodePublicEphemeralKey:nodePublicEphemeralKey,nodePrivateEphemeralKey:nodePrivateEphemeralKey,validateParams:validateParams,parseParams:parseParams}},{"../../../enums":113,"../../../util":158,"../../aes_kw":80,"../../cipher":86,"../../hash":92,"../../random":109,"./curves":100,"./indutnyKey":105,"bn.js":16,"tweetnacl/nacl-fast-light.js":72}],102:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("bn.js");var a=_interopRequireDefault(t);var i=e("../../../enums");var s=_interopRequireDefault(i);var f=e("../../../util");var c=_interopRequireDefault(f);var l=e("../../random");var d=_interopRequireDefault(l);var u=e("../../hash");var o=_interopRequireDefault(u);var h=e("./curves");var v=_interopRequireDefault(h);var p=e("./indutnyKey");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const b=c.default.getWebCrypto();const y=c.default.getNodeCrypto();async function sign(e,r,n,t,a,i){const s=new v.default(e);if(n&&!c.default.isStream(n)){const e={publicKey:t,privateKey:a};switch(s.type){case"web":{try{return await webSign(s,r,n,e)}catch(e){if(s.name!=="p521"&&(e.name==="DataError"||e.name==="OperationError")){throw e}c.default.print_debug_error("Browser did not support verifying: "+e.message)}break}case"node":{const t=await nodeSign(s,r,n,e);return{r:t.r.toArrayLike(Uint8Array),s:t.s.toArrayLike(Uint8Array)}}}}return ellipticSign(s,i,a)}async function verify(e,r,n,t,a,i){const s=new v.default(e);if(t&&!c.default.isStream(t)){switch(s.type){case"web":try{return await webVerify(s,r,n,t,a)}catch(e){if(s.name!=="p521"&&(e.name==="DataError"||e.name==="OperationError")){throw e}c.default.print_debug_error("Browser did not support verifying: "+e.message)}break;case"node":return nodeVerify(s,r,n,t,a)}}const f=typeof r==="undefined"?t:i;return ellipticVerify(s,n,f,a)}async function validateParams(e,r,n){const t=new v.default(e);if(t.keyType!==s.default.publicKey.ecdsa){return false}switch(t.type){case"web":case"node":{const t=await d.default.getRandomBytes(8);const a=s.default.hash.sha256;const i=await o.default.digest(a,t);try{const s=await sign(e,a,t,r,n,i);return await verify(e,a,s,t,r,i)}catch(e){return false}}default:return(0,h.validateStandardParams)(s.default.publicKey.ecdsa,e,r,n)}}function parseParams(e){if(e.length<2||e.length>3){throw new Error("Unexpected number of parameters")}const r=e[0];const n=new v.default(r);const t={oid:r};t.Q=e[1].toUint8Array();if(e.length===3){t.d=e[2].toUint8Array("be",n.payloadSize)}return t}n.default={sign:sign,verify:verify,ellipticVerify:ellipticVerify,ellipticSign:ellipticSign,validateParams:validateParams,parseParams:parseParams};async function ellipticSign(e,r,n){const t=await(0,p.getIndutnyCurve)(e.name);const a=(0,p.keyFromPrivate)(t,n);const i=a.sign(r);return{r:i.r.toArrayLike(Uint8Array),s:i.s.toArrayLike(Uint8Array)}}async function ellipticVerify(e,r,n,t){const a=await(0,p.getIndutnyCurve)(e.name);const i=(0,p.keyFromPublic)(a,t);return i.verify(n,r)}async function webSign(e,r,n,t){const a=e.payloadSize;const i=(0,h.privateToJwk)(e.payloadSize,h.webCurves[e.name],t.publicKey,t.privateKey);const f=await b.importKey("jwk",i,{name:"ECDSA",namedCurve:h.webCurves[e.name],hash:{name:s.default.read(s.default.webHash,e.hash)}},false,["sign"]);const c=new Uint8Array(await b.sign({name:"ECDSA",namedCurve:h.webCurves[e.name],hash:{name:s.default.read(s.default.webHash,r)}},f,n));return{r:c.slice(0,a),s:c.slice(a,a<<1)}}async function webVerify(e,r,{r:n,s:t},a,i){const f=e.payloadSize;const l=(0,h.rawPublicToJwk)(e.payloadSize,h.webCurves[e.name],i);const d=await b.importKey("jwk",l,{name:"ECDSA",namedCurve:h.webCurves[e.name],hash:{name:s.default.read(s.default.webHash,e.hash)}},false,["verify"]);const u=c.default.concatUint8Array([new Uint8Array(f-n.length),n,new Uint8Array(f-t.length),t]).buffer;return b.verify({name:"ECDSA",namedCurve:h.webCurves[e.name],hash:{name:s.default.read(s.default.webHash,r)}},d,u,a)}async function nodeSign(e,r,n,t){const a=y.createSign(s.default.read(s.default.hash,r));a.write(n);a.end();const i=m.encode({version:1,parameters:e.oid,privateKey:Array.from(t.privateKey),publicKey:{unused:0,data:Array.from(t.publicKey)}},"pem",{label:"EC PRIVATE KEY"});return w.decode(a.sign(i),"der")}async function nodeVerify(e,r,{r:n,s:t},i,f){const c=y.createVerify(s.default.read(s.default.hash,r));c.write(i);c.end();const l=E.encode({algorithm:{algorithm:[1,2,840,10045,2,1],parameters:e.oid},subjectPublicKey:{unused:0,data:Array.from(f)}},"pem",{label:"PUBLIC KEY"});const d=w.encode({r:new a.default(n),s:new a.default(t)},"der");try{return c.verify(l,d)}catch(e){return false}}const g=y?e("asn1.js"):undefined;const w=y?g.define("ECDSASignature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())}):undefined;const m=y?g.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").explicit(0).optional().any(),this.key("publicKey").explicit(1).optional().bitstr())}):undefined;const A=y?g.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())}):undefined;const E=y?g.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(A),this.key("subjectPublicKey").bitstr())}):undefined},{"../../../enums":113,"../../../util":158,"../../hash":92,"../../random":109,"./curves":100,"./indutnyKey":105,"asn1.js":"asn1.js","bn.js":16}],103:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("hash.js/lib/hash/sha/512");var a=_interopRequireDefault(t);var i=e("tweetnacl/nacl-fast-light.js");var s=_interopRequireDefault(i);var f=e("../../../util");var c=_interopRequireDefault(f);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}s.default.hash=(e=>new Uint8Array((0,a.default)().update(e).digest()));async function sign(e,r,n,t,a,i){const f=c.default.concatUint8Array([a,t.subarray(1)]);const l=s.default.sign.detached(i,f);return{R:l.subarray(0,32),S:l.subarray(32)}}async function verify(e,r,{R:n,S:t},a,i,f){const l=c.default.concatUint8Array([n,t]);return s.default.sign.detached.verify(f,l,i.subarray(1))}async function validateParams(e,r,n){if(e.getName()!=="ed25519"){return false}var t=s.default.sign.keyPair.fromSeed(n);const a=t.publicKey;const i=new Uint8Array([64,...a]);return c.default.equalsUint8Array(r,i)}function parseParams(e){if(e.length<2||e.length>3){throw new Error("Unexpected number of parameters")}const r={oid:e[0],Q:e[1].toUint8Array("be",33)};if(e.length===3){r.seed=e[2].toUint8Array("be",32)}return r}n.default={sign:sign,verify:verify,validateParams:validateParams,parseParams:parseParams}},{"../../../util":158,"hash.js/lib/hash/sha/512":43,"tweetnacl/nacl-fast-light.js":72}],104:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("./curves");var a=_interopRequireDefault(t);var i=e("./ecdsa");var s=_interopRequireDefault(i);var f=e("./eddsa");var c=_interopRequireDefault(f);var l=e("./ecdh");var d=_interopRequireDefault(l);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}n.default={Curve:a.default,ecdh:d.default,ecdsa:s.default,eddsa:c.default,generate:t.generate,getPreferredHashAlgo:t.getPreferredHashAlgo}},{"./curves":100,"./ecdh":101,"./ecdsa":102,"./eddsa":103}],105:[function(e,r,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.keyFromPrivate=keyFromPrivate;n.keyFromPublic=keyFromPublic;n.getIndutnyCurve=getIndutnyCurve;var t=e("../../../lightweight_helper");var a=e("../../../config");var i=_interopRequireDefault(a);var s=e("../../../util");var f=_interopRequireDefault(s);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function keyFromPrivate(e,r){const n=e.keyPair({priv:r});return n}function keyFromPublic(e,r){const n=e.keyPair({pub:r});if(n.validate().result!==true){throw new Error("Invalid elliptic public key")}return n}async function loadEllipticPromise(){const e=i.default.indutny_elliptic_path;const n=i.default.indutny_elliptic_fetch_options;const a=(0,t.dl)(e,n).catch(()=>(0,t.dl)(e,n));const s=await a;const f=URL.createObjectURL(new Blob([s],{type:"text/javascript"}));await(0,t.loadScript)(f);URL.revokeObjectURL(f);if(!r.openpgp.elliptic){throw new Error("Elliptic library failed to load correctly")}return r.openpgp.elliptic}let c;function loadElliptic(){if(!i.default.external_indutny_elliptic){return e("elliptic")}if(f.default.detectNode()){return e(i.default.indutny_elliptic_path)}if(!c){c=loadEllipticPromise().catch(e=>{c=undefined;throw e})}return c}async function getIndutnyCurve(e){if(!i.default.use_indutny_elliptic){throw new Error("This curve is only supported in the full build of OpenPGP.js")}const r=await loadElliptic();return new r.ec(e)}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"../../../config":79,"../../../lightweight_helper":125,"../../../util":158,elliptic:18}],106:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("tweetnacl/nacl-fast-light.js");var a=_interopRequireDefault(t);var i=e("./rsa");var s=_interopRequireDefault(i);var f=e("./elgamal");var c=_interopRequireDefault(f);var l=e("./elliptic");var d=_interopRequireDefault(l);var u=e("./dsa");var o=_interopRequireDefault(u);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}n.default={rsa:s.default,elgamal:c.default,elliptic:d.default,dsa:o.default,nacl:a.default}},{"./dsa":98,"./elgamal":99,"./elliptic":104,"./rsa":108,"tweetnacl/nacl-fast-light.js":72}],107:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("bn.js");var a=_interopRequireDefault(t);var i=e("../random");var s=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}n.default={randomProbablePrime:randomProbablePrime,isProbablePrime:isProbablePrime,fermat:fermat,millerRabin:millerRabin,divisionTest:divisionTest};async function randomProbablePrime(e,r,n){const t=new a.default(1).shln(e-1);const i=new a.default(30);const f=[1,6,5,4,3,2,1,4,3,2,1,2,1,4,3,2,1,2,1,4,3,2,1,6,5,4,3,2,1,2];let c=await s.default.getRandomBN(t,t.shln(1));let l=c.mod(i).toNumber();do{c.iaddn(f[l]);l=(l+f[l])%f.length;if(c.bitLength()>e){c=c.mod(t.shln(1)).iadd(t);l=c.mod(i).toNumber()}}while(!await isProbablePrime(c,r,n));return c}async function isProbablePrime(e,r,n){if(r&&!e.subn(1).gcd(r).eqn(1)){return false}if(!divisionTest(e)){return false}if(!fermat(e)){return false}if(!await millerRabin(e,n)){return false}return true}function fermat(e,r){r=r||new a.default(2);return r.toRed(a.default.mont(e)).redPow(e.subn(1)).fromRed().cmpn(1)===0}function divisionTest(e){return f.every(r=>{return e.modn(r)!==0})}const f=[7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999,3001,3011,3019,3023,3037,3041,3049,3061,3067,3079,3083,3089,3109,3119,3121,3137,3163,3167,3169,3181,3187,3191,3203,3209,3217,3221,3229,3251,3253,3257,3259,3271,3299,3301,3307,3313,3319,3323,3329,3331,3343,3347,3359,3361,3371,3373,3389,3391,3407,3413,3433,3449,3457,3461,3463,3467,3469,3491,3499,3511,3517,3527,3529,3533,3539,3541,3547,3557,3559,3571,3581,3583,3593,3607,3613,3617,3623,3631,3637,3643,3659,3671,3673,3677,3691,3697,3701,3709,3719,3727,3733,3739,3761,3767,3769,3779,3793,3797,3803,3821,3823,3833,3847,3851,3853,3863,3877,3881,3889,3907,3911,3917,3919,3923,3929,3931,3943,3947,3967,3989,4001,4003,4007,4013,4019,4021,4027,4049,4051,4057,4073,4079,4091,4093,4099,4111,4127,4129,4133,4139,4153,4157,4159,4177,4201,4211,4217,4219,4229,4231,4241,4243,4253,4259,4261,4271,4273,4283,4289,4297,4327,4337,4339,4349,4357,4363,4373,4391,4397,4409,4421,4423,4441,4447,4451,4457,4463,4481,4483,4493,4507,4513,4517,4519,4523,4547,4549,4561,4567,4583,4591,4597,4603,4621,4637,4639,4643,4649,4651,4657,4663,4673,4679,4691,4703,4721,4723,4729,4733,4751,4759,4783,4787,4789,4793,4799,4801,4813,4817,4831,4861,4871,4877,4889,4903,4909,4919,4931,4933,4937,4943,4951,4957,4967,4969,4973,4987,4993,4999];async function millerRabin(e,r,n){const t=e.bitLength();const i=a.default.mont(e);const f=new a.default(1).toRed(i);if(!r){r=Math.max(1,t/48|0)}const c=e.subn(1);const l=c.toRed(i);let d=0;while(!c.testn(d)){d++}const u=e.shrn(d);for(;r>0;r--){const e=n?n():await s.default.getRandomBN(new a.default(2),c);let r=e.toRed(i).redPow(u);if(r.eq(f)||r.eq(l)){continue}let t;for(t=1;tm.generateKeyPair("rsa",r,(r,t,a)=>{if(r){n(r)}else{e(E.decode(a,"der"))}}));return{n:t.modulus,e:t.publicExponent,d:t.privateExponent,p:t.prime2,q:t.prime1,u:t.coefficient}}let i=await s.default.randomProbablePrime(e-(e>>1),n,40);let f=await s.default.randomProbablePrime(e>>1,n,40);if(i.cmp(f)<0){var c=[i,f];f=c[0];i=c[1]}const l=f.subn(1).mul(i.subn(1));return{n:f.mul(i),e:n,d:n.invm(l),p:f,q:i,u:f.invm(i)}},validateParams:async function validateParams(e,r,n,t,i,s){e=new a.default(e);t=new a.default(t);i=new a.default(i);if(!t.mul(i).eq(e)){return false}const f=new a.default(1);const l=new a.default(2);s=new a.default(s);if(!t.mul(s).umod(i).eq(f)){return false}r=new a.default(r);n=new a.default(n);const d=await c.default.getRandomBN(l,l.shln(e.bitLength()/3));const u=d.mul(n).mul(r);const o=u.umod(t.sub(f)).eq(d)&&u.umod(i.sub(f)).eq(d);if(!o){return false}return true},bnSign:async function bnSign(e,r,n,t){r=new a.default(r);const i=new a.default(await v.default.emsa.encode(e,t,r.byteLength()),16);n=new a.default(n);if(r.cmp(i)<=0){throw new Error("Message size cannot exceed modulus size")}const s=new a.default.red(r);return i.toRed(s).redPow(n).toArrayLike(Uint8Array,"be",r.byteLength())},webSign:async function webSign(e,r,n,t,a,i,s,f){const c=privateToJwk(n,t,a,i,s,f);const l={name:"RSASSA-PKCS1-v1_5",hash:{name:e}};const d=await w.importKey("jwk",c,l,false,["sign"]);return new Uint8Array(await w.sign({name:"RSASSA-PKCS1-v1_5",hash:e},d,r))},nodeSign:async function nodeSign(e,r,n,t,i,s,f,c){const l=new a.default(s);const d=new a.default(f);const u=new a.default(i);const o=u.mod(d.subn(1));const h=u.mod(l.subn(1));const v=m.createSign(b.default.read(b.default.hash,e));v.write(r);v.end();const p={version:0,modulus:new a.default(n),publicExponent:new a.default(t),privateExponent:new a.default(i),prime1:new a.default(f),prime2:new a.default(s),exponent1:o,exponent2:h,coefficient:new a.default(c)};if(typeof m.createPrivateKey!=="undefined"){const e=E.encode(p,"der");return new Uint8Array(v.sign({key:e,format:"der",type:"pkcs1"}))}const y=E.encode(p,"pem",{label:"RSA PRIVATE KEY"});return new Uint8Array(v.sign(y))},bnVerify:async function bnVerify(e,r,n,t,i){n=new a.default(n);r=new a.default(r);t=new a.default(t);if(n.cmp(r)<=0){throw new Error("Signature size cannot exceed modulus size")}const s=new a.default.red(n);const f=r.toRed(s).redPow(t).toArrayLike(Uint8Array,"be",n.byteLength());const c=await v.default.emsa.encode(e,i,n.byteLength());return o.default.Uint8Array_to_hex(f)===c},webVerify:async function webVerify(e,r,n,t,a){const i=publicToJwk(t,a);const s=await w.importKey("jwk",i,{name:"RSASSA-PKCS1-v1_5",hash:{name:e}},false,["verify"]);return w.verify({name:"RSASSA-PKCS1-v1_5",hash:e},s,n,r)},nodeVerify:async function nodeVerify(e,r,n,t,i){const s=m.createVerify(b.default.read(b.default.hash,e));s.write(r);s.end();const f={modulus:new a.default(t),publicExponent:new a.default(i)};let c;if(typeof m.createPrivateKey!=="undefined"){const e=S.encode(f,"der");c={key:e,format:"der",type:"pkcs1"}}else{c=S.encode(f,"pem",{label:"RSA PUBLIC KEY"})}try{return await s.verify(c,n)}catch(e){return false}},nodeEncrypt:async function nodeEncrypt(e,r,n){const t={modulus:new a.default(r),publicExponent:new a.default(n)};let i;if(typeof m.createPrivateKey!=="undefined"){const e=S.encode(t,"der");i={key:e,format:"der",type:"pkcs1",padding:m.constants.RSA_PKCS1_PADDING}}else{const e=S.encode(t,"pem",{label:"RSA PUBLIC KEY"});i={key:e,padding:m.constants.RSA_PKCS1_PADDING}}return new Uint8Array(m.publicEncrypt(i,e))},bnEncrypt:async function bnEncrypt(e,r,n){r=new a.default(r);e=new g.default(await v.default.eme.encode(o.default.Uint8Array_to_str(e),r.byteLength()));e=e.toBN();n=new a.default(n);if(r.cmp(e)<=0){throw new Error("Message size cannot exceed modulus size")}const t=new a.default.red(r);return e.toRed(t).redPow(n).toArrayLike(Uint8Array,"be",r.byteLength())},nodeDecrypt:function nodeDecrypt(e,r,n,t,i,s,f){const c=new a.default(i);const l=new a.default(s);const d=new a.default(t);const u=d.mod(l.subn(1));const h=d.mod(c.subn(1));const v={version:0,modulus:new a.default(r),publicExponent:new a.default(n),privateExponent:new a.default(t),prime1:new a.default(s),prime2:new a.default(i),exponent1:u,exponent2:h,coefficient:new a.default(f)};let p;if(typeof m.createPrivateKey!=="undefined"){const e=E.encode(v,"der");p={key:e,format:"der",type:"pkcs1",padding:m.constants.RSA_PKCS1_PADDING}}else{const e=E.encode(v,"pem",{label:"RSA PRIVATE KEY"});p={key:e,padding:m.constants.RSA_PKCS1_PADDING}}return o.default.Uint8Array_to_str(m.privateDecrypt(p,e))},bnDecrypt:async function bnDecrypt(e,r,n,t,i,s,f){e=new a.default(e);r=new a.default(r);n=new a.default(n);t=new a.default(t);i=new a.default(i);s=new a.default(s);f=new a.default(f);if(r.cmp(e)<=0){throw new Error("Data too large.")}const l=t.mod(s.subn(1));const u=t.mod(i.subn(1));const o=new a.default.red(i);const h=new a.default.red(s);const p=new a.default.red(r);let b;let y;if(d.default.rsa_blinding){y=(await c.default.getRandomBN(new a.default(2),r)).toRed(p);b=y.redInvm().redPow(n);e=e.toRed(p).redMul(b).fromRed()}const w=e.toRed(o).redPow(u);const m=e.toRed(h).redPow(l);const A=m.redSub(w.fromRed().toRed(h));const E=f.toRed(h).redMul(A).fromRed();let S=E.mul(i).add(w).toRed(p);if(d.default.rsa_blinding){S=S.redMul(y)}return v.default.eme.decode(new g.default(S).toString())},prime:s.default};function privateToJwk(e,r,n,t,i,s){const f=new a.default(t);const c=new a.default(i);const l=new a.default(n);let d=l.mod(c.subn(1));let u=l.mod(f.subn(1));u=u.toArrayLike(Uint8Array);d=d.toArrayLike(Uint8Array);return{kty:"RSA",n:o.default.Uint8Array_to_b64(e,true),e:o.default.Uint8Array_to_b64(r,true),d:o.default.Uint8Array_to_b64(n,true),p:o.default.Uint8Array_to_b64(i,true),q:o.default.Uint8Array_to_b64(t,true),dp:o.default.Uint8Array_to_b64(d,true),dq:o.default.Uint8Array_to_b64(u,true),qi:o.default.Uint8Array_to_b64(s,true),ext:true}}function publicToJwk(e,r){return{kty:"RSA",n:o.default.Uint8Array_to_b64(e,true),e:o.default.Uint8Array_to_b64(r,true),ext:true}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"../../config":79,"../../enums":113,"../../type/mpi":155,"../../util":158,"../pkcs1":96,"../random":109,"./prime":107,"asn1.js":"asn1.js","bn.js":16}],109:[function(e,r,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("bn.js");var a=_interopRequireDefault(t);var i=e("../util");var s=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const f=s.default.detectNode()&&e("crypto");n.default={getRandomBytes:async function getRandomBytes(e){const n=new Uint8Array(e);if(typeof crypto!=="undefined"&&crypto.getRandomValues){crypto.getRandomValues(n)}else if(typeof r!=="undefined"&&typeof r.msCrypto==="object"&&typeof r.msCrypto.getRandomValues==="function"){r.msCrypto.getRandomValues(n)}else if(f){const e=f.randomBytes(n.length);n.set(e)}else if(this.randomBuffer.buffer){await this.randomBuffer.get(n)}else{throw new Error("No secure random number generator available.")}return n},getRandomBN:async function getRandomBN(e,r){if(r.cmp(e)<=0){throw new Error("Illegal parameter value: max <= min")}const n=r.sub(e);const t=n.byteLength();const i=new a.default(await this.getRandomBytes(t+8));return i.mod(n).add(e)},randomBuffer:new RandomBuffer};function RandomBuffer(){this.buffer=null;this.size=null;this.callback=null}RandomBuffer.prototype.init=function(e,r){this.buffer=new Uint8Array(e);this.size=0;this.callback=r};RandomBuffer.prototype.set=function(e){if(!this.buffer){throw new Error("RandomBuffer is not initialized")}if(!(e instanceof Uint8Array)){throw new Error("Invalid type: buf not an Uint8Array")}const r=this.buffer.length-this.size;if(e.length>r){e=e.subarray(0,r)}this.buffer.set(e,this.size);this.size+=e.length};RandomBuffer.prototype.get=async function(e){if(!this.buffer){throw new Error("RandomBuffer is not initialized")}if(!(e instanceof Uint8Array)){throw new Error("Invalid type: buf not an Uint8Array")}if(this.size>16|r&65280|(r&255)<<16}for(let e=0;e<=255;e++){h[1][e]=h[0][e]>>8^h[0][h[0][e]&255]}for(let e=0;e<=255;e++){h[2][e]=h[1][e]>>8^h[0][h[1][e]&255]}for(let e=0;e<=255;e++){h[3][e]=h[2][e]>>8^h[0][h[2][e]&255]}const v=function(){const e=new ArrayBuffer(2);new DataView(e).setInt16(0,255,true);return new Int16Array(e)[0]===255}();function createcrc24(e){let r=13501623;return a.default.transform(e,e=>{const n=v?Math.floor(e.length/4):0;const t=new Uint32Array(e.buffer,e.byteOffset,n);for(let e=0;e>24&255]^h[1][r>>16&255]^h[2][r>>8&255]^h[3][r>>0&255]}for(let t=n*4;t>8^h[0][r&255^e[t]]}},()=>new Uint8Array([r,r>>8,r>>16]))}function verifyHeaders(e){for(let r=0;r=0&&t!==e.length-1){r=e.slice(0,t);n=e.slice(t+1).substr(0,4)}return{body:r,checksum:n}}function dearmor(e){return new Promise(async(r,n)=>{try{const t=/^-----[^-]+-----$/m;const i=/^[ \f\r\t\u00a0\u2000-\u200a\u202f\u205f\u3000]*$/;let f;const c=[];let l=c;let u;let h=[];let v;let p;let b=s.default.decode(a.default.transformPair(e,async(e,s)=>{const d=a.default.getReader(e);try{while(true){let e=await d.readLine();if(e===undefined){throw new Error("Misformed armored text")}e=o.default.removeTrailingSpaces(e.replace(/[\r\n]/g,""));if(!f){if(t.test(e)){f=getType(e)}}else if(!u){if(t.test(e)){n(new Error("Mandatory blank line missing between armor headers and armor data"))}if(!i.test(e)){l.push(e)}else{verifyHeaders(l);u=true;if(v||f!==2){r({text:h,data:b,headers:c,type:f});break}}}else if(!v&&f===2){if(!t.test(e)){h.push(e.replace(/^- /,""))}else{h=h.join("\r\n");v=true;verifyHeaders(l);l=[];u=false}}}}catch(e){n(e);return}const y=a.default.getWriter(s);try{while(true){await y.ready;var g=await d.read();const e=g.done,r=g.value;if(e){throw new Error("Misformed armored text")}const n=r+"";if(n.indexOf("=")===-1&&n.indexOf("-")===-1){await y.write(n)}else{let e=await d.readToEnd();if(!e.length)e="";e=n+e;e=o.default.removeTrailingSpaces(e.replace(/\r/g,""));const r=e.split(t);if(r.length===1){throw new Error("Misformed armored text")}const a=splitChecksum(r[0].slice(0,-1));p=a.checksum;await y.write(a.body);break}}await y.ready;await y.close()}catch(e){await y.abort(e)}}));b=a.default.transformPair(b,async(e,r)=>{const n=a.default.readToEnd(getCheckSum(a.default.passiveClone(e)));n.catch(()=>{});await a.default.pipe(e,r,{preventClose:true});const t=a.default.getWriter(r);try{const e=(await n).replace("\r\n","");if(p!==e&&(p||d.default.checksum_required)){throw new Error("Ascii armor integrity check on message failed: '"+p+"' should be '"+e+"'")}await t.ready;await t.close()}catch(e){await t.abort(e)}})}catch(e){n(e)}})}function armor(e,r,n,t,i){let f;let l;if(e===c.default.armor.signed){f=r.text;l=r.hash;r=r.data}const d=a.default.passiveClone(r);const u=[];switch(e){case c.default.armor.multipart_section:u.push("-----BEGIN PGP MESSAGE, PART "+n+"/"+t+"-----\r\n");u.push(addheader(i));u.push(s.default.encode(r));u.push("=",getCheckSum(d));u.push("-----END PGP MESSAGE, PART "+n+"/"+t+"-----\r\n");break;case c.default.armor.multipart_last:u.push("-----BEGIN PGP MESSAGE, PART "+n+"-----\r\n");u.push(addheader(i));u.push(s.default.encode(r));u.push("=",getCheckSum(d));u.push("-----END PGP MESSAGE, PART "+n+"-----\r\n");break;case c.default.armor.signed:u.push("\r\n-----BEGIN PGP SIGNED MESSAGE-----\r\n");u.push("Hash: "+l+"\r\n\r\n");u.push(f.replace(/^-/gm,"- -"));u.push("\r\n-----BEGIN PGP SIGNATURE-----\r\n");u.push(addheader(i));u.push(s.default.encode(r));u.push("=",getCheckSum(d));u.push("-----END PGP SIGNATURE-----\r\n");break;case c.default.armor.message:u.push("-----BEGIN PGP MESSAGE-----\r\n");u.push(addheader(i));u.push(s.default.encode(r));u.push("=",getCheckSum(d));u.push("-----END PGP MESSAGE-----\r\n");break;case c.default.armor.public_key:u.push("-----BEGIN PGP PUBLIC KEY BLOCK-----\r\n");u.push(addheader(i));u.push(s.default.encode(r));u.push("=",getCheckSum(d));u.push("-----END PGP PUBLIC KEY BLOCK-----\r\n");break;case c.default.armor.private_key:u.push("-----BEGIN PGP PRIVATE KEY BLOCK-----\r\n");u.push(addheader(i));u.push(s.default.encode(r));u.push("=",getCheckSum(d));u.push("-----END PGP PRIVATE KEY BLOCK-----\r\n");break;case c.default.armor.signature:u.push("-----BEGIN PGP SIGNATURE-----\r\n");u.push(addheader(i));u.push(s.default.encode(r));u.push("=",getCheckSum(d));u.push("-----END PGP SIGNATURE-----\r\n");break}return o.default.concat(u)}n.default={encode:armor,decode:dearmor}},{"../config":79,"../enums.js":113,"../util":158,"./base64.js":112,"web-stream-tools":75}],112:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("web-stream-tools");var a=_interopRequireDefault(t);var i=e("../util");var s=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const f=s.default.getNodeBuffer();let c;let l;if(f){c=(e=>f.from(e).toString("base64"));l=(e=>{const r=f.from(e,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)})}else{c=(e=>btoa(s.default.Uint8Array_to_str(e)));l=(e=>s.default.str_to_Uint8Array(atob(e)))}function encode(e){let r=new Uint8Array;return a.default.transform(e,e=>{r=s.default.concatUint8Array([r,e]);const n=[];const t=45;const a=Math.floor(r.length/t);const i=a*t;const f=c(r.subarray(0,i));for(let e=0;er.length?c(r)+"\r\n":"")}function decode(e){let r="";return a.default.transform(e,e=>{r+=e;let n=0;const t=[" ","\t","\r","\n"];for(let e=0;e0&&(a-n)%4!==0;a--){if(t.includes(r[a]))n--}const i=l(r.substr(0,a));r=r.substr(a);return i},()=>l(r))}n.default={encode:encode,decode:decode}},{"../util":158,"web-stream-tools":75}],113:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});const t=Symbol("byValue");n.default={curve:{p256:"p256","P-256":"p256",secp256r1:"p256",prime256v1:"p256","1.2.840.10045.3.1.7":"p256","2a8648ce3d030107":"p256","2A8648CE3D030107":"p256",p384:"p384","P-384":"p384",secp384r1:"p384","1.3.132.0.34":"p384","2b81040022":"p384","2B81040022":"p384",p521:"p521","P-521":"p521",secp521r1:"p521","1.3.132.0.35":"p521","2b81040023":"p521","2B81040023":"p521",secp256k1:"secp256k1","1.3.132.0.10":"secp256k1","2b8104000a":"secp256k1","2B8104000A":"secp256k1",ED25519:"ed25519",ed25519:"ed25519",Ed25519:"ed25519","1.3.6.1.4.1.11591.15.1":"ed25519","2b06010401da470f01":"ed25519","2B06010401DA470F01":"ed25519",X25519:"curve25519",cv25519:"curve25519",curve25519:"curve25519",Curve25519:"curve25519","1.3.6.1.4.1.3029.1.5.1":"curve25519","2b060104019755010501":"curve25519","2B060104019755010501":"curve25519",brainpoolP256r1:"brainpoolP256r1","1.3.36.3.3.2.8.1.1.7":"brainpoolP256r1","2b2403030208010107":"brainpoolP256r1","2B2403030208010107":"brainpoolP256r1",brainpoolP384r1:"brainpoolP384r1","1.3.36.3.3.2.8.1.1.11":"brainpoolP384r1","2b240303020801010b":"brainpoolP384r1","2B240303020801010B":"brainpoolP384r1",brainpoolP512r1:"brainpoolP512r1","1.3.36.3.3.2.8.1.1.13":"brainpoolP512r1","2b240303020801010d":"brainpoolP512r1","2B240303020801010D":"brainpoolP512r1"},s2k:{simple:0,salted:1,iterated:3,gnu:101},publicKey:{rsa_encrypt_sign:1,rsa_encrypt:2,rsa_sign:3,elgamal:16,dsa:17,ecdh:18,ecdsa:19,eddsa:22,aedh:23,aedsa:24},symmetric:{plaintext:0,idea:1,"3des":2,tripledes:2,cast5:3,blowfish:4,aes128:7,aes192:8,aes256:9,twofish:10},compression:{uncompressed:0,zip:1,zlib:2,bzip2:3},hash:{md5:1,sha1:2,ripemd:3,sha256:8,sha384:9,sha512:10,sha224:11},webHash:{"SHA-1":2,"SHA-256":8,"SHA-384":9,"SHA-512":10},aead:{eax:1,ocb:2,experimental_gcm:100},packet:{publicKeyEncryptedSessionKey:1,signature:2,symEncryptedSessionKey:3,onePassSignature:4,secretKey:5,publicKey:6,secretSubkey:7,compressed:8,symmetricallyEncrypted:9,marker:10,literal:11,trust:12,userid:13,publicSubkey:14,userAttribute:17,symEncryptedIntegrityProtected:18,modificationDetectionCode:19,symEncryptedAEADProtected:20},literal:{binary:"b".charCodeAt(),text:"t".charCodeAt(),utf8:"u".charCodeAt(),mime:"m".charCodeAt()},signature:{binary:0,text:1,standalone:2,cert_generic:16,cert_persona:17,cert_casual:18,cert_positive:19,cert_revocation:48,subkey_binding:24,key_binding:25,key:31,key_revocation:32,subkey_revocation:40,timestamp:64,third_party:80},signatureSubpacket:{signature_creation_time:2,signature_expiration_time:3,exportable_certification:4,trust_signature:5,regular_expression:6,revocable:7,key_expiration_time:9,placeholder_backwards_compatibility:10,preferred_symmetric_algorithms:11,revocation_key:12,issuer:16,notation_data:20,preferred_hash_algorithms:21,preferred_compression_algorithms:22,key_server_preferences:23,preferred_key_server:24,primary_user_id:25,policy_uri:26,key_flags:27,signers_user_id:28,reason_for_revocation:29,features:30,signature_target:31,embedded_signature:32,issuer_fingerprint:33,preferred_aead_algorithms:34},keyFlags:{certify_keys:1,sign_data:2,encrypt_communication:4,encrypt_storage:8,split_private_key:16,authentication:32,shared_private_key:128},armor:{multipart_section:0,multipart_last:1,signed:2,message:3,public_key:4,private_key:5,signature:6},reasonForRevocation:{no_reason:0,key_superseded:1,key_compromised:2,key_retired:3,userid_invalid:32},features:{modification_detection:1,aead:2,v5_keys:4},write:function write(e,r){if(typeof r==="number"){r=this.read(e,r)}if(e[r]!==undefined){return e[r]}throw new Error("Invalid enum value.")},read:function read(e,r){if(!e[t]){e[t]=[];Object.entries(e).forEach(([r,n])=>{e[t][n]=r})}if(e[t][r]!==undefined){return e[t][r]}throw new Error("Invalid enum value.")}}},{}],114:[function(e,r,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("./config");var a=_interopRequireDefault(t);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function HKP(n){this._baseUrl=n||a.default.keyserver;this._fetch=typeof r.fetch==="function"?r.fetch:e("node-fetch")}HKP.prototype.lookup=function(e){let r=this._baseUrl+"/pks/lookup?op=get&options=mr&search=";const n=this._fetch;if(e.keyId){r+="0x"+encodeURIComponent(e.keyId)}else if(e.query){r+=encodeURIComponent(e.query)}else{throw new Error("You must provide a query parameter!")}return n(r).then(function(e){if(e.status===200){return e.text()}}).then(function(e){if(!e||e.indexOf("-----END PGP PUBLIC KEY BLOCK-----")<0){return}return e.trim()})};HKP.prototype.upload=function(e){const r=this._baseUrl+"/pks/add";const n=this._fetch;return n(r,{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"keytext="+encodeURIComponent(e)})};n.default=HKP}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./config":79,"node-fetch":"node-fetch"}],115:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.lightweight=n.WKD=n.HKP=n.AsyncProxy=n.Keyring=n.crypto=n.config=n.enums=n.armor=n.stream=n.OID=n.KDFParams=n.ECDHSymmetricKey=n.Keyid=n.S2K=n.MPI=n.packet=n.util=n.cleartext=n.message=n.signature=n.key=n.destroyWorker=n.getWorker=n.initWorker=n.decryptSessionKeys=n.encryptSessionKey=n.decryptKey=n.revokeKey=n.reformatKey=n.generateKey=n.verify=n.sign=n.decrypt=n.encrypt=undefined;var t=e("./openpgp");Object.defineProperty(n,"encrypt",{enumerable:true,get:function get(){return t.encrypt}});Object.defineProperty(n,"decrypt",{enumerable:true,get:function get(){return t.decrypt}});Object.defineProperty(n,"sign",{enumerable:true,get:function get(){return t.sign}});Object.defineProperty(n,"verify",{enumerable:true,get:function get(){return t.verify}});Object.defineProperty(n,"generateKey",{enumerable:true,get:function get(){return t.generateKey}});Object.defineProperty(n,"reformatKey",{enumerable:true,get:function get(){return t.reformatKey}});Object.defineProperty(n,"revokeKey",{enumerable:true,get:function get(){return t.revokeKey}});Object.defineProperty(n,"decryptKey",{enumerable:true,get:function get(){return t.decryptKey}});Object.defineProperty(n,"encryptSessionKey",{enumerable:true,get:function get(){return t.encryptSessionKey}});Object.defineProperty(n,"decryptSessionKeys",{enumerable:true,get:function get(){return t.decryptSessionKeys}});Object.defineProperty(n,"initWorker",{enumerable:true,get:function get(){return t.initWorker}});Object.defineProperty(n,"getWorker",{enumerable:true,get:function get(){return t.getWorker}});Object.defineProperty(n,"destroyWorker",{enumerable:true,get:function get(){return t.destroyWorker}});var a=e("./util");Object.defineProperty(n,"util",{enumerable:true,get:function get(){return _interopRequireDefault(a).default}});var i=e("./packet");Object.defineProperty(n,"packet",{enumerable:true,get:function get(){return _interopRequireDefault(i).default}});var s=e("./type/mpi");Object.defineProperty(n,"MPI",{enumerable:true,get:function get(){return _interopRequireDefault(s).default}});var f=e("./type/s2k");Object.defineProperty(n,"S2K",{enumerable:true,get:function get(){return _interopRequireDefault(f).default}});var c=e("./type/keyid");Object.defineProperty(n,"Keyid",{enumerable:true,get:function get(){return _interopRequireDefault(c).default}});var l=e("./type/ecdh_symkey");Object.defineProperty(n,"ECDHSymmetricKey",{enumerable:true,get:function get(){return _interopRequireDefault(l).default}});var d=e("./type/kdf_params");Object.defineProperty(n,"KDFParams",{enumerable:true,get:function get(){return _interopRequireDefault(d).default}});var u=e("./type/oid");Object.defineProperty(n,"OID",{enumerable:true,get:function get(){return _interopRequireDefault(u).default}});var o=e("web-stream-tools");Object.defineProperty(n,"stream",{enumerable:true,get:function get(){return _interopRequireDefault(o).default}});var h=e("./encoding/armor");Object.defineProperty(n,"armor",{enumerable:true,get:function get(){return _interopRequireDefault(h).default}});var v=e("./enums");Object.defineProperty(n,"enums",{enumerable:true,get:function get(){return _interopRequireDefault(v).default}});var p=e("./config/config");Object.defineProperty(n,"config",{enumerable:true,get:function get(){return _interopRequireDefault(p).default}});var b=e("./crypto");Object.defineProperty(n,"crypto",{enumerable:true,get:function get(){return _interopRequireDefault(b).default}});var y=e("./keyring");Object.defineProperty(n,"Keyring",{enumerable:true,get:function get(){return _interopRequireDefault(y).default}});var g=e("./worker/async_proxy");Object.defineProperty(n,"AsyncProxy",{enumerable:true,get:function get(){return _interopRequireDefault(g).default}});var w=e("./hkp");Object.defineProperty(n,"HKP",{enumerable:true,get:function get(){return _interopRequireDefault(w).default}});var m=e("./wkd");Object.defineProperty(n,"WKD",{enumerable:true,get:function get(){return _interopRequireDefault(m).default}});var A=_interopRequireWildcard(t);var E=e("./key");var S=_interopRequireWildcard(E);var k=e("./signature");var R=_interopRequireWildcard(k);var M=e("./message");var C=_interopRequireWildcard(M);var D=e("./cleartext");var j=_interopRequireWildcard(D);var q=e("./lightweight_helper");var B=_interopRequireWildcard(q);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}n.default=A;const _=n.key=S;const U=n.signature=R;const K=n.message=C;const x=n.cleartext=j;const I=n.lightweight=B},{"./cleartext":77,"./config/config":78,"./crypto":94,"./encoding/armor":111,"./enums":113,"./hkp":114,"./key":118,"./keyring":122,"./lightweight_helper":125,"./message":126,"./openpgp":127,"./packet":131,"./signature":151,"./type/ecdh_symkey":152,"./type/kdf_params":153,"./type/keyid":154,"./type/mpi":155,"./type/oid":156,"./type/s2k":157,"./util":158,"./wkd":159,"./worker/async_proxy":160,"web-stream-tools":75}],116:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.generate=generate;n.reformat=reformat;n.read=read;n.readArmored=readArmored;var t=e("../packet");var a=_interopRequireDefault(t);var i=e("./key");var s=_interopRequireDefault(i);var f=e("./helper");var c=_interopRequireWildcard(f);var l=e("../enums");var d=_interopRequireDefault(l);var u=e("../util");var o=_interopRequireDefault(u);var h=e("../config");var v=_interopRequireDefault(h);var p=e("../encoding/armor");var b=_interopRequireDefault(p);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function generate(e){e.sign=true;e=c.sanitizeKeyOptions(e);e.subkeys=e.subkeys.map(function(r,n){return c.sanitizeKeyOptions(e.subkeys[n],e)});let r=[c.generateSecretKey(e)];r=r.concat(e.subkeys.map(c.generateSecretSubkey));return Promise.all(r).then(r=>wrapKeyObject(r[0],r.slice(1),e))}async function reformat(e){e=sanitize(e);try{const r=e.privateKey.getKeys().every(e=>e.isDecrypted());if(!r){await e.privateKey.decrypt()}}catch(e){throw new Error("Key not decrypted")}const r=e.privateKey.toPacketlist();let n;const t=[];for(let e=0;e({sign:await e.privateKey.getSigningKey(r.getKeyId(),null).catch(()=>{})&&!await e.privateKey.getEncryptionKey(r.getKeyId(),null).catch(()=>{})})))}if(e.subkeys.length!==t.length){throw new Error("Number of subkey options does not match number of subkeys")}e.subkeys=e.subkeys.map(function(r,n){return sanitize(e.subkeys[n],e)});return wrapKeyObject(n,t,e);function sanitize(e,r={}){e.keyExpirationTime=e.keyExpirationTime||r.keyExpirationTime;e.passphrase=o.default.isString(e.passphrase)?e.passphrase:r.passphrase;e.date=e.date||r.date;return e}}async function wrapKeyObject(e,r,n){if(n.passphrase){await e.encrypt(n.passphrase)}await Promise.all(r.map(async function(e,r){const t=n.subkeys[r].passphrase;if(t){await e.encrypt(t)}}));const t=new a.default.List;t.push(e);await Promise.all(n.userIds.map(async function(r,t){function createdPreferredAlgos(e,r){if(r){const n=e.indexOf(r);if(n>=1){e.splice(n,1)}if(n!==0){e.unshift(r)}}return e}const i=new a.default.Userid;i.format(r);const s={};s.userId=i;s.key=e;const f=new a.default.Signature(n.date);f.signatureType=d.default.signature.cert_generic;f.publicKeyAlgorithm=e.algorithm;f.hashAlgorithm=await c.getPreferredHashAlgo(null,e);f.keyFlags=[d.default.keyFlags.certify_keys|d.default.keyFlags.sign_data];f.preferredSymmetricAlgorithms=createdPreferredAlgos([d.default.symmetric.aes256,d.default.symmetric.aes128,d.default.symmetric.aes192,d.default.symmetric.cast5,d.default.symmetric.tripledes],v.default.encryption_cipher);if(v.default.aead_protect){f.preferredAeadAlgorithms=createdPreferredAlgos([d.default.aead.eax,d.default.aead.ocb],v.default.aead_mode)}f.preferredHashAlgorithms=createdPreferredAlgos([d.default.hash.sha256,d.default.hash.sha512,d.default.hash.sha1],v.default.prefer_hash_algorithm);f.preferredCompressionAlgorithms=createdPreferredAlgos([d.default.compression.zlib,d.default.compression.zip,d.default.compression.uncompressed],v.default.compression);if(t===0){f.isPrimaryUserID=true}if(v.default.integrity_protect){f.features=[0];f.features[0]|=d.default.features.modification_detection}if(v.default.aead_protect){f.features||(f.features=[0]);f.features[0]|=d.default.features.aead}if(v.default.v5_keys){f.features||(f.features=[0]);f.features[0]|=d.default.features.v5_keys}if(n.keyExpirationTime>0){f.keyExpirationTime=n.keyExpirationTime;f.keyNeverExpires=false}await f.sign(e,s);return{userIdPacket:i,signaturePacket:f}})).then(e=>{e.forEach(({userIdPacket:e,signaturePacket:r})=>{t.push(e);t.push(r)})});await Promise.all(r.map(async function(r,t){const a=n.subkeys[t];const i=await c.createBindingSignature(r,e,a);return{secretSubkeyPacket:r,subkeySignaturePacket:i}})).then(e=>{e.forEach(({secretSubkeyPacket:e,subkeySignaturePacket:r})=>{t.push(e);t.push(r)})});const i={key:e};t.push(await c.createSignaturePacket(i,null,e,{signatureType:d.default.signature.key_revocation,reasonForRevocationFlag:d.default.reasonForRevocation.no_reason,reasonForRevocationString:""},n.date));if(n.passphrase){e.clearPrivateParams()}await Promise.all(r.map(async function(e,r){const t=n.subkeys[r].passphrase;if(t){e.clearPrivateParams()}}));return new s.default(t)}async function read(e){const r={};r.keys=[];const n=[];try{const t=new a.default.List;await t.read(e);const i=t.indexOfTag(d.default.packet.publicKey,d.default.packet.secretKey);if(i.length===0){throw new Error("No key packet found")}for(let e=0;e=0;f--){try{if((!i||e[f].created>=i.created)&&!e[f].isExpired(a)&&(e[f].verified||await e[f].verify(r,n,t))){i=e[f]}}catch(e){s=e}}if(!i){throw h.default.wrapError(`Could not find valid ${f.default.read(f.default.signature,n)} signature in key ${r.getKeyId().toHex()}`.replace("cert_generic ","self-").replace("_"," "),s)}return i}function isDataExpired(e,r,n=new Date){const t=h.default.normalizeDate(n);if(t!==null){const a=getExpirationTime(e,r);return!(e.created<=t&&t<=a)||r&&r.isExpired(n)}return false}async function createBindingSignature(e,r,n){const t={};t.key=r;t.bind=e;const a=new i.default.Signature(n.date);a.signatureType=f.default.signature.subkey_binding;a.publicKeyAlgorithm=r.algorithm;a.hashAlgorithm=await getPreferredHashAlgo(null,e);if(n.sign){a.keyFlags=[f.default.keyFlags.sign_data];a.embeddedSignature=await createSignaturePacket(t,null,e,{signatureType:f.default.signature.key_binding},n.date)}else{a.keyFlags=[f.default.keyFlags.encrypt_communication|f.default.keyFlags.encrypt_storage]}if(n.keyExpirationTime>0){a.keyExpirationTime=n.keyExpirationTime;a.keyNeverExpires=false}await a.sign(r,t);return a}async function getPreferredHashAlgo(e,r,n=new Date,a={}){let s=l.default.prefer_hash_algorithm;let f=s;if(e){const r=await e.getPrimaryUser(n,a);if(r.selfCertification.preferredHashAlgorithms){var c=t(r.selfCertification.preferredHashAlgorithms,1);f=c[0];s=u.default.hash.getHashByteLength(s)<=u.default.hash.getHashByteLength(f)?f:s}}switch(Object.getPrototypeOf(r)){case i.default.SecretKey.prototype:case i.default.PublicKey.prototype:case i.default.SecretSubkey.prototype:case i.default.PublicSubkey.prototype:switch(r.algorithm){case"ecdh":case"ecdsa":case"eddsa":f=u.default.publicKey.elliptic.getPreferredHashAlgo(r.params[0])}}return u.default.hash.getHashByteLength(s)<=u.default.hash.getHashByteLength(f)?f:s}async function getPreferredAlgo(e,r,n=new Date,t=[]){const a=e==="symmetric"?"preferredSymmetricAlgorithms":"preferredAeadAlgorithms";const i=e==="symmetric"?f.default.symmetric.aes128:f.default.aead.eax;const s={};await Promise.all(r.map(async function(e,r){const f=await e.getPrimaryUser(n,t[r]);if(!f.selfCertification[a]){return i}f.selfCertification[a].forEach(function(e,r){const n=s[e]||(s[e]={prio:0,count:0,algo:e});n.prio+=64>>r;n.count++})}));let c={prio:0,algo:i};Object.values(s).forEach(({prio:n,count:t,algo:a})=>{try{if(a!==f.default[e].plaintext&&a!==f.default[e].idea&&f.default.read(f.default[e],a)&&t===r.length&&n>c.prio){c=s[a]}}catch(e){}});return c.algo}async function createSignaturePacket(e,r,n,t,a,s,f=false,c=false){if(!n.isDecrypted()){throw new Error("Private key is not decrypted.")}const l=new i.default.Signature(a);Object.assign(l,t);l.publicKeyAlgorithm=n.algorithm;l.hashAlgorithm=await getPreferredHashAlgo(r,n,a,s);await l.sign(n,e,f,c);return l}async function mergeSignatures(e,r,n,t){e=e[n];if(e){if(!r[n].length){r[n]=e}else{await Promise.all(e.map(async function(e){if(!e.isExpired()&&(!t||await t(e))&&!r[n].some(function(r){return h.default.equalsUint8Array(r.signature,e.signature)})){r[n].push(e)}}))}}}async function isDataRevoked(e,r,n,t,a,i,s=new Date){i=i||e;const f=h.default.normalizeDate(s);const c=[];await Promise.all(t.map(async function(e){try{if((!a||e.issuerKeyId.equals(a.issuerKeyId))&&!(l.default.revocations_expire&&e.isExpired(f))&&(e.verified||await e.verify(i,r,n))){c.push(e.issuerKeyId)}}catch(e){}}));if(a){a.revoked=c.some(e=>e.equals(a.issuerKeyId))?true:a.revoked||false;return a.revoked}return c.length>0}function getExpirationTime(e,r){let n;if(r.keyNeverExpires===false){n=e.created.getTime()+r.keyExpirationTime*1e3}return n?new Date(n):Infinity}async function isAeadSupported(e,r=new Date,n=[]){let t=true;await Promise.all(e.map(async function(e,a){const i=await e.getPrimaryUser(r,n[a]);if(!i.selfCertification.features||!(i.selfCertification.features[0]&f.default.features.aead)){t=false}}));return t}function sanitizeKeyOptions(e,r={}){e.curve=e.curve||r.curve;e.rsaBits=e.rsaBits||r.rsaBits;e.keyExpirationTime=e.keyExpirationTime!==undefined?e.keyExpirationTime:r.keyExpirationTime;e.passphrase=h.default.isString(e.passphrase)?e.passphrase:r.passphrase;e.date=e.date||r.date;e.sign=e.sign||false;if(e.curve){try{e.curve=f.default.write(f.default.curve,e.curve)}catch(e){throw new Error("Not valid curve.")}if(e.curve===f.default.curve.ed25519||e.curve===f.default.curve.curve25519){e.curve=e.sign?f.default.curve.ed25519:f.default.curve.curve25519}if(e.sign){e.algorithm=e.curve===f.default.curve.ed25519?f.default.publicKey.eddsa:f.default.publicKey.ecdsa}else{e.algorithm=f.default.publicKey.ecdh}}else if(e.rsaBits){e.algorithm=f.default.publicKey.rsa_encrypt_sign}else{throw new Error("Unrecognized key type")}return e}function isValidSigningKeyPacket(e,r){if(!r.verified||r.revoked!==false){throw new Error("Signature not verified")}return e.algorithm!==f.default.read(f.default.publicKey,f.default.publicKey.rsa_encrypt)&&e.algorithm!==f.default.read(f.default.publicKey,f.default.publicKey.elgamal)&&e.algorithm!==f.default.read(f.default.publicKey,f.default.publicKey.ecdh)&&(!r.keyFlags||(r.keyFlags[0]&f.default.keyFlags.sign_data)!==0)}function isValidEncryptionKeyPacket(e,r){if(!r.verified||r.revoked!==false){throw new Error("Signature not verified")}return e.algorithm!==f.default.read(f.default.publicKey,f.default.publicKey.dsa)&&e.algorithm!==f.default.read(f.default.publicKey,f.default.publicKey.rsa_sign)&&e.algorithm!==f.default.read(f.default.publicKey,f.default.publicKey.ecdsa)&&e.algorithm!==f.default.read(f.default.publicKey,f.default.publicKey.eddsa)&&(!r.keyFlags||(r.keyFlags[0]&f.default.keyFlags.encrypt_communication)!==0||(r.keyFlags[0]&f.default.keyFlags.encrypt_storage)!==0)}},{"../config":79,"../crypto":94,"../enums":113,"../packet":131,"../util":158}],118:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.Key=n.createSignaturePacket=n.getPreferredHashAlgo=n.isAeadSupported=n.getPreferredAlgo=n.reformat=n.read=n.generate=n.readArmored=undefined;var t=e("./factory");var a=e("./helper");var i=e("./key.js");var s=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}n.readArmored=t.readArmored;n.generate=t.generate;n.read=t.read;n.reformat=t.reformat;n.getPreferredAlgo=a.getPreferredAlgo;n.isAeadSupported=a.isAeadSupported;n.getPreferredHashAlgo=a.getPreferredHashAlgo;n.createSignaturePacket=a.createSignaturePacket;n.Key=s.default},{"./factory":116,"./helper":117,"./key.js":119}],119:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.default=Key;var t=e("../encoding/armor");var a=_interopRequireDefault(t);var i=e("../packet");var s=_interopRequireDefault(i);var f=e("../enums");var c=_interopRequireDefault(f);var l=e("../util");var d=_interopRequireDefault(l);var u=e("./user");var o=_interopRequireDefault(u);var h=e("./subkey");var v=_interopRequireDefault(h);var p=e("./helper");var b=_interopRequireWildcard(p);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Key(e){if(!(this instanceof Key)){return new Key(e)}this.keyPacket=null;this.revocationSignatures=[];this.directSignatures=[];this.users=[];this.subKeys=[];this.packetlist2structure(e);if(!this.keyPacket||!this.users.length){throw new Error("Invalid key: need at least key and user ID packet")}}Object.defineProperty(Key.prototype,"primaryKey",{get(){return this.keyPacket},configurable:true,enumerable:true});Key.prototype.packetlist2structure=function(e){let r;let n;let t;for(let a=0;ae.concat(r.toPacketlist()));this.subKeys.map(r=>e.concat(r.toPacketlist()));return e};Key.prototype.getSubkeys=function(e=null){const r=[];this.subKeys.forEach(n=>{if(!e||n.getKeyId().equals(e,true)){r.push(n)}});return r};Key.prototype.getKeys=function(e=null){const r=[];if(!e||this.getKeyId().equals(e,true)){r.push(this)}return r.concat(this.getSubkeys(e))};Key.prototype.getKeyIds=function(){return this.getKeys().map(e=>e.getKeyId())};Key.prototype.getUserIds=function(){return this.users.map(e=>{return e.userId?e.userId.userid:null}).filter(e=>e!==null)};Key.prototype.isPublic=function(){return this.keyPacket.tag===c.default.packet.publicKey};Key.prototype.isPrivate=function(){return this.keyPacket.tag===c.default.packet.secretKey};Key.prototype.toPublic=function(){const e=new s.default.List;const r=this.toPacketlist();let n;let t;let a;for(let i=0;ir.keyPacket.created-e.keyPacket.created);let i;for(let n=0;nr.keyPacket.created-e.keyPacket.created);let i;for(let n=0;ne===true)};Key.prototype.validate=async function(){if(!this.isPrivate()){throw new Error("Cannot validate a public key")}let e;if(!this.keyPacket.isDummy()){e=this.primaryKey}else{const r=await this.getSigningKey(null,null);if(r&&!r.keyPacket.isDummy()){e=r.keyPacket}}if(e){return e.validate()}else{const e=this.getKeys();const r=e.map(e=>e.keyPacket.isDummy()).every(Boolean);if(r){throw new Error("Cannot validate an all-gnu-dummy key")}return Promise.all(e.map(async e=>e.keyPacket.validate()))}};Key.prototype.clearPrivateParams=function(){if(!this.isPrivate()){throw new Error("Can't clear private parameters of a public key")}this.getKeys().forEach(({keyPacket:e})=>{if(e.isDecrypted()){e.clearPrivateParams()}})};Key.prototype.isRevoked=async function(e,r,n=new Date){return b.isDataRevoked(this.keyPacket,c.default.signature.key_revocation,{key:this.keyPacket},this.revocationSignatures,e,r,n)};Key.prototype.verifyPrimaryKey=async function(e=new Date,r={}){const n=this.keyPacket;if(await this.isRevoked(null,null,e)){throw new Error("Primary key is revoked")}if(!this.users.some(e=>e.userId&&e.selfCertifications.length)){throw new Error("No self-certifications")}var t=await this.getPrimaryUser(e,r);const a=t.selfCertification;if(b.isDataExpired(n,a,e)){throw new Error("Primary key is expired")}};Key.prototype.getExpirationTime=async function(e,r,n){const t=await this.getPrimaryUser(null,n);const a=t.selfCertification;const i=b.getExpirationTime(this.keyPacket,a);const s=a.getExpirationTime();let f=i{})||await this.getEncryptionKey(r,null,n).catch(()=>{});if(!e)return null;const t=await e.getExpirationTime(this.keyPacket);if(t{})||await this.getSigningKey(r,null,n).catch(()=>{});if(!e)return null;const t=await e.getExpirationTime(this.keyPacket);if(t{return e.subKeys.some(e=>{return r.hasSameFingerprintAs(e)})});if(!r){throw new Error("Cannot update public key with private key if subkey mismatch")}this.keyPacket=e.keyPacket}await b.mergeSignatures(e,this,"revocationSignatures",r=>{return b.isDataRevoked(this.keyPacket,c.default.signature.key_revocation,this,[r],null,e.keyPacket)});await b.mergeSignatures(e,this,"directSignatures");await Promise.all(e.users.map(async e=>{let r=false;await Promise.all(this.users.map(async n=>{if(e.userId&&n.userId&&e.userId.userid===n.userId.userid||e.userAttribute&&e.userAttribute.equals(n.userAttribute)){await n.update(e,this.keyPacket);r=true}}));if(!r){this.users.push(e)}}));await Promise.all(e.subKeys.map(async e=>{let r=false;await Promise.all(this.subKeys.map(async n=>{if(n.hasSameFingerprintAs(e)){await n.update(e,this.keyPacket);r=true}}));if(!r){this.subKeys.push(e)}}))};Key.prototype.revoke=async function({flag:e=c.default.reasonForRevocation.no_reason,string:r=""}={},n=new Date){if(this.isPublic()){throw new Error("Need private key for revoking")}const t={key:this.keyPacket};const a=new Key(this.toPacketlist());a.revocationSignatures.push(await b.createSignaturePacket(t,null,this.keyPacket,{signatureType:c.default.signature.key_revocation,reasonForRevocationFlag:c.default.write(c.default.reasonForRevocation,e),reasonForRevocationString:r},n));return a};Key.prototype.getRevocationCertificate=async function(e=new Date){const r={key:this.keyPacket};const n=await b.getLatestValidSignature(this.revocationSignatures,this.keyPacket,c.default.signature.key_revocation,r,e);const t=new s.default.List;t.push(n);return a.default.encode(c.default.armor.public_key,t.write(),null,null,"This is a revocation certificate")};Key.prototype.applyRevocationCertificate=async function(e){const r=await a.default.decode(e);const n=new s.default.List;await n.read(r.data);const t=n.findPacket(c.default.packet.signature);if(!t||t.signatureType!==c.default.signature.key_revocation){throw new Error("Could not find revocation signature packet")}if(!t.issuerKeyId.equals(this.getKeyId())){throw new Error("Revocation signature does not match key")}if(t.isExpired()){throw new Error("Revocation signature is expired")}try{await t.verify(this.keyPacket,c.default.signature.key_revocation,{key:this.keyPacket})}catch(e){throw d.default.wrapError("Could not verify revocation signature",e)}const i=new Key(this.toPacketlist());i.revocationSignatures.push(t);return i};Key.prototype.signPrimaryUser=async function(e,r,n){var t=await this.getPrimaryUser(r,n);const a=t.index,i=t.user;const s=await i.sign(this.keyPacket,e);const f=new Key(this.toPacketlist());f.users[a]=s;return f};Key.prototype.signAllUsers=async function(e){const r=this;const n=new Key(this.toPacketlist());n.users=await Promise.all(this.users.map(function(n){return n.sign(r.keyPacket,e)}));return n};Key.prototype.verifyPrimaryUser=async function(e,r,n){const t=this.keyPacket;var a=await this.getPrimaryUser(r,n);const i=a.user;const s=e?await i.verifyAllCertifications(t,e):[{keyid:t.keyid,valid:await i.verify(t).catch(()=>false)}];return s};Key.prototype.verifyAllUsers=async function(e){const r=[];const n=this.keyPacket;await Promise.all(this.users.map(async function(t){const a=e?await t.verifyAllCertifications(n,e):[{keyid:n.keyid,valid:await t.verify(n).catch(()=>false)}];a.forEach(e=>{r.push({userid:t.userId.userid,keyid:e.keyid,valid:e.valid})})}));return r};Key.prototype.addSubkey=async function(e={}){if(!this.isPrivate()){throw new Error("Cannot add a subkey to a public key")}if(e.passphrase){throw new Error("Subkey could not be encrypted here, please encrypt whole key")}if(d.default.getWebCryptoAll()&&e.rsaBits<2048){throw new Error("When using webCrypto rsaBits should be 2048 or 4096, found: "+e.rsaBits)}const r=this.primaryKey;if(!r.isDecrypted()){throw new Error("Key is not decrypted")}const n=r.getAlgorithmInfo();e=b.sanitizeKeyOptions(e,n);const t=await b.generateSecretSubkey(e);const a=await b.createBindingSignature(t,r,e);const i=this.toPacketlist();i.push(t);i.push(a);return new Key(i)};["getKeyId","getFingerprint","getAlgorithmInfo","getCreationTime","isDecrypted","hasSameFingerprintAs"].forEach(e=>{Key.prototype[e]=v.default.prototype[e]})},{"../encoding/armor":111,"../enums":113,"../packet":131,"../util":158,"./helper":117,"./subkey":120,"./user":121}],120:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.default=SubKey;var t=e("../enums");var a=_interopRequireDefault(t);var i=e("./helper");var s=_interopRequireWildcard(i);var f=e("../packet");var c=_interopRequireDefault(f);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function SubKey(e){if(!(this instanceof SubKey)){return new SubKey(e)}this.keyPacket=e;this.bindingSignatures=[];this.revocationSignatures=[]}SubKey.prototype.toPacketlist=function(){const e=new c.default.List;e.push(this.keyPacket);e.concat(this.revocationSignatures);e.concat(this.bindingSignatures);return e};SubKey.prototype.isRevoked=async function(e,r,n,t=new Date){return s.isDataRevoked(e,a.default.signature.subkey_revocation,{key:e,bind:this.keyPacket},this.revocationSignatures,r,n,t)};SubKey.prototype.verify=async function(e,r=new Date){const n={key:e,bind:this.keyPacket};const t=await s.getLatestValidSignature(this.bindingSignatures,e,a.default.signature.subkey_binding,n,r);if(t.revoked||await this.isRevoked(e,t,null,r)){throw new Error("Subkey is revoked")}if(s.isDataExpired(this.keyPacket,t,r)){throw new Error("Subkey is expired")}};SubKey.prototype.getExpirationTime=async function(e,r=new Date){const n={key:e,bind:this.keyPacket};let t;try{t=await s.getLatestValidSignature(this.bindingSignatures,e,a.default.signature.subkey_binding,n,r)}catch(e){return null}const i=s.getExpirationTime(this.keyPacket,t);const f=t.getExpirationTime();return in.bindingSignatures[r].created){n.bindingSignatures[r]=e}return false}}try{return e.verified||await e.verify(r,a.default.signature.subkey_binding,t)}catch(e){return false}});await s.mergeSignatures(e,this,"revocationSignatures",function(e){return s.isDataRevoked(r,a.default.signature.subkey_revocation,t,[e])})};SubKey.prototype.revoke=async function(e,{flag:r=a.default.reasonForRevocation.no_reason,string:n=""}={},t=new Date){const i={key:e,bind:this.keyPacket};const f=new SubKey(this.keyPacket);f.revocationSignatures.push(await s.createSignaturePacket(i,null,e,{signatureType:a.default.signature.subkey_revocation,reasonForRevocationFlag:a.default.write(a.default.reasonForRevocation,r),reasonForRevocationString:n},t));await f.update(this,e);return f};["getKeyId","getFingerprint","getAlgorithmInfo","getCreationTime","isDecrypted"].forEach(e=>{SubKey.prototype[e]=function(){return this.keyPacket[e]()}});SubKey.prototype.hasSameFingerprintAs=function(e){return this.keyPacket.hasSameFingerprintAs(e.keyPacket||e)}},{"../enums":113,"../packet":131,"./helper":117}],121:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.default=User;var t=e("../enums");var a=_interopRequireDefault(t);var i=e("../util");var s=_interopRequireDefault(i);var f=e("../packet");var c=_interopRequireDefault(f);var l=e("./helper");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function User(e){if(!(this instanceof User)){return new User(e)}this.userId=e.tag===a.default.packet.userid?e:null;this.userAttribute=e.tag===a.default.packet.userAttribute?e:null;this.selfCertifications=[];this.otherCertifications=[];this.revocationSignatures=[]}User.prototype.toPacketlist=function(){const e=new c.default.List;e.push(this.userId||this.userAttribute);e.concat(this.revocationSignatures);e.concat(this.selfCertifications);e.concat(this.otherCertifications);return e};User.prototype.sign=async function(e,r){const n={userId:this.userId,userAttribute:this.userAttribute,key:e};const t=new User(n.userId||n.userAttribute);t.otherCertifications=await Promise.all(r.map(async function(r){if(r.isPublic()){throw new Error("Need private key for signing")}if(r.hasSameFingerprintAs(e)){throw new Error("Not implemented for self signing")}const t=await r.getSigningKey();return(0,l.createSignaturePacket)(n,r,t.keyPacket,{signatureType:a.default.signature.cert_generic,keyFlags:[a.default.keyFlags.certify_keys|a.default.keyFlags.sign_data]})}));await t.update(this,e);return t};User.prototype.isRevoked=async function(e,r,n,t=new Date){return(0,l.isDataRevoked)(e,a.default.signature.cert_revocation,{key:e,userId:this.userId,userAttribute:this.userAttribute},this.revocationSignatures,r,n,t)};User.prototype.verifyCertificate=async function(e,r,n,t=new Date){const i=this;const f=r.issuerKeyId;const c={userId:this.userId,userAttribute:this.userAttribute,key:e};const l=await Promise.all(n.map(async function(n){if(!n.getKeyIds().some(e=>e.equals(f))){return null}const l=await n.getSigningKey(f,t);if(r.revoked||await i.isRevoked(e,r,l.keyPacket,t)){throw new Error("User certificate is revoked")}try{r.verified||await r.verify(l.keyPacket,a.default.signature.cert_generic,c)}catch(e){throw s.default.wrapError("User certificate is invalid",e)}if(r.isExpired(t)){throw new Error("User certificate is expired")}return true}));return l.find(e=>e!==null)||null};User.prototype.verifyAllCertifications=async function(e,r,n=new Date){const t=this;const a=this.selfCertifications.concat(this.otherCertifications);return Promise.all(a.map(async function(a){return{keyid:a.issuerKeyId,valid:await t.verifyCertificate(e,a,r,n).catch(()=>false)}}))};User.prototype.verify=async function(e,r=new Date){if(!this.selfCertifications.length){throw new Error("No self-certifications")}const n=this;const t={userId:this.userId,userAttribute:this.userAttribute,key:e};let i;for(let f=this.selfCertifications.length-1;f>=0;f--){try{const c=this.selfCertifications[f];if(c.revoked||await n.isRevoked(e,c,undefined,r)){throw new Error("Self-certification is revoked")}try{c.verified||await c.verify(e,a.default.signature.cert_generic,t)}catch(e){throw s.default.wrapError("Self-certification is invalid",e)}if(c.isExpired(r)){throw new Error("Self-certification is expired")}return true}catch(e){i=e}}throw i};User.prototype.update=async function(e,r){const n={userId:this.userId,userAttribute:this.userAttribute,key:r};await(0,l.mergeSignatures)(e,this,"selfCertifications",async function(e){try{return e.verified||e.verify(r,a.default.signature.cert_generic,n)}catch(e){return false}});await(0,l.mergeSignatures)(e,this,"otherCertifications");await(0,l.mergeSignatures)(e,this,"revocationSignatures",function(e){return(0,l.isDataRevoked)(r,a.default.signature.cert_revocation,n,[e])})}},{"../enums":113,"../packet":131,"../util":158,"./helper":117}],122:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("./keyring.js");var a=_interopRequireDefault(t);var i=e("./localstore.js");var s=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}a.default.localstore=s.default;n.default=a.default},{"./keyring.js":123,"./localstore.js":124}],123:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("../key");var a=e("./localstore");var i=_interopRequireDefault(a);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Keyring(e){this.storeHandler=e||new i.default}Keyring.prototype.load=async function(){this.publicKeys=new KeyArray(await this.storeHandler.loadPublic());this.privateKeys=new KeyArray(await this.storeHandler.loadPrivate())};Keyring.prototype.store=async function(){await Promise.all([this.storeHandler.storePublic(this.publicKeys.keys),this.storeHandler.storePrivate(this.privateKeys.keys)])};Keyring.prototype.clear=function(){this.publicKeys.keys=[];this.privateKeys.keys=[]};Keyring.prototype.getKeysForId=function(e,r){let n=[];n=n.concat(this.publicKeys.getForId(e,r)||[]);n=n.concat(this.privateKeys.getForId(e,r)||[]);return n.length?n:null};Keyring.prototype.removeKeysForId=function(e){let r=[];r=r.concat(this.publicKeys.removeForId(e)||[]);r=r.concat(this.privateKeys.removeForId(e)||[]);return r.length?r:null};Keyring.prototype.getAllKeys=function(){return this.publicKeys.keys.concat(this.privateKeys.keys)};function KeyArray(e){this.keys=e}KeyArray.prototype.getForAddress=function(e){const r=[];for(let n=0;n");const a=r.getUserIds();for(let r=0;ra.default.readToEnd(e.armor())));e.setItem(r,JSON.stringify(t))}else{e.removeItem(r)}}n.default=LocalStore}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"../config":79,"../key":118,"../util":158,"node-localstorage":"node-localstorage","web-stream-tools":75}],125:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});const t=n.loadScript=(e=>{if(typeof importScripts!=="undefined"){return importScripts(e)}return new Promise((r,n)=>{const t=document.createElement("script");t.src=e;t.onload=(()=>r());t.onerror=(e=>n(new Error(e.message)));document.head.appendChild(t)})});const a=n.dl=async function dl(e,r){const n=await fetch(e,r);return n.arrayBuffer()}},{}],126:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.Message=Message;n.encryptSessionKey=encryptSessionKey;n.createSignaturePackets=createSignaturePackets;n.createVerificationObjects=createVerificationObjects;n.readArmored=readArmored;n.read=read;n.fromText=fromText;n.fromBinary=fromBinary;var t=e("web-stream-tools");var a=_interopRequireDefault(t);var i=e("./encoding/armor");var s=_interopRequireDefault(i);var f=e("./type/keyid");var c=_interopRequireDefault(f);var l=e("./config");var d=_interopRequireDefault(l);var u=e("./crypto");var o=_interopRequireDefault(u);var h=e("./enums");var v=_interopRequireDefault(h);var p=e("./util");var b=_interopRequireDefault(p);var y=e("./packet");var g=_interopRequireDefault(y);var w=e("./signature");var m=e("./key");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Message(e){if(!(this instanceof Message)){return new Message(e)}this.packets=e||new g.default.List}Message.prototype.getEncryptionKeyIds=function(){const e=[];const r=this.packets.filterByTag(v.default.packet.publicKeyEncryptedSessionKey);r.forEach(function(r){e.push(r.publicKeyId)});return e};Message.prototype.getSigningKeyIds=function(){const e=[];const r=this.unwrapCompressed();const n=r.packets.filterByTag(v.default.packet.onePassSignature);n.forEach(function(r){e.push(r.issuerKeyId)});if(!e.length){const n=r.packets.filterByTag(v.default.packet.signature);n.forEach(function(r){e.push(r.issuerKeyId)})}return e};Message.prototype.decrypt=async function(e,r,n,t){const i=n||await this.decryptSessionKeys(e,r);const s=this.packets.filterByTag(v.default.packet.symmetricallyEncrypted,v.default.packet.symEncryptedIntegrityProtected,v.default.packet.symEncryptedAEADProtected);if(s.length===0){return this}const f=s[0];let c=null;const l=Promise.all(i.map(async e=>{if(!e||!b.default.isUint8Array(e.data)||!b.default.isString(e.algorithm)){throw new Error("Invalid session key for decryption.")}try{await f.decrypt(e.algorithm,e.data,t)}catch(e){b.default.print_debug_error(e);c=e}}));a.default.cancel(f.encrypted);f.encrypted=null;await l;if(!f.packets||!f.packets.length){throw c||new Error("Decryption failed.")}const d=new Message(f.packets);f.packets=new g.default.List;return d};Message.prototype.decryptSessionKeys=async function(e,r){let n=[];let t;if(r){const e=this.packets.filterByTag(v.default.packet.symEncryptedSessionKey);if(!e){throw new Error("No symmetrically encrypted session key packet found.")}await Promise.all(r.map(async function(r,t){let a;if(t){a=new g.default.List;await a.read(e.write())}else{a=e}await Promise.all(a.map(async function(e){try{await e.decrypt(r);n.push(e)}catch(e){b.default.print_debug_error(e)}}))}))}else if(e){const r=this.packets.filterByTag(v.default.packet.publicKeyEncryptedSessionKey);if(!r){throw new Error("No public key encrypted session key packet found.")}await Promise.all(r.map(async function(r){await Promise.all(e.map(async function(e){let a=[v.default.symmetric.aes256,v.default.symmetric.aes128,v.default.symmetric.tripledes,v.default.symmetric.cast5];try{const r=await e.getPrimaryUser();if(r.selfCertification.preferredSymmetricAlgorithms){a=a.concat(r.selfCertification.preferredSymmetricAlgorithms)}}catch(e){}const i=(await e.getDecryptionKeys(r.publicKeyId,null)).map(e=>e.keyPacket);await Promise.all(i.map(async function(e){if(!e){return}if(!e.isDecrypted()){throw new Error("Private key is not decrypted.")}try{await r.decrypt(e);if(!a.includes(v.default.write(v.default.symmetric,r.sessionKeyAlgorithm))){throw new Error("A non-preferred symmetric algorithm was used.")}n.push(r)}catch(e){b.default.print_debug_error(e);t=e}}))}));a.default.cancel(r.encrypted);r.encrypted=null}))}else{throw new Error("No key or password specified.")}if(n.length){if(n.length>1){const e={};n=n.filter(function(r){const n=r.sessionKeyAlgorithm+b.default.Uint8Array_to_str(r.sessionKey);if(e.hasOwnProperty(n)){return false}e[n]=true;return true})}return n.map(e=>({data:e.sessionKey,algorithm:e.sessionKeyAlgorithm}))}throw t||new Error("Session key decryption failed.")};Message.prototype.getLiteralData=function(){const e=this.unwrapCompressed();const r=e.packets.findPacket(v.default.packet.literal);return r&&r.getBytes()||null};Message.prototype.getFilename=function(){const e=this.unwrapCompressed();const r=e.packets.findPacket(v.default.packet.literal);return r&&r.getFilename()||null};Message.prototype.getText=function(){const e=this.unwrapCompressed();const r=e.packets.findPacket(v.default.packet.literal);if(r){return r.getText()}return null};Message.prototype.encrypt=async function(e,r,n,t=false,a=new Date,i=[],s){let f;let c;let l;if(n){if(!b.default.isUint8Array(n.data)||!b.default.isString(n.algorithm)){throw new Error("Invalid session key for encryption.")}f=n.algorithm;c=n.aeadAlgorithm;n=n.data}else if(e&&e.length){f=v.default.read(v.default.symmetric,await(0,m.getPreferredAlgo)("symmetric",e,a,i));if(d.default.aead_protect&&await(0,m.isAeadSupported)(e,a,i)){c=v.default.read(v.default.aead,await(0,m.getPreferredAlgo)("aead",e,a,i))}}else if(r&&r.length){f=v.default.read(v.default.symmetric,d.default.encryption_cipher);c=v.default.read(v.default.aead,d.default.aead_mode)}else{throw new Error("No keys, passwords, or session key provided.")}if(!n){n=await o.default.generateSessionKey(f)}const u=await encryptSessionKey(n,f,c,e,r,t,a,i);if(d.default.aead_protect&&c){l=new g.default.SymEncryptedAEADProtected;l.aeadAlgorithm=c}else if(d.default.integrity_protect){l=new g.default.SymEncryptedIntegrityProtected}else{l=new g.default.SymmetricallyEncrypted}l.packets=this.packets;await l.encrypt(f,n,s);u.packets.push(l);l.packets=new g.default.List;return{message:u,sessionKey:{data:n,algorithm:f,aeadAlgorithm:c}}};async function encryptSessionKey(e,r,n,t,a,i=false,s=new Date,f=[]){const l=new g.default.List;if(t){const n=await Promise.all(t.map(async function(n){const t=await n.getEncryptionKey(undefined,s,f);const a=new g.default.PublicKeyEncryptedSessionKey;a.publicKeyId=i?c.default.wildcard():t.getKeyId();a.publicKeyAlgorithm=t.keyPacket.algorithm;a.sessionKey=e;a.sessionKeyAlgorithm=r;await a.encrypt(t.keyPacket);delete a.sessionKey;return a}));l.concat(n)}if(a){const t=async function testDecrypt(e,r){try{await e.decrypt(r);return 1}catch(e){return 0}};const i=(e,r)=>e+r;const s=async function encryptPassword(e,r,n,s){const f=new g.default.SymEncryptedSessionKey;f.sessionKey=e;f.sessionKeyAlgorithm=r;if(n){f.aeadAlgorithm=n}await f.encrypt(s);if(d.default.password_collision_check){const n=await Promise.all(a.map(e=>t(f,e)));if(n.reduce(i)!==1){return encryptPassword(e,r,s)}}delete f.sessionKey;return f};const f=await Promise.all(a.map(t=>s(e,r,n,t)));l.concat(f)}return new Message(l)}Message.prototype.sign=async function(e=[],r=null,n=new Date,t=[],a=false){const i=new g.default.List;const s=this.packets.findPacket(v.default.packet.literal);if(!s){throw new Error("No literal data packet to sign.")}let f;let c;const l=s.text===null?v.default.signature.binary:v.default.signature.text;if(r){c=r.packets.filterByTag(v.default.packet.signature);for(f=c.length-1;f>=0;f--){const r=c[f];const n=new g.default.OnePassSignature;n.signatureType=r.signatureType;n.hashAlgorithm=r.hashAlgorithm;n.publicKeyAlgorithm=r.publicKeyAlgorithm;n.issuerKeyId=r.issuerKeyId;if(!e.length&&f===0){n.flags=1}i.push(n)}}await Promise.all(Array.from(e).reverse().map(async function(r,a){if(r.isPublic()){throw new Error("Need private key for signing")}const i=await r.getSigningKey(undefined,n,t);const s=new g.default.OnePassSignature;s.signatureType=l;s.hashAlgorithm=await(0,m.getPreferredHashAlgo)(r,i.keyPacket,n,t);s.publicKeyAlgorithm=i.keyPacket.algorithm;s.issuerKeyId=i.getKeyId();if(a===e.length-1){s.flags=1}return s})).then(e=>{e.forEach(e=>i.push(e))});i.push(s);i.concat(await createSignaturePackets(s,e,r,n,t,false,a));return new Message(i)};Message.prototype.compress=function(e){if(e===v.default.compression.uncompressed){return this}const r=new g.default.Compressed;r.packets=this.packets;r.algorithm=v.default.read(v.default.compression,e);const n=new g.default.List;n.push(r);return new Message(n)};Message.prototype.signDetached=async function(e=[],r=null,n=new Date,t=[],a=false){const i=this.packets.findPacket(v.default.packet.literal);if(!i){throw new Error("No literal data packet to sign.")}return new w.Signature(await createSignaturePackets(i,e,r,n,t,true,a))};async function createSignaturePackets(e,r,n=null,t=new Date,a=[],i=false,s=false){const f=new g.default.List;const c=e.text===null?v.default.signature.binary:v.default.signature.text;await Promise.all(r.map(async(r,n)=>{const f=a[n];if(r.isPublic()){throw new Error("Need private key for signing")}const l=await r.getSigningKey(undefined,t,f);return(0,m.createSignaturePacket)(e,r,l.keyPacket,{signatureType:c},t,f,i,s)})).then(e=>{e.forEach(e=>f.push(e))});if(n){const e=n.packets.filterByTag(v.default.packet.signature);f.concat(e)}return f}Message.prototype.verify=async function(e,r=new Date,n){const t=this.unwrapCompressed();const i=t.packets.filterByTag(v.default.packet.literal);if(i.length!==1){throw new Error("Can only verify message with one literal data packet.")}if(!n){t.packets.concat(await a.default.readToEnd(t.packets.stream,e=>e))}const s=t.packets.filterByTag(v.default.packet.onePassSignature).reverse();const f=t.packets.filterByTag(v.default.packet.signature);if(n&&s.length&&!f.length&&t.packets.stream){await Promise.all(s.map(async e=>{e.correspondingSig=new Promise((r,n)=>{e.correspondingSigResolve=r;e.correspondingSigReject=n});e.signatureData=a.default.fromAsync(async()=>(await e.correspondingSig).signatureData);e.hashed=a.default.readToEnd(await e.hash(e.signatureType,i[0],undefined,false,n));e.hashed.catch(()=>{})}));t.packets.stream=a.default.transformPair(t.packets.stream,async(e,r)=>{const n=a.default.getReader(e);const t=a.default.getWriter(r);try{for(let e=0;e{r.correspondingSigReject(e)});await t.abort(e)}});return createVerificationObjects(s,i,e,r,false,n)}return createVerificationObjects(f,i,e,r,false,n)};Message.prototype.verifyDetached=function(e,r,n=new Date){const t=this.unwrapCompressed();const a=t.packets.filterByTag(v.default.packet.literal);if(a.length!==1){throw new Error("Can only verify message with one literal data packet.")}const i=e.packets;return createVerificationObjects(i,a,r,n,true)};async function createVerificationObject(e,r,n,t=new Date,a=false,i=false){let s=null;let f=null;await Promise.all(n.map(async function(r){try{f=await r.getSigningKey(e.issuerKeyId,null);s=r}catch(e){}}));const c=e.correspondingSig||e;const l={keyid:e.issuerKeyId,verified:(async()=>{if(!f){return null}const n=await e.verify(f.keyPacket,e.signatureType,r[0],a,i);const l=await c;if(l.isExpired(t)||!(l.created>=f.getCreationTime()&&l.created{const e=await c;const r=new g.default.List;r.push(e);return new w.Signature(r)})()};l.signature.catch(()=>{});l.verified.catch(()=>{});return l}async function createVerificationObjects(e,r,n,t=new Date,a=false,i=false){return Promise.all(e.filter(function(e){return["text","binary"].includes(v.default.read(v.default.signature,e.signatureType))}).map(async function(e){return createVerificationObject(e,r,n,t,a,i)}))}Message.prototype.unwrapCompressed=function(){const e=this.packets.filterByTag(v.default.packet.compressed);if(e.length){return new Message(e[0].packets)}return this};Message.prototype.appendSignature=async function(e){await this.packets.read(b.default.isUint8Array(e)?e:(await s.default.decode(e)).data)};Message.prototype.armor=function(){return s.default.encode(v.default.armor.message,this.packets.write())};async function readArmored(e){const r=b.default.isStream(e);if(r==="node"){e=a.default.nodeToWeb(e)}const n=await s.default.decode(e);return read(n.data,r)}async function read(e,r=b.default.isStream(e)){const n=b.default.isStream(e);if(n==="node"){e=a.default.nodeToWeb(e)}const t=new g.default.List;await t.read(e,r);const i=new Message(t);i.fromStream=r;return i}function fromText(e,r,n=new Date,t="utf8"){const i=b.default.isStream(e);if(i==="node"){e=a.default.nodeToWeb(e)}const s=new g.default.Literal(n);s.setText(e,t);if(r!==undefined){s.setFilename(r)}const f=new g.default.List;f.push(s);const c=new Message(f);c.fromStream=i;return c}function fromBinary(e,r,n=new Date,t="binary"){const i=b.default.isStream(e);if(!b.default.isUint8Array(e)&&!i){throw new Error("Data must be in the form of a Uint8Array or Stream")}if(i==="node"){e=a.default.nodeToWeb(e)}const s=new g.default.Literal(n);s.setBytes(e,t);if(r!==undefined){s.setFilename(r)}const f=new g.default.List;f.push(s);const c=new Message(f);c.fromStream=i;return c}},{"./config":79,"./crypto":94,"./encoding/armor":111,"./enums":113,"./key":118,"./packet":131,"./signature":151,"./type/keyid":154,"./util":158,"web-stream-tools":75}],127:[function(e,r,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.initWorker=initWorker;n.getWorker=getWorker;n.destroyWorker=destroyWorker;n.generateKey=generateKey;n.reformatKey=reformatKey;n.revokeKey=revokeKey;n.decryptKey=decryptKey;n.encryptKey=encryptKey;n.encrypt=encrypt;n.decrypt=decrypt;n.sign=sign;n.verify=verify;n.encryptSessionKey=encryptSessionKey;n.decryptSessionKeys=decryptSessionKeys;var t=e("web-stream-tools");var a=_interopRequireDefault(t);var i=e("./message");var s=_interopRequireWildcard(i);var f=e("./cleartext");var c=e("./key");var l=e("./config/config");var d=_interopRequireDefault(l);var u=e("./enums");var o=_interopRequireDefault(u);e("./polyfills");var h=e("./util");var v=_interopRequireDefault(h);var p=e("./worker/async_proxy");var b=_interopRequireDefault(p);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let y;async function initWorker({path:e="openpgp.worker.js",n:n=1,workers:t=[]}={}){if(t.length||typeof r!=="undefined"&&r.Worker&&r.MessageChannel){const r=new b.default({path:e,n:n,workers:t,config:d.default});const a=await r.loaded();if(a){y=r;return true}}return false}function getWorker(){return y}async function destroyWorker(){const e=y;y=undefined;if(e){await e.clearKeyCache();e.terminate()}}function generateKey({userIds:e=[],passphrase:r="",numBits:n=2048,rsaBits:t=n,keyExpirationTime:a=0,curve:i="",date:s=new Date,subkeys:f=[{}]}){e=toArray(e);const l={userIds:e,passphrase:r,rsaBits:t,keyExpirationTime:a,curve:i,date:s,subkeys:f};if(v.default.getWebCryptoAll()&&t<2048){throw new Error("rsaBits should be 2048 or 4096, found: "+t)}if(!v.default.getWebCryptoAll()&&y){return y.delegate("generateKey",l)}return(0,c.generate)(l).then(async e=>{const r=await e.getRevocationCertificate(s);e.revocationSignatures=[];return convertStreams({key:e,privateKeyArmored:e.armor(),publicKeyArmored:e.toPublic().armor(),revocationCertificate:r})}).catch(onError.bind(null,"Error generating keypair"))}function reformatKey({privateKey:e,userIds:r=[],passphrase:n="",keyExpirationTime:t=0,date:a}){r=toArray(r);const i={privateKey:e,userIds:r,passphrase:n,keyExpirationTime:t,date:a};if(y){return y.delegate("reformatKey",i)}return(0,c.reformat)(i).then(async e=>{const r=await e.getRevocationCertificate(a);e.revocationSignatures=[];return convertStreams({key:e,privateKeyArmored:e.armor(),publicKeyArmored:e.toPublic().armor(),revocationCertificate:r})}).catch(onError.bind(null,"Error reformatting keypair"))}function revokeKey({key:e,revocationCertificate:r,reasonForRevocation:n}={}){const t={key:e,revocationCertificate:r,reasonForRevocation:n};if(!v.default.getWebCryptoAll()&&y){return y.delegate("revokeKey",t)}return Promise.resolve().then(()=>{if(r){return e.applyRevocationCertificate(r)}else{return e.revoke(n)}}).then(async e=>{await convertStreams(e);if(e.isPrivate()){const r=e.toPublic();return{privateKey:e,privateKeyArmored:e.armor(),publicKey:r,publicKeyArmored:r.armor()}}return{publicKey:e,publicKeyArmored:e.armor()}}).catch(onError.bind(null,"Error revoking key"))}function decryptKey({privateKey:e,passphrase:r}){if(y){return y.delegate("decryptKey",{privateKey:e,passphrase:r})}return Promise.resolve().then(async function(){await e.decrypt(r);return{key:e}}).catch(onError.bind(null,"Error decrypting private key"))}function encryptKey({privateKey:e,passphrase:r}){if(y){return y.delegate("encryptKey",{privateKey:e,passphrase:r})}return Promise.resolve().then(async function(){await e.encrypt(r);return{key:e}}).catch(onError.bind(null,"Error decrypting private key"))}function encrypt({message:e,publicKeys:r,privateKeys:n,passwords:t,sessionKey:a,compression:i=d.default.compression,armor:s=true,streaming:f=e&&e.fromStream,detached:c=false,signature:l=null,returnSessionKey:u=false,wildcard:o=false,date:h=new Date,fromUserIds:v=[],toUserIds:p=[]}){checkMessage(e);r=toArray(r);n=toArray(n);t=toArray(t);v=toArray(v);p=toArray(p);if(!nativeAEAD()&&y){return y.delegate("encrypt",{message:e,publicKeys:r,privateKeys:n,passwords:t,sessionKey:a,compression:i,armor:s,streaming:f,detached:c,signature:l,returnSessionKey:u,wildcard:o,date:h,fromUserIds:v,toUserIds:p})}const b={};return Promise.resolve().then(async function(){if(!n){n=[]}if(n.length||l){if(c){const r=await e.signDetached(n,l,h,v,e.fromStream);b.signature=s?r.armor():r}else{e=await e.sign(n,l,h,v,e.fromStream)}}e=e.compress(i);return e.encrypt(r,t,a,o,h,p,f)}).then(async e=>{if(s){b.data=e.message.armor()}else{b.message=e.message}if(u){b.sessionKey=e.sessionKey}return convertStreams(b,f,s?["signature","data"]:[])}).catch(onError.bind(null,"Error encrypting message"))}function decrypt({message:e,privateKeys:r,passwords:n,sessionKeys:t,publicKeys:a,format:i="utf8",streaming:s=e&&e.fromStream,signature:f=null,date:c=new Date}){checkMessage(e);a=toArray(a);r=toArray(r);n=toArray(n);t=toArray(t);if(!nativeAEAD()&&y){return y.delegate("decrypt",{message:e,privateKeys:r,passwords:n,sessionKeys:t,publicKeys:a,format:i,streaming:s,signature:f,date:c})}return e.decrypt(r,n,t,s).then(async function(r){if(!a){a=[]}const n={};n.signatures=f?await r.verifyDetached(f,a,c,s):await r.verify(a,c,s);n.data=i==="binary"?r.getLiteralData():r.getText();n.filename=r.getFilename();if(s)linkStreams(n,e);n.data=await convertStream(n.data,s);if(!s)await prepareSignatures(n.signatures);return n}).catch(onError.bind(null,"Error decrypting message"))}function sign({message:e,privateKeys:r,armor:n=true,streaming:t=e&&e.fromStream,detached:i=false,date:s=new Date,fromUserIds:f=[]}){checkCleartextOrMessage(e);r=toArray(r);f=toArray(f);if(y){return y.delegate("sign",{message:e,privateKeys:r,armor:n,streaming:t,detached:i,date:s,fromUserIds:f})}const c={};return Promise.resolve().then(async function(){if(i){const t=await e.signDetached(r,undefined,s,f,e.fromStream);c.signature=n?t.armor():t;if(e.packets){c.signature=a.default.transformPair(e.packets.write(),async(e,r)=>{await Promise.all([a.default.pipe(c.signature,r),a.default.readToEnd(e).catch(()=>{})])})}}else{e=await e.sign(r,undefined,s,f,e.fromStream);if(n){c.data=e.armor()}else{c.message=e}}return convertStreams(c,t,n?["signature","data"]:[])}).catch(onError.bind(null,"Error signing cleartext message"))}function verify({message:e,publicKeys:r,streaming:n=e&&e.fromStream,signature:t=null,date:a=new Date}){checkCleartextOrMessage(e);r=toArray(r);if(y){return y.delegate("verify",{message:e,publicKeys:r,streaming:n,signature:t,date:a})}return Promise.resolve().then(async function(){const i={};i.signatures=t?await e.verifyDetached(t,r,a,n):await e.verify(r,a,n);i.data=e instanceof f.CleartextMessage?e.getText():e.getLiteralData();if(n)linkStreams(i,e);i.data=await convertStream(i.data,n);if(!n)await prepareSignatures(i.signatures);return i}).catch(onError.bind(null,"Error verifying cleartext signed message"))}function encryptSessionKey({data:e,algorithm:r,aeadAlgorithm:n,publicKeys:t,passwords:a,wildcard:i=false,date:f=new Date,toUserIds:c=[]}){checkBinary(e);checkString(r,"algorithm");t=toArray(t);a=toArray(a);c=toArray(c);if(y){return y.delegate("encryptSessionKey",{data:e,algorithm:r,aeadAlgorithm:n,publicKeys:t,passwords:a,wildcard:i,date:f,toUserIds:c})}return Promise.resolve().then(async function(){return{message:await s.encryptSessionKey(e,r,n,t,a,i,f,c)}}).catch(onError.bind(null,"Error encrypting session key"))}function decryptSessionKeys({message:e,privateKeys:r,passwords:n}){checkMessage(e);r=toArray(r);n=toArray(n);if(y){return y.delegate("decryptSessionKeys",{message:e,privateKeys:r,passwords:n})}return Promise.resolve().then(async function(){return e.decryptSessionKeys(r,n)}).catch(onError.bind(null,"Error decrypting session keys"))}function checkString(e,r){if(!v.default.isString(e)){throw new Error("Parameter ["+(r||"data")+"] must be of type String")}}function checkBinary(e,r){if(!v.default.isUint8Array(e)){throw new Error("Parameter ["+(r||"data")+"] must be of type Uint8Array")}}function checkMessage(e){if(!(e instanceof s.Message)){throw new Error("Parameter [message] needs to be of type Message")}}function checkCleartextOrMessage(e){if(!(e instanceof f.CleartextMessage)&&!(e instanceof s.Message)){throw new Error("Parameter [message] needs to be of type Message or CleartextMessage")}}function toArray(e){if(e&&!v.default.isArray(e)){e=[e]}return e}async function convertStream(e,r){if(!r&&v.default.isStream(e)){return a.default.readToEnd(e)}if(r&&!v.default.isStream(e)){e=new ReadableStream({start(r){r.enqueue(e);r.close()}})}if(r==="node"){e=a.default.webToNode(e)}return e}async function convertStreams(e,r,n=[]){if(Object.prototype.isPrototypeOf(e)&&!Uint8Array.prototype.isPrototypeOf(e)){await Promise.all(Object.entries(e).map(async([t,a])=>{if(v.default.isStream(a)||n.includes(t)){e[t]=await convertStream(a,r)}else{await convertStreams(e[t],r)}}))}return e}function linkStreams(e,r){e.data=a.default.transformPair(r.packets.stream,async(r,n)=>{await a.default.pipe(e.data,n)})}async function prepareSignatures(e){await Promise.all(e.map(async e=>{e.signature=await e.signature;try{e.valid=await e.verified}catch(r){e.valid=false;e.error=r;v.default.print_debug_error(r)}}))}function onError(e,r){v.default.print_debug_error(r);try{r.message=e+": "+r.message}catch(e){}throw r}function nativeAEAD(){return d.default.aead_protect&&(d.default.aead_mode===o.default.aead.eax||d.default.aead_mode===o.default.aead.experimental_gcm)&&v.default.getWebCrypto()}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./cleartext":77,"./config/config":78,"./enums":113,"./key":118,"./message":126,"./polyfills":150,"./util":158,"./worker/async_proxy":160,"web-stream-tools":75}],128:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.Trust=n.Signature=n.SecretSubkey=n.Userid=n.SecretKey=n.OnePassSignature=n.UserAttribute=n.PublicSubkey=n.Marker=n.SymmetricallyEncrypted=n.PublicKey=n.Literal=n.SymEncryptedSessionKey=n.PublicKeyEncryptedSessionKey=n.SymEncryptedAEADProtected=n.SymEncryptedIntegrityProtected=n.Compressed=undefined;var t=e("./compressed.js");Object.defineProperty(n,"Compressed",{enumerable:true,get:function get(){return _interopRequireDefault(t).default}});var a=e("./sym_encrypted_integrity_protected.js");Object.defineProperty(n,"SymEncryptedIntegrityProtected",{enumerable:true,get:function get(){return _interopRequireDefault(a).default}});var i=e("./sym_encrypted_aead_protected.js");Object.defineProperty(n,"SymEncryptedAEADProtected",{enumerable:true,get:function get(){return _interopRequireDefault(i).default}});var s=e("./public_key_encrypted_session_key.js");Object.defineProperty(n,"PublicKeyEncryptedSessionKey",{enumerable:true,get:function get(){return _interopRequireDefault(s).default}});var f=e("./sym_encrypted_session_key.js");Object.defineProperty(n,"SymEncryptedSessionKey",{enumerable:true,get:function get(){return _interopRequireDefault(f).default}});var c=e("./literal.js");Object.defineProperty(n,"Literal",{enumerable:true,get:function get(){return _interopRequireDefault(c).default}});var l=e("./public_key.js");Object.defineProperty(n,"PublicKey",{enumerable:true,get:function get(){return _interopRequireDefault(l).default}});var d=e("./symmetrically_encrypted.js");Object.defineProperty(n,"SymmetricallyEncrypted",{enumerable:true,get:function get(){return _interopRequireDefault(d).default}});var u=e("./marker.js");Object.defineProperty(n,"Marker",{enumerable:true,get:function get(){return _interopRequireDefault(u).default}});var o=e("./public_subkey.js");Object.defineProperty(n,"PublicSubkey",{enumerable:true,get:function get(){return _interopRequireDefault(o).default}});var h=e("./user_attribute.js");Object.defineProperty(n,"UserAttribute",{enumerable:true,get:function get(){return _interopRequireDefault(h).default}});var v=e("./one_pass_signature.js");Object.defineProperty(n,"OnePassSignature",{enumerable:true,get:function get(){return _interopRequireDefault(v).default}});var p=e("./secret_key.js");Object.defineProperty(n,"SecretKey",{enumerable:true,get:function get(){return _interopRequireDefault(p).default}});var b=e("./userid.js");Object.defineProperty(n,"Userid",{enumerable:true,get:function get(){return _interopRequireDefault(b).default}});var y=e("./secret_subkey.js");Object.defineProperty(n,"SecretSubkey",{enumerable:true,get:function get(){return _interopRequireDefault(y).default}});var g=e("./signature.js");Object.defineProperty(n,"Signature",{enumerable:true,get:function get(){return _interopRequireDefault(g).default}});var w=e("./trust.js");Object.defineProperty(n,"Trust",{enumerable:true,get:function get(){return _interopRequireDefault(w).default}});n.newPacketFromTag=newPacketFromTag;n.fromStructuredClone=fromStructuredClone;var m=e("../enums.js");var A=_interopRequireDefault(m);var E=e("./all_packets.js");var S=_interopRequireWildcard(E);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function newPacketFromTag(e){return new(S[packetClassFromTagName(e)])}function fromStructuredClone(e){const r=A.default.read(A.default.packet,e.tag);const n=newPacketFromTag(r);Object.assign(n,e);if(n.postCloneTypeFix){n.postCloneTypeFix()}return n}function packetClassFromTagName(e){return e.substr(0,1).toUpperCase()+e.substr(1)}},{"../enums.js":113,"./all_packets.js":128,"./compressed.js":130,"./literal.js":132,"./marker.js":133,"./one_pass_signature.js":134,"./public_key.js":137,"./public_key_encrypted_session_key.js":138,"./public_subkey.js":139,"./secret_key.js":140,"./secret_subkey.js":141,"./signature.js":142,"./sym_encrypted_aead_protected.js":143,"./sym_encrypted_integrity_protected.js":144,"./sym_encrypted_session_key.js":145,"./symmetrically_encrypted.js":146,"./trust.js":147,"./user_attribute.js":148,"./userid.js":149}],129:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.clonePackets=clonePackets;n.parseClonedPackets=parseClonedPackets;var t=e("web-stream-tools");var a=_interopRequireDefault(t);var i=e("../key");var s=e("../message");var f=e("../cleartext");var c=e("../signature");var l=e("./packetlist");var d=_interopRequireDefault(l);var u=e("../type/keyid");var o=_interopRequireDefault(u);var h=e("../util");var v=_interopRequireDefault(h);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function clonePackets(e){if(e.publicKeys){e.publicKeys=e.publicKeys.map(e=>e.toPacketlist())}if(e.privateKeys){e.privateKeys=e.privateKeys.map(e=>e.toPacketlist())}if(e.publicKey){e.publicKey=e.publicKey.toPacketlist()}if(e.privateKey){e.privateKey=e.privateKey.toPacketlist()}if(e.key){e.key=e.key.toPacketlist()}if(e.message){if(e.message instanceof s.Message){e.message={packets:e.message.packets,fromStream:e.message.fromStream}}else if(e.message instanceof f.CleartextMessage){e.message={text:e.message.text,signature:e.message.signature.packets}}}if(e.signature&&e.signature instanceof c.Signature){e.signature=e.signature.packets}if(e.signatures){e.signatures.forEach(verificationObjectToClone)}return e}function verificationObjectToClone(e){const r=e.verified;e.verified=a.default.fromAsync(()=>r);if(e.signature instanceof Promise){const n=e.signature;e.signature=a.default.fromAsync(async()=>{const e=(await n).packets;try{await r}catch(e){}if(e&&e[0]){delete e[0].signature;delete e[0].hashed}return e})}else{e.signature=e.signature.packets}if(e.error){e.error=e.error.message}return e}function parseClonedPackets(e){if(e.publicKeys){e.publicKeys=e.publicKeys.map(packetlistCloneToKey)}if(e.privateKeys){e.privateKeys=e.privateKeys.map(packetlistCloneToKey)}if(e.publicKey){e.publicKey=packetlistCloneToKey(e.publicKey)}if(e.privateKey){e.privateKey=packetlistCloneToKey(e.privateKey)}if(e.key){e.key=packetlistCloneToKey(e.key)}if(e.message&&e.message.signature){e.message=packetlistCloneToCleartextMessage(e.message)}else if(e.message){e.message=packetlistCloneToMessage(e.message)}if(e.signatures){e.signatures=e.signatures.map(packetlistCloneToSignatures)}if(e.signature){e.signature=packetlistCloneToSignature(e.signature)}return e}function packetlistCloneToKey(e){const r=d.default.fromStructuredClone(e);return new i.Key(r)}function packetlistCloneToMessage(e){const r=d.default.fromStructuredClone(e.packets);const n=new s.Message(r);n.fromStream=e.fromStream;return n}function packetlistCloneToCleartextMessage(e){const r=d.default.fromStructuredClone(e.signature);return new f.CleartextMessage(e.text,new c.Signature(r))}function packetlistCloneToSignatures(e){e.keyid=o.default.fromClone(e.keyid);if(v.default.isStream(e.signature)){e.signature=a.default.readToEnd(e.signature,([e])=>new c.Signature(d.default.fromStructuredClone(e)));e.signature.catch(()=>{})}else{e.signature=new c.Signature(d.default.fromStructuredClone(e.signature))}e.verified=a.default.readToEnd(e.verified,([e])=>e);e.verified.catch(()=>{});if(e.error){e.error=new Error(e.error)}return e}function packetlistCloneToSignature(e){if(v.default.isString(e)||v.default.isStream(e)){return e}const r=d.default.fromStructuredClone(e);return new c.Signature(r)}},{"../cleartext":77,"../key":118,"../message":126,"../signature":151,"../type/keyid":154,"../util":158,"./packetlist":136,"web-stream-tools":75}],130:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("pako");var a=_interopRequireDefault(t);var i=e("seek-bzip");var s=_interopRequireDefault(i);var f=e("web-stream-tools");var c=_interopRequireDefault(f);var l=e("../config");var d=_interopRequireDefault(l);var u=e("../enums");var o=_interopRequireDefault(u);var h=e("../util");var v=_interopRequireDefault(h);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Compressed(){this.tag=o.default.packet.compressed;this.packets=null;this.algorithm="zip";this.compressed=null}Compressed.prototype.read=async function(e,r){await c.default.parse(e,async e=>{this.algorithm=o.default.read(o.default.compression,await e.readByte());this.compressed=e.remainder();await this.decompress(r)})};Compressed.prototype.write=function(){if(this.compressed===null){this.compress()}return v.default.concat([new Uint8Array([o.default.write(o.default.compression,this.algorithm)]),this.compressed])};Compressed.prototype.decompress=async function(e){if(!y[this.algorithm]){throw new Error(this.algorithm+" decompression not supported")}await this.packets.read(y[this.algorithm](this.compressed),e)};Compressed.prototype.compress=function(){if(!b[this.algorithm]){throw new Error(this.algorithm+" compression not supported")}this.compressed=b[this.algorithm](this.packets.write())};n.default=Compressed;const p=v.default.getNodeZlib();function uncompressed(e){return e}function node_zlib(e,r={}){return function(n){return c.default.nodeToWeb(c.default.webToNode(n).pipe(e(r)))}}function pako_zlib(e,r={}){return function(n){const t=new e(r);return c.default.transform(n,e=>{if(e.length){t.push(e,a.default.Z_SYNC_FLUSH);return t.result}},()=>{if(e===a.default.Deflate){t.push([],a.default.Z_FINISH);return t.result}})}}function bzip2(e){return function(r){return c.default.fromAsync(async()=>e(await c.default.readToEnd(r)))}}let b;let y;if(p){b={zip:node_zlib(p.createDeflateRaw,{level:d.default.deflate_level}),zlib:node_zlib(p.createDeflate,{level:d.default.deflate_level})};y={uncompressed:uncompressed,zip:node_zlib(p.createInflateRaw),zlib:node_zlib(p.createInflate),bzip2:bzip2(s.default.decode)}}else{b={zip:pako_zlib(a.default.Deflate,{raw:true,level:d.default.deflate_level}),zlib:pako_zlib(a.default.Deflate,{level:d.default.deflate_level})};y={uncompressed:uncompressed,zip:pako_zlib(a.default.Inflate,{raw:true}),zlib:pako_zlib(a.default.Inflate),bzip2:bzip2(s.default.decode)}}},{"../config":79,"../enums":113,"../util":158,pako:50,"seek-bzip":69,"web-stream-tools":75}],131:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("./all_packets");var a=_interopRequireWildcard(t);var i=e("./clone");var s=_interopRequireWildcard(i);var f=e("./packetlist");var c=_interopRequireDefault(f);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}const l={List:c.default,clone:s};Object.assign(l,a);n.default=l},{"./all_packets":128,"./clone":129,"./packetlist":136}],132:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("web-stream-tools");var a=_interopRequireDefault(t);var i=e("../enums");var s=_interopRequireDefault(i);var f=e("../util");var c=_interopRequireDefault(f);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Literal(e=new Date){this.tag=s.default.packet.literal;this.format="utf8";this.date=c.default.normalizeDate(e);this.text=null;this.data=null;this.filename="msg.txt"}Literal.prototype.setText=function(e,r="utf8"){this.format=r;this.text=e;this.data=null};Literal.prototype.getText=function(e=false){if(this.text===null||c.default.isStream(this.text)){this.text=c.default.decode_utf8(c.default.nativeEOL(this.getBytes(e)))}return this.text};Literal.prototype.setBytes=function(e,r){this.format=r;this.data=e;this.text=null};Literal.prototype.getBytes=function(e=false){if(this.data===null){this.data=c.default.canonicalizeEOL(c.default.encode_utf8(this.text))}if(e){return a.default.passiveClone(this.data)}return this.data};Literal.prototype.setFilename=function(e){this.filename=e};Literal.prototype.getFilename=function(){return this.filename};Literal.prototype.read=async function(e){await a.default.parse(e,async e=>{const r=s.default.read(s.default.literal,await e.readByte());const n=await e.readByte();this.filename=c.default.decode_utf8(await e.readBytes(n));this.date=c.default.readDate(await e.readBytes(4));const t=e.remainder();this.setBytes(t,r)})};Literal.prototype.writeHeader=function(){const e=c.default.encode_utf8(this.filename);const r=new Uint8Array([e.length]);const n=new Uint8Array([s.default.write(s.default.literal,this.format)]);const t=c.default.writeDate(this.date);return c.default.concatUint8Array([n,r,e,t])};Literal.prototype.write=function(){const e=this.writeHeader();const r=this.getBytes();return c.default.concat([e,r])};n.default=Literal},{"../enums":113,"../util":158,"web-stream-tools":75}],133:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("../enums");var a=_interopRequireDefault(t);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Marker(){this.tag=a.default.packet.marker}Marker.prototype.read=function(e){if(e[0]===80&&e[1]===71&&e[2]===80){return true}return false};n.default=Marker},{"../enums":113}],134:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("web-stream-tools");var a=_interopRequireDefault(t);var i=e("./signature");var s=_interopRequireDefault(i);var f=e("../type/keyid");var c=_interopRequireDefault(f);var l=e("../enums");var d=_interopRequireDefault(l);var u=e("../util");var o=_interopRequireDefault(u);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function OnePassSignature(){this.tag=d.default.packet.onePassSignature;this.version=null;this.signatureType=null;this.hashAlgorithm=null;this.publicKeyAlgorithm=null;this.issuerKeyId=null;this.flags=null}OnePassSignature.prototype.read=function(e){let r=0;this.version=e[r++];this.signatureType=e[r++];this.hashAlgorithm=e[r++];this.publicKeyAlgorithm=e[r++];this.issuerKeyId=new c.default;this.issuerKeyId.read(e.subarray(r,r+8));r+=8;this.flags=e[r++];return this};OnePassSignature.prototype.write=function(){const e=new Uint8Array([3,d.default.write(d.default.signature,this.signatureType),d.default.write(d.default.hash,this.hashAlgorithm),d.default.write(d.default.publicKey,this.publicKeyAlgorithm)]);const r=new Uint8Array([this.flags]);return o.default.concatUint8Array([e,this.issuerKeyId.write(),r])};OnePassSignature.prototype.postCloneTypeFix=function(){this.issuerKeyId=c.default.fromClone(this.issuerKeyId)};OnePassSignature.prototype.hash=s.default.prototype.hash;OnePassSignature.prototype.toHash=s.default.prototype.toHash;OnePassSignature.prototype.toSign=s.default.prototype.toSign;OnePassSignature.prototype.calculateTrailer=function(...e){return a.default.fromAsync(async()=>s.default.prototype.calculateTrailer.apply(await this.correspondingSig,e))};OnePassSignature.prototype.verify=async function(){const e=await this.correspondingSig;if(!e||e.tag!==d.default.packet.signature){throw new Error("Corresponding signature packet missing")}if(e.signatureType!==this.signatureType||e.hashAlgorithm!==this.hashAlgorithm||e.publicKeyAlgorithm!==this.publicKeyAlgorithm||!e.issuerKeyId.equals(this.issuerKeyId)){throw new Error("Corresponding signature packet does not match one-pass signature packet")}e.hashed=this.hashed;return e.verify.apply(e,arguments)};n.default=OnePassSignature},{"../enums":113,"../type/keyid":154,"../util":158,"./signature":142,"web-stream-tools":75}],135:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=function(){function sliceIterator(e,r){var n=[];var t=true;var a=false;var i=undefined;try{for(var s=e[Symbol.iterator](),f;!(t=(f=s.next()).done);t=true){n.push(f.value);if(r&&n.length===r)break}}catch(e){a=true;i=e}finally{try{if(!t&&s["return"])s["return"]()}finally{if(a)throw i}}return n}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return sliceIterator(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var a=e("web-stream-tools");var i=_interopRequireDefault(a);var s=e("../enums");var f=_interopRequireDefault(s);var c=e("../util");var l=_interopRequireDefault(c);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}n.default={readSimpleLength:function readSimpleLength(e){let r=0;let n;const a=e[0];if(a<192){var i=t(e,1);r=i[0];n=1}else if(a<255){r=(e[0]-192<<8)+e[1]+192;n=2}else if(a===255){r=l.default.readNumber(e.subarray(1,1+4));n=5}return{len:r,offset:n}},writeSimpleLength:function writeSimpleLength(e){if(e<192){return new Uint8Array([e])}else if(e>191&&e<8384){return new Uint8Array([(e-192>>8)+192,e-192&255])}return l.default.concatUint8Array([new Uint8Array([255]),l.default.writeNumber(e,4)])},writePartialLength:function writePartialLength(e){if(e<0||e>30){throw new Error("Partial Length power must be between 1 and 30")}return new Uint8Array([224+e])},writeTag:function writeTag(e){return new Uint8Array([192|e])},writeHeader:function writeHeader(e,r){return l.default.concatUint8Array([this.writeTag(e),this.writeSimpleLength(r)])},supportsStreaming:function supportsStreaming(e){return[f.default.packet.literal,f.default.packet.compressed,f.default.packet.symmetricallyEncrypted,f.default.packet.symEncryptedIntegrityProtected,f.default.packet.symEncryptedAEADProtected].includes(e)},read:async function read(e,r,n){const t=i.default.getReader(e);let a;let s;try{const e=await t.peekBytes(2);if(!e||e.length<2||(e[0]&128)===0){throw new Error("Error during parsing. This message / key probably does not conform to a valid OpenPGP format.")}const c=await t.readByte();let d=-1;let u=-1;let o;u=0;if((c&64)!==0){u=1}let h;if(u){d=c&63}else{d=(c&63)>>2;h=c&3}const v=this.supportsStreaming(d);let p=null;if(r&&v){const e=new TransformStream;a=i.default.getWriter(e.writable);p=e.readable;s=n({tag:d,packet:p})}else{p=[]}let b;do{if(!u){switch(h){case 0:o=await t.readByte();break;case 1:o=await t.readByte()<<8|await t.readByte();break;case 2:o=await t.readByte()<<24|await t.readByte()<<16|await t.readByte()<<8|await t.readByte();break;default:o=Infinity;break}}else{const e=await t.readByte();b=false;if(e<192){o=e}else if(e>=192&&e<224){o=(e-192<<8)+await t.readByte()+192}else if(e>223&&e<255){o=1<<(e&31);b=true;if(!v){throw new TypeError("This packet type does not support partial lengths.")}}else{o=await t.readByte()<<24|await t.readByte()<<16|await t.readByte()<<8|await t.readByte()}}if(o>0){let e=0;while(true){if(a)await a.ready;var f=await t.read();const r=f.done,n=f.value;if(r){if(o===Infinity)break;throw new Error("Unexpected end of packet")}const i=o===Infinity?n:n.subarray(0,o-e);if(a)await a.write(i);else p.push(i);e+=n.length;if(e>=o){t.unshift(n.subarray(o-e+n.length));break}}}}while(b);const y=await t.peekBytes(v?Infinity:2);if(a){await a.ready;await a.close()}else{p=l.default.concatUint8Array(p);await n({tag:d,packet:p})}return!y||!y.length}catch(e){if(a){await a.abort(e);return true}else{throw e}}finally{if(a){await s}t.releaseLock()}}}},{"../enums":113,"../util":158,"web-stream-tools":75}],136:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("web-stream-tools");var a=_interopRequireDefault(t);var i=e("./all_packets");var s=_interopRequireWildcard(i);var f=e("./packet");var c=_interopRequireDefault(f);var l=e("../config");var d=_interopRequireDefault(l);var u=e("../enums");var o=_interopRequireDefault(u);var h=e("../util");var v=_interopRequireDefault(h);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function List(){this.length=0}List.prototype=[];List.prototype.read=async function(e,r){this.stream=a.default.transformPair(e,async(e,n)=>{const t=a.default.getWriter(n);try{while(true){await t.ready;const n=await c.default.read(e,r,async e=>{try{const n=o.default.read(o.default.packet,e.tag);const a=s.newPacketFromTag(n);a.packets=new List;a.fromStream=v.default.isStream(e.packet);await a.read(e.packet,r);await t.write(a)}catch(r){if(!d.default.tolerant||c.default.supportsStreaming(e.tag)){await t.abort(r)}v.default.print_debug_error(r)}});if(n){await t.ready;await t.close();return}}}catch(e){await t.abort(e)}});const n=a.default.getReader(this.stream);while(true){var t=await n.read();const e=t.done,r=t.value;if(!e){this.push(r)}else{this.stream=null}if(e||c.default.supportsStreaming(r.tag)){break}}n.releaseLock()};List.prototype.write=function(){const e=[];for(let r=0;r{t.push(e);i+=e.length;if(i>=s){const e=Math.min(Math.log(i)/Math.LN2|0,30);const r=2**e;const n=v.default.concat([c.default.writePartialLength(e)].concat(t));t=[n.subarray(1+r)];i=t[0].length;return n.subarray(0,1+r)}},()=>v.default.concat([c.default.writeSimpleLength(i)].concat(t))))}else{if(v.default.isStream(n)){let t=0;e.push(a.default.transform(a.default.clone(n),e=>{t+=e.length},()=>c.default.writeHeader(this[r].tag,t)))}else{e.push(c.default.writeHeader(this[r].tag,n.length))}e.push(n)}}return v.default.concat(e)};List.prototype.push=function(e){if(!e){return}e.packets=e.packets||new List;this[this.length]=e;this.length++};List.prototype.filterByTag=function(...e){const r=new List;const n=e=>r=>e===r;for(let t=0;tr.tag===e)};List.prototype.indexOfTag=function(...e){const r=[];const n=this;const t=e=>r=>e===r;for(let a=0;as.fromStructuredClone(e))}return r};n.default=List},{"../config":79,"../enums":113,"../util":158,"./all_packets":128,"./packet":135,"web-stream-tools":75}],137:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("asmcrypto.js/dist_es5/hash/sha1/sha1");var a=e("asmcrypto.js/dist_es5/hash/sha256/sha256");var i=e("../type/keyid");var s=_interopRequireDefault(i);var f=e("../type/mpi");var c=_interopRequireDefault(f);var l=e("../config");var d=_interopRequireDefault(l);var u=e("../crypto");var o=_interopRequireDefault(u);var h=e("../enums");var v=_interopRequireDefault(h);var p=e("../util");var b=_interopRequireDefault(p);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function PublicKey(e=new Date){this.tag=v.default.packet.publicKey;this.version=d.default.v5_keys?5:4;this.created=b.default.normalizeDate(e);this.algorithm=null;this.params=[];this.expirationTimeV3=0;this.fingerprint=null;this.keyid=null}PublicKey.prototype.read=function(e){let r=0;this.version=e[r++];if(this.version===4||this.version===5){this.created=b.default.readDate(e.subarray(r,r+4));r+=4;this.algorithm=v.default.read(v.default.publicKey,e[r++]);const n=v.default.write(v.default.publicKey,this.algorithm);if(this.version===5){r+=4}const t=o.default.getPubKeyParamTypes(n);this.params=o.default.constructParams(t);for(let n=0;ne.length){throw new Error("Error reading MPI @:"+r)}}return r}throw new Error("Version "+this.version+" of the key packet is unsupported.")};PublicKey.prototype.readPublicKey=PublicKey.prototype.read;PublicKey.prototype.write=function(){const e=[];e.push(new Uint8Array([this.version]));e.push(b.default.writeDate(this.created));const r=v.default.write(v.default.publicKey,this.algorithm);e.push(new Uint8Array([r]));const n=o.default.getPubKeyParamTypes(r).length;const t=b.default.concatUint8Array(this.params.slice(0,n).map(e=>e.write()));if(this.version===5){e.push(b.default.writeNumber(t.length,4))}e.push(t);return b.default.concatUint8Array(e)};PublicKey.prototype.writePublicKey=PublicKey.prototype.write;PublicKey.prototype.writeForHash=function(e){const r=this.writePublicKey();if(e===5){return b.default.concatUint8Array([new Uint8Array([154]),b.default.writeNumber(r.length,4),r])}return b.default.concatUint8Array([new Uint8Array([153]),b.default.writeNumber(r.length,2),r])};PublicKey.prototype.isDecrypted=function(){return null};PublicKey.prototype.getCreationTime=function(){return this.created};PublicKey.prototype.getKeyId=function(){if(this.keyid){return this.keyid}this.keyid=new s.default;if(this.version===5){this.keyid.read(b.default.hex_to_Uint8Array(this.getFingerprint()).subarray(0,8))}else if(this.version===4){this.keyid.read(b.default.hex_to_Uint8Array(this.getFingerprint()).subarray(12,20))}return this.keyid};PublicKey.prototype.getFingerprintBytes=function(){if(this.fingerprint){return this.fingerprint}const e=this.writeForHash(this.version);if(this.version===5){this.fingerprint=a.Sha256.bytes(e)}else if(this.version===4){this.fingerprint=t.Sha1.bytes(e)}return this.fingerprint};PublicKey.prototype.getFingerprint=function(){return b.default.Uint8Array_to_hex(this.getFingerprintBytes())};PublicKey.prototype.hasSameFingerprintAs=function(e){return this.version===e.version&&b.default.equalsUint8Array(this.writePublicKey(),e.writePublicKey())};PublicKey.prototype.getAlgorithmInfo=function(){const e={};e.algorithm=this.algorithm;if(this.params[0]instanceof c.default){e.rsaBits=this.params[0].byteLength()*8;e.bits=e.rsaBits}else{e.curve=this.params[0].getName()}return e};PublicKey.prototype.postCloneTypeFix=function(){const e=v.default.write(v.default.publicKey,this.algorithm);const r=o.default.getPubKeyParamTypes(e);for(let e=0;ee.length){throw new Error("Error reading param @:"+i)}}return a}function write_cleartext_params(e,r){const n=[];const t=o.default.write(o.default.publicKey,r);const a=d.default.getPubKeyParamTypes(t).length;for(let r=a;r{e.data.fill(0)});this.params.length=r;this.isEncrypted=true};SecretKey.prototype.postCloneTypeFix=function(){const e=o.default.write(o.default.publicKey,this.algorithm);const r=[].concat(d.default.getPubKeyParamTypes(e),d.default.getPrivKeyParamTypes(e));for(let e=0;eo.default.signature.sign(s,f,u,l,await a.default.readToEnd(d));if(t){this.signature=a.default.fromAsync(h)}else{this.signature=await h();this.verified=true}return true};Signature.prototype.write_hashed_sub_packets=function(){const e=v.default.signatureSubpacket;const r=[];let n;if(this.created!==null){r.push(write_sub_packet(e.signature_creation_time,b.default.writeDate(this.created)))}if(this.signatureExpirationTime!==null){r.push(write_sub_packet(e.signature_expiration_time,b.default.writeNumber(this.signatureExpirationTime,4)))}if(this.exportable!==null){r.push(write_sub_packet(e.exportable_certification,new Uint8Array([this.exportable?1:0])))}if(this.trustLevel!==null){n=new Uint8Array([this.trustLevel,this.trustAmount]);r.push(write_sub_packet(e.trust_signature,n))}if(this.regularExpression!==null){r.push(write_sub_packet(e.regular_expression,this.regularExpression))}if(this.revocable!==null){r.push(write_sub_packet(e.revocable,new Uint8Array([this.revocable?1:0])))}if(this.keyExpirationTime!==null){r.push(write_sub_packet(e.key_expiration_time,b.default.writeNumber(this.keyExpirationTime,4)))}if(this.preferredSymmetricAlgorithms!==null){n=b.default.str_to_Uint8Array(b.default.Uint8Array_to_str(this.preferredSymmetricAlgorithms));r.push(write_sub_packet(e.preferred_symmetric_algorithms,n))}if(this.revocationKeyClass!==null){n=new Uint8Array([this.revocationKeyClass,this.revocationKeyAlgorithm]);n=b.default.concat([n,this.revocationKeyFingerprint]);r.push(write_sub_packet(e.revocation_key,n))}this.notations.forEach(([t,a])=>{n=[new Uint8Array([128,0,0,0])];n.push(b.default.writeNumber(t.length,2));n.push(b.default.writeNumber(a.length,2));n.push(b.default.str_to_Uint8Array(t+a));n=b.default.concat(n);r.push(write_sub_packet(e.notation_data,n))});if(this.preferredHashAlgorithms!==null){n=b.default.str_to_Uint8Array(b.default.Uint8Array_to_str(this.preferredHashAlgorithms));r.push(write_sub_packet(e.preferred_hash_algorithms,n))}if(this.preferredCompressionAlgorithms!==null){n=b.default.str_to_Uint8Array(b.default.Uint8Array_to_str(this.preferredCompressionAlgorithms));r.push(write_sub_packet(e.preferred_compression_algorithms,n))}if(this.keyServerPreferences!==null){n=b.default.str_to_Uint8Array(b.default.Uint8Array_to_str(this.keyServerPreferences));r.push(write_sub_packet(e.key_server_preferences,n))}if(this.preferredKeyServer!==null){r.push(write_sub_packet(e.preferred_key_server,b.default.str_to_Uint8Array(this.preferredKeyServer)))}if(this.isPrimaryUserID!==null){r.push(write_sub_packet(e.primary_user_id,new Uint8Array([this.isPrimaryUserID?1:0])))}if(this.policyURI!==null){r.push(write_sub_packet(e.policy_uri,b.default.str_to_Uint8Array(this.policyURI)))}if(this.keyFlags!==null){n=b.default.str_to_Uint8Array(b.default.Uint8Array_to_str(this.keyFlags));r.push(write_sub_packet(e.key_flags,n))}if(this.signersUserId!==null){r.push(write_sub_packet(e.signers_user_id,b.default.str_to_Uint8Array(this.signersUserId)))}if(this.reasonForRevocationFlag!==null){n=b.default.str_to_Uint8Array(String.fromCharCode(this.reasonForRevocationFlag)+this.reasonForRevocationString);r.push(write_sub_packet(e.reason_for_revocation,n))}if(this.features!==null){n=b.default.str_to_Uint8Array(b.default.Uint8Array_to_str(this.features));r.push(write_sub_packet(e.features,n))}if(this.signatureTargetPublicKeyAlgorithm!==null){n=[new Uint8Array([this.signatureTargetPublicKeyAlgorithm,this.signatureTargetHashAlgorithm])];n.push(b.default.str_to_Uint8Array(this.signatureTargetHash));n=b.default.concat(n);r.push(write_sub_packet(e.signature_target,n))}if(this.preferredAeadAlgorithms!==null){n=b.default.str_to_Uint8Array(b.default.Uint8Array_to_str(this.preferredAeadAlgorithms));r.push(write_sub_packet(e.preferred_aead_algorithms,n))}const t=b.default.concat(r);const a=b.default.writeNumber(t.length,2);return b.default.concat([a,t])};Signature.prototype.write_unhashed_sub_packets=function(){const e=v.default.signatureSubpacket;const r=[];let n;if(!this.issuerKeyId.isNull()&&this.issuerKeyVersion!==5){r.push(write_sub_packet(e.issuer,this.issuerKeyId.write()))}if(this.embeddedSignature!==null){r.push(write_sub_packet(e.embedded_signature,this.embeddedSignature.write()))}if(this.issuerFingerprint!==null){n=[new Uint8Array([this.issuerKeyVersion]),this.issuerFingerprint];n=b.default.concat(n);r.push(write_sub_packet(e.issuer_fingerprint,n))}this.unhashedSubpackets.forEach(e=>{r.push(s.default.writeSimpleLength(e.length));r.push(e)});const t=b.default.concat(r);const a=b.default.writeNumber(t.length,2);return b.default.concat([a,t])};function write_sub_packet(e,r){const n=[];n.push(s.default.writeSimpleLength(r.length+1));n.push(new Uint8Array([e]));n.push(r);return b.default.concat(n)}Signature.prototype.read_sub_packet=function(e,r=true){let n=0;const t=(e,r)=>{this[e]=[];for(let n=0;n{n+=e.length},()=>{const t=[];if(this.version===5&&(this.signatureType===v.default.signature.binary||this.signatureType===v.default.signature.text)){if(r){t.push(new Uint8Array(6))}else{t.push(e.writeHeader())}}t.push(new Uint8Array([this.version,255]));if(this.version===5){t.push(new Uint8Array(4))}t.push(b.default.writeNumber(n,4));return b.default.concat(t)})};Signature.prototype.toHash=function(e,r,n=false){const t=this.toSign(e,r);return b.default.concat([t,this.signatureData,this.calculateTrailer(r,n)])};Signature.prototype.hash=async function(e,r,n,t=false,i=true){const s=v.default.write(v.default.hash,this.hashAlgorithm);if(!n)n=this.toHash(e,r,t);if(!i&&b.default.isStream(n)){return a.default.fromAsync(async()=>this.hash(e,r,await a.default.readToEnd(n),t))}return o.default.hash.digest(s,n)};Signature.prototype.verify=async function(e,r,n,t=false,i=false){const s=v.default.write(v.default.publicKey,this.publicKeyAlgorithm);const f=v.default.write(v.default.hash,this.hashAlgorithm);if(s!==v.default.write(v.default.publicKey,e.algorithm)){throw new Error("Public key algorithm used to sign signature does not match issuer key algorithm.")}let c;let l;if(this.hashed){l=await this.hashed}else{c=this.toHash(r,n,t);if(!i)c=await a.default.readToEnd(c);l=await this.hash(r,n,c)}l=await a.default.readToEnd(l);if(this.signedHashValue[0]!==l[0]||this.signedHashValue[1]!==l[1]){throw new Error("Message digest did not match")}let u=0;if(s>0&&s<4){u=1}else if(s===v.default.publicKey.dsa||s===v.default.publicKey.ecdsa||s===v.default.publicKey.eddsa){u=2}const h=s===v.default.publicKey.eddsa?"le":"be";const p=[];let b=0;this.signature=await a.default.readToEnd(this.signature);for(let e=0;e{if(await e.readByte()!==h){throw new Error("Invalid packet version.")}this.cipherAlgo=await e.readByte();this.aeadAlgo=await e.readByte();this.chunkSizeByte=await e.readByte();const r=c.default[d.default.read(d.default.aead,this.aeadAlgo)];this.iv=await e.readBytes(r.ivLength);this.encrypted=e.remainder()})};SymEncryptedAEADProtected.prototype.write=function(){return o.default.concat([new Uint8Array([this.version,this.cipherAlgo,this.aeadAlgo,this.chunkSizeByte]),this.iv,this.encrypted])};SymEncryptedAEADProtected.prototype.decrypt=async function(e,r,n){await this.packets.read(await this.crypt("decrypt",r,a.default.clone(this.encrypted),n),n);return true};SymEncryptedAEADProtected.prototype.encrypt=async function(e,r,n){this.cipherAlgo=d.default.write(d.default.symmetric,e);this.aeadAlgo=d.default.write(d.default.aead,this.aeadAlgorithm);const t=c.default[d.default.read(d.default.aead,this.aeadAlgo)];this.iv=await c.default.random.getRandomBytes(t.ivLength);this.chunkSizeByte=s.default.aead_chunk_size_byte;const a=this.packets.write();this.encrypted=await this.crypt("encrypt",r,a,n)};SymEncryptedAEADProtected.prototype.crypt=async function(e,r,n,t){const i=d.default.read(d.default.symmetric,this.cipherAlgo);const s=c.default[d.default.read(d.default.aead,this.aeadAlgo)];const f=await s(i,r);const l=e==="decrypt"?s.tagLength:0;const u=e==="encrypt"?s.tagLength:0;const h=2**(this.chunkSizeByte+6)+l;const v=new ArrayBuffer(21);const p=new Uint8Array(v,0,13);const b=new Uint8Array(v);const y=new DataView(v);const g=new Uint8Array(v,5,8);p.set([192|this.tag,this.version,this.cipherAlgo,this.aeadAlgo,this.chunkSizeByte],0);let w=0;let m=Promise.resolve();let A=0;let E=0;const S=this.iv;return a.default.transformPair(n,async(r,n)=>{const i=a.default.getReader(r);const c=new TransformStream({},{highWaterMark:t?o.default.getHardwareConcurrency()*2**(this.chunkSizeByte+6):Infinity,size:e=>e.length});a.default.pipe(c.readable,n);const d=a.default.getWriter(c.writable);try{while(true){let r=await i.readBytes(h+l)||new Uint8Array;const n=r.subarray(r.length-l);r=r.subarray(0,r.length-l);let t;let a;if(!w||r.length){i.unshift(n);t=f[e](r,s.getNonce(S,g),p);E+=r.length-l+u}else{y.setInt32(13+4,A);t=f[e](n,s.getNonce(S,g),b);E+=u;a=true}A+=r.length-l;m=m.then(()=>t).then(async e=>{await d.ready;await d.write(e);E-=e.length}).catch(e=>d.abort(e));if(a||E>d.desiredSize){await m}if(!a){y.setInt32(5+4,++w)}else{await d.close();break}}}catch(e){await d.abort(e)}})}},{"../config":79,"../crypto":94,"../enums":113,"../util":158,"web-stream-tools":75}],144:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("web-stream-tools");var a=_interopRequireDefault(t);var i=e("../config");var s=_interopRequireDefault(i);var f=e("../crypto");var c=_interopRequireDefault(f);var l=e("../enums");var d=_interopRequireDefault(l);var u=e("../util");var o=_interopRequireDefault(u);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const h=1;function SymEncryptedIntegrityProtected(){this.tag=d.default.packet.symEncryptedIntegrityProtected;this.version=h;this.encrypted=null;this.modification=false;this.packets=null}SymEncryptedIntegrityProtected.prototype.read=async function(e){await a.default.parse(e,async e=>{if(await e.readByte()!==h){throw new Error("Invalid packet version.")}this.encrypted=e.remainder()})};SymEncryptedIntegrityProtected.prototype.write=function(){return o.default.concat([new Uint8Array([h]),this.encrypted])};SymEncryptedIntegrityProtected.prototype.encrypt=async function(e,r,n){let t=this.packets.write();if(!n)t=await a.default.readToEnd(t);const i=await c.default.getPrefixRandom(e);const s=new Uint8Array([211,20]);const f=o.default.concat([i,t,s]);const l=await c.default.hash.sha1(a.default.passiveClone(f));const d=o.default.concat([f,l]);this.encrypted=await c.default.cfb.encrypt(e,r,d,new Uint8Array(c.default.cipher[e].blockSize));return true};SymEncryptedIntegrityProtected.prototype.decrypt=async function(e,r,n){let t=a.default.clone(this.encrypted);if(!n)t=await a.default.readToEnd(t);const i=await c.default.cfb.decrypt(e,r,t,new Uint8Array(c.default.cipher[e].blockSize));const f=a.default.slice(a.default.passiveClone(i),-20);const l=a.default.slice(i,0,-20);const d=Promise.all([a.default.readToEnd(await c.default.hash.sha1(a.default.passiveClone(l))),a.default.readToEnd(f)]).then(([e,r])=>{if(!o.default.equalsUint8Array(e,r)){throw new Error("Modification detected.")}return new Uint8Array});const u=a.default.slice(l,c.default.cipher[e].blockSize+2);let h=a.default.slice(u,0,-2);h=a.default.concat([h,a.default.fromAsync(()=>d)]);if(!o.default.isStream(t)||!s.default.allow_unauthenticated_stream){h=await a.default.readToEnd(h)}await this.packets.read(h,n);return true};n.default=SymEncryptedIntegrityProtected},{"../config":79,"../crypto":94,"../enums":113,"../util":158,"web-stream-tools":75}],145:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("../type/s2k");var a=_interopRequireDefault(t);var i=e("../config");var s=_interopRequireDefault(i);var f=e("../crypto");var c=_interopRequireDefault(f);var l=e("../enums");var d=_interopRequireDefault(l);var u=e("../util");var o=_interopRequireDefault(u);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function SymEncryptedSessionKey(){this.tag=d.default.packet.symEncryptedSessionKey;this.version=s.default.aead_protect?5:4;this.sessionKey=null;this.sessionKeyEncryptionAlgorithm=null;this.sessionKeyAlgorithm="aes256";this.aeadAlgorithm=d.default.read(d.default.aead,s.default.aead_mode);this.encrypted=null;this.s2k=null;this.iv=null}SymEncryptedSessionKey.prototype.read=function(e){let r=0;this.version=e[r++];const n=d.default.read(d.default.symmetric,e[r++]);if(this.version===5){this.aeadAlgorithm=d.default.read(d.default.aead,e[r++])}this.s2k=new a.default;r+=this.s2k.read(e.subarray(r,e.length));if(this.version===5){const n=c.default[this.aeadAlgorithm];this.iv=e.subarray(r,r+=n.ivLength)}if(this.version===5||r=1){const r=e[0];if(e.length>=1+r){this.data=e.subarray(1,1+r);return 1+this.data.length}}throw new Error("Invalid symmetric key")};ECDHSymmetricKey.prototype.write=function(){return a.default.concatUint8Array([new Uint8Array([this.data.length]),this.data])};ECDHSymmetricKey.fromClone=function(e){return new ECDHSymmetricKey(e.data)};n.default=ECDHSymmetricKey},{"../util":158}],153:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});function KDFParams(e){if(e){const r=e.hash,n=e.cipher;this.hash=r;this.cipher=n}else{this.hash=null;this.cipher=null}}KDFParams.prototype.read=function(e){if(e.length<4||e[0]!==3||e[1]!==1){throw new Error("Cannot read KDFParams")}this.hash=e[2];this.cipher=e[3];return 4};KDFParams.prototype.write=function(){return new Uint8Array([3,1,this.hash,this.cipher])};KDFParams.fromClone=function(e){const r=e.hash,n=e.cipher;return new KDFParams({hash:r,cipher:n})};n.default=KDFParams},{}],154:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("../util.js");var a=_interopRequireDefault(t);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Keyid(){this.bytes=""}Keyid.prototype.read=function(e){this.bytes=a.default.Uint8Array_to_str(e.subarray(0,8))};Keyid.prototype.write=function(){return a.default.str_to_Uint8Array(this.bytes)};Keyid.prototype.toHex=function(){return a.default.str_to_hex(this.bytes)};Keyid.prototype.equals=function(e,r=false){return r&&(e.isWildcard()||this.isWildcard())||this.bytes===e.bytes};Keyid.prototype.isNull=function(){return this.bytes===""};Keyid.prototype.isWildcard=function(){return/^0+$/.test(this.toHex())};Keyid.mapToHex=function(e){return e.toHex()};Keyid.fromClone=function(e){const r=new Keyid;r.bytes=e.bytes;return r};Keyid.fromId=function(e){const r=new Keyid;r.read(a.default.hex_to_Uint8Array(e));return r};Keyid.wildcard=function(){const e=new Keyid;e.read(new Uint8Array(8));return e};n.default=Keyid},{"../util.js":158}],155:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("bn.js");var a=_interopRequireDefault(t);var i=e("../util");var s=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function MPI(e){if(e instanceof MPI){this.data=e.data}else if(a.default.isBN(e)){this.fromBN(e)}else if(s.default.isUint8Array(e)){this.fromUint8Array(e)}else if(s.default.isString(e)){this.fromString(e)}else{this.data=null}}MPI.prototype.read=function(e,r="be"){if(s.default.isString(e)){e=s.default.str_to_Uint8Array(e)}const n=e[0]<<8|e[1];const t=n+7>>>3;const a=e.subarray(2,2+t);this.fromUint8Array(a,r);return 2+t};MPI.prototype.write=function(e,r){return s.default.Uint8Array_to_MPI(this.toUint8Array(e,r))};MPI.prototype.bitLength=function(){return(this.data.length-1)*8+s.default.nbits(this.data[0])};MPI.prototype.byteLength=function(){return this.data.length};MPI.prototype.toUint8Array=function(e,r){e=e||"be";r=r||this.data.length;const n=new Uint8Array(r);const t=e==="le"?0:r-this.data.length;n.set(this.data,t);if(e==="le"){n.reverse()}return n};MPI.prototype.fromUint8Array=function(e,r="be"){this.data=new Uint8Array(e.length);this.data.set(e);if(r==="le"){this.data.reverse()}};MPI.prototype.toString=function(){return s.default.Uint8Array_to_str(this.toUint8Array())};MPI.prototype.fromString=function(e,r="be"){this.fromUint8Array(s.default.str_to_Uint8Array(e),r)};MPI.prototype.toBN=function(){return new a.default(this.toUint8Array())};MPI.prototype.fromBN=function(e){this.data=e.toArrayLike(Uint8Array)};MPI.fromClone=function(e){return new MPI(e.data)};n.default=MPI},{"../util":158,"bn.js":16}],156:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("../util");var a=_interopRequireDefault(t);var i=e("../enums");var s=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function OID(e){if(e instanceof OID){this.oid=e.oid}else if(a.default.isArray(e)||a.default.isUint8Array(e)){e=new Uint8Array(e);if(e[0]===6){if(e[1]!==e.length-2){throw new Error("Length mismatch in DER encoded oid")}e=e.subarray(2)}this.oid=e}else{this.oid=""}}OID.prototype.read=function(e){if(e.length>=1){const r=e[0];if(e.length>=1+r){this.oid=e.subarray(1,1+r);return 1+this.oid.length}}throw new Error("Invalid oid")};OID.prototype.write=function(){return a.default.concatUint8Array([new Uint8Array([this.oid.length]),this.oid])};OID.prototype.toHex=function(){return a.default.Uint8Array_to_hex(this.oid)};OID.prototype.getName=function(){const e=this.toHex();if(s.default.curve[e]){return s.default.write(s.default.curve,e)}else{throw new Error("Unknown curve object identifier.")}};OID.fromClone=function(e){return new OID(e.oid)};n.default=OID},{"../enums":113,"../util":158}],157:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("../config");var a=_interopRequireDefault(t);var i=e("../crypto");var s=_interopRequireDefault(i);var f=e("../enums.js");var c=_interopRequireDefault(f);var l=e("../util.js");var d=_interopRequireDefault(l);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function S2K(){this.algorithm="sha256";this.type="iterated";this.c=a.default.s2k_iteration_count_byte;this.salt=null}S2K.prototype.get_count=function(){const e=6;return 16+(this.c&15)<<(this.c>>4)+e};S2K.prototype.read=function(e){let r=0;this.type=c.default.read(c.default.s2k,e[r++]);this.algorithm=e[r++];if(this.type!=="gnu"){this.algorithm=c.default.read(c.default.hash,this.algorithm)}switch(this.type){case"simple":break;case"salted":this.salt=e.subarray(r,r+8);r+=8;break;case"iterated":this.salt=e.subarray(r,r+8);r+=8;this.c=e[r++];break;case"gnu":if(d.default.Uint8Array_to_str(e.subarray(r,r+3))==="GNU"){r+=3;const n=1e3+e[r++];if(n===1001){this.type="gnu-dummy"}else{throw new Error("Unknown s2k gnu protection mode.")}}else{throw new Error("Unknown s2k type.")}break;default:throw new Error("Unknown s2k type.")}return r};S2K.prototype.write=function(){if(this.type==="gnu-dummy"){return new Uint8Array([101,0,...d.default.str_to_Uint8Array("GNU"),1])}const e=[new Uint8Array([c.default.write(c.default.s2k,this.type),c.default.write(c.default.hash,this.algorithm)])];switch(this.type){case"simple":break;case"salted":e.push(this.salt);break;case"iterated":e.push(this.salt);e.push(new Uint8Array([this.c]));break;case"gnu":throw new Error("GNU s2k type not supported.");default:throw new Error("Unknown s2k type.")}return d.default.concatUint8Array(e)};S2K.prototype.produce_key=async function(e,r){e=d.default.encode_utf8(e);const n=c.default.write(c.default.hash,this.algorithm);const t=[];let a=0;let i=0;while(a{if(d.default.isStream(a)){if(a.locked){e[t]=null}else{const n=s.default.transformPair(a,async a=>{const i=s.default.getReader(a);var f=new MessageChannel;const c=f.port1,l=f.port2;c.onmessage=async function({data:{action:e}}){if(e==="read"){try{const e=await i.read();c.postMessage(e,d.default.getTransferables(e))}catch(e){c.postMessage({error:e.message})}}else if(e==="cancel"){await n.cancel();c.postMessage()}};e[t]=l;r.push(l)})}return}if(Object.prototype.toString.call(a)==="[object MessagePort]"){throw new Error("Can't transfer the same stream twice.")}d.default.collectTransferables(a,r,n)})}},restoreStreams:function restoreStreams(e){if(Object.prototype.isPrototypeOf(e)&&!Uint8Array.prototype.isPrototypeOf(e)){Object.entries(e).forEach(([r,n])=>{if(Object.prototype.toString.call(n)==="[object MessagePort]"){e[r]=new ReadableStream({pull(e){return new Promise(r=>{n.onmessage=(n=>{var t=n.data;const a=t.done,i=t.value,s=t.error;if(s){e.error(new Error(s))}else if(!a){e.enqueue(i)}else{e.close()}r()});n.postMessage({action:"read"})})},cancel(){return new Promise(e=>{n.onmessage=e;n.postMessage({action:"cancel"})})}},{highWaterMark:0});return}d.default.restoreStreams(n)})}return e},readNumber:function readNumber(e){let r=0;for(let n=0;n>8*(r-t-1)&255}return n},readDate:function readDate(e){const r=d.default.readNumber(e);const n=new Date(r*1e3);return n},writeDate:function writeDate(e){const r=Math.floor(e.getTime()/1e3);return d.default.writeNumber(r,4)},normalizeDate:function normalizeDate(e=Date.now()){return e===null||e===Infinity?e:new Date(Math.floor(+e/1e3)*1e3)},str_to_hex:function str_to_hex(e){if(e===null){return""}const r=[];const n=e.length;let t=0;let a;while(t>8,r&255]);return d.default.concatUint8Array([n,e])},b64_to_Uint8Array:function b64_to_Uint8Array(e){return o.default.decode(e.replace(/-/g,"+").replace(/_/g,"/"))},Uint8Array_to_b64:function Uint8Array_to_b64(e,r){let n=o.default.encode(e).replace(/[\r\n]/g,"");if(r){n=n.replace(/[+]/g,"-").replace(/[/]/g,"_").replace(/[=]/g,"")}return n},hex_to_Uint8Array:function hex_to_Uint8Array(e){const r=new Uint8Array(e.length>>1);for(let n=0;n>1;n++){r[n]=parseInt(e.substr(n<<1,2),16)}return r},Uint8Array_to_hex:function Uint8Array_to_hex(e){const r=[];const n=e.length;let t=0;let a;while(t{if(!d.default.isString(e)){throw new Error("str_to_Uint8Array: Data must be in the form of a string")}const r=new Uint8Array(e.length);for(let n=0;nprocess("",true))},decode_utf8:function decode_utf8(e){const r=new TextDecoder("utf-8");function process(e,n=false){return r.decode(e,{stream:!n})}return s.default.transform(e,process,()=>process(new Uint8Array,true))},concat:s.default.concat,concatUint8Array:s.default.concatUint8Array,equalsUint8Array:function equalsUint8Array(e,r){if(!d.default.isUint8Array(e)||!d.default.isUint8Array(r)){throw new Error("Data must be in the form of a Uint8Array")}if(e.length!==r.length){return false}for(let n=0;n{console.log(e+": ",r)})},nbits:function nbits(e){let r=1;let n=e>>>16;if(n!==0){e=n;r+=16}n=e>>8;if(n!==0){e=n;r+=8}n=e>>4;if(n!==0){e=n;r+=4}n=e>>2;if(n!==0){e=n;r+=2}n=e>>1;if(n!==0){e=n;r+=1}return r},double:function double(e){const r=new Uint8Array(e.length);const n=e.length-1;for(let t=0;t>7}r[n]=e[n]<<1^(e[0]>>7)*135;return r},shiftRight:function shiftRight(e,r){if(r){for(let n=e.length-1;n>=0;n--){e[n]>>=r;if(n>0){e[n]|=e[n-1]<<8-r}}}return e},getWebCrypto:function getWebCrypto(){if(!c.default.use_native){return}return typeof r!=="undefined"&&r.crypto&&r.crypto.subtle},getWebCryptoAll:function getWebCryptoAll(){if(!c.default.use_native){return}if(typeof r!=="undefined"){if(r.crypto){return r.crypto.subtle||r.crypto.webkitSubtle}if(r.msCrypto){return r.msCrypto.subtle}}},detectNode:function detectNode(){return typeof r.process==="object"&&typeof r.process.versions==="object"},nodeRequire:function nodeRequire(r){if(!d.default.detectNode()){return}return e(r)},getNodeCrypto:function getNodeCrypto(){if(!c.default.use_native){return}return d.default.nodeRequire("crypto")},getNodeZlib:function getNodeZlib(){if(!c.default.use_native){return}return d.default.nodeRequire("zlib")},getNodeBuffer:function getNodeBuffer(){return(d.default.nodeRequire("buffer")||{}).Buffer},getNodeStream:function getNodeStream(){return(d.default.nodeRequire("stream")||{}).Readable},getHardwareConcurrency:function getHardwareConcurrency(){if(d.default.detectNode()){const e=d.default.nodeRequire("os");return e.cpus().length}return navigator.hardwareConcurrency||1},isEmailAddress:function isEmailAddress(e){if(!d.default.isString(e)){return false}const r=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+([a-zA-Z]{2,}|xn--[a-zA-Z\-0-9]+)))$/;return r.test(e)},formatUserId:function formatUserId(e){if(e.name&&!d.default.isString(e.name)||e.email&&!d.default.isEmailAddress(e.email)||e.comment&&!d.default.isString(e.comment)){throw new Error("Invalid user id format")}const r=[];if(e.name){r.push(e.name)}if(e.comment){r.push(`(${e.comment})`)}if(e.email){r.push(`<${e.email}>`)}return r.join(" ")},parseUserId:function parseUserId(e){if(e.length>c.default.max_userid_length){throw new Error("User id string is too long")}try{var r=a.default.parseOneAddress({input:e,atInDisplayName:true});const n=r.name,t=r.address,i=r.comments;return{name:n,email:t,comment:i.replace(/^\(|\)$/g,"")}}catch(e){throw new Error("Invalid user id format")}},canonicalizeEOL:function canonicalizeEOL(e){const r=13;const n=10;let t=false;return s.default.transform(e,e=>{if(t){e=d.default.concatUint8Array([new Uint8Array([r]),e])}if(e[e.length-1]===r){t=true;e=e.subarray(0,-1)}else{t=false}let a;const i=[];for(let t=0;;t=a){a=e.indexOf(n,t)+1;if(a){if(e[a-2]!==r)i.push(a)}else{break}}if(!i.length){return e}const s=new Uint8Array(e.length+i.length);let f=0;for(let t=0;tt?new Uint8Array([r]):undefined)},nativeEOL:function nativeEOL(e){const r=13;const n=10;let t=false;return s.default.transform(e,e=>{if(t&&e[0]!==n){e=d.default.concatUint8Array([new Uint8Array([r]),e])}else{e=new Uint8Array(e)}if(e[e.length-1]===r){t=true;e=e.subarray(0,-1)}else{t=false}let a;let i=0;for(let t=0;t!==e.length;t=a){a=e.indexOf(r,t)+1;if(!a)a=e.length;const s=a-(e[a]===n?1:0);if(t)e.copyWithin(i,t,s);i+=s-t}return e.subarray(0,i)},()=>t?new Uint8Array([r]):undefined)},removeTrailingSpaces:function removeTrailingSpaces(e){return e.split("\n").map(e=>{let r=e.length-1;for(;r>=0&&(e[r]===" "||e[r]==="\t");r--);return e.substr(0,r+1)}).join("\n")},encodeZBase32:function encodeZBase32(e){if(e.length===0){return""}const r="ybndrfg8ejkmcpqxot1uwisza345h769";const n=5;const t=31;let a=e[0];let i=1;let s=8;let f="";while(s>0||i>s]}return f},wrapError:function wrapError(e,r){if(!r){return new Error(e)}try{r.message=e+": "+r.message}catch(e){}return r}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./config":79,"./encoding/base64":112,"./util":158,"email-addresses":33,"web-stream-tools":75}],159:[function(e,r,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=function(){function sliceIterator(e,r){var n=[];var t=true;var a=false;var i=undefined;try{for(var s=e[Symbol.iterator](),f;!(t=(f=s.next()).done);t=true){n.push(f.value);if(r&&n.length===r)break}}catch(e){a=true;i=e}finally{try{if(!t&&s["return"])s["return"]()}finally{if(a)throw i}}return n}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return sliceIterator(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var a=e("./util");var i=_interopRequireDefault(a);var s=e("./crypto");var f=_interopRequireDefault(s);var c=e("./key");var l=_interopRequireWildcard(c);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function WKD(){this._fetch=typeof r!=="undefined"?r.fetch:e("node-fetch")}WKD.prototype.lookup=async function(e){const r=this._fetch;if(!e.email){throw new Error("You must provide an email parameter!")}if(!i.default.isEmailAddress(e.email)){throw new Error("Invalid e-mail address.")}var n=/(.*)@(.*)/.exec(e.email),a=t(n,3);const s=a[1],c=a[2];const d=i.default.encodeZBase32(await f.default.hash.sha1(i.default.str_to_Uint8Array(s.toLowerCase())));const u=`https://openpgpkey.${c}/.well-known/openpgpkey/${c}/hu/${d}`;const o=`https://${c}/.well-known/openpgpkey/hu/${d}`;let h;try{h=await r(u);if(h.status!==200){throw new Error("Advanced WKD lookup failed: "+h.statusText)}}catch(e){i.default.print_debug_error(e);h=await r(o);if(h.status!==200){throw new Error("Direct WKD lookup failed: "+h.statusText)}}const v=new Uint8Array(await h.arrayBuffer());if(e.rawBytes){return v}return l.read(v)};n.default=WKD}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./crypto":94,"./key":118,"./util":158,"node-fetch":"node-fetch"}],160:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("../util.js");var a=_interopRequireDefault(t);var i=e("../config");var s=_interopRequireDefault(i);var f=e("../crypto");var c=_interopRequireDefault(f);var l=e("../packet");var d=_interopRequireDefault(l);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function AsyncProxy({path:e="openpgp.worker.js",n:r=1,workers:n=[],config:t}={}){const a=e=>r=>{const n=r.data;switch(n.event){case"loaded":this.workers[e].loadedResolve(true);break;case"method-return":if(n.err){const e=new Error(n.err);e.workerStack=n.stack;this.tasks[n.id].reject(e)}else{this.tasks[n.id].resolve(n.data)}delete this.tasks[n.id];this.workers[e].requests--;break;case"request-seed":this.seedRandom(e,n.amount);break;default:throw new Error("Unknown Worker Event.")}};if(n.length){this.workers=n}else{this.workers=[];while(this.workers.length{e.loadedPromise=new Promise(r=>{e.loadedResolve=r});e.requests=0;e.onmessage=a(i++);e.onerror=(r=>{e.loadedResolve(false);console.error("Unhandled error in openpgp worker: "+r.message+" ("+r.filename+":"+r.lineno+")");return false});if(t){e.postMessage({event:"configure",config:t})}});this.tasks={};this.currentID=0}AsyncProxy.prototype.loaded=async function(){const e=await Promise.all(this.workers.map(e=>e.loadedPromise));return e.every(Boolean)};AsyncProxy.prototype.getID=function(){return this.currentID++};AsyncProxy.prototype.seedRandom=async function(e,r){const n=await c.default.random.getRandomBytes(r);this.workers[e].postMessage({event:"seed-random",buf:n},a.default.getTransferables(n,true))};AsyncProxy.prototype.clearKeyCache=async function(){await Promise.all(this.workers.map(e=>new Promise((r,n)=>{const t=this.getID();e.postMessage({id:t,event:"clear-key-cache"});this.tasks[t]={resolve:r,reject:n}})))};AsyncProxy.prototype.terminate=function(){this.workers.forEach(e=>{e.terminate()})};AsyncProxy.prototype.delegate=function(e,r){const n=this.getID();const t=this.workers.map(e=>e.requests);const i=Math.min(...t);let f=0;for(;f{this.workers[f].postMessage({id:n,event:e,options:d.default.clone.clonePackets(r)},a.default.getTransferables(r,s.default.zero_copy));this.workers[f].requests++;this.tasks[n]={resolve:r=>t(d.default.clone.parseClonedPackets(a.default.restoreStreams(r),e)),reject:i}})};n.default=AsyncProxy},{"../config":79,"../crypto":94,"../packet":131,"../util.js":158}]},{},[115])(115)})},,function(e,r,n){var t=n(752);var a=Array.prototype;var i=a.splice;function listCacheDelete(e){var r=this.__data__,n=t(r,e);if(n<0){return false}var a=r.length-1;if(n==a){r.pop()}else{i.call(r,n,1)}--this.size;return true}e.exports=listCacheDelete},function(e){function stackDelete(e){var r=this.__data__,n=r["delete"](e);this.size=r.size;return n}e.exports=stackDelete},,,,,,,,,function(e,r,n){"use strict";var t=n(896);e.exports={Validation:errorSubclass(ValidationError),MissingRef:errorSubclass(MissingRefError)};function ValidationError(e){this.message="validation failed";this.errors=e;this.ajv=this.validation=true}MissingRefError.message=function(e,r){return"can't resolve reference "+r+" from id "+e};function MissingRefError(e,r,n){this.message=n||MissingRefError.message(e,r);this.missingRef=t.url(e,r);this.missingSchema=t.normalizeId(t.fullPath(this.missingRef))}function errorSubclass(e){e.prototype=Object.create(Error.prototype);e.prototype.constructor=e;return e}},,,,,,,,,,,,,function(e){var r=800,n=16;var t=Date.now;function shortOut(e){var a=0,i=0;return function(){var s=t(),f=n-(s-i);i=s;if(f>0){if(++a>=r){return arguments[0]}}else{a=0}return e.apply(undefined,arguments)}}e.exports=shortOut},,,,,function(e){function stubFalse(){return false}e.exports=stubFalse},,,function(e){e.exports=require("fs")},,,function(e){"use strict";e.exports=function generate_not(e,r,n){var t=" ";var a=e.level;var i=e.dataLevel;var s=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var d="data"+(i||"");var u="errs__"+a;var o=e.util.copy(e);o.level++;var h="valid"+o.level;if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0:e.util.schemaHasRules(s,e.RULES.all)){o.schema=s;o.schemaPath=f;o.errSchemaPath=c;t+=" var "+u+" = errors; ";var v=e.compositeRule;e.compositeRule=o.compositeRule=true;o.createErrors=false;var p;if(o.opts.allErrors){p=o.opts.allErrors;o.opts.allErrors=false}t+=" "+e.validate(o)+" ";o.createErrors=true;if(p)o.opts.allErrors=p;e.compositeRule=o.compositeRule=v;t+=" if ("+h+") { ";var b=b||[];b.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){t+=" , message: 'should NOT be valid' "}if(e.opts.verbose){t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}var y=t;t=b.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+y+"]); "}else{t+=" validate.errors = ["+y+"]; return false; "}}else{t+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ";if(e.opts.allErrors){t+=" } "}}else{t+=" var err = ";if(e.createErrors!==false){t+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){t+=" , message: 'should NOT be valid' "}if(e.opts.verbose){t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(l){t+=" if (false) { "}}return t}},,function(e,r,n){var t=n(901);function assocIndexOf(e,r){var n=e.length;while(n--){if(t(e[n][0],r)){return n}}return-1}e.exports=assocIndexOf},,,,,,function(e,r,n){var t=n(688),a=n(71);function baseGet(e,r){r=t(r,e);var n=0,i=r.length;while(e!=null&&n 1e-"+e.opts.multipleOfPrecision+" "}else{t+=" division"+a+" !== parseInt(division"+a+") "}t+=" ) ";if(u){t+=" ) "}t+=" ) { ";var h=h||[];h.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+o+" } ";if(e.opts.messages!==false){t+=" , message: 'should be multiple of ";if(u){t+="' + "+o}else{t+=""+o+"'"}}if(e.opts.verbose){t+=" , schema: ";if(u){t+="validate.schema"+f}else{t+=""+s}t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}var v=t;t=h.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+v+"]); "}else{t+=" validate.errors = ["+v+"]; return false; "}}else{t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+="} ";if(l){t+=" else { "}return t}},,function(e,r,n){var t=n(922),a=n(850),i=n(979),s=n(482);var f=i(function(e,r){if(e==null){return[]}var n=r.length;if(n>1&&s(e,r[0],r[1])){r=[]}else if(n>2&&s(r[0],r[1],r[2])){r=[r[0]]}return a(e,t(r,1),[])});e.exports=f},,,,function(e,r,n){var t=n(320);var a=t(Object.keys,Object);e.exports=a},,,,,,,,,,,function(e,r,n){var t=n(752);function listCacheGet(e){var r=this.__data__,n=t(r,e);return n<0?undefined:r[n][1]}e.exports=listCacheGet},,,function(e){function listCacheClear(){this.__data__=[];this.size=0}e.exports=listCacheClear},function(e,r,n){var t=n(479),a=n(882);var i=t(a,"Set");e.exports=i},,,,,,function(e,r,n){var t=n(497),a=n(334);var i="[object AsyncFunction]",s="[object Function]",f="[object GeneratorFunction]",c="[object Proxy]";function isFunction(e){if(!a(e)){return false}var r=t(e);return r==s||r==f||r==i||r==c}e.exports=isFunction},,,function(e,r,n){var t=n(388),a=n(634);var i=Object.prototype;var s=i.propertyIsEnumerable;var f=Object.getOwnPropertySymbols;var c=!f?a:function(e){if(e==null){return[]}e=Object(e);return t(f(e),function(r){return s.call(e,r)})};e.exports=c},,function(e){function setCacheHas(e){return this.__data__.has(e)}e.exports=setCacheHas},,,,,,function(e,r,n){"use strict";e.exports={$ref:n(393),allOf:n(443),anyOf:n(93),$comment:n(134),const:n(661),contains:n(964),dependencies:n(591),enum:n(163),format:n(847),if:n(862),items:n(408),maximum:n(404),minimum:n(404),maxItems:n(683),minItems:n(683),maxLength:n(114),minLength:n(114),maxProperties:n(142),minProperties:n(142),multipleOf:n(772),not:n(750),oneOf:n(106),pattern:n(912),properties:n(924),propertyNames:n(195),required:n(420),uniqueItems:n(995),validate:n(585)}},,,,,,,,,function(e,r,n){var t=n(201);function compareMultiple(e,r,n){var a=-1,i=e.criteria,s=r.criteria,f=i.length,c=n.length;while(++a=c){return l}var d=n[a];return l*(d=="desc"?-1:1)}}return e.index-r.index}e.exports=compareMultiple},,,function(e){function identity(e){return e}e.exports=identity},,,,,,,function(e){function baseProperty(e){return function(r){return r==null?undefined:r[e]}}e.exports=baseProperty},,,,,,,,,,,,,,function(e,r,n){var t=n(608);function stackClear(){this.__data__=new t;this.size=0}e.exports=stackClear},,,,function(e){"use strict";e.exports=function generate_format(e,r,n){var t=" ";var a=e.level;var i=e.dataLevel;var s=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var d="data"+(i||"");if(e.opts.format===false){if(l){t+=" if (true) { "}return t}var u=e.opts.$data&&s&&s.$data,o;if(u){t+=" var schema"+a+" = "+e.util.getData(s.$data,i,e.dataPathArr)+"; ";o="schema"+a}else{o=s}var h=e.opts.unknownFormats,v=Array.isArray(h);if(u){var p="format"+a,b="isObject"+a,y="formatType"+a;t+=" var "+p+" = formats["+o+"]; var "+b+" = typeof "+p+" == 'object' && !("+p+" instanceof RegExp) && "+p+".validate; var "+y+" = "+b+" && "+p+".type || 'string'; if ("+b+") { ";if(e.async){t+=" var async"+a+" = "+p+".async; "}t+=" "+p+" = "+p+".validate; } if ( ";if(u){t+=" ("+o+" !== undefined && typeof "+o+" != 'string') || "}t+=" (";if(h!="ignore"){t+=" ("+o+" && !"+p+" ";if(v){t+=" && self._opts.unknownFormats.indexOf("+o+") == -1 "}t+=") || "}t+=" ("+p+" && "+y+" == '"+n+"' && !(typeof "+p+" == 'function' ? ";if(e.async){t+=" (async"+a+" ? await "+p+"("+d+") : "+p+"("+d+")) "}else{t+=" "+p+"("+d+") "}t+=" : "+p+".test("+d+"))))) {"}else{var p=e.formats[s];if(!p){if(h=="ignore"){e.logger.warn('unknown format "'+s+'" ignored in schema at path "'+e.errSchemaPath+'"');if(l){t+=" if (true) { "}return t}else if(v&&h.indexOf(s)>=0){if(l){t+=" if (true) { "}return t}else{throw new Error('unknown format "'+s+'" is used in schema at path "'+e.errSchemaPath+'"')}}var b=typeof p=="object"&&!(p instanceof RegExp)&&p.validate;var y=b&&p.type||"string";if(b){var g=p.async===true;p=p.validate}if(y!=n){if(l){t+=" if (true) { "}return t}if(g){if(!e.async)throw new Error("async format in sync schema");var w="formats"+e.util.getProperty(s)+".validate";t+=" if (!(await "+w+"("+d+"))) { "}else{t+=" if (! ";var w="formats"+e.util.getProperty(s);if(b)w+=".validate";if(typeof p=="function"){t+=" "+w+"("+d+") "}else{t+=" "+w+".test("+d+") "}t+=") { "}}var m=m||[];m.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ";if(u){t+=""+o}else{t+=""+e.util.toQuotedString(s)}t+=" } ";if(e.opts.messages!==false){t+=" , message: 'should match format \"";if(u){t+="' + "+o+" + '"}else{t+=""+e.util.escapeQuotes(s)}t+="\"' "}if(e.opts.verbose){t+=" , schema: ";if(u){t+="validate.schema"+f}else{t+=""+e.util.toQuotedString(s)}t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}var A=t;t=m.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+A+"]); "}else{t+=" validate.errors = ["+A+"]; return false; "}}else{t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } ";if(l){t+=" else { "}return t}},,,function(e,r,n){var t=n(356),a=n(758),i=n(427),s=n(192),f=n(241),c=n(258),l=n(819),d=n(822),u=n(869);function baseOrderBy(e,r,n){if(r.length){r=t(r,function(e){if(u(e)){return function(r){return a(r,e.length===1?e[0]:e)}}return e})}else{r=[d]}var o=-1;r=t(r,c(i));var h=s(e,function(e,n,a){var i=t(r,function(r){return r(e)});return{criteria:i,index:++o,value:e}});return f(h,function(e,r){return l(e,r,n)})}e.exports=baseOrderBy},,,function(e){function mapToArray(e){var r=-1,n=Array(e.size);e.forEach(function(e,t){n[++r]=[t,e]});return n}e.exports=mapToArray},,,,function(e,r,n){var t=n(479),a=n(882);var i=t(a,"DataView");e.exports=i},,,,,function(e){"use strict";e.exports=function generate_if(e,r,n){var t=" ";var a=e.level;var i=e.dataLevel;var s=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var d="data"+(i||"");var u="valid"+a;var o="errs__"+a;var h=e.util.copy(e);h.level++;var v="valid"+h.level;var p=e.schema["then"],b=e.schema["else"],y=p!==undefined&&(e.opts.strictKeywords?typeof p=="object"&&Object.keys(p).length>0:e.util.schemaHasRules(p,e.RULES.all)),g=b!==undefined&&(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0:e.util.schemaHasRules(b,e.RULES.all)),w=h.baseId;if(y||g){var m;h.createErrors=false;h.schema=s;h.schemaPath=f;h.errSchemaPath=c;t+=" var "+o+" = errors; var "+u+" = true; ";var A=e.compositeRule;e.compositeRule=h.compositeRule=true;t+=" "+e.validate(h)+" ";h.baseId=w;h.createErrors=true;t+=" errors = "+o+"; if (vErrors !== null) { if ("+o+") vErrors.length = "+o+"; else vErrors = null; } ";e.compositeRule=h.compositeRule=A;if(y){t+=" if ("+v+") { ";h.schema=e.schema["then"];h.schemaPath=e.schemaPath+".then";h.errSchemaPath=e.errSchemaPath+"/then";t+=" "+e.validate(h)+" ";h.baseId=w;t+=" "+u+" = "+v+"; ";if(y&&g){m="ifClause"+a;t+=" var "+m+" = 'then'; "}else{m="'then'"}t+=" } ";if(g){t+=" else { "}}else{t+=" if (!"+v+") { "}if(g){h.schema=e.schema["else"];h.schemaPath=e.schemaPath+".else";h.errSchemaPath=e.errSchemaPath+"/else";t+=" "+e.validate(h)+" ";h.baseId=w;t+=" "+u+" = "+v+"; ";if(y&&g){m="ifClause"+a;t+=" var "+m+" = 'else'; "}else{m="'else'"}t+=" } "}t+=" if (!"+u+") { var err = ";if(e.createErrors!==false){t+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+m+" } ";if(e.opts.messages!==false){t+=" , message: 'should match \"' + "+m+" + '\" schema' "}if(e.opts.verbose){t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(vErrors); "}else{t+=" validate.errors = vErrors; return false; "}}t+=" } ";if(l){t+=" else { "}}else{if(l){t+=" if (true) { "}}return t}},,,,,,function(e,r,n){var t=n(416);function baseAssignValue(e,r,n){if(r=="__proto__"&&t){t(e,r,{configurable:true,enumerable:true,value:n,writable:true})}else{e[r]=n}}e.exports=baseAssignValue},function(e){var r=Array.isArray;e.exports=r},,function(e,r,n){var t=n(422);var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var i=/\\(\\)?/g;var s=t(function(e){var r=[];if(e.charCodeAt(0)===46){r.push("")}e.replace(a,function(e,n,t,a){r.push(t?a.replace(i,"$1"):n||e)});return r});e.exports=s},,,function(e,r,n){"use strict";var t=n(514);e.exports=t.DEFAULT=new t({include:[n(949)],explicit:[n(914),n(242),n(4)]})},function(e,r,n){"use strict";var t=n(896),a=n(578),i=n(726),s=n(969);var f=n(585);var c=a.ucs2length;var l=n(206);var d=i.Validation;e.exports=compile;function compile(e,r,n,u){var o=this,h=this._opts,v=[undefined],p={},b=[],y={},g=[],w={},m=[];r=r||{schema:e,refVal:v,refs:p};var A=checkCompiling.call(this,e,r,u);var E=this._compilations[A.index];if(A.compiling)return E.callValidate=callValidate;var S=this._formats;var k=this.RULES;try{var R=localCompile(e,r,n,u);E.validate=R;var M=E.callValidate;if(M){M.schema=R.schema;M.errors=null;M.refs=R.refs;M.refVal=R.refVal;M.root=R.root;M.$async=R.$async;if(h.sourceCode)M.source=R.source}return R}finally{endCompiling.call(this,e,r,u)}function callValidate(){var e=E.validate;var r=e.apply(this,arguments);callValidate.errors=e.errors;return r}function localCompile(e,n,s,u){var y=!n||n&&n.schema==e;if(n.schema!=r.schema)return compile.call(o,e,n,s,u);var w=e.$async===true;var A=f({isTop:true,schema:e,isRoot:y,baseId:u,root:n,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:i.MissingRef,RULES:k,validate:f,util:a,resolve:t,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:h,formats:S,logger:o.logger,self:o});A=vars(v,refValCode)+vars(b,patternCode)+vars(g,defaultCode)+vars(m,customRuleCode)+A;if(h.processCode)A=h.processCode(A,e);var E;try{var R=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",A);E=R(o,k,S,r,v,g,m,l,c,d);v[0]=E}catch(e){o.logger.error("Error compiling schema, function code:",A);throw e}E.schema=e;E.errors=null;E.refs=p;E.refVal=v;E.root=y?E:n;if(w)E.$async=true;if(h.sourceCode===true){E.source={code:A,patterns:b,defaults:g}}return E}function resolveRef(e,a,i){a=t.url(e,a);var s=p[a];var f,c;if(s!==undefined){f=v[s];c="refVal["+s+"]";return resolvedRef(f,c)}if(!i&&r.refs){var l=r.refs[a];if(l!==undefined){f=r.refVal[l];c=addLocalRef(a,f);return resolvedRef(f,c)}}c=addLocalRef(a);var d=t.call(o,localCompile,r,a);if(d===undefined){var u=n&&n[a];if(u){d=t.inlineRef(u,h.inlineRefs)?u:compile.call(o,u,r,n,e)}}if(d===undefined){removeLocalRef(a)}else{replaceLocalRef(a,d);return resolvedRef(d,c)}}function addLocalRef(e,r){var n=v.length;v[n]=r;p[e]=n;return"refVal"+n}function removeLocalRef(e){delete p[e]}function replaceLocalRef(e,r){var n=p[e];v[n]=r}function resolvedRef(e,r){return typeof e=="object"||typeof e=="boolean"?{code:r,schema:e,inline:true}:{code:r,$async:e&&!!e.$async}}function usePattern(e){var r=y[e];if(r===undefined){r=y[e]=b.length;b[r]=e}return"pattern"+r}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return a.toQuotedString(e);case"object":if(e===null)return"null";var r=s(e);var n=w[r];if(n===undefined){n=w[r]=g.length;g[n]=e}return"default"+n}}function useCustomRule(e,r,n,t){if(o._opts.validateSchema!==false){var a=e.definition.dependencies;if(a&&!a.every(function(e){return Object.prototype.hasOwnProperty.call(n,e)}))throw new Error("parent schema must have all required keywords: "+a.join(","));var i=e.definition.validateSchema;if(i){var s=i(r);if(!s){var f="keyword schema is invalid: "+o.errorsText(i.errors);if(o._opts.validateSchema=="log")o.logger.error(f);else throw new Error(f)}}}var c=e.definition.compile,l=e.definition.inline,d=e.definition.macro;var u;if(c){u=c.call(o,r,n,t)}else if(d){u=d.call(o,r,n,t);if(h.validateSchema!==false)o.validateSchema(u,true)}else if(l){u=l.call(o,t,e.keyword,r,n)}else{u=e.definition.validate;if(!u)return}if(u===undefined)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var v=m.length;m[v]=u;return{code:"customRule"+v,validate:u}}}function checkCompiling(e,r,n){var t=compIndex.call(this,e,r,n);if(t>=0)return{index:t,compiling:true};t=this._compilations.length;this._compilations[t]={schema:e,root:r,baseId:n};return{index:t,compiling:false}}function endCompiling(e,r,n){var t=compIndex.call(this,e,r,n);if(t>=0)this._compilations.splice(t,1)}function compIndex(e,r,n){for(var t=0;t0&&n(l)){if(r>1){baseFlatten(l,r-1,n,i,s)}else{t(s,l)}}else if(!i){s[s.length]=l}}return s}e.exports=baseFlatten},function(e,r,n){var t=n(213);var a=Object.prototype;var i=a.hasOwnProperty;var s=a.toString;var f=t?t.toStringTag:undefined;function getRawTag(e){var r=i.call(e,f),n=e[f];try{e[f]=undefined;var t=true}catch(e){}var a=s.call(e);if(t){if(r){e[f]=n}else{delete e[f]}}return a}e.exports=getRawTag},function(e){"use strict";e.exports=function generate_properties(e,r,n){var t=" ";var a=e.level;var i=e.dataLevel;var s=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var d="data"+(i||"");var u="errs__"+a;var o=e.util.copy(e);var h="";o.level++;var v="valid"+o.level;var p="key"+a,b="idx"+a,y=o.dataLevel=e.dataLevel+1,g="data"+y,w="dataProperties"+a;var m=Object.keys(s||{}).filter(notProto),A=e.schema.patternProperties||{},E=Object.keys(A).filter(notProto),S=e.schema.additionalProperties,k=m.length||E.length,R=S===false,M=typeof S=="object"&&Object.keys(S).length,C=e.opts.removeAdditional,D=R||M||C,j=e.opts.ownProperties,q=e.baseId;var B=e.schema.required;if(B&&!(e.opts.$data&&B.$data)&&B.length8){t+=" || validate.schema"+f+".hasOwnProperty("+p+") "}else{var U=m;if(U){var K,x=-1,I=U.length-1;while(x0:e.util.schemaHasRules($,e.RULES.all)){var ee=e.util.getProperty(K),J=d+ee,re=Q&&$.default!==undefined;o.schema=$;o.schemaPath=f+ee;o.errSchemaPath=c+"/"+e.util.escapeFragment(K);o.errorPath=e.util.getPath(e.errorPath,K,e.opts.jsonPointers);o.dataPathArr[y]=e.util.toQuotedString(K);var Y=e.validate(o);o.baseId=q;if(e.util.varOccurences(Y,g)<2){Y=e.util.varReplace(Y,g,J);var ne=J}else{var ne=g;t+=" var "+g+" = "+J+"; "}if(re){t+=" "+Y+" "}else{if(_&&_[K]){t+=" if ( "+ne+" === undefined ";if(j){t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(K)+"') "}t+=") { "+v+" = false; ";var z=e.errorPath,L=c,te=e.util.escapeQuotes(K);if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(z,K,e.opts.jsonPointers)}c=e.errSchemaPath+"/required";var W=W||[];W.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+te+"' } ";if(e.opts.messages!==false){t+=" , message: '";if(e.opts._errorDataPathProperty){t+="is a required property"}else{t+="should have required property \\'"+te+"\\'"}t+="' "}if(e.opts.verbose){t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}var H=t;t=W.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+H+"]); "}else{t+=" validate.errors = ["+H+"]; return false; "}}else{t+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}c=L;e.errorPath=z;t+=" } else { "}else{if(l){t+=" if ( "+ne+" === undefined ";if(j){t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(K)+"') "}t+=") { "+v+" = true; } else { "}else{t+=" if ("+ne+" !== undefined ";if(j){t+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(K)+"') "}t+=" ) { "}}t+=" "+Y+" } "}}if(l){t+=" if ("+v+") { ";h+="}"}}}}if(E.length){var ae=E;if(ae){var O,ie=-1,se=ae.length-1;while(ie0:e.util.schemaHasRules($,e.RULES.all)){o.schema=$;o.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(O);o.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(O);if(j){t+=" "+w+" = "+w+" || Object.keys("+d+"); for (var "+b+"=0; "+b+"<"+w+".length; "+b+"++) { var "+p+" = "+w+"["+b+"]; "}else{t+=" for (var "+p+" in "+d+") { "}t+=" if ("+e.usePattern(O)+".test("+p+")) { ";o.errorPath=e.util.getPathExpr(e.errorPath,p,e.opts.jsonPointers);var J=d+"["+p+"]";o.dataPathArr[y]=p;var Y=e.validate(o);o.baseId=q;if(e.util.varOccurences(Y,g)<2){t+=" "+e.util.varReplace(Y,g,J)+" "}else{t+=" var "+g+" = "+J+"; "+Y+" "}if(l){t+=" if (!"+v+") break; "}t+=" } ";if(l){t+=" else "+v+" = true; "}t+=" } ";if(l){t+=" if ("+v+") { ";h+="}"}}}}}if(l){t+=" "+h+" if ("+u+" == errors) {"}return t}},,function(e){function isObjectLike(e){return e!=null&&typeof e=="object"}e.exports=isObjectLike},,function(e){var r=Function.prototype;var n=r.toString;function toSource(e){if(e!=null){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}e.exports=toSource},,,function(e,r,n){var t=n(475);function toString(e){return e==null?"":t(e)}e.exports=toString},,,,,function(e){var r=9007199254740991;var n=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var a=typeof e;t=t==null?r:t;return!!t&&(a=="number"||a!="symbol"&&n.test(e))&&(e>-1&&e%1==0&&e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(e){"use strict";e.exports=function generate_contains(e,r,n){var t=" ";var a=e.level;var i=e.dataLevel;var s=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var d="data"+(i||"");var u="valid"+a;var o="errs__"+a;var h=e.util.copy(e);var v="";h.level++;var p="valid"+h.level;var b="i"+a,y=h.dataLevel=e.dataLevel+1,g="data"+y,w=e.baseId,m=e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0:e.util.schemaHasRules(s,e.RULES.all);t+="var "+o+" = errors;var "+u+";";if(m){var A=e.compositeRule;e.compositeRule=h.compositeRule=true;h.schema=s;h.schemaPath=f;h.errSchemaPath=c;t+=" var "+p+" = false; for (var "+b+" = 0; "+b+" < "+d+".length; "+b+"++) { ";h.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,true);var E=d+"["+b+"]";h.dataPathArr[y]=b;var S=e.validate(h);h.baseId=w;if(e.util.varOccurences(S,g)<2){t+=" "+e.util.varReplace(S,g,E)+" "}else{t+=" var "+g+" = "+E+"; "+S+" "}t+=" if ("+p+") break; } ";e.compositeRule=h.compositeRule=A;t+=" "+v+" if (!"+p+") {"}else{t+=" if ("+d+".length == 0) {"}var k=k||[];k.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){t+=" , message: 'should contain a valid item' "}if(e.opts.verbose){t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}var R=t;t=k.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+R+"]); "}else{t+=" validate.errors = ["+R+"]; return false; "}}else{t+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } else { ";if(m){t+=" errors = "+o+"; if (vErrors !== null) { if ("+o+") vErrors.length = "+o+"; else vErrors = null; } "}if(e.opts.allErrors){t+=" } "}return t}},,,function(e,r,n){"use strict";var t=n(199);var a=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"];var i=["scalar","sequence","mapping"];function compileStyleAliases(e){var r={};if(e!==null){Object.keys(e).forEach(function(n){e[n].forEach(function(e){r[String(e)]=n})})}return r}function Type(e,r){r=r||{};Object.keys(r).forEach(function(r){if(a.indexOf(r)===-1){throw new t('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}});this.tag=e;this.kind=r["kind"]||null;this.resolve=r["resolve"]||function(){return true};this.construct=r["construct"]||function(e){return e};this.instanceOf=r["instanceOf"]||null;this.predicate=r["predicate"]||null;this.represent=r["represent"]||null;this.defaultStyle=r["defaultStyle"]||null;this.styleAliases=compileStyleAliases(r["styleAliases"]||null);if(i.indexOf(this.kind)===-1){throw new t('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},,function(e){"use strict";e.exports=function(e,r){if(!r)r={};if(typeof r==="function")r={cmp:r};var n=typeof r.cycles==="boolean"?r.cycles:false;var t=r.cmp&&function(e){return function(r){return function(n,t){var a={key:n,value:r[n]};var i={key:t,value:r[t]};return e(a,i)}}}(r.cmp);var a=[];return function stringify(e){if(e&&e.toJSON&&typeof e.toJSON==="function"){e=e.toJSON()}if(e===undefined)return;if(typeof e=="number")return isFinite(e)?""+e:"null";if(typeof e!=="object")return JSON.stringify(e);var r,i;if(Array.isArray(e)){i="[";for(r=0;r 1) { ";var v=e.schema.items&&e.schema.items.type,p=Array.isArray(v);if(!v||v=="object"||v=="array"||p&&(v.indexOf("object")>=0||v.indexOf("array")>=0)){t+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+u+" = false; break outer; } } } "}else{t+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var b="checkDataType"+(p?"s":"");t+=" if ("+e.util[b](v,"item",e.opts.strictNumbers,true)+") continue; ";if(p){t+=" if (typeof item == 'string') item = '\"' + item; "}t+=" if (typeof itemIndices[item] == 'number') { "+u+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}t+=" } ";if(o){t+=" } "}t+=" if (!"+u+") { ";var y=y||[];y.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ";if(e.opts.messages!==false){t+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(e.opts.verbose){t+=" , schema: ";if(o){t+="validate.schema"+f}else{t+=""+s}t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}var g=t;t=y.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+g+"]); "}else{t+=" validate.errors = ["+g+"]; return false; "}}else{t+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } ";if(l){t+=" else { "}}else{if(l){t+=" if (true) { "}}return t}}],function(e){"use strict";!function(){e.nmd=function(e){e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});return e}}()}); +require('./sourcemap-register.js');module.exports=function(e,r){"use strict";var n={};function __webpack_require__(r){if(n[r]){return n[r].exports}var t=n[r]={i:r,l:false,exports:{}};var i=true;try{e[r].call(t.exports,t,t.exports,__webpack_require__);i=false}finally{if(i)delete n[r]}t.l=true;return t.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(144)}r(__webpack_require__);return startup()}([,,,,function(e,r,n){"use strict";var t;try{var i=require;t=i("esprima")}catch(e){if(typeof window!=="undefined")t=window.esprima}var a=n(967);function resolveJavascriptFunction(e){if(e===null)return false;try{var r="("+e+")",n=t.parse(r,{range:true});if(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression"){return false}return true}catch(e){return false}}function constructJavascriptFunction(e){var r="("+e+")",n=t.parse(r,{range:true}),i=[],a;if(n.type!=="Program"||n.body.length!==1||n.body[0].type!=="ExpressionStatement"||n.body[0].expression.type!=="ArrowFunctionExpression"&&n.body[0].expression.type!=="FunctionExpression"){throw new Error("Failed to resolve function")}n.body[0].expression.params.forEach(function(e){i.push(e.name)});a=n.body[0].expression.body.range;if(n.body[0].expression.body.type==="BlockStatement"){return new Function(i,r.slice(a[0]+1,a[1]-1))}return new Function(i,"return "+r.slice(a[0],a[1]))}function representJavascriptFunction(e){return e.toString()}function isFunction(e){return Object.prototype.toString.call(e)==="[object Function]"}e.exports=new a("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction})},function(e,r,n){var t=n(765),i=n(495),a=n(869),s=n(403),f=n(936),c=n(496);var l=Object.prototype;var d=l.hasOwnProperty;function arrayLikeKeys(e,r){var n=a(e),l=!n&&i(e),o=!n&&!l&&s(e),u=!n&&!l&&!o&&c(e),h=n||l||o||u,p=h?t(e.length,String):[],v=p.length;for(var b in e){if((r||d.call(e,b))&&!(h&&(b=="length"||o&&(b=="offset"||b=="parent")||u&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||f(b,v)))){p.push(b)}}return p}e.exports=arrayLikeKeys},,,,function(e,r,n){var t=n(951),i=n(802),a=n(645);function getAllKeys(e){return t(e,a,i)}e.exports=getAllKeys},function(e){var r=Object.prototype;function isPrototype(e){var n=e&&e.constructor,t=typeof n=="function"&&n.prototype||r;return e===t}e.exports=isPrototype},,,,,function(e){e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:false}},,function(e,r,n){var t=n(799),i=n(530);function isArrayLike(e){return e!=null&&i(e.length)&&!t(e)}e.exports=isArrayLike},,,function(e,r){(function(e,n){true?n(r):undefined})(this,function(e){"use strict";function merge(){for(var e=arguments.length,r=Array(e),n=0;n1){r[0]=r[0].slice(0,-1);var t=r.length-1;for(var i=1;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var g=s-f;var w=Math.floor;var m=String.fromCharCode;function error$1(e){throw new RangeError(y[e])}function map(e,r){var n=[];var t=e.length;while(t--){n[t]=r(e[t])}return n}function mapDomain(e,r){var n=e.split("@");var t="";if(n.length>1){t=n[0]+"@";e=n[1]}e=e.replace(b,".");var i=e.split(".");var a=map(i,r).join(".");return t+a}function ucs2decode(e){var r=[];var n=0;var t=e.length;while(n=55296&&i<=56319&&n>1;e+=w(e/r);for(;e>g*c>>1;t+=s){e=w(e/g)}return w(t+(g+1)*e/(e+l))};var R=function decode(e){var r=[];var n=e.length;var t=0;var i=u;var l=o;var d=e.lastIndexOf(h);if(d<0){d=0}for(var p=0;p=128){error$1("not-basic")}r.push(e.charCodeAt(p))}for(var v=d>0?d+1:0;v=n){error$1("invalid-input")}var m=E(e.charCodeAt(v++));if(m>=s||m>w((a-t)/y)){error$1("overflow")}t+=m*y;var A=g<=l?f:g>=l+c?c:g-l;if(mw(a/S)){error$1("overflow")}y*=S}var R=r.length+1;l=k(t-b,R,b==0);if(w(t/R)>a-i){error$1("overflow")}i+=w(t/R);t%=R;r.splice(t++,0,i)}return String.fromCodePoint.apply(String,r)};var M=function encode(e){var r=[];e=ucs2decode(e);var n=e.length;var t=u;var i=0;var l=o;var d=true;var p=false;var v=undefined;try{for(var b=e[Symbol.iterator](),y;!(d=(y=b.next()).done);d=true){var g=y.value;if(g<128){r.push(m(g))}}}catch(e){p=true;v=e}finally{try{if(!d&&b.return){b.return()}}finally{if(p){throw v}}}var A=r.length;var E=A;if(A){r.push(h)}while(E=t&&Bw((a-i)/q)){error$1("overflow")}i+=(R-t)*q;t=R;var U=true;var x=false;var I=undefined;try{for(var K=e[Symbol.iterator](),O;!(U=(O=K.next()).done);U=true){var F=O.value;if(Fa){error$1("overflow")}if(F==t){var P=i;for(var T=s;;T+=s){var N=T<=l?f:T>=l+c?c:T-l;if(P>6|192).toString(16).toUpperCase()+"%"+(r&63|128).toString(16).toUpperCase();else n="%"+(r>>12|224).toString(16).toUpperCase()+"%"+(r>>6&63|128).toString(16).toUpperCase()+"%"+(r&63|128).toString(16).toUpperCase();return n}function pctDecChars(e){var r="";var n=0;var t=e.length;while(n=194&&i<224){if(t-n>=6){var a=parseInt(e.substr(n+4,2),16);r+=String.fromCharCode((i&31)<<6|a&63)}else{r+=e.substr(n,6)}n+=6}else if(i>=224){if(t-n>=9){var s=parseInt(e.substr(n+4,2),16);var f=parseInt(e.substr(n+7,2),16);r+=String.fromCharCode((i&15)<<12|(s&63)<<6|f&63)}else{r+=e.substr(n,9)}n+=9}else{r+=e.substr(n,3);n+=3}}return r}function _normalizeComponentEncoding(e,r){function decodeUnreserved(e){var n=pctDecChars(e);return!n.match(r.UNRESERVED)?e:n}if(e.scheme)e.scheme=String(e.scheme).replace(r.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(r.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(r.PCT_ENCODED,decodeUnreserved).replace(r.NOT_USERINFO,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(r.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(r.NOT_HOST,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(r.PCT_ENCODED,decodeUnreserved).replace(e.scheme?r.NOT_PATH:r.NOT_PATH_NOSCHEME,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(r.PCT_ENCODED,decodeUnreserved).replace(r.NOT_QUERY,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(r.PCT_ENCODED,decodeUnreserved).replace(r.NOT_FRAGMENT,pctEncChar).replace(r.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,r){var n=e.match(r.IPV4ADDRESS)||[];var i=t(n,2),a=i[1];if(a){return a.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,r){var n=e.match(r.IPV6ADDRESS)||[];var i=t(n,3),a=i[1],s=i[2];if(a){var f=a.toLowerCase().split("::").reverse(),c=t(f,2),l=c[0],d=c[1];var o=d?d.split(":").map(_stripLeadingZeros):[];var u=l.split(":").map(_stripLeadingZeros);var h=r.IPV4ADDRESS.test(u[u.length-1]);var p=h?7:8;var v=u.length-p;var b=Array(p);for(var y=0;y1){var A=b.slice(0,w.index);var E=b.slice(w.index+w.length);m=A.join(":")+"::"+E.join(":")}else{m=b.join(":")}if(s){m+="%"+s}return m}else{return e}}var B=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var q="".match(/(){0}/)[1]===undefined;function parse(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i={};var a=t.iri!==false?n:r;if(t.reference==="suffix")e=(t.scheme?t.scheme+":":"")+"//"+e;var s=e.match(B);if(s){if(q){i.scheme=s[1];i.userinfo=s[3];i.host=s[4];i.port=parseInt(s[5],10);i.path=s[6]||"";i.query=s[7];i.fragment=s[8];if(isNaN(i.port)){i.port=s[5]}}else{i.scheme=s[1]||undefined;i.userinfo=e.indexOf("@")!==-1?s[3]:undefined;i.host=e.indexOf("//")!==-1?s[4]:undefined;i.port=parseInt(s[5],10);i.path=s[6]||"";i.query=e.indexOf("?")!==-1?s[7]:undefined;i.fragment=e.indexOf("#")!==-1?s[8]:undefined;if(isNaN(i.port)){i.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?s[4]:undefined}}if(i.host){i.host=_normalizeIPv6(_normalizeIPv4(i.host,a),a)}if(i.scheme===undefined&&i.userinfo===undefined&&i.host===undefined&&i.port===undefined&&!i.path&&i.query===undefined){i.reference="same-document"}else if(i.scheme===undefined){i.reference="relative"}else if(i.fragment===undefined){i.reference="absolute"}else{i.reference="uri"}if(t.reference&&t.reference!=="suffix"&&t.reference!==i.reference){i.error=i.error||"URI is not a "+t.reference+" reference."}var f=j[(t.scheme||i.scheme||"").toLowerCase()];if(!t.unicodeSupport&&(!f||!f.unicodeSupport)){if(i.host&&(t.domainHost||f&&f.domainHost)){try{i.host=_.toASCII(i.host.replace(a.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){i.error=i.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(i,r)}else{_normalizeComponentEncoding(i,a)}if(f&&f.parse){f.parse(i,t)}}else{i.error=i.error||"URI can not be parsed."}return i}function _recomposeAuthority(e,t){var i=t.iri!==false?n:r;var a=[];if(e.userinfo!==undefined){a.push(e.userinfo);a.push("@")}if(e.host!==undefined){a.push(_normalizeIPv6(_normalizeIPv4(String(e.host),i),i).replace(i.IPV6ADDRESS,function(e,r,n){return"["+r+(n?"%25"+n:"")+"]"}))}if(typeof e.port==="number"){a.push(":");a.push(e.port.toString(10))}return a.length?a.join(""):undefined}var U=/^\.\.?\//;var x=/^\/\.(\/|$)/;var I=/^\/\.\.(\/|$)/;var K=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var r=[];while(e.length){if(e.match(U)){e=e.replace(U,"")}else if(e.match(x)){e=e.replace(x,"/")}else if(e.match(I)){e=e.replace(I,"/");r.pop()}else if(e==="."||e===".."){e=""}else{var n=e.match(K);if(n){var t=n[0];e=e.slice(t.length);r.push(t)}else{throw new Error("Unexpected dot segment condition")}}}return r.join("")}function serialize(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=t.iri?n:r;var a=[];var s=j[(t.scheme||e.scheme||"").toLowerCase()];if(s&&s.serialize)s.serialize(e,t);if(e.host){if(i.IPV6ADDRESS.test(e.host)){}else if(t.domainHost||s&&s.domainHost){try{e.host=!t.iri?_.toASCII(e.host.replace(i.PCT_ENCODED,pctDecChars).toLowerCase()):_.toUnicode(e.host)}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(!t.iri?"ASCII":"Unicode")+" via punycode: "+r}}}_normalizeComponentEncoding(e,i);if(t.reference!=="suffix"&&e.scheme){a.push(e.scheme);a.push(":")}var f=_recomposeAuthority(e,t);if(f!==undefined){if(t.reference!=="suffix"){a.push("//")}a.push(f);if(e.path&&e.path.charAt(0)!=="/"){a.push("/")}}if(e.path!==undefined){var c=e.path;if(!t.absolutePath&&(!s||!s.absolutePath)){c=removeDotSegments(c)}if(f===undefined){c=c.replace(/^\/\//,"/%2F")}a.push(c)}if(e.query!==undefined){a.push("?");a.push(e.query)}if(e.fragment!==undefined){a.push("#");a.push(e.fragment)}return a.join("")}function resolveComponents(e,r){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var t=arguments[3];var i={};if(!t){e=parse(serialize(e,n),n);r=parse(serialize(r,n),n)}n=n||{};if(!n.tolerant&&r.scheme){i.scheme=r.scheme;i.userinfo=r.userinfo;i.host=r.host;i.port=r.port;i.path=removeDotSegments(r.path||"");i.query=r.query}else{if(r.userinfo!==undefined||r.host!==undefined||r.port!==undefined){i.userinfo=r.userinfo;i.host=r.host;i.port=r.port;i.path=removeDotSegments(r.path||"");i.query=r.query}else{if(!r.path){i.path=e.path;if(r.query!==undefined){i.query=r.query}else{i.query=e.query}}else{if(r.path.charAt(0)==="/"){i.path=removeDotSegments(r.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){i.path="/"+r.path}else if(!e.path){i.path=r.path}else{i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+r.path}i.path=removeDotSegments(i.path)}i.query=r.query}i.userinfo=e.userinfo;i.host=e.host;i.port=e.port}i.scheme=e.scheme}i.fragment=r.fragment;return i}function resolve(e,r,n){var t=assign({scheme:"null"},n);return serialize(resolveComponents(parse(e,t),parse(r,t),t,true),t)}function normalize(e,r){if(typeof e==="string"){e=serialize(parse(e,r),r)}else if(typeOf(e)==="object"){e=parse(serialize(e,r),r)}return e}function equal(e,r,n){if(typeof e==="string"){e=serialize(parse(e,n),n)}else if(typeOf(e)==="object"){e=serialize(e,n)}if(typeof r==="string"){r=serialize(parse(r,n),n)}else if(typeOf(r)==="object"){r=serialize(r,n)}return e===r}function escapeComponent(e,t){return e&&e.toString().replace(!t||!t.iri?r.ESCAPE:n.ESCAPE,pctEncChar)}function unescapeComponent(e,t){return e&&e.toString().replace(!t||!t.iri?r.PCT_ENCODED:n.PCT_ENCODED,pctDecChars)}var O={scheme:"http",domainHost:true,parse:function parse(e,r){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,r){if(e.port===(String(e.scheme).toLowerCase()!=="https"?80:443)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var F={scheme:"https",domainHost:O.domainHost,parse:O.parse,serialize:O.serialize};var P={};var T=true;var N="[A-Za-z0-9\\-\\.\\_\\~"+(T?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var z="[0-9A-Fa-f]";var L=subexp(subexp("%[EFef]"+z+"%"+z+z+"%"+z+z)+"|"+subexp("%[89A-Fa-f]"+z+"%"+z+z)+"|"+subexp("%"+z+z));var W="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var H="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var G=merge(H,'[\\"\\\\]');var J="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var Y=new RegExp(N,"g");var Q=new RegExp(L,"g");var Z=new RegExp(merge("[^]",W,"[\\.]",'[\\"]',G),"g");var X=new RegExp(merge("[^]",N,J),"g");var V=X;function decodeUnreserved(e){var r=pctDecChars(e);return!r.match(Y)?e:r}var $={scheme:"mailto",parse:function parse$$1(e,r){var n=e;var t=n.to=n.path?n.path.split(","):[];n.path=undefined;if(n.query){var i=false;var a={};var s=n.query.split("&");for(var f=0,c=s.length;f0?e.charCodeAt(a-1):null;h=h&&isPlainSafe(s,f)}}else{for(a=0;at&&e[u+1]!==" ";u=a}}else if(!isPrintable(s)){return P}f=a>0?e.charCodeAt(a-1):null;h=h&&isPlainSafe(s,f)}l=l||o&&(a-u-1>t&&e[u+1]!==" ")}if(!c&&!l){return h&&!i(e)?I:K}if(n>9&&needIndentIndicator(e)){return P}return l?F:O}function writeScalar(e,r,n,t){e.dump=function(){if(r.length===0){return"''"}if(!e.noCompatMode&&x.indexOf(r)!==-1){return"'"+r+"'"}var a=e.indent*Math.max(1,n);var s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a);var f=t||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(r){return testImplicitResolving(e,r)}switch(chooseScalarStyle(r,f,e.indent,s,testAmbiguity)){case I:return r;case K:return"'"+r.replace(/'/g,"''")+"'";case O:return"|"+blockHeader(r,e.indent)+dropEndingNewline(indentString(r,a));case F:return">"+blockHeader(r,e.indent)+dropEndingNewline(indentString(foldString(r,s),a));case P:return'"'+escapeString(r,s)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function blockHeader(e,r){var n=needIndentIndicator(e)?String(r):"";var t=e[e.length-1]==="\n";var i=t&&(e[e.length-2]==="\n"||e==="\n");var a=i?"+":t?"":"-";return n+a+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,r){var n=/(\n+)([^\n]*)/g;var t=function(){var t=e.indexOf("\n");t=t!==-1?t:e.length;n.lastIndex=t;return foldLine(e.slice(0,t),r)}();var i=e[0]==="\n"||e[0]===" ";var a;var s;while(s=n.exec(e)){var f=s[1],c=s[2];a=c[0]===" ";t+=f+(!i&&!a&&c!==""?"\n":"")+foldLine(c,r);i=a}return t}function foldLine(e,r){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var t;var i=0,a,s=0,f=0;var c="";while(t=n.exec(e)){f=t.index;if(f-i>r){a=s>i?s:f;c+="\n"+e.slice(i,a);i=a+1}s=f}c+="\n";if(e.length-i>r&&s>i){c+=e.slice(i,s)+"\n"+e.slice(s+1)}else{c+=e.slice(i)}return c.slice(1)}function escapeString(e){var r="";var n,t;var i;for(var a=0;a=55296&&n<=56319){t=e.charCodeAt(a+1);if(t>=56320&&t<=57343){r+=encodeHex((n-55296)*1024+t-56320+65536);a++;continue}}i=U[n];r+=!i&&isPrintable(n)?e[a]:i||encodeHex(n)}return r}function writeFlowSequence(e,r,n){var t="",i=e.tag,a,s;for(a=0,s=n.length;a1024)d+="? ";d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,r,l,false,false)){continue}d+=e.dump;t+=d}e.tag=i;e.dump="{"+t+"}"}function writeBlockMapping(e,r,n,t){var a="",s=e.tag,f=Object.keys(n),c,l,o,u,h,p;if(e.sortKeys===true){f.sort()}else if(typeof e.sortKeys==="function"){f.sort(e.sortKeys)}else if(e.sortKeys){throw new i("sortKeys must be a boolean or a function")}for(c=0,l=f.length;c1024;if(h){if(e.dump&&d===e.dump.charCodeAt(0)){p+="?"}else{p+="? "}}p+=e.dump;if(h){p+=generateNextLine(e,r)}if(!writeNode(e,r+1,u,true,h)){continue}if(e.dump&&d===e.dump.charCodeAt(0)){p+=":"}else{p+=": "}p+=e.dump;a+=p}e.tag=s;e.dump=a||"{}"}function detectType(e,r,n){var t,a,s,l,d,o;a=n?e.explicitTypes:e.implicitTypes;for(s=0,l=a.length;s tag resolver accepts not "'+o+'" style')}e.dump=t}return true}}return false}function writeNode(e,r,n,t,a,s){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var c=f.call(e.dump);if(t){t=e.flowLevel<0||e.flowLevel>r}var l=c==="[object Object]"||c==="[object Array]",d,o;if(l){d=e.duplicates.indexOf(n);o=d!==-1}if(e.tag!==null&&e.tag!=="?"||o||e.indent!==2&&r>0){a=false}if(o&&e.usedDuplicates[d]){e.dump="*ref_"+d}else{if(l&&o&&!e.usedDuplicates[d]){e.usedDuplicates[d]=true}if(c==="[object Object]"){if(t&&Object.keys(e.dump).length!==0){writeBlockMapping(e,r,e.dump,a);if(o){e.dump="&ref_"+d+e.dump}}else{writeFlowMapping(e,r,e.dump);if(o){e.dump="&ref_"+d+" "+e.dump}}}else if(c==="[object Array]"){var u=e.noArrayIndent&&r>0?r-1:r;if(t&&e.dump.length!==0){writeBlockSequence(e,u,e.dump,a);if(o){e.dump="&ref_"+d+e.dump}}else{writeFlowSequence(e,u,e.dump);if(o){e.dump="&ref_"+d+" "+e.dump}}}else if(c==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,r,s)}}else{if(e.skipInvalid)return false;throw new i("unacceptable kind of an object to dump "+c)}if(e.tag!==null&&e.tag!=="?"){e.dump="!<"+e.tag+"> "+e.dump}}return true}function getDuplicateReferences(e,r){var n=[],t=[],i,a;inspectNode(e,n,t);for(i=0,a=t.length;iprocess.env[r]||"")}r.replaceEnvVer=replaceEnvVer},function(e,r,n){"use strict";var t=n(514);e.exports=new t({explicit:[n(672),n(490),n(173)]})},,function(e,r,n){"use strict";var t=n(967);var i=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var r,n,t,a,s,f=e;s=new Array(f.length);for(r=0,n=f.length;r0:e.util.schemaHasRules(r,e.RULES.all)});if(b){var y=h.baseId;t+=" var "+u+" = errors; var "+o+" = false; ";var g=e.compositeRule;e.compositeRule=h.compositeRule=true;var w=s;if(w){var m,A=-1,E=w.length-1;while(A0:e.util.schemaHasRules(A,e.RULES.all)){h.schema=A;h.schemaPath=f+"["+E+"]";h.errSchemaPath=c+"/"+E;t+=" "+e.validate(h)+" ";h.baseId=b}else{t+=" var "+v+" = true; "}if(E){t+=" if ("+v+" && "+y+") { "+o+" = false; "+g+" = ["+g+", "+E+"]; } else { ";p+="}"}t+=" if ("+v+") { "+o+" = "+y+" = true; "+g+" = "+E+"; }"}}e.compositeRule=h.compositeRule=w;t+=""+p+"if (!"+o+") { var err = ";if(e.createErrors!==false){t+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+g+" } ";if(e.opts.messages!==false){t+=" , message: 'should match exactly one schema in oneOf' "}if(e.opts.verbose){t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(vErrors); "}else{t+=" validate.errors = vErrors; return false; "}}t+="} else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; }";if(e.opts.allErrors){t+=" } "}return t}},,,,,,,,function(e){"use strict";e.exports=function generate__limitLength(e,r,n){var t=" ";var i=e.level;var a=e.dataLevel;var s=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var d;var o="data"+(a||"");var u=e.opts.$data&&s&&s.$data,h;if(u){t+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ";h="schema"+i}else{h=s}if(!(u||typeof s=="number")){throw new Error(r+" must be number")}var p=r=="maxLength"?">":"<";t+="if ( ";if(u){t+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "}if(e.opts.unicode===false){t+=" "+o+".length "}else{t+=" ucs2length("+o+") "}t+=" "+p+" "+h+") { ";var d=r;var v=v||[];v.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+h+" } ";if(e.opts.messages!==false){t+=" , message: 'should NOT be ";if(r=="maxLength"){t+="longer"}else{t+="shorter"}t+=" than ";if(u){t+="' + "+h+" + '"}else{t+=""+s}t+=" characters' "}if(e.opts.verbose){t+=" , schema: ";if(u){t+="validate.schema"+f}else{t+=""+s}t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+o+" "}t+=" } "}else{t+=" {} "}var b=t;t=v.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+b+"]); "}else{t+=" validate.errors = ["+b+"]; return false; "}}else{t+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+="} ";if(l){t+=" else { "}return t}},,,,,,,,,,function(e,r,n){var t=n(323),i=n(494);var a=1,s=2;function baseIsMatch(e,r,n,f){var c=n.length,l=c,d=!f;if(e==null){return!l}e=Object(e);while(c--){var o=n[c];if(d&&o[2]?o[1]!==e[o[0]]:!(o[0]in e)){return false}}while(++c":"<";t+="if ( ";if(u){t+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "}t+=" Object.keys("+o+").length "+p+" "+h+") { ";var d=r;var v=v||[];v.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+h+" } ";if(e.opts.messages!==false){t+=" , message: 'should NOT have ";if(r=="maxProperties"){t+="more"}else{t+="fewer"}t+=" than ";if(u){t+="' + "+h+" + '"}else{t+=""+s}t+=" properties' "}if(e.opts.verbose){t+=" , schema: ";if(u){t+="validate.schema"+f}else{t+=""+s}t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+o+" "}t+=" } "}else{t+=" {} "}var b=t;t=v.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+b+"]); "}else{t+=" validate.errors = ["+b+"]; return false; "}}else{t+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+="} ";if(l){t+=" else { "}return t}},,function(__unusedmodule,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.run=void 0;const core_1=__webpack_require__(186);const config_1=__webpack_require__(373);const inputs_1=__webpack_require__(63);const prepare_1=__webpack_require__(294);async function run(e){try{const r=await inputs_1.loadInputs();const n=await config_1.loadConfig(e,r);core_1.startGroup("Setting mask values");await prepare_1.prepareMask(n);core_1.endGroup();core_1.startGroup("Exporting environment variables");await prepare_1.prepareEnv(n);core_1.endGroup();core_1.startGroup("Saving defined files");await prepare_1.prepareFile(e,n);core_1.endGroup()}catch(e){core_1.setFailed(e)}}exports.run=run;if(require.main===require.cache[eval("__filename")]){const e=process.cwd();run(e)}},,,,function(e,r,n){"use strict";var t=n(967);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},,,,,function(e,r,n){var t=n(647);var i=Math.max;function overRest(e,r,n){r=i(r===undefined?e.length-1:r,0);return function(){var a=arguments,s=-1,f=i(a.length-r,0),c=Array(f);while(++s>10)+55296,(e-65536&1023)+56320)}var A=new Array(256);var E=new Array(256);for(var S=0;S<256;S++){A[S]=simpleEscapeSequence(S)?1:0;E[S]=simpleEscapeSequence(S)}function State(e,r){this.input=e;this.filename=r["filename"]||null;this.schema=r["schema"]||f;this.onWarning=r["onWarning"]||null;this.legacy=r["legacy"]||false;this.json=r["json"]||false;this.listener=r["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[]}function generateError(e,r){return new i(r,new a(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function throwError(e,r){throw generateError(e,r)}function throwWarning(e,r){if(e.onWarning){e.onWarning.call(null,generateError(e,r))}}var k={YAML:function handleYamlDirective(e,r,n){var t,i,a;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(n.length!==1){throwError(e,"YAML directive accepts exactly one argument")}t=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);if(t===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(t[1],10);a=parseInt(t[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=n[0];e.checkLineBreaks=a<2;if(a!==1&&a!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,r,n){var t,i;if(n.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}t=n[0];i=n[1];if(!w.test(t)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(c.call(e.tagMap,t)){throwError(e,'there is a previously declared suffix for "'+t+'" tag handle')}if(!m.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}e.tagMap[t]=i}};function captureSegment(e,r,n,t){var i,a,s,f;if(r1){e.result+=t.repeat("\n",r-1)}}function readPlainScalar(e,r,n){var t,i,a,s,f,c,l,d,o=e.kind,u=e.result,h;h=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(h)||is_FLOW_INDICATOR(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96){return false}if(h===63||h===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";a=s=e.position;f=false;while(h!==0){if(h===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){break}}else if(h===35){t=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(t)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(h)){break}else if(is_EOL(h)){c=e.line;l=e.lineStart;d=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=r){f=true;h=e.input.charCodeAt(e.position);continue}else{e.position=s;e.line=c;e.lineStart=l;e.lineIndent=d;break}}if(f){captureSegment(e,a,s,false);writeFoldedLines(e,e.line-c);a=s=e.position;f=false}if(!is_WHITE_SPACE(h)){s=e.position+1}h=e.input.charCodeAt(++e.position)}captureSegment(e,a,s,false);if(e.result){return true}e.kind=o;e.result=u;return false}function readSingleQuotedScalar(e,r){var n,t,i;n=e.input.charCodeAt(e.position);if(n!==39){return false}e.kind="scalar";e.result="";e.position++;t=i=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===39){captureSegment(e,t,e.position,true);n=e.input.charCodeAt(++e.position);if(n===39){t=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(n)){captureSegment(e,t,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));t=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,r){var n,t,i,a,s,f;f=e.input.charCodeAt(e.position);if(f!==34){return false}e.kind="scalar";e.result="";e.position++;n=t=e.position;while((f=e.input.charCodeAt(e.position))!==0){if(f===34){captureSegment(e,n,e.position,true);e.position++;return true}else if(f===92){captureSegment(e,n,e.position,true);f=e.input.charCodeAt(++e.position);if(is_EOL(f)){skipSeparationSpace(e,false,r)}else if(f<256&&A[f]){e.result+=E[f];e.position++}else if((s=escapedHexLen(f))>0){i=s;a=0;for(;i>0;i--){f=e.input.charCodeAt(++e.position);if((s=fromHexCode(f))>=0){a=(a<<4)+s}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(a);e.position++}else{throwError(e,"unknown escape sequence")}n=t=e.position}else if(is_EOL(f)){captureSegment(e,n,t,true);writeFoldedLines(e,skipSeparationSpace(e,false,r));n=t=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;t=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,r){var n=true,t,i=e.tag,a,s=e.anchor,f,c,d,o,u,h={},p,v,b,y;y=e.input.charCodeAt(e.position);if(y===91){c=93;u=false;a=[]}else if(y===123){c=125;u=true;a={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=a}y=e.input.charCodeAt(++e.position);while(y!==0){skipSeparationSpace(e,true,r);y=e.input.charCodeAt(e.position);if(y===c){e.position++;e.tag=i;e.anchor=s;e.kind=u?"mapping":"sequence";e.result=a;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}v=p=b=null;d=o=false;if(y===63){f=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(f)){d=o=true;e.position++;skipSeparationSpace(e,true,r)}}t=e.line;composeNode(e,r,l,false,true);v=e.tag;p=e.result;skipSeparationSpace(e,true,r);y=e.input.charCodeAt(e.position);if((o||e.line===t)&&y===58){d=true;y=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,r);composeNode(e,r,l,false,true);b=e.result}if(u){storeMappingPair(e,a,h,v,p,b)}else if(d){a.push(storeMappingPair(e,null,h,v,p,b))}else{a.push(p)}skipSeparationSpace(e,true,r);y=e.input.charCodeAt(e.position);if(y===44){n=true;y=e.input.charCodeAt(++e.position)}else{n=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,r){var n,i,a=h,s=false,f=false,c=r,l=0,d=false,o,u;u=e.input.charCodeAt(e.position);if(u===124){i=false}else if(u===62){i=true}else{return false}e.kind="scalar";e.result="";while(u!==0){u=e.input.charCodeAt(++e.position);if(u===43||u===45){if(h===a){a=u===43?v:p}else{throwError(e,"repeat of a chomping mode identifier")}}else if((o=fromDecimalCode(u))>=0){if(o===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!f){c=r+o-1;f=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(u)){do{u=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(u));if(u===35){do{u=e.input.charCodeAt(++e.position)}while(!is_EOL(u)&&u!==0)}}while(u!==0){readLineBreak(e);e.lineIndent=0;u=e.input.charCodeAt(e.position);while((!f||e.lineIndentc){c=e.lineIndent}if(is_EOL(u)){l++;continue}if(e.lineIndentr)&&c!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentr){if(composeNode(e,r,u,true,i)){if(b){p=e.result}else{v=e.result}}if(!b){storeMappingPair(e,l,o,h,p,v,a,s);h=p=v=null}skipSeparationSpace(e,true,-1);g=e.input.charCodeAt(e.position)}if(e.lineIndent>r&&g!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndentr){h=1}else if(e.lineIndent===r){h=0}else if(e.lineIndentr){h=1}else if(e.lineIndent===r){h=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(b=0,y=e.implicitTypes.length;b tag; it should be "'+g.kind+'", not "'+e.kind+'"')}if(!g.resolve(e.result)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=g.construct(e.result);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else{throwError(e,"unknown tag !<"+e.tag+">")}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||v}function readDocument(e){var r=e.position,n,t,i,a=false,s;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap={};e.anchorMap={};while((s=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);s=e.input.charCodeAt(e.position);if(e.lineIndent>0||s!==37){break}a=true;s=e.input.charCodeAt(++e.position);n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}t=e.input.slice(n,e.position);i=[];if(t.length<1){throwError(e,"directive name must not be less than one character in length")}while(s!==0){while(is_WHITE_SPACE(s)){s=e.input.charCodeAt(++e.position)}if(s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==0&&!is_EOL(s));break}if(is_EOL(s))break;n=e.position;while(s!==0&&!is_WS_OR_EOL(s)){s=e.input.charCodeAt(++e.position)}i.push(e.input.slice(n,e.position))}if(s!==0)readLineBreak(e);if(c.call(k,t)){k[t](e,t,i)}else{throwWarning(e,'unknown document directive "'+t+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(a){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,u,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&y.test(e.input.slice(r,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position0:e.util.schemaHasRules(s,e.RULES.all)){u.schema=s;u.schemaPath=f;u.errSchemaPath=c;var v="key"+i,b="idx"+i,y="i"+i,g="' + "+v+" + '",w=u.dataLevel=e.dataLevel+1,m="data"+w,A="dataProperties"+i,E=e.opts.ownProperties,S=e.baseId;if(E){t+=" var "+A+" = undefined; "}if(E){t+=" "+A+" = "+A+" || Object.keys("+d+"); for (var "+b+"=0; "+b+"<"+A+".length; "+b+"++) { var "+v+" = "+A+"["+b+"]; "}else{t+=" for (var "+v+" in "+d+") { "}t+=" var startErrs"+i+" = errors; ";var k=v;var R=e.compositeRule;e.compositeRule=u.compositeRule=true;var M=e.validate(u);u.baseId=S;if(e.util.varOccurences(M,m)<2){t+=" "+e.util.varReplace(M,m,k)+" "}else{t+=" var "+m+" = "+k+"; "+M+" "}e.compositeRule=u.compositeRule=R;t+=" if (!"+p+") { for (var "+y+"=startErrs"+i+"; "+y+"r||s&&f&&l&&!c&&!d||i&&f&&l||!n&&l||!a){return 1}if(!i&&!s&&!d&&e3)return false;if(r[r.length-t.length-1]!=="/")return false}return true}function constructJavascriptRegExp(e){var r=e,n=/\/([gim]*)$/.exec(e),t="";if(r[0]==="/"){if(n)t=n[1];r=r.slice(1,r.length-t.length-1)}return new RegExp(r,t)}function representJavascriptRegExp(e){var r="/"+e.source+"/";if(e.global)r+="g";if(e.multiline)r+="m";if(e.ignoreCase)r+="i";return r}function isRegExp(e){return Object.prototype.toString.call(e)==="[object RegExp]"}e.exports=new t("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},,,,,,,function(e,r,n){var t=n(213),i=n(261),a=n(901),s=n(305),f=n(853),c=n(553);var l=1,d=2;var o="[object Boolean]",u="[object Date]",h="[object Error]",p="[object Map]",v="[object Number]",b="[object RegExp]",y="[object Set]",g="[object String]",w="[object Symbol]";var m="[object ArrayBuffer]",A="[object DataView]";var E=t?t.prototype:undefined,S=E?E.valueOf:undefined;function equalByTag(e,r,n,t,E,k,R){switch(n){case A:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset){return false}e=e.buffer;r=r.buffer;case m:if(e.byteLength!=r.byteLength||!k(new i(e),new i(r))){return false}return true;case o:case u:case v:return a(+e,+r);case h:return e.name==r.name&&e.message==r.message;case b:case g:return e==r+"";case p:var M=f;case y:var C=t&l;M||(M=c);if(e.size!=r.size&&!C){return false}var D=R.get(e);if(D){return D==r}t|=d;R.set(e,r);var _=s(M(e),M(r),t,E,k,R);R["delete"](e);return _;case w:if(S){return S.call(e)==S.call(r)}}return false}e.exports=equalByTag},,,,function(e,r,n){var t=n(829),i=n(974),a=n(84),s=n(71);function property(e){return a(e)?t(s(e)):i(e)}e.exports=property},,,,,function(e){function baseUnary(e){return function(r){return e(r)}}e.exports=baseUnary},,,function(e,r,n){var t=n(882);var i=t.Uint8Array;e.exports=i},,,function(e,r,n){var t=n(497),i=n(926);var a="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||i(e)&&t(e)==a}e.exports=isSymbol},,,,,,,,,,,,,,function(e){e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:true,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:true,readOnly:{type:"boolean",default:false},examples:{type:"array",items:true},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:true},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:false},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:true,enum:{type:"array",items:true,minItems:1,uniqueItems:true},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:true}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:true}},,,,,,,,,,function(e,r,n){var t=n(758);function get(e,r,n){var i=e==null?undefined:t(e,r);return i===undefined?n:i}e.exports=get},,,,,,function(e,r,n){"use strict";var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:true});r.prepareFile=r.prepareEnv=r.prepareMask=void 0;const i=n(186);const a=t(n(704));const s=n(36);const f=n(986);async function prepareMask(e){if(!e.mask){return}for(const r of e.mask){i.setSecret(s.replaceEnvVer(r))}i.info(`mask value count: ${e.mask.length}`)}r.prepareMask=prepareMask;async function prepareEnv(e){if(!e.env){return}for(const r in e.env){const n=e.env[r];if(a.default(n)){const e=s.replaceEnvVer(n);i.setSecret(e);i.exportVariable(r,e);i.info(`${r}: *** (mask)`)}else{const e=s.replaceEnvVer(n.value);i.exportVariable(r,e);if(n.secret===false){i.info(`${r}: ${e}`)}else{i.setSecret(e);i.info(`${r}: *** (mask)`)}}}}r.prepareEnv=prepareEnv;async function prepareFile(e,r){if(!r.file){return}for(const n in r.file){const t=r.file[n];const a=s.replaceEnvVer(n);const c=await f.writeFile(e,a,t);if(c){i.info(`wrote "${n}"`)}else{i.error(`could not write "${n}"`)}}}r.prepareFile=prepareFile},,,function(e,r,n){"use strict";var t=/^[a-z_$][a-z0-9_$-]*$/i;var i=n(972);var a=n(458);e.exports={add:addKeyword,get:getKeyword,remove:removeKeyword,validate:validateKeyword};function addKeyword(e,r){var n=this.RULES;if(n.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!t.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(r){this.validateKeyword(r,true);var a=r.type;if(Array.isArray(a)){for(var s=0;su)){return false}var p=d.get(e);var v=d.get(r);if(p&&v){return p==r&&v==e}var b=-1,y=true,g=n&f?new t:undefined;d.set(e,r);d.set(r,e);while(++b0){e+=" ";let r=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const t=this.properties[n];if(t){if(r){r=false}else{e+=","}e+=`${n}=${escapeProperty(t)}`}}}}e+=`${a}${escapeData(this.message)}`;return e}}function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}r.toCommandValue=toCommandValue;function escapeData(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},,,,,function(e){function arrayMap(e,r){var n=-1,t=e==null?0:e.length,i=Array(t);while(++n-b.indexOf(e.keyword));for(const e of t){throw new p.ConfigActionError(`${e.message} at ${e.dataPath}`)}}}}r.assertConfig=assertConfig;async function loadConfig(e,r){if(r.gpgPassphrase){return loadConfigWithGPGPassphrase(e,r.configFile,r.gpgPassphrase)}else{return loadConfigFile(e,r.configFile)}}r.loadConfig=loadConfig;async function loadConfigFile(e,r){const{readFile:n}=d.promises;const t=v.pathResolve(e,r);const i=await n(t,"utf8");return loadConfigYaml(i)}r.loadConfigFile=loadConfigFile;async function loadConfigWithGPGPassphrase(e,r,n){const{readFile:t}=d.promises;const i=v.pathResolve(e,r);const a=await t(i);const{data:s}=await f.decrypt({message:await f.message.read(a),passwords:[n],format:"utf8"});return loadConfigYaml(s)}r.loadConfigWithGPGPassphrase=loadConfigWithGPGPassphrase;async function loadConfigYaml(e){const r=l.default.safeLoad(e);assertConfig(r);return r}r.loadConfigYaml=loadConfigYaml},,,,,,,function(e,r,n){var t=n(882);var i=t["__core-js_shared__"];e.exports=i},,,,,,function(e,r,n){var t=n(752);function listCacheHas(e){return t(this.__data__,e)>-1}e.exports=listCacheHas},,function(e){function arrayFilter(e,r){var n=-1,t=e==null?0:e.length,i=0,a=[];while(++n",w=p?">":"<",d=undefined;if(!(u||typeof s=="number"||s===undefined)){throw new Error(r+" must be number")}if(!(y||b===undefined||typeof b=="number"||typeof b=="boolean")){throw new Error(v+" must be number or boolean")}if(y){var m=e.util.getData(b.$data,a,e.dataPathArr),A="exclusive"+i,E="exclType"+i,S="exclIsNumber"+i,k="op"+i,R="' + "+k+" + '";t+=" var schemaExcl"+i+" = "+m+"; ";m="schemaExcl"+i;t+=" var "+A+"; var "+E+" = typeof "+m+"; if ("+E+" != 'boolean' && "+E+" != 'undefined' && "+E+" != 'number') { ";var d=v;var M=M||[];M.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+(d||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){t+=" , message: '"+v+" should be boolean' "}if(e.opts.verbose){t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+o+" "}t+=" } "}else{t+=" {} "}var C=t;t=M.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+C+"]); "}else{t+=" validate.errors = ["+C+"]; return false; "}}else{t+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } else if ( ";if(u){t+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "}t+=" "+E+" == 'number' ? ( ("+A+" = "+h+" === undefined || "+m+" "+g+"= "+h+") ? "+o+" "+w+"= "+m+" : "+o+" "+w+" "+h+" ) : ( ("+A+" = "+m+" === true) ? "+o+" "+w+"= "+h+" : "+o+" "+w+" "+h+" ) || "+o+" !== "+o+") { var op"+i+" = "+A+" ? '"+g+"' : '"+g+"='; ";if(s===undefined){d=v;c=e.errSchemaPath+"/"+v;h=m;u=y}}else{var S=typeof b=="number",R=g;if(S&&u){var k="'"+R+"'";t+=" if ( ";if(u){t+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "}t+=" ( "+h+" === undefined || "+b+" "+g+"= "+h+" ? "+o+" "+w+"= "+b+" : "+o+" "+w+" "+h+" ) || "+o+" !== "+o+") { "}else{if(S&&s===undefined){A=true;d=v;c=e.errSchemaPath+"/"+v;h=b;w+="="}else{if(S)h=Math[p?"min":"max"](b,s);if(b===(S?h:true)){A=true;d=v;c=e.errSchemaPath+"/"+v;w+="="}else{A=false;R+="="}}var k="'"+R+"'";t+=" if ( ";if(u){t+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "}t+=" "+o+" "+w+" "+h+" || "+o+" !== "+o+") { "}}d=d||r;var M=M||[];M.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+(d||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+k+", limit: "+h+", exclusive: "+A+" } ";if(e.opts.messages!==false){t+=" , message: 'should be "+R+" ";if(u){t+="' + "+h}else{t+=""+h+"'"}}if(e.opts.verbose){t+=" , schema: ";if(u){t+="validate.schema"+f}else{t+=""+s}t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+o+" "}t+=" } "}else{t+=" {} "}var C=t;t=M.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+C+"]); "}else{t+=" validate.errors = ["+C+"]; return false; "}}else{t+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } ";if(l){t+=" else { "}return t}},,,,function(e){"use strict";e.exports=function generate_items(e,r,n){var t=" ";var i=e.level;var a=e.dataLevel;var s=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var d="data"+(a||"");var o="valid"+i;var u="errs__"+i;var h=e.util.copy(e);var p="";h.level++;var v="valid"+h.level;var b="i"+i,y=h.dataLevel=e.dataLevel+1,g="data"+y,w=e.baseId;t+="var "+u+" = errors;var "+o+";";if(Array.isArray(s)){var m=e.schema.additionalItems;if(m===false){t+=" "+o+" = "+d+".length <= "+s.length+"; ";var A=c;c=e.errSchemaPath+"/additionalItems";t+=" if (!"+o+") { ";var E=E||[];E.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+s.length+" } ";if(e.opts.messages!==false){t+=" , message: 'should NOT have more than "+s.length+" items' "}if(e.opts.verbose){t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}var S=t;t=E.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+S+"]); "}else{t+=" validate.errors = ["+S+"]; return false; "}}else{t+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } ";c=A;if(l){p+="}";t+=" else { "}}var k=s;if(k){var R,M=-1,C=k.length-1;while(M0:e.util.schemaHasRules(R,e.RULES.all)){t+=" "+v+" = true; if ("+d+".length > "+M+") { ";var D=d+"["+M+"]";h.schema=R;h.schemaPath=f+"["+M+"]";h.errSchemaPath=c+"/"+M;h.errorPath=e.util.getPathExpr(e.errorPath,M,e.opts.jsonPointers,true);h.dataPathArr[y]=M;var _=e.validate(h);h.baseId=w;if(e.util.varOccurences(_,g)<2){t+=" "+e.util.varReplace(_,g,D)+" "}else{t+=" var "+g+" = "+D+"; "+_+" "}t+=" } ";if(l){t+=" if ("+v+") { ";p+="}"}}}}if(typeof m=="object"&&(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0:e.util.schemaHasRules(m,e.RULES.all))){h.schema=m;h.schemaPath=e.schemaPath+".additionalItems";h.errSchemaPath=e.errSchemaPath+"/additionalItems";t+=" "+v+" = true; if ("+d+".length > "+s.length+") { for (var "+b+" = "+s.length+"; "+b+" < "+d+".length; "+b+"++) { ";h.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,true);var D=d+"["+b+"]";h.dataPathArr[y]=b;var _=e.validate(h);h.baseId=w;if(e.util.varOccurences(_,g)<2){t+=" "+e.util.varReplace(_,g,D)+" "}else{t+=" var "+g+" = "+D+"; "+_+" "}if(l){t+=" if (!"+v+") break; "}t+=" } } ";if(l){t+=" if ("+v+") { ";p+="}"}}}else if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0:e.util.schemaHasRules(s,e.RULES.all)){h.schema=s;h.schemaPath=f;h.errSchemaPath=c;t+=" for (var "+b+" = "+0+"; "+b+" < "+d+".length; "+b+"++) { ";h.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,true);var D=d+"["+b+"]";h.dataPathArr[y]=b;var _=e.validate(h);h.baseId=w;if(e.util.varOccurences(_,g)<2){t+=" "+e.util.varReplace(_,g,D)+" "}else{t+=" var "+g+" = "+D+"; "+_+" "}if(l){t+=" if (!"+v+") break; "}t+=" }"}if(l){t+=" "+p+" if ("+u+" == errors) {"}return t}},function(e,r,n){var t=n(129),i=n(658);function hasIn(e,r){return e!=null&&i(e,r,t)}e.exports=hasIn},function(e){function arraySome(e,r){var n=-1,t=e==null?0:e.length;while(++n0:e.util.schemaHasRules(m,e.RULES.all)))){v[v.length]=y}}}}else{var v=s}}if(u||v.length){var A=e.errorPath,E=u||v.length>=e.opts.loopRequired,S=e.opts.ownProperties;if(l){t+=" var missing"+i+"; ";if(E){if(!u){t+=" var "+p+" = validate.schema"+f+"; "}var k="i"+i,R="schema"+i+"["+k+"]",M="' + "+R+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(A,R,e.opts.jsonPointers)}t+=" var "+o+" = true; ";if(u){t+=" if (schema"+i+" === undefined) "+o+" = true; else if (!Array.isArray(schema"+i+")) "+o+" = false; else {"}t+=" for (var "+k+" = 0; "+k+" < "+p+".length; "+k+"++) { "+o+" = "+d+"["+p+"["+k+"]] !== undefined ";if(S){t+=" && Object.prototype.hasOwnProperty.call("+d+", "+p+"["+k+"]) "}t+="; if (!"+o+") break; } ";if(u){t+=" } "}t+=" if (!"+o+") { ";var C=C||[];C.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+M+"' } ";if(e.opts.messages!==false){t+=" , message: '";if(e.opts._errorDataPathProperty){t+="is a required property"}else{t+="should have required property \\'"+M+"\\'"}t+="' "}if(e.opts.verbose){t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}var D=t;t=C.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+D+"]); "}else{t+=" validate.errors = ["+D+"]; return false; "}}else{t+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } else { "}else{t+=" if ( ";var _=v;if(_){var j,k=-1,B=_.length-1;while(k0&&"\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1))===-1){i-=1;if(this.position-i>r/2-1){n=" ... ";i+=5;break}}a="";s=this.position;while(sr/2-1){a=" ... ";s-=5;break}}f=this.buffer.slice(i,s);return t.repeat(" ",e)+n+f+a+"\n"+t.repeat(" ",e+this.position-i+n.length)+"^"};Mark.prototype.toString=function toString(e){var r,n="";if(this.name){n+='in "'+this.name+'" '}n+="at line "+(this.line+1)+", column "+(this.column+1);if(!e){r=this.getSnippet();if(r){n+=":\n"+r}}return n};e.exports=Mark},function(e,r,n){var t=n(599),i=n(908),a=n(822),s=n(869),f=n(253);function baseIteratee(e){if(typeof e=="function"){return e}if(e==null){return a}if(typeof e=="object"){return s(e)?i(e[0],e[1]):t(e)}return f(e)}e.exports=baseIteratee},,,,,,function(e,r,n){"use strict";var t=n(967);var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var a=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(i.exec(e)!==null)return true;if(a.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var r,n,t,s,f,c,l,d=0,o=null,u,h,p;r=i.exec(e);if(r===null)r=a.exec(e);if(r===null)throw new Error("Date resolve error");n=+r[1];t=+r[2]-1;s=+r[3];if(!r[4]){return new Date(Date.UTC(n,t,s))}f=+r[4];c=+r[5];l=+r[6];if(r[7]){d=r[7].slice(0,3);while(d.length<3){d+="0"}d=+d}if(r[9]){u=+r[10];h=+(r[11]||0);o=(u*60+h)*6e4;if(r[9]==="-")o=-o}p=new Date(Date.UTC(n,t,s,f,c,l,d));if(o)p.setTime(p.getTime()-o);return p}function representYamlTimestamp(e){return e.toISOString()}e.exports=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},,,,,,,,,,function(e){"use strict";e.exports=function generate_allOf(e,r,n){var t=" ";var i=e.schema[r];var a=e.schemaPath+e.util.getProperty(r);var s=e.errSchemaPath+"/"+r;var f=!e.opts.allErrors;var c=e.util.copy(e);var l="";c.level++;var d="valid"+c.level;var o=c.baseId,u=true;var h=i;if(h){var p,v=-1,b=h.length-1;while(v0:e.util.schemaHasRules(p,e.RULES.all)){u=false;c.schema=p;c.schemaPath=a+"["+v+"]";c.errSchemaPath=s+"/"+v;t+=" "+e.validate(c)+" ";c.baseId=o;if(f){t+=" if ("+d+") { ";l+="}"}}}}if(f){if(u){t+=" if (true) { "}else{t+=" "+l.slice(0,-1)+" "}}return t}},,,function(e,r,n){var t=n(946),i=n(416),a=n(822);var s=!i?a:function(e,r){return i(e,"toString",{configurable:true,enumerable:false,value:t(r),writable:true})};e.exports=s},,,,,,function(e,r,n){var t=n(594),i=n(645);function getMatchData(e){var r=i(e),n=r.length;while(n--){var a=r[n],s=e[a];r[n]=[a,s,t(s)]}return r}e.exports=getMatchData},,,,,,function(e,r,n){"use strict";var t=n(278);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:t.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:t.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},,,,,,,,,,,,function(e,r,n){var t=n(41);var i="__lodash_hash_undefined__";function hashSet(e,r){var n=this.__data__;this.size+=this.has(e)?0:1;n[e]=t&&r===undefined?i:r;return this}e.exports=hashSet},,,,,function(e,r,n){var t=n(213),i=n(356),a=n(869),s=n(264);var f=1/0;var c=t?t.prototype:undefined,l=c?c.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(a(e)){return i(e,baseToString)+""}if(s(e)){return l?l.call(e):""}var r=e+"";return r=="0"&&1/e==-f?"-0":r}e.exports=baseToString},,,,function(e,r,n){var t=n(411),i=n(542);function getNative(e,r){var n=i(e,r);return t(n)?n:undefined}e.exports=getNative},,,function(e,r,n){var t=n(901),i=n(17),a=n(936),s=n(334);function isIterateeCall(e,r,n){if(!s(n)){return false}var f=typeof r;if(f=="number"?i(n)&&a(r,n.length):f=="string"&&r in n){return t(n[r],e)}return false}e.exports=isIterateeCall},,,,,,,,function(e,r,n){"use strict";var t=n(967);e.exports=new t("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},,,,function(e,r,n){var t=n(987),i=n(926);function baseIsEqual(e,r,n,a,s){if(e===r){return true}if(e==null||r==null||!i(e)&&!i(r)){return e!==e&&r!==r}return t(e,r,n,a,baseIsEqual,s)}e.exports=baseIsEqual},function(e,r,n){var t=n(177),i=n(926);var a=Object.prototype;var s=a.hasOwnProperty;var f=a.propertyIsEnumerable;var c=t(function(){return arguments}())?t:function(e){return i(e)&&s.call(e,"callee")&&!f.call(e,"callee")};e.exports=c},function(e,r,n){var t=n(528),i=n(258),a=n(643);var s=a&&a.isTypedArray;var f=s?i(s):t;e.exports=f},function(e,r,n){var t=n(213),i=n(923),a=n(200);var s="[object Null]",f="[object Undefined]";var c=t?t.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?f:s}return c&&c in Object(e)?i(e):a(e)}e.exports=baseGetTag},,,,,,,,,,,,function(e){function matchesStrictComparable(e,r){return function(n){if(n==null){return false}return n[e]===r&&(r!==undefined||e in Object(n))}}e.exports=matchesStrictComparable},,,function(e,r,n){var t=n(479),i=n(882);var a=t(i,"Promise");e.exports=a},,function(e,r,n){"use strict";var t=n(136);var i=n(199);var a=n(967);function compileList(e,r,n){var t=[];e.include.forEach(function(e){n=compileList(e,r,n)});e[r].forEach(function(e){n.forEach(function(r,n){if(r.tag===e.tag&&r.kind===e.kind){t.push(n)}});n.push(e)});return n.filter(function(e,r){return t.indexOf(r)===-1})}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{}},r,n;function collectType(r){e[r.kind][r.tag]=e["fallback"][r.tag]=r}for(r=0,n=arguments.length;r-1&&e%1==0&&e<=r}e.exports=isLength},,,function(e){"use strict";var r=e.exports=function(e,r,n){if(typeof r=="function"){n=r;r={}}n=r.cb||n;var t=typeof n=="function"?n:n.pre||function(){};var i=n.post||function(){};_traverse(r,t,i,e,"",e)};r.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true};r.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};r.propsKeywords={definitions:true,properties:true,patternProperties:true,dependencies:true};r.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(e,n,t,i,a,s,f,c,l,d){if(i&&typeof i=="object"&&!Array.isArray(i)){n(i,a,s,f,c,l,d);for(var o in i){var u=i[o];if(Array.isArray(u)){if(o in r.arrayKeywords){for(var h=0;h64)continue;if(r<0)return false;t+=6}return t%8===0}function constructYamlBinary(e){var r,n,i=e.replace(/[\r\n=]/g,""),a=i.length,f=s,c=0,l=[];for(r=0;r>16&255);l.push(c>>8&255);l.push(c&255)}c=c<<6|f.indexOf(i.charAt(r))}n=a%4*6;if(n===0){l.push(c>>16&255);l.push(c>>8&255);l.push(c&255)}else if(n===18){l.push(c>>10&255);l.push(c>>2&255)}else if(n===12){l.push(c>>4&255)}if(t){return t.from?t.from(l):new t(l)}return l}function representYamlBinary(e){var r="",n=0,t,i,a=e.length,f=s;for(t=0;t>18&63];r+=f[n>>12&63];r+=f[n>>6&63];r+=f[n&63]}n=(n<<8)+e[t]}i=a%3;if(i===0){r+=f[n>>18&63];r+=f[n>>12&63];r+=f[n>>6&63];r+=f[n&63]}else if(i===2){r+=f[n>>10&63];r+=f[n>>4&63];r+=f[n<<2&63];r+=f[64]}else if(i===1){r+=f[n>>2&63];r+=f[n<<4&63];r+=f[64];r+=f[64]}return r}function isBinary(e){return t&&t.isBuffer(e)}e.exports=new a("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},,function(e){function setToArray(e){var r=-1,n=Array(e.size);e.forEach(function(e){n[++r]=e});return n}e.exports=setToArray},,,,,,,,function(e,r,n){"use strict";var t=n(810),i=n(578).toHash;e.exports=function rules(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}];var r=["type","$comment"];var n=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"];var a=["number","integer","string","array","object","boolean","null"];e.all=i(r);e.types=i(a);e.forEach(function(n){n.rules=n.rules.map(function(n){var i;if(typeof n=="object"){var a=Object.keys(n)[0];i=n[a];n=a;i.forEach(function(n){r.push(n);e.all[n]=true})}r.push(n);var s=e.all[n]={keyword:n,code:t[n],implements:i};return s});e.all.$comment={keyword:"$comment",code:t.$comment};if(n.type)e.types[n.type]=n});e.keywords=i(r.concat(n));e.custom={};return e}},,,function(e,r,n){"use strict";var t=n(136);var i=n(967);var a=new RegExp("^(?:[-+]?(?:0|[1-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))$");function resolveYamlFloat(e){if(e===null)return false;if(!a.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var r,n,t,i;r=e.replace(/_/g,"").toLowerCase();n=r[0]==="-"?-1:1;i=[];if("+-".indexOf(r[0])>=0){r=r.slice(1)}if(r===".inf"){return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(r===".nan"){return NaN}else if(r.indexOf(":")>=0){r.split(":").forEach(function(e){i.unshift(parseFloat(e,10))});r=0;t=1;i.forEach(function(e){r+=e*t;t*=60});return n*r}return n*parseFloat(r,10)}var s=/^[-+]?[0-9]+e/;function representYamlFloat(e,r){var n;if(isNaN(e)){switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(t.isNegativeZero(e)){return"-0.0"}n=e.toString(10);return s.test(n)?n.replace("e",".e"):n}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||t.isNegativeZero(e))}e.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},,,,,,,function(e,r,n){"use strict";var t=n(514);e.exports=new t({include:[n(37)],implicit:[n(671),n(675),n(963),n(564)]})},,,,,,,function(e,r,n){"use strict";e.exports={copy:copy,checkDataType:checkDataType,checkDataTypes:checkDataTypes,coerceToTypes:coerceToTypes,toHash:toHash,getProperty:getProperty,escapeQuotes:escapeQuotes,equal:n(206),ucs2length:n(580),varOccurences:varOccurences,varReplace:varReplace,schemaHasRules:schemaHasRules,schemaHasRulesExcept:schemaHasRulesExcept,schemaUnknownRules:schemaUnknownRules,toQuotedString:toQuotedString,getPathExpr:getPathExpr,getPath:getPath,getData:getData,unescapeFragment:unescapeFragment,unescapeJsonPointer:unescapeJsonPointer,escapeFragment:escapeFragment,escapeJsonPointer:escapeJsonPointer};function copy(e,r){r=r||{};for(var n in e)r[n]=e[n];return r}function checkDataType(e,r,n,t){var i=t?" !== ":" === ",a=t?" || ":" && ",s=t?"!":"",f=t?"":"!";switch(e){case"null":return r+i+"null";case"array":return s+"Array.isArray("+r+")";case"object":return"("+s+r+a+"typeof "+r+i+'"object"'+a+f+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+i+'"number"'+a+f+"("+r+" % 1)"+a+r+i+r+(n?a+s+"isFinite("+r+")":"")+")";case"number":return"(typeof "+r+i+'"'+e+'"'+(n?a+s+"isFinite("+r+")":"")+")";default:return"typeof "+r+i+'"'+e+'"'}}function checkDataTypes(e,r,n){switch(e.length){case 1:return checkDataType(e[0],r,n,true);default:var t="";var i=toHash(e);if(i.array&&i.object){t=i.null?"(":"(!"+r+" || ";t+="typeof "+r+' !== "object")';delete i.null;delete i.array;delete i.object}if(i.number)delete i.integer;for(var a in i)t+=(t?" && ":"")+checkDataType(a,r,n,true);return t}}var t=toHash(["string","number","integer","boolean","null"]);function coerceToTypes(e,r){if(Array.isArray(r)){var n=[];for(var i=0;i=r)throw new Error("Cannot access property/index "+t+" levels up, current level is "+r);return n[r-t]}if(t>r)throw new Error("Cannot access data "+t+" levels up, current level is "+r);a="data"+(r-t||"");if(!i)return a}var l=a;var d=i.split("/");for(var o=0;o=55296&&i<=56319&&t0:e.util.schemaHasRules(g,e.RULES.all)){t+=" "+p+" = true; if ( "+d+e.util.getProperty(A)+" !== undefined ";if(y){t+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(A)+"') "}t+=") { ";u.schema=g;u.schemaPath=f+e.util.getProperty(A);u.errSchemaPath=c+"/"+e.util.escapeFragment(A);t+=" "+e.validate(u)+" ";u.baseId=I;t+=" } ";if(l){t+=" if ("+p+") { ";h+="}"}}}if(l){t+=" "+h+" if ("+o+" == errors) {"}return t}},,,function(e,r,n){var t=n(334);function isStrictComparable(e){return e===e&&!t(e)}e.exports=isStrictComparable},,,,,function(e,r,n){var t=n(124),i=n(452),a=n(509);function baseMatches(e){var r=i(e);if(r.length==1&&r[0][2]){return a(r[0][0],r[0][1])}return function(n){return n===e||t(n,e,r)}}e.exports=baseMatches},,,,,,function(e,r,n){"use strict";var t=n(578);e.exports=SchemaObject;function SchemaObject(e){t.copy(e,this)}},,,function(e,r,n){var t=n(792),i=n(716),a=n(789),s=n(386),f=n(399);function ListCache(e){var r=-1,n=e==null?0:e.length;this.clear();while(++r%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;var o=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;var u=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var h=/^(?:\/(?:[^~/]|~0|~1)*)*$/;var p=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var v=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;e.exports=formats;function formats(e){e=e=="full"?"full":"fast";return t.copy(formats[e])}formats.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[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[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:u,"json-pointer":h,"json-pointer-uri-fragment":p,"relative-json-pointer":v};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":l,"uri-template":d,url:o,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:f,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:u,"json-pointer":h,"json-pointer-uri-fragment":p,"relative-json-pointer":v};function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function date(e){var r=e.match(i);if(!r)return false;var n=+r[1];var t=+r[2];var s=+r[3];return t>=1&&t<=12&&s>=1&&s<=(t==2&&isLeapYear(n)?29:a[t])}function time(e,r){var n=e.match(s);if(!n)return false;var t=n[1];var i=n[2];var a=n[3];var f=n[5];return(t<=23&&i<=59&&a<=59||t==23&&i==59&&a==60)&&(!r||f)}var b=/t|\s/i;function date_time(e){var r=e.split(b);return r.length==2&&date(r[0])&&time(r[1],true)}var y=/\/|:/;function uri(e){return y.test(e)&&c.test(e)}var g=/[^\\]\\Z/;function regex(e){if(g.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},,,,,,,function(e){function stubArray(){return[]}e.exports=stubArray},,,,,,function(e,r,n){var t=n(17);function createBaseEach(e,r){return function(n,i){if(n==null){return n}if(!t(n)){return e(n,i)}var a=n.length,s=r?a:-1,f=Object(n);while(r?s--:++s":"<";t+="if ( ";if(u){t+=" ("+h+" !== undefined && typeof "+h+" != 'number') || "}t+=" "+o+".length "+p+" "+h+") { ";var d=r;var v=v||[];v.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+h+" } ";if(e.opts.messages!==false){t+=" , message: 'should NOT have ";if(r=="maxItems"){t+="more"}else{t+="fewer"}t+=" than ";if(u){t+="' + "+h+" + '"}else{t+=""+s}t+=" items' "}if(e.opts.verbose){t+=" , schema: ";if(u){t+="validate.schema"+f}else{t+=""+s}t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+o+" "}t+=" } "}else{t+=" {} "}var b=t;t=v.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+b+"]); "}else{t+=" validate.errors = ["+b+"]; return false; "}}else{t+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+="} ";if(l){t+=" else { "}return t}},,,,,function(e,r,n){var t=n(869),i=n(84),a=n(871),s=n(931);function castPath(e,r){if(t(e)){return e}return i(e,r)?[e]:a(s(e))}e.exports=castPath},,,,,,,,,,,,,,,,function(e,r,n){var t=n(497),i=n(869),a=n(926);var s="[object String]";function isString(e){return typeof e=="string"||!i(e)&&a(e)&&t(e)==s}e.exports=isString},,,,,function(e){function createBaseFor(e){return function(r,n,t){var i=-1,a=Object(r),s=t(r),f=s.length;while(f--){var c=s[e?f:++i];if(n(a[c],c,a)===false){break}}return r}}e.exports=createBaseFor},,,function(e,r,n){var t=n(588),i=n(645);function baseForOwn(e,r){return e&&t(e,r,i)}e.exports=baseForOwn},,function(module){(function(e){if(true){module.exports=e()}else{var r}})(function(){var define,module,exports;return function(){function r(e,n,t){function o(a,s){if(!n[a]){if(!e[a]){var f=require;if(!s&&f)return f(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};e[a][0].call(l.exports,function(r){var n=e[a][1][r];return o(n||r)},l,l.exports,r,e,n,t)}return n[a].exports}for(var i=require,a=0;a`Symbol(${e})`;const R="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof e?e:void 0,P=Number.isNaN||function(e){return e!=e};function n(e){return"object"==typeof e&&null!==e||"function"==typeof e}function i(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function a(e){return e.slice()}function s(e,r,n,t,i){new Uint8Array(e).set(new Uint8Array(n,t,i),r)}function l(e){return!1!==function(e){if("number"!=typeof e)return!1;if(P(e))return!1;if(e<0)return!1;return!0}(e)&&e!==1/0}function c(e,r,n){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,r,n)}function u(e,r,n,t){const i=e[r];if(void 0!==i){if("function"!=typeof i)throw new TypeError(`${i} is not a method`);switch(n){case 0:return()=>f(i,e,t);case 1:return r=>{const n=[r].concat(t);return f(i,e,n)}}}return()=>Promise.resolve()}function d(e,r,n){const t=e[r];if(void 0!==t)return c(t,e,n)}function f(e,r,n){try{return Promise.resolve(c(e,r,n))}catch(e){return Promise.reject(e)}}function _(e){return e}function h(e){if(e=Number(e),P(e)||e<0)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return e}function b(e){if(void 0===e)return()=>1;if("function"!=typeof e)throw new TypeError("size property of a queuing strategy must be a function");return r=>e(r)}function m(e,r,n){return Promise.prototype.then.call(e,r,n)}function y(e,r,n){let t,i;const a=new Promise((e,r)=>{t=e,i=r});void 0===n&&(n=(e=>{throw e}));return function(e,r,n){let t=!1;const i=e=>{!1===t&&(t=!0,n(e))};let a=0,s=0;const f=e.length,c=new Array(f);for(const n of e){const e=a;m(n,n=>{c[e]=n,++s===f&&r(c)},i),++a}}(e,e=>{try{const n=r(e);t(n)}catch(e){i(e)}},e=>{try{const r=n(e);t(r)}catch(e){i(e)}}),a}function p(e){}function w(e){e&&e instanceof p.AssertionError&&setTimeout(()=>{throw e},0)}function g(e){const r=e._queue.shift();return e._queueTotalSize-=r.size,e._queueTotalSize<0&&(e._queueTotalSize=0),r.value}function S(e,r,n){if(!l(n=Number(n)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:r,size:n}),e._queueTotalSize+=n}function v(e){e._queue=[],e._queueTotalSize=0}p.AssertionError=function(){};const se=o("[[AbortSteps]]"),ce=o("[[ErrorSteps]]");class WritableStream{constructor(e={},r={}){q(this);const n=r.size;let t=r.highWaterMark;if(void 0!==e.type)throw new RangeError("Invalid type is specified");const i=b(n);void 0===t&&(t=1),function(e,r,n,t){const i=Object.create(WritableStreamDefaultController.prototype);const a=u(r,"write",1,[i]),s=u(r,"close",0,[]),f=u(r,"abort",1,[]);$(e,i,function(){return d(r,"start",[i])},a,s,f,n,t)}(this,e,t=h(t),i)}get locked(){if(!1===E(this))throw G("locked");return C(this)}abort(e){return!1===E(this)?Promise.reject(G("abort")):!0===C(this)?Promise.reject(new TypeError("Cannot abort a stream that already has a writer")):j(this,e)}getWriter(){if(!1===E(this))throw G("getWriter");return T(this)}}function T(e){return new WritableStreamDefaultWriter(e)}function q(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=[],e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function E(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function C(e){return void 0!==e._writer}function j(e,r){const n=e._state;if("closed"===n||"errored"===n)return Promise.resolve(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let t=!1;"erroring"===n&&(t=!0,r=void 0);const i=new Promise((n,i)=>{e._pendingAbortRequest={_promise:void 0,_resolve:n,_reject:i,_reason:r,_wasAlreadyErroring:t}});return e._pendingAbortRequest._promise=i,!1===t&&W(e,r),i}function A(e,r){"writable"!==e._state?B(e):W(e,r)}function W(e,r){const n=e._writableStreamController;e._state="erroring",e._storedError=r;const t=e._writer;void 0!==t&&D(t,r),!1===function(e){if(void 0===e._inFlightWriteRequest&&void 0===e._inFlightCloseRequest)return!1;return!0}(e)&&!0===n._started&&B(e)}function B(e){e._state="errored",e._writableStreamController[ce]();const r=e._storedError;for(const n of e._writeRequests)n._reject(r);if(e._writeRequests=[],void 0===e._pendingAbortRequest)return void z(e);const n=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,!0===n._wasAlreadyErroring)return n._reject(r),void z(e);e._writableStreamController[se](n._reason).then(()=>{n._resolve(),z(e)},r=>{n._reject(r),z(e)})}function O(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function z(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);const r=e._writer;void 0!==r&&ee(r,e._storedError)}function k(e,r){const n=e._writer;void 0!==n&&r!==e._backpressure&&(!0===r?function(e){re(e)}(n):ae(n)),e._backpressure=r}class WritableStreamDefaultWriter{constructor(e){if(!1===E(e))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===C(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;const r=e._state;if("writable"===r)!1===O(e)&&!0===e._backpressure?re(this):ne(this),X(this);else if("erroring"===r)oe(this,e._storedError),X(this);else if("closed"===r)ne(this),function(e){X(e),te(e)}(this);else{const r=e._storedError;oe(this,r),Z(this,r)}}get closed(){return!1===F(this)?Promise.reject(J("closed")):this._closedPromise}get desiredSize(){if(!1===F(this))throw J("desiredSize");if(void 0===this._ownerWritableStream)throw K("desiredSize");return function(e){const r=e._ownerWritableStream,n=r._state;if("errored"===n||"erroring"===n)return null;if("closed"===n)return 0;return Q(r._writableStreamController)}(this)}get ready(){return!1===F(this)?Promise.reject(J("ready")):this._readyPromise}abort(e){return!1===F(this)?Promise.reject(J("abort")):void 0===this._ownerWritableStream?Promise.reject(K("abort")):function(e,r){return j(e._ownerWritableStream,r)}(this,e)}close(){if(!1===F(this))return Promise.reject(J("close"));const e=this._ownerWritableStream;return void 0===e?Promise.reject(K("close")):!0===O(e)?Promise.reject(new TypeError("cannot close an already-closing stream")):L(this)}releaseLock(){if(!1===F(this))throw J("releaseLock");void 0!==this._ownerWritableStream&&M(this)}write(e){return!1===F(this)?Promise.reject(J("write")):void 0===this._ownerWritableStream?Promise.reject(K("write to")):Y(this,e)}}function F(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function L(e){const r=e._ownerWritableStream,n=r._state;if("closed"===n||"errored"===n)return Promise.reject(new TypeError(`The stream (in ${n} state) is not in the writable state and cannot be closed`));const t=new Promise((e,n)=>{const t={_resolve:e,_reject:n};r._closeRequest=t});return!0===r._backpressure&&"writable"===n&&ae(e),function(e){S(e,"close",0),x(e)}(r._writableStreamController),t}function I(e,r){"pending"===e._closedPromiseState?ee(e,r):function(e,r){Z(e,r)}(e,r)}function D(e,r){"pending"===e._readyPromiseState?ie(e,r):function(e,r){oe(e,r)}(e,r)}function M(e){const r=e._ownerWritableStream,n=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");D(e,n),I(e,n),r._writer=void 0,e._ownerWritableStream=void 0}function Y(e,r){const n=e._ownerWritableStream,t=n._writableStreamController,i=function(e,r){try{return e._strategySizeAlgorithm(r)}catch(r){return H(e,r),1}}(t,r);if(n!==e._ownerWritableStream)return Promise.reject(K("write to"));const a=n._state;if("errored"===a)return Promise.reject(n._storedError);if(!0===O(n)||"closed"===a)return Promise.reject(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===a)return Promise.reject(n._storedError);const s=function(e){return new Promise((r,n)=>{const t={_resolve:r,_reject:n};e._writeRequests.push(t)})}(n);return function(e,r,n){const t={chunk:r};try{S(e,t,n)}catch(r){return void H(e,r)}const i=e._controlledWritableStream;if(!1===O(i)&&"writable"===i._state){const r=U(e);k(i,r)}x(e)}(t,r,i),s}class WritableStreamDefaultController{constructor(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly")}error(e){if(!1===function(e){if(!n(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream"))return!1;return!0}(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&V(this,e)}[se](e){const r=this._abortAlgorithm(e);return N(this),r}[ce](){v(this)}}function $(e,r,n,t,i,a,s,f){r._controlledWritableStream=e,e._writableStreamController=r,r._queue=void 0,r._queueTotalSize=void 0,v(r),r._started=!1,r._strategySizeAlgorithm=f,r._strategyHWM=s,r._writeAlgorithm=t,r._closeAlgorithm=i,r._abortAlgorithm=a;const c=U(r);k(e,c);const l=n();Promise.resolve(l).then(()=>{r._started=!0,x(r)},n=>{r._started=!0,A(e,n)}).catch(w)}function N(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Q(e){return e._strategyHWM-e._queueTotalSize}function x(e){const r=e._controlledWritableStream;if(!1===e._started)return;if(void 0!==r._inFlightWriteRequest)return;const n=r._state;if("closed"===n||"errored"===n)return;if("erroring"===n)return void B(r);if(0===e._queue.length)return;const t=function(e){return e._queue[0].value}(e);"close"===t?function(e){const r=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(r),g(e);const n=e._closeAlgorithm();N(e),n.then(()=>{!function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";const r=e._writer;void 0!==r&&te(r)}(r)},e=>{!function(e,r){e._inFlightCloseRequest._reject(r),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(r),e._pendingAbortRequest=void 0),A(e,r)}(r,e)}).catch(w)}(e):function(e,r){const n=e._controlledWritableStream;(function(e){e._inFlightWriteRequest=e._writeRequests.shift()})(n),e._writeAlgorithm(r).then(()=>{!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(n);const r=n._state;if(g(e),!1===O(n)&&"writable"===r){const r=U(e);k(n,r)}x(e)},r=>{"writable"===n._state&&N(e),function(e,r){e._inFlightWriteRequest._reject(r),e._inFlightWriteRequest=void 0,A(e,r)}(n,r)}).catch(w)}(e,t.chunk)}function H(e,r){"writable"===e._controlledWritableStream._state&&V(e,r)}function U(e){return Q(e)<=0}function V(e,r){const n=e._controlledWritableStream;N(e),W(n,r)}function G(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function J(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function K(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function X(e){e._closedPromise=new Promise((r,n)=>{e._closedPromise_resolve=r,e._closedPromise_reject=n,e._closedPromiseState="pending"})}function Z(e,r){X(e),ee(e,r)}function ee(e,r){e._closedPromise.catch(()=>{}),e._closedPromise_reject(r),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected"}function te(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved"}function re(e){e._readyPromise=new Promise((r,n)=>{e._readyPromise_resolve=r,e._readyPromise_reject=n}),e._readyPromiseState="pending"}function oe(e,r){re(e),ie(e,r)}function ne(e){re(e),ae(e)}function ie(e,r){e._readyPromise.catch(()=>{}),e._readyPromise_reject(r),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected"}function ae(e){e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled"}const le=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},er=o("[[CancelSteps]]"),rr=o("[[PullSteps]]");class ReadableStream{constructor(e={},r={}){fe(this);const n=r.size;let t=r.highWaterMark;const i=e.type;if("bytes"===String(i)){if(void 0!==n)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===t&&(t=0),function(e,r,n){const t=Object.create(ReadableByteStreamController.prototype);const i=u(r,"pull",0,[t]),a=u(r,"cancel",1,[]);let s=r.autoAllocateChunkSize;if(void 0!==s&&(s=Number(s),!1===le(s)||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");!function(e,r,n,t,i,a,s){r._controlledReadableByteStream=e,r._pullAgain=!1,r._pulling=!1,He(r),r._queue=r._queueTotalSize=void 0,v(r),r._closeRequested=!1,r._started=!1,r._strategyHWM=h(a),r._pullAlgorithm=t,r._cancelAlgorithm=i,r._autoAllocateChunkSize=s,r._pendingPullIntos=[],e._readableStreamController=r;const f=n();Promise.resolve(f).then(()=>{r._started=!0,xe(r)},e=>{nt(r,e)}).catch(w)}(e,t,function(){return d(r,"start",[t])},i,a,n,s)}(this,e,t=h(t))}else{if(void 0!==i)throw new RangeError("Invalid type is specified");{const r=b(n);void 0===t&&(t=1),function(e,r,n,t){const i=Object.create(ReadableStreamDefaultController.prototype);const a=u(r,"pull",0,[i]),s=u(r,"cancel",1,[]);$e(e,i,function(){return d(r,"start",[i])},a,s,n,t)}(this,e,t=h(t),r)}}}get locked(){if(!1===_e(this))throw st("locked");return he(this)}cancel(e){return!1===_e(this)?Promise.reject(st("cancel")):!0===he(this)?Promise.reject(new TypeError("Cannot cancel a stream that already has a reader")):pe(this,e)}getReader({mode:e}={}){if(!1===_e(this))throw st("getReader");if(void 0===e)return ue(this);if("byob"===(e=String(e)))return function(e){return new ReadableStreamBYOBReader(e)}(this);throw new RangeError("Invalid mode is specified")}pipeThrough({writable:e,readable:r},{preventClose:n,preventAbort:t,preventCancel:i,signal:a}={}){if(!1===_e(this))throw st("pipeThrough");if(!1===E(e))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===_e(r))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");if(n=Boolean(n),t=Boolean(t),i=Boolean(i),void 0!==a&&!at(a))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");if(!0===he(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===C(e))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return be(this,e,n,t,i,a).catch(()=>{}),r}pipeTo(e,{preventClose:r,preventAbort:n,preventCancel:t,signal:i}={}){return!1===_e(this)?Promise.reject(st("pipeTo")):!1===E(e)?Promise.reject(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream")):(r=Boolean(r),n=Boolean(n),t=Boolean(t),void 0===i||at(i)?!0===he(this)?Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):!0===C(e)?Promise.reject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):be(this,e,r,n,t,i):Promise.reject(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal")))}tee(){if(!1===_e(this))throw st("tee");const e=function(e,r){const n=ue(e);let t,i,s,f,c,l=!1,d=!1,o=!1;const u=new Promise(e=>{c=e});function _(){return Be(n).then(e=>{const r=e.value,n=e.done;if(!0===n&&!1===l&&(!1===d&&Le(s._readableStreamController),!1===o&&Le(f._readableStreamController),l=!0),!0===l)return;const t=r,i=r;!1===d&&Ie(s._readableStreamController,t),!1===o&&Ie(f._readableStreamController,i)})}function h(){}return s=de(h,_,function(r){if(d=!0,t=r,!0===o){const r=a([t,i]),n=pe(e,r);c(n)}return u}),f=de(h,_,function(r){if(o=!0,i=r,!0===d){const r=a([t,i]),n=pe(e,r);c(n)}return u}),n._closedPromise.catch(e=>{!0!==l&&(De(s._readableStreamController,e),De(f._readableStreamController,e),l=!0)}),[s,f]}(this);return a(e)}}function ue(e){return new ReadableStreamDefaultReader(e)}function de(e,r,n,t=1,i=(()=>1)){const a=Object.create(ReadableStream.prototype);return fe(a),$e(a,Object.create(ReadableStreamDefaultController.prototype),e,r,n,t,i),a}function fe(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function _e(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function he(e){return void 0!==e._reader}function be(e,t,i,a,s,f){const c=ue(e),l=T(t);let d=!1,o=Promise.resolve();return new Promise((r,u)=>{let v;if(void 0!==f){if(v=(()=>{const r=new DOMException("Aborted","AbortError"),n=[];!1===a&&n.push(()=>"writable"===t._state?j(t,r):Promise.resolve()),!1===s&&n.push(()=>"readable"===e._state?pe(e,r):Promise.resolve()),b(()=>y(n.map(e=>e()),e=>e),!0,r)}),!0===f.aborted)return void v();f.addEventListener("abort",v)}if(h(e,c._closedPromise,e=>{!1===a?b(()=>j(t,e),!0,e):m(!0,e)}),h(t,l._closedPromise,r=>{!1===s?b(()=>pe(e,r),!0,r):m(!0,r)}),function(e,r,n){"closed"===e._state?n():r.then(n).catch(w)}(e,c._closedPromise,()=>{!1===i?b(()=>(function(e){const r=e._ownerWritableStream,n=r._state;return!0===O(r)||"closed"===n?Promise.resolve():"errored"===n?Promise.reject(r._storedError):L(e)})(l)):m()}),!0===O(t)||"closed"===t._state){const r=new TypeError("the destination writable stream closed before all data could be piped to it");!1===s?b(()=>pe(e,r),!0,r):m(!0,r)}function _(){const e=o;return o.then(()=>e!==o?_():void 0)}function h(e,r,n){"errored"===e._state?n(e._storedError):r.catch(n).catch(w)}function b(e,r,i){function n(){e().then(()=>p(r,i),e=>p(!0,e)).catch(w)}!0!==d&&(d=!0,"writable"===t._state&&!1===O(t)?_().then(n):n())}function m(e,r){!0!==d&&(d=!0,"writable"===t._state&&!1===O(t)?_().then(()=>p(e,r)).catch(w):p(e,r))}function p(e,n){M(l),We(c),void 0!==f&&f.removeEventListener("abort",v),e?u(n):r(void 0)}new Promise((e,n)=>{!function r(t){t?e():(!0===d?Promise.resolve(!0):l._readyPromise.then(()=>Be(c).then(({value:e,done:r})=>!0===r||(o=Y(l,e).catch(()=>{}),!1)))).then(r,n)}(!1)}).catch(e=>{o=Promise.resolve(),w(e)})})}function me(e,r){return new Promise((n,t)=>{const i={_resolve:n,_reject:t,_forAuthorCode:r};e._reader._readIntoRequests.push(i)})}function ye(e,r){return new Promise((n,t)=>{const i={_resolve:n,_reject:t,_forAuthorCode:r};e._reader._readRequests.push(i)})}function pe(e,r){if(e._disturbed=!0,"closed"===e._state)return Promise.resolve(void 0);if("errored"===e._state)return Promise.reject(e._storedError);return we(e),e._readableStreamController[er](r).then(()=>void 0)}function we(e){e._state="closed";const r=e._reader;if(void 0!==r){if(Ce(r)){for(const e of r._readRequests){const r=e._resolve;const n=e._forAuthorCode;r(ge(void 0,!0,n))}r._readRequests=[]}_t(r)}}function ge(e,r,n){let t=null;!0===n&&(t=Object.prototype);const i=Object.create(t);return Object.defineProperty(i,"value",{value:e,enumerable:!0,writable:!0,configurable:!0}),Object.defineProperty(i,"done",{value:r,enumerable:!0,writable:!0,configurable:!0}),i}function Se(e,r){e._state="errored",e._storedError=r;const n=e._reader;if(void 0!==n){if(Ce(n)){for(const e of n._readRequests)e._reject(r);n._readRequests=[]}else{for(const e of n._readIntoRequests)e._reject(r);n._readIntoRequests=[]}ft(n,r)}}function ve(e,r,n){const t=e._reader._readRequests.shift();t._resolve(ge(r,n,t._forAuthorCode))}function Re(e){return e._reader._readIntoRequests.length}function Pe(e){return e._reader._readRequests.length}function Te(e){const r=e._reader;return void 0!==r&&!!Ee(r)}function qe(e){const r=e._reader;return void 0!==r&&!!Ce(r)}class ReadableStreamDefaultReader{constructor(e){if(!1===_e(e))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===he(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");je(this,e),this._readRequests=[]}get closed(){return Ce(this)?this._closedPromise:Promise.reject(ct("closed"))}cancel(e){return Ce(this)?void 0===this._ownerReadableStream?Promise.reject(lt("cancel")):Ae(this,e):Promise.reject(ct("cancel"))}read(){return Ce(this)?void 0===this._ownerReadableStream?Promise.reject(lt("read from")):Be(this,!0):Promise.reject(ct("read"))}releaseLock(){if(!Ce(this))throw ct("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");We(this)}}}class ReadableStreamBYOBReader{constructor(e){if(!_e(e))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===Ne(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(he(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");je(this,e),this._readIntoRequests=[]}get closed(){return Ee(this)?this._closedPromise:Promise.reject(ht("closed"))}cancel(e){return Ee(this)?void 0===this._ownerReadableStream?Promise.reject(lt("cancel")):Ae(this,e):Promise.reject(ht("cancel"))}read(e){return Ee(this)?void 0===this._ownerReadableStream?Promise.reject(lt("read from")):ArrayBuffer.isView(e)?(e.buffer,0===e.byteLength?Promise.reject(new TypeError("view must have non-zero byteLength")):function(e,r,n=!1){const t=e._ownerReadableStream;if(t._disturbed=!0,"errored"===t._state)return Promise.reject(t._storedError);return function(e,r,n){const t=e._controlledReadableByteStream;let i=1;r.constructor!==DataView&&(i=r.constructor.BYTES_PER_ELEMENT);const a=r.constructor,s={buffer:_(r.buffer),byteOffset:r.byteOffset,byteLength:r.byteLength,bytesFilled:0,elementSize:i,ctor:a,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(s),me(t,n);if("closed"===t._state){const e=new a(s.buffer,s.byteOffset,0);return Promise.resolve(ge(e,!0,n))}if(e._queueTotalSize>0){if(!0===Je(e,s)){const r=Ve(s);return Xe(e),Promise.resolve(ge(r,!1,n))}if(!0===e._closeRequested){const r=new TypeError("Insufficient bytes to fill elements in the given buffer");return nt(e,r),Promise.reject(r)}}e._pendingPullIntos.push(s);const f=me(t,n);return xe(e),f}(t._readableStreamController,r,n)}(this,e,!0)):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(ht("read"))}releaseLock(){if(!Ee(this))throw ht("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");We(this)}}}function Ee(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function Ce(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function je(e,r){e._ownerReadableStream=r,r._reader=e,"readable"===r._state?ut(e):"closed"===r._state?function(e){ut(e),_t(e)}(e):dt(e,r._storedError)}function Ae(e,r){return pe(e._ownerReadableStream,r)}function We(e){"readable"===e._ownerReadableStream._state?ft(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(e,r){dt(e,r)}(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function Be(e,r=!1){const n=e._ownerReadableStream;return n._disturbed=!0,"closed"===n._state?Promise.resolve(ge(void 0,!0,r)):"errored"===n._state?Promise.reject(n._storedError):n._readableStreamController[rr](r)}class ReadableStreamDefaultController{constructor(){throw new TypeError}get desiredSize(){if(!1===Oe(this))throw bt("desiredSize");return Me(this)}close(){if(!1===Oe(this))throw bt("close");if(!1===Ye(this))throw new TypeError("The stream is not in a state that permits close");Le(this)}enqueue(e){if(!1===Oe(this))throw bt("enqueue");if(!1===Ye(this))throw new TypeError("The stream is not in a state that permits enqueue");return Ie(this,e)}error(e){if(!1===Oe(this))throw bt("error");De(this,e)}[er](e){v(this);const r=this._cancelAlgorithm(e);return Fe(this),r}[rr](e){const r=this._controlledReadableStream;if(this._queue.length>0){const n=g(this);return!0===this._closeRequested&&0===this._queue.length?(Fe(this),we(r)):ze(this),Promise.resolve(ge(n,!1,e))}const n=ye(r,e);return ze(this),n}}function Oe(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function ze(e){!1!==ke(e)&&(!0!==e._pulling?(e._pulling=!0,e._pullAlgorithm().then(()=>{if(e._pulling=!1,!0===e._pullAgain)return e._pullAgain=!1,ze(e)},r=>{De(e,r)}).catch(w)):e._pullAgain=!0)}function ke(e){const r=e._controlledReadableStream;return!1!==Ye(e)&&!1!==e._started&&(!0===he(r)&&Pe(r)>0||Me(e)>0)}function Fe(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Le(e){const r=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(Fe(e),we(r))}function Ie(e,r){const n=e._controlledReadableStream;if(!0===he(n)&&Pe(n)>0)ve(n,r,!1);else{let n;try{n=e._strategySizeAlgorithm(r)}catch(r){throw De(e,r),r}try{S(e,r,n)}catch(r){throw De(e,r),r}}ze(e)}function De(e,r){const n=e._controlledReadableStream;"readable"===n._state&&(v(e),Fe(e),Se(n,r))}function Me(e){const r=e._controlledReadableStream._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function Ye(e){const r=e._controlledReadableStream._state;return!1===e._closeRequested&&"readable"===r}function $e(e,r,n,t,i,a,s){r._controlledReadableStream=e,r._queue=void 0,r._queueTotalSize=void 0,v(r),r._started=!1,r._closeRequested=!1,r._pullAgain=!1,r._pulling=!1,r._strategySizeAlgorithm=s,r._strategyHWM=a,r._pullAlgorithm=t,r._cancelAlgorithm=i,e._readableStreamController=r;const f=n();Promise.resolve(f).then(()=>{r._started=!0,ze(r)},e=>{De(r,e)}).catch(w)}class ReadableStreamBYOBRequest{constructor(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}get view(){if(!1===Qe(this))throw mt("view");return this._view}respond(e){if(!1===Qe(this))throw mt("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,function(e,r){if(!1===l(r=Number(r)))throw new RangeError("bytesWritten must be a finite");tt(e,r)}(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!1===Qe(this))throw mt("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");e.buffer,function(e,r){const n=e._pendingPullIntos[0];if(n.byteOffset+n.bytesFilled!==r.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(n.byteLength!==r.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");n.buffer=r.buffer,tt(e,r.byteLength)}(this._associatedReadableByteStreamController,e)}}class ReadableByteStreamController{constructor(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}get byobRequest(){if(!1===Ne(this))throw yt("byobRequest");if(void 0===this._byobRequest&&this._pendingPullIntos.length>0){const e=this._pendingPullIntos[0],r=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled),n=Object.create(ReadableStreamBYOBRequest.prototype);!function(e,r,n){e._associatedReadableByteStreamController=r,e._view=n}(n,this,r),this._byobRequest=n}return this._byobRequest}get desiredSize(){if(!1===Ne(this))throw yt("desiredSize");return it(this)}close(){if(!1===Ne(this))throw yt("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");const e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);!function(e){const r=e._controlledReadableByteStream;if(e._queueTotalSize>0)return void(e._closeRequested=!0);if(e._pendingPullIntos.length>0){const r=e._pendingPullIntos[0];if(r.bytesFilled>0){const r=new TypeError("Insufficient bytes to fill elements in the given buffer");throw nt(e,r),r}}ot(e),we(r)}(this)}enqueue(e){if(!1===Ne(this))throw yt("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");const r=this._controlledReadableByteStream._state;if("readable"!==r)throw new TypeError(`The stream (in ${r} state) is not in the readable state and cannot be enqueued to`);if(!ArrayBuffer.isView(e))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");e.buffer,function(e,r){const n=e._controlledReadableByteStream,t=r.buffer,i=r.byteOffset,a=r.byteLength,s=_(t);if(!0===qe(n)){if(0===Pe(n))Ge(e,s,i,a);else{const e=new Uint8Array(s,i,a);ve(n,e,!1)}}else!0===Te(n)?(Ge(e,s,i,a),et(e)):Ge(e,s,i,a);xe(e)}(this,e)}error(e){if(!1===Ne(this))throw yt("error");nt(this,e)}[er](e){if(this._pendingPullIntos.length>0){this._pendingPullIntos[0].bytesFilled=0}v(this);const r=this._cancelAlgorithm(e);return ot(this),r}[rr](e){const r=this._controlledReadableByteStream;if(this._queueTotalSize>0){const r=this._queue.shift();let n;this._queueTotalSize-=r.byteLength,Xe(this);try{n=new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}catch(e){return Promise.reject(e)}return Promise.resolve(ge(n,!1,e))}const n=this._autoAllocateChunkSize;if(void 0!==n){let r;try{r=new ArrayBuffer(n)}catch(e){return Promise.reject(e)}const t={buffer:r,byteOffset:0,byteLength:n,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(t)}const t=ye(r,e);return xe(this),t}}function Ne(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function Qe(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function xe(e){!1!==function(e){const r=e._controlledReadableByteStream;if("readable"!==r._state)return!1;if(!0===e._closeRequested)return!1;if(!1===e._started)return!1;if(!0===qe(r)&&Pe(r)>0)return!0;if(!0===Te(r)&&Re(r)>0)return!0;if(it(e)>0)return!0;return!1}(e)&&(!0!==e._pulling?(e._pulling=!0,e._pullAlgorithm().then(()=>{e._pulling=!1,!0===e._pullAgain&&(e._pullAgain=!1,xe(e))},r=>{nt(e,r)}).catch(w)):e._pullAgain=!0)}function He(e){Ze(e),e._pendingPullIntos=[]}function Ue(e,r){let n=!1;"closed"===e._state&&(n=!0);const t=Ve(r);"default"===r.readerType?ve(e,t,n):function(e,r,n){const t=e._reader._readIntoRequests.shift();t._resolve(ge(r,n,t._forAuthorCode))}(e,t,n)}function Ve(e){const r=e.bytesFilled,n=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,r/n)}function Ge(e,r,n,t){e._queue.push({buffer:r,byteOffset:n,byteLength:t}),e._queueTotalSize+=t}function Je(e,r){const n=r.elementSize,t=r.bytesFilled-r.bytesFilled%n,i=Math.min(e._queueTotalSize,r.byteLength-r.bytesFilled),a=r.bytesFilled+i,f=a-a%n;let c=i,l=!1;f>t&&(c=f-r.bytesFilled,l=!0);const d=e._queue;for(;c>0;){const n=d[0],t=Math.min(c,n.byteLength),i=r.byteOffset+r.bytesFilled;s(r.buffer,i,n.buffer,n.byteOffset,t),n.byteLength===t?d.shift():(n.byteOffset+=t,n.byteLength-=t),e._queueTotalSize-=t,Ke(e,t,r),c-=t}return l}function Ke(e,r,n){Ze(e),n.bytesFilled+=r}function Xe(e){0===e._queueTotalSize&&!0===e._closeRequested?(ot(e),we(e._controlledReadableByteStream)):xe(e)}function Ze(e){void 0!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function et(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;const r=e._pendingPullIntos[0];!0===Je(e,r)&&(rt(e),Ue(e._controlledReadableByteStream,r))}}function tt(e,r){const n=e._pendingPullIntos[0];if("closed"===e._controlledReadableByteStream._state){if(0!==r)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");!function(e,r){r.buffer=_(r.buffer);const n=e._controlledReadableByteStream;if(!0===Te(n))for(;Re(n)>0;)Ue(n,rt(e))}(e,n)}else!function(e,r,n){if(n.bytesFilled+r>n.byteLength)throw new RangeError("bytesWritten out of range");if(Ke(e,r,n),n.bytesFilled0){const r=n.byteOffset+n.bytesFilled,i=n.buffer.slice(r-t,r);Ge(e,i,0,i.byteLength)}n.buffer=_(n.buffer),n.bytesFilled-=t,Ue(e._controlledReadableByteStream,n),et(e)}(e,r,n);xe(e)}function rt(e){const r=e._pendingPullIntos.shift();return Ze(e),r}function ot(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function nt(e,r){const n=e._controlledReadableByteStream;"readable"===n._state&&(He(e),v(e),ot(e),Se(n,r))}function it(e){const r=e._controlledReadableByteStream._state;return"errored"===r?null:"closed"===r?0:e._strategyHWM-e._queueTotalSize}function at(e){if("object"!=typeof e||null===e)return!1;const r=Object.getOwnPropertyDescriptor(AbortSignal.prototype,"aborted").get;try{return r.call(e),!0}catch(e){return!1}}function st(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function lt(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function ct(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}function ut(e){e._closedPromise=new Promise((r,n)=>{e._closedPromise_resolve=r,e._closedPromise_reject=n})}function dt(e,r){ut(e),ft(e,r)}function ft(e,r){e._closedPromise.catch(()=>{}),e._closedPromise_reject(r),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function _t(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function ht(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function bt(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function mt(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function yt(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}class ByteLengthQueuingStrategy{constructor({highWaterMark:e}){i(this,"highWaterMark",e)}size(e){return e.byteLength}}class CountQueuingStrategy{constructor({highWaterMark:e}){i(this,"highWaterMark",e)}size(){return 1}}class TransformStream{constructor(e={},r={},n={}){const t=r.size;let i=r.highWaterMark;const a=n.size;let s=n.highWaterMark;if(void 0!==e.writableType)throw new RangeError("Invalid writable type specified");const c=b(t);if(void 0===i&&(i=1),i=h(i),void 0!==e.readableType)throw new RangeError("Invalid readable type specified");const l=b(a);let o;void 0===s&&(s=0),s=h(s),function(e,r,n,t,i,s){function a(){return r}e._writable=function(e,r,n,t,i=1,a=(()=>1)){const s=Object.create(WritableStream.prototype);return q(s),$(s,Object.create(WritableStreamDefaultController.prototype),e,r,n,t,i,a),s}(a,function(r){return function(e,r){const n=e._transformStreamController;if(!0===e._backpressure){const t=e._backpressureChangePromise;return t.then(()=>{const t=e._writable,i=t._state;if("erroring"===i)throw t._storedError;return Tt(n,r)})}return Tt(n,r)}(e,r)},function(){return function(e){const r=e._readable,n=e._transformStreamController,t=n._flushAlgorithm();return Rt(n),t.then(()=>{if("errored"===r._state)throw r._storedError;const e=r._readableStreamController;!0===Ye(e)&&Le(e)}).catch(n=>{throw wt(e,n),r._storedError})}(e)},function(r){return function(e,r){return wt(e,r),Promise.resolve()}(e,r)},n,t),e._readable=de(a,function(){return function(e){return St(e,!1),e._backpressureChangePromise}(e)},function(r){return gt(e,r),Promise.resolve()},i,s),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,St(e,!0),e._transformStreamController=void 0}(this,new Promise(e=>{o=e}),i,c,s,l),function(e,r){const n=Object.create(TransformStreamDefaultController.prototype);let t=e=>{try{return Pt(n,e),Promise.resolve()}catch(e){return Promise.reject(e)}};const i=r.transform;if(void 0!==i){if("function"!=typeof i)throw new TypeError("transform is not a method");t=(e=>f(i,r,[e,n]))}const a=u(r,"flush",0,[n]);!function(e,r,n,t){r._controlledTransformStream=e,e._transformStreamController=r,r._transformAlgorithm=n,r._flushAlgorithm=t}(e,n,t,a)}(this,e);const p=d(e,"start",[this._transformStreamController]);o(p)}get readable(){if(!1===pt(this))throw Et("readable");return this._readable}get writable(){if(!1===pt(this))throw Et("writable");return this._writable}}function pt(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function wt(e,r){De(e._readable._readableStreamController,r),gt(e,r)}function gt(e,r){Rt(e._transformStreamController),H(e._writable._writableStreamController,r),!0===e._backpressure&&St(e,!1)}function St(e,r){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=new Promise(r=>{e._backpressureChangePromise_resolve=r}),e._backpressure=r}class TransformStreamDefaultController{constructor(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}get desiredSize(){if(!1===vt(this))throw qt("desiredSize");return Me(this._controlledTransformStream._readable._readableStreamController)}enqueue(e){if(!1===vt(this))throw qt("enqueue");Pt(this,e)}error(e){if(!1===vt(this))throw qt("error");!function(e,r){wt(e._controlledTransformStream,r)}(this,e)}terminate(){if(!1===vt(this))throw qt("terminate");!function(e){const r=e._controlledTransformStream,n=r._readable._readableStreamController;!0===Ye(n)&&Le(n);const t=new TypeError("TransformStream terminated");gt(r,t)}(this)}}function vt(e){return!!n(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function Rt(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function Pt(e,r){const n=e._controlledTransformStream,t=n._readable._readableStreamController;if(!1===Ye(t))throw new TypeError("Readable side is not in a state that permits enqueue");try{Ie(t,r)}catch(e){throw gt(n,e),n._readable._storedError}(function(e){return!0!==ke(e)})(t)!==n._backpressure&&St(n,!0)}function Tt(e,r){return e._transformAlgorithm(r).catch(r=>{throw wt(e._controlledTransformStream,r),r})}function qt(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}function Et(e){return new TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`)}const nr={ReadableStream:ReadableStream,WritableStream:WritableStream,ByteLengthQueuingStrategy:ByteLengthQueuingStrategy,CountQueuingStrategy:CountQueuingStrategy,TransformStream:TransformStream};void 0!==R&&Object.assign(R,nr),t.ReadableStream=ReadableStream,t.WritableStream=WritableStream,t.ByteLengthQueuingStrategy=ByteLengthQueuingStrategy,t.CountQueuingStrategy=CountQueuingStrategy,t.TransformStream=TransformStream,Object.defineProperty(t,"__esModule",{value:!0})})}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],2:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=n.AES_asm=function(){"use strict";var e=false;var r,n;function ginit(){r=[],n=[];var t=1,i,a;for(i=0;i<255;i++){r[i]=t;a=t&128,t<<=1,t&=255;if(a===128)t^=27;t^=r[i];n[r[i]]=i}r[255]=r[0];n[0]=0;e=true}function gmul(e,t){var i=r[(n[e]+n[t])%255];if(e===0||t===0)i=0;return i}function ginv(e){var t=r[255-n[e]];if(e===0)t=0;return t}var t=false;var i;var a;var s;var f;function aes_init(){if(!e)ginit();function _s(e){var r,n,t;n=t=ginv(e);for(r=0;r<4;r++){n=(n<<1|n>>>7)&255;t^=n}t^=99;return t}i=[],a=[],s=[[],[],[],[]],f=[[],[],[],[]];for(var r=0;r<256;r++){var n=_s(r);i[r]=n;a[n]=r;s[0][r]=gmul(2,n)<<24|n<<16|n<<8|gmul(3,n);f[0][n]=gmul(14,r)<<24|gmul(9,r)<<16|gmul(13,r)<<8|gmul(11,r);for(var c=1;c<4;c++){s[c][r]=s[c-1][r]>>>8|s[c-1][r]<<24;f[c][n]=f[c-1][n]>>>8|f[c-1][n]<<24}}t=true}var c=function wrapper(e,r){if(!t)aes_init();var n=new Uint32Array(r);n.set(i,2048>>2);n.set(a,3072>>2);for(var c=0;c<4;c++){n.set(s[c],4096+1024*c>>2);n.set(f[c],8192+1024*c>>2)}function set_key(e,r,t,a,s,c,l,o,u){var h=n.subarray(0,60),p=n.subarray(256,256+60);h.set([r,t,a,s,c,l,o,u]);for(var v=e,b=1;v<4*e+28;v++){var y=h[v-1];if(v%e===0||e===8&&v%e===4){y=i[y>>>24]<<24^i[y>>>16&255]<<16^i[y>>>8&255]<<8^i[y&255]}if(v%e===0){y=y<<8^y>>>24^b<<24;b=b<<1^(b&128?27:0)}h[v]=h[v-e]^y}for(var g=0;g=v-4){p[g+w]=y}else{p[g+w]=f[0][i[y>>>24]]^f[1][i[y>>>16&255]]^f[2][i[y>>>8&255]]^f[3][i[y&255]]}}}d.set_rounds(e+5)}var l={Uint8Array:Uint8Array,Uint32Array:Uint32Array};var d=function(e,r,n){"use asm";var t=0,i=0,a=0,s=0,f=0,c=0,l=0,d=0,o=0,u=0,h=0,p=0,v=0,b=0,y=0,g=0,w=0,m=0,A=0,E=0,S=0;var k=new e.Uint32Array(n),R=new e.Uint8Array(n);function _core(e,r,n,f,c,l,d,o){e=e|0;r=r|0;n=n|0;f=f|0;c=c|0;l=l|0;d=d|0;o=o|0;var u=0,h=0,p=0,v=0,b=0,y=0,g=0,w=0;u=n|0x400,h=n|0x800,p=n|0xc00;c=c^k[(e|0)>>2],l=l^k[(e|4)>>2],d=d^k[(e|8)>>2],o=o^k[(e|12)>>2];for(w=16;(w|0)<=f<<4;w=w+16|0){v=k[(n|c>>22&1020)>>2]^k[(u|l>>14&1020)>>2]^k[(h|d>>6&1020)>>2]^k[(p|o<<2&1020)>>2]^k[(e|w|0)>>2],b=k[(n|l>>22&1020)>>2]^k[(u|d>>14&1020)>>2]^k[(h|o>>6&1020)>>2]^k[(p|c<<2&1020)>>2]^k[(e|w|4)>>2],y=k[(n|d>>22&1020)>>2]^k[(u|o>>14&1020)>>2]^k[(h|c>>6&1020)>>2]^k[(p|l<<2&1020)>>2]^k[(e|w|8)>>2],g=k[(n|o>>22&1020)>>2]^k[(u|c>>14&1020)>>2]^k[(h|l>>6&1020)>>2]^k[(p|d<<2&1020)>>2]^k[(e|w|12)>>2];c=v,l=b,d=y,o=g}t=k[(r|c>>22&1020)>>2]<<24^k[(r|l>>14&1020)>>2]<<16^k[(r|d>>6&1020)>>2]<<8^k[(r|o<<2&1020)>>2]^k[(e|w|0)>>2],i=k[(r|l>>22&1020)>>2]<<24^k[(r|d>>14&1020)>>2]<<16^k[(r|o>>6&1020)>>2]<<8^k[(r|c<<2&1020)>>2]^k[(e|w|4)>>2],a=k[(r|d>>22&1020)>>2]<<24^k[(r|o>>14&1020)>>2]<<16^k[(r|c>>6&1020)>>2]<<8^k[(r|l<<2&1020)>>2]^k[(e|w|8)>>2],s=k[(r|o>>22&1020)>>2]<<24^k[(r|c>>14&1020)>>2]<<16^k[(r|l>>6&1020)>>2]<<8^k[(r|d<<2&1020)>>2]^k[(e|w|12)>>2]}function _ecb_enc(e,r,n,t){e=e|0;r=r|0;n=n|0;t=t|0;_core(0x0000,0x0800,0x1000,S,e,r,n,t)}function _ecb_dec(e,r,n,t){e=e|0;r=r|0;n=n|0;t=t|0;var a=0;_core(0x0400,0x0c00,0x2000,S,e,t,n,r);a=i,i=s,s=a}function _cbc_enc(e,r,n,o){e=e|0;r=r|0;n=n|0;o=o|0;_core(0x0000,0x0800,0x1000,S,f^e,c^r,l^n,d^o);f=t,c=i,l=a,d=s}function _cbc_dec(e,r,n,o){e=e|0;r=r|0;n=n|0;o=o|0;var u=0;_core(0x0400,0x0c00,0x2000,S,e,o,n,r);u=i,i=s,s=u;t=t^f,i=i^c,a=a^l,s=s^d;f=e,c=r,l=n,d=o}function _cfb_enc(e,r,n,o){e=e|0;r=r|0;n=n|0;o=o|0;_core(0x0000,0x0800,0x1000,S,f,c,l,d);f=t=t^e,c=i=i^r,l=a=a^n,d=s=s^o}function _cfb_dec(e,r,n,o){e=e|0;r=r|0;n=n|0;o=o|0;_core(0x0000,0x0800,0x1000,S,f,c,l,d);t=t^e,i=i^r,a=a^n,s=s^o;f=e,c=r,l=n,d=o}function _ofb(e,r,n,o){e=e|0;r=r|0;n=n|0;o=o|0;_core(0x0000,0x0800,0x1000,S,f,c,l,d);f=t,c=i,l=a,d=s;t=t^e,i=i^r,a=a^n,s=s^o}function _ctr(e,r,n,f){e=e|0;r=r|0;n=n|0;f=f|0;_core(0x0000,0x0800,0x1000,S,o,u,h,p);p=~g&p|g&p+1;h=~y&h|y&h+((p|0)==0);u=~b&u|b&u+((h|0)==0);o=~v&o|v&o+((u|0)==0);t=t^e;i=i^r;a=a^n;s=s^f}function _gcm_mac(e,r,n,t){e=e|0;r=r|0;n=n|0;t=t|0;var i=0,a=0,s=0,o=0,u=0,h=0,p=0,v=0,b=0,y=0;e=e^f,r=r^c,n=n^l,t=t^d;i=w|0,a=m|0,s=A|0,o=E|0;for(;(b|0)<128;b=b+1|0){if(i>>>31){u=u^e,h=h^r,p=p^n,v=v^t}i=i<<1|a>>>31,a=a<<1|s>>>31,s=s<<1|o>>>31,o=o<<1;y=t&1;t=t>>>1|n<<31,n=n>>>1|r<<31,r=r>>>1|e<<31,e=e>>>1;if(y)e=e^0xe1000000}f=u,c=h,l=p,d=v}function set_rounds(e){e=e|0;S=e}function set_state(e,r,n,f){e=e|0;r=r|0;n=n|0;f=f|0;t=e,i=r,a=n,s=f}function set_iv(e,r,n,t){e=e|0;r=r|0;n=n|0;t=t|0;f=e,c=r,l=n,d=t}function set_nonce(e,r,n,t){e=e|0;r=r|0;n=n|0;t=t|0;o=e,u=r,h=n,p=t}function set_mask(e,r,n,t){e=e|0;r=r|0;n=n|0;t=t|0;v=e,b=r,y=n,g=t}function set_counter(e,r,n,t){e=e|0;r=r|0;n=n|0;t=t|0;p=~g&p|g&t,h=~y&h|y&n,u=~b&u|b&r,o=~v&o|v&e}function get_state(e){e=e|0;if(e&15)return-1;R[e|0]=t>>>24,R[e|1]=t>>>16&255,R[e|2]=t>>>8&255,R[e|3]=t&255,R[e|4]=i>>>24,R[e|5]=i>>>16&255,R[e|6]=i>>>8&255,R[e|7]=i&255,R[e|8]=a>>>24,R[e|9]=a>>>16&255,R[e|10]=a>>>8&255,R[e|11]=a&255,R[e|12]=s>>>24,R[e|13]=s>>>16&255,R[e|14]=s>>>8&255,R[e|15]=s&255;return 16}function get_iv(e){e=e|0;if(e&15)return-1;R[e|0]=f>>>24,R[e|1]=f>>>16&255,R[e|2]=f>>>8&255,R[e|3]=f&255,R[e|4]=c>>>24,R[e|5]=c>>>16&255,R[e|6]=c>>>8&255,R[e|7]=c&255,R[e|8]=l>>>24,R[e|9]=l>>>16&255,R[e|10]=l>>>8&255,R[e|11]=l&255,R[e|12]=d>>>24,R[e|13]=d>>>16&255,R[e|14]=d>>>8&255,R[e|15]=d&255;return 16}function gcm_init(){_ecb_enc(0,0,0,0);w=t,m=i,A=a,E=s}function cipher(e,r,n){e=e|0;r=r|0;n=n|0;var f=0;if(r&15)return-1;while((n|0)>=16){M[e&7](R[r|0]<<24|R[r|1]<<16|R[r|2]<<8|R[r|3],R[r|4]<<24|R[r|5]<<16|R[r|6]<<8|R[r|7],R[r|8]<<24|R[r|9]<<16|R[r|10]<<8|R[r|11],R[r|12]<<24|R[r|13]<<16|R[r|14]<<8|R[r|15]);R[r|0]=t>>>24,R[r|1]=t>>>16&255,R[r|2]=t>>>8&255,R[r|3]=t&255,R[r|4]=i>>>24,R[r|5]=i>>>16&255,R[r|6]=i>>>8&255,R[r|7]=i&255,R[r|8]=a>>>24,R[r|9]=a>>>16&255,R[r|10]=a>>>8&255,R[r|11]=a&255,R[r|12]=s>>>24,R[r|13]=s>>>16&255,R[r|14]=s>>>8&255,R[r|15]=s&255;f=f+16|0,r=r+16|0,n=n-16|0}return f|0}function mac(e,r,n){e=e|0;r=r|0;n=n|0;var t=0;if(r&15)return-1;while((n|0)>=16){C[e&1](R[r|0]<<24|R[r|1]<<16|R[r|2]<<8|R[r|3],R[r|4]<<24|R[r|5]<<16|R[r|6]<<8|R[r|7],R[r|8]<<24|R[r|9]<<16|R[r|10]<<8|R[r|11],R[r|12]<<24|R[r|13]<<16|R[r|14]<<8|R[r|15]);t=t+16|0,r=r+16|0,n=n-16|0}return t|0}var M=[_ecb_enc,_ecb_dec,_cbc_enc,_cbc_dec,_cfb_enc,_cfb_dec,_ofb,_ctr];var C=[_cbc_enc,_gcm_mac];return{set_rounds:set_rounds,set_state:set_state,set_iv:set_iv,set_nonce:set_nonce,set_mask:set_mask,set_counter:set_counter,get_state:get_state,get_iv:get_iv,gcm_init:gcm_init,cipher:cipher,mac:mac}}(l,e,r);d.set_key=set_key;return d};c.ENC={ECB:0,CBC:2,CFB:4,OFB:6,CTR:7},c.DEC={ECB:1,CBC:3,CFB:5,OFB:6,CTR:7},c.MAC={CBC:0,GCM:1};c.HEAP_DATA=16384;return c}()},{}],3:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.AES=undefined;var t=e("./aes.asm");var i=e("../other/utils");var a=e("../other/errors");var s=[];var f=[];var c=function(){function AES(e,r,n,t){if(n===void 0){n=true}this.pos=0;this.len=0;this.mode=t;this.pos=0;this.len=0;this.key=e;this.iv=r;this.padding=n;this.acquire_asm()}AES.prototype.acquire_asm=function(){if(this.heap===undefined&&this.asm===undefined){this.heap=s.pop()||(0,i._heap_init)().subarray(t.AES_asm.HEAP_DATA);this.asm=f.pop()||(0,t.AES_asm)(null,this.heap.buffer);this.reset(this.key,this.iv)}};AES.prototype.release_asm=function(){s.push(this.heap);f.push(this.asm);this.heap=undefined;this.asm=undefined};AES.prototype.reset=function(e,r){var n=e.length;if(n!==16&&n!==24&&n!==32)throw new a.IllegalArgumentError("illegal key size");var t=new DataView(e.buffer,e.byteOffset,e.byteLength);this.asm.set_key(n>>2,t.getUint32(0),t.getUint32(4),t.getUint32(8),t.getUint32(12),n>16?t.getUint32(16):0,n>16?t.getUint32(20):0,n>24?t.getUint32(24):0,n>24?t.getUint32(28):0);if(r!==undefined){if(r.length!==16)throw new a.IllegalArgumentError("illegal iv size");var i=new DataView(r.buffer,r.byteOffset,r.byteLength);this.asm.set_iv(i.getUint32(0),i.getUint32(4),i.getUint32(8),i.getUint32(12))}else{this.asm.set_iv(0,0,0,0)}};AES.prototype.AES_Encrypt_process=function(e){if(!(0,i.is_bytes)(e))throw new TypeError("data isn't of expected type");this.acquire_asm();var r=this.asm;var n=this.heap;var a=t.AES_asm.ENC[this.mode];var s=t.AES_asm.HEAP_DATA;var f=this.pos;var c=this.len;var l=0;var d=e.length||0;var o=0;var u=c+d&-16;var h=0;var p=new Uint8Array(u);while(d>0){h=(0,i._heap_write)(n,f+c,e,l,d);c+=h;l+=h;d-=h;h=r.cipher(a,s+f,c);if(h)p.set(n.subarray(f,f+h),o);o+=h;if(h0){p=(0,i._heap_write)(n,f+c,e,l,d);c+=p;l+=p;d-=p;p=r.cipher(a,s+f,c-(!d?h:0));if(p)v.set(n.subarray(f,f+p),o);o+=p;if(p0){if(f%16){if(this.hasOwnProperty("padding")){throw new a.IllegalArgumentError("data length must be a multiple of the block size")}else{f+=16-f%16}}e.cipher(n,i+s,f);if(this.hasOwnProperty("padding")&&this.padding){var l=r[s+c-1];if(l<1||l>16||l>c)throw new a.SecurityError("bad padding");var d=0;for(var o=l;o>1;o--)d|=l^r[s+c-o];if(d)throw new a.SecurityError("bad padding");c-=l}}var u=new Uint8Array(c);if(c>0){u.set(r.subarray(s,s+c))}this.pos=0;this.len=0;this.release_asm();return u};return AES}();n.AES=c},{"../other/errors":14,"../other/utils":15,"./aes.asm":2}],4:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.AES_CBC=undefined;var t=e("./aes");var i=e("../other/utils");var a=undefined&&undefined.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(r.hasOwnProperty(n))e[n]=r[n]};return function(r,n){e(r,n);function __(){this.constructor=r}r.prototype=n===null?Object.create(n):(__.prototype=n.prototype,new __)}}();var s=function(e){a(AES_CBC,e);function AES_CBC(r,n,t){if(t===void 0){t=true}return e.call(this,r,n,t,"CBC")||this}AES_CBC.encrypt=function(e,r,n,t){if(n===void 0){n=true}return new AES_CBC(r,t,n).encrypt(e)};AES_CBC.decrypt=function(e,r,n,t){if(n===void 0){n=true}return new AES_CBC(r,t,n).decrypt(e)};AES_CBC.prototype.encrypt=function(e){var r=this.AES_Encrypt_process(e);var n=this.AES_Encrypt_finish();return(0,i.joinBytes)(r,n)};AES_CBC.prototype.decrypt=function(e){var r=this.AES_Decrypt_process(e);var n=this.AES_Decrypt_finish();return(0,i.joinBytes)(r,n)};return AES_CBC}(t.AES);n.AES_CBC=s},{"../other/utils":15,"./aes":3}],5:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.AES_CFB=undefined;var t=e("./aes");var i=e("../other/utils");var a=undefined&&undefined.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(r.hasOwnProperty(n))e[n]=r[n]};return function(r,n){e(r,n);function __(){this.constructor=r}r.prototype=n===null?Object.create(n):(__.prototype=n.prototype,new __)}}();var s=function(e){a(AES_CFB,e);function AES_CFB(r,n){var t=e.call(this,r,n,true,"CFB")||this;delete t.padding;return t}AES_CFB.encrypt=function(e,r,n){return new AES_CFB(r,n).encrypt(e)};AES_CFB.decrypt=function(e,r,n){return new AES_CFB(r,n).decrypt(e)};AES_CFB.prototype.encrypt=function(e){var r=this.AES_Encrypt_process(e);var n=this.AES_Encrypt_finish();return(0,i.joinBytes)(r,n)};AES_CFB.prototype.decrypt=function(e){var r=this.AES_Decrypt_process(e);var n=this.AES_Decrypt_finish();return(0,i.joinBytes)(r,n)};return AES_CFB}(t.AES);n.AES_CFB=s},{"../other/utils":15,"./aes":3}],6:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.AES_CTR=undefined;var t=e("./aes");var i=e("../other/errors");var a=e("../other/utils");var s=undefined&&undefined.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(r.hasOwnProperty(n))e[n]=r[n]};return function(r,n){e(r,n);function __(){this.constructor=r}r.prototype=n===null?Object.create(n):(__.prototype=n.prototype,new __)}}();var f=function(e){s(AES_CTR,e);function AES_CTR(r,n){var t=e.call(this,r,undefined,false,"CTR")||this;delete t.padding;t.AES_CTR_set_options(n);return t}AES_CTR.encrypt=function(e,r,n){return new AES_CTR(r,n).encrypt(e)};AES_CTR.decrypt=function(e,r,n){return new AES_CTR(r,n).encrypt(e)};AES_CTR.prototype.encrypt=function(e){var r=this.AES_Encrypt_process(e);var n=this.AES_Encrypt_finish();return(0,a.joinBytes)(r,n)};AES_CTR.prototype.decrypt=function(e){var r=this.AES_Encrypt_process(e);var n=this.AES_Encrypt_finish();return(0,a.joinBytes)(r,n)};AES_CTR.prototype.AES_CTR_set_options=function(e,r,n){if(n!==undefined){if(n<8||n>48)throw new i.IllegalArgumentError("illegal counter size");var t=Math.pow(2,n)-1;this.asm.set_mask(0,0,t/4294967296|0,t|0)}else{n=48;this.asm.set_mask(0,0,65535,4294967295)}if(e!==undefined){var a=e.length;if(!a||a>16)throw new i.IllegalArgumentError("illegal nonce size");var s=new DataView(new ArrayBuffer(16));new Uint8Array(s.buffer).set(e);this.asm.set_nonce(s.getUint32(0),s.getUint32(4),s.getUint32(8),s.getUint32(12))}else{throw new Error("nonce is required")}if(r!==undefined){if(r<0||r>=Math.pow(2,n))throw new i.IllegalArgumentError("illegal counter value");this.asm.set_counter(0,0,r/4294967296|0,r|0)}};return AES_CTR}(t.AES);n.AES_CTR=f},{"../other/errors":14,"../other/utils":15,"./aes":3}],7:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.AES_ECB=undefined;var t=e("./aes");var i=e("../other/utils");var a=undefined&&undefined.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(r.hasOwnProperty(n))e[n]=r[n]};return function(r,n){e(r,n);function __(){this.constructor=r}r.prototype=n===null?Object.create(n):(__.prototype=n.prototype,new __)}}();var s=function(e){a(AES_ECB,e);function AES_ECB(r,n){if(n===void 0){n=false}return e.call(this,r,undefined,n,"ECB")||this}AES_ECB.encrypt=function(e,r,n){if(n===void 0){n=false}return new AES_ECB(r,n).encrypt(e)};AES_ECB.decrypt=function(e,r,n){if(n===void 0){n=false}return new AES_ECB(r,n).decrypt(e)};AES_ECB.prototype.encrypt=function(e){var r=this.AES_Encrypt_process(e);var n=this.AES_Encrypt_finish();return(0,i.joinBytes)(r,n)};AES_ECB.prototype.decrypt=function(e){var r=this.AES_Decrypt_process(e);var n=this.AES_Decrypt_finish();return(0,i.joinBytes)(r,n)};return AES_ECB}(t.AES);n.AES_ECB=s},{"../other/utils":15,"./aes":3}],8:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.AES_GCM=undefined;var t=e("../other/errors");var i=e("../other/utils");var a=e("./aes");var s=e("./aes.asm");var f=undefined&&undefined.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(r.hasOwnProperty(n))e[n]=r[n]};return function(r,n){e(r,n);function __(){this.constructor=r}r.prototype=n===null?Object.create(n):(__.prototype=n.prototype,new __)}}();var c=68719476704;var l=function(e){f(AES_GCM,e);function AES_GCM(r,n,i,a){if(a===void 0){a=16}var f=e.call(this,r,undefined,false,"CTR")||this;f.tagSize=a;f.gamma0=0;f.counter=1;f.asm.gcm_init();if(f.tagSize<4||f.tagSize>16)throw new t.IllegalArgumentError("illegal tagSize value");var l=n.length||0;var d=new Uint8Array(16);if(l!==12){f._gcm_mac_process(n);f.heap[0]=0;f.heap[1]=0;f.heap[2]=0;f.heap[3]=0;f.heap[4]=0;f.heap[5]=0;f.heap[6]=0;f.heap[7]=0;f.heap[8]=0;f.heap[9]=0;f.heap[10]=0;f.heap[11]=l>>>29;f.heap[12]=l>>>21&255;f.heap[13]=l>>>13&255;f.heap[14]=l>>>5&255;f.heap[15]=l<<3&255;f.asm.mac(s.AES_asm.MAC.GCM,s.AES_asm.HEAP_DATA,16);f.asm.get_iv(s.AES_asm.HEAP_DATA);f.asm.set_iv(0,0,0,0);d.set(f.heap.subarray(0,16))}else{d.set(n);d[15]=1}var o=new DataView(d.buffer);f.gamma0=o.getUint32(12);f.asm.set_nonce(o.getUint32(0),o.getUint32(4),o.getUint32(8),0);f.asm.set_mask(0,0,0,4294967295);if(i!==undefined){if(i.length>c)throw new t.IllegalArgumentError("illegal adata length");if(i.length){f.adata=i;f._gcm_mac_process(i)}else{f.adata=undefined}}else{f.adata=undefined}if(f.counter<1||f.counter>4294967295)throw new RangeError("counter must be a positive 32-bit integer");f.asm.set_counter(0,0,0,f.gamma0+f.counter|0);return f}AES_GCM.encrypt=function(e,r,n,t,i){return new AES_GCM(r,n,t,i).encrypt(e)};AES_GCM.decrypt=function(e,r,n,t,i){return new AES_GCM(r,n,t,i).decrypt(e)};AES_GCM.prototype.encrypt=function(e){return this.AES_GCM_encrypt(e)};AES_GCM.prototype.decrypt=function(e){return this.AES_GCM_decrypt(e)};AES_GCM.prototype.AES_GCM_Encrypt_process=function(e){var r=0;var n=e.length||0;var t=this.asm;var a=this.heap;var f=this.counter;var l=this.pos;var d=this.len;var o=0;var u=d+n&-16;var h=0;if((f-1<<4)+d+n>c)throw new RangeError("counter overflow");var p=new Uint8Array(u);while(n>0){h=(0,i._heap_write)(a,l+d,e,r,n);d+=h;r+=h;n-=h;h=t.cipher(s.AES_asm.ENC.CTR,s.AES_asm.HEAP_DATA+l,d);h=t.mac(s.AES_asm.MAC.GCM,s.AES_asm.HEAP_DATA+l,h);if(h)p.set(a.subarray(l,l+h),o);f+=h>>>4;o+=h;if(h>>29;r[4]=d>>>21;r[5]=d>>>13&255;r[6]=d>>>5&255;r[7]=d<<3&255;r[8]=r[9]=r[10]=0;r[11]=o>>>29;r[12]=o>>>21&255;r[13]=o>>>13&255;r[14]=o>>>5&255;r[15]=o<<3&255;e.mac(s.AES_asm.MAC.GCM,s.AES_asm.HEAP_DATA,16);e.get_iv(s.AES_asm.HEAP_DATA);e.set_counter(0,0,0,this.gamma0);e.cipher(s.AES_asm.ENC.CTR,s.AES_asm.HEAP_DATA,16);c.set(r.subarray(0,t),f);this.counter=1;this.pos=0;this.len=0;return c};AES_GCM.prototype.AES_GCM_Decrypt_process=function(e){var r=0;var n=e.length||0;var t=this.asm;var a=this.heap;var f=this.counter;var l=this.tagSize;var d=this.pos;var o=this.len;var u=0;var h=o+n>l?o+n-l&-16:0;var p=o+n-h;var v=0;if((f-1<<4)+o+n>c)throw new RangeError("counter overflow");var b=new Uint8Array(h);while(n>p){v=(0,i._heap_write)(a,d+o,e,r,n-p);o+=v;r+=v;n-=v;v=t.mac(s.AES_asm.MAC.GCM,s.AES_asm.HEAP_DATA+d,v);v=t.cipher(s.AES_asm.DEC.CTR,s.AES_asm.HEAP_DATA+d,v);if(v)b.set(a.subarray(d,d+v),u);f+=v>>>4;u+=v;d=0;o=0}if(n>0){o+=(0,i._heap_write)(a,0,e,r,n)}this.counter=f;this.pos=d;this.len=o;return b};AES_GCM.prototype.AES_GCM_Decrypt_finish=function(){var e=this.asm;var r=this.heap;var n=this.tagSize;var i=this.adata;var a=this.counter;var f=this.pos;var c=this.len;var l=c-n;if(c>>29;r[4]=h>>>21;r[5]=h>>>13&255;r[6]=h>>>5&255;r[7]=h<<3&255;r[8]=r[9]=r[10]=0;r[11]=p>>>29;r[12]=p>>>21&255;r[13]=p>>>13&255;r[14]=p>>>5&255;r[15]=p<<3&255;e.mac(s.AES_asm.MAC.GCM,s.AES_asm.HEAP_DATA,16);e.get_iv(s.AES_asm.HEAP_DATA);e.set_counter(0,0,0,this.gamma0);e.cipher(s.AES_asm.ENC.CTR,s.AES_asm.HEAP_DATA,16);var v=0;for(var b=0;b0){f=(0,i._heap_write)(r,0,e,t,a);t+=f;a-=f;while(f&15)r[f++]=0;n.mac(s.AES_asm.MAC.GCM,s.AES_asm.HEAP_DATA,f)}};return AES_GCM}(a.AES);n.AES_GCM=l},{"../other/errors":14,"../other/utils":15,"./aes":3,"./aes.asm":2}],9:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.Hash=undefined;var t=e("../other/utils");var i=e("../other/errors");var a=function(){function Hash(){this.pos=0;this.len=0;this.acquire_asm()}Hash.prototype.acquire_asm=function(){if(this.heap===undefined&&this.asm===undefined){this.heap=this.constructor.heap_pool.pop()||(0,t._heap_init)();this.asm=this.constructor.asm_pool.pop()||this.constructor.asm_function({Uint8Array:Uint8Array},null,this.heap.buffer);this.reset()}};Hash.prototype.release_asm=function(){this.constructor.heap_pool.push(this.heap);this.constructor.asm_pool.push(this.asm);this.heap=undefined;this.asm=undefined};Hash.prototype.reset=function(){this.acquire_asm();this.result=null;this.pos=0;this.len=0;this.asm.reset();return this};Hash.prototype.process=function(e){if(this.result!==null)throw new i.IllegalStateError("state must be reset before processing new data");this.acquire_asm();var r=this.asm;var n=this.heap;var a=this.pos;var s=this.len;var f=0;var c=e.length;var l=0;while(c>0){l=(0,t._heap_write)(n,a+s,e,f,c);s+=l;f+=l;c-=l;l=r.process(a,s);a+=l;s-=l;if(!s)a=0}this.pos=a;this.len=s;return this};Hash.prototype.finish=function(){if(this.result!==null)throw new i.IllegalStateError("state must be reset before processing new data");this.acquire_asm();this.asm.finish(this.pos,this.len,0);this.result=new Uint8Array(this.HASH_SIZE);this.result.set(this.heap.subarray(0,this.HASH_SIZE));this.pos=0;this.len=0;this.release_asm();return this};return Hash}();n.Hash=a},{"../other/errors":14,"../other/utils":15}],10:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=n.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R+(E^S^k)-0x359d3e2a|0;R=k;k=S;S=E<<30|E>>>2;E=A;A=C;M=je^Re^we^ye;Ue=M<<1|M>>>31;C=Ue+(A<<5|A>>>27)+R+(E^S^k)-0x359d3e2a|0;R=k;k=S;S=E<<30|E>>>2;E=A;A=C;M=Be^Me^me^ge;xe=M<<1|M>>>31;C=xe+(A<<5|A>>>27)+R+(E^S^k)-0x359d3e2a|0;R=k;k=S;S=E<<30|E>>>2;E=A;A=C;M=qe^Ce^Ae^we;Ie=M<<1|M>>>31;C=Ie+(A<<5|A>>>27)+R+(E^S^k)-0x359d3e2a|0;R=k;k=S;S=E<<30|E>>>2;E=A;A=C;M=Ue^De^Ee^me;Ke=M<<1|M>>>31;C=Ke+(A<<5|A>>>27)+R+(E^S^k)-0x359d3e2a|0;R=k;k=S;S=E<<30|E>>>2;E=A;A=C;M=xe^_e^Se^Ae;Oe=M<<1|M>>>31;C=Oe+(A<<5|A>>>27)+R+(E^S^k)-0x359d3e2a|0;R=k;k=S;S=E<<30|E>>>2;E=A;A=C;t=t+A|0;i=i+E|0;a=a+S|0;s=s+k|0;f=f+R|0}function _core_heap(e){e=e|0;_core(m[e|0]<<24|m[e|1]<<16|m[e|2]<<8|m[e|3],m[e|4]<<24|m[e|5]<<16|m[e|6]<<8|m[e|7],m[e|8]<<24|m[e|9]<<16|m[e|10]<<8|m[e|11],m[e|12]<<24|m[e|13]<<16|m[e|14]<<8|m[e|15],m[e|16]<<24|m[e|17]<<16|m[e|18]<<8|m[e|19],m[e|20]<<24|m[e|21]<<16|m[e|22]<<8|m[e|23],m[e|24]<<24|m[e|25]<<16|m[e|26]<<8|m[e|27],m[e|28]<<24|m[e|29]<<16|m[e|30]<<8|m[e|31],m[e|32]<<24|m[e|33]<<16|m[e|34]<<8|m[e|35],m[e|36]<<24|m[e|37]<<16|m[e|38]<<8|m[e|39],m[e|40]<<24|m[e|41]<<16|m[e|42]<<8|m[e|43],m[e|44]<<24|m[e|45]<<16|m[e|46]<<8|m[e|47],m[e|48]<<24|m[e|49]<<16|m[e|50]<<8|m[e|51],m[e|52]<<24|m[e|53]<<16|m[e|54]<<8|m[e|55],m[e|56]<<24|m[e|57]<<16|m[e|58]<<8|m[e|59],m[e|60]<<24|m[e|61]<<16|m[e|62]<<8|m[e|63])}function _state_to_heap(e){e=e|0;m[e|0]=t>>>24;m[e|1]=t>>>16&255;m[e|2]=t>>>8&255;m[e|3]=t&255;m[e|4]=i>>>24;m[e|5]=i>>>16&255;m[e|6]=i>>>8&255;m[e|7]=i&255;m[e|8]=a>>>24;m[e|9]=a>>>16&255;m[e|10]=a>>>8&255;m[e|11]=a&255;m[e|12]=s>>>24;m[e|13]=s>>>16&255;m[e|14]=s>>>8&255;m[e|15]=s&255;m[e|16]=f>>>24;m[e|17]=f>>>16&255;m[e|18]=f>>>8&255;m[e|19]=f&255}function reset(){t=0x67452301;i=0xefcdab89;a=0x98badcfe;s=0x10325476;f=0xc3d2e1f0;c=l=0}function init(e,r,n,d,o,u,h){e=e|0;r=r|0;n=n|0;d=d|0;o=o|0;u=u|0;h=h|0;t=e;i=r;a=n;s=d;f=o;c=u;l=h}function process(e,r){e=e|0;r=r|0;var n=0;if(e&63)return-1;while((r|0)>=64){_core_heap(e);e=e+64|0;r=r-64|0;n=n+64|0}c=c+n|0;if(c>>>0>>0)l=l+1|0;return n|0}function finish(e,r,n){e=e|0;r=r|0;n=n|0;var t=0,i=0;if(e&63)return-1;if(~n)if(n&31)return-1;if((r|0)>=64){t=process(e,r)|0;if((t|0)==-1)return-1;e=e+t|0;r=r-t|0}t=t+r|0;c=c+r|0;if(c>>>0>>0)l=l+1|0;m[e|r]=0x80;if((r|0)>=56){for(i=r+1|0;(i|0)<64;i=i+1|0)m[e|i]=0x00;_core_heap(e);r=0;m[e|0]=0}for(i=r+1|0;(i|0)<59;i=i+1|0)m[e|i]=0;m[e|56]=l>>>21&255;m[e|57]=l>>>13&255;m[e|58]=l>>>5&255;m[e|59]=l<<3&255|c>>>29;m[e|60]=c>>>21&255;m[e|61]=c>>>13&255;m[e|62]=c>>>5&255;m[e|63]=c<<3&255;_core_heap(e);if(~n)_state_to_heap(n);return t|0}function hmac_reset(){t=d;i=o;a=u;s=h;f=p;c=64;l=0}function _hmac_opad(){t=v;i=b;a=y;s=g;f=w;c=64;l=0}function hmac_init(e,r,n,m,A,E,S,k,R,M,C,D,_,j,B,q){e=e|0;r=r|0;n=n|0;m=m|0;A=A|0;E=E|0;S=S|0;k=k|0;R=R|0;M=M|0;C=C|0;D=D|0;_=_|0;j=j|0;B=B|0;q=q|0;reset();_core(e^0x5c5c5c5c,r^0x5c5c5c5c,n^0x5c5c5c5c,m^0x5c5c5c5c,A^0x5c5c5c5c,E^0x5c5c5c5c,S^0x5c5c5c5c,k^0x5c5c5c5c,R^0x5c5c5c5c,M^0x5c5c5c5c,C^0x5c5c5c5c,D^0x5c5c5c5c,_^0x5c5c5c5c,j^0x5c5c5c5c,B^0x5c5c5c5c,q^0x5c5c5c5c);v=t;b=i;y=a;g=s;w=f;reset();_core(e^0x36363636,r^0x36363636,n^0x36363636,m^0x36363636,A^0x36363636,E^0x36363636,S^0x36363636,k^0x36363636,R^0x36363636,M^0x36363636,C^0x36363636,D^0x36363636,_^0x36363636,j^0x36363636,B^0x36363636,q^0x36363636);d=t;o=i;u=a;h=s;p=f;c=64;l=0}function hmac_finish(e,r,n){e=e|0;r=r|0;n=n|0;var c=0,l=0,d=0,o=0,u=0,h=0;if(e&63)return-1;if(~n)if(n&31)return-1;h=finish(e,r,-1)|0;c=t,l=i,d=a,o=s,u=f;_hmac_opad();_core(c,l,d,o,u,0x80000000,0,0,0,0,0,0,0,0,0,672);if(~n)_state_to_heap(n);return h|0}function pbkdf2_generate_block(e,r,n,c,l){e=e|0;r=r|0;n=n|0;c=c|0;l=l|0;var d=0,o=0,u=0,h=0,p=0,v=0,b=0,y=0,g=0,w=0;if(e&63)return-1;if(~l)if(l&31)return-1;m[e+r|0]=n>>>24;m[e+r+1|0]=n>>>16&255;m[e+r+2|0]=n>>>8&255;m[e+r+3|0]=n&255;hmac_finish(e,r+4|0,-1)|0;d=v=t,o=b=i,u=y=a,h=g=s,p=w=f;c=c-1|0;while((c|0)>0){hmac_reset();_core(v,b,y,g,w,0x80000000,0,0,0,0,0,0,0,0,0,672);v=t,b=i,y=a,g=s,w=f;_hmac_opad();_core(v,b,y,g,w,0x80000000,0,0,0,0,0,0,0,0,0,672);v=t,b=i,y=a,g=s,w=f;d=d^t;o=o^i;u=u^a;h=h^s;p=p^f;c=c-1|0}t=d;i=o;a=u;s=h;f=p;if(~l)_state_to_heap(l);return 0}return{reset:reset,init:init,process:process,finish:finish,hmac_reset:hmac_reset,hmac_init:hmac_init,hmac_finish:hmac_finish,pbkdf2_generate_block:pbkdf2_generate_block}}},{}],11:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.Sha1=n._sha1_hash_size=n._sha1_block_size=undefined;var t=e("./sha1.asm");var i=e("../hash");var a=undefined&&undefined.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(r.hasOwnProperty(n))e[n]=r[n]};return function(r,n){e(r,n);function __(){this.constructor=r}r.prototype=n===null?Object.create(n):(__.prototype=n.prototype,new __)}}();var s=n._sha1_block_size=64;var f=n._sha1_hash_size=20;var c=function(e){a(Sha1,e);function Sha1(){var r=e!==null&&e.apply(this,arguments)||this;r.NAME="sha1";r.BLOCK_SIZE=s;r.HASH_SIZE=f;return r}Sha1.bytes=function(e){return(new Sha1).process(e).finish().result};Sha1.NAME="sha1";Sha1.heap_pool=[];Sha1.asm_pool=[];Sha1.asm_function=t.sha1_asm;return Sha1}(i.Hash);n.Sha1=c},{"../hash":9,"./sha1.asm":10}],12:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=n.sha256_asm=function sha256_asm(e,r,n){"use asm";var t=0,i=0,a=0,s=0,f=0,c=0,l=0,d=0,o=0,u=0;var h=0,p=0,v=0,b=0,y=0,g=0,w=0,m=0,A=0,E=0,S=0,k=0,R=0,M=0,C=0,D=0;var _=new e.Uint8Array(n);function _core(e,r,n,o,u,h,p,v,b,y,g,w,m,A,E,S){e=e|0;r=r|0;n=n|0;o=o|0;u=u|0;h=h|0;p=p|0;v=v|0;b=b|0;y=y|0;g=g|0;w=w|0;m=m|0;A=A|0;E=E|0;S=S|0;var k=0,R=0,M=0,C=0,D=0,_=0,j=0,B=0;k=t;R=i;M=a;C=s;D=f;_=c;j=l;B=d;B=e+B+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(j^D&(_^j))+0x428a2f98|0;C=C+B|0;B=B+(k&R^M&(k^R))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;j=r+j+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(_^C&(D^_))+0x71374491|0;M=M+j|0;j=j+(B&k^R&(B^k))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;_=n+_+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(D^M&(C^D))+0xb5c0fbcf|0;R=R+_|0;_=_+(j&B^k&(j^B))+(j>>>2^j>>>13^j>>>22^j<<30^j<<19^j<<10)|0;D=o+D+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(C^R&(M^C))+0xe9b5dba5|0;k=k+D|0;D=D+(_&j^B&(_^j))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;C=u+C+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(M^k&(R^M))+0x3956c25b|0;B=B+C|0;C=C+(D&_^j&(D^_))+(D>>>2^D>>>13^D>>>22^D<<30^D<<19^D<<10)|0;M=h+M+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(R^B&(k^R))+0x59f111f1|0;j=j+M|0;M=M+(C&D^_&(C^D))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;R=p+R+(j>>>6^j>>>11^j>>>25^j<<26^j<<21^j<<7)+(k^j&(B^k))+0x923f82a4|0;_=_+R|0;R=R+(M&C^D&(M^C))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;k=v+k+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(B^_&(j^B))+0xab1c5ed5|0;D=D+k|0;k=k+(R&M^C&(R^M))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;B=b+B+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(j^D&(_^j))+0xd807aa98|0;C=C+B|0;B=B+(k&R^M&(k^R))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;j=y+j+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(_^C&(D^_))+0x12835b01|0;M=M+j|0;j=j+(B&k^R&(B^k))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;_=g+_+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(D^M&(C^D))+0x243185be|0;R=R+_|0;_=_+(j&B^k&(j^B))+(j>>>2^j>>>13^j>>>22^j<<30^j<<19^j<<10)|0;D=w+D+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(C^R&(M^C))+0x550c7dc3|0;k=k+D|0;D=D+(_&j^B&(_^j))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;C=m+C+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(M^k&(R^M))+0x72be5d74|0;B=B+C|0;C=C+(D&_^j&(D^_))+(D>>>2^D>>>13^D>>>22^D<<30^D<<19^D<<10)|0;M=A+M+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(R^B&(k^R))+0x80deb1fe|0;j=j+M|0;M=M+(C&D^_&(C^D))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;R=E+R+(j>>>6^j>>>11^j>>>25^j<<26^j<<21^j<<7)+(k^j&(B^k))+0x9bdc06a7|0;_=_+R|0;R=R+(M&C^D&(M^C))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;k=S+k+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(B^_&(j^B))+0xc19bf174|0;D=D+k|0;k=k+(R&M^C&(R^M))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;e=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+e+y|0;B=e+B+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(j^D&(_^j))+0xe49b69c1|0;C=C+B|0;B=B+(k&R^M&(k^R))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;r=(n>>>7^n>>>18^n>>>3^n<<25^n<<14)+(S>>>17^S>>>19^S>>>10^S<<15^S<<13)+r+g|0;j=r+j+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(_^C&(D^_))+0xefbe4786|0;M=M+j|0;j=j+(B&k^R&(B^k))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;n=(o>>>7^o>>>18^o>>>3^o<<25^o<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+n+w|0;_=n+_+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(D^M&(C^D))+0x0fc19dc6|0;R=R+_|0;_=_+(j&B^k&(j^B))+(j>>>2^j>>>13^j>>>22^j<<30^j<<19^j<<10)|0;o=(u>>>7^u>>>18^u>>>3^u<<25^u<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+o+m|0;D=o+D+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(C^R&(M^C))+0x240ca1cc|0;k=k+D|0;D=D+(_&j^B&(_^j))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;u=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(n>>>17^n>>>19^n>>>10^n<<15^n<<13)+u+A|0;C=u+C+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(M^k&(R^M))+0x2de92c6f|0;B=B+C|0;C=C+(D&_^j&(D^_))+(D>>>2^D>>>13^D>>>22^D<<30^D<<19^D<<10)|0;h=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(o>>>17^o>>>19^o>>>10^o<<15^o<<13)+h+E|0;M=h+M+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(R^B&(k^R))+0x4a7484aa|0;j=j+M|0;M=M+(C&D^_&(C^D))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;p=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(u>>>17^u>>>19^u>>>10^u<<15^u<<13)+p+S|0;R=p+R+(j>>>6^j>>>11^j>>>25^j<<26^j<<21^j<<7)+(k^j&(B^k))+0x5cb0a9dc|0;_=_+R|0;R=R+(M&C^D&(M^C))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;v=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+v+e|0;k=v+k+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(B^_&(j^B))+0x76f988da|0;D=D+k|0;k=k+(R&M^C&(R^M))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;b=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+b+r|0;B=b+B+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(j^D&(_^j))+0x983e5152|0;C=C+B|0;B=B+(k&R^M&(k^R))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;y=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+y+n|0;j=y+j+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(_^C&(D^_))+0xa831c66d|0;M=M+j|0;j=j+(B&k^R&(B^k))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;g=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+g+o|0;_=g+_+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(D^M&(C^D))+0xb00327c8|0;R=R+_|0;_=_+(j&B^k&(j^B))+(j>>>2^j>>>13^j>>>22^j<<30^j<<19^j<<10)|0;w=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+w+u|0;D=w+D+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(C^R&(M^C))+0xbf597fc7|0;k=k+D|0;D=D+(_&j^B&(_^j))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;m=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+m+h|0;C=m+C+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(M^k&(R^M))+0xc6e00bf3|0;B=B+C|0;C=C+(D&_^j&(D^_))+(D>>>2^D>>>13^D>>>22^D<<30^D<<19^D<<10)|0;A=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+A+p|0;M=A+M+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(R^B&(k^R))+0xd5a79147|0;j=j+M|0;M=M+(C&D^_&(C^D))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;E=(S>>>7^S>>>18^S>>>3^S<<25^S<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+E+v|0;R=E+R+(j>>>6^j>>>11^j>>>25^j<<26^j<<21^j<<7)+(k^j&(B^k))+0x06ca6351|0;_=_+R|0;R=R+(M&C^D&(M^C))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;S=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+S+b|0;k=S+k+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(B^_&(j^B))+0x14292967|0;D=D+k|0;k=k+(R&M^C&(R^M))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;e=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+e+y|0;B=e+B+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(j^D&(_^j))+0x27b70a85|0;C=C+B|0;B=B+(k&R^M&(k^R))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;r=(n>>>7^n>>>18^n>>>3^n<<25^n<<14)+(S>>>17^S>>>19^S>>>10^S<<15^S<<13)+r+g|0;j=r+j+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(_^C&(D^_))+0x2e1b2138|0;M=M+j|0;j=j+(B&k^R&(B^k))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;n=(o>>>7^o>>>18^o>>>3^o<<25^o<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+n+w|0;_=n+_+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(D^M&(C^D))+0x4d2c6dfc|0;R=R+_|0;_=_+(j&B^k&(j^B))+(j>>>2^j>>>13^j>>>22^j<<30^j<<19^j<<10)|0;o=(u>>>7^u>>>18^u>>>3^u<<25^u<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+o+m|0;D=o+D+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(C^R&(M^C))+0x53380d13|0;k=k+D|0;D=D+(_&j^B&(_^j))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;u=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(n>>>17^n>>>19^n>>>10^n<<15^n<<13)+u+A|0;C=u+C+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(M^k&(R^M))+0x650a7354|0;B=B+C|0;C=C+(D&_^j&(D^_))+(D>>>2^D>>>13^D>>>22^D<<30^D<<19^D<<10)|0;h=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(o>>>17^o>>>19^o>>>10^o<<15^o<<13)+h+E|0;M=h+M+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(R^B&(k^R))+0x766a0abb|0;j=j+M|0;M=M+(C&D^_&(C^D))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;p=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(u>>>17^u>>>19^u>>>10^u<<15^u<<13)+p+S|0;R=p+R+(j>>>6^j>>>11^j>>>25^j<<26^j<<21^j<<7)+(k^j&(B^k))+0x81c2c92e|0;_=_+R|0;R=R+(M&C^D&(M^C))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;v=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+v+e|0;k=v+k+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(B^_&(j^B))+0x92722c85|0;D=D+k|0;k=k+(R&M^C&(R^M))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;b=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+b+r|0;B=b+B+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(j^D&(_^j))+0xa2bfe8a1|0;C=C+B|0;B=B+(k&R^M&(k^R))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;y=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+y+n|0;j=y+j+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(_^C&(D^_))+0xa81a664b|0;M=M+j|0;j=j+(B&k^R&(B^k))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;g=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+g+o|0;_=g+_+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(D^M&(C^D))+0xc24b8b70|0;R=R+_|0;_=_+(j&B^k&(j^B))+(j>>>2^j>>>13^j>>>22^j<<30^j<<19^j<<10)|0;w=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+w+u|0;D=w+D+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(C^R&(M^C))+0xc76c51a3|0;k=k+D|0;D=D+(_&j^B&(_^j))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;m=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+m+h|0;C=m+C+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(M^k&(R^M))+0xd192e819|0;B=B+C|0;C=C+(D&_^j&(D^_))+(D>>>2^D>>>13^D>>>22^D<<30^D<<19^D<<10)|0;A=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+A+p|0;M=A+M+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(R^B&(k^R))+0xd6990624|0;j=j+M|0;M=M+(C&D^_&(C^D))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;E=(S>>>7^S>>>18^S>>>3^S<<25^S<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+E+v|0;R=E+R+(j>>>6^j>>>11^j>>>25^j<<26^j<<21^j<<7)+(k^j&(B^k))+0xf40e3585|0;_=_+R|0;R=R+(M&C^D&(M^C))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;S=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+S+b|0;k=S+k+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(B^_&(j^B))+0x106aa070|0;D=D+k|0;k=k+(R&M^C&(R^M))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;e=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+e+y|0;B=e+B+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(j^D&(_^j))+0x19a4c116|0;C=C+B|0;B=B+(k&R^M&(k^R))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;r=(n>>>7^n>>>18^n>>>3^n<<25^n<<14)+(S>>>17^S>>>19^S>>>10^S<<15^S<<13)+r+g|0;j=r+j+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(_^C&(D^_))+0x1e376c08|0;M=M+j|0;j=j+(B&k^R&(B^k))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;n=(o>>>7^o>>>18^o>>>3^o<<25^o<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+n+w|0;_=n+_+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(D^M&(C^D))+0x2748774c|0;R=R+_|0;_=_+(j&B^k&(j^B))+(j>>>2^j>>>13^j>>>22^j<<30^j<<19^j<<10)|0;o=(u>>>7^u>>>18^u>>>3^u<<25^u<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+o+m|0;D=o+D+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(C^R&(M^C))+0x34b0bcb5|0;k=k+D|0;D=D+(_&j^B&(_^j))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;u=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(n>>>17^n>>>19^n>>>10^n<<15^n<<13)+u+A|0;C=u+C+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(M^k&(R^M))+0x391c0cb3|0;B=B+C|0;C=C+(D&_^j&(D^_))+(D>>>2^D>>>13^D>>>22^D<<30^D<<19^D<<10)|0;h=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(o>>>17^o>>>19^o>>>10^o<<15^o<<13)+h+E|0;M=h+M+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(R^B&(k^R))+0x4ed8aa4a|0;j=j+M|0;M=M+(C&D^_&(C^D))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;p=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(u>>>17^u>>>19^u>>>10^u<<15^u<<13)+p+S|0;R=p+R+(j>>>6^j>>>11^j>>>25^j<<26^j<<21^j<<7)+(k^j&(B^k))+0x5b9cca4f|0;_=_+R|0;R=R+(M&C^D&(M^C))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;v=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+v+e|0;k=v+k+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(B^_&(j^B))+0x682e6ff3|0;D=D+k|0;k=k+(R&M^C&(R^M))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;b=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+b+r|0;B=b+B+(D>>>6^D>>>11^D>>>25^D<<26^D<<21^D<<7)+(j^D&(_^j))+0x748f82ee|0;C=C+B|0;B=B+(k&R^M&(k^R))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;y=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+y+n|0;j=y+j+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(_^C&(D^_))+0x78a5636f|0;M=M+j|0;j=j+(B&k^R&(B^k))+(B>>>2^B>>>13^B>>>22^B<<30^B<<19^B<<10)|0;g=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+g+o|0;_=g+_+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(D^M&(C^D))+0x84c87814|0;R=R+_|0;_=_+(j&B^k&(j^B))+(j>>>2^j>>>13^j>>>22^j<<30^j<<19^j<<10)|0;w=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+w+u|0;D=w+D+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(C^R&(M^C))+0x8cc70208|0;k=k+D|0;D=D+(_&j^B&(_^j))+(_>>>2^_>>>13^_>>>22^_<<30^_<<19^_<<10)|0;m=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+m+h|0;C=m+C+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(M^k&(R^M))+0x90befffa|0;B=B+C|0;C=C+(D&_^j&(D^_))+(D>>>2^D>>>13^D>>>22^D<<30^D<<19^D<<10)|0;A=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+A+p|0;M=A+M+(B>>>6^B>>>11^B>>>25^B<<26^B<<21^B<<7)+(R^B&(k^R))+0xa4506ceb|0;j=j+M|0;M=M+(C&D^_&(C^D))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;E=(S>>>7^S>>>18^S>>>3^S<<25^S<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+E+v|0;R=E+R+(j>>>6^j>>>11^j>>>25^j<<26^j<<21^j<<7)+(k^j&(B^k))+0xbef9a3f7|0;_=_+R|0;R=R+(M&C^D&(M^C))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;S=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+S+b|0;k=S+k+(_>>>6^_>>>11^_>>>25^_<<26^_<<21^_<<7)+(B^_&(j^B))+0xc67178f2|0;D=D+k|0;k=k+(R&M^C&(R^M))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;t=t+k|0;i=i+R|0;a=a+M|0;s=s+C|0;f=f+D|0;c=c+_|0;l=l+j|0;d=d+B|0}function _core_heap(e){e=e|0;_core(_[e|0]<<24|_[e|1]<<16|_[e|2]<<8|_[e|3],_[e|4]<<24|_[e|5]<<16|_[e|6]<<8|_[e|7],_[e|8]<<24|_[e|9]<<16|_[e|10]<<8|_[e|11],_[e|12]<<24|_[e|13]<<16|_[e|14]<<8|_[e|15],_[e|16]<<24|_[e|17]<<16|_[e|18]<<8|_[e|19],_[e|20]<<24|_[e|21]<<16|_[e|22]<<8|_[e|23],_[e|24]<<24|_[e|25]<<16|_[e|26]<<8|_[e|27],_[e|28]<<24|_[e|29]<<16|_[e|30]<<8|_[e|31],_[e|32]<<24|_[e|33]<<16|_[e|34]<<8|_[e|35],_[e|36]<<24|_[e|37]<<16|_[e|38]<<8|_[e|39],_[e|40]<<24|_[e|41]<<16|_[e|42]<<8|_[e|43],_[e|44]<<24|_[e|45]<<16|_[e|46]<<8|_[e|47],_[e|48]<<24|_[e|49]<<16|_[e|50]<<8|_[e|51],_[e|52]<<24|_[e|53]<<16|_[e|54]<<8|_[e|55],_[e|56]<<24|_[e|57]<<16|_[e|58]<<8|_[e|59],_[e|60]<<24|_[e|61]<<16|_[e|62]<<8|_[e|63])}function _state_to_heap(e){e=e|0;_[e|0]=t>>>24;_[e|1]=t>>>16&255;_[e|2]=t>>>8&255;_[e|3]=t&255;_[e|4]=i>>>24;_[e|5]=i>>>16&255;_[e|6]=i>>>8&255;_[e|7]=i&255;_[e|8]=a>>>24;_[e|9]=a>>>16&255;_[e|10]=a>>>8&255;_[e|11]=a&255;_[e|12]=s>>>24;_[e|13]=s>>>16&255;_[e|14]=s>>>8&255;_[e|15]=s&255;_[e|16]=f>>>24;_[e|17]=f>>>16&255;_[e|18]=f>>>8&255;_[e|19]=f&255;_[e|20]=c>>>24;_[e|21]=c>>>16&255;_[e|22]=c>>>8&255;_[e|23]=c&255;_[e|24]=l>>>24;_[e|25]=l>>>16&255;_[e|26]=l>>>8&255;_[e|27]=l&255;_[e|28]=d>>>24;_[e|29]=d>>>16&255;_[e|30]=d>>>8&255;_[e|31]=d&255}function reset(){t=0x6a09e667;i=0xbb67ae85;a=0x3c6ef372;s=0xa54ff53a;f=0x510e527f;c=0x9b05688c;l=0x1f83d9ab;d=0x5be0cd19;o=u=0}function init(e,r,n,h,p,v,b,y,g,w){e=e|0;r=r|0;n=n|0;h=h|0;p=p|0;v=v|0;b=b|0;y=y|0;g=g|0;w=w|0;t=e;i=r;a=n;s=h;f=p;c=v;l=b;d=y;o=g;u=w}function process(e,r){e=e|0;r=r|0;var n=0;if(e&63)return-1;while((r|0)>=64){_core_heap(e);e=e+64|0;r=r-64|0;n=n+64|0}o=o+n|0;if(o>>>0>>0)u=u+1|0;return n|0}function finish(e,r,n){e=e|0;r=r|0;n=n|0;var t=0,i=0;if(e&63)return-1;if(~n)if(n&31)return-1;if((r|0)>=64){t=process(e,r)|0;if((t|0)==-1)return-1;e=e+t|0;r=r-t|0}t=t+r|0;o=o+r|0;if(o>>>0>>0)u=u+1|0;_[e|r]=0x80;if((r|0)>=56){for(i=r+1|0;(i|0)<64;i=i+1|0)_[e|i]=0x00;_core_heap(e);r=0;_[e|0]=0}for(i=r+1|0;(i|0)<59;i=i+1|0)_[e|i]=0;_[e|56]=u>>>21&255;_[e|57]=u>>>13&255;_[e|58]=u>>>5&255;_[e|59]=u<<3&255|o>>>29;_[e|60]=o>>>21&255;_[e|61]=o>>>13&255;_[e|62]=o>>>5&255;_[e|63]=o<<3&255;_core_heap(e);if(~n)_state_to_heap(n);return t|0}function hmac_reset(){t=h;i=p;a=v;s=b;f=y;c=g;l=w;d=m;o=64;u=0}function _hmac_opad(){t=A;i=E;a=S;s=k;f=R;c=M;l=C;d=D;o=64;u=0}function hmac_init(e,r,n,_,j,B,q,U,x,I,K,O,F,P,T,N){e=e|0;r=r|0;n=n|0;_=_|0;j=j|0;B=B|0;q=q|0;U=U|0;x=x|0;I=I|0;K=K|0;O=O|0;F=F|0;P=P|0;T=T|0;N=N|0;reset();_core(e^0x5c5c5c5c,r^0x5c5c5c5c,n^0x5c5c5c5c,_^0x5c5c5c5c,j^0x5c5c5c5c,B^0x5c5c5c5c,q^0x5c5c5c5c,U^0x5c5c5c5c,x^0x5c5c5c5c,I^0x5c5c5c5c,K^0x5c5c5c5c,O^0x5c5c5c5c,F^0x5c5c5c5c,P^0x5c5c5c5c,T^0x5c5c5c5c,N^0x5c5c5c5c);A=t;E=i;S=a;k=s;R=f;M=c;C=l;D=d;reset();_core(e^0x36363636,r^0x36363636,n^0x36363636,_^0x36363636,j^0x36363636,B^0x36363636,q^0x36363636,U^0x36363636,x^0x36363636,I^0x36363636,K^0x36363636,O^0x36363636,F^0x36363636,P^0x36363636,T^0x36363636,N^0x36363636);h=t;p=i;v=a;b=s;y=f;g=c;w=l;m=d;o=64;u=0}function hmac_finish(e,r,n){e=e|0;r=r|0;n=n|0;var o=0,u=0,h=0,p=0,v=0,b=0,y=0,g=0,w=0;if(e&63)return-1;if(~n)if(n&31)return-1;w=finish(e,r,-1)|0;o=t,u=i,h=a,p=s,v=f,b=c,y=l,g=d;_hmac_opad();_core(o,u,h,p,v,b,y,g,0x80000000,0,0,0,0,0,0,768);if(~n)_state_to_heap(n);return w|0}function pbkdf2_generate_block(e,r,n,o,u){e=e|0;r=r|0;n=n|0;o=o|0;u=u|0;var h=0,p=0,v=0,b=0,y=0,g=0,w=0,m=0,A=0,E=0,S=0,k=0,R=0,M=0,C=0,D=0;if(e&63)return-1;if(~u)if(u&31)return-1;_[e+r|0]=n>>>24;_[e+r+1|0]=n>>>16&255;_[e+r+2|0]=n>>>8&255;_[e+r+3|0]=n&255;hmac_finish(e,r+4|0,-1)|0;h=A=t,p=E=i,v=S=a,b=k=s,y=R=f,g=M=c,w=C=l,m=D=d;o=o-1|0;while((o|0)>0){hmac_reset();_core(A,E,S,k,R,M,C,D,0x80000000,0,0,0,0,0,0,768);A=t,E=i,S=a,k=s,R=f,M=c,C=l,D=d;_hmac_opad();_core(A,E,S,k,R,M,C,D,0x80000000,0,0,0,0,0,0,768);A=t,E=i,S=a,k=s,R=f,M=c,C=l,D=d;h=h^t;p=p^i;v=v^a;b=b^s;y=y^f;g=g^c;w=w^l;m=m^d;o=o-1|0}t=h;i=p;a=v;s=b;f=y;c=g;l=w;d=m;if(~u)_state_to_heap(u);return 0}return{reset:reset,init:init,process:process,finish:finish,hmac_reset:hmac_reset,hmac_init:hmac_init,hmac_finish:hmac_finish,pbkdf2_generate_block:pbkdf2_generate_block}}},{}],13:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.Sha256=n._sha256_hash_size=n._sha256_block_size=undefined;var t=e("./sha256.asm");var i=e("../hash");var a=undefined&&undefined.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(r.hasOwnProperty(n))e[n]=r[n]};return function(r,n){e(r,n);function __(){this.constructor=r}r.prototype=n===null?Object.create(n):(__.prototype=n.prototype,new __)}}();var s=n._sha256_block_size=64;var f=n._sha256_hash_size=32;var c=function(e){a(Sha256,e);function Sha256(){var r=e!==null&&e.apply(this,arguments)||this;r.NAME="sha256";r.BLOCK_SIZE=s;r.HASH_SIZE=f;return r}Sha256.bytes=function(e){return(new Sha256).process(e).finish().result};Sha256.NAME="sha256";Sha256.heap_pool=[];Sha256.asm_pool=[];Sha256.asm_function=t.sha256_asm;return Sha256}(i.Hash);n.Sha256=c},{"../hash":9,"./sha256.asm":12}],14:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=undefined&&undefined.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(r.hasOwnProperty(n))e[n]=r[n]};return function(r,n){e(r,n);function __(){this.constructor=r}r.prototype=n===null?Object.create(n):(__.prototype=n.prototype,new __)}}();var i=function(e){t(IllegalStateError,e);function IllegalStateError(){var r=[];for(var n=0;n=n)throw new Error("Malformed string, low surrogate expected at position "+i);s=(s^55296)<<10|65536|e.charCodeAt(i)^56320}else if(!r&&s>>>8){throw new Error("Wide characters are not allowed.")}if(!r||s<=127){t[a++]=s}else if(s<=2047){t[a++]=192|s>>6;t[a++]=128|s&63}else if(s<=65535){t[a++]=224|s>>12;t[a++]=128|s>>6&63;t[a++]=128|s&63}else{t[a++]=240|s>>18;t[a++]=128|s>>12&63;t[a++]=128|s>>6&63;t[a++]=128|s&63}}return t.subarray(0,a)}function hex_to_bytes(e){var r=e.length;if(r&1){e="0"+e;r++}var n=new Uint8Array(r>>1);for(var t=0;t>1]=parseInt(e.substr(t,2),16)}return n}function base64_to_bytes(e){return string_to_bytes(t(e))}function bytes_to_string(e,r){if(r===void 0){r=false}var n=e.length,t=new Array(n);for(var i=0,a=0;i=192&&s<224&&i+1=224&&s<240&&i+2=240&&s<248&&i+3>10;t[a++]=56320|f&1023}}else{throw new Error("Malformed UTF8 character at byte offset "+i)}}var c="",l=16384;for(var i=0;i>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e+=1;return e}function is_number(e){return typeof e==="number"}function is_string(e){return typeof e==="string"}function is_buffer(e){return e instanceof ArrayBuffer}function is_bytes(e){return e instanceof Uint8Array}function is_typed_array(e){return e instanceof Int8Array||e instanceof Uint8Array||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function _heap_init(e,r){var n=e?e.byteLength:r||65536;if(n&4095||n<=0)throw new Error("heap size must be a positive integer and a multiple of 4096");e=e||new Uint8Array(new ArrayBuffer(n));return e}function _heap_write(e,r,n,t,i){var a=e.length-r;var s=a>6];const i=(n&32)===0;if((n&31)===31){let t=n;n=0;while((t&128)===128){t=e.readUInt8(r);if(e.isError(t))return t;n<<=7;n|=t&127}}else{n&=31}const a=f.tag[n];return{cls:t,primitive:i,tag:n,tagStr:a}}function derDecodeLen(e,r,n){let t=e.readUInt8(n);if(e.isError(t))return t;if(!r&&t===128)return null;if((t&128)===0){return t}const i=t&127;if(i>4)return e.error("length octect is too long");t=0;for(let r=0;r=256;e>>=8)s++;const f=new i(1+1+s);f[0]=a;f[1]=128|s;for(let e=1+s,r=t.length;r>0;e--,r>>=8)f[e]=r&255;return this._createEncoderBuffer([f,t])};DERNode.prototype._encodeStr=function encodeStr(e,r){if(r==="bitstr"){return this._createEncoderBuffer([e.unused|0,e.data])}else if(r==="bmpstr"){const r=new i(e.length*2);for(let n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}let t=0;for(let r=0;r=128;n>>=7)t++}const a=new i(t);let s=a.length-1;for(let r=e.length-1;r>=0;r--){let n=e[r];a[s--]=n&127;while((n>>=7)>0)a[s--]=128|n&127}return this._createEncoderBuffer(a)};function two(e){if(e<10)return"0"+e;else return e}DERNode.prototype._encodeTime=function encodeTime(e,r){let n;const t=new Date(e);if(r==="gentime"){n=[two(t.getFullYear()),two(t.getUTCMonth()+1),two(t.getUTCDate()),two(t.getUTCHours()),two(t.getUTCMinutes()),two(t.getUTCSeconds()),"Z"].join("")}else if(r==="utctime"){n=[two(t.getFullYear()%100),two(t.getUTCMonth()+1),two(t.getUTCDate()),two(t.getUTCHours()),two(t.getUTCMinutes()),two(t.getUTCSeconds()),"Z"].join("")}else{this.reporter.error("Encoding "+r+" time is not supported yet")}return this._encodeStr(n,"octstr")};DERNode.prototype._encodeNull=function encodeNull(){return this._createEncoderBuffer("")};DERNode.prototype._encodeInt=function encodeInt(e,r){if(typeof e==="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(e)){return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e))}e=r[e]}if(typeof e!=="number"&&!i.isBuffer(e)){const r=e.toArray();if(!e.sign&&r[0]&128){r.unshift(0)}e=new i(r)}if(i.isBuffer(e)){let r=e.length;if(e.length===0)r++;const n=new i(r);e.copy(n);if(e.length===0)n[0]=0;return this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let r=e;r>=256;r>>=8)n++;const t=new Array(n);for(let r=t.length-1;r>=0;r--){t[r]=e&255;e>>=8}if(t[0]&128){t.unshift(0)}return this._createEncoderBuffer(new i(t))};DERNode.prototype._encodeBool=function encodeBool(e){return this._createEncoderBuffer(e?255:0)};DERNode.prototype._use=function use(e,r){if(typeof e==="function")e=e(r);return e._getEncoder("der").tree};DERNode.prototype._skipDefault=function skipDefault(e,r,n){const t=this._baseState;let i;if(t["default"]===null)return false;const a=e.join();if(t.defaultBuffer===undefined)t.defaultBuffer=this._encodeValue(t["default"],r,n).join();if(a.length!==t.defaultBuffer.length)return false;for(i=0;i=31)return t.error("Multi-octet tag encoding unsupported");if(!r)i|=32;i|=f.tagClassByName[n||"universal"]<<6;return i}},{"../../asn1":16,buffer:"buffer",inherits:61}],28:[function(e,r,n){"use strict";const t=n;t.der=e("./der");t.pem=e("./pem")},{"./der":27,"./pem":29}],29:[function(e,r,n){"use strict";const t=e("inherits");const i=e("./der");function PEMEncoder(e){i.call(this,e);this.enc="pem"}t(PEMEncoder,i);r.exports=PEMEncoder;PEMEncoder.prototype.encode=function encode(e,r){const n=i.prototype.encode.call(this,e);const t=n.toString("base64");const a=["-----BEGIN "+r.label+"-----"];for(let e=0;e0)return e;return r};BN.min=function min(e,r){if(e.cmp(r)<0)return e;return r};BN.prototype._init=function init(e,r,n){if(typeof e==="number"){return this._initNumber(e,r,n)}if(typeof e==="object"){return this._initArray(e,r,n)}if(r==="hex"){r=16}assert(r===(r|0)&&r>=2&&r<=36);e=e.toString().replace(/\s+/g,"");var t=0;if(e[0]==="-"){t++}if(r===16){this._parseHex(e,t)}else{this._parseBase(e,r,t)}if(e[0]==="-"){this.negative=1}this.strip();if(n!=="le")return;this._initArray(this.toArray(),r,n)};BN.prototype._initNumber=function _initNumber(e,r,n){if(e<0){this.negative=1;e=-e}if(e<67108864){this.words=[e&67108863];this.length=1}else if(e<4503599627370496){this.words=[e&67108863,e/67108864&67108863];this.length=2}else{assert(e<9007199254740992);this.words=[e&67108863,e/67108864&67108863,1];this.length=3}if(n!=="le")return;this._initArray(this.toArray(),r,n)};BN.prototype._initArray=function _initArray(e,r,n){assert(typeof e.length==="number");if(e.length<=0){this.words=[0];this.length=1;return this}this.length=Math.ceil(e.length/3);this.words=new Array(this.length);for(var t=0;t=0;t-=3){a=e[t]|e[t-1]<<8|e[t-2]<<16;this.words[i]|=a<>>26-s&67108863;s+=24;if(s>=26){s-=26;i++}}}else if(n==="le"){for(t=0,i=0;t>>26-s&67108863;s+=24;if(s>=26){s-=26;i++}}}return this.strip()};function parseHex(e,r,n){var t=0;var i=Math.min(e.length,n);for(var a=r;a=49&&s<=54){t|=s-49+10}else if(s>=17&&s<=22){t|=s-17+10}else{t|=s&15}}return t}BN.prototype._parseHex=function _parseHex(e,r){this.length=Math.ceil((e.length-r)/6);this.words=new Array(this.length);for(var n=0;n=r;n-=6){i=parseHex(e,n,n+6);this.words[t]|=i<>>26-a&4194303;a+=24;if(a>=26){a-=26;t++}}if(n+6!==r){i=parseHex(e,r,n+6);this.words[t]|=i<>>26-a&4194303}this.strip()};function parseBase(e,r,n,t){var i=0;var a=Math.min(e.length,n);for(var s=r;s=49){i+=f-49+10}else if(f>=17){i+=f-17+10}else{i+=f}}return i}BN.prototype._parseBase=function _parseBase(e,r,n){this.words=[0];this.length=1;for(var t=0,i=1;i<=67108863;i*=r){t++}t--;i=i/r|0;var a=e.length-n;var s=a%t;var f=Math.min(a,a-s)+n;var c=0;for(var l=n;l1&&this.words[this.length-1]===0){this.length--}return this._normSign()};BN.prototype._normSign=function _normSign(){if(this.length===1&&this.words[0]===0){this.negative=0}return this};BN.prototype.inspect=function inspect(){return(this.red?""};var i=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"];var a=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5];var s=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];BN.prototype.toString=function toString(e,r){e=e||10;r=r|0||1;var n;if(e===16||e==="hex"){n="";var t=0;var f=0;for(var c=0;c>>24-t&16777215;if(f!==0||c!==this.length-1){n=i[6-d.length]+d+n}else{n=d+n}t+=2;if(t>=26){t-=26;c--}}if(f!==0){n=f.toString(16)+n}while(n.length%r!==0){n="0"+n}if(this.negative!==0){n="-"+n}return n}if(e===(e|0)&&e>=2&&e<=36){var o=a[e];var u=s[e];n="";var h=this.clone();h.negative=0;while(!h.isZero()){var p=h.modn(u).toString(e);h=h.idivn(u);if(!h.isZero()){n=i[o-p.length]+p+n}else{n=p+n}}if(this.isZero()){n="0"+n}while(n.length%r!==0){n="0"+n}if(this.negative!==0){n="-"+n}return n}assert(false,"Base should be between 2 and 36")};BN.prototype.toNumber=function toNumber(){var e=this.words[0];if(this.length===2){e+=this.words[1]*67108864}else if(this.length===3&&this.words[2]===1){e+=4503599627370496+this.words[1]*67108864}else if(this.length>2){assert(false,"Number can only safely store up to 53 bits")}return this.negative!==0?-e:e};BN.prototype.toJSON=function toJSON(){return this.toString(16)};BN.prototype.toBuffer=function toBuffer(e,r){assert(typeof t!=="undefined");return this.toArrayLike(t,e,r)};BN.prototype.toArray=function toArray(e,r){return this.toArrayLike(Array,e,r)};BN.prototype.toArrayLike=function toArrayLike(e,r,n){var t=this.byteLength();var i=n||Math.max(1,t);assert(t<=i,"byte array longer than desired length");assert(i>0,"Requested array length <= 0");this.strip();var a=r==="le";var s=new e(i);var f,c;var l=this.clone();if(!a){for(c=0;c=4096){n+=13;r>>>=13}if(r>=64){n+=7;r>>>=7}if(r>=8){n+=4;r>>>=4}if(r>=2){n+=2;r>>>=2}return n+r}}BN.prototype._zeroBits=function _zeroBits(e){if(e===0)return 26;var r=e;var n=0;if((r&8191)===0){n+=13;r>>>=13}if((r&127)===0){n+=7;r>>>=7}if((r&15)===0){n+=4;r>>>=4}if((r&3)===0){n+=2;r>>>=2}if((r&1)===0){n++}return n};BN.prototype.bitLength=function bitLength(){var e=this.words[this.length-1];var r=this._countBits(e);return(this.length-1)*26+r};function toBitArray(e){var r=new Array(e.bitLength());for(var n=0;n>>i}return r}BN.prototype.zeroBits=function zeroBits(){if(this.isZero())return 0;var e=0;for(var r=0;re.length)return this.clone().ior(e);return e.clone().ior(this)};BN.prototype.uor=function uor(e){if(this.length>e.length)return this.clone().iuor(e);return e.clone().iuor(this)};BN.prototype.iuand=function iuand(e){var r;if(this.length>e.length){r=e}else{r=this}for(var n=0;ne.length)return this.clone().iand(e);return e.clone().iand(this)};BN.prototype.uand=function uand(e){if(this.length>e.length)return this.clone().iuand(e);return e.clone().iuand(this)};BN.prototype.iuxor=function iuxor(e){var r;var n;if(this.length>e.length){r=this;n=e}else{r=e;n=this}for(var t=0;te.length)return this.clone().ixor(e);return e.clone().ixor(this)};BN.prototype.uxor=function uxor(e){if(this.length>e.length)return this.clone().iuxor(e);return e.clone().iuxor(this)};BN.prototype.inotn=function inotn(e){assert(typeof e==="number"&&e>=0);var r=Math.ceil(e/26)|0;var n=e%26;this._expand(r);if(n>0){r--}for(var t=0;t0){this.words[t]=~this.words[t]&67108863>>26-n}return this.strip()};BN.prototype.notn=function notn(e){return this.clone().inotn(e)};BN.prototype.setn=function setn(e,r){assert(typeof e==="number"&&e>=0);var n=e/26|0;var t=e%26;this._expand(n+1);if(r){this.words[n]=this.words[n]|1<e.length){n=this;t=e}else{n=e;t=this}var i=0;for(var a=0;a>>26}for(;i!==0&&a>>26}this.length=n.length;if(i!==0){this.words[this.length]=i;this.length++}else if(n!==this){for(;ae.length)return this.clone().iadd(e);return e.clone().iadd(this)};BN.prototype.isub=function isub(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);e.negative=1;return r._normSign()}else if(this.negative!==0){this.negative=0;this.iadd(e);this.negative=1;return this._normSign()}var n=this.cmp(e);if(n===0){this.negative=0;this.length=1;this.words[0]=0;return this}var t,i;if(n>0){t=this;i=e}else{t=e;i=this}var a=0;for(var s=0;s>26;this.words[s]=r&67108863}for(;a!==0&&s>26;this.words[s]=r&67108863}if(a===0&&s>>26;var o=c&67108863;var u=Math.min(l,r.length-1);for(var h=Math.max(0,l-e.length+1);h<=u;h++){var p=l-h|0;i=e.words[p]|0;a=r.words[h]|0;s=i*a+o;d+=s/67108864|0;o=s&67108863}n.words[l]=o|0;c=d|0}if(c!==0){n.words[l]=c|0}else{n.length--}return n.strip()}var f=function comb10MulTo(e,r,n){var t=e.words;var i=r.words;var a=n.words;var s=0;var f;var c;var l;var d=t[0]|0;var o=d&8191;var u=d>>>13;var h=t[1]|0;var p=h&8191;var v=h>>>13;var b=t[2]|0;var y=b&8191;var g=b>>>13;var w=t[3]|0;var m=w&8191;var A=w>>>13;var E=t[4]|0;var S=E&8191;var k=E>>>13;var R=t[5]|0;var M=R&8191;var C=R>>>13;var D=t[6]|0;var _=D&8191;var j=D>>>13;var B=t[7]|0;var q=B&8191;var U=B>>>13;var x=t[8]|0;var I=x&8191;var K=x>>>13;var O=t[9]|0;var F=O&8191;var P=O>>>13;var T=i[0]|0;var N=T&8191;var z=T>>>13;var L=i[1]|0;var W=L&8191;var H=L>>>13;var G=i[2]|0;var J=G&8191;var Y=G>>>13;var Q=i[3]|0;var Z=Q&8191;var X=Q>>>13;var V=i[4]|0;var $=V&8191;var ee=V>>>13;var re=i[5]|0;var ne=re&8191;var te=re>>>13;var ie=i[6]|0;var ae=ie&8191;var se=ie>>>13;var fe=i[7]|0;var ce=fe&8191;var le=fe>>>13;var de=i[8]|0;var oe=de&8191;var ue=de>>>13;var he=i[9]|0;var pe=he&8191;var ve=he>>>13;n.negative=e.negative^r.negative;n.length=19;f=Math.imul(o,N);c=Math.imul(o,z);c=c+Math.imul(u,N)|0;l=Math.imul(u,z);var be=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(be>>>26)|0;be&=67108863;f=Math.imul(p,N);c=Math.imul(p,z);c=c+Math.imul(v,N)|0;l=Math.imul(v,z);f=f+Math.imul(o,W)|0;c=c+Math.imul(o,H)|0;c=c+Math.imul(u,W)|0;l=l+Math.imul(u,H)|0;var ye=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(ye>>>26)|0;ye&=67108863;f=Math.imul(y,N);c=Math.imul(y,z);c=c+Math.imul(g,N)|0;l=Math.imul(g,z);f=f+Math.imul(p,W)|0;c=c+Math.imul(p,H)|0;c=c+Math.imul(v,W)|0;l=l+Math.imul(v,H)|0;f=f+Math.imul(o,J)|0;c=c+Math.imul(o,Y)|0;c=c+Math.imul(u,J)|0;l=l+Math.imul(u,Y)|0;var ge=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(ge>>>26)|0;ge&=67108863;f=Math.imul(m,N);c=Math.imul(m,z);c=c+Math.imul(A,N)|0;l=Math.imul(A,z);f=f+Math.imul(y,W)|0;c=c+Math.imul(y,H)|0;c=c+Math.imul(g,W)|0;l=l+Math.imul(g,H)|0;f=f+Math.imul(p,J)|0;c=c+Math.imul(p,Y)|0;c=c+Math.imul(v,J)|0;l=l+Math.imul(v,Y)|0;f=f+Math.imul(o,Z)|0;c=c+Math.imul(o,X)|0;c=c+Math.imul(u,Z)|0;l=l+Math.imul(u,X)|0;var we=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(we>>>26)|0;we&=67108863;f=Math.imul(S,N);c=Math.imul(S,z);c=c+Math.imul(k,N)|0;l=Math.imul(k,z);f=f+Math.imul(m,W)|0;c=c+Math.imul(m,H)|0;c=c+Math.imul(A,W)|0;l=l+Math.imul(A,H)|0;f=f+Math.imul(y,J)|0;c=c+Math.imul(y,Y)|0;c=c+Math.imul(g,J)|0;l=l+Math.imul(g,Y)|0;f=f+Math.imul(p,Z)|0;c=c+Math.imul(p,X)|0;c=c+Math.imul(v,Z)|0;l=l+Math.imul(v,X)|0;f=f+Math.imul(o,$)|0;c=c+Math.imul(o,ee)|0;c=c+Math.imul(u,$)|0;l=l+Math.imul(u,ee)|0;var me=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(me>>>26)|0;me&=67108863;f=Math.imul(M,N);c=Math.imul(M,z);c=c+Math.imul(C,N)|0;l=Math.imul(C,z);f=f+Math.imul(S,W)|0;c=c+Math.imul(S,H)|0;c=c+Math.imul(k,W)|0;l=l+Math.imul(k,H)|0;f=f+Math.imul(m,J)|0;c=c+Math.imul(m,Y)|0;c=c+Math.imul(A,J)|0;l=l+Math.imul(A,Y)|0;f=f+Math.imul(y,Z)|0;c=c+Math.imul(y,X)|0;c=c+Math.imul(g,Z)|0;l=l+Math.imul(g,X)|0;f=f+Math.imul(p,$)|0;c=c+Math.imul(p,ee)|0;c=c+Math.imul(v,$)|0;l=l+Math.imul(v,ee)|0;f=f+Math.imul(o,ne)|0;c=c+Math.imul(o,te)|0;c=c+Math.imul(u,ne)|0;l=l+Math.imul(u,te)|0;var Ae=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Ae>>>26)|0;Ae&=67108863;f=Math.imul(_,N);c=Math.imul(_,z);c=c+Math.imul(j,N)|0;l=Math.imul(j,z);f=f+Math.imul(M,W)|0;c=c+Math.imul(M,H)|0;c=c+Math.imul(C,W)|0;l=l+Math.imul(C,H)|0;f=f+Math.imul(S,J)|0;c=c+Math.imul(S,Y)|0;c=c+Math.imul(k,J)|0;l=l+Math.imul(k,Y)|0;f=f+Math.imul(m,Z)|0;c=c+Math.imul(m,X)|0;c=c+Math.imul(A,Z)|0;l=l+Math.imul(A,X)|0;f=f+Math.imul(y,$)|0;c=c+Math.imul(y,ee)|0;c=c+Math.imul(g,$)|0;l=l+Math.imul(g,ee)|0;f=f+Math.imul(p,ne)|0;c=c+Math.imul(p,te)|0;c=c+Math.imul(v,ne)|0;l=l+Math.imul(v,te)|0;f=f+Math.imul(o,ae)|0;c=c+Math.imul(o,se)|0;c=c+Math.imul(u,ae)|0;l=l+Math.imul(u,se)|0;var Ee=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Ee>>>26)|0;Ee&=67108863;f=Math.imul(q,N);c=Math.imul(q,z);c=c+Math.imul(U,N)|0;l=Math.imul(U,z);f=f+Math.imul(_,W)|0;c=c+Math.imul(_,H)|0;c=c+Math.imul(j,W)|0;l=l+Math.imul(j,H)|0;f=f+Math.imul(M,J)|0;c=c+Math.imul(M,Y)|0;c=c+Math.imul(C,J)|0;l=l+Math.imul(C,Y)|0;f=f+Math.imul(S,Z)|0;c=c+Math.imul(S,X)|0;c=c+Math.imul(k,Z)|0;l=l+Math.imul(k,X)|0;f=f+Math.imul(m,$)|0;c=c+Math.imul(m,ee)|0;c=c+Math.imul(A,$)|0;l=l+Math.imul(A,ee)|0;f=f+Math.imul(y,ne)|0;c=c+Math.imul(y,te)|0;c=c+Math.imul(g,ne)|0;l=l+Math.imul(g,te)|0;f=f+Math.imul(p,ae)|0;c=c+Math.imul(p,se)|0;c=c+Math.imul(v,ae)|0;l=l+Math.imul(v,se)|0;f=f+Math.imul(o,ce)|0;c=c+Math.imul(o,le)|0;c=c+Math.imul(u,ce)|0;l=l+Math.imul(u,le)|0;var Se=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Se>>>26)|0;Se&=67108863;f=Math.imul(I,N);c=Math.imul(I,z);c=c+Math.imul(K,N)|0;l=Math.imul(K,z);f=f+Math.imul(q,W)|0;c=c+Math.imul(q,H)|0;c=c+Math.imul(U,W)|0;l=l+Math.imul(U,H)|0;f=f+Math.imul(_,J)|0;c=c+Math.imul(_,Y)|0;c=c+Math.imul(j,J)|0;l=l+Math.imul(j,Y)|0;f=f+Math.imul(M,Z)|0;c=c+Math.imul(M,X)|0;c=c+Math.imul(C,Z)|0;l=l+Math.imul(C,X)|0;f=f+Math.imul(S,$)|0;c=c+Math.imul(S,ee)|0;c=c+Math.imul(k,$)|0;l=l+Math.imul(k,ee)|0;f=f+Math.imul(m,ne)|0;c=c+Math.imul(m,te)|0;c=c+Math.imul(A,ne)|0;l=l+Math.imul(A,te)|0;f=f+Math.imul(y,ae)|0;c=c+Math.imul(y,se)|0;c=c+Math.imul(g,ae)|0;l=l+Math.imul(g,se)|0;f=f+Math.imul(p,ce)|0;c=c+Math.imul(p,le)|0;c=c+Math.imul(v,ce)|0;l=l+Math.imul(v,le)|0;f=f+Math.imul(o,oe)|0;c=c+Math.imul(o,ue)|0;c=c+Math.imul(u,oe)|0;l=l+Math.imul(u,ue)|0;var ke=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(ke>>>26)|0;ke&=67108863;f=Math.imul(F,N);c=Math.imul(F,z);c=c+Math.imul(P,N)|0;l=Math.imul(P,z);f=f+Math.imul(I,W)|0;c=c+Math.imul(I,H)|0;c=c+Math.imul(K,W)|0;l=l+Math.imul(K,H)|0;f=f+Math.imul(q,J)|0;c=c+Math.imul(q,Y)|0;c=c+Math.imul(U,J)|0;l=l+Math.imul(U,Y)|0;f=f+Math.imul(_,Z)|0;c=c+Math.imul(_,X)|0;c=c+Math.imul(j,Z)|0;l=l+Math.imul(j,X)|0;f=f+Math.imul(M,$)|0;c=c+Math.imul(M,ee)|0;c=c+Math.imul(C,$)|0;l=l+Math.imul(C,ee)|0;f=f+Math.imul(S,ne)|0;c=c+Math.imul(S,te)|0;c=c+Math.imul(k,ne)|0;l=l+Math.imul(k,te)|0;f=f+Math.imul(m,ae)|0;c=c+Math.imul(m,se)|0;c=c+Math.imul(A,ae)|0;l=l+Math.imul(A,se)|0;f=f+Math.imul(y,ce)|0;c=c+Math.imul(y,le)|0;c=c+Math.imul(g,ce)|0;l=l+Math.imul(g,le)|0;f=f+Math.imul(p,oe)|0;c=c+Math.imul(p,ue)|0;c=c+Math.imul(v,oe)|0;l=l+Math.imul(v,ue)|0;f=f+Math.imul(o,pe)|0;c=c+Math.imul(o,ve)|0;c=c+Math.imul(u,pe)|0;l=l+Math.imul(u,ve)|0;var Re=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Re>>>26)|0;Re&=67108863;f=Math.imul(F,W);c=Math.imul(F,H);c=c+Math.imul(P,W)|0;l=Math.imul(P,H);f=f+Math.imul(I,J)|0;c=c+Math.imul(I,Y)|0;c=c+Math.imul(K,J)|0;l=l+Math.imul(K,Y)|0;f=f+Math.imul(q,Z)|0;c=c+Math.imul(q,X)|0;c=c+Math.imul(U,Z)|0;l=l+Math.imul(U,X)|0;f=f+Math.imul(_,$)|0;c=c+Math.imul(_,ee)|0;c=c+Math.imul(j,$)|0;l=l+Math.imul(j,ee)|0;f=f+Math.imul(M,ne)|0;c=c+Math.imul(M,te)|0;c=c+Math.imul(C,ne)|0;l=l+Math.imul(C,te)|0;f=f+Math.imul(S,ae)|0;c=c+Math.imul(S,se)|0;c=c+Math.imul(k,ae)|0;l=l+Math.imul(k,se)|0;f=f+Math.imul(m,ce)|0;c=c+Math.imul(m,le)|0;c=c+Math.imul(A,ce)|0;l=l+Math.imul(A,le)|0;f=f+Math.imul(y,oe)|0;c=c+Math.imul(y,ue)|0;c=c+Math.imul(g,oe)|0;l=l+Math.imul(g,ue)|0;f=f+Math.imul(p,pe)|0;c=c+Math.imul(p,ve)|0;c=c+Math.imul(v,pe)|0;l=l+Math.imul(v,ve)|0;var Me=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Me>>>26)|0;Me&=67108863;f=Math.imul(F,J);c=Math.imul(F,Y);c=c+Math.imul(P,J)|0;l=Math.imul(P,Y);f=f+Math.imul(I,Z)|0;c=c+Math.imul(I,X)|0;c=c+Math.imul(K,Z)|0;l=l+Math.imul(K,X)|0;f=f+Math.imul(q,$)|0;c=c+Math.imul(q,ee)|0;c=c+Math.imul(U,$)|0;l=l+Math.imul(U,ee)|0;f=f+Math.imul(_,ne)|0;c=c+Math.imul(_,te)|0;c=c+Math.imul(j,ne)|0;l=l+Math.imul(j,te)|0;f=f+Math.imul(M,ae)|0;c=c+Math.imul(M,se)|0;c=c+Math.imul(C,ae)|0;l=l+Math.imul(C,se)|0;f=f+Math.imul(S,ce)|0;c=c+Math.imul(S,le)|0;c=c+Math.imul(k,ce)|0;l=l+Math.imul(k,le)|0;f=f+Math.imul(m,oe)|0;c=c+Math.imul(m,ue)|0;c=c+Math.imul(A,oe)|0;l=l+Math.imul(A,ue)|0;f=f+Math.imul(y,pe)|0;c=c+Math.imul(y,ve)|0;c=c+Math.imul(g,pe)|0;l=l+Math.imul(g,ve)|0;var Ce=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Ce>>>26)|0;Ce&=67108863;f=Math.imul(F,Z);c=Math.imul(F,X);c=c+Math.imul(P,Z)|0;l=Math.imul(P,X);f=f+Math.imul(I,$)|0;c=c+Math.imul(I,ee)|0;c=c+Math.imul(K,$)|0;l=l+Math.imul(K,ee)|0;f=f+Math.imul(q,ne)|0;c=c+Math.imul(q,te)|0;c=c+Math.imul(U,ne)|0;l=l+Math.imul(U,te)|0;f=f+Math.imul(_,ae)|0;c=c+Math.imul(_,se)|0;c=c+Math.imul(j,ae)|0;l=l+Math.imul(j,se)|0;f=f+Math.imul(M,ce)|0;c=c+Math.imul(M,le)|0;c=c+Math.imul(C,ce)|0;l=l+Math.imul(C,le)|0;f=f+Math.imul(S,oe)|0;c=c+Math.imul(S,ue)|0;c=c+Math.imul(k,oe)|0;l=l+Math.imul(k,ue)|0;f=f+Math.imul(m,pe)|0;c=c+Math.imul(m,ve)|0;c=c+Math.imul(A,pe)|0;l=l+Math.imul(A,ve)|0;var De=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(De>>>26)|0;De&=67108863;f=Math.imul(F,$);c=Math.imul(F,ee);c=c+Math.imul(P,$)|0;l=Math.imul(P,ee);f=f+Math.imul(I,ne)|0;c=c+Math.imul(I,te)|0;c=c+Math.imul(K,ne)|0;l=l+Math.imul(K,te)|0;f=f+Math.imul(q,ae)|0;c=c+Math.imul(q,se)|0;c=c+Math.imul(U,ae)|0;l=l+Math.imul(U,se)|0;f=f+Math.imul(_,ce)|0;c=c+Math.imul(_,le)|0;c=c+Math.imul(j,ce)|0;l=l+Math.imul(j,le)|0;f=f+Math.imul(M,oe)|0;c=c+Math.imul(M,ue)|0;c=c+Math.imul(C,oe)|0;l=l+Math.imul(C,ue)|0;f=f+Math.imul(S,pe)|0;c=c+Math.imul(S,ve)|0;c=c+Math.imul(k,pe)|0;l=l+Math.imul(k,ve)|0;var _e=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(_e>>>26)|0;_e&=67108863;f=Math.imul(F,ne);c=Math.imul(F,te);c=c+Math.imul(P,ne)|0;l=Math.imul(P,te);f=f+Math.imul(I,ae)|0;c=c+Math.imul(I,se)|0;c=c+Math.imul(K,ae)|0;l=l+Math.imul(K,se)|0;f=f+Math.imul(q,ce)|0;c=c+Math.imul(q,le)|0;c=c+Math.imul(U,ce)|0;l=l+Math.imul(U,le)|0;f=f+Math.imul(_,oe)|0;c=c+Math.imul(_,ue)|0;c=c+Math.imul(j,oe)|0;l=l+Math.imul(j,ue)|0;f=f+Math.imul(M,pe)|0;c=c+Math.imul(M,ve)|0;c=c+Math.imul(C,pe)|0;l=l+Math.imul(C,ve)|0;var je=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(je>>>26)|0;je&=67108863;f=Math.imul(F,ae);c=Math.imul(F,se);c=c+Math.imul(P,ae)|0;l=Math.imul(P,se);f=f+Math.imul(I,ce)|0;c=c+Math.imul(I,le)|0;c=c+Math.imul(K,ce)|0;l=l+Math.imul(K,le)|0;f=f+Math.imul(q,oe)|0;c=c+Math.imul(q,ue)|0;c=c+Math.imul(U,oe)|0;l=l+Math.imul(U,ue)|0;f=f+Math.imul(_,pe)|0;c=c+Math.imul(_,ve)|0;c=c+Math.imul(j,pe)|0;l=l+Math.imul(j,ve)|0;var Be=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Be>>>26)|0;Be&=67108863;f=Math.imul(F,ce);c=Math.imul(F,le);c=c+Math.imul(P,ce)|0;l=Math.imul(P,le);f=f+Math.imul(I,oe)|0;c=c+Math.imul(I,ue)|0;c=c+Math.imul(K,oe)|0;l=l+Math.imul(K,ue)|0;f=f+Math.imul(q,pe)|0;c=c+Math.imul(q,ve)|0;c=c+Math.imul(U,pe)|0;l=l+Math.imul(U,ve)|0;var qe=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(qe>>>26)|0;qe&=67108863;f=Math.imul(F,oe);c=Math.imul(F,ue);c=c+Math.imul(P,oe)|0;l=Math.imul(P,ue);f=f+Math.imul(I,pe)|0;c=c+Math.imul(I,ve)|0;c=c+Math.imul(K,pe)|0;l=l+Math.imul(K,ve)|0;var Ue=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(Ue>>>26)|0;Ue&=67108863;f=Math.imul(F,pe);c=Math.imul(F,ve);c=c+Math.imul(P,pe)|0;l=Math.imul(P,ve);var xe=(s+f|0)+((c&8191)<<13)|0;s=(l+(c>>>13)|0)+(xe>>>26)|0;xe&=67108863;a[0]=be;a[1]=ye;a[2]=ge;a[3]=we;a[4]=me;a[5]=Ae;a[6]=Ee;a[7]=Se;a[8]=ke;a[9]=Re;a[10]=Me;a[11]=Ce;a[12]=De;a[13]=_e;a[14]=je;a[15]=Be;a[16]=qe;a[17]=Ue;a[18]=xe;if(s!==0){a[19]=s;n.length++}return n};if(!Math.imul){f=smallMulTo}function bigMulTo(e,r,n){n.negative=r.negative^e.negative;n.length=e.length+r.length;var t=0;var i=0;for(var a=0;a>>26)|0;i+=s>>>26;s&=67108863}n.words[a]=f;t=s;s=i}if(t!==0){n.words[a]=t}else{n.length--}return n.strip()}function jumboMulTo(e,r,n){var t=new FFTM;return t.mulp(e,r,n)}BN.prototype.mulTo=function mulTo(e,r){var n;var t=this.length+e.length;if(this.length===10&&e.length===10){n=f(this,e,r)}else if(t<63){n=smallMulTo(this,e,r)}else if(t<1024){n=bigMulTo(this,e,r)}else{n=jumboMulTo(this,e,r)}return n};function FFTM(e,r){this.x=e;this.y=r}FFTM.prototype.makeRBT=function makeRBT(e){var r=new Array(e);var n=BN.prototype._countBits(e)-1;for(var t=0;t>=1}return t};FFTM.prototype.permute=function permute(e,r,n,t,i,a){for(var s=0;s>>1){i++}return 1<>>13;n[2*a+1]=i&8191;i=i>>>13}for(a=2*r;a>=26;r+=t/67108864|0;r+=i>>>26;this.words[n]=i&67108863}if(r!==0){this.words[n]=r;this.length++}return this};BN.prototype.muln=function muln(e){return this.clone().imuln(e)};BN.prototype.sqr=function sqr(){return this.mul(this)};BN.prototype.isqr=function isqr(){return this.imul(this.clone())};BN.prototype.pow=function pow(e){var r=toBitArray(e);if(r.length===0)return new BN(1);var n=this;for(var t=0;t=0);var r=e%26;var n=(e-r)/26;var t=67108863>>>26-r<<26-r;var i;if(r!==0){var a=0;for(i=0;i>>26-r}if(a){this.words[i]=a;this.length++}}if(n!==0){for(i=this.length-1;i>=0;i--){this.words[i+n]=this.words[i]}for(i=0;i=0);var t;if(r){t=(r-r%26)/26}else{t=0}var i=e%26;var a=Math.min((e-i)/26,this.length);var s=67108863^67108863>>>i<a){this.length-=a;for(c=0;c=0&&(l!==0||c>=t);c--){var d=this.words[c]|0;this.words[c]=l<<26-i|d>>>i;l=d&s}if(f&&l!==0){f.words[f.length++]=l}if(this.length===0){this.words[0]=0;this.length=1}return this.strip()};BN.prototype.ishrn=function ishrn(e,r,n){assert(this.negative===0);return this.iushrn(e,r,n)};BN.prototype.shln=function shln(e){return this.clone().ishln(e)};BN.prototype.ushln=function ushln(e){return this.clone().iushln(e)};BN.prototype.shrn=function shrn(e){return this.clone().ishrn(e)};BN.prototype.ushrn=function ushrn(e){return this.clone().iushrn(e)};BN.prototype.testn=function testn(e){assert(typeof e==="number"&&e>=0);var r=e%26;var n=(e-r)/26;var t=1<=0);var r=e%26;var n=(e-r)/26;assert(this.negative===0,"imaskn works only with positive numbers");if(this.length<=n){return this}if(r!==0){n++}this.length=Math.min(n,this.length);if(r!==0){var t=67108863^67108863>>>r<=67108864;r++){this.words[r]-=67108864;if(r===this.length-1){this.words[r+1]=1}else{this.words[r+1]++}}this.length=Math.max(this.length,r+1);return this};BN.prototype.isubn=function isubn(e){assert(typeof e==="number");assert(e<67108864);if(e<0)return this.iaddn(-e);if(this.negative!==0){this.negative=0;this.iaddn(e);this.negative=1;return this}this.words[0]-=e;if(this.length===1&&this.words[0]<0){this.words[0]=-this.words[0];this.negative=1}else{for(var r=0;r>26)-(f/67108864|0);this.words[i+n]=a&67108863}for(;i>26;this.words[i+n]=a&67108863}if(s===0)return this.strip();assert(s===-1);s=0;for(i=0;i>26;this.words[i]=a&67108863}this.negative=1;return this.strip()};BN.prototype._wordDiv=function _wordDiv(e,r){var n=this.length-e.length;var t=this.clone();var i=e;var a=i.words[i.length-1]|0;var s=this._countBits(a);n=26-s;if(n!==0){i=i.ushln(n);t.iushln(n);a=i.words[i.length-1]|0}var f=t.length-i.length;var c;if(r!=="mod"){c=new BN(null);c.length=f+1;c.words=new Array(c.length);for(var l=0;l=0;o--){var u=(t.words[i.length+o]|0)*67108864+(t.words[i.length+o-1]|0);u=Math.min(u/a|0,67108863);t._ishlnsubmul(i,u,o);while(t.negative!==0){u--;t.negative=0;t._ishlnsubmul(i,1,o);if(!t.isZero()){t.negative^=1}}if(c){c.words[o]=u}}if(c){c.strip()}t.strip();if(r!=="div"&&n!==0){t.iushrn(n)}return{div:c||null,mod:t}};BN.prototype.divmod=function divmod(e,r,n){assert(!e.isZero());if(this.isZero()){return{div:new BN(0),mod:new BN(0)}}var t,i,a;if(this.negative!==0&&e.negative===0){a=this.neg().divmod(e,r);if(r!=="mod"){t=a.div.neg()}if(r!=="div"){i=a.mod.neg();if(n&&i.negative!==0){i.iadd(e)}}return{div:t,mod:i}}if(this.negative===0&&e.negative!==0){a=this.divmod(e.neg(),r);if(r!=="mod"){t=a.div.neg()}return{div:t,mod:a.mod}}if((this.negative&e.negative)!==0){a=this.neg().divmod(e.neg(),r);if(r!=="div"){i=a.mod.neg();if(n&&i.negative!==0){i.isub(e)}}return{div:a.div,mod:i}}if(e.length>this.length||this.cmp(e)<0){return{div:new BN(0),mod:this}}if(e.length===1){if(r==="div"){return{div:this.divn(e.words[0]),mod:null}}if(r==="mod"){return{div:null,mod:new BN(this.modn(e.words[0]))}}return{div:this.divn(e.words[0]),mod:new BN(this.modn(e.words[0]))}}return this._wordDiv(e,r)};BN.prototype.div=function div(e){return this.divmod(e,"div",false).div};BN.prototype.mod=function mod(e){return this.divmod(e,"mod",false).mod};BN.prototype.umod=function umod(e){return this.divmod(e,"mod",true).mod};BN.prototype.divRound=function divRound(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=r.div.negative!==0?r.mod.isub(e):r.mod;var t=e.ushrn(1);var i=e.andln(1);var a=n.cmp(t);if(a<0||i===1&&a===0)return r.div;return r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)};BN.prototype.modn=function modn(e){assert(e<=67108863);var r=(1<<26)%e;var n=0;for(var t=this.length-1;t>=0;t--){n=(r*n+(this.words[t]|0))%e}return n};BN.prototype.idivn=function idivn(e){assert(e<=67108863);var r=0;for(var n=this.length-1;n>=0;n--){var t=(this.words[n]|0)+r*67108864;this.words[n]=t/e|0;r=t%e}return this.strip()};BN.prototype.divn=function divn(e){return this.clone().idivn(e)};BN.prototype.egcd=function egcd(e){assert(e.negative===0);assert(!e.isZero());var r=this;var n=e.clone();if(r.negative!==0){r=r.umod(e)}else{r=r.clone()}var t=new BN(1);var i=new BN(0);var a=new BN(0);var s=new BN(1);var f=0;while(r.isEven()&&n.isEven()){r.iushrn(1);n.iushrn(1);++f}var c=n.clone();var l=r.clone();while(!r.isZero()){for(var d=0,o=1;(r.words[0]&o)===0&&d<26;++d,o<<=1);if(d>0){r.iushrn(d);while(d-- >0){if(t.isOdd()||i.isOdd()){t.iadd(c);i.isub(l)}t.iushrn(1);i.iushrn(1)}}for(var u=0,h=1;(n.words[0]&h)===0&&u<26;++u,h<<=1);if(u>0){n.iushrn(u);while(u-- >0){if(a.isOdd()||s.isOdd()){a.iadd(c);s.isub(l)}a.iushrn(1);s.iushrn(1)}}if(r.cmp(n)>=0){r.isub(n);t.isub(a);i.isub(s)}else{n.isub(r);a.isub(t);s.isub(i)}}return{a:a,b:s,gcd:n.iushln(f)}};BN.prototype._invmp=function _invmp(e){assert(e.negative===0);assert(!e.isZero());var r=this;var n=e.clone();if(r.negative!==0){r=r.umod(e)}else{r=r.clone()}var t=new BN(1);var i=new BN(0);var a=n.clone();while(r.cmpn(1)>0&&n.cmpn(1)>0){for(var s=0,f=1;(r.words[0]&f)===0&&s<26;++s,f<<=1);if(s>0){r.iushrn(s);while(s-- >0){if(t.isOdd()){t.iadd(a)}t.iushrn(1)}}for(var c=0,l=1;(n.words[0]&l)===0&&c<26;++c,l<<=1);if(c>0){n.iushrn(c);while(c-- >0){if(i.isOdd()){i.iadd(a)}i.iushrn(1)}}if(r.cmp(n)>=0){r.isub(n);t.isub(i)}else{n.isub(r);i.isub(t)}}var d;if(r.cmpn(1)===0){d=t}else{d=i}if(d.cmpn(0)<0){d.iadd(e)}return d};BN.prototype.gcd=function gcd(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone();var n=e.clone();r.negative=0;n.negative=0;for(var t=0;r.isEven()&&n.isEven();t++){r.iushrn(1);n.iushrn(1)}do{while(r.isEven()){r.iushrn(1)}while(n.isEven()){n.iushrn(1)}var i=r.cmp(n);if(i<0){var a=r;r=n;n=a}else if(i===0||n.cmpn(1)===0){break}r.isub(n)}while(true);return n.iushln(t)};BN.prototype.invm=function invm(e){return this.egcd(e).a.umod(e)};BN.prototype.isEven=function isEven(){return(this.words[0]&1)===0};BN.prototype.isOdd=function isOdd(){return(this.words[0]&1)===1};BN.prototype.andln=function andln(e){return this.words[0]&e};BN.prototype.bincn=function bincn(e){assert(typeof e==="number");var r=e%26;var n=(e-r)/26;var t=1<>>26;s&=67108863;this.words[a]=s}if(i!==0){this.words[a]=i;this.length++}return this};BN.prototype.isZero=function isZero(){return this.length===1&&this.words[0]===0};BN.prototype.cmpn=function cmpn(e){var r=e<0;if(this.negative!==0&&!r)return-1;if(this.negative===0&&r)return 1;this.strip();var n;if(this.length>1){n=1}else{if(r){e=-e}assert(e<=67108863,"Number is too big");var t=this.words[0]|0;n=t===e?0:te.length)return 1;if(this.length=0;n--){var t=this.words[n]|0;var i=e.words[n]|0;if(t===i)continue;if(ti){r=1}break}return r};BN.prototype.gtn=function gtn(e){return this.cmpn(e)===1};BN.prototype.gt=function gt(e){return this.cmp(e)===1};BN.prototype.gten=function gten(e){return this.cmpn(e)>=0};BN.prototype.gte=function gte(e){return this.cmp(e)>=0};BN.prototype.ltn=function ltn(e){return this.cmpn(e)===-1};BN.prototype.lt=function lt(e){return this.cmp(e)===-1};BN.prototype.lten=function lten(e){return this.cmpn(e)<=0};BN.prototype.lte=function lte(e){return this.cmp(e)<=0};BN.prototype.eqn=function eqn(e){return this.cmpn(e)===0};BN.prototype.eq=function eq(e){return this.cmp(e)===0};BN.red=function red(e){return new Red(e)};BN.prototype.toRed=function toRed(e){assert(!this.red,"Already a number in reduction context");assert(this.negative===0,"red works only with positives");return e.convertTo(this)._forceRed(e)};BN.prototype.fromRed=function fromRed(){assert(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)};BN.prototype._forceRed=function _forceRed(e){this.red=e;return this};BN.prototype.forceRed=function forceRed(e){assert(!this.red,"Already a number in reduction context");return this._forceRed(e)};BN.prototype.redAdd=function redAdd(e){assert(this.red,"redAdd works only with red numbers");return this.red.add(this,e)};BN.prototype.redIAdd=function redIAdd(e){assert(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,e)};BN.prototype.redSub=function redSub(e){assert(this.red,"redSub works only with red numbers");return this.red.sub(this,e)};BN.prototype.redISub=function redISub(e){assert(this.red,"redISub works only with red numbers");return this.red.isub(this,e)};BN.prototype.redShl=function redShl(e){assert(this.red,"redShl works only with red numbers");return this.red.shl(this,e)};BN.prototype.redMul=function redMul(e){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,e);return this.red.mul(this,e)};BN.prototype.redIMul=function redIMul(e){assert(this.red,"redMul works only with red numbers");this.red._verify2(this,e);return this.red.imul(this,e)};BN.prototype.redSqr=function redSqr(){assert(this.red,"redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};BN.prototype.redISqr=function redISqr(){assert(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};BN.prototype.redSqrt=function redSqrt(){assert(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};BN.prototype.redInvm=function redInvm(){assert(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};BN.prototype.redNeg=function redNeg(){assert(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};BN.prototype.redPow=function redPow(e){assert(this.red&&!e.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,e)};var c={k256:null,p224:null,p192:null,p25519:null};function MPrime(e,r){this.name=e;this.p=new BN(r,16);this.n=this.p.bitLength();this.k=new BN(1).iushln(this.n).isub(this.p);this.tmp=this._tmp()}MPrime.prototype._tmp=function _tmp(){var e=new BN(null);e.words=new Array(Math.ceil(this.n/13));return e};MPrime.prototype.ireduce=function ireduce(e){var r=e;var n;do{this.split(r,this.tmp);r=this.imulK(r);r=r.iadd(this.tmp);n=r.bitLength()}while(n>this.n);var t=n0){r.isub(this.p)}else{r.strip()}return r};MPrime.prototype.split=function split(e,r){e.iushrn(this.n,0,r)};MPrime.prototype.imulK=function imulK(e){return e.imul(this.k)};function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}inherits(K256,MPrime);K256.prototype.split=function split(e,r){var n=4194303;var t=Math.min(e.length,9);for(var i=0;i>>22;a=s}a>>>=22;e.words[i-10]=a;if(a===0&&e.length>10){e.length-=10}else{e.length-=9}};K256.prototype.imulK=function imulK(e){e.words[e.length]=0;e.words[e.length+1]=0;e.length+=2;var r=0;for(var n=0;n>>=26;e.words[n]=i;r=t}if(r!==0){e.words[e.length++]=r}return e};BN._prime=function prime(e){if(c[e])return c[e];var prime;if(e==="k256"){prime=new K256}else if(e==="p224"){prime=new P224}else if(e==="p192"){prime=new P192}else if(e==="p25519"){prime=new P25519}else{throw new Error("Unknown prime "+e)}c[e]=prime;return prime};function Red(e){if(typeof e==="string"){var r=BN._prime(e);this.m=r.p;this.prime=r}else{assert(e.gtn(1),"modulus must be greater than 1");this.m=e;this.prime=null}}Red.prototype._verify1=function _verify1(e){assert(e.negative===0,"red works only with positives");assert(e.red,"red works only with red numbers")};Red.prototype._verify2=function _verify2(e,r){assert((e.negative|r.negative)===0,"red works only with positives");assert(e.red&&e.red===r.red,"red works only with red numbers")};Red.prototype.imod=function imod(e){if(this.prime)return this.prime.ireduce(e)._forceRed(this);return e.umod(this.m)._forceRed(this)};Red.prototype.neg=function neg(e){if(e.isZero()){return e.clone()}return this.m.sub(e)._forceRed(this)};Red.prototype.add=function add(e,r){this._verify2(e,r);var n=e.add(r);if(n.cmp(this.m)>=0){n.isub(this.m)}return n._forceRed(this)};Red.prototype.iadd=function iadd(e,r){this._verify2(e,r);var n=e.iadd(r);if(n.cmp(this.m)>=0){n.isub(this.m)}return n};Red.prototype.sub=function sub(e,r){this._verify2(e,r);var n=e.sub(r);if(n.cmpn(0)<0){n.iadd(this.m)}return n._forceRed(this)};Red.prototype.isub=function isub(e,r){this._verify2(e,r);var n=e.isub(r);if(n.cmpn(0)<0){n.iadd(this.m)}return n};Red.prototype.shl=function shl(e,r){this._verify1(e);return this.imod(e.ushln(r))};Red.prototype.imul=function imul(e,r){this._verify2(e,r);return this.imod(e.imul(r))};Red.prototype.mul=function mul(e,r){this._verify2(e,r);return this.imod(e.mul(r))};Red.prototype.isqr=function isqr(e){return this.imul(e,e.clone())};Red.prototype.sqr=function sqr(e){return this.mul(e,e)};Red.prototype.sqrt=function sqrt(e){if(e.isZero())return e.clone();var r=this.m.andln(3);assert(r%2===1);if(r===3){var n=this.m.add(new BN(1)).iushrn(2);return this.pow(e,n)}var t=this.m.subn(1);var i=0;while(!t.isZero()&&t.andln(1)===0){i++;t.iushrn(1)}assert(!t.isZero());var a=new BN(1).toRed(this);var s=a.redNeg();var f=this.m.subn(1).iushrn(1);var c=this.m.bitLength();c=new BN(2*c*c).toRed(this);while(this.pow(c,f).cmp(s)!==0){c.redIAdd(s)}var l=this.pow(c,t);var d=this.pow(e,t.addn(1).iushrn(1));var o=this.pow(e,t);var u=i;while(o.cmp(a)!==0){var h=o;for(var p=0;h.cmp(a)!==0;p++){h=h.redSqr()}assert(p=0;i--){var l=r.words[i];for(var d=c-1;d>=0;d--){var o=l>>d&1;if(a!==t[0]){a=this.sqr(a)}if(o===0&&s===0){f=0;continue}s<<=1;s|=o;f++;if(f!==n&&(i!==0||d!==0))continue;a=this.mul(a,t[s]);f=0;s=0}c=26}return a};Red.prototype.convertTo=function convertTo(e){var r=e.umod(this.m);return r===e?r.clone():r};Red.prototype.convertFrom=function convertFrom(e){var r=e.clone();r.red=null;return r};BN.mont=function mont(e){return new Mont(e)};function Mont(e){Red.call(this,e);this.shift=this.m.bitLength();if(this.shift%26!==0){this.shift+=26-this.shift%26}this.r=new BN(1).iushln(this.shift);this.r2=this.imod(this.r.sqr());this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv)}inherits(Mont,Red);Mont.prototype.convertTo=function convertTo(e){return this.imod(e.ushln(this.shift))};Mont.prototype.convertFrom=function convertFrom(e){var r=this.imod(e.mul(this.rinv));r.red=null;return r};Mont.prototype.imul=function imul(e,r){if(e.isZero()||r.isZero()){e.words[0]=0;e.length=1;return e}var n=e.imul(r);var t=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var i=n.isub(t).iushrn(this.shift);var a=i;if(i.cmp(this.m)>=0){a=i.isub(this.m)}else if(i.cmpn(0)<0){a=i.iadd(this.m)}return a._forceRed(this)};Mont.prototype.mul=function mul(e,r){if(e.isZero()||r.isZero())return new BN(0)._forceRed(this);var n=e.mul(r);var t=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var i=n.isub(t).iushrn(this.shift);var a=i;if(i.cmp(this.m)>=0){a=i.isub(this.m)}else if(i.cmpn(0)<0){a=i.iadd(this.m)}return a._forceRed(this)};Mont.prototype.invm=function invm(e){var r=this.imod(e._invmp(this.m).mul(this.r2));return r._forceRed(this)}})(typeof r==="undefined"||r,this)},{buffer:"buffer"}],31:[function(e,r,n){var t;r.exports=function rand(e){if(!t)t=new Rand(null);return t.generate(e)};function Rand(e){this.rand=e}r.exports.Rand=Rand;Rand.prototype.generate=function generate(e){return this._rand(e)};Rand.prototype._rand=function _rand(e){if(this.rand.getBytes)return this.rand.getBytes(e);var r=new Uint8Array(e);for(var n=0;n0){this.redN=null}else{this._maxwellTrick=true;this.redN=this.n.toRed(this.red)}}r.exports=BaseCurve;BaseCurve.prototype.point=function point(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function validate(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function _fixedNafMul(e,r){f(e.precomputed);var n=e._getDoubles();var t=a(r,1);var i=(1<=c;r--)l=(l<<1)+t[r];s.push(l)}var d=this.jpoint(null,null,null);var o=this.jpoint(null,null,null);for(var u=i;u>0;u--){for(var c=0;c=0;l--){for(var r=0;l>=0&&s[l]===0;l--)r++;if(l>=0)r++;c=c.dblp(r);if(l<0)break;var d=s[l];f(d!==0);if(e.type==="affine"){if(d>0)c=c.mixedAdd(i[d-1>>1]);else c=c.mixedAdd(i[-d-1>>1].neg())}else{if(d>0)c=c.add(i[d-1>>1]);else c=c.add(i[-d-1>>1].neg())}}return e.type==="affine"?c.toP():c};BaseCurve.prototype._wnafMulAdd=function _wnafMulAdd(e,r,n,t,i){var f=this._wnafT1;var c=this._wnafT2;var l=this._wnafT3;var d=0;for(var o=0;o=1;o-=2){var p=o-1;var v=o;if(f[p]!==1||f[v]!==1){l[p]=a(n[p],f[p]);l[v]=a(n[v],f[v]);d=Math.max(l[p].length,d);d=Math.max(l[v].length,d);continue}var b=[r[p],null,null,r[v]];if(r[p].y.cmp(r[v].y)===0){b[1]=r[p].add(r[v]);b[2]=r[p].toJ().mixedAdd(r[v].neg())}else if(r[p].y.cmp(r[v].y.redNeg())===0){b[1]=r[p].toJ().mixedAdd(r[v]);b[2]=r[p].add(r[v].neg())}else{b[1]=r[p].toJ().mixedAdd(r[v]);b[2]=r[p].toJ().mixedAdd(r[v].neg())}var y=[-3,-1,-5,-7,0,7,5,1,3];var g=s(n[p],n[v]);d=Math.max(g[0].length,d);l[p]=new Array(d);l[v]=new Array(d);for(var w=0;w=0;o--){var k=0;while(o>=0){var R=true;for(var w=0;w=0)k++;E=E.dblp(k);if(o<0)break;for(var w=0;w0)u=c[w][M-1>>1];else if(M<0)u=c[w][-M-1>>1].neg();if(u.type==="affine")E=E.mixedAdd(u);else E=E.add(u)}}for(var o=0;o=Math.ceil((e.bitLength()+1)/r.step)};BasePoint.prototype._getDoubles=function _getDoubles(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;var n=[this];var t=this;for(var i=0;i";return""};Point.prototype.isInfinity=function isInfinity(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function _extDbl(){var e=this.x.redSqr();var r=this.y.redSqr();var n=this.z.redSqr();n=n.redIAdd(n);var t=this.curve._mulA(e);var i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(r);var a=t.redAdd(r);var s=a.redSub(n);var f=t.redSub(r);var c=i.redMul(s);var l=a.redMul(f);var d=i.redMul(f);var o=s.redMul(a);return this.curve.point(c,l,o,d)};Point.prototype._projDbl=function _projDbl(){var e=this.x.redAdd(this.y).redSqr();var r=this.x.redSqr();var n=this.y.redSqr();var t;var i;var a;if(this.curve.twisted){var s=this.curve._mulA(r);var f=s.redAdd(n);if(this.zOne){t=e.redSub(r).redSub(n).redMul(f.redSub(this.curve.two));i=f.redMul(s.redSub(n));a=f.redSqr().redSub(f).redSub(f)}else{var c=this.z.redSqr();var l=f.redSub(c).redISub(c);t=e.redSub(r).redISub(n).redMul(l);i=f.redMul(s.redSub(n));a=f.redMul(l)}}else{var s=r.redAdd(n);var c=this.curve._mulC(this.z).redSqr();var l=s.redSub(c).redSub(c);t=this.curve._mulC(e.redISub(s)).redMul(l);i=this.curve._mulC(s).redMul(r.redISub(n));a=s.redMul(l)}return this.curve.point(t,i,a)};Point.prototype.dbl=function dbl(){if(this.isInfinity())return this;if(this.curve.extended)return this._extDbl();else return this._projDbl()};Point.prototype._extAdd=function _extAdd(e){var r=this.y.redSub(this.x).redMul(e.y.redSub(e.x));var n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x));var t=this.t.redMul(this.curve.dd).redMul(e.t);var i=this.z.redMul(e.z.redAdd(e.z));var a=n.redSub(r);var s=i.redSub(t);var f=i.redAdd(t);var c=n.redAdd(r);var l=a.redMul(s);var d=f.redMul(c);var o=a.redMul(c);var u=s.redMul(f);return this.curve.point(l,d,u,o)};Point.prototype._projAdd=function _projAdd(e){var r=this.z.redMul(e.z);var n=r.redSqr();var t=this.x.redMul(e.x);var i=this.y.redMul(e.y);var a=this.curve.d.redMul(t).redMul(i);var s=n.redSub(a);var f=n.redAdd(a);var c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(t).redISub(i);var l=r.redMul(s).redMul(c);var d;var o;if(this.curve.twisted){d=r.redMul(f).redMul(i.redSub(this.curve._mulA(t)));o=s.redMul(f)}else{d=r.redMul(f).redMul(i.redSub(t));o=this.curve._mulC(s).redMul(f)}return this.curve.point(l,d,o)};Point.prototype.add=function add(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.curve.extended)return this._extAdd(e);else return this._projAdd(e)};Point.prototype.mul=function mul(e){if(this._hasDoubles(e))return this.curve._fixedNafMul(this,e);else return this.curve._wnafMul(this,e)};Point.prototype.mulAdd=function mulAdd(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,false)};Point.prototype.jmulAdd=function jmulAdd(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,true)};Point.prototype.normalize=function normalize(){if(this.zOne)return this;var e=this.z.redInvm();this.x=this.x.redMul(e);this.y=this.y.redMul(e);if(this.t)this.t=this.t.redMul(e);this.z=this.curve.one;this.zOne=true;return this};Point.prototype.neg=function neg(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function getX(){this.normalize();return this.x.fromRed()};Point.prototype.getY=function getY(){this.normalize();return this.y.fromRed()};Point.prototype.eq=function eq(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};Point.prototype.eqXToP=function eqXToP(e){var r=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return true;var n=e.clone();var t=this.curve.redN.redMul(this.z);for(;;){n.iadd(this.curve.n);if(n.cmp(this.curve.p)>=0)return false;r.redIAdd(t);if(this.x.cmp(r)===0)return true}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add},{"../utils":46,"./base":33,"bn.js":30,inherits:61}],35:[function(e,r,n){"use strict";var t=n;t.base=e("./base");t.short=e("./short");t.mont=e("./mont");t.edwards=e("./edwards")},{"./base":33,"./edwards":34,"./mont":36,"./short":37}],36:[function(e,r,n){"use strict";var t=e("bn.js");var i=e("inherits");var a=e("./base");var s=e("../utils");function MontCurve(e){a.call(this,"mont",e);this.a=new t(e.a,16).toRed(this.red);this.b=new t(e.b,16).toRed(this.red);this.i4=new t(4).toRed(this.red).redInvm();this.two=new t(2).toRed(this.red);this.a24=this.i4.redMul(this.a.redAdd(this.two))}i(MontCurve,a);r.exports=MontCurve;MontCurve.prototype.validate=function validate(e){var r=e.normalize().x;var n=r.redSqr();var t=n.redMul(r).redAdd(n.redMul(this.a)).redAdd(r);var i=t.redSqrt();return i.redSqr().cmp(t)===0};function Point(e,r,n){a.BasePoint.call(this,e,"projective");if(r===null&&n===null){this.x=this.curve.one;this.z=this.curve.zero}else{this.x=new t(r,16);this.z=new t(n,16);if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red)}}i(Point,a.BasePoint);MontCurve.prototype.decodePoint=function decodePoint(e,r){var e=s.toArray(e,r);if(e.length===33&&e[0]===64)e=e.slice(1,33).reverse();if(e.length!==32)throw new Error("Unknown point compression format");return this.point(e,1)};MontCurve.prototype.point=function point(e,r){return new Point(this,e,r)};MontCurve.prototype.pointFromJSON=function pointFromJSON(e){return Point.fromJSON(this,e)};Point.prototype.precompute=function precompute(){};Point.prototype._encode=function _encode(e){var r=this.curve.p.byteLength();if(e){return[64].concat(this.getX().toArray("le",r))}else{return this.getX().toArray("be",r)}};Point.fromJSON=function fromJSON(e,r){return new Point(e,r[0],r[1]||e.one)};Point.prototype.inspect=function inspect(){if(this.isInfinity())return"";return""};Point.prototype.isInfinity=function isInfinity(){return this.z.cmpn(0)===0};Point.prototype.dbl=function dbl(){var e=this.x.redAdd(this.z);var r=e.redSqr();var n=this.x.redSub(this.z);var t=n.redSqr();var i=r.redSub(t);var a=r.redMul(t);var s=i.redMul(t.redAdd(this.curve.a24.redMul(i)));return this.curve.point(a,s)};Point.prototype.add=function add(){throw new Error("Not supported on Montgomery curve")};Point.prototype.diffAdd=function diffAdd(e,r){var n=this.x.redAdd(this.z);var t=this.x.redSub(this.z);var i=e.x.redAdd(e.z);var a=e.x.redSub(e.z);var s=a.redMul(n);var f=i.redMul(t);var c=r.z.redMul(s.redAdd(f).redSqr());var l=r.x.redMul(s.redISub(f).redSqr());return this.curve.point(c,l)};Point.prototype.mul=function mul(e){e=new t(e,16);var r=e.clone();var n=this;var i=this.curve.point(null,null);var a=this;for(var s=[];r.cmpn(0)!==0;r.iushrn(1))s.push(r.andln(1));for(var f=s.length-1;f>=0;f--){if(s[f]===0){n=n.diffAdd(i,a);i=i.dbl()}else{i=n.diffAdd(i,a);n=n.dbl()}}return i};Point.prototype.mulAdd=function mulAdd(){throw new Error("Not supported on Montgomery curve")};Point.prototype.jumlAdd=function jumlAdd(){throw new Error("Not supported on Montgomery curve")};Point.prototype.eq=function eq(e){return this.getX().cmp(e.getX())===0};Point.prototype.normalize=function normalize(){this.x=this.x.redMul(this.z.redInvm());this.z=this.curve.one;return this};Point.prototype.getX=function getX(){this.normalize();return this.x.fromRed()}},{"../utils":46,"./base":33,"bn.js":30,inherits:61}],37:[function(e,r,n){"use strict";var t=e("../utils");var i=e("bn.js");var a=e("inherits");var s=e("./base");var f=t.assert;function ShortCurve(e){s.call(this,"short",e);this.a=new i(e.a,16).toRed(this.red);this.b=new i(e.b,16).toRed(this.red);this.tinv=this.two.redInvm();this.zeroA=this.a.fromRed().cmpn(0)===0;this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0;this.endo=this._getEndomorphism(e);this._endoWnafT1=new Array(4);this._endoWnafT2=new Array(4)}a(ShortCurve,s);r.exports=ShortCurve;ShortCurve.prototype._getEndomorphism=function _getEndomorphism(e){if(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)return;var r;var n;if(e.beta){r=new i(e.beta,16).toRed(this.red)}else{var t=this._getEndoRoots(this.p);r=t[0].cmp(t[1])<0?t[0]:t[1];r=r.toRed(this.red)}if(e.lambda){n=new i(e.lambda,16)}else{var a=this._getEndoRoots(this.n);if(this.g.mul(a[0]).x.cmp(this.g.x.redMul(r))===0){n=a[0]}else{n=a[1];f(this.g.mul(n).x.cmp(this.g.x.redMul(r))===0)}}var s;if(e.basis){s=e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})}else{s=this._getEndoBasis(n)}return{beta:r,lambda:n,basis:s}};ShortCurve.prototype._getEndoRoots=function _getEndoRoots(e){var r=e===this.p?this.red:i.mont(e);var n=new i(2).toRed(r).redInvm();var t=n.redNeg();var a=new i(3).toRed(r).redNeg().redSqrt().redMul(n);var s=t.redAdd(a).fromRed();var f=t.redSub(a).fromRed();return[s,f]};ShortCurve.prototype._getEndoBasis=function _getEndoBasis(e){var r=this.n.ushrn(Math.floor(this.n.bitLength()/2));var n=e;var t=this.n.clone();var a=new i(1);var s=new i(0);var f=new i(0);var c=new i(1);var l;var d;var o;var u;var h;var p;var v;var b=0;var y;var g;while(n.cmpn(0)!==0){var w=t.div(n);y=t.sub(w.mul(n));g=f.sub(w.mul(a));var m=c.sub(w.mul(s));if(!o&&y.cmp(r)<0){l=v.neg();d=a;o=y.neg();u=g}else if(o&&++b===2){break}v=y;t=n;n=y;f=a;a=g;c=s;s=m}h=y.neg();p=g;var A=o.sqr().add(u.sqr());var E=h.sqr().add(p.sqr());if(E.cmp(A)>=0){h=l;p=d}if(o.negative){o=o.neg();u=u.neg()}if(h.negative){h=h.neg();p=p.neg()}return[{a:o,b:u},{a:h,b:p}]};ShortCurve.prototype._endoSplit=function _endoSplit(e){var r=this.endo.basis;var n=r[0];var t=r[1];var i=t.b.mul(e).divRound(this.n);var a=n.b.neg().mul(e).divRound(this.n);var s=i.mul(n.a);var f=a.mul(t.a);var c=i.mul(n.b);var l=a.mul(t.b);var d=e.sub(s).sub(f);var o=c.add(l).neg();return{k1:d,k2:o}};ShortCurve.prototype.pointFromX=function pointFromX(e,r){e=new i(e,16);if(!e.red)e=e.toRed(this.red);var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b);var t=n.redSqrt();if(t.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var a=t.fromRed().isOdd();if(r&&!a||!r&&a)t=t.redNeg();return this.point(e,t)};ShortCurve.prototype.validate=function validate(e){if(e.inf)return true;var r=e.x;var n=e.y;var t=this.a.redMul(r);var i=r.redSqr().redMul(r).redIAdd(t).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function _endoWnafMulAdd(e,r,n){var t=this._endoWnafT1;var i=this._endoWnafT2;for(var a=0;a";return""};Point.prototype.isInfinity=function isInfinity(){return this.inf};Point.prototype.add=function add(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);if(r.cmpn(0)!==0)r=r.redMul(this.x.redSub(e.x).redInvm());var n=r.redSqr().redISub(this.x).redISub(e.x);var t=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,t)};Point.prototype.dbl=function dbl(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a;var n=this.x.redSqr();var t=e.redInvm();var i=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(t);var a=i.redSqr().redISub(this.x.redAdd(this.x));var s=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)};Point.prototype.getX=function getX(){return this.x.fromRed()};Point.prototype.getY=function getY(){return this.y.fromRed()};Point.prototype.mul=function mul(e){e=new i(e,16);if(this.isInfinity())return this;else if(this._hasDoubles(e))return this.curve._fixedNafMul(this,e);else if(this.curve.endo)return this.curve._endoWnafMulAdd([this],[e]);else return this.curve._wnafMul(this,e)};Point.prototype.mulAdd=function mulAdd(e,r,n){var t=[this,r];var i=[e,n];if(this.curve.endo)return this.curve._endoWnafMulAdd(t,i);else return this.curve._wnafMulAdd(1,t,i,2)};Point.prototype.jmulAdd=function jmulAdd(e,r,n){var t=[this,r];var i=[e,n];if(this.curve.endo)return this.curve._endoWnafMulAdd(t,i,true);else return this.curve._wnafMulAdd(1,t,i,2,true)};Point.prototype.eq=function eq(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};Point.prototype.neg=function neg(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed;var t=function(e){return e.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(t)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(t)}}}return r};Point.prototype.toJ=function toJ(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function JPoint(e,r,n,t){s.BasePoint.call(this,e,"jacobian");if(r===null&&n===null&&t===null){this.x=this.curve.one;this.y=this.curve.one;this.z=new i(0)}else{this.x=new i(r,16);this.y=new i(n,16);this.z=new i(t,16)}if(!this.x.red)this.x=this.x.toRed(this.curve.red);if(!this.y.red)this.y=this.y.toRed(this.curve.red);if(!this.z.red)this.z=this.z.toRed(this.curve.red);this.zOne=this.z===this.curve.one}a(JPoint,s.BasePoint);ShortCurve.prototype.jpoint=function jpoint(e,r,n){return new JPoint(this,e,r,n)};JPoint.prototype.toP=function toP(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm();var r=e.redSqr();var n=this.x.redMul(r);var t=this.y.redMul(r).redMul(e);return this.curve.point(n,t)};JPoint.prototype.neg=function neg(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function add(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr();var n=this.z.redSqr();var t=this.x.redMul(r);var i=e.x.redMul(n);var a=this.y.redMul(r.redMul(e.z));var s=e.y.redMul(n.redMul(this.z));var f=t.redSub(i);var c=a.redSub(s);if(f.cmpn(0)===0){if(c.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl()}var l=f.redSqr();var d=l.redMul(f);var o=t.redMul(l);var u=c.redSqr().redIAdd(d).redISub(o).redISub(o);var h=c.redMul(o.redISub(u)).redISub(a.redMul(d));var p=this.z.redMul(e.z).redMul(f);return this.curve.jpoint(u,h,p)};JPoint.prototype.mixedAdd=function mixedAdd(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr();var n=this.x;var t=e.x.redMul(r);var i=this.y;var a=e.y.redMul(r).redMul(this.z);var s=n.redSub(t);var f=i.redSub(a);if(s.cmpn(0)===0){if(f.cmpn(0)!==0)return this.curve.jpoint(null,null,null);else return this.dbl()}var c=s.redSqr();var l=c.redMul(s);var d=n.redMul(c);var o=f.redSqr().redIAdd(l).redISub(d).redISub(d);var u=f.redMul(d.redISub(o)).redISub(i.redMul(l));var h=this.z.redMul(s);return this.curve.jpoint(o,u,h)};JPoint.prototype.dblp=function dblp(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var r=this;for(var n=0;n=0)return false;n.redIAdd(i);if(this.x.cmp(n)===0)return true}};JPoint.prototype.inspect=function inspect(){if(this.isInfinity())return"";return""};JPoint.prototype.isInfinity=function isInfinity(){return this.z.cmpn(0)===0}},{"../utils":46,"./base":33,"bn.js":30,inherits:61}],38:[function(e,r,n){"use strict";var t=n;var i=e("hash.js");var a=e("./curve");var s=e("./utils");var f=s.assert;function PresetCurve(e){if(e.type==="short")this.curve=new a.short(e);else if(e.type==="edwards")this.curve=new a.edwards(e);else if(e.type==="mont")this.curve=new a.mont(e);else throw new Error("Unknown curve type.");this.g=this.curve.g;this.n=this.curve.n;this.hash=e.hash;f(this.g.validate(),"Invalid curve");f(this.g.mul(this.n).isInfinity(),"Invalid curve, n*G != O")}t.PresetCurve=PresetCurve;function defineCurve(e,r){Object.defineProperty(t,e,{configurable:true,enumerable:true,get:function(){var n=new PresetCurve(r);Object.defineProperty(t,e,{configurable:true,enumerable:true,value:n});return n}})}defineCurve("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:false,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});defineCurve("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:false,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});defineCurve("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:false,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});defineCurve("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff "+"fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff "+"fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f "+"5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 "+"f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:false,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 "+"5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 "+"0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]});defineCurve("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff "+"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff "+"ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff "+"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff "+"ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b "+"99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd "+"3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff "+"ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 "+"f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:false,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 "+"053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 "+"a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 "+"579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 "+"3fad0761 353c7086 a272c240 88be9476 9fd16650"]});defineCurve("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",cofactor:"8",hash:i.sha256,gRed:false,g:["9"]});defineCurve("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",cofactor:"8",hash:i.sha256,gRed:false,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});defineCurve("brainpoolP256r1",{type:"short",prime:null,p:"A9FB57DB A1EEA9BC 3E660A90 9D838D72 6E3BF623 D5262028 2013481D 1F6E5377",a:"7D5A0975 FC2C3057 EEF67530 417AFFE7 FB8055C1 26DC5C6C E94A4B44 F330B5D9",b:"26DC5C6C E94A4B44 F330B5D9 BBD77CBF 95841629 5CF7E1CE 6BCCDC18 FF8C07B6",n:"A9FB57DB A1EEA9BC 3E660A90 9D838D71 8C397AA3 B561A6F7 901E0E82 974856A7",hash:i.sha256,gRed:false,g:["8BD2AEB9CB7E57CB2C4B482FFC81B7AFB9DE27E1E3BD23C23A4453BD9ACE3262","547EF835C3DAC4FD97F8461A14611DC9C27745132DED8E545C1D54C72F046997"]});defineCurve("brainpoolP384r1",{type:"short",prime:null,p:"8CB91E82 A3386D28 0F5D6F7E 50E641DF 152F7109 ED5456B4 12B1DA19 7FB71123"+"ACD3A729 901D1A71 87470013 3107EC53",a:"7BC382C6 3D8C150C 3C72080A CE05AFA0 C2BEA28E 4FB22787 139165EF BA91F90F"+"8AA5814A 503AD4EB 04A8C7DD 22CE2826",b:"04A8C7DD 22CE2826 8B39B554 16F0447C 2FB77DE1 07DCD2A6 2E880EA5 3EEB62D5"+"7CB43902 95DBC994 3AB78696 FA504C11",n:"8CB91E82 A3386D28 0F5D6F7E 50E641DF 152F7109 ED5456B3 1F166E6C AC0425A7"+"CF3AB6AF 6B7FC310 3B883202 E9046565",hash:i.sha384,gRed:false,g:["1D1C64F068CF45FFA2A63A81B7C13F6B8847A3E77EF14FE3DB7FCAFE0CBD10"+"E8E826E03436D646AAEF87B2E247D4AF1E","8ABE1D7520F9C2A45CB1EB8E95CFD55262B70B29FEEC5864E19C054FF99129"+"280E4646217791811142820341263C5315"]});defineCurve("brainpoolP512r1",{type:"short",prime:null,p:"AADD9DB8 DBE9C48B 3FD4E6AE 33C9FC07 CB308DB3 B3C9D20E D6639CCA 70330871"+"7D4D9B00 9BC66842 AECDA12A E6A380E6 2881FF2F 2D82C685 28AA6056 583A48F3",a:"7830A331 8B603B89 E2327145 AC234CC5 94CBDD8D 3DF91610 A83441CA EA9863BC"+"2DED5D5A A8253AA1 0A2EF1C9 8B9AC8B5 7F1117A7 2BF2C7B9 E7C1AC4D 77FC94CA",b:"3DF91610 A83441CA EA9863BC 2DED5D5A A8253AA1 0A2EF1C9 8B9AC8B5 7F1117A7"+"2BF2C7B9 E7C1AC4D 77FC94CA DC083E67 984050B7 5EBAE5DD 2809BD63 8016F723",n:"AADD9DB8 DBE9C48B 3FD4E6AE 33C9FC07 CB308DB3 B3C9D20E D6639CCA 70330870"+"553E5C41 4CA92619 41866119 7FAC1047 1DB1D381 085DDADD B5879682 9CA90069",hash:i.sha512,gRed:false,g:["81AEE4BDD82ED9645A21322E9C4C6A9385ED9F70B5D916C1B43B62EEF4D009"+"8EFF3B1F78E2D0D48D50D1687B93B97D5F7C6D5047406A5E688B352209BCB9F822","7DDE385D566332ECC0EABFA9CF7822FDF209F70024A57B1AA000C55B881F81"+"11B2DCDE494A5F485E5BCA4BD88A2763AED1CA2B2FA8F0540678CD1E0F3AD80892"]});var c;try{c=e("./precomputed/secp256k1")}catch(e){c=undefined}defineCurve("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:false,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",c]})},{"./curve":35,"./precomputed/secp256k1":45,"./utils":46,"hash.js":48}],39:[function(e,r,n){"use strict";var t=e("bn.js");var i=e("hmac-drbg");var a=e("../utils");var s=e("../curves");var f=e("brorand");var c=a.assert;var l=e("./key");var d=e("./signature");function EC(e){if(!(this instanceof EC))return new EC(e);if(typeof e==="string"){c(s.hasOwnProperty(e),"Unknown curve "+e);e=s[e]}if(e instanceof s.PresetCurve)e={curve:e};this.curve=e.curve.curve;this.n=this.curve.n;this.nh=this.n.ushrn(1);this.g=this.curve.g;this.g=e.curve.g;this.g.precompute(e.curve.n.bitLength()+1);this.hash=e.hash||e.curve.hash}r.exports=EC;EC.prototype.keyPair=function keyPair(e){return new l(this,e)};EC.prototype.keyFromPrivate=function keyFromPrivate(e,r){return l.fromPrivate(this,e,r)};EC.prototype.keyFromPublic=function keyFromPublic(e,r){return l.fromPublic(this,e,r)};EC.prototype.genKeyPair=function genKeyPair(e){if(!e)e={};var r=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||f(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()});if(this.curve.type==="mont"){var n=new t(r.generate(32));return this.keyFromPrivate(n)}var a=this.n.byteLength();var s=this.n.sub(new t(2));do{var n=new t(r.generate(a));if(n.cmp(s)>0)continue;n.iaddn(1);return this.keyFromPrivate(n)}while(true)};EC.prototype._truncateToN=function truncateToN(e,r,n){n=n||e.byteLength()*8;var t=n-this.n.bitLength();if(t>0)e=e.ushrn(t);if(!r&&e.cmp(this.n)>=0)return e.sub(this.n);else return e};EC.prototype.truncateMsg=function truncateMSG(e){var r;if(e instanceof Uint8Array){r=e.byteLength*8;e=this._truncateToN(new t(e,16),false,r)}else if(typeof e==="string"){r=e.length*4;e=this._truncateToN(new t(e,16),false,r)}else{e=this._truncateToN(new t(e,16))}return e};EC.prototype.sign=function sign(e,r,n,a){if(typeof n==="object"){a=n;n=null}if(!a)a={};r=this.keyFromPrivate(r,n);e=this.truncateMsg(e);var s=this.n.byteLength();var f=r.getPrivate().toArray("be",s);var c=e.toArray("be",s);var l=new i({hash:this.hash,entropy:f,nonce:c,pers:a.pers,persEnc:a.persEnc||"utf8"});var o=this.n.sub(new t(1));for(var u=0;true;u++){var h=a.k?a.k(u):new t(l.generate(this.n.byteLength()));h=this._truncateToN(h,true);if(h.cmpn(1)<=0||h.cmp(o)>=0)continue;var p=this.g.mul(h);if(p.isInfinity())continue;var v=p.getX();var b=v.umod(this.n);if(b.cmpn(0)===0)continue;var y=h.invm(this.n).mul(b.mul(r.getPrivate()).iadd(e));y=y.umod(this.n);if(y.cmpn(0)===0)continue;var g=(p.getY().isOdd()?1:0)|(v.cmp(b)!==0?2:0);if(a.canonical&&y.cmp(this.nh)>0){y=this.n.sub(y);g^=1}return new d({r:b,s:y,recoveryParam:g})}};EC.prototype.verify=function verify(e,r,n,i){n=this.keyFromPublic(n,i);r=new d(r,"hex");var a=this._verify(this.truncateMsg(e),r,n)||this._verify(this._truncateToN(new t(e,16)),r,n);return a};EC.prototype._verify=function _verify(e,r,n){var t=r.r;var i=r.s;if(t.cmpn(1)<0||t.cmp(this.n)>=0)return false;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return false;var a=i.invm(this.n);var s=a.mul(e).umod(this.n);var f=a.mul(t).umod(this.n);if(!this.curve._maxwellTrick){var c=this.g.mulAdd(s,n.getPublic(),f);if(c.isInfinity())return false;return c.getX().umod(this.n).cmp(t)===0}var c=this.g.jmulAdd(s,n.getPublic(),f);if(c.isInfinity())return false;return c.eqXToP(t)};EC.prototype.recoverPubKey=function(e,r,n,i){c((3&n)===n,"The recovery param is more than two bits");r=new d(r,i);var a=this.n;var s=new t(e);var f=r.r;var l=r.s;var o=n&1;var u=n>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw new Error("Unable to find sencond key candinate");if(u)f=this.curve.pointFromX(f.add(this.curve.n),o);else f=this.curve.pointFromX(f,o);var h=r.r.invm(a);var p=a.sub(s).mul(h).umod(a);var v=l.mul(h).umod(a);return this.g.mulAdd(p,f,v)};EC.prototype.getKeyRecoveryParam=function(e,r,n,t){r=new d(r,t);if(r.recoveryParam!==null)return r.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,r,i)}catch(e){continue}if(a.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},{"../curves":38,"../utils":46,"./key":40,"./signature":41,"bn.js":30,brorand:31,"hmac-drbg":60}],40:[function(e,r,n){"use strict";var t=e("bn.js");var i=e("../utils");var a=i.assert;function KeyPair(e,r){this.ec=e;this.priv=null;this.pub=null;if(r.priv)this._importPrivate(r.priv,r.privEnc);if(r.pub)this._importPublic(r.pub,r.pubEnc)}r.exports=KeyPair;KeyPair.fromPublic=function fromPublic(e,r,n){if(r instanceof KeyPair)return r;return new KeyPair(e,{pub:r,pubEnc:n})};KeyPair.fromPrivate=function fromPrivate(e,r,n){if(r instanceof KeyPair)return r;return new KeyPair(e,{priv:r,privEnc:n})};KeyPair.prototype.validate=function validate(){var e=this.getPublic();if(e.isInfinity())return{result:false,reason:"Invalid public key"};if(!e.validate())return{result:false,reason:"Public key is not a point"};if(!e.mul(this.ec.curve.n).isInfinity())return{result:false,reason:"Public key * N != O"};return{result:true,reason:null}};KeyPair.prototype.getPublic=function getPublic(e,r){if(!this.pub)this.pub=this.ec.g.mul(this.priv);if(!e)return this.pub;return this.pub.encode(e,r)};KeyPair.prototype.getPrivate=function getPrivate(e){if(e==="hex")return this.priv.toString(16,2);else return this.priv};KeyPair.prototype._importPrivate=function _importPrivate(e,r){this.priv=new t(e,r||16);if(this.ec.curve.type==="mont"){var n=this.ec.curve.one;var i=n.ushln(255-3).sub(n).ushln(3);this.priv=this.priv.or(n.ushln(255-1));this.priv=this.priv.and(i)}else this.priv=this.priv.umod(this.ec.curve.n)};KeyPair.prototype._importPublic=function _importPublic(e,r){if(e.x||e.y){if(this.ec.curve.type==="mont"){a(e.x,"Need x coordinate")}else if(this.ec.curve.type==="short"||this.ec.curve.type==="edwards"){a(e.x&&e.y,"Need both x and y coordinate")}this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,r)};KeyPair.prototype.derive=function derive(e){return e.mul(this.priv).getX()};KeyPair.prototype.sign=function sign(e,r,n){return this.ec.sign(e,this,r,n)};KeyPair.prototype.verify=function verify(e,r){return this.ec.verify(e,r,this)};KeyPair.prototype.inspect=function inspect(){return""}},{"../utils":46,"bn.js":30}],41:[function(e,r,n){"use strict";var t=e("bn.js");var i=e("../utils");var a=i.assert;function Signature(e,r){if(e instanceof Signature)return e;if(this._importDER(e,r))return;a(e.r&&e.s,"Signature without r or s");this.r=new t(e.r,16);this.s=new t(e.s,16);if(e.recoveryParam===undefined)this.recoveryParam=null;else this.recoveryParam=e.recoveryParam}r.exports=Signature;function Position(){this.place=0}function getLength(e,r){var n=e[r.place++];if(!(n&128)){return n}var t=n&15;var i=0;for(var a=0,s=r.place;a>>3);e.push(n|128);while(--n){e.push(r>>>(n<<3)&255)}e.push(r)}Signature.prototype.toDER=function toDER(e){var r=this.r.toArray();var n=this.s.toArray();if(r[0]&128)r=[0].concat(r);if(n[0]&128)n=[0].concat(n);r=rmPadding(r);n=rmPadding(n);while(!n[0]&&!(n[1]&128)){n=n.slice(1)}var t=[2];constructLength(t,r.length);t=t.concat(r);t.push(2);constructLength(t,n.length);var a=t.concat(n);var s=[48];constructLength(s,a.length);s=s.concat(a);return i.encode(s,e)}},{"../utils":46,"bn.js":30}],42:[function(e,r,n){"use strict";var t=e("hash.js");var i=e("hmac-drbg");var a=e("brorand");var s=e("../curves");var f=e("../utils");var c=f.assert;var l=f.parseBytes;var d=e("./key");var o=e("./signature");function EDDSA(e){c(e==="ed25519","only tested with ed25519 so far");if(!(this instanceof EDDSA))return new EDDSA(e);var e=s[e].curve;this.curve=e;this.g=e.g;this.g.precompute(e.n.bitLength()+1);this.pointClass=e.point().constructor;this.encodingLength=Math.ceil(e.n.bitLength()/8);this.hash=t.sha512}r.exports=EDDSA;EDDSA.prototype.sign=function sign(e,r){e=l(e);var n=this.keyFromSecret(r);var t=this.hashInt(n.messagePrefix(),e);var i=this.g.mul(t);var a=this.encodePoint(i);var s=this.hashInt(a,n.pubBytes(),e).mul(n.priv());var f=t.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:f,Rencoded:a})};EDDSA.prototype.verify=function verify(e,r,n){e=l(e);r=this.makeSignature(r);var t=this.keyFromPublic(n);var i=this.hashInt(r.Rencoded(),t.pubBytes(),e);var a=this.g.mul(r.S());var s=r.R().add(t.pub().mul(i));return s.eq(a)};EDDSA.prototype.hashInt=function hashInt(){var e=this.hash();for(var r=0;r=0){var a;if(i.isOdd()){var s=i.andln(t-1);if(s>(t>>1)-1)a=(t>>1)-s;else a=s;i.isubn(a)}else{a=0}n.push(a);var f=i.cmpn(0)!==0&&i.andln(t-1)===0?r+1:1;for(var c=1;c0||r.cmpn(-i)>0){var a=e.andln(3)+t&3;var s=r.andln(3)+i&3;if(a===3)a=-1;if(s===3)s=-1;var f;if((a&1)===0){f=0}else{var c=e.andln(7)+t&7;if((c===3||c===5)&&s===2)f=-a;else f=a}n[0].push(f);var l;if((s&1)===0){l=0}else{var c=r.andln(7)+i&7;if((c===3||c===5)&&a===2)l=-s;else l=s}n[1].push(l);if(2*t===f+1)t=1-t;if(2*i===l+1)i=1-i;e.iushrn(1);r.iushrn(1)}return n}t.getJSF=getJSF;function cachedProperty(e,r,n){var t="_"+r;e.prototype[r]=function cachedProperty(){return this[t]!==undefined?this[t]:this[t]=n.call(this)}}t.cachedProperty=cachedProperty;function parseBytes(e){return typeof e==="string"?t.toArray(e,"hex"):e}t.parseBytes=parseBytes;function intFromLE(e){return new i(e,"hex","le")}t.intFromLE=intFromLE},{"bn.js":30,"minimalistic-assert":62,"minimalistic-crypto-utils":63}],47:[function(e,r,n){"use strict";(function(e){"use strict";function parse5322(e){function inStr(){return n0){r.semantic=" "}return r}}function star(e,r){return function starFunc(){var n,t,i,a,s;a=getPos();n=o("star");i=0;s=r===undefined?0:r;while((t=e())!==null){i=i+1;add(n,t)}if(i>=s){return n}else{setPos(a);return null}}}function collapseWhitespace(e){return e.replace(/([ \t]|\r\n)+/g," ").replace(/^\s*/,"").replace(/\s*$/,"")}function isUTF8NonAscii(e){return e.charCodeAt(0)>=128}function cr(){return wrap("cr",literal("\r")())}function crlf(){return wrap("crlf",and(cr,lf)())}function dquote(){return wrap("dquote",literal('"')())}function htab(){return wrap("htab",literal("\t")())}function lf(){return wrap("lf",literal("\n")())}function sp(){return wrap("sp",literal(" ")())}function vchar(){return wrap("vchar",compareToken(function vcharFunc(r){var n=r.charCodeAt(0);var t=33<=n&&n<=126;if(e.rfc6532){t=t||isUTF8NonAscii(r)}return t}))}function wsp(){return wrap("wsp",or(sp,htab)())}function quotedPair(){var e=wrap("quoted-pair",or(and(literal("\\"),or(vchar,wsp)),obsQP)());if(e===null){return null}e.semantic=e.semantic[1];return e}function fws(){return wrap("fws",or(obsFws,and(opt(and(star(wsp),invis(crlf))),star(wsp,1)))())}function ctext(){return wrap("ctext",or(function ctextFunc1(){return compareToken(function ctextFunc2(r){var n=r.charCodeAt(0);var t=33<=n&&n<=39||42<=n&&n<=91||93<=n&&n<=126;if(e.rfc6532){t=t||isUTF8NonAscii(r)}return t})},obsCtext)())}function ccontent(){return wrap("ccontent",or(ctext,quotedPair,comment)())}function comment(){return wrap("comment",and(literal("("),star(and(opt(fws),ccontent)),opt(fws),literal(")"))())}function cfws(){return wrap("cfws",or(and(star(and(opt(fws),comment),1),opt(fws)),fws)())}function atext(){return wrap("atext",compareToken(function atextFunc(r){var n="a"<=r&&r<="z"||"A"<=r&&r<="Z"||"0"<=r&&r<="9"||["!","#","$","%","&","'","*","+","-","/","=","?","^","_","`","{","|","}","~"].indexOf(r)>=0;if(e.rfc6532){n=n||isUTF8NonAscii(r)}return n}))}function atom(){return wrap("atom",and(colwsp(opt(cfws)),star(atext,1),colwsp(opt(cfws)))())}function dotAtomText(){var e,r;e=wrap("dot-atom-text",star(atext,1)());if(e===null){return e}r=star(and(literal("."),star(atext,1)))();if(r!==null){add(e,r)}return e}function dotAtom(){return wrap("dot-atom",and(invis(opt(cfws)),dotAtomText,invis(opt(cfws)))())}function qtext(){return wrap("qtext",or(function qtextFunc1(){return compareToken(function qtextFunc2(r){var n=r.charCodeAt(0);var t=33===n||35<=n&&n<=91||93<=n&&n<=126;if(e.rfc6532){t=t||isUTF8NonAscii(r)}return t})},obsQtext)())}function qcontent(){return wrap("qcontent",or(qtext,quotedPair)())}function quotedString(){return wrap("quoted-string",and(invis(opt(cfws)),invis(dquote),star(and(opt(colwsp(fws)),qcontent)),opt(invis(fws)),invis(dquote),invis(opt(cfws)))())}function word(){return wrap("word",or(atom,quotedString)())}function phrase(){return wrap("phrase",or(obsPhrase,star(word,1))())}function address(){return wrap("address",or(mailbox,group)())}function mailbox(){return wrap("mailbox",or(nameAddr,addrSpec)())}function nameAddr(){return wrap("name-addr",and(opt(displayName),angleAddr)())}function angleAddr(){return wrap("angle-addr",or(and(invis(opt(cfws)),literal("<"),addrSpec,literal(">"),invis(opt(cfws))),obsAngleAddr)())}function group(){return wrap("group",and(displayName,literal(":"),opt(groupList),literal(";"),invis(opt(cfws)))())}function displayName(){return wrap("display-name",function phraseFixedSemantic(){var e=phrase();if(e!==null){e.semantic=collapseWhitespace(e.semantic)}return e}())}function mailboxList(){return wrap("mailbox-list",or(and(mailbox,star(and(literal(","),mailbox))),obsMboxList)())}function addressList(){return wrap("address-list",or(and(address,star(and(literal(","),address))),obsAddrList)())}function groupList(){return wrap("group-list",or(mailboxList,invis(cfws),obsGroupList)())}function localPart(){return wrap("local-part",or(obsLocalPart,dotAtom,quotedString)())}function dtext(){return wrap("dtext",or(function dtextFunc1(){return compareToken(function dtextFunc2(r){var n=r.charCodeAt(0);var t=33<=n&&n<=90||94<=n&&n<=126;if(e.rfc6532){t=t||isUTF8NonAscii(r)}return t})},obsDtext)())}function domainLiteral(){return wrap("domain-literal",and(invis(opt(cfws)),literal("["),star(and(opt(fws),dtext)),opt(fws),literal("]"),invis(opt(cfws)))())}function domain(){return wrap("domain",function domainCheckTLD(){var r=or(obsDomain,dotAtom,domainLiteral)();if(e.rejectTLD){if(r&&r.semantic&&r.semantic.indexOf(".")<0){return null}}if(r){r.semantic=r.semantic.replace(/\s+/g,"")}return r}())}function addrSpec(){return wrap("addr-spec",and(localPart,literal("@"),domain)())}function fromSpec(){return wrap("from",or(mailboxList,addressList)())}function senderSpec(){return wrap("sender",or(mailbox,address)())}function replyToSpec(){return wrap("reply-to",addressList())}function obsNoWsCtl(){return e.strict?null:wrap("obs-NO-WS-CTL",compareToken(function(e){var r=e.charCodeAt(0);return 1<=r&&r<=8||11===r||12===r||14<=r&&r<=31||127===r}))}function obsCtext(){return e.strict?null:wrap("obs-ctext",obsNoWsCtl())}function obsQtext(){return e.strict?null:wrap("obs-qtext",obsNoWsCtl())}function obsQP(){return e.strict?null:wrap("obs-qp",and(literal("\\"),or(literal("\0"),obsNoWsCtl,lf,cr))())}function obsPhrase(){if(e.strict)return null;return e.atInDisplayName?wrap("obs-phrase",and(word,star(or(word,literal("."),literal("@"),colwsp(cfws))))()):wrap("obs-phrase",and(word,star(or(word,literal("."),colwsp(cfws))))())}function obsFws(){return e.strict?null:wrap("obs-FWS",star(and(invis(opt(crlf)),wsp),1)())}function obsAngleAddr(){return e.strict?null:wrap("obs-angle-addr",and(invis(opt(cfws)),literal("<"),obsRoute,addrSpec,literal(">"),invis(opt(cfws)))())}function obsRoute(){return e.strict?null:wrap("obs-route",and(obsDomainList,literal(":"))())}function obsDomainList(){return e.strict?null:wrap("obs-domain-list",and(star(or(invis(cfws),literal(","))),literal("@"),domain,star(and(literal(","),invis(opt(cfws)),opt(and(literal("@"),domain)))))())}function obsMboxList(){return e.strict?null:wrap("obs-mbox-list",and(star(and(invis(opt(cfws)),literal(","))),mailbox,star(and(literal(","),opt(and(mailbox,invis(cfws))))))())}function obsAddrList(){return e.strict?null:wrap("obs-addr-list",and(star(and(invis(opt(cfws)),literal(","))),address,star(and(literal(","),opt(and(address,invis(cfws))))))())}function obsGroupList(){return e.strict?null:wrap("obs-group-list",and(star(and(invis(opt(cfws)),literal(",")),1),invis(opt(cfws)))())}function obsLocalPart(){return e.strict?null:wrap("obs-local-part",and(word,star(and(literal("."),word)))())}function obsDomain(){return e.strict?null:wrap("obs-domain",and(atom,star(and(literal("."),atom)))())}function obsDtext(){return e.strict?null:wrap("obs-dtext",or(obsNoWsCtl,quotedPair)())}function findNode(e,r){var n,t,i;if(r===null||r===undefined){return null}t=[r];while(t.length>0){i=t.pop();if(i.name===e){return i}for(n=i.children.length-1;n>=0;n-=1){t.push(i.children[n])}}return null}function findAllNodes(e,r){var n,t,i,a;if(r===null||r===undefined){return null}t=[r];a=[];while(t.length>0){i=t.pop();if(i.name===e){a.push(i)}for(n=i.children.length-1;n>=0;n-=1){t.push(i.children[n])}}return a}function findAllNodesNoChildren(e,r){var n,t,i,a,s;if(r===null||r===undefined){return null}t=[r];a=[];s={};for(n=0;n0){i=t.pop();if(i.name in s){a.push(i)}else{for(n=i.children.length-1;n>=0;n-=1){t.push(i.children[n])}}}return a}function giveResult(r){var n,t,i,a,s;if(r===null){return null}n=[];t=findAllNodesNoChildren(["group","mailbox"],r);for(i=0;i1){return null}return r.addresses&&r.addresses[0]}var r,n,t,i,a;e=handleOpts(e,{});if(e===null){return null}r=e.input;a={address:address,"address-list":addressList,"angle-addr":angleAddr,from:fromSpec,group:group,mailbox:mailbox,"mailbox-list":mailboxList,"reply-to":replyToSpec,sender:senderSpec}[e.startAt]||addressList;if(!e.strict){initialize();e.strict=true;i=a(r);if(e.partial||!inStr()){return giveResult(i)}e.strict=false}initialize();i=a(r);if(!e.partial&&inStr()){return null}return giveResult(i)}function parseOneAddressSimple(e){return parse5322(handleOpts(e,{oneResult:true,rfc6532:true,simple:true,startAt:"address-list"}))}function parseAddressListSimple(e){return parse5322(handleOpts(e,{rfc6532:true,simple:true,startAt:"address-list"}))}function parseFromSimple(e){return parse5322(handleOpts(e,{rfc6532:true,simple:true,startAt:"from"}))}function parseSenderSimple(e){return parse5322(handleOpts(e,{oneResult:true,rfc6532:true,simple:true,startAt:"sender"}))}function parseReplyToSimple(e){return parse5322(handleOpts(e,{rfc6532:true,simple:true,startAt:"reply-to"}))}function handleOpts(e,r){function isString(e){return Object.prototype.toString.call(e)==="[object String]"}function isObject(e){return e===Object(e)}function isNullUndef(e){return e===null||e===undefined}var n,t;if(isString(e)){e={input:e}}else if(!isObject(e)){return null}if(!isString(e.input)){return null}if(!r){return null}n={oneResult:false,partial:false,rejectTLD:false,rfc6532:false,simple:false,startAt:"address-list",strict:false,atInDisplayName:false};for(t in n){if(isNullUndef(e[t])){e[t]=!isNullUndef(r[t])?r[t]:n[t]}}return e}parse5322.parseOneAddress=parseOneAddressSimple;parse5322.parseAddressList=parseAddressListSimple;parse5322.parseFrom=parseFromSimple;parse5322.parseSender=parseSenderSimple;parse5322.parseReplyTo=parseReplyToSimple;if(typeof r!=="undefined"&&typeof r.exports!=="undefined"){r.exports=parse5322}else{e.emailAddresses=parse5322}})(undefined)},{}],48:[function(e,r,n){var t=n;t.utils=e("./hash/utils");t.common=e("./hash/common");t.sha=e("./hash/sha");t.ripemd=e("./hash/ripemd");t.hmac=e("./hash/hmac");t.sha1=t.sha.sha1;t.sha256=t.sha.sha256;t.sha224=t.sha.sha224;t.sha384=t.sha.sha384;t.sha512=t.sha.sha512;t.ripemd160=t.ripemd.ripemd160},{"./hash/common":49,"./hash/hmac":50,"./hash/ripemd":51,"./hash/sha":52,"./hash/utils":59}],49:[function(e,r,n){"use strict";var t=e("./utils");var i=e("minimalistic-assert");function BlockHash(){this.pending=null;this.pendingTotal=0;this.blockSize=this.constructor.blockSize;this.outSize=this.constructor.outSize;this.hmacStrength=this.constructor.hmacStrength;this.padLength=this.constructor.padLength/8;this.endian="big";this._delta8=this.blockSize/8;this._delta32=this.blockSize/32}n.BlockHash=BlockHash;BlockHash.prototype.update=function update(e,r){e=t.toArray(e,r);if(!this.pending)this.pending=e;else this.pending=this.pending.concat(e);this.pendingTotal+=e.length;if(this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length);if(this.pending.length===0)this.pending=null;e=t.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255;t[i++]=e>>>16&255;t[i++]=e>>>8&255;t[i++]=e&255}else{t[i++]=e&255;t[i++]=e>>>8&255;t[i++]=e>>>16&255;t[i++]=e>>>24&255;t[i++]=0;t[i++]=0;t[i++]=0;t[i++]=0;for(a=8;athis.blockSize)e=(new this.Hash).update(e).digest();i(e.length<=this.blockSize);for(var r=e.length;r>>3}n.g0_256=g0_256;function g1_256(e){return i(e,17)^i(e,19)^e>>>10}n.g1_256=g1_256},{"../utils":59}],59:[function(e,r,n){"use strict";var t=e("minimalistic-assert");var i=e("inherits");n.inherits=i;function toArray(e,r){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if(typeof e==="string"){if(!r){for(var t=0;t>8;var s=i&255;if(a)n.push(a,s);else n.push(s)}}else if(r==="hex"){e=e.replace(/[^a-z0-9]+/gi,"");if(e.length%2!==0)e="0"+e;for(t=0;t>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return r>>>0}n.htonl=htonl;function toHex32(e,r){var n="";for(var t=0;t>>0}return s}n.join32=join32;function split32(e,r){var n=new Array(e.length*4);for(var t=0,i=0;t>>24;n[i+1]=a>>>16&255;n[i+2]=a>>>8&255;n[i+3]=a&255}else{n[i+3]=a>>>24;n[i+2]=a>>>16&255;n[i+1]=a>>>8&255;n[i]=a&255}}return n}n.split32=split32;function rotr32(e,r){return e>>>r|e<<32-r}n.rotr32=rotr32;function rotl32(e,r){return e<>>32-r}n.rotl32=rotl32;function sum32(e,r){return e+r>>>0}n.sum32=sum32;function sum32_3(e,r,n){return e+r+n>>>0}n.sum32_3=sum32_3;function sum32_4(e,r,n,t){return e+r+n+t>>>0}n.sum32_4=sum32_4;function sum32_5(e,r,n,t,i){return e+r+n+t+i>>>0}n.sum32_5=sum32_5;function sum64(e,r,n,t){var i=e[r];var a=e[r+1];var s=t+a>>>0;var f=(s>>0;e[r+1]=s}n.sum64=sum64;function sum64_hi(e,r,n,t){var i=r+t>>>0;var a=(i>>0}n.sum64_hi=sum64_hi;function sum64_lo(e,r,n,t){var i=r+t;return i>>>0}n.sum64_lo=sum64_lo;function sum64_4_hi(e,r,n,t,i,a,s,f){var c=0;var l=r;l=l+t>>>0;c+=l>>0;c+=l>>0;c+=l>>0}n.sum64_4_hi=sum64_4_hi;function sum64_4_lo(e,r,n,t,i,a,s,f){var c=r+t+a+f;return c>>>0}n.sum64_4_lo=sum64_4_lo;function sum64_5_hi(e,r,n,t,i,a,s,f,c,l){var d=0;var o=r;o=o+t>>>0;d+=o>>0;d+=o>>0;d+=o>>0;d+=o>>0}n.sum64_5_hi=sum64_5_hi;function sum64_5_lo(e,r,n,t,i,a,s,f,c,l){var d=r+t+a+f+l;return d>>>0}n.sum64_5_lo=sum64_5_lo;function rotr64_hi(e,r,n){var t=r<<32-n|e>>>n;return t>>>0}n.rotr64_hi=rotr64_hi;function rotr64_lo(e,r,n){var t=e<<32-n|r>>>n;return t>>>0}n.rotr64_lo=rotr64_lo;function shr64_hi(e,r,n){return e>>>n}n.shr64_hi=shr64_hi;function shr64_lo(e,r,n){var t=e<<32-n|r>>>n;return t>>>0}n.shr64_lo=shr64_lo},{inherits:61,"minimalistic-assert":62}],60:[function(e,r,n){"use strict";var t=e("hash.js");var i=e("minimalistic-crypto-utils");var a=e("minimalistic-assert");function HmacDRBG(e){if(!(this instanceof HmacDRBG))return new HmacDRBG(e);this.hash=e.hash;this.predResist=!!e.predResist;this.outLen=this.hash.outSize;this.minEntropy=e.minEntropy||this.hash.hmacStrength;this._reseed=null;this.reseedInterval=null;this.K=null;this.V=null;var r=i.toArray(e.entropy,e.entropyEnc||"hex");var n=i.toArray(e.nonce,e.nonceEnc||"hex");var t=i.toArray(e.pers,e.persEnc||"hex");a(r.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._init(r,n,t)}r.exports=HmacDRBG;HmacDRBG.prototype._init=function init(e,r,n){var t=e.concat(r).concat(n);this.K=new Array(this.outLen/8);this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._update(e.concat(n||[]));this._reseed=1};HmacDRBG.prototype.generate=function generate(e,r,n,t){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");if(typeof r!=="string"){t=n;n=r;r=null}if(n){n=i.toArray(n,t||"hex");this._update(n)}var a=[];while(a.length>8;var s=i&255;if(a)n.push(a,s);else n.push(s)}}return n}t.toArray=toArray;function zero2(e){if(e.length===1)return"0"+e;else return e}t.zero2=zero2;function toHex(e){var r="";for(var n=0;n0){r.windowBits=-r.windowBits}else if(r.gzip&&r.windowBits>0&&r.windowBits<16){r.windowBits+=16}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new f;this.strm.avail_out=0;var n=t.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(n!==o){throw new Error(s[n])}if(r.header){t.deflateSetHeader(this.strm,r.header)}if(r.dictionary){var l;if(typeof r.dictionary==="string"){l=a.string2buf(r.dictionary)}else if(c.call(r.dictionary)==="[object ArrayBuffer]"){l=new Uint8Array(r.dictionary)}else{l=r.dictionary}n=t.deflateSetDictionary(this.strm,l);if(n!==o){throw new Error(s[n])}this._dict_set=true}}Deflate.prototype.push=function(e,r){var n=this.strm;var s=this.options.chunkSize;var f,p;if(this.ended){return false}p=r===~~r?r:r===true?d:l;if(typeof e==="string"){n.input=a.string2buf(e)}else if(c.call(e)==="[object ArrayBuffer]"){n.input=new Uint8Array(e)}else{n.input=e}n.next_in=0;n.avail_in=n.input.length;do{if(n.avail_out===0){n.output=new i.Buf8(s);n.next_out=0;n.avail_out=s}f=t.deflate(n,p);if(f!==u&&f!==o){this.onEnd(f);this.ended=true;return false}if(n.avail_out===0||n.avail_in===0&&(p===d||p===h)){if(this.options.to==="string"){this.onData(a.buf2binstring(i.shrinkBuf(n.output,n.next_out)))}else{this.onData(i.shrinkBuf(n.output,n.next_out))}}}while((n.avail_in>0||n.avail_out===0)&&f!==u);if(p===d){f=t.deflateEnd(this.strm);this.onEnd(f);this.ended=true;return f===o}if(p===h){this.onEnd(o);n.avail_out=0;return true}return true};Deflate.prototype.onData=function(e){this.chunks.push(e)};Deflate.prototype.onEnd=function(e){if(e===o){if(this.options.to==="string"){this.result=this.chunks.join("")}else{this.result=i.flattenChunks(this.chunks)}}this.chunks=[];this.err=e;this.msg=this.strm.msg};function deflate(e,r){var n=new Deflate(r);n.push(e,true);if(n.err){throw n.msg||s[n.err]}return n.result}function deflateRaw(e,r){r=r||{};r.raw=true;return deflate(e,r)}function gzip(e,r){r=r||{};r.gzip=true;return deflate(e,r)}n.Deflate=Deflate;n.deflate=deflate;n.deflateRaw=deflateRaw;n.gzip=gzip},{"./utils/common":67,"./utils/strings":68,"./zlib/deflate":72,"./zlib/messages":77,"./zlib/zstream":79}],66:[function(e,r,n){"use strict";var t=e("./zlib/inflate");var i=e("./utils/common");var a=e("./utils/strings");var s=e("./zlib/constants");var f=e("./zlib/messages");var c=e("./zlib/zstream");var l=e("./zlib/gzheader");var d=Object.prototype.toString;function Inflate(e){if(!(this instanceof Inflate))return new Inflate(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var r=this.options;if(r.raw&&r.windowBits>=0&&r.windowBits<16){r.windowBits=-r.windowBits;if(r.windowBits===0){r.windowBits=-15}}if(r.windowBits>=0&&r.windowBits<16&&!(e&&e.windowBits)){r.windowBits+=32}if(r.windowBits>15&&r.windowBits<48){if((r.windowBits&15)===0){r.windowBits|=15}}this.err=0;this.msg="";this.ended=false;this.chunks=[];this.strm=new c;this.strm.avail_out=0;var n=t.inflateInit2(this.strm,r.windowBits);if(n!==s.Z_OK){throw new Error(f[n])}this.header=new l;t.inflateGetHeader(this.strm,this.header)}Inflate.prototype.push=function(e,r){var n=this.strm;var f=this.options.chunkSize;var c=this.options.dictionary;var l,o;var u,h,p;var v;var b=false;if(this.ended){return false}o=r===~~r?r:r===true?s.Z_FINISH:s.Z_NO_FLUSH;if(typeof e==="string"){n.input=a.binstring2buf(e)}else if(d.call(e)==="[object ArrayBuffer]"){n.input=new Uint8Array(e)}else{n.input=e}n.next_in=0;n.avail_in=n.input.length;do{if(n.avail_out===0){n.output=new i.Buf8(f);n.next_out=0;n.avail_out=f}l=t.inflate(n,s.Z_NO_FLUSH);if(l===s.Z_NEED_DICT&&c){if(typeof c==="string"){v=a.string2buf(c)}else if(d.call(c)==="[object ArrayBuffer]"){v=new Uint8Array(c)}else{v=c}l=t.inflateSetDictionary(this.strm,v)}if(l===s.Z_BUF_ERROR&&b===true){l=s.Z_OK;b=false}if(l!==s.Z_STREAM_END&&l!==s.Z_OK){this.onEnd(l);this.ended=true;return false}if(n.next_out){if(n.avail_out===0||l===s.Z_STREAM_END||n.avail_in===0&&(o===s.Z_FINISH||o===s.Z_SYNC_FLUSH)){if(this.options.to==="string"){u=a.utf8border(n.output,n.next_out);h=n.next_out-u;p=a.buf2string(n.output,u);n.next_out=h;n.avail_out=f-h;if(h){i.arraySet(n.output,n.output,u,h,0)}this.onData(p)}else{this.onData(i.shrinkBuf(n.output,n.next_out))}}}if(n.avail_in===0&&n.avail_out===0){b=true}}while((n.avail_in>0||n.avail_out===0)&&l!==s.Z_STREAM_END);if(l===s.Z_STREAM_END){o=s.Z_FINISH}if(o===s.Z_FINISH){l=t.inflateEnd(this.strm);this.onEnd(l);this.ended=true;return l===s.Z_OK}if(o===s.Z_SYNC_FLUSH){this.onEnd(s.Z_OK);n.avail_out=0;return true}return true};Inflate.prototype.onData=function(e){this.chunks.push(e)};Inflate.prototype.onEnd=function(e){if(e===s.Z_OK){if(this.options.to==="string"){this.result=this.chunks.join("")}else{this.result=i.flattenChunks(this.chunks)}}this.chunks=[];this.err=e;this.msg=this.strm.msg};function inflate(e,r){var n=new Inflate(r);n.push(e,true);if(n.err){throw n.msg||f[n.err]}return n.result}function inflateRaw(e,r){r=r||{};r.raw=true;return inflate(e,r)}n.Inflate=Inflate;n.inflate=inflate;n.inflateRaw=inflateRaw;n.ungzip=inflate},{"./utils/common":67,"./utils/strings":68,"./zlib/constants":70,"./zlib/gzheader":73,"./zlib/inflate":75,"./zlib/messages":77,"./zlib/zstream":79}],67:[function(e,r,n){"use strict";var t=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";function _has(e,r){return Object.prototype.hasOwnProperty.call(e,r)}n.assign=function(e){var r=Array.prototype.slice.call(arguments,1);while(r.length){var n=r.shift();if(!n){continue}if(typeof n!=="object"){throw new TypeError(n+"must be non-object")}for(var t in n){if(_has(n,t)){e[t]=n[t]}}}return e};n.shrinkBuf=function(e,r){if(e.length===r){return e}if(e.subarray){return e.subarray(0,r)}e.length=r;return e};var i={arraySet:function(e,r,n,t,i){if(r.subarray&&e.subarray){e.set(r.subarray(n,n+t),i);return}for(var a=0;a=252?6:f>=248?5:f>=240?4:f>=224?3:f>=192?2:1}s[254]=s[254]=1;n.string2buf=function(e){var r,n,i,a,s,f=e.length,c=0;for(a=0;a>>6;r[s++]=128|n&63}else if(n<65536){r[s++]=224|n>>>12;r[s++]=128|n>>>6&63;r[s++]=128|n&63}else{r[s++]=240|n>>>18;r[s++]=128|n>>>12&63;r[s++]=128|n>>>6&63;r[s++]=128|n&63}}return r};function buf2binstring(e,r){if(r<65537){if(e.subarray&&a||!e.subarray&&i){return String.fromCharCode.apply(null,t.shrinkBuf(e,r))}}var n="";for(var s=0;s4){c[t++]=65533;n+=a-1;continue}i&=a===2?31:a===3?15:7;while(a>1&&n1){c[t++]=65533;continue}if(i<65536){c[t++]=i}else{i-=65536;c[t++]=55296|i>>10&1023;c[t++]=56320|i&1023}}return buf2binstring(c,t)};n.utf8border=function(e,r){var n;r=r||e.length;if(r>e.length){r=e.length}n=r-1;while(n>=0&&(e[n]&192)===128){n--}if(n<0){return r}if(n===0){return r}return n+s[e[n]]>r?n:r}},{"./common":67}],69:[function(e,r,n){"use strict";function adler32(e,r,n,t){var i=e&65535|0,a=e>>>16&65535|0,s=0;while(n!==0){s=n>2e3?2e3:n;n-=s;do{i=i+r[t++]|0;a=a+i|0}while(--s);i%=65521;a%=65521}return i|a<<16|0}r.exports=adler32},{}],70:[function(e,r,n){"use strict";r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],71:[function(e,r,n){"use strict";function makeTable(){var e,r=[];for(var n=0;n<256;n++){e=n;for(var t=0;t<8;t++){e=e&1?3988292384^e>>>1:e>>>1}r[n]=e}return r}var t=makeTable();function crc32(e,r,n,i){var a=t,s=i+n;e^=-1;for(var f=i;f>>8^a[(e^r[f])&255]}return e^-1}r.exports=crc32},{}],72:[function(e,r,n){"use strict";var t=e("../utils/common");var i=e("./trees");var a=e("./adler32");var s=e("./crc32");var f=e("./messages");var c=0;var l=1;var d=3;var o=4;var u=5;var h=0;var p=1;var v=-2;var b=-3;var y=-5;var g=-1;var w=1;var m=2;var A=3;var E=4;var S=0;var k=2;var R=8;var M=9;var C=15;var D=8;var _=29;var j=256;var B=j+1+_;var q=30;var U=19;var x=2*B+1;var I=15;var K=3;var O=258;var F=O+K+1;var P=32;var T=42;var N=69;var z=73;var L=91;var W=103;var H=113;var G=666;var J=1;var Y=2;var Q=3;var Z=4;var X=3;function err(e,r){e.msg=f[r];return r}function rank(e){return(e<<1)-(e>4?9:0)}function zero(e){var r=e.length;while(--r>=0){e[r]=0}}function flush_pending(e){var r=e.state;var n=r.pending;if(n>e.avail_out){n=e.avail_out}if(n===0){return}t.arraySet(e.output,r.pending_buf,r.pending_out,n,e.next_out);e.next_out+=n;r.pending_out+=n;e.total_out+=n;e.avail_out-=n;r.pending-=n;if(r.pending===0){r.pending_out=0}}function flush_block_only(e,r){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,r);e.block_start=e.strstart;flush_pending(e.strm)}function put_byte(e,r){e.pending_buf[e.pending++]=r}function putShortMSB(e,r){e.pending_buf[e.pending++]=r>>>8&255;e.pending_buf[e.pending++]=r&255}function read_buf(e,r,n,i){var f=e.avail_in;if(f>i){f=i}if(f===0){return 0}e.avail_in-=f;t.arraySet(r,e.input,e.next_in,f,n);if(e.state.wrap===1){e.adler=a(e.adler,r,f,n)}else if(e.state.wrap===2){e.adler=s(e.adler,r,f,n)}e.next_in+=f;e.total_in+=f;return f}function longest_match(e,r){var n=e.max_chain_length;var t=e.strstart;var i;var a;var s=e.prev_length;var f=e.nice_match;var c=e.strstart>e.w_size-F?e.strstart-(e.w_size-F):0;var l=e.window;var d=e.w_mask;var o=e.prev;var u=e.strstart+O;var h=l[t+s-1];var p=l[t+s];if(e.prev_length>=e.good_match){n>>=2}if(f>e.lookahead){f=e.lookahead}do{i=r;if(l[i+s]!==p||l[i+s-1]!==h||l[i]!==l[t]||l[++i]!==l[t+1]){continue}t+=2;i++;do{}while(l[++t]===l[++i]&&l[++t]===l[++i]&&l[++t]===l[++i]&&l[++t]===l[++i]&&l[++t]===l[++i]&&l[++t]===l[++i]&&l[++t]===l[++i]&&l[++t]===l[++i]&&ts){e.match_start=r;s=a;if(a>=f){break}h=l[t+s-1];p=l[t+s]}}while((r=o[r&d])>c&&--n!==0);if(s<=e.lookahead){return s}return e.lookahead}function fill_window(e){var r=e.w_size;var n,i,a,s,f;do{s=e.window_size-e.lookahead-e.strstart;if(e.strstart>=r+(r-F)){t.arraySet(e.window,e.window,r,r,0);e.match_start-=r;e.strstart-=r;e.block_start-=r;i=e.hash_size;n=i;do{a=e.head[--n];e.head[n]=a>=r?a-r:0}while(--i);i=r;n=i;do{a=e.prev[--n];e.prev[n]=a>=r?a-r:0}while(--i);s+=r}if(e.strm.avail_in===0){break}i=read_buf(e.strm,e.window,e.strstart+e.lookahead,s);e.lookahead+=i;if(e.lookahead+e.insert>=K){f=e.strstart-e.insert;e.ins_h=e.window[f];e.ins_h=(e.ins_h<e.pending_buf_size-5){n=e.pending_buf_size-5}for(;;){if(e.lookahead<=1){fill_window(e);if(e.lookahead===0&&r===c){return J}if(e.lookahead===0){break}}e.strstart+=e.lookahead;e.lookahead=0;var t=e.block_start+n;if(e.strstart===0||e.strstart>=t){e.lookahead=e.strstart-t;e.strstart=t;flush_block_only(e,false);if(e.strm.avail_out===0){return J}}if(e.strstart-e.block_start>=e.w_size-F){flush_block_only(e,false);if(e.strm.avail_out===0){return J}}}e.insert=0;if(r===o){flush_block_only(e,true);if(e.strm.avail_out===0){return Q}return Z}if(e.strstart>e.block_start){flush_block_only(e,false);if(e.strm.avail_out===0){return J}}return J}function deflate_fast(e,r){var n;var t;for(;;){if(e.lookahead=K){e.ins_h=(e.ins_h<=K){t=i._tr_tally(e,e.strstart-e.match_start,e.match_length-K);e.lookahead-=e.match_length;if(e.match_length<=e.max_lazy_match&&e.lookahead>=K){e.match_length--;do{e.strstart++;e.ins_h=(e.ins_h<=K){e.ins_h=(e.ins_h<4096)){e.match_length=K-1}}if(e.prev_length>=K&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-K;t=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-K);e.lookahead-=e.prev_length-1;e.prev_length-=2;do{if(++e.strstart<=a){e.ins_h=(e.ins_h<=K&&e.strstart>0){a=e.strstart-1;t=f[a];if(t===f[++a]&&t===f[++a]&&t===f[++a]){s=e.strstart+O;do{}while(t===f[++a]&&t===f[++a]&&t===f[++a]&&t===f[++a]&&t===f[++a]&&t===f[++a]&&t===f[++a]&&t===f[++a]&&ae.lookahead){e.match_length=e.lookahead}}}if(e.match_length>=K){n=i._tr_tally(e,1,e.match_length-K);e.lookahead-=e.match_length;e.strstart+=e.match_length;e.match_length=0}else{n=i._tr_tally(e,0,e.window[e.strstart]);e.lookahead--;e.strstart++}if(n){flush_block_only(e,false);if(e.strm.avail_out===0){return J}}}e.insert=0;if(r===o){flush_block_only(e,true);if(e.strm.avail_out===0){return Q}return Z}if(e.last_lit){flush_block_only(e,false);if(e.strm.avail_out===0){return J}}return Y}function deflate_huff(e,r){var n;for(;;){if(e.lookahead===0){fill_window(e);if(e.lookahead===0){if(r===c){return J}break}}e.match_length=0;n=i._tr_tally(e,0,e.window[e.strstart]);e.lookahead--;e.strstart++;if(n){flush_block_only(e,false);if(e.strm.avail_out===0){return J}}}e.insert=0;if(r===o){flush_block_only(e,true);if(e.strm.avail_out===0){return Q}return Z}if(e.last_lit){flush_block_only(e,false);if(e.strm.avail_out===0){return J}}return Y}function Config(e,r,n,t,i){this.good_length=e;this.max_lazy=r;this.nice_length=n;this.max_chain=t;this.func=i}var V;V=[new Config(0,0,0,0,deflate_stored),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)];function lm_init(e){e.window_size=2*e.w_size;zero(e.head);e.max_lazy_match=V[e.level].max_lazy;e.good_match=V[e.level].good_length;e.nice_match=V[e.level].nice_length;e.max_chain_length=V[e.level].max_chain;e.strstart=0;e.block_start=0;e.lookahead=0;e.insert=0;e.match_length=e.prev_length=K-1;e.match_available=0;e.ins_h=0}function DeflateState(){this.strm=null;this.status=0;this.pending_buf=null;this.pending_buf_size=0;this.pending_out=0;this.pending=0;this.wrap=0;this.gzhead=null;this.gzindex=0;this.method=R;this.last_flush=-1;this.w_size=0;this.w_bits=0;this.w_mask=0;this.window=null;this.window_size=0;this.prev=null;this.head=null;this.ins_h=0;this.hash_size=0;this.hash_bits=0;this.hash_mask=0;this.hash_shift=0;this.block_start=0;this.match_length=0;this.prev_match=0;this.match_available=0;this.strstart=0;this.match_start=0;this.lookahead=0;this.prev_length=0;this.max_chain_length=0;this.max_lazy_match=0;this.level=0;this.strategy=0;this.good_match=0;this.nice_match=0;this.dyn_ltree=new t.Buf16(x*2);this.dyn_dtree=new t.Buf16((2*q+1)*2);this.bl_tree=new t.Buf16((2*U+1)*2);zero(this.dyn_ltree);zero(this.dyn_dtree);zero(this.bl_tree);this.l_desc=null;this.d_desc=null;this.bl_desc=null;this.bl_count=new t.Buf16(I+1);this.heap=new t.Buf16(2*B+1);zero(this.heap);this.heap_len=0;this.heap_max=0;this.depth=new t.Buf16(2*B+1);zero(this.depth);this.l_buf=0;this.lit_bufsize=0;this.last_lit=0;this.d_buf=0;this.opt_len=0;this.static_len=0;this.matches=0;this.insert=0;this.bi_buf=0;this.bi_valid=0}function deflateResetKeep(e){var r;if(!e||!e.state){return err(e,v)}e.total_in=e.total_out=0;e.data_type=k;r=e.state;r.pending=0;r.pending_out=0;if(r.wrap<0){r.wrap=-r.wrap}r.status=r.wrap?T:H;e.adler=r.wrap===2?0:1;r.last_flush=c;i._tr_init(r);return h}function deflateReset(e){var r=deflateResetKeep(e);if(r===h){lm_init(e.state)}return r}function deflateSetHeader(e,r){if(!e||!e.state){return v}if(e.state.wrap!==2){return v}e.state.gzhead=r;return h}function deflateInit2(e,r,n,i,a,s){if(!e){return v}var f=1;if(r===g){r=6}if(i<0){f=0;i=-i}else if(i>15){f=2;i-=16}if(a<1||a>M||n!==R||i<8||i>15||r<0||r>9||s<0||s>E){return err(e,v)}if(i===8){i=9}var c=new DeflateState;e.state=c;c.strm=e;c.wrap=f;c.gzhead=null;c.w_bits=i;c.w_size=1<u||r<0){return e?err(e,v):v}t=e.state;if(!e.output||!e.input&&e.avail_in!==0||t.status===G&&r!==o){return err(e,e.avail_out===0?y:v)}t.strm=e;n=t.last_flush;t.last_flush=r;if(t.status===T){if(t.wrap===2){e.adler=0;put_byte(t,31);put_byte(t,139);put_byte(t,8);if(!t.gzhead){put_byte(t,0);put_byte(t,0);put_byte(t,0);put_byte(t,0);put_byte(t,0);put_byte(t,t.level===9?2:t.strategy>=m||t.level<2?4:0);put_byte(t,X);t.status=H}else{put_byte(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(!t.gzhead.extra?0:4)+(!t.gzhead.name?0:8)+(!t.gzhead.comment?0:16));put_byte(t,t.gzhead.time&255);put_byte(t,t.gzhead.time>>8&255);put_byte(t,t.gzhead.time>>16&255);put_byte(t,t.gzhead.time>>24&255);put_byte(t,t.level===9?2:t.strategy>=m||t.level<2?4:0);put_byte(t,t.gzhead.os&255);if(t.gzhead.extra&&t.gzhead.extra.length){put_byte(t,t.gzhead.extra.length&255);put_byte(t,t.gzhead.extra.length>>8&255)}if(t.gzhead.hcrc){e.adler=s(e.adler,t.pending_buf,t.pending,0)}t.gzindex=0;t.status=N}}else{var b=R+(t.w_bits-8<<4)<<8;var g=-1;if(t.strategy>=m||t.level<2){g=0}else if(t.level<6){g=1}else if(t.level===6){g=2}else{g=3}b|=g<<6;if(t.strstart!==0){b|=P}b+=31-b%31;t.status=H;putShortMSB(t,b);if(t.strstart!==0){putShortMSB(t,e.adler>>>16);putShortMSB(t,e.adler&65535)}e.adler=1}}if(t.status===N){if(t.gzhead.extra){a=t.pending;while(t.gzindex<(t.gzhead.extra.length&65535)){if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>a){e.adler=s(e.adler,t.pending_buf,t.pending-a,a)}flush_pending(e);a=t.pending;if(t.pending===t.pending_buf_size){break}}put_byte(t,t.gzhead.extra[t.gzindex]&255);t.gzindex++}if(t.gzhead.hcrc&&t.pending>a){e.adler=s(e.adler,t.pending_buf,t.pending-a,a)}if(t.gzindex===t.gzhead.extra.length){t.gzindex=0;t.status=z}}else{t.status=z}}if(t.status===z){if(t.gzhead.name){a=t.pending;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>a){e.adler=s(e.adler,t.pending_buf,t.pending-a,a)}flush_pending(e);a=t.pending;if(t.pending===t.pending_buf_size){f=1;break}}if(t.gzindexa){e.adler=s(e.adler,t.pending_buf,t.pending-a,a)}if(f===0){t.gzindex=0;t.status=L}}else{t.status=L}}if(t.status===L){if(t.gzhead.comment){a=t.pending;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>a){e.adler=s(e.adler,t.pending_buf,t.pending-a,a)}flush_pending(e);a=t.pending;if(t.pending===t.pending_buf_size){f=1;break}}if(t.gzindexa){e.adler=s(e.adler,t.pending_buf,t.pending-a,a)}if(f===0){t.status=W}}else{t.status=W}}if(t.status===W){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size){flush_pending(e)}if(t.pending+2<=t.pending_buf_size){put_byte(t,e.adler&255);put_byte(t,e.adler>>8&255);e.adler=0;t.status=H}}else{t.status=H}}if(t.pending!==0){flush_pending(e);if(e.avail_out===0){t.last_flush=-1;return h}}else if(e.avail_in===0&&rank(r)<=rank(n)&&r!==o){return err(e,y)}if(t.status===G&&e.avail_in!==0){return err(e,y)}if(e.avail_in!==0||t.lookahead!==0||r!==c&&t.status!==G){var w=t.strategy===m?deflate_huff(t,r):t.strategy===A?deflate_rle(t,r):V[t.level].func(t,r);if(w===Q||w===Z){t.status=G}if(w===J||w===Q){if(e.avail_out===0){t.last_flush=-1}return h}if(w===Y){if(r===l){i._tr_align(t)}else if(r!==u){i._tr_stored_block(t,0,0,false);if(r===d){zero(t.head);if(t.lookahead===0){t.strstart=0;t.block_start=0;t.insert=0}}}flush_pending(e);if(e.avail_out===0){t.last_flush=-1;return h}}}if(r!==o){return h}if(t.wrap<=0){return p}if(t.wrap===2){put_byte(t,e.adler&255);put_byte(t,e.adler>>8&255);put_byte(t,e.adler>>16&255);put_byte(t,e.adler>>24&255);put_byte(t,e.total_in&255);put_byte(t,e.total_in>>8&255);put_byte(t,e.total_in>>16&255);put_byte(t,e.total_in>>24&255)}else{putShortMSB(t,e.adler>>>16);putShortMSB(t,e.adler&65535)}flush_pending(e);if(t.wrap>0){t.wrap=-t.wrap}return t.pending!==0?h:p}function deflateEnd(e){var r;if(!e||!e.state){return v}r=e.state.status;if(r!==T&&r!==N&&r!==z&&r!==L&&r!==W&&r!==H&&r!==G){return err(e,v)}e.state=null;return r===H?err(e,b):h}function deflateSetDictionary(e,r){var n=r.length;var i;var s,f;var c;var l;var d;var o;var u;if(!e||!e.state){return v}i=e.state;c=i.wrap;if(c===2||c===1&&i.status!==T||i.lookahead){return v}if(c===1){e.adler=a(e.adler,r,n,0)}i.wrap=0;if(n>=i.w_size){if(c===0){zero(i.head);i.strstart=0;i.block_start=0;i.insert=0}u=new t.Buf8(i.w_size);t.arraySet(u,r,n-i.w_size,i.w_size,0);r=u;n=i.w_size}l=e.avail_in;d=e.next_in;o=e.input;e.avail_in=n;e.next_in=0;e.input=r;fill_window(i);while(i.lookahead>=K){s=i.strstart;f=i.lookahead-(K-1);do{i.ins_h=(i.ins_h<>>24;v>>>=E;b-=E;E=A>>>16&255;if(E===0){D[f++]=A&65535}else if(E&16){S=A&65535;E&=15;if(E){if(b>>=E;b-=E}if(b<15){v+=C[a++]<>>24;v>>>=E;b-=E;E=A>>>16&255;if(E&16){k=A&65535;E&=15;if(bd){e.msg="invalid distance too far back";n.mode=t;break e}v>>>=E;b-=E;E=f-c;if(k>E){E=k-E;if(E>u){if(n.sane){e.msg="invalid distance too far back";n.mode=t;break e}}R=0;M=p;if(h===0){R+=o-E;if(E2){D[f++]=M[R++];D[f++]=M[R++];D[f++]=M[R++];S-=3}if(S){D[f++]=M[R++];if(S>1){D[f++]=M[R++]}}}else{R=f-k;do{D[f++]=D[R++];D[f++]=D[R++];D[f++]=D[R++];S-=3}while(S>2);if(S){D[f++]=D[R++];if(S>1){D[f++]=D[R++]}}}}else if((E&64)===0){A=g[(A&65535)+(v&(1<>3;a-=S;b-=S<<3;v&=(1<>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function InflateState(){this.mode=0;this.last=false;this.wrap=0;this.havedict=false;this.flags=0;this.dmax=0;this.check=0;this.total=0;this.head=null;this.wbits=0;this.wsize=0;this.whave=0;this.wnext=0;this.window=null;this.hold=0;this.bits=0;this.length=0;this.offset=0;this.extra=0;this.lencode=null;this.distcode=null;this.lenbits=0;this.distbits=0;this.ncode=0;this.nlen=0;this.ndist=0;this.have=0;this.next=null;this.lens=new t.Buf16(320);this.work=new t.Buf16(288);this.lendyn=null;this.distdyn=null;this.sane=0;this.back=0;this.was=0}function inflateResetKeep(e){var r;if(!e||!e.state){return y}r=e.state;e.total_in=e.total_out=r.total=0;e.msg="";if(r.wrap){e.adler=r.wrap&1}r.mode=E;r.last=0;r.havedict=0;r.dmax=32768;r.head=null;r.hold=0;r.bits=0;r.lencode=r.lendyn=new t.Buf32(ee);r.distcode=r.distdyn=new t.Buf32(re);r.sane=1;r.back=-1;return p}function inflateReset(e){var r;if(!e||!e.state){return y}r=e.state;r.wsize=0;r.whave=0;r.wnext=0;return inflateResetKeep(e)}function inflateReset2(e,r){var n;var t;if(!e||!e.state){return y}t=e.state;if(r<0){n=0;r=-r}else{n=(r>>4)+1;if(r<48){r&=15}}if(r&&(r<8||r>15)){return y}if(t.window!==null&&t.wbits!==r){t.window=null}t.wrap=n;t.wbits=r;return inflateReset(e)}function inflateInit2(e,r){var n;var t;if(!e){return y}t=new InflateState;e.state=t;t.window=null;n=inflateReset2(e,r);if(n!==p){e.state=null}return n}function inflateInit(e){return inflateInit2(e,te)}var ie=true;var ae,se;function fixedtables(e){if(ie){var r;ae=new t.Buf32(512);se=new t.Buf32(32);r=0;while(r<144){e.lens[r++]=8}while(r<256){e.lens[r++]=9}while(r<280){e.lens[r++]=7}while(r<288){e.lens[r++]=8}f(l,e.lens,0,288,ae,0,e.work,{bits:9});r=0;while(r<32){e.lens[r++]=5}f(d,e.lens,0,32,se,0,e.work,{bits:5});ie=false}e.lencode=ae;e.lenbits=9;e.distcode=se;e.distbits=5}function updatewindow(e,r,n,i){var a;var s=e.state;if(s.window===null){s.wsize=1<=s.wsize){t.arraySet(s.window,r,n-s.wsize,s.wsize,0);s.wnext=0;s.whave=s.wsize}else{a=s.wsize-s.wnext;if(a>i){a=i}t.arraySet(s.window,r,n-i,a,s.wnext);i-=a;if(i){t.arraySet(s.window,r,n-i,i,0);s.wnext=i;s.whave=s.wsize}else{s.wnext+=a;if(s.wnext===s.wsize){s.wnext=0}if(s.whave>>8&255;n.check=a(n.check,Ee,2,0);se=0;fe=0;n.mode=S;break}n.flags=0;if(n.head){n.head.done=false}if(!(n.wrap&1)||(((se&255)<<8)+(se>>8))%31){e.msg="incorrect header check";n.mode=X;break}if((se&15)!==A){e.msg="unknown compression method";n.mode=X;break}se>>>=4;fe-=4;me=(se&15)+8;if(n.wbits===0){n.wbits=me}else if(me>n.wbits){e.msg="invalid window size";n.mode=X;break}n.dmax=1<>8&1}if(n.flags&512){Ee[0]=se&255;Ee[1]=se>>>8&255;n.check=a(n.check,Ee,2,0)}se=0;fe=0;n.mode=k;case k:while(fe<32){if(ie===0){break e}ie--;se+=ee[ne++]<>>8&255;Ee[2]=se>>>16&255;Ee[3]=se>>>24&255;n.check=a(n.check,Ee,4,0)}se=0;fe=0;n.mode=R;case R:while(fe<16){if(ie===0){break e}ie--;se+=ee[ne++]<>8}if(n.flags&512){Ee[0]=se&255;Ee[1]=se>>>8&255;n.check=a(n.check,Ee,2,0)}se=0;fe=0;n.mode=M;case M:if(n.flags&1024){while(fe<16){if(ie===0){break e}ie--;se+=ee[ne++]<>>8&255;n.check=a(n.check,Ee,2,0)}se=0;fe=0}else if(n.head){n.head.extra=null}n.mode=C;case C:if(n.flags&1024){de=n.length;if(de>ie){de=ie}if(de){if(n.head){me=n.head.extra_len-n.length;if(!n.head.extra){n.head.extra=new Array(n.head.extra_len)}t.arraySet(n.head.extra,ee,ne,de,me)}if(n.flags&512){n.check=a(n.check,ee,de,ne)}ie-=de;ne+=de;n.length-=de}if(n.length){break e}}n.length=0;n.mode=D;case D:if(n.flags&2048){if(ie===0){break e}de=0;do{me=ee[ne+de++];if(n.head&&me&&n.length<65536){n.head.name+=String.fromCharCode(me)}}while(me&&de>9&1;n.head.done=true}e.adler=n.check=0;n.mode=U;break;case B:while(fe<32){if(ie===0){break e}ie--;se+=ee[ne++]<>>=fe&7;fe-=fe&7;n.mode=Y;break}while(fe<3){if(ie===0){break e}ie--;se+=ee[ne++]<>>=1;fe-=1;switch(se&3){case 0:n.mode=I;break;case 1:fixedtables(n);n.mode=N;if(r===h){se>>>=2;fe-=2;break e}break;case 2:n.mode=F;break;case 3:e.msg="invalid block type";n.mode=X}se>>>=2;fe-=2;break;case I:se>>>=fe&7;fe-=fe&7;while(fe<32){if(ie===0){break e}ie--;se+=ee[ne++]<>>16^65535)){e.msg="invalid stored block lengths";n.mode=X;break}n.length=se&65535;se=0;fe=0;n.mode=K;if(r===h){break e}case K:n.mode=O;case O:de=n.length;if(de){if(de>ie){de=ie}if(de>ae){de=ae}if(de===0){break e}t.arraySet(re,ee,ne,de,te);ie-=de;ne+=de;ae-=de;te+=de;n.length-=de;break}n.mode=U;break;case F:while(fe<14){if(ie===0){break e}ie--;se+=ee[ne++]<>>=5;fe-=5;n.ndist=(se&31)+1;se>>>=5;fe-=5;n.ncode=(se&15)+4;se>>>=4;fe-=4;if(n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols";n.mode=X;break}n.have=0;n.mode=P;case P:while(n.have>>=3;fe-=3}while(n.have<19){n.lens[Re[n.have++]]=0}n.lencode=n.lendyn;n.lenbits=7;Se={bits:n.lenbits};Ae=f(c,n.lens,0,19,n.lencode,0,n.work,Se);n.lenbits=Se.bits;if(Ae){e.msg="invalid code lengths set";n.mode=X;break}n.have=0;n.mode=T;case T:while(n.have>>24;ve=he>>>16&255;be=he&65535;if(pe<=fe){break}if(ie===0){break e}ie--;se+=ee[ne++]<>>=pe;fe-=pe;n.lens[n.have++]=be}else{if(be===16){ke=pe+2;while(fe>>=pe;fe-=pe;if(n.have===0){e.msg="invalid bit length repeat";n.mode=X;break}me=n.lens[n.have-1];de=3+(se&3);se>>>=2;fe-=2}else if(be===17){ke=pe+3;while(fe>>=pe;fe-=pe;me=0;de=3+(se&7);se>>>=3;fe-=3}else{ke=pe+7;while(fe>>=pe;fe-=pe;me=0;de=11+(se&127);se>>>=7;fe-=7}if(n.have+de>n.nlen+n.ndist){e.msg="invalid bit length repeat";n.mode=X;break}while(de--){n.lens[n.have++]=me}}}if(n.mode===X){break}if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block";n.mode=X;break}n.lenbits=9;Se={bits:n.lenbits};Ae=f(l,n.lens,0,n.nlen,n.lencode,0,n.work,Se);n.lenbits=Se.bits;if(Ae){e.msg="invalid literal/lengths set";n.mode=X;break}n.distbits=6;n.distcode=n.distdyn;Se={bits:n.distbits};Ae=f(d,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Se);n.distbits=Se.bits;if(Ae){e.msg="invalid distances set";n.mode=X;break}n.mode=N;if(r===h){break e}case N:n.mode=z;case z:if(ie>=6&&ae>=258){e.next_out=te;e.avail_out=ae;e.next_in=ne;e.avail_in=ie;n.hold=se;n.bits=fe;s(e,le);te=e.next_out;re=e.output;ae=e.avail_out;ne=e.next_in;ee=e.input;ie=e.avail_in;se=n.hold;fe=n.bits;if(n.mode===U){n.back=-1}break}n.back=0;for(;;){he=n.lencode[se&(1<>>24;ve=he>>>16&255;be=he&65535;if(pe<=fe){break}if(ie===0){break e}ie--;se+=ee[ne++]<>ye)];pe=he>>>24;ve=he>>>16&255;be=he&65535;if(ye+pe<=fe){break}if(ie===0){break e}ie--;se+=ee[ne++]<>>=ye;fe-=ye;n.back+=ye}se>>>=pe;fe-=pe;n.back+=pe;n.length=be;if(ve===0){n.mode=J;break}if(ve&32){n.back=-1;n.mode=U;break}if(ve&64){e.msg="invalid literal/length code";n.mode=X;break}n.extra=ve&15;n.mode=L;case L:if(n.extra){ke=n.extra;while(fe>>=n.extra;fe-=n.extra;n.back+=n.extra}n.was=n.length;n.mode=W;case W:for(;;){he=n.distcode[se&(1<>>24;ve=he>>>16&255;be=he&65535;if(pe<=fe){break}if(ie===0){break e}ie--;se+=ee[ne++]<>ye)];pe=he>>>24;ve=he>>>16&255;be=he&65535;if(ye+pe<=fe){break}if(ie===0){break e}ie--;se+=ee[ne++]<>>=ye;fe-=ye;n.back+=ye}se>>>=pe;fe-=pe;n.back+=pe;if(ve&64){e.msg="invalid distance code";n.mode=X;break}n.offset=be;n.extra=ve&15;n.mode=H;case H:if(n.extra){ke=n.extra;while(fe>>=n.extra;fe-=n.extra;n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back";n.mode=X;break}n.mode=G;case G:if(ae===0){break e}de=le-ae;if(n.offset>de){de=n.offset-de;if(de>n.whave){if(n.sane){e.msg="invalid distance too far back";n.mode=X;break}}if(de>n.wnext){de-=n.wnext;oe=n.wsize-de}else{oe=n.wnext-de}if(de>n.length){de=n.length}ue=n.window}else{ue=re;oe=te-n.offset;de=n.length}if(de>ae){de=ae}ae-=de;n.length-=de;do{re[te++]=ue[oe++]}while(--de);if(n.length===0){n.mode=z}break;case J:if(ae===0){break e}re[te++]=n.length;ae--;n.mode=z;break;case Y:if(n.wrap){while(fe<32){if(ie===0){break e}ie--;se|=ee[ne++]<=1;S--){if(F[S]!==0){break}}if(k>S){k=S}if(S===0){v[b++]=1<<24|64<<16|0;v[b++]=1<<24|64<<16|0;g.bits=1;return 0}for(E=1;E0&&(e===f||S!==1)){return-1}P[1]=0;for(m=1;ma||e===l&&D>s){return 1}for(;;){z=m-M;if(y[A]O){L=T[N+y[A]];W=I[K+y[A]]}else{L=32+64;W=0}j=1<>M)+B]=z<<24|L<<16|W|0}while(B!==0);j=1<>=1}if(j!==0){_&=j-1;_+=j}else{_=0}A++;if(--F[m]===0){if(m===S){break}m=r[n+y[A]]}if(m>k&&(_&U)!==q){if(M===0){M=k}x+=E;R=m-M;C=1<a||e===l&&D>s){return 1}q=_&U;v[q]=k<<24|R<<16|x-b|0}}if(_!==0){v[x+_]=m-M<<24|64<<16|0}g.bits=k;return 0}},{"../utils/common":67}],77:[function(e,r,n){"use strict";r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],78:[function(e,r,n){"use strict";var t=e("../utils/common");var i=4;var a=0;var s=1;var f=2;function zero(e){var r=e.length;while(--r>=0){e[r]=0}}var c=0;var l=1;var d=2;var o=3;var u=258;var h=29;var p=256;var v=p+1+h;var b=30;var y=19;var g=2*v+1;var w=15;var m=16;var A=7;var E=256;var S=16;var k=17;var R=18;var M=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];var C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];var D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];var _=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];var j=512;var B=new Array((v+2)*2);zero(B);var q=new Array(b*2);zero(q);var U=new Array(j);zero(U);var x=new Array(u-o+1);zero(x);var I=new Array(h);zero(I);var K=new Array(b);zero(K);function StaticTreeDesc(e,r,n,t,i){this.static_tree=e;this.extra_bits=r;this.extra_base=n;this.elems=t;this.max_length=i;this.has_stree=e&&e.length}var O;var F;var P;function TreeDesc(e,r){this.dyn_tree=e;this.max_code=0;this.stat_desc=r}function d_code(e){return e<256?U[e]:U[256+(e>>>7)]}function put_short(e,r){e.pending_buf[e.pending++]=r&255;e.pending_buf[e.pending++]=r>>>8&255}function send_bits(e,r,n){if(e.bi_valid>m-n){e.bi_buf|=r<>m-e.bi_valid;e.bi_valid+=n-m}else{e.bi_buf|=r<>>=1;n<<=1}while(--r>0);return n>>>1}function bi_flush(e){if(e.bi_valid===16){put_short(e,e.bi_buf);e.bi_buf=0;e.bi_valid=0}else if(e.bi_valid>=8){e.pending_buf[e.pending++]=e.bi_buf&255;e.bi_buf>>=8;e.bi_valid-=8}}function gen_bitlen(e,r){var n=r.dyn_tree;var t=r.max_code;var i=r.stat_desc.static_tree;var a=r.stat_desc.has_stree;var s=r.stat_desc.extra_bits;var f=r.stat_desc.extra_base;var c=r.stat_desc.max_length;var l;var d,o;var u;var h;var p;var v=0;for(u=0;u<=w;u++){e.bl_count[u]=0}n[e.heap[e.heap_max]*2+1]=0;for(l=e.heap_max+1;lc){u=c;v++}n[d*2+1]=u;if(d>t){continue}e.bl_count[u]++;h=0;if(d>=f){h=s[d-f]}p=n[d*2];e.opt_len+=p*(u+h);if(a){e.static_len+=p*(i[d*2+1]+h)}}if(v===0){return}do{u=c-1;while(e.bl_count[u]===0){u--}e.bl_count[u]--;e.bl_count[u+1]+=2;e.bl_count[c]--;v-=2}while(v>0);for(u=c;u!==0;u--){d=e.bl_count[u];while(d!==0){o=e.heap[--l];if(o>t){continue}if(n[o*2+1]!==u){e.opt_len+=(u-n[o*2+1])*n[o*2];n[o*2+1]=u}d--}}}function gen_codes(e,r,n){var t=new Array(w+1);var i=0;var a;var s;for(a=1;a<=w;a++){t[a]=i=i+n[a-1]<<1}for(s=0;s<=r;s++){var f=e[s*2+1];if(f===0){continue}e[s*2]=bi_reverse(t[f]++,f)}}function tr_static_init(){var e;var r;var n;var t;var i;var a=new Array(w+1);n=0;for(t=0;t>=7;for(;t8){put_short(e,e.bi_buf)}else if(e.bi_valid>0){e.pending_buf[e.pending++]=e.bi_buf}e.bi_buf=0;e.bi_valid=0}function copy_block(e,r,n,i){bi_windup(e);if(i){put_short(e,n);put_short(e,~n)}t.arraySet(e.pending_buf,e.window,r,n,e.pending);e.pending+=n}function smaller(e,r,n,t){var i=r*2;var a=n*2;return e[i]>1;s>=1;s--){pqdownheap(e,n,s)}l=a;do{s=e.heap[1];e.heap[1]=e.heap[e.heap_len--];pqdownheap(e,n,1);f=e.heap[1];e.heap[--e.heap_max]=s;e.heap[--e.heap_max]=f;n[l*2]=n[s*2]+n[f*2];e.depth[l]=(e.depth[s]>=e.depth[f]?e.depth[s]:e.depth[f])+1;n[s*2+1]=n[f*2+1]=l;e.heap[1]=l++;pqdownheap(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1];gen_bitlen(e,r);gen_codes(n,c,e.bl_count)}function scan_tree(e,r,n){var t;var i=-1;var a;var s=r[0*2+1];var f=0;var c=7;var l=4;if(s===0){c=138;l=3}r[(n+1)*2+1]=65535;for(t=0;t<=n;t++){a=s;s=r[(t+1)*2+1];if(++f=3;r--){if(e.bl_tree[_[r]*2+1]!==0){break}}e.opt_len+=3*(r+1)+5+5+4;return r}function send_all_trees(e,r,n,t){var i;send_bits(e,r-257,5);send_bits(e,n-1,5);send_bits(e,t-4,4);for(i=0;i>>=1){if(r&1&&e.dyn_ltree[n*2]!==0){return a}}if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0){return s}for(n=32;n0){if(e.strm.data_type===f){e.strm.data_type=detect_data_type(e)}build_tree(e,e.l_desc);build_tree(e,e.d_desc);c=build_bl_tree(e);a=e.opt_len+3+7>>>3;s=e.static_len+3+7>>>3;if(s<=a){a=s}}else{a=s=n+5}if(n+4<=a&&r!==-1){_tr_stored_block(e,r,n,t)}else if(e.strategy===i||s===a){send_bits(e,(l<<1)+(t?1:0),3);compress_block(e,B,q)}else{send_bits(e,(d<<1)+(t?1:0),3);send_all_trees(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1);compress_block(e,e.dyn_ltree,e.dyn_dtree)}init_block(e);if(t){bi_windup(e)}}function _tr_tally(e,r,n){e.pending_buf[e.d_buf+e.last_lit*2]=r>>>8&255;e.pending_buf[e.d_buf+e.last_lit*2+1]=r&255;e.pending_buf[e.l_buf+e.last_lit]=n&255;e.last_lit++;if(r===0){e.dyn_ltree[n*2]++}else{e.matches++;r--;e.dyn_ltree[(x[n]+p+1)*2]++;e.dyn_dtree[d_code(r)*2]++}return e.last_lit===e.lit_bufsize-1}n._tr_init=_tr_init;n._tr_stored_block=_tr_stored_block;n._tr_flush_block=_tr_flush_block;n._tr_tally=_tr_tally;n._tr_align=_tr_align},{"../utils/common":67}],79:[function(e,r,n){"use strict";function ZStream(){this.input=null;this.next_in=0;this.avail_in=0;this.total_in=0;this.output=null;this.next_out=0;this.avail_out=0;this.total_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0}r.exports=ZStream},{}],80:[function(e,r,n){var t=r.exports={};var i;var a;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){i=setTimeout}else{i=defaultSetTimout}}catch(e){i=defaultSetTimout}try{if(typeof clearTimeout==="function"){a=clearTimeout}else{a=defaultClearTimeout}}catch(e){a=defaultClearTimeout}})();function runTimeout(e){if(i===setTimeout){return setTimeout(e,0)}if((i===defaultSetTimout||!i)&&setTimeout){i=setTimeout;return setTimeout(e,0)}try{return i(e,0)}catch(r){try{return i.call(null,e,0)}catch(r){return i.call(this,e,0)}}}function runClearTimeout(e){if(a===clearTimeout){return clearTimeout(e)}if((a===defaultClearTimeout||!a)&&clearTimeout){a=clearTimeout;return clearTimeout(e)}try{return a(e)}catch(r){try{return a.call(null,e)}catch(r){return a.call(this,e)}}}var s=[];var f=false;var c;var l=-1;function cleanUpNextTick(){if(!f||!c){return}f=false;if(c.length){s=c.concat(s)}else{l=-1}if(s.length){drainQueue()}}function drainQueue(){if(f){return}var e=runTimeout(cleanUpNextTick);f=true;var r=s.length;while(r){c=s;s=[];while(++l1){for(var n=1;n0){this._ensureByte();var n=8-this.bitOffset;if(e>=n){r<<=n;r|=t[n]&this.curByte;this.hasByte=false;this.bitOffset=0;e-=n}else{r<<=e;var i=n-e;r|=(this.curByte&t[e]<>i;this.bitOffset+=e;e=0}}return r};i.prototype.seek=function(e){var r=e%8;var n=(e-r)/8;this.bitOffset=r;this.stream.seek(n);this.hasByte=false};i.prototype.pi=function(){var e=new Uint8Array(6),r;for(r=0;r("00"+e.toString(16)).slice(-2)).join("")}r.exports=i},{}],82:[function(e,r,n){"use strict";r.exports=function(){var e=new Uint32Array([0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188]);var r=function CRC32(){var r=4294967295;this.getCRC=function(){return~r>>>0};this.updateCRC=function(n){r=r<<8^e[(r>>>24^n)&255]};this.updateCRCRun=function(n,t){while(t-- >0){r=r<<8^e[(r>>>24^n)&255]}}};return r}()},{}],83:[function(e,r,n){"use strict";var t=e("./bitreader");var i=e("./stream");var a=e("./crc32");var s=20;var f=258;var c=0;var l=1;var d=2;var o=6;var u=50;var h="314159265359";var p="177245385090";var v=function mtf(e,r){var n=e[r],t;for(t=r;t>0;t--){e[t]=e[t-1]}e[0]=n;return n};var b={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8};var y={};y[b.LAST_BLOCK]="Bad file checksum";y[b.NOT_BZIP_DATA]="Not bzip data";y[b.UNEXPECTED_INPUT_EOF]="Unexpected input EOF";y[b.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF";y[b.DATA_ERROR]="Data error";y[b.OUT_OF_MEMORY]="Out of memory";y[b.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var g=function _throw(e,r){var n=y[e]||"unknown error";if(r){n+=": "+r}var t=new TypeError(n);t.errorCode=e;throw t};var w=function Bunzip(e,r){this.writePos=this.writeCurrent=this.writeCount=0;this._start_bunzip(e,r)};w.prototype._init_block=function(){var e=this._get_next_block();if(!e){this.writeCount=-1;return false}this.blockCRC=new a;return true};w.prototype._start_bunzip=function(e,r){var n=new Uint8Array(4);if(e.read(n,0,4)!==4||String.fromCharCode(n[0],n[1],n[2])!=="BZh")g(b.NOT_BZIP_DATA,"bad magic");var i=n[3]-48;if(i<1||i>9)g(b.NOT_BZIP_DATA,"level out of range");this.reader=new t(e);this.dbufSize=1e5*i;this.nextoutput=0;this.outputStream=r;this.streamCRC=0};w.prototype._get_next_block=function(){var e,r,n;var t=this.reader;var i=t.pi();if(i===p){return false}if(i!==h)g(b.NOT_BZIP_DATA);this.targetBlockCRC=t.read(32)>>>0;this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0;if(t.read(1))g(b.OBSOLETE_INPUT);var a=t.read(24);if(a>this.dbufSize)g(b.DATA_ERROR,"initial position out of bounds");var y=t.read(16);var w=new Uint8Array(256),m=0;for(e=0;e<16;e++){if(y&1<<15-e){var A=e*16;n=t.read(16);for(r=0;r<16;r++)if(n&1<<15-r)w[m++]=A+r}}var E=t.read(3);if(Eo)g(b.DATA_ERROR);var S=t.read(15);if(S===0)g(b.DATA_ERROR);var k=new Uint8Array(256);for(e=0;e=E)g(b.DATA_ERROR);R[e]=v(k,r)}var M=m+2;var C=[],D;for(r=0;rs)g(b.DATA_ERROR);if(!t.read(1))break;if(!t.read(1))y++;else y--}_[e]=y}var B,q;B=q=_[0];for(e=1;eq)q=_[e];else if(_[e]=S){g(b.DATA_ERROR)}D=C[R[O++]]}e=D.minLen;r=t.read(e);for(;;e++){if(e>D.maxLen){g(b.DATA_ERROR)}if(r<=D.limit[e])break;r=r<<1|t.read(1)}r-=D.base[e];if(r<0||r>=f){g(b.DATA_ERROR)}var T=D.permute[r];if(T===c||T===l){if(!I){I=1;y=0}if(T===c)y+=I;else y+=2*I;I<<=1;continue}if(I){I=0;if(K+y>this.dbufSize){g(b.DATA_ERROR)}F=w[k[0]];x[F]+=y;while(y--)P[K++]=F}if(T>m)break;if(K>=this.dbufSize){g(b.DATA_ERROR)}e=T-1;F=v(k,e);F=w[F];x[F]++;P[K++]=F}if(a<0||a>=K){g(b.DATA_ERROR)}r=0;for(e=0;e<256;e++){n=r+x[e];x[e]=r;r=n}for(e=0;e>=8;L=-1}this.writePos=N;this.writeCurrent=z;this.writeCount=K;this.writeRun=L;return true};w.prototype._read_bunzip=function(e,r){var n,t,i;if(this.writeCount<0){return 0}var a=0;var s=this.dbuf,f=this.writePos,c=this.writeCurrent;var l=this.writeCount,d=this.outputsize;var o=this.writeRun;while(l){l--;t=c;f=s[f];c=f&255;f>>=8;if(o++===3){n=c;i=t;c=-1}else{n=1;i=c}this.blockCRC.updateCRCRun(i,n);while(n--){this.outputStream.writeByte(i);this.nextoutput++}if(c!=t)o=0}this.writeCount=l;if(this.blockCRC.getCRC()!==this.targetBlockCRC){g(b.DATA_ERROR,"Bad block CRC "+"(got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")")}return this.nextoutput};var m=function coerceInputStream(e){if("readByte"in e){return e}var r=new i;r.pos=0;r.readByte=function(){return e[this.pos++]};r.seek=function(e){this.pos=e};r.eof=function(){return this.pos>=e.length};return r};var A=function coerceOutputStream(e){var r=new i;var n=true;if(e){if(typeof e==="number"){r.buffer=new Uint8Array(e);n=false}else if("writeByte"in e){return e}else{r.buffer=e;n=false}}else{r.buffer=new Uint8Array(16384)}r.pos=0;r.writeByte=function(e){if(n&&this.pos>=this.buffer.length){var r=new Uint8Array(this.buffer.length*2);r.set(this.buffer);this.buffer=r}this.buffer[this.pos++]=e};r.getBuffer=function(){if(this.pos!==this.buffer.length){if(!n)throw new TypeError("outputsize does not match decoded input");var e=new Uint8Array(this.pos);e.set(this.buffer.subarray(0,this.pos));this.buffer=e}return this.buffer};r._coerced=true;return r};w.Err=b;w.decode=function(e,r,n){var t=m(e);var i=A(r);var a=new w(t,i);while(true){if("eof"in t&&t.eof())break;if(a._init_block()){a._read_bunzip()}else{var s=a.reader.read(32)>>>0;if(s!==a.streamCRC){g(b.DATA_ERROR,"Bad stream CRC "+"(got "+a.streamCRC.toString(16)+" expected "+s.toString(16)+")")}if(n&&"eof"in t&&!t.eof()){a._start_bunzip(t,i)}else break}}if("getBuffer"in i)return i.getBuffer()};w.decodeBlock=function(e,r,n){var t=m(e);var i=A(n);var s=new w(t,i);s.reader.seek(r);var f=s._get_next_block();if(f){s.blockCRC=new a;s.writeCopies=0;s._read_bunzip()}if("getBuffer"in i)return i.getBuffer()};w.table=function(e,r,n){var t=new i;t.delegate=m(e);t.pos=0;t.readByte=function(){this.pos++;return this.delegate.readByte()};if(t.delegate.eof){t.eof=t.delegate.eof.bind(t.delegate)}var a=new i;a.pos=0;a.writeByte=function(){this.pos++};var s=new w(t,a);var f=s.dbufSize;while(true){if("eof"in t&&t.eof())break;var c=t.pos*8+s.reader.bitOffset;if(s.reader.hasByte){c-=8}if(s._init_block()){var l=a.pos;s._read_bunzip();r(c,a.pos-l)}else{var d=s.reader.read(32);if(n&&"eof"in t&&!t.eof()){s._start_bunzip(t,a);console.assert(s.dbufSize===f,"shouldn't change block size within multistream file")}else break}}};w.Stream=i;r.exports=w},{"./bitreader":81,"./crc32":82,"./stream":84}],84:[function(e,r,n){"use strict";var t=function Stream(){};t.prototype.readByte=function(){throw new Error("abstract method readByte() not implemented")};t.prototype.read=function(e,r,n){var t=0;while(t57343){i.push(a)}else if(56320<=a&&a<=57343){i.push(65533)}else if(55296<=a&&a<=56319){if(t===n-1){i.push(65533)}else{var s=e.charCodeAt(t+1);if(56320<=s&&s<=57343){var f=a&1023;var c=s&1023;i.push(65536+(f<<10)+c);t+=1}else{i.push(65533)}}}t+=1}return i}function codePointsToString(e){var r="";for(var n=0;n>10)+55296,(t&1023)+56320)}}return r}var t=-1;function Stream(e){this.tokens=[].slice.call(e)}Stream.prototype={endOfStream:function(){return!this.tokens.length},read:function(){if(!this.tokens.length)return t;return this.tokens.shift()},prepend:function(e){if(Array.isArray(e)){var r=e;while(r.length)this.tokens.unshift(r.pop())}else{this.tokens.unshift(e)}},push:function(e){if(Array.isArray(e)){var r=e;while(r.length)this.tokens.push(r.shift())}else{this.tokens.push(e)}}};var i=-1;function decoderError(e,r){if(e)throw TypeError("Decoder error");return r||65533}var a="utf-8";function TextDecoder(e,r){if(!(this instanceof TextDecoder)){return new TextDecoder(e,r)}e=e!==undefined?String(e).toLowerCase():a;if(e!==a){throw new Error("Encoding not supported. Only utf-8 is supported")}r=ToDictionary(r);this._streaming=false;this._BOMseen=false;this._decoder=null;this._fatal=Boolean(r["fatal"]);this._ignoreBOM=Boolean(r["ignoreBOM"]);Object.defineProperty(this,"encoding",{value:"utf-8"});Object.defineProperty(this,"fatal",{value:this._fatal});Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}TextDecoder.prototype={decode:function decode(e,r){var n;if(typeof e==="object"&&e instanceof ArrayBuffer){n=new Uint8Array(e)}else if(typeof e==="object"&&"buffer"in e&&e.buffer instanceof ArrayBuffer){n=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}else{n=new Uint8Array(0)}r=ToDictionary(r);if(!this._streaming){this._decoder=new UTF8Decoder({fatal:this._fatal});this._BOMseen=false}this._streaming=Boolean(r["stream"]);var t=new Stream(n);var a=[];var s;while(!t.endOfStream()){s=this._decoder.handler(t,t.read());if(s===i)break;if(s===null)continue;if(Array.isArray(s))a.push.apply(a,s);else a.push(s)}if(!this._streaming){do{s=this._decoder.handler(t,t.read());if(s===i)break;if(s===null)continue;if(Array.isArray(s))a.push.apply(a,s);else a.push(s)}while(!t.endOfStream());this._decoder=null}if(a.length){if(["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen){if(a[0]===65279){this._BOMseen=true;a.shift()}else{this._BOMseen=true}}}return codePointsToString(a)}};function TextEncoder(e,r){if(!(this instanceof TextEncoder))return new TextEncoder(e,r);e=e!==undefined?String(e).toLowerCase():a;if(e!==a){throw new Error("Encoding not supported. Only utf-8 is supported")}r=ToDictionary(r);this._streaming=false;this._encoder=null;this._options={fatal:Boolean(r["fatal"])};Object.defineProperty(this,"encoding",{value:"utf-8"})}TextEncoder.prototype={encode:function encode(e,r){e=e?String(e):"";r=ToDictionary(r);if(!this._streaming)this._encoder=new UTF8Encoder(this._options);this._streaming=Boolean(r["stream"]);var n=[];var t=new Stream(stringToCodePoints(e));var a;while(!t.endOfStream()){a=this._encoder.handler(t,t.read());if(a===i)break;if(Array.isArray(a))n.push.apply(n,a);else n.push(a)}if(!this._streaming){while(true){a=this._encoder.handler(t,t.read());if(a===i)break;if(Array.isArray(a))n.push.apply(n,a);else n.push(a)}this._encoder=null}return new Uint8Array(n)}};function UTF8Decoder(e){var r=e.fatal;var n=0,a=0,s=0,f=128,c=191;this.handler=function(e,l){if(l===t&&s!==0){s=0;return decoderError(r)}if(l===t)return i;if(s===0){if(inRange(l,0,127)){return l}if(inRange(l,194,223)){s=1;n=l-192}else if(inRange(l,224,239)){if(l===224)f=160;if(l===237)c=159;s=2;n=l-224}else if(inRange(l,240,244)){if(l===240)f=144;if(l===244)c=143;s=3;n=l-240}else{return decoderError(r)}n=n<<6*s;return null}if(!inRange(l,f,c)){n=s=a=0;f=128;c=191;e.prepend(l);return decoderError(r)}f=128;c=191;a+=1;n+=l-128<<6*(s-a);if(a!==s)return null;var d=n;n=s=a=0;return d}}function UTF8Encoder(e){var r=e.fatal;this.handler=function(e,r){if(r===t)return i;if(inRange(r,0,127))return r;var n,a;if(inRange(r,128,2047)){n=1;a=192}else if(inRange(r,2048,65535)){n=2;a=224}else if(inRange(r,65536,1114111)){n=3;a=240}var s=[(r>>6*n)+a];while(n>0){var f=r>>6*(n-1);s.push(128|f&63);n-=1}return s}}n.TextEncoder=TextEncoder;n.TextDecoder=TextDecoder},{}],86:[function(e,r,n){(function(r){"use strict";var n=function(e){var r,n=new Float64Array(16);if(e)for(r=0;r>>8)-1}function crypto_verify_32(e,r,n,t){return vn(e,r,n,t,32)}function set25519(e,r){var n;for(n=0;n<16;n++)e[n]=r[n]|0}function car25519(e){var r,n,t=1;for(r=0;r<16;r++){n=e[r]+t+65535;t=Math.floor(n/65536);e[r]=n-t*65536}e[0]+=t-1+37*(t-1)}function sel25519(e,r,n){var t,i=~(n-1);for(var a=0;a<16;a++){t=i&(e[a]^r[a]);e[a]^=t;r[a]^=t}}function pack25519(e,r){var t,i,a;var s=n(),f=n();for(t=0;t<16;t++)f[t]=r[t];car25519(f);car25519(f);car25519(f);for(i=0;i<2;i++){s[0]=f[0]-65517;for(t=1;t<15;t++){s[t]=f[t]-65535-(s[t-1]>>16&1);s[t-1]&=65535}s[15]=f[15]-32767-(s[14]>>16&1);a=s[15]>>16&1;s[14]&=65535;sel25519(f,s,1-a)}for(t=0;t<16;t++){e[2*t]=f[t]&255;e[2*t+1]=f[t]>>8}}function neq25519(e,r){var n=new Uint8Array(32),t=new Uint8Array(32);pack25519(n,e);pack25519(t,r);return crypto_verify_32(n,0,t,0)}function par25519(e){var r=new Uint8Array(32);pack25519(r,e);return r[0]&1}function unpack25519(e,r){var n;for(n=0;n<16;n++)e[n]=r[2*n]+(r[2*n+1]<<8);e[15]&=32767}function A(e,r,n){for(var t=0;t<16;t++)e[t]=r[t]+n[t]}function Z(e,r,n){for(var t=0;t<16;t++)e[t]=r[t]-n[t]}function M(e,r,n){var t,i,a=0,s=0,f=0,c=0,l=0,d=0,o=0,u=0,h=0,p=0,v=0,b=0,y=0,g=0,w=0,m=0,A=0,E=0,S=0,k=0,R=0,M=0,C=0,D=0,_=0,j=0,B=0,q=0,U=0,x=0,I=0,K=n[0],O=n[1],F=n[2],P=n[3],T=n[4],N=n[5],z=n[6],L=n[7],W=n[8],H=n[9],G=n[10],J=n[11],Y=n[12],Q=n[13],Z=n[14],X=n[15];t=r[0];a+=t*K;s+=t*O;f+=t*F;c+=t*P;l+=t*T;d+=t*N;o+=t*z;u+=t*L;h+=t*W;p+=t*H;v+=t*G;b+=t*J;y+=t*Y;g+=t*Q;w+=t*Z;m+=t*X;t=r[1];s+=t*K;f+=t*O;c+=t*F;l+=t*P;d+=t*T;o+=t*N;u+=t*z;h+=t*L;p+=t*W;v+=t*H;b+=t*G;y+=t*J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*F;g+=t*P;w+=t*T;m+=t*N;A+=t*z;E+=t*L;S+=t*W;k+=t*H;R+=t*G;M+=t*J;C+=t*Y;D+=t*Q;_+=t*Z;j+=t*X;t=r[11];b+=t*K;y+=t*O;g+=t*F;w+=t*P;m+=t*T;A+=t*N;E+=t*z;S+=t*L;k+=t*W;R+=t*H;M+=t*G;C+=t*J;D+=t*Y;_+=t*Q;j+=t*Z;B+=t*X;t=r[12];y+=t*K;g+=t*O;w+=t*F;m+=t*P;A+=t*T;E+=t*N;S+=t*z;k+=t*L;R+=t*W;M+=t*H;C+=t*G;D+=t*J;_+=t*Y;j+=t*Q;B+=t*Z;q+=t*X;t=r[13];g+=t*K;w+=t*O;m+=t*F;A+=t*P;E+=t*T;S+=t*N;k+=t*z;R+=t*L;M+=t*W;C+=t*H;D+=t*G;_+=t*J;j+=t*Y;B+=t*Q;q+=t*Z;U+=t*X;t=r[14];w+=t*K;m+=t*O;A+=t*F;E+=t*P;S+=t*T;k+=t*N;R+=t*z;M+=t*L;C+=t*W;D+=t*H;_+=t*G;j+=t*J;B+=t*Y;q+=t*Q;U+=t*Z;x+=t*X;t=r[15];m+=t*K;A+=t*O;E+=t*F;S+=t*P;k+=t*T;R+=t*N;M+=t*z;C+=t*L;D+=t*W;_+=t*H;j+=t*G;B+=t*J;q+=t*Y;U+=t*Q;x+=t*Z;I+=t*X;a+=38*A;s+=38*E;f+=38*S;c+=38*k;l+=38*R;d+=38*M;o+=38*C;u+=38*D;h+=38*_;p+=38*j;v+=38*B;b+=38*q;y+=38*U;g+=38*x;w+=38*I;i=1;t=a+i+65535;i=Math.floor(t/65536);a=t-i*65536;t=s+i+65535;i=Math.floor(t/65536);s=t-i*65536;t=f+i+65535;i=Math.floor(t/65536);f=t-i*65536;t=c+i+65535;i=Math.floor(t/65536);c=t-i*65536;t=l+i+65535;i=Math.floor(t/65536);l=t-i*65536;t=d+i+65535;i=Math.floor(t/65536);d=t-i*65536;t=o+i+65535;i=Math.floor(t/65536);o=t-i*65536;t=u+i+65535;i=Math.floor(t/65536);u=t-i*65536;t=h+i+65535;i=Math.floor(t/65536);h=t-i*65536;t=p+i+65535;i=Math.floor(t/65536);p=t-i*65536;t=v+i+65535;i=Math.floor(t/65536);v=t-i*65536;t=b+i+65535;i=Math.floor(t/65536);b=t-i*65536;t=y+i+65535;i=Math.floor(t/65536);y=t-i*65536;t=g+i+65535;i=Math.floor(t/65536);g=t-i*65536;t=w+i+65535;i=Math.floor(t/65536);w=t-i*65536;t=m+i+65535;i=Math.floor(t/65536);m=t-i*65536;a+=i-1+37*(i-1);i=1;t=a+i+65535;i=Math.floor(t/65536);a=t-i*65536;t=s+i+65535;i=Math.floor(t/65536);s=t-i*65536;t=f+i+65535;i=Math.floor(t/65536);f=t-i*65536;t=c+i+65535;i=Math.floor(t/65536);c=t-i*65536;t=l+i+65535;i=Math.floor(t/65536);l=t-i*65536;t=d+i+65535;i=Math.floor(t/65536);d=t-i*65536;t=o+i+65535;i=Math.floor(t/65536);o=t-i*65536;t=u+i+65535;i=Math.floor(t/65536);u=t-i*65536;t=h+i+65535;i=Math.floor(t/65536);h=t-i*65536;t=p+i+65535;i=Math.floor(t/65536);p=t-i*65536;t=v+i+65535;i=Math.floor(t/65536);v=t-i*65536;t=b+i+65535;i=Math.floor(t/65536);b=t-i*65536;t=y+i+65535;i=Math.floor(t/65536);y=t-i*65536;t=g+i+65535;i=Math.floor(t/65536);g=t-i*65536;t=w+i+65535;i=Math.floor(t/65536);w=t-i*65536;t=m+i+65535;i=Math.floor(t/65536);m=t-i*65536;a+=i-1+37*(i-1);e[0]=a;e[1]=s;e[2]=f;e[3]=c;e[4]=l;e[5]=d;e[6]=o;e[7]=u;e[8]=h;e[9]=p;e[10]=v;e[11]=b;e[12]=y;e[13]=g;e[14]=w;e[15]=m}function S(e,r){M(e,r,r)}function inv25519(e,r){var t=n();var i;for(i=0;i<16;i++)t[i]=r[i];for(i=253;i>=0;i--){S(t,t);if(i!==2&&i!==4)M(t,t,r)}for(i=0;i<16;i++)e[i]=t[i]}function pow2523(e,r){var t=n();var i;for(i=0;i<16;i++)t[i]=r[i];for(i=250;i>=0;i--){S(t,t);if(i!==1)M(t,t,r)}for(i=0;i<16;i++)e[i]=t[i]}function crypto_scalarmult(e,r,t){var i=new Uint8Array(32);var a=new Float64Array(80),s,c;var l=n(),d=n(),o=n(),u=n(),h=n(),p=n();for(c=0;c<31;c++)i[c]=r[c];i[31]=r[31]&127|64;i[0]&=248;unpack25519(a,t);for(c=0;c<16;c++){d[c]=a[c];u[c]=l[c]=o[c]=0}l[0]=u[0]=1;for(c=254;c>=0;--c){s=i[c>>>3]>>>(c&7)&1;sel25519(l,d,s);sel25519(o,u,s);A(h,l,o);Z(l,l,o);A(o,d,u);Z(d,d,u);S(u,h);S(p,l);M(l,o,l);M(o,d,h);A(h,l,o);Z(l,l,o);S(d,l);Z(o,u,p);M(l,o,f);A(l,l,u);M(o,o,l);M(l,u,p);M(u,d,a);S(d,h);sel25519(l,d,s);sel25519(o,u,s)}for(c=0;c<16;c++){a[c+16]=l[c];a[c+32]=o[c];a[c+48]=d[c];a[c+64]=u[c]}var v=a.subarray(32);var b=a.subarray(16);inv25519(v,v);M(b,b,v);pack25519(e,b);return 0}function crypto_scalarmult_base(e,r){return crypto_scalarmult(e,r,i)}function crypto_box_keypair(e,r){t(r,32);return crypto_scalarmult_base(e,r)}function add(e,r){var t=n(),i=n(),a=n(),s=n(),f=n(),c=n(),d=n(),o=n(),u=n();Z(t,e[1],e[0]);Z(u,r[1],r[0]);M(t,t,u);A(i,e[0],e[1]);A(u,r[0],r[1]);M(i,i,u);M(a,e[3],r[3]);M(a,a,l);M(s,e[2],r[2]);A(s,s,s);Z(f,i,t);Z(c,s,a);A(d,s,a);A(o,i,t);M(e[0],f,c);M(e[1],o,d);M(e[2],d,c);M(e[3],f,o)}function cswap(e,r,n){var t;for(t=0;t<4;t++){sel25519(e[t],r[t],n)}}function pack(e,r){var t=n(),i=n(),a=n();inv25519(a,r[2]);M(t,r[0],a);M(i,r[1],a);pack25519(e,i);e[31]^=par25519(t)<<7}function scalarmult(e,r,n){var t,i;set25519(e[0],a);set25519(e[1],s);set25519(e[2],s);set25519(e[3],a);for(i=255;i>=0;--i){t=n[i/8|0]>>(i&7)&1;cswap(e,r,t);add(r,e);add(e,e);cswap(e,r,t)}}function scalarbase(e,r){var t=[n(),n(),n(),n()];set25519(t[0],d);set25519(t[1],o);set25519(t[2],s);M(t[3],d,o);scalarmult(e,t,r)}function crypto_sign_keypair(e,i,a){var s;var f=[n(),n(),n(),n()];var c;if(!a)t(i,32);s=r.hash(i.subarray(0,32));s[0]&=248;s[31]&=127;s[31]|=64;scalarbase(f,s);pack(e,f);for(c=0;c<32;c++)i[c+32]=e[c];return 0}var h=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function modL(e,r){var n,t,i,a;for(t=63;t>=32;--t){n=0;for(i=t-32,a=t-12;i>8;r[i]-=n*256}r[i]+=n;r[t]=0}n=0;for(i=0;i<32;i++){r[i]+=n-(r[31]>>4)*h[i];n=r[i]>>8;r[i]&=255}for(i=0;i<32;i++)r[i]-=n*h[i];for(t=0;t<32;t++){r[t+1]+=r[t]>>8;e[t]=r[t]&255}}function reduce(e){var r=new Float64Array(64),n;for(n=0;n<64;n++)r[n]=e[n];for(n=0;n<64;n++)e[n]=0;modL(e,r)}function crypto_sign(e,t,i,a){var s,f,c;var l,d,o=new Float64Array(64);var u=[n(),n(),n(),n()];s=r.hash(a.subarray(0,32));s[0]&=248;s[31]&=127;s[31]|=64;var h=i+64;for(l=0;l>7)Z(e[0],a,e[0]);M(e[3],e[0],e[1]);return 0}function crypto_sign_open(e,t,i,a){var s,f;var c=new Uint8Array(32),l;var d=[n(),n(),n(),n()],o=[n(),n(),n(),n()];f=-1;if(i<64)return-1;if(unpackneg(o,a))return-1;for(s=0;s=0};r.sign.keyPair=function(){var e=new Uint8Array(w);var r=new Uint8Array(m);crypto_sign_keypair(e,r);return{publicKey:e,secretKey:r}};r.sign.keyPair.fromSecretKey=function(e){checkArrayTypes(e);if(e.length!==m)throw new Error("bad secret key size");var r=new Uint8Array(w);for(var n=0;n{r.enqueue(n);e.pause()});e.on("end",()=>r.close());e.on("error",e=>r.error(e))},pull(){e.resume()},cancel(r){e.pause();if(e.cancel){return e.cancel(r)}}})};class NodeReadable extends s{constructor(e,r){super(r);this._webStream=e;this._reader=a.default.getReader(e);this._reading=false;this._doneReadingPromise=Promise.resolve();this._cancelling=false}_read(e){if(this._reading||this._cancelling){return}this._reading=true;const r=async()=>{try{while(true){var e=await this._reader.read();const r=e.done,n=e.value;if(r){this.push(null);break}if(!this.push(n)||this._cancelling){this._reading=false;break}}}catch(e){this.emit("error",e)}};this._doneReadingPromise=r()}async cancel(e){this._cancelling=true;await this._doneReadingPromise;this._reader.releaseLock();return this._webStream.cancel(e)}}n.webToNode=c=function webToNode(e){return new NodeReadable(e)}}n.nodeToWeb=f;n.webToNode=c},{"./streams":90,"./util":91,stream:"stream"}],89:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.externalBuffer=n.Reader=undefined;var t=e("./streams");var i=_interopRequireDefault(t);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const a=new WeakSet;const s=Symbol("externalBuffer");function Reader(e){this.stream=e;if(e[s]){this[s]=e[s].slice()}let r=i.default.isStream(e);if(r==="node"){e=i.default.nodeToWeb(e)}if(r){const r=e.getReader();this._read=r.read.bind(r);this._releaseLock=(()=>{r.closed.catch(function(){});r.releaseLock()});return}let n=false;this._read=(async()=>{if(n||a.has(e)){return{value:undefined,done:true}}n=true;return{value:e,done:false}});this._releaseLock=(()=>{if(n){try{a.add(e)}catch(e){}}})}Reader.prototype.read=async function(){if(this[s]&&this[s].length){const e=this[s].shift();return{done:false,value:e}}return this._read()};Reader.prototype.releaseLock=function(){if(this[s]){this.stream[s]=this[s]}this._releaseLock()};Reader.prototype.readLine=async function(){let e=[];let r;while(!r){var n=await this.read();let t=n.done,a=n.value;a+="";if(t){if(e.length)return i.default.concat(e);return}const s=a.indexOf("\n")+1;if(s){r=i.default.concat(e.concat(a.substr(0,s)));e=[]}if(s!==a.length){e.push(a.substr(s))}}this.unshift(...e);return r};Reader.prototype.readByte=async function(){var e=await this.read();const r=e.done,n=e.value;if(r)return;const t=n[0];this.unshift(i.default.slice(n,1));return t};Reader.prototype.readBytes=async function(e){const r=[];let n=0;while(true){var t=await this.read();const a=t.done,s=t.value;if(a){if(r.length)return i.default.concat(r);return}r.push(s);n+=s.length;if(n>=e){const n=i.default.concat(r);this.unshift(i.default.slice(n,e));return i.default.slice(n,0,e)}}};Reader.prototype.peekBytes=async function(e){const r=await this.readBytes(e);this.unshift(r);return r};Reader.prototype.unshift=function(...e){if(!this[s]){this[s]=[]}this[s].unshift(...e.filter(e=>e&&e.length))};Reader.prototype.readToEnd=async function(e=i.default.concat){const r=[];while(true){var n=await this.read();const e=n.done,t=n.value;if(e)break;r.push(t)}return e(r)};n.Reader=Reader;n.externalBuffer=s},{"./streams":90}],90:[function(e,r,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("./util");var i=e("./node-conversions");var a=e("./reader");const s=t.isNode&&e("buffer").Buffer;function toStream(e){let r=(0,t.isStream)(e);if(r==="node"){return(0,i.nodeToWeb)(e)}else if(r){return e}return new ReadableStream({start(r){r.enqueue(e);r.close()}})}function concat(e){if(e.some(t.isStream)){return concatStream(e)}if(typeof e[0]==="string"){return e.join("")}if(s&&s.isBuffer(e[0])){return s.concat(e)}return(0,t.concatUint8Array)(e)}function concatStream(e){e=e.map(toStream);const r=transformWithCancel(async function(e){await Promise.all(t.map(r=>cancel(r,e)))});let n=Promise.resolve();const t=e.map((t,i)=>transformPair(t,(t,a)=>{n=n.then(()=>pipe(t,r.writable,{preventClose:i!==e.length-1}));return n}));return r.readable}function getReader(e){return new a.Reader(e)}function getWriter(e){const r=e.getWriter();const n=r.releaseLock;r.releaseLock=(()=>{r.closed.catch(function(){});n.call(r)});return r}async function pipe(e,r,n){e=toStream(e);try{if(e[a.externalBuffer]){const n=getWriter(r);for(let r=0;r{n=e});n=null}else{r=false}},close:t.close.bind(t),abort:t.error.bind(t)})}}function transform(e,r=(()=>undefined),n=(()=>undefined)){if((0,t.isStream)(e)){return transformRaw(e,{async transform(e,n){try{const t=await r(e);if(t!==undefined)n.enqueue(t)}catch(e){n.error(e)}},async flush(e){try{const r=await n();if(r!==undefined)e.enqueue(r)}catch(r){e.error(r)}}})}const i=r(e);const a=n();if(i!==undefined&&a!==undefined)return concat([i,a]);return i!==undefined?i:a}function transformPair(e,r){let n;const t=new TransformStream({start(e){n=e}});const i=pipe(e,t.writable);const a=transformWithCancel(async function(){n.error(new Error("Readable side was canceled."));await i;await new Promise(setTimeout)});r(t.readable,a.writable);return a.readable}function parse(e,r){let n;const t=transformPair(e,(e,i)=>{const a=getReader(e);a.remainder=(()=>{a.releaseLock();pipe(e,i);return t});n=r(a)});return n}function tee(e){if((0,t.isStream)(e)){const r=toStream(e).tee();r[0][a.externalBuffer]=r[1][a.externalBuffer]=e[a.externalBuffer];return r}return[slice(e),slice(e)]}function clone(e){if((0,t.isStream)(e)){const r=tee(e);overwrite(e,r[0]);return r[1]}return slice(e)}function passiveClone(e){if((0,t.isStream)(e)){return new ReadableStream({start(r){const n=transformPair(e,async(e,n)=>{const t=getReader(e);const i=getWriter(n);try{while(true){await i.ready;var a=await t.read();const e=a.done,n=a.value;if(e){try{r.close()}catch(e){}await i.close();return}try{r.enqueue(n)}catch(e){}await i.write(n)}}catch(e){r.error(e);await i.abort(e)}});overwrite(e,n)}})}return slice(e)}function overwrite(e,r){Object.entries(Object.getOwnPropertyDescriptors(ReadableStream.prototype)).forEach(([n,t])=>{if(n==="constructor"){return}if(t.value){t.value=t.value.bind(r)}else{t.get=t.get.bind(r)}Object.defineProperty(e,n,t)})}function slice(e,r=0,n=Infinity){if((0,t.isStream)(e)){if(r>=0&&n>=0){let t=0;return transformRaw(e,{transform(e,i){if(t=r){i.enqueue(slice(e,Math.max(r-t,0),n-t))}t+=e.length}else{i.terminate()}}})}if(r<0&&(n<0||n===Infinity)){let t=[];return transform(e,e=>{if(e.length>=-r)t=[e];else t.push(e)},()=>slice(concat(t),r,n))}if(r===0&&n<0){let t;return transform(e,e=>{const i=t?concat([t,e]):e;if(i.length>=-n){t=slice(i,n);return slice(i,r,n)}else{t=i}})}console.warn(`stream.slice(input, ${r}, ${n}) not implemented efficiently.`);return fromAsync(async()=>slice(await readToEnd(e),r,n))}if(e[a.externalBuffer]){e=concat(e[a.externalBuffer].concat([e]))}if((0,t.isUint8Array)(e)&&!(s&&s.isBuffer(e))){if(n===Infinity)n=e.length;return e.subarray(r,n)}return e.slice(r,n)}async function readToEnd(e,r){if((0,t.isStream)(e)){return getReader(e).readToEnd(r)}return e}async function cancel(e,r){if((0,t.isStream)(e)&&e.cancel){return e.cancel(r)}}function fromAsync(e){return new ReadableStream({pull:async r=>{try{r.enqueue(await e());r.close()}catch(e){r.error(e)}}})}n.default={isStream:t.isStream,isUint8Array:t.isUint8Array,toStream:toStream,concatUint8Array:t.concatUint8Array,concatStream:concatStream,concat:concat,getReader:getReader,getWriter:getWriter,pipe:pipe,transformRaw:transformRaw,transform:transform,transformPair:transformPair,parse:parse,clone:clone,passiveClone:passiveClone,slice:slice,readToEnd:readToEnd,cancel:cancel,fromAsync:fromAsync,nodeToWeb:i.nodeToWeb,webToNode:i.webToNode}}).call(this,e("_process"))},{"./node-conversions":88,"./reader":89,"./util":91,_process:80,buffer:"buffer"}],91:[function(e,r,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:true});const t=typeof r.process==="object"&&typeof r.process.versions==="object";const i=t&&e("stream").Readable;function isStream(e){if(ReadableStream.prototype.isPrototypeOf(e)){return"web"}if(i&&i.prototype.isPrototypeOf(e)){return"node"}return false}function isUint8Array(e){return Uint8Array.prototype.isPrototypeOf(e)}function concatUint8Array(e){if(e.length===1)return e[0];let r=0;for(let n=0;nr=>e.hashAlgorithm===r;for(let t=0;t=0;--e){for(let r=c-1;r>=0;--r){l[1]=c*e+(r+1);d[0]=s[0]^l[0];d[1]=s[1]^l[1];d[2]=f[2*r];d[3]=f[2*r+1];d=unpack(n.decrypt(pack(d)));s=d.subarray(0,2);f[2*r]=d[2];f[2*r+1]=d[3]}}if(s[0]===t[0]&&s[1]===t[1]){return pack(f)}throw new Error("Key Data Integrity failed")}function createArrayBuffer(e){if(s.default.isString(e)){const r=e.length;const n=new ArrayBuffer(r);const t=new Uint8Array(n);for(let n=0;n{if(e){l=o.default.concatUint8Array([l,e])}const r=new Uint8Array(l.length);let n;let t=0;while(e?l.length>=s:l.length){const e=i.encrypt(c);for(n=0;n{if(e){l=o.default.concatUint8Array([l,e])}const r=new Uint8Array(l.length);let n;let t=0;while(e?l.length>=s:l.length){const e=i.encrypt(c);c=l;for(n=0;n=3e3*l.default.min_bytes_for_web_crypto){return webEncrypt(e,r,n,i)}const s=new t.AES_CFB(r,i);return a.default.transform(n,e=>s.AES_Encrypt_process(e),()=>s.AES_Encrypt_finish())}function aesDecrypt(e,r,n,i){if(o.default.isStream(n)){const e=new t.AES_CFB(r,i);return a.default.transform(n,r=>e.AES_Decrypt_process(r),()=>e.AES_Decrypt_finish())}return t.AES_CFB.decrypt(n,r,i)}function xorMut(e,r){for(let n=0;nnew Uint8Array(i.update(p.from(e))))}function nodeDecrypt(e,r,n,t){r=p.from(r);t=p.from(t);const i=new h.createDecipheriv(b[e],r,t);return a.default.transform(n,e=>new Uint8Array(i.update(p.from(e))))}},{"../config":94,"../util":173,"./cipher":101,"asmcrypto.js/dist_es5/aes/cfb":5,"web-stream-tools":90}],97:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("asmcrypto.js/dist_es5/aes/ecb");function aes(e){const r=function C(e){const r=new t.AES_ECB(e);this.encrypt=function(e){return r.encrypt(e)};this.decrypt=function(e){return r.decrypt(e)}};r.blockSize=r.prototype.blockSize=16;r.keySize=r.prototype.keySize=e/8;return r}n.default=aes},{"asmcrypto.js/dist_es5/aes/ecb":7}],98:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});function Blowfish(){}Blowfish.prototype.BLOCKSIZE=8;Blowfish.prototype.SBOXES=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];Blowfish.prototype.PARRAY=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731];Blowfish.prototype.NN=16;Blowfish.prototype._clean=function(e){if(e<0){const r=e&2147483647;e=r+2147483648}return e};Blowfish.prototype._F=function(e){let r;const n=e&255;e>>>=8;const t=e&255;e>>>=8;const i=e&255;e>>>=8;const a=e&255;r=this.sboxes[0][a]+this.sboxes[1][i];r^=this.sboxes[2][t];r+=this.sboxes[3][n];return r};Blowfish.prototype._encrypt_block=function(e){let r=e[0];let n=e[1];let t;for(t=0;t>>24-8*r&255;i[r+t]=n[1]>>>24-8*r&255}return i};Blowfish.prototype._decrypt_block=function(e){let r=e[0];let n=e[1];let t;for(t=this.NN+1;t>1;--t){r^=this.parray[t];n=this._F(r)^n;const e=r;r=n;n=e}r^=this.parray[1];n^=this.parray[0];e[0]=this._clean(n);e[1]=this._clean(r)};Blowfish.prototype.init=function(e){let r;let n=0;this.parray=[];for(r=0;r=e.length){n=0}}this.parray[r]=this.PARRAY[r]^t}this.sboxes=[];for(r=0;r<4;++r){this.sboxes[r]=[];for(n=0;n<256;++n){this.sboxes[r][n]=this.SBOXES[r][n]}}const t=[0,0];for(r=0;r>>24&255;r[n+1]=i>>>16&255;r[n+2]=i>>>8&255;r[n+3]=i&255;r[n+4]=t>>>24&255;r[n+5]=t>>>16&255;r[n+6]=t>>>8&255;r[n+7]=t&255}return r};this.decrypt=function(e){const r=new Array(e.length);for(let n=0;n>>24&255;r[n+1]=i>>>16&255;r[n+2]=i>>>8&255;r[n+3]=i&255;r[n+4]=t>>>24&255;r[n+5]=t>>16&255;r[n+6]=t>>8&255;r[n+7]=t&255}return r};const e=new Array(4);e[0]=new Array(4);e[0][0]=[4,0,13,15,12,14,8];e[0][1]=[5,2,16+0,16+2,16+1,16+3,10];e[0][2]=[6,3,16+7,16+6,16+5,16+4,9];e[0][3]=[7,1,16+10,16+9,16+11,16+8,11];e[1]=new Array(4);e[1][0]=[0,6,16+5,16+7,16+4,16+6,16+0];e[1][1]=[1,4,0,2,1,3,16+2];e[1][2]=[2,5,7,6,5,4,16+1];e[1][3]=[3,7,10,9,11,8,16+3];e[2]=new Array(4);e[2][0]=[4,0,13,15,12,14,8];e[2][1]=[5,2,16+0,16+2,16+1,16+3,10];e[2][2]=[6,3,16+7,16+6,16+5,16+4,9];e[2][3]=[7,1,16+10,16+9,16+11,16+8,11];e[3]=new Array(4);e[3][0]=[0,6,16+5,16+7,16+4,16+6,16+0];e[3][1]=[1,4,0,2,1,3,16+2];e[3][2]=[2,5,7,6,5,4,16+1];e[3][3]=[3,7,10,9,11,8,16+3];const r=new Array(4);r[0]=new Array(4);r[0][0]=[16+8,16+9,16+7,16+6,16+2];r[0][1]=[16+10,16+11,16+5,16+4,16+6];r[0][2]=[16+12,16+13,16+3,16+2,16+9];r[0][3]=[16+14,16+15,16+1,16+0,16+12];r[1]=new Array(4);r[1][0]=[3,2,12,13,8];r[1][1]=[1,0,14,15,13];r[1][2]=[7,6,8,9,3];r[1][3]=[5,4,10,11,7];r[2]=new Array(4);r[2][0]=[16+3,16+2,16+12,16+13,16+9];r[2][1]=[16+1,16+0,16+14,16+15,16+12];r[2][2]=[16+7,16+6,16+8,16+9,16+2];r[2][3]=[16+5,16+4,16+10,16+11,16+6];r[3]=new Array(4);r[3][0]=[8,9,7,6,3];r[3][1]=[10,11,5,4,7];r[3][2]=[12,13,3,2,8];r[3][3]=[14,15,1,0,13];this.keySchedule=function(t){const i=new Array(8);const a=new Array(32);let s;for(let e=0;e<4;e++){s=e*4;i[e]=t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3]}const f=[6,7,4,5];let c=0;let l;for(let t=0;t<2;t++){for(let t=0;t<4;t++){for(s=0;s<4;s++){const r=e[t][s];l=i[r[1]];l^=n[4][i[r[2]>>>2]>>>24-8*(r[2]&3)&255];l^=n[5][i[r[3]>>>2]>>>24-8*(r[3]&3)&255];l^=n[6][i[r[4]>>>2]>>>24-8*(r[4]&3)&255];l^=n[7][i[r[5]>>>2]>>>24-8*(r[5]&3)&255];l^=n[f[s]][i[r[6]>>>2]>>>24-8*(r[6]&3)&255];i[r[0]]=l}for(s=0;s<4;s++){const e=r[t][s];l=n[4][i[e[0]>>>2]>>>24-8*(e[0]&3)&255];l^=n[5][i[e[1]>>>2]>>>24-8*(e[1]&3)&255];l^=n[6][i[e[2]>>>2]>>>24-8*(e[2]&3)&255];l^=n[7][i[e[3]>>>2]>>>24-8*(e[3]&3)&255];l^=n[4+s][i[e[4]>>>2]>>>24-8*(e[4]&3)&255];a[c]=l;c++}}}for(let e=0;e<16;e++){this.masking[e]=a[e];this.rotate[e]=a[16+e]&31}};function f1(e,r,t){const i=r+e;const a=i<>>32-t;return(n[0][a>>>24]^n[1][a>>>16&255])-n[2][a>>>8&255]+n[3][a&255]}function f2(e,r,t){const i=r^e;const a=i<>>32-t;return n[0][a>>>24]-n[1][a>>>16&255]+n[2][a>>>8&255]^n[3][a&255]}function f3(e,r,t){const i=r-e;const a=i<>>32-t;return(n[0][a>>>24]+n[1][a>>>16&255]^n[2][a>>>8&255])-n[3][a&255]}const n=new Array(8);n[0]=[821772500,2678128395,1810681135,1059425402,505495343,2617265619,1610868032,3483355465,3218386727,2294005173,3791863952,2563806837,1852023008,365126098,3269944861,584384398,677919599,3229601881,4280515016,2002735330,1136869587,3744433750,2289869850,2731719981,2714362070,879511577,1639411079,575934255,717107937,2857637483,576097850,2731753936,1725645e3,2810460463,5111599,767152862,2543075244,1251459544,1383482551,3052681127,3089939183,3612463449,1878520045,1510570527,2189125840,2431448366,582008916,3163445557,1265446783,1354458274,3529918736,3202711853,3073581712,3912963487,3029263377,1275016285,4249207360,2905708351,3304509486,1442611557,3585198765,2712415662,2731849581,3248163920,2283946226,208555832,2766454743,1331405426,1447828783,3315356441,3108627284,2957404670,2981538698,3339933917,1669711173,286233437,1465092821,1782121619,3862771680,710211251,980974943,1651941557,430374111,2051154026,704238805,4128970897,3144820574,2857402727,948965521,3333752299,2227686284,718756367,2269778983,2731643755,718440111,2857816721,3616097120,1113355533,2478022182,410092745,1811985197,1944238868,2696854588,1415722873,1682284203,1060277122,1998114690,1503841958,82706478,2315155686,1068173648,845149890,2167947013,1768146376,1993038550,3566826697,3390574031,940016341,3355073782,2328040721,904371731,1205506512,4094660742,2816623006,825647681,85914773,2857843460,1249926541,1417871568,3287612,3211054559,3126306446,1975924523,1353700161,2814456437,2438597621,1800716203,722146342,2873936343,1151126914,4160483941,2877670899,458611604,2866078500,3483680063,770352098,2652916994,3367839148,3940505011,3585973912,3809620402,718646636,2504206814,2914927912,3631288169,2857486607,2860018678,575749918,2857478043,718488780,2069512688,3548183469,453416197,1106044049,3032691430,52586708,3378514636,3459808877,3211506028,1785789304,218356169,3571399134,3759170522,1194783844,1523787992,3007827094,1975193539,2555452411,1341901877,3045838698,3776907964,3217423946,2802510864,2889438986,1057244207,1636348243,3761863214,1462225785,2632663439,481089165,718503062,24497053,3332243209,3344655856,3655024856,3960371065,1195698900,2971415156,3710176158,2115785917,4027663609,3525578417,2524296189,2745972565,3564906415,1372086093,1452307862,2780501478,1476592880,3389271281,18495466,2378148571,901398090,891748256,3279637769,3157290713,2560960102,1447622437,4284372637,216884176,2086908623,1879786977,3588903153,2242455666,2938092967,3559082096,2810645491,758861177,1121993112,215018983,642190776,4169236812,1196255959,2081185372,3508738393,941322904,4124243163,2877523539,1848581667,2205260958,3180453958,2589345134,3694731276,550028657,2519456284,3789985535,2973870856,2093648313,443148163,46942275,2734146937,1117713533,1115362972,1523183689,3717140224,1551984063];n[1]=[522195092,4010518363,1776537470,960447360,4267822970,4005896314,1435016340,1929119313,2913464185,1310552629,3579470798,3724818106,2579771631,1594623892,417127293,2715217907,2696228731,1508390405,3994398868,3925858569,3695444102,4019471449,3129199795,3770928635,3520741761,990456497,4187484609,2783367035,21106139,3840405339,631373633,3783325702,532942976,396095098,3548038825,4267192484,2564721535,2011709262,2039648873,620404603,3776170075,2898526339,3612357925,4159332703,1645490516,223693667,1567101217,3362177881,1029951347,3470931136,3570957959,1550265121,119497089,972513919,907948164,3840628539,1613718692,3594177948,465323573,2659255085,654439692,2575596212,2699288441,3127702412,277098644,624404830,4100943870,2717858591,546110314,2403699828,3655377447,1321679412,4236791657,1045293279,4010672264,895050893,2319792268,494945126,1914543101,2777056443,3894764339,2219737618,311263384,4275257268,3458730721,669096869,3584475730,3835122877,3319158237,3949359204,2005142349,2713102337,2228954793,3769984788,569394103,3855636576,1425027204,108000370,2736431443,3671869269,3043122623,1750473702,2211081108,762237499,3972989403,2798899386,3061857628,2943854345,867476300,964413654,1591880597,1594774276,2179821409,552026980,3026064248,3726140315,2283577634,3110545105,2152310760,582474363,1582640421,1383256631,2043843868,3322775884,1217180674,463797851,2763038571,480777679,2718707717,2289164131,3118346187,214354409,200212307,3810608407,3025414197,2674075964,3997296425,1847405948,1342460550,510035443,4080271814,815934613,833030224,1620250387,1945732119,2703661145,3966000196,1388869545,3456054182,2687178561,2092620194,562037615,1356438536,3409922145,3261847397,1688467115,2150901366,631725691,3840332284,549916902,3455104640,394546491,837744717,2114462948,751520235,2221554606,2415360136,3999097078,2063029875,803036379,2702586305,821456707,3019566164,360699898,4018502092,3511869016,3677355358,2402471449,812317050,49299192,2570164949,3259169295,2816732080,3331213574,3101303564,2156015656,3705598920,3546263921,143268808,3200304480,1638124008,3165189453,3341807610,578956953,2193977524,3638120073,2333881532,807278310,658237817,2969561766,1641658566,11683945,3086995007,148645947,1138423386,4158756760,1981396783,2401016740,3699783584,380097457,2680394679,2803068651,3334260286,441530178,4016580796,1375954390,761952171,891809099,2183123478,157052462,3683840763,1592404427,341349109,2438483839,1417898363,644327628,2233032776,2353769706,2201510100,220455161,1815641738,182899273,2995019788,3627381533,3702638151,2890684138,1052606899,588164016,1681439879,4038439418,2405343923,4229449282,167996282,1336969661,1688053129,2739224926,1543734051,1046297529,1138201970,2121126012,115334942,1819067631,1902159161,1941945968,2206692869,1159982321];n[2]=[2381300288,637164959,3952098751,3893414151,1197506559,916448331,2350892612,2932787856,3199334847,4009478890,3905886544,1373570990,2450425862,4037870920,3778841987,2456817877,286293407,124026297,3001279700,1028597854,3115296800,4208886496,2691114635,2188540206,1430237888,1218109995,3572471700,308166588,570424558,2187009021,2455094765,307733056,1310360322,3135275007,1384269543,2388071438,863238079,2359263624,2801553128,3380786597,2831162807,1470087780,1728663345,4072488799,1090516929,532123132,2389430977,1132193179,2578464191,3051079243,1670234342,1434557849,2711078940,1241591150,3314043432,3435360113,3091448339,1812415473,2198440252,267246943,796911696,3619716990,38830015,1526438404,2806502096,374413614,2943401790,1489179520,1603809326,1920779204,168801282,260042626,2358705581,1563175598,2397674057,1356499128,2217211040,514611088,2037363785,2186468373,4022173083,2792511869,2913485016,1173701892,4200428547,3896427269,1334932762,2455136706,602925377,2835607854,1613172210,41346230,2499634548,2457437618,2188827595,41386358,4172255629,1313404830,2405527007,3801973774,2217704835,873260488,2528884354,2478092616,4012915883,2555359016,2006953883,2463913485,575479328,2218240648,2099895446,660001756,2341502190,3038761536,3888151779,3848713377,3286851934,1022894237,1620365795,3449594689,1551255054,15374395,3570825345,4249311020,4151111129,3181912732,310226346,1133119310,530038928,136043402,2476768958,3107506709,2544909567,1036173560,2367337196,1681395281,1758231547,3641649032,306774401,1575354324,3716085866,1990386196,3114533736,2455606671,1262092282,3124342505,2768229131,4210529083,1833535011,423410938,660763973,2187129978,1639812e3,3508421329,3467445492,310289298,272797111,2188552562,2456863912,310240523,677093832,1013118031,901835429,3892695601,1116285435,3036471170,1337354835,243122523,520626091,277223598,4244441197,4194248841,1766575121,594173102,316590669,742362309,3536858622,4176435350,3838792410,2501204839,1229605004,3115755532,1552908988,2312334149,979407927,3959474601,1148277331,176638793,3614686272,2083809052,40992502,1340822838,2731552767,3535757508,3560899520,1354035053,122129617,7215240,2732932949,3118912700,2718203926,2539075635,3609230695,3725561661,1928887091,2882293555,1988674909,2063640240,2491088897,1459647954,4189817080,2302804382,1113892351,2237858528,1927010603,4002880361,1856122846,1594404395,2944033133,3855189863,3474975698,1643104450,4054590833,3431086530,1730235576,2984608721,3084664418,2131803598,4178205752,267404349,1617849798,1616132681,1462223176,736725533,2327058232,551665188,2945899023,1749386277,2575514597,1611482493,674206544,2201269090,3642560800,728599968,1680547377,2620414464,1388111496,453204106,4156223445,1094905244,2754698257,2201108165,3757000246,2704524545,3922940700,3996465027];n[3]=[2645754912,532081118,2814278639,3530793624,1246723035,1689095255,2236679235,4194438865,2116582143,3859789411,157234593,2045505824,4245003587,1687664561,4083425123,605965023,672431967,1336064205,3376611392,214114848,4258466608,3232053071,489488601,605322005,3998028058,264917351,1912574028,756637694,436560991,202637054,135989450,85393697,2152923392,3896401662,2895836408,2145855233,3535335007,115294817,3147733898,1922296357,3464822751,4117858305,1037454084,2725193275,2127856640,1417604070,1148013728,1827919605,642362335,2929772533,909348033,1346338451,3547799649,297154785,1917849091,4161712827,2883604526,3968694238,1469521537,3780077382,3375584256,1763717519,136166297,4290970789,1295325189,2134727907,2798151366,1566297257,3672928234,2677174161,2672173615,965822077,2780786062,289653839,1133871874,3491843819,35685304,1068898316,418943774,672553190,642281022,2346158704,1954014401,3037126780,4079815205,2030668546,3840588673,672283427,1776201016,359975446,3750173538,555499703,2769985273,1324923,69110472,152125443,3176785106,3822147285,1340634837,798073664,1434183902,15393959,216384236,1303690150,3881221631,3711134124,3960975413,106373927,2578434224,1455997841,1801814300,1578393881,1854262133,3188178946,3258078583,2302670060,1539295533,3505142565,3078625975,2372746020,549938159,3278284284,2620926080,181285381,2865321098,3970029511,68876850,488006234,1728155692,2608167508,836007927,2435231793,919367643,3339422534,3655756360,1457871481,40520939,1380155135,797931188,234455205,2255801827,3990488299,397000196,739833055,3077865373,2871719860,4022553888,772369276,390177364,3853951029,557662966,740064294,1640166671,1699928825,3535942136,622006121,3625353122,68743880,1742502,219489963,1664179233,1577743084,1236991741,410585305,2366487942,823226535,1050371084,3426619607,3586839478,212779912,4147118561,1819446015,1911218849,530248558,3486241071,3252585495,2886188651,3410272728,2342195030,20547779,2982490058,3032363469,3631753222,312714466,1870521650,1493008054,3491686656,615382978,4103671749,2534517445,1932181,2196105170,278426614,6369430,3274544417,2913018367,697336853,2143000447,2946413531,701099306,1558357093,2805003052,3500818408,2321334417,3567135975,216290473,3591032198,23009561,1996984579,3735042806,2024298078,3739440863,569400510,2339758983,3016033873,3097871343,3639523026,3844324983,3256173865,795471839,2951117563,4101031090,4091603803,3603732598,971261452,534414648,428311343,3389027175,2844869880,694888862,1227866773,2456207019,3043454569,2614353370,3749578031,3676663836,459166190,4132644070,1794958188,51825668,2252611902,3084671440,2036672799,3436641603,1099053433,2469121526,3059204941,1323291266,2061838604,1018778475,2233344254,2553501054,334295216,3556750194,1065731521,183467730];n[4]=[2127105028,745436345,2601412319,2788391185,3093987327,500390133,1155374404,389092991,150729210,3891597772,3523549952,1935325696,716645080,946045387,2901812282,1774124410,3869435775,4039581901,3293136918,3438657920,948246080,363898952,3867875531,1286266623,1598556673,68334250,630723836,1104211938,1312863373,613332731,2377784574,1101634306,441780740,3129959883,1917973735,2510624549,3238456535,2544211978,3308894634,1299840618,4076074851,1756332096,3977027158,297047435,3790297736,2265573040,3621810518,1311375015,1667687725,47300608,3299642885,2474112369,201668394,1468347890,576830978,3594690761,3742605952,1958042578,1747032512,3558991340,1408974056,3366841779,682131401,1033214337,1545599232,4265137049,206503691,103024618,2855227313,1337551222,2428998917,2963842932,4015366655,3852247746,2796956967,3865723491,3747938335,247794022,3755824572,702416469,2434691994,397379957,851939612,2314769512,218229120,1380406772,62274761,214451378,3170103466,2276210409,3845813286,28563499,446592073,1693330814,3453727194,29968656,3093872512,220656637,2470637031,77972100,1667708854,1358280214,4064765667,2395616961,325977563,4277240721,4220025399,3605526484,3355147721,811859167,3069544926,3962126810,652502677,3075892249,4132761541,3498924215,1217549313,3250244479,3858715919,3053989961,1538642152,2279026266,2875879137,574252750,3324769229,2651358713,1758150215,141295887,2719868960,3515574750,4093007735,4194485238,1082055363,3417560400,395511885,2966884026,179534037,3646028556,3738688086,1092926436,2496269142,257381841,3772900718,1636087230,1477059743,2499234752,3811018894,2675660129,3285975680,90732309,1684827095,1150307763,1723134115,3237045386,1769919919,1240018934,815675215,750138730,2239792499,1234303040,1995484674,138143821,675421338,1145607174,1936608440,3238603024,2345230278,2105974004,323969391,779555213,3004902369,2861610098,1017501463,2098600890,2628620304,2940611490,2682542546,1171473753,3656571411,3687208071,4091869518,393037935,159126506,1662887367,1147106178,391545844,3452332695,1891500680,3016609650,1851642611,546529401,1167818917,3194020571,2848076033,3953471836,575554290,475796850,4134673196,450035699,2351251534,844027695,1080539133,86184846,1554234488,3692025454,1972511363,2018339607,1491841390,1141460869,1061690759,4244549243,2008416118,2351104703,2868147542,1598468138,722020353,1027143159,212344630,1387219594,1725294528,3745187956,2500153616,458938280,4129215917,1828119673,544571780,3503225445,2297937496,1241802790,267843827,2694610800,1397140384,1558801448,3782667683,1806446719,929573330,2234912681,400817706,616011623,4121520928,3603768725,1761550015,1968522284,4053731006,4192232858,4005120285,872482584,3140537016,3894607381,2287405443,1963876937,3663887957,1584857e3,2975024454,1833426440,4025083860];n[5]=[4143615901,749497569,1285769319,3795025788,2514159847,23610292,3974978748,844452780,3214870880,3751928557,2213566365,1676510905,448177848,3730751033,4086298418,2307502392,871450977,3222878141,4110862042,3831651966,2735270553,1310974780,2043402188,1218528103,2736035353,4274605013,2702448458,3936360550,2693061421,162023535,2827510090,687910808,23484817,3784910947,3371371616,779677500,3503626546,3473927188,4157212626,3500679282,4248902014,2466621104,3899384794,1958663117,925738300,1283408968,3669349440,1840910019,137959847,2679828185,1239142320,1315376211,1547541505,1690155329,739140458,3128809933,3933172616,3876308834,905091803,1548541325,4040461708,3095483362,144808038,451078856,676114313,2861728291,2469707347,993665471,373509091,2599041286,4025009006,4170239449,2149739950,3275793571,3749616649,2794760199,1534877388,572371878,2590613551,1753320020,3467782511,1405125690,4270405205,633333386,3026356924,3475123903,632057672,2846462855,1404951397,3882875879,3915906424,195638627,2385783745,3902872553,1233155085,3355999740,2380578713,2702246304,2144565621,3663341248,3894384975,2502479241,4248018925,3094885567,1594115437,572884632,3385116731,767645374,1331858858,1475698373,3793881790,3532746431,1321687957,619889600,1121017241,3440213920,2070816767,2833025776,1933951238,4095615791,890643334,3874130214,859025556,360630002,925594799,1764062180,3920222280,4078305929,979562269,2810700344,4087740022,1949714515,546639971,1165388173,3069891591,1495988560,922170659,1291546247,2107952832,1813327274,3406010024,3306028637,4241950635,153207855,2313154747,1608695416,1150242611,1967526857,721801357,1220138373,3691287617,3356069787,2112743302,3281662835,1111556101,1778980689,250857638,2298507990,673216130,2846488510,3207751581,3562756981,3008625920,3417367384,2198807050,529510932,3547516680,3426503187,2364944742,102533054,2294910856,1617093527,1204784762,3066581635,1019391227,1069574518,1317995090,1691889997,3661132003,510022745,3238594800,1362108837,1817929911,2184153760,805817662,1953603311,3699844737,120799444,2118332377,207536705,2282301548,4120041617,145305846,2508124933,3086745533,3261524335,1877257368,2977164480,3160454186,2503252186,4221677074,759945014,254147243,2767453419,3801518371,629083197,2471014217,907280572,3900796746,940896768,2751021123,2625262786,3161476951,3661752313,3260732218,1425318020,2977912069,1496677566,3988592072,2140652971,3126511541,3069632175,977771578,1392695845,1698528874,1411812681,1369733098,1343739227,3620887944,1142123638,67414216,3102056737,3088749194,1626167401,2546293654,3941374235,697522451,33404913,143560186,2595682037,994885535,1247667115,3859094837,2699155541,3547024625,4114935275,2968073508,3199963069,2732024527,1237921620,951448369,1898488916,1211705605,2790989240,2233243581,3598044975];n[6]=[2246066201,858518887,1714274303,3485882003,713916271,2879113490,3730835617,539548191,36158695,1298409750,419087104,1358007170,749914897,2989680476,1261868530,2995193822,2690628854,3443622377,3780124940,3796824509,2976433025,4259637129,1551479e3,512490819,1296650241,951993153,2436689437,2460458047,144139966,3136204276,310820559,3068840729,643875328,1969602020,1680088954,2185813161,3283332454,672358534,198762408,896343282,276269502,3014846926,84060815,197145886,376173866,3943890818,3813173521,3545068822,1316698879,1598252827,2633424951,1233235075,859989710,2358460855,3503838400,3409603720,1203513385,1193654839,2792018475,2060853022,207403770,1144516871,3068631394,1121114134,177607304,3785736302,326409831,1929119770,2983279095,4183308101,3474579288,3200513878,3228482096,119610148,1170376745,3378393471,3163473169,951863017,3337026068,3135789130,2907618374,1183797387,2015970143,4045674555,2182986399,2952138740,3928772205,384012900,2454997643,10178499,2879818989,2596892536,111523738,2995089006,451689641,3196290696,235406569,1441906262,3890558523,3013735005,4158569349,1644036924,376726067,1006849064,3664579700,2041234796,1021632941,1374734338,2566452058,371631263,4007144233,490221539,206551450,3140638584,1053219195,1853335209,3412429660,3562156231,735133835,1623211703,3104214392,2738312436,4096837757,3366392578,3110964274,3956598718,3196820781,2038037254,3877786376,2339753847,300912036,3766732888,2372630639,1516443558,4200396704,1574567987,4069441456,4122592016,2699739776,146372218,2748961456,2043888151,35287437,2596680554,655490400,1132482787,110692520,1031794116,2188192751,1324057718,1217253157,919197030,686247489,3261139658,1028237775,3135486431,3059715558,2460921700,986174950,2661811465,4062904701,2752986992,3709736643,367056889,1353824391,731860949,1650113154,1778481506,784341916,357075625,3608602432,1074092588,2480052770,3811426202,92751289,877911070,3600361838,1231880047,480201094,3756190983,3094495953,434011822,87971354,363687820,1717726236,1901380172,3926403882,2481662265,400339184,1490350766,2661455099,1389319756,2558787174,784598401,1983468483,30828846,3550527752,2716276238,3841122214,1765724805,1955612312,1277890269,1333098070,1564029816,2704417615,1026694237,3287671188,1260819201,3349086767,1016692350,1582273796,1073413053,1995943182,694588404,1025494639,3323872702,3551898420,4146854327,453260480,1316140391,1435673405,3038941953,3486689407,1622062951,403978347,817677117,950059133,4246079218,3278066075,1486738320,1417279718,481875527,2549965225,3933690356,760697757,1452955855,3897451437,1177426808,1702951038,4085348628,2447005172,1084371187,3516436277,3068336338,1073369276,1027665953,3284188590,1230553676,1368340146,2226246512,267243139,2274220762,4070734279,2497715176,2423353163,2504755875];n[7]=[3793104909,3151888380,2817252029,895778965,2005530807,3871412763,237245952,86829237,296341424,3851759377,3974600970,2475086196,709006108,1994621201,2972577594,937287164,3734691505,168608556,3189338153,2225080640,3139713551,3033610191,3025041904,77524477,185966941,1208824168,2344345178,1721625922,3354191921,1066374631,1927223579,1971335949,2483503697,1551748602,2881383779,2856329572,3003241482,48746954,1398218158,2050065058,313056748,4255789917,393167848,1912293076,940740642,3465845460,3091687853,2522601570,2197016661,1727764327,364383054,492521376,1291706479,3264136376,1474851438,1685747964,2575719748,1619776915,1814040067,970743798,1561002147,2925768690,2123093554,1880132620,3151188041,697884420,2550985770,2607674513,2659114323,110200136,1489731079,997519150,1378877361,3527870668,478029773,2766872923,1022481122,431258168,1112503832,897933369,2635587303,669726182,3383752315,918222264,163866573,3246985393,3776823163,114105080,1903216136,761148244,3571337562,1690750982,3166750252,1037045171,1888456500,2010454850,642736655,616092351,365016990,1185228132,4174898510,1043824992,2023083429,2241598885,3863320456,3279669087,3674716684,108438443,2132974366,830746235,606445527,4173263986,2204105912,1844756978,2532684181,4245352700,2969441100,3796921661,1335562986,4061524517,2720232303,2679424040,634407289,885462008,3294724487,3933892248,2094100220,339117932,4048830727,3202280980,1458155303,2689246273,1022871705,2464987878,3714515309,353796843,2822958815,4256850100,4052777845,551748367,618185374,3778635579,4020649912,1904685140,3069366075,2670879810,3407193292,2954511620,4058283405,2219449317,3135758300,1120655984,3447565834,1474845562,3577699062,550456716,3466908712,2043752612,881257467,869518812,2005220179,938474677,3305539448,3850417126,1315485940,3318264702,226533026,965733244,321539988,1136104718,804158748,573969341,3708209826,937399083,3290727049,2901666755,1461057207,4013193437,4066861423,3242773476,2421326174,1581322155,3028952165,786071460,3900391652,3918438532,1485433313,4023619836,3708277595,3678951060,953673138,1467089153,1930354364,1533292819,2492563023,1346121658,1685000834,1965281866,3765933717,4190206607,2052792609,3515332758,690371149,3125873887,2180283551,2903598061,3933952357,436236910,289419410,14314871,1242357089,2904507907,1616633776,2666382180,585885352,3471299210,2699507360,1432659641,277164553,3354103607,770115018,2303809295,3741942315,3177781868,2853364978,2269453327,3774259834,987383833,1290892879,225909803,1741533526,890078084,1496906255,1111072499,916028167,243534141,1252605537,2204162171,531204876,290011180,3916834213,102027703,237315147,209093447,1486785922,220223953,2758195998,4175039106,82940208,3127791296,2569425252,518464269,1353887104,3941492737,2377294467,3935040926]}function Cast5(e){this.cast5=new OpenpgpSymencCast5;this.cast5.setKey(e);this.encrypt=function(e){return this.cast5.encrypt(e)}}Cast5.blockSize=Cast5.prototype.blockSize=8;Cast5.keySize=Cast5.prototype.keySize=16;n.default=Cast5},{}],100:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});function des(e,r,n,t,i,a){const s=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756];const f=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344];const c=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584];const l=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928];const d=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080];const o=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312];const u=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154];const h=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];let p=0;let v;let b;let y;let g;let w;let m;let A;let E;let S;let k;let R;let M;let C;let D;let _=r.length;const j=e.length===32?3:9;if(j===3){E=n?[0,32,2]:[30,-2,-2]}else{E=n?[0,32,2,62,30,-2,64,96,2]:[94,62,-2,32,64,2,30,-2,-2]}if(n){r=des_addPadding(r,a);_=r.length}let B=new Uint8Array(_);let q=0;if(t===1){S=i[p++]<<24|i[p++]<<16|i[p++]<<8|i[p++];R=i[p++]<<24|i[p++]<<16|i[p++]<<8|i[p++];p=0}while(p<_){m=r[p++]<<24|r[p++]<<16|r[p++]<<8|r[p++];A=r[p++]<<24|r[p++]<<16|r[p++]<<8|r[p++];if(t===1){if(n){m^=S;A^=R}else{k=S;M=R;S=m;R=A}}y=(m>>>4^A)&252645135;A^=y;m^=y<<4;y=(m>>>16^A)&65535;A^=y;m^=y<<16;y=(A>>>2^m)&858993459;m^=y;A^=y<<2;y=(A>>>8^m)&16711935;m^=y;A^=y<<8;y=(m>>>1^A)&1431655765;A^=y;m^=y<<1;m=m<<1|m>>>31;A=A<<1|A>>>31;for(b=0;b>>4|A<<28)^e[v+1];y=m;m=A;A=y^(f[g>>>24&63]|l[g>>>16&63]|o[g>>>8&63]|h[g&63]|s[w>>>24&63]|c[w>>>16&63]|d[w>>>8&63]|u[w&63])}y=m;m=A;A=y}m=m>>>1|m<<31;A=A>>>1|A<<31;y=(m>>>1^A)&1431655765;A^=y;m^=y<<1;y=(A>>>8^m)&16711935;m^=y;A^=y<<8;y=(A>>>2^m)&858993459;m^=y;A^=y<<2;y=(m>>>16^A)&65535;A^=y;m^=y<<16;y=(m>>>4^A)&252645135;A^=y;m^=y<<4;if(t===1){if(n){S=m;R=A}else{m^=k;A^=M}}B[q++]=m>>>24;B[q++]=m>>>16&255;B[q++]=m>>>8&255;B[q++]=m&255;B[q++]=A>>>24;B[q++]=A>>>16&255;B[q++]=A>>>8&255;B[q++]=A&255}if(!n){B=des_removePadding(B,a)}return B}function des_createKeys(e){const r=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964];const n=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697];const t=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272];const i=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144];const a=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256];const s=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488];const f=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746];const c=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568];const l=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578];const d=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488];const o=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800];const u=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744];const h=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128];const p=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261];const v=e.length>8?3:1;const b=new Array(32*v);const y=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0];let g;let w;let m=0;let A=0;let E;for(let S=0;S>>4^S)&252645135;S^=E;v^=E<<4;E=(S>>>-16^v)&65535;v^=E;S^=E<<-16;E=(v>>>2^S)&858993459;S^=E;v^=E<<2;E=(S>>>-16^v)&65535;v^=E;S^=E<<-16;E=(v>>>1^S)&1431655765;S^=E;v^=E<<1;E=(S>>>8^v)&16711935;v^=E;S^=E<<8;E=(v>>>1^S)&1431655765;S^=E;v^=E<<1;E=v<<8|S>>>20&240;v=S<<24|S<<8&16711680|S>>>8&65280|S>>>24&240;S=E;for(let e=0;e>>26;S=S<<2|S>>>26}else{v=v<<1|v>>>27;S=S<<1|S>>>27}v&=-15;S&=-15;g=r[v>>>28]|n[v>>>24&15]|t[v>>>20&15]|i[v>>>16&15]|a[v>>>12&15]|s[v>>>8&15]|f[v>>>4&15];w=c[S>>>28]|l[S>>>24&15]|d[S>>>20&15]|o[S>>>16&15]|u[S>>>12&15]|h[S>>>8&15]|p[S>>>4&15];E=(w>>>16^g)&65535;b[A++]=g^E;b[A++]=w^E<<16}}return b}function des_addPadding(e,r){const n=8-e.length%8;let t;if(r===2&&n<8){t=" ".charCodeAt(0)}else if(r===1){t=n}else if(!r&&n<8){t=0}else if(n===8){return e}else{throw new Error("des: invalid padding")}const i=new Uint8Array(e.length+n);for(let r=0;r>>32-r)&t}function getW(e,r){return e[r]|e[r+1]<<8|e[r+2]<<16|e[r+3]<<24}function setW(e,r,n){e.splice(r,4,n&255,n>>>8&255,n>>>16&255,n>>>24&255)}function getB(e,r){return e>>>r*8&255}function createTwofish(){let e=null;let r=null;let n=-1;let i=[];let a=[[],[],[],[]];function tfsInit(r){e=r;let n;let s;let f;let c;let l;const d=[];const o=[];const u=[];let h;const p=[];let v;let b;let y;const g=[[8,1,7,13,6,15,3,2,0,11,5,9,14,12,10,4],[2,8,11,13,15,7,6,14,3,1,9,4,0,10,12,5]];const w=[[14,12,11,8,1,2,3,5,15,4,10,6,7,0,9,13],[1,14,2,11,4,12,3,7,6,13,10,5,15,9,0,8]];const m=[[11,10,5,14,6,13,9,0,12,8,15,3,2,4,7,1],[4,12,7,5,1,6,9,10,0,14,13,8,2,11,3,15]];const A=[[13,7,15,4,1,2,6,14,9,11,3,0,8,5,12,10],[11,9,5,1,12,3,13,14,6,4,7,15,2,0,8,10]];const E=[0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15];const S=[0,9,2,11,4,13,6,15,8,1,10,3,12,5,14,7];const k=[[],[]];const R=[[],[],[],[]];function ffm5b(e){return e^e>>2^[0,90,180,238][e&3]}function ffmEf(e){return e^e>>1^e>>2^[0,238,180,90][e&3]}function mdsRem(e,r){let n;let i;let a;for(n=0;n<8;n++){i=r>>>24;r=r<<8&t|e>>>24;e=e<<8&t;a=i<<1;if(i&128){a^=333}r^=i^a<<16;a^=i>>>1;if(i&1){a^=166}r^=a<<24|a<<8}return r}function qp(e,r){const n=r>>4;const t=r&15;const i=g[e][n^t];const a=w[e][E[t]^S[n]];return A[e][E[a]^S[i]]<<4|m[e][i^a]}function hFun(e,r){let n=getB(e,0);let t=getB(e,1);let i=getB(e,2);let a=getB(e,3);switch(h){case 4:n=k[1][n]^getB(r[3],0);t=k[0][t]^getB(r[3],1);i=k[0][i]^getB(r[3],2);a=k[1][a]^getB(r[3],3);case 3:n=k[1][n]^getB(r[2],0);t=k[1][t]^getB(r[2],1);i=k[0][i]^getB(r[2],2);a=k[0][a]^getB(r[2],3);case 2:n=k[0][k[0][n]^getB(r[1],0)]^getB(r[0],0);t=k[0][k[1][t]^getB(r[1],1)]^getB(r[0],1);i=k[1][k[0][i]^getB(r[1],2)]^getB(r[0],2);a=k[1][k[1][a]^getB(r[1],3)]^getB(r[0],3)}return R[0][n]^R[1][t]^R[2][i]^R[3][a]}e=e.slice(0,32);n=e.length;while(n!==16&&n!==24&&n!==32){e[n++]=0}for(n=0;n>2]=getW(e,n)}for(n=0;n<256;n++){k[0][n]=qp(0,n);k[1][n]=qp(1,n)}for(n=0;n<256;n++){v=k[1][n];b=ffm5b(v);y=ffmEf(v);R[0][n]=v+(b<<8)+(y<<16)+(y<<24);R[2][n]=b+(y<<8)+(v<<16)+(y<<24);v=k[0][n];b=ffm5b(v);y=ffmEf(v);R[1][n]=y+(y<<8)+(b<<16)+(v<<24);R[3][n]=b+(v<<8)+(y<<16)+(b<<24)}h=u.length/2;for(n=0;n=0;e--){tfsIrnd(e,a)}setW(r,n,a[2]^i[0]);setW(r,n+4,a[3]^i[1]);setW(r,n+8,a[0]^i[2]);setW(r,n+12,a[1]^i[3]);n+=16}function tfsFinal(){return r}return{name:"twofish",blocksize:128/8,open:tfsInit,close:tfsClose,encrypt:tfsEncrypt,decrypt:tfsDecrypt,finalize:tfsFinal}}function TF(e){this.tf=createTwofish();this.tf.open(Array.from(e),0);this.encrypt=function(e){return this.tf.encrypt(Array.from(e),0)}}TF.keySize=TF.prototype.keySize=32;TF.blockSize=TF.prototype.blockSize=16;n.default=TF},{}],103:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("asmcrypto.js/dist_es5/aes/cbc");var i=e("../util");var a=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const s=a.default.getWebCrypto();const f=a.default.getNodeCrypto();const c=a.default.getNodeBuffer();const l=16;function rightXorMut(e,r){const n=e.length-l;for(let t=0;t{n.update(E.from(e))},()=>new Uint8Array(n.digest()))}}function hashjs_hash(e,r){return async function(n){if(!w.default.isStream(n)&&m&&r&&n.length>=y.default.min_bytes_for_web_crypto){return new Uint8Array(await m.digest(r,n))}const t=e();return h.default.transform(n,e=>{t.update(e)},()=>new Uint8Array(t.digest()))}}function asmcrypto_hash(e,r){return async function(n){if(w.default.isStream(n)){const r=new e;return h.default.transform(n,e=>{r.process(e)},()=>r.finish().result)}else if(m&&r&&n.length>=y.default.min_bytes_for_web_crypto){return new Uint8Array(await m.digest(r,n))}else{return e.bytes(n)}}}let S;if(A){S={md5:node_hash("md5"),sha1:node_hash("sha1"),sha224:node_hash("sha224"),sha256:node_hash("sha256"),sha384:node_hash("sha384"),sha512:node_hash("sha512"),ripemd:node_hash("ripemd160")}}else{S={md5:v.default,sha1:asmcrypto_hash(t.Sha1,navigator.userAgent.indexOf("Edge")===-1&&"SHA-1"),sha224:hashjs_hash(s.default),sha256:asmcrypto_hash(i.Sha256,"SHA-256"),sha384:hashjs_hash(c.default,"SHA-384"),sha512:hashjs_hash(d.default,"SHA-512"),ripemd:hashjs_hash(o.ripemd160)}}n.default={md5:S.md5,sha1:S.sha1,sha224:S.sha224,sha256:S.sha256,sha384:S.sha384,sha512:S.sha512,ripemd:S.ripemd,digest:function digest(e,r){switch(e){case 1:return this.md5(r);case 2:return this.sha1(r);case 3:return this.ripemd(r);case 8:return this.sha256(r);case 9:return this.sha384(r);case 10:return this.sha512(r);case 11:return this.sha224(r);default:throw new Error("Invalid hash function.")}},getHashByteLength:function getHashByteLength(e){switch(e){case 1:return 16;case 2:case 3:return 20;case 8:return 32;case 9:return 48;case 10:return 64;case 11:return 28;default:throw new Error("Invalid hash algorithm.")}}}},{"../../config":94,"../../util":173,"./md5":108,"asmcrypto.js/dist_es5/hash/sha1/sha1":11,"asmcrypto.js/dist_es5/hash/sha256/sha256":13,"hash.js/lib/hash/ripemd":51,"hash.js/lib/hash/sha/224":54,"hash.js/lib/hash/sha/384":56,"hash.js/lib/hash/sha/512":57,"web-stream-tools":90}],108:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("../../util");var i=_interopRequireDefault(t);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function md5(e){const r=md51(i.default.Uint8Array_to_str(e));return i.default.hex_to_Uint8Array(hex(r))}function md5cycle(e,r){let n=e[0];let t=e[1];let i=e[2];let a=e[3];n=ff(n,t,i,a,r[0],7,-680876936);a=ff(a,n,t,i,r[1],12,-389564586);i=ff(i,a,n,t,r[2],17,606105819);t=ff(t,i,a,n,r[3],22,-1044525330);n=ff(n,t,i,a,r[4],7,-176418897);a=ff(a,n,t,i,r[5],12,1200080426);i=ff(i,a,n,t,r[6],17,-1473231341);t=ff(t,i,a,n,r[7],22,-45705983);n=ff(n,t,i,a,r[8],7,1770035416);a=ff(a,n,t,i,r[9],12,-1958414417);i=ff(i,a,n,t,r[10],17,-42063);t=ff(t,i,a,n,r[11],22,-1990404162);n=ff(n,t,i,a,r[12],7,1804603682);a=ff(a,n,t,i,r[13],12,-40341101);i=ff(i,a,n,t,r[14],17,-1502002290);t=ff(t,i,a,n,r[15],22,1236535329);n=gg(n,t,i,a,r[1],5,-165796510);a=gg(a,n,t,i,r[6],9,-1069501632);i=gg(i,a,n,t,r[11],14,643717713);t=gg(t,i,a,n,r[0],20,-373897302);n=gg(n,t,i,a,r[5],5,-701558691);a=gg(a,n,t,i,r[10],9,38016083);i=gg(i,a,n,t,r[15],14,-660478335);t=gg(t,i,a,n,r[4],20,-405537848);n=gg(n,t,i,a,r[9],5,568446438);a=gg(a,n,t,i,r[14],9,-1019803690);i=gg(i,a,n,t,r[3],14,-187363961);t=gg(t,i,a,n,r[8],20,1163531501);n=gg(n,t,i,a,r[13],5,-1444681467);a=gg(a,n,t,i,r[2],9,-51403784);i=gg(i,a,n,t,r[7],14,1735328473);t=gg(t,i,a,n,r[12],20,-1926607734);n=hh(n,t,i,a,r[5],4,-378558);a=hh(a,n,t,i,r[8],11,-2022574463);i=hh(i,a,n,t,r[11],16,1839030562);t=hh(t,i,a,n,r[14],23,-35309556);n=hh(n,t,i,a,r[1],4,-1530992060);a=hh(a,n,t,i,r[4],11,1272893353);i=hh(i,a,n,t,r[7],16,-155497632);t=hh(t,i,a,n,r[10],23,-1094730640);n=hh(n,t,i,a,r[13],4,681279174);a=hh(a,n,t,i,r[0],11,-358537222);i=hh(i,a,n,t,r[3],16,-722521979);t=hh(t,i,a,n,r[6],23,76029189);n=hh(n,t,i,a,r[9],4,-640364487);a=hh(a,n,t,i,r[12],11,-421815835);i=hh(i,a,n,t,r[15],16,530742520);t=hh(t,i,a,n,r[2],23,-995338651);n=ii(n,t,i,a,r[0],6,-198630844);a=ii(a,n,t,i,r[7],10,1126891415);i=ii(i,a,n,t,r[14],15,-1416354905);t=ii(t,i,a,n,r[5],21,-57434055);n=ii(n,t,i,a,r[12],6,1700485571);a=ii(a,n,t,i,r[3],10,-1894986606);i=ii(i,a,n,t,r[10],15,-1051523);t=ii(t,i,a,n,r[1],21,-2054922799);n=ii(n,t,i,a,r[8],6,1873313359);a=ii(a,n,t,i,r[15],10,-30611744);i=ii(i,a,n,t,r[6],15,-1560198380);t=ii(t,i,a,n,r[13],21,1309151649);n=ii(n,t,i,a,r[4],6,-145523070);a=ii(a,n,t,i,r[11],10,-1120210379);i=ii(i,a,n,t,r[2],15,718787259);t=ii(t,i,a,n,r[9],21,-343485551);e[0]=add32(n,e[0]);e[1]=add32(t,e[1]);e[2]=add32(i,e[2]);e[3]=add32(a,e[3])}function cmn(e,r,n,t,i,a){r=add32(add32(r,e),add32(t,a));return add32(r<>>32-i,n)}function ff(e,r,n,t,i,a,s){return cmn(r&n|~r&t,e,r,i,a,s)}function gg(e,r,n,t,i,a,s){return cmn(r&t|n&~t,e,r,i,a,s)}function hh(e,r,n,t,i,a,s){return cmn(r^n^t,e,r,i,a,s)}function ii(e,r,n,t,i,a,s){return cmn(n^(r|~t),e,r,i,a,s)}function md51(e){const r=e.length;const n=[1732584193,-271733879,-1732584194,271733878];let t;for(t=64;t<=e.length;t+=64){md5cycle(n,md5blk(e.substring(t-64,t)))}e=e.substring(t-64);const i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3)}i[t>>2]|=128<<(t%4<<3);if(t>55){md5cycle(n,i);for(t=0;t<16;t++){i[t]=0}}i[14]=r*8;md5cycle(n,i);return n}function md5blk(e){const r=[];let n;for(n=0;n<64;n+=4){r[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24)}return r}const a="0123456789abcdef".split("");function rhex(e){let r="";let n=0;for(;n<4;n++){r+=a[e>>n*8+4&15]+a[e>>n*8&15]}return r}function hex(e){for(let r=0;r>3),17+(p>>3)),8-(p&7)).subarray(1);const g=new Uint8Array(f);const w=new Uint8Array(r.length+l);let m;let A=0;for(m=0;mr-11){throw new Error("Message too long")}const t=await getPkcs1Padding(r-n-3);return String.fromCharCode(0)+String.fromCharCode(2)+t+String.fromCharCode(0)+e};l.decode=function(e){if(e.charCodeAt(0)!==0){e=String.fromCharCode(0)+e}const r=e.charCodeAt(0);const n=e.charCodeAt(1);let t=2;while(e.charCodeAt(t)!==0&&t=8&&a===0){return e.substr(t)}throw new Error("Decryption error")};d.encode=async function(e,r,n){let t;const i=c.default.Uint8Array_to_str(r);if(i.length!==s.default.getHashByteLength(e)){throw new Error("Invalid hash length")}let a="";for(t=0;t0){const n=e.charCodeAt(r-1);if(n>=1){const t=e.substr(r-n);const i=String.fromCharCode(n).repeat(n);if(t===i){return e.substr(0,r-n)}}}throw new Error("Invalid padding")}n.default={encode:encode,decode:decode}},{}],113:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("bn.js");var i=_interopRequireDefault(t);var a=e("../random");var s=_interopRequireDefault(a);var f=e("../../util");var c=_interopRequireDefault(f);var l=e("./prime");var d=_interopRequireDefault(l);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=new i.default(1);const u=new i.default(0);n.default={sign:async function sign(e,r,n,t,a,f){let c;let l;let d;let h;const p=new i.default.red(t);const v=new i.default.red(a);const b=n.toRed(p);const y=f.toRed(v);const g=new i.default(r.subarray(0,a.byteLength())).toRed(v);while(true){c=await s.default.getRandomBN(o,a);l=b.redPow(c).fromRed().toRed(v);if(u.cmp(l)===0){continue}h=g.redAdd(y.redMul(l));d=c.toRed(v).redInvm().redMul(h);if(u.cmp(d)===0){continue}break}return{r:l.toArrayLike(Uint8Array,"be",a.byteLength()),s:d.toArrayLike(Uint8Array,"be",a.byteLength())}},verify:async function verify(e,r,n,t,a,s,f,l){if(u.ucmp(r)>=0||r.ucmp(f)>=0||u.ucmp(n)>=0||n.ucmp(f)>=0){c.default.print_debug("invalid DSA Signature");return null}const d=new i.default.red(s);const o=new i.default.red(f);const h=new i.default(t.subarray(0,f.byteLength()));const p=n.toRed(o).redInvm();if(u.cmp(p)===0){c.default.print_debug("invalid DSA Signature");return null}const v=h.toRed(o).redMul(p);const b=r.toRed(o).redMul(p);const y=a.toRed(d).redPow(v.fromRed());const g=l.toRed(d).redPow(b.fromRed());const w=y.redMul(g).fromRed().mod(f);return w.cmp(r)===0},validateParams:async function validateParams(e,r,n,t,a){e=new i.default(e);r=new i.default(r);n=new i.default(n);t=new i.default(t);const f=new i.default(1);if(n.lte(f)||n.gte(e)){return false}if(!e.sub(f).mod(r).isZero()){return false}const c=new i.default.red(e);const l=n.toRed(c);if(!l.redPow(r).eq(f)){return false}const o=r.bitLength();if(o<150||!await d.default.isProbablePrime(r,null,32)){return false}a=new i.default(a);const u=await s.default.getRandomBN(new i.default(2).shln(o-1),new i.default(2).shln(o));const h=r.mul(u).add(a);if(!t.eq(l.redPow(h))){return false}return true}}},{"../../util":173,"../random":124,"./prime":122,"bn.js":30}],114:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("bn.js");var i=_interopRequireDefault(t);var a=e("../random");var s=_interopRequireDefault(a);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const f=new i.default(0);n.default={encrypt:async function encrypt(e,r,n,t){const a=new i.default.red(r);const c=e.toRed(a);const l=n.toRed(a);const d=t.toRed(a);const o=await s.default.getRandomBN(f,r);return{c1:l.redPow(o).fromRed(),c2:d.redPow(o).redMul(c).fromRed()}},decrypt:async function decrypt(e,r,n,t){const a=new i.default.red(n);const s=e.toRed(a);const f=r.toRed(a);return s.redPow(t).redInvm().redMul(f).fromRed()},validateParams:async function validateParams(e,r,n,t){e=new i.default(e);r=new i.default(r);n=new i.default(n);const a=new i.default(1);if(r.lte(a)||r.gte(e)){return false}const f=e.subn(1).bitLength();if(f<1023){return false}const c=new i.default.red(e);const l=r.toRed(c);if(!l.redPow(e.subn(1)).eq(a)){return false}let d=r;const o=new i.default(1);const u=new i.default(2).shln(17);while(o.lt(u)){d=d.mul(r).mod(e);if(d.eqn(1)){return false}o.iaddn(1)}t=new i.default(t);const h=await s.default.getRandomBN(new i.default(2).shln(f-1),new i.default(2).shln(f));const p=e.subn(1).mul(h).add(t);if(!n.eq(l.redPow(p))){return false}return true}}},{"../random":124,"bn.js":30}],115:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.validateStandardParams=n.privateToJwk=n.rawPublicToJwk=n.jwkToRawPublic=n.getPreferredHashAlgo=n.generate=n.nodeCurves=n.webCurves=n.curves=undefined;var t=e("bn.js");var i=_interopRequireDefault(t);var a=e("tweetnacl/nacl-fast-light.js");var s=_interopRequireDefault(a);var f=e("../../random");var c=_interopRequireDefault(f);var l=e("../../../enums");var d=_interopRequireDefault(l);var o=e("../../../util");var u=_interopRequireDefault(o);var h=e("../../../type/oid");var p=_interopRequireDefault(h);var v=e("./indutnyKey");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const b=u.default.getWebCrypto();const y=u.default.getNodeCrypto();const g={p256:"P-256",p384:"P-384",p521:"P-521"};const w=y?y.getCurves():[];const m=y?{secp256k1:w.includes("secp256k1")?"secp256k1":undefined,p256:w.includes("prime256v1")?"prime256v1":undefined,p384:w.includes("secp384r1")?"secp384r1":undefined,p521:w.includes("secp521r1")?"secp521r1":undefined,ed25519:w.includes("ED25519")?"ED25519":undefined,curve25519:w.includes("X25519")?"X25519":undefined,brainpoolP256r1:w.includes("brainpoolP256r1")?"brainpoolP256r1":undefined,brainpoolP384r1:w.includes("brainpoolP384r1")?"brainpoolP384r1":undefined,brainpoolP512r1:w.includes("brainpoolP512r1")?"brainpoolP512r1":undefined}:{};const A={p256:{oid:[6,8,42,134,72,206,61,3,1,7],keyType:d.default.publicKey.ecdsa,hash:d.default.hash.sha256,cipher:d.default.symmetric.aes128,node:m.p256,web:g.p256,payloadSize:32,sharedSize:256},p384:{oid:[6,5,43,129,4,0,34],keyType:d.default.publicKey.ecdsa,hash:d.default.hash.sha384,cipher:d.default.symmetric.aes192,node:m.p384,web:g.p384,payloadSize:48,sharedSize:384},p521:{oid:[6,5,43,129,4,0,35],keyType:d.default.publicKey.ecdsa,hash:d.default.hash.sha512,cipher:d.default.symmetric.aes256,node:m.p521,web:g.p521,payloadSize:66,sharedSize:528},secp256k1:{oid:[6,5,43,129,4,0,10],keyType:d.default.publicKey.ecdsa,hash:d.default.hash.sha256,cipher:d.default.symmetric.aes128,node:m.secp256k1,payloadSize:32},ed25519:{oid:[6,9,43,6,1,4,1,218,71,15,1],keyType:d.default.publicKey.eddsa,hash:d.default.hash.sha512,node:false,payloadSize:32},curve25519:{oid:[6,10,43,6,1,4,1,151,85,1,5,1],keyType:d.default.publicKey.ecdh,hash:d.default.hash.sha256,cipher:d.default.symmetric.aes128,node:false,payloadSize:32},brainpoolP256r1:{oid:[6,9,43,36,3,3,2,8,1,1,7],keyType:d.default.publicKey.ecdsa,hash:d.default.hash.sha256,cipher:d.default.symmetric.aes128,node:m.brainpoolP256r1,payloadSize:32},brainpoolP384r1:{oid:[6,9,43,36,3,3,2,8,1,1,11],keyType:d.default.publicKey.ecdsa,hash:d.default.hash.sha384,cipher:d.default.symmetric.aes192,node:m.brainpoolP384r1,payloadSize:48},brainpoolP512r1:{oid:[6,9,43,36,3,3,2,8,1,1,13],keyType:d.default.publicKey.ecdsa,hash:d.default.hash.sha512,cipher:d.default.symmetric.aes256,node:m.brainpoolP512r1,payloadSize:64}};function Curve(e,r){try{if(u.default.isArray(e)||u.default.isUint8Array(e)){e=new p.default(e)}if(e instanceof p.default){e=e.getName()}this.name=d.default.write(d.default.curve,e)}catch(e){throw new Error("Not valid curve")}r=r||A[this.name];this.keyType=r.keyType;this.oid=r.oid;this.hash=r.hash;this.cipher=r.cipher;this.node=r.node&&A[this.name];this.web=r.web&&A[this.name];this.payloadSize=r.payloadSize;if(this.web&&u.default.getWebCrypto()){this.type="web"}else if(this.node&&u.default.getNodeCrypto()){this.type="node"}else if(this.name==="curve25519"){this.type="curve25519"}else if(this.name==="ed25519"){this.type="ed25519"}}Curve.prototype.genKeyPair=async function(){let e;switch(this.type){case"web":try{return await webGenKeyPair(this.name)}catch(e){u.default.print_debug_error("Browser did not support generating ec key "+e.message);break}case"node":return nodeGenKeyPair(this.name);case"curve25519":{const r=await c.default.getRandomBytes(32);r[0]=r[0]&127|64;r[31]&=248;const n=r.slice().reverse();e=s.default.box.keyPair.fromSecretKey(n);const t=u.default.concatUint8Array([new Uint8Array([64]),e.publicKey]);return{publicKey:t,privateKey:r}}case"ed25519":{const e=await c.default.getRandomBytes(32);const r=s.default.sign.keyPair.fromSeed(e);const n=u.default.concatUint8Array([new Uint8Array([64]),r.publicKey]);return{publicKey:n,privateKey:e}}}const r=await(0,v.getIndutnyCurve)(this.name);e=await r.genKeyPair({entropy:u.default.Uint8Array_to_str(await c.default.getRandomBytes(32))});return{publicKey:new Uint8Array(e.getPublic("array",false)),privateKey:e.getPrivate().toArrayLike(Uint8Array)}};async function generate(e){e=new Curve(e);const r=await e.genKeyPair();return{oid:e.oid,Q:new i.default(r.publicKey),d:new i.default(r.privateKey),hash:e.hash,cipher:e.cipher}}function getPreferredHashAlgo(e){return A[d.default.write(d.default.curve,e.toHex())].hash}async function validateStandardParams(e,r,n,t){const a={p256:true,p384:true,p521:true,secp256k1:true,curve25519:e===d.default.publicKey.ecdh,brainpoolP256r1:true,brainpoolP384r1:true,brainpoolP512r1:true};const f=r.getName();if(!a[f]){return false}if(f==="curve25519"){t=t.slice().reverse();var c=s.default.box.keyPair.fromSecretKey(t);const e=c.publicKey;n=new Uint8Array(n);const r=new Uint8Array([64,...e]);if(!u.default.equalsUint8Array(r,n)){return false}return true}const l=await(0,v.getIndutnyCurve)(f);try{n=(0,v.keyFromPublic)(l,n).getPublic()}catch(e){return false}t=new i.default(t);const o=(0,v.keyFromPrivate)(l,t).getPublic();if(!o.eq(n)){return false}return true}n.default=Curve;n.curves=A;n.webCurves=g;n.nodeCurves=m;n.generate=generate;n.getPreferredHashAlgo=getPreferredHashAlgo;n.jwkToRawPublic=jwkToRawPublic;n.rawPublicToJwk=rawPublicToJwk;n.privateToJwk=privateToJwk;n.validateStandardParams=validateStandardParams;async function webGenKeyPair(e){const r=await b.generateKey({name:"ECDSA",namedCurve:g[e]},true,["sign","verify"]);const n=await b.exportKey("jwk",r.privateKey);const t=await b.exportKey("jwk",r.publicKey);return{publicKey:jwkToRawPublic(t),privateKey:u.default.b64_to_Uint8Array(n.d,true)}}async function nodeGenKeyPair(e){const r=y.createECDH(m[e]);await r.generateKeys();return{publicKey:new Uint8Array(r.getPublicKey()),privateKey:new Uint8Array(r.getPrivateKey())}}function jwkToRawPublic(e){const r=u.default.b64_to_Uint8Array(e.x);const n=u.default.b64_to_Uint8Array(e.y);const t=new Uint8Array(r.length+n.length+1);t[0]=4;t.set(r,1);t.set(n,r.length+1);return t}function rawPublicToJwk(e,r,n){const t=e;const i=n.slice(1,t+1);const a=n.slice(t+1,t*2+1);const s={kty:"EC",crv:r,x:u.default.Uint8Array_to_b64(i,true),y:u.default.Uint8Array_to_b64(a,true),ext:true};return s}function privateToJwk(e,r,n,t){const i=rawPublicToJwk(e,r,n);i.d=u.default.Uint8Array_to_b64(t,true);return i}},{"../../../enums":128,"../../../type/oid":171,"../../../util":173,"../../random":124,"./indutnyKey":120,"bn.js":30,"tweetnacl/nacl-fast-light.js":86}],116:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=function(){function sliceIterator(e,r){var n=[];var t=true;var i=false;var a=undefined;try{for(var s=e[Symbol.iterator](),f;!(t=(f=s.next()).done);t=true){n.push(f.value);if(r&&n.length===r)break}}catch(e){i=true;a=e}finally{try{if(!t&&s["return"])s["return"]()}finally{if(i)throw a}}return n}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return sliceIterator(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var i=e("bn.js");var a=_interopRequireDefault(i);var s=e("tweetnacl/nacl-fast-light.js");var f=_interopRequireDefault(s);var c=e("./curves");var l=_interopRequireDefault(c);var d=e("../../aes_kw");var o=_interopRequireDefault(d);var u=e("../../cipher");var h=_interopRequireDefault(u);var p=e("../../random");var v=_interopRequireDefault(p);var b=e("../../hash");var y=_interopRequireDefault(b);var g=e("../../../enums");var w=_interopRequireDefault(g);var m=e("../../../util");var A=_interopRequireDefault(m);var E=e("./indutnyKey");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const S=A.default.getWebCrypto();const k=A.default.getNodeCrypto();async function validateParams(e,r,n){return(0,c.validateStandardParams)(w.default.publicKey.ecdh,e,r,n)}function buildEcdhParam(e,r,n,t){return A.default.concatUint8Array([r.write(),new Uint8Array([e]),n.write(),A.default.str_to_Uint8Array("Anonymous Sender "),t.subarray(0,20)])}function parseParams(e){if(e.length<3||e.length>4){throw new Error("Unexpected number of parameters")}const r=e[0];const n=new l.default(r);const t={oid:r};t.Q=e[1].toUint8Array();t.kdfParams=e[2];if(e.length===4){t.d=e[3].toUint8Array("be",n.payloadSize)}return t}async function kdf(e,r,n,t,i=false,a=false){let s;if(i){for(s=0;s=0&&r[s]===0;s--);r=r.subarray(0,s+1)}const f=await y.default.digest(e,A.default.concatUint8Array([new Uint8Array([0,0,0,1]),r,t]));return f.subarray(0,n)}async function genPublicEphemeralKey(e,r){switch(e.type){case"curve25519":{const i=await v.default.getRandomBytes(32);var n=await genPrivateEphemeralKey(e,r,null,i);const a=n.secretKey,s=n.sharedKey;var t=f.default.box.keyPair.fromSecretKey(a);let c=t.publicKey;c=A.default.concatUint8Array([new Uint8Array([64]),c]);return{publicKey:c,sharedKey:s}}case"web":if(e.web&&A.default.getWebCrypto()){try{return await webPublicEphemeralKey(e,r)}catch(e){A.default.print_debug_error(e)}}break;case"node":return nodePublicEphemeralKey(e,r)}return ellipticPublicEphemeralKey(e,r)}async function encrypt(e,r,n,t,i){const a=new l.default(e);var s=await genPublicEphemeralKey(a,t);const f=s.publicKey,c=s.sharedKey;const d=buildEcdhParam(w.default.publicKey.ecdh,e,r,i);const u=w.default.read(w.default.symmetric,r.cipher);const p=await kdf(r.hash,c,h.default[u].keySize,d);const v=o.default.wrap(p,n.toString());return{publicKey:f,wrappedKey:v}}async function genPrivateEphemeralKey(e,r,n,t){if(t.length!==e.payloadSize){const r=new Uint8Array(e.payloadSize);r.set(t,e.payloadSize-t.length);t=r}switch(e.type){case"curve25519":{const e=t.slice().reverse();const n=f.default.scalarMult(e,r.subarray(1));return{secretKey:e,sharedKey:n}}case"web":if(e.web&&A.default.getWebCrypto()){try{return await webPrivateEphemeralKey(e,r,n,t)}catch(e){A.default.print_debug_error(e)}}break;case"node":return nodePrivateEphemeralKey(e,r,t)}return ellipticPrivateEphemeralKey(e,r,t)}async function decrypt(e,r,n,t,i,s,f){const c=new l.default(e);var d=await genPrivateEphemeralKey(c,n,i,s);const u=d.sharedKey;const p=buildEcdhParam(w.default.publicKey.ecdh,e,r,f);const v=w.default.read(w.default.symmetric,r.cipher);let b;for(let e=0;e<3;e++){try{const n=await kdf(r.hash,u,h.default[v].keySize,p,e===1,e===2);return new a.default(o.default.unwrap(n,t))}catch(e){b=e}}throw b}async function webPrivateEphemeralKey(e,r,n,i){const a=(0,c.privateToJwk)(e.payloadSize,e.web.web,n,i);let s=S.importKey("jwk",a,{name:"ECDH",namedCurve:e.web.web},true,["deriveKey","deriveBits"]);const f=(0,c.rawPublicToJwk)(e.payloadSize,e.web.web,r);let l=S.importKey("jwk",f,{name:"ECDH",namedCurve:e.web.web},true,[]);var d=await Promise.all([s,l]);var o=t(d,2);s=o[0];l=o[1];let u=S.deriveBits({name:"ECDH",namedCurve:e.web.web,public:l},s,e.web.sharedSize);let h=S.exportKey("jwk",s);var p=await Promise.all([u,h]);var v=t(p,2);u=v[0];h=v[1];const b=new Uint8Array(u);const y=A.default.b64_to_Uint8Array(h.d,true);return{secretKey:y,sharedKey:b}}async function webPublicEphemeralKey(e,r){const n=(0,c.rawPublicToJwk)(e.payloadSize,e.web.web,r);let i=S.generateKey({name:"ECDH",namedCurve:e.web.web},true,["deriveKey","deriveBits"]);let a=S.importKey("jwk",n,{name:"ECDH",namedCurve:e.web.web},false,[]);var s=await Promise.all([i,a]);var f=t(s,2);i=f[0];a=f[1];let l=S.deriveBits({name:"ECDH",namedCurve:e.web.web,public:a},i.privateKey,e.web.sharedSize);let d=S.exportKey("jwk",i.publicKey);var o=await Promise.all([l,d]);var u=t(o,2);l=u[0];d=u[1];const h=new Uint8Array(l);const p=new Uint8Array((0,c.jwkToRawPublic)(d));return{publicKey:p,sharedKey:h}}async function ellipticPrivateEphemeralKey(e,r,n){const t=await(0,E.getIndutnyCurve)(e.name);r=(0,E.keyFromPublic)(t,r);n=(0,E.keyFromPrivate)(t,n);const i=new Uint8Array(n.getPrivate());const a=n.derive(r.getPublic());const s=t.curve.p.byteLength();const f=a.toArrayLike(Uint8Array,"be",s);return{secretKey:i,sharedKey:f}}async function ellipticPublicEphemeralKey(e,r){const n=await(0,E.getIndutnyCurve)(e.name);const t=await e.genKeyPair();r=(0,E.keyFromPublic)(n,r);const i=(0,E.keyFromPrivate)(n,t.privateKey);const a=t.publicKey;const s=i.derive(r.getPublic());const f=n.curve.p.byteLength();const c=s.toArrayLike(Uint8Array,"be",f);return{publicKey:a,sharedKey:c}}async function nodePrivateEphemeralKey(e,r,n){const t=k.createECDH(e.node.node);t.setPrivateKey(n);const i=new Uint8Array(t.computeSecret(r));const a=new Uint8Array(t.getPrivateKey());return{secretKey:a,sharedKey:i}}async function nodePublicEphemeralKey(e,r){const n=k.createECDH(e.node.node);n.generateKeys();const t=new Uint8Array(n.computeSecret(r));const i=new Uint8Array(n.getPublicKey());return{publicKey:i,sharedKey:t}}n.default={encrypt:encrypt,decrypt:decrypt,genPublicEphemeralKey:genPublicEphemeralKey,genPrivateEphemeralKey:genPrivateEphemeralKey,buildEcdhParam:buildEcdhParam,kdf:kdf,webPublicEphemeralKey:webPublicEphemeralKey,webPrivateEphemeralKey:webPrivateEphemeralKey,ellipticPublicEphemeralKey:ellipticPublicEphemeralKey,ellipticPrivateEphemeralKey:ellipticPrivateEphemeralKey,nodePublicEphemeralKey:nodePublicEphemeralKey,nodePrivateEphemeralKey:nodePrivateEphemeralKey,validateParams:validateParams,parseParams:parseParams}},{"../../../enums":128,"../../../util":173,"../../aes_kw":95,"../../cipher":101,"../../hash":107,"../../random":124,"./curves":115,"./indutnyKey":120,"bn.js":30,"tweetnacl/nacl-fast-light.js":86}],117:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("bn.js");var i=_interopRequireDefault(t);var a=e("../../../enums");var s=_interopRequireDefault(a);var f=e("../../../util");var c=_interopRequireDefault(f);var l=e("../../random");var d=_interopRequireDefault(l);var o=e("../../hash");var u=_interopRequireDefault(o);var h=e("./curves");var p=_interopRequireDefault(h);var v=e("./indutnyKey");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const b=c.default.getWebCrypto();const y=c.default.getNodeCrypto();async function sign(e,r,n,t,i,a){const s=new p.default(e);if(n&&!c.default.isStream(n)){const e={publicKey:t,privateKey:i};switch(s.type){case"web":{try{return await webSign(s,r,n,e)}catch(e){if(s.name!=="p521"&&(e.name==="DataError"||e.name==="OperationError")){throw e}c.default.print_debug_error("Browser did not support verifying: "+e.message)}break}case"node":{const t=await nodeSign(s,r,n,e);return{r:t.r.toArrayLike(Uint8Array),s:t.s.toArrayLike(Uint8Array)}}}}return ellipticSign(s,a,i)}async function verify(e,r,n,t,i,a){const s=new p.default(e);if(t&&!c.default.isStream(t)){switch(s.type){case"web":try{return await webVerify(s,r,n,t,i)}catch(e){if(s.name!=="p521"&&(e.name==="DataError"||e.name==="OperationError")){throw e}c.default.print_debug_error("Browser did not support verifying: "+e.message)}break;case"node":return nodeVerify(s,r,n,t,i)}}const f=typeof r==="undefined"?t:a;return ellipticVerify(s,n,f,i)}async function validateParams(e,r,n){const t=new p.default(e);if(t.keyType!==s.default.publicKey.ecdsa){return false}switch(t.type){case"web":case"node":{const t=await d.default.getRandomBytes(8);const i=s.default.hash.sha256;const a=await u.default.digest(i,t);try{const s=await sign(e,i,t,r,n,a);return await verify(e,i,s,t,r,a)}catch(e){return false}}default:return(0,h.validateStandardParams)(s.default.publicKey.ecdsa,e,r,n)}}function parseParams(e){if(e.length<2||e.length>3){throw new Error("Unexpected number of parameters")}const r=e[0];const n=new p.default(r);const t={oid:r};t.Q=e[1].toUint8Array();if(e.length===3){t.d=e[2].toUint8Array("be",n.payloadSize)}return t}n.default={sign:sign,verify:verify,ellipticVerify:ellipticVerify,ellipticSign:ellipticSign,validateParams:validateParams,parseParams:parseParams};async function ellipticSign(e,r,n){const t=await(0,v.getIndutnyCurve)(e.name);const i=(0,v.keyFromPrivate)(t,n);const a=i.sign(r);return{r:a.r.toArrayLike(Uint8Array),s:a.s.toArrayLike(Uint8Array)}}async function ellipticVerify(e,r,n,t){const i=await(0,v.getIndutnyCurve)(e.name);const a=(0,v.keyFromPublic)(i,t);return a.verify(n,r)}async function webSign(e,r,n,t){const i=e.payloadSize;const a=(0,h.privateToJwk)(e.payloadSize,h.webCurves[e.name],t.publicKey,t.privateKey);const f=await b.importKey("jwk",a,{name:"ECDSA",namedCurve:h.webCurves[e.name],hash:{name:s.default.read(s.default.webHash,e.hash)}},false,["sign"]);const c=new Uint8Array(await b.sign({name:"ECDSA",namedCurve:h.webCurves[e.name],hash:{name:s.default.read(s.default.webHash,r)}},f,n));return{r:c.slice(0,i),s:c.slice(i,i<<1)}}async function webVerify(e,r,{r:n,s:t},i,a){const f=e.payloadSize;const l=(0,h.rawPublicToJwk)(e.payloadSize,h.webCurves[e.name],a);const d=await b.importKey("jwk",l,{name:"ECDSA",namedCurve:h.webCurves[e.name],hash:{name:s.default.read(s.default.webHash,e.hash)}},false,["verify"]);const o=c.default.concatUint8Array([new Uint8Array(f-n.length),n,new Uint8Array(f-t.length),t]).buffer;return b.verify({name:"ECDSA",namedCurve:h.webCurves[e.name],hash:{name:s.default.read(s.default.webHash,r)}},d,o,i)}async function nodeSign(e,r,n,t){const i=y.createSign(s.default.read(s.default.hash,r));i.write(n);i.end();const a=m.encode({version:1,parameters:e.oid,privateKey:Array.from(t.privateKey),publicKey:{unused:0,data:Array.from(t.publicKey)}},"pem",{label:"EC PRIVATE KEY"});return w.decode(i.sign(a),"der")}async function nodeVerify(e,r,{r:n,s:t},a,f){const c=y.createVerify(s.default.read(s.default.hash,r));c.write(a);c.end();const l=E.encode({algorithm:{algorithm:[1,2,840,10045,2,1],parameters:e.oid},subjectPublicKey:{unused:0,data:Array.from(f)}},"pem",{label:"PUBLIC KEY"});const d=w.encode({r:new i.default(n),s:new i.default(t)},"der");try{return c.verify(l,d)}catch(e){return false}}const g=y?e("asn1.js"):undefined;const w=y?g.define("ECDSASignature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())}):undefined;const m=y?g.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").explicit(0).optional().any(),this.key("publicKey").explicit(1).optional().bitstr())}):undefined;const A=y?g.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())}):undefined;const E=y?g.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(A),this.key("subjectPublicKey").bitstr())}):undefined},{"../../../enums":128,"../../../util":173,"../../hash":107,"../../random":124,"./curves":115,"./indutnyKey":120,"asn1.js":16,"bn.js":30}],118:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("hash.js/lib/hash/sha/512");var i=_interopRequireDefault(t);var a=e("tweetnacl/nacl-fast-light.js");var s=_interopRequireDefault(a);var f=e("../../../util");var c=_interopRequireDefault(f);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}s.default.hash=(e=>new Uint8Array((0,i.default)().update(e).digest()));async function sign(e,r,n,t,i,a){const f=c.default.concatUint8Array([i,t.subarray(1)]);const l=s.default.sign.detached(a,f);return{R:l.subarray(0,32),S:l.subarray(32)}}async function verify(e,r,{R:n,S:t},i,a,f){const l=c.default.concatUint8Array([n,t]);return s.default.sign.detached.verify(f,l,a.subarray(1))}async function validateParams(e,r,n){if(e.getName()!=="ed25519"){return false}var t=s.default.sign.keyPair.fromSeed(n);const i=t.publicKey;const a=new Uint8Array([64,...i]);return c.default.equalsUint8Array(r,a)}function parseParams(e){if(e.length<2||e.length>3){throw new Error("Unexpected number of parameters")}const r={oid:e[0],Q:e[1].toUint8Array("be",33)};if(e.length===3){r.seed=e[2].toUint8Array("be",32)}return r}n.default={sign:sign,verify:verify,validateParams:validateParams,parseParams:parseParams}},{"../../../util":173,"hash.js/lib/hash/sha/512":57,"tweetnacl/nacl-fast-light.js":86}],119:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("./curves");var i=_interopRequireDefault(t);var a=e("./ecdsa");var s=_interopRequireDefault(a);var f=e("./eddsa");var c=_interopRequireDefault(f);var l=e("./ecdh");var d=_interopRequireDefault(l);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}n.default={Curve:i.default,ecdh:d.default,ecdsa:s.default,eddsa:c.default,generate:t.generate,getPreferredHashAlgo:t.getPreferredHashAlgo}},{"./curves":115,"./ecdh":116,"./ecdsa":117,"./eddsa":118}],120:[function(e,r,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.keyFromPrivate=keyFromPrivate;n.keyFromPublic=keyFromPublic;n.getIndutnyCurve=getIndutnyCurve;var t=e("../../../lightweight_helper");var i=e("../../../config");var a=_interopRequireDefault(i);var s=e("../../../util");var f=_interopRequireDefault(s);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function keyFromPrivate(e,r){const n=e.keyPair({priv:r});return n}function keyFromPublic(e,r){const n=e.keyPair({pub:r});if(n.validate().result!==true){throw new Error("Invalid elliptic public key")}return n}async function loadEllipticPromise(){const e=a.default.indutny_elliptic_path;const n=a.default.indutny_elliptic_fetch_options;const i=(0,t.dl)(e,n).catch(()=>(0,t.dl)(e,n));const s=await i;const f=URL.createObjectURL(new Blob([s],{type:"text/javascript"}));await(0,t.loadScript)(f);URL.revokeObjectURL(f);if(!r.openpgp.elliptic){throw new Error("Elliptic library failed to load correctly")}return r.openpgp.elliptic}let c;function loadElliptic(){if(!a.default.external_indutny_elliptic){return e("elliptic")}if(f.default.detectNode()){return e(a.default.indutny_elliptic_path)}if(!c){c=loadEllipticPromise().catch(e=>{c=undefined;throw e})}return c}async function getIndutnyCurve(e){if(!a.default.use_indutny_elliptic){throw new Error("This curve is only supported in the full build of OpenPGP.js")}const r=await loadElliptic();return new r.ec(e)}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"../../../config":94,"../../../lightweight_helper":140,"../../../util":173,elliptic:32}],121:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("tweetnacl/nacl-fast-light.js");var i=_interopRequireDefault(t);var a=e("./rsa");var s=_interopRequireDefault(a);var f=e("./elgamal");var c=_interopRequireDefault(f);var l=e("./elliptic");var d=_interopRequireDefault(l);var o=e("./dsa");var u=_interopRequireDefault(o);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}n.default={rsa:s.default,elgamal:c.default,elliptic:d.default,dsa:u.default,nacl:i.default}},{"./dsa":113,"./elgamal":114,"./elliptic":119,"./rsa":123,"tweetnacl/nacl-fast-light.js":86}],122:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("bn.js");var i=_interopRequireDefault(t);var a=e("../random");var s=_interopRequireDefault(a);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}n.default={randomProbablePrime:randomProbablePrime,isProbablePrime:isProbablePrime,fermat:fermat,millerRabin:millerRabin,divisionTest:divisionTest};async function randomProbablePrime(e,r,n){const t=new i.default(1).shln(e-1);const a=new i.default(30);const f=[1,6,5,4,3,2,1,4,3,2,1,2,1,4,3,2,1,2,1,4,3,2,1,6,5,4,3,2,1,2];let c=await s.default.getRandomBN(t,t.shln(1));let l=c.mod(a).toNumber();do{c.iaddn(f[l]);l=(l+f[l])%f.length;if(c.bitLength()>e){c=c.mod(t.shln(1)).iadd(t);l=c.mod(a).toNumber()}}while(!await isProbablePrime(c,r,n));return c}async function isProbablePrime(e,r,n){if(r&&!e.subn(1).gcd(r).eqn(1)){return false}if(!divisionTest(e)){return false}if(!fermat(e)){return false}if(!await millerRabin(e,n)){return false}return true}function fermat(e,r){r=r||new i.default(2);return r.toRed(i.default.mont(e)).redPow(e.subn(1)).fromRed().cmpn(1)===0}function divisionTest(e){return f.every(r=>{return e.modn(r)!==0})}const f=[7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999,3001,3011,3019,3023,3037,3041,3049,3061,3067,3079,3083,3089,3109,3119,3121,3137,3163,3167,3169,3181,3187,3191,3203,3209,3217,3221,3229,3251,3253,3257,3259,3271,3299,3301,3307,3313,3319,3323,3329,3331,3343,3347,3359,3361,3371,3373,3389,3391,3407,3413,3433,3449,3457,3461,3463,3467,3469,3491,3499,3511,3517,3527,3529,3533,3539,3541,3547,3557,3559,3571,3581,3583,3593,3607,3613,3617,3623,3631,3637,3643,3659,3671,3673,3677,3691,3697,3701,3709,3719,3727,3733,3739,3761,3767,3769,3779,3793,3797,3803,3821,3823,3833,3847,3851,3853,3863,3877,3881,3889,3907,3911,3917,3919,3923,3929,3931,3943,3947,3967,3989,4001,4003,4007,4013,4019,4021,4027,4049,4051,4057,4073,4079,4091,4093,4099,4111,4127,4129,4133,4139,4153,4157,4159,4177,4201,4211,4217,4219,4229,4231,4241,4243,4253,4259,4261,4271,4273,4283,4289,4297,4327,4337,4339,4349,4357,4363,4373,4391,4397,4409,4421,4423,4441,4447,4451,4457,4463,4481,4483,4493,4507,4513,4517,4519,4523,4547,4549,4561,4567,4583,4591,4597,4603,4621,4637,4639,4643,4649,4651,4657,4663,4673,4679,4691,4703,4721,4723,4729,4733,4751,4759,4783,4787,4789,4793,4799,4801,4813,4817,4831,4861,4871,4877,4889,4903,4909,4919,4931,4933,4937,4943,4951,4957,4967,4969,4973,4987,4993,4999];async function millerRabin(e,r,n){const t=e.bitLength();const a=i.default.mont(e);const f=new i.default(1).toRed(a);if(!r){r=Math.max(1,t/48|0)}const c=e.subn(1);const l=c.toRed(a);let d=0;while(!c.testn(d)){d++}const o=e.shrn(d);for(;r>0;r--){const e=n?n():await s.default.getRandomBN(new i.default(2),c);let r=e.toRed(a).redPow(o);if(r.eq(f)||r.eq(l)){continue}let t;for(t=1;tm.generateKeyPair("rsa",r,(r,t,i)=>{if(r){n(r)}else{e(E.decode(i,"der"))}}));return{n:t.modulus,e:t.publicExponent,d:t.privateExponent,p:t.prime2,q:t.prime1,u:t.coefficient}}let a=await s.default.randomProbablePrime(e-(e>>1),n,40);let f=await s.default.randomProbablePrime(e>>1,n,40);if(a.cmp(f)<0){var c=[a,f];f=c[0];a=c[1]}const l=f.subn(1).mul(a.subn(1));return{n:f.mul(a),e:n,d:n.invm(l),p:f,q:a,u:f.invm(a)}},validateParams:async function validateParams(e,r,n,t,a,s){e=new i.default(e);t=new i.default(t);a=new i.default(a);if(!t.mul(a).eq(e)){return false}const f=new i.default(1);const l=new i.default(2);s=new i.default(s);if(!t.mul(s).umod(a).eq(f)){return false}r=new i.default(r);n=new i.default(n);const d=await c.default.getRandomBN(l,l.shln(e.bitLength()/3));const o=d.mul(n).mul(r);const u=o.umod(t.sub(f)).eq(d)&&o.umod(a.sub(f)).eq(d);if(!u){return false}return true},bnSign:async function bnSign(e,r,n,t){r=new i.default(r);const a=new i.default(await p.default.emsa.encode(e,t,r.byteLength()),16);n=new i.default(n);if(r.cmp(a)<=0){throw new Error("Message size cannot exceed modulus size")}const s=new i.default.red(r);return a.toRed(s).redPow(n).toArrayLike(Uint8Array,"be",r.byteLength())},webSign:async function webSign(e,r,n,t,i,a,s,f){const c=privateToJwk(n,t,i,a,s,f);const l={name:"RSASSA-PKCS1-v1_5",hash:{name:e}};const d=await w.importKey("jwk",c,l,false,["sign"]);return new Uint8Array(await w.sign({name:"RSASSA-PKCS1-v1_5",hash:e},d,r))},nodeSign:async function nodeSign(e,r,n,t,a,s,f,c){const l=new i.default(s);const d=new i.default(f);const o=new i.default(a);const u=o.mod(d.subn(1));const h=o.mod(l.subn(1));const p=m.createSign(b.default.read(b.default.hash,e));p.write(r);p.end();const v={version:0,modulus:new i.default(n),publicExponent:new i.default(t),privateExponent:new i.default(a),prime1:new i.default(f),prime2:new i.default(s),exponent1:u,exponent2:h,coefficient:new i.default(c)};if(typeof m.createPrivateKey!=="undefined"){const e=E.encode(v,"der");return new Uint8Array(p.sign({key:e,format:"der",type:"pkcs1"}))}const y=E.encode(v,"pem",{label:"RSA PRIVATE KEY"});return new Uint8Array(p.sign(y))},bnVerify:async function bnVerify(e,r,n,t,a){n=new i.default(n);r=new i.default(r);t=new i.default(t);if(n.cmp(r)<=0){throw new Error("Signature size cannot exceed modulus size")}const s=new i.default.red(n);const f=r.toRed(s).redPow(t).toArrayLike(Uint8Array,"be",n.byteLength());const c=await p.default.emsa.encode(e,a,n.byteLength());return u.default.Uint8Array_to_hex(f)===c},webVerify:async function webVerify(e,r,n,t,i){const a=publicToJwk(t,i);const s=await w.importKey("jwk",a,{name:"RSASSA-PKCS1-v1_5",hash:{name:e}},false,["verify"]);return w.verify({name:"RSASSA-PKCS1-v1_5",hash:e},s,n,r)},nodeVerify:async function nodeVerify(e,r,n,t,a){const s=m.createVerify(b.default.read(b.default.hash,e));s.write(r);s.end();const f={modulus:new i.default(t),publicExponent:new i.default(a)};let c;if(typeof m.createPrivateKey!=="undefined"){const e=S.encode(f,"der");c={key:e,format:"der",type:"pkcs1"}}else{c=S.encode(f,"pem",{label:"RSA PUBLIC KEY"})}try{return await s.verify(c,n)}catch(e){return false}},nodeEncrypt:async function nodeEncrypt(e,r,n){const t={modulus:new i.default(r),publicExponent:new i.default(n)};let a;if(typeof m.createPrivateKey!=="undefined"){const e=S.encode(t,"der");a={key:e,format:"der",type:"pkcs1",padding:m.constants.RSA_PKCS1_PADDING}}else{const e=S.encode(t,"pem",{label:"RSA PUBLIC KEY"});a={key:e,padding:m.constants.RSA_PKCS1_PADDING}}return new Uint8Array(m.publicEncrypt(a,e))},bnEncrypt:async function bnEncrypt(e,r,n){r=new i.default(r);e=new g.default(await p.default.eme.encode(u.default.Uint8Array_to_str(e),r.byteLength()));e=e.toBN();n=new i.default(n);if(r.cmp(e)<=0){throw new Error("Message size cannot exceed modulus size")}const t=new i.default.red(r);return e.toRed(t).redPow(n).toArrayLike(Uint8Array,"be",r.byteLength())},nodeDecrypt:function nodeDecrypt(e,r,n,t,a,s,f){const c=new i.default(a);const l=new i.default(s);const d=new i.default(t);const o=d.mod(l.subn(1));const h=d.mod(c.subn(1));const p={version:0,modulus:new i.default(r),publicExponent:new i.default(n),privateExponent:new i.default(t),prime1:new i.default(s),prime2:new i.default(a),exponent1:o,exponent2:h,coefficient:new i.default(f)};let v;if(typeof m.createPrivateKey!=="undefined"){const e=E.encode(p,"der");v={key:e,format:"der",type:"pkcs1",padding:m.constants.RSA_PKCS1_PADDING}}else{const e=E.encode(p,"pem",{label:"RSA PRIVATE KEY"});v={key:e,padding:m.constants.RSA_PKCS1_PADDING}}return u.default.Uint8Array_to_str(m.privateDecrypt(v,e))},bnDecrypt:async function bnDecrypt(e,r,n,t,a,s,f){e=new i.default(e);r=new i.default(r);n=new i.default(n);t=new i.default(t);a=new i.default(a);s=new i.default(s);f=new i.default(f);if(r.cmp(e)<=0){throw new Error("Data too large.")}const l=t.mod(s.subn(1));const o=t.mod(a.subn(1));const u=new i.default.red(a);const h=new i.default.red(s);const v=new i.default.red(r);let b;let y;if(d.default.rsa_blinding){y=(await c.default.getRandomBN(new i.default(2),r)).toRed(v);b=y.redInvm().redPow(n);e=e.toRed(v).redMul(b).fromRed()}const w=e.toRed(u).redPow(o);const m=e.toRed(h).redPow(l);const A=m.redSub(w.fromRed().toRed(h));const E=f.toRed(h).redMul(A).fromRed();let S=E.mul(a).add(w).toRed(v);if(d.default.rsa_blinding){S=S.redMul(y)}return p.default.eme.decode(new g.default(S).toString())},prime:s.default};function privateToJwk(e,r,n,t,a,s){const f=new i.default(t);const c=new i.default(a);const l=new i.default(n);let d=l.mod(c.subn(1));let o=l.mod(f.subn(1));o=o.toArrayLike(Uint8Array);d=d.toArrayLike(Uint8Array);return{kty:"RSA",n:u.default.Uint8Array_to_b64(e,true),e:u.default.Uint8Array_to_b64(r,true),d:u.default.Uint8Array_to_b64(n,true),p:u.default.Uint8Array_to_b64(a,true),q:u.default.Uint8Array_to_b64(t,true),dp:u.default.Uint8Array_to_b64(d,true),dq:u.default.Uint8Array_to_b64(o,true),qi:u.default.Uint8Array_to_b64(s,true),ext:true}}function publicToJwk(e,r){return{kty:"RSA",n:u.default.Uint8Array_to_b64(e,true),e:u.default.Uint8Array_to_b64(r,true),ext:true}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"../../config":94,"../../enums":128,"../../type/mpi":170,"../../util":173,"../pkcs1":111,"../random":124,"./prime":122,"asn1.js":16,"bn.js":30}],124:[function(e,r,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("bn.js");var i=_interopRequireDefault(t);var a=e("../util");var s=_interopRequireDefault(a);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const f=s.default.detectNode()&&e("crypto");n.default={getRandomBytes:async function getRandomBytes(e){const n=new Uint8Array(e);if(typeof crypto!=="undefined"&&crypto.getRandomValues){crypto.getRandomValues(n)}else if(typeof r!=="undefined"&&typeof r.msCrypto==="object"&&typeof r.msCrypto.getRandomValues==="function"){r.msCrypto.getRandomValues(n)}else if(f){const e=f.randomBytes(n.length);n.set(e)}else if(this.randomBuffer.buffer){await this.randomBuffer.get(n)}else{throw new Error("No secure random number generator available.")}return n},getRandomBN:async function getRandomBN(e,r){if(r.cmp(e)<=0){throw new Error("Illegal parameter value: max <= min")}const n=r.sub(e);const t=n.byteLength();const a=new i.default(await this.getRandomBytes(t+8));return a.mod(n).add(e)},randomBuffer:new RandomBuffer};function RandomBuffer(){this.buffer=null;this.size=null;this.callback=null}RandomBuffer.prototype.init=function(e,r){this.buffer=new Uint8Array(e);this.size=0;this.callback=r};RandomBuffer.prototype.set=function(e){if(!this.buffer){throw new Error("RandomBuffer is not initialized")}if(!(e instanceof Uint8Array)){throw new Error("Invalid type: buf not an Uint8Array")}const r=this.buffer.length-this.size;if(e.length>r){e=e.subarray(0,r)}this.buffer.set(e,this.size);this.size+=e.length};RandomBuffer.prototype.get=async function(e){if(!this.buffer){throw new Error("RandomBuffer is not initialized")}if(!(e instanceof Uint8Array)){throw new Error("Invalid type: buf not an Uint8Array")}if(this.size>16|r&65280|(r&255)<<16}for(let e=0;e<=255;e++){h[1][e]=h[0][e]>>8^h[0][h[0][e]&255]}for(let e=0;e<=255;e++){h[2][e]=h[1][e]>>8^h[0][h[1][e]&255]}for(let e=0;e<=255;e++){h[3][e]=h[2][e]>>8^h[0][h[2][e]&255]}const p=function(){const e=new ArrayBuffer(2);new DataView(e).setInt16(0,255,true);return new Int16Array(e)[0]===255}();function createcrc24(e){let r=13501623;return i.default.transform(e,e=>{const n=p?Math.floor(e.length/4):0;const t=new Uint32Array(e.buffer,e.byteOffset,n);for(let e=0;e>24&255]^h[1][r>>16&255]^h[2][r>>8&255]^h[3][r>>0&255]}for(let t=n*4;t>8^h[0][r&255^e[t]]}},()=>new Uint8Array([r,r>>8,r>>16]))}function verifyHeaders(e){for(let r=0;r=0&&t!==e.length-1){r=e.slice(0,t);n=e.slice(t+1).substr(0,4)}return{body:r,checksum:n}}function dearmor(e){return new Promise(async(r,n)=>{try{const t=/^-----[^-]+-----$/m;const a=/^[ \f\r\t\u00a0\u2000-\u200a\u202f\u205f\u3000]*$/;let f;const c=[];let l=c;let o;let h=[];let p;let v;let b=s.default.decode(i.default.transformPair(e,async(e,s)=>{const d=i.default.getReader(e);try{while(true){let e=await d.readLine();if(e===undefined){throw new Error("Misformed armored text")}e=u.default.removeTrailingSpaces(e.replace(/[\r\n]/g,""));if(!f){if(t.test(e)){f=getType(e)}}else if(!o){if(t.test(e)){n(new Error("Mandatory blank line missing between armor headers and armor data"))}if(!a.test(e)){l.push(e)}else{verifyHeaders(l);o=true;if(p||f!==2){r({text:h,data:b,headers:c,type:f});break}}}else if(!p&&f===2){if(!t.test(e)){h.push(e.replace(/^- /,""))}else{h=h.join("\r\n");p=true;verifyHeaders(l);l=[];o=false}}}}catch(e){n(e);return}const y=i.default.getWriter(s);try{while(true){await y.ready;var g=await d.read();const e=g.done,r=g.value;if(e){throw new Error("Misformed armored text")}const n=r+"";if(n.indexOf("=")===-1&&n.indexOf("-")===-1){await y.write(n)}else{let e=await d.readToEnd();if(!e.length)e="";e=n+e;e=u.default.removeTrailingSpaces(e.replace(/\r/g,""));const r=e.split(t);if(r.length===1){throw new Error("Misformed armored text")}const i=splitChecksum(r[0].slice(0,-1));v=i.checksum;await y.write(i.body);break}}await y.ready;await y.close()}catch(e){await y.abort(e)}}));b=i.default.transformPair(b,async(e,r)=>{const n=i.default.readToEnd(getCheckSum(i.default.passiveClone(e)));n.catch(()=>{});await i.default.pipe(e,r,{preventClose:true});const t=i.default.getWriter(r);try{const e=(await n).replace("\r\n","");if(v!==e&&(v||d.default.checksum_required)){throw new Error("Ascii armor integrity check on message failed: '"+v+"' should be '"+e+"'")}await t.ready;await t.close()}catch(e){await t.abort(e)}})}catch(e){n(e)}})}function armor(e,r,n,t,a){let f;let l;if(e===c.default.armor.signed){f=r.text;l=r.hash;r=r.data}const d=i.default.passiveClone(r);const o=[];switch(e){case c.default.armor.multipart_section:o.push("-----BEGIN PGP MESSAGE, PART "+n+"/"+t+"-----\r\n");o.push(addheader(a));o.push(s.default.encode(r));o.push("=",getCheckSum(d));o.push("-----END PGP MESSAGE, PART "+n+"/"+t+"-----\r\n");break;case c.default.armor.multipart_last:o.push("-----BEGIN PGP MESSAGE, PART "+n+"-----\r\n");o.push(addheader(a));o.push(s.default.encode(r));o.push("=",getCheckSum(d));o.push("-----END PGP MESSAGE, PART "+n+"-----\r\n");break;case c.default.armor.signed:o.push("\r\n-----BEGIN PGP SIGNED MESSAGE-----\r\n");o.push("Hash: "+l+"\r\n\r\n");o.push(f.replace(/^-/gm,"- -"));o.push("\r\n-----BEGIN PGP SIGNATURE-----\r\n");o.push(addheader(a));o.push(s.default.encode(r));o.push("=",getCheckSum(d));o.push("-----END PGP SIGNATURE-----\r\n");break;case c.default.armor.message:o.push("-----BEGIN PGP MESSAGE-----\r\n");o.push(addheader(a));o.push(s.default.encode(r));o.push("=",getCheckSum(d));o.push("-----END PGP MESSAGE-----\r\n");break;case c.default.armor.public_key:o.push("-----BEGIN PGP PUBLIC KEY BLOCK-----\r\n");o.push(addheader(a));o.push(s.default.encode(r));o.push("=",getCheckSum(d));o.push("-----END PGP PUBLIC KEY BLOCK-----\r\n");break;case c.default.armor.private_key:o.push("-----BEGIN PGP PRIVATE KEY BLOCK-----\r\n");o.push(addheader(a));o.push(s.default.encode(r));o.push("=",getCheckSum(d));o.push("-----END PGP PRIVATE KEY BLOCK-----\r\n");break;case c.default.armor.signature:o.push("-----BEGIN PGP SIGNATURE-----\r\n");o.push(addheader(a));o.push(s.default.encode(r));o.push("=",getCheckSum(d));o.push("-----END PGP SIGNATURE-----\r\n");break}return u.default.concat(o)}n.default={encode:armor,decode:dearmor}},{"../config":94,"../enums.js":128,"../util":173,"./base64.js":127,"web-stream-tools":90}],127:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("web-stream-tools");var i=_interopRequireDefault(t);var a=e("../util");var s=_interopRequireDefault(a);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const f=s.default.getNodeBuffer();let c;let l;if(f){c=(e=>f.from(e).toString("base64"));l=(e=>{const r=f.from(e,"base64");return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)})}else{c=(e=>btoa(s.default.Uint8Array_to_str(e)));l=(e=>s.default.str_to_Uint8Array(atob(e)))}function encode(e){let r=new Uint8Array;return i.default.transform(e,e=>{r=s.default.concatUint8Array([r,e]);const n=[];const t=45;const i=Math.floor(r.length/t);const a=i*t;const f=c(r.subarray(0,a));for(let e=0;er.length?c(r)+"\r\n":"")}function decode(e){let r="";return i.default.transform(e,e=>{r+=e;let n=0;const t=[" ","\t","\r","\n"];for(let e=0;e0&&(i-n)%4!==0;i--){if(t.includes(r[i]))n--}const a=l(r.substr(0,i));r=r.substr(i);return a},()=>l(r))}n.default={encode:encode,decode:decode}},{"../util":173,"web-stream-tools":90}],128:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});const t=Symbol("byValue");n.default={curve:{p256:"p256","P-256":"p256",secp256r1:"p256",prime256v1:"p256","1.2.840.10045.3.1.7":"p256","2a8648ce3d030107":"p256","2A8648CE3D030107":"p256",p384:"p384","P-384":"p384",secp384r1:"p384","1.3.132.0.34":"p384","2b81040022":"p384","2B81040022":"p384",p521:"p521","P-521":"p521",secp521r1:"p521","1.3.132.0.35":"p521","2b81040023":"p521","2B81040023":"p521",secp256k1:"secp256k1","1.3.132.0.10":"secp256k1","2b8104000a":"secp256k1","2B8104000A":"secp256k1",ED25519:"ed25519",ed25519:"ed25519",Ed25519:"ed25519","1.3.6.1.4.1.11591.15.1":"ed25519","2b06010401da470f01":"ed25519","2B06010401DA470F01":"ed25519",X25519:"curve25519",cv25519:"curve25519",curve25519:"curve25519",Curve25519:"curve25519","1.3.6.1.4.1.3029.1.5.1":"curve25519","2b060104019755010501":"curve25519","2B060104019755010501":"curve25519",brainpoolP256r1:"brainpoolP256r1","1.3.36.3.3.2.8.1.1.7":"brainpoolP256r1","2b2403030208010107":"brainpoolP256r1","2B2403030208010107":"brainpoolP256r1",brainpoolP384r1:"brainpoolP384r1","1.3.36.3.3.2.8.1.1.11":"brainpoolP384r1","2b240303020801010b":"brainpoolP384r1","2B240303020801010B":"brainpoolP384r1",brainpoolP512r1:"brainpoolP512r1","1.3.36.3.3.2.8.1.1.13":"brainpoolP512r1","2b240303020801010d":"brainpoolP512r1","2B240303020801010D":"brainpoolP512r1"},s2k:{simple:0,salted:1,iterated:3,gnu:101},publicKey:{rsa_encrypt_sign:1,rsa_encrypt:2,rsa_sign:3,elgamal:16,dsa:17,ecdh:18,ecdsa:19,eddsa:22,aedh:23,aedsa:24},symmetric:{plaintext:0,idea:1,"3des":2,tripledes:2,cast5:3,blowfish:4,aes128:7,aes192:8,aes256:9,twofish:10},compression:{uncompressed:0,zip:1,zlib:2,bzip2:3},hash:{md5:1,sha1:2,ripemd:3,sha256:8,sha384:9,sha512:10,sha224:11},webHash:{"SHA-1":2,"SHA-256":8,"SHA-384":9,"SHA-512":10},aead:{eax:1,ocb:2,experimental_gcm:100},packet:{publicKeyEncryptedSessionKey:1,signature:2,symEncryptedSessionKey:3,onePassSignature:4,secretKey:5,publicKey:6,secretSubkey:7,compressed:8,symmetricallyEncrypted:9,marker:10,literal:11,trust:12,userid:13,publicSubkey:14,userAttribute:17,symEncryptedIntegrityProtected:18,modificationDetectionCode:19,symEncryptedAEADProtected:20},literal:{binary:"b".charCodeAt(),text:"t".charCodeAt(),utf8:"u".charCodeAt(),mime:"m".charCodeAt()},signature:{binary:0,text:1,standalone:2,cert_generic:16,cert_persona:17,cert_casual:18,cert_positive:19,cert_revocation:48,subkey_binding:24,key_binding:25,key:31,key_revocation:32,subkey_revocation:40,timestamp:64,third_party:80},signatureSubpacket:{signature_creation_time:2,signature_expiration_time:3,exportable_certification:4,trust_signature:5,regular_expression:6,revocable:7,key_expiration_time:9,placeholder_backwards_compatibility:10,preferred_symmetric_algorithms:11,revocation_key:12,issuer:16,notation_data:20,preferred_hash_algorithms:21,preferred_compression_algorithms:22,key_server_preferences:23,preferred_key_server:24,primary_user_id:25,policy_uri:26,key_flags:27,signers_user_id:28,reason_for_revocation:29,features:30,signature_target:31,embedded_signature:32,issuer_fingerprint:33,preferred_aead_algorithms:34},keyFlags:{certify_keys:1,sign_data:2,encrypt_communication:4,encrypt_storage:8,split_private_key:16,authentication:32,shared_private_key:128},armor:{multipart_section:0,multipart_last:1,signed:2,message:3,public_key:4,private_key:5,signature:6},reasonForRevocation:{no_reason:0,key_superseded:1,key_compromised:2,key_retired:3,userid_invalid:32},features:{modification_detection:1,aead:2,v5_keys:4},write:function write(e,r){if(typeof r==="number"){r=this.read(e,r)}if(e[r]!==undefined){return e[r]}throw new Error("Invalid enum value.")},read:function read(e,r){if(!e[t]){e[t]=[];Object.entries(e).forEach(([r,n])=>{e[t][n]=r})}if(e[t][r]!==undefined){return e[t][r]}throw new Error("Invalid enum value.")}}},{}],129:[function(e,r,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("./config");var i=_interopRequireDefault(t);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function HKP(n){this._baseUrl=n||i.default.keyserver;this._fetch=typeof r.fetch==="function"?r.fetch:e("node-fetch")}HKP.prototype.lookup=function(e){let r=this._baseUrl+"/pks/lookup?op=get&options=mr&search=";const n=this._fetch;if(e.keyId){r+="0x"+encodeURIComponent(e.keyId)}else if(e.query){r+=encodeURIComponent(e.query)}else{throw new Error("You must provide a query parameter!")}return n(r).then(function(e){if(e.status===200){return e.text()}}).then(function(e){if(!e||e.indexOf("-----END PGP PUBLIC KEY BLOCK-----")<0){return}return e.trim()})};HKP.prototype.upload=function(e){const r=this._baseUrl+"/pks/add";const n=this._fetch;return n(r,{method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:"keytext="+encodeURIComponent(e)})};n.default=HKP}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./config":94,"node-fetch":"node-fetch"}],130:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.lightweight=n.WKD=n.HKP=n.AsyncProxy=n.Keyring=n.crypto=n.config=n.enums=n.armor=n.stream=n.OID=n.KDFParams=n.ECDHSymmetricKey=n.Keyid=n.S2K=n.MPI=n.packet=n.util=n.cleartext=n.message=n.signature=n.key=n.destroyWorker=n.getWorker=n.initWorker=n.decryptSessionKeys=n.encryptSessionKey=n.decryptKey=n.revokeKey=n.reformatKey=n.generateKey=n.verify=n.sign=n.decrypt=n.encrypt=undefined;var t=e("./openpgp");Object.defineProperty(n,"encrypt",{enumerable:true,get:function get(){return t.encrypt}});Object.defineProperty(n,"decrypt",{enumerable:true,get:function get(){return t.decrypt}});Object.defineProperty(n,"sign",{enumerable:true,get:function get(){return t.sign}});Object.defineProperty(n,"verify",{enumerable:true,get:function get(){return t.verify}});Object.defineProperty(n,"generateKey",{enumerable:true,get:function get(){return t.generateKey}});Object.defineProperty(n,"reformatKey",{enumerable:true,get:function get(){return t.reformatKey}});Object.defineProperty(n,"revokeKey",{enumerable:true,get:function get(){return t.revokeKey}});Object.defineProperty(n,"decryptKey",{enumerable:true,get:function get(){return t.decryptKey}});Object.defineProperty(n,"encryptSessionKey",{enumerable:true,get:function get(){return t.encryptSessionKey}});Object.defineProperty(n,"decryptSessionKeys",{enumerable:true,get:function get(){return t.decryptSessionKeys}});Object.defineProperty(n,"initWorker",{enumerable:true,get:function get(){return t.initWorker}});Object.defineProperty(n,"getWorker",{enumerable:true,get:function get(){return t.getWorker}});Object.defineProperty(n,"destroyWorker",{enumerable:true,get:function get(){return t.destroyWorker}});var i=e("./util");Object.defineProperty(n,"util",{enumerable:true,get:function get(){return _interopRequireDefault(i).default}});var a=e("./packet");Object.defineProperty(n,"packet",{enumerable:true,get:function get(){return _interopRequireDefault(a).default}});var s=e("./type/mpi");Object.defineProperty(n,"MPI",{enumerable:true,get:function get(){return _interopRequireDefault(s).default}});var f=e("./type/s2k");Object.defineProperty(n,"S2K",{enumerable:true,get:function get(){return _interopRequireDefault(f).default}});var c=e("./type/keyid");Object.defineProperty(n,"Keyid",{enumerable:true,get:function get(){return _interopRequireDefault(c).default}});var l=e("./type/ecdh_symkey");Object.defineProperty(n,"ECDHSymmetricKey",{enumerable:true,get:function get(){return _interopRequireDefault(l).default}});var d=e("./type/kdf_params");Object.defineProperty(n,"KDFParams",{enumerable:true,get:function get(){return _interopRequireDefault(d).default}});var o=e("./type/oid");Object.defineProperty(n,"OID",{enumerable:true,get:function get(){return _interopRequireDefault(o).default}});var u=e("web-stream-tools");Object.defineProperty(n,"stream",{enumerable:true,get:function get(){return _interopRequireDefault(u).default}});var h=e("./encoding/armor");Object.defineProperty(n,"armor",{enumerable:true,get:function get(){return _interopRequireDefault(h).default}});var p=e("./enums");Object.defineProperty(n,"enums",{enumerable:true,get:function get(){return _interopRequireDefault(p).default}});var v=e("./config/config");Object.defineProperty(n,"config",{enumerable:true,get:function get(){return _interopRequireDefault(v).default}});var b=e("./crypto");Object.defineProperty(n,"crypto",{enumerable:true,get:function get(){return _interopRequireDefault(b).default}});var y=e("./keyring");Object.defineProperty(n,"Keyring",{enumerable:true,get:function get(){return _interopRequireDefault(y).default}});var g=e("./worker/async_proxy");Object.defineProperty(n,"AsyncProxy",{enumerable:true,get:function get(){return _interopRequireDefault(g).default}});var w=e("./hkp");Object.defineProperty(n,"HKP",{enumerable:true,get:function get(){return _interopRequireDefault(w).default}});var m=e("./wkd");Object.defineProperty(n,"WKD",{enumerable:true,get:function get(){return _interopRequireDefault(m).default}});var A=_interopRequireWildcard(t);var E=e("./key");var S=_interopRequireWildcard(E);var k=e("./signature");var R=_interopRequireWildcard(k);var M=e("./message");var C=_interopRequireWildcard(M);var D=e("./cleartext");var _=_interopRequireWildcard(D);var j=e("./lightweight_helper");var B=_interopRequireWildcard(j);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}n.default=A;const q=n.key=S;const U=n.signature=R;const x=n.message=C;const I=n.cleartext=_;const K=n.lightweight=B},{"./cleartext":92,"./config/config":93,"./crypto":109,"./encoding/armor":126,"./enums":128,"./hkp":129,"./key":133,"./keyring":137,"./lightweight_helper":140,"./message":141,"./openpgp":142,"./packet":146,"./signature":166,"./type/ecdh_symkey":167,"./type/kdf_params":168,"./type/keyid":169,"./type/mpi":170,"./type/oid":171,"./type/s2k":172,"./util":173,"./wkd":174,"./worker/async_proxy":175,"web-stream-tools":90}],131:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.generate=generate;n.reformat=reformat;n.read=read;n.readArmored=readArmored;var t=e("../packet");var i=_interopRequireDefault(t);var a=e("./key");var s=_interopRequireDefault(a);var f=e("./helper");var c=_interopRequireWildcard(f);var l=e("../enums");var d=_interopRequireDefault(l);var o=e("../util");var u=_interopRequireDefault(o);var h=e("../config");var p=_interopRequireDefault(h);var v=e("../encoding/armor");var b=_interopRequireDefault(v);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}async function generate(e){e.sign=true;e=c.sanitizeKeyOptions(e);e.subkeys=e.subkeys.map(function(r,n){return c.sanitizeKeyOptions(e.subkeys[n],e)});let r=[c.generateSecretKey(e)];r=r.concat(e.subkeys.map(c.generateSecretSubkey));return Promise.all(r).then(r=>wrapKeyObject(r[0],r.slice(1),e))}async function reformat(e){e=sanitize(e);try{const r=e.privateKey.getKeys().every(e=>e.isDecrypted());if(!r){await e.privateKey.decrypt()}}catch(e){throw new Error("Key not decrypted")}const r=e.privateKey.toPacketlist();let n;const t=[];for(let e=0;e({sign:await e.privateKey.getSigningKey(r.getKeyId(),null).catch(()=>{})&&!await e.privateKey.getEncryptionKey(r.getKeyId(),null).catch(()=>{})})))}if(e.subkeys.length!==t.length){throw new Error("Number of subkey options does not match number of subkeys")}e.subkeys=e.subkeys.map(function(r,n){return sanitize(e.subkeys[n],e)});return wrapKeyObject(n,t,e);function sanitize(e,r={}){e.keyExpirationTime=e.keyExpirationTime||r.keyExpirationTime;e.passphrase=u.default.isString(e.passphrase)?e.passphrase:r.passphrase;e.date=e.date||r.date;return e}}async function wrapKeyObject(e,r,n){if(n.passphrase){await e.encrypt(n.passphrase)}await Promise.all(r.map(async function(e,r){const t=n.subkeys[r].passphrase;if(t){await e.encrypt(t)}}));const t=new i.default.List;t.push(e);await Promise.all(n.userIds.map(async function(r,t){function createdPreferredAlgos(e,r){if(r){const n=e.indexOf(r);if(n>=1){e.splice(n,1)}if(n!==0){e.unshift(r)}}return e}const a=new i.default.Userid;a.format(r);const s={};s.userId=a;s.key=e;const f=new i.default.Signature(n.date);f.signatureType=d.default.signature.cert_generic;f.publicKeyAlgorithm=e.algorithm;f.hashAlgorithm=await c.getPreferredHashAlgo(null,e);f.keyFlags=[d.default.keyFlags.certify_keys|d.default.keyFlags.sign_data];f.preferredSymmetricAlgorithms=createdPreferredAlgos([d.default.symmetric.aes256,d.default.symmetric.aes128,d.default.symmetric.aes192,d.default.symmetric.cast5,d.default.symmetric.tripledes],p.default.encryption_cipher);if(p.default.aead_protect){f.preferredAeadAlgorithms=createdPreferredAlgos([d.default.aead.eax,d.default.aead.ocb],p.default.aead_mode)}f.preferredHashAlgorithms=createdPreferredAlgos([d.default.hash.sha256,d.default.hash.sha512,d.default.hash.sha1],p.default.prefer_hash_algorithm);f.preferredCompressionAlgorithms=createdPreferredAlgos([d.default.compression.zlib,d.default.compression.zip,d.default.compression.uncompressed],p.default.compression);if(t===0){f.isPrimaryUserID=true}if(p.default.integrity_protect){f.features=[0];f.features[0]|=d.default.features.modification_detection}if(p.default.aead_protect){f.features||(f.features=[0]);f.features[0]|=d.default.features.aead}if(p.default.v5_keys){f.features||(f.features=[0]);f.features[0]|=d.default.features.v5_keys}if(n.keyExpirationTime>0){f.keyExpirationTime=n.keyExpirationTime;f.keyNeverExpires=false}await f.sign(e,s);return{userIdPacket:a,signaturePacket:f}})).then(e=>{e.forEach(({userIdPacket:e,signaturePacket:r})=>{t.push(e);t.push(r)})});await Promise.all(r.map(async function(r,t){const i=n.subkeys[t];const a=await c.createBindingSignature(r,e,i);return{secretSubkeyPacket:r,subkeySignaturePacket:a}})).then(e=>{e.forEach(({secretSubkeyPacket:e,subkeySignaturePacket:r})=>{t.push(e);t.push(r)})});const a={key:e};t.push(await c.createSignaturePacket(a,null,e,{signatureType:d.default.signature.key_revocation,reasonForRevocationFlag:d.default.reasonForRevocation.no_reason,reasonForRevocationString:""},n.date));if(n.passphrase){e.clearPrivateParams()}await Promise.all(r.map(async function(e,r){const t=n.subkeys[r].passphrase;if(t){e.clearPrivateParams()}}));return new s.default(t)}async function read(e){const r={};r.keys=[];const n=[];try{const t=new i.default.List;await t.read(e);const a=t.indexOfTag(d.default.packet.publicKey,d.default.packet.secretKey);if(a.length===0){throw new Error("No key packet found")}for(let e=0;e=0;f--){try{if((!a||e[f].created>=a.created)&&!e[f].isExpired(i)&&(e[f].verified||await e[f].verify(r,n,t))){a=e[f]}}catch(e){s=e}}if(!a){throw h.default.wrapError(`Could not find valid ${f.default.read(f.default.signature,n)} signature in key ${r.getKeyId().toHex()}`.replace("cert_generic ","self-").replace("_"," "),s)}return a}function isDataExpired(e,r,n=new Date){const t=h.default.normalizeDate(n);if(t!==null){const i=getExpirationTime(e,r);return!(e.created<=t&&t<=i)||r&&r.isExpired(n)}return false}async function createBindingSignature(e,r,n){const t={};t.key=r;t.bind=e;const i=new a.default.Signature(n.date);i.signatureType=f.default.signature.subkey_binding;i.publicKeyAlgorithm=r.algorithm;i.hashAlgorithm=await getPreferredHashAlgo(null,e);if(n.sign){i.keyFlags=[f.default.keyFlags.sign_data];i.embeddedSignature=await createSignaturePacket(t,null,e,{signatureType:f.default.signature.key_binding},n.date)}else{i.keyFlags=[f.default.keyFlags.encrypt_communication|f.default.keyFlags.encrypt_storage]}if(n.keyExpirationTime>0){i.keyExpirationTime=n.keyExpirationTime;i.keyNeverExpires=false}await i.sign(r,t);return i}async function getPreferredHashAlgo(e,r,n=new Date,i={}){let s=l.default.prefer_hash_algorithm;let f=s;if(e){const r=await e.getPrimaryUser(n,i);if(r.selfCertification.preferredHashAlgorithms){var c=t(r.selfCertification.preferredHashAlgorithms,1);f=c[0];s=o.default.hash.getHashByteLength(s)<=o.default.hash.getHashByteLength(f)?f:s}}switch(Object.getPrototypeOf(r)){case a.default.SecretKey.prototype:case a.default.PublicKey.prototype:case a.default.SecretSubkey.prototype:case a.default.PublicSubkey.prototype:switch(r.algorithm){case"ecdh":case"ecdsa":case"eddsa":f=o.default.publicKey.elliptic.getPreferredHashAlgo(r.params[0])}}return o.default.hash.getHashByteLength(s)<=o.default.hash.getHashByteLength(f)?f:s}async function getPreferredAlgo(e,r,n=new Date,t=[]){const i=e==="symmetric"?"preferredSymmetricAlgorithms":"preferredAeadAlgorithms";const a=e==="symmetric"?f.default.symmetric.aes128:f.default.aead.eax;const s={};await Promise.all(r.map(async function(e,r){const f=await e.getPrimaryUser(n,t[r]);if(!f.selfCertification[i]){return a}f.selfCertification[i].forEach(function(e,r){const n=s[e]||(s[e]={prio:0,count:0,algo:e});n.prio+=64>>r;n.count++})}));let c={prio:0,algo:a};Object.values(s).forEach(({prio:n,count:t,algo:i})=>{try{if(i!==f.default[e].plaintext&&i!==f.default[e].idea&&f.default.read(f.default[e],i)&&t===r.length&&n>c.prio){c=s[i]}}catch(e){}});return c.algo}async function createSignaturePacket(e,r,n,t,i,s,f=false,c=false){if(!n.isDecrypted()){throw new Error("Private key is not decrypted.")}const l=new a.default.Signature(i);Object.assign(l,t);l.publicKeyAlgorithm=n.algorithm;l.hashAlgorithm=await getPreferredHashAlgo(r,n,i,s);await l.sign(n,e,f,c);return l}async function mergeSignatures(e,r,n,t){e=e[n];if(e){if(!r[n].length){r[n]=e}else{await Promise.all(e.map(async function(e){if(!e.isExpired()&&(!t||await t(e))&&!r[n].some(function(r){return h.default.equalsUint8Array(r.signature,e.signature)})){r[n].push(e)}}))}}}async function isDataRevoked(e,r,n,t,i,a,s=new Date){a=a||e;const f=h.default.normalizeDate(s);const c=[];await Promise.all(t.map(async function(e){try{if((!i||e.issuerKeyId.equals(i.issuerKeyId))&&!(l.default.revocations_expire&&e.isExpired(f))&&(e.verified||await e.verify(a,r,n))){c.push(e.issuerKeyId)}}catch(e){}}));if(i){i.revoked=c.some(e=>e.equals(i.issuerKeyId))?true:i.revoked||false;return i.revoked}return c.length>0}function getExpirationTime(e,r){let n;if(r.keyNeverExpires===false){n=e.created.getTime()+r.keyExpirationTime*1e3}return n?new Date(n):Infinity}async function isAeadSupported(e,r=new Date,n=[]){let t=true;await Promise.all(e.map(async function(e,i){const a=await e.getPrimaryUser(r,n[i]);if(!a.selfCertification.features||!(a.selfCertification.features[0]&f.default.features.aead)){t=false}}));return t}function sanitizeKeyOptions(e,r={}){e.curve=e.curve||r.curve;e.rsaBits=e.rsaBits||r.rsaBits;e.keyExpirationTime=e.keyExpirationTime!==undefined?e.keyExpirationTime:r.keyExpirationTime;e.passphrase=h.default.isString(e.passphrase)?e.passphrase:r.passphrase;e.date=e.date||r.date;e.sign=e.sign||false;if(e.curve){try{e.curve=f.default.write(f.default.curve,e.curve)}catch(e){throw new Error("Not valid curve.")}if(e.curve===f.default.curve.ed25519||e.curve===f.default.curve.curve25519){e.curve=e.sign?f.default.curve.ed25519:f.default.curve.curve25519}if(e.sign){e.algorithm=e.curve===f.default.curve.ed25519?f.default.publicKey.eddsa:f.default.publicKey.ecdsa}else{e.algorithm=f.default.publicKey.ecdh}}else if(e.rsaBits){e.algorithm=f.default.publicKey.rsa_encrypt_sign}else{throw new Error("Unrecognized key type")}return e}function isValidSigningKeyPacket(e,r){if(!r.verified||r.revoked!==false){throw new Error("Signature not verified")}return e.algorithm!==f.default.read(f.default.publicKey,f.default.publicKey.rsa_encrypt)&&e.algorithm!==f.default.read(f.default.publicKey,f.default.publicKey.elgamal)&&e.algorithm!==f.default.read(f.default.publicKey,f.default.publicKey.ecdh)&&(!r.keyFlags||(r.keyFlags[0]&f.default.keyFlags.sign_data)!==0)}function isValidEncryptionKeyPacket(e,r){if(!r.verified||r.revoked!==false){throw new Error("Signature not verified")}return e.algorithm!==f.default.read(f.default.publicKey,f.default.publicKey.dsa)&&e.algorithm!==f.default.read(f.default.publicKey,f.default.publicKey.rsa_sign)&&e.algorithm!==f.default.read(f.default.publicKey,f.default.publicKey.ecdsa)&&e.algorithm!==f.default.read(f.default.publicKey,f.default.publicKey.eddsa)&&(!r.keyFlags||(r.keyFlags[0]&f.default.keyFlags.encrypt_communication)!==0||(r.keyFlags[0]&f.default.keyFlags.encrypt_storage)!==0)}function isValidDecryptionKeyPacket(e){if(!e.verified){throw new Error("Signature not verified")}if(l.default.allow_insecure_decryption_with_signing_keys){return true}return!e.keyFlags||(e.keyFlags[0]&f.default.keyFlags.encrypt_communication)!==0||(e.keyFlags[0]&f.default.keyFlags.encrypt_storage)!==0}},{"../config":94,"../crypto":109,"../enums":128,"../packet":146,"../util":173}],133:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.Key=n.createSignaturePacket=n.getPreferredHashAlgo=n.isAeadSupported=n.getPreferredAlgo=n.reformat=n.read=n.generate=n.readArmored=undefined;var t=e("./factory");var i=e("./helper");var a=e("./key.js");var s=_interopRequireDefault(a);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}n.readArmored=t.readArmored;n.generate=t.generate;n.read=t.read;n.reformat=t.reformat;n.getPreferredAlgo=i.getPreferredAlgo;n.isAeadSupported=i.isAeadSupported;n.getPreferredHashAlgo=i.getPreferredHashAlgo;n.createSignaturePacket=i.createSignaturePacket;n.Key=s.default},{"./factory":131,"./helper":132,"./key.js":134}],134:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.default=Key;var t=e("../encoding/armor");var i=_interopRequireDefault(t);var a=e("../packet");var s=_interopRequireDefault(a);var f=e("../enums");var c=_interopRequireDefault(f);var l=e("../util");var d=_interopRequireDefault(l);var o=e("./user");var u=_interopRequireDefault(o);var h=e("./subkey");var p=_interopRequireDefault(h);var v=e("./helper");var b=_interopRequireWildcard(v);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Key(e){if(!(this instanceof Key)){return new Key(e)}this.keyPacket=null;this.revocationSignatures=[];this.directSignatures=[];this.users=[];this.subKeys=[];this.packetlist2structure(e);if(!this.keyPacket||!this.users.length){throw new Error("Invalid key: need at least key and user ID packet")}}Object.defineProperty(Key.prototype,"primaryKey",{get(){return this.keyPacket},configurable:true,enumerable:true});Key.prototype.packetlist2structure=function(e){let r;let n;let t;for(let i=0;ie.concat(r.toPacketlist()));this.subKeys.map(r=>e.concat(r.toPacketlist()));return e};Key.prototype.getSubkeys=function(e=null){const r=[];this.subKeys.forEach(n=>{if(!e||n.getKeyId().equals(e,true)){r.push(n)}});return r};Key.prototype.getKeys=function(e=null){const r=[];if(!e||this.getKeyId().equals(e,true)){r.push(this)}return r.concat(this.getSubkeys(e))};Key.prototype.getKeyIds=function(){return this.getKeys().map(e=>e.getKeyId())};Key.prototype.getUserIds=function(){return this.users.map(e=>{return e.userId?e.userId.userid:null}).filter(e=>e!==null)};Key.prototype.isPublic=function(){return this.keyPacket.tag===c.default.packet.publicKey};Key.prototype.isPrivate=function(){return this.keyPacket.tag===c.default.packet.secretKey};Key.prototype.toPublic=function(){const e=new s.default.List;const r=this.toPacketlist();let n;let t;let i;for(let a=0;ar.keyPacket.created-e.keyPacket.created);let a;for(let n=0;nr.keyPacket.created-e.keyPacket.created);let a;for(let n=0;ne===true)};Key.prototype.validate=async function(){if(!this.isPrivate()){throw new Error("Cannot validate a public key")}let e;if(!this.primaryKey.isDummy()){e=this.primaryKey}else{const r=await this.getSigningKey(null,null);if(r&&!r.keyPacket.isDummy()){e=r.keyPacket}}if(e){return e.validate()}else{const e=this.getKeys();const r=e.map(e=>e.keyPacket.isDummy()).every(Boolean);if(r){throw new Error("Cannot validate an all-gnu-dummy key")}return Promise.all(e.map(async e=>e.keyPacket.validate()))}};Key.prototype.clearPrivateParams=function(){if(!this.isPrivate()){throw new Error("Can't clear private parameters of a public key")}this.getKeys().forEach(({keyPacket:e})=>{if(e.isDecrypted()){e.clearPrivateParams()}})};Key.prototype.isRevoked=async function(e,r,n=new Date){return b.isDataRevoked(this.keyPacket,c.default.signature.key_revocation,{key:this.keyPacket},this.revocationSignatures,e,r,n)};Key.prototype.verifyPrimaryKey=async function(e=new Date,r={}){const n=this.keyPacket;if(await this.isRevoked(null,null,e)){throw new Error("Primary key is revoked")}if(!this.users.some(e=>e.userId&&e.selfCertifications.length)){throw new Error("No self-certifications")}var t=await this.getPrimaryUser(e,r);const i=t.selfCertification;if(b.isDataExpired(n,i,e)){throw new Error("Primary key is expired")}};Key.prototype.getExpirationTime=async function(e,r,n){const t=await this.getPrimaryUser(null,n);const i=t.selfCertification;const a=b.getExpirationTime(this.keyPacket,i);const s=i.getExpirationTime();let f=a{})||await this.getEncryptionKey(r,null,n).catch(()=>{});if(!e)return null;const t=await e.getExpirationTime(this.keyPacket);if(t{})||await this.getSigningKey(r,null,n).catch(()=>{});if(!e)return null;const t=await e.getExpirationTime(this.keyPacket);if(t{return e.subKeys.some(e=>{return r.hasSameFingerprintAs(e)})});if(!r){throw new Error("Cannot update public key with private key if subkey mismatch")}this.keyPacket=e.keyPacket}await b.mergeSignatures(e,this,"revocationSignatures",r=>{return b.isDataRevoked(this.keyPacket,c.default.signature.key_revocation,this,[r],null,e.keyPacket)});await b.mergeSignatures(e,this,"directSignatures");await Promise.all(e.users.map(async e=>{let r=false;await Promise.all(this.users.map(async n=>{if(e.userId&&n.userId&&e.userId.userid===n.userId.userid||e.userAttribute&&e.userAttribute.equals(n.userAttribute)){await n.update(e,this.keyPacket);r=true}}));if(!r){this.users.push(e)}}));await Promise.all(e.subKeys.map(async e=>{let r=false;await Promise.all(this.subKeys.map(async n=>{if(n.hasSameFingerprintAs(e)){await n.update(e,this.keyPacket);r=true}}));if(!r){this.subKeys.push(e)}}))};Key.prototype.revoke=async function({flag:e=c.default.reasonForRevocation.no_reason,string:r=""}={},n=new Date){if(this.isPublic()){throw new Error("Need private key for revoking")}const t={key:this.keyPacket};const i=new Key(this.toPacketlist());i.revocationSignatures.push(await b.createSignaturePacket(t,null,this.keyPacket,{signatureType:c.default.signature.key_revocation,reasonForRevocationFlag:c.default.write(c.default.reasonForRevocation,e),reasonForRevocationString:r},n));return i};Key.prototype.getRevocationCertificate=async function(e=new Date){const r={key:this.keyPacket};const n=await b.getLatestValidSignature(this.revocationSignatures,this.keyPacket,c.default.signature.key_revocation,r,e);const t=new s.default.List;t.push(n);return i.default.encode(c.default.armor.public_key,t.write(),null,null,"This is a revocation certificate")};Key.prototype.applyRevocationCertificate=async function(e){const r=await i.default.decode(e);const n=new s.default.List;await n.read(r.data);const t=n.findPacket(c.default.packet.signature);if(!t||t.signatureType!==c.default.signature.key_revocation){throw new Error("Could not find revocation signature packet")}if(!t.issuerKeyId.equals(this.getKeyId())){throw new Error("Revocation signature does not match key")}if(t.isExpired()){throw new Error("Revocation signature is expired")}try{await t.verify(this.keyPacket,c.default.signature.key_revocation,{key:this.keyPacket})}catch(e){throw d.default.wrapError("Could not verify revocation signature",e)}const a=new Key(this.toPacketlist());a.revocationSignatures.push(t);return a};Key.prototype.signPrimaryUser=async function(e,r,n){var t=await this.getPrimaryUser(r,n);const i=t.index,a=t.user;const s=await a.sign(this.keyPacket,e);const f=new Key(this.toPacketlist());f.users[i]=s;return f};Key.prototype.signAllUsers=async function(e){const r=this;const n=new Key(this.toPacketlist());n.users=await Promise.all(this.users.map(function(n){return n.sign(r.keyPacket,e)}));return n};Key.prototype.verifyPrimaryUser=async function(e,r,n){const t=this.keyPacket;var i=await this.getPrimaryUser(r,n);const a=i.user;const s=e?await a.verifyAllCertifications(t,e):[{keyid:t.keyid,valid:await a.verify(t).catch(()=>false)}];return s};Key.prototype.verifyAllUsers=async function(e){const r=[];const n=this.keyPacket;await Promise.all(this.users.map(async function(t){const i=e?await t.verifyAllCertifications(n,e):[{keyid:n.keyid,valid:await t.verify(n).catch(()=>false)}];i.forEach(e=>{r.push({userid:t.userId.userid,keyid:e.keyid,valid:e.valid})})}));return r};Key.prototype.addSubkey=async function(e={}){if(!this.isPrivate()){throw new Error("Cannot add a subkey to a public key")}if(e.passphrase){throw new Error("Subkey could not be encrypted here, please encrypt whole key")}if(d.default.getWebCryptoAll()&&e.rsaBits<2048){throw new Error("When using webCrypto rsaBits should be 2048 or 4096, found: "+e.rsaBits)}const r=this.primaryKey;if(!r.isDecrypted()){throw new Error("Key is not decrypted")}const n=r.getAlgorithmInfo();e=b.sanitizeKeyOptions(e,n);const t=await b.generateSecretSubkey(e);const i=await b.createBindingSignature(t,r,e);const a=this.toPacketlist();a.push(t);a.push(i);return new Key(a)};["getKeyId","getFingerprint","getAlgorithmInfo","getCreationTime","isDecrypted","hasSameFingerprintAs"].forEach(e=>{Key.prototype[e]=p.default.prototype[e]})},{"../encoding/armor":126,"../enums":128,"../packet":146,"../util":173,"./helper":132,"./subkey":135,"./user":136}],135:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.default=SubKey;var t=e("../enums");var i=_interopRequireDefault(t);var a=e("./helper");var s=_interopRequireWildcard(a);var f=e("../packet");var c=_interopRequireDefault(f);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function SubKey(e){if(!(this instanceof SubKey)){return new SubKey(e)}this.keyPacket=e;this.bindingSignatures=[];this.revocationSignatures=[]}SubKey.prototype.toPacketlist=function(){const e=new c.default.List;e.push(this.keyPacket);e.concat(this.revocationSignatures);e.concat(this.bindingSignatures);return e};SubKey.prototype.isRevoked=async function(e,r,n,t=new Date){return s.isDataRevoked(e,i.default.signature.subkey_revocation,{key:e,bind:this.keyPacket},this.revocationSignatures,r,n,t)};SubKey.prototype.verify=async function(e,r=new Date){const n={key:e,bind:this.keyPacket};const t=await s.getLatestValidSignature(this.bindingSignatures,e,i.default.signature.subkey_binding,n,r);if(t.revoked||await this.isRevoked(e,t,null,r)){throw new Error("Subkey is revoked")}if(s.isDataExpired(this.keyPacket,t,r)){throw new Error("Subkey is expired")}};SubKey.prototype.getExpirationTime=async function(e,r=new Date){const n={key:e,bind:this.keyPacket};let t;try{t=await s.getLatestValidSignature(this.bindingSignatures,e,i.default.signature.subkey_binding,n,r)}catch(e){return null}const a=s.getExpirationTime(this.keyPacket,t);const f=t.getExpirationTime();return an.bindingSignatures[r].created){n.bindingSignatures[r]=e}return false}}try{return e.verified||await e.verify(r,i.default.signature.subkey_binding,t)}catch(e){return false}});await s.mergeSignatures(e,this,"revocationSignatures",function(e){return s.isDataRevoked(r,i.default.signature.subkey_revocation,t,[e])})};SubKey.prototype.revoke=async function(e,{flag:r=i.default.reasonForRevocation.no_reason,string:n=""}={},t=new Date){const a={key:e,bind:this.keyPacket};const f=new SubKey(this.keyPacket);f.revocationSignatures.push(await s.createSignaturePacket(a,null,e,{signatureType:i.default.signature.subkey_revocation,reasonForRevocationFlag:i.default.write(i.default.reasonForRevocation,r),reasonForRevocationString:n},t));await f.update(this,e);return f};["getKeyId","getFingerprint","getAlgorithmInfo","getCreationTime","isDecrypted"].forEach(e=>{SubKey.prototype[e]=function(){return this.keyPacket[e]()}});SubKey.prototype.hasSameFingerprintAs=function(e){return this.keyPacket.hasSameFingerprintAs(e.keyPacket||e)}},{"../enums":128,"../packet":146,"./helper":132}],136:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.default=User;var t=e("../enums");var i=_interopRequireDefault(t);var a=e("../util");var s=_interopRequireDefault(a);var f=e("../packet");var c=_interopRequireDefault(f);var l=e("./helper");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function User(e){if(!(this instanceof User)){return new User(e)}this.userId=e.tag===i.default.packet.userid?e:null;this.userAttribute=e.tag===i.default.packet.userAttribute?e:null;this.selfCertifications=[];this.otherCertifications=[];this.revocationSignatures=[]}User.prototype.toPacketlist=function(){const e=new c.default.List;e.push(this.userId||this.userAttribute);e.concat(this.revocationSignatures);e.concat(this.selfCertifications);e.concat(this.otherCertifications);return e};User.prototype.sign=async function(e,r){const n={userId:this.userId,userAttribute:this.userAttribute,key:e};const t=new User(n.userId||n.userAttribute);t.otherCertifications=await Promise.all(r.map(async function(r){if(r.isPublic()){throw new Error("Need private key for signing")}if(r.hasSameFingerprintAs(e)){throw new Error("Not implemented for self signing")}const t=await r.getSigningKey();return(0,l.createSignaturePacket)(n,r,t.keyPacket,{signatureType:i.default.signature.cert_generic,keyFlags:[i.default.keyFlags.certify_keys|i.default.keyFlags.sign_data]})}));await t.update(this,e);return t};User.prototype.isRevoked=async function(e,r,n,t=new Date){return(0,l.isDataRevoked)(e,i.default.signature.cert_revocation,{key:e,userId:this.userId,userAttribute:this.userAttribute},this.revocationSignatures,r,n,t)};User.prototype.verifyCertificate=async function(e,r,n,t=new Date){const a=this;const f=r.issuerKeyId;const c={userId:this.userId,userAttribute:this.userAttribute,key:e};const l=await Promise.all(n.map(async function(n){if(!n.getKeyIds().some(e=>e.equals(f))){return null}const l=await n.getSigningKey(f,t);if(r.revoked||await a.isRevoked(e,r,l.keyPacket,t)){throw new Error("User certificate is revoked")}try{r.verified||await r.verify(l.keyPacket,i.default.signature.cert_generic,c)}catch(e){throw s.default.wrapError("User certificate is invalid",e)}if(r.isExpired(t)){throw new Error("User certificate is expired")}return true}));return l.find(e=>e!==null)||null};User.prototype.verifyAllCertifications=async function(e,r,n=new Date){const t=this;const i=this.selfCertifications.concat(this.otherCertifications);return Promise.all(i.map(async function(i){return{keyid:i.issuerKeyId,valid:await t.verifyCertificate(e,i,r,n).catch(()=>false)}}))};User.prototype.verify=async function(e,r=new Date){if(!this.selfCertifications.length){throw new Error("No self-certifications")}const n=this;const t={userId:this.userId,userAttribute:this.userAttribute,key:e};let a;for(let f=this.selfCertifications.length-1;f>=0;f--){try{const c=this.selfCertifications[f];if(c.revoked||await n.isRevoked(e,c,undefined,r)){throw new Error("Self-certification is revoked")}try{c.verified||await c.verify(e,i.default.signature.cert_generic,t)}catch(e){throw s.default.wrapError("Self-certification is invalid",e)}if(c.isExpired(r)){throw new Error("Self-certification is expired")}return true}catch(e){a=e}}throw a};User.prototype.update=async function(e,r){const n={userId:this.userId,userAttribute:this.userAttribute,key:r};await(0,l.mergeSignatures)(e,this,"selfCertifications",async function(e){try{return e.verified||e.verify(r,i.default.signature.cert_generic,n)}catch(e){return false}});await(0,l.mergeSignatures)(e,this,"otherCertifications");await(0,l.mergeSignatures)(e,this,"revocationSignatures",function(e){return(0,l.isDataRevoked)(r,i.default.signature.cert_revocation,n,[e])})}},{"../enums":128,"../packet":146,"../util":173,"./helper":132}],137:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("./keyring.js");var i=_interopRequireDefault(t);var a=e("./localstore.js");var s=_interopRequireDefault(a);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}i.default.localstore=s.default;n.default=i.default},{"./keyring.js":138,"./localstore.js":139}],138:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("../key");var i=e("./localstore");var a=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Keyring(e){this.storeHandler=e||new a.default}Keyring.prototype.load=async function(){this.publicKeys=new KeyArray(await this.storeHandler.loadPublic());this.privateKeys=new KeyArray(await this.storeHandler.loadPrivate())};Keyring.prototype.store=async function(){await Promise.all([this.storeHandler.storePublic(this.publicKeys.keys),this.storeHandler.storePrivate(this.privateKeys.keys)])};Keyring.prototype.clear=function(){this.publicKeys.keys=[];this.privateKeys.keys=[]};Keyring.prototype.getKeysForId=function(e,r){let n=[];n=n.concat(this.publicKeys.getForId(e,r)||[]);n=n.concat(this.privateKeys.getForId(e,r)||[]);return n.length?n:null};Keyring.prototype.removeKeysForId=function(e){let r=[];r=r.concat(this.publicKeys.removeForId(e)||[]);r=r.concat(this.privateKeys.removeForId(e)||[]);return r.length?r:null};Keyring.prototype.getAllKeys=function(){return this.publicKeys.keys.concat(this.privateKeys.keys)};function KeyArray(e){this.keys=e}KeyArray.prototype.getForAddress=function(e){const r=[];for(let n=0;n");const i=r.getUserIds();for(let r=0;ri.default.readToEnd(e.armor())));e.setItem(r,JSON.stringify(t))}else{e.removeItem(r)}}n.default=LocalStore}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"../config":94,"../key":133,"../util":173,"node-localstorage":"node-localstorage","web-stream-tools":90}],140:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});const t=n.loadScript=(e=>{if(typeof importScripts!=="undefined"){return importScripts(e)}return new Promise((r,n)=>{const t=document.createElement("script");t.src=e;t.onload=(()=>r());t.onerror=(e=>n(new Error(e.message)));document.head.appendChild(t)})});const i=n.dl=async function dl(e,r){const n=await fetch(e,r);return n.arrayBuffer()}},{}],141:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.Message=Message;n.encryptSessionKey=encryptSessionKey;n.createSignaturePackets=createSignaturePackets;n.createVerificationObjects=createVerificationObjects;n.readArmored=readArmored;n.read=read;n.fromText=fromText;n.fromBinary=fromBinary;var t=e("web-stream-tools");var i=_interopRequireDefault(t);var a=e("./encoding/armor");var s=_interopRequireDefault(a);var f=e("./type/keyid");var c=_interopRequireDefault(f);var l=e("./config");var d=_interopRequireDefault(l);var o=e("./crypto");var u=_interopRequireDefault(o);var h=e("./enums");var p=_interopRequireDefault(h);var v=e("./util");var b=_interopRequireDefault(v);var y=e("./packet");var g=_interopRequireDefault(y);var w=e("./signature");var m=e("./key");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Message(e){if(!(this instanceof Message)){return new Message(e)}this.packets=e||new g.default.List}Message.prototype.getEncryptionKeyIds=function(){const e=[];const r=this.packets.filterByTag(p.default.packet.publicKeyEncryptedSessionKey);r.forEach(function(r){e.push(r.publicKeyId)});return e};Message.prototype.getSigningKeyIds=function(){const e=[];const r=this.unwrapCompressed();const n=r.packets.filterByTag(p.default.packet.onePassSignature);n.forEach(function(r){e.push(r.issuerKeyId)});if(!e.length){const n=r.packets.filterByTag(p.default.packet.signature);n.forEach(function(r){e.push(r.issuerKeyId)})}return e};Message.prototype.decrypt=async function(e,r,n,t){const a=n||await this.decryptSessionKeys(e,r);const s=this.packets.filterByTag(p.default.packet.symmetricallyEncrypted,p.default.packet.symEncryptedIntegrityProtected,p.default.packet.symEncryptedAEADProtected);if(s.length===0){return this}const f=s[0];let c=null;const l=Promise.all(a.map(async e=>{if(!e||!b.default.isUint8Array(e.data)||!b.default.isString(e.algorithm)){throw new Error("Invalid session key for decryption.")}try{await f.decrypt(e.algorithm,e.data,t)}catch(e){b.default.print_debug_error(e);c=e}}));i.default.cancel(f.encrypted);f.encrypted=null;await l;if(!f.packets||!f.packets.length){throw c||new Error("Decryption failed.")}const d=new Message(f.packets);f.packets=new g.default.List;return d};Message.prototype.decryptSessionKeys=async function(e,r){let n=[];let t;if(r){const e=this.packets.filterByTag(p.default.packet.symEncryptedSessionKey);if(!e){throw new Error("No symmetrically encrypted session key packet found.")}await Promise.all(r.map(async function(r,t){let i;if(t){i=new g.default.List;await i.read(e.write())}else{i=e}await Promise.all(i.map(async function(e){try{await e.decrypt(r);n.push(e)}catch(e){b.default.print_debug_error(e)}}))}))}else if(e){const r=this.packets.filterByTag(p.default.packet.publicKeyEncryptedSessionKey);if(!r){throw new Error("No public key encrypted session key packet found.")}await Promise.all(r.map(async function(r){await Promise.all(e.map(async function(e){let i=[p.default.symmetric.aes256,p.default.symmetric.aes128,p.default.symmetric.tripledes,p.default.symmetric.cast5];try{const r=await e.getPrimaryUser();if(r.selfCertification.preferredSymmetricAlgorithms){i=i.concat(r.selfCertification.preferredSymmetricAlgorithms)}}catch(e){}const a=(await e.getDecryptionKeys(r.publicKeyId,null)).map(e=>e.keyPacket);await Promise.all(a.map(async function(e){if(!e){return}if(!e.isDecrypted()){throw new Error("Private key is not decrypted.")}try{await r.decrypt(e);if(!i.includes(p.default.write(p.default.symmetric,r.sessionKeyAlgorithm))){throw new Error("A non-preferred symmetric algorithm was used.")}n.push(r)}catch(e){b.default.print_debug_error(e);t=e}}))}));i.default.cancel(r.encrypted);r.encrypted=null}))}else{throw new Error("No key or password specified.")}if(n.length){if(n.length>1){const e={};n=n.filter(function(r){const n=r.sessionKeyAlgorithm+b.default.Uint8Array_to_str(r.sessionKey);if(e.hasOwnProperty(n)){return false}e[n]=true;return true})}return n.map(e=>({data:e.sessionKey,algorithm:e.sessionKeyAlgorithm}))}throw t||new Error("Session key decryption failed.")};Message.prototype.getLiteralData=function(){const e=this.unwrapCompressed();const r=e.packets.findPacket(p.default.packet.literal);return r&&r.getBytes()||null};Message.prototype.getFilename=function(){const e=this.unwrapCompressed();const r=e.packets.findPacket(p.default.packet.literal);return r&&r.getFilename()||null};Message.prototype.getText=function(){const e=this.unwrapCompressed();const r=e.packets.findPacket(p.default.packet.literal);if(r){return r.getText()}return null};Message.prototype.encrypt=async function(e,r,n,t=false,i=new Date,a=[],s){let f;let c;let l;if(n){if(!b.default.isUint8Array(n.data)||!b.default.isString(n.algorithm)){throw new Error("Invalid session key for encryption.")}f=n.algorithm;c=n.aeadAlgorithm;n=n.data}else if(e&&e.length){f=p.default.read(p.default.symmetric,await(0,m.getPreferredAlgo)("symmetric",e,i,a));if(d.default.aead_protect&&await(0,m.isAeadSupported)(e,i,a)){c=p.default.read(p.default.aead,await(0,m.getPreferredAlgo)("aead",e,i,a))}}else if(r&&r.length){f=p.default.read(p.default.symmetric,d.default.encryption_cipher);c=p.default.read(p.default.aead,d.default.aead_mode)}else{throw new Error("No keys, passwords, or session key provided.")}if(!n){n=await u.default.generateSessionKey(f)}const o=await encryptSessionKey(n,f,c,e,r,t,i,a);if(d.default.aead_protect&&c){l=new g.default.SymEncryptedAEADProtected;l.aeadAlgorithm=c}else if(d.default.integrity_protect){l=new g.default.SymEncryptedIntegrityProtected}else{l=new g.default.SymmetricallyEncrypted}l.packets=this.packets;await l.encrypt(f,n,s);o.packets.push(l);l.packets=new g.default.List;return{message:o,sessionKey:{data:n,algorithm:f,aeadAlgorithm:c}}};async function encryptSessionKey(e,r,n,t,i,a=false,s=new Date,f=[]){const l=new g.default.List;if(t){const n=await Promise.all(t.map(async function(n){const t=await n.getEncryptionKey(undefined,s,f);const i=new g.default.PublicKeyEncryptedSessionKey;i.publicKeyId=a?c.default.wildcard():t.getKeyId();i.publicKeyAlgorithm=t.keyPacket.algorithm;i.sessionKey=e;i.sessionKeyAlgorithm=r;await i.encrypt(t.keyPacket);delete i.sessionKey;return i}));l.concat(n)}if(i){const t=async function testDecrypt(e,r){try{await e.decrypt(r);return 1}catch(e){return 0}};const a=(e,r)=>e+r;const s=async function encryptPassword(e,r,n,s){const f=new g.default.SymEncryptedSessionKey;f.sessionKey=e;f.sessionKeyAlgorithm=r;if(n){f.aeadAlgorithm=n}await f.encrypt(s);if(d.default.password_collision_check){const n=await Promise.all(i.map(e=>t(f,e)));if(n.reduce(a)!==1){return encryptPassword(e,r,s)}}delete f.sessionKey;return f};const f=await Promise.all(i.map(t=>s(e,r,n,t)));l.concat(f)}return new Message(l)}Message.prototype.sign=async function(e=[],r=null,n=new Date,t=[],i=false){const a=new g.default.List;const s=this.packets.findPacket(p.default.packet.literal);if(!s){throw new Error("No literal data packet to sign.")}let f;let c;const l=s.text===null?p.default.signature.binary:p.default.signature.text;if(r){c=r.packets.filterByTag(p.default.packet.signature);for(f=c.length-1;f>=0;f--){const r=c[f];const n=new g.default.OnePassSignature;n.signatureType=r.signatureType;n.hashAlgorithm=r.hashAlgorithm;n.publicKeyAlgorithm=r.publicKeyAlgorithm;n.issuerKeyId=r.issuerKeyId;if(!e.length&&f===0){n.flags=1}a.push(n)}}await Promise.all(Array.from(e).reverse().map(async function(r,i){if(r.isPublic()){throw new Error("Need private key for signing")}const a=await r.getSigningKey(undefined,n,t);const s=new g.default.OnePassSignature;s.signatureType=l;s.hashAlgorithm=await(0,m.getPreferredHashAlgo)(r,a.keyPacket,n,t);s.publicKeyAlgorithm=a.keyPacket.algorithm;s.issuerKeyId=a.getKeyId();if(i===e.length-1){s.flags=1}return s})).then(e=>{e.forEach(e=>a.push(e))});a.push(s);a.concat(await createSignaturePackets(s,e,r,n,t,false,i));return new Message(a)};Message.prototype.compress=function(e){if(e===p.default.compression.uncompressed){return this}const r=new g.default.Compressed;r.packets=this.packets;r.algorithm=p.default.read(p.default.compression,e);const n=new g.default.List;n.push(r);return new Message(n)};Message.prototype.signDetached=async function(e=[],r=null,n=new Date,t=[],i=false){const a=this.packets.findPacket(p.default.packet.literal);if(!a){throw new Error("No literal data packet to sign.")}return new w.Signature(await createSignaturePackets(a,e,r,n,t,true,i))};async function createSignaturePackets(e,r,n=null,t=new Date,i=[],a=false,s=false){const f=new g.default.List;const c=e.text===null?p.default.signature.binary:p.default.signature.text;await Promise.all(r.map(async(r,n)=>{const f=i[n];if(r.isPublic()){throw new Error("Need private key for signing")}const l=await r.getSigningKey(undefined,t,f);return(0,m.createSignaturePacket)(e,r,l.keyPacket,{signatureType:c},t,f,a,s)})).then(e=>{e.forEach(e=>f.push(e))});if(n){const e=n.packets.filterByTag(p.default.packet.signature);f.concat(e)}return f}Message.prototype.verify=async function(e,r=new Date,n){const t=this.unwrapCompressed();const a=t.packets.filterByTag(p.default.packet.literal);if(a.length!==1){throw new Error("Can only verify message with one literal data packet.")}if(!n){t.packets.concat(await i.default.readToEnd(t.packets.stream,e=>e))}const s=t.packets.filterByTag(p.default.packet.onePassSignature).reverse();const f=t.packets.filterByTag(p.default.packet.signature);if(n&&s.length&&!f.length&&t.packets.stream){await Promise.all(s.map(async e=>{e.correspondingSig=new Promise((r,n)=>{e.correspondingSigResolve=r;e.correspondingSigReject=n});e.signatureData=i.default.fromAsync(async()=>(await e.correspondingSig).signatureData);e.hashed=i.default.readToEnd(await e.hash(e.signatureType,a[0],undefined,false,n));e.hashed.catch(()=>{})}));t.packets.stream=i.default.transformPair(t.packets.stream,async(e,r)=>{const n=i.default.getReader(e);const t=i.default.getWriter(r);try{for(let e=0;e{r.correspondingSigReject(e)});await t.abort(e)}});return createVerificationObjects(s,a,e,r,false,n)}return createVerificationObjects(f,a,e,r,false,n)};Message.prototype.verifyDetached=function(e,r,n=new Date){const t=this.unwrapCompressed();const i=t.packets.filterByTag(p.default.packet.literal);if(i.length!==1){throw new Error("Can only verify message with one literal data packet.")}const a=e.packets;return createVerificationObjects(a,i,r,n,true)};async function createVerificationObject(e,r,n,t=new Date,i=false,a=false){let s=null;let f=null;await Promise.all(n.map(async function(r){try{f=await r.getSigningKey(e.issuerKeyId,null);s=r}catch(e){}}));const c=e.correspondingSig||e;const l={keyid:e.issuerKeyId,verified:(async()=>{if(!f){return null}const n=await e.verify(f.keyPacket,e.signatureType,r[0],i,a);const l=await c;if(l.isExpired(t)||!(l.created>=f.getCreationTime()&&l.created{const e=await c;const r=new g.default.List;r.push(e);return new w.Signature(r)})()};l.signature.catch(()=>{});l.verified.catch(()=>{});return l}async function createVerificationObjects(e,r,n,t=new Date,i=false,a=false){return Promise.all(e.filter(function(e){return["text","binary"].includes(p.default.read(p.default.signature,e.signatureType))}).map(async function(e){return createVerificationObject(e,r,n,t,i,a)}))}Message.prototype.unwrapCompressed=function(){const e=this.packets.filterByTag(p.default.packet.compressed);if(e.length){return new Message(e[0].packets)}return this};Message.prototype.appendSignature=async function(e){await this.packets.read(b.default.isUint8Array(e)?e:(await s.default.decode(e)).data)};Message.prototype.armor=function(){return s.default.encode(p.default.armor.message,this.packets.write())};async function readArmored(e){const r=b.default.isStream(e);if(r==="node"){e=i.default.nodeToWeb(e)}const n=await s.default.decode(e);return read(n.data,r)}async function read(e,r=b.default.isStream(e)){const n=b.default.isStream(e);if(n==="node"){e=i.default.nodeToWeb(e)}const t=new g.default.List;await t.read(e,r);const a=new Message(t);a.fromStream=r;return a}function fromText(e,r,n=new Date,t="utf8"){const a=b.default.isStream(e);if(a==="node"){e=i.default.nodeToWeb(e)}const s=new g.default.Literal(n);s.setText(e,t);if(r!==undefined){s.setFilename(r)}const f=new g.default.List;f.push(s);const c=new Message(f);c.fromStream=a;return c}function fromBinary(e,r,n=new Date,t="binary"){const a=b.default.isStream(e);if(!b.default.isUint8Array(e)&&!a){throw new Error("Data must be in the form of a Uint8Array or Stream")}if(a==="node"){e=i.default.nodeToWeb(e)}const s=new g.default.Literal(n);s.setBytes(e,t);if(r!==undefined){s.setFilename(r)}const f=new g.default.List;f.push(s);const c=new Message(f);c.fromStream=a;return c}},{"./config":94,"./crypto":109,"./encoding/armor":126,"./enums":128,"./key":133,"./packet":146,"./signature":166,"./type/keyid":169,"./util":173,"web-stream-tools":90}],142:[function(e,r,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.initWorker=initWorker;n.getWorker=getWorker;n.destroyWorker=destroyWorker;n.generateKey=generateKey;n.reformatKey=reformatKey;n.revokeKey=revokeKey;n.decryptKey=decryptKey;n.encryptKey=encryptKey;n.encrypt=encrypt;n.decrypt=decrypt;n.sign=sign;n.verify=verify;n.encryptSessionKey=encryptSessionKey;n.decryptSessionKeys=decryptSessionKeys;var t=e("web-stream-tools");var i=_interopRequireDefault(t);var a=e("./message");var s=_interopRequireWildcard(a);var f=e("./cleartext");var c=e("./key");var l=e("./config/config");var d=_interopRequireDefault(l);var o=e("./enums");var u=_interopRequireDefault(o);e("./polyfills");var h=e("./util");var p=_interopRequireDefault(h);var v=e("./worker/async_proxy");var b=_interopRequireDefault(v);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let y;async function initWorker({path:e="openpgp.worker.js",n:n=1,workers:t=[]}={}){if(t.length||typeof r!=="undefined"&&r.Worker&&r.MessageChannel){const r=new b.default({path:e,n:n,workers:t,config:d.default});const i=await r.loaded();if(i){y=r;return true}}return false}function getWorker(){return y}async function destroyWorker(){const e=y;y=undefined;if(e){await e.clearKeyCache();e.terminate()}}function generateKey({userIds:e=[],passphrase:r="",numBits:n=2048,rsaBits:t=n,keyExpirationTime:i=0,curve:a="",date:s=new Date,subkeys:f=[{}]}){e=toArray(e);const l={userIds:e,passphrase:r,rsaBits:t,keyExpirationTime:i,curve:a,date:s,subkeys:f};if(p.default.getWebCryptoAll()&&t<2048){throw new Error("rsaBits should be 2048 or 4096, found: "+t)}if(!p.default.getWebCryptoAll()&&y){return y.delegate("generateKey",l)}return(0,c.generate)(l).then(async e=>{const r=await e.getRevocationCertificate(s);e.revocationSignatures=[];return convertStreams({key:e,privateKeyArmored:e.armor(),publicKeyArmored:e.toPublic().armor(),revocationCertificate:r})}).catch(onError.bind(null,"Error generating keypair"))}function reformatKey({privateKey:e,userIds:r=[],passphrase:n="",keyExpirationTime:t=0,date:i}){r=toArray(r);const a={privateKey:e,userIds:r,passphrase:n,keyExpirationTime:t,date:i};if(y){return y.delegate("reformatKey",a)}return(0,c.reformat)(a).then(async e=>{const r=await e.getRevocationCertificate(i);e.revocationSignatures=[];return convertStreams({key:e,privateKeyArmored:e.armor(),publicKeyArmored:e.toPublic().armor(),revocationCertificate:r})}).catch(onError.bind(null,"Error reformatting keypair"))}function revokeKey({key:e,revocationCertificate:r,reasonForRevocation:n}={}){const t={key:e,revocationCertificate:r,reasonForRevocation:n};if(!p.default.getWebCryptoAll()&&y){return y.delegate("revokeKey",t)}return Promise.resolve().then(()=>{if(r){return e.applyRevocationCertificate(r)}else{return e.revoke(n)}}).then(async e=>{await convertStreams(e);if(e.isPrivate()){const r=e.toPublic();return{privateKey:e,privateKeyArmored:e.armor(),publicKey:r,publicKeyArmored:r.armor()}}return{publicKey:e,publicKeyArmored:e.armor()}}).catch(onError.bind(null,"Error revoking key"))}function decryptKey({privateKey:e,passphrase:r}){if(y){return y.delegate("decryptKey",{privateKey:e,passphrase:r})}return Promise.resolve().then(async function(){await e.decrypt(r);return{key:e}}).catch(onError.bind(null,"Error decrypting private key"))}function encryptKey({privateKey:e,passphrase:r}){if(y){return y.delegate("encryptKey",{privateKey:e,passphrase:r})}return Promise.resolve().then(async function(){await e.encrypt(r);return{key:e}}).catch(onError.bind(null,"Error decrypting private key"))}function encrypt({message:e,publicKeys:r,privateKeys:n,passwords:t,sessionKey:i,compression:a=d.default.compression,armor:s=true,streaming:f=e&&e.fromStream,detached:c=false,signature:l=null,returnSessionKey:o=false,wildcard:u=false,date:h=new Date,fromUserIds:p=[],toUserIds:v=[]}){checkMessage(e);r=toArray(r);n=toArray(n);t=toArray(t);p=toArray(p);v=toArray(v);if(!nativeAEAD()&&y){return y.delegate("encrypt",{message:e,publicKeys:r,privateKeys:n,passwords:t,sessionKey:i,compression:a,armor:s,streaming:f,detached:c,signature:l,returnSessionKey:o,wildcard:u,date:h,fromUserIds:p,toUserIds:v})}const b={};return Promise.resolve().then(async function(){if(!n){n=[]}if(n.length||l){if(c){const r=await e.signDetached(n,l,h,p,e.fromStream);b.signature=s?r.armor():r}else{e=await e.sign(n,l,h,p,e.fromStream)}}e=e.compress(a);return e.encrypt(r,t,i,u,h,v,f)}).then(async e=>{if(s){b.data=e.message.armor()}else{b.message=e.message}if(o){b.sessionKey=e.sessionKey}return convertStreams(b,f,s?["signature","data"]:[])}).catch(onError.bind(null,"Error encrypting message"))}function decrypt({message:e,privateKeys:r,passwords:n,sessionKeys:t,publicKeys:i,format:a="utf8",streaming:s=e&&e.fromStream,signature:f=null,date:c=new Date}){checkMessage(e);i=toArray(i);r=toArray(r);n=toArray(n);t=toArray(t);if(!nativeAEAD()&&y){return y.delegate("decrypt",{message:e,privateKeys:r,passwords:n,sessionKeys:t,publicKeys:i,format:a,streaming:s,signature:f,date:c})}return e.decrypt(r,n,t,s).then(async function(r){if(!i){i=[]}const n={};n.signatures=f?await r.verifyDetached(f,i,c,s):await r.verify(i,c,s);n.data=a==="binary"?r.getLiteralData():r.getText();n.filename=r.getFilename();if(s)linkStreams(n,e);n.data=await convertStream(n.data,s);if(!s)await prepareSignatures(n.signatures);return n}).catch(onError.bind(null,"Error decrypting message"))}function sign({message:e,privateKeys:r,armor:n=true,streaming:t=e&&e.fromStream,detached:a=false,date:s=new Date,fromUserIds:f=[]}){checkCleartextOrMessage(e);r=toArray(r);f=toArray(f);if(y){return y.delegate("sign",{message:e,privateKeys:r,armor:n,streaming:t,detached:a,date:s,fromUserIds:f})}const c={};return Promise.resolve().then(async function(){if(a){const t=await e.signDetached(r,undefined,s,f,e.fromStream);c.signature=n?t.armor():t;if(e.packets){c.signature=i.default.transformPair(e.packets.write(),async(e,r)=>{await Promise.all([i.default.pipe(c.signature,r),i.default.readToEnd(e).catch(()=>{})])})}}else{e=await e.sign(r,undefined,s,f,e.fromStream);if(n){c.data=e.armor()}else{c.message=e}}return convertStreams(c,t,n?["signature","data"]:[])}).catch(onError.bind(null,"Error signing cleartext message"))}function verify({message:e,publicKeys:r,streaming:n=e&&e.fromStream,signature:t=null,date:i=new Date}){checkCleartextOrMessage(e);r=toArray(r);if(y){return y.delegate("verify",{message:e,publicKeys:r,streaming:n,signature:t,date:i})}return Promise.resolve().then(async function(){const a={};a.signatures=t?await e.verifyDetached(t,r,i,n):await e.verify(r,i,n);a.data=e instanceof f.CleartextMessage?e.getText():e.getLiteralData();if(n)linkStreams(a,e);a.data=await convertStream(a.data,n);if(!n)await prepareSignatures(a.signatures);return a}).catch(onError.bind(null,"Error verifying cleartext signed message"))}function encryptSessionKey({data:e,algorithm:r,aeadAlgorithm:n,publicKeys:t,passwords:i,wildcard:a=false,date:f=new Date,toUserIds:c=[]}){checkBinary(e);checkString(r,"algorithm");t=toArray(t);i=toArray(i);c=toArray(c);if(y){return y.delegate("encryptSessionKey",{data:e,algorithm:r,aeadAlgorithm:n,publicKeys:t,passwords:i,wildcard:a,date:f,toUserIds:c})}return Promise.resolve().then(async function(){return{message:await s.encryptSessionKey(e,r,n,t,i,a,f,c)}}).catch(onError.bind(null,"Error encrypting session key"))}function decryptSessionKeys({message:e,privateKeys:r,passwords:n}){checkMessage(e);r=toArray(r);n=toArray(n);if(y){return y.delegate("decryptSessionKeys",{message:e,privateKeys:r,passwords:n})}return Promise.resolve().then(async function(){return e.decryptSessionKeys(r,n)}).catch(onError.bind(null,"Error decrypting session keys"))}function checkString(e,r){if(!p.default.isString(e)){throw new Error("Parameter ["+(r||"data")+"] must be of type String")}}function checkBinary(e,r){if(!p.default.isUint8Array(e)){throw new Error("Parameter ["+(r||"data")+"] must be of type Uint8Array")}}function checkMessage(e){if(!(e instanceof s.Message)){throw new Error("Parameter [message] needs to be of type Message")}}function checkCleartextOrMessage(e){if(!(e instanceof f.CleartextMessage)&&!(e instanceof s.Message)){throw new Error("Parameter [message] needs to be of type Message or CleartextMessage")}}function toArray(e){if(e&&!p.default.isArray(e)){e=[e]}return e}async function convertStream(e,r){if(!r&&p.default.isStream(e)){return i.default.readToEnd(e)}if(r&&!p.default.isStream(e)){e=new ReadableStream({start(r){r.enqueue(e);r.close()}})}if(r==="node"){e=i.default.webToNode(e)}return e}async function convertStreams(e,r,n=[]){if(Object.prototype.isPrototypeOf(e)&&!Uint8Array.prototype.isPrototypeOf(e)){await Promise.all(Object.entries(e).map(async([t,i])=>{if(p.default.isStream(i)||n.includes(t)){e[t]=await convertStream(i,r)}else{await convertStreams(e[t],r)}}))}return e}function linkStreams(e,r){e.data=i.default.transformPair(r.packets.stream,async(r,n)=>{await i.default.pipe(e.data,n)})}async function prepareSignatures(e){await Promise.all(e.map(async e=>{e.signature=await e.signature;try{e.valid=await e.verified}catch(r){e.valid=false;e.error=r;p.default.print_debug_error(r)}}))}function onError(e,r){p.default.print_debug_error(r);try{r.message=e+": "+r.message}catch(e){}throw r}function nativeAEAD(){return d.default.aead_protect&&(d.default.aead_mode===u.default.aead.eax||d.default.aead_mode===u.default.aead.experimental_gcm)&&p.default.getWebCrypto()}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./cleartext":92,"./config/config":93,"./enums":128,"./key":133,"./message":141,"./polyfills":165,"./util":173,"./worker/async_proxy":175,"web-stream-tools":90}],143:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.Trust=n.Signature=n.SecretSubkey=n.Userid=n.SecretKey=n.OnePassSignature=n.UserAttribute=n.PublicSubkey=n.Marker=n.SymmetricallyEncrypted=n.PublicKey=n.Literal=n.SymEncryptedSessionKey=n.PublicKeyEncryptedSessionKey=n.SymEncryptedAEADProtected=n.SymEncryptedIntegrityProtected=n.Compressed=undefined;var t=e("./compressed.js");Object.defineProperty(n,"Compressed",{enumerable:true,get:function get(){return _interopRequireDefault(t).default}});var i=e("./sym_encrypted_integrity_protected.js");Object.defineProperty(n,"SymEncryptedIntegrityProtected",{enumerable:true,get:function get(){return _interopRequireDefault(i).default}});var a=e("./sym_encrypted_aead_protected.js");Object.defineProperty(n,"SymEncryptedAEADProtected",{enumerable:true,get:function get(){return _interopRequireDefault(a).default}});var s=e("./public_key_encrypted_session_key.js");Object.defineProperty(n,"PublicKeyEncryptedSessionKey",{enumerable:true,get:function get(){return _interopRequireDefault(s).default}});var f=e("./sym_encrypted_session_key.js");Object.defineProperty(n,"SymEncryptedSessionKey",{enumerable:true,get:function get(){return _interopRequireDefault(f).default}});var c=e("./literal.js");Object.defineProperty(n,"Literal",{enumerable:true,get:function get(){return _interopRequireDefault(c).default}});var l=e("./public_key.js");Object.defineProperty(n,"PublicKey",{enumerable:true,get:function get(){return _interopRequireDefault(l).default}});var d=e("./symmetrically_encrypted.js");Object.defineProperty(n,"SymmetricallyEncrypted",{enumerable:true,get:function get(){return _interopRequireDefault(d).default}});var o=e("./marker.js");Object.defineProperty(n,"Marker",{enumerable:true,get:function get(){return _interopRequireDefault(o).default}});var u=e("./public_subkey.js");Object.defineProperty(n,"PublicSubkey",{enumerable:true,get:function get(){return _interopRequireDefault(u).default}});var h=e("./user_attribute.js");Object.defineProperty(n,"UserAttribute",{enumerable:true,get:function get(){return _interopRequireDefault(h).default}});var p=e("./one_pass_signature.js");Object.defineProperty(n,"OnePassSignature",{enumerable:true,get:function get(){return _interopRequireDefault(p).default}});var v=e("./secret_key.js");Object.defineProperty(n,"SecretKey",{enumerable:true,get:function get(){return _interopRequireDefault(v).default}});var b=e("./userid.js");Object.defineProperty(n,"Userid",{enumerable:true,get:function get(){return _interopRequireDefault(b).default}});var y=e("./secret_subkey.js");Object.defineProperty(n,"SecretSubkey",{enumerable:true,get:function get(){return _interopRequireDefault(y).default}});var g=e("./signature.js");Object.defineProperty(n,"Signature",{enumerable:true,get:function get(){return _interopRequireDefault(g).default}});var w=e("./trust.js");Object.defineProperty(n,"Trust",{enumerable:true,get:function get(){return _interopRequireDefault(w).default}});n.newPacketFromTag=newPacketFromTag;n.fromStructuredClone=fromStructuredClone;var m=e("../enums.js");var A=_interopRequireDefault(m);var E=e("./all_packets.js");var S=_interopRequireWildcard(E);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function newPacketFromTag(e){return new(S[packetClassFromTagName(e)])}function fromStructuredClone(e){const r=A.default.read(A.default.packet,e.tag);const n=newPacketFromTag(r);Object.assign(n,e);if(n.postCloneTypeFix){n.postCloneTypeFix()}return n}function packetClassFromTagName(e){return e.substr(0,1).toUpperCase()+e.substr(1)}},{"../enums.js":128,"./all_packets.js":143,"./compressed.js":145,"./literal.js":147,"./marker.js":148,"./one_pass_signature.js":149,"./public_key.js":152,"./public_key_encrypted_session_key.js":153,"./public_subkey.js":154,"./secret_key.js":155,"./secret_subkey.js":156,"./signature.js":157,"./sym_encrypted_aead_protected.js":158,"./sym_encrypted_integrity_protected.js":159,"./sym_encrypted_session_key.js":160,"./symmetrically_encrypted.js":161,"./trust.js":162,"./user_attribute.js":163,"./userid.js":164}],144:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.clonePackets=clonePackets;n.parseClonedPackets=parseClonedPackets;var t=e("web-stream-tools");var i=_interopRequireDefault(t);var a=e("../key");var s=e("../message");var f=e("../cleartext");var c=e("../signature");var l=e("./packetlist");var d=_interopRequireDefault(l);var o=e("../type/keyid");var u=_interopRequireDefault(o);var h=e("../util");var p=_interopRequireDefault(h);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function clonePackets(e){if(e.publicKeys){e.publicKeys=e.publicKeys.map(e=>e.toPacketlist())}if(e.privateKeys){e.privateKeys=e.privateKeys.map(e=>e.toPacketlist())}if(e.publicKey){e.publicKey=e.publicKey.toPacketlist()}if(e.privateKey){e.privateKey=e.privateKey.toPacketlist()}if(e.key){e.key=e.key.toPacketlist()}if(e.message){if(e.message instanceof s.Message){e.message={packets:e.message.packets,fromStream:e.message.fromStream}}else if(e.message instanceof f.CleartextMessage){e.message={text:e.message.text,signature:e.message.signature.packets}}}if(e.signature&&e.signature instanceof c.Signature){e.signature=e.signature.packets}if(e.signatures){e.signatures.forEach(verificationObjectToClone)}return e}function verificationObjectToClone(e){const r=e.verified;e.verified=i.default.fromAsync(()=>r);if(e.signature instanceof Promise){const n=e.signature;e.signature=i.default.fromAsync(async()=>{const e=(await n).packets;try{await r}catch(e){}if(e&&e[0]){delete e[0].signature;delete e[0].hashed}return e})}else{e.signature=e.signature.packets}if(e.error){e.error=e.error.message}return e}function parseClonedPackets(e){if(e.publicKeys){e.publicKeys=e.publicKeys.map(packetlistCloneToKey)}if(e.privateKeys){e.privateKeys=e.privateKeys.map(packetlistCloneToKey)}if(e.publicKey){e.publicKey=packetlistCloneToKey(e.publicKey)}if(e.privateKey){e.privateKey=packetlistCloneToKey(e.privateKey)}if(e.key){e.key=packetlistCloneToKey(e.key)}if(e.message&&e.message.signature){e.message=packetlistCloneToCleartextMessage(e.message)}else if(e.message){e.message=packetlistCloneToMessage(e.message)}if(e.signatures){e.signatures=e.signatures.map(packetlistCloneToSignatures)}if(e.signature){e.signature=packetlistCloneToSignature(e.signature)}return e}function packetlistCloneToKey(e){const r=d.default.fromStructuredClone(e);return new a.Key(r)}function packetlistCloneToMessage(e){const r=d.default.fromStructuredClone(e.packets);const n=new s.Message(r);n.fromStream=e.fromStream;return n}function packetlistCloneToCleartextMessage(e){const r=d.default.fromStructuredClone(e.signature);return new f.CleartextMessage(e.text,new c.Signature(r))}function packetlistCloneToSignatures(e){e.keyid=u.default.fromClone(e.keyid);if(p.default.isStream(e.signature)){e.signature=i.default.readToEnd(e.signature,([e])=>new c.Signature(d.default.fromStructuredClone(e)));e.signature.catch(()=>{})}else{e.signature=new c.Signature(d.default.fromStructuredClone(e.signature))}e.verified=i.default.readToEnd(e.verified,([e])=>e);e.verified.catch(()=>{});if(e.error){e.error=new Error(e.error)}return e}function packetlistCloneToSignature(e){if(p.default.isString(e)||p.default.isStream(e)){return e}const r=d.default.fromStructuredClone(e);return new c.Signature(r)}},{"../cleartext":92,"../key":133,"../message":141,"../signature":166,"../type/keyid":169,"../util":173,"./packetlist":151,"web-stream-tools":90}],145:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("pako");var i=_interopRequireDefault(t);var a=e("seek-bzip");var s=_interopRequireDefault(a);var f=e("web-stream-tools");var c=_interopRequireDefault(f);var l=e("../config");var d=_interopRequireDefault(l);var o=e("../enums");var u=_interopRequireDefault(o);var h=e("../util");var p=_interopRequireDefault(h);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Compressed(){this.tag=u.default.packet.compressed;this.packets=null;this.algorithm="zip";this.compressed=null}Compressed.prototype.read=async function(e,r){await c.default.parse(e,async e=>{this.algorithm=u.default.read(u.default.compression,await e.readByte());this.compressed=e.remainder();await this.decompress(r)})};Compressed.prototype.write=function(){if(this.compressed===null){this.compress()}return p.default.concat([new Uint8Array([u.default.write(u.default.compression,this.algorithm)]),this.compressed])};Compressed.prototype.decompress=async function(e){if(!y[this.algorithm]){throw new Error(this.algorithm+" decompression not supported")}await this.packets.read(y[this.algorithm](this.compressed),e)};Compressed.prototype.compress=function(){if(!b[this.algorithm]){throw new Error(this.algorithm+" compression not supported")}this.compressed=b[this.algorithm](this.packets.write())};n.default=Compressed;const v=p.default.getNodeZlib();function uncompressed(e){return e}function node_zlib(e,r={}){return function(n){return c.default.nodeToWeb(c.default.webToNode(n).pipe(e(r)))}}function pako_zlib(e,r={}){return function(n){const t=new e(r);return c.default.transform(n,e=>{if(e.length){t.push(e,i.default.Z_SYNC_FLUSH);return t.result}},()=>{if(e===i.default.Deflate){t.push([],i.default.Z_FINISH);return t.result}})}}function bzip2(e){return function(r){return c.default.fromAsync(async()=>e(await c.default.readToEnd(r)))}}let b;let y;if(v){b={zip:node_zlib(v.createDeflateRaw,{level:d.default.deflate_level}),zlib:node_zlib(v.createDeflate,{level:d.default.deflate_level})};y={uncompressed:uncompressed,zip:node_zlib(v.createInflateRaw),zlib:node_zlib(v.createInflate),bzip2:bzip2(s.default.decode)}}else{b={zip:pako_zlib(i.default.Deflate,{raw:true,level:d.default.deflate_level}),zlib:pako_zlib(i.default.Deflate,{level:d.default.deflate_level})};y={uncompressed:uncompressed,zip:pako_zlib(i.default.Inflate,{raw:true}),zlib:pako_zlib(i.default.Inflate),bzip2:bzip2(s.default.decode)}}},{"../config":94,"../enums":128,"../util":173,pako:64,"seek-bzip":83,"web-stream-tools":90}],146:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("./all_packets");var i=_interopRequireWildcard(t);var a=e("./clone");var s=_interopRequireWildcard(a);var f=e("./packetlist");var c=_interopRequireDefault(f);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}const l={List:c.default,clone:s};Object.assign(l,i);n.default=l},{"./all_packets":143,"./clone":144,"./packetlist":151}],147:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("web-stream-tools");var i=_interopRequireDefault(t);var a=e("../enums");var s=_interopRequireDefault(a);var f=e("../util");var c=_interopRequireDefault(f);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Literal(e=new Date){this.tag=s.default.packet.literal;this.format="utf8";this.date=c.default.normalizeDate(e);this.text=null;this.data=null;this.filename="msg.txt"}Literal.prototype.setText=function(e,r="utf8"){this.format=r;this.text=e;this.data=null};Literal.prototype.getText=function(e=false){if(this.text===null||c.default.isStream(this.text)){this.text=c.default.decode_utf8(c.default.nativeEOL(this.getBytes(e)))}return this.text};Literal.prototype.setBytes=function(e,r){this.format=r;this.data=e;this.text=null};Literal.prototype.getBytes=function(e=false){if(this.data===null){this.data=c.default.canonicalizeEOL(c.default.encode_utf8(this.text))}if(e){return i.default.passiveClone(this.data)}return this.data};Literal.prototype.setFilename=function(e){this.filename=e};Literal.prototype.getFilename=function(){return this.filename};Literal.prototype.read=async function(e){await i.default.parse(e,async e=>{const r=s.default.read(s.default.literal,await e.readByte());const n=await e.readByte();this.filename=c.default.decode_utf8(await e.readBytes(n));this.date=c.default.readDate(await e.readBytes(4));const t=e.remainder();this.setBytes(t,r)})};Literal.prototype.writeHeader=function(){const e=c.default.encode_utf8(this.filename);const r=new Uint8Array([e.length]);const n=new Uint8Array([s.default.write(s.default.literal,this.format)]);const t=c.default.writeDate(this.date);return c.default.concatUint8Array([n,r,e,t])};Literal.prototype.write=function(){const e=this.writeHeader();const r=this.getBytes();return c.default.concat([e,r])};n.default=Literal},{"../enums":128,"../util":173,"web-stream-tools":90}],148:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("../enums");var i=_interopRequireDefault(t);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Marker(){this.tag=i.default.packet.marker}Marker.prototype.read=function(e){if(e[0]===80&&e[1]===71&&e[2]===80){return true}return false};n.default=Marker},{"../enums":128}],149:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("web-stream-tools");var i=_interopRequireDefault(t);var a=e("./signature");var s=_interopRequireDefault(a);var f=e("../type/keyid");var c=_interopRequireDefault(f);var l=e("../enums");var d=_interopRequireDefault(l);var o=e("../util");var u=_interopRequireDefault(o);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function OnePassSignature(){this.tag=d.default.packet.onePassSignature;this.version=null;this.signatureType=null;this.hashAlgorithm=null;this.publicKeyAlgorithm=null;this.issuerKeyId=null;this.flags=null}OnePassSignature.prototype.read=function(e){let r=0;this.version=e[r++];this.signatureType=e[r++];this.hashAlgorithm=e[r++];this.publicKeyAlgorithm=e[r++];this.issuerKeyId=new c.default;this.issuerKeyId.read(e.subarray(r,r+8));r+=8;this.flags=e[r++];return this};OnePassSignature.prototype.write=function(){const e=new Uint8Array([3,d.default.write(d.default.signature,this.signatureType),d.default.write(d.default.hash,this.hashAlgorithm),d.default.write(d.default.publicKey,this.publicKeyAlgorithm)]);const r=new Uint8Array([this.flags]);return u.default.concatUint8Array([e,this.issuerKeyId.write(),r])};OnePassSignature.prototype.postCloneTypeFix=function(){this.issuerKeyId=c.default.fromClone(this.issuerKeyId)};OnePassSignature.prototype.hash=s.default.prototype.hash;OnePassSignature.prototype.toHash=s.default.prototype.toHash;OnePassSignature.prototype.toSign=s.default.prototype.toSign;OnePassSignature.prototype.calculateTrailer=function(...e){return i.default.fromAsync(async()=>s.default.prototype.calculateTrailer.apply(await this.correspondingSig,e))};OnePassSignature.prototype.verify=async function(){const e=await this.correspondingSig;if(!e||e.tag!==d.default.packet.signature){throw new Error("Corresponding signature packet missing")}if(e.signatureType!==this.signatureType||e.hashAlgorithm!==this.hashAlgorithm||e.publicKeyAlgorithm!==this.publicKeyAlgorithm||!e.issuerKeyId.equals(this.issuerKeyId)){throw new Error("Corresponding signature packet does not match one-pass signature packet")}e.hashed=this.hashed;return e.verify.apply(e,arguments)};n.default=OnePassSignature},{"../enums":128,"../type/keyid":169,"../util":173,"./signature":157,"web-stream-tools":90}],150:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=function(){function sliceIterator(e,r){var n=[];var t=true;var i=false;var a=undefined;try{for(var s=e[Symbol.iterator](),f;!(t=(f=s.next()).done);t=true){n.push(f.value);if(r&&n.length===r)break}}catch(e){i=true;a=e}finally{try{if(!t&&s["return"])s["return"]()}finally{if(i)throw a}}return n}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return sliceIterator(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var i=e("web-stream-tools");var a=_interopRequireDefault(i);var s=e("../enums");var f=_interopRequireDefault(s);var c=e("../util");var l=_interopRequireDefault(c);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}n.default={readSimpleLength:function readSimpleLength(e){let r=0;let n;const i=e[0];if(i<192){var a=t(e,1);r=a[0];n=1}else if(i<255){r=(e[0]-192<<8)+e[1]+192;n=2}else if(i===255){r=l.default.readNumber(e.subarray(1,1+4));n=5}return{len:r,offset:n}},writeSimpleLength:function writeSimpleLength(e){if(e<192){return new Uint8Array([e])}else if(e>191&&e<8384){return new Uint8Array([(e-192>>8)+192,e-192&255])}return l.default.concatUint8Array([new Uint8Array([255]),l.default.writeNumber(e,4)])},writePartialLength:function writePartialLength(e){if(e<0||e>30){throw new Error("Partial Length power must be between 1 and 30")}return new Uint8Array([224+e])},writeTag:function writeTag(e){return new Uint8Array([192|e])},writeHeader:function writeHeader(e,r){return l.default.concatUint8Array([this.writeTag(e),this.writeSimpleLength(r)])},supportsStreaming:function supportsStreaming(e){return[f.default.packet.literal,f.default.packet.compressed,f.default.packet.symmetricallyEncrypted,f.default.packet.symEncryptedIntegrityProtected,f.default.packet.symEncryptedAEADProtected].includes(e)},read:async function read(e,r,n){const t=a.default.getReader(e);let i;let s;try{const e=await t.peekBytes(2);if(!e||e.length<2||(e[0]&128)===0){throw new Error("Error during parsing. This message / key probably does not conform to a valid OpenPGP format.")}const c=await t.readByte();let d=-1;let o=-1;let u;o=0;if((c&64)!==0){o=1}let h;if(o){d=c&63}else{d=(c&63)>>2;h=c&3}const p=this.supportsStreaming(d);let v=null;if(r&&p){const e=new TransformStream;i=a.default.getWriter(e.writable);v=e.readable;s=n({tag:d,packet:v})}else{v=[]}let b;do{if(!o){switch(h){case 0:u=await t.readByte();break;case 1:u=await t.readByte()<<8|await t.readByte();break;case 2:u=await t.readByte()<<24|await t.readByte()<<16|await t.readByte()<<8|await t.readByte();break;default:u=Infinity;break}}else{const e=await t.readByte();b=false;if(e<192){u=e}else if(e>=192&&e<224){u=(e-192<<8)+await t.readByte()+192}else if(e>223&&e<255){u=1<<(e&31);b=true;if(!p){throw new TypeError("This packet type does not support partial lengths.")}}else{u=await t.readByte()<<24|await t.readByte()<<16|await t.readByte()<<8|await t.readByte()}}if(u>0){let e=0;while(true){if(i)await i.ready;var f=await t.read();const r=f.done,n=f.value;if(r){if(u===Infinity)break;throw new Error("Unexpected end of packet")}const a=u===Infinity?n:n.subarray(0,u-e);if(i)await i.write(a);else v.push(a);e+=n.length;if(e>=u){t.unshift(n.subarray(u-e+n.length));break}}}}while(b);const y=await t.peekBytes(p?Infinity:2);if(i){await i.ready;await i.close()}else{v=l.default.concatUint8Array(v);await n({tag:d,packet:v})}return!y||!y.length}catch(e){if(i){await i.abort(e);return true}else{throw e}}finally{if(i){await s}t.releaseLock()}}}},{"../enums":128,"../util":173,"web-stream-tools":90}],151:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("web-stream-tools");var i=_interopRequireDefault(t);var a=e("./all_packets");var s=_interopRequireWildcard(a);var f=e("./packet");var c=_interopRequireDefault(f);var l=e("../config");var d=_interopRequireDefault(l);var o=e("../enums");var u=_interopRequireDefault(o);var h=e("../util");var p=_interopRequireDefault(h);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function List(){this.length=0}List.prototype=[];List.prototype.read=async function(e,r){this.stream=i.default.transformPair(e,async(e,n)=>{const t=i.default.getWriter(n);try{while(true){await t.ready;const n=await c.default.read(e,r,async e=>{try{const n=u.default.read(u.default.packet,e.tag);const i=s.newPacketFromTag(n);i.packets=new List;i.fromStream=p.default.isStream(e.packet);await i.read(e.packet,r);await t.write(i)}catch(r){if(!d.default.tolerant||c.default.supportsStreaming(e.tag)){await t.abort(r)}p.default.print_debug_error(r)}});if(n){await t.ready;await t.close();return}}}catch(e){await t.abort(e)}});const n=i.default.getReader(this.stream);while(true){var t=await n.read();const e=t.done,r=t.value;if(!e){this.push(r)}else{this.stream=null}if(e||c.default.supportsStreaming(r.tag)){break}}n.releaseLock()};List.prototype.write=function(){const e=[];for(let r=0;r{t.push(e);a+=e.length;if(a>=s){const e=Math.min(Math.log(a)/Math.LN2|0,30);const r=2**e;const n=p.default.concat([c.default.writePartialLength(e)].concat(t));t=[n.subarray(1+r)];a=t[0].length;return n.subarray(0,1+r)}},()=>p.default.concat([c.default.writeSimpleLength(a)].concat(t))))}else{if(p.default.isStream(n)){let t=0;e.push(i.default.transform(i.default.clone(n),e=>{t+=e.length},()=>c.default.writeHeader(this[r].tag,t)))}else{e.push(c.default.writeHeader(this[r].tag,n.length))}e.push(n)}}return p.default.concat(e)};List.prototype.push=function(e){if(!e){return}e.packets=e.packets||new List;this[this.length]=e;this.length++};List.prototype.filterByTag=function(...e){const r=new List;const n=e=>r=>e===r;for(let t=0;tr.tag===e)};List.prototype.indexOfTag=function(...e){const r=[];const n=this;const t=e=>r=>e===r;for(let i=0;is.fromStructuredClone(e))}return r};n.default=List},{"../config":94,"../enums":128,"../util":173,"./all_packets":143,"./packet":150,"web-stream-tools":90}],152:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("asmcrypto.js/dist_es5/hash/sha1/sha1");var i=e("asmcrypto.js/dist_es5/hash/sha256/sha256");var a=e("../type/keyid");var s=_interopRequireDefault(a);var f=e("../type/mpi");var c=_interopRequireDefault(f);var l=e("../config");var d=_interopRequireDefault(l);var o=e("../crypto");var u=_interopRequireDefault(o);var h=e("../enums");var p=_interopRequireDefault(h);var v=e("../util");var b=_interopRequireDefault(v);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function PublicKey(e=new Date){this.tag=p.default.packet.publicKey;this.version=d.default.v5_keys?5:4;this.created=b.default.normalizeDate(e);this.algorithm=null;this.params=[];this.expirationTimeV3=0;this.fingerprint=null;this.keyid=null}PublicKey.prototype.read=function(e){let r=0;this.version=e[r++];if(this.version===4||this.version===5){this.created=b.default.readDate(e.subarray(r,r+4));r+=4;this.algorithm=p.default.read(p.default.publicKey,e[r++]);const n=p.default.write(p.default.publicKey,this.algorithm);if(this.version===5){r+=4}const t=u.default.getPubKeyParamTypes(n);this.params=u.default.constructParams(t);for(let n=0;ne.length){throw new Error("Error reading MPI @:"+r)}}return r}throw new Error("Version "+this.version+" of the key packet is unsupported.")};PublicKey.prototype.readPublicKey=PublicKey.prototype.read;PublicKey.prototype.write=function(){const e=[];e.push(new Uint8Array([this.version]));e.push(b.default.writeDate(this.created));const r=p.default.write(p.default.publicKey,this.algorithm);e.push(new Uint8Array([r]));const n=u.default.getPubKeyParamTypes(r).length;const t=b.default.concatUint8Array(this.params.slice(0,n).map(e=>e.write()));if(this.version===5){e.push(b.default.writeNumber(t.length,4))}e.push(t);return b.default.concatUint8Array(e)};PublicKey.prototype.writePublicKey=PublicKey.prototype.write;PublicKey.prototype.writeForHash=function(e){const r=this.writePublicKey();if(e===5){return b.default.concatUint8Array([new Uint8Array([154]),b.default.writeNumber(r.length,4),r])}return b.default.concatUint8Array([new Uint8Array([153]),b.default.writeNumber(r.length,2),r])};PublicKey.prototype.isDecrypted=function(){return null};PublicKey.prototype.getCreationTime=function(){return this.created};PublicKey.prototype.getKeyId=function(){if(this.keyid){return this.keyid}this.keyid=new s.default;if(this.version===5){this.keyid.read(b.default.hex_to_Uint8Array(this.getFingerprint()).subarray(0,8))}else if(this.version===4){this.keyid.read(b.default.hex_to_Uint8Array(this.getFingerprint()).subarray(12,20))}return this.keyid};PublicKey.prototype.getFingerprintBytes=function(){if(this.fingerprint){return this.fingerprint}const e=this.writeForHash(this.version);if(this.version===5){this.fingerprint=i.Sha256.bytes(e)}else if(this.version===4){this.fingerprint=t.Sha1.bytes(e)}return this.fingerprint};PublicKey.prototype.getFingerprint=function(){return b.default.Uint8Array_to_hex(this.getFingerprintBytes())};PublicKey.prototype.hasSameFingerprintAs=function(e){return this.version===e.version&&b.default.equalsUint8Array(this.writePublicKey(),e.writePublicKey())};PublicKey.prototype.getAlgorithmInfo=function(){const e={};e.algorithm=this.algorithm;if(this.params[0]instanceof c.default){e.rsaBits=this.params[0].byteLength()*8;e.bits=e.rsaBits}else{e.curve=this.params[0].getName()}return e};PublicKey.prototype.postCloneTypeFix=function(){const e=p.default.write(p.default.publicKey,this.algorithm);const r=u.default.getPubKeyParamTypes(e);for(let e=0;ee.length){throw new Error("Error reading param @:"+a)}}return i}function write_cleartext_params(e,r){const n=[];const t=u.default.write(u.default.publicKey,r);const i=d.default.getPubKeyParamTypes(t).length;for(let r=i;r{e.data.fill(0)});this.params.length=r;this.isEncrypted=true};SecretKey.prototype.postCloneTypeFix=function(){const e=u.default.write(u.default.publicKey,this.algorithm);const r=[].concat(d.default.getPubKeyParamTypes(e),d.default.getPrivKeyParamTypes(e));for(let e=0;eu.default.signature.sign(s,f,o,l,await i.default.readToEnd(d));if(t){this.signature=i.default.fromAsync(h)}else{this.signature=await h();this.verified=true}return true};Signature.prototype.write_hashed_sub_packets=function(){const e=p.default.signatureSubpacket;const r=[];let n;if(this.created!==null){r.push(write_sub_packet(e.signature_creation_time,b.default.writeDate(this.created)))}if(this.signatureExpirationTime!==null){r.push(write_sub_packet(e.signature_expiration_time,b.default.writeNumber(this.signatureExpirationTime,4)))}if(this.exportable!==null){r.push(write_sub_packet(e.exportable_certification,new Uint8Array([this.exportable?1:0])))}if(this.trustLevel!==null){n=new Uint8Array([this.trustLevel,this.trustAmount]);r.push(write_sub_packet(e.trust_signature,n))}if(this.regularExpression!==null){r.push(write_sub_packet(e.regular_expression,this.regularExpression))}if(this.revocable!==null){r.push(write_sub_packet(e.revocable,new Uint8Array([this.revocable?1:0])))}if(this.keyExpirationTime!==null){r.push(write_sub_packet(e.key_expiration_time,b.default.writeNumber(this.keyExpirationTime,4)))}if(this.preferredSymmetricAlgorithms!==null){n=b.default.str_to_Uint8Array(b.default.Uint8Array_to_str(this.preferredSymmetricAlgorithms));r.push(write_sub_packet(e.preferred_symmetric_algorithms,n))}if(this.revocationKeyClass!==null){n=new Uint8Array([this.revocationKeyClass,this.revocationKeyAlgorithm]);n=b.default.concat([n,this.revocationKeyFingerprint]);r.push(write_sub_packet(e.revocation_key,n))}this.rawNotations.forEach(([{name:t,value:i,humanReadable:a}])=>{n=[new Uint8Array([a?128:0,0,0,0])];n.push(b.default.writeNumber(t.length,2));n.push(b.default.writeNumber(i.length,2));n.push(b.default.str_to_Uint8Array(t));n.push(i);n=b.default.concat(n);r.push(write_sub_packet(e.notation_data,n))});if(this.preferredHashAlgorithms!==null){n=b.default.str_to_Uint8Array(b.default.Uint8Array_to_str(this.preferredHashAlgorithms));r.push(write_sub_packet(e.preferred_hash_algorithms,n))}if(this.preferredCompressionAlgorithms!==null){n=b.default.str_to_Uint8Array(b.default.Uint8Array_to_str(this.preferredCompressionAlgorithms));r.push(write_sub_packet(e.preferred_compression_algorithms,n))}if(this.keyServerPreferences!==null){n=b.default.str_to_Uint8Array(b.default.Uint8Array_to_str(this.keyServerPreferences));r.push(write_sub_packet(e.key_server_preferences,n))}if(this.preferredKeyServer!==null){r.push(write_sub_packet(e.preferred_key_server,b.default.str_to_Uint8Array(this.preferredKeyServer)))}if(this.isPrimaryUserID!==null){r.push(write_sub_packet(e.primary_user_id,new Uint8Array([this.isPrimaryUserID?1:0])))}if(this.policyURI!==null){r.push(write_sub_packet(e.policy_uri,b.default.str_to_Uint8Array(this.policyURI)))}if(this.keyFlags!==null){n=b.default.str_to_Uint8Array(b.default.Uint8Array_to_str(this.keyFlags));r.push(write_sub_packet(e.key_flags,n))}if(this.signersUserId!==null){r.push(write_sub_packet(e.signers_user_id,b.default.str_to_Uint8Array(this.signersUserId)))}if(this.reasonForRevocationFlag!==null){n=b.default.str_to_Uint8Array(String.fromCharCode(this.reasonForRevocationFlag)+this.reasonForRevocationString);r.push(write_sub_packet(e.reason_for_revocation,n))}if(this.features!==null){n=b.default.str_to_Uint8Array(b.default.Uint8Array_to_str(this.features));r.push(write_sub_packet(e.features,n))}if(this.signatureTargetPublicKeyAlgorithm!==null){n=[new Uint8Array([this.signatureTargetPublicKeyAlgorithm,this.signatureTargetHashAlgorithm])];n.push(b.default.str_to_Uint8Array(this.signatureTargetHash));n=b.default.concat(n);r.push(write_sub_packet(e.signature_target,n))}if(this.preferredAeadAlgorithms!==null){n=b.default.str_to_Uint8Array(b.default.Uint8Array_to_str(this.preferredAeadAlgorithms));r.push(write_sub_packet(e.preferred_aead_algorithms,n))}const t=b.default.concat(r);const i=b.default.writeNumber(t.length,2);return b.default.concat([i,t])};Signature.prototype.write_unhashed_sub_packets=function(){const e=p.default.signatureSubpacket;const r=[];let n;if(!this.issuerKeyId.isNull()&&this.issuerKeyVersion!==5){r.push(write_sub_packet(e.issuer,this.issuerKeyId.write()))}if(this.embeddedSignature!==null){r.push(write_sub_packet(e.embedded_signature,this.embeddedSignature.write()))}if(this.issuerFingerprint!==null){n=[new Uint8Array([this.issuerKeyVersion]),this.issuerFingerprint];n=b.default.concat(n);r.push(write_sub_packet(e.issuer_fingerprint,n))}this.unhashedSubpackets.forEach(e=>{r.push(s.default.writeSimpleLength(e.length));r.push(e)});const t=b.default.concat(r);const i=b.default.writeNumber(t.length,2);return b.default.concat([i,t])};function write_sub_packet(e,r){const n=[];n.push(s.default.writeSimpleLength(r.length+1));n.push(new Uint8Array([e]));n.push(r);return b.default.concat(n)}Signature.prototype.read_sub_packet=function(e,r=true){let n=0;const t=(e,r)=>{this[e]=[];for(let n=0;n{n+=e.length},()=>{const t=[];if(this.version===5&&(this.signatureType===p.default.signature.binary||this.signatureType===p.default.signature.text)){if(r){t.push(new Uint8Array(6))}else{t.push(e.writeHeader())}}t.push(new Uint8Array([this.version,255]));if(this.version===5){t.push(new Uint8Array(4))}t.push(b.default.writeNumber(n,4));return b.default.concat(t)})};Signature.prototype.toHash=function(e,r,n=false){const t=this.toSign(e,r);return b.default.concat([t,this.signatureData,this.calculateTrailer(r,n)])};Signature.prototype.hash=async function(e,r,n,t=false,a=true){const s=p.default.write(p.default.hash,this.hashAlgorithm);if(!n)n=this.toHash(e,r,t);if(!a&&b.default.isStream(n)){return i.default.fromAsync(async()=>this.hash(e,r,await i.default.readToEnd(n),t))}return u.default.hash.digest(s,n)};Signature.prototype.verify=async function(e,r,n,t=false,a=false){const s=p.default.write(p.default.publicKey,this.publicKeyAlgorithm);const f=p.default.write(p.default.hash,this.hashAlgorithm);if(s!==p.default.write(p.default.publicKey,e.algorithm)){throw new Error("Public key algorithm used to sign signature does not match issuer key algorithm.")}let c;let l;if(this.hashed){l=await this.hashed}else{c=this.toHash(r,n,t);if(!a)c=await i.default.readToEnd(c);l=await this.hash(r,n,c)}l=await i.default.readToEnd(l);if(this.signedHashValue[0]!==l[0]||this.signedHashValue[1]!==l[1]){throw new Error("Message digest did not match")}let o=0;if(s>0&&s<4){o=1}else if(s===p.default.publicKey.dsa||s===p.default.publicKey.ecdsa||s===p.default.publicKey.eddsa){o=2}const h=s===p.default.publicKey.eddsa?"le":"be";const v=[];let b=0;this.signature=await i.default.readToEnd(this.signature);for(let e=0;e{if(await e.readByte()!==h){throw new Error("Invalid packet version.")}this.cipherAlgo=await e.readByte();this.aeadAlgo=await e.readByte();this.chunkSizeByte=await e.readByte();const r=c.default[d.default.read(d.default.aead,this.aeadAlgo)];this.iv=await e.readBytes(r.ivLength);this.encrypted=e.remainder()})};SymEncryptedAEADProtected.prototype.write=function(){return u.default.concat([new Uint8Array([this.version,this.cipherAlgo,this.aeadAlgo,this.chunkSizeByte]),this.iv,this.encrypted])};SymEncryptedAEADProtected.prototype.decrypt=async function(e,r,n){await this.packets.read(await this.crypt("decrypt",r,i.default.clone(this.encrypted),n),n);return true};SymEncryptedAEADProtected.prototype.encrypt=async function(e,r,n){this.cipherAlgo=d.default.write(d.default.symmetric,e);this.aeadAlgo=d.default.write(d.default.aead,this.aeadAlgorithm);const t=c.default[d.default.read(d.default.aead,this.aeadAlgo)];this.iv=await c.default.random.getRandomBytes(t.ivLength);this.chunkSizeByte=s.default.aead_chunk_size_byte;const i=this.packets.write();this.encrypted=await this.crypt("encrypt",r,i,n)};SymEncryptedAEADProtected.prototype.crypt=async function(e,r,n,t){const a=d.default.read(d.default.symmetric,this.cipherAlgo);const s=c.default[d.default.read(d.default.aead,this.aeadAlgo)];const f=await s(a,r);const l=e==="decrypt"?s.tagLength:0;const o=e==="encrypt"?s.tagLength:0;const h=2**(this.chunkSizeByte+6)+l;const p=new ArrayBuffer(21);const v=new Uint8Array(p,0,13);const b=new Uint8Array(p);const y=new DataView(p);const g=new Uint8Array(p,5,8);v.set([192|this.tag,this.version,this.cipherAlgo,this.aeadAlgo,this.chunkSizeByte],0);let w=0;let m=Promise.resolve();let A=0;let E=0;const S=this.iv;return i.default.transformPair(n,async(r,n)=>{const a=i.default.getReader(r);const c=new TransformStream({},{highWaterMark:t?u.default.getHardwareConcurrency()*2**(this.chunkSizeByte+6):Infinity,size:e=>e.length});i.default.pipe(c.readable,n);const d=i.default.getWriter(c.writable);try{while(true){let r=await a.readBytes(h+l)||new Uint8Array;const n=r.subarray(r.length-l);r=r.subarray(0,r.length-l);let t;let i;if(!w||r.length){a.unshift(n);t=f[e](r,s.getNonce(S,g),v);E+=r.length-l+o}else{y.setInt32(13+4,A);t=f[e](n,s.getNonce(S,g),b);E+=o;i=true}A+=r.length-l;m=m.then(()=>t).then(async e=>{await d.ready;await d.write(e);E-=e.length}).catch(e=>d.abort(e));if(i||E>d.desiredSize){await m}if(!i){y.setInt32(5+4,++w)}else{await d.close();break}}}catch(e){await d.abort(e)}})}},{"../config":94,"../crypto":109,"../enums":128,"../util":173,"web-stream-tools":90}],159:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("web-stream-tools");var i=_interopRequireDefault(t);var a=e("../config");var s=_interopRequireDefault(a);var f=e("../crypto");var c=_interopRequireDefault(f);var l=e("../enums");var d=_interopRequireDefault(l);var o=e("../util");var u=_interopRequireDefault(o);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const h=1;function SymEncryptedIntegrityProtected(){this.tag=d.default.packet.symEncryptedIntegrityProtected;this.version=h;this.encrypted=null;this.modification=false;this.packets=null}SymEncryptedIntegrityProtected.prototype.read=async function(e){await i.default.parse(e,async e=>{if(await e.readByte()!==h){throw new Error("Invalid packet version.")}this.encrypted=e.remainder()})};SymEncryptedIntegrityProtected.prototype.write=function(){return u.default.concat([new Uint8Array([h]),this.encrypted])};SymEncryptedIntegrityProtected.prototype.encrypt=async function(e,r,n){let t=this.packets.write();if(!n)t=await i.default.readToEnd(t);const a=await c.default.getPrefixRandom(e);const s=new Uint8Array([211,20]);const f=u.default.concat([a,t,s]);const l=await c.default.hash.sha1(i.default.passiveClone(f));const d=u.default.concat([f,l]);this.encrypted=await c.default.cfb.encrypt(e,r,d,new Uint8Array(c.default.cipher[e].blockSize));return true};SymEncryptedIntegrityProtected.prototype.decrypt=async function(e,r,n){let t=i.default.clone(this.encrypted);if(!n)t=await i.default.readToEnd(t);const a=await c.default.cfb.decrypt(e,r,t,new Uint8Array(c.default.cipher[e].blockSize));const f=i.default.slice(i.default.passiveClone(a),-20);const l=i.default.slice(a,0,-20);const d=Promise.all([i.default.readToEnd(await c.default.hash.sha1(i.default.passiveClone(l))),i.default.readToEnd(f)]).then(([e,r])=>{if(!u.default.equalsUint8Array(e,r)){throw new Error("Modification detected.")}return new Uint8Array});const o=i.default.slice(l,c.default.cipher[e].blockSize+2);let h=i.default.slice(o,0,-2);h=i.default.concat([h,i.default.fromAsync(()=>d)]);if(!u.default.isStream(t)||!s.default.allow_unauthenticated_stream){h=await i.default.readToEnd(h)}await this.packets.read(h,n);return true};n.default=SymEncryptedIntegrityProtected},{"../config":94,"../crypto":109,"../enums":128,"../util":173,"web-stream-tools":90}],160:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("../type/s2k");var i=_interopRequireDefault(t);var a=e("../config");var s=_interopRequireDefault(a);var f=e("../crypto");var c=_interopRequireDefault(f);var l=e("../enums");var d=_interopRequireDefault(l);var o=e("../util");var u=_interopRequireDefault(o);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function SymEncryptedSessionKey(){this.tag=d.default.packet.symEncryptedSessionKey;this.version=s.default.aead_protect?5:4;this.sessionKey=null;this.sessionKeyEncryptionAlgorithm=null;this.sessionKeyAlgorithm="aes256";this.aeadAlgorithm=d.default.read(d.default.aead,s.default.aead_mode);this.encrypted=null;this.s2k=null;this.iv=null}SymEncryptedSessionKey.prototype.read=function(e){let r=0;this.version=e[r++];const n=d.default.read(d.default.symmetric,e[r++]);if(this.version===5){this.aeadAlgorithm=d.default.read(d.default.aead,e[r++])}this.s2k=new i.default;r+=this.s2k.read(e.subarray(r,e.length));if(this.version===5){const n=c.default[this.aeadAlgorithm];this.iv=e.subarray(r,r+=n.ivLength)}if(this.version===5||r=1){const r=e[0];if(e.length>=1+r){this.data=e.subarray(1,1+r);return 1+this.data.length}}throw new Error("Invalid symmetric key")};ECDHSymmetricKey.prototype.write=function(){return i.default.concatUint8Array([new Uint8Array([this.data.length]),this.data])};ECDHSymmetricKey.fromClone=function(e){return new ECDHSymmetricKey(e.data)};n.default=ECDHSymmetricKey},{"../util":173}],168:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});function KDFParams(e){if(e){const r=e.hash,n=e.cipher;this.hash=r;this.cipher=n}else{this.hash=null;this.cipher=null}}KDFParams.prototype.read=function(e){if(e.length<4||e[0]!==3||e[1]!==1){throw new Error("Cannot read KDFParams")}this.hash=e[2];this.cipher=e[3];return 4};KDFParams.prototype.write=function(){return new Uint8Array([3,1,this.hash,this.cipher])};KDFParams.fromClone=function(e){const r=e.hash,n=e.cipher;return new KDFParams({hash:r,cipher:n})};n.default=KDFParams},{}],169:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("../util.js");var i=_interopRequireDefault(t);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Keyid(){this.bytes=""}Keyid.prototype.read=function(e){this.bytes=i.default.Uint8Array_to_str(e.subarray(0,8))};Keyid.prototype.write=function(){return i.default.str_to_Uint8Array(this.bytes)};Keyid.prototype.toHex=function(){return i.default.str_to_hex(this.bytes)};Keyid.prototype.equals=function(e,r=false){return r&&(e.isWildcard()||this.isWildcard())||this.bytes===e.bytes};Keyid.prototype.isNull=function(){return this.bytes===""};Keyid.prototype.isWildcard=function(){return/^0+$/.test(this.toHex())};Keyid.mapToHex=function(e){return e.toHex()};Keyid.fromClone=function(e){const r=new Keyid;r.bytes=e.bytes;return r};Keyid.fromId=function(e){const r=new Keyid;r.read(i.default.hex_to_Uint8Array(e));return r};Keyid.wildcard=function(){const e=new Keyid;e.read(new Uint8Array(8));return e};n.default=Keyid},{"../util.js":173}],170:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("bn.js");var i=_interopRequireDefault(t);var a=e("../util");var s=_interopRequireDefault(a);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function MPI(e){if(e instanceof MPI){this.data=e.data}else if(i.default.isBN(e)){this.fromBN(e)}else if(s.default.isUint8Array(e)){this.fromUint8Array(e)}else if(s.default.isString(e)){this.fromString(e)}else{this.data=null}}MPI.prototype.read=function(e,r="be"){if(s.default.isString(e)){e=s.default.str_to_Uint8Array(e)}const n=e[0]<<8|e[1];const t=n+7>>>3;const i=e.subarray(2,2+t);this.fromUint8Array(i,r);return 2+t};MPI.prototype.write=function(e,r){return s.default.Uint8Array_to_MPI(this.toUint8Array(e,r))};MPI.prototype.bitLength=function(){return(this.data.length-1)*8+s.default.nbits(this.data[0])};MPI.prototype.byteLength=function(){return this.data.length};MPI.prototype.toUint8Array=function(e,r){e=e||"be";r=r||this.data.length;const n=new Uint8Array(r);const t=e==="le"?0:r-this.data.length;n.set(this.data,t);if(e==="le"){n.reverse()}return n};MPI.prototype.fromUint8Array=function(e,r="be"){this.data=new Uint8Array(e.length);this.data.set(e);if(r==="le"){this.data.reverse()}};MPI.prototype.toString=function(){return s.default.Uint8Array_to_str(this.toUint8Array())};MPI.prototype.fromString=function(e,r="be"){this.fromUint8Array(s.default.str_to_Uint8Array(e),r)};MPI.prototype.toBN=function(){return new i.default(this.toUint8Array())};MPI.prototype.fromBN=function(e){this.data=e.toArrayLike(Uint8Array)};MPI.fromClone=function(e){return new MPI(e.data)};n.default=MPI},{"../util":173,"bn.js":30}],171:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("../util");var i=_interopRequireDefault(t);var a=e("../enums");var s=_interopRequireDefault(a);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function OID(e){if(e instanceof OID){this.oid=e.oid}else if(i.default.isArray(e)||i.default.isUint8Array(e)){e=new Uint8Array(e);if(e[0]===6){if(e[1]!==e.length-2){throw new Error("Length mismatch in DER encoded oid")}e=e.subarray(2)}this.oid=e}else{this.oid=""}}OID.prototype.read=function(e){if(e.length>=1){const r=e[0];if(e.length>=1+r){this.oid=e.subarray(1,1+r);return 1+this.oid.length}}throw new Error("Invalid oid")};OID.prototype.write=function(){return i.default.concatUint8Array([new Uint8Array([this.oid.length]),this.oid])};OID.prototype.toHex=function(){return i.default.Uint8Array_to_hex(this.oid)};OID.prototype.getName=function(){const e=this.toHex();if(s.default.curve[e]){return s.default.write(s.default.curve,e)}else{throw new Error("Unknown curve object identifier.")}};OID.fromClone=function(e){return new OID(e.oid)};n.default=OID},{"../enums":128,"../util":173}],172:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("../config");var i=_interopRequireDefault(t);var a=e("../crypto");var s=_interopRequireDefault(a);var f=e("../enums.js");var c=_interopRequireDefault(f);var l=e("../util.js");var d=_interopRequireDefault(l);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function S2K(){this.algorithm="sha256";this.type="iterated";this.c=i.default.s2k_iteration_count_byte;this.salt=null}S2K.prototype.get_count=function(){const e=6;return 16+(this.c&15)<<(this.c>>4)+e};S2K.prototype.read=function(e){let r=0;this.type=c.default.read(c.default.s2k,e[r++]);this.algorithm=e[r++];if(this.type!=="gnu"){this.algorithm=c.default.read(c.default.hash,this.algorithm)}switch(this.type){case"simple":break;case"salted":this.salt=e.subarray(r,r+8);r+=8;break;case"iterated":this.salt=e.subarray(r,r+8);r+=8;this.c=e[r++];break;case"gnu":if(d.default.Uint8Array_to_str(e.subarray(r,r+3))==="GNU"){r+=3;const n=1e3+e[r++];if(n===1001){this.type="gnu-dummy"}else{throw new Error("Unknown s2k gnu protection mode.")}}else{throw new Error("Unknown s2k type.")}break;default:throw new Error("Unknown s2k type.")}return r};S2K.prototype.write=function(){if(this.type==="gnu-dummy"){return new Uint8Array([101,0,...d.default.str_to_Uint8Array("GNU"),1])}const e=[new Uint8Array([c.default.write(c.default.s2k,this.type),c.default.write(c.default.hash,this.algorithm)])];switch(this.type){case"simple":break;case"salted":e.push(this.salt);break;case"iterated":e.push(this.salt);e.push(new Uint8Array([this.c]));break;case"gnu":throw new Error("GNU s2k type not supported.");default:throw new Error("Unknown s2k type.")}return d.default.concatUint8Array(e)};S2K.prototype.produce_key=async function(e,r){e=d.default.encode_utf8(e);const n=c.default.write(c.default.hash,this.algorithm);const t=[];let i=0;let a=0;while(i{if(d.default.isStream(i)){if(i.locked){e[t]=null}else{const n=s.default.transformPair(i,async i=>{const a=s.default.getReader(i);var f=new MessageChannel;const c=f.port1,l=f.port2;c.onmessage=async function({data:{action:e}}){if(e==="read"){try{const e=await a.read();c.postMessage(e,d.default.getTransferables(e))}catch(e){c.postMessage({error:e.message})}}else if(e==="cancel"){await n.cancel();c.postMessage()}};e[t]=l;r.push(l)})}return}if(Object.prototype.toString.call(i)==="[object MessagePort]"){throw new Error("Can't transfer the same stream twice.")}d.default.collectTransferables(i,r,n)})}},restoreStreams:function restoreStreams(e){if(Object.prototype.isPrototypeOf(e)&&!Uint8Array.prototype.isPrototypeOf(e)){Object.entries(e).forEach(([r,n])=>{if(Object.prototype.toString.call(n)==="[object MessagePort]"){e[r]=new ReadableStream({pull(e){return new Promise(r=>{n.onmessage=(n=>{var t=n.data;const i=t.done,a=t.value,s=t.error;if(s){e.error(new Error(s))}else if(!i){e.enqueue(a)}else{e.close()}r()});n.postMessage({action:"read"})})},cancel(){return new Promise(e=>{n.onmessage=e;n.postMessage({action:"cancel"})})}},{highWaterMark:0});return}d.default.restoreStreams(n)})}return e},readNumber:function readNumber(e){let r=0;for(let n=0;n>8*(r-t-1)&255}return n},readDate:function readDate(e){const r=d.default.readNumber(e);const n=new Date(r*1e3);return n},writeDate:function writeDate(e){const r=Math.floor(e.getTime()/1e3);return d.default.writeNumber(r,4)},normalizeDate:function normalizeDate(e=Date.now()){return e===null||e===Infinity?e:new Date(Math.floor(+e/1e3)*1e3)},str_to_hex:function str_to_hex(e){if(e===null){return""}const r=[];const n=e.length;let t=0;let i;while(t>8,r&255]);return d.default.concatUint8Array([n,e])},b64_to_Uint8Array:function b64_to_Uint8Array(e){return u.default.decode(e.replace(/-/g,"+").replace(/_/g,"/"))},Uint8Array_to_b64:function Uint8Array_to_b64(e,r){let n=u.default.encode(e).replace(/[\r\n]/g,"");if(r){n=n.replace(/[+]/g,"-").replace(/[/]/g,"_").replace(/[=]/g,"")}return n},hex_to_Uint8Array:function hex_to_Uint8Array(e){const r=new Uint8Array(e.length>>1);for(let n=0;n>1;n++){r[n]=parseInt(e.substr(n<<1,2),16)}return r},Uint8Array_to_hex:function Uint8Array_to_hex(e){const r=[];const n=e.length;let t=0;let i;while(t{if(!d.default.isString(e)){throw new Error("str_to_Uint8Array: Data must be in the form of a string")}const r=new Uint8Array(e.length);for(let n=0;nprocess("",true))},decode_utf8:function decode_utf8(e){const r=new TextDecoder("utf-8");function process(e,n=false){return r.decode(e,{stream:!n})}return s.default.transform(e,process,()=>process(new Uint8Array,true))},concat:s.default.concat,concatUint8Array:s.default.concatUint8Array,equalsUint8Array:function equalsUint8Array(e,r){if(!d.default.isUint8Array(e)||!d.default.isUint8Array(r)){throw new Error("Data must be in the form of a Uint8Array")}if(e.length!==r.length){return false}for(let n=0;n{console.log(e+": ",r)})},nbits:function nbits(e){let r=1;let n=e>>>16;if(n!==0){e=n;r+=16}n=e>>8;if(n!==0){e=n;r+=8}n=e>>4;if(n!==0){e=n;r+=4}n=e>>2;if(n!==0){e=n;r+=2}n=e>>1;if(n!==0){e=n;r+=1}return r},double:function double(e){const r=new Uint8Array(e.length);const n=e.length-1;for(let t=0;t>7}r[n]=e[n]<<1^(e[0]>>7)*135;return r},shiftRight:function shiftRight(e,r){if(r){for(let n=e.length-1;n>=0;n--){e[n]>>=r;if(n>0){e[n]|=e[n-1]<<8-r}}}return e},getWebCrypto:function getWebCrypto(){if(!c.default.use_native){return}return typeof r!=="undefined"&&r.crypto&&r.crypto.subtle},getWebCryptoAll:function getWebCryptoAll(){if(!c.default.use_native){return}if(typeof r!=="undefined"){if(r.crypto){return r.crypto.subtle||r.crypto.webkitSubtle}if(r.msCrypto){return r.msCrypto.subtle}}},detectNode:function detectNode(){return typeof r.process==="object"&&typeof r.process.versions==="object"},nodeRequire:function nodeRequire(r){if(!d.default.detectNode()){return}return e(r)},getNodeCrypto:function getNodeCrypto(){if(!c.default.use_native){return}return d.default.nodeRequire("crypto")},getNodeZlib:function getNodeZlib(){if(!c.default.use_native){return}return d.default.nodeRequire("zlib")},getNodeBuffer:function getNodeBuffer(){return(d.default.nodeRequire("buffer")||{}).Buffer},getNodeStream:function getNodeStream(){return(d.default.nodeRequire("stream")||{}).Readable},getHardwareConcurrency:function getHardwareConcurrency(){if(d.default.detectNode()){const e=d.default.nodeRequire("os");return e.cpus().length}return navigator.hardwareConcurrency||1},isEmailAddress:function isEmailAddress(e){if(!d.default.isString(e)){return false}const r=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+([a-zA-Z]{2,}|xn--[a-zA-Z\-0-9]+)))$/;return r.test(e)},formatUserId:function formatUserId(e){if(e.name&&!d.default.isString(e.name)||e.email&&!d.default.isEmailAddress(e.email)||e.comment&&!d.default.isString(e.comment)){throw new Error("Invalid user id format")}const r=[];if(e.name){r.push(e.name)}if(e.comment){r.push(`(${e.comment})`)}if(e.email){r.push(`<${e.email}>`)}return r.join(" ")},parseUserId:function parseUserId(e){if(e.length>c.default.max_userid_length){throw new Error("User id string is too long")}try{var r=i.default.parseOneAddress({input:e,atInDisplayName:true});const n=r.name,t=r.address,a=r.comments;return{name:n,email:t,comment:a.replace(/^\(|\)$/g,"")}}catch(e){throw new Error("Invalid user id format")}},canonicalizeEOL:function canonicalizeEOL(e){const r=13;const n=10;let t=false;return s.default.transform(e,e=>{if(t){e=d.default.concatUint8Array([new Uint8Array([r]),e])}if(e[e.length-1]===r){t=true;e=e.subarray(0,-1)}else{t=false}let i;const a=[];for(let t=0;;t=i){i=e.indexOf(n,t)+1;if(i){if(e[i-2]!==r)a.push(i)}else{break}}if(!a.length){return e}const s=new Uint8Array(e.length+a.length);let f=0;for(let t=0;tt?new Uint8Array([r]):undefined)},nativeEOL:function nativeEOL(e){const r=13;const n=10;let t=false;return s.default.transform(e,e=>{if(t&&e[0]!==n){e=d.default.concatUint8Array([new Uint8Array([r]),e])}else{e=new Uint8Array(e)}if(e[e.length-1]===r){t=true;e=e.subarray(0,-1)}else{t=false}let i;let a=0;for(let t=0;t!==e.length;t=i){i=e.indexOf(r,t)+1;if(!i)i=e.length;const s=i-(e[i]===n?1:0);if(t)e.copyWithin(a,t,s);a+=s-t}return e.subarray(0,a)},()=>t?new Uint8Array([r]):undefined)},removeTrailingSpaces:function removeTrailingSpaces(e){return e.split("\n").map(e=>{let r=e.length-1;for(;r>=0&&(e[r]===" "||e[r]==="\t");r--);return e.substr(0,r+1)}).join("\n")},encodeZBase32:function encodeZBase32(e){if(e.length===0){return""}const r="ybndrfg8ejkmcpqxot1uwisza345h769";const n=5;const t=31;let i=e[0];let a=1;let s=8;let f="";while(s>0||a>s]}return f},wrapError:function wrapError(e,r){if(!r){return new Error(e)}try{r.message=e+": "+r.message}catch(e){}return r}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./config":94,"./encoding/base64":127,"./util":173,"email-addresses":47,"web-stream-tools":90}],174:[function(e,r,n){(function(r){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=function(){function sliceIterator(e,r){var n=[];var t=true;var i=false;var a=undefined;try{for(var s=e[Symbol.iterator](),f;!(t=(f=s.next()).done);t=true){n.push(f.value);if(r&&n.length===r)break}}catch(e){i=true;a=e}finally{try{if(!t&&s["return"])s["return"]()}finally{if(i)throw a}}return n}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return sliceIterator(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var i=e("./util");var a=_interopRequireDefault(i);var s=e("./crypto");var f=_interopRequireDefault(s);var c=e("./key");var l=_interopRequireWildcard(c);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var r={};if(e!=null){for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]}}r.default=e;return r}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function WKD(){this._fetch=typeof r!=="undefined"?r.fetch:e("node-fetch")}WKD.prototype.lookup=async function(e){const r=this._fetch;if(!e.email){throw new Error("You must provide an email parameter!")}if(!a.default.isEmailAddress(e.email)){throw new Error("Invalid e-mail address.")}var n=/(.*)@(.*)/.exec(e.email),i=t(n,3);const s=i[1],c=i[2];const d=a.default.encodeZBase32(await f.default.hash.sha1(a.default.str_to_Uint8Array(s.toLowerCase())));const o=`https://openpgpkey.${c}/.well-known/openpgpkey/${c}/hu/${d}`;const u=`https://${c}/.well-known/openpgpkey/hu/${d}`;let h;try{h=await r(o);if(h.status!==200){throw new Error("Advanced WKD lookup failed: "+h.statusText)}}catch(e){a.default.print_debug_error(e);h=await r(u);if(h.status!==200){throw new Error("Direct WKD lookup failed: "+h.statusText)}}const p=new Uint8Array(await h.arrayBuffer());if(e.rawBytes){return p}return l.read(p)};n.default=WKD}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"./crypto":109,"./key":133,"./util":173,"node-fetch":"node-fetch"}],175:[function(e,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});var t=e("../util.js");var i=_interopRequireDefault(t);var a=e("../config");var s=_interopRequireDefault(a);var f=e("../crypto");var c=_interopRequireDefault(f);var l=e("../packet");var d=_interopRequireDefault(l);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function AsyncProxy({path:e="openpgp.worker.js",n:r=1,workers:n=[],config:t}={}){const i=e=>r=>{const n=r.data;switch(n.event){case"loaded":this.workers[e].loadedResolve(true);break;case"method-return":if(n.err){const e=new Error(n.err);e.workerStack=n.stack;this.tasks[n.id].reject(e)}else{this.tasks[n.id].resolve(n.data)}delete this.tasks[n.id];this.workers[e].requests--;break;case"request-seed":this.seedRandom(e,n.amount);break;default:throw new Error("Unknown Worker Event.")}};if(n.length){this.workers=n}else{this.workers=[];while(this.workers.length{e.loadedPromise=new Promise(r=>{e.loadedResolve=r});e.requests=0;e.onmessage=i(a++);e.onerror=(r=>{e.loadedResolve(false);console.error("Unhandled error in openpgp worker: "+r.message+" ("+r.filename+":"+r.lineno+")");return false});if(t){e.postMessage({event:"configure",config:t})}});this.tasks={};this.currentID=0}AsyncProxy.prototype.loaded=async function(){const e=await Promise.all(this.workers.map(e=>e.loadedPromise));return e.every(Boolean)};AsyncProxy.prototype.getID=function(){return this.currentID++};AsyncProxy.prototype.seedRandom=async function(e,r){const n=await c.default.random.getRandomBytes(r);this.workers[e].postMessage({event:"seed-random",buf:n},i.default.getTransferables(n,true))};AsyncProxy.prototype.clearKeyCache=async function(){await Promise.all(this.workers.map(e=>new Promise((r,n)=>{const t=this.getID();e.postMessage({id:t,event:"clear-key-cache"});this.tasks[t]={resolve:r,reject:n}})))};AsyncProxy.prototype.terminate=function(){this.workers.forEach(e=>{e.terminate()})};AsyncProxy.prototype.delegate=function(e,r){const n=this.getID();const t=this.workers.map(e=>e.requests);const a=Math.min(...t);let f=0;for(;f{this.workers[f].postMessage({id:n,event:e,options:d.default.clone.clonePackets(r)},i.default.getTransferables(r,s.default.zero_copy));this.workers[f].requests++;this.tasks[n]={resolve:r=>t(d.default.clone.parseClonedPackets(i.default.restoreStreams(r),e)),reject:a}})};n.default=AsyncProxy},{"../config":94,"../crypto":109,"../packet":146,"../util.js":173}]},{},[130])(130)})},,function(e,r,n){var t=n(752);var i=Array.prototype;var a=i.splice;function listCacheDelete(e){var r=this.__data__,n=t(r,e);if(n<0){return false}var i=r.length-1;if(n==i){r.pop()}else{a.call(r,n,1)}--this.size;return true}e.exports=listCacheDelete},function(e){function stackDelete(e){var r=this.__data__,n=r["delete"](e);this.size=r.size;return n}e.exports=stackDelete},,,,,,,,,function(e,r,n){"use strict";var t=n(896);e.exports={Validation:errorSubclass(ValidationError),MissingRef:errorSubclass(MissingRefError)};function ValidationError(e){this.message="validation failed";this.errors=e;this.ajv=this.validation=true}MissingRefError.message=function(e,r){return"can't resolve reference "+r+" from id "+e};function MissingRefError(e,r,n){this.message=n||MissingRefError.message(e,r);this.missingRef=t.url(e,r);this.missingSchema=t.normalizeId(t.fullPath(this.missingRef))}function errorSubclass(e){e.prototype=Object.create(Error.prototype);e.prototype.constructor=e;return e}},,,,,,,,,,,,,function(e){var r=800,n=16;var t=Date.now;function shortOut(e){var i=0,a=0;return function(){var s=t(),f=n-(s-a);a=s;if(f>0){if(++i>=r){return arguments[0]}}else{i=0}return e.apply(undefined,arguments)}}e.exports=shortOut},,,,,function(e){function stubFalse(){return false}e.exports=stubFalse},,,function(e){e.exports=require("fs")},,,function(e){"use strict";e.exports=function generate_not(e,r,n){var t=" ";var i=e.level;var a=e.dataLevel;var s=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var d="data"+(a||"");var o="errs__"+i;var u=e.util.copy(e);u.level++;var h="valid"+u.level;if(e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0:e.util.schemaHasRules(s,e.RULES.all)){u.schema=s;u.schemaPath=f;u.errSchemaPath=c;t+=" var "+o+" = errors; ";var p=e.compositeRule;e.compositeRule=u.compositeRule=true;u.createErrors=false;var v;if(u.opts.allErrors){v=u.opts.allErrors;u.opts.allErrors=false}t+=" "+e.validate(u)+" ";u.createErrors=true;if(v)u.opts.allErrors=v;e.compositeRule=u.compositeRule=p;t+=" if ("+h+") { ";var b=b||[];b.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){t+=" , message: 'should NOT be valid' "}if(e.opts.verbose){t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}var y=t;t=b.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+y+"]); "}else{t+=" validate.errors = ["+y+"]; return false; "}}else{t+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } else { errors = "+o+"; if (vErrors !== null) { if ("+o+") vErrors.length = "+o+"; else vErrors = null; } ";if(e.opts.allErrors){t+=" } "}}else{t+=" var err = ";if(e.createErrors!==false){t+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){t+=" , message: 'should NOT be valid' "}if(e.opts.verbose){t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(l){t+=" if (false) { "}}return t}},,function(e,r,n){var t=n(901);function assocIndexOf(e,r){var n=e.length;while(n--){if(t(e[n][0],r)){return n}}return-1}e.exports=assocIndexOf},,,,,,function(e,r,n){var t=n(688),i=n(71);function baseGet(e,r){r=t(r,e);var n=0,a=r.length;while(e!=null&&n 1e-"+e.opts.multipleOfPrecision+" "}else{t+=" division"+i+" !== parseInt(division"+i+") "}t+=" ) ";if(o){t+=" ) "}t+=" ) { ";var h=h||[];h.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+u+" } ";if(e.opts.messages!==false){t+=" , message: 'should be multiple of ";if(o){t+="' + "+u}else{t+=""+u+"'"}}if(e.opts.verbose){t+=" , schema: ";if(o){t+="validate.schema"+f}else{t+=""+s}t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}var p=t;t=h.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+p+"]); "}else{t+=" validate.errors = ["+p+"]; return false; "}}else{t+=" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+="} ";if(l){t+=" else { "}return t}},,function(e,r,n){var t=n(922),i=n(850),a=n(979),s=n(482);var f=a(function(e,r){if(e==null){return[]}var n=r.length;if(n>1&&s(e,r[0],r[1])){r=[]}else if(n>2&&s(r[0],r[1],r[2])){r=[r[0]]}return i(e,t(r,1),[])});e.exports=f},,,,function(e,r,n){var t=n(320);var i=t(Object.keys,Object);e.exports=i},,,,,,,,,,,function(e,r,n){var t=n(752);function listCacheGet(e){var r=this.__data__,n=t(r,e);return n<0?undefined:r[n][1]}e.exports=listCacheGet},,,function(e){function listCacheClear(){this.__data__=[];this.size=0}e.exports=listCacheClear},function(e,r,n){var t=n(479),i=n(882);var a=t(i,"Set");e.exports=a},,,,,,function(e,r,n){var t=n(497),i=n(334);var a="[object AsyncFunction]",s="[object Function]",f="[object GeneratorFunction]",c="[object Proxy]";function isFunction(e){if(!i(e)){return false}var r=t(e);return r==s||r==f||r==a||r==c}e.exports=isFunction},,,function(e,r,n){var t=n(388),i=n(634);var a=Object.prototype;var s=a.propertyIsEnumerable;var f=Object.getOwnPropertySymbols;var c=!f?i:function(e){if(e==null){return[]}e=Object(e);return t(f(e),function(r){return s.call(e,r)})};e.exports=c},,function(e){function setCacheHas(e){return this.__data__.has(e)}e.exports=setCacheHas},,,,,,function(e,r,n){"use strict";e.exports={$ref:n(393),allOf:n(443),anyOf:n(93),$comment:n(134),const:n(661),contains:n(964),dependencies:n(591),enum:n(163),format:n(847),if:n(862),items:n(408),maximum:n(404),minimum:n(404),maxItems:n(683),minItems:n(683),maxLength:n(114),minLength:n(114),maxProperties:n(142),minProperties:n(142),multipleOf:n(772),not:n(750),oneOf:n(106),pattern:n(912),properties:n(924),propertyNames:n(195),required:n(420),uniqueItems:n(995),validate:n(585)}},,,,,,,,,function(e,r,n){var t=n(201);function compareMultiple(e,r,n){var i=-1,a=e.criteria,s=r.criteria,f=a.length,c=n.length;while(++i=c){return l}var d=n[i];return l*(d=="desc"?-1:1)}}return e.index-r.index}e.exports=compareMultiple},,,function(e){function identity(e){return e}e.exports=identity},,,,,,,function(e){function baseProperty(e){return function(r){return r==null?undefined:r[e]}}e.exports=baseProperty},,,,,,,,,,,,,,function(e,r,n){var t=n(608);function stackClear(){this.__data__=new t;this.size=0}e.exports=stackClear},,,,function(e){"use strict";e.exports=function generate_format(e,r,n){var t=" ";var i=e.level;var a=e.dataLevel;var s=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var d="data"+(a||"");if(e.opts.format===false){if(l){t+=" if (true) { "}return t}var o=e.opts.$data&&s&&s.$data,u;if(o){t+=" var schema"+i+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ";u="schema"+i}else{u=s}var h=e.opts.unknownFormats,p=Array.isArray(h);if(o){var v="format"+i,b="isObject"+i,y="formatType"+i;t+=" var "+v+" = formats["+u+"]; var "+b+" = typeof "+v+" == 'object' && !("+v+" instanceof RegExp) && "+v+".validate; var "+y+" = "+b+" && "+v+".type || 'string'; if ("+b+") { ";if(e.async){t+=" var async"+i+" = "+v+".async; "}t+=" "+v+" = "+v+".validate; } if ( ";if(o){t+=" ("+u+" !== undefined && typeof "+u+" != 'string') || "}t+=" (";if(h!="ignore"){t+=" ("+u+" && !"+v+" ";if(p){t+=" && self._opts.unknownFormats.indexOf("+u+") == -1 "}t+=") || "}t+=" ("+v+" && "+y+" == '"+n+"' && !(typeof "+v+" == 'function' ? ";if(e.async){t+=" (async"+i+" ? await "+v+"("+d+") : "+v+"("+d+")) "}else{t+=" "+v+"("+d+") "}t+=" : "+v+".test("+d+"))))) {"}else{var v=e.formats[s];if(!v){if(h=="ignore"){e.logger.warn('unknown format "'+s+'" ignored in schema at path "'+e.errSchemaPath+'"');if(l){t+=" if (true) { "}return t}else if(p&&h.indexOf(s)>=0){if(l){t+=" if (true) { "}return t}else{throw new Error('unknown format "'+s+'" is used in schema at path "'+e.errSchemaPath+'"')}}var b=typeof v=="object"&&!(v instanceof RegExp)&&v.validate;var y=b&&v.type||"string";if(b){var g=v.async===true;v=v.validate}if(y!=n){if(l){t+=" if (true) { "}return t}if(g){if(!e.async)throw new Error("async format in sync schema");var w="formats"+e.util.getProperty(s)+".validate";t+=" if (!(await "+w+"("+d+"))) { "}else{t+=" if (! ";var w="formats"+e.util.getProperty(s);if(b)w+=".validate";if(typeof v=="function"){t+=" "+w+"("+d+") "}else{t+=" "+w+".test("+d+") "}t+=") { "}}var m=m||[];m.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ";if(o){t+=""+u}else{t+=""+e.util.toQuotedString(s)}t+=" } ";if(e.opts.messages!==false){t+=" , message: 'should match format \"";if(o){t+="' + "+u+" + '"}else{t+=""+e.util.escapeQuotes(s)}t+="\"' "}if(e.opts.verbose){t+=" , schema: ";if(o){t+="validate.schema"+f}else{t+=""+e.util.toQuotedString(s)}t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}var A=t;t=m.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+A+"]); "}else{t+=" validate.errors = ["+A+"]; return false; "}}else{t+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } ";if(l){t+=" else { "}return t}},,,function(e,r,n){var t=n(356),i=n(758),a=n(427),s=n(192),f=n(241),c=n(258),l=n(819),d=n(822),o=n(869);function baseOrderBy(e,r,n){if(r.length){r=t(r,function(e){if(o(e)){return function(r){return i(r,e.length===1?e[0]:e)}}return e})}else{r=[d]}var u=-1;r=t(r,c(a));var h=s(e,function(e,n,i){var a=t(r,function(r){return r(e)});return{criteria:a,index:++u,value:e}});return f(h,function(e,r){return l(e,r,n)})}e.exports=baseOrderBy},,,function(e){function mapToArray(e){var r=-1,n=Array(e.size);e.forEach(function(e,t){n[++r]=[t,e]});return n}e.exports=mapToArray},,,,function(e,r,n){var t=n(479),i=n(882);var a=t(i,"DataView");e.exports=a},,,,,function(e){"use strict";e.exports=function generate_if(e,r,n){var t=" ";var i=e.level;var a=e.dataLevel;var s=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var d="data"+(a||"");var o="valid"+i;var u="errs__"+i;var h=e.util.copy(e);h.level++;var p="valid"+h.level;var v=e.schema["then"],b=e.schema["else"],y=v!==undefined&&(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0:e.util.schemaHasRules(v,e.RULES.all)),g=b!==undefined&&(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0:e.util.schemaHasRules(b,e.RULES.all)),w=h.baseId;if(y||g){var m;h.createErrors=false;h.schema=s;h.schemaPath=f;h.errSchemaPath=c;t+=" var "+u+" = errors; var "+o+" = true; ";var A=e.compositeRule;e.compositeRule=h.compositeRule=true;t+=" "+e.validate(h)+" ";h.baseId=w;h.createErrors=true;t+=" errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ";e.compositeRule=h.compositeRule=A;if(y){t+=" if ("+p+") { ";h.schema=e.schema["then"];h.schemaPath=e.schemaPath+".then";h.errSchemaPath=e.errSchemaPath+"/then";t+=" "+e.validate(h)+" ";h.baseId=w;t+=" "+o+" = "+p+"; ";if(y&&g){m="ifClause"+i;t+=" var "+m+" = 'then'; "}else{m="'then'"}t+=" } ";if(g){t+=" else { "}}else{t+=" if (!"+p+") { "}if(g){h.schema=e.schema["else"];h.schemaPath=e.schemaPath+".else";h.errSchemaPath=e.errSchemaPath+"/else";t+=" "+e.validate(h)+" ";h.baseId=w;t+=" "+o+" = "+p+"; ";if(y&&g){m="ifClause"+i;t+=" var "+m+" = 'else'; "}else{m="'else'"}t+=" } "}t+=" if (!"+o+") { var err = ";if(e.createErrors!==false){t+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+m+" } ";if(e.opts.messages!==false){t+=" , message: 'should match \"' + "+m+" + '\" schema' "}if(e.opts.verbose){t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(vErrors); "}else{t+=" validate.errors = vErrors; return false; "}}t+=" } ";if(l){t+=" else { "}}else{if(l){t+=" if (true) { "}}return t}},,,,,,function(e,r,n){var t=n(416);function baseAssignValue(e,r,n){if(r=="__proto__"&&t){t(e,r,{configurable:true,enumerable:true,value:n,writable:true})}else{e[r]=n}}e.exports=baseAssignValue},function(e){var r=Array.isArray;e.exports=r},,function(e,r,n){var t=n(422);var i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var a=/\\(\\)?/g;var s=t(function(e){var r=[];if(e.charCodeAt(0)===46){r.push("")}e.replace(i,function(e,n,t,i){r.push(t?i.replace(a,"$1"):n||e)});return r});e.exports=s},,,function(e,r,n){"use strict";var t=n(514);e.exports=t.DEFAULT=new t({include:[n(949)],explicit:[n(914),n(242),n(4)]})},function(e,r,n){"use strict";var t=n(896),i=n(578),a=n(726),s=n(969);var f=n(585);var c=i.ucs2length;var l=n(206);var d=a.Validation;e.exports=compile;function compile(e,r,n,o){var u=this,h=this._opts,p=[undefined],v={},b=[],y={},g=[],w={},m=[];r=r||{schema:e,refVal:p,refs:v};var A=checkCompiling.call(this,e,r,o);var E=this._compilations[A.index];if(A.compiling)return E.callValidate=callValidate;var S=this._formats;var k=this.RULES;try{var R=localCompile(e,r,n,o);E.validate=R;var M=E.callValidate;if(M){M.schema=R.schema;M.errors=null;M.refs=R.refs;M.refVal=R.refVal;M.root=R.root;M.$async=R.$async;if(h.sourceCode)M.source=R.source}return R}finally{endCompiling.call(this,e,r,o)}function callValidate(){var e=E.validate;var r=e.apply(this,arguments);callValidate.errors=e.errors;return r}function localCompile(e,n,s,o){var y=!n||n&&n.schema==e;if(n.schema!=r.schema)return compile.call(u,e,n,s,o);var w=e.$async===true;var A=f({isTop:true,schema:e,isRoot:y,baseId:o,root:n,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:a.MissingRef,RULES:k,validate:f,util:i,resolve:t,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:h,formats:S,logger:u.logger,self:u});A=vars(p,refValCode)+vars(b,patternCode)+vars(g,defaultCode)+vars(m,customRuleCode)+A;if(h.processCode)A=h.processCode(A,e);var E;try{var R=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",A);E=R(u,k,S,r,p,g,m,l,c,d);p[0]=E}catch(e){u.logger.error("Error compiling schema, function code:",A);throw e}E.schema=e;E.errors=null;E.refs=v;E.refVal=p;E.root=y?E:n;if(w)E.$async=true;if(h.sourceCode===true){E.source={code:A,patterns:b,defaults:g}}return E}function resolveRef(e,i,a){i=t.url(e,i);var s=v[i];var f,c;if(s!==undefined){f=p[s];c="refVal["+s+"]";return resolvedRef(f,c)}if(!a&&r.refs){var l=r.refs[i];if(l!==undefined){f=r.refVal[l];c=addLocalRef(i,f);return resolvedRef(f,c)}}c=addLocalRef(i);var d=t.call(u,localCompile,r,i);if(d===undefined){var o=n&&n[i];if(o){d=t.inlineRef(o,h.inlineRefs)?o:compile.call(u,o,r,n,e)}}if(d===undefined){removeLocalRef(i)}else{replaceLocalRef(i,d);return resolvedRef(d,c)}}function addLocalRef(e,r){var n=p.length;p[n]=r;v[e]=n;return"refVal"+n}function removeLocalRef(e){delete v[e]}function replaceLocalRef(e,r){var n=v[e];p[n]=r}function resolvedRef(e,r){return typeof e=="object"||typeof e=="boolean"?{code:r,schema:e,inline:true}:{code:r,$async:e&&!!e.$async}}function usePattern(e){var r=y[e];if(r===undefined){r=y[e]=b.length;b[r]=e}return"pattern"+r}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return i.toQuotedString(e);case"object":if(e===null)return"null";var r=s(e);var n=w[r];if(n===undefined){n=w[r]=g.length;g[n]=e}return"default"+n}}function useCustomRule(e,r,n,t){if(u._opts.validateSchema!==false){var i=e.definition.dependencies;if(i&&!i.every(function(e){return Object.prototype.hasOwnProperty.call(n,e)}))throw new Error("parent schema must have all required keywords: "+i.join(","));var a=e.definition.validateSchema;if(a){var s=a(r);if(!s){var f="keyword schema is invalid: "+u.errorsText(a.errors);if(u._opts.validateSchema=="log")u.logger.error(f);else throw new Error(f)}}}var c=e.definition.compile,l=e.definition.inline,d=e.definition.macro;var o;if(c){o=c.call(u,r,n,t)}else if(d){o=d.call(u,r,n,t);if(h.validateSchema!==false)u.validateSchema(o,true)}else if(l){o=l.call(u,t,e.keyword,r,n)}else{o=e.definition.validate;if(!o)return}if(o===undefined)throw new Error('custom keyword "'+e.keyword+'"failed to compile');var p=m.length;m[p]=o;return{code:"customRule"+p,validate:o}}}function checkCompiling(e,r,n){var t=compIndex.call(this,e,r,n);if(t>=0)return{index:t,compiling:true};t=this._compilations.length;this._compilations[t]={schema:e,root:r,baseId:n};return{index:t,compiling:false}}function endCompiling(e,r,n){var t=compIndex.call(this,e,r,n);if(t>=0)this._compilations.splice(t,1)}function compIndex(e,r,n){for(var t=0;t0&&n(l)){if(r>1){baseFlatten(l,r-1,n,a,s)}else{t(s,l)}}else if(!a){s[s.length]=l}}return s}e.exports=baseFlatten},function(e,r,n){var t=n(213);var i=Object.prototype;var a=i.hasOwnProperty;var s=i.toString;var f=t?t.toStringTag:undefined;function getRawTag(e){var r=a.call(e,f),n=e[f];try{e[f]=undefined;var t=true}catch(e){}var i=s.call(e);if(t){if(r){e[f]=n}else{delete e[f]}}return i}e.exports=getRawTag},function(e){"use strict";e.exports=function generate_properties(e,r,n){var t=" ";var i=e.level;var a=e.dataLevel;var s=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var d="data"+(a||"");var o="errs__"+i;var u=e.util.copy(e);var h="";u.level++;var p="valid"+u.level;var v="key"+i,b="idx"+i,y=u.dataLevel=e.dataLevel+1,g="data"+y,w="dataProperties"+i;var m=Object.keys(s||{}).filter(notProto),A=e.schema.patternProperties||{},E=Object.keys(A).filter(notProto),S=e.schema.additionalProperties,k=m.length||E.length,R=S===false,M=typeof S=="object"&&Object.keys(S).length,C=e.opts.removeAdditional,D=R||M||C,_=e.opts.ownProperties,j=e.baseId;var B=e.schema.required;if(B&&!(e.opts.$data&&B.$data)&&B.length8){t+=" || validate.schema"+f+".hasOwnProperty("+v+") "}else{var U=m;if(U){var x,I=-1,K=U.length-1;while(I0:e.util.schemaHasRules($,e.RULES.all)){var ee=e.util.getProperty(x),J=d+ee,re=Q&&$.default!==undefined;u.schema=$;u.schemaPath=f+ee;u.errSchemaPath=c+"/"+e.util.escapeFragment(x);u.errorPath=e.util.getPath(e.errorPath,x,e.opts.jsonPointers);u.dataPathArr[y]=e.util.toQuotedString(x);var Y=e.validate(u);u.baseId=j;if(e.util.varOccurences(Y,g)<2){Y=e.util.varReplace(Y,g,J);var ne=J}else{var ne=g;t+=" var "+g+" = "+J+"; "}if(re){t+=" "+Y+" "}else{if(q&&q[x]){t+=" if ( "+ne+" === undefined ";if(_){t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(x)+"') "}t+=") { "+p+" = false; ";var N=e.errorPath,L=c,te=e.util.escapeQuotes(x);if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(N,x,e.opts.jsonPointers)}c=e.errSchemaPath+"/required";var W=W||[];W.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+te+"' } ";if(e.opts.messages!==false){t+=" , message: '";if(e.opts._errorDataPathProperty){t+="is a required property"}else{t+="should have required property \\'"+te+"\\'"}t+="' "}if(e.opts.verbose){t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}var H=t;t=W.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+H+"]); "}else{t+=" validate.errors = ["+H+"]; return false; "}}else{t+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}c=L;e.errorPath=N;t+=" } else { "}else{if(l){t+=" if ( "+ne+" === undefined ";if(_){t+=" || ! Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(x)+"') "}t+=") { "+p+" = true; } else { "}else{t+=" if ("+ne+" !== undefined ";if(_){t+=" && Object.prototype.hasOwnProperty.call("+d+", '"+e.util.escapeQuotes(x)+"') "}t+=" ) { "}}t+=" "+Y+" } "}}if(l){t+=" if ("+p+") { ";h+="}"}}}}if(E.length){var ie=E;if(ie){var F,ae=-1,se=ie.length-1;while(ae0:e.util.schemaHasRules($,e.RULES.all)){u.schema=$;u.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(F);u.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(F);if(_){t+=" "+w+" = "+w+" || Object.keys("+d+"); for (var "+b+"=0; "+b+"<"+w+".length; "+b+"++) { var "+v+" = "+w+"["+b+"]; "}else{t+=" for (var "+v+" in "+d+") { "}t+=" if ("+e.usePattern(F)+".test("+v+")) { ";u.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers);var J=d+"["+v+"]";u.dataPathArr[y]=v;var Y=e.validate(u);u.baseId=j;if(e.util.varOccurences(Y,g)<2){t+=" "+e.util.varReplace(Y,g,J)+" "}else{t+=" var "+g+" = "+J+"; "+Y+" "}if(l){t+=" if (!"+p+") break; "}t+=" } ";if(l){t+=" else "+p+" = true; "}t+=" } ";if(l){t+=" if ("+p+") { ";h+="}"}}}}}if(l){t+=" "+h+" if ("+o+" == errors) {"}return t}},,function(e){function isObjectLike(e){return e!=null&&typeof e=="object"}e.exports=isObjectLike},,function(e){var r=Function.prototype;var n=r.toString;function toSource(e){if(e!=null){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}e.exports=toSource},,,function(e,r,n){var t=n(475);function toString(e){return e==null?"":t(e)}e.exports=toString},,,,,function(e){var r=9007199254740991;var n=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var i=typeof e;t=t==null?r:t;return!!t&&(i=="number"||i!="symbol"&&n.test(e))&&(e>-1&&e%1==0&&e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(e){"use strict";e.exports=function generate_contains(e,r,n){var t=" ";var i=e.level;var a=e.dataLevel;var s=e.schema[r];var f=e.schemaPath+e.util.getProperty(r);var c=e.errSchemaPath+"/"+r;var l=!e.opts.allErrors;var d="data"+(a||"");var o="valid"+i;var u="errs__"+i;var h=e.util.copy(e);var p="";h.level++;var v="valid"+h.level;var b="i"+i,y=h.dataLevel=e.dataLevel+1,g="data"+y,w=e.baseId,m=e.opts.strictKeywords?typeof s=="object"&&Object.keys(s).length>0:e.util.schemaHasRules(s,e.RULES.all);t+="var "+u+" = errors;var "+o+";";if(m){var A=e.compositeRule;e.compositeRule=h.compositeRule=true;h.schema=s;h.schemaPath=f;h.errSchemaPath=c;t+=" var "+v+" = false; for (var "+b+" = 0; "+b+" < "+d+".length; "+b+"++) { ";h.errorPath=e.util.getPathExpr(e.errorPath,b,e.opts.jsonPointers,true);var E=d+"["+b+"]";h.dataPathArr[y]=b;var S=e.validate(h);h.baseId=w;if(e.util.varOccurences(S,g)<2){t+=" "+e.util.varReplace(S,g,E)+" "}else{t+=" var "+g+" = "+E+"; "+S+" "}t+=" if ("+v+") break; } ";e.compositeRule=h.compositeRule=A;t+=" "+p+" if (!"+v+") {"}else{t+=" if ("+d+".length == 0) {"}var k=k||[];k.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){t+=" , message: 'should contain a valid item' "}if(e.opts.verbose){t+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}var R=t;t=k.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+R+"]); "}else{t+=" validate.errors = ["+R+"]; return false; "}}else{t+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } else { ";if(m){t+=" errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } "}if(e.opts.allErrors){t+=" } "}return t}},,,function(e,r,n){"use strict";var t=n(199);var i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"];var a=["scalar","sequence","mapping"];function compileStyleAliases(e){var r={};if(e!==null){Object.keys(e).forEach(function(n){e[n].forEach(function(e){r[String(e)]=n})})}return r}function Type(e,r){r=r||{};Object.keys(r).forEach(function(r){if(i.indexOf(r)===-1){throw new t('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}});this.tag=e;this.kind=r["kind"]||null;this.resolve=r["resolve"]||function(){return true};this.construct=r["construct"]||function(e){return e};this.instanceOf=r["instanceOf"]||null;this.predicate=r["predicate"]||null;this.represent=r["represent"]||null;this.defaultStyle=r["defaultStyle"]||null;this.styleAliases=compileStyleAliases(r["styleAliases"]||null);if(a.indexOf(this.kind)===-1){throw new t('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},,function(e){"use strict";e.exports=function(e,r){if(!r)r={};if(typeof r==="function")r={cmp:r};var n=typeof r.cycles==="boolean"?r.cycles:false;var t=r.cmp&&function(e){return function(r){return function(n,t){var i={key:n,value:r[n]};var a={key:t,value:r[t]};return e(i,a)}}}(r.cmp);var i=[];return function stringify(e){if(e&&e.toJSON&&typeof e.toJSON==="function"){e=e.toJSON()}if(e===undefined)return;if(typeof e=="number")return isFinite(e)?""+e:"null";if(typeof e!=="object")return JSON.stringify(e);var r,a;if(Array.isArray(e)){a="[";for(r=0;r 1) { ";var p=e.schema.items&&e.schema.items.type,v=Array.isArray(p);if(!p||p=="object"||p=="array"||v&&(p.indexOf("object")>=0||p.indexOf("array")>=0)){t+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+d+"[i], "+d+"[j])) { "+o+" = false; break outer; } } } "}else{t+=" var itemIndices = {}, item; for (;i--;) { var item = "+d+"[i]; ";var b="checkDataType"+(v?"s":"");t+=" if ("+e.util[b](p,"item",e.opts.strictNumbers,true)+") continue; ";if(v){t+=" if (typeof item == 'string') item = '\"' + item; "}t+=" if (typeof itemIndices[item] == 'number') { "+o+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}t+=" } ";if(u){t+=" } "}t+=" if (!"+o+") { ";var y=y||[];y.push(t);t="";if(e.createErrors!==false){t+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ";if(e.opts.messages!==false){t+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(e.opts.verbose){t+=" , schema: ";if(u){t+="validate.schema"+f}else{t+=""+s}t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "}t+=" } "}else{t+=" {} "}var g=t;t=y.pop();if(!e.compositeRule&&l){if(e.async){t+=" throw new ValidationError(["+g+"]); "}else{t+=" validate.errors = ["+g+"]; return false; "}}else{t+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } ";if(l){t+=" else { "}}else{if(l){t+=" if (true) { "}}return t}}],function(e){"use strict";!function(){e.nmd=function(e){e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});return e}}()}); //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map index 809b1eb..08a3f2d 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["/webpack/bootstrap","../node_modules/js-yaml/lib/js-yaml/type/js/function.js","../node_modules/lodash/_arrayLikeKeys.js","../node_modules/lodash/_getAllKeys.js","../node_modules/lodash/_isPrototype.js","../node_modules/lodash/isArrayLike.js","../node_modules/uri-js/dist/es5/uri.all.js","../node_modules/lodash/_stackGet.js","../node_modules/js-yaml/lib/js-yaml/dumper.js","../src/strUtils.ts","../node_modules/js-yaml/lib/js-yaml/schema/failsafe.js","../node_modules/js-yaml/lib/js-yaml/type/pairs.js","../node_modules/lodash/_nativeCreate.js","../node_modules/lodash/_isMasked.js","../src/inputs.ts","../node_modules/lodash/_toKey.js","../node_modules/lodash/_arrayPush.js","../node_modules/lodash/_isKey.js","../node_modules/lodash/_freeGlobal.js","../external \"os\"","../node_modules/ajv/lib/dotjs/anyOf.js","../node_modules/lodash/_setToString.js","../node_modules/lodash/_equalObjects.js","../node_modules/ajv/lib/dotjs/oneOf.js","../node_modules/ajv/lib/dotjs/_limitLength.js","../node_modules/lodash/_baseIsMatch.js","../node_modules/lodash/_baseHasIn.js","../node_modules/ajv/lib/dotjs/comment.js","../node_modules/js-yaml/lib/js-yaml/common.js","../node_modules/ajv/lib/dotjs/_limitProperties.js","../src/index.ts","../node_modules/js-yaml/lib/js-yaml/type/merge.js","../node_modules/lodash/_overRest.js","../node_modules/lodash/_SetCache.js","../node_modules/ajv/lib/dotjs/enum.js","../node_modules/lodash/_baseKeys.js","../node_modules/js-yaml/lib/js-yaml/type/map.js","../node_modules/lodash/_baseIsArguments.js","../node_modules/js-yaml/lib/js-yaml/schema/core.js","../node_modules/@actions/core/lib/core.js","../node_modules/js-yaml/lib/js-yaml/loader.js","../node_modules/lodash/_baseMap.js","../node_modules/ajv/lib/dotjs/propertyNames.js","../node_modules/js-yaml/lib/js-yaml/exception.js","../node_modules/lodash/_objectToString.js","../node_modules/lodash/_compareAscending.js","../node_modules/fast-deep-equal/index.js","../node_modules/lodash/_Symbol.js","../node_modules/lodash/_cacheHas.js","../node_modules/lodash/_hashHas.js","../node_modules/lodash/_baseEach.js","../node_modules/js-yaml/lib/js-yaml/type/set.js","../node_modules/lodash/_baseSortBy.js","../node_modules/js-yaml/lib/js-yaml/type/js/regexp.js","../node_modules/lodash/_equalByTag.js","../node_modules/lodash/property.js","../node_modules/lodash/_baseUnary.js","../node_modules/lodash/_Uint8Array.js","../node_modules/lodash/isSymbol.js","../node_modules/lodash/get.js","../src/prepare.ts","../node_modules/ajv/lib/keyword.js","../node_modules/lodash/_isFlattenable.js","../node_modules/lodash/_equalArrays.js","../node_modules/lodash/_isKeyable.js","../node_modules/lodash/_overArg.js","../node_modules/lodash/_Stack.js","../node_modules/lodash/_createAggregator.js","../node_modules/lodash/isObject.js","../node_modules/@actions/core/lib/command.js","../node_modules/lodash/_arrayMap.js","../node_modules/lodash/_arrayAggregator.js","../node_modules/lodash/_mapCacheGet.js","../src/config.ts","../node_modules/lodash/_coreJsData.js","../node_modules/lodash/_listCacheHas.js","../node_modules/lodash/_arrayFilter.js","../node_modules/ajv/lib/dotjs/ref.js","../node_modules/lodash/_hashGet.js","../node_modules/lodash/_listCacheSet.js","../node_modules/lodash/isBuffer.js","../node_modules/ajv/lib/dotjs/_limit.js","../node_modules/ajv/lib/dotjs/items.js","../node_modules/lodash/hasIn.js","../node_modules/lodash/_arraySome.js","../node_modules/lodash/_baseIsNative.js","../node_modules/ajv/lib/data.js","../node_modules/lodash/_defineProperty.js","../node_modules/lodash/_hashClear.js","../node_modules/ajv/lib/dotjs/required.js","../node_modules/lodash/_memoizeCapped.js","../node_modules/js-yaml/lib/js-yaml/mark.js","../node_modules/lodash/_baseIteratee.js","../node_modules/js-yaml/lib/js-yaml/type/timestamp.js","../node_modules/ajv/lib/dotjs/allOf.js","../node_modules/lodash/_baseSetToString.js","../node_modules/lodash/_getMatchData.js","../node_modules/ajv/lib/definition_schema.js","../node_modules/lodash/_hashSet.js","../node_modules/lodash/_baseToString.js","../node_modules/lodash/_getNative.js","../node_modules/lodash/_isIterateeCall.js","../node_modules/js-yaml/lib/js-yaml/type/seq.js","../node_modules/lodash/_baseIsEqual.js","../node_modules/lodash/isArguments.js","../node_modules/lodash/isTypedArray.js","../node_modules/lodash/_baseGetTag.js","../node_modules/lodash/_matchesStrictComparable.js","../node_modules/lodash/_Promise.js","../node_modules/js-yaml/lib/js-yaml/schema.js","../node_modules/lodash/_baseAggregator.js","../node_modules/lodash/_baseIsTypedArray.js","../node_modules/lodash/isLength.js","../node_modules/json-schema-traverse/index.js","../node_modules/lodash/_getValue.js","../node_modules/js-yaml/lib/js-yaml/type/binary.js","../node_modules/lodash/_setToArray.js","../node_modules/ajv/lib/compile/rules.js","../node_modules/js-yaml/lib/js-yaml/type/float.js","../node_modules/js-yaml/lib/js-yaml/schema/json.js","../node_modules/ajv/lib/compile/util.js","../node_modules/ajv/lib/compile/ucs2length.js","../node_modules/lodash/_mapCacheSet.js","../node_modules/ajv/lib/dotjs/validate.js","../node_modules/lodash/_baseFor.js","../node_modules/ajv/lib/dotjs/dependencies.js","../node_modules/lodash/_isStrictComparable.js","../node_modules/lodash/_baseMatches.js","../node_modules/ajv/lib/compile/schema_obj.js","../node_modules/lodash/_ListCache.js","../node_modules/lodash/_mapCacheHas.js","../node_modules/lodash/_mapCacheClear.js","../node_modules/lodash/groupBy.js","../external \"path\"","../node_modules/ajv/lib/compile/formats.js","../node_modules/lodash/stubArray.js","../node_modules/lodash/_createBaseEach.js","../node_modules/lodash/_nodeUtil.js","../node_modules/lodash/keys.js","../node_modules/lodash/_apply.js","../node_modules/lodash/_getTag.js","../node_modules/lodash/_mapCacheDelete.js","../node_modules/lodash/_hasPath.js","../node_modules/ajv/lib/dotjs/const.js","../node_modules/js-yaml/lib/js-yaml/type/omap.js","../node_modules/js-yaml/lib/js-yaml/type/null.js","../node_modules/js-yaml/lib/js-yaml/type/str.js","../node_modules/js-yaml/lib/js-yaml/type/bool.js","../node_modules/ajv/lib/cache.js","../node_modules/ajv/lib/dotjs/_limitItems.js","../node_modules/lodash/_castPath.js","../node_modules/lodash/isString.js","../node_modules/lodash/_createBaseFor.js","../node_modules/lodash/_baseForOwn.js","../node_modules/openpgp/dist/openpgp.js","../node_modules/lodash/_listCacheDelete.js","../node_modules/lodash/_stackDelete.js","../node_modules/ajv/lib/compile/error_classes.js","../node_modules/lodash/_shortOut.js","../node_modules/lodash/stubFalse.js","../external \"fs\"","../node_modules/ajv/lib/dotjs/not.js","../node_modules/lodash/_assocIndexOf.js","../node_modules/lodash/_baseGet.js","../node_modules/lodash/_baseTimes.js","../node_modules/ajv/lib/dotjs/multipleOf.js","../node_modules/lodash/sortBy.js","../node_modules/lodash/_nativeKeys.js","../node_modules/lodash/_listCacheGet.js","../node_modules/lodash/_listCacheClear.js","../node_modules/lodash/_Set.js","../node_modules/lodash/isFunction.js","../node_modules/lodash/_getSymbols.js","../node_modules/lodash/_setCacheHas.js","../node_modules/ajv/lib/dotjs/index.js","../node_modules/lodash/_compareMultiple.js","../node_modules/lodash/identity.js","../node_modules/lodash/_baseProperty.js","../node_modules/lodash/_stackClear.js","../node_modules/ajv/lib/dotjs/format.js","../node_modules/lodash/_baseOrderBy.js","../node_modules/lodash/_mapToArray.js","../node_modules/lodash/_DataView.js","../node_modules/ajv/lib/dotjs/if.js","../node_modules/lodash/_baseAssignValue.js","../node_modules/lodash/isArray.js","../node_modules/lodash/_stringToPath.js","../node_modules/js-yaml/lib/js-yaml/schema/default_full.js","../node_modules/ajv/lib/compile/index.js","../node_modules/lodash/_Map.js","../node_modules/lodash/_root.js","../node_modules/lodash/memoize.js","../node_modules/ajv/lib/compile/async.js","../node_modules/lodash/_setCacheAdd.js","../node_modules/ajv/lib/compile/resolve.js","../node_modules/lodash/eq.js","../node_modules/lodash/_Hash.js","../node_modules/lodash/_baseMatchesProperty.js","../node_modules/lodash/_stackHas.js","../node_modules/ajv/lib/dotjs/pattern.js","../node_modules/js-yaml/lib/js-yaml/type/js/undefined.js","../node_modules/lodash/_WeakMap.js","../node_modules/js-yaml/lib/js-yaml.js","../node_modules/js-yaml/index.js","../node_modules/lodash/_hashDelete.js","../node_modules/lodash/_baseFlatten.js","../node_modules/lodash/_getRawTag.js","../node_modules/ajv/lib/dotjs/properties.js","../node_modules/lodash/isObjectLike.js","../node_modules/lodash/_toSource.js","../node_modules/lodash/toString.js","../node_modules/lodash/_isIndex.js","../node_modules/lodash/_MapCache.js","../node_modules/ajv/lib/ajv.js","../node_modules/lodash/constant.js","../node_modules/js-yaml/lib/js-yaml/schema/default_safe.js","../node_modules/lodash/_baseGetAllKeys.js","../node_modules/lodash/_stackSet.js","../node_modules/js-yaml/lib/js-yaml/type/int.js","../node_modules/ajv/lib/dotjs/contains.js","../node_modules/js-yaml/lib/js-yaml/type.js","../node_modules/fast-json-stable-stringify/index.js","../node_modules/ajv/lib/dotjs/custom.js","../node_modules/lodash/_basePropertyDeep.js","../src/errors.ts","../node_modules/lodash/_baseRest.js","../node_modules/lodash/_getMapData.js","../src/fsUtils.ts","../node_modules/lodash/_baseIsEqualDeep.js","../node_modules/ajv/lib/dotjs/uniqueItems.js","/webpack/runtime/node module decorator"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","threw","modules","call","ab","__dirname","startup","runtime","require","baseTimes","isArguments","isArray","isBuffer","isIndex","isTypedArray","objectProto","Object","prototype","hasOwnProperty","arrayLikeKeys","value","inherited","isArr","isArg","isBuff","isType","skipIndexes","result","length","String","key","push","baseGetAllKeys","getSymbols","keys","getAllKeys","object","isPrototype","Ctor","constructor","proto","isFunction","isLength","isArrayLike","global","factory","undefined","this","merge","_len","arguments","sets","Array","_key","slice","xl","x","join","subexp","str","typeOf","o","toString","split","pop","shift","toLowerCase","toUpperCase","toArray","obj","setInterval","assign","target","source","buildExps","isIRI","ALPHA$$","CR$","DIGIT$$","DQUOTE$$","HEXDIG$$","LF$$","SP$$","PCT_ENCODED$","GEN_DELIMS$$","SUB_DELIMS$$","RESERVED$$","UCSCHAR$$","IPRIVATE$$","UNRESERVED$$","SCHEME$","USERINFO$","DEC_OCTET$","DEC_OCTET_RELAXED$","IPV4ADDRESS$","H16$","LS32$","IPV6ADDRESS1$","IPV6ADDRESS2$","IPV6ADDRESS3$","IPV6ADDRESS4$","IPV6ADDRESS5$","IPV6ADDRESS6$","IPV6ADDRESS7$","IPV6ADDRESS8$","IPV6ADDRESS9$","IPV6ADDRESS$","ZONEID$","IPV6ADDRZ$","IPV6ADDRZ_RELAXED$","IPVFUTURE$","IP_LITERAL$","REG_NAME$","HOST$","PORT$","AUTHORITY$","PCHAR$","SEGMENT$","SEGMENT_NZ$","SEGMENT_NZ_NC$","PATH_ABEMPTY$","PATH_ABSOLUTE$","PATH_NOSCHEME$","PATH_ROOTLESS$","PATH_EMPTY$","PATH$","QUERY$","FRAGMENT$","HIER_PART$","URI$","RELATIVE_PART$","RELATIVE$","URI_REFERENCE$","ABSOLUTE_URI$","GENERIC_REF$","RELATIVE_REF$","ABSOLUTE_REF$","SAMEDOC_REF$","AUTHORITY_REF$","NOT_SCHEME","RegExp","NOT_USERINFO","NOT_HOST","NOT_PATH","NOT_PATH_NOSCHEME","NOT_QUERY","NOT_FRAGMENT","ESCAPE","UNRESERVED","OTHER_CHARS","PCT_ENCODED","IPV4ADDRESS","IPV6ADDRESS","URI_PROTOCOL","IRI_PROTOCOL","slicedToArray","sliceIterator","arr","_arr","_n","_d","_e","_i","Symbol","iterator","_s","next","done","err","TypeError","toConsumableArray","arr2","from","maxInt","base","tMin","tMax","skew","damp","initialBias","initialN","delimiter","regexPunycode","regexNonASCII","regexSeparators","errors","overflow","not-basic","invalid-input","baseMinusTMin","floor","Math","stringFromCharCode","fromCharCode","error$1","type","RangeError","map","array","fn","mapDomain","string","parts","replace","labels","encoded","ucs2decode","output","counter","charCodeAt","extra","ucs2encode","fromCodePoint","apply","basicToDigit","codePoint","digitToBasic","digit","flag","adapt","delta","numPoints","firstTime","k","decode","input","inputLength","n","bias","basic","lastIndexOf","j","index","oldi","w","t","baseMinusT","out","splice","encode","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","_step","_currentValue2","return","basicLength","handledCPCount","m","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","_step2","currentValue","handledCPCountPlusOne","_iteratorNormalCompletion3","_didIteratorError3","_iteratorError3","_iterator3","_step3","_currentValue","q","qMinusT","toUnicode","test","toASCII","punycode","version","ucs2","SCHEMES","pctEncChar","chr","c","e","pctDecChars","newStr","il","parseInt","substr","c2","_c","c3","_normalizeComponentEncoding","components","protocol","decodeUnreserved","decStr","match","scheme","userinfo","host","path","query","fragment","_stripLeadingZeros","_normalizeIPv4","matches","_matches","address","_normalizeIPv6","_matches2","zone","_address$toLowerCase$","reverse","_address$toLowerCase$2","last","first","firstFields","lastFields","isLastFieldIPv4Address","fieldCount","lastFieldsStart","fields","allZeroFields","reduce","acc","field","lastLongest","longestZeroFields","sort","a","b","newHost","newFirst","newLast","URI_PARSE","NO_MATCH_IS_UNDEFINED","parse","uriString","options","iri","reference","port","isNaN","indexOf","error","schemeHandler","unicodeSupport","domainHost","_recomposeAuthority","uriTokens","_","$1","$2","RDS1","RDS2","RDS3","RDS5","removeDotSegments","im","s","Error","serialize","authority","charAt","absolutePath","resolveComponents","relative","skipNormalization","tolerant","resolve","baseURI","relativeURI","schemelessOptions","normalize","uri","equal","uriA","uriB","escapeComponent","unescapeComponent","handler","handler$1","O","ATEXT$$","QTEXT$$","VCHAR$$","SOME_DELIMS$$","NOT_LOCAL_PART","NOT_HFNAME","NOT_HFVALUE","handler$2","parse$$1","mailtoComponents","to","unknownHeaders","headers","hfields","hfield","toAddrs","_x","_xl","subject","body","_x2","_xl2","addr","serialize$$1","toAddr","atIdx","localPart","domain","name","URN_PARSE","handler$3","urnComponents","nid","nss","urnScheme","uriComponents","UUID","handler$4","uuidComponents","uuid","defineProperty","stackGet","__data__","get","common","YAMLException","DEFAULT_FULL_SCHEMA","DEFAULT_SAFE_SCHEMA","_toString","_hasOwnProperty","CHAR_TAB","CHAR_LINE_FEED","CHAR_CARRIAGE_RETURN","CHAR_SPACE","CHAR_EXCLAMATION","CHAR_DOUBLE_QUOTE","CHAR_SHARP","CHAR_PERCENT","CHAR_AMPERSAND","CHAR_SINGLE_QUOTE","CHAR_ASTERISK","CHAR_COMMA","CHAR_MINUS","CHAR_COLON","CHAR_EQUALS","CHAR_GREATER_THAN","CHAR_QUESTION","CHAR_COMMERCIAL_AT","CHAR_LEFT_SQUARE_BRACKET","CHAR_RIGHT_SQUARE_BRACKET","CHAR_GRAVE_ACCENT","CHAR_LEFT_CURLY_BRACKET","CHAR_VERTICAL_LINE","CHAR_RIGHT_CURLY_BRACKET","ESCAPE_SEQUENCES","DEPRECATED_BOOLEANS_SYNTAX","compileStyleMap","schema","tag","style","compiledTypeMap","styleAliases","encodeHex","character","handle","repeat","State","indent","max","noArrayIndent","skipInvalid","flowLevel","isNothing","styleMap","sortKeys","lineWidth","noRefs","noCompatMode","condenseFlow","implicitTypes","compiledImplicit","explicitTypes","compiledExplicit","duplicates","usedDuplicates","indentString","spaces","ind","position","line","generateNextLine","state","level","testImplicitResolving","isWhitespace","isPrintable","isNsChar","isPlainSafe","prev","isPlainSafeFirst","needIndentIndicator","leadingSpaceRe","STYLE_PLAIN","STYLE_SINGLE","STYLE_LITERAL","STYLE_FOLDED","STYLE_DOUBLE","chooseScalarStyle","singleLineOnly","indentPerLevel","testAmbiguousType","char","prev_char","hasLineBreak","hasFoldableLine","shouldTrackWidth","previousLineBreak","plain","writeScalar","iskey","dump","min","testAmbiguity","blockHeader","dropEndingNewline","foldString","escapeString","indentIndicator","clip","keep","chomp","width","lineRe","nextLF","lastIndex","foldLine","prevMoreIndented","moreIndented","exec","prefix","breakRe","start","end","curr","nextChar","escapeSeq","writeFlowSequence","_result","_tag","writeNode","writeBlockSequence","compact","writeFlowMapping","objectKeyList","objectKey","objectValue","pairBuffer","writeBlockMapping","explicitPair","detectType","explicit","typeList","instanceOf","predicate","represent","defaultStyle","block","objectOrArray","duplicateIndex","duplicate","arrayLevel","getDuplicateReferences","objects","duplicatesIndexes","inspectNode","safeDump","extend","PATTERN_ENV_VER","replaceEnvVer","v","process","env","Schema","Type","resolveYamlPairs","data","pair","constructYamlPairs","kind","construct","getNative","nativeCreate","coreJsData","maskSrcKey","uid","IE_PROTO","isMasked","func","core_1","getRequiredInput","getInput","required","getOptionalInput","async","loadInputs","configFile","gpgPassphrase","isSymbol","INFINITY","toKey","arrayPush","values","offset","reIsDeepProp","reIsPlainProp","isKey","freeGlobal","generate_anyOf","it","$keyword","$ruleType","$lvl","$dataLvl","dataLevel","$schema","$schemaPath","schemaPath","util","getProperty","$errSchemaPath","errSchemaPath","$breakOnError","opts","allErrors","$data","$valid","$errs","$it","copy","$closingBraces","$nextValid","$noEmptySchema","every","$sch","strictKeywords","schemaHasRules","RULES","all","$currentBaseId","baseId","$wasComposite","compositeRule","arr1","$i","l1","validate","createErrors","toQuotedString","messages","verbose","baseSetToString","shortOut","setToString","COMPARE_PARTIAL_FLAG","equalObjects","other","bitmask","customizer","equalFunc","stack","isPartial","objProps","objLength","othProps","othLength","objStacked","othStacked","set","skipCtor","objValue","othValue","compared","objCtor","othCtor","generate_oneOf","$prevValid","$passingSchemas","generate__limitLength","$errorKeyword","$isData","$schemaValue","getData","dataPathArr","$op","unicode","$$outStack","__err","Stack","baseIsEqual","COMPARE_UNORDERED_FLAG","baseIsMatch","matchData","noCustomizer","srcValue","baseHasIn","generate_comment","$comment","isObject","sequence","sourceKeys","count","cycle","isNegativeZero","number","Number","NEGATIVE_INFINITY","generate__limitProperties","config_1","inputs_1","prepare_1","run","baseDir","inputs","config","loadConfig","startGroup","prepareMask","endGroup","prepareEnv","prepareFile","setFailed","main","cache","eval","cwd","resolveYamlMerge","nativeMax","overRest","transform","args","otherArgs","MapCache","setCacheAdd","setCacheHas","SetCache","add","has","generate_enum","$vSchema","nativeKeys","baseKeys","baseGetTag","isObjectLike","argsTag","baseIsArguments","include","__awaiter","thisArg","_arguments","P","generator","adopt","Promise","reject","fulfilled","step","rejected","then","__importStar","mod","__esModule","command_1","os","ExitCode","exportVariable","val","convertedVal","toCommandValue","issueCommand","setSecret","secret","addPath","inputPath","trim","setOutput","setCommandEcho","enabled","issue","message","exitCode","Failure","isDebug","debug","warning","info","stdout","write","EOL","group","saveState","getState","Mark","CONTEXT_FLOW_IN","CONTEXT_FLOW_OUT","CONTEXT_BLOCK_IN","CONTEXT_BLOCK_OUT","CHOMPING_CLIP","CHOMPING_STRIP","CHOMPING_KEEP","PATTERN_NON_PRINTABLE","PATTERN_NON_ASCII_LINE_BREAKS","PATTERN_FLOW_INDICATORS","PATTERN_TAG_HANDLE","PATTERN_TAG_URI","_class","is_EOL","is_WHITE_SPACE","is_WS_OR_EOL","is_FLOW_INDICATOR","fromHexCode","lc","escapedHexLen","fromDecimalCode","simpleEscapeSequence","charFromCodepoint","simpleEscapeCheck","simpleEscapeMap","filename","onWarning","legacy","json","listener","typeMap","lineStart","lineIndent","documents","generateError","throwError","throwWarning","directiveHandlers","YAML","handleYamlDirective","major","minor","checkLineBreaks","TAG","handleTagDirective","tagMap","captureSegment","checkJson","_position","_length","_character","mergeMappings","destination","overridableKeys","quantity","storeMappingPair","keyTag","keyNode","valueNode","startLine","startPos","readLineBreak","ch","skipSeparationSpace","allowComments","checkIndent","lineBreaks","testDocumentSeparator","writeFoldedLines","readPlainScalar","nodeIndent","withinFlowCollection","preceding","following","captureStart","captureEnd","hasPendingContent","_line","_lineStart","_lineIndent","_kind","readSingleQuotedScalar","readDoubleQuotedScalar","hexLength","hexResult","tmp","readFlowCollection","readNext","_anchor","anchor","terminator","isPair","isExplicitPair","isMapping","anchorMap","composeNode","readBlockScalar","folding","chomping","didReadContent","detectedIndent","textIndent","emptyLines","atMoreIndented","readBlockSequence","detected","readBlockMapping","flowIndent","allowCompact","_pos","atExplicitKey","readTagProperty","isVerbatim","isNamed","tagHandle","tagName","readAnchorProperty","readAlias","alias","parentIndent","nodeContext","allowToSeek","allowBlockStyles","allowBlockScalars","allowBlockCollections","indentStatus","atNewLine","hasContent","typeIndex","typeQuantity","blockIndent","readDocument","documentStart","directiveName","directiveArgs","hasDirectives","loadDocuments","nullpos","loadAll","load","safeLoadAll","safeLoad","baseEach","baseMap","collection","iteratee","generate_propertyNames","$key","$idx","$invalidName","$dataNxt","$nextData","$dataProperties","$ownProperties","ownProperties","$passData","$code","varOccurences","varReplace","reason","mark","captureStackTrace","create","nativeObjectToString","objectToString","compareAscending","valIsDefined","valIsNull","valIsReflexive","valIsSymbol","othIsDefined","othIsNull","othIsReflexive","othIsSymbol","flags","valueOf","root","cacheHas","hashHas","baseForOwn","createBaseEach","resolveYamlSet","constructYamlSet","baseSortBy","comparer","resolveJavascriptRegExp","regexp","tail","modifiers","constructJavascriptRegExp","representJavascriptRegExp","multiline","ignoreCase","isRegExp","Uint8Array","eq","equalArrays","mapToArray","setToArray","boolTag","dateTag","errorTag","mapTag","numberTag","regexpTag","setTag","stringTag","symbolTag","arrayBufferTag","dataViewTag","symbolProto","symbolValueOf","equalByTag","byteLength","byteOffset","buffer","convert","size","stacked","baseProperty","basePropertyDeep","property","baseUnary","baseGet","defaultValue","isString_1","__importDefault","strUtils_1","fsUtils_1","mask","default","file","content","actualFilename","writeFile","IDENTIFIER","customRuleCode","definitionSchema","addKeyword","getKeyword","remove","removeKeyword","validateKeyword","keyword","definition","keywords","dataType","_addRule","metaSchema","_opts","anyOf","$ref","validateSchema","compile","ruleGroup","rg","rules","rule","custom","code","implements","_validateKeyword","errorsText","spreadableSymbol","isConcatSpreadable","isFlattenable","arraySome","arrLength","arrStacked","seen","arrValue","othIndex","isKeyable","overArg","arg","ListCache","stackClear","stackDelete","stackHas","stackSet","entries","clear","arrayAggregator","baseAggregator","baseIteratee","createAggregator","setter","initializer","accumulator","command","properties","cmd","Command","CMD_STRING","[object Object]","cmdStr","escapeProperty","escapeData","JSON","stringify","arrayMap","getMapData","mapCacheGet","openpgp","ajv_1","js_yaml_1","fs_1","groupBy_1","sortBy_1","config_schema_json_1","errors_1","ERROR_KEYWORD_ORDER","assertConfig","ajv","groupedDataPathErrors","dataPaths","dataPath","dataPathErrors","sortedErrors","ConfigActionError","loadConfigWithGPGPassphrase","loadConfigFile","readFile","promises","pathResolve","raw","loadConfigYaml","decrypt","read","passwords","format","assocIndexOf","listCacheHas","arrayFilter","resIndex","generate_ref","$async","$refCode","isRoot","$refVal","resolveRef","$message","MissingRefError","missingRefs","logger","escapeQuotes","warn","inline","passContext","errorPath","$parentData","$parentDataProperty","__callValidate","HASH_UNDEFINED","hashGet","listCacheSet","stubFalse","freeExports","nodeType","freeModule","moduleExports","Buffer","nativeIsBuffer","generate__limit","$isMax","$exclusiveKeyword","$schemaExcl","$isDataExcl","$notOp","$schemaValueExcl","$exclusive","$exclType","$exclIsNumber","$opExpr","$opStr","generate_items","$additionalItems","additionalItems","$currErrSchemaPath","getPathExpr","jsonPointers","hasPath","hasIn","toSource","reRegExpChar","reIsHostCtor","funcProto","Function","funcToString","reIsNative","baseIsNative","pattern","KEYWORDS","keywordsJsonPointers","segments","hashClear","generate_required","loopRequired","$required","$property","i1","$propertySch","$currentErrorPath","$loopRequired","$propertyPath","$missingProperty","_errorDataPathProperty","$propertyKey","l2","$prop","$useData","arr3","i3","l3","getPath","memoize","MAX_MEMOIZE_SIZE","memoizeCapped","column","getSnippet","maxLength","head","snippet","where","baseMatches","baseMatchesProperty","identity","YAML_DATE_REGEXP","YAML_TIMESTAMP_REGEXP","resolveYamlTimestamp","constructYamlTimestamp","year","month","day","hour","minute","second","fraction","tz_hour","tz_minute","date","Date","UTC","setTime","getTime","representYamlTimestamp","toISOString","generate_allOf","$allSchemasEmpty","constant","configurable","enumerable","writable","isStrictComparable","getMatchData","$id","definitions","simpleTypes","dependencies","statements","valid","not","items","modifying","const","hashSet","symbolToString","baseToString","getValue","isIterateeCall","baseIsEqualDeep","propertyIsEnumerable","baseIsTypedArray","nodeUtil","nodeIsTypedArray","getRawTag","nullTag","undefinedTag","symToStringTag","toStringTag","matchesStrictComparable","compileList","exclude","forEach","includedSchema","currentType","previousType","previousIndex","filter","compileMap","scalar","mapping","fallback","collectType","implicit","loadKind","DEFAULT","createSchema","schemas","types","arrayTag","funcTag","objectTag","weakMapTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","typedArrayTags","MAX_SAFE_INTEGER","traverse","cb","pre","post","_traverse","contains","additionalProperties","propertyNames","arrayKeywords","allOf","oneOf","propsKeywords","patternProperties","skipKeywords","enum","maximum","minimum","exclusiveMaximum","exclusiveMinimum","multipleOf","minLength","maxItems","minItems","uniqueItems","maxProperties","minProperties","jsonPtr","rootSchema","parentJsonPtr","parentKeyword","parentSchema","keyIndex","sch","prop","escapeJsonPtr","allKeys","ruleModules","toHash","ALL","TYPES","implKeywords","concat","YAML_FLOAT_PATTERN","resolveYamlFloat","constructYamlFloat","sign","digits","POSITIVE_INFINITY","NaN","unshift","parseFloat","d","SCIENTIFIC_WITHOUT_DOT","representYamlFloat","res","isFloat","checkDataType","checkDataTypes","coerceToTypes","ucs2length","schemaHasRulesExcept","schemaUnknownRules","unescapeFragment","unescapeJsonPointer","escapeFragment","escapeJsonPointer","strictNumbers","negate","EQUAL","AND","OK","NOT","dataTypes","null","integer","COERCE_TO_TYPES","optionCoerceTypes","hash","SINGLE_QUOTE","dataVar","expr","exceptKeyword","currentPath","isNumber","joinPaths","JSON_POINTER","RELATIVE_JSON_POINTER","lvl","paths","up","jsonPointer","segment","decodeURIComponent","encodeURIComponent","len","pos","mapCacheSet","generate_validate","$refKeywords","self","_getId","$unknownKwd","$keywordsMsg","isTop","sourceCode","processCode","$top","rootId","fullPath","useDefaults","strictDefaults","$defaultMsg","url","$closingBraces1","$closingBraces2","$typeSchema","$typeIsArray","nullable","extendRefs","coerceTypes","$coerceToTypes","$rulesGroup","$shouldUseGroup","$method","$dataType","$coerced","$type","i2","$schemaKeys","useDefault","arr4","l4","arr5","$rule","i5","l5","$shouldUseRule","$ruleImplementsSomeKeyword","impl","createBaseFor","baseFor","generate_dependencies","$schemaDeps","$propertyDeps","$deps","SchemaObject","listCacheClear","listCacheDelete","listCacheGet","entry","mapCacheHas","Hash","Map","mapCacheClear","baseAssignValue","groupBy","DATE","DAYS","TIME","HOSTNAME","URI","URIREF","URITEMPLATE","URL","JSON_POINTER_URI_FRAGMENT","formats","mode","fast","time","date-time","uri-reference","uri-template","email","hostname","ipv4","ipv6","regex","json-pointer","json-pointer-uri-fragment","relative-json-pointer","full","date_time","isLeapYear","timeZone","DATE_TIME_SEPARATOR","dateTime","NOT_URI_FRAGMENT","Z_ANCHOR","stubArray","eachFunc","fromRight","iterable","freeProcess","binding","DataView","Set","WeakMap","promiseTag","dataViewCtorString","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","getTag","ArrayBuffer","ctorString","mapCacheDelete","castPath","hasFunc","generate_const","resolveYamlOmap","objectKeys","pairKey","pairHasKey","constructYamlOmap","resolveYamlNull","constructYamlNull","isNull","canonical","lowercase","uppercase","camelcase","resolveYamlBoolean","constructYamlBoolean","isBoolean","Cache","_cache","put","Cache_put","Cache_get","del","Cache_del","Cache_clear","generate__limitItems","stringToPath","isString","keysFunc","props","f","u","p","r","1","arrayProto","Validation","errorSubclass","ValidationError","MissingRef","validation","ref","missingRef","missingSchema","normalizeId","Subclass","HOT_COUNT","HOT_SPAN","nativeNow","now","lastCalled","stamp","remaining","generate_not","$allErrorsOption","generate_multipleOf","multipleOfPrecision","baseFlatten","baseOrderBy","baseRest","sortBy","iteratees","asyncTag","genTag","proxyTag","nativeGetSymbols","getOwnPropertySymbols","symbol","if","compareMultiple","orders","objCriteria","criteria","othCriteria","ordersLength","order","generate_format","$unknownFormats","unknownFormats","$allowUnknown","$format","$isObject","$formatType","$formatRef","generate_if","$thenSch","$elseSch","$thenPresent","$elsePresent","$ifClause","rePropName","reEscapeChar","quote","subString","errorClasses","stableStringify","validateGenerator","localRefs","refVal","refs","patterns","patternsHash","defaults","defaultsHash","customRules","checkCompiling","compilation","_compilations","compiling","callValidate","_formats","localCompile","cv","endCompiling","_schema","_root","usePattern","useCustomRule","vars","refValCode","patternCode","defaultCode","makeValidate","refIndex","_refVal","refCode","resolvedRef","rootRefId","addLocalRef","localSchema","inlineRef","inlineRefs","removeLocalRef","replaceLocalRef","refId","regexStr","valueStr","deps","macro","compIndex","statement","freeSelf","FUNC_ERROR_TEXT","resolver","memoized","compileAsync","meta","callback","loadSchema","loadMetaSchemaOf","schemaObj","_addSchema","_compileAsync","getSchema","_compile","loadMissingSchema","added","schemaPromise","_loadingSchemas","removePromise","addSchema","_refs","_schemas","getFullPath","resolveUrl","ids","resolveIds","resolveSchema","refPath","_getFullPath","id","resolveRecursive","getJsonPointer","parsedRef","PREVENT_SCOPE_CHANGE","part","SIMPLE_INLINED","limit","checkNoRef","countKeys","item","Infinity","TRAILING_SLASH_HASH","schemaId","baseIds","","fullPaths","hashDelete","generate_pattern","$regexp","resolveJavascriptUndefined","constructJavascriptUndefined","representJavascriptUndefined","isUndefined","loader","dumper","deprecated","FAILSAFE_SCHEMA","JSON_SCHEMA","CORE_SCHEMA","MINIMAL_SCHEMA","SAFE_SCHEMA","DEFAULT_SCHEMA","scan","compose","addConstructor","yaml","depth","isStrict","isOwn","unmasked","generate_properties","notProto","$pProperties","$pPropertyKeys","$aProperties","$someProperties","$noAdditional","$additionalIsSchema","$removeAdditional","removeAdditional","$checkAdditional","$requiredHash","$pProperty","$additionalProperty","$useDefaults","$hasDefault","i4","reIsUint","compileSchema","$dataMetaSchema","Ajv","addMetaSchema","removeSchema","addFormat","customKeyword","META_SCHEMA_ID","META_IGNORE_OPTIONS","META_SUPPORT_DATA","setLogger","_fragments","chooseGetId","errorDataPath","_metaOpts","getMetaSchemaOptions","addInitialFormats","addInitialKeywords","addDefaultMetaSchema","addInitialSchemas","schemaKeyRef","_meta","_skipValidation","checkUnique","skipValidation","throwOrLogError","defaultMeta","keyRef","_getSchemaObj","_getSchemaFragment","_removeAllSchemas","cacheKey","shouldAddSchema","cached","addUsedSchema","willValidate","recursiveMeta","currentOpts","_validate","_get$IdOrId","_get$Id","separator","text","$dataSchema","optsSchemas","metaOpts","log","noop","console","symbolsFunc","LARGE_ARRAY_SIZE","pairs","isHexCode","isOctCode","isDecCode","resolveYamlInteger","hasDigits","constructYamlInteger","isInteger","binary","octal","decimal","hexadecimal","generate_contains","$nonEmptySchema","TYPE_CONSTRUCTOR_OPTIONS","YAML_NODE_KINDS","compileStyleAliases","cmp","cycles","node","aobj","bobj","toJSON","isFinite","seenIndex","generate_custom","$definition","$rDef","$compile","$inline","$macro","$ruleValidate","$validateCode","$validateSchema","$ruleErrs","$ruleErr","$asyncKeyword","def_callRuleValidate","def_customError","ActionError","super","setPrototypeOf","path_1","makeDir","mkdir","stat","targetPath","isDirectory","recursive","relativeDir","dirname","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","generate_uniqueItems","$itemType","nmd","children"],"mappings":"0CACA,IAAAA,EAAA,GAGA,SAAAC,oBAAAC,GAGA,GAAAF,EAAAE,GAAA,CACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,GAAA,CACAG,EAAAH,EACAI,EAAA,MACAH,QAAA,IAIA,I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,kBAAAA,EAAAS,KAAA8B,eAAA5B,GAAA,6BAChB,GAAAX,EAAAc,KAAA0B,WAAA,MAAA,CACAja,GAAA,kGAEA,GAAAyX,EAAAc,KAAA2B,QAAA,CACAla,GAAA,eACA,GAAAgc,EAAA,CACAhc,GAAA,kBAAA,MACS,CACTA,GAAA,GAAA,EAEAA,GAAA,2CAAAyX,EAAA,WAAA,YAAA,EAAA,IAEAzX,GAAA,UACK,CACLA,GAAA,OAEA,IAAAuc,EAAAvc,EACAA,EAAAsc,EAAAnnB,MACA,IAAAsiB,EAAAiC,eAAApB,EAAA,CAEA,GAAAb,EAAAf,MAAA,CACA1W,GAAA,+BAAA,EAAA,WACO,CACPA,GAAA,uBAAA,EAAA,yBAEK,CACLA,GAAA,cAAA,EAAA,+EAEAA,GAAA,MACA,GAAAsY,EAAA,CACAtY,GAAA,gBAEG,CACH,GAAAsY,EAAA,CACAtY,GAAA,iBAGA,OAAAA,0CCpFAlP,EAAA80D,IAAA,SAAA30D,GACAA,EAAA23C,MAAA,GACA,IAAA33C,EAAA40D,SAAA50D,EAAA40D,SAAA,GACA1zD,OAAAgZ,eAAAla,EAAA,SAAA,CACAmuC,WAAA,KACA9zB,IAAA,WAAmB,OAAAra,EAAAE,KAEnBgB,OAAAgZ,eAAAla,EAAA,KAAA,CACAmuC,WAAA,KACA9zB,IAAA,WAAmB,OAAAra,EAAAC,KAEnB,OAAAD","file":"index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tvar threw = true;\n \t\ttry {\n \t\t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n \t\t\tthrew = false;\n \t\t} finally {\n \t\t\tif(threw) delete installedModules[moduleId];\n \t\t}\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t__webpack_require__.ab = __dirname + \"/\";\n\n \t// the startup function\n \tfunction startup() {\n \t\t// Load entry module and return exports\n \t\treturn __webpack_require__(144);\n \t};\n \t// initialize runtime\n \truntime(__webpack_require__);\n\n \t// run startup\n \treturn startup();\n",null,"var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbols = require('./_getSymbols'),\n keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","/** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n\ttypeof define === 'function' && define.amd ? define(['exports'], factory) :\n\t(factory((global.URI = global.URI || {})));\n}(this, (function (exports) { 'use strict';\n\nfunction merge() {\n for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {\n sets[_key] = arguments[_key];\n }\n\n if (sets.length > 1) {\n sets[0] = sets[0].slice(0, -1);\n var xl = sets.length - 1;\n for (var x = 1; x < xl; ++x) {\n sets[x] = sets[x].slice(1, -1);\n }\n sets[xl] = sets[xl].slice(1);\n return sets.join('');\n } else {\n return sets[0];\n }\n}\nfunction subexp(str) {\n return \"(?:\" + str + \")\";\n}\nfunction typeOf(o) {\n return o === undefined ? \"undefined\" : o === null ? \"null\" : Object.prototype.toString.call(o).split(\" \").pop().split(\"]\").shift().toLowerCase();\n}\nfunction toUpperCase(str) {\n return str.toUpperCase();\n}\nfunction toArray(obj) {\n return obj !== undefined && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== \"number\" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : [];\n}\nfunction assign(target, source) {\n var obj = target;\n if (source) {\n for (var key in source) {\n obj[key] = source[key];\n }\n }\n return obj;\n}\n\nfunction buildExps(isIRI) {\n var ALPHA$$ = \"[A-Za-z]\",\n CR$ = \"[\\\\x0D]\",\n DIGIT$$ = \"[0-9]\",\n DQUOTE$$ = \"[\\\\x22]\",\n HEXDIG$$ = merge(DIGIT$$, \"[A-Fa-f]\"),\n //case-insensitive\n LF$$ = \"[\\\\x0A]\",\n SP$$ = \"[\\\\x20]\",\n PCT_ENCODED$ = subexp(subexp(\"%[EFef]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%[89A-Fa-f]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%\" + HEXDIG$$ + HEXDIG$$)),\n //expanded\n GEN_DELIMS$$ = \"[\\\\:\\\\/\\\\?\\\\#\\\\[\\\\]\\\\@]\",\n SUB_DELIMS$$ = \"[\\\\!\\\\$\\\\&\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\;\\\\=]\",\n RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$),\n UCSCHAR$$ = isIRI ? \"[\\\\xA0-\\\\u200D\\\\u2010-\\\\u2029\\\\u202F-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF]\" : \"[]\",\n //subset, excludes bidi control characters\n IPRIVATE$$ = isIRI ? \"[\\\\uE000-\\\\uF8FF]\" : \"[]\",\n //subset\n UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, \"[\\\\-\\\\.\\\\_\\\\~]\", UCSCHAR$$),\n SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, \"[\\\\+\\\\-\\\\.]\") + \"*\"),\n USERINFO$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:]\")) + \"*\"),\n DEC_OCTET$ = subexp(subexp(\"25[0-5]\") + \"|\" + subexp(\"2[0-4]\" + DIGIT$$) + \"|\" + subexp(\"1\" + DIGIT$$ + DIGIT$$) + \"|\" + subexp(\"[1-9]\" + DIGIT$$) + \"|\" + DIGIT$$),\n DEC_OCTET_RELAXED$ = subexp(subexp(\"25[0-5]\") + \"|\" + subexp(\"2[0-4]\" + DIGIT$$) + \"|\" + subexp(\"1\" + DIGIT$$ + DIGIT$$) + \"|\" + subexp(\"0?[1-9]\" + DIGIT$$) + \"|0?0?\" + DIGIT$$),\n //relaxed parsing rules\n IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$),\n H16$ = subexp(HEXDIG$$ + \"{1,4}\"),\n LS32$ = subexp(subexp(H16$ + \"\\\\:\" + H16$) + \"|\" + IPV4ADDRESS$),\n IPV6ADDRESS1$ = subexp(subexp(H16$ + \"\\\\:\") + \"{6}\" + LS32$),\n // 6( h16 \":\" ) ls32\n IPV6ADDRESS2$ = subexp(\"\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{5}\" + LS32$),\n // \"::\" 5( h16 \":\" ) ls32\n IPV6ADDRESS3$ = subexp(subexp(H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{4}\" + LS32$),\n //[ h16 ] \"::\" 4( h16 \":\" ) ls32\n IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,1}\" + H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{3}\" + LS32$),\n //[ *1( h16 \":\" ) h16 ] \"::\" 3( h16 \":\" ) ls32\n IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,2}\" + H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{2}\" + LS32$),\n //[ *2( h16 \":\" ) h16 ] \"::\" 2( h16 \":\" ) ls32\n IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,3}\" + H16$) + \"?\\\\:\\\\:\" + H16$ + \"\\\\:\" + LS32$),\n //[ *3( h16 \":\" ) h16 ] \"::\" h16 \":\" ls32\n IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,4}\" + H16$) + \"?\\\\:\\\\:\" + LS32$),\n //[ *4( h16 \":\" ) h16 ] \"::\" ls32\n IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,5}\" + H16$) + \"?\\\\:\\\\:\" + H16$),\n //[ *5( h16 \":\" ) h16 ] \"::\" h16\n IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,6}\" + H16$) + \"?\\\\:\\\\:\"),\n //[ *6( h16 \":\" ) h16 ] \"::\"\n IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join(\"|\")),\n ZONEID$ = subexp(subexp(UNRESERVED$$ + \"|\" + PCT_ENCODED$) + \"+\"),\n //RFC 6874\n IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + \"\\\\%25\" + ZONEID$),\n //RFC 6874\n IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp(\"\\\\%25|\\\\%(?!\" + HEXDIG$$ + \"{2})\") + ZONEID$),\n //RFC 6874, with relaxed parsing rules\n IPVFUTURE$ = subexp(\"[vV]\" + HEXDIG$$ + \"+\\\\.\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:]\") + \"+\"),\n IP_LITERAL$ = subexp(\"\\\\[\" + subexp(IPV6ADDRZ_RELAXED$ + \"|\" + IPV6ADDRESS$ + \"|\" + IPVFUTURE$) + \"\\\\]\"),\n //RFC 6874\n REG_NAME$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$)) + \"*\"),\n HOST$ = subexp(IP_LITERAL$ + \"|\" + IPV4ADDRESS$ + \"(?!\" + REG_NAME$ + \")\" + \"|\" + REG_NAME$),\n PORT$ = subexp(DIGIT$$ + \"*\"),\n AUTHORITY$ = subexp(subexp(USERINFO$ + \"@\") + \"?\" + HOST$ + subexp(\"\\\\:\" + PORT$) + \"?\"),\n PCHAR$ = subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@]\")),\n SEGMENT$ = subexp(PCHAR$ + \"*\"),\n SEGMENT_NZ$ = subexp(PCHAR$ + \"+\"),\n SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\@]\")) + \"+\"),\n PATH_ABEMPTY$ = subexp(subexp(\"\\\\/\" + SEGMENT$) + \"*\"),\n PATH_ABSOLUTE$ = subexp(\"\\\\/\" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + \"?\"),\n //simplified\n PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$),\n //simplified\n PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$),\n //simplified\n PATH_EMPTY$ = \"(?!\" + PCHAR$ + \")\",\n PATH$ = subexp(PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$),\n QUERY$ = subexp(subexp(PCHAR$ + \"|\" + merge(\"[\\\\/\\\\?]\", IPRIVATE$$)) + \"*\"),\n FRAGMENT$ = subexp(subexp(PCHAR$ + \"|[\\\\/\\\\?]\") + \"*\"),\n HIER_PART$ = subexp(subexp(\"\\\\/\\\\/\" + AUTHORITY$ + PATH_ABEMPTY$) + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$),\n URI$ = subexp(SCHEME$ + \"\\\\:\" + HIER_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\" + subexp(\"\\\\#\" + FRAGMENT$) + \"?\"),\n RELATIVE_PART$ = subexp(subexp(\"\\\\/\\\\/\" + AUTHORITY$ + PATH_ABEMPTY$) + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_EMPTY$),\n RELATIVE$ = subexp(RELATIVE_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\" + subexp(\"\\\\#\" + FRAGMENT$) + \"?\"),\n URI_REFERENCE$ = subexp(URI$ + \"|\" + RELATIVE$),\n ABSOLUTE_URI$ = subexp(SCHEME$ + \"\\\\:\" + HIER_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\"),\n GENERIC_REF$ = \"^(\" + SCHEME$ + \")\\\\:\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n RELATIVE_REF$ = \"^(){0}\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n ABSOLUTE_REF$ = \"^(\" + SCHEME$ + \")\\\\:\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?$\",\n SAMEDOC_REF$ = \"^\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n AUTHORITY_REF$ = \"^\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?$\";\n return {\n NOT_SCHEME: new RegExp(merge(\"[^]\", ALPHA$$, DIGIT$$, \"[\\\\+\\\\-\\\\.]\"), \"g\"),\n NOT_USERINFO: new RegExp(merge(\"[^\\\\%\\\\:]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n NOT_HOST: new RegExp(merge(\"[^\\\\%\\\\[\\\\]\\\\:]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n NOT_PATH: new RegExp(merge(\"[^\\\\%\\\\/\\\\:\\\\@]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n NOT_PATH_NOSCHEME: new RegExp(merge(\"[^\\\\%\\\\/\\\\@]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n NOT_QUERY: new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@\\\\/\\\\?]\", IPRIVATE$$), \"g\"),\n NOT_FRAGMENT: new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@\\\\/\\\\?]\"), \"g\"),\n ESCAPE: new RegExp(merge(\"[^]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n UNRESERVED: new RegExp(UNRESERVED$$, \"g\"),\n OTHER_CHARS: new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, RESERVED$$), \"g\"),\n PCT_ENCODED: new RegExp(PCT_ENCODED$, \"g\"),\n IPV4ADDRESS: new RegExp(\"^(\" + IPV4ADDRESS$ + \")$\"),\n IPV6ADDRESS: new RegExp(\"^\\\\[?(\" + IPV6ADDRESS$ + \")\" + subexp(subexp(\"\\\\%25|\\\\%(?!\" + HEXDIG$$ + \"{2})\") + \"(\" + ZONEID$ + \")\") + \"?\\\\]?$\") //RFC 6874, with relaxed parsing rules\n };\n}\nvar URI_PROTOCOL = buildExps(false);\n\nvar IRI_PROTOCOL = buildExps(true);\n\nvar slicedToArray = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if (Symbol.iterator in Object(arr)) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar toConsumableArray = function (arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n return arr2;\n } else {\n return Array.from(arr);\n }\n};\n\n/** Highest positive signed 32-bit float value */\n\nvar maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1\n\n/** Bootstring parameters */\nvar base = 36;\nvar tMin = 1;\nvar tMax = 26;\nvar skew = 38;\nvar damp = 700;\nvar initialBias = 72;\nvar initialN = 128; // 0x80\nvar delimiter = '-'; // '\\x2D'\n\n/** Regular expressions */\nvar regexPunycode = /^xn--/;\nvar regexNonASCII = /[^\\0-\\x7E]/; // non-ASCII chars\nvar regexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g; // RFC 3490 separators\n\n/** Error messages */\nvar errors = {\n\t'overflow': 'Overflow: input needs wider integers to process',\n\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t'invalid-input': 'Invalid input'\n};\n\n/** Convenience shortcuts */\nvar baseMinusTMin = base - tMin;\nvar floor = Math.floor;\nvar stringFromCharCode = String.fromCharCode;\n\n/*--------------------------------------------------------------------------*/\n\n/**\n * A generic error utility function.\n * @private\n * @param {String} type The error type.\n * @returns {Error} Throws a `RangeError` with the applicable error message.\n */\nfunction error$1(type) {\n\tthrow new RangeError(errors[type]);\n}\n\n/**\n * A generic `Array#map` utility function.\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} callback The function that gets called for every array\n * item.\n * @returns {Array} A new array of values returned by the callback function.\n */\nfunction map(array, fn) {\n\tvar result = [];\n\tvar length = array.length;\n\twhile (length--) {\n\t\tresult[length] = fn(array[length]);\n\t}\n\treturn result;\n}\n\n/**\n * A simple `Array#map`-like wrapper to work with domain name strings or email\n * addresses.\n * @private\n * @param {String} domain The domain name or email address.\n * @param {Function} callback The function that gets called for every\n * character.\n * @returns {Array} A new string of characters returned by the callback\n * function.\n */\nfunction mapDomain(string, fn) {\n\tvar parts = string.split('@');\n\tvar result = '';\n\tif (parts.length > 1) {\n\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t// the local part (i.e. everything up to `@`) intact.\n\t\tresult = parts[0] + '@';\n\t\tstring = parts[1];\n\t}\n\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\tstring = string.replace(regexSeparators, '\\x2E');\n\tvar labels = string.split('.');\n\tvar encoded = map(labels, fn).join('.');\n\treturn result + encoded;\n}\n\n/**\n * Creates an array containing the numeric code points of each Unicode\n * character in the string. While JavaScript uses UCS-2 internally,\n * this function will convert a pair of surrogate halves (each of which\n * UCS-2 exposes as separate characters) into a single code point,\n * matching UTF-16.\n * @see `punycode.ucs2.encode`\n * @see \n * @memberOf punycode.ucs2\n * @name decode\n * @param {String} string The Unicode input string (UCS-2).\n * @returns {Array} The new array of code points.\n */\nfunction ucs2decode(string) {\n\tvar output = [];\n\tvar counter = 0;\n\tvar length = string.length;\n\twhile (counter < length) {\n\t\tvar value = string.charCodeAt(counter++);\n\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n\t\t\t// It's a high surrogate, and there is a next character.\n\t\t\tvar extra = string.charCodeAt(counter++);\n\t\t\tif ((extra & 0xFC00) == 0xDC00) {\n\t\t\t\t// Low surrogate.\n\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n\t\t\t} else {\n\t\t\t\t// It's an unmatched surrogate; only append this code unit, in case the\n\t\t\t\t// next code unit is the high surrogate of a surrogate pair.\n\t\t\t\toutput.push(value);\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t} else {\n\t\t\toutput.push(value);\n\t\t}\n\t}\n\treturn output;\n}\n\n/**\n * Creates a string based on an array of numeric code points.\n * @see `punycode.ucs2.decode`\n * @memberOf punycode.ucs2\n * @name encode\n * @param {Array} codePoints The array of numeric code points.\n * @returns {String} The new Unicode string (UCS-2).\n */\nvar ucs2encode = function ucs2encode(array) {\n\treturn String.fromCodePoint.apply(String, toConsumableArray(array));\n};\n\n/**\n * Converts a basic code point into a digit/integer.\n * @see `digitToBasic()`\n * @private\n * @param {Number} codePoint The basic numeric code point value.\n * @returns {Number} The numeric value of a basic code point (for use in\n * representing integers) in the range `0` to `base - 1`, or `base` if\n * the code point does not represent a value.\n */\nvar basicToDigit = function basicToDigit(codePoint) {\n\tif (codePoint - 0x30 < 0x0A) {\n\t\treturn codePoint - 0x16;\n\t}\n\tif (codePoint - 0x41 < 0x1A) {\n\t\treturn codePoint - 0x41;\n\t}\n\tif (codePoint - 0x61 < 0x1A) {\n\t\treturn codePoint - 0x61;\n\t}\n\treturn base;\n};\n\n/**\n * Converts a digit/integer into a basic code point.\n * @see `basicToDigit()`\n * @private\n * @param {Number} digit The numeric value of a basic code point.\n * @returns {Number} The basic code point whose value (when used for\n * representing integers) is `digit`, which needs to be in the range\n * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n * used; else, the lowercase form is used. The behavior is undefined\n * if `flag` is non-zero and `digit` has no uppercase form.\n */\nvar digitToBasic = function digitToBasic(digit, flag) {\n\t// 0..25 map to ASCII a..z or A..Z\n\t// 26..35 map to ASCII 0..9\n\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n};\n\n/**\n * Bias adaptation function as per section 3.4 of RFC 3492.\n * https://tools.ietf.org/html/rfc3492#section-3.4\n * @private\n */\nvar adapt = function adapt(delta, numPoints, firstTime) {\n\tvar k = 0;\n\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\n\tdelta += floor(delta / numPoints);\n\tfor (; /* no initialization */delta > baseMinusTMin * tMax >> 1; k += base) {\n\t\tdelta = floor(delta / baseMinusTMin);\n\t}\n\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n};\n\n/**\n * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n * symbols.\n * @memberOf punycode\n * @param {String} input The Punycode string of ASCII-only symbols.\n * @returns {String} The resulting string of Unicode symbols.\n */\nvar decode = function decode(input) {\n\t// Don't use UCS-2.\n\tvar output = [];\n\tvar inputLength = input.length;\n\tvar i = 0;\n\tvar n = initialN;\n\tvar bias = initialBias;\n\n\t// Handle the basic code points: let `basic` be the number of input code\n\t// points before the last delimiter, or `0` if there is none, then copy\n\t// the first basic code points to the output.\n\n\tvar basic = input.lastIndexOf(delimiter);\n\tif (basic < 0) {\n\t\tbasic = 0;\n\t}\n\n\tfor (var j = 0; j < basic; ++j) {\n\t\t// if it's not a basic code point\n\t\tif (input.charCodeAt(j) >= 0x80) {\n\t\t\terror$1('not-basic');\n\t\t}\n\t\toutput.push(input.charCodeAt(j));\n\t}\n\n\t// Main decoding loop: start just after the last delimiter if any basic code\n\t// points were copied; start at the beginning otherwise.\n\n\tfor (var index = basic > 0 ? basic + 1 : 0; index < inputLength;) /* no final expression */{\n\n\t\t// `index` is the index of the next character to be consumed.\n\t\t// Decode a generalized variable-length integer into `delta`,\n\t\t// which gets added to `i`. The overflow checking is easier\n\t\t// if we increase `i` as we go, then subtract off its starting\n\t\t// value at the end to obtain `delta`.\n\t\tvar oldi = i;\n\t\tfor (var w = 1, k = base;; /* no condition */k += base) {\n\n\t\t\tif (index >= inputLength) {\n\t\t\t\terror$1('invalid-input');\n\t\t\t}\n\n\t\t\tvar digit = basicToDigit(input.charCodeAt(index++));\n\n\t\t\tif (digit >= base || digit > floor((maxInt - i) / w)) {\n\t\t\t\terror$1('overflow');\n\t\t\t}\n\n\t\t\ti += digit * w;\n\t\t\tvar t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;\n\n\t\t\tif (digit < t) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tvar baseMinusT = base - t;\n\t\t\tif (w > floor(maxInt / baseMinusT)) {\n\t\t\t\terror$1('overflow');\n\t\t\t}\n\n\t\t\tw *= baseMinusT;\n\t\t}\n\n\t\tvar out = output.length + 1;\n\t\tbias = adapt(i - oldi, out, oldi == 0);\n\n\t\t// `i` was supposed to wrap around from `out` to `0`,\n\t\t// incrementing `n` each time, so we'll fix that now:\n\t\tif (floor(i / out) > maxInt - n) {\n\t\t\terror$1('overflow');\n\t\t}\n\n\t\tn += floor(i / out);\n\t\ti %= out;\n\n\t\t// Insert `n` at position `i` of the output.\n\t\toutput.splice(i++, 0, n);\n\t}\n\n\treturn String.fromCodePoint.apply(String, output);\n};\n\n/**\n * Converts a string of Unicode symbols (e.g. a domain name label) to a\n * Punycode string of ASCII-only symbols.\n * @memberOf punycode\n * @param {String} input The string of Unicode symbols.\n * @returns {String} The resulting Punycode string of ASCII-only symbols.\n */\nvar encode = function encode(input) {\n\tvar output = [];\n\n\t// Convert the input in UCS-2 to an array of Unicode code points.\n\tinput = ucs2decode(input);\n\n\t// Cache the length.\n\tvar inputLength = input.length;\n\n\t// Initialize the state.\n\tvar n = initialN;\n\tvar delta = 0;\n\tvar bias = initialBias;\n\n\t// Handle the basic code points.\n\tvar _iteratorNormalCompletion = true;\n\tvar _didIteratorError = false;\n\tvar _iteratorError = undefined;\n\n\ttry {\n\t\tfor (var _iterator = input[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar _currentValue2 = _step.value;\n\n\t\t\tif (_currentValue2 < 0x80) {\n\t\t\t\toutput.push(stringFromCharCode(_currentValue2));\n\t\t\t}\n\t\t}\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return) {\n\t\t\t\t_iterator.return();\n\t\t\t}\n\t\t} finally {\n\t\t\tif (_didIteratorError) {\n\t\t\t\tthrow _iteratorError;\n\t\t\t}\n\t\t}\n\t}\n\n\tvar basicLength = output.length;\n\tvar handledCPCount = basicLength;\n\n\t// `handledCPCount` is the number of code points that have been handled;\n\t// `basicLength` is the number of basic code points.\n\n\t// Finish the basic string with a delimiter unless it's empty.\n\tif (basicLength) {\n\t\toutput.push(delimiter);\n\t}\n\n\t// Main encoding loop:\n\twhile (handledCPCount < inputLength) {\n\n\t\t// All non-basic code points < n have been handled already. Find the next\n\t\t// larger one:\n\t\tvar m = maxInt;\n\t\tvar _iteratorNormalCompletion2 = true;\n\t\tvar _didIteratorError2 = false;\n\t\tvar _iteratorError2 = undefined;\n\n\t\ttry {\n\t\t\tfor (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n\t\t\t\tvar currentValue = _step2.value;\n\n\t\t\t\tif (currentValue >= n && currentValue < m) {\n\t\t\t\t\tm = currentValue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Increase `delta` enough to advance the decoder's state to ,\n\t\t\t// but guard against overflow.\n\t\t} catch (err) {\n\t\t\t_didIteratorError2 = true;\n\t\t\t_iteratorError2 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion2 && _iterator2.return) {\n\t\t\t\t\t_iterator2.return();\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError2) {\n\t\t\t\t\tthrow _iteratorError2;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tvar handledCPCountPlusOne = handledCPCount + 1;\n\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n\t\t\terror$1('overflow');\n\t\t}\n\n\t\tdelta += (m - n) * handledCPCountPlusOne;\n\t\tn = m;\n\n\t\tvar _iteratorNormalCompletion3 = true;\n\t\tvar _didIteratorError3 = false;\n\t\tvar _iteratorError3 = undefined;\n\n\t\ttry {\n\t\t\tfor (var _iterator3 = input[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {\n\t\t\t\tvar _currentValue = _step3.value;\n\n\t\t\t\tif (_currentValue < n && ++delta > maxInt) {\n\t\t\t\t\terror$1('overflow');\n\t\t\t\t}\n\t\t\t\tif (_currentValue == n) {\n\t\t\t\t\t// Represent delta as a generalized variable-length integer.\n\t\t\t\t\tvar q = delta;\n\t\t\t\t\tfor (var k = base;; /* no condition */k += base) {\n\t\t\t\t\t\tvar t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;\n\t\t\t\t\t\tif (q < t) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvar qMinusT = q - t;\n\t\t\t\t\t\tvar baseMinusT = base - t;\n\t\t\t\t\t\toutput.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));\n\t\t\t\t\t\tq = floor(qMinusT / baseMinusT);\n\t\t\t\t\t}\n\n\t\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\n\t\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n\t\t\t\t\tdelta = 0;\n\t\t\t\t\t++handledCPCount;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (err) {\n\t\t\t_didIteratorError3 = true;\n\t\t\t_iteratorError3 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion3 && _iterator3.return) {\n\t\t\t\t\t_iterator3.return();\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError3) {\n\t\t\t\t\tthrow _iteratorError3;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t++delta;\n\t\t++n;\n\t}\n\treturn output.join('');\n};\n\n/**\n * Converts a Punycode string representing a domain name or an email address\n * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n * it doesn't matter if you call it on a string that has already been\n * converted to Unicode.\n * @memberOf punycode\n * @param {String} input The Punycoded domain name or email address to\n * convert to Unicode.\n * @returns {String} The Unicode representation of the given Punycode\n * string.\n */\nvar toUnicode = function toUnicode(input) {\n\treturn mapDomain(input, function (string) {\n\t\treturn regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;\n\t});\n};\n\n/**\n * Converts a Unicode string representing a domain name or an email address to\n * Punycode. Only the non-ASCII parts of the domain name will be converted,\n * i.e. it doesn't matter if you call it with a domain that's already in\n * ASCII.\n * @memberOf punycode\n * @param {String} input The domain name or email address to convert, as a\n * Unicode string.\n * @returns {String} The Punycode representation of the given domain name or\n * email address.\n */\nvar toASCII = function toASCII(input) {\n\treturn mapDomain(input, function (string) {\n\t\treturn regexNonASCII.test(string) ? 'xn--' + encode(string) : string;\n\t});\n};\n\n/*--------------------------------------------------------------------------*/\n\n/** Define the public API */\nvar punycode = {\n\t/**\n * A string representing the current Punycode.js version number.\n * @memberOf punycode\n * @type String\n */\n\t'version': '2.1.0',\n\t/**\n * An object of methods to convert from JavaScript's internal character\n * representation (UCS-2) to Unicode code points, and back.\n * @see \n * @memberOf punycode\n * @type Object\n */\n\t'ucs2': {\n\t\t'decode': ucs2decode,\n\t\t'encode': ucs2encode\n\t},\n\t'decode': decode,\n\t'encode': encode,\n\t'toASCII': toASCII,\n\t'toUnicode': toUnicode\n};\n\n/**\n * URI.js\n *\n * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript.\n * @author Gary Court\n * @see http://github.com/garycourt/uri-js\n */\n/**\n * Copyright 2011 Gary Court. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification, are\n * permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this list of\n * conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice, this list\n * of conditions and the following disclaimer in the documentation and/or other materials\n * provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\n * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\n * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\n * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n * The views and conclusions contained in the software and documentation are those of the\n * authors and should not be interpreted as representing official policies, either expressed\n * or implied, of Gary Court.\n */\nvar SCHEMES = {};\nfunction pctEncChar(chr) {\n var c = chr.charCodeAt(0);\n var e = void 0;\n if (c < 16) e = \"%0\" + c.toString(16).toUpperCase();else if (c < 128) e = \"%\" + c.toString(16).toUpperCase();else if (c < 2048) e = \"%\" + (c >> 6 | 192).toString(16).toUpperCase() + \"%\" + (c & 63 | 128).toString(16).toUpperCase();else e = \"%\" + (c >> 12 | 224).toString(16).toUpperCase() + \"%\" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + \"%\" + (c & 63 | 128).toString(16).toUpperCase();\n return e;\n}\nfunction pctDecChars(str) {\n var newStr = \"\";\n var i = 0;\n var il = str.length;\n while (i < il) {\n var c = parseInt(str.substr(i + 1, 2), 16);\n if (c < 128) {\n newStr += String.fromCharCode(c);\n i += 3;\n } else if (c >= 194 && c < 224) {\n if (il - i >= 6) {\n var c2 = parseInt(str.substr(i + 4, 2), 16);\n newStr += String.fromCharCode((c & 31) << 6 | c2 & 63);\n } else {\n newStr += str.substr(i, 6);\n }\n i += 6;\n } else if (c >= 224) {\n if (il - i >= 9) {\n var _c = parseInt(str.substr(i + 4, 2), 16);\n var c3 = parseInt(str.substr(i + 7, 2), 16);\n newStr += String.fromCharCode((c & 15) << 12 | (_c & 63) << 6 | c3 & 63);\n } else {\n newStr += str.substr(i, 9);\n }\n i += 9;\n } else {\n newStr += str.substr(i, 3);\n i += 3;\n }\n }\n return newStr;\n}\nfunction _normalizeComponentEncoding(components, protocol) {\n function decodeUnreserved(str) {\n var decStr = pctDecChars(str);\n return !decStr.match(protocol.UNRESERVED) ? str : decStr;\n }\n if (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, \"\");\n if (components.userinfo !== undefined) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n if (components.host !== undefined) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n if (components.path !== undefined) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n if (components.query !== undefined) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n if (components.fragment !== undefined) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n return components;\n}\n\nfunction _stripLeadingZeros(str) {\n return str.replace(/^0*(.*)/, \"$1\") || \"0\";\n}\nfunction _normalizeIPv4(host, protocol) {\n var matches = host.match(protocol.IPV4ADDRESS) || [];\n\n var _matches = slicedToArray(matches, 2),\n address = _matches[1];\n\n if (address) {\n return address.split(\".\").map(_stripLeadingZeros).join(\".\");\n } else {\n return host;\n }\n}\nfunction _normalizeIPv6(host, protocol) {\n var matches = host.match(protocol.IPV6ADDRESS) || [];\n\n var _matches2 = slicedToArray(matches, 3),\n address = _matches2[1],\n zone = _matches2[2];\n\n if (address) {\n var _address$toLowerCase$ = address.toLowerCase().split('::').reverse(),\n _address$toLowerCase$2 = slicedToArray(_address$toLowerCase$, 2),\n last = _address$toLowerCase$2[0],\n first = _address$toLowerCase$2[1];\n\n var firstFields = first ? first.split(\":\").map(_stripLeadingZeros) : [];\n var lastFields = last.split(\":\").map(_stripLeadingZeros);\n var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);\n var fieldCount = isLastFieldIPv4Address ? 7 : 8;\n var lastFieldsStart = lastFields.length - fieldCount;\n var fields = Array(fieldCount);\n for (var x = 0; x < fieldCount; ++x) {\n fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || '';\n }\n if (isLastFieldIPv4Address) {\n fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);\n }\n var allZeroFields = fields.reduce(function (acc, field, index) {\n if (!field || field === \"0\") {\n var lastLongest = acc[acc.length - 1];\n if (lastLongest && lastLongest.index + lastLongest.length === index) {\n lastLongest.length++;\n } else {\n acc.push({ index: index, length: 1 });\n }\n }\n return acc;\n }, []);\n var longestZeroFields = allZeroFields.sort(function (a, b) {\n return b.length - a.length;\n })[0];\n var newHost = void 0;\n if (longestZeroFields && longestZeroFields.length > 1) {\n var newFirst = fields.slice(0, longestZeroFields.index);\n var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);\n newHost = newFirst.join(\":\") + \"::\" + newLast.join(\":\");\n } else {\n newHost = fields.join(\":\");\n }\n if (zone) {\n newHost += \"%\" + zone;\n }\n return newHost;\n } else {\n return host;\n }\n}\nvar URI_PARSE = /^(?:([^:\\/?#]+):)?(?:\\/\\/((?:([^\\/?#@]*)@)?(\\[[^\\/?#\\]]+\\]|[^\\/?#:]*)(?:\\:(\\d*))?))?([^?#]*)(?:\\?([^#]*))?(?:#((?:.|\\n|\\r)*))?/i;\nvar NO_MATCH_IS_UNDEFINED = \"\".match(/(){0}/)[1] === undefined;\nfunction parse(uriString) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var components = {};\n var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;\n if (options.reference === \"suffix\") uriString = (options.scheme ? options.scheme + \":\" : \"\") + \"//\" + uriString;\n var matches = uriString.match(URI_PARSE);\n if (matches) {\n if (NO_MATCH_IS_UNDEFINED) {\n //store each component\n components.scheme = matches[1];\n components.userinfo = matches[3];\n components.host = matches[4];\n components.port = parseInt(matches[5], 10);\n components.path = matches[6] || \"\";\n components.query = matches[7];\n components.fragment = matches[8];\n //fix port number\n if (isNaN(components.port)) {\n components.port = matches[5];\n }\n } else {\n //IE FIX for improper RegExp matching\n //store each component\n components.scheme = matches[1] || undefined;\n components.userinfo = uriString.indexOf(\"@\") !== -1 ? matches[3] : undefined;\n components.host = uriString.indexOf(\"//\") !== -1 ? matches[4] : undefined;\n components.port = parseInt(matches[5], 10);\n components.path = matches[6] || \"\";\n components.query = uriString.indexOf(\"?\") !== -1 ? matches[7] : undefined;\n components.fragment = uriString.indexOf(\"#\") !== -1 ? matches[8] : undefined;\n //fix port number\n if (isNaN(components.port)) {\n components.port = uriString.match(/\\/\\/(?:.|\\n)*\\:(?:\\/|\\?|\\#|$)/) ? matches[4] : undefined;\n }\n }\n if (components.host) {\n //normalize IP hosts\n components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);\n }\n //determine reference type\n if (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) {\n components.reference = \"same-document\";\n } else if (components.scheme === undefined) {\n components.reference = \"relative\";\n } else if (components.fragment === undefined) {\n components.reference = \"absolute\";\n } else {\n components.reference = \"uri\";\n }\n //check for reference errors\n if (options.reference && options.reference !== \"suffix\" && options.reference !== components.reference) {\n components.error = components.error || \"URI is not a \" + options.reference + \" reference.\";\n }\n //find scheme handler\n var schemeHandler = SCHEMES[(options.scheme || components.scheme || \"\").toLowerCase()];\n //check if scheme can't handle IRIs\n if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {\n //if host component is a domain name\n if (components.host && (options.domainHost || schemeHandler && schemeHandler.domainHost)) {\n //convert Unicode IDN -> ASCII IDN\n try {\n components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());\n } catch (e) {\n components.error = components.error || \"Host's domain name can not be converted to ASCII via punycode: \" + e;\n }\n }\n //convert IRI -> URI\n _normalizeComponentEncoding(components, URI_PROTOCOL);\n } else {\n //normalize encodings\n _normalizeComponentEncoding(components, protocol);\n }\n //perform scheme specific parsing\n if (schemeHandler && schemeHandler.parse) {\n schemeHandler.parse(components, options);\n }\n } else {\n components.error = components.error || \"URI can not be parsed.\";\n }\n return components;\n}\n\nfunction _recomposeAuthority(components, options) {\n var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;\n var uriTokens = [];\n if (components.userinfo !== undefined) {\n uriTokens.push(components.userinfo);\n uriTokens.push(\"@\");\n }\n if (components.host !== undefined) {\n //normalize IP hosts, add brackets and escape zone separator for IPv6\n uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, function (_, $1, $2) {\n return \"[\" + $1 + ($2 ? \"%25\" + $2 : \"\") + \"]\";\n }));\n }\n if (typeof components.port === \"number\") {\n uriTokens.push(\":\");\n uriTokens.push(components.port.toString(10));\n }\n return uriTokens.length ? uriTokens.join(\"\") : undefined;\n}\n\nvar RDS1 = /^\\.\\.?\\//;\nvar RDS2 = /^\\/\\.(\\/|$)/;\nvar RDS3 = /^\\/\\.\\.(\\/|$)/;\nvar RDS5 = /^\\/?(?:.|\\n)*?(?=\\/|$)/;\nfunction removeDotSegments(input) {\n var output = [];\n while (input.length) {\n if (input.match(RDS1)) {\n input = input.replace(RDS1, \"\");\n } else if (input.match(RDS2)) {\n input = input.replace(RDS2, \"/\");\n } else if (input.match(RDS3)) {\n input = input.replace(RDS3, \"/\");\n output.pop();\n } else if (input === \".\" || input === \"..\") {\n input = \"\";\n } else {\n var im = input.match(RDS5);\n if (im) {\n var s = im[0];\n input = input.slice(s.length);\n output.push(s);\n } else {\n throw new Error(\"Unexpected dot segment condition\");\n }\n }\n }\n return output.join(\"\");\n}\n\nfunction serialize(components) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL;\n var uriTokens = [];\n //find scheme handler\n var schemeHandler = SCHEMES[(options.scheme || components.scheme || \"\").toLowerCase()];\n //perform scheme specific serialization\n if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);\n if (components.host) {\n //if host component is an IPv6 address\n if (protocol.IPV6ADDRESS.test(components.host)) {}\n //TODO: normalize IPv6 address as per RFC 5952\n\n //if host component is a domain name\n else if (options.domainHost || schemeHandler && schemeHandler.domainHost) {\n //convert IDN via punycode\n try {\n components.host = !options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host);\n } catch (e) {\n components.error = components.error || \"Host's domain name can not be converted to \" + (!options.iri ? \"ASCII\" : \"Unicode\") + \" via punycode: \" + e;\n }\n }\n }\n //normalize encoding\n _normalizeComponentEncoding(components, protocol);\n if (options.reference !== \"suffix\" && components.scheme) {\n uriTokens.push(components.scheme);\n uriTokens.push(\":\");\n }\n var authority = _recomposeAuthority(components, options);\n if (authority !== undefined) {\n if (options.reference !== \"suffix\") {\n uriTokens.push(\"//\");\n }\n uriTokens.push(authority);\n if (components.path && components.path.charAt(0) !== \"/\") {\n uriTokens.push(\"/\");\n }\n }\n if (components.path !== undefined) {\n var s = components.path;\n if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {\n s = removeDotSegments(s);\n }\n if (authority === undefined) {\n s = s.replace(/^\\/\\//, \"/%2F\"); //don't allow the path to start with \"//\"\n }\n uriTokens.push(s);\n }\n if (components.query !== undefined) {\n uriTokens.push(\"?\");\n uriTokens.push(components.query);\n }\n if (components.fragment !== undefined) {\n uriTokens.push(\"#\");\n uriTokens.push(components.fragment);\n }\n return uriTokens.join(\"\"); //merge tokens into a string\n}\n\nfunction resolveComponents(base, relative) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var skipNormalization = arguments[3];\n\n var target = {};\n if (!skipNormalization) {\n base = parse(serialize(base, options), options); //normalize base components\n relative = parse(serialize(relative, options), options); //normalize relative components\n }\n options = options || {};\n if (!options.tolerant && relative.scheme) {\n target.scheme = relative.scheme;\n //target.authority = relative.authority;\n target.userinfo = relative.userinfo;\n target.host = relative.host;\n target.port = relative.port;\n target.path = removeDotSegments(relative.path || \"\");\n target.query = relative.query;\n } else {\n if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {\n //target.authority = relative.authority;\n target.userinfo = relative.userinfo;\n target.host = relative.host;\n target.port = relative.port;\n target.path = removeDotSegments(relative.path || \"\");\n target.query = relative.query;\n } else {\n if (!relative.path) {\n target.path = base.path;\n if (relative.query !== undefined) {\n target.query = relative.query;\n } else {\n target.query = base.query;\n }\n } else {\n if (relative.path.charAt(0) === \"/\") {\n target.path = removeDotSegments(relative.path);\n } else {\n if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {\n target.path = \"/\" + relative.path;\n } else if (!base.path) {\n target.path = relative.path;\n } else {\n target.path = base.path.slice(0, base.path.lastIndexOf(\"/\") + 1) + relative.path;\n }\n target.path = removeDotSegments(target.path);\n }\n target.query = relative.query;\n }\n //target.authority = base.authority;\n target.userinfo = base.userinfo;\n target.host = base.host;\n target.port = base.port;\n }\n target.scheme = base.scheme;\n }\n target.fragment = relative.fragment;\n return target;\n}\n\nfunction resolve(baseURI, relativeURI, options) {\n var schemelessOptions = assign({ scheme: 'null' }, options);\n return serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);\n}\n\nfunction normalize(uri, options) {\n if (typeof uri === \"string\") {\n uri = serialize(parse(uri, options), options);\n } else if (typeOf(uri) === \"object\") {\n uri = parse(serialize(uri, options), options);\n }\n return uri;\n}\n\nfunction equal(uriA, uriB, options) {\n if (typeof uriA === \"string\") {\n uriA = serialize(parse(uriA, options), options);\n } else if (typeOf(uriA) === \"object\") {\n uriA = serialize(uriA, options);\n }\n if (typeof uriB === \"string\") {\n uriB = serialize(parse(uriB, options), options);\n } else if (typeOf(uriB) === \"object\") {\n uriB = serialize(uriB, options);\n }\n return uriA === uriB;\n}\n\nfunction escapeComponent(str, options) {\n return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE, pctEncChar);\n}\n\nfunction unescapeComponent(str, options) {\n return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED, pctDecChars);\n}\n\nvar handler = {\n scheme: \"http\",\n domainHost: true,\n parse: function parse(components, options) {\n //report missing host\n if (!components.host) {\n components.error = components.error || \"HTTP URIs must have a host.\";\n }\n return components;\n },\n serialize: function serialize(components, options) {\n //normalize the default port\n if (components.port === (String(components.scheme).toLowerCase() !== \"https\" ? 80 : 443) || components.port === \"\") {\n components.port = undefined;\n }\n //normalize the empty path\n if (!components.path) {\n components.path = \"/\";\n }\n //NOTE: We do not parse query strings for HTTP URIs\n //as WWW Form Url Encoded query strings are part of the HTML4+ spec,\n //and not the HTTP spec.\n return components;\n }\n};\n\nvar handler$1 = {\n scheme: \"https\",\n domainHost: handler.domainHost,\n parse: handler.parse,\n serialize: handler.serialize\n};\n\nvar O = {};\nvar isIRI = true;\n//RFC 3986\nvar UNRESERVED$$ = \"[A-Za-z0-9\\\\-\\\\.\\\\_\\\\~\" + (isIRI ? \"\\\\xA0-\\\\u200D\\\\u2010-\\\\u2029\\\\u202F-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF\" : \"\") + \"]\";\nvar HEXDIG$$ = \"[0-9A-Fa-f]\"; //case-insensitive\nvar PCT_ENCODED$ = subexp(subexp(\"%[EFef]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%[89A-Fa-f]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%\" + HEXDIG$$ + HEXDIG$$)); //expanded\n//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; =\n//const ATEXT$$ = \"[A-Za-z0-9\\\\!\\\\#\\\\$\\\\%\\\\&\\\\'\\\\*\\\\+\\\\-\\\\/\\\\=\\\\?\\\\^\\\\_\\\\`\\\\{\\\\|\\\\}\\\\~]\";\n//const WSP$$ = \"[\\\\x20\\\\x09]\";\n//const OBS_QTEXT$$ = \"[\\\\x01-\\\\x08\\\\x0B\\\\x0C\\\\x0E-\\\\x1F\\\\x7F]\"; //(%d1-8 / %d11-12 / %d14-31 / %d127)\n//const QTEXT$$ = merge(\"[\\\\x21\\\\x23-\\\\x5B\\\\x5D-\\\\x7E]\", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext\n//const VCHAR$$ = \"[\\\\x21-\\\\x7E]\";\n//const WSP$$ = \"[\\\\x20\\\\x09]\";\n//const OBS_QP$ = subexp(\"\\\\\\\\\" + merge(\"[\\\\x00\\\\x0D\\\\x0A]\", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext\n//const FWS$ = subexp(subexp(WSP$$ + \"*\" + \"\\\\x0D\\\\x0A\") + \"?\" + WSP$$ + \"+\");\n//const QUOTED_PAIR$ = subexp(subexp(\"\\\\\\\\\" + subexp(VCHAR$$ + \"|\" + WSP$$)) + \"|\" + OBS_QP$);\n//const QUOTED_STRING$ = subexp('\\\\\"' + subexp(FWS$ + \"?\" + QCONTENT$) + \"*\" + FWS$ + \"?\" + '\\\\\"');\nvar ATEXT$$ = \"[A-Za-z0-9\\\\!\\\\$\\\\%\\\\'\\\\*\\\\+\\\\-\\\\^\\\\_\\\\`\\\\{\\\\|\\\\}\\\\~]\";\nvar QTEXT$$ = \"[\\\\!\\\\$\\\\%\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\-\\\\.0-9\\\\<\\\\>A-Z\\\\x5E-\\\\x7E]\";\nvar VCHAR$$ = merge(QTEXT$$, \"[\\\\\\\"\\\\\\\\]\");\nvar SOME_DELIMS$$ = \"[\\\\!\\\\$\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\;\\\\:\\\\@]\";\nvar UNRESERVED = new RegExp(UNRESERVED$$, \"g\");\nvar PCT_ENCODED = new RegExp(PCT_ENCODED$, \"g\");\nvar NOT_LOCAL_PART = new RegExp(merge(\"[^]\", ATEXT$$, \"[\\\\.]\", '[\\\\\"]', VCHAR$$), \"g\");\nvar NOT_HFNAME = new RegExp(merge(\"[^]\", UNRESERVED$$, SOME_DELIMS$$), \"g\");\nvar NOT_HFVALUE = NOT_HFNAME;\nfunction decodeUnreserved(str) {\n var decStr = pctDecChars(str);\n return !decStr.match(UNRESERVED) ? str : decStr;\n}\nvar handler$2 = {\n scheme: \"mailto\",\n parse: function parse$$1(components, options) {\n var mailtoComponents = components;\n var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(\",\") : [];\n mailtoComponents.path = undefined;\n if (mailtoComponents.query) {\n var unknownHeaders = false;\n var headers = {};\n var hfields = mailtoComponents.query.split(\"&\");\n for (var x = 0, xl = hfields.length; x < xl; ++x) {\n var hfield = hfields[x].split(\"=\");\n switch (hfield[0]) {\n case \"to\":\n var toAddrs = hfield[1].split(\",\");\n for (var _x = 0, _xl = toAddrs.length; _x < _xl; ++_x) {\n to.push(toAddrs[_x]);\n }\n break;\n case \"subject\":\n mailtoComponents.subject = unescapeComponent(hfield[1], options);\n break;\n case \"body\":\n mailtoComponents.body = unescapeComponent(hfield[1], options);\n break;\n default:\n unknownHeaders = true;\n headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);\n break;\n }\n }\n if (unknownHeaders) mailtoComponents.headers = headers;\n }\n mailtoComponents.query = undefined;\n for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) {\n var addr = to[_x2].split(\"@\");\n addr[0] = unescapeComponent(addr[0]);\n if (!options.unicodeSupport) {\n //convert Unicode IDN -> ASCII IDN\n try {\n addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());\n } catch (e) {\n mailtoComponents.error = mailtoComponents.error || \"Email address's domain name can not be converted to ASCII via punycode: \" + e;\n }\n } else {\n addr[1] = unescapeComponent(addr[1], options).toLowerCase();\n }\n to[_x2] = addr.join(\"@\");\n }\n return mailtoComponents;\n },\n serialize: function serialize$$1(mailtoComponents, options) {\n var components = mailtoComponents;\n var to = toArray(mailtoComponents.to);\n if (to) {\n for (var x = 0, xl = to.length; x < xl; ++x) {\n var toAddr = String(to[x]);\n var atIdx = toAddr.lastIndexOf(\"@\");\n var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);\n var domain = toAddr.slice(atIdx + 1);\n //convert IDN via punycode\n try {\n domain = !options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain);\n } catch (e) {\n components.error = components.error || \"Email address's domain name can not be converted to \" + (!options.iri ? \"ASCII\" : \"Unicode\") + \" via punycode: \" + e;\n }\n to[x] = localPart + \"@\" + domain;\n }\n components.path = to.join(\",\");\n }\n var headers = mailtoComponents.headers = mailtoComponents.headers || {};\n if (mailtoComponents.subject) headers[\"subject\"] = mailtoComponents.subject;\n if (mailtoComponents.body) headers[\"body\"] = mailtoComponents.body;\n var fields = [];\n for (var name in headers) {\n if (headers[name] !== O[name]) {\n fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + \"=\" + headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar));\n }\n }\n if (fields.length) {\n components.query = fields.join(\"&\");\n }\n return components;\n }\n};\n\nvar URN_PARSE = /^([^\\:]+)\\:(.*)/;\n//RFC 2141\nvar handler$3 = {\n scheme: \"urn\",\n parse: function parse$$1(components, options) {\n var matches = components.path && components.path.match(URN_PARSE);\n var urnComponents = components;\n if (matches) {\n var scheme = options.scheme || urnComponents.scheme || \"urn\";\n var nid = matches[1].toLowerCase();\n var nss = matches[2];\n var urnScheme = scheme + \":\" + (options.nid || nid);\n var schemeHandler = SCHEMES[urnScheme];\n urnComponents.nid = nid;\n urnComponents.nss = nss;\n urnComponents.path = undefined;\n if (schemeHandler) {\n urnComponents = schemeHandler.parse(urnComponents, options);\n }\n } else {\n urnComponents.error = urnComponents.error || \"URN can not be parsed.\";\n }\n return urnComponents;\n },\n serialize: function serialize$$1(urnComponents, options) {\n var scheme = options.scheme || urnComponents.scheme || \"urn\";\n var nid = urnComponents.nid;\n var urnScheme = scheme + \":\" + (options.nid || nid);\n var schemeHandler = SCHEMES[urnScheme];\n if (schemeHandler) {\n urnComponents = schemeHandler.serialize(urnComponents, options);\n }\n var uriComponents = urnComponents;\n var nss = urnComponents.nss;\n uriComponents.path = (nid || options.nid) + \":\" + nss;\n return uriComponents;\n }\n};\n\nvar UUID = /^[0-9A-Fa-f]{8}(?:\\-[0-9A-Fa-f]{4}){3}\\-[0-9A-Fa-f]{12}$/;\n//RFC 4122\nvar handler$4 = {\n scheme: \"urn:uuid\",\n parse: function parse(urnComponents, options) {\n var uuidComponents = urnComponents;\n uuidComponents.uuid = uuidComponents.nss;\n uuidComponents.nss = undefined;\n if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {\n uuidComponents.error = uuidComponents.error || \"UUID is not valid.\";\n }\n return uuidComponents;\n },\n serialize: function serialize(uuidComponents, options) {\n var urnComponents = uuidComponents;\n //normalize UUID\n urnComponents.nss = (uuidComponents.uuid || \"\").toLowerCase();\n return urnComponents;\n }\n};\n\nSCHEMES[handler.scheme] = handler;\nSCHEMES[handler$1.scheme] = handler$1;\nSCHEMES[handler$2.scheme] = handler$2;\nSCHEMES[handler$3.scheme] = handler$3;\nSCHEMES[handler$4.scheme] = handler$4;\n\nexports.SCHEMES = SCHEMES;\nexports.pctEncChar = pctEncChar;\nexports.pctDecChars = pctDecChars;\nexports.parse = parse;\nexports.removeDotSegments = removeDotSegments;\nexports.serialize = serialize;\nexports.resolveComponents = resolveComponents;\nexports.resolve = resolve;\nexports.normalize = normalize;\nexports.equal = equal;\nexports.escapeComponent = escapeComponent;\nexports.unescapeComponent = unescapeComponent;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=uri.all.js.map\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n","'use strict';\n\n/*eslint-disable no-use-before-define*/\n\nvar common = require('./common');\nvar YAMLException = require('./exception');\nvar DEFAULT_FULL_SCHEMA = require('./schema/default_full');\nvar DEFAULT_SAFE_SCHEMA = require('./schema/default_safe');\n\nvar _toString = Object.prototype.toString;\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar CHAR_TAB = 0x09; /* Tab */\nvar CHAR_LINE_FEED = 0x0A; /* LF */\nvar CHAR_CARRIAGE_RETURN = 0x0D; /* CR */\nvar CHAR_SPACE = 0x20; /* Space */\nvar CHAR_EXCLAMATION = 0x21; /* ! */\nvar CHAR_DOUBLE_QUOTE = 0x22; /* \" */\nvar CHAR_SHARP = 0x23; /* # */\nvar CHAR_PERCENT = 0x25; /* % */\nvar CHAR_AMPERSAND = 0x26; /* & */\nvar CHAR_SINGLE_QUOTE = 0x27; /* ' */\nvar CHAR_ASTERISK = 0x2A; /* * */\nvar CHAR_COMMA = 0x2C; /* , */\nvar CHAR_MINUS = 0x2D; /* - */\nvar CHAR_COLON = 0x3A; /* : */\nvar CHAR_EQUALS = 0x3D; /* = */\nvar CHAR_GREATER_THAN = 0x3E; /* > */\nvar CHAR_QUESTION = 0x3F; /* ? */\nvar CHAR_COMMERCIAL_AT = 0x40; /* @ */\nvar CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */\nvar CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */\nvar CHAR_GRAVE_ACCENT = 0x60; /* ` */\nvar CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */\nvar CHAR_VERTICAL_LINE = 0x7C; /* | */\nvar CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */\n\nvar ESCAPE_SEQUENCES = {};\n\nESCAPE_SEQUENCES[0x00] = '\\\\0';\nESCAPE_SEQUENCES[0x07] = '\\\\a';\nESCAPE_SEQUENCES[0x08] = '\\\\b';\nESCAPE_SEQUENCES[0x09] = '\\\\t';\nESCAPE_SEQUENCES[0x0A] = '\\\\n';\nESCAPE_SEQUENCES[0x0B] = '\\\\v';\nESCAPE_SEQUENCES[0x0C] = '\\\\f';\nESCAPE_SEQUENCES[0x0D] = '\\\\r';\nESCAPE_SEQUENCES[0x1B] = '\\\\e';\nESCAPE_SEQUENCES[0x22] = '\\\\\"';\nESCAPE_SEQUENCES[0x5C] = '\\\\\\\\';\nESCAPE_SEQUENCES[0x85] = '\\\\N';\nESCAPE_SEQUENCES[0xA0] = '\\\\_';\nESCAPE_SEQUENCES[0x2028] = '\\\\L';\nESCAPE_SEQUENCES[0x2029] = '\\\\P';\n\nvar DEPRECATED_BOOLEANS_SYNTAX = [\n 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',\n 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'\n];\n\nfunction compileStyleMap(schema, map) {\n var result, keys, index, length, tag, style, type;\n\n if (map === null) return {};\n\n result = {};\n keys = Object.keys(map);\n\n for (index = 0, length = keys.length; index < length; index += 1) {\n tag = keys[index];\n style = String(map[tag]);\n\n if (tag.slice(0, 2) === '!!') {\n tag = 'tag:yaml.org,2002:' + tag.slice(2);\n }\n type = schema.compiledTypeMap['fallback'][tag];\n\n if (type && _hasOwnProperty.call(type.styleAliases, style)) {\n style = type.styleAliases[style];\n }\n\n result[tag] = style;\n }\n\n return result;\n}\n\nfunction encodeHex(character) {\n var string, handle, length;\n\n string = character.toString(16).toUpperCase();\n\n if (character <= 0xFF) {\n handle = 'x';\n length = 2;\n } else if (character <= 0xFFFF) {\n handle = 'u';\n length = 4;\n } else if (character <= 0xFFFFFFFF) {\n handle = 'U';\n length = 8;\n } else {\n throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF');\n }\n\n return '\\\\' + handle + common.repeat('0', length - string.length) + string;\n}\n\nfunction State(options) {\n this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;\n this.indent = Math.max(1, (options['indent'] || 2));\n this.noArrayIndent = options['noArrayIndent'] || false;\n this.skipInvalid = options['skipInvalid'] || false;\n this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);\n this.styleMap = compileStyleMap(this.schema, options['styles'] || null);\n this.sortKeys = options['sortKeys'] || false;\n this.lineWidth = options['lineWidth'] || 80;\n this.noRefs = options['noRefs'] || false;\n this.noCompatMode = options['noCompatMode'] || false;\n this.condenseFlow = options['condenseFlow'] || false;\n\n this.implicitTypes = this.schema.compiledImplicit;\n this.explicitTypes = this.schema.compiledExplicit;\n\n this.tag = null;\n this.result = '';\n\n this.duplicates = [];\n this.usedDuplicates = null;\n}\n\n// Indents every line in a string. Empty lines (\\n only) are not indented.\nfunction indentString(string, spaces) {\n var ind = common.repeat(' ', spaces),\n position = 0,\n next = -1,\n result = '',\n line,\n length = string.length;\n\n while (position < length) {\n next = string.indexOf('\\n', position);\n if (next === -1) {\n line = string.slice(position);\n position = length;\n } else {\n line = string.slice(position, next + 1);\n position = next + 1;\n }\n\n if (line.length && line !== '\\n') result += ind;\n\n result += line;\n }\n\n return result;\n}\n\nfunction generateNextLine(state, level) {\n return '\\n' + common.repeat(' ', state.indent * level);\n}\n\nfunction testImplicitResolving(state, str) {\n var index, length, type;\n\n for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {\n type = state.implicitTypes[index];\n\n if (type.resolve(str)) {\n return true;\n }\n }\n\n return false;\n}\n\n// [33] s-white ::= s-space | s-tab\nfunction isWhitespace(c) {\n return c === CHAR_SPACE || c === CHAR_TAB;\n}\n\n// Returns true if the character can be printed without escaping.\n// From YAML 1.2: \"any allowed characters known to be non-printable\n// should also be escaped. [However,] This isn’t mandatory\"\n// Derived from nb-char - \\t - #x85 - #xA0 - #x2028 - #x2029.\nfunction isPrintable(c) {\n return (0x00020 <= c && c <= 0x00007E)\n || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029)\n || ((0x0E000 <= c && c <= 0x00FFFD) && c !== 0xFEFF /* BOM */)\n || (0x10000 <= c && c <= 0x10FFFF);\n}\n\n// [34] ns-char ::= nb-char - s-white\n// [27] nb-char ::= c-printable - b-char - c-byte-order-mark\n// [26] b-char ::= b-line-feed | b-carriage-return\n// [24] b-line-feed ::= #xA /* LF */\n// [25] b-carriage-return ::= #xD /* CR */\n// [3] c-byte-order-mark ::= #xFEFF\nfunction isNsChar(c) {\n return isPrintable(c) && !isWhitespace(c)\n // byte-order-mark\n && c !== 0xFEFF\n // b-char\n && c !== CHAR_CARRIAGE_RETURN\n && c !== CHAR_LINE_FEED;\n}\n\n// Simplified test for values allowed after the first character in plain style.\nfunction isPlainSafe(c, prev) {\n // Uses a subset of nb-char - c-flow-indicator - \":\" - \"#\"\n // where nb-char ::= c-printable - b-char - c-byte-order-mark.\n return isPrintable(c) && c !== 0xFEFF\n // - c-flow-indicator\n && c !== CHAR_COMMA\n && c !== CHAR_LEFT_SQUARE_BRACKET\n && c !== CHAR_RIGHT_SQUARE_BRACKET\n && c !== CHAR_LEFT_CURLY_BRACKET\n && c !== CHAR_RIGHT_CURLY_BRACKET\n // - \":\" - \"#\"\n // /* An ns-char preceding */ \"#\"\n && c !== CHAR_COLON\n && ((c !== CHAR_SHARP) || (prev && isNsChar(prev)));\n}\n\n// Simplified test for values allowed as the first character in plain style.\nfunction isPlainSafeFirst(c) {\n // Uses a subset of ns-char - c-indicator\n // where ns-char = nb-char - s-white.\n return isPrintable(c) && c !== 0xFEFF\n && !isWhitespace(c) // - s-white\n // - (c-indicator ::=\n // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”\n && c !== CHAR_MINUS\n && c !== CHAR_QUESTION\n && c !== CHAR_COLON\n && c !== CHAR_COMMA\n && c !== CHAR_LEFT_SQUARE_BRACKET\n && c !== CHAR_RIGHT_SQUARE_BRACKET\n && c !== CHAR_LEFT_CURLY_BRACKET\n && c !== CHAR_RIGHT_CURLY_BRACKET\n // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “\"”\n && c !== CHAR_SHARP\n && c !== CHAR_AMPERSAND\n && c !== CHAR_ASTERISK\n && c !== CHAR_EXCLAMATION\n && c !== CHAR_VERTICAL_LINE\n && c !== CHAR_EQUALS\n && c !== CHAR_GREATER_THAN\n && c !== CHAR_SINGLE_QUOTE\n && c !== CHAR_DOUBLE_QUOTE\n // | “%” | “@” | “`”)\n && c !== CHAR_PERCENT\n && c !== CHAR_COMMERCIAL_AT\n && c !== CHAR_GRAVE_ACCENT;\n}\n\n// Determines whether block indentation indicator is required.\nfunction needIndentIndicator(string) {\n var leadingSpaceRe = /^\\n* /;\n return leadingSpaceRe.test(string);\n}\n\nvar STYLE_PLAIN = 1,\n STYLE_SINGLE = 2,\n STYLE_LITERAL = 3,\n STYLE_FOLDED = 4,\n STYLE_DOUBLE = 5;\n\n// Determines which scalar styles are possible and returns the preferred style.\n// lineWidth = -1 => no limit.\n// Pre-conditions: str.length > 0.\n// Post-conditions:\n// STYLE_PLAIN or STYLE_SINGLE => no \\n are in the string.\n// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).\n// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1).\nfunction chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType) {\n var i;\n var char, prev_char;\n var hasLineBreak = false;\n var hasFoldableLine = false; // only checked if shouldTrackWidth\n var shouldTrackWidth = lineWidth !== -1;\n var previousLineBreak = -1; // count the first line correctly\n var plain = isPlainSafeFirst(string.charCodeAt(0))\n && !isWhitespace(string.charCodeAt(string.length - 1));\n\n if (singleLineOnly) {\n // Case: no block styles.\n // Check for disallowed characters to rule out plain and single.\n for (i = 0; i < string.length; i++) {\n char = string.charCodeAt(i);\n if (!isPrintable(char)) {\n return STYLE_DOUBLE;\n }\n prev_char = i > 0 ? string.charCodeAt(i - 1) : null;\n plain = plain && isPlainSafe(char, prev_char);\n }\n } else {\n // Case: block styles permitted.\n for (i = 0; i < string.length; i++) {\n char = string.charCodeAt(i);\n if (char === CHAR_LINE_FEED) {\n hasLineBreak = true;\n // Check if any line can be folded.\n if (shouldTrackWidth) {\n hasFoldableLine = hasFoldableLine ||\n // Foldable line = too long, and not more-indented.\n (i - previousLineBreak - 1 > lineWidth &&\n string[previousLineBreak + 1] !== ' ');\n previousLineBreak = i;\n }\n } else if (!isPrintable(char)) {\n return STYLE_DOUBLE;\n }\n prev_char = i > 0 ? string.charCodeAt(i - 1) : null;\n plain = plain && isPlainSafe(char, prev_char);\n }\n // in case the end is missing a \\n\n hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&\n (i - previousLineBreak - 1 > lineWidth &&\n string[previousLineBreak + 1] !== ' '));\n }\n // Although every style can represent \\n without escaping, prefer block styles\n // for multiline, since they're more readable and they don't add empty lines.\n // Also prefer folding a super-long line.\n if (!hasLineBreak && !hasFoldableLine) {\n // Strings interpretable as another type have to be quoted;\n // e.g. the string 'true' vs. the boolean true.\n return plain && !testAmbiguousType(string)\n ? STYLE_PLAIN : STYLE_SINGLE;\n }\n // Edge case: block indentation indicator can only have one digit.\n if (indentPerLevel > 9 && needIndentIndicator(string)) {\n return STYLE_DOUBLE;\n }\n // At this point we know block styles are valid.\n // Prefer literal style unless we want to fold.\n return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;\n}\n\n// Note: line breaking/folding is implemented for only the folded style.\n// NB. We drop the last trailing newline (if any) of a returned block scalar\n// since the dumper adds its own newline. This always works:\n// • No ending newline => unaffected; already using strip \"-\" chomping.\n// • Ending newline => removed then restored.\n// Importantly, this keeps the \"+\" chomp indicator from gaining an extra line.\nfunction writeScalar(state, string, level, iskey) {\n state.dump = (function () {\n if (string.length === 0) {\n return \"''\";\n }\n if (!state.noCompatMode &&\n DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1) {\n return \"'\" + string + \"'\";\n }\n\n var indent = state.indent * Math.max(1, level); // no 0-indent scalars\n // As indentation gets deeper, let the width decrease monotonically\n // to the lower bound min(state.lineWidth, 40).\n // Note that this implies\n // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound.\n // state.lineWidth > 40 + state.indent: width decreases until the lower bound.\n // This behaves better than a constant minimum width which disallows narrower options,\n // or an indent threshold which causes the width to suddenly increase.\n var lineWidth = state.lineWidth === -1\n ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);\n\n // Without knowing if keys are implicit/explicit, assume implicit for safety.\n var singleLineOnly = iskey\n // No block styles in flow mode.\n || (state.flowLevel > -1 && level >= state.flowLevel);\n function testAmbiguity(string) {\n return testImplicitResolving(state, string);\n }\n\n switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, testAmbiguity)) {\n case STYLE_PLAIN:\n return string;\n case STYLE_SINGLE:\n return \"'\" + string.replace(/'/g, \"''\") + \"'\";\n case STYLE_LITERAL:\n return '|' + blockHeader(string, state.indent)\n + dropEndingNewline(indentString(string, indent));\n case STYLE_FOLDED:\n return '>' + blockHeader(string, state.indent)\n + dropEndingNewline(indentString(foldString(string, lineWidth), indent));\n case STYLE_DOUBLE:\n return '\"' + escapeString(string, lineWidth) + '\"';\n default:\n throw new YAMLException('impossible error: invalid scalar style');\n }\n }());\n}\n\n// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.\nfunction blockHeader(string, indentPerLevel) {\n var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : '';\n\n // note the special case: the string '\\n' counts as a \"trailing\" empty line.\n var clip = string[string.length - 1] === '\\n';\n var keep = clip && (string[string.length - 2] === '\\n' || string === '\\n');\n var chomp = keep ? '+' : (clip ? '' : '-');\n\n return indentIndicator + chomp + '\\n';\n}\n\n// (See the note for writeScalar.)\nfunction dropEndingNewline(string) {\n return string[string.length - 1] === '\\n' ? string.slice(0, -1) : string;\n}\n\n// Note: a long line without a suitable break point will exceed the width limit.\n// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.\nfunction foldString(string, width) {\n // In folded style, $k$ consecutive newlines output as $k+1$ newlines—\n // unless they're before or after a more-indented line, or at the very\n // beginning or end, in which case $k$ maps to $k$.\n // Therefore, parse each chunk as newline(s) followed by a content line.\n var lineRe = /(\\n+)([^\\n]*)/g;\n\n // first line (possibly an empty line)\n var result = (function () {\n var nextLF = string.indexOf('\\n');\n nextLF = nextLF !== -1 ? nextLF : string.length;\n lineRe.lastIndex = nextLF;\n return foldLine(string.slice(0, nextLF), width);\n }());\n // If we haven't reached the first content line yet, don't add an extra \\n.\n var prevMoreIndented = string[0] === '\\n' || string[0] === ' ';\n var moreIndented;\n\n // rest of the lines\n var match;\n while ((match = lineRe.exec(string))) {\n var prefix = match[1], line = match[2];\n moreIndented = (line[0] === ' ');\n result += prefix\n + (!prevMoreIndented && !moreIndented && line !== ''\n ? '\\n' : '')\n + foldLine(line, width);\n prevMoreIndented = moreIndented;\n }\n\n return result;\n}\n\n// Greedy line breaking.\n// Picks the longest line under the limit each time,\n// otherwise settles for the shortest line over the limit.\n// NB. More-indented lines *cannot* be folded, as that would add an extra \\n.\nfunction foldLine(line, width) {\n if (line === '' || line[0] === ' ') return line;\n\n // Since a more-indented line adds a \\n, breaks can't be followed by a space.\n var breakRe = / [^ ]/g; // note: the match index will always be <= length-2.\n var match;\n // start is an inclusive index. end, curr, and next are exclusive.\n var start = 0, end, curr = 0, next = 0;\n var result = '';\n\n // Invariants: 0 <= start <= length-1.\n // 0 <= curr <= next <= max(0, length-2). curr - start <= width.\n // Inside the loop:\n // A match implies length >= 2, so curr and next are <= length-2.\n while ((match = breakRe.exec(line))) {\n next = match.index;\n // maintain invariant: curr - start <= width\n if (next - start > width) {\n end = (curr > start) ? curr : next; // derive end <= length-2\n result += '\\n' + line.slice(start, end);\n // skip the space that was output as \\n\n start = end + 1; // derive start <= length-1\n }\n curr = next;\n }\n\n // By the invariants, start <= length-1, so there is something left over.\n // It is either the whole string or a part starting from non-whitespace.\n result += '\\n';\n // Insert a break if the remainder is too long and there is a break available.\n if (line.length - start > width && curr > start) {\n result += line.slice(start, curr) + '\\n' + line.slice(curr + 1);\n } else {\n result += line.slice(start);\n }\n\n return result.slice(1); // drop extra \\n joiner\n}\n\n// Escapes a double-quoted string.\nfunction escapeString(string) {\n var result = '';\n var char, nextChar;\n var escapeSeq;\n\n for (var i = 0; i < string.length; i++) {\n char = string.charCodeAt(i);\n // Check for surrogate pairs (reference Unicode 3.0 section \"3.7 Surrogates\").\n if (char >= 0xD800 && char <= 0xDBFF/* high surrogate */) {\n nextChar = string.charCodeAt(i + 1);\n if (nextChar >= 0xDC00 && nextChar <= 0xDFFF/* low surrogate */) {\n // Combine the surrogate pair and store it escaped.\n result += encodeHex((char - 0xD800) * 0x400 + nextChar - 0xDC00 + 0x10000);\n // Advance index one extra since we already used that char here.\n i++; continue;\n }\n }\n escapeSeq = ESCAPE_SEQUENCES[char];\n result += !escapeSeq && isPrintable(char)\n ? string[i]\n : escapeSeq || encodeHex(char);\n }\n\n return result;\n}\n\nfunction writeFlowSequence(state, level, object) {\n var _result = '',\n _tag = state.tag,\n index,\n length;\n\n for (index = 0, length = object.length; index < length; index += 1) {\n // Write only valid elements.\n if (writeNode(state, level, object[index], false, false)) {\n if (index !== 0) _result += ',' + (!state.condenseFlow ? ' ' : '');\n _result += state.dump;\n }\n }\n\n state.tag = _tag;\n state.dump = '[' + _result + ']';\n}\n\nfunction writeBlockSequence(state, level, object, compact) {\n var _result = '',\n _tag = state.tag,\n index,\n length;\n\n for (index = 0, length = object.length; index < length; index += 1) {\n // Write only valid elements.\n if (writeNode(state, level + 1, object[index], true, true)) {\n if (!compact || index !== 0) {\n _result += generateNextLine(state, level);\n }\n\n if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n _result += '-';\n } else {\n _result += '- ';\n }\n\n _result += state.dump;\n }\n }\n\n state.tag = _tag;\n state.dump = _result || '[]'; // Empty sequence if no valid values.\n}\n\nfunction writeFlowMapping(state, level, object) {\n var _result = '',\n _tag = state.tag,\n objectKeyList = Object.keys(object),\n index,\n length,\n objectKey,\n objectValue,\n pairBuffer;\n\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n\n pairBuffer = '';\n if (index !== 0) pairBuffer += ', ';\n\n if (state.condenseFlow) pairBuffer += '\"';\n\n objectKey = objectKeyList[index];\n objectValue = object[objectKey];\n\n if (!writeNode(state, level, objectKey, false, false)) {\n continue; // Skip this pair because of invalid key;\n }\n\n if (state.dump.length > 1024) pairBuffer += '? ';\n\n pairBuffer += state.dump + (state.condenseFlow ? '\"' : '') + ':' + (state.condenseFlow ? '' : ' ');\n\n if (!writeNode(state, level, objectValue, false, false)) {\n continue; // Skip this pair because of invalid value.\n }\n\n pairBuffer += state.dump;\n\n // Both key and value are valid.\n _result += pairBuffer;\n }\n\n state.tag = _tag;\n state.dump = '{' + _result + '}';\n}\n\nfunction writeBlockMapping(state, level, object, compact) {\n var _result = '',\n _tag = state.tag,\n objectKeyList = Object.keys(object),\n index,\n length,\n objectKey,\n objectValue,\n explicitPair,\n pairBuffer;\n\n // Allow sorting keys so that the output file is deterministic\n if (state.sortKeys === true) {\n // Default sorting\n objectKeyList.sort();\n } else if (typeof state.sortKeys === 'function') {\n // Custom sort function\n objectKeyList.sort(state.sortKeys);\n } else if (state.sortKeys) {\n // Something is wrong\n throw new YAMLException('sortKeys must be a boolean or a function');\n }\n\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n pairBuffer = '';\n\n if (!compact || index !== 0) {\n pairBuffer += generateNextLine(state, level);\n }\n\n objectKey = objectKeyList[index];\n objectValue = object[objectKey];\n\n if (!writeNode(state, level + 1, objectKey, true, true, true)) {\n continue; // Skip this pair because of invalid key.\n }\n\n explicitPair = (state.tag !== null && state.tag !== '?') ||\n (state.dump && state.dump.length > 1024);\n\n if (explicitPair) {\n if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n pairBuffer += '?';\n } else {\n pairBuffer += '? ';\n }\n }\n\n pairBuffer += state.dump;\n\n if (explicitPair) {\n pairBuffer += generateNextLine(state, level);\n }\n\n if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {\n continue; // Skip this pair because of invalid value.\n }\n\n if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n pairBuffer += ':';\n } else {\n pairBuffer += ': ';\n }\n\n pairBuffer += state.dump;\n\n // Both key and value are valid.\n _result += pairBuffer;\n }\n\n state.tag = _tag;\n state.dump = _result || '{}'; // Empty mapping if no valid pairs.\n}\n\nfunction detectType(state, object, explicit) {\n var _result, typeList, index, length, type, style;\n\n typeList = explicit ? state.explicitTypes : state.implicitTypes;\n\n for (index = 0, length = typeList.length; index < length; index += 1) {\n type = typeList[index];\n\n if ((type.instanceOf || type.predicate) &&\n (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&\n (!type.predicate || type.predicate(object))) {\n\n state.tag = explicit ? type.tag : '?';\n\n if (type.represent) {\n style = state.styleMap[type.tag] || type.defaultStyle;\n\n if (_toString.call(type.represent) === '[object Function]') {\n _result = type.represent(object, style);\n } else if (_hasOwnProperty.call(type.represent, style)) {\n _result = type.represent[style](object, style);\n } else {\n throw new YAMLException('!<' + type.tag + '> tag resolver accepts not \"' + style + '\" style');\n }\n\n state.dump = _result;\n }\n\n return true;\n }\n }\n\n return false;\n}\n\n// Serializes `object` and writes it to global `result`.\n// Returns true on success, or false on invalid object.\n//\nfunction writeNode(state, level, object, block, compact, iskey) {\n state.tag = null;\n state.dump = object;\n\n if (!detectType(state, object, false)) {\n detectType(state, object, true);\n }\n\n var type = _toString.call(state.dump);\n\n if (block) {\n block = (state.flowLevel < 0 || state.flowLevel > level);\n }\n\n var objectOrArray = type === '[object Object]' || type === '[object Array]',\n duplicateIndex,\n duplicate;\n\n if (objectOrArray) {\n duplicateIndex = state.duplicates.indexOf(object);\n duplicate = duplicateIndex !== -1;\n }\n\n if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {\n compact = false;\n }\n\n if (duplicate && state.usedDuplicates[duplicateIndex]) {\n state.dump = '*ref_' + duplicateIndex;\n } else {\n if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {\n state.usedDuplicates[duplicateIndex] = true;\n }\n if (type === '[object Object]') {\n if (block && (Object.keys(state.dump).length !== 0)) {\n writeBlockMapping(state, level, state.dump, compact);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + state.dump;\n }\n } else {\n writeFlowMapping(state, level, state.dump);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;\n }\n }\n } else if (type === '[object Array]') {\n var arrayLevel = (state.noArrayIndent && (level > 0)) ? level - 1 : level;\n if (block && (state.dump.length !== 0)) {\n writeBlockSequence(state, arrayLevel, state.dump, compact);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + state.dump;\n }\n } else {\n writeFlowSequence(state, arrayLevel, state.dump);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;\n }\n }\n } else if (type === '[object String]') {\n if (state.tag !== '?') {\n writeScalar(state, state.dump, level, iskey);\n }\n } else {\n if (state.skipInvalid) return false;\n throw new YAMLException('unacceptable kind of an object to dump ' + type);\n }\n\n if (state.tag !== null && state.tag !== '?') {\n state.dump = '!<' + state.tag + '> ' + state.dump;\n }\n }\n\n return true;\n}\n\nfunction getDuplicateReferences(object, state) {\n var objects = [],\n duplicatesIndexes = [],\n index,\n length;\n\n inspectNode(object, objects, duplicatesIndexes);\n\n for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {\n state.duplicates.push(objects[duplicatesIndexes[index]]);\n }\n state.usedDuplicates = new Array(length);\n}\n\nfunction inspectNode(object, objects, duplicatesIndexes) {\n var objectKeyList,\n index,\n length;\n\n if (object !== null && typeof object === 'object') {\n index = objects.indexOf(object);\n if (index !== -1) {\n if (duplicatesIndexes.indexOf(index) === -1) {\n duplicatesIndexes.push(index);\n }\n } else {\n objects.push(object);\n\n if (Array.isArray(object)) {\n for (index = 0, length = object.length; index < length; index += 1) {\n inspectNode(object[index], objects, duplicatesIndexes);\n }\n } else {\n objectKeyList = Object.keys(object);\n\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);\n }\n }\n }\n }\n}\n\nfunction dump(input, options) {\n options = options || {};\n\n var state = new State(options);\n\n if (!state.noRefs) getDuplicateReferences(input, state);\n\n if (writeNode(state, 0, input, true, true)) return state.dump + '\\n';\n\n return '';\n}\n\nfunction safeDump(input, options) {\n return dump(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));\n}\n\nmodule.exports.dump = dump;\nmodule.exports.safeDump = safeDump;\n","const PATTERN_ENV_VER = /\\$\\{\\s*([a-zA-Z_]+[a-zA-Z0-9_]*)\\s*\\}/g;\n\nexport function replaceEnvVer(v: string) {\n return v.replace(PATTERN_ENV_VER, (_, key) => process.env[key] || \"\");\n}\n","// Standard YAML's Failsafe schema.\n// http://www.yaml.org/spec/1.2/spec.html#id2802346\n\n\n'use strict';\n\n\nvar Schema = require('../schema');\n\n\nmodule.exports = new Schema({\n explicit: [\n require('../type/str'),\n require('../type/seq'),\n require('../type/map')\n ]\n});\n","'use strict';\n\nvar Type = require('../type');\n\nvar _toString = Object.prototype.toString;\n\nfunction resolveYamlPairs(data) {\n if (data === null) return true;\n\n var index, length, pair, keys, result,\n object = data;\n\n result = new Array(object.length);\n\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n\n if (_toString.call(pair) !== '[object Object]') return false;\n\n keys = Object.keys(pair);\n\n if (keys.length !== 1) return false;\n\n result[index] = [ keys[0], pair[keys[0]] ];\n }\n\n return true;\n}\n\nfunction constructYamlPairs(data) {\n if (data === null) return [];\n\n var index, length, pair, keys, result,\n object = data;\n\n result = new Array(object.length);\n\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n\n keys = Object.keys(pair);\n\n result[index] = [ keys[0], pair[keys[0]] ];\n }\n\n return result;\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:pairs', {\n kind: 'sequence',\n resolve: resolveYamlPairs,\n construct: constructYamlPairs\n});\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","import { getInput } from \"@actions/core\";\n\nexport type Inputs = {\n configFile: string;\n gpgPassphrase?: string;\n};\n\nfunction getRequiredInput(name: string): string {\n return getInput(name, { required: true });\n}\n\nfunction getOptionalInput(name: string): string | void {\n const value = getInput(name);\n if (value == \"\") {\n return;\n }\n return value;\n}\n\nexport async function loadInputs(): Promise {\n const configFile = getRequiredInput(\"config_file\");\n let result: Inputs = {\n configFile,\n };\n\n const gpgPassphrase = getOptionalInput(\"gpg_passphrase\");\n if (gpgPassphrase) {\n result = { ...result, gpgPassphrase };\n }\n\n return result;\n}\n","var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n","var isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","module.exports = require(\"os\");","'use strict';\nmodule.exports = function generate_anyOf(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $noEmptySchema = $schema.every(function($sch) {\n return (it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all));\n });\n if ($noEmptySchema) {\n var $currentBaseId = $it.baseId;\n out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = false; ';\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n var arr1 = $schema;\n if (arr1) {\n var $sch, $i = -1,\n l1 = arr1.length - 1;\n while ($i < l1) {\n $sch = arr1[$i += 1];\n $it.schema = $sch;\n $it.schemaPath = $schemaPath + '[' + $i + ']';\n $it.errSchemaPath = $errSchemaPath + '/' + $i;\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n out += ' ' + ($valid) + ' = ' + ($valid) + ' || ' + ($nextValid) + '; if (!' + ($valid) + ') { ';\n $closingBraces += '}';\n }\n }\n it.compositeRule = $it.compositeRule = $wasComposite;\n out += ' ' + ($closingBraces) + ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('anyOf') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should match some schema in anyOf\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError(vErrors); ';\n } else {\n out += ' validate.errors = vErrors; return false; ';\n }\n }\n out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';\n if (it.opts.allErrors) {\n out += ' } ';\n }\n } else {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n }\n return out;\n}\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","var getAllKeys = require('./_getAllKeys');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalObjects;\n","'use strict';\nmodule.exports = function generate_oneOf(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $currentBaseId = $it.baseId,\n $prevValid = 'prevValid' + $lvl,\n $passingSchemas = 'passingSchemas' + $lvl;\n out += 'var ' + ($errs) + ' = errors , ' + ($prevValid) + ' = false , ' + ($valid) + ' = false , ' + ($passingSchemas) + ' = null; ';\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n var arr1 = $schema;\n if (arr1) {\n var $sch, $i = -1,\n l1 = arr1.length - 1;\n while ($i < l1) {\n $sch = arr1[$i += 1];\n if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {\n $it.schema = $sch;\n $it.schemaPath = $schemaPath + '[' + $i + ']';\n $it.errSchemaPath = $errSchemaPath + '/' + $i;\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n } else {\n out += ' var ' + ($nextValid) + ' = true; ';\n }\n if ($i) {\n out += ' if (' + ($nextValid) + ' && ' + ($prevValid) + ') { ' + ($valid) + ' = false; ' + ($passingSchemas) + ' = [' + ($passingSchemas) + ', ' + ($i) + ']; } else { ';\n $closingBraces += '}';\n }\n out += ' if (' + ($nextValid) + ') { ' + ($valid) + ' = ' + ($prevValid) + ' = true; ' + ($passingSchemas) + ' = ' + ($i) + '; }';\n }\n }\n it.compositeRule = $it.compositeRule = $wasComposite;\n out += '' + ($closingBraces) + 'if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('oneOf') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { passingSchemas: ' + ($passingSchemas) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should match exactly one schema in oneOf\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError(vErrors); ';\n } else {\n out += ' validate.errors = vErrors; return false; ';\n }\n }\n out += '} else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; }';\n if (it.opts.allErrors) {\n out += ' } ';\n }\n return out;\n}\n","'use strict';\nmodule.exports = function generate__limitLength(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $errorKeyword;\n var $data = 'data' + ($dataLvl || '');\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n if (!($isData || typeof $schema == 'number')) {\n throw new Error($keyword + ' must be number');\n }\n var $op = $keyword == 'maxLength' ? '>' : '<';\n out += 'if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n }\n if (it.opts.unicode === false) {\n out += ' ' + ($data) + '.length ';\n } else {\n out += ' ucs2length(' + ($data) + ') ';\n }\n out += ' ' + ($op) + ' ' + ($schemaValue) + ') { ';\n var $errorKeyword = $keyword;\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || '_limitLength') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should NOT be ';\n if ($keyword == 'maxLength') {\n out += 'longer';\n } else {\n out += 'shorter';\n }\n out += ' than ';\n if ($isData) {\n out += '\\' + ' + ($schemaValue) + ' + \\'';\n } else {\n out += '' + ($schema);\n }\n out += ' characters\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + ($schema);\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += '} ';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","var Stack = require('./_Stack'),\n baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nmodule.exports = baseIsMatch;\n","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n","'use strict';\nmodule.exports = function generate_comment(it, $keyword, $ruleType) {\n var out = ' ';\n var $schema = it.schema[$keyword];\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $comment = it.util.toQuotedString($schema);\n if (it.opts.$comment === true) {\n out += ' console.log(' + ($comment) + ');';\n } else if (typeof it.opts.$comment == 'function') {\n out += ' self._opts.$comment(' + ($comment) + ', ' + (it.util.toQuotedString($errSchemaPath)) + ', validate.root.schema);';\n }\n return out;\n}\n","'use strict';\n\n\nfunction isNothing(subject) {\n return (typeof subject === 'undefined') || (subject === null);\n}\n\n\nfunction isObject(subject) {\n return (typeof subject === 'object') && (subject !== null);\n}\n\n\nfunction toArray(sequence) {\n if (Array.isArray(sequence)) return sequence;\n else if (isNothing(sequence)) return [];\n\n return [ sequence ];\n}\n\n\nfunction extend(target, source) {\n var index, length, key, sourceKeys;\n\n if (source) {\n sourceKeys = Object.keys(source);\n\n for (index = 0, length = sourceKeys.length; index < length; index += 1) {\n key = sourceKeys[index];\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\n\nfunction repeat(string, count) {\n var result = '', cycle;\n\n for (cycle = 0; cycle < count; cycle += 1) {\n result += string;\n }\n\n return result;\n}\n\n\nfunction isNegativeZero(number) {\n return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);\n}\n\n\nmodule.exports.isNothing = isNothing;\nmodule.exports.isObject = isObject;\nmodule.exports.toArray = toArray;\nmodule.exports.repeat = repeat;\nmodule.exports.isNegativeZero = isNegativeZero;\nmodule.exports.extend = extend;\n","'use strict';\nmodule.exports = function generate__limitProperties(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $errorKeyword;\n var $data = 'data' + ($dataLvl || '');\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n if (!($isData || typeof $schema == 'number')) {\n throw new Error($keyword + ' must be number');\n }\n var $op = $keyword == 'maxProperties' ? '>' : '<';\n out += 'if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n }\n out += ' Object.keys(' + ($data) + ').length ' + ($op) + ' ' + ($schemaValue) + ') { ';\n var $errorKeyword = $keyword;\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || '_limitProperties') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should NOT have ';\n if ($keyword == 'maxProperties') {\n out += 'more';\n } else {\n out += 'fewer';\n }\n out += ' than ';\n if ($isData) {\n out += '\\' + ' + ($schemaValue) + ' + \\'';\n } else {\n out += '' + ($schema);\n }\n out += ' properties\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + ($schema);\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += '} ';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","import { endGroup, startGroup, setFailed } from \"@actions/core\";\n\nimport { ConfigActionError } from \"./errors\";\nimport { loadConfig } from \"./config\";\nimport { loadInputs } from \"./inputs\";\nimport { prepareEnv, prepareFile, prepareMask } from \"./prepare\";\n\nexport async function run(baseDir: string): Promise {\n try {\n const inputs = await loadInputs();\n const config = await loadConfig(baseDir, inputs);\n\n startGroup(\"Setting mask values\");\n await prepareMask(config);\n endGroup();\n startGroup(\"Exporting environment variables\");\n await prepareEnv(config);\n endGroup();\n startGroup(\"Saving defined files\");\n await prepareFile(baseDir, config);\n endGroup();\n } catch (e) {\n setFailed(e);\n }\n}\n\n/* istanbul ignore next */\nif (require.main === module) {\n const baseDir = process.cwd();\n run(baseDir);\n}\n","'use strict';\n\nvar Type = require('../type');\n\nfunction resolveYamlMerge(data) {\n return data === '<<' || data === null;\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:merge', {\n kind: 'scalar',\n resolve: resolveYamlMerge\n});\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","'use strict';\nmodule.exports = function generate_enum(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n var $i = 'i' + $lvl,\n $vSchema = 'schema' + $lvl;\n if (!$isData) {\n out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + ';';\n }\n out += 'var ' + ($valid) + ';';\n if ($isData) {\n out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {';\n }\n out += '' + ($valid) + ' = false;for (var ' + ($i) + '=0; ' + ($i) + '<' + ($vSchema) + '.length; ' + ($i) + '++) if (equal(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + '])) { ' + ($valid) + ' = true; break; }';\n if ($isData) {\n out += ' } ';\n }\n out += ' if (!' + ($valid) + ') { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('enum') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValues: schema' + ($lvl) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be equal to one of the allowed values\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' }';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n","'use strict';\n\nvar Type = require('../type');\n\nmodule.exports = new Type('tag:yaml.org,2002:map', {\n kind: 'mapping',\n construct: function (data) { return data !== null ? data : {}; }\n});\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","// Standard YAML's Core schema.\n// http://www.yaml.org/spec/1.2/spec.html#id2804923\n//\n// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.\n// So, Core schema has no distinctions from JSON schema is JS-YAML.\n\n\n'use strict';\n\n\nvar Schema = require('../schema');\n\n\nmodule.exports = new Schema({\n include: [\n require('./json')\n ]\n});\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst command_1 = require(\"./command\");\nconst os = __importStar(require(\"os\"));\nconst path = __importStar(require(\"path\"));\n/**\n * The code to exit an action\n */\nvar ExitCode;\n(function (ExitCode) {\n /**\n * A code indicating that the action was successful\n */\n ExitCode[ExitCode[\"Success\"] = 0] = \"Success\";\n /**\n * A code indicating that the action was a failure\n */\n ExitCode[ExitCode[\"Failure\"] = 1] = \"Failure\";\n})(ExitCode = exports.ExitCode || (exports.ExitCode = {}));\n//-----------------------------------------------------------------------\n// Variables\n//-----------------------------------------------------------------------\n/**\n * Sets env variable for this action and future actions in the job\n * @param name the name of the variable to set\n * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction exportVariable(name, val) {\n const convertedVal = command_1.toCommandValue(val);\n process.env[name] = convertedVal;\n command_1.issueCommand('set-env', { name }, convertedVal);\n}\nexports.exportVariable = exportVariable;\n/**\n * Registers a secret which will get masked from logs\n * @param secret value of the secret\n */\nfunction setSecret(secret) {\n command_1.issueCommand('add-mask', {}, secret);\n}\nexports.setSecret = setSecret;\n/**\n * Prepends inputPath to the PATH (for this action and future actions)\n * @param inputPath\n */\nfunction addPath(inputPath) {\n command_1.issueCommand('add-path', {}, inputPath);\n process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;\n}\nexports.addPath = addPath;\n/**\n * Gets the value of an input. The value is also trimmed.\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns string\n */\nfunction getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}\nexports.getInput = getInput;\n/**\n * Sets the value of an output.\n *\n * @param name name of the output to set\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction setOutput(name, value) {\n command_1.issueCommand('set-output', { name }, value);\n}\nexports.setOutput = setOutput;\n/**\n * Enables or disables the echoing of commands into stdout for the rest of the step.\n * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.\n *\n */\nfunction setCommandEcho(enabled) {\n command_1.issue('echo', enabled ? 'on' : 'off');\n}\nexports.setCommandEcho = setCommandEcho;\n//-----------------------------------------------------------------------\n// Results\n//-----------------------------------------------------------------------\n/**\n * Sets the action status to failed.\n * When the action exits it will be with an exit code of 1\n * @param message add error issue message\n */\nfunction setFailed(message) {\n process.exitCode = ExitCode.Failure;\n error(message);\n}\nexports.setFailed = setFailed;\n//-----------------------------------------------------------------------\n// Logging Commands\n//-----------------------------------------------------------------------\n/**\n * Gets whether Actions Step Debug is on or not\n */\nfunction isDebug() {\n return process.env['RUNNER_DEBUG'] === '1';\n}\nexports.isDebug = isDebug;\n/**\n * Writes debug message to user log\n * @param message debug message\n */\nfunction debug(message) {\n command_1.issueCommand('debug', {}, message);\n}\nexports.debug = debug;\n/**\n * Adds an error issue\n * @param message error issue message. Errors will be converted to string via toString()\n */\nfunction error(message) {\n command_1.issue('error', message instanceof Error ? message.toString() : message);\n}\nexports.error = error;\n/**\n * Adds an warning issue\n * @param message warning issue message. Errors will be converted to string via toString()\n */\nfunction warning(message) {\n command_1.issue('warning', message instanceof Error ? message.toString() : message);\n}\nexports.warning = warning;\n/**\n * Writes info to log with console.log.\n * @param message info message\n */\nfunction info(message) {\n process.stdout.write(message + os.EOL);\n}\nexports.info = info;\n/**\n * Begin an output group.\n *\n * Output until the next `groupEnd` will be foldable in this group\n *\n * @param name The name of the output group\n */\nfunction startGroup(name) {\n command_1.issue('group', name);\n}\nexports.startGroup = startGroup;\n/**\n * End an output group.\n */\nfunction endGroup() {\n command_1.issue('endgroup');\n}\nexports.endGroup = endGroup;\n/**\n * Wrap an asynchronous function call in a group.\n *\n * Returns the same type as the function itself.\n *\n * @param name The name of the group\n * @param fn The function to wrap in the group\n */\nfunction group(name, fn) {\n return __awaiter(this, void 0, void 0, function* () {\n startGroup(name);\n let result;\n try {\n result = yield fn();\n }\n finally {\n endGroup();\n }\n return result;\n });\n}\nexports.group = group;\n//-----------------------------------------------------------------------\n// Wrapper action state\n//-----------------------------------------------------------------------\n/**\n * Saves state for current action, the state can only be retrieved by this action's post job execution.\n *\n * @param name name of the state to store\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction saveState(name, value) {\n command_1.issueCommand('save-state', { name }, value);\n}\nexports.saveState = saveState;\n/**\n * Gets the value of an state set by this action's main execution.\n *\n * @param name name of the state to get\n * @returns string\n */\nfunction getState(name) {\n return process.env[`STATE_${name}`] || '';\n}\nexports.getState = getState;\n//# sourceMappingURL=core.js.map","'use strict';\n\n/*eslint-disable max-len,no-use-before-define*/\n\nvar common = require('./common');\nvar YAMLException = require('./exception');\nvar Mark = require('./mark');\nvar DEFAULT_SAFE_SCHEMA = require('./schema/default_safe');\nvar DEFAULT_FULL_SCHEMA = require('./schema/default_full');\n\n\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\n\n\nvar CONTEXT_FLOW_IN = 1;\nvar CONTEXT_FLOW_OUT = 2;\nvar CONTEXT_BLOCK_IN = 3;\nvar CONTEXT_BLOCK_OUT = 4;\n\n\nvar CHOMPING_CLIP = 1;\nvar CHOMPING_STRIP = 2;\nvar CHOMPING_KEEP = 3;\n\n\nvar PATTERN_NON_PRINTABLE = /[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F-\\x84\\x86-\\x9F\\uFFFE\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/;\nvar PATTERN_NON_ASCII_LINE_BREAKS = /[\\x85\\u2028\\u2029]/;\nvar PATTERN_FLOW_INDICATORS = /[,\\[\\]\\{\\}]/;\nvar PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\\-]+!)$/i;\nvar PATTERN_TAG_URI = /^(?:!|[^,\\[\\]\\{\\}])(?:%[0-9a-f]{2}|[0-9a-z\\-#;\\/\\?:@&=\\+\\$,_\\.!~\\*'\\(\\)\\[\\]])*$/i;\n\n\nfunction _class(obj) { return Object.prototype.toString.call(obj); }\n\nfunction is_EOL(c) {\n return (c === 0x0A/* LF */) || (c === 0x0D/* CR */);\n}\n\nfunction is_WHITE_SPACE(c) {\n return (c === 0x09/* Tab */) || (c === 0x20/* Space */);\n}\n\nfunction is_WS_OR_EOL(c) {\n return (c === 0x09/* Tab */) ||\n (c === 0x20/* Space */) ||\n (c === 0x0A/* LF */) ||\n (c === 0x0D/* CR */);\n}\n\nfunction is_FLOW_INDICATOR(c) {\n return c === 0x2C/* , */ ||\n c === 0x5B/* [ */ ||\n c === 0x5D/* ] */ ||\n c === 0x7B/* { */ ||\n c === 0x7D/* } */;\n}\n\nfunction fromHexCode(c) {\n var lc;\n\n if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {\n return c - 0x30;\n }\n\n /*eslint-disable no-bitwise*/\n lc = c | 0x20;\n\n if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) {\n return lc - 0x61 + 10;\n }\n\n return -1;\n}\n\nfunction escapedHexLen(c) {\n if (c === 0x78/* x */) { return 2; }\n if (c === 0x75/* u */) { return 4; }\n if (c === 0x55/* U */) { return 8; }\n return 0;\n}\n\nfunction fromDecimalCode(c) {\n if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {\n return c - 0x30;\n }\n\n return -1;\n}\n\nfunction simpleEscapeSequence(c) {\n /* eslint-disable indent */\n return (c === 0x30/* 0 */) ? '\\x00' :\n (c === 0x61/* a */) ? '\\x07' :\n (c === 0x62/* b */) ? '\\x08' :\n (c === 0x74/* t */) ? '\\x09' :\n (c === 0x09/* Tab */) ? '\\x09' :\n (c === 0x6E/* n */) ? '\\x0A' :\n (c === 0x76/* v */) ? '\\x0B' :\n (c === 0x66/* f */) ? '\\x0C' :\n (c === 0x72/* r */) ? '\\x0D' :\n (c === 0x65/* e */) ? '\\x1B' :\n (c === 0x20/* Space */) ? ' ' :\n (c === 0x22/* \" */) ? '\\x22' :\n (c === 0x2F/* / */) ? '/' :\n (c === 0x5C/* \\ */) ? '\\x5C' :\n (c === 0x4E/* N */) ? '\\x85' :\n (c === 0x5F/* _ */) ? '\\xA0' :\n (c === 0x4C/* L */) ? '\\u2028' :\n (c === 0x50/* P */) ? '\\u2029' : '';\n}\n\nfunction charFromCodepoint(c) {\n if (c <= 0xFFFF) {\n return String.fromCharCode(c);\n }\n // Encode UTF-16 surrogate pair\n // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF\n return String.fromCharCode(\n ((c - 0x010000) >> 10) + 0xD800,\n ((c - 0x010000) & 0x03FF) + 0xDC00\n );\n}\n\nvar simpleEscapeCheck = new Array(256); // integer, for fast access\nvar simpleEscapeMap = new Array(256);\nfor (var i = 0; i < 256; i++) {\n simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;\n simpleEscapeMap[i] = simpleEscapeSequence(i);\n}\n\n\nfunction State(input, options) {\n this.input = input;\n\n this.filename = options['filename'] || null;\n this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;\n this.onWarning = options['onWarning'] || null;\n this.legacy = options['legacy'] || false;\n this.json = options['json'] || false;\n this.listener = options['listener'] || null;\n\n this.implicitTypes = this.schema.compiledImplicit;\n this.typeMap = this.schema.compiledTypeMap;\n\n this.length = input.length;\n this.position = 0;\n this.line = 0;\n this.lineStart = 0;\n this.lineIndent = 0;\n\n this.documents = [];\n\n /*\n this.version;\n this.checkLineBreaks;\n this.tagMap;\n this.anchorMap;\n this.tag;\n this.anchor;\n this.kind;\n this.result;*/\n\n}\n\n\nfunction generateError(state, message) {\n return new YAMLException(\n message,\n new Mark(state.filename, state.input, state.position, state.line, (state.position - state.lineStart)));\n}\n\nfunction throwError(state, message) {\n throw generateError(state, message);\n}\n\nfunction throwWarning(state, message) {\n if (state.onWarning) {\n state.onWarning.call(null, generateError(state, message));\n }\n}\n\n\nvar directiveHandlers = {\n\n YAML: function handleYamlDirective(state, name, args) {\n\n var match, major, minor;\n\n if (state.version !== null) {\n throwError(state, 'duplication of %YAML directive');\n }\n\n if (args.length !== 1) {\n throwError(state, 'YAML directive accepts exactly one argument');\n }\n\n match = /^([0-9]+)\\.([0-9]+)$/.exec(args[0]);\n\n if (match === null) {\n throwError(state, 'ill-formed argument of the YAML directive');\n }\n\n major = parseInt(match[1], 10);\n minor = parseInt(match[2], 10);\n\n if (major !== 1) {\n throwError(state, 'unacceptable YAML version of the document');\n }\n\n state.version = args[0];\n state.checkLineBreaks = (minor < 2);\n\n if (minor !== 1 && minor !== 2) {\n throwWarning(state, 'unsupported YAML version of the document');\n }\n },\n\n TAG: function handleTagDirective(state, name, args) {\n\n var handle, prefix;\n\n if (args.length !== 2) {\n throwError(state, 'TAG directive accepts exactly two arguments');\n }\n\n handle = args[0];\n prefix = args[1];\n\n if (!PATTERN_TAG_HANDLE.test(handle)) {\n throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');\n }\n\n if (_hasOwnProperty.call(state.tagMap, handle)) {\n throwError(state, 'there is a previously declared suffix for \"' + handle + '\" tag handle');\n }\n\n if (!PATTERN_TAG_URI.test(prefix)) {\n throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');\n }\n\n state.tagMap[handle] = prefix;\n }\n};\n\n\nfunction captureSegment(state, start, end, checkJson) {\n var _position, _length, _character, _result;\n\n if (start < end) {\n _result = state.input.slice(start, end);\n\n if (checkJson) {\n for (_position = 0, _length = _result.length; _position < _length; _position += 1) {\n _character = _result.charCodeAt(_position);\n if (!(_character === 0x09 ||\n (0x20 <= _character && _character <= 0x10FFFF))) {\n throwError(state, 'expected valid JSON character');\n }\n }\n } else if (PATTERN_NON_PRINTABLE.test(_result)) {\n throwError(state, 'the stream contains non-printable characters');\n }\n\n state.result += _result;\n }\n}\n\nfunction mergeMappings(state, destination, source, overridableKeys) {\n var sourceKeys, key, index, quantity;\n\n if (!common.isObject(source)) {\n throwError(state, 'cannot merge mappings; the provided source object is unacceptable');\n }\n\n sourceKeys = Object.keys(source);\n\n for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {\n key = sourceKeys[index];\n\n if (!_hasOwnProperty.call(destination, key)) {\n destination[key] = source[key];\n overridableKeys[key] = true;\n }\n }\n}\n\nfunction storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startPos) {\n var index, quantity;\n\n // The output is a plain object here, so keys can only be strings.\n // We need to convert keyNode to a string, but doing so can hang the process\n // (deeply nested arrays that explode exponentially using aliases).\n if (Array.isArray(keyNode)) {\n keyNode = Array.prototype.slice.call(keyNode);\n\n for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {\n if (Array.isArray(keyNode[index])) {\n throwError(state, 'nested arrays are not supported inside keys');\n }\n\n if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') {\n keyNode[index] = '[object Object]';\n }\n }\n }\n\n // Avoid code execution in load() via toString property\n // (still use its own toString for arrays, timestamps,\n // and whatever user schema extensions happen to have @@toStringTag)\n if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') {\n keyNode = '[object Object]';\n }\n\n\n keyNode = String(keyNode);\n\n if (_result === null) {\n _result = {};\n }\n\n if (keyTag === 'tag:yaml.org,2002:merge') {\n if (Array.isArray(valueNode)) {\n for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {\n mergeMappings(state, _result, valueNode[index], overridableKeys);\n }\n } else {\n mergeMappings(state, _result, valueNode, overridableKeys);\n }\n } else {\n if (!state.json &&\n !_hasOwnProperty.call(overridableKeys, keyNode) &&\n _hasOwnProperty.call(_result, keyNode)) {\n state.line = startLine || state.line;\n state.position = startPos || state.position;\n throwError(state, 'duplicated mapping key');\n }\n _result[keyNode] = valueNode;\n delete overridableKeys[keyNode];\n }\n\n return _result;\n}\n\nfunction readLineBreak(state) {\n var ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === 0x0A/* LF */) {\n state.position++;\n } else if (ch === 0x0D/* CR */) {\n state.position++;\n if (state.input.charCodeAt(state.position) === 0x0A/* LF */) {\n state.position++;\n }\n } else {\n throwError(state, 'a line break is expected');\n }\n\n state.line += 1;\n state.lineStart = state.position;\n}\n\nfunction skipSeparationSpace(state, allowComments, checkIndent) {\n var lineBreaks = 0,\n ch = state.input.charCodeAt(state.position);\n\n while (ch !== 0) {\n while (is_WHITE_SPACE(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (allowComments && ch === 0x23/* # */) {\n do {\n ch = state.input.charCodeAt(++state.position);\n } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0);\n }\n\n if (is_EOL(ch)) {\n readLineBreak(state);\n\n ch = state.input.charCodeAt(state.position);\n lineBreaks++;\n state.lineIndent = 0;\n\n while (ch === 0x20/* Space */) {\n state.lineIndent++;\n ch = state.input.charCodeAt(++state.position);\n }\n } else {\n break;\n }\n }\n\n if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {\n throwWarning(state, 'deficient indentation');\n }\n\n return lineBreaks;\n}\n\nfunction testDocumentSeparator(state) {\n var _position = state.position,\n ch;\n\n ch = state.input.charCodeAt(_position);\n\n // Condition state.position === state.lineStart is tested\n // in parent on each call, for efficiency. No needs to test here again.\n if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) &&\n ch === state.input.charCodeAt(_position + 1) &&\n ch === state.input.charCodeAt(_position + 2)) {\n\n _position += 3;\n\n ch = state.input.charCodeAt(_position);\n\n if (ch === 0 || is_WS_OR_EOL(ch)) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction writeFoldedLines(state, count) {\n if (count === 1) {\n state.result += ' ';\n } else if (count > 1) {\n state.result += common.repeat('\\n', count - 1);\n }\n}\n\n\nfunction readPlainScalar(state, nodeIndent, withinFlowCollection) {\n var preceding,\n following,\n captureStart,\n captureEnd,\n hasPendingContent,\n _line,\n _lineStart,\n _lineIndent,\n _kind = state.kind,\n _result = state.result,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (is_WS_OR_EOL(ch) ||\n is_FLOW_INDICATOR(ch) ||\n ch === 0x23/* # */ ||\n ch === 0x26/* & */ ||\n ch === 0x2A/* * */ ||\n ch === 0x21/* ! */ ||\n ch === 0x7C/* | */ ||\n ch === 0x3E/* > */ ||\n ch === 0x27/* ' */ ||\n ch === 0x22/* \" */ ||\n ch === 0x25/* % */ ||\n ch === 0x40/* @ */ ||\n ch === 0x60/* ` */) {\n return false;\n }\n\n if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) {\n following = state.input.charCodeAt(state.position + 1);\n\n if (is_WS_OR_EOL(following) ||\n withinFlowCollection && is_FLOW_INDICATOR(following)) {\n return false;\n }\n }\n\n state.kind = 'scalar';\n state.result = '';\n captureStart = captureEnd = state.position;\n hasPendingContent = false;\n\n while (ch !== 0) {\n if (ch === 0x3A/* : */) {\n following = state.input.charCodeAt(state.position + 1);\n\n if (is_WS_OR_EOL(following) ||\n withinFlowCollection && is_FLOW_INDICATOR(following)) {\n break;\n }\n\n } else if (ch === 0x23/* # */) {\n preceding = state.input.charCodeAt(state.position - 1);\n\n if (is_WS_OR_EOL(preceding)) {\n break;\n }\n\n } else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||\n withinFlowCollection && is_FLOW_INDICATOR(ch)) {\n break;\n\n } else if (is_EOL(ch)) {\n _line = state.line;\n _lineStart = state.lineStart;\n _lineIndent = state.lineIndent;\n skipSeparationSpace(state, false, -1);\n\n if (state.lineIndent >= nodeIndent) {\n hasPendingContent = true;\n ch = state.input.charCodeAt(state.position);\n continue;\n } else {\n state.position = captureEnd;\n state.line = _line;\n state.lineStart = _lineStart;\n state.lineIndent = _lineIndent;\n break;\n }\n }\n\n if (hasPendingContent) {\n captureSegment(state, captureStart, captureEnd, false);\n writeFoldedLines(state, state.line - _line);\n captureStart = captureEnd = state.position;\n hasPendingContent = false;\n }\n\n if (!is_WHITE_SPACE(ch)) {\n captureEnd = state.position + 1;\n }\n\n ch = state.input.charCodeAt(++state.position);\n }\n\n captureSegment(state, captureStart, captureEnd, false);\n\n if (state.result) {\n return true;\n }\n\n state.kind = _kind;\n state.result = _result;\n return false;\n}\n\nfunction readSingleQuotedScalar(state, nodeIndent) {\n var ch,\n captureStart, captureEnd;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x27/* ' */) {\n return false;\n }\n\n state.kind = 'scalar';\n state.result = '';\n state.position++;\n captureStart = captureEnd = state.position;\n\n while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n if (ch === 0x27/* ' */) {\n captureSegment(state, captureStart, state.position, true);\n ch = state.input.charCodeAt(++state.position);\n\n if (ch === 0x27/* ' */) {\n captureStart = state.position;\n state.position++;\n captureEnd = state.position;\n } else {\n return true;\n }\n\n } else if (is_EOL(ch)) {\n captureSegment(state, captureStart, captureEnd, true);\n writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));\n captureStart = captureEnd = state.position;\n\n } else if (state.position === state.lineStart && testDocumentSeparator(state)) {\n throwError(state, 'unexpected end of the document within a single quoted scalar');\n\n } else {\n state.position++;\n captureEnd = state.position;\n }\n }\n\n throwError(state, 'unexpected end of the stream within a single quoted scalar');\n}\n\nfunction readDoubleQuotedScalar(state, nodeIndent) {\n var captureStart,\n captureEnd,\n hexLength,\n hexResult,\n tmp,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x22/* \" */) {\n return false;\n }\n\n state.kind = 'scalar';\n state.result = '';\n state.position++;\n captureStart = captureEnd = state.position;\n\n while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n if (ch === 0x22/* \" */) {\n captureSegment(state, captureStart, state.position, true);\n state.position++;\n return true;\n\n } else if (ch === 0x5C/* \\ */) {\n captureSegment(state, captureStart, state.position, true);\n ch = state.input.charCodeAt(++state.position);\n\n if (is_EOL(ch)) {\n skipSeparationSpace(state, false, nodeIndent);\n\n // TODO: rework to inline fn with no type cast?\n } else if (ch < 256 && simpleEscapeCheck[ch]) {\n state.result += simpleEscapeMap[ch];\n state.position++;\n\n } else if ((tmp = escapedHexLen(ch)) > 0) {\n hexLength = tmp;\n hexResult = 0;\n\n for (; hexLength > 0; hexLength--) {\n ch = state.input.charCodeAt(++state.position);\n\n if ((tmp = fromHexCode(ch)) >= 0) {\n hexResult = (hexResult << 4) + tmp;\n\n } else {\n throwError(state, 'expected hexadecimal character');\n }\n }\n\n state.result += charFromCodepoint(hexResult);\n\n state.position++;\n\n } else {\n throwError(state, 'unknown escape sequence');\n }\n\n captureStart = captureEnd = state.position;\n\n } else if (is_EOL(ch)) {\n captureSegment(state, captureStart, captureEnd, true);\n writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));\n captureStart = captureEnd = state.position;\n\n } else if (state.position === state.lineStart && testDocumentSeparator(state)) {\n throwError(state, 'unexpected end of the document within a double quoted scalar');\n\n } else {\n state.position++;\n captureEnd = state.position;\n }\n }\n\n throwError(state, 'unexpected end of the stream within a double quoted scalar');\n}\n\nfunction readFlowCollection(state, nodeIndent) {\n var readNext = true,\n _line,\n _tag = state.tag,\n _result,\n _anchor = state.anchor,\n following,\n terminator,\n isPair,\n isExplicitPair,\n isMapping,\n overridableKeys = {},\n keyNode,\n keyTag,\n valueNode,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === 0x5B/* [ */) {\n terminator = 0x5D;/* ] */\n isMapping = false;\n _result = [];\n } else if (ch === 0x7B/* { */) {\n terminator = 0x7D;/* } */\n isMapping = true;\n _result = {};\n } else {\n return false;\n }\n\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = _result;\n }\n\n ch = state.input.charCodeAt(++state.position);\n\n while (ch !== 0) {\n skipSeparationSpace(state, true, nodeIndent);\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === terminator) {\n state.position++;\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = isMapping ? 'mapping' : 'sequence';\n state.result = _result;\n return true;\n } else if (!readNext) {\n throwError(state, 'missed comma between flow collection entries');\n }\n\n keyTag = keyNode = valueNode = null;\n isPair = isExplicitPair = false;\n\n if (ch === 0x3F/* ? */) {\n following = state.input.charCodeAt(state.position + 1);\n\n if (is_WS_OR_EOL(following)) {\n isPair = isExplicitPair = true;\n state.position++;\n skipSeparationSpace(state, true, nodeIndent);\n }\n }\n\n _line = state.line;\n composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);\n keyTag = state.tag;\n keyNode = state.result;\n skipSeparationSpace(state, true, nodeIndent);\n\n ch = state.input.charCodeAt(state.position);\n\n if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) {\n isPair = true;\n ch = state.input.charCodeAt(++state.position);\n skipSeparationSpace(state, true, nodeIndent);\n composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);\n valueNode = state.result;\n }\n\n if (isMapping) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode);\n } else if (isPair) {\n _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode));\n } else {\n _result.push(keyNode);\n }\n\n skipSeparationSpace(state, true, nodeIndent);\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === 0x2C/* , */) {\n readNext = true;\n ch = state.input.charCodeAt(++state.position);\n } else {\n readNext = false;\n }\n }\n\n throwError(state, 'unexpected end of the stream within a flow collection');\n}\n\nfunction readBlockScalar(state, nodeIndent) {\n var captureStart,\n folding,\n chomping = CHOMPING_CLIP,\n didReadContent = false,\n detectedIndent = false,\n textIndent = nodeIndent,\n emptyLines = 0,\n atMoreIndented = false,\n tmp,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === 0x7C/* | */) {\n folding = false;\n } else if (ch === 0x3E/* > */) {\n folding = true;\n } else {\n return false;\n }\n\n state.kind = 'scalar';\n state.result = '';\n\n while (ch !== 0) {\n ch = state.input.charCodeAt(++state.position);\n\n if (ch === 0x2B/* + */ || ch === 0x2D/* - */) {\n if (CHOMPING_CLIP === chomping) {\n chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP;\n } else {\n throwError(state, 'repeat of a chomping mode identifier');\n }\n\n } else if ((tmp = fromDecimalCode(ch)) >= 0) {\n if (tmp === 0) {\n throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');\n } else if (!detectedIndent) {\n textIndent = nodeIndent + tmp - 1;\n detectedIndent = true;\n } else {\n throwError(state, 'repeat of an indentation width identifier');\n }\n\n } else {\n break;\n }\n }\n\n if (is_WHITE_SPACE(ch)) {\n do { ch = state.input.charCodeAt(++state.position); }\n while (is_WHITE_SPACE(ch));\n\n if (ch === 0x23/* # */) {\n do { ch = state.input.charCodeAt(++state.position); }\n while (!is_EOL(ch) && (ch !== 0));\n }\n }\n\n while (ch !== 0) {\n readLineBreak(state);\n state.lineIndent = 0;\n\n ch = state.input.charCodeAt(state.position);\n\n while ((!detectedIndent || state.lineIndent < textIndent) &&\n (ch === 0x20/* Space */)) {\n state.lineIndent++;\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (!detectedIndent && state.lineIndent > textIndent) {\n textIndent = state.lineIndent;\n }\n\n if (is_EOL(ch)) {\n emptyLines++;\n continue;\n }\n\n // End of the scalar.\n if (state.lineIndent < textIndent) {\n\n // Perform the chomping.\n if (chomping === CHOMPING_KEEP) {\n state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n } else if (chomping === CHOMPING_CLIP) {\n if (didReadContent) { // i.e. only if the scalar is not empty.\n state.result += '\\n';\n }\n }\n\n // Break this `while` cycle and go to the funciton's epilogue.\n break;\n }\n\n // Folded style: use fancy rules to handle line breaks.\n if (folding) {\n\n // Lines starting with white space characters (more-indented lines) are not folded.\n if (is_WHITE_SPACE(ch)) {\n atMoreIndented = true;\n // except for the first content line (cf. Example 8.1)\n state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n\n // End of more-indented block.\n } else if (atMoreIndented) {\n atMoreIndented = false;\n state.result += common.repeat('\\n', emptyLines + 1);\n\n // Just one line break - perceive as the same line.\n } else if (emptyLines === 0) {\n if (didReadContent) { // i.e. only if we have already read some scalar content.\n state.result += ' ';\n }\n\n // Several line breaks - perceive as different lines.\n } else {\n state.result += common.repeat('\\n', emptyLines);\n }\n\n // Literal style: just add exact number of line breaks between content lines.\n } else {\n // Keep all line breaks except the header line break.\n state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n }\n\n didReadContent = true;\n detectedIndent = true;\n emptyLines = 0;\n captureStart = state.position;\n\n while (!is_EOL(ch) && (ch !== 0)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n captureSegment(state, captureStart, state.position, false);\n }\n\n return true;\n}\n\nfunction readBlockSequence(state, nodeIndent) {\n var _line,\n _tag = state.tag,\n _anchor = state.anchor,\n _result = [],\n following,\n detected = false,\n ch;\n\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = _result;\n }\n\n ch = state.input.charCodeAt(state.position);\n\n while (ch !== 0) {\n\n if (ch !== 0x2D/* - */) {\n break;\n }\n\n following = state.input.charCodeAt(state.position + 1);\n\n if (!is_WS_OR_EOL(following)) {\n break;\n }\n\n detected = true;\n state.position++;\n\n if (skipSeparationSpace(state, true, -1)) {\n if (state.lineIndent <= nodeIndent) {\n _result.push(null);\n ch = state.input.charCodeAt(state.position);\n continue;\n }\n }\n\n _line = state.line;\n composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);\n _result.push(state.result);\n skipSeparationSpace(state, true, -1);\n\n ch = state.input.charCodeAt(state.position);\n\n if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {\n throwError(state, 'bad indentation of a sequence entry');\n } else if (state.lineIndent < nodeIndent) {\n break;\n }\n }\n\n if (detected) {\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = 'sequence';\n state.result = _result;\n return true;\n }\n return false;\n}\n\nfunction readBlockMapping(state, nodeIndent, flowIndent) {\n var following,\n allowCompact,\n _line,\n _pos,\n _tag = state.tag,\n _anchor = state.anchor,\n _result = {},\n overridableKeys = {},\n keyTag = null,\n keyNode = null,\n valueNode = null,\n atExplicitKey = false,\n detected = false,\n ch;\n\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = _result;\n }\n\n ch = state.input.charCodeAt(state.position);\n\n while (ch !== 0) {\n following = state.input.charCodeAt(state.position + 1);\n _line = state.line; // Save the current line.\n _pos = state.position;\n\n //\n // Explicit notation case. There are two separate blocks:\n // first for the key (denoted by \"?\") and second for the value (denoted by \":\")\n //\n if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) {\n\n if (ch === 0x3F/* ? */) {\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);\n keyTag = keyNode = valueNode = null;\n }\n\n detected = true;\n atExplicitKey = true;\n allowCompact = true;\n\n } else if (atExplicitKey) {\n // i.e. 0x3A/* : */ === character after the explicit key.\n atExplicitKey = false;\n allowCompact = true;\n\n } else {\n throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line');\n }\n\n state.position += 1;\n ch = following;\n\n //\n // Implicit notation case. Flow-style node as the key first, then \":\", and the value.\n //\n } else if (composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {\n\n if (state.line === _line) {\n ch = state.input.charCodeAt(state.position);\n\n while (is_WHITE_SPACE(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (ch === 0x3A/* : */) {\n ch = state.input.charCodeAt(++state.position);\n\n if (!is_WS_OR_EOL(ch)) {\n throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');\n }\n\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);\n keyTag = keyNode = valueNode = null;\n }\n\n detected = true;\n atExplicitKey = false;\n allowCompact = false;\n keyTag = state.tag;\n keyNode = state.result;\n\n } else if (detected) {\n throwError(state, 'can not read an implicit mapping pair; a colon is missed');\n\n } else {\n state.tag = _tag;\n state.anchor = _anchor;\n return true; // Keep the result of `composeNode`.\n }\n\n } else if (detected) {\n throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');\n\n } else {\n state.tag = _tag;\n state.anchor = _anchor;\n return true; // Keep the result of `composeNode`.\n }\n\n } else {\n break; // Reading is done. Go to the epilogue.\n }\n\n //\n // Common reading code for both explicit and implicit notations.\n //\n if (state.line === _line || state.lineIndent > nodeIndent) {\n if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {\n if (atExplicitKey) {\n keyNode = state.result;\n } else {\n valueNode = state.result;\n }\n }\n\n if (!atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _pos);\n keyTag = keyNode = valueNode = null;\n }\n\n skipSeparationSpace(state, true, -1);\n ch = state.input.charCodeAt(state.position);\n }\n\n if (state.lineIndent > nodeIndent && (ch !== 0)) {\n throwError(state, 'bad indentation of a mapping entry');\n } else if (state.lineIndent < nodeIndent) {\n break;\n }\n }\n\n //\n // Epilogue.\n //\n\n // Special case: last mapping's node contains only the key in explicit notation.\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);\n }\n\n // Expose the resulting mapping.\n if (detected) {\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = 'mapping';\n state.result = _result;\n }\n\n return detected;\n}\n\nfunction readTagProperty(state) {\n var _position,\n isVerbatim = false,\n isNamed = false,\n tagHandle,\n tagName,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x21/* ! */) return false;\n\n if (state.tag !== null) {\n throwError(state, 'duplication of a tag property');\n }\n\n ch = state.input.charCodeAt(++state.position);\n\n if (ch === 0x3C/* < */) {\n isVerbatim = true;\n ch = state.input.charCodeAt(++state.position);\n\n } else if (ch === 0x21/* ! */) {\n isNamed = true;\n tagHandle = '!!';\n ch = state.input.charCodeAt(++state.position);\n\n } else {\n tagHandle = '!';\n }\n\n _position = state.position;\n\n if (isVerbatim) {\n do { ch = state.input.charCodeAt(++state.position); }\n while (ch !== 0 && ch !== 0x3E/* > */);\n\n if (state.position < state.length) {\n tagName = state.input.slice(_position, state.position);\n ch = state.input.charCodeAt(++state.position);\n } else {\n throwError(state, 'unexpected end of the stream within a verbatim tag');\n }\n } else {\n while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n\n if (ch === 0x21/* ! */) {\n if (!isNamed) {\n tagHandle = state.input.slice(_position - 1, state.position + 1);\n\n if (!PATTERN_TAG_HANDLE.test(tagHandle)) {\n throwError(state, 'named tag handle cannot contain such characters');\n }\n\n isNamed = true;\n _position = state.position + 1;\n } else {\n throwError(state, 'tag suffix cannot contain exclamation marks');\n }\n }\n\n ch = state.input.charCodeAt(++state.position);\n }\n\n tagName = state.input.slice(_position, state.position);\n\n if (PATTERN_FLOW_INDICATORS.test(tagName)) {\n throwError(state, 'tag suffix cannot contain flow indicator characters');\n }\n }\n\n if (tagName && !PATTERN_TAG_URI.test(tagName)) {\n throwError(state, 'tag name cannot contain such characters: ' + tagName);\n }\n\n if (isVerbatim) {\n state.tag = tagName;\n\n } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {\n state.tag = state.tagMap[tagHandle] + tagName;\n\n } else if (tagHandle === '!') {\n state.tag = '!' + tagName;\n\n } else if (tagHandle === '!!') {\n state.tag = 'tag:yaml.org,2002:' + tagName;\n\n } else {\n throwError(state, 'undeclared tag handle \"' + tagHandle + '\"');\n }\n\n return true;\n}\n\nfunction readAnchorProperty(state) {\n var _position,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x26/* & */) return false;\n\n if (state.anchor !== null) {\n throwError(state, 'duplication of an anchor property');\n }\n\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n\n while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (state.position === _position) {\n throwError(state, 'name of an anchor node must contain at least one character');\n }\n\n state.anchor = state.input.slice(_position, state.position);\n return true;\n}\n\nfunction readAlias(state) {\n var _position, alias,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x2A/* * */) return false;\n\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n\n while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (state.position === _position) {\n throwError(state, 'name of an alias node must contain at least one character');\n }\n\n alias = state.input.slice(_position, state.position);\n\n if (!state.anchorMap.hasOwnProperty(alias)) {\n throwError(state, 'unidentified alias \"' + alias + '\"');\n }\n\n state.result = state.anchorMap[alias];\n skipSeparationSpace(state, true, -1);\n return true;\n}\n\nfunction composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {\n var allowBlockStyles,\n allowBlockScalars,\n allowBlockCollections,\n indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) {\n indentStatus = 1;\n } else if (state.lineIndent === parentIndent) {\n indentStatus = 0;\n } else if (state.lineIndent < parentIndent) {\n indentStatus = -1;\n }\n }\n }\n\n if (indentStatus === 1) {\n while (readTagProperty(state) || readAnchorProperty(state)) {\n if (skipSeparationSpace(state, true, -1)) {\n atNewLine = true;\n allowBlockCollections = allowBlockStyles;\n\n if (state.lineIndent > parentIndent) {\n indentStatus = 1;\n } else if (state.lineIndent === parentIndent) {\n indentStatus = 0;\n } else if (state.lineIndent < parentIndent) {\n indentStatus = -1;\n }\n } else {\n allowBlockCollections = false;\n }\n }\n }\n\n if (allowBlockCollections) {\n allowBlockCollections = atNewLine || allowCompact;\n }\n\n if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {\n if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {\n flowIndent = parentIndent;\n } else {\n flowIndent = parentIndent + 1;\n }\n\n blockIndent = state.position - state.lineStart;\n\n if (indentStatus === 1) {\n if (allowBlockCollections &&\n (readBlockSequence(state, blockIndent) ||\n readBlockMapping(state, blockIndent, flowIndent)) ||\n readFlowCollection(state, flowIndent)) {\n hasContent = true;\n } else {\n if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||\n readSingleQuotedScalar(state, flowIndent) ||\n readDoubleQuotedScalar(state, flowIndent)) {\n hasContent = true;\n\n } else if (readAlias(state)) {\n hasContent = true;\n\n if (state.tag !== null || state.anchor !== null) {\n throwError(state, 'alias node should not have any properties');\n }\n\n } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {\n hasContent = true;\n\n if (state.tag === null) {\n state.tag = '?';\n }\n }\n\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n }\n } else if (indentStatus === 0) {\n // Special case: block sequences are allowed to have same indentation level as the parent.\n // http://www.yaml.org/spec/1.2/spec.html#id2799784\n hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);\n }\n }\n\n if (state.tag !== null && state.tag !== '!') {\n if (state.tag === '?') {\n // Implicit resolving is not allowed for non-scalar types, and '?'\n // non-specific tag is only automatically assigned to plain scalars.\n //\n // We only need to check kind conformity in case user explicitly assigns '?'\n // tag, for example like this: \"! [0]\"\n //\n if (state.result !== null && state.kind !== 'scalar') {\n throwError(state, 'unacceptable node kind for ! tag; it should be \"scalar\", not \"' + state.kind + '\"');\n }\n\n for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {\n type = state.implicitTypes[typeIndex];\n\n if (type.resolve(state.result)) { // `state.result` updated in resolver if matched\n state.result = type.construct(state.result);\n state.tag = type.tag;\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n break;\n }\n }\n } else if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) {\n type = state.typeMap[state.kind || 'fallback'][state.tag];\n\n if (state.result !== null && type.kind !== state.kind) {\n throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be \"' + type.kind + '\", not \"' + state.kind + '\"');\n }\n\n if (!type.resolve(state.result)) { // `state.result` updated in resolver if matched\n throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');\n } else {\n state.result = type.construct(state.result);\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n }\n } else {\n throwError(state, 'unknown tag !<' + state.tag + '>');\n }\n }\n\n if (state.listener !== null) {\n state.listener('close', state);\n }\n return state.tag !== null || state.anchor !== null || hasContent;\n}\n\nfunction readDocument(state) {\n var documentStart = state.position,\n _position,\n directiveName,\n directiveArgs,\n hasDirectives = false,\n ch;\n\n state.version = null;\n state.checkLineBreaks = state.legacy;\n state.tagMap = {};\n state.anchorMap = {};\n\n while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n skipSeparationSpace(state, true, -1);\n\n ch = state.input.charCodeAt(state.position);\n\n if (state.lineIndent > 0 || ch !== 0x25/* % */) {\n break;\n }\n\n hasDirectives = true;\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n\n while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n directiveName = state.input.slice(_position, state.position);\n directiveArgs = [];\n\n if (directiveName.length < 1) {\n throwError(state, 'directive name must not be less than one character in length');\n }\n\n while (ch !== 0) {\n while (is_WHITE_SPACE(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (ch === 0x23/* # */) {\n do { ch = state.input.charCodeAt(++state.position); }\n while (ch !== 0 && !is_EOL(ch));\n break;\n }\n\n if (is_EOL(ch)) break;\n\n _position = state.position;\n\n while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n directiveArgs.push(state.input.slice(_position, state.position));\n }\n\n if (ch !== 0) readLineBreak(state);\n\n if (_hasOwnProperty.call(directiveHandlers, directiveName)) {\n directiveHandlers[directiveName](state, directiveName, directiveArgs);\n } else {\n throwWarning(state, 'unknown document directive \"' + directiveName + '\"');\n }\n }\n\n skipSeparationSpace(state, true, -1);\n\n if (state.lineIndent === 0 &&\n state.input.charCodeAt(state.position) === 0x2D/* - */ &&\n state.input.charCodeAt(state.position + 1) === 0x2D/* - */ &&\n state.input.charCodeAt(state.position + 2) === 0x2D/* - */) {\n state.position += 3;\n skipSeparationSpace(state, true, -1);\n\n } else if (hasDirectives) {\n throwError(state, 'directives end mark is expected');\n }\n\n composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);\n skipSeparationSpace(state, true, -1);\n\n if (state.checkLineBreaks &&\n PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {\n throwWarning(state, 'non-ASCII line breaks are interpreted as content');\n }\n\n state.documents.push(state.result);\n\n if (state.position === state.lineStart && testDocumentSeparator(state)) {\n\n if (state.input.charCodeAt(state.position) === 0x2E/* . */) {\n state.position += 3;\n skipSeparationSpace(state, true, -1);\n }\n return;\n }\n\n if (state.position < (state.length - 1)) {\n throwError(state, 'end of the stream or a document separator is expected');\n } else {\n return;\n }\n}\n\n\nfunction loadDocuments(input, options) {\n input = String(input);\n options = options || {};\n\n if (input.length !== 0) {\n\n // Add tailing `\\n` if not exists\n if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ &&\n input.charCodeAt(input.length - 1) !== 0x0D/* CR */) {\n input += '\\n';\n }\n\n // Strip BOM\n if (input.charCodeAt(0) === 0xFEFF) {\n input = input.slice(1);\n }\n }\n\n var state = new State(input, options);\n\n var nullpos = input.indexOf('\\0');\n\n if (nullpos !== -1) {\n state.position = nullpos;\n throwError(state, 'null byte is not allowed in input');\n }\n\n // Use 0 as string terminator. That significantly simplifies bounds check.\n state.input += '\\0';\n\n while (state.input.charCodeAt(state.position) === 0x20/* Space */) {\n state.lineIndent += 1;\n state.position += 1;\n }\n\n while (state.position < (state.length - 1)) {\n readDocument(state);\n }\n\n return state.documents;\n}\n\n\nfunction loadAll(input, iterator, options) {\n if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') {\n options = iterator;\n iterator = null;\n }\n\n var documents = loadDocuments(input, options);\n\n if (typeof iterator !== 'function') {\n return documents;\n }\n\n for (var index = 0, length = documents.length; index < length; index += 1) {\n iterator(documents[index]);\n }\n}\n\n\nfunction load(input, options) {\n var documents = loadDocuments(input, options);\n\n if (documents.length === 0) {\n /*eslint-disable no-undefined*/\n return undefined;\n } else if (documents.length === 1) {\n return documents[0];\n }\n throw new YAMLException('expected a single document in the stream, but found more');\n}\n\n\nfunction safeLoadAll(input, iterator, options) {\n if (typeof iterator === 'object' && iterator !== null && typeof options === 'undefined') {\n options = iterator;\n iterator = null;\n }\n\n return loadAll(input, iterator, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));\n}\n\n\nfunction safeLoad(input, options) {\n return load(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));\n}\n\n\nmodule.exports.loadAll = loadAll;\nmodule.exports.load = load;\nmodule.exports.safeLoadAll = safeLoadAll;\nmodule.exports.safeLoad = safeLoad;\n","var baseEach = require('./_baseEach'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\nmodule.exports = baseMap;\n","'use strict';\nmodule.exports = function generate_propertyNames(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n out += 'var ' + ($errs) + ' = errors;';\n if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) {\n $it.schema = $schema;\n $it.schemaPath = $schemaPath;\n $it.errSchemaPath = $errSchemaPath;\n var $key = 'key' + $lvl,\n $idx = 'idx' + $lvl,\n $i = 'i' + $lvl,\n $invalidName = '\\' + ' + $key + ' + \\'',\n $dataNxt = $it.dataLevel = it.dataLevel + 1,\n $nextData = 'data' + $dataNxt,\n $dataProperties = 'dataProperties' + $lvl,\n $ownProperties = it.opts.ownProperties,\n $currentBaseId = it.baseId;\n if ($ownProperties) {\n out += ' var ' + ($dataProperties) + ' = undefined; ';\n }\n if ($ownProperties) {\n out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; ';\n } else {\n out += ' for (var ' + ($key) + ' in ' + ($data) + ') { ';\n }\n out += ' var startErrs' + ($lvl) + ' = errors; ';\n var $passData = $key;\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n it.compositeRule = $it.compositeRule = $wasComposite;\n out += ' if (!' + ($nextValid) + ') { for (var ' + ($i) + '=startErrs' + ($lvl) + '; ' + ($i) + ' other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\nmodule.exports = compareAscending;\n","'use strict';\n\n// do not edit .js files directly - edit src/index.jst\n\n\n\nmodule.exports = function equal(a, b) {\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n\n\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n\n for (i = length; i-- !== 0;)\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n\n for (i = length; i-- !== 0;) {\n var key = keys[i];\n\n if (!equal(a[key], b[key])) return false;\n }\n\n return true;\n }\n\n // true if both NaN, false otherwise\n return a!==a && b!==b;\n};\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","'use strict';\n\nvar Type = require('../type');\n\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction resolveYamlSet(data) {\n if (data === null) return true;\n\n var key, object = data;\n\n for (key in object) {\n if (_hasOwnProperty.call(object, key)) {\n if (object[key] !== null) return false;\n }\n }\n\n return true;\n}\n\nfunction constructYamlSet(data) {\n return data !== null ? data : {};\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:set', {\n kind: 'mapping',\n resolve: resolveYamlSet,\n construct: constructYamlSet\n});\n","/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\nmodule.exports = baseSortBy;\n","'use strict';\n\nvar Type = require('../../type');\n\nfunction resolveJavascriptRegExp(data) {\n if (data === null) return false;\n if (data.length === 0) return false;\n\n var regexp = data,\n tail = /\\/([gim]*)$/.exec(data),\n modifiers = '';\n\n // if regexp starts with '/' it can have modifiers and must be properly closed\n // `/foo/gim` - modifiers tail can be maximum 3 chars\n if (regexp[0] === '/') {\n if (tail) modifiers = tail[1];\n\n if (modifiers.length > 3) return false;\n // if expression starts with /, is should be properly terminated\n if (regexp[regexp.length - modifiers.length - 1] !== '/') return false;\n }\n\n return true;\n}\n\nfunction constructJavascriptRegExp(data) {\n var regexp = data,\n tail = /\\/([gim]*)$/.exec(data),\n modifiers = '';\n\n // `/foo/gim` - tail can be maximum 4 chars\n if (regexp[0] === '/') {\n if (tail) modifiers = tail[1];\n regexp = regexp.slice(1, regexp.length - modifiers.length - 1);\n }\n\n return new RegExp(regexp, modifiers);\n}\n\nfunction representJavascriptRegExp(object /*, style*/) {\n var result = '/' + object.source + '/';\n\n if (object.global) result += 'g';\n if (object.multiline) result += 'm';\n if (object.ignoreCase) result += 'i';\n\n return result;\n}\n\nfunction isRegExp(object) {\n return Object.prototype.toString.call(object) === '[object RegExp]';\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:js/regexp', {\n kind: 'scalar',\n resolve: resolveJavascriptRegExp,\n construct: constructJavascriptRegExp,\n predicate: isRegExp,\n represent: representJavascriptRegExp\n});\n","var Symbol = require('./_Symbol'),\n Uint8Array = require('./_Uint8Array'),\n eq = require('./eq'),\n equalArrays = require('./_equalArrays'),\n mapToArray = require('./_mapToArray'),\n setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nmodule.exports = equalByTag;\n","var baseProperty = require('./_baseProperty'),\n basePropertyDeep = require('./_basePropertyDeep'),\n isKey = require('./_isKey'),\n toKey = require('./_toKey');\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = property;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","import { error, exportVariable, info, setSecret } from \"@actions/core\";\nimport isString from \"lodash/isString\";\nimport { replaceEnvVer } from \"./strUtils\";\n\nimport { Config } from \"./config\";\nimport { writeFile } from \"./fsUtils\";\n\nexport async function prepareMask(config: Config): Promise {\n if (!config.mask) {\n return;\n }\n for (const v of config.mask) {\n setSecret(replaceEnvVer(v));\n }\n info(`mask value count: ${config.mask.length}`);\n}\n\nexport async function prepareEnv(config: Config): Promise {\n if (!config.env) {\n return;\n }\n for (const k in config.env) {\n const env = config.env[k];\n if (isString(env)) {\n const value = replaceEnvVer(env);\n setSecret(value);\n exportVariable(k, value);\n info(`${k}: *** (mask)`);\n } else {\n const value = replaceEnvVer(env.value);\n exportVariable(k, value);\n if (env.secret === false) {\n info(`${k}: ${value}`);\n } else {\n setSecret(value);\n info(`${k}: *** (mask)`);\n }\n }\n }\n}\n\nexport async function prepareFile(\n baseDir: string,\n config: Config\n): Promise {\n if (!config.file) {\n return;\n }\n for (const filename in config.file) {\n const content = config.file[filename];\n const actualFilename = replaceEnvVer(filename);\n const result = await writeFile(baseDir, actualFilename, content);\n if (result) {\n info(`wrote \"${filename}\"`);\n } else {\n error(`could not write \"${filename}\"`);\n }\n }\n}\n","'use strict';\n\nvar IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i;\nvar customRuleCode = require('./dotjs/custom');\nvar definitionSchema = require('./definition_schema');\n\nmodule.exports = {\n add: addKeyword,\n get: getKeyword,\n remove: removeKeyword,\n validate: validateKeyword\n};\n\n\n/**\n * Define custom keyword\n * @this Ajv\n * @param {String} keyword custom keyword, should be unique (including different from all standard, custom and macro keywords).\n * @param {Object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`.\n * @return {Ajv} this for method chaining\n */\nfunction addKeyword(keyword, definition) {\n /* jshint validthis: true */\n /* eslint no-shadow: 0 */\n var RULES = this.RULES;\n if (RULES.keywords[keyword])\n throw new Error('Keyword ' + keyword + ' is already defined');\n\n if (!IDENTIFIER.test(keyword))\n throw new Error('Keyword ' + keyword + ' is not a valid identifier');\n\n if (definition) {\n this.validateKeyword(definition, true);\n\n var dataType = definition.type;\n if (Array.isArray(dataType)) {\n for (var i=0; i arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","var arrayAggregator = require('./_arrayAggregator'),\n baseAggregator = require('./_baseAggregator'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\nfunction createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, baseIteratee(iteratee, 2), accumulator);\n };\n}\n\nmodule.exports = createAggregator;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","\"use strict\";\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst os = __importStar(require(\"os\"));\n/**\n * Commands\n *\n * Command Format:\n * ::name key=value,key=value::message\n *\n * Examples:\n * ::warning::This is the message\n * ::set-env name=MY_VAR::some value\n */\nfunction issueCommand(command, properties, message) {\n const cmd = new Command(command, properties, message);\n process.stdout.write(cmd.toString() + os.EOL);\n}\nexports.issueCommand = issueCommand;\nfunction issue(name, message = '') {\n issueCommand(name, {}, message);\n}\nexports.issue = issue;\nconst CMD_STRING = '::';\nclass Command {\n constructor(command, properties, message) {\n if (!command) {\n command = 'missing.command';\n }\n this.command = command;\n this.properties = properties;\n this.message = message;\n }\n toString() {\n let cmdStr = CMD_STRING + this.command;\n if (this.properties && Object.keys(this.properties).length > 0) {\n cmdStr += ' ';\n let first = true;\n for (const key in this.properties) {\n if (this.properties.hasOwnProperty(key)) {\n const val = this.properties[key];\n if (val) {\n if (first) {\n first = false;\n }\n else {\n cmdStr += ',';\n }\n cmdStr += `${key}=${escapeProperty(val)}`;\n }\n }\n }\n }\n cmdStr += `${CMD_STRING}${escapeData(this.message)}`;\n return cmdStr;\n }\n}\n/**\n * Sanitizes an input into a string so it can be passed into issueCommand safely\n * @param input input to sanitize into a string\n */\nfunction toCommandValue(input) {\n if (input === null || input === undefined) {\n return '';\n }\n else if (typeof input === 'string' || input instanceof String) {\n return input;\n }\n return JSON.stringify(input);\n}\nexports.toCommandValue = toCommandValue;\nfunction escapeData(s) {\n return toCommandValue(s)\n .replace(/%/g, '%25')\n .replace(/\\r/g, '%0D')\n .replace(/\\n/g, '%0A');\n}\nfunction escapeProperty(s) {\n return toCommandValue(s)\n .replace(/%/g, '%25')\n .replace(/\\r/g, '%0D')\n .replace(/\\n/g, '%0A')\n .replace(/:/g, '%3A')\n .replace(/,/g, '%2C');\n}\n//# sourceMappingURL=command.js.map","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayAggregator;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","import * as openpgp from \"openpgp\";\nimport Ajv from \"ajv\";\nimport yaml from \"js-yaml\";\nimport { promises } from \"fs\";\nimport groupBy from \"lodash/groupBy\";\nimport sortBy from \"lodash/sortBy\";\n\nimport configSchema from \"./config.schema.json\";\nimport { ConfigActionError } from \"./errors\";\nimport { Inputs } from \"./inputs\";\nimport { pathResolve } from \"./fsUtils\";\n\nexport type Config = {\n mask?: string[];\n env?: {\n [k: string]:\n | string\n | {\n value: string;\n secret?: boolean;\n };\n };\n file?: {\n [k: string]: string;\n };\n};\n\nconst ERROR_KEYWORD_ORDER = [\"required\", \"type\"].reverse();\n\nexport function assertConfig(v: unknown): asserts v is Config {\n const ajv = new Ajv();\n const validate = ajv.compile(configSchema);\n validate(v);\n if (validate.errors) {\n // sort by dataPath and keyword\n const errors = validate.errors;\n const groupedDataPathErrors = groupBy(errors, \"dataPath\");\n const dataPaths = sortBy(Object.keys(groupedDataPathErrors), \"length\");\n for (const dataPath of dataPaths) {\n const dataPathErrors = groupedDataPathErrors[dataPath];\n const sortedErrors = sortBy(\n dataPathErrors,\n (v) => -ERROR_KEYWORD_ORDER.indexOf(v.keyword)\n );\n for (const e of sortedErrors) {\n throw new ConfigActionError(`${e.message} at ${e.dataPath}`);\n }\n }\n }\n}\n\nexport async function loadConfig(\n baseDir: string,\n inputs: Inputs\n): Promise {\n if (inputs.gpgPassphrase) {\n return loadConfigWithGPGPassphrase(\n baseDir,\n inputs.configFile,\n inputs.gpgPassphrase\n );\n } else {\n return loadConfigFile(baseDir, inputs.configFile);\n }\n}\n\nexport async function loadConfigFile(\n baseDir: string,\n path: string\n): Promise {\n const { readFile } = promises;\n const absolutePath = pathResolve(baseDir, path);\n const raw = await readFile(absolutePath, \"utf8\");\n return loadConfigYaml(raw);\n}\n\nexport async function loadConfigWithGPGPassphrase(\n baseDir: string,\n path: string,\n gpgPassphrase: string\n): Promise {\n const { readFile } = promises;\n const absolutePath = pathResolve(baseDir, path);\n const content = await readFile(absolutePath);\n const { data: raw } = await openpgp.decrypt({\n message: await openpgp.message.read(content),\n passwords: [gpgPassphrase],\n format: \"utf8\",\n });\n return loadConfigYaml(raw);\n}\n\nexport async function loadConfigYaml(raw: string): Promise {\n const config = yaml.safeLoad(raw);\n assertConfig(config);\n return config;\n}\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","'use strict';\nmodule.exports = function generate_ref(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $async, $refCode;\n if ($schema == '#' || $schema == '#/') {\n if (it.isRoot) {\n $async = it.async;\n $refCode = 'validate';\n } else {\n $async = it.root.schema.$async === true;\n $refCode = 'root.refVal[0]';\n }\n } else {\n var $refVal = it.resolveRef(it.baseId, $schema, it.isRoot);\n if ($refVal === undefined) {\n var $message = it.MissingRefError.message(it.baseId, $schema);\n if (it.opts.missingRefs == 'fail') {\n it.logger.error($message);\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('$ref') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { ref: \\'' + (it.util.escapeQuotes($schema)) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'can\\\\\\'t resolve reference ' + (it.util.escapeQuotes($schema)) + '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: ' + (it.util.toQuotedString($schema)) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n if ($breakOnError) {\n out += ' if (false) { ';\n }\n } else if (it.opts.missingRefs == 'ignore') {\n it.logger.warn($message);\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n } else {\n throw new it.MissingRefError(it.baseId, $schema, $message);\n }\n } else if ($refVal.inline) {\n var $it = it.util.copy(it);\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n $it.schema = $refVal.schema;\n $it.schemaPath = '';\n $it.errSchemaPath = $schema;\n var $code = it.validate($it).replace(/validate\\.schema/g, $refVal.code);\n out += ' ' + ($code) + ' ';\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n }\n } else {\n $async = $refVal.$async === true || (it.async && $refVal.$async !== false);\n $refCode = $refVal.code;\n }\n }\n if ($refCode) {\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = '';\n if (it.opts.passContext) {\n out += ' ' + ($refCode) + '.call(this, ';\n } else {\n out += ' ' + ($refCode) + '( ';\n }\n out += ' ' + ($data) + ', (dataPath || \\'\\')';\n if (it.errorPath != '\"\"') {\n out += ' + ' + (it.errorPath);\n }\n var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',\n $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';\n out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ', rootData) ';\n var __callValidate = out;\n out = $$outStack.pop();\n if ($async) {\n if (!it.async) throw new Error('async schema referenced by sync schema');\n if ($breakOnError) {\n out += ' var ' + ($valid) + '; ';\n }\n out += ' try { await ' + (__callValidate) + '; ';\n if ($breakOnError) {\n out += ' ' + ($valid) + ' = true; ';\n }\n out += ' } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ';\n if ($breakOnError) {\n out += ' ' + ($valid) + ' = false; ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' if (' + ($valid) + ') { ';\n }\n } else {\n out += ' if (!' + (__callValidate) + ') { if (vErrors === null) vErrors = ' + ($refCode) + '.errors; else vErrors = vErrors.concat(' + ($refCode) + '.errors); errors = vErrors.length; } ';\n if ($breakOnError) {\n out += ' else { ';\n }\n }\n }\n return out;\n}\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","'use strict';\nmodule.exports = function generate__limit(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $errorKeyword;\n var $data = 'data' + ($dataLvl || '');\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n var $isMax = $keyword == 'maximum',\n $exclusiveKeyword = $isMax ? 'exclusiveMaximum' : 'exclusiveMinimum',\n $schemaExcl = it.schema[$exclusiveKeyword],\n $isDataExcl = it.opts.$data && $schemaExcl && $schemaExcl.$data,\n $op = $isMax ? '<' : '>',\n $notOp = $isMax ? '>' : '<',\n $errorKeyword = undefined;\n if (!($isData || typeof $schema == 'number' || $schema === undefined)) {\n throw new Error($keyword + ' must be number');\n }\n if (!($isDataExcl || $schemaExcl === undefined || typeof $schemaExcl == 'number' || typeof $schemaExcl == 'boolean')) {\n throw new Error($exclusiveKeyword + ' must be number or boolean');\n }\n if ($isDataExcl) {\n var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr),\n $exclusive = 'exclusive' + $lvl,\n $exclType = 'exclType' + $lvl,\n $exclIsNumber = 'exclIsNumber' + $lvl,\n $opExpr = 'op' + $lvl,\n $opStr = '\\' + ' + $opExpr + ' + \\'';\n out += ' var schemaExcl' + ($lvl) + ' = ' + ($schemaValueExcl) + '; ';\n $schemaValueExcl = 'schemaExcl' + $lvl;\n out += ' var ' + ($exclusive) + '; var ' + ($exclType) + ' = typeof ' + ($schemaValueExcl) + '; if (' + ($exclType) + ' != \\'boolean\\' && ' + ($exclType) + ' != \\'undefined\\' && ' + ($exclType) + ' != \\'number\\') { ';\n var $errorKeyword = $exclusiveKeyword;\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || '_exclusiveLimit') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'' + ($exclusiveKeyword) + ' should be boolean\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } else if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n }\n out += ' ' + ($exclType) + ' == \\'number\\' ? ( (' + ($exclusive) + ' = ' + ($schemaValue) + ' === undefined || ' + ($schemaValueExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ') ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValueExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) : ( (' + ($exclusive) + ' = ' + ($schemaValueExcl) + ' === true) ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValue) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { var op' + ($lvl) + ' = ' + ($exclusive) + ' ? \\'' + ($op) + '\\' : \\'' + ($op) + '=\\'; ';\n if ($schema === undefined) {\n $errorKeyword = $exclusiveKeyword;\n $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;\n $schemaValue = $schemaValueExcl;\n $isData = $isDataExcl;\n }\n } else {\n var $exclIsNumber = typeof $schemaExcl == 'number',\n $opStr = $op;\n if ($exclIsNumber && $isData) {\n var $opExpr = '\\'' + $opStr + '\\'';\n out += ' if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n }\n out += ' ( ' + ($schemaValue) + ' === undefined || ' + ($schemaExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ' ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { ';\n } else {\n if ($exclIsNumber && $schema === undefined) {\n $exclusive = true;\n $errorKeyword = $exclusiveKeyword;\n $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;\n $schemaValue = $schemaExcl;\n $notOp += '=';\n } else {\n if ($exclIsNumber) $schemaValue = Math[$isMax ? 'min' : 'max']($schemaExcl, $schema);\n if ($schemaExcl === ($exclIsNumber ? $schemaValue : true)) {\n $exclusive = true;\n $errorKeyword = $exclusiveKeyword;\n $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;\n $notOp += '=';\n } else {\n $exclusive = false;\n $opStr += '=';\n }\n }\n var $opExpr = '\\'' + $opStr + '\\'';\n out += ' if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n }\n out += ' ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' || ' + ($data) + ' !== ' + ($data) + ') { ';\n }\n }\n $errorKeyword = $errorKeyword || $keyword;\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || '_limit') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { comparison: ' + ($opExpr) + ', limit: ' + ($schemaValue) + ', exclusive: ' + ($exclusive) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be ' + ($opStr) + ' ';\n if ($isData) {\n out += '\\' + ' + ($schemaValue);\n } else {\n out += '' + ($schemaValue) + '\\'';\n }\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + ($schema);\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","'use strict';\nmodule.exports = function generate_items(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $idx = 'i' + $lvl,\n $dataNxt = $it.dataLevel = it.dataLevel + 1,\n $nextData = 'data' + $dataNxt,\n $currentBaseId = it.baseId;\n out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';\n if (Array.isArray($schema)) {\n var $additionalItems = it.schema.additionalItems;\n if ($additionalItems === false) {\n out += ' ' + ($valid) + ' = ' + ($data) + '.length <= ' + ($schema.length) + '; ';\n var $currErrSchemaPath = $errSchemaPath;\n $errSchemaPath = it.errSchemaPath + '/additionalItems';\n out += ' if (!' + ($valid) + ') { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('additionalItems') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schema.length) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should NOT have more than ' + ($schema.length) + ' items\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } ';\n $errSchemaPath = $currErrSchemaPath;\n if ($breakOnError) {\n $closingBraces += '}';\n out += ' else { ';\n }\n }\n var arr1 = $schema;\n if (arr1) {\n var $sch, $i = -1,\n l1 = arr1.length - 1;\n while ($i < l1) {\n $sch = arr1[$i += 1];\n if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {\n out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($i) + ') { ';\n var $passData = $data + '[' + $i + ']';\n $it.schema = $sch;\n $it.schemaPath = $schemaPath + '[' + $i + ']';\n $it.errSchemaPath = $errSchemaPath + '/' + $i;\n $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true);\n $it.dataPathArr[$dataNxt] = $i;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n $closingBraces += '}';\n }\n }\n }\n }\n if (typeof $additionalItems == 'object' && (it.opts.strictKeywords ? typeof $additionalItems == 'object' && Object.keys($additionalItems).length > 0 : it.util.schemaHasRules($additionalItems, it.RULES.all))) {\n $it.schema = $additionalItems;\n $it.schemaPath = it.schemaPath + '.additionalItems';\n $it.errSchemaPath = it.errSchemaPath + '/additionalItems';\n out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($schema.length) + ') { for (var ' + ($idx) + ' = ' + ($schema.length) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';\n $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);\n var $passData = $data + '[' + $idx + ']';\n $it.dataPathArr[$dataNxt] = $idx;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n if ($breakOnError) {\n out += ' if (!' + ($nextValid) + ') break; ';\n }\n out += ' } } ';\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n $closingBraces += '}';\n }\n }\n } else if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) {\n $it.schema = $schema;\n $it.schemaPath = $schemaPath;\n $it.errSchemaPath = $errSchemaPath;\n out += ' for (var ' + ($idx) + ' = ' + (0) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';\n $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);\n var $passData = $data + '[' + $idx + ']';\n $it.dataPathArr[$dataNxt] = $idx;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n if ($breakOnError) {\n out += ' if (!' + ($nextValid) + ') break; ';\n }\n out += ' }';\n }\n if ($breakOnError) {\n out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';\n }\n return out;\n}\n","var baseHasIn = require('./_baseHasIn'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arraySome;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","'use strict';\n\nvar KEYWORDS = [\n 'multipleOf',\n 'maximum',\n 'exclusiveMaximum',\n 'minimum',\n 'exclusiveMinimum',\n 'maxLength',\n 'minLength',\n 'pattern',\n 'additionalItems',\n 'maxItems',\n 'minItems',\n 'uniqueItems',\n 'maxProperties',\n 'minProperties',\n 'required',\n 'additionalProperties',\n 'enum',\n 'format',\n 'const'\n];\n\nmodule.exports = function (metaSchema, keywordsJsonPointers) {\n for (var i=0; i 0 : it.util.schemaHasRules($propertySch, it.RULES.all)))) {\n $required[$required.length] = $property;\n }\n }\n }\n } else {\n var $required = $schema;\n }\n }\n if ($isData || $required.length) {\n var $currentErrorPath = it.errorPath,\n $loopRequired = $isData || $required.length >= it.opts.loopRequired,\n $ownProperties = it.opts.ownProperties;\n if ($breakOnError) {\n out += ' var missing' + ($lvl) + '; ';\n if ($loopRequired) {\n if (!$isData) {\n out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; ';\n }\n var $i = 'i' + $lvl,\n $propertyPath = 'schema' + $lvl + '[' + $i + ']',\n $missingProperty = '\\' + ' + $propertyPath + ' + \\'';\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers);\n }\n out += ' var ' + ($valid) + ' = true; ';\n if ($isData) {\n out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {';\n }\n out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { ' + ($valid) + ' = ' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] !== undefined ';\n if ($ownProperties) {\n out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) ';\n }\n out += '; if (!' + ($valid) + ') break; } ';\n if ($isData) {\n out += ' } ';\n }\n out += ' if (!' + ($valid) + ') { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'';\n if (it.opts._errorDataPathProperty) {\n out += 'is a required property';\n } else {\n out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } else { ';\n } else {\n out += ' if ( ';\n var arr2 = $required;\n if (arr2) {\n var $propertyKey, $i = -1,\n l2 = arr2.length - 1;\n while ($i < l2) {\n $propertyKey = arr2[$i += 1];\n if ($i) {\n out += ' || ';\n }\n var $prop = it.util.getProperty($propertyKey),\n $useData = $data + $prop;\n out += ' ( ( ' + ($useData) + ' === undefined ';\n if ($ownProperties) {\n out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($propertyKey)) + '\\') ';\n }\n out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) ';\n }\n }\n out += ') { ';\n var $propertyPath = 'missing' + $lvl,\n $missingProperty = '\\' + ' + $propertyPath + ' + \\'';\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath;\n }\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'';\n if (it.opts._errorDataPathProperty) {\n out += 'is a required property';\n } else {\n out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } else { ';\n }\n } else {\n if ($loopRequired) {\n if (!$isData) {\n out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; ';\n }\n var $i = 'i' + $lvl,\n $propertyPath = 'schema' + $lvl + '[' + $i + ']',\n $missingProperty = '\\' + ' + $propertyPath + ' + \\'';\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers);\n }\n if ($isData) {\n out += ' if (' + ($vSchema) + ' && !Array.isArray(' + ($vSchema) + ')) { var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'';\n if (it.opts._errorDataPathProperty) {\n out += 'is a required property';\n } else {\n out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (' + ($vSchema) + ' !== undefined) { ';\n }\n out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { if (' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] === undefined ';\n if ($ownProperties) {\n out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) ';\n }\n out += ') { var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'';\n if (it.opts._errorDataPathProperty) {\n out += 'is a required property';\n } else {\n out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ';\n if ($isData) {\n out += ' } ';\n }\n } else {\n var arr3 = $required;\n if (arr3) {\n var $propertyKey, i3 = -1,\n l3 = arr3.length - 1;\n while (i3 < l3) {\n $propertyKey = arr3[i3 += 1];\n var $prop = it.util.getProperty($propertyKey),\n $missingProperty = it.util.escapeQuotes($propertyKey),\n $useData = $data + $prop;\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);\n }\n out += ' if ( ' + ($useData) + ' === undefined ';\n if ($ownProperties) {\n out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($propertyKey)) + '\\') ';\n }\n out += ') { var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'';\n if (it.opts._errorDataPathProperty) {\n out += 'is a required property';\n } else {\n out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ';\n }\n }\n }\n }\n it.errorPath = $currentErrorPath;\n } else if ($breakOnError) {\n out += ' if (true) {';\n }\n return out;\n}\n","var memoize = require('./memoize');\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nmodule.exports = memoizeCapped;\n","'use strict';\n\n\nvar common = require('./common');\n\n\nfunction Mark(name, buffer, position, line, column) {\n this.name = name;\n this.buffer = buffer;\n this.position = position;\n this.line = line;\n this.column = column;\n}\n\n\nMark.prototype.getSnippet = function getSnippet(indent, maxLength) {\n var head, start, tail, end, snippet;\n\n if (!this.buffer) return null;\n\n indent = indent || 4;\n maxLength = maxLength || 75;\n\n head = '';\n start = this.position;\n\n while (start > 0 && '\\x00\\r\\n\\x85\\u2028\\u2029'.indexOf(this.buffer.charAt(start - 1)) === -1) {\n start -= 1;\n if (this.position - start > (maxLength / 2 - 1)) {\n head = ' ... ';\n start += 5;\n break;\n }\n }\n\n tail = '';\n end = this.position;\n\n while (end < this.buffer.length && '\\x00\\r\\n\\x85\\u2028\\u2029'.indexOf(this.buffer.charAt(end)) === -1) {\n end += 1;\n if (end - this.position > (maxLength / 2 - 1)) {\n tail = ' ... ';\n end -= 5;\n break;\n }\n }\n\n snippet = this.buffer.slice(start, end);\n\n return common.repeat(' ', indent) + head + snippet + tail + '\\n' +\n common.repeat(' ', indent + this.position - start + head.length) + '^';\n};\n\n\nMark.prototype.toString = function toString(compact) {\n var snippet, where = '';\n\n if (this.name) {\n where += 'in \"' + this.name + '\" ';\n }\n\n where += 'at line ' + (this.line + 1) + ', column ' + (this.column + 1);\n\n if (!compact) {\n snippet = this.getSnippet();\n\n if (snippet) {\n where += ':\\n' + snippet;\n }\n }\n\n return where;\n};\n\n\nmodule.exports = Mark;\n","var baseMatches = require('./_baseMatches'),\n baseMatchesProperty = require('./_baseMatchesProperty'),\n identity = require('./identity'),\n isArray = require('./isArray'),\n property = require('./property');\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n}\n\nmodule.exports = baseIteratee;\n","'use strict';\n\nvar Type = require('../type');\n\nvar YAML_DATE_REGEXP = new RegExp(\n '^([0-9][0-9][0-9][0-9])' + // [1] year\n '-([0-9][0-9])' + // [2] month\n '-([0-9][0-9])$'); // [3] day\n\nvar YAML_TIMESTAMP_REGEXP = new RegExp(\n '^([0-9][0-9][0-9][0-9])' + // [1] year\n '-([0-9][0-9]?)' + // [2] month\n '-([0-9][0-9]?)' + // [3] day\n '(?:[Tt]|[ \\\\t]+)' + // ...\n '([0-9][0-9]?)' + // [4] hour\n ':([0-9][0-9])' + // [5] minute\n ':([0-9][0-9])' + // [6] second\n '(?:\\\\.([0-9]*))?' + // [7] fraction\n '(?:[ \\\\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour\n '(?::([0-9][0-9]))?))?$'); // [11] tz_minute\n\nfunction resolveYamlTimestamp(data) {\n if (data === null) return false;\n if (YAML_DATE_REGEXP.exec(data) !== null) return true;\n if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;\n return false;\n}\n\nfunction constructYamlTimestamp(data) {\n var match, year, month, day, hour, minute, second, fraction = 0,\n delta = null, tz_hour, tz_minute, date;\n\n match = YAML_DATE_REGEXP.exec(data);\n if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);\n\n if (match === null) throw new Error('Date resolve error');\n\n // match: [1] year [2] month [3] day\n\n year = +(match[1]);\n month = +(match[2]) - 1; // JS month starts with 0\n day = +(match[3]);\n\n if (!match[4]) { // no hour\n return new Date(Date.UTC(year, month, day));\n }\n\n // match: [4] hour [5] minute [6] second [7] fraction\n\n hour = +(match[4]);\n minute = +(match[5]);\n second = +(match[6]);\n\n if (match[7]) {\n fraction = match[7].slice(0, 3);\n while (fraction.length < 3) { // milli-seconds\n fraction += '0';\n }\n fraction = +fraction;\n }\n\n // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute\n\n if (match[9]) {\n tz_hour = +(match[10]);\n tz_minute = +(match[11] || 0);\n delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds\n if (match[9] === '-') delta = -delta;\n }\n\n date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));\n\n if (delta) date.setTime(date.getTime() - delta);\n\n return date;\n}\n\nfunction representYamlTimestamp(object /*, style*/) {\n return object.toISOString();\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:timestamp', {\n kind: 'scalar',\n resolve: resolveYamlTimestamp,\n construct: constructYamlTimestamp,\n instanceOf: Date,\n represent: representYamlTimestamp\n});\n","'use strict';\nmodule.exports = function generate_allOf(it, $keyword, $ruleType) {\n var out = ' ';\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $currentBaseId = $it.baseId,\n $allSchemasEmpty = true;\n var arr1 = $schema;\n if (arr1) {\n var $sch, $i = -1,\n l1 = arr1.length - 1;\n while ($i < l1) {\n $sch = arr1[$i += 1];\n if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {\n $allSchemasEmpty = false;\n $it.schema = $sch;\n $it.schemaPath = $schemaPath + '[' + $i + ']';\n $it.errSchemaPath = $errSchemaPath + '/' + $i;\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n $closingBraces += '}';\n }\n }\n }\n }\n if ($breakOnError) {\n if ($allSchemasEmpty) {\n out += ' if (true) { ';\n } else {\n out += ' ' + ($closingBraces.slice(0, -1)) + ' ';\n }\n }\n return out;\n}\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","var isStrictComparable = require('./_isStrictComparable'),\n keys = require('./keys');\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\nmodule.exports = getMatchData;\n","'use strict';\n\nvar metaSchema = require('./refs/json-schema-draft-07.json');\n\nmodule.exports = {\n $id: 'https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js',\n definitions: {\n simpleTypes: metaSchema.definitions.simpleTypes\n },\n type: 'object',\n dependencies: {\n schema: ['validate'],\n $data: ['validate'],\n statements: ['inline'],\n valid: {not: {required: ['macro']}}\n },\n properties: {\n type: metaSchema.properties.type,\n schema: {type: 'boolean'},\n statements: {type: 'boolean'},\n dependencies: {\n type: 'array',\n items: {type: 'string'}\n },\n metaSchema: {type: 'object'},\n modifying: {type: 'boolean'},\n valid: {type: 'boolean'},\n $data: {type: 'boolean'},\n async: {type: 'boolean'},\n errors: {\n anyOf: [\n {type: 'boolean'},\n {const: 'full'}\n ]\n }\n }\n};\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","'use strict';\n\nvar Type = require('../type');\n\nmodule.exports = new Type('tag:yaml.org,2002:seq', {\n kind: 'sequence',\n construct: function (data) { return data !== null ? data : []; }\n});\n","var baseIsEqualDeep = require('./_baseIsEqualDeep'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nmodule.exports = matchesStrictComparable;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","'use strict';\n\n/*eslint-disable max-len*/\n\nvar common = require('./common');\nvar YAMLException = require('./exception');\nvar Type = require('./type');\n\n\nfunction compileList(schema, name, result) {\n var exclude = [];\n\n schema.include.forEach(function (includedSchema) {\n result = compileList(includedSchema, name, result);\n });\n\n schema[name].forEach(function (currentType) {\n result.forEach(function (previousType, previousIndex) {\n if (previousType.tag === currentType.tag && previousType.kind === currentType.kind) {\n exclude.push(previousIndex);\n }\n });\n\n result.push(currentType);\n });\n\n return result.filter(function (type, index) {\n return exclude.indexOf(index) === -1;\n });\n}\n\n\nfunction compileMap(/* lists... */) {\n var result = {\n scalar: {},\n sequence: {},\n mapping: {},\n fallback: {}\n }, index, length;\n\n function collectType(type) {\n result[type.kind][type.tag] = result['fallback'][type.tag] = type;\n }\n\n for (index = 0, length = arguments.length; index < length; index += 1) {\n arguments[index].forEach(collectType);\n }\n return result;\n}\n\n\nfunction Schema(definition) {\n this.include = definition.include || [];\n this.implicit = definition.implicit || [];\n this.explicit = definition.explicit || [];\n\n this.implicit.forEach(function (type) {\n if (type.loadKind && type.loadKind !== 'scalar') {\n throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');\n }\n });\n\n this.compiledImplicit = compileList(this, 'implicit', []);\n this.compiledExplicit = compileList(this, 'explicit', []);\n this.compiledTypeMap = compileMap(this.compiledImplicit, this.compiledExplicit);\n}\n\n\nSchema.DEFAULT = null;\n\n\nSchema.create = function createSchema() {\n var schemas, types;\n\n switch (arguments.length) {\n case 1:\n schemas = Schema.DEFAULT;\n types = arguments[0];\n break;\n\n case 2:\n schemas = arguments[0];\n types = arguments[1];\n break;\n\n default:\n throw new YAMLException('Wrong number of arguments for Schema.create function');\n }\n\n schemas = common.toArray(schemas);\n types = common.toArray(types);\n\n if (!schemas.every(function (schema) { return schema instanceof Schema; })) {\n throw new YAMLException('Specified list of super schemas (or a single Schema object) contains a non-Schema object.');\n }\n\n if (!types.every(function (type) { return type instanceof Type; })) {\n throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');\n }\n\n return new Schema({\n include: schemas,\n explicit: types\n });\n};\n\n\nmodule.exports = Schema;\n","var baseEach = require('./_baseEach');\n\n/**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseAggregator;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","'use strict';\n\nvar traverse = module.exports = function (schema, opts, cb) {\n // Legacy support for v0.3.1 and earlier.\n if (typeof opts == 'function') {\n cb = opts;\n opts = {};\n }\n\n cb = opts.cb || cb;\n var pre = (typeof cb == 'function') ? cb : cb.pre || function() {};\n var post = cb.post || function() {};\n\n _traverse(opts, pre, post, schema, '', schema);\n};\n\n\ntraverse.keywords = {\n additionalItems: true,\n items: true,\n contains: true,\n additionalProperties: true,\n propertyNames: true,\n not: true\n};\n\ntraverse.arrayKeywords = {\n items: true,\n allOf: true,\n anyOf: true,\n oneOf: true\n};\n\ntraverse.propsKeywords = {\n definitions: true,\n properties: true,\n patternProperties: true,\n dependencies: true\n};\n\ntraverse.skipKeywords = {\n default: true,\n enum: true,\n const: true,\n required: true,\n maximum: true,\n minimum: true,\n exclusiveMaximum: true,\n exclusiveMinimum: true,\n multipleOf: true,\n maxLength: true,\n minLength: true,\n pattern: true,\n format: true,\n maxItems: true,\n minItems: true,\n uniqueItems: true,\n maxProperties: true,\n minProperties: true\n};\n\n\nfunction _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {\n if (schema && typeof schema == 'object' && !Array.isArray(schema)) {\n pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);\n for (var key in schema) {\n var sch = schema[key];\n if (Array.isArray(sch)) {\n if (key in traverse.arrayKeywords) {\n for (var i=0; i= 0) {\n value = value.slice(1);\n }\n\n if (value === '.inf') {\n return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;\n\n } else if (value === '.nan') {\n return NaN;\n\n } else if (value.indexOf(':') >= 0) {\n value.split(':').forEach(function (v) {\n digits.unshift(parseFloat(v, 10));\n });\n\n value = 0.0;\n base = 1;\n\n digits.forEach(function (d) {\n value += d * base;\n base *= 60;\n });\n\n return sign * value;\n\n }\n return sign * parseFloat(value, 10);\n}\n\n\nvar SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;\n\nfunction representYamlFloat(object, style) {\n var res;\n\n if (isNaN(object)) {\n switch (style) {\n case 'lowercase': return '.nan';\n case 'uppercase': return '.NAN';\n case 'camelcase': return '.NaN';\n }\n } else if (Number.POSITIVE_INFINITY === object) {\n switch (style) {\n case 'lowercase': return '.inf';\n case 'uppercase': return '.INF';\n case 'camelcase': return '.Inf';\n }\n } else if (Number.NEGATIVE_INFINITY === object) {\n switch (style) {\n case 'lowercase': return '-.inf';\n case 'uppercase': return '-.INF';\n case 'camelcase': return '-.Inf';\n }\n } else if (common.isNegativeZero(object)) {\n return '-0.0';\n }\n\n res = object.toString(10);\n\n // JS stringifier can build scientific format without dots: 5e-100,\n // while YAML requres dot: 5.e-100. Fix it with simple hack\n\n return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;\n}\n\nfunction isFloat(object) {\n return (Object.prototype.toString.call(object) === '[object Number]') &&\n (object % 1 !== 0 || common.isNegativeZero(object));\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:float', {\n kind: 'scalar',\n resolve: resolveYamlFloat,\n construct: constructYamlFloat,\n predicate: isFloat,\n represent: representYamlFloat,\n defaultStyle: 'lowercase'\n});\n","// Standard YAML's JSON schema.\n// http://www.yaml.org/spec/1.2/spec.html#id2803231\n//\n// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.\n// So, this schema is not such strict as defined in the YAML specification.\n// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc.\n\n\n'use strict';\n\n\nvar Schema = require('../schema');\n\n\nmodule.exports = new Schema({\n include: [\n require('./failsafe')\n ],\n implicit: [\n require('../type/null'),\n require('../type/bool'),\n require('../type/int'),\n require('../type/float')\n ]\n});\n","'use strict';\n\n\nmodule.exports = {\n copy: copy,\n checkDataType: checkDataType,\n checkDataTypes: checkDataTypes,\n coerceToTypes: coerceToTypes,\n toHash: toHash,\n getProperty: getProperty,\n escapeQuotes: escapeQuotes,\n equal: require('fast-deep-equal'),\n ucs2length: require('./ucs2length'),\n varOccurences: varOccurences,\n varReplace: varReplace,\n schemaHasRules: schemaHasRules,\n schemaHasRulesExcept: schemaHasRulesExcept,\n schemaUnknownRules: schemaUnknownRules,\n toQuotedString: toQuotedString,\n getPathExpr: getPathExpr,\n getPath: getPath,\n getData: getData,\n unescapeFragment: unescapeFragment,\n unescapeJsonPointer: unescapeJsonPointer,\n escapeFragment: escapeFragment,\n escapeJsonPointer: escapeJsonPointer\n};\n\n\nfunction copy(o, to) {\n to = to || {};\n for (var key in o) to[key] = o[key];\n return to;\n}\n\n\nfunction checkDataType(dataType, data, strictNumbers, negate) {\n var EQUAL = negate ? ' !== ' : ' === '\n , AND = negate ? ' || ' : ' && '\n , OK = negate ? '!' : ''\n , NOT = negate ? '' : '!';\n switch (dataType) {\n case 'null': return data + EQUAL + 'null';\n case 'array': return OK + 'Array.isArray(' + data + ')';\n case 'object': return '(' + OK + data + AND +\n 'typeof ' + data + EQUAL + '\"object\"' + AND +\n NOT + 'Array.isArray(' + data + '))';\n case 'integer': return '(typeof ' + data + EQUAL + '\"number\"' + AND +\n NOT + '(' + data + ' % 1)' +\n AND + data + EQUAL + data +\n (strictNumbers ? (AND + OK + 'isFinite(' + data + ')') : '') + ')';\n case 'number': return '(typeof ' + data + EQUAL + '\"' + dataType + '\"' +\n (strictNumbers ? (AND + OK + 'isFinite(' + data + ')') : '') + ')';\n default: return 'typeof ' + data + EQUAL + '\"' + dataType + '\"';\n }\n}\n\n\nfunction checkDataTypes(dataTypes, data, strictNumbers) {\n switch (dataTypes.length) {\n case 1: return checkDataType(dataTypes[0], data, strictNumbers, true);\n default:\n var code = '';\n var types = toHash(dataTypes);\n if (types.array && types.object) {\n code = types.null ? '(': '(!' + data + ' || ';\n code += 'typeof ' + data + ' !== \"object\")';\n delete types.null;\n delete types.array;\n delete types.object;\n }\n if (types.number) delete types.integer;\n for (var t in types)\n code += (code ? ' && ' : '' ) + checkDataType(t, data, strictNumbers, true);\n\n return code;\n }\n}\n\n\nvar COERCE_TO_TYPES = toHash([ 'string', 'number', 'integer', 'boolean', 'null' ]);\nfunction coerceToTypes(optionCoerceTypes, dataTypes) {\n if (Array.isArray(dataTypes)) {\n var types = [];\n for (var i=0; i= lvl) throw new Error('Cannot access property/index ' + up + ' levels up, current level is ' + lvl);\n return paths[lvl - up];\n }\n\n if (up > lvl) throw new Error('Cannot access data ' + up + ' levels up, current level is ' + lvl);\n data = 'data' + ((lvl - up) || '');\n if (!jsonPointer) return data;\n }\n\n var expr = data;\n var segments = jsonPointer.split('/');\n for (var i=0; i= 0xD800 && value <= 0xDBFF && pos < len) {\n // high surrogate, and there is a next character\n value = str.charCodeAt(pos);\n if ((value & 0xFC00) == 0xDC00) pos++; // low surrogate\n }\n }\n return length;\n};\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","'use strict';\nmodule.exports = function generate_validate(it, $keyword, $ruleType) {\n var out = '';\n var $async = it.schema.$async === true,\n $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'),\n $id = it.self._getId(it.schema);\n if (it.opts.strictKeywords) {\n var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords);\n if ($unknownKwd) {\n var $keywordsMsg = 'unknown keyword: ' + $unknownKwd;\n if (it.opts.strictKeywords === 'log') it.logger.warn($keywordsMsg);\n else throw new Error($keywordsMsg);\n }\n }\n if (it.isTop) {\n out += ' var validate = ';\n if ($async) {\n it.async = true;\n out += 'async ';\n }\n out += 'function(data, dataPath, parentData, parentDataProperty, rootData) { \\'use strict\\'; ';\n if ($id && (it.opts.sourceCode || it.opts.processCode)) {\n out += ' ' + ('/\\*# sourceURL=' + $id + ' */') + ' ';\n }\n }\n if (typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref)) {\n var $keyword = 'false schema';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $errorKeyword;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n if (it.schema === false) {\n if (it.isTop) {\n $breakOnError = true;\n } else {\n out += ' var ' + ($valid) + ' = false; ';\n }\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || 'false schema') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'boolean schema is false\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n } else {\n if (it.isTop) {\n if ($async) {\n out += ' return data; ';\n } else {\n out += ' validate.errors = null; return true; ';\n }\n } else {\n out += ' var ' + ($valid) + ' = true; ';\n }\n }\n if (it.isTop) {\n out += ' }; return validate; ';\n }\n return out;\n }\n if (it.isTop) {\n var $top = it.isTop,\n $lvl = it.level = 0,\n $dataLvl = it.dataLevel = 0,\n $data = 'data';\n it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema));\n it.baseId = it.baseId || it.rootId;\n delete it.isTop;\n it.dataPathArr = [undefined];\n if (it.schema.default !== undefined && it.opts.useDefaults && it.opts.strictDefaults) {\n var $defaultMsg = 'default is ignored in the schema root';\n if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);\n else throw new Error($defaultMsg);\n }\n out += ' var vErrors = null; ';\n out += ' var errors = 0; ';\n out += ' if (rootData === undefined) rootData = data; ';\n } else {\n var $lvl = it.level,\n $dataLvl = it.dataLevel,\n $data = 'data' + ($dataLvl || '');\n if ($id) it.baseId = it.resolve.url(it.baseId, $id);\n if ($async && !it.async) throw new Error('async schema in sync schema');\n out += ' var errs_' + ($lvl) + ' = errors;';\n }\n var $valid = 'valid' + $lvl,\n $breakOnError = !it.opts.allErrors,\n $closingBraces1 = '',\n $closingBraces2 = '';\n var $errorKeyword;\n var $typeSchema = it.schema.type,\n $typeIsArray = Array.isArray($typeSchema);\n if ($typeSchema && it.opts.nullable && it.schema.nullable === true) {\n if ($typeIsArray) {\n if ($typeSchema.indexOf('null') == -1) $typeSchema = $typeSchema.concat('null');\n } else if ($typeSchema != 'null') {\n $typeSchema = [$typeSchema, 'null'];\n $typeIsArray = true;\n }\n }\n if ($typeIsArray && $typeSchema.length == 1) {\n $typeSchema = $typeSchema[0];\n $typeIsArray = false;\n }\n if (it.schema.$ref && $refKeywords) {\n if (it.opts.extendRefs == 'fail') {\n throw new Error('$ref: validation keywords used in schema at path \"' + it.errSchemaPath + '\" (see option extendRefs)');\n } else if (it.opts.extendRefs !== true) {\n $refKeywords = false;\n it.logger.warn('$ref: keywords ignored in schema at path \"' + it.errSchemaPath + '\"');\n }\n }\n if (it.schema.$comment && it.opts.$comment) {\n out += ' ' + (it.RULES.all.$comment.code(it, '$comment'));\n }\n if ($typeSchema) {\n if (it.opts.coerceTypes) {\n var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema);\n }\n var $rulesGroup = it.RULES.types[$typeSchema];\n if ($coerceToTypes || $typeIsArray || $rulesGroup === true || ($rulesGroup && !$shouldUseGroup($rulesGroup))) {\n var $schemaPath = it.schemaPath + '.type',\n $errSchemaPath = it.errSchemaPath + '/type';\n var $schemaPath = it.schemaPath + '.type',\n $errSchemaPath = it.errSchemaPath + '/type',\n $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType';\n out += ' if (' + (it.util[$method]($typeSchema, $data, it.opts.strictNumbers, true)) + ') { ';\n if ($coerceToTypes) {\n var $dataType = 'dataType' + $lvl,\n $coerced = 'coerced' + $lvl;\n out += ' var ' + ($dataType) + ' = typeof ' + ($data) + '; var ' + ($coerced) + ' = undefined; ';\n if (it.opts.coerceTypes == 'array') {\n out += ' if (' + ($dataType) + ' == \\'object\\' && Array.isArray(' + ($data) + ') && ' + ($data) + '.length == 1) { ' + ($data) + ' = ' + ($data) + '[0]; ' + ($dataType) + ' = typeof ' + ($data) + '; if (' + (it.util.checkDataType(it.schema.type, $data, it.opts.strictNumbers)) + ') ' + ($coerced) + ' = ' + ($data) + '; } ';\n }\n out += ' if (' + ($coerced) + ' !== undefined) ; ';\n var arr1 = $coerceToTypes;\n if (arr1) {\n var $type, $i = -1,\n l1 = arr1.length - 1;\n while ($i < l1) {\n $type = arr1[$i += 1];\n if ($type == 'string') {\n out += ' else if (' + ($dataType) + ' == \\'number\\' || ' + ($dataType) + ' == \\'boolean\\') ' + ($coerced) + ' = \\'\\' + ' + ($data) + '; else if (' + ($data) + ' === null) ' + ($coerced) + ' = \\'\\'; ';\n } else if ($type == 'number' || $type == 'integer') {\n out += ' else if (' + ($dataType) + ' == \\'boolean\\' || ' + ($data) + ' === null || (' + ($dataType) + ' == \\'string\\' && ' + ($data) + ' && ' + ($data) + ' == +' + ($data) + ' ';\n if ($type == 'integer') {\n out += ' && !(' + ($data) + ' % 1)';\n }\n out += ')) ' + ($coerced) + ' = +' + ($data) + '; ';\n } else if ($type == 'boolean') {\n out += ' else if (' + ($data) + ' === \\'false\\' || ' + ($data) + ' === 0 || ' + ($data) + ' === null) ' + ($coerced) + ' = false; else if (' + ($data) + ' === \\'true\\' || ' + ($data) + ' === 1) ' + ($coerced) + ' = true; ';\n } else if ($type == 'null') {\n out += ' else if (' + ($data) + ' === \\'\\' || ' + ($data) + ' === 0 || ' + ($data) + ' === false) ' + ($coerced) + ' = null; ';\n } else if (it.opts.coerceTypes == 'array' && $type == 'array') {\n out += ' else if (' + ($dataType) + ' == \\'string\\' || ' + ($dataType) + ' == \\'number\\' || ' + ($dataType) + ' == \\'boolean\\' || ' + ($data) + ' == null) ' + ($coerced) + ' = [' + ($data) + ']; ';\n }\n }\n }\n out += ' else { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || 'type') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \\'';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be ';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } if (' + ($coerced) + ' !== undefined) { ';\n var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',\n $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';\n out += ' ' + ($data) + ' = ' + ($coerced) + '; ';\n if (!$dataLvl) {\n out += 'if (' + ($parentData) + ' !== undefined)';\n }\n out += ' ' + ($parentData) + '[' + ($parentDataProperty) + '] = ' + ($coerced) + '; } ';\n } else {\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || 'type') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \\'';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be ';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n }\n out += ' } ';\n }\n }\n if (it.schema.$ref && !$refKeywords) {\n out += ' ' + (it.RULES.all.$ref.code(it, '$ref')) + ' ';\n if ($breakOnError) {\n out += ' } if (errors === ';\n if ($top) {\n out += '0';\n } else {\n out += 'errs_' + ($lvl);\n }\n out += ') { ';\n $closingBraces2 += '}';\n }\n } else {\n var arr2 = it.RULES;\n if (arr2) {\n var $rulesGroup, i2 = -1,\n l2 = arr2.length - 1;\n while (i2 < l2) {\n $rulesGroup = arr2[i2 += 1];\n if ($shouldUseGroup($rulesGroup)) {\n if ($rulesGroup.type) {\n out += ' if (' + (it.util.checkDataType($rulesGroup.type, $data, it.opts.strictNumbers)) + ') { ';\n }\n if (it.opts.useDefaults) {\n if ($rulesGroup.type == 'object' && it.schema.properties) {\n var $schema = it.schema.properties,\n $schemaKeys = Object.keys($schema);\n var arr3 = $schemaKeys;\n if (arr3) {\n var $propertyKey, i3 = -1,\n l3 = arr3.length - 1;\n while (i3 < l3) {\n $propertyKey = arr3[i3 += 1];\n var $sch = $schema[$propertyKey];\n if ($sch.default !== undefined) {\n var $passData = $data + it.util.getProperty($propertyKey);\n if (it.compositeRule) {\n if (it.opts.strictDefaults) {\n var $defaultMsg = 'default is ignored for: ' + $passData;\n if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);\n else throw new Error($defaultMsg);\n }\n } else {\n out += ' if (' + ($passData) + ' === undefined ';\n if (it.opts.useDefaults == 'empty') {\n out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \\'\\' ';\n }\n out += ' ) ' + ($passData) + ' = ';\n if (it.opts.useDefaults == 'shared') {\n out += ' ' + (it.useDefault($sch.default)) + ' ';\n } else {\n out += ' ' + (JSON.stringify($sch.default)) + ' ';\n }\n out += '; ';\n }\n }\n }\n }\n } else if ($rulesGroup.type == 'array' && Array.isArray(it.schema.items)) {\n var arr4 = it.schema.items;\n if (arr4) {\n var $sch, $i = -1,\n l4 = arr4.length - 1;\n while ($i < l4) {\n $sch = arr4[$i += 1];\n if ($sch.default !== undefined) {\n var $passData = $data + '[' + $i + ']';\n if (it.compositeRule) {\n if (it.opts.strictDefaults) {\n var $defaultMsg = 'default is ignored for: ' + $passData;\n if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);\n else throw new Error($defaultMsg);\n }\n } else {\n out += ' if (' + ($passData) + ' === undefined ';\n if (it.opts.useDefaults == 'empty') {\n out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \\'\\' ';\n }\n out += ' ) ' + ($passData) + ' = ';\n if (it.opts.useDefaults == 'shared') {\n out += ' ' + (it.useDefault($sch.default)) + ' ';\n } else {\n out += ' ' + (JSON.stringify($sch.default)) + ' ';\n }\n out += '; ';\n }\n }\n }\n }\n }\n }\n var arr5 = $rulesGroup.rules;\n if (arr5) {\n var $rule, i5 = -1,\n l5 = arr5.length - 1;\n while (i5 < l5) {\n $rule = arr5[i5 += 1];\n if ($shouldUseRule($rule)) {\n var $code = $rule.code(it, $rule.keyword, $rulesGroup.type);\n if ($code) {\n out += ' ' + ($code) + ' ';\n if ($breakOnError) {\n $closingBraces1 += '}';\n }\n }\n }\n }\n }\n if ($breakOnError) {\n out += ' ' + ($closingBraces1) + ' ';\n $closingBraces1 = '';\n }\n if ($rulesGroup.type) {\n out += ' } ';\n if ($typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes) {\n out += ' else { ';\n var $schemaPath = it.schemaPath + '.type',\n $errSchemaPath = it.errSchemaPath + '/type';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || 'type') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \\'';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be ';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } ';\n }\n }\n if ($breakOnError) {\n out += ' if (errors === ';\n if ($top) {\n out += '0';\n } else {\n out += 'errs_' + ($lvl);\n }\n out += ') { ';\n $closingBraces2 += '}';\n }\n }\n }\n }\n }\n if ($breakOnError) {\n out += ' ' + ($closingBraces2) + ' ';\n }\n if ($top) {\n if ($async) {\n out += ' if (errors === 0) return data; ';\n out += ' else throw new ValidationError(vErrors); ';\n } else {\n out += ' validate.errors = vErrors; ';\n out += ' return errors === 0; ';\n }\n out += ' }; return validate;';\n } else {\n out += ' var ' + ($valid) + ' = errors === errs_' + ($lvl) + ';';\n }\n\n function $shouldUseGroup($rulesGroup) {\n var rules = $rulesGroup.rules;\n for (var i = 0; i < rules.length; i++)\n if ($shouldUseRule(rules[i])) return true;\n }\n\n function $shouldUseRule($rule) {\n return it.schema[$rule.keyword] !== undefined || ($rule.implements && $ruleImplementsSomeKeyword($rule));\n }\n\n function $ruleImplementsSomeKeyword($rule) {\n var impl = $rule.implements;\n for (var i = 0; i < impl.length; i++)\n if (it.schema[impl[i]] !== undefined) return true;\n }\n return out;\n}\n","var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n","'use strict';\nmodule.exports = function generate_dependencies(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $schemaDeps = {},\n $propertyDeps = {},\n $ownProperties = it.opts.ownProperties;\n for ($property in $schema) {\n if ($property == '__proto__') continue;\n var $sch = $schema[$property];\n var $deps = Array.isArray($sch) ? $propertyDeps : $schemaDeps;\n $deps[$property] = $sch;\n }\n out += 'var ' + ($errs) + ' = errors;';\n var $currentErrorPath = it.errorPath;\n out += 'var missing' + ($lvl) + ';';\n for (var $property in $propertyDeps) {\n $deps = $propertyDeps[$property];\n if ($deps.length) {\n out += ' if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined ';\n if ($ownProperties) {\n out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($property)) + '\\') ';\n }\n if ($breakOnError) {\n out += ' && ( ';\n var arr1 = $deps;\n if (arr1) {\n var $propertyKey, $i = -1,\n l1 = arr1.length - 1;\n while ($i < l1) {\n $propertyKey = arr1[$i += 1];\n if ($i) {\n out += ' || ';\n }\n var $prop = it.util.getProperty($propertyKey),\n $useData = $data + $prop;\n out += ' ( ( ' + ($useData) + ' === undefined ';\n if ($ownProperties) {\n out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($propertyKey)) + '\\') ';\n }\n out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) ';\n }\n }\n out += ')) { ';\n var $propertyPath = 'missing' + $lvl,\n $missingProperty = '\\' + ' + $propertyPath + ' + \\'';\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath;\n }\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('dependencies') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { property: \\'' + (it.util.escapeQuotes($property)) + '\\', missingProperty: \\'' + ($missingProperty) + '\\', depsCount: ' + ($deps.length) + ', deps: \\'' + (it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(\", \"))) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should have ';\n if ($deps.length == 1) {\n out += 'property ' + (it.util.escapeQuotes($deps[0]));\n } else {\n out += 'properties ' + (it.util.escapeQuotes($deps.join(\", \")));\n }\n out += ' when property ' + (it.util.escapeQuotes($property)) + ' is present\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n } else {\n out += ' ) { ';\n var arr2 = $deps;\n if (arr2) {\n var $propertyKey, i2 = -1,\n l2 = arr2.length - 1;\n while (i2 < l2) {\n $propertyKey = arr2[i2 += 1];\n var $prop = it.util.getProperty($propertyKey),\n $missingProperty = it.util.escapeQuotes($propertyKey),\n $useData = $data + $prop;\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);\n }\n out += ' if ( ' + ($useData) + ' === undefined ';\n if ($ownProperties) {\n out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($propertyKey)) + '\\') ';\n }\n out += ') { var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('dependencies') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { property: \\'' + (it.util.escapeQuotes($property)) + '\\', missingProperty: \\'' + ($missingProperty) + '\\', depsCount: ' + ($deps.length) + ', deps: \\'' + (it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(\", \"))) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should have ';\n if ($deps.length == 1) {\n out += 'property ' + (it.util.escapeQuotes($deps[0]));\n } else {\n out += 'properties ' + (it.util.escapeQuotes($deps.join(\", \")));\n }\n out += ' when property ' + (it.util.escapeQuotes($property)) + ' is present\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ';\n }\n }\n }\n out += ' } ';\n if ($breakOnError) {\n $closingBraces += '}';\n out += ' else { ';\n }\n }\n }\n it.errorPath = $currentErrorPath;\n var $currentBaseId = $it.baseId;\n for (var $property in $schemaDeps) {\n var $sch = $schemaDeps[$property];\n if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {\n out += ' ' + ($nextValid) + ' = true; if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined ';\n if ($ownProperties) {\n out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($property)) + '\\') ';\n }\n out += ') { ';\n $it.schema = $sch;\n $it.schemaPath = $schemaPath + it.util.getProperty($property);\n $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($property);\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n out += ' } ';\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n $closingBraces += '}';\n }\n }\n }\n if ($breakOnError) {\n out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';\n }\n return out;\n}\n","var isObject = require('./isObject');\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n","var baseIsMatch = require('./_baseIsMatch'),\n getMatchData = require('./_getMatchData'),\n matchesStrictComparable = require('./_matchesStrictComparable');\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\n\nmodule.exports = baseMatches;\n","'use strict';\n\nvar util = require('./util');\n\nmodule.exports = SchemaObject;\n\nfunction SchemaObject(obj) {\n util.copy(obj, this);\n}\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","var baseAssignValue = require('./_baseAssignValue'),\n createAggregator = require('./_createAggregator');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\nvar groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n});\n\nmodule.exports = groupBy;\n","module.exports = require(\"path\");","'use strict';\n\nvar util = require('./util');\n\nvar DATE = /^(\\d\\d\\d\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|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'\"()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\\?(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;\n// uri-template: https://tools.ietf.org/html/rfc6570\nvar URITEMPLATE = /^(?:(?:[^\\x00-\\x20\"'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i;\n// For the source: https://gist.github.com/dperini/729294\n// For test cases: https://mathiasbynens.be/demo/url-regex\n// @todo Delete current URL in favour of the commented out URL rule when this issue is fixed https://github.com/eslint/eslint/issues/7983.\n// var URL = /^(?:(?:https?|ftp):\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu;\nvar URL = /^(?:(?:http[s\\u017F]?|ftp):\\/\\/)(?:(?:[\\0-\\x08\\x0E-\\x1F!-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+(?::(?:[\\0-\\x08\\x0E-\\x1F!-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*)?@)?(?:(?!10(?:\\.[0-9]{1,3}){3})(?!127(?:\\.[0-9]{1,3}){3})(?!169\\.254(?:\\.[0-9]{1,3}){2})(?!192\\.168(?:\\.[0-9]{1,3}){2})(?!172\\.(?:1[6-9]|2[0-9]|3[01])(?:\\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+-?)*(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+)(?:\\.(?:(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+-?)*(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+)*(?:\\.(?:(?:[KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\\/(?:[\\0-\\x08\\x0E-\\x1F!-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*)?$/i;\nvar UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;\nvar JSON_POINTER = /^(?:\\/(?:[^~/]|~0|~1)*)*$/;\nvar JSON_POINTER_URI_FRAGMENT = /^#(?:\\/(?:[a-z0-9_\\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;\nvar RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/;\n\n\nmodule.exports = formats;\n\nfunction formats(mode) {\n mode = mode == 'full' ? 'full' : 'fast';\n return util.copy(formats[mode]);\n}\n\n\nformats.fast = {\n // date: http://tools.ietf.org/html/rfc3339#section-5.6\n date: /^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\d$/,\n // date-time: http://tools.ietf.org/html/rfc3339#section-5.6\n time: /^(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)?$/i,\n 'date-time': /^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\d[t\\s](?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)$/i,\n // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js\n uri: /^(?:[a-z][a-z0-9+-.]*:)(?:\\/?\\/)?[^\\s]*$/i,\n 'uri-reference': /^(?:(?:[a-z][a-z0-9+-.]*:)?\\/?\\/)?(?:[^\\\\\\s#][^\\s#]*)?(?:#[^\\\\\\s]*)?$/i,\n 'uri-template': URITEMPLATE,\n url: URL,\n // email (sources from jsen validator):\n // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363\n // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'willful violation')\n email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,\n hostname: HOSTNAME,\n // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html\n ipv4: /^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$/,\n // optimized http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses\n ipv6: /^\\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(?:%.+)?\\s*$/i,\n regex: regex,\n // uuid: http://tools.ietf.org/html/rfc4122\n uuid: UUID,\n // JSON-pointer: https://tools.ietf.org/html/rfc6901\n // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A\n 'json-pointer': JSON_POINTER,\n 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,\n // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00\n 'relative-json-pointer': RELATIVE_JSON_POINTER\n};\n\n\nformats.full = {\n date: date,\n time: time,\n 'date-time': date_time,\n uri: uri,\n 'uri-reference': URIREF,\n 'uri-template': URITEMPLATE,\n url: URL,\n email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,\n hostname: HOSTNAME,\n ipv4: /^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$/,\n ipv6: /^\\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[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uuid: UUID,\n 'json-pointer': JSON_POINTER,\n 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,\n 'relative-json-pointer': RELATIVE_JSON_POINTER\n};\n\n\nfunction isLeapYear(year) {\n // https://tools.ietf.org/html/rfc3339#appendix-C\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\n\n\nfunction date(str) {\n // full-date from http://tools.ietf.org/html/rfc3339#section-5.6\n var matches = str.match(DATE);\n if (!matches) return false;\n\n var year = +matches[1];\n var month = +matches[2];\n var day = +matches[3];\n\n return month >= 1 && month <= 12 && day >= 1 &&\n day <= (month == 2 && isLeapYear(year) ? 29 : DAYS[month]);\n}\n\n\nfunction time(str, full) {\n var matches = str.match(TIME);\n if (!matches) return false;\n\n var hour = matches[1];\n var minute = matches[2];\n var second = matches[3];\n var timeZone = matches[5];\n return ((hour <= 23 && minute <= 59 && second <= 59) ||\n (hour == 23 && minute == 59 && second == 60)) &&\n (!full || timeZone);\n}\n\n\nvar DATE_TIME_SEPARATOR = /t|\\s/i;\nfunction date_time(str) {\n // http://tools.ietf.org/html/rfc3339#section-5.6\n var dateTime = str.split(DATE_TIME_SEPARATOR);\n return dateTime.length == 2 && date(dateTime[0]) && time(dateTime[1], true);\n}\n\n\nvar NOT_URI_FRAGMENT = /\\/|:/;\nfunction uri(str) {\n // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required \".\"\n return NOT_URI_FRAGMENT.test(str) && URI.test(str);\n}\n\n\nvar Z_ANCHOR = /[^\\\\]\\\\Z/;\nfunction regex(str) {\n if (Z_ANCHOR.test(str)) return false;\n try {\n new RegExp(str);\n return true;\n } catch(e) {\n return false;\n }\n}\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = stubArray;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var castPath = require('./_castPath'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isIndex = require('./_isIndex'),\n isLength = require('./isLength'),\n toKey = require('./_toKey');\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n}\n\nmodule.exports = hasPath;\n","'use strict';\nmodule.exports = function generate_const(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n if (!$isData) {\n out += ' var schema' + ($lvl) + ' = validate.schema' + ($schemaPath) + ';';\n }\n out += 'var ' + ($valid) + ' = equal(' + ($data) + ', schema' + ($lvl) + '); if (!' + ($valid) + ') { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('const') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValue: schema' + ($lvl) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be equal to constant\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' }';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","'use strict';\n\nvar Type = require('../type');\n\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\nvar _toString = Object.prototype.toString;\n\nfunction resolveYamlOmap(data) {\n if (data === null) return true;\n\n var objectKeys = [], index, length, pair, pairKey, pairHasKey,\n object = data;\n\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n pairHasKey = false;\n\n if (_toString.call(pair) !== '[object Object]') return false;\n\n for (pairKey in pair) {\n if (_hasOwnProperty.call(pair, pairKey)) {\n if (!pairHasKey) pairHasKey = true;\n else return false;\n }\n }\n\n if (!pairHasKey) return false;\n\n if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);\n else return false;\n }\n\n return true;\n}\n\nfunction constructYamlOmap(data) {\n return data !== null ? data : [];\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:omap', {\n kind: 'sequence',\n resolve: resolveYamlOmap,\n construct: constructYamlOmap\n});\n","'use strict';\n\nvar Type = require('../type');\n\nfunction resolveYamlNull(data) {\n if (data === null) return true;\n\n var max = data.length;\n\n return (max === 1 && data === '~') ||\n (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));\n}\n\nfunction constructYamlNull() {\n return null;\n}\n\nfunction isNull(object) {\n return object === null;\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:null', {\n kind: 'scalar',\n resolve: resolveYamlNull,\n construct: constructYamlNull,\n predicate: isNull,\n represent: {\n canonical: function () { return '~'; },\n lowercase: function () { return 'null'; },\n uppercase: function () { return 'NULL'; },\n camelcase: function () { return 'Null'; }\n },\n defaultStyle: 'lowercase'\n});\n","'use strict';\n\nvar Type = require('../type');\n\nmodule.exports = new Type('tag:yaml.org,2002:str', {\n kind: 'scalar',\n construct: function (data) { return data !== null ? data : ''; }\n});\n","'use strict';\n\nvar Type = require('../type');\n\nfunction resolveYamlBoolean(data) {\n if (data === null) return false;\n\n var max = data.length;\n\n return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||\n (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));\n}\n\nfunction constructYamlBoolean(data) {\n return data === 'true' ||\n data === 'True' ||\n data === 'TRUE';\n}\n\nfunction isBoolean(object) {\n return Object.prototype.toString.call(object) === '[object Boolean]';\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:bool', {\n kind: 'scalar',\n resolve: resolveYamlBoolean,\n construct: constructYamlBoolean,\n predicate: isBoolean,\n represent: {\n lowercase: function (object) { return object ? 'true' : 'false'; },\n uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },\n camelcase: function (object) { return object ? 'True' : 'False'; }\n },\n defaultStyle: 'lowercase'\n});\n","'use strict';\n\n\nvar Cache = module.exports = function Cache() {\n this._cache = {};\n};\n\n\nCache.prototype.put = function Cache_put(key, value) {\n this._cache[key] = value;\n};\n\n\nCache.prototype.get = function Cache_get(key) {\n return this._cache[key];\n};\n\n\nCache.prototype.del = function Cache_del(key) {\n delete this._cache[key];\n};\n\n\nCache.prototype.clear = function Cache_clear() {\n this._cache = {};\n};\n","'use strict';\nmodule.exports = function generate__limitItems(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $errorKeyword;\n var $data = 'data' + ($dataLvl || '');\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n if (!($isData || typeof $schema == 'number')) {\n throw new Error($keyword + ' must be number');\n }\n var $op = $keyword == 'maxItems' ? '>' : '<';\n out += 'if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n }\n out += ' ' + ($data) + '.length ' + ($op) + ' ' + ($schemaValue) + ') { ';\n var $errorKeyword = $keyword;\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || '_limitItems') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should NOT have ';\n if ($keyword == 'maxItems') {\n out += 'more';\n } else {\n out += 'fewer';\n }\n out += ' than ';\n if ($isData) {\n out += '\\' + ' + ($schemaValue) + ' + \\'';\n } else {\n out += '' + ($schema);\n }\n out += ' items\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + ($schema);\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += '} ';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","var isArray = require('./isArray'),\n isKey = require('./_isKey'),\n stringToPath = require('./_stringToPath'),\n toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n","var baseGetTag = require('./_baseGetTag'),\n isArray = require('./isArray'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nmodule.exports = createBaseFor;\n","var baseFor = require('./_baseFor'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nmodule.exports = baseForOwn;\n",null,"var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n","'use strict';\n\nvar resolve = require('./resolve');\n\nmodule.exports = {\n Validation: errorSubclass(ValidationError),\n MissingRef: errorSubclass(MissingRefError)\n};\n\n\nfunction ValidationError(errors) {\n this.message = 'validation failed';\n this.errors = errors;\n this.ajv = this.validation = true;\n}\n\n\nMissingRefError.message = function (baseId, ref) {\n return 'can\\'t resolve reference ' + ref + ' from id ' + baseId;\n};\n\n\nfunction MissingRefError(baseId, ref, message) {\n this.message = message || MissingRefError.message(baseId, ref);\n this.missingRef = resolve.url(baseId, ref);\n this.missingSchema = resolve.normalizeId(resolve.fullPath(this.missingRef));\n}\n\n\nfunction errorSubclass(Subclass) {\n Subclass.prototype = Object.create(Error.prototype);\n Subclass.prototype.constructor = Subclass;\n return Subclass;\n}\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","module.exports = require(\"fs\");","'use strict';\nmodule.exports = function generate_not(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) {\n $it.schema = $schema;\n $it.schemaPath = $schemaPath;\n $it.errSchemaPath = $errSchemaPath;\n out += ' var ' + ($errs) + ' = errors; ';\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n $it.createErrors = false;\n var $allErrorsOption;\n if ($it.opts.allErrors) {\n $allErrorsOption = $it.opts.allErrors;\n $it.opts.allErrors = false;\n }\n out += ' ' + (it.validate($it)) + ' ';\n $it.createErrors = true;\n if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption;\n it.compositeRule = $it.compositeRule = $wasComposite;\n out += ' if (' + ($nextValid) + ') { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('not') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should NOT be valid\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';\n if (it.opts.allErrors) {\n out += ' } ';\n }\n } else {\n out += ' var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('not') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should NOT be valid\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n if ($breakOnError) {\n out += ' if (false) { ';\n }\n }\n return out;\n}\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var castPath = require('./_castPath'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","'use strict';\nmodule.exports = function generate_multipleOf(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n if (!($isData || typeof $schema == 'number')) {\n throw new Error($keyword + ' must be number');\n }\n out += 'var division' + ($lvl) + ';if (';\n if ($isData) {\n out += ' ' + ($schemaValue) + ' !== undefined && ( typeof ' + ($schemaValue) + ' != \\'number\\' || ';\n }\n out += ' (division' + ($lvl) + ' = ' + ($data) + ' / ' + ($schemaValue) + ', ';\n if (it.opts.multipleOfPrecision) {\n out += ' Math.abs(Math.round(division' + ($lvl) + ') - division' + ($lvl) + ') > 1e-' + (it.opts.multipleOfPrecision) + ' ';\n } else {\n out += ' division' + ($lvl) + ' !== parseInt(division' + ($lvl) + ') ';\n }\n out += ' ) ';\n if ($isData) {\n out += ' ) ';\n }\n out += ' ) { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('multipleOf') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { multipleOf: ' + ($schemaValue) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be multiple of ';\n if ($isData) {\n out += '\\' + ' + ($schemaValue);\n } else {\n out += '' + ($schemaValue) + '\\'';\n }\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + ($schema);\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += '} ';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","var baseFlatten = require('./_baseFlatten'),\n baseOrderBy = require('./_baseOrderBy'),\n baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nmodule.exports = sortBy;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","var arrayFilter = require('./_arrayFilter'),\n stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nmodule.exports = getSymbols;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","'use strict';\n\n//all requires must be explicit because browserify won't work with dynamic requires\nmodule.exports = {\n '$ref': require('./ref'),\n allOf: require('./allOf'),\n anyOf: require('./anyOf'),\n '$comment': require('./comment'),\n const: require('./const'),\n contains: require('./contains'),\n dependencies: require('./dependencies'),\n 'enum': require('./enum'),\n format: require('./format'),\n 'if': require('./if'),\n items: require('./items'),\n maximum: require('./_limit'),\n minimum: require('./_limit'),\n maxItems: require('./_limitItems'),\n minItems: require('./_limitItems'),\n maxLength: require('./_limitLength'),\n minLength: require('./_limitLength'),\n maxProperties: require('./_limitProperties'),\n minProperties: require('./_limitProperties'),\n multipleOf: require('./multipleOf'),\n not: require('./not'),\n oneOf: require('./oneOf'),\n pattern: require('./pattern'),\n properties: require('./properties'),\n propertyNames: require('./propertyNames'),\n required: require('./required'),\n uniqueItems: require('./uniqueItems'),\n validate: require('./validate')\n};\n","var compareAscending = require('./_compareAscending');\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\nmodule.exports = compareMultiple;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nmodule.exports = baseProperty;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n","'use strict';\nmodule.exports = function generate_format(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n if (it.opts.format === false) {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n return out;\n }\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n var $unknownFormats = it.opts.unknownFormats,\n $allowUnknown = Array.isArray($unknownFormats);\n if ($isData) {\n var $format = 'format' + $lvl,\n $isObject = 'isObject' + $lvl,\n $formatType = 'formatType' + $lvl;\n out += ' var ' + ($format) + ' = formats[' + ($schemaValue) + ']; var ' + ($isObject) + ' = typeof ' + ($format) + ' == \\'object\\' && !(' + ($format) + ' instanceof RegExp) && ' + ($format) + '.validate; var ' + ($formatType) + ' = ' + ($isObject) + ' && ' + ($format) + '.type || \\'string\\'; if (' + ($isObject) + ') { ';\n if (it.async) {\n out += ' var async' + ($lvl) + ' = ' + ($format) + '.async; ';\n }\n out += ' ' + ($format) + ' = ' + ($format) + '.validate; } if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'string\\') || ';\n }\n out += ' (';\n if ($unknownFormats != 'ignore') {\n out += ' (' + ($schemaValue) + ' && !' + ($format) + ' ';\n if ($allowUnknown) {\n out += ' && self._opts.unknownFormats.indexOf(' + ($schemaValue) + ') == -1 ';\n }\n out += ') || ';\n }\n out += ' (' + ($format) + ' && ' + ($formatType) + ' == \\'' + ($ruleType) + '\\' && !(typeof ' + ($format) + ' == \\'function\\' ? ';\n if (it.async) {\n out += ' (async' + ($lvl) + ' ? await ' + ($format) + '(' + ($data) + ') : ' + ($format) + '(' + ($data) + ')) ';\n } else {\n out += ' ' + ($format) + '(' + ($data) + ') ';\n }\n out += ' : ' + ($format) + '.test(' + ($data) + '))))) {';\n } else {\n var $format = it.formats[$schema];\n if (!$format) {\n if ($unknownFormats == 'ignore') {\n it.logger.warn('unknown format \"' + $schema + '\" ignored in schema at path \"' + it.errSchemaPath + '\"');\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n return out;\n } else if ($allowUnknown && $unknownFormats.indexOf($schema) >= 0) {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n return out;\n } else {\n throw new Error('unknown format \"' + $schema + '\" is used in schema at path \"' + it.errSchemaPath + '\"');\n }\n }\n var $isObject = typeof $format == 'object' && !($format instanceof RegExp) && $format.validate;\n var $formatType = $isObject && $format.type || 'string';\n if ($isObject) {\n var $async = $format.async === true;\n $format = $format.validate;\n }\n if ($formatType != $ruleType) {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n return out;\n }\n if ($async) {\n if (!it.async) throw new Error('async format in sync schema');\n var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate';\n out += ' if (!(await ' + ($formatRef) + '(' + ($data) + '))) { ';\n } else {\n out += ' if (! ';\n var $formatRef = 'formats' + it.util.getProperty($schema);\n if ($isObject) $formatRef += '.validate';\n if (typeof $format == 'function') {\n out += ' ' + ($formatRef) + '(' + ($data) + ') ';\n } else {\n out += ' ' + ($formatRef) + '.test(' + ($data) + ') ';\n }\n out += ') { ';\n }\n }\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('format') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { format: ';\n if ($isData) {\n out += '' + ($schemaValue);\n } else {\n out += '' + (it.util.toQuotedString($schema));\n }\n out += ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should match format \"';\n if ($isData) {\n out += '\\' + ' + ($schemaValue) + ' + \\'';\n } else {\n out += '' + (it.util.escapeQuotes($schema));\n }\n out += '\"\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + (it.util.toQuotedString($schema));\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","var arrayMap = require('./_arrayMap'),\n baseGet = require('./_baseGet'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n baseSortBy = require('./_baseSortBy'),\n baseUnary = require('./_baseUnary'),\n compareMultiple = require('./_compareMultiple'),\n identity = require('./identity'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nmodule.exports = mapToArray;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n","'use strict';\nmodule.exports = function generate_if(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $thenSch = it.schema['then'],\n $elseSch = it.schema['else'],\n $thenPresent = $thenSch !== undefined && (it.opts.strictKeywords ? typeof $thenSch == 'object' && Object.keys($thenSch).length > 0 : it.util.schemaHasRules($thenSch, it.RULES.all)),\n $elsePresent = $elseSch !== undefined && (it.opts.strictKeywords ? typeof $elseSch == 'object' && Object.keys($elseSch).length > 0 : it.util.schemaHasRules($elseSch, it.RULES.all)),\n $currentBaseId = $it.baseId;\n if ($thenPresent || $elsePresent) {\n var $ifClause;\n $it.createErrors = false;\n $it.schema = $schema;\n $it.schemaPath = $schemaPath;\n $it.errSchemaPath = $errSchemaPath;\n out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = true; ';\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n $it.createErrors = true;\n out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';\n it.compositeRule = $it.compositeRule = $wasComposite;\n if ($thenPresent) {\n out += ' if (' + ($nextValid) + ') { ';\n $it.schema = it.schema['then'];\n $it.schemaPath = it.schemaPath + '.then';\n $it.errSchemaPath = it.errSchemaPath + '/then';\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n out += ' ' + ($valid) + ' = ' + ($nextValid) + '; ';\n if ($thenPresent && $elsePresent) {\n $ifClause = 'ifClause' + $lvl;\n out += ' var ' + ($ifClause) + ' = \\'then\\'; ';\n } else {\n $ifClause = '\\'then\\'';\n }\n out += ' } ';\n if ($elsePresent) {\n out += ' else { ';\n }\n } else {\n out += ' if (!' + ($nextValid) + ') { ';\n }\n if ($elsePresent) {\n $it.schema = it.schema['else'];\n $it.schemaPath = it.schemaPath + '.else';\n $it.errSchemaPath = it.errSchemaPath + '/else';\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n out += ' ' + ($valid) + ' = ' + ($nextValid) + '; ';\n if ($thenPresent && $elsePresent) {\n $ifClause = 'ifClause' + $lvl;\n out += ' var ' + ($ifClause) + ' = \\'else\\'; ';\n } else {\n $ifClause = '\\'else\\'';\n }\n out += ' } ';\n }\n out += ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('if') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { failingKeyword: ' + ($ifClause) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should match \"\\' + ' + ($ifClause) + ' + \\'\" schema\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError(vErrors); ';\n } else {\n out += ' validate.errors = vErrors; return false; ';\n }\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' else { ';\n }\n } else {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n }\n return out;\n}\n","var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var memoizeCapped = require('./_memoizeCapped');\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nmodule.exports = stringToPath;\n","// JS-YAML's default schema for `load` function.\n// It is not described in the YAML specification.\n//\n// This schema is based on JS-YAML's default safe schema and includes\n// JavaScript-specific types: !!js/undefined, !!js/regexp and !!js/function.\n//\n// Also this schema is used as default base schema at `Schema.create` function.\n\n\n'use strict';\n\n\nvar Schema = require('../schema');\n\n\nmodule.exports = Schema.DEFAULT = new Schema({\n include: [\n require('./default_safe')\n ],\n explicit: [\n require('../type/js/undefined'),\n require('../type/js/regexp'),\n require('../type/js/function')\n ]\n});\n","'use strict';\n\nvar resolve = require('./resolve')\n , util = require('./util')\n , errorClasses = require('./error_classes')\n , stableStringify = require('fast-json-stable-stringify');\n\nvar validateGenerator = require('../dotjs/validate');\n\n/**\n * Functions below are used inside compiled validations function\n */\n\nvar ucs2length = util.ucs2length;\nvar equal = require('fast-deep-equal');\n\n// this error is thrown by async schemas to return validation errors via exception\nvar ValidationError = errorClasses.Validation;\n\nmodule.exports = compile;\n\n\n/**\n * Compiles schema to validation function\n * @this Ajv\n * @param {Object} schema schema object\n * @param {Object} root object with information about the root schema for this schema\n * @param {Object} localRefs the hash of local references inside the schema (created by resolve.id), used for inline resolution\n * @param {String} baseId base ID for IDs in the schema\n * @return {Function} validation function\n */\nfunction compile(schema, root, localRefs, baseId) {\n /* jshint validthis: true, evil: true */\n /* eslint no-shadow: 0 */\n var self = this\n , opts = this._opts\n , refVal = [ undefined ]\n , refs = {}\n , patterns = []\n , patternsHash = {}\n , defaults = []\n , defaultsHash = {}\n , customRules = [];\n\n root = root || { schema: schema, refVal: refVal, refs: refs };\n\n var c = checkCompiling.call(this, schema, root, baseId);\n var compilation = this._compilations[c.index];\n if (c.compiling) return (compilation.callValidate = callValidate);\n\n var formats = this._formats;\n var RULES = this.RULES;\n\n try {\n var v = localCompile(schema, root, localRefs, baseId);\n compilation.validate = v;\n var cv = compilation.callValidate;\n if (cv) {\n cv.schema = v.schema;\n cv.errors = null;\n cv.refs = v.refs;\n cv.refVal = v.refVal;\n cv.root = v.root;\n cv.$async = v.$async;\n if (opts.sourceCode) cv.source = v.source;\n }\n return v;\n } finally {\n endCompiling.call(this, schema, root, baseId);\n }\n\n /* @this {*} - custom context, see passContext option */\n function callValidate() {\n /* jshint validthis: true */\n var validate = compilation.validate;\n var result = validate.apply(this, arguments);\n callValidate.errors = validate.errors;\n return result;\n }\n\n function localCompile(_schema, _root, localRefs, baseId) {\n var isRoot = !_root || (_root && _root.schema == _schema);\n if (_root.schema != root.schema)\n return compile.call(self, _schema, _root, localRefs, baseId);\n\n var $async = _schema.$async === true;\n\n var sourceCode = validateGenerator({\n isTop: true,\n schema: _schema,\n isRoot: isRoot,\n baseId: baseId,\n root: _root,\n schemaPath: '',\n errSchemaPath: '#',\n errorPath: '\"\"',\n MissingRefError: errorClasses.MissingRef,\n RULES: RULES,\n validate: validateGenerator,\n util: util,\n resolve: resolve,\n resolveRef: resolveRef,\n usePattern: usePattern,\n useDefault: useDefault,\n useCustomRule: useCustomRule,\n opts: opts,\n formats: formats,\n logger: self.logger,\n self: self\n });\n\n sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode)\n + vars(defaults, defaultCode) + vars(customRules, customRuleCode)\n + sourceCode;\n\n if (opts.processCode) sourceCode = opts.processCode(sourceCode, _schema);\n // console.log('\\n\\n\\n *** \\n', JSON.stringify(sourceCode));\n var validate;\n try {\n var makeValidate = new Function(\n 'self',\n 'RULES',\n 'formats',\n 'root',\n 'refVal',\n 'defaults',\n 'customRules',\n 'equal',\n 'ucs2length',\n 'ValidationError',\n sourceCode\n );\n\n validate = makeValidate(\n self,\n RULES,\n formats,\n root,\n refVal,\n defaults,\n customRules,\n equal,\n ucs2length,\n ValidationError\n );\n\n refVal[0] = validate;\n } catch(e) {\n self.logger.error('Error compiling schema, function code:', sourceCode);\n throw e;\n }\n\n validate.schema = _schema;\n validate.errors = null;\n validate.refs = refs;\n validate.refVal = refVal;\n validate.root = isRoot ? validate : _root;\n if ($async) validate.$async = true;\n if (opts.sourceCode === true) {\n validate.source = {\n code: sourceCode,\n patterns: patterns,\n defaults: defaults\n };\n }\n\n return validate;\n }\n\n function resolveRef(baseId, ref, isRoot) {\n ref = resolve.url(baseId, ref);\n var refIndex = refs[ref];\n var _refVal, refCode;\n if (refIndex !== undefined) {\n _refVal = refVal[refIndex];\n refCode = 'refVal[' + refIndex + ']';\n return resolvedRef(_refVal, refCode);\n }\n if (!isRoot && root.refs) {\n var rootRefId = root.refs[ref];\n if (rootRefId !== undefined) {\n _refVal = root.refVal[rootRefId];\n refCode = addLocalRef(ref, _refVal);\n return resolvedRef(_refVal, refCode);\n }\n }\n\n refCode = addLocalRef(ref);\n var v = resolve.call(self, localCompile, root, ref);\n if (v === undefined) {\n var localSchema = localRefs && localRefs[ref];\n if (localSchema) {\n v = resolve.inlineRef(localSchema, opts.inlineRefs)\n ? localSchema\n : compile.call(self, localSchema, root, localRefs, baseId);\n }\n }\n\n if (v === undefined) {\n removeLocalRef(ref);\n } else {\n replaceLocalRef(ref, v);\n return resolvedRef(v, refCode);\n }\n }\n\n function addLocalRef(ref, v) {\n var refId = refVal.length;\n refVal[refId] = v;\n refs[ref] = refId;\n return 'refVal' + refId;\n }\n\n function removeLocalRef(ref) {\n delete refs[ref];\n }\n\n function replaceLocalRef(ref, v) {\n var refId = refs[ref];\n refVal[refId] = v;\n }\n\n function resolvedRef(refVal, code) {\n return typeof refVal == 'object' || typeof refVal == 'boolean'\n ? { code: code, schema: refVal, inline: true }\n : { code: code, $async: refVal && !!refVal.$async };\n }\n\n function usePattern(regexStr) {\n var index = patternsHash[regexStr];\n if (index === undefined) {\n index = patternsHash[regexStr] = patterns.length;\n patterns[index] = regexStr;\n }\n return 'pattern' + index;\n }\n\n function useDefault(value) {\n switch (typeof value) {\n case 'boolean':\n case 'number':\n return '' + value;\n case 'string':\n return util.toQuotedString(value);\n case 'object':\n if (value === null) return 'null';\n var valueStr = stableStringify(value);\n var index = defaultsHash[valueStr];\n if (index === undefined) {\n index = defaultsHash[valueStr] = defaults.length;\n defaults[index] = value;\n }\n return 'default' + index;\n }\n }\n\n function useCustomRule(rule, schema, parentSchema, it) {\n if (self._opts.validateSchema !== false) {\n var deps = rule.definition.dependencies;\n if (deps && !deps.every(function(keyword) {\n return Object.prototype.hasOwnProperty.call(parentSchema, keyword);\n }))\n throw new Error('parent schema must have all required keywords: ' + deps.join(','));\n\n var validateSchema = rule.definition.validateSchema;\n if (validateSchema) {\n var valid = validateSchema(schema);\n if (!valid) {\n var message = 'keyword schema is invalid: ' + self.errorsText(validateSchema.errors);\n if (self._opts.validateSchema == 'log') self.logger.error(message);\n else throw new Error(message);\n }\n }\n }\n\n var compile = rule.definition.compile\n , inline = rule.definition.inline\n , macro = rule.definition.macro;\n\n var validate;\n if (compile) {\n validate = compile.call(self, schema, parentSchema, it);\n } else if (macro) {\n validate = macro.call(self, schema, parentSchema, it);\n if (opts.validateSchema !== false) self.validateSchema(validate, true);\n } else if (inline) {\n validate = inline.call(self, it, rule.keyword, schema, parentSchema);\n } else {\n validate = rule.definition.validate;\n if (!validate) return;\n }\n\n if (validate === undefined)\n throw new Error('custom keyword \"' + rule.keyword + '\"failed to compile');\n\n var index = customRules.length;\n customRules[index] = validate;\n\n return {\n code: 'customRule' + index,\n validate: validate\n };\n }\n}\n\n\n/**\n * Checks if the schema is currently compiled\n * @this Ajv\n * @param {Object} schema schema to compile\n * @param {Object} root root object\n * @param {String} baseId base schema ID\n * @return {Object} object with properties \"index\" (compilation index) and \"compiling\" (boolean)\n */\nfunction checkCompiling(schema, root, baseId) {\n /* jshint validthis: true */\n var index = compIndex.call(this, schema, root, baseId);\n if (index >= 0) return { index: index, compiling: true };\n index = this._compilations.length;\n this._compilations[index] = {\n schema: schema,\n root: root,\n baseId: baseId\n };\n return { index: index, compiling: false };\n}\n\n\n/**\n * Removes the schema from the currently compiled list\n * @this Ajv\n * @param {Object} schema schema to compile\n * @param {Object} root root object\n * @param {String} baseId base schema ID\n */\nfunction endCompiling(schema, root, baseId) {\n /* jshint validthis: true */\n var i = compIndex.call(this, schema, root, baseId);\n if (i >= 0) this._compilations.splice(i, 1);\n}\n\n\n/**\n * Index of schema compilation in the currently compiled list\n * @this Ajv\n * @param {Object} schema schema to compile\n * @param {Object} root root object\n * @param {String} baseId base schema ID\n * @return {Integer} compilation index\n */\nfunction compIndex(schema, root, baseId) {\n /* jshint validthis: true */\n for (var i=0; i [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n","'use strict';\n\nvar MissingRefError = require('./error_classes').MissingRef;\n\nmodule.exports = compileAsync;\n\n\n/**\n * Creates validating function for passed schema with asynchronous loading of missing schemas.\n * `loadSchema` option should be a function that accepts schema uri and returns promise that resolves with the schema.\n * @this Ajv\n * @param {Object} schema schema object\n * @param {Boolean} meta optional true to compile meta-schema; this parameter can be skipped\n * @param {Function} callback an optional node-style callback, it is called with 2 parameters: error (or null) and validating function.\n * @return {Promise} promise that resolves with a validating function.\n */\nfunction compileAsync(schema, meta, callback) {\n /* eslint no-shadow: 0 */\n /* global Promise */\n /* jshint validthis: true */\n var self = this;\n if (typeof this._opts.loadSchema != 'function')\n throw new Error('options.loadSchema should be a function');\n\n if (typeof meta == 'function') {\n callback = meta;\n meta = undefined;\n }\n\n var p = loadMetaSchemaOf(schema).then(function () {\n var schemaObj = self._addSchema(schema, undefined, meta);\n return schemaObj.validate || _compileAsync(schemaObj);\n });\n\n if (callback) {\n p.then(\n function(v) { callback(null, v); },\n callback\n );\n }\n\n return p;\n\n\n function loadMetaSchemaOf(sch) {\n var $schema = sch.$schema;\n return $schema && !self.getSchema($schema)\n ? compileAsync.call(self, { $ref: $schema }, true)\n : Promise.resolve();\n }\n\n\n function _compileAsync(schemaObj) {\n try { return self._compile(schemaObj); }\n catch(e) {\n if (e instanceof MissingRefError) return loadMissingSchema(e);\n throw e;\n }\n\n\n function loadMissingSchema(e) {\n var ref = e.missingSchema;\n if (added(ref)) throw new Error('Schema ' + ref + ' is loaded but ' + e.missingRef + ' cannot be resolved');\n\n var schemaPromise = self._loadingSchemas[ref];\n if (!schemaPromise) {\n schemaPromise = self._loadingSchemas[ref] = self._opts.loadSchema(ref);\n schemaPromise.then(removePromise, removePromise);\n }\n\n return schemaPromise.then(function (sch) {\n if (!added(ref)) {\n return loadMetaSchemaOf(sch).then(function () {\n if (!added(ref)) self.addSchema(sch, ref, undefined, meta);\n });\n }\n }).then(function() {\n return _compileAsync(schemaObj);\n });\n\n function removePromise() {\n delete self._loadingSchemas[ref];\n }\n\n function added(ref) {\n return self._refs[ref] || self._schemas[ref];\n }\n }\n }\n}\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n","'use strict';\n\nvar URI = require('uri-js')\n , equal = require('fast-deep-equal')\n , util = require('./util')\n , SchemaObject = require('./schema_obj')\n , traverse = require('json-schema-traverse');\n\nmodule.exports = resolve;\n\nresolve.normalizeId = normalizeId;\nresolve.fullPath = getFullPath;\nresolve.url = resolveUrl;\nresolve.ids = resolveIds;\nresolve.inlineRef = inlineRef;\nresolve.schema = resolveSchema;\n\n/**\n * [resolve and compile the references ($ref)]\n * @this Ajv\n * @param {Function} compile reference to schema compilation funciton (localCompile)\n * @param {Object} root object with information about the root schema for the current schema\n * @param {String} ref reference to resolve\n * @return {Object|Function} schema object (if the schema can be inlined) or validation function\n */\nfunction resolve(compile, root, ref) {\n /* jshint validthis: true */\n var refVal = this._refs[ref];\n if (typeof refVal == 'string') {\n if (this._refs[refVal]) refVal = this._refs[refVal];\n else return resolve.call(this, compile, root, refVal);\n }\n\n refVal = refVal || this._schemas[ref];\n if (refVal instanceof SchemaObject) {\n return inlineRef(refVal.schema, this._opts.inlineRefs)\n ? refVal.schema\n : refVal.validate || this._compile(refVal);\n }\n\n var res = resolveSchema.call(this, root, ref);\n var schema, v, baseId;\n if (res) {\n schema = res.schema;\n root = res.root;\n baseId = res.baseId;\n }\n\n if (schema instanceof SchemaObject) {\n v = schema.validate || compile.call(this, schema.schema, root, undefined, baseId);\n } else if (schema !== undefined) {\n v = inlineRef(schema, this._opts.inlineRefs)\n ? schema\n : compile.call(this, schema, root, undefined, baseId);\n }\n\n return v;\n}\n\n\n/**\n * Resolve schema, its root and baseId\n * @this Ajv\n * @param {Object} root root object with properties schema, refVal, refs\n * @param {String} ref reference to resolve\n * @return {Object} object with properties schema, root, baseId\n */\nfunction resolveSchema(root, ref) {\n /* jshint validthis: true */\n var p = URI.parse(ref)\n , refPath = _getFullPath(p)\n , baseId = getFullPath(this._getId(root.schema));\n if (Object.keys(root.schema).length === 0 || refPath !== baseId) {\n var id = normalizeId(refPath);\n var refVal = this._refs[id];\n if (typeof refVal == 'string') {\n return resolveRecursive.call(this, root, refVal, p);\n } else if (refVal instanceof SchemaObject) {\n if (!refVal.validate) this._compile(refVal);\n root = refVal;\n } else {\n refVal = this._schemas[id];\n if (refVal instanceof SchemaObject) {\n if (!refVal.validate) this._compile(refVal);\n if (id == normalizeId(ref))\n return { schema: refVal, root: root, baseId: baseId };\n root = refVal;\n } else {\n return;\n }\n }\n if (!root.schema) return;\n baseId = getFullPath(this._getId(root.schema));\n }\n return getJsonPointer.call(this, p, baseId, root.schema, root);\n}\n\n\n/* @this Ajv */\nfunction resolveRecursive(root, ref, parsedRef) {\n /* jshint validthis: true */\n var res = resolveSchema.call(this, root, ref);\n if (res) {\n var schema = res.schema;\n var baseId = res.baseId;\n root = res.root;\n var id = this._getId(schema);\n if (id) baseId = resolveUrl(baseId, id);\n return getJsonPointer.call(this, parsedRef, baseId, schema, root);\n }\n}\n\n\nvar PREVENT_SCOPE_CHANGE = util.toHash(['properties', 'patternProperties', 'enum', 'dependencies', 'definitions']);\n/* @this Ajv */\nfunction getJsonPointer(parsedRef, baseId, schema, root) {\n /* jshint validthis: true */\n parsedRef.fragment = parsedRef.fragment || '';\n if (parsedRef.fragment.slice(0,1) != '/') return;\n var parts = parsedRef.fragment.split('/');\n\n for (var i = 1; i < parts.length; i++) {\n var part = parts[i];\n if (part) {\n part = util.unescapeFragment(part);\n schema = schema[part];\n if (schema === undefined) break;\n var id;\n if (!PREVENT_SCOPE_CHANGE[part]) {\n id = this._getId(schema);\n if (id) baseId = resolveUrl(baseId, id);\n if (schema.$ref) {\n var $ref = resolveUrl(baseId, schema.$ref);\n var res = resolveSchema.call(this, root, $ref);\n if (res) {\n schema = res.schema;\n root = res.root;\n baseId = res.baseId;\n }\n }\n }\n }\n }\n if (schema !== undefined && schema !== root.schema)\n return { schema: schema, root: root, baseId: baseId };\n}\n\n\nvar SIMPLE_INLINED = util.toHash([\n 'type', 'format', 'pattern',\n 'maxLength', 'minLength',\n 'maxProperties', 'minProperties',\n 'maxItems', 'minItems',\n 'maximum', 'minimum',\n 'uniqueItems', 'multipleOf',\n 'required', 'enum'\n]);\nfunction inlineRef(schema, limit) {\n if (limit === false) return false;\n if (limit === undefined || limit === true) return checkNoRef(schema);\n else if (limit) return countKeys(schema) <= limit;\n}\n\n\nfunction checkNoRef(schema) {\n var item;\n if (Array.isArray(schema)) {\n for (var i=0; i true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var baseIsEqual = require('./_baseIsEqual'),\n get = require('./get'),\n hasIn = require('./hasIn'),\n isKey = require('./_isKey'),\n isStrictComparable = require('./_isStrictComparable'),\n matchesStrictComparable = require('./_matchesStrictComparable'),\n toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nmodule.exports = baseMatchesProperty;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","'use strict';\nmodule.exports = function generate_pattern(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n var $regexp = $isData ? '(new RegExp(' + $schemaValue + '))' : it.usePattern($schema);\n out += 'if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'string\\') || ';\n }\n out += ' !' + ($regexp) + '.test(' + ($data) + ') ) { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('pattern') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { pattern: ';\n if ($isData) {\n out += '' + ($schemaValue);\n } else {\n out += '' + (it.util.toQuotedString($schema));\n }\n out += ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should match pattern \"';\n if ($isData) {\n out += '\\' + ' + ($schemaValue) + ' + \\'';\n } else {\n out += '' + (it.util.escapeQuotes($schema));\n }\n out += '\"\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + (it.util.toQuotedString($schema));\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += '} ';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","'use strict';\n\nvar Type = require('../../type');\n\nfunction resolveJavascriptUndefined() {\n return true;\n}\n\nfunction constructJavascriptUndefined() {\n /*eslint-disable no-undefined*/\n return undefined;\n}\n\nfunction representJavascriptUndefined() {\n return '';\n}\n\nfunction isUndefined(object) {\n return typeof object === 'undefined';\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:js/undefined', {\n kind: 'scalar',\n resolve: resolveJavascriptUndefined,\n construct: constructJavascriptUndefined,\n predicate: isUndefined,\n represent: representJavascriptUndefined\n});\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n","'use strict';\n\n\nvar loader = require('./js-yaml/loader');\nvar dumper = require('./js-yaml/dumper');\n\n\nfunction deprecated(name) {\n return function () {\n throw new Error('Function ' + name + ' is deprecated and cannot be used.');\n };\n}\n\n\nmodule.exports.Type = require('./js-yaml/type');\nmodule.exports.Schema = require('./js-yaml/schema');\nmodule.exports.FAILSAFE_SCHEMA = require('./js-yaml/schema/failsafe');\nmodule.exports.JSON_SCHEMA = require('./js-yaml/schema/json');\nmodule.exports.CORE_SCHEMA = require('./js-yaml/schema/core');\nmodule.exports.DEFAULT_SAFE_SCHEMA = require('./js-yaml/schema/default_safe');\nmodule.exports.DEFAULT_FULL_SCHEMA = require('./js-yaml/schema/default_full');\nmodule.exports.load = loader.load;\nmodule.exports.loadAll = loader.loadAll;\nmodule.exports.safeLoad = loader.safeLoad;\nmodule.exports.safeLoadAll = loader.safeLoadAll;\nmodule.exports.dump = dumper.dump;\nmodule.exports.safeDump = dumper.safeDump;\nmodule.exports.YAMLException = require('./js-yaml/exception');\n\n// Deprecated schema names from JS-YAML 2.0.x\nmodule.exports.MINIMAL_SCHEMA = require('./js-yaml/schema/failsafe');\nmodule.exports.SAFE_SCHEMA = require('./js-yaml/schema/default_safe');\nmodule.exports.DEFAULT_SCHEMA = require('./js-yaml/schema/default_full');\n\n// Deprecated functions from JS-YAML 1.x.x\nmodule.exports.scan = deprecated('scan');\nmodule.exports.parse = deprecated('parse');\nmodule.exports.compose = deprecated('compose');\nmodule.exports.addConstructor = deprecated('addConstructor');\n","'use strict';\n\n\nvar yaml = require('./lib/js-yaml.js');\n\n\nmodule.exports = yaml;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","'use strict';\nmodule.exports = function generate_properties(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $key = 'key' + $lvl,\n $idx = 'idx' + $lvl,\n $dataNxt = $it.dataLevel = it.dataLevel + 1,\n $nextData = 'data' + $dataNxt,\n $dataProperties = 'dataProperties' + $lvl;\n var $schemaKeys = Object.keys($schema || {}).filter(notProto),\n $pProperties = it.schema.patternProperties || {},\n $pPropertyKeys = Object.keys($pProperties).filter(notProto),\n $aProperties = it.schema.additionalProperties,\n $someProperties = $schemaKeys.length || $pPropertyKeys.length,\n $noAdditional = $aProperties === false,\n $additionalIsSchema = typeof $aProperties == 'object' && Object.keys($aProperties).length,\n $removeAdditional = it.opts.removeAdditional,\n $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional,\n $ownProperties = it.opts.ownProperties,\n $currentBaseId = it.baseId;\n var $required = it.schema.required;\n if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) {\n var $requiredHash = it.util.toHash($required);\n }\n\n function notProto(p) {\n return p !== '__proto__';\n }\n out += 'var ' + ($errs) + ' = errors;var ' + ($nextValid) + ' = true;';\n if ($ownProperties) {\n out += ' var ' + ($dataProperties) + ' = undefined;';\n }\n if ($checkAdditional) {\n if ($ownProperties) {\n out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; ';\n } else {\n out += ' for (var ' + ($key) + ' in ' + ($data) + ') { ';\n }\n if ($someProperties) {\n out += ' var isAdditional' + ($lvl) + ' = !(false ';\n if ($schemaKeys.length) {\n if ($schemaKeys.length > 8) {\n out += ' || validate.schema' + ($schemaPath) + '.hasOwnProperty(' + ($key) + ') ';\n } else {\n var arr1 = $schemaKeys;\n if (arr1) {\n var $propertyKey, i1 = -1,\n l1 = arr1.length - 1;\n while (i1 < l1) {\n $propertyKey = arr1[i1 += 1];\n out += ' || ' + ($key) + ' == ' + (it.util.toQuotedString($propertyKey)) + ' ';\n }\n }\n }\n }\n if ($pPropertyKeys.length) {\n var arr2 = $pPropertyKeys;\n if (arr2) {\n var $pProperty, $i = -1,\n l2 = arr2.length - 1;\n while ($i < l2) {\n $pProperty = arr2[$i += 1];\n out += ' || ' + (it.usePattern($pProperty)) + '.test(' + ($key) + ') ';\n }\n }\n }\n out += ' ); if (isAdditional' + ($lvl) + ') { ';\n }\n if ($removeAdditional == 'all') {\n out += ' delete ' + ($data) + '[' + ($key) + ']; ';\n } else {\n var $currentErrorPath = it.errorPath;\n var $additionalProperty = '\\' + ' + $key + ' + \\'';\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);\n }\n if ($noAdditional) {\n if ($removeAdditional) {\n out += ' delete ' + ($data) + '[' + ($key) + ']; ';\n } else {\n out += ' ' + ($nextValid) + ' = false; ';\n var $currErrSchemaPath = $errSchemaPath;\n $errSchemaPath = it.errSchemaPath + '/additionalProperties';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('additionalProperties') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { additionalProperty: \\'' + ($additionalProperty) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'';\n if (it.opts._errorDataPathProperty) {\n out += 'is an invalid additional property';\n } else {\n out += 'should NOT have additional properties';\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n $errSchemaPath = $currErrSchemaPath;\n if ($breakOnError) {\n out += ' break; ';\n }\n }\n } else if ($additionalIsSchema) {\n if ($removeAdditional == 'failing') {\n out += ' var ' + ($errs) + ' = errors; ';\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n $it.schema = $aProperties;\n $it.schemaPath = it.schemaPath + '.additionalProperties';\n $it.errSchemaPath = it.errSchemaPath + '/additionalProperties';\n $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);\n var $passData = $data + '[' + $key + ']';\n $it.dataPathArr[$dataNxt] = $key;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n out += ' if (!' + ($nextValid) + ') { errors = ' + ($errs) + '; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ' + ($data) + '[' + ($key) + ']; } ';\n it.compositeRule = $it.compositeRule = $wasComposite;\n } else {\n $it.schema = $aProperties;\n $it.schemaPath = it.schemaPath + '.additionalProperties';\n $it.errSchemaPath = it.errSchemaPath + '/additionalProperties';\n $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);\n var $passData = $data + '[' + $key + ']';\n $it.dataPathArr[$dataNxt] = $key;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n if ($breakOnError) {\n out += ' if (!' + ($nextValid) + ') break; ';\n }\n }\n }\n it.errorPath = $currentErrorPath;\n }\n if ($someProperties) {\n out += ' } ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n $closingBraces += '}';\n }\n }\n var $useDefaults = it.opts.useDefaults && !it.compositeRule;\n if ($schemaKeys.length) {\n var arr3 = $schemaKeys;\n if (arr3) {\n var $propertyKey, i3 = -1,\n l3 = arr3.length - 1;\n while (i3 < l3) {\n $propertyKey = arr3[i3 += 1];\n var $sch = $schema[$propertyKey];\n if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {\n var $prop = it.util.getProperty($propertyKey),\n $passData = $data + $prop,\n $hasDefault = $useDefaults && $sch.default !== undefined;\n $it.schema = $sch;\n $it.schemaPath = $schemaPath + $prop;\n $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($propertyKey);\n $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers);\n $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey);\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n $code = it.util.varReplace($code, $nextData, $passData);\n var $useData = $passData;\n } else {\n var $useData = $nextData;\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ';\n }\n if ($hasDefault) {\n out += ' ' + ($code) + ' ';\n } else {\n if ($requiredHash && $requiredHash[$propertyKey]) {\n out += ' if ( ' + ($useData) + ' === undefined ';\n if ($ownProperties) {\n out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($propertyKey)) + '\\') ';\n }\n out += ') { ' + ($nextValid) + ' = false; ';\n var $currentErrorPath = it.errorPath,\n $currErrSchemaPath = $errSchemaPath,\n $missingProperty = it.util.escapeQuotes($propertyKey);\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);\n }\n $errSchemaPath = it.errSchemaPath + '/required';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'';\n if (it.opts._errorDataPathProperty) {\n out += 'is a required property';\n } else {\n out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n $errSchemaPath = $currErrSchemaPath;\n it.errorPath = $currentErrorPath;\n out += ' } else { ';\n } else {\n if ($breakOnError) {\n out += ' if ( ' + ($useData) + ' === undefined ';\n if ($ownProperties) {\n out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($propertyKey)) + '\\') ';\n }\n out += ') { ' + ($nextValid) + ' = true; } else { ';\n } else {\n out += ' if (' + ($useData) + ' !== undefined ';\n if ($ownProperties) {\n out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($propertyKey)) + '\\') ';\n }\n out += ' ) { ';\n }\n }\n out += ' ' + ($code) + ' } ';\n }\n }\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n $closingBraces += '}';\n }\n }\n }\n }\n if ($pPropertyKeys.length) {\n var arr4 = $pPropertyKeys;\n if (arr4) {\n var $pProperty, i4 = -1,\n l4 = arr4.length - 1;\n while (i4 < l4) {\n $pProperty = arr4[i4 += 1];\n var $sch = $pProperties[$pProperty];\n if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {\n $it.schema = $sch;\n $it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty);\n $it.errSchemaPath = it.errSchemaPath + '/patternProperties/' + it.util.escapeFragment($pProperty);\n if ($ownProperties) {\n out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; ';\n } else {\n out += ' for (var ' + ($key) + ' in ' + ($data) + ') { ';\n }\n out += ' if (' + (it.usePattern($pProperty)) + '.test(' + ($key) + ')) { ';\n $it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);\n var $passData = $data + '[' + $key + ']';\n $it.dataPathArr[$dataNxt] = $key;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n if ($breakOnError) {\n out += ' if (!' + ($nextValid) + ') break; ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' else ' + ($nextValid) + ' = true; ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n $closingBraces += '}';\n }\n }\n }\n }\n }\n if ($breakOnError) {\n out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';\n }\n return out;\n}\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","'use strict';\n\nvar compileSchema = require('./compile')\n , resolve = require('./compile/resolve')\n , Cache = require('./cache')\n , SchemaObject = require('./compile/schema_obj')\n , stableStringify = require('fast-json-stable-stringify')\n , formats = require('./compile/formats')\n , rules = require('./compile/rules')\n , $dataMetaSchema = require('./data')\n , util = require('./compile/util');\n\nmodule.exports = Ajv;\n\nAjv.prototype.validate = validate;\nAjv.prototype.compile = compile;\nAjv.prototype.addSchema = addSchema;\nAjv.prototype.addMetaSchema = addMetaSchema;\nAjv.prototype.validateSchema = validateSchema;\nAjv.prototype.getSchema = getSchema;\nAjv.prototype.removeSchema = removeSchema;\nAjv.prototype.addFormat = addFormat;\nAjv.prototype.errorsText = errorsText;\n\nAjv.prototype._addSchema = _addSchema;\nAjv.prototype._compile = _compile;\n\nAjv.prototype.compileAsync = require('./compile/async');\nvar customKeyword = require('./keyword');\nAjv.prototype.addKeyword = customKeyword.add;\nAjv.prototype.getKeyword = customKeyword.get;\nAjv.prototype.removeKeyword = customKeyword.remove;\nAjv.prototype.validateKeyword = customKeyword.validate;\n\nvar errorClasses = require('./compile/error_classes');\nAjv.ValidationError = errorClasses.Validation;\nAjv.MissingRefError = errorClasses.MissingRef;\nAjv.$dataMetaSchema = $dataMetaSchema;\n\nvar META_SCHEMA_ID = 'http://json-schema.org/draft-07/schema';\n\nvar META_IGNORE_OPTIONS = [ 'removeAdditional', 'useDefaults', 'coerceTypes', 'strictDefaults' ];\nvar META_SUPPORT_DATA = ['/properties'];\n\n/**\n * Creates validator instance.\n * Usage: `Ajv(opts)`\n * @param {Object} opts optional options\n * @return {Object} ajv instance\n */\nfunction Ajv(opts) {\n if (!(this instanceof Ajv)) return new Ajv(opts);\n opts = this._opts = util.copy(opts) || {};\n setLogger(this);\n this._schemas = {};\n this._refs = {};\n this._fragments = {};\n this._formats = formats(opts.format);\n\n this._cache = opts.cache || new Cache;\n this._loadingSchemas = {};\n this._compilations = [];\n this.RULES = rules();\n this._getId = chooseGetId(opts);\n\n opts.loopRequired = opts.loopRequired || Infinity;\n if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true;\n if (opts.serialize === undefined) opts.serialize = stableStringify;\n this._metaOpts = getMetaSchemaOptions(this);\n\n if (opts.formats) addInitialFormats(this);\n if (opts.keywords) addInitialKeywords(this);\n addDefaultMetaSchema(this);\n if (typeof opts.meta == 'object') this.addMetaSchema(opts.meta);\n if (opts.nullable) this.addKeyword('nullable', {metaSchema: {type: 'boolean'}});\n addInitialSchemas(this);\n}\n\n\n\n/**\n * Validate data using schema\n * Schema will be compiled and cached (using serialized JSON as key. [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used to serialize.\n * @this Ajv\n * @param {String|Object} schemaKeyRef key, ref or schema object\n * @param {Any} data to be validated\n * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`).\n */\nfunction validate(schemaKeyRef, data) {\n var v;\n if (typeof schemaKeyRef == 'string') {\n v = this.getSchema(schemaKeyRef);\n if (!v) throw new Error('no schema with key or ref \"' + schemaKeyRef + '\"');\n } else {\n var schemaObj = this._addSchema(schemaKeyRef);\n v = schemaObj.validate || this._compile(schemaObj);\n }\n\n var valid = v(data);\n if (v.$async !== true) this.errors = v.errors;\n return valid;\n}\n\n\n/**\n * Create validating function for passed schema.\n * @this Ajv\n * @param {Object} schema schema object\n * @param {Boolean} _meta true if schema is a meta-schema. Used internally to compile meta schemas of custom keywords.\n * @return {Function} validating function\n */\nfunction compile(schema, _meta) {\n var schemaObj = this._addSchema(schema, undefined, _meta);\n return schemaObj.validate || this._compile(schemaObj);\n}\n\n\n/**\n * Adds schema to the instance.\n * @this Ajv\n * @param {Object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored.\n * @param {String} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.\n * @param {Boolean} _skipValidation true to skip schema validation. Used internally, option validateSchema should be used instead.\n * @param {Boolean} _meta true if schema is a meta-schema. Used internally, addMetaSchema should be used instead.\n * @return {Ajv} this for method chaining\n */\nfunction addSchema(schema, key, _skipValidation, _meta) {\n if (Array.isArray(schema)){\n for (var i=0; i} errors optional array of validation errors, if not passed errors from the instance are used.\n * @param {Object} options optional options with properties `separator` and `dataVar`.\n * @return {String} human readable string with all errors descriptions\n */\nfunction errorsText(errors, options) {\n errors = errors || this.errors;\n if (!errors) return 'No errors';\n options = options || {};\n var separator = options.separator === undefined ? ', ' : options.separator;\n var dataVar = options.dataVar === undefined ? 'data' : options.dataVar;\n\n var text = '';\n for (var i=0; i [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","// JS-YAML's default schema for `safeLoad` function.\n// It is not described in the YAML specification.\n//\n// This schema is based on standard YAML's Core schema and includes most of\n// extra types described at YAML tag repository. (http://yaml.org/type/)\n\n\n'use strict';\n\n\nvar Schema = require('../schema');\n\n\nmodule.exports = new Schema({\n include: [\n require('./core')\n ],\n implicit: [\n require('../type/timestamp'),\n require('../type/merge')\n ],\n explicit: [\n require('../type/binary'),\n require('../type/omap'),\n require('../type/pairs'),\n require('../type/set')\n ]\n});\n","var arrayPush = require('./_arrayPush'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n","var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n","'use strict';\n\nvar common = require('../common');\nvar Type = require('../type');\n\nfunction isHexCode(c) {\n return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||\n ((0x41/* A */ <= c) && (c <= 0x46/* F */)) ||\n ((0x61/* a */ <= c) && (c <= 0x66/* f */));\n}\n\nfunction isOctCode(c) {\n return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */));\n}\n\nfunction isDecCode(c) {\n return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */));\n}\n\nfunction resolveYamlInteger(data) {\n if (data === null) return false;\n\n var max = data.length,\n index = 0,\n hasDigits = false,\n ch;\n\n if (!max) return false;\n\n ch = data[index];\n\n // sign\n if (ch === '-' || ch === '+') {\n ch = data[++index];\n }\n\n if (ch === '0') {\n // 0\n if (index + 1 === max) return true;\n ch = data[++index];\n\n // base 2, base 8, base 16\n\n if (ch === 'b') {\n // base 2\n index++;\n\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') continue;\n if (ch !== '0' && ch !== '1') return false;\n hasDigits = true;\n }\n return hasDigits && ch !== '_';\n }\n\n\n if (ch === 'x') {\n // base 16\n index++;\n\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') continue;\n if (!isHexCode(data.charCodeAt(index))) return false;\n hasDigits = true;\n }\n return hasDigits && ch !== '_';\n }\n\n // base 8\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') continue;\n if (!isOctCode(data.charCodeAt(index))) return false;\n hasDigits = true;\n }\n return hasDigits && ch !== '_';\n }\n\n // base 10 (except 0) or base 60\n\n // value should not start with `_`;\n if (ch === '_') return false;\n\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') continue;\n if (ch === ':') break;\n if (!isDecCode(data.charCodeAt(index))) {\n return false;\n }\n hasDigits = true;\n }\n\n // Should have digits and should not end with `_`\n if (!hasDigits || ch === '_') return false;\n\n // if !base60 - done;\n if (ch !== ':') return true;\n\n // base60 almost not used, no needs to optimize\n return /^(:[0-5]?[0-9])+$/.test(data.slice(index));\n}\n\nfunction constructYamlInteger(data) {\n var value = data, sign = 1, ch, base, digits = [];\n\n if (value.indexOf('_') !== -1) {\n value = value.replace(/_/g, '');\n }\n\n ch = value[0];\n\n if (ch === '-' || ch === '+') {\n if (ch === '-') sign = -1;\n value = value.slice(1);\n ch = value[0];\n }\n\n if (value === '0') return 0;\n\n if (ch === '0') {\n if (value[1] === 'b') return sign * parseInt(value.slice(2), 2);\n if (value[1] === 'x') return sign * parseInt(value, 16);\n return sign * parseInt(value, 8);\n }\n\n if (value.indexOf(':') !== -1) {\n value.split(':').forEach(function (v) {\n digits.unshift(parseInt(v, 10));\n });\n\n value = 0;\n base = 1;\n\n digits.forEach(function (d) {\n value += (d * base);\n base *= 60;\n });\n\n return sign * value;\n\n }\n\n return sign * parseInt(value, 10);\n}\n\nfunction isInteger(object) {\n return (Object.prototype.toString.call(object)) === '[object Number]' &&\n (object % 1 === 0 && !common.isNegativeZero(object));\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:int', {\n kind: 'scalar',\n resolve: resolveYamlInteger,\n construct: constructYamlInteger,\n predicate: isInteger,\n represent: {\n binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); },\n octal: function (obj) { return obj >= 0 ? '0' + obj.toString(8) : '-0' + obj.toString(8).slice(1); },\n decimal: function (obj) { return obj.toString(10); },\n /* eslint-disable max-len */\n hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); }\n },\n defaultStyle: 'decimal',\n styleAliases: {\n binary: [ 2, 'bin' ],\n octal: [ 8, 'oct' ],\n decimal: [ 10, 'dec' ],\n hexadecimal: [ 16, 'hex' ]\n }\n});\n","'use strict';\nmodule.exports = function generate_contains(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $idx = 'i' + $lvl,\n $dataNxt = $it.dataLevel = it.dataLevel + 1,\n $nextData = 'data' + $dataNxt,\n $currentBaseId = it.baseId,\n $nonEmptySchema = (it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all));\n out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';\n if ($nonEmptySchema) {\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n $it.schema = $schema;\n $it.schemaPath = $schemaPath;\n $it.errSchemaPath = $errSchemaPath;\n out += ' var ' + ($nextValid) + ' = false; for (var ' + ($idx) + ' = 0; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';\n $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);\n var $passData = $data + '[' + $idx + ']';\n $it.dataPathArr[$dataNxt] = $idx;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n out += ' if (' + ($nextValid) + ') break; } ';\n it.compositeRule = $it.compositeRule = $wasComposite;\n out += ' ' + ($closingBraces) + ' if (!' + ($nextValid) + ') {';\n } else {\n out += ' if (' + ($data) + '.length == 0) {';\n }\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('contains') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should contain a valid item\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } else { ';\n if ($nonEmptySchema) {\n out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';\n }\n if (it.opts.allErrors) {\n out += ' } ';\n }\n return out;\n}\n","'use strict';\n\nvar YAMLException = require('./exception');\n\nvar TYPE_CONSTRUCTOR_OPTIONS = [\n 'kind',\n 'resolve',\n 'construct',\n 'instanceOf',\n 'predicate',\n 'represent',\n 'defaultStyle',\n 'styleAliases'\n];\n\nvar YAML_NODE_KINDS = [\n 'scalar',\n 'sequence',\n 'mapping'\n];\n\nfunction compileStyleAliases(map) {\n var result = {};\n\n if (map !== null) {\n Object.keys(map).forEach(function (style) {\n map[style].forEach(function (alias) {\n result[String(alias)] = style;\n });\n });\n }\n\n return result;\n}\n\nfunction Type(tag, options) {\n options = options || {};\n\n Object.keys(options).forEach(function (name) {\n if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {\n throw new YAMLException('Unknown option \"' + name + '\" is met in definition of \"' + tag + '\" YAML type.');\n }\n });\n\n // TODO: Add tag format check.\n this.tag = tag;\n this.kind = options['kind'] || null;\n this.resolve = options['resolve'] || function () { return true; };\n this.construct = options['construct'] || function (data) { return data; };\n this.instanceOf = options['instanceOf'] || null;\n this.predicate = options['predicate'] || null;\n this.represent = options['represent'] || null;\n this.defaultStyle = options['defaultStyle'] || null;\n this.styleAliases = compileStyleAliases(options['styleAliases'] || null);\n\n if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {\n throw new YAMLException('Unknown kind \"' + this.kind + '\" is specified for \"' + tag + '\" YAML type.');\n }\n}\n\nmodule.exports = Type;\n","'use strict';\n\nmodule.exports = function (data, opts) {\n if (!opts) opts = {};\n if (typeof opts === 'function') opts = { cmp: opts };\n var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false;\n\n var cmp = opts.cmp && (function (f) {\n return function (node) {\n return function (a, b) {\n var aobj = { key: a, value: node[a] };\n var bobj = { key: b, value: node[b] };\n return f(aobj, bobj);\n };\n };\n })(opts.cmp);\n\n var seen = [];\n return (function stringify (node) {\n if (node && node.toJSON && typeof node.toJSON === 'function') {\n node = node.toJSON();\n }\n\n if (node === undefined) return;\n if (typeof node == 'number') return isFinite(node) ? '' + node : 'null';\n if (typeof node !== 'object') return JSON.stringify(node);\n\n var i, out;\n if (Array.isArray(node)) {\n out = '[';\n for (i = 0; i < node.length; i++) {\n if (i) out += ',';\n out += stringify(node[i]) || 'null';\n }\n return out + ']';\n }\n\n if (node === null) return 'null';\n\n if (seen.indexOf(node) !== -1) {\n if (cycles) return JSON.stringify('__cycle__');\n throw new TypeError('Converting circular structure to JSON');\n }\n\n var seenIndex = seen.push(node) - 1;\n var keys = Object.keys(node).sort(cmp && cmp(node));\n out = '';\n for (i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = stringify(node[key]);\n\n if (!value) continue;\n if (out) out += ',';\n out += JSON.stringify(key) + ':' + value;\n }\n seen.splice(seenIndex, 1);\n return '{' + out + '}';\n })(data);\n};\n","'use strict';\nmodule.exports = function generate_custom(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $errorKeyword;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $errs = 'errs__' + $lvl;\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n var $rule = this,\n $definition = 'definition' + $lvl,\n $rDef = $rule.definition,\n $closingBraces = '';\n var $compile, $inline, $macro, $ruleValidate, $validateCode;\n if ($isData && $rDef.$data) {\n $validateCode = 'keywordValidate' + $lvl;\n var $validateSchema = $rDef.validateSchema;\n out += ' var ' + ($definition) + ' = RULES.custom[\\'' + ($keyword) + '\\'].definition; var ' + ($validateCode) + ' = ' + ($definition) + '.validate;';\n } else {\n $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it);\n if (!$ruleValidate) return;\n $schemaValue = 'validate.schema' + $schemaPath;\n $validateCode = $ruleValidate.code;\n $compile = $rDef.compile;\n $inline = $rDef.inline;\n $macro = $rDef.macro;\n }\n var $ruleErrs = $validateCode + '.errors',\n $i = 'i' + $lvl,\n $ruleErr = 'ruleErr' + $lvl,\n $asyncKeyword = $rDef.async;\n if ($asyncKeyword && !it.async) throw new Error('async keyword in sync schema');\n if (!($inline || $macro)) {\n out += '' + ($ruleErrs) + ' = null;';\n }\n out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';\n if ($isData && $rDef.$data) {\n $closingBraces += '}';\n out += ' if (' + ($schemaValue) + ' === undefined) { ' + ($valid) + ' = true; } else { ';\n if ($validateSchema) {\n $closingBraces += '}';\n out += ' ' + ($valid) + ' = ' + ($definition) + '.validateSchema(' + ($schemaValue) + '); if (' + ($valid) + ') { ';\n }\n }\n if ($inline) {\n if ($rDef.statements) {\n out += ' ' + ($ruleValidate.validate) + ' ';\n } else {\n out += ' ' + ($valid) + ' = ' + ($ruleValidate.validate) + '; ';\n }\n } else if ($macro) {\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n $it.schema = $ruleValidate.validate;\n $it.schemaPath = '';\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n var $code = it.validate($it).replace(/validate\\.schema/g, $validateCode);\n it.compositeRule = $it.compositeRule = $wasComposite;\n out += ' ' + ($code);\n } else {\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = '';\n out += ' ' + ($validateCode) + '.call( ';\n if (it.opts.passContext) {\n out += 'this';\n } else {\n out += 'self';\n }\n if ($compile || $rDef.schema === false) {\n out += ' , ' + ($data) + ' ';\n } else {\n out += ' , ' + ($schemaValue) + ' , ' + ($data) + ' , validate.schema' + (it.schemaPath) + ' ';\n }\n out += ' , (dataPath || \\'\\')';\n if (it.errorPath != '\"\"') {\n out += ' + ' + (it.errorPath);\n }\n var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',\n $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';\n out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ' , rootData ) ';\n var def_callRuleValidate = out;\n out = $$outStack.pop();\n if ($rDef.errors === false) {\n out += ' ' + ($valid) + ' = ';\n if ($asyncKeyword) {\n out += 'await ';\n }\n out += '' + (def_callRuleValidate) + '; ';\n } else {\n if ($asyncKeyword) {\n $ruleErrs = 'customErrors' + $lvl;\n out += ' var ' + ($ruleErrs) + ' = null; try { ' + ($valid) + ' = await ' + (def_callRuleValidate) + '; } catch (e) { ' + ($valid) + ' = false; if (e instanceof ValidationError) ' + ($ruleErrs) + ' = e.errors; else throw e; } ';\n } else {\n out += ' ' + ($ruleErrs) + ' = null; ' + ($valid) + ' = ' + (def_callRuleValidate) + '; ';\n }\n }\n }\n if ($rDef.modifying) {\n out += ' if (' + ($parentData) + ') ' + ($data) + ' = ' + ($parentData) + '[' + ($parentDataProperty) + '];';\n }\n out += '' + ($closingBraces);\n if ($rDef.valid) {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n } else {\n out += ' if ( ';\n if ($rDef.valid === undefined) {\n out += ' !';\n if ($macro) {\n out += '' + ($nextValid);\n } else {\n out += '' + ($valid);\n }\n } else {\n out += ' ' + (!$rDef.valid) + ' ';\n }\n out += ') { ';\n $errorKeyword = $rule.keyword;\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = '';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || 'custom') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \\'' + ($rule.keyword) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should pass \"' + ($rule.keyword) + '\" keyword validation\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n var def_customError = out;\n out = $$outStack.pop();\n if ($inline) {\n if ($rDef.errors) {\n if ($rDef.errors != 'full') {\n out += ' for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + ' {\n const { mkdir, stat } = promises;\n\n if (path == \".\") {\n return true;\n }\n\n const targetPath = pathResolve(baseDir, path);\n try {\n const result = await stat(targetPath);\n if (!result.isDirectory()) {\n throw new Error(`not a directory: ${path}`);\n }\n } catch (e) {\n if (e.code != \"ENOENT\") {\n throw e;\n }\n await mkdir(targetPath, { recursive: true });\n }\n return true;\n}\n\nexport async function writeFile(\n baseDir: string,\n path: string,\n content: string\n): Promise {\n const { writeFile } = promises;\n const absolutePath = pathResolve(baseDir, path);\n const relativeDir = dirname(path);\n await makeDir(baseDir, relativeDir);\n await writeFile(absolutePath, content);\n return true;\n}\n","var Stack = require('./_Stack'),\n equalArrays = require('./_equalArrays'),\n equalByTag = require('./_equalByTag'),\n equalObjects = require('./_equalObjects'),\n getTag = require('./_getTag'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isTypedArray = require('./isTypedArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nmodule.exports = baseIsEqualDeep;\n","'use strict';\nmodule.exports = function generate_uniqueItems(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n if (($schema || $isData) && it.opts.uniqueItems !== false) {\n if ($isData) {\n out += ' var ' + ($valid) + '; if (' + ($schemaValue) + ' === false || ' + ($schemaValue) + ' === undefined) ' + ($valid) + ' = true; else if (typeof ' + ($schemaValue) + ' != \\'boolean\\') ' + ($valid) + ' = false; else { ';\n }\n out += ' var i = ' + ($data) + '.length , ' + ($valid) + ' = true , j; if (i > 1) { ';\n var $itemType = it.schema.items && it.schema.items.type,\n $typeIsArray = Array.isArray($itemType);\n if (!$itemType || $itemType == 'object' || $itemType == 'array' || ($typeIsArray && ($itemType.indexOf('object') >= 0 || $itemType.indexOf('array') >= 0))) {\n out += ' outer: for (;i--;) { for (j = i; j--;) { if (equal(' + ($data) + '[i], ' + ($data) + '[j])) { ' + ($valid) + ' = false; break outer; } } } ';\n } else {\n out += ' var itemIndices = {}, item; for (;i--;) { var item = ' + ($data) + '[i]; ';\n var $method = 'checkDataType' + ($typeIsArray ? 's' : '');\n out += ' if (' + (it.util[$method]($itemType, 'item', it.opts.strictNumbers, true)) + ') continue; ';\n if ($typeIsArray) {\n out += ' if (typeof item == \\'string\\') item = \\'\"\\' + item; ';\n }\n out += ' if (typeof itemIndices[item] == \\'number\\') { ' + ($valid) + ' = false; j = itemIndices[item]; break; } itemIndices[item] = i; } ';\n }\n out += ' } ';\n if ($isData) {\n out += ' } ';\n }\n out += ' if (!' + ($valid) + ') { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('uniqueItems') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { i: i, j: j } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should NOT have duplicate items (items ## \\' + j + \\' and \\' + i + \\' are identical)\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + ($schema);\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' else { ';\n }\n } else {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n }\n return out;\n}\n","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'loaded', {\n\t\tenumerable: true,\n\t\tget: function() { return module.l; }\n\t});\n\tObject.defineProperty(module, 'id', {\n\t\tenumerable: true,\n\t\tget: function() { return module.i; }\n\t});\n\treturn module;\n};"]} \ No newline at end of file +{"version":3,"sources":["/webpack/bootstrap","../node_modules/js-yaml/lib/js-yaml/type/js/function.js","../node_modules/lodash/_arrayLikeKeys.js","../node_modules/lodash/_getAllKeys.js","../node_modules/lodash/_isPrototype.js","../node_modules/lodash/isArrayLike.js","../node_modules/uri-js/dist/es5/uri.all.js","../node_modules/lodash/_stackGet.js","../node_modules/js-yaml/lib/js-yaml/dumper.js","../src/strUtils.ts","../node_modules/js-yaml/lib/js-yaml/schema/failsafe.js","../node_modules/js-yaml/lib/js-yaml/type/pairs.js","../node_modules/lodash/_nativeCreate.js","../node_modules/lodash/_isMasked.js","../src/inputs.ts","../node_modules/lodash/_toKey.js","../node_modules/lodash/_arrayPush.js","../node_modules/lodash/_isKey.js","../node_modules/lodash/_freeGlobal.js","../external \"os\"","../node_modules/ajv/lib/dotjs/anyOf.js","../node_modules/lodash/_setToString.js","../node_modules/lodash/_equalObjects.js","../node_modules/ajv/lib/dotjs/oneOf.js","../node_modules/ajv/lib/dotjs/_limitLength.js","../node_modules/lodash/_baseIsMatch.js","../node_modules/lodash/_baseHasIn.js","../node_modules/ajv/lib/dotjs/comment.js","../node_modules/js-yaml/lib/js-yaml/common.js","../node_modules/ajv/lib/dotjs/_limitProperties.js","../src/index.ts","../node_modules/js-yaml/lib/js-yaml/type/merge.js","../node_modules/lodash/_overRest.js","../node_modules/lodash/_SetCache.js","../node_modules/ajv/lib/dotjs/enum.js","../node_modules/lodash/_baseKeys.js","../node_modules/js-yaml/lib/js-yaml/type/map.js","../node_modules/lodash/_baseIsArguments.js","../node_modules/js-yaml/lib/js-yaml/schema/core.js","../node_modules/@actions/core/lib/core.js","../node_modules/js-yaml/lib/js-yaml/loader.js","../node_modules/lodash/_baseMap.js","../node_modules/ajv/lib/dotjs/propertyNames.js","../node_modules/js-yaml/lib/js-yaml/exception.js","../node_modules/lodash/_objectToString.js","../node_modules/lodash/_compareAscending.js","../node_modules/fast-deep-equal/index.js","../node_modules/lodash/_Symbol.js","../node_modules/lodash/_cacheHas.js","../node_modules/lodash/_hashHas.js","../node_modules/lodash/_baseEach.js","../node_modules/js-yaml/lib/js-yaml/type/set.js","../node_modules/lodash/_baseSortBy.js","../node_modules/js-yaml/lib/js-yaml/type/js/regexp.js","../node_modules/lodash/_equalByTag.js","../node_modules/lodash/property.js","../node_modules/lodash/_baseUnary.js","../node_modules/lodash/_Uint8Array.js","../node_modules/lodash/isSymbol.js","../node_modules/lodash/get.js","../src/prepare.ts","../node_modules/ajv/lib/keyword.js","../node_modules/lodash/_isFlattenable.js","../node_modules/lodash/_equalArrays.js","../node_modules/lodash/_isKeyable.js","../node_modules/lodash/_overArg.js","../node_modules/lodash/_Stack.js","../node_modules/lodash/_createAggregator.js","../node_modules/lodash/isObject.js","../node_modules/@actions/core/lib/command.js","../node_modules/lodash/_arrayMap.js","../node_modules/lodash/_arrayAggregator.js","../node_modules/lodash/_mapCacheGet.js","../src/config.ts","../node_modules/lodash/_coreJsData.js","../node_modules/lodash/_listCacheHas.js","../node_modules/lodash/_arrayFilter.js","../node_modules/ajv/lib/dotjs/ref.js","../node_modules/lodash/_hashGet.js","../node_modules/lodash/_listCacheSet.js","../node_modules/lodash/isBuffer.js","../node_modules/ajv/lib/dotjs/_limit.js","../node_modules/ajv/lib/dotjs/items.js","../node_modules/lodash/hasIn.js","../node_modules/lodash/_arraySome.js","../node_modules/lodash/_baseIsNative.js","../node_modules/ajv/lib/data.js","../node_modules/lodash/_defineProperty.js","../node_modules/lodash/_hashClear.js","../node_modules/ajv/lib/dotjs/required.js","../node_modules/lodash/_memoizeCapped.js","../node_modules/js-yaml/lib/js-yaml/mark.js","../node_modules/lodash/_baseIteratee.js","../node_modules/js-yaml/lib/js-yaml/type/timestamp.js","../node_modules/ajv/lib/dotjs/allOf.js","../node_modules/lodash/_baseSetToString.js","../node_modules/lodash/_getMatchData.js","../node_modules/ajv/lib/definition_schema.js","../node_modules/lodash/_hashSet.js","../node_modules/lodash/_baseToString.js","../node_modules/lodash/_getNative.js","../node_modules/lodash/_isIterateeCall.js","../node_modules/js-yaml/lib/js-yaml/type/seq.js","../node_modules/lodash/_baseIsEqual.js","../node_modules/lodash/isArguments.js","../node_modules/lodash/isTypedArray.js","../node_modules/lodash/_baseGetTag.js","../node_modules/lodash/_matchesStrictComparable.js","../node_modules/lodash/_Promise.js","../node_modules/js-yaml/lib/js-yaml/schema.js","../node_modules/lodash/_baseAggregator.js","../node_modules/lodash/_baseIsTypedArray.js","../node_modules/lodash/isLength.js","../node_modules/json-schema-traverse/index.js","../node_modules/lodash/_getValue.js","../node_modules/js-yaml/lib/js-yaml/type/binary.js","../node_modules/lodash/_setToArray.js","../node_modules/ajv/lib/compile/rules.js","../node_modules/js-yaml/lib/js-yaml/type/float.js","../node_modules/js-yaml/lib/js-yaml/schema/json.js","../node_modules/ajv/lib/compile/util.js","../node_modules/ajv/lib/compile/ucs2length.js","../node_modules/lodash/_mapCacheSet.js","../node_modules/ajv/lib/dotjs/validate.js","../node_modules/lodash/_baseFor.js","../node_modules/ajv/lib/dotjs/dependencies.js","../node_modules/lodash/_isStrictComparable.js","../node_modules/lodash/_baseMatches.js","../node_modules/ajv/lib/compile/schema_obj.js","../node_modules/lodash/_ListCache.js","../node_modules/lodash/_mapCacheHas.js","../node_modules/lodash/_mapCacheClear.js","../node_modules/lodash/groupBy.js","../external \"path\"","../node_modules/ajv/lib/compile/formats.js","../node_modules/lodash/stubArray.js","../node_modules/lodash/_createBaseEach.js","../node_modules/lodash/_nodeUtil.js","../node_modules/lodash/keys.js","../node_modules/lodash/_apply.js","../node_modules/lodash/_getTag.js","../node_modules/lodash/_mapCacheDelete.js","../node_modules/lodash/_hasPath.js","../node_modules/ajv/lib/dotjs/const.js","../node_modules/js-yaml/lib/js-yaml/type/omap.js","../node_modules/js-yaml/lib/js-yaml/type/null.js","../node_modules/js-yaml/lib/js-yaml/type/str.js","../node_modules/js-yaml/lib/js-yaml/type/bool.js","../node_modules/ajv/lib/cache.js","../node_modules/ajv/lib/dotjs/_limitItems.js","../node_modules/lodash/_castPath.js","../node_modules/lodash/isString.js","../node_modules/lodash/_createBaseFor.js","../node_modules/lodash/_baseForOwn.js","../node_modules/openpgp/dist/openpgp.js","../node_modules/lodash/_listCacheDelete.js","../node_modules/lodash/_stackDelete.js","../node_modules/ajv/lib/compile/error_classes.js","../node_modules/lodash/_shortOut.js","../node_modules/lodash/stubFalse.js","../external \"fs\"","../node_modules/ajv/lib/dotjs/not.js","../node_modules/lodash/_assocIndexOf.js","../node_modules/lodash/_baseGet.js","../node_modules/lodash/_baseTimes.js","../node_modules/ajv/lib/dotjs/multipleOf.js","../node_modules/lodash/sortBy.js","../node_modules/lodash/_nativeKeys.js","../node_modules/lodash/_listCacheGet.js","../node_modules/lodash/_listCacheClear.js","../node_modules/lodash/_Set.js","../node_modules/lodash/isFunction.js","../node_modules/lodash/_getSymbols.js","../node_modules/lodash/_setCacheHas.js","../node_modules/ajv/lib/dotjs/index.js","../node_modules/lodash/_compareMultiple.js","../node_modules/lodash/identity.js","../node_modules/lodash/_baseProperty.js","../node_modules/lodash/_stackClear.js","../node_modules/ajv/lib/dotjs/format.js","../node_modules/lodash/_baseOrderBy.js","../node_modules/lodash/_mapToArray.js","../node_modules/lodash/_DataView.js","../node_modules/ajv/lib/dotjs/if.js","../node_modules/lodash/_baseAssignValue.js","../node_modules/lodash/isArray.js","../node_modules/lodash/_stringToPath.js","../node_modules/js-yaml/lib/js-yaml/schema/default_full.js","../node_modules/ajv/lib/compile/index.js","../node_modules/lodash/_Map.js","../node_modules/lodash/_root.js","../node_modules/lodash/memoize.js","../node_modules/ajv/lib/compile/async.js","../node_modules/lodash/_setCacheAdd.js","../node_modules/ajv/lib/compile/resolve.js","../node_modules/lodash/eq.js","../node_modules/lodash/_Hash.js","../node_modules/lodash/_baseMatchesProperty.js","../node_modules/lodash/_stackHas.js","../node_modules/ajv/lib/dotjs/pattern.js","../node_modules/js-yaml/lib/js-yaml/type/js/undefined.js","../node_modules/lodash/_WeakMap.js","../node_modules/js-yaml/lib/js-yaml.js","../node_modules/js-yaml/index.js","../node_modules/lodash/_hashDelete.js","../node_modules/lodash/_baseFlatten.js","../node_modules/lodash/_getRawTag.js","../node_modules/ajv/lib/dotjs/properties.js","../node_modules/lodash/isObjectLike.js","../node_modules/lodash/_toSource.js","../node_modules/lodash/toString.js","../node_modules/lodash/_isIndex.js","../node_modules/lodash/_MapCache.js","../node_modules/ajv/lib/ajv.js","../node_modules/lodash/constant.js","../node_modules/js-yaml/lib/js-yaml/schema/default_safe.js","../node_modules/lodash/_baseGetAllKeys.js","../node_modules/lodash/_stackSet.js","../node_modules/js-yaml/lib/js-yaml/type/int.js","../node_modules/ajv/lib/dotjs/contains.js","../node_modules/js-yaml/lib/js-yaml/type.js","../node_modules/fast-json-stable-stringify/index.js","../node_modules/ajv/lib/dotjs/custom.js","../node_modules/lodash/_basePropertyDeep.js","../src/errors.ts","../node_modules/lodash/_baseRest.js","../node_modules/lodash/_getMapData.js","../src/fsUtils.ts","../node_modules/lodash/_baseIsEqualDeep.js","../node_modules/ajv/lib/dotjs/uniqueItems.js","/webpack/runtime/node module decorator"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","threw","modules","call","ab","__dirname","startup","runtime","require","baseTimes","isArguments","isArray","isBuffer","isIndex","isTypedArray","objectProto","Object","prototype","hasOwnProperty","arrayLikeKeys","value","inherited","isArr","isArg","isBuff","isType","skipIndexes","result","length","String","key","push","baseGetAllKeys","getSymbols","keys","getAllKeys","object","isPrototype","Ctor","constructor","proto","isFunction","isLength","isArrayLike","global","factory","undefined","this","merge","_len","arguments","sets","Array","_key","slice","xl","x","join","subexp","str","typeOf","o","toString","split","pop","shift","toLowerCase","toUpperCase","toArray","obj","setInterval","assign","target","source","buildExps","isIRI","ALPHA$$","CR$","DIGIT$$","DQUOTE$$","HEXDIG$$","LF$$","SP$$","PCT_ENCODED$","GEN_DELIMS$$","SUB_DELIMS$$","RESERVED$$","UCSCHAR$$","IPRIVATE$$","UNRESERVED$$","SCHEME$","USERINFO$","DEC_OCTET$","DEC_OCTET_RELAXED$","IPV4ADDRESS$","H16$","LS32$","IPV6ADDRESS1$","IPV6ADDRESS2$","IPV6ADDRESS3$","IPV6ADDRESS4$","IPV6ADDRESS5$","IPV6ADDRESS6$","IPV6ADDRESS7$","IPV6ADDRESS8$","IPV6ADDRESS9$","IPV6ADDRESS$","ZONEID$","IPV6ADDRZ$","IPV6ADDRZ_RELAXED$","IPVFUTURE$","IP_LITERAL$","REG_NAME$","HOST$","PORT$","AUTHORITY$","PCHAR$","SEGMENT$","SEGMENT_NZ$","SEGMENT_NZ_NC$","PATH_ABEMPTY$","PATH_ABSOLUTE$","PATH_NOSCHEME$","PATH_ROOTLESS$","PATH_EMPTY$","PATH$","QUERY$","FRAGMENT$","HIER_PART$","URI$","RELATIVE_PART$","RELATIVE$","URI_REFERENCE$","ABSOLUTE_URI$","GENERIC_REF$","RELATIVE_REF$","ABSOLUTE_REF$","SAMEDOC_REF$","AUTHORITY_REF$","NOT_SCHEME","RegExp","NOT_USERINFO","NOT_HOST","NOT_PATH","NOT_PATH_NOSCHEME","NOT_QUERY","NOT_FRAGMENT","ESCAPE","UNRESERVED","OTHER_CHARS","PCT_ENCODED","IPV4ADDRESS","IPV6ADDRESS","URI_PROTOCOL","IRI_PROTOCOL","slicedToArray","sliceIterator","arr","_arr","_n","_d","_e","_i","Symbol","iterator","_s","next","done","err","TypeError","toConsumableArray","arr2","from","maxInt","base","tMin","tMax","skew","damp","initialBias","initialN","delimiter","regexPunycode","regexNonASCII","regexSeparators","errors","overflow","not-basic","invalid-input","baseMinusTMin","floor","Math","stringFromCharCode","fromCharCode","error$1","type","RangeError","map","array","fn","mapDomain","string","parts","replace","labels","encoded","ucs2decode","output","counter","charCodeAt","extra","ucs2encode","fromCodePoint","apply","basicToDigit","codePoint","digitToBasic","digit","flag","adapt","delta","numPoints","firstTime","k","decode","input","inputLength","n","bias","basic","lastIndexOf","j","index","oldi","w","t","baseMinusT","out","splice","encode","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","_step","_currentValue2","return","basicLength","handledCPCount","m","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","_step2","currentValue","handledCPCountPlusOne","_iteratorNormalCompletion3","_didIteratorError3","_iteratorError3","_iterator3","_step3","_currentValue","q","qMinusT","toUnicode","test","toASCII","punycode","version","ucs2","SCHEMES","pctEncChar","chr","c","e","pctDecChars","newStr","il","parseInt","substr","c2","_c","c3","_normalizeComponentEncoding","components","protocol","decodeUnreserved","decStr","match","scheme","userinfo","host","path","query","fragment","_stripLeadingZeros","_normalizeIPv4","matches","_matches","address","_normalizeIPv6","_matches2","zone","_address$toLowerCase$","reverse","_address$toLowerCase$2","last","first","firstFields","lastFields","isLastFieldIPv4Address","fieldCount","lastFieldsStart","fields","allZeroFields","reduce","acc","field","lastLongest","longestZeroFields","sort","a","b","newHost","newFirst","newLast","URI_PARSE","NO_MATCH_IS_UNDEFINED","parse","uriString","options","iri","reference","port","isNaN","indexOf","error","schemeHandler","unicodeSupport","domainHost","_recomposeAuthority","uriTokens","_","$1","$2","RDS1","RDS2","RDS3","RDS5","removeDotSegments","im","s","Error","serialize","authority","charAt","absolutePath","resolveComponents","relative","skipNormalization","tolerant","resolve","baseURI","relativeURI","schemelessOptions","normalize","uri","equal","uriA","uriB","escapeComponent","unescapeComponent","handler","handler$1","O","ATEXT$$","QTEXT$$","VCHAR$$","SOME_DELIMS$$","NOT_LOCAL_PART","NOT_HFNAME","NOT_HFVALUE","handler$2","parse$$1","mailtoComponents","to","unknownHeaders","headers","hfields","hfield","toAddrs","_x","_xl","subject","body","_x2","_xl2","addr","serialize$$1","toAddr","atIdx","localPart","domain","name","URN_PARSE","handler$3","urnComponents","nid","nss","urnScheme","uriComponents","UUID","handler$4","uuidComponents","uuid","defineProperty","stackGet","__data__","get","common","YAMLException","DEFAULT_FULL_SCHEMA","DEFAULT_SAFE_SCHEMA","_toString","_hasOwnProperty","CHAR_TAB","CHAR_LINE_FEED","CHAR_CARRIAGE_RETURN","CHAR_SPACE","CHAR_EXCLAMATION","CHAR_DOUBLE_QUOTE","CHAR_SHARP","CHAR_PERCENT","CHAR_AMPERSAND","CHAR_SINGLE_QUOTE","CHAR_ASTERISK","CHAR_COMMA","CHAR_MINUS","CHAR_COLON","CHAR_EQUALS","CHAR_GREATER_THAN","CHAR_QUESTION","CHAR_COMMERCIAL_AT","CHAR_LEFT_SQUARE_BRACKET","CHAR_RIGHT_SQUARE_BRACKET","CHAR_GRAVE_ACCENT","CHAR_LEFT_CURLY_BRACKET","CHAR_VERTICAL_LINE","CHAR_RIGHT_CURLY_BRACKET","ESCAPE_SEQUENCES","DEPRECATED_BOOLEANS_SYNTAX","compileStyleMap","schema","tag","style","compiledTypeMap","styleAliases","encodeHex","character","handle","repeat","State","indent","max","noArrayIndent","skipInvalid","flowLevel","isNothing","styleMap","sortKeys","lineWidth","noRefs","noCompatMode","condenseFlow","implicitTypes","compiledImplicit","explicitTypes","compiledExplicit","duplicates","usedDuplicates","indentString","spaces","ind","position","line","generateNextLine","state","level","testImplicitResolving","isWhitespace","isPrintable","isNsChar","isPlainSafe","prev","isPlainSafeFirst","needIndentIndicator","leadingSpaceRe","STYLE_PLAIN","STYLE_SINGLE","STYLE_LITERAL","STYLE_FOLDED","STYLE_DOUBLE","chooseScalarStyle","singleLineOnly","indentPerLevel","testAmbiguousType","char","prev_char","hasLineBreak","hasFoldableLine","shouldTrackWidth","previousLineBreak","plain","writeScalar","iskey","dump","min","testAmbiguity","blockHeader","dropEndingNewline","foldString","escapeString","indentIndicator","clip","keep","chomp","width","lineRe","nextLF","lastIndex","foldLine","prevMoreIndented","moreIndented","exec","prefix","breakRe","start","end","curr","nextChar","escapeSeq","writeFlowSequence","_result","_tag","writeNode","writeBlockSequence","compact","writeFlowMapping","objectKeyList","objectKey","objectValue","pairBuffer","writeBlockMapping","explicitPair","detectType","explicit","typeList","instanceOf","predicate","represent","defaultStyle","block","objectOrArray","duplicateIndex","duplicate","arrayLevel","getDuplicateReferences","objects","duplicatesIndexes","inspectNode","safeDump","extend","PATTERN_ENV_VER","replaceEnvVer","v","process","env","Schema","Type","resolveYamlPairs","data","pair","constructYamlPairs","kind","construct","getNative","nativeCreate","coreJsData","maskSrcKey","uid","IE_PROTO","isMasked","func","core_1","getRequiredInput","getInput","required","getOptionalInput","async","loadInputs","configFile","gpgPassphrase","isSymbol","INFINITY","toKey","arrayPush","values","offset","reIsDeepProp","reIsPlainProp","isKey","freeGlobal","generate_anyOf","it","$keyword","$ruleType","$lvl","$dataLvl","dataLevel","$schema","$schemaPath","schemaPath","util","getProperty","$errSchemaPath","errSchemaPath","$breakOnError","opts","allErrors","$data","$valid","$errs","$it","copy","$closingBraces","$nextValid","$noEmptySchema","every","$sch","strictKeywords","schemaHasRules","RULES","all","$currentBaseId","baseId","$wasComposite","compositeRule","arr1","$i","l1","validate","createErrors","toQuotedString","messages","verbose","baseSetToString","shortOut","setToString","COMPARE_PARTIAL_FLAG","equalObjects","other","bitmask","customizer","equalFunc","stack","isPartial","objProps","objLength","othProps","othLength","objStacked","othStacked","set","skipCtor","objValue","othValue","compared","objCtor","othCtor","generate_oneOf","$prevValid","$passingSchemas","generate__limitLength","$errorKeyword","$isData","$schemaValue","getData","dataPathArr","$op","unicode","$$outStack","__err","Stack","baseIsEqual","COMPARE_UNORDERED_FLAG","baseIsMatch","matchData","noCustomizer","srcValue","baseHasIn","generate_comment","$comment","isObject","sequence","sourceKeys","count","cycle","isNegativeZero","number","Number","NEGATIVE_INFINITY","generate__limitProperties","config_1","inputs_1","prepare_1","run","baseDir","inputs","config","loadConfig","startGroup","prepareMask","endGroup","prepareEnv","prepareFile","setFailed","main","cache","eval","cwd","resolveYamlMerge","nativeMax","overRest","transform","args","otherArgs","MapCache","setCacheAdd","setCacheHas","SetCache","add","has","generate_enum","$vSchema","nativeKeys","baseKeys","baseGetTag","isObjectLike","argsTag","baseIsArguments","include","__awaiter","thisArg","_arguments","P","generator","adopt","Promise","reject","fulfilled","step","rejected","then","__importStar","mod","__esModule","command_1","os","ExitCode","exportVariable","val","convertedVal","toCommandValue","issueCommand","setSecret","secret","addPath","inputPath","trim","setOutput","setCommandEcho","enabled","issue","message","exitCode","Failure","isDebug","debug","warning","info","stdout","write","EOL","group","saveState","getState","Mark","CONTEXT_FLOW_IN","CONTEXT_FLOW_OUT","CONTEXT_BLOCK_IN","CONTEXT_BLOCK_OUT","CHOMPING_CLIP","CHOMPING_STRIP","CHOMPING_KEEP","PATTERN_NON_PRINTABLE","PATTERN_NON_ASCII_LINE_BREAKS","PATTERN_FLOW_INDICATORS","PATTERN_TAG_HANDLE","PATTERN_TAG_URI","_class","is_EOL","is_WHITE_SPACE","is_WS_OR_EOL","is_FLOW_INDICATOR","fromHexCode","lc","escapedHexLen","fromDecimalCode","simpleEscapeSequence","charFromCodepoint","simpleEscapeCheck","simpleEscapeMap","filename","onWarning","legacy","json","listener","typeMap","lineStart","lineIndent","documents","generateError","throwError","throwWarning","directiveHandlers","YAML","handleYamlDirective","major","minor","checkLineBreaks","TAG","handleTagDirective","tagMap","captureSegment","checkJson","_position","_length","_character","mergeMappings","destination","overridableKeys","quantity","storeMappingPair","keyTag","keyNode","valueNode","startLine","startPos","readLineBreak","ch","skipSeparationSpace","allowComments","checkIndent","lineBreaks","testDocumentSeparator","writeFoldedLines","readPlainScalar","nodeIndent","withinFlowCollection","preceding","following","captureStart","captureEnd","hasPendingContent","_line","_lineStart","_lineIndent","_kind","readSingleQuotedScalar","readDoubleQuotedScalar","hexLength","hexResult","tmp","readFlowCollection","readNext","_anchor","anchor","terminator","isPair","isExplicitPair","isMapping","anchorMap","composeNode","readBlockScalar","folding","chomping","didReadContent","detectedIndent","textIndent","emptyLines","atMoreIndented","readBlockSequence","detected","readBlockMapping","flowIndent","allowCompact","_pos","atExplicitKey","readTagProperty","isVerbatim","isNamed","tagHandle","tagName","readAnchorProperty","readAlias","alias","parentIndent","nodeContext","allowToSeek","allowBlockStyles","allowBlockScalars","allowBlockCollections","indentStatus","atNewLine","hasContent","typeIndex","typeQuantity","blockIndent","readDocument","documentStart","directiveName","directiveArgs","hasDirectives","loadDocuments","nullpos","loadAll","load","safeLoadAll","safeLoad","baseEach","baseMap","collection","iteratee","generate_propertyNames","$key","$idx","$invalidName","$dataNxt","$nextData","$dataProperties","$ownProperties","ownProperties","$passData","$code","varOccurences","varReplace","reason","mark","captureStackTrace","create","nativeObjectToString","objectToString","compareAscending","valIsDefined","valIsNull","valIsReflexive","valIsSymbol","othIsDefined","othIsNull","othIsReflexive","othIsSymbol","flags","valueOf","root","cacheHas","hashHas","baseForOwn","createBaseEach","resolveYamlSet","constructYamlSet","baseSortBy","comparer","resolveJavascriptRegExp","regexp","tail","modifiers","constructJavascriptRegExp","representJavascriptRegExp","multiline","ignoreCase","isRegExp","Uint8Array","eq","equalArrays","mapToArray","setToArray","boolTag","dateTag","errorTag","mapTag","numberTag","regexpTag","setTag","stringTag","symbolTag","arrayBufferTag","dataViewTag","symbolProto","symbolValueOf","equalByTag","byteLength","byteOffset","buffer","convert","size","stacked","baseProperty","basePropertyDeep","property","baseUnary","baseGet","defaultValue","isString_1","__importDefault","strUtils_1","fsUtils_1","mask","default","file","content","actualFilename","writeFile","IDENTIFIER","customRuleCode","definitionSchema","addKeyword","getKeyword","remove","removeKeyword","validateKeyword","keyword","definition","keywords","dataType","_addRule","metaSchema","_opts","anyOf","$ref","validateSchema","compile","ruleGroup","rg","rules","rule","custom","code","implements","_validateKeyword","errorsText","spreadableSymbol","isConcatSpreadable","isFlattenable","arraySome","arrLength","arrStacked","seen","arrValue","othIndex","isKeyable","overArg","arg","ListCache","stackClear","stackDelete","stackHas","stackSet","entries","clear","arrayAggregator","baseAggregator","baseIteratee","createAggregator","setter","initializer","accumulator","command","properties","cmd","Command","CMD_STRING","[object Object]","cmdStr","escapeProperty","escapeData","JSON","stringify","arrayMap","getMapData","mapCacheGet","openpgp","ajv_1","js_yaml_1","fs_1","groupBy_1","sortBy_1","config_schema_json_1","errors_1","ERROR_KEYWORD_ORDER","assertConfig","ajv","groupedDataPathErrors","dataPaths","dataPath","dataPathErrors","sortedErrors","ConfigActionError","loadConfigWithGPGPassphrase","loadConfigFile","readFile","promises","pathResolve","raw","loadConfigYaml","decrypt","read","passwords","format","assocIndexOf","listCacheHas","arrayFilter","resIndex","generate_ref","$async","$refCode","isRoot","$refVal","resolveRef","$message","MissingRefError","missingRefs","logger","escapeQuotes","warn","inline","passContext","errorPath","$parentData","$parentDataProperty","__callValidate","HASH_UNDEFINED","hashGet","listCacheSet","stubFalse","freeExports","nodeType","freeModule","moduleExports","Buffer","nativeIsBuffer","generate__limit","$isMax","$exclusiveKeyword","$schemaExcl","$isDataExcl","$notOp","$schemaValueExcl","$exclusive","$exclType","$exclIsNumber","$opExpr","$opStr","generate_items","$additionalItems","additionalItems","$currErrSchemaPath","getPathExpr","jsonPointers","hasPath","hasIn","toSource","reRegExpChar","reIsHostCtor","funcProto","Function","funcToString","reIsNative","baseIsNative","pattern","KEYWORDS","keywordsJsonPointers","segments","hashClear","generate_required","loopRequired","$required","$property","i1","$propertySch","$currentErrorPath","$loopRequired","$propertyPath","$missingProperty","_errorDataPathProperty","$propertyKey","l2","$prop","$useData","arr3","i3","l3","getPath","memoize","MAX_MEMOIZE_SIZE","memoizeCapped","column","getSnippet","maxLength","head","snippet","where","baseMatches","baseMatchesProperty","identity","YAML_DATE_REGEXP","YAML_TIMESTAMP_REGEXP","resolveYamlTimestamp","constructYamlTimestamp","year","month","day","hour","minute","second","fraction","tz_hour","tz_minute","date","Date","UTC","setTime","getTime","representYamlTimestamp","toISOString","generate_allOf","$allSchemasEmpty","constant","configurable","enumerable","writable","isStrictComparable","getMatchData","$id","definitions","simpleTypes","dependencies","statements","valid","not","items","modifying","const","hashSet","symbolToString","baseToString","getValue","isIterateeCall","baseIsEqualDeep","propertyIsEnumerable","baseIsTypedArray","nodeUtil","nodeIsTypedArray","getRawTag","nullTag","undefinedTag","symToStringTag","toStringTag","matchesStrictComparable","compileList","exclude","forEach","includedSchema","currentType","previousType","previousIndex","filter","compileMap","scalar","mapping","fallback","collectType","implicit","loadKind","DEFAULT","createSchema","schemas","types","arrayTag","funcTag","objectTag","weakMapTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","typedArrayTags","MAX_SAFE_INTEGER","traverse","cb","pre","post","_traverse","contains","additionalProperties","propertyNames","arrayKeywords","allOf","oneOf","propsKeywords","patternProperties","skipKeywords","enum","maximum","minimum","exclusiveMaximum","exclusiveMinimum","multipleOf","minLength","maxItems","minItems","uniqueItems","maxProperties","minProperties","jsonPtr","rootSchema","parentJsonPtr","parentKeyword","parentSchema","keyIndex","sch","prop","escapeJsonPtr","allKeys","ruleModules","toHash","ALL","TYPES","implKeywords","concat","YAML_FLOAT_PATTERN","resolveYamlFloat","constructYamlFloat","sign","digits","POSITIVE_INFINITY","NaN","unshift","parseFloat","d","SCIENTIFIC_WITHOUT_DOT","representYamlFloat","res","isFloat","checkDataType","checkDataTypes","coerceToTypes","ucs2length","schemaHasRulesExcept","schemaUnknownRules","unescapeFragment","unescapeJsonPointer","escapeFragment","escapeJsonPointer","strictNumbers","negate","EQUAL","AND","OK","NOT","dataTypes","null","integer","COERCE_TO_TYPES","optionCoerceTypes","hash","SINGLE_QUOTE","dataVar","expr","exceptKeyword","currentPath","isNumber","joinPaths","JSON_POINTER","RELATIVE_JSON_POINTER","lvl","paths","up","jsonPointer","segment","decodeURIComponent","encodeURIComponent","len","pos","mapCacheSet","generate_validate","$refKeywords","self","_getId","$unknownKwd","$keywordsMsg","isTop","sourceCode","processCode","$top","rootId","fullPath","useDefaults","strictDefaults","$defaultMsg","url","$closingBraces1","$closingBraces2","$typeSchema","$typeIsArray","nullable","extendRefs","coerceTypes","$coerceToTypes","$rulesGroup","$shouldUseGroup","$method","$dataType","$coerced","$type","i2","$schemaKeys","useDefault","arr4","l4","arr5","$rule","i5","l5","$shouldUseRule","$ruleImplementsSomeKeyword","impl","createBaseFor","baseFor","generate_dependencies","$schemaDeps","$propertyDeps","$deps","SchemaObject","listCacheClear","listCacheDelete","listCacheGet","entry","mapCacheHas","Hash","Map","mapCacheClear","baseAssignValue","groupBy","DATE","DAYS","TIME","HOSTNAME","URI","URIREF","URITEMPLATE","URL","JSON_POINTER_URI_FRAGMENT","formats","mode","fast","time","date-time","uri-reference","uri-template","email","hostname","ipv4","ipv6","regex","json-pointer","json-pointer-uri-fragment","relative-json-pointer","full","date_time","isLeapYear","timeZone","DATE_TIME_SEPARATOR","dateTime","NOT_URI_FRAGMENT","Z_ANCHOR","stubArray","eachFunc","fromRight","iterable","freeProcess","binding","DataView","Set","WeakMap","promiseTag","dataViewCtorString","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","getTag","ArrayBuffer","ctorString","mapCacheDelete","castPath","hasFunc","generate_const","resolveYamlOmap","objectKeys","pairKey","pairHasKey","constructYamlOmap","resolveYamlNull","constructYamlNull","isNull","canonical","lowercase","uppercase","camelcase","resolveYamlBoolean","constructYamlBoolean","isBoolean","Cache","_cache","put","Cache_put","Cache_get","del","Cache_del","Cache_clear","generate__limitItems","stringToPath","isString","keysFunc","props","f","u","p","r","1","arrayProto","Validation","errorSubclass","ValidationError","MissingRef","validation","ref","missingRef","missingSchema","normalizeId","Subclass","HOT_COUNT","HOT_SPAN","nativeNow","now","lastCalled","stamp","remaining","generate_not","$allErrorsOption","generate_multipleOf","multipleOfPrecision","baseFlatten","baseOrderBy","baseRest","sortBy","iteratees","asyncTag","genTag","proxyTag","nativeGetSymbols","getOwnPropertySymbols","symbol","if","compareMultiple","orders","objCriteria","criteria","othCriteria","ordersLength","order","generate_format","$unknownFormats","unknownFormats","$allowUnknown","$format","$isObject","$formatType","$formatRef","generate_if","$thenSch","$elseSch","$thenPresent","$elsePresent","$ifClause","rePropName","reEscapeChar","quote","subString","errorClasses","stableStringify","validateGenerator","localRefs","refVal","refs","patterns","patternsHash","defaults","defaultsHash","customRules","checkCompiling","compilation","_compilations","compiling","callValidate","_formats","localCompile","cv","endCompiling","_schema","_root","usePattern","useCustomRule","vars","refValCode","patternCode","defaultCode","makeValidate","refIndex","_refVal","refCode","resolvedRef","rootRefId","addLocalRef","localSchema","inlineRef","inlineRefs","removeLocalRef","replaceLocalRef","refId","regexStr","valueStr","deps","macro","compIndex","statement","freeSelf","FUNC_ERROR_TEXT","resolver","memoized","compileAsync","meta","callback","loadSchema","loadMetaSchemaOf","schemaObj","_addSchema","_compileAsync","getSchema","_compile","loadMissingSchema","added","schemaPromise","_loadingSchemas","removePromise","addSchema","_refs","_schemas","getFullPath","resolveUrl","ids","resolveIds","resolveSchema","refPath","_getFullPath","id","resolveRecursive","getJsonPointer","parsedRef","PREVENT_SCOPE_CHANGE","part","SIMPLE_INLINED","limit","checkNoRef","countKeys","item","Infinity","TRAILING_SLASH_HASH","schemaId","baseIds","","fullPaths","hashDelete","generate_pattern","$regexp","resolveJavascriptUndefined","constructJavascriptUndefined","representJavascriptUndefined","isUndefined","loader","dumper","deprecated","FAILSAFE_SCHEMA","JSON_SCHEMA","CORE_SCHEMA","MINIMAL_SCHEMA","SAFE_SCHEMA","DEFAULT_SCHEMA","scan","compose","addConstructor","yaml","depth","isStrict","isOwn","unmasked","generate_properties","notProto","$pProperties","$pPropertyKeys","$aProperties","$someProperties","$noAdditional","$additionalIsSchema","$removeAdditional","removeAdditional","$checkAdditional","$requiredHash","$pProperty","$additionalProperty","$useDefaults","$hasDefault","i4","reIsUint","compileSchema","$dataMetaSchema","Ajv","addMetaSchema","removeSchema","addFormat","customKeyword","META_SCHEMA_ID","META_IGNORE_OPTIONS","META_SUPPORT_DATA","setLogger","_fragments","chooseGetId","errorDataPath","_metaOpts","getMetaSchemaOptions","addInitialFormats","addInitialKeywords","addDefaultMetaSchema","addInitialSchemas","schemaKeyRef","_meta","_skipValidation","checkUnique","skipValidation","throwOrLogError","defaultMeta","keyRef","_getSchemaObj","_getSchemaFragment","_removeAllSchemas","cacheKey","shouldAddSchema","cached","addUsedSchema","willValidate","recursiveMeta","currentOpts","_validate","_get$IdOrId","_get$Id","separator","text","$dataSchema","optsSchemas","metaOpts","log","noop","console","symbolsFunc","LARGE_ARRAY_SIZE","pairs","isHexCode","isOctCode","isDecCode","resolveYamlInteger","hasDigits","constructYamlInteger","isInteger","binary","octal","decimal","hexadecimal","generate_contains","$nonEmptySchema","TYPE_CONSTRUCTOR_OPTIONS","YAML_NODE_KINDS","compileStyleAliases","cmp","cycles","node","aobj","bobj","toJSON","isFinite","seenIndex","generate_custom","$definition","$rDef","$compile","$inline","$macro","$ruleValidate","$validateCode","$validateSchema","$ruleErrs","$ruleErr","$asyncKeyword","def_callRuleValidate","def_customError","ActionError","super","setPrototypeOf","path_1","makeDir","mkdir","stat","targetPath","isDirectory","recursive","relativeDir","dirname","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","generate_uniqueItems","$itemType","nmd","children"],"mappings":"0CACA,IAAAA,EAAA,GAGA,SAAAC,oBAAAC,GAGA,GAAAF,EAAAE,GAAA,CACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,GAAA,CACAG,EAAAH,EACAI,EAAA,MACAH,QAAA,IAIA,IAAAI,EAAA,KACA,IACAC,EAAAN,GAAAO,KAAAL,EAAAD,QAAAC,EAAAA,EAAAD,QAAAF,qBACAM,EAAA,MACI,QACJ,GAAAA,SAAAP,EAAAE,GAIAE,EAAAE,EAAA,KAGA,OAAAF,EAAAD,QAIAF,oBAAAS,GAAAC,UAAA,IAGA,SAAAC,UAEA,OAAAX,oBAAA,KAGAY,EAAAZ,qBAGA,OAAAW,6DChCiBE,y1CCbjB,IAAAC,EAAgBd,EAAQ,KACxBe,EAAkBf,EAAQ,KAC1BgB,EAAchB,EAAQ,KACtBiB,EAAejB,EAAQ,KACvBkB,EAAclB,EAAQ,KACtBmB,EAAmBnB,EAAQ,KAG3B,IAAAoB,EAAAC,OAAAC,UAGA,IAAAC,EAAAH,EAAAG,eAUA,SAAAC,cAAAC,EAAAC,GACA,IAAAC,EAAAX,EAAAS,GACAG,GAAAD,GAAAZ,EAAAU,GACAI,GAAAF,IAAAC,GAAAX,EAAAQ,GACAK,GAAAH,IAAAC,IAAAC,GAAAV,EAAAM,GACAM,EAAAJ,GAAAC,GAAAC,GAAAC,EACA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,GACA1zD,OAAAgZ,eAAAla,EAAA,SAAA,CACAmuC,WAAA,KACA9zB,IAAA,WAAmB,OAAAra,EAAAE,KAEnBgB,OAAAgZ,eAAAla,EAAA,KAAA,CACAmuC,WAAA,KACA9zB,IAAA,WAAmB,OAAAra,EAAAC,KAEnB,OAAAD","file":"index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tvar threw = true;\n \t\ttry {\n \t\t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n \t\t\tthrew = false;\n \t\t} finally {\n \t\t\tif(threw) delete installedModules[moduleId];\n \t\t}\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t__webpack_require__.ab = __dirname + \"/\";\n\n \t// the startup function\n \tfunction startup() {\n \t\t// Load entry module and return exports\n \t\treturn __webpack_require__(144);\n \t};\n \t// initialize runtime\n \truntime(__webpack_require__);\n\n \t// run startup\n \treturn startup();\n",null,"var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbols = require('./_getSymbols'),\n keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","/** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */\n(function (global, factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :\n\ttypeof define === 'function' && define.amd ? define(['exports'], factory) :\n\t(factory((global.URI = global.URI || {})));\n}(this, (function (exports) { 'use strict';\n\nfunction merge() {\n for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {\n sets[_key] = arguments[_key];\n }\n\n if (sets.length > 1) {\n sets[0] = sets[0].slice(0, -1);\n var xl = sets.length - 1;\n for (var x = 1; x < xl; ++x) {\n sets[x] = sets[x].slice(1, -1);\n }\n sets[xl] = sets[xl].slice(1);\n return sets.join('');\n } else {\n return sets[0];\n }\n}\nfunction subexp(str) {\n return \"(?:\" + str + \")\";\n}\nfunction typeOf(o) {\n return o === undefined ? \"undefined\" : o === null ? \"null\" : Object.prototype.toString.call(o).split(\" \").pop().split(\"]\").shift().toLowerCase();\n}\nfunction toUpperCase(str) {\n return str.toUpperCase();\n}\nfunction toArray(obj) {\n return obj !== undefined && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== \"number\" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : [];\n}\nfunction assign(target, source) {\n var obj = target;\n if (source) {\n for (var key in source) {\n obj[key] = source[key];\n }\n }\n return obj;\n}\n\nfunction buildExps(isIRI) {\n var ALPHA$$ = \"[A-Za-z]\",\n CR$ = \"[\\\\x0D]\",\n DIGIT$$ = \"[0-9]\",\n DQUOTE$$ = \"[\\\\x22]\",\n HEXDIG$$ = merge(DIGIT$$, \"[A-Fa-f]\"),\n //case-insensitive\n LF$$ = \"[\\\\x0A]\",\n SP$$ = \"[\\\\x20]\",\n PCT_ENCODED$ = subexp(subexp(\"%[EFef]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%[89A-Fa-f]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%\" + HEXDIG$$ + HEXDIG$$)),\n //expanded\n GEN_DELIMS$$ = \"[\\\\:\\\\/\\\\?\\\\#\\\\[\\\\]\\\\@]\",\n SUB_DELIMS$$ = \"[\\\\!\\\\$\\\\&\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\;\\\\=]\",\n RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$),\n UCSCHAR$$ = isIRI ? \"[\\\\xA0-\\\\u200D\\\\u2010-\\\\u2029\\\\u202F-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF]\" : \"[]\",\n //subset, excludes bidi control characters\n IPRIVATE$$ = isIRI ? \"[\\\\uE000-\\\\uF8FF]\" : \"[]\",\n //subset\n UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, \"[\\\\-\\\\.\\\\_\\\\~]\", UCSCHAR$$),\n SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, \"[\\\\+\\\\-\\\\.]\") + \"*\"),\n USERINFO$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:]\")) + \"*\"),\n DEC_OCTET$ = subexp(subexp(\"25[0-5]\") + \"|\" + subexp(\"2[0-4]\" + DIGIT$$) + \"|\" + subexp(\"1\" + DIGIT$$ + DIGIT$$) + \"|\" + subexp(\"[1-9]\" + DIGIT$$) + \"|\" + DIGIT$$),\n DEC_OCTET_RELAXED$ = subexp(subexp(\"25[0-5]\") + \"|\" + subexp(\"2[0-4]\" + DIGIT$$) + \"|\" + subexp(\"1\" + DIGIT$$ + DIGIT$$) + \"|\" + subexp(\"0?[1-9]\" + DIGIT$$) + \"|0?0?\" + DIGIT$$),\n //relaxed parsing rules\n IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$ + \"\\\\.\" + DEC_OCTET_RELAXED$),\n H16$ = subexp(HEXDIG$$ + \"{1,4}\"),\n LS32$ = subexp(subexp(H16$ + \"\\\\:\" + H16$) + \"|\" + IPV4ADDRESS$),\n IPV6ADDRESS1$ = subexp(subexp(H16$ + \"\\\\:\") + \"{6}\" + LS32$),\n // 6( h16 \":\" ) ls32\n IPV6ADDRESS2$ = subexp(\"\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{5}\" + LS32$),\n // \"::\" 5( h16 \":\" ) ls32\n IPV6ADDRESS3$ = subexp(subexp(H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{4}\" + LS32$),\n //[ h16 ] \"::\" 4( h16 \":\" ) ls32\n IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,1}\" + H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{3}\" + LS32$),\n //[ *1( h16 \":\" ) h16 ] \"::\" 3( h16 \":\" ) ls32\n IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,2}\" + H16$) + \"?\\\\:\\\\:\" + subexp(H16$ + \"\\\\:\") + \"{2}\" + LS32$),\n //[ *2( h16 \":\" ) h16 ] \"::\" 2( h16 \":\" ) ls32\n IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,3}\" + H16$) + \"?\\\\:\\\\:\" + H16$ + \"\\\\:\" + LS32$),\n //[ *3( h16 \":\" ) h16 ] \"::\" h16 \":\" ls32\n IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,4}\" + H16$) + \"?\\\\:\\\\:\" + LS32$),\n //[ *4( h16 \":\" ) h16 ] \"::\" ls32\n IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,5}\" + H16$) + \"?\\\\:\\\\:\" + H16$),\n //[ *5( h16 \":\" ) h16 ] \"::\" h16\n IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + \"\\\\:\") + \"{0,6}\" + H16$) + \"?\\\\:\\\\:\"),\n //[ *6( h16 \":\" ) h16 ] \"::\"\n IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join(\"|\")),\n ZONEID$ = subexp(subexp(UNRESERVED$$ + \"|\" + PCT_ENCODED$) + \"+\"),\n //RFC 6874\n IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + \"\\\\%25\" + ZONEID$),\n //RFC 6874\n IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp(\"\\\\%25|\\\\%(?!\" + HEXDIG$$ + \"{2})\") + ZONEID$),\n //RFC 6874, with relaxed parsing rules\n IPVFUTURE$ = subexp(\"[vV]\" + HEXDIG$$ + \"+\\\\.\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:]\") + \"+\"),\n IP_LITERAL$ = subexp(\"\\\\[\" + subexp(IPV6ADDRZ_RELAXED$ + \"|\" + IPV6ADDRESS$ + \"|\" + IPVFUTURE$) + \"\\\\]\"),\n //RFC 6874\n REG_NAME$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$)) + \"*\"),\n HOST$ = subexp(IP_LITERAL$ + \"|\" + IPV4ADDRESS$ + \"(?!\" + REG_NAME$ + \")\" + \"|\" + REG_NAME$),\n PORT$ = subexp(DIGIT$$ + \"*\"),\n AUTHORITY$ = subexp(subexp(USERINFO$ + \"@\") + \"?\" + HOST$ + subexp(\"\\\\:\" + PORT$) + \"?\"),\n PCHAR$ = subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@]\")),\n SEGMENT$ = subexp(PCHAR$ + \"*\"),\n SEGMENT_NZ$ = subexp(PCHAR$ + \"+\"),\n SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + \"|\" + merge(UNRESERVED$$, SUB_DELIMS$$, \"[\\\\@]\")) + \"+\"),\n PATH_ABEMPTY$ = subexp(subexp(\"\\\\/\" + SEGMENT$) + \"*\"),\n PATH_ABSOLUTE$ = subexp(\"\\\\/\" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + \"?\"),\n //simplified\n PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$),\n //simplified\n PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$),\n //simplified\n PATH_EMPTY$ = \"(?!\" + PCHAR$ + \")\",\n PATH$ = subexp(PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$),\n QUERY$ = subexp(subexp(PCHAR$ + \"|\" + merge(\"[\\\\/\\\\?]\", IPRIVATE$$)) + \"*\"),\n FRAGMENT$ = subexp(subexp(PCHAR$ + \"|[\\\\/\\\\?]\") + \"*\"),\n HIER_PART$ = subexp(subexp(\"\\\\/\\\\/\" + AUTHORITY$ + PATH_ABEMPTY$) + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$),\n URI$ = subexp(SCHEME$ + \"\\\\:\" + HIER_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\" + subexp(\"\\\\#\" + FRAGMENT$) + \"?\"),\n RELATIVE_PART$ = subexp(subexp(\"\\\\/\\\\/\" + AUTHORITY$ + PATH_ABEMPTY$) + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_EMPTY$),\n RELATIVE$ = subexp(RELATIVE_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\" + subexp(\"\\\\#\" + FRAGMENT$) + \"?\"),\n URI_REFERENCE$ = subexp(URI$ + \"|\" + RELATIVE$),\n ABSOLUTE_URI$ = subexp(SCHEME$ + \"\\\\:\" + HIER_PART$ + subexp(\"\\\\?\" + QUERY$) + \"?\"),\n GENERIC_REF$ = \"^(\" + SCHEME$ + \")\\\\:\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n RELATIVE_REF$ = \"^(){0}\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_NOSCHEME$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n ABSOLUTE_REF$ = \"^(\" + SCHEME$ + \")\\\\:\" + subexp(subexp(\"\\\\/\\\\/(\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?)\") + \"?(\" + PATH_ABEMPTY$ + \"|\" + PATH_ABSOLUTE$ + \"|\" + PATH_ROOTLESS$ + \"|\" + PATH_EMPTY$ + \")\") + subexp(\"\\\\?(\" + QUERY$ + \")\") + \"?$\",\n SAMEDOC_REF$ = \"^\" + subexp(\"\\\\#(\" + FRAGMENT$ + \")\") + \"?$\",\n AUTHORITY_REF$ = \"^\" + subexp(\"(\" + USERINFO$ + \")@\") + \"?(\" + HOST$ + \")\" + subexp(\"\\\\:(\" + PORT$ + \")\") + \"?$\";\n return {\n NOT_SCHEME: new RegExp(merge(\"[^]\", ALPHA$$, DIGIT$$, \"[\\\\+\\\\-\\\\.]\"), \"g\"),\n NOT_USERINFO: new RegExp(merge(\"[^\\\\%\\\\:]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n NOT_HOST: new RegExp(merge(\"[^\\\\%\\\\[\\\\]\\\\:]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n NOT_PATH: new RegExp(merge(\"[^\\\\%\\\\/\\\\:\\\\@]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n NOT_PATH_NOSCHEME: new RegExp(merge(\"[^\\\\%\\\\/\\\\@]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n NOT_QUERY: new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@\\\\/\\\\?]\", IPRIVATE$$), \"g\"),\n NOT_FRAGMENT: new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, SUB_DELIMS$$, \"[\\\\:\\\\@\\\\/\\\\?]\"), \"g\"),\n ESCAPE: new RegExp(merge(\"[^]\", UNRESERVED$$, SUB_DELIMS$$), \"g\"),\n UNRESERVED: new RegExp(UNRESERVED$$, \"g\"),\n OTHER_CHARS: new RegExp(merge(\"[^\\\\%]\", UNRESERVED$$, RESERVED$$), \"g\"),\n PCT_ENCODED: new RegExp(PCT_ENCODED$, \"g\"),\n IPV4ADDRESS: new RegExp(\"^(\" + IPV4ADDRESS$ + \")$\"),\n IPV6ADDRESS: new RegExp(\"^\\\\[?(\" + IPV6ADDRESS$ + \")\" + subexp(subexp(\"\\\\%25|\\\\%(?!\" + HEXDIG$$ + \"{2})\") + \"(\" + ZONEID$ + \")\") + \"?\\\\]?$\") //RFC 6874, with relaxed parsing rules\n };\n}\nvar URI_PROTOCOL = buildExps(false);\n\nvar IRI_PROTOCOL = buildExps(true);\n\nvar slicedToArray = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if (Symbol.iterator in Object(arr)) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar toConsumableArray = function (arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n return arr2;\n } else {\n return Array.from(arr);\n }\n};\n\n/** Highest positive signed 32-bit float value */\n\nvar maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1\n\n/** Bootstring parameters */\nvar base = 36;\nvar tMin = 1;\nvar tMax = 26;\nvar skew = 38;\nvar damp = 700;\nvar initialBias = 72;\nvar initialN = 128; // 0x80\nvar delimiter = '-'; // '\\x2D'\n\n/** Regular expressions */\nvar regexPunycode = /^xn--/;\nvar regexNonASCII = /[^\\0-\\x7E]/; // non-ASCII chars\nvar regexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g; // RFC 3490 separators\n\n/** Error messages */\nvar errors = {\n\t'overflow': 'Overflow: input needs wider integers to process',\n\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t'invalid-input': 'Invalid input'\n};\n\n/** Convenience shortcuts */\nvar baseMinusTMin = base - tMin;\nvar floor = Math.floor;\nvar stringFromCharCode = String.fromCharCode;\n\n/*--------------------------------------------------------------------------*/\n\n/**\n * A generic error utility function.\n * @private\n * @param {String} type The error type.\n * @returns {Error} Throws a `RangeError` with the applicable error message.\n */\nfunction error$1(type) {\n\tthrow new RangeError(errors[type]);\n}\n\n/**\n * A generic `Array#map` utility function.\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} callback The function that gets called for every array\n * item.\n * @returns {Array} A new array of values returned by the callback function.\n */\nfunction map(array, fn) {\n\tvar result = [];\n\tvar length = array.length;\n\twhile (length--) {\n\t\tresult[length] = fn(array[length]);\n\t}\n\treturn result;\n}\n\n/**\n * A simple `Array#map`-like wrapper to work with domain name strings or email\n * addresses.\n * @private\n * @param {String} domain The domain name or email address.\n * @param {Function} callback The function that gets called for every\n * character.\n * @returns {Array} A new string of characters returned by the callback\n * function.\n */\nfunction mapDomain(string, fn) {\n\tvar parts = string.split('@');\n\tvar result = '';\n\tif (parts.length > 1) {\n\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t// the local part (i.e. everything up to `@`) intact.\n\t\tresult = parts[0] + '@';\n\t\tstring = parts[1];\n\t}\n\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\tstring = string.replace(regexSeparators, '\\x2E');\n\tvar labels = string.split('.');\n\tvar encoded = map(labels, fn).join('.');\n\treturn result + encoded;\n}\n\n/**\n * Creates an array containing the numeric code points of each Unicode\n * character in the string. While JavaScript uses UCS-2 internally,\n * this function will convert a pair of surrogate halves (each of which\n * UCS-2 exposes as separate characters) into a single code point,\n * matching UTF-16.\n * @see `punycode.ucs2.encode`\n * @see \n * @memberOf punycode.ucs2\n * @name decode\n * @param {String} string The Unicode input string (UCS-2).\n * @returns {Array} The new array of code points.\n */\nfunction ucs2decode(string) {\n\tvar output = [];\n\tvar counter = 0;\n\tvar length = string.length;\n\twhile (counter < length) {\n\t\tvar value = string.charCodeAt(counter++);\n\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n\t\t\t// It's a high surrogate, and there is a next character.\n\t\t\tvar extra = string.charCodeAt(counter++);\n\t\t\tif ((extra & 0xFC00) == 0xDC00) {\n\t\t\t\t// Low surrogate.\n\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n\t\t\t} else {\n\t\t\t\t// It's an unmatched surrogate; only append this code unit, in case the\n\t\t\t\t// next code unit is the high surrogate of a surrogate pair.\n\t\t\t\toutput.push(value);\n\t\t\t\tcounter--;\n\t\t\t}\n\t\t} else {\n\t\t\toutput.push(value);\n\t\t}\n\t}\n\treturn output;\n}\n\n/**\n * Creates a string based on an array of numeric code points.\n * @see `punycode.ucs2.decode`\n * @memberOf punycode.ucs2\n * @name encode\n * @param {Array} codePoints The array of numeric code points.\n * @returns {String} The new Unicode string (UCS-2).\n */\nvar ucs2encode = function ucs2encode(array) {\n\treturn String.fromCodePoint.apply(String, toConsumableArray(array));\n};\n\n/**\n * Converts a basic code point into a digit/integer.\n * @see `digitToBasic()`\n * @private\n * @param {Number} codePoint The basic numeric code point value.\n * @returns {Number} The numeric value of a basic code point (for use in\n * representing integers) in the range `0` to `base - 1`, or `base` if\n * the code point does not represent a value.\n */\nvar basicToDigit = function basicToDigit(codePoint) {\n\tif (codePoint - 0x30 < 0x0A) {\n\t\treturn codePoint - 0x16;\n\t}\n\tif (codePoint - 0x41 < 0x1A) {\n\t\treturn codePoint - 0x41;\n\t}\n\tif (codePoint - 0x61 < 0x1A) {\n\t\treturn codePoint - 0x61;\n\t}\n\treturn base;\n};\n\n/**\n * Converts a digit/integer into a basic code point.\n * @see `basicToDigit()`\n * @private\n * @param {Number} digit The numeric value of a basic code point.\n * @returns {Number} The basic code point whose value (when used for\n * representing integers) is `digit`, which needs to be in the range\n * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n * used; else, the lowercase form is used. The behavior is undefined\n * if `flag` is non-zero and `digit` has no uppercase form.\n */\nvar digitToBasic = function digitToBasic(digit, flag) {\n\t// 0..25 map to ASCII a..z or A..Z\n\t// 26..35 map to ASCII 0..9\n\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n};\n\n/**\n * Bias adaptation function as per section 3.4 of RFC 3492.\n * https://tools.ietf.org/html/rfc3492#section-3.4\n * @private\n */\nvar adapt = function adapt(delta, numPoints, firstTime) {\n\tvar k = 0;\n\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\n\tdelta += floor(delta / numPoints);\n\tfor (; /* no initialization */delta > baseMinusTMin * tMax >> 1; k += base) {\n\t\tdelta = floor(delta / baseMinusTMin);\n\t}\n\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n};\n\n/**\n * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n * symbols.\n * @memberOf punycode\n * @param {String} input The Punycode string of ASCII-only symbols.\n * @returns {String} The resulting string of Unicode symbols.\n */\nvar decode = function decode(input) {\n\t// Don't use UCS-2.\n\tvar output = [];\n\tvar inputLength = input.length;\n\tvar i = 0;\n\tvar n = initialN;\n\tvar bias = initialBias;\n\n\t// Handle the basic code points: let `basic` be the number of input code\n\t// points before the last delimiter, or `0` if there is none, then copy\n\t// the first basic code points to the output.\n\n\tvar basic = input.lastIndexOf(delimiter);\n\tif (basic < 0) {\n\t\tbasic = 0;\n\t}\n\n\tfor (var j = 0; j < basic; ++j) {\n\t\t// if it's not a basic code point\n\t\tif (input.charCodeAt(j) >= 0x80) {\n\t\t\terror$1('not-basic');\n\t\t}\n\t\toutput.push(input.charCodeAt(j));\n\t}\n\n\t// Main decoding loop: start just after the last delimiter if any basic code\n\t// points were copied; start at the beginning otherwise.\n\n\tfor (var index = basic > 0 ? basic + 1 : 0; index < inputLength;) /* no final expression */{\n\n\t\t// `index` is the index of the next character to be consumed.\n\t\t// Decode a generalized variable-length integer into `delta`,\n\t\t// which gets added to `i`. The overflow checking is easier\n\t\t// if we increase `i` as we go, then subtract off its starting\n\t\t// value at the end to obtain `delta`.\n\t\tvar oldi = i;\n\t\tfor (var w = 1, k = base;; /* no condition */k += base) {\n\n\t\t\tif (index >= inputLength) {\n\t\t\t\terror$1('invalid-input');\n\t\t\t}\n\n\t\t\tvar digit = basicToDigit(input.charCodeAt(index++));\n\n\t\t\tif (digit >= base || digit > floor((maxInt - i) / w)) {\n\t\t\t\terror$1('overflow');\n\t\t\t}\n\n\t\t\ti += digit * w;\n\t\t\tvar t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;\n\n\t\t\tif (digit < t) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tvar baseMinusT = base - t;\n\t\t\tif (w > floor(maxInt / baseMinusT)) {\n\t\t\t\terror$1('overflow');\n\t\t\t}\n\n\t\t\tw *= baseMinusT;\n\t\t}\n\n\t\tvar out = output.length + 1;\n\t\tbias = adapt(i - oldi, out, oldi == 0);\n\n\t\t// `i` was supposed to wrap around from `out` to `0`,\n\t\t// incrementing `n` each time, so we'll fix that now:\n\t\tif (floor(i / out) > maxInt - n) {\n\t\t\terror$1('overflow');\n\t\t}\n\n\t\tn += floor(i / out);\n\t\ti %= out;\n\n\t\t// Insert `n` at position `i` of the output.\n\t\toutput.splice(i++, 0, n);\n\t}\n\n\treturn String.fromCodePoint.apply(String, output);\n};\n\n/**\n * Converts a string of Unicode symbols (e.g. a domain name label) to a\n * Punycode string of ASCII-only symbols.\n * @memberOf punycode\n * @param {String} input The string of Unicode symbols.\n * @returns {String} The resulting Punycode string of ASCII-only symbols.\n */\nvar encode = function encode(input) {\n\tvar output = [];\n\n\t// Convert the input in UCS-2 to an array of Unicode code points.\n\tinput = ucs2decode(input);\n\n\t// Cache the length.\n\tvar inputLength = input.length;\n\n\t// Initialize the state.\n\tvar n = initialN;\n\tvar delta = 0;\n\tvar bias = initialBias;\n\n\t// Handle the basic code points.\n\tvar _iteratorNormalCompletion = true;\n\tvar _didIteratorError = false;\n\tvar _iteratorError = undefined;\n\n\ttry {\n\t\tfor (var _iterator = input[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n\t\t\tvar _currentValue2 = _step.value;\n\n\t\t\tif (_currentValue2 < 0x80) {\n\t\t\t\toutput.push(stringFromCharCode(_currentValue2));\n\t\t\t}\n\t\t}\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return) {\n\t\t\t\t_iterator.return();\n\t\t\t}\n\t\t} finally {\n\t\t\tif (_didIteratorError) {\n\t\t\t\tthrow _iteratorError;\n\t\t\t}\n\t\t}\n\t}\n\n\tvar basicLength = output.length;\n\tvar handledCPCount = basicLength;\n\n\t// `handledCPCount` is the number of code points that have been handled;\n\t// `basicLength` is the number of basic code points.\n\n\t// Finish the basic string with a delimiter unless it's empty.\n\tif (basicLength) {\n\t\toutput.push(delimiter);\n\t}\n\n\t// Main encoding loop:\n\twhile (handledCPCount < inputLength) {\n\n\t\t// All non-basic code points < n have been handled already. Find the next\n\t\t// larger one:\n\t\tvar m = maxInt;\n\t\tvar _iteratorNormalCompletion2 = true;\n\t\tvar _didIteratorError2 = false;\n\t\tvar _iteratorError2 = undefined;\n\n\t\ttry {\n\t\t\tfor (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n\t\t\t\tvar currentValue = _step2.value;\n\n\t\t\t\tif (currentValue >= n && currentValue < m) {\n\t\t\t\t\tm = currentValue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Increase `delta` enough to advance the decoder's state to ,\n\t\t\t// but guard against overflow.\n\t\t} catch (err) {\n\t\t\t_didIteratorError2 = true;\n\t\t\t_iteratorError2 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion2 && _iterator2.return) {\n\t\t\t\t\t_iterator2.return();\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError2) {\n\t\t\t\t\tthrow _iteratorError2;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tvar handledCPCountPlusOne = handledCPCount + 1;\n\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n\t\t\terror$1('overflow');\n\t\t}\n\n\t\tdelta += (m - n) * handledCPCountPlusOne;\n\t\tn = m;\n\n\t\tvar _iteratorNormalCompletion3 = true;\n\t\tvar _didIteratorError3 = false;\n\t\tvar _iteratorError3 = undefined;\n\n\t\ttry {\n\t\t\tfor (var _iterator3 = input[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {\n\t\t\t\tvar _currentValue = _step3.value;\n\n\t\t\t\tif (_currentValue < n && ++delta > maxInt) {\n\t\t\t\t\terror$1('overflow');\n\t\t\t\t}\n\t\t\t\tif (_currentValue == n) {\n\t\t\t\t\t// Represent delta as a generalized variable-length integer.\n\t\t\t\t\tvar q = delta;\n\t\t\t\t\tfor (var k = base;; /* no condition */k += base) {\n\t\t\t\t\t\tvar t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;\n\t\t\t\t\t\tif (q < t) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvar qMinusT = q - t;\n\t\t\t\t\t\tvar baseMinusT = base - t;\n\t\t\t\t\t\toutput.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));\n\t\t\t\t\t\tq = floor(qMinusT / baseMinusT);\n\t\t\t\t\t}\n\n\t\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\n\t\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n\t\t\t\t\tdelta = 0;\n\t\t\t\t\t++handledCPCount;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (err) {\n\t\t\t_didIteratorError3 = true;\n\t\t\t_iteratorError3 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion3 && _iterator3.return) {\n\t\t\t\t\t_iterator3.return();\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError3) {\n\t\t\t\t\tthrow _iteratorError3;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t++delta;\n\t\t++n;\n\t}\n\treturn output.join('');\n};\n\n/**\n * Converts a Punycode string representing a domain name or an email address\n * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n * it doesn't matter if you call it on a string that has already been\n * converted to Unicode.\n * @memberOf punycode\n * @param {String} input The Punycoded domain name or email address to\n * convert to Unicode.\n * @returns {String} The Unicode representation of the given Punycode\n * string.\n */\nvar toUnicode = function toUnicode(input) {\n\treturn mapDomain(input, function (string) {\n\t\treturn regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;\n\t});\n};\n\n/**\n * Converts a Unicode string representing a domain name or an email address to\n * Punycode. Only the non-ASCII parts of the domain name will be converted,\n * i.e. it doesn't matter if you call it with a domain that's already in\n * ASCII.\n * @memberOf punycode\n * @param {String} input The domain name or email address to convert, as a\n * Unicode string.\n * @returns {String} The Punycode representation of the given domain name or\n * email address.\n */\nvar toASCII = function toASCII(input) {\n\treturn mapDomain(input, function (string) {\n\t\treturn regexNonASCII.test(string) ? 'xn--' + encode(string) : string;\n\t});\n};\n\n/*--------------------------------------------------------------------------*/\n\n/** Define the public API */\nvar punycode = {\n\t/**\n * A string representing the current Punycode.js version number.\n * @memberOf punycode\n * @type String\n */\n\t'version': '2.1.0',\n\t/**\n * An object of methods to convert from JavaScript's internal character\n * representation (UCS-2) to Unicode code points, and back.\n * @see \n * @memberOf punycode\n * @type Object\n */\n\t'ucs2': {\n\t\t'decode': ucs2decode,\n\t\t'encode': ucs2encode\n\t},\n\t'decode': decode,\n\t'encode': encode,\n\t'toASCII': toASCII,\n\t'toUnicode': toUnicode\n};\n\n/**\n * URI.js\n *\n * @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript.\n * @author Gary Court\n * @see http://github.com/garycourt/uri-js\n */\n/**\n * Copyright 2011 Gary Court. All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without modification, are\n * permitted provided that the following conditions are met:\n *\n * 1. Redistributions of source code must retain the above copyright notice, this list of\n * conditions and the following disclaimer.\n *\n * 2. Redistributions in binary form must reproduce the above copyright notice, this list\n * of conditions and the following disclaimer in the documentation and/or other materials\n * provided with the distribution.\n *\n * THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED\n * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND\n * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\n * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\n * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n * The views and conclusions contained in the software and documentation are those of the\n * authors and should not be interpreted as representing official policies, either expressed\n * or implied, of Gary Court.\n */\nvar SCHEMES = {};\nfunction pctEncChar(chr) {\n var c = chr.charCodeAt(0);\n var e = void 0;\n if (c < 16) e = \"%0\" + c.toString(16).toUpperCase();else if (c < 128) e = \"%\" + c.toString(16).toUpperCase();else if (c < 2048) e = \"%\" + (c >> 6 | 192).toString(16).toUpperCase() + \"%\" + (c & 63 | 128).toString(16).toUpperCase();else e = \"%\" + (c >> 12 | 224).toString(16).toUpperCase() + \"%\" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + \"%\" + (c & 63 | 128).toString(16).toUpperCase();\n return e;\n}\nfunction pctDecChars(str) {\n var newStr = \"\";\n var i = 0;\n var il = str.length;\n while (i < il) {\n var c = parseInt(str.substr(i + 1, 2), 16);\n if (c < 128) {\n newStr += String.fromCharCode(c);\n i += 3;\n } else if (c >= 194 && c < 224) {\n if (il - i >= 6) {\n var c2 = parseInt(str.substr(i + 4, 2), 16);\n newStr += String.fromCharCode((c & 31) << 6 | c2 & 63);\n } else {\n newStr += str.substr(i, 6);\n }\n i += 6;\n } else if (c >= 224) {\n if (il - i >= 9) {\n var _c = parseInt(str.substr(i + 4, 2), 16);\n var c3 = parseInt(str.substr(i + 7, 2), 16);\n newStr += String.fromCharCode((c & 15) << 12 | (_c & 63) << 6 | c3 & 63);\n } else {\n newStr += str.substr(i, 9);\n }\n i += 9;\n } else {\n newStr += str.substr(i, 3);\n i += 3;\n }\n }\n return newStr;\n}\nfunction _normalizeComponentEncoding(components, protocol) {\n function decodeUnreserved(str) {\n var decStr = pctDecChars(str);\n return !decStr.match(protocol.UNRESERVED) ? str : decStr;\n }\n if (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, \"\");\n if (components.userinfo !== undefined) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n if (components.host !== undefined) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n if (components.path !== undefined) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n if (components.query !== undefined) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n if (components.fragment !== undefined) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);\n return components;\n}\n\nfunction _stripLeadingZeros(str) {\n return str.replace(/^0*(.*)/, \"$1\") || \"0\";\n}\nfunction _normalizeIPv4(host, protocol) {\n var matches = host.match(protocol.IPV4ADDRESS) || [];\n\n var _matches = slicedToArray(matches, 2),\n address = _matches[1];\n\n if (address) {\n return address.split(\".\").map(_stripLeadingZeros).join(\".\");\n } else {\n return host;\n }\n}\nfunction _normalizeIPv6(host, protocol) {\n var matches = host.match(protocol.IPV6ADDRESS) || [];\n\n var _matches2 = slicedToArray(matches, 3),\n address = _matches2[1],\n zone = _matches2[2];\n\n if (address) {\n var _address$toLowerCase$ = address.toLowerCase().split('::').reverse(),\n _address$toLowerCase$2 = slicedToArray(_address$toLowerCase$, 2),\n last = _address$toLowerCase$2[0],\n first = _address$toLowerCase$2[1];\n\n var firstFields = first ? first.split(\":\").map(_stripLeadingZeros) : [];\n var lastFields = last.split(\":\").map(_stripLeadingZeros);\n var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);\n var fieldCount = isLastFieldIPv4Address ? 7 : 8;\n var lastFieldsStart = lastFields.length - fieldCount;\n var fields = Array(fieldCount);\n for (var x = 0; x < fieldCount; ++x) {\n fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || '';\n }\n if (isLastFieldIPv4Address) {\n fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);\n }\n var allZeroFields = fields.reduce(function (acc, field, index) {\n if (!field || field === \"0\") {\n var lastLongest = acc[acc.length - 1];\n if (lastLongest && lastLongest.index + lastLongest.length === index) {\n lastLongest.length++;\n } else {\n acc.push({ index: index, length: 1 });\n }\n }\n return acc;\n }, []);\n var longestZeroFields = allZeroFields.sort(function (a, b) {\n return b.length - a.length;\n })[0];\n var newHost = void 0;\n if (longestZeroFields && longestZeroFields.length > 1) {\n var newFirst = fields.slice(0, longestZeroFields.index);\n var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);\n newHost = newFirst.join(\":\") + \"::\" + newLast.join(\":\");\n } else {\n newHost = fields.join(\":\");\n }\n if (zone) {\n newHost += \"%\" + zone;\n }\n return newHost;\n } else {\n return host;\n }\n}\nvar URI_PARSE = /^(?:([^:\\/?#]+):)?(?:\\/\\/((?:([^\\/?#@]*)@)?(\\[[^\\/?#\\]]+\\]|[^\\/?#:]*)(?:\\:(\\d*))?))?([^?#]*)(?:\\?([^#]*))?(?:#((?:.|\\n|\\r)*))?/i;\nvar NO_MATCH_IS_UNDEFINED = \"\".match(/(){0}/)[1] === undefined;\nfunction parse(uriString) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var components = {};\n var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;\n if (options.reference === \"suffix\") uriString = (options.scheme ? options.scheme + \":\" : \"\") + \"//\" + uriString;\n var matches = uriString.match(URI_PARSE);\n if (matches) {\n if (NO_MATCH_IS_UNDEFINED) {\n //store each component\n components.scheme = matches[1];\n components.userinfo = matches[3];\n components.host = matches[4];\n components.port = parseInt(matches[5], 10);\n components.path = matches[6] || \"\";\n components.query = matches[7];\n components.fragment = matches[8];\n //fix port number\n if (isNaN(components.port)) {\n components.port = matches[5];\n }\n } else {\n //IE FIX for improper RegExp matching\n //store each component\n components.scheme = matches[1] || undefined;\n components.userinfo = uriString.indexOf(\"@\") !== -1 ? matches[3] : undefined;\n components.host = uriString.indexOf(\"//\") !== -1 ? matches[4] : undefined;\n components.port = parseInt(matches[5], 10);\n components.path = matches[6] || \"\";\n components.query = uriString.indexOf(\"?\") !== -1 ? matches[7] : undefined;\n components.fragment = uriString.indexOf(\"#\") !== -1 ? matches[8] : undefined;\n //fix port number\n if (isNaN(components.port)) {\n components.port = uriString.match(/\\/\\/(?:.|\\n)*\\:(?:\\/|\\?|\\#|$)/) ? matches[4] : undefined;\n }\n }\n if (components.host) {\n //normalize IP hosts\n components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);\n }\n //determine reference type\n if (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) {\n components.reference = \"same-document\";\n } else if (components.scheme === undefined) {\n components.reference = \"relative\";\n } else if (components.fragment === undefined) {\n components.reference = \"absolute\";\n } else {\n components.reference = \"uri\";\n }\n //check for reference errors\n if (options.reference && options.reference !== \"suffix\" && options.reference !== components.reference) {\n components.error = components.error || \"URI is not a \" + options.reference + \" reference.\";\n }\n //find scheme handler\n var schemeHandler = SCHEMES[(options.scheme || components.scheme || \"\").toLowerCase()];\n //check if scheme can't handle IRIs\n if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {\n //if host component is a domain name\n if (components.host && (options.domainHost || schemeHandler && schemeHandler.domainHost)) {\n //convert Unicode IDN -> ASCII IDN\n try {\n components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());\n } catch (e) {\n components.error = components.error || \"Host's domain name can not be converted to ASCII via punycode: \" + e;\n }\n }\n //convert IRI -> URI\n _normalizeComponentEncoding(components, URI_PROTOCOL);\n } else {\n //normalize encodings\n _normalizeComponentEncoding(components, protocol);\n }\n //perform scheme specific parsing\n if (schemeHandler && schemeHandler.parse) {\n schemeHandler.parse(components, options);\n }\n } else {\n components.error = components.error || \"URI can not be parsed.\";\n }\n return components;\n}\n\nfunction _recomposeAuthority(components, options) {\n var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;\n var uriTokens = [];\n if (components.userinfo !== undefined) {\n uriTokens.push(components.userinfo);\n uriTokens.push(\"@\");\n }\n if (components.host !== undefined) {\n //normalize IP hosts, add brackets and escape zone separator for IPv6\n uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, function (_, $1, $2) {\n return \"[\" + $1 + ($2 ? \"%25\" + $2 : \"\") + \"]\";\n }));\n }\n if (typeof components.port === \"number\") {\n uriTokens.push(\":\");\n uriTokens.push(components.port.toString(10));\n }\n return uriTokens.length ? uriTokens.join(\"\") : undefined;\n}\n\nvar RDS1 = /^\\.\\.?\\//;\nvar RDS2 = /^\\/\\.(\\/|$)/;\nvar RDS3 = /^\\/\\.\\.(\\/|$)/;\nvar RDS5 = /^\\/?(?:.|\\n)*?(?=\\/|$)/;\nfunction removeDotSegments(input) {\n var output = [];\n while (input.length) {\n if (input.match(RDS1)) {\n input = input.replace(RDS1, \"\");\n } else if (input.match(RDS2)) {\n input = input.replace(RDS2, \"/\");\n } else if (input.match(RDS3)) {\n input = input.replace(RDS3, \"/\");\n output.pop();\n } else if (input === \".\" || input === \"..\") {\n input = \"\";\n } else {\n var im = input.match(RDS5);\n if (im) {\n var s = im[0];\n input = input.slice(s.length);\n output.push(s);\n } else {\n throw new Error(\"Unexpected dot segment condition\");\n }\n }\n }\n return output.join(\"\");\n}\n\nfunction serialize(components) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL;\n var uriTokens = [];\n //find scheme handler\n var schemeHandler = SCHEMES[(options.scheme || components.scheme || \"\").toLowerCase()];\n //perform scheme specific serialization\n if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);\n if (components.host) {\n //if host component is an IPv6 address\n if (protocol.IPV6ADDRESS.test(components.host)) {}\n //TODO: normalize IPv6 address as per RFC 5952\n\n //if host component is a domain name\n else if (options.domainHost || schemeHandler && schemeHandler.domainHost) {\n //convert IDN via punycode\n try {\n components.host = !options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host);\n } catch (e) {\n components.error = components.error || \"Host's domain name can not be converted to \" + (!options.iri ? \"ASCII\" : \"Unicode\") + \" via punycode: \" + e;\n }\n }\n }\n //normalize encoding\n _normalizeComponentEncoding(components, protocol);\n if (options.reference !== \"suffix\" && components.scheme) {\n uriTokens.push(components.scheme);\n uriTokens.push(\":\");\n }\n var authority = _recomposeAuthority(components, options);\n if (authority !== undefined) {\n if (options.reference !== \"suffix\") {\n uriTokens.push(\"//\");\n }\n uriTokens.push(authority);\n if (components.path && components.path.charAt(0) !== \"/\") {\n uriTokens.push(\"/\");\n }\n }\n if (components.path !== undefined) {\n var s = components.path;\n if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {\n s = removeDotSegments(s);\n }\n if (authority === undefined) {\n s = s.replace(/^\\/\\//, \"/%2F\"); //don't allow the path to start with \"//\"\n }\n uriTokens.push(s);\n }\n if (components.query !== undefined) {\n uriTokens.push(\"?\");\n uriTokens.push(components.query);\n }\n if (components.fragment !== undefined) {\n uriTokens.push(\"#\");\n uriTokens.push(components.fragment);\n }\n return uriTokens.join(\"\"); //merge tokens into a string\n}\n\nfunction resolveComponents(base, relative) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var skipNormalization = arguments[3];\n\n var target = {};\n if (!skipNormalization) {\n base = parse(serialize(base, options), options); //normalize base components\n relative = parse(serialize(relative, options), options); //normalize relative components\n }\n options = options || {};\n if (!options.tolerant && relative.scheme) {\n target.scheme = relative.scheme;\n //target.authority = relative.authority;\n target.userinfo = relative.userinfo;\n target.host = relative.host;\n target.port = relative.port;\n target.path = removeDotSegments(relative.path || \"\");\n target.query = relative.query;\n } else {\n if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {\n //target.authority = relative.authority;\n target.userinfo = relative.userinfo;\n target.host = relative.host;\n target.port = relative.port;\n target.path = removeDotSegments(relative.path || \"\");\n target.query = relative.query;\n } else {\n if (!relative.path) {\n target.path = base.path;\n if (relative.query !== undefined) {\n target.query = relative.query;\n } else {\n target.query = base.query;\n }\n } else {\n if (relative.path.charAt(0) === \"/\") {\n target.path = removeDotSegments(relative.path);\n } else {\n if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {\n target.path = \"/\" + relative.path;\n } else if (!base.path) {\n target.path = relative.path;\n } else {\n target.path = base.path.slice(0, base.path.lastIndexOf(\"/\") + 1) + relative.path;\n }\n target.path = removeDotSegments(target.path);\n }\n target.query = relative.query;\n }\n //target.authority = base.authority;\n target.userinfo = base.userinfo;\n target.host = base.host;\n target.port = base.port;\n }\n target.scheme = base.scheme;\n }\n target.fragment = relative.fragment;\n return target;\n}\n\nfunction resolve(baseURI, relativeURI, options) {\n var schemelessOptions = assign({ scheme: 'null' }, options);\n return serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);\n}\n\nfunction normalize(uri, options) {\n if (typeof uri === \"string\") {\n uri = serialize(parse(uri, options), options);\n } else if (typeOf(uri) === \"object\") {\n uri = parse(serialize(uri, options), options);\n }\n return uri;\n}\n\nfunction equal(uriA, uriB, options) {\n if (typeof uriA === \"string\") {\n uriA = serialize(parse(uriA, options), options);\n } else if (typeOf(uriA) === \"object\") {\n uriA = serialize(uriA, options);\n }\n if (typeof uriB === \"string\") {\n uriB = serialize(parse(uriB, options), options);\n } else if (typeOf(uriB) === \"object\") {\n uriB = serialize(uriB, options);\n }\n return uriA === uriB;\n}\n\nfunction escapeComponent(str, options) {\n return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE, pctEncChar);\n}\n\nfunction unescapeComponent(str, options) {\n return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED, pctDecChars);\n}\n\nvar handler = {\n scheme: \"http\",\n domainHost: true,\n parse: function parse(components, options) {\n //report missing host\n if (!components.host) {\n components.error = components.error || \"HTTP URIs must have a host.\";\n }\n return components;\n },\n serialize: function serialize(components, options) {\n //normalize the default port\n if (components.port === (String(components.scheme).toLowerCase() !== \"https\" ? 80 : 443) || components.port === \"\") {\n components.port = undefined;\n }\n //normalize the empty path\n if (!components.path) {\n components.path = \"/\";\n }\n //NOTE: We do not parse query strings for HTTP URIs\n //as WWW Form Url Encoded query strings are part of the HTML4+ spec,\n //and not the HTTP spec.\n return components;\n }\n};\n\nvar handler$1 = {\n scheme: \"https\",\n domainHost: handler.domainHost,\n parse: handler.parse,\n serialize: handler.serialize\n};\n\nvar O = {};\nvar isIRI = true;\n//RFC 3986\nvar UNRESERVED$$ = \"[A-Za-z0-9\\\\-\\\\.\\\\_\\\\~\" + (isIRI ? \"\\\\xA0-\\\\u200D\\\\u2010-\\\\u2029\\\\u202F-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFEF\" : \"\") + \"]\";\nvar HEXDIG$$ = \"[0-9A-Fa-f]\"; //case-insensitive\nvar PCT_ENCODED$ = subexp(subexp(\"%[EFef]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%[89A-Fa-f]\" + HEXDIG$$ + \"%\" + HEXDIG$$ + HEXDIG$$) + \"|\" + subexp(\"%\" + HEXDIG$$ + HEXDIG$$)); //expanded\n//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; =\n//const ATEXT$$ = \"[A-Za-z0-9\\\\!\\\\#\\\\$\\\\%\\\\&\\\\'\\\\*\\\\+\\\\-\\\\/\\\\=\\\\?\\\\^\\\\_\\\\`\\\\{\\\\|\\\\}\\\\~]\";\n//const WSP$$ = \"[\\\\x20\\\\x09]\";\n//const OBS_QTEXT$$ = \"[\\\\x01-\\\\x08\\\\x0B\\\\x0C\\\\x0E-\\\\x1F\\\\x7F]\"; //(%d1-8 / %d11-12 / %d14-31 / %d127)\n//const QTEXT$$ = merge(\"[\\\\x21\\\\x23-\\\\x5B\\\\x5D-\\\\x7E]\", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext\n//const VCHAR$$ = \"[\\\\x21-\\\\x7E]\";\n//const WSP$$ = \"[\\\\x20\\\\x09]\";\n//const OBS_QP$ = subexp(\"\\\\\\\\\" + merge(\"[\\\\x00\\\\x0D\\\\x0A]\", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext\n//const FWS$ = subexp(subexp(WSP$$ + \"*\" + \"\\\\x0D\\\\x0A\") + \"?\" + WSP$$ + \"+\");\n//const QUOTED_PAIR$ = subexp(subexp(\"\\\\\\\\\" + subexp(VCHAR$$ + \"|\" + WSP$$)) + \"|\" + OBS_QP$);\n//const QUOTED_STRING$ = subexp('\\\\\"' + subexp(FWS$ + \"?\" + QCONTENT$) + \"*\" + FWS$ + \"?\" + '\\\\\"');\nvar ATEXT$$ = \"[A-Za-z0-9\\\\!\\\\$\\\\%\\\\'\\\\*\\\\+\\\\-\\\\^\\\\_\\\\`\\\\{\\\\|\\\\}\\\\~]\";\nvar QTEXT$$ = \"[\\\\!\\\\$\\\\%\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\-\\\\.0-9\\\\<\\\\>A-Z\\\\x5E-\\\\x7E]\";\nvar VCHAR$$ = merge(QTEXT$$, \"[\\\\\\\"\\\\\\\\]\");\nvar SOME_DELIMS$$ = \"[\\\\!\\\\$\\\\'\\\\(\\\\)\\\\*\\\\+\\\\,\\\\;\\\\:\\\\@]\";\nvar UNRESERVED = new RegExp(UNRESERVED$$, \"g\");\nvar PCT_ENCODED = new RegExp(PCT_ENCODED$, \"g\");\nvar NOT_LOCAL_PART = new RegExp(merge(\"[^]\", ATEXT$$, \"[\\\\.]\", '[\\\\\"]', VCHAR$$), \"g\");\nvar NOT_HFNAME = new RegExp(merge(\"[^]\", UNRESERVED$$, SOME_DELIMS$$), \"g\");\nvar NOT_HFVALUE = NOT_HFNAME;\nfunction decodeUnreserved(str) {\n var decStr = pctDecChars(str);\n return !decStr.match(UNRESERVED) ? str : decStr;\n}\nvar handler$2 = {\n scheme: \"mailto\",\n parse: function parse$$1(components, options) {\n var mailtoComponents = components;\n var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(\",\") : [];\n mailtoComponents.path = undefined;\n if (mailtoComponents.query) {\n var unknownHeaders = false;\n var headers = {};\n var hfields = mailtoComponents.query.split(\"&\");\n for (var x = 0, xl = hfields.length; x < xl; ++x) {\n var hfield = hfields[x].split(\"=\");\n switch (hfield[0]) {\n case \"to\":\n var toAddrs = hfield[1].split(\",\");\n for (var _x = 0, _xl = toAddrs.length; _x < _xl; ++_x) {\n to.push(toAddrs[_x]);\n }\n break;\n case \"subject\":\n mailtoComponents.subject = unescapeComponent(hfield[1], options);\n break;\n case \"body\":\n mailtoComponents.body = unescapeComponent(hfield[1], options);\n break;\n default:\n unknownHeaders = true;\n headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);\n break;\n }\n }\n if (unknownHeaders) mailtoComponents.headers = headers;\n }\n mailtoComponents.query = undefined;\n for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) {\n var addr = to[_x2].split(\"@\");\n addr[0] = unescapeComponent(addr[0]);\n if (!options.unicodeSupport) {\n //convert Unicode IDN -> ASCII IDN\n try {\n addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());\n } catch (e) {\n mailtoComponents.error = mailtoComponents.error || \"Email address's domain name can not be converted to ASCII via punycode: \" + e;\n }\n } else {\n addr[1] = unescapeComponent(addr[1], options).toLowerCase();\n }\n to[_x2] = addr.join(\"@\");\n }\n return mailtoComponents;\n },\n serialize: function serialize$$1(mailtoComponents, options) {\n var components = mailtoComponents;\n var to = toArray(mailtoComponents.to);\n if (to) {\n for (var x = 0, xl = to.length; x < xl; ++x) {\n var toAddr = String(to[x]);\n var atIdx = toAddr.lastIndexOf(\"@\");\n var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);\n var domain = toAddr.slice(atIdx + 1);\n //convert IDN via punycode\n try {\n domain = !options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain);\n } catch (e) {\n components.error = components.error || \"Email address's domain name can not be converted to \" + (!options.iri ? \"ASCII\" : \"Unicode\") + \" via punycode: \" + e;\n }\n to[x] = localPart + \"@\" + domain;\n }\n components.path = to.join(\",\");\n }\n var headers = mailtoComponents.headers = mailtoComponents.headers || {};\n if (mailtoComponents.subject) headers[\"subject\"] = mailtoComponents.subject;\n if (mailtoComponents.body) headers[\"body\"] = mailtoComponents.body;\n var fields = [];\n for (var name in headers) {\n if (headers[name] !== O[name]) {\n fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + \"=\" + headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar));\n }\n }\n if (fields.length) {\n components.query = fields.join(\"&\");\n }\n return components;\n }\n};\n\nvar URN_PARSE = /^([^\\:]+)\\:(.*)/;\n//RFC 2141\nvar handler$3 = {\n scheme: \"urn\",\n parse: function parse$$1(components, options) {\n var matches = components.path && components.path.match(URN_PARSE);\n var urnComponents = components;\n if (matches) {\n var scheme = options.scheme || urnComponents.scheme || \"urn\";\n var nid = matches[1].toLowerCase();\n var nss = matches[2];\n var urnScheme = scheme + \":\" + (options.nid || nid);\n var schemeHandler = SCHEMES[urnScheme];\n urnComponents.nid = nid;\n urnComponents.nss = nss;\n urnComponents.path = undefined;\n if (schemeHandler) {\n urnComponents = schemeHandler.parse(urnComponents, options);\n }\n } else {\n urnComponents.error = urnComponents.error || \"URN can not be parsed.\";\n }\n return urnComponents;\n },\n serialize: function serialize$$1(urnComponents, options) {\n var scheme = options.scheme || urnComponents.scheme || \"urn\";\n var nid = urnComponents.nid;\n var urnScheme = scheme + \":\" + (options.nid || nid);\n var schemeHandler = SCHEMES[urnScheme];\n if (schemeHandler) {\n urnComponents = schemeHandler.serialize(urnComponents, options);\n }\n var uriComponents = urnComponents;\n var nss = urnComponents.nss;\n uriComponents.path = (nid || options.nid) + \":\" + nss;\n return uriComponents;\n }\n};\n\nvar UUID = /^[0-9A-Fa-f]{8}(?:\\-[0-9A-Fa-f]{4}){3}\\-[0-9A-Fa-f]{12}$/;\n//RFC 4122\nvar handler$4 = {\n scheme: \"urn:uuid\",\n parse: function parse(urnComponents, options) {\n var uuidComponents = urnComponents;\n uuidComponents.uuid = uuidComponents.nss;\n uuidComponents.nss = undefined;\n if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {\n uuidComponents.error = uuidComponents.error || \"UUID is not valid.\";\n }\n return uuidComponents;\n },\n serialize: function serialize(uuidComponents, options) {\n var urnComponents = uuidComponents;\n //normalize UUID\n urnComponents.nss = (uuidComponents.uuid || \"\").toLowerCase();\n return urnComponents;\n }\n};\n\nSCHEMES[handler.scheme] = handler;\nSCHEMES[handler$1.scheme] = handler$1;\nSCHEMES[handler$2.scheme] = handler$2;\nSCHEMES[handler$3.scheme] = handler$3;\nSCHEMES[handler$4.scheme] = handler$4;\n\nexports.SCHEMES = SCHEMES;\nexports.pctEncChar = pctEncChar;\nexports.pctDecChars = pctDecChars;\nexports.parse = parse;\nexports.removeDotSegments = removeDotSegments;\nexports.serialize = serialize;\nexports.resolveComponents = resolveComponents;\nexports.resolve = resolve;\nexports.normalize = normalize;\nexports.equal = equal;\nexports.escapeComponent = escapeComponent;\nexports.unescapeComponent = unescapeComponent;\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n})));\n//# sourceMappingURL=uri.all.js.map\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n","'use strict';\n\n/*eslint-disable no-use-before-define*/\n\nvar common = require('./common');\nvar YAMLException = require('./exception');\nvar DEFAULT_FULL_SCHEMA = require('./schema/default_full');\nvar DEFAULT_SAFE_SCHEMA = require('./schema/default_safe');\n\nvar _toString = Object.prototype.toString;\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar CHAR_TAB = 0x09; /* Tab */\nvar CHAR_LINE_FEED = 0x0A; /* LF */\nvar CHAR_CARRIAGE_RETURN = 0x0D; /* CR */\nvar CHAR_SPACE = 0x20; /* Space */\nvar CHAR_EXCLAMATION = 0x21; /* ! */\nvar CHAR_DOUBLE_QUOTE = 0x22; /* \" */\nvar CHAR_SHARP = 0x23; /* # */\nvar CHAR_PERCENT = 0x25; /* % */\nvar CHAR_AMPERSAND = 0x26; /* & */\nvar CHAR_SINGLE_QUOTE = 0x27; /* ' */\nvar CHAR_ASTERISK = 0x2A; /* * */\nvar CHAR_COMMA = 0x2C; /* , */\nvar CHAR_MINUS = 0x2D; /* - */\nvar CHAR_COLON = 0x3A; /* : */\nvar CHAR_EQUALS = 0x3D; /* = */\nvar CHAR_GREATER_THAN = 0x3E; /* > */\nvar CHAR_QUESTION = 0x3F; /* ? */\nvar CHAR_COMMERCIAL_AT = 0x40; /* @ */\nvar CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */\nvar CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */\nvar CHAR_GRAVE_ACCENT = 0x60; /* ` */\nvar CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */\nvar CHAR_VERTICAL_LINE = 0x7C; /* | */\nvar CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */\n\nvar ESCAPE_SEQUENCES = {};\n\nESCAPE_SEQUENCES[0x00] = '\\\\0';\nESCAPE_SEQUENCES[0x07] = '\\\\a';\nESCAPE_SEQUENCES[0x08] = '\\\\b';\nESCAPE_SEQUENCES[0x09] = '\\\\t';\nESCAPE_SEQUENCES[0x0A] = '\\\\n';\nESCAPE_SEQUENCES[0x0B] = '\\\\v';\nESCAPE_SEQUENCES[0x0C] = '\\\\f';\nESCAPE_SEQUENCES[0x0D] = '\\\\r';\nESCAPE_SEQUENCES[0x1B] = '\\\\e';\nESCAPE_SEQUENCES[0x22] = '\\\\\"';\nESCAPE_SEQUENCES[0x5C] = '\\\\\\\\';\nESCAPE_SEQUENCES[0x85] = '\\\\N';\nESCAPE_SEQUENCES[0xA0] = '\\\\_';\nESCAPE_SEQUENCES[0x2028] = '\\\\L';\nESCAPE_SEQUENCES[0x2029] = '\\\\P';\n\nvar DEPRECATED_BOOLEANS_SYNTAX = [\n 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',\n 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'\n];\n\nfunction compileStyleMap(schema, map) {\n var result, keys, index, length, tag, style, type;\n\n if (map === null) return {};\n\n result = {};\n keys = Object.keys(map);\n\n for (index = 0, length = keys.length; index < length; index += 1) {\n tag = keys[index];\n style = String(map[tag]);\n\n if (tag.slice(0, 2) === '!!') {\n tag = 'tag:yaml.org,2002:' + tag.slice(2);\n }\n type = schema.compiledTypeMap['fallback'][tag];\n\n if (type && _hasOwnProperty.call(type.styleAliases, style)) {\n style = type.styleAliases[style];\n }\n\n result[tag] = style;\n }\n\n return result;\n}\n\nfunction encodeHex(character) {\n var string, handle, length;\n\n string = character.toString(16).toUpperCase();\n\n if (character <= 0xFF) {\n handle = 'x';\n length = 2;\n } else if (character <= 0xFFFF) {\n handle = 'u';\n length = 4;\n } else if (character <= 0xFFFFFFFF) {\n handle = 'U';\n length = 8;\n } else {\n throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF');\n }\n\n return '\\\\' + handle + common.repeat('0', length - string.length) + string;\n}\n\nfunction State(options) {\n this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;\n this.indent = Math.max(1, (options['indent'] || 2));\n this.noArrayIndent = options['noArrayIndent'] || false;\n this.skipInvalid = options['skipInvalid'] || false;\n this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);\n this.styleMap = compileStyleMap(this.schema, options['styles'] || null);\n this.sortKeys = options['sortKeys'] || false;\n this.lineWidth = options['lineWidth'] || 80;\n this.noRefs = options['noRefs'] || false;\n this.noCompatMode = options['noCompatMode'] || false;\n this.condenseFlow = options['condenseFlow'] || false;\n\n this.implicitTypes = this.schema.compiledImplicit;\n this.explicitTypes = this.schema.compiledExplicit;\n\n this.tag = null;\n this.result = '';\n\n this.duplicates = [];\n this.usedDuplicates = null;\n}\n\n// Indents every line in a string. Empty lines (\\n only) are not indented.\nfunction indentString(string, spaces) {\n var ind = common.repeat(' ', spaces),\n position = 0,\n next = -1,\n result = '',\n line,\n length = string.length;\n\n while (position < length) {\n next = string.indexOf('\\n', position);\n if (next === -1) {\n line = string.slice(position);\n position = length;\n } else {\n line = string.slice(position, next + 1);\n position = next + 1;\n }\n\n if (line.length && line !== '\\n') result += ind;\n\n result += line;\n }\n\n return result;\n}\n\nfunction generateNextLine(state, level) {\n return '\\n' + common.repeat(' ', state.indent * level);\n}\n\nfunction testImplicitResolving(state, str) {\n var index, length, type;\n\n for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {\n type = state.implicitTypes[index];\n\n if (type.resolve(str)) {\n return true;\n }\n }\n\n return false;\n}\n\n// [33] s-white ::= s-space | s-tab\nfunction isWhitespace(c) {\n return c === CHAR_SPACE || c === CHAR_TAB;\n}\n\n// Returns true if the character can be printed without escaping.\n// From YAML 1.2: \"any allowed characters known to be non-printable\n// should also be escaped. [However,] This isn’t mandatory\"\n// Derived from nb-char - \\t - #x85 - #xA0 - #x2028 - #x2029.\nfunction isPrintable(c) {\n return (0x00020 <= c && c <= 0x00007E)\n || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029)\n || ((0x0E000 <= c && c <= 0x00FFFD) && c !== 0xFEFF /* BOM */)\n || (0x10000 <= c && c <= 0x10FFFF);\n}\n\n// [34] ns-char ::= nb-char - s-white\n// [27] nb-char ::= c-printable - b-char - c-byte-order-mark\n// [26] b-char ::= b-line-feed | b-carriage-return\n// [24] b-line-feed ::= #xA /* LF */\n// [25] b-carriage-return ::= #xD /* CR */\n// [3] c-byte-order-mark ::= #xFEFF\nfunction isNsChar(c) {\n return isPrintable(c) && !isWhitespace(c)\n // byte-order-mark\n && c !== 0xFEFF\n // b-char\n && c !== CHAR_CARRIAGE_RETURN\n && c !== CHAR_LINE_FEED;\n}\n\n// Simplified test for values allowed after the first character in plain style.\nfunction isPlainSafe(c, prev) {\n // Uses a subset of nb-char - c-flow-indicator - \":\" - \"#\"\n // where nb-char ::= c-printable - b-char - c-byte-order-mark.\n return isPrintable(c) && c !== 0xFEFF\n // - c-flow-indicator\n && c !== CHAR_COMMA\n && c !== CHAR_LEFT_SQUARE_BRACKET\n && c !== CHAR_RIGHT_SQUARE_BRACKET\n && c !== CHAR_LEFT_CURLY_BRACKET\n && c !== CHAR_RIGHT_CURLY_BRACKET\n // - \":\" - \"#\"\n // /* An ns-char preceding */ \"#\"\n && c !== CHAR_COLON\n && ((c !== CHAR_SHARP) || (prev && isNsChar(prev)));\n}\n\n// Simplified test for values allowed as the first character in plain style.\nfunction isPlainSafeFirst(c) {\n // Uses a subset of ns-char - c-indicator\n // where ns-char = nb-char - s-white.\n return isPrintable(c) && c !== 0xFEFF\n && !isWhitespace(c) // - s-white\n // - (c-indicator ::=\n // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”\n && c !== CHAR_MINUS\n && c !== CHAR_QUESTION\n && c !== CHAR_COLON\n && c !== CHAR_COMMA\n && c !== CHAR_LEFT_SQUARE_BRACKET\n && c !== CHAR_RIGHT_SQUARE_BRACKET\n && c !== CHAR_LEFT_CURLY_BRACKET\n && c !== CHAR_RIGHT_CURLY_BRACKET\n // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “\"”\n && c !== CHAR_SHARP\n && c !== CHAR_AMPERSAND\n && c !== CHAR_ASTERISK\n && c !== CHAR_EXCLAMATION\n && c !== CHAR_VERTICAL_LINE\n && c !== CHAR_EQUALS\n && c !== CHAR_GREATER_THAN\n && c !== CHAR_SINGLE_QUOTE\n && c !== CHAR_DOUBLE_QUOTE\n // | “%” | “@” | “`”)\n && c !== CHAR_PERCENT\n && c !== CHAR_COMMERCIAL_AT\n && c !== CHAR_GRAVE_ACCENT;\n}\n\n// Determines whether block indentation indicator is required.\nfunction needIndentIndicator(string) {\n var leadingSpaceRe = /^\\n* /;\n return leadingSpaceRe.test(string);\n}\n\nvar STYLE_PLAIN = 1,\n STYLE_SINGLE = 2,\n STYLE_LITERAL = 3,\n STYLE_FOLDED = 4,\n STYLE_DOUBLE = 5;\n\n// Determines which scalar styles are possible and returns the preferred style.\n// lineWidth = -1 => no limit.\n// Pre-conditions: str.length > 0.\n// Post-conditions:\n// STYLE_PLAIN or STYLE_SINGLE => no \\n are in the string.\n// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).\n// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1).\nfunction chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType) {\n var i;\n var char, prev_char;\n var hasLineBreak = false;\n var hasFoldableLine = false; // only checked if shouldTrackWidth\n var shouldTrackWidth = lineWidth !== -1;\n var previousLineBreak = -1; // count the first line correctly\n var plain = isPlainSafeFirst(string.charCodeAt(0))\n && !isWhitespace(string.charCodeAt(string.length - 1));\n\n if (singleLineOnly) {\n // Case: no block styles.\n // Check for disallowed characters to rule out plain and single.\n for (i = 0; i < string.length; i++) {\n char = string.charCodeAt(i);\n if (!isPrintable(char)) {\n return STYLE_DOUBLE;\n }\n prev_char = i > 0 ? string.charCodeAt(i - 1) : null;\n plain = plain && isPlainSafe(char, prev_char);\n }\n } else {\n // Case: block styles permitted.\n for (i = 0; i < string.length; i++) {\n char = string.charCodeAt(i);\n if (char === CHAR_LINE_FEED) {\n hasLineBreak = true;\n // Check if any line can be folded.\n if (shouldTrackWidth) {\n hasFoldableLine = hasFoldableLine ||\n // Foldable line = too long, and not more-indented.\n (i - previousLineBreak - 1 > lineWidth &&\n string[previousLineBreak + 1] !== ' ');\n previousLineBreak = i;\n }\n } else if (!isPrintable(char)) {\n return STYLE_DOUBLE;\n }\n prev_char = i > 0 ? string.charCodeAt(i - 1) : null;\n plain = plain && isPlainSafe(char, prev_char);\n }\n // in case the end is missing a \\n\n hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&\n (i - previousLineBreak - 1 > lineWidth &&\n string[previousLineBreak + 1] !== ' '));\n }\n // Although every style can represent \\n without escaping, prefer block styles\n // for multiline, since they're more readable and they don't add empty lines.\n // Also prefer folding a super-long line.\n if (!hasLineBreak && !hasFoldableLine) {\n // Strings interpretable as another type have to be quoted;\n // e.g. the string 'true' vs. the boolean true.\n return plain && !testAmbiguousType(string)\n ? STYLE_PLAIN : STYLE_SINGLE;\n }\n // Edge case: block indentation indicator can only have one digit.\n if (indentPerLevel > 9 && needIndentIndicator(string)) {\n return STYLE_DOUBLE;\n }\n // At this point we know block styles are valid.\n // Prefer literal style unless we want to fold.\n return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;\n}\n\n// Note: line breaking/folding is implemented for only the folded style.\n// NB. We drop the last trailing newline (if any) of a returned block scalar\n// since the dumper adds its own newline. This always works:\n// • No ending newline => unaffected; already using strip \"-\" chomping.\n// • Ending newline => removed then restored.\n// Importantly, this keeps the \"+\" chomp indicator from gaining an extra line.\nfunction writeScalar(state, string, level, iskey) {\n state.dump = (function () {\n if (string.length === 0) {\n return \"''\";\n }\n if (!state.noCompatMode &&\n DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1) {\n return \"'\" + string + \"'\";\n }\n\n var indent = state.indent * Math.max(1, level); // no 0-indent scalars\n // As indentation gets deeper, let the width decrease monotonically\n // to the lower bound min(state.lineWidth, 40).\n // Note that this implies\n // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound.\n // state.lineWidth > 40 + state.indent: width decreases until the lower bound.\n // This behaves better than a constant minimum width which disallows narrower options,\n // or an indent threshold which causes the width to suddenly increase.\n var lineWidth = state.lineWidth === -1\n ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);\n\n // Without knowing if keys are implicit/explicit, assume implicit for safety.\n var singleLineOnly = iskey\n // No block styles in flow mode.\n || (state.flowLevel > -1 && level >= state.flowLevel);\n function testAmbiguity(string) {\n return testImplicitResolving(state, string);\n }\n\n switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, testAmbiguity)) {\n case STYLE_PLAIN:\n return string;\n case STYLE_SINGLE:\n return \"'\" + string.replace(/'/g, \"''\") + \"'\";\n case STYLE_LITERAL:\n return '|' + blockHeader(string, state.indent)\n + dropEndingNewline(indentString(string, indent));\n case STYLE_FOLDED:\n return '>' + blockHeader(string, state.indent)\n + dropEndingNewline(indentString(foldString(string, lineWidth), indent));\n case STYLE_DOUBLE:\n return '\"' + escapeString(string, lineWidth) + '\"';\n default:\n throw new YAMLException('impossible error: invalid scalar style');\n }\n }());\n}\n\n// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.\nfunction blockHeader(string, indentPerLevel) {\n var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : '';\n\n // note the special case: the string '\\n' counts as a \"trailing\" empty line.\n var clip = string[string.length - 1] === '\\n';\n var keep = clip && (string[string.length - 2] === '\\n' || string === '\\n');\n var chomp = keep ? '+' : (clip ? '' : '-');\n\n return indentIndicator + chomp + '\\n';\n}\n\n// (See the note for writeScalar.)\nfunction dropEndingNewline(string) {\n return string[string.length - 1] === '\\n' ? string.slice(0, -1) : string;\n}\n\n// Note: a long line without a suitable break point will exceed the width limit.\n// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.\nfunction foldString(string, width) {\n // In folded style, $k$ consecutive newlines output as $k+1$ newlines—\n // unless they're before or after a more-indented line, or at the very\n // beginning or end, in which case $k$ maps to $k$.\n // Therefore, parse each chunk as newline(s) followed by a content line.\n var lineRe = /(\\n+)([^\\n]*)/g;\n\n // first line (possibly an empty line)\n var result = (function () {\n var nextLF = string.indexOf('\\n');\n nextLF = nextLF !== -1 ? nextLF : string.length;\n lineRe.lastIndex = nextLF;\n return foldLine(string.slice(0, nextLF), width);\n }());\n // If we haven't reached the first content line yet, don't add an extra \\n.\n var prevMoreIndented = string[0] === '\\n' || string[0] === ' ';\n var moreIndented;\n\n // rest of the lines\n var match;\n while ((match = lineRe.exec(string))) {\n var prefix = match[1], line = match[2];\n moreIndented = (line[0] === ' ');\n result += prefix\n + (!prevMoreIndented && !moreIndented && line !== ''\n ? '\\n' : '')\n + foldLine(line, width);\n prevMoreIndented = moreIndented;\n }\n\n return result;\n}\n\n// Greedy line breaking.\n// Picks the longest line under the limit each time,\n// otherwise settles for the shortest line over the limit.\n// NB. More-indented lines *cannot* be folded, as that would add an extra \\n.\nfunction foldLine(line, width) {\n if (line === '' || line[0] === ' ') return line;\n\n // Since a more-indented line adds a \\n, breaks can't be followed by a space.\n var breakRe = / [^ ]/g; // note: the match index will always be <= length-2.\n var match;\n // start is an inclusive index. end, curr, and next are exclusive.\n var start = 0, end, curr = 0, next = 0;\n var result = '';\n\n // Invariants: 0 <= start <= length-1.\n // 0 <= curr <= next <= max(0, length-2). curr - start <= width.\n // Inside the loop:\n // A match implies length >= 2, so curr and next are <= length-2.\n while ((match = breakRe.exec(line))) {\n next = match.index;\n // maintain invariant: curr - start <= width\n if (next - start > width) {\n end = (curr > start) ? curr : next; // derive end <= length-2\n result += '\\n' + line.slice(start, end);\n // skip the space that was output as \\n\n start = end + 1; // derive start <= length-1\n }\n curr = next;\n }\n\n // By the invariants, start <= length-1, so there is something left over.\n // It is either the whole string or a part starting from non-whitespace.\n result += '\\n';\n // Insert a break if the remainder is too long and there is a break available.\n if (line.length - start > width && curr > start) {\n result += line.slice(start, curr) + '\\n' + line.slice(curr + 1);\n } else {\n result += line.slice(start);\n }\n\n return result.slice(1); // drop extra \\n joiner\n}\n\n// Escapes a double-quoted string.\nfunction escapeString(string) {\n var result = '';\n var char, nextChar;\n var escapeSeq;\n\n for (var i = 0; i < string.length; i++) {\n char = string.charCodeAt(i);\n // Check for surrogate pairs (reference Unicode 3.0 section \"3.7 Surrogates\").\n if (char >= 0xD800 && char <= 0xDBFF/* high surrogate */) {\n nextChar = string.charCodeAt(i + 1);\n if (nextChar >= 0xDC00 && nextChar <= 0xDFFF/* low surrogate */) {\n // Combine the surrogate pair and store it escaped.\n result += encodeHex((char - 0xD800) * 0x400 + nextChar - 0xDC00 + 0x10000);\n // Advance index one extra since we already used that char here.\n i++; continue;\n }\n }\n escapeSeq = ESCAPE_SEQUENCES[char];\n result += !escapeSeq && isPrintable(char)\n ? string[i]\n : escapeSeq || encodeHex(char);\n }\n\n return result;\n}\n\nfunction writeFlowSequence(state, level, object) {\n var _result = '',\n _tag = state.tag,\n index,\n length;\n\n for (index = 0, length = object.length; index < length; index += 1) {\n // Write only valid elements.\n if (writeNode(state, level, object[index], false, false)) {\n if (index !== 0) _result += ',' + (!state.condenseFlow ? ' ' : '');\n _result += state.dump;\n }\n }\n\n state.tag = _tag;\n state.dump = '[' + _result + ']';\n}\n\nfunction writeBlockSequence(state, level, object, compact) {\n var _result = '',\n _tag = state.tag,\n index,\n length;\n\n for (index = 0, length = object.length; index < length; index += 1) {\n // Write only valid elements.\n if (writeNode(state, level + 1, object[index], true, true)) {\n if (!compact || index !== 0) {\n _result += generateNextLine(state, level);\n }\n\n if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n _result += '-';\n } else {\n _result += '- ';\n }\n\n _result += state.dump;\n }\n }\n\n state.tag = _tag;\n state.dump = _result || '[]'; // Empty sequence if no valid values.\n}\n\nfunction writeFlowMapping(state, level, object) {\n var _result = '',\n _tag = state.tag,\n objectKeyList = Object.keys(object),\n index,\n length,\n objectKey,\n objectValue,\n pairBuffer;\n\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n\n pairBuffer = '';\n if (index !== 0) pairBuffer += ', ';\n\n if (state.condenseFlow) pairBuffer += '\"';\n\n objectKey = objectKeyList[index];\n objectValue = object[objectKey];\n\n if (!writeNode(state, level, objectKey, false, false)) {\n continue; // Skip this pair because of invalid key;\n }\n\n if (state.dump.length > 1024) pairBuffer += '? ';\n\n pairBuffer += state.dump + (state.condenseFlow ? '\"' : '') + ':' + (state.condenseFlow ? '' : ' ');\n\n if (!writeNode(state, level, objectValue, false, false)) {\n continue; // Skip this pair because of invalid value.\n }\n\n pairBuffer += state.dump;\n\n // Both key and value are valid.\n _result += pairBuffer;\n }\n\n state.tag = _tag;\n state.dump = '{' + _result + '}';\n}\n\nfunction writeBlockMapping(state, level, object, compact) {\n var _result = '',\n _tag = state.tag,\n objectKeyList = Object.keys(object),\n index,\n length,\n objectKey,\n objectValue,\n explicitPair,\n pairBuffer;\n\n // Allow sorting keys so that the output file is deterministic\n if (state.sortKeys === true) {\n // Default sorting\n objectKeyList.sort();\n } else if (typeof state.sortKeys === 'function') {\n // Custom sort function\n objectKeyList.sort(state.sortKeys);\n } else if (state.sortKeys) {\n // Something is wrong\n throw new YAMLException('sortKeys must be a boolean or a function');\n }\n\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n pairBuffer = '';\n\n if (!compact || index !== 0) {\n pairBuffer += generateNextLine(state, level);\n }\n\n objectKey = objectKeyList[index];\n objectValue = object[objectKey];\n\n if (!writeNode(state, level + 1, objectKey, true, true, true)) {\n continue; // Skip this pair because of invalid key.\n }\n\n explicitPair = (state.tag !== null && state.tag !== '?') ||\n (state.dump && state.dump.length > 1024);\n\n if (explicitPair) {\n if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n pairBuffer += '?';\n } else {\n pairBuffer += '? ';\n }\n }\n\n pairBuffer += state.dump;\n\n if (explicitPair) {\n pairBuffer += generateNextLine(state, level);\n }\n\n if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {\n continue; // Skip this pair because of invalid value.\n }\n\n if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n pairBuffer += ':';\n } else {\n pairBuffer += ': ';\n }\n\n pairBuffer += state.dump;\n\n // Both key and value are valid.\n _result += pairBuffer;\n }\n\n state.tag = _tag;\n state.dump = _result || '{}'; // Empty mapping if no valid pairs.\n}\n\nfunction detectType(state, object, explicit) {\n var _result, typeList, index, length, type, style;\n\n typeList = explicit ? state.explicitTypes : state.implicitTypes;\n\n for (index = 0, length = typeList.length; index < length; index += 1) {\n type = typeList[index];\n\n if ((type.instanceOf || type.predicate) &&\n (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&\n (!type.predicate || type.predicate(object))) {\n\n state.tag = explicit ? type.tag : '?';\n\n if (type.represent) {\n style = state.styleMap[type.tag] || type.defaultStyle;\n\n if (_toString.call(type.represent) === '[object Function]') {\n _result = type.represent(object, style);\n } else if (_hasOwnProperty.call(type.represent, style)) {\n _result = type.represent[style](object, style);\n } else {\n throw new YAMLException('!<' + type.tag + '> tag resolver accepts not \"' + style + '\" style');\n }\n\n state.dump = _result;\n }\n\n return true;\n }\n }\n\n return false;\n}\n\n// Serializes `object` and writes it to global `result`.\n// Returns true on success, or false on invalid object.\n//\nfunction writeNode(state, level, object, block, compact, iskey) {\n state.tag = null;\n state.dump = object;\n\n if (!detectType(state, object, false)) {\n detectType(state, object, true);\n }\n\n var type = _toString.call(state.dump);\n\n if (block) {\n block = (state.flowLevel < 0 || state.flowLevel > level);\n }\n\n var objectOrArray = type === '[object Object]' || type === '[object Array]',\n duplicateIndex,\n duplicate;\n\n if (objectOrArray) {\n duplicateIndex = state.duplicates.indexOf(object);\n duplicate = duplicateIndex !== -1;\n }\n\n if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {\n compact = false;\n }\n\n if (duplicate && state.usedDuplicates[duplicateIndex]) {\n state.dump = '*ref_' + duplicateIndex;\n } else {\n if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {\n state.usedDuplicates[duplicateIndex] = true;\n }\n if (type === '[object Object]') {\n if (block && (Object.keys(state.dump).length !== 0)) {\n writeBlockMapping(state, level, state.dump, compact);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + state.dump;\n }\n } else {\n writeFlowMapping(state, level, state.dump);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;\n }\n }\n } else if (type === '[object Array]') {\n var arrayLevel = (state.noArrayIndent && (level > 0)) ? level - 1 : level;\n if (block && (state.dump.length !== 0)) {\n writeBlockSequence(state, arrayLevel, state.dump, compact);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + state.dump;\n }\n } else {\n writeFlowSequence(state, arrayLevel, state.dump);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;\n }\n }\n } else if (type === '[object String]') {\n if (state.tag !== '?') {\n writeScalar(state, state.dump, level, iskey);\n }\n } else {\n if (state.skipInvalid) return false;\n throw new YAMLException('unacceptable kind of an object to dump ' + type);\n }\n\n if (state.tag !== null && state.tag !== '?') {\n state.dump = '!<' + state.tag + '> ' + state.dump;\n }\n }\n\n return true;\n}\n\nfunction getDuplicateReferences(object, state) {\n var objects = [],\n duplicatesIndexes = [],\n index,\n length;\n\n inspectNode(object, objects, duplicatesIndexes);\n\n for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {\n state.duplicates.push(objects[duplicatesIndexes[index]]);\n }\n state.usedDuplicates = new Array(length);\n}\n\nfunction inspectNode(object, objects, duplicatesIndexes) {\n var objectKeyList,\n index,\n length;\n\n if (object !== null && typeof object === 'object') {\n index = objects.indexOf(object);\n if (index !== -1) {\n if (duplicatesIndexes.indexOf(index) === -1) {\n duplicatesIndexes.push(index);\n }\n } else {\n objects.push(object);\n\n if (Array.isArray(object)) {\n for (index = 0, length = object.length; index < length; index += 1) {\n inspectNode(object[index], objects, duplicatesIndexes);\n }\n } else {\n objectKeyList = Object.keys(object);\n\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);\n }\n }\n }\n }\n}\n\nfunction dump(input, options) {\n options = options || {};\n\n var state = new State(options);\n\n if (!state.noRefs) getDuplicateReferences(input, state);\n\n if (writeNode(state, 0, input, true, true)) return state.dump + '\\n';\n\n return '';\n}\n\nfunction safeDump(input, options) {\n return dump(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));\n}\n\nmodule.exports.dump = dump;\nmodule.exports.safeDump = safeDump;\n","const PATTERN_ENV_VER = /\\$\\{\\s*([a-zA-Z_]+[a-zA-Z0-9_]*)\\s*\\}/g;\n\nexport function replaceEnvVer(v: string) {\n return v.replace(PATTERN_ENV_VER, (_, key) => process.env[key] || \"\");\n}\n","// Standard YAML's Failsafe schema.\n// http://www.yaml.org/spec/1.2/spec.html#id2802346\n\n\n'use strict';\n\n\nvar Schema = require('../schema');\n\n\nmodule.exports = new Schema({\n explicit: [\n require('../type/str'),\n require('../type/seq'),\n require('../type/map')\n ]\n});\n","'use strict';\n\nvar Type = require('../type');\n\nvar _toString = Object.prototype.toString;\n\nfunction resolveYamlPairs(data) {\n if (data === null) return true;\n\n var index, length, pair, keys, result,\n object = data;\n\n result = new Array(object.length);\n\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n\n if (_toString.call(pair) !== '[object Object]') return false;\n\n keys = Object.keys(pair);\n\n if (keys.length !== 1) return false;\n\n result[index] = [ keys[0], pair[keys[0]] ];\n }\n\n return true;\n}\n\nfunction constructYamlPairs(data) {\n if (data === null) return [];\n\n var index, length, pair, keys, result,\n object = data;\n\n result = new Array(object.length);\n\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n\n keys = Object.keys(pair);\n\n result[index] = [ keys[0], pair[keys[0]] ];\n }\n\n return result;\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:pairs', {\n kind: 'sequence',\n resolve: resolveYamlPairs,\n construct: constructYamlPairs\n});\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","import { getInput } from \"@actions/core\";\n\nexport type Inputs = {\n configFile: string;\n gpgPassphrase?: string;\n};\n\nfunction getRequiredInput(name: string): string {\n return getInput(name, { required: true });\n}\n\nfunction getOptionalInput(name: string): string | void {\n const value = getInput(name);\n if (value == \"\") {\n return;\n }\n return value;\n}\n\nexport async function loadInputs(): Promise {\n const configFile = getRequiredInput(\"config_file\");\n let result: Inputs = {\n configFile,\n };\n\n const gpgPassphrase = getOptionalInput(\"gpg_passphrase\");\n if (gpgPassphrase) {\n result = { ...result, gpgPassphrase };\n }\n\n return result;\n}\n","var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n","var isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","module.exports = require(\"os\");","'use strict';\nmodule.exports = function generate_anyOf(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $noEmptySchema = $schema.every(function($sch) {\n return (it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all));\n });\n if ($noEmptySchema) {\n var $currentBaseId = $it.baseId;\n out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = false; ';\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n var arr1 = $schema;\n if (arr1) {\n var $sch, $i = -1,\n l1 = arr1.length - 1;\n while ($i < l1) {\n $sch = arr1[$i += 1];\n $it.schema = $sch;\n $it.schemaPath = $schemaPath + '[' + $i + ']';\n $it.errSchemaPath = $errSchemaPath + '/' + $i;\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n out += ' ' + ($valid) + ' = ' + ($valid) + ' || ' + ($nextValid) + '; if (!' + ($valid) + ') { ';\n $closingBraces += '}';\n }\n }\n it.compositeRule = $it.compositeRule = $wasComposite;\n out += ' ' + ($closingBraces) + ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('anyOf') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should match some schema in anyOf\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError(vErrors); ';\n } else {\n out += ' validate.errors = vErrors; return false; ';\n }\n }\n out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';\n if (it.opts.allErrors) {\n out += ' } ';\n }\n } else {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n }\n return out;\n}\n","var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n","var getAllKeys = require('./_getAllKeys');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalObjects;\n","'use strict';\nmodule.exports = function generate_oneOf(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $currentBaseId = $it.baseId,\n $prevValid = 'prevValid' + $lvl,\n $passingSchemas = 'passingSchemas' + $lvl;\n out += 'var ' + ($errs) + ' = errors , ' + ($prevValid) + ' = false , ' + ($valid) + ' = false , ' + ($passingSchemas) + ' = null; ';\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n var arr1 = $schema;\n if (arr1) {\n var $sch, $i = -1,\n l1 = arr1.length - 1;\n while ($i < l1) {\n $sch = arr1[$i += 1];\n if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {\n $it.schema = $sch;\n $it.schemaPath = $schemaPath + '[' + $i + ']';\n $it.errSchemaPath = $errSchemaPath + '/' + $i;\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n } else {\n out += ' var ' + ($nextValid) + ' = true; ';\n }\n if ($i) {\n out += ' if (' + ($nextValid) + ' && ' + ($prevValid) + ') { ' + ($valid) + ' = false; ' + ($passingSchemas) + ' = [' + ($passingSchemas) + ', ' + ($i) + ']; } else { ';\n $closingBraces += '}';\n }\n out += ' if (' + ($nextValid) + ') { ' + ($valid) + ' = ' + ($prevValid) + ' = true; ' + ($passingSchemas) + ' = ' + ($i) + '; }';\n }\n }\n it.compositeRule = $it.compositeRule = $wasComposite;\n out += '' + ($closingBraces) + 'if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('oneOf') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { passingSchemas: ' + ($passingSchemas) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should match exactly one schema in oneOf\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError(vErrors); ';\n } else {\n out += ' validate.errors = vErrors; return false; ';\n }\n }\n out += '} else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; }';\n if (it.opts.allErrors) {\n out += ' } ';\n }\n return out;\n}\n","'use strict';\nmodule.exports = function generate__limitLength(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $errorKeyword;\n var $data = 'data' + ($dataLvl || '');\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n if (!($isData || typeof $schema == 'number')) {\n throw new Error($keyword + ' must be number');\n }\n var $op = $keyword == 'maxLength' ? '>' : '<';\n out += 'if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n }\n if (it.opts.unicode === false) {\n out += ' ' + ($data) + '.length ';\n } else {\n out += ' ucs2length(' + ($data) + ') ';\n }\n out += ' ' + ($op) + ' ' + ($schemaValue) + ') { ';\n var $errorKeyword = $keyword;\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || '_limitLength') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should NOT be ';\n if ($keyword == 'maxLength') {\n out += 'longer';\n } else {\n out += 'shorter';\n }\n out += ' than ';\n if ($isData) {\n out += '\\' + ' + ($schemaValue) + ' + \\'';\n } else {\n out += '' + ($schema);\n }\n out += ' characters\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + ($schema);\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += '} ';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","var Stack = require('./_Stack'),\n baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nmodule.exports = baseIsMatch;\n","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n","'use strict';\nmodule.exports = function generate_comment(it, $keyword, $ruleType) {\n var out = ' ';\n var $schema = it.schema[$keyword];\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $comment = it.util.toQuotedString($schema);\n if (it.opts.$comment === true) {\n out += ' console.log(' + ($comment) + ');';\n } else if (typeof it.opts.$comment == 'function') {\n out += ' self._opts.$comment(' + ($comment) + ', ' + (it.util.toQuotedString($errSchemaPath)) + ', validate.root.schema);';\n }\n return out;\n}\n","'use strict';\n\n\nfunction isNothing(subject) {\n return (typeof subject === 'undefined') || (subject === null);\n}\n\n\nfunction isObject(subject) {\n return (typeof subject === 'object') && (subject !== null);\n}\n\n\nfunction toArray(sequence) {\n if (Array.isArray(sequence)) return sequence;\n else if (isNothing(sequence)) return [];\n\n return [ sequence ];\n}\n\n\nfunction extend(target, source) {\n var index, length, key, sourceKeys;\n\n if (source) {\n sourceKeys = Object.keys(source);\n\n for (index = 0, length = sourceKeys.length; index < length; index += 1) {\n key = sourceKeys[index];\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\n\nfunction repeat(string, count) {\n var result = '', cycle;\n\n for (cycle = 0; cycle < count; cycle += 1) {\n result += string;\n }\n\n return result;\n}\n\n\nfunction isNegativeZero(number) {\n return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);\n}\n\n\nmodule.exports.isNothing = isNothing;\nmodule.exports.isObject = isObject;\nmodule.exports.toArray = toArray;\nmodule.exports.repeat = repeat;\nmodule.exports.isNegativeZero = isNegativeZero;\nmodule.exports.extend = extend;\n","'use strict';\nmodule.exports = function generate__limitProperties(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $errorKeyword;\n var $data = 'data' + ($dataLvl || '');\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n if (!($isData || typeof $schema == 'number')) {\n throw new Error($keyword + ' must be number');\n }\n var $op = $keyword == 'maxProperties' ? '>' : '<';\n out += 'if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n }\n out += ' Object.keys(' + ($data) + ').length ' + ($op) + ' ' + ($schemaValue) + ') { ';\n var $errorKeyword = $keyword;\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || '_limitProperties') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should NOT have ';\n if ($keyword == 'maxProperties') {\n out += 'more';\n } else {\n out += 'fewer';\n }\n out += ' than ';\n if ($isData) {\n out += '\\' + ' + ($schemaValue) + ' + \\'';\n } else {\n out += '' + ($schema);\n }\n out += ' properties\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + ($schema);\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += '} ';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","import { endGroup, startGroup, setFailed } from \"@actions/core\";\n\nimport { ConfigActionError } from \"./errors\";\nimport { loadConfig } from \"./config\";\nimport { loadInputs } from \"./inputs\";\nimport { prepareEnv, prepareFile, prepareMask } from \"./prepare\";\n\nexport async function run(baseDir: string): Promise {\n try {\n const inputs = await loadInputs();\n const config = await loadConfig(baseDir, inputs);\n\n startGroup(\"Setting mask values\");\n await prepareMask(config);\n endGroup();\n startGroup(\"Exporting environment variables\");\n await prepareEnv(config);\n endGroup();\n startGroup(\"Saving defined files\");\n await prepareFile(baseDir, config);\n endGroup();\n } catch (e) {\n setFailed(e);\n }\n}\n\n/* istanbul ignore next */\nif (require.main === module) {\n const baseDir = process.cwd();\n run(baseDir);\n}\n","'use strict';\n\nvar Type = require('../type');\n\nfunction resolveYamlMerge(data) {\n return data === '<<' || data === null;\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:merge', {\n kind: 'scalar',\n resolve: resolveYamlMerge\n});\n","var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","'use strict';\nmodule.exports = function generate_enum(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n var $i = 'i' + $lvl,\n $vSchema = 'schema' + $lvl;\n if (!$isData) {\n out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + ';';\n }\n out += 'var ' + ($valid) + ';';\n if ($isData) {\n out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {';\n }\n out += '' + ($valid) + ' = false;for (var ' + ($i) + '=0; ' + ($i) + '<' + ($vSchema) + '.length; ' + ($i) + '++) if (equal(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + '])) { ' + ($valid) + ' = true; break; }';\n if ($isData) {\n out += ' } ';\n }\n out += ' if (!' + ($valid) + ') { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('enum') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValues: schema' + ($lvl) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be equal to one of the allowed values\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' }';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n","'use strict';\n\nvar Type = require('../type');\n\nmodule.exports = new Type('tag:yaml.org,2002:map', {\n kind: 'mapping',\n construct: function (data) { return data !== null ? data : {}; }\n});\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","// Standard YAML's Core schema.\n// http://www.yaml.org/spec/1.2/spec.html#id2804923\n//\n// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.\n// So, Core schema has no distinctions from JSON schema is JS-YAML.\n\n\n'use strict';\n\n\nvar Schema = require('../schema');\n\n\nmodule.exports = new Schema({\n include: [\n require('./json')\n ]\n});\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst command_1 = require(\"./command\");\nconst os = __importStar(require(\"os\"));\nconst path = __importStar(require(\"path\"));\n/**\n * The code to exit an action\n */\nvar ExitCode;\n(function (ExitCode) {\n /**\n * A code indicating that the action was successful\n */\n ExitCode[ExitCode[\"Success\"] = 0] = \"Success\";\n /**\n * A code indicating that the action was a failure\n */\n ExitCode[ExitCode[\"Failure\"] = 1] = \"Failure\";\n})(ExitCode = exports.ExitCode || (exports.ExitCode = {}));\n//-----------------------------------------------------------------------\n// Variables\n//-----------------------------------------------------------------------\n/**\n * Sets env variable for this action and future actions in the job\n * @param name the name of the variable to set\n * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction exportVariable(name, val) {\n const convertedVal = command_1.toCommandValue(val);\n process.env[name] = convertedVal;\n command_1.issueCommand('set-env', { name }, convertedVal);\n}\nexports.exportVariable = exportVariable;\n/**\n * Registers a secret which will get masked from logs\n * @param secret value of the secret\n */\nfunction setSecret(secret) {\n command_1.issueCommand('add-mask', {}, secret);\n}\nexports.setSecret = setSecret;\n/**\n * Prepends inputPath to the PATH (for this action and future actions)\n * @param inputPath\n */\nfunction addPath(inputPath) {\n command_1.issueCommand('add-path', {}, inputPath);\n process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;\n}\nexports.addPath = addPath;\n/**\n * Gets the value of an input. The value is also trimmed.\n *\n * @param name name of the input to get\n * @param options optional. See InputOptions.\n * @returns string\n */\nfunction getInput(name, options) {\n const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';\n if (options && options.required && !val) {\n throw new Error(`Input required and not supplied: ${name}`);\n }\n return val.trim();\n}\nexports.getInput = getInput;\n/**\n * Sets the value of an output.\n *\n * @param name name of the output to set\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction setOutput(name, value) {\n command_1.issueCommand('set-output', { name }, value);\n}\nexports.setOutput = setOutput;\n/**\n * Enables or disables the echoing of commands into stdout for the rest of the step.\n * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.\n *\n */\nfunction setCommandEcho(enabled) {\n command_1.issue('echo', enabled ? 'on' : 'off');\n}\nexports.setCommandEcho = setCommandEcho;\n//-----------------------------------------------------------------------\n// Results\n//-----------------------------------------------------------------------\n/**\n * Sets the action status to failed.\n * When the action exits it will be with an exit code of 1\n * @param message add error issue message\n */\nfunction setFailed(message) {\n process.exitCode = ExitCode.Failure;\n error(message);\n}\nexports.setFailed = setFailed;\n//-----------------------------------------------------------------------\n// Logging Commands\n//-----------------------------------------------------------------------\n/**\n * Gets whether Actions Step Debug is on or not\n */\nfunction isDebug() {\n return process.env['RUNNER_DEBUG'] === '1';\n}\nexports.isDebug = isDebug;\n/**\n * Writes debug message to user log\n * @param message debug message\n */\nfunction debug(message) {\n command_1.issueCommand('debug', {}, message);\n}\nexports.debug = debug;\n/**\n * Adds an error issue\n * @param message error issue message. Errors will be converted to string via toString()\n */\nfunction error(message) {\n command_1.issue('error', message instanceof Error ? message.toString() : message);\n}\nexports.error = error;\n/**\n * Adds an warning issue\n * @param message warning issue message. Errors will be converted to string via toString()\n */\nfunction warning(message) {\n command_1.issue('warning', message instanceof Error ? message.toString() : message);\n}\nexports.warning = warning;\n/**\n * Writes info to log with console.log.\n * @param message info message\n */\nfunction info(message) {\n process.stdout.write(message + os.EOL);\n}\nexports.info = info;\n/**\n * Begin an output group.\n *\n * Output until the next `groupEnd` will be foldable in this group\n *\n * @param name The name of the output group\n */\nfunction startGroup(name) {\n command_1.issue('group', name);\n}\nexports.startGroup = startGroup;\n/**\n * End an output group.\n */\nfunction endGroup() {\n command_1.issue('endgroup');\n}\nexports.endGroup = endGroup;\n/**\n * Wrap an asynchronous function call in a group.\n *\n * Returns the same type as the function itself.\n *\n * @param name The name of the group\n * @param fn The function to wrap in the group\n */\nfunction group(name, fn) {\n return __awaiter(this, void 0, void 0, function* () {\n startGroup(name);\n let result;\n try {\n result = yield fn();\n }\n finally {\n endGroup();\n }\n return result;\n });\n}\nexports.group = group;\n//-----------------------------------------------------------------------\n// Wrapper action state\n//-----------------------------------------------------------------------\n/**\n * Saves state for current action, the state can only be retrieved by this action's post job execution.\n *\n * @param name name of the state to store\n * @param value value to store. Non-string values will be converted to a string via JSON.stringify\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction saveState(name, value) {\n command_1.issueCommand('save-state', { name }, value);\n}\nexports.saveState = saveState;\n/**\n * Gets the value of an state set by this action's main execution.\n *\n * @param name name of the state to get\n * @returns string\n */\nfunction getState(name) {\n return process.env[`STATE_${name}`] || '';\n}\nexports.getState = getState;\n//# sourceMappingURL=core.js.map","'use strict';\n\n/*eslint-disable max-len,no-use-before-define*/\n\nvar common = require('./common');\nvar YAMLException = require('./exception');\nvar Mark = require('./mark');\nvar DEFAULT_SAFE_SCHEMA = require('./schema/default_safe');\nvar DEFAULT_FULL_SCHEMA = require('./schema/default_full');\n\n\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\n\n\nvar CONTEXT_FLOW_IN = 1;\nvar CONTEXT_FLOW_OUT = 2;\nvar CONTEXT_BLOCK_IN = 3;\nvar CONTEXT_BLOCK_OUT = 4;\n\n\nvar CHOMPING_CLIP = 1;\nvar CHOMPING_STRIP = 2;\nvar CHOMPING_KEEP = 3;\n\n\nvar PATTERN_NON_PRINTABLE = /[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F-\\x84\\x86-\\x9F\\uFFFE\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/;\nvar PATTERN_NON_ASCII_LINE_BREAKS = /[\\x85\\u2028\\u2029]/;\nvar PATTERN_FLOW_INDICATORS = /[,\\[\\]\\{\\}]/;\nvar PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\\-]+!)$/i;\nvar PATTERN_TAG_URI = /^(?:!|[^,\\[\\]\\{\\}])(?:%[0-9a-f]{2}|[0-9a-z\\-#;\\/\\?:@&=\\+\\$,_\\.!~\\*'\\(\\)\\[\\]])*$/i;\n\n\nfunction _class(obj) { return Object.prototype.toString.call(obj); }\n\nfunction is_EOL(c) {\n return (c === 0x0A/* LF */) || (c === 0x0D/* CR */);\n}\n\nfunction is_WHITE_SPACE(c) {\n return (c === 0x09/* Tab */) || (c === 0x20/* Space */);\n}\n\nfunction is_WS_OR_EOL(c) {\n return (c === 0x09/* Tab */) ||\n (c === 0x20/* Space */) ||\n (c === 0x0A/* LF */) ||\n (c === 0x0D/* CR */);\n}\n\nfunction is_FLOW_INDICATOR(c) {\n return c === 0x2C/* , */ ||\n c === 0x5B/* [ */ ||\n c === 0x5D/* ] */ ||\n c === 0x7B/* { */ ||\n c === 0x7D/* } */;\n}\n\nfunction fromHexCode(c) {\n var lc;\n\n if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {\n return c - 0x30;\n }\n\n /*eslint-disable no-bitwise*/\n lc = c | 0x20;\n\n if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) {\n return lc - 0x61 + 10;\n }\n\n return -1;\n}\n\nfunction escapedHexLen(c) {\n if (c === 0x78/* x */) { return 2; }\n if (c === 0x75/* u */) { return 4; }\n if (c === 0x55/* U */) { return 8; }\n return 0;\n}\n\nfunction fromDecimalCode(c) {\n if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {\n return c - 0x30;\n }\n\n return -1;\n}\n\nfunction simpleEscapeSequence(c) {\n /* eslint-disable indent */\n return (c === 0x30/* 0 */) ? '\\x00' :\n (c === 0x61/* a */) ? '\\x07' :\n (c === 0x62/* b */) ? '\\x08' :\n (c === 0x74/* t */) ? '\\x09' :\n (c === 0x09/* Tab */) ? '\\x09' :\n (c === 0x6E/* n */) ? '\\x0A' :\n (c === 0x76/* v */) ? '\\x0B' :\n (c === 0x66/* f */) ? '\\x0C' :\n (c === 0x72/* r */) ? '\\x0D' :\n (c === 0x65/* e */) ? '\\x1B' :\n (c === 0x20/* Space */) ? ' ' :\n (c === 0x22/* \" */) ? '\\x22' :\n (c === 0x2F/* / */) ? '/' :\n (c === 0x5C/* \\ */) ? '\\x5C' :\n (c === 0x4E/* N */) ? '\\x85' :\n (c === 0x5F/* _ */) ? '\\xA0' :\n (c === 0x4C/* L */) ? '\\u2028' :\n (c === 0x50/* P */) ? '\\u2029' : '';\n}\n\nfunction charFromCodepoint(c) {\n if (c <= 0xFFFF) {\n return String.fromCharCode(c);\n }\n // Encode UTF-16 surrogate pair\n // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF\n return String.fromCharCode(\n ((c - 0x010000) >> 10) + 0xD800,\n ((c - 0x010000) & 0x03FF) + 0xDC00\n );\n}\n\nvar simpleEscapeCheck = new Array(256); // integer, for fast access\nvar simpleEscapeMap = new Array(256);\nfor (var i = 0; i < 256; i++) {\n simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;\n simpleEscapeMap[i] = simpleEscapeSequence(i);\n}\n\n\nfunction State(input, options) {\n this.input = input;\n\n this.filename = options['filename'] || null;\n this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;\n this.onWarning = options['onWarning'] || null;\n this.legacy = options['legacy'] || false;\n this.json = options['json'] || false;\n this.listener = options['listener'] || null;\n\n this.implicitTypes = this.schema.compiledImplicit;\n this.typeMap = this.schema.compiledTypeMap;\n\n this.length = input.length;\n this.position = 0;\n this.line = 0;\n this.lineStart = 0;\n this.lineIndent = 0;\n\n this.documents = [];\n\n /*\n this.version;\n this.checkLineBreaks;\n this.tagMap;\n this.anchorMap;\n this.tag;\n this.anchor;\n this.kind;\n this.result;*/\n\n}\n\n\nfunction generateError(state, message) {\n return new YAMLException(\n message,\n new Mark(state.filename, state.input, state.position, state.line, (state.position - state.lineStart)));\n}\n\nfunction throwError(state, message) {\n throw generateError(state, message);\n}\n\nfunction throwWarning(state, message) {\n if (state.onWarning) {\n state.onWarning.call(null, generateError(state, message));\n }\n}\n\n\nvar directiveHandlers = {\n\n YAML: function handleYamlDirective(state, name, args) {\n\n var match, major, minor;\n\n if (state.version !== null) {\n throwError(state, 'duplication of %YAML directive');\n }\n\n if (args.length !== 1) {\n throwError(state, 'YAML directive accepts exactly one argument');\n }\n\n match = /^([0-9]+)\\.([0-9]+)$/.exec(args[0]);\n\n if (match === null) {\n throwError(state, 'ill-formed argument of the YAML directive');\n }\n\n major = parseInt(match[1], 10);\n minor = parseInt(match[2], 10);\n\n if (major !== 1) {\n throwError(state, 'unacceptable YAML version of the document');\n }\n\n state.version = args[0];\n state.checkLineBreaks = (minor < 2);\n\n if (minor !== 1 && minor !== 2) {\n throwWarning(state, 'unsupported YAML version of the document');\n }\n },\n\n TAG: function handleTagDirective(state, name, args) {\n\n var handle, prefix;\n\n if (args.length !== 2) {\n throwError(state, 'TAG directive accepts exactly two arguments');\n }\n\n handle = args[0];\n prefix = args[1];\n\n if (!PATTERN_TAG_HANDLE.test(handle)) {\n throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');\n }\n\n if (_hasOwnProperty.call(state.tagMap, handle)) {\n throwError(state, 'there is a previously declared suffix for \"' + handle + '\" tag handle');\n }\n\n if (!PATTERN_TAG_URI.test(prefix)) {\n throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');\n }\n\n state.tagMap[handle] = prefix;\n }\n};\n\n\nfunction captureSegment(state, start, end, checkJson) {\n var _position, _length, _character, _result;\n\n if (start < end) {\n _result = state.input.slice(start, end);\n\n if (checkJson) {\n for (_position = 0, _length = _result.length; _position < _length; _position += 1) {\n _character = _result.charCodeAt(_position);\n if (!(_character === 0x09 ||\n (0x20 <= _character && _character <= 0x10FFFF))) {\n throwError(state, 'expected valid JSON character');\n }\n }\n } else if (PATTERN_NON_PRINTABLE.test(_result)) {\n throwError(state, 'the stream contains non-printable characters');\n }\n\n state.result += _result;\n }\n}\n\nfunction mergeMappings(state, destination, source, overridableKeys) {\n var sourceKeys, key, index, quantity;\n\n if (!common.isObject(source)) {\n throwError(state, 'cannot merge mappings; the provided source object is unacceptable');\n }\n\n sourceKeys = Object.keys(source);\n\n for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {\n key = sourceKeys[index];\n\n if (!_hasOwnProperty.call(destination, key)) {\n destination[key] = source[key];\n overridableKeys[key] = true;\n }\n }\n}\n\nfunction storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startPos) {\n var index, quantity;\n\n // The output is a plain object here, so keys can only be strings.\n // We need to convert keyNode to a string, but doing so can hang the process\n // (deeply nested arrays that explode exponentially using aliases).\n if (Array.isArray(keyNode)) {\n keyNode = Array.prototype.slice.call(keyNode);\n\n for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {\n if (Array.isArray(keyNode[index])) {\n throwError(state, 'nested arrays are not supported inside keys');\n }\n\n if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') {\n keyNode[index] = '[object Object]';\n }\n }\n }\n\n // Avoid code execution in load() via toString property\n // (still use its own toString for arrays, timestamps,\n // and whatever user schema extensions happen to have @@toStringTag)\n if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') {\n keyNode = '[object Object]';\n }\n\n\n keyNode = String(keyNode);\n\n if (_result === null) {\n _result = {};\n }\n\n if (keyTag === 'tag:yaml.org,2002:merge') {\n if (Array.isArray(valueNode)) {\n for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {\n mergeMappings(state, _result, valueNode[index], overridableKeys);\n }\n } else {\n mergeMappings(state, _result, valueNode, overridableKeys);\n }\n } else {\n if (!state.json &&\n !_hasOwnProperty.call(overridableKeys, keyNode) &&\n _hasOwnProperty.call(_result, keyNode)) {\n state.line = startLine || state.line;\n state.position = startPos || state.position;\n throwError(state, 'duplicated mapping key');\n }\n _result[keyNode] = valueNode;\n delete overridableKeys[keyNode];\n }\n\n return _result;\n}\n\nfunction readLineBreak(state) {\n var ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === 0x0A/* LF */) {\n state.position++;\n } else if (ch === 0x0D/* CR */) {\n state.position++;\n if (state.input.charCodeAt(state.position) === 0x0A/* LF */) {\n state.position++;\n }\n } else {\n throwError(state, 'a line break is expected');\n }\n\n state.line += 1;\n state.lineStart = state.position;\n}\n\nfunction skipSeparationSpace(state, allowComments, checkIndent) {\n var lineBreaks = 0,\n ch = state.input.charCodeAt(state.position);\n\n while (ch !== 0) {\n while (is_WHITE_SPACE(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (allowComments && ch === 0x23/* # */) {\n do {\n ch = state.input.charCodeAt(++state.position);\n } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0);\n }\n\n if (is_EOL(ch)) {\n readLineBreak(state);\n\n ch = state.input.charCodeAt(state.position);\n lineBreaks++;\n state.lineIndent = 0;\n\n while (ch === 0x20/* Space */) {\n state.lineIndent++;\n ch = state.input.charCodeAt(++state.position);\n }\n } else {\n break;\n }\n }\n\n if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {\n throwWarning(state, 'deficient indentation');\n }\n\n return lineBreaks;\n}\n\nfunction testDocumentSeparator(state) {\n var _position = state.position,\n ch;\n\n ch = state.input.charCodeAt(_position);\n\n // Condition state.position === state.lineStart is tested\n // in parent on each call, for efficiency. No needs to test here again.\n if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) &&\n ch === state.input.charCodeAt(_position + 1) &&\n ch === state.input.charCodeAt(_position + 2)) {\n\n _position += 3;\n\n ch = state.input.charCodeAt(_position);\n\n if (ch === 0 || is_WS_OR_EOL(ch)) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction writeFoldedLines(state, count) {\n if (count === 1) {\n state.result += ' ';\n } else if (count > 1) {\n state.result += common.repeat('\\n', count - 1);\n }\n}\n\n\nfunction readPlainScalar(state, nodeIndent, withinFlowCollection) {\n var preceding,\n following,\n captureStart,\n captureEnd,\n hasPendingContent,\n _line,\n _lineStart,\n _lineIndent,\n _kind = state.kind,\n _result = state.result,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (is_WS_OR_EOL(ch) ||\n is_FLOW_INDICATOR(ch) ||\n ch === 0x23/* # */ ||\n ch === 0x26/* & */ ||\n ch === 0x2A/* * */ ||\n ch === 0x21/* ! */ ||\n ch === 0x7C/* | */ ||\n ch === 0x3E/* > */ ||\n ch === 0x27/* ' */ ||\n ch === 0x22/* \" */ ||\n ch === 0x25/* % */ ||\n ch === 0x40/* @ */ ||\n ch === 0x60/* ` */) {\n return false;\n }\n\n if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) {\n following = state.input.charCodeAt(state.position + 1);\n\n if (is_WS_OR_EOL(following) ||\n withinFlowCollection && is_FLOW_INDICATOR(following)) {\n return false;\n }\n }\n\n state.kind = 'scalar';\n state.result = '';\n captureStart = captureEnd = state.position;\n hasPendingContent = false;\n\n while (ch !== 0) {\n if (ch === 0x3A/* : */) {\n following = state.input.charCodeAt(state.position + 1);\n\n if (is_WS_OR_EOL(following) ||\n withinFlowCollection && is_FLOW_INDICATOR(following)) {\n break;\n }\n\n } else if (ch === 0x23/* # */) {\n preceding = state.input.charCodeAt(state.position - 1);\n\n if (is_WS_OR_EOL(preceding)) {\n break;\n }\n\n } else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||\n withinFlowCollection && is_FLOW_INDICATOR(ch)) {\n break;\n\n } else if (is_EOL(ch)) {\n _line = state.line;\n _lineStart = state.lineStart;\n _lineIndent = state.lineIndent;\n skipSeparationSpace(state, false, -1);\n\n if (state.lineIndent >= nodeIndent) {\n hasPendingContent = true;\n ch = state.input.charCodeAt(state.position);\n continue;\n } else {\n state.position = captureEnd;\n state.line = _line;\n state.lineStart = _lineStart;\n state.lineIndent = _lineIndent;\n break;\n }\n }\n\n if (hasPendingContent) {\n captureSegment(state, captureStart, captureEnd, false);\n writeFoldedLines(state, state.line - _line);\n captureStart = captureEnd = state.position;\n hasPendingContent = false;\n }\n\n if (!is_WHITE_SPACE(ch)) {\n captureEnd = state.position + 1;\n }\n\n ch = state.input.charCodeAt(++state.position);\n }\n\n captureSegment(state, captureStart, captureEnd, false);\n\n if (state.result) {\n return true;\n }\n\n state.kind = _kind;\n state.result = _result;\n return false;\n}\n\nfunction readSingleQuotedScalar(state, nodeIndent) {\n var ch,\n captureStart, captureEnd;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x27/* ' */) {\n return false;\n }\n\n state.kind = 'scalar';\n state.result = '';\n state.position++;\n captureStart = captureEnd = state.position;\n\n while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n if (ch === 0x27/* ' */) {\n captureSegment(state, captureStart, state.position, true);\n ch = state.input.charCodeAt(++state.position);\n\n if (ch === 0x27/* ' */) {\n captureStart = state.position;\n state.position++;\n captureEnd = state.position;\n } else {\n return true;\n }\n\n } else if (is_EOL(ch)) {\n captureSegment(state, captureStart, captureEnd, true);\n writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));\n captureStart = captureEnd = state.position;\n\n } else if (state.position === state.lineStart && testDocumentSeparator(state)) {\n throwError(state, 'unexpected end of the document within a single quoted scalar');\n\n } else {\n state.position++;\n captureEnd = state.position;\n }\n }\n\n throwError(state, 'unexpected end of the stream within a single quoted scalar');\n}\n\nfunction readDoubleQuotedScalar(state, nodeIndent) {\n var captureStart,\n captureEnd,\n hexLength,\n hexResult,\n tmp,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x22/* \" */) {\n return false;\n }\n\n state.kind = 'scalar';\n state.result = '';\n state.position++;\n captureStart = captureEnd = state.position;\n\n while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n if (ch === 0x22/* \" */) {\n captureSegment(state, captureStart, state.position, true);\n state.position++;\n return true;\n\n } else if (ch === 0x5C/* \\ */) {\n captureSegment(state, captureStart, state.position, true);\n ch = state.input.charCodeAt(++state.position);\n\n if (is_EOL(ch)) {\n skipSeparationSpace(state, false, nodeIndent);\n\n // TODO: rework to inline fn with no type cast?\n } else if (ch < 256 && simpleEscapeCheck[ch]) {\n state.result += simpleEscapeMap[ch];\n state.position++;\n\n } else if ((tmp = escapedHexLen(ch)) > 0) {\n hexLength = tmp;\n hexResult = 0;\n\n for (; hexLength > 0; hexLength--) {\n ch = state.input.charCodeAt(++state.position);\n\n if ((tmp = fromHexCode(ch)) >= 0) {\n hexResult = (hexResult << 4) + tmp;\n\n } else {\n throwError(state, 'expected hexadecimal character');\n }\n }\n\n state.result += charFromCodepoint(hexResult);\n\n state.position++;\n\n } else {\n throwError(state, 'unknown escape sequence');\n }\n\n captureStart = captureEnd = state.position;\n\n } else if (is_EOL(ch)) {\n captureSegment(state, captureStart, captureEnd, true);\n writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));\n captureStart = captureEnd = state.position;\n\n } else if (state.position === state.lineStart && testDocumentSeparator(state)) {\n throwError(state, 'unexpected end of the document within a double quoted scalar');\n\n } else {\n state.position++;\n captureEnd = state.position;\n }\n }\n\n throwError(state, 'unexpected end of the stream within a double quoted scalar');\n}\n\nfunction readFlowCollection(state, nodeIndent) {\n var readNext = true,\n _line,\n _tag = state.tag,\n _result,\n _anchor = state.anchor,\n following,\n terminator,\n isPair,\n isExplicitPair,\n isMapping,\n overridableKeys = {},\n keyNode,\n keyTag,\n valueNode,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === 0x5B/* [ */) {\n terminator = 0x5D;/* ] */\n isMapping = false;\n _result = [];\n } else if (ch === 0x7B/* { */) {\n terminator = 0x7D;/* } */\n isMapping = true;\n _result = {};\n } else {\n return false;\n }\n\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = _result;\n }\n\n ch = state.input.charCodeAt(++state.position);\n\n while (ch !== 0) {\n skipSeparationSpace(state, true, nodeIndent);\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === terminator) {\n state.position++;\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = isMapping ? 'mapping' : 'sequence';\n state.result = _result;\n return true;\n } else if (!readNext) {\n throwError(state, 'missed comma between flow collection entries');\n }\n\n keyTag = keyNode = valueNode = null;\n isPair = isExplicitPair = false;\n\n if (ch === 0x3F/* ? */) {\n following = state.input.charCodeAt(state.position + 1);\n\n if (is_WS_OR_EOL(following)) {\n isPair = isExplicitPair = true;\n state.position++;\n skipSeparationSpace(state, true, nodeIndent);\n }\n }\n\n _line = state.line;\n composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);\n keyTag = state.tag;\n keyNode = state.result;\n skipSeparationSpace(state, true, nodeIndent);\n\n ch = state.input.charCodeAt(state.position);\n\n if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) {\n isPair = true;\n ch = state.input.charCodeAt(++state.position);\n skipSeparationSpace(state, true, nodeIndent);\n composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);\n valueNode = state.result;\n }\n\n if (isMapping) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode);\n } else if (isPair) {\n _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode));\n } else {\n _result.push(keyNode);\n }\n\n skipSeparationSpace(state, true, nodeIndent);\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === 0x2C/* , */) {\n readNext = true;\n ch = state.input.charCodeAt(++state.position);\n } else {\n readNext = false;\n }\n }\n\n throwError(state, 'unexpected end of the stream within a flow collection');\n}\n\nfunction readBlockScalar(state, nodeIndent) {\n var captureStart,\n folding,\n chomping = CHOMPING_CLIP,\n didReadContent = false,\n detectedIndent = false,\n textIndent = nodeIndent,\n emptyLines = 0,\n atMoreIndented = false,\n tmp,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch === 0x7C/* | */) {\n folding = false;\n } else if (ch === 0x3E/* > */) {\n folding = true;\n } else {\n return false;\n }\n\n state.kind = 'scalar';\n state.result = '';\n\n while (ch !== 0) {\n ch = state.input.charCodeAt(++state.position);\n\n if (ch === 0x2B/* + */ || ch === 0x2D/* - */) {\n if (CHOMPING_CLIP === chomping) {\n chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP;\n } else {\n throwError(state, 'repeat of a chomping mode identifier');\n }\n\n } else if ((tmp = fromDecimalCode(ch)) >= 0) {\n if (tmp === 0) {\n throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');\n } else if (!detectedIndent) {\n textIndent = nodeIndent + tmp - 1;\n detectedIndent = true;\n } else {\n throwError(state, 'repeat of an indentation width identifier');\n }\n\n } else {\n break;\n }\n }\n\n if (is_WHITE_SPACE(ch)) {\n do { ch = state.input.charCodeAt(++state.position); }\n while (is_WHITE_SPACE(ch));\n\n if (ch === 0x23/* # */) {\n do { ch = state.input.charCodeAt(++state.position); }\n while (!is_EOL(ch) && (ch !== 0));\n }\n }\n\n while (ch !== 0) {\n readLineBreak(state);\n state.lineIndent = 0;\n\n ch = state.input.charCodeAt(state.position);\n\n while ((!detectedIndent || state.lineIndent < textIndent) &&\n (ch === 0x20/* Space */)) {\n state.lineIndent++;\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (!detectedIndent && state.lineIndent > textIndent) {\n textIndent = state.lineIndent;\n }\n\n if (is_EOL(ch)) {\n emptyLines++;\n continue;\n }\n\n // End of the scalar.\n if (state.lineIndent < textIndent) {\n\n // Perform the chomping.\n if (chomping === CHOMPING_KEEP) {\n state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n } else if (chomping === CHOMPING_CLIP) {\n if (didReadContent) { // i.e. only if the scalar is not empty.\n state.result += '\\n';\n }\n }\n\n // Break this `while` cycle and go to the funciton's epilogue.\n break;\n }\n\n // Folded style: use fancy rules to handle line breaks.\n if (folding) {\n\n // Lines starting with white space characters (more-indented lines) are not folded.\n if (is_WHITE_SPACE(ch)) {\n atMoreIndented = true;\n // except for the first content line (cf. Example 8.1)\n state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n\n // End of more-indented block.\n } else if (atMoreIndented) {\n atMoreIndented = false;\n state.result += common.repeat('\\n', emptyLines + 1);\n\n // Just one line break - perceive as the same line.\n } else if (emptyLines === 0) {\n if (didReadContent) { // i.e. only if we have already read some scalar content.\n state.result += ' ';\n }\n\n // Several line breaks - perceive as different lines.\n } else {\n state.result += common.repeat('\\n', emptyLines);\n }\n\n // Literal style: just add exact number of line breaks between content lines.\n } else {\n // Keep all line breaks except the header line break.\n state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n }\n\n didReadContent = true;\n detectedIndent = true;\n emptyLines = 0;\n captureStart = state.position;\n\n while (!is_EOL(ch) && (ch !== 0)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n captureSegment(state, captureStart, state.position, false);\n }\n\n return true;\n}\n\nfunction readBlockSequence(state, nodeIndent) {\n var _line,\n _tag = state.tag,\n _anchor = state.anchor,\n _result = [],\n following,\n detected = false,\n ch;\n\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = _result;\n }\n\n ch = state.input.charCodeAt(state.position);\n\n while (ch !== 0) {\n\n if (ch !== 0x2D/* - */) {\n break;\n }\n\n following = state.input.charCodeAt(state.position + 1);\n\n if (!is_WS_OR_EOL(following)) {\n break;\n }\n\n detected = true;\n state.position++;\n\n if (skipSeparationSpace(state, true, -1)) {\n if (state.lineIndent <= nodeIndent) {\n _result.push(null);\n ch = state.input.charCodeAt(state.position);\n continue;\n }\n }\n\n _line = state.line;\n composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);\n _result.push(state.result);\n skipSeparationSpace(state, true, -1);\n\n ch = state.input.charCodeAt(state.position);\n\n if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {\n throwError(state, 'bad indentation of a sequence entry');\n } else if (state.lineIndent < nodeIndent) {\n break;\n }\n }\n\n if (detected) {\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = 'sequence';\n state.result = _result;\n return true;\n }\n return false;\n}\n\nfunction readBlockMapping(state, nodeIndent, flowIndent) {\n var following,\n allowCompact,\n _line,\n _pos,\n _tag = state.tag,\n _anchor = state.anchor,\n _result = {},\n overridableKeys = {},\n keyTag = null,\n keyNode = null,\n valueNode = null,\n atExplicitKey = false,\n detected = false,\n ch;\n\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = _result;\n }\n\n ch = state.input.charCodeAt(state.position);\n\n while (ch !== 0) {\n following = state.input.charCodeAt(state.position + 1);\n _line = state.line; // Save the current line.\n _pos = state.position;\n\n //\n // Explicit notation case. There are two separate blocks:\n // first for the key (denoted by \"?\") and second for the value (denoted by \":\")\n //\n if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) {\n\n if (ch === 0x3F/* ? */) {\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);\n keyTag = keyNode = valueNode = null;\n }\n\n detected = true;\n atExplicitKey = true;\n allowCompact = true;\n\n } else if (atExplicitKey) {\n // i.e. 0x3A/* : */ === character after the explicit key.\n atExplicitKey = false;\n allowCompact = true;\n\n } else {\n throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line');\n }\n\n state.position += 1;\n ch = following;\n\n //\n // Implicit notation case. Flow-style node as the key first, then \":\", and the value.\n //\n } else if (composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {\n\n if (state.line === _line) {\n ch = state.input.charCodeAt(state.position);\n\n while (is_WHITE_SPACE(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (ch === 0x3A/* : */) {\n ch = state.input.charCodeAt(++state.position);\n\n if (!is_WS_OR_EOL(ch)) {\n throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');\n }\n\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);\n keyTag = keyNode = valueNode = null;\n }\n\n detected = true;\n atExplicitKey = false;\n allowCompact = false;\n keyTag = state.tag;\n keyNode = state.result;\n\n } else if (detected) {\n throwError(state, 'can not read an implicit mapping pair; a colon is missed');\n\n } else {\n state.tag = _tag;\n state.anchor = _anchor;\n return true; // Keep the result of `composeNode`.\n }\n\n } else if (detected) {\n throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');\n\n } else {\n state.tag = _tag;\n state.anchor = _anchor;\n return true; // Keep the result of `composeNode`.\n }\n\n } else {\n break; // Reading is done. Go to the epilogue.\n }\n\n //\n // Common reading code for both explicit and implicit notations.\n //\n if (state.line === _line || state.lineIndent > nodeIndent) {\n if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {\n if (atExplicitKey) {\n keyNode = state.result;\n } else {\n valueNode = state.result;\n }\n }\n\n if (!atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _pos);\n keyTag = keyNode = valueNode = null;\n }\n\n skipSeparationSpace(state, true, -1);\n ch = state.input.charCodeAt(state.position);\n }\n\n if (state.lineIndent > nodeIndent && (ch !== 0)) {\n throwError(state, 'bad indentation of a mapping entry');\n } else if (state.lineIndent < nodeIndent) {\n break;\n }\n }\n\n //\n // Epilogue.\n //\n\n // Special case: last mapping's node contains only the key in explicit notation.\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);\n }\n\n // Expose the resulting mapping.\n if (detected) {\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = 'mapping';\n state.result = _result;\n }\n\n return detected;\n}\n\nfunction readTagProperty(state) {\n var _position,\n isVerbatim = false,\n isNamed = false,\n tagHandle,\n tagName,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x21/* ! */) return false;\n\n if (state.tag !== null) {\n throwError(state, 'duplication of a tag property');\n }\n\n ch = state.input.charCodeAt(++state.position);\n\n if (ch === 0x3C/* < */) {\n isVerbatim = true;\n ch = state.input.charCodeAt(++state.position);\n\n } else if (ch === 0x21/* ! */) {\n isNamed = true;\n tagHandle = '!!';\n ch = state.input.charCodeAt(++state.position);\n\n } else {\n tagHandle = '!';\n }\n\n _position = state.position;\n\n if (isVerbatim) {\n do { ch = state.input.charCodeAt(++state.position); }\n while (ch !== 0 && ch !== 0x3E/* > */);\n\n if (state.position < state.length) {\n tagName = state.input.slice(_position, state.position);\n ch = state.input.charCodeAt(++state.position);\n } else {\n throwError(state, 'unexpected end of the stream within a verbatim tag');\n }\n } else {\n while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n\n if (ch === 0x21/* ! */) {\n if (!isNamed) {\n tagHandle = state.input.slice(_position - 1, state.position + 1);\n\n if (!PATTERN_TAG_HANDLE.test(tagHandle)) {\n throwError(state, 'named tag handle cannot contain such characters');\n }\n\n isNamed = true;\n _position = state.position + 1;\n } else {\n throwError(state, 'tag suffix cannot contain exclamation marks');\n }\n }\n\n ch = state.input.charCodeAt(++state.position);\n }\n\n tagName = state.input.slice(_position, state.position);\n\n if (PATTERN_FLOW_INDICATORS.test(tagName)) {\n throwError(state, 'tag suffix cannot contain flow indicator characters');\n }\n }\n\n if (tagName && !PATTERN_TAG_URI.test(tagName)) {\n throwError(state, 'tag name cannot contain such characters: ' + tagName);\n }\n\n if (isVerbatim) {\n state.tag = tagName;\n\n } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {\n state.tag = state.tagMap[tagHandle] + tagName;\n\n } else if (tagHandle === '!') {\n state.tag = '!' + tagName;\n\n } else if (tagHandle === '!!') {\n state.tag = 'tag:yaml.org,2002:' + tagName;\n\n } else {\n throwError(state, 'undeclared tag handle \"' + tagHandle + '\"');\n }\n\n return true;\n}\n\nfunction readAnchorProperty(state) {\n var _position,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x26/* & */) return false;\n\n if (state.anchor !== null) {\n throwError(state, 'duplication of an anchor property');\n }\n\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n\n while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (state.position === _position) {\n throwError(state, 'name of an anchor node must contain at least one character');\n }\n\n state.anchor = state.input.slice(_position, state.position);\n return true;\n}\n\nfunction readAlias(state) {\n var _position, alias,\n ch;\n\n ch = state.input.charCodeAt(state.position);\n\n if (ch !== 0x2A/* * */) return false;\n\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n\n while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (state.position === _position) {\n throwError(state, 'name of an alias node must contain at least one character');\n }\n\n alias = state.input.slice(_position, state.position);\n\n if (!state.anchorMap.hasOwnProperty(alias)) {\n throwError(state, 'unidentified alias \"' + alias + '\"');\n }\n\n state.result = state.anchorMap[alias];\n skipSeparationSpace(state, true, -1);\n return true;\n}\n\nfunction composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {\n var allowBlockStyles,\n allowBlockScalars,\n allowBlockCollections,\n indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) {\n indentStatus = 1;\n } else if (state.lineIndent === parentIndent) {\n indentStatus = 0;\n } else if (state.lineIndent < parentIndent) {\n indentStatus = -1;\n }\n }\n }\n\n if (indentStatus === 1) {\n while (readTagProperty(state) || readAnchorProperty(state)) {\n if (skipSeparationSpace(state, true, -1)) {\n atNewLine = true;\n allowBlockCollections = allowBlockStyles;\n\n if (state.lineIndent > parentIndent) {\n indentStatus = 1;\n } else if (state.lineIndent === parentIndent) {\n indentStatus = 0;\n } else if (state.lineIndent < parentIndent) {\n indentStatus = -1;\n }\n } else {\n allowBlockCollections = false;\n }\n }\n }\n\n if (allowBlockCollections) {\n allowBlockCollections = atNewLine || allowCompact;\n }\n\n if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {\n if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {\n flowIndent = parentIndent;\n } else {\n flowIndent = parentIndent + 1;\n }\n\n blockIndent = state.position - state.lineStart;\n\n if (indentStatus === 1) {\n if (allowBlockCollections &&\n (readBlockSequence(state, blockIndent) ||\n readBlockMapping(state, blockIndent, flowIndent)) ||\n readFlowCollection(state, flowIndent)) {\n hasContent = true;\n } else {\n if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||\n readSingleQuotedScalar(state, flowIndent) ||\n readDoubleQuotedScalar(state, flowIndent)) {\n hasContent = true;\n\n } else if (readAlias(state)) {\n hasContent = true;\n\n if (state.tag !== null || state.anchor !== null) {\n throwError(state, 'alias node should not have any properties');\n }\n\n } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {\n hasContent = true;\n\n if (state.tag === null) {\n state.tag = '?';\n }\n }\n\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n }\n } else if (indentStatus === 0) {\n // Special case: block sequences are allowed to have same indentation level as the parent.\n // http://www.yaml.org/spec/1.2/spec.html#id2799784\n hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);\n }\n }\n\n if (state.tag !== null && state.tag !== '!') {\n if (state.tag === '?') {\n // Implicit resolving is not allowed for non-scalar types, and '?'\n // non-specific tag is only automatically assigned to plain scalars.\n //\n // We only need to check kind conformity in case user explicitly assigns '?'\n // tag, for example like this: \"! [0]\"\n //\n if (state.result !== null && state.kind !== 'scalar') {\n throwError(state, 'unacceptable node kind for ! tag; it should be \"scalar\", not \"' + state.kind + '\"');\n }\n\n for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {\n type = state.implicitTypes[typeIndex];\n\n if (type.resolve(state.result)) { // `state.result` updated in resolver if matched\n state.result = type.construct(state.result);\n state.tag = type.tag;\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n break;\n }\n }\n } else if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) {\n type = state.typeMap[state.kind || 'fallback'][state.tag];\n\n if (state.result !== null && type.kind !== state.kind) {\n throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be \"' + type.kind + '\", not \"' + state.kind + '\"');\n }\n\n if (!type.resolve(state.result)) { // `state.result` updated in resolver if matched\n throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');\n } else {\n state.result = type.construct(state.result);\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n }\n } else {\n throwError(state, 'unknown tag !<' + state.tag + '>');\n }\n }\n\n if (state.listener !== null) {\n state.listener('close', state);\n }\n return state.tag !== null || state.anchor !== null || hasContent;\n}\n\nfunction readDocument(state) {\n var documentStart = state.position,\n _position,\n directiveName,\n directiveArgs,\n hasDirectives = false,\n ch;\n\n state.version = null;\n state.checkLineBreaks = state.legacy;\n state.tagMap = {};\n state.anchorMap = {};\n\n while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n skipSeparationSpace(state, true, -1);\n\n ch = state.input.charCodeAt(state.position);\n\n if (state.lineIndent > 0 || ch !== 0x25/* % */) {\n break;\n }\n\n hasDirectives = true;\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n\n while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n directiveName = state.input.slice(_position, state.position);\n directiveArgs = [];\n\n if (directiveName.length < 1) {\n throwError(state, 'directive name must not be less than one character in length');\n }\n\n while (ch !== 0) {\n while (is_WHITE_SPACE(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n if (ch === 0x23/* # */) {\n do { ch = state.input.charCodeAt(++state.position); }\n while (ch !== 0 && !is_EOL(ch));\n break;\n }\n\n if (is_EOL(ch)) break;\n\n _position = state.position;\n\n while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n\n directiveArgs.push(state.input.slice(_position, state.position));\n }\n\n if (ch !== 0) readLineBreak(state);\n\n if (_hasOwnProperty.call(directiveHandlers, directiveName)) {\n directiveHandlers[directiveName](state, directiveName, directiveArgs);\n } else {\n throwWarning(state, 'unknown document directive \"' + directiveName + '\"');\n }\n }\n\n skipSeparationSpace(state, true, -1);\n\n if (state.lineIndent === 0 &&\n state.input.charCodeAt(state.position) === 0x2D/* - */ &&\n state.input.charCodeAt(state.position + 1) === 0x2D/* - */ &&\n state.input.charCodeAt(state.position + 2) === 0x2D/* - */) {\n state.position += 3;\n skipSeparationSpace(state, true, -1);\n\n } else if (hasDirectives) {\n throwError(state, 'directives end mark is expected');\n }\n\n composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);\n skipSeparationSpace(state, true, -1);\n\n if (state.checkLineBreaks &&\n PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {\n throwWarning(state, 'non-ASCII line breaks are interpreted as content');\n }\n\n state.documents.push(state.result);\n\n if (state.position === state.lineStart && testDocumentSeparator(state)) {\n\n if (state.input.charCodeAt(state.position) === 0x2E/* . */) {\n state.position += 3;\n skipSeparationSpace(state, true, -1);\n }\n return;\n }\n\n if (state.position < (state.length - 1)) {\n throwError(state, 'end of the stream or a document separator is expected');\n } else {\n return;\n }\n}\n\n\nfunction loadDocuments(input, options) {\n input = String(input);\n options = options || {};\n\n if (input.length !== 0) {\n\n // Add tailing `\\n` if not exists\n if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ &&\n input.charCodeAt(input.length - 1) !== 0x0D/* CR */) {\n input += '\\n';\n }\n\n // Strip BOM\n if (input.charCodeAt(0) === 0xFEFF) {\n input = input.slice(1);\n }\n }\n\n var state = new State(input, options);\n\n var nullpos = input.indexOf('\\0');\n\n if (nullpos !== -1) {\n state.position = nullpos;\n throwError(state, 'null byte is not allowed in input');\n }\n\n // Use 0 as string terminator. That significantly simplifies bounds check.\n state.input += '\\0';\n\n while (state.input.charCodeAt(state.position) === 0x20/* Space */) {\n state.lineIndent += 1;\n state.position += 1;\n }\n\n while (state.position < (state.length - 1)) {\n readDocument(state);\n }\n\n return state.documents;\n}\n\n\nfunction loadAll(input, iterator, options) {\n if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') {\n options = iterator;\n iterator = null;\n }\n\n var documents = loadDocuments(input, options);\n\n if (typeof iterator !== 'function') {\n return documents;\n }\n\n for (var index = 0, length = documents.length; index < length; index += 1) {\n iterator(documents[index]);\n }\n}\n\n\nfunction load(input, options) {\n var documents = loadDocuments(input, options);\n\n if (documents.length === 0) {\n /*eslint-disable no-undefined*/\n return undefined;\n } else if (documents.length === 1) {\n return documents[0];\n }\n throw new YAMLException('expected a single document in the stream, but found more');\n}\n\n\nfunction safeLoadAll(input, iterator, options) {\n if (typeof iterator === 'object' && iterator !== null && typeof options === 'undefined') {\n options = iterator;\n iterator = null;\n }\n\n return loadAll(input, iterator, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));\n}\n\n\nfunction safeLoad(input, options) {\n return load(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));\n}\n\n\nmodule.exports.loadAll = loadAll;\nmodule.exports.load = load;\nmodule.exports.safeLoadAll = safeLoadAll;\nmodule.exports.safeLoad = safeLoad;\n","var baseEach = require('./_baseEach'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\nmodule.exports = baseMap;\n","'use strict';\nmodule.exports = function generate_propertyNames(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n out += 'var ' + ($errs) + ' = errors;';\n if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) {\n $it.schema = $schema;\n $it.schemaPath = $schemaPath;\n $it.errSchemaPath = $errSchemaPath;\n var $key = 'key' + $lvl,\n $idx = 'idx' + $lvl,\n $i = 'i' + $lvl,\n $invalidName = '\\' + ' + $key + ' + \\'',\n $dataNxt = $it.dataLevel = it.dataLevel + 1,\n $nextData = 'data' + $dataNxt,\n $dataProperties = 'dataProperties' + $lvl,\n $ownProperties = it.opts.ownProperties,\n $currentBaseId = it.baseId;\n if ($ownProperties) {\n out += ' var ' + ($dataProperties) + ' = undefined; ';\n }\n if ($ownProperties) {\n out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; ';\n } else {\n out += ' for (var ' + ($key) + ' in ' + ($data) + ') { ';\n }\n out += ' var startErrs' + ($lvl) + ' = errors; ';\n var $passData = $key;\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n it.compositeRule = $it.compositeRule = $wasComposite;\n out += ' if (!' + ($nextValid) + ') { for (var ' + ($i) + '=startErrs' + ($lvl) + '; ' + ($i) + ' other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\nmodule.exports = compareAscending;\n","'use strict';\n\n// do not edit .js files directly - edit src/index.jst\n\n\n\nmodule.exports = function equal(a, b) {\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n\n\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n\n for (i = length; i-- !== 0;)\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n\n for (i = length; i-- !== 0;) {\n var key = keys[i];\n\n if (!equal(a[key], b[key])) return false;\n }\n\n return true;\n }\n\n // true if both NaN, false otherwise\n return a!==a && b!==b;\n};\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","'use strict';\n\nvar Type = require('../type');\n\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction resolveYamlSet(data) {\n if (data === null) return true;\n\n var key, object = data;\n\n for (key in object) {\n if (_hasOwnProperty.call(object, key)) {\n if (object[key] !== null) return false;\n }\n }\n\n return true;\n}\n\nfunction constructYamlSet(data) {\n return data !== null ? data : {};\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:set', {\n kind: 'mapping',\n resolve: resolveYamlSet,\n construct: constructYamlSet\n});\n","/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\nmodule.exports = baseSortBy;\n","'use strict';\n\nvar Type = require('../../type');\n\nfunction resolveJavascriptRegExp(data) {\n if (data === null) return false;\n if (data.length === 0) return false;\n\n var regexp = data,\n tail = /\\/([gim]*)$/.exec(data),\n modifiers = '';\n\n // if regexp starts with '/' it can have modifiers and must be properly closed\n // `/foo/gim` - modifiers tail can be maximum 3 chars\n if (regexp[0] === '/') {\n if (tail) modifiers = tail[1];\n\n if (modifiers.length > 3) return false;\n // if expression starts with /, is should be properly terminated\n if (regexp[regexp.length - modifiers.length - 1] !== '/') return false;\n }\n\n return true;\n}\n\nfunction constructJavascriptRegExp(data) {\n var regexp = data,\n tail = /\\/([gim]*)$/.exec(data),\n modifiers = '';\n\n // `/foo/gim` - tail can be maximum 4 chars\n if (regexp[0] === '/') {\n if (tail) modifiers = tail[1];\n regexp = regexp.slice(1, regexp.length - modifiers.length - 1);\n }\n\n return new RegExp(regexp, modifiers);\n}\n\nfunction representJavascriptRegExp(object /*, style*/) {\n var result = '/' + object.source + '/';\n\n if (object.global) result += 'g';\n if (object.multiline) result += 'm';\n if (object.ignoreCase) result += 'i';\n\n return result;\n}\n\nfunction isRegExp(object) {\n return Object.prototype.toString.call(object) === '[object RegExp]';\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:js/regexp', {\n kind: 'scalar',\n resolve: resolveJavascriptRegExp,\n construct: constructJavascriptRegExp,\n predicate: isRegExp,\n represent: representJavascriptRegExp\n});\n","var Symbol = require('./_Symbol'),\n Uint8Array = require('./_Uint8Array'),\n eq = require('./eq'),\n equalArrays = require('./_equalArrays'),\n mapToArray = require('./_mapToArray'),\n setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nmodule.exports = equalByTag;\n","var baseProperty = require('./_baseProperty'),\n basePropertyDeep = require('./_basePropertyDeep'),\n isKey = require('./_isKey'),\n toKey = require('./_toKey');\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = property;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","import { error, exportVariable, info, setSecret } from \"@actions/core\";\nimport isString from \"lodash/isString\";\nimport { replaceEnvVer } from \"./strUtils\";\n\nimport { Config } from \"./config\";\nimport { writeFile } from \"./fsUtils\";\n\nexport async function prepareMask(config: Config): Promise {\n if (!config.mask) {\n return;\n }\n for (const v of config.mask) {\n setSecret(replaceEnvVer(v));\n }\n info(`mask value count: ${config.mask.length}`);\n}\n\nexport async function prepareEnv(config: Config): Promise {\n if (!config.env) {\n return;\n }\n for (const k in config.env) {\n const env = config.env[k];\n if (isString(env)) {\n const value = replaceEnvVer(env);\n setSecret(value);\n exportVariable(k, value);\n info(`${k}: *** (mask)`);\n } else {\n const value = replaceEnvVer(env.value);\n exportVariable(k, value);\n if (env.secret === false) {\n info(`${k}: ${value}`);\n } else {\n setSecret(value);\n info(`${k}: *** (mask)`);\n }\n }\n }\n}\n\nexport async function prepareFile(\n baseDir: string,\n config: Config\n): Promise {\n if (!config.file) {\n return;\n }\n for (const filename in config.file) {\n const content = config.file[filename];\n const actualFilename = replaceEnvVer(filename);\n const result = await writeFile(baseDir, actualFilename, content);\n if (result) {\n info(`wrote \"${filename}\"`);\n } else {\n error(`could not write \"${filename}\"`);\n }\n }\n}\n","'use strict';\n\nvar IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i;\nvar customRuleCode = require('./dotjs/custom');\nvar definitionSchema = require('./definition_schema');\n\nmodule.exports = {\n add: addKeyword,\n get: getKeyword,\n remove: removeKeyword,\n validate: validateKeyword\n};\n\n\n/**\n * Define custom keyword\n * @this Ajv\n * @param {String} keyword custom keyword, should be unique (including different from all standard, custom and macro keywords).\n * @param {Object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`.\n * @return {Ajv} this for method chaining\n */\nfunction addKeyword(keyword, definition) {\n /* jshint validthis: true */\n /* eslint no-shadow: 0 */\n var RULES = this.RULES;\n if (RULES.keywords[keyword])\n throw new Error('Keyword ' + keyword + ' is already defined');\n\n if (!IDENTIFIER.test(keyword))\n throw new Error('Keyword ' + keyword + ' is not a valid identifier');\n\n if (definition) {\n this.validateKeyword(definition, true);\n\n var dataType = definition.type;\n if (Array.isArray(dataType)) {\n for (var i=0; i arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","var arrayAggregator = require('./_arrayAggregator'),\n baseAggregator = require('./_baseAggregator'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\nfunction createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, baseIteratee(iteratee, 2), accumulator);\n };\n}\n\nmodule.exports = createAggregator;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","\"use strict\";\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst os = __importStar(require(\"os\"));\n/**\n * Commands\n *\n * Command Format:\n * ::name key=value,key=value::message\n *\n * Examples:\n * ::warning::This is the message\n * ::set-env name=MY_VAR::some value\n */\nfunction issueCommand(command, properties, message) {\n const cmd = new Command(command, properties, message);\n process.stdout.write(cmd.toString() + os.EOL);\n}\nexports.issueCommand = issueCommand;\nfunction issue(name, message = '') {\n issueCommand(name, {}, message);\n}\nexports.issue = issue;\nconst CMD_STRING = '::';\nclass Command {\n constructor(command, properties, message) {\n if (!command) {\n command = 'missing.command';\n }\n this.command = command;\n this.properties = properties;\n this.message = message;\n }\n toString() {\n let cmdStr = CMD_STRING + this.command;\n if (this.properties && Object.keys(this.properties).length > 0) {\n cmdStr += ' ';\n let first = true;\n for (const key in this.properties) {\n if (this.properties.hasOwnProperty(key)) {\n const val = this.properties[key];\n if (val) {\n if (first) {\n first = false;\n }\n else {\n cmdStr += ',';\n }\n cmdStr += `${key}=${escapeProperty(val)}`;\n }\n }\n }\n }\n cmdStr += `${CMD_STRING}${escapeData(this.message)}`;\n return cmdStr;\n }\n}\n/**\n * Sanitizes an input into a string so it can be passed into issueCommand safely\n * @param input input to sanitize into a string\n */\nfunction toCommandValue(input) {\n if (input === null || input === undefined) {\n return '';\n }\n else if (typeof input === 'string' || input instanceof String) {\n return input;\n }\n return JSON.stringify(input);\n}\nexports.toCommandValue = toCommandValue;\nfunction escapeData(s) {\n return toCommandValue(s)\n .replace(/%/g, '%25')\n .replace(/\\r/g, '%0D')\n .replace(/\\n/g, '%0A');\n}\nfunction escapeProperty(s) {\n return toCommandValue(s)\n .replace(/%/g, '%25')\n .replace(/\\r/g, '%0D')\n .replace(/\\n/g, '%0A')\n .replace(/:/g, '%3A')\n .replace(/,/g, '%2C');\n}\n//# sourceMappingURL=command.js.map","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","/**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayAggregator;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","import * as openpgp from \"openpgp\";\nimport Ajv from \"ajv\";\nimport yaml from \"js-yaml\";\nimport { promises } from \"fs\";\nimport groupBy from \"lodash/groupBy\";\nimport sortBy from \"lodash/sortBy\";\n\nimport configSchema from \"./config.schema.json\";\nimport { ConfigActionError } from \"./errors\";\nimport { Inputs } from \"./inputs\";\nimport { pathResolve } from \"./fsUtils\";\n\nexport type Config = {\n mask?: string[];\n env?: {\n [k: string]:\n | string\n | {\n value: string;\n secret?: boolean;\n };\n };\n file?: {\n [k: string]: string;\n };\n};\n\nconst ERROR_KEYWORD_ORDER = [\"required\", \"type\"].reverse();\n\nexport function assertConfig(v: unknown): asserts v is Config {\n const ajv = new Ajv();\n const validate = ajv.compile(configSchema);\n validate(v);\n if (validate.errors) {\n // sort by dataPath and keyword\n const errors = validate.errors;\n const groupedDataPathErrors = groupBy(errors, \"dataPath\");\n const dataPaths = sortBy(Object.keys(groupedDataPathErrors), \"length\");\n for (const dataPath of dataPaths) {\n const dataPathErrors = groupedDataPathErrors[dataPath];\n const sortedErrors = sortBy(\n dataPathErrors,\n (v) => -ERROR_KEYWORD_ORDER.indexOf(v.keyword)\n );\n for (const e of sortedErrors) {\n throw new ConfigActionError(`${e.message} at ${e.dataPath}`);\n }\n }\n }\n}\n\nexport async function loadConfig(\n baseDir: string,\n inputs: Inputs\n): Promise {\n if (inputs.gpgPassphrase) {\n return loadConfigWithGPGPassphrase(\n baseDir,\n inputs.configFile,\n inputs.gpgPassphrase\n );\n } else {\n return loadConfigFile(baseDir, inputs.configFile);\n }\n}\n\nexport async function loadConfigFile(\n baseDir: string,\n path: string\n): Promise {\n const { readFile } = promises;\n const absolutePath = pathResolve(baseDir, path);\n const raw = await readFile(absolutePath, \"utf8\");\n return loadConfigYaml(raw);\n}\n\nexport async function loadConfigWithGPGPassphrase(\n baseDir: string,\n path: string,\n gpgPassphrase: string\n): Promise {\n const { readFile } = promises;\n const absolutePath = pathResolve(baseDir, path);\n const content = await readFile(absolutePath);\n const { data: raw } = await openpgp.decrypt({\n message: await openpgp.message.read(content),\n passwords: [gpgPassphrase],\n format: \"utf8\",\n });\n return loadConfigYaml(raw);\n}\n\nexport async function loadConfigYaml(raw: string): Promise {\n const config = yaml.safeLoad(raw);\n assertConfig(config);\n return config;\n}\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","'use strict';\nmodule.exports = function generate_ref(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $async, $refCode;\n if ($schema == '#' || $schema == '#/') {\n if (it.isRoot) {\n $async = it.async;\n $refCode = 'validate';\n } else {\n $async = it.root.schema.$async === true;\n $refCode = 'root.refVal[0]';\n }\n } else {\n var $refVal = it.resolveRef(it.baseId, $schema, it.isRoot);\n if ($refVal === undefined) {\n var $message = it.MissingRefError.message(it.baseId, $schema);\n if (it.opts.missingRefs == 'fail') {\n it.logger.error($message);\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('$ref') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { ref: \\'' + (it.util.escapeQuotes($schema)) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'can\\\\\\'t resolve reference ' + (it.util.escapeQuotes($schema)) + '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: ' + (it.util.toQuotedString($schema)) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n if ($breakOnError) {\n out += ' if (false) { ';\n }\n } else if (it.opts.missingRefs == 'ignore') {\n it.logger.warn($message);\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n } else {\n throw new it.MissingRefError(it.baseId, $schema, $message);\n }\n } else if ($refVal.inline) {\n var $it = it.util.copy(it);\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n $it.schema = $refVal.schema;\n $it.schemaPath = '';\n $it.errSchemaPath = $schema;\n var $code = it.validate($it).replace(/validate\\.schema/g, $refVal.code);\n out += ' ' + ($code) + ' ';\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n }\n } else {\n $async = $refVal.$async === true || (it.async && $refVal.$async !== false);\n $refCode = $refVal.code;\n }\n }\n if ($refCode) {\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = '';\n if (it.opts.passContext) {\n out += ' ' + ($refCode) + '.call(this, ';\n } else {\n out += ' ' + ($refCode) + '( ';\n }\n out += ' ' + ($data) + ', (dataPath || \\'\\')';\n if (it.errorPath != '\"\"') {\n out += ' + ' + (it.errorPath);\n }\n var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',\n $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';\n out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ', rootData) ';\n var __callValidate = out;\n out = $$outStack.pop();\n if ($async) {\n if (!it.async) throw new Error('async schema referenced by sync schema');\n if ($breakOnError) {\n out += ' var ' + ($valid) + '; ';\n }\n out += ' try { await ' + (__callValidate) + '; ';\n if ($breakOnError) {\n out += ' ' + ($valid) + ' = true; ';\n }\n out += ' } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ';\n if ($breakOnError) {\n out += ' ' + ($valid) + ' = false; ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' if (' + ($valid) + ') { ';\n }\n } else {\n out += ' if (!' + (__callValidate) + ') { if (vErrors === null) vErrors = ' + ($refCode) + '.errors; else vErrors = vErrors.concat(' + ($refCode) + '.errors); errors = vErrors.length; } ';\n if ($breakOnError) {\n out += ' else { ';\n }\n }\n }\n return out;\n}\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","'use strict';\nmodule.exports = function generate__limit(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $errorKeyword;\n var $data = 'data' + ($dataLvl || '');\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n var $isMax = $keyword == 'maximum',\n $exclusiveKeyword = $isMax ? 'exclusiveMaximum' : 'exclusiveMinimum',\n $schemaExcl = it.schema[$exclusiveKeyword],\n $isDataExcl = it.opts.$data && $schemaExcl && $schemaExcl.$data,\n $op = $isMax ? '<' : '>',\n $notOp = $isMax ? '>' : '<',\n $errorKeyword = undefined;\n if (!($isData || typeof $schema == 'number' || $schema === undefined)) {\n throw new Error($keyword + ' must be number');\n }\n if (!($isDataExcl || $schemaExcl === undefined || typeof $schemaExcl == 'number' || typeof $schemaExcl == 'boolean')) {\n throw new Error($exclusiveKeyword + ' must be number or boolean');\n }\n if ($isDataExcl) {\n var $schemaValueExcl = it.util.getData($schemaExcl.$data, $dataLvl, it.dataPathArr),\n $exclusive = 'exclusive' + $lvl,\n $exclType = 'exclType' + $lvl,\n $exclIsNumber = 'exclIsNumber' + $lvl,\n $opExpr = 'op' + $lvl,\n $opStr = '\\' + ' + $opExpr + ' + \\'';\n out += ' var schemaExcl' + ($lvl) + ' = ' + ($schemaValueExcl) + '; ';\n $schemaValueExcl = 'schemaExcl' + $lvl;\n out += ' var ' + ($exclusive) + '; var ' + ($exclType) + ' = typeof ' + ($schemaValueExcl) + '; if (' + ($exclType) + ' != \\'boolean\\' && ' + ($exclType) + ' != \\'undefined\\' && ' + ($exclType) + ' != \\'number\\') { ';\n var $errorKeyword = $exclusiveKeyword;\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || '_exclusiveLimit') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'' + ($exclusiveKeyword) + ' should be boolean\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } else if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n }\n out += ' ' + ($exclType) + ' == \\'number\\' ? ( (' + ($exclusive) + ' = ' + ($schemaValue) + ' === undefined || ' + ($schemaValueExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ') ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValueExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) : ( (' + ($exclusive) + ' = ' + ($schemaValueExcl) + ' === true) ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaValue) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { var op' + ($lvl) + ' = ' + ($exclusive) + ' ? \\'' + ($op) + '\\' : \\'' + ($op) + '=\\'; ';\n if ($schema === undefined) {\n $errorKeyword = $exclusiveKeyword;\n $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;\n $schemaValue = $schemaValueExcl;\n $isData = $isDataExcl;\n }\n } else {\n var $exclIsNumber = typeof $schemaExcl == 'number',\n $opStr = $op;\n if ($exclIsNumber && $isData) {\n var $opExpr = '\\'' + $opStr + '\\'';\n out += ' if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n }\n out += ' ( ' + ($schemaValue) + ' === undefined || ' + ($schemaExcl) + ' ' + ($op) + '= ' + ($schemaValue) + ' ? ' + ($data) + ' ' + ($notOp) + '= ' + ($schemaExcl) + ' : ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' ) || ' + ($data) + ' !== ' + ($data) + ') { ';\n } else {\n if ($exclIsNumber && $schema === undefined) {\n $exclusive = true;\n $errorKeyword = $exclusiveKeyword;\n $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;\n $schemaValue = $schemaExcl;\n $notOp += '=';\n } else {\n if ($exclIsNumber) $schemaValue = Math[$isMax ? 'min' : 'max']($schemaExcl, $schema);\n if ($schemaExcl === ($exclIsNumber ? $schemaValue : true)) {\n $exclusive = true;\n $errorKeyword = $exclusiveKeyword;\n $errSchemaPath = it.errSchemaPath + '/' + $exclusiveKeyword;\n $notOp += '=';\n } else {\n $exclusive = false;\n $opStr += '=';\n }\n }\n var $opExpr = '\\'' + $opStr + '\\'';\n out += ' if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n }\n out += ' ' + ($data) + ' ' + ($notOp) + ' ' + ($schemaValue) + ' || ' + ($data) + ' !== ' + ($data) + ') { ';\n }\n }\n $errorKeyword = $errorKeyword || $keyword;\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || '_limit') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { comparison: ' + ($opExpr) + ', limit: ' + ($schemaValue) + ', exclusive: ' + ($exclusive) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be ' + ($opStr) + ' ';\n if ($isData) {\n out += '\\' + ' + ($schemaValue);\n } else {\n out += '' + ($schemaValue) + '\\'';\n }\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + ($schema);\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","'use strict';\nmodule.exports = function generate_items(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $idx = 'i' + $lvl,\n $dataNxt = $it.dataLevel = it.dataLevel + 1,\n $nextData = 'data' + $dataNxt,\n $currentBaseId = it.baseId;\n out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';\n if (Array.isArray($schema)) {\n var $additionalItems = it.schema.additionalItems;\n if ($additionalItems === false) {\n out += ' ' + ($valid) + ' = ' + ($data) + '.length <= ' + ($schema.length) + '; ';\n var $currErrSchemaPath = $errSchemaPath;\n $errSchemaPath = it.errSchemaPath + '/additionalItems';\n out += ' if (!' + ($valid) + ') { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('additionalItems') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schema.length) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should NOT have more than ' + ($schema.length) + ' items\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } ';\n $errSchemaPath = $currErrSchemaPath;\n if ($breakOnError) {\n $closingBraces += '}';\n out += ' else { ';\n }\n }\n var arr1 = $schema;\n if (arr1) {\n var $sch, $i = -1,\n l1 = arr1.length - 1;\n while ($i < l1) {\n $sch = arr1[$i += 1];\n if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {\n out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($i) + ') { ';\n var $passData = $data + '[' + $i + ']';\n $it.schema = $sch;\n $it.schemaPath = $schemaPath + '[' + $i + ']';\n $it.errSchemaPath = $errSchemaPath + '/' + $i;\n $it.errorPath = it.util.getPathExpr(it.errorPath, $i, it.opts.jsonPointers, true);\n $it.dataPathArr[$dataNxt] = $i;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n $closingBraces += '}';\n }\n }\n }\n }\n if (typeof $additionalItems == 'object' && (it.opts.strictKeywords ? typeof $additionalItems == 'object' && Object.keys($additionalItems).length > 0 : it.util.schemaHasRules($additionalItems, it.RULES.all))) {\n $it.schema = $additionalItems;\n $it.schemaPath = it.schemaPath + '.additionalItems';\n $it.errSchemaPath = it.errSchemaPath + '/additionalItems';\n out += ' ' + ($nextValid) + ' = true; if (' + ($data) + '.length > ' + ($schema.length) + ') { for (var ' + ($idx) + ' = ' + ($schema.length) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';\n $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);\n var $passData = $data + '[' + $idx + ']';\n $it.dataPathArr[$dataNxt] = $idx;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n if ($breakOnError) {\n out += ' if (!' + ($nextValid) + ') break; ';\n }\n out += ' } } ';\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n $closingBraces += '}';\n }\n }\n } else if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) {\n $it.schema = $schema;\n $it.schemaPath = $schemaPath;\n $it.errSchemaPath = $errSchemaPath;\n out += ' for (var ' + ($idx) + ' = ' + (0) + '; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';\n $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);\n var $passData = $data + '[' + $idx + ']';\n $it.dataPathArr[$dataNxt] = $idx;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n if ($breakOnError) {\n out += ' if (!' + ($nextValid) + ') break; ';\n }\n out += ' }';\n }\n if ($breakOnError) {\n out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';\n }\n return out;\n}\n","var baseHasIn = require('./_baseHasIn'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arraySome;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","'use strict';\n\nvar KEYWORDS = [\n 'multipleOf',\n 'maximum',\n 'exclusiveMaximum',\n 'minimum',\n 'exclusiveMinimum',\n 'maxLength',\n 'minLength',\n 'pattern',\n 'additionalItems',\n 'maxItems',\n 'minItems',\n 'uniqueItems',\n 'maxProperties',\n 'minProperties',\n 'required',\n 'additionalProperties',\n 'enum',\n 'format',\n 'const'\n];\n\nmodule.exports = function (metaSchema, keywordsJsonPointers) {\n for (var i=0; i 0 : it.util.schemaHasRules($propertySch, it.RULES.all)))) {\n $required[$required.length] = $property;\n }\n }\n }\n } else {\n var $required = $schema;\n }\n }\n if ($isData || $required.length) {\n var $currentErrorPath = it.errorPath,\n $loopRequired = $isData || $required.length >= it.opts.loopRequired,\n $ownProperties = it.opts.ownProperties;\n if ($breakOnError) {\n out += ' var missing' + ($lvl) + '; ';\n if ($loopRequired) {\n if (!$isData) {\n out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; ';\n }\n var $i = 'i' + $lvl,\n $propertyPath = 'schema' + $lvl + '[' + $i + ']',\n $missingProperty = '\\' + ' + $propertyPath + ' + \\'';\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers);\n }\n out += ' var ' + ($valid) + ' = true; ';\n if ($isData) {\n out += ' if (schema' + ($lvl) + ' === undefined) ' + ($valid) + ' = true; else if (!Array.isArray(schema' + ($lvl) + ')) ' + ($valid) + ' = false; else {';\n }\n out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { ' + ($valid) + ' = ' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] !== undefined ';\n if ($ownProperties) {\n out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) ';\n }\n out += '; if (!' + ($valid) + ') break; } ';\n if ($isData) {\n out += ' } ';\n }\n out += ' if (!' + ($valid) + ') { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'';\n if (it.opts._errorDataPathProperty) {\n out += 'is a required property';\n } else {\n out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } else { ';\n } else {\n out += ' if ( ';\n var arr2 = $required;\n if (arr2) {\n var $propertyKey, $i = -1,\n l2 = arr2.length - 1;\n while ($i < l2) {\n $propertyKey = arr2[$i += 1];\n if ($i) {\n out += ' || ';\n }\n var $prop = it.util.getProperty($propertyKey),\n $useData = $data + $prop;\n out += ' ( ( ' + ($useData) + ' === undefined ';\n if ($ownProperties) {\n out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($propertyKey)) + '\\') ';\n }\n out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) ';\n }\n }\n out += ') { ';\n var $propertyPath = 'missing' + $lvl,\n $missingProperty = '\\' + ' + $propertyPath + ' + \\'';\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath;\n }\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'';\n if (it.opts._errorDataPathProperty) {\n out += 'is a required property';\n } else {\n out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } else { ';\n }\n } else {\n if ($loopRequired) {\n if (!$isData) {\n out += ' var ' + ($vSchema) + ' = validate.schema' + ($schemaPath) + '; ';\n }\n var $i = 'i' + $lvl,\n $propertyPath = 'schema' + $lvl + '[' + $i + ']',\n $missingProperty = '\\' + ' + $propertyPath + ' + \\'';\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.util.getPathExpr($currentErrorPath, $propertyPath, it.opts.jsonPointers);\n }\n if ($isData) {\n out += ' if (' + ($vSchema) + ' && !Array.isArray(' + ($vSchema) + ')) { var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'';\n if (it.opts._errorDataPathProperty) {\n out += 'is a required property';\n } else {\n out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (' + ($vSchema) + ' !== undefined) { ';\n }\n out += ' for (var ' + ($i) + ' = 0; ' + ($i) + ' < ' + ($vSchema) + '.length; ' + ($i) + '++) { if (' + ($data) + '[' + ($vSchema) + '[' + ($i) + ']] === undefined ';\n if ($ownProperties) {\n out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', ' + ($vSchema) + '[' + ($i) + ']) ';\n }\n out += ') { var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'';\n if (it.opts._errorDataPathProperty) {\n out += 'is a required property';\n } else {\n out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ';\n if ($isData) {\n out += ' } ';\n }\n } else {\n var arr3 = $required;\n if (arr3) {\n var $propertyKey, i3 = -1,\n l3 = arr3.length - 1;\n while (i3 < l3) {\n $propertyKey = arr3[i3 += 1];\n var $prop = it.util.getProperty($propertyKey),\n $missingProperty = it.util.escapeQuotes($propertyKey),\n $useData = $data + $prop;\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);\n }\n out += ' if ( ' + ($useData) + ' === undefined ';\n if ($ownProperties) {\n out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($propertyKey)) + '\\') ';\n }\n out += ') { var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'';\n if (it.opts._errorDataPathProperty) {\n out += 'is a required property';\n } else {\n out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ';\n }\n }\n }\n }\n it.errorPath = $currentErrorPath;\n } else if ($breakOnError) {\n out += ' if (true) {';\n }\n return out;\n}\n","var memoize = require('./memoize');\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nmodule.exports = memoizeCapped;\n","'use strict';\n\n\nvar common = require('./common');\n\n\nfunction Mark(name, buffer, position, line, column) {\n this.name = name;\n this.buffer = buffer;\n this.position = position;\n this.line = line;\n this.column = column;\n}\n\n\nMark.prototype.getSnippet = function getSnippet(indent, maxLength) {\n var head, start, tail, end, snippet;\n\n if (!this.buffer) return null;\n\n indent = indent || 4;\n maxLength = maxLength || 75;\n\n head = '';\n start = this.position;\n\n while (start > 0 && '\\x00\\r\\n\\x85\\u2028\\u2029'.indexOf(this.buffer.charAt(start - 1)) === -1) {\n start -= 1;\n if (this.position - start > (maxLength / 2 - 1)) {\n head = ' ... ';\n start += 5;\n break;\n }\n }\n\n tail = '';\n end = this.position;\n\n while (end < this.buffer.length && '\\x00\\r\\n\\x85\\u2028\\u2029'.indexOf(this.buffer.charAt(end)) === -1) {\n end += 1;\n if (end - this.position > (maxLength / 2 - 1)) {\n tail = ' ... ';\n end -= 5;\n break;\n }\n }\n\n snippet = this.buffer.slice(start, end);\n\n return common.repeat(' ', indent) + head + snippet + tail + '\\n' +\n common.repeat(' ', indent + this.position - start + head.length) + '^';\n};\n\n\nMark.prototype.toString = function toString(compact) {\n var snippet, where = '';\n\n if (this.name) {\n where += 'in \"' + this.name + '\" ';\n }\n\n where += 'at line ' + (this.line + 1) + ', column ' + (this.column + 1);\n\n if (!compact) {\n snippet = this.getSnippet();\n\n if (snippet) {\n where += ':\\n' + snippet;\n }\n }\n\n return where;\n};\n\n\nmodule.exports = Mark;\n","var baseMatches = require('./_baseMatches'),\n baseMatchesProperty = require('./_baseMatchesProperty'),\n identity = require('./identity'),\n isArray = require('./isArray'),\n property = require('./property');\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n}\n\nmodule.exports = baseIteratee;\n","'use strict';\n\nvar Type = require('../type');\n\nvar YAML_DATE_REGEXP = new RegExp(\n '^([0-9][0-9][0-9][0-9])' + // [1] year\n '-([0-9][0-9])' + // [2] month\n '-([0-9][0-9])$'); // [3] day\n\nvar YAML_TIMESTAMP_REGEXP = new RegExp(\n '^([0-9][0-9][0-9][0-9])' + // [1] year\n '-([0-9][0-9]?)' + // [2] month\n '-([0-9][0-9]?)' + // [3] day\n '(?:[Tt]|[ \\\\t]+)' + // ...\n '([0-9][0-9]?)' + // [4] hour\n ':([0-9][0-9])' + // [5] minute\n ':([0-9][0-9])' + // [6] second\n '(?:\\\\.([0-9]*))?' + // [7] fraction\n '(?:[ \\\\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour\n '(?::([0-9][0-9]))?))?$'); // [11] tz_minute\n\nfunction resolveYamlTimestamp(data) {\n if (data === null) return false;\n if (YAML_DATE_REGEXP.exec(data) !== null) return true;\n if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;\n return false;\n}\n\nfunction constructYamlTimestamp(data) {\n var match, year, month, day, hour, minute, second, fraction = 0,\n delta = null, tz_hour, tz_minute, date;\n\n match = YAML_DATE_REGEXP.exec(data);\n if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);\n\n if (match === null) throw new Error('Date resolve error');\n\n // match: [1] year [2] month [3] day\n\n year = +(match[1]);\n month = +(match[2]) - 1; // JS month starts with 0\n day = +(match[3]);\n\n if (!match[4]) { // no hour\n return new Date(Date.UTC(year, month, day));\n }\n\n // match: [4] hour [5] minute [6] second [7] fraction\n\n hour = +(match[4]);\n minute = +(match[5]);\n second = +(match[6]);\n\n if (match[7]) {\n fraction = match[7].slice(0, 3);\n while (fraction.length < 3) { // milli-seconds\n fraction += '0';\n }\n fraction = +fraction;\n }\n\n // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute\n\n if (match[9]) {\n tz_hour = +(match[10]);\n tz_minute = +(match[11] || 0);\n delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds\n if (match[9] === '-') delta = -delta;\n }\n\n date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));\n\n if (delta) date.setTime(date.getTime() - delta);\n\n return date;\n}\n\nfunction representYamlTimestamp(object /*, style*/) {\n return object.toISOString();\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:timestamp', {\n kind: 'scalar',\n resolve: resolveYamlTimestamp,\n construct: constructYamlTimestamp,\n instanceOf: Date,\n represent: representYamlTimestamp\n});\n","'use strict';\nmodule.exports = function generate_allOf(it, $keyword, $ruleType) {\n var out = ' ';\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $currentBaseId = $it.baseId,\n $allSchemasEmpty = true;\n var arr1 = $schema;\n if (arr1) {\n var $sch, $i = -1,\n l1 = arr1.length - 1;\n while ($i < l1) {\n $sch = arr1[$i += 1];\n if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {\n $allSchemasEmpty = false;\n $it.schema = $sch;\n $it.schemaPath = $schemaPath + '[' + $i + ']';\n $it.errSchemaPath = $errSchemaPath + '/' + $i;\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n $closingBraces += '}';\n }\n }\n }\n }\n if ($breakOnError) {\n if ($allSchemasEmpty) {\n out += ' if (true) { ';\n } else {\n out += ' ' + ($closingBraces.slice(0, -1)) + ' ';\n }\n }\n return out;\n}\n","var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n","var isStrictComparable = require('./_isStrictComparable'),\n keys = require('./keys');\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\nmodule.exports = getMatchData;\n","'use strict';\n\nvar metaSchema = require('./refs/json-schema-draft-07.json');\n\nmodule.exports = {\n $id: 'https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js',\n definitions: {\n simpleTypes: metaSchema.definitions.simpleTypes\n },\n type: 'object',\n dependencies: {\n schema: ['validate'],\n $data: ['validate'],\n statements: ['inline'],\n valid: {not: {required: ['macro']}}\n },\n properties: {\n type: metaSchema.properties.type,\n schema: {type: 'boolean'},\n statements: {type: 'boolean'},\n dependencies: {\n type: 'array',\n items: {type: 'string'}\n },\n metaSchema: {type: 'object'},\n modifying: {type: 'boolean'},\n valid: {type: 'boolean'},\n $data: {type: 'boolean'},\n async: {type: 'boolean'},\n errors: {\n anyOf: [\n {type: 'boolean'},\n {const: 'full'}\n ]\n }\n }\n};\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","'use strict';\n\nvar Type = require('../type');\n\nmodule.exports = new Type('tag:yaml.org,2002:seq', {\n kind: 'sequence',\n construct: function (data) { return data !== null ? data : []; }\n});\n","var baseIsEqualDeep = require('./_baseIsEqualDeep'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\nmodule.exports = matchesStrictComparable;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","'use strict';\n\n/*eslint-disable max-len*/\n\nvar common = require('./common');\nvar YAMLException = require('./exception');\nvar Type = require('./type');\n\n\nfunction compileList(schema, name, result) {\n var exclude = [];\n\n schema.include.forEach(function (includedSchema) {\n result = compileList(includedSchema, name, result);\n });\n\n schema[name].forEach(function (currentType) {\n result.forEach(function (previousType, previousIndex) {\n if (previousType.tag === currentType.tag && previousType.kind === currentType.kind) {\n exclude.push(previousIndex);\n }\n });\n\n result.push(currentType);\n });\n\n return result.filter(function (type, index) {\n return exclude.indexOf(index) === -1;\n });\n}\n\n\nfunction compileMap(/* lists... */) {\n var result = {\n scalar: {},\n sequence: {},\n mapping: {},\n fallback: {}\n }, index, length;\n\n function collectType(type) {\n result[type.kind][type.tag] = result['fallback'][type.tag] = type;\n }\n\n for (index = 0, length = arguments.length; index < length; index += 1) {\n arguments[index].forEach(collectType);\n }\n return result;\n}\n\n\nfunction Schema(definition) {\n this.include = definition.include || [];\n this.implicit = definition.implicit || [];\n this.explicit = definition.explicit || [];\n\n this.implicit.forEach(function (type) {\n if (type.loadKind && type.loadKind !== 'scalar') {\n throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');\n }\n });\n\n this.compiledImplicit = compileList(this, 'implicit', []);\n this.compiledExplicit = compileList(this, 'explicit', []);\n this.compiledTypeMap = compileMap(this.compiledImplicit, this.compiledExplicit);\n}\n\n\nSchema.DEFAULT = null;\n\n\nSchema.create = function createSchema() {\n var schemas, types;\n\n switch (arguments.length) {\n case 1:\n schemas = Schema.DEFAULT;\n types = arguments[0];\n break;\n\n case 2:\n schemas = arguments[0];\n types = arguments[1];\n break;\n\n default:\n throw new YAMLException('Wrong number of arguments for Schema.create function');\n }\n\n schemas = common.toArray(schemas);\n types = common.toArray(types);\n\n if (!schemas.every(function (schema) { return schema instanceof Schema; })) {\n throw new YAMLException('Specified list of super schemas (or a single Schema object) contains a non-Schema object.');\n }\n\n if (!types.every(function (type) { return type instanceof Type; })) {\n throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');\n }\n\n return new Schema({\n include: schemas,\n explicit: types\n });\n};\n\n\nmodule.exports = Schema;\n","var baseEach = require('./_baseEach');\n\n/**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseAggregator;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","'use strict';\n\nvar traverse = module.exports = function (schema, opts, cb) {\n // Legacy support for v0.3.1 and earlier.\n if (typeof opts == 'function') {\n cb = opts;\n opts = {};\n }\n\n cb = opts.cb || cb;\n var pre = (typeof cb == 'function') ? cb : cb.pre || function() {};\n var post = cb.post || function() {};\n\n _traverse(opts, pre, post, schema, '', schema);\n};\n\n\ntraverse.keywords = {\n additionalItems: true,\n items: true,\n contains: true,\n additionalProperties: true,\n propertyNames: true,\n not: true\n};\n\ntraverse.arrayKeywords = {\n items: true,\n allOf: true,\n anyOf: true,\n oneOf: true\n};\n\ntraverse.propsKeywords = {\n definitions: true,\n properties: true,\n patternProperties: true,\n dependencies: true\n};\n\ntraverse.skipKeywords = {\n default: true,\n enum: true,\n const: true,\n required: true,\n maximum: true,\n minimum: true,\n exclusiveMaximum: true,\n exclusiveMinimum: true,\n multipleOf: true,\n maxLength: true,\n minLength: true,\n pattern: true,\n format: true,\n maxItems: true,\n minItems: true,\n uniqueItems: true,\n maxProperties: true,\n minProperties: true\n};\n\n\nfunction _traverse(opts, pre, post, schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex) {\n if (schema && typeof schema == 'object' && !Array.isArray(schema)) {\n pre(schema, jsonPtr, rootSchema, parentJsonPtr, parentKeyword, parentSchema, keyIndex);\n for (var key in schema) {\n var sch = schema[key];\n if (Array.isArray(sch)) {\n if (key in traverse.arrayKeywords) {\n for (var i=0; i= 0) {\n value = value.slice(1);\n }\n\n if (value === '.inf') {\n return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;\n\n } else if (value === '.nan') {\n return NaN;\n\n } else if (value.indexOf(':') >= 0) {\n value.split(':').forEach(function (v) {\n digits.unshift(parseFloat(v, 10));\n });\n\n value = 0.0;\n base = 1;\n\n digits.forEach(function (d) {\n value += d * base;\n base *= 60;\n });\n\n return sign * value;\n\n }\n return sign * parseFloat(value, 10);\n}\n\n\nvar SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;\n\nfunction representYamlFloat(object, style) {\n var res;\n\n if (isNaN(object)) {\n switch (style) {\n case 'lowercase': return '.nan';\n case 'uppercase': return '.NAN';\n case 'camelcase': return '.NaN';\n }\n } else if (Number.POSITIVE_INFINITY === object) {\n switch (style) {\n case 'lowercase': return '.inf';\n case 'uppercase': return '.INF';\n case 'camelcase': return '.Inf';\n }\n } else if (Number.NEGATIVE_INFINITY === object) {\n switch (style) {\n case 'lowercase': return '-.inf';\n case 'uppercase': return '-.INF';\n case 'camelcase': return '-.Inf';\n }\n } else if (common.isNegativeZero(object)) {\n return '-0.0';\n }\n\n res = object.toString(10);\n\n // JS stringifier can build scientific format without dots: 5e-100,\n // while YAML requres dot: 5.e-100. Fix it with simple hack\n\n return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;\n}\n\nfunction isFloat(object) {\n return (Object.prototype.toString.call(object) === '[object Number]') &&\n (object % 1 !== 0 || common.isNegativeZero(object));\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:float', {\n kind: 'scalar',\n resolve: resolveYamlFloat,\n construct: constructYamlFloat,\n predicate: isFloat,\n represent: representYamlFloat,\n defaultStyle: 'lowercase'\n});\n","// Standard YAML's JSON schema.\n// http://www.yaml.org/spec/1.2/spec.html#id2803231\n//\n// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.\n// So, this schema is not such strict as defined in the YAML specification.\n// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc.\n\n\n'use strict';\n\n\nvar Schema = require('../schema');\n\n\nmodule.exports = new Schema({\n include: [\n require('./failsafe')\n ],\n implicit: [\n require('../type/null'),\n require('../type/bool'),\n require('../type/int'),\n require('../type/float')\n ]\n});\n","'use strict';\n\n\nmodule.exports = {\n copy: copy,\n checkDataType: checkDataType,\n checkDataTypes: checkDataTypes,\n coerceToTypes: coerceToTypes,\n toHash: toHash,\n getProperty: getProperty,\n escapeQuotes: escapeQuotes,\n equal: require('fast-deep-equal'),\n ucs2length: require('./ucs2length'),\n varOccurences: varOccurences,\n varReplace: varReplace,\n schemaHasRules: schemaHasRules,\n schemaHasRulesExcept: schemaHasRulesExcept,\n schemaUnknownRules: schemaUnknownRules,\n toQuotedString: toQuotedString,\n getPathExpr: getPathExpr,\n getPath: getPath,\n getData: getData,\n unescapeFragment: unescapeFragment,\n unescapeJsonPointer: unescapeJsonPointer,\n escapeFragment: escapeFragment,\n escapeJsonPointer: escapeJsonPointer\n};\n\n\nfunction copy(o, to) {\n to = to || {};\n for (var key in o) to[key] = o[key];\n return to;\n}\n\n\nfunction checkDataType(dataType, data, strictNumbers, negate) {\n var EQUAL = negate ? ' !== ' : ' === '\n , AND = negate ? ' || ' : ' && '\n , OK = negate ? '!' : ''\n , NOT = negate ? '' : '!';\n switch (dataType) {\n case 'null': return data + EQUAL + 'null';\n case 'array': return OK + 'Array.isArray(' + data + ')';\n case 'object': return '(' + OK + data + AND +\n 'typeof ' + data + EQUAL + '\"object\"' + AND +\n NOT + 'Array.isArray(' + data + '))';\n case 'integer': return '(typeof ' + data + EQUAL + '\"number\"' + AND +\n NOT + '(' + data + ' % 1)' +\n AND + data + EQUAL + data +\n (strictNumbers ? (AND + OK + 'isFinite(' + data + ')') : '') + ')';\n case 'number': return '(typeof ' + data + EQUAL + '\"' + dataType + '\"' +\n (strictNumbers ? (AND + OK + 'isFinite(' + data + ')') : '') + ')';\n default: return 'typeof ' + data + EQUAL + '\"' + dataType + '\"';\n }\n}\n\n\nfunction checkDataTypes(dataTypes, data, strictNumbers) {\n switch (dataTypes.length) {\n case 1: return checkDataType(dataTypes[0], data, strictNumbers, true);\n default:\n var code = '';\n var types = toHash(dataTypes);\n if (types.array && types.object) {\n code = types.null ? '(': '(!' + data + ' || ';\n code += 'typeof ' + data + ' !== \"object\")';\n delete types.null;\n delete types.array;\n delete types.object;\n }\n if (types.number) delete types.integer;\n for (var t in types)\n code += (code ? ' && ' : '' ) + checkDataType(t, data, strictNumbers, true);\n\n return code;\n }\n}\n\n\nvar COERCE_TO_TYPES = toHash([ 'string', 'number', 'integer', 'boolean', 'null' ]);\nfunction coerceToTypes(optionCoerceTypes, dataTypes) {\n if (Array.isArray(dataTypes)) {\n var types = [];\n for (var i=0; i= lvl) throw new Error('Cannot access property/index ' + up + ' levels up, current level is ' + lvl);\n return paths[lvl - up];\n }\n\n if (up > lvl) throw new Error('Cannot access data ' + up + ' levels up, current level is ' + lvl);\n data = 'data' + ((lvl - up) || '');\n if (!jsonPointer) return data;\n }\n\n var expr = data;\n var segments = jsonPointer.split('/');\n for (var i=0; i= 0xD800 && value <= 0xDBFF && pos < len) {\n // high surrogate, and there is a next character\n value = str.charCodeAt(pos);\n if ((value & 0xFC00) == 0xDC00) pos++; // low surrogate\n }\n }\n return length;\n};\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","'use strict';\nmodule.exports = function generate_validate(it, $keyword, $ruleType) {\n var out = '';\n var $async = it.schema.$async === true,\n $refKeywords = it.util.schemaHasRulesExcept(it.schema, it.RULES.all, '$ref'),\n $id = it.self._getId(it.schema);\n if (it.opts.strictKeywords) {\n var $unknownKwd = it.util.schemaUnknownRules(it.schema, it.RULES.keywords);\n if ($unknownKwd) {\n var $keywordsMsg = 'unknown keyword: ' + $unknownKwd;\n if (it.opts.strictKeywords === 'log') it.logger.warn($keywordsMsg);\n else throw new Error($keywordsMsg);\n }\n }\n if (it.isTop) {\n out += ' var validate = ';\n if ($async) {\n it.async = true;\n out += 'async ';\n }\n out += 'function(data, dataPath, parentData, parentDataProperty, rootData) { \\'use strict\\'; ';\n if ($id && (it.opts.sourceCode || it.opts.processCode)) {\n out += ' ' + ('/\\*# sourceURL=' + $id + ' */') + ' ';\n }\n }\n if (typeof it.schema == 'boolean' || !($refKeywords || it.schema.$ref)) {\n var $keyword = 'false schema';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $errorKeyword;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n if (it.schema === false) {\n if (it.isTop) {\n $breakOnError = true;\n } else {\n out += ' var ' + ($valid) + ' = false; ';\n }\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || 'false schema') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'boolean schema is false\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n } else {\n if (it.isTop) {\n if ($async) {\n out += ' return data; ';\n } else {\n out += ' validate.errors = null; return true; ';\n }\n } else {\n out += ' var ' + ($valid) + ' = true; ';\n }\n }\n if (it.isTop) {\n out += ' }; return validate; ';\n }\n return out;\n }\n if (it.isTop) {\n var $top = it.isTop,\n $lvl = it.level = 0,\n $dataLvl = it.dataLevel = 0,\n $data = 'data';\n it.rootId = it.resolve.fullPath(it.self._getId(it.root.schema));\n it.baseId = it.baseId || it.rootId;\n delete it.isTop;\n it.dataPathArr = [undefined];\n if (it.schema.default !== undefined && it.opts.useDefaults && it.opts.strictDefaults) {\n var $defaultMsg = 'default is ignored in the schema root';\n if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);\n else throw new Error($defaultMsg);\n }\n out += ' var vErrors = null; ';\n out += ' var errors = 0; ';\n out += ' if (rootData === undefined) rootData = data; ';\n } else {\n var $lvl = it.level,\n $dataLvl = it.dataLevel,\n $data = 'data' + ($dataLvl || '');\n if ($id) it.baseId = it.resolve.url(it.baseId, $id);\n if ($async && !it.async) throw new Error('async schema in sync schema');\n out += ' var errs_' + ($lvl) + ' = errors;';\n }\n var $valid = 'valid' + $lvl,\n $breakOnError = !it.opts.allErrors,\n $closingBraces1 = '',\n $closingBraces2 = '';\n var $errorKeyword;\n var $typeSchema = it.schema.type,\n $typeIsArray = Array.isArray($typeSchema);\n if ($typeSchema && it.opts.nullable && it.schema.nullable === true) {\n if ($typeIsArray) {\n if ($typeSchema.indexOf('null') == -1) $typeSchema = $typeSchema.concat('null');\n } else if ($typeSchema != 'null') {\n $typeSchema = [$typeSchema, 'null'];\n $typeIsArray = true;\n }\n }\n if ($typeIsArray && $typeSchema.length == 1) {\n $typeSchema = $typeSchema[0];\n $typeIsArray = false;\n }\n if (it.schema.$ref && $refKeywords) {\n if (it.opts.extendRefs == 'fail') {\n throw new Error('$ref: validation keywords used in schema at path \"' + it.errSchemaPath + '\" (see option extendRefs)');\n } else if (it.opts.extendRefs !== true) {\n $refKeywords = false;\n it.logger.warn('$ref: keywords ignored in schema at path \"' + it.errSchemaPath + '\"');\n }\n }\n if (it.schema.$comment && it.opts.$comment) {\n out += ' ' + (it.RULES.all.$comment.code(it, '$comment'));\n }\n if ($typeSchema) {\n if (it.opts.coerceTypes) {\n var $coerceToTypes = it.util.coerceToTypes(it.opts.coerceTypes, $typeSchema);\n }\n var $rulesGroup = it.RULES.types[$typeSchema];\n if ($coerceToTypes || $typeIsArray || $rulesGroup === true || ($rulesGroup && !$shouldUseGroup($rulesGroup))) {\n var $schemaPath = it.schemaPath + '.type',\n $errSchemaPath = it.errSchemaPath + '/type';\n var $schemaPath = it.schemaPath + '.type',\n $errSchemaPath = it.errSchemaPath + '/type',\n $method = $typeIsArray ? 'checkDataTypes' : 'checkDataType';\n out += ' if (' + (it.util[$method]($typeSchema, $data, it.opts.strictNumbers, true)) + ') { ';\n if ($coerceToTypes) {\n var $dataType = 'dataType' + $lvl,\n $coerced = 'coerced' + $lvl;\n out += ' var ' + ($dataType) + ' = typeof ' + ($data) + '; var ' + ($coerced) + ' = undefined; ';\n if (it.opts.coerceTypes == 'array') {\n out += ' if (' + ($dataType) + ' == \\'object\\' && Array.isArray(' + ($data) + ') && ' + ($data) + '.length == 1) { ' + ($data) + ' = ' + ($data) + '[0]; ' + ($dataType) + ' = typeof ' + ($data) + '; if (' + (it.util.checkDataType(it.schema.type, $data, it.opts.strictNumbers)) + ') ' + ($coerced) + ' = ' + ($data) + '; } ';\n }\n out += ' if (' + ($coerced) + ' !== undefined) ; ';\n var arr1 = $coerceToTypes;\n if (arr1) {\n var $type, $i = -1,\n l1 = arr1.length - 1;\n while ($i < l1) {\n $type = arr1[$i += 1];\n if ($type == 'string') {\n out += ' else if (' + ($dataType) + ' == \\'number\\' || ' + ($dataType) + ' == \\'boolean\\') ' + ($coerced) + ' = \\'\\' + ' + ($data) + '; else if (' + ($data) + ' === null) ' + ($coerced) + ' = \\'\\'; ';\n } else if ($type == 'number' || $type == 'integer') {\n out += ' else if (' + ($dataType) + ' == \\'boolean\\' || ' + ($data) + ' === null || (' + ($dataType) + ' == \\'string\\' && ' + ($data) + ' && ' + ($data) + ' == +' + ($data) + ' ';\n if ($type == 'integer') {\n out += ' && !(' + ($data) + ' % 1)';\n }\n out += ')) ' + ($coerced) + ' = +' + ($data) + '; ';\n } else if ($type == 'boolean') {\n out += ' else if (' + ($data) + ' === \\'false\\' || ' + ($data) + ' === 0 || ' + ($data) + ' === null) ' + ($coerced) + ' = false; else if (' + ($data) + ' === \\'true\\' || ' + ($data) + ' === 1) ' + ($coerced) + ' = true; ';\n } else if ($type == 'null') {\n out += ' else if (' + ($data) + ' === \\'\\' || ' + ($data) + ' === 0 || ' + ($data) + ' === false) ' + ($coerced) + ' = null; ';\n } else if (it.opts.coerceTypes == 'array' && $type == 'array') {\n out += ' else if (' + ($dataType) + ' == \\'string\\' || ' + ($dataType) + ' == \\'number\\' || ' + ($dataType) + ' == \\'boolean\\' || ' + ($data) + ' == null) ' + ($coerced) + ' = [' + ($data) + ']; ';\n }\n }\n }\n out += ' else { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || 'type') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \\'';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be ';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } if (' + ($coerced) + ' !== undefined) { ';\n var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',\n $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';\n out += ' ' + ($data) + ' = ' + ($coerced) + '; ';\n if (!$dataLvl) {\n out += 'if (' + ($parentData) + ' !== undefined)';\n }\n out += ' ' + ($parentData) + '[' + ($parentDataProperty) + '] = ' + ($coerced) + '; } ';\n } else {\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || 'type') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \\'';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be ';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n }\n out += ' } ';\n }\n }\n if (it.schema.$ref && !$refKeywords) {\n out += ' ' + (it.RULES.all.$ref.code(it, '$ref')) + ' ';\n if ($breakOnError) {\n out += ' } if (errors === ';\n if ($top) {\n out += '0';\n } else {\n out += 'errs_' + ($lvl);\n }\n out += ') { ';\n $closingBraces2 += '}';\n }\n } else {\n var arr2 = it.RULES;\n if (arr2) {\n var $rulesGroup, i2 = -1,\n l2 = arr2.length - 1;\n while (i2 < l2) {\n $rulesGroup = arr2[i2 += 1];\n if ($shouldUseGroup($rulesGroup)) {\n if ($rulesGroup.type) {\n out += ' if (' + (it.util.checkDataType($rulesGroup.type, $data, it.opts.strictNumbers)) + ') { ';\n }\n if (it.opts.useDefaults) {\n if ($rulesGroup.type == 'object' && it.schema.properties) {\n var $schema = it.schema.properties,\n $schemaKeys = Object.keys($schema);\n var arr3 = $schemaKeys;\n if (arr3) {\n var $propertyKey, i3 = -1,\n l3 = arr3.length - 1;\n while (i3 < l3) {\n $propertyKey = arr3[i3 += 1];\n var $sch = $schema[$propertyKey];\n if ($sch.default !== undefined) {\n var $passData = $data + it.util.getProperty($propertyKey);\n if (it.compositeRule) {\n if (it.opts.strictDefaults) {\n var $defaultMsg = 'default is ignored for: ' + $passData;\n if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);\n else throw new Error($defaultMsg);\n }\n } else {\n out += ' if (' + ($passData) + ' === undefined ';\n if (it.opts.useDefaults == 'empty') {\n out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \\'\\' ';\n }\n out += ' ) ' + ($passData) + ' = ';\n if (it.opts.useDefaults == 'shared') {\n out += ' ' + (it.useDefault($sch.default)) + ' ';\n } else {\n out += ' ' + (JSON.stringify($sch.default)) + ' ';\n }\n out += '; ';\n }\n }\n }\n }\n } else if ($rulesGroup.type == 'array' && Array.isArray(it.schema.items)) {\n var arr4 = it.schema.items;\n if (arr4) {\n var $sch, $i = -1,\n l4 = arr4.length - 1;\n while ($i < l4) {\n $sch = arr4[$i += 1];\n if ($sch.default !== undefined) {\n var $passData = $data + '[' + $i + ']';\n if (it.compositeRule) {\n if (it.opts.strictDefaults) {\n var $defaultMsg = 'default is ignored for: ' + $passData;\n if (it.opts.strictDefaults === 'log') it.logger.warn($defaultMsg);\n else throw new Error($defaultMsg);\n }\n } else {\n out += ' if (' + ($passData) + ' === undefined ';\n if (it.opts.useDefaults == 'empty') {\n out += ' || ' + ($passData) + ' === null || ' + ($passData) + ' === \\'\\' ';\n }\n out += ' ) ' + ($passData) + ' = ';\n if (it.opts.useDefaults == 'shared') {\n out += ' ' + (it.useDefault($sch.default)) + ' ';\n } else {\n out += ' ' + (JSON.stringify($sch.default)) + ' ';\n }\n out += '; ';\n }\n }\n }\n }\n }\n }\n var arr5 = $rulesGroup.rules;\n if (arr5) {\n var $rule, i5 = -1,\n l5 = arr5.length - 1;\n while (i5 < l5) {\n $rule = arr5[i5 += 1];\n if ($shouldUseRule($rule)) {\n var $code = $rule.code(it, $rule.keyword, $rulesGroup.type);\n if ($code) {\n out += ' ' + ($code) + ' ';\n if ($breakOnError) {\n $closingBraces1 += '}';\n }\n }\n }\n }\n }\n if ($breakOnError) {\n out += ' ' + ($closingBraces1) + ' ';\n $closingBraces1 = '';\n }\n if ($rulesGroup.type) {\n out += ' } ';\n if ($typeSchema && $typeSchema === $rulesGroup.type && !$coerceToTypes) {\n out += ' else { ';\n var $schemaPath = it.schemaPath + '.type',\n $errSchemaPath = it.errSchemaPath + '/type';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || 'type') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { type: \\'';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be ';\n if ($typeIsArray) {\n out += '' + ($typeSchema.join(\",\"));\n } else {\n out += '' + ($typeSchema);\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } ';\n }\n }\n if ($breakOnError) {\n out += ' if (errors === ';\n if ($top) {\n out += '0';\n } else {\n out += 'errs_' + ($lvl);\n }\n out += ') { ';\n $closingBraces2 += '}';\n }\n }\n }\n }\n }\n if ($breakOnError) {\n out += ' ' + ($closingBraces2) + ' ';\n }\n if ($top) {\n if ($async) {\n out += ' if (errors === 0) return data; ';\n out += ' else throw new ValidationError(vErrors); ';\n } else {\n out += ' validate.errors = vErrors; ';\n out += ' return errors === 0; ';\n }\n out += ' }; return validate;';\n } else {\n out += ' var ' + ($valid) + ' = errors === errs_' + ($lvl) + ';';\n }\n\n function $shouldUseGroup($rulesGroup) {\n var rules = $rulesGroup.rules;\n for (var i = 0; i < rules.length; i++)\n if ($shouldUseRule(rules[i])) return true;\n }\n\n function $shouldUseRule($rule) {\n return it.schema[$rule.keyword] !== undefined || ($rule.implements && $ruleImplementsSomeKeyword($rule));\n }\n\n function $ruleImplementsSomeKeyword($rule) {\n var impl = $rule.implements;\n for (var i = 0; i < impl.length; i++)\n if (it.schema[impl[i]] !== undefined) return true;\n }\n return out;\n}\n","var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n","'use strict';\nmodule.exports = function generate_dependencies(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $schemaDeps = {},\n $propertyDeps = {},\n $ownProperties = it.opts.ownProperties;\n for ($property in $schema) {\n if ($property == '__proto__') continue;\n var $sch = $schema[$property];\n var $deps = Array.isArray($sch) ? $propertyDeps : $schemaDeps;\n $deps[$property] = $sch;\n }\n out += 'var ' + ($errs) + ' = errors;';\n var $currentErrorPath = it.errorPath;\n out += 'var missing' + ($lvl) + ';';\n for (var $property in $propertyDeps) {\n $deps = $propertyDeps[$property];\n if ($deps.length) {\n out += ' if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined ';\n if ($ownProperties) {\n out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($property)) + '\\') ';\n }\n if ($breakOnError) {\n out += ' && ( ';\n var arr1 = $deps;\n if (arr1) {\n var $propertyKey, $i = -1,\n l1 = arr1.length - 1;\n while ($i < l1) {\n $propertyKey = arr1[$i += 1];\n if ($i) {\n out += ' || ';\n }\n var $prop = it.util.getProperty($propertyKey),\n $useData = $data + $prop;\n out += ' ( ( ' + ($useData) + ' === undefined ';\n if ($ownProperties) {\n out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($propertyKey)) + '\\') ';\n }\n out += ') && (missing' + ($lvl) + ' = ' + (it.util.toQuotedString(it.opts.jsonPointers ? $propertyKey : $prop)) + ') ) ';\n }\n }\n out += ')) { ';\n var $propertyPath = 'missing' + $lvl,\n $missingProperty = '\\' + ' + $propertyPath + ' + \\'';\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.opts.jsonPointers ? it.util.getPathExpr($currentErrorPath, $propertyPath, true) : $currentErrorPath + ' + ' + $propertyPath;\n }\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('dependencies') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { property: \\'' + (it.util.escapeQuotes($property)) + '\\', missingProperty: \\'' + ($missingProperty) + '\\', depsCount: ' + ($deps.length) + ', deps: \\'' + (it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(\", \"))) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should have ';\n if ($deps.length == 1) {\n out += 'property ' + (it.util.escapeQuotes($deps[0]));\n } else {\n out += 'properties ' + (it.util.escapeQuotes($deps.join(\", \")));\n }\n out += ' when property ' + (it.util.escapeQuotes($property)) + ' is present\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n } else {\n out += ' ) { ';\n var arr2 = $deps;\n if (arr2) {\n var $propertyKey, i2 = -1,\n l2 = arr2.length - 1;\n while (i2 < l2) {\n $propertyKey = arr2[i2 += 1];\n var $prop = it.util.getProperty($propertyKey),\n $missingProperty = it.util.escapeQuotes($propertyKey),\n $useData = $data + $prop;\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);\n }\n out += ' if ( ' + ($useData) + ' === undefined ';\n if ($ownProperties) {\n out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($propertyKey)) + '\\') ';\n }\n out += ') { var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('dependencies') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { property: \\'' + (it.util.escapeQuotes($property)) + '\\', missingProperty: \\'' + ($missingProperty) + '\\', depsCount: ' + ($deps.length) + ', deps: \\'' + (it.util.escapeQuotes($deps.length == 1 ? $deps[0] : $deps.join(\", \"))) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should have ';\n if ($deps.length == 1) {\n out += 'property ' + (it.util.escapeQuotes($deps[0]));\n } else {\n out += 'properties ' + (it.util.escapeQuotes($deps.join(\", \")));\n }\n out += ' when property ' + (it.util.escapeQuotes($property)) + ' is present\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ';\n }\n }\n }\n out += ' } ';\n if ($breakOnError) {\n $closingBraces += '}';\n out += ' else { ';\n }\n }\n }\n it.errorPath = $currentErrorPath;\n var $currentBaseId = $it.baseId;\n for (var $property in $schemaDeps) {\n var $sch = $schemaDeps[$property];\n if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {\n out += ' ' + ($nextValid) + ' = true; if ( ' + ($data) + (it.util.getProperty($property)) + ' !== undefined ';\n if ($ownProperties) {\n out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($property)) + '\\') ';\n }\n out += ') { ';\n $it.schema = $sch;\n $it.schemaPath = $schemaPath + it.util.getProperty($property);\n $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($property);\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n out += ' } ';\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n $closingBraces += '}';\n }\n }\n }\n if ($breakOnError) {\n out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';\n }\n return out;\n}\n","var isObject = require('./isObject');\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n","var baseIsMatch = require('./_baseIsMatch'),\n getMatchData = require('./_getMatchData'),\n matchesStrictComparable = require('./_matchesStrictComparable');\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\n\nmodule.exports = baseMatches;\n","'use strict';\n\nvar util = require('./util');\n\nmodule.exports = SchemaObject;\n\nfunction SchemaObject(obj) {\n util.copy(obj, this);\n}\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","var baseAssignValue = require('./_baseAssignValue'),\n createAggregator = require('./_createAggregator');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\nvar groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n});\n\nmodule.exports = groupBy;\n","module.exports = require(\"path\");","'use strict';\n\nvar util = require('./util');\n\nvar DATE = /^(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)$/;\nvar DAYS = [0,31,28,31,30,31,30,31,31,30,31,30,31];\nvar TIME = /^(\\d\\d):(\\d\\d):(\\d\\d)(\\.\\d+)?(z|[+-]\\d\\d(?::?\\d\\d)?)?$/i;\nvar HOSTNAME = /^(?=.{1,253}\\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\\.?$/i;\nvar URI = /^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a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;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i;\n// For the source: https://gist.github.com/dperini/729294\n// For test cases: https://mathiasbynens.be/demo/url-regex\n// @todo Delete current URL in favour of the commented out URL rule when this issue is fixed https://github.com/eslint/eslint/issues/7983.\n// var URL = /^(?:(?:https?|ftp):\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?!10(?:\\.\\d{1,3}){3})(?!127(?:\\.\\d{1,3}){3})(?!169\\.254(?:\\.\\d{1,3}){2})(?!192\\.168(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}0-9]+-?)*[a-z\\u{00a1}-\\u{ffff}0-9]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu;\nvar URL = /^(?:(?:http[s\\u017F]?|ftp):\\/\\/)(?:(?:[\\0-\\x08\\x0E-\\x1F!-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+(?::(?:[\\0-\\x08\\x0E-\\x1F!-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*)?@)?(?:(?!10(?:\\.[0-9]{1,3}){3})(?!127(?:\\.[0-9]{1,3}){3})(?!169\\.254(?:\\.[0-9]{1,3}){2})(?!192\\.168(?:\\.[0-9]{1,3}){2})(?!172\\.(?:1[6-9]|2[0-9]|3[01])(?:\\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+-?)*(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+)(?:\\.(?:(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+-?)*(?:[0-9KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])+)*(?:\\.(?:(?:[KSa-z\\xA1-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\\/(?:[\\0-\\x08\\x0E-\\x1F!-\\x9F\\xA1-\\u167F\\u1681-\\u1FFF\\u200B-\\u2027\\u202A-\\u202E\\u2030-\\u205E\\u2060-\\u2FFF\\u3001-\\uD7FF\\uE000-\\uFEFE\\uFF00-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])*)?$/i;\nvar UUID = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;\nvar JSON_POINTER = /^(?:\\/(?:[^~/]|~0|~1)*)*$/;\nvar JSON_POINTER_URI_FRAGMENT = /^#(?:\\/(?:[a-z0-9_\\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;\nvar RELATIVE_JSON_POINTER = /^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/;\n\n\nmodule.exports = formats;\n\nfunction formats(mode) {\n mode = mode == 'full' ? 'full' : 'fast';\n return util.copy(formats[mode]);\n}\n\n\nformats.fast = {\n // date: http://tools.ietf.org/html/rfc3339#section-5.6\n date: /^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\d$/,\n // date-time: http://tools.ietf.org/html/rfc3339#section-5.6\n time: /^(?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)?$/i,\n 'date-time': /^\\d\\d\\d\\d-[0-1]\\d-[0-3]\\d[t\\s](?:[0-2]\\d:[0-5]\\d:[0-5]\\d|23:59:60)(?:\\.\\d+)?(?:z|[+-]\\d\\d(?::?\\d\\d)?)$/i,\n // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js\n uri: /^(?:[a-z][a-z0-9+-.]*:)(?:\\/?\\/)?[^\\s]*$/i,\n 'uri-reference': /^(?:(?:[a-z][a-z0-9+-.]*:)?\\/?\\/)?(?:[^\\\\\\s#][^\\s#]*)?(?:#[^\\\\\\s]*)?$/i,\n 'uri-template': URITEMPLATE,\n url: URL,\n // email (sources from jsen validator):\n // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363\n // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'willful violation')\n email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,\n hostname: HOSTNAME,\n // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html\n ipv4: /^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$/,\n // optimized http://stackoverflow.com/questions/53497/regular-expression-that-matches-valid-ipv6-addresses\n ipv6: /^\\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(?:%.+)?\\s*$/i,\n regex: regex,\n // uuid: http://tools.ietf.org/html/rfc4122\n uuid: UUID,\n // JSON-pointer: https://tools.ietf.org/html/rfc6901\n // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A\n 'json-pointer': JSON_POINTER,\n 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,\n // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00\n 'relative-json-pointer': RELATIVE_JSON_POINTER\n};\n\n\nformats.full = {\n date: date,\n time: time,\n 'date-time': date_time,\n uri: uri,\n 'uri-reference': URIREF,\n 'uri-template': URITEMPLATE,\n url: URL,\n email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,\n hostname: HOSTNAME,\n ipv4: /^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$/,\n ipv6: /^\\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(?:%.+)?\\s*$/i,\n regex: regex,\n uuid: UUID,\n 'json-pointer': JSON_POINTER,\n 'json-pointer-uri-fragment': JSON_POINTER_URI_FRAGMENT,\n 'relative-json-pointer': RELATIVE_JSON_POINTER\n};\n\n\nfunction isLeapYear(year) {\n // https://tools.ietf.org/html/rfc3339#appendix-C\n return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n}\n\n\nfunction date(str) {\n // full-date from http://tools.ietf.org/html/rfc3339#section-5.6\n var matches = str.match(DATE);\n if (!matches) return false;\n\n var year = +matches[1];\n var month = +matches[2];\n var day = +matches[3];\n\n return month >= 1 && month <= 12 && day >= 1 &&\n day <= (month == 2 && isLeapYear(year) ? 29 : DAYS[month]);\n}\n\n\nfunction time(str, full) {\n var matches = str.match(TIME);\n if (!matches) return false;\n\n var hour = matches[1];\n var minute = matches[2];\n var second = matches[3];\n var timeZone = matches[5];\n return ((hour <= 23 && minute <= 59 && second <= 59) ||\n (hour == 23 && minute == 59 && second == 60)) &&\n (!full || timeZone);\n}\n\n\nvar DATE_TIME_SEPARATOR = /t|\\s/i;\nfunction date_time(str) {\n // http://tools.ietf.org/html/rfc3339#section-5.6\n var dateTime = str.split(DATE_TIME_SEPARATOR);\n return dateTime.length == 2 && date(dateTime[0]) && time(dateTime[1], true);\n}\n\n\nvar NOT_URI_FRAGMENT = /\\/|:/;\nfunction uri(str) {\n // http://jmrware.com/articles/2009/uri_regexp/URI_regex.html + optional protocol + required \".\"\n return NOT_URI_FRAGMENT.test(str) && URI.test(str);\n}\n\n\nvar Z_ANCHOR = /[^\\\\]\\\\Z/;\nfunction regex(str) {\n if (Z_ANCHOR.test(str)) return false;\n try {\n new RegExp(str);\n return true;\n } catch(e) {\n return false;\n }\n}\n","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = stubArray;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n","var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var castPath = require('./_castPath'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isIndex = require('./_isIndex'),\n isLength = require('./isLength'),\n toKey = require('./_toKey');\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n}\n\nmodule.exports = hasPath;\n","'use strict';\nmodule.exports = function generate_const(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n if (!$isData) {\n out += ' var schema' + ($lvl) + ' = validate.schema' + ($schemaPath) + ';';\n }\n out += 'var ' + ($valid) + ' = equal(' + ($data) + ', schema' + ($lvl) + '); if (!' + ($valid) + ') { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('const') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { allowedValue: schema' + ($lvl) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be equal to constant\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' }';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","'use strict';\n\nvar Type = require('../type');\n\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\nvar _toString = Object.prototype.toString;\n\nfunction resolveYamlOmap(data) {\n if (data === null) return true;\n\n var objectKeys = [], index, length, pair, pairKey, pairHasKey,\n object = data;\n\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n pairHasKey = false;\n\n if (_toString.call(pair) !== '[object Object]') return false;\n\n for (pairKey in pair) {\n if (_hasOwnProperty.call(pair, pairKey)) {\n if (!pairHasKey) pairHasKey = true;\n else return false;\n }\n }\n\n if (!pairHasKey) return false;\n\n if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);\n else return false;\n }\n\n return true;\n}\n\nfunction constructYamlOmap(data) {\n return data !== null ? data : [];\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:omap', {\n kind: 'sequence',\n resolve: resolveYamlOmap,\n construct: constructYamlOmap\n});\n","'use strict';\n\nvar Type = require('../type');\n\nfunction resolveYamlNull(data) {\n if (data === null) return true;\n\n var max = data.length;\n\n return (max === 1 && data === '~') ||\n (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));\n}\n\nfunction constructYamlNull() {\n return null;\n}\n\nfunction isNull(object) {\n return object === null;\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:null', {\n kind: 'scalar',\n resolve: resolveYamlNull,\n construct: constructYamlNull,\n predicate: isNull,\n represent: {\n canonical: function () { return '~'; },\n lowercase: function () { return 'null'; },\n uppercase: function () { return 'NULL'; },\n camelcase: function () { return 'Null'; }\n },\n defaultStyle: 'lowercase'\n});\n","'use strict';\n\nvar Type = require('../type');\n\nmodule.exports = new Type('tag:yaml.org,2002:str', {\n kind: 'scalar',\n construct: function (data) { return data !== null ? data : ''; }\n});\n","'use strict';\n\nvar Type = require('../type');\n\nfunction resolveYamlBoolean(data) {\n if (data === null) return false;\n\n var max = data.length;\n\n return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||\n (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));\n}\n\nfunction constructYamlBoolean(data) {\n return data === 'true' ||\n data === 'True' ||\n data === 'TRUE';\n}\n\nfunction isBoolean(object) {\n return Object.prototype.toString.call(object) === '[object Boolean]';\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:bool', {\n kind: 'scalar',\n resolve: resolveYamlBoolean,\n construct: constructYamlBoolean,\n predicate: isBoolean,\n represent: {\n lowercase: function (object) { return object ? 'true' : 'false'; },\n uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },\n camelcase: function (object) { return object ? 'True' : 'False'; }\n },\n defaultStyle: 'lowercase'\n});\n","'use strict';\n\n\nvar Cache = module.exports = function Cache() {\n this._cache = {};\n};\n\n\nCache.prototype.put = function Cache_put(key, value) {\n this._cache[key] = value;\n};\n\n\nCache.prototype.get = function Cache_get(key) {\n return this._cache[key];\n};\n\n\nCache.prototype.del = function Cache_del(key) {\n delete this._cache[key];\n};\n\n\nCache.prototype.clear = function Cache_clear() {\n this._cache = {};\n};\n","'use strict';\nmodule.exports = function generate__limitItems(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $errorKeyword;\n var $data = 'data' + ($dataLvl || '');\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n if (!($isData || typeof $schema == 'number')) {\n throw new Error($keyword + ' must be number');\n }\n var $op = $keyword == 'maxItems' ? '>' : '<';\n out += 'if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'number\\') || ';\n }\n out += ' ' + ($data) + '.length ' + ($op) + ' ' + ($schemaValue) + ') { ';\n var $errorKeyword = $keyword;\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || '_limitItems') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { limit: ' + ($schemaValue) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should NOT have ';\n if ($keyword == 'maxItems') {\n out += 'more';\n } else {\n out += 'fewer';\n }\n out += ' than ';\n if ($isData) {\n out += '\\' + ' + ($schemaValue) + ' + \\'';\n } else {\n out += '' + ($schema);\n }\n out += ' items\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + ($schema);\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += '} ';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","var isArray = require('./isArray'),\n isKey = require('./_isKey'),\n stringToPath = require('./_stringToPath'),\n toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n","var baseGetTag = require('./_baseGetTag'),\n isArray = require('./isArray'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nmodule.exports = createBaseFor;\n","var baseFor = require('./_baseFor'),\n keys = require('./keys');\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nmodule.exports = baseForOwn;\n",null,"var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n","'use strict';\n\nvar resolve = require('./resolve');\n\nmodule.exports = {\n Validation: errorSubclass(ValidationError),\n MissingRef: errorSubclass(MissingRefError)\n};\n\n\nfunction ValidationError(errors) {\n this.message = 'validation failed';\n this.errors = errors;\n this.ajv = this.validation = true;\n}\n\n\nMissingRefError.message = function (baseId, ref) {\n return 'can\\'t resolve reference ' + ref + ' from id ' + baseId;\n};\n\n\nfunction MissingRefError(baseId, ref, message) {\n this.message = message || MissingRefError.message(baseId, ref);\n this.missingRef = resolve.url(baseId, ref);\n this.missingSchema = resolve.normalizeId(resolve.fullPath(this.missingRef));\n}\n\n\nfunction errorSubclass(Subclass) {\n Subclass.prototype = Object.create(Error.prototype);\n Subclass.prototype.constructor = Subclass;\n return Subclass;\n}\n","/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n","module.exports = require(\"fs\");","'use strict';\nmodule.exports = function generate_not(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n if ((it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all))) {\n $it.schema = $schema;\n $it.schemaPath = $schemaPath;\n $it.errSchemaPath = $errSchemaPath;\n out += ' var ' + ($errs) + ' = errors; ';\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n $it.createErrors = false;\n var $allErrorsOption;\n if ($it.opts.allErrors) {\n $allErrorsOption = $it.opts.allErrors;\n $it.opts.allErrors = false;\n }\n out += ' ' + (it.validate($it)) + ' ';\n $it.createErrors = true;\n if ($allErrorsOption) $it.opts.allErrors = $allErrorsOption;\n it.compositeRule = $it.compositeRule = $wasComposite;\n out += ' if (' + ($nextValid) + ') { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('not') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should NOT be valid\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } else { errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';\n if (it.opts.allErrors) {\n out += ' } ';\n }\n } else {\n out += ' var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('not') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should NOT be valid\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n if ($breakOnError) {\n out += ' if (false) { ';\n }\n }\n return out;\n}\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var castPath = require('./_castPath'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","'use strict';\nmodule.exports = function generate_multipleOf(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n if (!($isData || typeof $schema == 'number')) {\n throw new Error($keyword + ' must be number');\n }\n out += 'var division' + ($lvl) + ';if (';\n if ($isData) {\n out += ' ' + ($schemaValue) + ' !== undefined && ( typeof ' + ($schemaValue) + ' != \\'number\\' || ';\n }\n out += ' (division' + ($lvl) + ' = ' + ($data) + ' / ' + ($schemaValue) + ', ';\n if (it.opts.multipleOfPrecision) {\n out += ' Math.abs(Math.round(division' + ($lvl) + ') - division' + ($lvl) + ') > 1e-' + (it.opts.multipleOfPrecision) + ' ';\n } else {\n out += ' division' + ($lvl) + ' !== parseInt(division' + ($lvl) + ') ';\n }\n out += ' ) ';\n if ($isData) {\n out += ' ) ';\n }\n out += ' ) { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('multipleOf') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { multipleOf: ' + ($schemaValue) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should be multiple of ';\n if ($isData) {\n out += '\\' + ' + ($schemaValue);\n } else {\n out += '' + ($schemaValue) + '\\'';\n }\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + ($schema);\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += '} ';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","var baseFlatten = require('./_baseFlatten'),\n baseOrderBy = require('./_baseOrderBy'),\n baseRest = require('./_baseRest'),\n isIterateeCall = require('./_isIterateeCall');\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\nmodule.exports = sortBy;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","var arrayFilter = require('./_arrayFilter'),\n stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nmodule.exports = getSymbols;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","'use strict';\n\n//all requires must be explicit because browserify won't work with dynamic requires\nmodule.exports = {\n '$ref': require('./ref'),\n allOf: require('./allOf'),\n anyOf: require('./anyOf'),\n '$comment': require('./comment'),\n const: require('./const'),\n contains: require('./contains'),\n dependencies: require('./dependencies'),\n 'enum': require('./enum'),\n format: require('./format'),\n 'if': require('./if'),\n items: require('./items'),\n maximum: require('./_limit'),\n minimum: require('./_limit'),\n maxItems: require('./_limitItems'),\n minItems: require('./_limitItems'),\n maxLength: require('./_limitLength'),\n minLength: require('./_limitLength'),\n maxProperties: require('./_limitProperties'),\n minProperties: require('./_limitProperties'),\n multipleOf: require('./multipleOf'),\n not: require('./not'),\n oneOf: require('./oneOf'),\n pattern: require('./pattern'),\n properties: require('./properties'),\n propertyNames: require('./propertyNames'),\n required: require('./required'),\n uniqueItems: require('./uniqueItems'),\n validate: require('./validate')\n};\n","var compareAscending = require('./_compareAscending');\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\nmodule.exports = compareMultiple;\n","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = identity;\n","/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\nmodule.exports = baseProperty;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n","'use strict';\nmodule.exports = function generate_format(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n if (it.opts.format === false) {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n return out;\n }\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n var $unknownFormats = it.opts.unknownFormats,\n $allowUnknown = Array.isArray($unknownFormats);\n if ($isData) {\n var $format = 'format' + $lvl,\n $isObject = 'isObject' + $lvl,\n $formatType = 'formatType' + $lvl;\n out += ' var ' + ($format) + ' = formats[' + ($schemaValue) + ']; var ' + ($isObject) + ' = typeof ' + ($format) + ' == \\'object\\' && !(' + ($format) + ' instanceof RegExp) && ' + ($format) + '.validate; var ' + ($formatType) + ' = ' + ($isObject) + ' && ' + ($format) + '.type || \\'string\\'; if (' + ($isObject) + ') { ';\n if (it.async) {\n out += ' var async' + ($lvl) + ' = ' + ($format) + '.async; ';\n }\n out += ' ' + ($format) + ' = ' + ($format) + '.validate; } if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'string\\') || ';\n }\n out += ' (';\n if ($unknownFormats != 'ignore') {\n out += ' (' + ($schemaValue) + ' && !' + ($format) + ' ';\n if ($allowUnknown) {\n out += ' && self._opts.unknownFormats.indexOf(' + ($schemaValue) + ') == -1 ';\n }\n out += ') || ';\n }\n out += ' (' + ($format) + ' && ' + ($formatType) + ' == \\'' + ($ruleType) + '\\' && !(typeof ' + ($format) + ' == \\'function\\' ? ';\n if (it.async) {\n out += ' (async' + ($lvl) + ' ? await ' + ($format) + '(' + ($data) + ') : ' + ($format) + '(' + ($data) + ')) ';\n } else {\n out += ' ' + ($format) + '(' + ($data) + ') ';\n }\n out += ' : ' + ($format) + '.test(' + ($data) + '))))) {';\n } else {\n var $format = it.formats[$schema];\n if (!$format) {\n if ($unknownFormats == 'ignore') {\n it.logger.warn('unknown format \"' + $schema + '\" ignored in schema at path \"' + it.errSchemaPath + '\"');\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n return out;\n } else if ($allowUnknown && $unknownFormats.indexOf($schema) >= 0) {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n return out;\n } else {\n throw new Error('unknown format \"' + $schema + '\" is used in schema at path \"' + it.errSchemaPath + '\"');\n }\n }\n var $isObject = typeof $format == 'object' && !($format instanceof RegExp) && $format.validate;\n var $formatType = $isObject && $format.type || 'string';\n if ($isObject) {\n var $async = $format.async === true;\n $format = $format.validate;\n }\n if ($formatType != $ruleType) {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n return out;\n }\n if ($async) {\n if (!it.async) throw new Error('async format in sync schema');\n var $formatRef = 'formats' + it.util.getProperty($schema) + '.validate';\n out += ' if (!(await ' + ($formatRef) + '(' + ($data) + '))) { ';\n } else {\n out += ' if (! ';\n var $formatRef = 'formats' + it.util.getProperty($schema);\n if ($isObject) $formatRef += '.validate';\n if (typeof $format == 'function') {\n out += ' ' + ($formatRef) + '(' + ($data) + ') ';\n } else {\n out += ' ' + ($formatRef) + '.test(' + ($data) + ') ';\n }\n out += ') { ';\n }\n }\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('format') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { format: ';\n if ($isData) {\n out += '' + ($schemaValue);\n } else {\n out += '' + (it.util.toQuotedString($schema));\n }\n out += ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should match format \"';\n if ($isData) {\n out += '\\' + ' + ($schemaValue) + ' + \\'';\n } else {\n out += '' + (it.util.escapeQuotes($schema));\n }\n out += '\"\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + (it.util.toQuotedString($schema));\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","var arrayMap = require('./_arrayMap'),\n baseGet = require('./_baseGet'),\n baseIteratee = require('./_baseIteratee'),\n baseMap = require('./_baseMap'),\n baseSortBy = require('./_baseSortBy'),\n baseUnary = require('./_baseUnary'),\n compareMultiple = require('./_compareMultiple'),\n identity = require('./identity'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\nmodule.exports = baseOrderBy;\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nmodule.exports = mapToArray;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n","'use strict';\nmodule.exports = function generate_if(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $thenSch = it.schema['then'],\n $elseSch = it.schema['else'],\n $thenPresent = $thenSch !== undefined && (it.opts.strictKeywords ? typeof $thenSch == 'object' && Object.keys($thenSch).length > 0 : it.util.schemaHasRules($thenSch, it.RULES.all)),\n $elsePresent = $elseSch !== undefined && (it.opts.strictKeywords ? typeof $elseSch == 'object' && Object.keys($elseSch).length > 0 : it.util.schemaHasRules($elseSch, it.RULES.all)),\n $currentBaseId = $it.baseId;\n if ($thenPresent || $elsePresent) {\n var $ifClause;\n $it.createErrors = false;\n $it.schema = $schema;\n $it.schemaPath = $schemaPath;\n $it.errSchemaPath = $errSchemaPath;\n out += ' var ' + ($errs) + ' = errors; var ' + ($valid) + ' = true; ';\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n $it.createErrors = true;\n out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';\n it.compositeRule = $it.compositeRule = $wasComposite;\n if ($thenPresent) {\n out += ' if (' + ($nextValid) + ') { ';\n $it.schema = it.schema['then'];\n $it.schemaPath = it.schemaPath + '.then';\n $it.errSchemaPath = it.errSchemaPath + '/then';\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n out += ' ' + ($valid) + ' = ' + ($nextValid) + '; ';\n if ($thenPresent && $elsePresent) {\n $ifClause = 'ifClause' + $lvl;\n out += ' var ' + ($ifClause) + ' = \\'then\\'; ';\n } else {\n $ifClause = '\\'then\\'';\n }\n out += ' } ';\n if ($elsePresent) {\n out += ' else { ';\n }\n } else {\n out += ' if (!' + ($nextValid) + ') { ';\n }\n if ($elsePresent) {\n $it.schema = it.schema['else'];\n $it.schemaPath = it.schemaPath + '.else';\n $it.errSchemaPath = it.errSchemaPath + '/else';\n out += ' ' + (it.validate($it)) + ' ';\n $it.baseId = $currentBaseId;\n out += ' ' + ($valid) + ' = ' + ($nextValid) + '; ';\n if ($thenPresent && $elsePresent) {\n $ifClause = 'ifClause' + $lvl;\n out += ' var ' + ($ifClause) + ' = \\'else\\'; ';\n } else {\n $ifClause = '\\'else\\'';\n }\n out += ' } ';\n }\n out += ' if (!' + ($valid) + ') { var err = '; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('if') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { failingKeyword: ' + ($ifClause) + ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should match \"\\' + ' + ($ifClause) + ' + \\'\" schema\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n out += '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError(vErrors); ';\n } else {\n out += ' validate.errors = vErrors; return false; ';\n }\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' else { ';\n }\n } else {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n }\n return out;\n}\n","var defineProperty = require('./_defineProperty');\n\n/**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n}\n\nmodule.exports = baseAssignValue;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var memoizeCapped = require('./_memoizeCapped');\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nmodule.exports = stringToPath;\n","// JS-YAML's default schema for `load` function.\n// It is not described in the YAML specification.\n//\n// This schema is based on JS-YAML's default safe schema and includes\n// JavaScript-specific types: !!js/undefined, !!js/regexp and !!js/function.\n//\n// Also this schema is used as default base schema at `Schema.create` function.\n\n\n'use strict';\n\n\nvar Schema = require('../schema');\n\n\nmodule.exports = Schema.DEFAULT = new Schema({\n include: [\n require('./default_safe')\n ],\n explicit: [\n require('../type/js/undefined'),\n require('../type/js/regexp'),\n require('../type/js/function')\n ]\n});\n","'use strict';\n\nvar resolve = require('./resolve')\n , util = require('./util')\n , errorClasses = require('./error_classes')\n , stableStringify = require('fast-json-stable-stringify');\n\nvar validateGenerator = require('../dotjs/validate');\n\n/**\n * Functions below are used inside compiled validations function\n */\n\nvar ucs2length = util.ucs2length;\nvar equal = require('fast-deep-equal');\n\n// this error is thrown by async schemas to return validation errors via exception\nvar ValidationError = errorClasses.Validation;\n\nmodule.exports = compile;\n\n\n/**\n * Compiles schema to validation function\n * @this Ajv\n * @param {Object} schema schema object\n * @param {Object} root object with information about the root schema for this schema\n * @param {Object} localRefs the hash of local references inside the schema (created by resolve.id), used for inline resolution\n * @param {String} baseId base ID for IDs in the schema\n * @return {Function} validation function\n */\nfunction compile(schema, root, localRefs, baseId) {\n /* jshint validthis: true, evil: true */\n /* eslint no-shadow: 0 */\n var self = this\n , opts = this._opts\n , refVal = [ undefined ]\n , refs = {}\n , patterns = []\n , patternsHash = {}\n , defaults = []\n , defaultsHash = {}\n , customRules = [];\n\n root = root || { schema: schema, refVal: refVal, refs: refs };\n\n var c = checkCompiling.call(this, schema, root, baseId);\n var compilation = this._compilations[c.index];\n if (c.compiling) return (compilation.callValidate = callValidate);\n\n var formats = this._formats;\n var RULES = this.RULES;\n\n try {\n var v = localCompile(schema, root, localRefs, baseId);\n compilation.validate = v;\n var cv = compilation.callValidate;\n if (cv) {\n cv.schema = v.schema;\n cv.errors = null;\n cv.refs = v.refs;\n cv.refVal = v.refVal;\n cv.root = v.root;\n cv.$async = v.$async;\n if (opts.sourceCode) cv.source = v.source;\n }\n return v;\n } finally {\n endCompiling.call(this, schema, root, baseId);\n }\n\n /* @this {*} - custom context, see passContext option */\n function callValidate() {\n /* jshint validthis: true */\n var validate = compilation.validate;\n var result = validate.apply(this, arguments);\n callValidate.errors = validate.errors;\n return result;\n }\n\n function localCompile(_schema, _root, localRefs, baseId) {\n var isRoot = !_root || (_root && _root.schema == _schema);\n if (_root.schema != root.schema)\n return compile.call(self, _schema, _root, localRefs, baseId);\n\n var $async = _schema.$async === true;\n\n var sourceCode = validateGenerator({\n isTop: true,\n schema: _schema,\n isRoot: isRoot,\n baseId: baseId,\n root: _root,\n schemaPath: '',\n errSchemaPath: '#',\n errorPath: '\"\"',\n MissingRefError: errorClasses.MissingRef,\n RULES: RULES,\n validate: validateGenerator,\n util: util,\n resolve: resolve,\n resolveRef: resolveRef,\n usePattern: usePattern,\n useDefault: useDefault,\n useCustomRule: useCustomRule,\n opts: opts,\n formats: formats,\n logger: self.logger,\n self: self\n });\n\n sourceCode = vars(refVal, refValCode) + vars(patterns, patternCode)\n + vars(defaults, defaultCode) + vars(customRules, customRuleCode)\n + sourceCode;\n\n if (opts.processCode) sourceCode = opts.processCode(sourceCode, _schema);\n // console.log('\\n\\n\\n *** \\n', JSON.stringify(sourceCode));\n var validate;\n try {\n var makeValidate = new Function(\n 'self',\n 'RULES',\n 'formats',\n 'root',\n 'refVal',\n 'defaults',\n 'customRules',\n 'equal',\n 'ucs2length',\n 'ValidationError',\n sourceCode\n );\n\n validate = makeValidate(\n self,\n RULES,\n formats,\n root,\n refVal,\n defaults,\n customRules,\n equal,\n ucs2length,\n ValidationError\n );\n\n refVal[0] = validate;\n } catch(e) {\n self.logger.error('Error compiling schema, function code:', sourceCode);\n throw e;\n }\n\n validate.schema = _schema;\n validate.errors = null;\n validate.refs = refs;\n validate.refVal = refVal;\n validate.root = isRoot ? validate : _root;\n if ($async) validate.$async = true;\n if (opts.sourceCode === true) {\n validate.source = {\n code: sourceCode,\n patterns: patterns,\n defaults: defaults\n };\n }\n\n return validate;\n }\n\n function resolveRef(baseId, ref, isRoot) {\n ref = resolve.url(baseId, ref);\n var refIndex = refs[ref];\n var _refVal, refCode;\n if (refIndex !== undefined) {\n _refVal = refVal[refIndex];\n refCode = 'refVal[' + refIndex + ']';\n return resolvedRef(_refVal, refCode);\n }\n if (!isRoot && root.refs) {\n var rootRefId = root.refs[ref];\n if (rootRefId !== undefined) {\n _refVal = root.refVal[rootRefId];\n refCode = addLocalRef(ref, _refVal);\n return resolvedRef(_refVal, refCode);\n }\n }\n\n refCode = addLocalRef(ref);\n var v = resolve.call(self, localCompile, root, ref);\n if (v === undefined) {\n var localSchema = localRefs && localRefs[ref];\n if (localSchema) {\n v = resolve.inlineRef(localSchema, opts.inlineRefs)\n ? localSchema\n : compile.call(self, localSchema, root, localRefs, baseId);\n }\n }\n\n if (v === undefined) {\n removeLocalRef(ref);\n } else {\n replaceLocalRef(ref, v);\n return resolvedRef(v, refCode);\n }\n }\n\n function addLocalRef(ref, v) {\n var refId = refVal.length;\n refVal[refId] = v;\n refs[ref] = refId;\n return 'refVal' + refId;\n }\n\n function removeLocalRef(ref) {\n delete refs[ref];\n }\n\n function replaceLocalRef(ref, v) {\n var refId = refs[ref];\n refVal[refId] = v;\n }\n\n function resolvedRef(refVal, code) {\n return typeof refVal == 'object' || typeof refVal == 'boolean'\n ? { code: code, schema: refVal, inline: true }\n : { code: code, $async: refVal && !!refVal.$async };\n }\n\n function usePattern(regexStr) {\n var index = patternsHash[regexStr];\n if (index === undefined) {\n index = patternsHash[regexStr] = patterns.length;\n patterns[index] = regexStr;\n }\n return 'pattern' + index;\n }\n\n function useDefault(value) {\n switch (typeof value) {\n case 'boolean':\n case 'number':\n return '' + value;\n case 'string':\n return util.toQuotedString(value);\n case 'object':\n if (value === null) return 'null';\n var valueStr = stableStringify(value);\n var index = defaultsHash[valueStr];\n if (index === undefined) {\n index = defaultsHash[valueStr] = defaults.length;\n defaults[index] = value;\n }\n return 'default' + index;\n }\n }\n\n function useCustomRule(rule, schema, parentSchema, it) {\n if (self._opts.validateSchema !== false) {\n var deps = rule.definition.dependencies;\n if (deps && !deps.every(function(keyword) {\n return Object.prototype.hasOwnProperty.call(parentSchema, keyword);\n }))\n throw new Error('parent schema must have all required keywords: ' + deps.join(','));\n\n var validateSchema = rule.definition.validateSchema;\n if (validateSchema) {\n var valid = validateSchema(schema);\n if (!valid) {\n var message = 'keyword schema is invalid: ' + self.errorsText(validateSchema.errors);\n if (self._opts.validateSchema == 'log') self.logger.error(message);\n else throw new Error(message);\n }\n }\n }\n\n var compile = rule.definition.compile\n , inline = rule.definition.inline\n , macro = rule.definition.macro;\n\n var validate;\n if (compile) {\n validate = compile.call(self, schema, parentSchema, it);\n } else if (macro) {\n validate = macro.call(self, schema, parentSchema, it);\n if (opts.validateSchema !== false) self.validateSchema(validate, true);\n } else if (inline) {\n validate = inline.call(self, it, rule.keyword, schema, parentSchema);\n } else {\n validate = rule.definition.validate;\n if (!validate) return;\n }\n\n if (validate === undefined)\n throw new Error('custom keyword \"' + rule.keyword + '\"failed to compile');\n\n var index = customRules.length;\n customRules[index] = validate;\n\n return {\n code: 'customRule' + index,\n validate: validate\n };\n }\n}\n\n\n/**\n * Checks if the schema is currently compiled\n * @this Ajv\n * @param {Object} schema schema to compile\n * @param {Object} root root object\n * @param {String} baseId base schema ID\n * @return {Object} object with properties \"index\" (compilation index) and \"compiling\" (boolean)\n */\nfunction checkCompiling(schema, root, baseId) {\n /* jshint validthis: true */\n var index = compIndex.call(this, schema, root, baseId);\n if (index >= 0) return { index: index, compiling: true };\n index = this._compilations.length;\n this._compilations[index] = {\n schema: schema,\n root: root,\n baseId: baseId\n };\n return { index: index, compiling: false };\n}\n\n\n/**\n * Removes the schema from the currently compiled list\n * @this Ajv\n * @param {Object} schema schema to compile\n * @param {Object} root root object\n * @param {String} baseId base schema ID\n */\nfunction endCompiling(schema, root, baseId) {\n /* jshint validthis: true */\n var i = compIndex.call(this, schema, root, baseId);\n if (i >= 0) this._compilations.splice(i, 1);\n}\n\n\n/**\n * Index of schema compilation in the currently compiled list\n * @this Ajv\n * @param {Object} schema schema to compile\n * @param {Object} root root object\n * @param {String} baseId base schema ID\n * @return {Integer} compilation index\n */\nfunction compIndex(schema, root, baseId) {\n /* jshint validthis: true */\n for (var i=0; i [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n","'use strict';\n\nvar MissingRefError = require('./error_classes').MissingRef;\n\nmodule.exports = compileAsync;\n\n\n/**\n * Creates validating function for passed schema with asynchronous loading of missing schemas.\n * `loadSchema` option should be a function that accepts schema uri and returns promise that resolves with the schema.\n * @this Ajv\n * @param {Object} schema schema object\n * @param {Boolean} meta optional true to compile meta-schema; this parameter can be skipped\n * @param {Function} callback an optional node-style callback, it is called with 2 parameters: error (or null) and validating function.\n * @return {Promise} promise that resolves with a validating function.\n */\nfunction compileAsync(schema, meta, callback) {\n /* eslint no-shadow: 0 */\n /* global Promise */\n /* jshint validthis: true */\n var self = this;\n if (typeof this._opts.loadSchema != 'function')\n throw new Error('options.loadSchema should be a function');\n\n if (typeof meta == 'function') {\n callback = meta;\n meta = undefined;\n }\n\n var p = loadMetaSchemaOf(schema).then(function () {\n var schemaObj = self._addSchema(schema, undefined, meta);\n return schemaObj.validate || _compileAsync(schemaObj);\n });\n\n if (callback) {\n p.then(\n function(v) { callback(null, v); },\n callback\n );\n }\n\n return p;\n\n\n function loadMetaSchemaOf(sch) {\n var $schema = sch.$schema;\n return $schema && !self.getSchema($schema)\n ? compileAsync.call(self, { $ref: $schema }, true)\n : Promise.resolve();\n }\n\n\n function _compileAsync(schemaObj) {\n try { return self._compile(schemaObj); }\n catch(e) {\n if (e instanceof MissingRefError) return loadMissingSchema(e);\n throw e;\n }\n\n\n function loadMissingSchema(e) {\n var ref = e.missingSchema;\n if (added(ref)) throw new Error('Schema ' + ref + ' is loaded but ' + e.missingRef + ' cannot be resolved');\n\n var schemaPromise = self._loadingSchemas[ref];\n if (!schemaPromise) {\n schemaPromise = self._loadingSchemas[ref] = self._opts.loadSchema(ref);\n schemaPromise.then(removePromise, removePromise);\n }\n\n return schemaPromise.then(function (sch) {\n if (!added(ref)) {\n return loadMetaSchemaOf(sch).then(function () {\n if (!added(ref)) self.addSchema(sch, ref, undefined, meta);\n });\n }\n }).then(function() {\n return _compileAsync(schemaObj);\n });\n\n function removePromise() {\n delete self._loadingSchemas[ref];\n }\n\n function added(ref) {\n return self._refs[ref] || self._schemas[ref];\n }\n }\n }\n}\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n","'use strict';\n\nvar URI = require('uri-js')\n , equal = require('fast-deep-equal')\n , util = require('./util')\n , SchemaObject = require('./schema_obj')\n , traverse = require('json-schema-traverse');\n\nmodule.exports = resolve;\n\nresolve.normalizeId = normalizeId;\nresolve.fullPath = getFullPath;\nresolve.url = resolveUrl;\nresolve.ids = resolveIds;\nresolve.inlineRef = inlineRef;\nresolve.schema = resolveSchema;\n\n/**\n * [resolve and compile the references ($ref)]\n * @this Ajv\n * @param {Function} compile reference to schema compilation funciton (localCompile)\n * @param {Object} root object with information about the root schema for the current schema\n * @param {String} ref reference to resolve\n * @return {Object|Function} schema object (if the schema can be inlined) or validation function\n */\nfunction resolve(compile, root, ref) {\n /* jshint validthis: true */\n var refVal = this._refs[ref];\n if (typeof refVal == 'string') {\n if (this._refs[refVal]) refVal = this._refs[refVal];\n else return resolve.call(this, compile, root, refVal);\n }\n\n refVal = refVal || this._schemas[ref];\n if (refVal instanceof SchemaObject) {\n return inlineRef(refVal.schema, this._opts.inlineRefs)\n ? refVal.schema\n : refVal.validate || this._compile(refVal);\n }\n\n var res = resolveSchema.call(this, root, ref);\n var schema, v, baseId;\n if (res) {\n schema = res.schema;\n root = res.root;\n baseId = res.baseId;\n }\n\n if (schema instanceof SchemaObject) {\n v = schema.validate || compile.call(this, schema.schema, root, undefined, baseId);\n } else if (schema !== undefined) {\n v = inlineRef(schema, this._opts.inlineRefs)\n ? schema\n : compile.call(this, schema, root, undefined, baseId);\n }\n\n return v;\n}\n\n\n/**\n * Resolve schema, its root and baseId\n * @this Ajv\n * @param {Object} root root object with properties schema, refVal, refs\n * @param {String} ref reference to resolve\n * @return {Object} object with properties schema, root, baseId\n */\nfunction resolveSchema(root, ref) {\n /* jshint validthis: true */\n var p = URI.parse(ref)\n , refPath = _getFullPath(p)\n , baseId = getFullPath(this._getId(root.schema));\n if (Object.keys(root.schema).length === 0 || refPath !== baseId) {\n var id = normalizeId(refPath);\n var refVal = this._refs[id];\n if (typeof refVal == 'string') {\n return resolveRecursive.call(this, root, refVal, p);\n } else if (refVal instanceof SchemaObject) {\n if (!refVal.validate) this._compile(refVal);\n root = refVal;\n } else {\n refVal = this._schemas[id];\n if (refVal instanceof SchemaObject) {\n if (!refVal.validate) this._compile(refVal);\n if (id == normalizeId(ref))\n return { schema: refVal, root: root, baseId: baseId };\n root = refVal;\n } else {\n return;\n }\n }\n if (!root.schema) return;\n baseId = getFullPath(this._getId(root.schema));\n }\n return getJsonPointer.call(this, p, baseId, root.schema, root);\n}\n\n\n/* @this Ajv */\nfunction resolveRecursive(root, ref, parsedRef) {\n /* jshint validthis: true */\n var res = resolveSchema.call(this, root, ref);\n if (res) {\n var schema = res.schema;\n var baseId = res.baseId;\n root = res.root;\n var id = this._getId(schema);\n if (id) baseId = resolveUrl(baseId, id);\n return getJsonPointer.call(this, parsedRef, baseId, schema, root);\n }\n}\n\n\nvar PREVENT_SCOPE_CHANGE = util.toHash(['properties', 'patternProperties', 'enum', 'dependencies', 'definitions']);\n/* @this Ajv */\nfunction getJsonPointer(parsedRef, baseId, schema, root) {\n /* jshint validthis: true */\n parsedRef.fragment = parsedRef.fragment || '';\n if (parsedRef.fragment.slice(0,1) != '/') return;\n var parts = parsedRef.fragment.split('/');\n\n for (var i = 1; i < parts.length; i++) {\n var part = parts[i];\n if (part) {\n part = util.unescapeFragment(part);\n schema = schema[part];\n if (schema === undefined) break;\n var id;\n if (!PREVENT_SCOPE_CHANGE[part]) {\n id = this._getId(schema);\n if (id) baseId = resolveUrl(baseId, id);\n if (schema.$ref) {\n var $ref = resolveUrl(baseId, schema.$ref);\n var res = resolveSchema.call(this, root, $ref);\n if (res) {\n schema = res.schema;\n root = res.root;\n baseId = res.baseId;\n }\n }\n }\n }\n }\n if (schema !== undefined && schema !== root.schema)\n return { schema: schema, root: root, baseId: baseId };\n}\n\n\nvar SIMPLE_INLINED = util.toHash([\n 'type', 'format', 'pattern',\n 'maxLength', 'minLength',\n 'maxProperties', 'minProperties',\n 'maxItems', 'minItems',\n 'maximum', 'minimum',\n 'uniqueItems', 'multipleOf',\n 'required', 'enum'\n]);\nfunction inlineRef(schema, limit) {\n if (limit === false) return false;\n if (limit === undefined || limit === true) return checkNoRef(schema);\n else if (limit) return countKeys(schema) <= limit;\n}\n\n\nfunction checkNoRef(schema) {\n var item;\n if (Array.isArray(schema)) {\n for (var i=0; i true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var baseIsEqual = require('./_baseIsEqual'),\n get = require('./get'),\n hasIn = require('./hasIn'),\n isKey = require('./_isKey'),\n isStrictComparable = require('./_isStrictComparable'),\n matchesStrictComparable = require('./_matchesStrictComparable'),\n toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nmodule.exports = baseMatchesProperty;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","'use strict';\nmodule.exports = function generate_pattern(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n var $regexp = $isData ? '(new RegExp(' + $schemaValue + '))' : it.usePattern($schema);\n out += 'if ( ';\n if ($isData) {\n out += ' (' + ($schemaValue) + ' !== undefined && typeof ' + ($schemaValue) + ' != \\'string\\') || ';\n }\n out += ' !' + ($regexp) + '.test(' + ($data) + ') ) { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('pattern') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { pattern: ';\n if ($isData) {\n out += '' + ($schemaValue);\n } else {\n out += '' + (it.util.toQuotedString($schema));\n }\n out += ' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should match pattern \"';\n if ($isData) {\n out += '\\' + ' + ($schemaValue) + ' + \\'';\n } else {\n out += '' + (it.util.escapeQuotes($schema));\n }\n out += '\"\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + (it.util.toQuotedString($schema));\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += '} ';\n if ($breakOnError) {\n out += ' else { ';\n }\n return out;\n}\n","'use strict';\n\nvar Type = require('../../type');\n\nfunction resolveJavascriptUndefined() {\n return true;\n}\n\nfunction constructJavascriptUndefined() {\n /*eslint-disable no-undefined*/\n return undefined;\n}\n\nfunction representJavascriptUndefined() {\n return '';\n}\n\nfunction isUndefined(object) {\n return typeof object === 'undefined';\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:js/undefined', {\n kind: 'scalar',\n resolve: resolveJavascriptUndefined,\n construct: constructJavascriptUndefined,\n predicate: isUndefined,\n represent: representJavascriptUndefined\n});\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n","'use strict';\n\n\nvar loader = require('./js-yaml/loader');\nvar dumper = require('./js-yaml/dumper');\n\n\nfunction deprecated(name) {\n return function () {\n throw new Error('Function ' + name + ' is deprecated and cannot be used.');\n };\n}\n\n\nmodule.exports.Type = require('./js-yaml/type');\nmodule.exports.Schema = require('./js-yaml/schema');\nmodule.exports.FAILSAFE_SCHEMA = require('./js-yaml/schema/failsafe');\nmodule.exports.JSON_SCHEMA = require('./js-yaml/schema/json');\nmodule.exports.CORE_SCHEMA = require('./js-yaml/schema/core');\nmodule.exports.DEFAULT_SAFE_SCHEMA = require('./js-yaml/schema/default_safe');\nmodule.exports.DEFAULT_FULL_SCHEMA = require('./js-yaml/schema/default_full');\nmodule.exports.load = loader.load;\nmodule.exports.loadAll = loader.loadAll;\nmodule.exports.safeLoad = loader.safeLoad;\nmodule.exports.safeLoadAll = loader.safeLoadAll;\nmodule.exports.dump = dumper.dump;\nmodule.exports.safeDump = dumper.safeDump;\nmodule.exports.YAMLException = require('./js-yaml/exception');\n\n// Deprecated schema names from JS-YAML 2.0.x\nmodule.exports.MINIMAL_SCHEMA = require('./js-yaml/schema/failsafe');\nmodule.exports.SAFE_SCHEMA = require('./js-yaml/schema/default_safe');\nmodule.exports.DEFAULT_SCHEMA = require('./js-yaml/schema/default_full');\n\n// Deprecated functions from JS-YAML 1.x.x\nmodule.exports.scan = deprecated('scan');\nmodule.exports.parse = deprecated('parse');\nmodule.exports.compose = deprecated('compose');\nmodule.exports.addConstructor = deprecated('addConstructor');\n","'use strict';\n\n\nvar yaml = require('./lib/js-yaml.js');\n\n\nmodule.exports = yaml;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","'use strict';\nmodule.exports = function generate_properties(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $key = 'key' + $lvl,\n $idx = 'idx' + $lvl,\n $dataNxt = $it.dataLevel = it.dataLevel + 1,\n $nextData = 'data' + $dataNxt,\n $dataProperties = 'dataProperties' + $lvl;\n var $schemaKeys = Object.keys($schema || {}).filter(notProto),\n $pProperties = it.schema.patternProperties || {},\n $pPropertyKeys = Object.keys($pProperties).filter(notProto),\n $aProperties = it.schema.additionalProperties,\n $someProperties = $schemaKeys.length || $pPropertyKeys.length,\n $noAdditional = $aProperties === false,\n $additionalIsSchema = typeof $aProperties == 'object' && Object.keys($aProperties).length,\n $removeAdditional = it.opts.removeAdditional,\n $checkAdditional = $noAdditional || $additionalIsSchema || $removeAdditional,\n $ownProperties = it.opts.ownProperties,\n $currentBaseId = it.baseId;\n var $required = it.schema.required;\n if ($required && !(it.opts.$data && $required.$data) && $required.length < it.opts.loopRequired) {\n var $requiredHash = it.util.toHash($required);\n }\n\n function notProto(p) {\n return p !== '__proto__';\n }\n out += 'var ' + ($errs) + ' = errors;var ' + ($nextValid) + ' = true;';\n if ($ownProperties) {\n out += ' var ' + ($dataProperties) + ' = undefined;';\n }\n if ($checkAdditional) {\n if ($ownProperties) {\n out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; ';\n } else {\n out += ' for (var ' + ($key) + ' in ' + ($data) + ') { ';\n }\n if ($someProperties) {\n out += ' var isAdditional' + ($lvl) + ' = !(false ';\n if ($schemaKeys.length) {\n if ($schemaKeys.length > 8) {\n out += ' || validate.schema' + ($schemaPath) + '.hasOwnProperty(' + ($key) + ') ';\n } else {\n var arr1 = $schemaKeys;\n if (arr1) {\n var $propertyKey, i1 = -1,\n l1 = arr1.length - 1;\n while (i1 < l1) {\n $propertyKey = arr1[i1 += 1];\n out += ' || ' + ($key) + ' == ' + (it.util.toQuotedString($propertyKey)) + ' ';\n }\n }\n }\n }\n if ($pPropertyKeys.length) {\n var arr2 = $pPropertyKeys;\n if (arr2) {\n var $pProperty, $i = -1,\n l2 = arr2.length - 1;\n while ($i < l2) {\n $pProperty = arr2[$i += 1];\n out += ' || ' + (it.usePattern($pProperty)) + '.test(' + ($key) + ') ';\n }\n }\n }\n out += ' ); if (isAdditional' + ($lvl) + ') { ';\n }\n if ($removeAdditional == 'all') {\n out += ' delete ' + ($data) + '[' + ($key) + ']; ';\n } else {\n var $currentErrorPath = it.errorPath;\n var $additionalProperty = '\\' + ' + $key + ' + \\'';\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);\n }\n if ($noAdditional) {\n if ($removeAdditional) {\n out += ' delete ' + ($data) + '[' + ($key) + ']; ';\n } else {\n out += ' ' + ($nextValid) + ' = false; ';\n var $currErrSchemaPath = $errSchemaPath;\n $errSchemaPath = it.errSchemaPath + '/additionalProperties';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('additionalProperties') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { additionalProperty: \\'' + ($additionalProperty) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'';\n if (it.opts._errorDataPathProperty) {\n out += 'is an invalid additional property';\n } else {\n out += 'should NOT have additional properties';\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: false , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n $errSchemaPath = $currErrSchemaPath;\n if ($breakOnError) {\n out += ' break; ';\n }\n }\n } else if ($additionalIsSchema) {\n if ($removeAdditional == 'failing') {\n out += ' var ' + ($errs) + ' = errors; ';\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n $it.schema = $aProperties;\n $it.schemaPath = it.schemaPath + '.additionalProperties';\n $it.errSchemaPath = it.errSchemaPath + '/additionalProperties';\n $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);\n var $passData = $data + '[' + $key + ']';\n $it.dataPathArr[$dataNxt] = $key;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n out += ' if (!' + ($nextValid) + ') { errors = ' + ($errs) + '; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete ' + ($data) + '[' + ($key) + ']; } ';\n it.compositeRule = $it.compositeRule = $wasComposite;\n } else {\n $it.schema = $aProperties;\n $it.schemaPath = it.schemaPath + '.additionalProperties';\n $it.errSchemaPath = it.errSchemaPath + '/additionalProperties';\n $it.errorPath = it.opts._errorDataPathProperty ? it.errorPath : it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);\n var $passData = $data + '[' + $key + ']';\n $it.dataPathArr[$dataNxt] = $key;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n if ($breakOnError) {\n out += ' if (!' + ($nextValid) + ') break; ';\n }\n }\n }\n it.errorPath = $currentErrorPath;\n }\n if ($someProperties) {\n out += ' } ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n $closingBraces += '}';\n }\n }\n var $useDefaults = it.opts.useDefaults && !it.compositeRule;\n if ($schemaKeys.length) {\n var arr3 = $schemaKeys;\n if (arr3) {\n var $propertyKey, i3 = -1,\n l3 = arr3.length - 1;\n while (i3 < l3) {\n $propertyKey = arr3[i3 += 1];\n var $sch = $schema[$propertyKey];\n if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {\n var $prop = it.util.getProperty($propertyKey),\n $passData = $data + $prop,\n $hasDefault = $useDefaults && $sch.default !== undefined;\n $it.schema = $sch;\n $it.schemaPath = $schemaPath + $prop;\n $it.errSchemaPath = $errSchemaPath + '/' + it.util.escapeFragment($propertyKey);\n $it.errorPath = it.util.getPath(it.errorPath, $propertyKey, it.opts.jsonPointers);\n $it.dataPathArr[$dataNxt] = it.util.toQuotedString($propertyKey);\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n $code = it.util.varReplace($code, $nextData, $passData);\n var $useData = $passData;\n } else {\n var $useData = $nextData;\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ';\n }\n if ($hasDefault) {\n out += ' ' + ($code) + ' ';\n } else {\n if ($requiredHash && $requiredHash[$propertyKey]) {\n out += ' if ( ' + ($useData) + ' === undefined ';\n if ($ownProperties) {\n out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($propertyKey)) + '\\') ';\n }\n out += ') { ' + ($nextValid) + ' = false; ';\n var $currentErrorPath = it.errorPath,\n $currErrSchemaPath = $errSchemaPath,\n $missingProperty = it.util.escapeQuotes($propertyKey);\n if (it.opts._errorDataPathProperty) {\n it.errorPath = it.util.getPath($currentErrorPath, $propertyKey, it.opts.jsonPointers);\n }\n $errSchemaPath = it.errSchemaPath + '/required';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('required') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { missingProperty: \\'' + ($missingProperty) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'';\n if (it.opts._errorDataPathProperty) {\n out += 'is a required property';\n } else {\n out += 'should have required property \\\\\\'' + ($missingProperty) + '\\\\\\'';\n }\n out += '\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n $errSchemaPath = $currErrSchemaPath;\n it.errorPath = $currentErrorPath;\n out += ' } else { ';\n } else {\n if ($breakOnError) {\n out += ' if ( ' + ($useData) + ' === undefined ';\n if ($ownProperties) {\n out += ' || ! Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($propertyKey)) + '\\') ';\n }\n out += ') { ' + ($nextValid) + ' = true; } else { ';\n } else {\n out += ' if (' + ($useData) + ' !== undefined ';\n if ($ownProperties) {\n out += ' && Object.prototype.hasOwnProperty.call(' + ($data) + ', \\'' + (it.util.escapeQuotes($propertyKey)) + '\\') ';\n }\n out += ' ) { ';\n }\n }\n out += ' ' + ($code) + ' } ';\n }\n }\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n $closingBraces += '}';\n }\n }\n }\n }\n if ($pPropertyKeys.length) {\n var arr4 = $pPropertyKeys;\n if (arr4) {\n var $pProperty, i4 = -1,\n l4 = arr4.length - 1;\n while (i4 < l4) {\n $pProperty = arr4[i4 += 1];\n var $sch = $pProperties[$pProperty];\n if ((it.opts.strictKeywords ? typeof $sch == 'object' && Object.keys($sch).length > 0 : it.util.schemaHasRules($sch, it.RULES.all))) {\n $it.schema = $sch;\n $it.schemaPath = it.schemaPath + '.patternProperties' + it.util.getProperty($pProperty);\n $it.errSchemaPath = it.errSchemaPath + '/patternProperties/' + it.util.escapeFragment($pProperty);\n if ($ownProperties) {\n out += ' ' + ($dataProperties) + ' = ' + ($dataProperties) + ' || Object.keys(' + ($data) + '); for (var ' + ($idx) + '=0; ' + ($idx) + '<' + ($dataProperties) + '.length; ' + ($idx) + '++) { var ' + ($key) + ' = ' + ($dataProperties) + '[' + ($idx) + ']; ';\n } else {\n out += ' for (var ' + ($key) + ' in ' + ($data) + ') { ';\n }\n out += ' if (' + (it.usePattern($pProperty)) + '.test(' + ($key) + ')) { ';\n $it.errorPath = it.util.getPathExpr(it.errorPath, $key, it.opts.jsonPointers);\n var $passData = $data + '[' + $key + ']';\n $it.dataPathArr[$dataNxt] = $key;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n if ($breakOnError) {\n out += ' if (!' + ($nextValid) + ') break; ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' else ' + ($nextValid) + ' = true; ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' if (' + ($nextValid) + ') { ';\n $closingBraces += '}';\n }\n }\n }\n }\n }\n if ($breakOnError) {\n out += ' ' + ($closingBraces) + ' if (' + ($errs) + ' == errors) {';\n }\n return out;\n}\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","'use strict';\n\nvar compileSchema = require('./compile')\n , resolve = require('./compile/resolve')\n , Cache = require('./cache')\n , SchemaObject = require('./compile/schema_obj')\n , stableStringify = require('fast-json-stable-stringify')\n , formats = require('./compile/formats')\n , rules = require('./compile/rules')\n , $dataMetaSchema = require('./data')\n , util = require('./compile/util');\n\nmodule.exports = Ajv;\n\nAjv.prototype.validate = validate;\nAjv.prototype.compile = compile;\nAjv.prototype.addSchema = addSchema;\nAjv.prototype.addMetaSchema = addMetaSchema;\nAjv.prototype.validateSchema = validateSchema;\nAjv.prototype.getSchema = getSchema;\nAjv.prototype.removeSchema = removeSchema;\nAjv.prototype.addFormat = addFormat;\nAjv.prototype.errorsText = errorsText;\n\nAjv.prototype._addSchema = _addSchema;\nAjv.prototype._compile = _compile;\n\nAjv.prototype.compileAsync = require('./compile/async');\nvar customKeyword = require('./keyword');\nAjv.prototype.addKeyword = customKeyword.add;\nAjv.prototype.getKeyword = customKeyword.get;\nAjv.prototype.removeKeyword = customKeyword.remove;\nAjv.prototype.validateKeyword = customKeyword.validate;\n\nvar errorClasses = require('./compile/error_classes');\nAjv.ValidationError = errorClasses.Validation;\nAjv.MissingRefError = errorClasses.MissingRef;\nAjv.$dataMetaSchema = $dataMetaSchema;\n\nvar META_SCHEMA_ID = 'http://json-schema.org/draft-07/schema';\n\nvar META_IGNORE_OPTIONS = [ 'removeAdditional', 'useDefaults', 'coerceTypes', 'strictDefaults' ];\nvar META_SUPPORT_DATA = ['/properties'];\n\n/**\n * Creates validator instance.\n * Usage: `Ajv(opts)`\n * @param {Object} opts optional options\n * @return {Object} ajv instance\n */\nfunction Ajv(opts) {\n if (!(this instanceof Ajv)) return new Ajv(opts);\n opts = this._opts = util.copy(opts) || {};\n setLogger(this);\n this._schemas = {};\n this._refs = {};\n this._fragments = {};\n this._formats = formats(opts.format);\n\n this._cache = opts.cache || new Cache;\n this._loadingSchemas = {};\n this._compilations = [];\n this.RULES = rules();\n this._getId = chooseGetId(opts);\n\n opts.loopRequired = opts.loopRequired || Infinity;\n if (opts.errorDataPath == 'property') opts._errorDataPathProperty = true;\n if (opts.serialize === undefined) opts.serialize = stableStringify;\n this._metaOpts = getMetaSchemaOptions(this);\n\n if (opts.formats) addInitialFormats(this);\n if (opts.keywords) addInitialKeywords(this);\n addDefaultMetaSchema(this);\n if (typeof opts.meta == 'object') this.addMetaSchema(opts.meta);\n if (opts.nullable) this.addKeyword('nullable', {metaSchema: {type: 'boolean'}});\n addInitialSchemas(this);\n}\n\n\n\n/**\n * Validate data using schema\n * Schema will be compiled and cached (using serialized JSON as key. [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used to serialize.\n * @this Ajv\n * @param {String|Object} schemaKeyRef key, ref or schema object\n * @param {Any} data to be validated\n * @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`).\n */\nfunction validate(schemaKeyRef, data) {\n var v;\n if (typeof schemaKeyRef == 'string') {\n v = this.getSchema(schemaKeyRef);\n if (!v) throw new Error('no schema with key or ref \"' + schemaKeyRef + '\"');\n } else {\n var schemaObj = this._addSchema(schemaKeyRef);\n v = schemaObj.validate || this._compile(schemaObj);\n }\n\n var valid = v(data);\n if (v.$async !== true) this.errors = v.errors;\n return valid;\n}\n\n\n/**\n * Create validating function for passed schema.\n * @this Ajv\n * @param {Object} schema schema object\n * @param {Boolean} _meta true if schema is a meta-schema. Used internally to compile meta schemas of custom keywords.\n * @return {Function} validating function\n */\nfunction compile(schema, _meta) {\n var schemaObj = this._addSchema(schema, undefined, _meta);\n return schemaObj.validate || this._compile(schemaObj);\n}\n\n\n/**\n * Adds schema to the instance.\n * @this Ajv\n * @param {Object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored.\n * @param {String} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.\n * @param {Boolean} _skipValidation true to skip schema validation. Used internally, option validateSchema should be used instead.\n * @param {Boolean} _meta true if schema is a meta-schema. Used internally, addMetaSchema should be used instead.\n * @return {Ajv} this for method chaining\n */\nfunction addSchema(schema, key, _skipValidation, _meta) {\n if (Array.isArray(schema)){\n for (var i=0; i} errors optional array of validation errors, if not passed errors from the instance are used.\n * @param {Object} options optional options with properties `separator` and `dataVar`.\n * @return {String} human readable string with all errors descriptions\n */\nfunction errorsText(errors, options) {\n errors = errors || this.errors;\n if (!errors) return 'No errors';\n options = options || {};\n var separator = options.separator === undefined ? ', ' : options.separator;\n var dataVar = options.dataVar === undefined ? 'data' : options.dataVar;\n\n var text = '';\n for (var i=0; i [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","// JS-YAML's default schema for `safeLoad` function.\n// It is not described in the YAML specification.\n//\n// This schema is based on standard YAML's Core schema and includes most of\n// extra types described at YAML tag repository. (http://yaml.org/type/)\n\n\n'use strict';\n\n\nvar Schema = require('../schema');\n\n\nmodule.exports = new Schema({\n include: [\n require('./core')\n ],\n implicit: [\n require('../type/timestamp'),\n require('../type/merge')\n ],\n explicit: [\n require('../type/binary'),\n require('../type/omap'),\n require('../type/pairs'),\n require('../type/set')\n ]\n});\n","var arrayPush = require('./_arrayPush'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n","var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n","'use strict';\n\nvar common = require('../common');\nvar Type = require('../type');\n\nfunction isHexCode(c) {\n return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||\n ((0x41/* A */ <= c) && (c <= 0x46/* F */)) ||\n ((0x61/* a */ <= c) && (c <= 0x66/* f */));\n}\n\nfunction isOctCode(c) {\n return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */));\n}\n\nfunction isDecCode(c) {\n return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */));\n}\n\nfunction resolveYamlInteger(data) {\n if (data === null) return false;\n\n var max = data.length,\n index = 0,\n hasDigits = false,\n ch;\n\n if (!max) return false;\n\n ch = data[index];\n\n // sign\n if (ch === '-' || ch === '+') {\n ch = data[++index];\n }\n\n if (ch === '0') {\n // 0\n if (index + 1 === max) return true;\n ch = data[++index];\n\n // base 2, base 8, base 16\n\n if (ch === 'b') {\n // base 2\n index++;\n\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') continue;\n if (ch !== '0' && ch !== '1') return false;\n hasDigits = true;\n }\n return hasDigits && ch !== '_';\n }\n\n\n if (ch === 'x') {\n // base 16\n index++;\n\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') continue;\n if (!isHexCode(data.charCodeAt(index))) return false;\n hasDigits = true;\n }\n return hasDigits && ch !== '_';\n }\n\n // base 8\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') continue;\n if (!isOctCode(data.charCodeAt(index))) return false;\n hasDigits = true;\n }\n return hasDigits && ch !== '_';\n }\n\n // base 10 (except 0) or base 60\n\n // value should not start with `_`;\n if (ch === '_') return false;\n\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_') continue;\n if (ch === ':') break;\n if (!isDecCode(data.charCodeAt(index))) {\n return false;\n }\n hasDigits = true;\n }\n\n // Should have digits and should not end with `_`\n if (!hasDigits || ch === '_') return false;\n\n // if !base60 - done;\n if (ch !== ':') return true;\n\n // base60 almost not used, no needs to optimize\n return /^(:[0-5]?[0-9])+$/.test(data.slice(index));\n}\n\nfunction constructYamlInteger(data) {\n var value = data, sign = 1, ch, base, digits = [];\n\n if (value.indexOf('_') !== -1) {\n value = value.replace(/_/g, '');\n }\n\n ch = value[0];\n\n if (ch === '-' || ch === '+') {\n if (ch === '-') sign = -1;\n value = value.slice(1);\n ch = value[0];\n }\n\n if (value === '0') return 0;\n\n if (ch === '0') {\n if (value[1] === 'b') return sign * parseInt(value.slice(2), 2);\n if (value[1] === 'x') return sign * parseInt(value, 16);\n return sign * parseInt(value, 8);\n }\n\n if (value.indexOf(':') !== -1) {\n value.split(':').forEach(function (v) {\n digits.unshift(parseInt(v, 10));\n });\n\n value = 0;\n base = 1;\n\n digits.forEach(function (d) {\n value += (d * base);\n base *= 60;\n });\n\n return sign * value;\n\n }\n\n return sign * parseInt(value, 10);\n}\n\nfunction isInteger(object) {\n return (Object.prototype.toString.call(object)) === '[object Number]' &&\n (object % 1 === 0 && !common.isNegativeZero(object));\n}\n\nmodule.exports = new Type('tag:yaml.org,2002:int', {\n kind: 'scalar',\n resolve: resolveYamlInteger,\n construct: constructYamlInteger,\n predicate: isInteger,\n represent: {\n binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); },\n octal: function (obj) { return obj >= 0 ? '0' + obj.toString(8) : '-0' + obj.toString(8).slice(1); },\n decimal: function (obj) { return obj.toString(10); },\n /* eslint-disable max-len */\n hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); }\n },\n defaultStyle: 'decimal',\n styleAliases: {\n binary: [ 2, 'bin' ],\n octal: [ 8, 'oct' ],\n decimal: [ 10, 'dec' ],\n hexadecimal: [ 16, 'hex' ]\n }\n});\n","'use strict';\nmodule.exports = function generate_contains(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $errs = 'errs__' + $lvl;\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n var $idx = 'i' + $lvl,\n $dataNxt = $it.dataLevel = it.dataLevel + 1,\n $nextData = 'data' + $dataNxt,\n $currentBaseId = it.baseId,\n $nonEmptySchema = (it.opts.strictKeywords ? typeof $schema == 'object' && Object.keys($schema).length > 0 : it.util.schemaHasRules($schema, it.RULES.all));\n out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';\n if ($nonEmptySchema) {\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n $it.schema = $schema;\n $it.schemaPath = $schemaPath;\n $it.errSchemaPath = $errSchemaPath;\n out += ' var ' + ($nextValid) + ' = false; for (var ' + ($idx) + ' = 0; ' + ($idx) + ' < ' + ($data) + '.length; ' + ($idx) + '++) { ';\n $it.errorPath = it.util.getPathExpr(it.errorPath, $idx, it.opts.jsonPointers, true);\n var $passData = $data + '[' + $idx + ']';\n $it.dataPathArr[$dataNxt] = $idx;\n var $code = it.validate($it);\n $it.baseId = $currentBaseId;\n if (it.util.varOccurences($code, $nextData) < 2) {\n out += ' ' + (it.util.varReplace($code, $nextData, $passData)) + ' ';\n } else {\n out += ' var ' + ($nextData) + ' = ' + ($passData) + '; ' + ($code) + ' ';\n }\n out += ' if (' + ($nextValid) + ') break; } ';\n it.compositeRule = $it.compositeRule = $wasComposite;\n out += ' ' + ($closingBraces) + ' if (!' + ($nextValid) + ') {';\n } else {\n out += ' if (' + ($data) + '.length == 0) {';\n }\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('contains') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: {} ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should contain a valid item\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } else { ';\n if ($nonEmptySchema) {\n out += ' errors = ' + ($errs) + '; if (vErrors !== null) { if (' + ($errs) + ') vErrors.length = ' + ($errs) + '; else vErrors = null; } ';\n }\n if (it.opts.allErrors) {\n out += ' } ';\n }\n return out;\n}\n","'use strict';\n\nvar YAMLException = require('./exception');\n\nvar TYPE_CONSTRUCTOR_OPTIONS = [\n 'kind',\n 'resolve',\n 'construct',\n 'instanceOf',\n 'predicate',\n 'represent',\n 'defaultStyle',\n 'styleAliases'\n];\n\nvar YAML_NODE_KINDS = [\n 'scalar',\n 'sequence',\n 'mapping'\n];\n\nfunction compileStyleAliases(map) {\n var result = {};\n\n if (map !== null) {\n Object.keys(map).forEach(function (style) {\n map[style].forEach(function (alias) {\n result[String(alias)] = style;\n });\n });\n }\n\n return result;\n}\n\nfunction Type(tag, options) {\n options = options || {};\n\n Object.keys(options).forEach(function (name) {\n if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {\n throw new YAMLException('Unknown option \"' + name + '\" is met in definition of \"' + tag + '\" YAML type.');\n }\n });\n\n // TODO: Add tag format check.\n this.tag = tag;\n this.kind = options['kind'] || null;\n this.resolve = options['resolve'] || function () { return true; };\n this.construct = options['construct'] || function (data) { return data; };\n this.instanceOf = options['instanceOf'] || null;\n this.predicate = options['predicate'] || null;\n this.represent = options['represent'] || null;\n this.defaultStyle = options['defaultStyle'] || null;\n this.styleAliases = compileStyleAliases(options['styleAliases'] || null);\n\n if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {\n throw new YAMLException('Unknown kind \"' + this.kind + '\" is specified for \"' + tag + '\" YAML type.');\n }\n}\n\nmodule.exports = Type;\n","'use strict';\n\nmodule.exports = function (data, opts) {\n if (!opts) opts = {};\n if (typeof opts === 'function') opts = { cmp: opts };\n var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false;\n\n var cmp = opts.cmp && (function (f) {\n return function (node) {\n return function (a, b) {\n var aobj = { key: a, value: node[a] };\n var bobj = { key: b, value: node[b] };\n return f(aobj, bobj);\n };\n };\n })(opts.cmp);\n\n var seen = [];\n return (function stringify (node) {\n if (node && node.toJSON && typeof node.toJSON === 'function') {\n node = node.toJSON();\n }\n\n if (node === undefined) return;\n if (typeof node == 'number') return isFinite(node) ? '' + node : 'null';\n if (typeof node !== 'object') return JSON.stringify(node);\n\n var i, out;\n if (Array.isArray(node)) {\n out = '[';\n for (i = 0; i < node.length; i++) {\n if (i) out += ',';\n out += stringify(node[i]) || 'null';\n }\n return out + ']';\n }\n\n if (node === null) return 'null';\n\n if (seen.indexOf(node) !== -1) {\n if (cycles) return JSON.stringify('__cycle__');\n throw new TypeError('Converting circular structure to JSON');\n }\n\n var seenIndex = seen.push(node) - 1;\n var keys = Object.keys(node).sort(cmp && cmp(node));\n out = '';\n for (i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = stringify(node[key]);\n\n if (!value) continue;\n if (out) out += ',';\n out += JSON.stringify(key) + ':' + value;\n }\n seen.splice(seenIndex, 1);\n return '{' + out + '}';\n })(data);\n};\n","'use strict';\nmodule.exports = function generate_custom(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $errorKeyword;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $errs = 'errs__' + $lvl;\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n var $rule = this,\n $definition = 'definition' + $lvl,\n $rDef = $rule.definition,\n $closingBraces = '';\n var $compile, $inline, $macro, $ruleValidate, $validateCode;\n if ($isData && $rDef.$data) {\n $validateCode = 'keywordValidate' + $lvl;\n var $validateSchema = $rDef.validateSchema;\n out += ' var ' + ($definition) + ' = RULES.custom[\\'' + ($keyword) + '\\'].definition; var ' + ($validateCode) + ' = ' + ($definition) + '.validate;';\n } else {\n $ruleValidate = it.useCustomRule($rule, $schema, it.schema, it);\n if (!$ruleValidate) return;\n $schemaValue = 'validate.schema' + $schemaPath;\n $validateCode = $ruleValidate.code;\n $compile = $rDef.compile;\n $inline = $rDef.inline;\n $macro = $rDef.macro;\n }\n var $ruleErrs = $validateCode + '.errors',\n $i = 'i' + $lvl,\n $ruleErr = 'ruleErr' + $lvl,\n $asyncKeyword = $rDef.async;\n if ($asyncKeyword && !it.async) throw new Error('async keyword in sync schema');\n if (!($inline || $macro)) {\n out += '' + ($ruleErrs) + ' = null;';\n }\n out += 'var ' + ($errs) + ' = errors;var ' + ($valid) + ';';\n if ($isData && $rDef.$data) {\n $closingBraces += '}';\n out += ' if (' + ($schemaValue) + ' === undefined) { ' + ($valid) + ' = true; } else { ';\n if ($validateSchema) {\n $closingBraces += '}';\n out += ' ' + ($valid) + ' = ' + ($definition) + '.validateSchema(' + ($schemaValue) + '); if (' + ($valid) + ') { ';\n }\n }\n if ($inline) {\n if ($rDef.statements) {\n out += ' ' + ($ruleValidate.validate) + ' ';\n } else {\n out += ' ' + ($valid) + ' = ' + ($ruleValidate.validate) + '; ';\n }\n } else if ($macro) {\n var $it = it.util.copy(it);\n var $closingBraces = '';\n $it.level++;\n var $nextValid = 'valid' + $it.level;\n $it.schema = $ruleValidate.validate;\n $it.schemaPath = '';\n var $wasComposite = it.compositeRule;\n it.compositeRule = $it.compositeRule = true;\n var $code = it.validate($it).replace(/validate\\.schema/g, $validateCode);\n it.compositeRule = $it.compositeRule = $wasComposite;\n out += ' ' + ($code);\n } else {\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = '';\n out += ' ' + ($validateCode) + '.call( ';\n if (it.opts.passContext) {\n out += 'this';\n } else {\n out += 'self';\n }\n if ($compile || $rDef.schema === false) {\n out += ' , ' + ($data) + ' ';\n } else {\n out += ' , ' + ($schemaValue) + ' , ' + ($data) + ' , validate.schema' + (it.schemaPath) + ' ';\n }\n out += ' , (dataPath || \\'\\')';\n if (it.errorPath != '\"\"') {\n out += ' + ' + (it.errorPath);\n }\n var $parentData = $dataLvl ? 'data' + (($dataLvl - 1) || '') : 'parentData',\n $parentDataProperty = $dataLvl ? it.dataPathArr[$dataLvl] : 'parentDataProperty';\n out += ' , ' + ($parentData) + ' , ' + ($parentDataProperty) + ' , rootData ) ';\n var def_callRuleValidate = out;\n out = $$outStack.pop();\n if ($rDef.errors === false) {\n out += ' ' + ($valid) + ' = ';\n if ($asyncKeyword) {\n out += 'await ';\n }\n out += '' + (def_callRuleValidate) + '; ';\n } else {\n if ($asyncKeyword) {\n $ruleErrs = 'customErrors' + $lvl;\n out += ' var ' + ($ruleErrs) + ' = null; try { ' + ($valid) + ' = await ' + (def_callRuleValidate) + '; } catch (e) { ' + ($valid) + ' = false; if (e instanceof ValidationError) ' + ($ruleErrs) + ' = e.errors; else throw e; } ';\n } else {\n out += ' ' + ($ruleErrs) + ' = null; ' + ($valid) + ' = ' + (def_callRuleValidate) + '; ';\n }\n }\n }\n if ($rDef.modifying) {\n out += ' if (' + ($parentData) + ') ' + ($data) + ' = ' + ($parentData) + '[' + ($parentDataProperty) + '];';\n }\n out += '' + ($closingBraces);\n if ($rDef.valid) {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n } else {\n out += ' if ( ';\n if ($rDef.valid === undefined) {\n out += ' !';\n if ($macro) {\n out += '' + ($nextValid);\n } else {\n out += '' + ($valid);\n }\n } else {\n out += ' ' + (!$rDef.valid) + ' ';\n }\n out += ') { ';\n $errorKeyword = $rule.keyword;\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = '';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ($errorKeyword || 'custom') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { keyword: \\'' + ($rule.keyword) + '\\' } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should pass \"' + ($rule.keyword) + '\" keyword validation\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: validate.schema' + ($schemaPath) + ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n var def_customError = out;\n out = $$outStack.pop();\n if ($inline) {\n if ($rDef.errors) {\n if ($rDef.errors != 'full') {\n out += ' for (var ' + ($i) + '=' + ($errs) + '; ' + ($i) + ' {\n const { mkdir, stat } = promises;\n\n if (path == \".\") {\n return true;\n }\n\n const targetPath = pathResolve(baseDir, path);\n try {\n const result = await stat(targetPath);\n if (!result.isDirectory()) {\n throw new Error(`not a directory: ${path}`);\n }\n } catch (e) {\n if (e.code != \"ENOENT\") {\n throw e;\n }\n await mkdir(targetPath, { recursive: true });\n }\n return true;\n}\n\nexport async function writeFile(\n baseDir: string,\n path: string,\n content: string\n): Promise {\n const { writeFile } = promises;\n const absolutePath = pathResolve(baseDir, path);\n const relativeDir = dirname(path);\n await makeDir(baseDir, relativeDir);\n await writeFile(absolutePath, content);\n return true;\n}\n","var Stack = require('./_Stack'),\n equalArrays = require('./_equalArrays'),\n equalByTag = require('./_equalByTag'),\n equalObjects = require('./_equalObjects'),\n getTag = require('./_getTag'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isTypedArray = require('./isTypedArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nmodule.exports = baseIsEqualDeep;\n","'use strict';\nmodule.exports = function generate_uniqueItems(it, $keyword, $ruleType) {\n var out = ' ';\n var $lvl = it.level;\n var $dataLvl = it.dataLevel;\n var $schema = it.schema[$keyword];\n var $schemaPath = it.schemaPath + it.util.getProperty($keyword);\n var $errSchemaPath = it.errSchemaPath + '/' + $keyword;\n var $breakOnError = !it.opts.allErrors;\n var $data = 'data' + ($dataLvl || '');\n var $valid = 'valid' + $lvl;\n var $isData = it.opts.$data && $schema && $schema.$data,\n $schemaValue;\n if ($isData) {\n out += ' var schema' + ($lvl) + ' = ' + (it.util.getData($schema.$data, $dataLvl, it.dataPathArr)) + '; ';\n $schemaValue = 'schema' + $lvl;\n } else {\n $schemaValue = $schema;\n }\n if (($schema || $isData) && it.opts.uniqueItems !== false) {\n if ($isData) {\n out += ' var ' + ($valid) + '; if (' + ($schemaValue) + ' === false || ' + ($schemaValue) + ' === undefined) ' + ($valid) + ' = true; else if (typeof ' + ($schemaValue) + ' != \\'boolean\\') ' + ($valid) + ' = false; else { ';\n }\n out += ' var i = ' + ($data) + '.length , ' + ($valid) + ' = true , j; if (i > 1) { ';\n var $itemType = it.schema.items && it.schema.items.type,\n $typeIsArray = Array.isArray($itemType);\n if (!$itemType || $itemType == 'object' || $itemType == 'array' || ($typeIsArray && ($itemType.indexOf('object') >= 0 || $itemType.indexOf('array') >= 0))) {\n out += ' outer: for (;i--;) { for (j = i; j--;) { if (equal(' + ($data) + '[i], ' + ($data) + '[j])) { ' + ($valid) + ' = false; break outer; } } } ';\n } else {\n out += ' var itemIndices = {}, item; for (;i--;) { var item = ' + ($data) + '[i]; ';\n var $method = 'checkDataType' + ($typeIsArray ? 's' : '');\n out += ' if (' + (it.util[$method]($itemType, 'item', it.opts.strictNumbers, true)) + ') continue; ';\n if ($typeIsArray) {\n out += ' if (typeof item == \\'string\\') item = \\'\"\\' + item; ';\n }\n out += ' if (typeof itemIndices[item] == \\'number\\') { ' + ($valid) + ' = false; j = itemIndices[item]; break; } itemIndices[item] = i; } ';\n }\n out += ' } ';\n if ($isData) {\n out += ' } ';\n }\n out += ' if (!' + ($valid) + ') { ';\n var $$outStack = $$outStack || [];\n $$outStack.push(out);\n out = ''; /* istanbul ignore else */\n if (it.createErrors !== false) {\n out += ' { keyword: \\'' + ('uniqueItems') + '\\' , dataPath: (dataPath || \\'\\') + ' + (it.errorPath) + ' , schemaPath: ' + (it.util.toQuotedString($errSchemaPath)) + ' , params: { i: i, j: j } ';\n if (it.opts.messages !== false) {\n out += ' , message: \\'should NOT have duplicate items (items ## \\' + j + \\' and \\' + i + \\' are identical)\\' ';\n }\n if (it.opts.verbose) {\n out += ' , schema: ';\n if ($isData) {\n out += 'validate.schema' + ($schemaPath);\n } else {\n out += '' + ($schema);\n }\n out += ' , parentSchema: validate.schema' + (it.schemaPath) + ' , data: ' + ($data) + ' ';\n }\n out += ' } ';\n } else {\n out += ' {} ';\n }\n var __err = out;\n out = $$outStack.pop();\n if (!it.compositeRule && $breakOnError) {\n /* istanbul ignore if */\n if (it.async) {\n out += ' throw new ValidationError([' + (__err) + ']); ';\n } else {\n out += ' validate.errors = [' + (__err) + ']; return false; ';\n }\n } else {\n out += ' var err = ' + (__err) + '; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ';\n }\n out += ' } ';\n if ($breakOnError) {\n out += ' else { ';\n }\n } else {\n if ($breakOnError) {\n out += ' if (true) { ';\n }\n }\n return out;\n}\n","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'loaded', {\n\t\tenumerable: true,\n\t\tget: function() { return module.l; }\n\t});\n\tObject.defineProperty(module, 'id', {\n\t\tenumerable: true,\n\t\tget: function() { return module.i; }\n\t});\n\treturn module;\n};"]} \ No newline at end of file diff --git a/dist/node_modules/asn1.js/LICENSE b/dist/node_modules/asn1.js/LICENSE deleted file mode 100644 index caaf4f2..0000000 --- a/dist/node_modules/asn1.js/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Fedor Indutny - -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. diff --git a/dist/node_modules/asn1.js/README.md b/dist/node_modules/asn1.js/README.md deleted file mode 100644 index 9f04af7..0000000 --- a/dist/node_modules/asn1.js/README.md +++ /dev/null @@ -1,100 +0,0 @@ -# ASN1.js - -ASN.1 DER Encoder/Decoder and DSL. - -## Example - -Define model: - -```javascript -var asn = require('asn1.js'); - -var Human = asn.define('Human', function() { - this.seq().obj( - this.key('firstName').octstr(), - this.key('lastName').octstr(), - this.key('age').int(), - this.key('gender').enum({ 0: 'male', 1: 'female' }), - this.key('bio').seqof(Bio) - ); -}); - -var Bio = asn.define('Bio', function() { - this.seq().obj( - this.key('time').gentime(), - this.key('description').octstr() - ); -}); -``` - -Encode data: - -```javascript -var output = Human.encode({ - firstName: 'Thomas', - lastName: 'Anderson', - age: 28, - gender: 'male', - bio: [ - { - time: +new Date('31 March 1999'), - description: 'freedom of mind' - } - ] -}, 'der'); -``` - -Decode data: - -```javascript -var human = Human.decode(output, 'der'); -console.log(human); -/* -{ firstName: , - lastName: , - age: 28, - gender: 'male', - bio: - [ { time: 922820400000, - description: } ] } -*/ -``` - -### Partial decode - -Its possible to parse data without stopping on first error. In order to do it, -you should call: - -```javascript -var human = Human.decode(output, 'der', { partial: true }); -console.log(human); -/* -{ result: { ... }, - errors: [ ... ] } -*/ -``` - -#### LICENSE - -This software is licensed under the MIT License. - -Copyright Fedor Indutny, 2017. - -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. diff --git a/dist/node_modules/asn1.js/lib/asn1.js b/dist/node_modules/asn1.js/lib/asn1.js deleted file mode 100644 index c7d70b8..0000000 --- a/dist/node_modules/asn1.js/lib/asn1.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -const asn1 = exports; - -asn1.bignum = require('bn.js'); - -asn1.define = require('./asn1/api').define; -asn1.base = require('./asn1/base'); -asn1.constants = require('./asn1/constants'); -asn1.decoders = require('./asn1/decoders'); -asn1.encoders = require('./asn1/encoders'); diff --git a/dist/node_modules/asn1.js/lib/asn1/api.js b/dist/node_modules/asn1.js/lib/asn1/api.js deleted file mode 100644 index 61e3eb2..0000000 --- a/dist/node_modules/asn1.js/lib/asn1/api.js +++ /dev/null @@ -1,57 +0,0 @@ -'use strict'; - -const encoders = require('./encoders'); -const decoders = require('./decoders'); -const inherits = require('inherits'); - -const api = exports; - -api.define = function define(name, body) { - return new Entity(name, body); -}; - -function Entity(name, body) { - this.name = name; - this.body = body; - - this.decoders = {}; - this.encoders = {}; -} - -Entity.prototype._createNamed = function createNamed(Base) { - const name = this.name; - - function Generated(entity) { - this._initNamed(entity, name); - } - inherits(Generated, Base); - Generated.prototype._initNamed = function _initNamed(entity, name) { - Base.call(this, entity, name); - }; - - return new Generated(this); -}; - -Entity.prototype._getDecoder = function _getDecoder(enc) { - enc = enc || 'der'; - // Lazily create decoder - if (!this.decoders.hasOwnProperty(enc)) - this.decoders[enc] = this._createNamed(decoders[enc]); - return this.decoders[enc]; -}; - -Entity.prototype.decode = function decode(data, enc, options) { - return this._getDecoder(enc).decode(data, options); -}; - -Entity.prototype._getEncoder = function _getEncoder(enc) { - enc = enc || 'der'; - // Lazily create encoder - if (!this.encoders.hasOwnProperty(enc)) - this.encoders[enc] = this._createNamed(encoders[enc]); - return this.encoders[enc]; -}; - -Entity.prototype.encode = function encode(data, enc, /* internal */ reporter) { - return this._getEncoder(enc).encode(data, reporter); -}; diff --git a/dist/node_modules/asn1.js/lib/asn1/base/buffer.js b/dist/node_modules/asn1.js/lib/asn1/base/buffer.js deleted file mode 100644 index bb5bc06..0000000 --- a/dist/node_modules/asn1.js/lib/asn1/base/buffer.js +++ /dev/null @@ -1,153 +0,0 @@ -'use strict'; - -const inherits = require('inherits'); -const Reporter = require('../base/reporter').Reporter; -const Buffer = require('safer-buffer').Buffer; - -function DecoderBuffer(base, options) { - Reporter.call(this, options); - if (!Buffer.isBuffer(base)) { - this.error('Input not Buffer'); - return; - } - - this.base = base; - this.offset = 0; - this.length = base.length; -} -inherits(DecoderBuffer, Reporter); -exports.DecoderBuffer = DecoderBuffer; - -DecoderBuffer.isDecoderBuffer = function isDecoderBuffer(data) { - if (data instanceof DecoderBuffer) { - return true; - } - - // Or accept compatible API - const isCompatible = typeof data === 'object' && - Buffer.isBuffer(data.base) && - data.constructor.name === 'DecoderBuffer' && - typeof data.offset === 'number' && - typeof data.length === 'number' && - typeof data.save === 'function' && - typeof data.restore === 'function' && - typeof data.isEmpty === 'function' && - typeof data.readUInt8 === 'function' && - typeof data.skip === 'function' && - typeof data.raw === 'function'; - - return isCompatible; -}; - -DecoderBuffer.prototype.save = function save() { - return { offset: this.offset, reporter: Reporter.prototype.save.call(this) }; -}; - -DecoderBuffer.prototype.restore = function restore(save) { - // Return skipped data - const res = new DecoderBuffer(this.base); - res.offset = save.offset; - res.length = this.offset; - - this.offset = save.offset; - Reporter.prototype.restore.call(this, save.reporter); - - return res; -}; - -DecoderBuffer.prototype.isEmpty = function isEmpty() { - return this.offset === this.length; -}; - -DecoderBuffer.prototype.readUInt8 = function readUInt8(fail) { - if (this.offset + 1 <= this.length) - return this.base.readUInt8(this.offset++, true); - else - return this.error(fail || 'DecoderBuffer overrun'); -}; - -DecoderBuffer.prototype.skip = function skip(bytes, fail) { - if (!(this.offset + bytes <= this.length)) - return this.error(fail || 'DecoderBuffer overrun'); - - const res = new DecoderBuffer(this.base); - - // Share reporter state - res._reporterState = this._reporterState; - - res.offset = this.offset; - res.length = this.offset + bytes; - this.offset += bytes; - return res; -}; - -DecoderBuffer.prototype.raw = function raw(save) { - return this.base.slice(save ? save.offset : this.offset, this.length); -}; - -function EncoderBuffer(value, reporter) { - if (Array.isArray(value)) { - this.length = 0; - this.value = value.map(function(item) { - if (!EncoderBuffer.isEncoderBuffer(item)) - item = new EncoderBuffer(item, reporter); - this.length += item.length; - return item; - }, this); - } else if (typeof value === 'number') { - if (!(0 <= value && value <= 0xff)) - return reporter.error('non-byte EncoderBuffer value'); - this.value = value; - this.length = 1; - } else if (typeof value === 'string') { - this.value = value; - this.length = Buffer.byteLength(value); - } else if (Buffer.isBuffer(value)) { - this.value = value; - this.length = value.length; - } else { - return reporter.error('Unsupported type: ' + typeof value); - } -} -exports.EncoderBuffer = EncoderBuffer; - -EncoderBuffer.isEncoderBuffer = function isEncoderBuffer(data) { - if (data instanceof EncoderBuffer) { - return true; - } - - // Or accept compatible API - const isCompatible = typeof data === 'object' && - data.constructor.name === 'EncoderBuffer' && - typeof data.length === 'number' && - typeof data.join === 'function'; - - return isCompatible; -}; - -EncoderBuffer.prototype.join = function join(out, offset) { - if (!out) - out = Buffer.alloc(this.length); - if (!offset) - offset = 0; - - if (this.length === 0) - return out; - - if (Array.isArray(this.value)) { - this.value.forEach(function(item) { - item.join(out, offset); - offset += item.length; - }); - } else { - if (typeof this.value === 'number') - out[offset] = this.value; - else if (typeof this.value === 'string') - out.write(this.value, offset); - else if (Buffer.isBuffer(this.value)) - this.value.copy(out, offset); - offset += this.length; - } - - return out; -}; diff --git a/dist/node_modules/asn1.js/lib/asn1/base/index.js b/dist/node_modules/asn1.js/lib/asn1/base/index.js deleted file mode 100644 index 8b92f20..0000000 --- a/dist/node_modules/asn1.js/lib/asn1/base/index.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -const base = exports; - -base.Reporter = require('./reporter').Reporter; -base.DecoderBuffer = require('./buffer').DecoderBuffer; -base.EncoderBuffer = require('./buffer').EncoderBuffer; -base.Node = require('./node'); diff --git a/dist/node_modules/asn1.js/lib/asn1/base/node.js b/dist/node_modules/asn1.js/lib/asn1/base/node.js deleted file mode 100644 index d676d21..0000000 --- a/dist/node_modules/asn1.js/lib/asn1/base/node.js +++ /dev/null @@ -1,638 +0,0 @@ -'use strict'; - -const Reporter = require('../base/reporter').Reporter; -const EncoderBuffer = require('../base/buffer').EncoderBuffer; -const DecoderBuffer = require('../base/buffer').DecoderBuffer; -const assert = require('minimalistic-assert'); - -// Supported tags -const tags = [ - 'seq', 'seqof', 'set', 'setof', 'objid', 'bool', - 'gentime', 'utctime', 'null_', 'enum', 'int', 'objDesc', - 'bitstr', 'bmpstr', 'charstr', 'genstr', 'graphstr', 'ia5str', 'iso646str', - 'numstr', 'octstr', 'printstr', 't61str', 'unistr', 'utf8str', 'videostr' -]; - -// Public methods list -const methods = [ - 'key', 'obj', 'use', 'optional', 'explicit', 'implicit', 'def', 'choice', - 'any', 'contains' -].concat(tags); - -// Overrided methods list -const overrided = [ - '_peekTag', '_decodeTag', '_use', - '_decodeStr', '_decodeObjid', '_decodeTime', - '_decodeNull', '_decodeInt', '_decodeBool', '_decodeList', - - '_encodeComposite', '_encodeStr', '_encodeObjid', '_encodeTime', - '_encodeNull', '_encodeInt', '_encodeBool' -]; - -function Node(enc, parent, name) { - const state = {}; - this._baseState = state; - - state.name = name; - state.enc = enc; - - state.parent = parent || null; - state.children = null; - - // State - state.tag = null; - state.args = null; - state.reverseArgs = null; - state.choice = null; - state.optional = false; - state.any = false; - state.obj = false; - state.use = null; - state.useDecoder = null; - state.key = null; - state['default'] = null; - state.explicit = null; - state.implicit = null; - state.contains = null; - - // Should create new instance on each method - if (!state.parent) { - state.children = []; - this._wrap(); - } -} -module.exports = Node; - -const stateProps = [ - 'enc', 'parent', 'children', 'tag', 'args', 'reverseArgs', 'choice', - 'optional', 'any', 'obj', 'use', 'alteredUse', 'key', 'default', 'explicit', - 'implicit', 'contains' -]; - -Node.prototype.clone = function clone() { - const state = this._baseState; - const cstate = {}; - stateProps.forEach(function(prop) { - cstate[prop] = state[prop]; - }); - const res = new this.constructor(cstate.parent); - res._baseState = cstate; - return res; -}; - -Node.prototype._wrap = function wrap() { - const state = this._baseState; - methods.forEach(function(method) { - this[method] = function _wrappedMethod() { - const clone = new this.constructor(this); - state.children.push(clone); - return clone[method].apply(clone, arguments); - }; - }, this); -}; - -Node.prototype._init = function init(body) { - const state = this._baseState; - - assert(state.parent === null); - body.call(this); - - // Filter children - state.children = state.children.filter(function(child) { - return child._baseState.parent === this; - }, this); - assert.equal(state.children.length, 1, 'Root node can have only one child'); -}; - -Node.prototype._useArgs = function useArgs(args) { - const state = this._baseState; - - // Filter children and args - const children = args.filter(function(arg) { - return arg instanceof this.constructor; - }, this); - args = args.filter(function(arg) { - return !(arg instanceof this.constructor); - }, this); - - if (children.length !== 0) { - assert(state.children === null); - state.children = children; - - // Replace parent to maintain backward link - children.forEach(function(child) { - child._baseState.parent = this; - }, this); - } - if (args.length !== 0) { - assert(state.args === null); - state.args = args; - state.reverseArgs = args.map(function(arg) { - if (typeof arg !== 'object' || arg.constructor !== Object) - return arg; - - const res = {}; - Object.keys(arg).forEach(function(key) { - if (key == (key | 0)) - key |= 0; - const value = arg[key]; - res[value] = key; - }); - return res; - }); - } -}; - -// -// Overrided methods -// - -overrided.forEach(function(method) { - Node.prototype[method] = function _overrided() { - const state = this._baseState; - throw new Error(method + ' not implemented for encoding: ' + state.enc); - }; -}); - -// -// Public methods -// - -tags.forEach(function(tag) { - Node.prototype[tag] = function _tagMethod() { - const state = this._baseState; - const args = Array.prototype.slice.call(arguments); - - assert(state.tag === null); - state.tag = tag; - - this._useArgs(args); - - return this; - }; -}); - -Node.prototype.use = function use(item) { - assert(item); - const state = this._baseState; - - assert(state.use === null); - state.use = item; - - return this; -}; - -Node.prototype.optional = function optional() { - const state = this._baseState; - - state.optional = true; - - return this; -}; - -Node.prototype.def = function def(val) { - const state = this._baseState; - - assert(state['default'] === null); - state['default'] = val; - state.optional = true; - - return this; -}; - -Node.prototype.explicit = function explicit(num) { - const state = this._baseState; - - assert(state.explicit === null && state.implicit === null); - state.explicit = num; - - return this; -}; - -Node.prototype.implicit = function implicit(num) { - const state = this._baseState; - - assert(state.explicit === null && state.implicit === null); - state.implicit = num; - - return this; -}; - -Node.prototype.obj = function obj() { - const state = this._baseState; - const args = Array.prototype.slice.call(arguments); - - state.obj = true; - - if (args.length !== 0) - this._useArgs(args); - - return this; -}; - -Node.prototype.key = function key(newKey) { - const state = this._baseState; - - assert(state.key === null); - state.key = newKey; - - return this; -}; - -Node.prototype.any = function any() { - const state = this._baseState; - - state.any = true; - - return this; -}; - -Node.prototype.choice = function choice(obj) { - const state = this._baseState; - - assert(state.choice === null); - state.choice = obj; - this._useArgs(Object.keys(obj).map(function(key) { - return obj[key]; - })); - - return this; -}; - -Node.prototype.contains = function contains(item) { - const state = this._baseState; - - assert(state.use === null); - state.contains = item; - - return this; -}; - -// -// Decoding -// - -Node.prototype._decode = function decode(input, options) { - const state = this._baseState; - - // Decode root node - if (state.parent === null) - return input.wrapResult(state.children[0]._decode(input, options)); - - let result = state['default']; - let present = true; - - let prevKey = null; - if (state.key !== null) - prevKey = input.enterKey(state.key); - - // Check if tag is there - if (state.optional) { - let tag = null; - if (state.explicit !== null) - tag = state.explicit; - else if (state.implicit !== null) - tag = state.implicit; - else if (state.tag !== null) - tag = state.tag; - - if (tag === null && !state.any) { - // Trial and Error - const save = input.save(); - try { - if (state.choice === null) - this._decodeGeneric(state.tag, input, options); - else - this._decodeChoice(input, options); - present = true; - } catch (e) { - present = false; - } - input.restore(save); - } else { - present = this._peekTag(input, tag, state.any); - - if (input.isError(present)) - return present; - } - } - - // Push object on stack - let prevObj; - if (state.obj && present) - prevObj = input.enterObject(); - - if (present) { - // Unwrap explicit values - if (state.explicit !== null) { - const explicit = this._decodeTag(input, state.explicit); - if (input.isError(explicit)) - return explicit; - input = explicit; - } - - const start = input.offset; - - // Unwrap implicit and normal values - if (state.use === null && state.choice === null) { - let save; - if (state.any) - save = input.save(); - const body = this._decodeTag( - input, - state.implicit !== null ? state.implicit : state.tag, - state.any - ); - if (input.isError(body)) - return body; - - if (state.any) - result = input.raw(save); - else - input = body; - } - - if (options && options.track && state.tag !== null) - options.track(input.path(), start, input.length, 'tagged'); - - if (options && options.track && state.tag !== null) - options.track(input.path(), input.offset, input.length, 'content'); - - // Select proper method for tag - if (state.any) { - // no-op - } else if (state.choice === null) { - result = this._decodeGeneric(state.tag, input, options); - } else { - result = this._decodeChoice(input, options); - } - - if (input.isError(result)) - return result; - - // Decode children - if (!state.any && state.choice === null && state.children !== null) { - state.children.forEach(function decodeChildren(child) { - // NOTE: We are ignoring errors here, to let parser continue with other - // parts of encoded data - child._decode(input, options); - }); - } - - // Decode contained/encoded by schema, only in bit or octet strings - if (state.contains && (state.tag === 'octstr' || state.tag === 'bitstr')) { - const data = new DecoderBuffer(result); - result = this._getUse(state.contains, input._reporterState.obj) - ._decode(data, options); - } - } - - // Pop object - if (state.obj && present) - result = input.leaveObject(prevObj); - - // Set key - if (state.key !== null && (result !== null || present === true)) - input.leaveKey(prevKey, state.key, result); - else if (prevKey !== null) - input.exitKey(prevKey); - - return result; -}; - -Node.prototype._decodeGeneric = function decodeGeneric(tag, input, options) { - const state = this._baseState; - - if (tag === 'seq' || tag === 'set') - return null; - if (tag === 'seqof' || tag === 'setof') - return this._decodeList(input, tag, state.args[0], options); - else if (/str$/.test(tag)) - return this._decodeStr(input, tag, options); - else if (tag === 'objid' && state.args) - return this._decodeObjid(input, state.args[0], state.args[1], options); - else if (tag === 'objid') - return this._decodeObjid(input, null, null, options); - else if (tag === 'gentime' || tag === 'utctime') - return this._decodeTime(input, tag, options); - else if (tag === 'null_') - return this._decodeNull(input, options); - else if (tag === 'bool') - return this._decodeBool(input, options); - else if (tag === 'objDesc') - return this._decodeStr(input, tag, options); - else if (tag === 'int' || tag === 'enum') - return this._decodeInt(input, state.args && state.args[0], options); - - if (state.use !== null) { - return this._getUse(state.use, input._reporterState.obj) - ._decode(input, options); - } else { - return input.error('unknown tag: ' + tag); - } -}; - -Node.prototype._getUse = function _getUse(entity, obj) { - - const state = this._baseState; - // Create altered use decoder if implicit is set - state.useDecoder = this._use(entity, obj); - assert(state.useDecoder._baseState.parent === null); - state.useDecoder = state.useDecoder._baseState.children[0]; - if (state.implicit !== state.useDecoder._baseState.implicit) { - state.useDecoder = state.useDecoder.clone(); - state.useDecoder._baseState.implicit = state.implicit; - } - return state.useDecoder; -}; - -Node.prototype._decodeChoice = function decodeChoice(input, options) { - const state = this._baseState; - let result = null; - let match = false; - - Object.keys(state.choice).some(function(key) { - const save = input.save(); - const node = state.choice[key]; - try { - const value = node._decode(input, options); - if (input.isError(value)) - return false; - - result = { type: key, value: value }; - match = true; - } catch (e) { - input.restore(save); - return false; - } - return true; - }, this); - - if (!match) - return input.error('Choice not matched'); - - return result; -}; - -// -// Encoding -// - -Node.prototype._createEncoderBuffer = function createEncoderBuffer(data) { - return new EncoderBuffer(data, this.reporter); -}; - -Node.prototype._encode = function encode(data, reporter, parent) { - const state = this._baseState; - if (state['default'] !== null && state['default'] === data) - return; - - const result = this._encodeValue(data, reporter, parent); - if (result === undefined) - return; - - if (this._skipDefault(result, reporter, parent)) - return; - - return result; -}; - -Node.prototype._encodeValue = function encode(data, reporter, parent) { - const state = this._baseState; - - // Decode root node - if (state.parent === null) - return state.children[0]._encode(data, reporter || new Reporter()); - - let result = null; - - // Set reporter to share it with a child class - this.reporter = reporter; - - // Check if data is there - if (state.optional && data === undefined) { - if (state['default'] !== null) - data = state['default']; - else - return; - } - - // Encode children first - let content = null; - let primitive = false; - if (state.any) { - // Anything that was given is translated to buffer - result = this._createEncoderBuffer(data); - } else if (state.choice) { - result = this._encodeChoice(data, reporter); - } else if (state.contains) { - content = this._getUse(state.contains, parent)._encode(data, reporter); - primitive = true; - } else if (state.children) { - content = state.children.map(function(child) { - if (child._baseState.tag === 'null_') - return child._encode(null, reporter, data); - - if (child._baseState.key === null) - return reporter.error('Child should have a key'); - const prevKey = reporter.enterKey(child._baseState.key); - - if (typeof data !== 'object') - return reporter.error('Child expected, but input is not object'); - - const res = child._encode(data[child._baseState.key], reporter, data); - reporter.leaveKey(prevKey); - - return res; - }, this).filter(function(child) { - return child; - }); - content = this._createEncoderBuffer(content); - } else { - if (state.tag === 'seqof' || state.tag === 'setof') { - // TODO(indutny): this should be thrown on DSL level - if (!(state.args && state.args.length === 1)) - return reporter.error('Too many args for : ' + state.tag); - - if (!Array.isArray(data)) - return reporter.error('seqof/setof, but data is not Array'); - - const child = this.clone(); - child._baseState.implicit = null; - content = this._createEncoderBuffer(data.map(function(item) { - const state = this._baseState; - - return this._getUse(state.args[0], data)._encode(item, reporter); - }, child)); - } else if (state.use !== null) { - result = this._getUse(state.use, parent)._encode(data, reporter); - } else { - content = this._encodePrimitive(state.tag, data); - primitive = true; - } - } - - // Encode data itself - if (!state.any && state.choice === null) { - const tag = state.implicit !== null ? state.implicit : state.tag; - const cls = state.implicit === null ? 'universal' : 'context'; - - if (tag === null) { - if (state.use === null) - reporter.error('Tag could be omitted only for .use()'); - } else { - if (state.use === null) - result = this._encodeComposite(tag, primitive, cls, content); - } - } - - // Wrap in explicit - if (state.explicit !== null) - result = this._encodeComposite(state.explicit, false, 'context', result); - - return result; -}; - -Node.prototype._encodeChoice = function encodeChoice(data, reporter) { - const state = this._baseState; - - const node = state.choice[data.type]; - if (!node) { - assert( - false, - data.type + ' not found in ' + - JSON.stringify(Object.keys(state.choice))); - } - return node._encode(data.value, reporter); -}; - -Node.prototype._encodePrimitive = function encodePrimitive(tag, data) { - const state = this._baseState; - - if (/str$/.test(tag)) - return this._encodeStr(data, tag); - else if (tag === 'objid' && state.args) - return this._encodeObjid(data, state.reverseArgs[0], state.args[1]); - else if (tag === 'objid') - return this._encodeObjid(data, null, null); - else if (tag === 'gentime' || tag === 'utctime') - return this._encodeTime(data, tag); - else if (tag === 'null_') - return this._encodeNull(); - else if (tag === 'int' || tag === 'enum') - return this._encodeInt(data, state.args && state.reverseArgs[0]); - else if (tag === 'bool') - return this._encodeBool(data); - else if (tag === 'objDesc') - return this._encodeStr(data, tag); - else - throw new Error('Unsupported tag: ' + tag); -}; - -Node.prototype._isNumstr = function isNumstr(str) { - return /^[0-9 ]*$/.test(str); -}; - -Node.prototype._isPrintstr = function isPrintstr(str) { - return /^[A-Za-z0-9 '()+,-./:=?]*$/.test(str); -}; diff --git a/dist/node_modules/asn1.js/lib/asn1/base/reporter.js b/dist/node_modules/asn1.js/lib/asn1/base/reporter.js deleted file mode 100644 index d05fe12..0000000 --- a/dist/node_modules/asn1.js/lib/asn1/base/reporter.js +++ /dev/null @@ -1,123 +0,0 @@ -'use strict'; - -const inherits = require('inherits'); - -function Reporter(options) { - this._reporterState = { - obj: null, - path: [], - options: options || {}, - errors: [] - }; -} -exports.Reporter = Reporter; - -Reporter.prototype.isError = function isError(obj) { - return obj instanceof ReporterError; -}; - -Reporter.prototype.save = function save() { - const state = this._reporterState; - - return { obj: state.obj, pathLen: state.path.length }; -}; - -Reporter.prototype.restore = function restore(data) { - const state = this._reporterState; - - state.obj = data.obj; - state.path = state.path.slice(0, data.pathLen); -}; - -Reporter.prototype.enterKey = function enterKey(key) { - return this._reporterState.path.push(key); -}; - -Reporter.prototype.exitKey = function exitKey(index) { - const state = this._reporterState; - - state.path = state.path.slice(0, index - 1); -}; - -Reporter.prototype.leaveKey = function leaveKey(index, key, value) { - const state = this._reporterState; - - this.exitKey(index); - if (state.obj !== null) - state.obj[key] = value; -}; - -Reporter.prototype.path = function path() { - return this._reporterState.path.join('/'); -}; - -Reporter.prototype.enterObject = function enterObject() { - const state = this._reporterState; - - const prev = state.obj; - state.obj = {}; - return prev; -}; - -Reporter.prototype.leaveObject = function leaveObject(prev) { - const state = this._reporterState; - - const now = state.obj; - state.obj = prev; - return now; -}; - -Reporter.prototype.error = function error(msg) { - let err; - const state = this._reporterState; - - const inherited = msg instanceof ReporterError; - if (inherited) { - err = msg; - } else { - err = new ReporterError(state.path.map(function(elem) { - return '[' + JSON.stringify(elem) + ']'; - }).join(''), msg.message || msg, msg.stack); - } - - if (!state.options.partial) - throw err; - - if (!inherited) - state.errors.push(err); - - return err; -}; - -Reporter.prototype.wrapResult = function wrapResult(result) { - const state = this._reporterState; - if (!state.options.partial) - return result; - - return { - result: this.isError(result) ? null : result, - errors: state.errors - }; -}; - -function ReporterError(path, msg) { - this.path = path; - this.rethrow(msg); -} -inherits(ReporterError, Error); - -ReporterError.prototype.rethrow = function rethrow(msg) { - this.message = msg + ' at: ' + (this.path || '(shallow)'); - if (Error.captureStackTrace) - Error.captureStackTrace(this, ReporterError); - - if (!this.stack) { - try { - // IE only adds stack when thrown - throw new Error(this.message); - } catch (e) { - this.stack = e.stack; - } - } - return this; -}; diff --git a/dist/node_modules/asn1.js/lib/asn1/constants/der.js b/dist/node_modules/asn1.js/lib/asn1/constants/der.js deleted file mode 100644 index 2b678aa..0000000 --- a/dist/node_modules/asn1.js/lib/asn1/constants/der.js +++ /dev/null @@ -1,58 +0,0 @@ -'use strict'; - -// Helper -function reverse(map) { - const res = {}; - - Object.keys(map).forEach(function(key) { - // Convert key to integer if it is stringified - if ((key | 0) == key) - key = key | 0; - - const value = map[key]; - res[value] = key; - }); - - return res; -} - -exports.tagClass = { - 0: 'universal', - 1: 'application', - 2: 'context', - 3: 'private' -}; -exports.tagClassByName = reverse(exports.tagClass); - -exports.tag = { - 0x00: 'end', - 0x01: 'bool', - 0x02: 'int', - 0x03: 'bitstr', - 0x04: 'octstr', - 0x05: 'null_', - 0x06: 'objid', - 0x07: 'objDesc', - 0x08: 'external', - 0x09: 'real', - 0x0a: 'enum', - 0x0b: 'embed', - 0x0c: 'utf8str', - 0x0d: 'relativeOid', - 0x10: 'seq', - 0x11: 'set', - 0x12: 'numstr', - 0x13: 'printstr', - 0x14: 't61str', - 0x15: 'videostr', - 0x16: 'ia5str', - 0x17: 'utctime', - 0x18: 'gentime', - 0x19: 'graphstr', - 0x1a: 'iso646str', - 0x1b: 'genstr', - 0x1c: 'unistr', - 0x1d: 'charstr', - 0x1e: 'bmpstr' -}; -exports.tagByName = reverse(exports.tag); diff --git a/dist/node_modules/asn1.js/lib/asn1/constants/index.js b/dist/node_modules/asn1.js/lib/asn1/constants/index.js deleted file mode 100644 index 632cf3d..0000000 --- a/dist/node_modules/asn1.js/lib/asn1/constants/index.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -const constants = exports; - -// Helper -constants._reverse = function reverse(map) { - const res = {}; - - Object.keys(map).forEach(function(key) { - // Convert key to integer if it is stringified - if ((key | 0) == key) - key = key | 0; - - const value = map[key]; - res[value] = key; - }); - - return res; -}; - -constants.der = require('./der'); diff --git a/dist/node_modules/asn1.js/lib/asn1/decoders/der.js b/dist/node_modules/asn1.js/lib/asn1/decoders/der.js deleted file mode 100644 index c5b0515..0000000 --- a/dist/node_modules/asn1.js/lib/asn1/decoders/der.js +++ /dev/null @@ -1,335 +0,0 @@ -'use strict'; - -const inherits = require('inherits'); - -const bignum = require('bn.js'); -const DecoderBuffer = require('../base/buffer').DecoderBuffer; -const Node = require('../base/node'); - -// Import DER constants -const der = require('../constants/der'); - -function DERDecoder(entity) { - this.enc = 'der'; - this.name = entity.name; - this.entity = entity; - - // Construct base tree - this.tree = new DERNode(); - this.tree._init(entity.body); -} -module.exports = DERDecoder; - -DERDecoder.prototype.decode = function decode(data, options) { - if (!DecoderBuffer.isDecoderBuffer(data)) { - data = new DecoderBuffer(data, options); - } - - return this.tree._decode(data, options); -}; - -// Tree methods - -function DERNode(parent) { - Node.call(this, 'der', parent); -} -inherits(DERNode, Node); - -DERNode.prototype._peekTag = function peekTag(buffer, tag, any) { - if (buffer.isEmpty()) - return false; - - const state = buffer.save(); - const decodedTag = derDecodeTag(buffer, 'Failed to peek tag: "' + tag + '"'); - if (buffer.isError(decodedTag)) - return decodedTag; - - buffer.restore(state); - - return decodedTag.tag === tag || decodedTag.tagStr === tag || - (decodedTag.tagStr + 'of') === tag || any; -}; - -DERNode.prototype._decodeTag = function decodeTag(buffer, tag, any) { - const decodedTag = derDecodeTag(buffer, - 'Failed to decode tag of "' + tag + '"'); - if (buffer.isError(decodedTag)) - return decodedTag; - - let len = derDecodeLen(buffer, - decodedTag.primitive, - 'Failed to get length of "' + tag + '"'); - - // Failure - if (buffer.isError(len)) - return len; - - if (!any && - decodedTag.tag !== tag && - decodedTag.tagStr !== tag && - decodedTag.tagStr + 'of' !== tag) { - return buffer.error('Failed to match tag: "' + tag + '"'); - } - - if (decodedTag.primitive || len !== null) - return buffer.skip(len, 'Failed to match body of: "' + tag + '"'); - - // Indefinite length... find END tag - const state = buffer.save(); - const res = this._skipUntilEnd( - buffer, - 'Failed to skip indefinite length body: "' + this.tag + '"'); - if (buffer.isError(res)) - return res; - - len = buffer.offset - state.offset; - buffer.restore(state); - return buffer.skip(len, 'Failed to match body of: "' + tag + '"'); -}; - -DERNode.prototype._skipUntilEnd = function skipUntilEnd(buffer, fail) { - for (;;) { - const tag = derDecodeTag(buffer, fail); - if (buffer.isError(tag)) - return tag; - const len = derDecodeLen(buffer, tag.primitive, fail); - if (buffer.isError(len)) - return len; - - let res; - if (tag.primitive || len !== null) - res = buffer.skip(len); - else - res = this._skipUntilEnd(buffer, fail); - - // Failure - if (buffer.isError(res)) - return res; - - if (tag.tagStr === 'end') - break; - } -}; - -DERNode.prototype._decodeList = function decodeList(buffer, tag, decoder, - options) { - const result = []; - while (!buffer.isEmpty()) { - const possibleEnd = this._peekTag(buffer, 'end'); - if (buffer.isError(possibleEnd)) - return possibleEnd; - - const res = decoder.decode(buffer, 'der', options); - if (buffer.isError(res) && possibleEnd) - break; - result.push(res); - } - return result; -}; - -DERNode.prototype._decodeStr = function decodeStr(buffer, tag) { - if (tag === 'bitstr') { - const unused = buffer.readUInt8(); - if (buffer.isError(unused)) - return unused; - return { unused: unused, data: buffer.raw() }; - } else if (tag === 'bmpstr') { - const raw = buffer.raw(); - if (raw.length % 2 === 1) - return buffer.error('Decoding of string type: bmpstr length mismatch'); - - let str = ''; - for (let i = 0; i < raw.length / 2; i++) { - str += String.fromCharCode(raw.readUInt16BE(i * 2)); - } - return str; - } else if (tag === 'numstr') { - const numstr = buffer.raw().toString('ascii'); - if (!this._isNumstr(numstr)) { - return buffer.error('Decoding of string type: ' + - 'numstr unsupported characters'); - } - return numstr; - } else if (tag === 'octstr') { - return buffer.raw(); - } else if (tag === 'objDesc') { - return buffer.raw(); - } else if (tag === 'printstr') { - const printstr = buffer.raw().toString('ascii'); - if (!this._isPrintstr(printstr)) { - return buffer.error('Decoding of string type: ' + - 'printstr unsupported characters'); - } - return printstr; - } else if (/str$/.test(tag)) { - return buffer.raw().toString(); - } else { - return buffer.error('Decoding of string type: ' + tag + ' unsupported'); - } -}; - -DERNode.prototype._decodeObjid = function decodeObjid(buffer, values, relative) { - let result; - const identifiers = []; - let ident = 0; - let subident = 0; - while (!buffer.isEmpty()) { - subident = buffer.readUInt8(); - ident <<= 7; - ident |= subident & 0x7f; - if ((subident & 0x80) === 0) { - identifiers.push(ident); - ident = 0; - } - } - if (subident & 0x80) - identifiers.push(ident); - - const first = (identifiers[0] / 40) | 0; - const second = identifiers[0] % 40; - - if (relative) - result = identifiers; - else - result = [first, second].concat(identifiers.slice(1)); - - if (values) { - let tmp = values[result.join(' ')]; - if (tmp === undefined) - tmp = values[result.join('.')]; - if (tmp !== undefined) - result = tmp; - } - - return result; -}; - -DERNode.prototype._decodeTime = function decodeTime(buffer, tag) { - const str = buffer.raw().toString(); - - let year; - let mon; - let day; - let hour; - let min; - let sec; - if (tag === 'gentime') { - year = str.slice(0, 4) | 0; - mon = str.slice(4, 6) | 0; - day = str.slice(6, 8) | 0; - hour = str.slice(8, 10) | 0; - min = str.slice(10, 12) | 0; - sec = str.slice(12, 14) | 0; - } else if (tag === 'utctime') { - year = str.slice(0, 2) | 0; - mon = str.slice(2, 4) | 0; - day = str.slice(4, 6) | 0; - hour = str.slice(6, 8) | 0; - min = str.slice(8, 10) | 0; - sec = str.slice(10, 12) | 0; - if (year < 70) - year = 2000 + year; - else - year = 1900 + year; - } else { - return buffer.error('Decoding ' + tag + ' time is not supported yet'); - } - - return Date.UTC(year, mon - 1, day, hour, min, sec, 0); -}; - -DERNode.prototype._decodeNull = function decodeNull() { - return null; -}; - -DERNode.prototype._decodeBool = function decodeBool(buffer) { - const res = buffer.readUInt8(); - if (buffer.isError(res)) - return res; - else - return res !== 0; -}; - -DERNode.prototype._decodeInt = function decodeInt(buffer, values) { - // Bigint, return as it is (assume big endian) - const raw = buffer.raw(); - let res = new bignum(raw); - - if (values) - res = values[res.toString(10)] || res; - - return res; -}; - -DERNode.prototype._use = function use(entity, obj) { - if (typeof entity === 'function') - entity = entity(obj); - return entity._getDecoder('der').tree; -}; - -// Utility methods - -function derDecodeTag(buf, fail) { - let tag = buf.readUInt8(fail); - if (buf.isError(tag)) - return tag; - - const cls = der.tagClass[tag >> 6]; - const primitive = (tag & 0x20) === 0; - - // Multi-octet tag - load - if ((tag & 0x1f) === 0x1f) { - let oct = tag; - tag = 0; - while ((oct & 0x80) === 0x80) { - oct = buf.readUInt8(fail); - if (buf.isError(oct)) - return oct; - - tag <<= 7; - tag |= oct & 0x7f; - } - } else { - tag &= 0x1f; - } - const tagStr = der.tag[tag]; - - return { - cls: cls, - primitive: primitive, - tag: tag, - tagStr: tagStr - }; -} - -function derDecodeLen(buf, primitive, fail) { - let len = buf.readUInt8(fail); - if (buf.isError(len)) - return len; - - // Indefinite form - if (!primitive && len === 0x80) - return null; - - // Definite form - if ((len & 0x80) === 0) { - // Short form - return len; - } - - // Long form - const num = len & 0x7f; - if (num > 4) - return buf.error('length octect is too long'); - - len = 0; - for (let i = 0; i < num; i++) { - len <<= 8; - const j = buf.readUInt8(fail); - if (buf.isError(j)) - return j; - len |= j; - } - - return len; -} diff --git a/dist/node_modules/asn1.js/lib/asn1/decoders/index.js b/dist/node_modules/asn1.js/lib/asn1/decoders/index.js deleted file mode 100644 index 14fb05a..0000000 --- a/dist/node_modules/asn1.js/lib/asn1/decoders/index.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -const decoders = exports; - -decoders.der = require('./der'); -decoders.pem = require('./pem'); diff --git a/dist/node_modules/asn1.js/lib/asn1/decoders/pem.js b/dist/node_modules/asn1.js/lib/asn1/decoders/pem.js deleted file mode 100644 index 2b050ef..0000000 --- a/dist/node_modules/asn1.js/lib/asn1/decoders/pem.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict'; - -const inherits = require('inherits'); -const Buffer = require('safer-buffer').Buffer; - -const DERDecoder = require('./der'); - -function PEMDecoder(entity) { - DERDecoder.call(this, entity); - this.enc = 'pem'; -} -inherits(PEMDecoder, DERDecoder); -module.exports = PEMDecoder; - -PEMDecoder.prototype.decode = function decode(data, options) { - const lines = data.toString().split(/[\r\n]+/g); - - const label = options.label.toUpperCase(); - - const re = /^-----(BEGIN|END) ([^-]+)-----$/; - let start = -1; - let end = -1; - for (let i = 0; i < lines.length; i++) { - const match = lines[i].match(re); - if (match === null) - continue; - - if (match[2] !== label) - continue; - - if (start === -1) { - if (match[1] !== 'BEGIN') - break; - start = i; - } else { - if (match[1] !== 'END') - break; - end = i; - break; - } - } - if (start === -1 || end === -1) - throw new Error('PEM section not found for: ' + label); - - const base64 = lines.slice(start + 1, end).join(''); - // Remove excessive symbols - base64.replace(/[^a-z0-9+/=]+/gi, ''); - - const input = Buffer.from(base64, 'base64'); - return DERDecoder.prototype.decode.call(this, input, options); -}; diff --git a/dist/node_modules/asn1.js/lib/asn1/encoders/der.js b/dist/node_modules/asn1.js/lib/asn1/encoders/der.js deleted file mode 100644 index 55eb435..0000000 --- a/dist/node_modules/asn1.js/lib/asn1/encoders/der.js +++ /dev/null @@ -1,295 +0,0 @@ -'use strict'; - -const inherits = require('inherits'); -const Buffer = require('safer-buffer').Buffer; -const Node = require('../base/node'); - -// Import DER constants -const der = require('../constants/der'); - -function DEREncoder(entity) { - this.enc = 'der'; - this.name = entity.name; - this.entity = entity; - - // Construct base tree - this.tree = new DERNode(); - this.tree._init(entity.body); -} -module.exports = DEREncoder; - -DEREncoder.prototype.encode = function encode(data, reporter) { - return this.tree._encode(data, reporter).join(); -}; - -// Tree methods - -function DERNode(parent) { - Node.call(this, 'der', parent); -} -inherits(DERNode, Node); - -DERNode.prototype._encodeComposite = function encodeComposite(tag, - primitive, - cls, - content) { - const encodedTag = encodeTag(tag, primitive, cls, this.reporter); - - // Short form - if (content.length < 0x80) { - const header = Buffer.alloc(2); - header[0] = encodedTag; - header[1] = content.length; - return this._createEncoderBuffer([ header, content ]); - } - - // Long form - // Count octets required to store length - let lenOctets = 1; - for (let i = content.length; i >= 0x100; i >>= 8) - lenOctets++; - - const header = Buffer.alloc(1 + 1 + lenOctets); - header[0] = encodedTag; - header[1] = 0x80 | lenOctets; - - for (let i = 1 + lenOctets, j = content.length; j > 0; i--, j >>= 8) - header[i] = j & 0xff; - - return this._createEncoderBuffer([ header, content ]); -}; - -DERNode.prototype._encodeStr = function encodeStr(str, tag) { - if (tag === 'bitstr') { - return this._createEncoderBuffer([ str.unused | 0, str.data ]); - } else if (tag === 'bmpstr') { - const buf = Buffer.alloc(str.length * 2); - for (let i = 0; i < str.length; i++) { - buf.writeUInt16BE(str.charCodeAt(i), i * 2); - } - return this._createEncoderBuffer(buf); - } else if (tag === 'numstr') { - if (!this._isNumstr(str)) { - return this.reporter.error('Encoding of string type: numstr supports ' + - 'only digits and space'); - } - return this._createEncoderBuffer(str); - } else if (tag === 'printstr') { - if (!this._isPrintstr(str)) { - return this.reporter.error('Encoding of string type: printstr supports ' + - 'only latin upper and lower case letters, ' + - 'digits, space, apostrophe, left and rigth ' + - 'parenthesis, plus sign, comma, hyphen, ' + - 'dot, slash, colon, equal sign, ' + - 'question mark'); - } - return this._createEncoderBuffer(str); - } else if (/str$/.test(tag)) { - return this._createEncoderBuffer(str); - } else if (tag === 'objDesc') { - return this._createEncoderBuffer(str); - } else { - return this.reporter.error('Encoding of string type: ' + tag + - ' unsupported'); - } -}; - -DERNode.prototype._encodeObjid = function encodeObjid(id, values, relative) { - if (typeof id === 'string') { - if (!values) - return this.reporter.error('string objid given, but no values map found'); - if (!values.hasOwnProperty(id)) - return this.reporter.error('objid not found in values map'); - id = values[id].split(/[\s.]+/g); - for (let i = 0; i < id.length; i++) - id[i] |= 0; - } else if (Array.isArray(id)) { - id = id.slice(); - for (let i = 0; i < id.length; i++) - id[i] |= 0; - } - - if (!Array.isArray(id)) { - return this.reporter.error('objid() should be either array or string, ' + - 'got: ' + JSON.stringify(id)); - } - - if (!relative) { - if (id[1] >= 40) - return this.reporter.error('Second objid identifier OOB'); - id.splice(0, 2, id[0] * 40 + id[1]); - } - - // Count number of octets - let size = 0; - for (let i = 0; i < id.length; i++) { - let ident = id[i]; - for (size++; ident >= 0x80; ident >>= 7) - size++; - } - - const objid = Buffer.alloc(size); - let offset = objid.length - 1; - for (let i = id.length - 1; i >= 0; i--) { - let ident = id[i]; - objid[offset--] = ident & 0x7f; - while ((ident >>= 7) > 0) - objid[offset--] = 0x80 | (ident & 0x7f); - } - - return this._createEncoderBuffer(objid); -}; - -function two(num) { - if (num < 10) - return '0' + num; - else - return num; -} - -DERNode.prototype._encodeTime = function encodeTime(time, tag) { - let str; - const date = new Date(time); - - if (tag === 'gentime') { - str = [ - two(date.getUTCFullYear()), - two(date.getUTCMonth() + 1), - two(date.getUTCDate()), - two(date.getUTCHours()), - two(date.getUTCMinutes()), - two(date.getUTCSeconds()), - 'Z' - ].join(''); - } else if (tag === 'utctime') { - str = [ - two(date.getUTCFullYear() % 100), - two(date.getUTCMonth() + 1), - two(date.getUTCDate()), - two(date.getUTCHours()), - two(date.getUTCMinutes()), - two(date.getUTCSeconds()), - 'Z' - ].join(''); - } else { - this.reporter.error('Encoding ' + tag + ' time is not supported yet'); - } - - return this._encodeStr(str, 'octstr'); -}; - -DERNode.prototype._encodeNull = function encodeNull() { - return this._createEncoderBuffer(''); -}; - -DERNode.prototype._encodeInt = function encodeInt(num, values) { - if (typeof num === 'string') { - if (!values) - return this.reporter.error('String int or enum given, but no values map'); - if (!values.hasOwnProperty(num)) { - return this.reporter.error('Values map doesn\'t contain: ' + - JSON.stringify(num)); - } - num = values[num]; - } - - // Bignum, assume big endian - if (typeof num !== 'number' && !Buffer.isBuffer(num)) { - const numArray = num.toArray(); - if (!num.sign && numArray[0] & 0x80) { - numArray.unshift(0); - } - num = Buffer.from(numArray); - } - - if (Buffer.isBuffer(num)) { - let size = num.length; - if (num.length === 0) - size++; - - const out = Buffer.alloc(size); - num.copy(out); - if (num.length === 0) - out[0] = 0; - return this._createEncoderBuffer(out); - } - - if (num < 0x80) - return this._createEncoderBuffer(num); - - if (num < 0x100) - return this._createEncoderBuffer([0, num]); - - let size = 1; - for (let i = num; i >= 0x100; i >>= 8) - size++; - - const out = new Array(size); - for (let i = out.length - 1; i >= 0; i--) { - out[i] = num & 0xff; - num >>= 8; - } - if(out[0] & 0x80) { - out.unshift(0); - } - - return this._createEncoderBuffer(Buffer.from(out)); -}; - -DERNode.prototype._encodeBool = function encodeBool(value) { - return this._createEncoderBuffer(value ? 0xff : 0); -}; - -DERNode.prototype._use = function use(entity, obj) { - if (typeof entity === 'function') - entity = entity(obj); - return entity._getEncoder('der').tree; -}; - -DERNode.prototype._skipDefault = function skipDefault(dataBuffer, reporter, parent) { - const state = this._baseState; - let i; - if (state['default'] === null) - return false; - - const data = dataBuffer.join(); - if (state.defaultBuffer === undefined) - state.defaultBuffer = this._encodeValue(state['default'], reporter, parent).join(); - - if (data.length !== state.defaultBuffer.length) - return false; - - for (i=0; i < data.length; i++) - if (data[i] !== state.defaultBuffer[i]) - return false; - - return true; -}; - -// Utility methods - -function encodeTag(tag, primitive, cls, reporter) { - let res; - - if (tag === 'seqof') - tag = 'seq'; - else if (tag === 'setof') - tag = 'set'; - - if (der.tagByName.hasOwnProperty(tag)) - res = der.tagByName[tag]; - else if (typeof tag === 'number' && (tag | 0) === tag) - res = tag; - else - return reporter.error('Unknown tag: ' + tag); - - if (res >= 0x1f) - return reporter.error('Multi-octet tag encoding unsupported'); - - if (!primitive) - res |= 0x20; - - res |= (der.tagClassByName[cls || 'universal'] << 6); - - return res; -} diff --git a/dist/node_modules/asn1.js/lib/asn1/encoders/index.js b/dist/node_modules/asn1.js/lib/asn1/encoders/index.js deleted file mode 100644 index bb8ea34..0000000 --- a/dist/node_modules/asn1.js/lib/asn1/encoders/index.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -const encoders = exports; - -encoders.der = require('./der'); -encoders.pem = require('./pem'); diff --git a/dist/node_modules/asn1.js/lib/asn1/encoders/pem.js b/dist/node_modules/asn1.js/lib/asn1/encoders/pem.js deleted file mode 100644 index 77fbdb4..0000000 --- a/dist/node_modules/asn1.js/lib/asn1/encoders/pem.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -const inherits = require('inherits'); - -const DEREncoder = require('./der'); - -function PEMEncoder(entity) { - DEREncoder.call(this, entity); - this.enc = 'pem'; -} -inherits(PEMEncoder, DEREncoder); -module.exports = PEMEncoder; - -PEMEncoder.prototype.encode = function encode(data, options) { - const buf = DEREncoder.prototype.encode.call(this, data); - - const p = buf.toString('base64'); - const out = [ '-----BEGIN ' + options.label + '-----' ]; - for (let i = 0; i < p.length; i += 64) - out.push(p.slice(i, i + 64)); - out.push('-----END ' + options.label + '-----'); - return out.join('\n'); -}; diff --git a/dist/node_modules/asn1.js/package.json b/dist/node_modules/asn1.js/package.json deleted file mode 100644 index 7b7d053..0000000 --- a/dist/node_modules/asn1.js/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "asn1.js", - "version": "5.4.1", - "description": "ASN.1 encoder and decoder", - "main": "lib/asn1.js", - "scripts": { - "lint-2560": "eslint --fix rfc/2560/*.js rfc/2560/test/*.js", - "lint-5280": "eslint --fix rfc/5280/*.js rfc/5280/test/*.js", - "lint": "eslint --fix lib/*.js lib/**/*.js lib/**/**/*.js && npm run lint-2560 && npm run lint-5280", - "test": "mocha --reporter spec test/*-test.js && cd rfc/2560 && npm i && npm test && cd ../../rfc/5280 && npm i && npm test && cd ../../ && npm run lint" - }, - "repository": { - "type": "git", - "url": "git@github.com:indutny/asn1.js" - }, - "keywords": [ - "asn.1", - "der" - ], - "author": "Fedor Indutny", - "license": "MIT", - "bugs": { - "url": "https://github.com/indutny/asn1.js/issues" - }, - "homepage": "https://github.com/indutny/asn1.js", - "devDependencies": { - "eslint": "^4.10.0", - "mocha": "^7.0.0" - }, - "dependencies": { - "bn.js": "^4.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "safer-buffer": "^2.1.0" - } -} diff --git a/dist/node_modules/bn.js/README.md b/dist/node_modules/bn.js/README.md deleted file mode 100644 index 370f06d..0000000 --- a/dist/node_modules/bn.js/README.md +++ /dev/null @@ -1,221 +0,0 @@ -# bn.js - -> BigNum in pure javascript - -[![Build Status](https://secure.travis-ci.org/indutny/bn.js.png)](http://travis-ci.org/indutny/bn.js) - -## Install -`npm install --save bn.js` - -## Usage - -```js -const BN = require('bn.js'); - -var a = new BN('dead', 16); -var b = new BN('101010', 2); - -var res = a.add(b); -console.log(res.toString(10)); // 57047 -``` - -**Note**: decimals are not supported in this library. - -## Notation - -### Prefixes - -There are several prefixes to instructions that affect the way the work. Here -is the list of them in the order of appearance in the function name: - -* `i` - perform operation in-place, storing the result in the host object (on - which the method was invoked). Might be used to avoid number allocation costs -* `u` - unsigned, ignore the sign of operands when performing operation, or - always return positive value. Second case applies to reduction operations - like `mod()`. In such cases if the result will be negative - modulo will be - added to the result to make it positive - -### Postfixes - -The only available postfix at the moment is: - -* `n` - which means that the argument of the function must be a plain JavaScript - Number. Decimals are not supported. - -### Examples - -* `a.iadd(b)` - perform addition on `a` and `b`, storing the result in `a` -* `a.umod(b)` - reduce `a` modulo `b`, returning positive value -* `a.iushln(13)` - shift bits of `a` left by 13 - -## Instructions - -Prefixes/postfixes are put in parens at the of the line. `endian` - could be -either `le` (little-endian) or `be` (big-endian). - -### Utilities - -* `a.clone()` - clone number -* `a.toString(base, length)` - convert to base-string and pad with zeroes -* `a.toNumber()` - convert to Javascript Number (limited to 53 bits) -* `a.toJSON()` - convert to JSON compatible hex string (alias of `toString(16)`) -* `a.toArray(endian, length)` - convert to byte `Array`, and optionally zero - pad to length, throwing if already exceeding -* `a.toArrayLike(type, endian, length)` - convert to an instance of `type`, - which must behave like an `Array` -* `a.toBuffer(endian, length)` - convert to Node.js Buffer (if available). For - compatibility with browserify and similar tools, use this instead: - `a.toArrayLike(Buffer, endian, length)` -* `a.bitLength()` - get number of bits occupied -* `a.zeroBits()` - return number of less-significant consequent zero bits - (example: `1010000` has 4 zero bits) -* `a.byteLength()` - return number of bytes occupied -* `a.isNeg()` - true if the number is negative -* `a.isEven()` - no comments -* `a.isOdd()` - no comments -* `a.isZero()` - no comments -* `a.cmp(b)` - compare numbers and return `-1` (a `<` b), `0` (a `==` b), or `1` (a `>` b) - depending on the comparison result (`ucmp`, `cmpn`) -* `a.lt(b)` - `a` less than `b` (`n`) -* `a.lte(b)` - `a` less than or equals `b` (`n`) -* `a.gt(b)` - `a` greater than `b` (`n`) -* `a.gte(b)` - `a` greater than or equals `b` (`n`) -* `a.eq(b)` - `a` equals `b` (`n`) -* `a.toTwos(width)` - convert to two's complement representation, where `width` is bit width -* `a.fromTwos(width)` - convert from two's complement representation, where `width` is the bit width -* `BN.isBN(object)` - returns true if the supplied `object` is a BN.js instance - -### Arithmetics - -* `a.neg()` - negate sign (`i`) -* `a.abs()` - absolute value (`i`) -* `a.add(b)` - addition (`i`, `n`, `in`) -* `a.sub(b)` - subtraction (`i`, `n`, `in`) -* `a.mul(b)` - multiply (`i`, `n`, `in`) -* `a.sqr()` - square (`i`) -* `a.pow(b)` - raise `a` to the power of `b` -* `a.div(b)` - divide (`divn`, `idivn`) -* `a.mod(b)` - reduct (`u`, `n`) (but no `umodn`) -* `a.divRound(b)` - rounded division - -### Bit operations - -* `a.or(b)` - or (`i`, `u`, `iu`) -* `a.and(b)` - and (`i`, `u`, `iu`, `andln`) (NOTE: `andln` is going to be replaced - with `andn` in future) -* `a.xor(b)` - xor (`i`, `u`, `iu`) -* `a.setn(b)` - set specified bit to `1` -* `a.shln(b)` - shift left (`i`, `u`, `iu`) -* `a.shrn(b)` - shift right (`i`, `u`, `iu`) -* `a.testn(b)` - test if specified bit is set -* `a.maskn(b)` - clear bits with indexes higher or equal to `b` (`i`) -* `a.bincn(b)` - add `1 << b` to the number -* `a.notn(w)` - not (for the width specified by `w`) (`i`) - -### Reduction - -* `a.gcd(b)` - GCD -* `a.egcd(b)` - Extended GCD results (`{ a: ..., b: ..., gcd: ... }`) -* `a.invm(b)` - inverse `a` modulo `b` - -## Fast reduction - -When doing lots of reductions using the same modulo, it might be beneficial to -use some tricks: like [Montgomery multiplication][0], or using special algorithm -for [Mersenne Prime][1]. - -### Reduction context - -To enable this tricks one should create a reduction context: - -```js -var red = BN.red(num); -``` -where `num` is just a BN instance. - -Or: - -```js -var red = BN.red(primeName); -``` - -Where `primeName` is either of these [Mersenne Primes][1]: - -* `'k256'` -* `'p224'` -* `'p192'` -* `'p25519'` - -Or: - -```js -var red = BN.mont(num); -``` - -To reduce numbers with [Montgomery trick][0]. `.mont()` is generally faster than -`.red(num)`, but slower than `BN.red(primeName)`. - -### Converting numbers - -Before performing anything in reduction context - numbers should be converted -to it. Usually, this means that one should: - -* Convert inputs to reducted ones -* Operate on them in reduction context -* Convert outputs back from the reduction context - -Here is how one may convert numbers to `red`: - -```js -var redA = a.toRed(red); -``` -Where `red` is a reduction context created using instructions above - -Here is how to convert them back: - -```js -var a = redA.fromRed(); -``` - -### Red instructions - -Most of the instructions from the very start of this readme have their -counterparts in red context: - -* `a.redAdd(b)`, `a.redIAdd(b)` -* `a.redSub(b)`, `a.redISub(b)` -* `a.redShl(num)` -* `a.redMul(b)`, `a.redIMul(b)` -* `a.redSqr()`, `a.redISqr()` -* `a.redSqrt()` - square root modulo reduction context's prime -* `a.redInvm()` - modular inverse of the number -* `a.redNeg()` -* `a.redPow(b)` - modular exponentiation - -## LICENSE - -This software is licensed under the MIT License. - -Copyright Fedor Indutny, 2015. - -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. - -[0]: https://en.wikipedia.org/wiki/Montgomery_modular_multiplication -[1]: https://en.wikipedia.org/wiki/Mersenne_prime diff --git a/dist/node_modules/bn.js/lib/bn.js b/dist/node_modules/bn.js/lib/bn.js deleted file mode 100644 index 855dfa6..0000000 --- a/dist/node_modules/bn.js/lib/bn.js +++ /dev/null @@ -1,3433 +0,0 @@ -(function (module, exports) { - 'use strict'; - - // Utils - function assert (val, msg) { - if (!val) throw new Error(msg || 'Assertion failed'); - } - - // Could use `inherits` module, but don't want to move from single file - // architecture yet. - function inherits (ctor, superCtor) { - ctor.super_ = superCtor; - var TempCtor = function () {}; - TempCtor.prototype = superCtor.prototype; - ctor.prototype = new TempCtor(); - ctor.prototype.constructor = ctor; - } - - // BN - - function BN (number, base, endian) { - if (BN.isBN(number)) { - return number; - } - - this.negative = 0; - this.words = null; - this.length = 0; - - // Reduction context - this.red = null; - - if (number !== null) { - if (base === 'le' || base === 'be') { - endian = base; - base = 10; - } - - this._init(number || 0, base || 10, endian || 'be'); - } - } - if (typeof module === 'object') { - module.exports = BN; - } else { - exports.BN = BN; - } - - BN.BN = BN; - BN.wordSize = 26; - - var Buffer; - try { - Buffer = require('buffer').Buffer; - } catch (e) { - } - - BN.isBN = function isBN (num) { - if (num instanceof BN) { - return true; - } - - return num !== null && typeof num === 'object' && - num.constructor.wordSize === BN.wordSize && Array.isArray(num.words); - }; - - BN.max = function max (left, right) { - if (left.cmp(right) > 0) return left; - return right; - }; - - BN.min = function min (left, right) { - if (left.cmp(right) < 0) return left; - return right; - }; - - BN.prototype._init = function init (number, base, endian) { - if (typeof number === 'number') { - return this._initNumber(number, base, endian); - } - - if (typeof number === 'object') { - return this._initArray(number, base, endian); - } - - if (base === 'hex') { - base = 16; - } - assert(base === (base | 0) && base >= 2 && base <= 36); - - number = number.toString().replace(/\s+/g, ''); - var start = 0; - if (number[0] === '-') { - start++; - } - - if (base === 16) { - this._parseHex(number, start); - } else { - this._parseBase(number, base, start); - } - - if (number[0] === '-') { - this.negative = 1; - } - - this.strip(); - - if (endian !== 'le') return; - - this._initArray(this.toArray(), base, endian); - }; - - BN.prototype._initNumber = function _initNumber (number, base, endian) { - if (number < 0) { - this.negative = 1; - number = -number; - } - if (number < 0x4000000) { - this.words = [ number & 0x3ffffff ]; - this.length = 1; - } else if (number < 0x10000000000000) { - this.words = [ - number & 0x3ffffff, - (number / 0x4000000) & 0x3ffffff - ]; - this.length = 2; - } else { - assert(number < 0x20000000000000); // 2 ^ 53 (unsafe) - this.words = [ - number & 0x3ffffff, - (number / 0x4000000) & 0x3ffffff, - 1 - ]; - this.length = 3; - } - - if (endian !== 'le') return; - - // Reverse the bytes - this._initArray(this.toArray(), base, endian); - }; - - BN.prototype._initArray = function _initArray (number, base, endian) { - // Perhaps a Uint8Array - assert(typeof number.length === 'number'); - if (number.length <= 0) { - this.words = [ 0 ]; - this.length = 1; - return this; - } - - this.length = Math.ceil(number.length / 3); - this.words = new Array(this.length); - for (var i = 0; i < this.length; i++) { - this.words[i] = 0; - } - - var j, w; - var off = 0; - if (endian === 'be') { - for (i = number.length - 1, j = 0; i >= 0; i -= 3) { - w = number[i] | (number[i - 1] << 8) | (number[i - 2] << 16); - this.words[j] |= (w << off) & 0x3ffffff; - this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff; - off += 24; - if (off >= 26) { - off -= 26; - j++; - } - } - } else if (endian === 'le') { - for (i = 0, j = 0; i < number.length; i += 3) { - w = number[i] | (number[i + 1] << 8) | (number[i + 2] << 16); - this.words[j] |= (w << off) & 0x3ffffff; - this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff; - off += 24; - if (off >= 26) { - off -= 26; - j++; - } - } - } - return this.strip(); - }; - - function parseHex (str, start, end) { - var r = 0; - var len = Math.min(str.length, end); - for (var i = start; i < len; i++) { - var c = str.charCodeAt(i) - 48; - - r <<= 4; - - // 'a' - 'f' - if (c >= 49 && c <= 54) { - r |= c - 49 + 0xa; - - // 'A' - 'F' - } else if (c >= 17 && c <= 22) { - r |= c - 17 + 0xa; - - // '0' - '9' - } else { - r |= c & 0xf; - } - } - return r; - } - - BN.prototype._parseHex = function _parseHex (number, start) { - // Create possibly bigger array to ensure that it fits the number - this.length = Math.ceil((number.length - start) / 6); - this.words = new Array(this.length); - for (var i = 0; i < this.length; i++) { - this.words[i] = 0; - } - - var j, w; - // Scan 24-bit chunks and add them to the number - var off = 0; - for (i = number.length - 6, j = 0; i >= start; i -= 6) { - w = parseHex(number, i, i + 6); - this.words[j] |= (w << off) & 0x3ffffff; - // NOTE: `0x3fffff` is intentional here, 26bits max shift + 24bit hex limb - this.words[j + 1] |= w >>> (26 - off) & 0x3fffff; - off += 24; - if (off >= 26) { - off -= 26; - j++; - } - } - if (i + 6 !== start) { - w = parseHex(number, start, i + 6); - this.words[j] |= (w << off) & 0x3ffffff; - this.words[j + 1] |= w >>> (26 - off) & 0x3fffff; - } - this.strip(); - }; - - function parseBase (str, start, end, mul) { - var r = 0; - var len = Math.min(str.length, end); - for (var i = start; i < len; i++) { - var c = str.charCodeAt(i) - 48; - - r *= mul; - - // 'a' - if (c >= 49) { - r += c - 49 + 0xa; - - // 'A' - } else if (c >= 17) { - r += c - 17 + 0xa; - - // '0' - '9' - } else { - r += c; - } - } - return r; - } - - BN.prototype._parseBase = function _parseBase (number, base, start) { - // Initialize as zero - this.words = [ 0 ]; - this.length = 1; - - // Find length of limb in base - for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) { - limbLen++; - } - limbLen--; - limbPow = (limbPow / base) | 0; - - var total = number.length - start; - var mod = total % limbLen; - var end = Math.min(total, total - mod) + start; - - var word = 0; - for (var i = start; i < end; i += limbLen) { - word = parseBase(number, i, i + limbLen, base); - - this.imuln(limbPow); - if (this.words[0] + word < 0x4000000) { - this.words[0] += word; - } else { - this._iaddn(word); - } - } - - if (mod !== 0) { - var pow = 1; - word = parseBase(number, i, number.length, base); - - for (i = 0; i < mod; i++) { - pow *= base; - } - - this.imuln(pow); - if (this.words[0] + word < 0x4000000) { - this.words[0] += word; - } else { - this._iaddn(word); - } - } - }; - - BN.prototype.copy = function copy (dest) { - dest.words = new Array(this.length); - for (var i = 0; i < this.length; i++) { - dest.words[i] = this.words[i]; - } - dest.length = this.length; - dest.negative = this.negative; - dest.red = this.red; - }; - - BN.prototype.clone = function clone () { - var r = new BN(null); - this.copy(r); - return r; - }; - - BN.prototype._expand = function _expand (size) { - while (this.length < size) { - this.words[this.length++] = 0; - } - return this; - }; - - // Remove leading `0` from `this` - BN.prototype.strip = function strip () { - while (this.length > 1 && this.words[this.length - 1] === 0) { - this.length--; - } - return this._normSign(); - }; - - BN.prototype._normSign = function _normSign () { - // -0 = 0 - if (this.length === 1 && this.words[0] === 0) { - this.negative = 0; - } - return this; - }; - - BN.prototype.inspect = function inspect () { - return (this.red ? ''; - }; - - /* - - var zeros = []; - var groupSizes = []; - var groupBases = []; - - var s = ''; - var i = -1; - while (++i < BN.wordSize) { - zeros[i] = s; - s += '0'; - } - groupSizes[0] = 0; - groupSizes[1] = 0; - groupBases[0] = 0; - groupBases[1] = 0; - var base = 2 - 1; - while (++base < 36 + 1) { - var groupSize = 0; - var groupBase = 1; - while (groupBase < (1 << BN.wordSize) / base) { - groupBase *= base; - groupSize += 1; - } - groupSizes[base] = groupSize; - groupBases[base] = groupBase; - } - - */ - - var zeros = [ - '', - '0', - '00', - '000', - '0000', - '00000', - '000000', - '0000000', - '00000000', - '000000000', - '0000000000', - '00000000000', - '000000000000', - '0000000000000', - '00000000000000', - '000000000000000', - '0000000000000000', - '00000000000000000', - '000000000000000000', - '0000000000000000000', - '00000000000000000000', - '000000000000000000000', - '0000000000000000000000', - '00000000000000000000000', - '000000000000000000000000', - '0000000000000000000000000' - ]; - - var groupSizes = [ - 0, 0, - 25, 16, 12, 11, 10, 9, 8, - 8, 7, 7, 7, 7, 6, 6, - 6, 6, 6, 6, 6, 5, 5, - 5, 5, 5, 5, 5, 5, 5, - 5, 5, 5, 5, 5, 5, 5 - ]; - - var groupBases = [ - 0, 0, - 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216, - 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625, - 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632, - 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149, - 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176 - ]; - - BN.prototype.toString = function toString (base, padding) { - base = base || 10; - padding = padding | 0 || 1; - - var out; - if (base === 16 || base === 'hex') { - out = ''; - var off = 0; - var carry = 0; - for (var i = 0; i < this.length; i++) { - var w = this.words[i]; - var word = (((w << off) | carry) & 0xffffff).toString(16); - carry = (w >>> (24 - off)) & 0xffffff; - if (carry !== 0 || i !== this.length - 1) { - out = zeros[6 - word.length] + word + out; - } else { - out = word + out; - } - off += 2; - if (off >= 26) { - off -= 26; - i--; - } - } - if (carry !== 0) { - out = carry.toString(16) + out; - } - while (out.length % padding !== 0) { - out = '0' + out; - } - if (this.negative !== 0) { - out = '-' + out; - } - return out; - } - - if (base === (base | 0) && base >= 2 && base <= 36) { - // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base)); - var groupSize = groupSizes[base]; - // var groupBase = Math.pow(base, groupSize); - var groupBase = groupBases[base]; - out = ''; - var c = this.clone(); - c.negative = 0; - while (!c.isZero()) { - var r = c.modn(groupBase).toString(base); - c = c.idivn(groupBase); - - if (!c.isZero()) { - out = zeros[groupSize - r.length] + r + out; - } else { - out = r + out; - } - } - if (this.isZero()) { - out = '0' + out; - } - while (out.length % padding !== 0) { - out = '0' + out; - } - if (this.negative !== 0) { - out = '-' + out; - } - return out; - } - - assert(false, 'Base should be between 2 and 36'); - }; - - BN.prototype.toNumber = function toNumber () { - var ret = this.words[0]; - if (this.length === 2) { - ret += this.words[1] * 0x4000000; - } else if (this.length === 3 && this.words[2] === 0x01) { - // NOTE: at this stage it is known that the top bit is set - ret += 0x10000000000000 + (this.words[1] * 0x4000000); - } else if (this.length > 2) { - assert(false, 'Number can only safely store up to 53 bits'); - } - return (this.negative !== 0) ? -ret : ret; - }; - - BN.prototype.toJSON = function toJSON () { - return this.toString(16); - }; - - BN.prototype.toBuffer = function toBuffer (endian, length) { - assert(typeof Buffer !== 'undefined'); - return this.toArrayLike(Buffer, endian, length); - }; - - BN.prototype.toArray = function toArray (endian, length) { - return this.toArrayLike(Array, endian, length); - }; - - BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) { - var byteLength = this.byteLength(); - var reqLength = length || Math.max(1, byteLength); - assert(byteLength <= reqLength, 'byte array longer than desired length'); - assert(reqLength > 0, 'Requested array length <= 0'); - - this.strip(); - var littleEndian = endian === 'le'; - var res = new ArrayType(reqLength); - - var b, i; - var q = this.clone(); - if (!littleEndian) { - // Assume big-endian - for (i = 0; i < reqLength - byteLength; i++) { - res[i] = 0; - } - - for (i = 0; !q.isZero(); i++) { - b = q.andln(0xff); - q.iushrn(8); - - res[reqLength - i - 1] = b; - } - } else { - for (i = 0; !q.isZero(); i++) { - b = q.andln(0xff); - q.iushrn(8); - - res[i] = b; - } - - for (; i < reqLength; i++) { - res[i] = 0; - } - } - - return res; - }; - - if (Math.clz32) { - BN.prototype._countBits = function _countBits (w) { - return 32 - Math.clz32(w); - }; - } else { - BN.prototype._countBits = function _countBits (w) { - var t = w; - var r = 0; - if (t >= 0x1000) { - r += 13; - t >>>= 13; - } - if (t >= 0x40) { - r += 7; - t >>>= 7; - } - if (t >= 0x8) { - r += 4; - t >>>= 4; - } - if (t >= 0x02) { - r += 2; - t >>>= 2; - } - return r + t; - }; - } - - BN.prototype._zeroBits = function _zeroBits (w) { - // Short-cut - if (w === 0) return 26; - - var t = w; - var r = 0; - if ((t & 0x1fff) === 0) { - r += 13; - t >>>= 13; - } - if ((t & 0x7f) === 0) { - r += 7; - t >>>= 7; - } - if ((t & 0xf) === 0) { - r += 4; - t >>>= 4; - } - if ((t & 0x3) === 0) { - r += 2; - t >>>= 2; - } - if ((t & 0x1) === 0) { - r++; - } - return r; - }; - - // Return number of used bits in a BN - BN.prototype.bitLength = function bitLength () { - var w = this.words[this.length - 1]; - var hi = this._countBits(w); - return (this.length - 1) * 26 + hi; - }; - - function toBitArray (num) { - var w = new Array(num.bitLength()); - - for (var bit = 0; bit < w.length; bit++) { - var off = (bit / 26) | 0; - var wbit = bit % 26; - - w[bit] = (num.words[off] & (1 << wbit)) >>> wbit; - } - - return w; - } - - // Number of trailing zero bits - BN.prototype.zeroBits = function zeroBits () { - if (this.isZero()) return 0; - - var r = 0; - for (var i = 0; i < this.length; i++) { - var b = this._zeroBits(this.words[i]); - r += b; - if (b !== 26) break; - } - return r; - }; - - BN.prototype.byteLength = function byteLength () { - return Math.ceil(this.bitLength() / 8); - }; - - BN.prototype.toTwos = function toTwos (width) { - if (this.negative !== 0) { - return this.abs().inotn(width).iaddn(1); - } - return this.clone(); - }; - - BN.prototype.fromTwos = function fromTwos (width) { - if (this.testn(width - 1)) { - return this.notn(width).iaddn(1).ineg(); - } - return this.clone(); - }; - - BN.prototype.isNeg = function isNeg () { - return this.negative !== 0; - }; - - // Return negative clone of `this` - BN.prototype.neg = function neg () { - return this.clone().ineg(); - }; - - BN.prototype.ineg = function ineg () { - if (!this.isZero()) { - this.negative ^= 1; - } - - return this; - }; - - // Or `num` with `this` in-place - BN.prototype.iuor = function iuor (num) { - while (this.length < num.length) { - this.words[this.length++] = 0; - } - - for (var i = 0; i < num.length; i++) { - this.words[i] = this.words[i] | num.words[i]; - } - - return this.strip(); - }; - - BN.prototype.ior = function ior (num) { - assert((this.negative | num.negative) === 0); - return this.iuor(num); - }; - - // Or `num` with `this` - BN.prototype.or = function or (num) { - if (this.length > num.length) return this.clone().ior(num); - return num.clone().ior(this); - }; - - BN.prototype.uor = function uor (num) { - if (this.length > num.length) return this.clone().iuor(num); - return num.clone().iuor(this); - }; - - // And `num` with `this` in-place - BN.prototype.iuand = function iuand (num) { - // b = min-length(num, this) - var b; - if (this.length > num.length) { - b = num; - } else { - b = this; - } - - for (var i = 0; i < b.length; i++) { - this.words[i] = this.words[i] & num.words[i]; - } - - this.length = b.length; - - return this.strip(); - }; - - BN.prototype.iand = function iand (num) { - assert((this.negative | num.negative) === 0); - return this.iuand(num); - }; - - // And `num` with `this` - BN.prototype.and = function and (num) { - if (this.length > num.length) return this.clone().iand(num); - return num.clone().iand(this); - }; - - BN.prototype.uand = function uand (num) { - if (this.length > num.length) return this.clone().iuand(num); - return num.clone().iuand(this); - }; - - // Xor `num` with `this` in-place - BN.prototype.iuxor = function iuxor (num) { - // a.length > b.length - var a; - var b; - if (this.length > num.length) { - a = this; - b = num; - } else { - a = num; - b = this; - } - - for (var i = 0; i < b.length; i++) { - this.words[i] = a.words[i] ^ b.words[i]; - } - - if (this !== a) { - for (; i < a.length; i++) { - this.words[i] = a.words[i]; - } - } - - this.length = a.length; - - return this.strip(); - }; - - BN.prototype.ixor = function ixor (num) { - assert((this.negative | num.negative) === 0); - return this.iuxor(num); - }; - - // Xor `num` with `this` - BN.prototype.xor = function xor (num) { - if (this.length > num.length) return this.clone().ixor(num); - return num.clone().ixor(this); - }; - - BN.prototype.uxor = function uxor (num) { - if (this.length > num.length) return this.clone().iuxor(num); - return num.clone().iuxor(this); - }; - - // Not ``this`` with ``width`` bitwidth - BN.prototype.inotn = function inotn (width) { - assert(typeof width === 'number' && width >= 0); - - var bytesNeeded = Math.ceil(width / 26) | 0; - var bitsLeft = width % 26; - - // Extend the buffer with leading zeroes - this._expand(bytesNeeded); - - if (bitsLeft > 0) { - bytesNeeded--; - } - - // Handle complete words - for (var i = 0; i < bytesNeeded; i++) { - this.words[i] = ~this.words[i] & 0x3ffffff; - } - - // Handle the residue - if (bitsLeft > 0) { - this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft)); - } - - // And remove leading zeroes - return this.strip(); - }; - - BN.prototype.notn = function notn (width) { - return this.clone().inotn(width); - }; - - // Set `bit` of `this` - BN.prototype.setn = function setn (bit, val) { - assert(typeof bit === 'number' && bit >= 0); - - var off = (bit / 26) | 0; - var wbit = bit % 26; - - this._expand(off + 1); - - if (val) { - this.words[off] = this.words[off] | (1 << wbit); - } else { - this.words[off] = this.words[off] & ~(1 << wbit); - } - - return this.strip(); - }; - - // Add `num` to `this` in-place - BN.prototype.iadd = function iadd (num) { - var r; - - // negative + positive - if (this.negative !== 0 && num.negative === 0) { - this.negative = 0; - r = this.isub(num); - this.negative ^= 1; - return this._normSign(); - - // positive + negative - } else if (this.negative === 0 && num.negative !== 0) { - num.negative = 0; - r = this.isub(num); - num.negative = 1; - return r._normSign(); - } - - // a.length > b.length - var a, b; - if (this.length > num.length) { - a = this; - b = num; - } else { - a = num; - b = this; - } - - var carry = 0; - for (var i = 0; i < b.length; i++) { - r = (a.words[i] | 0) + (b.words[i] | 0) + carry; - this.words[i] = r & 0x3ffffff; - carry = r >>> 26; - } - for (; carry !== 0 && i < a.length; i++) { - r = (a.words[i] | 0) + carry; - this.words[i] = r & 0x3ffffff; - carry = r >>> 26; - } - - this.length = a.length; - if (carry !== 0) { - this.words[this.length] = carry; - this.length++; - // Copy the rest of the words - } else if (a !== this) { - for (; i < a.length; i++) { - this.words[i] = a.words[i]; - } - } - - return this; - }; - - // Add `num` to `this` - BN.prototype.add = function add (num) { - var res; - if (num.negative !== 0 && this.negative === 0) { - num.negative = 0; - res = this.sub(num); - num.negative ^= 1; - return res; - } else if (num.negative === 0 && this.negative !== 0) { - this.negative = 0; - res = num.sub(this); - this.negative = 1; - return res; - } - - if (this.length > num.length) return this.clone().iadd(num); - - return num.clone().iadd(this); - }; - - // Subtract `num` from `this` in-place - BN.prototype.isub = function isub (num) { - // this - (-num) = this + num - if (num.negative !== 0) { - num.negative = 0; - var r = this.iadd(num); - num.negative = 1; - return r._normSign(); - - // -this - num = -(this + num) - } else if (this.negative !== 0) { - this.negative = 0; - this.iadd(num); - this.negative = 1; - return this._normSign(); - } - - // At this point both numbers are positive - var cmp = this.cmp(num); - - // Optimization - zeroify - if (cmp === 0) { - this.negative = 0; - this.length = 1; - this.words[0] = 0; - return this; - } - - // a > b - var a, b; - if (cmp > 0) { - a = this; - b = num; - } else { - a = num; - b = this; - } - - var carry = 0; - for (var i = 0; i < b.length; i++) { - r = (a.words[i] | 0) - (b.words[i] | 0) + carry; - carry = r >> 26; - this.words[i] = r & 0x3ffffff; - } - for (; carry !== 0 && i < a.length; i++) { - r = (a.words[i] | 0) + carry; - carry = r >> 26; - this.words[i] = r & 0x3ffffff; - } - - // Copy rest of the words - if (carry === 0 && i < a.length && a !== this) { - for (; i < a.length; i++) { - this.words[i] = a.words[i]; - } - } - - this.length = Math.max(this.length, i); - - if (a !== this) { - this.negative = 1; - } - - return this.strip(); - }; - - // Subtract `num` from `this` - BN.prototype.sub = function sub (num) { - return this.clone().isub(num); - }; - - function smallMulTo (self, num, out) { - out.negative = num.negative ^ self.negative; - var len = (self.length + num.length) | 0; - out.length = len; - len = (len - 1) | 0; - - // Peel one iteration (compiler can't do it, because of code complexity) - var a = self.words[0] | 0; - var b = num.words[0] | 0; - var r = a * b; - - var lo = r & 0x3ffffff; - var carry = (r / 0x4000000) | 0; - out.words[0] = lo; - - for (var k = 1; k < len; k++) { - // Sum all words with the same `i + j = k` and accumulate `ncarry`, - // note that ncarry could be >= 0x3ffffff - var ncarry = carry >>> 26; - var rword = carry & 0x3ffffff; - var maxJ = Math.min(k, num.length - 1); - for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) { - var i = (k - j) | 0; - a = self.words[i] | 0; - b = num.words[j] | 0; - r = a * b + rword; - ncarry += (r / 0x4000000) | 0; - rword = r & 0x3ffffff; - } - out.words[k] = rword | 0; - carry = ncarry | 0; - } - if (carry !== 0) { - out.words[k] = carry | 0; - } else { - out.length--; - } - - return out.strip(); - } - - // TODO(indutny): it may be reasonable to omit it for users who don't need - // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit - // multiplication (like elliptic secp256k1). - var comb10MulTo = function comb10MulTo (self, num, out) { - var a = self.words; - var b = num.words; - var o = out.words; - var c = 0; - var lo; - var mid; - var hi; - var a0 = a[0] | 0; - var al0 = a0 & 0x1fff; - var ah0 = a0 >>> 13; - var a1 = a[1] | 0; - var al1 = a1 & 0x1fff; - var ah1 = a1 >>> 13; - var a2 = a[2] | 0; - var al2 = a2 & 0x1fff; - var ah2 = a2 >>> 13; - var a3 = a[3] | 0; - var al3 = a3 & 0x1fff; - var ah3 = a3 >>> 13; - var a4 = a[4] | 0; - var al4 = a4 & 0x1fff; - var ah4 = a4 >>> 13; - var a5 = a[5] | 0; - var al5 = a5 & 0x1fff; - var ah5 = a5 >>> 13; - var a6 = a[6] | 0; - var al6 = a6 & 0x1fff; - var ah6 = a6 >>> 13; - var a7 = a[7] | 0; - var al7 = a7 & 0x1fff; - var ah7 = a7 >>> 13; - var a8 = a[8] | 0; - var al8 = a8 & 0x1fff; - var ah8 = a8 >>> 13; - var a9 = a[9] | 0; - var al9 = a9 & 0x1fff; - var ah9 = a9 >>> 13; - var b0 = b[0] | 0; - var bl0 = b0 & 0x1fff; - var bh0 = b0 >>> 13; - var b1 = b[1] | 0; - var bl1 = b1 & 0x1fff; - var bh1 = b1 >>> 13; - var b2 = b[2] | 0; - var bl2 = b2 & 0x1fff; - var bh2 = b2 >>> 13; - var b3 = b[3] | 0; - var bl3 = b3 & 0x1fff; - var bh3 = b3 >>> 13; - var b4 = b[4] | 0; - var bl4 = b4 & 0x1fff; - var bh4 = b4 >>> 13; - var b5 = b[5] | 0; - var bl5 = b5 & 0x1fff; - var bh5 = b5 >>> 13; - var b6 = b[6] | 0; - var bl6 = b6 & 0x1fff; - var bh6 = b6 >>> 13; - var b7 = b[7] | 0; - var bl7 = b7 & 0x1fff; - var bh7 = b7 >>> 13; - var b8 = b[8] | 0; - var bl8 = b8 & 0x1fff; - var bh8 = b8 >>> 13; - var b9 = b[9] | 0; - var bl9 = b9 & 0x1fff; - var bh9 = b9 >>> 13; - - out.negative = self.negative ^ num.negative; - out.length = 19; - /* k = 0 */ - lo = Math.imul(al0, bl0); - mid = Math.imul(al0, bh0); - mid = (mid + Math.imul(ah0, bl0)) | 0; - hi = Math.imul(ah0, bh0); - var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0; - w0 &= 0x3ffffff; - /* k = 1 */ - lo = Math.imul(al1, bl0); - mid = Math.imul(al1, bh0); - mid = (mid + Math.imul(ah1, bl0)) | 0; - hi = Math.imul(ah1, bh0); - lo = (lo + Math.imul(al0, bl1)) | 0; - mid = (mid + Math.imul(al0, bh1)) | 0; - mid = (mid + Math.imul(ah0, bl1)) | 0; - hi = (hi + Math.imul(ah0, bh1)) | 0; - var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0; - w1 &= 0x3ffffff; - /* k = 2 */ - lo = Math.imul(al2, bl0); - mid = Math.imul(al2, bh0); - mid = (mid + Math.imul(ah2, bl0)) | 0; - hi = Math.imul(ah2, bh0); - lo = (lo + Math.imul(al1, bl1)) | 0; - mid = (mid + Math.imul(al1, bh1)) | 0; - mid = (mid + Math.imul(ah1, bl1)) | 0; - hi = (hi + Math.imul(ah1, bh1)) | 0; - lo = (lo + Math.imul(al0, bl2)) | 0; - mid = (mid + Math.imul(al0, bh2)) | 0; - mid = (mid + Math.imul(ah0, bl2)) | 0; - hi = (hi + Math.imul(ah0, bh2)) | 0; - var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0; - w2 &= 0x3ffffff; - /* k = 3 */ - lo = Math.imul(al3, bl0); - mid = Math.imul(al3, bh0); - mid = (mid + Math.imul(ah3, bl0)) | 0; - hi = Math.imul(ah3, bh0); - lo = (lo + Math.imul(al2, bl1)) | 0; - mid = (mid + Math.imul(al2, bh1)) | 0; - mid = (mid + Math.imul(ah2, bl1)) | 0; - hi = (hi + Math.imul(ah2, bh1)) | 0; - lo = (lo + Math.imul(al1, bl2)) | 0; - mid = (mid + Math.imul(al1, bh2)) | 0; - mid = (mid + Math.imul(ah1, bl2)) | 0; - hi = (hi + Math.imul(ah1, bh2)) | 0; - lo = (lo + Math.imul(al0, bl3)) | 0; - mid = (mid + Math.imul(al0, bh3)) | 0; - mid = (mid + Math.imul(ah0, bl3)) | 0; - hi = (hi + Math.imul(ah0, bh3)) | 0; - var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0; - w3 &= 0x3ffffff; - /* k = 4 */ - lo = Math.imul(al4, bl0); - mid = Math.imul(al4, bh0); - mid = (mid + Math.imul(ah4, bl0)) | 0; - hi = Math.imul(ah4, bh0); - lo = (lo + Math.imul(al3, bl1)) | 0; - mid = (mid + Math.imul(al3, bh1)) | 0; - mid = (mid + Math.imul(ah3, bl1)) | 0; - hi = (hi + Math.imul(ah3, bh1)) | 0; - lo = (lo + Math.imul(al2, bl2)) | 0; - mid = (mid + Math.imul(al2, bh2)) | 0; - mid = (mid + Math.imul(ah2, bl2)) | 0; - hi = (hi + Math.imul(ah2, bh2)) | 0; - lo = (lo + Math.imul(al1, bl3)) | 0; - mid = (mid + Math.imul(al1, bh3)) | 0; - mid = (mid + Math.imul(ah1, bl3)) | 0; - hi = (hi + Math.imul(ah1, bh3)) | 0; - lo = (lo + Math.imul(al0, bl4)) | 0; - mid = (mid + Math.imul(al0, bh4)) | 0; - mid = (mid + Math.imul(ah0, bl4)) | 0; - hi = (hi + Math.imul(ah0, bh4)) | 0; - var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0; - w4 &= 0x3ffffff; - /* k = 5 */ - lo = Math.imul(al5, bl0); - mid = Math.imul(al5, bh0); - mid = (mid + Math.imul(ah5, bl0)) | 0; - hi = Math.imul(ah5, bh0); - lo = (lo + Math.imul(al4, bl1)) | 0; - mid = (mid + Math.imul(al4, bh1)) | 0; - mid = (mid + Math.imul(ah4, bl1)) | 0; - hi = (hi + Math.imul(ah4, bh1)) | 0; - lo = (lo + Math.imul(al3, bl2)) | 0; - mid = (mid + Math.imul(al3, bh2)) | 0; - mid = (mid + Math.imul(ah3, bl2)) | 0; - hi = (hi + Math.imul(ah3, bh2)) | 0; - lo = (lo + Math.imul(al2, bl3)) | 0; - mid = (mid + Math.imul(al2, bh3)) | 0; - mid = (mid + Math.imul(ah2, bl3)) | 0; - hi = (hi + Math.imul(ah2, bh3)) | 0; - lo = (lo + Math.imul(al1, bl4)) | 0; - mid = (mid + Math.imul(al1, bh4)) | 0; - mid = (mid + Math.imul(ah1, bl4)) | 0; - hi = (hi + Math.imul(ah1, bh4)) | 0; - lo = (lo + Math.imul(al0, bl5)) | 0; - mid = (mid + Math.imul(al0, bh5)) | 0; - mid = (mid + Math.imul(ah0, bl5)) | 0; - hi = (hi + Math.imul(ah0, bh5)) | 0; - var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0; - w5 &= 0x3ffffff; - /* k = 6 */ - lo = Math.imul(al6, bl0); - mid = Math.imul(al6, bh0); - mid = (mid + Math.imul(ah6, bl0)) | 0; - hi = Math.imul(ah6, bh0); - lo = (lo + Math.imul(al5, bl1)) | 0; - mid = (mid + Math.imul(al5, bh1)) | 0; - mid = (mid + Math.imul(ah5, bl1)) | 0; - hi = (hi + Math.imul(ah5, bh1)) | 0; - lo = (lo + Math.imul(al4, bl2)) | 0; - mid = (mid + Math.imul(al4, bh2)) | 0; - mid = (mid + Math.imul(ah4, bl2)) | 0; - hi = (hi + Math.imul(ah4, bh2)) | 0; - lo = (lo + Math.imul(al3, bl3)) | 0; - mid = (mid + Math.imul(al3, bh3)) | 0; - mid = (mid + Math.imul(ah3, bl3)) | 0; - hi = (hi + Math.imul(ah3, bh3)) | 0; - lo = (lo + Math.imul(al2, bl4)) | 0; - mid = (mid + Math.imul(al2, bh4)) | 0; - mid = (mid + Math.imul(ah2, bl4)) | 0; - hi = (hi + Math.imul(ah2, bh4)) | 0; - lo = (lo + Math.imul(al1, bl5)) | 0; - mid = (mid + Math.imul(al1, bh5)) | 0; - mid = (mid + Math.imul(ah1, bl5)) | 0; - hi = (hi + Math.imul(ah1, bh5)) | 0; - lo = (lo + Math.imul(al0, bl6)) | 0; - mid = (mid + Math.imul(al0, bh6)) | 0; - mid = (mid + Math.imul(ah0, bl6)) | 0; - hi = (hi + Math.imul(ah0, bh6)) | 0; - var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0; - w6 &= 0x3ffffff; - /* k = 7 */ - lo = Math.imul(al7, bl0); - mid = Math.imul(al7, bh0); - mid = (mid + Math.imul(ah7, bl0)) | 0; - hi = Math.imul(ah7, bh0); - lo = (lo + Math.imul(al6, bl1)) | 0; - mid = (mid + Math.imul(al6, bh1)) | 0; - mid = (mid + Math.imul(ah6, bl1)) | 0; - hi = (hi + Math.imul(ah6, bh1)) | 0; - lo = (lo + Math.imul(al5, bl2)) | 0; - mid = (mid + Math.imul(al5, bh2)) | 0; - mid = (mid + Math.imul(ah5, bl2)) | 0; - hi = (hi + Math.imul(ah5, bh2)) | 0; - lo = (lo + Math.imul(al4, bl3)) | 0; - mid = (mid + Math.imul(al4, bh3)) | 0; - mid = (mid + Math.imul(ah4, bl3)) | 0; - hi = (hi + Math.imul(ah4, bh3)) | 0; - lo = (lo + Math.imul(al3, bl4)) | 0; - mid = (mid + Math.imul(al3, bh4)) | 0; - mid = (mid + Math.imul(ah3, bl4)) | 0; - hi = (hi + Math.imul(ah3, bh4)) | 0; - lo = (lo + Math.imul(al2, bl5)) | 0; - mid = (mid + Math.imul(al2, bh5)) | 0; - mid = (mid + Math.imul(ah2, bl5)) | 0; - hi = (hi + Math.imul(ah2, bh5)) | 0; - lo = (lo + Math.imul(al1, bl6)) | 0; - mid = (mid + Math.imul(al1, bh6)) | 0; - mid = (mid + Math.imul(ah1, bl6)) | 0; - hi = (hi + Math.imul(ah1, bh6)) | 0; - lo = (lo + Math.imul(al0, bl7)) | 0; - mid = (mid + Math.imul(al0, bh7)) | 0; - mid = (mid + Math.imul(ah0, bl7)) | 0; - hi = (hi + Math.imul(ah0, bh7)) | 0; - var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0; - w7 &= 0x3ffffff; - /* k = 8 */ - lo = Math.imul(al8, bl0); - mid = Math.imul(al8, bh0); - mid = (mid + Math.imul(ah8, bl0)) | 0; - hi = Math.imul(ah8, bh0); - lo = (lo + Math.imul(al7, bl1)) | 0; - mid = (mid + Math.imul(al7, bh1)) | 0; - mid = (mid + Math.imul(ah7, bl1)) | 0; - hi = (hi + Math.imul(ah7, bh1)) | 0; - lo = (lo + Math.imul(al6, bl2)) | 0; - mid = (mid + Math.imul(al6, bh2)) | 0; - mid = (mid + Math.imul(ah6, bl2)) | 0; - hi = (hi + Math.imul(ah6, bh2)) | 0; - lo = (lo + Math.imul(al5, bl3)) | 0; - mid = (mid + Math.imul(al5, bh3)) | 0; - mid = (mid + Math.imul(ah5, bl3)) | 0; - hi = (hi + Math.imul(ah5, bh3)) | 0; - lo = (lo + Math.imul(al4, bl4)) | 0; - mid = (mid + Math.imul(al4, bh4)) | 0; - mid = (mid + Math.imul(ah4, bl4)) | 0; - hi = (hi + Math.imul(ah4, bh4)) | 0; - lo = (lo + Math.imul(al3, bl5)) | 0; - mid = (mid + Math.imul(al3, bh5)) | 0; - mid = (mid + Math.imul(ah3, bl5)) | 0; - hi = (hi + Math.imul(ah3, bh5)) | 0; - lo = (lo + Math.imul(al2, bl6)) | 0; - mid = (mid + Math.imul(al2, bh6)) | 0; - mid = (mid + Math.imul(ah2, bl6)) | 0; - hi = (hi + Math.imul(ah2, bh6)) | 0; - lo = (lo + Math.imul(al1, bl7)) | 0; - mid = (mid + Math.imul(al1, bh7)) | 0; - mid = (mid + Math.imul(ah1, bl7)) | 0; - hi = (hi + Math.imul(ah1, bh7)) | 0; - lo = (lo + Math.imul(al0, bl8)) | 0; - mid = (mid + Math.imul(al0, bh8)) | 0; - mid = (mid + Math.imul(ah0, bl8)) | 0; - hi = (hi + Math.imul(ah0, bh8)) | 0; - var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0; - w8 &= 0x3ffffff; - /* k = 9 */ - lo = Math.imul(al9, bl0); - mid = Math.imul(al9, bh0); - mid = (mid + Math.imul(ah9, bl0)) | 0; - hi = Math.imul(ah9, bh0); - lo = (lo + Math.imul(al8, bl1)) | 0; - mid = (mid + Math.imul(al8, bh1)) | 0; - mid = (mid + Math.imul(ah8, bl1)) | 0; - hi = (hi + Math.imul(ah8, bh1)) | 0; - lo = (lo + Math.imul(al7, bl2)) | 0; - mid = (mid + Math.imul(al7, bh2)) | 0; - mid = (mid + Math.imul(ah7, bl2)) | 0; - hi = (hi + Math.imul(ah7, bh2)) | 0; - lo = (lo + Math.imul(al6, bl3)) | 0; - mid = (mid + Math.imul(al6, bh3)) | 0; - mid = (mid + Math.imul(ah6, bl3)) | 0; - hi = (hi + Math.imul(ah6, bh3)) | 0; - lo = (lo + Math.imul(al5, bl4)) | 0; - mid = (mid + Math.imul(al5, bh4)) | 0; - mid = (mid + Math.imul(ah5, bl4)) | 0; - hi = (hi + Math.imul(ah5, bh4)) | 0; - lo = (lo + Math.imul(al4, bl5)) | 0; - mid = (mid + Math.imul(al4, bh5)) | 0; - mid = (mid + Math.imul(ah4, bl5)) | 0; - hi = (hi + Math.imul(ah4, bh5)) | 0; - lo = (lo + Math.imul(al3, bl6)) | 0; - mid = (mid + Math.imul(al3, bh6)) | 0; - mid = (mid + Math.imul(ah3, bl6)) | 0; - hi = (hi + Math.imul(ah3, bh6)) | 0; - lo = (lo + Math.imul(al2, bl7)) | 0; - mid = (mid + Math.imul(al2, bh7)) | 0; - mid = (mid + Math.imul(ah2, bl7)) | 0; - hi = (hi + Math.imul(ah2, bh7)) | 0; - lo = (lo + Math.imul(al1, bl8)) | 0; - mid = (mid + Math.imul(al1, bh8)) | 0; - mid = (mid + Math.imul(ah1, bl8)) | 0; - hi = (hi + Math.imul(ah1, bh8)) | 0; - lo = (lo + Math.imul(al0, bl9)) | 0; - mid = (mid + Math.imul(al0, bh9)) | 0; - mid = (mid + Math.imul(ah0, bl9)) | 0; - hi = (hi + Math.imul(ah0, bh9)) | 0; - var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0; - w9 &= 0x3ffffff; - /* k = 10 */ - lo = Math.imul(al9, bl1); - mid = Math.imul(al9, bh1); - mid = (mid + Math.imul(ah9, bl1)) | 0; - hi = Math.imul(ah9, bh1); - lo = (lo + Math.imul(al8, bl2)) | 0; - mid = (mid + Math.imul(al8, bh2)) | 0; - mid = (mid + Math.imul(ah8, bl2)) | 0; - hi = (hi + Math.imul(ah8, bh2)) | 0; - lo = (lo + Math.imul(al7, bl3)) | 0; - mid = (mid + Math.imul(al7, bh3)) | 0; - mid = (mid + Math.imul(ah7, bl3)) | 0; - hi = (hi + Math.imul(ah7, bh3)) | 0; - lo = (lo + Math.imul(al6, bl4)) | 0; - mid = (mid + Math.imul(al6, bh4)) | 0; - mid = (mid + Math.imul(ah6, bl4)) | 0; - hi = (hi + Math.imul(ah6, bh4)) | 0; - lo = (lo + Math.imul(al5, bl5)) | 0; - mid = (mid + Math.imul(al5, bh5)) | 0; - mid = (mid + Math.imul(ah5, bl5)) | 0; - hi = (hi + Math.imul(ah5, bh5)) | 0; - lo = (lo + Math.imul(al4, bl6)) | 0; - mid = (mid + Math.imul(al4, bh6)) | 0; - mid = (mid + Math.imul(ah4, bl6)) | 0; - hi = (hi + Math.imul(ah4, bh6)) | 0; - lo = (lo + Math.imul(al3, bl7)) | 0; - mid = (mid + Math.imul(al3, bh7)) | 0; - mid = (mid + Math.imul(ah3, bl7)) | 0; - hi = (hi + Math.imul(ah3, bh7)) | 0; - lo = (lo + Math.imul(al2, bl8)) | 0; - mid = (mid + Math.imul(al2, bh8)) | 0; - mid = (mid + Math.imul(ah2, bl8)) | 0; - hi = (hi + Math.imul(ah2, bh8)) | 0; - lo = (lo + Math.imul(al1, bl9)) | 0; - mid = (mid + Math.imul(al1, bh9)) | 0; - mid = (mid + Math.imul(ah1, bl9)) | 0; - hi = (hi + Math.imul(ah1, bh9)) | 0; - var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0; - w10 &= 0x3ffffff; - /* k = 11 */ - lo = Math.imul(al9, bl2); - mid = Math.imul(al9, bh2); - mid = (mid + Math.imul(ah9, bl2)) | 0; - hi = Math.imul(ah9, bh2); - lo = (lo + Math.imul(al8, bl3)) | 0; - mid = (mid + Math.imul(al8, bh3)) | 0; - mid = (mid + Math.imul(ah8, bl3)) | 0; - hi = (hi + Math.imul(ah8, bh3)) | 0; - lo = (lo + Math.imul(al7, bl4)) | 0; - mid = (mid + Math.imul(al7, bh4)) | 0; - mid = (mid + Math.imul(ah7, bl4)) | 0; - hi = (hi + Math.imul(ah7, bh4)) | 0; - lo = (lo + Math.imul(al6, bl5)) | 0; - mid = (mid + Math.imul(al6, bh5)) | 0; - mid = (mid + Math.imul(ah6, bl5)) | 0; - hi = (hi + Math.imul(ah6, bh5)) | 0; - lo = (lo + Math.imul(al5, bl6)) | 0; - mid = (mid + Math.imul(al5, bh6)) | 0; - mid = (mid + Math.imul(ah5, bl6)) | 0; - hi = (hi + Math.imul(ah5, bh6)) | 0; - lo = (lo + Math.imul(al4, bl7)) | 0; - mid = (mid + Math.imul(al4, bh7)) | 0; - mid = (mid + Math.imul(ah4, bl7)) | 0; - hi = (hi + Math.imul(ah4, bh7)) | 0; - lo = (lo + Math.imul(al3, bl8)) | 0; - mid = (mid + Math.imul(al3, bh8)) | 0; - mid = (mid + Math.imul(ah3, bl8)) | 0; - hi = (hi + Math.imul(ah3, bh8)) | 0; - lo = (lo + Math.imul(al2, bl9)) | 0; - mid = (mid + Math.imul(al2, bh9)) | 0; - mid = (mid + Math.imul(ah2, bl9)) | 0; - hi = (hi + Math.imul(ah2, bh9)) | 0; - var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0; - w11 &= 0x3ffffff; - /* k = 12 */ - lo = Math.imul(al9, bl3); - mid = Math.imul(al9, bh3); - mid = (mid + Math.imul(ah9, bl3)) | 0; - hi = Math.imul(ah9, bh3); - lo = (lo + Math.imul(al8, bl4)) | 0; - mid = (mid + Math.imul(al8, bh4)) | 0; - mid = (mid + Math.imul(ah8, bl4)) | 0; - hi = (hi + Math.imul(ah8, bh4)) | 0; - lo = (lo + Math.imul(al7, bl5)) | 0; - mid = (mid + Math.imul(al7, bh5)) | 0; - mid = (mid + Math.imul(ah7, bl5)) | 0; - hi = (hi + Math.imul(ah7, bh5)) | 0; - lo = (lo + Math.imul(al6, bl6)) | 0; - mid = (mid + Math.imul(al6, bh6)) | 0; - mid = (mid + Math.imul(ah6, bl6)) | 0; - hi = (hi + Math.imul(ah6, bh6)) | 0; - lo = (lo + Math.imul(al5, bl7)) | 0; - mid = (mid + Math.imul(al5, bh7)) | 0; - mid = (mid + Math.imul(ah5, bl7)) | 0; - hi = (hi + Math.imul(ah5, bh7)) | 0; - lo = (lo + Math.imul(al4, bl8)) | 0; - mid = (mid + Math.imul(al4, bh8)) | 0; - mid = (mid + Math.imul(ah4, bl8)) | 0; - hi = (hi + Math.imul(ah4, bh8)) | 0; - lo = (lo + Math.imul(al3, bl9)) | 0; - mid = (mid + Math.imul(al3, bh9)) | 0; - mid = (mid + Math.imul(ah3, bl9)) | 0; - hi = (hi + Math.imul(ah3, bh9)) | 0; - var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0; - w12 &= 0x3ffffff; - /* k = 13 */ - lo = Math.imul(al9, bl4); - mid = Math.imul(al9, bh4); - mid = (mid + Math.imul(ah9, bl4)) | 0; - hi = Math.imul(ah9, bh4); - lo = (lo + Math.imul(al8, bl5)) | 0; - mid = (mid + Math.imul(al8, bh5)) | 0; - mid = (mid + Math.imul(ah8, bl5)) | 0; - hi = (hi + Math.imul(ah8, bh5)) | 0; - lo = (lo + Math.imul(al7, bl6)) | 0; - mid = (mid + Math.imul(al7, bh6)) | 0; - mid = (mid + Math.imul(ah7, bl6)) | 0; - hi = (hi + Math.imul(ah7, bh6)) | 0; - lo = (lo + Math.imul(al6, bl7)) | 0; - mid = (mid + Math.imul(al6, bh7)) | 0; - mid = (mid + Math.imul(ah6, bl7)) | 0; - hi = (hi + Math.imul(ah6, bh7)) | 0; - lo = (lo + Math.imul(al5, bl8)) | 0; - mid = (mid + Math.imul(al5, bh8)) | 0; - mid = (mid + Math.imul(ah5, bl8)) | 0; - hi = (hi + Math.imul(ah5, bh8)) | 0; - lo = (lo + Math.imul(al4, bl9)) | 0; - mid = (mid + Math.imul(al4, bh9)) | 0; - mid = (mid + Math.imul(ah4, bl9)) | 0; - hi = (hi + Math.imul(ah4, bh9)) | 0; - var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0; - w13 &= 0x3ffffff; - /* k = 14 */ - lo = Math.imul(al9, bl5); - mid = Math.imul(al9, bh5); - mid = (mid + Math.imul(ah9, bl5)) | 0; - hi = Math.imul(ah9, bh5); - lo = (lo + Math.imul(al8, bl6)) | 0; - mid = (mid + Math.imul(al8, bh6)) | 0; - mid = (mid + Math.imul(ah8, bl6)) | 0; - hi = (hi + Math.imul(ah8, bh6)) | 0; - lo = (lo + Math.imul(al7, bl7)) | 0; - mid = (mid + Math.imul(al7, bh7)) | 0; - mid = (mid + Math.imul(ah7, bl7)) | 0; - hi = (hi + Math.imul(ah7, bh7)) | 0; - lo = (lo + Math.imul(al6, bl8)) | 0; - mid = (mid + Math.imul(al6, bh8)) | 0; - mid = (mid + Math.imul(ah6, bl8)) | 0; - hi = (hi + Math.imul(ah6, bh8)) | 0; - lo = (lo + Math.imul(al5, bl9)) | 0; - mid = (mid + Math.imul(al5, bh9)) | 0; - mid = (mid + Math.imul(ah5, bl9)) | 0; - hi = (hi + Math.imul(ah5, bh9)) | 0; - var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0; - w14 &= 0x3ffffff; - /* k = 15 */ - lo = Math.imul(al9, bl6); - mid = Math.imul(al9, bh6); - mid = (mid + Math.imul(ah9, bl6)) | 0; - hi = Math.imul(ah9, bh6); - lo = (lo + Math.imul(al8, bl7)) | 0; - mid = (mid + Math.imul(al8, bh7)) | 0; - mid = (mid + Math.imul(ah8, bl7)) | 0; - hi = (hi + Math.imul(ah8, bh7)) | 0; - lo = (lo + Math.imul(al7, bl8)) | 0; - mid = (mid + Math.imul(al7, bh8)) | 0; - mid = (mid + Math.imul(ah7, bl8)) | 0; - hi = (hi + Math.imul(ah7, bh8)) | 0; - lo = (lo + Math.imul(al6, bl9)) | 0; - mid = (mid + Math.imul(al6, bh9)) | 0; - mid = (mid + Math.imul(ah6, bl9)) | 0; - hi = (hi + Math.imul(ah6, bh9)) | 0; - var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0; - w15 &= 0x3ffffff; - /* k = 16 */ - lo = Math.imul(al9, bl7); - mid = Math.imul(al9, bh7); - mid = (mid + Math.imul(ah9, bl7)) | 0; - hi = Math.imul(ah9, bh7); - lo = (lo + Math.imul(al8, bl8)) | 0; - mid = (mid + Math.imul(al8, bh8)) | 0; - mid = (mid + Math.imul(ah8, bl8)) | 0; - hi = (hi + Math.imul(ah8, bh8)) | 0; - lo = (lo + Math.imul(al7, bl9)) | 0; - mid = (mid + Math.imul(al7, bh9)) | 0; - mid = (mid + Math.imul(ah7, bl9)) | 0; - hi = (hi + Math.imul(ah7, bh9)) | 0; - var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0; - w16 &= 0x3ffffff; - /* k = 17 */ - lo = Math.imul(al9, bl8); - mid = Math.imul(al9, bh8); - mid = (mid + Math.imul(ah9, bl8)) | 0; - hi = Math.imul(ah9, bh8); - lo = (lo + Math.imul(al8, bl9)) | 0; - mid = (mid + Math.imul(al8, bh9)) | 0; - mid = (mid + Math.imul(ah8, bl9)) | 0; - hi = (hi + Math.imul(ah8, bh9)) | 0; - var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0; - w17 &= 0x3ffffff; - /* k = 18 */ - lo = Math.imul(al9, bl9); - mid = Math.imul(al9, bh9); - mid = (mid + Math.imul(ah9, bl9)) | 0; - hi = Math.imul(ah9, bh9); - var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0; - c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0; - w18 &= 0x3ffffff; - o[0] = w0; - o[1] = w1; - o[2] = w2; - o[3] = w3; - o[4] = w4; - o[5] = w5; - o[6] = w6; - o[7] = w7; - o[8] = w8; - o[9] = w9; - o[10] = w10; - o[11] = w11; - o[12] = w12; - o[13] = w13; - o[14] = w14; - o[15] = w15; - o[16] = w16; - o[17] = w17; - o[18] = w18; - if (c !== 0) { - o[19] = c; - out.length++; - } - return out; - }; - - // Polyfill comb - if (!Math.imul) { - comb10MulTo = smallMulTo; - } - - function bigMulTo (self, num, out) { - out.negative = num.negative ^ self.negative; - out.length = self.length + num.length; - - var carry = 0; - var hncarry = 0; - for (var k = 0; k < out.length - 1; k++) { - // Sum all words with the same `i + j = k` and accumulate `ncarry`, - // note that ncarry could be >= 0x3ffffff - var ncarry = hncarry; - hncarry = 0; - var rword = carry & 0x3ffffff; - var maxJ = Math.min(k, num.length - 1); - for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) { - var i = k - j; - var a = self.words[i] | 0; - var b = num.words[j] | 0; - var r = a * b; - - var lo = r & 0x3ffffff; - ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0; - lo = (lo + rword) | 0; - rword = lo & 0x3ffffff; - ncarry = (ncarry + (lo >>> 26)) | 0; - - hncarry += ncarry >>> 26; - ncarry &= 0x3ffffff; - } - out.words[k] = rword; - carry = ncarry; - ncarry = hncarry; - } - if (carry !== 0) { - out.words[k] = carry; - } else { - out.length--; - } - - return out.strip(); - } - - function jumboMulTo (self, num, out) { - var fftm = new FFTM(); - return fftm.mulp(self, num, out); - } - - BN.prototype.mulTo = function mulTo (num, out) { - var res; - var len = this.length + num.length; - if (this.length === 10 && num.length === 10) { - res = comb10MulTo(this, num, out); - } else if (len < 63) { - res = smallMulTo(this, num, out); - } else if (len < 1024) { - res = bigMulTo(this, num, out); - } else { - res = jumboMulTo(this, num, out); - } - - return res; - }; - - // Cooley-Tukey algorithm for FFT - // slightly revisited to rely on looping instead of recursion - - function FFTM (x, y) { - this.x = x; - this.y = y; - } - - FFTM.prototype.makeRBT = function makeRBT (N) { - var t = new Array(N); - var l = BN.prototype._countBits(N) - 1; - for (var i = 0; i < N; i++) { - t[i] = this.revBin(i, l, N); - } - - return t; - }; - - // Returns binary-reversed representation of `x` - FFTM.prototype.revBin = function revBin (x, l, N) { - if (x === 0 || x === N - 1) return x; - - var rb = 0; - for (var i = 0; i < l; i++) { - rb |= (x & 1) << (l - i - 1); - x >>= 1; - } - - return rb; - }; - - // Performs "tweedling" phase, therefore 'emulating' - // behaviour of the recursive algorithm - FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) { - for (var i = 0; i < N; i++) { - rtws[i] = rws[rbt[i]]; - itws[i] = iws[rbt[i]]; - } - }; - - FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) { - this.permute(rbt, rws, iws, rtws, itws, N); - - for (var s = 1; s < N; s <<= 1) { - var l = s << 1; - - var rtwdf = Math.cos(2 * Math.PI / l); - var itwdf = Math.sin(2 * Math.PI / l); - - for (var p = 0; p < N; p += l) { - var rtwdf_ = rtwdf; - var itwdf_ = itwdf; - - for (var j = 0; j < s; j++) { - var re = rtws[p + j]; - var ie = itws[p + j]; - - var ro = rtws[p + j + s]; - var io = itws[p + j + s]; - - var rx = rtwdf_ * ro - itwdf_ * io; - - io = rtwdf_ * io + itwdf_ * ro; - ro = rx; - - rtws[p + j] = re + ro; - itws[p + j] = ie + io; - - rtws[p + j + s] = re - ro; - itws[p + j + s] = ie - io; - - /* jshint maxdepth : false */ - if (j !== l) { - rx = rtwdf * rtwdf_ - itwdf * itwdf_; - - itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_; - rtwdf_ = rx; - } - } - } - } - }; - - FFTM.prototype.guessLen13b = function guessLen13b (n, m) { - var N = Math.max(m, n) | 1; - var odd = N & 1; - var i = 0; - for (N = N / 2 | 0; N; N = N >>> 1) { - i++; - } - - return 1 << i + 1 + odd; - }; - - FFTM.prototype.conjugate = function conjugate (rws, iws, N) { - if (N <= 1) return; - - for (var i = 0; i < N / 2; i++) { - var t = rws[i]; - - rws[i] = rws[N - i - 1]; - rws[N - i - 1] = t; - - t = iws[i]; - - iws[i] = -iws[N - i - 1]; - iws[N - i - 1] = -t; - } - }; - - FFTM.prototype.normalize13b = function normalize13b (ws, N) { - var carry = 0; - for (var i = 0; i < N / 2; i++) { - var w = Math.round(ws[2 * i + 1] / N) * 0x2000 + - Math.round(ws[2 * i] / N) + - carry; - - ws[i] = w & 0x3ffffff; - - if (w < 0x4000000) { - carry = 0; - } else { - carry = w / 0x4000000 | 0; - } - } - - return ws; - }; - - FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) { - var carry = 0; - for (var i = 0; i < len; i++) { - carry = carry + (ws[i] | 0); - - rws[2 * i] = carry & 0x1fff; carry = carry >>> 13; - rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13; - } - - // Pad with zeroes - for (i = 2 * len; i < N; ++i) { - rws[i] = 0; - } - - assert(carry === 0); - assert((carry & ~0x1fff) === 0); - }; - - FFTM.prototype.stub = function stub (N) { - var ph = new Array(N); - for (var i = 0; i < N; i++) { - ph[i] = 0; - } - - return ph; - }; - - FFTM.prototype.mulp = function mulp (x, y, out) { - var N = 2 * this.guessLen13b(x.length, y.length); - - var rbt = this.makeRBT(N); - - var _ = this.stub(N); - - var rws = new Array(N); - var rwst = new Array(N); - var iwst = new Array(N); - - var nrws = new Array(N); - var nrwst = new Array(N); - var niwst = new Array(N); - - var rmws = out.words; - rmws.length = N; - - this.convert13b(x.words, x.length, rws, N); - this.convert13b(y.words, y.length, nrws, N); - - this.transform(rws, _, rwst, iwst, N, rbt); - this.transform(nrws, _, nrwst, niwst, N, rbt); - - for (var i = 0; i < N; i++) { - var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i]; - iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i]; - rwst[i] = rx; - } - - this.conjugate(rwst, iwst, N); - this.transform(rwst, iwst, rmws, _, N, rbt); - this.conjugate(rmws, _, N); - this.normalize13b(rmws, N); - - out.negative = x.negative ^ y.negative; - out.length = x.length + y.length; - return out.strip(); - }; - - // Multiply `this` by `num` - BN.prototype.mul = function mul (num) { - var out = new BN(null); - out.words = new Array(this.length + num.length); - return this.mulTo(num, out); - }; - - // Multiply employing FFT - BN.prototype.mulf = function mulf (num) { - var out = new BN(null); - out.words = new Array(this.length + num.length); - return jumboMulTo(this, num, out); - }; - - // In-place Multiplication - BN.prototype.imul = function imul (num) { - return this.clone().mulTo(num, this); - }; - - BN.prototype.imuln = function imuln (num) { - assert(typeof num === 'number'); - assert(num < 0x4000000); - - // Carry - var carry = 0; - for (var i = 0; i < this.length; i++) { - var w = (this.words[i] | 0) * num; - var lo = (w & 0x3ffffff) + (carry & 0x3ffffff); - carry >>= 26; - carry += (w / 0x4000000) | 0; - // NOTE: lo is 27bit maximum - carry += lo >>> 26; - this.words[i] = lo & 0x3ffffff; - } - - if (carry !== 0) { - this.words[i] = carry; - this.length++; - } - - return this; - }; - - BN.prototype.muln = function muln (num) { - return this.clone().imuln(num); - }; - - // `this` * `this` - BN.prototype.sqr = function sqr () { - return this.mul(this); - }; - - // `this` * `this` in-place - BN.prototype.isqr = function isqr () { - return this.imul(this.clone()); - }; - - // Math.pow(`this`, `num`) - BN.prototype.pow = function pow (num) { - var w = toBitArray(num); - if (w.length === 0) return new BN(1); - - // Skip leading zeroes - var res = this; - for (var i = 0; i < w.length; i++, res = res.sqr()) { - if (w[i] !== 0) break; - } - - if (++i < w.length) { - for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) { - if (w[i] === 0) continue; - - res = res.mul(q); - } - } - - return res; - }; - - // Shift-left in-place - BN.prototype.iushln = function iushln (bits) { - assert(typeof bits === 'number' && bits >= 0); - var r = bits % 26; - var s = (bits - r) / 26; - var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r); - var i; - - if (r !== 0) { - var carry = 0; - - for (i = 0; i < this.length; i++) { - var newCarry = this.words[i] & carryMask; - var c = ((this.words[i] | 0) - newCarry) << r; - this.words[i] = c | carry; - carry = newCarry >>> (26 - r); - } - - if (carry) { - this.words[i] = carry; - this.length++; - } - } - - if (s !== 0) { - for (i = this.length - 1; i >= 0; i--) { - this.words[i + s] = this.words[i]; - } - - for (i = 0; i < s; i++) { - this.words[i] = 0; - } - - this.length += s; - } - - return this.strip(); - }; - - BN.prototype.ishln = function ishln (bits) { - // TODO(indutny): implement me - assert(this.negative === 0); - return this.iushln(bits); - }; - - // Shift-right in-place - // NOTE: `hint` is a lowest bit before trailing zeroes - // NOTE: if `extended` is present - it will be filled with destroyed bits - BN.prototype.iushrn = function iushrn (bits, hint, extended) { - assert(typeof bits === 'number' && bits >= 0); - var h; - if (hint) { - h = (hint - (hint % 26)) / 26; - } else { - h = 0; - } - - var r = bits % 26; - var s = Math.min((bits - r) / 26, this.length); - var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r); - var maskedWords = extended; - - h -= s; - h = Math.max(0, h); - - // Extended mode, copy masked part - if (maskedWords) { - for (var i = 0; i < s; i++) { - maskedWords.words[i] = this.words[i]; - } - maskedWords.length = s; - } - - if (s === 0) { - // No-op, we should not move anything at all - } else if (this.length > s) { - this.length -= s; - for (i = 0; i < this.length; i++) { - this.words[i] = this.words[i + s]; - } - } else { - this.words[0] = 0; - this.length = 1; - } - - var carry = 0; - for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) { - var word = this.words[i] | 0; - this.words[i] = (carry << (26 - r)) | (word >>> r); - carry = word & mask; - } - - // Push carried bits as a mask - if (maskedWords && carry !== 0) { - maskedWords.words[maskedWords.length++] = carry; - } - - if (this.length === 0) { - this.words[0] = 0; - this.length = 1; - } - - return this.strip(); - }; - - BN.prototype.ishrn = function ishrn (bits, hint, extended) { - // TODO(indutny): implement me - assert(this.negative === 0); - return this.iushrn(bits, hint, extended); - }; - - // Shift-left - BN.prototype.shln = function shln (bits) { - return this.clone().ishln(bits); - }; - - BN.prototype.ushln = function ushln (bits) { - return this.clone().iushln(bits); - }; - - // Shift-right - BN.prototype.shrn = function shrn (bits) { - return this.clone().ishrn(bits); - }; - - BN.prototype.ushrn = function ushrn (bits) { - return this.clone().iushrn(bits); - }; - - // Test if n bit is set - BN.prototype.testn = function testn (bit) { - assert(typeof bit === 'number' && bit >= 0); - var r = bit % 26; - var s = (bit - r) / 26; - var q = 1 << r; - - // Fast case: bit is much higher than all existing words - if (this.length <= s) return false; - - // Check bit and return - var w = this.words[s]; - - return !!(w & q); - }; - - // Return only lowers bits of number (in-place) - BN.prototype.imaskn = function imaskn (bits) { - assert(typeof bits === 'number' && bits >= 0); - var r = bits % 26; - var s = (bits - r) / 26; - - assert(this.negative === 0, 'imaskn works only with positive numbers'); - - if (this.length <= s) { - return this; - } - - if (r !== 0) { - s++; - } - this.length = Math.min(s, this.length); - - if (r !== 0) { - var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r); - this.words[this.length - 1] &= mask; - } - - return this.strip(); - }; - - // Return only lowers bits of number - BN.prototype.maskn = function maskn (bits) { - return this.clone().imaskn(bits); - }; - - // Add plain number `num` to `this` - BN.prototype.iaddn = function iaddn (num) { - assert(typeof num === 'number'); - assert(num < 0x4000000); - if (num < 0) return this.isubn(-num); - - // Possible sign change - if (this.negative !== 0) { - if (this.length === 1 && (this.words[0] | 0) < num) { - this.words[0] = num - (this.words[0] | 0); - this.negative = 0; - return this; - } - - this.negative = 0; - this.isubn(num); - this.negative = 1; - return this; - } - - // Add without checks - return this._iaddn(num); - }; - - BN.prototype._iaddn = function _iaddn (num) { - this.words[0] += num; - - // Carry - for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) { - this.words[i] -= 0x4000000; - if (i === this.length - 1) { - this.words[i + 1] = 1; - } else { - this.words[i + 1]++; - } - } - this.length = Math.max(this.length, i + 1); - - return this; - }; - - // Subtract plain number `num` from `this` - BN.prototype.isubn = function isubn (num) { - assert(typeof num === 'number'); - assert(num < 0x4000000); - if (num < 0) return this.iaddn(-num); - - if (this.negative !== 0) { - this.negative = 0; - this.iaddn(num); - this.negative = 1; - return this; - } - - this.words[0] -= num; - - if (this.length === 1 && this.words[0] < 0) { - this.words[0] = -this.words[0]; - this.negative = 1; - } else { - // Carry - for (var i = 0; i < this.length && this.words[i] < 0; i++) { - this.words[i] += 0x4000000; - this.words[i + 1] -= 1; - } - } - - return this.strip(); - }; - - BN.prototype.addn = function addn (num) { - return this.clone().iaddn(num); - }; - - BN.prototype.subn = function subn (num) { - return this.clone().isubn(num); - }; - - BN.prototype.iabs = function iabs () { - this.negative = 0; - - return this; - }; - - BN.prototype.abs = function abs () { - return this.clone().iabs(); - }; - - BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) { - var len = num.length + shift; - var i; - - this._expand(len); - - var w; - var carry = 0; - for (i = 0; i < num.length; i++) { - w = (this.words[i + shift] | 0) + carry; - var right = (num.words[i] | 0) * mul; - w -= right & 0x3ffffff; - carry = (w >> 26) - ((right / 0x4000000) | 0); - this.words[i + shift] = w & 0x3ffffff; - } - for (; i < this.length - shift; i++) { - w = (this.words[i + shift] | 0) + carry; - carry = w >> 26; - this.words[i + shift] = w & 0x3ffffff; - } - - if (carry === 0) return this.strip(); - - // Subtraction overflow - assert(carry === -1); - carry = 0; - for (i = 0; i < this.length; i++) { - w = -(this.words[i] | 0) + carry; - carry = w >> 26; - this.words[i] = w & 0x3ffffff; - } - this.negative = 1; - - return this.strip(); - }; - - BN.prototype._wordDiv = function _wordDiv (num, mode) { - var shift = this.length - num.length; - - var a = this.clone(); - var b = num; - - // Normalize - var bhi = b.words[b.length - 1] | 0; - var bhiBits = this._countBits(bhi); - shift = 26 - bhiBits; - if (shift !== 0) { - b = b.ushln(shift); - a.iushln(shift); - bhi = b.words[b.length - 1] | 0; - } - - // Initialize quotient - var m = a.length - b.length; - var q; - - if (mode !== 'mod') { - q = new BN(null); - q.length = m + 1; - q.words = new Array(q.length); - for (var i = 0; i < q.length; i++) { - q.words[i] = 0; - } - } - - var diff = a.clone()._ishlnsubmul(b, 1, m); - if (diff.negative === 0) { - a = diff; - if (q) { - q.words[m] = 1; - } - } - - for (var j = m - 1; j >= 0; j--) { - var qj = (a.words[b.length + j] | 0) * 0x4000000 + - (a.words[b.length + j - 1] | 0); - - // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max - // (0x7ffffff) - qj = Math.min((qj / bhi) | 0, 0x3ffffff); - - a._ishlnsubmul(b, qj, j); - while (a.negative !== 0) { - qj--; - a.negative = 0; - a._ishlnsubmul(b, 1, j); - if (!a.isZero()) { - a.negative ^= 1; - } - } - if (q) { - q.words[j] = qj; - } - } - if (q) { - q.strip(); - } - a.strip(); - - // Denormalize - if (mode !== 'div' && shift !== 0) { - a.iushrn(shift); - } - - return { - div: q || null, - mod: a - }; - }; - - // NOTE: 1) `mode` can be set to `mod` to request mod only, - // to `div` to request div only, or be absent to - // request both div & mod - // 2) `positive` is true if unsigned mod is requested - BN.prototype.divmod = function divmod (num, mode, positive) { - assert(!num.isZero()); - - if (this.isZero()) { - return { - div: new BN(0), - mod: new BN(0) - }; - } - - var div, mod, res; - if (this.negative !== 0 && num.negative === 0) { - res = this.neg().divmod(num, mode); - - if (mode !== 'mod') { - div = res.div.neg(); - } - - if (mode !== 'div') { - mod = res.mod.neg(); - if (positive && mod.negative !== 0) { - mod.iadd(num); - } - } - - return { - div: div, - mod: mod - }; - } - - if (this.negative === 0 && num.negative !== 0) { - res = this.divmod(num.neg(), mode); - - if (mode !== 'mod') { - div = res.div.neg(); - } - - return { - div: div, - mod: res.mod - }; - } - - if ((this.negative & num.negative) !== 0) { - res = this.neg().divmod(num.neg(), mode); - - if (mode !== 'div') { - mod = res.mod.neg(); - if (positive && mod.negative !== 0) { - mod.isub(num); - } - } - - return { - div: res.div, - mod: mod - }; - } - - // Both numbers are positive at this point - - // Strip both numbers to approximate shift value - if (num.length > this.length || this.cmp(num) < 0) { - return { - div: new BN(0), - mod: this - }; - } - - // Very short reduction - if (num.length === 1) { - if (mode === 'div') { - return { - div: this.divn(num.words[0]), - mod: null - }; - } - - if (mode === 'mod') { - return { - div: null, - mod: new BN(this.modn(num.words[0])) - }; - } - - return { - div: this.divn(num.words[0]), - mod: new BN(this.modn(num.words[0])) - }; - } - - return this._wordDiv(num, mode); - }; - - // Find `this` / `num` - BN.prototype.div = function div (num) { - return this.divmod(num, 'div', false).div; - }; - - // Find `this` % `num` - BN.prototype.mod = function mod (num) { - return this.divmod(num, 'mod', false).mod; - }; - - BN.prototype.umod = function umod (num) { - return this.divmod(num, 'mod', true).mod; - }; - - // Find Round(`this` / `num`) - BN.prototype.divRound = function divRound (num) { - var dm = this.divmod(num); - - // Fast case - exact division - if (dm.mod.isZero()) return dm.div; - - var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod; - - var half = num.ushrn(1); - var r2 = num.andln(1); - var cmp = mod.cmp(half); - - // Round down - if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div; - - // Round up - return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1); - }; - - BN.prototype.modn = function modn (num) { - assert(num <= 0x3ffffff); - var p = (1 << 26) % num; - - var acc = 0; - for (var i = this.length - 1; i >= 0; i--) { - acc = (p * acc + (this.words[i] | 0)) % num; - } - - return acc; - }; - - // In-place division by number - BN.prototype.idivn = function idivn (num) { - assert(num <= 0x3ffffff); - - var carry = 0; - for (var i = this.length - 1; i >= 0; i--) { - var w = (this.words[i] | 0) + carry * 0x4000000; - this.words[i] = (w / num) | 0; - carry = w % num; - } - - return this.strip(); - }; - - BN.prototype.divn = function divn (num) { - return this.clone().idivn(num); - }; - - BN.prototype.egcd = function egcd (p) { - assert(p.negative === 0); - assert(!p.isZero()); - - var x = this; - var y = p.clone(); - - if (x.negative !== 0) { - x = x.umod(p); - } else { - x = x.clone(); - } - - // A * x + B * y = x - var A = new BN(1); - var B = new BN(0); - - // C * x + D * y = y - var C = new BN(0); - var D = new BN(1); - - var g = 0; - - while (x.isEven() && y.isEven()) { - x.iushrn(1); - y.iushrn(1); - ++g; - } - - var yp = y.clone(); - var xp = x.clone(); - - while (!x.isZero()) { - for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1); - if (i > 0) { - x.iushrn(i); - while (i-- > 0) { - if (A.isOdd() || B.isOdd()) { - A.iadd(yp); - B.isub(xp); - } - - A.iushrn(1); - B.iushrn(1); - } - } - - for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1); - if (j > 0) { - y.iushrn(j); - while (j-- > 0) { - if (C.isOdd() || D.isOdd()) { - C.iadd(yp); - D.isub(xp); - } - - C.iushrn(1); - D.iushrn(1); - } - } - - if (x.cmp(y) >= 0) { - x.isub(y); - A.isub(C); - B.isub(D); - } else { - y.isub(x); - C.isub(A); - D.isub(B); - } - } - - return { - a: C, - b: D, - gcd: y.iushln(g) - }; - }; - - // This is reduced incarnation of the binary EEA - // above, designated to invert members of the - // _prime_ fields F(p) at a maximal speed - BN.prototype._invmp = function _invmp (p) { - assert(p.negative === 0); - assert(!p.isZero()); - - var a = this; - var b = p.clone(); - - if (a.negative !== 0) { - a = a.umod(p); - } else { - a = a.clone(); - } - - var x1 = new BN(1); - var x2 = new BN(0); - - var delta = b.clone(); - - while (a.cmpn(1) > 0 && b.cmpn(1) > 0) { - for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1); - if (i > 0) { - a.iushrn(i); - while (i-- > 0) { - if (x1.isOdd()) { - x1.iadd(delta); - } - - x1.iushrn(1); - } - } - - for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1); - if (j > 0) { - b.iushrn(j); - while (j-- > 0) { - if (x2.isOdd()) { - x2.iadd(delta); - } - - x2.iushrn(1); - } - } - - if (a.cmp(b) >= 0) { - a.isub(b); - x1.isub(x2); - } else { - b.isub(a); - x2.isub(x1); - } - } - - var res; - if (a.cmpn(1) === 0) { - res = x1; - } else { - res = x2; - } - - if (res.cmpn(0) < 0) { - res.iadd(p); - } - - return res; - }; - - BN.prototype.gcd = function gcd (num) { - if (this.isZero()) return num.abs(); - if (num.isZero()) return this.abs(); - - var a = this.clone(); - var b = num.clone(); - a.negative = 0; - b.negative = 0; - - // Remove common factor of two - for (var shift = 0; a.isEven() && b.isEven(); shift++) { - a.iushrn(1); - b.iushrn(1); - } - - do { - while (a.isEven()) { - a.iushrn(1); - } - while (b.isEven()) { - b.iushrn(1); - } - - var r = a.cmp(b); - if (r < 0) { - // Swap `a` and `b` to make `a` always bigger than `b` - var t = a; - a = b; - b = t; - } else if (r === 0 || b.cmpn(1) === 0) { - break; - } - - a.isub(b); - } while (true); - - return b.iushln(shift); - }; - - // Invert number in the field F(num) - BN.prototype.invm = function invm (num) { - return this.egcd(num).a.umod(num); - }; - - BN.prototype.isEven = function isEven () { - return (this.words[0] & 1) === 0; - }; - - BN.prototype.isOdd = function isOdd () { - return (this.words[0] & 1) === 1; - }; - - // And first word and num - BN.prototype.andln = function andln (num) { - return this.words[0] & num; - }; - - // Increment at the bit position in-line - BN.prototype.bincn = function bincn (bit) { - assert(typeof bit === 'number'); - var r = bit % 26; - var s = (bit - r) / 26; - var q = 1 << r; - - // Fast case: bit is much higher than all existing words - if (this.length <= s) { - this._expand(s + 1); - this.words[s] |= q; - return this; - } - - // Add bit and propagate, if needed - var carry = q; - for (var i = s; carry !== 0 && i < this.length; i++) { - var w = this.words[i] | 0; - w += carry; - carry = w >>> 26; - w &= 0x3ffffff; - this.words[i] = w; - } - if (carry !== 0) { - this.words[i] = carry; - this.length++; - } - return this; - }; - - BN.prototype.isZero = function isZero () { - return this.length === 1 && this.words[0] === 0; - }; - - BN.prototype.cmpn = function cmpn (num) { - var negative = num < 0; - - if (this.negative !== 0 && !negative) return -1; - if (this.negative === 0 && negative) return 1; - - this.strip(); - - var res; - if (this.length > 1) { - res = 1; - } else { - if (negative) { - num = -num; - } - - assert(num <= 0x3ffffff, 'Number is too big'); - - var w = this.words[0] | 0; - res = w === num ? 0 : w < num ? -1 : 1; - } - if (this.negative !== 0) return -res | 0; - return res; - }; - - // Compare two numbers and return: - // 1 - if `this` > `num` - // 0 - if `this` == `num` - // -1 - if `this` < `num` - BN.prototype.cmp = function cmp (num) { - if (this.negative !== 0 && num.negative === 0) return -1; - if (this.negative === 0 && num.negative !== 0) return 1; - - var res = this.ucmp(num); - if (this.negative !== 0) return -res | 0; - return res; - }; - - // Unsigned comparison - BN.prototype.ucmp = function ucmp (num) { - // At this point both numbers have the same sign - if (this.length > num.length) return 1; - if (this.length < num.length) return -1; - - var res = 0; - for (var i = this.length - 1; i >= 0; i--) { - var a = this.words[i] | 0; - var b = num.words[i] | 0; - - if (a === b) continue; - if (a < b) { - res = -1; - } else if (a > b) { - res = 1; - } - break; - } - return res; - }; - - BN.prototype.gtn = function gtn (num) { - return this.cmpn(num) === 1; - }; - - BN.prototype.gt = function gt (num) { - return this.cmp(num) === 1; - }; - - BN.prototype.gten = function gten (num) { - return this.cmpn(num) >= 0; - }; - - BN.prototype.gte = function gte (num) { - return this.cmp(num) >= 0; - }; - - BN.prototype.ltn = function ltn (num) { - return this.cmpn(num) === -1; - }; - - BN.prototype.lt = function lt (num) { - return this.cmp(num) === -1; - }; - - BN.prototype.lten = function lten (num) { - return this.cmpn(num) <= 0; - }; - - BN.prototype.lte = function lte (num) { - return this.cmp(num) <= 0; - }; - - BN.prototype.eqn = function eqn (num) { - return this.cmpn(num) === 0; - }; - - BN.prototype.eq = function eq (num) { - return this.cmp(num) === 0; - }; - - // - // A reduce context, could be using montgomery or something better, depending - // on the `m` itself. - // - BN.red = function red (num) { - return new Red(num); - }; - - BN.prototype.toRed = function toRed (ctx) { - assert(!this.red, 'Already a number in reduction context'); - assert(this.negative === 0, 'red works only with positives'); - return ctx.convertTo(this)._forceRed(ctx); - }; - - BN.prototype.fromRed = function fromRed () { - assert(this.red, 'fromRed works only with numbers in reduction context'); - return this.red.convertFrom(this); - }; - - BN.prototype._forceRed = function _forceRed (ctx) { - this.red = ctx; - return this; - }; - - BN.prototype.forceRed = function forceRed (ctx) { - assert(!this.red, 'Already a number in reduction context'); - return this._forceRed(ctx); - }; - - BN.prototype.redAdd = function redAdd (num) { - assert(this.red, 'redAdd works only with red numbers'); - return this.red.add(this, num); - }; - - BN.prototype.redIAdd = function redIAdd (num) { - assert(this.red, 'redIAdd works only with red numbers'); - return this.red.iadd(this, num); - }; - - BN.prototype.redSub = function redSub (num) { - assert(this.red, 'redSub works only with red numbers'); - return this.red.sub(this, num); - }; - - BN.prototype.redISub = function redISub (num) { - assert(this.red, 'redISub works only with red numbers'); - return this.red.isub(this, num); - }; - - BN.prototype.redShl = function redShl (num) { - assert(this.red, 'redShl works only with red numbers'); - return this.red.shl(this, num); - }; - - BN.prototype.redMul = function redMul (num) { - assert(this.red, 'redMul works only with red numbers'); - this.red._verify2(this, num); - return this.red.mul(this, num); - }; - - BN.prototype.redIMul = function redIMul (num) { - assert(this.red, 'redMul works only with red numbers'); - this.red._verify2(this, num); - return this.red.imul(this, num); - }; - - BN.prototype.redSqr = function redSqr () { - assert(this.red, 'redSqr works only with red numbers'); - this.red._verify1(this); - return this.red.sqr(this); - }; - - BN.prototype.redISqr = function redISqr () { - assert(this.red, 'redISqr works only with red numbers'); - this.red._verify1(this); - return this.red.isqr(this); - }; - - // Square root over p - BN.prototype.redSqrt = function redSqrt () { - assert(this.red, 'redSqrt works only with red numbers'); - this.red._verify1(this); - return this.red.sqrt(this); - }; - - BN.prototype.redInvm = function redInvm () { - assert(this.red, 'redInvm works only with red numbers'); - this.red._verify1(this); - return this.red.invm(this); - }; - - // Return negative clone of `this` % `red modulo` - BN.prototype.redNeg = function redNeg () { - assert(this.red, 'redNeg works only with red numbers'); - this.red._verify1(this); - return this.red.neg(this); - }; - - BN.prototype.redPow = function redPow (num) { - assert(this.red && !num.red, 'redPow(normalNum)'); - this.red._verify1(this); - return this.red.pow(this, num); - }; - - // Prime numbers with efficient reduction - var primes = { - k256: null, - p224: null, - p192: null, - p25519: null - }; - - // Pseudo-Mersenne prime - function MPrime (name, p) { - // P = 2 ^ N - K - this.name = name; - this.p = new BN(p, 16); - this.n = this.p.bitLength(); - this.k = new BN(1).iushln(this.n).isub(this.p); - - this.tmp = this._tmp(); - } - - MPrime.prototype._tmp = function _tmp () { - var tmp = new BN(null); - tmp.words = new Array(Math.ceil(this.n / 13)); - return tmp; - }; - - MPrime.prototype.ireduce = function ireduce (num) { - // Assumes that `num` is less than `P^2` - // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P) - var r = num; - var rlen; - - do { - this.split(r, this.tmp); - r = this.imulK(r); - r = r.iadd(this.tmp); - rlen = r.bitLength(); - } while (rlen > this.n); - - var cmp = rlen < this.n ? -1 : r.ucmp(this.p); - if (cmp === 0) { - r.words[0] = 0; - r.length = 1; - } else if (cmp > 0) { - r.isub(this.p); - } else { - if (r.strip !== undefined) { - // r is BN v4 instance - r.strip(); - } else { - // r is BN v5 instance - r._strip(); - } - } - - return r; - }; - - MPrime.prototype.split = function split (input, out) { - input.iushrn(this.n, 0, out); - }; - - MPrime.prototype.imulK = function imulK (num) { - return num.imul(this.k); - }; - - function K256 () { - MPrime.call( - this, - 'k256', - 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f'); - } - inherits(K256, MPrime); - - K256.prototype.split = function split (input, output) { - // 256 = 9 * 26 + 22 - var mask = 0x3fffff; - - var outLen = Math.min(input.length, 9); - for (var i = 0; i < outLen; i++) { - output.words[i] = input.words[i]; - } - output.length = outLen; - - if (input.length <= 9) { - input.words[0] = 0; - input.length = 1; - return; - } - - // Shift by 9 limbs - var prev = input.words[9]; - output.words[output.length++] = prev & mask; - - for (i = 10; i < input.length; i++) { - var next = input.words[i] | 0; - input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22); - prev = next; - } - prev >>>= 22; - input.words[i - 10] = prev; - if (prev === 0 && input.length > 10) { - input.length -= 10; - } else { - input.length -= 9; - } - }; - - K256.prototype.imulK = function imulK (num) { - // K = 0x1000003d1 = [ 0x40, 0x3d1 ] - num.words[num.length] = 0; - num.words[num.length + 1] = 0; - num.length += 2; - - // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390 - var lo = 0; - for (var i = 0; i < num.length; i++) { - var w = num.words[i] | 0; - lo += w * 0x3d1; - num.words[i] = lo & 0x3ffffff; - lo = w * 0x40 + ((lo / 0x4000000) | 0); - } - - // Fast length reduction - if (num.words[num.length - 1] === 0) { - num.length--; - if (num.words[num.length - 1] === 0) { - num.length--; - } - } - return num; - }; - - function P224 () { - MPrime.call( - this, - 'p224', - 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001'); - } - inherits(P224, MPrime); - - function P192 () { - MPrime.call( - this, - 'p192', - 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff'); - } - inherits(P192, MPrime); - - function P25519 () { - // 2 ^ 255 - 19 - MPrime.call( - this, - '25519', - '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed'); - } - inherits(P25519, MPrime); - - P25519.prototype.imulK = function imulK (num) { - // K = 0x13 - var carry = 0; - for (var i = 0; i < num.length; i++) { - var hi = (num.words[i] | 0) * 0x13 + carry; - var lo = hi & 0x3ffffff; - hi >>>= 26; - - num.words[i] = lo; - carry = hi; - } - if (carry !== 0) { - num.words[num.length++] = carry; - } - return num; - }; - - // Exported mostly for testing purposes, use plain name instead - BN._prime = function prime (name) { - // Cached version of prime - if (primes[name]) return primes[name]; - - var prime; - if (name === 'k256') { - prime = new K256(); - } else if (name === 'p224') { - prime = new P224(); - } else if (name === 'p192') { - prime = new P192(); - } else if (name === 'p25519') { - prime = new P25519(); - } else { - throw new Error('Unknown prime ' + name); - } - primes[name] = prime; - - return prime; - }; - - // - // Base reduction engine - // - function Red (m) { - if (typeof m === 'string') { - var prime = BN._prime(m); - this.m = prime.p; - this.prime = prime; - } else { - assert(m.gtn(1), 'modulus must be greater than 1'); - this.m = m; - this.prime = null; - } - } - - Red.prototype._verify1 = function _verify1 (a) { - assert(a.negative === 0, 'red works only with positives'); - assert(a.red, 'red works only with red numbers'); - }; - - Red.prototype._verify2 = function _verify2 (a, b) { - assert((a.negative | b.negative) === 0, 'red works only with positives'); - assert(a.red && a.red === b.red, - 'red works only with red numbers'); - }; - - Red.prototype.imod = function imod (a) { - if (this.prime) return this.prime.ireduce(a)._forceRed(this); - return a.umod(this.m)._forceRed(this); - }; - - Red.prototype.neg = function neg (a) { - if (a.isZero()) { - return a.clone(); - } - - return this.m.sub(a)._forceRed(this); - }; - - Red.prototype.add = function add (a, b) { - this._verify2(a, b); - - var res = a.add(b); - if (res.cmp(this.m) >= 0) { - res.isub(this.m); - } - return res._forceRed(this); - }; - - Red.prototype.iadd = function iadd (a, b) { - this._verify2(a, b); - - var res = a.iadd(b); - if (res.cmp(this.m) >= 0) { - res.isub(this.m); - } - return res; - }; - - Red.prototype.sub = function sub (a, b) { - this._verify2(a, b); - - var res = a.sub(b); - if (res.cmpn(0) < 0) { - res.iadd(this.m); - } - return res._forceRed(this); - }; - - Red.prototype.isub = function isub (a, b) { - this._verify2(a, b); - - var res = a.isub(b); - if (res.cmpn(0) < 0) { - res.iadd(this.m); - } - return res; - }; - - Red.prototype.shl = function shl (a, num) { - this._verify1(a); - return this.imod(a.ushln(num)); - }; - - Red.prototype.imul = function imul (a, b) { - this._verify2(a, b); - return this.imod(a.imul(b)); - }; - - Red.prototype.mul = function mul (a, b) { - this._verify2(a, b); - return this.imod(a.mul(b)); - }; - - Red.prototype.isqr = function isqr (a) { - return this.imul(a, a.clone()); - }; - - Red.prototype.sqr = function sqr (a) { - return this.mul(a, a); - }; - - Red.prototype.sqrt = function sqrt (a) { - if (a.isZero()) return a.clone(); - - var mod3 = this.m.andln(3); - assert(mod3 % 2 === 1); - - // Fast case - if (mod3 === 3) { - var pow = this.m.add(new BN(1)).iushrn(2); - return this.pow(a, pow); - } - - // Tonelli-Shanks algorithm (Totally unoptimized and slow) - // - // Find Q and S, that Q * 2 ^ S = (P - 1) - var q = this.m.subn(1); - var s = 0; - while (!q.isZero() && q.andln(1) === 0) { - s++; - q.iushrn(1); - } - assert(!q.isZero()); - - var one = new BN(1).toRed(this); - var nOne = one.redNeg(); - - // Find quadratic non-residue - // NOTE: Max is such because of generalized Riemann hypothesis. - var lpow = this.m.subn(1).iushrn(1); - var z = this.m.bitLength(); - z = new BN(2 * z * z).toRed(this); - - while (this.pow(z, lpow).cmp(nOne) !== 0) { - z.redIAdd(nOne); - } - - var c = this.pow(z, q); - var r = this.pow(a, q.addn(1).iushrn(1)); - var t = this.pow(a, q); - var m = s; - while (t.cmp(one) !== 0) { - var tmp = t; - for (var i = 0; tmp.cmp(one) !== 0; i++) { - tmp = tmp.redSqr(); - } - assert(i < m); - var b = this.pow(c, new BN(1).iushln(m - i - 1)); - - r = r.redMul(b); - c = b.redSqr(); - t = t.redMul(c); - m = i; - } - - return r; - }; - - Red.prototype.invm = function invm (a) { - var inv = a._invmp(this.m); - if (inv.negative !== 0) { - inv.negative = 0; - return this.imod(inv).redNeg(); - } else { - return this.imod(inv); - } - }; - - Red.prototype.pow = function pow (a, num) { - if (num.isZero()) return new BN(1).toRed(this); - if (num.cmpn(1) === 0) return a.clone(); - - var windowSize = 4; - var wnd = new Array(1 << windowSize); - wnd[0] = new BN(1).toRed(this); - wnd[1] = a; - for (var i = 2; i < wnd.length; i++) { - wnd[i] = this.mul(wnd[i - 1], a); - } - - var res = wnd[0]; - var current = 0; - var currentLen = 0; - var start = num.bitLength() % 26; - if (start === 0) { - start = 26; - } - - for (i = num.length - 1; i >= 0; i--) { - var word = num.words[i]; - for (var j = start - 1; j >= 0; j--) { - var bit = (word >> j) & 1; - if (res !== wnd[0]) { - res = this.sqr(res); - } - - if (bit === 0 && current === 0) { - currentLen = 0; - continue; - } - - current <<= 1; - current |= bit; - currentLen++; - if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue; - - res = this.mul(res, wnd[current]); - currentLen = 0; - current = 0; - } - start = 26; - } - - return res; - }; - - Red.prototype.convertTo = function convertTo (num) { - var r = num.umod(this.m); - - return r === num ? r.clone() : r; - }; - - Red.prototype.convertFrom = function convertFrom (num) { - var res = num.clone(); - res.red = null; - return res; - }; - - // - // Montgomery method engine - // - - BN.mont = function mont (num) { - return new Mont(num); - }; - - function Mont (m) { - Red.call(this, m); - - this.shift = this.m.bitLength(); - if (this.shift % 26 !== 0) { - this.shift += 26 - (this.shift % 26); - } - - this.r = new BN(1).iushln(this.shift); - this.r2 = this.imod(this.r.sqr()); - this.rinv = this.r._invmp(this.m); - - this.minv = this.rinv.mul(this.r).isubn(1).div(this.m); - this.minv = this.minv.umod(this.r); - this.minv = this.r.sub(this.minv); - } - inherits(Mont, Red); - - Mont.prototype.convertTo = function convertTo (num) { - return this.imod(num.ushln(this.shift)); - }; - - Mont.prototype.convertFrom = function convertFrom (num) { - var r = this.imod(num.mul(this.rinv)); - r.red = null; - return r; - }; - - Mont.prototype.imul = function imul (a, b) { - if (a.isZero() || b.isZero()) { - a.words[0] = 0; - a.length = 1; - return a; - } - - var t = a.imul(b); - var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m); - var u = t.isub(c).iushrn(this.shift); - var res = u; - - if (u.cmp(this.m) >= 0) { - res = u.isub(this.m); - } else if (u.cmpn(0) < 0) { - res = u.iadd(this.m); - } - - return res._forceRed(this); - }; - - Mont.prototype.mul = function mul (a, b) { - if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this); - - var t = a.mul(b); - var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m); - var u = t.isub(c).iushrn(this.shift); - var res = u; - if (u.cmp(this.m) >= 0) { - res = u.isub(this.m); - } else if (u.cmpn(0) < 0) { - res = u.iadd(this.m); - } - - return res._forceRed(this); - }; - - Mont.prototype.invm = function invm (a) { - // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R - var res = this.imod(a._invmp(this.m).mul(this.r2)); - return res._forceRed(this); - }; -})(typeof module === 'undefined' || module, this); diff --git a/dist/node_modules/bn.js/package.json b/dist/node_modules/bn.js/package.json deleted file mode 100644 index 7de8ad7..0000000 --- a/dist/node_modules/bn.js/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "bn.js", - "version": "4.11.9", - "description": "Big number implementation in pure javascript", - "main": "lib/bn.js", - "scripts": { - "lint": "semistandard", - "unit": "mocha --reporter=spec test/*-test.js", - "test": "npm run lint && npm run unit" - }, - "repository": { - "type": "git", - "url": "git@github.com:indutny/bn.js" - }, - "keywords": [ - "BN", - "BigNum", - "Big number", - "Modulo", - "Montgomery" - ], - "author": "Fedor Indutny ", - "license": "MIT", - "bugs": { - "url": "https://github.com/indutny/bn.js/issues" - }, - "homepage": "https://github.com/indutny/bn.js", - "browser": { - "buffer": false - }, - "devDependencies": { - "istanbul": "^0.3.5", - "mocha": "^2.1.0", - "semistandard": "^7.0.4" - } -} diff --git a/dist/node_modules/bn.js/util/genCombMulTo.js b/dist/node_modules/bn.js/util/genCombMulTo.js deleted file mode 100644 index 8b456c7..0000000 --- a/dist/node_modules/bn.js/util/genCombMulTo.js +++ /dev/null @@ -1,65 +0,0 @@ -'use strict'; - -// NOTE: This could be potentionally used to generate loop-less multiplications -function genCombMulTo (alen, blen) { - var len = alen + blen - 1; - var src = [ - 'var a = self.words;', - 'var b = num.words;', - 'var o = out.words;', - 'var c = 0;', - 'var lo;', - 'var mid;', - 'var hi;' - ]; - for (var i = 0; i < alen; i++) { - src.push('var a' + i + ' = a[' + i + '] | 0;'); - src.push('var al' + i + ' = a' + i + ' & 0x1fff;'); - src.push('var ah' + i + ' = a' + i + ' >>> 13;'); - } - for (i = 0; i < blen; i++) { - src.push('var b' + i + ' = b[' + i + '] | 0;'); - src.push('var bl' + i + ' = b' + i + ' & 0x1fff;'); - src.push('var bh' + i + ' = b' + i + ' >>> 13;'); - } - src.push(''); - src.push('out.negative = self.negative ^ num.negative;'); - src.push('out.length = ' + len + ';'); - - for (var k = 0; k < len; k++) { - var minJ = Math.max(0, k - alen + 1); - var maxJ = Math.min(k, blen - 1); - - src.push('\/* k = ' + k + ' *\/'); - src.push('var w' + k + ' = c;'); - src.push('c = 0;'); - for (var j = minJ; j <= maxJ; j++) { - i = k - j; - - src.push('lo = Math.imul(al' + i + ', bl' + j + ');'); - src.push('mid = Math.imul(al' + i + ', bh' + j + ');'); - src.push('mid = (mid + Math.imul(ah' + i + ', bl' + j + ')) | 0;'); - src.push('hi = Math.imul(ah' + i + ', bh' + j + ');'); - - src.push('w' + k + ' = (w' + k + ' + lo) | 0;'); - src.push('w' + k + ' = (w' + k + ' + ((mid & 0x1fff) << 13)) | 0;'); - src.push('c = (c + hi) | 0;'); - src.push('c = (c + (mid >>> 13)) | 0;'); - src.push('c = (c + (w' + k + ' >>> 26)) | 0;'); - src.push('w' + k + ' &= 0x3ffffff;'); - } - } - // Store in separate step for better memory access - for (k = 0; k < len; k++) { - src.push('o[' + k + '] = w' + k + ';'); - } - src.push('if (c !== 0) {', - ' o[' + k + '] = c;', - ' out.length++;', - '}', - 'return out;'); - - return src.join('\n'); -} - -console.log(genCombMulTo(10, 10)); diff --git a/dist/node_modules/bn.js/util/genCombMulTo10.js b/dist/node_modules/bn.js/util/genCombMulTo10.js deleted file mode 100644 index cf2e6e8..0000000 --- a/dist/node_modules/bn.js/util/genCombMulTo10.js +++ /dev/null @@ -1,65 +0,0 @@ -'use strict'; - -function genCombMulTo (alen, blen) { - var len = alen + blen - 1; - var src = [ - 'var a = self.words;', - 'var b = num.words;', - 'var o = out.words;', - 'var c = 0;', - 'var lo;', - 'var mid;', - 'var hi;' - ]; - for (var i = 0; i < alen; i++) { - src.push('var a' + i + ' = a[' + i + '] | 0;'); - src.push('var al' + i + ' = a' + i + ' & 0x1fff;'); - src.push('var ah' + i + ' = a' + i + ' >>> 13;'); - } - for (i = 0; i < blen; i++) { - src.push('var b' + i + ' = b[' + i + '] | 0;'); - src.push('var bl' + i + ' = b' + i + ' & 0x1fff;'); - src.push('var bh' + i + ' = b' + i + ' >>> 13;'); - } - src.push(''); - src.push('out.negative = self.negative ^ num.negative;'); - src.push('out.length = ' + len + ';'); - - for (var k = 0; k < len; k++) { - var minJ = Math.max(0, k - alen + 1); - var maxJ = Math.min(k, blen - 1); - - src.push('\/* k = ' + k + ' *\/'); - src.push('lo = Math.imul(al' + (k - minJ) + ', bl' + minJ + ');'); - src.push('mid = Math.imul(al' + (k - minJ) + ', bh' + minJ + ');'); - src.push( - 'mid = (mid + Math.imul(ah' + (k - minJ) + ', bl' + minJ + ')) | 0;'); - src.push('hi = Math.imul(ah' + (k - minJ) + ', bh' + minJ + ');'); - - for (var j = minJ + 1; j <= maxJ; j++) { - i = k - j; - - src.push('lo = (lo + Math.imul(al' + i + ', bl' + j + ')) | 0;'); - src.push('mid = (mid + Math.imul(al' + i + ', bh' + j + ')) | 0;'); - src.push('mid = (mid + Math.imul(ah' + i + ', bl' + j + ')) | 0;'); - src.push('hi = (hi + Math.imul(ah' + i + ', bh' + j + ')) | 0;'); - } - - src.push('var w' + k + ' = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;'); - src.push('c = (((hi + (mid >>> 13)) | 0) + (w' + k + ' >>> 26)) | 0;'); - src.push('w' + k + ' &= 0x3ffffff;'); - } - // Store in separate step for better memory access - for (k = 0; k < len; k++) { - src.push('o[' + k + '] = w' + k + ';'); - } - src.push('if (c !== 0) {', - ' o[' + k + '] = c;', - ' out.length++;', - '}', - 'return out;'); - - return src.join('\n'); -} - -console.log(genCombMulTo(10, 10)); diff --git a/dist/node_modules/inherits/LICENSE b/dist/node_modules/inherits/LICENSE deleted file mode 100644 index dea3013..0000000 --- a/dist/node_modules/inherits/LICENSE +++ /dev/null @@ -1,16 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. - diff --git a/dist/node_modules/inherits/README.md b/dist/node_modules/inherits/README.md deleted file mode 100644 index b1c5665..0000000 --- a/dist/node_modules/inherits/README.md +++ /dev/null @@ -1,42 +0,0 @@ -Browser-friendly inheritance fully compatible with standard node.js -[inherits](http://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor). - -This package exports standard `inherits` from node.js `util` module in -node environment, but also provides alternative browser-friendly -implementation through [browser -field](https://gist.github.com/shtylman/4339901). Alternative -implementation is a literal copy of standard one located in standalone -module to avoid requiring of `util`. It also has a shim for old -browsers with no `Object.create` support. - -While keeping you sure you are using standard `inherits` -implementation in node.js environment, it allows bundlers such as -[browserify](https://github.com/substack/node-browserify) to not -include full `util` package to your client code if all you need is -just `inherits` function. It worth, because browser shim for `util` -package is large and `inherits` is often the single function you need -from it. - -It's recommended to use this package instead of -`require('util').inherits` for any code that has chances to be used -not only in node.js but in browser too. - -## usage - -```js -var inherits = require('inherits'); -// then use exactly as the standard one -``` - -## note on version ~1.0 - -Version ~1.0 had completely different motivation and is not compatible -neither with 2.0 nor with standard node.js `inherits`. - -If you are using version ~1.0 and planning to switch to ~2.0, be -careful: - -* new version uses `super_` instead of `super` for referencing - superclass -* new version overwrites current prototype while old one preserves any - existing fields on it diff --git a/dist/node_modules/inherits/inherits.js b/dist/node_modules/inherits/inherits.js deleted file mode 100644 index f71f2d9..0000000 --- a/dist/node_modules/inherits/inherits.js +++ /dev/null @@ -1,9 +0,0 @@ -try { - var util = require('util'); - /* istanbul ignore next */ - if (typeof util.inherits !== 'function') throw ''; - module.exports = util.inherits; -} catch (e) { - /* istanbul ignore next */ - module.exports = require('./inherits_browser.js'); -} diff --git a/dist/node_modules/inherits/inherits_browser.js b/dist/node_modules/inherits/inherits_browser.js deleted file mode 100644 index 86bbb3d..0000000 --- a/dist/node_modules/inherits/inherits_browser.js +++ /dev/null @@ -1,27 +0,0 @@ -if (typeof Object.create === 'function') { - // implementation from standard node.js 'util' module - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor - ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: false, - writable: true, - configurable: true - } - }) - } - }; -} else { - // old school shim for old browsers - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor - var TempCtor = function () {} - TempCtor.prototype = superCtor.prototype - ctor.prototype = new TempCtor() - ctor.prototype.constructor = ctor - } - } -} diff --git a/dist/node_modules/inherits/package.json b/dist/node_modules/inherits/package.json deleted file mode 100644 index 37b4366..0000000 --- a/dist/node_modules/inherits/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "inherits", - "description": "Browser-friendly inheritance fully compatible with standard node.js inherits()", - "version": "2.0.4", - "keywords": [ - "inheritance", - "class", - "klass", - "oop", - "object-oriented", - "inherits", - "browser", - "browserify" - ], - "main": "./inherits.js", - "browser": "./inherits_browser.js", - "repository": "git://github.com/isaacs/inherits", - "license": "ISC", - "scripts": { - "test": "tap" - }, - "devDependencies": { - "tap": "^14.2.4" - }, - "files": [ - "inherits.js", - "inherits_browser.js" - ] -} diff --git a/dist/node_modules/minimalistic-assert/LICENSE b/dist/node_modules/minimalistic-assert/LICENSE deleted file mode 100644 index adca66b..0000000 --- a/dist/node_modules/minimalistic-assert/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -Copyright 2015 Calvin Metcalf - -Permission to use, copy, modify, and/or distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright notice -and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file diff --git a/dist/node_modules/minimalistic-assert/index.js b/dist/node_modules/minimalistic-assert/index.js deleted file mode 100644 index 70b4ea5..0000000 --- a/dist/node_modules/minimalistic-assert/index.js +++ /dev/null @@ -1,11 +0,0 @@ -module.exports = assert; - -function assert(val, msg) { - if (!val) - throw new Error(msg || 'Assertion failed'); -} - -assert.equal = function assertEqual(l, r, msg) { - if (l != r) - throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r)); -}; diff --git a/dist/node_modules/minimalistic-assert/package.json b/dist/node_modules/minimalistic-assert/package.json deleted file mode 100644 index f8de10d..0000000 --- a/dist/node_modules/minimalistic-assert/package.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "minimalistic-assert", - "version": "1.0.1", - "description": "minimalistic-assert ===", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "repository": { - "type": "git", - "url": "https://github.com/calvinmetcalf/minimalistic-assert.git" - }, - "author": "", - "license": "ISC", - "bugs": { - "url": "https://github.com/calvinmetcalf/minimalistic-assert/issues" - }, - "homepage": "https://github.com/calvinmetcalf/minimalistic-assert" -} diff --git a/dist/node_modules/minimalistic-assert/readme.md b/dist/node_modules/minimalistic-assert/readme.md deleted file mode 100644 index 2ca0d25..0000000 --- a/dist/node_modules/minimalistic-assert/readme.md +++ /dev/null @@ -1,4 +0,0 @@ -minimalistic-assert -=== - -very minimalistic assert module. diff --git a/dist/node_modules/safer-buffer/LICENSE b/dist/node_modules/safer-buffer/LICENSE deleted file mode 100644 index 4fe9e6f..0000000 --- a/dist/node_modules/safer-buffer/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Nikita Skovoroda - -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. diff --git a/dist/node_modules/safer-buffer/Porting-Buffer.md b/dist/node_modules/safer-buffer/Porting-Buffer.md deleted file mode 100644 index 68d86ba..0000000 --- a/dist/node_modules/safer-buffer/Porting-Buffer.md +++ /dev/null @@ -1,268 +0,0 @@ -# Porting to the Buffer.from/Buffer.alloc API - - -## Overview - -- [Variant 1: Drop support for Node.js ≤ 4.4.x and 5.0.0 — 5.9.x.](#variant-1) (*recommended*) -- [Variant 2: Use a polyfill](#variant-2) -- [Variant 3: manual detection, with safeguards](#variant-3) - -### Finding problematic bits of code using grep - -Just run `grep -nrE '[^a-zA-Z](Slow)?Buffer\s*\(' --exclude-dir node_modules`. - -It will find all the potentially unsafe places in your own code (with some considerably unlikely -exceptions). - -### Finding problematic bits of code using Node.js 8 - -If you’re using Node.js ≥ 8.0.0 (which is recommended), Node.js exposes multiple options that help with finding the relevant pieces of code: - -- `--trace-warnings` will make Node.js show a stack trace for this warning and other warnings that are printed by Node.js. -- `--trace-deprecation` does the same thing, but only for deprecation warnings. -- `--pending-deprecation` will show more types of deprecation warnings. In particular, it will show the `Buffer()` deprecation warning, even on Node.js 8. - -You can set these flags using an environment variable: - -```console -$ export NODE_OPTIONS='--trace-warnings --pending-deprecation' -$ cat example.js -'use strict'; -const foo = new Buffer('foo'); -$ node example.js -(node:7147) [DEP0005] DeprecationWarning: The Buffer() and new Buffer() constructors are not recommended for use due to security and usability concerns. Please use the new Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() construction methods instead. - at showFlaggedDeprecation (buffer.js:127:13) - at new Buffer (buffer.js:148:3) - at Object. (/path/to/example.js:2:13) - [... more stack trace lines ...] -``` - -### Finding problematic bits of code using linters - -Eslint rules [no-buffer-constructor](https://eslint.org/docs/rules/no-buffer-constructor) -or -[node/no-deprecated-api](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-deprecated-api.md) -also find calls to deprecated `Buffer()` API. Those rules are included in some pre-sets. - -There is a drawback, though, that it doesn't always -[work correctly](https://github.com/chalker/safer-buffer#why-not-safe-buffer) when `Buffer` is -overriden e.g. with a polyfill, so recommended is a combination of this and some other method -described above. - - -## Variant 1: Drop support for Node.js ≤ 4.4.x and 5.0.0 — 5.9.x. - -This is the recommended solution nowadays that would imply only minimal overhead. - -The Node.js 5.x release line has been unsupported since July 2016, and the Node.js 4.x release line reaches its End of Life in April 2018 (→ [Schedule](https://github.com/nodejs/Release#release-schedule)). This means that these versions of Node.js will *not* receive any updates, even in case of security issues, so using these release lines should be avoided, if at all possible. - -What you would do in this case is to convert all `new Buffer()` or `Buffer()` calls to use `Buffer.alloc()` or `Buffer.from()`, in the following way: - -- For `new Buffer(number)`, replace it with `Buffer.alloc(number)`. -- For `new Buffer(string)` (or `new Buffer(string, encoding)`), replace it with `Buffer.from(string)` (or `Buffer.from(string, encoding)`). -- For all other combinations of arguments (these are much rarer), also replace `new Buffer(...arguments)` with `Buffer.from(...arguments)`. - -Note that `Buffer.alloc()` is also _faster_ on the current Node.js versions than -`new Buffer(size).fill(0)`, which is what you would otherwise need to ensure zero-filling. - -Enabling eslint rule [no-buffer-constructor](https://eslint.org/docs/rules/no-buffer-constructor) -or -[node/no-deprecated-api](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-deprecated-api.md) -is recommended to avoid accidential unsafe Buffer API usage. - -There is also a [JSCodeshift codemod](https://github.com/joyeecheung/node-dep-codemod#dep005) -for automatically migrating Buffer constructors to `Buffer.alloc()` or `Buffer.from()`. -Note that it currently only works with cases where the arguments are literals or where the -constructor is invoked with two arguments. - -_If you currently support those older Node.js versions and dropping them would be a semver-major change -for you, or if you support older branches of your packages, consider using [Variant 2](#variant-2) -or [Variant 3](#variant-3) on older branches, so people using those older branches will also receive -the fix. That way, you will eradicate potential issues caused by unguarded Buffer API usage and -your users will not observe a runtime deprecation warning when running your code on Node.js 10._ - - -## Variant 2: Use a polyfill - -Utilize [safer-buffer](https://www.npmjs.com/package/safer-buffer) as a polyfill to support older -Node.js versions. - -You would take exacly the same steps as in [Variant 1](#variant-1), but with a polyfill -`const Buffer = require('safer-buffer').Buffer` in all files where you use the new `Buffer` api. - -Make sure that you do not use old `new Buffer` API — in any files where the line above is added, -using old `new Buffer()` API will _throw_. It will be easy to notice that in CI, though. - -Alternatively, you could use [buffer-from](https://www.npmjs.com/package/buffer-from) and/or -[buffer-alloc](https://www.npmjs.com/package/buffer-alloc) [ponyfills](https://ponyfill.com/) — -those are great, the only downsides being 4 deps in the tree and slightly more code changes to -migrate off them (as you would be using e.g. `Buffer.from` under a different name). If you need only -`Buffer.from` polyfilled — `buffer-from` alone which comes with no extra dependencies. - -_Alternatively, you could use [safe-buffer](https://www.npmjs.com/package/safe-buffer) — it also -provides a polyfill, but takes a different approach which has -[it's drawbacks](https://github.com/chalker/safer-buffer#why-not-safe-buffer). It will allow you -to also use the older `new Buffer()` API in your code, though — but that's arguably a benefit, as -it is problematic, can cause issues in your code, and will start emitting runtime deprecation -warnings starting with Node.js 10._ - -Note that in either case, it is important that you also remove all calls to the old Buffer -API manually — just throwing in `safe-buffer` doesn't fix the problem by itself, it just provides -a polyfill for the new API. I have seen people doing that mistake. - -Enabling eslint rule [no-buffer-constructor](https://eslint.org/docs/rules/no-buffer-constructor) -or -[node/no-deprecated-api](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-deprecated-api.md) -is recommended. - -_Don't forget to drop the polyfill usage once you drop support for Node.js < 4.5.0._ - - -## Variant 3 — manual detection, with safeguards - -This is useful if you create Buffer instances in only a few places (e.g. one), or you have your own -wrapper around them. - -### Buffer(0) - -This special case for creating empty buffers can be safely replaced with `Buffer.concat([])`, which -returns the same result all the way down to Node.js 0.8.x. - -### Buffer(notNumber) - -Before: - -```js -var buf = new Buffer(notNumber, encoding); -``` - -After: - -```js -var buf; -if (Buffer.from && Buffer.from !== Uint8Array.from) { - buf = Buffer.from(notNumber, encoding); -} else { - if (typeof notNumber === 'number') - throw new Error('The "size" argument must be of type number.'); - buf = new Buffer(notNumber, encoding); -} -``` - -`encoding` is optional. - -Note that the `typeof notNumber` before `new Buffer` is required (for cases when `notNumber` argument is not -hard-coded) and _is not caused by the deprecation of Buffer constructor_ — it's exactly _why_ the -Buffer constructor is deprecated. Ecosystem packages lacking this type-check caused numereous -security issues — situations when unsanitized user input could end up in the `Buffer(arg)` create -problems ranging from DoS to leaking sensitive information to the attacker from the process memory. - -When `notNumber` argument is hardcoded (e.g. literal `"abc"` or `[0,1,2]`), the `typeof` check can -be omitted. - -Also note that using TypeScript does not fix this problem for you — when libs written in -`TypeScript` are used from JS, or when user input ends up there — it behaves exactly as pure JS, as -all type checks are translation-time only and are not present in the actual JS code which TS -compiles to. - -### Buffer(number) - -For Node.js 0.10.x (and below) support: - -```js -var buf; -if (Buffer.alloc) { - buf = Buffer.alloc(number); -} else { - buf = new Buffer(number); - buf.fill(0); -} -``` - -Otherwise (Node.js ≥ 0.12.x): - -```js -const buf = Buffer.alloc ? Buffer.alloc(number) : new Buffer(number).fill(0); -``` - -## Regarding Buffer.allocUnsafe - -Be extra cautious when using `Buffer.allocUnsafe`: - * Don't use it if you don't have a good reason to - * e.g. you probably won't ever see a performance difference for small buffers, in fact, those - might be even faster with `Buffer.alloc()`, - * if your code is not in the hot code path — you also probably won't notice a difference, - * keep in mind that zero-filling minimizes the potential risks. - * If you use it, make sure that you never return the buffer in a partially-filled state, - * if you are writing to it sequentially — always truncate it to the actuall written length - -Errors in handling buffers allocated with `Buffer.allocUnsafe` could result in various issues, -ranged from undefined behaviour of your code to sensitive data (user input, passwords, certs) -leaking to the remote attacker. - -_Note that the same applies to `new Buffer` usage without zero-filling, depending on the Node.js -version (and lacking type checks also adds DoS to the list of potential problems)._ - - -## FAQ - - -### What is wrong with the `Buffer` constructor? - -The `Buffer` constructor could be used to create a buffer in many different ways: - -- `new Buffer(42)` creates a `Buffer` of 42 bytes. Before Node.js 8, this buffer contained - *arbitrary memory* for performance reasons, which could include anything ranging from - program source code to passwords and encryption keys. -- `new Buffer('abc')` creates a `Buffer` that contains the UTF-8-encoded version of - the string `'abc'`. A second argument could specify another encoding: For example, - `new Buffer(string, 'base64')` could be used to convert a Base64 string into the original - sequence of bytes that it represents. -- There are several other combinations of arguments. - -This meant that, in code like `var buffer = new Buffer(foo);`, *it is not possible to tell -what exactly the contents of the generated buffer are* without knowing the type of `foo`. - -Sometimes, the value of `foo` comes from an external source. For example, this function -could be exposed as a service on a web server, converting a UTF-8 string into its Base64 form: - -``` -function stringToBase64(req, res) { - // The request body should have the format of `{ string: 'foobar' }` - const rawBytes = new Buffer(req.body.string) - const encoded = rawBytes.toString('base64') - res.end({ encoded: encoded }) -} -``` - -Note that this code does *not* validate the type of `req.body.string`: - -- `req.body.string` is expected to be a string. If this is the case, all goes well. -- `req.body.string` is controlled by the client that sends the request. -- If `req.body.string` is the *number* `50`, the `rawBytes` would be 50 bytes: - - Before Node.js 8, the content would be uninitialized - - After Node.js 8, the content would be `50` bytes with the value `0` - -Because of the missing type check, an attacker could intentionally send a number -as part of the request. Using this, they can either: - -- Read uninitialized memory. This **will** leak passwords, encryption keys and other - kinds of sensitive information. (Information leak) -- Force the program to allocate a large amount of memory. For example, when specifying - `500000000` as the input value, each request will allocate 500MB of memory. - This can be used to either exhaust the memory available of a program completely - and make it crash, or slow it down significantly. (Denial of Service) - -Both of these scenarios are considered serious security issues in a real-world -web server context. - -when using `Buffer.from(req.body.string)` instead, passing a number will always -throw an exception instead, giving a controlled behaviour that can always be -handled by the program. - - -### The `Buffer()` constructor has been deprecated for a while. Is this really an issue? - -Surveys of code in the `npm` ecosystem have shown that the `Buffer()` constructor is still -widely used. This includes new code, and overall usage of such code has actually been -*increasing*. diff --git a/dist/node_modules/safer-buffer/Readme.md b/dist/node_modules/safer-buffer/Readme.md deleted file mode 100644 index 14b0822..0000000 --- a/dist/node_modules/safer-buffer/Readme.md +++ /dev/null @@ -1,156 +0,0 @@ -# safer-buffer [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![javascript style guide][standard-image]][standard-url] [![Security Responsible Disclosure][secuirty-image]][secuirty-url] - -[travis-image]: https://travis-ci.org/ChALkeR/safer-buffer.svg?branch=master -[travis-url]: https://travis-ci.org/ChALkeR/safer-buffer -[npm-image]: https://img.shields.io/npm/v/safer-buffer.svg -[npm-url]: https://npmjs.org/package/safer-buffer -[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg -[standard-url]: https://standardjs.com -[secuirty-image]: https://img.shields.io/badge/Security-Responsible%20Disclosure-green.svg -[secuirty-url]: https://github.com/nodejs/security-wg/blob/master/processes/responsible_disclosure_template.md - -Modern Buffer API polyfill without footguns, working on Node.js from 0.8 to current. - -## How to use? - -First, port all `Buffer()` and `new Buffer()` calls to `Buffer.alloc()` and `Buffer.from()` API. - -Then, to achieve compatibility with outdated Node.js versions (`<4.5.0` and 5.x `<5.9.0`), use -`const Buffer = require('safer-buffer').Buffer` in all files where you make calls to the new -Buffer API. _Use `var` instead of `const` if you need that for your Node.js version range support._ - -Also, see the -[porting Buffer](https://github.com/ChALkeR/safer-buffer/blob/master/Porting-Buffer.md) guide. - -## Do I need it? - -Hopefully, not — dropping support for outdated Node.js versions should be fine nowdays, and that -is the recommended path forward. You _do_ need to port to the `Buffer.alloc()` and `Buffer.from()` -though. - -See the [porting guide](https://github.com/ChALkeR/safer-buffer/blob/master/Porting-Buffer.md) -for a better description. - -## Why not [safe-buffer](https://npmjs.com/safe-buffer)? - -_In short: while `safe-buffer` serves as a polyfill for the new API, it allows old API usage and -itself contains footguns._ - -`safe-buffer` could be used safely to get the new API while still keeping support for older -Node.js versions (like this module), but while analyzing ecosystem usage of the old Buffer API -I found out that `safe-buffer` is itself causing problems in some cases. - -For example, consider the following snippet: - -```console -$ cat example.unsafe.js -console.log(Buffer(20)) -$ ./node-v6.13.0-linux-x64/bin/node example.unsafe.js - -$ standard example.unsafe.js -standard: Use JavaScript Standard Style (https://standardjs.com) - /home/chalker/repo/safer-buffer/example.unsafe.js:2:13: 'Buffer()' was deprecated since v6. Use 'Buffer.alloc()' or 'Buffer.from()' (use 'https://www.npmjs.com/package/safe-buffer' for '<4.5.0') instead. -``` - -This is allocates and writes to console an uninitialized chunk of memory. -[standard](https://www.npmjs.com/package/standard) linter (among others) catch that and warn people -to avoid using unsafe API. - -Let's now throw in `safe-buffer`! - -```console -$ cat example.safe-buffer.js -const Buffer = require('safe-buffer').Buffer -console.log(Buffer(20)) -$ standard example.safe-buffer.js -$ ./node-v6.13.0-linux-x64/bin/node example.safe-buffer.js - -``` - -See the problem? Adding in `safe-buffer` _magically removes the lint warning_, but the behavior -remains identiсal to what we had before, and when launched on Node.js 6.x LTS — this dumps out -chunks of uninitialized memory. -_And this code will still emit runtime warnings on Node.js 10.x and above._ - -That was done by design. I first considered changing `safe-buffer`, prohibiting old API usage or -emitting warnings on it, but that significantly diverges from `safe-buffer` design. After some -discussion, it was decided to move my approach into a separate package, and _this is that separate -package_. - -This footgun is not imaginary — I observed top-downloaded packages doing that kind of thing, -«fixing» the lint warning by blindly including `safe-buffer` without any actual changes. - -Also in some cases, even if the API _was_ migrated to use of safe Buffer API — a random pull request -can bring unsafe Buffer API usage back to the codebase by adding new calls — and that could go -unnoticed even if you have a linter prohibiting that (becase of the reason stated above), and even -pass CI. _I also observed that being done in popular packages._ - -Some examples: - * [webdriverio](https://github.com/webdriverio/webdriverio/commit/05cbd3167c12e4930f09ef7cf93b127ba4effae4#diff-124380949022817b90b622871837d56cR31) - (a module with 548 759 downloads/month), - * [websocket-stream](https://github.com/maxogden/websocket-stream/commit/c9312bd24d08271687d76da0fe3c83493871cf61) - (218 288 d/m, fix in [maxogden/websocket-stream#142](https://github.com/maxogden/websocket-stream/pull/142)), - * [node-serialport](https://github.com/node-serialport/node-serialport/commit/e8d9d2b16c664224920ce1c895199b1ce2def48c) - (113 138 d/m, fix in [node-serialport/node-serialport#1510](https://github.com/node-serialport/node-serialport/pull/1510)), - * [karma](https://github.com/karma-runner/karma/commit/3d94b8cf18c695104ca195334dc75ff054c74eec) - (3 973 193 d/m, fix in [karma-runner/karma#2947](https://github.com/karma-runner/karma/pull/2947)), - * [spdy-transport](https://github.com/spdy-http2/spdy-transport/commit/5375ac33f4a62a4f65bcfc2827447d42a5dbe8b1) - (5 970 727 d/m, fix in [spdy-http2/spdy-transport#53](https://github.com/spdy-http2/spdy-transport/pull/53)). - * And there are a lot more over the ecosystem. - -I filed a PR at -[mysticatea/eslint-plugin-node#110](https://github.com/mysticatea/eslint-plugin-node/pull/110) to -partially fix that (for cases when that lint rule is used), but it is a semver-major change for -linter rules and presets, so it would take significant time for that to reach actual setups. -_It also hasn't been released yet (2018-03-20)._ - -Also, `safer-buffer` discourages the usage of `.allocUnsafe()`, which is often done by a mistake. -It still supports it with an explicit concern barier, by placing it under -`require('safer-buffer/dangereous')`. - -## But isn't throwing bad? - -Not really. It's an error that could be noticed and fixed early, instead of causing havoc later like -unguarded `new Buffer()` calls that end up receiving user input can do. - -This package affects only the files where `var Buffer = require('safer-buffer').Buffer` was done, so -it is really simple to keep track of things and make sure that you don't mix old API usage with that. -Also, CI should hint anything that you might have missed. - -New commits, if tested, won't land new usage of unsafe Buffer API this way. -_Node.js 10.x also deals with that by printing a runtime depecation warning._ - -### Would it affect third-party modules? - -No, unless you explicitly do an awful thing like monkey-patching or overriding the built-in `Buffer`. -Don't do that. - -### But I don't want throwing… - -That is also fine! - -Also, it could be better in some cases when you don't comprehensive enough test coverage. - -In that case — just don't override `Buffer` and use -`var SaferBuffer = require('safer-buffer').Buffer` instead. - -That way, everything using `Buffer` natively would still work, but there would be two drawbacks: - -* `Buffer.from`/`Buffer.alloc` won't be polyfilled — use `SaferBuffer.from` and - `SaferBuffer.alloc` instead. -* You are still open to accidentally using the insecure deprecated API — use a linter to catch that. - -Note that using a linter to catch accidential `Buffer` constructor usage in this case is strongly -recommended. `Buffer` is not overriden in this usecase, so linters won't get confused. - -## «Without footguns»? - -Well, it is still possible to do _some_ things with `Buffer` API, e.g. accessing `.buffer` property -on older versions and duping things from there. You shouldn't do that in your code, probabably. - -The intention is to remove the most significant footguns that affect lots of packages in the -ecosystem, and to do it in the proper way. - -Also, this package doesn't protect against security issues affecting some Node.js versions, so for -usage in your own production code, it is still recommended to update to a Node.js version -[supported by upstream](https://github.com/nodejs/release#release-schedule). diff --git a/dist/node_modules/safer-buffer/dangerous.js b/dist/node_modules/safer-buffer/dangerous.js deleted file mode 100644 index ca41fdc..0000000 --- a/dist/node_modules/safer-buffer/dangerous.js +++ /dev/null @@ -1,58 +0,0 @@ -/* eslint-disable node/no-deprecated-api */ - -'use strict' - -var buffer = require('buffer') -var Buffer = buffer.Buffer -var safer = require('./safer.js') -var Safer = safer.Buffer - -var dangerous = {} - -var key - -for (key in safer) { - if (!safer.hasOwnProperty(key)) continue - dangerous[key] = safer[key] -} - -var Dangereous = dangerous.Buffer = {} - -// Copy Safer API -for (key in Safer) { - if (!Safer.hasOwnProperty(key)) continue - Dangereous[key] = Safer[key] -} - -// Copy those missing unsafe methods, if they are present -for (key in Buffer) { - if (!Buffer.hasOwnProperty(key)) continue - if (Dangereous.hasOwnProperty(key)) continue - Dangereous[key] = Buffer[key] -} - -if (!Dangereous.allocUnsafe) { - Dangereous.allocUnsafe = function (size) { - if (typeof size !== 'number') { - throw new TypeError('The "size" argument must be of type number. Received type ' + typeof size) - } - if (size < 0 || size >= 2 * (1 << 30)) { - throw new RangeError('The value "' + size + '" is invalid for option "size"') - } - return Buffer(size) - } -} - -if (!Dangereous.allocUnsafeSlow) { - Dangereous.allocUnsafeSlow = function (size) { - if (typeof size !== 'number') { - throw new TypeError('The "size" argument must be of type number. Received type ' + typeof size) - } - if (size < 0 || size >= 2 * (1 << 30)) { - throw new RangeError('The value "' + size + '" is invalid for option "size"') - } - return buffer.SlowBuffer(size) - } -} - -module.exports = dangerous diff --git a/dist/node_modules/safer-buffer/package.json b/dist/node_modules/safer-buffer/package.json deleted file mode 100644 index d452b04..0000000 --- a/dist/node_modules/safer-buffer/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "safer-buffer", - "version": "2.1.2", - "description": "Modern Buffer API polyfill without footguns", - "main": "safer.js", - "scripts": { - "browserify-test": "browserify --external tape tests.js > browserify-tests.js && tape browserify-tests.js", - "test": "standard && tape tests.js" - }, - "author": { - "name": "Nikita Skovoroda", - "email": "chalkerx@gmail.com", - "url": "https://github.com/ChALkeR" - }, - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/ChALkeR/safer-buffer.git" - }, - "bugs": { - "url": "https://github.com/ChALkeR/safer-buffer/issues" - }, - "devDependencies": { - "standard": "^11.0.1", - "tape": "^4.9.0" - }, - "files": [ - "Porting-Buffer.md", - "Readme.md", - "tests.js", - "dangerous.js", - "safer.js" - ] -} diff --git a/dist/node_modules/safer-buffer/safer.js b/dist/node_modules/safer-buffer/safer.js deleted file mode 100644 index 37c7e1a..0000000 --- a/dist/node_modules/safer-buffer/safer.js +++ /dev/null @@ -1,77 +0,0 @@ -/* eslint-disable node/no-deprecated-api */ - -'use strict' - -var buffer = require('buffer') -var Buffer = buffer.Buffer - -var safer = {} - -var key - -for (key in buffer) { - if (!buffer.hasOwnProperty(key)) continue - if (key === 'SlowBuffer' || key === 'Buffer') continue - safer[key] = buffer[key] -} - -var Safer = safer.Buffer = {} -for (key in Buffer) { - if (!Buffer.hasOwnProperty(key)) continue - if (key === 'allocUnsafe' || key === 'allocUnsafeSlow') continue - Safer[key] = Buffer[key] -} - -safer.Buffer.prototype = Buffer.prototype - -if (!Safer.from || Safer.from === Uint8Array.from) { - Safer.from = function (value, encodingOrOffset, length) { - if (typeof value === 'number') { - throw new TypeError('The "value" argument must not be of type number. Received type ' + typeof value) - } - if (value && typeof value.length === 'undefined') { - throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + typeof value) - } - return Buffer(value, encodingOrOffset, length) - } -} - -if (!Safer.alloc) { - Safer.alloc = function (size, fill, encoding) { - if (typeof size !== 'number') { - throw new TypeError('The "size" argument must be of type number. Received type ' + typeof size) - } - if (size < 0 || size >= 2 * (1 << 30)) { - throw new RangeError('The value "' + size + '" is invalid for option "size"') - } - var buf = Buffer(size) - if (!fill || fill.length === 0) { - buf.fill(0) - } else if (typeof encoding === 'string') { - buf.fill(fill, encoding) - } else { - buf.fill(fill) - } - return buf - } -} - -if (!safer.kStringMaxLength) { - try { - safer.kStringMaxLength = process.binding('buffer').kStringMaxLength - } catch (e) { - // we can't determine kStringMaxLength in environments where process.binding - // is unsupported, so let's not set it - } -} - -if (!safer.constants) { - safer.constants = { - MAX_LENGTH: safer.kMaxLength - } - if (safer.kStringMaxLength) { - safer.constants.MAX_STRING_LENGTH = safer.kStringMaxLength - } -} - -module.exports = safer diff --git a/dist/node_modules/safer-buffer/tests.js b/dist/node_modules/safer-buffer/tests.js deleted file mode 100644 index 7ed2777..0000000 --- a/dist/node_modules/safer-buffer/tests.js +++ /dev/null @@ -1,406 +0,0 @@ -/* eslint-disable node/no-deprecated-api */ - -'use strict' - -var test = require('tape') - -var buffer = require('buffer') - -var index = require('./') -var safer = require('./safer') -var dangerous = require('./dangerous') - -/* Inheritance tests */ - -test('Default is Safer', function (t) { - t.equal(index, safer) - t.notEqual(safer, dangerous) - t.notEqual(index, dangerous) - t.end() -}) - -test('Is not a function', function (t) { - [index, safer, dangerous].forEach(function (impl) { - t.equal(typeof impl, 'object') - t.equal(typeof impl.Buffer, 'object') - }); - [buffer].forEach(function (impl) { - t.equal(typeof impl, 'object') - t.equal(typeof impl.Buffer, 'function') - }) - t.end() -}) - -test('Constructor throws', function (t) { - [index, safer, dangerous].forEach(function (impl) { - t.throws(function () { impl.Buffer() }) - t.throws(function () { impl.Buffer(0) }) - t.throws(function () { impl.Buffer('a') }) - t.throws(function () { impl.Buffer('a', 'utf-8') }) - t.throws(function () { return new impl.Buffer() }) - t.throws(function () { return new impl.Buffer(0) }) - t.throws(function () { return new impl.Buffer('a') }) - t.throws(function () { return new impl.Buffer('a', 'utf-8') }) - }) - t.end() -}) - -test('Safe methods exist', function (t) { - [index, safer, dangerous].forEach(function (impl) { - t.equal(typeof impl.Buffer.alloc, 'function', 'alloc') - t.equal(typeof impl.Buffer.from, 'function', 'from') - }) - t.end() -}) - -test('Unsafe methods exist only in Dangerous', function (t) { - [index, safer].forEach(function (impl) { - t.equal(typeof impl.Buffer.allocUnsafe, 'undefined') - t.equal(typeof impl.Buffer.allocUnsafeSlow, 'undefined') - }); - [dangerous].forEach(function (impl) { - t.equal(typeof impl.Buffer.allocUnsafe, 'function') - t.equal(typeof impl.Buffer.allocUnsafeSlow, 'function') - }) - t.end() -}) - -test('Generic methods/properties are defined and equal', function (t) { - ['poolSize', 'isBuffer', 'concat', 'byteLength'].forEach(function (method) { - [index, safer, dangerous].forEach(function (impl) { - t.equal(impl.Buffer[method], buffer.Buffer[method], method) - t.notEqual(typeof impl.Buffer[method], 'undefined', method) - }) - }) - t.end() -}) - -test('Built-in buffer static methods/properties are inherited', function (t) { - Object.keys(buffer).forEach(function (method) { - if (method === 'SlowBuffer' || method === 'Buffer') return; - [index, safer, dangerous].forEach(function (impl) { - t.equal(impl[method], buffer[method], method) - t.notEqual(typeof impl[method], 'undefined', method) - }) - }) - t.end() -}) - -test('Built-in Buffer static methods/properties are inherited', function (t) { - Object.keys(buffer.Buffer).forEach(function (method) { - if (method === 'allocUnsafe' || method === 'allocUnsafeSlow') return; - [index, safer, dangerous].forEach(function (impl) { - t.equal(impl.Buffer[method], buffer.Buffer[method], method) - t.notEqual(typeof impl.Buffer[method], 'undefined', method) - }) - }) - t.end() -}) - -test('.prototype property of Buffer is inherited', function (t) { - [index, safer, dangerous].forEach(function (impl) { - t.equal(impl.Buffer.prototype, buffer.Buffer.prototype, 'prototype') - t.notEqual(typeof impl.Buffer.prototype, 'undefined', 'prototype') - }) - t.end() -}) - -test('All Safer methods are present in Dangerous', function (t) { - Object.keys(safer).forEach(function (method) { - if (method === 'Buffer') return; - [index, safer, dangerous].forEach(function (impl) { - t.equal(impl[method], safer[method], method) - if (method !== 'kStringMaxLength') { - t.notEqual(typeof impl[method], 'undefined', method) - } - }) - }) - Object.keys(safer.Buffer).forEach(function (method) { - [index, safer, dangerous].forEach(function (impl) { - t.equal(impl.Buffer[method], safer.Buffer[method], method) - t.notEqual(typeof impl.Buffer[method], 'undefined', method) - }) - }) - t.end() -}) - -test('Safe methods from Dangerous methods are present in Safer', function (t) { - Object.keys(dangerous).forEach(function (method) { - if (method === 'Buffer') return; - [index, safer, dangerous].forEach(function (impl) { - t.equal(impl[method], dangerous[method], method) - if (method !== 'kStringMaxLength') { - t.notEqual(typeof impl[method], 'undefined', method) - } - }) - }) - Object.keys(dangerous.Buffer).forEach(function (method) { - if (method === 'allocUnsafe' || method === 'allocUnsafeSlow') return; - [index, safer, dangerous].forEach(function (impl) { - t.equal(impl.Buffer[method], dangerous.Buffer[method], method) - t.notEqual(typeof impl.Buffer[method], 'undefined', method) - }) - }) - t.end() -}) - -/* Behaviour tests */ - -test('Methods return Buffers', function (t) { - [index, safer, dangerous].forEach(function (impl) { - t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(0))) - t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(0, 10))) - t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(0, 'a'))) - t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(10))) - t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(10, 'x'))) - t.ok(buffer.Buffer.isBuffer(impl.Buffer.alloc(9, 'ab'))) - t.ok(buffer.Buffer.isBuffer(impl.Buffer.from(''))) - t.ok(buffer.Buffer.isBuffer(impl.Buffer.from('string'))) - t.ok(buffer.Buffer.isBuffer(impl.Buffer.from('string', 'utf-8'))) - t.ok(buffer.Buffer.isBuffer(impl.Buffer.from('b25ldHdvdGhyZWU=', 'base64'))) - t.ok(buffer.Buffer.isBuffer(impl.Buffer.from([0, 42, 3]))) - t.ok(buffer.Buffer.isBuffer(impl.Buffer.from(new Uint8Array([0, 42, 3])))) - t.ok(buffer.Buffer.isBuffer(impl.Buffer.from([]))) - }); - ['allocUnsafe', 'allocUnsafeSlow'].forEach(function (method) { - t.ok(buffer.Buffer.isBuffer(dangerous.Buffer[method](0))) - t.ok(buffer.Buffer.isBuffer(dangerous.Buffer[method](10))) - }) - t.end() -}) - -test('Constructor is buffer.Buffer', function (t) { - [index, safer, dangerous].forEach(function (impl) { - t.equal(impl.Buffer.alloc(0).constructor, buffer.Buffer) - t.equal(impl.Buffer.alloc(0, 10).constructor, buffer.Buffer) - t.equal(impl.Buffer.alloc(0, 'a').constructor, buffer.Buffer) - t.equal(impl.Buffer.alloc(10).constructor, buffer.Buffer) - t.equal(impl.Buffer.alloc(10, 'x').constructor, buffer.Buffer) - t.equal(impl.Buffer.alloc(9, 'ab').constructor, buffer.Buffer) - t.equal(impl.Buffer.from('').constructor, buffer.Buffer) - t.equal(impl.Buffer.from('string').constructor, buffer.Buffer) - t.equal(impl.Buffer.from('string', 'utf-8').constructor, buffer.Buffer) - t.equal(impl.Buffer.from('b25ldHdvdGhyZWU=', 'base64').constructor, buffer.Buffer) - t.equal(impl.Buffer.from([0, 42, 3]).constructor, buffer.Buffer) - t.equal(impl.Buffer.from(new Uint8Array([0, 42, 3])).constructor, buffer.Buffer) - t.equal(impl.Buffer.from([]).constructor, buffer.Buffer) - }); - [0, 10, 100].forEach(function (arg) { - t.equal(dangerous.Buffer.allocUnsafe(arg).constructor, buffer.Buffer) - t.equal(dangerous.Buffer.allocUnsafeSlow(arg).constructor, buffer.SlowBuffer(0).constructor) - }) - t.end() -}) - -test('Invalid calls throw', function (t) { - [index, safer, dangerous].forEach(function (impl) { - t.throws(function () { impl.Buffer.from(0) }) - t.throws(function () { impl.Buffer.from(10) }) - t.throws(function () { impl.Buffer.from(10, 'utf-8') }) - t.throws(function () { impl.Buffer.from('string', 'invalid encoding') }) - t.throws(function () { impl.Buffer.from(-10) }) - t.throws(function () { impl.Buffer.from(1e90) }) - t.throws(function () { impl.Buffer.from(Infinity) }) - t.throws(function () { impl.Buffer.from(-Infinity) }) - t.throws(function () { impl.Buffer.from(NaN) }) - t.throws(function () { impl.Buffer.from(null) }) - t.throws(function () { impl.Buffer.from(undefined) }) - t.throws(function () { impl.Buffer.from() }) - t.throws(function () { impl.Buffer.from({}) }) - t.throws(function () { impl.Buffer.alloc('') }) - t.throws(function () { impl.Buffer.alloc('string') }) - t.throws(function () { impl.Buffer.alloc('string', 'utf-8') }) - t.throws(function () { impl.Buffer.alloc('b25ldHdvdGhyZWU=', 'base64') }) - t.throws(function () { impl.Buffer.alloc(-10) }) - t.throws(function () { impl.Buffer.alloc(1e90) }) - t.throws(function () { impl.Buffer.alloc(2 * (1 << 30)) }) - t.throws(function () { impl.Buffer.alloc(Infinity) }) - t.throws(function () { impl.Buffer.alloc(-Infinity) }) - t.throws(function () { impl.Buffer.alloc(null) }) - t.throws(function () { impl.Buffer.alloc(undefined) }) - t.throws(function () { impl.Buffer.alloc() }) - t.throws(function () { impl.Buffer.alloc([]) }) - t.throws(function () { impl.Buffer.alloc([0, 42, 3]) }) - t.throws(function () { impl.Buffer.alloc({}) }) - }); - ['allocUnsafe', 'allocUnsafeSlow'].forEach(function (method) { - t.throws(function () { dangerous.Buffer[method]('') }) - t.throws(function () { dangerous.Buffer[method]('string') }) - t.throws(function () { dangerous.Buffer[method]('string', 'utf-8') }) - t.throws(function () { dangerous.Buffer[method](2 * (1 << 30)) }) - t.throws(function () { dangerous.Buffer[method](Infinity) }) - if (dangerous.Buffer[method] === buffer.Buffer.allocUnsafe) { - t.skip('Skipping, older impl of allocUnsafe coerced negative sizes to 0') - } else { - t.throws(function () { dangerous.Buffer[method](-10) }) - t.throws(function () { dangerous.Buffer[method](-1e90) }) - t.throws(function () { dangerous.Buffer[method](-Infinity) }) - } - t.throws(function () { dangerous.Buffer[method](null) }) - t.throws(function () { dangerous.Buffer[method](undefined) }) - t.throws(function () { dangerous.Buffer[method]() }) - t.throws(function () { dangerous.Buffer[method]([]) }) - t.throws(function () { dangerous.Buffer[method]([0, 42, 3]) }) - t.throws(function () { dangerous.Buffer[method]({}) }) - }) - t.end() -}) - -test('Buffers have appropriate lengths', function (t) { - [index, safer, dangerous].forEach(function (impl) { - t.equal(impl.Buffer.alloc(0).length, 0) - t.equal(impl.Buffer.alloc(10).length, 10) - t.equal(impl.Buffer.from('').length, 0) - t.equal(impl.Buffer.from('string').length, 6) - t.equal(impl.Buffer.from('string', 'utf-8').length, 6) - t.equal(impl.Buffer.from('b25ldHdvdGhyZWU=', 'base64').length, 11) - t.equal(impl.Buffer.from([0, 42, 3]).length, 3) - t.equal(impl.Buffer.from(new Uint8Array([0, 42, 3])).length, 3) - t.equal(impl.Buffer.from([]).length, 0) - }); - ['allocUnsafe', 'allocUnsafeSlow'].forEach(function (method) { - t.equal(dangerous.Buffer[method](0).length, 0) - t.equal(dangerous.Buffer[method](10).length, 10) - }) - t.end() -}) - -test('Buffers have appropriate lengths (2)', function (t) { - t.equal(index.Buffer.alloc, safer.Buffer.alloc) - t.equal(index.Buffer.alloc, dangerous.Buffer.alloc) - var ok = true; - [ safer.Buffer.alloc, - dangerous.Buffer.allocUnsafe, - dangerous.Buffer.allocUnsafeSlow - ].forEach(function (method) { - for (var i = 0; i < 1e2; i++) { - var length = Math.round(Math.random() * 1e5) - var buf = method(length) - if (!buffer.Buffer.isBuffer(buf)) ok = false - if (buf.length !== length) ok = false - } - }) - t.ok(ok) - t.end() -}) - -test('.alloc(size) is zero-filled and has correct length', function (t) { - t.equal(index.Buffer.alloc, safer.Buffer.alloc) - t.equal(index.Buffer.alloc, dangerous.Buffer.alloc) - var ok = true - for (var i = 0; i < 1e2; i++) { - var length = Math.round(Math.random() * 2e6) - var buf = index.Buffer.alloc(length) - if (!buffer.Buffer.isBuffer(buf)) ok = false - if (buf.length !== length) ok = false - var j - for (j = 0; j < length; j++) { - if (buf[j] !== 0) ok = false - } - buf.fill(1) - for (j = 0; j < length; j++) { - if (buf[j] !== 1) ok = false - } - } - t.ok(ok) - t.end() -}) - -test('.allocUnsafe / .allocUnsafeSlow are fillable and have correct lengths', function (t) { - ['allocUnsafe', 'allocUnsafeSlow'].forEach(function (method) { - var ok = true - for (var i = 0; i < 1e2; i++) { - var length = Math.round(Math.random() * 2e6) - var buf = dangerous.Buffer[method](length) - if (!buffer.Buffer.isBuffer(buf)) ok = false - if (buf.length !== length) ok = false - buf.fill(0, 0, length) - var j - for (j = 0; j < length; j++) { - if (buf[j] !== 0) ok = false - } - buf.fill(1, 0, length) - for (j = 0; j < length; j++) { - if (buf[j] !== 1) ok = false - } - } - t.ok(ok, method) - }) - t.end() -}) - -test('.alloc(size, fill) is `fill`-filled', function (t) { - t.equal(index.Buffer.alloc, safer.Buffer.alloc) - t.equal(index.Buffer.alloc, dangerous.Buffer.alloc) - var ok = true - for (var i = 0; i < 1e2; i++) { - var length = Math.round(Math.random() * 2e6) - var fill = Math.round(Math.random() * 255) - var buf = index.Buffer.alloc(length, fill) - if (!buffer.Buffer.isBuffer(buf)) ok = false - if (buf.length !== length) ok = false - for (var j = 0; j < length; j++) { - if (buf[j] !== fill) ok = false - } - } - t.ok(ok) - t.end() -}) - -test('.alloc(size, fill) is `fill`-filled', function (t) { - t.equal(index.Buffer.alloc, safer.Buffer.alloc) - t.equal(index.Buffer.alloc, dangerous.Buffer.alloc) - var ok = true - for (var i = 0; i < 1e2; i++) { - var length = Math.round(Math.random() * 2e6) - var fill = Math.round(Math.random() * 255) - var buf = index.Buffer.alloc(length, fill) - if (!buffer.Buffer.isBuffer(buf)) ok = false - if (buf.length !== length) ok = false - for (var j = 0; j < length; j++) { - if (buf[j] !== fill) ok = false - } - } - t.ok(ok) - t.deepEqual(index.Buffer.alloc(9, 'a'), index.Buffer.alloc(9, 97)) - t.notDeepEqual(index.Buffer.alloc(9, 'a'), index.Buffer.alloc(9, 98)) - - var tmp = new buffer.Buffer(2) - tmp.fill('ok') - if (tmp[1] === tmp[0]) { - // Outdated Node.js - t.deepEqual(index.Buffer.alloc(5, 'ok'), index.Buffer.from('ooooo')) - } else { - t.deepEqual(index.Buffer.alloc(5, 'ok'), index.Buffer.from('okoko')) - } - t.notDeepEqual(index.Buffer.alloc(5, 'ok'), index.Buffer.from('kokok')) - - t.end() -}) - -test('safer.Buffer.from returns results same as Buffer constructor', function (t) { - [index, safer, dangerous].forEach(function (impl) { - t.deepEqual(impl.Buffer.from(''), new buffer.Buffer('')) - t.deepEqual(impl.Buffer.from('string'), new buffer.Buffer('string')) - t.deepEqual(impl.Buffer.from('string', 'utf-8'), new buffer.Buffer('string', 'utf-8')) - t.deepEqual(impl.Buffer.from('b25ldHdvdGhyZWU=', 'base64'), new buffer.Buffer('b25ldHdvdGhyZWU=', 'base64')) - t.deepEqual(impl.Buffer.from([0, 42, 3]), new buffer.Buffer([0, 42, 3])) - t.deepEqual(impl.Buffer.from(new Uint8Array([0, 42, 3])), new buffer.Buffer(new Uint8Array([0, 42, 3]))) - t.deepEqual(impl.Buffer.from([]), new buffer.Buffer([])) - }) - t.end() -}) - -test('safer.Buffer.from returns consistent results', function (t) { - [index, safer, dangerous].forEach(function (impl) { - t.deepEqual(impl.Buffer.from(''), impl.Buffer.alloc(0)) - t.deepEqual(impl.Buffer.from([]), impl.Buffer.alloc(0)) - t.deepEqual(impl.Buffer.from(new Uint8Array([])), impl.Buffer.alloc(0)) - t.deepEqual(impl.Buffer.from('string', 'utf-8'), impl.Buffer.from('string')) - t.deepEqual(impl.Buffer.from('string'), impl.Buffer.from([115, 116, 114, 105, 110, 103])) - t.deepEqual(impl.Buffer.from('string'), impl.Buffer.from(impl.Buffer.from('string'))) - t.deepEqual(impl.Buffer.from('b25ldHdvdGhyZWU=', 'base64'), impl.Buffer.from('onetwothree')) - t.notDeepEqual(impl.Buffer.from('b25ldHdvdGhyZWU='), impl.Buffer.from('onetwothree')) - }) - t.end() -}) diff --git a/package.json b/package.json index 65ada28..25da6c1 100644 --- a/package.json +++ b/package.json @@ -5,13 +5,12 @@ "license": "LGPL-3.0", "homepage": "https://github.com/satoruk/action-prepare", "scripts": { - "build": "yarn lint && yarn build:ncc && yarn copy", + "build": "yarn lint && yarn build:ncc", "build:ncc": "ncc build --minify --source-map src/index.ts", "clean": "yarn clean:report && yarn clean:build", "clean:build": "del dist", "clean:report": "del coverage '*.log'", "commit": "git-cz", - "copy": "cpx -C \"node_modules/{asn1.js,bn.js,inherits,safer-buffer,minimalistic-assert}/**/*\" dist/node_modules", "format": "eslint --fix . && prettier --write .", "lint": "yarn lint:es && yarn lint:spell '**/*.*'", "lint:es": "tsc --noEmit && eslint", @@ -39,7 +38,6 @@ "@vercel/ncc": "0.23.0", "ajv": "6.12.4", "commitizen": "4.1.5", - "cpx": "1.5.0", "cspell": "4.1.0", "cz-conventional-changelog": "3.2.0", "del-cli": "3.0.1", @@ -53,7 +51,7 @@ "jest": "26.4.2", "js-yaml": "3.14.0", "lodash": "4.17.20", - "openpgp": "4.10.7", + "openpgp": "vordimous/openpgpjs#058265f", "prettier": "2.1.2", "replace-in-file": "6.1.0", "rimraf": "3.0.2", diff --git a/yarn.lock b/yarn.lock index d73e384..3574a83 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1268,14 +1268,6 @@ ansistyles@~0.1.3: resolved "https://registry.yarnpkg.com/ansistyles/-/ansistyles-0.1.3.tgz#5de60415bda071bb37127854c864f41b23254539" integrity sha1-XeYEFb2gcbs3EnhUyGT0GyMlRTk= -anymatch@^1.3.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.2.tgz#553dcb8f91e3c889845dfdba34c77721b90b9d7a" - integrity sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA== - dependencies: - micromatch "^2.1.5" - normalize-path "^2.0.0" - anymatch@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" @@ -1332,19 +1324,12 @@ argv-formatter@~1.0.0: resolved "https://registry.yarnpkg.com/argv-formatter/-/argv-formatter-1.0.0.tgz#a0ca0cbc29a5b73e836eebe1cbf6c5e0e4eb82f9" integrity sha1-oMoMvCmltz6Dbuvhy/bF4OTrgvk= -arr-diff@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" - integrity sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8= - dependencies: - arr-flatten "^1.0.1" - arr-diff@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= -arr-flatten@^1.0.1, arr-flatten@^1.1.0: +arr-flatten@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== @@ -1378,11 +1363,6 @@ array-union@^2.1.0: resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== -array-unique@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" - integrity sha1-odl8yvy8JiXMcPrc6zalDFiwGlM= - array-unique@^0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" @@ -1438,11 +1418,6 @@ astral-regex@^1.0.0: resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== -async-each@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf" - integrity sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ== - asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" @@ -1528,7 +1503,7 @@ babel-preset-jest@^26.3.0: babel-plugin-jest-hoist "^26.2.0" babel-preset-current-node-syntax "^0.1.3" -babel-runtime@^6.23.0, babel-runtime@^6.9.2: +babel-runtime@^6.23.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" integrity sha1-llxwWGaOgrVde/4E/yM3vItWR/4= @@ -1578,18 +1553,6 @@ bin-links@^1.1.2, bin-links@^1.1.8: npm-normalize-package-bin "^1.0.0" write-file-atomic "^2.3.0" -binary-extensions@^1.0.0: - version "1.13.1" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.13.1.tgz#598afe54755b2868a5330d2aff9d4ebb53209b65" - integrity sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw== - -bindings@^1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" - integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== - dependencies: - file-uri-to-path "1.0.0" - bluebird@^3.5.1, bluebird@^3.5.3, bluebird@^3.5.5: version "3.7.2" resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" @@ -1626,15 +1589,6 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" -braces@^1.8.2: - version "1.8.5" - resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" - integrity sha1-uneWLhLf+WnWt2cR6RS3N4V79qc= - dependencies: - expand-range "^1.8.1" - preserve "^0.2.0" - repeat-element "^1.1.2" - braces@^2.3.1: version "2.3.2" resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" @@ -1860,22 +1814,6 @@ chardet@^0.7.0: resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== -chokidar@^1.6.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" - integrity sha1-eY5ol3gVHIB2tLNg5e3SjNortGg= - dependencies: - anymatch "^1.3.0" - async-each "^1.0.0" - glob-parent "^2.0.0" - inherits "^2.0.1" - is-binary-path "^1.0.0" - is-glob "^2.0.0" - path-is-absolute "^1.0.0" - readdirp "^2.0.0" - optionalDependencies: - fsevents "^1.0.0" - chownr@^1.1.1, chownr@^1.1.2, chownr@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b" @@ -2308,23 +2246,6 @@ cosmiconfig@^6.0.0: path-type "^4.0.0" yaml "^1.7.2" -cpx@1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/cpx/-/cpx-1.5.0.tgz#185be018511d87270dedccc293171e37655ab88f" - integrity sha1-GFvgGFEdhycN7czCkxceN2VauI8= - dependencies: - babel-runtime "^6.9.2" - chokidar "^1.6.0" - duplexer "^0.1.1" - glob "^7.0.5" - glob2base "^0.0.12" - minimatch "^3.0.2" - mkdirp "^0.5.1" - resolve "^1.1.7" - safe-buffer "^5.0.1" - shell-quote "^1.6.1" - subarg "^1.0.0" - create-error-class@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/create-error-class/-/create-error-class-3.0.2.tgz#06be7abef947a3f14a30fd610671d401bca8b7b6" @@ -2996,11 +2917,6 @@ duplexer3@^0.1.4: resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" integrity sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI= -duplexer@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" - integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== - duplexify@^3.4.2, duplexify@^3.6.0: version "3.7.1" resolved "https://registry.yarnpkg.com/duplexify/-/duplexify-3.7.1.tgz#2a4df5317f6ccfd91f86d6fd25d8d8a103b88309" @@ -3389,13 +3305,6 @@ exit@^0.1.2: resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" integrity sha1-BjJjj42HfMghB9MKD/8aF8uhzQw= -expand-brackets@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" - integrity sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s= - dependencies: - is-posix-bracket "^0.1.0" - expand-brackets@^2.1.4: version "2.1.4" resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" @@ -3409,13 +3318,6 @@ expand-brackets@^2.1.4: snapdragon "^0.8.1" to-regex "^3.0.1" -expand-range@^1.8.1: - version "1.8.2" - resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" - integrity sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc= - dependencies: - fill-range "^2.1.0" - expand-tilde@^2.0.0, expand-tilde@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/expand-tilde/-/expand-tilde-2.0.2.tgz#97e801aa052df02454de46b02bf621642cdc8502" @@ -3464,13 +3366,6 @@ external-editor@^3.0.3: iconv-lite "^0.4.24" tmp "^0.0.33" -extglob@^0.3.1: - version "0.3.2" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" - integrity sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE= - dependencies: - is-extglob "^1.0.0" - extglob@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" @@ -3567,27 +3462,6 @@ file-entry-cache@^5.0.1: dependencies: flat-cache "^2.0.1" -file-uri-to-path@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" - integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw== - -filename-regex@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26" - integrity sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY= - -fill-range@^2.1.0: - version "2.2.4" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565" - integrity sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q== - dependencies: - is-number "^2.1.0" - isobject "^2.0.0" - randomatic "^3.0.0" - repeat-element "^1.1.2" - repeat-string "^1.5.2" - fill-range@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" @@ -3605,11 +3479,6 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" -find-index@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/find-index/-/find-index-0.1.1.tgz#675d358b2ca3892d795a1ab47232f8b6e2e0dde4" - integrity sha1-Z101iyyjiS15Whq0cjL4tuLg3eQ= - find-node-modules@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/find-node-modules/-/find-node-modules-2.0.0.tgz#5db1fb9e668a3d451db3d618cd167cdd59e41b69" @@ -3689,18 +3558,11 @@ flush-write-stream@^1.0.0: inherits "^2.0.3" readable-stream "^2.3.6" -for-in@^1.0.1, for-in@^1.0.2: +for-in@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= -for-own@^0.1.4: - version "0.1.5" - resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" - integrity sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4= - dependencies: - for-in "^1.0.1" - forever-agent@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" @@ -3798,14 +3660,6 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= -fsevents@^1.0.0: - version "1.2.13" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.13.tgz#f325cb0455592428bcf11b383370ef70e3bfcc38" - integrity sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw== - dependencies: - bindings "^1.5.0" - nan "^2.12.1" - fsevents@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.2.tgz#4c0a1fb34bc68e543b4b82a9ec392bfbda840805" @@ -3930,21 +3784,6 @@ git-log-parser@^1.2.0: through2 "~2.0.0" traverse "~0.6.6" -glob-base@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" - integrity sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q= - dependencies: - glob-parent "^2.0.0" - is-glob "^2.0.0" - -glob-parent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" - integrity sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg= - dependencies: - is-glob "^2.0.0" - glob-parent@^5.0.0, glob-parent@^5.1.0: version "5.1.1" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.1.tgz#b6c1ef417c4e5663ea498f1c45afac6916bbc229" @@ -3952,13 +3791,6 @@ glob-parent@^5.0.0, glob-parent@^5.1.0: dependencies: is-glob "^4.0.1" -glob2base@^0.0.12: - version "0.0.12" - resolved "https://registry.yarnpkg.com/glob2base/-/glob2base-0.0.12.tgz#9d419b3e28f12e83a362164a277055922c9c0d56" - integrity sha1-nUGbPijxLoOjYhZKJ3BVkiycDVY= - dependencies: - find-index "^0.1.1" - glob@7.1.4: version "7.1.4" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" @@ -3971,7 +3803,7 @@ glob@7.1.4: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^7.0.0, glob@^7.0.5, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: +glob@^7.0.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: version "7.1.6" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== @@ -4477,13 +4309,6 @@ is-arrayish@^0.2.1: resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= -is-binary-path@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" - integrity sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg= - dependencies: - binary-extensions "^1.0.0" - is-buffer@^1.1.5: version "1.1.6" resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" @@ -4562,18 +4387,6 @@ is-docker@^2.0.0: resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.1.1.tgz#4125a88e44e450d384e09047ede71adc2d144156" integrity sha512-ZOoqiXfEwtGknTiuDEy8pN2CfE3TxMHprvNer1mXiqwkOT77Rw3YVrUQ52EqAOU3QAWDQ+bQdx7HJzrv7LS2Hw== -is-dotfile@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1" - integrity sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE= - -is-equal-shallow@^0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" - integrity sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ= - dependencies: - is-primitive "^2.0.0" - is-extendable@^0.1.0, is-extendable@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" @@ -4586,11 +4399,6 @@ is-extendable@^1.0.1: dependencies: is-plain-object "^2.0.4" -is-extglob@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" - integrity sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA= - is-extglob@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" @@ -4618,13 +4426,6 @@ is-generator-fn@^2.0.0: resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== -is-glob@^2.0.0, is-glob@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" - integrity sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM= - dependencies: - is-extglob "^1.0.0" - is-glob@^4.0.0, is-glob@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" @@ -4645,13 +4446,6 @@ is-npm@^1.0.0: resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-1.0.0.tgz#f2fb63a65e4905b406c86072765a1a4dc793b9f4" integrity sha1-8vtjpl5JBbQGyGBydloaTceTufQ= -is-number@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" - integrity sha1-Afy7s5NGOlSPL0ZszhbezknbkI8= - dependencies: - kind-of "^3.0.2" - is-number@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" @@ -4659,11 +4453,6 @@ is-number@^3.0.0: dependencies: kind-of "^3.0.2" -is-number@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" - integrity sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ== - is-number@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" @@ -4715,21 +4504,11 @@ is-plain-object@^3.0.0: dependencies: isobject "^4.0.0" -is-posix-bracket@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" - integrity sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q= - is-potential-custom-element-name@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.0.tgz#0c52e54bcca391bb2c494b21e8626d7336c6e397" integrity sha1-DFLlS8yjkbssSUsh6GJtczbG45c= -is-primitive@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" - integrity sha1-IHurkWOEmcB7Kt8kCkGochADRXU= - is-redirect@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-redirect/-/is-redirect-1.0.0.tgz#1d03dded53bd8db0f30c26e4f95d36fc7c87dc24" @@ -5934,11 +5713,6 @@ marked@^1.0.0: resolved "https://registry.yarnpkg.com/marked/-/marked-1.0.0.tgz#d35784245a04871e5988a491e28867362e941693" integrity sha512-Wo+L1pWTVibfrSr+TTtMuiMfNzmZWiOPeO7rZsQUY5bgsxpHesBEcIWJloWVTFnrMXnf/TL30eTFSGJddmQAng== -math-random@^1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.4.tgz#5dd6943c938548267016d4e34f057583080c514c" - integrity sha512-rUxjysqif/BZQH2yhd5Aaq7vXMSx9NdEsQcyA07uEzIvxgI7zIr33gGsh+RU0/XjmQpCW7RsVof1vlkvQVCK5A== - meant@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/meant/-/meant-1.0.2.tgz#5d0c78310a3d8ae1408a16be0fe0bd42a969f560" @@ -5998,26 +5772,7 @@ merge@^1.2.1: resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.1.tgz#38bebf80c3220a8a487b6fcfb3941bb11720c145" integrity sha512-VjFo4P5Whtj4vsLzsYBu5ayHhoHJ0UqNm7ibvShmbmoz7tGi0vXaoJbGdB+GmDMLUdg8DpQXEIeVDAe8MaABvQ== -micromatch@^2.1.5: - version "2.3.11" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" - integrity sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU= - dependencies: - arr-diff "^2.0.0" - array-unique "^0.2.1" - braces "^1.8.2" - expand-brackets "^0.1.4" - extglob "^0.3.1" - filename-regex "^2.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.1" - kind-of "^3.0.2" - normalize-path "^2.0.1" - object.omit "^2.0.0" - parse-glob "^3.0.4" - regex-cache "^0.4.2" - -micromatch@^3.0.4, micromatch@^3.1.10, micromatch@^3.1.4: +micromatch@^3.0.4, micromatch@^3.1.4: version "3.1.10" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== @@ -6081,7 +5836,7 @@ minimalistic-assert@^1.0.0: resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== -minimatch@^3.0.2, minimatch@^3.0.4: +minimatch@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== @@ -6105,7 +5860,7 @@ minimist-options@^4.0.2: is-plain-obj "^1.1.0" kind-of "^6.0.3" -minimist@1.2.5, minimist@^1.1.0, minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5: +minimist@1.2.5, minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5: version "1.2.5" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== @@ -6198,11 +5953,6 @@ mute-stream@~0.0.4: resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== -nan@^2.12.1: - version "2.14.1" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.1.tgz#d7be34dfa3105b91494c3147089315eff8874b01" - integrity sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw== - nanomatch@^1.2.9: version "1.2.13" resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" @@ -6325,7 +6075,7 @@ normalize-package-data@^2.0.0, normalize-package-data@^2.3.2, normalize-package- semver "2 || 3 || 4 || 5" validate-npm-package-license "^3.0.1" -normalize-path@^2.0.0, normalize-path@^2.0.1, normalize-path@^2.1.1: +normalize-path@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" integrity sha1-GrKLVW4Zg2Oowab35vogE3/mrtk= @@ -6657,14 +6407,6 @@ object.getownpropertydescriptors@^2.0.3: define-properties "^1.1.3" es-abstract "^1.17.0-next.1" -object.omit@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" - integrity sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo= - dependencies: - for-own "^0.1.4" - is-extendable "^0.1.1" - object.pick@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" @@ -6708,10 +6450,9 @@ opener@^1.5.1: resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.1.tgz#6d2f0e77f1a0af0032aca716c2c1fbb8e7e8abed" integrity sha512-goYSy5c2UXE4Ra1xixabeVh1guIX/ZV/YokJksb6q2lubWu6UbvPQ20p542/sFIll1nl8JnCyK9oBaOcCWXwvA== -openpgp@4.10.7: - version "4.10.7" - resolved "https://registry.yarnpkg.com/openpgp/-/openpgp-4.10.7.tgz#e969239ebb689093c5a73ea97e73a7d9c2a565eb" - integrity sha512-+7EkD/btnvIyGkslB0p3W123u/dajMBcfzMfOIevlZBPvCWLJXGzgNFMM5CYXUNITeBUpxCxwgHeniqr+UfESQ== +openpgp@vordimous/openpgpjs#058265f: + version "4.10.8" + resolved "https://codeload.github.com/vordimous/openpgpjs/tar.gz/058265f3748b37b6e830e7e675cb28c8202aeded" dependencies: asn1.js "^5.0.0" node-fetch "^2.1.2" @@ -6930,16 +6671,6 @@ parent-module@^1.0.0: dependencies: callsites "^3.0.0" -parse-glob@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" - integrity sha1-ssN2z7EfNVE7rdFz7wu246OIORw= - dependencies: - glob-base "^0.3.0" - is-dotfile "^1.0.0" - is-extglob "^1.0.0" - is-glob "^2.0.0" - parse-json@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" @@ -7103,11 +6834,6 @@ prepend-http@^1.0.1: resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw= -preserve@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" - integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks= - prettier-linter-helpers@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" @@ -7274,15 +7000,6 @@ qw@~1.0.1: resolved "https://registry.yarnpkg.com/qw/-/qw-1.0.1.tgz#efbfdc740f9ad054304426acb183412cc8b996d4" integrity sha1-77/cdA+a0FQwRCassYNBLMi5ltQ= -randomatic@^3.0.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.1.1.tgz#b776efc59375984e36c537b2f51a1f0aff0da1ed" - integrity sha512-TuDE5KxZ0J461RVjrJZCJc+J+zCkTb1MbH9AQUq68sMhOMcy9jLcb3BrZKgp9q9Ncltdg4QVqWrH02W2EFFVYw== - dependencies: - is-number "^4.0.0" - kind-of "^6.0.0" - math-random "^1.0.1" - rc@^1.0.1, rc@^1.1.6, rc@^1.2.8: version "1.2.8" resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" @@ -7442,15 +7159,6 @@ readdir-scoped-modules@^1.0.0, readdir-scoped-modules@^1.1.0: graceful-fs "^4.1.2" once "^1.3.0" -readdirp@^2.0.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.2.1.tgz#0e87622a3325aa33e892285caf8b4e846529a525" - integrity sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ== - dependencies: - graceful-fs "^4.1.11" - micromatch "^3.1.10" - readable-stream "^2.0.2" - rechoir@^0.6.2: version "0.6.2" resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" @@ -7491,13 +7199,6 @@ regenerator-runtime@^0.13.4: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz#d878a1d094b4306d10b9096484b33ebd55e26697" integrity sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA== -regex-cache@^0.4.2: - version "0.4.4" - resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" - integrity sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ== - dependencies: - is-equal-shallow "^0.1.3" - regex-not@^1.0.0, regex-not@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" @@ -7543,7 +7244,7 @@ repeat-element@^1.1.2: resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" integrity sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g== -repeat-string@^1.5.2, repeat-string@^1.6.1: +repeat-string@^1.6.1: version "1.6.1" resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= @@ -7656,7 +7357,7 @@ resolve-url@^0.2.1: resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= -resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.10.1, resolve@^1.13.1, resolve@^1.17.0: +resolve@^1.1.6, resolve@^1.10.0, resolve@^1.10.1, resolve@^1.13.1, resolve@^1.17.0: version "1.17.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.17.0.tgz#b25941b54968231cc2d1bb76a79cb7f2c0bf8444" integrity sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w== @@ -7911,11 +7612,6 @@ shebang-regex@^3.0.0: resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== -shell-quote@^1.6.1: - version "1.7.2" - resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.2.tgz#67a7d02c76c9da24f99d20808fcaded0e0e04be2" - integrity sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg== - shelljs@0.7.6: version "0.7.6" resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.6.tgz#379cccfb56b91c8601e4793356eb5382924de9ad" @@ -8382,13 +8078,6 @@ strip-json-comments@~2.0.1: resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= -subarg@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/subarg/-/subarg-1.0.0.tgz#f62cf17581e996b48fc965699f54c06ae268b8d2" - integrity sha1-9izxdYHplrSPyWVpn1TAauJouNI= - dependencies: - minimist "^1.1.0" - supports-color@^5.3.0: version "5.5.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"