n8n-editor-ui 1.102.2 → 1.104.0

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 (131) hide show
  1. package/dist/assets/{ActionDropdown-CiegfqhB.js → ActionDropdown-Ct6XJ0cl.js} +1 -1
  2. package/dist/assets/{AnimatedSpinner-DZ7wHd_W.js → AnimatedSpinner-CIyQ3zKd.js} +1 -1
  3. package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-BQoi5khn.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-xv6FYiyR.js} +1 -1
  4. package/dist/assets/{AuthView-K2y2JXyp.js → AuthView-dJdngoqx.js} +2 -2
  5. package/dist/assets/{ChangePasswordView-D_EsQtLD.js → ChangePasswordView-C74U84q5.js} +3 -3
  6. package/dist/assets/CollectionParameter-DCn5Jtcj.js +4 -0
  7. package/dist/assets/ConsumedTokensDetails.vue_vue_type_script_setup_true_lang-CkASni2S.js +44 -0
  8. package/dist/assets/{CredentialsView-DvE9GnD7.js → CredentialsView-jouDB3H1.js} +8 -8
  9. package/dist/assets/{DemoFooter-kRP32xy4.js → DemoFooter-CHlbEpB-.js} +9 -8
  10. package/dist/assets/{EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-B6KKFEL7.js → EmptySharedSectionActionBox.vue_vue_type_script_setup_true_lang-CbDihlsO.js} +1 -1
  11. package/dist/assets/{EntityNotFound-q_5k8QTh.js → EntityNotFound-Dtqj9thX.js} +1 -1
  12. package/dist/assets/{EntityUnAuthorised-DrFh2EVh.js → EntityUnAuthorised-BBsbc6du.js} +1 -1
  13. package/dist/assets/{ErrorView-CdyA4lBI.js → ErrorView-BN4Jm32q.js} +1 -1
  14. package/dist/assets/{EvaluationsRootView-DBi9hUxa.js → EvaluationsRootView-B70WfmnQ.js} +5 -3
  15. package/dist/assets/{EvaluationsView-6l_Invxt.css → EvaluationsView-BTyYfInB.css} +6 -6
  16. package/dist/assets/{EvaluationsView-VbCSsM2z.js → EvaluationsView-DQd7op3j.js} +53 -40
  17. package/dist/assets/{ExecutionsTime-DkME6I3E.css → ExecutionsTime-Bo7IOE5K.css} +6 -6
  18. package/dist/assets/{ExecutionsTime.vue_vue_type_script_setup_true_lang-v5SEEKlZ.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-C_2brmCr.js} +16 -16
  19. package/dist/assets/{ExecutionsView-sSmNa_LK.js → ExecutionsView-CKPZTnZV.js} +21 -18
  20. package/dist/assets/{FileSaver.min-BemkeU_7.js → FileSaver.min-BvxTURBB.js} +1 -1
  21. package/dist/assets/{FixedCollectionParameter-yzvCzSx6.js → FixedCollectionParameter-CA-CigeR.js} +1 -1
  22. package/dist/assets/{ForgotMyPasswordView-BKvBLqbr.js → ForgotMyPasswordView-YyVmo-nw.js} +3 -3
  23. package/dist/assets/{InfoAccordion--ZQQuSPX.js → InfoAccordion-BNmUe2V9.js} +1 -1
  24. package/dist/assets/{InsightsChartAverageRuntime-DGOGXDwW.js → InsightsChartAverageRuntime-C9sCNhzD.js} +5 -4
  25. package/dist/assets/{InsightsChartFailed-1vg5XpxV.js → InsightsChartFailed-DWA6YbZj.js} +5 -4
  26. package/dist/assets/{InsightsChartFailureRate-7nJvVi9O.js → InsightsChartFailureRate-CfknGtrr.js} +5 -4
  27. package/dist/assets/{InsightsChartTimeSaved-DKn1pZ2q.js → InsightsChartTimeSaved-DtLO9DJx.js} +5 -4
  28. package/dist/assets/{InsightsChartTotal-ByrPtNMJ.js → InsightsChartTotal-yX_QJ-44.js} +5 -4
  29. package/dist/assets/{InsightsDashboard-BwLnzxKC.js → InsightsDashboard-BlYvn96O.js} +19 -19
  30. package/dist/assets/{InsightsDashboard-CXbI-Jyg.css → InsightsDashboard-C27Avzrv.css} +2 -2
  31. package/dist/assets/{InsightsPaywall-8Xzv5tgi.js → InsightsPaywall-BCfIY_xn.js} +3 -3
  32. package/dist/assets/{InsightsSummary-CVMZ0AIR.js → InsightsSummary-OiO7efWD.js} +9 -4
  33. package/dist/assets/{InsightsTableWorkflows-DJhX6bQW.css → InsightsTableWorkflows-BTHSCwX8.css} +27 -3
  34. package/dist/assets/{InsightsTableWorkflows-KGsV_wLS.js → InsightsTableWorkflows-pTl3m7wx.js} +80 -27
  35. package/dist/assets/{Logo-DFdhGUpH.js → Logo-8g4P9vyv.js} +1 -1
  36. package/dist/assets/{LogsPanel-Bvy4ANV7.css → LogsPanel-D0xdq4fV.css} +21 -21
  37. package/dist/assets/{LogsPanel-DDzEUcu_.js → LogsPanel-so01MtIR.js} +23 -12
  38. package/dist/assets/{MainHeader-IUjqKc1i.js → MainHeader-CcUlKfHC.js} +20 -26
  39. package/dist/assets/{MainHeader-DYYEm7nF.css → MainHeader-qSHM1Rvp.css} +12 -12
  40. package/dist/assets/{MainSidebar-CaLHZgDB.css → MainSidebar-D74VZmM5.css} +7 -8
  41. package/dist/assets/{MainSidebar-BV-JzM27.js → MainSidebar-DOGhP_oY.js} +26 -25
  42. package/dist/assets/{N8nDataTableServer-Dq5Mwh9d.js → N8nDataTableServer-9HerjyzX.js} +39 -19
  43. package/dist/assets/{NodeCreation-DCV9QVeh.js → NodeCreation-CVbCKnet.js} +45 -21
  44. package/dist/assets/{NodeCreation-32nlvQSy.css → NodeCreation-CxN6JIS_.css} +9 -1
  45. package/dist/assets/{NodeCreator-C8jv1gta.js → NodeCreator-BOosPF8_.js} +114 -204
  46. package/dist/assets/{NodeCreator-DWE25utr.css → NodeCreator-CkvY2niF.css} +0 -128
  47. package/dist/assets/{NodeDetailsView-D7qedYA0.js → NodeDetailsView-KFidngJi.js} +21 -16
  48. package/dist/assets/{NodeDetailsViewV2-BAkPjDo5.js → NodeDetailsViewV2-BL4KKqW-.js} +21 -16
  49. package/dist/assets/{NodeView-DKlyR0_C.js → NodeView-BzC6ELga.js} +2271 -686
  50. package/dist/assets/{NodeView-BbQy7Are.css → NodeView-G2qfXaOy.css} +766 -95
  51. package/dist/assets/{ProjectHeader-Co0EPo6y.js → ProjectHeader-B9-GdGvC.js} +2 -2
  52. package/dist/assets/{ProjectSettings-CUwuhSyu.js → ProjectSettings-CE4_geFa.js} +7 -5
  53. package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-DDVpVAyT.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-Bb8zUJvi.js} +1 -1
  54. package/dist/assets/{ResourcesListLayout-0KbQy3_m.js → ResourcesListLayout-ClTEnqVS.js} +3 -3
  55. package/dist/assets/{RunDataJson-T-LRvnsQ.js → RunDataJson-fXQKTIFD.js} +8 -9
  56. package/dist/assets/{RunDataJsonActions-C5tGgl2w.js → RunDataJsonActions-CMP1sUPZ.js} +1 -1
  57. package/dist/assets/RunDataParsedAiContent-CHK6Y4ET.js +298 -0
  58. package/dist/assets/{RunDataSearch-CsykTpQU.js → RunDataSearch-CAZGWZzz.js} +1 -1
  59. package/dist/assets/{RunDataTable-DS-hDrAF.js → RunDataTable-CeqmA-n3.js} +65 -56
  60. package/dist/assets/{RunDataTable-CTBtmQIs.css → RunDataTable-n918b-Qv.css} +55 -55
  61. package/dist/assets/{SamlOnboarding-Dr42BiUa.js → SamlOnboarding-BrdzPMSK.js} +3 -3
  62. package/dist/assets/{SettingsApiView-0TAqOns3.js → SettingsApiView-Cj2YYKAl.js} +5 -4
  63. package/dist/assets/{SettingsCommunityNodesView-BO5mZg81.js → SettingsCommunityNodesView-ChB--kZD.js} +4 -3
  64. package/dist/assets/{SettingsExternalSecrets-BmpYfnUN.js → SettingsExternalSecrets-BjghCvkE.js} +5 -3
  65. package/dist/assets/{SettingsLdapView-AdcIL_WB.js → SettingsLdapView-DIB1-nTk.js} +1 -1
  66. package/dist/assets/{SettingsLogStreamingView-DHAPBv4i.js → SettingsLogStreamingView-BOOGkcwK.js} +1 -1
  67. package/dist/assets/{SettingsPersonalView-D-sKTNF5.js → SettingsPersonalView-DaNZTNUy.js} +1 -1
  68. package/dist/assets/{SettingsSourceControl-D_jgIQPN.js → SettingsSourceControl-B5fQRT0V.js} +10 -8
  69. package/dist/assets/{SettingsSso-DpxORkrt.js → SettingsSso-CWX-T13W.js} +1 -1
  70. package/dist/assets/{SettingsUsageAndPlan-DWu4RW1N.js → SettingsUsageAndPlan-Cnnf9k6X.js} +15 -10
  71. package/dist/assets/{SettingsUsageAndPlan-D6TiPwUx.css → SettingsUsageAndPlan-ZZQpCmyQ.css} +3 -3
  72. package/dist/assets/{SettingsUsersView-r6-ZO8CO.js → SettingsUsersView-BLDi4lpv.js} +107 -44
  73. package/dist/assets/{SettingsUsersView-BuZbf1jq.css → SettingsUsersView-RQTdLxyb.css} +13 -6
  74. package/dist/assets/{SettingsView-DoZ4920P.js → SettingsView-Dtc8MEv6.js} +1 -1
  75. package/dist/assets/{SetupView-Ca70rhsh.js → SetupView-C4C-2Idz.js} +3 -3
  76. package/dist/assets/{SetupWorkflowCredentialsButton-ujybntOa.js → SetupWorkflowCredentialsButton-Pzrxag-k.js} +1 -1
  77. package/dist/assets/{SetupWorkflowFromTemplateView-KE6NTkHC.js → SetupWorkflowFromTemplateView-CRsZDYct.js} +3 -3
  78. package/dist/assets/{SigninView-_rmKLSpx.js → SigninView-COyoSAUi.js} +3 -3
  79. package/dist/assets/{SignoutView-DYPGyBsZ.js → SignoutView-B0t9kc5s.js} +1 -1
  80. package/dist/assets/{SignupView-BDSpYIB0.js → SignupView-BN8MCOnb.js} +3 -3
  81. package/dist/assets/{TableBase-Bz6zRvAL.js → TableBase-BmhIwPwZ.js} +1 -1
  82. package/dist/assets/{Tags-Doq3WsWA.js → Tags-DeTgaVsD.js} +1 -1
  83. package/dist/assets/{TemplateDetails-BzDS-0Fd.js → TemplateDetails-Bh-WSvQ-.js} +2 -2
  84. package/dist/assets/{TemplateList-D_XBHKQu.js → TemplateList-DxvJMjPE.js} +1 -1
  85. package/dist/assets/{TemplatesCollectionView-BvnC5QZ9.js → TemplatesCollectionView-BhilAS_8.js} +6 -6
  86. package/dist/assets/{TemplatesSearchView-CCsnhiD3.js → TemplatesSearchView-CWxnTQ8Z.js} +3 -3
  87. package/dist/assets/{TemplatesView-DbW9D41Q.js → TemplatesView-Co-FQLhr.js} +1 -1
  88. package/dist/assets/{TemplatesWorkflowView-CVFtBBcd.js → TemplatesWorkflowView-DAWgsT0T.js} +6 -6
  89. package/dist/assets/{TriggerPanel-DRpKKKun.css → TriggerPanel-DJv04feX.css} +1 -354
  90. package/dist/assets/{TriggerPanel-CP3_UsCW.js → TriggerPanel-JaXhe1VW.js} +133 -1089
  91. package/dist/assets/{VariablesView-DIZkSQZ3.js → VariablesView-JnfEn1f-.js} +5 -5
  92. package/dist/assets/VueMarkdown-DDKnTMgT.js +1570 -0
  93. package/dist/assets/{WorkerView-DgXLi4d9.js → WorkerView-DZG4C_Qp.js} +6 -5
  94. package/dist/assets/{WorkflowActivator-f0lJXePV.js → WorkflowActivator-C8hP37n7.js} +2 -2
  95. package/dist/assets/{WorkflowExecutionsInfoAccordion-BFSae6PE.js → WorkflowExecutionsInfoAccordion-DCNvkxhh.js} +2 -2
  96. package/dist/assets/{WorkflowExecutionsLandingPage-Bb104kSO.js → WorkflowExecutionsLandingPage-DVp6SoPy.js} +3 -3
  97. package/dist/assets/{WorkflowExecutionsPreview-Do5Rp-8m.js → WorkflowExecutionsPreview-CKYWZWv1.js} +9 -7
  98. package/dist/assets/{WorkflowExecutionsView-BSv7OYhx.js → WorkflowExecutionsView-BIkweP3p.js} +8 -8
  99. package/dist/assets/{WorkflowHistory-CsEfwZK8.js → WorkflowHistory-C0LrWJW0.js} +6 -6
  100. package/dist/assets/{WorkflowOnboardingView-BOvx7CPi.js → WorkflowOnboardingView-CWMUgnLK.js} +1 -1
  101. package/dist/assets/{WorkflowPreview-BQ_GLS2J.js → WorkflowPreview-DmYMBSH3.js} +3 -1
  102. package/dist/assets/{WorkflowsView-DYxrTukw.js → WorkflowsView-jEphnf90.js} +125 -17
  103. package/dist/assets/aiTemplatesStarterCollection.store-oECEA5nR.js +794 -0
  104. package/dist/assets/{chartjs.utils-D8ESC4_p.js → chartjs.utils-CP28DnUQ.js} +2 -2
  105. package/dist/assets/{en-C2EOIYih.js → en-BX7CKkqE.js} +27 -6
  106. package/dist/assets/{global-link-actions-BIVeUMGo.js → global-link-actions-BjpAG7gt.js} +1 -1
  107. package/dist/assets/{import-curl-CjhdjoGU.js → import-curl-BD22LJ4z.js} +1 -1
  108. package/dist/assets/{index-COleXxZf.css → index-BWpYwmXd.css} +541 -1074
  109. package/dist/assets/{index-DAODXvFs.js → index-CjbtyS1n.js} +1 -1
  110. package/dist/assets/{index-B3p3789J.js → index-Cm5yBbby.js} +21381 -15752
  111. package/dist/assets/{pickBy-CaeaG_7P.js → pickBy-DA-1tKxT.js} +1 -1
  112. package/dist/assets/{templateActions-Ct4VGqHx.js → templateActions-D9IAsJ2m.js} +1 -1
  113. package/dist/assets/{typescript.worker-CUj0Nj-S.js → typescript.worker-KwUz68Jx.js} +2499 -157
  114. package/dist/assets/{useBeforeUnload-Yj83KQFp.js → useBeforeUnload-BR-V9Uaz.js} +1 -1
  115. package/dist/assets/{useExecutionDebugging-wUQ9K2sh.js → useExecutionDebugging-C8zR-uFJ.js} +1 -1
  116. package/dist/assets/{useExecutionHelpers-i07QEXws.js → useExecutionHelpers-DQcWcZ8o.js} +1 -1
  117. package/dist/assets/{useImportCurlCommand-Bs8VOC2z.js → useImportCurlCommand-B3-fEq8S.js} +9 -9
  118. package/dist/assets/{RunData-DuKNwYqe.css → useKeybindings-2A271Jke.css} +193 -62
  119. package/dist/assets/{RunData-CctCvWsu.js → useKeybindings-DetzdpXy.js} +288 -1696
  120. package/dist/assets/{useProjectPages-DHCwu3nX.js → useProjectPages-qXIMd_UF.js} +1 -1
  121. package/dist/assets/{usePushConnection-Iyy-883l.js → usePushConnection-Duvg6z8O.js} +10 -2
  122. package/dist/assets/{useWorkflowActivate-DpHXxGAq.js → useWorkflowActivate-BE4Ckf9k.js} +1 -1
  123. package/dist/index.html +3 -7
  124. package/eslint.config.mjs +1 -1
  125. package/index.html +1 -5
  126. package/package.json +1 -1
  127. package/vite.config.mts +23 -3
  128. package/dist/assets/CollectionParameter-DvyRKBx0.js +0 -4
  129. package/dist/assets/RunDataParsedAiContent-BILLIvVH.js +0 -148
  130. package/dist/assets/useKeybindings-BUK7Ngh6.css +0 -133
  131. package/dist/assets/useKeybindings-ul7syjnB.js +0 -118
@@ -2435,6 +2435,7 @@ function splitPrefixSuffix(input, options = {}) {
2435
2435
  input.slice(suffixIndex)
2436
2436
  ];
2437
2437
  }
2438
+ const global$1 = globalThis || void 0 || self;
2438
2439
  /**
2439
2440
  * @vue/shared v3.5.13
2440
2441
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
@@ -2473,7 +2474,7 @@ const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" &
2473
2474
  const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
2474
2475
  let _globalThis;
2475
2476
  const getGlobalThis = () => {
2476
- return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
2477
+ return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global$1 !== "undefined" ? global$1 : {});
2477
2478
  };
2478
2479
  /**
2479
2480
  * @vue/reactivity v3.5.13
@@ -3869,7 +3870,7 @@ function logError(err, type, contextVNode, throwInDev = true, throwInProd = fals
3869
3870
  console.error(err);
3870
3871
  }
3871
3872
  }
3872
- const queue = [];
3873
+ const queue$1 = [];
3873
3874
  let flushIndex = -1;
3874
3875
  const pendingPostFlushCbs = [];
3875
3876
  let activePostFlushCbs = null;
@@ -3878,10 +3879,10 @@ const resolvedPromise = /* @__PURE__ */ Promise.resolve();
3878
3879
  let currentFlushPromise = null;
3879
3880
  function findInsertionIndex(id) {
3880
3881
  let start = flushIndex + 1;
3881
- let end = queue.length;
3882
+ let end = queue$1.length;
3882
3883
  while (start < end) {
3883
3884
  const middle = start + end >>> 1;
3884
- const middleJob = queue[middle];
3885
+ const middleJob = queue$1[middle];
3885
3886
  const middleJobId = getId(middleJob);
3886
3887
  if (middleJobId < id || middleJobId === id && middleJob.flags & 2) {
3887
3888
  start = middle + 1;
@@ -3894,12 +3895,12 @@ function findInsertionIndex(id) {
3894
3895
  function queueJob(job) {
3895
3896
  if (!(job.flags & 1)) {
3896
3897
  const jobId = getId(job);
3897
- const lastJob = queue[queue.length - 1];
3898
+ const lastJob = queue$1[queue$1.length - 1];
3898
3899
  if (!lastJob || // fast path when the job id is larger than the tail
3899
3900
  !(job.flags & 2) && jobId >= getId(lastJob)) {
3900
- queue.push(job);
3901
+ queue$1.push(job);
3901
3902
  } else {
3902
- queue.splice(findInsertionIndex(jobId), 0, job);
3903
+ queue$1.splice(findInsertionIndex(jobId), 0, job);
3903
3904
  }
3904
3905
  job.flags |= 1;
3905
3906
  queueFlush();
@@ -3949,8 +3950,8 @@ function flushPostFlushCbs(seen) {
3949
3950
  const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
3950
3951
  function flushJobs(seen) {
3951
3952
  try {
3952
- for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
3953
- const job = queue[flushIndex];
3953
+ for (flushIndex = 0; flushIndex < queue$1.length; flushIndex++) {
3954
+ const job = queue$1[flushIndex];
3954
3955
  if (job && !(job.flags & 8)) {
3955
3956
  if (false) ;
3956
3957
  if (job.flags & 4) {
@@ -3967,17 +3968,17 @@ function flushJobs(seen) {
3967
3968
  }
3968
3969
  }
3969
3970
  } finally {
3970
- for (; flushIndex < queue.length; flushIndex++) {
3971
- const job = queue[flushIndex];
3971
+ for (; flushIndex < queue$1.length; flushIndex++) {
3972
+ const job = queue$1[flushIndex];
3972
3973
  if (job) {
3973
3974
  job.flags &= -2;
3974
3975
  }
3975
3976
  }
3976
3977
  flushIndex = -1;
3977
- queue.length = 0;
3978
+ queue$1.length = 0;
3978
3979
  flushPostFlushCbs();
3979
3980
  currentFlushPromise = null;
3980
- if (queue.length || pendingPostFlushCbs.length) {
3981
+ if (queue$1.length || pendingPostFlushCbs.length) {
3981
3982
  flushJobs();
3982
3983
  }
3983
3984
  }
@@ -4103,7 +4104,7 @@ const computed = (getterOrOptions, debugOptions) => {
4103
4104
  return c;
4104
4105
  };
4105
4106
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
4106
- function getDefaultExportFromCjs(x) {
4107
+ function getDefaultExportFromCjs$1(x) {
4107
4108
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
4108
4109
  }
4109
4110
  function getAugmentedNamespace(n) {
@@ -4130,6 +4131,1934 @@ function getAugmentedNamespace(n) {
4130
4131
  });
4131
4132
  return a;
4132
4133
  }
4134
+ function getDefaultExportFromCjs(x) {
4135
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
4136
+ }
4137
+ var browser = { exports: {} };
4138
+ var process = browser.exports = {};
4139
+ var cachedSetTimeout;
4140
+ var cachedClearTimeout;
4141
+ function defaultSetTimout() {
4142
+ throw new Error("setTimeout has not been defined");
4143
+ }
4144
+ function defaultClearTimeout() {
4145
+ throw new Error("clearTimeout has not been defined");
4146
+ }
4147
+ (function() {
4148
+ try {
4149
+ if (typeof setTimeout === "function") {
4150
+ cachedSetTimeout = setTimeout;
4151
+ } else {
4152
+ cachedSetTimeout = defaultSetTimout;
4153
+ }
4154
+ } catch (e) {
4155
+ cachedSetTimeout = defaultSetTimout;
4156
+ }
4157
+ try {
4158
+ if (typeof clearTimeout === "function") {
4159
+ cachedClearTimeout = clearTimeout;
4160
+ } else {
4161
+ cachedClearTimeout = defaultClearTimeout;
4162
+ }
4163
+ } catch (e) {
4164
+ cachedClearTimeout = defaultClearTimeout;
4165
+ }
4166
+ })();
4167
+ function runTimeout(fun) {
4168
+ if (cachedSetTimeout === setTimeout) {
4169
+ return setTimeout(fun, 0);
4170
+ }
4171
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
4172
+ cachedSetTimeout = setTimeout;
4173
+ return setTimeout(fun, 0);
4174
+ }
4175
+ try {
4176
+ return cachedSetTimeout(fun, 0);
4177
+ } catch (e) {
4178
+ try {
4179
+ return cachedSetTimeout.call(null, fun, 0);
4180
+ } catch (e2) {
4181
+ return cachedSetTimeout.call(this, fun, 0);
4182
+ }
4183
+ }
4184
+ }
4185
+ function runClearTimeout(marker) {
4186
+ if (cachedClearTimeout === clearTimeout) {
4187
+ return clearTimeout(marker);
4188
+ }
4189
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
4190
+ cachedClearTimeout = clearTimeout;
4191
+ return clearTimeout(marker);
4192
+ }
4193
+ try {
4194
+ return cachedClearTimeout(marker);
4195
+ } catch (e) {
4196
+ try {
4197
+ return cachedClearTimeout.call(null, marker);
4198
+ } catch (e2) {
4199
+ return cachedClearTimeout.call(this, marker);
4200
+ }
4201
+ }
4202
+ }
4203
+ var queue = [];
4204
+ var draining = false;
4205
+ var currentQueue;
4206
+ var queueIndex = -1;
4207
+ function cleanUpNextTick() {
4208
+ if (!draining || !currentQueue) {
4209
+ return;
4210
+ }
4211
+ draining = false;
4212
+ if (currentQueue.length) {
4213
+ queue = currentQueue.concat(queue);
4214
+ } else {
4215
+ queueIndex = -1;
4216
+ }
4217
+ if (queue.length) {
4218
+ drainQueue();
4219
+ }
4220
+ }
4221
+ function drainQueue() {
4222
+ if (draining) {
4223
+ return;
4224
+ }
4225
+ var timeout = runTimeout(cleanUpNextTick);
4226
+ draining = true;
4227
+ var len = queue.length;
4228
+ while (len) {
4229
+ currentQueue = queue;
4230
+ queue = [];
4231
+ while (++queueIndex < len) {
4232
+ if (currentQueue) {
4233
+ currentQueue[queueIndex].run();
4234
+ }
4235
+ }
4236
+ queueIndex = -1;
4237
+ len = queue.length;
4238
+ }
4239
+ currentQueue = null;
4240
+ draining = false;
4241
+ runClearTimeout(timeout);
4242
+ }
4243
+ process.nextTick = function(fun) {
4244
+ var args = new Array(arguments.length - 1);
4245
+ if (arguments.length > 1) {
4246
+ for (var i = 1; i < arguments.length; i++) {
4247
+ args[i - 1] = arguments[i];
4248
+ }
4249
+ }
4250
+ queue.push(new Item(fun, args));
4251
+ if (queue.length === 1 && !draining) {
4252
+ runTimeout(drainQueue);
4253
+ }
4254
+ };
4255
+ function Item(fun, array) {
4256
+ this.fun = fun;
4257
+ this.array = array;
4258
+ }
4259
+ Item.prototype.run = function() {
4260
+ this.fun.apply(null, this.array);
4261
+ };
4262
+ process.title = "browser";
4263
+ process.browser = true;
4264
+ process.env = {};
4265
+ process.argv = [];
4266
+ process.version = "";
4267
+ process.versions = {};
4268
+ function noop() {
4269
+ }
4270
+ process.on = noop;
4271
+ process.addListener = noop;
4272
+ process.once = noop;
4273
+ process.off = noop;
4274
+ process.removeListener = noop;
4275
+ process.removeAllListeners = noop;
4276
+ process.emit = noop;
4277
+ process.prependListener = noop;
4278
+ process.prependOnceListener = noop;
4279
+ process.listeners = function(name) {
4280
+ return [];
4281
+ };
4282
+ process.binding = function(name) {
4283
+ throw new Error("process.binding is not supported");
4284
+ };
4285
+ process.cwd = function() {
4286
+ return "/";
4287
+ };
4288
+ process.chdir = function(dir) {
4289
+ throw new Error("process.chdir is not supported");
4290
+ };
4291
+ process.umask = function() {
4292
+ return 0;
4293
+ };
4294
+ var browserExports = browser.exports;
4295
+ const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
4296
+ var buffer = {};
4297
+ var base64Js = {};
4298
+ base64Js.byteLength = byteLength;
4299
+ base64Js.toByteArray = toByteArray;
4300
+ base64Js.fromByteArray = fromByteArray;
4301
+ var lookup = [];
4302
+ var revLookup = [];
4303
+ var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
4304
+ var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
4305
+ for (var i = 0, len = code.length; i < len; ++i) {
4306
+ lookup[i] = code[i];
4307
+ revLookup[code.charCodeAt(i)] = i;
4308
+ }
4309
+ revLookup["-".charCodeAt(0)] = 62;
4310
+ revLookup["_".charCodeAt(0)] = 63;
4311
+ function getLens(b64) {
4312
+ var len = b64.length;
4313
+ if (len % 4 > 0) {
4314
+ throw new Error("Invalid string. Length must be a multiple of 4");
4315
+ }
4316
+ var validLen = b64.indexOf("=");
4317
+ if (validLen === -1) validLen = len;
4318
+ var placeHoldersLen = validLen === len ? 0 : 4 - validLen % 4;
4319
+ return [validLen, placeHoldersLen];
4320
+ }
4321
+ function byteLength(b64) {
4322
+ var lens = getLens(b64);
4323
+ var validLen = lens[0];
4324
+ var placeHoldersLen = lens[1];
4325
+ return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
4326
+ }
4327
+ function _byteLength(b64, validLen, placeHoldersLen) {
4328
+ return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
4329
+ }
4330
+ function toByteArray(b64) {
4331
+ var tmp;
4332
+ var lens = getLens(b64);
4333
+ var validLen = lens[0];
4334
+ var placeHoldersLen = lens[1];
4335
+ var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
4336
+ var curByte = 0;
4337
+ var len = placeHoldersLen > 0 ? validLen - 4 : validLen;
4338
+ var i;
4339
+ for (i = 0; i < len; i += 4) {
4340
+ tmp = revLookup[b64.charCodeAt(i)] << 18 | revLookup[b64.charCodeAt(i + 1)] << 12 | revLookup[b64.charCodeAt(i + 2)] << 6 | revLookup[b64.charCodeAt(i + 3)];
4341
+ arr[curByte++] = tmp >> 16 & 255;
4342
+ arr[curByte++] = tmp >> 8 & 255;
4343
+ arr[curByte++] = tmp & 255;
4344
+ }
4345
+ if (placeHoldersLen === 2) {
4346
+ tmp = revLookup[b64.charCodeAt(i)] << 2 | revLookup[b64.charCodeAt(i + 1)] >> 4;
4347
+ arr[curByte++] = tmp & 255;
4348
+ }
4349
+ if (placeHoldersLen === 1) {
4350
+ tmp = revLookup[b64.charCodeAt(i)] << 10 | revLookup[b64.charCodeAt(i + 1)] << 4 | revLookup[b64.charCodeAt(i + 2)] >> 2;
4351
+ arr[curByte++] = tmp >> 8 & 255;
4352
+ arr[curByte++] = tmp & 255;
4353
+ }
4354
+ return arr;
4355
+ }
4356
+ function tripletToBase64(num) {
4357
+ return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];
4358
+ }
4359
+ function encodeChunk(uint8, start, end) {
4360
+ var tmp;
4361
+ var output = [];
4362
+ for (var i = start; i < end; i += 3) {
4363
+ tmp = (uint8[i] << 16 & 16711680) + (uint8[i + 1] << 8 & 65280) + (uint8[i + 2] & 255);
4364
+ output.push(tripletToBase64(tmp));
4365
+ }
4366
+ return output.join("");
4367
+ }
4368
+ function fromByteArray(uint8) {
4369
+ var tmp;
4370
+ var len = uint8.length;
4371
+ var extraBytes = len % 3;
4372
+ var parts = [];
4373
+ var maxChunkLength = 16383;
4374
+ for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
4375
+ parts.push(encodeChunk(uint8, i, i + maxChunkLength > len2 ? len2 : i + maxChunkLength));
4376
+ }
4377
+ if (extraBytes === 1) {
4378
+ tmp = uint8[len - 1];
4379
+ parts.push(
4380
+ lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "=="
4381
+ );
4382
+ } else if (extraBytes === 2) {
4383
+ tmp = (uint8[len - 2] << 8) + uint8[len - 1];
4384
+ parts.push(
4385
+ lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "="
4386
+ );
4387
+ }
4388
+ return parts.join("");
4389
+ }
4390
+ var ieee754 = {};
4391
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
4392
+ ieee754.read = function(buffer2, offset, isLE, mLen, nBytes) {
4393
+ var e, m;
4394
+ var eLen = nBytes * 8 - mLen - 1;
4395
+ var eMax = (1 << eLen) - 1;
4396
+ var eBias = eMax >> 1;
4397
+ var nBits = -7;
4398
+ var i = isLE ? nBytes - 1 : 0;
4399
+ var d = isLE ? -1 : 1;
4400
+ var s = buffer2[offset + i];
4401
+ i += d;
4402
+ e = s & (1 << -nBits) - 1;
4403
+ s >>= -nBits;
4404
+ nBits += eLen;
4405
+ for (; nBits > 0; e = e * 256 + buffer2[offset + i], i += d, nBits -= 8) {
4406
+ }
4407
+ m = e & (1 << -nBits) - 1;
4408
+ e >>= -nBits;
4409
+ nBits += mLen;
4410
+ for (; nBits > 0; m = m * 256 + buffer2[offset + i], i += d, nBits -= 8) {
4411
+ }
4412
+ if (e === 0) {
4413
+ e = 1 - eBias;
4414
+ } else if (e === eMax) {
4415
+ return m ? NaN : (s ? -1 : 1) * Infinity;
4416
+ } else {
4417
+ m = m + Math.pow(2, mLen);
4418
+ e = e - eBias;
4419
+ }
4420
+ return (s ? -1 : 1) * m * Math.pow(2, e - mLen);
4421
+ };
4422
+ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
4423
+ var e, m, c;
4424
+ var eLen = nBytes * 8 - mLen - 1;
4425
+ var eMax = (1 << eLen) - 1;
4426
+ var eBias = eMax >> 1;
4427
+ var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
4428
+ var i = isLE ? 0 : nBytes - 1;
4429
+ var d = isLE ? 1 : -1;
4430
+ var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
4431
+ value = Math.abs(value);
4432
+ if (isNaN(value) || value === Infinity) {
4433
+ m = isNaN(value) ? 1 : 0;
4434
+ e = eMax;
4435
+ } else {
4436
+ e = Math.floor(Math.log(value) / Math.LN2);
4437
+ if (value * (c = Math.pow(2, -e)) < 1) {
4438
+ e--;
4439
+ c *= 2;
4440
+ }
4441
+ if (e + eBias >= 1) {
4442
+ value += rt / c;
4443
+ } else {
4444
+ value += rt * Math.pow(2, 1 - eBias);
4445
+ }
4446
+ if (value * c >= 2) {
4447
+ e++;
4448
+ c /= 2;
4449
+ }
4450
+ if (e + eBias >= eMax) {
4451
+ m = 0;
4452
+ e = eMax;
4453
+ } else if (e + eBias >= 1) {
4454
+ m = (value * c - 1) * Math.pow(2, mLen);
4455
+ e = e + eBias;
4456
+ } else {
4457
+ m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);
4458
+ e = 0;
4459
+ }
4460
+ }
4461
+ for (; mLen >= 8; buffer2[offset + i] = m & 255, i += d, m /= 256, mLen -= 8) {
4462
+ }
4463
+ e = e << mLen | m;
4464
+ eLen += mLen;
4465
+ for (; eLen > 0; buffer2[offset + i] = e & 255, i += d, e /= 256, eLen -= 8) {
4466
+ }
4467
+ buffer2[offset + i - d] |= s * 128;
4468
+ };
4469
+ /*!
4470
+ * The buffer module from node.js, for the browser.
4471
+ *
4472
+ * @author Feross Aboukhadijeh <https://feross.org>
4473
+ * @license MIT
4474
+ */
4475
+ (function(exports) {
4476
+ const base64 = base64Js;
4477
+ const ieee754$1 = ieee754;
4478
+ const customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
4479
+ exports.Buffer = Buffer2;
4480
+ exports.SlowBuffer = SlowBuffer;
4481
+ exports.INSPECT_MAX_BYTES = 50;
4482
+ const K_MAX_LENGTH = 2147483647;
4483
+ exports.kMaxLength = K_MAX_LENGTH;
4484
+ const { Uint8Array: GlobalUint8Array, ArrayBuffer: GlobalArrayBuffer, SharedArrayBuffer: GlobalSharedArrayBuffer } = globalThis;
4485
+ Buffer2.TYPED_ARRAY_SUPPORT = typedArraySupport();
4486
+ if (!Buffer2.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
4487
+ console.error(
4488
+ "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
4489
+ );
4490
+ }
4491
+ function typedArraySupport() {
4492
+ try {
4493
+ const arr = new GlobalUint8Array(1);
4494
+ const proto = { foo: function() {
4495
+ return 42;
4496
+ } };
4497
+ Object.setPrototypeOf(proto, GlobalUint8Array.prototype);
4498
+ Object.setPrototypeOf(arr, proto);
4499
+ return arr.foo() === 42;
4500
+ } catch (e) {
4501
+ return false;
4502
+ }
4503
+ }
4504
+ Object.defineProperty(Buffer2.prototype, "parent", {
4505
+ enumerable: true,
4506
+ get: function() {
4507
+ if (!Buffer2.isBuffer(this)) return void 0;
4508
+ return this.buffer;
4509
+ }
4510
+ });
4511
+ Object.defineProperty(Buffer2.prototype, "offset", {
4512
+ enumerable: true,
4513
+ get: function() {
4514
+ if (!Buffer2.isBuffer(this)) return void 0;
4515
+ return this.byteOffset;
4516
+ }
4517
+ });
4518
+ function createBuffer(length) {
4519
+ if (length > K_MAX_LENGTH) {
4520
+ throw new RangeError('The value "' + length + '" is invalid for option "size"');
4521
+ }
4522
+ const buf = new GlobalUint8Array(length);
4523
+ Object.setPrototypeOf(buf, Buffer2.prototype);
4524
+ return buf;
4525
+ }
4526
+ function Buffer2(arg, encodingOrOffset, length) {
4527
+ if (typeof arg === "number") {
4528
+ if (typeof encodingOrOffset === "string") {
4529
+ throw new TypeError(
4530
+ 'The "string" argument must be of type string. Received type number'
4531
+ );
4532
+ }
4533
+ return allocUnsafe(arg);
4534
+ }
4535
+ return from(arg, encodingOrOffset, length);
4536
+ }
4537
+ Buffer2.poolSize = 8192;
4538
+ function from(value, encodingOrOffset, length) {
4539
+ if (typeof value === "string") {
4540
+ return fromString(value, encodingOrOffset);
4541
+ }
4542
+ if (GlobalArrayBuffer.isView(value)) {
4543
+ return fromArrayView(value);
4544
+ }
4545
+ if (value == null) {
4546
+ throw new TypeError(
4547
+ "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value
4548
+ );
4549
+ }
4550
+ if (isInstance(value, GlobalArrayBuffer) || value && isInstance(value.buffer, GlobalArrayBuffer)) {
4551
+ return fromArrayBuffer(value, encodingOrOffset, length);
4552
+ }
4553
+ if (typeof GlobalSharedArrayBuffer !== "undefined" && (isInstance(value, GlobalSharedArrayBuffer) || value && isInstance(value.buffer, GlobalSharedArrayBuffer))) {
4554
+ return fromArrayBuffer(value, encodingOrOffset, length);
4555
+ }
4556
+ if (typeof value === "number") {
4557
+ throw new TypeError(
4558
+ 'The "value" argument must not be of type number. Received type number'
4559
+ );
4560
+ }
4561
+ const valueOf = value.valueOf && value.valueOf();
4562
+ if (valueOf != null && valueOf !== value) {
4563
+ return Buffer2.from(valueOf, encodingOrOffset, length);
4564
+ }
4565
+ const b = fromObject(value);
4566
+ if (b) return b;
4567
+ if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
4568
+ return Buffer2.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
4569
+ }
4570
+ throw new TypeError(
4571
+ "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value
4572
+ );
4573
+ }
4574
+ Buffer2.from = function(value, encodingOrOffset, length) {
4575
+ return from(value, encodingOrOffset, length);
4576
+ };
4577
+ Object.setPrototypeOf(Buffer2.prototype, GlobalUint8Array.prototype);
4578
+ Object.setPrototypeOf(Buffer2, GlobalUint8Array);
4579
+ function assertSize(size) {
4580
+ if (typeof size !== "number") {
4581
+ throw new TypeError('"size" argument must be of type number');
4582
+ } else if (size < 0) {
4583
+ throw new RangeError('The value "' + size + '" is invalid for option "size"');
4584
+ }
4585
+ }
4586
+ function alloc(size, fill, encoding) {
4587
+ assertSize(size);
4588
+ if (size <= 0) {
4589
+ return createBuffer(size);
4590
+ }
4591
+ if (fill !== void 0) {
4592
+ return typeof encoding === "string" ? createBuffer(size).fill(fill, encoding) : createBuffer(size).fill(fill);
4593
+ }
4594
+ return createBuffer(size);
4595
+ }
4596
+ Buffer2.alloc = function(size, fill, encoding) {
4597
+ return alloc(size, fill, encoding);
4598
+ };
4599
+ function allocUnsafe(size) {
4600
+ assertSize(size);
4601
+ return createBuffer(size < 0 ? 0 : checked(size) | 0);
4602
+ }
4603
+ Buffer2.allocUnsafe = function(size) {
4604
+ return allocUnsafe(size);
4605
+ };
4606
+ Buffer2.allocUnsafeSlow = function(size) {
4607
+ return allocUnsafe(size);
4608
+ };
4609
+ function fromString(string, encoding) {
4610
+ if (typeof encoding !== "string" || encoding === "") {
4611
+ encoding = "utf8";
4612
+ }
4613
+ if (!Buffer2.isEncoding(encoding)) {
4614
+ throw new TypeError("Unknown encoding: " + encoding);
4615
+ }
4616
+ const length = byteLength2(string, encoding) | 0;
4617
+ let buf = createBuffer(length);
4618
+ const actual = buf.write(string, encoding);
4619
+ if (actual !== length) {
4620
+ buf = buf.slice(0, actual);
4621
+ }
4622
+ return buf;
4623
+ }
4624
+ function fromArrayLike(array) {
4625
+ const length = array.length < 0 ? 0 : checked(array.length) | 0;
4626
+ const buf = createBuffer(length);
4627
+ for (let i = 0; i < length; i += 1) {
4628
+ buf[i] = array[i] & 255;
4629
+ }
4630
+ return buf;
4631
+ }
4632
+ function fromArrayView(arrayView) {
4633
+ if (isInstance(arrayView, GlobalUint8Array)) {
4634
+ const copy = new GlobalUint8Array(arrayView);
4635
+ return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
4636
+ }
4637
+ return fromArrayLike(arrayView);
4638
+ }
4639
+ function fromArrayBuffer(array, byteOffset, length) {
4640
+ if (byteOffset < 0 || array.byteLength < byteOffset) {
4641
+ throw new RangeError('"offset" is outside of buffer bounds');
4642
+ }
4643
+ if (array.byteLength < byteOffset + (length || 0)) {
4644
+ throw new RangeError('"length" is outside of buffer bounds');
4645
+ }
4646
+ let buf;
4647
+ if (byteOffset === void 0 && length === void 0) {
4648
+ buf = new GlobalUint8Array(array);
4649
+ } else if (length === void 0) {
4650
+ buf = new GlobalUint8Array(array, byteOffset);
4651
+ } else {
4652
+ buf = new GlobalUint8Array(array, byteOffset, length);
4653
+ }
4654
+ Object.setPrototypeOf(buf, Buffer2.prototype);
4655
+ return buf;
4656
+ }
4657
+ function fromObject(obj) {
4658
+ if (Buffer2.isBuffer(obj)) {
4659
+ const len = checked(obj.length) | 0;
4660
+ const buf = createBuffer(len);
4661
+ if (buf.length === 0) {
4662
+ return buf;
4663
+ }
4664
+ obj.copy(buf, 0, 0, len);
4665
+ return buf;
4666
+ }
4667
+ if (obj.length !== void 0) {
4668
+ if (typeof obj.length !== "number" || numberIsNaN(obj.length)) {
4669
+ return createBuffer(0);
4670
+ }
4671
+ return fromArrayLike(obj);
4672
+ }
4673
+ if (obj.type === "Buffer" && Array.isArray(obj.data)) {
4674
+ return fromArrayLike(obj.data);
4675
+ }
4676
+ }
4677
+ function checked(length) {
4678
+ if (length >= K_MAX_LENGTH) {
4679
+ throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + K_MAX_LENGTH.toString(16) + " bytes");
4680
+ }
4681
+ return length | 0;
4682
+ }
4683
+ function SlowBuffer(length) {
4684
+ if (+length != length) {
4685
+ length = 0;
4686
+ }
4687
+ return Buffer2.alloc(+length);
4688
+ }
4689
+ Buffer2.isBuffer = function isBuffer(b) {
4690
+ return b != null && b._isBuffer === true && b !== Buffer2.prototype;
4691
+ };
4692
+ Buffer2.compare = function compare2(a, b) {
4693
+ if (isInstance(a, GlobalUint8Array)) a = Buffer2.from(a, a.offset, a.byteLength);
4694
+ if (isInstance(b, GlobalUint8Array)) b = Buffer2.from(b, b.offset, b.byteLength);
4695
+ if (!Buffer2.isBuffer(a) || !Buffer2.isBuffer(b)) {
4696
+ throw new TypeError(
4697
+ 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
4698
+ );
4699
+ }
4700
+ if (a === b) return 0;
4701
+ let x = a.length;
4702
+ let y = b.length;
4703
+ for (let i = 0, len = Math.min(x, y); i < len; ++i) {
4704
+ if (a[i] !== b[i]) {
4705
+ x = a[i];
4706
+ y = b[i];
4707
+ break;
4708
+ }
4709
+ }
4710
+ if (x < y) return -1;
4711
+ if (y < x) return 1;
4712
+ return 0;
4713
+ };
4714
+ Buffer2.isEncoding = function isEncoding(encoding) {
4715
+ switch (String(encoding).toLowerCase()) {
4716
+ case "hex":
4717
+ case "utf8":
4718
+ case "utf-8":
4719
+ case "ascii":
4720
+ case "latin1":
4721
+ case "binary":
4722
+ case "base64":
4723
+ case "ucs2":
4724
+ case "ucs-2":
4725
+ case "utf16le":
4726
+ case "utf-16le":
4727
+ return true;
4728
+ default:
4729
+ return false;
4730
+ }
4731
+ };
4732
+ Buffer2.concat = function concat(list, length) {
4733
+ if (!Array.isArray(list)) {
4734
+ throw new TypeError('"list" argument must be an Array of Buffers');
4735
+ }
4736
+ if (list.length === 0) {
4737
+ return Buffer2.alloc(0);
4738
+ }
4739
+ let i;
4740
+ if (length === void 0) {
4741
+ length = 0;
4742
+ for (i = 0; i < list.length; ++i) {
4743
+ length += list[i].length;
4744
+ }
4745
+ }
4746
+ const buffer2 = Buffer2.allocUnsafe(length);
4747
+ let pos = 0;
4748
+ for (i = 0; i < list.length; ++i) {
4749
+ let buf = list[i];
4750
+ if (isInstance(buf, GlobalUint8Array)) {
4751
+ if (pos + buf.length > buffer2.length) {
4752
+ if (!Buffer2.isBuffer(buf)) buf = Buffer2.from(buf);
4753
+ buf.copy(buffer2, pos);
4754
+ } else {
4755
+ GlobalUint8Array.prototype.set.call(
4756
+ buffer2,
4757
+ buf,
4758
+ pos
4759
+ );
4760
+ }
4761
+ } else if (!Buffer2.isBuffer(buf)) {
4762
+ throw new TypeError('"list" argument must be an Array of Buffers');
4763
+ } else {
4764
+ buf.copy(buffer2, pos);
4765
+ }
4766
+ pos += buf.length;
4767
+ }
4768
+ return buffer2;
4769
+ };
4770
+ function byteLength2(string, encoding) {
4771
+ if (Buffer2.isBuffer(string)) {
4772
+ return string.length;
4773
+ }
4774
+ if (GlobalArrayBuffer.isView(string) || isInstance(string, GlobalArrayBuffer)) {
4775
+ return string.byteLength;
4776
+ }
4777
+ if (typeof string !== "string") {
4778
+ throw new TypeError(
4779
+ 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string
4780
+ );
4781
+ }
4782
+ const len = string.length;
4783
+ const mustMatch = arguments.length > 2 && arguments[2] === true;
4784
+ if (!mustMatch && len === 0) return 0;
4785
+ let loweredCase = false;
4786
+ for (; ; ) {
4787
+ switch (encoding) {
4788
+ case "ascii":
4789
+ case "latin1":
4790
+ case "binary":
4791
+ return len;
4792
+ case "utf8":
4793
+ case "utf-8":
4794
+ return utf8ToBytes(string).length;
4795
+ case "ucs2":
4796
+ case "ucs-2":
4797
+ case "utf16le":
4798
+ case "utf-16le":
4799
+ return len * 2;
4800
+ case "hex":
4801
+ return len >>> 1;
4802
+ case "base64":
4803
+ return base64ToBytes(string).length;
4804
+ default:
4805
+ if (loweredCase) {
4806
+ return mustMatch ? -1 : utf8ToBytes(string).length;
4807
+ }
4808
+ encoding = ("" + encoding).toLowerCase();
4809
+ loweredCase = true;
4810
+ }
4811
+ }
4812
+ }
4813
+ Buffer2.byteLength = byteLength2;
4814
+ function slowToString(encoding, start, end) {
4815
+ let loweredCase = false;
4816
+ if (start === void 0 || start < 0) {
4817
+ start = 0;
4818
+ }
4819
+ if (start > this.length) {
4820
+ return "";
4821
+ }
4822
+ if (end === void 0 || end > this.length) {
4823
+ end = this.length;
4824
+ }
4825
+ if (end <= 0) {
4826
+ return "";
4827
+ }
4828
+ end >>>= 0;
4829
+ start >>>= 0;
4830
+ if (end <= start) {
4831
+ return "";
4832
+ }
4833
+ if (!encoding) encoding = "utf8";
4834
+ while (true) {
4835
+ switch (encoding) {
4836
+ case "hex":
4837
+ return hexSlice(this, start, end);
4838
+ case "utf8":
4839
+ case "utf-8":
4840
+ return utf8Slice(this, start, end);
4841
+ case "ascii":
4842
+ return asciiSlice(this, start, end);
4843
+ case "latin1":
4844
+ case "binary":
4845
+ return latin1Slice(this, start, end);
4846
+ case "base64":
4847
+ return base64Slice(this, start, end);
4848
+ case "ucs2":
4849
+ case "ucs-2":
4850
+ case "utf16le":
4851
+ case "utf-16le":
4852
+ return utf16leSlice(this, start, end);
4853
+ default:
4854
+ if (loweredCase) throw new TypeError("Unknown encoding: " + encoding);
4855
+ encoding = (encoding + "").toLowerCase();
4856
+ loweredCase = true;
4857
+ }
4858
+ }
4859
+ }
4860
+ Buffer2.prototype._isBuffer = true;
4861
+ function swap(b, n, m) {
4862
+ const i = b[n];
4863
+ b[n] = b[m];
4864
+ b[m] = i;
4865
+ }
4866
+ Buffer2.prototype.swap16 = function swap16() {
4867
+ const len = this.length;
4868
+ if (len % 2 !== 0) {
4869
+ throw new RangeError("Buffer size must be a multiple of 16-bits");
4870
+ }
4871
+ for (let i = 0; i < len; i += 2) {
4872
+ swap(this, i, i + 1);
4873
+ }
4874
+ return this;
4875
+ };
4876
+ Buffer2.prototype.swap32 = function swap32() {
4877
+ const len = this.length;
4878
+ if (len % 4 !== 0) {
4879
+ throw new RangeError("Buffer size must be a multiple of 32-bits");
4880
+ }
4881
+ for (let i = 0; i < len; i += 4) {
4882
+ swap(this, i, i + 3);
4883
+ swap(this, i + 1, i + 2);
4884
+ }
4885
+ return this;
4886
+ };
4887
+ Buffer2.prototype.swap64 = function swap64() {
4888
+ const len = this.length;
4889
+ if (len % 8 !== 0) {
4890
+ throw new RangeError("Buffer size must be a multiple of 64-bits");
4891
+ }
4892
+ for (let i = 0; i < len; i += 8) {
4893
+ swap(this, i, i + 7);
4894
+ swap(this, i + 1, i + 6);
4895
+ swap(this, i + 2, i + 5);
4896
+ swap(this, i + 3, i + 4);
4897
+ }
4898
+ return this;
4899
+ };
4900
+ Buffer2.prototype.toString = function toString() {
4901
+ const length = this.length;
4902
+ if (length === 0) return "";
4903
+ if (arguments.length === 0) return utf8Slice(this, 0, length);
4904
+ return slowToString.apply(this, arguments);
4905
+ };
4906
+ Buffer2.prototype.toLocaleString = Buffer2.prototype.toString;
4907
+ Buffer2.prototype.equals = function equals(b) {
4908
+ if (!Buffer2.isBuffer(b)) throw new TypeError("Argument must be a Buffer");
4909
+ if (this === b) return true;
4910
+ return Buffer2.compare(this, b) === 0;
4911
+ };
4912
+ Buffer2.prototype.inspect = function inspect() {
4913
+ let str = "";
4914
+ const max = exports.INSPECT_MAX_BYTES;
4915
+ str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
4916
+ if (this.length > max) str += " ... ";
4917
+ return "<Buffer " + str + ">";
4918
+ };
4919
+ if (customInspectSymbol) {
4920
+ Buffer2.prototype[customInspectSymbol] = Buffer2.prototype.inspect;
4921
+ }
4922
+ Buffer2.prototype.compare = function compare2(target, start, end, thisStart, thisEnd) {
4923
+ if (isInstance(target, GlobalUint8Array)) {
4924
+ target = Buffer2.from(target, target.offset, target.byteLength);
4925
+ }
4926
+ if (!Buffer2.isBuffer(target)) {
4927
+ throw new TypeError(
4928
+ 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target
4929
+ );
4930
+ }
4931
+ if (start === void 0) {
4932
+ start = 0;
4933
+ }
4934
+ if (end === void 0) {
4935
+ end = target ? target.length : 0;
4936
+ }
4937
+ if (thisStart === void 0) {
4938
+ thisStart = 0;
4939
+ }
4940
+ if (thisEnd === void 0) {
4941
+ thisEnd = this.length;
4942
+ }
4943
+ if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
4944
+ throw new RangeError("out of range index");
4945
+ }
4946
+ if (thisStart >= thisEnd && start >= end) {
4947
+ return 0;
4948
+ }
4949
+ if (thisStart >= thisEnd) {
4950
+ return -1;
4951
+ }
4952
+ if (start >= end) {
4953
+ return 1;
4954
+ }
4955
+ start >>>= 0;
4956
+ end >>>= 0;
4957
+ thisStart >>>= 0;
4958
+ thisEnd >>>= 0;
4959
+ if (this === target) return 0;
4960
+ let x = thisEnd - thisStart;
4961
+ let y = end - start;
4962
+ const len = Math.min(x, y);
4963
+ const thisCopy = this.slice(thisStart, thisEnd);
4964
+ const targetCopy = target.slice(start, end);
4965
+ for (let i = 0; i < len; ++i) {
4966
+ if (thisCopy[i] !== targetCopy[i]) {
4967
+ x = thisCopy[i];
4968
+ y = targetCopy[i];
4969
+ break;
4970
+ }
4971
+ }
4972
+ if (x < y) return -1;
4973
+ if (y < x) return 1;
4974
+ return 0;
4975
+ };
4976
+ function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
4977
+ if (buffer2.length === 0) return -1;
4978
+ if (typeof byteOffset === "string") {
4979
+ encoding = byteOffset;
4980
+ byteOffset = 0;
4981
+ } else if (byteOffset > 2147483647) {
4982
+ byteOffset = 2147483647;
4983
+ } else if (byteOffset < -2147483648) {
4984
+ byteOffset = -2147483648;
4985
+ }
4986
+ byteOffset = +byteOffset;
4987
+ if (numberIsNaN(byteOffset)) {
4988
+ byteOffset = dir ? 0 : buffer2.length - 1;
4989
+ }
4990
+ if (byteOffset < 0) byteOffset = buffer2.length + byteOffset;
4991
+ if (byteOffset >= buffer2.length) {
4992
+ if (dir) return -1;
4993
+ else byteOffset = buffer2.length - 1;
4994
+ } else if (byteOffset < 0) {
4995
+ if (dir) byteOffset = 0;
4996
+ else return -1;
4997
+ }
4998
+ if (typeof val === "string") {
4999
+ val = Buffer2.from(val, encoding);
5000
+ }
5001
+ if (Buffer2.isBuffer(val)) {
5002
+ if (val.length === 0) {
5003
+ return -1;
5004
+ }
5005
+ return arrayIndexOf(buffer2, val, byteOffset, encoding, dir);
5006
+ } else if (typeof val === "number") {
5007
+ val = val & 255;
5008
+ if (typeof GlobalUint8Array.prototype.indexOf === "function") {
5009
+ if (dir) {
5010
+ return GlobalUint8Array.prototype.indexOf.call(buffer2, val, byteOffset);
5011
+ } else {
5012
+ return GlobalUint8Array.prototype.lastIndexOf.call(buffer2, val, byteOffset);
5013
+ }
5014
+ }
5015
+ return arrayIndexOf(buffer2, [val], byteOffset, encoding, dir);
5016
+ }
5017
+ throw new TypeError("val must be string, number or Buffer");
5018
+ }
5019
+ function arrayIndexOf(arr, val, byteOffset, encoding, dir) {
5020
+ let indexSize = 1;
5021
+ let arrLength = arr.length;
5022
+ let valLength = val.length;
5023
+ if (encoding !== void 0) {
5024
+ encoding = String(encoding).toLowerCase();
5025
+ if (encoding === "ucs2" || encoding === "ucs-2" || encoding === "utf16le" || encoding === "utf-16le") {
5026
+ if (arr.length < 2 || val.length < 2) {
5027
+ return -1;
5028
+ }
5029
+ indexSize = 2;
5030
+ arrLength /= 2;
5031
+ valLength /= 2;
5032
+ byteOffset /= 2;
5033
+ }
5034
+ }
5035
+ function read(buf, i2) {
5036
+ if (indexSize === 1) {
5037
+ return buf[i2];
5038
+ } else {
5039
+ return buf.readUInt16BE(i2 * indexSize);
5040
+ }
5041
+ }
5042
+ let i;
5043
+ if (dir) {
5044
+ let foundIndex = -1;
5045
+ for (i = byteOffset; i < arrLength; i++) {
5046
+ if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
5047
+ if (foundIndex === -1) foundIndex = i;
5048
+ if (i - foundIndex + 1 === valLength) return foundIndex * indexSize;
5049
+ } else {
5050
+ if (foundIndex !== -1) i -= i - foundIndex;
5051
+ foundIndex = -1;
5052
+ }
5053
+ }
5054
+ } else {
5055
+ if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength;
5056
+ for (i = byteOffset; i >= 0; i--) {
5057
+ let found = true;
5058
+ for (let j = 0; j < valLength; j++) {
5059
+ if (read(arr, i + j) !== read(val, j)) {
5060
+ found = false;
5061
+ break;
5062
+ }
5063
+ }
5064
+ if (found) return i;
5065
+ }
5066
+ }
5067
+ return -1;
5068
+ }
5069
+ Buffer2.prototype.includes = function includes(val, byteOffset, encoding) {
5070
+ return this.indexOf(val, byteOffset, encoding) !== -1;
5071
+ };
5072
+ Buffer2.prototype.indexOf = function indexOf(val, byteOffset, encoding) {
5073
+ return bidirectionalIndexOf(this, val, byteOffset, encoding, true);
5074
+ };
5075
+ Buffer2.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
5076
+ return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
5077
+ };
5078
+ function hexWrite(buf, string, offset, length) {
5079
+ offset = Number(offset) || 0;
5080
+ const remaining = buf.length - offset;
5081
+ if (!length) {
5082
+ length = remaining;
5083
+ } else {
5084
+ length = Number(length);
5085
+ if (length > remaining) {
5086
+ length = remaining;
5087
+ }
5088
+ }
5089
+ const strLen = string.length;
5090
+ if (length > strLen / 2) {
5091
+ length = strLen / 2;
5092
+ }
5093
+ let i;
5094
+ for (i = 0; i < length; ++i) {
5095
+ const parsed = parseInt(string.substr(i * 2, 2), 16);
5096
+ if (numberIsNaN(parsed)) return i;
5097
+ buf[offset + i] = parsed;
5098
+ }
5099
+ return i;
5100
+ }
5101
+ function utf8Write(buf, string, offset, length) {
5102
+ return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length);
5103
+ }
5104
+ function asciiWrite(buf, string, offset, length) {
5105
+ return blitBuffer(asciiToBytes(string), buf, offset, length);
5106
+ }
5107
+ function base64Write(buf, string, offset, length) {
5108
+ return blitBuffer(base64ToBytes(string), buf, offset, length);
5109
+ }
5110
+ function ucs2Write(buf, string, offset, length) {
5111
+ return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
5112
+ }
5113
+ Buffer2.prototype.write = function write(string, offset, length, encoding) {
5114
+ if (offset === void 0) {
5115
+ encoding = "utf8";
5116
+ length = this.length;
5117
+ offset = 0;
5118
+ } else if (length === void 0 && typeof offset === "string") {
5119
+ encoding = offset;
5120
+ length = this.length;
5121
+ offset = 0;
5122
+ } else if (isFinite(offset)) {
5123
+ offset = offset >>> 0;
5124
+ if (isFinite(length)) {
5125
+ length = length >>> 0;
5126
+ if (encoding === void 0) encoding = "utf8";
5127
+ } else {
5128
+ encoding = length;
5129
+ length = void 0;
5130
+ }
5131
+ } else {
5132
+ throw new Error(
5133
+ "Buffer.write(string, encoding, offset[, length]) is no longer supported"
5134
+ );
5135
+ }
5136
+ const remaining = this.length - offset;
5137
+ if (length === void 0 || length > remaining) length = remaining;
5138
+ if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) {
5139
+ throw new RangeError("Attempt to write outside buffer bounds");
5140
+ }
5141
+ if (!encoding) encoding = "utf8";
5142
+ let loweredCase = false;
5143
+ for (; ; ) {
5144
+ switch (encoding) {
5145
+ case "hex":
5146
+ return hexWrite(this, string, offset, length);
5147
+ case "utf8":
5148
+ case "utf-8":
5149
+ return utf8Write(this, string, offset, length);
5150
+ case "ascii":
5151
+ case "latin1":
5152
+ case "binary":
5153
+ return asciiWrite(this, string, offset, length);
5154
+ case "base64":
5155
+ return base64Write(this, string, offset, length);
5156
+ case "ucs2":
5157
+ case "ucs-2":
5158
+ case "utf16le":
5159
+ case "utf-16le":
5160
+ return ucs2Write(this, string, offset, length);
5161
+ default:
5162
+ if (loweredCase) throw new TypeError("Unknown encoding: " + encoding);
5163
+ encoding = ("" + encoding).toLowerCase();
5164
+ loweredCase = true;
5165
+ }
5166
+ }
5167
+ };
5168
+ Buffer2.prototype.toJSON = function toJSON() {
5169
+ return {
5170
+ type: "Buffer",
5171
+ data: Array.prototype.slice.call(this._arr || this, 0)
5172
+ };
5173
+ };
5174
+ function base64Slice(buf, start, end) {
5175
+ if (start === 0 && end === buf.length) {
5176
+ return base64.fromByteArray(buf);
5177
+ } else {
5178
+ return base64.fromByteArray(buf.slice(start, end));
5179
+ }
5180
+ }
5181
+ function utf8Slice(buf, start, end) {
5182
+ end = Math.min(buf.length, end);
5183
+ const res = [];
5184
+ let i = start;
5185
+ while (i < end) {
5186
+ const firstByte = buf[i];
5187
+ let codePoint = null;
5188
+ let bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;
5189
+ if (i + bytesPerSequence <= end) {
5190
+ let secondByte, thirdByte, fourthByte, tempCodePoint;
5191
+ switch (bytesPerSequence) {
5192
+ case 1:
5193
+ if (firstByte < 128) {
5194
+ codePoint = firstByte;
5195
+ }
5196
+ break;
5197
+ case 2:
5198
+ secondByte = buf[i + 1];
5199
+ if ((secondByte & 192) === 128) {
5200
+ tempCodePoint = (firstByte & 31) << 6 | secondByte & 63;
5201
+ if (tempCodePoint > 127) {
5202
+ codePoint = tempCodePoint;
5203
+ }
5204
+ }
5205
+ break;
5206
+ case 3:
5207
+ secondByte = buf[i + 1];
5208
+ thirdByte = buf[i + 2];
5209
+ if ((secondByte & 192) === 128 && (thirdByte & 192) === 128) {
5210
+ tempCodePoint = (firstByte & 15) << 12 | (secondByte & 63) << 6 | thirdByte & 63;
5211
+ if (tempCodePoint > 2047 && (tempCodePoint < 55296 || tempCodePoint > 57343)) {
5212
+ codePoint = tempCodePoint;
5213
+ }
5214
+ }
5215
+ break;
5216
+ case 4:
5217
+ secondByte = buf[i + 1];
5218
+ thirdByte = buf[i + 2];
5219
+ fourthByte = buf[i + 3];
5220
+ if ((secondByte & 192) === 128 && (thirdByte & 192) === 128 && (fourthByte & 192) === 128) {
5221
+ tempCodePoint = (firstByte & 15) << 18 | (secondByte & 63) << 12 | (thirdByte & 63) << 6 | fourthByte & 63;
5222
+ if (tempCodePoint > 65535 && tempCodePoint < 1114112) {
5223
+ codePoint = tempCodePoint;
5224
+ }
5225
+ }
5226
+ }
5227
+ }
5228
+ if (codePoint === null) {
5229
+ codePoint = 65533;
5230
+ bytesPerSequence = 1;
5231
+ } else if (codePoint > 65535) {
5232
+ codePoint -= 65536;
5233
+ res.push(codePoint >>> 10 & 1023 | 55296);
5234
+ codePoint = 56320 | codePoint & 1023;
5235
+ }
5236
+ res.push(codePoint);
5237
+ i += bytesPerSequence;
5238
+ }
5239
+ return decodeCodePointsArray(res);
5240
+ }
5241
+ const MAX_ARGUMENTS_LENGTH = 4096;
5242
+ function decodeCodePointsArray(codePoints) {
5243
+ const len = codePoints.length;
5244
+ if (len <= MAX_ARGUMENTS_LENGTH) {
5245
+ return String.fromCharCode.apply(String, codePoints);
5246
+ }
5247
+ let res = "";
5248
+ let i = 0;
5249
+ while (i < len) {
5250
+ res += String.fromCharCode.apply(
5251
+ String,
5252
+ codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
5253
+ );
5254
+ }
5255
+ return res;
5256
+ }
5257
+ function asciiSlice(buf, start, end) {
5258
+ let ret = "";
5259
+ end = Math.min(buf.length, end);
5260
+ for (let i = start; i < end; ++i) {
5261
+ ret += String.fromCharCode(buf[i] & 127);
5262
+ }
5263
+ return ret;
5264
+ }
5265
+ function latin1Slice(buf, start, end) {
5266
+ let ret = "";
5267
+ end = Math.min(buf.length, end);
5268
+ for (let i = start; i < end; ++i) {
5269
+ ret += String.fromCharCode(buf[i]);
5270
+ }
5271
+ return ret;
5272
+ }
5273
+ function hexSlice(buf, start, end) {
5274
+ const len = buf.length;
5275
+ if (!start || start < 0) start = 0;
5276
+ if (!end || end < 0 || end > len) end = len;
5277
+ let out = "";
5278
+ for (let i = start; i < end; ++i) {
5279
+ out += hexSliceLookupTable[buf[i]];
5280
+ }
5281
+ return out;
5282
+ }
5283
+ function utf16leSlice(buf, start, end) {
5284
+ const bytes = buf.slice(start, end);
5285
+ let res = "";
5286
+ for (let i = 0; i < bytes.length - 1; i += 2) {
5287
+ res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);
5288
+ }
5289
+ return res;
5290
+ }
5291
+ Buffer2.prototype.slice = function slice(start, end) {
5292
+ const len = this.length;
5293
+ start = ~~start;
5294
+ end = end === void 0 ? len : ~~end;
5295
+ if (start < 0) {
5296
+ start += len;
5297
+ if (start < 0) start = 0;
5298
+ } else if (start > len) {
5299
+ start = len;
5300
+ }
5301
+ if (end < 0) {
5302
+ end += len;
5303
+ if (end < 0) end = 0;
5304
+ } else if (end > len) {
5305
+ end = len;
5306
+ }
5307
+ if (end < start) end = start;
5308
+ const newBuf = this.subarray(start, end);
5309
+ Object.setPrototypeOf(newBuf, Buffer2.prototype);
5310
+ return newBuf;
5311
+ };
5312
+ function checkOffset(offset, ext, length) {
5313
+ if (offset % 1 !== 0 || offset < 0) throw new RangeError("offset is not uint");
5314
+ if (offset + ext > length) throw new RangeError("Trying to access beyond buffer length");
5315
+ }
5316
+ Buffer2.prototype.readUintLE = Buffer2.prototype.readUIntLE = function readUIntLE(offset, byteLength3, noAssert) {
5317
+ offset = offset >>> 0;
5318
+ byteLength3 = byteLength3 >>> 0;
5319
+ if (!noAssert) checkOffset(offset, byteLength3, this.length);
5320
+ let val = this[offset];
5321
+ let mul = 1;
5322
+ let i = 0;
5323
+ while (++i < byteLength3 && (mul *= 256)) {
5324
+ val += this[offset + i] * mul;
5325
+ }
5326
+ return val;
5327
+ };
5328
+ Buffer2.prototype.readUintBE = Buffer2.prototype.readUIntBE = function readUIntBE(offset, byteLength3, noAssert) {
5329
+ offset = offset >>> 0;
5330
+ byteLength3 = byteLength3 >>> 0;
5331
+ if (!noAssert) {
5332
+ checkOffset(offset, byteLength3, this.length);
5333
+ }
5334
+ let val = this[offset + --byteLength3];
5335
+ let mul = 1;
5336
+ while (byteLength3 > 0 && (mul *= 256)) {
5337
+ val += this[offset + --byteLength3] * mul;
5338
+ }
5339
+ return val;
5340
+ };
5341
+ Buffer2.prototype.readUint8 = Buffer2.prototype.readUInt8 = function readUInt8(offset, noAssert) {
5342
+ offset = offset >>> 0;
5343
+ if (!noAssert) checkOffset(offset, 1, this.length);
5344
+ return this[offset];
5345
+ };
5346
+ Buffer2.prototype.readUint16LE = Buffer2.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
5347
+ offset = offset >>> 0;
5348
+ if (!noAssert) checkOffset(offset, 2, this.length);
5349
+ return this[offset] | this[offset + 1] << 8;
5350
+ };
5351
+ Buffer2.prototype.readUint16BE = Buffer2.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
5352
+ offset = offset >>> 0;
5353
+ if (!noAssert) checkOffset(offset, 2, this.length);
5354
+ return this[offset] << 8 | this[offset + 1];
5355
+ };
5356
+ Buffer2.prototype.readUint32LE = Buffer2.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
5357
+ offset = offset >>> 0;
5358
+ if (!noAssert) checkOffset(offset, 4, this.length);
5359
+ return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;
5360
+ };
5361
+ Buffer2.prototype.readUint32BE = Buffer2.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
5362
+ offset = offset >>> 0;
5363
+ if (!noAssert) checkOffset(offset, 4, this.length);
5364
+ return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
5365
+ };
5366
+ Buffer2.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
5367
+ offset = offset >>> 0;
5368
+ validateNumber(offset, "offset");
5369
+ const first = this[offset];
5370
+ const last = this[offset + 7];
5371
+ if (first === void 0 || last === void 0) {
5372
+ boundsError(offset, this.length - 8);
5373
+ }
5374
+ const lo = first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24;
5375
+ const hi = this[++offset] + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + last * 2 ** 24;
5376
+ return BigInt(lo) + (BigInt(hi) << BigInt(32));
5377
+ });
5378
+ Buffer2.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
5379
+ offset = offset >>> 0;
5380
+ validateNumber(offset, "offset");
5381
+ const first = this[offset];
5382
+ const last = this[offset + 7];
5383
+ if (first === void 0 || last === void 0) {
5384
+ boundsError(offset, this.length - 8);
5385
+ }
5386
+ const hi = first * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
5387
+ const lo = this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last;
5388
+ return (BigInt(hi) << BigInt(32)) + BigInt(lo);
5389
+ });
5390
+ Buffer2.prototype.readIntLE = function readIntLE(offset, byteLength3, noAssert) {
5391
+ offset = offset >>> 0;
5392
+ byteLength3 = byteLength3 >>> 0;
5393
+ if (!noAssert) checkOffset(offset, byteLength3, this.length);
5394
+ let val = this[offset];
5395
+ let mul = 1;
5396
+ let i = 0;
5397
+ while (++i < byteLength3 && (mul *= 256)) {
5398
+ val += this[offset + i] * mul;
5399
+ }
5400
+ mul *= 128;
5401
+ if (val >= mul) val -= Math.pow(2, 8 * byteLength3);
5402
+ return val;
5403
+ };
5404
+ Buffer2.prototype.readIntBE = function readIntBE(offset, byteLength3, noAssert) {
5405
+ offset = offset >>> 0;
5406
+ byteLength3 = byteLength3 >>> 0;
5407
+ if (!noAssert) checkOffset(offset, byteLength3, this.length);
5408
+ let i = byteLength3;
5409
+ let mul = 1;
5410
+ let val = this[offset + --i];
5411
+ while (i > 0 && (mul *= 256)) {
5412
+ val += this[offset + --i] * mul;
5413
+ }
5414
+ mul *= 128;
5415
+ if (val >= mul) val -= Math.pow(2, 8 * byteLength3);
5416
+ return val;
5417
+ };
5418
+ Buffer2.prototype.readInt8 = function readInt8(offset, noAssert) {
5419
+ offset = offset >>> 0;
5420
+ if (!noAssert) checkOffset(offset, 1, this.length);
5421
+ if (!(this[offset] & 128)) return this[offset];
5422
+ return (255 - this[offset] + 1) * -1;
5423
+ };
5424
+ Buffer2.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
5425
+ offset = offset >>> 0;
5426
+ if (!noAssert) checkOffset(offset, 2, this.length);
5427
+ const val = this[offset] | this[offset + 1] << 8;
5428
+ return val & 32768 ? val | 4294901760 : val;
5429
+ };
5430
+ Buffer2.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
5431
+ offset = offset >>> 0;
5432
+ if (!noAssert) checkOffset(offset, 2, this.length);
5433
+ const val = this[offset + 1] | this[offset] << 8;
5434
+ return val & 32768 ? val | 4294901760 : val;
5435
+ };
5436
+ Buffer2.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
5437
+ offset = offset >>> 0;
5438
+ if (!noAssert) checkOffset(offset, 4, this.length);
5439
+ return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;
5440
+ };
5441
+ Buffer2.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
5442
+ offset = offset >>> 0;
5443
+ if (!noAssert) checkOffset(offset, 4, this.length);
5444
+ return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
5445
+ };
5446
+ Buffer2.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
5447
+ offset = offset >>> 0;
5448
+ validateNumber(offset, "offset");
5449
+ const first = this[offset];
5450
+ const last = this[offset + 7];
5451
+ if (first === void 0 || last === void 0) {
5452
+ boundsError(offset, this.length - 8);
5453
+ }
5454
+ const val = this[offset + 4] + this[offset + 5] * 2 ** 8 + this[offset + 6] * 2 ** 16 + (last << 24);
5455
+ return (BigInt(val) << BigInt(32)) + BigInt(first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24);
5456
+ });
5457
+ Buffer2.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
5458
+ offset = offset >>> 0;
5459
+ validateNumber(offset, "offset");
5460
+ const first = this[offset];
5461
+ const last = this[offset + 7];
5462
+ if (first === void 0 || last === void 0) {
5463
+ boundsError(offset, this.length - 8);
5464
+ }
5465
+ const val = (first << 24) + // Overflow
5466
+ this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
5467
+ return (BigInt(val) << BigInt(32)) + BigInt(this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last);
5468
+ });
5469
+ Buffer2.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
5470
+ offset = offset >>> 0;
5471
+ if (!noAssert) checkOffset(offset, 4, this.length);
5472
+ return ieee754$1.read(this, offset, true, 23, 4);
5473
+ };
5474
+ Buffer2.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
5475
+ offset = offset >>> 0;
5476
+ if (!noAssert) checkOffset(offset, 4, this.length);
5477
+ return ieee754$1.read(this, offset, false, 23, 4);
5478
+ };
5479
+ Buffer2.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
5480
+ offset = offset >>> 0;
5481
+ if (!noAssert) checkOffset(offset, 8, this.length);
5482
+ return ieee754$1.read(this, offset, true, 52, 8);
5483
+ };
5484
+ Buffer2.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
5485
+ offset = offset >>> 0;
5486
+ if (!noAssert) checkOffset(offset, 8, this.length);
5487
+ return ieee754$1.read(this, offset, false, 52, 8);
5488
+ };
5489
+ function checkInt(buf, value, offset, ext, max, min) {
5490
+ if (!Buffer2.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance');
5491
+ if (value > max || value < min) throw new RangeError('"value" argument is out of bounds');
5492
+ if (offset + ext > buf.length) throw new RangeError("Index out of range");
5493
+ }
5494
+ Buffer2.prototype.writeUintLE = Buffer2.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength3, noAssert) {
5495
+ value = +value;
5496
+ offset = offset >>> 0;
5497
+ byteLength3 = byteLength3 >>> 0;
5498
+ if (!noAssert) {
5499
+ const maxBytes = Math.pow(2, 8 * byteLength3) - 1;
5500
+ checkInt(this, value, offset, byteLength3, maxBytes, 0);
5501
+ }
5502
+ let mul = 1;
5503
+ let i = 0;
5504
+ this[offset] = value & 255;
5505
+ while (++i < byteLength3 && (mul *= 256)) {
5506
+ this[offset + i] = value / mul & 255;
5507
+ }
5508
+ return offset + byteLength3;
5509
+ };
5510
+ Buffer2.prototype.writeUintBE = Buffer2.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength3, noAssert) {
5511
+ value = +value;
5512
+ offset = offset >>> 0;
5513
+ byteLength3 = byteLength3 >>> 0;
5514
+ if (!noAssert) {
5515
+ const maxBytes = Math.pow(2, 8 * byteLength3) - 1;
5516
+ checkInt(this, value, offset, byteLength3, maxBytes, 0);
5517
+ }
5518
+ let i = byteLength3 - 1;
5519
+ let mul = 1;
5520
+ this[offset + i] = value & 255;
5521
+ while (--i >= 0 && (mul *= 256)) {
5522
+ this[offset + i] = value / mul & 255;
5523
+ }
5524
+ return offset + byteLength3;
5525
+ };
5526
+ Buffer2.prototype.writeUint8 = Buffer2.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
5527
+ value = +value;
5528
+ offset = offset >>> 0;
5529
+ if (!noAssert) checkInt(this, value, offset, 1, 255, 0);
5530
+ this[offset] = value & 255;
5531
+ return offset + 1;
5532
+ };
5533
+ Buffer2.prototype.writeUint16LE = Buffer2.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
5534
+ value = +value;
5535
+ offset = offset >>> 0;
5536
+ if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);
5537
+ this[offset] = value & 255;
5538
+ this[offset + 1] = value >>> 8;
5539
+ return offset + 2;
5540
+ };
5541
+ Buffer2.prototype.writeUint16BE = Buffer2.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
5542
+ value = +value;
5543
+ offset = offset >>> 0;
5544
+ if (!noAssert) checkInt(this, value, offset, 2, 65535, 0);
5545
+ this[offset] = value >>> 8;
5546
+ this[offset + 1] = value & 255;
5547
+ return offset + 2;
5548
+ };
5549
+ Buffer2.prototype.writeUint32LE = Buffer2.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
5550
+ value = +value;
5551
+ offset = offset >>> 0;
5552
+ if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);
5553
+ this[offset + 3] = value >>> 24;
5554
+ this[offset + 2] = value >>> 16;
5555
+ this[offset + 1] = value >>> 8;
5556
+ this[offset] = value & 255;
5557
+ return offset + 4;
5558
+ };
5559
+ Buffer2.prototype.writeUint32BE = Buffer2.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
5560
+ value = +value;
5561
+ offset = offset >>> 0;
5562
+ if (!noAssert) checkInt(this, value, offset, 4, 4294967295, 0);
5563
+ this[offset] = value >>> 24;
5564
+ this[offset + 1] = value >>> 16;
5565
+ this[offset + 2] = value >>> 8;
5566
+ this[offset + 3] = value & 255;
5567
+ return offset + 4;
5568
+ };
5569
+ function wrtBigUInt64LE(buf, value, offset, min, max) {
5570
+ checkIntBI(value, min, max, buf, offset, 7);
5571
+ let lo = Number(value & BigInt(4294967295));
5572
+ buf[offset++] = lo;
5573
+ lo = lo >> 8;
5574
+ buf[offset++] = lo;
5575
+ lo = lo >> 8;
5576
+ buf[offset++] = lo;
5577
+ lo = lo >> 8;
5578
+ buf[offset++] = lo;
5579
+ let hi = Number(value >> BigInt(32) & BigInt(4294967295));
5580
+ buf[offset++] = hi;
5581
+ hi = hi >> 8;
5582
+ buf[offset++] = hi;
5583
+ hi = hi >> 8;
5584
+ buf[offset++] = hi;
5585
+ hi = hi >> 8;
5586
+ buf[offset++] = hi;
5587
+ return offset;
5588
+ }
5589
+ function wrtBigUInt64BE(buf, value, offset, min, max) {
5590
+ checkIntBI(value, min, max, buf, offset, 7);
5591
+ let lo = Number(value & BigInt(4294967295));
5592
+ buf[offset + 7] = lo;
5593
+ lo = lo >> 8;
5594
+ buf[offset + 6] = lo;
5595
+ lo = lo >> 8;
5596
+ buf[offset + 5] = lo;
5597
+ lo = lo >> 8;
5598
+ buf[offset + 4] = lo;
5599
+ let hi = Number(value >> BigInt(32) & BigInt(4294967295));
5600
+ buf[offset + 3] = hi;
5601
+ hi = hi >> 8;
5602
+ buf[offset + 2] = hi;
5603
+ hi = hi >> 8;
5604
+ buf[offset + 1] = hi;
5605
+ hi = hi >> 8;
5606
+ buf[offset] = hi;
5607
+ return offset + 8;
5608
+ }
5609
+ Buffer2.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
5610
+ return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
5611
+ });
5612
+ Buffer2.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
5613
+ return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
5614
+ });
5615
+ Buffer2.prototype.writeIntLE = function writeIntLE(value, offset, byteLength3, noAssert) {
5616
+ value = +value;
5617
+ offset = offset >>> 0;
5618
+ if (!noAssert) {
5619
+ const limit = Math.pow(2, 8 * byteLength3 - 1);
5620
+ checkInt(this, value, offset, byteLength3, limit - 1, -limit);
5621
+ }
5622
+ let i = 0;
5623
+ let mul = 1;
5624
+ let sub = 0;
5625
+ this[offset] = value & 255;
5626
+ while (++i < byteLength3 && (mul *= 256)) {
5627
+ if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
5628
+ sub = 1;
5629
+ }
5630
+ this[offset + i] = (value / mul >> 0) - sub & 255;
5631
+ }
5632
+ return offset + byteLength3;
5633
+ };
5634
+ Buffer2.prototype.writeIntBE = function writeIntBE(value, offset, byteLength3, noAssert) {
5635
+ value = +value;
5636
+ offset = offset >>> 0;
5637
+ if (!noAssert) {
5638
+ const limit = Math.pow(2, 8 * byteLength3 - 1);
5639
+ checkInt(this, value, offset, byteLength3, limit - 1, -limit);
5640
+ }
5641
+ let i = byteLength3 - 1;
5642
+ let mul = 1;
5643
+ let sub = 0;
5644
+ this[offset + i] = value & 255;
5645
+ while (--i >= 0 && (mul *= 256)) {
5646
+ if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
5647
+ sub = 1;
5648
+ }
5649
+ this[offset + i] = (value / mul >> 0) - sub & 255;
5650
+ }
5651
+ return offset + byteLength3;
5652
+ };
5653
+ Buffer2.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
5654
+ value = +value;
5655
+ offset = offset >>> 0;
5656
+ if (!noAssert) checkInt(this, value, offset, 1, 127, -128);
5657
+ if (value < 0) value = 255 + value + 1;
5658
+ this[offset] = value & 255;
5659
+ return offset + 1;
5660
+ };
5661
+ Buffer2.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
5662
+ value = +value;
5663
+ offset = offset >>> 0;
5664
+ if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);
5665
+ this[offset] = value & 255;
5666
+ this[offset + 1] = value >>> 8;
5667
+ return offset + 2;
5668
+ };
5669
+ Buffer2.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
5670
+ value = +value;
5671
+ offset = offset >>> 0;
5672
+ if (!noAssert) checkInt(this, value, offset, 2, 32767, -32768);
5673
+ this[offset] = value >>> 8;
5674
+ this[offset + 1] = value & 255;
5675
+ return offset + 2;
5676
+ };
5677
+ Buffer2.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
5678
+ value = +value;
5679
+ offset = offset >>> 0;
5680
+ if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);
5681
+ this[offset] = value & 255;
5682
+ this[offset + 1] = value >>> 8;
5683
+ this[offset + 2] = value >>> 16;
5684
+ this[offset + 3] = value >>> 24;
5685
+ return offset + 4;
5686
+ };
5687
+ Buffer2.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
5688
+ value = +value;
5689
+ offset = offset >>> 0;
5690
+ if (!noAssert) checkInt(this, value, offset, 4, 2147483647, -2147483648);
5691
+ if (value < 0) value = 4294967295 + value + 1;
5692
+ this[offset] = value >>> 24;
5693
+ this[offset + 1] = value >>> 16;
5694
+ this[offset + 2] = value >>> 8;
5695
+ this[offset + 3] = value & 255;
5696
+ return offset + 4;
5697
+ };
5698
+ Buffer2.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
5699
+ return wrtBigUInt64LE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
5700
+ });
5701
+ Buffer2.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
5702
+ return wrtBigUInt64BE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
5703
+ });
5704
+ function checkIEEE754(buf, value, offset, ext, max, min) {
5705
+ if (offset + ext > buf.length) throw new RangeError("Index out of range");
5706
+ if (offset < 0) throw new RangeError("Index out of range");
5707
+ }
5708
+ function writeFloat(buf, value, offset, littleEndian, noAssert) {
5709
+ value = +value;
5710
+ offset = offset >>> 0;
5711
+ if (!noAssert) {
5712
+ checkIEEE754(buf, value, offset, 4);
5713
+ }
5714
+ ieee754$1.write(buf, value, offset, littleEndian, 23, 4);
5715
+ return offset + 4;
5716
+ }
5717
+ Buffer2.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
5718
+ return writeFloat(this, value, offset, true, noAssert);
5719
+ };
5720
+ Buffer2.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
5721
+ return writeFloat(this, value, offset, false, noAssert);
5722
+ };
5723
+ function writeDouble(buf, value, offset, littleEndian, noAssert) {
5724
+ value = +value;
5725
+ offset = offset >>> 0;
5726
+ if (!noAssert) {
5727
+ checkIEEE754(buf, value, offset, 8);
5728
+ }
5729
+ ieee754$1.write(buf, value, offset, littleEndian, 52, 8);
5730
+ return offset + 8;
5731
+ }
5732
+ Buffer2.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
5733
+ return writeDouble(this, value, offset, true, noAssert);
5734
+ };
5735
+ Buffer2.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
5736
+ return writeDouble(this, value, offset, false, noAssert);
5737
+ };
5738
+ Buffer2.prototype.copy = function copy(target, targetStart, start, end) {
5739
+ if (!Buffer2.isBuffer(target)) throw new TypeError("argument should be a Buffer");
5740
+ if (!start) start = 0;
5741
+ if (!end && end !== 0) end = this.length;
5742
+ if (targetStart >= target.length) targetStart = target.length;
5743
+ if (!targetStart) targetStart = 0;
5744
+ if (end > 0 && end < start) end = start;
5745
+ if (end === start) return 0;
5746
+ if (target.length === 0 || this.length === 0) return 0;
5747
+ if (targetStart < 0) {
5748
+ throw new RangeError("targetStart out of bounds");
5749
+ }
5750
+ if (start < 0 || start >= this.length) throw new RangeError("Index out of range");
5751
+ if (end < 0) throw new RangeError("sourceEnd out of bounds");
5752
+ if (end > this.length) end = this.length;
5753
+ if (target.length - targetStart < end - start) {
5754
+ end = target.length - targetStart + start;
5755
+ }
5756
+ const len = end - start;
5757
+ if (this === target && typeof GlobalUint8Array.prototype.copyWithin === "function") {
5758
+ this.copyWithin(targetStart, start, end);
5759
+ } else {
5760
+ GlobalUint8Array.prototype.set.call(
5761
+ target,
5762
+ this.subarray(start, end),
5763
+ targetStart
5764
+ );
5765
+ }
5766
+ return len;
5767
+ };
5768
+ Buffer2.prototype.fill = function fill(val, start, end, encoding) {
5769
+ if (typeof val === "string") {
5770
+ if (typeof start === "string") {
5771
+ encoding = start;
5772
+ start = 0;
5773
+ end = this.length;
5774
+ } else if (typeof end === "string") {
5775
+ encoding = end;
5776
+ end = this.length;
5777
+ }
5778
+ if (encoding !== void 0 && typeof encoding !== "string") {
5779
+ throw new TypeError("encoding must be a string");
5780
+ }
5781
+ if (typeof encoding === "string" && !Buffer2.isEncoding(encoding)) {
5782
+ throw new TypeError("Unknown encoding: " + encoding);
5783
+ }
5784
+ if (val.length === 1) {
5785
+ const code2 = val.charCodeAt(0);
5786
+ if (encoding === "utf8" && code2 < 128 || encoding === "latin1") {
5787
+ val = code2;
5788
+ }
5789
+ }
5790
+ } else if (typeof val === "number") {
5791
+ val = val & 255;
5792
+ } else if (typeof val === "boolean") {
5793
+ val = Number(val);
5794
+ }
5795
+ if (start < 0 || this.length < start || this.length < end) {
5796
+ throw new RangeError("Out of range index");
5797
+ }
5798
+ if (end <= start) {
5799
+ return this;
5800
+ }
5801
+ start = start >>> 0;
5802
+ end = end === void 0 ? this.length : end >>> 0;
5803
+ if (!val) val = 0;
5804
+ let i;
5805
+ if (typeof val === "number") {
5806
+ for (i = start; i < end; ++i) {
5807
+ this[i] = val;
5808
+ }
5809
+ } else {
5810
+ const bytes = Buffer2.isBuffer(val) ? val : Buffer2.from(val, encoding);
5811
+ const len = bytes.length;
5812
+ if (len === 0) {
5813
+ throw new TypeError('The value "' + val + '" is invalid for argument "value"');
5814
+ }
5815
+ for (i = 0; i < end - start; ++i) {
5816
+ this[i + start] = bytes[i % len];
5817
+ }
5818
+ }
5819
+ return this;
5820
+ };
5821
+ const errors = {};
5822
+ function E(sym, getMessage, Base) {
5823
+ errors[sym] = class NodeError extends Base {
5824
+ constructor() {
5825
+ super();
5826
+ Object.defineProperty(this, "message", {
5827
+ value: getMessage.apply(this, arguments),
5828
+ writable: true,
5829
+ configurable: true
5830
+ });
5831
+ this.name = `${this.name} [${sym}]`;
5832
+ this.stack;
5833
+ delete this.name;
5834
+ }
5835
+ get code() {
5836
+ return sym;
5837
+ }
5838
+ set code(value) {
5839
+ Object.defineProperty(this, "code", {
5840
+ configurable: true,
5841
+ enumerable: true,
5842
+ value,
5843
+ writable: true
5844
+ });
5845
+ }
5846
+ toString() {
5847
+ return `${this.name} [${sym}]: ${this.message}`;
5848
+ }
5849
+ };
5850
+ }
5851
+ E(
5852
+ "ERR_BUFFER_OUT_OF_BOUNDS",
5853
+ function(name) {
5854
+ if (name) {
5855
+ return `${name} is outside of buffer bounds`;
5856
+ }
5857
+ return "Attempt to access memory outside buffer bounds";
5858
+ },
5859
+ RangeError
5860
+ );
5861
+ E(
5862
+ "ERR_INVALID_ARG_TYPE",
5863
+ function(name, actual) {
5864
+ return `The "${name}" argument must be of type number. Received type ${typeof actual}`;
5865
+ },
5866
+ TypeError
5867
+ );
5868
+ E(
5869
+ "ERR_OUT_OF_RANGE",
5870
+ function(str, range, input) {
5871
+ let msg = `The value of "${str}" is out of range.`;
5872
+ let received = input;
5873
+ if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
5874
+ received = addNumericalSeparator(String(input));
5875
+ } else if (typeof input === "bigint") {
5876
+ received = String(input);
5877
+ if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {
5878
+ received = addNumericalSeparator(received);
5879
+ }
5880
+ received += "n";
5881
+ }
5882
+ msg += ` It must be ${range}. Received ${received}`;
5883
+ return msg;
5884
+ },
5885
+ RangeError
5886
+ );
5887
+ function addNumericalSeparator(val) {
5888
+ let res = "";
5889
+ let i = val.length;
5890
+ const start = val[0] === "-" ? 1 : 0;
5891
+ for (; i >= start + 4; i -= 3) {
5892
+ res = `_${val.slice(i - 3, i)}${res}`;
5893
+ }
5894
+ return `${val.slice(0, i)}${res}`;
5895
+ }
5896
+ function checkBounds(buf, offset, byteLength3) {
5897
+ validateNumber(offset, "offset");
5898
+ if (buf[offset] === void 0 || buf[offset + byteLength3] === void 0) {
5899
+ boundsError(offset, buf.length - (byteLength3 + 1));
5900
+ }
5901
+ }
5902
+ function checkIntBI(value, min, max, buf, offset, byteLength3) {
5903
+ if (value > max || value < min) {
5904
+ const n = typeof min === "bigint" ? "n" : "";
5905
+ let range;
5906
+ {
5907
+ if (min === 0 || min === BigInt(0)) {
5908
+ range = `>= 0${n} and < 2${n} ** ${(byteLength3 + 1) * 8}${n}`;
5909
+ } else {
5910
+ range = `>= -(2${n} ** ${(byteLength3 + 1) * 8 - 1}${n}) and < 2 ** ${(byteLength3 + 1) * 8 - 1}${n}`;
5911
+ }
5912
+ }
5913
+ throw new errors.ERR_OUT_OF_RANGE("value", range, value);
5914
+ }
5915
+ checkBounds(buf, offset, byteLength3);
5916
+ }
5917
+ function validateNumber(value, name) {
5918
+ if (typeof value !== "number") {
5919
+ throw new errors.ERR_INVALID_ARG_TYPE(name, "number", value);
5920
+ }
5921
+ }
5922
+ function boundsError(value, length, type) {
5923
+ if (Math.floor(value) !== value) {
5924
+ validateNumber(value, type);
5925
+ throw new errors.ERR_OUT_OF_RANGE("offset", "an integer", value);
5926
+ }
5927
+ if (length < 0) {
5928
+ throw new errors.ERR_BUFFER_OUT_OF_BOUNDS();
5929
+ }
5930
+ throw new errors.ERR_OUT_OF_RANGE(
5931
+ "offset",
5932
+ `>= ${0} and <= ${length}`,
5933
+ value
5934
+ );
5935
+ }
5936
+ const INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
5937
+ function base64clean(str) {
5938
+ str = str.split("=")[0];
5939
+ str = str.trim().replace(INVALID_BASE64_RE, "");
5940
+ if (str.length < 2) return "";
5941
+ while (str.length % 4 !== 0) {
5942
+ str = str + "=";
5943
+ }
5944
+ return str;
5945
+ }
5946
+ function utf8ToBytes(string, units) {
5947
+ units = units || Infinity;
5948
+ let codePoint;
5949
+ const length = string.length;
5950
+ let leadSurrogate = null;
5951
+ const bytes = [];
5952
+ for (let i = 0; i < length; ++i) {
5953
+ codePoint = string.charCodeAt(i);
5954
+ if (codePoint > 55295 && codePoint < 57344) {
5955
+ if (!leadSurrogate) {
5956
+ if (codePoint > 56319) {
5957
+ if ((units -= 3) > -1) bytes.push(239, 191, 189);
5958
+ continue;
5959
+ } else if (i + 1 === length) {
5960
+ if ((units -= 3) > -1) bytes.push(239, 191, 189);
5961
+ continue;
5962
+ }
5963
+ leadSurrogate = codePoint;
5964
+ continue;
5965
+ }
5966
+ if (codePoint < 56320) {
5967
+ if ((units -= 3) > -1) bytes.push(239, 191, 189);
5968
+ leadSurrogate = codePoint;
5969
+ continue;
5970
+ }
5971
+ codePoint = (leadSurrogate - 55296 << 10 | codePoint - 56320) + 65536;
5972
+ } else if (leadSurrogate) {
5973
+ if ((units -= 3) > -1) bytes.push(239, 191, 189);
5974
+ }
5975
+ leadSurrogate = null;
5976
+ if (codePoint < 128) {
5977
+ if ((units -= 1) < 0) break;
5978
+ bytes.push(codePoint);
5979
+ } else if (codePoint < 2048) {
5980
+ if ((units -= 2) < 0) break;
5981
+ bytes.push(
5982
+ codePoint >> 6 | 192,
5983
+ codePoint & 63 | 128
5984
+ );
5985
+ } else if (codePoint < 65536) {
5986
+ if ((units -= 3) < 0) break;
5987
+ bytes.push(
5988
+ codePoint >> 12 | 224,
5989
+ codePoint >> 6 & 63 | 128,
5990
+ codePoint & 63 | 128
5991
+ );
5992
+ } else if (codePoint < 1114112) {
5993
+ if ((units -= 4) < 0) break;
5994
+ bytes.push(
5995
+ codePoint >> 18 | 240,
5996
+ codePoint >> 12 & 63 | 128,
5997
+ codePoint >> 6 & 63 | 128,
5998
+ codePoint & 63 | 128
5999
+ );
6000
+ } else {
6001
+ throw new Error("Invalid code point");
6002
+ }
6003
+ }
6004
+ return bytes;
6005
+ }
6006
+ function asciiToBytes(str) {
6007
+ const byteArray = [];
6008
+ for (let i = 0; i < str.length; ++i) {
6009
+ byteArray.push(str.charCodeAt(i) & 255);
6010
+ }
6011
+ return byteArray;
6012
+ }
6013
+ function utf16leToBytes(str, units) {
6014
+ let c, hi, lo;
6015
+ const byteArray = [];
6016
+ for (let i = 0; i < str.length; ++i) {
6017
+ if ((units -= 2) < 0) break;
6018
+ c = str.charCodeAt(i);
6019
+ hi = c >> 8;
6020
+ lo = c % 256;
6021
+ byteArray.push(lo);
6022
+ byteArray.push(hi);
6023
+ }
6024
+ return byteArray;
6025
+ }
6026
+ function base64ToBytes(str) {
6027
+ return base64.toByteArray(base64clean(str));
6028
+ }
6029
+ function blitBuffer(src, dst, offset, length) {
6030
+ let i;
6031
+ for (i = 0; i < length; ++i) {
6032
+ if (i + offset >= dst.length || i >= src.length) break;
6033
+ dst[i + offset] = src[i];
6034
+ }
6035
+ return i;
6036
+ }
6037
+ function isInstance(obj, type) {
6038
+ return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;
6039
+ }
6040
+ function numberIsNaN(obj) {
6041
+ return obj !== obj;
6042
+ }
6043
+ const hexSliceLookupTable = function() {
6044
+ const alphabet = "0123456789abcdef";
6045
+ const table = new Array(256);
6046
+ for (let i = 0; i < 16; ++i) {
6047
+ const i16 = i * 16;
6048
+ for (let j = 0; j < 16; ++j) {
6049
+ table[i16 + j] = alphabet[i] + alphabet[j];
6050
+ }
6051
+ }
6052
+ return table;
6053
+ }();
6054
+ function defineBigIntMethod(fn) {
6055
+ return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
6056
+ }
6057
+ function BufferBigIntNotDefined() {
6058
+ throw new Error("BigInt not supported");
6059
+ }
6060
+ })(buffer);
6061
+ const Buffer = buffer.Buffer;
4133
6062
  function commonjsRequire(path) {
4134
6063
  throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4135
6064
  }
@@ -4140,6 +6069,419 @@ var __viteBrowserExternal$1 = /* @__PURE__ */ Object.freeze({
4140
6069
  default: __viteBrowserExternal
4141
6070
  });
4142
6071
  var require$$6 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal$1);
6072
+ var empty = null;
6073
+ var empty$1 = /* @__PURE__ */ Object.freeze({
6074
+ __proto__: null,
6075
+ default: empty
6076
+ });
6077
+ var require$$1 = /* @__PURE__ */ getAugmentedNamespace(empty$1);
6078
+ var pathBrowserify;
6079
+ var hasRequiredPathBrowserify;
6080
+ function requirePathBrowserify() {
6081
+ if (hasRequiredPathBrowserify) return pathBrowserify;
6082
+ hasRequiredPathBrowserify = 1;
6083
+ function assertPath(path) {
6084
+ if (typeof path !== "string") {
6085
+ throw new TypeError("Path must be a string. Received " + JSON.stringify(path));
6086
+ }
6087
+ }
6088
+ function normalizeStringPosix(path, allowAboveRoot) {
6089
+ var res = "";
6090
+ var lastSegmentLength = 0;
6091
+ var lastSlash = -1;
6092
+ var dots = 0;
6093
+ var code2;
6094
+ for (var i = 0; i <= path.length; ++i) {
6095
+ if (i < path.length)
6096
+ code2 = path.charCodeAt(i);
6097
+ else if (code2 === 47)
6098
+ break;
6099
+ else
6100
+ code2 = 47;
6101
+ if (code2 === 47) {
6102
+ if (lastSlash === i - 1 || dots === 1) ;
6103
+ else if (lastSlash !== i - 1 && dots === 2) {
6104
+ if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 || res.charCodeAt(res.length - 2) !== 46) {
6105
+ if (res.length > 2) {
6106
+ var lastSlashIndex = res.lastIndexOf("/");
6107
+ if (lastSlashIndex !== res.length - 1) {
6108
+ if (lastSlashIndex === -1) {
6109
+ res = "";
6110
+ lastSegmentLength = 0;
6111
+ } else {
6112
+ res = res.slice(0, lastSlashIndex);
6113
+ lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
6114
+ }
6115
+ lastSlash = i;
6116
+ dots = 0;
6117
+ continue;
6118
+ }
6119
+ } else if (res.length === 2 || res.length === 1) {
6120
+ res = "";
6121
+ lastSegmentLength = 0;
6122
+ lastSlash = i;
6123
+ dots = 0;
6124
+ continue;
6125
+ }
6126
+ }
6127
+ if (allowAboveRoot) {
6128
+ if (res.length > 0)
6129
+ res += "/..";
6130
+ else
6131
+ res = "..";
6132
+ lastSegmentLength = 2;
6133
+ }
6134
+ } else {
6135
+ if (res.length > 0)
6136
+ res += "/" + path.slice(lastSlash + 1, i);
6137
+ else
6138
+ res = path.slice(lastSlash + 1, i);
6139
+ lastSegmentLength = i - lastSlash - 1;
6140
+ }
6141
+ lastSlash = i;
6142
+ dots = 0;
6143
+ } else if (code2 === 46 && dots !== -1) {
6144
+ ++dots;
6145
+ } else {
6146
+ dots = -1;
6147
+ }
6148
+ }
6149
+ return res;
6150
+ }
6151
+ function _format(sep, pathObject) {
6152
+ var dir = pathObject.dir || pathObject.root;
6153
+ var base = pathObject.base || (pathObject.name || "") + (pathObject.ext || "");
6154
+ if (!dir) {
6155
+ return base;
6156
+ }
6157
+ if (dir === pathObject.root) {
6158
+ return dir + base;
6159
+ }
6160
+ return dir + sep + base;
6161
+ }
6162
+ var posix = {
6163
+ // path.resolve([from ...], to)
6164
+ resolve: function resolve() {
6165
+ var resolvedPath = "";
6166
+ var resolvedAbsolute = false;
6167
+ var cwd;
6168
+ for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
6169
+ var path;
6170
+ if (i >= 0)
6171
+ path = arguments[i];
6172
+ else {
6173
+ if (cwd === void 0)
6174
+ cwd = process$1.cwd();
6175
+ path = cwd;
6176
+ }
6177
+ assertPath(path);
6178
+ if (path.length === 0) {
6179
+ continue;
6180
+ }
6181
+ resolvedPath = path + "/" + resolvedPath;
6182
+ resolvedAbsolute = path.charCodeAt(0) === 47;
6183
+ }
6184
+ resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute);
6185
+ if (resolvedAbsolute) {
6186
+ if (resolvedPath.length > 0)
6187
+ return "/" + resolvedPath;
6188
+ else
6189
+ return "/";
6190
+ } else if (resolvedPath.length > 0) {
6191
+ return resolvedPath;
6192
+ } else {
6193
+ return ".";
6194
+ }
6195
+ },
6196
+ normalize: function normalize(path) {
6197
+ assertPath(path);
6198
+ if (path.length === 0) return ".";
6199
+ var isAbsolute = path.charCodeAt(0) === 47;
6200
+ var trailingSeparator = path.charCodeAt(path.length - 1) === 47;
6201
+ path = normalizeStringPosix(path, !isAbsolute);
6202
+ if (path.length === 0 && !isAbsolute) path = ".";
6203
+ if (path.length > 0 && trailingSeparator) path += "/";
6204
+ if (isAbsolute) return "/" + path;
6205
+ return path;
6206
+ },
6207
+ isAbsolute: function isAbsolute(path) {
6208
+ assertPath(path);
6209
+ return path.length > 0 && path.charCodeAt(0) === 47;
6210
+ },
6211
+ join: function join() {
6212
+ if (arguments.length === 0)
6213
+ return ".";
6214
+ var joined;
6215
+ for (var i = 0; i < arguments.length; ++i) {
6216
+ var arg = arguments[i];
6217
+ assertPath(arg);
6218
+ if (arg.length > 0) {
6219
+ if (joined === void 0)
6220
+ joined = arg;
6221
+ else
6222
+ joined += "/" + arg;
6223
+ }
6224
+ }
6225
+ if (joined === void 0)
6226
+ return ".";
6227
+ return posix.normalize(joined);
6228
+ },
6229
+ relative: function relative(from, to) {
6230
+ assertPath(from);
6231
+ assertPath(to);
6232
+ if (from === to) return "";
6233
+ from = posix.resolve(from);
6234
+ to = posix.resolve(to);
6235
+ if (from === to) return "";
6236
+ var fromStart = 1;
6237
+ for (; fromStart < from.length; ++fromStart) {
6238
+ if (from.charCodeAt(fromStart) !== 47)
6239
+ break;
6240
+ }
6241
+ var fromEnd = from.length;
6242
+ var fromLen = fromEnd - fromStart;
6243
+ var toStart = 1;
6244
+ for (; toStart < to.length; ++toStart) {
6245
+ if (to.charCodeAt(toStart) !== 47)
6246
+ break;
6247
+ }
6248
+ var toEnd = to.length;
6249
+ var toLen = toEnd - toStart;
6250
+ var length = fromLen < toLen ? fromLen : toLen;
6251
+ var lastCommonSep = -1;
6252
+ var i = 0;
6253
+ for (; i <= length; ++i) {
6254
+ if (i === length) {
6255
+ if (toLen > length) {
6256
+ if (to.charCodeAt(toStart + i) === 47) {
6257
+ return to.slice(toStart + i + 1);
6258
+ } else if (i === 0) {
6259
+ return to.slice(toStart + i);
6260
+ }
6261
+ } else if (fromLen > length) {
6262
+ if (from.charCodeAt(fromStart + i) === 47) {
6263
+ lastCommonSep = i;
6264
+ } else if (i === 0) {
6265
+ lastCommonSep = 0;
6266
+ }
6267
+ }
6268
+ break;
6269
+ }
6270
+ var fromCode = from.charCodeAt(fromStart + i);
6271
+ var toCode = to.charCodeAt(toStart + i);
6272
+ if (fromCode !== toCode)
6273
+ break;
6274
+ else if (fromCode === 47)
6275
+ lastCommonSep = i;
6276
+ }
6277
+ var out = "";
6278
+ for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {
6279
+ if (i === fromEnd || from.charCodeAt(i) === 47) {
6280
+ if (out.length === 0)
6281
+ out += "..";
6282
+ else
6283
+ out += "/..";
6284
+ }
6285
+ }
6286
+ if (out.length > 0)
6287
+ return out + to.slice(toStart + lastCommonSep);
6288
+ else {
6289
+ toStart += lastCommonSep;
6290
+ if (to.charCodeAt(toStart) === 47)
6291
+ ++toStart;
6292
+ return to.slice(toStart);
6293
+ }
6294
+ },
6295
+ _makeLong: function _makeLong(path) {
6296
+ return path;
6297
+ },
6298
+ dirname: function dirname(path) {
6299
+ assertPath(path);
6300
+ if (path.length === 0) return ".";
6301
+ var code2 = path.charCodeAt(0);
6302
+ var hasRoot = code2 === 47;
6303
+ var end = -1;
6304
+ var matchedSlash = true;
6305
+ for (var i = path.length - 1; i >= 1; --i) {
6306
+ code2 = path.charCodeAt(i);
6307
+ if (code2 === 47) {
6308
+ if (!matchedSlash) {
6309
+ end = i;
6310
+ break;
6311
+ }
6312
+ } else {
6313
+ matchedSlash = false;
6314
+ }
6315
+ }
6316
+ if (end === -1) return hasRoot ? "/" : ".";
6317
+ if (hasRoot && end === 1) return "//";
6318
+ return path.slice(0, end);
6319
+ },
6320
+ basename: function basename(path, ext) {
6321
+ if (ext !== void 0 && typeof ext !== "string") throw new TypeError('"ext" argument must be a string');
6322
+ assertPath(path);
6323
+ var start = 0;
6324
+ var end = -1;
6325
+ var matchedSlash = true;
6326
+ var i;
6327
+ if (ext !== void 0 && ext.length > 0 && ext.length <= path.length) {
6328
+ if (ext.length === path.length && ext === path) return "";
6329
+ var extIdx = ext.length - 1;
6330
+ var firstNonSlashEnd = -1;
6331
+ for (i = path.length - 1; i >= 0; --i) {
6332
+ var code2 = path.charCodeAt(i);
6333
+ if (code2 === 47) {
6334
+ if (!matchedSlash) {
6335
+ start = i + 1;
6336
+ break;
6337
+ }
6338
+ } else {
6339
+ if (firstNonSlashEnd === -1) {
6340
+ matchedSlash = false;
6341
+ firstNonSlashEnd = i + 1;
6342
+ }
6343
+ if (extIdx >= 0) {
6344
+ if (code2 === ext.charCodeAt(extIdx)) {
6345
+ if (--extIdx === -1) {
6346
+ end = i;
6347
+ }
6348
+ } else {
6349
+ extIdx = -1;
6350
+ end = firstNonSlashEnd;
6351
+ }
6352
+ }
6353
+ }
6354
+ }
6355
+ if (start === end) end = firstNonSlashEnd;
6356
+ else if (end === -1) end = path.length;
6357
+ return path.slice(start, end);
6358
+ } else {
6359
+ for (i = path.length - 1; i >= 0; --i) {
6360
+ if (path.charCodeAt(i) === 47) {
6361
+ if (!matchedSlash) {
6362
+ start = i + 1;
6363
+ break;
6364
+ }
6365
+ } else if (end === -1) {
6366
+ matchedSlash = false;
6367
+ end = i + 1;
6368
+ }
6369
+ }
6370
+ if (end === -1) return "";
6371
+ return path.slice(start, end);
6372
+ }
6373
+ },
6374
+ extname: function extname(path) {
6375
+ assertPath(path);
6376
+ var startDot = -1;
6377
+ var startPart = 0;
6378
+ var end = -1;
6379
+ var matchedSlash = true;
6380
+ var preDotState = 0;
6381
+ for (var i = path.length - 1; i >= 0; --i) {
6382
+ var code2 = path.charCodeAt(i);
6383
+ if (code2 === 47) {
6384
+ if (!matchedSlash) {
6385
+ startPart = i + 1;
6386
+ break;
6387
+ }
6388
+ continue;
6389
+ }
6390
+ if (end === -1) {
6391
+ matchedSlash = false;
6392
+ end = i + 1;
6393
+ }
6394
+ if (code2 === 46) {
6395
+ if (startDot === -1)
6396
+ startDot = i;
6397
+ else if (preDotState !== 1)
6398
+ preDotState = 1;
6399
+ } else if (startDot !== -1) {
6400
+ preDotState = -1;
6401
+ }
6402
+ }
6403
+ if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
6404
+ preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
6405
+ preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
6406
+ return "";
6407
+ }
6408
+ return path.slice(startDot, end);
6409
+ },
6410
+ format: function format(pathObject) {
6411
+ if (pathObject === null || typeof pathObject !== "object") {
6412
+ throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof pathObject);
6413
+ }
6414
+ return _format("/", pathObject);
6415
+ },
6416
+ parse: function parse(path) {
6417
+ assertPath(path);
6418
+ var ret = { root: "", dir: "", base: "", ext: "", name: "" };
6419
+ if (path.length === 0) return ret;
6420
+ var code2 = path.charCodeAt(0);
6421
+ var isAbsolute = code2 === 47;
6422
+ var start;
6423
+ if (isAbsolute) {
6424
+ ret.root = "/";
6425
+ start = 1;
6426
+ } else {
6427
+ start = 0;
6428
+ }
6429
+ var startDot = -1;
6430
+ var startPart = 0;
6431
+ var end = -1;
6432
+ var matchedSlash = true;
6433
+ var i = path.length - 1;
6434
+ var preDotState = 0;
6435
+ for (; i >= start; --i) {
6436
+ code2 = path.charCodeAt(i);
6437
+ if (code2 === 47) {
6438
+ if (!matchedSlash) {
6439
+ startPart = i + 1;
6440
+ break;
6441
+ }
6442
+ continue;
6443
+ }
6444
+ if (end === -1) {
6445
+ matchedSlash = false;
6446
+ end = i + 1;
6447
+ }
6448
+ if (code2 === 46) {
6449
+ if (startDot === -1) startDot = i;
6450
+ else if (preDotState !== 1) preDotState = 1;
6451
+ } else if (startDot !== -1) {
6452
+ preDotState = -1;
6453
+ }
6454
+ }
6455
+ if (startDot === -1 || end === -1 || // We saw a non-dot character immediately before the dot
6456
+ preDotState === 0 || // The (right-most) trimmed path component is exactly '..'
6457
+ preDotState === 1 && startDot === end - 1 && startDot === startPart + 1) {
6458
+ if (end !== -1) {
6459
+ if (startPart === 0 && isAbsolute) ret.base = ret.name = path.slice(1, end);
6460
+ else ret.base = ret.name = path.slice(startPart, end);
6461
+ }
6462
+ } else {
6463
+ if (startPart === 0 && isAbsolute) {
6464
+ ret.name = path.slice(1, startDot);
6465
+ ret.base = path.slice(1, end);
6466
+ } else {
6467
+ ret.name = path.slice(startPart, startDot);
6468
+ ret.base = path.slice(startPart, end);
6469
+ }
6470
+ ret.ext = path.slice(startDot, end);
6471
+ }
6472
+ if (startPart > 0) ret.dir = path.slice(0, startPart - 1);
6473
+ else if (isAbsolute) ret.dir = "/";
6474
+ return ret;
6475
+ },
6476
+ sep: "/",
6477
+ delimiter: ":",
6478
+ win32: null,
6479
+ posix: null
6480
+ };
6481
+ posix.posix = posix;
6482
+ pathBrowserify = posix;
6483
+ return pathBrowserify;
6484
+ }
4143
6485
  var hasRequiredTypescript;
4144
6486
  function requireTypescript() {
4145
6487
  if (hasRequiredTypescript) return typescript.exports;
@@ -6036,7 +8378,7 @@ function requireTypescript() {
6036
8378
  nodePosToString: () => nodePosToString,
6037
8379
  nodeSeenTracker: () => nodeSeenTracker,
6038
8380
  nodeStartsNewLexicalEnvironment: () => nodeStartsNewLexicalEnvironment,
6039
- noop: () => noop,
8381
+ noop: () => noop2,
6040
8382
  noopFileWatcher: () => noopFileWatcher,
6041
8383
  normalizePath: () => normalizePath,
6042
8384
  normalizeSlashes: () => normalizeSlashes,
@@ -7487,7 +9829,7 @@ function requireTypescript() {
7487
9829
  if (value !== void 0 && test(value)) return value;
7488
9830
  return Debug.fail(`Invalid cast. The supplied value ${value} did not pass the test '${Debug.getFunctionName(test)}'.`);
7489
9831
  }
7490
- function noop(_) {
9832
+ function noop2(_) {
7491
9833
  }
7492
9834
  function returnFalse() {
7493
9835
  return false;
@@ -7822,7 +10164,7 @@ function requireTypescript() {
7822
10164
  return t === void 0 ? void 0 : [t];
7823
10165
  }
7824
10166
  function enumerateInsertsAndDeletes(newItems, oldItems, comparer, inserted, deleted, unchanged) {
7825
- unchanged ?? (unchanged = noop);
10167
+ unchanged ?? (unchanged = noop2);
7826
10168
  let newIndex = 0;
7827
10169
  let oldIndex = 0;
7828
10170
  const newLen = newItems.length;
@@ -7904,7 +10246,7 @@ function requireTypescript() {
7904
10246
  }
7905
10247
  }
7906
10248
  function isNodeLikeSystem() {
7907
- return typeof process !== "undefined" && !!process.nextTick && !process.browser && typeof commonjsRequire !== "undefined";
10249
+ return typeof process$1 !== "undefined" && !!process$1.nextTick && !process$1.browser && typeof commonjsRequire !== "undefined";
7908
10250
  }
7909
10251
  var LogLevel = /* @__PURE__ */ ((LogLevel3) => {
7910
10252
  LogLevel3[LogLevel3["Off"] = 0] = "Off";
@@ -7976,7 +10318,7 @@ function requireTypescript() {
7976
10318
  function shouldAssertFunction(level, name) {
7977
10319
  if (!shouldAssert(level)) {
7978
10320
  assertionCache[name] = { level, assertion: Debug2[name] };
7979
- Debug2[name] = noop;
10321
+ Debug2[name] = noop2;
7980
10322
  return false;
7981
10323
  }
7982
10324
  return true;
@@ -9294,7 +11636,7 @@ ${lanes.join("\n")}
9294
11636
  }
9295
11637
  }
9296
11638
  }
9297
- var nullTimer = { enter: noop, exit: noop };
11639
+ var nullTimer = { enter: noop2, exit: noop2 };
9298
11640
  var enabled = false;
9299
11641
  var timeorigin = timestamp();
9300
11642
  var marks = /* @__PURE__ */ new Map();
@@ -9387,7 +11729,7 @@ ${lanes.join("\n")}
9387
11729
  Debug.assert(!tracing, "Tracing already started");
9388
11730
  if (fs === void 0) {
9389
11731
  try {
9390
- fs = require$$6;
11732
+ fs = require$$1;
9391
11733
  } catch (e) {
9392
11734
  throw new Error(`tracing requires having fs
9393
11735
  (original error: ${e.message || e})`);
@@ -9401,7 +11743,7 @@ ${lanes.join("\n")}
9401
11743
  if (!fs.existsSync(traceDir)) {
9402
11744
  fs.mkdirSync(traceDir, { recursive: true });
9403
11745
  }
9404
- const countPart = mode === "build" ? `.${process.pid}-${++traceCount}` : mode === "server" ? `.${process.pid}` : ``;
11746
+ const countPart = mode === "build" ? `.${process$1.pid}-${++traceCount}` : mode === "server" ? `.${process$1.pid}` : ``;
9405
11747
  const tracePath = combinePaths(traceDir, `trace${countPart}.json`);
9406
11748
  const typesPath = combinePaths(traceDir, `types${countPart}.json`);
9407
11749
  legend.push({
@@ -12053,7 +14395,7 @@ ${lanes.join("\n")}
12053
14395
  return oldTime === 0 ? 0 : newTime === 0 ? 2 : 1;
12054
14396
  }
12055
14397
  var ignoredPaths = ["/node_modules/.", "/.git", "/.#"];
12056
- var curSysLog = noop;
14398
+ var curSysLog = noop2;
12057
14399
  function sysLog(s) {
12058
14400
  return curSysLog(s);
12059
14401
  }
@@ -12683,8 +15025,8 @@ ${lanes.join("\n")}
12683
15025
  const byteOrderMarkIndicator = "\uFEFF";
12684
15026
  function getNodeSystem() {
12685
15027
  const nativePattern = /^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/;
12686
- const _fs = require$$6;
12687
- const _path = require$$6;
15028
+ const _fs = require$$1;
15029
+ const _path = requirePathBrowserify();
12688
15030
  const _os = require$$6;
12689
15031
  let _crypto;
12690
15032
  try {
@@ -12694,15 +15036,15 @@ ${lanes.join("\n")}
12694
15036
  }
12695
15037
  let activeSession;
12696
15038
  let profilePath = "./profile.cpuprofile";
12697
- const isMacOs = process.platform === "darwin";
12698
- const isLinuxOrMacOs = process.platform === "linux" || isMacOs;
15039
+ const isMacOs = process$1.platform === "darwin";
15040
+ const isLinuxOrMacOs = process$1.platform === "linux" || isMacOs;
12699
15041
  const statSyncOptions = { throwIfNoEntry: false };
12700
15042
  const platform = _os.platform();
12701
15043
  const useCaseSensitiveFileNames2 = isFileSystemCaseSensitive();
12702
- const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
15044
+ const fsRealpath = !!_fs.realpathSync.native ? process$1.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
12703
15045
  const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
12704
- const fsSupportsRecursiveFsWatch = process.platform === "win32" || isMacOs;
12705
- const getCurrentDirectory = memoize(() => process.cwd());
15046
+ const fsSupportsRecursiveFsWatch = process$1.platform === "win32" || isMacOs;
15047
+ const getCurrentDirectory = memoize(() => process$1.cwd());
12706
15048
  const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({
12707
15049
  pollingWatchFileWorker: fsWatchFileWorker,
12708
15050
  getModifiedTime: getModifiedTime3,
@@ -12725,17 +15067,17 @@ ${lanes.join("\n")}
12725
15067
  sysLog
12726
15068
  });
12727
15069
  const nodeSystem = {
12728
- args: process.argv.slice(2),
15070
+ args: process$1.argv.slice(2),
12729
15071
  newLine: _os.EOL,
12730
15072
  useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
12731
15073
  write(s) {
12732
- process.stdout.write(s);
15074
+ process$1.stdout.write(s);
12733
15075
  },
12734
15076
  getWidthOfTerminal() {
12735
- return process.stdout.columns;
15077
+ return process$1.stdout.columns;
12736
15078
  },
12737
15079
  writeOutputIsTTY() {
12738
- return process.stdout.isTTY;
15080
+ return process$1.stdout.isTTY;
12739
15081
  },
12740
15082
  readFile,
12741
15083
  writeFile: writeFile2,
@@ -12775,7 +15117,7 @@ ${lanes.join("\n")}
12775
15117
  if (commonjsGlobal.gc) {
12776
15118
  commonjsGlobal.gc();
12777
15119
  }
12778
- return process.memoryUsage().heapUsed;
15120
+ return process$1.memoryUsage().heapUsed;
12779
15121
  },
12780
15122
  getFileSize(path) {
12781
15123
  const stat = statSync(path);
@@ -12785,13 +15127,13 @@ ${lanes.join("\n")}
12785
15127
  return 0;
12786
15128
  },
12787
15129
  exit(exitCode) {
12788
- disableCPUProfiler(() => process.exit(exitCode));
15130
+ disableCPUProfiler(() => process$1.exit(exitCode));
12789
15131
  },
12790
15132
  enableCPUProfiler,
12791
15133
  disableCPUProfiler,
12792
- cpuProfilingEnabled: () => !!activeSession || contains(process.execArgv, "--cpu-prof") || contains(process.execArgv, "--prof"),
15134
+ cpuProfilingEnabled: () => !!activeSession || contains(process$1.execArgv, "--cpu-prof") || contains(process$1.execArgv, "--prof"),
12793
15135
  realpath,
12794
- debugMode: !!define_process_env_default2.NODE_INSPECTOR_IPC || !!define_process_env_default2.VSCODE_INSPECTOR_OPTIONS || some(process.execArgv, (arg) => /^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(arg)) || !!process.recordreplay,
15136
+ debugMode: !!define_process_env_default2.NODE_INSPECTOR_IPC || !!define_process_env_default2.VSCODE_INSPECTOR_OPTIONS || some(process$1.execArgv, (arg) => /^--(?:inspect|debug)(?:-brk)?(?:=\d+)?$/i.test(arg)) || !!process$1.recordreplay,
12795
15137
  tryEnableSourceMapsForHost() {
12796
15138
  try {
12797
15139
  require$$6.install();
@@ -12801,11 +15143,11 @@ ${lanes.join("\n")}
12801
15143
  setTimeout,
12802
15144
  clearTimeout,
12803
15145
  clearScreen: () => {
12804
- process.stdout.write("\x1B[2J\x1B[3J\x1B[H");
15146
+ process$1.stdout.write("\x1B[2J\x1B[3J\x1B[H");
12805
15147
  },
12806
15148
  setBlocking: () => {
12807
15149
  var _a;
12808
- const handle = (_a = process.stdout) == null ? void 0 : _a._handle;
15150
+ const handle = (_a = process$1.stdout) == null ? void 0 : _a._handle;
12809
15151
  if (handle && handle.setBlocking) {
12810
15152
  handle.setBlocking(true);
12811
15153
  }
@@ -12882,7 +15224,7 @@ ${lanes.join("\n")}
12882
15224
  var _a;
12883
15225
  if (!err) {
12884
15226
  if ((_a = statSync(profilePath)) == null ? void 0 : _a.isDirectory()) {
12885
- profilePath = _path.join(profilePath, `${(/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-")}+P${process.pid}.cpuprofile`);
15227
+ profilePath = _path.join(profilePath, `${(/* @__PURE__ */ new Date()).toISOString().replace(/:/g, "-")}+P${process$1.pid}.cpuprofile`);
12886
15228
  }
12887
15229
  try {
12888
15230
  _fs.mkdirSync(_path.dirname(profilePath), { recursive: true });
@@ -12944,29 +15286,29 @@ ${lanes.join("\n")}
12944
15286
  );
12945
15287
  }
12946
15288
  function readFile(fileName, _encoding) {
12947
- let buffer;
15289
+ let buffer2;
12948
15290
  try {
12949
- buffer = _fs.readFileSync(fileName);
15291
+ buffer2 = _fs.readFileSync(fileName);
12950
15292
  } catch {
12951
15293
  return void 0;
12952
15294
  }
12953
- let len = buffer.length;
12954
- if (len >= 2 && buffer[0] === 254 && buffer[1] === 255) {
15295
+ let len = buffer2.length;
15296
+ if (len >= 2 && buffer2[0] === 254 && buffer2[1] === 255) {
12955
15297
  len &= -2;
12956
15298
  for (let i = 0; i < len; i += 2) {
12957
- const temp = buffer[i];
12958
- buffer[i] = buffer[i + 1];
12959
- buffer[i + 1] = temp;
15299
+ const temp = buffer2[i];
15300
+ buffer2[i] = buffer2[i + 1];
15301
+ buffer2[i + 1] = temp;
12960
15302
  }
12961
- return buffer.toString("utf16le", 2);
15303
+ return buffer2.toString("utf16le", 2);
12962
15304
  }
12963
- if (len >= 2 && buffer[0] === 255 && buffer[1] === 254) {
12964
- return buffer.toString("utf16le", 2);
15305
+ if (len >= 2 && buffer2[0] === 255 && buffer2[1] === 254) {
15306
+ return buffer2.toString("utf16le", 2);
12965
15307
  }
12966
- if (len >= 3 && buffer[0] === 239 && buffer[1] === 187 && buffer[2] === 191) {
12967
- return buffer.toString("utf8", 3);
15308
+ if (len >= 3 && buffer2[0] === 239 && buffer2[1] === 187 && buffer2[2] === 191) {
15309
+ return buffer2.toString("utf8", 3);
12968
15310
  }
12969
- return buffer.toString("utf8");
15311
+ return buffer2.toString("utf8");
12970
15312
  }
12971
15313
  function writeFile2(fileName, data, writeByteOrderMark) {
12972
15314
  if (writeByteOrderMark) {
@@ -13022,7 +15364,7 @@ ${lanes.join("\n")}
13022
15364
  }
13023
15365
  }
13024
15366
  function readDirectory(path, extensions, excludes, includes, depth) {
13025
- return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, process.cwd(), depth, getAccessibleFileSystemEntries, realpath);
15367
+ return matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames2, process$1.cwd(), depth, getAccessibleFileSystemEntries, realpath);
13026
15368
  }
13027
15369
  function fileSystemEntryExists(path, entryKind) {
13028
15370
  const stat = statSync(path);
@@ -13587,8 +15929,8 @@ ${lanes.join("\n")}
13587
15929
  function isNodeModulesDirectory(dirPath) {
13588
15930
  return endsWith(dirPath, "/node_modules");
13589
15931
  }
13590
- function diag(code, category, key, message, reportsUnnecessary, elidedInCompatabilityPyramid, reportsDeprecated) {
13591
- return { code, category, key, message, reportsUnnecessary, elidedInCompatabilityPyramid, reportsDeprecated };
15932
+ function diag(code2, category, key, message, reportsUnnecessary, elidedInCompatabilityPyramid, reportsDeprecated) {
15933
+ return { code: code2, category, key, message, reportsUnnecessary, elidedInCompatabilityPyramid, reportsDeprecated };
13592
15934
  }
13593
15935
  var Diagnostics = {
13594
15936
  Unterminated_string_literal: diag(1002, 1, "Unterminated_string_literal_1002", "Unterminated string literal."),
@@ -16041,8 +18383,8 @@ ${lanes.join("\n")}
16041
18383
  var commentDirectiveRegExSingleLine = /^\/\/\/?\s*@(ts-expect-error|ts-ignore)/;
16042
18384
  var commentDirectiveRegExMultiLine = /^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;
16043
18385
  var jsDocSeeOrLink = /@(?:see|link)/i;
16044
- function lookupInUnicodeMap(code, map2) {
16045
- if (code < map2[0]) {
18386
+ function lookupInUnicodeMap(code2, map2) {
18387
+ if (code2 < map2[0]) {
16046
18388
  return false;
16047
18389
  }
16048
18390
  let lo = 0;
@@ -16051,10 +18393,10 @@ ${lanes.join("\n")}
16051
18393
  while (lo + 1 < hi) {
16052
18394
  mid = lo + (hi - lo) / 2;
16053
18395
  mid -= mid % 2;
16054
- if (map2[mid] <= code && code <= map2[mid + 1]) {
18396
+ if (map2[mid] <= code2 && code2 <= map2[mid + 1]) {
16055
18397
  return true;
16056
18398
  }
16057
- if (code < map2[mid]) {
18399
+ if (code2 < map2[mid]) {
16058
18400
  hi = mid;
16059
18401
  } else {
16060
18402
  lo = mid + 2;
@@ -16062,11 +18404,11 @@ ${lanes.join("\n")}
16062
18404
  }
16063
18405
  return false;
16064
18406
  }
16065
- function isUnicodeIdentifierStart(code, languageVersion) {
16066
- return languageVersion >= 2 ? lookupInUnicodeMap(code, unicodeESNextIdentifierStart) : lookupInUnicodeMap(code, unicodeES5IdentifierStart);
18407
+ function isUnicodeIdentifierStart(code2, languageVersion) {
18408
+ return languageVersion >= 2 ? lookupInUnicodeMap(code2, unicodeESNextIdentifierStart) : lookupInUnicodeMap(code2, unicodeES5IdentifierStart);
16067
18409
  }
16068
- function isUnicodeIdentifierPart(code, languageVersion) {
16069
- return languageVersion >= 2 ? lookupInUnicodeMap(code, unicodeESNextIdentifierPart) : lookupInUnicodeMap(code, unicodeES5IdentifierPart);
18410
+ function isUnicodeIdentifierPart(code2, languageVersion) {
18411
+ return languageVersion >= 2 ? lookupInUnicodeMap(code2, unicodeESNextIdentifierPart) : lookupInUnicodeMap(code2, unicodeES5IdentifierPart);
16070
18412
  }
16071
18413
  function makeReverseMap(source) {
16072
18414
  const result = [];
@@ -16967,13 +19309,13 @@ ${lanes.join("\n")}
16967
19309
  }
16968
19310
  tokenFlags |= 2048;
16969
19311
  if (flags & 6) {
16970
- const code = parseInt(text.substring(start2 + 1, pos), 8);
19312
+ const code2 = parseInt(text.substring(start2 + 1, pos), 8);
16971
19313
  if (flags & 4 && !(flags & 32) && ch !== 48) {
16972
- error2(Diagnostics.Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead, start2, pos - start2, "\\x" + code.toString(16).padStart(2, "0"));
19314
+ error2(Diagnostics.Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead, start2, pos - start2, "\\x" + code2.toString(16).padStart(2, "0"));
16973
19315
  } else {
16974
- error2(Diagnostics.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0, start2, pos - start2, "\\x" + code.toString(16).padStart(2, "0"));
19316
+ error2(Diagnostics.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0, start2, pos - start2, "\\x" + code2.toString(16).padStart(2, "0"));
16975
19317
  }
16976
- return String.fromCharCode(code);
19318
+ return String.fromCharCode(code2);
16977
19319
  }
16978
19320
  return text.substring(start2, pos);
16979
19321
  case 56:
@@ -20828,8 +23170,8 @@ ${lanes.join("\n")}
20828
23170
  // Completely ignore indentation for string writers. And map newlines to
20829
23171
  // a single space.
20830
23172
  writeLine: () => str += " ",
20831
- increaseIndent: noop,
20832
- decreaseIndent: noop,
23173
+ increaseIndent: noop2,
23174
+ decreaseIndent: noop2,
20833
23175
  clear: () => str = ""
20834
23176
  };
20835
23177
  }
@@ -24535,11 +26877,11 @@ ${lanes.join("\n")}
24535
26877
  let hasReadNonFileDiagnostics = false;
24536
26878
  return {
24537
26879
  add,
24538
- lookup,
26880
+ lookup: lookup2,
24539
26881
  getGlobalDiagnostics,
24540
26882
  getDiagnostics: getDiagnostics22
24541
26883
  };
24542
- function lookup(diagnostic) {
26884
+ function lookup2(diagnostic) {
24543
26885
  let diagnostics;
24544
26886
  if (diagnostic.file) {
24545
26887
  diagnostics = fileDiagnostics.get(diagnostic.file.fileName);
@@ -28310,7 +30652,7 @@ ${lanes.join("\n")}
28310
30652
  error: error2,
28311
30653
  getSymbolOfDeclaration,
28312
30654
  globals,
28313
- lookup,
30655
+ lookup: lookup2,
28314
30656
  setRequiresScopeChangeCache = returnUndefined,
28315
30657
  getRequiresScopeChangeCache = returnUndefined,
28316
30658
  onPropertyWithInvalidInitializer = returnFalse,
@@ -28342,7 +30684,7 @@ ${lanes.join("\n")}
28342
30684
  location = location.parent;
28343
30685
  }
28344
30686
  if (canHaveLocals(location) && location.locals && !isGlobalSourceFile(location)) {
28345
- if (result = lookup(location.locals, name, meaning)) {
30687
+ if (result = lookup2(location.locals, name, meaning)) {
28346
30688
  let useResult = true;
28347
30689
  if (isFunctionLike(location) && lastLocation && lastLocation !== location.body) {
28348
30690
  if (meaning & result.flags & 788968 && lastLocation.kind !== 320) {
@@ -28398,7 +30740,7 @@ ${lanes.join("\n")}
28398
30740
  break;
28399
30741
  }
28400
30742
  }
28401
- if (name !== "default" && (result = lookup(
30743
+ if (name !== "default" && (result = lookup2(
28402
30744
  moduleExports,
28403
30745
  name,
28404
30746
  meaning & 2623475
@@ -28412,7 +30754,7 @@ ${lanes.join("\n")}
28412
30754
  }
28413
30755
  break;
28414
30756
  case 266:
28415
- if (result = lookup(
30757
+ if (result = lookup2(
28416
30758
  ((_c = getSymbolOfDeclaration(location)) == null ? void 0 : _c.exports) || emptySymbols,
28417
30759
  name,
28418
30760
  meaning & 8
@@ -28434,7 +30776,7 @@ ${lanes.join("\n")}
28434
30776
  if (!isStatic(location)) {
28435
30777
  const ctor = findConstructorDeclaration(location.parent);
28436
30778
  if (ctor && ctor.locals) {
28437
- if (lookup(
30779
+ if (lookup2(
28438
30780
  ctor.locals,
28439
30781
  name,
28440
30782
  meaning & 111551
@@ -28449,7 +30791,7 @@ ${lanes.join("\n")}
28449
30791
  case 263:
28450
30792
  case 231:
28451
30793
  case 264:
28452
- if (result = lookup(
30794
+ if (result = lookup2(
28453
30795
  getSymbolOfDeclaration(location).members || emptySymbols,
28454
30796
  name,
28455
30797
  meaning & 788968
@@ -28478,7 +30820,7 @@ ${lanes.join("\n")}
28478
30820
  case 233:
28479
30821
  if (lastLocation === location.expression && location.parent.token === 96) {
28480
30822
  const container = location.parent.parent;
28481
- if (isClassLike(container) && (result = lookup(
30823
+ if (isClassLike(container) && (result = lookup2(
28482
30824
  getSymbolOfDeclaration(container).members,
28483
30825
  name,
28484
30826
  meaning & 788968
@@ -28502,7 +30844,7 @@ ${lanes.join("\n")}
28502
30844
  case 167:
28503
30845
  grandparent = location.parent.parent;
28504
30846
  if (isClassLike(grandparent) || grandparent.kind === 264) {
28505
- if (result = lookup(
30847
+ if (result = lookup2(
28506
30848
  getSymbolOfDeclaration(grandparent).members,
28507
30849
  name,
28508
30850
  meaning & 788968
@@ -28606,7 +30948,7 @@ ${lanes.join("\n")}
28606
30948
  }
28607
30949
  }
28608
30950
  if (!excludeGlobals) {
28609
- result = lookup(globals, name, meaning);
30951
+ result = lookup2(globals, name, meaning);
28610
30952
  }
28611
30953
  }
28612
30954
  if (!result) {
@@ -39112,7 +41454,7 @@ ${lanes.join("\n")}
39112
41454
  void 0,
39113
41455
  setParentNodes,
39114
41456
  6,
39115
- noop,
41457
+ noop2,
39116
41458
  jsDocParsingMode
39117
41459
  );
39118
41460
  } else {
@@ -39391,7 +41733,7 @@ ${lanes.join("\n")}
39391
41733
  statements,
39392
41734
  endOfFileToken,
39393
41735
  sourceFlags,
39394
- noop
41736
+ noop2
39395
41737
  );
39396
41738
  if (setParentNodes) {
39397
41739
  fixupParentReferences(sourceFile);
@@ -45887,7 +48229,7 @@ ${lanes.join("\n")}
45887
48229
  /* EndOfFileToken */
45888
48230
  ),
45889
48231
  0,
45890
- noop
48232
+ noop2
45891
48233
  );
45892
48234
  const diagnostics = attachFileToDiagnostics(parseDiagnostics, sourceFile);
45893
48235
  if (jsDocDiagnostics) {
@@ -52287,7 +54629,7 @@ ${lanes.join("\n")}
52287
54629
  const diagnosticState = {
52288
54630
  ...state,
52289
54631
  features: state.features & -9,
52290
- reportDiagnostic: noop
54632
+ reportDiagnostic: noop2
52291
54633
  };
52292
54634
  const diagnosticResult = tryResolve(extensions & (1 | 4), diagnosticState);
52293
54635
  if ((_b = diagnosticResult == null ? void 0 : diagnosticResult.value) == null ? void 0 : _b.isExternalLibraryImport) {
@@ -52305,7 +54647,7 @@ ${lanes.join("\n")}
52305
54647
  compilerOptions: diagnosticsCompilerOptions,
52306
54648
  features: 30,
52307
54649
  conditions: getConditions(diagnosticsCompilerOptions),
52308
- reportDiagnostic: noop
54650
+ reportDiagnostic: noop2
52309
54651
  };
52310
54652
  const diagnosticResult = tryResolve(extensions & (1 | 4), diagnosticState);
52311
54653
  if ((_c = diagnosticResult == null ? void 0 : diagnosticResult.value) == null ? void 0 : _c.isExternalLibraryImport) {
@@ -52764,7 +55106,7 @@ ${lanes.join("\n")}
52764
55106
  features: 0,
52765
55107
  conditions: emptyArray,
52766
55108
  requestContainingDirectory: void 0,
52767
- reportDiagnostic: noop,
55109
+ reportDiagnostic: noop2,
52768
55110
  isConfigLookup: false,
52769
55111
  candidateIsFromPackageJsonField: false,
52770
55112
  resolvedPackageDirectory: false
@@ -53426,14 +55768,14 @@ ${lanes.join("\n")}
53426
55768
  const secondaryExtensions = extensions & -6;
53427
55769
  if (priorityExtensions) {
53428
55770
  traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0, formatExtensions(priorityExtensions));
53429
- const result = lookup(priorityExtensions);
55771
+ const result = lookup2(priorityExtensions);
53430
55772
  if (result) return result;
53431
55773
  }
53432
55774
  if (secondaryExtensions && !typesScopeOnly) {
53433
55775
  traceIfEnabled(state, Diagnostics.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0, formatExtensions(secondaryExtensions));
53434
- return lookup(secondaryExtensions);
55776
+ return lookup2(secondaryExtensions);
53435
55777
  }
53436
- function lookup(extensions2) {
55778
+ function lookup2(extensions2) {
53437
55779
  return forEachAncestorDirectoryStoppingAtGlobalCache(
53438
55780
  state.host,
53439
55781
  normalizeSlashes(directory),
@@ -81534,9 +83876,9 @@ ${lanes.join("\n")}
81534
83876
  } else if (source.flags & 4194304 && target.flags & 4194304) {
81535
83877
  inferFromContravariantTypes(source.type, target.type);
81536
83878
  } else if ((isLiteralType(source) || source.flags & 4) && target.flags & 4194304) {
81537
- const empty = createEmptyObjectTypeFromStringLiteral(source);
83879
+ const empty2 = createEmptyObjectTypeFromStringLiteral(source);
81538
83880
  inferFromContravariantTypesWithPriority(
81539
- empty,
83881
+ empty2,
81540
83882
  target.type,
81541
83883
  256
81542
83884
  /* LiteralKeyof */
@@ -125269,7 +127611,7 @@ ${lanes.join("\n")}
125269
127611
  /* Endfinally */
125270
127612
  );
125271
127613
  }
125272
- function emitWorker(code, args, location) {
127614
+ function emitWorker(code2, args, location) {
125273
127615
  if (operations === void 0) {
125274
127616
  operations = [];
125275
127617
  operationArguments = [];
@@ -125279,7 +127621,7 @@ ${lanes.join("\n")}
125279
127621
  markLabel(defineLabel());
125280
127622
  }
125281
127623
  const operationIndex = operations.length;
125282
- operations[operationIndex] = code;
127624
+ operations[operationIndex] = code2;
125283
127625
  operationArguments[operationIndex] = args;
125284
127626
  operationLocations[operationIndex] = location;
125285
127627
  }
@@ -132292,27 +134634,27 @@ ${lanes.join("\n")}
132292
134634
  getEmitResolver: notImplemented2,
132293
134635
  getEmitHost: notImplemented2,
132294
134636
  getEmitHelperFactory: notImplemented2,
132295
- startLexicalEnvironment: noop,
132296
- resumeLexicalEnvironment: noop,
132297
- suspendLexicalEnvironment: noop,
134637
+ startLexicalEnvironment: noop2,
134638
+ resumeLexicalEnvironment: noop2,
134639
+ suspendLexicalEnvironment: noop2,
132298
134640
  endLexicalEnvironment: returnUndefined,
132299
- setLexicalEnvironmentFlags: noop,
134641
+ setLexicalEnvironmentFlags: noop2,
132300
134642
  getLexicalEnvironmentFlags: () => 0,
132301
- hoistVariableDeclaration: noop,
132302
- hoistFunctionDeclaration: noop,
132303
- addInitializationStatement: noop,
132304
- startBlockScope: noop,
134643
+ hoistVariableDeclaration: noop2,
134644
+ hoistFunctionDeclaration: noop2,
134645
+ addInitializationStatement: noop2,
134646
+ startBlockScope: noop2,
132305
134647
  endBlockScope: returnUndefined,
132306
- addBlockScopedVariable: noop,
132307
- requestEmitHelper: noop,
134648
+ addBlockScopedVariable: noop2,
134649
+ requestEmitHelper: noop2,
132308
134650
  readEmitHelpers: notImplemented2,
132309
- enableSubstitution: noop,
132310
- enableEmitNotification: noop,
134651
+ enableSubstitution: noop2,
134652
+ enableEmitNotification: noop2,
132311
134653
  isSubstitutionEnabled: notImplemented2,
132312
134654
  isEmitNotificationEnabled: notImplemented2,
132313
134655
  onSubstituteNode: noEmitSubstitution,
132314
134656
  onEmitNode: noEmitNotification,
132315
- addDiagnostic: noop
134657
+ addDiagnostic: noop2
132316
134658
  };
132317
134659
  var brackets = createBracketsMap();
132318
134660
  function isBuildInfoFile(file) {
@@ -138078,7 +140420,7 @@ ${lanes.join("\n")}
138078
140420
  return WatchLogLevel2;
138079
140421
  })(WatchLogLevel || {});
138080
140422
  function getWatchFactory(host, watchLogLevel, log, getDetailWatchInfo2) {
138081
- setSysLog(watchLogLevel === 2 ? log : noop);
140423
+ setSysLog(watchLogLevel === 2 ? log : noop2);
138082
140424
  const plainInvokeFactory = {
138083
140425
  watchFile: (file, callback, pollingInterval, options) => host.watchFile(file, callback, pollingInterval, options),
138084
140426
  watchDirectory: (directory, callback, flags, options) => host.watchDirectory(directory, callback, (flags & 1) !== 0, options)
@@ -140435,7 +142777,7 @@ ${lanes.join("\n")}
140435
142777
  function getDeclarationDiagnosticsForFileNoCache(sourceFile, cancellationToken) {
140436
142778
  return runWithCancellationToken(() => {
140437
142779
  const resolver = getTypeChecker().getEmitResolver(sourceFile, cancellationToken);
140438
- return getDeclarationDiagnostics(getEmitHost(noop), resolver, sourceFile) || emptyArray;
142780
+ return getDeclarationDiagnostics(getEmitHost(noop2), resolver, sourceFile) || emptyArray;
140439
142781
  });
140440
142782
  }
140441
142783
  function getDeclarationDiagnosticsForFile(sourceFile, cancellationToken) {
@@ -141902,7 +144244,7 @@ ${lanes.join("\n")}
141902
144244
  const originalDirectoryExists = host.compilerHost.directoryExists;
141903
144245
  const originalGetDirectories = host.compilerHost.getDirectories;
141904
144246
  const originalRealpath = host.compilerHost.realpath;
141905
- if (!host.useSourceOfProjectReferenceRedirect) return { onProgramCreateComplete: noop, fileExists };
144247
+ if (!host.useSourceOfProjectReferenceRedirect) return { onProgramCreateComplete: noop2, fileExists };
141906
144248
  host.compilerHost.fileExists = fileExists;
141907
144249
  let directoryExists;
141908
144250
  if (originalDirectoryExists) {
@@ -144228,7 +146570,7 @@ ${lanes.join("\n")}
144228
146570
  state,
144229
146571
  getProgram: notImplemented2,
144230
146572
  getProgramOrUndefined: returnUndefined,
144231
- releaseProgram: noop,
146573
+ releaseProgram: noop2,
144232
146574
  getCompilerOptions: () => state.compilerOptions,
144233
146575
  getSourceFile: notImplemented2,
144234
146576
  getSourceFiles: notImplemented2,
@@ -144244,7 +146586,7 @@ ${lanes.join("\n")}
144244
146586
  emitNextAffectedFile: notImplemented2,
144245
146587
  getSemanticDiagnosticsOfNextAffectedFile: notImplemented2,
144246
146588
  emitBuildInfo: notImplemented2,
144247
- close: noop,
146589
+ close: noop2,
144248
146590
  hasChangedEmitSignature: returnFalse
144249
146591
  };
144250
146592
  function toPathInBuildInfoDirectory(path) {
@@ -144342,7 +146684,7 @@ ${lanes.join("\n")}
144342
146684
  emitBuildInfo: (writeFile2, cancellationToken) => getProgram().emitBuildInfo(writeFile2, cancellationToken),
144343
146685
  getAllDependencies: notImplemented2,
144344
146686
  getCurrentDirectory: () => getProgram().getCurrentDirectory(),
144345
- close: noop
146687
+ close: noop2
144346
146688
  };
144347
146689
  function getProgram() {
144348
146690
  return Debug.checkDefined(state.program);
@@ -145960,7 +148302,7 @@ ${lanes.join("\n")}
145960
148302
  }
145961
148303
  return 0;
145962
148304
  }
145963
- var noopFileWatcher = { close: noop };
148305
+ var noopFileWatcher = { close: noop2 };
145964
148306
  var returnNoopFileWatcher = () => noopFileWatcher;
145965
148307
  function createWatchHost(system = sys, reportWatchStatus2) {
145966
148308
  const onWatchStatusChange = reportWatchStatus2 || createWatchStatusReporter(system);
@@ -145968,8 +148310,8 @@ ${lanes.join("\n")}
145968
148310
  onWatchStatusChange,
145969
148311
  watchFile: maybeBind(system, system.watchFile) || returnNoopFileWatcher,
145970
148312
  watchDirectory: maybeBind(system, system.watchDirectory) || returnNoopFileWatcher,
145971
- setTimeout: maybeBind(system, system.setTimeout) || noop,
145972
- clearTimeout: maybeBind(system, system.clearTimeout) || noop,
148313
+ setTimeout: maybeBind(system, system.setTimeout) || noop2,
148314
+ clearTimeout: maybeBind(system, system.clearTimeout) || noop2,
145973
148315
  preferNonRecursiveWatch: system.preferNonRecursiveWatch
145974
148316
  };
145975
148317
  }
@@ -145998,7 +148340,7 @@ ${lanes.join("\n")}
145998
148340
  };
145999
148341
  function createWatchFactory(host, options) {
146000
148342
  const watchLogLevel = host.trace ? options.extendedDiagnostics ? 2 : options.diagnostics ? 1 : 0 : 0;
146001
- const writeLog = watchLogLevel !== 0 ? (s) => host.trace(s) : noop;
148343
+ const writeLog = watchLogLevel !== 0 ? (s) => host.trace(s) : noop2;
146002
148344
  const result = getWatchFactory(host, watchLogLevel, writeLog);
146003
148345
  result.writeLog = writeLog;
146004
148346
  return result;
@@ -146721,7 +149063,7 @@ ${lanes.join("\n")}
146721
149063
  }
146722
149064
  function getParsedCommandLineFromConfigFileHost(configFileName2) {
146723
149065
  const onUnRecoverableConfigFileDiagnostic = parseConfigFileHost.onUnRecoverableConfigFileDiagnostic;
146724
- parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = noop;
149066
+ parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = noop2;
146725
149067
  const parsedCommandLine = getParsedCommandLineOfConfigFile(
146726
149068
  configFileName2,
146727
149069
  /*optionsToExtend*/
@@ -146978,8 +149320,8 @@ ${lanes.join("\n")}
146978
149320
  function createSolutionBuilderHostBase(system, createProgram2, reportDiagnostic, reportSolutionBuilderStatus) {
146979
149321
  const host = createProgramHost(system, createProgram2);
146980
149322
  host.getModifiedTime = system.getModifiedTime ? (path) => system.getModifiedTime(path) : returnUndefined;
146981
- host.setModifiedTime = system.setModifiedTime ? (path, date) => system.setModifiedTime(path, date) : noop;
146982
- host.deleteFile = system.deleteFile ? (path) => system.deleteFile(path) : noop;
149323
+ host.setModifiedTime = system.setModifiedTime ? (path, date) => system.setModifiedTime(path, date) : noop2;
149324
+ host.deleteFile = system.deleteFile ? (path) => system.deleteFile(path) : noop2;
146983
149325
  host.reportDiagnostic = reportDiagnostic || createDiagnosticReporter(system);
146984
149326
  host.reportSolutionBuilderStatus = reportSolutionBuilderStatus || createBuilderStatusReporter(system);
146985
149327
  host.now = maybeBind(system, system.now);
@@ -147179,7 +149521,7 @@ ${lanes.join("\n")}
147179
149521
  } else {
147180
149522
  parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = (d) => diagnostic = d;
147181
149523
  parsed = getParsedCommandLineOfConfigFile(configFileName, baseCompilerOptions, parseConfigFileHost, extendedConfigCache, baseWatchOptions);
147182
- parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = noop;
149524
+ parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = noop2;
147183
149525
  }
147184
149526
  configFileCache.set(configFilePath, parsed || diagnostic);
147185
149527
  mark("SolutionBuilder::afterConfigFileParsing");
@@ -147238,7 +149580,7 @@ ${lanes.join("\n")}
147238
149580
  (resolved) => toResolvedConfigFilePath(state, resolved)
147239
149581
  )
147240
149582
  );
147241
- const noopOnDelete = { onDeleteValue: noop };
149583
+ const noopOnDelete = { onDeleteValue: noop2 };
147242
149584
  mutateMapSkippingNewValues(state.configFileCache, currentProjects, noopOnDelete);
147243
149585
  mutateMapSkippingNewValues(state.projectStatus, currentProjects, noopOnDelete);
147244
149586
  mutateMapSkippingNewValues(state.builderPrograms, currentProjects, noopOnDelete);
@@ -157734,7 +160076,7 @@ ${lanes.join("\n")}
157734
160076
  processImports();
157735
160077
  }
157736
160078
  processCommentPragmas(pragmaContext, sourceText);
157737
- processPragmasIntoFields(pragmaContext, noop);
160079
+ processPragmasIntoFields(pragmaContext, noop2);
157738
160080
  if (externalModule) {
157739
160081
  if (ambientExternalModules) {
157740
160082
  for (const decl of ambientExternalModules) {
@@ -165736,7 +168078,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
165736
168078
  }
165737
168079
  var NoopCancellationToken = {
165738
168080
  isCancellationRequested: returnFalse,
165739
- throwIfCancellationRequested: noop
168081
+ throwIfCancellationRequested: noop2
165740
168082
  };
165741
168083
  var CancellationTokenObject = class {
165742
168084
  constructor(cancellationToken) {
@@ -165903,7 +168245,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
165903
168245
  useCaseSensitiveFileNames: () => useCaseSensitiveFileNames2,
165904
168246
  getNewLine: () => getNewLineCharacter(newSettings),
165905
168247
  getDefaultLibFileName: (options2) => host.getDefaultLibFileName(options2),
165906
- writeFile: noop,
168248
+ writeFile: noop2,
165907
168249
  getCurrentDirectory: () => currentDirectory,
165908
168250
  fileExists: (fileName) => host.fileExists(fileName),
165909
168251
  readFile: (fileName) => host.readFile && host.readFile(fileName),
@@ -165955,7 +168297,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
165955
168297
  readDirectory: (...args) => compilerHost.readDirectory(...args),
165956
168298
  trace: compilerHost.trace,
165957
168299
  getCurrentDirectory: compilerHost.getCurrentDirectory,
165958
- onUnRecoverableConfigFileDiagnostic: noop
168300
+ onUnRecoverableConfigFileDiagnostic: noop2
165959
168301
  };
165960
168302
  const documentRegistryBucketKey = documentRegistry.getKeyForCompilationSettings(newSettings);
165961
168303
  let releasedScriptKinds = /* @__PURE__ */ new Set();
@@ -168503,7 +170845,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
168503
170845
  return decl;
168504
170846
  }
168505
170847
  function getIsMatchingAsyncError(span, errorCode) {
168506
- return ({ start, length: length2, relatedInformation, code }) => isNumber(start) && isNumber(length2) && textSpansEqual({ start, length: length2 }, span) && code === errorCode && !!relatedInformation && some(relatedInformation, (related) => related.code === Diagnostics.Did_you_mean_to_mark_this_function_as_async.code);
170848
+ return ({ start, length: length2, relatedInformation, code: code2 }) => isNumber(start) && isNumber(length2) && textSpansEqual({ start, length: length2 }, span) && code2 === errorCode && !!relatedInformation && some(relatedInformation, (related) => related.code === Diagnostics.Did_you_mean_to_mark_this_function_as_async.code);
168507
170849
  }
168508
170850
  var fixId3 = "addMissingAwait";
168509
170851
  var propertyAccessCode = Diagnostics.Property_0_does_not_exist_on_type_1.code;
@@ -168588,7 +170930,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
168588
170930
  function isMissingAwaitError(sourceFile, errorCode, span, cancellationToken, program) {
168589
170931
  const checker = program.getTypeChecker();
168590
170932
  const diagnostics = checker.getDiagnostics(sourceFile, cancellationToken);
168591
- return some(diagnostics, ({ start, length: length2, relatedInformation, code }) => isNumber(start) && isNumber(length2) && textSpansEqual({ start, length: length2 }, span) && code === errorCode && !!relatedInformation && some(relatedInformation, (related) => related.code === Diagnostics.Did_you_forget_to_use_await.code));
170933
+ return some(diagnostics, ({ start, length: length2, relatedInformation, code: code2 }) => isNumber(start) && isNumber(length2) && textSpansEqual({ start, length: length2 }, span) && code2 === errorCode && !!relatedInformation && some(relatedInformation, (related) => related.code === Diagnostics.Did_you_forget_to_use_await.code));
168592
170934
  }
168593
170935
  function findAwaitableInitializers(expression, sourceFile, cancellationToken, program, checker) {
168594
170936
  const identifiers = getIdentifiersFromErrorSpanExpression(expression, checker);
@@ -173273,12 +175615,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
173273
175615
  },
173274
175616
  fixIds: [fixName, fixAddOverrideId, fixRemoveOverrideId],
173275
175617
  getAllCodeActions: (context) => codeFixAll(context, errorCodes21, (changes, diag2) => {
173276
- const { code, start } = diag2;
173277
- const info = errorCodeFixIdMap[code];
175618
+ const { code: code2, start } = diag2;
175619
+ const info = errorCodeFixIdMap[code2];
173278
175620
  if (!info || info.fixId !== context.fixId) {
173279
175621
  return;
173280
175622
  }
173281
- dispatchChanges(changes, context, code, start);
175623
+ dispatchChanges(changes, context, code2, start);
173282
175624
  })
173283
175625
  });
173284
175626
  function dispatchChanges(changeTracker, context, errorCode, pos) {
@@ -177148,13 +179490,13 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
177148
179490
  }
177149
179491
  })
177150
179492
  });
177151
- function doChange32(file, start, length2, code, context) {
179493
+ function doChange32(file, start, length2, code2, context) {
177152
179494
  let startPosition;
177153
179495
  let endPosition;
177154
- if (code === Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code) {
179496
+ if (code2 === Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code) {
177155
179497
  startPosition = start;
177156
179498
  endPosition = start + length2;
177157
- } else if (code === Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code) {
179499
+ } else if (code2 === Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code) {
177158
179500
  const checker = context.program.getTypeChecker();
177159
179501
  const node = getTokenAtPosition(file, start).parent;
177160
179502
  Debug.assert(isAccessor(node), "error span of fixPropertyOverrideAccessor should only be on an accessor");
@@ -177169,7 +179511,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
177169
179511
  endPosition = baseProp.valueDeclaration.end;
177170
179512
  file = getSourceFileOfNode(baseProp.valueDeclaration);
177171
179513
  } else {
177172
- Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code " + code);
179514
+ Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code " + code2);
177173
179515
  }
177174
179516
  return generateAccessorFromProperty(file, context.program, startPosition, endPosition, context, Diagnostics.Generate_get_and_set_accessors.message);
177175
179517
  }
@@ -200212,7 +202554,7 @@ ${options.prefix}` : "\n" : options.prefix
200212
202554
  nodePosToString: () => nodePosToString,
200213
202555
  nodeSeenTracker: () => nodeSeenTracker,
200214
202556
  nodeStartsNewLexicalEnvironment: () => nodeStartsNewLexicalEnvironment,
200215
- noop: () => noop,
202557
+ noop: () => noop2,
200216
202558
  noopFileWatcher: () => noopFileWatcher,
200217
202559
  normalizePath: () => normalizePath,
200218
202560
  normalizeSlashes: () => normalizeSlashes,
@@ -200639,7 +202981,7 @@ ${options.prefix}` : "\n" : options.prefix
200639
202981
  const since = typeof options.since === "string" ? new Version(options.since) : options.since ?? warnAfter;
200640
202982
  const error2 = options.error || errorAfter && version2.compareTo(errorAfter) >= 0;
200641
202983
  const warn = !warnAfter || version2.compareTo(warnAfter) >= 0;
200642
- return error2 ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop;
202984
+ return error2 ? createErrorDeprecation(name, errorAfter, since, options.message) : warn ? createWarningDeprecation(name, errorAfter, since, options.message) : noop2;
200643
202985
  }
200644
202986
  function wrapFunction(deprecation, func) {
200645
202987
  return function() {
@@ -200801,7 +203143,7 @@ ${options.prefix}` : "\n" : options.prefix
200801
203143
  });
200802
203144
  var nullLog = {
200803
203145
  isEnabled: () => false,
200804
- writeLine: noop
203146
+ writeLine: noop2
200805
203147
  };
200806
203148
  function typingToFileName(cachePath, packageName, installTypingHost, log) {
200807
203149
  try {
@@ -203048,7 +205390,7 @@ ${options.prefix}` : "\n" : options.prefix
203048
205390
  this.typingFiles,
203049
205391
  getStringComparer(!this.useCaseSensitiveFileNames()),
203050
205392
  /*inserted*/
203051
- noop,
205393
+ noop2,
203052
205394
  (removed) => this.detachScriptInfoFromProject(removed)
203053
205395
  )) {
203054
205396
  this.typingFiles = typingFiles;
@@ -204646,13 +206988,13 @@ ${options.prefix}` : "\n" : options.prefix
204646
206988
  isKnownTypesPackageName: returnFalse,
204647
206989
  // Should never be called because we never provide a types registry.
204648
206990
  installPackage: notImplemented2,
204649
- enqueueInstallTypingsRequest: noop,
204650
- attach: noop,
204651
- onProjectClosed: noop,
206991
+ enqueueInstallTypingsRequest: noop2,
206992
+ attach: noop2,
206993
+ onProjectClosed: noop2,
204652
206994
  globalTypingsCacheLocation: void 0
204653
206995
  // TODO: GH#18217
204654
206996
  };
204655
- var noopConfigFileWatcher = { close: noop };
206997
+ var noopConfigFileWatcher = { close: noop2 };
204656
206998
  function getConfigFileNameFromCache(info, cache) {
204657
206999
  if (!cache) return void 0;
204658
207000
  const configFileForOpenFile = cache.get(info.path);
@@ -205052,10 +207394,10 @@ ${options.prefix}` : "\n" : options.prefix
205052
207394
  this.seenProjects = /* @__PURE__ */ new Map();
205053
207395
  this.sharedExtendedConfigFileWatchers = /* @__PURE__ */ new Map();
205054
207396
  this.extendedConfigCache = /* @__PURE__ */ new Map();
205055
- this.baseline = noop;
205056
- this.verifyDocumentRegistry = noop;
205057
- this.verifyProgram = noop;
205058
- this.onProjectCreation = noop;
207397
+ this.baseline = noop2;
207398
+ this.verifyDocumentRegistry = noop2;
207399
+ this.verifyProgram = noop2;
207400
+ this.onProjectCreation = noop2;
205059
207401
  var _a;
205060
207402
  this.host = opts.host;
205061
207403
  this.logger = opts.logger;
@@ -205109,7 +207451,7 @@ ${options.prefix}` : "\n" : options.prefix
205109
207451
  3
205110
207452
  /* verbose */
205111
207453
  ) ? 2 : this.logger.loggingEnabled() ? 1 : 0;
205112
- const log = watchLogLevel !== 0 ? (s) => this.logger.info(s) : noop;
207454
+ const log = watchLogLevel !== 0 ? (s) => this.logger.info(s) : noop2;
205113
207455
  this.packageJsonCache = createPackageJsonCache(this);
205114
207456
  this.watchFactory = this.serverMode !== 0 ? {
205115
207457
  watchFile: returnNoopFileWatcher,
@@ -208673,13 +211015,13 @@ Dynamic files must always be opened with service's current directory or service
208673
211015
  const start = diag2.file && convertToLocation(getLineAndCharacterOfPosition(diag2.file, diag2.start));
208674
211016
  const end = diag2.file && convertToLocation(getLineAndCharacterOfPosition(diag2.file, diag2.start + diag2.length));
208675
211017
  const text = flattenDiagnosticMessageText(diag2.messageText, "\n");
208676
- const { code, source } = diag2;
211018
+ const { code: code2, source } = diag2;
208677
211019
  const category = diagnosticCategoryName(diag2);
208678
211020
  const common = {
208679
211021
  start,
208680
211022
  end,
208681
211023
  text,
208682
- code,
211024
+ code: code2,
208683
211025
  category,
208684
211026
  reportsUnnecessary: diag2.reportsUnnecessary,
208685
211027
  reportsDeprecated: diag2.reportsDeprecated,
@@ -208692,7 +211034,7 @@ Dynamic files must always be opened with service's current directory or service
208692
211034
  return edits.every((edit) => textSpanEnd(edit.span) < pos);
208693
211035
  }
208694
211036
  var CommandNames = CommandTypes;
208695
- function formatMessage2(msg, logger, byteLength, newLine) {
211037
+ function formatMessage2(msg, logger, byteLength2, newLine) {
208696
211038
  const verboseLogging = logger.hasLevel(
208697
211039
  3
208698
211040
  /* verbose */
@@ -208701,7 +211043,7 @@ Dynamic files must always be opened with service's current directory or service
208701
211043
  if (verboseLogging) {
208702
211044
  logger.info(`${msg.type}:${stringifyIndented(msg)}`);
208703
211045
  }
208704
- const len = byteLength(json, "utf8");
211046
+ const len = byteLength2(json, "utf8");
208705
211047
  return `Content-Length: ${1 + len}\r
208706
211048
  \r
208707
211049
  ${json}${newLine}`;
@@ -213547,7 +215889,7 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
213547
215889
  return typescript.exports;
213548
215890
  }
213549
215891
  var typescriptExports = requireTypescript();
213550
- var ts = /* @__PURE__ */ getDefaultExportFromCjs(typescriptExports);
215892
+ var ts = /* @__PURE__ */ getDefaultExportFromCjs$1(typescriptExports);
213551
215893
  const TS_COMPLETE_BLOCKLIST = [ts.ScriptElementKind.warning];
213552
215894
  const COMPILER_OPTIONS = {
213553
215895
  allowJs: true,
@@ -213695,7 +216037,7 @@ try {
213695
216037
  hasLocalStorage = typeof localStorage !== "undefined";
213696
216038
  } catch (error) {
213697
216039
  }
213698
- var hasProcess = typeof process !== "undefined";
216040
+ var hasProcess = typeof process$1 !== "undefined";
213699
216041
  var shouldDebug = hasLocalStorage && /* @__PURE__ */ localStorage.getItem("DEBUG") || hasProcess && define_process_env_default.DEBUG;
213700
216042
  var debugLog = shouldDebug ? console.log : function(_message) {
213701
216043
  return "";
@@ -214010,7 +216352,7 @@ function removeUnusedLibs(fsMap) {
214010
216352
  }
214011
216353
  }
214012
216354
  }
214013
- async function setupTypescriptEnv({ cache, code, mode }) {
216355
+ async function setupTypescriptEnv({ cache, code: code2, mode }) {
214014
216356
  const fsMap = await createDefaultMapFromCDN(
214015
216357
  COMPILER_OPTIONS,
214016
216358
  ts.version,
@@ -214023,7 +216365,7 @@ async function setupTypescriptEnv({ cache, code, mode }) {
214023
216365
  removeUnusedLibs(fsMap);
214024
216366
  fsMap.set(TYPESCRIPT_FILES.N8N_TYPES, n8nTypes);
214025
216367
  fsMap.set(TYPESCRIPT_FILES.GLOBAL_TYPES, globalTypes);
214026
- fsMap.set(code.fileName, wrapInFunction(code.content, mode));
216368
+ fsMap.set(code2.fileName, wrapInFunction(code2.content, mode));
214027
216369
  const system = createSystem(fsMap);
214028
216370
  return createVirtualTypeScriptEnvironment(
214029
216371
  system,