add initial marp implementation with sample content and build configuration

This commit is contained in:
libretech committed 2025-09-13 18:13:22 +02:00
1 parent dcacc9b409
commit e5f219507f
10319 files changed
+1402023

No files matched your search

+228
View File
@@ -0,0 +1,228 @@
"use strict";var e=require("./binary-BtVxQo5V.js"),a=require("path"),n=require("buffer"),i=require("string_decoder"),o=require("node:zlib"),t=require("util"),r=require("node:events"),s=require("url"),c=require("./_commonjs-dynamic-modules-DpMUTZLf.js"),p=require("node:path"),l=require("node:fs"),u=require("node:http"),d=require("crypto"),m=require("fs"),f=require("querystring"),v=require("node:net"),h=require("stream");function x(e,a){return a.forEach(function(a){a&&"string"!=typeof a&&!Array.isArray(a)&&Object.keys(a).forEach(function(n){if("default"!==n&&!(n in e)){var i=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return a[n]}})}})}),Object.freeze(e)}var b,g,y,w,j={exports:{}},k={exports:{}},E={exports:{}};function A(){if(g)return b;g=1;var e=a.relative;b=function(e){if(!e)throw new TypeError("argument namespace is required");var a=r(u()[1])[0];function n(e){t.call(n,e)}return n._file=a,n._ignored=function(e){return!!process.noDeprecation||i(process.env.NO_DEPRECATION||"",e)}(e),n._namespace=e,n._traced=function(e){return!!process.traceDeprecation||i(process.env.TRACE_DEPRECATION||"",e)}(e),n._warned=Object.create(null),n.function=m,n.property=f,n};var n=process.cwd();function i(e,a){for(var n=e.split(/[ ,]+/),i=String(a).toLowerCase(),o=0;o<n.length;o++){var t=n[o];if(t&&("*"===t||t.toLowerCase()===i))return!0}return!1}function o(e){var a=this.name+": "+this.namespace;this.message&&(a+=" deprecated "+this.message);for(var n=0;n<e.length;n++)a+="\n at "+e[n].toString();return a}function t(e,a){var n=function(e,a){return("function"!=typeof e.listenerCount?e.listeners(a).length:e.listenerCount(a))>0}(process,"deprecation");if(n||!this._ignored){var i,o,t,l,d=0,m=!1,f=u(),h=this._file;for(a?(l=a,(t=r(f[1])).name=l.name,h=t[0]):t=l=r(f[d=2]);d<f.length;d++)if((o=(i=r(f[d]))[0])===h)m=!0;else if(o===this._file)h=this._file;else if(m)break;var x=i?l.join(":")+"__"+i.join(":"):void 0;if(void 0===x||!(x in this._warned)){this._warned[x]=!0;var b=e;if(b||(b=t!==l&&t.name?s(t):s(l)),n){var g=v(this._namespace,b,f.slice(d));process.emit("deprecation",g)}else{var y=(process.stderr.isTTY?p:c).call(this,b,i,f.slice(d));process.stderr.write(y+"\n","utf8")}}}}function r(e){var a=e.getFileName()||"<anonymous>",n=e.getLineNumber(),i=e.getColumnNumber();e.isEval()&&(a=e.getEvalOrigin()+", "+a);var o=[a,n,i];return o.callSite=e,o.name=e.getFunctionName(),o}function s(e){var a=e.callSite,n=e.name;n||(n="<anonymous@"+l(e)+">");var i=a.getThis(),o=i&&a.getTypeName();return"Object"===o&&(o=void 0),"Function"===o&&(o=i.name||o),o&&a.getMethodName()?o+"."+n:n}function c(e,a,n){var i=(new Date).toUTCString()+" "+this._namespace+" deprecated "+e;if(this._traced){for(var o=0;o<n.length;o++)i+="\n at "+n[o].toString();return i}return a&&(i+=" at "+l(a)),i}function p(e,a,n){var i=""+this._namespace+" deprecated "+e+"";if(this._traced){for(var o=0;o<n.length;o++)i+="\n at "+n[o].toString()+"";return i}return a&&(i+=" "+l(a)+""),i}function l(a){return e(n,a[0])+":"+a[1]+":"+a[2]}function u(){var e=Error.stackTraceLimit,a={},n=Error.prepareStackTrace;Error.prepareStackTrace=d,Error.stackTraceLimit=Math.max(10,e),Error.captureStackTrace(a);var i=a.stack.slice(1);return Error.prepareStackTrace=n,Error.stackTraceLimit=e,i}function d(e,a){return a}function m(e,a){if("function"!=typeof e)throw new TypeError("argument fn must be a function");var n=function(e){for(var a="",n=0;n<e;n++)a+=", arg"+n;return a.substr(2)}(e.length),i=r(u()[1]);return i.name=e.name,new Function("fn","log","deprecate","message","site",'"use strict"\nreturn function ('+n+") {log.call(deprecate, message, site)\nreturn fn.apply(this, arguments)\n}")(e,t,this,a,i)}function f(e,a,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("argument obj must be object");var i=Object.getOwnPropertyDescriptor(e,a);if(!i)throw new TypeError("must call property on owner object");if(!i.configurable)throw new TypeError("property must be configurable");var o=this,s=r(u()[1]);s.name=a,"value"in i&&(i=function(e,a){var n=Object.getOwnPropertyDescriptor(e,a),i=n.value;return n.get=function(){return i},n.writable&&(n.set=function(e){return i=e}),delete n.value,delete n.writable,Object.defineProperty(e,a,n),n}(e,a));var c=i.get,p=i.set;"function"==typeof c&&(i.get=function(){return t.call(o,n,s),c.apply(this,arguments)}),"function"==typeof p&&(i.set=function(){return t.call(o,n,s),p.apply(this,arguments)}),Object.defineProperty(e,a,i)}function v(e,a,n){var i,t=new Error;return Object.defineProperty(t,"constructor",{value:v}),Object.defineProperty(t,"message",{configurable:!0,enumerable:!1,value:a,writable:!0}),Object.defineProperty(t,"name",{enumerable:!1,configurable:!0,value:"DeprecationError",writable:!0}),Object.defineProperty(t,"namespace",{configurable:!0,enumerable:!1,value:e,writable:!0}),Object.defineProperty(t,"stack",{configurable:!0,enumeraLine truncated
/*!
* statuses
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2016 Douglas Christopher Wilson
* MIT Licensed
*/var C,_,q,P,I,z={exports:{}},B={exports:{}};function L(){if(_)return z.exports;_=1;try{var e=require("util");if("function"!=typeof e.inherits)throw"";z.exports=e.inherits}catch(e){z.exports=(C||(C=1,"function"==typeof Object.create?B.exports=function(e,a){a&&(e.super_=a,e.prototype=Object.create(a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:B.exports=function(e,a){if(a){e.super_=a;var n=function(){};n.prototype=a.prototype,e.prototype=new n,e.prototype.constructor=e}}),B.exports)}return z.exports}
/*!
* toidentifier
* Copyright(c) 2016 Douglas Christopher Wilson
* MIT Licensed
*/function R(){return I||(I=1,function(e){var a,n=A()("http-errors"),i=w?y:(w=1,y=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,a){return e.__proto__=a,e}:function(e,a){for(var n in a)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=a[n]);return e})),o=function(){if(T)return S;T=1;var e=O;function a(e){if(!Object.prototype.hasOwnProperty.call(n.message,e))throw new Error("invalid status code: "+e);return n.message[e]}function n(e){if("number"==typeof e)return a(e);if("string"!=typeof e)throw new TypeError("code must be a number or string");var i=parseInt(e,10);return isNaN(i)?function(e){var a=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(n.code,a))throw new Error('invalid status message: "'+e+'"');return n.code[a]}(e):a(i)}return S=n,n.message=e,n.code=function(e){var a={};return Object.keys(e).forEach(function(n){var i=e[n],o=Number(n);a[i.toLowerCase()]=o}),a}(e),n.codes=function(e){return Object.keys(e).map(function(e){return Number(e)})}(e),n.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},n.empty={204:!0,205:!0,304:!0},n.retry={502:!0,503:!0,504:!0},S}(),t=L(),r=P?q:(P=1,q=function(e){return e.split(" ").map(function(e){return e.slice(0,1).toUpperCase()+e.slice(1)}).join("").replace(/[^ _0-9a-z]/gi,"")});function s(e){return Number(String(e).charAt(0)+"00")}function c(e,a){var n=Object.getOwnPropertyDescriptor(e,"name");n&&n.configurable&&(n.value=a,Object.defineProperty(e,"name",n))}function p(e){return"Error"!==e.substr(-5)?e+"Error":e}e.exports=function e(){for(var a,i,t=500,r={},c=0;c<arguments.length;c++){var p=arguments[c],l=typeof p;if("object"===l&&p instanceof Error)t=(a=p).status||a.statusCode||t;else if("number"===l&&0===c)t=p;else if("string"===l)i=p;else{if("object"!==l)throw new TypeError("argument #"+(c+1)+" unsupported type "+l);r=p}}"number"==typeof t&&(t<400||t>=600)&&n("non-error status code; use only 4xx or 5xx status codes"),("number"!=typeof t||!o.message[t]&&(t<400||t>=600))&&(t=500);var u=e[t]||e[s(t)];for(var d in a||(a=u?new u(i):new Error(i||o.message[t]),Error.captureStackTrace(a,e)),u&&a instanceof u&&a.status===t||(a.expose=t<500,a.status=a.statusCode=t),r)"status"!==d&&"statusCode"!==d&&(a[d]=r[d]);return a},e.exports.HttpError=function(){function e(){throw new TypeError("cannot construct abstract class")}return t(e,Error),e}(),e.exports.isHttpError=(a=e.exports.HttpError,function(e){return!(!e||"object"!=typeof e)&&(e instanceof a||e instanceof Error&&"boolean"==typeof e.expose&&"number"==typeof e.statusCode&&e.status===e.statusCode)}),function(e,a,n){a.forEach(function(a){var l,u=r(o.message[a]);switch(s(a)){case 400:l=function(e,a,n){var r=p(a);function s(e){var a=null!=e?e:o.message[n],t=new Error(a);return Error.captureStackTrace(t,s),i(t,s.prototype),Object.defineProperty(t,"message",{enumerable:!0,configurable:!0,value:a,writable:!0}),Object.defineProperty(t,"name",{enumerable:!1,configurable:!0,value:r,writable:!0}),t}return t(s,e),c(s,r),s.prototype.status=n,s.prototype.statusCode=n,s.prototype.expose=!0,s}(n,u,a);break;case 500:l=function(e,a,n){var r=p(a);function s(e){var a=null!=e?e:o.message[n],t=new Error(a);return Error.captureStackTrace(t,s),i(t,s.prototype),Object.defineProperty(t,"message",{enumerable:!0,configurable:!0,value:a,writable:!0}),Object.defineProperty(t,"name",{enumerable:!1,configurable:!0,value:r,writable:!0}),t}return t(s,e),c(s,r),s.prototype.status=n,s.prototype.statusCode=n,s.prototype.expose=!1,s}(n,u,a)}l&&(e[a]=l,e[u]=l)})}(e.exports,o.codes,e.exports.HttpError)}(E)),E.exports}var F,N,D,M={exports:{}};
/*!
* ee-first
* Copyright(c) 2014 Jonathan Ong
* MIT Licensed
*/function U(){if(D)return M.exports;D=1,M.exports=function(o,t){return!1!==i(o)?(n(t,null,o),o):(function(e,n){var i=e.__onFinished;i&&i.queue||(i=e.__onFinished=function(e){function a(n){if(e.__onFinished===a&&(e.__onFinished=null),a.queue){var i=a.queue;a.queue=null;for(var o=0;o<i.length;o++)i[o](n,e)}}return a.queue=[],a}(e),function(e,n){var i,o,t=!1;function r(e){i.cancel(),o.cancel(),t=!0,n(e)}function s(n){e.removeListener("socket",s),t||i===o&&(o=a([[n,"error","close"]],r))}i=o=a([[e,"end","finish"]],r),e.socket?s(e.socket):(e.on("socket",s),void 0===e.socket&&function(e,a){var n=e.assignSocket;"function"==typeof n&&(e.assignSocket=function(e){n.call(this,e),a(e)})}(e,s))}(e,i)),i.queue.push(n)}(o,(r=t,e.AsyncResource&&(s=new e.AsyncResource(r.name||"bound-anonymous-fn")),s&&s.runInAsyncScope?s.runInAsyncScope.bind(s,r,null):r)),o);var r,s},M.exports.isFinished=i;var e=function(){try{return require("async_hooks")}catch(e){return{}}}(),a=function(){if(N)return F;function e(e,a){return function(n){for(var i=new Array(arguments.length),o="error"===e?n:null,t=0;t<i.length;t++)i[t]=arguments[t];a(o,this,e,i)}}return N=1,F=function(a,n){if(!Array.isArray(a))throw new TypeError("arg must be an array of [ee, events...] arrays");for(var i=[],o=0;o<a.length;o++){var t=a[o];if(!Array.isArray(t)||t.length<2)throw new TypeError("each array member must be [ee, events...]");for(var r=t[0],s=1;s<t.length;s++){var c=t[s],p=e(c,l);r.on(c,p),i.push({ee:r,event:c,fn:p})}}function l(){u(),n.apply(null,arguments)}function u(){for(var e,a=0;a<i.length;a++)(e=i[a]).ee.removeListener(e.event,e.fn)}function d(e){n=e}return d.cancel=u,d},F}
/*!
* on-finished
* Copyright(c) 2013 Jonathan Ong
* Copyright(c) 2014 Douglas Christopher Wilson
* MIT Licensed
*/(),n="function"==typeof setImmediate?setImmediate:function(e){process.nextTick(e.bind.apply(e,arguments))};function i(e){var a=e.socket;return"boolean"==typeof e.finished?Boolean(e.finished||a&&!a.writable):"boolean"==typeof e.complete?Boolean(e.upgrade||!a||!a.readable||e.complete&&!e.readable):void 0}return M.exports}var $,H={exports:{}};
/*!
* bytes
* Copyright(c) 2012-2014 TJ Holowaychuk
* Copyright(c) 2015 Jed Watson
* MIT Licensed
*/function W(){if($)return H.exports;$=1,H.exports=function(e,a){return"string"==typeof e?t(e):"number"==typeof e?o(e,a):null},H.exports.format=o,H.exports.parse=t;var e=/\B(?=(\d{3})+(?!\d))/g,a=/(?:\.0*|(\.[^0]+)0+)$/,n={b:1,kb:1024,mb:1<<20,gb:1<<30,tb:Math.pow(1024,4),pb:Math.pow(1024,5)},i=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;function o(i,o){if(!Number.isFinite(i))return null;var t=Math.abs(i),r=o&&o.thousandsSeparator||"",s=o&&o.unitSeparator||"",c=o&&void 0!==o.decimalPlaces?o.decimalPlaces:2,p=Boolean(o&&o.fixedDecimals),l=o&&o.unit||"";l&&n[l.toLowerCase()]||(l=t>=n.pb?"PB":t>=n.tb?"TB":t>=n.gb?"GB":t>=n.mb?"MB":t>=n.kb?"KB":"B");var u=(i/n[l.toLowerCase()]).toFixed(c);return p||(u=u.replace(a,"$1")),r&&(u=u.split(".").map(function(a,n){return 0===n?a.replace(e,r):a}).join(".")),u+s+l}function t(e){if("number"==typeof e&&!isNaN(e))return e;if("string"!=typeof e)return null;var a,o=i.exec(e),t="b";return o?(a=parseFloat(o[1]),t=o[4].toLowerCase()):(a=parseInt(e,10),t="b"),isNaN(a)?null:Math.floor(n[t]*a)}return H.exports}var V,G,Z={exports:{}};function K(){if(G)return V;G=1;var e,a=n,i=a.Buffer,o={};for(e in a)a.hasOwnProperty(e)&&"SlowBuffer"!==e&&"Buffer"!==e&&(o[e]=a[e]);var t=o.Buffer={};for(e in i)i.hasOwnProperty(e)&&"allocUnsafe"!==e&&"allocUnsafeSlow"!==e&&(t[e]=i[e]);if(o.Buffer.prototype=i.prototype,t.from&&t.from!==Uint8Array.from||(t.from=function(e,a,n){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return i(e,a,n)}),t.alloc||(t.alloc=function(e,a,n){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=i(e);return a&&0!==a.length?"string"==typeof n?o.fill(a,n):o.fill(a):o.fill(0),o}),!o.kStringMaxLength)try{o.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(e){}return o.constants||(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),V=o}var J,X={};function Q(){if(J)return X;function e(e,a){this.encoder=e,this.addBOM=!0}function a(e,a){this.decoder=e,this.pass=!1,this.options=a||{}}return J=1,X.PrependBOM=e,e.prototype.write=function(e){return this.addBOM&&(e="\ufeff"+e,this.addBOM=!1),this.encoder.write(e)},e.prototype.end=function(){return this.encoder.end()},X.StripBOM=a,a.prototype.write=function(e){var a=this.decoder.write(e);return this.pass||!a||("\ufeff"===a[0]&&(a=a.slice(1),"function"==typeof this.options.stripBOM&&this.options.stripBOM()),this.pass=!0),a},a.prototype.end=function(){return this.decoder.end()},X}var Y,ee,ae={};function ne(){if(ee)return Y;ee=1;var e=K().Buffer;function a(a,n){this.enc=a.encodingName,this.bomAware=a.bomAware,"base64"===this.enc?this.encoder=r:"cesu8"===this.enc&&(this.enc="utf8",this.encoder=s,"💩"!==e.from("eda0bdedb2a9","hex").toString()&&(this.decoder=c,this.defaultCharUnicode=n.defaultCharUnicode))}Y={utf8:{type:"_internal",bomAware:!0},cesu8:{type:"_internal",bomAware:!0},unicode11utf8:"utf8",ucs2:{type:"_internal",bomAware:!0},utf16le:"ucs2",binary:{type:"_internal"},base64:{type:"_internal"},hex:{type:"_internal"},_internal:a},a.prototype.encoder=t,a.prototype.decoder=o;var n=i.StringDecoder;function o(e,a){this.decoder=new n(a.enc)}function t(e,a){this.enc=a.enc}function r(e,a){this.prevStr=""}function s(e,a){}function c(e,a){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=a.defaultCharUnicode}return n.prototype.end||(n.prototype.end=function(){}),o.prototype.write=function(a){return e.isBuffer(a)||(a=e.from(a)),this.decoder.write(a)},o.prototype.end=function(){return this.decoder.end()},t.prototype.write=function(a){return e.from(a,this.enc)},t.prototype.end=function(){},r.prototype.write=function(a){var n=(a=this.prevStr+a).length-a.length%4;return this.prevStr=a.slice(n),a=a.slice(0,n),e.from(a,"base64")},r.prototype.end=function(){return e.from(this.prevStr,"base64")},s.prototype.write=function(a){for(var n=e.alloc(3*a.length),i=0,o=0;o<a.length;o++){var t=a.charCodeAt(o);t<128?n[i++]=t:t<2048?(n[i++]=192+(t>>>6),n[i++]=128+(63&t)):(n[i++]=224+(t>>>12),n[i++]=128+(t>>>6&63),n[i++]=128+(63&t))}return n.slice(0,i)},s.prototype.end=function(){},c.prototype.write=function(e){for(var a=this.acc,n=this.contBytes,i=this.accBytes,o="",t=0;t<e.length;t++){var r=e[t];128!=(192&r)?(n>0&&(o+=this.defaultCharUnicode,n=0),r<128?o+=String.fromCharCode(r):r<224?(a=31&r,n=1,i=1):r<240?(a=15&r,n=2,i=1):o+=this.defaultCharUnicode):n>0?(a=a<<6|63&r,i++,0===--n&&(o+=2===i&&a<128&&a>0||3===i&&a<2048?this.defaultCharUnicode:String.fromCharCode(a))):o+=this.defaultCharUnicode}return this.acc=a,this.contBytes=n,this.accBytes=i,o},c.prototype.end=function(){var eLine truncated
/*!
* unpipe
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/function He(){if(Ie)return Pe;Ie=1;var a=R(),n=function(){if(qe)return _e;qe=1;var a=function(){try{return require("async_hooks")}catch(e){return{}}}(),n=W(),i=R(),o=$e(),t=Ce?Oe:(Ce=1,Oe=function(e){if(!e)throw new TypeError("argument stream is required");if("function"!=typeof e.unpipe){if(function(e){for(var a=e.listeners("data"),n=0;n<a.length;n++)if("ondata"===a[n].name)return!0;return!1}(e))for(var a,n=e.listeners("close"),i=0;i<n.length;i++)"cleanup"!==(a=n[i]).name&&"onclose"!==a.name||a.call(e)}else e.unpipe()});_e=function(i,o,t){var r=t,c=o||{};if(void 0===i)throw new TypeError("argument stream is required");if("object"!=typeof i||null===i||"function"!=typeof i.on)throw new TypeError("argument stream must be a stream");if(!0!==o&&"string"!=typeof o||(c={encoding:o}),"function"==typeof o&&(r=o,c={}),void 0!==r&&"function"!=typeof r)throw new TypeError("argument callback must be a function");if(!r&&!e.e.Promise)throw new TypeError("argument callback is required");var p,l,u=!0!==c.encoding?c.encoding:"utf-8",d=n.parse(c.limit),m=null==c.length||isNaN(c.length)?null:parseInt(c.length,10);return r?s(i,u,m,d,(p=r,a.AsyncResource&&(l=new a.AsyncResource(p.name||"bound-anonymous-fn")),l&&l.runInAsyncScope?l.runInAsyncScope.bind(l,p,null):p)):new Promise(function(e,a){s(i,u,m,d,function(n,i){if(n)return a(n);e(i)})})};var r=/^Encoding not recognized: /;function s(e,a,n,s,c){var p=!1,l=!0;if(null!==s&&null!==n&&n>s)return v(i(413,"request entity too large",{expected:n,length:n,limit:s,type:"entity.too.large"}));var u=e._readableState;if(e._decoder||u&&(u.encoding||u.decoder))return v(i(500,"stream encoding should not be set",{type:"stream.encoding.set"}));if(void 0!==e.readable&&!e.readable)return v(i(500,"stream is not readable",{type:"stream.not.readable"}));var d,m=0;try{d=function(e){if(!e)return null;try{return o.getDecoder(e)}catch(a){if(!r.test(a.message))throw a;throw i(415,"specified encoding unsupported",{encoding:e,type:"encoding.unsupported"})}}(a)}catch(e){return v(e)}var f=d?"":[];function v(){for(var a=new Array(arguments.length),n=0;n<a.length;n++)a[n]=arguments[n];function i(){g(),a[0]&&function(e){t(e),"function"==typeof e.pause&&e.pause()}(e),c.apply(null,a)}p=!0,l?process.nextTick(i):i()}function h(){p||v(i(400,"request aborted",{code:"ECONNABORTED",expected:n,length:n,received:m,type:"request.aborted"}))}function x(e){p||(m+=e.length,null!==s&&m>s?v(i(413,"request entity too large",{limit:s,received:m,type:"entity.too.large"})):d?f+=d.write(e):f.push(e))}function b(e){if(!p){if(e)return v(e);null!==n&&m!==n?v(i(400,"request size did not match content length",{expected:n,length:n,received:m,type:"request.size.invalid"})):v(null,d?f+(d.end()||""):Buffer.concat(f))}}function g(){f=null,e.removeListener("aborted",h),e.removeListener("data",x),e.removeListener("end",b),e.removeListener("error",b),e.removeListener("close",g)}e.on("aborted",h),e.on("close",g),e.on("data",x),e.on("end",b),e.on("error",b),l=!1}return _e}
/*!
* body-parser
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/(),i=$e(),t=U(),r=o;return Pe=function(e,o,s,c,p,l){var u,d,m=l,f=null!==m.encoding?m.encoding:null,v=m.verify;try{d=function(e,n,i){var o=(e.headers["content-encoding"]||"identity").toLowerCase(),t=e.headers["content-length"];if(n('content-encoding "%s"',o),!1===i&&"identity"!==o)throw a(415,"content encoding unsupported",{encoding:o,type:"encoding.unsupported"});if("identity"===o)return e.length=t,e;var s=function(e,n){switch(e){case"deflate":return n("inflate body"),r.createInflate();case"gzip":return n("gunzip body"),r.createGunzip();case"br":return n("brotli decompress body"),r.createBrotliDecompress();default:throw a(415,'unsupported content encoding "'+e+'"',{encoding:e,type:"encoding.unsupported"})}}(o,n);return e.pipe(s),s}(e,p,m.inflate),u=d.length,d.length=void 0}catch(e){return s(e)}if(m.length=u,m.encoding=v?null:f,null===m.encoding&&null!==f&&!i.encodingExists(f))return s(a(415,'unsupported charset "'+f.toUpperCase()+'"',{charset:f.toLowerCase(),type:"charset.unsupported"}));p("read body"),n(d,m,function(n,r){var l;if(n)return l="encoding.unsupported"===n.type?a(415,'unsupported charset "'+f.toUpperCase()+'"',{charset:f.toLowerCase(),type:"charset.unsupported"}):a(400,n),d!==e&&(e.unpipe(),d.destroy()),void function(e,a){t.isFinished(e)?a():(t(e,a),e.resume())}(e,function(){s(a(400,l))});if(v)try{p("verify body"),v(e,o,r,f)}catch(e){return void s(a(403,e,{body:r,type:e.type||"entity.verify.failed"}))}var u=r;try{p("parse body"),u="string"!=typeof r&&null!==f?i.decode(r,f):r,e.body=c(u,f)}catch(e){return void s(a(400,e,{body:u,type:e.type||"entity.parse.failed"}))}s()})},Pe}var We,Ve={exports:{}},Ge={};function Ze(){if(We)return Ge;We=1;var e=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,a=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,i=/\\([\u000b\u0020-\u00ff])/g,o=/([\\"])/g,t=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function r(e){var i=String(e);if(n.test(i))return i;if(i.length>0&&!a.test(i))throw new TypeError("invalid parameter value");return'"'+i.replace(o,"\\$1")+'"'}function s(e){this.parameters=Object.create(null),this.type=e}return Ge.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var a=e.parameters,i=e.type;if(!i||!t.test(i))throw new TypeError("invalid type");var o=i;if(a&&"object"==typeof a)for(var s,c=Object.keys(a).sort(),p=0;p<c.length;p++){if(s=c[p],!n.test(s))throw new TypeError("invalid parameter name");o+="; "+s+"="+r(a[s])}return o},Ge.parse=function(a){if(!a)throw new TypeError("argument string is required");var n="object"==typeof a?function(e){var a;if("function"==typeof e.getHeader?a=e.getHeader("content-type"):"object"==typeof e.headers&&(a=e.headers&&e.headers["content-type"]),"string"!=typeof a)throw new TypeError("content-type header is missing from object");return a}(a):a;if("string"!=typeof n)throw new TypeError("argument string is required to be a string");var o=n.indexOf(";"),r=-1!==o?n.slice(0,o).trim():n.trim();if(!t.test(r))throw new TypeError("invalid media type");var c=new s(r.toLowerCase());if(-1!==o){var p,l,u;for(e.lastIndex=o;l=e.exec(n);){if(l.index!==o)throw new TypeError("invalid parameter format");o+=l[0].length,p=l[1].toLowerCase(),34===(u=l[2]).charCodeAt(0)&&-1!==(u=u.slice(1,-1)).indexOf("\\")&&(u=u.replace(i,"$1")),c.parameters[p]=u}if(o!==n.length)throw new TypeError("invalid parameter format")}return c},Ge}var Ke,Je,Xe,Qe,Ye,ea={},aa={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/ace+json":{source:"iana",compressible:!0},"application/ace-groupcomm+cbor":{source:"iana"},"application/ace-trl+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/aif+cbor":{source:"iana"},"application/aif+json":{source:"iana",compressible:!0},"application/alto-cdni+json":{source:"iana",compressible:!0},"application/alto-cdnifilter+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"applLine truncated
/*!
* mime-types
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/function ia(){return Ye||(Ye=1,function(e){var n,i,o=Je?Ke:(Je=1,Ke=aa),t=a.extname,r=na(),s=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function p(e){if(!e||"string"!=typeof e)return!1;var a=s.exec(e),n=a&&o[a[1].toLowerCase()];return n&&n.charset?n.charset:!(!a||!c.test(a[1]))&&"UTF-8"}function l(a){if(!a||"string"!=typeof a)return!1;var n=s.exec(a),i=n&&e.extensions[n[1].toLowerCase()];return!(!i||!i.length)&&i[0]}function u(e,a,n){return(a?r(a,o[a].source):0)>(n?r(n,o[n].source):0)?a:n}function d(a,n,i){var t=["nginx","apache",void 0,"iana"],r=n?t.indexOf(o[n].source):0,s=i?t.indexOf(o[i].source):0;return"application/octet-stream"!==e.types[l]&&(r>s||r===s&&"application/"===e.types[l]?.slice(0,12))||r>s?n:i}e.charset=p,e.charsets={lookup:p},e.contentType=function(a){if(!a||"string"!=typeof a)return!1;var n=-1===a.indexOf("/")?e.lookup(a):a;if(!n)return!1;if(-1===n.indexOf("charset")){var i=e.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},e.extension=l,e.extensions=Object.create(null),e.lookup=function(a){if(!a||"string"!=typeof a)return!1;var n=t("x."+a).toLowerCase().slice(1);return n&&e.types[n]||!1},e.types=Object.create(null),e._extensionConflicts=[],n=e.extensions,i=e.types,Object.keys(o).forEach(function(a){var t=o[a].extensions;if(t&&t.length){n[a]=t;for(var r=0;r<t.length;r++){var s=t[r];i[s]=u(0,i[s],a);const n=d(0,i[s],a);n!==i[s]&&e._extensionConflicts.push([s,n,i[s]])}}})}(ea)),ea}var oa,ta,ra,sa,ca,pa,la,ua,da,ma,fa,va,ha,xa,ba,ga,ya,wa,ja,ka,Ea,Aa,Sa,Ta,Oa,Ca,_a,qa,Pa,Ia,za,Ba,La,Ra,Fa,Na,Da,Ma,Ua,$a,Ha,Wa,Va,Ga,Za,Ka,Ja,Xa,Qa,Ya,en,an,nn,on,tn,rn,sn,cn,pn,ln,un,dn,mn,fn,vn,hn,xn,bn,gn,yn,wn,jn,kn,En,An,Sn,Tn,On,Cn,_n,qn,Pn,In,zn,Bn,Ln,Rn,Fn,Nn,Dn,Mn,Un,$n,Hn,Wn,Vn,Gn,Zn,Kn,Jn,Xn,Qn,Yn,ei,ai,ni,ii,oi={};
/*!
* media-typer
* Copyright(c) 2014-2017 Douglas Christopher Wilson
* MIT Licensed
*/function ti(){if(ta)return Ve.exports;ta=1;var e=Ze(),a=ia(),n=function(){if(oa)return oi;oa=1;var e=/^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/,a=/^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/,n=/^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;function i(e,a,n){this.type=e,this.subtype=a,this.suffix=n}return oi.format=function(n){if(!n||"object"!=typeof n)throw new TypeError("argument obj is required");var i=n.subtype,o=n.suffix,t=n.type;if(!t||!a.test(t))throw new TypeError("invalid type");if(!i||!e.test(i))throw new TypeError("invalid subtype");var r=t+"/"+i;if(o){if(!a.test(o))throw new TypeError("invalid suffix");r+="+"+o}return r},oi.parse=function(e){if(!e)throw new TypeError("argument string is required");if("string"!=typeof e)throw new TypeError("argument string is required to be a string");var a=n.exec(e.toLowerCase());if(!a)throw new TypeError("invalid media type");var o,t=a[1],r=a[2],s=r.lastIndexOf("+");return-1!==s&&(o=r.substr(s+1),r=r.substr(0,s)),new i(t,r,o)},oi.test=function(e){if(!e)throw new TypeError("argument string is required");if("string"!=typeof e)throw new TypeError("argument string is required to be a string");return n.test(e.toLowerCase())},oi}
/*!
* type-is
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/();function i(a,i){var o,s,c=i,p=function(a){try{return a?function(a){var i=e.parse(a).type;return n.test(i)?i:null}(a):null}catch(e){return null}}(a);if(!p)return!1;if(c&&!Array.isArray(c))for(c=new Array(arguments.length-1),o=0;o<c.length;o++)c[o]=arguments[o+1];if(!c||!c.length)return p;for(o=0;o<c.length;o++)if(r(t(s=c[o]),p))return"+"===s[0]||-1!==s.indexOf("*")?p:s;return!1}function o(e){return void 0!==e.headers["transfer-encoding"]||!isNaN(e.headers["content-length"])}function t(e){if("string"!=typeof e)return!1;switch(e){case"urlencoded":return"application/x-www-form-urlencoded";case"multipart":return"multipart/*"}return"+"===e[0]?"*/*"+e:-1===e.indexOf("/")?a.lookup(e):e}function r(e,a){if(!1===e)return!1;var n=a.split("/"),i=e.split("/");return 2===n.length&&2===i.length&&("*"===i[0]||i[0]===n[0])&&("*+"===i[1].slice(0,2)?i[1].length<=n[1].length+1&&i[1].slice(1)===n[1].slice(1-i[1].length):"*"===i[1]||i[1]===n[1])}return Ve.exports=function(e,a){if(!o(e))return null;var n=arguments.length>2?Array.prototype.slice.call(arguments,1):a;return i(e.headers["content-type"],n)},Ve.exports.is=i,Ve.exports.hasBody=o,Ve.exports.normalize=t,Ve.exports.match=r,Ve.exports}function ri(){if(sa)return ra;sa=1;var e=W(),a=Ze(),n=ti();return ra={getCharset:function(e){try{return(a.parse(e).parameters.charset||"").toLowerCase()}catch{return}},normalizeOptions:function(a,i){if(!i)throw new TypeError("defaultType must be provided");var o=!1!==a?.inflate,t="number"!=typeof a?.limit?e.parse(a?.limit||"100kb"):a?.limit,r=a?.type||i,s=a?.verify||!1;if(!1!==s&&"function"!=typeof s)throw new TypeError("option verify must be function");return{inflate:o,limit:t,verify:s,shouldParse:"function"!=typeof r?function(e){return function(a){return Boolean(n(a,e))}}(r):r}}},ra}
/*!
* body-parser
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/function si(){return va?fa:(va=1,fa=TypeError)}function ci(){return xa?ha:(xa=1,ha=t.inspect)}function pi(){if(ga)return ba;ga=1;var a="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=a&&n&&"function"==typeof n.get?n.get:null,o=a&&Map.prototype.forEach,t="function"==typeof Set&&Set.prototype,r=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=t&&r&&"function"==typeof r.get?r.get:null,c=t&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,l="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,u="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,m=Object.prototype.toString,f=Function.prototype.toString,v=String.prototype.match,h=String.prototype.slice,x=String.prototype.replace,b=String.prototype.toUpperCase,g=String.prototype.toLowerCase,y=RegExp.prototype.test,w=Array.prototype.concat,j=Array.prototype.join,k=Array.prototype.slice,E=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,S=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,_=Object.prototype.propertyIsEnumerable,q=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,a){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||y.call(/e/,a))return a;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var i=e<0?-E(-e):E(e);if(i!==e){var o=String(i),t=h.call(a,o.length+1);return x.call(o,n,"$&_")+"."+x.call(x.call(t,/([0-9]{3})/g,"$&_"),/_$/,"")}}return x.call(a,n,"$&_")}var I=ci(),z=I.custom,B=$(z)?z:null,L={__proto__:null,double:'"',single:"'"},R={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function F(e,a,n){var i=n.quoteStyle||a,o=L[i];return o+e+o}function N(e){return x.call(String(e),/"/g,"&quot;")}function D(e){return!C||!("object"==typeof e&&(C in e||void 0!==e[C]))}function M(e){return"[object Array]"===V(e)&&D(e)}function U(e){return"[object RegExp]"===V(e)&&D(e)}function $(e){if(O)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}ba=function a(n,t,r,m){var b=t||{};if(W(b,"quoteStyle")&&!W(L,b.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(b,"maxStringLength")&&("number"==typeof b.maxStringLength?b.maxStringLength<0&&b.maxStringLength!==1/0:null!==b.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var y=!W(b,"customInspect")||b.customInspect;if("boolean"!=typeof y&&"symbol"!==y)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(b,"indent")&&null!==b.indent&&"\t"!==b.indent&&!(parseInt(b.indent,10)===b.indent&&b.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(b,"numericSeparator")&&"boolean"!=typeof b.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var E=b.numericSeparator;if(void 0===n)return"undefined";if(null===n)return"null";if("boolean"==typeof n)return n?"true":"false";if("string"==typeof n)return Z(n,b);if("number"==typeof n){if(0===n)return 1/0/n>0?"0":"-0";var S=String(n);return E?P(n,S):S}if("bigint"==typeof n){var z=String(n)+"n";return E?P(n,z):z}var R=void 0===b.depth?5:b.depth;if(void 0===r&&(r=0),r>=R&&R>0&&"object"==typeof n)return M(n)?"[Array]":"[Object]";var H,K=function(e,a){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=j.call(Array(e.indent+1)," ")}return{base:n,prev:j.call(Array(a+1),n)}}(b,r);if(void 0===m)m=[];else if(G(m,n)>=0)return"[Circular]";function ae(e,n,i){if(n&&(m=k.call(m)).push(n),i){var o={depth:b.depth};return W(b,"quoteStyle")&&(o.quoteStyle=b.quoteStyle),a(e,o,r+1,m)}return a(e,b,r+1,m)}if("function"==typeof n&&!U(n)){var ne=function(e){if(e.name)return e.name;var a=v.call(f.call(e),/^function\s*([\w$]+)/);return a?a[1]:null}(n),ie=ee(n,ae);return"[Function"+(ne?": "+ne:" (anonymous)")+"]"+(ie.length>0?" { "+j.call(ie,", ")+" }":"")}if($(n)){var oe=O?x.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(n);return"object"!=typeof n||O?oe:J(oe)}if((H=n)&&"object"==typeof H&&("undefined"!=typeof HTMLElement&&H instanceof HTMLElement||"string"==typeof H.nodeName&&"function"==typeof H.getAttribute)){for(var te="<"+g.call(String(n.nodeName)),re=n.attributes||[],se=0;se<re.length;se++)te+=" "+re[se].name+"="+F(N(re[se].value),"double",b);return te+=">",n.childNodes&&n.cLine truncated
/*!
* body-parser
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/function Zi(){return ai||(ai=1,function(a,n){n=k.exports=function(){throw new Error("The bodyParser() generic has been split into individual middleware to use instead.")},Object.defineProperty(n,"json",{configurable:!0,enumerable:!0,get:()=>function(){if(pa)return ca;pa=1;var a=R(),n=e.r()("body-parser:json"),i=U().isFinished,o=He(),t=ti(),{getCharset:r,normalizeOptions:s}=ri();ca=function(e){var{inflate:d,limit:m,verify:f,shouldParse:v}=s(e,"application/json"),h=e?.reviver,x=!1!==e?.strict;function b(e){if(0===e.length)return{};if(x){var a=(i=e,(o=c.exec(i))?o[1]:void 0);if("{"!==a&&"["!==a)throw n("strict violation"),function(e,a){var n=e.indexOf(a),i="";if(-1!==n){i=e.substring(0,n)+p;for(var o=n+1;o<e.length;o++)i+=p}try{throw JSON.parse(i),new SyntaxError("strict violation")}catch(a){return u(a,{message:a.message.replace(l,function(a){return e.substring(n,n+a.length)}),stack:a.stack})}}(e,a)}var i,o;try{return n("parse json"),JSON.parse(e,h)}catch(e){throw u(e,{message:e.message,stack:e.stack})}}return function(e,s,c){if(i(e))return n("body already parsed"),void c();if("body"in e||(e.body=void 0),!t.hasBody(e))return n("skip empty body"),void c();if(n("content-type %j",e.headers["content-type"]),!v(e))return n("skip parsing"),void c();var p=r(e)||"utf-8";if("utf-"!==p.slice(0,4))return n("invalid charset"),void c(a(415,'unsupported charset "'+p.toUpperCase()+'"',{charset:p,type:"charset.unsupported"}));o(e,s,c,b,n,{encoding:p,inflate:d,limit:m,verify:f})}};var c=/^[\x20\x09\x0a\x0d]*([^\x20\x09\x0a\x0d])/,p="#",l=/#+/g;function u(e,a){for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var o=n[i];"stack"!==o&&"message"!==o&&delete e[o]}return e.stack=a.stack.replace(e.message,a.message),e.message=a.message,e}return ca}
/*!
* body-parser
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/()}),Object.defineProperty(n,"raw",{configurable:!0,enumerable:!0,get:()=>function(){if(ua)return la;ua=1;var a=e.r()("body-parser:raw"),n=U().isFinished,i=He(),o=ti(),{normalizeOptions:t}=ri();return la=function(e){var{inflate:r,limit:s,verify:c,shouldParse:p}=t(e,"application/octet-stream");function l(e){return e}return function(e,t,u){return n(e)?(a("body already parsed"),void u()):("body"in e||(e.body=void 0),o.hasBody(e)?(a("content-type %j",e.headers["content-type"]),p(e)?void i(e,t,u,l,a,{encoding:null,inflate:r,limit:s,verify:c}):(a("skip parsing"),void u())):(a("skip empty body"),void u()))}},la}
/*!
* body-parser
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/()}),Object.defineProperty(n,"text",{configurable:!0,enumerable:!0,get:()=>function(){if(ma)return da;ma=1;var a=e.r()("body-parser:text"),n=U().isFinished,i=He(),o=ti(),{getCharset:t,normalizeOptions:r}=ri();return da=function(e){var{inflate:s,limit:c,verify:p,shouldParse:l}=r(e,"text/plain"),u=e?.defaultCharset||"utf-8";function d(e){return e}return function(e,r,m){if(n(e))return a("body already parsed"),void m();if("body"in e||(e.body=void 0),!o.hasBody(e))return a("skip empty body"),void m();if(a("content-type %j",e.headers["content-type"]),!l(e))return a("skip parsing"),void m();var f=t(e)||u;i(e,r,m,d,a,{encoding:f,inflate:s,limit:c,verify:p})}},da}()}),Object.defineProperty(n,"urlencoded",{configurable:!0,enumerable:!0,get:()=>function(){if(ei)return Yn;ei=1;var a=R(),n=e.r()("body-parser:urlencoded"),i=U().isFinished,o=He(),t=ti(),r=Gi(),{getCharset:s,normalizeOptions:c}=ri();return Yn=function(e){var{inflate:p,limit:l,verify:u,shouldParse:d}=c(e,"application/x-www-form-urlencoded"),m=e?.defaultCharset||"utf-8";if("utf-8"!==m&&"iso-8859-1"!==m)throw new TypeError("option defaultCharset must be either utf-8 or iso-8859-1");var f=function(e){var i=Boolean(e?.extended),o=void 0!==e?.parameterLimit?e?.parameterLimit:1e3,t=e?.charsetSentinel,s=e?.interpretNumericEntities,c=i?void 0!==e?.depth?e?.depth:32:0;if(isNaN(o)||o<1)throw new TypeError("option parameterLimit must be a positive number");if(isNaN(c)||c<0)throw new TypeError("option depth must be a zero or a positive number");return isFinite(o)&&(o|=0),function(e,p){var l=function(e,a){var n=e.split("&").length;return n>a?void 0:n-1}(e,o);if(void 0===l)throw n("too many parameters"),a(413,"too many parameters",{type:"parameters.too.many"});var u=i?Math.max(100,l):0;n("parse "+(i?"extended ":"")+"urlencoding");try{return r.parse(e,{allowPrototypes:!0,arrayLimit:u,depth:c,charsetSentinel:t,interpretNumericEntities:s,charset:p,parameterLimit:o,strictDepth:!0})}catch(e){throw e instanceof RangeError?a(400,"The input exceeded the depth",{type:"querystring.parse.rangeError"}):e}}}(e);function v(e,a){return e.length?f(e,a):{}}return function(e,r,c){if(i(e))return n("body already parsed"),void c();if("body"in e||(e.body=void 0),!t.hasBody(e))return n("skip empty body"),void c();if(n("content-type %j",e.headers["content-type"]),!d(e))return n("skip parsing"),void c();var f=s(e)||m;if("utf-8"!==f&&"iso-8859-1"!==f)return n("invalid charset"),void c(a(415,'unsupported charset "'+f.toUpperCase()+'"',{charset:f,type:"charset.unsupported"}));o(e,r,c,v,n,{encoding:f,inflate:p,limit:l,verify:u})}},Yn}
/*!
* body-parser
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/()})}(0,k.exports)),k.exports}function Ki(){return ii?ni:(ii=1,ni=function(e,a,n=!0){if(!e)throw new TypeError("The `destination` argument is required.");if(!a)throw new TypeError("The `source` argument is required.");for(const i of Object.getOwnPropertyNames(a)){if(!n&&Object.hasOwn(e,i))continue;const o=Object.getOwnPropertyDescriptor(a,i);Object.defineProperty(e,i,o)}return e})}var Ji,Xi,Qi,Yi,eo={exports:{}};
/*!
* encodeurl
* Copyright(c) 2016 Douglas Christopher Wilson
* MIT Licensed
*/function ao(){if(Xi)return Ji;Xi=1,Ji=function(i){return String(i).replace(a,n).replace(e,encodeURI)};var e=/(?:[^\x21\x23-\x3B\x3D\x3F-\x5F\x61-\x7A\x7C\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g,a=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g,n="$1�$2";return Ji}
/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/function no(){if(Yi)return Qi;Yi=1;var e=/["'&<>]/;return Qi=function(a){var n,i=""+a,o=e.exec(i);if(!o)return i;var t="",r=0,s=0;for(r=o.index;r<i.length;r++){switch(i.charCodeAt(r)){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!==r&&(t+=i.substring(s,r)),s=r+1,t+=n}return s!==r?t+i.substring(s,r):t}}var io,oo={exports:{}};
/*!
* parseurl
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2014-2017 Douglas Christopher Wilson
* MIT Licensed
*/function to(){if(io)return oo.exports;io=1;var e=s,a=e.parse,n=e.Url;function i(e){var a=e.url;if(void 0!==a){var n=e._parsedUrl;return t(a,n)?n:((n=o(a))._raw=a,e._parsedUrl=n)}}function o(e){if("string"!=typeof e||47!==e.charCodeAt(0))return a(e);for(var i=e,o=null,t=null,r=1;r<e.length;r++)switch(e.charCodeAt(r)){case 63:null===t&&(i=e.substring(0,r),o=e.substring(r+1),t=e.substring(r));break;case 9:case 10:case 12:case 13:case 32:case 35:case 160:case 65279:return a(e)}var s=void 0!==n?new n:{};return s.path=e,s.href=e,s.pathname=i,null!==t&&(s.query=o,s.search=t),s}function t(e,a){return"object"==typeof a&&null!==a&&(void 0===n||a instanceof n)&&a._raw===e}return oo.exports=i,oo.exports.original=function(e){var a=e.originalUrl;if("string"!=typeof a)return i(e);var n=e._parsedOriginalUrl;return t(a,n)?n:((n=o(a))._raw=a,e._parsedOriginalUrl=n)},oo.exports}var ro,so,co,po,lo,uo,mo={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a Teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"};
/*!
* statuses
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2016 Douglas Christopher Wilson
* MIT Licensed
*/function fo(){if(so)return ro;so=1;var e=mo;function a(e){if(!Object.prototype.hasOwnProperty.call(n.message,e))throw new Error("invalid status code: "+e);return n.message[e]}function n(e){if("number"==typeof e)return a(e);if("string"!=typeof e)throw new TypeError("code must be a number or string");var i=parseInt(e,10);return isNaN(i)?function(e){var a=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(n.code,a))throw new Error('invalid status message: "'+e+'"');return n.code[a]}(e):a(i)}return ro=n,n.message=e,n.code=function(e){var a={};return Object.keys(e).forEach(function(n){var i=e[n],o=Number(n);a[i.toLowerCase()]=o}),a}(e),n.codes=function(e){return Object.keys(e).map(function(e){return Number(e)})}(e),n.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},n.empty={204:!0,205:!0,304:!0},n.retry={502:!0,503:!0,504:!0},ro}
/*!
* finalhandler
* Copyright(c) 2014-2022 Douglas Christopher Wilson
* MIT Licensed
*/var vo,ho,xo={};
/*!
* etag
* Copyright(c) 2014-2016 Douglas Christopher Wilson
* MIT Licensed
*/function bo(){if(ho)return vo;ho=1,vo=function(i,o){if(null==i)throw new TypeError("argument entity is required");var t,r=(t=i,"function"==typeof a&&t instanceof a||t&&"object"==typeof t&&"ctime"in t&&"[object Date]"===n.call(t.ctime)&&"mtime"in t&&"[object Date]"===n.call(t.mtime)&&"ino"in t&&"number"==typeof t.ino&&"size"in t&&"number"==typeof t.size),s=o&&"boolean"==typeof o.weak?o.weak:r;if(!r&&"string"!=typeof i&&!Buffer.isBuffer(i))throw new TypeError("argument entity must be string, Buffer, or fs.Stats");var c,p,l=r?(p=(c=i).mtime.getTime().toString(16),'"'+c.size.toString(16)+"-"+p+'"'):function(a){if(0===a.length)return'"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"';var n=e.createHash("sha1").update(a,"utf8").digest("base64").substring(0,27);return'"'+("string"==typeof a?Buffer.byteLength(a,"utf8"):a.length).toString(16)+"-"+n+'"'}(i);return s?"W/"+l:l};var e=d,a=m.Stats,n=Object.prototype.toString;return vo}var go,yo,wo,jo,ko,Eo={exports:{}},Ao={exports:{}},So=Ao.exports;
/*!
* forwarded
* Copyright(c) 2014-2017 Douglas Christopher Wilson
* MIT Licensed
*/function To(){return wo||(wo=1,e=Ao,function(){var a,n,i,o,t,r,s,c;n={},null!==e&&e.exports?e.exports=n:this.ipaddr=n,s=function(e,a,n,i){var o,t;if(e.length!==a.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(o=0;i>0;){if((t=n-i)<0&&(t=0),e[o]>>t!==a[o]>>t)return!1;i-=n,o+=1}return!0},n.subnetMatch=function(e,a,n){var i,o,t,r,s;for(t in null==n&&(n="unicast"),a)for(!(r=a[t])[0]||r[0]instanceof Array||(r=[r]),i=0,o=r.length;i<o;i++)if(s=r[i],e.kind()===s[0].kind()&&e.match.apply(e,s))return t;return n},n.IPv4=function(){function e(e){var a,n,i;if(4!==e.length)throw new Error("ipaddr: ipv4 octet count should be 4");for(a=0,n=e.length;a<n;a++)if(!(0<=(i=e[a])&&i<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=e}return e.prototype.kind=function(){return"ipv4"},e.prototype.toString=function(){return this.octets.join(".")},e.prototype.toNormalizedString=function(){return this.toString()},e.prototype.toByteArray=function(){return this.octets.slice(0)},e.prototype.match=function(e,a){var n;if(void 0===a&&(e=(n=e)[0],a=n[1]),"ipv4"!==e.kind())throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return s(this.octets,e.octets,8,a)},e.prototype.SpecialRanges={unspecified:[[new e([0,0,0,0]),8]],broadcast:[[new e([255,255,255,255]),32]],multicast:[[new e([224,0,0,0]),4]],linkLocal:[[new e([169,254,0,0]),16]],loopback:[[new e([127,0,0,0]),8]],carrierGradeNat:[[new e([100,64,0,0]),10]],private:[[new e([10,0,0,0]),8],[new e([172,16,0,0]),12],[new e([192,168,0,0]),16]],reserved:[[new e([192,0,0,0]),24],[new e([192,0,2,0]),24],[new e([192,88,99,0]),24],[new e([198,51,100,0]),24],[new e([203,0,113,0]),24],[new e([240,0,0,0]),4]]},e.prototype.range=function(){return n.subnetMatch(this,this.SpecialRanges)},e.prototype.toIPv4MappedAddress=function(){return n.IPv6.parse("::ffff:"+this.toString())},e.prototype.prefixLengthFromSubnetMask=function(){var e,a,n,i,o,t,r;for(r={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},e=0,o=!1,a=n=3;n>=0;a=n+=-1){if(!((i=this.octets[a])in r))return null;if(t=r[i],o&&0!==t)return null;8!==t&&(o=!0),e+=t}return 32-e},e}(),i="(0?\\d+|0x[a-f0-9]+)",o={fourOctet:new RegExp("^"+i+"\\."+i+"\\."+i+"\\."+i+"$","i"),longValue:new RegExp("^"+i+"$","i")},n.IPv4.parser=function(e){var a,n,i,t,r;if(n=function(e){return"0"===e[0]&&"x"!==e[1]?parseInt(e,8):parseInt(e)},a=e.match(o.fourOctet))return function(){var e,o,t,r;for(r=[],e=0,o=(t=a.slice(1,6)).length;e<o;e++)i=t[e],r.push(n(i));return r}();if(a=e.match(o.longValue)){if((r=n(a[1]))>4294967295||r<0)throw new Error("ipaddr: address outside defined range");return function(){var e,a;for(a=[],t=e=0;e<=24;t=e+=8)a.push(r>>t&255);return a}().reverse()}return null},n.IPv6=function(){function e(e,a){var n,i,o,t,r,s;if(16===e.length)for(this.parts=[],n=i=0;i<=14;n=i+=2)this.parts.push(e[n]<<8|e[n+1]);else{if(8!==e.length)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=e}for(o=0,t=(s=this.parts).length;o<t;o++)if(!(0<=(r=s[o])&&r<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");a&&(this.zoneId=a)}return e.prototype.kind=function(){return"ipv6"},e.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},e.prototype.toRFC5952String=function(){var e,a,n,i,o;for(i=/((^|:)(0(:|$)){2,})/g,o=this.toNormalizedString(),e=0,a=-1;n=i.exec(o);)n[0].length>a&&(e=n.index,a=n[0].length);return a<0?o:o.substring(0,e)+"::"+o.substring(e+a)},e.prototype.toByteArray=function(){var e,a,n,i,o;for(e=[],a=0,n=(o=this.parts).length;a<n;a++)i=o[a],e.push(i>>8),e.push(255&i);return e},e.prototype.toNormalizedString=function(){var e,a,n;return e=function(){var e,n,i,o;for(o=[],e=0,n=(i=this.parts).length;e<n;e++)a=i[e],o.push(a.toString(16));return o}.call(this).join(":"),n="",this.zoneId&&(n="%"+this.zoneId),e+n},e.prototype.toFixedLengthString=function(){var e,a,n;return e=function(){var e,n,i,o;for(o=[],e=0,n=(i=this.parts).length;e<n;e++)a=i[e],o.push(a.toString(16).padStart(4,"0"));return o}.call(this).join(":"),n="",this.zoneId&&(n="%"+this.zoneId),e+n},e.prototype.match=function(e,a){var n;if(void 0===a&&(e=(n=e)[0],a=n[1]),"ipv6"!==e.kind())throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return s(this.parts,e.parts,16,a)},e.prototype.SpecialRanges={unspecified:[new e([0,0,0,0,0,0,0,0]),128],linkLocal:[new e([65152,0,0,0,0,0,0,0]),10],multicast:[new e([65280,0,0,0,0,0,0,0]),8],loopback:[new e([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new e([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new e([0,0,0,0,0,65535,0,0]),96],rfc6145:[new e([0,0,0,0,65535,0,0,0]),96],rfc6052:[new e([100,65435,0,0,0,0,0,0]),96],"6to4":[new e([8194,0,0,0,0,0,0,0]),16],teredo:[new e([8193,0,0,0,0,0,0,0]),32],reserved:[[new e([8193,3512,0,0,0,0,0,0]),32]]},e.prototype.range=function(){return n.subnetMatch(this,this.SpecialRanges)},e.prototype.isIPv4MappedAddress=function(){return"ipv4Mapped"===this.range()},e.prototype.toIPv4ALine truncated
/*!
* proxy-addr
* Copyright(c) 2014-2016 Douglas Christopher Wilson
* MIT Licensed
*/function Oo(){if(jo)return Eo.exports;jo=1,Eo.exports=function(e,a){if(!e)throw new TypeError("req argument is required");if(!a)throw new TypeError("trust argument is required");var n=r(e,a);return n[n.length-1]},Eo.exports.all=r,Eo.exports.compile=s;var e=function(){if(yo)return go;function e(e){return e.socket?e.socket.remoteAddress:e.connection.remoteAddress}return yo=1,go=function(a){if(!a)throw new TypeError("argument req is required");var n=function(e){for(var a=e.length,n=[],i=e.length,o=e.length-1;o>=0;o--)switch(e.charCodeAt(o)){case 32:i===a&&(i=a=o);break;case 44:i!==a&&n.push(e.substring(i,a)),i=a=o;break;default:i=o}return i!==a&&n.push(e.substring(i,a)),n}(a.headers["x-forwarded-for"]||"");return[e(a)].concat(n)}}(),a=To(),n=/^[0-9]+$/,i=a.isValid,o=a.parse,t={linklocal:["169.254.0.0/16","fe80::/10"],loopback:["127.0.0.1/8","::1/128"],uniquelocal:["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","fc00::/7"]};function r(a,n){var i=e(a);if(!n)return i;"function"!=typeof n&&(n=s(n));for(var o=0;o<i.length-1;o++)n(i[o],o)||(i.length=o+1);return i}function s(e){if(!e)throw new TypeError("argument is required");var a,n,r,s,l,u,d,m,f;if("string"==typeof e)a=[e];else{if(!Array.isArray(e))throw new TypeError("unsupported trust argument");a=e.slice()}for(var v=0;v<a.length;v++)e=a[v],Object.prototype.hasOwnProperty.call(t,e)&&(e=t[e],a.splice.apply(a,[v,1].concat(e)),v+=e.length-1);return n=function(e){for(var a=new Array(e.length),n=0;n<e.length;n++)a[n]=c(e[n]);return a}(a),0===(r=n.length)?p:1===r?(l=n[0],u=l[0],d=u.kind(),m="ipv4"===d,f=l[1],function(e){if(!i(e))return!1;var a=o(e);if(a.kind()!==d){if(m&&!a.isIPv4MappedAddress())return!1;a=m?a.toIPv4Address():a.toIPv4MappedAddress()}return a.match(u,f)}):(s=n,function(e){if(!i(e))return!1;for(var a,n=o(e),t=n.kind(),r=0;r<s.length;r++){var c=s[r],p=c[0],l=p.kind(),u=c[1],d=n;if(t!==l){if("ipv4"===l&&!n.isIPv4MappedAddress())continue;a||(a="ipv4"===l?n.toIPv4Address():n.toIPv4MappedAddress()),d=a}if(d.match(p,u))return!0}return!1})}function c(e){var a=e.lastIndexOf("/"),t=-1!==a?e.substring(0,a):e;if(!i(t))throw new TypeError("invalid IP address: "+t);var r=o(t);-1===a&&"ipv6"===r.kind()&&r.isIPv4MappedAddress()&&(r=r.toIPv4Address());var s="ipv6"===r.kind()?128:32,c=-1!==a?e.substring(a+1,e.length):null;if((c=null===c?s:n.test(c)?parseInt(c,10):"ipv4"===r.kind()&&i(c)?function(e){var a=o(e);return"ipv4"===a.kind()?a.prefixLengthFromSubnetMask():null}(c):null)<=0||c>s)throw new TypeError("invalid range on address: "+e);return[r,c]}function p(){return!1}return Eo.exports}
/*!
* express
* Copyright(c) 2009-2013 TJ Holowaychuk
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/function Co(){return ko||(ko=1,function(e){var{METHODS:a}=u,n=Ze(),i=bo(),o=ia(),t=Oo(),r=Gi(),s=f;function c(e){return function(a,n){var o=Buffer.isBuffer(a)?a:Buffer.from(a,n);return i(o,e)}}function p(e){return r.parse(e,{allowPrototypes:!0})}e.methods=a.map(e=>e.toLowerCase()),e.etag=c({weak:!1}),e.wetag=c({weak:!0}),e.normalizeType=function(e){return~e.indexOf("/")?function(e){for(var a=e.length,n=-1===(t=e.indexOf(";"))?a:t,i={value:e.slice(0,n).trim(),quality:1,params:{}};n<a;){var o=e.indexOf("=",n);if(-1===o)break;var t,r=-1===(t=e.indexOf(";",n))?a:t;if(o>r)n=e.lastIndexOf(";",o-1)+1;else{var s=e.slice(n,o).trim(),c=e.slice(o+1,r).trim();"q"===s?i.quality=parseFloat(c):i.params[s]=c,n=r+1}}return i}(e):{value:o.lookup(e)||"application/octet-stream",params:{}}},e.normalizeTypes=function(a){return a.map(e.normalizeType)},e.compileETag=function(a){var n;if("function"==typeof a)return a;switch(a){case!0:case"weak":n=e.wetag;break;case!1:break;case"strong":n=e.etag;break;default:throw new TypeError("unknown value for etag function: "+a)}return n},e.compileQueryParser=function(e){var a;if("function"==typeof e)return e;switch(e){case!0:case"simple":a=s.parse;break;case!1:break;case"extended":a=p;break;default:throw new TypeError("unknown value for query parser function: "+e)}return a},e.compileTrust=function(e){return"function"==typeof e?e:!0===e?function(){return!0}:"number"==typeof e?function(a,n){return n<e}:("string"==typeof e&&(e=e.split(",").map(function(e){return e.trim()})),t.compile(e||[]))},e.setCharset=function(e,a){if(!e||!a)return e;var i=n.parse(e);return i.parameters.charset=a,n.format(i)}}(xo)),xo}var _o,qo,Po,Io={exports:{}};function zo(){if(Po)return Io.exports;Po=1;var e=(qo||(qo=1,_o=function e(a,n){if(a&&n)return e(a)(n);if("function"!=typeof a)throw new TypeError("need wrapper function");return Object.keys(a).forEach(function(e){i[e]=a[e]}),i;function i(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var i=a.apply(this,e),o=e[e.length-1];return"function"==typeof i&&i!==o&&Object.keys(o).forEach(function(e){i[e]=o[e]}),i}}),_o);function a(e){var a=function(){return a.called?a.value:(a.called=!0,a.value=e.apply(this,arguments))};return a.called=!1,a}function n(e){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return a.onceError=n+" shouldn't be called more than once",a.called=!1,a}return Io.exports=e(a),Io.exports.strict=e(n),a.proto=a(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return a(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return n(this)},configurable:!0})}),Io.exports}var Bo,Lo={exports:{}},Ro={exports:{}};function Fo(){if(Bo)return Ro.exports;function e(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}return Bo=1,Ro.exports=e,Ro.exports.default=e,Ro.exports}var No,Do,Mo,Uo,$o,Ho,Wo,Vo={};function Go(){if(No)return Vo;No=1,Object.defineProperty(Vo,"__esModule",{value:!0}),Vo.TokenData=void 0,Vo.parse=p,Vo.compile=function(a,n={}){const{encode:i=encodeURIComponent,delimiter:o=e}=n,t=l((a instanceof c?a:p(a,n)).tokens,o,i);return function(e={}){const[a,...n]=t(e);if(n.length)throw new TypeError(`Missing parameters: ${n.join(", ")}`);return a}},Vo.match=function(n,i={}){const{decode:o=decodeURIComponent,delimiter:t=e}=i,{regexp:r,keys:s}=u(n,i),c=s.map(e=>!1===o?a:"param"===e.type?o:e=>e.split(t).map(o));return function(e){const a=r.exec(e);if(!a)return!1;const n=a[0],i=Object.create(null);for(let e=1;e<a.length;e++){if(void 0===a[e])continue;const n=s[e-1],o=c[e-1];i[n.name]=o(a[e])}return{path:n,params:i}}},Vo.pathToRegexp=u,Vo.stringify=function(e){return e.tokens.map(function e(a,o,t){if("text"===a.type)return a.value.replace(/[{}()\[\]+?!:*]/g,"\\$&");if("group"===a.type)return`{${a.tokens.map(e).join("")}}`;const r=function(e){const[a,...o]=e;return!!n.test(a)&&o.every(e=>i.test(e))}(a.name)&&function(e){return"text"!==(null==e?void 0:e.type)||!i.test(e.value[0])}(t[o+1]),s=r?a.name:JSON.stringify(a.name);if("param"===a.type)return`:${s}`;if("wildcard"===a.type)return`*${s}`;throw new TypeError(`Unexpected token: ${a}`)}).join("")};const e="/",a=e=>e,n=/^[$_\p{ID_Start}]$/u,i=/^[$\u200c\u200d\p{ID_Continue}]$/u,o="https://git.new/pathToRegexpError",t={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function r(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class s{constructor(e){this.tokens=e}peek(){if(!this._peek){const e=this.tokens.next();this._peek=e.value}return this._peek}tryConsume(e){const a=this.peek();if(a.type===e)return this._peek=void 0,a.value}consume(e){const a=this.tryConsume(e);if(void 0!==a)return a;const{type:n,index:i}=this.peek();throw new TypeError(`Unexpected ${n} at ${i}, expected ${e}: ${o}`)}text(){let e,a="";for(;e=this.tryConsume("CHAR")||this.tryConsume("ESCAPED") Line truncated
/*!
* router
* Copyright(c) 2013 Roman Shtylman
* Copyright(c) 2014-2022 Douglas Christopher Wilson
* MIT Licensed
*/function Zo(){if(Mo)return Do;Mo=1;const a=Fo(),n=Go(),i=e.r()("router:layer"),o=A()("router"),t=/\/+$/,r=/\((?:\?<(.*?)>)?(?!\?)/g;function s(e,a,o){if(!(this instanceof s))return new s(e,a,o);i("new %o",e);const t=a||{};function l(e){if(e instanceof RegExp){const a=[];let n,i=0;for(;n=r.exec(e.source);)a.push({name:n[1]||i++,offset:n.index});return function(n){const i=e.exec(n);if(!i)return!1;const o={};for(let e=1;e<i.length;e++){const n=a[e-1].name,t=c(i[e]);void 0!==t&&(o[n]=t)}return{params:o,path:i[0]}}}return n.match(t.strict?e:p(e),{sensitive:t.sensitive,end:t.end,trailing:!t.strict,decode:c})}this.handle=o,this.keys=[],this.name=o.name||"<anonymous>",this.params=void 0,this.path=void 0,this.slash="/"===e&&!1===t.end,this.matchers=Array.isArray(e)?e.map(l):[l(e)]}function c(e){if("string"!=typeof e||0===e.length)return e;try{return decodeURIComponent(e)}catch(a){throw a instanceof URIError&&(a.message="Failed to decode param '"+e+"'",a.status=400),a}}function p(e){return e instanceof RegExp||"/"===e?e:Array.isArray(e)?e.map(function(e){return p(e)}):String(e).replace(t,"")}return Do=s,s.prototype.handleError=function(e,n,i,t){const r=this.handle;if(4!==r.length)return t(e);try{const s=r(e,n,i,t);a(s)&&(s instanceof Promise||o("handlers that are Promise-like are deprecated, use a native Promise instead"),s.then(null,function(e){t(e||new Error("Rejected promise"))}))}catch(e){t(e)}},s.prototype.handleRequest=function(e,n,i){const t=this.handle;if(t.length>3)return i();try{const r=t(e,n,i);a(r)&&(r instanceof Promise||o("handlers that are Promise-like are deprecated, use a native Promise instead"),r.then(null,function(e){i(e||new Error("Rejected promise"))}))}catch(e){i(e)}},s.prototype.match=function(e){let a;if(null!=e){if(this.slash)return this.params={},this.path="",!0;let n=0;for(;!a&&n<this.matchers.length;)a=this.matchers[n](e),n++}return a?(this.params=a.params,this.path=a.path,this.keys=Object.keys(a.params),!0):(this.params=void 0,this.path=void 0,!1)},Do}
/*!
* router
* Copyright(c) 2013 Roman Shtylman
* Copyright(c) 2014-2022 Douglas Christopher Wilson
* MIT Licensed
*/function Ko(){if(Ho)return Lo.exports;Ho=1;const a=Fo(),n=Zo(),{METHODS:i}=u,o=to(),t=function(){if($o)return Uo;$o=1;const a=e.r()("router:route"),n=Zo(),{METHODS:i}=u,o=Array.prototype.slice,t=Array.prototype.flat,r=i.map(e=>e.toLowerCase());function s(e){a("new %o",e),this.path=e,this.stack=[],this.methods=Object.create(null)}return Uo=s,s.prototype._handlesMethod=function(e){if(this.methods._all)return!0;let a="string"==typeof e?e.toLowerCase():e;return"head"!==a||this.methods.head||(a="get"),Boolean(this.methods[a])},s.prototype._methods=function(){const e=Object.keys(this.methods);this.methods.get&&!this.methods.head&&e.push("head");for(let a=0;a<e.length;a++)e[a]=e[a].toUpperCase();return e},s.prototype.dispatch=function(e,a,n){let i=0;const o=this.stack;let t=0;if(0===o.length)return n();let r="string"==typeof e.method?e.method.toLowerCase():e.method;"head"!==r||this.methods.head||(r="get"),e.route=this,function s(c){if(c&&"route"===c)return n();if(c&&"router"===c)return n(c);if(i>=o.length)return n(c);if(++t>100)return setImmediate(s,c);let p,l;for(;!0!==l&&i<o.length;)p=o[i++],l=!p.method||p.method===r;if(!0!==l)return n(c);c?p.handleError(c,e,a,s):p.handleRequest(e,a,s),t=0}()},s.prototype.all=function(e){const a=t.call(o.call(arguments),1/0);if(0===a.length)throw new TypeError("argument handler is required");for(let e=0;e<a.length;e++){const i=a[e];if("function"!=typeof i)throw new TypeError("argument handler must be a function");const o=n("/",{},i);o.method=void 0,this.methods._all=!0,this.stack.push(o)}return this},r.forEach(function(e){s.prototype[e]=function(i){const r=t.call(o.call(arguments),1/0);if(0===r.length)throw new TypeError("argument handler is required");for(let i=0;i<r.length;i++){const o=r[i];if("function"!=typeof o)throw new TypeError("argument handler must be a function");a("%s %s",e,this.path);const t=n("/",{},o);t.method=e,this.methods[e]=!0,this.stack.push(t)}return this}}),Uo}
/*!
* router
* Copyright(c) 2013 Roman Shtylman
* Copyright(c) 2014-2022 Douglas Christopher Wilson
* MIT Licensed
*/(),r=e.r()("router"),s=A()("router"),c=Array.prototype.slice,p=Array.prototype.flat,l=i.map(e=>e.toLowerCase());function d(e){if(!(this instanceof d))return new d(e);const a=e||{};function n(e,a,i){n.handle(e,a,i)}return Object.setPrototypeOf(n,this),n.caseSensitive=a.caseSensitive,n.mergeParams=a.mergeParams,n.params={},n.strict=a.strict,n.stack=[],n}function m(e,a){try{return e.match(a)}catch(e){return e}}return Lo.exports=d,Lo.exports.Route=t,d.prototype=function(){},d.prototype.param=function(e,a){if(!e)throw new TypeError("argument name is required");if("string"!=typeof e)throw new TypeError("argument name must be a string");if(!a)throw new TypeError("argument fn is required");if("function"!=typeof a)throw new TypeError("argument fn must be a function");let n=this.params[e];return n||(n=this.params[e]=[]),n.push(a),this},d.prototype.handle=function(e,n,i){if(!i)throw new TypeError("argument callback is required");r("dispatching %s %s",e.method,e.url);let t,c=0;const p=function(e){if("string"!=typeof e||0===e.length||"/"===e[0])return;const a=e.indexOf("?"),n=-1!==a?a:e.length,i=e.substring(0,n).indexOf("://");return-1!==i?e.substring(0,e.indexOf("/",3+i)):void 0}(e.url)||"";let l="";const u=this;let d=!1,f=0;const v={},h=this.stack,x=e.params,b=e.baseUrl||"";let g=function(e,a){const n=new Array(arguments.length-2),i=new Array(arguments.length-2);for(let e=0;e<n.length;e++)n[e]=arguments[e+2],i[e]=a[n[e]];return function(){for(let e=0;e<n.length;e++)a[n[e]]=i[e];return e.apply(this,arguments)}}(i,e,"baseUrl","next","params");var y,w;function j(i){let y="route"===i?null:i;if(d&&(e.url=e.url.slice(1),d=!1),0!==l.length&&(e.baseUrl=b,e.url=p+l+e.url.slice(p.length),l=""),"router"===y)return void setImmediate(g,null);if(c>=h.length)return void setImmediate(g,y);if(++f>100)return setImmediate(j,i);const w=function(e){try{return o(e).pathname}catch(e){return}}(e);if(null==w)return g(y);let k,E,A;for(;!0!==E&&c<h.length;){if(k=h[c++],E=m(k,w),A=k.route,"boolean"!=typeof E&&(y=y||E),!0!==E)continue;if(!A)continue;if(y){E=!1;continue}const a=e.method,n=A._handlesMethod(a);!n&&"OPTIONS"===a&&t&&t.push.apply(t,A._methods()),n||"HEAD"===a||(E=!1)}if(!0!==E)return g(y);A&&(e.route=A),e.params=u.mergeParams?function(e,a){if("object"!=typeof a||!a)return e;const n=Object.assign({},a);if(!(0 in e)||!(0 in a))return Object.assign(n,e);let i=0,o=0;for(;i in e;)i++;for(;o in a;)o++;for(i--;i>=0;i--)e[i+o]=e[i],i<o&&delete e[i];return Object.assign(n,e)}(k.params,x):k.params;const S=k.path;!function(e,n,i,o,t,r){const c=n.keys;if(!c||0===c.length)return r();let p,l,u,d,m=0,f=0;function v(a){return a?r(a):m>=c.length?r():(f=0,p=c[m++],l=o.params[p],u=e[p],d=i[p],void 0!==l&&u?d&&(d.match===l||d.error&&"route"!==d.error)?(o.params[p]=d.value,v(d.error)):(i[p]=d={error:null,match:l,value:l},void h()):v())}function h(e){const n=u[f++];if(d.value=o.params[p],e)return d.error=e,void v(e);if(!n)return v();try{const e=n(o,t,h,l,p);a(e)&&(e instanceof Promise||s("parameters that are Promise-like are deprecated, use a native Promise instead"),e.then(null,function(e){h(e||new Error("Rejected promise"))}))}catch(e){h(e)}}v()}(u.params,k,v,e,n,function(a){a?j(y||a):A?k.handleRequest(e,n,j):function(a,i,o,t){if(0!==o.length){if(o!==t.substring(0,o.length))return void j(i);const a=t[o.length];if(a&&"/"!==a)return void j(i);r("trim prefix (%s) from url %s",o,e.url),l=o,e.url=p+e.url.slice(p.length+l.length),p||"/"===e.url[0]||(e.url="/"+e.url,d=!0),e.baseUrl=b+("/"===l[l.length-1]?l.substring(0,l.length-1):l)}r("%s %s : %s",a.name,o,e.originalUrl),i?a.handleError(i,e,n,j):a.handleRequest(e,n,j)}(k,y,S,w),f=0})}e.next=j,"OPTIONS"===e.method&&(t=[],y=g,w=function(e,a){return function(n,i){if(i||0===a.length)return n(i);!function(e,a,n){try{!function(e,a){const n=Object.create(null);for(let e=0;e<a.length;e++)n[a[e]]=!0;const i=Object.keys(n).sort().join(", ");e.setHeader("Allow",i),e.setHeader("Content-Length",Buffer.byteLength(i)),e.setHeader("Content-Type","text/plain"),e.setHeader("X-Content-Type-Options","nosniff"),e.end(i)}(e,a)}catch(e){n(e)}}(e,a,n)}}(n,t),g=function(){const e=new Array(arguments.length+1);e[0]=y;for(let a=0,n=arguments.length;a<n;a++)e[a+1]=arguments[a];w.apply(this,e)}),e.baseUrl=b,e.originalUrl=e.originalUrl||e.url,j()},d.prototype.use=function(e){let a=0,i="/";if("function"!=typeof e){let n=e;for(;Array.isArray(n)&&0!==n.length;)n=n[0];"function"!=typeof n&&(a=1,i=e)}const o=p.call(c.call(arguments,a),1/0);if(0===o.length)throw new TypeError("argument handler is required");for(let e=0;e<o.length;e++){const a=o[e];if("function"!=typeof a)throw new TypeError("argument handler must be a function");r("use %o %s",i,a.name||"<anonymous>");const t=new n(i,{sensitive:this.caseSensitive,strict:!1,end:!1},a);t.route=void 0,this.stack.push(t)}return this},d.prototype.route=function(e){const a=new t(e),i=new n(e,{sensitive:this.caseSensitive,strict:this.strict,end:!0},function(e,n,i){a.dispatch(e,n,i)});return i.route=a Line truncated
/*!
* express
* Copyright(c) 2009-2013 TJ Holowaychuk
* Copyright(c) 2013 Roman Shtylman
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/function Jo(){return Wo||(Wo=1,function(a){var n=function(){if(po)return co;po=1;var a=e.r()("finalhandler"),n=ao(),i=no(),o=U(),t=to(),r=fo(),s=o.isFinished;return co=function(e,c,p){var l=p||{},u=l.env||"production",d=l.onerror;return function(p){var l,m,f;if(p||!c.headersSent){if(p?(f=function(e){return"number"==typeof e.status&&e.status>=400&&e.status<600?e.status:"number"==typeof e.statusCode&&e.statusCode>=400&&e.statusCode<600?e.statusCode:void 0}(p),void 0===f?f=function(e){var a=e.statusCode;return("number"!=typeof a||a<400||a>599)&&(a=500),a}(c):l=function(e){if(e.headers&&"object"==typeof e.headers)return{...e.headers}}(p),m=function(e,a,n){var i;return"production"!==n&&((i=e.stack)||"function"!=typeof e.toString||(i=e.toString())),i||r.message[a]}(p,f,u)):(f=404,m="Cannot "+e.method+" "+n(function(e){try{return t.original(e).pathname}catch(e){return"resource"}}(e))),a("default %s",f),p&&d&&setImmediate(d,p,e,c),c.headersSent)return a("cannot %d after headers sent",f),void(e.socket&&e.socket.destroy());!function(e,a,n,t,c){function p(){var o=function(e){return'<!DOCTYPE html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<title>Error</title>\n</head>\n<body>\n<pre>'+i(e).replaceAll("\n","<br>").replaceAll(" "," &nbsp;")+"</pre>\n</body>\n</html>\n"}(c);a.statusCode=n,e.httpVersionMajor<2&&(a.statusMessage=r.message[n]),a.removeHeader("Content-Encoding"),a.removeHeader("Content-Language"),a.removeHeader("Content-Range");for(const[e,n]of Object.entries(t??{}))a.setHeader(e,n);a.setHeader("Content-Security-Policy","default-src 'none'"),a.setHeader("X-Content-Type-Options","nosniff"),a.setHeader("Content-Type","text/html; charset=utf-8"),a.setHeader("Content-Length",Buffer.byteLength(o,"utf8")),"HEAD"!==e.method?a.end(o,"utf8"):a.end()}s(e)?p():(e.unpipe(),o(e,p),e.resume())}(e,c,f,l,m)}else a("cannot 404 after headers sent")}}}
/*!
* express
* Copyright(c) 2009-2013 TJ Holowaychuk
* Copyright(c) 2013 Roman Shtylman
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/(),i=e.r()("express:application"),o=function(){if(uo)return lo;uo=1;var a=e.r()("express:view"),n=p,i=l,o=n.dirname,t=n.basename,r=n.extname,s=n.join,u=n.resolve;function d(e,n){var i=n||{};if(this.defaultEngine=i.defaultEngine,this.ext=r(e),this.name=e,this.root=i.root,!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");var o=e;if(this.ext||(this.ext="."!==this.defaultEngine[0]?"."+this.defaultEngine:this.defaultEngine,o+=this.ext),!i.engines[this.ext]){var t=this.ext.slice(1);a('require "%s"',t);var s=c.c(t).__express;if("function"!=typeof s)throw new Error('Module "'+t+'" does not provide a view engine.');i.engines[this.ext]=s}this.engine=i.engines[this.ext],this.path=this.lookup(o)}function m(e){a('stat "%s"',e);try{return i.statSync(e)}catch(e){return}}return lo=d,d.prototype.lookup=function(e){var n,i=[].concat(this.root);a('lookup "%s"',e);for(var r=0;r<i.length&&!n;r++){var s=i[r],c=u(s,e),p=o(c),l=t(c);n=this.resolve(p,l)}return n},d.prototype.render=function(e,n){var i=!0;a('render "%s"',this.path),this.engine(this.path,e,function(){if(!i)return n.apply(this,arguments);for(var e=new Array(arguments.length),a=this,o=0;o<arguments.length;o++)e[o]=arguments[o];return process.nextTick(function(){return n.apply(a,e)})}),i=!1},d.prototype.resolve=function(e,a){var n=this.ext,i=s(e,a),o=m(i);return o&&o.isFile()||(o=m(i=s(e,t(a,n),"index"+n)))&&o.isFile()?i:void 0},lo}(),t=u,r=Co().methods,s=Co().compileETag,d=Co().compileQueryParser,m=Co().compileTrust,f=p.resolve,v=zo(),h=Ko(),x=Array.prototype.slice,b=Array.prototype.flat,g=a.exports={},y="@@symbol:trust_proxy_default";function w(e){"test"!==this.get("env")&&console.error(e.stack||e.toString())}g.init=function(){var e=null;this.cache=Object.create(null),this.engines=Object.create(null),this.settings=Object.create(null),this.defaultConfiguration(),Object.defineProperty(this,"router",{configurable:!0,enumerable:!0,get:function(){return null===e&&(e=new h({caseSensitive:this.enabled("case sensitive routing"),strict:this.enabled("strict routing")})),e}})},g.defaultConfiguration=function(){var e="production";this.enable("x-powered-by"),this.set("etag","weak"),this.set("env",e),this.set("query parser","simple"),this.set("subdomain offset",2),this.set("trust proxy",!1),Object.defineProperty(this.settings,y,{configurable:!0,value:!0}),i("booting in %s mode",e),this.on("mount",function(e){!0===this.settings[y]&&"function"==typeof e.settings["trust proxy fn"]&&(delete this.settings["trust proxy"],delete this.settings["trust proxy fn"]),Object.setPrototypeOf(this.request,e.request),Object.setPrototypeOf(this.response,e.response),Object.setPrototypeOf(this.engines,e.engines),Object.setPrototypeOf(this.settings,e.settings)}),this.locals=Object.create(null),this.mountpath="/",this.locals.settings=this.settings,this.set("view",o),this.set("views",f("views")),this.set("jsonp callback name","callback"),this.enable("view cache")},g.handle=function(e,a,i){var o=i||n(e,a,{env:this.get("env"),onerror:w.bind(this)});this.enabled("x-powered-by")&&a.setHeader("X-Powered-By","Express"),e.res=a,a.req=e,Object.setPrototypeOf(e,this.request),Object.setPrototypeOf(a,this.response),a.locals||(a.locals=Object.create(null)),this.router.handle(e,a,o)},g.use=function(e){var a=0,n="/";if("function"!=typeof e){for(var o=e;Array.isArray(o)&&0!==o.length;)o=o[0];"function"!=typeof o&&(a=1,n=e)}var t=b.call(x.call(arguments,a),1/0);if(0===t.length)throw new TypeError("app.use() requires a middleware function");var r=this.router;return t.forEach(function(e){if(!e||!e.handle||!e.set)return r.use(n,e);i(".use app under %s",n),e.mountpath=n,e.parent=this,r.use(n,function(a,n,i){var o=a.app;e.handle(a,n,function(e){Object.setPrototypeOf(a,o.request),Object.setPrototypeOf(n,o.response),i(e)})}),e.emit("mount",this)},this),this},g.route=function(e){return this.router.route(e)},g.engine=function(e,a){if("function"!=typeof a)throw new Error("callback function required");var n="."!==e[0]?"."+e:e;return this.engines[n]=a,this},g.param=function(e,a){if(Array.isArray(e)){for(var n=0;n<e.length;n++)this.param(e[n],a);return this}return this.router.param(e,a),this},g.set=function(e,a){if(1===arguments.length)return this.settings[e];switch(i('set "%s" to %o',e,a),this.settings[e]=a,e){case"etag":this.set("etag fn",s(a));break;case"query parser":this.set("query parser fn",d(a));break;case"trust proxy":this.set("trust proxy fn",m(a)),Object.defineProperty(this.settings,y,{configurable:!0,value:!1})}return this},g.path=function(){return this.parent?this.parent.path()+this.mountpath:""},g.enabled=function(e){return Boolean(this.set(e))},g.disabled=function(e){return!this.set(e)},g.enable=function(e){return this.set(e,!0)},g.disable=function(e){return this.set(e,!1)},r.forEach(function(e){g[e]=function(a){if("get"===e&&1===arguments.length)return this.set(a);var n=this.route(a);return n[e].apply(n,x.call(arguments,1)),this}}),g.all=function(e){foLine truncated
/*!
* negotiator
* Copyright(c) 2012 Federico Romero
* Copyright(c) 2012-2014 Isaac Z. Schlueter
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/function ht(){if(st)return rt;st=1;var e=function(){if(tt)return Qo.exports;tt=1;var e=function(){if(Xo)return Yo.exports;Xo=1,Yo.exports=i,Yo.exports.preferredCharsets=i;var e=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function a(a,n){var i=e.exec(a);if(!i)return null;var o=i[1],t=1;if(i[2])for(var r=i[2].split(";"),s=0;s<r.length;s++){var c=r[s].trim().split("=");if("q"===c[0]){t=parseFloat(c[1]);break}}return{charset:o,q:t,i:n}}function n(e,a,n){var i=0;if(a.charset.toLowerCase()===e.toLowerCase())i|=1;else if("*"!==a.charset)return null;return{i:n,o:a.i,q:a.q,s:i}}function i(e,i){var s=function(e){for(var n=e.split(","),i=0,o=0;i<n.length;i++){var t=a(n[i].trim(),i);t&&(n[o++]=t)}return n.length=o,n}(void 0===e?"*":e||"");if(!i)return s.filter(r).sort(o).map(t);var c=i.map(function(e,a){return function(e,a,i){for(var o={o:-1,q:0,s:0},t=0;t<a.length;t++){var r=n(e,a[t],i);r&&(o.s-r.s||o.q-r.q||o.o-r.o)<0&&(o=r)}return o}(e,s,a)});return c.filter(r).sort(o).map(function(e){return i[c.indexOf(e)]})}function o(e,a){return a.q-e.q||a.s-e.s||e.o-a.o||e.i-a.i||0}function t(e){return e.charset}function r(e){return e.q>0}return Yo.exports}(),a=function(){if(et)return at.exports;et=1,at.exports=i,at.exports.preferredEncodings=i;var e=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function a(a,n){var i=e.exec(a);if(!i)return null;var o=i[1],t=1;if(i[2])for(var r=i[2].split(";"),s=0;s<r.length;s++){var c=r[s].trim().split("=");if("q"===c[0]){t=parseFloat(c[1]);break}}return{encoding:o,q:t,i:n}}function n(e,a,n){var i=0;if(a.encoding.toLowerCase()===e.toLowerCase())i|=1;else if("*"!==a.encoding)return null;return{encoding:e,i:n,o:a.i,q:a.q,s:i}}function i(e,i,s){var c=function(e){for(var i=e.split(","),o=!1,t=1,r=0,s=0;r<i.length;r++){var c=a(i[r].trim(),r);c&&(i[s++]=c,o=o||n("identity",c),t=Math.min(t,c.q||1))}return o||(i[s++]={encoding:"identity",q:t,i:r}),i.length=s,i}(e||""),p=s?function(e,a){if(e.q!==a.q)return a.q-e.q;var n=s.indexOf(e.encoding),i=s.indexOf(a.encoding);return-1===n&&-1===i?a.s-e.s||e.o-a.o||e.i-a.i:-1!==n&&-1!==i?n-i:-1===n?1:-1}:o;if(!i)return c.filter(r).sort(p).map(t);var l=i.map(function(e,a){return function(e,a,i){for(var o={encoding:e,o:-1,q:0,s:0},t=0;t<a.length;t++){var r=n(e,a[t],i);r&&(o.s-r.s||o.q-r.q||o.o-r.o)<0&&(o=r)}return o}(e,c,a)});return l.filter(r).sort(p).map(function(e){return i[l.indexOf(e)]})}function o(e,a){return a.q-e.q||a.s-e.s||e.o-a.o||e.i-a.i}function t(e){return e.encoding}function r(e){return e.q>0}return at.exports}(),n=function(){if(nt)return it.exports;nt=1,it.exports=i,it.exports.preferredLanguages=i;var e=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function a(a,n){var i=e.exec(a);if(!i)return null;var o=i[1],t=i[2],r=o;t&&(r+="-"+t);var s=1;if(i[3])for(var c=i[3].split(";"),p=0;p<c.length;p++){var l=c[p].split("=");"q"===l[0]&&(s=parseFloat(l[1]))}return{prefix:o,suffix:t,q:s,i:n,full:r}}function n(e,n,i){var o=a(e);if(!o)return null;var t=0;if(n.full.toLowerCase()===o.full.toLowerCase())t|=4;else if(n.prefix.toLowerCase()===o.full.toLowerCase())t|=2;else if(n.full.toLowerCase()===o.prefix.toLowerCase())t|=1;else if("*"!==n.full)return null;return{i,o:n.i,q:n.q,s:t}}function i(e,i){var s=function(e){for(var n=e.split(","),i=0,o=0;i<n.length;i++){var t=a(n[i].trim(),i);t&&(n[o++]=t)}return n.length=o,n}(void 0===e?"*":e||"");if(!i)return s.filter(r).sort(o).map(t);var c=i.map(function(e,a){return function(e,a,i){for(var o={o:-1,q:0,s:0},t=0;t<a.length;t++){var r=n(e,a[t],i);r&&(o.s-r.s||o.q-r.q||o.o-r.o)<0&&(o=r)}return o}(e,s,a)});return c.filter(r).sort(o).map(function(e){return i[c.indexOf(e)]})}function o(e,a){return a.q-e.q||a.s-e.s||e.o-a.o||e.i-a.i||0}function t(e){return e.full}function r(e){return e.q>0}return it.exports}(),i=vt();function o(e){if(!(this instanceof o))return new o(e);this.request=e}return Qo.exports=o,Qo.exports.Negotiator=o,o.prototype.charset=function(e){var a=this.charsets(e);return a&&a[0]},o.prototype.charsets=function(a){return e(this.request.headers["accept-charset"],a)},o.prototype.encoding=function(e,a){var n=this.encodings(e,a);return n&&n[0]},o.prototype.encodings=function(e,n){var i=n||{};return a(this.request.headers["accept-encoding"],e,i.preferred)},o.prototype.language=function(e){var a=this.languages(e);return a&&a[0]},o.prototype.languages=function(e){return n(this.request.headers["accept-language"],e)},o.prototype.mediaType=function(e){var a=this.mediaTypes(e);return a&&a[0]},o.prototype.mediaTypes=function(e){return i(this.request.headers.accept,e)},o.prototype.preferredCharset=o.prototype.charset,o.prototype.preferredCharsets=o.prototype.charsets,o.prototype.preferredEncoding=o.prototype.encoding,o.prototype.preferredEncodings=o.prototype.encodings,o.prototype.preferredLanguage=o.prototype.language,o.prototype.preferredLanguages=o.prototype.languages,o.prototype.preferredMediaType=o.prototype.mediaType,o.prototype.preferredMediaTypes=o.prototype.mediaTypes,Qo.exports}
/*!
* accepts
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/(),a=ia();function n(a){if(!(this instanceof n))return new n(a);this.headers=a.headers,this.negotiator=new e(a)}function i(e){return-1===e.indexOf("/")?a.lookup(e):e}function o(e){return"string"==typeof e}return rt=n,n.prototype.type=n.prototype.types=function(e){var a=e;if(a&&!Array.isArray(a)){a=new Array(arguments.length);for(var n=0;n<a.length;n++)a[n]=arguments[n]}if(!a||0===a.length)return this.negotiator.mediaTypes();if(!this.headers.accept)return a[0];var t=a.map(i),r=this.negotiator.mediaTypes(t.filter(o))[0];return!!r&&a[t.indexOf(r)]},n.prototype.encoding=n.prototype.encodings=function(e){var a=e;if(a&&!Array.isArray(a)){a=new Array(arguments.length);for(var n=0;n<a.length;n++)a[n]=arguments[n]}return a&&0!==a.length?this.negotiator.encodings(a)[0]||!1:this.negotiator.encodings()},n.prototype.charset=n.prototype.charsets=function(e){var a=e;if(a&&!Array.isArray(a)){a=new Array(arguments.length);for(var n=0;n<a.length;n++)a[n]=arguments[n]}return a&&0!==a.length?this.negotiator.charsets(a)[0]||!1:this.negotiator.charsets()},n.prototype.lang=n.prototype.langs=n.prototype.language=n.prototype.languages=function(e){var a=e;if(a&&!Array.isArray(a)){a=new Array(arguments.length);for(var n=0;n<a.length;n++)a[n]=arguments[n]}return a&&0!==a.length?this.negotiator.languages(a)[0]||!1:this.negotiator.languages()},rt}
/*!
* fresh
* Copyright(c) 2012 TJ Holowaychuk
* Copyright(c) 2016-2017 Douglas Christopher Wilson
* MIT Licensed
*/function xt(){if(pt)return ct;pt=1;var e=/(?:^|,)\s*?no-cache\s*?(?:,|$)/;function a(e){var a=e&&Date.parse(e);return"number"==typeof a?a:NaN}return ct=function(n,i){var o=n["if-modified-since"],t=n["if-none-match"];if(!o&&!t)return!1;var r=n["cache-control"];if(r&&e.test(r))return!1;if(t){if("*"===t)return!0;var s=i.etag;if(!s)return!1;for(var c=function(e){for(var a=0,n=[],i=0,o=0,t=e.length;o<t;o++)switch(e.charCodeAt(o)){case 32:i===a&&(i=a=o+1);break;case 44:n.push(e.substring(i,a)),i=a=o+1;break;default:a=o+1}return n.push(e.substring(i,a)),n}(t),p=0;p<c.length;p++){var l=c[p];if(l===s||l==="W/"+s||"W/"+l===s)return!0}return!1}if(o){var u=i["last-modified"];if(!(u&&a(u)<=a(o)))return!1}return!0}}
/*!
* range-parser
* Copyright(c) 2012-2014 TJ Holowaychuk
* Copyright(c) 2015-2016 Douglas Christopher Wilson
* MIT Licensed
*/function bt(){if(ut)return lt;function e(e,a){return{start:e.start,end:e.end,index:a}}function a(e){return{start:e.start,end:e.end}}function n(e,a){return e.index-a.index}function i(e,a){return e.start-a.start}return ut=1,lt=function(o,t,r){if("string"!=typeof t)throw new TypeError("argument str must be a string");var s=t.indexOf("=");if(-1===s)return-2;var c=t.slice(s+1).split(","),p=[];p.type=t.slice(0,s);for(var l=0;l<c.length;l++){var u=c[l].split("-"),d=parseInt(u[0],10),m=parseInt(u[1],10);isNaN(d)?(d=o-m,m=o-1):isNaN(m)&&(m=o-1),m>o-1&&(m=o-1),isNaN(d)||isNaN(m)||d>m||d<0||p.push({start:d,end:m})}return p.length<1?-1:r&&r.combine?function(o){for(var t=o.map(e).sort(i),r=0,s=1;s<t.length;s++){var c=t[s],p=t[r];c.start>p.end+1?t[++r]=c:c.end>p.end&&(p.end=c.end,p.index=Math.min(p.index,c.index))}t.length=r+1;var l=t.sort(n).map(a);return l.type=o.type,l}(p):p},lt}
/*!
* express
* Copyright(c) 2009-2013 TJ Holowaychuk
* Copyright(c) 2013 Roman Shtylman
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/var gt,yt,wt={exports:{}},jt={exports:{}};function kt(){if(yt)return wt.exports;yt=1,wt.exports=function(a,n){var i=n||{},o=i.type||"attachment",r=function(a,n){if(void 0!==a){var i={};if("string"!=typeof a)throw new TypeError("filename must be a string");if(void 0===n&&(n=!0),"string"!=typeof n&&"boolean"!=typeof n)throw new TypeError("fallback must be a string or boolean");if("string"==typeof n&&s.test(n))throw new TypeError("fallback must be ISO-8859-1 string");var o=e(a),r=u.test(o),c="string"!=typeof n?n&&h(o):e(n),p="string"==typeof c&&c!==o;return(p||!r||t.test(o))&&(i["filename*"]=o),(r||p)&&(i.filename=p?c:o),i}}(a,i.fallback);return function(e){var a=e.parameters,n=e.type;if(!n||"string"!=typeof n||!d.test(n))throw new TypeError("invalid type");var i=String(n).toLowerCase();if(a&&"object"==typeof a)for(var o,t=Object.keys(a).sort(),r=0;r<t.length;r++){var s="*"===(o=t[r]).slice(-1)?y(a[o]):g(a[o]);i+="; "+o+"="+s}return i}(new w(o,r))},wt.exports.parse=function(e){if(!e||"string"!=typeof e)throw new TypeError("argument string is required");var a=f.exec(e);if(!a)throw new TypeError("invalid type format");var n,i,o=a[0].length,t=a[1].toLowerCase(),r=[],s={};for(o=l.lastIndex=";"===a[0].slice(-1)?o-1:o;a=l.exec(e);){if(a.index!==o)throw new TypeError("invalid parameter format");if(o+=a[0].length,n=a[1].toLowerCase(),i=a[2],-1!==r.indexOf(n))throw new TypeError("invalid duplicate parameter");r.push(n),n.indexOf("*")+1!==n.length?"string"!=typeof s[n]&&('"'===i[0]&&(i=i.slice(1,-1).replace(c,"$1")),s[n]=i):(n=n.slice(0,-1),i=v(i),s[n]=i)}if(-1!==o&&o!==e.length)throw new TypeError("invalid parameter format");return new w(t,s)};var e=a.basename,i=(gt||(gt=1,function(e,a){var i=n,o=i.Buffer;function t(e,a){for(var n in e)a[n]=e[n]}function r(e,a,n){return o(e,a,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(t(i,a),a.Buffer=r),r.prototype=Object.create(o.prototype),t(o,r),r.from=function(e,a,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,a,n)},r.alloc=function(e,a,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=o(e);return void 0!==a?"string"==typeof n?i.fill(a,n):i.fill(a):i.fill(0),i},r.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},r.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}}(jt,jt.exports)),jt.exports).Buffer,o=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,t=/%[0-9A-Fa-f]{2}/,r=/%([0-9A-Fa-f]{2})/g,s=/[^\x20-\x7e\xa0-\xff]/g,c=/\\([\u0000-\u007f])/g,p=/([\\"])/g,l=/;[\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,u=/^[\x20-\x7e\x80-\xff]+$/,d=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,m=/^([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!#$&+.^_`|~-])+)$/,f=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function v(e){var a=m.exec(e);if(!a)throw new TypeError("invalid extended field value");var n,o=a[1].toLowerCase(),t=a[2].replace(r,x);switch(o){case"iso-8859-1":n=h(t);break;case"utf-8":case"utf8":n=i.from(t,"binary").toString("utf8");break;default:throw new TypeError("unsupported charset in extended field")}return n}function h(e){return String(e).replace(s,"?")}function x(e,a){return String.fromCharCode(parseInt(a,16))}function b(e){return"%"+String(e).charCodeAt(0).toString(16).toUpperCase()}function g(e){return'"'+String(e).replace(p,"\\$1")+'"'}function y(e){var a=String(e);return"UTF-8''"+encodeURIComponent(a).replace(o,b)}function w(e,a){this.type=e,this.parameters=a}return wt.exports}var Et,At,St,Tt,Ot={},Ct={};function _t(){if(At)return Ct;At=1,Ct.parse=function(e,n){if("string"!=typeof e)throw new TypeError("argument str must be a string");var i={},o=e.length;if(o<2)return i;var t=n&&n.decode||c,l=0,u=0,d=0;do{if(-1===(u=e.indexOf("=",l)))break;if(-1===(d=e.indexOf(";",l)))d=o;else if(u>d){l=e.lastIndexOf(";",u-1)+1;continue}var m=r(e,l,u),f=s(e,u,m),v=e.slice(m,f);if(!a.call(i,v)){var h=r(e,u+1,d),x=s(e,d,h);34===e.charCodeAt(h)&&34===e.charCodeAt(x-1)&&(h++,x--);var b=e.slice(h,x);i[v]=p(b,t)}l=d+1}while(l<o);return i},Ct.serialize=function(a,r,s){var c=s&&s.encode||encodeURIComponent;if("function"!=typeof c)throw new TypeError("option encode is invalid");if(!n.test(a))throw new TypeError("argument name is invalid");var p=c(r);if(!i.test(p))throw new TypeError("argument val is invalid");var l=a+"="+p;if(!s)return l;if(null!=s.maxAge){var u=Math.floor(s.maxAge);if(!isFinite(u))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+u}if(s.domain){if(!o.test(s.domain))throw new TypeError("option domain is invalid");l+="; Domain="+s.domain}if(s.path){if(!t.test(s.path))throw new TypeError("option path is invalid");l+="; Path="+s.path}if(s.expires){var d=s.expires;if(!function(a){return"[obLine truncated
/*!
* send
* Copyright(c) 2012 TJ Holowaychuk
* Copyright(c) 2014-2022 Douglas Christopher Wilson
* MIT Licensed
*/function qt(){if(Tt)return St;Tt=1;var n=R(),i=e.r()("send"),o=ao(),r=no(),s=bo(),c=xt(),p=m,l=ia(),u=e.m(),d=U(),f=bt(),v=a,x=fo(),b=h,g=t,y=v.extname,w=v.join,j=v.normalize,k=v.resolve,E=v.sep,A=/^ *bytes=/,S=/(?:^|[\\/])\.\.(?:[\\/]|$)/;function T(e,a,n){b.call(this);var i=n||{};if(this.options=i,this.path=a,this.req=e,this._acceptRanges=void 0===i.acceptRanges||Boolean(i.acceptRanges),this._cacheControl=void 0===i.cacheControl||Boolean(i.cacheControl),this._etag=void 0===i.etag||Boolean(i.etag),this._dotfiles=void 0!==i.dotfiles?i.dotfiles:"ignore","ignore"!==this._dotfiles&&"allow"!==this._dotfiles&&"deny"!==this._dotfiles)throw new TypeError('dotfiles option must be "allow", "deny", or "ignore"');this._extensions=void 0!==i.extensions?q(i.extensions,"extensions option"):[],this._immutable=void 0!==i.immutable&&Boolean(i.immutable),this._index=void 0!==i.index?q(i.index,"index option"):["index.html"],this._lastModified=void 0===i.lastModified||Boolean(i.lastModified),this._maxage=i.maxAge||i.maxage,this._maxage="string"==typeof this._maxage?u(this._maxage):Number(this._maxage),this._maxage=isNaN(this._maxage)?0:Math.min(Math.max(0,this._maxage),31536e6),this._root=i.root?k(i.root):null}function O(e,a,n){return e+" "+(n?n.start+"-"+n.end:"*")+"/"+a}function C(e,a){return'<!DOCTYPE html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<title>'+e+"</title>\n</head>\n<body>\n<pre>"+a+"</pre>\n</body>\n</html>\n"}function _(e,a){return("function"!=typeof e.listenerCount?e.listeners(a).length:e.listenerCount(a))>0}function q(e,a){for(var n=[].concat(e||[]),i=0;i<n.length;i++)if("string"!=typeof n[i])throw new TypeError(a+" must be array of strings or false");return n}function P(e){var a=e&&Date.parse(e);return"number"==typeof a?a:NaN}return St=function(e,a,n){return new T(e,a,n)},g.inherits(T,b),T.prototype.error=function(e,a){if(_(this,"error"))return this.emit("error",function(e,a){return a?a instanceof Error?n(e,a,{expose:!1}):n(e,a):n(e)}(e,a));var i=this.res,o=x.message[e]||String(e),t=C("Error",r(o));!function(e){for(const a of e.getHeaderNames())e.removeHeader(a)}(i),a&&a.headers&&function(e,a){for(var n=Object.keys(a),i=0;i<n.length;i++){var o=n[i];e.setHeader(o,a[o])}}(i,a.headers),i.statusCode=e,i.setHeader("Content-Type","text/html; charset=UTF-8"),i.setHeader("Content-Length",Buffer.byteLength(t)),i.setHeader("Content-Security-Policy","default-src 'none'"),i.setHeader("X-Content-Type-Options","nosniff"),i.end(t)},T.prototype.hasTrailingSlash=function(){return"/"===this.path[this.path.length-1]},T.prototype.isConditionalGET=function(){return this.req.headers["if-match"]||this.req.headers["if-unmodified-since"]||this.req.headers["if-none-match"]||this.req.headers["if-modified-since"]},T.prototype.isPreconditionFailure=function(){var e=this.req,a=this.res,n=e.headers["if-match"];if(n){var i=a.getHeader("ETag");return!i||"*"!==n&&function(e){for(var a=0,n=[],i=0,o=0,t=e.length;o<t;o++)switch(e.charCodeAt(o)){case 32:i===a&&(i=a=o+1);break;case 44:i!==a&&n.push(e.substring(i,a)),i=a=o+1;break;default:a=o+1}return i!==a&&n.push(e.substring(i,a)),n}(n).every(function(e){return e!==i&&e!=="W/"+i&&"W/"+e!==i})}var o=P(e.headers["if-unmodified-since"]);if(!isNaN(o)){var t=P(a.getHeader("Last-Modified"));return isNaN(t)||t>o}return!1},T.prototype.removeContentHeaderFields=function(){var e=this.res;e.removeHeader("Content-Encoding"),e.removeHeader("Content-Language"),e.removeHeader("Content-Length"),e.removeHeader("Content-Range"),e.removeHeader("Content-Type")},T.prototype.notModified=function(){var e=this.res;i("not modified"),this.removeContentHeaderFields(),e.statusCode=304,e.end()},T.prototype.headersAlreadySent=function(){var e=new Error("Can't set headers after they are sent.");i("headers already sent"),this.error(500,e)},T.prototype.isCachable=function(){var e=this.res.statusCode;return e>=200&&e<300||304===e},T.prototype.onStatError=function(e){switch(e.code){case"ENAMETOOLONG":case"ENOENT":case"ENOTDIR":this.error(404,e);break;default:this.error(500,e)}},T.prototype.isFresh=function(){return c(this.req.headers,{etag:this.res.getHeader("ETag"),"last-modified":this.res.getHeader("Last-Modified")})},T.prototype.isRangeFresh=function(){var e=this.req.headers["if-range"];if(!e)return!0;if(-1!==e.indexOf('"')){var a=this.res.getHeader("ETag");return Boolean(a&&-1!==e.indexOf(a))}return P(this.res.getHeader("Last-Modified"))<=P(e)},T.prototype.redirect=function(e){var a=this.res;if(_(this,"directory"))this.emit("directory",a,e);else if(this.hasTrailingSlash())this.error(403);else{var n=o(function(e){for(var a=0;a<e.length&&"/"===e[a];a++);return a>1?"/"+e.substr(a):e}(this.path+"/")),i=C("Redirecting","Redirecting to "+r(n));a.statusCode=301,a.setHeader("Content-Type","text/html; charset=UTF-8"),a.setHeader("Content-Length",Buffer.byteLength(i)),a.setHeader("Content-Security-Policy","default-src 'none'"),a.setHeader("X-Content-Type-Options","nosniff"),a.setHeader("Location",n),a.end(i)}},T.prototypLine truncated
/*!
* vary
* Copyright(c) 2014-2017 Douglas Christopher Wilson
* MIT Licensed
*/function Mt(){if(Pt)return Dt.exports;Pt=1,Dt.exports=function(e,n){if(!e||!e.getHeader||!e.setHeader)throw new TypeError("res argument is required");var i=e.getHeader("Vary")||"",o=Array.isArray(i)?i.join(", "):String(i);(i=a(o,n))&&e.setHeader("Vary",i)},Dt.exports.append=a;var e=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function a(a,i){if("string"!=typeof a)throw new TypeError("header argument is required");if(!i)throw new TypeError("field argument is required");for(var o=Array.isArray(i)?i:n(String(i)),t=0;t<o.length;t++)if(!e.test(o[t]))throw new TypeError("field argument contains an invalid header name");if("*"===a)return a;var r=a,s=n(a.toLowerCase());if(-1!==o.indexOf("*")||-1!==s.indexOf("*"))return"*";for(var c=0;c<o.length;c++){var p=o[c].toLowerCase();-1===s.indexOf(p)&&(s.push(p),r=r?r+", "+o[c]:o[c])}return r}function n(e){for(var a=0,n=[],i=0,o=0,t=e.length;o<t;o++)switch(e.charCodeAt(o)){case 32:i===a&&(i=a=o+1);break;case 44:n.push(e.substring(i,a)),i=a=o+1;break;default:a=o+1}return n.push(e.substring(i,a)),n}return Dt.exports}
/*!
* express
* Copyright(c) 2009-2013 TJ Holowaychuk
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/var Ut=Nt?Ft:(Nt=1,Rt||(Rt=1,function(e,n){var i=Zi(),o=r.EventEmitter,t=Ki(),c=Jo(),l=Ko(),m=function(){if(mt)return dt;mt=1;var e=ht(),a=v.isIP,n=ti(),i=u,o=xt(),t=bt(),r=to(),s=Oo(),c=Object.create(i.IncomingMessage.prototype);function p(e,a,n){Object.defineProperty(e,a,{configurable:!0,enumerable:!0,get:n})}return dt=c,c.get=c.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 a=e.toLowerCase();switch(a){case"referer":case"referrer":return this.headers.referrer||this.headers.referer;default:return this.headers[a]}},c.accepts=function(){var a=e(this);return a.types.apply(a,arguments)},c.acceptsEncodings=function(){var a=e(this);return a.encodings.apply(a,arguments)},c.acceptsCharsets=function(){var a=e(this);return a.charsets.apply(a,arguments)},c.acceptsLanguages=function(){var a=e(this);return a.languages.apply(a,arguments)},c.range=function(e,a){var n=this.get("Range");if(n)return t(e,n,a)},p(c,"query",function(){var e=this.app.get("query parser fn");return e?e(r(this).query):Object.create(null)}),c.is=function(e){var a=e;if(!Array.isArray(e)){a=new Array(arguments.length);for(var i=0;i<a.length;i++)a[i]=arguments[i]}return n(this,a)},p(c,"protocol",function(){var e=this.connection.encrypted?"https":"http";if(!this.app.get("trust proxy fn")(this.connection.remoteAddress,0))return e;var a=this.get("X-Forwarded-Proto")||e,n=a.indexOf(",");return-1!==n?a.substring(0,n).trim():a.trim()}),p(c,"secure",function(){return"https"===this.protocol}),p(c,"ip",function(){var e=this.app.get("trust proxy fn");return s(this,e)}),p(c,"ips",function(){var e=this.app.get("trust proxy fn"),a=s.all(this,e);return a.reverse().pop(),a}),p(c,"subdomains",function(){var e=this.hostname;if(!e)return[];var n=this.app.get("subdomain offset");return(a(e)?[e]:e.split(".").reverse()).slice(n)}),p(c,"path",function(){return r(this).pathname}),p(c,"host",function(){var e=this.app.get("trust proxy fn"),a=this.get("X-Forwarded-Host");return a&&e(this.connection.remoteAddress,0)?-1!==a.indexOf(",")&&(a=a.substring(0,a.indexOf(",")).trimRight()):a=this.get("Host"),a||void 0}),p(c,"hostname",function(){var e=this.host;if(e){var a="["===e[0]?e.indexOf("]")+1:0,n=e.indexOf(":",a);return-1!==n?e.substring(0,n):e}}),p(c,"fresh",function(){var e=this.method,a=this.res,n=a.statusCode;return("GET"===e||"HEAD"===e)&&(n>=200&&n<300||304===n)&&o(this.headers,{etag:a.get("ETag"),"last-modified":a.get("Last-Modified")})}),p(c,"stale",function(){return!this.fresh}),p(c,"xhr",function(){return"xmlhttprequest"===(this.get("X-Requested-With")||"").toLowerCase()}),dt}(),f=function(){if(zt)return It;zt=1;var e=kt(),a=R(),n=ao(),i=no(),o=u,t=U(),r=ia(),s=p,c=p.isAbsolute,l=fo(),m=(Et||(Et=1,function(e){var a=d;e.sign=function(e,n){if("string"!=typeof e)throw new TypeError("Cookie value must be provided as a string.");if(null==n)throw new TypeError("Secret key must be provided.");return e+"."+a.createHmac("sha256",n).update(e).digest("base64").replace(/\=+$/,"")},e.unsign=function(n,i){if("string"!=typeof n)throw new TypeError("Signed cookie string must be provided.");if(null==i)throw new TypeError("Secret key must be provided.");var o=n.slice(0,n.lastIndexOf(".")),t=e.sign(o,i),r=Buffer.from(t),s=Buffer.from(n);return!(r.length!==s.length||!a.timingSafeEqual(r,s))&&o}}(Ot)),Ot).sign,f=Co().normalizeType,v=Co().normalizeTypes,h=Co().setCharset,x=_t(),b=qt(),g=s.extname,y=s.resolve,w=Mt(),j=Object.create(o.ServerResponse.prototype);function k(e,a,n,i){var o=a||n?JSON.stringify(e,a,n):JSON.stringify(e);return i&&"string"==typeof o&&(o=o.replace(/[<>&]/g,function(e){switch(e.charCodeAt(0)){case 60:return"\\u003c";case 62:return"\\u003e";case 38:return"\\u0026";default:return e}})),o}return It=j,j.status=function(e){if(!Number.isInteger(e))throw new TypeError(`Invalid status code: ${JSON.stringify(e)}. Status code must be an integer.`);if(e<100||e>999)throw new RangeError(`Invalid status code: ${JSON.stringify(e)}. Status code must be greater than 99 and less than 1000.`);return this.statusCode=e,this},j.links=function(e){var a=this.get("Link")||"";return a&&(a+=", "),this.set("Link",a+Object.keys(e).map(function(a){return Array.isArray(e[a])?e[a].map(function(e){return`<${e}>; rel="${a}"`}).join(", "):`<${e[a]}>; rel="${a}"`}).join(", "))},j.send=function(e){var a,n,i=e,o=this.req,t=this.app;switch(typeof i){case"string":this.get("Content-Type")||this.type("html");break;case"boolean":case"number":case"object":if(null===i)i="";else{if(!ArrayBuffer.isView(i))return this.json(i);this.get("Content-Type")||this.type("bin")}}"string"==typeof i&&(a="utf8","string"==typeof(n=this.get("Content-Type"))&&this.set("Content-Type",h(n,"utf-8")));var r,s,c=t.get("etag fn"),p=!this.get("ETag")&&"function"==typeof c;return void 0!==i&&(Buffer.isBuffer(i)?r=i.length:!p&&i.length<1e3?r=Buffer.byteLength(i,a):(i=Buffer.from(i,a),a=void 0,r=i.length),this.set("ConLine truncated
/*!
* serve-static
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* Copyright(c) 2014-2016 Douglas Christopher Wilson
* MIT Licensed
*/();(n=e.exports=function(){var e=function(a,n,i){e.handle(a,n,i)};return t(e,o.prototype,!1),t(e,c,!1),e.request=Object.create(m,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.response=Object.create(f,{app:{configurable:!0,enumerable:!0,writable:!0,value:e}}),e.init(),e}).application=c,n.request=m,n.response=f,n.Route=l.Route,n.Router=l,n.json=i.json,n.raw=i.raw,n.static=function(){if(Lt)return Bt;Lt=1;var e=ao(),n=no(),i=to(),o=a.resolve,t=qt(),r=s;return Bt=function(a,s){if(!a)throw new TypeError("root path required");if("string"!=typeof a)throw new TypeError("root path must be a string");var c=Object.create(s||null),p=!1!==c.fallthrough,l=!1!==c.redirect,u=c.setHeaders;if(u&&"function"!=typeof u)throw new TypeError("option setHeaders must be function");c.maxage=c.maxage||c.maxAge||0,c.root=o(a);var d=l?function(a){if(this.hasTrailingSlash())this.error(404);else{var o=i.original(this.req);o.path=null,o.pathname=function(e){for(var a=0;a<e.length&&47===e.charCodeAt(a);a++);return a>1?"/"+e.substr(a):e}(o.pathname+"/");var t=e(r.format(o)),s='<!DOCTYPE html>\n<html lang="en">\n<head>\n<meta charset="utf-8">\n<title>Redirecting</title>\n</head>\n<body>\n<pre>Redirecting to '+n(t)+"</pre>\n</body>\n</html>\n";a.statusCode=301,a.setHeader("Content-Type","text/html; charset=UTF-8"),a.setHeader("Content-Length",Buffer.byteLength(s)),a.setHeader("Content-Security-Policy","default-src 'none'"),a.setHeader("X-Content-Type-Options","nosniff"),a.setHeader("Location",t),a.end(s)}}:function(){this.error(404)};return function(e,a,n){if("GET"!==e.method&&"HEAD"!==e.method)return p?n():(a.statusCode=405,a.setHeader("Allow","GET, HEAD"),a.setHeader("Content-Length","0"),void a.end());var o=!p,r=i.original(e),s=i(e).pathname;"/"===s&&"/"!==r.pathname.substr(-1)&&(s="");var l=t(e,s,c);l.on("directory",d),u&&l.on("headers",u),p&&l.on("file",function(){o=!0}),l.on("error",function(e){!o&&e.statusCode<500?n():n(e)}),l.pipe(a)}},Bt}
/*!
* express
* Copyright(c) 2009-2013 TJ Holowaychuk
* Copyright(c) 2013 Roman Shtylman
* Copyright(c) 2014-2015 Douglas Christopher Wilson
* MIT Licensed
*/(),n.text=i.text,n.urlencoded=i.urlencoded}(j,j.exports)),Ft=j.exports),$t=x({__proto__:null,default:e.g(Ut)},[Ut]);exports.i=$t;