UNPKG

metaapi.cloud-copyfactory-sdk

Version:

Javascript SDK for SDK for CopyFactory trade copying API. Can copy trades both between MetaTrader 5 (MT5) and MetaTrader 4 (MT4). (https://metaapi.cloud)

1 lines 169 kB
var e={6310:(e,t,r)=>{class n{log(){}isLevelEnabled(){return!1}addContext(){}removeContext(){}clearContext(){}}["Trace","Debug","Info","Warn","Error","Fatal","Mark"].forEach((e=>{n.prototype[e.toLowerCase()]=()=>{},n.prototype[`is${e}Enabled`]=()=>!1}));const o=(()=>{try{return r(4296)}catch(e){return null}})(),i=o?o.getLogger:()=>new n;e.exports={getLogger:i}},4666:(e,t,r)=>{var n;"Set"in r.g?"function"==typeof Set.prototype.forEach&&(n=!1,new Set([!0]).forEach((function(e){n=e})),!0===n)?e.exports=function(e){var t=[];return new Set(e).forEach((function(e){t.push(e)})),t}:e.exports=function(e){var t=new Set;return e.filter((function(e){if(!t.has(e))return t.add(e),!0}))}:e.exports=function(e){for(var t=[],r=0;r<e.length;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}},7453:(e,t,r)=>{var n=r(6750),o=r(8583),i=r(3489),s=r(760),a=r(9358),u=r(7036),c=r(7961),l=r(8263),f=r(5697),p=r(7379),d=r(9981),h=Object("a"),y="a"!==h[0]||!(0 in h),g=p("String.prototype.split");e.exports=function(e){var t,r=l(this),p=y&&d(r)?g(r,""):r,h=c(p.length);if(!u(e))throw new TypeError("Array.prototype.map callback must be a function");arguments.length>1&&(t=arguments[1]);for(var m=n(r,h),b=0;b<h;){var v=f(b);if(a(r,v)){var w=s(r,v),S=o(e,t,[w,b,r]);i(m,v,S)}b+=1}return m}},4770:(e,t,r)=>{var n=r(4289),o=r(1781),i=r(5559),s=r(7379),a=r(7453),u=r(7373),c=i.apply(u()),l=r(2717),f=s("Array.prototype.slice"),p=function(e,t){return o(e),c(e,f(arguments,1))};n(p,{getPolyfill:u,implementation:a,shim:l}),e.exports=p},7373:(e,t,r)=>{var n=r(2868),o=r(7453);e.exports=function(){var e=Array.prototype.map;return n(e)?e:o}},2717:(e,t,r)=>{var n=r(4289),o=r(7373);e.exports=function(){var e=o();return n(Array.prototype,{map:e},{map:function(){return Array.prototype.map!==e}}),e}},5116:(e,t,r)=>{var n=r(8612),o=r(1768),i=r(8928),s=r(9770);e.exports=s||n.call(i,o)},3192:(e,t,r)=>{var n=r(8612),o=r(1768),i=r(5116);e.exports=function(){return i(n,o,arguments)}},1768:e=>{e.exports=Function.prototype.apply},8928:e=>{e.exports=Function.prototype.call},319:(e,t,r)=>{var n=r(8612),o=r(4453),i=r(8928),s=r(5116);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return s(n,i,e)}},9770:e=>{e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},1924:(e,t,r)=>{var n=r(210),o=r(5559),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},5559:(e,t,r)=>{var n=r(7771),o=r(4429),i=r(319),s=r(3192);e.exports=function(e){var t=i(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},o?o(e.exports,"apply",{value:s}):e.exports.apply=s},7379:(e,t,r)=>{var n=r(210),o=r(319),i=o([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o([r]):r}},520:e=>{function t(e,t){for(var r=e.toString();r.length<t;)r="0"+r;return r}function r(e){return t(e,2)}function n(n,o){"string"!=typeof n&&(o=n,n=e.exports.ISO8601_FORMAT),o||(o=e.exports.now());var i,s,a,u,c=r(o.getDate()),l=r(o.getMonth()+1),f=r(o.getFullYear()),p=r(f.substring(2,4)),d=n.indexOf("yyyy")>-1?f:p,h=r(o.getHours()),y=r(o.getMinutes()),g=r(o.getSeconds()),m=t(o.getMilliseconds(),3),b=(i=o.getTimezoneOffset(),s=Math.abs(i),a=String(Math.floor(s/60)),u=String(s%60),a=("0"+a).slice(-2),u=("0"+u).slice(-2),0===i?"Z":(i<0?"+":"-")+a+":"+u);return n.replace(/dd/g,c).replace(/MM/g,l).replace(/y{1,4}/g,d).replace(/hh/g,h).replace(/mm/g,y).replace(/ss/g,g).replace(/SSS/g,m).replace(/O/g,b)}function o(e,t,r,n){e["set"+(n?"":"UTC")+t](r)}e.exports=n,e.exports.asString=n,e.exports.parse=function(t,r,n){if(!t)throw new Error("pattern must be supplied");return function(t,r,n){var i=t.indexOf("O")<0,s=!1,a=[{pattern:/y{1,4}/,regexp:"\\d{1,4}",fn:function(e,t){o(e,"FullYear",t,i)}},{pattern:/MM/,regexp:"\\d{1,2}",fn:function(e,t){o(e,"Month",t-1,i),e.getMonth()!==t-1&&(s=!0)}},{pattern:/dd/,regexp:"\\d{1,2}",fn:function(e,t){s&&o(e,"Month",e.getMonth()-1,i),o(e,"Date",t,i)}},{pattern:/hh/,regexp:"\\d{1,2}",fn:function(e,t){o(e,"Hours",t,i)}},{pattern:/mm/,regexp:"\\d\\d",fn:function(e,t){o(e,"Minutes",t,i)}},{pattern:/ss/,regexp:"\\d\\d",fn:function(e,t){o(e,"Seconds",t,i)}},{pattern:/SSS/,regexp:"\\d\\d\\d",fn:function(e,t){o(e,"Milliseconds",t,i)}},{pattern:/O/,regexp:"[+-]\\d{1,2}:?\\d{2}?|Z",fn:function(e,t){t="Z"===t?0:t.replace(":","");var r=Math.abs(t),n=(t>0?-1:1)*(r%100+60*Math.floor(r/100));e.setUTCMinutes(e.getUTCMinutes()+n)}}],u=a.reduce((function(e,t){return t.pattern.test(e.regexp)?(t.index=e.regexp.match(t.pattern).index,e.regexp=e.regexp.replace(t.pattern,"("+t.regexp+")")):t.index=-1,e}),{regexp:t,index:[]}),c=a.filter((function(e){return e.index>-1}));c.sort((function(e,t){return e.index-t.index}));var l=new RegExp(u.regexp).exec(r);if(l){var f=n||e.exports.now();return c.forEach((function(e,t){e.fn(f,l[t+1])})),f}throw new Error("String '"+r+"' could not be parsed as '"+t+"'")}(t,r,n)},e.exports.now=function(){return new Date},e.exports.ISO8601_FORMAT="yyyy-MM-ddThh:mm:ss.SSS",e.exports.ISO8601_WITH_TZ_OFFSET_FORMAT="yyyy-MM-ddThh:mm:ss.SSSO",e.exports.DATETIME_FORMAT="dd MM yyyy hh:mm:ss.SSS",e.exports.ABSOLUTETIME_FORMAT="hh:mm:ss.SSS"},1227:(e,t,r)=>{var n=r(4155);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(2447)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,r)=>{e.exports=function(e){function t(e){let r,o,i,s=null;function a(...e){if(!a.enabled)return;const n=a,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";s++;const i=t.formatters[o];if("function"==typeof i){const t=e[s];r=i.call(n,t),e.splice(s,1),s--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function o(e,t){let r=0,n=0,o=-1,i=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(o=n,i=r,n++):(r++,n++);else{if(-1===o)return!1;n=o+1,i++,r=i}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean);for(const e of r)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const r of t.skips)if(o(e,r))return!1;for(const r of t.names)if(o(e,r))return!0;return!1},t.humanize=r(7824),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},2296:(e,t,r)=>{var n=r(4429),o=r(3464),i=r(4453),s=r(7296);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!s&&s(e,t);if(n)n(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===a&&f?f.enumerable:!a,value:r,writable:null===u&&f?f.writable:!u});else{if(!l&&(a||u||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},4289:(e,t,r)=>{var n=r(2215),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,s=Array.prototype.concat,a=r(2296),u=r(1044)(),c=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(o=n)||"[object Function]"!==i.call(o)||!n())return;var o;u?a(e,t,r,!0):a(e,t,r)},l=function(e,t){var r=arguments.length>2?arguments[2]:{},i=n(t);o&&(i=s.call(i,Object.getOwnPropertySymbols(t)));for(var a=0;a<i.length;a+=1)c(e,i[a],t[i[a]],r[i[a]])};l.supportsDescriptors=!!u,e.exports=l},6504:(e,t,r)=>{var n,o=r(319),i=r(7296);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var s=!!n&&i&&i(Object.prototype,"__proto__"),a=Object,u=a.getPrototypeOf;e.exports=s&&"function"==typeof s.get?o([s.get]):"function"==typeof u&&function(e){return u(null==e?e:a(e))}},3706:(e,t,r)=>{var n=r(319),o=r(7296),i=r(4453),s={};try{s.__proto__=null}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!("toString"in s),u=o&&o(Object.prototype,"__proto__");e.exports=a&&(!!u&&"function"==typeof u.set&&n([u.set])||function(e,t){if(null==e)throw new i("set Object.prototype.__proto__ called on null or undefined");return e.__proto__=t,t})},9373:(e,t,r)=>{var n=r(3489),o=r(8613),i=r(1221),s=r(1044)(),a=r(9480),u=r(9314),c=r(1648);function l(e,t){var r=new c(t);u(r,f),delete r.constructor;var o=a(i(e,"SYNC"));return n(r,"errors",o),r}s&&Object.defineProperty(l,"prototype",{writable:!1});var f=l.prototype;if(!o(f,"constructor",l)||!o(f,"message","")||!o(f,"name","AggregateError"))throw new c("unable to install AggregateError.prototype properties; please report this!");u(l.prototype,Error.prototype),e.exports=l},7114:(e,t,r)=>{var n=r(9373);e.exports=function(){return"function"==typeof AggregateError?AggregateError:n}},2868:e=>{e.exports=function(e){var t=!0,r=!0,n=!1;if("function"==typeof e){try{e.call("f",(function(e,r,n){"object"!=typeof n&&(t=!1)})),e.call([null],(function(){r="string"==typeof this}),"x")}catch(e){n=!0}return!n&&t&&r}return!1}},4429:e=>{var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},3981:e=>{e.exports=EvalError},1648:e=>{e.exports=Error},4726:e=>{e.exports=RangeError},6712:e=>{e.exports=ReferenceError},3464:e=>{e.exports=SyntaxError},4453:e=>{e.exports=TypeError},3915:e=>{e.exports=URIError},1781:(e,t,r)=>{var n=r(4453);e.exports=function(e){if(null==e)throw new n(arguments.length>0&&arguments[1]||"Cannot call method on "+e);return e}},8263:(e,t,r)=>{var n=r(8892),o=r(1781);e.exports=function(e){return o(e),n(e)}},8892:e=>{e.exports=Object},1503:(e,t,r)=>{var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=r(4149),i=r(5320),s=r(8923),a=r(2636);e.exports=function(e){if(o(e))return e;var t,r="default";if(arguments.length>1&&(arguments[1]===String?r="string":arguments[1]===Number&&(r="number")),n&&(Symbol.toPrimitive?t=function(e,t){var r=e[t];if(null!=r){if(!i(r))throw new TypeError(r+" returned for property "+String(t)+" of object "+e+" is not a function");return r}}(e,Symbol.toPrimitive):a(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var u=t.call(e,r);if(o(u))return u;throw new TypeError("unable to convert exotic object to primitive")}return"default"===r&&(s(e)||a(e))&&(r="string"),function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var r,n,s,a="string"===t?["toString","valueOf"]:["valueOf","toString"];for(s=0;s<a.length;++s)if(r=e[a[s]],i(r)&&(n=r.call(e),o(n)))return n;throw new TypeError("No default value")}(e,"default"===r?"number":r)}},4149:e=>{e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},7648:e=>{var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,s=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),a=r(0,o.length-s.length),u=[],c=0;c<a;c++)u[c]="$"+c;if(i=Function("binder","return function ("+function(e){for(var t="",r=0;r<e.length;r+=1)t+=e[r],r+1<e.length&&(t+=",");return t}(u)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=o.apply(this,n(s,arguments));return Object(t)===t?t:this}return o.apply(e,n(s,arguments))})),o.prototype){var l=function(){};l.prototype=o.prototype,i.prototype=new l,l.prototype=null}return i}},8612:(e,t,r)=>{var n=r(7648);e.exports=Function.prototype.bind||n},210:(e,t,r)=>{var n,o=r(8892),i=r(1648),s=r(3981),a=r(4726),u=r(6712),c=r(3464),l=r(4453),f=r(3915),p=r(9738),d=r(6329),h=r(2264),y=r(5730),g=r(707),m=r(3862),b=r(9550),v=Function,w=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=r(7296),_=r(4429),x=function(){throw new l},E=S?function(){try{return x}catch(e){try{return S(arguments,"callee").get}catch(e){return x}}}():x,C=r(1405)(),A=r(1618),O=r(8899),T=r(443),j=r(1768),P=r(8928),k={},L="undefined"!=typeof Uint8Array&&A?A(Uint8Array):n,F={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":C&&A?A([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":k,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&A?A(A([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&C&&A?A((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&C&&A?A((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&A?A(""[Symbol.iterator]()):n,"%Symbol%":C?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":E,"%TypedArray%":L,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":j,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":O,"%Math.abs%":p,"%Math.floor%":d,"%Math.max%":h,"%Math.min%":y,"%Math.pow%":g,"%Math.round%":m,"%Math.sign%":b,"%Reflect.getPrototypeOf%":T};if(A)try{null.error}catch(e){var I=A(A(e));F["%Error.prototype%"]=I}var R=function e(t){var r;if("%AsyncFunction%"===t)r=w("async function () {}");else if("%GeneratorFunction%"===t)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=w("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&A&&(r=A(o.prototype))}return F[t]=r,r},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=r(8612),D=r(8824),$=M.call(P,Array.prototype.concat),U=M.call(j,Array.prototype.splice),B=M.call(P,String.prototype.replace),W=M.call(P,String.prototype.slice),q=M.call(P,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,z=function(e,t){var r,n=e;if(D(N,n)&&(n="%"+(r=N[n])[0]+"%"),D(F,n)){var o=F[n];if(o===k&&(o=R(n)),void 0===o&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=W(e,0,1),r=W(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return B(e,J,(function(e,t,r,o){n[n.length]=r?B(o,G,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=z("%"+n+"%",t),i=o.name,s=o.value,a=!1,u=o.alias;u&&(n=u[0],U(r,$([0,1],u)));for(var f=1,p=!0;f<r.length;f+=1){var d=r[f],h=W(d,0,1),y=W(d,-1);if(('"'===h||"'"===h||"`"===h||'"'===y||"'"===y||"`"===y)&&h!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&p||(a=!0),D(F,i="%"+(n+="."+d)+"%"))s=F[i];else if(null!=s){if(!(d in s)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(S&&f+1>=r.length){var g=S(s,d);s=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[d]}else p=D(s,d),s=s[d];p&&!a&&(F[i]=s)}}return s}},8899:(e,t,r)=>{var n=r(8892);e.exports=n.getPrototypeOf||null},443:e=>{e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},1618:(e,t,r)=>{var n=r(443),o=r(8899),i=r(6504);e.exports=n?function(e){return n(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},690:e=>{e.exports=Object.getOwnPropertyDescriptor},7296:(e,t,r)=>{var n=r(690);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},1044:(e,t,r)=>{var n=r(4429),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},8185:e=>{var t={__proto__:null,foo:{}},r={__proto__:t}.foo===t.foo&&!(t instanceof Object);e.exports=function(){return r}},1405:(e,t,r)=>{var n="undefined"!=typeof Symbol&&Symbol,o=r(5419);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},5419:e=>{e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},6410:(e,t,r)=>{var n=r(5419);e.exports=function(){return n()&&!!Symbol.toStringTag}},8824:(e,t,r)=>{var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(8612);e.exports=i.call(n,o)},9496:(e,t,r)=>{var n=r(8824),o=r(7478)(),i=r(4453),s={assert:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`O` is not an object");if("string"!=typeof t)throw new i("`slot` must be a string");if(o.assert(e),!s.has(e,t))throw new i("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`O` is not an object");if("string"!=typeof t)throw new i("`slot` must be a string");var r=o.get(e);return r&&r["$"+t]},has:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`O` is not an object");if("string"!=typeof t)throw new i("`slot` must be a string");var r=o.get(e);return!!r&&n(r,"$"+t)},set:function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`O` is not an object");if("string"!=typeof t)throw new i("`slot` must be a string");var n=o.get(e);n||(n={},o.set(e,n)),n["$"+t]=r}};Object.freeze&&Object.freeze(s),e.exports=s},7093:(e,t,r)=>{var n=r(6410)(),o=r(7379)("Object.prototype.toString"),i=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},s=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"callee"in e&&"[object Function]"===o(e.callee)},a=function(){return i(arguments)}();i.isLegacyArguments=s,e.exports=a?i:s},5320:e=>{var t,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o((function(){throw 42}),null,t)}catch(e){e!==r&&(o=null)}else o=null;var i=/^\s*class\b/,s=function(e){try{var t=n.call(e);return i.test(t)}catch(e){return!1}},a=function(e){try{return!s(e)&&(n.call(e),!0)}catch(e){return!1}},u=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var p=document.all;u.call(p)===u.call(document.all)&&(f=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==r)return!1}return!s(e)&&a(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(c)return a(e);if(s(e))return!1;var t=u.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&a(e)}},8923:(e,t,r)=>{var n=r(7379),o=n("Date.prototype.getDay"),i=n("Object.prototype.toString"),s=r(6410)();e.exports=function(e){return"object"==typeof e&&null!==e&&(s?function(e){try{return o(e),!0}catch(e){return!1}}(e):"[object Date]"===i(e))}},8379:e=>{var t,r="function"==typeof Map&&Map.prototype?Map:null,n="function"==typeof Set&&Set.prototype?Set:null;r||(t=function(e){return!1});var o=r?Map.prototype.has:null,i=n?Set.prototype.has:null;t||o||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(o.call(e),i)try{i.call(e)}catch(e){return!0}return e instanceof r}catch(e){}return!1}},8420:(e,t,r)=>{var n,o=r(7379),i=r(6410)(),s=r(8824),a=r(7296);if(i){var u=o("RegExp.prototype.exec"),c={},l=function(){throw c},f={toString:l,valueOf:l};"symbol"==typeof Symbol.toPrimitive&&(f[Symbol.toPrimitive]=l),n=function(e){if(!e||"object"!=typeof e)return!1;var t=a(e,"lastIndex");if(!t||!s(t,"value"))return!1;try{u(e,f)}catch(e){return e===c}}}else{var p=o("Object.prototype.toString");n=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===p(e)}}e.exports=n},9572:e=>{var t,r="function"==typeof Map&&Map.prototype?Map:null,n="function"==typeof Set&&Set.prototype?Set:null;n||(t=function(e){return!1});var o=r?Map.prototype.has:null,i=n?Set.prototype.has:null;t||i||(t=function(e){return!1}),e.exports=t||function(e){if(!e||"object"!=typeof e)return!1;try{if(i.call(e),o)try{o.call(e)}catch(e){return!0}return e instanceof n}catch(e){}return!1}},9981:(e,t,r)=>{var n=r(7379),o=n("String.prototype.valueOf"),i=n("Object.prototype.toString"),s=r(6410)();e.exports=function(e){return"string"==typeof e||!(!e||"object"!=typeof e)&&(s?function(e){try{return o(e),!0}catch(e){return!1}}(e):"[object String]"===i(e))}},2636:(e,t,r)=>{var n=r(7379),o=n("Object.prototype.toString"),i=r(1405)(),s=r(9246);if(i){var a=n("Symbol.prototype.toString"),u=s(/^Symbol\(.*\)$/);e.exports=function(e){if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||"[object Symbol]"!==o(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&u(a(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},5826:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},2252:e=>{var t=TypeError;e.exports=function(e){if(!e||"function"!=typeof e.next)throw new t("iterator must be an object with a `next` method");if(arguments.length>1){var r=arguments[1];if("function"!=typeof r)throw new t("`callback`, if provided, must be a function")}for(var n,o=r||[];(n=e.next())&&!n.done;)r?r(n.value):o.push(n.value);if(!r)return o}},4421:(e,t,r)=>{var n=r(4155);const o=r(6317),i=r(1935),s=new class{constructor(){const e={__LOG4JS_undefined__:void 0,__LOG4JS_NaN__:Number("abc"),__LOG4JS_Infinity__:1/0,"__LOG4JS_-Infinity__":-1/0};this.deMap=e,this.serMap={},Object.keys(this.deMap).forEach((e=>{const t=this.deMap[e];this.serMap[t]=e}))}canSerialise(e){return"string"!=typeof e&&e in this.serMap}serialise(e){return this.canSerialise(e)?this.serMap[e]:e}canDeserialise(e){return e in this.deMap}deserialise(e){return this.canDeserialise(e)?this.deMap[e]:e}};class a{constructor(e,t,r,o,i,s){if(this.startTime=new Date,this.categoryName=e,this.data=r,this.level=t,this.context=Object.assign({},o),this.pid=n.pid,this.error=s,void 0!==i){if(!i||"object"!=typeof i||Array.isArray(i))throw new TypeError("Invalid location type passed to LoggingEvent constructor");this.constructor._getLocationKeys().forEach((e=>{void 0!==i[e]&&(this[e]=i[e])}))}}static _getLocationKeys(){return["fileName","lineNumber","columnNumber","callStack","className","functionName","functionAlias","callerName"]}serialise(){return o.stringify(this,((e,t)=>(t instanceof Error&&(t=Object.assign({message:t.message,stack:t.stack},t)),s.serialise(t))))}static deserialise(e){let t;try{const r=o.parse(e,((e,t)=>{if(t&&t.message&&t.stack){const e=new Error(t);Object.keys(t).forEach((r=>{e[r]=t[r]})),t=e}return s.deserialise(t)}));this._getLocationKeys().forEach((e=>{void 0!==r[e]&&(r.location||(r.location={}),r.location[e]=r[e])})),t=new a(r.categoryName,i.getLevel(r.level.levelStr),r.data,r.context,r.location,r.error),t.startTime=new Date(r.startTime),t.pid=r.pid,r.cluster&&(t.cluster=r.cluster)}catch(r){t=new a("log4js",i.ERROR,["Unable to parse log:",e,"because: ",r])}return t}}e.exports=a},6889:e=>{function t(e){if("number"==typeof e&&Number.isInteger(e))return e;const t={K:1024,M:1048576,G:1073741824},r=Object.keys(t),n=e.slice(-1).toLocaleUpperCase(),o=e.slice(0,-1).trim();if(r.indexOf(n)<0||!Number.isInteger(Number(o)))throw Error(`maxLogSize: "${e}" is invalid`);return o*t[n]}function r(e){return function(e,t){const r=Object.assign({},t);return Object.keys(e).forEach((n=>{r[n]&&(r[n]=e[n](t[n]))})),r}({maxLogSize:t},e)}const n={dateFile:r,file:r,fileSync:r};e.exports.modifyConfig=e=>n[e.type]?n[e.type](e):e},6028:(e,t,r)=>{const n=r(1227)("log4js:categoryFilter");e.exports.configure=function(e,t,r){const o=r(e.appender);return function(e,t){return"string"==typeof e&&(e=[e]),r=>{n(`Checking ${r.categoryName} against ${e}`),-1===e.indexOf(r.categoryName)&&(n("Not excluded, sending to appender"),t(r))}}(e.exclude,o)}},6713:e=>{const t=console.log.bind(console);e.exports.configure=function(e,r){let n=r.colouredLayout;return e.layout&&(n=r.layout(e.layout.type,e.layout)),function(e,r){return n=>{t(e(n,r))}}(n,e.timezoneOffset)}},4395:()=>{},3530:(e,t,r)=>{var n=r(4155);const o=r(3387),i=r(1227)("log4js:appenders"),s=r(3338),a=r(7839),u=r(1935),c=r(1219),l=r(6889),f=new Map;f.set("console",r(6713)),f.set("stdout",r(2489)),f.set("stderr",r(9545)),f.set("logLevelFilter",r(2861)),f.set("categoryFilter",r(6028)),f.set("noLogFilter",r(4029)),f.set("file",r(4395)),f.set("dateFile",r(4395)),f.set("fileSync",r(4395)),f.set("tcp",r(2383));const p=new Map,d=(e,t)=>{let n;try{const t=`${e}.cjs`;n=r(2213).resolve(t),i("Loading module from ",t)}catch(t){n=e,i("Loading module from ",e)}try{return r(2213)(n)}catch(r){return void s.throwExceptionIf(t,"MODULE_NOT_FOUND"!==r.code,`appender "${e}" could not be loaded (error was: ${r})`)}},h=new Set,y=(e,t)=>{if(p.has(e))return p.get(e);if(!t.appenders[e])return!1;if(h.has(e))throw new Error(`Dependency loop detected for appender ${e}.`);h.add(e),i(`Creating appender ${e}`);const r=g(e,t);return h.delete(e),p.set(e,r),r},g=(e,t)=>{const p=t.appenders[e],h=p.type.configure?p.type:((e,t)=>f.get(e)||d(`./${e}`,t)||d(e,t)||r.c[r.s]&&r.c[r.s].filename&&d(o.join(o.dirname(r.c[r.s].filename),e),t)||d(o.join(n.cwd(),e),t))(p.type,t);return s.throwExceptionIf(t,s.not(h),`appender "${e}" is not valid (type "${p.type}" could not be found)`),h.appender&&(n.emitWarning(`Appender ${p.type} exports an appender function.`,"DeprecationWarning","log4js-node-DEP0001"),i("[log4js-node-DEP0001]",`DEPRECATION: Appender ${p.type} exports an appender function.`)),h.shutdown&&(n.emitWarning(`Appender ${p.type} exports a shutdown function.`,"DeprecationWarning","log4js-node-DEP0002"),i("[log4js-node-DEP0002]",`DEPRECATION: Appender ${p.type} exports a shutdown function.`)),i(`${e}: clustering.isMaster ? ${a.isMaster()}`),i(`${e}: appenderModule is ${r(3626).inspect(h)}`),a.onlyOnMaster((()=>(i(`calling appenderModule.configure for ${e} / ${p.type}`),h.configure(l.modifyConfig(p),c,(e=>y(e,t)),u))),(()=>{}))},m=e=>{if(p.clear(),h.clear(),!e)return;const t=[];Object.values(e.categories).forEach((e=>{t.push(...e.appenders)})),Object.keys(e.appenders).forEach((r=>{(t.includes(r)||"tcp-server"===e.appenders[r].type||"multiprocess"===e.appenders[r].type)&&y(r,e)}))},b=()=>{m()};b(),s.addListener((e=>{s.throwExceptionIf(e,s.not(s.anObject(e.appenders)),'must have a property "appenders" of type object.');const t=Object.keys(e.appenders);s.throwExceptionIf(e,s.not(t.length),"must define at least one appender."),t.forEach((t=>{s.throwExceptionIf(e,s.not(e.appenders[t].type),`appender "${t}" is not valid (must be an object with property "type")`)}))})),s.addListener(m),e.exports=p,e.exports.init=b},2861:e=>{e.exports.configure=function(e,t,r,n){const o=r(e.appender);return function(e,t,r,n){const o=n.getLevel(e),i=n.getLevel(t,n.FATAL);return e=>{const t=e.level;o.isLessThanOrEqualTo(t)&&i.isGreaterThanOrEqualTo(t)&&r(e)}}(e.level,e.maxLevel,o,n)}},4029:(e,t,r)=>{const n=r(1227)("log4js:noLogFilter");e.exports.configure=function(e,t,r){const o=r(e.appender);return function(e,t){return r=>{n(`Checking data: ${r.data} against filters: ${e}`),"string"==typeof e&&(e=[e]),e=e.filter((e=>null!=e&&""!==e));const o=new RegExp(e.join("|"),"i");(0===e.length||r.data.findIndex((e=>o.test(e)))<0)&&(n("Not excluded, sending to appender"),t(r))}}(e.exclude,o)}},2344:(e,t,r)=>{const n=r(1227)("log4js:recording"),o=[];function i(){return o.slice()}function s(){o.length=0}e.exports={configure:function(){return function(e){n(`received logEvent, number of events now ${o.length+1}`),n("log event was ",e),o.push(e)}},replay:i,playback:i,reset:s,erase:s}},9545:(e,t,r)=>{var n=r(4155);e.exports.configure=function(e,t){let r=t.colouredLayout;return e.layout&&(r=t.layout(e.layout.type,e.layout)),function(e,t){return r=>{n.stderr.write(`${e(r,t)}\n`)}}(r,e.timezoneOffset)}},2489:(e,t,r)=>{var n=r(4155);t.configure=function(e,t){let r=t.colouredLayout;return e.layout&&(r=t.layout(e.layout.type,e.layout)),function(e,t){return r=>{n.stdout.write(`${e(r,t)}\n`)}}(r,e.timezoneOffset)}},2383:(e,t,r)=>{const n=r(1227)("log4js:tcp"),o=r(3822);e.exports.configure=function(e,t){n(`configure with config = ${e}`);let r=function(e){return e.serialise()};return e.layout&&(r=t.layout(e.layout.type,e.layout)),function(e,t){let r=!1;const i=[];let s,a=3,u="__LOG4JS__";function c(e){n("Writing log event to socket"),r=s.write(`${t(e)}${u}`,"utf8")}function l(){let e;for(n("emptying buffer");e=i.shift();)c(e)}function f(e){r?c(e):(n("buffering log event because it cannot write at the moment"),i.push(e))}return function t(){n(`appender creating socket to ${e.host||"localhost"}:${e.port||5e3}`),u=`${e.endMsg||"__LOG4JS__"}`,s=o.createConnection(e.port||5e3,e.host||"localhost"),s.on("connect",(()=>{n("socket connected"),l(),r=!0})),s.on("drain",(()=>{n("drain event received, emptying buffer"),r=!0,l()})),s.on("timeout",s.end.bind(s)),s.on("error",(e=>{n("connection error",e),r=!1,l()})),s.on("close",t)}(),f.shutdown=function(e){n("shutdown called"),i.length&&a?(n("buffer has items, waiting 100ms to empty"),a-=1,setTimeout((()=>{f.shutdown(e)}),100)):(s.removeAllListeners("close"),s.end(e))},f}(e,r)}},2213:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=2213,e.exports=t},3785:(e,t,r)=>{const n=r(1227)("log4js:categories"),o=r(3338),i=r(1935),s=r(3530),a=new Map;function u(e,t,r){if(!1===t.inherit)return;const n=r.lastIndexOf(".");if(n<0)return;const o=r.slice(0,n);let i=e.categories[o];i||(i={inherit:!0,appenders:[]}),u(e,i,o),!e.categories[o]&&i.appenders&&i.appenders.length&&i.level&&(e.categories[o]=i),t.appenders=t.appenders||[],t.level=t.level||i.level,i.appenders.forEach((e=>{t.appenders.includes(e)||t.appenders.push(e)})),t.parent=i}function c(e){e.categories&&Object.keys(e.categories).forEach((t=>{const r=e.categories[t];u(e,r,t)}))}o.addPreProcessingListener((e=>c(e))),o.addListener((e=>{o.throwExceptionIf(e,o.not(o.anObject(e.categories)),'must have a property "categories" of type object.');const t=Object.keys(e.categories);o.throwExceptionIf(e,o.not(t.length),"must define at least one category."),t.forEach((t=>{const r=e.categories[t];o.throwExceptionIf(e,[o.not(r.appenders),o.not(r.level)],`category "${t}" is not valid (must be an object with properties "appenders" and "level")`),o.throwExceptionIf(e,o.not(Array.isArray(r.appenders)),`category "${t}" is not valid (appenders must be an array of appender names)`),o.throwExceptionIf(e,o.not(r.appenders.length),`category "${t}" is not valid (appenders must contain at least one appender name)`),Object.prototype.hasOwnProperty.call(r,"enableCallStack")&&o.throwExceptionIf(e,"boolean"!=typeof r.enableCallStack,`category "${t}" is not valid (enableCallStack must be boolean type)`),r.appenders.forEach((r=>{o.throwExceptionIf(e,o.not(s.get(r)),`category "${t}" is not valid (appender "${r}" is not defined)`)})),o.throwExceptionIf(e,o.not(i.getLevel(r.level)),`category "${t}" is not valid (level "${r.level}" not recognised; valid levels are ${i.levels.join(", ")})`)})),o.throwExceptionIf(e,o.not(e.categories.default),'must define a "default" category.')}));const l=e=>{a.clear(),e&&Object.keys(e.categories).forEach((t=>{const r=e.categories[t],o=[];r.appenders.forEach((e=>{o.push(s.get(e)),n(`Creating category ${t}`),a.set(t,{appenders:o,level:i.getLevel(r.level),enableCallStack:r.enableCallStack||!1})}))}))},f=()=>{l()};f(),o.addListener(l);const p=e=>{if(n(`configForCategory: searching for config for ${e}`),a.has(e))return n(`configForCategory: ${e} exists in config, returning it`),a.get(e);let t;return e.indexOf(".")>0?(n(`configForCategory: ${e} has hierarchy, cloning from parents`),t={...p(e.slice(0,e.lastIndexOf(".")))}):(a.has("default")||l({categories:{default:{appenders:["out"],level:"OFF"}}}),n("configForCategory: cloning default category"),t={...a.get("default")}),a.set(e,t),t};e.exports=a,e.exports=Object.assign(e.exports,{appendersForCategory:e=>p(e).appenders,getLevelForCategory:e=>p(e).level,setLevelForCategory:(e,t)=>{p(e).level=t},getEnableCallStackForCategory:e=>!0===p(e).enableCallStack,setEnableCallStackForCategory:(e,t)=>{p(e).enableCallStack=t},init:f})},7839:e=>{const t=[];e.exports={onlyOnMaster:(e,t)=>e(),isMaster:()=>!0,send:e=>{t.forEach((t=>t(e)))},onMessage:e=>{t.push(e)}}},3338:(e,t,r)=>{const n=r(4214),o=r(1227)("log4js:configuration"),i=[],s=[],a=e=>!e,u=e=>e&&"object"==typeof e&&!Array.isArray(e),c=(e,t,r)=>{(Array.isArray(t)?t:[t]).forEach((t=>{if(t)throw new Error(`Problem with log4js configuration: (${n.inspect(e,{depth:5})}) - ${r}`)}))};e.exports={configure:e=>{o("New configuration to be validated: ",e),c(e,a(u(e)),"must be an object."),o(`Calling pre-processing listeners (${i.length})`),i.forEach((t=>t(e))),o("Configuration pre-processing finished."),o(`Calling configuration listeners (${s.length})`),s.forEach((t=>t(e))),o("Configuration finished.")},addListener:e=>{s.push(e),o(`Added listener, now ${s.length} listeners`)},addPreProcessingListener:e=>{i.push(e),o(`Added pre-processing listener, now ${i.length} listeners`)},throwExceptionIf:c,anObject:u,anInteger:e=>e&&"number"==typeof e&&Number.isInteger(e),validIdentifier:e=>/^[A-Za-z][A-Za-z0-9_]*$/g.test(e),not:a}},198:(e,t,r)=>{const n=r(1935);function o(e){return e.originalUrl||e.url}function i(e,t){for(let r=0;r<t.length;r++)e=e.replace(t[r].token,t[r].replacement);return e}e.exports=function(e,t){t="string"==typeof t||"function"==typeof t?{format:t}:t||{};const r=e;let s=n.getLevel(t.level,n.INFO);const a=t.format||':remote-addr - - ":method :url HTTP/:http-version" :status :content-length ":referrer" ":user-agent"';return(e,u,c)=>{if(void 0!==e._logging)return c();if("function"!=typeof t.nolog){const r=function(e){let t=null;if(e instanceof RegExp&&(t=e),"string"==typeof e&&(t=new RegExp(e)),Array.isArray(e)){const r=e.map((e=>e.source?e.source:e));t=new RegExp(r.join("|"))}return t}(t.nolog);if(r&&r.test(e.originalUrl))return c()}if(r.isLevelEnabled(s)||"auto"===t.level){const c=new Date,{writeHead:l}=u;e._logging=!0,u.writeHead=(e,t)=>{u.writeHead=l,u.writeHead(e,t),u.__statusCode=e,u.__headers=t||{}};let f=!1;const p=()=>{if(f)return;if(f=!0,"function"==typeof t.nolog&&!0===t.nolog(e,u))return void(e._logging=!1);u.responseTime=new Date-c,u.statusCode&&"auto"===t.level&&(s=n.INFO,u.statusCode>=300&&(s=n.WARN),u.statusCode>=400&&(s=n.ERROR)),s=function(e,t,r){let o=t;if(r){const t=r.find((t=>{let r=!1;return r=t.from&&t.to?e>=t.from&&e<=t.to:-1!==t.codes.indexOf(e),r}));t&&(o=n.getLevel(t.level,o))}return o}(u.statusCode,s,t.statusRules);const l=function(e,t,r){const n=[];return n.push({token:":url",replacement:o(e)}),n.push({token:":protocol",replacement:e.protocol}),n.push({token:":hostname",replacement:e.hostname}),n.push({token:":method",replacement:e.method}),n.push({token:":status",replacement:t.__statusCode||t.statusCode}),n.push({token:":response-time",replacement:t.responseTime}),n.push({token:":date",replacement:(new Date).toUTCString()}),n.push({token:":referrer",replacement:e.headers.referer||e.headers.referrer||""}),n.push({token:":http-version",replacement:`${e.httpVersionMajor}.${e.httpVersionMinor}`}),n.push({token:":remote-addr",replacement:e.headers["x-forwarded-for"]||e.ip||e._remoteAddress||e.socket&&(e.socket.remoteAddress||e.socket.socket&&e.socket.socket.remoteAddress)}),n.push({token:":user-agent",replacement:e.headers["user-agent"]}),n.push({token:":content-length",replacement:t.getHeader("content-length")||t.__headers&&t.__headers["Content-Length"]||"-"}),n.push({token:/:req\[([^\]]+)]/g,replacement:(t,r)=>e.headers[r.toLowerCase()]}),n.push({token:/:res\[([^\]]+)]/g,replacement:(e,r)=>t.getHeader(r.toLowerCase())||t.__headers&&t.__headers[r]}),(e=>{const t=e.concat();for(let e=0;e<t.length;++e)for(let r=e+1;r<t.length;++r)t[e].token==t[r].token&&t.splice(r--,1);return t})(r.concat(n))}(e,u,t.tokens||[]);if(t.context&&r.addContext("res",u),"function"==typeof a){const t=a(e,u,(e=>i(e,l)));t&&r.log(s,t)}else r.log(s,i(a,l));t.context&&r.removeContext("res")};u.on("end",p),u.on("finish",p),u.on("error",p),u.on("close",p)}return c()}}},1219:(e,t,r)=>{var n=r(4155);const o=r(520),i=r(7217),s=r(4214),a=r(3384),u=r(9084),c=r(1227)("log4js:layouts"),l={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[90,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[91,39],yellow:[33,39]};function f(e){return e?`[${l[e][0]}m`:""}function p(e){return e?`[${l[e][1]}m`:""}function d(e,t){return r=s.format("[%s] [%s] %s - ",o.asString(e.startTime),e.level.toString(),e.categoryName),f(n=t)+r+p(n);var r,n}function h(e){return d(e)+s.format(...e.data)}function y(e){return d(e,e.level.colour)+s.format(...e.data)}function g(e){return s.format(...e.data)}function m(e){return e.data[0]}function b(e,t){const r=/%(-?[0-9]+)?(\.?-?[0-9]+)?([[\]cdhmnprzxXyflosCMAF%])(\{([^}]+)\})?|([^%]+)/;function l(e){return e&&e.pid?e.pid.toString():n.pid.toString()}e=e||"%r %p %c - %m%n";const d={c:function(e,t){let r=e.categoryName;if(t){const e=parseInt(t,10),n=r.split(".");e<n.length&&(r=n.slice(n.length-e).join("."))}return r},d:function(e,t){let r=o.ISO8601_FORMAT;if(t)switch(r=t,r){case"ISO8601":case"ISO8601_FORMAT":r=o.ISO8601_FORMAT;break;case"ISO8601_WITH_TZ_OFFSET":case"ISO8601_WITH_TZ_OFFSET_FORMAT":r=o.ISO8601_WITH_TZ_OFFSET_FORMAT;break;case"ABSOLUTE":n.emitWarning("Pattern %d{ABSOLUTE} is deprecated in favor of %d{ABSOLUTETIME}. Please use %d{ABSOLUTETIME} instead.","DeprecationWarning","log4js-node-DEP0003"),c("[log4js-node-DEP0003]","DEPRECATION: Pattern %d{ABSOLUTE} is deprecated and replaced by %d{ABSOLUTETIME}.");case"ABSOLUTETIME":case"ABSOLUTETIME_FORMAT":r=o.ABSOLUTETIME_FORMAT;break;case"DATE":n.emitWarning("Pattern %d{DATE} is deprecated due to the confusion it causes when used. Please use %d{DATETIME} instead.","DeprecationWarning","log4js-node-DEP0004"),c("[log4js-node-DEP0004]","DEPRECATION: Pattern %d{DATE} is deprecated and replaced by %d{DATETIME}.");case"DATETIME":case"DATETIME_FORMAT":r=o.DATETIME_FORMAT}return o.asString(r,e.startTime)},h:function(){return i.hostname().toString()},m:function(e,t){let r=e.data;if(t){const[e,n]=t.split(",");r=r.slice(e,n)}return s.format(...r)},n:function(){return i.EOL},p:function(e){return e.level.toString()},r:function(e){return o.asString("hh:mm:ss",e.startTime)},"[":function(e){return f(e.level.colour)},"]":function(e){return p(e.level.colour)},y:function(){return l()},z:l,"%":function(){return"%"},x:function(e,r){return void 0!==t[r]?"function"==typeof t[r]?t[r](e):t[r]:null},X:function(e,t){const r=e.context[t];return void 0!==r?"function"==typeof r?r(e):r:null},f:function(e,t){let r=e.fileName||"";if(r=function(e){const t="file://";return e.startsWith(t)&&("function"==typeof u.fileURLToPath?e=u.fileURLToPath(e):(e=a.normalize(e.replace(new RegExp(`^${t}`),"")),"win32"===n.platform&&(e=e.startsWith("\\")?e.slice(1):a.sep+a.sep+e))),e}(r),t){const e=parseInt(t,10),n=r.split(a.sep);n.length>e&&(r=n.slice(-e).join(a.sep))}return r},l:function(e){return e.lineNumber?`${e.lineNumber}`:""},o:function(e){return e.columnNumber?`${e.columnNumber}`:""},s:function(e){return e.callStack||""},C:function(e){return e.className||""},M:function(e){return e.functionName||""},A:function(e){return e.functionAlias||""},F:function(e){return e.callerName||""}};