@emailmaker/emailmaker 1.0.107-dev.3 → 1.0.107-dev.5

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 (325) hide show
  1. package/README.md +1 -1
  2. package/cli/dist/lib/cli/project.js +2 -16
  3. package/cli/dist/lib/config.js +20 -29
  4. package/cli/dist/lib/local-test.js +3 -19
  5. package/cli/dist/lib/paths.js +11 -0
  6. package/cli/dist/lib/resolveNpmSpawn.d.ts +20 -0
  7. package/cli/dist/lib/resolveNpmSpawn.js +71 -0
  8. package/cli/dist/lib/template-engine/context/pluginPackageJsonData.js +21 -19
  9. package/cli/dist/lib/template-engine/context/standVitePackageJsonData.js +7 -8
  10. package/cli/dist/lib/template-engine/resolveVariantDir.d.ts +5 -1
  11. package/cli/dist/lib/template-engine/resolveVariantDir.js +22 -0
  12. package/cli/dist/lib/templates/shared/i18n.js +2 -2
  13. package/cli/dist/lib/templates/shared/paths.js +3 -4
  14. package/cli/dist/lib/types/package-config.d.ts +1 -0
  15. package/cli/lib/cli/project.ts +2 -18
  16. package/cli/lib/config.ts +19 -30
  17. package/cli/lib/local-test.ts +3 -22
  18. package/cli/lib/paths.ts +15 -0
  19. package/cli/lib/resolveNpmSpawn.ts +72 -0
  20. package/cli/lib/template-engine/buildStandIndexHtml.test.ts +1 -0
  21. package/cli/lib/template-engine/context/pluginPackageJsonData.ts +23 -23
  22. package/cli/lib/template-engine/context/standVitePackageJsonData.ts +7 -12
  23. package/cli/lib/template-engine/pluginEtaParity.test.ts +1 -0
  24. package/cli/lib/template-engine/resolveVariantDir.ts +22 -0
  25. package/cli/lib/template-engine/standAdvancedViteDevHostEta.test.ts +4 -3
  26. package/cli/lib/template-engine/standWebpackDevHostEta.test.ts +7 -6
  27. package/cli/lib/templates/shared/i18n.ts +2 -2
  28. package/cli/lib/templates/shared/paths.ts +3 -4
  29. package/cli/lib/types/package-config.ts +1 -0
  30. package/cli/package.json +1 -1
  31. package/cli/project-templates/plugin/assets/vite/{plugin-build.config.mjs → plugin-build.config.ts} +7 -5
  32. package/cli/project-templates/plugin/assets/vite/{sandbox-build.config.mjs → sandbox-build.config.ts} +7 -5
  33. package/cli/project-templates/plugin/assets/webpack/{plugin-build.legacy.module.cjs → plugin-build.legacy.module.ts} +20 -7
  34. package/cli/project-templates/plugin/assets/webpack/{plugin-build.legacy.umd.cjs → plugin-build.legacy.umd.ts} +20 -7
  35. package/cli/project-templates/plugin/assets/webpack/{plugin-build.modern.module.cjs → plugin-build.modern.module.ts} +9 -4
  36. package/cli/project-templates/plugin/assets/webpack/{plugin-build.modern.umd.cjs → plugin-build.modern.umd.ts} +9 -4
  37. package/cli/project-templates/plugin/assets/webpack/{sandbox-build.config.cjs → sandbox-build.config.ts} +13 -3
  38. package/cli/project-templates/plugin/bundler-vite/release.html.eta +1 -0
  39. package/cli/project-templates/plugin/bundler-webpack/public/release.html.eta +1 -0
  40. package/cli/project-templates/plugin/shared-base/public/demo/product-1.svg +10 -0
  41. package/cli/project-templates/plugin/shared-base/public/demo/product-2.svg +10 -0
  42. package/cli/project-templates/plugin/shared-base/scripts/build-runner.ts +22 -0
  43. package/cli/project-templates/plugin/shared-base/scripts/build-types.ts +17 -0
  44. package/cli/project-templates/plugin/shared-base/scripts/clean.ts +16 -0
  45. package/cli/project-templates/plugin/shared-base/scripts/dev-runner.ts +52 -0
  46. package/cli/project-templates/plugin/shared-base/scripts/npmRun.ts +61 -0
  47. package/cli/project-templates/plugin/shared-base/scripts/release-runner.ts +18 -0
  48. package/cli/project-templates/plugin/shared-base/scripts/scriptRuntime.ts +10 -0
  49. package/cli/project-templates/plugin/shared-base/src/dev/hostApp.tsx.eta +1 -0
  50. package/cli/project-templates/plugin/shared-base/src/dev-release.tsx.eta +1 -0
  51. package/cli/project-templates/plugin/shared-base/src/dev.tsx.eta +1 -1
  52. package/cli/project-templates/shared/partials/plugin-dev-host-app-advanced.eta +93 -0
  53. package/cli/project-templates/shared/partials/plugin-dev-host-app-minimal.eta +54 -0
  54. package/cli/project-templates/shared/partials/plugin-dev-tsx-advanced.eta +3 -2
  55. package/cli/project-templates/shared/partials/plugin-dev-tsx-debug.eta +18 -0
  56. package/cli/project-templates/shared/partials/plugin-dev-tsx-release.eta +33 -0
  57. package/cli/project-templates/shared/partials/plugin-dev-tsx-runtime-helpers.eta +8 -8
  58. package/cli/project-templates/shared/partials/plugin-index-ts.eta +0 -1
  59. package/cli/project-templates/shared/partials/plugin-vite-dev-host.eta +9 -5
  60. package/cli/project-templates/shared/partials/plugin-vite-plugin-build.eta +7 -5
  61. package/cli/project-templates/shared/partials/plugin-vite-release-html.eta +12 -0
  62. package/cli/project-templates/shared/partials/plugin-vite-sandbox-build.eta +7 -5
  63. package/cli/project-templates/shared/partials/plugin-webpack-dev-host-legacy.eta +12 -5
  64. package/cli/project-templates/shared/partials/plugin-webpack-dev-host-modern.eta +13 -6
  65. package/cli/project-templates/shared/partials/plugin-webpack-release-html.eta +12 -0
  66. package/cli/project-templates/shared/partials/plugin-webpack-sandbox-build.eta +13 -3
  67. package/cli/project-templates/shared/partials/plugin-wp-legacy-module.eta +28 -10
  68. package/cli/project-templates/shared/partials/plugin-wp-legacy-umd.eta +28 -10
  69. package/cli/project-templates/shared/partials/plugin-wp-modern-module.eta +9 -4
  70. package/cli/project-templates/shared/partials/plugin-wp-modern-umd.eta +9 -4
  71. package/cli/project-templates/shared/partials/stand-dev-host-vite-memory.eta +3 -3
  72. package/cli/project-templates/shared/partials/stand-dev-host-vite-subpath.eta +8 -4
  73. package/cli/project-templates/shared/partials/stand-dev-host-vite-umd.eta +5 -5
  74. package/cli/project-templates/shared/partials/stand-dev-host-vite.eta +3 -3
  75. package/cli/project-templates/shared/partials/stand-dev-host-webpack-subpath.eta +8 -4
  76. package/cli/project-templates/shared/partials/stand-dev-host-webpack-umd.eta +9 -3
  77. package/cli/project-templates/shared/partials/stand-dev-host-webpack.eta +8 -4
  78. package/cli/project-templates/shared/partials/stand-dev-storage-middleware.eta +370 -0
  79. package/cli/project-templates/shared/stand-vite-base/config/lib/createViteStandConfig.ts +80 -0
  80. package/cli/project-templates/shared/stand-vite-base/scripts/devStorageMiddleware.ts.eta +1 -0
  81. package/cli/project-templates/shared/stand-webpack-base/config/lib/{createWebpackStandConfig.cjs → createWebpackStandConfig.ts} +31 -19
  82. package/cli/project-templates/{stand/advanced/umd/vite/config/lib/umdServeMiddleware.mjs → shared/stand-webpack-base/config/lib/umdServeMiddleware.ts} +19 -11
  83. package/cli/project-templates/shared/stand-webpack-base/scripts/devStorageMiddleware.ts.eta +1 -0
  84. package/cli/project-templates/stand/advanced/memory-usage/vite/config/lib/{createMemoryUsageStandConfig.mjs → createMemoryUsageStandConfig.ts} +25 -20
  85. package/cli/project-templates/stand/advanced/umd/vite/config/lib/umdServeMiddleware.ts +68 -0
  86. package/cli/project-templates/stand/react-adapter/webpack/README.md.eta +1 -0
  87. package/cli/project-templates/stand/react-adapter/webpack/config/dev-host.ts.eta +1 -0
  88. package/cli/project-templates/stand/react-adapter/webpack/package.json.eta +1 -0
  89. package/cli/project-templates/stand/react-adapter/webpack/public/index.html.eta +1 -0
  90. package/cli/project-templates/stand/react-adapter/webpack/src/dev/editorConfig.ts.eta +1 -0
  91. package/cli/project-templates/stand/react-adapter/webpack/src/dev/email.html.eta +1 -0
  92. package/cli/project-templates/stand/react-adapter/webpack/src/dev/getAuthToken.ts.eta +1 -0
  93. package/cli/project-templates/stand/react-adapter/webpack/src/dev/oauthCredentials.ts +9 -0
  94. package/cli/project-templates/stand/react-adapter/webpack/src/dev/storageProvider.ts.eta +1 -0
  95. package/cli/project-templates/stand/react-adapter/webpack/src/index.tsx.eta +1 -0
  96. package/cli/scripts/cli-matrix-smoke.ts +19 -10
  97. package/cli/scripts/verify-global-cli.ts +1 -1
  98. package/cli/scripts/vite-plugin-version-matrix.ts +299 -0
  99. package/cli/tsconfig.json +2 -2
  100. package/emailmaker-core.ed344c04.js +1 -0
  101. package/emailmaker-esm.js +788 -153
  102. package/emailmaker.d.ts +32 -0
  103. package/emailmaker.js +4 -4
  104. package/iframe/js/amp.BGJMqoms.js +1 -1
  105. package/iframe/js/chunk.oX6nCJbK.js +1 -1
  106. package/iframe/js/iframe-eblock.js +1 -1
  107. package/iframe/js/iframe.js +1 -1
  108. package/iframe/js/rules.BSaCN7eK.js +1 -1
  109. package/iframe/js/sanitize-html.Dy7Uwo8P.js +1 -1
  110. package/images/integrations/activecampaign.svg +4 -0
  111. package/images/integrations/bento.svg +9 -0
  112. package/images/integrations/brevo.svg +7 -0
  113. package/images/integrations/campaign_monitor.svg +10 -0
  114. package/images/integrations/constant_contact.svg +24 -0
  115. package/images/integrations/dotdigital.svg +144 -0
  116. package/images/integrations/getresponse.svg +23 -0
  117. package/images/integrations/hubspot.svg +3 -0
  118. package/images/integrations/klaviyo.svg +10 -0
  119. package/images/integrations/mailchimp.svg +9 -0
  120. package/images/integrations/salesforce.svg +20 -0
  121. package/js/browser-image-compression.js +9 -0
  122. package/package.json +2 -5
  123. package/runtime/@ant-design/cssinjs/index.js +1 -1
  124. package/runtime/@ant-design/icons/index.js +1 -1
  125. package/runtime/@ant-design/pro-layout/index.js +1 -1
  126. package/runtime/README.md +13 -13
  127. package/runtime/antd/index.js +1 -1
  128. package/runtime/app-core/index.js +1 -2
  129. package/runtime/classnames/index.js +1 -1
  130. package/runtime/core/index.js +6 -6
  131. package/runtime/dayjs/index.js +1 -1
  132. package/runtime/di/index.js +1 -2
  133. package/runtime/disposable/index.js +1 -2
  134. package/runtime/errors-runtime/index.js +1 -2
  135. package/runtime/guid/index.js +1 -2
  136. package/runtime/index.js +2 -4
  137. package/runtime/package.json +2 -3
  138. package/runtime/prop-types/index.js +1 -1
  139. package/runtime/react/index.js +1 -1
  140. package/runtime/react/jsx-dev-runtime/index.js +1 -1
  141. package/runtime/react/jsx-runtime/index.js +1 -1
  142. package/runtime/react-dom/client/index.js +1 -1
  143. package/runtime/react-dom/index.js +1 -1
  144. package/runtime/react-router-dom/index.js +1 -1
  145. package/runtime/uuid/index.js +1 -1
  146. package/static/amd/{8fc2a596.js → 19aeb269.js} +88 -88
  147. package/static/core/192ec827.js +1 -0
  148. package/static/core/22c1de2e2.js +1 -0
  149. package/static/core/24faedf0.js +1 -0
  150. package/static/core/29231645.js +1 -0
  151. package/static/core/2a3177fc2.js +1 -0
  152. package/static/core/346aabd2.js +3 -0
  153. package/static/core/3b800ed6.js +1 -0
  154. package/static/core/3e840e90.js +1 -0
  155. package/static/core/40cc9fd7.js +1 -0
  156. package/static/core/421bdec22.js +1 -0
  157. package/static/core/50ff48bc.js +4 -0
  158. package/static/core/5282795d2.js +6 -0
  159. package/static/core/555e2e2f2.js +903 -0
  160. package/static/core/563a283d.js +1 -0
  161. package/static/core/5d47e095.js +47 -0
  162. package/static/core/5f574386.js +1 -0
  163. package/static/core/67a41193.js +1 -0
  164. package/static/core/698dace4.js +7 -0
  165. package/static/core/6b648e2d.js +1 -0
  166. package/static/core/7629adfd.js +1 -0
  167. package/static/core/7717f2932.js +3 -0
  168. package/static/core/776cb34a.js +1 -0
  169. package/static/core/78a1e31e.js +1 -0
  170. package/static/core/7d56d643.js +1 -0
  171. package/static/core/841752212.js +40 -0
  172. package/static/core/8477e97e.js +1 -0
  173. package/static/core/8756d562.js +1 -0
  174. package/static/core/91d328d8.js +1 -0
  175. package/static/core/9270dbb6.js +6 -0
  176. package/static/core/96371334.js +566 -0
  177. package/static/core/9b9ddaef2.js +168 -0
  178. package/static/core/af1da4b4.js +1 -0
  179. package/static/core/b5096b152.js +471 -0
  180. package/static/core/bde6775a.js +1 -0
  181. package/static/core/bf1b888c.js +4 -0
  182. package/static/core/c3747df72.js +598 -0
  183. package/static/core/cec8d739.js +11 -0
  184. package/static/core/cfac3d32.js +1 -0
  185. package/static/core/d21c95cf2.js +1 -0
  186. package/static/core/dbd9ca52.js +1 -0
  187. package/static/core/dc590181.js +1 -0
  188. package/static/core/e0039d55.js +1 -0
  189. package/static/core/e4071c1a.js +4 -0
  190. package/static/core/ef87b75c.js +41 -0
  191. package/static/core/f47701f32.js +20 -0
  192. package/static/core/f83d7ac42.js +3 -0
  193. package/static/core/fcc67e6b.js +1 -0
  194. package/static/core/fd40d85c.js +1 -0
  195. package/static/core/fe638847.js +1 -0
  196. package/static/esm/{e8401d17.js → 203c9644.js} +3 -3
  197. package/static/esm/4b679053.js +27 -0
  198. package/static/esm/{b273a6c2.js → f31a26c6.js} +1 -1
  199. package/static/runtime/disposable-CD74igiJ.js +1 -0
  200. package/static/runtime/guid-C0wuVR8v.js +1 -0
  201. package/vite/index.d.ts +17 -6
  202. package/vite/index.js +315 -270
  203. package/vite/pluginDev/index.d.ts +10 -19
  204. package/vite/pluginDev/index.js +251 -204
  205. package/webpack/index.d.ts +24 -5
  206. package/webpack/index.js +168 -144
  207. package/webpack/pluginDev/index.d.ts +21 -22
  208. package/webpack/pluginDev/index.js +242 -177
  209. package/cli/dist/lib/template-engine/buildStandIndexHtml.test.d.ts +0 -2
  210. package/cli/dist/lib/template-engine/buildStandIndexHtml.test.js +0 -89
  211. package/cli/dist/lib/template-engine/emitEtaTree.test.d.ts +0 -2
  212. package/cli/dist/lib/template-engine/emitEtaTree.test.js +0 -34
  213. package/cli/dist/lib/template-engine/pluginEtaParity.test.d.ts +0 -2
  214. package/cli/dist/lib/template-engine/pluginEtaParity.test.js +0 -105
  215. package/cli/dist/lib/template-engine/resolveVariantDir.test.d.ts +0 -2
  216. package/cli/dist/lib/template-engine/resolveVariantDir.test.js +0 -52
  217. package/cli/dist/lib/template-engine/standAdvancedViteDevHostEta.test.d.ts +0 -2
  218. package/cli/dist/lib/template-engine/standAdvancedViteDevHostEta.test.js +0 -67
  219. package/cli/dist/lib/template-engine/standWebpackDevHostEta.test.d.ts +0 -2
  220. package/cli/dist/lib/template-engine/standWebpackDevHostEta.test.js +0 -83
  221. package/cli/dist/lib/template-engine/storageProviderEta.test.d.ts +0 -2
  222. package/cli/dist/lib/template-engine/storageProviderEta.test.js +0 -26
  223. package/cli/project-templates/plugin/shared-base/scripts/build-types.cjs +0 -8
  224. package/cli/project-templates/plugin/shared-base/scripts/clean.cjs +0 -6
  225. package/cli/project-templates/plugin/shared-base/scripts/dev-runner.cjs +0 -48
  226. package/cli/project-templates/plugin/shared-base/scripts/release-runner.cjs +0 -63
  227. package/cli/project-templates/shared/stand-vite-base/config/lib/createViteStandConfig.mjs +0 -80
  228. package/cli/project-templates/shared/stand-vite-base/scripts/devStorageMiddleware.cjs +0 -235
  229. package/cli/project-templates/shared/stand-webpack-base/config/lib/umdServeMiddleware.cjs +0 -38
  230. package/cli/project-templates/shared/stand-webpack-base/scripts/devStorageMiddleware.cjs +0 -235
  231. package/emailmaker-core.80d62b88.js +0 -569
  232. package/runtime/_core/app-core/index.js +0 -1
  233. package/runtime/_core/chunks/app-core-DphKKh8f.js +0 -1
  234. package/runtime/_core/chunks/chunk-oqAt0Dze.js +0 -1
  235. package/runtime/_core/chunks/di-BHUzE57z.js +0 -1
  236. package/runtime/_core/chunks/disposable-PhM3rJkj.js +0 -1
  237. package/runtime/_core/chunks/errors-runtime-VjCOXaQX.js +0 -1
  238. package/runtime/_core/chunks/guid-D2-FTZQG.js +0 -1
  239. package/runtime/_core/di/index.js +0 -1
  240. package/runtime/_core/disposable/index.js +0 -1
  241. package/runtime/_core/errors-runtime/index.js +0 -1
  242. package/runtime/_core/guid/index.js +0 -1
  243. package/runtime/_core/index.js +0 -1
  244. package/shared/hostBootstrap.js +0 -47
  245. package/shared/pluginDevOptions.js +0 -31
  246. package/shared/runtimeManifest.js +0 -72
  247. package/shared/stringCase.js +0 -16
  248. package/static/core/2360f32a.js +0 -3
  249. package/static/core/2687db56.js +0 -3
  250. package/static/core/2b250af6.js +0 -1261
  251. package/static/core/3469930c.js +0 -302
  252. package/static/core/34ce9042.js +0 -201
  253. package/static/core/4091ba5b.js +0 -25
  254. package/static/core/41ce3a6a.js +0 -173
  255. package/static/core/4ac4908c.js +0 -2213
  256. package/static/core/519096c1.js +0 -2597
  257. package/static/core/5fa1772b.js +0 -116550
  258. package/static/core/61312909.js +0 -3
  259. package/static/core/62a98c07.js +0 -75301
  260. package/static/core/6309c0f2.js +0 -3
  261. package/static/core/68d9f440.js +0 -3
  262. package/static/core/73b645ab.js +0 -2
  263. package/static/core/81019351.js +0 -280
  264. package/static/core/835b37ef.js +0 -591
  265. package/static/core/91242fb3.js +0 -3
  266. package/static/core/972b15b0.js +0 -92399
  267. package/static/core/974ef468.js +0 -493
  268. package/static/core/a17614422.js +0 -38078
  269. package/static/core/a2fa7b5b.js +0 -4232
  270. package/static/core/a513adfd.js +0 -89857
  271. package/static/core/a7c73a9b.js +0 -3813
  272. package/static/core/b64c7c90.js +0 -228
  273. package/static/core/cdc9ba92.js +0 -4711
  274. package/static/core/d1db685d.js +0 -2193
  275. package/static/core/d661febc.js +0 -3
  276. package/static/core/d6d2d2d0.js +0 -23
  277. package/static/core/df1a1225.js +0 -607
  278. package/static/core/e5bff179.js +0 -1302
  279. package/static/core/e5d602f5.js +0 -2
  280. package/static/core/eb029366.js +0 -1532
  281. package/static/core/f46c035a.js +0 -2
  282. package/static/core/f8b9d89a.js +0 -461
  283. package/static/core/fd897ad7.js +0 -3
  284. package/static/core/fdd890c7.js +0 -6168
  285. package/static/esm/29eb18ff.js +0 -164
  286. package/vite/mime-types.js +0 -179
  287. package/vite/utils.js +0 -44
  288. /package/cli/project-templates/plugin/bundler-vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  289. /package/cli/project-templates/plugin/bundler-vite/config/{plugin-build.mjs.eta → plugin-build.ts.eta} +0 -0
  290. /package/cli/project-templates/plugin/bundler-vite/config/{sandbox-build.mjs.eta → sandbox-build.ts.eta} +0 -0
  291. /package/cli/project-templates/plugin/bundler-webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  292. /package/cli/project-templates/plugin/bundler-webpack/config/{plugin-build.cjs.eta → plugin-build.ts.eta} +0 -0
  293. /package/cli/project-templates/plugin/bundler-webpack/config/{sandbox-build.cjs.eta → sandbox-build.ts.eta} +0 -0
  294. /package/cli/project-templates/stand/advanced/memory-usage/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  295. /package/cli/project-templates/stand/advanced/shadow-dom/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  296. /package/cli/project-templates/stand/advanced/shadow-dom/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  297. /package/cli/project-templates/stand/advanced/subpath/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  298. /package/cli/project-templates/stand/advanced/subpath/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  299. /package/cli/project-templates/stand/advanced/umd/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  300. /package/cli/project-templates/stand/advanced/umd/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  301. /package/cli/project-templates/stand/closed-loop/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  302. /package/cli/project-templates/stand/closed-loop/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  303. /package/cli/project-templates/stand/oauth/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  304. /package/cli/project-templates/stand/oauth/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  305. /package/cli/project-templates/stand/react-adapter/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  306. /package/iframe/{iframe-eblock.80d62b88.html → iframe-eblock.ed344c04.html} +0 -0
  307. /package/iframe/{iframe.80d62b88.html → iframe.ed344c04.html} +0 -0
  308. /package/{runtime/chunks → static/runtime}/DownloadOutlined-a2ZUz7zB.js +0 -0
  309. /package/{runtime/chunks → static/runtime}/chunk-D-iEO58U.js +0 -0
  310. /package/{runtime/chunks → static/runtime}/classnames-DBEldvch.js +0 -0
  311. /package/{runtime/chunks → static/runtime}/client-5XqXGmAI.js +0 -0
  312. /package/{runtime/chunks → static/runtime}/dayjs.min-CO3mzOeV.js +0 -0
  313. /package/{runtime/_core/chunks/defineProperty-BGJFuFMq.js → static/runtime/defineProperty-CGNmw-jw.js} +0 -0
  314. /package/{runtime/chunks → static/runtime}/dist-Cns8cA2n.js +0 -0
  315. /package/{runtime/chunks → static/runtime}/dist-Ct0xRt3Y.js +0 -0
  316. /package/{runtime/chunks → static/runtime}/es-0FFT3fCz.js +0 -0
  317. /package/{runtime/chunks → static/runtime}/es-BwJ3eGbx.js +0 -0
  318. /package/{runtime/chunks → static/runtime}/es-D8EsVtRL.js +0 -0
  319. /package/{runtime/chunks → static/runtime}/es-Da4O25Kw.js +0 -0
  320. /package/{runtime/chunks → static/runtime}/jsx-dev-runtime-V4_MuHNS.js +0 -0
  321. /package/{runtime/chunks → static/runtime}/jsx-runtime-DBeCoE0b.js +0 -0
  322. /package/{runtime/chunks → static/runtime}/objectWithoutProperties-Bk0EDksJ.js +0 -0
  323. /package/{runtime/chunks → static/runtime}/prop-types-DxD5wgQ0.js +0 -0
  324. /package/{runtime/chunks → static/runtime}/react-TEeeBWTl.js +0 -0
  325. /package/{runtime/chunks → static/runtime}/react-dom-BKKa1g6U.js +0 -0
@@ -1,4232 +0,0 @@
1
- import { s as e, t } from "./d6d2d2d0.js";
2
- import { Bt as n } from "./cdc9ba92.js";
3
- import { C as r, w as i } from "./a513adfd.js";
4
- import { p as a } from "./972b15b0.js";
5
- //#region node_modules/immer/dist/immer.esm.mjs
6
- function o(e) {
7
- var t = [...arguments].slice(1);
8
- throw Error("[Immer] minified error nr: " + e + (t.length ? " " + t.map((function(e) {
9
- return "'" + e + "'";
10
- })).join(",") : "") + ". Find the full error at: https://bit.ly/3cXEKWf");
11
- }
12
- function s(e) {
13
- return !!e && !!e[R];
14
- }
15
- function c(e) {
16
- return !!e && (function(e) {
17
- if (!e || typeof e != "object") return !1;
18
- var t = Object.getPrototypeOf(e);
19
- if (t === null) return !0;
20
- var n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
21
- return n === Object || typeof n == "function" && Function.toString.call(n) === me;
22
- }(e) || Array.isArray(e) || !!e[pe] || !!e.constructor?.[pe] || g(e) || _(e));
23
- }
24
- function l(e) {
25
- return s(e) || o(23, e), e[R].t;
26
- }
27
- function u(e, t, n) {
28
- n === void 0 && (n = !1), d(e) === 0 ? (n ? Object.keys : he)(e).forEach((function(r) {
29
- n && typeof r == "symbol" || t(r, e[r], e);
30
- })) : e.forEach((function(n, r) {
31
- return t(r, n, e);
32
- }));
33
- }
34
- function d(e) {
35
- var t = e[R];
36
- return t ? t.i > 3 ? t.i - 4 : t.i : Array.isArray(e) ? 1 : g(e) ? 2 : _(e) ? 3 : 0;
37
- }
38
- function f(e, t) {
39
- return d(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
40
- }
41
- function p(e, t) {
42
- return d(e) === 2 ? e.get(t) : e[t];
43
- }
44
- function m(e, t, n) {
45
- var r = d(e);
46
- r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
47
- }
48
- function h(e, t) {
49
- return e === t ? e !== 0 || 1 / e == 1 / t : e != e && t != t;
50
- }
51
- function g(e) {
52
- return ue && e instanceof Map;
53
- }
54
- function _(e) {
55
- return de && e instanceof Set;
56
- }
57
- function v(e) {
58
- return e.o || e.t;
59
- }
60
- function y(e) {
61
- if (Array.isArray(e)) return Array.prototype.slice.call(e);
62
- var t = ge(e);
63
- delete t[R];
64
- for (var n = he(t), r = 0; r < n.length; r++) {
65
- var i = n[r], a = t[i];
66
- !1 === a.writable && (a.writable = !0, a.configurable = !0), (a.get || a.set) && (t[i] = {
67
- configurable: !0,
68
- writable: !0,
69
- enumerable: a.enumerable,
70
- value: e[i]
71
- });
72
- }
73
- return Object.create(Object.getPrototypeOf(e), t);
74
- }
75
- function b(e, t) {
76
- return t === void 0 && (t = !1), S(e) || s(e) || !c(e) || (d(e) > 1 && (e.set = e.add = e.clear = e.delete = x), Object.freeze(e), t && u(e, (function(e, t) {
77
- return b(t, !0);
78
- }), !0)), e;
79
- }
80
- function x() {
81
- o(2);
82
- }
83
- function S(e) {
84
- return typeof e != "object" || !e || Object.isFrozen(e);
85
- }
86
- function C(e) {
87
- var t = _e[e];
88
- return t || o(18, e), t;
89
- }
90
- function w(e, t) {
91
- _e[e] || (_e[e] = t);
92
- }
93
- function T() {
94
- return F;
95
- }
96
- function E(e, t) {
97
- t && (C("Patches"), e.u = [], e.s = [], e.v = t);
98
- }
99
- function D(e) {
100
- O(e), e.p.forEach(ee), e.p = null;
101
- }
102
- function O(e) {
103
- e === F && (F = e.l);
104
- }
105
- function k(e) {
106
- return F = {
107
- p: [],
108
- l: F,
109
- h: e,
110
- m: !0,
111
- _: 0
112
- };
113
- }
114
- function ee(e) {
115
- var t = e[R];
116
- t.i === 0 || t.i === 1 ? t.j() : t.g = !0;
117
- }
118
- function A(e, t) {
119
- t._ = t.p.length;
120
- var n = t.p[0], r = e !== void 0 && e !== n;
121
- return t.h.O || C("ES5").S(t, e, r), r ? (n[R].P && (D(t), o(4)), c(e) && (e = j(t, e), t.l || M(t, e)), t.u && C("Patches").M(n[R].t, e, t.u, t.s)) : e = j(t, n, []), D(t), t.u && t.v(t.u, t.s), e === L ? void 0 : e;
122
- }
123
- function j(e, t, n) {
124
- if (S(t)) return t;
125
- var r = t[R];
126
- if (!r) return u(t, (function(i, a) {
127
- return te(e, r, t, i, a, n);
128
- }), !0), t;
129
- if (r.A !== e) return t;
130
- if (!r.P) return M(e, r.t, !0), r.t;
131
- if (!r.I) {
132
- r.I = !0, r.A._--;
133
- var i = r.i === 4 || r.i === 5 ? r.o = y(r.k) : r.o, a = i, o = !1;
134
- r.i === 3 && (a = new Set(i), i.clear(), o = !0), u(a, (function(t, a) {
135
- return te(e, r, i, t, a, n, o);
136
- })), M(e, i, !1), n && e.u && C("Patches").N(r, n, e.u, e.s);
137
- }
138
- return r.o;
139
- }
140
- function te(e, t, n, r, i, a, o) {
141
- if (s(i)) {
142
- var l = j(e, i, a && t && t.i !== 3 && !f(t.R, r) ? a.concat(r) : void 0);
143
- if (m(n, r, l), !s(l)) return;
144
- e.m = !1;
145
- } else o && n.add(i);
146
- if (c(i) && !S(i)) {
147
- if (!e.h.D && e._ < 1) return;
148
- j(e, i), t && t.A.l || M(e, i);
149
- }
150
- }
151
- function M(e, t, n) {
152
- n === void 0 && (n = !1), !e.l && e.h.D && e.m && b(t, n);
153
- }
154
- function ne(e, t) {
155
- var n = e[R];
156
- return (n ? v(n) : e)[t];
157
- }
158
- function re(e, t) {
159
- if (t in e) for (var n = Object.getPrototypeOf(e); n;) {
160
- var r = Object.getOwnPropertyDescriptor(n, t);
161
- if (r) return r;
162
- n = Object.getPrototypeOf(n);
163
- }
164
- }
165
- function N(e) {
166
- e.P || (e.P = !0, e.l && N(e.l));
167
- }
168
- function ie(e) {
169
- e.o ||= y(e.t);
170
- }
171
- function ae(e, t, n) {
172
- var r = g(t) ? C("MapSet").F(t, n) : _(t) ? C("MapSet").T(t, n) : e.O ? function(e, t) {
173
- var n = Array.isArray(e), r = {
174
- i: n ? 1 : 0,
175
- A: t ? t.A : T(),
176
- P: !1,
177
- I: !1,
178
- R: {},
179
- l: t,
180
- t: e,
181
- k: null,
182
- o: null,
183
- j: null,
184
- C: !1
185
- }, i = r, a = ve;
186
- n && (i = [r], a = ye);
187
- var o = Proxy.revocable(i, a), s = o.revoke, c = o.proxy;
188
- return r.k = c, r.j = s, c;
189
- }(t, n) : C("ES5").J(t, n);
190
- return (n ? n.A : T()).p.push(r), r;
191
- }
192
- function oe(e) {
193
- return s(e) || o(22, e), function e(t) {
194
- if (!c(t)) return t;
195
- var n, r = t[R], i = d(t);
196
- if (r) {
197
- if (!r.P && (r.i < 4 || !C("ES5").K(r))) return r.t;
198
- r.I = !0, n = P(t, i), r.I = !1;
199
- } else n = P(t, i);
200
- return u(n, (function(t, i) {
201
- r && p(r.t, t) === i || m(n, t, e(i));
202
- })), i === 3 ? new Set(n) : n;
203
- }(e);
204
- }
205
- function P(e, t) {
206
- switch (t) {
207
- case 2: return new Map(e);
208
- case 3: return Array.from(e);
209
- }
210
- return y(e);
211
- }
212
- function se() {
213
- function e(e, t) {
214
- var n = i[e];
215
- return n ? n.enumerable = t : i[e] = n = {
216
- configurable: !0,
217
- enumerable: t,
218
- get: function() {
219
- var t = this[R];
220
- return ve.get(t, e);
221
- },
222
- set: function(t) {
223
- var n = this[R];
224
- ve.set(n, e, t);
225
- }
226
- }, n;
227
- }
228
- function t(e) {
229
- for (var t = e.length - 1; t >= 0; t--) {
230
- var i = e[t][R];
231
- if (!i.P) switch (i.i) {
232
- case 5:
233
- r(i) && N(i);
234
- break;
235
- case 4: n(i) && N(i);
236
- }
237
- }
238
- }
239
- function n(e) {
240
- for (var t = e.t, n = e.k, r = he(n), i = r.length - 1; i >= 0; i--) {
241
- var a = r[i];
242
- if (a !== R) {
243
- var o = t[a];
244
- if (o === void 0 && !f(t, a)) return !0;
245
- var s = n[a], c = s && s[R];
246
- if (c ? c.t !== o : !h(s, o)) return !0;
247
- }
248
- }
249
- var l = !!t[R];
250
- return r.length !== he(t).length + (l ? 0 : 1);
251
- }
252
- function r(e) {
253
- var t = e.k;
254
- if (t.length !== e.t.length) return !0;
255
- var n = Object.getOwnPropertyDescriptor(t, t.length - 1);
256
- if (n && !n.get) return !0;
257
- for (var r = 0; r < t.length; r++) if (!t.hasOwnProperty(r)) return !0;
258
- return !1;
259
- }
260
- var i = {};
261
- w("ES5", {
262
- J: function(t, n) {
263
- var r = Array.isArray(t), i = function(t, n) {
264
- if (t) {
265
- for (var r = Array(n.length), i = 0; i < n.length; i++) Object.defineProperty(r, "" + i, e(i, !0));
266
- return r;
267
- }
268
- var a = ge(n);
269
- delete a[R];
270
- for (var o = he(a), s = 0; s < o.length; s++) {
271
- var c = o[s];
272
- a[c] = e(c, t || !!a[c].enumerable);
273
- }
274
- return Object.create(Object.getPrototypeOf(n), a);
275
- }(r, t), a = {
276
- i: r ? 5 : 4,
277
- A: n ? n.A : T(),
278
- P: !1,
279
- I: !1,
280
- R: {},
281
- l: n,
282
- t,
283
- k: i,
284
- o: null,
285
- g: !1,
286
- C: !1
287
- };
288
- return Object.defineProperty(i, R, {
289
- value: a,
290
- writable: !0
291
- }), i;
292
- },
293
- S: function(e, n, i) {
294
- i ? s(n) && n[R].A === e && t(e.p) : (e.u && function e(t) {
295
- if (t && typeof t == "object") {
296
- var n = t[R];
297
- if (n) {
298
- var i = n.t, a = n.k, o = n.R, s = n.i;
299
- if (s === 4) u(a, (function(t) {
300
- t !== R && (i[t] !== void 0 || f(i, t) ? o[t] || e(a[t]) : (o[t] = !0, N(n)));
301
- })), u(i, (function(e) {
302
- a[e] !== void 0 || f(a, e) || (o[e] = !1, N(n));
303
- }));
304
- else if (s === 5) {
305
- if (r(n) && (N(n), o.length = !0), a.length < i.length) for (var c = a.length; c < i.length; c++) o[c] = !1;
306
- else for (var l = i.length; l < a.length; l++) o[l] = !0;
307
- for (var d = Math.min(a.length, i.length), p = 0; p < d; p++) a.hasOwnProperty(p) || (o[p] = !0), o[p] === void 0 && e(a[p]);
308
- }
309
- }
310
- }
311
- }(e.p[0]), t(e.p));
312
- },
313
- K: function(e) {
314
- return e.i === 4 ? n(e) : r(e);
315
- }
316
- });
317
- }
318
- function ce() {
319
- function e(t) {
320
- if (!c(t)) return t;
321
- if (Array.isArray(t)) return t.map(e);
322
- if (g(t)) return new Map(Array.from(t.entries()).map((function(t) {
323
- return [t[0], e(t[1])];
324
- })));
325
- if (_(t)) return new Set(Array.from(t).map(e));
326
- var n = Object.create(Object.getPrototypeOf(t));
327
- for (var r in t) n[r] = e(t[r]);
328
- return f(t, pe) && (n[pe] = t[pe]), n;
329
- }
330
- function t(t) {
331
- return s(t) ? e(t) : t;
332
- }
333
- var n = "add";
334
- w("Patches", {
335
- $: function(t, r) {
336
- return r.forEach((function(r) {
337
- for (var i = r.path, a = r.op, s = t, c = 0; c < i.length - 1; c++) {
338
- var l = d(s), u = i[c];
339
- typeof u != "string" && typeof u != "number" && (u = "" + u), l !== 0 && l !== 1 || u !== "__proto__" && u !== "constructor" || o(24), typeof s == "function" && u === "prototype" && o(24), typeof (s = p(s, u)) != "object" && o(15, i.join("/"));
340
- }
341
- var f = d(s), m = e(r.value), h = i[i.length - 1];
342
- switch (a) {
343
- case "replace": switch (f) {
344
- case 2: return s.set(h, m);
345
- case 3: o(16);
346
- default: return s[h] = m;
347
- }
348
- case n: switch (f) {
349
- case 1: return h === "-" ? s.push(m) : s.splice(h, 0, m);
350
- case 2: return s.set(h, m);
351
- case 3: return s.add(m);
352
- default: return s[h] = m;
353
- }
354
- case "remove": switch (f) {
355
- case 1: return s.splice(h, 1);
356
- case 2: return s.delete(h);
357
- case 3: return s.delete(r.value);
358
- default: return delete s[h];
359
- }
360
- default: o(17, a);
361
- }
362
- })), t;
363
- },
364
- N: function(e, r, i, a) {
365
- switch (e.i) {
366
- case 0:
367
- case 4:
368
- case 2: return function(e, r, i, a) {
369
- var o = e.t, s = e.o;
370
- u(e.R, (function(e, c) {
371
- var l = p(o, e), u = p(s, e), d = c ? f(o, e) ? "replace" : n : "remove";
372
- if (l !== u || d !== "replace") {
373
- var m = r.concat(e);
374
- i.push(d === "remove" ? {
375
- op: d,
376
- path: m
377
- } : {
378
- op: d,
379
- path: m,
380
- value: u
381
- }), a.push(d === n ? {
382
- op: "remove",
383
- path: m
384
- } : d === "remove" ? {
385
- op: n,
386
- path: m,
387
- value: t(l)
388
- } : {
389
- op: "replace",
390
- path: m,
391
- value: t(l)
392
- });
393
- }
394
- }));
395
- }(e, r, i, a);
396
- case 5:
397
- case 1: return function(e, r, i, a) {
398
- var o = e.t, s = e.R, c = e.o;
399
- if (c.length < o.length) {
400
- var l = [c, o];
401
- o = l[0], c = l[1];
402
- var u = [a, i];
403
- i = u[0], a = u[1];
404
- }
405
- for (var d = 0; d < o.length; d++) if (s[d] && c[d] !== o[d]) {
406
- var f = r.concat([d]);
407
- i.push({
408
- op: "replace",
409
- path: f,
410
- value: t(c[d])
411
- }), a.push({
412
- op: "replace",
413
- path: f,
414
- value: t(o[d])
415
- });
416
- }
417
- for (var p = o.length; p < c.length; p++) {
418
- var m = r.concat([p]);
419
- i.push({
420
- op: n,
421
- path: m,
422
- value: t(c[p])
423
- });
424
- }
425
- o.length < c.length && a.push({
426
- op: "replace",
427
- path: r.concat(["length"]),
428
- value: o.length
429
- });
430
- }(e, r, i, a);
431
- case 3: return function(e, t, r, i) {
432
- var a = e.t, o = e.o, s = 0;
433
- a.forEach((function(e) {
434
- if (!o.has(e)) {
435
- var a = t.concat([s]);
436
- r.push({
437
- op: "remove",
438
- path: a,
439
- value: e
440
- }), i.unshift({
441
- op: n,
442
- path: a,
443
- value: e
444
- });
445
- }
446
- s++;
447
- })), s = 0, o.forEach((function(e) {
448
- if (!a.has(e)) {
449
- var o = t.concat([s]);
450
- r.push({
451
- op: n,
452
- path: o,
453
- value: e
454
- }), i.unshift({
455
- op: "remove",
456
- path: o,
457
- value: e
458
- });
459
- }
460
- s++;
461
- }));
462
- }(e, r, i, a);
463
- }
464
- },
465
- M: function(e, t, n, r) {
466
- n.push({
467
- op: "replace",
468
- path: [],
469
- value: t === L ? void 0 : t
470
- }), r.push({
471
- op: "replace",
472
- path: [],
473
- value: e
474
- });
475
- }
476
- });
477
- }
478
- var le, F, I = typeof Symbol < "u" && typeof Symbol("x") == "symbol", ue = typeof Map < "u", de = typeof Set < "u", fe = typeof Proxy < "u" && Proxy.revocable !== void 0 && typeof Reflect < "u", L = I ? Symbol.for("immer-nothing") : ((le = {})["immer-nothing"] = !0, le), pe = I ? Symbol.for("immer-draftable") : "__$immer_draftable", R = I ? Symbol.for("immer-state") : "__$immer_state", me = "" + Object.prototype.constructor, he = typeof Reflect < "u" && Reflect.ownKeys ? Reflect.ownKeys : Object.getOwnPropertySymbols === void 0 ? Object.getOwnPropertyNames : function(e) {
479
- return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
480
- }, ge = Object.getOwnPropertyDescriptors || function(e) {
481
- var t = {};
482
- return he(e).forEach((function(n) {
483
- t[n] = Object.getOwnPropertyDescriptor(e, n);
484
- })), t;
485
- }, _e = {}, ve = {
486
- get: function(e, t) {
487
- if (t === R) return e;
488
- var n = v(e);
489
- if (!f(n, t)) return function(e, t, n) {
490
- var r = re(t, n);
491
- return r ? "value" in r ? r.value : r.get?.call(e.k) : void 0;
492
- }(e, n, t);
493
- var r = n[t];
494
- return e.I || !c(r) ? r : r === ne(e.t, t) ? (ie(e), e.o[t] = ae(e.A.h, r, e)) : r;
495
- },
496
- has: function(e, t) {
497
- return t in v(e);
498
- },
499
- ownKeys: function(e) {
500
- return Reflect.ownKeys(v(e));
501
- },
502
- set: function(e, t, n) {
503
- var r = re(v(e), t);
504
- if (r?.set) return r.set.call(e.k, n), !0;
505
- if (!e.P) {
506
- var i = ne(v(e), t), a = i?.[R];
507
- if (a && a.t === n) return e.o[t] = n, e.R[t] = !1, !0;
508
- if (h(n, i) && (n !== void 0 || f(e.t, t))) return !0;
509
- ie(e), N(e);
510
- }
511
- return e.o[t] === n && (n !== void 0 || t in e.o) || Number.isNaN(n) && Number.isNaN(e.o[t]) || (e.o[t] = n, e.R[t] = !0), !0;
512
- },
513
- deleteProperty: function(e, t) {
514
- return ne(e.t, t) !== void 0 || t in e.t ? (e.R[t] = !1, ie(e), N(e)) : delete e.R[t], e.o && delete e.o[t], !0;
515
- },
516
- getOwnPropertyDescriptor: function(e, t) {
517
- var n = v(e), r = Reflect.getOwnPropertyDescriptor(n, t);
518
- return r && {
519
- writable: !0,
520
- configurable: e.i !== 1 || t !== "length",
521
- enumerable: r.enumerable,
522
- value: n[t]
523
- };
524
- },
525
- defineProperty: function() {
526
- o(11);
527
- },
528
- getPrototypeOf: function(e) {
529
- return Object.getPrototypeOf(e.t);
530
- },
531
- setPrototypeOf: function() {
532
- o(12);
533
- }
534
- }, ye = {};
535
- u(ve, (function(e, t) {
536
- ye[e] = function() {
537
- return arguments[0] = arguments[0][0], t.apply(this, arguments);
538
- };
539
- })), ye.deleteProperty = function(e, t) {
540
- return ye.set.call(this, e, t, void 0);
541
- }, ye.set = function(e, t, n) {
542
- return ve.set.call(this, e[0], t, n, e[0]);
543
- };
544
- var z = new (function() {
545
- function e(e) {
546
- var t = this;
547
- this.O = fe, this.D = !0, this.produce = function(e, n, r) {
548
- if (typeof e == "function" && typeof n != "function") {
549
- var i = n;
550
- n = e;
551
- var a = t;
552
- return function(e) {
553
- var t = this;
554
- e === void 0 && (e = i);
555
- var r = [...arguments].slice(1);
556
- return a.produce(e, (function(e) {
557
- var i;
558
- return (i = n).call.apply(i, [t, e].concat(r));
559
- }));
560
- };
561
- }
562
- var s;
563
- if (typeof n != "function" && o(6), r !== void 0 && typeof r != "function" && o(7), c(e)) {
564
- var l = k(t), u = ae(t, e, void 0), d = !0;
565
- try {
566
- s = n(u), d = !1;
567
- } finally {
568
- d ? D(l) : O(l);
569
- }
570
- return typeof Promise < "u" && s instanceof Promise ? s.then((function(e) {
571
- return E(l, r), A(e, l);
572
- }), (function(e) {
573
- throw D(l), e;
574
- })) : (E(l, r), A(s, l));
575
- }
576
- if (!e || typeof e != "object") {
577
- if ((s = n(e)) === void 0 && (s = e), s === L && (s = void 0), t.D && b(s, !0), r) {
578
- var f = [], p = [];
579
- C("Patches").M(e, s, f, p), r(f, p);
580
- }
581
- return s;
582
- }
583
- o(21, e);
584
- }, this.produceWithPatches = function(e, n) {
585
- if (typeof e == "function") return function(n) {
586
- var r = [...arguments].slice(1);
587
- return t.produceWithPatches(n, (function(t) {
588
- return e.apply(void 0, [t].concat(r));
589
- }));
590
- };
591
- var r, i, a = t.produce(e, n, (function(e, t) {
592
- r = e, i = t;
593
- }));
594
- return typeof Promise < "u" && a instanceof Promise ? a.then((function(e) {
595
- return [
596
- e,
597
- r,
598
- i
599
- ];
600
- })) : [
601
- a,
602
- r,
603
- i
604
- ];
605
- }, typeof e?.useProxies == "boolean" && this.setUseProxies(e.useProxies), typeof e?.autoFreeze == "boolean" && this.setAutoFreeze(e.autoFreeze);
606
- }
607
- var t = e.prototype;
608
- return t.createDraft = function(e) {
609
- c(e) || o(8), s(e) && (e = oe(e));
610
- var t = k(this), n = ae(this, e, void 0);
611
- return n[R].C = !0, O(t), n;
612
- }, t.finishDraft = function(e, t) {
613
- var n = (e && e[R]).A;
614
- return E(n, t), A(void 0, n);
615
- }, t.setAutoFreeze = function(e) {
616
- this.D = e;
617
- }, t.setUseProxies = function(e) {
618
- e && !fe && o(20), this.O = e;
619
- }, t.applyPatches = function(e, t) {
620
- var n;
621
- for (n = t.length - 1; n >= 0; n--) {
622
- var r = t[n];
623
- if (r.path.length === 0 && r.op === "replace") {
624
- e = r.value;
625
- break;
626
- }
627
- }
628
- n > -1 && (t = t.slice(n + 1));
629
- var i = C("Patches").$;
630
- return s(e) ? i(e, t) : this.produce(e, (function(e) {
631
- return i(e, t);
632
- }));
633
- }, e;
634
- }())(), be = z.produce, xe = z.produceWithPatches.bind(z);
635
- z.setAutoFreeze.bind(z), z.setUseProxies.bind(z);
636
- var Se = z.applyPatches.bind(z);
637
- z.createDraft.bind(z), z.finishDraft.bind(z);
638
- //#endregion
639
- //#region node_modules/@babel/runtime/helpers/esm/typeof.js
640
- function Ce(e) {
641
- "@babel/helpers - typeof";
642
- return Ce = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
643
- return typeof e;
644
- } : function(e) {
645
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
646
- }, Ce(e);
647
- }
648
- //#endregion
649
- //#region node_modules/@babel/runtime/helpers/esm/toPrimitive.js
650
- function we(e, t) {
651
- if (Ce(e) != "object" || !e) return e;
652
- var n = e[Symbol.toPrimitive];
653
- if (n !== void 0) {
654
- var r = n.call(e, t || "default");
655
- if (Ce(r) != "object") return r;
656
- throw TypeError("@@toPrimitive must return a primitive value.");
657
- }
658
- return (t === "string" ? String : Number)(e);
659
- }
660
- //#endregion
661
- //#region node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
662
- function Te(e) {
663
- var t = we(e, "string");
664
- return Ce(t) == "symbol" ? t : t + "";
665
- }
666
- //#endregion
667
- //#region node_modules/@babel/runtime/helpers/esm/defineProperty.js
668
- function Ee(e, t, n) {
669
- return (t = Te(t)) in e ? Object.defineProperty(e, t, {
670
- value: n,
671
- enumerable: !0,
672
- configurable: !0,
673
- writable: !0
674
- }) : e[t] = n, e;
675
- }
676
- //#endregion
677
- //#region node_modules/@babel/runtime/helpers/esm/objectSpread2.js
678
- function De(e, t) {
679
- var n = Object.keys(e);
680
- if (Object.getOwnPropertySymbols) {
681
- var r = Object.getOwnPropertySymbols(e);
682
- t && (r = r.filter(function(t) {
683
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
684
- })), n.push.apply(n, r);
685
- }
686
- return n;
687
- }
688
- function Oe(e) {
689
- for (var t = 1; t < arguments.length; t++) {
690
- var n = arguments[t] == null ? {} : arguments[t];
691
- t % 2 ? De(Object(n), !0).forEach(function(t) {
692
- Ee(e, t, n[t]);
693
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : De(Object(n)).forEach(function(t) {
694
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
695
- });
696
- }
697
- return e;
698
- }
699
- //#endregion
700
- //#region node_modules/redux/es/redux.js
701
- function B(e) {
702
- return "Minified Redux error #" + e + "; visit https://redux.js.org/Errors?code=" + e + " for the full message or use the non-minified dev environment for full errors. ";
703
- }
704
- var ke = (function() {
705
- return typeof Symbol == "function" && Symbol.observable || "@@observable";
706
- })(), Ae = function() {
707
- return Math.random().toString(36).substring(7).split("").join(".");
708
- }, je = {
709
- INIT: "@@redux/INIT" + Ae(),
710
- REPLACE: "@@redux/REPLACE" + Ae(),
711
- PROBE_UNKNOWN_ACTION: function() {
712
- return "@@redux/PROBE_UNKNOWN_ACTION" + Ae();
713
- }
714
- };
715
- function Me(e) {
716
- if (typeof e != "object" || !e) return !1;
717
- for (var t = e; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
718
- return Object.getPrototypeOf(e) === t;
719
- }
720
- function Ne(e, t, n) {
721
- var r;
722
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(B(0));
723
- if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
724
- if (typeof n != "function") throw Error(B(1));
725
- return n(Ne)(e, t);
726
- }
727
- if (typeof e != "function") throw Error(B(2));
728
- var i = e, a = t, o = [], s = o, c = !1;
729
- function l() {
730
- s === o && (s = o.slice());
731
- }
732
- function u() {
733
- if (c) throw Error(B(3));
734
- return a;
735
- }
736
- function d(e) {
737
- if (typeof e != "function") throw Error(B(4));
738
- if (c) throw Error(B(5));
739
- var t = !0;
740
- return l(), s.push(e), function() {
741
- if (t) {
742
- if (c) throw Error(B(6));
743
- t = !1, l();
744
- var n = s.indexOf(e);
745
- s.splice(n, 1), o = null;
746
- }
747
- };
748
- }
749
- function f(e) {
750
- if (!Me(e)) throw Error(B(7));
751
- if (e.type === void 0) throw Error(B(8));
752
- if (c) throw Error(B(9));
753
- try {
754
- c = !0, a = i(a, e);
755
- } finally {
756
- c = !1;
757
- }
758
- for (var t = o = s, n = 0; n < t.length; n++) {
759
- var r = t[n];
760
- r();
761
- }
762
- return e;
763
- }
764
- function p(e) {
765
- if (typeof e != "function") throw Error(B(10));
766
- i = e, f({ type: je.REPLACE });
767
- }
768
- function m() {
769
- var e, t = d;
770
- return e = { subscribe: function(e) {
771
- if (typeof e != "object" || !e) throw Error(B(11));
772
- function n() {
773
- e.next && e.next(u());
774
- }
775
- return n(), { unsubscribe: t(n) };
776
- } }, e[ke] = function() {
777
- return this;
778
- }, e;
779
- }
780
- return f({ type: je.INIT }), r = {
781
- dispatch: f,
782
- subscribe: d,
783
- getState: u,
784
- replaceReducer: p
785
- }, r[ke] = m, r;
786
- }
787
- function Pe(e) {
788
- Object.keys(e).forEach(function(t) {
789
- var n = e[t];
790
- if (n(void 0, { type: je.INIT }) === void 0) throw Error(B(12));
791
- if (n(void 0, { type: je.PROBE_UNKNOWN_ACTION() }) === void 0) throw Error(B(13));
792
- });
793
- }
794
- function Fe(e) {
795
- for (var t = Object.keys(e), n = {}, r = 0; r < t.length; r++) {
796
- var i = t[r];
797
- typeof e[i] == "function" && (n[i] = e[i]);
798
- }
799
- var a = Object.keys(n), o;
800
- try {
801
- Pe(n);
802
- } catch (e) {
803
- o = e;
804
- }
805
- return function(e, t) {
806
- if (e === void 0 && (e = {}), o) throw o;
807
- for (var r = !1, i = {}, s = 0; s < a.length; s++) {
808
- var c = a[s], l = n[c], u = e[c], d = l(u, t);
809
- if (d === void 0) throw t && t.type, Error(B(14));
810
- i[c] = d, r ||= d !== u;
811
- }
812
- return r ||= a.length !== Object.keys(e).length, r ? i : e;
813
- };
814
- }
815
- function Ie() {
816
- var e = [...arguments];
817
- return e.length === 0 ? function(e) {
818
- return e;
819
- } : e.length === 1 ? e[0] : e.reduce(function(e, t) {
820
- return function() {
821
- return e(t.apply(void 0, arguments));
822
- };
823
- });
824
- }
825
- function Le() {
826
- var e = [...arguments];
827
- return function(t) {
828
- return function() {
829
- var n = t.apply(void 0, arguments), r = function() {
830
- throw Error(B(15));
831
- }, i = {
832
- getState: n.getState,
833
- dispatch: function() {
834
- return r.apply(void 0, arguments);
835
- }
836
- }, a = e.map(function(e) {
837
- return e(i);
838
- });
839
- return r = Ie.apply(void 0, a)(n.dispatch), Oe(Oe({}, n), {}, { dispatch: r });
840
- };
841
- };
842
- }
843
- //#endregion
844
- //#region node_modules/reselect/es/defaultMemoize.js
845
- var Re = "NOT_FOUND";
846
- function ze(e) {
847
- var t;
848
- return {
849
- get: function(n) {
850
- return t && e(t.key, n) ? t.value : Re;
851
- },
852
- put: function(e, n) {
853
- t = {
854
- key: e,
855
- value: n
856
- };
857
- },
858
- getEntries: function() {
859
- return t ? [t] : [];
860
- },
861
- clear: function() {
862
- t = void 0;
863
- }
864
- };
865
- }
866
- function Be(e, t) {
867
- var n = [];
868
- function r(e) {
869
- var r = n.findIndex(function(n) {
870
- return t(e, n.key);
871
- });
872
- if (r > -1) {
873
- var i = n[r];
874
- return r > 0 && (n.splice(r, 1), n.unshift(i)), i.value;
875
- }
876
- return Re;
877
- }
878
- function i(t, i) {
879
- r(t) === Re && (n.unshift({
880
- key: t,
881
- value: i
882
- }), n.length > e && n.pop());
883
- }
884
- function a() {
885
- return n;
886
- }
887
- function o() {
888
- n = [];
889
- }
890
- return {
891
- get: r,
892
- put: i,
893
- getEntries: a,
894
- clear: o
895
- };
896
- }
897
- var Ve = function(e, t) {
898
- return e === t;
899
- };
900
- function He(e) {
901
- return function(t, n) {
902
- if (t === null || n === null || t.length !== n.length) return !1;
903
- for (var r = t.length, i = 0; i < r; i++) if (!e(t[i], n[i])) return !1;
904
- return !0;
905
- };
906
- }
907
- function Ue(e, t) {
908
- var n = typeof t == "object" ? t : { equalityCheck: t }, r = n.equalityCheck, i = r === void 0 ? Ve : r, a = n.maxSize, o = a === void 0 ? 1 : a, s = n.resultEqualityCheck, c = He(i), l = o === 1 ? ze(c) : Be(o, c);
909
- function u() {
910
- var t = l.get(arguments);
911
- if (t === Re) {
912
- if (t = e.apply(null, arguments), s) {
913
- var n = l.getEntries().find(function(e) {
914
- return s(e.value, t);
915
- });
916
- n && (t = n.value);
917
- }
918
- l.put(arguments, t);
919
- }
920
- return t;
921
- }
922
- return u.clearCache = function() {
923
- return l.clear();
924
- }, u;
925
- }
926
- //#endregion
927
- //#region node_modules/reselect/es/index.js
928
- function We(e) {
929
- var t = Array.isArray(e[0]) ? e[0] : e;
930
- if (!t.every(function(e) {
931
- return typeof e == "function";
932
- })) {
933
- var n = t.map(function(e) {
934
- return typeof e == "function" ? "function " + (e.name || "unnamed") + "()" : typeof e;
935
- }).join(", ");
936
- throw Error("createSelector expects all input-selectors to be functions, but received the following types: [" + n + "]");
937
- }
938
- return t;
939
- }
940
- function Ge(e) {
941
- var t = [...arguments].slice(1);
942
- return function() {
943
- var n = [...arguments], r = 0, i, a = { memoizeOptions: void 0 }, o = n.pop();
944
- if (typeof o == "object" && (a = o, o = n.pop()), typeof o != "function") throw Error("createSelector expects an output function after the inputs, but received: [" + typeof o + "]");
945
- var s = a.memoizeOptions, c = s === void 0 ? t : s, l = Array.isArray(c) ? c : [c], u = We(n), d = e.apply(void 0, [function() {
946
- return r++, o.apply(null, arguments);
947
- }].concat(l)), f = e(function() {
948
- for (var e = [], t = u.length, n = 0; n < t; n++) e.push(u[n].apply(null, arguments));
949
- return i = d.apply(null, e), i;
950
- });
951
- return Object.assign(f, {
952
- resultFunc: o,
953
- memoizedResultFunc: d,
954
- dependencies: u,
955
- lastResult: function() {
956
- return i;
957
- },
958
- recomputations: function() {
959
- return r;
960
- },
961
- resetRecomputations: function() {
962
- return r = 0;
963
- }
964
- }), f;
965
- };
966
- }
967
- var Ke = /* @__PURE__ */ Ge(Ue);
968
- //#endregion
969
- //#region node_modules/redux-thunk/es/index.js
970
- function qe(e) {
971
- return function(t) {
972
- var n = t.dispatch, r = t.getState;
973
- return function(t) {
974
- return function(i) {
975
- return typeof i == "function" ? i(n, r, e) : t(i);
976
- };
977
- };
978
- };
979
- }
980
- var Je = qe();
981
- //#endregion
982
- //#region node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js
983
- Je.withExtraArgument = qe, i();
984
- var Ye = (function() {
985
- var e = function(t, n) {
986
- return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
987
- e.__proto__ = t;
988
- } || function(e, t) {
989
- for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
990
- }, e(t, n);
991
- };
992
- return function(t, n) {
993
- if (typeof n != "function" && n !== null) throw TypeError("Class extends value " + String(n) + " is not a constructor or null");
994
- e(t, n);
995
- function r() {
996
- this.constructor = t;
997
- }
998
- t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
999
- };
1000
- })(), Xe = function(e, t) {
1001
- var n = {
1002
- label: 0,
1003
- sent: function() {
1004
- if (a[0] & 1) throw a[1];
1005
- return a[1];
1006
- },
1007
- trys: [],
1008
- ops: []
1009
- }, r, i, a, o;
1010
- return o = {
1011
- next: s(0),
1012
- throw: s(1),
1013
- return: s(2)
1014
- }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
1015
- return this;
1016
- }), o;
1017
- function s(e) {
1018
- return function(t) {
1019
- return c([e, t]);
1020
- };
1021
- }
1022
- function c(o) {
1023
- if (r) throw TypeError("Generator is already executing.");
1024
- for (; n;) try {
1025
- if (r = 1, i && (a = o[0] & 2 ? i.return : o[0] ? i.throw || ((a = i.return) && a.call(i), 0) : i.next) && !(a = a.call(i, o[1])).done) return a;
1026
- switch (i = 0, a && (o = [o[0] & 2, a.value]), o[0]) {
1027
- case 0:
1028
- case 1:
1029
- a = o;
1030
- break;
1031
- case 4: return n.label++, {
1032
- value: o[1],
1033
- done: !1
1034
- };
1035
- case 5:
1036
- n.label++, i = o[1], o = [0];
1037
- continue;
1038
- case 7:
1039
- o = n.ops.pop(), n.trys.pop();
1040
- continue;
1041
- default:
1042
- if ((a = n.trys, !(a = a.length > 0 && a[a.length - 1])) && (o[0] === 6 || o[0] === 2)) {
1043
- n = 0;
1044
- continue;
1045
- }
1046
- if (o[0] === 3 && (!a || o[1] > a[0] && o[1] < a[3])) {
1047
- n.label = o[1];
1048
- break;
1049
- }
1050
- if (o[0] === 6 && n.label < a[1]) {
1051
- n.label = a[1], a = o;
1052
- break;
1053
- }
1054
- if (a && n.label < a[2]) {
1055
- n.label = a[2], n.ops.push(o);
1056
- break;
1057
- }
1058
- a[2] && n.ops.pop(), n.trys.pop();
1059
- continue;
1060
- }
1061
- o = t.call(e, n);
1062
- } catch (e) {
1063
- o = [6, e], i = 0;
1064
- } finally {
1065
- r = a = 0;
1066
- }
1067
- if (o[0] & 5) throw o[1];
1068
- return {
1069
- value: o[0] ? o[1] : void 0,
1070
- done: !0
1071
- };
1072
- }
1073
- }, Ze = function(e, t) {
1074
- for (var n = 0, r = t.length, i = e.length; n < r; n++, i++) e[i] = t[n];
1075
- return e;
1076
- }, Qe = Object.defineProperty, $e = Object.defineProperties, et = Object.getOwnPropertyDescriptors, tt = Object.getOwnPropertySymbols, nt = Object.prototype.hasOwnProperty, rt = Object.prototype.propertyIsEnumerable, it = function(e, t, n) {
1077
- return t in e ? Qe(e, t, {
1078
- enumerable: !0,
1079
- configurable: !0,
1080
- writable: !0,
1081
- value: n
1082
- }) : e[t] = n;
1083
- }, V = function(e, t) {
1084
- for (var n in t ||= {}) nt.call(t, n) && it(e, n, t[n]);
1085
- if (tt) for (var r = 0, i = tt(t); r < i.length; r++) {
1086
- var n = i[r];
1087
- rt.call(t, n) && it(e, n, t[n]);
1088
- }
1089
- return e;
1090
- }, at = function(e, t) {
1091
- return $e(e, et(t));
1092
- }, ot = function(e, t, n) {
1093
- return new Promise(function(r, i) {
1094
- var a = function(e) {
1095
- try {
1096
- s(n.next(e));
1097
- } catch (e) {
1098
- i(e);
1099
- }
1100
- }, o = function(e) {
1101
- try {
1102
- s(n.throw(e));
1103
- } catch (e) {
1104
- i(e);
1105
- }
1106
- }, s = function(e) {
1107
- return e.done ? r(e.value) : Promise.resolve(e.value).then(a, o);
1108
- };
1109
- s((n = n.apply(e, t)).next());
1110
- });
1111
- }, st = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
1112
- if (arguments.length !== 0) return typeof arguments[0] == "object" ? Ie : Ie.apply(null, arguments);
1113
- };
1114
- typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__;
1115
- function H(e) {
1116
- if (typeof e != "object" || !e) return !1;
1117
- var t = Object.getPrototypeOf(e);
1118
- if (t === null) return !0;
1119
- for (var n = t; Object.getPrototypeOf(n) !== null;) n = Object.getPrototypeOf(n);
1120
- return t === n;
1121
- }
1122
- var ct = function(e) {
1123
- return e && typeof e.match == "function";
1124
- };
1125
- function U(e, t) {
1126
- function n() {
1127
- var n = [...arguments];
1128
- if (t) {
1129
- var r = t.apply(void 0, n);
1130
- if (!r) throw Error("prepareAction did not return an object");
1131
- return V(V({
1132
- type: e,
1133
- payload: r.payload
1134
- }, "meta" in r && { meta: r.meta }), "error" in r && { error: r.error });
1135
- }
1136
- return {
1137
- type: e,
1138
- payload: n[0]
1139
- };
1140
- }
1141
- return n.toString = function() {
1142
- return "" + e;
1143
- }, n.type = e, n.match = function(t) {
1144
- return t.type === e;
1145
- }, n;
1146
- }
1147
- var lt = function(e) {
1148
- Ye(t, e);
1149
- function t() {
1150
- var n = [...arguments], r = e.apply(this, n) || this;
1151
- return Object.setPrototypeOf(r, t.prototype), r;
1152
- }
1153
- return Object.defineProperty(t, Symbol.species, {
1154
- get: function() {
1155
- return t;
1156
- },
1157
- enumerable: !1,
1158
- configurable: !0
1159
- }), t.prototype.concat = function() {
1160
- var t = [...arguments];
1161
- return e.prototype.concat.apply(this, t);
1162
- }, t.prototype.prepend = function() {
1163
- var e = [...arguments];
1164
- return e.length === 1 && Array.isArray(e[0]) ? new (t.bind.apply(t, Ze([void 0], e[0].concat(this))))() : new (t.bind.apply(t, Ze([void 0], e.concat(this))))();
1165
- }, t;
1166
- }(Array), ut = function(e) {
1167
- Ye(t, e);
1168
- function t() {
1169
- var n = [...arguments], r = e.apply(this, n) || this;
1170
- return Object.setPrototypeOf(r, t.prototype), r;
1171
- }
1172
- return Object.defineProperty(t, Symbol.species, {
1173
- get: function() {
1174
- return t;
1175
- },
1176
- enumerable: !1,
1177
- configurable: !0
1178
- }), t.prototype.concat = function() {
1179
- var t = [...arguments];
1180
- return e.prototype.concat.apply(this, t);
1181
- }, t.prototype.prepend = function() {
1182
- var e = [...arguments];
1183
- return e.length === 1 && Array.isArray(e[0]) ? new (t.bind.apply(t, Ze([void 0], e[0].concat(this))))() : new (t.bind.apply(t, Ze([void 0], e.concat(this))))();
1184
- }, t;
1185
- }(Array);
1186
- function dt(e) {
1187
- return c(e) ? be(e, function() {}) : e;
1188
- }
1189
- function ft(e) {
1190
- return typeof e == "boolean";
1191
- }
1192
- function pt() {
1193
- return function(e) {
1194
- return mt(e);
1195
- };
1196
- }
1197
- function mt(e) {
1198
- e === void 0 && (e = {});
1199
- var t = e.thunk, n = t === void 0 ? !0 : t;
1200
- e.immutableCheck, e.serializableCheck, e.actionCreatorCheck;
1201
- var r = new lt();
1202
- return n && (ft(n) ? r.push(Je) : r.push(Je.withExtraArgument(n.extraArgument))), r;
1203
- }
1204
- var ht = !0;
1205
- function gt(e) {
1206
- var t = pt(), n = e || {}, r = n.reducer, i = r === void 0 ? void 0 : r, a = n.middleware, o = a === void 0 ? t() : a, s = n.devTools, c = s === void 0 ? !0 : s, l = n.preloadedState, u = l === void 0 ? void 0 : l, d = n.enhancers, f = d === void 0 ? void 0 : d, p;
1207
- if (typeof i == "function") p = i;
1208
- else if (H(i)) p = Fe(i);
1209
- else throw Error("\"reducer\" is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
1210
- var m = o;
1211
- if (typeof m == "function" && (m = m(t), !ht && !Array.isArray(m))) throw Error("when using a middleware builder function, an array of middleware must be returned");
1212
- if (!ht && m.some(function(e) {
1213
- return typeof e != "function";
1214
- })) throw Error("each middleware provided to configureStore must be a function");
1215
- var h = Le.apply(void 0, m), g = Ie;
1216
- c && (g = st(V({ trace: !ht }, typeof c == "object" && c)));
1217
- var _ = new ut(h), v = _;
1218
- Array.isArray(f) ? v = Ze([h], f) : typeof f == "function" && (v = f(_));
1219
- var y = g.apply(void 0, v);
1220
- return Ne(p, u, y);
1221
- }
1222
- function _t(e) {
1223
- var t = {}, n = [], r, i = {
1224
- addCase: function(e, n) {
1225
- var r = typeof e == "string" ? e : e.type;
1226
- if (!r) throw Error("`builder.addCase` cannot be called with an empty action type");
1227
- if (r in t) throw Error("`builder.addCase` cannot be called with two reducers for the same action type");
1228
- return t[r] = n, i;
1229
- },
1230
- addMatcher: function(e, t) {
1231
- return n.push({
1232
- matcher: e,
1233
- reducer: t
1234
- }), i;
1235
- },
1236
- addDefaultCase: function(e) {
1237
- return r = e, i;
1238
- }
1239
- };
1240
- return e(i), [
1241
- t,
1242
- n,
1243
- r
1244
- ];
1245
- }
1246
- function vt(e) {
1247
- return typeof e == "function";
1248
- }
1249
- function yt(e, t, n, r) {
1250
- n === void 0 && (n = []);
1251
- var i = typeof t == "function" ? _t(t) : [
1252
- t,
1253
- n,
1254
- r
1255
- ], a = i[0], o = i[1], l = i[2], u;
1256
- if (vt(e)) u = function() {
1257
- return dt(e());
1258
- };
1259
- else {
1260
- var d = dt(e);
1261
- u = function() {
1262
- return d;
1263
- };
1264
- }
1265
- function f(e, t) {
1266
- e === void 0 && (e = u());
1267
- var n = Ze([a[t.type]], o.filter(function(e) {
1268
- var n = e.matcher;
1269
- return n(t);
1270
- }).map(function(e) {
1271
- return e.reducer;
1272
- }));
1273
- return n.filter(function(e) {
1274
- return !!e;
1275
- }).length === 0 && (n = [l]), n.reduce(function(e, n) {
1276
- if (n) if (s(e)) {
1277
- var r = n(e, t);
1278
- return r === void 0 ? e : r;
1279
- } else if (c(e)) return be(e, function(e) {
1280
- return n(e, t);
1281
- });
1282
- else {
1283
- var r = n(e, t);
1284
- if (r === void 0) {
1285
- if (e === null) return e;
1286
- throw Error("A case reducer on a non-draftable value must not return undefined");
1287
- }
1288
- return r;
1289
- }
1290
- return e;
1291
- }, e);
1292
- }
1293
- return f.getInitialState = u, f;
1294
- }
1295
- function bt(e, t) {
1296
- return e + "/" + t;
1297
- }
1298
- function xt(e) {
1299
- var t = e.name;
1300
- if (!t) throw Error("`name` is a required option for createSlice");
1301
- var n = typeof e.initialState == "function" ? e.initialState : dt(e.initialState), r = e.reducers || {}, i = Object.keys(r), a = {}, o = {}, s = {};
1302
- i.forEach(function(e) {
1303
- var n = r[e], i = bt(t, e), c, l;
1304
- "reducer" in n ? (c = n.reducer, l = n.prepare) : c = n, a[e] = c, o[i] = c, s[e] = l ? U(i, l) : U(i);
1305
- });
1306
- function c() {
1307
- var t = typeof e.extraReducers == "function" ? _t(e.extraReducers) : [e.extraReducers], r = t[0], i = r === void 0 ? {} : r, a = t[1], s = a === void 0 ? [] : a, c = t[2], l = c === void 0 ? void 0 : c, u = V(V({}, i), o);
1308
- return yt(n, function(e) {
1309
- for (var t in u) e.addCase(t, u[t]);
1310
- for (var n = 0, r = s; n < r.length; n++) {
1311
- var i = r[n];
1312
- e.addMatcher(i.matcher, i.reducer);
1313
- }
1314
- l && e.addDefaultCase(l);
1315
- });
1316
- }
1317
- var l;
1318
- return {
1319
- name: t,
1320
- reducer: function(e, t) {
1321
- return l ||= c(), l(e, t);
1322
- },
1323
- actions: s,
1324
- caseReducers: a,
1325
- getInitialState: function() {
1326
- return l ||= c(), l.getInitialState();
1327
- }
1328
- };
1329
- }
1330
- var St = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", Ct = function(e) {
1331
- e === void 0 && (e = 21);
1332
- for (var t = "", n = e; n--;) t += St[Math.random() * 64 | 0];
1333
- return t;
1334
- }, wt = [
1335
- "name",
1336
- "message",
1337
- "stack",
1338
- "code"
1339
- ], Tt = function() {
1340
- function e(e, t) {
1341
- this.payload = e, this.meta = t;
1342
- }
1343
- return e;
1344
- }(), Et = function() {
1345
- function e(e, t) {
1346
- this.payload = e, this.meta = t;
1347
- }
1348
- return e;
1349
- }(), Dt = function(e) {
1350
- if (typeof e == "object" && e) {
1351
- for (var t = {}, n = 0, r = wt; n < r.length; n++) {
1352
- var i = r[n];
1353
- typeof e[i] == "string" && (t[i] = e[i]);
1354
- }
1355
- return t;
1356
- }
1357
- return { message: String(e) };
1358
- }, Ot = (function() {
1359
- function e(e, t, n) {
1360
- var r = U(e + "/fulfilled", function(e, t, n, r) {
1361
- return {
1362
- payload: e,
1363
- meta: at(V({}, r || {}), {
1364
- arg: n,
1365
- requestId: t,
1366
- requestStatus: "fulfilled"
1367
- })
1368
- };
1369
- }), i = U(e + "/pending", function(e, t, n) {
1370
- return {
1371
- payload: void 0,
1372
- meta: at(V({}, n || {}), {
1373
- arg: t,
1374
- requestId: e,
1375
- requestStatus: "pending"
1376
- })
1377
- };
1378
- }), a = U(e + "/rejected", function(e, t, r, i, a) {
1379
- return {
1380
- payload: i,
1381
- error: (n && n.serializeError || Dt)(e || "Rejected"),
1382
- meta: at(V({}, a || {}), {
1383
- arg: r,
1384
- requestId: t,
1385
- rejectedWithValue: !!i,
1386
- requestStatus: "rejected",
1387
- aborted: e?.name === "AbortError",
1388
- condition: e?.name === "ConditionError"
1389
- })
1390
- };
1391
- }), o = typeof AbortController < "u" ? AbortController : function() {
1392
- function e() {
1393
- this.signal = {
1394
- aborted: !1,
1395
- addEventListener: function() {},
1396
- dispatchEvent: function() {
1397
- return !1;
1398
- },
1399
- onabort: function() {},
1400
- removeEventListener: function() {},
1401
- reason: void 0,
1402
- throwIfAborted: function() {}
1403
- };
1404
- }
1405
- return e.prototype.abort = function() {}, e;
1406
- }();
1407
- function s(e) {
1408
- return function(s, c, l) {
1409
- var u = n?.idGenerator ? n.idGenerator(e) : Ct(), d = new o(), f;
1410
- function p(e) {
1411
- f = e, d.abort();
1412
- }
1413
- var m = function() {
1414
- return ot(this, null, function() {
1415
- var o, m, h, g, _;
1416
- return Xe(this, function(v) {
1417
- switch (v.label) {
1418
- case 0: return v.trys.push([
1419
- 0,
1420
- 4,
1421
- ,
1422
- 5
1423
- ]), m = (n?.condition)?.call(n, e, {
1424
- getState: c,
1425
- extra: l
1426
- }), At(m) ? [4, m] : [3, 2];
1427
- case 1: m = v.sent(), v.label = 2;
1428
- case 2:
1429
- if (m === !1 || d.signal.aborted) throw {
1430
- name: "ConditionError",
1431
- message: "Aborted due to condition callback returning false."
1432
- };
1433
- return h = new Promise(function(e, t) {
1434
- return d.signal.addEventListener("abort", function() {
1435
- return t({
1436
- name: "AbortError",
1437
- message: f || "Aborted"
1438
- });
1439
- });
1440
- }), s(i(u, e, (n?.getPendingMeta)?.call(n, {
1441
- requestId: u,
1442
- arg: e
1443
- }, {
1444
- getState: c,
1445
- extra: l
1446
- }))), [4, Promise.race([h, Promise.resolve(t(e, {
1447
- dispatch: s,
1448
- getState: c,
1449
- extra: l,
1450
- requestId: u,
1451
- signal: d.signal,
1452
- abort: p,
1453
- rejectWithValue: function(e, t) {
1454
- return new Tt(e, t);
1455
- },
1456
- fulfillWithValue: function(e, t) {
1457
- return new Et(e, t);
1458
- }
1459
- })).then(function(t) {
1460
- if (t instanceof Tt) throw t;
1461
- return t instanceof Et ? r(t.payload, u, e, t.meta) : r(t, u, e);
1462
- })])];
1463
- case 3: return o = v.sent(), [3, 5];
1464
- case 4: return g = v.sent(), o = g instanceof Tt ? a(null, u, e, g.payload, g.meta) : a(g, u, e), [3, 5];
1465
- case 5: return _ = n && !n.dispatchConditionRejection && a.match(o) && o.meta.condition, _ || s(o), [2, o];
1466
- }
1467
- });
1468
- });
1469
- }();
1470
- return Object.assign(m, {
1471
- abort: p,
1472
- requestId: u,
1473
- arg: e,
1474
- unwrap: function() {
1475
- return m.then(kt);
1476
- }
1477
- });
1478
- };
1479
- }
1480
- return Object.assign(s, {
1481
- pending: i,
1482
- rejected: a,
1483
- fulfilled: r,
1484
- typePrefix: e
1485
- });
1486
- }
1487
- return e.withTypes = function() {
1488
- return e;
1489
- }, e;
1490
- })();
1491
- function kt(e) {
1492
- if (e.meta && e.meta.rejectedWithValue) throw e.payload;
1493
- if (e.error) throw e.error;
1494
- return e.payload;
1495
- }
1496
- function At(e) {
1497
- return typeof e == "object" && !!e && typeof e.then == "function";
1498
- }
1499
- var jt = function(e, t) {
1500
- return ct(e) ? e.match(t) : e(t);
1501
- };
1502
- function Mt() {
1503
- var e = [...arguments];
1504
- return function(t) {
1505
- return e.some(function(e) {
1506
- return jt(e, t);
1507
- });
1508
- };
1509
- }
1510
- function Nt() {
1511
- var e = [...arguments];
1512
- return function(t) {
1513
- return e.every(function(e) {
1514
- return jt(e, t);
1515
- });
1516
- };
1517
- }
1518
- function Pt(e, t) {
1519
- if (!e || !e.meta) return !1;
1520
- var n = typeof e.meta.requestId == "string", r = t.indexOf(e.meta.requestStatus) > -1;
1521
- return n && r;
1522
- }
1523
- function Ft(e) {
1524
- return typeof e[0] == "function" && "pending" in e[0] && "fulfilled" in e[0] && "rejected" in e[0];
1525
- }
1526
- function It() {
1527
- var e = [...arguments];
1528
- return e.length === 0 ? function(e) {
1529
- return Pt(e, ["pending"]);
1530
- } : Ft(e) ? function(t) {
1531
- var n = e.map(function(e) {
1532
- return e.pending;
1533
- });
1534
- return Mt.apply(void 0, n)(t);
1535
- } : It()(e[0]);
1536
- }
1537
- function Lt() {
1538
- var e = [...arguments];
1539
- return e.length === 0 ? function(e) {
1540
- return Pt(e, ["rejected"]);
1541
- } : Ft(e) ? function(t) {
1542
- var n = e.map(function(e) {
1543
- return e.rejected;
1544
- });
1545
- return Mt.apply(void 0, n)(t);
1546
- } : Lt()(e[0]);
1547
- }
1548
- function Rt() {
1549
- var e = [...arguments], t = function(e) {
1550
- return e && e.meta && e.meta.rejectedWithValue;
1551
- };
1552
- return e.length === 0 || Ft(e) ? function(n) {
1553
- return Nt(Lt.apply(void 0, e), t)(n);
1554
- } : Rt()(e[0]);
1555
- }
1556
- function zt() {
1557
- var e = [...arguments];
1558
- return e.length === 0 ? function(e) {
1559
- return Pt(e, ["fulfilled"]);
1560
- } : Ft(e) ? function(t) {
1561
- var n = e.map(function(e) {
1562
- return e.fulfilled;
1563
- });
1564
- return Mt.apply(void 0, n)(t);
1565
- } : zt()(e[0]);
1566
- }
1567
- function Bt() {
1568
- var e = [...arguments];
1569
- return e.length === 0 ? function(e) {
1570
- return Pt(e, [
1571
- "pending",
1572
- "fulfilled",
1573
- "rejected"
1574
- ]);
1575
- } : Ft(e) ? function(t) {
1576
- for (var n = [], r = 0, i = e; r < i.length; r++) {
1577
- var a = i[r];
1578
- n.push(a.pending, a.rejected, a.fulfilled);
1579
- }
1580
- return Mt.apply(void 0, n)(t);
1581
- } : Bt()(e[0]);
1582
- }
1583
- var Vt = "task", Ht = "listener", Ut = "completed", Wt = "cancelled";
1584
- "" + Wt, "" + Ut, Ht + "" + Wt, Ht + "" + Ut, function() {
1585
- function e(e) {
1586
- this.code = e, this.name = "TaskAbortError", this.message = Vt + " " + Wt + " (reason: " + e + ")";
1587
- }
1588
- return e;
1589
- }();
1590
- var Gt = "listenerMiddleware";
1591
- U(Gt + "/add"), U(Gt + "/removeAll"), U(Gt + "/remove");
1592
- var Kt = "RTK_autoBatch", qt = function() {
1593
- return function(e) {
1594
- var t;
1595
- return {
1596
- payload: e,
1597
- meta: (t = {}, t[Kt] = !0, t)
1598
- };
1599
- };
1600
- };
1601
- //#endregion
1602
- //#region node_modules/@reduxjs/toolkit/dist/query/rtk-query.esm.js
1603
- typeof queueMicrotask == "function" && queueMicrotask.bind(typeof window < "u" ? window : r === void 0 ? globalThis : r), typeof window < "u" && window.requestAnimationFrame ? window.requestAnimationFrame : function(e) {
1604
- return function(t) {
1605
- setTimeout(t, e);
1606
- };
1607
- }(10), se(), i();
1608
- var Jt = function(e, t) {
1609
- var n = {
1610
- label: 0,
1611
- sent: function() {
1612
- if (a[0] & 1) throw a[1];
1613
- return a[1];
1614
- },
1615
- trys: [],
1616
- ops: []
1617
- }, r, i, a, o;
1618
- return o = {
1619
- next: s(0),
1620
- throw: s(1),
1621
- return: s(2)
1622
- }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
1623
- return this;
1624
- }), o;
1625
- function s(e) {
1626
- return function(t) {
1627
- return c([e, t]);
1628
- };
1629
- }
1630
- function c(o) {
1631
- if (r) throw TypeError("Generator is already executing.");
1632
- for (; n;) try {
1633
- if (r = 1, i && (a = o[0] & 2 ? i.return : o[0] ? i.throw || ((a = i.return) && a.call(i), 0) : i.next) && !(a = a.call(i, o[1])).done) return a;
1634
- switch (i = 0, a && (o = [o[0] & 2, a.value]), o[0]) {
1635
- case 0:
1636
- case 1:
1637
- a = o;
1638
- break;
1639
- case 4: return n.label++, {
1640
- value: o[1],
1641
- done: !1
1642
- };
1643
- case 5:
1644
- n.label++, i = o[1], o = [0];
1645
- continue;
1646
- case 7:
1647
- o = n.ops.pop(), n.trys.pop();
1648
- continue;
1649
- default:
1650
- if ((a = n.trys, !(a = a.length > 0 && a[a.length - 1])) && (o[0] === 6 || o[0] === 2)) {
1651
- n = 0;
1652
- continue;
1653
- }
1654
- if (o[0] === 3 && (!a || o[1] > a[0] && o[1] < a[3])) {
1655
- n.label = o[1];
1656
- break;
1657
- }
1658
- if (o[0] === 6 && n.label < a[1]) {
1659
- n.label = a[1], a = o;
1660
- break;
1661
- }
1662
- if (a && n.label < a[2]) {
1663
- n.label = a[2], n.ops.push(o);
1664
- break;
1665
- }
1666
- a[2] && n.ops.pop(), n.trys.pop();
1667
- continue;
1668
- }
1669
- o = t.call(e, n);
1670
- } catch (e) {
1671
- o = [6, e], i = 0;
1672
- } finally {
1673
- r = a = 0;
1674
- }
1675
- if (o[0] & 5) throw o[1];
1676
- return {
1677
- value: o[0] ? o[1] : void 0,
1678
- done: !0
1679
- };
1680
- }
1681
- }, Yt = function(e, t) {
1682
- for (var n = 0, r = t.length, i = e.length; n < r; n++, i++) e[i] = t[n];
1683
- return e;
1684
- }, Xt = Object.defineProperty, Zt = Object.defineProperties, Qt = Object.getOwnPropertyDescriptors, $t = Object.getOwnPropertySymbols, en = Object.prototype.hasOwnProperty, tn = Object.prototype.propertyIsEnumerable, nn = function(e, t, n) {
1685
- return t in e ? Xt(e, t, {
1686
- enumerable: !0,
1687
- configurable: !0,
1688
- writable: !0,
1689
- value: n
1690
- }) : e[t] = n;
1691
- }, W = function(e, t) {
1692
- for (var n in t ||= {}) en.call(t, n) && nn(e, n, t[n]);
1693
- if ($t) for (var r = 0, i = $t(t); r < i.length; r++) {
1694
- var n = i[r];
1695
- tn.call(t, n) && nn(e, n, t[n]);
1696
- }
1697
- return e;
1698
- }, G = function(e, t) {
1699
- return Zt(e, Qt(t));
1700
- }, rn = function(e, t) {
1701
- var n = {};
1702
- for (var r in e) en.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
1703
- if (e != null && $t) for (var i = 0, a = $t(e); i < a.length; i++) {
1704
- var r = a[i];
1705
- t.indexOf(r) < 0 && tn.call(e, r) && (n[r] = e[r]);
1706
- }
1707
- return n;
1708
- }, an = function(e, t, n) {
1709
- return new Promise(function(r, i) {
1710
- var a = function(e) {
1711
- try {
1712
- s(n.next(e));
1713
- } catch (e) {
1714
- i(e);
1715
- }
1716
- }, o = function(e) {
1717
- try {
1718
- s(n.throw(e));
1719
- } catch (e) {
1720
- i(e);
1721
- }
1722
- }, s = function(e) {
1723
- return e.done ? r(e.value) : Promise.resolve(e.value).then(a, o);
1724
- };
1725
- s((n = n.apply(e, t)).next());
1726
- });
1727
- }, K;
1728
- (function(e) {
1729
- e.uninitialized = "uninitialized", e.pending = "pending", e.fulfilled = "fulfilled", e.rejected = "rejected";
1730
- })(K ||= {});
1731
- function on(e) {
1732
- return {
1733
- status: e,
1734
- isUninitialized: e === K.uninitialized,
1735
- isLoading: e === K.pending,
1736
- isSuccess: e === K.fulfilled,
1737
- isError: e === K.rejected
1738
- };
1739
- }
1740
- function sn(e) {
1741
- return (/* @__PURE__ */ RegExp("(^|:)//")).test(e);
1742
- }
1743
- var cn = function(e) {
1744
- return e.replace(/\/$/, "");
1745
- }, ln = function(e) {
1746
- return e.replace(/^\//, "");
1747
- };
1748
- function un(e, t) {
1749
- if (!e) return t;
1750
- if (!t) return e;
1751
- if (sn(t)) return t;
1752
- var n = e.endsWith("/") || !t.startsWith("?") ? "/" : "";
1753
- return e = cn(e), t = ln(t), "" + e + n + t;
1754
- }
1755
- var dn = function(e) {
1756
- return [].concat.apply([], e);
1757
- };
1758
- function fn() {
1759
- return typeof navigator > "u" || navigator.onLine === void 0 ? !0 : navigator.onLine;
1760
- }
1761
- function pn() {
1762
- return typeof document > "u" ? !0 : document.visibilityState !== "hidden";
1763
- }
1764
- var mn = H;
1765
- function hn(e, t) {
1766
- if (e === t || !(mn(e) && mn(t) || Array.isArray(e) && Array.isArray(t))) return t;
1767
- for (var n = Object.keys(t), r = Object.keys(e), i = n.length === r.length, a = Array.isArray(t) ? [] : {}, o = 0, s = n; o < s.length; o++) {
1768
- var c = s[o];
1769
- a[c] = hn(e[c], t[c]), i &&= e[c] === a[c];
1770
- }
1771
- return i ? e : a;
1772
- }
1773
- var gn = function() {
1774
- var e = [...arguments];
1775
- return fetch.apply(void 0, e);
1776
- }, _n = function(e) {
1777
- return e.status >= 200 && e.status <= 299;
1778
- }, vn = function(e) {
1779
- return /ion\/(vnd\.api\+)?json/.test(e.get("content-type") || "");
1780
- };
1781
- function yn(e) {
1782
- if (!H(e)) return e;
1783
- for (var t = W({}, e), n = 0, r = Object.entries(t); n < r.length; n++) {
1784
- var i = r[n], a = i[0];
1785
- i[1] === void 0 && delete t[a];
1786
- }
1787
- return t;
1788
- }
1789
- function bn(e) {
1790
- var t = this;
1791
- e === void 0 && (e = {});
1792
- var n = e, r = n.baseUrl, i = n.prepareHeaders, a = i === void 0 ? function(e) {
1793
- return e;
1794
- } : i, o = n.fetchFn, s = o === void 0 ? gn : o, c = n.paramsSerializer, l = n.isJsonContentType, u = l === void 0 ? vn : l, d = n.jsonContentType, f = d === void 0 ? "application/json" : d, p = n.jsonReplacer, m = n.timeout, h = n.responseHandler, g = n.validateStatus, _ = rn(n, [
1795
- "baseUrl",
1796
- "prepareHeaders",
1797
- "fetchFn",
1798
- "paramsSerializer",
1799
- "isJsonContentType",
1800
- "jsonContentType",
1801
- "jsonReplacer",
1802
- "timeout",
1803
- "responseHandler",
1804
- "validateStatus"
1805
- ]);
1806
- return function(e, n) {
1807
- return an(t, null, function() {
1808
- var t, i, o, l, d, y, b, x, S, C, w, T, E, D, O, k, ee, A, j, te, M, ne, re, N, ie, ae, oe, P, se, ce, le, F, I, ue, de, fe;
1809
- return Jt(this, function(L) {
1810
- switch (L.label) {
1811
- case 0: return t = n.signal, i = n.getState, o = n.extra, l = n.endpoint, d = n.forced, y = n.type, x = typeof e == "string" ? { url: e } : e, S = x.url, C = x.headers, w = C === void 0 ? new Headers(_.headers) : C, T = x.params, E = T === void 0 ? void 0 : T, D = x.responseHandler, O = D === void 0 ? h ?? "json" : D, k = x.validateStatus, ee = k === void 0 ? g ?? _n : k, A = x.timeout, j = A === void 0 ? m : A, te = rn(x, [
1812
- "url",
1813
- "headers",
1814
- "params",
1815
- "responseHandler",
1816
- "validateStatus",
1817
- "timeout"
1818
- ]), M = W(G(W({}, _), { signal: t }), te), w = new Headers(yn(w)), ne = M, [4, a(w, {
1819
- getState: i,
1820
- extra: o,
1821
- endpoint: l,
1822
- forced: d,
1823
- type: y
1824
- })];
1825
- case 1: ne.headers = L.sent() || w, re = function(e) {
1826
- return typeof e == "object" && (H(e) || Array.isArray(e) || typeof e.toJSON == "function");
1827
- }, !M.headers.has("content-type") && re(M.body) && M.headers.set("content-type", f), re(M.body) && u(M.headers) && (M.body = JSON.stringify(M.body, p)), E && (N = ~S.indexOf("?") ? "&" : "?", ie = c ? c(E) : new URLSearchParams(yn(E)), S += N + ie), S = un(r, S), ae = new Request(S, M), oe = new Request(S, M), b = { request: oe }, se = !1, ce = j && setTimeout(function() {
1828
- se = !0, n.abort();
1829
- }, j), L.label = 2;
1830
- case 2: return L.trys.push([
1831
- 2,
1832
- 4,
1833
- 5,
1834
- 6
1835
- ]), [4, s(ae)];
1836
- case 3: return P = L.sent(), [3, 6];
1837
- case 4: return le = L.sent(), [2, {
1838
- error: {
1839
- status: se ? "TIMEOUT_ERROR" : "FETCH_ERROR",
1840
- error: String(le)
1841
- },
1842
- meta: b
1843
- }];
1844
- case 5: return ce && clearTimeout(ce), [7];
1845
- case 6: F = P.clone(), b.response = F, ue = "", L.label = 7;
1846
- case 7: return L.trys.push([
1847
- 7,
1848
- 9,
1849
- ,
1850
- 10
1851
- ]), [4, Promise.all([v(P, O).then(function(e) {
1852
- return I = e;
1853
- }, function(e) {
1854
- return de = e;
1855
- }), F.text().then(function(e) {
1856
- return ue = e;
1857
- }, function() {})])];
1858
- case 8:
1859
- if (L.sent(), de) throw de;
1860
- return [3, 10];
1861
- case 9: return fe = L.sent(), [2, {
1862
- error: {
1863
- status: "PARSING_ERROR",
1864
- originalStatus: P.status,
1865
- data: ue,
1866
- error: String(fe)
1867
- },
1868
- meta: b
1869
- }];
1870
- case 10: return [2, ee(P, I) ? {
1871
- data: I,
1872
- meta: b
1873
- } : {
1874
- error: {
1875
- status: P.status,
1876
- data: I
1877
- },
1878
- meta: b
1879
- }];
1880
- }
1881
- });
1882
- });
1883
- };
1884
- function v(e, t) {
1885
- return an(this, null, function() {
1886
- var n;
1887
- return Jt(this, function(r) {
1888
- switch (r.label) {
1889
- case 0: return typeof t == "function" ? [2, t(e)] : (t === "content-type" && (t = u(e.headers) ? "json" : "text"), t === "json" ? [4, e.text()] : [3, 2]);
1890
- case 1: return n = r.sent(), [2, n.length ? JSON.parse(n) : null];
1891
- case 2: return [2, e.text()];
1892
- }
1893
- });
1894
- });
1895
- }
1896
- }
1897
- var xn = function() {
1898
- function e(e, t) {
1899
- t === void 0 && (t = void 0), this.value = e, this.meta = t;
1900
- }
1901
- return e;
1902
- }(), Sn = /* @__PURE__ */ U("__rtkq/focused"), Cn = /* @__PURE__ */ U("__rtkq/unfocused"), wn = /* @__PURE__ */ U("__rtkq/online"), Tn = /* @__PURE__ */ U("__rtkq/offline"), En = !1;
1903
- function Dn(e, t) {
1904
- function n() {
1905
- var t = function() {
1906
- return e(Sn());
1907
- }, n = function() {
1908
- return e(Cn());
1909
- }, r = function() {
1910
- return e(wn());
1911
- }, i = function() {
1912
- return e(Tn());
1913
- }, a = function() {
1914
- window.document.visibilityState === "visible" ? t() : n();
1915
- };
1916
- return En || typeof window < "u" && window.addEventListener && (window.addEventListener("visibilitychange", a, !1), window.addEventListener("focus", t, !1), window.addEventListener("online", r, !1), window.addEventListener("offline", i, !1), En = !0), function() {
1917
- window.removeEventListener("focus", t), window.removeEventListener("visibilitychange", a), window.removeEventListener("online", r), window.removeEventListener("offline", i), En = !1;
1918
- };
1919
- }
1920
- return t ? t(e, {
1921
- onFocus: Sn,
1922
- onFocusLost: Cn,
1923
- onOffline: Tn,
1924
- onOnline: wn
1925
- }) : n();
1926
- }
1927
- var q;
1928
- (function(e) {
1929
- e.query = "query", e.mutation = "mutation";
1930
- })(q ||= {});
1931
- function On(e) {
1932
- return e.type === q.query;
1933
- }
1934
- function kn(e) {
1935
- return e.type === q.mutation;
1936
- }
1937
- function An(e, t, n, r, i, a) {
1938
- return jn(e) ? e(t, n, r, i).map(Mn).map(a) : Array.isArray(e) ? e.map(Mn).map(a) : [];
1939
- }
1940
- function jn(e) {
1941
- return typeof e == "function";
1942
- }
1943
- function Mn(e) {
1944
- return typeof e == "string" ? { type: e } : e;
1945
- }
1946
- function Nn(e) {
1947
- return e != null;
1948
- }
1949
- var Pn = Symbol("forceQueryFn"), Fn = function(e) {
1950
- return typeof e[Pn] == "function";
1951
- };
1952
- function In(e) {
1953
- var t = e.serializeQueryArgs, n = e.queryThunk, r = e.mutationThunk, i = e.api, a = e.context, o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = i.internalActions, l = c.unsubscribeQueryResult, u = c.removeMutationResult, d = c.updateSubscriptionOptions;
1954
- return {
1955
- buildInitiateQuery: v,
1956
- buildInitiateMutation: y,
1957
- getRunningQueryThunk: m,
1958
- getRunningMutationThunk: h,
1959
- getRunningQueriesThunk: g,
1960
- getRunningMutationsThunk: _,
1961
- getRunningOperationPromises: p,
1962
- removalWarning: f
1963
- };
1964
- function f() {
1965
- throw Error("This method had to be removed due to a conceptual bug in RTK.\n Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.\n See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.");
1966
- }
1967
- function p() {
1968
- var e = function(e) {
1969
- return Array.from(e.values()).flatMap(function(e) {
1970
- return e ? Object.values(e) : [];
1971
- });
1972
- };
1973
- return Yt(Yt([], e(o)), e(s)).filter(Nn);
1974
- }
1975
- function m(e, n) {
1976
- return function(r) {
1977
- var i = a.endpointDefinitions[e], s = t({
1978
- queryArgs: n,
1979
- endpointDefinition: i,
1980
- endpointName: e
1981
- });
1982
- return o.get(r)?.[s];
1983
- };
1984
- }
1985
- function h(e, t) {
1986
- return function(e) {
1987
- return s.get(e)?.[t];
1988
- };
1989
- }
1990
- function g() {
1991
- return function(e) {
1992
- return Object.values(o.get(e) || {}).filter(Nn);
1993
- };
1994
- }
1995
- function _() {
1996
- return function(e) {
1997
- return Object.values(s.get(e) || {}).filter(Nn);
1998
- };
1999
- }
2000
- function v(e, r) {
2001
- var a = function(s, c) {
2002
- var u = c === void 0 ? {} : c, f = u.subscribe, p = f === void 0 ? !0 : f, m = u.forceRefetch, h = u.subscriptionOptions, g = u[Pn];
2003
- return function(c, u) {
2004
- var f, _ = t({
2005
- queryArgs: s,
2006
- endpointDefinition: r,
2007
- endpointName: e
2008
- }), v = n((f = {
2009
- type: "query",
2010
- subscribe: p,
2011
- forceRefetch: m,
2012
- subscriptionOptions: h,
2013
- endpointName: e,
2014
- originalArgs: s,
2015
- queryCacheKey: _
2016
- }, f[Pn] = g, f)), y = i.endpoints[e].select(s), b = c(v), x = y(u()), S = b.requestId, C = b.abort, w = x.requestId !== S, T = o.get(c)?.[_], E = function() {
2017
- return y(u());
2018
- }, D = Object.assign(g ? b.then(E) : w && !T ? Promise.resolve(x) : Promise.all([T, b]).then(E), {
2019
- arg: s,
2020
- requestId: S,
2021
- subscriptionOptions: h,
2022
- queryCacheKey: _,
2023
- abort: C,
2024
- unwrap: function() {
2025
- return an(this, null, function() {
2026
- var e;
2027
- return Jt(this, function(t) {
2028
- switch (t.label) {
2029
- case 0: return [4, D];
2030
- case 1:
2031
- if (e = t.sent(), e.isError) throw e.error;
2032
- return [2, e.data];
2033
- }
2034
- });
2035
- });
2036
- },
2037
- refetch: function() {
2038
- return c(a(s, {
2039
- subscribe: !1,
2040
- forceRefetch: !0
2041
- }));
2042
- },
2043
- unsubscribe: function() {
2044
- p && c(l({
2045
- queryCacheKey: _,
2046
- requestId: S
2047
- }));
2048
- },
2049
- updateSubscriptionOptions: function(t) {
2050
- D.subscriptionOptions = t, c(d({
2051
- endpointName: e,
2052
- requestId: S,
2053
- queryCacheKey: _,
2054
- options: t
2055
- }));
2056
- }
2057
- });
2058
- if (!T && !w && !g) {
2059
- var O = o.get(c) || {};
2060
- O[_] = D, o.set(c, O), D.then(function() {
2061
- delete O[_], Object.keys(O).length || o.delete(c);
2062
- });
2063
- }
2064
- return D;
2065
- };
2066
- };
2067
- return a;
2068
- }
2069
- function y(e) {
2070
- return function(t, n) {
2071
- var i = n === void 0 ? {} : n, a = i.track, o = a === void 0 ? !0 : a, c = i.fixedCacheKey;
2072
- return function(n, i) {
2073
- var a = n(r({
2074
- type: "mutation",
2075
- endpointName: e,
2076
- originalArgs: t,
2077
- track: o,
2078
- fixedCacheKey: c
2079
- })), l = a.requestId, d = a.abort, f = a.unwrap, p = a.unwrap().then(function(e) {
2080
- return { data: e };
2081
- }).catch(function(e) {
2082
- return { error: e };
2083
- }), m = function() {
2084
- n(u({
2085
- requestId: l,
2086
- fixedCacheKey: c
2087
- }));
2088
- }, h = Object.assign(p, {
2089
- arg: a.arg,
2090
- requestId: l,
2091
- abort: d,
2092
- unwrap: f,
2093
- unsubscribe: m,
2094
- reset: m
2095
- }), g = s.get(n) || {};
2096
- return s.set(n, g), g[l] = h, h.then(function() {
2097
- delete g[l], Object.keys(g).length || s.delete(n);
2098
- }), c && (g[c] = h, h.then(function() {
2099
- g[c] === h && (delete g[c], Object.keys(g).length || s.delete(n));
2100
- })), h;
2101
- };
2102
- };
2103
- }
2104
- }
2105
- function Ln(e) {
2106
- return e;
2107
- }
2108
- function Rn(e) {
2109
- var t = this, n = e.reducerPath, r = e.baseQuery, i = e.context.endpointDefinitions, a = e.serializeQueryArgs, o = e.api, s = e.assertTagType, l = function(e, t, n, r) {
2110
- return function(c, l) {
2111
- var u = i[e], d = a({
2112
- queryArgs: t,
2113
- endpointDefinition: u,
2114
- endpointName: e
2115
- });
2116
- if (c(o.internalActions.queryResultPatched({
2117
- queryCacheKey: d,
2118
- patches: n
2119
- })), r) {
2120
- var f = o.endpoints[e].select(t)(l()), p = An(u.providesTags, f.data, void 0, t, {}, s);
2121
- c(o.internalActions.updateProvidedBy({
2122
- queryCacheKey: d,
2123
- providedTags: p
2124
- }));
2125
- }
2126
- };
2127
- }, u = function(e, t, n, r) {
2128
- return r === void 0 && (r = !0), function(i, a) {
2129
- var s, l, u = o.endpoints[e].select(t)(a()), d = {
2130
- patches: [],
2131
- inversePatches: [],
2132
- undo: function() {
2133
- return i(o.util.patchQueryData(e, t, d.inversePatches, r));
2134
- }
2135
- };
2136
- if (u.status === K.uninitialized) return d;
2137
- var f;
2138
- if ("data" in u) if (c(u.data)) {
2139
- var p = xe(u.data, n), m = p[0], h = p[1], g = p[2];
2140
- (s = d.patches).push.apply(s, h), (l = d.inversePatches).push.apply(l, g), f = m;
2141
- } else f = n(u.data), d.patches.push({
2142
- op: "replace",
2143
- path: [],
2144
- value: f
2145
- }), d.inversePatches.push({
2146
- op: "replace",
2147
- path: [],
2148
- value: u.data
2149
- });
2150
- return i(o.util.patchQueryData(e, t, d.patches, r)), d;
2151
- };
2152
- }, d = function(e, t, n) {
2153
- return function(r) {
2154
- var i;
2155
- return r(o.endpoints[e].initiate(t, (i = {
2156
- subscribe: !1,
2157
- forceRefetch: !0
2158
- }, i[Pn] = function() {
2159
- return { data: n };
2160
- }, i)));
2161
- };
2162
- }, f = function(e, n) {
2163
- return an(t, [e, n], function(e, t) {
2164
- var n, a, o, s, c, l, u, d, f, m, h, g, _, v = t.signal, y = t.abort, b = t.rejectWithValue, x = t.fulfillWithValue, S = t.dispatch, C = t.getState, w = t.extra;
2165
- return Jt(this, function(t) {
2166
- switch (t.label) {
2167
- case 0: n = i[e.endpointName], t.label = 1;
2168
- case 1: return t.trys.push([
2169
- 1,
2170
- 8,
2171
- ,
2172
- 13
2173
- ]), a = Ln, o = void 0, s = {
2174
- signal: v,
2175
- abort: y,
2176
- dispatch: S,
2177
- getState: C,
2178
- extra: w,
2179
- endpoint: e.endpointName,
2180
- type: e.type,
2181
- forced: e.type === "query" ? p(e, C()) : void 0
2182
- }, c = e.type === "query" ? e[Pn] : void 0, c ? (o = c(), [3, 6]) : [3, 2];
2183
- case 2: return n.query ? [4, r(n.query(e.originalArgs), s, n.extraOptions)] : [3, 4];
2184
- case 3: return o = t.sent(), n.transformResponse && (a = n.transformResponse), [3, 6];
2185
- case 4: return [4, n.queryFn(e.originalArgs, s, n.extraOptions, function(e) {
2186
- return r(e, s, n.extraOptions);
2187
- })];
2188
- case 5: o = t.sent(), t.label = 6;
2189
- case 6:
2190
- if (o.error) throw new xn(o.error, o.meta);
2191
- return l = x, [4, a(o.data, o.meta, e.originalArgs)];
2192
- case 7: return [2, l.apply(void 0, [t.sent(), (g = {
2193
- fulfilledTimeStamp: Date.now(),
2194
- baseQueryMeta: o.meta
2195
- }, g[Kt] = !0, g)])];
2196
- case 8:
2197
- if (u = t.sent(), d = u, !(d instanceof xn)) return [3, 12];
2198
- f = Ln, n.query && n.transformErrorResponse && (f = n.transformErrorResponse), t.label = 9;
2199
- case 9: return t.trys.push([
2200
- 9,
2201
- 11,
2202
- ,
2203
- 12
2204
- ]), m = b, [4, f(d.value, d.meta, e.originalArgs)];
2205
- case 10: return [2, m.apply(void 0, [t.sent(), (_ = { baseQueryMeta: d.meta }, _[Kt] = !0, _)])];
2206
- case 11: return h = t.sent(), d = h, [3, 12];
2207
- case 12: throw console.error(d), d;
2208
- case 13: return [2];
2209
- }
2210
- });
2211
- });
2212
- };
2213
- function p(e, t) {
2214
- var r = t[n]?.queries?.[e.queryCacheKey], i = t[n]?.config.refetchOnMountOrArgChange, a = r?.fulfilledTimeStamp, o = e.forceRefetch ?? (e.subscribe && i);
2215
- return o ? o === !0 || (Number(/* @__PURE__ */ new Date()) - Number(a)) / 1e3 >= o : !1;
2216
- }
2217
- var m = Ot(n + "/executeQuery", f, {
2218
- getPendingMeta: function() {
2219
- var e;
2220
- return e = { startedTimeStamp: Date.now() }, e[Kt] = !0, e;
2221
- },
2222
- condition: function(e, t) {
2223
- var r = t.getState, a = r(), o = a[n]?.queries?.[e.queryCacheKey], s = o?.fulfilledTimeStamp, c = e.originalArgs, l = o?.originalArgs, u = i[e.endpointName];
2224
- return Fn(e) ? !0 : o?.status === "pending" ? !1 : p(e, a) || On(u) && (u?.forceRefetch)?.call(u, {
2225
- currentArg: c,
2226
- previousArg: l,
2227
- endpointState: o,
2228
- state: a
2229
- }) ? !0 : !s;
2230
- },
2231
- dispatchConditionRejection: !0
2232
- }), h = Ot(n + "/executeMutation", f, { getPendingMeta: function() {
2233
- var e;
2234
- return e = { startedTimeStamp: Date.now() }, e[Kt] = !0, e;
2235
- } }), g = function(e) {
2236
- return "force" in e;
2237
- }, _ = function(e) {
2238
- return "ifOlderThan" in e;
2239
- }, v = function(e, t, n) {
2240
- return function(r, i) {
2241
- var a = g(n) && n.force, s = _(n) && n.ifOlderThan, c = function(n) {
2242
- return n === void 0 && (n = !0), o.endpoints[e].initiate(t, { forceRefetch: n });
2243
- }, l = o.endpoints[e].select(t)(i());
2244
- if (a) r(c());
2245
- else if (s) {
2246
- var u = l?.fulfilledTimeStamp;
2247
- if (!u) {
2248
- r(c());
2249
- return;
2250
- }
2251
- (Number(/* @__PURE__ */ new Date()) - Number(new Date(u))) / 1e3 >= s && r(c());
2252
- } else r(c(!1));
2253
- };
2254
- };
2255
- function y(e) {
2256
- return function(t) {
2257
- return t?.meta?.arg?.endpointName === e;
2258
- };
2259
- }
2260
- function b(e, t) {
2261
- return {
2262
- matchPending: Nt(It(e), y(t)),
2263
- matchFulfilled: Nt(zt(e), y(t)),
2264
- matchRejected: Nt(Lt(e), y(t))
2265
- };
2266
- }
2267
- return {
2268
- queryThunk: m,
2269
- mutationThunk: h,
2270
- prefetch: v,
2271
- updateQueryData: u,
2272
- upsertQueryData: d,
2273
- patchQueryData: l,
2274
- buildMatchThunkActions: b
2275
- };
2276
- }
2277
- function zn(e, t, n, r) {
2278
- return An(n[e.meta.arg.endpointName][t], zt(e) ? e.payload : void 0, Rt(e) ? e.payload : void 0, e.meta.arg.originalArgs, "baseQueryMeta" in e.meta ? e.meta.baseQueryMeta : void 0, r);
2279
- }
2280
- function Bn(e, t, n) {
2281
- var r = e[t];
2282
- r && n(r);
2283
- }
2284
- function Vn(e) {
2285
- return ("arg" in e ? e.arg.fixedCacheKey : e.fixedCacheKey) ?? e.requestId;
2286
- }
2287
- function Hn(e, t, n) {
2288
- var r = e[Vn(t)];
2289
- r && n(r);
2290
- }
2291
- var Un = {};
2292
- function Wn(e) {
2293
- var t = e.reducerPath, n = e.queryThunk, r = e.mutationThunk, i = e.context, a = i.endpointDefinitions, o = i.apiUid, c = i.extractRehydrationInfo, u = i.hasRehydrationInfo, d = e.assertTagType, f = e.config, p = U(t + "/resetApiState"), m = xt({
2294
- name: t + "/queries",
2295
- initialState: Un,
2296
- reducers: {
2297
- removeQueryResult: {
2298
- reducer: function(e, t) {
2299
- var n = t.payload.queryCacheKey;
2300
- delete e[n];
2301
- },
2302
- prepare: qt()
2303
- },
2304
- queryResultPatched: {
2305
- reducer: function(e, t) {
2306
- var n = t.payload, r = n.queryCacheKey, i = n.patches;
2307
- Bn(e, r, function(e) {
2308
- e.data = Se(e.data, i.concat());
2309
- });
2310
- },
2311
- prepare: qt()
2312
- }
2313
- },
2314
- extraReducers: function(e) {
2315
- e.addCase(n.pending, function(e, t) {
2316
- var n = t.meta, r = t.meta.arg, i, a = Fn(r);
2317
- (r.subscribe || a) && (e[i = r.queryCacheKey] ?? (e[i] = {
2318
- status: K.uninitialized,
2319
- endpointName: r.endpointName
2320
- })), Bn(e, r.queryCacheKey, function(e) {
2321
- e.status = K.pending, e.requestId = a && e.requestId ? e.requestId : n.requestId, r.originalArgs !== void 0 && (e.originalArgs = r.originalArgs), e.startedTimeStamp = n.startedTimeStamp;
2322
- });
2323
- }).addCase(n.fulfilled, function(e, t) {
2324
- var n = t.meta, r = t.payload;
2325
- Bn(e, n.arg.queryCacheKey, function(e) {
2326
- if (!(e.requestId !== n.requestId && !Fn(n.arg))) {
2327
- var t = a[n.arg.endpointName].merge;
2328
- if (e.status = K.fulfilled, t) if (e.data !== void 0) {
2329
- var i = n.fulfilledTimeStamp, o = n.arg, c = n.baseQueryMeta, u = n.requestId;
2330
- e.data = be(e.data, function(e) {
2331
- return t(e, r, {
2332
- arg: o.originalArgs,
2333
- baseQueryMeta: c,
2334
- fulfilledTimeStamp: i,
2335
- requestId: u
2336
- });
2337
- });
2338
- } else e.data = r;
2339
- else e.data = a[n.arg.endpointName].structuralSharing ?? !0 ? hn(s(e.data) ? l(e.data) : e.data, r) : r;
2340
- delete e.error, e.fulfilledTimeStamp = n.fulfilledTimeStamp;
2341
- }
2342
- });
2343
- }).addCase(n.rejected, function(e, t) {
2344
- var n = t.meta, r = n.condition, i = n.arg, a = n.requestId, o = t.error, s = t.payload;
2345
- Bn(e, i.queryCacheKey, function(e) {
2346
- if (!r) {
2347
- if (e.requestId !== a) return;
2348
- e.status = K.rejected, e.error = s ?? o;
2349
- }
2350
- });
2351
- }).addMatcher(u, function(e, t) {
2352
- for (var n = c(t).queries, r = 0, i = Object.entries(n); r < i.length; r++) {
2353
- var a = i[r], o = a[0], s = a[1];
2354
- (s?.status === K.fulfilled || s?.status === K.rejected) && (e[o] = s);
2355
- }
2356
- });
2357
- }
2358
- }), h = xt({
2359
- name: t + "/mutations",
2360
- initialState: Un,
2361
- reducers: { removeMutationResult: {
2362
- reducer: function(e, t) {
2363
- var n = t.payload, r = Vn(n);
2364
- r in e && delete e[r];
2365
- },
2366
- prepare: qt()
2367
- } },
2368
- extraReducers: function(e) {
2369
- e.addCase(r.pending, function(e, t) {
2370
- var n = t.meta, r = t.meta, i = r.requestId, a = r.arg, o = r.startedTimeStamp;
2371
- a.track && (e[Vn(n)] = {
2372
- requestId: i,
2373
- status: K.pending,
2374
- endpointName: a.endpointName,
2375
- startedTimeStamp: o
2376
- });
2377
- }).addCase(r.fulfilled, function(e, t) {
2378
- var n = t.payload, r = t.meta;
2379
- r.arg.track && Hn(e, r, function(e) {
2380
- e.requestId === r.requestId && (e.status = K.fulfilled, e.data = n, e.fulfilledTimeStamp = r.fulfilledTimeStamp);
2381
- });
2382
- }).addCase(r.rejected, function(e, t) {
2383
- var n = t.payload, r = t.error, i = t.meta;
2384
- i.arg.track && Hn(e, i, function(e) {
2385
- e.requestId === i.requestId && (e.status = K.rejected, e.error = n ?? r);
2386
- });
2387
- }).addMatcher(u, function(e, t) {
2388
- for (var n = c(t).mutations, r = 0, i = Object.entries(n); r < i.length; r++) {
2389
- var a = i[r], o = a[0], s = a[1];
2390
- (s?.status === K.fulfilled || s?.status === K.rejected) && o !== s?.requestId && (e[o] = s);
2391
- }
2392
- });
2393
- }
2394
- }), g = xt({
2395
- name: t + "/invalidation",
2396
- initialState: Un,
2397
- reducers: { updateProvidedBy: {
2398
- reducer: function(e, t) {
2399
- for (var n, r, i = t.payload, a = i.queryCacheKey, o = i.providedTags, s = 0, c = Object.values(e); s < c.length; s++) for (var l = c[s], u = 0, d = Object.values(l); u < d.length; u++) {
2400
- var f = d[u], p = f.indexOf(a);
2401
- p !== -1 && f.splice(p, 1);
2402
- }
2403
- for (var m = 0, h = o; m < h.length; m++) {
2404
- var g = h[m], _ = g.type, v = g.id, y = (n = e[_] ?? (e[_] = {}))[r = v || "__internal_without_id"] ?? (n[r] = []);
2405
- y.includes(a) || y.push(a);
2406
- }
2407
- },
2408
- prepare: qt()
2409
- } },
2410
- extraReducers: function(e) {
2411
- e.addCase(m.actions.removeQueryResult, function(e, t) {
2412
- for (var n = t.payload.queryCacheKey, r = 0, i = Object.values(e); r < i.length; r++) for (var a = i[r], o = 0, s = Object.values(a); o < s.length; o++) {
2413
- var c = s[o], l = c.indexOf(n);
2414
- l !== -1 && c.splice(l, 1);
2415
- }
2416
- }).addMatcher(u, function(e, t) {
2417
- for (var n, r, i = c(t).provided, a = 0, o = Object.entries(i); a < o.length; a++) for (var s = o[a], l = s[0], u = s[1], d = 0, f = Object.entries(u); d < f.length; d++) for (var p = f[d], m = p[0], h = p[1], g = (n = e[l] ?? (e[l] = {}))[r = m || "__internal_without_id"] ?? (n[r] = []), _ = 0, v = h; _ < v.length; _++) {
2418
- var y = v[_];
2419
- g.includes(y) || g.push(y);
2420
- }
2421
- }).addMatcher(Mt(zt(n), Rt(n)), function(e, t) {
2422
- var n = zn(t, "providesTags", a, d), r = t.meta.arg.queryCacheKey;
2423
- g.caseReducers.updateProvidedBy(e, g.actions.updateProvidedBy({
2424
- queryCacheKey: r,
2425
- providedTags: n
2426
- }));
2427
- });
2428
- }
2429
- }), _ = xt({
2430
- name: t + "/subscriptions",
2431
- initialState: Un,
2432
- reducers: {
2433
- updateSubscriptionOptions: function(e, t) {},
2434
- unsubscribeQueryResult: function(e, t) {},
2435
- internal_probeSubscription: function(e, t) {}
2436
- }
2437
- }), v = xt({
2438
- name: t + "/internalSubscriptions",
2439
- initialState: Un,
2440
- reducers: { subscriptionsUpdated: {
2441
- reducer: function(e, t) {
2442
- return Se(e, t.payload);
2443
- },
2444
- prepare: qt()
2445
- } }
2446
- }), y = xt({
2447
- name: t + "/config",
2448
- initialState: W({
2449
- online: fn(),
2450
- focused: pn(),
2451
- middlewareRegistered: !1
2452
- }, f),
2453
- reducers: { middlewareRegistered: function(e, t) {
2454
- var n = t.payload;
2455
- e.middlewareRegistered = e.middlewareRegistered === "conflict" || o !== n ? "conflict" : !0;
2456
- } },
2457
- extraReducers: function(e) {
2458
- e.addCase(wn, function(e) {
2459
- e.online = !0;
2460
- }).addCase(Tn, function(e) {
2461
- e.online = !1;
2462
- }).addCase(Sn, function(e) {
2463
- e.focused = !0;
2464
- }).addCase(Cn, function(e) {
2465
- e.focused = !1;
2466
- }).addMatcher(u, function(e) {
2467
- return W({}, e);
2468
- });
2469
- }
2470
- }), b = Fe({
2471
- queries: m.reducer,
2472
- mutations: h.reducer,
2473
- provided: g.reducer,
2474
- subscriptions: v.reducer,
2475
- config: y.reducer
2476
- });
2477
- return {
2478
- reducer: function(e, t) {
2479
- return b(p.match(t) ? void 0 : e, t);
2480
- },
2481
- actions: G(W(W(W(W(W(W({}, y.actions), m.actions), _.actions), v.actions), h.actions), g.actions), {
2482
- unsubscribeMutationResult: h.actions.removeMutationResult,
2483
- resetApiState: p
2484
- })
2485
- };
2486
- }
2487
- var J = /* @__PURE__ */ Symbol.for("RTKQ/skipToken"), Gn = { status: K.uninitialized }, Kn = /* @__PURE__ */ be(Gn, function() {}), qn = /* @__PURE__ */ be(Gn, function() {});
2488
- function Jn(e) {
2489
- var t = e.serializeQueryArgs, n = e.reducerPath, r = function(e) {
2490
- return Kn;
2491
- }, i = function(e) {
2492
- return qn;
2493
- };
2494
- return {
2495
- buildQuerySelector: s,
2496
- buildMutationSelector: c,
2497
- selectInvalidatedBy: l
2498
- };
2499
- function a(e) {
2500
- return W(W({}, e), on(e.status));
2501
- }
2502
- function o(e) {
2503
- return e[n];
2504
- }
2505
- function s(e, n) {
2506
- return function(i) {
2507
- var s = t({
2508
- queryArgs: i,
2509
- endpointDefinition: n,
2510
- endpointName: e
2511
- });
2512
- return Ke(i === J ? r : function(e) {
2513
- return o(e)?.queries?.[s] ?? Kn;
2514
- }, a);
2515
- };
2516
- }
2517
- function c() {
2518
- return function(e) {
2519
- var t = typeof e == "object" ? Vn(e) ?? J : e;
2520
- return Ke(t === J ? i : function(e) {
2521
- return o(e)?.mutations?.[t] ?? qn;
2522
- }, a);
2523
- };
2524
- }
2525
- function l(e, t) {
2526
- for (var r = e[n], i = /* @__PURE__ */ new Set(), a = 0, o = t.map(Mn); a < o.length; a++) {
2527
- var s = o[a], c = r.provided[s.type];
2528
- if (c) for (var l = (s.id === void 0 ? dn(Object.values(c)) : c[s.id]) ?? [], u = 0, d = l; u < d.length; u++) {
2529
- var f = d[u];
2530
- i.add(f);
2531
- }
2532
- }
2533
- return dn(Array.from(i.values()).map(function(e) {
2534
- var t = r.queries[e];
2535
- return t ? [{
2536
- queryCacheKey: e,
2537
- endpointName: t.endpointName,
2538
- originalArgs: t.originalArgs
2539
- }] : [];
2540
- }));
2541
- }
2542
- }
2543
- var Yn = WeakMap ? /* @__PURE__ */ new WeakMap() : void 0, Xn = function(e) {
2544
- var t = e.endpointName, n = e.queryArgs, r = "", i = Yn?.get(n);
2545
- if (typeof i == "string") r = i;
2546
- else {
2547
- var a = JSON.stringify(n, function(e, t) {
2548
- return H(t) ? Object.keys(t).sort().reduce(function(e, n) {
2549
- return e[n] = t[n], e;
2550
- }, {}) : t;
2551
- });
2552
- H(n) && Yn?.set(n, a), r = a;
2553
- }
2554
- return t + "(" + r + ")";
2555
- };
2556
- function Zn() {
2557
- var e = [...arguments];
2558
- return function(t) {
2559
- var n = Ue(function(e) {
2560
- return t.extractRehydrationInfo?.call(t, e, { reducerPath: t.reducerPath ?? "api" });
2561
- }), r = G(W({
2562
- reducerPath: "api",
2563
- keepUnusedDataFor: 60,
2564
- refetchOnMountOrArgChange: !1,
2565
- refetchOnFocus: !1,
2566
- refetchOnReconnect: !1
2567
- }, t), {
2568
- extractRehydrationInfo: n,
2569
- serializeQueryArgs: function(e) {
2570
- var n = Xn;
2571
- if ("serializeQueryArgs" in e.endpointDefinition) {
2572
- var r = e.endpointDefinition.serializeQueryArgs;
2573
- n = function(e) {
2574
- var t = r(e);
2575
- return typeof t == "string" ? t : Xn(G(W({}, e), { queryArgs: t }));
2576
- };
2577
- } else t.serializeQueryArgs && (n = t.serializeQueryArgs);
2578
- return n(e);
2579
- },
2580
- tagTypes: Yt([], t.tagTypes || [])
2581
- }), i = {
2582
- endpointDefinitions: {},
2583
- batch: function(e) {
2584
- e();
2585
- },
2586
- apiUid: Ct(),
2587
- extractRehydrationInfo: n,
2588
- hasRehydrationInfo: Ue(function(e) {
2589
- return n(e) != null;
2590
- })
2591
- }, a = {
2592
- injectEndpoints: s,
2593
- enhanceEndpoints: function(e) {
2594
- var t = e.addTagTypes, n = e.endpoints;
2595
- if (t) for (var o = 0, s = t; o < s.length; o++) {
2596
- var c = s[o];
2597
- r.tagTypes.includes(c) || r.tagTypes.push(c);
2598
- }
2599
- if (n) for (var l = 0, u = Object.entries(n); l < u.length; l++) {
2600
- var d = u[l], f = d[0], p = d[1];
2601
- typeof p == "function" ? p(i.endpointDefinitions[f]) : Object.assign(i.endpointDefinitions[f] || {}, p);
2602
- }
2603
- return a;
2604
- }
2605
- }, o = e.map(function(e) {
2606
- return e.init(a, r, i);
2607
- });
2608
- function s(e) {
2609
- for (var t = e.endpoints({
2610
- query: function(e) {
2611
- return G(W({}, e), { type: q.query });
2612
- },
2613
- mutation: function(e) {
2614
- return G(W({}, e), { type: q.mutation });
2615
- }
2616
- }), n = 0, r = Object.entries(t); n < r.length; n++) {
2617
- var s = r[n], c = s[0], l = s[1];
2618
- if (!(!e.overrideExisting && c in i.endpointDefinitions)) {
2619
- i.endpointDefinitions[c] = l;
2620
- for (var u = 0, d = o; u < d.length; u++) d[u].injectEndpoint(c, l);
2621
- }
2622
- }
2623
- return a;
2624
- }
2625
- return a.injectEndpoints({ endpoints: t.endpoints });
2626
- };
2627
- }
2628
- function Qn(e) {
2629
- for (var t in e) return !1;
2630
- return !0;
2631
- }
2632
- var $n = 2147483647 / 1e3 - 1, er = function(e) {
2633
- var t = e.reducerPath, n = e.api, r = e.context, i = e.internalState, a = n.internalActions, o = a.removeQueryResult, s = a.unsubscribeQueryResult;
2634
- function c(e) {
2635
- var t = i.currentSubscriptions[e];
2636
- return !!t && !Qn(t);
2637
- }
2638
- var l = {}, u = function(e, i, a) {
2639
- if (s.match(e)) {
2640
- var o = i.getState()[t], c = e.payload.queryCacheKey;
2641
- d(c, o.queries[c]?.endpointName, i, o.config);
2642
- }
2643
- if (n.util.resetApiState.match(e)) for (var u = 0, f = Object.entries(l); u < f.length; u++) {
2644
- var p = f[u], m = p[0], h = p[1];
2645
- h && clearTimeout(h), delete l[m];
2646
- }
2647
- if (r.hasRehydrationInfo(e)) for (var o = i.getState()[t], g = r.extractRehydrationInfo(e).queries, _ = 0, v = Object.entries(g); _ < v.length; _++) {
2648
- var y = v[_], c = y[0], b = y[1];
2649
- d(c, b?.endpointName, i, o.config);
2650
- }
2651
- };
2652
- function d(e, t, n, i) {
2653
- var a = r.endpointDefinitions[t]?.keepUnusedDataFor ?? i.keepUnusedDataFor;
2654
- if (a !== Infinity) {
2655
- var s = Math.max(0, Math.min(a, $n));
2656
- if (!c(e)) {
2657
- var u = l[e];
2658
- u && clearTimeout(u), l[e] = setTimeout(function() {
2659
- c(e) || n.dispatch(o({ queryCacheKey: e })), delete l[e];
2660
- }, s * 1e3);
2661
- }
2662
- }
2663
- }
2664
- return u;
2665
- }, tr = function(e) {
2666
- var t = e.reducerPath, n = e.context, r = e.context.endpointDefinitions, i = e.mutationThunk, a = e.api, o = e.assertTagType, s = e.refetchQuery, c = a.internalActions.removeQueryResult, l = Mt(zt(i), Rt(i)), u = function(e, t) {
2667
- l(e) && d(zn(e, "invalidatesTags", r, o), t), a.util.invalidateTags.match(e) && d(An(e.payload, void 0, void 0, void 0, void 0, o), t);
2668
- };
2669
- function d(e, r) {
2670
- var i = r.getState(), o = i[t], l = a.util.selectInvalidatedBy(i, e);
2671
- n.batch(function() {
2672
- for (var e = Array.from(l.values()), t = 0, n = e; t < n.length; t++) {
2673
- var i = n[t].queryCacheKey, a = o.queries[i], u = o.subscriptions[i] ?? {};
2674
- a && (Object.keys(u).length === 0 ? r.dispatch(c({ queryCacheKey: i })) : a.status !== K.uninitialized && r.dispatch(s(a, i)));
2675
- }
2676
- });
2677
- }
2678
- return u;
2679
- }, nr = function(e) {
2680
- var t = e.reducerPath, n = e.queryThunk, r = e.api, i = e.refetchQuery, a = e.internalState, o = {}, s = function(e, t) {
2681
- (r.internalActions.updateSubscriptionOptions.match(e) || r.internalActions.unsubscribeQueryResult.match(e)) && l(e.payload, t), (n.pending.match(e) || n.rejected.match(e) && e.meta.condition) && l(e.meta.arg, t), (n.fulfilled.match(e) || n.rejected.match(e) && !e.meta.condition) && c(e.meta.arg, t), r.util.resetApiState.match(e) && d();
2682
- };
2683
- function c(e, n) {
2684
- var r = e.queryCacheKey, s = n.getState()[t].queries[r], c = a.currentSubscriptions[r];
2685
- if (!(!s || s.status === K.uninitialized)) {
2686
- var l = f(c);
2687
- if (Number.isFinite(l)) {
2688
- var u = o[r];
2689
- u?.timeout && (clearTimeout(u.timeout), u.timeout = void 0);
2690
- var d = o[r] = {
2691
- nextPollTimestamp: Date.now() + l,
2692
- pollingInterval: l,
2693
- timeout: setTimeout(function() {
2694
- d.timeout = void 0, n.dispatch(i(s, r));
2695
- }, l)
2696
- };
2697
- }
2698
- }
2699
- }
2700
- function l(e, n) {
2701
- var r = e.queryCacheKey, i = n.getState()[t].queries[r], s = a.currentSubscriptions[r];
2702
- if (!(!i || i.status === K.uninitialized)) {
2703
- var l = f(s);
2704
- if (!Number.isFinite(l)) {
2705
- u(r);
2706
- return;
2707
- }
2708
- var d = o[r], p = Date.now() + l;
2709
- (!d || p < d.nextPollTimestamp) && c({ queryCacheKey: r }, n);
2710
- }
2711
- }
2712
- function u(e) {
2713
- var t = o[e];
2714
- t?.timeout && clearTimeout(t.timeout), delete o[e];
2715
- }
2716
- function d() {
2717
- for (var e = 0, t = Object.keys(o); e < t.length; e++) {
2718
- var n = t[e];
2719
- u(n);
2720
- }
2721
- }
2722
- function f(e) {
2723
- e === void 0 && (e = {});
2724
- var t = Infinity;
2725
- for (var n in e) e[n].pollingInterval && (t = Math.min(e[n].pollingInterval, t));
2726
- return t;
2727
- }
2728
- return s;
2729
- }, rr = function(e) {
2730
- var t = e.reducerPath, n = e.context, r = e.api, i = e.refetchQuery, a = e.internalState, o = r.internalActions.removeQueryResult, s = function(e, t) {
2731
- Sn.match(e) && c(t, "refetchOnFocus"), wn.match(e) && c(t, "refetchOnReconnect");
2732
- };
2733
- function c(e, r) {
2734
- var s = e.getState()[t], c = s.queries, l = a.currentSubscriptions;
2735
- n.batch(function() {
2736
- for (var t = 0, n = Object.keys(l); t < n.length; t++) {
2737
- var a = n[t], u = c[a], d = l[a];
2738
- !d || !u || (Object.values(d).some(function(e) {
2739
- return e[r] === !0;
2740
- }) || Object.values(d).every(function(e) {
2741
- return e[r] === void 0;
2742
- }) && s.config[r]) && (Object.keys(d).length === 0 ? e.dispatch(o({ queryCacheKey: a })) : u.status !== K.uninitialized && e.dispatch(i(u, a)));
2743
- }
2744
- });
2745
- }
2746
- return s;
2747
- }, ir = /* @__PURE__ */ Error("Promise never resolved before cacheEntryRemoved."), ar = function(e) {
2748
- var t = e.api, n = e.reducerPath, r = e.context, i = e.queryThunk, a = e.mutationThunk;
2749
- e.internalState;
2750
- var o = Bt(i), s = Bt(a), c = zt(i, a), l = {}, u = function(e, r, o) {
2751
- var s = d(e);
2752
- if (i.pending.match(e)) {
2753
- var u = o[n].queries[s], p = r.getState()[n].queries[s];
2754
- !u && p && f(e.meta.arg.endpointName, e.meta.arg.originalArgs, s, r, e.meta.requestId);
2755
- } else if (a.pending.match(e)) {
2756
- var p = r.getState()[n].mutations[s];
2757
- p && f(e.meta.arg.endpointName, e.meta.arg.originalArgs, s, r, e.meta.requestId);
2758
- } else if (c(e)) {
2759
- var m = l[s];
2760
- m?.valueResolved && (m.valueResolved({
2761
- data: e.payload,
2762
- meta: e.meta.baseQueryMeta
2763
- }), delete m.valueResolved);
2764
- } else if (t.internalActions.removeQueryResult.match(e) || t.internalActions.removeMutationResult.match(e)) {
2765
- var m = l[s];
2766
- m && (delete l[s], m.cacheEntryRemoved());
2767
- } else if (t.util.resetApiState.match(e)) for (var h = 0, g = Object.entries(l); h < g.length; h++) {
2768
- var _ = g[h], v = _[0], m = _[1];
2769
- delete l[v], m.cacheEntryRemoved();
2770
- }
2771
- };
2772
- function d(e) {
2773
- return o(e) ? e.meta.arg.queryCacheKey : s(e) ? e.meta.requestId : t.internalActions.removeQueryResult.match(e) ? e.payload.queryCacheKey : t.internalActions.removeMutationResult.match(e) ? Vn(e.payload) : "";
2774
- }
2775
- function f(e, n, i, a, o) {
2776
- var s = r.endpointDefinitions[e], c = s?.onCacheEntryAdded;
2777
- if (c) {
2778
- var u = {}, d = new Promise(function(e) {
2779
- u.cacheEntryRemoved = e;
2780
- }), f = Promise.race([new Promise(function(e) {
2781
- u.valueResolved = e;
2782
- }), d.then(function() {
2783
- throw ir;
2784
- })]);
2785
- f.catch(function() {}), l[i] = u;
2786
- var p = t.endpoints[e].select(s.type === q.query ? n : i), m = a.dispatch(function(e, t, n) {
2787
- return n;
2788
- }), h = c(n, G(W({}, a), {
2789
- getCacheEntry: function() {
2790
- return p(a.getState());
2791
- },
2792
- requestId: o,
2793
- extra: m,
2794
- updateCachedData: s.type === q.query ? function(r) {
2795
- return a.dispatch(t.util.updateQueryData(e, n, r));
2796
- } : void 0,
2797
- cacheDataLoaded: f,
2798
- cacheEntryRemoved: d
2799
- }));
2800
- Promise.resolve(h).catch(function(e) {
2801
- if (e !== ir) throw e;
2802
- });
2803
- }
2804
- }
2805
- return u;
2806
- }, or = function(e) {
2807
- var t = e.api, n = e.context, r = e.queryThunk, i = e.mutationThunk, a = It(r, i), o = Lt(r, i), s = zt(r, i), c = {};
2808
- return function(e, r) {
2809
- var i, l;
2810
- if (a(e)) {
2811
- var u = e.meta, d = u.requestId, f = u.arg, p = f.endpointName, m = f.originalArgs, h = n.endpointDefinitions[p], g = h?.onQueryStarted;
2812
- if (g) {
2813
- var _ = {}, v = new Promise(function(e, t) {
2814
- _.resolve = e, _.reject = t;
2815
- });
2816
- v.catch(function() {}), c[d] = _;
2817
- var y = t.endpoints[p].select(h.type === q.query ? m : d), b = r.dispatch(function(e, t, n) {
2818
- return n;
2819
- });
2820
- g(m, G(W({}, r), {
2821
- getCacheEntry: function() {
2822
- return y(r.getState());
2823
- },
2824
- requestId: d,
2825
- extra: b,
2826
- updateCachedData: h.type === q.query ? function(e) {
2827
- return r.dispatch(t.util.updateQueryData(p, m, e));
2828
- } : void 0,
2829
- queryFulfilled: v
2830
- }));
2831
- }
2832
- } else if (s(e)) {
2833
- var x = e.meta, d = x.requestId, S = x.baseQueryMeta;
2834
- (i = c[d]) == null || i.resolve({
2835
- data: e.payload,
2836
- meta: S
2837
- }), delete c[d];
2838
- } else if (o(e)) {
2839
- var C = e.meta, d = C.requestId, w = C.rejectedWithValue, S = C.baseQueryMeta;
2840
- (l = c[d]) == null || l.reject({
2841
- error: e.payload ?? e.error,
2842
- isUnhandledError: !w,
2843
- meta: S
2844
- }), delete c[d];
2845
- }
2846
- };
2847
- }, sr = function(e) {
2848
- var t = e.api, n = e.context.apiUid;
2849
- return e.reducerPath, function(e, r) {
2850
- t.util.resetApiState.match(e) && r.dispatch(t.internalActions.middlewareRegistered(n));
2851
- };
2852
- }, cr, lr = typeof queueMicrotask == "function" ? queueMicrotask.bind(typeof window < "u" ? window : r === void 0 ? globalThis : r) : function(e) {
2853
- return (cr ||= Promise.resolve()).then(e).catch(function(e) {
2854
- return setTimeout(function() {
2855
- throw e;
2856
- }, 0);
2857
- });
2858
- }, ur = function(e) {
2859
- var t = e.api, n = e.queryThunk, r = e.internalState, i = t.reducerPath + "/subscriptions", a = null, o = !1, s = t.internalActions, c = s.updateSubscriptionOptions, l = s.unsubscribeQueryResult, u = function(e, r) {
2860
- var i, a;
2861
- if (c.match(r)) {
2862
- var o = r.payload, s = o.queryCacheKey, u = o.requestId, d = o.options;
2863
- return e?.[s]?.[u] && (e[s][u] = d), !0;
2864
- }
2865
- if (l.match(r)) {
2866
- var f = r.payload, s = f.queryCacheKey, u = f.requestId;
2867
- return e[s] && delete e[s][u], !0;
2868
- }
2869
- if (t.internalActions.removeQueryResult.match(r)) return delete e[r.payload.queryCacheKey], !0;
2870
- if (n.pending.match(r)) {
2871
- var p = r.meta, m = p.arg, u = p.requestId;
2872
- if (m.subscribe) {
2873
- var h = e[i = m.queryCacheKey] ?? (e[i] = {});
2874
- return h[u] = m.subscriptionOptions ?? h[u] ?? {}, !0;
2875
- }
2876
- }
2877
- if (n.rejected.match(r)) {
2878
- var g = r.meta, _ = g.condition, m = g.arg, u = g.requestId;
2879
- if (_ && m.subscribe) {
2880
- var h = e[a = m.queryCacheKey] ?? (e[a] = {});
2881
- return h[u] = m.subscriptionOptions ?? h[u] ?? {}, !0;
2882
- }
2883
- }
2884
- return !1;
2885
- };
2886
- return function(e, s) {
2887
- if (a ||= JSON.parse(JSON.stringify(r.currentSubscriptions)), t.util.resetApiState.match(e)) return a = r.currentSubscriptions = {}, [!0, !1];
2888
- if (t.internalActions.internal_probeSubscription.match(e)) {
2889
- var c = e.payload, l = c.queryCacheKey, d = c.requestId;
2890
- return [!1, !!r.currentSubscriptions[l]?.[d]];
2891
- }
2892
- if (u(r.currentSubscriptions, e)) {
2893
- o ||= (lr(function() {
2894
- var e = JSON.parse(JSON.stringify(r.currentSubscriptions)), n = xe(a, function() {
2895
- return e;
2896
- })[1];
2897
- s.next(t.internalActions.subscriptionsUpdated(n)), a = e, o = !1;
2898
- }), !0);
2899
- var f = !!e.type?.startsWith(i), p = n.rejected.match(e) && e.meta.condition && !!e.meta.arg.subscribe;
2900
- return [!f && !p, !1];
2901
- }
2902
- return [!0, !1];
2903
- };
2904
- };
2905
- function dr(e) {
2906
- var t = e.reducerPath, n = e.queryThunk, r = e.api, i = e.context, a = i.apiUid, o = { invalidateTags: U(t + "/invalidateTags") }, s = function(e) {
2907
- return !!e && typeof e.type == "string" && e.type.startsWith(t + "/");
2908
- }, c = [
2909
- sr,
2910
- er,
2911
- tr,
2912
- nr,
2913
- ar,
2914
- or
2915
- ];
2916
- return {
2917
- middleware: function(n) {
2918
- var o = !1, u = G(W({}, e), {
2919
- internalState: { currentSubscriptions: {} },
2920
- refetchQuery: l
2921
- }), d = c.map(function(e) {
2922
- return e(u);
2923
- }), f = ur(u), p = rr(u);
2924
- return function(e) {
2925
- return function(c) {
2926
- o || (o = !0, n.dispatch(r.internalActions.middlewareRegistered(a)));
2927
- var l = G(W({}, n), { next: e }), u = n.getState(), m = f(c, l, u), h = m[0], g = m[1], _ = h ? e(c) : g;
2928
- if (n.getState()[t] && (p(c, l, u), s(c) || i.hasRehydrationInfo(c))) for (var v = 0, y = d; v < y.length; v++) {
2929
- var b = y[v];
2930
- b(c, l, u);
2931
- }
2932
- return _;
2933
- };
2934
- };
2935
- },
2936
- actions: o
2937
- };
2938
- function l(e, t, r) {
2939
- return r === void 0 && (r = {}), n(W({
2940
- type: "query",
2941
- endpointName: e.endpointName,
2942
- originalArgs: e.originalArgs,
2943
- subscribe: !1,
2944
- forceRefetch: !0,
2945
- queryCacheKey: t
2946
- }, r));
2947
- }
2948
- }
2949
- function Y(e) {
2950
- var t = [...arguments].slice(1);
2951
- Object.assign.apply(Object, Yt([e], t));
2952
- }
2953
- var fr = /* @__PURE__ */ Symbol(), pr = function() {
2954
- return {
2955
- name: fr,
2956
- init: function(e, t, n) {
2957
- var r = t.baseQuery;
2958
- t.tagTypes;
2959
- var i = t.reducerPath, a = t.serializeQueryArgs, o = t.keepUnusedDataFor, s = t.refetchOnMountOrArgChange, c = t.refetchOnFocus, l = t.refetchOnReconnect;
2960
- ce();
2961
- var u = function(e) {
2962
- return e;
2963
- };
2964
- Object.assign(e, {
2965
- reducerPath: i,
2966
- endpoints: {},
2967
- internalActions: {
2968
- onOnline: wn,
2969
- onOffline: Tn,
2970
- onFocus: Sn,
2971
- onFocusLost: Cn
2972
- },
2973
- util: {}
2974
- });
2975
- var d = Rn({
2976
- baseQuery: r,
2977
- reducerPath: i,
2978
- context: n,
2979
- api: e,
2980
- serializeQueryArgs: a,
2981
- assertTagType: u
2982
- }), f = d.queryThunk, p = d.mutationThunk, m = d.patchQueryData, h = d.updateQueryData, g = d.upsertQueryData, _ = d.prefetch, v = d.buildMatchThunkActions, y = Wn({
2983
- context: n,
2984
- queryThunk: f,
2985
- mutationThunk: p,
2986
- reducerPath: i,
2987
- assertTagType: u,
2988
- config: {
2989
- refetchOnFocus: c,
2990
- refetchOnReconnect: l,
2991
- refetchOnMountOrArgChange: s,
2992
- keepUnusedDataFor: o,
2993
- reducerPath: i
2994
- }
2995
- }), b = y.reducer, x = y.actions;
2996
- Y(e.util, {
2997
- patchQueryData: m,
2998
- updateQueryData: h,
2999
- upsertQueryData: g,
3000
- prefetch: _,
3001
- resetApiState: x.resetApiState
3002
- }), Y(e.internalActions, x);
3003
- var S = dr({
3004
- reducerPath: i,
3005
- context: n,
3006
- queryThunk: f,
3007
- mutationThunk: p,
3008
- api: e,
3009
- assertTagType: u
3010
- }), C = S.middleware, w = S.actions;
3011
- Y(e.util, w), Y(e, {
3012
- reducer: b,
3013
- middleware: C
3014
- });
3015
- var T = Jn({
3016
- serializeQueryArgs: a,
3017
- reducerPath: i
3018
- }), E = T.buildQuerySelector, D = T.buildMutationSelector, O = T.selectInvalidatedBy;
3019
- Y(e.util, { selectInvalidatedBy: O });
3020
- var k = In({
3021
- queryThunk: f,
3022
- mutationThunk: p,
3023
- api: e,
3024
- serializeQueryArgs: a,
3025
- context: n
3026
- }), ee = k.buildInitiateQuery, A = k.buildInitiateMutation, j = k.getRunningMutationThunk, te = k.getRunningMutationsThunk, M = k.getRunningQueriesThunk, ne = k.getRunningQueryThunk, re = k.getRunningOperationPromises, N = k.removalWarning;
3027
- return Y(e.util, {
3028
- getRunningOperationPromises: re,
3029
- getRunningOperationPromise: N,
3030
- getRunningMutationThunk: j,
3031
- getRunningMutationsThunk: te,
3032
- getRunningQueryThunk: ne,
3033
- getRunningQueriesThunk: M
3034
- }), {
3035
- name: fr,
3036
- injectEndpoint: function(t, n) {
3037
- var r, i = e;
3038
- (r = i.endpoints)[t] ?? (r[t] = {}), On(n) ? Y(i.endpoints[t], {
3039
- name: t,
3040
- select: E(t, n),
3041
- initiate: ee(t, n)
3042
- }, v(f, t)) : kn(n) && Y(i.endpoints[t], {
3043
- name: t,
3044
- select: D(),
3045
- initiate: A(t)
3046
- }, v(p, t));
3047
- }
3048
- };
3049
- }
3050
- };
3051
- }, mr = /* @__PURE__ */ t(((e) => {
3052
- var t = window.__emailmaker__.modules.PropTypes;
3053
- Object.keys(t).forEach(function(n) {
3054
- n !== "default" && n !== "__esModule" && (e[n] = t[n]);
3055
- }), e.__esModule = !0, e.default = t.default === void 0 ? t : t.default;
3056
- })), X = /* @__PURE__ */ e(n()), Z = /* @__PURE__ */ X.default.createContext(null);
3057
- //#endregion
3058
- //#region node_modules/react-redux/es/utils/batch.js
3059
- function hr(e) {
3060
- e();
3061
- }
3062
- var gr = hr, _r = function(e) {
3063
- return gr = e;
3064
- }, vr = function() {
3065
- return gr;
3066
- };
3067
- //#endregion
3068
- //#region node_modules/react-redux/es/utils/Subscription.js
3069
- function yr() {
3070
- var e = vr(), t = null, n = null;
3071
- return {
3072
- clear: function() {
3073
- t = null, n = null;
3074
- },
3075
- notify: function() {
3076
- e(function() {
3077
- for (var e = t; e;) e.callback(), e = e.next;
3078
- });
3079
- },
3080
- get: function() {
3081
- for (var e = [], n = t; n;) e.push(n), n = n.next;
3082
- return e;
3083
- },
3084
- subscribe: function(e) {
3085
- var r = !0, i = n = {
3086
- callback: e,
3087
- next: null,
3088
- prev: n
3089
- };
3090
- return i.prev ? i.prev.next = i : t = i, function() {
3091
- !r || t === null || (r = !1, i.next ? i.next.prev = i.prev : n = i.prev, i.prev ? i.prev.next = i.next : t = i.next);
3092
- };
3093
- }
3094
- };
3095
- }
3096
- var br = {
3097
- notify: function() {},
3098
- get: function() {
3099
- return [];
3100
- }
3101
- };
3102
- function xr(e, t) {
3103
- var n, r = br;
3104
- function i(e) {
3105
- return c(), r.subscribe(e);
3106
- }
3107
- function a() {
3108
- r.notify();
3109
- }
3110
- function o() {
3111
- u.onStateChange && u.onStateChange();
3112
- }
3113
- function s() {
3114
- return !!n;
3115
- }
3116
- function c() {
3117
- n || (n = t ? t.addNestedSub(o) : e.subscribe(o), r = yr());
3118
- }
3119
- function l() {
3120
- n && (n(), n = void 0, r.clear(), r = br);
3121
- }
3122
- var u = {
3123
- addNestedSub: i,
3124
- notifyNestedSubs: a,
3125
- handleChangeWrapper: o,
3126
- isSubscribed: s,
3127
- trySubscribe: c,
3128
- tryUnsubscribe: l,
3129
- getListeners: function() {
3130
- return r;
3131
- }
3132
- };
3133
- return u;
3134
- }
3135
- //#endregion
3136
- //#region node_modules/react-redux/es/utils/useIsomorphicLayoutEffect.js
3137
- var Sr = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? X.useLayoutEffect : X.useEffect;
3138
- mr();
3139
- function Cr(e) {
3140
- var t = e.store, n = e.context, r = e.children, i = (0, X.useMemo)(function() {
3141
- return {
3142
- store: t,
3143
- subscription: xr(t)
3144
- };
3145
- }, [t]), a = (0, X.useMemo)(function() {
3146
- return t.getState();
3147
- }, [t]);
3148
- Sr(function() {
3149
- var e = i.subscription;
3150
- return e.onStateChange = e.notifyNestedSubs, e.trySubscribe(), a !== t.getState() && e.notifyNestedSubs(), function() {
3151
- e.tryUnsubscribe(), e.onStateChange = null;
3152
- };
3153
- }, [i, a]);
3154
- var o = n || Z;
3155
- return /* @__PURE__ */ X.default.createElement(o.Provider, { value: i }, r);
3156
- }
3157
- //#endregion
3158
- //#region node_modules/@babel/runtime/helpers/esm/extends.js
3159
- function wr() {
3160
- return wr = Object.assign ? Object.assign.bind() : function(e) {
3161
- for (var t = 1; t < arguments.length; t++) {
3162
- var n = arguments[t];
3163
- for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
3164
- }
3165
- return e;
3166
- }, wr.apply(null, arguments);
3167
- }
3168
- //#endregion
3169
- //#region node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
3170
- function Tr(e, t) {
3171
- if (e == null) return {};
3172
- var n = {};
3173
- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
3174
- if (t.indexOf(r) !== -1) continue;
3175
- n[r] = e[r];
3176
- }
3177
- return n;
3178
- }
3179
- //#endregion
3180
- //#region node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js
3181
- var Er = /* @__PURE__ */ t(((e) => {
3182
- var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
3183
- function b(e) {
3184
- if (typeof e == "object" && e) {
3185
- var t = e.$$typeof;
3186
- switch (t) {
3187
- case n: switch (e = e.type, e) {
3188
- case l:
3189
- case u:
3190
- case i:
3191
- case o:
3192
- case a:
3193
- case f: return e;
3194
- default: switch (e &&= e.$$typeof, e) {
3195
- case c:
3196
- case d:
3197
- case h:
3198
- case m:
3199
- case s: return e;
3200
- default: return t;
3201
- }
3202
- }
3203
- case r: return t;
3204
- }
3205
- }
3206
- }
3207
- function x(e) {
3208
- return b(e) === u;
3209
- }
3210
- e.AsyncMode = l, e.ConcurrentMode = u, e.ContextConsumer = c, e.ContextProvider = s, e.Element = n, e.ForwardRef = d, e.Fragment = i, e.Lazy = h, e.Memo = m, e.Portal = r, e.Profiler = o, e.StrictMode = a, e.Suspense = f, e.isAsyncMode = function(e) {
3211
- return x(e) || b(e) === l;
3212
- }, e.isConcurrentMode = x, e.isContextConsumer = function(e) {
3213
- return b(e) === c;
3214
- }, e.isContextProvider = function(e) {
3215
- return b(e) === s;
3216
- }, e.isElement = function(e) {
3217
- return typeof e == "object" && !!e && e.$$typeof === n;
3218
- }, e.isForwardRef = function(e) {
3219
- return b(e) === d;
3220
- }, e.isFragment = function(e) {
3221
- return b(e) === i;
3222
- }, e.isLazy = function(e) {
3223
- return b(e) === h;
3224
- }, e.isMemo = function(e) {
3225
- return b(e) === m;
3226
- }, e.isPortal = function(e) {
3227
- return b(e) === r;
3228
- }, e.isProfiler = function(e) {
3229
- return b(e) === o;
3230
- }, e.isStrictMode = function(e) {
3231
- return b(e) === a;
3232
- }, e.isSuspense = function(e) {
3233
- return b(e) === f;
3234
- }, e.isValidElementType = function(e) {
3235
- return typeof e == "string" || typeof e == "function" || e === i || e === u || e === o || e === a || e === f || e === p || typeof e == "object" && !!e && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === s || e.$$typeof === c || e.$$typeof === d || e.$$typeof === _ || e.$$typeof === v || e.$$typeof === y || e.$$typeof === g);
3236
- }, e.typeOf = b;
3237
- })), Dr = /* @__PURE__ */ t(((e, t) => {
3238
- t.exports = Er();
3239
- })), Or = /* @__PURE__ */ t(((e, t) => {
3240
- var n = Dr(), r = {
3241
- childContextTypes: !0,
3242
- contextType: !0,
3243
- contextTypes: !0,
3244
- defaultProps: !0,
3245
- displayName: !0,
3246
- getDefaultProps: !0,
3247
- getDerivedStateFromError: !0,
3248
- getDerivedStateFromProps: !0,
3249
- mixins: !0,
3250
- propTypes: !0,
3251
- type: !0
3252
- }, i = {
3253
- name: !0,
3254
- length: !0,
3255
- prototype: !0,
3256
- caller: !0,
3257
- callee: !0,
3258
- arguments: !0,
3259
- arity: !0
3260
- }, a = {
3261
- $$typeof: !0,
3262
- render: !0,
3263
- defaultProps: !0,
3264
- displayName: !0,
3265
- propTypes: !0
3266
- }, o = {
3267
- $$typeof: !0,
3268
- compare: !0,
3269
- defaultProps: !0,
3270
- displayName: !0,
3271
- propTypes: !0,
3272
- type: !0
3273
- }, s = {};
3274
- s[n.ForwardRef] = a, s[n.Memo] = o;
3275
- function c(e) {
3276
- return n.isMemo(e) ? o : s[e.$$typeof] || r;
3277
- }
3278
- var l = Object.defineProperty, u = Object.getOwnPropertyNames, d = Object.getOwnPropertySymbols, f = Object.getOwnPropertyDescriptor, p = Object.getPrototypeOf, m = Object.prototype;
3279
- function h(e, t, n) {
3280
- if (typeof t != "string") {
3281
- if (m) {
3282
- var r = p(t);
3283
- r && r !== m && h(e, r, n);
3284
- }
3285
- var a = u(t);
3286
- d && (a = a.concat(d(t)));
3287
- for (var o = c(e), s = c(t), g = 0; g < a.length; ++g) {
3288
- var _ = a[g];
3289
- if (!i[_] && !(n && n[_]) && !(s && s[_]) && !(o && o[_])) {
3290
- var v = f(t, _);
3291
- try {
3292
- l(e, _, v);
3293
- } catch {}
3294
- }
3295
- }
3296
- }
3297
- return e;
3298
- }
3299
- t.exports = h;
3300
- })), kr = /* @__PURE__ */ t(((e) => {
3301
- if (typeof Symbol == "function" && Symbol.for) {
3302
- var t = Symbol.for;
3303
- t("react.element"), t("react.portal"), t("react.fragment"), t("react.strict_mode"), t("react.profiler"), t("react.provider"), t("react.context"), t("react.forward_ref"), t("react.suspense"), t("react.suspense_list"), t("react.memo"), t("react.lazy"), t("react.block"), t("react.server.block"), t("react.fundamental"), t("react.debug_trace_mode"), t("react.legacy_hidden");
3304
- }
3305
- })), Ar = /* @__PURE__ */ t(((e, t) => {
3306
- t.exports = kr();
3307
- }));
3308
- Or(), Ar();
3309
- //#endregion
3310
- //#region node_modules/react-redux/es/utils/shallowEqual.js
3311
- function jr(e, t) {
3312
- return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
3313
- }
3314
- function Mr(e, t) {
3315
- if (jr(e, t)) return !0;
3316
- if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
3317
- var n = Object.keys(e), r = Object.keys(t);
3318
- if (n.length !== r.length) return !1;
3319
- for (var i = 0; i < n.length; i++) if (!Object.prototype.hasOwnProperty.call(t, n[i]) || !jr(e[n[i]], t[n[i]])) return !1;
3320
- return !0;
3321
- }
3322
- //#endregion
3323
- //#region node_modules/react-redux/es/hooks/useReduxContext.js
3324
- function Nr() {
3325
- return (0, X.useContext)(Z);
3326
- }
3327
- //#endregion
3328
- //#region node_modules/react-redux/es/hooks/useStore.js
3329
- function Pr(e) {
3330
- e === void 0 && (e = Z);
3331
- var t = e === Z ? Nr : function() {
3332
- return (0, X.useContext)(e);
3333
- };
3334
- return function() {
3335
- return t().store;
3336
- };
3337
- }
3338
- var Fr = /* @__PURE__ */ Pr();
3339
- //#endregion
3340
- //#region node_modules/react-redux/es/hooks/useDispatch.js
3341
- function Ir(e) {
3342
- e === void 0 && (e = Z);
3343
- var t = e === Z ? Fr : Pr(e);
3344
- return function() {
3345
- return t().dispatch;
3346
- };
3347
- }
3348
- var Lr = /* @__PURE__ */ Ir(), Rr = function(e, t) {
3349
- return e === t;
3350
- };
3351
- function zr(e, t, n, r) {
3352
- var i = (0, X.useReducer)(function(e) {
3353
- return e + 1;
3354
- }, 0)[1], a = (0, X.useMemo)(function() {
3355
- return xr(n, r);
3356
- }, [n, r]), o = (0, X.useRef)(), s = (0, X.useRef)(), c = (0, X.useRef)(), l = (0, X.useRef)(), u = n.getState(), d;
3357
- try {
3358
- if (e !== s.current || u !== c.current || o.current) {
3359
- var f = e(u);
3360
- d = l.current === void 0 || !t(f, l.current) ? f : l.current;
3361
- } else d = l.current;
3362
- } catch (e) {
3363
- throw o.current && (e.message += "\nThe error may be correlated with this previous error:\n" + o.current.stack + "\n\n"), e;
3364
- }
3365
- return Sr(function() {
3366
- s.current = e, c.current = u, l.current = d, o.current = void 0;
3367
- }), Sr(function() {
3368
- function e() {
3369
- try {
3370
- var e = n.getState();
3371
- if (e === c.current) return;
3372
- var r = s.current(e);
3373
- if (t(r, l.current)) return;
3374
- l.current = r, c.current = e;
3375
- } catch (e) {
3376
- o.current = e;
3377
- }
3378
- i();
3379
- }
3380
- return a.onStateChange = e, a.trySubscribe(), e(), function() {
3381
- return a.tryUnsubscribe();
3382
- };
3383
- }, [n, a]), d;
3384
- }
3385
- function Br(e) {
3386
- e === void 0 && (e = Z);
3387
- var t = e === Z ? Nr : function() {
3388
- return (0, X.useContext)(e);
3389
- };
3390
- return function(e, n) {
3391
- n === void 0 && (n = Rr);
3392
- var r = t(), i = r.store, a = r.subscription, o = zr(e, n, i, a);
3393
- return (0, X.useDebugValue)(o), o;
3394
- };
3395
- }
3396
- var Vr = /* @__PURE__ */ Br(), Hr = /* @__PURE__ */ e(a());
3397
- //#endregion
3398
- //#region node_modules/react-redux/es/index.js
3399
- _r(Hr.unstable_batchedUpdates);
3400
- //#endregion
3401
- //#region node_modules/@reduxjs/toolkit/dist/query/react/rtk-query-react.esm.js
3402
- var Ur = function(e, t) {
3403
- for (var n = 0, r = t.length, i = e.length; n < r; n++, i++) e[i] = t[n];
3404
- return e;
3405
- }, Wr = Object.defineProperty, Gr = Object.defineProperties, Kr = Object.getOwnPropertyDescriptors, qr = Object.getOwnPropertySymbols, Jr = Object.prototype.hasOwnProperty, Yr = Object.prototype.propertyIsEnumerable, Xr = function(e, t, n) {
3406
- return t in e ? Wr(e, t, {
3407
- enumerable: !0,
3408
- configurable: !0,
3409
- writable: !0,
3410
- value: n
3411
- }) : e[t] = n;
3412
- }, Q = function(e, t) {
3413
- for (var n in t ||= {}) Jr.call(t, n) && Xr(e, n, t[n]);
3414
- if (qr) for (var r = 0, i = qr(t); r < i.length; r++) {
3415
- var n = i[r];
3416
- Yr.call(t, n) && Xr(e, n, t[n]);
3417
- }
3418
- return e;
3419
- }, Zr = function(e, t) {
3420
- return Gr(e, Kr(t));
3421
- };
3422
- function Qr(e, t, n, r) {
3423
- var i = (0, X.useMemo)(function() {
3424
- return {
3425
- queryArgs: e,
3426
- serialized: typeof e == "object" ? t({
3427
- queryArgs: e,
3428
- endpointDefinition: n,
3429
- endpointName: r
3430
- }) : e
3431
- };
3432
- }, [
3433
- e,
3434
- t,
3435
- n,
3436
- r
3437
- ]), a = (0, X.useRef)(i);
3438
- return (0, X.useEffect)(function() {
3439
- a.current.serialized !== i.serialized && (a.current = i);
3440
- }, [i]), a.current.serialized === i.serialized ? a.current.queryArgs : e;
3441
- }
3442
- var $r = Symbol();
3443
- function ei(e) {
3444
- var t = (0, X.useRef)(e);
3445
- return (0, X.useEffect)(function() {
3446
- Mr(t.current, e) || (t.current = e);
3447
- }, [e]), Mr(t.current, e) ? t.current : e;
3448
- }
3449
- var ti = WeakMap ? /* @__PURE__ */ new WeakMap() : void 0, ni = function(e) {
3450
- var t = e.endpointName, n = e.queryArgs, r = "", i = ti?.get(n);
3451
- if (typeof i == "string") r = i;
3452
- else {
3453
- var a = JSON.stringify(n, function(e, t) {
3454
- return H(t) ? Object.keys(t).sort().reduce(function(e, n) {
3455
- return e[n] = t[n], e;
3456
- }, {}) : t;
3457
- });
3458
- H(n) && ti?.set(n, a), r = a;
3459
- }
3460
- return t + "(" + r + ")";
3461
- }, ri = typeof window < "u" && window.document && window.document.createElement ? X.useLayoutEffect : X.useEffect, ii = function(e) {
3462
- return e;
3463
- }, ai = function(e) {
3464
- return e.isUninitialized ? Zr(Q({}, e), {
3465
- isUninitialized: !1,
3466
- isFetching: !0,
3467
- isLoading: e.data === void 0,
3468
- status: K.pending
3469
- }) : e;
3470
- };
3471
- function oi(e) {
3472
- var t = e.api, n = e.moduleOptions, r = n.batch, i = n.useDispatch, a = n.useSelector, o = n.useStore, s = n.unstable__sideEffectsInRender, c = e.serializeQueryArgs, l = e.context, u = s ? function(e) {
3473
- return e();
3474
- } : X.useEffect;
3475
- return {
3476
- buildQueryHooks: p,
3477
- buildMutationHook: m,
3478
- usePrefetch: f
3479
- };
3480
- function d(e, t, n) {
3481
- if (t?.endpointName && e.isUninitialized) {
3482
- var r = t.endpointName, i = l.endpointDefinitions[r];
3483
- c({
3484
- queryArgs: t.originalArgs,
3485
- endpointDefinition: i,
3486
- endpointName: r
3487
- }) === c({
3488
- queryArgs: n,
3489
- endpointDefinition: i,
3490
- endpointName: r
3491
- }) && (t = void 0);
3492
- }
3493
- var a = e.isSuccess ? e.data : t?.data;
3494
- a === void 0 && (a = e.data);
3495
- var o = a !== void 0, s = e.isLoading, u = !o && s, d = e.isSuccess || s && o;
3496
- return Zr(Q({}, e), {
3497
- data: a,
3498
- currentData: e.data,
3499
- isFetching: s,
3500
- isLoading: u,
3501
- isSuccess: d
3502
- });
3503
- }
3504
- function f(e, n) {
3505
- var r = i(), a = ei(n);
3506
- return (0, X.useCallback)(function(n, i) {
3507
- return r(t.util.prefetch(e, n, Q(Q({}, a), i)));
3508
- }, [
3509
- e,
3510
- r,
3511
- a
3512
- ]);
3513
- }
3514
- function p(e) {
3515
- var n = function(n, r) {
3516
- var a = r === void 0 ? {} : r, o = a.refetchOnReconnect, s = a.refetchOnFocus, c = a.refetchOnMountOrArgChange, d = a.skip, f = d === void 0 ? !1 : d, p = a.pollingInterval, m = p === void 0 ? 0 : p, h = t.endpoints[e].initiate, g = i(), _ = Qr(f ? J : n, ni, l.endpointDefinitions[e], e), v = ei({
3517
- refetchOnReconnect: o,
3518
- refetchOnFocus: s,
3519
- pollingInterval: m
3520
- }), y = (0, X.useRef)(!1), b = (0, X.useRef)(), x = b.current || {}, S = x.queryCacheKey, C = x.requestId, w = !1;
3521
- S && C && (w = !!g(t.internalActions.internal_probeSubscription({
3522
- queryCacheKey: S,
3523
- requestId: C
3524
- })));
3525
- var T = !w && y.current;
3526
- return u(function() {
3527
- y.current = w;
3528
- }), u(function() {
3529
- T && (b.current = void 0);
3530
- }, [T]), u(function() {
3531
- var e = b.current;
3532
- if (_ === J) {
3533
- e?.unsubscribe(), b.current = void 0;
3534
- return;
3535
- }
3536
- var t = b.current?.subscriptionOptions;
3537
- !e || e.arg !== _ ? (e?.unsubscribe(), b.current = g(h(_, {
3538
- subscriptionOptions: v,
3539
- forceRefetch: c
3540
- }))) : v !== t && e.updateSubscriptionOptions(v);
3541
- }, [
3542
- g,
3543
- h,
3544
- c,
3545
- _,
3546
- v,
3547
- T
3548
- ]), (0, X.useEffect)(function() {
3549
- return function() {
3550
- var e;
3551
- (e = b.current) == null || e.unsubscribe(), b.current = void 0;
3552
- };
3553
- }, []), (0, X.useMemo)(function() {
3554
- return { refetch: function() {
3555
- if (!b.current) throw Error("Cannot refetch a query that has not been started yet.");
3556
- return b.current?.refetch();
3557
- } };
3558
- }, []);
3559
- }, s = function(n) {
3560
- var a = n === void 0 ? {} : n, o = a.refetchOnReconnect, s = a.refetchOnFocus, c = a.pollingInterval, l = c === void 0 ? 0 : c, d = t.endpoints[e].initiate, f = i(), p = (0, X.useState)($r), m = p[0], h = p[1], g = (0, X.useRef)(), _ = ei({
3561
- refetchOnReconnect: o,
3562
- refetchOnFocus: s,
3563
- pollingInterval: l
3564
- });
3565
- u(function() {
3566
- var e;
3567
- _ !== g.current?.subscriptionOptions && ((e = g.current) == null || e.updateSubscriptionOptions(_));
3568
- }, [_]);
3569
- var v = (0, X.useRef)(_);
3570
- u(function() {
3571
- v.current = _;
3572
- }, [_]);
3573
- var y = (0, X.useCallback)(function(e, t) {
3574
- t === void 0 && (t = !1);
3575
- var n;
3576
- return r(function() {
3577
- var r;
3578
- (r = g.current) == null || r.unsubscribe(), g.current = n = f(d(e, {
3579
- subscriptionOptions: v.current,
3580
- forceRefetch: !t
3581
- })), h(e);
3582
- }), n;
3583
- }, [f, d]);
3584
- return (0, X.useEffect)(function() {
3585
- return function() {
3586
- var e;
3587
- (e = g?.current) == null || e.unsubscribe();
3588
- };
3589
- }, []), (0, X.useEffect)(function() {
3590
- m !== $r && !g.current && y(m, !0);
3591
- }, [m, y]), (0, X.useMemo)(function() {
3592
- return [y, m];
3593
- }, [y, m]);
3594
- }, f = function(n, r) {
3595
- var i = r === void 0 ? {} : r, s = i.skip, u = s === void 0 ? !1 : s, f = i.selectFromResult, p = t.endpoints[e].select, m = Qr(u ? J : n, c, l.endpointDefinitions[e], e), h = (0, X.useRef)(), g = (0, X.useMemo)(function() {
3596
- return Ke([
3597
- p(m),
3598
- function(e, t) {
3599
- return t;
3600
- },
3601
- function(e) {
3602
- return m;
3603
- }
3604
- ], d);
3605
- }, [p, m]), _ = (0, X.useMemo)(function() {
3606
- return f ? Ke([g], f) : g;
3607
- }, [g, f]), v = a(function(e) {
3608
- return _(e, h.current);
3609
- }, Mr), y = g(o().getState(), h.current);
3610
- return ri(function() {
3611
- h.current = y;
3612
- }, [y]), v;
3613
- };
3614
- return {
3615
- useQueryState: f,
3616
- useQuerySubscription: n,
3617
- useLazyQuerySubscription: s,
3618
- useLazyQuery: function(e) {
3619
- var t = s(e), n = t[0], r = t[1], i = f(r, Zr(Q({}, e), { skip: r === $r })), a = (0, X.useMemo)(function() {
3620
- return { lastArg: r };
3621
- }, [r]);
3622
- return (0, X.useMemo)(function() {
3623
- return [
3624
- n,
3625
- i,
3626
- a
3627
- ];
3628
- }, [
3629
- n,
3630
- i,
3631
- a
3632
- ]);
3633
- },
3634
- useQuery: function(e, t) {
3635
- var r = n(e, t), i = f(e, Q({ selectFromResult: e === J || t?.skip ? void 0 : ai }, t)), a = i.data, o = i.status, s = i.isLoading, c = i.isSuccess, l = i.isError, u = i.error;
3636
- return (0, X.useDebugValue)({
3637
- data: a,
3638
- status: o,
3639
- isLoading: s,
3640
- isSuccess: c,
3641
- isError: l,
3642
- error: u
3643
- }), (0, X.useMemo)(function() {
3644
- return Q(Q({}, i), r);
3645
- }, [i, r]);
3646
- }
3647
- };
3648
- }
3649
- function m(e) {
3650
- return function(n) {
3651
- var o = n === void 0 ? {} : n, s = o.selectFromResult, c = s === void 0 ? ii : s, l = o.fixedCacheKey, u = t.endpoints[e], d = u.select, f = u.initiate, p = i(), m = (0, X.useState)(), h = m[0], g = m[1];
3652
- (0, X.useEffect)(function() {
3653
- return function() {
3654
- h?.arg.fixedCacheKey || h?.reset();
3655
- };
3656
- }, [h]);
3657
- var _ = (0, X.useCallback)(function(e) {
3658
- var t = p(f(e, { fixedCacheKey: l }));
3659
- return g(t), t;
3660
- }, [
3661
- p,
3662
- f,
3663
- l
3664
- ]), v = (h || {}).requestId, y = a((0, X.useMemo)(function() {
3665
- return Ke([d({
3666
- fixedCacheKey: l,
3667
- requestId: h?.requestId
3668
- })], c);
3669
- }, [
3670
- d,
3671
- h,
3672
- c,
3673
- l
3674
- ]), Mr), b = l == null ? h?.arg.originalArgs : void 0, x = (0, X.useCallback)(function() {
3675
- r(function() {
3676
- h && g(void 0), l && p(t.internalActions.removeMutationResult({
3677
- requestId: v,
3678
- fixedCacheKey: l
3679
- }));
3680
- });
3681
- }, [
3682
- p,
3683
- l,
3684
- h,
3685
- v
3686
- ]), S = y.endpointName, C = y.data, w = y.status, T = y.isLoading, E = y.isSuccess, D = y.isError, O = y.error;
3687
- (0, X.useDebugValue)({
3688
- endpointName: S,
3689
- data: C,
3690
- status: w,
3691
- isLoading: T,
3692
- isSuccess: E,
3693
- isError: D,
3694
- error: O
3695
- });
3696
- var k = (0, X.useMemo)(function() {
3697
- return Zr(Q({}, y), {
3698
- originalArgs: b,
3699
- reset: x
3700
- });
3701
- }, [
3702
- y,
3703
- b,
3704
- x
3705
- ]);
3706
- return (0, X.useMemo)(function() {
3707
- return [_, k];
3708
- }, [_, k]);
3709
- };
3710
- }
3711
- }
3712
- var si;
3713
- (function(e) {
3714
- e.query = "query", e.mutation = "mutation";
3715
- })(si ||= {});
3716
- function ci(e) {
3717
- return e.type === si.query;
3718
- }
3719
- function li(e) {
3720
- return e.type === si.mutation;
3721
- }
3722
- function ui(e) {
3723
- return e.replace(e[0], e[0].toUpperCase());
3724
- }
3725
- function di(e) {
3726
- var t = [...arguments].slice(1);
3727
- Object.assign.apply(Object, Ur([e], t));
3728
- }
3729
- var fi = /* @__PURE__ */ Symbol(), pi = /* @__PURE__ */ Zn(pr(), function(e) {
3730
- var t = e === void 0 ? {} : e, n = t.batch, r = n === void 0 ? Hr.unstable_batchedUpdates : n, i = t.useDispatch, a = i === void 0 ? Lr : i, o = t.useSelector, s = o === void 0 ? Vr : o, c = t.useStore, l = c === void 0 ? Fr : c, u = t.unstable__sideEffectsInRender, d = u === void 0 ? !1 : u;
3731
- return {
3732
- name: fi,
3733
- init: function(e, t, n) {
3734
- var i = t.serializeQueryArgs, o = e, c = oi({
3735
- api: e,
3736
- moduleOptions: {
3737
- batch: r,
3738
- useDispatch: a,
3739
- useSelector: s,
3740
- useStore: l,
3741
- unstable__sideEffectsInRender: d
3742
- },
3743
- serializeQueryArgs: i,
3744
- context: n
3745
- }), u = c.buildQueryHooks, f = c.buildMutationHook, p = c.usePrefetch;
3746
- return di(o, { usePrefetch: p }), di(n, { batch: r }), { injectEndpoint: function(t, n) {
3747
- if (ci(n)) {
3748
- var r = u(t), i = r.useQuery, a = r.useLazyQuery, s = r.useLazyQuerySubscription, c = r.useQueryState, l = r.useQuerySubscription;
3749
- di(o.endpoints[t], {
3750
- useQuery: i,
3751
- useLazyQuery: a,
3752
- useLazyQuerySubscription: s,
3753
- useQueryState: c,
3754
- useQuerySubscription: l
3755
- }), e["use" + ui(t) + "Query"] = i, e["useLazy" + ui(t) + "Query"] = a;
3756
- } else if (li(n)) {
3757
- var d = f(t);
3758
- di(o.endpoints[t], { useMutation: d }), e["use" + ui(t) + "Mutation"] = d;
3759
- }
3760
- } };
3761
- }
3762
- };
3763
- }()), mi = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, $ = globalThis, hi = "10.45.0";
3764
- //#endregion
3765
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/carrier.js
3766
- function gi() {
3767
- return _i($), $;
3768
- }
3769
- function _i(e) {
3770
- let t = e.__SENTRY__ = e.__SENTRY__ || {};
3771
- return t.version = t.version || "10.45.0", t[hi] = t["10.45.0"] || {};
3772
- }
3773
- function vi(e, t, n = $) {
3774
- let r = n.__SENTRY__ = n.__SENTRY__ || {}, i = r[hi] = r["10.45.0"] || {};
3775
- return i[e] || (i[e] = t());
3776
- }
3777
- //#endregion
3778
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/utils/debug-logger.js
3779
- var yi = "Sentry Logger ", bi = {};
3780
- function xi(e) {
3781
- if (!("console" in $)) return e();
3782
- let t = $.console, n = {}, r = Object.keys(bi);
3783
- r.forEach((e) => {
3784
- let r = bi[e];
3785
- n[e] = t[e], t[e] = r;
3786
- });
3787
- try {
3788
- return e();
3789
- } finally {
3790
- r.forEach((e) => {
3791
- t[e] = n[e];
3792
- });
3793
- }
3794
- }
3795
- function Si() {
3796
- ki().enabled = !0;
3797
- }
3798
- function Ci() {
3799
- ki().enabled = !1;
3800
- }
3801
- function wi() {
3802
- return ki().enabled;
3803
- }
3804
- function Ti(...e) {
3805
- Oi("log", ...e);
3806
- }
3807
- function Ei(...e) {
3808
- Oi("warn", ...e);
3809
- }
3810
- function Di(...e) {
3811
- Oi("error", ...e);
3812
- }
3813
- function Oi(e, ...t) {
3814
- mi && wi() && xi(() => {
3815
- $.console[e](`${yi}[${e}]:`, ...t);
3816
- });
3817
- }
3818
- function ki() {
3819
- return mi ? vi("loggerSettings", () => ({ enabled: !1 })) : { enabled: !1 };
3820
- }
3821
- var Ai = {
3822
- enable: Si,
3823
- disable: Ci,
3824
- isEnabled: wi,
3825
- log: Ti,
3826
- warn: Ei,
3827
- error: Di
3828
- }, ji = Object.prototype.toString;
3829
- function Mi(e, t) {
3830
- return ji.call(e) === `[object ${t}]`;
3831
- }
3832
- function Ni(e) {
3833
- return Mi(e, "Object");
3834
- }
3835
- function Pi(e) {
3836
- return !!(e?.then && typeof e.then == "function");
3837
- }
3838
- //#endregion
3839
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/utils/object.js
3840
- function Fi(e, t, n) {
3841
- try {
3842
- Object.defineProperty(e, t, {
3843
- value: n,
3844
- writable: !0,
3845
- configurable: !0
3846
- });
3847
- } catch {
3848
- mi && Ai.log(`Failed to add non-enumerable property "${t}" to object`, e);
3849
- }
3850
- }
3851
- //#endregion
3852
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/utils/randomSafeContext.js
3853
- var Ii;
3854
- function Li(e) {
3855
- if (Ii !== void 0) return Ii ? Ii(e) : e();
3856
- let t = Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"), n = $;
3857
- return t in n && typeof n[t] == "function" ? (Ii = n[t], Ii(e)) : (Ii = null, e());
3858
- }
3859
- function Ri() {
3860
- return Li(() => Math.random());
3861
- }
3862
- function zi() {
3863
- return Li(() => Date.now());
3864
- }
3865
- //#endregion
3866
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/utils/string.js
3867
- function Bi(e, t = 0) {
3868
- return typeof e != "string" || t === 0 || e.length <= t ? e : `${e.slice(0, t)}...`;
3869
- }
3870
- //#endregion
3871
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/utils/misc.js
3872
- function Vi() {
3873
- let e = $;
3874
- return e.crypto || e.msCrypto;
3875
- }
3876
- var Hi;
3877
- function Ui() {
3878
- return Ri() * 16;
3879
- }
3880
- function Wi(e = Vi()) {
3881
- try {
3882
- if (e?.randomUUID) return Li(() => e.randomUUID()).replace(/-/g, "");
3883
- } catch {}
3884
- return Hi ||= "10000000100040008000100000000000", Hi.replace(/[018]/g, (e) => (e ^ (Ui() & 15) >> e / 4).toString(16));
3885
- }
3886
- //#endregion
3887
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/utils/time.js
3888
- var Gi = 1e3;
3889
- function Ki() {
3890
- return zi() / Gi;
3891
- }
3892
- function qi() {
3893
- let { performance: e } = $;
3894
- if (!e?.now || !e.timeOrigin) return Ki;
3895
- let t = e.timeOrigin;
3896
- return () => (t + Li(() => e.now())) / Gi;
3897
- }
3898
- var Ji;
3899
- function Yi() {
3900
- return (Ji ??= qi())();
3901
- }
3902
- //#endregion
3903
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/session.js
3904
- function Xi(e, t = {}) {
3905
- if (t.user && (!e.ipAddress && t.user.ip_address && (e.ipAddress = t.user.ip_address), !e.did && !t.did && (e.did = t.user.id || t.user.email || t.user.username)), e.timestamp = t.timestamp || Yi(), t.abnormal_mechanism && (e.abnormal_mechanism = t.abnormal_mechanism), t.ignoreDuration && (e.ignoreDuration = t.ignoreDuration), t.sid && (e.sid = t.sid.length === 32 ? t.sid : Wi()), t.init !== void 0 && (e.init = t.init), !e.did && t.did && (e.did = `${t.did}`), typeof t.started == "number" && (e.started = t.started), e.ignoreDuration) e.duration = void 0;
3906
- else if (typeof t.duration == "number") e.duration = t.duration;
3907
- else {
3908
- let t = e.timestamp - e.started;
3909
- e.duration = t >= 0 ? t : 0;
3910
- }
3911
- t.release && (e.release = t.release), t.environment && (e.environment = t.environment), !e.ipAddress && t.ipAddress && (e.ipAddress = t.ipAddress), !e.userAgent && t.userAgent && (e.userAgent = t.userAgent), typeof t.errors == "number" && (e.errors = t.errors), t.status && (e.status = t.status);
3912
- }
3913
- //#endregion
3914
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/utils/merge.js
3915
- function Zi(e, t, n = 2) {
3916
- if (!t || typeof t != "object" || n <= 0) return t;
3917
- if (e && Object.keys(t).length === 0) return e;
3918
- let r = { ...e };
3919
- for (let e in t) Object.prototype.hasOwnProperty.call(t, e) && (r[e] = Zi(r[e], t[e], n - 1));
3920
- return r;
3921
- }
3922
- //#endregion
3923
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/utils/propagationContext.js
3924
- function Qi() {
3925
- return Wi();
3926
- }
3927
- //#endregion
3928
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/utils/spanOnScope.js
3929
- var $i = "_sentrySpan";
3930
- function ea(e, t) {
3931
- t ? Fi(e, $i, t) : delete e[$i];
3932
- }
3933
- function ta(e) {
3934
- return e[$i];
3935
- }
3936
- //#endregion
3937
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/scope.js
3938
- var na = 100, ra = class e {
3939
- constructor() {
3940
- this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._attributes = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = {
3941
- traceId: Qi(),
3942
- sampleRand: Ri()
3943
- };
3944
- }
3945
- clone() {
3946
- let t = new e();
3947
- return t._breadcrumbs = [...this._breadcrumbs], t._tags = { ...this._tags }, t._attributes = { ...this._attributes }, t._extra = { ...this._extra }, t._contexts = { ...this._contexts }, this._contexts.flags && (t._contexts.flags = { values: [...this._contexts.flags.values] }), t._user = this._user, t._level = this._level, t._session = this._session, t._transactionName = this._transactionName, t._fingerprint = this._fingerprint, t._eventProcessors = [...this._eventProcessors], t._attachments = [...this._attachments], t._sdkProcessingMetadata = { ...this._sdkProcessingMetadata }, t._propagationContext = { ...this._propagationContext }, t._client = this._client, t._lastEventId = this._lastEventId, t._conversationId = this._conversationId, ea(t, ta(this)), t;
3948
- }
3949
- setClient(e) {
3950
- this._client = e;
3951
- }
3952
- setLastEventId(e) {
3953
- this._lastEventId = e;
3954
- }
3955
- getClient() {
3956
- return this._client;
3957
- }
3958
- lastEventId() {
3959
- return this._lastEventId;
3960
- }
3961
- addScopeListener(e) {
3962
- this._scopeListeners.push(e);
3963
- }
3964
- addEventProcessor(e) {
3965
- return this._eventProcessors.push(e), this;
3966
- }
3967
- setUser(e) {
3968
- return this._user = e || {
3969
- email: void 0,
3970
- id: void 0,
3971
- ip_address: void 0,
3972
- username: void 0
3973
- }, this._session && Xi(this._session, { user: e }), this._notifyScopeListeners(), this;
3974
- }
3975
- getUser() {
3976
- return this._user;
3977
- }
3978
- setConversationId(e) {
3979
- return this._conversationId = e || void 0, this._notifyScopeListeners(), this;
3980
- }
3981
- setTags(e) {
3982
- return this._tags = {
3983
- ...this._tags,
3984
- ...e
3985
- }, this._notifyScopeListeners(), this;
3986
- }
3987
- setTag(e, t) {
3988
- return this.setTags({ [e]: t });
3989
- }
3990
- setAttributes(e) {
3991
- return this._attributes = {
3992
- ...this._attributes,
3993
- ...e
3994
- }, this._notifyScopeListeners(), this;
3995
- }
3996
- setAttribute(e, t) {
3997
- return this.setAttributes({ [e]: t });
3998
- }
3999
- removeAttribute(e) {
4000
- return e in this._attributes && (delete this._attributes[e], this._notifyScopeListeners()), this;
4001
- }
4002
- setExtras(e) {
4003
- return this._extra = {
4004
- ...this._extra,
4005
- ...e
4006
- }, this._notifyScopeListeners(), this;
4007
- }
4008
- setExtra(e, t) {
4009
- return this._extra = {
4010
- ...this._extra,
4011
- [e]: t
4012
- }, this._notifyScopeListeners(), this;
4013
- }
4014
- setFingerprint(e) {
4015
- return this._fingerprint = e, this._notifyScopeListeners(), this;
4016
- }
4017
- setLevel(e) {
4018
- return this._level = e, this._notifyScopeListeners(), this;
4019
- }
4020
- setTransactionName(e) {
4021
- return this._transactionName = e, this._notifyScopeListeners(), this;
4022
- }
4023
- setContext(e, t) {
4024
- return t === null ? delete this._contexts[e] : this._contexts[e] = t, this._notifyScopeListeners(), this;
4025
- }
4026
- setSession(e) {
4027
- return e ? this._session = e : delete this._session, this._notifyScopeListeners(), this;
4028
- }
4029
- getSession() {
4030
- return this._session;
4031
- }
4032
- update(t) {
4033
- if (!t) return this;
4034
- let n = typeof t == "function" ? t(this) : t, { tags: r, attributes: i, extra: a, user: o, contexts: s, level: c, fingerprint: l = [], propagationContext: u, conversationId: d } = (n instanceof e ? n.getScopeData() : Ni(n) ? t : void 0) || {};
4035
- return this._tags = {
4036
- ...this._tags,
4037
- ...r
4038
- }, this._attributes = {
4039
- ...this._attributes,
4040
- ...i
4041
- }, this._extra = {
4042
- ...this._extra,
4043
- ...a
4044
- }, this._contexts = {
4045
- ...this._contexts,
4046
- ...s
4047
- }, o && Object.keys(o).length && (this._user = o), c && (this._level = c), l.length && (this._fingerprint = l), u && (this._propagationContext = u), d && (this._conversationId = d), this;
4048
- }
4049
- clear() {
4050
- return this._breadcrumbs = [], this._tags = {}, this._attributes = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._session = void 0, this._conversationId = void 0, ea(this, void 0), this._attachments = [], this.setPropagationContext({
4051
- traceId: Qi(),
4052
- sampleRand: Ri()
4053
- }), this._notifyScopeListeners(), this;
4054
- }
4055
- addBreadcrumb(e, t) {
4056
- let n = typeof t == "number" ? t : na;
4057
- if (n <= 0) return this;
4058
- let r = {
4059
- timestamp: Ki(),
4060
- ...e,
4061
- message: e.message ? Bi(e.message, 2048) : e.message
4062
- };
4063
- return this._breadcrumbs.push(r), this._breadcrumbs.length > n && (this._breadcrumbs = this._breadcrumbs.slice(-n), this._client?.recordDroppedEvent("buffer_overflow", "log_item")), this._notifyScopeListeners(), this;
4064
- }
4065
- getLastBreadcrumb() {
4066
- return this._breadcrumbs[this._breadcrumbs.length - 1];
4067
- }
4068
- clearBreadcrumbs() {
4069
- return this._breadcrumbs = [], this._notifyScopeListeners(), this;
4070
- }
4071
- addAttachment(e) {
4072
- return this._attachments.push(e), this;
4073
- }
4074
- clearAttachments() {
4075
- return this._attachments = [], this;
4076
- }
4077
- getScopeData() {
4078
- return {
4079
- breadcrumbs: this._breadcrumbs,
4080
- attachments: this._attachments,
4081
- contexts: this._contexts,
4082
- tags: this._tags,
4083
- attributes: this._attributes,
4084
- extra: this._extra,
4085
- user: this._user,
4086
- level: this._level,
4087
- fingerprint: this._fingerprint || [],
4088
- eventProcessors: this._eventProcessors,
4089
- propagationContext: this._propagationContext,
4090
- sdkProcessingMetadata: this._sdkProcessingMetadata,
4091
- transactionName: this._transactionName,
4092
- span: ta(this),
4093
- conversationId: this._conversationId
4094
- };
4095
- }
4096
- setSDKProcessingMetadata(e) {
4097
- return this._sdkProcessingMetadata = Zi(this._sdkProcessingMetadata, e, 2), this;
4098
- }
4099
- setPropagationContext(e) {
4100
- return this._propagationContext = e, this;
4101
- }
4102
- getPropagationContext() {
4103
- return this._propagationContext;
4104
- }
4105
- captureException(e, t) {
4106
- let n = t?.event_id || Wi();
4107
- if (!this._client) return mi && Ai.warn("No client configured on scope - will not capture exception!"), n;
4108
- let r = /* @__PURE__ */ Error("Sentry syntheticException");
4109
- return this._client.captureException(e, {
4110
- originalException: e,
4111
- syntheticException: r,
4112
- ...t,
4113
- event_id: n
4114
- }, this), n;
4115
- }
4116
- captureMessage(e, t, n) {
4117
- let r = n?.event_id || Wi();
4118
- if (!this._client) return mi && Ai.warn("No client configured on scope - will not capture message!"), r;
4119
- let i = n?.syntheticException ?? Error(e);
4120
- return this._client.captureMessage(e, t, {
4121
- originalException: e,
4122
- syntheticException: i,
4123
- ...n,
4124
- event_id: r
4125
- }, this), r;
4126
- }
4127
- captureEvent(e, t) {
4128
- let n = e.event_id || t?.event_id || Wi();
4129
- return this._client ? (this._client.captureEvent(e, {
4130
- ...t,
4131
- event_id: n
4132
- }, this), n) : (mi && Ai.warn("No client configured on scope - will not capture event!"), n);
4133
- }
4134
- _notifyScopeListeners() {
4135
- this._notifyingListeners ||= (this._notifyingListeners = !0, this._scopeListeners.forEach((e) => {
4136
- e(this);
4137
- }), !1);
4138
- }
4139
- };
4140
- //#endregion
4141
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/defaultScopes.js
4142
- function ia() {
4143
- return vi("defaultCurrentScope", () => new ra());
4144
- }
4145
- function aa() {
4146
- return vi("defaultIsolationScope", () => new ra());
4147
- }
4148
- //#endregion
4149
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/asyncContext/stackStrategy.js
4150
- var oa = class {
4151
- constructor(e, t) {
4152
- let n;
4153
- n = e || new ra();
4154
- let r;
4155
- r = t || new ra(), this._stack = [{ scope: n }], this._isolationScope = r;
4156
- }
4157
- withScope(e) {
4158
- let t = this._pushScope(), n;
4159
- try {
4160
- n = e(t);
4161
- } catch (e) {
4162
- throw this._popScope(), e;
4163
- }
4164
- return Pi(n) ? n.then((e) => (this._popScope(), e), (e) => {
4165
- throw this._popScope(), e;
4166
- }) : (this._popScope(), n);
4167
- }
4168
- getClient() {
4169
- return this.getStackTop().client;
4170
- }
4171
- getScope() {
4172
- return this.getStackTop().scope;
4173
- }
4174
- getIsolationScope() {
4175
- return this._isolationScope;
4176
- }
4177
- getStackTop() {
4178
- return this._stack[this._stack.length - 1];
4179
- }
4180
- _pushScope() {
4181
- let e = this.getScope().clone();
4182
- return this._stack.push({
4183
- client: this.getClient(),
4184
- scope: e
4185
- }), e;
4186
- }
4187
- _popScope() {
4188
- return this._stack.length <= 1 ? !1 : !!this._stack.pop();
4189
- }
4190
- };
4191
- function sa() {
4192
- let e = _i(gi());
4193
- return e.stack = e.stack || new oa(ia(), aa());
4194
- }
4195
- function ca(e) {
4196
- return sa().withScope(e);
4197
- }
4198
- function la(e, t) {
4199
- let n = sa();
4200
- return n.withScope(() => (n.getStackTop().scope = e, t(e)));
4201
- }
4202
- function ua(e) {
4203
- return sa().withScope(() => e(sa().getIsolationScope()));
4204
- }
4205
- function da() {
4206
- return {
4207
- withIsolationScope: ua,
4208
- withScope: ca,
4209
- withSetScope: la,
4210
- withSetIsolationScope: (e, t) => ua(t),
4211
- getCurrentScope: () => sa().getScope(),
4212
- getIsolationScope: () => sa().getIsolationScope()
4213
- };
4214
- }
4215
- //#endregion
4216
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/asyncContext/index.js
4217
- function fa(e) {
4218
- let t = _i(e);
4219
- return t.acs ? t.acs : da();
4220
- }
4221
- //#endregion
4222
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/currentScopes.js
4223
- function pa() {
4224
- return fa(gi()).getIsolationScope();
4225
- }
4226
- //#endregion
4227
- //#region node_modules/@sentry/react/node_modules/@sentry/core/build/esm/exports.js
4228
- function ma(e) {
4229
- pa().setUser(e);
4230
- }
4231
- //#endregion
4232
- export { Fr as a, Cr as c, Dn as d, gt as f, Ce as g, Fe as h, Lr as i, mr as l, xt as m, pi as n, Tr as o, Ot as p, Vr as r, wr as s, ma as t, bn as u };