@zeniai/web-app-ui 5.1.57-dev → 5.1.57-prod

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/package.json +1 -1
  2. package/dist/assets/AddressRoutes-Btsu-Pr2.js +0 -1
  3. package/dist/assets/AddressScreen-uQ5DG6RP.js +0 -9
  4. package/dist/assets/AiCfoScreen-C79maxqZ.js +0 -22
  5. package/dist/assets/BillPayApprovalRoutes-Diu_Qczl.js +0 -1
  6. package/dist/assets/BillPayRoutes-DomFtcrh.js +0 -119
  7. package/dist/assets/BusinessVerificationPageScreen-CTU28kRu.js +0 -9
  8. package/dist/assets/ChargeCardRoutes-B_Xq4AX2.js +0 -71
  9. package/dist/assets/CompanyPassportScreen-CNZfdpGE.js +0 -1
  10. package/dist/assets/ConnectionAuthScreen-9uLQVh7r.js +0 -11
  11. package/dist/assets/CustomerOnboardingAuthScreen-DxID2vZg.js +0 -1
  12. package/dist/assets/CustomerOnboardingRoutes-CtEh9ZQ3.js +0 -23
  13. package/dist/assets/DashboardRoutes-C0VrIF3t.js +0 -20
  14. package/dist/assets/DefaultTenantHome-DV2g1Cag.js +0 -1
  15. package/dist/assets/DomesticWireDetailScreen-WAgZ5MVK.js +0 -18
  16. package/dist/assets/DrawerScreen-p0fVIC2O.js +0 -1
  17. package/dist/assets/EntityDetailRoutes-BZiwq_x8.js +0 -1
  18. package/dist/assets/ExpenseAutomationRoutes-C13mP6Ld.js +0 -25
  19. package/dist/assets/FeaturePreviewScreen-vqWA1iAu.js +0 -1
  20. package/dist/assets/HubSpotOAuthCallbackScreen-DRJFxPVL.js +0 -1
  21. package/dist/assets/MagicLinkRoutes-CCHMK5nR.js +0 -72
  22. package/dist/assets/MagicLinkSignInScreen-DxG_4feq.js +0 -12
  23. package/dist/assets/MobileAppDrawer-DfGezxMQ.js +0 -1
  24. package/dist/assets/NotFoundScreen-DGu_qIhZ.js +0 -1
  25. package/dist/assets/NotificationRoutes-uMWrErpy.js +0 -1
  26. package/dist/assets/OAuthConsentScreen-DOqYjznz.js +0 -1
  27. package/dist/assets/PandLWithForecastRoutes-x4jJOk7g.js +0 -1
  28. package/dist/assets/PeopleRoutes-DtjJ5ui_.js +0 -22
  29. package/dist/assets/PerformanceRoutes-BloPT0Gr.js +0 -1
  30. package/dist/assets/Preview-DUJTupxJ.js +0 -1
  31. package/dist/assets/QBOConnectionScreen-DqtdpzBM.js +0 -100
  32. package/dist/assets/ReferralListScreen-CmiBzw21.js +0 -5
  33. package/dist/assets/ReimbursementApprovalRoutes-Bi4gR0EY.js +0 -1
  34. package/dist/assets/ReimbursementApprovalRuleDetailScreen-DAMceMDV.js +0 -1
  35. package/dist/assets/ReimbursementRoutes-LVhtQ1QR.js +0 -68
  36. package/dist/assets/ReportsRoutes-hERwKlR6.js +0 -1
  37. package/dist/assets/RewardsRoutes-CCP5Ycwd.js +0 -1
  38. package/dist/assets/ScreenRoutes-Dkx6t2M6.js +0 -2
  39. package/dist/assets/SettingsRoutes-iDdQWuGR.js +0 -57
  40. package/dist/assets/SetupPagesScreen-CykvAPwk.js +0 -29
  41. package/dist/assets/SignInScreen-C1AbxNiZ.js +0 -1
  42. package/dist/assets/SignOutScreen-ZWnRWBaT.js +0 -9
  43. package/dist/assets/TaskListScreen-eAFg78l5.js +0 -9
  44. package/dist/assets/TaskRoutes-C_sRnJzp.js +0 -9
  45. package/dist/assets/TransactionDetailRoutes-yKry3lon.js +0 -1
  46. package/dist/assets/TransactionDetailScreen-H4gr8jU7.js +0 -5
  47. package/dist/assets/TransactionListRoutes-C9jwZ51n.js +0 -1
  48. package/dist/assets/TreasuryRoutes-DzUIIbIL.js +0 -37
  49. package/dist/assets/VendorsRoutes-BAxfd2en.js +0 -112
  50. package/dist/assets/WiseConfirmationScreen-Dj60kDPw.js +0 -12
  51. package/dist/assets/ZeniAccountRoutes-a5E3OMoh.js +0 -57
  52. package/dist/assets/ZeniAccountStatementScreen-gH7pO1hx.js +0 -9
  53. package/dist/assets/accountMappingHelper-CQ-cPZ2Q.js +0 -1
  54. package/dist/assets/analytics-Dp5zEMRl.js +0 -68
  55. package/dist/assets/analyticsHelper-Dgpf5RH0.js +0 -1
  56. package/dist/assets/core-Bz75oBBS.js +0 -12
  57. package/dist/assets/decodeURIComponentSafe-C4sdX50I.js +0 -1
  58. package/dist/assets/dnd-CZ-V7Opk.js +0 -6
  59. package/dist/assets/empty-7OUXq_pa.js +0 -1
  60. package/dist/assets/empty-BOJvSC1K.js +0 -1
  61. package/dist/assets/emptyVideoElement-B7aN1P9v.js +0 -1
  62. package/dist/assets/epic-BcqgfxS9.js +0 -2
  63. package/dist/assets/favicon-D56XvgAH.ico +0 -0
  64. package/dist/assets/getLocaleForTenant-1kUhHovP.js +0 -1
  65. package/dist/assets/index-6BzK0FJL.js +0 -1
  66. package/dist/assets/index-B580fqwk.js +0 -1
  67. package/dist/assets/index-BQTqLUth.js +0 -2
  68. package/dist/assets/index-Bs6X6A75.js +0 -2
  69. package/dist/assets/index-C6CKWv1Y.js +0 -75478
  70. package/dist/assets/index-DqlK4s6f.js +0 -3385
  71. package/dist/assets/index-PPRJ7txt.js +0 -1
  72. package/dist/assets/index-R6GjjTB3.css +0 -1
  73. package/dist/assets/index-uPeOzU7i.js +0 -1
  74. package/dist/assets/lexical-BhoV9klE.js +0 -21
  75. package/dist/assets/liveblocks-Dtw-cIpm.js +0 -54
  76. package/dist/assets/logo192-CqcTe-t4.png +0 -0
  77. package/dist/assets/lottie-DCGoGDCc.js +0 -2
  78. package/dist/assets/manifest-icT4lOF5.json +0 -49
  79. package/dist/assets/mui-XIlJ9bNw.js +0 -109
  80. package/dist/assets/pathToGoBack-DF7meFK5.js +0 -1
  81. package/dist/assets/pdf-DY4XXQdH.js +0 -13
  82. package/dist/assets/pdf-lib-BwfYoiDb.js +0 -39
  83. package/dist/assets/plaid-HhKeWLGl.js +0 -2
  84. package/dist/assets/pusher-yKpXr-6q.js +0 -1
  85. package/dist/assets/react-4ndjzott.js +0 -19
  86. package/dist/assets/react-5mDvcVHb.js +0 -17
  87. package/dist/assets/react-B27fDKOl.js +0 -21
  88. package/dist/assets/react-BU60ZCxp.js +0 -19
  89. package/dist/assets/react-BihThLEf.js +0 -34
  90. package/dist/assets/react-PQlAUPJl.js +0 -22
  91. package/dist/assets/recharts-P1XbTErv.js +0 -65
  92. package/dist/assets/routePaths-qyRAZ1-v.js +0 -1
  93. package/dist/assets/sentry-CcjRjG-d.js +0 -500
  94. package/dist/assets/stripe-DMRn4zHo.js +0 -1
  95. package/dist/assets/url-CywC97He.js +0 -1
  96. package/dist/assets/url-t5z6Dd8t.js +0 -6
  97. package/dist/assets/useAiCfoDashboardSuggestedQuestionsChips--tZ2M5qy.js +0 -1
  98. package/dist/assets/useAskAiCfoHostNavButtonProps-DltkBD6G.js +0 -1
  99. package/dist/assets/useDeviceId-iq2z2ZGf.js +0 -13
  100. package/dist/assets/useInitialThreadRequest-DQr5vayF.js +0 -1
  101. package/dist/assets/utils-CSFJzIqP.js +0 -36
  102. package/dist/assets/web-vitals-D_vxw1oG.js +0 -1
  103. package/dist/assets/withTransactionSidePanel-CnttXHns.js +0 -21
  104. package/dist/assets/zeni-epic-state-qHZitSu9.js +0 -13
  105. package/dist/index.html +0 -1
@@ -1,100 +0,0 @@
1
- import{j as Ol}from"./liveblocks-Dtw-cIpm.js";import{p as Q,e as xc,d as kc,g as jl,a as xl}from"./sentry-CcjRjG-d.js";import{L as dt,bT as Tc,eQ as Ac,JX as Rc,Kp as kl,c1 as Tl,fo as Al,fp as Rl}from"./zeni-epic-state-qHZitSu9.js";import{a as lt,b as Il,c as Pl,d as Nl,e as an,f as Ll,g as $l,h as Ml,i as Vt,j as Ic,k as oe,l as je,m as Cl,n as Yt,o as ue,p as Dl}from"./utils-CSFJzIqP.js";import{r as un}from"./empty-BOJvSC1K.js";import{r as Fl,a as Bl,b as Ul,c as ql}from"./pdf-lib-BwfYoiDb.js";import{r as Gl}from"./index-B580fqwk.js";import{r as zl}from"./index-uPeOzU7i.js";import{h as Zl,g as Hl,u as Vl,j as En,n as Yl}from"./core-Bz75oBBS.js";import{u as Kl,z as Pc,L as Wl,K as Jl,M as Xl,h as Ql,c as tf}from"./index-C6CKWv1Y.js";import"./mui-XIlJ9bNw.js";import{d as Pe}from"./decodeURIComponentSafe-C4sdX50I.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},f=new t.Error().stack;f&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[f]="b16d0288-405a-4673-89a8-9d1d428aba02",t._sentryDebugIdIdentifier="sentry-dbid-b16d0288-405a-4673-89a8-9d1d428aba02")}catch{}})();var _n,Sn={exports:{}},On,jn,xn,kn,Tn,An,Rn,In,Pn,Ne,Nn,Ln,$n,Mn,Cn,Dn,Fn,Bn,Un,qn,Gn,Le,zn,Zn,Hn,Vn,Yn,Kn,Wn,$e,Jn,Xn,Qn,to,eo,ro,no,Me={exports:{}},Ce={exports:{}},De={};function Nc(){if(On)return De;function t(r){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(r)}function f(r,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,p){return a.__proto__=p,a},f(r,e)}function m(r){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var a,p=s(r);if(e){var h=s(this).constructor;a=Reflect.construct(p,arguments,h)}else a=p.apply(this,arguments);return function(d,b){if(b&&(t(b)==="object"||typeof b=="function"))return b;if(b!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}(d)}(this,a)}}function s(r){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(r)}On=1;var l,o,n={};function i(r,e,a){a||(a=Error);var p=function(h){(function(c,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(y&&y.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),y&&f(c,y)})(g,h);var d,b=m(g);function g(c,y,v){var S;return function(w,_){if(!(w instanceof _))throw new TypeError("Cannot call a class as a function")}(this,g),S=b.call(this,function(w,_,M){return typeof e=="string"?e:e(w,_,M)}(c,y,v)),S.code=r,S}return d=g,Object.defineProperty(d,"prototype",{writable:!1}),d}(a);n[r]=p}function u(r,e){if(Array.isArray(r)){var a=r.length;return r=r.map(function(p){return String(p)}),a>2?"one of ".concat(e," ").concat(r.slice(0,a-1).join(", "),", or ")+r[a-1]:a===2?"one of ".concat(e," ").concat(r[0]," or ").concat(r[1]):"of ".concat(e," ").concat(r[0])}return"of ".concat(e," ").concat(String(r))}return i("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),i("ERR_INVALID_ARG_TYPE",function(r,e,a){var p,h,d;if(l===void 0&&(l=ie()),l(typeof r=="string","'name' must be a string"),typeof e=="string"&&(h="not ",e.substr(0,h.length)===h)?(p="must not be",e=e.replace(/^not /,"")):p="must be",function(g,c,y){return(y===void 0||y>g.length)&&(y=g.length),g.substring(y-c.length,y)===c}(r," argument"))d="The ".concat(r," ").concat(p," ").concat(u(e,"type"));else{var b=function(g,c,y){return typeof y!="number"&&(y=0),!(y+c.length>g.length)&&g.indexOf(c,y)!==-1}(r,".")?"property":"argument";d='The "'.concat(r,'" ').concat(b," ").concat(p," ").concat(u(e,"type"))}return d+=". Received type ".concat(t(a))},TypeError),i("ERR_INVALID_ARG_VALUE",function(r,e){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";o===void 0&&(o=lt());var p=o.inspect(e);return p.length>128&&(p="".concat(p.slice(0,128),"...")),"The argument '".concat(r,"' ").concat(a,". Received ").concat(p)},TypeError),i("ERR_INVALID_RETURN_VALUE",function(r,e,a){var p;return p=a&&a.constructor&&a.constructor.name?"instance of ".concat(a.constructor.name):"type ".concat(t(a)),"Expected ".concat(r,' to be returned from the "').concat(e,'"')+" function but got ".concat(p,".")},TypeError),i("ERR_MISSING_ARGS",function(){for(var r=arguments.length,e=new Array(r),a=0;a<r;a++)e[a]=arguments[a];l===void 0&&(l=ie()),l(e.length>0,"At least one arg needs to be specified");var p="The ",h=e.length;switch(e=e.map(function(d){return'"'.concat(d,'"')}),h){case 1:p+="".concat(e[0]," argument");break;case 2:p+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:p+=e.slice(0,h-1).join(", "),p+=", and ".concat(e[h-1]," arguments")}return"".concat(p," must be specified")},TypeError),De.codes=n,De}function ef(){if(xn)return jn;function t(k,E){var j=Object.keys(k);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(k);E&&(x=x.filter(function(O){return Object.getOwnPropertyDescriptor(k,O).enumerable})),j.push.apply(j,x)}return j}function f(k){for(var E=1;E<arguments.length;E++){var j=arguments[E]!=null?arguments[E]:{};E%2?t(Object(j),!0).forEach(function(x){m(k,x,j[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(j)):t(Object(j)).forEach(function(x){Object.defineProperty(k,x,Object.getOwnPropertyDescriptor(j,x))})}return k}function m(k,E,j){return(E=l(E))in k?Object.defineProperty(k,E,{value:j,enumerable:!0,configurable:!0,writable:!0}):k[E]=j,k}function s(k,E,j){return E&&function(x,O){for(var $=0;$<O.length;$++){var N=O[$];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(x,l(N.key),N)}}(k.prototype,E),Object.defineProperty(k,"prototype",{writable:!1}),k}function l(k){var E=function(j,x){if(p(j)!=="object"||j===null)return j;var O=j[Symbol.toPrimitive];if(O!==void 0){var $=O.call(j,x);if(p($)!=="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(j)}(k,"string");return p(E)==="symbol"?E:String(E)}function o(k,E){if(E&&(p(E)==="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(k)}function n(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function i(k){var E=typeof Map=="function"?new Map:void 0;return i=function(j){if(j===null||(x=j,Function.toString.call(x).indexOf("[native code]")===-1))return j;var x;if(typeof j!="function")throw new TypeError("Super expression must either be null or a function");if(E!==void 0){if(E.has(j))return E.get(j);E.set(j,O)}function O(){return u(j,arguments,a(this).constructor)}return O.prototype=Object.create(j.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),e(O,j)},i(k)}function u(k,E,j){return u=r()?Reflect.construct.bind():function(x,O,$){var N=[null];N.push.apply(N,O);var P=new(Function.bind.apply(x,N));return $&&e(P,$.prototype),P},u.apply(null,arguments)}function r(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function e(k,E){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(j,x){return j.__proto__=x,j},e(k,E)}function a(k){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)},a(k)}function p(k){return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},p(k)}xn=1;var h=lt().inspect,d=Nc().codes.ERR_INVALID_ARG_TYPE;function b(k,E,j){return(j===void 0||j>k.length)&&(j=k.length),k.substring(j-E.length,j)===E}var g="",c="",y="",v="",S={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(k){var E=Object.keys(k),j=Object.create(Object.getPrototypeOf(k));return E.forEach(function(x){j[x]=k[x]}),Object.defineProperty(j,"message",{value:k.message}),j}function _(k){return h(k,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function M(k,E,j){var x="",O="",$=0,N="",P=!1,G=_(k),A=G.split(`
2
- `),I=_(E).split(`
3
- `),R=0,B="";if(j==="strictEqual"&&p(k)==="object"&&p(E)==="object"&&k!==null&&E!==null&&(j="strictEqualObject"),A.length===1&&I.length===1&&A[0]!==I[0]){var V=A[0].length+I[0].length;if(V<=10){if(!(p(k)==="object"&&k!==null||p(E)==="object"&&E!==null||k===0&&E===0))return"".concat(S[j],`
4
-
5
- `)+"".concat(A[0]," !== ").concat(I[0],`
6
- `)}else if(j!=="strictEqualObject"&&V<(Q.stderr&&Q.stderr.isTTY?Q.stderr.columns:80)){for(;A[0][R]===I[0][R];)R++;R>2&&(B=`
7
- `.concat(function(W,K){if(K=Math.floor(K),W.length==0||K==0)return"";var et=W.length*K;for(K=Math.floor(Math.log(K)/Math.log(2));K;)W+=W,K--;return W+W.substring(0,et-W.length)}(" ",R),"^"),R=0)}}for(var J=A[A.length-1],F=I[I.length-1];J===F&&(R++<2?N=`
8
- `.concat(J).concat(N):x=J,A.pop(),I.pop(),A.length!==0&&I.length!==0);)J=A[A.length-1],F=I[I.length-1];var L=Math.max(A.length,I.length);if(L===0){var U=G.split(`
9
- `);if(U.length>30)for(U[26]="".concat(g,"...").concat(v);U.length>27;)U.pop();return"".concat(S.notIdentical,`
10
-
11
- `).concat(U.join(`
12
- `),`
13
- `)}R>3&&(N=`
14
- `.concat(g,"...").concat(v).concat(N),P=!0),x!==""&&(N=`
15
- `.concat(x).concat(N),x="");var Z=0,q=S[j]+`
16
- `.concat(c,"+ actual").concat(v," ").concat(y,"- expected").concat(v),Y=" ".concat(g,"...").concat(v," Lines skipped");for(R=0;R<L;R++){var C=R-$;if(A.length<R+1)C>1&&R>2&&(C>4?(O+=`
17
- `.concat(g,"...").concat(v),P=!0):C>3&&(O+=`
18
- `.concat(I[R-2]),Z++),O+=`
19
- `.concat(I[R-1]),Z++),$=R,x+=`
20
- `.concat(y,"-").concat(v," ").concat(I[R]),Z++;else if(I.length<R+1)C>1&&R>2&&(C>4?(O+=`
21
- `.concat(g,"...").concat(v),P=!0):C>3&&(O+=`
22
- `.concat(A[R-2]),Z++),O+=`
23
- `.concat(A[R-1]),Z++),$=R,O+=`
24
- `.concat(c,"+").concat(v," ").concat(A[R]),Z++;else{var T=I[R],D=A[R],H=D!==T&&(!b(D,",")||D.slice(0,-1)!==T);H&&b(T,",")&&T.slice(0,-1)===D&&(H=!1,D+=","),H?(C>1&&R>2&&(C>4?(O+=`
25
- `.concat(g,"...").concat(v),P=!0):C>3&&(O+=`
26
- `.concat(A[R-2]),Z++),O+=`
27
- `.concat(A[R-1]),Z++),$=R,O+=`
28
- `.concat(c,"+").concat(v," ").concat(D),x+=`
29
- `.concat(y,"-").concat(v," ").concat(T),Z+=2):(O+=x,x="",C!==1&&R!==0||(O+=`
30
- `.concat(D),Z++))}if(Z>20&&R<L-2)return"".concat(q).concat(Y,`
31
- `).concat(O,`
32
- `).concat(g,"...").concat(v).concat(x,`
33
- `)+"".concat(g,"...").concat(v)}return"".concat(q).concat(P?Y:"",`
34
- `).concat(O).concat(x).concat(N).concat(B)}var z=function(k,E){(function(N,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(P&&P.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),P&&e(N,P)})($,k);var j,x,O=(j=$,x=r(),function(){var N,P=a(j);if(x){var G=a(this).constructor;N=Reflect.construct(P,arguments,G)}else N=P.apply(this,arguments);return o(this,N)});function $(N){var P;if(function(q,Y){if(!(q instanceof Y))throw new TypeError("Cannot call a class as a function")}(this,$),p(N)!=="object"||N===null)throw new d("options","Object",N);var G=N.message,A=N.operator,I=N.stackStartFn,R=N.actual,B=N.expected,V=Error.stackTraceLimit;if(Error.stackTraceLimit=0,G!=null)P=O.call(this,String(G));else if(Q.stderr&&Q.stderr.isTTY&&(Q.stderr&&Q.stderr.getColorDepth&&Q.stderr.getColorDepth()!==1?(g="\x1B[34m",c="\x1B[32m",v="\x1B[39m",y="\x1B[31m"):(g="",c="",v="",y="")),p(R)==="object"&&R!==null&&p(B)==="object"&&B!==null&&"stack"in R&&R instanceof Error&&"stack"in B&&B instanceof Error&&(R=w(R),B=w(B)),A==="deepStrictEqual"||A==="strictEqual")P=O.call(this,M(R,B,A));else if(A==="notDeepStrictEqual"||A==="notStrictEqual"){var J=S[A],F=_(R).split(`
35
- `);if(A==="notStrictEqual"&&p(R)==="object"&&R!==null&&(J=S.notStrictEqualObject),F.length>30)for(F[26]="".concat(g,"...").concat(v);F.length>27;)F.pop();P=F.length===1?O.call(this,"".concat(J," ").concat(F[0])):O.call(this,"".concat(J,`
36
-
37
- `).concat(F.join(`
38
- `),`
39
- `))}else{var L=_(R),U="",Z=S[A];A==="notDeepEqual"||A==="notEqual"?(L="".concat(S[A],`
40
-
41
- `).concat(L)).length>1024&&(L="".concat(L.slice(0,1021),"...")):(U="".concat(_(B)),L.length>512&&(L="".concat(L.slice(0,509),"...")),U.length>512&&(U="".concat(U.slice(0,509),"...")),A==="deepEqual"||A==="equal"?L="".concat(Z,`
42
-
43
- `).concat(L,`
44
-
45
- should equal
46
-
47
- `):U=" ".concat(A," ").concat(U)),P=O.call(this,"".concat(L).concat(U))}return Error.stackTraceLimit=V,P.generatedMessage=!G,Object.defineProperty(n(P),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),P.code="ERR_ASSERTION",P.actual=R,P.expected=B,P.operator=A,Error.captureStackTrace&&Error.captureStackTrace(n(P),I),P.stack,P.name="AssertionError",o(P)}return s($,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:E,value:function(N,P){return h(this,f(f({},P),{},{customInspect:!1,depth:0}))}}]),$}(i(Error),h.custom);return jn=z}function Lc(){if(Tn)return kn;Tn=1;var t=Object.prototype.toString;return kn=function(f){var m=t.call(f),s=m==="[object Arguments]";return s||(s=m!=="[object Array]"&&f!==null&&typeof f=="object"&&typeof f.length=="number"&&f.length>=0&&t.call(f.callee)==="[object Function]"),s}}function rf(){if(Rn)return An;var t;if(Rn=1,!Object.keys){var f=Object.prototype.hasOwnProperty,m=Object.prototype.toString,s=Lc(),l=Object.prototype.propertyIsEnumerable,o=!l.call({toString:null},"toString"),n=l.call(function(){},"prototype"),i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(a){var p=a.constructor;return p&&p.prototype===a},r={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},e=function(){if(typeof window>"u")return!1;for(var a in window)try{if(!r["$"+a]&&f.call(window,a)&&window[a]!==null&&typeof window[a]=="object")try{u(window[a])}catch{return!0}}catch{return!0}return!1}();t=function(a){var p=a!==null&&typeof a=="object",h=m.call(a)==="[object Function]",d=s(a),b=p&&m.call(a)==="[object String]",g=[];if(!p&&!h&&!d)throw new TypeError("Object.keys called on a non-object");var c=n&&h;if(b&&a.length>0&&!f.call(a,0))for(var y=0;y<a.length;++y)g.push(String(y));if(d&&a.length>0)for(var v=0;v<a.length;++v)g.push(String(v));else for(var S in a)c&&S==="prototype"||!f.call(a,S)||g.push(String(S));if(o)for(var w=function(M){if(typeof window>"u"||!e)return u(M);try{return u(M)}catch{return!1}}(a),_=0;_<i.length;++_)w&&i[_]==="constructor"||!f.call(a,i[_])||g.push(i[_]);return g}}return An=t}function $c(){if(Pn)return In;Pn=1;var t=Array.prototype.slice,f=Lc(),m=Object.keys,s=m?function(o){return m(o)}:rf(),l=Object.keys;return s.shim=function(){if(Object.keys){var o=function(){var n=Object.keys(arguments);return n&&n.length===arguments.length}(1,2);o||(Object.keys=function(n){return f(n)?l(t.call(n)):l(n)})}else Object.keys=s;return Object.keys||s},In=s}function nf(){if($n)return Ln;$n=1;var t=function(){if(Nn)return Ne;Nn=1;var f=$c(),m=Il()(),s=Pl(),l=Nl(),o=s("Array.prototype.push"),n=s("Object.prototype.propertyIsEnumerable"),i=m?l.getOwnPropertySymbols:null;return Ne=function(u,r){if(u==null)throw new TypeError("target must be an object");var e=l(u);if(arguments.length===1)return e;for(var a=1;a<arguments.length;++a){var p=l(arguments[a]),h=f(p),d=m&&(l.getOwnPropertySymbols||i);if(d)for(var b=d(p),g=0;g<b.length;++g){var c=b[g];n(p,c)&&o(h,c)}for(var y=0;y<h.length;++y){var v=h[y];if(n(p,v)){var S=p[v];e[v]=S}}}return e},Ne}();return Ln=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var f="abcdefghijklmnopqrst",m=f.split(""),s={},l=0;l<m.length;++l)s[m[l]]=m[l];var o=Object.assign({},s),n="";for(var i in o)n+=i;return f!==n}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var f=Object.preventExtensions({1:2});try{Object.assign(f,"xy")}catch{return f[1]==="y"}return!1}()?t:Object.assign:t}}function Mc(){if(Cn)return Mn;Cn=1;var t=function(f){return f!=f};return Mn=function(f,m){return f===0&&m===0?1/f==1/m:f===m||!(!t(f)||!t(m))}}function en(){if(Fn)return Dn;Fn=1;var t=Mc();return Dn=function(){return typeof Object.is=="function"?Object.is:t}}function ve(){if(Gn)return qn;Gn=1;var t=$c(),f=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",m=Object.prototype.toString,s=Array.prototype.concat,l=Ml(),o=$l()(),n=function(u,r,e,a){if(r in u){if(a===!0){if(u[r]===e)return}else if(typeof(p=a)!="function"||m.call(p)!=="[object Function]"||!a())return}var p;o?l(u,r,e,!0):l(u,r,e)},i=function(u,r){var e=arguments.length>2?arguments[2]:{},a=t(r);f&&(a=s.call(a,Object.getOwnPropertySymbols(r)));for(var p=0;p<a.length;p+=1)n(u,a[p],r[a[p]],e[a[p]])};return i.supportsDescriptors=!!o,qn=i}function of(){if(Hn)return Zn;Hn=1;var t=ve(),f=an(),m=Mc(),s=en(),l=function(){if(zn)return Le;zn=1;var n=en(),i=ve();return Le=function(){var u=n();return i(Object,{is:u},{is:function(){return Object.is!==u}}),u},Le}(),o=f(s(),Object);return t(o,{getPolyfill:s,implementation:m,shim:l}),Zn=o}function Cc(){return Yn?Vn:(Yn=1,Vn=function(t){return t!=t})}function Dc(){if(Wn)return Kn;Wn=1;var t=Cc();return Kn=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:t}}function sf(){if(Jn)return $e;Jn=1;var t=ve(),f=Dc();return $e=function(){var m=f();return t(Number,{isNaN:m},{isNaN:function(){return Number.isNaN!==m}}),m},$e}function af(){if(eo)return to;function t(F,L){return function(U){if(Array.isArray(U))return U}(F)||function(U,Z){var q=U==null?null:typeof Symbol<"u"&&U[Symbol.iterator]||U["@@iterator"];if(q!=null){var Y,C,T,D,H=[],W=!0,K=!1;try{if(T=(q=q.call(U)).next,Z!==0)for(;!(W=(Y=T.call(q)).done)&&(H.push(Y.value),H.length!==Z);W=!0);}catch(et){K=!0,C=et}finally{try{if(!W&&q.return!=null&&(D=q.return(),Object(D)!==D))return}finally{if(K)throw C}}return H}}(F,L)||function(U,Z){if(U){if(typeof U=="string")return f(U,Z);var q=Object.prototype.toString.call(U).slice(8,-1);if(q==="Object"&&U.constructor&&(q=U.constructor.name),q==="Map"||q==="Set")return Array.from(U);if(q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q))return f(U,Z)}}(F,L)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
48
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function f(F,L){(L==null||L>F.length)&&(L=F.length);for(var U=0,Z=new Array(L);U<L;U++)Z[U]=F[U];return Z}function m(F){return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},m(F)}eo=1;var s=/a/g.flags!==void 0,l=function(F){var L=[];return F.forEach(function(U){return L.push(U)}),L},o=function(F){var L=[];return F.forEach(function(U,Z){return L.push([Z,U])}),L},n=Object.is?Object.is:of(),i=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},u=Number.isNaN?Number.isNaN:function(){if(Qn)return Xn;Qn=1;var F=an(),L=ve(),U=Cc(),Z=Dc(),q=sf(),Y=F(Z(),Number);return L(Y,{getPolyfill:Z,implementation:U,shim:q}),Xn=Y}();function r(F){return F.call.bind(F)}var e=r(Object.prototype.hasOwnProperty),a=r(Object.prototype.propertyIsEnumerable),p=r(Object.prototype.toString),h=lt().types,d=h.isAnyArrayBuffer,b=h.isArrayBufferView,g=h.isDate,c=h.isMap,y=h.isRegExp,v=h.isSet,S=h.isNativeError,w=h.isBoxedPrimitive,_=h.isNumberObject,M=h.isStringObject,z=h.isBooleanObject,k=h.isBigIntObject,E=h.isSymbolObject,j=h.isFloat32Array,x=h.isFloat64Array;function O(F){if(F.length===0||F.length>10)return!0;for(var L=0;L<F.length;L++){var U=F.charCodeAt(L);if(U<48||U>57)return!0}return F.length===10&&F>=Math.pow(2,32)}function $(F){return Object.keys(F).filter(O).concat(i(F).filter(Object.prototype.propertyIsEnumerable.bind(F)))}function N(F,L){if(F===L)return 0;for(var U=F.length,Z=L.length,q=0,Y=Math.min(U,Z);q<Y;++q)if(F[q]!==L[q]){U=F[q],Z=L[q];break}return U<Z?-1:Z<U?1:0}function P(F,L,U,Z){if(F===L)return F!==0||!U||n(F,L);if(U){if(m(F)!=="object")return typeof F=="number"&&u(F)&&u(L);if(m(L)!=="object"||F===null||L===null||Object.getPrototypeOf(F)!==Object.getPrototypeOf(L))return!1}else{if(F===null||m(F)!=="object")return(L===null||m(L)!=="object")&&F==L;if(L===null||m(L)!=="object")return!1}var q,Y,C,T,D=p(F);if(D!==p(L))return!1;if(Array.isArray(F)){if(F.length!==L.length)return!1;var H=$(F),W=$(L);return H.length===W.length&&A(F,L,U,Z,1,H)}if(D==="[object Object]"&&(!c(F)&&c(L)||!v(F)&&v(L)))return!1;if(g(F)){if(!g(L)||Date.prototype.getTime.call(F)!==Date.prototype.getTime.call(L))return!1}else if(y(F)){if(!y(L)||(C=F,T=L,!(s?C.source===T.source&&C.flags===T.flags:RegExp.prototype.toString.call(C)===RegExp.prototype.toString.call(T))))return!1}else if(S(F)||F instanceof Error){if(F.message!==L.message||F.name!==L.name)return!1}else{if(b(F)){if(U||!j(F)&&!x(F)){if(!function(X,tt){return X.byteLength===tt.byteLength&&N(new Uint8Array(X.buffer,X.byteOffset,X.byteLength),new Uint8Array(tt.buffer,tt.byteOffset,tt.byteLength))===0}(F,L))return!1}else if(!function(X,tt){if(X.byteLength!==tt.byteLength)return!1;for(var nt=0;nt<X.byteLength;nt++)if(X[nt]!==tt[nt])return!1;return!0}(F,L))return!1;var K=$(F),et=$(L);return K.length===et.length&&A(F,L,U,Z,0,K)}if(v(F))return!(!v(L)||F.size!==L.size)&&A(F,L,U,Z,2);if(c(F))return!(!c(L)||F.size!==L.size)&&A(F,L,U,Z,3);if(d(F)){if(Y=L,(q=F).byteLength!==Y.byteLength||N(new Uint8Array(q),new Uint8Array(Y))!==0)return!1}else if(w(F)&&!function(X,tt){return _(X)?_(tt)&&n(Number.prototype.valueOf.call(X),Number.prototype.valueOf.call(tt)):M(X)?M(tt)&&String.prototype.valueOf.call(X)===String.prototype.valueOf.call(tt):z(X)?z(tt)&&Boolean.prototype.valueOf.call(X)===Boolean.prototype.valueOf.call(tt):k(X)?k(tt)&&BigInt.prototype.valueOf.call(X)===BigInt.prototype.valueOf.call(tt):E(tt)&&Symbol.prototype.valueOf.call(X)===Symbol.prototype.valueOf.call(tt)}(F,L))return!1}return A(F,L,U,Z,0)}function G(F,L){return L.filter(function(U){return a(F,U)})}function A(F,L,U,Z,q,Y){if(arguments.length===5){Y=Object.keys(F);var C=Object.keys(L);if(Y.length!==C.length)return!1}for(var T=0;T<Y.length;T++)if(!e(L,Y[T]))return!1;if(U&&arguments.length===5){var D=i(F);if(D.length!==0){var H=0;for(T=0;T<D.length;T++){var W=D[T];if(a(F,W)){if(!a(L,W))return!1;Y.push(W),H++}else if(a(L,W))return!1}var K=i(L);if(D.length!==K.length&&G(L,K).length!==H)return!1}else{var et=i(L);if(et.length!==0&&G(L,et).length!==0)return!1}}if(Y.length===0&&(q===0||q===1&&F.length===0||F.size===0))return!0;if(Z===void 0)Z={val1:new Map,val2:new Map,position:0};else{var X=Z.val1.get(F);if(X!==void 0){var tt=Z.val2.get(L);if(tt!==void 0)return X===tt}Z.position++}Z.val1.set(F,Z.position),Z.val2.set(L,Z.position);var nt=function(ot,st,gt,At,vt,bt){var it=0;if(bt===2){if(!function(mt,It,jt,Pt){for(var ut=null,Kt=l(mt),Ct=0;Ct<Kt.length;Ct++){var xt=Kt[Ct];if(m(xt)==="object"&&xt!==null)ut===null&&(ut=new Set),ut.add(xt);else if(!It.has(xt)){if(jt||!B(mt,It,xt))return!1;ut===null&&(ut=new Set),ut.add(xt)}}if(ut!==null){for(var St=l(It),Ft=0;Ft<St.length;Ft++){var Nt=St[Ft];if(m(Nt)==="object"&&Nt!==null){if(!I(ut,Nt,jt,Pt))return!1}else if(!jt&&!mt.has(Nt)&&!I(ut,Nt,jt,Pt))return!1}return ut.size===0}return!0}(ot,st,gt,vt))return!1}else if(bt===3){if(!function(mt,It,jt,Pt){for(var ut=null,Kt=o(mt),Ct=0;Ct<Kt.length;Ct++){var xt=t(Kt[Ct],2),St=xt[0],Ft=xt[1];if(m(St)==="object"&&St!==null)ut===null&&(ut=new Set),ut.add(St);else{var Nt=It.get(St);if(Nt===void 0&&!It.has(St)||!P(Ft,Nt,jt,Pt)){if(jt||!V(mt,It,St,Ft,Pt))return!1;ut===null&&(ut=new Set),ut.add(St)}}}if(ut!==null){for(var bn=o(It),Re=0;Re<bn.length;Re++){var wn=t(bn[Re],2),Bt=wn[0],Ie=wn[1];if(m(Bt)==="object"&&Bt!==null){if(!J(ut,mt,Bt,Ie,jt,Pt))return!1}else if(!(jt||mt.has(Bt)&&P(mt.get(Bt),Ie,!1,Pt)||J(ut,mt,Bt,Ie,!1,Pt)))return!1}return ut.size===0}return!0}(ot,st,gt,vt))return!1}else if(bt===1)for(;it<ot.length;it++){if(!e(ot,it)){if(e(st,it))return!1;for(var ht=Object.keys(ot);it<ht.length;it++){var rt=ht[it];if(!e(st,rt)||!P(ot[rt],st[rt],gt,vt))return!1}return ht.length===Object.keys(st).length}if(!e(st,it)||!P(ot[it],st[it],gt,vt))return!1}for(it=0;it<At.length;it++){var Rt=At[it];if(!P(ot[Rt],st[Rt],gt,vt))return!1}return!0}(F,L,U,Y,Z,q);return Z.val1.delete(F),Z.val2.delete(L),nt}function I(F,L,U,Z){for(var q=l(F),Y=0;Y<q.length;Y++){var C=q[Y];if(P(L,C,U,Z))return F.delete(C),!0}return!1}function R(F){switch(m(F)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":F=+F;case"number":if(u(F))return!1}return!0}function B(F,L,U){var Z=R(U);return Z??(L.has(Z)&&!F.has(Z))}function V(F,L,U,Z,q){var Y=R(U);if(Y!=null)return Y;var C=L.get(Y);return!(C===void 0&&!L.has(Y)||!P(Z,C,!1,q))&&!F.has(Y)&&P(Z,C,!1,q)}function J(F,L,U,Z,q,Y){for(var C=l(F),T=0;T<C.length;T++){var D=C[T];if(P(U,D,q,Y)&&P(Z,L.get(D),q,Y))return F.delete(D),!0}return!1}return to={isDeepEqual:function(F,L){return P(F,L,!1)},isDeepStrictEqual:function(F,L){return P(F,L,!0)}}}function ie(){if(ro)return Ce.exports;function t(A){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},t(A)}function f(A,I,R){return Object.defineProperty(A,"prototype",{writable:!1}),A}ro=1;var m,s,l=Nc().codes,o=l.ERR_AMBIGUOUS_ARGUMENT,n=l.ERR_INVALID_ARG_TYPE,i=l.ERR_INVALID_ARG_VALUE,u=l.ERR_INVALID_RETURN_VALUE,r=l.ERR_MISSING_ARGS,e=ef(),a=lt().inspect,p=lt().types,h=p.isPromise,d=p.isRegExp,b=nf()(),g=en()(),c=function(){if(Un)return Bn;Un=1;var A=Ll(),I=an(),R=I(A("String.prototype.indexOf"));return Bn=function(B,V){var J=A(B,!!V);return typeof J=="function"&&R(B,".prototype.")>-1?I(J):J}}()("RegExp.prototype.test");function y(){var A=af();m=A.isDeepEqual,s=A.isDeepStrictEqual}var v=!1,S=Ce.exports=z,w={};function _(A){throw A.message instanceof Error?A.message:new e(A)}function M(A,I,R,B){if(!R){var V=!1;if(I===0)V=!0,B="No value argument passed to `assert.ok()`";else if(B instanceof Error)throw B;var J=new e({actual:R,expected:!0,message:B,operator:"==",stackStartFn:A});throw J.generatedMessage=V,J}}function z(){for(var A=arguments.length,I=new Array(A),R=0;R<A;R++)I[R]=arguments[R];M.apply(void 0,[z,I.length].concat(I))}S.fail=function A(I,R,B,V,J){var F,L=arguments.length;if(L===0?F="Failed":L===1?(B=I,I=void 0):(v===!1&&(v=!0,(Q.emitWarning?Q.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),L===2&&(V="!=")),B instanceof Error)throw B;var U={actual:I,expected:R,operator:V===void 0?"fail":V,stackStartFn:J||A};B!==void 0&&(U.message=B);var Z=new e(U);throw F&&(Z.message=F,Z.generatedMessage=!0),Z},S.AssertionError=e,S.ok=z,S.equal=function A(I,R,B){if(arguments.length<2)throw new r("actual","expected");I!=R&&_({actual:I,expected:R,message:B,operator:"==",stackStartFn:A})},S.notEqual=function A(I,R,B){if(arguments.length<2)throw new r("actual","expected");I==R&&_({actual:I,expected:R,message:B,operator:"!=",stackStartFn:A})},S.deepEqual=function A(I,R,B){if(arguments.length<2)throw new r("actual","expected");m===void 0&&y(),m(I,R)||_({actual:I,expected:R,message:B,operator:"deepEqual",stackStartFn:A})},S.notDeepEqual=function A(I,R,B){if(arguments.length<2)throw new r("actual","expected");m===void 0&&y(),m(I,R)&&_({actual:I,expected:R,message:B,operator:"notDeepEqual",stackStartFn:A})},S.deepStrictEqual=function A(I,R,B){if(arguments.length<2)throw new r("actual","expected");m===void 0&&y(),s(I,R)||_({actual:I,expected:R,message:B,operator:"deepStrictEqual",stackStartFn:A})},S.notDeepStrictEqual=function A(I,R,B){if(arguments.length<2)throw new r("actual","expected");m===void 0&&y(),s(I,R)&&_({actual:I,expected:R,message:B,operator:"notDeepStrictEqual",stackStartFn:A})},S.strictEqual=function A(I,R,B){if(arguments.length<2)throw new r("actual","expected");g(I,R)||_({actual:I,expected:R,message:B,operator:"strictEqual",stackStartFn:A})},S.notStrictEqual=function A(I,R,B){if(arguments.length<2)throw new r("actual","expected");g(I,R)&&_({actual:I,expected:R,message:B,operator:"notStrictEqual",stackStartFn:A})};var k=f(function A(I,R,B){var V=this;(function(J,F){if(!(J instanceof F))throw new TypeError("Cannot call a class as a function")})(this,A),R.forEach(function(J){J in I&&(B!==void 0&&typeof B[J]=="string"&&d(I[J])&&c(I[J],B[J])?V[J]=B[J]:V[J]=I[J])})});function E(A,I,R,B){if(typeof I!="function"){if(d(I))return c(I,A);if(arguments.length===2)throw new n("expected",["Function","RegExp"],I);if(t(A)!=="object"||A===null){var V=new e({actual:A,expected:I,message:R,operator:"deepStrictEqual",stackStartFn:B});throw V.operator=B.name,V}var J=Object.keys(I);if(I instanceof Error)J.push("name","message");else if(J.length===0)throw new i("error",I,"may not be an empty object");return m===void 0&&y(),J.forEach(function(F){typeof A[F]=="string"&&d(I[F])&&c(I[F],A[F])||function(L,U,Z,q,Y,C){if(!(Z in L)||!s(L[Z],U[Z])){if(!q){var T=new k(L,Y),D=new k(U,Y,L),H=new e({actual:T,expected:D,operator:"deepStrictEqual",stackStartFn:C});throw H.actual=L,H.expected=U,H.operator=C.name,H}_({actual:L,expected:U,message:q,operator:C.name,stackStartFn:C})}}(A,I,F,R,J,B)}),!0}return I.prototype!==void 0&&A instanceof I||!Error.isPrototypeOf(I)&&I.call({},A)===!0}function j(A){if(typeof A!="function")throw new n("fn","Function",A);try{A()}catch(I){return I}return w}function x(A){return h(A)||A!==null&&t(A)==="object"&&typeof A.then=="function"&&typeof A.catch=="function"}function O(A){return Promise.resolve().then(function(){var I;if(typeof A=="function"){if(!x(I=A()))throw new u("instance of Promise","promiseFn",I)}else{if(!x(A))throw new n("promiseFn",["Function","Promise"],A);I=A}return Promise.resolve().then(function(){return I}).then(function(){return w}).catch(function(R){return R})})}function $(A,I,R,B){if(typeof R=="string"){if(arguments.length===4)throw new n("error",["Object","Error","Function","RegExp"],R);if(t(I)==="object"&&I!==null){if(I.message===R)throw new o("error/message",'The error message "'.concat(I.message,'" is identical to the message.'))}else if(I===R)throw new o("error/message",'The error "'.concat(I,'" is identical to the message.'));B=R,R=void 0}else if(R!=null&&t(R)!=="object"&&typeof R!="function")throw new n("error",["Object","Error","Function","RegExp"],R);if(I===w){var V="";R&&R.name&&(V+=" (".concat(R.name,")")),V+=B?": ".concat(B):".";var J=A.name==="rejects"?"rejection":"exception";_({actual:void 0,expected:R,operator:A.name,message:"Missing expected ".concat(J).concat(V),stackStartFn:A})}if(R&&!E(I,R,B,A))throw I}function N(A,I,R,B){if(I!==w){if(typeof R=="string"&&(B=R,R=void 0),!R||E(I,R)){var V=B?": ".concat(B):".",J=A.name==="doesNotReject"?"rejection":"exception";_({actual:I,expected:R,operator:A.name,message:"Got unwanted ".concat(J).concat(V,`
49
- `)+'Actual message: "'.concat(I&&I.message,'"'),stackStartFn:A})}throw I}}function P(A,I,R,B,V){if(!d(I))throw new n("regexp","RegExp",I);var J=V==="match";if(typeof A!="string"||c(I,A)!==J){if(R instanceof Error)throw R;var F=!R;R=R||(typeof A!="string"?'The "string" argument must be of type string. Received type '+"".concat(t(A)," (").concat(a(A),")"):(J?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(a(I),`. Input:
50
-
51
- `).concat(a(A),`
52
- `));var L=new e({actual:A,expected:I,message:R,operator:V,stackStartFn:B});throw L.generatedMessage=F,L}}function G(){for(var A=arguments.length,I=new Array(A),R=0;R<A;R++)I[R]=arguments[R];M.apply(void 0,[G,I.length].concat(I))}return S.throws=function A(I){for(var R=arguments.length,B=new Array(R>1?R-1:0),V=1;V<R;V++)B[V-1]=arguments[V];$.apply(void 0,[A,j(I)].concat(B))},S.rejects=function A(I){for(var R=arguments.length,B=new Array(R>1?R-1:0),V=1;V<R;V++)B[V-1]=arguments[V];return O(I).then(function(J){return $.apply(void 0,[A,J].concat(B))})},S.doesNotThrow=function A(I){for(var R=arguments.length,B=new Array(R>1?R-1:0),V=1;V<R;V++)B[V-1]=arguments[V];N.apply(void 0,[A,j(I)].concat(B))},S.doesNotReject=function A(I){for(var R=arguments.length,B=new Array(R>1?R-1:0),V=1;V<R;V++)B[V-1]=arguments[V];return O(I).then(function(J){return N.apply(void 0,[A,J].concat(B))})},S.ifError=function A(I){if(I!=null){var R="ifError got unwanted exception: ";t(I)==="object"&&typeof I.message=="string"?I.message.length===0&&I.constructor?R+=I.constructor.name:R+=I.message:R+=a(I);var B=new e({actual:I,expected:null,operator:"ifError",message:R,stackStartFn:A}),V=I.stack;if(typeof V=="string"){var J=V.split(`
53
- `);J.shift();for(var F=B.stack.split(`
54
- `),L=0;L<J.length;L++){var U=F.indexOf(J[L]);if(U!==-1){F=F.slice(0,U);break}}B.stack="".concat(F.join(`
55
- `),`
56
- `).concat(J.join(`
57
- `))}throw B}},S.match=function A(I,R,B){P(I,R,B,A,"match")},S.doesNotMatch=function A(I,R,B){P(I,R,B,A,"doesNotMatch")},S.strict=b(G,S,{equal:S.strictEqual,deepEqual:S.deepStrictEqual,notEqual:S.notStrictEqual,notDeepEqual:S.notDeepStrictEqual}),S.strict.strict=S.strict,Ce.exports}function uf(){return no||(no=1,function(t,f){var m=ie();function s(l){m(typeof l=="string","the list of characters must be a string!");var o=dt.byteLength(l);return function(n){m(typeof(n=n||10)=="number"&&n>=0,"the length of the random string must be a number!");for(var i="",u=0;u<n;u++)i+=l[Math.floor(o*Math.random())];return i}}(f=t.exports=s("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")).base62=f,f.base36=s("abcdefghijklmnopqrstuvwxyz0123456789"),f.base10=s("0123456789"),f.create=s}(Me,Me.exports)),Me.exports}var oo,io,so,ao,Fe,uo,fe={exports:{}},he={exports:{}};function cf(){if(oo)return he.exports;oo=1;var t=Vt(),f=t.randomBytes===t.pseudoRandomBytes?1:3;function m(s,l,o){t.randomBytes(s,function(n,i){return n?--l?void setTimeout(m.bind(null,s,l,o),10):o(n):o(null,i)})}return he.exports=function(s,l){if(l!==void 0&&typeof l!="function")throw new TypeError("argument callback must be a function");if(!l&&!xc.Promise)throw new TypeError("argument callback is required");return l?m(s,f,l):new Promise(function(o,n){m(s,f,function(i,u){if(i)return n(i);o(u)})})},he.exports.sync=function(s){for(var l=null,o=0;o<f;o++)try{return t.randomBytes(s)}catch(n){l=n}throw l},he.exports}function lf(){if(ao)return so;ao=1;var t=Vt();return so=function(f,m){var s=String(f),l=String(m),o=t.pseudoRandomBytes(32);return function(n,i){if(n.length!==i.length)return!1;if(t.timingSafeEqual)return t.timingSafeEqual(n,i);for(var u=0;u<n.length;u++)if(n[u]!==i[u])return!1;return!0}(t.createHmac("sha256",o).update(s).digest(),t.createHmac("sha256",o).update(l).digest())&&f===m}}function ff(){if(uo)return Fe;uo=1;var t=uf(),f=function(){if(io)return fe.exports;io=1;var u=cf(),r=/=+$/,e=/\+/g,a=/\//g;function p(d,b){u(d,function(g,c){if(g)return b(g);b(null,h(c))})}function h(d){return d.toString("base64").replace(r,"").replace(e,"-").replace(a,"_")}return fe.exports=function(d,b){if(b!==void 0&&typeof b!="function")throw new TypeError("argument callback must be a function");if(!b&&!xc.Promise)throw new TypeError("argument callback is required");return b?p(d,b):new Promise(function(g,c){p(d,function(y,v){if(y)return c(y);g(v)})})},fe.exports.sync=function(d){return h(u.sync(d))},fe.exports}(),m=lf(),s=Vt(),l=/=/g,o=/\+/g,n=/\//g;function i(u){if(!(this instanceof i))return new i(u);var r=u||{},e=r.saltLength!==void 0?r.saltLength:8;if(typeof e!="number"||!isFinite(e)||e<1)throw new TypeError("option saltLength must be finite number > 1");var a=r.secretLength!==void 0?r.secretLength:18;if(typeof a!="number"||!isFinite(a)||a<1)throw new TypeError("option secretLength must be finite number > 1");this.saltLength=e,this.secretLength=a}return Fe=i,i.prototype.create=function(u){if(!u||typeof u!="string")throw new TypeError("argument secret is required");return this._tokenize(u,t(this.saltLength))},i.prototype.secret=function(u){return f(this.secretLength,u)},i.prototype.secretSync=function(){return f.sync(this.secretLength)},i.prototype._tokenize=function(u,r){return r+"-"+(e=r+"-"+u,s.createHash("sha1").update(e,"ascii").digest("base64").replace(o,"-").replace(n,"_").replace(l,""));var e},i.prototype.verify=function(u,r){if(!u||typeof u!="string"||!r||typeof r!="string")return!1;var e=r.indexOf("-");if(e===-1)return!1;var a=r.substr(0,e),p=this._tokenize(u,a);return m(r,p)},Fe}var co,lo,fo,ho,po,mo,yo,go,vo,bo={};function hf(){return lo?co:(lo=1,co=t=>encodeURIComponent(t).replace(/[!'()*]/g,f=>`%${f.charCodeAt(0).toString(16).toUpperCase()}`))}function pf(){if(ho)return fo;ho=1;var t="%[a-f0-9]{2}",f=new RegExp("("+t+")|([^%]+?)","gi"),m=new RegExp("("+t+")+","gi");function s(o,n){try{return[decodeURIComponent(o.join(""))]}catch{}if(o.length===1)return o;n=n||1;var i=o.slice(0,n),u=o.slice(n);return Array.prototype.concat.call([],s(i),s(u))}function l(o){try{return decodeURIComponent(o)}catch{for(var n=o.match(f)||[],i=1;i<n.length;i++)n=(o=s(n,i).join("")).match(f)||[];return o}}return fo=function(o){if(typeof o!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof o+"`");try{return o=o.replace(/\+/g," "),decodeURIComponent(o)}catch{return function(i){for(var u={"%FE%FF":"��","%FF%FE":"��"},r=m.exec(i);r;){try{u[r[0]]=decodeURIComponent(r[0])}catch{var e=l(r[0]);e!==r[0]&&(u[r[0]]=e)}r=m.exec(i)}u["%C2"]="�";for(var a=Object.keys(u),p=0;p<a.length;p++){var h=a[p];i=i.replace(new RegExp(h,"g"),u[h])}return i}(o)}}}function df(){return mo?po:(mo=1,po=(t,f)=>{if(typeof t!="string"||typeof f!="string")throw new TypeError("Expected the arguments to be of type `string`");if(f==="")return[t];const m=t.indexOf(f);return m===-1?[t]:[t.slice(0,m),t.slice(m+f.length)]})}function mf(){return vo||(vo=1,function(t){const f=hf(),m=pf(),s=df(),l=go?yo:(go=1,yo=function(h,d){for(var b={},g=Object.keys(h),c=Array.isArray(d),y=0;y<g.length;y++){var v=g[y],S=h[v];(c?d.indexOf(v)!==-1:d(v,S,h))&&(b[v]=S)}return b});function o(h){if(typeof h!="string"||h.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function n(h,d){return d.encode?d.strict?f(h):encodeURIComponent(h):h}function i(h,d){return d.decode?m(h):h}function u(h){return Array.isArray(h)?h.sort():typeof h=="object"?u(Object.keys(h)).sort((d,b)=>Number(d)-Number(b)).map(d=>h[d]):h}function r(h){const d=h.indexOf("#");return d!==-1&&(h=h.slice(0,d)),h}function e(h){const d=(h=r(h)).indexOf("?");return d===-1?"":h.slice(d+1)}function a(h,d){return d.parseNumbers&&!Number.isNaN(Number(h))&&typeof h=="string"&&h.trim()!==""?h=Number(h):!d.parseBooleans||h===null||h.toLowerCase()!=="true"&&h.toLowerCase()!=="false"||(h=h.toLowerCase()==="true"),h}function p(h,d){o((d=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},d)).arrayFormatSeparator);const b=function(c){let y;switch(c.arrayFormat){case"index":return(v,S,w)=>{y=/\[(\d*)\]$/.exec(v),v=v.replace(/\[\d*\]$/,""),y?(w[v]===void 0&&(w[v]={}),w[v][y[1]]=S):w[v]=S};case"bracket":return(v,S,w)=>{y=/(\[\])$/.exec(v),v=v.replace(/\[\]$/,""),y?w[v]!==void 0?w[v]=[].concat(w[v],S):w[v]=[S]:w[v]=S};case"comma":case"separator":return(v,S,w)=>{const _=typeof S=="string"&&S.includes(c.arrayFormatSeparator),M=typeof S=="string"&&!_&&i(S,c).includes(c.arrayFormatSeparator);S=M?i(S,c):S;const z=_||M?S.split(c.arrayFormatSeparator).map(k=>i(k,c)):S===null?S:i(S,c);w[v]=z};default:return(v,S,w)=>{w[v]!==void 0?w[v]=[].concat(w[v],S):w[v]=S}}}(d),g=Object.create(null);if(typeof h!="string"||!(h=h.trim().replace(/^[?#&]/,"")))return g;for(const c of h.split("&")){if(c==="")continue;let[y,v]=s(d.decode?c.replace(/\+/g," "):c,"=");v=v===void 0?null:["comma","separator"].includes(d.arrayFormat)?v:i(v,d),b(i(y,d),v,g)}for(const c of Object.keys(g)){const y=g[c];if(typeof y=="object"&&y!==null)for(const v of Object.keys(y))y[v]=a(y[v],d);else g[c]=a(y,d)}return d.sort===!1?g:(d.sort===!0?Object.keys(g).sort():Object.keys(g).sort(d.sort)).reduce((c,y)=>{const v=g[y];return v&&typeof v=="object"&&!Array.isArray(v)?c[y]=u(v):c[y]=v,c},Object.create(null))}t.extract=e,t.parse=p,t.stringify=(h,d)=>{if(!h)return"";o((d=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},d)).arrayFormatSeparator);const b=v=>d.skipNull&&h[v]==null||d.skipEmptyString&&h[v]==="",g=function(v){switch(v.arrayFormat){case"index":return S=>(w,_)=>{const M=w.length;return _===void 0||v.skipNull&&_===null||v.skipEmptyString&&_===""?w:_===null?[...w,[n(S,v),"[",M,"]"].join("")]:[...w,[n(S,v),"[",n(M,v),"]=",n(_,v)].join("")]};case"bracket":return S=>(w,_)=>_===void 0||v.skipNull&&_===null||v.skipEmptyString&&_===""?w:_===null?[...w,[n(S,v),"[]"].join("")]:[...w,[n(S,v),"[]=",n(_,v)].join("")];case"comma":case"separator":return S=>(w,_)=>_==null||_.length===0?w:w.length===0?[[n(S,v),"=",n(_,v)].join("")]:[[w,n(_,v)].join(v.arrayFormatSeparator)];default:return S=>(w,_)=>_===void 0||v.skipNull&&_===null||v.skipEmptyString&&_===""?w:_===null?[...w,n(S,v)]:[...w,[n(S,v),"=",n(_,v)].join("")]}}(d),c={};for(const v of Object.keys(h))b(v)||(c[v]=h[v]);const y=Object.keys(c);return d.sort!==!1&&y.sort(d.sort),y.map(v=>{const S=h[v];return S===void 0?"":S===null?n(v,d):Array.isArray(S)?S.reduce(g(v),[]).join("&"):n(v,d)+"="+n(S,d)}).filter(v=>v.length>0).join("&")},t.parseUrl=(h,d)=>{d=Object.assign({decode:!0},d);const[b,g]=s(h,"#");return Object.assign({url:b.split("?")[0]||"",query:p(e(h),d)},d&&d.parseFragmentIdentifier&&g?{fragmentIdentifier:i(g,d)}:{})},t.stringifyUrl=(h,d)=>{d=Object.assign({encode:!0,strict:!0},d);const b=r(h.url).split("?")[0]||"",g=t.extract(h.url),c=t.parse(g,{sort:!1}),y=Object.assign(c,h.query);let v=t.stringify(y,d);v&&(v=`?${v}`);let S=function(w){let _="";const M=w.indexOf("#");return M!==-1&&(_=w.slice(M)),_}(h.url);return h.fragmentIdentifier&&(S=`#${n(h.fragmentIdentifier,d)}`),`${b}${v}${S}`},t.pick=(h,d,b)=>{b=Object.assign({parseFragmentIdentifier:!0},b);const{url:g,query:c,fragmentIdentifier:y}=t.parseUrl(h,b);return t.stringifyUrl({url:g,query:l(c,d),fragmentIdentifier:y},b)},t.exclude=(h,d,b)=>{const g=Array.isArray(d)?c=>!d.includes(c):(c,y)=>!d(c,y);return t.pick(h,g,b)}}(bo)),bo}var wo,Ut={},qt={},Eo={},Wt={};function Fc(){return wo?Wt:(wo=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.Emitter=class{constructor(){this._=[],this.$=Object.create(null)}on(t,f){(this.$[t]=this.$[t]||[]).push(f)}off(t,f){const m=this.$[t];m&&m.splice(m.indexOf(f)>>>0,1)}each(t){this._.push(t)}none(t){this._.splice(this._.indexOf(t)>>>0,1)}emit(t,...f){const m=this.$[t];m&&m.slice().forEach(s=>s(...f)),this._.slice().forEach(s=>s({type:t,args:f}))}},Wt.once=function(t,f,m){function s(...l){return t.off(f,s),m(...l)}return t.on(f,s),s},Wt)}var _o,Be={},So,Gt={},Oo,pe={};function be(){if(Oo)return pe;Oo=1,Object.defineProperty(pe,"__esModule",{value:!0});class t{constructor(m){this.object=Object.create(null),m&&this.extend(m)}set(m,s){this.object[m.toLowerCase()]=Array.isArray(s)?s.map(String):String(s)}append(m,s){const l=m.toLowerCase(),o=this.object[l];if(o===void 0)Array.isArray(s)?this.object[l]=s.map(String):this.object[l]=String(s);else if(Array.isArray(o))if(Array.isArray(s))for(const n of s)o.push(String(n));else o.push(String(s));else this.object[l]=Array.isArray(s)?[o,...s.map(String)]:[o,String(s)]}get(m){const s=this.object[m.toLowerCase()];return s===void 0?null:Array.isArray(s)?s[0]:s}getAll(m){const s=this.object[m.toLowerCase()];return s===void 0?[]:Array.isArray(s)?[...s]:[s]}has(m){return m.toLowerCase()in this.object}delete(m){delete this.object[m.toLowerCase()]}*entries(){yield*Object.entries(this.object)}*keys(){yield*Object.keys(this.object)}*values(){yield*Object.values(this.object)}clear(){this.object=Object.create(null)}asObject(){return Object.assign(Object.create(null),this.object)}extend(m){if(Symbol.iterator in m)for(const[s,l]of m)this.append(s,l);else if(m instanceof t)for(const[s,l]of m.entries())this.append(s,l);else for(const s of Object.keys(m)){const l=m[s];l!==void 0&&this.append(s,l)}}clone(){return new t(this.object)}}return pe.Headers=t,pe}var jo,Jt={};function we(){if(jo)return Jt;jo=1,Object.defineProperty(Jt,"__esModule",{value:!0});const t=Fc();class f extends t.Emitter{constructor(){super(),this.aborted=!1,t.once(this,"abort",()=>this.aborted=!0)}}return Jt.Signal=f,Jt.AbortController=class{constructor(){this.signal=new f}abort(){this.signal.emit("abort")}},Jt}var xo,ko,To={};function Bc(){return xo||(xo=1,function(t){function f(m){const{$rawBody:s}=m;if(s===t.kBodyUsed)throw new TypeError("Body already used");if(s===t.kBodyDestroyed)throw new TypeError("Body is destroyed");return s}Object.defineProperty(t,"__esModule",{value:!0}),t.kBodyUsed=Symbol("bodyUsed"),t.kBodyDestroyed=Symbol("bodyDestroyed"),t.useRawBody=function(m){const s=f(m);return s===null?null:(m.$rawBody=t.kBodyUsed,s)},t.getRawBody=f}(To)),To}function Ao(){return ko||(ko=1,function(t){function f(b){for(var g in b)t.hasOwnProperty(g)||(t[g]=b[g])}Object.defineProperty(t,"__esModule",{value:!0});const m=Fc(),s=(_o||(_o=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.byteLength=function(b){if(!b)return 0;for(var g=(b=b.toString()).length,c=b.length;c--;){var y=b.charCodeAt(c);56320<=y&&y<=57343&&c--,127<y&&y<=2047?g++:2047<y&&y<=65535&&(g+=2)}return g}),Be),l=(So||(So=1,Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.expectNever=Gt.expectType=void 0,Gt.expectType=b=>{},Gt.expectNever=b=>{throw new TypeError("Unexpected value: "+b)}),Gt),o=be(),n=we(),i=Bc();function u(b){const g=new DataView(b);return new TextDecoder("utf-8").decode(g)}function r(b){return new TextEncoder().encode(b)}function e(b){const g=b.getReader();return function c(y){return g.read().then(v=>{if(v.done)return y;const S=v.value,w=new Uint8Array(y.byteLength+S.byteLength);return w.set(y,0),w.set(S,y.byteLength),c(w)})}(new Uint8Array(0))}f(be()),f(we());class a{constructor(g){const c=g===void 0?null:g;this.$rawBody=c}get bodyUsed(){return this.$rawBody===i.kBodyUsed||this.$rawBody===i.kBodyDestroyed}json(){return this.text().then(g=>JSON.parse(g))}text(){const g=i.useRawBody(this);return g===null?Promise.resolve(""):typeof g=="string"?Promise.resolve(g):g instanceof ArrayBuffer?Promise.resolve(u(g)):e(g).then(u)}arrayBuffer(){const g=i.useRawBody(this);return g===null?Promise.resolve(new ArrayBuffer(0)):g instanceof ArrayBuffer?Promise.resolve(g):typeof g=="string"?Promise.resolve(r(g).buffer):e(g)}readableStream(){const g=i.useRawBody(this);return g===null?new ReadableStream({start(c){c.close()}}):typeof g=="string"?new ReadableStream({start(c){c.enqueue(r(g)),c.close()}}):g instanceof ArrayBuffer?new ReadableStream({start(c){c.enqueue(new Uint8Array(g)),c.close()}}):g}clone(){const g=i.getRawBody(this);if(g instanceof ReadableStream){const[c,y]=g.tee();return this.$rawBody=c,new a(y)}return new a(g)}destroy(){const g=i.getRawBody(this);return this.$rawBody=i.kBodyDestroyed,g instanceof ReadableStream?g.cancel():Promise.resolve()}}t.Body=a;class p extends a{constructor(g,c={}){const y=typeof g=="string"?void 0:g.clone(),v=c.body||(y?i.getRawBody(y):null),S=y&&!c.headers?y.headers:d(v,c.headers,c.omitDefaultHeaders===!0);super(v),this.url=typeof g=="string"?g:g.url,this.method=c.method||y&&y.method||"GET",this.signal=c.signal||y&&y.signal||new n.Signal,this.headers=S,this.trailer=y&&!c.trailer?y.trailer:Promise.resolve(c.trailer).then(w=>new o.Headers(w)),m.once(this.signal,"abort",()=>this.destroy())}clone(){const g=super.clone();return new p(this.url,{body:i.getRawBody(g),headers:this.headers.clone(),omitDefaultHeaders:!0,method:this.method,signal:this.signal,trailer:this.trailer.then(c=>c.clone())})}}t.Request=p;class h extends a{get ok(){return this.status>=200&&this.status<300}constructor(g,c={}){const y=d(g,c.headers,c.omitDefaultHeaders===!0);super(g),this.status=c.status||200,this.statusText=c.statusText||"",this.headers=y,this.trailer=Promise.resolve(c.trailer).then(v=>new o.Headers(v))}clone(){const g=super.clone();return new h(i.getRawBody(g),{status:this.status,statusText:this.statusText,headers:this.headers.clone(),omitDefaultHeaders:!0,trailer:this.trailer.then(c=>c.clone())})}}function d(b,g,c){const y=new o.Headers(g);if(b==null)return y;if(typeof b=="string")return c||y.has("Content-Type")||y.set("Content-Type","text/plain"),c||y.has("Content-Length")||y.set("Content-Length",s.byteLength(b).toString()),y;if(c||y.has("Content-Type")||y.set("Content-Type","application/octet-stream"),b instanceof ArrayBuffer)return c||y.has("Content-Length")||y.set("Content-Length",String(b.byteLength)),y;if(b instanceof ReadableStream)return y;throw l.expectType(b),new TypeError("Unknown body type")}t.Response=h}(Eo)),Eo}var Ro,wt={},Io,Po,No,Xt={};function rn(){return Io||(Io=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.toFetch=void 0,Xt.toFetch=function(t,f){function m(){throw new TypeError("Invalid middleware stack, missing transport function")}return function(...s){const l=s.length===1&&s[0]instanceof f?s[0]:new f(...s);return t(l,m)}}),Xt}function yf(){return Po||(Po=1,function(t){var f=qt&&qt.__createBinding||(Object.create?function(n,i,u,r){r===void 0&&(r=u),Object.defineProperty(n,r,{enumerable:!0,get:function(){return i[u]}})}:function(n,i,u,r){r===void 0&&(r=u),n[r]=i[u]}),m=qt&&qt.__exportStar||function(n,i){for(var u in n)u==="default"||Object.prototype.hasOwnProperty.call(i,u)||f(i,n,u)};Object.defineProperty(t,"__esModule",{value:!0}),t.fetch=t.middleware=t.XhrResponse=t.transport=t.Request=void 0;const s=Ao();Object.defineProperty(t,"Request",{enumerable:!0,get:function(){return s.Request}});const l=function(){if(Ro)return wt;Ro=1,Object.defineProperty(wt,"__esModule",{value:!0});const n=Ao(),i=Bc();class u extends n.Response{constructor(c,y){super(c,y),this.url=y.url}}wt.XhrResponse=u;class r extends Error{constructor(c,y){super(y),this.request=c,this.code="EBLOCKED"}}wt.BlockedRequestError=r;class e extends Error{constructor(c,y){super(y),this.request=c,this.code="EINVALID"}}wt.InvalidRequestError=e;class a extends Error{constructor(c,y){super(y),this.request=c,this.code="EUNAVAILABLE"}}wt.ConnectionError=a;class p extends Error{constructor(c,y){super(y),this.request=c,this.code="ECSP"}}wt.CSPError=p;class h extends Error{constructor(c,y){super(y),this.request=c,this.code="ETYPE"}}wt.TypeError=h;class d extends Error{constructor(c,y){super(y),this.request=c,this.code="EABORT"}}function b(g){const c=[],y=g.split(/\r?\n/);for(const v of y)if(v){const S=v.indexOf(":"),w=v.substr(0,S).trim(),_=v.substr(S+1).trim();c.push([w,_])}return c}return wt.AbortError=d,wt.transport=function(g={}){return function(c){return new Promise(function(y,v){const S=g.type||"arraybuffer",w=c.method.toUpperCase();if(c.signal.aborted)return v(new d(c,"Request has been aborted"));if(window.location.protocol==="https:"&&c.url.startsWith("http:"))return v(new r(c,`The connection to "${c.url}" is blocked`));if(/^https?\:\/*(?:[~#\\\?;\:]|$)/.test(c.url))return v(new e(c,`Refusing to connect to "${c.url}"`));const _=new XMLHttpRequest;let M=!1;function z(){const k=new u(S==="text"?_.responseText:_.response,{status:_.status===1223?204:_.status,statusText:_.statusText,headers:b(_.getAllResponseHeaders()),omitDefaultHeaders:!0,url:_.responseURL});return c.signal.emit("responseStarted"),c.signal.emit("responseEnded"),y(k)}_.onload=z,_.onabort=z,_.onerror=function(){return v(new a(c,`Unable to connect to "${c.url}"`))},_.onprogress=k=>{c.signal.emit("requestBytes",k.loaded)},w!=="GET"&&w!=="HEAD"&&_.upload&&(M=!0,_.upload.onprogress=k=>{c.signal.emit("responseBytes",k.loaded)},_.upload.onloadend=()=>{c.signal.emit("requestEnded")});try{_.open(w,c.url)}catch{return v(new p(c,`Refused to connect to "${c.url}"`))}if(g.withCredentials&&(_.withCredentials=!0),g.overrideMimeType&&_.overrideMimeType(g.overrideMimeType),S!=="text")try{_.responseType=S}finally{if(_.responseType!==S)return v(new h(c,`Unsupported type: ${S}`))}for(const[k,E]of c.headers.entries())if(Array.isArray(E))for(const j of E)_.setRequestHeader(k,j);else _.setRequestHeader(k,E);c.signal.emit("requestStarted"),M||c.signal.emit("requestEnded"),c.signal.on("abort",()=>_.abort()),_.send(i.useRawBody(c))})}},wt}();Object.defineProperty(t,"transport",{enumerable:!0,get:function(){return l.transport}}),Object.defineProperty(t,"XhrResponse",{enumerable:!0,get:function(){return l.XhrResponse}});const o=rn();m(rn(),t),m(we(),t),m(be(),t),t.middleware=l.transport(),t.fetch=o.toFetch(t.middleware,s.Request)}(qt)),qt}var Lo,ct={};function Dt(){return Lo||(Lo=1,ct.endianness=function(){return"LE"},ct.hostname=function(){return typeof location<"u"?location.hostname:""},ct.loadavg=function(){return[]},ct.uptime=function(){return 0},ct.freemem=function(){return Number.MAX_VALUE},ct.totalmem=function(){return Number.MAX_VALUE},ct.cpus=function(){return[]},ct.type=function(){return"Browser"},ct.release=function(){return typeof navigator<"u"?navigator.appVersion:""},ct.networkInterfaces=ct.getNetworkInterfaces=function(){return{}},ct.arch=function(){return"javascript"},ct.platform=function(){return"browser"},ct.tmpdir=ct.tmpDir=function(){return"/tmp"},ct.EOL=`
58
- `,ct.homedir=function(){return"/"}),ct}var Ue,$o,Mo={},de={};function yt(){if($o)return Ue;function t(i){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},t(i)}function f(i,u,r){return u=o(u),function(e,a){if(a&&(t(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}(e)}(i,s()?Reflect.construct(u,r||[],o(i).constructor):u.apply(i,r))}function m(i){var u=typeof Map=="function"?new Map:void 0;return m=function(r){if(r===null||!function(a){try{return Function.toString.call(a).indexOf("[native code]")!==-1}catch{return typeof a=="function"}}(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(u!==void 0){if(u.has(r))return u.get(r);u.set(r,e)}function e(){return function(a,p,h){if(s())return Reflect.construct.apply(null,arguments);var d=[null];d.push.apply(d,p);var b=new(a.bind.apply(a,d));return h&&l(b,h.prototype),b}(r,arguments,o(this).constructor)}return e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),l(e,r)},m(i)}function s(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s=function(){return!!i})()}function l(i,u){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,e){return r.__proto__=e,r},l(i,u)}function o(i){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(u){return u.__proto__||Object.getPrototypeOf(u)},o(i)}$o=1;var n=function(i){function u(e){var a;return function(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}(this,u),a=f(this,u,[`Format functions must be synchronous taking a two arguments: (info, opts)
59
- Found: `.concat(e.toString().split(`
60
- `)[0],`
61
- `)]),Error.captureStackTrace(a,u),a}return function(e,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),a&&l(e,a)}(u,i),r=u,Object.defineProperty(r,"prototype",{writable:!1}),r;var r}(m(Error));return Ue=function(i){if(i.length>2)throw new n(i);function u(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=e}function r(e){return new u(e)}return u.prototype.transform=i,r.Format=u,r},Ue}var Co,Do,Fo,Bo,Uo,Qt={exports:{}},qo={exports:{}},Go={exports:{}},zo={exports:{}};function gf(){return Co||(Co=1,function(t){var f={};t.exports=f;var m={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(m).forEach(function(s){var l=m[s],o=f[s]=[];o.open="\x1B["+l[0]+"m",o.close="\x1B["+l[1]+"m"})}(zo)),zo.exports}function vf(){return Fo?Do:(Fo=1,Do=function(t,f){var m=(f=f||Q.argv||[]).indexOf("--"),s=/^-{1,2}/.test(t)?"":"--",l=f.indexOf(s+t);return l!==-1&&(m===-1||l<m)})}function bf(){if(Uo)return Bo;Uo=1;var t=Dt(),f=vf(),m={},s=void 0;function l(o){var n=function(i){if(s===!1)return 0;if(f("color=16m")||f("color=full")||f("color=truecolor"))return 3;if(f("color=256"))return 2;if(i&&!i.isTTY&&s!==!0)return 0;var u=s?1:0;if(Q.platform==="win32"){var r=t.release().split(".");return Number(Q.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in m)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(a){return a in m})||m.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in m)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(m.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in m){var e=parseInt((m.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(m.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(m.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(m.TERM)||"COLORTERM"in m?1:u}(o);return function(i){return i!==0&&{level:i,hasBasic:!0,has256:i>=2,has16m:i>=3}}(n)}return f("no-color")||f("no-colors")||f("color=false")?s=!1:(f("color")||f("colors")||f("color=true")||f("color=always"))&&(s=!0),"FORCE_COLOR"in m&&(s=m.FORCE_COLOR.length===0||parseInt(m.FORCE_COLOR,10)!==0),Bo={supportsColor:l,stdout:l(Q.stdout),stderr:l(Q.stderr)}}var Zo,Ho={exports:{}},Vo,Yo={exports:{}},Ko,Wo={exports:{}},Jo,Xo={exports:{}},Qo,ti={exports:{}},ei,ri,ni,oi={exports:{}};function wf(){return ri||(ri=1,function(t){var f={};t.exports=f,f.themes={};var m=lt(),s=f.styles=gf(),l=Object.defineProperties,o=new RegExp(/[\r\n]+/g);f.supportsColor=bf().supportsColor,f.enabled===void 0&&(f.enabled=f.supportsColor()!==!1),f.enable=function(){f.enabled=!0},f.disable=function(){f.enabled=!1},f.stripColors=f.strip=function(d){return(""+d).replace(/\x1B\[\d+m/g,"")},f.stylize=function(d,b){if(!f.enabled)return d+"";var g=s[b];return!g&&b in f?f[b](d):g.open+d+g.close};var n=/[|\\{}()[\]^$+*?.]/g;function i(d){var b=function g(){return a.apply(g,arguments)};return b._styles=d,b.__proto__=e,b}var u,r=(u={},s.grey=s.gray,Object.keys(s).forEach(function(d){s[d].closeRe=new RegExp(function(b){if(typeof b!="string")throw new TypeError("Expected a string");return b.replace(n,"\\$&")}(s[d].close),"g"),u[d]={get:function(){return i(this._styles.concat(d))}}}),u),e=l(function(){},r);function a(){var d=Array.prototype.slice.call(arguments).map(function(v){return v!=null&&v.constructor===String?v:m.inspect(v)}).join(" ");if(!f.enabled||!d)return d;for(var b=d.indexOf(`
62
- `)!=-1,g=this._styles,c=g.length;c--;){var y=s[g[c]];d=y.open+d.replace(y.closeRe,y.open)+y.close,b&&(d=d.replace(o,function(v){return y.close+v+y.open}))}return d}f.setTheme=function(d){if(typeof d!="string")for(var b in d)(function(g){f[g]=function(c){if(typeof d[g]=="object"){var y=c;for(var v in d[g])y=f[d[g][v]](y);return y}return f[d[g]](c)}})(b);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var p=function(d,b){var g=b.split("");return(g=g.map(d)).join("")};for(var h in f.trap=(Zo||(Zo=1,Ho.exports=function(d,b){var g="";d=(d=d||"Run the trap, drop the bass").split("");var c={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return d.forEach(function(y){y=y.toLowerCase();var v=c[y]||[" "],S=Math.floor(Math.random()*v.length);g+=c[y]!==void 0?c[y][S]:y}),g}),Ho.exports),f.zalgo=(Vo||(Vo=1,Yo.exports=function(d,b){d=d||" he is here ";var g={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},c=[].concat(g.up,g.down,g.mid);function y(S){return Math.floor(Math.random()*S)}function v(S){var w=!1;return c.filter(function(_){w=_===S}),w}return function(S,w){var _,M,z="";for(M in(w=w||{}).up=w.up===void 0||w.up,w.mid=w.mid===void 0||w.mid,w.down=w.down===void 0||w.down,w.size=w.size!==void 0?w.size:"maxi",S=S.split(""))if(!v(M)){switch(z+=S[M],_={up:0,down:0,mid:0},w.size){case"mini":_.up=y(8),_.mid=y(2),_.down=y(8);break;case"maxi":_.up=y(16)+3,_.mid=y(4)+1,_.down=y(64)+3;break;default:_.up=y(8)+1,_.mid=y(6)/2,_.down=y(8)+1}var k=["up","mid","down"];for(var E in k)for(var j=k[E],x=0;x<=_[j];x++)w[j]&&(z+=g[j][y(g[j].length)])}return z}(d,b)}),Yo.exports),f.maps={},f.maps.america=(Ko||(Ko=1,Wo.exports=function(d){return function(b,g,c){if(b===" ")return b;switch(g%3){case 0:return d.red(b);case 1:return d.white(b);case 2:return d.blue(b)}}}),Wo.exports)(f),f.maps.zebra=(Jo||(Jo=1,Xo.exports=function(d){return function(b,g,c){return g%2==0?b:d.inverse(b)}}),Xo.exports)(f),f.maps.rainbow=(Qo||(Qo=1,ti.exports=function(d){var b=["red","yellow","green","blue","magenta"];return function(g,c,y){return g===" "?g:d[b[c++%b.length]](g)}}),ti.exports)(f),f.maps.random=(ei||(ei=1,oi.exports=function(d){var b=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(g,c,y){return g===" "?g:d[b[Math.round(Math.random()*(b.length-2))]](g)}}),oi.exports)(f),f.maps)(function(d){f[d]=function(b){return p(f.maps[d],b)}})(h);l(f,function(){var d={};return Object.keys(r).forEach(function(b){d[b]={get:function(){return i([b])}}}),d}())}(Go)),Go.exports}function Uc(){return ni||(ni=1,function(t){var f=wf();t.exports=f}(qo)),qo.exports}var ii,si={},ai={},qe={},ui,Ge={},ci,li,fi,hi,ze,pi,di,mi,Ze={};function Ef(){return li||(li=1,t=ai,Object.defineProperty(t,"cli",{value:(ii||(ii=1,qe.levels={error:0,warn:1,help:2,data:3,info:4,debug:5,prompt:6,verbose:7,input:8,silly:9},qe.colors={error:"red",warn:"yellow",help:"cyan",data:"grey",info:"green",debug:"blue",prompt:"grey",verbose:"cyan",input:"grey",silly:"magenta"}),qe)}),Object.defineProperty(t,"npm",{value:(ui||(ui=1,Ge.levels={error:0,warn:1,info:2,http:3,verbose:4,debug:5,silly:6},Ge.colors={error:"red",warn:"yellow",info:"green",http:"green",verbose:"cyan",debug:"blue",silly:"magenta"}),Ge)}),Object.defineProperty(t,"syslog",{value:(ci||(ci=1,Ze.levels={emerg:0,alert:1,crit:2,error:3,warning:4,notice:5,info:6,debug:7},Ze.colors={emerg:"red",alert:"yellow",crit:"red",error:"red",warning:"red",notice:"yellow",info:"green",debug:"blue"}),Ze)})),ai;var t}function at(){return fi||(fi=1,t=si,Object.defineProperty(t,"LEVEL",{value:Symbol.for("level")}),Object.defineProperty(t,"MESSAGE",{value:Symbol.for("message")}),Object.defineProperty(t,"SPLAT",{value:Symbol.for("splat")}),Object.defineProperty(t,"configs",{value:Ef()})),si;var t}function nn(){if(hi)return Qt.exports;function t(r){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(r)}function f(r,e){for(var a=0;a<e.length;a++){var p=e[a];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(r,m(p.key),p)}}function m(r){var e=function(a,p){if(t(a)!="object"||!a)return a;var h=a[Symbol.toPrimitive];if(h!==void 0){var d=h.call(a,p);if(t(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(r,"string");return t(e)=="symbol"?e:e+""}hi=1;var s=Uc(),l=at(),o=l.LEVEL,n=l.MESSAGE;s.enabled=!0;var i=/\s+/,u=function(){function r(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(function(d,b){if(!(d instanceof b))throw new TypeError("Cannot call a class as a function")})(this,r),h.colors&&this.addColors(h.colors),this.options=h}return e=r,p=[{key:"addColors",value:function(h){var d=Object.keys(h).reduce(function(b,g){return b[g]=i.test(h[g])?h[g].split(i):h[g],b},{});return r.allColors=Object.assign({},r.allColors||{},d),r.allColors}}],(a=[{key:"addColors",value:function(h){return r.addColors(h)}},{key:"colorize",value:function(h,d,b){if(b===void 0&&(b=d),!Array.isArray(r.allColors[h]))return s[r.allColors[h]](b);for(var g=0,c=r.allColors[h].length;g<c;g++)b=s[r.allColors[h][g]](b);return b}},{key:"transform",value:function(h,d){return d.all&&typeof h[n]=="string"&&(h[n]=this.colorize(h[o],h.level,h[n])),(d.level||d.all||!d.message)&&(h.level=this.colorize(h[o],h.level)),(d.all||d.message)&&(h.message=this.colorize(h[o],h.level,h.message)),h}}])&&f(e.prototype,a),p&&f(e,p),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,a,p}();return Qt.exports=function(r){return new u(r)},Qt.exports.Colorizer=Qt.exports.Format=u,Qt.exports}function _f(){if(mi)return di;mi=1;var t=yt();return di=t(function(f){return f.message=" ".concat(f.message),f})}var yi,gi,me={exports:{}},te={exports:{}};function qc(){if(yi)return te.exports;function t(e){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t(e)}function f(e){return function(a){if(Array.isArray(a))return m(a)}(e)||function(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}(e)||function(a,p){if(a){if(typeof a=="string")return m(a,p);var h={}.toString.call(a).slice(8,-1);return h==="Object"&&a.constructor&&(h=a.constructor.name),h==="Map"||h==="Set"?Array.from(a):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?m(a,p):void 0}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
63
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function m(e,a){(a==null||a>e.length)&&(a=e.length);for(var p=0,h=Array(a);p<a;p++)h[p]=e[p];return h}function s(e,a){for(var p=0;p<a.length;p++){var h=a[p];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(e,l(h.key),h)}}function l(e){var a=function(p,h){if(t(p)!="object"||!p)return p;var d=p[Symbol.toPrimitive];if(d!==void 0){var b=d.call(p,h);if(t(b)!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}(e,"string");return t(a)=="symbol"?a:a+""}yi=1;var o=at(),n=o.configs,i=o.LEVEL,u=o.MESSAGE,r=function(){function e(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{levels:n.npm.levels};(function(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")})(this,e),this.paddings=e.paddingForLevels(d.levels,d.filler),this.options=d}return a=e,h=[{key:"getLongestLevel",value:function(d){var b=Object.keys(d).map(function(g){return g.length});return Math.max.apply(Math,f(b))}},{key:"paddingForLevel",value:function(d,b,g){var c=g+1-d.length,y=Math.floor(c/b.length);return"".concat(b).concat(b.repeat(y)).slice(0,c)}},{key:"paddingForLevels",value:function(d){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ",g=e.getLongestLevel(d);return Object.keys(d).reduce(function(c,y){return c[y]=e.paddingForLevel(y,b,g),c},{})}}],(p=[{key:"transform",value:function(d,b){return d.message="".concat(this.paddings[d[i]]).concat(d.message),d[u]&&(d[u]="".concat(this.paddings[d[i]]).concat(d[u])),d}}])&&s(a.prototype,p),h&&s(a,h),Object.defineProperty(a,"prototype",{writable:!1}),a;var a,p,h}();return te.exports=function(e){return new r(e)},te.exports.Padder=te.exports.Format=r,te.exports}function Sf(){if(gi)return me.exports;function t(r){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(r)}function f(r,e,a){return e&&function(p,h){for(var d=0;d<h.length;d++){var b=h[d];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,m(b.key),b)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function m(r){var e=function(a,p){if(t(a)!="object"||!a)return a;var h=a[Symbol.toPrimitive];if(h!==void 0){var d=h.call(a,p);if(t(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(r,"string");return t(e)=="symbol"?e:e+""}gi=1;var s=nn().Colorizer,l=qc().Padder,o=at(),n=o.configs,i=o.MESSAGE,u=function(){return f(function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")})(this,r),e.levels||(e.levels=n.cli.levels),this.colorizer=new s(e),this.padder=new l(e),this.options=e},[{key:"transform",value:function(r,e){return this.colorizer.transform(this.padder.transform(r,e),e),r[i]="".concat(r.level,":").concat(r.message),r}}])}();return me.exports=function(r){return new u(r)},me.exports.Format=u,me.exports}var vi,bi,wi,ye={exports:{}};function Of(){if(vi)return ye.exports;vi=1;var t=yt();function f(s){if(s.every(m))return function(l){for(var o=l,n=0;n<s.length;n++)if(!(o=s[n].transform(o,s[n].options)))return!1;return o}}function m(s){if(typeof s.transform!="function")throw new Error(["No transform function found on format. Did you create a format instance?","const myFormat = format(formatFn);","const instance = myFormat();"].join(`
64
- `));return!0}return ye.exports=function(){for(var s=arguments.length,l=new Array(s),o=0;o<s;o++)l[o]=arguments[o];var n=t(f(l)),i=n();return i.Format=n.Format,i},ye.exports.cascade=f,ye.exports}function jf(){if(wi)return bi;function t(n){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},t(n)}function f(n,i,u){return(i=function(r){var e=function(a,p){if(t(a)!="object"||!a)return a;var h=a[Symbol.toPrimitive];if(h!==void 0){var d=h.call(a,p);if(t(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(a)}(r,"string");return t(e)=="symbol"?e:e+""}(i))in n?Object.defineProperty(n,i,{value:u,enumerable:!0,configurable:!0,writable:!0}):n[i]=u,n}wi=1;var m=yt(),s=at(),l=s.LEVEL,o=s.MESSAGE;return bi=m(function(n,i){var u=i.stack,r=i.cause;if(n instanceof Error){var e=Object.assign({},n,f(f(f({level:n.level},l,n[l]||n.level),"message",n.message),o,n[o]||n.message));return u&&(e.stack=n.stack),r&&(e.cause=n.cause),e}if(!(n.message instanceof Error))return n;var a=n.message;return Object.assign(n,a),n.message=a.message,n[o]=a.message,u&&(n.stack=a.stack),r&&(n.cause=a.cause),n})}var Ei,_i,Si,Oi,ji,xi,ki,He,Ti,Ai,Ri,Ii,Pi,Ve,Ni,Ye={exports:{}};function ce(){return Ei||(Ei=1,function(t,f){const{hasOwnProperty:m}=Object.prototype,s=p();s.configure=p,s.stringify=s,s.default=s,f.stringify=s,f.configure=p,t.exports=s;const l=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function o(h){return h.length<5e3&&!l.test(h)?`"${h}"`:JSON.stringify(h)}function n(h,d){if(h.length>200||d)return h.sort(d);for(let b=1;b<h.length;b++){const g=h[b];let c=b;for(;c!==0&&h[c-1]>g;)h[c]=h[c-1],c--;h[c]=g}return h}const i=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function u(h){return i.call(h)!==void 0&&h.length!==0}function r(h,d,b){h.length<b&&(b=h.length);const g=d===","?"":" ";let c=`"0":${g}${h[0]}`;for(let y=1;y<b;y++)c+=`${d}"${y}":${g}${h[y]}`;return c}function e(h,d){let b;if(m.call(h,d)){if(b=h[d],typeof b!="number")throw new TypeError(`The "${d}" argument must be of type number`);if(!Number.isInteger(b))throw new TypeError(`The "${d}" argument must be an integer`);if(b<1)throw new RangeError(`The "${d}" argument must be >= 1`)}return b===void 0?1/0:b}function a(h){return h===1?"1 item":`${h} items`}function p(h){const d=function(k){if(m.call(k,"strict")){const E=k.strict;if(typeof E!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(E)return j=>{let x="Object can not safely be stringified. Received type "+typeof j;throw typeof j!="function"&&(x+=` (${j.toString()})`),new Error(x)}}}(h={...h});d&&(h.bigint===void 0&&(h.bigint=!1),"circularValue"in h||(h.circularValue=Error));const b=function(k){if(m.call(k,"circularValue")){const E=k.circularValue;if(typeof E=="string")return`"${E}"`;if(E==null)return E;if(E===Error||E===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}(h),g=function(k,E){let j;if(m.call(k,E)&&(j=k[E],typeof j!="boolean"))throw new TypeError(`The "${E}" argument must be of type boolean`);return j===void 0||j}(h,"bigint"),c=function(k){let E;if(m.call(k,"deterministic")&&(E=k.deterministic,typeof E!="boolean"&&typeof E!="function"))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return E===void 0||E}(h),y=typeof c=="function"?c:void 0,v=e(h,"maximumDepth"),S=e(h,"maximumBreadth");function w(k,E,j,x,O,$){let N=E[k];switch(typeof N=="object"&&N!==null&&typeof N.toJSON=="function"&&(N=N.toJSON(k)),N=x.call(E,k,N),typeof N){case"string":return o(N);case"object":{if(N===null)return"null";if(j.indexOf(N)!==-1)return b;let P="",G=",";const A=$;if(Array.isArray(N)){if(N.length===0)return"[]";if(v<j.length+1)return'"[Array]"';j.push(N),O!==""&&(P+=`
65
- ${$+=O}`,G=`,
66
- ${$}`);const F=Math.min(N.length,S);let L=0;for(;L<F-1;L++){const Z=w(String(L),N,j,x,O,$);P+=Z!==void 0?Z:"null",P+=G}const U=w(String(L),N,j,x,O,$);return P+=U!==void 0?U:"null",N.length-1>S&&(P+=`${G}"... ${a(N.length-S-1)} not stringified"`),O!==""&&(P+=`
67
- ${A}`),j.pop(),`[${P}]`}let I=Object.keys(N);const R=I.length;if(R===0)return"{}";if(v<j.length+1)return'"[Object]"';let B="",V="";O!==""&&(G=`,
68
- ${$+=O}`,B=" ");const J=Math.min(R,S);c&&!u(N)&&(I=n(I,y)),j.push(N);for(let F=0;F<J;F++){const L=I[F],U=w(L,N,j,x,O,$);U!==void 0&&(P+=`${V}${o(L)}:${B}${U}`,V=G)}return R>S&&(P+=`${V}"...":${B}"${a(R-S)} not stringified"`,V=G),O!==""&&V.length>1&&(P=`
69
- ${$}${P}
70
- ${A}`),j.pop(),`{${P}}`}case"number":return isFinite(N)?String(N):d?d(N):"null";case"boolean":return N===!0?"true":"false";case"undefined":return;case"bigint":if(g)return String(N);default:return d?d(N):void 0}}function _(k,E,j,x,O,$){switch(typeof E=="object"&&E!==null&&typeof E.toJSON=="function"&&(E=E.toJSON(k)),typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(j.indexOf(E)!==-1)return b;const N=$;let P="",G=",";if(Array.isArray(E)){if(E.length===0)return"[]";if(v<j.length+1)return'"[Array]"';j.push(E),O!==""&&(P+=`
71
- ${$+=O}`,G=`,
72
- ${$}`);const R=Math.min(E.length,S);let B=0;for(;B<R-1;B++){const J=_(String(B),E[B],j,x,O,$);P+=J!==void 0?J:"null",P+=G}const V=_(String(B),E[B],j,x,O,$);return P+=V!==void 0?V:"null",E.length-1>S&&(P+=`${G}"... ${a(E.length-S-1)} not stringified"`),O!==""&&(P+=`
73
- ${N}`),j.pop(),`[${P}]`}j.push(E);let A="";O!==""&&(G=`,
74
- ${$+=O}`,A=" ");let I="";for(const R of x){const B=_(R,E[R],j,x,O,$);B!==void 0&&(P+=`${I}${o(R)}:${A}${B}`,I=G)}return O!==""&&I.length>1&&(P=`
75
- ${$}${P}
76
- ${N}`),j.pop(),`{${P}}`}case"number":return isFinite(E)?String(E):d?d(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(g)return String(E);default:return d?d(E):void 0}}function M(k,E,j,x,O){switch(typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(typeof E.toJSON=="function"){if(typeof(E=E.toJSON(k))!="object")return M(k,E,j,x,O);if(E===null)return"null"}if(j.indexOf(E)!==-1)return b;const $=O;if(Array.isArray(E)){if(E.length===0)return"[]";if(v<j.length+1)return'"[Array]"';j.push(E);let B=`
77
- ${O+=x}`;const V=`,
78
- ${O}`,J=Math.min(E.length,S);let F=0;for(;F<J-1;F++){const U=M(String(F),E[F],j,x,O);B+=U!==void 0?U:"null",B+=V}const L=M(String(F),E[F],j,x,O);return B+=L!==void 0?L:"null",E.length-1>S&&(B+=`${V}"... ${a(E.length-S-1)} not stringified"`),B+=`
79
- ${$}`,j.pop(),`[${B}]`}let N=Object.keys(E);const P=N.length;if(P===0)return"{}";if(v<j.length+1)return'"[Object]"';const G=`,
80
- ${O+=x}`;let A="",I="",R=Math.min(P,S);u(E)&&(A+=r(E,G,S),N=N.slice(E.length),R-=E.length,I=G),c&&(N=n(N,y)),j.push(E);for(let B=0;B<R;B++){const V=N[B],J=M(V,E[V],j,x,O);J!==void 0&&(A+=`${I}${o(V)}: ${J}`,I=G)}return P>S&&(A+=`${I}"...": "${a(P-S)} not stringified"`,I=G),I!==""&&(A=`
81
- ${O}${A}
82
- ${$}`),j.pop(),`{${A}}`}case"number":return isFinite(E)?String(E):d?d(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(g)return String(E);default:return d?d(E):void 0}}function z(k,E,j){switch(typeof E){case"string":return o(E);case"object":{if(E===null)return"null";if(typeof E.toJSON=="function"){if(typeof(E=E.toJSON(k))!="object")return z(k,E,j);if(E===null)return"null"}if(j.indexOf(E)!==-1)return b;let x="";const O=E.length!==void 0;if(O&&Array.isArray(E)){if(E.length===0)return"[]";if(v<j.length+1)return'"[Array]"';j.push(E);const A=Math.min(E.length,S);let I=0;for(;I<A-1;I++){const B=z(String(I),E[I],j);x+=B!==void 0?B:"null",x+=","}const R=z(String(I),E[I],j);return x+=R!==void 0?R:"null",E.length-1>S&&(x+=`,"... ${a(E.length-S-1)} not stringified"`),j.pop(),`[${x}]`}let $=Object.keys(E);const N=$.length;if(N===0)return"{}";if(v<j.length+1)return'"[Object]"';let P="",G=Math.min(N,S);O&&u(E)&&(x+=r(E,",",S),$=$.slice(E.length),G-=E.length,P=","),c&&($=n($,y)),j.push(E);for(let A=0;A<G;A++){const I=$[A],R=z(I,E[I],j);R!==void 0&&(x+=`${P}${o(I)}:${R}`,P=",")}return N>S&&(x+=`${P}"...":"${a(N-S)} not stringified"`),j.pop(),`{${x}}`}case"number":return isFinite(E)?String(E):d?d(E):"null";case"boolean":return E===!0?"true":"false";case"undefined":return;case"bigint":if(g)return String(E);default:return d?d(E):void 0}}return function(k,E,j){if(arguments.length>1){let x="";if(typeof j=="number"?x=" ".repeat(Math.min(j,10)):typeof j=="string"&&(x=j.slice(0,10)),E!=null){if(typeof E=="function")return w("",{"":k},[],E,x,"");if(Array.isArray(E))return _("",k,[],function(O){const $=new Set;for(const N of O)typeof N!="string"&&typeof N!="number"||$.add(String(N));return $}(E),x,"")}if(x.length!==0)return M("",k,[],x,"")}return z("",k,[])}}}(Ye,Ye.exports)),Ye.exports}function xf(){if(Si)return _i;Si=1;var t=yt(),f=at().MESSAGE,m=ce();function s(l,o){return typeof o=="bigint"?o.toString():o}return _i=t(function(l,o){var n=m.configure(o);return l[f]=n(l,o.replacer||s,o.space),l})}function kf(){if(ji)return Oi;ji=1;var t=yt();return Oi=t(function(f,m){return m.message?(f.message="[".concat(m.label,"] ").concat(f.message),f):(f.label=m.label,f)})}function Tf(){if(ki)return xi;ki=1;var t=yt(),f=at().MESSAGE,m=ce();return xi=t(function(s){var l={};return s.message&&(l["@message"]=s.message,delete s.message),s.timestamp&&(l["@timestamp"]=s.timestamp,delete s.timestamp),l["@fields"]=s,s[f]=m(l),s})}function Af(){if(Ti)return He;function t(s){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},t(s)}function f(s,l,o){return(l=function(n){var i=function(u,r){if(t(u)!="object"||!u)return u;var e=u[Symbol.toPrimitive];if(e!==void 0){var a=e.call(u,r);if(t(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(u)}(n,"string");return t(i)=="symbol"?i:i+""}(l))in s?Object.defineProperty(s,l,{value:o,enumerable:!0,configurable:!0,writable:!0}):s[l]=o,s}Ti=1;var m=yt();return He=m(function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o="metadata";l.key&&(o=l.key);var n=[];return l.fillExcept||l.fillWith||(n.push("level"),n.push("message")),l.fillExcept&&(n=l.fillExcept),n.length>0?function(i,u,r){var e=u.reduce(function(p,h){return p[h]=i[h],delete i[h],p},{}),a=Object.keys(i).reduce(function(p,h){return p[h]=i[h],delete i[h],p},{});return Object.assign(i,e,f({},r,a)),i}(s,n,o):l.fillWith?function(i,u,r){return i[r]=u.reduce(function(e,a){return e[a]=i[a],delete i[a],e},{}),i}(s,l.fillWith,o):s}),He}function Gc(){if(Ri)return Ai;Ri=1;var t=1e3,f=60*t,m=60*f,s=24*m,l=7*s,o=365.25*s;function n(i,u,r,e){var a=u>=1.5*r;return Math.round(i/r)+" "+e+(a?"s":"")}return Ai=function(i,u){u=u||{};var r=typeof i;if(r==="string"&&i.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var p=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return p*o;case"weeks":case"week":case"w":return p*l;case"days":case"day":case"d":return p*s;case"hours":case"hour":case"hrs":case"hr":case"h":return p*m;case"minutes":case"minute":case"mins":case"min":case"m":return p*f;case"seconds":case"second":case"secs":case"sec":case"s":return p*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}(i);if(r==="number"&&isFinite(i))return u.long?function(e){var a=Math.abs(e);return a>=s?n(e,a,s,"day"):a>=m?n(e,a,m,"hour"):a>=f?n(e,a,f,"minute"):a>=t?n(e,a,t,"second"):e+" ms"}(i):function(e){var a=Math.abs(e);return a>=s?Math.round(e/s)+"d":a>=m?Math.round(e/m)+"h":a>=f?Math.round(e/f)+"m":a>=t?Math.round(e/t)+"s":e+"ms"}(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))}}function Rf(){if(Pi)return Ii;Pi=1;var t=void 0,f=yt(),m=Gc();return Ii=f(function(s){var l=+new Date;return t.diff=l-(t.prevTime||l),t.prevTime=l,s.ms="+".concat(m(t.diff)),s})}function If(){if(Ni)return Ve;Ni=1;var t=lt().inspect,f=yt(),m=at(),s=m.LEVEL,l=m.MESSAGE,o=m.SPLAT;return Ve=f(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=Object.assign({},n);return delete u[s],delete u[l],delete u[o],n[l]=t(u,!1,i.depth||null,i.colorize),n}),Ve}var Li,$i,Mi,Ci,Di,ee={exports:{}};function Pf(){if(Li)return ee.exports;function t(o){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t(o)}function f(o,n,i){return n&&function(u,r){for(var e=0;e<r.length;e++){var a=r[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(u,m(a.key),a)}}(o.prototype,n),Object.defineProperty(o,"prototype",{writable:!1}),o}function m(o){var n=function(i,u){if(t(i)!="object"||!i)return i;var r=i[Symbol.toPrimitive];if(r!==void 0){var e=r.call(i,u);if(t(e)!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(i)}(o,"string");return t(n)=="symbol"?n:n+""}Li=1;var s=at().MESSAGE,l=function(){return f(function o(n){(function(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")})(this,o),this.template=n},[{key:"transform",value:function(o){return o[s]=this.template(o),o}}])}();return ee.exports=function(o){return new l(o)},ee.exports.Printf=ee.exports.Format=l,ee.exports}function Nf(){if(Mi)return $i;Mi=1;var t=yt(),f=at().MESSAGE,m=ce();return $i=t(function(s){var l=m(Object.assign({},s,{level:void 0,message:void 0,splat:void 0})),o=s.padding&&s.padding[s.level]||"";return s[f]=l!=="{}"?"".concat(s.level,":").concat(o," ").concat(s.message," ").concat(l):"".concat(s.level,":").concat(o," ").concat(s.message),s})}function Lf(){if(Di)return Ci;function t(e){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t(e)}function f(e){return function(a){if(Array.isArray(a))return m(a)}(e)||function(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}(e)||function(a,p){if(a){if(typeof a=="string")return m(a,p);var h={}.toString.call(a).slice(8,-1);return h==="Object"&&a.constructor&&(h=a.constructor.name),h==="Map"||h==="Set"?Array.from(a):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?m(a,p):void 0}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
83
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function m(e,a){(a==null||a>e.length)&&(a=e.length);for(var p=0,h=Array(a);p<a;p++)h[p]=e[p];return h}function s(e,a,p){return a&&function(h,d){for(var b=0;b<d.length;b++){var g=d[b];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,l(g.key),g)}}(e.prototype,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e){var a=function(p,h){if(t(p)!="object"||!p)return p;var d=p[Symbol.toPrimitive];if(d!==void 0){var b=d.call(p,h);if(t(b)!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}(e,"string");return t(a)=="symbol"?a:a+""}Di=1;var o=lt(),n=at().SPLAT,i=/%[scdjifoO%]/g,u=/%%/g,r=function(){return s(function e(a){(function(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")})(this,e),this.options=a},[{key:"_splat",value:function(e,a){var p=e.message,h=e[n]||e.splat||[],d=p.match(u),b=d&&d.length||0,g=a.length-b-h.length,c=g<0?h.splice(g,-1*g):[],y=c.length;if(y)for(var v=0;v<y;v++)Object.assign(e,c[v]);return e.message=o.format.apply(o,[p].concat(f(h))),e}},{key:"transform",value:function(e){var a=e.message,p=e[n]||e.splat;if(!p||!p.length)return e;var h=a&&a.match&&a.match(i);if(!h&&(p||p.length)){var d=p.length>1?p.splice(0):p,b=d.length;if(b)for(var g=0;g<b;g++)Object.assign(e,d[g]);return e}return h?this._splat(e,h):e}}])}();return Ci=function(e){return new r(e)}}var zc=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,$t="\\d\\d?",Lt="\\d\\d",ne="[^\\s]+",Zc=/\[([^]*?)\]/gm;function Hc(t,f){for(var m=[],s=0,l=t.length;s<l;s++)m.push(t[s].substr(0,f));return m}var Fi=function(t){return function(f,m){var s=m[t].map(function(o){return o.toLowerCase()}),l=s.indexOf(f.toLowerCase());return l>-1?l:null}};function Mt(t){for(var f=[],m=1;m<arguments.length;m++)f[m-1]=arguments[m];for(var s=0,l=f;s<l.length;s++){var o=l[s];for(var n in o)t[n]=o[n]}return t}var Bi=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Vc=["January","February","March","April","May","June","July","August","September","October","November","December"],$f=Hc(Vc,3),cn={dayNamesShort:Hc(Bi,3),dayNames:Bi,monthNamesShort:$f,monthNames:Vc,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}},Ee=Mt({},cn),Yc=function(t){return Ee=Mt(Ee,t)},Ui=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},pt=function(t,f){for(f===void 0&&(f=2),t=String(t);t.length<f;)t="0"+t;return t},Mf={D:function(t){return String(t.getDate())},DD:function(t){return pt(t.getDate())},Do:function(t,f){return f.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return pt(t.getDay())},ddd:function(t,f){return f.dayNamesShort[t.getDay()]},dddd:function(t,f){return f.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return pt(t.getMonth()+1)},MMM:function(t,f){return f.monthNamesShort[t.getMonth()]},MMMM:function(t,f){return f.monthNames[t.getMonth()]},YY:function(t){return pt(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return pt(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return pt(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return pt(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return pt(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return pt(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return pt(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return pt(t.getMilliseconds(),3)},a:function(t,f){return t.getHours()<12?f.amPm[0]:f.amPm[1]},A:function(t,f){return t.getHours()<12?f.amPm[0].toUpperCase():f.amPm[1].toUpperCase()},ZZ:function(t){var f=t.getTimezoneOffset();return(f>0?"-":"+")+pt(100*Math.floor(Math.abs(f)/60)+Math.abs(f)%60,4)},Z:function(t){var f=t.getTimezoneOffset();return(f>0?"-":"+")+pt(Math.floor(Math.abs(f)/60),2)+":"+pt(Math.abs(f)%60,2)}},qi=function(t){return+t-1},Gi=[null,$t],zi=[null,ne],Zi=["isPm",ne,function(t,f){var m=t.toLowerCase();return m===f.amPm[0]?0:m===f.amPm[1]?1:null}],Hi=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var f=(t+"").match(/([+-]|\d\d)/gi);if(f){var m=60*+f[1]+parseInt(f[2],10);return f[0]==="+"?m:-m}return 0}],Cf={D:["day",$t],DD:["day",Lt],Do:["day",$t+ne,function(t){return parseInt(t,10)}],M:["month",$t,qi],MM:["month",Lt,qi],YY:["year",Lt,function(t){var f=+(""+new Date().getFullYear()).substr(0,2);return+(""+(+t>68?f-1:f)+t)}],h:["hour",$t,void 0,"isPm"],hh:["hour",Lt,void 0,"isPm"],H:["hour",$t],HH:["hour",Lt],m:["minute",$t],mm:["minute",Lt],s:["second",$t],ss:["second",Lt],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",Lt,function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:Gi,dd:Gi,ddd:zi,dddd:zi,MMM:["month",ne,Fi("monthNamesShort")],MMMM:["month",ne,Fi("monthNames")],a:Zi,A:Zi,ZZ:Hi,Z:Hi},_e={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},Kc=function(t){return Mt(_e,t)},Wc=function(t,f,m){if(f===void 0&&(f=_e.default),m===void 0&&(m={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var s=[];f=(f=_e[f]||f).replace(Zc,function(o,n){return s.push(n),"@@@"});var l=Mt(Mt({},Ee),m);return(f=f.replace(zc,function(o){return Mf[o](t,l)})).replace(/@@@/g,function(){return s.shift()})};function Jc(t,f,m){if(m===void 0&&(m={}),typeof f!="string")throw new Error("Invalid format in fecha parse");if(f=_e[f]||f,t.length>1e3)return null;var s={year:new Date().getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},l=[],o=[],n=f.replace(Zc,function(v,S){return o.push(Ui(S)),"@@@"}),i={},u={};n=Ui(n).replace(zc,function(v){var S=Cf[v],w=S[0],_=S[1],M=S[3];if(i[w])throw new Error("Invalid format. "+w+" specified twice in format");return i[w]=!0,M&&(u[M]=!0),l.push(S),"("+_+")"}),Object.keys(u).forEach(function(v){if(!i[v])throw new Error("Invalid format. "+v+" is required in specified format")}),n=n.replace(/@@@/g,function(){return o.shift()});var r=t.match(new RegExp(n,"i"));if(!r)return null;for(var e,a=Mt(Mt({},Ee),m),p=1;p<r.length;p++){var h=l[p-1],d=h[0],b=h[2],g=b?b(r[p],a):+r[p];if(g==null)return null;s[d]=g}if(s.isPm===1&&s.hour!=null&&+s.hour!=12?s.hour=+s.hour+12:s.isPm===0&&+s.hour==12&&(s.hour=0),s.timezoneOffset==null){e=new Date(s.year,s.month,s.day,s.hour,s.minute,s.second,s.millisecond);for(var c=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],y=(p=0,c.length);p<y;p++)if(i[c[p][0]]&&s[c[p][0]]!==e[c[p][1]]())return null}else if(e=new Date(Date.UTC(s.year,s.month,s.day,s.hour,s.minute-s.timezoneOffset,s.second,s.millisecond)),s.month>11||s.month<0||s.day>31||s.day<1||s.hour>23||s.hour<0||s.minute>59||s.minute<0||s.second>59||s.second<0)return null;return e}var Df={format:Wc,parse:Jc,defaultI18n:cn,setGlobalDateI18n:Yc,setGlobalDateMasks:Kc};const Ff=kc(Object.freeze(Object.defineProperty({__proto__:null,assign:Mt,default:Df,defaultI18n:cn,format:Wc,parse:Jc,setGlobalDateI18n:Yc,setGlobalDateMasks:Kc},Symbol.toStringTag,{value:"Module"})));var Ke,Vi,Yi,Ki,Wi;function Bf(){if(Vi)return Ke;Vi=1;var t=Ff,f=yt();return Ke=f(function(m){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return s.format&&(m.timestamp=typeof s.format=="function"?s.format():t.format(new Date,s.format)),m.timestamp||(m.timestamp=new Date().toISOString()),s.alias&&(m[s.alias]=m.timestamp),m}),Ke}function Uf(){if(Ki)return Yi;Ki=1;var t=Uc(),f=yt(),m=at().MESSAGE;return Yi=f(function(s,l){return l.level!==!1&&(s.level=t.strip(s.level)),l.message!==!1&&(s.message=t.strip(String(s.message))),l.raw!==!1&&s[m]&&(s[m]=t.strip(String(s[m]))),s})}function Xc(){if(Wi)return de;Wi=1;var t=de.format=yt();return de.levels=function(){if(pi)return ze;pi=1;var f=nn().Colorizer;return ze=function(m){return f.addColors(m.colors||m),m},ze}(),Object.defineProperty(t,"align",{value:_f()}),Object.defineProperty(t,"cli",{value:Sf()}),Object.defineProperty(t,"colorize",{value:nn()}),Object.defineProperty(t,"combine",{value:Of()}),Object.defineProperty(t,"errors",{value:jf()}),Object.defineProperty(t,"json",{value:xf()}),Object.defineProperty(t,"label",{value:kf()}),Object.defineProperty(t,"logstash",{value:Tf()}),Object.defineProperty(t,"metadata",{value:Af()}),Object.defineProperty(t,"ms",{value:Rf()}),Object.defineProperty(t,"padLevels",{value:qc()}),Object.defineProperty(t,"prettyPrint",{value:If()}),Object.defineProperty(t,"printf",{value:Pf()}),Object.defineProperty(t,"simple",{value:Nf()}),Object.defineProperty(t,"splat",{value:Lf()}),Object.defineProperty(t,"timestamp",{value:Bf()}),Object.defineProperty(t,"uncolorize",{value:Uf()}),de}var Ji,Xi={};function Qc(){return Ji||(Ji=1,function(t){var f=lt().format;t.warn={deprecated:function(m){return function(){throw new Error(f("{ %s } was removed in winston@3.0.0.",m))}},useFormat:function(m){return function(){throw new Error([f("{ %s } was removed in winston@3.0.0.",m),"Use a custom winston.format = winston.format(function) instead."].join(`
84
- `))}},forFunctions:function(m,s,l){l.forEach(function(o){m[o]=t.warn[s](o)})},forProperties:function(m,s,l){l.forEach(function(o){var n=t.warn[s](o);Object.defineProperty(m,o,{get:n,set:n})})}}}(Xi)),Xi}const qf="3.17.0";var Qi,ts={},We={exports:{}},Je={exports:{}};function es(){if(Qi)return Je.exports;Qi=1;var t=lt(),f=Ic(),m=at().LEVEL,s=Je.exports=function(){var l=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};f.call(this,{objectMode:!0,highWaterMark:o.highWaterMark}),this.format=o.format,this.level=o.level,this.handleExceptions=o.handleExceptions,this.handleRejections=o.handleRejections,this.silent=o.silent,o.log&&(this.log=o.log),o.logv&&(this.logv=o.logv),o.close&&(this.close=o.close),this.once("pipe",function(n){l.levels=n.levels,l.parent=n}),this.once("unpipe",function(n){n===l.parent&&(l.parent=null,l.close&&l.close())})};return t.inherits(s,f),s.prototype._write=function(l,o,n){if(this.silent||l.exception===!0&&!this.handleExceptions)return n(null);var i=this.level||this.parent&&this.parent.level;if(!i||this.levels[i]>=this.levels[l[m]]){if(l&&!this.format)return this.log(l,n);var u=void 0,r=void 0;try{r=this.format.transform(Object.assign({},l),this.format.options)}catch(e){u=e}if(u||!r){if(n(),u)throw u;return}return this.log(r,n)}return this._writableState.sync=!1,n(null)},s.prototype._writev=function(l,o){if(this.logv){var n=l.filter(this._accept,this);return n.length?this.logv(n,o):o(null)}for(var i=0;i<l.length;i++)if(this._accept(l[i]))if(!l[i].chunk||this.format){var u=void 0,r=void 0;try{r=this.format.transform(Object.assign({},l[i].chunk),this.format.options)}catch(e){u=e}if(u||!r){if(l[i].callback(),u)throw o(null),u}else this.log(r,l[i].callback)}else this.log(l[i].chunk,l[i].callback);return o(null)},s.prototype._accept=function(l){var o=l.chunk;if(this.silent)return!1;var n=this.level||this.parent&&this.parent.level;return!(o.exception!==!0&&n&&!(this.levels[n]>=this.levels[o[m]])||!this.handleExceptions&&o.exception===!0)},s.prototype._nop=function(){},Je.exports}var rs,ns,Xe,os,is,ss,Qe={exports:{}};function le(){return ns||(ns=1,We.exports=es(),We.exports.LegacyTransportStream=function(){if(rs)return Qe.exports;rs=1;var t=lt(),f=at().LEVEL,m=es(),s=Qe.exports=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(m.call(this,l),!l.transport||typeof l.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=l.transport,this.level=this.level||l.transport.level,this.handleExceptions=this.handleExceptions||l.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=(function(o){this.emit("error",o,this.transport)}).bind(this),this.transport.on("error",this.transport.__winstonError))};return t.inherits(s,m),s.prototype._write=function(l,o,n){if(this.silent||l.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[l[f]])&&this.transport.log(l[f],l.message,l,this._nop),n(null)},s.prototype._writev=function(l,o){for(var n=0;n<l.length;n++)this._accept(l[n])&&(this.transport.log(l[n].chunk[f],l[n].chunk.message,l[n].chunk,this._nop),l[n].callback());return o(null)},s.prototype._deprecated=function(){console.error([this.transport.name+" is a legacy winston transport. Consider upgrading: ","- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
85
- `))},s.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},Qe.exports}()),We.exports}function Gf(){if(os)return Xe;function t(p){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},t(p)}function f(p,h,d){return h&&function(b,g){for(var c=0;c<g.length;c++){var y=g[c];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(b,m(y.key),y)}}(p.prototype,h),Object.defineProperty(p,"prototype",{writable:!1}),p}function m(p){var h=function(d,b){if(t(d)!="object"||!d)return d;var g=d[Symbol.toPrimitive];if(g!==void 0){var c=g.call(d,b);if(t(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(d)}(p,"string");return t(h)=="symbol"?h:h+""}function s(p,h,d){return h=o(h),function(b,g){if(g&&(t(g)=="object"||typeof g=="function"))return g;if(g!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(c){if(c===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}(b)}(p,l()?Reflect.construct(h,d||[],o(p).constructor):h.apply(p,d))}function l(){try{var p=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l=function(){return!!p})()}function o(p){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)},o(p)}function n(p,h){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,b){return d.__proto__=b,d},n(p,h)}os=1;var i=Dt(),u=at(),r=u.LEVEL,e=u.MESSAGE,a=le();return Xe=function(p){function h(){var d,b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(g,c){if(!(g instanceof c))throw new TypeError("Cannot call a class as a function")}(this,h),(d=s(this,h,[b])).name=b.name||"console",d.stderrLevels=d._stringArrayToSet(b.stderrLevels),d.consoleWarnLevels=d._stringArrayToSet(b.consoleWarnLevels),d.eol=typeof b.eol=="string"?b.eol:i.EOL,d.forceConsole=b.forceConsole||!1,d._consoleLog=console.log.bind(console),d._consoleWarn=console.warn.bind(console),d._consoleError=console.error.bind(console),d.setMaxListeners(30),d}return function(d,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(b&&b.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),Object.defineProperty(d,"prototype",{writable:!1}),b&&n(d,b)}(h,p),f(h,[{key:"log",value:function(d,b){var g=this;return setImmediate(function(){return g.emit("logged",d)}),this.stderrLevels[d[r]]?(console._stderr&&!this.forceConsole?console._stderr.write("".concat(d[e]).concat(this.eol)):this._consoleError(d[e]),void(b&&b())):this.consoleWarnLevels[d[r]]?(console._stderr&&!this.forceConsole?console._stderr.write("".concat(d[e]).concat(this.eol)):this._consoleWarn(d[e]),void(b&&b())):(console._stdout&&!this.forceConsole?console._stdout.write("".concat(d[e]).concat(this.eol)):this._consoleLog(d[e]),void(b&&b()))}},{key:"_stringArrayToSet",value:function(d,b){if(!d)return{};if(b=b||"Cannot make set from type other than Array of string elements",!Array.isArray(d))throw new Error(b);return d.reduce(function(g,c){if(typeof c!="string")throw new Error(b);return g[c]=!0,g},{})}}])}(a),Xe}function tl(){if(ss)return is;function t(s){if(typeof s!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(s))}function f(s,l){for(var o,n="",i=0,u=-1,r=0,e=0;e<=s.length;++e){if(e<s.length)o=s.charCodeAt(e);else{if(o===47)break;o=47}if(o===47){if(!(u===e-1||r===1))if(u!==e-1&&r===2){if(n.length<2||i!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var a=n.lastIndexOf("/");if(a!==n.length-1){a===-1?(n="",i=0):i=(n=n.slice(0,a)).length-1-n.lastIndexOf("/"),u=e,r=0;continue}}else if(n.length===2||n.length===1){n="",i=0,u=e,r=0;continue}}l&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+s.slice(u+1,e):n=s.slice(u+1,e),i=e-u-1;u=e,r=0}else o===46&&r!==-1?++r:r=-1}return n}ss=1;var m={resolve:function(){for(var s,l="",o=!1,n=arguments.length-1;n>=-1&&!o;n--){var i;n>=0?i=arguments[n]:(s===void 0&&(s=Q.cwd()),i=s),t(i),i.length!==0&&(l=i+"/"+l,o=i.charCodeAt(0)===47)}return l=f(l,!o),o?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(s){if(t(s),s.length===0)return".";var l=s.charCodeAt(0)===47,o=s.charCodeAt(s.length-1)===47;return(s=f(s,!l)).length!==0||l||(s="."),s.length>0&&o&&(s+="/"),l?"/"+s:s},isAbsolute:function(s){return t(s),s.length>0&&s.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var s,l=0;l<arguments.length;++l){var o=arguments[l];t(o),o.length>0&&(s===void 0?s=o:s+="/"+o)}return s===void 0?".":m.normalize(s)},relative:function(s,l){if(t(s),t(l),s===l||(s=m.resolve(s))===(l=m.resolve(l)))return"";for(var o=1;o<s.length&&s.charCodeAt(o)===47;++o);for(var n=s.length,i=n-o,u=1;u<l.length&&l.charCodeAt(u)===47;++u);for(var r=l.length-u,e=i<r?i:r,a=-1,p=0;p<=e;++p){if(p===e){if(r>e){if(l.charCodeAt(u+p)===47)return l.slice(u+p+1);if(p===0)return l.slice(u+p)}else i>e&&(s.charCodeAt(o+p)===47?a=p:p===0&&(a=0));break}var h=s.charCodeAt(o+p);if(h!==l.charCodeAt(u+p))break;h===47&&(a=p)}var d="";for(p=o+a+1;p<=n;++p)p!==n&&s.charCodeAt(p)!==47||(d.length===0?d+="..":d+="/..");return d.length>0?d+l.slice(u+a):(u+=a,l.charCodeAt(u)===47&&++u,l.slice(u))},_makeLong:function(s){return s},dirname:function(s){if(t(s),s.length===0)return".";for(var l=s.charCodeAt(0),o=l===47,n=-1,i=!0,u=s.length-1;u>=1;--u)if((l=s.charCodeAt(u))===47){if(!i){n=u;break}}else i=!1;return n===-1?o?"/":".":o&&n===1?"//":s.slice(0,n)},basename:function(s,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');t(s);var o,n=0,i=-1,u=!0;if(l!==void 0&&l.length>0&&l.length<=s.length){if(l.length===s.length&&l===s)return"";var r=l.length-1,e=-1;for(o=s.length-1;o>=0;--o){var a=s.charCodeAt(o);if(a===47){if(!u){n=o+1;break}}else e===-1&&(u=!1,e=o+1),r>=0&&(a===l.charCodeAt(r)?--r==-1&&(i=o):(r=-1,i=e))}return n===i?i=e:i===-1&&(i=s.length),s.slice(n,i)}for(o=s.length-1;o>=0;--o)if(s.charCodeAt(o)===47){if(!u){n=o+1;break}}else i===-1&&(u=!1,i=o+1);return i===-1?"":s.slice(n,i)},extname:function(s){t(s);for(var l=-1,o=0,n=-1,i=!0,u=0,r=s.length-1;r>=0;--r){var e=s.charCodeAt(r);if(e!==47)n===-1&&(i=!1,n=r+1),e===46?l===-1?l=r:u!==1&&(u=1):l!==-1&&(u=-1);else if(!i){o=r+1;break}}return l===-1||n===-1||u===0||u===1&&l===n-1&&l===o+1?"":s.slice(l,n)},format:function(s){if(s===null||typeof s!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof s);return function(l,o){var n=o.dir||o.root,i=o.base||(o.name||"")+(o.ext||"");return n?n===o.root?n+i:n+l+i:i}("/",s)},parse:function(s){t(s);var l={root:"",dir:"",base:"",ext:"",name:""};if(s.length===0)return l;var o,n=s.charCodeAt(0),i=n===47;i?(l.root="/",o=1):o=0;for(var u=-1,r=0,e=-1,a=!0,p=s.length-1,h=0;p>=o;--p)if((n=s.charCodeAt(p))!==47)e===-1&&(a=!1,e=p+1),n===46?u===-1?u=p:h!==1&&(h=1):u!==-1&&(h=-1);else if(!a){r=p+1;break}return u===-1||e===-1||h===0||h===1&&u===e-1&&u===r+1?e!==-1&&(l.base=l.name=r===0&&i?s.slice(1,e):s.slice(r,e)):(r===0&&i?(l.name=s.slice(1,u),l.base=s.slice(1,e)):(l.name=s.slice(r,u),l.base=s.slice(r,e)),l.ext=s.slice(u,e)),r>0?l.dir=s.slice(0,r-1):i&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};return m.posix=m,is=m}var as,tr={exports:{}},er={exports:{}},rr={exports:{}};function ln(){return as||(as=1,t=rr,f=rr.exports,Object.defineProperty(f,"__esModule",{value:!0}),f.default=function(m){return m&&typeof m.length=="number"&&m.length>=0&&m.length%1==0},t.exports=f.default),rr.exports;var t,f}var us,Ot={},nr={exports:{}},or={exports:{}},cs,ls,fs,kt={};function zf(){return ls||(ls=1,function(t,f){Object.defineProperty(f,"__esModule",{value:!0}),f.default=function(r){return(0,o.isAsync)(r)?function(...e){const a=e.pop();return i(r.apply(this,e),a)}:(0,s.default)(function(e,a){var p;try{p=r.apply(this,e)}catch(h){return a(h)}if(p&&typeof p.then=="function")return i(p,a);a(null,p)})};var m=function(){return us||(us=1,r=or,e=or.exports,Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(a){return function(...p){var h=p.pop();return a.call(this,p,h)}},r.exports=e.default),or.exports;var r,e}(),s=n(m),l=n(function(){if(cs)return kt;cs=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.fallback=h,kt.wrap=d;var r,e=kt.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,a=kt.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,p=kt.hasNextTick=typeof Q=="object"&&typeof Q.nextTick=="function";function h(b){setTimeout(b,0)}function d(b){return(g,...c)=>b(()=>g(...c))}return r=e?queueMicrotask:a?setImmediate:p?Q.nextTick:h,kt.default=d(r),kt}()),o=Ht();function n(r){return r&&r.__esModule?r:{default:r}}function i(r,e){return r.then(a=>{u(e,null,a)},a=>{u(e,a&&(a instanceof Error||a.message)?a:new Error(a))})}function u(r,e,a){try{r(e,a)}catch(p){(0,l.default)(h=>{throw h},p)}}t.exports=f.default}(nr,nr.exports)),nr.exports}function Ht(){if(fs)return Ot;fs=1,Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.isAsyncIterable=Ot.isAsyncGenerator=Ot.isAsync=void 0;var t,f=zf(),m=(t=f)&&t.__esModule?t:{default:t};function s(l){return l[Symbol.toStringTag]==="AsyncFunction"}return Ot.default=function(l){if(typeof l!="function")throw new Error("expected a function");return s(l)?(0,m.default)(l):l},Ot.isAsync=s,Ot.isAsyncGenerator=function(l){return l[Symbol.toStringTag]==="AsyncGenerator"},Ot.isAsyncIterable=function(l){return typeof l[Symbol.asyncIterator]=="function"},Ot}var hs,ps,ir={exports:{}};function se(){return hs||(hs=1,t=ir,f=ir.exports,Object.defineProperty(f,"__esModule",{value:!0}),f.default=function(m,s){if(s||(s=m.length),!s)throw new Error("arity is undefined");return function(...l){return typeof l[s-1]=="function"?m.apply(this,l):new Promise((o,n)=>{l[s-1]=(i,...u)=>{if(i)return n(i);o(u.length>1?u:u[0])},m.apply(this,l)})}},t.exports=f.default),ir.exports;var t,f}var ds,sr={exports:{}},ar={exports:{}},ur={exports:{}},cr={exports:{}};function el(){return ds||(ds=1,t=cr,f=cr.exports,Object.defineProperty(f,"__esModule",{value:!0}),f.default=function(m){function s(...l){if(m!==null){var o=m;m=null,o.apply(this,l)}}return Object.assign(s,m),s},t.exports=f.default),cr.exports;var t,f}var ms,ys,lr={exports:{}},fr={exports:{}};function Zf(){return ys||(ys=1,function(t,f){Object.defineProperty(f,"__esModule",{value:!0}),f.default=function(n){if((0,m.default)(n))return function(p){var h=-1,d=p.length;return function(){return++h<d?{value:p[h],key:h}:null}}(n);var i=(0,l.default)(n);return i?function(p){var h=-1;return function(){var d=p.next();return d.done?null:(h++,{value:d.value,key:h})}}(i):(u=n,r=u?Object.keys(u):[],e=-1,a=r.length,function p(){var h=r[++e];return h==="__proto__"?p():e<a?{value:u[h],key:h}:null});var u,r,e,a};var m=o(ln()),s=function(){return ms||(ms=1,n=fr,i=fr.exports,Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(u){return u[Symbol.iterator]&&u[Symbol.iterator]()},n.exports=i.default),fr.exports;var n,i}(),l=o(s);function o(n){return n&&n.__esModule?n:{default:n}}t.exports=f.default}(lr,lr.exports)),lr.exports}var gs,hr={exports:{}};function rl(){return gs||(gs=1,t=hr,f=hr.exports,Object.defineProperty(f,"__esModule",{value:!0}),f.default=function(m){return function(...s){if(m===null)throw new Error("Callback was already called.");var l=m;m=null,l.apply(this,s)}},t.exports=f.default),hr.exports;var t,f}var vs,bs,ws,Es,_s,Ss,pr={exports:{}},dr={exports:{}};function on(){return vs||(vs=1,function(t,f){Object.defineProperty(f,"__esModule",{value:!0}),f.default={},t.exports=f.default}(dr,dr.exports)),dr.exports}function Hf(){return ws||(ws=1,function(t,f){Object.defineProperty(f,"__esModule",{value:!0});var m=r(el()),s=r(Zf()),l=r(rl()),o=Ht(),n=(bs||(bs=1,function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(d,b,g,c){let y=!1,v=!1,S=!1,w=0,_=0;function M(){w>=b||S||y||(S=!0,d.next().then(({value:E,done:j})=>{if(!v&&!y){if(S=!1,j)return y=!0,void(w<=0&&c(null));w++,g(E,_,z),_++,M()}}).catch(k))}function z(E,j){if(w-=1,!v)return E?k(E):E===!1?(y=!0,void(v=!0)):j===h.default||y&&w<=0?(y=!0,c(null)):void M()}function k(E){v||(S=!1,y=!0,c(E))}M()};var p,h=(p=on())&&p.__esModule?p:{default:p};e.exports=a.default}(pr,pr.exports)),pr.exports),i=r(n),u=r(on());function r(e){return e&&e.__esModule?e:{default:e}}f.default=e=>(a,p,h)=>{if(h=(0,m.default)(h),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!a)return h(null);if((0,o.isAsyncGenerator)(a))return(0,i.default)(a,e,p,h);if((0,o.isAsyncIterable)(a))return(0,i.default)(a[Symbol.asyncIterator](),e,p,h);var d=(0,s.default)(a),b=!1,g=!1,c=0,y=!1;function v(w,_){if(!g)if(c-=1,w)b=!0,h(w);else if(w===!1)b=!0,g=!0;else{if(_===u.default||b&&c<=0)return b=!0,h(null);y||S()}}function S(){for(y=!0;c<e&&!b;){var w=d();if(w===null)return b=!0,void(c<=0&&h(null));c+=1,p(w.value,w.key,(0,l.default)(v))}y=!1}S()},t.exports=f.default}(ur,ur.exports)),ur.exports}function nl(){return Es||(Es=1,function(t,f){Object.defineProperty(f,"__esModule",{value:!0});var m=o(Hf()),s=o(Ht()),l=o(se());function o(n){return n&&n.__esModule?n:{default:n}}f.default=(0,l.default)(function(n,i,u,r){return(0,m.default)(i)(n,(0,s.default)(u),r)},4),t.exports=f.default}(ar,ar.exports)),ar.exports}function Vf(){return Ss||(Ss=1,function(t,f){Object.defineProperty(f,"__esModule",{value:!0}),f.default=function(i,u){return(0,s.default)(o.default,i,u)};var m=(ps||(ps=1,function(i,u){Object.defineProperty(u,"__esModule",{value:!0});var r=p(ln()),e=p(Ht()),a=p(se());function p(h){return h&&h.__esModule?h:{default:h}}u.default=(0,a.default)((h,d,b)=>{var g=(0,r.default)(d)?[]:{};h(d,(c,y,v)=>{(0,e.default)(c)((S,...w)=>{w.length<2&&([w]=w),g[y]=w,v(S)})},c=>b(c,g))},3),i.exports=u.default}(er,er.exports)),er.exports),s=n(m),l=(_s||(_s=1,function(i,u){Object.defineProperty(u,"__esModule",{value:!0});var r=a(nl()),e=a(se());function a(p){return p&&p.__esModule?p:{default:p}}u.default=(0,e.default)(function(p,h,d){return(0,r.default)(p,1,h,d)},3),i.exports=u.default}(sr,sr.exports)),sr.exports),o=n(l);function n(i){return i&&i.__esModule?i:{default:i}}t.exports=f.default}(tr,tr.exports)),tr.exports}var Os,js,xs={},ks={};function Yf(){return Os||(Os=1,function(t){var f=ie(),m=ql(),s=Fl(),l=Bl(),o=Ul();for(var n in o)t[n]=o[n];t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7;function i(u){if(typeof u!="number"||u<t.DEFLATE||u>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=u,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}i.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,f(this.init_done,"close before init"),f(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?s.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||l.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},i.prototype.write=function(u,r,e,a,p,h,d){return this._write(!0,u,r,e,a,p,h,d)},i.prototype.writeSync=function(u,r,e,a,p,h,d){return this._write(!1,u,r,e,a,p,h,d)},i.prototype._write=function(u,r,e,a,p,h,d,b){if(f.equal(arguments.length,8),f(this.init_done,"write before init"),f(this.mode!==t.NONE,"already finalized"),f.equal(!1,this.write_in_progress,"write already in progress"),f.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,f.equal(!1,r===void 0,"must provide flush value"),this.write_in_progress=!0,r!==t.Z_NO_FLUSH&&r!==t.Z_PARTIAL_FLUSH&&r!==t.Z_SYNC_FLUSH&&r!==t.Z_FULL_FLUSH&&r!==t.Z_FINISH&&r!==t.Z_BLOCK)throw new Error("Invalid flush value");if(e==null&&(e=dt.alloc(0),p=0,a=0),this.strm.avail_in=p,this.strm.input=e,this.strm.next_in=a,this.strm.avail_out=b,this.strm.output=h,this.strm.next_out=d,this.flush=r,!u)return this._process(),this._checkError()?this._afterSync():void 0;var g=this;return Q.nextTick(function(){g._process(),g._after()}),this},i.prototype._afterSync=function(){var u=this.strm.avail_out,r=this.strm.avail_in;return this.write_in_progress=!1,[r,u]},i.prototype._process=function(){var u=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(u=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(u===null)break;if(this.strm.input[u]!==31){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,u++,this.strm.avail_in===1)break;case 1:if(u===null)break;this.strm.input[u]===139?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=l.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=l.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=l.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=l.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},i.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},i.prototype._after=function(){if(this._checkError()){var u=this.strm.avail_out,r=this.strm.avail_in;this.write_in_progress=!1,this.callback(r,u),this.pending_close&&this.close()}},i.prototype._error=function(u){this.strm.msg&&(u=this.strm.msg),this.onerror(u,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},i.prototype.init=function(u,r,e,a,p){f(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),f(u>=8&&u<=15,"invalid windowBits"),f(r>=-1&&r<=9,"invalid compression level"),f(e>=1&&e<=9,"invalid memlevel"),f(a===t.Z_FILTERED||a===t.Z_HUFFMAN_ONLY||a===t.Z_RLE||a===t.Z_FIXED||a===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(r,u,e,a,p),this._setDictionary()},i.prototype.params=function(){throw new Error("deflateParams Not supported")},i.prototype.reset=function(){this._reset(),this._setDictionary()},i.prototype._init=function(u,r,e,a,p){switch(this.level=u,this.windowBits=r,this.memLevel=e,this.strategy=a,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new m,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=l.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=p,this.write_in_progress=!1,this.init_done=!0},i.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=s.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},i.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=s.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=l.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=i}(ks)),ks}var Ts,As,Rs,Is,Ps,mr,Ns,yr,Ls,gr,$s,Ms,Cs,vr,Ds,Fs,Bs={exports:{}};function Kf(){if(As)return Ts;As=1;var t=[],f=[],m=function(){};function s(p){return!~t.indexOf(p)&&(t.push(p),!0)}function l(p){m=p}function o(p){for(var h=[],d=0;d<t.length;d++)if(t[d].async)h.push(t[d]);else if(t[d](p))return!0;return!!h.length&&new Promise(function(b){Promise.all(h.map(function(g){return g(p)})).then(function(g){b(g.some(Boolean))})})}function n(p){return!~f.indexOf(p)&&(f.push(p),!0)}function i(){m.apply(m,arguments)}function u(p){for(var h=0;h<f.length;h++)p=f[h].apply(f[h],arguments);return p}function r(p,h){var d=Object.prototype.hasOwnProperty;for(var b in h)d.call(h,b)&&(p[b]=h[b]);return p}function e(p){return p.enabled=!1,p.modify=n,p.set=l,p.use=s,r(function(){return!1},p)}function a(p){return p.enabled=!0,p.modify=n,p.set=l,p.use=s,r(function(){var h=Array.prototype.slice.call(arguments,0);return i.call(i,p,u(h,p)),!0},p)}return Ts=function(p){return p.introduce=r,p.enabled=o,p.process=u,p.modify=n,p.write=i,p.nope=e,p.yep=a,p.set=l,p.use=s,p}}function xe(){return Ps||(Ps=1,Bs.exports=function(){if(Is)return Rs;Is=1;var t=Kf()(function f(m,s){return(s=s||{}).namespace=m,s.prod=!0,s.dev=!1,s.force||f.force?f.yep(s):f.nope(s)});return Rs=t}()),Bs.exports}function Wf(){if(Ns)return mr;Ns=1;var t=un(),f=Cl().StringDecoder,m=Yt().Stream;function s(){}return mr=function(l,o){var n=dt.alloc(65536),i=new f("utf8"),u=new m,r="",e=0,a=0;return l.start===-1&&delete l.start,u.readable=!0,u.destroy=function(){u.destroyed=!0,u.emit("end"),u.emit("close")},t.open(l.file,"a+","0644",function(p,h){if(p)return o?o(p):u.emit("error",p),void u.destroy();(function d(){if(!u.destroyed)return t.read(h,n,0,n.length,e,function(b,g){if(b)return o?o(b):u.emit("error",b),void u.destroy();if(!g)return r&&((l.start==null||a>l.start)&&(o?o(null,r):u.emit("line",r)),a++,r=""),setTimeout(d,1e3);var c=i.write(n.slice(0,g));o||u.emit("data",c);for(var y=(c=(r+c).split(/\n+/)).length-1,v=0;v<y;v++)(l.start==null||a>l.start)&&(o?o(null,c[v]):u.emit("line",c[v])),a++;return r=c[y],e+=g,d()});t.close(h,s)})()}),o?u.destroy:u},mr}function Jf(){if(Ls)return yr;function t(v){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},t(v)}function f(v,S,w){return S&&function(_,M){for(var z=0;z<M.length;z++){var k=M[z];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(_,m(k.key),k)}}(v.prototype,S),Object.defineProperty(v,"prototype",{writable:!1}),v}function m(v){var S=function(w,_){if(t(w)!="object"||!w)return w;var M=w[Symbol.toPrimitive];if(M!==void 0){var z=M.call(w,_);if(t(z)!="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(w)}(v,"string");return t(S)=="symbol"?S:S+""}function s(v,S,w){return S=o(S),function(_,M){if(M&&(t(M)=="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(_)}(v,l()?Reflect.construct(S,w||[],o(v).constructor):S.apply(v,w))}function l(){try{var v=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l=function(){return!!v})()}function o(v){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},o(v)}function n(v,S){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,_){return w.__proto__=_,w},n(v,S)}Ls=1;var i=un(),u=tl(),r=Vf(),e=(js||(js=1,function(v){var S=oe().Buffer,w=je().Transform,_=Yf(),M=lt(),z=ie().ok,k=oe().kMaxLength,E="Cannot create final Buffer. It would be larger than 0x"+k.toString(16)+" bytes";_.Z_MIN_WINDOWBITS=8,_.Z_MAX_WINDOWBITS=15,_.Z_DEFAULT_WINDOWBITS=15,_.Z_MIN_CHUNK=64,_.Z_MAX_CHUNK=1/0,_.Z_DEFAULT_CHUNK=16384,_.Z_MIN_MEMLEVEL=1,_.Z_MAX_MEMLEVEL=9,_.Z_DEFAULT_MEMLEVEL=8,_.Z_MIN_LEVEL=-1,_.Z_MAX_LEVEL=9,_.Z_DEFAULT_LEVEL=_.Z_DEFAULT_COMPRESSION;for(var j=Object.keys(_),x=0;x<j.length;x++){var O=j[x];O.match(/^Z/)&&Object.defineProperty(v,O,{enumerable:!0,value:_[O],writable:!1})}for(var $={Z_OK:_.Z_OK,Z_STREAM_END:_.Z_STREAM_END,Z_NEED_DICT:_.Z_NEED_DICT,Z_ERRNO:_.Z_ERRNO,Z_STREAM_ERROR:_.Z_STREAM_ERROR,Z_DATA_ERROR:_.Z_DATA_ERROR,Z_MEM_ERROR:_.Z_MEM_ERROR,Z_BUF_ERROR:_.Z_BUF_ERROR,Z_VERSION_ERROR:_.Z_VERSION_ERROR},N=Object.keys($),P=0;P<N.length;P++){var G=N[P];$[$[G]]=G}function A(T,D,H){var W=[],K=0;function et(){for(var tt;(tt=T.read())!==null;)W.push(tt),K+=tt.length;T.once("readable",et)}function X(){var tt,nt=null;K>=k?nt=new RangeError(E):tt=S.concat(W,K),W=[],T.close(),H(nt,tt)}T.on("error",function(tt){T.removeListener("end",X),T.removeListener("readable",et),H(tt)}),T.on("end",X),T.end(D),et()}function I(T,D){if(typeof D=="string"&&(D=S.from(D)),!S.isBuffer(D))throw new TypeError("Not a string or buffer");var H=T._finishFlushFlag;return T._processChunk(D,H)}function R(T){if(!(this instanceof R))return new R(T);q.call(this,T,_.DEFLATE)}function B(T){if(!(this instanceof B))return new B(T);q.call(this,T,_.INFLATE)}function V(T){if(!(this instanceof V))return new V(T);q.call(this,T,_.GZIP)}function J(T){if(!(this instanceof J))return new J(T);q.call(this,T,_.GUNZIP)}function F(T){if(!(this instanceof F))return new F(T);q.call(this,T,_.DEFLATERAW)}function L(T){if(!(this instanceof L))return new L(T);q.call(this,T,_.INFLATERAW)}function U(T){if(!(this instanceof U))return new U(T);q.call(this,T,_.UNZIP)}function Z(T){return T===_.Z_NO_FLUSH||T===_.Z_PARTIAL_FLUSH||T===_.Z_SYNC_FLUSH||T===_.Z_FULL_FLUSH||T===_.Z_FINISH||T===_.Z_BLOCK}function q(T,D){var H=this;if(this._opts=T=T||{},this._chunkSize=T.chunkSize||v.Z_DEFAULT_CHUNK,w.call(this,T),T.flush&&!Z(T.flush))throw new Error("Invalid flush flag: "+T.flush);if(T.finishFlush&&!Z(T.finishFlush))throw new Error("Invalid flush flag: "+T.finishFlush);if(this._flushFlag=T.flush||_.Z_NO_FLUSH,this._finishFlushFlag=T.finishFlush!==void 0?T.finishFlush:_.Z_FINISH,T.chunkSize&&(T.chunkSize<v.Z_MIN_CHUNK||T.chunkSize>v.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+T.chunkSize);if(T.windowBits&&(T.windowBits<v.Z_MIN_WINDOWBITS||T.windowBits>v.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+T.windowBits);if(T.level&&(T.level<v.Z_MIN_LEVEL||T.level>v.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+T.level);if(T.memLevel&&(T.memLevel<v.Z_MIN_MEMLEVEL||T.memLevel>v.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+T.memLevel);if(T.strategy&&T.strategy!=v.Z_FILTERED&&T.strategy!=v.Z_HUFFMAN_ONLY&&T.strategy!=v.Z_RLE&&T.strategy!=v.Z_FIXED&&T.strategy!=v.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+T.strategy);if(T.dictionary&&!S.isBuffer(T.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new _.Zlib(D);var W=this;this._hadError=!1,this._handle.onerror=function(X,tt){Y(W),W._hadError=!0;var nt=new Error(X);nt.errno=tt,nt.code=v.codes[tt],W.emit("error",nt)};var K=v.Z_DEFAULT_COMPRESSION;typeof T.level=="number"&&(K=T.level);var et=v.Z_DEFAULT_STRATEGY;typeof T.strategy=="number"&&(et=T.strategy),this._handle.init(T.windowBits||v.Z_DEFAULT_WINDOWBITS,K,T.memLevel||v.Z_DEFAULT_MEMLEVEL,et,T.dictionary),this._buffer=S.allocUnsafe(this._chunkSize),this._offset=0,this._level=K,this._strategy=et,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!H._handle},configurable:!0,enumerable:!0})}function Y(T,D){D&&Q.nextTick(D),T._handle&&(T._handle.close(),T._handle=null)}function C(T){T.emit("close")}Object.defineProperty(v,"codes",{enumerable:!0,value:Object.freeze($),writable:!1}),v.Deflate=R,v.Inflate=B,v.Gzip=V,v.Gunzip=J,v.DeflateRaw=F,v.InflateRaw=L,v.Unzip=U,v.createDeflate=function(T){return new R(T)},v.createInflate=function(T){return new B(T)},v.createDeflateRaw=function(T){return new F(T)},v.createInflateRaw=function(T){return new L(T)},v.createGzip=function(T){return new V(T)},v.createGunzip=function(T){return new J(T)},v.createUnzip=function(T){return new U(T)},v.deflate=function(T,D,H){return typeof D=="function"&&(H=D,D={}),A(new R(D),T,H)},v.deflateSync=function(T,D){return I(new R(D),T)},v.gzip=function(T,D,H){return typeof D=="function"&&(H=D,D={}),A(new V(D),T,H)},v.gzipSync=function(T,D){return I(new V(D),T)},v.deflateRaw=function(T,D,H){return typeof D=="function"&&(H=D,D={}),A(new F(D),T,H)},v.deflateRawSync=function(T,D){return I(new F(D),T)},v.unzip=function(T,D,H){return typeof D=="function"&&(H=D,D={}),A(new U(D),T,H)},v.unzipSync=function(T,D){return I(new U(D),T)},v.inflate=function(T,D,H){return typeof D=="function"&&(H=D,D={}),A(new B(D),T,H)},v.inflateSync=function(T,D){return I(new B(D),T)},v.gunzip=function(T,D,H){return typeof D=="function"&&(H=D,D={}),A(new J(D),T,H)},v.gunzipSync=function(T,D){return I(new J(D),T)},v.inflateRaw=function(T,D,H){return typeof D=="function"&&(H=D,D={}),A(new L(D),T,H)},v.inflateRawSync=function(T,D){return I(new L(D),T)},M.inherits(q,w),q.prototype.params=function(T,D,H){if(T<v.Z_MIN_LEVEL||T>v.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+T);if(D!=v.Z_FILTERED&&D!=v.Z_HUFFMAN_ONLY&&D!=v.Z_RLE&&D!=v.Z_FIXED&&D!=v.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+D);if(this._level!==T||this._strategy!==D){var W=this;this.flush(_.Z_SYNC_FLUSH,function(){z(W._handle,"zlib binding closed"),W._handle.params(T,D),W._hadError||(W._level=T,W._strategy=D,H&&H())})}else Q.nextTick(H)},q.prototype.reset=function(){return z(this._handle,"zlib binding closed"),this._handle.reset()},q.prototype._flush=function(T){this._transform(S.alloc(0),"",T)},q.prototype.flush=function(T,D){var H=this,W=this._writableState;(typeof T=="function"||T===void 0&&!D)&&(D=T,T=_.Z_FULL_FLUSH),W.ended?D&&Q.nextTick(D):W.ending?D&&this.once("end",D):W.needDrain?D&&this.once("drain",function(){return H.flush(T,D)}):(this._flushFlag=T,this.write(S.alloc(0),"",D))},q.prototype.close=function(T){Y(this,T),Q.nextTick(C,this)},q.prototype._transform=function(T,D,H){var W,K=this._writableState,et=(K.ending||K.ended)&&(!T||K.length===T.length);return T===null||S.isBuffer(T)?this._handle?(et?W=this._finishFlushFlag:(W=this._flushFlag,T.length>=K.length&&(this._flushFlag=this._opts.flush||_.Z_NO_FLUSH)),void this._processChunk(T,W,H)):H(new Error("zlib binding closed")):H(new Error("invalid input"))},q.prototype._processChunk=function(T,D,H){var W=T&&T.length,K=this._chunkSize-this._offset,et=0,X=this,tt=typeof H=="function";if(!tt){var nt,ot=[],st=0;this.on("error",function(it){nt=it}),z(this._handle,"zlib binding closed");do var gt=this._handle.writeSync(D,T,et,W,this._buffer,this._offset,K);while(!this._hadError&&bt(gt[0],gt[1]));if(this._hadError)throw nt;if(st>=k)throw Y(this),new RangeError(E);var At=S.concat(ot,st);return Y(this),At}z(this._handle,"zlib binding closed");var vt=this._handle.write(D,T,et,W,this._buffer,this._offset,K);function bt(it,ht){if(this&&(this.buffer=null,this.callback=null),!X._hadError){var rt=K-ht;if(z(rt>=0,"have should not go down"),rt>0){var Rt=X._buffer.slice(X._offset,X._offset+rt);X._offset+=rt,tt?X.push(Rt):(ot.push(Rt),st+=Rt.length)}if((ht===0||X._offset>=X._chunkSize)&&(K=X._chunkSize,X._offset=0,X._buffer=S.allocUnsafe(X._chunkSize)),ht===0){if(et+=W-it,W=it,!tt)return!0;var mt=X._handle.write(D,T,et,W,X._buffer,X._offset,X._chunkSize);return mt.callback=bt,void(mt.buffer=T)}if(!tt)return!1;H()}}vt.buffer=T,vt.callback=bt},M.inherits(R,q),M.inherits(B,q),M.inherits(V,q),M.inherits(J,q),M.inherits(F,q),M.inherits(L,q),M.inherits(U,q)}(xs)),xs),a=at().MESSAGE,p=Yt(),h=p.Stream,d=p.PassThrough,b=le(),g=xe()("winston:file"),c=Dt(),y=Wf();return yr=function(v){function S(){var w,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};function M(z){for(var k=arguments.length,E=new Array(k>1?k-1:0),j=1;j<k;j++)E[j-1]=arguments[j];E.slice(1).forEach(function(x){if(_[x])throw new Error("Cannot set ".concat(x," and ").concat(z," together"))})}if(function(z,k){if(!(z instanceof k))throw new TypeError("Cannot call a class as a function")}(this,S),(w=s(this,S,[_])).name=_.name||"file",w._stream=new d,w._stream.setMaxListeners(30),w._onError=w._onError.bind(w),_.filename||_.dirname)M("filename or dirname","stream"),w._basename=w.filename=_.filename?u.basename(_.filename):"winston.log",w.dirname=_.dirname||u.dirname(_.filename),w.options=_.options||{flags:"a"};else{if(!_.stream)throw new Error("Cannot log to file without filename or stream.");console.warn("options.stream will be removed in winston@4. Use winston.transports.Stream"),M("stream","filename","maxsize"),w._dest=w._stream.pipe(w._setupStream(_.stream)),w.dirname=u.dirname(w._dest.path)}return w.maxsize=_.maxsize||null,w.rotationFormat=_.rotationFormat||!1,w.zippedArchive=_.zippedArchive||!1,w.maxFiles=_.maxFiles||null,w.eol=typeof _.eol=="string"?_.eol:c.EOL,w.tailable=_.tailable||!1,w.lazy=_.lazy||!1,w._size=0,w._pendingSize=0,w._created=0,w._drain=!1,w._opening=!1,w._ending=!1,w._fileExist=!1,w.dirname&&w._createLogDirIfNotExist(w.dirname),w.lazy||w.open(),w}return function(w,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(_&&_.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),Object.defineProperty(w,"prototype",{writable:!1}),_&&n(w,_)}(S,v),f(S,[{key:"finishIfEnding",value:function(){var w=this;this._ending&&(this._opening?this.once("open",function(){w._stream.once("finish",function(){return w.emit("finish")}),setImmediate(function(){return w._stream.end()})}):(this._stream.once("finish",function(){return w.emit("finish")}),setImmediate(function(){return w._stream.end()})))}},{key:"log",value:function(w){var _=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};if(this.silent)return M(),!0;if(this._drain)this._stream.once("drain",function(){_._drain=!1,_.log(w,M)});else{if(!this._rotate){if(this.lazy){if(!this._fileExist)return this._opening||this.open(),void this.once("open",function(){_._fileExist=!0,_.log(w,M)});if(this._needsNewFile(this._pendingSize))return void this._dest.once("close",function(){_._opening||_.open(),_.once("open",function(){_.log(w,M)})})}var z="".concat(w[a]).concat(this.eol),k=dt.byteLength(z);this._pendingSize+=k,this._opening&&!this.rotatedWhileOpening&&this._needsNewFile(this._size+this._pendingSize)&&(this.rotatedWhileOpening=!0);var E=this._stream.write(z,(function(){var j=this;this._size+=k,this._pendingSize-=k,g("logged %s %s",this._size,z),this.emit("logged",w),this._rotate||this._opening||this._needsNewFile()&&(this.lazy?this._endStream(function(){j.emit("fileclosed")}):(this._rotate=!0,this._endStream(function(){return j._rotateFile()})))}).bind(this));return E?M():(this._drain=!0,this._stream.once("drain",function(){_._drain=!1,M()})),g("written",E,this._drain),this.finishIfEnding(),E}this._stream.once("rotate",function(){_._rotate=!1,_.log(w,M)})}}},{key:"query",value:function(w,_){typeof w=="function"&&(_=w,w={}),w=function(O){return O=O||{},O.rows=O.rows||O.limit||10,O.start=O.start||0,O.until=O.until||new Date,t(O.until)!=="object"&&(O.until=new Date(O.until)),O.from=O.from||O.until-864e5,t(O.from)!=="object"&&(O.from=new Date(O.from)),O.order=O.order||"desc",O}(w);var M=u.join(this.dirname,this.filename),z="",k=[],E=0,j=i.createReadStream(M,{encoding:"utf8"});function x(O,$){try{var N=JSON.parse(O);(function(P){if(P&&t(P)==="object"){var G=new Date(P.timestamp);if(!(w.from&&G<w.from||w.until&&G>w.until||w.level&&w.level!==P.level))return!0}})(N)&&function(P){if(w.rows&&k.length>=w.rows&&w.order!=="desc")return void(j.readable&&j.destroy());w.fields&&(P=w.fields.reduce(function(G,A){return G[A]=P[A],G},{})),w.order==="desc"&&k.length>=w.rows&&k.shift(),k.push(P)}(N)}catch(P){$||j.emit("error",P)}}j.on("error",function(O){if(j.readable&&j.destroy(),_)return O.code!=="ENOENT"?_(O):_(null,k)}),j.on("data",function(O){for(var $=(O=(z+O).split(/\n+/)).length-1,N=0;N<$;N++)(!w.start||E>=w.start)&&x(O[N]),E++;z=O[$]}),j.on("close",function(){z&&x(z,!0),w.order==="desc"&&(k=k.reverse()),_&&_(null,k)})}},{key:"stream",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=u.join(this.dirname,this.filename),M=new h,z={file:_,start:w.start};return M.destroy=y(z,function(k,E){if(k)return M.emit("error",k);try{M.emit("data",E),E=JSON.parse(E),M.emit("log",E)}catch(j){M.emit("error",j)}}),M}},{key:"open",value:function(){var w=this;this.filename&&(this._opening||(this._opening=!0,this.stat(function(_,M){if(_)return w.emit("error",_);g("stat done: %s { size: %s }",w.filename,M),w._size=M,w._dest=w._createStream(w._stream),w._opening=!1,w.once("open",function(){w._stream.emit("rotate")||(w._rotate=!1)})})))}},{key:"stat",value:function(w){var _=this,M=this._getFile(),z=u.join(this.dirname,M);i.stat(z,function(k,E){return k&&k.code==="ENOENT"?(g("ENOENT ok",z),_.filename=M,w(null,0)):k?(g("err ".concat(k.code," ").concat(z)),w(k)):!E||_._needsNewFile(E.size)?_._incFile(function(){return _.stat(w)}):(_.filename=M,void w(null,E.size))})}},{key:"close",value:function(w){var _=this;this._stream&&this._stream.end(function(){w&&w(),_.emit("flush"),_.emit("closed")})}},{key:"_needsNewFile",value:function(w){return w=w||this._size,this.maxsize&&w>=this.maxsize}},{key:"_onError",value:function(w){this.emit("error",w)}},{key:"_setupStream",value:function(w){return w.on("error",this._onError),w}},{key:"_cleanupStream",value:function(w){return w.removeListener("error",this._onError),w.destroy(),w}},{key:"_rotateFile",value:function(){var w=this;this._incFile(function(){return w.open()})}},{key:"_endStream",value:function(){var w=this,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};this._dest?(this._stream.unpipe(this._dest),this._dest.end(function(){w._cleanupStream(w._dest),_()})):_()}},{key:"_createStream",value:function(w){var _=this,M=u.join(this.dirname,this.filename);g("create stream start",M,this.options);var z=i.createWriteStream(M,this.options).on("error",function(k){return g(k)}).on("close",function(){return g("close",z.path,z.bytesWritten)}).on("open",function(){g("file open ok",M),_.emit("open",M),w.pipe(z),_.rotatedWhileOpening&&(_._stream=new d,_._stream.setMaxListeners(30),_._rotateFile(),_.rotatedWhileOpening=!1,_._cleanupStream(z),w.end())});return g("create stream ok",M),z}},{key:"_incFile",value:function(w){g("_incFile",this.filename);var _=u.extname(this._basename),M=u.basename(this._basename,_),z=[];this.zippedArchive&&z.push((function(k){var E=this._created>0&&!this.tailable?this._created:"";this._compressFile(u.join(this.dirname,"".concat(M).concat(E).concat(_)),u.join(this.dirname,"".concat(M).concat(E).concat(_,".gz")),k)}).bind(this)),z.push((function(k){this.tailable?this._checkMaxFilesTailable(_,M,k):(this._created+=1,this._checkMaxFilesIncrementing(_,M,k))}).bind(this)),r(z,w)}},{key:"_getFile",value:function(){var w=u.extname(this._basename),_=u.basename(this._basename,w),M=this.rotationFormat?this.rotationFormat():this._created;return!this.tailable&&this._created?"".concat(_).concat(M).concat(w):"".concat(_).concat(w)}},{key:"_checkMaxFilesIncrementing",value:function(w,_,M){if(!this.maxFiles||this._created<this.maxFiles)return setImmediate(M);var z=this._created-this.maxFiles,k=z!==0?z:"",E=this.zippedArchive?".gz":"",j="".concat(_).concat(k).concat(w).concat(E),x=u.join(this.dirname,j);i.unlink(x,M)}},{key:"_checkMaxFilesTailable",value:function(w,_,M){var z=this,k=[];if(this.maxFiles){for(var E=this.zippedArchive?".gz":"",j=this.maxFiles-1;j>1;j--)k.push((function(x,O){var $=this,N="".concat(_).concat(x-1).concat(w).concat(E),P=u.join(this.dirname,N);i.exists(P,function(G){if(!G)return O(null);N="".concat(_).concat(x).concat(w).concat(E),i.rename(P,u.join($.dirname,N),O)})}).bind(this,j));r(k,function(){i.rename(u.join(z.dirname,"".concat(_).concat(w).concat(E)),u.join(z.dirname,"".concat(_,"1").concat(w).concat(E)),M)})}}},{key:"_compressFile",value:function(w,_,M){i.access(w,i.F_OK,function(z){if(z)return M();var k=e.createGzip(),E=i.createReadStream(w),j=i.createWriteStream(_);j.on("finish",function(){i.unlink(w,M)}),E.pipe(k).pipe(j)})}},{key:"_createLogDirIfNotExist",value:function(w){i.existsSync(w)||i.mkdirSync(w,{recursive:!0})}}])}(b),yr}function Xf(){if($s)return gr;function t(b){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},t(b)}function f(b,g){var c=Object.keys(b);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(b);g&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(b,v).enumerable})),c.push.apply(c,y)}return c}function m(b){for(var g=1;g<arguments.length;g++){var c=arguments[g]!=null?arguments[g]:{};g%2?f(Object(c),!0).forEach(function(y){s(b,y,c[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(c)):f(Object(c)).forEach(function(y){Object.defineProperty(b,y,Object.getOwnPropertyDescriptor(c,y))})}return b}function s(b,g,c){return(g=o(g))in b?Object.defineProperty(b,g,{value:c,enumerable:!0,configurable:!0,writable:!0}):b[g]=c,b}function l(b,g,c){return g&&function(y,v){for(var S=0;S<v.length;S++){var w=v[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,o(w.key),w)}}(b.prototype,g),Object.defineProperty(b,"prototype",{writable:!1}),b}function o(b){var g=function(c,y){if(t(c)!="object"||!c)return c;var v=c[Symbol.toPrimitive];if(v!==void 0){var S=v.call(c,y);if(t(S)!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)}(b,"string");return t(g)=="symbol"?g:g+""}function n(b,g,c){return g=u(g),function(y,v){if(v&&(t(v)=="object"||typeof v=="function"))return v;if(v!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}(y)}(b,i()?Reflect.construct(g,c||[],u(b).constructor):g.apply(b,c))}function i(){try{var b=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i=function(){return!!b})()}function u(b){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(g){return g.__proto__||Object.getPrototypeOf(g)},u(b)}function r(b,g){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,y){return c.__proto__=y,c},r(b,g)}$s=1;var e=Gl(),a=zl(),p=Yt().Stream,h=le(),d=ce().configure;return gr=function(b){function g(){var c,y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(v,S){if(!(v instanceof S))throw new TypeError("Cannot call a class as a function")}(this,g),(c=n(this,g,[y])).options=y,c.name=y.name||"http",c.ssl=!!y.ssl,c.host=y.host||"localhost",c.port=y.port,c.auth=y.auth,c.path=y.path||"",c.maximumDepth=y.maximumDepth,c.agent=y.agent,c.headers=y.headers||{},c.headers["content-type"]="application/json",c.batch=y.batch||!1,c.batchInterval=y.batchInterval||5e3,c.batchCount=y.batchCount||10,c.batchOptions=[],c.batchTimeoutID=-1,c.batchCallback={},c.port||(c.port=c.ssl?443:80),c}return function(c,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(y&&y.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),y&&r(c,y)}(g,b),l(g,[{key:"log",value:function(c,y){var v=this;this._request(c,null,null,function(S,w){w&&w.statusCode!==200&&(S=new Error("Invalid HTTP Status Code: ".concat(w.statusCode))),S?v.emit("warn",S):v.emit("logged",c)}),y&&setImmediate(y)}},{key:"query",value:function(c,y){typeof c=="function"&&(y=c,c={});var v=(c={method:"query",params:this.normalizeQuery(c)}).params.auth||null;delete c.params.auth;var S=c.params.path||null;delete c.params.path,this._request(c,v,S,function(w,_,M){if(_&&_.statusCode!==200&&(w=new Error("Invalid HTTP Status Code: ".concat(_.statusCode))),w)return y(w);if(typeof M=="string")try{M=JSON.parse(M)}catch(z){return y(z)}y(null,M)})}},{key:"stream",value:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=new p,v=(c={method:"stream",params:c}).params.path||null;delete c.params.path;var S=c.params.auth||null;delete c.params.auth;var w="",_=this._request(c,S,v);return y.destroy=function(){return _.destroy()},_.on("data",function(M){for(var z=(M=(w+M).split(/\n+/)).length-1,k=0;k<z;k++)try{y.emit("log",JSON.parse(M[k]))}catch(E){y.emit("error",E)}w=M[z]}),_.on("error",function(M){return y.emit("error",M)}),y}},{key:"_request",value:function(c,y,v,S){c=c||{},y=y||this.auth,v=v||this.path||"",this.batch?this._doBatch(c,S,y,v):this._doRequest(c,S,y,v)}},{key:"_doBatch",value:function(c,y,v,S){if(this.batchOptions.push(c),this.batchOptions.length===1){var w=this;this.batchCallback=y,this.batchTimeoutID=setTimeout(function(){w.batchTimeoutID=-1,w._doBatchRequest(w.batchCallback,v,S)},this.batchInterval)}this.batchOptions.length===this.batchCount&&this._doBatchRequest(this.batchCallback,v,S)}},{key:"_doBatchRequest",value:function(c,y,v){this.batchTimeoutID>0&&(clearTimeout(this.batchTimeoutID),this.batchTimeoutID=-1);var S=this.batchOptions.slice();this.batchOptions=[],this._doRequest(S,c,y,v)}},{key:"_doRequest",value:function(c,y,v,S){var w=Object.assign({},this.headers);v&&v.bearer&&(w.Authorization="Bearer ".concat(v.bearer));var _=(this.ssl?a:e).request(m(m({},this.options),{},{method:"POST",host:this.host,port:this.port,path:"/".concat(S.replace(/^\//,"")),headers:w,auth:v&&v.username&&v.password?"".concat(v.username,":").concat(v.password):"",agent:this.agent}));_.on("error",y),_.on("response",function(z){return z.on("end",function(){return y(null,z)}).resume()});var M=d(m({},this.maximumDepth&&{maximumDepth:this.maximumDepth}));_.end(dt.from(M(c,this.options.replacer),"utf8"))}}])}(h),gr}function ol(){if(Cs)return Ms;Cs=1;const t=f=>f!==null&&typeof f=="object"&&typeof f.pipe=="function";return t.writable=f=>t(f)&&f.writable!==!1&&typeof f._write=="function"&&typeof f._writableState=="object",t.readable=f=>t(f)&&f.readable!==!1&&typeof f._read=="function"&&typeof f._readableState=="object",t.duplex=f=>t.writable(f)&&t.readable(f),t.transform=f=>t.duplex(f)&&typeof f._transform=="function",Ms=t}function Qf(){if(Ds)return vr;function t(a){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},t(a)}function f(a,p,h){return p&&function(d,b){for(var g=0;g<b.length;g++){var c=b[g];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(d,m(c.key),c)}}(a.prototype,p),Object.defineProperty(a,"prototype",{writable:!1}),a}function m(a){var p=function(h,d){if(t(h)!="object"||!h)return h;var b=h[Symbol.toPrimitive];if(b!==void 0){var g=b.call(h,d);if(t(g)!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(h)}(a,"string");return t(p)=="symbol"?p:p+""}function s(a,p,h){return p=o(p),function(d,b){if(b&&(t(b)=="object"||typeof b=="function"))return b;if(b!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}(d)}(a,l()?Reflect.construct(p,h||[],o(a).constructor):p.apply(a,h))}function l(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l=function(){return!!a})()}function o(a){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},o(a)}function n(a,p){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,d){return h.__proto__=d,h},n(a,p)}Ds=1;var i=ol(),u=at().MESSAGE,r=Dt(),e=le();return vr=function(a){function p(){var h,d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(function(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}(this,p),h=s(this,p,[d]),!d.stream||!i(d.stream))throw new Error("options.stream is required.");return h._stream=d.stream,h._stream.setMaxListeners(1/0),h.isObjectMode=d.stream._writableState.objectMode,h.eol=typeof d.eol=="string"?d.eol:r.EOL,h}return function(h,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),Object.defineProperty(h,"prototype",{writable:!1}),d&&n(h,d)}(p,a),f(p,[{key:"log",value:function(h,d){var b=this;if(setImmediate(function(){return b.emit("logged",h)}),this.isObjectMode)return this._stream.write(h),void(d&&d());this._stream.write("".concat(h[u]).concat(this.eol)),d&&d()}}])}(e),vr}var Us,zt={};function fn(){if(Us)return zt;Us=1;var t=Xc(),f=at().configs;return zt.cli=t.levels(f.cli),zt.npm=t.levels(f.npm),zt.syslog=t.levels(f.syslog),zt.addColors=t.levels,zt}var qs,br={exports:{}},wr={exports:{}},Gs,zs,Zs,Hs,Er,Vs,_r={exports:{}};function hn(){return zs||(zs=1,function(t,f){Object.defineProperty(f,"__esModule",{value:!0});var m=(qs||(qs=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0});var a=y(ln()),p=y(on()),h=y(nl()),d=y(el()),b=y(rl()),g=y(Ht()),c=y(se());function y(w){return w&&w.__esModule?w:{default:w}}function v(w,_,M){M=(0,d.default)(M);var z=0,k=0,{length:E}=w,j=!1;function x(O,$){O===!1&&(j=!0),j!==!0&&(O?M(O):++k!==E&&$!==p.default||M(null))}for(E===0&&M(null);z<E;z++)_(w[z],z,(0,b.default)(x))}function S(w,_,M){return(0,h.default)(w,1/0,_,M)}e.default=(0,c.default)(function(w,_,M){return((0,a.default)(w)?v:S)(w,(0,g.default)(_),M)},3),r.exports=e.default}(wr,wr.exports)),wr.exports),s=u(m),l=function(){return Gs||(Gs=1,r=_r,e=_r.exports,Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(a){return(p,h,d)=>a(p,d)},r.exports=e.default),_r.exports;var r,e}(),o=u(l),n=u(Ht()),i=u(se());function u(r){return r&&r.__esModule?r:{default:r}}f.default=(0,i.default)(function(r,e,a){return(0,s.default)(r,(0,o.default)((0,n.default)(e)),a)},3),t.exports=f.default}(br,br.exports)),br.exports}function il(){if(Vs)return Er;Vs=1;var t=function(){if(Hs)return Zs;Hs=1;var f=Object.prototype.toString;return Zs=function(m){if(typeof m.displayName=="string"&&m.constructor.name)return m.displayName;if(typeof m.name=="string"&&m.name)return m.name;if(typeof m=="object"&&m.constructor&&typeof m.constructor.name=="string")return m.constructor.name;var s=m.toString(),l=f.call(m).slice(8,-1);return(s=l==="Function"?s.substring(s.indexOf("(")+1,s.indexOf(")")):l)||"anonymous"}}();return Er=function(f){var m,s=0;function l(){return s||(s=1,m=f.apply(this,arguments),f=null),m}return l.displayName=t(f),l},Er}var Ys,Ks,Ws,Sr,Js,Xs,Qs,Or,ta,ea={};function sl(){return Ys||(Ys=1,function(t){function f(m){for(var s in m)this[s]=m[s]}t.get=function(m){var s=Error.stackTraceLimit;Error.stackTraceLimit=1/0;var l={},o=Error.prepareStackTrace;Error.prepareStackTrace=function(i,u){return u},Error.captureStackTrace(l,m||t.get);var n=l.stack;return Error.prepareStackTrace=o,Error.stackTraceLimit=s,n},t.parse=function(m){if(!m.stack)return[];var s=this;return m.stack.split(`
86
- `).slice(1).map(function(l){if(l.match(/^\s*[-]{4,}$/))return s._createParsedCallSite({fileName:l,lineNumber:null,functionName:null,typeName:null,methodName:null,columnNumber:null,native:null});var o=l.match(/at (?:(.+)\s+\()?(?:(.+?):(\d+)(?::(\d+))?|([^)]+))\)?/);if(o){var n=null,i=null,u=null,r=null,e=null,a=o[5]==="native";if(o[1]){var p=(u=o[1]).lastIndexOf(".");if(u[p-1]=="."&&p--,p>0){n=u.substr(0,p),i=u.substr(p+1);var h=n.indexOf(".Module");h>0&&(u=u.substr(h+1),n=n.substr(0,h))}r=null}i&&(r=n,e=i),i==="<anonymous>"&&(e=null,u=null);var d={fileName:o[2]||null,lineNumber:parseInt(o[3],10)||null,functionName:u,typeName:r,methodName:e,columnNumber:parseInt(o[4],10)||null,native:a};return s._createParsedCallSite(d)}}).filter(function(l){return!!l})},["this","typeName","functionName","methodName","fileName","lineNumber","columnNumber","function","evalOrigin"].forEach(function(m){f.prototype[m]=null,f.prototype["get"+m[0].toUpperCase()+m.substr(1)]=function(){return this[m]}}),["topLevel","eval","native","constructor"].forEach(function(m){f.prototype[m]=!1,f.prototype["is"+m[0].toUpperCase()+m.substr(1)]=function(){return this[m]}}),t._createParsedCallSite=function(m){return new f(m)}}(ea)),ea}function th(){if(Ws)return Ks;function t(u){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},t(u)}function f(u,r,e){return r&&function(a,p){for(var h=0;h<p.length;h++){var d=p[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,m(d.key),d)}}(u.prototype,r),Object.defineProperty(u,"prototype",{writable:!1}),u}function m(u){var r=function(e,a){if(t(e)!="object"||!e)return e;var p=e[Symbol.toPrimitive];if(p!==void 0){var h=p.call(e,a);if(t(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(u,"string");return t(r)=="symbol"?r:r+""}function s(u,r,e){return r=o(r),function(a,p){if(p&&(t(p)=="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(a)}(u,l()?Reflect.construct(r,e||[],o(u).constructor):r.apply(u,e))}function l(){try{var u=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l=function(){return!!u})()}function o(u){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},o(u)}function n(u,r){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,a){return e.__proto__=a,e},n(u,r)}Ws=1;var i=Yt().Writable;return Ks=function(u){function r(e){var a;if(function(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}(this,r),a=s(this,r,[{objectMode:!0}]),!e)throw new Error("ExceptionStream requires a TransportStream instance.");return a.handleExceptions=!0,a.transport=e,a}return function(e,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),a&&n(e,a)}(r,u),f(r,[{key:"_write",value:function(e,a,p){return e.exception?this.transport.log(e,p):(p(),!0)}}])}(i)}function al(){if(Js)return Sr;function t(r){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(r)}function f(r,e,a){return e&&function(p,h){for(var d=0;d<h.length;d++){var b=h[d];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,m(b.key),b)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function m(r){var e=function(a,p){if(t(a)!="object"||!a)return a;var h=a[Symbol.toPrimitive];if(h!==void 0){var d=h.call(a,p);if(t(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(r,"string");return t(e)=="symbol"?e:e+""}Js=1;var s=Dt(),l=hn(),o=xe()("winston:exception"),n=il(),i=sl(),u=th();return Sr=function(){return f(function r(e){if(function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")}(this,r),!e)throw new Error("Logger is required to handle exceptions");this.logger=e,this.handlers=new Map},[{key:"handle",value:function(){for(var r=this,e=arguments.length,a=new Array(e),p=0;p<e;p++)a[p]=arguments[p];a.forEach(function(h){if(Array.isArray(h))return h.forEach(function(d){return r._addHandler(d)});r._addHandler(h)}),this.catcher||(this.catcher=this._uncaughtException.bind(this),Q.on("uncaughtException",this.catcher))}},{key:"unhandle",value:function(){var r=this;this.catcher&&(Q.removeListener("uncaughtException",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(function(e){return r.logger.unpipe(e)}))}},{key:"getAllInfo",value:function(r){var e=null;return r&&(e=typeof r=="string"?r:r.message),{error:r,level:"error",message:["uncaughtException: ".concat(e||"(no error message)"),r&&r.stack||" No stack trace"].join(`
87
- `),stack:r&&r.stack,exception:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(r)}}},{key:"getProcessInfo",value:function(){return{pid:Q.pid,uid:Q.getuid?Q.getuid():null,gid:Q.getgid?Q.getgid():null,cwd:Q.cwd(),execPath:Q.execPath,version:Q.version,argv:Q.argv,memoryUsage:Q.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:s.loadavg(),uptime:s.uptime()}}},{key:"getTrace",value:function(r){return(r?i.parse(r):i.get()).map(function(e){return{column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()}})}},{key:"_addHandler",value:function(r){if(!this.handlers.has(r)){r.handleExceptions=!0;var e=new u(r);this.handlers.set(r,e),this.logger.pipe(e)}}},{key:"_uncaughtException",value:function(r){var e,a=this.getAllInfo(r),p=this._getExceptionHandlers(),h=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(r):this.logger.exitOnError;function d(){o("doExit",h),o("process._exiting",Q._exiting),h&&!Q._exiting&&(e&&clearTimeout(e),Q.exit(1))}if(!p.length&&h&&(console.warn("winston: exitOnError cannot be true with no exception handlers."),console.warn("winston: not exiting process."),h=!1),!p||p.length===0)return Q.nextTick(d);l(p,function(b,g){var c=n(g),y=b.transport||b;function v(S){return function(){o(S),c()}}y._ending=!0,y.once("finish",v("finished")),y.once("error",v("error"))},function(){return h&&d()}),this.logger.log(a),h&&(e=setTimeout(d,3e3))}},{key:"_getExceptionHandlers",value:function(){return this.logger.transports.filter(function(r){return(r.transport||r).handleExceptions})}}])}(),Sr}function eh(){if(Qs)return Xs;function t(u){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},t(u)}function f(u,r,e){return r&&function(a,p){for(var h=0;h<p.length;h++){var d=p[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,m(d.key),d)}}(u.prototype,r),Object.defineProperty(u,"prototype",{writable:!1}),u}function m(u){var r=function(e,a){if(t(e)!="object"||!e)return e;var p=e[Symbol.toPrimitive];if(p!==void 0){var h=p.call(e,a);if(t(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(u,"string");return t(r)=="symbol"?r:r+""}function s(u,r,e){return r=o(r),function(a,p){if(p&&(t(p)=="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(a)}(u,l()?Reflect.construct(r,e||[],o(u).constructor):r.apply(u,e))}function l(){try{var u=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l=function(){return!!u})()}function o(u){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},o(u)}function n(u,r){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,a){return e.__proto__=a,e},n(u,r)}Qs=1;var i=Yt().Writable;return Xs=function(u){function r(e){var a;if(function(p,h){if(!(p instanceof h))throw new TypeError("Cannot call a class as a function")}(this,r),a=s(this,r,[{objectMode:!0}]),!e)throw new Error("RejectionStream requires a TransportStream instance.");return a.handleRejections=!0,a.transport=e,a}return function(e,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),a&&n(e,a)}(r,u),f(r,[{key:"_write",value:function(e,a,p){return e.rejection?this.transport.log(e,p):(p(),!0)}}])}(i)}function ul(){if(ta)return Or;function t(r){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(r)}function f(r,e,a){return e&&function(p,h){for(var d=0;d<h.length;d++){var b=h[d];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,m(b.key),b)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function m(r){var e=function(a,p){if(t(a)!="object"||!a)return a;var h=a[Symbol.toPrimitive];if(h!==void 0){var d=h.call(a,p);if(t(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(r,"string");return t(e)=="symbol"?e:e+""}ta=1;var s=Dt(),l=hn(),o=xe()("winston:rejection"),n=il(),i=sl(),u=eh();return Or=function(){return f(function r(e){if(function(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")}(this,r),!e)throw new Error("Logger is required to handle rejections");this.logger=e,this.handlers=new Map},[{key:"handle",value:function(){for(var r=this,e=arguments.length,a=new Array(e),p=0;p<e;p++)a[p]=arguments[p];a.forEach(function(h){if(Array.isArray(h))return h.forEach(function(d){return r._addHandler(d)});r._addHandler(h)}),this.catcher||(this.catcher=this._unhandledRejection.bind(this),Q.on("unhandledRejection",this.catcher))}},{key:"unhandle",value:function(){var r=this;this.catcher&&(Q.removeListener("unhandledRejection",this.catcher),this.catcher=!1,Array.from(this.handlers.values()).forEach(function(e){return r.logger.unpipe(e)}))}},{key:"getAllInfo",value:function(r){var e=null;return r&&(e=typeof r=="string"?r:r.message),{error:r,level:"error",message:["unhandledRejection: ".concat(e||"(no error message)"),r&&r.stack||" No stack trace"].join(`
88
- `),stack:r&&r.stack,rejection:!0,date:new Date().toString(),process:this.getProcessInfo(),os:this.getOsInfo(),trace:this.getTrace(r)}}},{key:"getProcessInfo",value:function(){return{pid:Q.pid,uid:Q.getuid?Q.getuid():null,gid:Q.getgid?Q.getgid():null,cwd:Q.cwd(),execPath:Q.execPath,version:Q.version,argv:Q.argv,memoryUsage:Q.memoryUsage()}}},{key:"getOsInfo",value:function(){return{loadavg:s.loadavg(),uptime:s.uptime()}}},{key:"getTrace",value:function(r){return(r?i.parse(r):i.get()).map(function(e){return{column:e.getColumnNumber(),file:e.getFileName(),function:e.getFunctionName(),line:e.getLineNumber(),method:e.getMethodName(),native:e.isNative()}})}},{key:"_addHandler",value:function(r){if(!this.handlers.has(r)){r.handleRejections=!0;var e=new u(r);this.handlers.set(r,e),this.logger.pipe(e)}}},{key:"_unhandledRejection",value:function(r){var e,a=this.getAllInfo(r),p=this._getRejectionHandlers(),h=typeof this.logger.exitOnError=="function"?this.logger.exitOnError(r):this.logger.exitOnError;function d(){o("doExit",h),o("process._exiting",Q._exiting),h&&!Q._exiting&&(e&&clearTimeout(e),Q.exit(1))}if(!p.length&&h&&(console.warn("winston: exitOnError cannot be true with no rejection handlers."),console.warn("winston: not exiting process."),h=!1),!p||p.length===0)return Q.nextTick(d);l(p,function(b,g){var c=n(g),y=b.transport||b;function v(S){return function(){o(S),c()}}y._ending=!0,y.once("finish",v("finished")),y.once("error",v("error"))},function(){return h&&d()}),this.logger.log(a),h&&(e=setTimeout(d,3e3))}},{key:"_getRejectionHandlers",value:function(){return this.logger.transports.filter(function(r){return(r.transport||r).handleRejections})}}])}(),Or}var ra,na,oa,ia,sa,aa,ua,ca,la,fa,jr,ha,xr,pa,da,kr={exports:{}},Tr={exports:{}};function rh(){if(na)return kr.exports;na=1;const t=lt(),{LEVEL:f}=at(),m=function(){if(ra)return Tr.exports;ra=1;const l=lt(),o=Ic(),{LEVEL:n}=at(),i=Tr.exports=function(u={}){o.call(this,{objectMode:!0,highWaterMark:u.highWaterMark}),this.format=u.format,this.level=u.level,this.handleExceptions=u.handleExceptions,this.handleRejections=u.handleRejections,this.silent=u.silent,u.log&&(this.log=u.log),u.logv&&(this.logv=u.logv),u.close&&(this.close=u.close),this.once("pipe",r=>{this.levels=r.levels,this.parent=r}),this.once("unpipe",r=>{r===this.parent&&(this.parent=null,this.close&&this.close())})};return l.inherits(i,o),i.prototype._write=function(u,r,e){if(this.silent||u.exception===!0&&!this.handleExceptions)return e(null);const a=this.level||this.parent&&this.parent.level;if(!a||this.levels[a]>=this.levels[u[n]]){if(u&&!this.format)return this.log(u,e);let p,h;try{h=this.format.transform(Object.assign({},u),this.format.options)}catch(d){p=d}if(p||!h){if(e(),p)throw p;return}return this.log(h,e)}return this._writableState.sync=!1,e(null)},i.prototype._writev=function(u,r){if(this.logv){const e=u.filter(this._accept,this);return e.length?this.logv(e,r):r(null)}for(let e=0;e<u.length;e++){if(!this._accept(u[e]))continue;if(u[e].chunk&&!this.format){this.log(u[e].chunk,u[e].callback);continue}let a,p;try{p=this.format.transform(Object.assign({},u[e].chunk),this.format.options)}catch(h){a=h}if(a||!p){if(u[e].callback(),a)throw r(null),a}else this.log(p,u[e].callback)}return r(null)},i.prototype._accept=function(u){const r=u.chunk;if(this.silent)return!1;const e=this.level||this.parent&&this.parent.level;return!(r.exception!==!0&&e&&!(this.levels[e]>=this.levels[r[n]])||!this.handleExceptions&&r.exception===!0)},i.prototype._nop=function(){},Tr.exports}(),s=kr.exports=function(l={}){if(m.call(this,l),!l.transport||typeof l.transport.log!="function")throw new Error("Invalid transport, must be an object with a log method.");this.transport=l.transport,this.level=this.level||l.transport.level,this.handleExceptions=this.handleExceptions||l.transport.handleExceptions,this._deprecated(),this.transport.__winstonError||(this.transport.__winstonError=(function(o){this.emit("error",o,this.transport)}).bind(this),this.transport.on("error",this.transport.__winstonError))};return t.inherits(s,m),s.prototype._write=function(l,o,n){if(this.silent||l.exception===!0&&!this.handleExceptions)return n(null);(!this.level||this.levels[this.level]>=this.levels[l[f]])&&this.transport.log(l[f],l.message,l,this._nop),n(null)},s.prototype._writev=function(l,o){for(let n=0;n<l.length;n++)this._accept(l[n])&&(this.transport.log(l[n].chunk[f],l[n].chunk.message,l[n].chunk,this._nop),l[n].callback());return o(null)},s.prototype._deprecated=function(){console.error([`${this.transport.name} is a legacy winston transport. Consider upgrading: `,"- Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md"].join(`
89
- `))},s.prototype.close=function(){this.transport.close&&this.transport.close(),this.transport.__winstonError&&(this.transport.removeListener("error",this.transport.__winstonError),this.transport.__winstonError=null)},kr.exports}function nh(){if(ia)return oa;function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t(l)}function f(l,o,n){return o&&function(i,u){for(var r=0;r<u.length;r++){var e=u[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,m(e.key),e)}}(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function m(l){var o=function(n,i){if(t(n)!="object"||!n)return n;var u=n[Symbol.toPrimitive];if(u!==void 0){var r=u.call(n,i);if(t(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(l,"string");return t(o)=="symbol"?o:o+""}ia=1;var s=function(){return f(function l(o){(function(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")})(this,l);var n=pn();if(t(o)!=="object"||Array.isArray(o)||!(o instanceof n))throw new Error("Logger is required for profiling");this.logger=o,this.start=Date.now()},[{key:"done",value:function(){for(var l=arguments.length,o=new Array(l),n=0;n<l;n++)o[n]=arguments[n];typeof o[o.length-1]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),o.pop());var i=t(o[o.length-1])==="object"?o.pop():{};return i.level=i.level||"info",i.durationMs=Date.now()-this.start,this.logger.write(i)}}])}();return oa=s}function oh(){if(aa)return sa;aa=1;class t extends Error{constructor(m){super(`Format functions must be synchronous taking a two arguments: (info, opts)
90
- Found: ${m.toString().split(`
91
- `)[0]}
92
- `),Error.captureStackTrace(this,t)}}return sa=f=>{if(f.length>2)throw new t(f);function m(l={}){this.options=l}function s(l){return new m(l)}return m.prototype.transform=f,s.Format=m,s}}function pn(){if(fa)return la;function t(k,E,j){return(E=s(E))in k?Object.defineProperty(k,E,{value:j,enumerable:!0,configurable:!0,writable:!0}):k[E]=j,k}function f(k){return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},f(k)}function m(k,E,j){return E&&function(x,O){for(var $=0;$<O.length;$++){var N=O[$];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(x,s(N.key),N)}}(k.prototype,E),Object.defineProperty(k,"prototype",{writable:!1}),k}function s(k){var E=function(j,x){if(f(j)!="object"||!j)return j;var O=j[Symbol.toPrimitive];if(O!==void 0){var $=O.call(j,x);if(f($)!="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(j)}(k,"string");return f(E)=="symbol"?E:E+""}function l(k,E,j){return E=n(E),function(x,O){if(O&&(f(O)=="object"||typeof O=="function"))return O;if(O!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}(x)}(k,o()?Reflect.construct(E,j||[],n(k).constructor):E.apply(k,j))}function o(){try{var k=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o=function(){return!!k})()}function n(k){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(E){return E.__proto__||Object.getPrototypeOf(E)},n(k)}function i(k,E){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(j,x){return j.__proto__=x,j},i(k,E)}fa=1;var u=Yt(),r=u.Stream,e=u.Transform,a=hn(),p=at(),h=p.LEVEL,d=p.SPLAT,b=ol(),g=al(),c=ul(),y=rh(),v=nh(),S=Qc().warn,w=fn(),_=/%[scdjifoO%]/g,M=function(k){function E(j){var x;return function(O,$){if(!(O instanceof $))throw new TypeError("Cannot call a class as a function")}(this,E),(x=l(this,E,[{objectMode:!0}])).configure(j),x}return function(j,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(x&&x.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),x&&i(j,x)}(E,k),m(E,[{key:"child",value:function(j){var x=this;return Object.create(x,{write:{value:function(O){var $=Object.assign({},j,O);O instanceof Error&&($.stack=O.stack,$.message=O.message),x.write($)}}})}},{key:"configure",value:function(){var j=this,x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=x.silent,$=x.format,N=x.defaultMeta,P=x.levels,G=x.level,A=G===void 0?"info":G,I=x.exitOnError,R=I===void 0||I,B=x.transports,V=x.colors,J=x.emitErrs,F=x.formatters,L=x.padLevels,U=x.rewriters,Z=x.stripColors,q=x.exceptionHandlers,Y=x.rejectionHandlers;if(this.transports.length&&this.clear(),this.silent=O,this.format=$||this.format||function(){if(ca)return ua;ca=1;const C=oh(),{MESSAGE:T}=at(),D=ce();function H(W,K){return typeof K=="bigint"?K.toString():K}return ua=C((W,K)=>{const et=D.configure(K);return W[T]=et(W,K.replacer||H,K.space),W})}()(),this.defaultMeta=N||null,this.levels=P||this.levels||w.npm.levels,this.level=A,this.exceptions&&this.exceptions.unhandle(),this.rejections&&this.rejections.unhandle(),this.exceptions=new g(this),this.rejections=new c(this),this.profilers={},this.exitOnError=R,B&&(B=Array.isArray(B)?B:[B]).forEach(function(C){return j.add(C)}),V||J||F||L||U||Z)throw new Error(["{ colors, emitErrs, formatters, padLevels, rewriters, stripColors } were removed in winston@3.0.0.","Use a custom winston.format(function) instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
93
- `));q&&this.exceptions.handle(q),Y&&this.rejections.handle(Y)}},{key:"isLevelEnabled",value:function(j){var x=this,O=z(this.levels,j);if(O===null)return!1;var $=z(this.levels,this.level);return $!==null&&(this.transports&&this.transports.length!==0?this.transports.findIndex(function(N){var P=z(x.levels,N.level);return P===null&&(P=$),P>=O})!==-1:$>=O)}},{key:"log",value:function(j,x){for(var O=arguments.length,$=new Array(O>2?O-2:0),N=2;N<O;N++)$[N-2]=arguments[N];if(arguments.length===1)return j[h]=j.level,this._addDefaultMeta(j),this.write(j),this;if(arguments.length===2)return x&&f(x)==="object"?(x[h]=x.level=j,this._addDefaultMeta(x),this.write(x),this):(x=t(t(t({},h,j),"level",j),"message",x),this._addDefaultMeta(x),this.write(x),this);var P=$[0];if(f(P)==="object"&&P!==null&&!(x&&x.match&&x.match(_))){var G=Object.assign({},this.defaultMeta,P,t(t(t(t({},h,j),d,$),"level",j),"message",x));return P.message&&(G.message="".concat(G.message," ").concat(P.message)),P.stack&&(G.stack=P.stack),P.cause&&(G.cause=P.cause),this.write(G),this}return this.write(Object.assign({},this.defaultMeta,t(t(t(t({},h,j),d,$),"level",j),"message",x))),this}},{key:"_transform",value:function(j,x,O){if(this.silent)return O();j[h]||(j[h]=j.level),this.levels[j[h]]||this.levels[j[h]]===0||console.error("[winston] Unknown logger level: %s",j[h]),this._readableState.pipes||console.error("[winston] Attempt to write logs with no transports, which can increase memory usage: %j",j);try{this.push(this.format.transform(j,this.format.options))}finally{this._writableState.sync=!1,O()}}},{key:"_final",value:function(j){var x=this.transports.slice();a(x,function(O,$){if(!O||O.finished)return setImmediate($);O.once("finish",$),O.end()},j)}},{key:"add",value:function(j){var x=!b(j)||j.log.length>2?new y({transport:j}):j;if(!x._writableState||!x._writableState.objectMode)throw new Error("Transports must WritableStreams in objectMode. Set { objectMode: true }.");return this._onEvent("error",x),this._onEvent("warn",x),this.pipe(x),j.handleExceptions&&this.exceptions.handle(),j.handleRejections&&this.rejections.handle(),this}},{key:"remove",value:function(j){if(!j)return this;var x=j;return(!b(j)||j.log.length>2)&&(x=this.transports.filter(function(O){return O.transport===j})[0]),x&&this.unpipe(x),this}},{key:"clear",value:function(){return this.unpipe(),this}},{key:"close",value:function(){return this.exceptions.unhandle(),this.rejections.unhandle(),this.clear(),this.emit("close"),this}},{key:"setLevels",value:function(){S.deprecated("setLevels")}},{key:"query",value:function(j,x){typeof j=="function"&&(x=j,j={}),j=j||{};var O={},$=Object.assign({},j.query||{});a(this.transports.filter(function(N){return!!N.query}),function(N,P){(function(G,A){j.query&&typeof G.formatQuery=="function"&&(j.query=G.formatQuery($)),G.query(j,function(I,R){if(I)return A(I);typeof G.formatResults=="function"&&(R=G.formatResults(R,j.format)),A(null,R)})})(N,function(G,A){P&&((A=G||A)&&(O[N.name]=A),P()),P=null})},function(){return x(null,O)})}},{key:"stream",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x=new r,O=[];return x._streams=O,x.destroy=function(){for(var $=O.length;$--;)O[$].destroy()},this.transports.filter(function($){return!!$.stream}).forEach(function($){var N=$.stream(j);N&&(O.push(N),N.on("log",function(P){P.transport=P.transport||[],P.transport.push($.name),x.emit("log",P)}),N.on("error",function(P){P.transport=P.transport||[],P.transport.push($.name),x.emit("error",P)}))}),x}},{key:"startTimer",value:function(){return new v(this)}},{key:"profile",value:function(j){var x=Date.now();if(this.profilers[j]){var O=this.profilers[j];delete this.profilers[j];for(var $=arguments.length,N=new Array($>1?$-1:0),P=1;P<$;P++)N[P-1]=arguments[P];typeof N[N.length-2]=="function"&&(console.warn("Callback function no longer supported as of winston@3.0.0"),N.pop());var G=f(N[N.length-1])==="object"?N.pop():{};return G.level=G.level||"info",G.durationMs=x-O,G.message=G.message||j,this.write(G)}return this.profilers[j]=x,this}},{key:"handleExceptions",value:function(){var j;console.warn("Deprecated: .handleExceptions() will be removed in winston@4. Use .exceptions.handle()"),(j=this.exceptions).handle.apply(j,arguments)}},{key:"unhandleExceptions",value:function(){var j;console.warn("Deprecated: .unhandleExceptions() will be removed in winston@4. Use .exceptions.unhandle()"),(j=this.exceptions).unhandle.apply(j,arguments)}},{key:"cli",value:function(){throw new Error(["Logger.cli() was removed in winston@3.0.0","Use a custom winston.formats.cli() instead.","See: https://github.com/winstonjs/winston/tree/master/UPGRADE-3.0.md"].join(`
94
- `))}},{key:"_onEvent",value:function(j,x){x["__winston"+j]||(x["__winston"+j]=(function(O){j!=="error"||this.transports.includes(x)||this.add(x),this.emit(j,O,x)}).bind(this),x.on(j,x["__winston"+j]))}},{key:"_addDefaultMeta",value:function(j){this.defaultMeta&&Object.assign(j,this.defaultMeta)}}])}(e);function z(k,E){var j=k[E];return j||j===0?j:null}return Object.defineProperty(M.prototype,"transports",{configurable:!1,enumerable:!0,get:function(){var k=this._readableState.pipes;return Array.isArray(k)?k:[k].filter(Boolean)}}),la=M}function cl(){if(ha)return jr;function t(r){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(r)}function f(r,e,a){return e=s(e),function(p,h){if(h&&(t(h)=="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}(p)}(r,m()?Reflect.construct(e,a||[],s(r).constructor):e.apply(r,a))}function m(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m=function(){return!!r})()}function s(r){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(r)}function l(r,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,p){return a.__proto__=p,a},l(r,e)}ha=1;var o=at().LEVEL,n=fn(),i=pn(),u=xe()("winston:create-logger");return jr=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r.levels=r.levels||n.npm.levels;var e=function(p){function h(b){return function(g,c){if(!(g instanceof c))throw new TypeError("Cannot call a class as a function")}(this,h),f(this,h,[b])}return function(b,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(g&&g.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),Object.defineProperty(b,"prototype",{writable:!1}),g&&l(b,g)}(h,p),d=h,Object.defineProperty(d,"prototype",{writable:!1}),d;var d}(i),a=new e(r);return Object.keys(r.levels).forEach(function(p){u('Define prototype method for "%s"',p),p!=="log"?(e.prototype[p]=function(){for(var h=this||a,d=arguments.length,b=new Array(d),g=0;g<d;g++)b[g]=arguments[g];if(b.length===1){var c=b[0],y=c&&c.message&&c||{message:c};return y.level=y[o]=p,h._addDefaultMeta(y),h.write(y),this||a}return b.length===0?(h.log(p,""),h):h.log.apply(h,[p].concat(b))},e.prototype[function(h){return"is"+h.charAt(0).toUpperCase()+h.slice(1)+"Enabled"}(p)]=function(){return(this||a).isLevelEnabled(p)}):console.warn('Level "log" not defined: conflicts with the method "log". Use a different level name.')}),a},jr}function ih(){if(pa)return xr;function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t(l)}function f(l,o,n){return o&&function(i,u){for(var r=0;r<u.length;r++){var e=u[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,m(e.key),e)}}(l.prototype,o),Object.defineProperty(l,"prototype",{writable:!1}),l}function m(l){var o=function(n,i){if(t(n)!="object"||!n)return n;var u=n[Symbol.toPrimitive];if(u!==void 0){var r=u.call(n,i);if(t(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(l,"string");return t(o)=="symbol"?o:o+""}pa=1;var s=cl();return xr=function(){return f(function l(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(function(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")})(this,l),this.loggers=new Map,this.options=o},[{key:"add",value:function(l,o){var n=this;if(!this.loggers.has(l)){var i=(o=Object.assign({},o||this.options)).transports||this.options.transports;o.transports=i?Array.isArray(i)?i.slice():[i]:[];var u=s(o);u.on("close",function(){return n._delete(l)}),this.loggers.set(l,u)}return this.loggers.get(l)}},{key:"get",value:function(l,o){return this.add(l,o)}},{key:"has",value:function(l){return!!this.loggers.has(l)}},{key:"close",value:function(l){var o=this;if(l)return this._removeLogger(l);this.loggers.forEach(function(n,i){return o._removeLogger(i)})}},{key:"_removeLogger",value:function(l){this.loggers.has(l)&&(this.loggers.get(l).close(),this._delete(l))}},{key:"_delete",value:function(l){this.loggers.delete(l)}}])}(),xr}function sh(){return da||(da=1,function(t){var f=Xc(),m=Qc().warn;t.version=qf,t.transports=function(){return Fs||(Fs=1,l=ts,Object.defineProperty(l,"Console",{configurable:!0,enumerable:!0,get:function(){return Gf()}}),Object.defineProperty(l,"File",{configurable:!0,enumerable:!0,get:function(){return Jf()}}),Object.defineProperty(l,"Http",{configurable:!0,enumerable:!0,get:function(){return Xf()}}),Object.defineProperty(l,"Stream",{configurable:!0,enumerable:!0,get:function(){return Qf()}})),ts;var l}(),t.config=fn(),t.addColors=f.levels,t.format=f.format,t.createLogger=cl(),t.Logger=pn(),t.ExceptionHandler=al(),t.RejectionHandler=ul(),t.Container=ih(),t.Transport=le(),t.loggers=new t.Container;var s=t.createLogger();Object.keys(t.config.npm.levels).concat(["log","query","stream","add","remove","clear","profile","startTimer","handleExceptions","unhandleExceptions","handleRejections","unhandleRejections","configure","child"]).forEach(function(l){return t[l]=function(){return s[l].apply(s,arguments)}}),Object.defineProperty(t,"level",{get:function(){return s.level},set:function(l){s.level=l}}),Object.defineProperty(t,"exceptions",{get:function(){return s.exceptions}}),Object.defineProperty(t,"rejections",{get:function(){return s.rejections}}),["exitOnError"].forEach(function(l){Object.defineProperty(t,l,{get:function(){return s[l]},set:function(o){s[l]=o}})}),Object.defineProperty(t,"default",{get:function(){return{exceptionHandlers:s.exceptionHandlers,rejectionHandlers:s.rejectionHandlers,transports:s.transports}}}),m.deprecated(t,"setLevels"),m.forFunctions(t,"useFormat",["cli"]),m.forProperties(t,"useFormat",["padLevels","stripColors"]),m.forFunctions(t,"deprecated",["addRewriter","addFilter","clone","extend"]),m.forProperties(t,"deprecated",["emitErrs","levelLength"])}(Mo)),Mo}var ma,ya,ga,va,ba,wa,Ea={exports:{}};function ke(){if(ya)return ma;ya=1;var t=function(f,m){Error.call(this,f),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=f,m&&(this.inner=m)};return(t.prototype=Object.create(Error.prototype)).constructor=t,ma=t}function ll(){if(va)return ga;va=1;var t=ke(),f=function(m,s){t.call(this,m),this.name="NotBeforeError",this.date=s};return(f.prototype=Object.create(t.prototype)).constructor=f,ga=f}function fl(){if(wa)return ba;wa=1;var t=ke(),f=function(m,s){t.call(this,m),this.name="TokenExpiredError",this.expiredAt=s};return(f.prototype=Object.create(t.prototype)).constructor=f,ba=f}var _a,Sa,Oa,ja,xa,ka,Ar,Ta,Aa,Ra,Ia,Pa,Na,La,$a,Ma,Ca,Da,Fa,Rr,Ba,Tt={};function hl(){if(Sa)return _a;Sa=1;var t=ue().Buffer,f=je();function m(s){if(this.buffer=null,this.writable=!0,this.readable=!0,!s)return this.buffer=t.alloc(0),this;if(typeof s.pipe=="function")return this.buffer=t.alloc(0),s.pipe(this),this;if(s.length||typeof s=="object")return this.buffer=s,this.writable=!1,Q.nextTick((function(){this.emit("end",s),this.readable=!1,this.emit("close")}).bind(this)),this;throw new TypeError("Unexpected data type ("+typeof s+")")}return lt().inherits(m,f),m.prototype.write=function(s){this.buffer=t.concat([this.buffer,t.from(s)]),this.emit("data",s)},m.prototype.end=function(s){s&&this.write(s),this.emit("end",s),this.emit("close"),this.writable=!1,this.readable=!1},_a=m}function ah(){if(ka)return xa;ka=1;var t=ue().Buffer,f=function(){if(ja)return Oa;function o(i){return(i/8|0)+(i%8==0?0:1)}ja=1;var n={ES256:o(256),ES384:o(384),ES512:o(521)};return Oa=function(i){var u=n[i];if(u)return u;throw new Error('Unknown algorithm "'+i+'"')}}(),m=128;function s(o){if(t.isBuffer(o))return o;if(typeof o=="string")return t.from(o,"base64");throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function l(o,n,i){for(var u=0;n+u<i&&o[n+u]===0;)++u;return o[n+u]>=m&&--u,u}return xa={derToJose:function(o,n){o=s(o);var i=f(n),u=i+1,r=o.length,e=0;if(o[e++]!==48)throw new Error('Could not find expected "seq"');var a=o[e++];if(a===129&&(a=o[e++]),r-e<a)throw new Error('"seq" specified length of "'+a+'", only "'+(r-e)+'" remaining');if(o[e++]!==2)throw new Error('Could not find expected "int" for "r"');var p=o[e++];if(r-e-2<p)throw new Error('"r" specified length of "'+p+'", only "'+(r-e-2)+'" available');if(u<p)throw new Error('"r" specified length of "'+p+'", max of "'+u+'" is acceptable');var h=e;if(e+=p,o[e++]!==2)throw new Error('Could not find expected "int" for "s"');var d=o[e++];if(r-e!==d)throw new Error('"s" specified length of "'+d+'", expected "'+(r-e)+'"');if(u<d)throw new Error('"s" specified length of "'+d+'", max of "'+u+'" is acceptable');var b=e;if((e+=d)!==r)throw new Error('Expected to consume entire buffer, but "'+(r-e)+'" bytes remain');var g=i-p,c=i-d,y=t.allocUnsafe(g+p+c+d);for(e=0;e<g;++e)y[e]=0;o.copy(y,e,h+Math.max(-g,0),h+p);for(var v=e=i;e<v+c;++e)y[e]=0;return o.copy(y,e,b+Math.max(-c,0),b+d),y=(y=y.toString("base64")).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},joseToDer:function(o,n){o=s(o);var i=f(n),u=o.length;if(u!==2*i)throw new TypeError('"'+n+'" signatures must be "'+2*i+'" bytes, saw "'+u+'"');var r=l(o,0,i),e=l(o,i,o.length),a=i-r,p=i-e,h=2+a+1+1+p,d=h<m,b=t.allocUnsafe((d?2:3)+h),g=0;return b[g++]=48,d?b[g++]=h:(b[g++]=129,b[g++]=255&h),b[g++]=2,b[g++]=a,r<0?(b[g++]=0,g+=o.copy(b,g,0,i)):g+=o.copy(b,g,r,i),b[g++]=2,b[g++]=p,e<0?(b[g++]=0,o.copy(b,g,i)):o.copy(b,g,i+e),b}}}function pl(){if(Ra)return Aa;Ra=1;var t,f=ue().Buffer,m=Vt(),s=ah(),l=lt(),o="secret must be a string or buffer",n="key must be a string or a buffer",i=typeof m.createPublicKey=="function";function u(k){if(!f.isBuffer(k)&&typeof k!="string"&&(!i||typeof k!="object"||typeof k.type!="string"||typeof k.asymmetricKeyType!="string"||typeof k.export!="function"))throw p(n)}function r(k){if(!f.isBuffer(k)&&typeof k!="string"&&typeof k!="object")throw p("key must be a string, a buffer or an object")}function e(k){return k.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function a(k){var E=4-(k=k.toString()).length%4;if(E!==4)for(var j=0;j<E;++j)k+="=";return k.replace(/\-/g,"+").replace(/_/g,"/")}function p(k){var E=[].slice.call(arguments,1),j=l.format.bind(l,k).apply(null,E);return new TypeError(j)}function h(k){var E;return E=k,f.isBuffer(E)||typeof E=="string"||(k=JSON.stringify(k)),k}function d(k){return function(E,j){(function(O){if(!f.isBuffer(O)){if(typeof O=="string")return O;if(!i||typeof O!="object"||O.type!=="secret"||typeof O.export!="function")throw p(o)}})(j),E=h(E);var x=m.createHmac("sha"+k,j);return e((x.update(E),x.digest("base64")))}}i&&(n+=" or a KeyObject",o+="or a KeyObject");var b="timingSafeEqual"in m?function(k,E){return k.byteLength===E.byteLength&&m.timingSafeEqual(k,E)}:function(k,E){return t||(t=function(){if(Ta)return Ar;Ta=1;var j=oe().Buffer,x=oe().SlowBuffer;function O(P,G){if(!j.isBuffer(P)||!j.isBuffer(G)||P.length!==G.length)return!1;for(var A=0,I=0;I<P.length;I++)A|=P[I]^G[I];return A===0}Ar=O,O.install=function(){j.prototype.equal=x.prototype.equal=function(P){return O(this,P)}};var $=j.prototype.equal,N=x.prototype.equal;return O.restore=function(){j.prototype.equal=$,x.prototype.equal=N},Ar}()),t(k,E)};function g(k){return function(E,j,x){var O=d(k)(E,x);return b(f.from(j),f.from(O))}}function c(k){return function(E,j){r(j),E=h(E);var x=m.createSign("RSA-SHA"+k);return e((x.update(E),x.sign(j,"base64")))}}function y(k){return function(E,j,x){u(x),E=h(E),j=a(j);var O=m.createVerify("RSA-SHA"+k);return O.update(E),O.verify(x,j,"base64")}}function v(k){return function(E,j){r(j),E=h(E);var x=m.createSign("RSA-SHA"+k);return e((x.update(E),x.sign({key:j,padding:m.constants.RSA_PKCS1_PSS_PADDING,saltLength:m.constants.RSA_PSS_SALTLEN_DIGEST},"base64")))}}function S(k){return function(E,j,x){u(x),E=h(E),j=a(j);var O=m.createVerify("RSA-SHA"+k);return O.update(E),O.verify({key:x,padding:m.constants.RSA_PKCS1_PSS_PADDING,saltLength:m.constants.RSA_PSS_SALTLEN_DIGEST},j,"base64")}}function w(k){var E=c(k);return function(){var j=E.apply(null,arguments);return j=s.derToJose(j,"ES"+k)}}function _(k){var E=y(k);return function(j,x,O){return x=s.joseToDer(x,"ES"+k).toString("base64"),E(j,x,O)}}function M(){return function(){return""}}function z(){return function(k,E){return E===""}}return Aa=function(k){var E={hs:d,rs:c,ps:v,es:w,none:M},j={hs:g,rs:y,ps:S,es:_,none:z},x=k.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/);if(!x)throw p(`"%s" is not a valid algorithm.
95
- Supported algorithms are:
96
- "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".`,k);var O=(x[1]||x[3]).toLowerCase(),$=x[2];return{sign:E[O]($),verify:j[O]($)}}}function dl(){if(Pa)return Ia;Pa=1;var t=oe().Buffer;return Ia=function(f){return typeof f=="string"?f:typeof f=="number"||t.isBuffer(f)?f.toString():JSON.stringify(f)}}function uh(){if(La)return Na;La=1;var t=ue().Buffer,f=hl(),m=pl(),s=je(),l=dl(),o=lt();function n(r,e){return t.from(r,e).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function i(r){var e=r.header,a=r.payload,p=r.secret||r.privateKey,h=r.encoding,d=m(e.alg),b=function(c,y,v){v=v||"utf8";var S=n(l(c),"binary"),w=n(l(y),v);return o.format("%s.%s",S,w)}(e,a,h),g=d.sign(b,p);return o.format("%s.%s",b,g)}function u(r){var e=r.secret;if(e=(e=e??r.privateKey)==null?r.key:e,/^hs/i.test(r.header.alg)===!0&&e==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var a=new f(e);this.readable=!0,this.header=r.header,this.encoding=r.encoding,this.secret=this.privateKey=this.key=a,this.payload=new f(r.payload),this.secret.once("close",(function(){!this.payload.writable&&this.readable&&this.sign()}).bind(this)),this.payload.once("close",(function(){!this.secret.writable&&this.readable&&this.sign()}).bind(this))}return o.inherits(u,s),u.prototype.sign=function(){try{var r=i({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",r),this.emit("data",r),this.emit("end"),this.readable=!1,r}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},u.sign=i,Na=u}function ch(){if(Ma)return $a;Ma=1;var t=ue().Buffer,f=hl(),m=pl(),s=je(),l=dl(),o=lt(),n=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function i(d){if(function(b){return Object.prototype.toString.call(b)==="[object Object]"}(d))return d;try{return JSON.parse(d)}catch{return}}function u(d){var b=d.split(".",1)[0];return i(t.from(b,"base64").toString("binary"))}function r(d){return d.split(".")[2]}function e(d){return n.test(d)&&!!u(d)}function a(d,b,g){if(!b){var c=new Error("Missing algorithm parameter for jws.verify");throw c.code="MISSING_ALGORITHM",c}var y=r(d=l(d)),v=function(S){return S.split(".",2).join(".")}(d);return m(b).verify(v,y,g)}function p(d,b){if(b=b||{},!e(d=l(d)))return null;var g=u(d);if(!g)return null;var c=function(y,v){v=v||"utf8";var S=y.split(".")[1];return t.from(S,"base64").toString(v)}(d);return(g.typ==="JWT"||b.json)&&(c=JSON.parse(c,b.encoding)),{header:g,payload:c,signature:r(d)}}function h(d){var b=(d=d||{}).secret;if(b=(b=b??d.publicKey)==null?d.key:b,/^hs/i.test(d.algorithm)===!0&&b==null)throw new TypeError("secret must be a string or buffer or a KeyObject");var g=new f(b);this.readable=!0,this.algorithm=d.algorithm,this.encoding=d.encoding,this.secret=this.publicKey=this.key=g,this.signature=new f(d.signature),this.secret.once("close",(function(){!this.signature.writable&&this.readable&&this.verify()}).bind(this)),this.signature.once("close",(function(){!this.secret.writable&&this.readable&&this.verify()}).bind(this))}return o.inherits(h,s),h.prototype.verify=function(){try{var d=a(this.signature.buffer,this.algorithm,this.key.buffer),b=p(this.signature.buffer,this.encoding);return this.emit("done",d,b),this.emit("data",d),this.emit("end"),this.readable=!1,d}catch(g){this.readable=!1,this.emit("error",g),this.emit("close")}},h.decode=p,h.isValid=e,h.verify=a,$a=h}function dn(){if(Ca)return Tt;Ca=1;var t=uh(),f=ch();return Tt.ALGORITHMS=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"],Tt.sign=t.sign,Tt.verify=f.verify,Tt.decode=f.decode,Tt.isValid=f.isValid,Tt.createSign=function(m){return new t(m)},Tt.createVerify=function(m){return new f(m)},Tt}function ml(){if(Fa)return Da;Fa=1;var t=dn();return Da=function(f,m){m=m||{};var s=t.decode(f,m);if(!s)return null;var l=s.payload;if(typeof l=="string")try{var o=JSON.parse(l);o!==null&&typeof o=="object"&&(l=o)}catch{}return m.complete===!0?{header:s.header,payload:l,signature:s.signature}:l}}function yl(){if(Ba)return Rr;Ba=1;var t=Gc();return Rr=function(f,m){var s=m||Math.floor(Date.now()/1e3);if(typeof f=="string"){var l=t(f);return l===void 0?void 0:Math.floor(s+l/1e3)}return typeof f=="number"?s+f:void 0},Rr}var Ua,qa,Ga,za,Za,Ha,Va,Ya,Ka,Wa,Ja,Ir,Xa,Pr,Qa,Nr,tu,Lr,eu,ru,nu,ou,iu,su,au,uu,cu,$r,lu,fu,hu,pu,du,mu,yu,gu,vu,bu,wu,Eu,_u,Su,Ou,ju,xu,ku,Tu,Au,Ru,Iu,Pu,Nu,Lu,$u,Mu,Mr,Cu,Du,Fu,Cr,Bu,Uu,qu,Dr,Gu,Fr,zu,Br,Zu,Ur,Hu,qr,Vu,Gr,Yu,zr,Ku,Zr,Wu,Hr,Ju,Vr,Xu,Yr,Qu,tc,ec,Kr,rc,nc,oc,ic,sc,ac,uc,cc,lc,fc,hc,pc,dc,Wr,mc,Jr={exports:{}};function Te(){return qa?Ua:(qa=1,Ua={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2})}function Ae(){if(za)return Ga;za=1;var t={};return Ga=typeof Q=="object"&&t&&t.NODE_DEBUG&&/\bsemver\b/i.test(t.NODE_DEBUG)?(...m)=>console.error("SEMVER",...m):()=>{}}function ae(){return Za||(Za=1,function(t,f){const{MAX_SAFE_COMPONENT_LENGTH:m}=Te(),s=Ae(),l=(f=t.exports={}).re=[],o=f.safeRe=[],n=f.src=[],i=f.t={};let u=0;const r=(e,a,p)=>{const h=a.split("\\s*").join("\\s{0,1}").split("\\s+").join("\\s"),d=u++;s(e,d,a),i[e]=d,n[d]=a,l[d]=new RegExp(a,p?"g":void 0),o[d]=new RegExp(h,p?"g":void 0)};r("NUMERICIDENTIFIER","0|[1-9]\\d*"),r("NUMERICIDENTIFIERLOOSE","[0-9]+"),r("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),r("MAINVERSION",`(${n[i.NUMERICIDENTIFIER]})\\.(${n[i.NUMERICIDENTIFIER]})\\.(${n[i.NUMERICIDENTIFIER]})`),r("MAINVERSIONLOOSE",`(${n[i.NUMERICIDENTIFIERLOOSE]})\\.(${n[i.NUMERICIDENTIFIERLOOSE]})\\.(${n[i.NUMERICIDENTIFIERLOOSE]})`),r("PRERELEASEIDENTIFIER",`(?:${n[i.NUMERICIDENTIFIER]}|${n[i.NONNUMERICIDENTIFIER]})`),r("PRERELEASEIDENTIFIERLOOSE",`(?:${n[i.NUMERICIDENTIFIERLOOSE]}|${n[i.NONNUMERICIDENTIFIER]})`),r("PRERELEASE",`(?:-(${n[i.PRERELEASEIDENTIFIER]}(?:\\.${n[i.PRERELEASEIDENTIFIER]})*))`),r("PRERELEASELOOSE",`(?:-?(${n[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[i.PRERELEASEIDENTIFIERLOOSE]})*))`),r("BUILDIDENTIFIER","[0-9A-Za-z-]+"),r("BUILD",`(?:\\+(${n[i.BUILDIDENTIFIER]}(?:\\.${n[i.BUILDIDENTIFIER]})*))`),r("FULLPLAIN",`v?${n[i.MAINVERSION]}${n[i.PRERELEASE]}?${n[i.BUILD]}?`),r("FULL",`^${n[i.FULLPLAIN]}$`),r("LOOSEPLAIN",`[v=\\s]*${n[i.MAINVERSIONLOOSE]}${n[i.PRERELEASELOOSE]}?${n[i.BUILD]}?`),r("LOOSE",`^${n[i.LOOSEPLAIN]}$`),r("GTLT","((?:<|>)?=?)"),r("XRANGEIDENTIFIERLOOSE",`${n[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),r("XRANGEIDENTIFIER",`${n[i.NUMERICIDENTIFIER]}|x|X|\\*`),r("XRANGEPLAIN",`[v=\\s]*(${n[i.XRANGEIDENTIFIER]})(?:\\.(${n[i.XRANGEIDENTIFIER]})(?:\\.(${n[i.XRANGEIDENTIFIER]})(?:${n[i.PRERELEASE]})?${n[i.BUILD]}?)?)?`),r("XRANGEPLAINLOOSE",`[v=\\s]*(${n[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[i.XRANGEIDENTIFIERLOOSE]})(?:${n[i.PRERELEASELOOSE]})?${n[i.BUILD]}?)?)?`),r("XRANGE",`^${n[i.GTLT]}\\s*${n[i.XRANGEPLAIN]}$`),r("XRANGELOOSE",`^${n[i.GTLT]}\\s*${n[i.XRANGEPLAINLOOSE]}$`),r("COERCE",`(^|[^\\d])(\\d{1,${m}})(?:\\.(\\d{1,${m}}))?(?:\\.(\\d{1,${m}}))?(?:$|[^\\d])`),r("COERCERTL",n[i.COERCE],!0),r("LONETILDE","(?:~>?)"),r("TILDETRIM",`(\\s*)${n[i.LONETILDE]}\\s+`,!0),f.tildeTrimReplace="$1~",r("TILDE",`^${n[i.LONETILDE]}${n[i.XRANGEPLAIN]}$`),r("TILDELOOSE",`^${n[i.LONETILDE]}${n[i.XRANGEPLAINLOOSE]}$`),r("LONECARET","(?:\\^)"),r("CARETTRIM",`(\\s*)${n[i.LONECARET]}\\s+`,!0),f.caretTrimReplace="$1^",r("CARET",`^${n[i.LONECARET]}${n[i.XRANGEPLAIN]}$`),r("CARETLOOSE",`^${n[i.LONECARET]}${n[i.XRANGEPLAINLOOSE]}$`),r("COMPARATORLOOSE",`^${n[i.GTLT]}\\s*(${n[i.LOOSEPLAIN]})$|^$`),r("COMPARATOR",`^${n[i.GTLT]}\\s*(${n[i.FULLPLAIN]})$|^$`),r("COMPARATORTRIM",`(\\s*)${n[i.GTLT]}\\s*(${n[i.LOOSEPLAIN]}|${n[i.XRANGEPLAIN]})`,!0),f.comparatorTrimReplace="$1$2$3",r("HYPHENRANGE",`^\\s*(${n[i.XRANGEPLAIN]})\\s+-\\s+(${n[i.XRANGEPLAIN]})\\s*$`),r("HYPHENRANGELOOSE",`^\\s*(${n[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[i.XRANGEPLAINLOOSE]})\\s*$`),r("STAR","(<|>)?=?\\s*\\*"),r("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),r("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Jr,Jr.exports)),Jr.exports}function mn(){if(Va)return Ha;Va=1;const t=Object.freeze({loose:!0}),f=Object.freeze({});return Ha=m=>m?typeof m!="object"?t:m:f}function gl(){if(Ka)return Ya;Ka=1;const t=/^[0-9]+$/,f=(m,s)=>{const l=t.test(m),o=t.test(s);return l&&o&&(m=+m,s=+s),m===s?0:l&&!o?-1:o&&!l?1:m<s?-1:1};return Ya={compareIdentifiers:f,rcompareIdentifiers:(m,s)=>f(s,m)}}function ft(){if(Ja)return Wa;Ja=1;const t=Ae(),{MAX_LENGTH:f,MAX_SAFE_INTEGER:m}=Te(),{safeRe:s,t:l}=ae(),o=mn(),{compareIdentifiers:n}=gl();class i{constructor(r,e){if(e=o(e),r instanceof i){if(r.loose===!!e.loose&&r.includePrerelease===!!e.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>f)throw new TypeError(`version is longer than ${f} characters`);t("SemVer",r,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const a=r.trim().match(e.loose?s[l.LOOSE]:s[l.FULL]);if(!a)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>m||this.major<0)throw new TypeError("Invalid major version");if(this.minor>m||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>m||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map(p=>{if(/^[0-9]+$/.test(p)){const h=+p;if(h>=0&&h<m)return h}return p}):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(r){if(t("SemVer.compare",this.version,this.options,r),!(r instanceof i)){if(typeof r=="string"&&r===this.version)return 0;r=new i(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof i||(r=new i(r,this.options)),n(this.major,r.major)||n(this.minor,r.minor)||n(this.patch,r.patch)}comparePre(r){if(r instanceof i||(r=new i(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let e=0;do{const a=this.prerelease[e],p=r.prerelease[e];if(t("prerelease compare",e,a,p),a===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(a===void 0)return-1;if(a!==p)return n(a,p)}while(++e)}compareBuild(r){r instanceof i||(r=new i(r,this.options));let e=0;do{const a=this.build[e],p=r.build[e];if(t("prerelease compare",e,a,p),a===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(a===void 0)return-1;if(a!==p)return n(a,p)}while(++e)}inc(r,e,a){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,a);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,a);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,a),this.inc("pre",e,a);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",e,a),this.inc("pre",e,a);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const p=Number(a)?1:0;if(!e&&a===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[p];else{let h=this.prerelease.length;for(;--h>=0;)typeof this.prerelease[h]=="number"&&(this.prerelease[h]++,h=-2);if(h===-1){if(e===this.prerelease.join(".")&&a===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(p)}}if(e){let h=[e,p];a===!1&&(h=[e]),n(this.prerelease[0],e)===0?isNaN(this.prerelease[1])&&(this.prerelease=h):this.prerelease=h}break}default:throw new Error(`invalid increment argument: ${r}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Wa=i}function Zt(){if(Xa)return Ir;Xa=1;const t=ft();return Ir=(f,m,s=!1)=>{if(f instanceof t)return f;try{return new t(f,m)}catch(l){if(!s)return null;throw l}},Ir}function _t(){if(hu)return fu;hu=1;const t=ft();return fu=(f,m,s)=>new t(f,s).compare(new t(m,s))}function Xr(){if(vu)return gu;vu=1;const t=ft();return gu=(f,m,s)=>{const l=new t(f,s),o=new t(m,s);return l.compare(o)||l.compareBuild(o)}}function Se(){if(Ou)return Su;Ou=1;const t=_t();return Su=(f,m,s)=>t(f,m,s)>0}function yn(){if(xu)return ju;xu=1;const t=_t();return ju=(f,m,s)=>t(f,m,s)<0}function vl(){if(Tu)return ku;Tu=1;const t=_t();return ku=(f,m,s)=>t(f,m,s)===0}function bl(){if(Ru)return Au;Ru=1;const t=_t();return Au=(f,m,s)=>t(f,m,s)!==0}function gn(){if(Pu)return Iu;Pu=1;const t=_t();return Iu=(f,m,s)=>t(f,m,s)>=0}function vn(){if(Lu)return Nu;Lu=1;const t=_t();return Nu=(f,m,s)=>t(f,m,s)<=0}function wl(){if(Mu)return $u;Mu=1;const t=vl(),f=bl(),m=Se(),s=gn(),l=yn(),o=vn();return $u=(n,i,u,r)=>{switch(i){case"===":return typeof n=="object"&&(n=n.version),typeof u=="object"&&(u=u.version),n===u;case"!==":return typeof n=="object"&&(n=n.version),typeof u=="object"&&(u=u.version),n!==u;case"":case"=":case"==":return t(n,u,r);case"!=":return f(n,u,r);case">":return m(n,u,r);case">=":return s(n,u,r);case"<":return l(n,u,r);case"<=":return o(n,u,r);default:throw new TypeError(`Invalid operator: ${i}`)}}}function lh(){if(Bu)return Cr;function t(o){var n=this;if(n instanceof t||(n=new t),n.tail=null,n.head=null,n.length=0,o&&typeof o.forEach=="function")o.forEach(function(r){n.push(r)});else if(arguments.length>0)for(var i=0,u=arguments.length;i<u;i++)n.push(arguments[i]);return n}function f(o,n,i){var u=n===o.head?new l(i,null,n,o):new l(i,n,n.next,o);return u.next===null&&(o.tail=u),u.prev===null&&(o.head=u),o.length++,u}function m(o,n){o.tail=new l(n,o.tail,null,o),o.head||(o.head=o.tail),o.length++}function s(o,n){o.head=new l(n,null,o.head,o),o.tail||(o.tail=o.head),o.length++}function l(o,n,i,u){if(!(this instanceof l))return new l(o,n,i,u);this.list=u,this.value=o,n?(n.next=this,this.prev=n):this.prev=null,i?(i.prev=this,this.next=i):this.next=null}Bu=1,Cr=t,t.Node=l,t.create=t,t.prototype.removeNode=function(o){if(o.list!==this)throw new Error("removing node which does not belong to this list");var n=o.next,i=o.prev;return n&&(n.prev=i),i&&(i.next=n),o===this.head&&(this.head=n),o===this.tail&&(this.tail=i),o.list.length--,o.next=null,o.prev=null,o.list=null,n},t.prototype.unshiftNode=function(o){if(o!==this.head){o.list&&o.list.removeNode(o);var n=this.head;o.list=this,o.next=n,n&&(n.prev=o),this.head=o,this.tail||(this.tail=o),this.length++}},t.prototype.pushNode=function(o){if(o!==this.tail){o.list&&o.list.removeNode(o);var n=this.tail;o.list=this,o.prev=n,n&&(n.next=o),this.tail=o,this.head||(this.head=o),this.length++}},t.prototype.push=function(){for(var o=0,n=arguments.length;o<n;o++)m(this,arguments[o]);return this.length},t.prototype.unshift=function(){for(var o=0,n=arguments.length;o<n;o++)s(this,arguments[o]);return this.length},t.prototype.pop=function(){if(this.tail){var o=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,o}},t.prototype.shift=function(){if(this.head){var o=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,o}},t.prototype.forEach=function(o,n){n=n||this;for(var i=this.head,u=0;i!==null;u++)o.call(n,i.value,u,this),i=i.next},t.prototype.forEachReverse=function(o,n){n=n||this;for(var i=this.tail,u=this.length-1;i!==null;u--)o.call(n,i.value,u,this),i=i.prev},t.prototype.get=function(o){for(var n=0,i=this.head;i!==null&&n<o;n++)i=i.next;if(n===o&&i!==null)return i.value},t.prototype.getReverse=function(o){for(var n=0,i=this.tail;i!==null&&n<o;n++)i=i.prev;if(n===o&&i!==null)return i.value},t.prototype.map=function(o,n){n=n||this;for(var i=new t,u=this.head;u!==null;)i.push(o.call(n,u.value,this)),u=u.next;return i},t.prototype.mapReverse=function(o,n){n=n||this;for(var i=new t,u=this.tail;u!==null;)i.push(o.call(n,u.value,this)),u=u.prev;return i},t.prototype.reduce=function(o,n){var i,u=this.head;if(arguments.length>1)i=n;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");u=this.head.next,i=this.head.value}for(var r=0;u!==null;r++)i=o(i,u.value,r),u=u.next;return i},t.prototype.reduceReverse=function(o,n){var i,u=this.tail;if(arguments.length>1)i=n;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");u=this.tail.prev,i=this.tail.value}for(var r=this.length-1;u!==null;r--)i=o(i,u.value,r),u=u.prev;return i},t.prototype.toArray=function(){for(var o=new Array(this.length),n=0,i=this.head;i!==null;n++)o[n]=i.value,i=i.next;return o},t.prototype.toArrayReverse=function(){for(var o=new Array(this.length),n=0,i=this.tail;i!==null;n++)o[n]=i.value,i=i.prev;return o},t.prototype.slice=function(o,n){(n=n||this.length)<0&&(n+=this.length),(o=o||0)<0&&(o+=this.length);var i=new t;if(n<o||n<0)return i;o<0&&(o=0),n>this.length&&(n=this.length);for(var u=0,r=this.head;r!==null&&u<o;u++)r=r.next;for(;r!==null&&u<n;u++,r=r.next)i.push(r.value);return i},t.prototype.sliceReverse=function(o,n){(n=n||this.length)<0&&(n+=this.length),(o=o||0)<0&&(o+=this.length);var i=new t;if(n<o||n<0)return i;o<0&&(o=0),n>this.length&&(n=this.length);for(var u=this.length,r=this.tail;r!==null&&u>n;u--)r=r.prev;for(;r!==null&&u>o;u--,r=r.prev)i.push(r.value);return i},t.prototype.splice=function(o,n,...i){o>this.length&&(o=this.length-1),o<0&&(o=this.length+o);for(var u=0,r=this.head;r!==null&&u<o;u++)r=r.next;var e=[];for(u=0;r&&u<n;u++)e.push(r.value),r=this.removeNode(r);for(r===null&&(r=this.tail),r!==this.head&&r!==this.tail&&(r=r.prev),u=0;u<i.length;u++)r=f(this,r,i[u]);return e},t.prototype.reverse=function(){for(var o=this.head,n=this.tail,i=o;i!==null;i=i.prev){var u=i.prev;i.prev=i.next,i.next=u}return this.head=n,this.tail=o,this};try{(Fu?Du:(Fu=1,Du=function(o){o.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}))(t)}catch{}return Cr}function Et(){if(Gu)return Dr;Gu=1;class t{constructor(O,$){if($=m($),O instanceof t)return O.loose===!!$.loose&&O.includePrerelease===!!$.includePrerelease?O:new t(O.raw,$);if(O instanceof s)return this.raw=O.value,this.set=[[O]],this.format(),this;if(this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease,this.raw=O.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(N=>this.parseRange(N)).filter(N=>N.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const N=this.set[0];if(this.set=this.set.filter(P=>!h(P[0])),this.set.length===0)this.set=[N];else if(this.set.length>1){for(const P of this.set)if(P.length===1&&d(P[0])){this.set=[P];break}}}this.format()}format(){return this.range=this.set.map(O=>O.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(O){const $=((this.options.includePrerelease&&a)|(this.options.loose&&p))+":"+O,N=f.get($);if(N)return N;const P=this.options.loose,G=P?n[i.HYPHENRANGELOOSE]:n[i.HYPHENRANGE];O=O.replace(G,E(this.options.includePrerelease)),l("hyphen replace",O),O=O.replace(n[i.COMPARATORTRIM],u),l("comparator trim",O);let A=(O=(O=O.replace(n[i.TILDETRIM],r)).replace(n[i.CARETTRIM],e)).split(" ").map(V=>g(V,this.options)).join(" ").split(/\s+/).map(V=>k(V,this.options));P&&(A=A.filter(V=>(l("loose invalid filter",V,this.options),!!V.match(n[i.COMPARATORLOOSE])))),l("range list",A);const I=new Map,R=A.map(V=>new s(V,this.options));for(const V of R){if(h(V))return[V];I.set(V.value,V)}I.size>1&&I.has("")&&I.delete("");const B=[...I.values()];return f.set($,B),B}intersects(O,$){if(!(O instanceof t))throw new TypeError("a Range is required");return this.set.some(N=>b(N,$)&&O.set.some(P=>b(P,$)&&N.every(G=>P.every(A=>G.intersects(A,$)))))}test(O){if(!O)return!1;if(typeof O=="string")try{O=new o(O,this.options)}catch{return!1}for(let $=0;$<this.set.length;$++)if(j(this.set[$],O,this.options))return!0;return!1}}Dr=t;const f=new(function(){if(qu)return Uu;qu=1;const x=lh(),O=Symbol("max"),$=Symbol("length"),N=Symbol("lengthCalculator"),P=Symbol("allowStale"),G=Symbol("maxAge"),A=Symbol("dispose"),I=Symbol("noDisposeOnSet"),R=Symbol("lruList"),B=Symbol("cache"),V=Symbol("updateAgeOnGet"),J=()=>1,F=(C,T,D)=>{const H=C[B].get(T);if(H){const W=H.value;if(L(C,W)){if(Z(C,H),!C[P])return}else D&&(C[V]&&(H.value.now=Date.now()),C[R].unshiftNode(H));return W.value}},L=(C,T)=>{if(!T||!T.maxAge&&!C[G])return!1;const D=Date.now()-T.now;return T.maxAge?D>T.maxAge:C[G]&&D>C[G]},U=C=>{if(C[$]>C[O])for(let T=C[R].tail;C[$]>C[O]&&T!==null;){const D=T.prev;Z(C,T),T=D}},Z=(C,T)=>{if(T){const D=T.value;C[A]&&C[A](D.key,D.value),C[$]-=D.length,C[B].delete(D.key),C[R].removeNode(T)}};class q{constructor(T,D,H,W,K){this.key=T,this.value=D,this.length=H,this.now=W,this.maxAge=K||0}}const Y=(C,T,D,H)=>{let W=D.value;L(C,W)&&(Z(C,D),C[P]||(W=void 0)),W&&T.call(H,W.value,W.key,C)};return Uu=class{constructor(C){if(typeof C=="number"&&(C={max:C}),C||(C={}),C.max&&(typeof C.max!="number"||C.max<0))throw new TypeError("max must be a non-negative number");this[O]=C.max||1/0;const T=C.length||J;if(this[N]=typeof T!="function"?J:T,this[P]=C.stale||!1,C.maxAge&&typeof C.maxAge!="number")throw new TypeError("maxAge must be a number");this[G]=C.maxAge||0,this[A]=C.dispose,this[I]=C.noDisposeOnSet||!1,this[V]=C.updateAgeOnGet||!1,this.reset()}set max(C){if(typeof C!="number"||C<0)throw new TypeError("max must be a non-negative number");this[O]=C||1/0,U(this)}get max(){return this[O]}set allowStale(C){this[P]=!!C}get allowStale(){return this[P]}set maxAge(C){if(typeof C!="number")throw new TypeError("maxAge must be a non-negative number");this[G]=C,U(this)}get maxAge(){return this[G]}set lengthCalculator(C){typeof C!="function"&&(C=J),C!==this[N]&&(this[N]=C,this[$]=0,this[R].forEach(T=>{T.length=this[N](T.value,T.key),this[$]+=T.length})),U(this)}get lengthCalculator(){return this[N]}get length(){return this[$]}get itemCount(){return this[R].length}rforEach(C,T){T=T||this;for(let D=this[R].tail;D!==null;){const H=D.prev;Y(this,C,D,T),D=H}}forEach(C,T){T=T||this;for(let D=this[R].head;D!==null;){const H=D.next;Y(this,C,D,T),D=H}}keys(){return this[R].toArray().map(C=>C.key)}values(){return this[R].toArray().map(C=>C.value)}reset(){this[A]&&this[R]&&this[R].length&&this[R].forEach(C=>this[A](C.key,C.value)),this[B]=new Map,this[R]=new x,this[$]=0}dump(){return this[R].map(C=>!L(this,C)&&{k:C.key,v:C.value,e:C.now+(C.maxAge||0)}).toArray().filter(C=>C)}dumpLru(){return this[R]}set(C,T,D){if((D=D||this[G])&&typeof D!="number")throw new TypeError("maxAge must be a number");const H=D?Date.now():0,W=this[N](T,C);if(this[B].has(C)){if(W>this[O])return Z(this,this[B].get(C)),!1;const et=this[B].get(C).value;return this[A]&&(this[I]||this[A](C,et.value)),et.now=H,et.maxAge=D,et.value=T,this[$]+=W-et.length,et.length=W,this.get(C),U(this),!0}const K=new q(C,T,W,H,D);return K.length>this[O]?(this[A]&&this[A](C,T),!1):(this[$]+=K.length,this[R].unshift(K),this[B].set(C,this[R].head),U(this),!0)}has(C){if(!this[B].has(C))return!1;const T=this[B].get(C).value;return!L(this,T)}get(C){return F(this,C,!0)}peek(C){return F(this,C,!1)}pop(){const C=this[R].tail;return C?(Z(this,C),C.value):null}del(C){Z(this,this[B].get(C))}load(C){this.reset();const T=Date.now();for(let D=C.length-1;D>=0;D--){const H=C[D],W=H.e||0;if(W===0)this.set(H.k,H.v);else{const K=W-T;K>0&&this.set(H.k,H.v,K)}}}prune(){this[B].forEach((C,T)=>F(this,T,!1))}}}())({max:1e3}),m=mn(),s=Oe(),l=Ae(),o=ft(),{safeRe:n,t:i,comparatorTrimReplace:u,tildeTrimReplace:r,caretTrimReplace:e}=ae(),{FLAG_INCLUDE_PRERELEASE:a,FLAG_LOOSE:p}=Te(),h=x=>x.value==="<0.0.0-0",d=x=>x.value==="",b=(x,O)=>{let $=!0;const N=x.slice();let P=N.pop();for(;$&&N.length;)$=N.every(G=>P.intersects(G,O)),P=N.pop();return $},g=(x,O)=>(l("comp",x,O),x=S(x,O),l("caret",x),x=y(x,O),l("tildes",x),x=_(x,O),l("xrange",x),x=z(x,O),l("stars",x),x),c=x=>!x||x.toLowerCase()==="x"||x==="*",y=(x,O)=>x.trim().split(/\s+/).map($=>v($,O)).join(" "),v=(x,O)=>{const $=O.loose?n[i.TILDELOOSE]:n[i.TILDE];return x.replace($,(N,P,G,A,I)=>{let R;return l("tilde",x,N,P,G,A,I),c(P)?R="":c(G)?R=`>=${P}.0.0 <${+P+1}.0.0-0`:c(A)?R=`>=${P}.${G}.0 <${P}.${+G+1}.0-0`:I?(l("replaceTilde pr",I),R=`>=${P}.${G}.${A}-${I} <${P}.${+G+1}.0-0`):R=`>=${P}.${G}.${A} <${P}.${+G+1}.0-0`,l("tilde return",R),R})},S=(x,O)=>x.trim().split(/\s+/).map($=>w($,O)).join(" "),w=(x,O)=>{l("caret",x,O);const $=O.loose?n[i.CARETLOOSE]:n[i.CARET],N=O.includePrerelease?"-0":"";return x.replace($,(P,G,A,I,R)=>{let B;return l("caret",x,P,G,A,I,R),c(G)?B="":c(A)?B=`>=${G}.0.0${N} <${+G+1}.0.0-0`:c(I)?B=G==="0"?`>=${G}.${A}.0${N} <${G}.${+A+1}.0-0`:`>=${G}.${A}.0${N} <${+G+1}.0.0-0`:R?(l("replaceCaret pr",R),B=G==="0"?A==="0"?`>=${G}.${A}.${I}-${R} <${G}.${A}.${+I+1}-0`:`>=${G}.${A}.${I}-${R} <${G}.${+A+1}.0-0`:`>=${G}.${A}.${I}-${R} <${+G+1}.0.0-0`):(l("no pr"),B=G==="0"?A==="0"?`>=${G}.${A}.${I}${N} <${G}.${A}.${+I+1}-0`:`>=${G}.${A}.${I}${N} <${G}.${+A+1}.0-0`:`>=${G}.${A}.${I} <${+G+1}.0.0-0`),l("caret return",B),B})},_=(x,O)=>(l("replaceXRanges",x,O),x.split(/\s+/).map($=>M($,O)).join(" ")),M=(x,O)=>{x=x.trim();const $=O.loose?n[i.XRANGELOOSE]:n[i.XRANGE];return x.replace($,(N,P,G,A,I,R)=>{l("xRange",x,N,P,G,A,I,R);const B=c(G),V=B||c(A),J=V||c(I),F=J;return P==="="&&F&&(P=""),R=O.includePrerelease?"-0":"",B?N=P===">"||P==="<"?"<0.0.0-0":"*":P&&F?(V&&(A=0),I=0,P===">"?(P=">=",V?(G=+G+1,A=0,I=0):(A=+A+1,I=0)):P==="<="&&(P="<",V?G=+G+1:A=+A+1),P==="<"&&(R="-0"),N=`${P+G}.${A}.${I}${R}`):V?N=`>=${G}.0.0${R} <${+G+1}.0.0-0`:J&&(N=`>=${G}.${A}.0${R} <${G}.${+A+1}.0-0`),l("xRange return",N),N})},z=(x,O)=>(l("replaceStars",x,O),x.trim().replace(n[i.STAR],"")),k=(x,O)=>(l("replaceGTE0",x,O),x.trim().replace(n[O.includePrerelease?i.GTE0PRE:i.GTE0],"")),E=x=>(O,$,N,P,G,A,I,R,B,V,J,F,L)=>`${$=c(N)?"":c(P)?`>=${N}.0.0${x?"-0":""}`:c(G)?`>=${N}.${P}.0${x?"-0":""}`:A?`>=${$}`:`>=${$}${x?"-0":""}`} ${R=c(B)?"":c(V)?`<${+B+1}.0.0-0`:c(J)?`<${B}.${+V+1}.0-0`:F?`<=${B}.${V}.${J}-${F}`:x?`<${B}.${V}.${+J+1}-0`:`<=${R}`}`.trim(),j=(x,O,$)=>{for(let N=0;N<x.length;N++)if(!x[N].test(O))return!1;if(O.prerelease.length&&!$.includePrerelease){for(let N=0;N<x.length;N++)if(l(x[N].semver),x[N].semver!==s.ANY&&x[N].semver.prerelease.length>0){const P=x[N].semver;if(P.major===O.major&&P.minor===O.minor&&P.patch===O.patch)return!0}return!1}return!0};return Dr}function Oe(){if(zu)return Fr;zu=1;const t=Symbol("SemVer ANY");class f{static get ANY(){return t}constructor(e,a){if(a=m(a),e instanceof f){if(e.loose===!!a.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),n("comparator",e,a),this.options=a,this.loose=!!a.loose,this.parse(e),this.semver===t?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}parse(e){const a=this.options.loose?s[l.COMPARATORLOOSE]:s[l.COMPARATOR],p=e.match(a);if(!p)throw new TypeError(`Invalid comparator: ${e}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new i(p[2],this.options.loose):this.semver=t}toString(){return this.value}test(e){if(n("Comparator.test",e,this.options.loose),this.semver===t||e===t)return!0;if(typeof e=="string")try{e=new i(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(e,a){if(!(e instanceof f))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""||new u(e.value,a).test(this.value):e.operator===""?e.value===""||new u(this.value,a).test(e.semver):(!(a=m(a)).includePrerelease||this.value!=="<0.0.0-0"&&e.value!=="<0.0.0-0")&&!(!a.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||!!(o(this.semver,"<",e.semver,a)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(o(this.semver,">",e.semver,a)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}Fr=f;const m=mn(),{safeRe:s,t:l}=ae(),o=wl(),n=Ae(),i=ft(),u=Et();return Fr}function ge(){if(Zu)return Br;Zu=1;const t=Et();return Br=(f,m,s)=>{try{m=new t(m,s)}catch{return!1}return m.test(f)},Br}function fh(){if(Wu)return Zr;Wu=1;const t=Et();return Zr=(f,m)=>{try{return new t(f,m).range||"*"}catch{return null}},Zr}function Qr(){if(Ju)return Hr;Ju=1;const t=ft(),f=Oe(),{ANY:m}=f,s=Et(),l=ge(),o=Se(),n=yn(),i=vn(),u=gn();return Hr=(r,e,a,p)=>{let h,d,b,g,c;switch(r=new t(r,p),e=new s(e,p),a){case">":h=o,d=i,b=n,g=">",c=">=";break;case"<":h=n,d=u,b=o,g="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(l(r,e,p))return!1;for(let y=0;y<e.set.length;++y){const v=e.set[y];let S=null,w=null;if(v.forEach(_=>{_.semver===m&&(_=new f(">=0.0.0")),S=S||_,w=w||_,h(_.semver,S.semver,p)?S=_:b(_.semver,w.semver,p)&&(w=_)}),S.operator===g||S.operator===c||(!w.operator||w.operator===g)&&d(r,w.semver)||w.operator===c&&b(r,w.semver))return!1}return!0},Hr}function sn(){if(sc)return ic;sc=1;const t=ae(),f=Te(),m=ft(),s=gl(),l=Zt(),o=function(){if(Qa)return Pr;Qa=1;const L=Zt();return Pr=(U,Z)=>{const q=L(U,Z);return q?q.version:null},Pr}(),n=function(){if(tu)return Nr;tu=1;const L=Zt();return Nr=(U,Z)=>{const q=L(U.trim().replace(/^[=v]+/,""),Z);return q?q.version:null},Nr}(),i=function(){if(eu)return Lr;eu=1;const L=ft();return Lr=(U,Z,q,Y,C)=>{typeof q=="string"&&(C=Y,Y=q,q=void 0);try{return new L(U instanceof L?U.version:U,q).inc(Z,Y,C).version}catch{return null}},Lr}(),u=function(){if(nu)return ru;nu=1;const L=Zt();return ru=(U,Z)=>{const q=L(U,null,!0),Y=L(Z,null,!0),C=q.compare(Y);if(C===0)return null;const T=C>0,D=T?q:Y,H=T?Y:q,W=!!D.prerelease.length;if(H.prerelease.length&&!W)return H.patch||H.minor?D.patch?"patch":D.minor?"minor":"major":"major";const K=W?"pre":"";return q.major!==Y.major?K+"major":q.minor!==Y.minor?K+"minor":q.patch!==Y.patch?K+"patch":"prerelease"}}(),r=function(){if(iu)return ou;iu=1;const L=ft();return ou=(U,Z)=>new L(U,Z).major}(),e=function(){if(au)return su;au=1;const L=ft();return su=(U,Z)=>new L(U,Z).minor}(),a=function(){if(cu)return uu;cu=1;const L=ft();return uu=(U,Z)=>new L(U,Z).patch}(),p=function(){if(lu)return $r;lu=1;const L=Zt();return $r=(U,Z)=>{const q=L(U,Z);return q&&q.prerelease.length?q.prerelease:null},$r}(),h=_t(),d=function(){if(du)return pu;du=1;const L=_t();return pu=(U,Z,q)=>L(Z,U,q)}(),b=function(){if(yu)return mu;yu=1;const L=_t();return mu=(U,Z)=>L(U,Z,!0)}(),g=Xr(),c=function(){if(wu)return bu;wu=1;const L=Xr();return bu=(U,Z)=>U.sort((q,Y)=>L(q,Y,Z))}(),y=function(){if(_u)return Eu;_u=1;const L=Xr();return Eu=(U,Z)=>U.sort((q,Y)=>L(Y,q,Z))}(),v=Se(),S=yn(),w=vl(),_=bl(),M=gn(),z=vn(),k=wl(),E=function(){if(Cu)return Mr;Cu=1;const L=ft(),U=Zt(),{safeRe:Z,t:q}=ae();return Mr=(Y,C)=>{if(Y instanceof L)return Y;if(typeof Y=="number"&&(Y=String(Y)),typeof Y!="string")return null;let T=null;if((C=C||{}).rtl){let D;for(;(D=Z[q.COERCERTL].exec(Y))&&(!T||T.index+T[0].length!==Y.length);)T&&D.index+D[0].length===T.index+T[0].length||(T=D),Z[q.COERCERTL].lastIndex=D.index+D[1].length+D[2].length;Z[q.COERCERTL].lastIndex=-1}else T=Y.match(Z[q.COERCE]);return T===null?null:U(`${T[2]}.${T[3]||"0"}.${T[4]||"0"}`,C)},Mr}(),j=Oe(),x=Et(),O=ge(),$=function(){if(Hu)return Ur;Hu=1;const L=Et();return Ur=(U,Z)=>new L(U,Z).set.map(q=>q.map(Y=>Y.value).join(" ").trim().split(" ")),Ur}(),N=function(){if(Vu)return qr;Vu=1;const L=ft(),U=Et();return qr=(Z,q,Y)=>{let C=null,T=null,D=null;try{D=new U(q,Y)}catch{return null}return Z.forEach(H=>{D.test(H)&&(C&&T.compare(H)!==-1||(C=H,T=new L(C,Y)))}),C},qr}(),P=function(){if(Yu)return Gr;Yu=1;const L=ft(),U=Et();return Gr=(Z,q,Y)=>{let C=null,T=null,D=null;try{D=new U(q,Y)}catch{return null}return Z.forEach(H=>{D.test(H)&&(C&&T.compare(H)!==1||(C=H,T=new L(C,Y)))}),C},Gr}(),G=function(){if(Ku)return zr;Ku=1;const L=ft(),U=Et(),Z=Se();return zr=(q,Y)=>{q=new U(q,Y);let C=new L("0.0.0");if(q.test(C)||(C=new L("0.0.0-0"),q.test(C)))return C;C=null;for(let T=0;T<q.set.length;++T){const D=q.set[T];let H=null;D.forEach(W=>{const K=new L(W.semver.version);switch(W.operator){case">":K.prerelease.length===0?K.patch++:K.prerelease.push(0),K.raw=K.format();case"":case">=":H&&!Z(K,H)||(H=K);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${W.operator}`)}}),!H||C&&!Z(C,H)||(C=H)}return C&&q.test(C)?C:null},zr}(),A=fh(),I=Qr(),R=function(){if(Xu)return Vr;Xu=1;const L=Qr();return Vr=(U,Z,q)=>L(U,Z,">",q),Vr}(),B=function(){if(Qu)return Yr;Qu=1;const L=Qr();return Yr=(U,Z,q)=>L(U,Z,"<",q),Yr}(),V=function(){if(ec)return tc;ec=1;const L=Et();return tc=(U,Z,q)=>(U=new L(U,q),Z=new L(Z,q),U.intersects(Z,q))}(),J=function(){if(rc)return Kr;rc=1;const L=ge(),U=_t();return Kr=(Z,q,Y)=>{const C=[];let T=null,D=null;const H=Z.sort((X,tt)=>U(X,tt,Y));for(const X of H)L(X,q,Y)?(D=X,T||(T=X)):(D&&C.push([T,D]),D=null,T=null);T&&C.push([T,null]);const W=[];for(const[X,tt]of C)X===tt?W.push(X):tt||X!==H[0]?tt?X===H[0]?W.push(`<=${tt}`):W.push(`${X} - ${tt}`):W.push(`>=${X}`):W.push("*");const K=W.join(" || "),et=typeof q.raw=="string"?q.raw:String(q);return K.length<et.length?K:q},Kr}(),F=function(){if(oc)return nc;oc=1;const L=Et(),U=Oe(),{ANY:Z}=U,q=ge(),Y=_t(),C=[new U(">=0.0.0-0")],T=[new U(">=0.0.0")],D=(K,et,X)=>{if(K===et)return!0;if(K.length===1&&K[0].semver===Z){if(et.length===1&&et[0].semver===Z)return!0;K=X.includePrerelease?C:T}if(et.length===1&&et[0].semver===Z){if(X.includePrerelease)return!0;et=T}const tt=new Set;let nt,ot,st,gt,At,vt,bt;for(const rt of K)rt.operator===">"||rt.operator===">="?nt=H(nt,rt,X):rt.operator==="<"||rt.operator==="<="?ot=W(ot,rt,X):tt.add(rt.semver);if(tt.size>1||nt&&ot&&(st=Y(nt.semver,ot.semver,X),st>0||st===0&&(nt.operator!==">="||ot.operator!=="<=")))return null;for(const rt of tt){if(nt&&!q(rt,String(nt),X)||ot&&!q(rt,String(ot),X))return null;for(const Rt of et)if(!q(rt,String(Rt),X))return!1;return!0}let it=!(!ot||X.includePrerelease||!ot.semver.prerelease.length)&&ot.semver,ht=!(!nt||X.includePrerelease||!nt.semver.prerelease.length)&&nt.semver;it&&it.prerelease.length===1&&ot.operator==="<"&&it.prerelease[0]===0&&(it=!1);for(const rt of et){if(bt=bt||rt.operator===">"||rt.operator===">=",vt=vt||rt.operator==="<"||rt.operator==="<=",nt){if(ht&&rt.semver.prerelease&&rt.semver.prerelease.length&&rt.semver.major===ht.major&&rt.semver.minor===ht.minor&&rt.semver.patch===ht.patch&&(ht=!1),rt.operator===">"||rt.operator===">="){if(gt=H(nt,rt,X),gt===rt&&gt!==nt)return!1}else if(nt.operator===">="&&!q(nt.semver,String(rt),X))return!1}if(ot){if(it&&rt.semver.prerelease&&rt.semver.prerelease.length&&rt.semver.major===it.major&&rt.semver.minor===it.minor&&rt.semver.patch===it.patch&&(it=!1),rt.operator==="<"||rt.operator==="<="){if(At=W(ot,rt,X),At===rt&&At!==ot)return!1}else if(ot.operator==="<="&&!q(ot.semver,String(rt),X))return!1}if(!rt.operator&&(ot||nt)&&st!==0)return!1}return!(nt&&vt&&!ot&&st!==0||ot&&bt&&!nt&&st!==0||ht||it)},H=(K,et,X)=>{if(!K)return et;const tt=Y(K.semver,et.semver,X);return tt>0?K:tt<0||et.operator===">"&&K.operator===">="?et:K},W=(K,et,X)=>{if(!K)return et;const tt=Y(K.semver,et.semver,X);return tt<0?K:tt>0||et.operator==="<"&&K.operator==="<="?et:K};return nc=(K,et,X={})=>{if(K===et)return!0;K=new L(K,X),et=new L(et,X);let tt=!1;t:for(const nt of K.set){for(const ot of et.set){const st=D(nt,ot,X);if(tt=tt||st!==null,st)continue t}if(tt)return!1}return!0}}();return ic={parse:l,valid:o,clean:n,inc:i,diff:u,major:r,minor:e,patch:a,prerelease:p,compare:h,rcompare:d,compareLoose:b,compareBuild:g,sort:c,rsort:y,gt:v,lt:S,eq:w,neq:_,gte:M,lte:z,cmp:k,coerce:E,Comparator:j,Range:x,satisfies:O,toComparators:$,maxSatisfying:N,minSatisfying:P,minVersion:G,validRange:A,outside:I,gtr:R,ltr:B,intersects:V,simplifyRange:J,subset:F,SemVer:m,re:t.re,src:t.src,tokens:t.t,SEMVER_SPEC_VERSION:f.SEMVER_SPEC_VERSION,RELEASE_TYPES:f.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}}function El(){if(hc)return fc;hc=1;const t=function(){return uc?ac:(uc=1,ac=sn().satisfies(Q.version,">=15.7.0"))}(),f=function(){return lc?cc:(lc=1,cc=sn().satisfies(Q.version,">=16.9.0"))}(),m={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},s={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};return fc=function(l,o){if(!l||!o)return;const n=o.asymmetricKeyType;if(!n)return;const i=m[n];if(!i)throw new Error(`Unknown key type "${n}".`);if(!i.includes(l))throw new Error(`"alg" parameter for "${n}" key type must be one of: ${i.join(", ")}.`);if(t)switch(n){case"ec":const u=o.asymmetricKeyDetails.namedCurve,r=s[l];if(u!==r)throw new Error(`"alg" parameter "${l}" requires curve "${r}".`);break;case"rsa-pss":if(f){const e=parseInt(l.slice(-3),10),{hashAlgorithm:a,mgf1HashAlgorithm:p,saltLength:h}=o.asymmetricKeyDetails;if(a!==`sha${e}`||p!==a)throw new Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${l}.`);if(h!==void 0&&h>e>>3)throw new Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${l}.`)}}}}function _l(){if(dc)return pc;dc=1;var t=sn();return pc=t.satisfies(Q.version,"^6.12.0 || >=8.0.0")}function hh(){if(mc)return Wr;mc=1;const t=ke(),f=ll(),m=fl(),s=ml(),l=yl(),o=El(),n=_l(),i=dn(),{KeyObject:u,createSecretKey:r,createPublicKey:e}=Vt(),a=["RS256","RS384","RS512"],p=["ES256","ES384","ES512"],h=["RS256","RS384","RS512"],d=["HS256","HS384","HS512"];return n&&(a.splice(a.length,0,"PS256","PS384","PS512"),h.splice(h.length,0,"PS256","PS384","PS512")),Wr=function(b,g,c,y){let v;if(typeof c!="function"||y||(y=c,c={}),c||(c={}),c=Object.assign({},c),v=y||function(k,E){if(k)throw k;return E},c.clockTimestamp&&typeof c.clockTimestamp!="number")return v(new t("clockTimestamp must be a number"));if(c.nonce!==void 0&&(typeof c.nonce!="string"||c.nonce.trim()===""))return v(new t("nonce must be a non-empty string"));if(c.allowInvalidAsymmetricKeyTypes!==void 0&&typeof c.allowInvalidAsymmetricKeyTypes!="boolean")return v(new t("allowInvalidAsymmetricKeyTypes must be a boolean"));const S=c.clockTimestamp||Math.floor(Date.now()/1e3);if(!b)return v(new t("jwt must be provided"));if(typeof b!="string")return v(new t("jwt must be a string"));const w=b.split(".");if(w.length!==3)return v(new t("jwt malformed"));let _;try{_=s(b,{complete:!0})}catch(k){return v(k)}if(!_)return v(new t("invalid token"));const M=_.header;let z;if(typeof g=="function"){if(!y)return v(new t("verify must be called asynchronous if secret or public key is provided as a callback"));z=g}else z=function(k,E){return E(null,g)};return z(M,function(k,E){if(k)return v(new t("error in secret or public key callback: "+k.message));const j=w[2].trim()!=="";if(!j&&E)return v(new t("jwt signature is required"));if(j&&!E)return v(new t("secret or public key must be provided"));if(!j&&!c.algorithms)return v(new t('please specify "none" in "algorithms" to verify unsigned tokens'));if(E!=null&&!(E instanceof u))try{E=e(E)}catch{try{E=r(typeof E=="string"?dt.from(E):E)}catch{return v(new t("secretOrPublicKey is not valid key material"))}}if(c.algorithms||(E.type==="secret"?c.algorithms=d:["rsa","rsa-pss"].includes(E.asymmetricKeyType)?c.algorithms=h:E.asymmetricKeyType==="ec"?c.algorithms=p:c.algorithms=a),c.algorithms.indexOf(_.header.alg)===-1)return v(new t("invalid algorithm"));if(M.alg.startsWith("HS")&&E.type!=="secret")return v(new t(`secretOrPublicKey must be a symmetric key when using ${M.alg}`));if(/^(?:RS|PS|ES)/.test(M.alg)&&E.type!=="public")return v(new t(`secretOrPublicKey must be an asymmetric key when using ${M.alg}`));if(!c.allowInvalidAsymmetricKeyTypes)try{o(M.alg,E)}catch($){return v($)}let x;try{x=i.verify(b,_.header.alg,E)}catch($){return v($)}if(!x)return v(new t("invalid signature"));const O=_.payload;if(O.nbf!==void 0&&!c.ignoreNotBefore){if(typeof O.nbf!="number")return v(new t("invalid nbf value"));if(O.nbf>S+(c.clockTolerance||0))return v(new f("jwt not active",new Date(1e3*O.nbf)))}if(O.exp!==void 0&&!c.ignoreExpiration){if(typeof O.exp!="number")return v(new t("invalid exp value"));if(S>=O.exp+(c.clockTolerance||0))return v(new m("jwt expired",new Date(1e3*O.exp)))}if(c.audience){const $=Array.isArray(c.audience)?c.audience:[c.audience];if(!(Array.isArray(O.aud)?O.aud:[O.aud]).some(function(N){return $.some(function(P){return P instanceof RegExp?P.test(N):P===N})}))return v(new t("jwt audience invalid. expected: "+$.join(" or ")))}if(c.issuer&&(typeof c.issuer=="string"&&O.iss!==c.issuer||Array.isArray(c.issuer)&&c.issuer.indexOf(O.iss)===-1))return v(new t("jwt issuer invalid. expected: "+c.issuer));if(c.subject&&O.sub!==c.subject)return v(new t("jwt subject invalid. expected: "+c.subject));if(c.jwtid&&O.jti!==c.jwtid)return v(new t("jwt jwtid invalid. expected: "+c.jwtid));if(c.nonce&&O.nonce!==c.nonce)return v(new t("jwt nonce invalid. expected: "+c.nonce));if(c.maxAge){if(typeof O.iat!="number")return v(new t("iat required when maxAge is specified"));const $=l(c.maxAge,O.iat);if($===void 0)return v(new t('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(S>=$+(c.clockTolerance||0))return v(new m("maxAge exceeded",new Date(1e3*$)))}if(c.complete===!0){const $=_.signature;return v(null,{header:M,payload:O,signature:$})}return v(null,O)})},Wr}const ph=kc(Dl);var tn,yc,gc,vc,bc;function dh(){if(yc)return tn;yc=1;const t=yl(),f=_l(),m=El(),s=dn(),{includes:l,isBoolean:o,isInteger:n,isNumber:i,isPlainObject:u,isString:r,once:e}=ph,{KeyObject:a,createSecretKey:p,createPrivateKey:h}=Vt(),d=["RS256","RS384","RS512","ES256","ES384","ES512","HS256","HS384","HS512","none"];f&&d.splice(3,0,"PS256","PS384","PS512");const b={expiresIn:{isValid:function(S){return n(S)||r(S)&&S},message:'"expiresIn" should be a number of seconds or string representing a timespan'},notBefore:{isValid:function(S){return n(S)||r(S)&&S},message:'"notBefore" should be a number of seconds or string representing a timespan'},audience:{isValid:function(S){return r(S)||Array.isArray(S)},message:'"audience" must be a string or array'},algorithm:{isValid:l.bind(null,d),message:'"algorithm" must be a valid string enum value'},header:{isValid:u,message:'"header" must be an object'},encoding:{isValid:r,message:'"encoding" must be a string'},issuer:{isValid:r,message:'"issuer" must be a string'},subject:{isValid:r,message:'"subject" must be a string'},jwtid:{isValid:r,message:'"jwtid" must be a string'},noTimestamp:{isValid:o,message:'"noTimestamp" must be a boolean'},keyid:{isValid:r,message:'"keyid" must be a string'},mutatePayload:{isValid:o,message:'"mutatePayload" must be a boolean'},allowInsecureKeySizes:{isValid:o,message:'"allowInsecureKeySizes" must be a boolean'},allowInvalidAsymmetricKeyTypes:{isValid:o,message:'"allowInvalidAsymmetricKeyTypes" must be a boolean'}},g={iat:{isValid:i,message:'"iat" should be a number of seconds'},exp:{isValid:i,message:'"exp" should be a number of seconds'},nbf:{isValid:i,message:'"nbf" should be a number of seconds'}};function c(S,w,_,M){if(!u(_))throw new Error('Expected "'+M+'" to be a plain object.');Object.keys(_).forEach(function(z){const k=S[z];if(k){if(!k.isValid(_[z]))throw new Error(k.message)}else if(!w)throw new Error('"'+z+'" is not allowed in "'+M+'"')})}const y={audience:"aud",issuer:"iss",subject:"sub",jwtid:"jti"},v=["expiresIn","notBefore","noTimestamp","audience","issuer","subject","jwtid"];return tn=function(S,w,_,M){typeof _=="function"?(M=_,_={}):_=_||{};const z=typeof S=="object"&&!dt.isBuffer(S),k=Object.assign({alg:_.algorithm||"HS256",typ:z?"JWT":void 0,kid:_.keyid},_.header);function E(O){if(M)return M(O);throw O}if(!w&&_.algorithm!=="none")return E(new Error("secretOrPrivateKey must have a value"));if(w!=null&&!(w instanceof a))try{w=h(w)}catch{try{w=p(typeof w=="string"?dt.from(w):w)}catch{return E(new Error("secretOrPrivateKey is not valid key material"))}}if(k.alg.startsWith("HS")&&w.type!=="secret")return E(new Error(`secretOrPrivateKey must be a symmetric key when using ${k.alg}`));if(/^(?:RS|PS|ES)/.test(k.alg)){if(w.type!=="private")return E(new Error(`secretOrPrivateKey must be an asymmetric key when using ${k.alg}`));if(!_.allowInsecureKeySizes&&!k.alg.startsWith("ES")&&w.asymmetricKeyDetails!==void 0&&w.asymmetricKeyDetails.modulusLength<2048)return E(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${k.alg}`))}if(S===void 0)return E(new Error("payload is required"));if(z){try{(function(O){c(g,!0,O,"payload")})(S)}catch(O){return E(O)}_.mutatePayload||(S=Object.assign({},S))}else{const O=v.filter(function($){return _[$]!==void 0});if(O.length>0)return E(new Error("invalid "+O.join(",")+" option for "+typeof S+" payload"))}if(S.exp!==void 0&&_.expiresIn!==void 0)return E(new Error('Bad "options.expiresIn" option the payload already has an "exp" property.'));if(S.nbf!==void 0&&_.notBefore!==void 0)return E(new Error('Bad "options.notBefore" option the payload already has an "nbf" property.'));try{(function(O){c(b,!1,O,"options")})(_)}catch(O){return E(O)}if(!_.allowInvalidAsymmetricKeyTypes)try{m(k.alg,w)}catch(O){return E(O)}const j=S.iat||Math.floor(Date.now()/1e3);if(_.noTimestamp?delete S.iat:z&&(S.iat=j),_.notBefore!==void 0){try{S.nbf=t(_.notBefore,j)}catch(O){return E(O)}if(S.nbf===void 0)return E(new Error('"notBefore" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}if(_.expiresIn!==void 0&&typeof S=="object"){try{S.exp=t(_.expiresIn,j)}catch(O){return E(O)}if(S.exp===void 0)return E(new Error('"expiresIn" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'))}Object.keys(y).forEach(function(O){const $=y[O];if(_[O]!==void 0){if(S[$]!==void 0)return E(new Error('Bad "options.'+O+'" option. The payload already has an "'+$+'" property.'));S[$]=_[O]}});const x=_.encoding||"utf8";if(typeof M!="function"){let O=s.sign({header:k,payload:S,secret:w,encoding:x});if(!_.allowInsecureKeySizes&&/^(?:RS|PS)/.test(k.alg)&&O.length<256)throw new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${k.alg}`);return O}M=M&&e(M),s.createSign({header:k,privateKey:w,payload:S,encoding:x}).once("error",M).once("done",function(O){if(!_.allowInsecureKeySizes&&/^(?:RS|PS)/.test(k.alg)&&O.length<256)return M(new Error(`secretOrPrivateKey has a minimum key size of 2048 bits for ${k.alg}`));M(null,O)})},tn}const mh={version:"0.0.4"};var wc,Ec,_c,Sc,Oc,jc,yh=function(){if(jc)return Oc;jc=1;const t=(_n||(_n=1,f=Sn,m=window,l=typeof(s=m.atob)=="function"?s:typeof dt=="function"?function(c){return new dt(c,"base64").toString("binary")}:typeof m.base64js=="object"?function(c){var y=m.base64js.b64ToByteArray(c);return Array.prototype.map.call(y,function(v){return String.fromCharCode(v)}).join("")}:function(){throw new Error("You're probably in an old browser or an iOS webworker. It might help to include beatgammit's base64-js.")},m.atob=l,f&&f.exports&&(f.exports=l)),Sn.exports);var f,m,s,l;const o=ff(),n=mf(),i=(No||(No=1,function(c){var y=Ut&&Ut.__createBinding||(Object.create?function(w,_,M,z){z===void 0&&(z=M),Object.defineProperty(w,z,{enumerable:!0,get:function(){return _[M]}})}:function(w,_,M,z){z===void 0&&(z=M),w[z]=_[M]}),v=Ut&&Ut.__exportStar||function(w,_){for(var M in w)M==="default"||Object.prototype.hasOwnProperty.call(_,M)||y(_,w,M)};Object.defineProperty(c,"__esModule",{value:!0}),c.middleware=c.fetch=void 0;const S=yf();v(rn(),c),v(we(),c),v(be(),c),c.fetch=S.fetch,c.middleware=S.middleware}(Ut)),Ut),u=Dt(),r=sh(),e=tl(),a=un(),p=function(){return gc||(gc=1,(c=Ea).exports={verify:hh(),sign:dh(),JsonWebTokenError:ke(),NotBeforeError:ll(),TokenExpiredError:fl()},Object.defineProperty(c.exports,"decode",{enumerable:!1,value:ml()})),Ea.exports;var c}(),h=function(){if(bc)return vc;function c(y){this.token=y.token||"",this.response=y.response||"",this.body=y.responseText||"",this.json=null,this.intuit_tid=y.intuit_tid||""}return bc=1,c.prototype.processResponse=function(y){this.response=y||"",this.body=y&&y.body||"",this.json=this.body&&this.isJson()?JSON.parse(this.body):null,this.intuit_tid=y&&y.headers&&y.headers.intuit_tid||""},c.prototype.getToken=function(){return this.token.getToken()},c.prototype.text=function(){return this.body},c.prototype.status=function(){return this.response.status},c.prototype.headers=function(){return this.response.headers},c.prototype.valid=function(){return this.response&&Number(this.response.status)>=200&&Number(this.response.status)<300},c.prototype.getJson=function(){if(!this.isJson())throw new Error("AuthResponse is not JSON");return this.json||(this.json=this.body?JSON.parse(this.body):null),this.json},c.prototype.get_intuit_tid=function(){return this.intuit_tid},c.prototype.isContentType=function(y){return this.getContentType().indexOf(y)>-1},c.prototype.getContentType=function(){return this.response.get(c._contentType)||""},c.prototype.isJson=function(){return this.isContentType("application/json")},c._contentType="Content-Type",c._jsonContentType="application/json",c._urlencodedContentType="application/x-www-form-urlencoded",vc=c}(),d=mh,b=function(){if(Ec)return wc;function c(y){y=y||{},this.realmId=y.realmId||"",this.token_type=y.token_type||"",this.access_token=y.access_token||"",this.refresh_token=y.refresh_token||"",this.expires_in=y.expires_in||0,this.x_refresh_token_expires_in=y.x_refresh_token_expires_in||0,this.id_token=y.id_token||"",this.latency=y.latency||6e4,this.createdAt=y.createdAt||Date.now()}return Ec=1,c.prototype.accessToken=function(){return this.getToken().access_token},c.prototype.refreshToken=function(){return this.getToken().refresh_token},c.prototype.tokenType=function(){return this.getToken().token_type},c.prototype.getToken=function(){return{token_type:this.token_type,access_token:this.access_token,expires_in:this.expires_in,refresh_token:this.refresh_token,x_refresh_token_expires_in:this.x_refresh_token_expires_in,realmId:this.realmId,id_token:this.id_token,createdAt:this.createdAt}},c.prototype.setToken=function(y){return this.access_token=y.access_token,this.refresh_token=y.refresh_token,this.token_type=y.token_type,this.expires_in=y.expires_in,this.x_refresh_token_expires_in=y.x_refresh_token_expires_in,this.id_token=y.id_token||"",this.createdAt=y.createdAt||Date.now(),this},c.prototype.clearToken=function(){return this.access_token="",this.refresh_token="",this.token_type="",this.expires_in=0,this.x_refresh_token_expires_in=0,this.id_token="",this.createdAt=0,this},c.prototype._checkExpiry=function(y){return this.createdAt+1e3*y-this.latency>Date.now()},c.prototype.isAccessTokenValid=function(){return this._checkExpiry(this.expires_in)},c.prototype.isRefreshTokenValid=function(){return this._checkExpiry(this.x_refresh_token_expires_in)},wc=c}();function g(c){if(this.environment=c.environment,this.clientId=c.clientId,this.clientSecret=c.clientSecret,this.redirectUri=c.redirectUri,this.token=new b(c.token),this.logging=!(!Object.prototype.hasOwnProperty.call(c,"logging")||c.logging!==!0),this.logger=null,this.state=new o,this.logging){const y="./logs";a.existsSync(y)||a.mkdirSync(y),this.logger=r.createLogger({level:"info",format:r.format.combine(r.format.timestamp(),r.format.printf(v=>`${v.timestamp} ${v.level}: ${v.message}`)),transports:[new r.transports.File({filename:e.join(y,"oAuthClient-log.log")})]})}}return g.cacheId="cacheID",g.authorizeEndpoint="https://appcenter.intuit.com/connect/oauth2",g.tokenEndpoint="https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer",g.revokeEndpoint="https://developer.api.intuit.com/v2/oauth2/tokens/revoke",g.userinfo_endpoint_production="https://accounts.platform.intuit.com/v1/openid_connect/userinfo",g.userinfo_endpoint_sandbox="https://sandbox-accounts.platform.intuit.com/v1/openid_connect/userinfo",g.migrate_sandbox="https://developer-sandbox.api.intuit.com/v2/oauth2/tokens/migrate",g.migrate_production="https://developer.api.intuit.com/v2/oauth2/tokens/migrate",g.environment={sandbox:"https://sandbox-quickbooks.api.intuit.com/",production:"https://quickbooks.api.intuit.com/"},g.jwks_uri="https://oauth.platform.intuit.com/op/v1/jwks",g.scopes={Accounting:"com.intuit.quickbooks.accounting",Payment:"com.intuit.quickbooks.payment",Payroll:"com.intuit.quickbooks.payroll",TimeTracking:"com.intuit.quickbooks.payroll.timetracking",Benefits:"com.intuit.quickbooks.payroll.benefits",Profile:"profile",Email:"email",Phone:"phone",Address:"address",OpenId:"openid",Intuit_name:"intuit_name"},g.user_agent=`Intuit-OAuthClient-JS_${d.version}_${u.type()}_${u.release()}_${u.platform()}`,g.prototype.setAuthorizeURLs=function(c){if(!c)throw new Error("Provide the custom authorize URL's");return g.authorizeEndpoint=c.authorizeEndpoint,g.tokenEndpoint=c.tokenEndpoint,g.revokeEndpoint=c.revokeEndpoint,this.environment==="sandbox"?g.userinfo_endpoint_sandbox=c.userInfoEndpoint:g.userinfo_endpoint_production=c.userInfoEndpoint,this},g.prototype.authorizeUri=function(c){if(!(c=c||{}).scope)throw new Error("Provide the scopes");const y=`${g.authorizeEndpoint}?${n.stringify({response_type:"code",redirect_uri:this.redirectUri,client_id:this.clientId,scope:Array.isArray(c.scope)?c.scope.join(" "):c.scope,state:c.state||this.state.create(this.state.secretSync())})}`;return this.log("info","The Authorize Uri is :",y),y},g.prototype.createToken=function(c){return new Promise(y=>{if(!c)throw new Error("Provide the Uri");const v=n.parse(c.split("?").reverse()[0]);this.getToken().realmId=v.realmId?v.realmId:"","state"in v&&(this.getToken().state=v.state);const S={};v.code&&(S.grant_type="authorization_code",S.code=v.code,S.redirect_uri=v.redirectUri||this.redirectUri);const w={url:g.tokenEndpoint,body:S,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":h._urlencodedContentType,Accept:h._jsonContentType,"User-Agent":g.user_agent}};y(this.getTokenRequest(w))}).then(y=>{const v=y.json?y:null,S=v&&v.getJson()||y;return this.token.setToken(S),this.log("info","Create Token response is : ",JSON.stringify(v,null,2)),v}).catch(y=>{throw this.log("error","Create Token () threw an exception : ",JSON.stringify(y,null,2)),y})},g.prototype.refresh=function(){return new Promise(c=>{this.validateToken();const y={grant_type:"refresh_token"};y.refresh_token=this.getToken().refresh_token;const v={url:g.tokenEndpoint,body:y,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":h._urlencodedContentType,Accept:h._jsonContentType,"User-Agent":g.user_agent}};c(this.getTokenRequest(v))}).then(c=>{const y=c.json?c:null,v=y&&y.getJson()||c;return this.token.setToken(v),this.log("info","Refresh Token () response is : ",JSON.stringify(y,null,2)),y}).catch(c=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(c,null,2)),c})},g.prototype.refreshUsingToken=function(c){return new Promise(y=>{if(!c)throw new Error("The Refresh token is missing");const v={grant_type:"refresh_token"};v.refresh_token=c;const S={url:g.tokenEndpoint,body:v,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,"Content-Type":h._urlencodedContentType,Accept:h._jsonContentType,"User-Agent":g.user_agent}};y(this.getTokenRequest(S))}).then(y=>{const v=y.json?y:null,S=v&&v.getJson()||y;return this.token.setToken(S),this.log("info","Refresh usingToken () response is : ",JSON.stringify(v,null,2)),v}).catch(y=>{throw this.log("error","Refresh Token () threw an exception : ",JSON.stringify(y,null,2)),y})},g.prototype.revoke=function(c){return new Promise(y=>{c=c||{};const v={};v.token=c.access_token||c.refresh_token||(this.getToken().isAccessTokenValid()?this.getToken().access_token:this.getToken().refresh_token);const S={url:g.revokeEndpoint,body:v,method:"POST",headers:{Authorization:`Basic ${this.authHeader()}`,Accept:h._jsonContentType,"Content-Type":h._jsonContentType,"User-Agent":g.user_agent}};y(this.getTokenRequest(S))}).then(y=>(this.token.clearToken(),this.log("info","Revoke Token () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","Revoke Token () threw an exception : ",JSON.stringify(y,null,2)),y})},g.prototype.getUserInfo=function(){return new Promise(c=>{const y={url:this.environment==="sandbox"?g.userinfo_endpoint_sandbox:g.userinfo_endpoint_production,method:"GET",headers:{Authorization:`Bearer ${this.token.access_token}`,Accept:h._jsonContentType,"User-Agent":g.user_agent}};c(this.getTokenRequest(y))}).then(c=>{const y=c.json?c:null;return this.log("info","The Get User Info () response is : ",JSON.stringify(y,null,2)),y}).catch(c=>{throw this.log("error","Get User Info () threw an exception : ",JSON.stringify(c,null,2)),c})},g.prototype.makeApiCall=function(c){return new Promise(y=>{const v=(c=c||{}).transport?c.transport:i.createTransport({type:"text"}),S=c.headers&&typeof c.headers=="object"?Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:h._jsonContentType,"User-Agent":g.user_agent},c.headers):Object.assign({},{Authorization:`Bearer ${this.getToken().access_token}`,Accept:h._jsonContentType,"User-Agent":g.user_agent}),w={url:c.url,method:c.method||"GET",headers:S,transport:v};c.body&&(w.body=c.body),y(this.getTokenRequest(w))}).then(y=>(this.log("info","The makeAPICall () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","Get makeAPICall () threw an exception : ",JSON.stringify(y,null,2)),y})},g.prototype.validateIdToken=function(c={}){return new Promise(y=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const v=this.getToken().id_token||c.id_token,S=v.split("."),w=JSON.parse(t(S[0])),_=JSON.parse(t(S[1]));if(_.iss!=="https://oauth.platform.intuit.com/op/v1"||!_.aud.find(z=>z===this.clientId)||_.exp<Date.now()/1e3)return!1;const M={url:g.jwks_uri,method:"GET",headers:{Accept:h._jsonContentType,"User-Agent":g.user_agent}};return y(this.getKeyFromJWKsURI(v,w.kid,M))}).then(y=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(y,null,2)),!!y)).catch(y=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(y,null,2)),y})},g.prototype.getValidatedIdToken=function(c={}){return new Promise(y=>{if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const v=this.getToken().id_token||c.id_token,S=v.split("."),w=JSON.parse(t(S[0])),_=JSON.parse(t(S[1]));if(_.iss!=="https://oauth.platform.intuit.com/op/v1"||!_.aud.find(z=>z===this.clientId)||_.exp<Date.now()/1e3)return!1;const M={url:g.jwks_uri,method:"GET",headers:{Accept:h._jsonContentType,"User-Agent":g.user_agent}};return y(this.getKeyFromJWKsURI(v,w.kid,M))}).then(y=>(this.log("info","The validateIdToken () response is : ",JSON.stringify(y,null,2)),y)).catch(y=>{throw this.log("error","The validateIdToken () threw an exception : ",JSON.stringify(y,null,2)),y})},g.prototype.getIdTokenComponents=async function(c={}){if(!this.getToken().id_token)throw new Error("The bearer token does not have id_token");const y=(this.getToken().id_token||c.id_token).split("."),v=JSON.parse(t(y[0])),S=JSON.parse(t(y[1]));if(S.iss!=="https://oauth.platform.intuit.com/op/v1")throw new Error('The issuer is not as mentioned in "issuer"');if(!S.aud.find(w=>w===this.clientId))throw new Error("The aud field in idToken does not contain application's clientId");if(S.exp<Date.now()/1e3)throw new Error("The timestamp has elapsed");return{id_token_header:v,id_token_payload:S}},g.prototype.getKeyFromJWKsURI=function(c,y,v){return new Promise(S=>{S(this.loadResponse(v))}).then(S=>{if(Number(S.status)!==200)throw new Error("Could not reach JWK endpoint");const w=JSON.parse(S.body).keys.find(M=>M.kid===y),_=this.getPublicKey(w.n,w.e);return p.verify(c,_)}).catch(S=>{throw S=this.createError(S),this.log("error","The getKeyFromJWKsURI () threw an exception : ",JSON.stringify(S,null,2)),S})},g.prototype.getPublicKey=function(c,y){return function(){if(Sc)return _c;function S(M){var z=M[0];return z<"0"||z>"7"?"00"+M:M}function w(M){var z=M.toString(16);return z.length%2?"0"+z:z}function _(M){if(M<=127)return w(M);var z=w(M);return w(128+z.length/2)+z}return Sc=1,_c=function(M,z){var k=dt.from(M,"base64"),E=dt.from(z,"base64"),j=k.toString("hex"),x=E.toString("hex");j=S(j),x=S(x);var O=j.length/2,$=x.length/2,N=_(O),P=_($),G="30"+_(O+$+N.length/2+P.length/2+2)+"02"+N+j+"02"+P+x;return`-----BEGIN RSA PUBLIC KEY-----
97
- `+dt.from(G,"hex").toString("base64").match(/.{1,64}/g).join(`
98
- `)+`
99
- -----END RSA PUBLIC KEY-----
100
- `}}()(c,y)},g.prototype.getTokenRequest=function(c){const y=new h({token:this.token});return new Promise(v=>{v(this.loadResponse(c))}).then(v=>{if(y.processResponse(v),!y.valid())throw new Error("Response has an Error");return y}).catch(v=>{throw v.authResponse||(v=this.createError(v,y)),v})},g.prototype.validateToken=function(){if(!this.token.refreshToken())throw new Error("The Refresh token is missing");if(!this.token.isRefreshTokenValid())throw new Error("The Refresh token is invalid, please Authorize again.")},g.prototype.loadResponse=function(c){return i.get(c).then(y=>y)},g.prototype.loadResponseFromJWKsURI=function(c){return i.get(c).then(y=>y)},g.prototype.createError=function(c,y){return y&&y.body!==""?(c.authResponse=y,c.originalMessage=c.message,c.error="","error"in y.getJson()?c.error=y.getJson().error:y.response.statusText?c.error=y.response.statusText:c.message&&(c.error=c.message),c.error_description="","error_description"in y.getJson()?c.error_description=y.getJson().error_description:y.response.statusText&&(c.error_description=y.response.statusText),c.intuit_tid=y.headers().intuit_tid,c):(c.error=y&&y.response.statusText||c.message||"",c.authResponse=y||"",c.intuit_tid=y&&y.headers()&&y.headers().intuit_tid||"",c.originalMessage=c.message||"",c.error_description=y&&y.response.statusText||"",c)},g.prototype.isAccessTokenValid=function(){return this.token.isAccessTokenValid()},g.prototype.getToken=function(){return this.token},g.prototype.setToken=function(c){return this.token=new b(c),this.token},g.prototype.authHeader=function(){const c=`${this.clientId}:${this.clientSecret}`;return typeof btoa=="function"?btoa(c):dt.from(c).toString("base64")},g.prototype.log=function(c,y,v){this.logging&&this.logger.log(c,y+v)},Oc=g}();const re=jl(yh),Sl=(()=>{let t,f,m=!1;return{isInitiated:m,init:(s,l)=>{f=new re({clientId:Ql.quickbooksKey,clientSecret:"",environment:Xl,redirectUri:window.location.origin+s}),t=f.authorizeUri({state:l,scope:[re.scopes.Accounting,re.scopes.OpenId,re.scopes.Email,re.scopes.Profile,"project-management.project"]}),m=!0},handleClick:()=>{window.open(t,"_self","noopener")}}})(),gh=Yl(function(t){const f=Ac(t),m=f?.companyName??"",s=Rc(t).tenantsInOrder.length>1,l=Tl(f?.userRole??[]),o=f.externalConnections?.saveConnectionState;return{companyName:m,isGoBackAllowed:s,isAdmin:l,saveConnectionState:o}},function(t,f){const{tenantsInOrder:m,navigate:s,currentTenant:l}=f;return{handleOnConnectClick:()=>{Sl.handleClick()},handleGoBack:()=>{const o=m[0].tenantEmailDomain!==l.tenantEmailDomain?m[0]:m[1],n=`/${o.tenantEmailDomain}`,i=Pc.getSignedInUser();i!=null&&(t(Al(o.tenantId)),t(Rl(i.userId,o.tenantId,i.zeniSessionId))),s(n,{replace:!0}),tf.trackCompanySwitch(o.companyId,o.companyName,o.userRole)}}})(Jl);function vh(t){const f=Tc(t,!0).query,m=f.code,s=f.realmId,l=f.state;return{code:m!=null?Pe(m):"",realmId:s!=null?Pe(s):"",state:l!=null?Pe(l):""}}function Ph(){const t=Zl(),f=Hl(),m=Vl(),{code:s,realmId:l,state:o}=vh(f.search),{setLoading:n,clearAllLoading:i}=Kl(),u=En(b=>Ac(b)),r=En(b=>Rc(b).tenantsInOrder),e=u.externalConnections?.accounting[0],a=e?.connectionType,p=e?.connectionName,h=e?.connectionId??"",d=Pc.getSignedInUser()?.userId??"";return xl.useEffect(()=>{bh(s,l,o,h,d)===!0&&u.externalConnections?.saveConnectionState!=="In-Progress"?(n(Wl.CONNECTION_AUTH),m(kl(u.tenantId,{connection_type:a??"accounting",connection_name:p??"quickbooks_online",authorization_code:s,realm_id:l,connection_id:h,user_id:d},Tc(window.location.origin+"/connection/auth"),u.companyId)),t(f.pathname)):(i(),Sl.init("/connection/auth",u.tenantEmailDomain))},[s,l,o,h,d,u.tenantId,u.companyId,u.externalConnections?.saveConnectionState,f.pathname]),Ol.jsx(gh,{navigate:t,tenantsInOrder:r,currentTenant:u})}const bh=(t,f,m,s,l)=>t!=""&&f!=""&&m!=""&&s!=null&&s!=""&&l!=null&&l!="";export{Ph as Q,vh as g,bh as h,Sl as q};