|
|
|
(()=>{var __webpack_modules__={9078:(n,l,e)=>{"use strict";var t=e(159),i=e(983);function a(n){if(!(this instanceof a))return new a(n);this.headers=n.headers,this.negotiator=new t(n)}function u(n){return-1===n.indexOf("/")?i.lookup(n):n}function r(n){return"string"==typeof n}n.exports=a,a.prototype.type=a.prototype.types=function(n){var l=n;if(l&&!Array.isArray(l)){l=new Array(arguments.length);for(var e=0;e<l.length;e++)l[e]=arguments[e]}if(!l||0===l.length)return this.negotiator.mediaTypes();if(!this.headers.accept)return l[0];var t=l.map(u),i=this.negotiator.mediaTypes(t.filter(r)),a=i[0];return!!a&&l[t.indexOf(a)]},a.prototype.encoding=a.prototype.encodings=function(n){var l=n;if(l&&!Array.isArray(l)){l=new Array(arguments.length);for(var e=0;e<l.length;e++)l[e]=arguments[e]}return l&&0!==l.length?this.negotiator.encodings(l)[0]||!1:this.negotiator.encodings()},a.prototype.charset=a.prototype.charsets=function(n){var l=n;if(l&&!Array.isArray(l)){l=new Array(arguments.length);for(var e=0;e<l.length;e++)l[e]=arguments[e]}return l&&0!==l.length?this.negotiator.charsets(l)[0]||!1:this.negotiator.charsets()},a.prototype.lang=a.prototype.langs=a.prototype.language=a.prototype.languages=function(n){var l=n;if(l&&!Array.isArray(l)){l=new Array(arguments.length);for(var e=0;e<l.length;e++)l[e]=arguments[e]}return l&&0!==l.length?this.negotiator.languages(l)[0]||!1:this.negotiator.languages()}},9030:(n,l,e)=>{var t=e(4154),i=e(6017);n.exports=function(n,l,e){t(l).reduce((function(n,l){return i(n,l,n[l.key],e)}),n)}},4154:n=>{var l=/^[^\[]*/,e=/^\[(\d+)\]/,t=/^\[([^\]]+)\]/;n.exports=function(n){function i(){return[{type:"object",key:n,last:!0}]}var a=l.exec(n)[0];if(!a)return i();for(var u=n.length,r=a.length,o={type:"object",key:a},s=[o];r<u;){var c;if("["!==n[r]||"]"!==n[r+1])if(null===(c=e.exec(n.substring(r)))){if(null===(c=t.exec(n.substring(r))))return i();r+=c[0].length,o.nextType="object",o={type:"object",key:c[1]},s.push(o)}else r+=c[0].length,o.nextType="array",o={type:"array",key:parseInt(c[1],10)},s.push(o);else if(r+=2,o.append=!0,r!==u)return i()}return o.last=!0,s}},6017:n=>{function l(n){return void 0===n?"undefined":Array.isArray(n)?"array":"object"==typeof n?"object":"scalar"}function e(n,t,i,a){switch(l(i)){case"undefined":t.append?n[t.key]=[a]:n[t.key]=a;break;case"array":n[t.key].push(a);break;case"object":return e(i,{type:"object",key:"",last:!0},i[""],a);case"scalar":n[t.key]=[n[t.key],a]}return n}n.exports=function(n,t,i,a){if(t.last)return e(n,t,i,a);var u;switch(l(i)){case"undefined":return"array"===t.nextType?n[t.key]=[]:n[t.key]=Object.create(null),n[t.key];case"object":return n[t.key];case"array":return"array"===t.nextType?i:(u=Object.create(null),n[t.key]=u,i.forEach((function(n,l){void 0!==n&&(u[""+l]=n)})),u);case"scalar":return(u=Object.create(null))[""]=i,n[t.key]=u,u}}},2521:n=>{"use strict";function l(n,e,t){for(var i=0;i<n.length;i++){var a=n[i];t>0&&Array.isArray(a)?l(a,e,t-1):e.push(a)}return e}function e(n,l){for(var t=0;t<n.length;t++){var i=n[t];Array.isArray(i)?e(i,l):l.push(i)}return l}n.exports=function(n,t){return null==t?e(n,[]):l(n,[],t)}},46:(n,l,e)=>{"use strict";var t=e(412)("body-parser"),i=Object.create(null);function a(n){return function(){return function(n){var l=i[n];if(void 0!==l)return l;switch(n){case"json":l=e(6035);break;case"raw":l=e(187);break;case"text":l=e(6560);break;case"urlencoded":l=e(4861)}return i[n]=l}(n)}}l=n.exports=t.function((function(n){var e={};if(n)for(var t in n)"type"!==t&&(e[t]=n[t]);var i=l.urlencoded(e),a=l.json(e);return function(n,l,e){a(n,l,(function(t){if(t)return e(t);i(n,l,e)}))}}),"bodyParser: use individual json/urlencoded middlewares"),Object.defineProperty(l,"json",{configurable:!0,enumerable:!0,get:a("json")}),Object.defineProperty(l,"raw",{configurable:!0,enumerable:!0,get:a("raw")}),Object.defineProperty(l,"text",{configurable:!0,enumerable:!0,get:a("text")}),Object.defineProperty(l,"urlencoded",{configurable:!0,enumerable:!0,get:a("urlencoded")})},3211:(n,l,e)=>{"use strict";var t=e(9009),i=e(1045),a=e(4914),u=e(338),r=e(9796);n.
|