@feedmepos/mf-hrm-portal 2.3.4-dev → 2.4.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 (310) hide show
  1. package/dist/{ApprovalCodeList-C_F98cwM.js → ApprovalCodeList-D62tXKEd.js} +15 -14
  2. package/dist/AuditLogList-DQOdhFJm.js +2021 -0
  3. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BDT1AfXa.js +438 -0
  4. package/dist/EmployeeList-Bd211chl.js +776 -0
  5. package/dist/FormItem.vue_vue_type_script_setup_true_lang-CUBQnkkY.js +45 -0
  6. package/dist/FormSection.vue_vue_type_script_setup_true_lang-DknXTYiK.js +49 -0
  7. package/dist/{GrantUserList-BZGwZLsp.js → GrantUserList-DaUUILOT.js} +16 -15
  8. package/dist/{Main-CvVhcEJ-.js → Main-B95BdgQd.js} +5 -5
  9. package/dist/Main-CvGjvEQL.js +96 -0
  10. package/dist/{Main-iG516Bly.js → Main-Dh3E2cEf.js} +11 -11
  11. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-CqG0v0Sz.js +243 -0
  12. package/dist/{PermissionSetList-COn_Nrzd.js → PermissionSetList-BIzlo_EV.js} +102 -100
  13. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BYYiW77c.js +4181 -0
  14. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CSYNrTGr.js +35 -0
  15. package/dist/ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js +132 -0
  16. package/dist/RoleList-QJV3cGvV.js +740 -0
  17. package/dist/ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-DsKfRa5Z.js +544 -0
  18. package/dist/ScheduleGeneralPage-D6NPsdrU.js +811 -0
  19. package/dist/ScheduleModal.vue_vue_type_script_setup_true_lang-kYGNELLb.js +2556 -0
  20. package/dist/SchedulePage-CO_ZP2QD.js +19446 -0
  21. package/dist/SchedulePositionPage-DFjWfRwI.js +282 -0
  22. package/dist/SelectFilter-B94Z_Fat.js +263 -0
  23. package/dist/TeamMemberList-BbGMw0jg.js +1150 -0
  24. package/dist/{TimesheetList-DoNzT6xQ.js → TimesheetList-DiTCj2H7.js} +11 -11
  25. package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-n8cnb0Zw.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-B97k3KNz.js} +4 -4
  26. package/dist/{app-BYPvZve5.js → app-BRlNuQIz.js} +11579 -6690
  27. package/dist/app.js +3 -3
  28. package/dist/{approval-code-CeijALXj.js → approval-code-D6eLRwC7.js} +4 -4
  29. package/dist/{dayjs.min-CS0wjvq4.js → dayjs.min-BaLuYA95.js} +13 -13
  30. package/dist/{employee-DH4Wibqh.js → employee-DF_QGtpu.js} +71 -67
  31. package/dist/{grant-user-C0ko4LW8.js → grant-user-CdkuTYlZ.js} +2 -2
  32. package/dist/{iteration-Cnj0KTDr.js → iteration-t4kb_i13.js} +1 -1
  33. package/dist/{lodash-DAd2V4v-.js → lodash-Dv0NUeUP.js} +1 -1
  34. package/dist/object-Dwyg2LgX.js +16 -0
  35. package/dist/restaurant-D2q9eNtu.js +2685 -0
  36. package/dist/{role-DSu9cpI6.js → role-y253W1Ep.js} +20 -22
  37. package/dist/{rule-BmRzz26L.js → rule-DaFOMP6z.js} +164 -172
  38. package/dist/src/api/audit-log/index.d.ts +6 -0
  39. package/dist/src/api/employee/index.d.ts +2 -2
  40. package/dist/src/api/restaurant/index.d.ts +2 -0
  41. package/dist/src/api/schedule/index.d.ts +68 -0
  42. package/dist/src/components/AppForm.vue.d.ts +2 -2
  43. package/dist/src/components/CheckboxInput.vue.d.ts +2 -2
  44. package/dist/src/components/CollapsibleWrapper.vue.d.ts +3 -11
  45. package/dist/src/components/layout/PortalShell.vue.d.ts +12 -0
  46. package/dist/src/components/layout/withScheduleShell.d.ts +10 -0
  47. package/dist/src/composables/useDiscardConfirm.d.ts +3 -1
  48. package/dist/src/composables/useMessage.d.ts +8 -2
  49. package/dist/src/composables/useTenant.d.ts +11 -0
  50. package/dist/src/helpers/string.d.ts +1 -10
  51. package/dist/src/router/courtGuard.d.ts +4 -0
  52. package/dist/src/router/shared.d.ts +3 -2
  53. package/dist/src/stores/approval-code.d.ts +1 -1
  54. package/dist/src/stores/employee.d.ts +14 -14
  55. package/dist/src/stores/grant-user.d.ts +1 -1
  56. package/dist/src/stores/permission-assignment.d.ts +2 -2
  57. package/dist/src/stores/permission-set.d.ts +2 -2
  58. package/dist/src/stores/restaurant.d.ts +9 -9
  59. package/dist/src/stores/role.d.ts +2 -2
  60. package/dist/src/stores/team.d.ts +2 -32
  61. package/dist/src/stores/timesheet.d.ts +2 -2
  62. package/dist/src/types/employee.d.ts +1 -0
  63. package/dist/src/types/schedule.d.ts +23 -0
  64. package/dist/src/types/team.d.ts +1 -17
  65. package/dist/src/views/audit-log/constants.d.ts +9 -30
  66. package/dist/src/views/audit-log/locales/index.d.ts +532 -0
  67. package/dist/src/views/audit-log/pos-row.d.ts +27 -0
  68. package/dist/src/views/audit-log/useTraceIdDeepLink.d.ts +19 -0
  69. package/dist/src/views/hr/locales/index.d.ts +4 -24
  70. package/dist/src/views/hr/role/RoleForm.vue.d.ts +2 -29
  71. package/dist/src/views/scheduling/ScheduleGeneralPage.vue.d.ts +3 -0
  72. package/dist/src/views/scheduling/SchedulePage.vue.d.ts +3 -0
  73. package/dist/src/views/scheduling/SchedulePositionPage.vue.d.ts +3 -0
  74. package/dist/src/views/scheduling/components/ScheduleAddEmployeeIdentitySection.vue.d.ts +6 -0
  75. package/dist/src/views/scheduling/components/ScheduleAddEmployeeModal.vue.d.ts +12 -0
  76. package/dist/src/views/scheduling/components/ScheduleAddEmployeeModeStep.vue.d.ts +6 -0
  77. package/dist/src/views/scheduling/components/ScheduleAddEmployeePosAccessSection.vue.d.ts +6 -0
  78. package/dist/src/views/scheduling/components/ScheduleAddEmployeePositionsSection.vue.d.ts +10 -0
  79. package/dist/src/views/scheduling/components/ScheduleAddEmployeeSchedulingSection.vue.d.ts +6 -0
  80. package/dist/src/views/scheduling/components/ScheduleAddPickPopover.vue.d.ts +6 -0
  81. package/dist/src/views/scheduling/components/ScheduleAddPositionModal.vue.d.ts +6 -0
  82. package/dist/src/views/scheduling/components/ScheduleAreaRows.vue.d.ts +41 -0
  83. package/dist/src/views/scheduling/components/ScheduleAutoScheduleDetailsModal.vue.d.ts +6 -0
  84. package/dist/src/views/scheduling/components/ScheduleAutoScheduleDoneArt.vue.d.ts +2 -0
  85. package/dist/src/views/{team/member/ExistingMemberNotice.vue.d.ts → scheduling/components/ScheduleAutoScheduleModal.vue.d.ts} +5 -6
  86. package/dist/src/views/scheduling/components/ScheduleBoardAreaRows.vue.d.ts +25 -0
  87. package/dist/src/views/scheduling/components/ScheduleBoardEditOverlays.vue.d.ts +17 -0
  88. package/dist/src/views/scheduling/components/ScheduleBoardEmployeeRows.vue.d.ts +31 -0
  89. package/dist/src/views/scheduling/components/ScheduleBoardGridHeader.vue.d.ts +29 -0
  90. package/dist/src/views/scheduling/components/ScheduleBoardInteractionOverlays.vue.d.ts +34 -0
  91. package/dist/src/views/scheduling/components/ScheduleBoardOnboardingOverlays.vue.d.ts +26 -0
  92. package/dist/src/views/scheduling/components/ScheduleBoardRails.vue.d.ts +17 -0
  93. package/dist/src/views/scheduling/components/ScheduleBoardToolbar.vue.d.ts +38 -0
  94. package/dist/src/views/scheduling/components/ScheduleBoardUtilityOverlays.vue.d.ts +22 -0
  95. package/dist/src/views/scheduling/components/ScheduleButton.vue.d.ts +23 -0
  96. package/dist/src/views/scheduling/components/ScheduleChangeEmployeeModal.vue.d.ts +8 -0
  97. package/dist/src/views/scheduling/components/ScheduleCloneOutletModal.vue.d.ts +6 -0
  98. package/dist/src/views/scheduling/components/ScheduleCoach.vue.d.ts +6 -0
  99. package/dist/src/views/scheduling/components/ScheduleCompletionDialog.vue.d.ts +15 -0
  100. package/dist/src/views/scheduling/components/ScheduleConfirmModal.vue.d.ts +33 -0
  101. package/dist/src/views/scheduling/components/ScheduleContextMenu.vue.d.ts +17 -0
  102. package/dist/src/views/scheduling/components/ScheduleCostRail.vue.d.ts +8 -0
  103. package/dist/src/views/scheduling/components/ScheduleCostRailEmptyArt.vue.d.ts +2 -0
  104. package/dist/src/views/scheduling/components/ScheduleDateRangePopover.vue.d.ts +6 -0
  105. package/dist/src/views/scheduling/components/ScheduleDayNotePopover.vue.d.ts +6 -0
  106. package/dist/src/views/scheduling/components/ScheduleDayTimeline.vue.d.ts +17 -0
  107. package/dist/src/views/scheduling/components/ScheduleDemandRow.vue.d.ts +23 -0
  108. package/dist/src/views/scheduling/components/ScheduleDemandSheet.vue.d.ts +10 -0
  109. package/dist/src/views/scheduling/components/ScheduleDotsIcon.vue.d.ts +2 -0
  110. package/dist/src/views/scheduling/components/ScheduleEmployeeDetailPanel.vue.d.ts +12 -0
  111. package/dist/src/views/scheduling/components/ScheduleEmployeeIdentity.vue.d.ts +17 -0
  112. package/dist/src/views/scheduling/components/ScheduleExportPreview.vue.d.ts +7 -0
  113. package/dist/src/views/scheduling/components/ScheduleFilterBar.vue.d.ts +18 -0
  114. package/dist/src/views/scheduling/components/ScheduleGapPopover.vue.d.ts +6 -0
  115. package/dist/src/views/scheduling/components/ScheduleGridHeader.vue.d.ts +18 -0
  116. package/dist/src/views/scheduling/components/ScheduleGridSkeleton.vue.d.ts +2 -0
  117. package/dist/src/views/scheduling/components/ScheduleLeaveEditModal.vue.d.ts +6 -0
  118. package/dist/src/views/scheduling/components/ScheduleLoadState.vue.d.ts +9 -0
  119. package/dist/src/views/scheduling/components/ScheduleModal.vue.d.ts +26 -0
  120. package/dist/src/views/scheduling/components/ScheduleOnboardingAssignPositionModal.vue.d.ts +6 -0
  121. package/dist/src/views/scheduling/components/ScheduleOnboardingClosedDayConfirm.vue.d.ts +6 -0
  122. package/dist/src/views/scheduling/components/ScheduleOnboardingDemandDays.vue.d.ts +6 -0
  123. package/dist/src/views/scheduling/components/ScheduleOnboardingDemandFooter.vue.d.ts +6 -0
  124. package/dist/src/views/scheduling/components/ScheduleOnboardingDemandHeader.vue.d.ts +6 -0
  125. package/dist/src/views/scheduling/components/ScheduleOnboardingDoneArt.vue.d.ts +2 -0
  126. package/dist/src/views/scheduling/components/ScheduleOnboardingHoursProfileNotice.vue.d.ts +10 -0
  127. package/dist/src/views/scheduling/components/ScheduleOnboardingPositions.vue.d.ts +6 -0
  128. package/dist/src/views/scheduling/components/ScheduleOnboardingReview.vue.d.ts +6 -0
  129. package/dist/src/views/scheduling/components/ScheduleOnboardingSettings.vue.d.ts +6 -0
  130. package/dist/src/views/scheduling/components/ScheduleOnboardingWelcome.vue.d.ts +11 -0
  131. package/dist/src/views/scheduling/components/ScheduleOnboardingWizard.vue.d.ts +9 -0
  132. package/dist/src/views/scheduling/components/ScheduleOnboardingWizardFooter.vue.d.ts +6 -0
  133. package/dist/src/views/scheduling/components/ScheduleOnboardingWizardHeader.vue.d.ts +11 -0
  134. package/dist/src/views/scheduling/components/SchedulePublishModal.vue.d.ts +8 -0
  135. package/dist/src/views/scheduling/components/SchedulePublishShareArt.vue.d.ts +2 -0
  136. package/dist/src/views/scheduling/components/ScheduleReviewBar.vue.d.ts +12 -0
  137. package/dist/src/views/scheduling/components/ScheduleSelect.vue.d.ts +70 -0
  138. package/dist/src/views/scheduling/components/ScheduleSelectExistingEmployeeModal.vue.d.ts +6 -0
  139. package/dist/src/views/scheduling/components/ScheduleSetupBanner.vue.d.ts +12 -0
  140. package/dist/src/views/scheduling/components/ScheduleShiftCell.vue.d.ts +35 -0
  141. package/dist/src/views/scheduling/components/ScheduleShiftHeadcountEditor.vue.d.ts +10 -0
  142. package/dist/src/views/scheduling/components/ScheduleShiftImpact.vue.d.ts +6 -0
  143. package/dist/src/views/scheduling/components/ScheduleShiftMoreOptions.vue.d.ts +8 -0
  144. package/dist/src/views/scheduling/components/ScheduleShiftPopover.vue.d.ts +16 -0
  145. package/dist/src/views/scheduling/components/ScheduleShiftRepeatDaysRow.vue.d.ts +8 -0
  146. package/dist/src/views/scheduling/components/ScheduleShiftSegmentsEditor.vue.d.ts +8 -0
  147. package/dist/src/views/scheduling/components/ScheduleShiftWhoPicker.vue.d.ts +25 -0
  148. package/dist/src/views/scheduling/components/ScheduleStaffRail.vue.d.ts +16 -0
  149. package/dist/src/views/scheduling/components/ScheduleStaffRows.vue.d.ts +50 -0
  150. package/dist/src/views/scheduling/components/ScheduleStatsRow.vue.d.ts +12 -0
  151. package/dist/src/views/scheduling/components/ScheduleSwapShiftsModal.vue.d.ts +8 -0
  152. package/dist/src/views/scheduling/components/ScheduleTimePickerPopover.vue.d.ts +6 -0
  153. package/dist/src/views/scheduling/components/ScheduleTopbar.vue.d.ts +20 -0
  154. package/dist/src/views/scheduling/composables/auto-schedule-mapping.d.ts +35 -0
  155. package/dist/src/views/scheduling/composables/onboarding-constants.d.ts +7 -0
  156. package/dist/src/views/scheduling/composables/onboarding-hours.d.ts +7 -0
  157. package/dist/src/views/scheduling/composables/onboarding-types.d.ts +51 -0
  158. package/dist/src/views/scheduling/composables/remyPrompt.d.ts +15 -0
  159. package/dist/src/views/scheduling/composables/schedule-add-employee-form.d.ts +82 -0
  160. package/dist/src/views/scheduling/composables/schedule-board-helpers.d.ts +63 -0
  161. package/dist/src/views/scheduling/composables/schedule-breaks.d.ts +9 -0
  162. package/dist/src/views/scheduling/composables/schedule-calendar.d.ts +17 -0
  163. package/dist/src/views/scheduling/composables/schedule-cost.d.ts +24 -0
  164. package/dist/src/views/scheduling/composables/schedule-currency.d.ts +22 -0
  165. package/dist/src/views/scheduling/composables/schedule-day-meta.d.ts +21 -0
  166. package/dist/src/views/scheduling/composables/schedule-demand-domain.d.ts +23 -0
  167. package/dist/src/views/scheduling/composables/schedule-employee-profile.d.ts +7 -0
  168. package/dist/src/views/scheduling/composables/schedule-error.d.ts +1 -0
  169. package/dist/src/views/scheduling/composables/schedule-export-matrix.d.ts +14 -0
  170. package/dist/src/views/scheduling/composables/schedule-leave-split.d.ts +9 -0
  171. package/dist/src/views/scheduling/composables/schedule-popover-position.d.ts +16 -0
  172. package/dist/src/views/scheduling/composables/schedule-quick-pick.d.ts +23 -0
  173. package/dist/src/views/scheduling/composables/schedule-shift-time.d.ts +29 -0
  174. package/dist/src/views/scheduling/composables/schedule-time.d.ts +8 -0
  175. package/dist/src/views/scheduling/composables/schedule-week-cache.d.ts +9 -0
  176. package/dist/src/views/scheduling/composables/useCollapsedList.d.ts +9 -0
  177. package/dist/src/views/scheduling/composables/useRemyAppStore.d.ts +16 -0
  178. package/dist/src/views/scheduling/composables/useScheduleAddEmployee.d.ts +137 -0
  179. package/dist/src/views/scheduling/composables/useScheduleAddPick.d.ts +75 -0
  180. package/dist/src/views/scheduling/composables/useScheduleAreaBoard.d.ts +50 -0
  181. package/dist/src/views/scheduling/composables/useScheduleAreaDragDrop.d.ts +11 -0
  182. package/dist/src/views/scheduling/composables/useScheduleAssignmentMutations.d.ts +13 -0
  183. package/dist/src/views/scheduling/composables/useScheduleAutoSchedule.d.ts +301 -0
  184. package/dist/src/views/scheduling/composables/useScheduleBoard.d.ts +615 -0
  185. package/dist/src/views/scheduling/composables/useScheduleCellState.d.ts +27 -0
  186. package/dist/src/views/scheduling/composables/useScheduleClashDetection.d.ts +28 -0
  187. package/dist/src/views/scheduling/composables/useScheduleCloneOutletModal.d.ts +21 -0
  188. package/dist/src/views/scheduling/composables/useScheduleCoach.d.ts +80 -0
  189. package/dist/src/views/scheduling/composables/useScheduleCopyWeek.d.ts +12 -0
  190. package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +60 -0
  191. package/dist/src/views/scheduling/composables/useScheduleDayNote.d.ts +44 -0
  192. package/dist/src/views/scheduling/composables/useScheduleDayTimeline.d.ts +111 -0
  193. package/dist/src/views/scheduling/composables/useScheduleDemand.d.ts +59 -0
  194. package/dist/src/views/scheduling/composables/useScheduleDemandRow.d.ts +47 -0
  195. package/dist/src/views/scheduling/composables/useScheduleDemandSheet.d.ts +166 -0
  196. package/dist/src/views/scheduling/composables/useScheduleDragDrop.d.ts +55 -0
  197. package/dist/src/views/scheduling/composables/useScheduleEmployeeAccess.d.ts +24 -0
  198. package/dist/src/views/scheduling/composables/useScheduleEmployeeAvailability.d.ts +13 -0
  199. package/dist/src/views/scheduling/composables/useScheduleEmployeeCandidates.d.ts +49 -0
  200. package/dist/src/views/scheduling/composables/useScheduleEmployeeCompensation.d.ts +7 -0
  201. package/dist/src/views/scheduling/composables/useScheduleEmployeeForm.d.ts +22 -0
  202. package/dist/src/views/scheduling/composables/useScheduleEmployeeIdentity.d.ts +50 -0
  203. package/dist/src/views/scheduling/composables/useScheduleEmployeeMenu.d.ts +38 -0
  204. package/dist/src/views/scheduling/composables/useScheduleEmployeePersistence.d.ts +32 -0
  205. package/dist/src/views/scheduling/composables/useScheduleEmployeeProfile.d.ts +16 -0
  206. package/dist/src/views/scheduling/composables/useScheduleEmployeeValidation.d.ts +18 -0
  207. package/dist/src/views/scheduling/composables/useScheduleExport.d.ts +52 -0
  208. package/dist/src/views/scheduling/composables/useScheduleFilterBar.d.ts +14 -0
  209. package/dist/src/views/scheduling/composables/useScheduleGapPopover.d.ts +79 -0
  210. package/dist/src/views/scheduling/composables/useScheduleLeave.d.ts +60 -0
  211. package/dist/src/views/scheduling/composables/useScheduleLegend.d.ts +15 -0
  212. package/dist/src/views/scheduling/composables/useScheduleOnboardingAvailability.d.ts +58 -0
  213. package/dist/src/views/scheduling/composables/useScheduleOnboardingDemand.d.ts +45 -0
  214. package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +231 -0
  215. package/dist/src/views/scheduling/composables/useScheduleOnboardingFlow.d.ts +9 -0
  216. package/dist/src/views/scheduling/composables/useScheduleOnboardingHours.d.ts +15 -0
  217. package/dist/src/views/scheduling/composables/useScheduleOnboardingNavigation.d.ts +11 -0
  218. package/dist/src/views/scheduling/composables/useScheduleOnboardingPersistence.d.ts +13 -0
  219. package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +1543 -0
  220. package/dist/src/views/scheduling/composables/useScheduleOutlet.d.ts +25 -0
  221. package/dist/src/views/scheduling/composables/useSchedulePageActions.d.ts +18 -0
  222. package/dist/src/views/scheduling/composables/useSchedulePageBootstrap.d.ts +9 -0
  223. package/dist/src/views/scheduling/composables/useSchedulePageCellActions.d.ts +21 -0
  224. package/dist/src/views/scheduling/composables/useSchedulePageCellDrop.d.ts +20 -0
  225. package/dist/src/views/scheduling/composables/useSchedulePageClearActions.d.ts +33 -0
  226. package/dist/src/views/scheduling/composables/useSchedulePageEmployeeActions.d.ts +22 -0
  227. package/dist/src/views/scheduling/composables/useSchedulePageOverlays.d.ts +21 -0
  228. package/dist/src/views/scheduling/composables/useSchedulePdfExport.d.ts +19 -0
  229. package/dist/src/views/scheduling/composables/useSchedulePositionModal.d.ts +55 -0
  230. package/dist/src/views/scheduling/composables/useSchedulePositions.d.ts +35 -0
  231. package/dist/src/views/scheduling/composables/useSchedulePublish.d.ts +127 -0
  232. package/dist/src/views/scheduling/composables/useSchedulePublishPersistence.d.ts +11 -0
  233. package/dist/src/views/scheduling/composables/useScheduleRangeCalendar.d.ts +27 -0
  234. package/dist/src/views/scheduling/composables/useScheduleRoster.d.ts +313 -0
  235. package/dist/src/views/scheduling/composables/useScheduleSettings.d.ts +40 -0
  236. package/dist/src/views/scheduling/composables/useScheduleSetupBanner.d.ts +17 -0
  237. package/dist/src/views/scheduling/composables/useScheduleShiftActions.d.ts +245 -0
  238. package/dist/src/views/scheduling/composables/useScheduleShiftDraft.d.ts +63 -0
  239. package/dist/src/views/scheduling/composables/useScheduleShiftPersistence.d.ts +17 -0
  240. package/dist/src/views/scheduling/composables/useScheduleShiftPopover.d.ts +255 -0
  241. package/dist/src/views/scheduling/composables/useScheduleStatsRow.d.ts +27 -0
  242. package/dist/src/views/scheduling/composables/useScheduleTimePicker.d.ts +49 -0
  243. package/dist/src/views/scheduling/composables/useScheduleTour.d.ts +95 -0
  244. package/dist/src/views/scheduling/composables/useScheduleViewportFit.d.ts +9 -0
  245. package/dist/src/views/scheduling/country-rules/index.d.ts +33 -0
  246. package/dist/src/views/scheduling/data.d.ts +123 -0
  247. package/dist/src/views/scheduling/locales/index.d.ts +6988 -0
  248. package/dist/src/views/scheduling/schedule-constants.d.ts +7 -0
  249. package/dist/src/views/scheduling/schedule-state.d.ts +767 -0
  250. package/dist/src/views/scheduling/schedule-store.d.ts +140 -0
  251. package/dist/src/views/scheduling/types.d.ts +381 -0
  252. package/dist/src/views/team/components/BasePermission.vue.d.ts +0 -11
  253. package/dist/src/views/team/components/ConditionPermission.vue.d.ts +0 -11
  254. package/dist/src/views/team/components/PortalConditionForm.vue.d.ts +2 -2
  255. package/dist/src/views/team/components/PortalPermissionEditor.vue.d.ts +0 -21
  256. package/dist/src/views/team/components/PosRolePermission.vue.d.ts +0 -11
  257. package/dist/src/views/team/condition-builders/ConditionBuilderForm.vue.d.ts +2 -2
  258. package/dist/src/views/team/locales/index.d.ts +0 -716
  259. package/dist/src/views/team/member/AddMemberForm.vue.d.ts +3 -48
  260. package/dist/src/views/team/{components/MemberStatusBadge.vue.d.ts → member/MemberInfo.vue.d.ts} +2 -2
  261. package/dist/src/views/team/member/TeamMemberList.vue.d.ts +0 -1
  262. package/dist/string-VNuQNweN.js +15 -0
  263. package/dist/style.css +1 -1
  264. package/dist/tsconfig.app.tsbuildinfo +1 -1
  265. package/dist/{useAppStore-BL4Iv-0s.js → useAppStore-CIPpnfP7.js} +1 -1
  266. package/dist/useDiscardConfirm-CzZSPyvh.js +28 -0
  267. package/dist/{useLoading-BEIlprgm.js → useLoading-BRCeBVXP.js} +1 -1
  268. package/dist/useMessage-_ywT_N9X.js +17 -0
  269. package/dist/useReportPermissions-Bveud3kc.js +80 -0
  270. package/package.json +8 -6
  271. package/dist/AuditLogList-CRQjG28b.js +0 -1777
  272. package/dist/ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BA4pgKNh.js +0 -459
  273. package/dist/EmployeeList-DurHeTfl.js +0 -907
  274. package/dist/FormSection.vue_vue_type_script_setup_true_lang-BDGewUFD.js +0 -90
  275. package/dist/Main-DZ_LJKco.js +0 -101
  276. package/dist/MyPosProfile-C8iBUFAt.js +0 -301
  277. package/dist/PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js +0 -126
  278. package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C1k42T7U.js +0 -4243
  279. package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DAbgu49T.js +0 -1831
  280. package/dist/RoleForm.vue_vue_type_script_setup_true_lang-CoWKz1qm.js +0 -547
  281. package/dist/RoleList-C5f_ulk9.js +0 -274
  282. package/dist/SelectFilter-ATOm0hdn.js +0 -269
  283. package/dist/TeamMemberList-DCSbXFdg.js +0 -2085
  284. package/dist/member-grant-BaABegLK.js +0 -55
  285. package/dist/restaurant-CNsV-2OE.js +0 -45
  286. package/dist/src/api/my-pos-profile/index.d.ts +0 -5
  287. package/dist/src/api/sso-provider/index.d.ts +0 -5
  288. package/dist/src/api/staff-invite/index.d.ts +0 -16
  289. package/dist/src/components/form/SegmentedTabs.vue.d.ts +0 -23
  290. package/dist/src/composables/useMenuAccess.d.ts +0 -56
  291. package/dist/src/composables/useSsoProviders.d.ts +0 -19
  292. package/dist/src/composables/useStaffInviteProviders.d.ts +0 -8
  293. package/dist/src/helpers/member-grant.d.ts +0 -36
  294. package/dist/src/helpers/my-pos-profile.d.ts +0 -37
  295. package/dist/src/helpers/pos-assignment-rows.d.ts +0 -28
  296. package/dist/src/helpers/staff-invite.d.ts +0 -54
  297. package/dist/src/router/menu-access-guard.d.ts +0 -17
  298. package/dist/src/types/my-pos-profile.d.ts +0 -25
  299. package/dist/src/types/sso-provider.d.ts +0 -10
  300. package/dist/src/types/staff-invite.d.ts +0 -100
  301. package/dist/src/views/my-pos-profile/components/PasscodeChangedDialog.vue.d.ts +0 -4
  302. package/dist/src/views/my-pos-profile/locales/index.d.ts +0 -200
  303. package/dist/src/views/team/components/MemberGrantFields.vue.d.ts +0 -51
  304. package/dist/src/views/team/components/PosAssignmentRows.vue.d.ts +0 -44
  305. package/dist/src/views/team/member/MemberDetailsCard.vue.d.ts +0 -35
  306. package/dist/src/views/team/member/MemberHeaderCard.vue.d.ts +0 -19
  307. package/dist/string-DZQ1uNjn.js +0 -22
  308. package/dist/useDiscardConfirm-DPhEV6v0.js +0 -157
  309. package/dist/useReportPermissions-BhiSxQCh.js +0 -82
  310. /package/dist/src/{views/my-pos-profile/MyPosProfile.vue.d.ts → components/layout/SchedulePromoBanner.vue.d.ts} +0 -0
@@ -0,0 +1,2685 @@
1
+ import { defineStore as fn, storeToRefs as dn } from "pinia";
2
+ import { ref as Fe } from "vue";
3
+ import { u as _t } from "./app-BRlNuQIz.js";
4
+ import { baseClientInstance as Pt, useCoreStore as Tt, FeedMeAuth as pn } from "@feedmepos/mf-common";
5
+ function xt(e, t) {
6
+ return function() {
7
+ return e.apply(t, arguments);
8
+ };
9
+ }
10
+ var rt = {};
11
+ const { toString: hn } = Object.prototype, { getPrototypeOf: J } = Object, { iterator: he, toStringTag: Ct } = Symbol, de = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Nt = (e) => typeof e == "string" && (e === "__proto__" || e === "constructor" || e === "prototype"), Dt = (e, t, n) => e === Object.prototype || !n && t === null, mn = (e) => {
12
+ if (!Object.isExtensible(e))
13
+ return !1;
14
+ const t = Object.getOwnPropertyNames(e);
15
+ return Object.getOwnPropertySymbols && t.push(...Object.getOwnPropertySymbols(e)), t.every((n) => {
16
+ if (Nt(n))
17
+ return !1;
18
+ const r = Object.getOwnPropertyDescriptor(e, n);
19
+ return !!r && r.configurable && r.writable === !0;
20
+ });
21
+ }, pe = (e, t) => {
22
+ let n = e;
23
+ const r = [];
24
+ for (; n != null; ) {
25
+ if (r.indexOf(n) !== -1)
26
+ return !1;
27
+ r.push(n);
28
+ const s = J(n);
29
+ if (Dt(n, s, n === e))
30
+ return !1;
31
+ if (de(n, t))
32
+ return !0;
33
+ n = s;
34
+ }
35
+ return !1;
36
+ }, yn = (e, t) => e != null && pe(e, t) ? e[t] : void 0, bn = (e) => {
37
+ if (e == null || typeof e != "object" && typeof e != "function")
38
+ return e;
39
+ const t = J(e);
40
+ if (t === null && mn(e))
41
+ return e;
42
+ const n = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null), s = [];
43
+ let o = e;
44
+ for (; o != null && s.indexOf(o) === -1; ) {
45
+ s.push(o);
46
+ const i = o === e ? t : J(o);
47
+ if (Dt(o, i, o === e))
48
+ break;
49
+ const c = Object.getOwnPropertyNames(o);
50
+ Object.getOwnPropertySymbols && c.push(...Object.getOwnPropertySymbols(o));
51
+ for (const l of c)
52
+ Nt(l) || de(r, l) || (n[l] = e[l], r[l] = !0);
53
+ o = i;
54
+ }
55
+ return n;
56
+ }, We = /* @__PURE__ */ ((e) => (t) => {
57
+ const n = hn.call(t);
58
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
59
+ })(/* @__PURE__ */ Object.create(null)), j = (e) => (e = e.toLowerCase(), (t) => We(t) === e), xe = (e) => (t) => typeof t === e, { isArray: Y } = Array, ee = xe("undefined");
60
+ function se(e) {
61
+ return e !== null && !ee(e) && e.constructor !== null && !ee(e.constructor) && F(e.constructor.isBuffer) && e.constructor.isBuffer(e);
62
+ }
63
+ const Ut = j("ArrayBuffer");
64
+ function wn(e) {
65
+ let t;
66
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ut(e.buffer), t;
67
+ }
68
+ const gn = xe("string"), F = xe("function"), Lt = xe("number"), oe = (e) => e !== null && typeof e == "object", En = (e) => e === !0 || e === !1, Oe = (e) => {
69
+ if (!oe(e))
70
+ return !1;
71
+ const t = J(e);
72
+ return (t === null || t === Object.prototype || J(t) === null) && // Treat safe own/inherited Symbol.toStringTag or Symbol.iterator members as
73
+ // evidence the value is tagged/iterable, while ignoring members reachable
74
+ // only through shared or terminal prototype boundaries.
75
+ !pe(e, Ct) && !pe(e, he);
76
+ }, Rn = (e) => {
77
+ if (!oe(e) || se(e))
78
+ return !1;
79
+ try {
80
+ return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
81
+ } catch {
82
+ return !1;
83
+ }
84
+ }, On = j("Date"), Sn = j("File"), An = (e) => !!(e && typeof e.uri < "u"), _n = (e) => e && typeof e.getParts < "u", Pn = j("Blob"), Tn = j("FileList"), xn = j("Set"), Cn = (e) => oe(e) && F(e.pipe);
85
+ function Nn() {
86
+ return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
87
+ }
88
+ const st = Nn(), ot = typeof st.FormData < "u" ? st.FormData : void 0, Dn = (e) => {
89
+ if (!e) return !1;
90
+ if (ot && e instanceof ot) return !0;
91
+ const t = J(e);
92
+ if (!t || t === Object.prototype || !F(e.append)) return !1;
93
+ const n = We(e);
94
+ return n === "formdata" || // detect form-data instance
95
+ n === "object" && F(e.toString) && e.toString() === "[object FormData]";
96
+ }, Un = j("URLSearchParams"), [Ln, Fn, Bn, jn] = [
97
+ "ReadableStream",
98
+ "Request",
99
+ "Response",
100
+ "Headers"
101
+ ].map(j), In = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
102
+ function me(e, t, { allOwnKeys: n = !1 } = {}) {
103
+ if (e === null || typeof e > "u")
104
+ return;
105
+ let r, s;
106
+ if (typeof e != "object" && (e = [e]), Y(e))
107
+ for (r = 0, s = e.length; r < s; r++)
108
+ t.call(null, e[r], r, e);
109
+ else {
110
+ if (se(e))
111
+ return;
112
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
113
+ let c;
114
+ for (r = 0; r < i; r++)
115
+ c = o[r], t.call(null, e[c], c, e);
116
+ }
117
+ }
118
+ function Ft(e, t) {
119
+ if (se(e))
120
+ return null;
121
+ t = t.toLowerCase();
122
+ const n = Object.keys(e);
123
+ let r = n.length, s;
124
+ for (; r-- > 0; )
125
+ if (s = n[r], t === s.toLowerCase())
126
+ return s;
127
+ return null;
128
+ }
129
+ const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Bt = (e) => !ee(e) && e !== Q;
130
+ function Me(...e) {
131
+ const { caseless: t, skipUndefined: n } = Bt(this) && this || {}, r = {}, s = (o, i) => {
132
+ if (i === "__proto__" || i === "constructor" || i === "prototype")
133
+ return;
134
+ const c = t && typeof i == "string" && Ft(r, i) || i, l = de(r, c) ? r[c] : void 0;
135
+ Oe(l) && Oe(o) ? r[c] = Me(l, o) : Oe(o) ? r[c] = Me({}, o) : Y(o) ? r[c] = o.slice() : (!n || !ee(o)) && (r[c] = o);
136
+ };
137
+ for (let o = 0, i = e.length; o < i; o++) {
138
+ const c = e[o];
139
+ if (!c || se(c) || (me(c, s), typeof c != "object" || Y(c)))
140
+ continue;
141
+ const l = Object.getOwnPropertySymbols(c);
142
+ for (let d = 0; d < l.length; d++) {
143
+ const f = l[d];
144
+ Xn.call(c, f) && s(c[f], f);
145
+ }
146
+ }
147
+ return r;
148
+ }
149
+ const kn = (e, t, n, { allOwnKeys: r } = {}) => (me(
150
+ t,
151
+ (s, o) => {
152
+ n && F(s) ? Object.defineProperty(e, o, {
153
+ // Null-proto descriptor so a polluted Object.prototype.get cannot
154
+ // hijack defineProperty's accessor-vs-data resolution.
155
+ __proto__: null,
156
+ value: xt(s, n),
157
+ writable: !0,
158
+ enumerable: !0,
159
+ configurable: !0
160
+ }) : Object.defineProperty(e, o, {
161
+ __proto__: null,
162
+ value: s,
163
+ writable: !0,
164
+ enumerable: !0,
165
+ configurable: !0
166
+ });
167
+ },
168
+ { allOwnKeys: r }
169
+ ), e), qn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Hn = (e, t, n, r) => {
170
+ e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
171
+ __proto__: null,
172
+ value: e,
173
+ writable: !0,
174
+ enumerable: !1,
175
+ configurable: !0
176
+ }), Object.defineProperty(e, "super", {
177
+ __proto__: null,
178
+ value: t.prototype
179
+ }), n && Object.assign(e.prototype, n);
180
+ }, $n = (e, t, n, r) => {
181
+ let s, o, i;
182
+ const c = {};
183
+ if (t = t || {}, e == null) return t;
184
+ do {
185
+ for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
186
+ i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
187
+ e = n !== !1 && J(e);
188
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
189
+ return t;
190
+ }, Mn = (e, t, n) => {
191
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
192
+ const r = e.indexOf(t, n);
193
+ return r !== -1 && r === n;
194
+ }, vn = (e) => {
195
+ if (!e) return null;
196
+ if (Y(e)) return e;
197
+ let t = e.length;
198
+ if (!Lt(t)) return null;
199
+ const n = new Array(t);
200
+ for (; t-- > 0; )
201
+ n[t] = e[t];
202
+ return n;
203
+ }, zn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && J(Uint8Array)), Wn = (e, t) => {
204
+ const r = (e && e[he]).call(e);
205
+ let s;
206
+ for (; (s = r.next()) && !s.done; ) {
207
+ const o = s.value;
208
+ t.call(e, o[0], o[1]);
209
+ }
210
+ }, Vn = (e, t) => {
211
+ let n;
212
+ const r = [];
213
+ for (; (n = e.exec(t)) !== null; )
214
+ r.push(n);
215
+ return r;
216
+ }, Jn = j("HTMLFormElement"), Kn = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, s) {
217
+ return r.toUpperCase() + s;
218
+ }), { propertyIsEnumerable: Xn } = Object.prototype, Gn = j("RegExp"), jt = (e, t) => {
219
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
220
+ me(n, (s, o) => {
221
+ let i;
222
+ (i = t(s, o, e)) !== !1 && (r[o] = i || s);
223
+ }), Object.defineProperties(e, r);
224
+ }, Qn = (e) => {
225
+ jt(e, (t, n) => {
226
+ if (F(e) && ["arguments", "caller", "callee"].includes(n))
227
+ return !1;
228
+ const r = e[n];
229
+ if (F(r)) {
230
+ if (t.enumerable = !1, "writable" in t) {
231
+ t.writable = !1;
232
+ return;
233
+ }
234
+ t.set || (t.set = () => {
235
+ throw Error("Can not rewrite read-only method '" + n + "'");
236
+ });
237
+ }
238
+ });
239
+ }, Zn = (e, t) => {
240
+ const n = {}, r = (s) => {
241
+ s.forEach((o) => {
242
+ n[o] = !0;
243
+ });
244
+ };
245
+ return Y(e) ? r(e) : r(String(e).split(t)), n;
246
+ }, Yn = () => {
247
+ }, er = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
248
+ function tr(e) {
249
+ return !!(e && F(e.append) && e[Ct] === "FormData" && e[he]);
250
+ }
251
+ const nr = (e) => {
252
+ const t = /* @__PURE__ */ new WeakSet(), n = (r) => {
253
+ if (oe(r)) {
254
+ if (t.has(r))
255
+ return;
256
+ if (se(r))
257
+ return r;
258
+ if (!("toJSON" in r)) {
259
+ t.add(r);
260
+ let s;
261
+ if (xn(r)) {
262
+ s = [];
263
+ for (const o of r) {
264
+ const i = n(o);
265
+ !ee(i) && s.push(i);
266
+ }
267
+ } else
268
+ s = Y(r) ? [] : {}, me(r, (o, i) => {
269
+ const c = n(o);
270
+ !ee(c) && (s[i] = c);
271
+ });
272
+ return t.delete(r), s;
273
+ }
274
+ }
275
+ return r;
276
+ };
277
+ return n(e);
278
+ }, rr = j("AsyncFunction"), sr = (e) => e && (oe(e) || F(e)) && F(e.then) && F(e.catch), It = ((e, t) => e ? setImmediate : t ? ((n, r) => (Q.addEventListener(
279
+ "message",
280
+ ({ source: s, data: o }) => {
281
+ s === Q && o === n && r.length && r.shift()();
282
+ },
283
+ !1
284
+ ), (s) => {
285
+ r.push(s), Q.postMessage(n, "*");
286
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", F(Q.postMessage)), or = typeof queueMicrotask < "u" ? queueMicrotask.bind(Q) : typeof rt < "u" && rt.nextTick || It, kt = (e) => e != null && F(e[he]), ir = (e) => e != null && pe(e, he) && kt(e), a = {
287
+ isArray: Y,
288
+ isArrayBuffer: Ut,
289
+ isBuffer: se,
290
+ isFormData: Dn,
291
+ isArrayBufferView: wn,
292
+ isString: gn,
293
+ isNumber: Lt,
294
+ isBoolean: En,
295
+ isObject: oe,
296
+ isPlainObject: Oe,
297
+ isEmptyObject: Rn,
298
+ isReadableStream: Ln,
299
+ isRequest: Fn,
300
+ isResponse: Bn,
301
+ isHeaders: jn,
302
+ isUndefined: ee,
303
+ isDate: On,
304
+ isFile: Sn,
305
+ isReactNativeBlob: An,
306
+ isReactNative: _n,
307
+ isBlob: Pn,
308
+ isRegExp: Gn,
309
+ isFunction: F,
310
+ isStream: Cn,
311
+ isURLSearchParams: Un,
312
+ isTypedArray: zn,
313
+ isFileList: Tn,
314
+ forEach: me,
315
+ merge: Me,
316
+ extend: kn,
317
+ trim: In,
318
+ stripBOM: qn,
319
+ inherits: Hn,
320
+ toFlatObject: $n,
321
+ kindOf: We,
322
+ kindOfTest: j,
323
+ endsWith: Mn,
324
+ toArray: vn,
325
+ forEachEntry: Wn,
326
+ matchAll: Vn,
327
+ isHTMLForm: Jn,
328
+ hasOwnProperty: de,
329
+ hasOwnProp: de,
330
+ // an alias to avoid ESLint no-prototype-builtins detection
331
+ hasOwnInPrototypeChain: pe,
332
+ getSafeProp: yn,
333
+ toSafeFlatObject: bn,
334
+ reduceDescriptors: jt,
335
+ freezeMethods: Qn,
336
+ toObjectSet: Zn,
337
+ toCamelCase: Kn,
338
+ noop: Yn,
339
+ toFiniteNumber: er,
340
+ findKey: Ft,
341
+ global: Q,
342
+ isContextDefined: Bt,
343
+ isSpecCompliantForm: tr,
344
+ toJSONObject: nr,
345
+ isAsyncFn: rr,
346
+ isThenable: sr,
347
+ setImmediate: It,
348
+ asap: or,
349
+ isIterable: kt,
350
+ isSafeIterable: ir
351
+ }, ar = a.toObjectSet([
352
+ "age",
353
+ "authorization",
354
+ "content-length",
355
+ "content-type",
356
+ "etag",
357
+ "expires",
358
+ "from",
359
+ "host",
360
+ "if-modified-since",
361
+ "if-unmodified-since",
362
+ "last-modified",
363
+ "location",
364
+ "max-forwards",
365
+ "proxy-authorization",
366
+ "referer",
367
+ "retry-after",
368
+ "user-agent"
369
+ ]), cr = (e) => {
370
+ const t = {};
371
+ let n, r, s;
372
+ return e && e.split(`
373
+ `).forEach(function(i) {
374
+ s = i.indexOf(":"), n = i.substring(0, s).trim().toLowerCase(), r = i.substring(s + 1).trim();
375
+ const c = a.hasOwnProp(t, n);
376
+ !n || c && a.hasOwnProp(ar, n) || (n === "set-cookie" ? c ? t[n].push(r) : t[n] = [r] : t[n] = c ? t[n] + ", " + r : r);
377
+ }), t;
378
+ };
379
+ function lr(e) {
380
+ let t = 0, n = e.length;
381
+ for (; t < n; ) {
382
+ const r = e.charCodeAt(t);
383
+ if (r !== 9 && r !== 32)
384
+ break;
385
+ t += 1;
386
+ }
387
+ for (; n > t; ) {
388
+ const r = e.charCodeAt(n - 1);
389
+ if (r !== 9 && r !== 32)
390
+ break;
391
+ n -= 1;
392
+ }
393
+ return t === 0 && n === e.length ? e : e.slice(t, n);
394
+ }
395
+ const ur = new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+", "g"), fr = new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+", "g");
396
+ function Ve(e, t) {
397
+ return a.isArray(e) ? e.map((n) => Ve(n, t)) : lr(String(e).replace(t, ""));
398
+ }
399
+ const dr = (e) => Ve(e, ur), pr = (e) => Ve(e, fr);
400
+ function qt(e) {
401
+ const t = /* @__PURE__ */ Object.create(null);
402
+ return a.forEach(e.toJSON(), (n, r) => {
403
+ t[r] = pr(n);
404
+ }), t;
405
+ }
406
+ const it = Symbol("internals");
407
+ function le(e) {
408
+ return e && String(e).trim().toLowerCase();
409
+ }
410
+ function Se(e) {
411
+ return e === !1 || e == null ? e : a.isArray(e) ? e.map(Se) : dr(String(e));
412
+ }
413
+ function hr(e) {
414
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
415
+ let r;
416
+ for (; r = n.exec(e); )
417
+ t[r[1]] = r[2];
418
+ return t;
419
+ }
420
+ const mr = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
421
+ function Be(e) {
422
+ let t = 0, n = e.length;
423
+ for (; t < n; ) {
424
+ const r = e.charCodeAt(t);
425
+ if (r !== 9 && r !== 32)
426
+ break;
427
+ t += 1;
428
+ }
429
+ for (; n > t; ) {
430
+ const r = e.charCodeAt(n - 1);
431
+ if (r !== 9 && r !== 32)
432
+ break;
433
+ n -= 1;
434
+ }
435
+ return t === 0 && n === e.length ? e : e.slice(t, n);
436
+ }
437
+ function yr(e) {
438
+ const t = e.length - 1;
439
+ if (t < 1 || e.charCodeAt(0) !== 34 || e.charCodeAt(t) !== 34)
440
+ return e;
441
+ let n = "";
442
+ for (let r = 1; r < t; r++) {
443
+ const s = e.charCodeAt(r);
444
+ if (s === 34 || s === 92 && (r += 1, r >= t))
445
+ return e;
446
+ n += e[r];
447
+ }
448
+ return n;
449
+ }
450
+ function br(e) {
451
+ const t = /* @__PURE__ */ Object.create(null), n = String(e);
452
+ let r = 0, s = !1, o = !1;
453
+ function i(c) {
454
+ const l = Be(n.slice(r, c)), d = l.indexOf("=");
455
+ if (d < 1)
456
+ return;
457
+ const f = Be(l.slice(0, d));
458
+ if (!mr.test(f))
459
+ return;
460
+ const p = f.toLowerCase();
461
+ if (p === "__proto__" || p === "constructor" || p === "prototype")
462
+ return;
463
+ const y = Be(l.slice(d + 1));
464
+ t[p] = yr(y);
465
+ }
466
+ for (let c = 0; c < n.length; c++) {
467
+ const l = n.charCodeAt(c);
468
+ s ? o ? o = !1 : l === 92 ? o = !0 : l === 34 && (s = !1) : l === 34 ? s = !0 : (l === 44 || l === 59) && (i(c), r = c + 1);
469
+ }
470
+ return i(n.length), t;
471
+ }
472
+ const wr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
473
+ function je(e, t, n, r, s) {
474
+ if (a.isFunction(r))
475
+ return r.call(this, t, n);
476
+ if (s && (t = n), !!a.isString(t)) {
477
+ if (a.isString(r))
478
+ return t.indexOf(r) !== -1;
479
+ if (a.isRegExp(r))
480
+ return r.test(t);
481
+ }
482
+ }
483
+ function gr(e) {
484
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
485
+ }
486
+ function Er(e, t) {
487
+ const n = a.toCamelCase(" " + t);
488
+ ["get", "set", "has"].forEach((r) => {
489
+ Object.defineProperty(e, r + n, {
490
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
491
+ // this data descriptor into an accessor descriptor on the way in.
492
+ __proto__: null,
493
+ value: function(s, o, i) {
494
+ return this[r].call(this, t, s, o, i);
495
+ },
496
+ configurable: !0
497
+ });
498
+ });
499
+ }
500
+ let L = class {
501
+ constructor(t) {
502
+ t && this.set(t);
503
+ }
504
+ set(t, n, r) {
505
+ const s = this;
506
+ function o(c, l, d) {
507
+ const f = le(l);
508
+ if (!f)
509
+ return;
510
+ const p = a.findKey(s, f);
511
+ (!p || s[p] === void 0 || d === !0 || d === void 0 && s[p] !== !1) && (s[p || l] = Se(c));
512
+ }
513
+ const i = (c, l) => a.forEach(c, (d, f) => o(d, f, l));
514
+ if (a.isPlainObject(t) || t instanceof this.constructor)
515
+ i(t, n);
516
+ else if (a.isString(t) && (t = t.trim()) && !wr(t))
517
+ i(cr(t), n);
518
+ else if (a.isObject(t) && a.isSafeIterable(t)) {
519
+ let c = /* @__PURE__ */ Object.create(null), l, d;
520
+ for (const f of t) {
521
+ if (!a.isArray(f))
522
+ throw new TypeError("Object iterator must return a key-value pair");
523
+ d = f[0], a.hasOwnProp(c, d) ? (l = c[d], c[d] = a.isArray(l) ? [...l, f[1]] : [l, f[1]]) : c[d] = f[1];
524
+ }
525
+ i(c, n);
526
+ } else
527
+ t != null && o(n, t, r);
528
+ return this;
529
+ }
530
+ get(t, n) {
531
+ if (t = le(t), t) {
532
+ const r = a.findKey(this, t);
533
+ if (r) {
534
+ const s = this[r];
535
+ if (!n)
536
+ return s;
537
+ if (n === !0)
538
+ return hr(s);
539
+ if (a.isFunction(n))
540
+ return n.call(this, s, r);
541
+ if (a.isRegExp(n))
542
+ return n.exec(s);
543
+ throw new TypeError("parser must be boolean|regexp|function");
544
+ }
545
+ }
546
+ }
547
+ has(t, n) {
548
+ if (t = le(t), t) {
549
+ const r = a.findKey(this, t);
550
+ return !!(r && this[r] !== void 0 && (!n || je(this, this[r], r, n)));
551
+ }
552
+ return !1;
553
+ }
554
+ delete(t, n) {
555
+ const r = this;
556
+ let s = !1;
557
+ function o(i) {
558
+ if (i = le(i), i) {
559
+ const c = a.findKey(r, i);
560
+ c && (!n || je(r, r[c], c, n)) && (delete r[c], s = !0);
561
+ }
562
+ }
563
+ return a.isArray(t) ? t.forEach(o) : o(t), s;
564
+ }
565
+ clear(t) {
566
+ const n = Object.keys(this);
567
+ let r = n.length, s = !1;
568
+ for (; r--; ) {
569
+ const o = n[r];
570
+ (!t || je(this, this[o], o, t, !0)) && (delete this[o], s = !0);
571
+ }
572
+ return s;
573
+ }
574
+ normalize(t) {
575
+ const n = this, r = {};
576
+ return a.forEach(this, (s, o) => {
577
+ const i = a.findKey(r, o);
578
+ if (i) {
579
+ n[i] = Se(s), delete n[o];
580
+ return;
581
+ }
582
+ const c = t ? gr(o) : String(o).trim();
583
+ c !== o && delete n[o], n[c] = Se(s), r[c] = !0;
584
+ }), this;
585
+ }
586
+ concat(...t) {
587
+ return this.constructor.concat(this, ...t);
588
+ }
589
+ toJSON(t) {
590
+ const n = /* @__PURE__ */ Object.create(null);
591
+ return a.forEach(this, (r, s) => {
592
+ r != null && r !== !1 && (n[s] = t && a.isArray(r) ? r.join(", ") : r);
593
+ }), n;
594
+ }
595
+ [Symbol.iterator]() {
596
+ return Object.entries(this.toJSON())[Symbol.iterator]();
597
+ }
598
+ toString() {
599
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
600
+ `);
601
+ }
602
+ getSetCookie() {
603
+ const t = this.get("set-cookie");
604
+ return a.isArray(t) ? t : t == null || t === !1 ? [] : [t];
605
+ }
606
+ get [Symbol.toStringTag]() {
607
+ return "AxiosHeaders";
608
+ }
609
+ static from(t) {
610
+ return t instanceof this ? t : new this(t);
611
+ }
612
+ static parseParameters(t) {
613
+ return br(t);
614
+ }
615
+ static concat(t, ...n) {
616
+ const r = new this(t);
617
+ return n.forEach((s) => r.set(s)), r;
618
+ }
619
+ static accessor(t) {
620
+ const r = (this[it] = this[it] = {
621
+ accessors: {}
622
+ }).accessors, s = this.prototype;
623
+ function o(i) {
624
+ const c = le(i);
625
+ r[c] || (Er(s, i), r[c] = !0);
626
+ }
627
+ return a.isArray(t) ? t.forEach(o) : o(t), this;
628
+ }
629
+ };
630
+ L.accessor([
631
+ "Content-Type",
632
+ "Content-Length",
633
+ "Accept",
634
+ "Accept-Encoding",
635
+ "User-Agent",
636
+ "Authorization"
637
+ ]);
638
+ a.reduceDescriptors(L.prototype, ({ value: e }, t) => {
639
+ let n = t[0].toUpperCase() + t.slice(1);
640
+ return {
641
+ get: () => e,
642
+ set(r) {
643
+ this[n] = r;
644
+ }
645
+ };
646
+ });
647
+ a.freezeMethods(L);
648
+ const Pe = "[REDACTED ****]";
649
+ function Rr(e) {
650
+ if (a.hasOwnProp(e, "toJSON"))
651
+ return !0;
652
+ let t = Object.getPrototypeOf(e);
653
+ for (; t && t !== Object.prototype; ) {
654
+ if (a.hasOwnProp(t, "toJSON"))
655
+ return !0;
656
+ t = Object.getPrototypeOf(t);
657
+ }
658
+ return !1;
659
+ }
660
+ function Or(e, t) {
661
+ const n = new Set(t.map((o) => String(o).toLowerCase())), r = [], s = (o) => {
662
+ if (o === null || typeof o != "object" || a.isBuffer(o)) return o;
663
+ if (r.indexOf(o) !== -1) return;
664
+ o instanceof L && (o = o.toJSON()), r.push(o);
665
+ let i;
666
+ if (a.isArray(o))
667
+ i = [], o.forEach((c, l) => {
668
+ const d = s(c);
669
+ a.isUndefined(d) || (i[l] = d);
670
+ });
671
+ else {
672
+ if (!a.isPlainObject(o) && Rr(o))
673
+ return r.pop(), o;
674
+ i = /* @__PURE__ */ Object.create(null);
675
+ for (const [c, l] of Object.entries(o)) {
676
+ const d = n.has(c.toLowerCase()) ? Pe : s(l);
677
+ a.isUndefined(d) || (i[c] = d);
678
+ }
679
+ }
680
+ return r.pop(), i;
681
+ };
682
+ return s(e);
683
+ }
684
+ function at(e) {
685
+ try {
686
+ return String(e);
687
+ } catch {
688
+ return "";
689
+ }
690
+ }
691
+ function Sr(e) {
692
+ return e.errors.map((n) => {
693
+ try {
694
+ return n && n.message ? at(n.message) : at(n);
695
+ } catch {
696
+ return "";
697
+ }
698
+ }).filter(Boolean).join("; ") || e.name || "AggregateError";
699
+ }
700
+ let h = class Ht extends Error {
701
+ static from(t, n, r, s, o, i) {
702
+ let c = t.message;
703
+ !c && a.isArray(t.errors) && t.errors.length && (c = Sr(t));
704
+ const l = new Ht(c, n || t.code, r, s, o);
705
+ return Object.defineProperty(l, "cause", {
706
+ __proto__: null,
707
+ value: t,
708
+ writable: !0,
709
+ enumerable: !1,
710
+ configurable: !0
711
+ }), l.name = t.name, t.status != null && l.status == null && (l.status = t.status), i && Object.assign(l, i), l;
712
+ }
713
+ /**
714
+ * Create an Error with the specified message, config, error code, request and response.
715
+ *
716
+ * @param {string} message The error message.
717
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
718
+ * @param {Object} [config] The config.
719
+ * @param {Object} [request] The request.
720
+ * @param {Object} [response] The response.
721
+ *
722
+ * @returns {Error} The created error.
723
+ */
724
+ constructor(t, n, r, s, o) {
725
+ super(t), Object.defineProperty(this, "message", {
726
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
727
+ // this data descriptor into an accessor descriptor on the way in.
728
+ __proto__: null,
729
+ value: t,
730
+ enumerable: !0,
731
+ writable: !0,
732
+ configurable: !0
733
+ }), this.name = "AxiosError", this.isAxiosError = !0, n && (this.code = n), r && (this.config = r), s && (this.request = s), o && (this.response = o, this.status = o.status);
734
+ }
735
+ toJSON() {
736
+ const t = this.config, n = t && a.hasOwnProp(t, "redact") ? t.redact : void 0, r = a.isArray(n) && n.length > 0 ? Or(t, n) : a.toJSONObject(t);
737
+ return {
738
+ // Standard
739
+ message: this.message,
740
+ name: this.name,
741
+ // Microsoft
742
+ description: this.description,
743
+ number: this.number,
744
+ // Mozilla
745
+ fileName: this.fileName,
746
+ lineNumber: this.lineNumber,
747
+ columnNumber: this.columnNumber,
748
+ stack: this.stack,
749
+ // Axios
750
+ config: r,
751
+ code: this.code,
752
+ status: this.status
753
+ };
754
+ }
755
+ };
756
+ h.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
757
+ h.ERR_BAD_OPTION = "ERR_BAD_OPTION";
758
+ h.ECONNABORTED = "ECONNABORTED";
759
+ h.ETIMEDOUT = "ETIMEDOUT";
760
+ h.ECONNREFUSED = "ECONNREFUSED";
761
+ h.ERR_NETWORK = "ERR_NETWORK";
762
+ h.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
763
+ h.ERR_DEPRECATED = "ERR_DEPRECATED";
764
+ h.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
765
+ h.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
766
+ h.ERR_CANCELED = "ERR_CANCELED";
767
+ h.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
768
+ h.ERR_INVALID_URL = "ERR_INVALID_URL";
769
+ h.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
770
+ const Ar = null, $t = 100;
771
+ function ve(e) {
772
+ return a.isPlainObject(e) || a.isArray(e);
773
+ }
774
+ function Mt(e) {
775
+ return a.endsWith(e, "[]") ? e.slice(0, -2) : e;
776
+ }
777
+ function Ie(e, t, n) {
778
+ return e ? e.concat(t).map(function(s, o) {
779
+ return s = Mt(s), !n && o ? "[" + s + "]" : s;
780
+ }).join(n ? "." : "") : t;
781
+ }
782
+ function _r(e) {
783
+ return a.isArray(e) && !e.some(ve);
784
+ }
785
+ const Pr = a.toFlatObject(a, {}, null, function(t) {
786
+ return /^is[A-Z]/.test(t);
787
+ });
788
+ function Ce(e, t, n) {
789
+ if (!a.isObject(e))
790
+ throw new TypeError("target must be an object");
791
+ t = t || new FormData();
792
+ const r = (m, g) => {
793
+ const b = a.getSafeProp(n, m);
794
+ return a.isUndefined(b) ? g : b;
795
+ }, s = r("metaTokens", !0), o = r("visitor") || S, i = r("dots", !1), c = r("indexes", !1), l = r("Blob") || typeof Blob < "u" && Blob, d = r("maxDepth", $t), f = l && a.isSpecCompliantForm(t), p = [];
796
+ if (!a.isFunction(o))
797
+ throw new TypeError("visitor must be a function");
798
+ function y(m) {
799
+ if (m === null) return "";
800
+ if (a.isDate(m))
801
+ return m.toISOString();
802
+ if (a.isBoolean(m))
803
+ return m.toString();
804
+ if (!f && a.isBlob(m))
805
+ throw new h("Blob is not supported. Use a Buffer instead.");
806
+ if (a.isArrayBuffer(m) || a.isTypedArray(m)) {
807
+ if (f && typeof l == "function")
808
+ return new l([m]);
809
+ throw new h(
810
+ "Blob is not supported. Use a Buffer instead.",
811
+ h.ERR_NOT_SUPPORT
812
+ );
813
+ }
814
+ return m;
815
+ }
816
+ function E(m) {
817
+ if (m > d)
818
+ throw new h(
819
+ "Object is too deeply nested (" + m + " levels). Max depth: " + d,
820
+ h.ERR_FORM_DATA_DEPTH_EXCEEDED
821
+ );
822
+ }
823
+ function R(m, g) {
824
+ if (d === 1 / 0)
825
+ return JSON.stringify(m);
826
+ const b = [];
827
+ return JSON.stringify(m, function(N, A) {
828
+ if (!a.isObject(A))
829
+ return A;
830
+ for (; b.length && b[b.length - 1] !== this; )
831
+ b.pop();
832
+ return b.push(A), E(g + b.length - 1), A;
833
+ });
834
+ }
835
+ function S(m, g, b) {
836
+ let T = m;
837
+ if (a.isReactNative(t) && a.isReactNativeBlob(m))
838
+ return t.append(Ie(b, g, i), y(m)), !1;
839
+ if (m && !b && typeof m == "object") {
840
+ if (a.endsWith(g, "{}"))
841
+ g = s ? g : g.slice(0, -2), m = R(m, 1);
842
+ else if (a.isArray(m) && _r(m) || (a.isFileList(m) || a.endsWith(g, "[]")) && (T = a.toArray(m)))
843
+ return g = Mt(g), T.forEach(function(A, k) {
844
+ !(a.isUndefined(A) || A === null) && t.append(
845
+ // eslint-disable-next-line no-nested-ternary
846
+ c === !0 ? Ie([g], k, i) : c === null ? g : g + "[]",
847
+ y(A)
848
+ );
849
+ }), !1;
850
+ }
851
+ return ve(m) ? !0 : (t.append(Ie(b, g, i), y(m)), !1);
852
+ }
853
+ const P = Object.assign(Pr, {
854
+ defaultVisitor: S,
855
+ convertValue: y,
856
+ isVisitable: ve
857
+ });
858
+ function u(m, g, b = 0) {
859
+ if (!a.isUndefined(m)) {
860
+ if (E(b), p.indexOf(m) !== -1)
861
+ throw new Error("Circular reference detected in " + g.join("."));
862
+ p.push(m), a.forEach(m, function(N, A) {
863
+ (!(a.isUndefined(N) || N === null) && o.call(t, N, a.isString(A) ? A.trim() : A, g, P)) === !0 && u(N, g ? g.concat(A) : [A], b + 1);
864
+ }), p.pop();
865
+ }
866
+ }
867
+ if (!a.isObject(e))
868
+ throw new TypeError("data must be an object");
869
+ return u(e), t;
870
+ }
871
+ function ct(e) {
872
+ const t = {
873
+ "!": "%21",
874
+ "'": "%27",
875
+ "(": "%28",
876
+ ")": "%29",
877
+ "~": "%7E",
878
+ "%20": "+"
879
+ };
880
+ return encodeURIComponent(e).replace(/[!'()~]|%20/g, function(r) {
881
+ return t[r];
882
+ });
883
+ }
884
+ function Je(e, t) {
885
+ this._pairs = [], e && Ce(e, this, t);
886
+ }
887
+ const vt = Je.prototype;
888
+ vt.append = function(t, n) {
889
+ this._pairs.push([t, n]);
890
+ };
891
+ vt.toString = function(t) {
892
+ const n = t ? (r) => t.call(this, r, ct) : ct;
893
+ return this._pairs.map(function(s) {
894
+ return n(s[0]) + "=" + n(s[1]);
895
+ }, "").join("&");
896
+ };
897
+ function Tr(e) {
898
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
899
+ }
900
+ function zt(e, t, n) {
901
+ if (!t)
902
+ return e;
903
+ e = e || "";
904
+ const r = a.isFunction(n) ? {
905
+ serialize: n
906
+ } : n, s = a.getSafeProp(r, "encode") || Tr, o = a.getSafeProp(r, "serialize");
907
+ let i;
908
+ if (o ? i = o(t, r) : i = a.isURLSearchParams(t) ? t.toString() : new Je(t, r).toString(s), i) {
909
+ const c = e.indexOf("#");
910
+ c !== -1 && (e = e.slice(0, c)), e += (e.indexOf("?") === -1 ? "?" : "&") + i;
911
+ }
912
+ return e;
913
+ }
914
+ const ue = Symbol("internals");
915
+ function Wt(e) {
916
+ return e ? e.length : 0;
917
+ }
918
+ function lt(e) {
919
+ if (e)
920
+ for (; e.length && e[e.length - 1] === null; )
921
+ e.pop();
922
+ }
923
+ function fe(e, t) {
924
+ const n = e.handlers, r = Wt(n);
925
+ n !== t.handlersRef ? (t.handlersRef = n, t.handlerEntries.clear()) : r !== t.handlersLength && (r ? t.handlerEntries.forEach(function(o, i) {
926
+ n[o.index] !== o.handler && t.handlerEntries.delete(i);
927
+ }) : t.handlerEntries.clear()), t.handlersLength = r;
928
+ }
929
+ class ut {
930
+ constructor() {
931
+ this.handlers = [], this[ue] = {
932
+ handlersRef: this.handlers,
933
+ handlersLength: this.handlers.length,
934
+ handlerEntries: /* @__PURE__ */ new Map(),
935
+ iterationDepth: 0,
936
+ nextId: 0
937
+ };
938
+ }
939
+ /**
940
+ * Add a new interceptor to the stack
941
+ *
942
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
943
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
944
+ * @param {Object} options The options for the interceptor, synchronous and runWhen
945
+ *
946
+ * @return {Number} An ID used to remove interceptor later
947
+ */
948
+ use(t, n, r) {
949
+ const s = {
950
+ fulfilled: t,
951
+ rejected: n,
952
+ synchronous: r ? r.synchronous : !1,
953
+ runWhen: r ? r.runWhen : null
954
+ }, o = this[ue];
955
+ this.handlers == null && (this.handlers = []), fe(this, o);
956
+ const i = o.nextId++;
957
+ return this.handlers.push(s), o.handlerEntries.set(i, {
958
+ handler: s,
959
+ index: this.handlers.length - 1
960
+ }), o.handlersLength = this.handlers.length, i;
961
+ }
962
+ /**
963
+ * Remove an interceptor from the stack
964
+ *
965
+ * @param {Number} id The ID that was returned by `use`
966
+ *
967
+ * @returns {void}
968
+ */
969
+ eject(t) {
970
+ const n = this[ue];
971
+ fe(this, n);
972
+ const r = n.handlerEntries.get(t);
973
+ if (r) {
974
+ if (n.handlerEntries.delete(t), this.handlers[r.index] !== r.handler)
975
+ return;
976
+ this.handlers[r.index] = null, n.iterationDepth || (lt(this.handlers), n.handlersLength = this.handlers.length);
977
+ }
978
+ }
979
+ /**
980
+ * Clear all interceptors from the stack
981
+ *
982
+ * @returns {void}
983
+ */
984
+ clear() {
985
+ this.handlers && (this.handlers = [], fe(this, this[ue]));
986
+ }
987
+ /**
988
+ * Iterate over all the registered interceptors
989
+ *
990
+ * This method is particularly useful for skipping over any
991
+ * interceptors that may have become `null` calling `eject`.
992
+ *
993
+ * @param {Function} fn The function to call for each interceptor
994
+ *
995
+ * @returns {void}
996
+ */
997
+ forEach(t) {
998
+ const n = this[ue];
999
+ fe(this, n), n.iterationDepth++;
1000
+ try {
1001
+ a.forEach(this.handlers, function(s) {
1002
+ s !== null && t(s);
1003
+ });
1004
+ } finally {
1005
+ --n.iterationDepth || (fe(this, n), lt(this.handlers), n.handlersLength = Wt(this.handlers));
1006
+ }
1007
+ }
1008
+ }
1009
+ const Ke = {
1010
+ silentJSONParsing: !0,
1011
+ forcedJSONParsing: !0,
1012
+ clarifyTimeoutError: !1,
1013
+ legacyInterceptorReqResOrdering: !0,
1014
+ advertiseZstdAcceptEncoding: !1,
1015
+ validateStatusUndefinedResolves: !0
1016
+ }, xr = typeof URLSearchParams < "u" ? URLSearchParams : Je, Cr = typeof FormData < "u" ? FormData : null, Nr = typeof Blob < "u" ? Blob : null, Dr = {
1017
+ isBrowser: !0,
1018
+ classes: {
1019
+ URLSearchParams: xr,
1020
+ FormData: Cr,
1021
+ Blob: Nr
1022
+ },
1023
+ protocols: ["http", "https", "file", "blob", "url", "data"]
1024
+ }, Xe = typeof window < "u" && typeof document < "u", ze = typeof navigator == "object" && navigator || void 0, Ur = Xe && (!ze || ["ReactNative", "NativeScript", "NS"].indexOf(ze.product) < 0), Lr = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1025
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Fr = Xe && window.location.href || "http://localhost", Br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1026
+ __proto__: null,
1027
+ hasBrowserEnv: Xe,
1028
+ hasStandardBrowserEnv: Ur,
1029
+ hasStandardBrowserWebWorkerEnv: Lr,
1030
+ navigator: ze,
1031
+ origin: Fr
1032
+ }, Symbol.toStringTag, { value: "Module" })), x = {
1033
+ ...Br,
1034
+ ...Dr
1035
+ };
1036
+ function jr(e, t) {
1037
+ return Ce(e, new x.classes.URLSearchParams(), {
1038
+ visitor: function(n, r, s, o) {
1039
+ return x.isNode && a.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
1040
+ },
1041
+ ...t
1042
+ });
1043
+ }
1044
+ const ft = $t;
1045
+ function Vt(e) {
1046
+ if (e > ft)
1047
+ throw new h(
1048
+ "FormData field is too deeply nested (" + e + " levels). Max depth: " + ft,
1049
+ h.ERR_FORM_DATA_DEPTH_EXCEEDED
1050
+ );
1051
+ }
1052
+ function Ir(e) {
1053
+ const t = [], n = /[^.[\]]+|\[([^.[\]]*)]/g;
1054
+ let r;
1055
+ for (; (r = n.exec(e)) !== null; )
1056
+ Vt(t.length), t.push(r[0] === "[]" ? "" : r[1] || r[0]);
1057
+ return t;
1058
+ }
1059
+ function kr(e) {
1060
+ const t = {}, n = Object.keys(e);
1061
+ let r;
1062
+ const s = n.length;
1063
+ let o;
1064
+ for (r = 0; r < s; r++)
1065
+ o = n[r], t[o] = e[o];
1066
+ return t;
1067
+ }
1068
+ function Jt(e) {
1069
+ function t(n, r, s, o) {
1070
+ Vt(o);
1071
+ let i = n[o++];
1072
+ if (i === "__proto__") return !0;
1073
+ const c = Number.isFinite(+i), l = o >= n.length;
1074
+ return i = !i && a.isArray(s) ? s.length : i, l ? (a.hasOwnProp(s, i) ? s[i] = a.isArray(s[i]) ? s[i].concat(r) : [s[i], r] : s[i] = r, !c) : ((!a.hasOwnProp(s, i) || !a.isObject(s[i])) && (s[i] = []), t(n, r, s[i], o) && a.isArray(s[i]) && (s[i] = kr(s[i])), !c);
1075
+ }
1076
+ if (a.isFormData(e) && a.isFunction(e.entries)) {
1077
+ const n = {};
1078
+ return a.forEachEntry(e, (r, s) => {
1079
+ t(Ir(r), s, n, 0);
1080
+ }), n;
1081
+ }
1082
+ return null;
1083
+ }
1084
+ const Kt = Object.freeze([
1085
+ "get",
1086
+ "delete",
1087
+ "head",
1088
+ "options",
1089
+ "post",
1090
+ "put",
1091
+ "patch",
1092
+ "purge",
1093
+ "link",
1094
+ "unlink",
1095
+ "query"
1096
+ ]), re = (e, t) => e != null && a.hasOwnProp(e, t) ? e[t] : void 0;
1097
+ function qr(e, t, n) {
1098
+ if (a.isString(e))
1099
+ try {
1100
+ return (t || JSON.parse)(e), a.trim(e);
1101
+ } catch (r) {
1102
+ if (r.name !== "SyntaxError")
1103
+ throw r;
1104
+ }
1105
+ return (n || JSON.stringify)(e);
1106
+ }
1107
+ const ye = {
1108
+ transitional: Ke,
1109
+ adapter: ["xhr", "http", "fetch"],
1110
+ transformRequest: [
1111
+ function(t, n) {
1112
+ const r = n.getContentType() || "", s = r.indexOf("application/json") > -1, o = a.isObject(t);
1113
+ if (o && a.isHTMLForm(t) && (t = new FormData(t)), a.isFormData(t))
1114
+ return s ? JSON.stringify(Jt(t)) : t;
1115
+ if (a.isArrayBuffer(t) || a.isBuffer(t) || a.isStream(t) || a.isFile(t) || a.isBlob(t) || a.isReadableStream(t))
1116
+ return t;
1117
+ if (a.isArrayBufferView(t))
1118
+ return t.buffer;
1119
+ if (a.isURLSearchParams(t))
1120
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
1121
+ let c;
1122
+ if (o) {
1123
+ const l = re(this, "formSerializer");
1124
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
1125
+ return jr(t, l).toString();
1126
+ if ((c = a.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
1127
+ const d = re(this, "env"), f = d && d.FormData;
1128
+ return Ce(
1129
+ c ? { "files[]": t } : t,
1130
+ f && new f(),
1131
+ l
1132
+ );
1133
+ }
1134
+ }
1135
+ return o || s ? (n.setContentType("application/json", !1), qr(t)) : t;
1136
+ }
1137
+ ],
1138
+ transformResponse: [
1139
+ function(t) {
1140
+ const n = re(this, "transitional") || ye.transitional, r = n && n.forcedJSONParsing, s = re(this, "responseType"), o = s === "json";
1141
+ if (a.isResponse(t) || a.isReadableStream(t))
1142
+ return t;
1143
+ if (t && a.isString(t) && (r && !s || o)) {
1144
+ const c = !(n && n.silentJSONParsing) && o;
1145
+ try {
1146
+ return JSON.parse(t, re(this, "parseReviver"));
1147
+ } catch (l) {
1148
+ if (c)
1149
+ throw l.name === "SyntaxError" ? h.from(l, h.ERR_BAD_RESPONSE, this, null, re(this, "response")) : l;
1150
+ }
1151
+ }
1152
+ return t;
1153
+ }
1154
+ ],
1155
+ /**
1156
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
1157
+ * timeout is not created.
1158
+ */
1159
+ timeout: 0,
1160
+ xsrfCookieName: "XSRF-TOKEN",
1161
+ xsrfHeaderName: "X-XSRF-TOKEN",
1162
+ maxContentLength: -1,
1163
+ maxBodyLength: -1,
1164
+ env: {
1165
+ FormData: x.classes.FormData,
1166
+ Blob: x.classes.Blob
1167
+ },
1168
+ validateStatus: function(t) {
1169
+ return t >= 200 && t < 300;
1170
+ },
1171
+ headers: {
1172
+ common: {
1173
+ Accept: "application/json, text/plain, */*",
1174
+ "Content-Type": void 0
1175
+ }
1176
+ }
1177
+ };
1178
+ a.forEach(Kt, (e) => {
1179
+ ye.headers[e] = {};
1180
+ });
1181
+ function ke(e, t) {
1182
+ const n = this || ye, r = t || n, s = L.from(r.headers);
1183
+ let o = r.data;
1184
+ return a.forEach(e, function(c) {
1185
+ o = c.call(n, o, s.normalize(), t ? t.status : void 0);
1186
+ }), s.normalize(), o;
1187
+ }
1188
+ function Xt(e) {
1189
+ return !!(e && e.__CANCEL__);
1190
+ }
1191
+ let be = class extends h {
1192
+ /**
1193
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
1194
+ *
1195
+ * @param {string=} message The message.
1196
+ * @param {Object=} config The config.
1197
+ * @param {Object=} request The request.
1198
+ *
1199
+ * @returns {CanceledError} The created error.
1200
+ */
1201
+ constructor(t, n, r) {
1202
+ super(t ?? "canceled", h.ERR_CANCELED, n, r), this.name = "CanceledError", this.__CANCEL__ = !0;
1203
+ }
1204
+ };
1205
+ function Gt(e, t, n) {
1206
+ const r = n.config.validateStatus;
1207
+ !n.status || !r || r(n.status) ? e(n) : t(new h(
1208
+ "Request failed with status code " + n.status,
1209
+ n.status >= 400 && n.status < 500 ? h.ERR_BAD_REQUEST : h.ERR_BAD_RESPONSE,
1210
+ n.config,
1211
+ n.request,
1212
+ n
1213
+ ));
1214
+ }
1215
+ const Hr = /[\t\n\r]/g;
1216
+ function Qt(e) {
1217
+ if (typeof e != "string")
1218
+ return e;
1219
+ let t = 0;
1220
+ for (; t < e.length && e.charCodeAt(t) <= 32; )
1221
+ t++;
1222
+ return e.slice(t).replace(Hr, "");
1223
+ }
1224
+ function qe(e) {
1225
+ const t = /^([-+\w]{1,25}):(?:\/\/)?/.exec(e);
1226
+ return t && t[1] || "";
1227
+ }
1228
+ function $r(e, t) {
1229
+ e = e || 10;
1230
+ const n = new Array(e), r = new Array(e);
1231
+ let s = 0, o = 0, i;
1232
+ return t = t !== void 0 ? t : 1e3, function(l) {
1233
+ const d = Date.now(), f = r[o];
1234
+ i || (i = d), n[s] = l, r[s] = d;
1235
+ let p = o, y = 0;
1236
+ for (; p !== s; )
1237
+ y += n[p++], p = p % e;
1238
+ if (s = (s + 1) % e, s === o && (o = (o + 1) % e), d - i < t)
1239
+ return;
1240
+ const E = f && d - f;
1241
+ return E ? Math.round(y * 1e3 / E) : void 0;
1242
+ };
1243
+ }
1244
+ function Mr(e, t) {
1245
+ let n = 0, r = 1e3 / t, s, o;
1246
+ const i = (f, p = Date.now()) => {
1247
+ n = p, s = null, o && (clearTimeout(o), o = null), e(...f);
1248
+ };
1249
+ return [(...f) => {
1250
+ const p = Date.now(), y = p - n;
1251
+ y >= r ? i(f, p) : (s = f, o || (o = setTimeout(() => {
1252
+ o = null, i(s);
1253
+ }, r - y)));
1254
+ }, () => s && i(s), (...f) => i(f)];
1255
+ }
1256
+ const Te = (e, t, n = 3) => {
1257
+ let r = 0;
1258
+ const s = $r(50, 250);
1259
+ return Mr((o) => {
1260
+ if (!o || !a.isNumber(o.loaded))
1261
+ return;
1262
+ const i = o.loaded, c = o.lengthComputable ? o.total : void 0, l = Math.max(0, c != null ? Math.min(i, c) : i), d = Math.max(0, l - r), f = s(d);
1263
+ r = Math.max(r, l);
1264
+ const p = {
1265
+ loaded: l,
1266
+ total: c,
1267
+ progress: c ? l / c : void 0,
1268
+ bytes: d,
1269
+ rate: f || void 0,
1270
+ estimated: f && c ? (c - l) / f : void 0,
1271
+ event: o,
1272
+ lengthComputable: c != null,
1273
+ [t ? "download" : "upload"]: !0
1274
+ };
1275
+ e(p);
1276
+ }, n);
1277
+ }, dt = (e, t) => {
1278
+ const n = e != null;
1279
+ return [
1280
+ (r) => t[0]({
1281
+ lengthComputable: n,
1282
+ total: e,
1283
+ loaded: r
1284
+ }),
1285
+ t[1]
1286
+ ];
1287
+ }, pt = (e, t = a.asap) => (...n) => t(() => e(...n)), vr = x.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, x.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
1288
+ new URL(x.origin),
1289
+ x.navigator && /(msie|trident)/i.test(x.navigator.userAgent)
1290
+ ) : () => !0, zr = x.hasStandardBrowserEnv ? (
1291
+ // Standard browser envs support document.cookie
1292
+ {
1293
+ write(e, t, n, r, s, o, i) {
1294
+ if (typeof document > "u") return;
1295
+ const c = [`${e}=${encodeURIComponent(t)}`];
1296
+ a.isNumber(n) && c.push(`expires=${new Date(n).toUTCString()}`), a.isString(r) && c.push(`path=${r}`), a.isString(s) && c.push(`domain=${s}`), o === !0 && c.push("secure"), a.isString(i) && c.push(`SameSite=${i}`), document.cookie = c.join("; ");
1297
+ },
1298
+ read(e) {
1299
+ if (typeof document > "u") return null;
1300
+ const t = document.cookie.split(";");
1301
+ for (let n = 0; n < t.length; n++) {
1302
+ const r = t[n].replace(/^\s+/, ""), s = r.indexOf("=");
1303
+ if (s !== -1 && r.slice(0, s) === e)
1304
+ try {
1305
+ return decodeURIComponent(r.slice(s + 1));
1306
+ } catch {
1307
+ return r.slice(s + 1);
1308
+ }
1309
+ }
1310
+ return null;
1311
+ },
1312
+ remove(e) {
1313
+ this.write(e, "", Date.now() - 864e5, "/");
1314
+ }
1315
+ }
1316
+ ) : (
1317
+ // Non-standard browser env (web workers, react-native) lack needed support.
1318
+ {
1319
+ write() {
1320
+ },
1321
+ read() {
1322
+ return null;
1323
+ },
1324
+ remove() {
1325
+ }
1326
+ }
1327
+ );
1328
+ function Wr(e) {
1329
+ return typeof e != "string" ? !1 : /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
1330
+ }
1331
+ function Vr(e, t) {
1332
+ if (!t)
1333
+ return e;
1334
+ let n = e.length;
1335
+ for (; n > 0 && e.charCodeAt(n - 1) === 47; )
1336
+ n--;
1337
+ return e.slice(0, n) + "/" + t.replace(/^\/+/, "");
1338
+ }
1339
+ const Jr = /^https?:(?!\/\/)/i;
1340
+ function Kr(e) {
1341
+ return e && e.replace(/(^|&)([^=&]*=)?[^&]+/g, (t, n, r = "") => `${n}${r}${Pe}`);
1342
+ }
1343
+ function Xr(e) {
1344
+ const t = e.replace(/^(https?:\/{0,2})[^/?#]*@/i, `$1${Pe}@`), n = t.indexOf("#"), s = (n === -1 ? t : t.slice(0, n)).replace(
1345
+ /([?&][^=&#]*=)[^&#]*/g,
1346
+ `$1${Pe}`
1347
+ );
1348
+ return n === -1 ? s : `${s}#${Kr(t.slice(n + 1))}`;
1349
+ }
1350
+ function ht(e, t) {
1351
+ if (typeof e == "string") {
1352
+ const n = Qt(e);
1353
+ if (Jr.test(n))
1354
+ throw new h(
1355
+ `Invalid URL ${JSON.stringify(Xr(n))}: missing "//" after protocol`,
1356
+ h.ERR_INVALID_URL,
1357
+ t
1358
+ );
1359
+ }
1360
+ }
1361
+ function Zt(e, t, n, r) {
1362
+ ht(t, r);
1363
+ let s = !Wr(t);
1364
+ return e && (s || n === !1) ? (ht(e, r), Vr(e, t)) : t;
1365
+ }
1366
+ const mt = (e) => e instanceof L ? { ...e } : e, Gr = (e) => Object.getOwnPropertySymbols && Object.getOwnPropertyDescriptor ? Object.keys(e).concat(
1367
+ Object.getOwnPropertySymbols(e).filter(
1368
+ (t) => Object.getOwnPropertyDescriptor(e, t).enumerable
1369
+ )
1370
+ ) : Object.keys(e);
1371
+ function te(e, t) {
1372
+ e = e || {}, t = t || {};
1373
+ const n = /* @__PURE__ */ Object.create(null);
1374
+ Object.defineProperty(n, "hasOwnProperty", {
1375
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
1376
+ // this data descriptor into an accessor descriptor on the way in.
1377
+ __proto__: null,
1378
+ value: Object.prototype.hasOwnProperty,
1379
+ enumerable: !1,
1380
+ writable: !0,
1381
+ configurable: !0
1382
+ });
1383
+ function r(f, p, y, E) {
1384
+ return a.isPlainObject(f) && a.isPlainObject(p) ? a.merge.call({ caseless: E }, f, p) : a.isPlainObject(p) ? a.merge({}, p) : a.isArray(p) ? p.slice() : p;
1385
+ }
1386
+ function s(f, p, y, E) {
1387
+ if (a.isUndefined(p)) {
1388
+ if (!a.isUndefined(f))
1389
+ return r(void 0, f, y, E);
1390
+ } else return r(f, p, y, E);
1391
+ }
1392
+ function o(f, p) {
1393
+ if (!a.isUndefined(p))
1394
+ return r(void 0, p);
1395
+ }
1396
+ function i(f, p) {
1397
+ if (a.isUndefined(p)) {
1398
+ if (!a.isUndefined(f))
1399
+ return r(void 0, f);
1400
+ } else return r(void 0, p);
1401
+ }
1402
+ function c(f) {
1403
+ const p = a.hasOwnProp(t, "transitional") ? t.transitional : void 0;
1404
+ if (!a.isUndefined(p))
1405
+ if (a.isPlainObject(p)) {
1406
+ if (a.hasOwnProp(p, f))
1407
+ return p[f];
1408
+ } else
1409
+ return;
1410
+ const y = a.hasOwnProp(e, "transitional") ? e.transitional : void 0;
1411
+ if (a.isPlainObject(y) && a.hasOwnProp(y, f))
1412
+ return y[f];
1413
+ }
1414
+ function l(f, p, y) {
1415
+ if (a.hasOwnProp(t, y))
1416
+ return r(f, p);
1417
+ if (a.hasOwnProp(e, y))
1418
+ return r(void 0, f);
1419
+ }
1420
+ const d = {
1421
+ url: o,
1422
+ method: o,
1423
+ data: o,
1424
+ baseURL: i,
1425
+ transformRequest: i,
1426
+ transformResponse: i,
1427
+ paramsSerializer: i,
1428
+ timeout: i,
1429
+ timeoutErrorMessage: i,
1430
+ withCredentials: i,
1431
+ withXSRFToken: i,
1432
+ adapter: i,
1433
+ responseType: i,
1434
+ xsrfCookieName: i,
1435
+ xsrfHeaderName: i,
1436
+ onUploadProgress: i,
1437
+ onDownloadProgress: i,
1438
+ decompress: i,
1439
+ maxContentLength: i,
1440
+ maxBodyLength: i,
1441
+ beforeRedirect: i,
1442
+ transport: i,
1443
+ httpAgent: i,
1444
+ httpsAgent: i,
1445
+ cancelToken: i,
1446
+ socketPath: i,
1447
+ allowedSocketPaths: i,
1448
+ responseEncoding: i,
1449
+ validateStatus: l,
1450
+ headers: (f, p, y) => s(mt(f), mt(p), y, !0)
1451
+ };
1452
+ return a.forEach(Gr({ ...e, ...t }), function(p) {
1453
+ if (p === "__proto__" || p === "constructor" || p === "prototype") return;
1454
+ const y = a.hasOwnProp(d, p) ? d[p] : s, E = a.hasOwnProp(e, p) ? e[p] : void 0, R = a.hasOwnProp(t, p) ? t[p] : void 0, S = y(E, R, p);
1455
+ a.isUndefined(S) && y !== l || (n[p] = S);
1456
+ }), a.hasOwnProp(t, "validateStatus") && a.isUndefined(t.validateStatus) && c("validateStatusUndefinedResolves") === !1 && (a.hasOwnProp(e, "validateStatus") ? n.validateStatus = r(void 0, e.validateStatus) : delete n.validateStatus), n;
1457
+ }
1458
+ const Qr = ["content-type", "content-length"];
1459
+ function Zr(e, t, n) {
1460
+ if (n !== "content-only") {
1461
+ e.set(t);
1462
+ return;
1463
+ }
1464
+ Object.entries(t || {}).forEach(([r, s]) => {
1465
+ Qr.includes(r.toLowerCase()) && e.set(r, s);
1466
+ });
1467
+ }
1468
+ const Yr = (e) => encodeURIComponent(e).replace(
1469
+ /%([0-9A-F]{2})/gi,
1470
+ (t, n) => String.fromCharCode(parseInt(n, 16))
1471
+ );
1472
+ function Yt(e) {
1473
+ const t = te({}, e), n = (y) => a.hasOwnProp(t, y) ? t[y] : void 0, r = n("data");
1474
+ let s = n("withXSRFToken");
1475
+ const o = n("xsrfHeaderName"), i = n("xsrfCookieName");
1476
+ let c = n("headers");
1477
+ const l = n("auth"), d = n("baseURL"), f = n("allowAbsoluteUrls"), p = n("url");
1478
+ if (t.headers = c = L.from(c), t.url = zt(
1479
+ Zt(d, p, f, t),
1480
+ n("params"),
1481
+ n("paramsSerializer")
1482
+ ), l) {
1483
+ const y = a.getSafeProp(l, "username") || "", E = a.getSafeProp(l, "password") || "";
1484
+ try {
1485
+ c.set(
1486
+ "Authorization",
1487
+ "Basic " + btoa(y + ":" + (E ? Yr(E) : ""))
1488
+ );
1489
+ } catch (R) {
1490
+ throw h.from(R, h.ERR_BAD_OPTION_VALUE, e);
1491
+ }
1492
+ }
1493
+ if (a.isFormData(r)) {
1494
+ const y = a.getSafeProp(r, "getHeaders");
1495
+ x.hasStandardBrowserEnv || x.hasStandardBrowserWebWorkerEnv || a.isReactNative(r) ? c.setContentType(void 0) : a.isFunction(y) && Zr(c, y.call(r), n("formDataHeaderPolicy"));
1496
+ }
1497
+ if (x.hasStandardBrowserEnv && (a.isFunction(s) && (s = s(t)), s === !0 || s == null && vr(t.url))) {
1498
+ const E = o && i && zr.read(i);
1499
+ E && c.set(o, E);
1500
+ }
1501
+ return t;
1502
+ }
1503
+ const es = typeof XMLHttpRequest < "u", ts = es && function(e) {
1504
+ return new Promise(function(n, r) {
1505
+ const s = Yt(e);
1506
+ let o = s.data;
1507
+ const i = L.from(s.headers).normalize();
1508
+ let { responseType: c, onUploadProgress: l, onDownloadProgress: d } = s, f, p, y, E, R, S;
1509
+ function P() {
1510
+ E && E(), R && R(), s.cancelToken && s.cancelToken.unsubscribe(f), s.signal && s.signal.removeEventListener("abort", f);
1511
+ }
1512
+ let u = new XMLHttpRequest();
1513
+ u.open(s.method.toUpperCase(), s.url, !0), u.timeout = s.timeout;
1514
+ function m(b) {
1515
+ if (!u)
1516
+ return;
1517
+ if (u.status === 0 && (qe(Qt(s.url)) || qe(x.origin)) !== "file" && !(u.responseURL && u.responseURL.startsWith("file:"))) {
1518
+ r(new h("Request aborted", h.ECONNABORTED, e, u)), P(), u = null;
1519
+ return;
1520
+ }
1521
+ try {
1522
+ b ? S && S(b) : R && R();
1523
+ } catch (k) {
1524
+ setTimeout(() => {
1525
+ throw k;
1526
+ });
1527
+ }
1528
+ if (!u)
1529
+ return;
1530
+ const T = L.from(
1531
+ "getAllResponseHeaders" in u && u.getAllResponseHeaders()
1532
+ ), A = {
1533
+ data: !c || c === "text" || c === "json" ? u.responseText : u.response,
1534
+ status: u.status,
1535
+ statusText: u.statusText,
1536
+ headers: T,
1537
+ config: e,
1538
+ request: u
1539
+ };
1540
+ Gt(
1541
+ function(K) {
1542
+ n(K), P();
1543
+ },
1544
+ function(K) {
1545
+ r(K), P();
1546
+ },
1547
+ A
1548
+ ), u = null;
1549
+ }
1550
+ "onloadend" in u ? u.onloadend = m : u.onreadystatechange = function() {
1551
+ !u || u.readyState !== 4 || u.status === 0 && !(u.responseURL && u.responseURL.startsWith("file:")) || setTimeout(m);
1552
+ }, u.onabort = function() {
1553
+ u && (r(new h("Request aborted", h.ECONNABORTED, e, u)), P(), u = null);
1554
+ }, u.onerror = function(T) {
1555
+ const N = T && T.message ? T.message : "Network Error", A = new h(N, h.ERR_NETWORK, e, u);
1556
+ A.event = T || null, r(A), P(), u = null;
1557
+ }, u.ontimeout = function() {
1558
+ let T = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
1559
+ const N = s.transitional || Ke;
1560
+ s.timeoutErrorMessage && (T = s.timeoutErrorMessage), r(
1561
+ new h(
1562
+ T,
1563
+ N.clarifyTimeoutError ? h.ETIMEDOUT : h.ECONNABORTED,
1564
+ e,
1565
+ u
1566
+ )
1567
+ ), P(), u = null;
1568
+ }, o === void 0 && i.setContentType(null), "setRequestHeader" in u && a.forEach(qt(i), function(T, N) {
1569
+ u.setRequestHeader(N, T);
1570
+ }), a.isUndefined(s.withCredentials) || (u.withCredentials = !!s.withCredentials), c && c !== "json" && (u.responseType = s.responseType), d && ([y, R, S] = Te(
1571
+ d,
1572
+ !0
1573
+ ), u.addEventListener("progress", y)), l && u.upload && ([p, E] = Te(l), u.upload.addEventListener("progress", p), u.upload.addEventListener("loadend", E)), (s.cancelToken || s.signal) && (f = (b) => {
1574
+ u && (r(!b || b.type ? new be(null, e, u) : b), u.abort(), P(), u = null);
1575
+ }, s.cancelToken && s.cancelToken.subscribe(f), s.signal && (s.signal.aborted ? f() : s.signal.addEventListener("abort", f)));
1576
+ const g = qe(s.url);
1577
+ if (g && !x.protocols.includes(g)) {
1578
+ r(
1579
+ new h(
1580
+ "Unsupported protocol " + g + ":",
1581
+ h.ERR_BAD_REQUEST,
1582
+ e
1583
+ )
1584
+ ), P();
1585
+ return;
1586
+ }
1587
+ u.send(o || null);
1588
+ });
1589
+ }, ns = (e, t) => {
1590
+ if (e = e ? e.filter(Boolean) : [], !t && !e.length)
1591
+ return;
1592
+ const n = new AbortController();
1593
+ let r = !1;
1594
+ const s = function(l) {
1595
+ if (!r) {
1596
+ r = !0, i();
1597
+ const d = l instanceof Error ? l : this.reason;
1598
+ n.abort(
1599
+ d instanceof h ? d : new be(d instanceof Error ? d.message : d)
1600
+ );
1601
+ }
1602
+ };
1603
+ let o = t && setTimeout(() => {
1604
+ o = null, s(new h(`timeout of ${t}ms exceeded`, h.ETIMEDOUT));
1605
+ }, t);
1606
+ const i = () => {
1607
+ e && (o && clearTimeout(o), o = null, e.forEach((l) => {
1608
+ l.unsubscribe ? l.unsubscribe(s) : l.removeEventListener("abort", s);
1609
+ }), e = null);
1610
+ };
1611
+ e.forEach((l) => {
1612
+ if (!r) {
1613
+ if (l.aborted) {
1614
+ s.call(l);
1615
+ return;
1616
+ }
1617
+ l.addEventListener("abort", s, { once: !0 });
1618
+ }
1619
+ });
1620
+ const { signal: c } = n;
1621
+ return c.unsubscribe = () => a.asap(i), c;
1622
+ }, rs = function* (e, t) {
1623
+ let n = e.byteLength;
1624
+ if (n < t) {
1625
+ yield e;
1626
+ return;
1627
+ }
1628
+ let r = 0, s;
1629
+ for (; r < n; )
1630
+ s = r + t, yield e.slice(r, s), r = s;
1631
+ }, ss = async function* (e, t) {
1632
+ for await (const n of os(e))
1633
+ yield* rs(n, t);
1634
+ }, os = async function* (e) {
1635
+ if (e[Symbol.asyncIterator]) {
1636
+ yield* e;
1637
+ return;
1638
+ }
1639
+ const t = e.getReader();
1640
+ try {
1641
+ for (; ; ) {
1642
+ const { done: n, value: r } = await t.read();
1643
+ if (n)
1644
+ break;
1645
+ yield r;
1646
+ }
1647
+ } finally {
1648
+ await t.cancel();
1649
+ }
1650
+ }, yt = (e, t, n, r) => {
1651
+ const s = ss(e, t);
1652
+ let o = 0, i, c = (l) => {
1653
+ i || (i = !0, r && r(l));
1654
+ };
1655
+ return new ReadableStream(
1656
+ {
1657
+ async pull(l) {
1658
+ try {
1659
+ const { done: d, value: f } = await s.next();
1660
+ if (d) {
1661
+ c(), l.close();
1662
+ return;
1663
+ }
1664
+ let p = f.byteLength;
1665
+ if (n) {
1666
+ let y = o += p;
1667
+ n(y);
1668
+ }
1669
+ l.enqueue(new Uint8Array(f));
1670
+ } catch (d) {
1671
+ throw c(d), d;
1672
+ }
1673
+ },
1674
+ cancel(l) {
1675
+ return c(l), s.return();
1676
+ }
1677
+ },
1678
+ {
1679
+ highWaterMark: 2
1680
+ }
1681
+ );
1682
+ }, bt = (e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, en = (e, t, n) => t + 2 < n && bt(e.charCodeAt(t + 1)) && bt(e.charCodeAt(t + 2)), wt = (e) => e <= 57 ? e - 48 : (e & 223) - 55, is = (e) => e >= 65 && e <= 90 || // A-Z
1683
+ e >= 97 && e <= 122 || // a-z
1684
+ e >= 48 && e <= 57 || // 0-9
1685
+ e === 43 || // +
1686
+ e === 47 || // /
1687
+ e === 45 || // - (base64url)
1688
+ e === 95, as = (e) => e === 9 || e === 10 || e === 12 || e === 13 || e === 32, cs = (e) => {
1689
+ const t = Math.floor(e / 4), n = e % 4;
1690
+ return t * 3 + (n === 2 ? 1 : n === 3 ? 2 : 0);
1691
+ }, ls = (e) => {
1692
+ const t = e.length;
1693
+ let n = 0;
1694
+ return t > 0 && e.charCodeAt(t - 1) === 61 && (n++, t > 1 && e.charCodeAt(t - 2) === 61 && n++), Math.floor((t - n) * 3 / 4);
1695
+ }, us = (e) => {
1696
+ const t = e.length;
1697
+ let n = 0, r = 0, s = !1;
1698
+ for (let o = 0; o < t; o++) {
1699
+ let i = e.charCodeAt(o);
1700
+ if (i === 37 && en(e, o, t) && (i = wt(e.charCodeAt(o + 1)) * 16 + wt(e.charCodeAt(o + 2)), o += 2), !as(i)) {
1701
+ if (i === 61) {
1702
+ r++;
1703
+ continue;
1704
+ }
1705
+ if (!is(i) || r > 0) {
1706
+ s = !0;
1707
+ continue;
1708
+ }
1709
+ n++;
1710
+ }
1711
+ }
1712
+ return s || r > 2 || r > 0 && (n + r) % 4 !== 0 || n % 4 === 1 ? ls(e) : cs(n);
1713
+ }, fs = (e, t) => {
1714
+ if (!e || typeof e != "string" || !e.startsWith("data:")) return 0;
1715
+ const n = e.indexOf(",");
1716
+ if (n < 0) return 0;
1717
+ const r = e.slice(5, n), s = e.slice(n + 1);
1718
+ if (/;base64/i.test(r))
1719
+ return t(s);
1720
+ let i = 0;
1721
+ for (let c = 0, l = s.length; c < l; c++) {
1722
+ const d = s.charCodeAt(c);
1723
+ if (d === 37 && en(s, c, l))
1724
+ i += 1, c += 2;
1725
+ else if (d < 128)
1726
+ i += 1;
1727
+ else if (d < 2048)
1728
+ i += 2;
1729
+ else if (d >= 55296 && d <= 56319 && c + 1 < l) {
1730
+ const f = s.charCodeAt(c + 1);
1731
+ f >= 56320 && f <= 57343 ? (i += 4, c++) : i += 3;
1732
+ } else
1733
+ i += 3;
1734
+ }
1735
+ return i;
1736
+ };
1737
+ function ds(e) {
1738
+ const t = typeof e == "string" ? e.indexOf("#") : -1;
1739
+ return fs(
1740
+ t === -1 ? e : e.slice(0, t),
1741
+ us
1742
+ );
1743
+ }
1744
+ const Ge = "1.20.0", gt = 64 * 1024, ps = {
1745
+ cache: "default",
1746
+ redirect: "follow",
1747
+ referrer: "about:client",
1748
+ referrerPolicy: "",
1749
+ mode: "cors",
1750
+ integrity: "",
1751
+ keepalive: !1,
1752
+ priority: "auto",
1753
+ window: null
1754
+ }, { isFunction: Re } = a, hs = (e) => encodeURIComponent(e).replace(
1755
+ /%([0-9A-F]{2})/gi,
1756
+ (t, n) => String.fromCharCode(parseInt(n, 16))
1757
+ ), Et = (e) => {
1758
+ if (!a.isString(e))
1759
+ return e;
1760
+ try {
1761
+ return decodeURIComponent(e);
1762
+ } catch {
1763
+ return e;
1764
+ }
1765
+ }, Rt = (e, ...t) => {
1766
+ try {
1767
+ return !!e(...t);
1768
+ } catch {
1769
+ return !1;
1770
+ }
1771
+ }, ms = (e) => {
1772
+ const t = e.indexOf("://");
1773
+ let n = e;
1774
+ return t !== -1 && (n = n.slice(t + 3)), n.includes("@") || n.includes(":");
1775
+ }, ys = (e) => {
1776
+ const t = a.global !== void 0 && a.global !== null ? a.global : globalThis, { ReadableStream: n, TextEncoder: r } = t;
1777
+ e = a.merge.call(
1778
+ {
1779
+ skipUndefined: !0
1780
+ },
1781
+ {
1782
+ Request: t.Request,
1783
+ Response: t.Response
1784
+ },
1785
+ e
1786
+ );
1787
+ const { fetch: s, Request: o, Response: i } = e, c = s ? Re(s) : typeof fetch == "function", l = Re(o), d = Re(i);
1788
+ if (!c)
1789
+ return !1;
1790
+ const f = c && Re(n), p = c && (typeof r == "function" ? /* @__PURE__ */ ((u) => (m) => u.encode(m))(new r()) : async (u) => new Uint8Array(await new o(u).arrayBuffer())), y = l && f && Rt(() => {
1791
+ let u = !1;
1792
+ const m = new o(x.origin, {
1793
+ body: new n(),
1794
+ method: "POST",
1795
+ get duplex() {
1796
+ return u = !0, "half";
1797
+ }
1798
+ }), g = m.headers.has("Content-Type");
1799
+ return m.body != null && m.body.cancel(), u && !g;
1800
+ }), E = d && f && Rt(() => a.isReadableStream(new i("").body)), R = {
1801
+ stream: E && ((u) => u.body)
1802
+ };
1803
+ c && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
1804
+ !R[u] && (R[u] = (m, g) => {
1805
+ let b = m && m[u];
1806
+ if (b)
1807
+ return b.call(m);
1808
+ throw new h(
1809
+ `Response type '${u}' is not supported`,
1810
+ h.ERR_NOT_SUPPORT,
1811
+ g
1812
+ );
1813
+ });
1814
+ });
1815
+ const S = async (u) => {
1816
+ if (u == null)
1817
+ return 0;
1818
+ if (a.isBlob(u))
1819
+ return u.size;
1820
+ if (a.isSpecCompliantForm(u))
1821
+ return (await new o(x.origin, {
1822
+ method: "POST",
1823
+ body: u
1824
+ }).arrayBuffer()).byteLength;
1825
+ if (a.isArrayBufferView(u) || a.isArrayBuffer(u))
1826
+ return u.byteLength;
1827
+ if (a.isURLSearchParams(u) && (u = u + ""), a.isString(u))
1828
+ return (await p(u)).byteLength;
1829
+ }, P = async (u, m) => {
1830
+ const g = a.toFiniteNumber(u.getContentLength());
1831
+ return g ?? S(m);
1832
+ };
1833
+ return async (u) => {
1834
+ let {
1835
+ url: m,
1836
+ method: g,
1837
+ data: b,
1838
+ signal: T,
1839
+ cancelToken: N,
1840
+ timeout: A,
1841
+ onDownloadProgress: k,
1842
+ onUploadProgress: K,
1843
+ responseType: v,
1844
+ headers: z,
1845
+ withCredentials: we = "same-origin",
1846
+ fetchOptions: De,
1847
+ maxContentLength: q,
1848
+ maxBodyLength: ge,
1849
+ maxRedirects: an
1850
+ } = Yt(u);
1851
+ const ie = a.isNumber(q) && q > -1, Ue = a.isNumber(ge) && ge > -1, cn = (O) => a.hasOwnProp(u, O) ? u[O] : void 0;
1852
+ let Ze = s || fetch;
1853
+ v = v ? (v + "").toLowerCase() : "text";
1854
+ let W = ns(
1855
+ [T, N && N.toAbortSignal()],
1856
+ A
1857
+ ), C = null;
1858
+ const X = W && W.unsubscribe && (() => {
1859
+ W.unsubscribe();
1860
+ });
1861
+ let ne, ae = null;
1862
+ const Ye = () => new h(
1863
+ "Request body larger than maxBodyLength limit",
1864
+ h.ERR_BAD_REQUEST,
1865
+ u,
1866
+ C
1867
+ );
1868
+ try {
1869
+ let O;
1870
+ const B = cn("auth");
1871
+ if (B) {
1872
+ const w = a.getSafeProp(B, "username") || "", D = a.getSafeProp(B, "password") || "";
1873
+ O = {
1874
+ username: w,
1875
+ password: D
1876
+ };
1877
+ }
1878
+ if (ms(m)) {
1879
+ const w = new URL(m, x.origin);
1880
+ if (!O && (w.username || w.password)) {
1881
+ const D = Et(w.username), V = Et(w.password);
1882
+ O = {
1883
+ username: D,
1884
+ password: V
1885
+ };
1886
+ }
1887
+ (w.username || w.password) && (w.username = "", w.password = "", m = w.href);
1888
+ }
1889
+ if (O && (z.delete("authorization"), z.set(
1890
+ "Authorization",
1891
+ "Basic " + btoa(hs((O.username || "") + ":" + (O.password || "")))
1892
+ )), ie && typeof m == "string" && m.startsWith("data:") && ds(m) > q)
1893
+ throw new h(
1894
+ "maxContentLength size of " + q + " exceeded",
1895
+ h.ERR_BAD_RESPONSE,
1896
+ u,
1897
+ C
1898
+ );
1899
+ if (Ue && g !== "get" && g !== "head") {
1900
+ const w = await S(b);
1901
+ if (typeof w == "number" && isFinite(w) && (ne = w, w > ge))
1902
+ throw Ye();
1903
+ }
1904
+ const Ee = Ue && (a.isReadableStream(b) || a.isStream(b)), et = (w, D, V) => yt(
1905
+ w,
1906
+ gt,
1907
+ (G) => {
1908
+ if (Ue && G > ge)
1909
+ throw ae = Ye();
1910
+ D && D(G);
1911
+ },
1912
+ V
1913
+ );
1914
+ if (y && g !== "get" && g !== "head" && (K || Ee)) {
1915
+ if (ne = ne ?? await P(z, b), ne !== 0 || Ee) {
1916
+ let w = new o(m, {
1917
+ method: "POST",
1918
+ body: b,
1919
+ duplex: "half"
1920
+ }), D;
1921
+ if (a.isFormData(b) && (D = w.headers.get("content-type")) && z.setContentType(D), w.body) {
1922
+ const [V, G] = K && dt(
1923
+ ne,
1924
+ Te(pt(K))
1925
+ ) || [];
1926
+ b = et(w.body, V, G);
1927
+ }
1928
+ }
1929
+ } else if (Ee && !l && f && g !== "get" && g !== "head")
1930
+ b = et(b);
1931
+ else if (Ee && l && !y && g !== "get" && g !== "head")
1932
+ throw new h(
1933
+ "Stream request bodies are not supported by the current fetch implementation",
1934
+ h.ERR_NOT_SUPPORT,
1935
+ u,
1936
+ C
1937
+ );
1938
+ a.isString(we) || (we = we ? "include" : "omit");
1939
+ const ln = l && "credentials" in o.prototype;
1940
+ if (a.isFormData(b)) {
1941
+ const w = z.getContentType();
1942
+ w && /^multipart\/form-data/i.test(w) && !/boundary=/i.test(w) && z.delete("content-type");
1943
+ }
1944
+ z.set("User-Agent", "axios/" + Ge, !1);
1945
+ const I = De == null ? De : Object.assign(/* @__PURE__ */ Object.create(null), De);
1946
+ I && (delete I.body, delete I.headers, delete I.method, delete I.signal, delete I.duplex, delete I.credentials);
1947
+ const H = Object.assign(/* @__PURE__ */ Object.create(null), I, {
1948
+ signal: W,
1949
+ method: g.toUpperCase(),
1950
+ headers: qt(z.normalize()),
1951
+ body: b,
1952
+ duplex: "half",
1953
+ credentials: ln ? we : void 0
1954
+ });
1955
+ l && (a.forEach(ps, (w, D) => {
1956
+ H[D] === void 0 && (H[D] = w);
1957
+ }), H.signal === void 0 && (H.signal = null), H.body === void 0 && (H.body = null)), an === 0 && (H.redirect = "manual", I && (I.redirect = "manual")), C = l && new o(m, H);
1958
+ let $ = await (l ? Ze(C, I) : Ze(m, H));
1959
+ const tt = L.from($.headers);
1960
+ if (ie) {
1961
+ const w = a.toFiniteNumber(tt.getContentLength());
1962
+ if (w != null && w > q)
1963
+ throw new h(
1964
+ "maxContentLength size of " + q + " exceeded",
1965
+ h.ERR_BAD_RESPONSE,
1966
+ u,
1967
+ C
1968
+ );
1969
+ }
1970
+ const Le = E && (v === "stream" || v === "response");
1971
+ if (E && $.body && (k || ie || Le && X)) {
1972
+ const w = {};
1973
+ ["status", "statusText", "headers"].forEach((ce) => {
1974
+ w[ce] = $[ce];
1975
+ });
1976
+ const D = a.toFiniteNumber(tt.getContentLength()), [V, G] = k && dt(
1977
+ D,
1978
+ Te(pt(k), !0)
1979
+ ) || [];
1980
+ let nt = 0;
1981
+ const un = (ce) => {
1982
+ if (ie && (nt = ce, nt > q))
1983
+ throw new h(
1984
+ "maxContentLength size of " + q + " exceeded",
1985
+ h.ERR_BAD_RESPONSE,
1986
+ u,
1987
+ C
1988
+ );
1989
+ V && V(ce);
1990
+ };
1991
+ $ = new i(
1992
+ yt($.body, gt, un, () => {
1993
+ G && G(), X && X();
1994
+ }),
1995
+ w
1996
+ );
1997
+ }
1998
+ v = v || "text";
1999
+ let M = await R[a.findKey(R, v) || "text"](
2000
+ $,
2001
+ u
2002
+ );
2003
+ if (ie && !E && !Le) {
2004
+ let w;
2005
+ if (M != null && (typeof M.byteLength == "number" ? w = M.byteLength : typeof M.size == "number" ? w = M.size : typeof M == "string" && (w = typeof r == "function" ? new r().encode(M).byteLength : M.length)), typeof w == "number" && w > q)
2006
+ throw new h(
2007
+ "maxContentLength size of " + q + " exceeded",
2008
+ h.ERR_BAD_RESPONSE,
2009
+ u,
2010
+ C
2011
+ );
2012
+ }
2013
+ return !Le && X && X(), await new Promise((w, D) => {
2014
+ Gt(w, D, {
2015
+ data: M,
2016
+ headers: L.from($.headers),
2017
+ status: $.status,
2018
+ statusText: $.statusText,
2019
+ config: u,
2020
+ request: C
2021
+ });
2022
+ });
2023
+ } catch (O) {
2024
+ if (X && X(), W && W.aborted && W.reason instanceof h) {
2025
+ const B = W.reason;
2026
+ throw B.config = u, C && (B.request = C), O !== B && Object.defineProperty(B, "cause", {
2027
+ __proto__: null,
2028
+ value: O,
2029
+ writable: !0,
2030
+ enumerable: !1,
2031
+ configurable: !0
2032
+ }), B;
2033
+ }
2034
+ if (ae)
2035
+ throw C && !ae.request && (ae.request = C), ae;
2036
+ if (O instanceof h)
2037
+ throw C && !O.request && (O.request = C), O;
2038
+ if (O && O.name === "TypeError" && /Load failed|fetch/i.test(O.message)) {
2039
+ const B = new h(
2040
+ "Network Error",
2041
+ h.ERR_NETWORK,
2042
+ u,
2043
+ C,
2044
+ O && O.response
2045
+ );
2046
+ throw Object.defineProperty(B, "cause", {
2047
+ __proto__: null,
2048
+ value: O.cause || O,
2049
+ writable: !0,
2050
+ enumerable: !1,
2051
+ configurable: !0
2052
+ }), B;
2053
+ }
2054
+ throw h.from(O, O && O.code, u, C, O && O.response);
2055
+ }
2056
+ };
2057
+ }, bs = /* @__PURE__ */ new Map(), tn = (e) => {
2058
+ let t = e && e.env || {};
2059
+ const { fetch: n, Request: r, Response: s } = t, o = [r, s, n];
2060
+ let i = o.length, c = i, l, d, f = bs;
2061
+ for (; c--; )
2062
+ l = o[c], d = f.get(l), d === void 0 && f.set(l, d = c ? /* @__PURE__ */ new Map() : ys(t)), f = d;
2063
+ return d;
2064
+ };
2065
+ tn();
2066
+ const Qe = {
2067
+ http: Ar,
2068
+ xhr: ts,
2069
+ fetch: {
2070
+ get: tn
2071
+ }
2072
+ };
2073
+ a.forEach(Qe, (e, t) => {
2074
+ if (e) {
2075
+ try {
2076
+ Object.defineProperty(e, "name", { __proto__: null, value: t });
2077
+ } catch {
2078
+ }
2079
+ Object.defineProperty(e, "adapterName", { __proto__: null, value: t });
2080
+ }
2081
+ });
2082
+ const Ot = (e) => `- ${e}`, ws = (e) => a.isFunction(e) || e === null || e === !1;
2083
+ function gs(e, t) {
2084
+ e = a.isArray(e) ? e : [e];
2085
+ const { length: n } = e;
2086
+ let r, s;
2087
+ const o = {};
2088
+ for (let i = 0; i < n; i++) {
2089
+ r = e[i];
2090
+ let c;
2091
+ if (s = r, !ws(r) && (s = Qe[(c = String(r)).toLowerCase()], s === void 0))
2092
+ throw new h(`Unknown adapter '${c}'`);
2093
+ if (s && (a.isFunction(s) || (s = s.get(t))))
2094
+ break;
2095
+ o[c || "#" + i] = s;
2096
+ }
2097
+ if (!s) {
2098
+ const i = Object.entries(o).map(
2099
+ ([l, d]) => `adapter ${l} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
2100
+ );
2101
+ let c = n ? i.length > 1 ? `since :
2102
+ ` + i.map(Ot).join(`
2103
+ `) : " " + Ot(i[0]) : "as no adapter specified";
2104
+ throw new h(
2105
+ "There is no suitable adapter to dispatch the request " + c,
2106
+ h.ERR_NOT_SUPPORT
2107
+ );
2108
+ }
2109
+ return s;
2110
+ }
2111
+ const nn = {
2112
+ /**
2113
+ * Resolve an adapter from a list of adapter names or functions.
2114
+ * @type {Function}
2115
+ */
2116
+ getAdapter: gs,
2117
+ /**
2118
+ * Exposes all known adapters
2119
+ * @type {Object<string, Function|Object>}
2120
+ */
2121
+ adapters: Qe
2122
+ };
2123
+ function He(e) {
2124
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
2125
+ throw new be(null, e);
2126
+ }
2127
+ function $e(e) {
2128
+ const t = a.toSafeFlatObject(e);
2129
+ return He(t), t.headers = L.from(a.getSafeProp(t, "headers")), t.data = ke.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), nn.getAdapter(t.adapter || ye.adapter, t)(t).then(
2130
+ function(s) {
2131
+ He(t), t.response = s;
2132
+ try {
2133
+ s.data = ke.call(t, t.transformResponse, s);
2134
+ } finally {
2135
+ delete t.response;
2136
+ }
2137
+ return s.headers = L.from(s.headers), s;
2138
+ },
2139
+ function(s) {
2140
+ if (!Xt(s) && (He(t), s && s.response)) {
2141
+ t.response = s.response;
2142
+ try {
2143
+ s.response.data = ke.call(
2144
+ t,
2145
+ t.transformResponse,
2146
+ s.response
2147
+ );
2148
+ } finally {
2149
+ delete t.response;
2150
+ }
2151
+ s.response.headers = L.from(s.response.headers);
2152
+ }
2153
+ return Promise.reject(s);
2154
+ }
2155
+ );
2156
+ }
2157
+ const Ne = {};
2158
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
2159
+ Ne[e] = function(r) {
2160
+ return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
2161
+ };
2162
+ });
2163
+ const St = {};
2164
+ Ne.transitional = function(t, n, r) {
2165
+ function s(o, i) {
2166
+ return "[Axios v" + Ge + "] Transitional option '" + o + "'" + i + (r ? ". " + r : "");
2167
+ }
2168
+ return (o, i, c) => {
2169
+ if (t === !1)
2170
+ throw new h(
2171
+ s(i, " has been removed" + (n ? " in " + n : "")),
2172
+ h.ERR_DEPRECATED
2173
+ );
2174
+ return n && !St[i] && (St[i] = !0, console.warn(
2175
+ s(
2176
+ i,
2177
+ " has been deprecated since v" + n + " and will be removed in the near future"
2178
+ )
2179
+ )), t ? t(o, i, c) : !0;
2180
+ };
2181
+ };
2182
+ Ne.spelling = function(t) {
2183
+ return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
2184
+ };
2185
+ function Es(e, t, n) {
2186
+ if (typeof e != "object" || e === null)
2187
+ throw new h("options must be an object", h.ERR_BAD_OPTION_VALUE);
2188
+ const r = Object.keys(e);
2189
+ let s = r.length;
2190
+ for (; s-- > 0; ) {
2191
+ const o = r[s], i = Object.prototype.hasOwnProperty.call(t, o) ? t[o] : void 0;
2192
+ if (i) {
2193
+ const c = e[o], l = c === void 0 || i(c, o, e);
2194
+ if (l !== !0)
2195
+ throw new h(
2196
+ "option " + o + " must be " + l,
2197
+ h.ERR_BAD_OPTION_VALUE
2198
+ );
2199
+ continue;
2200
+ }
2201
+ if (n !== !0)
2202
+ throw new h("Unknown option " + o, h.ERR_BAD_OPTION);
2203
+ }
2204
+ }
2205
+ const Ae = {
2206
+ assertOptions: Es,
2207
+ validators: Ne
2208
+ }, U = Ae.validators;
2209
+ let Z = class {
2210
+ constructor(t) {
2211
+ this.defaults = t || {}, this.interceptors = {
2212
+ request: new ut(),
2213
+ response: new ut()
2214
+ };
2215
+ }
2216
+ /**
2217
+ * Dispatch a request
2218
+ *
2219
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
2220
+ * @param {?Object} config
2221
+ *
2222
+ * @returns {Promise} The Promise to be fulfilled
2223
+ */
2224
+ async request(t, n) {
2225
+ try {
2226
+ return await this._request(t, n);
2227
+ } catch (r) {
2228
+ if (r instanceof Error)
2229
+ try {
2230
+ let s = {};
2231
+ Error.captureStackTrace ? Error.captureStackTrace(s) : s = new Error();
2232
+ const o = s.stack;
2233
+ let i = "";
2234
+ if (typeof o == "string") {
2235
+ const c = o.indexOf(`
2236
+ `);
2237
+ i = c === -1 ? "" : o.slice(c + 1);
2238
+ }
2239
+ if (!r.stack)
2240
+ r.stack = i;
2241
+ else if (i) {
2242
+ const c = i.indexOf(`
2243
+ `), l = c === -1 ? -1 : i.indexOf(`
2244
+ `, c + 1), d = l === -1 ? "" : i.slice(l + 1);
2245
+ String(r.stack).endsWith(d) || (r.stack += `
2246
+ ` + i);
2247
+ }
2248
+ } catch {
2249
+ }
2250
+ throw r;
2251
+ }
2252
+ }
2253
+ _request(t, n) {
2254
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = te(this.defaults, n);
2255
+ const { transitional: r, paramsSerializer: s, headers: o } = n;
2256
+ r !== void 0 && Ae.assertOptions(
2257
+ r,
2258
+ {
2259
+ silentJSONParsing: U.transitional(U.boolean),
2260
+ forcedJSONParsing: U.transitional(U.boolean),
2261
+ clarifyTimeoutError: U.transitional(U.boolean),
2262
+ legacyInterceptorReqResOrdering: U.transitional(U.boolean),
2263
+ advertiseZstdAcceptEncoding: U.transitional(U.boolean),
2264
+ validateStatusUndefinedResolves: U.transitional(U.boolean)
2265
+ },
2266
+ !1
2267
+ ), s != null && (a.isFunction(s) ? n.paramsSerializer = {
2268
+ serialize: s
2269
+ } : Ae.assertOptions(
2270
+ s,
2271
+ {
2272
+ encode: U.function,
2273
+ serialize: U.function
2274
+ },
2275
+ !0
2276
+ )), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Ae.assertOptions(
2277
+ n,
2278
+ {
2279
+ baseUrl: U.spelling("baseURL"),
2280
+ withXsrfToken: U.spelling("withXSRFToken")
2281
+ },
2282
+ !0
2283
+ ), n.method = (a.getSafeProp(n, "method") || a.getSafeProp(this.defaults, "method") || "get").toLowerCase();
2284
+ let i = o && a.merge(o.common, o[n.method]);
2285
+ o && a.forEach(Kt.concat("common"), (R) => {
2286
+ delete o[R];
2287
+ }), n.headers = L.concat(i, o);
2288
+ const c = [];
2289
+ let l = !0;
2290
+ this.interceptors.request.forEach(function(S) {
2291
+ if (typeof S.runWhen == "function" && S.runWhen(n) === !1)
2292
+ return;
2293
+ l = l && S.synchronous;
2294
+ const P = n.transitional || Ke;
2295
+ P && P.legacyInterceptorReqResOrdering ? c.unshift(S.fulfilled, S.rejected) : c.push(S.fulfilled, S.rejected);
2296
+ });
2297
+ const d = [];
2298
+ this.interceptors.response.forEach(function(S) {
2299
+ d.push(S.fulfilled, S.rejected);
2300
+ });
2301
+ let f, p = 0, y;
2302
+ if (!l) {
2303
+ const R = [$e.bind(this), void 0];
2304
+ for (R.unshift(...c), R.push(...d), y = R.length, f = Promise.resolve(n); p < y; )
2305
+ f = f.then(R[p++], R[p++]);
2306
+ return f;
2307
+ }
2308
+ y = c.length;
2309
+ let E = n;
2310
+ for (; p < y; ) {
2311
+ const R = c[p++], S = c[p++];
2312
+ try {
2313
+ E = R ? R(E) : E;
2314
+ } catch (P) {
2315
+ if (!S) {
2316
+ f = Promise.reject(P);
2317
+ break;
2318
+ }
2319
+ try {
2320
+ const u = S.call(this, P);
2321
+ a.isThenable(u) && (f = Promise.resolve(u).then(
2322
+ () => $e.call(this, E)
2323
+ ));
2324
+ } catch (u) {
2325
+ f = Promise.reject(u);
2326
+ }
2327
+ break;
2328
+ }
2329
+ }
2330
+ if (!f)
2331
+ try {
2332
+ f = $e.call(this, E);
2333
+ } catch (R) {
2334
+ f = Promise.reject(R);
2335
+ }
2336
+ for (p = 0, y = d.length; p < y; )
2337
+ f = f.then(d[p++], d[p++]);
2338
+ return f;
2339
+ }
2340
+ getUri(t) {
2341
+ t = te(this.defaults, t);
2342
+ const n = Zt(t.baseURL, t.url, t.allowAbsoluteUrls, t);
2343
+ return zt(n, t.params, t.paramsSerializer);
2344
+ }
2345
+ };
2346
+ a.forEach(["delete", "get", "head", "options"], function(t) {
2347
+ Z.prototype[t] = function(n, r) {
2348
+ return this.request(
2349
+ te(r || {}, {
2350
+ method: t,
2351
+ url: n,
2352
+ data: r && a.hasOwnProp(r, "data") ? r.data : void 0
2353
+ })
2354
+ );
2355
+ };
2356
+ });
2357
+ a.forEach(["post", "put", "patch", "query"], function(t) {
2358
+ function n(r) {
2359
+ return function(o, i, c) {
2360
+ return this.request(
2361
+ te(c || {}, {
2362
+ method: t,
2363
+ headers: r ? {
2364
+ "Content-Type": "multipart/form-data"
2365
+ } : {},
2366
+ url: o,
2367
+ data: i
2368
+ })
2369
+ );
2370
+ };
2371
+ }
2372
+ Z.prototype[t] = n(), t !== "query" && (Z.prototype[t + "Form"] = n(!0));
2373
+ });
2374
+ let Rs = class rn {
2375
+ constructor(t) {
2376
+ if (typeof t != "function")
2377
+ throw new TypeError("executor must be a function.");
2378
+ let n;
2379
+ this.promise = new Promise(function(o) {
2380
+ n = o;
2381
+ });
2382
+ const r = this;
2383
+ this.promise.then((s) => {
2384
+ if (!r._listeners) return;
2385
+ let o = r._listeners.length;
2386
+ for (; o-- > 0; )
2387
+ r._listeners[o](s);
2388
+ r._listeners = null;
2389
+ }), this.promise.then = (s) => {
2390
+ let o;
2391
+ const i = new Promise((c) => {
2392
+ r.subscribe(c), o = c;
2393
+ }).then(s);
2394
+ return i.cancel = function() {
2395
+ r.unsubscribe(o);
2396
+ }, i;
2397
+ }, t(function(o, i, c) {
2398
+ r.reason || (r.reason = new be(o, i, c), n(r.reason));
2399
+ });
2400
+ }
2401
+ /**
2402
+ * Throws a `CanceledError` if cancellation has been requested.
2403
+ */
2404
+ throwIfRequested() {
2405
+ if (this.reason)
2406
+ throw this.reason;
2407
+ }
2408
+ /**
2409
+ * Subscribe to the cancel signal
2410
+ */
2411
+ subscribe(t) {
2412
+ if (this.reason) {
2413
+ t(this.reason);
2414
+ return;
2415
+ }
2416
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
2417
+ }
2418
+ /**
2419
+ * Unsubscribe from the cancel signal
2420
+ */
2421
+ unsubscribe(t) {
2422
+ if (!this._listeners)
2423
+ return;
2424
+ const n = this._listeners.indexOf(t);
2425
+ n !== -1 && this._listeners.splice(n, 1);
2426
+ }
2427
+ toAbortSignal() {
2428
+ const t = new AbortController(), n = (r) => {
2429
+ t.abort(r);
2430
+ };
2431
+ return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
2432
+ }
2433
+ /**
2434
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
2435
+ * cancels the `CancelToken`.
2436
+ */
2437
+ static source() {
2438
+ let t;
2439
+ return {
2440
+ token: new rn(function(s) {
2441
+ t = s;
2442
+ }),
2443
+ cancel: t
2444
+ };
2445
+ }
2446
+ };
2447
+ function Os(e) {
2448
+ return function(n) {
2449
+ return e.apply(null, n);
2450
+ };
2451
+ }
2452
+ function Ss(e) {
2453
+ return a.isObject(e) && e.isAxiosError === !0;
2454
+ }
2455
+ const _e = {
2456
+ Continue: 100,
2457
+ SwitchingProtocols: 101,
2458
+ Processing: 102,
2459
+ EarlyHints: 103,
2460
+ Ok: 200,
2461
+ Created: 201,
2462
+ Accepted: 202,
2463
+ NonAuthoritativeInformation: 203,
2464
+ NoContent: 204,
2465
+ ResetContent: 205,
2466
+ PartialContent: 206,
2467
+ MultiStatus: 207,
2468
+ AlreadyReported: 208,
2469
+ ImUsed: 226,
2470
+ MultipleChoices: 300,
2471
+ MovedPermanently: 301,
2472
+ Found: 302,
2473
+ SeeOther: 303,
2474
+ NotModified: 304,
2475
+ UseProxy: 305,
2476
+ Unused: 306,
2477
+ TemporaryRedirect: 307,
2478
+ PermanentRedirect: 308,
2479
+ BadRequest: 400,
2480
+ Unauthorized: 401,
2481
+ PaymentRequired: 402,
2482
+ Forbidden: 403,
2483
+ NotFound: 404,
2484
+ MethodNotAllowed: 405,
2485
+ NotAcceptable: 406,
2486
+ ProxyAuthenticationRequired: 407,
2487
+ RequestTimeout: 408,
2488
+ Conflict: 409,
2489
+ Gone: 410,
2490
+ LengthRequired: 411,
2491
+ PreconditionFailed: 412,
2492
+ /**
2493
+ * @deprecated Use `ContentTooLarge` instead.
2494
+ */
2495
+ PayloadTooLarge: 413,
2496
+ ContentTooLarge: 413,
2497
+ UriTooLong: 414,
2498
+ UnsupportedMediaType: 415,
2499
+ RangeNotSatisfiable: 416,
2500
+ ExpectationFailed: 417,
2501
+ ImATeapot: 418,
2502
+ MisdirectedRequest: 421,
2503
+ /**
2504
+ * @deprecated Use `UnprocessableContent` instead.
2505
+ */
2506
+ UnprocessableEntity: 422,
2507
+ UnprocessableContent: 422,
2508
+ Locked: 423,
2509
+ FailedDependency: 424,
2510
+ TooEarly: 425,
2511
+ UpgradeRequired: 426,
2512
+ PreconditionRequired: 428,
2513
+ TooManyRequests: 429,
2514
+ RequestHeaderFieldsTooLarge: 431,
2515
+ UnavailableForLegalReasons: 451,
2516
+ InternalServerError: 500,
2517
+ NotImplemented: 501,
2518
+ BadGateway: 502,
2519
+ ServiceUnavailable: 503,
2520
+ GatewayTimeout: 504,
2521
+ HttpVersionNotSupported: 505,
2522
+ VariantAlsoNegotiates: 506,
2523
+ InsufficientStorage: 507,
2524
+ LoopDetected: 508,
2525
+ NotExtended: 510,
2526
+ NetworkAuthenticationRequired: 511,
2527
+ WebServerReturnsAnUnknownError: 520,
2528
+ WebServerIsDown: 521,
2529
+ ConnectionTimedOut: 522,
2530
+ OriginIsUnreachable: 523,
2531
+ TimeoutOccurred: 524,
2532
+ SslHandshakeFailed: 525,
2533
+ InvalidSslCertificate: 526
2534
+ };
2535
+ Object.entries(_e).forEach(([e, t]) => {
2536
+ _e[t] === void 0 && (_e[t] = e);
2537
+ });
2538
+ function sn(e) {
2539
+ const t = new Z(e), n = xt(Z.prototype.request, t);
2540
+ return a.extend(n, Z.prototype, t, { allOwnKeys: !0 }), a.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
2541
+ return sn(te(e, s));
2542
+ }, n;
2543
+ }
2544
+ const _ = sn(ye);
2545
+ _.Axios = Z;
2546
+ _.CanceledError = be;
2547
+ _.CancelToken = Rs;
2548
+ _.isCancel = Xt;
2549
+ _.VERSION = Ge;
2550
+ _.toFormData = Ce;
2551
+ _.AxiosError = h;
2552
+ _.Cancel = _.CanceledError;
2553
+ _.all = function(t) {
2554
+ return Promise.all(t);
2555
+ };
2556
+ _.spread = Os;
2557
+ _.isAxiosError = Ss;
2558
+ _.mergeConfig = te;
2559
+ _.AxiosHeaders = L;
2560
+ _.formToJSON = (e) => Jt(a.isHTMLForm(e) ? new FormData(e) : e);
2561
+ _.getAdapter = nn.getAdapter;
2562
+ _.HttpStatusCode = _e;
2563
+ _.default = _;
2564
+ const {
2565
+ Axios: js,
2566
+ AxiosError: As,
2567
+ CanceledError: Is,
2568
+ isCancel: ks,
2569
+ CancelToken: qs,
2570
+ VERSION: Hs,
2571
+ all: $s,
2572
+ Cancel: Ms,
2573
+ isAxiosError: vs,
2574
+ spread: zs,
2575
+ toFormData: Ws,
2576
+ AxiosHeaders: Vs,
2577
+ HttpStatusCode: Js,
2578
+ formToJSON: Ks,
2579
+ getAdapter: Xs,
2580
+ mergeConfig: Gs,
2581
+ create: Qs
2582
+ } = _;
2583
+ class _s extends Error {
2584
+ constructor(t, n) {
2585
+ super(t), this.status = n, this.name = "ApiError";
2586
+ }
2587
+ }
2588
+ const on = (e) => (t) => {
2589
+ var s;
2590
+ const n = ((s = Tt().sessionUser.value) == null ? void 0 : s.token) ?? pn.token;
2591
+ if (!n) throw new Error("Invalid token");
2592
+ const r = _.create({
2593
+ baseURL: `${e}/${t}`,
2594
+ headers: {
2595
+ Authorization: `Bearer ${n}`
2596
+ },
2597
+ // NestJS @Query() reads repeated keys (key=a&key=b), not Axios default bracket notation (key[]=a).
2598
+ paramsSerializer: (o) => {
2599
+ const i = [];
2600
+ for (const [c, l] of Object.entries(o))
2601
+ if (l != null)
2602
+ if (Array.isArray(l))
2603
+ for (const d of l)
2604
+ i.push(`${encodeURIComponent(c)}=${encodeURIComponent(d)}`);
2605
+ else
2606
+ i.push(`${encodeURIComponent(c)}=${encodeURIComponent(String(l))}`);
2607
+ return i.join("&");
2608
+ }
2609
+ });
2610
+ return r.interceptors.response.use(
2611
+ (o) => o,
2612
+ async (o) => {
2613
+ var i, c;
2614
+ if (o instanceof As) {
2615
+ const l = (i = o.response) == null ? void 0 : i.data, d = (l == null ? void 0 : l.message) || (l == null ? void 0 : l.error) || `${o.message}` || `${o}`, f = ((c = o.response) == null ? void 0 : c.status) ?? 0;
2616
+ return Promise.reject(new _s(d, f));
2617
+ }
2618
+ return Promise.reject(o);
2619
+ }
2620
+ ), r;
2621
+ }, At = (e) => {
2622
+ const t = _t();
2623
+ if (!t.id.value) throw new Error("Invalid tenant");
2624
+ const r = `${t.isFoodCourt.value ? "foodcourts" : "businesses"}/${t.id.value}${e ? `/${e}` : ""}`;
2625
+ return Pt(r);
2626
+ }, Zs = () => {
2627
+ var o;
2628
+ const t = (o = Tt().currentCountry.value) == null ? void 0 : o.toLowerCase(), r = "feedmeapi.com", s = !t || t === "my" ? `https://query-engine.${r}` : `https://query-engine.${t}.${r}`;
2629
+ return on(s)("");
2630
+ }, Ys = () => on("https://account.feedme.cc/api")(""), eo = () => Pt("user/bypass/validate/");
2631
+ function Ps(e) {
2632
+ return e.data;
2633
+ }
2634
+ const Ts = {
2635
+ async readRestaurants() {
2636
+ return Ps(await At().get("/hr-restaurants"));
2637
+ },
2638
+ async saveOperationalHours(e, t) {
2639
+ await At(`restaurants/${e}/schedules`).patch(
2640
+ "operational-hours",
2641
+ { operatingHours: t }
2642
+ );
2643
+ }
2644
+ }, xs = fn("hrm-restaurant", () => {
2645
+ const e = _t(), t = Fe([]), n = Fe(!1), r = Fe(null);
2646
+ let s = null, o = null;
2647
+ async function i(c = !1) {
2648
+ const l = e.id.value ?? null;
2649
+ if (!l) {
2650
+ t.value = [], r.value = null, s = null, o = null;
2651
+ return;
2652
+ }
2653
+ if (r.value && r.value !== l && (t.value = [], r.value = null), o && o !== l && (s = null, o = null), !c && r.value === l) return;
2654
+ if (!c && s && o === l)
2655
+ return await s;
2656
+ let d = null;
2657
+ try {
2658
+ n.value = !0, d = (async () => {
2659
+ t.value = await Ts.readRestaurants(), r.value = l;
2660
+ })(), s = d, o = l, await d;
2661
+ } finally {
2662
+ s === d && (s = null, o = null), n.value = !1;
2663
+ }
2664
+ }
2665
+ return {
2666
+ restaurants: t,
2667
+ isLoading: n,
2668
+ readRestaurants: i
2669
+ };
2670
+ }), to = () => {
2671
+ const e = xs();
2672
+ return {
2673
+ ...e,
2674
+ ...dn(e)
2675
+ };
2676
+ };
2677
+ export {
2678
+ _s as A,
2679
+ eo as a,
2680
+ At as b,
2681
+ Ys as c,
2682
+ Ps as g,
2683
+ Zs as q,
2684
+ to as u
2685
+ };