dgraph icon indicating copy to clipboard operation
dgraph copied to clipboard

"Failed to decode param '\"+e+\"

Open happysalada opened this issue 2 years ago • 2 comments

When running dgraph, I get those weird errors in the logs

{"_SYSTEMD_UNIT":"dgraph-alpha.service","message":"\"Failed to decode param '\"+e+\"'\",t.status=t.statusCode=400),t}}e.exports=o,o.prototype.handle_error=function(e,t,n,i){var a=this.handle;if(4!==a.length)return i(e);try{a(e,t,n,i)}catch(e){i(e)}},o.prototype.handle_request=function(e,t,n){var i=this.handle;if(i.length>3)return n();try{i(e,t,n)}catch(e){n(e)}},o.prototype.match=function(e){var t;if(null!=e){if(this.regexp.fast_slash)return this.params={},this.path=\"\",!0;if(this.regexp.fast_star)return this.params={0:s(e)},this.path=e,!0;t=this.regexp.exec(e)}if(!t)return this.params=void 0,this.path=void 0,!1;this.params={},this.path=t[0];for(var n=this.keys,i=this.params,a=1;a<t.length;a++){var o=n[a-1].name,c=s(t[a]);void 0===c&&r.call(i,o)||(i[o]=c)}return!0}},5369:(e,t,n)=>{\"use strict\";var i=n(5158)(\"express:router:route\"),a=n(2521),r=n(3342),o=n(8873),s=Array.prototype.slice,c=Object.prototype.toString;function p(e){this.path=e,this.stack=[],i(\"new %o\",e),this.methods={}}e.exports=p,p.prototype._handles_method=function(e){if(this.methods._all)return!0;var t=e.toLowerCase();return\"head\"!==t||this.methods.head||(t=\"get\"),Boolean(this.methods[t])},p.prototype._options=function(){var e=Object.keys(this.methods);this.methods.get&&!this.methods.head&&e.push(\"head\");for(var t=0;t<e.length;t++)e[t]=e[t].toUpperCase();return e},p.prototype.dispatch=function(e,t,n){var i=0,a=this.stack;if(0===a.length)return n();var r=e.method.toLowerCase();\"head\"!==r||this.methods.head||(r=\"get\"),e.route=this,function o(s){if(s&&\"route\"===s)return n();if(s&&\"router\"===s)return n(s);var c=a[i++];return c?c.method&&c.method!==r?o(s):void(s?c.handle_error(s,e,t,o):c.handle_request(e,t,o)):n(s)}()},p.prototype.all=function(){for(var e=a(s.call(arguments)),t=0;t<e.length;t++){var n=e[t];if(\"function\"!=typeof n){var i=c.call(n),o=\"Route.all() requires a callback function but got a \"+i;throw new TypeError(o)}var p=r(\"/\",{},n);p.method=void 0,this.methods._all=!0,this.stack.push(p)}return this},o.forEach((function(e){p.prototype[e]=function(){for(var t=a(s.call(arguments)),n=0;n<t.length;n++){var o=t[n];if(\"function\"!=typeof o){var p=c.call(o),l=\"Route.\"+e+\"() requires a callback function but got a \"+p;throw new Error(l)}i(\"%s %o\",e,this.path);var u=r(\"/\",{},o);u.method=e,this.methods[e]=!0,this.stack.push(u)}return this}}))},4265:(e,t,n)=>{\"use strict\";var i=n(9509).Buffer,a=n(7389),r=n(7811),o=n(412)(\"express\"),s=n(2521),c=n(329).mime,p=n(5859),l=n(2611),u=n(129),d=n(1191);function m(e){return function(t,n){var a=i.isBuffer(t)?t:i.from(t,n);return p(a,e)}}function f(e){return u.parse(e,{allowPrototypes:!0})}function h(){return{}}t.etag=m({weak:!1}),t.wetag=m({weak:!0}),t.isAbsolute=function(e){return\"/\"===e[0]||\":\"===e[1]&&(\"\\\\\"===e[2]||\"/\"===e[2])||\"\\\\\\\\\"===e.substring(0,2)||void 0},t.flatten=o.function(s,\"utils.flatten: use array-flatten npm module instead\"),t.normalizeType=function(e){return~e.indexOf(\"/\")?function(e,t){for(var n=e.split(/ *; */),i={value:n[0],quality:1,params:{},originalIndex:void 0},a=1;a<n.length;++a){var r=n[a].split(/ *= */);\"q\"===r[0]?i.quality=parseFloat(r[1]):i.params[r[0]]=r[1]}return i}(e):{value:c.lookup(e),params:{}}},t.normalizeTypes=function(e){for(var n=[],i=0;i<e.length;++i)n.push(t.normalizeType(e[i]));return n},t.contentDisposition=o.function(a,\"utils.contentDisposition: use content-disposition npm module instead\"),t.compileETag=function(e){var n;if(\"function\"==typeof e)return e;switch(e){case!0:n=t.wetag;break;case!1:break;case\"strong\":n=t.etag;break;case\"weak\":n=t.wetag;break;default:throw new TypeError(\"unknown value for etag function: \"+e)}return n},t.compileQueryParser=function(e){var t;if(\"function\"==typeof e)return e;switch(e){case!0:t=d.parse;break;case!1:t=h;break;case\"extended\":t=f;break;case\"simple\":t=d.parse;break;default:throw new TypeError(\"unknown value for query parser function: \"+e)}return t},t.compileTrust=function(e){return\"function\"==typeof e?e:!0===e?function(){return!0}:\"number\"==typeof e?function(t,n){return n<e}:(\"string\"==typeof e&&(e=e.split(/ *, */)),l.compile(e||[]))},t.setCharset=function(e,t){if(!e||!t)return e;var n=r.parse(e);return n.parameters.charset=t,r.format(n)}},8706:(e,t,n)=>{\"use strict\";var i=n(5158)(\"express:view\"),a=n(5622),r=n(5747),o=a.dirname,s=a.basename,c=a.extname,p=a.join,l=a.resolve;function u(e,t){var a=t||{};if(this.deE0626 15:31:04.563736   67387 run.go:543] Lambda server at port: 20000 stopped with error: exit status 1"}Show context
{"_LINE_BREAK":"line-max","_SYSTEMD_UNIT":"dgraph-alpha.service","message":"t.message,e}},187:(e,t,n)=>{\"use strict\";var i=n(9830),a=n(5158)(\"body-parser:raw\"),r=n(3211),o=n(273);e.exports=function(e){var t=e||{},n=!1!==t.inflate,s=\"number\"!=typeof t.limit?i.parse(t.limit||\"100kb\"):t.limit,c=t.type||\"application/octet-stream\",p=t.verify||!1;if(!1!==p&&\"function\"!=typeof p)throw new TypeError(\"option verify must be function\");var l=\"function\"!=typeof c?function(e){return function(t){return Boolean(o(t,e))}}(c):c;function u(e){return e}return function(e,t,i){return e._body?(a(\"body already parsed\"),void i()):(e.body=e.body||{},o.hasBody(e)?(a(\"content-type %j\",e.headers[\"content-type\"]),l(e)?void r(e,t,i,u,a,{encoding:null,inflate:n,limit:s,verify:p}):(a(\"skip parsing\"),void i())):(a(\"skip empty body\"),void i()))}}},6560:(e,t,n)=>{\"use strict\";var i=n(9830),a=n(7811),r=n(5158)(\"body-parser:text\"),o=n(3211),s=n(273);e.exports=function(e){var t=e||{},n=t.defaultCharset||\"utf-8\",c=!1!==t.inflate,p=\"number\"!=typeof t.limit?i.parse(t.limit||\"100kb\"):t.limit,l=t.type||\"text/plain\",u=t.verify||!1;if(!1!==u&&\"function\"!=typeof u)throw new TypeError(\"option verify must be function\");var d=\"function\"!=typeof l?function(e){return function(t){return Boolean(s(t,e))}}(l):l;function m(e){return e}return function(e,t,i){if(e._body)return r(\"body already parsed\"),void i();if(e.body=e.body||{},!s.hasBody(e))return r(\"skip empty body\"),void i();if(r(\"content-type %j\",e.headers[\"content-type\"]),!d(e))return r(\"skip parsing\"),void i();var l=function(e){try{return(a.parse(e).parameters.charset||\"\").toLowerCase()}catch(e){return}}(e)||n;o(e,t,i,m,r,{encoding:l,inflate:c,limit:p,verify:u})}}},4861:(e,t,n)=>{\"use strict\";var i=n(9830),a=n(7811),r=n(9009),o=n(5158)(\"body-parser:urlencoded\"),s=n(412)(\"body-parser\"),c=n(3211),p=n(273);e.exports=function(e){var t=e||{};void 0===t.extended&&s(\"undefined extended: provide extended option\");var n=!1!==t.extended,l=!1!==t.inflate,m=\"number\"!=typeof t.limit?i.parse(t.limit||\"100kb\"):t.limit,f=t.type||\"application/x-www-form-urlencoded\",h=t.verify||!1;if(!1!==h&&\"function\"!=typeof h)throw new TypeError(\"option verify must be function\");var v=n?function(e){var t=void 0!==e.parameterLimit?e.parameterLimit:1e3,n=d(\"qs\");if(isNaN(t)||t<1)throw new TypeError(\"option parameterLimit must be a positive number\");return isFinite(t)&&(t|=0),function(e){var i=u(e,t);if(void 0===i)throw o(\"too many parameters\"),r(413,\"too many parameters\",{type:\"parameters.too.many\"});var a=Math.max(100,i);return o(\"parse extended urlencoding\"),n(e,{allowPrototypes:!0,arrayLimit:a,depth:1/0,parameterLimit:t})}}(t):function(e){var t=void 0!==e.parameterLimit?e.parameterLimit:1e3,n=d(\"querystring\");if(isNaN(t)||t<1)throw new TypeError(\"option parameterLimit must be a positive number\");return isFinite(t)&&(t|=0),function(e){if(void 0===u(e,t))throw o(\"too many parameters\"),r(413,\"too many parameters\",{type:\"parameters.too.many\"});return o(\"parse urlencoding\"),n(e,void 0,void 0,{maxKeys:t})}}(t),g=\"function\"!=typeof f?function(e){return function(t){return Boolean(p(t,e))}}(f):f;function x(e){return e.length?v(e):{}}return function(e,t,n){if(e._body)return o(\"body already parsed\"),void n();if(e.body=e.body||{},!p.hasBody(e))return o(\"skip empty body\"),void n();if(o(\"content-type %j\",e.headers[\"content-type\"]),!g(e))return o(\"skip parsing\"),void n();var i=function(e){try{return(a.parse(e).parameters.charset||\"\").toLowerCase()}catch(e){return}}(e)||\"utf-8\";if(\"utf-8\"!==i)return o(\"invalid charset\"),void n(r(415,'unsupported charset \"'+i.toUpperCase()+'\"',{charset:i,type:\"charset.unsupported\"}));c(e,t,n,x,o,{debug:o,encoding:i,inflate:l,limit:m,verify:h})}};var l=Object.create(null);function u(e,t){for(var n=0,i=0;-1!==(i=e.indexOf(\"&\",i));)if(i++,++n===t)return;return n}function d(e){var t=l[e];if(void 0!==t)return t.parse;switch(e){case\"qs\":t=n(129);break;case\"querystring\":t=n(1191)}return l[e]=t,t.parse}},706:e=>{!function(){\"use strict\";e.exports=function(e){return(e instanceof Buffer?e:Buffer.from(e.toString(),\"binary\")).toString(\"base64\")}}()},9830:e=>{\"use strict\";e.exports=function(e,t){return\"string\"==typeof e?o(e):\"number\"==typeof e?r(e,t):null},e.exports.format=r,e.exports.parse=o;var t=/\\B(?=(\\d{3})+(?!\\d))/g,n=/(?:\\.0*|(\\.[^0]+)0+)$/,i={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},a=/^((-|\\+)?(\\d+(?:\\.\\d+)?)) *(kb|mb|gb|tb|pb)$/i;function r(e,a){if(!Number.isFinite(e))return null;var r=Math.abs(e),o=a&&a.thousandsSeparator||\"\",s=a&&a.unitSeparator||\"\",c=a&&void 0!==a.decimalPlaces?a.decimalPlaces:2,p=Boolean(a&&a.fixedDecimals),l=a&&a.unit||\"\";l&&i[l.toLowerCase()]||(l=r>=i.pb?\"PB\":r>=i.tb?\"TB\":r>=i.gb?\"GB\":r>=i.mb?\"MB\":r>=i.kb?\"KB\":\"B\");var u=(e/i[l.toLowerCase()]).toFixed(c);return p||(u=u.replace(n,\"$1\")),o&&(u=u.replace(t,o)),u+s+l}function o(e){if(\"number\"==typeof e&&!isNaN(e))return e;if(\"string\"!=typeof e)return null;var t,n=a.exec(e),r=\"b\";return n?(t=parseFloat(n[1]),r=n[4].toLowerCase()):(t=parseInt(e,10),r=\"b\"),Math.floor(i[r]*t)}},7389:(e,t,n)=>{\"use strict\";e.exports=function(e,t){var n=t||{};return function(e){var t=e.parameters,n=e.type;if(!n||\"string\"!=typeof n||!m.test(n))throw new TypeError(\"invalid type\");var i=String(n).toLowerCase();if(t&&\"object\"==typeof t)for(var a,r=Object.keys(t).sort(),o=0;o<r.length;o++){var s=\"*\"===(a=r[o]).substr(-1)?w(t[a]):y(t[a]);i+=\"; \"+a+\"=\"+s}return i}(new k(n.type||\"attachment\",function(e,t){if(void 0!==e){var n={};if(\"string\"!=typeof e)throw new TypeError(\"filename must be a string\");if(void 0===t&&(t=!0),\"string\"!=typeof t&&\"boolean\"!=typeof t)throw new TypeError(\"fallback must be a string or boolean\");if(\"string\"==typeof t&&c.test(t))throw new TypeError(\"fallback must be ISO-8859-1 string\");var a=i(e),r=d.test(a),s=\"string\"!=typeof t?t&&g(a):i(t),p=\"string\"==typeof s&&s!==a;return(p||!r||o.test(a))&&(n[\"filename*\"]=a),(r||p)&&(n.filename=p?s:a),n}}(e,n.fallback)))},e.exports.parse=function(e){if(!e||\"string\"!=typeof e)throw new TypeError(\"argument string is required\");var t=h.exec(e);if(!t)throw new TypeError(\"invalid type format\");var n,i,a=t[0].length,r=t[1].toLowerCase(),o=[],s={};for(a=u.lastIndex=\";\"===t[0].substr(-1)?a-1:a;t=u.exec(e);){if(t.index!==a)throw new TypeError(\"invalid parameter format\");if(a+=t[0].length,n=t[1].toLowerCase(),i=t[2],-1!==o.indexOf(n))throw new TypeError(\"invalid duplicate parameter\");o.push(n),n.indexOf(\"*\")+1!==n.length?\"string\"!=typeof s[n]&&('\"'===i[0]&&(i=i.substr(1,i.length-2).replace(p,\"$1\")),s[n]=i):(n=n.slice(0,-1),i=v(i),s[n]=i)}if(-1!==a&&a!==e.length)throw new TypeError(\"invalid parameter format\");return new k(r,s)};var i=n(5622).basename,a=n(9509).Buffer,r=/[\\x00-\\x20\"'()*,/:;<=>?@[\\\\\\]{}\\x7f]/g,o=/%[0-9A-Fa-f]{2}/,s=/%([0-9A-Fa-f]{2})/g,c=/[^\\x20-\\x7e\\xa0-\\xff]/g,p=/\\\\([\\u0000-\\u007f])/g,l=/([\\\\\"])/g,u=/;[\\x09\\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\\x09\\x20]*=[\\x09\\x20]*(\"(?:[\\x20!\\x23-\\x5b\\x5d-\\x7e\\x80-\\xff]|\\\\[\\x20-\\x7e])*\"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\\x09\\x20]*/g,d=/^[\\x20-\\x7e\\x80-\\xff]+$/,m=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,f=/^([A-Za-z0-9!#$%&+\\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,h=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\\x09\\x20]*(?:$|;)/;function v(e){var t=f.exec(e);if(!t)throw new TypeError(\"invalid extended field value\");var n,i=t[1].toLowerCase(),r=t[2].replace(s,x);switch(i){case\"iso-8859-1\":n=g(r);break;case\"utf-8\":n=a.from(r,\"binary\").toString(\"utf8\");break;default:throw new TypeError(\"unsupported charset in extended field\")}return n}function g(e){return String(e).replace(c,\"?\")}function x(e,t){return String.fromCharCode(parseInt(t,16))}function b(e){return\"%\"+String(e).charCodeAt(0).toString(16).toUpperCase()}function y(e){return'\"'+String(e).replace(l,\"\\\\$1\")+'\"'}function w(e){var t=String(e);return\"UTF-8''\"+encodeURIComponent(t).replace(r,b)}function k(e,t){this.type=e,this.parameters=t}},7811:(e,t)=>{\"use strict\";var n=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *(\"(?:[\\u000b\\u0020\\u0021\\u0023-\\u005b\\u005d-\\u007e\\u0080-\\u00ff]|\\\\[\\u000b\\u0020-\\u00ff])*\"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,i=/^[\\u000b\\u0020-\\u007e\\u0080-\\u00ff]+$/,a=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\\\([\\u000b\\u0020-\\u00ff])/g,o=/([\\\\\"])/g,s=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function c(e){var t=String(e);if(a.test(t))return t;if(t.length>0&&!i.test(t))throw new TypeError(\"invalid parameter value\");return'\"'+t.replace(o,\"\\\\$1\")+'\"'}function p(e){this.parameters=Object.create(null),this.type=e}t.format=function(e){if(!e||\"object\"!=typeof e)throw new TypeError(\"argument obj is required\");var t=e.parameters,n=e.type;if(!n||!s.test(n))throw new TypeError(\"invalid type\");var i=n;if(t&&\"object\"==typeof t)for(var r,o=Object.keys(t).sort(),p=0;p<o.length;p++){if(r=o[p],!a.test(r))throw new TypeError(\"invalid parameter name\");i+=\"; \"+r+\"=\"+c(t[r])}return i},t.parse=function(e){if(!e)throw new TypeError(\"argument string is required\");var t=\"object\"==typeof e?function(e){var t;if(\"function\"==typeof e.getHeader?t=e.getHeader(\"content-type\"):\"object\"==typeof e.headers&&(t=e.headers&&e.headers[\"content-type\"]),\"string\"!=typeof t)throw new TypeError(\"content-type header is missing from object\");return t}(e):e;if(\"string\"!=typeof t)throw new TypeError(\"argument string is required to be a string\");var i=t.indexOf(\";\"),a=-1!==i?t.substr(0,i).trim():t.trim();if(!s.test(a))throw new TypeError(\"invalid media type\");var o=new p(a.toLowerCase());if(-1!==i){var c,l,u;for(n.lastIndex=i;l=n.exec(t);){if(l.index!==i)throw new TypeError(\"invalid parameter format\");i+=l[0].length,c=l[1].toLowerCase(),'\"'===(u=l[2])[0]&&(u=u.substr(1,u.length-2).replace(r,\"$1\")),o.parameters[c]=u}if(i!==t.length)throw new TypeError(\"invalid parameter format\")}return o}},1365:(e,t,n)=>{var i=n(6417);function a(e){return i.createHash(\"sha1\").update(e).digest(\"hex\")}t.sign=function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Cookie value must be provided as a string.\");if(\"string\"!=typeof t)throw new TypeError(\"Secret string must be provided.\");return e+\".\"+i.createHmac(\"sha256\",t).update(e).digest(\"base64\").replace(/\\=+$/,\"\")},t.unsign=function(e,n){if(\"string\"!=typeof e)throw new TypeError(\"Signed cookie string must be provided.\");if(\"string\"!=typeof n)throw new TypeError(\"Secret string must be provided.\");var i=e.slice(0,e.lastIndexOf(\".\"));return a(t.sign(i,n))==a(e)&&i}},6489:(e,t)=>{\"use strict\";t.parse=function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"argument str must be a string\");for(var i={},r=t||{},s=e.split(a),c=r.decode||n,p=0;p<s.length;p++){var l=s[p],u=l.indexOf(\"=\");if(!(u<0)){var d=l.substr(0,u).trim(),m=l.substr(++u,l.length).trim();'\"'==m[0]&&(m=m.slice(1,-1)),null==i[d]&&(i[d]=o(m,c))}}return i},t.serialize=function(e,t,n){var a=n||{},o=a.encode||i;if(\"function\"!=typeof o)throw new TypeError(\"option encode is invalid\");if(!r.test(e))throw new TypeError(\"argument name is invalid\");var s=o(t);if(s&&!r.test(s))throw new TypeError(\"argument val is invalid\");var c=e+\"=\"+s;if(null!=a.maxAge){var p=a.maxAge-0;if(isNaN(p))throw new Error(\"maxAge should be a Number\");c+=\"; Max-Age=\"+Math.floor(p)}if(a.domain){if(!r.test(a.domain))throw new TypeError(\"option domain is invalid\");c+=\"; Domain=\"+a.domain}if(a.path){if(!r.test(a.path))throw new TypeError(\"option path is invalid\");c+=\"; Path=\"+a.path}if(a.expires){if(\"function\"!=typeof a.expires.toUTCString)throw new TypeError(\"option expires is invalid\");c+=\"; Expires=\"+a.expires.toUTCString()}if(a.httpOnly&&(c+=\"; HttpOnly\"),a.secure&&(c+=\"; Secure\"),a.sameSite)switch(\"string\"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:c+=\"; SameSite=Strict\";break;case\"lax\":c+=\"; SameSite=Lax\";break;case\"strict\":c+=\"; SameSite=Strict\";break;case\"none\":c+=\"; SameSite=None\";break;default:throw new TypeError(\"option sameSite is invalid\")}return c};var n=decodeURIComponent,i=encodeURIComponent,a=/; */,r=/^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;function o(e,t){try{return t(e)}catch(t){return e}}},1227:(e,t,n)=>{function i(){var e;try{e=t.storage.debug}catch(e){}return!e&&\"undefined\"!=typeof process&&\"env\"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(1658)).log=function(){return\"object\"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?\"%c\":\"\")+this.namespace+(n?\" %c\":\" \")+e[0]+(n?\"%c \":\" \")+\"+\"+t.humanize(this.diff),n){var i=\"color: \"+this.color;e.splice(1,0,i,\"color: inherit\");var a=0,r=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){\"%%\"!==e&&(a++,\"%c\"===e&&(r=a))})),e.splice(r,0,i)}},t.save=function(e){try{null==e?t.storage.removeItem(\"debug\"):t.storage.debug=e}catch(e){}},t.load=i,t.useColors=function(){return!(\"undefined\"==typeof window||!window.process||\"renderer\"!==window.process.type)||(\"undefined\"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||\"undefined\"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||\"undefined\"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/)&&parseInt(RegExp.$1,10)>=31||\"undefined\"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/))},t.storage=\"undefined\"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=[\"lightseagreen\",\"forestgreen\",\"goldenrod\",\"dodgerblue\",\"darkorchid\",\"crimson\"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return\"[UnexpectedJSONParseError]: \"+e.message}},t.enable(i())},1658:(e,t,n)=>{var i;function a(e){function n(){if(n.enabled){var e=n,a=+new Date,r=a-(i||a);e.diff=r,e.prev=i,e.curr=a,i=a;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=t.coerce(o[0]),\"string\"!=typeof o[0]&&o.unshift(\"%O\");var c=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(n,i){if(\"%%\"===n)return n;c++;var a=t.formatters[i];if(\"function\"==typeof a){var r=o[c];n=a.call(e,r),o.splice(c,1),c--}return n})),t.formatArgs.call(e,o);var p=n.log||t.log||console.log.bind(console);p.apply(e,o)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,i=0;for(n in e)i=(i<<5)-i+e.charCodeAt(n),i|=0;return t.colors[Math.abs(i)%t.colors.length]}(e),\"function\"==typeof t.init&&t.init(n),n}(t=e.exports=a.debug=a.default=a).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable(\"\")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=(\"string\"==typeof e?e:\"\").split(/[\\s,]+/),i=n.length,a=0;a<i;a++)n[a]&&(\"-\"===(e=n[a].replace(/\\*/g,\".*?\"))[0]?t.skips.push(new RegExp(\"^\"+e.substr(1)+\"$\")):t.names.push(new RegExp(\"^\"+e+\"$\")))},t.enabled=function(e){var n,i;for(n=0,i=t.skips.length;n<i;n++)if(t.skips[n].test(e))return!1;for(n=0,i=t.names.length;n<i;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(7824),t.names=[],t.skips=[],t.formatters={}},5158:(e,t,n)=>{\"undefined\"!=typeof process&&\"renderer\"===process.type?e.exports=n(1227):e.exports=n(39)},39:(e,t,n)=>{var i=n(3867),a=n(1669);(t=e.exports=n(1658)).init=function(e){e.inspectOpts={};for(var n=Object.keys(t.inspectOpts),i=0;i<n.length;i++)e.inspectOpts[n[i]]=t.inspectOpts[n[i]]},t.log=function(){return o.write(a.format.apply(a,arguments)+\"\\n\")},t.formatArgs=function(e){var n=this.namespace;if(this.useColors){var i=this.color,a=\"  \u001b[3\"+i+\";1m\"+n+\" \u001b[0m\";e[0]=a+e[0].split(\"\\n\").join(\"\\n\"+a),e.push(\"\u001b[3\"+i+\"m+\"+t.humanize(this.diff)+\"\u001b[0m\")}else e[0]=(new Date).toUTCString()+\" \"+n+\" \"+e[0]},t.save=function(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e},t.load=s,t.useColors=function(){return\"colors\"in t.inspectOpts?Boolean(t.inspectOpts.colors):i.isatty(r)},t.colors=[6,2,3,4,5,1],t.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()})),i=process.env[t];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&(\"null\"===i?null:Number(i)),e[n]=i,e}),{});var r=parseInt(process.env.DEBUG_FD,10)||2;1!==r&&2!==r&&a.deprecate((function(){}),\"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)\")();var o=1===r?process.stdout:2===r?process.stderr:function(e){var t;switch(process.binding(\"tty_wrap\").guessHandleType(e)){case\"TTY\":(t=new i.WriteStream(e))._type=\"tty\",t._handle&&t._handle.unref&&t._handle.unref();break;case\"FILE\":(t=new(n(5747).SyncWriteStream)(e,{autoClose:!1}))._type=\"fs\";break;case\"PIPE\":case\"TCP\":(t=new(n(1631).Socket)({fd:e,readable:!1,writable:!0})).readable=!1,t.read=null,t._type=\"pipe\",t._handle&&t._handle.unref&&t._handle.unref();break;default:throw new Error(\"Implement me. Unknown stream file type!\")}return t.fd=e,t._isStdio=!0,t}(r);function s(){return process.env.DEBUG}t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split(\"\\n\").map((function(e){return e.trim()})).join(\" \")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)},t.enable(s())},412:(module,__unused_webpack_exports,__webpack_require__)=>{var callSiteToString=__webpack_require__(2316).callSiteToString,eventListenerCount=__webpack_require__(2316).eventListenerCount,relative=__webpack_require__(5622).relative;module.exports=depd;var basePath=process.cwd();function containsNamespace(e,t){for(var n=e.split(/[ ,]+/),i=String(t).toLowerCase(),a=0;a<n.length;a++){var r=n[a];if(r&&(\"*\"===r||r.toLowerCase()===i))return!0}return!1}function convertDataDescriptorToAccessor(e,t,n){var i=Object.getOwnPropertyDescriptor(e,t),a=i.value;return i.get=function(){return a},i.writable&&(i.set=function(e){return a=e}),delete i.value,delete i.writable,Object.defineProperty(e,t,i),i}function createArgumentsString(e){for(var t=\"\",n=0;n<e;n++)t+=\", arg\"+n;return t.substr(2)}function createStackString(e){var t=this.name+\": \"+this.namespace;this.message&&(t+=\" deprecated \"+this.message);for(var n=0;n<e.length;n++)t+=\"\\n    at \"+callSiteToString(e[n]);return t}function depd(e){if(!e)throw new TypeError(\"argument namespace is required\");var t=callSiteLocation(getStack()[1])[0];function n(e){log.call(n,e)}return n._file=t,n._ignored=isignored(e),n._namespace=e,n._traced=istraced(e),n._warned=Object.create(null),n.function=wrapfunction,n.property=wrapproperty,n}function isignored(e){return!!process.noDeprecation||containsNamespace(process.env.NO_DEPRECATION||\"\",e)}function istraced(e){return!!process.traceDeprecation||containsNamespace(process.env.TRACE_DEPRECATION||\"\",e)}function log(e,t){var n=0!==eventListenerCount(process,\"deprecation\");if(n||!this._ignored){var i,a,r,o,s=0,c=!1,p=getStack(),l=this._file;for(t?(o=t,(r=callSiteLocation(p[1])).name=o.name,l=r[0]):r=o=callSiteLocation(p[s=2]);s<p.length;s++)if((a=(i=callSiteLocation(p[s]))[0])===l)c=!0;else if(a===this._file)l=this._file;else if(c)break;var u=i?o.join(\":\")+\"__\"+i.join(\":\"):void 0;if(void 0===u||!(u in this._warned)){this._warned[u]=!0;var d=e;if(d||(d=r!==o&&r.name?defaultMessage(r):defaultMessage(o)),n){var m=DeprecationError(this._namespace,d,p.slice(s));process.emit(\"deprecation\",m)}else{var f=(process.stderr.isTTY?formatColor:formatPlain).call(this,d,i,p.slice(s));process.stderr.write(f+\"\\n\",\"utf8\")}}}}function callSiteLocation(e){var t=e.getFileName()||\"<anonymous>\",n=e.getLineNumber(),i=e.getColumnNumber();e.isEval()&&(t=e.getEvalOrigin()+\", \"+t);var a=[t,n,i];return a.callSite=e,a.name=e.getFunctionName(),a}function defaultMessage(e){var t=e.callSite,n=e.name;n||(n=\"<anonymous@\"+formatLocation(e)+\">\");var i=t.getThis(),a=i&&t.getTypeName();return\"Object\"===a&&(a=void 0),\"Function\"===a&&(a=i.name||a),a&&t.getMethodName()?a+\".\"+n:n}function formatPlain(e,t,n){var i=(new Date).toUTCString()+\" \"+this._namespace+\" deprecated \"+e;if(this._traced){for(var a=0;a<n.length;a++)i+=\"\\n    at \"+callSiteToString(n[a]);return i}return t&&(i+=\" at \"+formatLocation(t)),i}function formatColor(e,t,n){var i=\"\u001b[36;1m\"+this._namespace+\"\u001b[22;39m \u001b[33;1mdeprecated\u001b[22;39m \u001b[0m\"+e+\"\u001b[39m\";if(this._traced){for(var a=0;a<n.length;a++)i+=\"\\n    \u001b[36mat \"+callSiteToString(n[a])+\"\u001b[39m\";return i}return t&&(i+=\" \u001b[36m\"+formatLocation(t)+\"\u001b[39m\"),i}function formatLocation(e){return relative(basePath,e[0])+\":\"+e[1]+\":\"+e[2]}function getStack(){var e=Error.stackTraceLimit,t={},n=Error.prepareStackTrace;Error.prepareStackTrace=prepareObjectStackTrace,Error.stackTraceLimit=Math.max(10,e),Error.captureStackTrace(t);var i=t.stack.slice(1);return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i}function prepareObjectStackTrace(e,t){return t}function wrapfunction(fn,message){if(\"function\"!=typeof fn)throw new TypeError(\"argument fn must be a function\");var args=createArgumentsString(fn.length),deprecate=this,stack=getStack(),site=callSiteLocation(stack[1]);site.name=fn.name;var deprecatedfn=eval(\"(function (\"+args+') {\\n\"use strict\"\\nlog.call(deprecate, message, site)\\nreturn fn.apply(this, arguments)\\n})');return deprecatedfn}function wrapproperty(e,t,n){if(!e||\"object\"!=typeof e&&\"function\"!=typeof e)throw new TypeError(\"argument obj must be object\");var i=Object.getOwnPropertyDescriptor(e,t);if(!i)throw new TypeError(\"must call property on owner object\");if(!i.configurable)throw new TypeError(\"property must be configurable\");var a=this,r=callSiteLocation(getStack()[1]);r.name=t,\"value\"in i&&(i=convertDataDescriptorToAccessor(e,t,n));var o=i.get,s=i.set;\"function\"==typeof o&&(i.get=function(){return log.call(a,n,r),o.apply(this,arguments)}),\"function\"==typeof s&&(i.set=function(){return log.call(a,n,r),s.apply(this,arguments)}),Object.defineProperty(e,t,i)}function DeprecationError(e,t,n){var i,a=new Error;return Object.defineProperty(a,\"constructor\",{value:DeprecationError}),Object.defineProperty(a,\"message\",{configurable:!0,enumerable:!1,value:t,writable:!0}),Object.defineProperty(a,\"name\",{enumerable:!1,configurable:!0,value:\"DeprecationError\",writable:!0}),Object.defineProperty(a,\"namespace\",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(a,\"stack\",{configurable:!0,enumerable:!1,get:function(){return void 0!==i?i:i=createStackString.call(this,n)},set:function(e){i=e}}),a}},5868:e=>{\"use strict\";e.exports=function(e){var t,n=!0,i=function(e){var t,n=\"\";if(e.isNative()?n=\"native\":e.isEval()?(t=e.getScriptNameOrSourceURL())||(n=e.getEvalOrigin()):t=e.getFileName(),t){n+=t;var i=e.getLineNumber();if(null!=i){n+=\":\"+i;var a=e.getColumnNumber();a&&(n+=\":\"+a)}}return n||\"unknown source\"}(e),a=e.getFunctionName(),r=e.isConstructor(),o=\"\";if(!(e.isToplevel()||r)){var s=e.getMethodName(),c=(t=e.receiver).constructor&&t.constructor.name||null;a?(c&&0!==a.indexOf(c)&&(o+=c+\".\"),o+=a,s&&a.lastIndexOf(\".\"+s)!==a.length-s.length-1&&(o+=\" [as \"+s+\"]\")):o+=c+\".\"+(s||\"<anonymous>\")}else r?o+=\"new \"+(a||\"<anonymous>\"):a?o+=a:(n=!1,o+=i);return n&&(o+=\" (\"+i+\")\"),o}},1671:e=>{\"use strict\";e.exports=function(e,t){return e.listeners(t).length}},2316:(e,t,n)=>{\"use strict\";var i=n(8614).EventEmitter;function a(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var i=n();return Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:i}),i}})}function r(e){return e.toString()}a(e.exports,\"callSiteToString\",(function(){var e=Error.stackTraceLimit,t={},i=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t},Error.stackTraceLimit=2,Error.captureStackTrace(t);var a=t.stack.slice();return Error.prepareStackTrace=i,Error.stackTraceLimit=e,a[0].toString?r:n(5868)})),a(e.exports,\"eventListenerCount\",(function(){return i.listenerCount||n(1671)}))},6149:(e,t,n)=>{\"use strict\";var i=n(5747).ReadStream,a=n(2413);function r(){\"number\"==typeof this.fd&&this.close()}e.exports=function(e){return e instanceof i?function(e){return e.destroy(),\"function\"==typeof e.close&&e.on(\"open\",r),e}(e):e instanceof a?(\"function\"==typeof e.destroy&&e.destroy(),e):e}},4331:e=>{\"use strict\";function t(e,t){return function(n){for(var i=new Array(arguments.length),a=this,r=\"error\"===e?n:null,o=0;o<i.length;o++)i[o]=arguments[o];t(r,a,e,i)}}e.exports=function(e,n){if(!Array.isArray(e))throw new TypeError(\"arg must be an array of [ee, events...] arrays\");for(var i=[],a=0;a<e.length;a++){var r=e[a];if(!Array.isArray(r)||r.length<2)throw new TypeError(\"each array member must be [ee, events...]\");for(var o=r[0],s=1;s<r.length;s++){var c=r[s],p=t(c,l);o.on(c,p),i.push({ee:o,event:c,fn:p})}}function l(){u(),n.apply(null,arguments)}function u(){for(var e,t=0;t<i.length;t++)(e=i[t]).ee.removeListener(e.event,e.fn)}function d(e){n=e}return d.cancel=u,d}},517:e=>{\"use strict\";e.exports=function(e){return String(e).replace(n,\"$1�$2\").replace(t,encodeURI)};var t=/(?:[^\\x21\\x25\\x26-\\x3B\\x3D\\x3F-\\x5B\\x5D\\x5F\\x61-\\x7A\\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g,n=/(^|[^\\uD800-\\uDBFF])[\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF]([^\\uDC00-\\uDFFF]|$)/g},5573:e=>{\"use strict\";var t=/[\"'&<>]/;e.exports=function(e){var n,i=\"\"+e,a=t.exec(i);if(!a)return i;var r=\"\",o=0,s=0;for(o=a.index;o<i.length;o++){switch(i.charCodeAt(o)){case 34:n=\"&quot;\";break;case 38:n=\"&amp;\";break;case 39:n=\"&#39;\";break;case 60:n=\"&lt;\";break;case 62:n=\"&gt;\";break;default:continue}s!==o&&(r+=i.substring(s,o)),s=o+1,r+=n}return s!==o?r+i.substring(s,o):r}},5859:(e,t,n)=>{\"use strict\";e.exports=function(e,t){if(null==e)throw new TypeError(\"argument entity is required\");var n,o=(n=e,\"function\"==typeof a&&n instanceof a||n&&\"object\"==typeof n&&\"ctime\"in n&&\"[object Date]\"===r.call(n.ctime)&&\"mtime\"in n&&\"[object Date]\"===r.call(n.mtime)&&\"ino\"in n&&\"number\"==typeof n.ino&&\"size\"in n&&\"number\"==typeof n.size),s=t&&\"boolean\"==typeof t.weak?t.weak:o;if(!o&&\"string\"!=typeof e&&!Buffer.isBuffer(e))throw new TypeError(\"argument entity must be string, Buffer, or fs.Stats\");var c,p,l=o?(p=(c=e).mtime.getTime().toString(16),'\"'+c.size.toString(16)+\"-\"+p+'\"'):function(e){if(0===e.length)return'\"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk\"';var t=i.createHash(\"sha1\").update(e,\"utf8\").digest(\"base64\").substring(0,27);return'\"'+(\"string\"==typeof e?Buffer.byteLength(e,\"utf8\"):e.length).toString(16)+\"-\"+t+'\"'}(e);return s?\"W/\"+l:l};var i=n(6417),a=n(5747).Stats,r=Object.prototype.toString},7185:(e,t)=>{\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});const n=new WeakMap,i=new WeakMap;function a(e){const t=n.get(e);return console.assert(null!=t,\"'this' is expected an Event object, but got\",e),t}function r(e){null==e.passiveListener?e.event.cancelable&&(e.canceled=!0,\"function\"==typeof e.event.preventDefault&&e.event.preventDefault()):\"undefined\"!=typeof console&&\"function\"==typeof console.error&&console.error(\"Unable to preventDefault inside passive event listener invocation.\",e.passiveListener)}function o(e,t){n.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,\"isTrusted\",{value:!1,enumerable:!0});const i=Object.keys(t);for(let e=0;e<i.length;++e){const t=i[e];t in this||Object.defineProperty(this,t,s(t))}}function s(e){return{get(){return a(this).event[e]},set(t){a(this).event[e]=t},configurable:!0,enumerable:!0}}function c(e){return{value(){const t=a(this).event;return t[e].apply(t,arguments)},configurable:!0,enumerable:!0}}function p(e){if(null==e||e===Object.prototype)return o;let t=i.get(e);return null==t&&(t=function(e,t){const n=Object.keys(t);if(0===n.length)return e;function i(t,n){e.call(this,t,n)}i.prototype=Object.create(e.prototype,{constructor:{value:i,configurable:!0,writable:!0}});for(let a=0;a<n.length;++a){const r=n[a];if(!(r in e.prototype)){const e=\"function\"==typeof Object.getOwnPropertyDescriptor(t,r).value;Object.defineProperty(i.prototype,r,e?c(r):s(r))}}return i}(p(Object.getPrototypeOf(e)),e),i.set(e,t)),t}function l(e){return a(e).immediateStopped}function u(e,t){a(e).passiveListener=t}o.prototype={get type(){return a(this).event.type},get target(){return a(this).eventTarget},get currentTarget(){return a(this).currentTarget},composedPath(){const e=a(this).currentTarget;return null==e?[]:[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return a(this).eventPhase},stopPropagation(){const e=a(this);e.stopped=!0,\"function\"==typeof e.event.stopPropagation&&e.event.stopPropagation()},stopImmediatePropagation(){const e=a(this);e.stopped=!0,e.immediateStopped=!0,\"function\"==typeof e.event.stopImmediatePropagation&&e.event.stopImmediatePropagation()},get bubbles(){return Boolean(a(this).event.bubbles)},get cancelable(){return Boolean(a(this).event.cancelable)},preventDefault(){r(a(this))},get defaultPrevented(){return a(this).canceled},get composed(){return Boolean(a(this).event.composed)},get timeStamp(){return a(this).timeStamp},get srcElement(){return a(this).eventTarget},get cancelBubble(){return a(this).stopped},set cancelBubble(e){if(!e)return;const t=a(this);t.stopped=!0,\"boolean\"==typeof t.event.cancelBubble&&(t.event.cancelBubble=!0)},get returnValue(){return!a(this).canceled},set returnValue(e){e||r(a(this))},initEvent(){}},Object.defineProperty(o.prototype,\"constructor\",{value:o,configurable:!0,writable:!0}),\"undefined\"!=typeof window&&void 0!==window.Event&&(Object.setPrototypeOf(o.prototype,window.Event.prototype),i.set(window.Event.prototype,o));const d=new WeakMap;function m(e){return null!==e&&\"object\"==typeof e}function f(e){const t=d.get(e);if(null==t)throw new TypeError(\"'this' is expected an EventTarget object, but got another value.\");return t}function h(e,t){Object.defineProperty(e,`on${t}`,function(e){return{get(){let t=f(this).get(e);for(;null!=t;){if(3===t.listenerType)return t.listener;t=t.next}return null},set(t){\"function\"==typeof t||m(t)||(t=null);const n=f(this);let i=null,a=n.get(e);for(;null!=a;)3===a.listenerType?null!==i?i.next=a.next:null!==a.next?n.set(e,a.next):n.delete(e):i=a,a=a.next;if(null!==t){const a={listener:t,listenerType:3,passive:!1,once:!1,next:null};null===i?n.set(e,a):i.next=a}},configurable:!0,enumerable:!0}}(t))}function v(e){function t(){g.call(this)}t.prototype=Object.create(g.prototype,{constructor:{value:t,configurable:!0,writable:!0}});for(let n=0;n<e.length;++n)h(t.prototype,e[n]);return t}function g(){if(!(this instanceof g)){if(1===arguments.length&&Array.isArray(arguments[0]))return v(arguments[0]);if(arguments.length>0){const e=new Array(arguments.length);for(let t=0;t<arguments.length;++t)e[t]=arguments[t];return v(e)}throw new TypeError(\"Cannot call a class as a function\")}d.set(this,new Map)}g.prototype={addEventListener(e,t,n){if(null==t)return;if(\"function\"!=typeof t&&!m(t))throw new TypeError(\"'listener' should be a function or an object.\");const i=f(this),a=m(n),r=(a?Boolean(n.capture):Boolean(n))?1:2,o={listener:t,listenerType:r,passive:a&&Boolean(n.passive),once:a&&Boolean(n.once),next:null};let s=i.get(e);if(void 0===s)return void i.set(e,o);let c=null;for(;null!=s;){if(s.listener===t&&s.listenerType===r)return;c=s,s=s.next}c.next=o},removeEventListener(e,t,n){if(null==t)return;const i=f(this),a=(m(n)?Boolean(n.capture):Boolean(n))?1:2;let r=null,o=i.get(e);for(;null!=o;){if(o.listener===t&&o.listenerType===a)return void(null!==r?r.next=o.next:null!==o.next?i.set(e,o.next):i.delete(e));r=o,o=o.next}},dispatchEvent(e){if(null==e||\"string\"!=typeof e.type)throw new TypeError('\"event.type\" should be a string.');const t=f(this),n=e.type;let i=t.get(n);if(null==i)return!0;const r=function(e,t){return new(p(Object.getPrototypeOf(t)))(e,t)}(this,e);let o=null;for(;null!=i;){if(i.once?null!==o?o.next=i.next:null!==i.next?t.set(n,i.next):t.delete(n):o=i,u(r,i.passive?i.listener:null),\"function\"==typeof i.listener)try{i.listener.call(this,r)}catch(e){\"undefined\"!=typeof console&&\"function\"==typeof console.error&&console.error(e)}else 3!==i.listenerType&&\"function\"==typeof i.listener.handleEvent&&i.listener.handleEvent(r);if(l(r))break;i=i.next}return u(r,null),function(e,t){a(e).eventPhase=0}(r),function(e,t){a(e).currentTarget=null}(r),!r.defaultPrevented}},Object.defineProperty(g.prototype,\"constructor\",{value:g,configurable:!0,writable:!0}),\"undefined\"!=typeof window&&void 0!==window.EventTarget&&Object.setPrototypeOf(g.prototype,window.EventTarget.prototype),t.defineEventAttribute=h,t.EventTarget=g,t.default=g,e.exports=g,e.exports.EventTarget=e.exports.default=g,e.exports.defineEventAttribute=h},9268:(e,t,n)=>{\"use strict\";e.exports=n(5499)},8346:(e,t,n)=>{\"use strict\";var i=n(7838),a=n(9483),r=n(8873),o=n(1735),s=n(7667),c=n(5158)(\"express:application\"),p=n(8706),l=n(8605),u=n(4265).compileETag,d=n(4265).compileQueryParser,m=n(4265).compileTrust,f=n(412)(\"express\"),h=n(2521),v=n(1322),g=n(5622).resolve,x=n(6644),b=Array.prototype.slice,y=e.exports={},w=\"@@symbol:trust_proxy_default\";function k(e){\"test\"!==this.get(\"env\")&&console.error(e.stack||e.toString())}y.init=function(){this.cache={},this.engines={},this.settings={},this.defaultConfiguration()},y.defaultConfiguration=function(){var e=\"production\";this.enable(\"x-powered-by\"),this.set(\"etag\",\"weak\"),this.set(\"env\",e),this.set(\"query parser\",\"extended\"),this.set(\"subdomain offset\",2),this.set(\"trust proxy\",!1),Object.defineProperty(this.settings,w,{configurable:!0,value:!0}),c(\"booting in %s mode\",e),this.on(\"mount\",(function(e){!0===this.settings[w]&&\"function\"==typeof e.settings[\"trust proxy fn\"]&&(delete this.settings[\"trust proxy\"],delete this.settings[\"trust proxy fn\"]),x(this.request,e.request),x(this.response,e.response),x(this.engines,e.engines),x(this.settings,e.settings)})),this.locals=Object.create(null),this.mountpath=\"/\",this.locals.settings=this.settings,this.set(\"view\",p),this.set(\"views\",g(\"views\")),this.set(\"jsonp callback name\",\"callback\"),this.enable(\"view cache\"),Object.defineProperty(this,\"router\",{get:function(){throw new Error(\"'app.router' is deprecated!\\nPlease see the 3.x to 4.x migration guide for details on how to update your app.\")}})},y.lazyrouter=function(){this._router||(this._router=new a({caseSensitive:this.enabled(\"case sensitive routing\"),strict:this.enabled(\"strict routing\")}),this._router.use(s(this.get(\"query parser fn\"))),this._router.use(o.init(this)))},y.handle=function(e,t,n){var a=this._router,r=n||i(e,t,{env:this.get(\"env\"),onerror:k.bind(this)});if(!a)return c(\"no routes defined on app\"),void r();a.handle(e,t,r)},y.use=function(e){var t=0,n=\"/\";if(\"function\"!=typeof e){for(var i=e;Array.isArray(i)&&0!==i.length;)i=i[0];\"function\"!=typeof i&&(t=1,n=e)}var a=h(b.call(arguments,t));if(0===a.length)throw new TypeError(\"app.use() requires a middleware function\");this.lazyrouter();var r=this._router;return a.forEach((function(e){if(!e||!e.handle||!e.set)return r.use(n,e);c(\".use app under %s\",n),e.mountpath=n,e.parent=this,r.use(n,(function(t,n,i){var a=t.app;e.handle(t,n,(function(e){x(t,a.request),x(n,a.response),i(e)}))})),e.emit(\"mount\",this)}),this),this},y.route=function(e){return this.lazyrouter(),this._router.route(e)},y.engine=function(e,t){if(\"function\"!=typeof t)throw new Error(\"callback function required\");var n=\".\"!==e[0]?\".\"+e:e;return this.engines[n]=t,this},y.param=function(e,t){if(this.lazyrouter(),Array.isArray(e)){for(var n=0;n<e.length;n++)this.param(e[n],t);return this}return this._router.param(e,t),this},y.set=function(e,t){if(1===arguments.length)return this.settings[e];switch(c('set \"%s\" to %o',e,t),this.settings[e]=t,e){case\"etag\":this.set(\"etag fn\",u(t));break;case\"query parser\":this.set(\"query parser fn\",d(t));break;case\"trust proxy\":this.set(\"trust proxy fn\",m(t)),Object.defineProperty(this.settings,w,{configurable:!0,value:!1})}return this},y.path=function(){return this.parent?this.parent.path()+this.mountpath:\"\"},y.enabled=function(e){return Boolean(this.set(e))},y.disabled=function(e){return!this.set(e)},y.enable=function(e){return this.set(e,!0)},y.disable=function(e){return this.set(e,!1)},r.forEach((function(e){y[e]=function(t){if(\"get\"===e&&1===arguments.length)return this.set(t);this.lazyrouter();var n=this._router.route(t);return n[e].apply(n,b.call(arguments,1)),this}})),y.all=function(e){this.lazyrouter();for(var t=this._router.route(e),n=b.call(arguments,1),i=0;i<r.length;i++)t[r[i]].apply(t,n);return this},y.del=f.function(y.delete,\"app.del: Use app.delete instead\"),y.render=function(e,t,n){var i,a=this.cache,r=n,o=this.engines,s=t,c={};if(\"function\"==typeof t&&(r=t,s={}),v(c,this.locals),s._locals&&v(c,s._locals),v(c,s),null==c.cache&&(c.cache=this.enabled(\"view cache\")),c.cache&&(i=a[e]),!i){if(!(i=new(this.get(\"view\"))(e,{defaultEngine:this.get(\"view engine\"),root:this.get(\"views\"),engines:o})).path){var p=Array.isArray(i.root)&&i.root.length>1?'directories \"'+i.root.slice(0,-1).join('\", \"')+'\" or \"'+i.root[i.root.length-1]+'\"':'directory \"'+i.root+'\"',l=new Error('Failed to lookup view \"'+e+'\" in views '+p);return l.view=i,r(l)}c.cache&&(a[e]=i)}!function(e,t,n){try{e.render(t,n)}catch(e){n(e)}}(i,c,r)},y.listen=function(){var e=l.createServer(this);return e.listen.apply(e,arguments)}},5499:(e,t,n)=>{\"use strict\";var i=n(46),a=n(8614).EventEmitter,r=n(6182),o=n(8346),s=n(5369),c=n(9483),p=n(5828),l=n(2914);(t=e.exports=function(){var e=function(t,n,i){e.handle(t,n,i)};return r(e,a.prototype,!1),r(e,o,!1),e.request=Object.create(p,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.response=Object.create(l,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.init(),e}).application=o,t.request=p,t.response=l,t.Route=s,t.Router=c,t.json=i.json,t.query=n(7667),t.raw=i.raw,t.static=n(8636),t.text=i.text,t.urlencoded=i.urlencoded,[\"bodyParser\",\"compress\",\"cookieSession\",\"session\",\"logger\",\"cookieParser\",\"favicon\",\"responseTime\",\"errorHandler\",\"timeout\",\"methodOverride\",\"vhost\",\"csrf\",\"directory\",\"limit\",\"multipart\",\"staticCache\"].forEach((function(e){Object.defineProperty(t,e,{get:function(){throw new Error(\"Most middleware (like \"+e+\") is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.\")},configurable:!0})}))},1735:(e,t,n)=>{\"use strict\";var i=n(6644);t.init=function(e){return function(t,n,a){e.enabled(\"x-powered-by\")&&n.setHeader(\"X-Powered-By\",\"Express\"),t.res=n,n.req=t,t.next=a,i(t,e.request),i(n,e.response),n.locals=n.locals||Object.create(null),a()}}},7667:(e,t,n)=>{\"use strict\";var i=n(1322),a=n(8317),r=n(129);e.exports=function(e){var t=i({},e),n=r.parse;return\"function\"==typeof e&&(n=e,t=void 0),void 0!==t&&void 0===t.allowPrototypes&&(t.allowPrototypes=!0),function(e,i,r){if(!e.query){var o=a(e).query;e.query=n(o,t)}r()}}},5828:(e,t,n)=>{\"use strict\";var i=n(9078),a=n(412)(\"express\"),r=n(1631).isIP,o=n(273),s=n(8605),c=n(9635),p=n(4622),l=n(8317),u=n(2611),d=Object.create(s.IncomingMessage.prototype);function m(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:n})}e.exports=d,d.get=d.header=function(e){if(!e)throw new TypeError(\"name argument is required to req.get\");if(\"string\"!=typeof e)throw new TypeError(\"name must be a string to req.get\");var t=e.toLowerCase();switch(t){case\"referer\":case\"referrer\":return this.headers.referrer||this.headers.referer;default:return this.headers[t]}},d.accepts=function(){var e=i(this);return e.types.apply(e,arguments)},d.acceptsEncodings=function(){var e=i(this);return e.encodings.apply(e,arguments)},d.acceptsEncoding=a.function(d.acceptsEncodings,\"req.acceptsEncoding: Use acceptsEncodings instead\"),d.acceptsCharsets=function(){var e=i(this);return e.charsets.apply(e,arguments)},d.acceptsCharset=a.function(d.acceptsCharsets,\"req.acceptsCharset: Use acceptsCharsets instead\"),d.acceptsLanguages=function(){var e=i(this);return e.languages.apply(e,arguments)},d.acceptsLanguage=a.function(d.acceptsLanguages,\"req.acceptsLanguage: Use acceptsLanguages instead\"),d.range=function(e,t){var n=this.get(\"Range\");if(n)return p(e,n,t)},d.param=function(e,t){var n=this.params||{},i=this.body||{},r=this.query||{},o=1===arguments.length?\"name\":\"name, default\";return a(\"req.param(\"+o+\"): Use req.params, req.body, or req.query instead\"),null!=n[e]&&n.hasOwnProperty(e)?n[e]:null!=i[e]?i[e]:null!=r[e]?r[e]:t},d.is=function(e){var t=e;if(!Array.isArray(e)){t=new Array(arguments.length);for(var n=0;n<t.length;n++)t[n]=arguments[n]}return o(this,t)},m(d,\"protocol\",(function(){var e=this.connection.encrypted?\"https\":\"http\";if(!this.app.get(\"trust proxy fn\")(this.connection.remoteAddress,0))return e;var t=this.get(\"X-Forwarded-Proto\")||e,n=t.indexOf(\",\");return-1!==n?t.substring(0,n).trim():t.trim()})),m(d,\"secure\",(function(){return\"https\"===this.protocol})),m(d,\"ip\",(function(){var e=this.app.get(\"trust proxy fn\");return u(this,e)})),m(d,\"ips\",(function(){var e=this.app.get(\"trust proxy fn\"),t=u.all(this,e);return t.reverse().pop(),t})),m(d,\"subdomains\",(function(){var e=this.hostname;if(!e)return[];var t=this.app.get(\"subdomain offset\");return(r(e)?[e]:e.split(\".\").reverse()).slice(t)})),m(d,\"path\",(function(){return l(this).pathname})),m(d,\"hostname\",(function(){var e=this.app.get(\"trust proxy fn\"),t=this.get(\"X-Forwarded-Host\");if(t&&e(this.connection.remoteAddress,0)?-1!==t.indexOf(\",\")&&(t=t.substring(0,t.indexOf(\",\")).trimRight()):t=this.get(\"Host\"),t){var n=\"[\"===t[0]?t.indexOf(\"]\")+1:0,i=t.indexOf(\":\",n);return-1!==i?t.substring(0,i):t}})),m(d,\"host\",a.function((function(){return this.hostname}),\"req.host: Use req.hostname instead\")),m(d,\"fresh\",(function(){var e=this.method,t=this.res,n=t.statusCode;return(\"GET\"===e||\"HEAD\"===e)&&(n>=200&&n<300||304===n)&&c(this.headers,{etag:t.get(\"ETag\"),\"last-modified\":t.get(\"Last-Modified\")})})),m(d,\"stale\",(function(){return!this.fresh})),m(d,\"xhr\",(function(){return\"xmlhttprequest\"===(this.get(\"X-Requested-With\")||\"\").toLowerCase()}))},2914:(e,t,n)=>{\"use strict\";var i=n(9509).Buffer,a=n(7389),r=n(412)(\"express\"),o=n(517),s=n(5573),c=n(8605),p=n(4265).isAbsolute,l=n(338),u=n(5622),d=n(4917),m=n(1322),f=n(1365).sign,h=n(4265).normalizeType,v=n(4265).normalizeTypes,g=n(4265).setCharset,x=n(6489),b=n(329),y=u.extname,w=b.mime,k=u.resolve,B=n(5181),S=Object.create(c.ServerResponse.prototype);e.exports=S;var A=/;\\s*charset\\s*=/;function E(e,t,n,i){var a,r=!1;function o(){if(!r){r=!0;var e=new Error(\"Request aborted\");e.code=\"ECONNABORTED\",i(e)}}function s(e){r||(r=!0,i(e))}t.on(\"directory\",(function(){if(!r){r=!0;var e=new Error(\"EISDIR, read\");e.code=\"EISDIR\",i(e)}})),t.on(\"end\",(function(){r||(r=!0,i())})),t.on(\"error\",s),t.on(\"file\",(function(){a=!1})),t.on(\"stream\",(function(){a=!0})),l(e,(function(e){return e&&\"ECONNRESET\"===e.code?o():e?s(e):void(r||setImmediate((function(){!1===a||r?r||(r=!0,i()):o()})))})),n.headers&&t.on(\"headers\",(function(e){for(var t=n.headers,i=Object.keys(t),a=0;a<i.length;a++){var r=i[a];e.setHeader(r,t[r])}})),t.pipe(e)}function j(e,t,n,i){var a=t||n?JSON.stringify(e,t,n):JSON.stringify(e);return i&&(a=a.replace(/[<>&]/g,(function(e){switch(e.charCodeAt(0)){case 60:return\"\\\\u003c\";case 62:return\"\\\\u003e\";case 38:return\"\\\\u0026\";default:retur"}Show context

it looks like it's coming from lambda. It's for the dgraph cloud offering right ? Is there a setting I should disable to prevent this from happening ? Is this a meaningful error that I should consider ?

happysalada avatar Jun 26 '22 15:06 happysalada

@happysalada can you give us a little bit more information about the version of dgraph, the build (community/enterprise), etc.

akon-dey avatar Jun 28 '22 06:06 akon-dey

This is a build directly from source in the latest available release v21.12.0 (building with oss tags). let me know if you need anything else.

happysalada avatar Jun 30 '22 14:06 happysalada